motionary 7.9.0 → 8.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (219) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/README.md +1 -1
  3. package/README_ja.md +1 -1
  4. package/README_zh.md +1 -1
  5. package/dist/chunks/{audio-DcPvT2Kh.js → audio-CynhhWDi.js} +3 -3
  6. package/dist/chunks/{audio-DcPvT2Kh.js.map → audio-CynhhWDi.js.map} +1 -1
  7. package/dist/chunks/{audio-EXUoijsG.cjs → audio-cgWbDkoY.cjs} +3 -3
  8. package/dist/chunks/{audio-EXUoijsG.cjs.map → audio-cgWbDkoY.cjs.map} +1 -1
  9. package/dist/chunks/{base-2-yYc93C.js → base-CLuqlLfG.js} +63 -6
  10. package/dist/chunks/base-CLuqlLfG.js.map +1 -0
  11. package/dist/chunks/{base-BaQV-2ha.cjs → base-DoRUZBy-.cjs} +66 -5
  12. package/dist/chunks/base-DoRUZBy-.cjs.map +1 -0
  13. package/dist/chunks/{builtins-HlqAkK0f.js → builtins-Bs4smevg.js} +3 -3
  14. package/dist/chunks/{builtins-HlqAkK0f.js.map → builtins-Bs4smevg.js.map} +1 -1
  15. package/dist/chunks/{builtins-xalxV2d5.cjs → builtins-ClXshqj-.cjs} +3 -3
  16. package/dist/chunks/{builtins-xalxV2d5.cjs.map → builtins-ClXshqj-.cjs.map} +1 -1
  17. package/dist/chunks/{core-DuO-AVXL.js → core-C3Taz-ew.js} +2 -2
  18. package/dist/chunks/{core-DuO-AVXL.js.map → core-C3Taz-ew.js.map} +1 -1
  19. package/dist/chunks/{core-D5rU0CV6.js → core-CiN5sqxB.js} +2 -2
  20. package/dist/chunks/{core-D5rU0CV6.js.map → core-CiN5sqxB.js.map} +1 -1
  21. package/dist/chunks/{core-BGAyaY6L.cjs → core-CwO835Wm.cjs} +2 -2
  22. package/dist/chunks/{core-BGAyaY6L.cjs.map → core-CwO835Wm.cjs.map} +1 -1
  23. package/dist/chunks/{core-zq17EeCI.cjs → core-O4grKHSa.cjs} +2 -2
  24. package/dist/chunks/{core-zq17EeCI.cjs.map → core-O4grKHSa.cjs.map} +1 -1
  25. package/dist/chunks/{fx-lBGVtQO1.cjs → fx-C-XjLOTc.cjs} +2 -2
  26. package/dist/chunks/{fx-lBGVtQO1.cjs.map → fx-C-XjLOTc.cjs.map} +1 -1
  27. package/dist/chunks/{fx-CMxWNwH8.js → fx-CQv3IxMf.js} +2 -2
  28. package/dist/chunks/{fx-CMxWNwH8.js.map → fx-CQv3IxMf.js.map} +1 -1
  29. package/dist/chunks/{gpu-DLPghVWr.js → gpu-CB8frFOD.js} +2 -2
  30. package/dist/chunks/{gpu-DLPghVWr.js.map → gpu-CB8frFOD.js.map} +1 -1
  31. package/dist/chunks/{gpu-Dx0H875w.cjs → gpu-CcdA2D2i.cjs} +2 -2
  32. package/dist/chunks/{gpu-Dx0H875w.cjs.map → gpu-CcdA2D2i.cjs.map} +1 -1
  33. package/dist/chunks/{index-tags-C04JP8g4.js → index-tags-B-JBecYg.js} +2 -2
  34. package/dist/chunks/index-tags-B-JBecYg.js.map +1 -0
  35. package/dist/chunks/{index-tags-BTMwrfgV.cjs → index-tags-hLIF2Clq.cjs} +2 -2
  36. package/dist/chunks/index-tags-hLIF2Clq.cjs.map +1 -0
  37. package/dist/chunks/{player-PS6_FzNw.cjs → player-C2n17sdH.cjs} +4 -4
  38. package/dist/chunks/{player-PS6_FzNw.cjs.map → player-C2n17sdH.cjs.map} +1 -1
  39. package/dist/chunks/{player-DxvCYo7Q.js → player-YzQGkKaW.js} +4 -4
  40. package/dist/chunks/{player-DxvCYo7Q.js.map → player-YzQGkKaW.js.map} +1 -1
  41. package/dist/chunks/{registry-DehBVRDV.cjs → registry-BVklOepd.cjs} +2 -2
  42. package/dist/chunks/{registry-DehBVRDV.cjs.map → registry-BVklOepd.cjs.map} +1 -1
  43. package/dist/chunks/{registry-CyKExAmE.js → registry-CnO7ZVPK.js} +2 -2
  44. package/dist/chunks/{registry-CyKExAmE.js.map → registry-CnO7ZVPK.js.map} +1 -1
  45. package/dist/chunks/{spring-BK8DiezC.js → spring-BFKNHmfl.js} +2 -2
  46. package/dist/chunks/{spring-BK8DiezC.js.map → spring-BFKNHmfl.js.map} +1 -1
  47. package/dist/chunks/{spring-Dgx187Vh.cjs → spring-uQMVJTj9.cjs} +2 -2
  48. package/dist/chunks/{spring-Dgx187Vh.cjs.map → spring-uQMVJTj9.cjs.map} +1 -1
  49. package/dist/chunks/{variants-BQ6bhzn4.js → variants-B-zKORvt.js} +2 -2
  50. package/dist/chunks/{variants-BQ6bhzn4.js.map → variants-B-zKORvt.js.map} +1 -1
  51. package/dist/chunks/{variants-BhjyddG8.cjs → variants-DagykrKH.cjs} +2 -2
  52. package/dist/chunks/{variants-BhjyddG8.cjs.map → variants-DagykrKH.cjs.map} +1 -1
  53. package/dist/components/a11y.cjs +2 -2
  54. package/dist/components/a11y.d.cts +1 -1
  55. package/dist/components/a11y.d.ts +1 -1
  56. package/dist/components/a11y.js +3 -3
  57. package/dist/components/angular.cjs +9 -9
  58. package/dist/components/angular.d.cts +2 -18
  59. package/dist/components/angular.d.ts +2 -18
  60. package/dist/components/angular.js +9 -9
  61. package/dist/components/background.cjs +2 -2
  62. package/dist/components/background.js +2 -2
  63. package/dist/components/bridge.cjs +1 -1
  64. package/dist/components/bridge.js +1 -1
  65. package/dist/components/cards.cjs +2 -2
  66. package/dist/components/cards.js +2 -2
  67. package/dist/components/click.cjs +3 -3
  68. package/dist/components/click.js +3 -3
  69. package/dist/components/depth.cjs +3 -3
  70. package/dist/components/depth.js +3 -3
  71. package/dist/components/effects.cjs +7 -7
  72. package/dist/components/effects.js +9 -9
  73. package/dist/components/engine.cjs +266 -0
  74. package/dist/components/engine.cjs.map +1 -0
  75. package/dist/components/engine.d.cts +105 -0
  76. package/dist/components/engine.d.ts +105 -0
  77. package/dist/components/engine.js +255 -0
  78. package/dist/components/engine.js.map +1 -0
  79. package/dist/components/feedback.cjs +1 -1
  80. package/dist/components/feedback.js +1 -1
  81. package/dist/components/fx-3d.cjs +2 -2
  82. package/dist/components/fx-3d.js +2 -2
  83. package/dist/components/fx-ai.cjs +2 -2
  84. package/dist/components/fx-ai.js +2 -2
  85. package/dist/components/fx-chart.cjs +2 -2
  86. package/dist/components/fx-chart.js +2 -2
  87. package/dist/components/fx-festival.cjs +121 -0
  88. package/dist/components/fx-festival.cjs.map +1 -0
  89. package/dist/components/fx-festival.d.cts +69 -0
  90. package/dist/components/fx-festival.d.ts +69 -0
  91. package/dist/components/fx-festival.js +117 -0
  92. package/dist/components/fx-festival.js.map +1 -0
  93. package/dist/components/fx-focus.cjs +2 -2
  94. package/dist/components/fx-focus.js +2 -2
  95. package/dist/components/fx-form.cjs +2 -2
  96. package/dist/components/fx-form.js +2 -2
  97. package/dist/components/fx-game.cjs +2 -2
  98. package/dist/components/fx-game.js +2 -2
  99. package/dist/components/fx-geo.cjs +2 -2
  100. package/dist/components/fx-geo.js +2 -2
  101. package/dist/components/fx-gpu.cjs +3 -3
  102. package/dist/components/fx-gpu.js +3 -3
  103. package/dist/components/fx-light.cjs +2 -2
  104. package/dist/components/fx-light.js +2 -2
  105. package/dist/components/fx-morph.cjs +2 -2
  106. package/dist/components/fx-morph.js +2 -2
  107. package/dist/components/fx-music.cjs +3 -3
  108. package/dist/components/fx-music.js +3 -3
  109. package/dist/components/fx-physics.cjs +2 -2
  110. package/dist/components/fx-physics.js +2 -2
  111. package/dist/components/fx-shop.cjs +2 -2
  112. package/dist/components/fx-shop.js +2 -2
  113. package/dist/components/fx-social.cjs +2 -2
  114. package/dist/components/fx-social.js +2 -2
  115. package/dist/components/fx-text.cjs +2 -2
  116. package/dist/components/fx-text.js +2 -2
  117. package/dist/components/fx-transitions.cjs +3 -3
  118. package/dist/components/fx-transitions.js +3 -3
  119. package/dist/components/fx-weather.cjs +2 -2
  120. package/dist/components/fx-weather.js +2 -2
  121. package/dist/components/fx.cjs +5 -5
  122. package/dist/components/fx.js +6 -6
  123. package/dist/components/fx2.cjs +10 -4
  124. package/dist/components/fx2.cjs.map +1 -1
  125. package/dist/components/fx2.d.cts +26 -1
  126. package/dist/components/fx2.d.ts +26 -1
  127. package/dist/components/fx2.js +10 -6
  128. package/dist/components/fx2.js.map +1 -1
  129. package/dist/components/gesture.cjs +3 -3
  130. package/dist/components/gesture.js +4 -4
  131. package/dist/components/interaction.cjs +1 -1
  132. package/dist/components/interaction.js +1 -1
  133. package/dist/components/jsx.d.cts +1 -1
  134. package/dist/components/jsx.d.ts +1 -1
  135. package/dist/components/layout.cjs +1 -1
  136. package/dist/components/layout.js +1 -1
  137. package/dist/components/lazy.cjs +1 -1
  138. package/dist/components/lazy.d.cts +1 -1
  139. package/dist/components/lazy.d.ts +1 -1
  140. package/dist/components/lazy.js +1 -1
  141. package/dist/components/lite.cjs +151 -206
  142. package/dist/components/lite.cjs.map +1 -1
  143. package/dist/components/lite.js +152 -206
  144. package/dist/components/lite.js.map +1 -1
  145. package/dist/components/marketplace.cjs +2 -2
  146. package/dist/components/marketplace.js +2 -2
  147. package/dist/components/packs.cjs +1 -1
  148. package/dist/components/packs.js +1 -1
  149. package/dist/components/page.cjs +2 -2
  150. package/dist/components/page.js +3 -3
  151. package/dist/components/perf.cjs +2 -2
  152. package/dist/components/perf.d.cts +1 -1
  153. package/dist/components/perf.d.ts +1 -1
  154. package/dist/components/perf.js +3 -3
  155. package/dist/components/physics.cjs +2 -2
  156. package/dist/components/physics.js +3 -3
  157. package/dist/components/react.cjs +1 -1
  158. package/dist/components/react.js +1 -1
  159. package/dist/components/reveal.cjs +1 -1
  160. package/dist/components/reveal.js +1 -1
  161. package/dist/components/solid.cjs +9 -9
  162. package/dist/components/solid.d.cts +2 -18
  163. package/dist/components/solid.d.ts +2 -18
  164. package/dist/components/solid.js +9 -9
  165. package/dist/components/svelte.cjs +9 -9
  166. package/dist/components/svelte.d.cts +2 -18
  167. package/dist/components/svelte.d.ts +2 -18
  168. package/dist/components/svelte.js +9 -9
  169. package/dist/components/svg.cjs +1 -1
  170. package/dist/components/svg.js +1 -1
  171. package/dist/components/text.cjs +2 -2
  172. package/dist/components/text.js +2 -2
  173. package/dist/components/timeline.cjs +2 -2
  174. package/dist/components/timeline.js +3 -3
  175. package/dist/components/transitions.cjs +1 -1
  176. package/dist/components/transitions.js +1 -1
  177. package/dist/components/ui.cjs +17 -108
  178. package/dist/components/ui.cjs.map +1 -1
  179. package/dist/components/ui.css +0 -1
  180. package/dist/components/ui.d.cts +3 -20
  181. package/dist/components/ui.d.ts +3 -20
  182. package/dist/components/ui.js +19 -109
  183. package/dist/components/ui.js.map +1 -1
  184. package/dist/components/vue.cjs +9 -9
  185. package/dist/components/vue.d.cts +2 -18
  186. package/dist/components/vue.d.ts +2 -18
  187. package/dist/components/vue.js +9 -9
  188. package/dist/components/webgl.cjs +1 -1
  189. package/dist/components/webgl.js +1 -1
  190. package/dist/components/widgets.cjs +373 -146
  191. package/dist/components/widgets.cjs.map +1 -1
  192. package/dist/components/widgets.d.cts +110 -2
  193. package/dist/components/widgets.d.ts +110 -2
  194. package/dist/components/widgets.js +369 -147
  195. package/dist/components/widgets.js.map +1 -1
  196. package/dist/components.cjs +9 -10
  197. package/dist/components.cjs.map +1 -1
  198. package/dist/components.css +0 -1
  199. package/dist/components.d.cts +4 -21
  200. package/dist/components.d.ts +4 -21
  201. package/dist/components.js +12 -12
  202. package/dist/components.umd.js +2 -2
  203. package/dist/components.umd.js.map +1 -1
  204. package/dist/index.cjs +2 -2
  205. package/dist/index.js +2 -2
  206. package/dist/index.umd.js +2 -2
  207. package/dist/index.umd.js.map +1 -1
  208. package/dist/widgets.umd.js +1 -1
  209. package/dist/widgets.umd.js.map +1 -1
  210. package/docs/ROADMAP.md +14 -12
  211. package/docs/accessibility.md +1 -2
  212. package/docs/components.md +44 -1
  213. package/docs/deprecations.md +1 -1
  214. package/docs/upgrading-8.md +9 -6
  215. package/package.json +41 -1
  216. package/dist/chunks/base-2-yYc93C.js.map +0 -1
  217. package/dist/chunks/base-BaQV-2ha.cjs.map +0 -1
  218. package/dist/chunks/index-tags-BTMwrfgV.cjs.map +0 -1
  219. package/dist/chunks/index-tags-C04JP8g4.js.map +0 -1
@@ -1,4 +1,4 @@
1
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).UsaComponents={})}(this,function(t){"use strict";const e=["full","gentle","minimal","static"],s={low:.6,normal:1,high:1.25},i={injectStyles:!0,reducedMotion:"user",motionIntensity:"normal",motionSensitivity:"full"};function a(t){(t={...t}).motionIntensity&&!(t.motionIntensity in s)&&delete t.motionIntensity,t.reducedMotion&&"reduce"!==t.reducedMotion&&(t.reducedMotion="user"),Object.assign(i,t),t.motionIntensity&&"undefined"!=typeof document&&(document.documentElement.style.setProperty("--usa-motion",String(s[t.motionIntensity]??1)),document.documentElement.setAttribute("data-usa-motion",t.motionIntensity)),t.motionSensitivity&&"undefined"!=typeof document&&("full"===t.motionSensitivity?document.documentElement.removeAttribute("data-usa-sensitivity"):document.documentElement.setAttribute("data-usa-sensitivity",t.motionSensitivity))}function r(){return i.motionSensitivity}const n=/rotate|scale|skew|perspective|matrix3d/;function o(t,e=i.motionSensitivity){return"full"!==e&&t.length?"static"===e?[t[t.length-1]]:t.map(t=>{const s={};for(const[i,a]of Object.entries(t))if("offset"===i||"easing"===i||"composite"===i)s[i]=a;else if("minimal"===e)"opacity"===i&&(s[i]=a);else{if("rotate"===i||"scale"===i||"transform"===i&&n.test(String(a)))continue;s[i]=a}return s}):t}function l(){return i.motionIntensity}function c(){return s[i.motionIntensity]??1}const u=()=>"undefined"!=typeof customElements&&"undefined"!=typeof HTMLElement;function d(){return"minimal"===i.motionSensitivity||"static"===i.motionSensitivity||("reduce"===i.reducedMotion||"function"==typeof matchMedia&&!!matchMedia("(prefers-reduced-motion: reduce)").matches)}const h=new Set;function p(t,e){if(!i.injectStyles||!e||h.has(t)||"undefined"==typeof document)return;h.add(t);try{if("function"==typeof CSSStyleSheet&&"adoptedStyleSheets"in document){const t=new CSSStyleSheet;return t.replaceSync(e),void(document.adoptedStyleSheets=[...document.adoptedStyleSheets,t])}}catch{}const s=document.createElement("style");s.setAttribute("data-usa",t),s.textContent=e,(document.head||document.documentElement).appendChild(s)}let f=null;function m(t,e,s){if("function"!=typeof t.animate||"static"===i.motionSensitivity)return g(t,e[e.length-1]),null;if(e=o(e),P>=F)return g(t,e[e.length-1]),null;const a=c();1!==a&&a>0&&"number"==typeof s.duration&&(s={...s,duration:s.duration*a,delay:(s.delay||0)*a});const r=t.animate(e,s);if(s.iterations!==1/0){P++;let t=!1;const e=()=>{t||(t=!0,P--)};r?.finished?.then(e,e)}return r}function g(t,e){if(e)for(const[s,i]of Object.entries(e))"offset"!==s&&"easing"!==s&&"composite"!==s&&null!=i&&(t.style[s]=String(i))}function b(t,e,s){if(!u())return;p("base",y),s&&p(s.id,s.text);const i=customElements.get(t);if(i)return i;const a=e(function(){if(f)return f;class t extends HTMLElement{constructor(){super(...arguments),this._cleanups=[],this._connected=!1}get reduced(){return d()}connectedCallback(){if(!this._connected){if(this._connected=!0,I?.(this.localName),"undefined"!=typeof document&&"loading"===document.readyState&&!this.nextSibling&&!this.childNodes.length){const t=()=>{this._connected&&this.isConnected&&this.mount()};return document.addEventListener("DOMContentLoaded",t,{once:!0}),void this._cleanups.push(()=>document.removeEventListener("DOMContentLoaded",t))}this.mount()}}disconnectedCallback(){this._connected=!1,this.teardown()}attributeChangedCallback(t,e,s){this._connected&&e!==s&&this.changed(t)}changed(t){this.teardown(),this.mount()}teardown(){this._cleanups.splice(0).reverse().forEach(t=>t()),this.unmount()}mount(){}unmount(){}str(t,e=""){const s=this.getAttribute(t);return null===s?e:s}num(t,e){const s=this.getAttribute(t),i=null===s||""===s.trim()?NaN:Number(s);return Number.isFinite(i)?i:e}flag(t){const e=this.getAttribute(t);return null!==e&&"false"!==e}setFlag(t,e){e?this.setAttribute(t,""):this.removeAttribute(t)}onCleanup(t){this._cleanups.push(t)}listen(t,e,s,i){t.addEventListener(e,s,i),this.onCleanup(()=>t.removeEventListener(e,s,i))}inView(t,e,s=this){if("undefined"==typeof IntersectionObserver)return void t(!0);const i=new IntersectionObserver(e=>{for(const s of e)t(s.isIntersecting,s)},e);i.observe(s),this.onCleanup(()=>i.disconnect())}motion(t,e,s){return m(t,e,s)}emit(t,e){return this.dispatchEvent(new CustomEvent(`usa:${t}`,{detail:e,bubbles:!0,cancelable:!0}))}}return f=t,f}());return customElements.define(t,a),a}const y=".usa-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}";function v(t){const e=document.createElement("span");return e.className="usa-sr",e.textContent=t,e}const x=new Map;let w=1,k=0,_=null;const A={frames:0,callbacks:0,peak:0,last:0},M=new Set;function E(t){k=0;const e=A.last&&t>A.last?t-A.last:16.7;A.last=t,A.frames++;const s=Array.from(x.values());x.clear(),A.callbacks+=s.length,A.peak=Math.max(A.peak,s.length);let i=null;for(const e of s)try{e(t)}catch(t){i??(i=t)}if(M.forEach(s=>s(t,e)),M.size&&S(),i)throw i}function S(){const t="function"==typeof requestAnimationFrame?requestAnimationFrame:null;k&&_===t||(_=t,k=t?t(E):setTimeout(()=>E($()),16))}const C=t=>{const e=w++;return x.set(e,t),S(),e},$=()=>"undefined"!=typeof performance?performance.now():Date.now(),T=t=>{x.delete(t)};function z(t){return M.add(t),S(),()=>M.delete(t)}let P=0,F=1/0;const L=()=>P;function q(t){F=t>0?t:1/0}const R=()=>F;let I=null;function N(t){I=t}const Y="cubic-bezier(0.22, 1, 0.36, 1)",B="cubic-bezier(0.34, 1.56, 0.64, 1)",O="cubic-bezier(0.1, 0.9, 0.2, 1)",X=new Set;function D(t,e){X.has(t)||(X.add(t),"undefined"!=typeof console&&console.warn(`[motionary] ${e}`))}function j(t,e,s){const i=t.getAttribute("kind");return i&&(Array.isArray(e)?e.includes(i):i in e)?i:s}const H=(t,e,s)=>Math.min(s,Math.max(e,t)),V=["fade","fade-up","fade-down","fade-left","fade-right","zoom-in","zoom-out","blur","blur-up","flip-up","flip-left","rise"];function U(t,e){const s=V.includes(t)?null:globalThis[Symbol.for("use-scroll-animate.presets")]?.[t];if(s)return[s.from,...s.frames||[],s.to];const i=function(t,e=32){const s=`${e}px`;switch(t){case"fade":return{opacity:0};case"fade-down":return{opacity:0,transform:`translate3d(0,-${s},0)`};case"fade-left":return{opacity:0,transform:`translate3d(-${s},0,0)`};case"fade-right":return{opacity:0,transform:`translate3d(${s},0,0)`};case"zoom-in":return{opacity:0,transform:"scale(0.86)"};case"zoom-out":return{opacity:0,transform:"scale(1.14)"};case"blur":return{opacity:0,filter:"blur(12px)"};case"blur-up":return{opacity:0,filter:"blur(10px)",transform:`translate3d(0,${s},0)`};case"flip-up":return{opacity:0,transform:"perspective(800px) rotateX(-55deg)",transformOrigin:"50% 100%"};case"flip-left":return{opacity:0,transform:"perspective(800px) rotateY(55deg)",transformOrigin:"0% 50%"};case"rise":return{opacity:0,transform:`translate3d(0,${1.5*e}px,0) scale(0.96)`};default:return{opacity:0,transform:`translate3d(0,${s},0)`}}}(t,e),a={};for(const t of Object.keys(i))"opacity"===t?a.opacity=1:"transform"===t?a.transform="none":"filter"===t?a.filter="none":"transformOrigin"===t&&(a.transformOrigin=i.transformOrigin);return[i,a]}var W='usa-reveal,usa-stagger{display:block}usa-reveal[data-state="hidden"],usa-stagger[data-state="hidden"]>*{opacity:0}@media (prefers-reduced-motion:reduce){usa-reveal[data-state="hidden"],usa-stagger[data-state="hidden"]>*{opacity:1}}';function G(t="usa-reveal"){return b(t,t=>class extends t{constructor(){super(...arguments),this._anim=null}static get observedAttributes(){return["effect","distance","repeat","threshold","root-margin"]}get effect(){return this.str("effect","fade-up")}set effect(t){this.setAttribute("effect",t)}get revealed(){return"hidden"!==this.getAttribute("data-state")}mount(){this.reduced?this.setAttribute("data-state","shown"):("shown"!==this.getAttribute("data-state")&&this.setAttribute("data-state","hidden"),this.inView(t=>{t?(this.emit("enter"),this.revealed||this.reveal()):(this.emit("leave"),this.flag("repeat")&&this.revealed&&this.reset())},{threshold:this.num("threshold",.15),rootMargin:this.str("root-margin","0px")}))}unmount(){this._anim?.cancel(),this._anim=null}reveal(){if(this._anim?.cancel(),this.setAttribute("data-state","shown"),this.reduced)return Promise.resolve();const t=this.motion(this,U(this.effect,this.num("distance",32)),{duration:this.num("duration",700),delay:this.num("delay",0),easing:this.str("easing",Y),fill:"backwards"});return this._anim=t,new Promise(e=>{const s=()=>{this._anim===t&&(this._anim=null),this.emit("complete"),e()};t?t.onfinish=s:s()})}reset(){this._anim?.cancel(),this._anim=null,this.reduced||this.setAttribute("data-state","hidden")}},{id:"reveal",text:W})}function K(t="usa-stagger"){return b(t,t=>class extends t{constructor(){super(...arguments),this._anims=[]}static get observedAttributes(){return["effect","repeat","threshold"]}mount(){this.reduced?this.setAttribute("data-state","shown"):("shown"!==this.getAttribute("data-state")&&this.setAttribute("data-state","hidden"),this.inView(t=>{t&&"hidden"===this.getAttribute("data-state")?(this.emit("enter"),this.reveal()):!t&&this.flag("repeat")&&this.reset()},{threshold:this.num("threshold",.1)}))}unmount(){this.cancel()}cancel(){this._anims.splice(0).forEach(t=>t.cancel())}reveal(){this.cancel(),this.setAttribute("data-state","shown");const t=Array.from(this.children);if(this.reduced||!t.length)return Promise.resolve();const e=U(this.str("effect","fade-up"),this.num("distance",24)),s=this.num("interval",70),i=this.num("delay",0),a=this.num("duration",600),r=this.str("easing",Y),n=t.map((t,n)=>this.motion(t,e,{duration:a,easing:r,delay:i+n*s,fill:"backwards"})).filter(t=>!!t);this._anims=n;const o=n[n.length-1];return new Promise(t=>{const e=()=>{this.emit("complete"),t()};o?o.onfinish=e:e()})}reset(){this.cancel(),this.reduced||this.setAttribute("data-state","hidden")}},{id:"reveal",text:W})}function J(t){if("undefined"==typeof window)return 0;const e=window.innerHeight||document.documentElement.clientHeight;if(t){const s=t.getBoundingClientRect(),i=s.height-e;return i<=0?s.top<=0?1:0:H(-s.top/i,0,1)}const s=document.documentElement,i=s.scrollHeight-e;return i<=0?0:H((window.scrollY||s.scrollTop)/i,0,1)}function Z(t="usa-scroll-progress"){return b(t,t=>class extends t{constructor(){super(...arguments),this._bar=null,this._p=-1,this._frame=0}static get observedAttributes(){return["target","label"]}get progress(){return Math.max(0,this._p)}mount(){this._bar||(this._bar=document.createElement("span"),this._bar.className="usa-progress-fill",this.replaceChildren(this._bar)),this.setAttribute("role","progressbar"),this.setAttribute("aria-valuemin","0"),this.setAttribute("aria-valuemax","100"),this.hasAttribute("aria-label")||this.setAttribute("aria-label",this.str("label","Reading progress"));const t=()=>{this._frame||(this._frame=C(()=>(this._frame=0,this.update())))};this.listen(window,"scroll",t,{passive:!0}),this.listen(window,"resize",t,{passive:!0}),this.update()}unmount(){T(this._frame),this._frame=0}update(){const t=this.getAttribute("target"),e=J(t?document.querySelector(t):null);if(Math.abs(e-this._p)<5e-4)return;this._p=e,this._bar&&(this._bar.style.transform=`scaleX(${e})`),this.style.setProperty("--usa-progress",String(e));const s=String(Math.round(100*e));this.getAttribute("aria-valuenow")!==s&&this.setAttribute("aria-valuenow",s),this.emit("progress",{progress:e})}},{id:"scroll-progress",text:'usa-scroll-progress{display:block;position:fixed;left:0;right:0;top:0;z-index:1000;height:var(--usa-progress-height,3px);background:var(--usa-progress-track,transparent);pointer-events:none;contain:strict}usa-scroll-progress[position="bottom"]{top:auto;bottom:0}usa-scroll-progress[position="inline"]{position:relative;z-index:auto;border-radius:999px;overflow:hidden}usa-scroll-progress .usa-progress-fill{display:block;height:100%;transform:scaleX(0);transform-origin:0 50%;background:var(--usa-progress-color,linear-gradient(90deg,#7c5cff,#22d3ee));will-change:transform}'})}function Q(t="usa-scrolly"){return b(t,t=>class extends t{constructor(){super(...arguments),this._active=-1}static get observedAttributes(){return["offset"]}get active(){return this._active}get steps(){return Array.from(this.querySelectorAll("[data-step]"))}mount(){const t=this.steps;if(!t.length)return;const e=H(this.num("offset",.5),0,1),s=Math.min(99,Math.round(100*e)),i=`-${s}% 0px -${Math.max(0,99-s)}% 0px`;if("undefined"==typeof IntersectionObserver)return void this.activate(0);const a=new IntersectionObserver(e=>{for(const s of e)s.isIntersecting&&this.activate(t.indexOf(s.target))},{rootMargin:i});t.forEach(t=>a.observe(t)),this.onCleanup(()=>a.disconnect()),this._active<0&&this.activate(0,!0)}activate(t,e=!1){const s=this.steps;if(t<0||t>=s.length||t===this._active)return;this._active=t,s.forEach((e,s)=>e.toggleAttribute("data-active",s===t));const i=s[t];this.setAttribute("active",String(t)),this.style.setProperty("--usa-step",String(t)),this.setAttribute("data-step-name",i.dataset.step||String(t)),e||this.emit("step",{index:t,step:i,name:i.dataset.step||""})}},{id:"scrolly",text:"usa-scrolly{display:block;position:relative}usa-scrolly [data-sticky]{position:sticky;top:var(--usa-sticky-top,0px)}usa-scrolly [data-step]{opacity:var(--usa-step-dim,0.35);transition:opacity 0.4s ease}usa-scrolly [data-step][data-active]{opacity:1}@media (prefers-reduced-motion:reduce){usa-scrolly [data-step]{transition:none}}"})}function tt(){G(),K(),Z(),Q()}function et(t="usa-typewriter"){return b(t,t=>class extends t{constructor(){super(...arguments),this._source=null,this._out=null,this._timer=0,this._running=!1}static get observedAttributes(){return["text","words"]}get phrases(){const t=this.getAttribute("words");return t?t.split("|").map(t=>t.trim()).filter(Boolean):[this.getAttribute("text")??this._source??""]}mount(){null===this._source&&(this._source=(this.textContent||"").trim());const t=this.phrases,e=v(t.join(", "));this._out=document.createElement("span"),this._out.className="usa-tw-text",this._out.setAttribute("aria-hidden","true");const s=document.createElement("span");if(s.className="usa-tw-caret",s.setAttribute("aria-hidden","true"),this.replaceChildren(e,this._out,s),this.toggleAttribute("data-no-cursor","false"===this.getAttribute("cursor")),this.reduced)return void(this._out.textContent=t[0]||"");const i=this.str("start","view");"load"===i?this.start():"view"===i&&this.inView(t=>{!t||this._running||this._out?.textContent||this.start()})}unmount(){this.stop()}stop(){clearTimeout(this._timer),this._timer=0,this._running=!1,this.removeAttribute("data-typing")}restart(){this.stop(),this._out&&(this._out.textContent=""),this.start()}start(){if(this._running||!this._out)return;const t=this._out,e=this.phrases;if(this.reduced)return void(t.textContent=e[0]||"");this._running=!0;const s=this.num("speed",55),i=this.num("delete-speed",30),a=this.num("pause",1400),r=this.flag("loop")||e.length>1;let n=0,o=0,l=!1;const c=()=>{const u=e[n]||"";if(l){if(o--,t.textContent=u.slice(0,Math.max(0,o)),o<=0)return l=!1,n=(n+1)%e.length,void(this._timer=setTimeout(c,4*s));this._timer=setTimeout(c,i)}else{if(o++,t.textContent=u.slice(0,o),this.setAttribute("data-typing",""),o>=u.length){this.removeAttribute("data-typing");const t=n===e.length-1;return t&&this.emit("complete"),!r&&t?void(this._running=!1):(l=!0,void(this._timer=setTimeout(c,a)))}this._timer=setTimeout(c,s*(.6+.8*Math.random()))}};this._timer=setTimeout(c,this.num("delay",0))}},{id:"typewriter",text:"usa-typewriter{white-space:pre-wrap}usa-typewriter .usa-tw-caret{display:inline-block;width:var(--usa-caret-width,0.08em);height:1.05em;margin-left:0.06em;vertical-align:-0.12em;background:var(--usa-caret-color,currentColor);animation:usa-caret 1.06s steps(1) infinite}usa-typewriter[data-typing] .usa-tw-caret{animation:none}usa-typewriter[data-no-cursor] .usa-tw-caret{display:none}@keyframes usa-caret{50%{opacity:0}}@media (prefers-reduced-motion:reduce){usa-typewriter .usa-tw-caret,usa-shimmer-text{animation:none}}"})}const st={duration:{instant:0,fast:150,normal:300,slow:600,slower:900,slowest:1400},easing:{linear:"linear",standard:"cubic-bezier(0.2, 0, 0, 1)",emphasized:"cubic-bezier(0.22, 1, 0.36, 1)",decelerate:"cubic-bezier(0, 0, 0, 1)",accelerate:"cubic-bezier(0.3, 0, 1, 1)",spring:"cubic-bezier(0.34, 1.56, 0.64, 1)",bounce:"cubic-bezier(0.68, -0.55, 0.265, 1.55)"},spring:{gentle:{stiffness:120,damping:14,mass:1},snappy:{stiffness:300,damping:30,mass:1},bouncy:{stiffness:260,damping:12,mass:1},wobbly:{stiffness:180,damping:8,mass:1},stiff:{stiffness:500,damping:40,mass:1}}};let it=at(st);function at(t){return{duration:{...t.duration},easing:{...t.easing},spring:Object.fromEntries(Object.entries(t.spring).map(([t,e])=>[t,{...e}]))}}function rt(t,e=st){const s=at(e);Object.assign(s.duration,t.duration||{}),Object.assign(s.easing,t.easing||{});for(const[e,i]of Object.entries(t.spring||{}))s.spring[e]={...s.spring[e]||{stiffness:170,damping:26,mass:1},...i};return s}const nt=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[\s_.]+/g,"-").toLowerCase();function ot(t=it,e="--usa"){const s={};for(const[i,a]of Object.entries(t.duration))s[`${e}-duration-${nt(i)}`]=`${a}ms`;for(const[i,a]of Object.entries(t.easing))s[`${e}-easing-${nt(i)}`]=a;for(const[i,a]of Object.entries(t.spring))s[`${e}-spring-${nt(i)}-stiffness`]=String(a.stiffness),s[`${e}-spring-${nt(i)}-damping`]=String(a.damping),s[`${e}-spring-${nt(i)}-mass`]=String(a.mass);return s}function lt(t){if("number"==typeof t&&isFinite(t))return t;if("object"==typeof t&&t&&"value"in t&&"unit"in t)return lt(`${t.value}${t.unit}`);const e=/^\s*(-?\d*\.?\d+)\s*(ms|s)?\s*$/.exec(String(t??""));return e?"s"===e[2]?1e3*Number(e[1]):Number(e[1]):void 0}function ct(t){if(Array.isArray(t)&&4===t.length&&t.every(t=>"number"==typeof t))return`cubic-bezier(${t.join(", ")})`;if("string"!=typeof t||!t.trim())return;const e=t.trim();return/^-?\d*\.?\d+(\s*,\s*-?\d*\.?\d+){3}$/.test(e)?`cubic-bezier(${e.split(/\s*,\s*/).join(", ")})`:e}function ut(t=st,e,s="--usa"){const i=it;it=rt(t,st);const a=e||("undefined"!=typeof document?document.documentElement:null),r=ot(it,s),n={};if(a)for(const[t,e]of Object.entries(r))n[t]=a.style.getPropertyValue(t),a.style.setProperty(t,e);return()=>{if(it=i,a)for(const[t,e]of Object.entries(n))e?a.style.setProperty(t,e):a.style.removeProperty(t)}}function dt(t,e){return it[t][e]??st[t][e]}function ht(t,e){return"number"==typeof t?t:"string"==typeof t?it.duration[t]??lt(t)??e:e}function pt(t,e){return t?it.easing[t]??t:e}function ft(t="view"){const e=globalThis;return"function"==typeof e["scroll"===t?"ScrollTimeline":"ViewTimeline"]&&"function"==typeof e.Element?.prototype?.animate}const mt=(t,e)=>Object.assign(t,{native:e}),gt={fade:[{opacity:0},{opacity:1}],"fade-up":[{opacity:0,transform:"translateY(24px)"},{opacity:1,transform:"none"}],"fade-down":[{opacity:0,transform:"translateY(-24px)"},{opacity:1,transform:"none"}],"fade-left":[{opacity:0,transform:"translateX(24px)"},{opacity:1,transform:"none"}],"fade-right":[{opacity:0,transform:"translateX(-24px)"},{opacity:1,transform:"none"}],scale:[{opacity:0,transform:"scale(0.85)"},{opacity:1,transform:"none"}],blur:[{opacity:0,filter:"blur(12px)"},{opacity:1,filter:"blur(0)"}],rotate:[{opacity:0,transform:"rotate(-12deg) scale(0.9)"},{opacity:1,transform:"none"}],"clip-up":[{clipPath:"inset(100% 0 0 0)"},{clipPath:"inset(0 0 0 0)"}],"clip-right":[{clipPath:"inset(0 100% 0 0)"},{clipPath:"inset(0 0 0 0)"}]};function bt(t,e,s,i={}){if(void 0===t||""===t||">"===t)return e;if("number"==typeof t)return Math.max(0,t);const a=String(t).trim();if(/^-?\d+(\.\d+)?$/.test(a))return Math.max(0,Number(a));const r=/^(<|>|[A-Za-z_][\w-]*)?\s*(?:([+-])=\s*(\d+(?:\.\d+)?))?$/.exec(a);if(!r)return e;const n="<"===r[1]?s:">"!==r[1]&&r[1]?i[r[1]]??e:e,o=r[2]?("-"===r[2]?-1:1)*Number(r[3]):0;return Math.max(0,n+o)}function yt(t={}){const e={duration:600,easing:"cubic-bezier(0.22, 1, 0.36, 1)",stagger:0,...t.defaults},s=[],i=[],a={};let r,n=0,o=0,l=0,u=0,h=1,p=!1;const f=()=>Math.max(n,...i.map(t=>t.at),0),m=(e,a)=>{(()=>{if(!p){p=!0;for(const t of s)"function"==typeof t.el.animate?(t.anim=t.el.animate(t.frames,{duration:t.duration,delay:t.start,easing:t.easing,fill:"both"}),t.anim.pause?.()):t.anim=null}})(),l=H(e,0,f());for(const t of s)t.anim?t.anim.currentTime=l:g(t.el,t.frames[l>=t.start?t.frames.length-1:0]);for(const t of i)(a<t.at&&l>=t.at||a>t.at&&l<=t.at)&&t.fn();t.onUpdate?.(f()?l/f():1)},b=()=>{u&&T(u),u=0},y=e=>{b(),r?.(),h=e;const s=h>0?f():0,i=c();if(d()||0===i||!f())return m(s,l),t.onComplete?.(),Promise.resolve();const a=(t.speed??1)/i;return new Promise(e=>{r=()=>{r=void 0,e()};let i=$();const n=()=>{const e=$(),o=l+(e-i)*a*h;if(i=e,m(o,l),h>0&&l>=s||h<0&&l<=0)return u=0,t.onComplete?.(),void r?.();u=C(n)};u=C(n)})},v={get duration(){return f()},get labels(){return{...a}},get time(){return l},to(t,i,r={}){const l="string"==typeof i?gt[i]||gt.fade:i,c=bt(r.at,n,o,a),u=ht(r.duration??e.duration,600),d=r.stagger??e.stagger;let h=c;return(t=>"string"==typeof t?"undefined"==typeof document?[]:Array.from(document.querySelectorAll(t)):t instanceof Element?[t]:Array.from(t))(t).forEach((t,i)=>{const a=c+i*d;s.push({el:t,frames:l,start:a,duration:u,easing:pt(r.easing??e.easing,"cubic-bezier(0.22, 1, 0.36, 1)")}),h=Math.max(h,a+u)}),o=c,n=Math.max(n,h),p=!1,s.forEach(t=>t.anim?.cancel?.()),v},label:(t,e)=>(a[t]=bt(e,n,o,a),v),call:(t,e)=>(i.push({fn:t,at:bt(e,n,o,a)}),v),play:t=>(void 0!==t?m(bt(t,0,0,a),l):l>=f()&&m(0,-1),y(1)),reverse:()=>y(-1),pause:()=>(b(),v),seek:t=>(b(),m(bt(t,0,0,a),l),v),progress:t=>(void 0!==t&&v.seek(H(t,0,1)*f()),f()?l/f():0),scrub(e,a={}){if(b(),d()||"undefined"==typeof window)return m(f(),l),mt(()=>{},!1);const r=a.source??"view",n=a.axis??"block";if(!(!!a.smooth||!!a.offset||i.length>0||!!t.onUpdate||"js"===a.engine)&&f()>0&&ft(r)&&s.every(t=>"function"==typeof t.el.animate)){const t=globalThis,i="scroll"===r?new t.ScrollTimeline({source:e,axis:n}):new t.ViewTimeline({subject:e,axis:n}),a=f();s.forEach(t=>t.anim?.cancel?.()),p=!1;const o=t=>`${(t/a*100).toFixed(3)}%`,c=s.map(t=>{const e="view"===r?{rangeStart:`cover ${o(t.start)}`,rangeEnd:`cover ${o(t.start+t.duration)}`}:{},s={easing:t.easing,fill:"both",timeline:i,...e};return"scroll"===r&&Object.assign(s,{duration:"auto",rangeStart:o(t.start),rangeEnd:o(t.start+t.duration)}),t.el.animate(t.frames,s)});return mt(()=>{c.forEach(t=>t.cancel()),m(l,l)},!0)}let o=0,c=l;const u="scroll"===r?e:null,h=()=>{o=0;const t=(()=>{const t="x"===n||"inline"===n;if(u){const e=t?u.scrollWidth-u.clientWidth:u.scrollHeight-u.clientHeight;return H((t?u.scrollLeft:u.scrollTop)/(e||1),0,1)}const s=e.getBoundingClientRect(),i=(t?window.innerWidth:window.innerHeight)||1,r=t?s.left:s.top,o=t?s.width:s.height;return H((i+(a.offset??0)-r)/(i+o||1),0,1)})()*f(),s=H(a.smooth??0,0,.95);c=s?c+(t-c)*(1-s):t,m(c,l),s&&Math.abs(t-c)>.5&&(o=C(h))},g=()=>{o||(o=C(h))},y=u||window;return y.addEventListener("scroll",g,{passive:!0}),window.addEventListener("resize",g,{passive:!0}),h(),mt(()=>{y.removeEventListener("scroll",g),window.removeEventListener("resize",g),o&&T(o)},!1)},cancel(){b(),r?.(),s.forEach(t=>t.anim?.cancel?.()),p=!1}};return v}const vt=/[\u2E80-\u2FFF\u3000-\u303F\u3040-\u30FF\u3100-\u312F\u3130-\u318F\u31A0-\u31FF\u3400-\u4DBF\u4E00-\u9FFF\uAC00-\uD7AF\uF900-\uFAFF\uFF00-\uFFEF]/,xt=/[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]/,wt=/[\u0590-\u08FF\uFB1D-\uFDFF\uFE70-\uFEFF]/;function kt(t,e){const s=globalThis.Intl?.Segmenter;if("function"!=typeof s)return null;try{return new s(t||void 0,{granularity:e})}catch{return null}}function _t(t,e){const s=kt(e,"grapheme");return s?Array.from(s.segment(t),t=>t.segment):Array.from(t)}function At(t,e){const s=kt(e,"word"),i=[];if(s){for(const e of s.segment(t)){const t=i[i.length-1];e.isWordLike||/^\s+$/.test(e.segment)||!t||/^\s+$/.test(t)?i.push(e.segment):i[i.length-1]=t+e.segment}return i}for(const e of t.split(/(\s+)/))if(e)if(/^\s+$/.test(e)||!vt.test(e))i.push(e);else{let t="";for(const s of Array.from(e))vt.test(s)?(t&&(i.push(t),t=""),i.push(s)):/[\p{P}]/u.test(s)&&i.length?i[i.length-1]+=s:t+=s;t&&i.push(t)}return i}function Mt(t,e={}){const s=new Set((Array.isArray(e.by)?e.by:String(e.by??"char").split(/[\s,]+/)).filter(Boolean)),i=e.className||"usa-split",a=e.locale||t.closest?.("[lang]")?.getAttribute("lang")||void 0,r=Array.from(t.childNodes).map(t=>t.cloneNode(!0)),n=t.textContent||"",o=function(t,e){const s=t.closest?.("[dir]")?.getAttribute("dir");if("rtl"===s||"ltr"===s)return s;try{if("rtl"===getComputedStyle(t).direction)return"rtl"}catch{}return wt.test(e)&&!/[A-Za-z]/.test(e.replace(wt,""))?"rtl":"ltr"}(t,n),l=[],c=[];let u=[];const d=t.ownerDocument,h=(t,e)=>{const s=d.createElement("span");return s.className=t,void 0!==e&&(s.textContent=e),s},p=t=>{if(3===t.nodeType){const e=d.createDocumentFragment();for(const r of At(t.nodeValue||"",a)){if(/^\s+$/.test(r)){e.append(d.createTextNode(r));continue}const t=h(`${i}-word`);if(t.style.display="inline-block",t.style.whiteSpace="nowrap",t.dataset.index=String(c.length),c.push(t),s.has("char")&&!xt.test(r))for(const e of _t(r,a)){const s=h(`${i}-char`,e);s.style.display="inline-block",s.dataset.index=String(l.length),l.push(s),t.append(s)}else t.textContent=r,s.has("char")&&(t.dataset.whole="",l.push(t));e.append(t)}t.parentNode.replaceChild(e,t)}else 1!==t.nodeType||/^(BR|SCRIPT|STYLE|SVG|IMG)$/i.test(t.tagName)||Array.from(t.childNodes).forEach(p)},f=d.createElement("span");f.setAttribute("aria-hidden","true"),f.className=`${i}-body`,r.forEach(t=>f.append(t.cloneNode(!0))),Array.from(f.childNodes).forEach(p);const m=h(`${i}-sr`,n.replace(/\s+/g," ").trim());m.setAttribute("style","position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0"),t.replaceChildren(m,f),t.setAttribute("data-split",[...s].join(" ")),"rtl"===o&&t.setAttribute("data-split-dir","rtl");const g=()=>{for(const t of u)t.replaceWith(...Array.from(t.childNodes));if(u=[],!s.has("line")||!c.length)return u;const t=[];let e=null;for(const s of c){const i=Math.round(s.offsetTop);(null===e||Math.abs(i-e)>2)&&t.push([]),t[t.length-1].push(s),e=i}return t.forEach((t,e)=>{const s=t[0].parentNode,a=t.filter(t=>t.parentNode===s),r=h(`${i}-line`);r.style.display="inline-block",r.dataset.index=String(e),s.insertBefore(r,a[0]);let n=a[0];const o=a[a.length-1];for(;n;){const t=n.nextSibling;if(r.append(n),n===o)break;n=t}u.push(r)}),u};return g(),{chars:l,words:c,get lines(){return u},direction:o,relayout:g,revert(){t.replaceChildren(...r.map(t=>t.cloneNode(!0))),t.removeAttribute("data-split"),t.removeAttribute("data-split-dir")}}}function Et(t,e="start",s=1){const i=Array.from({length:t},(t,e)=>e),a=(t-1)/2;if("end"===e)return i.map(e=>t-1-e);if("center"===e)return i.map(t=>Math.round(2*Math.abs(t-a))/2);if("edges"===e)return i.map(t=>Math.round(2*(a-Math.abs(t-a)))/2);if("random"===e){let t=s;const e=()=>(t=16807*t%2147483647)/2147483647,a=i.slice().sort(()=>e()-.5),r=[];return a.forEach((t,e)=>r[t]=e),r}return i}function St(t="usa-split-text"){return b(t,t=>class extends t{constructor(){super(...arguments),this._source=null,this._timer=0,this._steps=0}static get observedAttributes(){return["by","text"]}get units(){return Array.from(this.querySelectorAll(".usa-split-unit"))}mount(){null===this._source&&(this._source=this.getAttribute("text")??(this.textContent||"").replace(/\s+/g," ").trim());const t=this.getAttribute("text")??this._source,e=this.str("by","chars"),s="chars"!==e,i=this.closest("[lang]")?.getAttribute("lang")||void 0,a=document.createDocumentFragment();a.append(v(t));const r=[];for(const e of At(t,i)){if(/^\s+$/.test(e)){a.append(" ");continue}const t=document.createElement("span");t.className="usa-split-word",t.setAttribute("aria-hidden","true");const n=s||xt.test(e)?[e]:_t(e,i);for(const e of n){const s=document.createElement("span");s.className="usa-split-unit",s.textContent=e,r.push(s),t.append(s)}a.append(t)}this.replaceChildren(a);let n=r.map((t,e)=>e);if("lines"===e){let t=-1,e=null;n=r.map(s=>{const i=Math.round(s.parentElement.offsetTop);return(null===e||Math.abs(i-e)>2)&&t++,e=i,t})}const o=Et(Math.max(0,...n)+1,this.str("from","start"));r.forEach((t,e)=>t.style.setProperty("--i",String(o[n[e]]??0)));const l=Math.max(0,...r.map((t,e)=>o[n[e]]??0))+1;if(this._steps=l,this.style.setProperty("--usa-split-stagger",`${this.num("stagger","lines"===e?140:s?70:28)}ms`),this.style.setProperty("--usa-split-duration",`${this.num("duration",620)}ms`),this.style.setProperty("--usa-split-delay",`${this.num("delay",0)}ms`),this.style.setProperty("--usa-split-count",String(l)),this.reduced)return void this.setAttribute("data-state","shown");this.setAttribute("data-state","hidden");const c=this.str("trigger","view");"load"===c?this.play():"view"===c&&this.inView(t=>{t&&"hidden"===this.getAttribute("data-state")?this.play():!t&&this.flag("repeat")&&this.reset()},{threshold:.2})}unmount(){clearTimeout(this._timer)}play(){if(clearTimeout(this._timer),this.reduced)return void this.setAttribute("data-state","shown");this.setAttribute("data-state","hidden"),this.offsetWidth,this.setAttribute("data-state","play");const t=this.str("by","chars"),e=this.num("delay",0)+this.num("duration",620)+Math.max(0,this._steps-1)*this.num("stagger","lines"===t?140:"words"===t?70:28);this._timer=setTimeout(()=>{this.setAttribute("data-state","shown"),this.emit("complete")},e)}reset(){clearTimeout(this._timer),this.setAttribute("data-state",this.reduced?"shown":"hidden")}},{id:"split-text",text:'usa-split-text .usa-split-word{display:inline-block;white-space:nowrap}usa-split-text .usa-split-unit{display:inline-block;white-space:pre}usa-split-text[data-state="hidden"] .usa-split-unit{opacity:0}usa-split-text[data-state="play"] .usa-split-unit{animation:usa-split-rise var(--usa-split-duration,620ms) cubic-bezier(0.22,1,0.36,1) both;animation-delay:calc(var(--usa-split-delay,0ms) + var(--i,0) * var(--usa-split-stagger,28ms))}usa-split-text[effect="fade"][data-state="play"] .usa-split-unit{animation-name:usa-split-fade}usa-split-text[effect="blur"][data-state="play"] .usa-split-unit{animation-name:usa-split-blur}usa-split-text[effect="flip"][data-state="play"] .usa-split-unit{animation-name:usa-split-flip;transform-origin:50% 100%}usa-split-text[effect="pop"][data-state="play"] .usa-split-unit{animation-name:usa-split-pop;animation-timing-function:cubic-bezier(0.34,1.56,0.64,1)}@keyframes usa-split-rise{from{opacity:0;transform:translate3d(0,0.6em,0)}to{opacity:1;transform:none}}@keyframes usa-split-fade{from{opacity:0}to{opacity:1}}@keyframes usa-split-blur{from{opacity:0;filter:blur(8px)}to{opacity:1;filter:none}}@keyframes usa-split-flip{from{opacity:0;transform:perspective(500px) rotateX(-80deg)}to{opacity:1;transform:none}}@keyframes usa-split-pop{from{opacity:0;transform:scale(0.3)}to{opacity:1;transform:none}}@media (prefers-reduced-motion:reduce){usa-split-text .usa-split-unit{animation:none !important;opacity:1 !important}}'})}const Ct="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789#%&*+=<>/\\?!";function $t(t,e,s=Ct,i=Math.random){const a=Math.floor(t.length*e);let r="";for(let e=0;e<t.length;e++){const n=t[e];r+=e<a||/\s|[.,:;!?'"()\-–—]/.test(n)?n:s[Math.floor(i()*s.length)]}return r}function Tt(t="usa-scramble"){return b(t,t=>class extends t{constructor(){super(...arguments),this._source=null,this._out=null,this._frame=0}static get observedAttributes(){return["text"]}get text(){return this.getAttribute("text")??this._source??""}mount(){if(null===this._source&&(this._source=(this.textContent||"").trim()),this._out=document.createElement("span"),this._out.setAttribute("aria-hidden","true"),this._out.textContent=this.text,this.replaceChildren(v(this.text),this._out),this.reduced)return;const t=this.str("trigger","view");if("load"===t)this.play();else if("hover"===t)this.listen(this,"pointerenter",()=>this.play()),this.listen(this,"focusin",()=>this.play());else if("view"===t){let t=!1;this.inView(e=>{e&&!t&&(t=!0,this.play())})}}unmount(){T(this._frame),this._frame=0}play(){T(this._frame);const t=this._out,e=this.text;if(!t||this.reduced)return t&&(t.textContent=e),Promise.resolve();const s=this.num("duration",900),i=this.str("chars",Ct)||Ct,a=$();let r=-1;return new Promise(n=>{const o=()=>{const l=Math.min(1,Math.max(0,$()-a)/s),c=Math.floor(l*s/33);c===r&&1!==l||(r=c,t.textContent=1===l?e:$t(e,l,i)),l<1?this._frame=C(o):(this._frame=0,this.emit("complete"),n())};this._frame=C(o)})}},void 0)}const zt=t=>t>=1?1:1-Math.pow(2,-10*t);function Pt(t="usa-counter"){return b(t,t=>class extends t{constructor(){super(...arguments),this._current=NaN,this._target=NaN,this._frame=0,this._fmt=null}static get observedAttributes(){return["to","decimals","locale","prefix","suffix","grouping"]}get value(){return Number.isNaN(this._target)?this.num("to",0):this._target}set value(t){this.play(Number(t))}format(t){if(!this._fmt){const t=Math.max(0,Math.min(20,this.num("decimals",0))),e=this.getAttribute("locale")||"undefined"!=typeof document&&document.documentElement.lang||void 0;try{this._fmt=new Intl.NumberFormat(e,{minimumFractionDigits:t,maximumFractionDigits:t,useGrouping:"false"!==this.getAttribute("grouping")})}catch{this._fmt=new Intl.NumberFormat(void 0,{minimumFractionDigits:t,maximumFractionDigits:t})}}return`${this.str("prefix")}${this._fmt.format(t)}${this.str("suffix")}`}render(t){this._current=t,this.textContent=this.format(t)}changed(t){this._fmt=null,"to"===t?this.play():this.render(Number.isNaN(this._current)?this.num("from",0):this._current)}mount(){this._fmt=null;const t=this.num("to",0);if(this.reduced)return this._target=t,void this.render(t);Number.isNaN(this._current)&&this.render(this.num("from",0));const e=this.str("start","view");if("load"===e)this.play();else if("view"===e){let t=!1;this.inView(e=>{e&&!t&&(t=!0,this.play())},{threshold:.4})}}unmount(){T(this._frame),this._frame=0}play(t=this.num("to",0)){T(this._frame),this._target=t;const e=Number.isNaN(this._current)?this.num("from",0):this._current;if(this.reduced||e===t||!this.isConnected)return this.render(t),this.emit("complete",{value:t}),Promise.resolve();const s=this.num("duration",1600),i=$();return new Promise(a=>{const r=()=>{const n=Math.min(1,Math.max(0,$()-i)/s);this.render(e+(t-e)*zt(n)),n<1?this._frame=C(r):(this._frame=0,this.render(t),this.emit("complete",{value:t}),a())};this._frame=C(r)})}},{id:"counter",text:"usa-counter{font-variant-numeric:tabular-nums}"})}function Ft(t="usa-shimmer-text"){return b(t,t=>class extends t{static get observedAttributes(){return["duration","color","shine","angle"]}mount(){const t=(t,e,s="")=>{const i=this.getAttribute(t);null!==i?this.style.setProperty(e,i+s):this.style.removeProperty(e)};t("duration","--usa-shimmer-duration","ms"),t("color","--usa-shimmer-color"),t("shine","--usa-shimmer-shine"),t("angle","--usa-shimmer-angle","deg")}},{id:"shimmer-text",text:"usa-shimmer-text{--usa-shimmer-color:currentColor;--usa-shimmer-shine:#fff;background:linear-gradient(var(--usa-shimmer-angle,110deg),var(--usa-shimmer-color) 35%,var(--usa-shimmer-shine) 50%,var(--usa-shimmer-color) 65%) 0 0 / 250% 100%;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent;animation:usa-shimmer var(--usa-shimmer-duration,2600ms) linear infinite}@keyframes usa-shimmer{from{background-position:100% 0}to{background-position:-150% 0}}"})}function Lt(t="usa-text-rotate"){return b(t,t=>class extends t{constructor(){super(...arguments),this._source=null,this._index=0,this._timer=0,this._visible=!0}static get observedAttributes(){return["words","interval","paused"]}get index(){return this._index}get words(){return(this.getAttribute("words")??this._source??"").split("|").map(t=>t.trim()).filter(Boolean)}mount(){null===this._source&&(this._source=(this.textContent||"").trim());const t=this.words;this.replaceChildren(v(t.join(", ")),...t.map((t,e)=>{const s=document.createElement("span");return s.className="usa-rotate-word",s.textContent=t,s.setAttribute("aria-hidden","true"),e!==this._index&&s.setAttribute("data-hidden",""),s})),this._index>=t.length&&(this._index=0),t.length<2||(this.inView(t=>this._visible=t),this.flag("paused")||(this._timer=setInterval(()=>{!this._visible||"undefined"!=typeof document&&document.hidden||this.next()},Math.max(400,this.num("interval",2200)))))}unmount(){clearInterval(this._timer),this._timer=0}next(){const t=Array.from(this.querySelectorAll(".usa-rotate-word"));if(t.length<2)return;const e=t[this._index];this._index=(this._index+1)%t.length;const s=t[this._index];e.setAttribute("data-hidden",""),s.removeAttribute("data-hidden");const i=this.reduced?"fade":this.str("effect","slide"),[a,r]="fade"===i?[{opacity:0},{opacity:0}]:"flip"===i?[{opacity:0,transform:"perspective(400px) rotateX(-90deg)"},{opacity:0,transform:"perspective(400px) rotateX(90deg)"}]:"blur"===i?[{opacity:0,filter:"blur(8px)"},{opacity:0,filter:"blur(8px)"}]:[{opacity:0,transform:"translateY(0.8em)"},{opacity:0,transform:"translateY(-0.8em)"}],n={opacity:1,transform:"none",filter:"none"},o=t=>Object.fromEntries(Object.keys(t).map(t=>[t,n[t]]));this.motion(e,[{...o(r)},r],{duration:380,easing:Y}),this.motion(s,[a,o(a)],{duration:520,easing:"slide"===i?B:Y}),this.emit("change",{index:this._index,word:s.textContent})}},{id:"text-rotate",text:"usa-text-rotate{display:inline-grid;vertical-align:bottom;overflow:hidden;padding-block:0.08em}usa-text-rotate .usa-rotate-word{grid-area:1 / 1;white-space:nowrap}usa-text-rotate .usa-rotate-word[data-hidden]{opacity:0}"})}var qt='usa-wave-text .usa-word,usa-scroll-highlight .usa-word{display:inline-block;white-space:nowrap}usa-wave-text .usa-char{display:inline-block;animation:usa-wave var(--usa-wave-s,1.6s) ease-in-out infinite;animation-delay:calc(var(--i) * var(--usa-wave-d,0.06s))}@keyframes usa-wave{0%,60%,100%{transform:translateY(0)}30%{transform:translateY(calc(var(--usa-wave-a,0.25em) * -1))}}usa-glitch{position:relative;display:inline-block}usa-glitch::before,usa-glitch::after{content:attr(data-text);position:absolute;inset:0;pointer-events:none}usa-glitch::before{color:#ff2bd6;transform:translate(calc(var(--usa-glitch-i,3px) * -1),0);clip-path:inset(0 0 55% 0);mix-blend-mode:screen;animation:usa-glitch-a 2.4s steps(2,end) infinite}usa-glitch::after{color:#00f0ff;transform:translate(var(--usa-glitch-i,3px),0);clip-path:inset(50% 0 0 0);mix-blend-mode:screen;animation:usa-glitch-b 1.9s steps(2,end) infinite}usa-glitch[trigger="hover"]::before,usa-glitch[trigger="hover"]::after{animation-play-state:paused;opacity:0}usa-glitch[trigger="hover"]:hover::before,usa-glitch[trigger="hover"]:hover::after{animation-play-state:running;opacity:1}@keyframes usa-glitch-a{0%{clip-path:inset(0 0 80% 0)}20%{clip-path:inset(30% 0 40% 0)}40%{clip-path:inset(70% 0 5% 0)}60%{clip-path:inset(10% 0 60% 0)}80%{clip-path:inset(50% 0 30% 0)}100%{clip-path:inset(0 0 80% 0)}}@keyframes usa-glitch-b{0%{clip-path:inset(60% 0 10% 0)}25%{clip-path:inset(15% 0 70% 0)}50%{clip-path:inset(80% 0 2% 0)}75%{clip-path:inset(40% 0 35% 0)}100%{clip-path:inset(60% 0 10% 0)}}usa-gradient-text{background:var(--usa-grad) 0 50% / 300% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;animation:usa-grad-flow var(--usa-grad-s,6s) linear infinite}@keyframes usa-grad-flow{to{background-position:150% 50%}}usa-handwriting{--usa-hw-stroke:currentColor;display:inline-block;line-height:0}usa-handwriting svg{width:auto;max-width:100%;height:auto;overflow:visible}usa-handwriting text{fill:transparent;stroke:var(--usa-hw-stroke);stroke-width:1.2;stroke-dasharray:1600;stroke-dashoffset:1600;font-family:"Segoe Script","Brush Script MT","Snell Roundhand",cursive}usa-handwriting[data-state="drawing"] text{animation:usa-hw-draw var(--usa-hw-d,2400ms) cubic-bezier(0.55,0,0.45,1) forwards,usa-hw-fill 0.6s ease calc(var(--usa-hw-d,2400ms) * 0.8) forwards}usa-handwriting[data-state="done"] text{stroke-dashoffset:0;fill:currentColor}@keyframes usa-hw-draw{to{stroke-dashoffset:0}}@keyframes usa-hw-fill{to{fill:currentColor}}usa-scroll-highlight .usa-hl-word{opacity:var(--usa-hl-dim,0.2);transition:opacity 0.35s ease}usa-scroll-highlight .usa-hl-word[data-on]{opacity:1}usa-scroll-highlight[mode="marker"]{--usa-hl-color:color-mix(in srgb,#facc15 55%,transparent);background:linear-gradient(var(--usa-hl-color),var(--usa-hl-color)) 0 88% / 0% 40% no-repeat;transition:background-size 1s cubic-bezier(0.65,0,0.35,1);-webkit-box-decoration-break:clone;box-decoration-break:clone}usa-scroll-highlight[mode="marker"][data-lit]{background-size:100% 40%}@media (prefers-reduced-motion:reduce){usa-wave-text .usa-char,usa-glitch::before,usa-glitch::after,usa-gradient-text{animation:none !important}usa-glitch::before,usa-glitch::after{display:none}usa-scroll-highlight .usa-hl-word,usa-scroll-highlight[mode="marker"]{transition:none}}';const Rt=t=>t.getAttribute("text")??t.dataset.usaText??(t.dataset.usaText=(t.textContent||"").trim());function It(t="usa-wave-text"){return b(t,t=>class extends t{static get observedAttributes(){return["text"]}mount(){!function(t,e){const s=document.createElement("span");s.setAttribute("aria-hidden","true");const i=[];e.split(/(\s+)/).forEach(t=>{if(/^\s+$/.test(t))return void s.append(document.createTextNode(t));const e=document.createElement("span");e.className="usa-word";for(const s of Array.from(t)){const t=document.createElement("span");t.className="usa-char",t.textContent=s,t.style.setProperty("--i",String(i.length)),e.append(t),i.push(t)}s.append(e)}),t.replaceChildren(v(e),s)}(this,Rt(this)),this.style.setProperty("--usa-wave-a",`${this.num("amplitude",.25)}em`),this.style.setProperty("--usa-wave-s",`${this.num("speed",1.6)}s`),this.style.setProperty("--usa-wave-d",`${this.num("stagger",.06)}s`)}},{id:"text-fx",text:qt})}function Nt(t="usa-glitch"){return b(t,t=>class extends t{static get observedAttributes(){return["text","intensity"]}mount(){const t=Rt(this);this.setAttribute("data-text",t),this.style.setProperty("--usa-glitch-i",`${this.num("intensity",3)}px`),this.firstChild||(this.textContent=t)}},{id:"text-fx",text:qt})}function Yt(t="usa-gradient-text"){return b(t,t=>class extends t{static get observedAttributes(){return["colors","speed","angle"]}mount(){const t=this.str("colors","#7c5cff,#22d3ee,#f472b6,#facc15").split(",").map(t=>t.trim());this.style.setProperty("--usa-grad",`linear-gradient(${this.num("angle",90)}deg, ${[...t,t[0]].join(", ")})`),this.style.setProperty("--usa-grad-s",`${this.num("speed",6)}s`)}},{id:"text-fx",text:qt})}function Bt(t="usa-handwriting"){return b(t,t=>class extends t{static get observedAttributes(){return["text","size","font"]}mount(){const t=Rt(this),e=this.num("size",64),s=Math.ceil(t.length*e*.62)+8;this.replaceChildren(v(t)),this.insertAdjacentHTML("beforeend",`<svg aria-hidden="true" viewBox="0 0 ${s} ${Math.ceil(1.3*e)}" width="${s}" height="${Math.ceil(1.3*e)}"><text x="4" y="${Math.round(e)}" font-size="${e}"></text></svg>`);const i=this.querySelector("text");i.textContent=t,this.str("font")&&i.setAttribute("font-family",this.str("font")),this.str("stroke")&&this.style.setProperty("--usa-hw-stroke",this.str("stroke")),this.style.setProperty("--usa-hw-d",`${this.num("duration",2400)}ms`),this.reduced?this.setAttribute("data-state","done"):this.inView(t=>t&&this.play(),{threshold:.3})}play(){this.removeAttribute("data-state"),this.offsetWidth,this.setAttribute("data-state","drawing"),setTimeout(()=>{this.setAttribute("data-state","done"),this.emit("complete")},this.reduced?0:this.num("duration",2400))}},{id:"text-fx",text:qt})}function Ot(t="usa-scroll-highlight"){return b(t,t=>class extends t{constructor(){super(...arguments),this._f=0,this._p=0}static get observedAttributes(){return["mode","text"]}get progress(){return this._p}mount(){const t=this.str("mode","words");if(this.str("color")&&this.style.setProperty("--usa-hl-color",this.str("color")),this.style.setProperty("--usa-hl-dim",String(this.num("dim",.2))),"marker"===t)return void(this.reduced?this.setAttribute("data-lit",""):this.inView(t=>t&&this.setAttribute("data-lit",""),{threshold:.6}));const e=Rt(this),s=document.createElement("span");s.setAttribute("aria-hidden","true");const i=e.split(/\s+/).filter(Boolean).map(t=>{const e=document.createElement("span");return e.className="usa-hl-word",e.textContent=t,s.append(e," "),e});if(this.replaceChildren(v(e),s),this.reduced)return void i.forEach(t=>t.setAttribute("data-on",""));const a=()=>{this._f=0;const t=this.getBoundingClientRect(),e=window.innerHeight||800;this._p=H((.85*e-t.top)/(t.height+.35*e),0,1);const s=Math.round(this._p*i.length);i.forEach((t,e)=>t.toggleAttribute("data-on",e<s))},r=()=>!this._f&&(this._f=C(a));let n=!1;this.inView(t=>{t!==n&&(n=t,t?window.addEventListener("scroll",r,{passive:!0}):window.removeEventListener("scroll",r),r())}),this.onCleanup(()=>window.removeEventListener("scroll",r))}unmount(){T(this._f),this._f=0}},{id:"text-fx",text:qt})}function Xt(){et(),St(),Tt(),Pt(),Ft(),Lt(),It(),Nt(),Yt(),Bt(),Ot()}function Dt(t="usa-ripple"){return b(t,t=>class extends t{static get observedAttributes(){return[]}mount(){this.listen(this,"pointerdown",t=>{0!==t.button&&"mouse"===t.pointerType||this.ripple(t.clientX,t.clientY)}),this.listen(this,"keydown",t=>{"Enter"!==t.key&&" "!==t.key||t.repeat||this.ripple()})}ripple(t,e){if(this.flag("disabled"))return;const s=this.getBoundingClientRect(),i=this.flag("centered")||void 0===t||void 0===e,a=i?s.width/2:t-s.left,r=i?s.height/2:e-s.top,n=Math.hypot(Math.max(a,s.width-a),Math.max(r,s.height-r)),o=document.createElement("span");o.className="usa-ripple-wave",o.setAttribute("aria-hidden","true");const l=2*n;o.style.cssText=`width:${l}px;height:${l}px;left:${a-n}px;top:${r-n}px;background:${this.str("color","currentColor")}`,this.append(o);const c=this.num("opacity",.22),u=this.num("duration",550),d=this.reduced?[{opacity:c},{opacity:0}]:[{transform:"scale(0)",opacity:c},{transform:"scale(1)",opacity:c,offset:.7},{transform:"scale(1)",opacity:0}],h=this.motion(o,d,{duration:this.reduced?300:u,easing:Y,fill:"forwards"});h?h.onfinish=()=>o.remove():setTimeout(()=>o.remove(),0)}},{id:"ripple",text:"usa-ripple{position:relative;display:inline-block;overflow:hidden;isolation:isolate;border-radius:inherit;-webkit-tap-highlight-color:transparent}usa-ripple[block]{display:block}usa-ripple .usa-ripple-wave{position:absolute;border-radius:50%;pointer-events:none;transform:scale(0);z-index:-1;will-change:transform,opacity}"})}function jt(t="usa-magnetic"){return b(t,t=>class extends t{constructor(){super(...arguments),this._frame=0}static get observedAttributes(){return["strength","radius","disabled"]}mount(){if(this.reduced||this.flag("disabled"))return;if("function"==typeof matchMedia&&!matchMedia("(hover: hover) and (pointer: fine)").matches)return;const t=this.num("strength",.35),e=this.num("radius",60);let s=0,i=0,a=!1;const r=()=>{this._frame=0;const r=this.getBoundingClientRect(),n=s-(r.left+r.width/2),o=i-(r.top+r.height/2);Math.abs(n)<r.width/2+e&&Math.abs(o)<r.height/2+e?(a=!0,this.setAttribute("data-active",""),this.style.setProperty("--usa-mx",`${(n*t).toFixed(2)}px`),this.style.setProperty("--usa-my",`${(o*t).toFixed(2)}px`)):a&&this.release()};this.listen(document,"pointermove",t=>{"mouse"!==t.pointerType&&"pen"!==t.pointerType||(s=t.clientX,i=t.clientY,this._frame||(this._frame=C(r)))},{passive:!0}),this.listen(document,"pointerleave",()=>this.release()),this.listen(window,"blur",()=>this.release())}release(){this.removeAttribute("data-active"),this.style.removeProperty("--usa-mx"),this.style.removeProperty("--usa-my")}unmount(){T(this._frame),this._frame=0,this.release()}},{id:"magnetic",text:"usa-magnetic{display:inline-block}usa-magnetic>*{transform:translate3d(var(--usa-mx,0px),var(--usa-my,0px),0);transition:transform 0.6s cubic-bezier(0.34,1.56,0.64,1)}usa-magnetic[data-active]>*{transition-duration:0.15s;transition-timing-function:ease-out}@media (prefers-reduced-motion:reduce){usa-magnetic>*,usa-tilt,usa-toggle .usa-toggle-knob{transition:none}}"})}function Ht(t="usa-tilt"){return b(t,t=>class extends t{constructor(){super(...arguments),this._frame=0,this._glare=null}static get observedAttributes(){return["max","scale","perspective","glare","reverse","disabled"]}mount(){if(this.flag("glare")&&!this._glare?(this._glare=document.createElement("span"),this._glare.className="usa-tilt-glare",this._glare.setAttribute("aria-hidden","true"),this.append(this._glare)):!this.flag("glare")&&this._glare&&(this._glare.remove(),this._glare=null),this.reduced||this.flag("disabled"))return;const t=this.num("max",10)*(this.flag("reverse")?-1:1),e=this.num("scale",1.03),s=this.num("perspective",900);let i=.5,a=.5,r=null;const n=()=>{this._frame=0;const r=H(2*i-1,-1,1),n=H(2*a-1,-1,1);this.style.transform=`perspective(${s}px) rotateX(${(-n*t).toFixed(2)}deg) rotateY(${(r*t).toFixed(2)}deg) scale(${e})`,this.style.setProperty("--usa-tilt-x",r.toFixed(3)),this.style.setProperty("--usa-tilt-y",n.toFixed(3)),this.style.setProperty("--usa-glare-x",`${(100*i).toFixed(1)}%`),this.style.setProperty("--usa-glare-y",`${(100*a).toFixed(1)}%`)};this.listen(this,"pointerenter",t=>{"touch"!==t.pointerType&&(r=this.getBoundingClientRect(),this.setAttribute("data-active",""))}),this.listen(this,"pointermove",t=>{"touch"!==t.pointerType&&(r=r||this.getBoundingClientRect(),i=(t.clientX-r.left)/(r.width||1),a=(t.clientY-r.top)/(r.height||1),this._frame||(this._frame=C(n)))}),this.listen(this,"pointerleave",()=>this.reset())}reset(){T(this._frame),this._frame=0,this.removeAttribute("data-active"),this.style.transform="",this.style.setProperty("--usa-tilt-x","0"),this.style.setProperty("--usa-tilt-y","0")}unmount(){this.reset()}},{id:"tilt",text:"usa-tilt{display:block;position:relative;transform-style:preserve-3d;transition:transform 0.5s cubic-bezier(0.22,1,0.36,1);will-change:transform}usa-tilt[data-active]{transition-duration:0.12s}usa-tilt .usa-tilt-glare{position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:0;transition:opacity 0.3s ease;background:radial-gradient(circle at var(--usa-glare-x,50%) var(--usa-glare-y,50%),rgb(255 255 255 / 0.35),transparent 55%);mix-blend-mode:soft-light}usa-tilt[data-active] .usa-tilt-glare{opacity:1}"})}function Vt(t="usa-spotlight"){return b(t,t=>class extends t{constructor(){super(...arguments),this._frame=0}static get observedAttributes(){return["size","color","border"]}items(){const t=Array.from(this.querySelectorAll("[data-spotlight]")),e=t.length?t:Array.from(this.children);return e.forEach(t=>t.classList.add("usa-spotlight-item")),e}mount(){const t=this.getAttribute("size");t&&this.style.setProperty("--usa-spot-size",`${Number(t)}px`);const e=this.getAttribute("color");e&&this.style.setProperty("--usa-spot-color",e);const s=this.getAttribute("border");s&&this.style.setProperty("--usa-spot-border",`${Number(s)}px`);let i=this.items(),a=0,r=0;const n=()=>{this._frame=0;i.map(t=>t.getBoundingClientRect()).forEach((t,e)=>{i[e].style.setProperty("--usa-spot-x",`${(a-t.left).toFixed(1)}px`),i[e].style.setProperty("--usa-spot-y",`${(r-t.top).toFixed(1)}px`)})};this.listen(this,"pointerenter",t=>{"touch"!==t.pointerType&&(i=this.items(),this.setAttribute("data-lit",""))}),this.listen(this,"pointermove",t=>{"touch"!==t.pointerType&&(a=t.clientX,r=t.clientY,this.hasAttribute("data-lit")||this.setAttribute("data-lit",""),this._frame||(this._frame=C(n)))}),this.listen(this,"pointerleave",()=>this.removeAttribute("data-lit"))}unmount(){T(this._frame),this._frame=0,this.removeAttribute("data-lit")}},{id:"spotlight",text:'usa-spotlight{display:block;--usa-spot-size:160px;--usa-spot-color:rgb(255 255 255 / 0.55);--usa-spot-border:1px}usa-spotlight .usa-spotlight-item{position:relative;isolation:isolate}usa-spotlight .usa-spotlight-item::before,usa-spotlight .usa-spotlight-item::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:0;transition:opacity 0.25s ease}usa-spotlight .usa-spotlight-item::before{padding:var(--usa-spot-border);background:radial-gradient(var(--usa-spot-size) circle at var(--usa-spot-x,-999px) var(--usa-spot-y,-999px),var(--usa-spot-color),transparent 70%);-webkit-mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0)}usa-spotlight .usa-spotlight-item::after{z-index:-1;background:radial-gradient(calc(var(--usa-spot-size) * 0.9) circle at var(--usa-spot-x,-999px) var(--usa-spot-y,-999px),color-mix(in srgb,var(--usa-spot-color) 30%,transparent),transparent 70%)}usa-spotlight[data-lit] .usa-spotlight-item::before{opacity:1}usa-spotlight[data-lit] .usa-spotlight-item:hover::after{opacity:1}usa-spotlight[no-fill] .usa-spotlight-item::after{display:none}'})}function Ut(t="usa-press"){return b(t,t=>class extends t{constructor(){super(...arguments),this._anim=null,this._down=!1}static get observedAttributes(){return["disabled"]}get pressed(){return this._down}frame(t){return this.reduced?{opacity:t?.7:1}:{transform:t?`scale(${this.num("scale",.95)})`:"scale(1)"}}down(){if(this._down||this.flag("disabled"))return;this._down=!0,this.setAttribute("data-pressed","");const t=this.currentFrame();this._anim?.cancel(),this._anim=this.motion(this,[t,this.frame(!0)],{duration:120,easing:"cubic-bezier(0.3, 0, 0.7, 1)",fill:"forwards"})}up(){if(!this._down)return;this._down=!1,this.removeAttribute("data-pressed");const t=this.currentFrame();this._anim?.cancel();const e=this.flag("bounce")&&!this.reduced?[t,{transform:"scale(1.06)",offset:.45},{transform:"scale(0.99)",offset:.75},this.frame(!1)]:[t,this.frame(!1)],s=this.motion(this,e,{duration:this.flag("bounce")?480:320,easing:B});this._anim=s,s&&(s.onfinish=()=>this._anim===s&&(this._anim=null))}currentFrame(){if("function"!=typeof getComputedStyle)return this.frame(!1);const t=getComputedStyle(this);return this.reduced?{opacity:t.opacity||"1"}:{transform:t.transform&&"none"!==t.transform?t.transform:"scale(1)"}}mount(){this.listen(this,"pointerdown",t=>{"mouse"===t.pointerType&&0!==t.button||this.down()});for(const t of["pointerup","pointerleave","pointercancel","blur"])this.listen(this,t,()=>this.up());this.listen(this,"keydown",t=>(" "===t.key||"Enter"===t.key)&&!t.repeat&&this.down()),this.listen(this,"keyup",t=>(" "===t.key||"Enter"===t.key)&&this.up())}unmount(){this._anim?.cancel(),this._anim=null,this._down=!1}},{id:"press",text:"usa-press{display:inline-block;touch-action:manipulation;-webkit-tap-highlight-color:transparent}usa-press[block]{display:block}"})}function Wt(){Dt(),jt(),Ht(),Vt(),Ut()}const Gt=["fluent","windows","ring","dots","pulse","bars"];function Kt(t="usa-spinner"){return b(t,t=>class extends t{static get observedAttributes(){return["kind","size","label"]}get kind(){return j(this,Gt,"fluent")}set kind(t){this.setAttribute("kind",t)}mount(){const t=this.kind;this.getAttribute("data-kind")!==t&&(this.innerHTML=function(t){switch(t){case"windows":return"<i></i><i></i><i></i><i></i><i></i>";case"dots":return"<i></i><i></i><i></i>";case"bars":return"<i></i><i></i><i></i><i></i>";case"pulse":return"<i></i><i></i>";case"ring":return"<i></i>";default:return'<svg viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="7" pathLength="100"/></svg>'}}(t),this.setAttribute("data-kind",t));const e=this.getAttribute("size");e?this.style.setProperty("--usa-spinner-size",`${Number(e)}px`):this.style.removeProperty("--usa-spinner-size"),this.setAttribute("role","progressbar"),this.hasAttribute("aria-label")&&!this.hasAttribute("label")||this.setAttribute("aria-label",this.str("label","Loading"))}},{id:"spinner",text:'usa-spinner{--usa-spinner-size:32px;--usa-spinner-color:currentColor;position:relative;display:inline-block;vertical-align:middle;flex:none;width:var(--usa-spinner-size);height:var(--usa-spinner-size);color:var(--usa-spinner-color)}usa-spinner i{position:absolute;display:block}usa-spinner[paused] *,usa-spinner[paused] *::after{animation-play-state:paused !important}usa-spinner svg{width:100%;height:100%;animation:usa-spin 2s linear infinite;overflow:visible}usa-spinner svg circle{fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-dasharray:0.5 100;stroke-dashoffset:0;animation:usa-ring-arc 1.6s ease-in-out infinite}@keyframes usa-spin{to{transform:rotate(360deg)}}@keyframes usa-ring-arc{0%{stroke-dasharray:0.5 100;stroke-dashoffset:0}50%{stroke-dasharray:62 100;stroke-dashoffset:-20}100%{stroke-dasharray:0.5 100;stroke-dashoffset:-99}}usa-spinner[data-kind="windows"] i{inset:0;opacity:0;animation:usa-orbit 5.5s infinite}usa-spinner[data-kind="windows"] i::after{content:"";position:absolute;left:50%;top:0;width:12%;height:12%;margin-left:-6%;border-radius:50%;background:currentColor}usa-spinner[data-kind="windows"] i:nth-child(2){animation-delay:240ms;--n:1}usa-spinner[data-kind="windows"] i:nth-child(3){animation-delay:480ms;--n:2}usa-spinner[data-kind="windows"] i:nth-child(4){animation-delay:720ms;--n:3}usa-spinner[data-kind="windows"] i:nth-child(5){animation-delay:960ms;--n:4}@keyframes usa-orbit{0%{transform:rotate(225deg);opacity:1;animation-timing-function:ease-out}7%{transform:rotate(345deg);animation-timing-function:linear}30%{transform:rotate(455deg);animation-timing-function:ease-in-out}39%{transform:rotate(690deg);animation-timing-function:linear}70%{transform:rotate(815deg);opacity:1;animation-timing-function:ease-out}75%{transform:rotate(945deg);animation-timing-function:ease-out}76%,100%{transform:rotate(945deg);opacity:0}}usa-spinner[data-kind="ring"] i{inset:0;border-radius:50%;border:calc(var(--usa-spinner-size) / 9) solid color-mix(in srgb,currentColor 20%,transparent);border-top-color:currentColor;animation:usa-spin 0.8s linear infinite}usa-spinner[data-kind="dots"]{display:inline-flex;align-items:center;justify-content:space-between;height:calc(var(--usa-spinner-size) / 2.5)}usa-spinner[data-kind="dots"] i{position:static;width:22%;aspect-ratio:1;border-radius:50%;background:currentColor;animation:usa-dot 1.2s ease-in-out infinite}usa-spinner[data-kind="dots"] i:nth-child(2){animation-delay:0.15s}usa-spinner[data-kind="dots"] i:nth-child(3){animation-delay:0.3s}@keyframes usa-dot{0%,60%,100%{transform:translateY(0);opacity:0.35}30%{transform:translateY(-70%);opacity:1}}usa-spinner[data-kind="pulse"] i{inset:0;border-radius:50%;background:currentColor;opacity:0;animation:usa-pulse 1.6s cubic-bezier(0.22,1,0.36,1) infinite}usa-spinner[data-kind="pulse"] i:nth-child(2){animation-delay:0.8s}@keyframes usa-pulse{from{transform:scale(0.1);opacity:0.8}to{transform:scale(1);opacity:0}}usa-spinner[data-kind="bars"]{display:inline-flex;align-items:center;justify-content:space-between}usa-spinner[data-kind="bars"] i{position:static;width:16%;height:100%;border-radius:2px;background:currentColor;transform:scaleY(0.35);animation:usa-bar 1s ease-in-out infinite}usa-spinner[data-kind="bars"] i:nth-child(2){animation-delay:0.12s}usa-spinner[data-kind="bars"] i:nth-child(3){animation-delay:0.24s}usa-spinner[data-kind="bars"] i:nth-child(4){animation-delay:0.36s}@keyframes usa-bar{0%,100%{transform:scaleY(0.35)}40%{transform:scaleY(1)}}@media (prefers-reduced-motion:reduce){usa-spinner svg,usa-spinner i,usa-spinner i::after{animation:usa-calm 2.4s ease-in-out infinite !important}usa-spinner[data-kind="windows"] i{transform:rotate(calc(var(--n,0) * 72deg))}usa-spinner svg circle{animation:none;stroke-dasharray:30 100}}@keyframes usa-calm{0%,100%{opacity:1}50%{opacity:0.4}}'})}function Jt(t="usa-skeleton"){return b(t,t=>class extends t{constructor(){super(...arguments),this._ph=null}static get observedAttributes(){return["loading","lines","width","height","circle","avatar","radius"]}get loading(){return this.hasAttribute("loading")}set loading(t){this.toggleAttribute("loading",!!t)}changed(t){"loading"===t?this.sync(!0):(this._ph?.remove(),this._ph=null,this.sync(!1))}mount(){this.sync(!1)}build(){const t=document.createElement("div");t.className="usa-skeleton-ph",t.setAttribute("aria-hidden","true");const e=(t="")=>{const e=document.createElement("span");return e.className=`usa-bone ${t}`.trim(),e},s=this.getAttribute("radius");if(s&&this.style.setProperty("--usa-skeleton-radius",s),this.flag("circle")||this.hasAttribute("width")||this.hasAttribute("height")){const s=e(this.flag("circle")?"usa-bone-circle":"usa-bone-block");s.style.width=this.str("width",this.flag("circle")?this.str("height","48px"):"100%"),s.style.height=this.str("height",this.flag("circle")?s.style.width:"120px"),t.append(s)}else{this.flag("avatar")&&t.append(e("usa-bone-circle usa-bone-avatar"));const s=document.createElement("div");s.className="usa-bone-lines";const i=Math.max(1,Math.min(20,this.num("lines",3)));for(let t=0;t<i;t++)s.append(e(t===i-1&&i>1?"usa-bone-last":""));t.append(s)}return t}sync(t){const e=this.loading;if(this.setAttribute("aria-busy",String(e)),e)this._ph||(this._ph=this.build(),this.prepend(this._ph));else{if(this._ph&&(this._ph.remove(),this._ph=null),t&&!this.reduced)for(const t of Array.from(this.children))this.motion(t,[{opacity:0,transform:"translateY(4px)"},{opacity:1,transform:"none"}],{duration:360,easing:Y});this.emit("loaded")}}},{id:"skeleton",text:'usa-skeleton{display:block;--usa-skeleton-base:color-mix(in srgb,currentColor 10%,transparent);--usa-skeleton-shine:color-mix(in srgb,currentColor 9%,transparent);--usa-skeleton-radius:8px}usa-skeleton[loading]>:not(.usa-skeleton-ph){display:none !important}usa-skeleton .usa-skeleton-ph{display:flex;gap:14px;align-items:flex-start}usa-skeleton .usa-bone-lines{flex:1;display:grid;gap:10px;min-width:0}usa-skeleton .usa-bone{position:relative;display:block;overflow:hidden;height:0.9em;border-radius:var(--usa-skeleton-radius);background:var(--usa-skeleton-base)}usa-skeleton .usa-bone-last{width:62%}usa-skeleton .usa-bone-block{height:120px}usa-skeleton .usa-bone-circle{border-radius:50%;flex:none}usa-skeleton .usa-bone-avatar{width:44px;height:44px}usa-skeleton .usa-bone::after{content:"";position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(90deg,transparent,var(--usa-skeleton-shine),transparent);animation:usa-skeleton 1.5s ease-in-out infinite}@keyframes usa-skeleton{to{transform:translateX(100%)}}@media (prefers-reduced-motion:reduce){usa-skeleton .usa-bone::after{animation:none}}'})}function Zt(t="usa-progress"){return b(t,t=>class extends t{constructor(){super(...arguments),this._fill=null}static get observedAttributes(){return["value","max","indeterminate","label"]}get value(){const t=this.getAttribute("value");return null===t||""===t||Number.isNaN(Number(t))?null:Number(t)}set value(t){null==t?this.removeAttribute("value"):this.setAttribute("value",String(t))}get max(){const t=this.num("max",100);return t>0?t:100}set max(t){this.setAttribute("max",String(t))}get ratio(){const t=this.value;return this.hasAttribute("indeterminate")||null===t?null:H(t/this.max,0,1)}changed(){this.sync()}mount(){this._fill||(this.innerHTML='<span class="usa-progress-bar"></span><span class="usa-progress-bar usa-progress-bar2"></span>',this._fill=this.firstElementChild),this.setAttribute("role","progressbar"),this.sync()}sync(){const t=this.ratio,e=this.getAttribute("label");if(e&&this.setAttribute("aria-label",e),this.toggleAttribute("data-indeterminate",null===t),null===t)return this.removeAttribute("aria-valuenow"),void(this._fill&&(this._fill.style.transform=""));this.setAttribute("aria-valuemin","0"),this.setAttribute("aria-valuemax",String(this.max)),this.setAttribute("aria-valuenow",String(this.value)),this._fill&&(this._fill.style.transform=`scaleX(${t})`),1===t&&this.emit("complete")}},{id:"progress",text:'usa-progress{--usa-progress-color:var(--usa-accent,#7c5cff);--usa-progress-track:color-mix(in srgb,currentColor 14%,transparent);position:relative;display:block;height:var(--usa-progress-height,4px);border-radius:999px;overflow:hidden;background:var(--usa-progress-track);contain:paint}usa-progress .usa-progress-bar{position:absolute;inset:0;border-radius:inherit;background:var(--usa-progress-color);transform:scaleX(0);transform-origin:0 50%;transition:transform 0.45s cubic-bezier(0.22,1,0.36,1)}usa-progress .usa-progress-bar2{display:none}usa-progress[data-indeterminate] .usa-progress-bar{right:auto;width:40%;transform:translateX(-100%);transition:none;animation:usa-indet 2s cubic-bezier(0.4,0,0.6,1) infinite}usa-progress[data-indeterminate] .usa-progress-bar2{display:block;width:60%;animation:usa-indet2 2s cubic-bezier(0.4,0,0.6,1) 1s infinite}usa-progress[state="paused"]{--usa-progress-color:#c19c00}usa-progress[state="error"]{--usa-progress-color:#d13438}usa-progress[state="paused"] .usa-progress-bar,usa-progress[state="error"] .usa-progress-bar{animation-play-state:paused}@keyframes usa-indet{from{transform:translateX(-100%)}to{transform:translateX(250%)}}@keyframes usa-indet2{from{transform:translateX(-100%)}to{transform:translateX(167%)}}@media (prefers-reduced-motion:reduce){usa-progress .usa-progress-bar{transition:none}usa-progress[data-indeterminate] .usa-progress-bar{width:100%;transform:none;animation:usa-calm-bar 2.4s ease-in-out infinite}usa-progress[data-indeterminate] .usa-progress-bar2{display:none}}@keyframes usa-calm-bar{0%,100%{opacity:1}50%{opacity:0.4}}'})}const Qt={info:'<path d="M12 8h.01M11 12h1v5h1"/>',success:'<path d="m8 12.5 3 3 5-6"/>',warning:'<path d="M12 8v5M12 16.5h.01"/>',error:'<path d="m9 9 6 6M15 9l-6 6"/>'};function te(t="usa-toaster"){return b(t,t=>class extends t{static get observedAttributes(){return["label"]}mount(){this.setAttribute("role","region"),this.setAttribute("aria-label",this.str("label","Notifications"))}flip(t){const e=Array.from(this.children),s=new Map(e.map(t=>[t,t.getBoundingClientRect().top]));if(t(),!this.reduced)for(const t of Array.from(this.children)){const e=s.get(t);if(void 0===e||t.hasAttribute("data-leaving"))continue;const i=e-t.getBoundingClientRect().top;Math.abs(i)>.5&&this.motion(t,[{transform:`translateY(${i}px)`},{transform:"none"}],{duration:320,easing:Y,composite:"add"})}}enterFrames(){if(this.reduced)return[{opacity:0},{opacity:1}];const t=this.str("position","bottom-right");return[{opacity:0,transform:`translate(${t.endsWith("right")?"110%":t.endsWith("left")?"-110%":"0"}, ${t.endsWith("center")?t.startsWith("top")?"-120%":"120%":"0"}) scale(0.96)`},{opacity:1,transform:"none"}]}show(t,e={}){const s=e.type||"info",i=document.createElement("div");i.className="usa-toast",i.setAttribute("data-type",s),i.setAttribute("role","error"===s?"alert":"status"),i.innerHTML=`<svg class="usa-toast-icon" viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="9"/>${Qt[s]||Qt.info}</svg><div class="usa-toast-msg"></div>`,i.querySelector(".usa-toast-msg").textContent=t;let a=null,r=0;const n=()=>{if(a)return a;clearTimeout(r),i.setAttribute("data-leaving","");const t=this.enterFrames().reverse(),e=i.isConnected?this.motion(i,t,{duration:220,easing:"cubic-bezier(0.7, 0, 0.84, 0)",fill:"forwards"}):null;return a=new Promise(t=>{const s=()=>{this.flip(()=>i.remove()),t()};e?e.onfinish=s:s()}),a};if(e.action){const t=document.createElement("button");t.type="button",t.className="usa-toast-action",t.textContent=e.action.label,t.addEventListener("click",()=>{e.action.onClick(),n()}),i.append(t)}if(!1!==e.dismissible){const t=document.createElement("button");t.type="button",t.className="usa-toast-close",t.setAttribute("aria-label","Close"),t.innerHTML='<svg viewBox="0 0 24 24" aria-hidden="true"><path d="m7 7 10 10M17 7 7 17"/></svg>',t.addEventListener("click",()=>n()),i.append(t)}const o=e.duration??4e3,l=()=>{clearTimeout(r),o>0&&(r=setTimeout(n,o))},c=()=>clearTimeout(r);i.addEventListener("pointerenter",c),i.addEventListener("pointerleave",l),i.addEventListener("focusin",c),i.addEventListener("focusout",l);const u=this.str("position","bottom-right").startsWith("top");this.flip(()=>u?this.prepend(i):this.append(i)),this.motion(i,this.enterFrames(),{duration:420,easing:O}),l();const d=Array.from(this.querySelectorAll(".usa-toast:not([data-leaving])")),h=Math.max(1,this.num("max",4)),p=d.length-h;return p>0&&(u?d.slice(-p):d.slice(0,p)).forEach(t=>t._close?.()),i._close=n,this.emit("toast",{element:i,message:t,type:s}),{element:i,close:n}}clear(){this.querySelectorAll(".usa-toast").forEach(t=>t._close?.())}},{id:"toast",text:'usa-toaster{position:fixed;z-index:2147483000;right:16px;bottom:16px;display:flex;flex-direction:column;gap:10px;width:min(360px,calc(100vw - 32px));pointer-events:none}usa-toaster[position^="top"]{bottom:auto;top:16px}usa-toaster[position$="left"]{right:auto;left:16px}usa-toaster[position$="center"]{right:auto;left:50%;translate:-50% 0}usa-toaster .usa-toast{--usa-toast-accent:#0078d4;pointer-events:auto;display:flex;align-items:flex-start;gap:10px;padding:12px 12px 12px 14px;border-radius:10px;background:var(--usa-toast-bg,color-mix(in srgb,Canvas 92%,transparent));color:var(--usa-toast-fg,CanvasText);border:1px solid color-mix(in srgb,CanvasText 12%,transparent);border-left:3px solid var(--usa-toast-accent);box-shadow:0 8px 28px -8px rgb(0 0 0 / 0.35);font:inherit;font-size:14px;line-height:1.4;-webkit-backdrop-filter:blur(20px) saturate(1.4);backdrop-filter:blur(20px) saturate(1.4)}usa-toaster .usa-toast[data-type="success"]{--usa-toast-accent:#0f9d58}usa-toaster .usa-toast[data-type="warning"]{--usa-toast-accent:#c19c00}usa-toaster .usa-toast[data-type="error"]{--usa-toast-accent:#d13438}usa-toaster .usa-toast-icon{flex:none;width:20px;height:20px;fill:none;stroke:var(--usa-toast-accent);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}usa-toaster .usa-toast-msg{flex:1;min-width:0;padding-top:1px;overflow-wrap:anywhere}usa-toaster .usa-toast-action,usa-toaster .usa-toast-close{flex:none;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer;border-radius:6px;padding:2px 6px}usa-toaster .usa-toast-action{color:var(--usa-toast-accent);font-weight:600}usa-toaster .usa-toast-close{opacity:0.6;line-height:0;padding:3px}usa-toaster .usa-toast-close svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}usa-toaster .usa-toast-action:hover,usa-toaster .usa-toast-close:hover{background:color-mix(in srgb,currentColor 10%,transparent);opacity:1}'})}const ee={success:"M15 27 l7 7 l14 -15",error:"M18 18 L34 34 M34 18 L18 34",warning:"M26 15 V30 M26 37 V37.5"};function se(t="usa-check"){return b(t,t=>class extends t{constructor(){super(...arguments),this._anims=[]}static get observedAttributes(){return["kind","size","label"]}mount(){const t=j(this,ee,"success");this.innerHTML=`<svg viewBox="0 0 52 52" aria-hidden="true"><circle class="usa-check-circle" cx="26" cy="26" r="23" pathLength="1"/><path class="usa-check-mark" d="${ee[t]}" pathLength="1"/></svg>`,this.setAttribute("data-kind",t);const e=this.getAttribute("size");e&&this.style.setProperty("--usa-check-size",`${Number(e)}px`);const s=this.getAttribute("label");if(s&&(this.setAttribute("role","img"),this.setAttribute("aria-label",s)),this.reduced)return void this.setAttribute("data-state","done");this.setAttribute("data-state","idle");const i=this.str("start","view");if("load"===i)this.play();else if("view"===i){let t=!1;this.inView(e=>e&&!t&&(t=!0,this.play()),{threshold:.5})}}unmount(){this._anims.splice(0).forEach(t=>t.cancel())}reset(){this._anims.splice(0).forEach(t=>t.cancel()),this.setAttribute("data-state",this.reduced?"done":"idle")}play(){this.reset(),this.setAttribute("data-state","done");const t=this.querySelector(".usa-check-circle"),e=this.querySelector(".usa-check-mark"),s=this.querySelector("svg");if(this.reduced||!t||!e||!s)return this.emit("complete"),Promise.resolve();const i=[{strokeDashoffset:1},{strokeDashoffset:0}],a=[this.motion(t,i,{duration:520,easing:Y,fill:"backwards"}),this.motion(e,i,{duration:340,delay:420,easing:Y,fill:"backwards"}),this.motion(s,[{transform:"scale(1)"},{transform:"scale(1.12)"},{transform:"scale(1)"}],{duration:420,delay:640,easing:B})].filter(t=>!!t);return this._anims=a,new Promise(t=>{const e=a[a.length-1],s=()=>{this.emit("complete"),t()};e?e.onfinish=s:s()})}},{id:"check",text:'usa-check{--usa-check-size:56px;--usa-check-color:#0f9d58;display:inline-block;width:var(--usa-check-size);height:var(--usa-check-size);vertical-align:middle}usa-check[data-kind="error"]{--usa-check-color:#d13438}usa-check[data-kind="warning"]{--usa-check-color:#c19c00}usa-check svg{width:100%;height:100%;overflow:visible}usa-check circle,usa-check path{fill:none;stroke:var(--usa-check-color);stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1 1}usa-check[data-state="idle"] circle,usa-check[data-state="idle"] path{stroke-dashoffset:1}usa-check[data-state="done"] circle,usa-check[data-state="done"] path{stroke-dashoffset:0}'})}function ie(){Kt(),Jt(),Zt(),te(),se()}function ae(t="usa-aurora"){return b(t,t=>class extends t{constructor(){super(...arguments),this._layer=null}static get observedAttributes(){return["colors","speed","intensity"]}mount(){this._layer||(this._layer=document.createElement("div"),this._layer.className="usa-aurora-layer",this._layer.setAttribute("aria-hidden","true"),this._layer.innerHTML="<i></i><i></i><i></i><i></i>",this.prepend(this._layer));const t=this.str("colors","#7c5cff,#22d3ee,#f472b6,#34d399").split(",").map(t=>t.trim()).filter(Boolean);Array.from(this._layer.children).forEach((e,s)=>{e.style.setProperty("--c",t[s%t.length])});const e=this.num("speed",1);this.style.setProperty("--usa-aurora-speed",`${(18/Math.max(.05,e)).toFixed(2)}s`),this.style.setProperty("--usa-aurora-opacity",String(this.num("intensity",.7))),this.inView(t=>this.toggleAttribute("data-offscreen",!t))}},{id:"aurora",text:"usa-aurora{position:relative;display:block;isolation:isolate;overflow:hidden}usa-aurora .usa-aurora-layer{position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:var(--usa-aurora-opacity,0.7);overflow:hidden;contain:strict}usa-aurora .usa-aurora-layer i{position:absolute;display:block;width:70%;aspect-ratio:1;border-radius:50%;background:radial-gradient(closest-side,var(--c),transparent);will-change:transform;animation:usa-aurora-a var(--usa-aurora-speed,18s) ease-in-out infinite alternate}usa-aurora .usa-aurora-layer i:nth-child(1){left:-15%;top:-30%}usa-aurora .usa-aurora-layer i:nth-child(2){right:-20%;top:-10%;animation-name:usa-aurora-b;animation-duration:calc(var(--usa-aurora-speed,18s) * 1.3)}usa-aurora .usa-aurora-layer i:nth-child(3){left:10%;bottom:-45%;animation-name:usa-aurora-c;animation-duration:calc(var(--usa-aurora-speed,18s) * 0.9)}usa-aurora .usa-aurora-layer i:nth-child(4){right:0;bottom:-30%;width:50%;animation-name:usa-aurora-b;animation-direction:alternate-reverse}usa-aurora[paused] .usa-aurora-layer i,usa-aurora[data-offscreen] .usa-aurora-layer i{animation-play-state:paused}@keyframes usa-aurora-a{from{transform:translate3d(0,0,0) scale(1)}to{transform:translate3d(30%,20%,0) scale(1.25)}}@keyframes usa-aurora-b{from{transform:translate3d(0,0,0) scale(1.1)}to{transform:translate3d(-35%,25%,0) scale(0.85)}}@keyframes usa-aurora-c{from{transform:translate3d(0,0,0) rotate(0deg) scale(1)}to{transform:translate3d(25%,-30%,0) rotate(40deg) scale(1.2)}}@media (prefers-reduced-motion:reduce){usa-aurora .usa-aurora-layer i,usa-grain .usa-grain-layer,usa-acrylic::after{animation:none !important}}"})}function re(t="usa-particles"){return b(t,t=>class extends t{constructor(){super(...arguments),this._canvas=null,this._ctx=null,this._ps=[],this._frame=0,this._w=0,this._h=0,this._visible=!1,this._mx=-1e4,this._color="#888",this._my=-1e4}static get observedAttributes(){return["count","color","size","speed","links","interactive","paused"]}mount(){if(this._canvas||(this._canvas=document.createElement("canvas"),this._canvas.setAttribute("aria-hidden","true"),this.prepend(this._canvas)),this._ctx=this._canvas.getContext?.("2d")??null,this._ctx){if(this.resize(),"undefined"!=typeof ResizeObserver){const t=new ResizeObserver(()=>{this.resize(),this._frame||this.draw()});t.observe(this),this.onCleanup(()=>t.disconnect())}this.inView(t=>{this._visible=t,this.loop()}),this.listen(document,"visibilitychange",()=>this.loop()),this.flag("interactive")&&this.listen(window,"pointermove",t=>{const e=this.getBoundingClientRect();this._mx=t.clientX-e.left,this._my=t.clientY-e.top},{passive:!0}),this.draw()}}unmount(){T(this._frame),this._frame=0}reset(){this._ps=[],this.resize(),this.draw()}resize(){const t=this._canvas;if(!t||!this._ctx)return;const e=this.clientWidth||300,s=this.clientHeight||150,i=Math.min(2,"number"==typeof devicePixelRatio&&devicePixelRatio||1);t.width=Math.round(e*i),t.height=Math.round(s*i),this._ctx.setTransform(i,0,0,i,0,0),this._w=e,this._h=s,this._color=this.getAttribute("color")||("function"==typeof getComputedStyle?getComputedStyle(this).color:"")||"#888";const a=Math.round(Math.min(1,e*s/45e4)*Math.max(1,this.num("count",60)))||1,r=this.num("speed",.35),n=this.num("size",2.2);for(;this._ps.length<a;){const t=Math.random()*Math.PI*2,i=r*(.3+.7*Math.random());this._ps.push({x:Math.random()*e,y:Math.random()*s,vx:Math.cos(t)*i,vy:Math.sin(t)*i,r:.6+Math.random()*(n-.6)})}this._ps.length=a}loop(){const t=this._visible&&!this.reduced&&!this.flag("paused")&&!("undefined"!=typeof document&&document.hidden);if(t&&!this._frame){const t=()=>{this.step(),this.draw(),this._frame=C(t)};this._frame=C(t)}else!t&&this._frame&&(T(this._frame),this._frame=0)}step(){const{_w:t,_h:e}=this;for(const s of this._ps){const i=s.x-this._mx,a=s.y-this._my,r=i*i+a*a;if(r<8100&&r>.01){const t=.6*(1-Math.sqrt(r)/90);s.x+=i/Math.sqrt(r)*t,s.y+=a/Math.sqrt(r)*t}s.x+=s.vx,s.y+=s.vy,s.x<-5?s.x=t+5:s.x>t+5&&(s.x=-5),s.y<-5?s.y=e+5:s.y>e+5&&(s.y=-5)}}draw(){const t=this._ctx;if(!t)return;const e=this._color;t.clearRect(0,0,this._w,this._h),t.fillStyle=e,t.strokeStyle=e;const s=this._ps,i=this.num("links",110);if(i>0){const e=i*i;t.lineWidth=.6;for(let i=0;i<s.length;i++)for(let a=i+1;a<s.length;a++){const r=s[i].x-s[a].x,n=s[i].y-s[a].y,o=r*r+n*n;o<e&&(t.globalAlpha=.35*(1-o/e),t.beginPath(),t.moveTo(s[i].x,s[i].y),t.lineTo(s[a].x,s[a].y),t.stroke())}}t.globalAlpha=.85;for(const e of s)t.beginPath(),t.arc(e.x,e.y,e.r,0,2*Math.PI),t.fill();t.globalAlpha=1}},{id:"particles",text:"usa-particles{position:relative;display:block;min-height:120px;overflow:hidden}usa-particles>canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}"})}function ne(t="usa-grain"){return b(t,t=>class extends t{constructor(){super(...arguments),this._layer=null}static get observedAttributes(){return["opacity","blend","scale"]}mount(){this._layer||(this._layer=document.createElement("div"),this._layer.className="usa-grain-layer",this._layer.setAttribute("aria-hidden","true"),this.append(this._layer));const t=this._layer.style;t.backgroundImage=`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='${.8}' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 1.6 -0.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")`,t.backgroundSize=`${this.num("scale",180)}px`,t.opacity=String(this.num("opacity",.12)),t.mixBlendMode=this.str("blend","overlay")}},{id:"grain",text:"usa-grain{position:relative;display:block;isolation:isolate;overflow:hidden}usa-grain .usa-grain-layer{position:absolute;inset:-100%;z-index:1;pointer-events:none}usa-grain[animated] .usa-grain-layer{animation:usa-grain 0.8s steps(10) infinite}@keyframes usa-grain{0%,100%{transform:translate(0,0)}10%{transform:translate(-5%,-8%)}20%{transform:translate(-12%,4%)}30%{transform:translate(6%,-16%)}40%{transform:translate(-4%,18%)}50%{transform:translate(-12%,8%)}60%{transform:translate(14%,0)}70%{transform:translate(0,12%)}80%{transform:translate(3%,25%)}90%{transform:translate(-8%,8%)}}"})}function oe(t="usa-marquee"){return b(t,t=>class extends t{constructor(){super(...arguments),this._track=null,this._anim=null,this._hover=!1,this._visible=!0,this._size=0}static get observedAttributes(){return["speed","direction","gap","paused"]}get vertical(){const t=this.str("direction","left");return"up"===t||"down"===t}mount(){if(!this._track){const t=document.createElement("div");t.className="usa-marquee-track";const e=document.createElement("div");e.className="usa-marquee-group",e.append(...Array.from(this.childNodes)),t.append(e),this.append(t),this._track=t}if(this.toggleAttribute("data-vertical",this.vertical),this.style.setProperty("--usa-marquee-gap",`${this.num("gap",32)}px`),this.reduced)return this.setAttribute("data-static",""),void this.syncClones(1);if(this.removeAttribute("data-static"),this.build(),"undefined"!=typeof ResizeObserver){const t=new ResizeObserver(()=>this.build());t.observe(this._track.firstElementChild),this.onCleanup(()=>t.disconnect())}this.inView(t=>{this._visible=t,this.sync()}),this.listen(this,"pointerenter",()=>(this._hover=!0,this.sync())),this.listen(this,"pointerleave",()=>(this._hover=!1,this.sync())),this.listen(this,"focusin",()=>(this._hover=!0,this.sync())),this.listen(this,"focusout",()=>(this._hover=!1,this.sync()))}unmount(){this._anim?.cancel(),this._anim=null,this._size=0}syncClones(t){const e=this._track,s=e.firstElementChild;for(;e.children.length>t;)e.lastElementChild.remove();for(;e.children.length<t;){const t=s.cloneNode(!0);t.setAttribute("aria-hidden","true"),t.setAttribute("inert",""),e.append(t)}}build(){const t=this._track,e=t.firstElementChild,s=this.vertical,i=this.num("gap",32),a=s?e.offsetHeight:e.offsetWidth;if(!a)return;const r=a+i;if(this._anim&&this._size===r)return;this._size=r;const n=(s?this.clientHeight:this.clientWidth)||r;this.syncClones(Math.min(50,Math.max(2,Math.ceil(n/r)+1)));const o=this._anim?.effect?.getComputedTiming().progress??0;this._anim?.cancel();const l=s?"Y":"X",c=["right","down"].includes(this.str("direction","left")),u=[{transform:`translate${l}(0)`},{transform:`translate${l}(${-r}px)`}];this._anim=this.motion(t,c?u.reverse():u,{duration:Math.max(1,r)/Math.max(1,this.num("speed",50))*1e3,iterations:1/0}),this._anim&&o&&(this._anim.currentTime=o*Number(this._anim.effect?.getTiming().duration||0)),this.sync()}sync(){const t=this._anim;if(!t)return;const e=this.flag("paused")||!this._visible||this._hover&&this.flag("pause-on-hover");e&&"running"===t.playState?t.pause():e||"paused"!==t.playState||t.play()}pause(){this.setAttribute("paused","")}resume(){this.removeAttribute("paused")}changed(t){"paused"===t?this.sync():super.changed(t)}},{id:"marquee",text:"usa-marquee{--usa-marquee-gap:32px;display:block;overflow:hidden;contain:content}usa-marquee[fade]{-webkit-mask:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent);mask:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent)}usa-marquee[fade][data-vertical]{-webkit-mask:linear-gradient(180deg,transparent,#000 12%,#000 88%,transparent);mask:linear-gradient(180deg,transparent,#000 12%,#000 88%,transparent)}usa-marquee .usa-marquee-track{display:flex;width:max-content;gap:var(--usa-marquee-gap);will-change:transform}usa-marquee .usa-marquee-group{display:flex;flex:none;align-items:center;gap:var(--usa-marquee-gap)}usa-marquee[data-vertical] .usa-marquee-track,usa-marquee[data-vertical] .usa-marquee-group{flex-direction:column;width:auto}usa-marquee[data-vertical]{height:var(--usa-marquee-height,240px)}usa-marquee[data-static]{overflow:auto;scrollbar-width:thin}"})}function le(t="usa-acrylic"){return b(t,t=>class extends t{static get observedAttributes(){return["tint","tint-opacity","blur","shimmer"]}mount(){const t=this.getAttribute("tint");t?this.style.setProperty("--usa-acrylic-tint",t):this.style.removeProperty("--usa-acrylic-tint"),this.style.setProperty("--usa-acrylic-opacity",`${Math.round(100*this.num("tint-opacity",.55))}%`),this.style.setProperty("--usa-acrylic-blur",`${this.num("blur",30)}px`),"load"!==this.str("shimmer")||this.reduced||(this.removeAttribute("data-shine"),this.offsetWidth,this.setAttribute("data-shine",""))}},{id:"acrylic",text:"usa-acrylic{--usa-acrylic-tint:#f3f3f3;--usa-acrylic-opacity:55%;--usa-acrylic-blur:30px;position:relative;display:block;isolation:isolate;overflow:hidden;background-color:color-mix(in srgb,var(--usa-acrylic-tint) var(--usa-acrylic-opacity),transparent);-webkit-backdrop-filter:blur(var(--usa-acrylic-blur)) saturate(1.6);backdrop-filter:blur(var(--usa-acrylic-blur)) saturate(1.6);border:1px solid color-mix(in srgb,#fff 22%,transparent)}@media (prefers-color-scheme:dark){usa-acrylic{--usa-acrylic-tint:#2c2c2c}}usa-acrylic::before{content:\"\";position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:0.035;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E\")}usa-acrylic::after{content:\"\";position:absolute;inset:0;z-index:1;pointer-events:none;transform:translateX(-120%);background:linear-gradient(105deg,transparent 30%,rgb(255 255 255 / 0.28) 50%,transparent 70%)}usa-acrylic[shimmer=\"hover\"]:hover::after,usa-acrylic[data-shine]::after{animation:usa-acrylic-shine 1.1s cubic-bezier(0.22,1,0.36,1) both}@keyframes usa-acrylic-shine{from{transform:translateX(-120%)}to{transform:translateX(120%)}}usa-acrylic[kind=\"mica\"]{--usa-acrylic-opacity:80%;-webkit-backdrop-filter:none;backdrop-filter:none;background:linear-gradient(color-mix(in srgb,var(--usa-acrylic-tint) var(--usa-acrylic-opacity),transparent),color-mix(in srgb,var(--usa-acrylic-tint) var(--usa-acrylic-opacity),transparent)),var(--usa-mica-source,linear-gradient(135deg,#b8c6ff,#ffd6e8));border-color:transparent}@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){usa-acrylic{background-color:var(--usa-acrylic-tint)}}@media (prefers-reduced-transparency:reduce){usa-acrylic{background:var(--usa-acrylic-tint);-webkit-backdrop-filter:none;backdrop-filter:none}}@media (forced-colors:active){usa-acrylic{background:Canvas;-webkit-backdrop-filter:none;backdrop-filter:none;border-color:CanvasText}usa-acrylic::before,usa-acrylic::after{display:none}}"})}var ce='usa-grid-glow,usa-blobs,usa-water-ripple,usa-dot-network{position:relative;display:block;isolation:isolate;overflow:hidden}usa-grid-glow{--usa-grid:32px;--usa-grid-r:220px;--usa-grid-color:var(--usa-accent,#7c5cff);--usa-grid-x:50%;--usa-grid-y:50%}usa-grid-glow::before,usa-grid-glow::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background-image:linear-gradient(to right,var(--l) 1px,transparent 1px),linear-gradient(to bottom,var(--l) 1px,transparent 1px);background-size:var(--usa-grid) var(--usa-grid)}usa-grid-glow::before{--l:color-mix(in srgb,currentColor 9%,transparent)}usa-grid-glow::after{--l:var(--usa-grid-color);-webkit-mask:radial-gradient(var(--usa-grid-r) circle at var(--usa-grid-x) var(--usa-grid-y),#000,transparent 70%);mask:radial-gradient(var(--usa-grid-r) circle at var(--usa-grid-x) var(--usa-grid-y),#000,transparent 70%)}usa-blobs .usa-blobs-layer{position:absolute;inset:-20%;z-index:-1;filter:blur(var(--usa-blobs-blur,60px)) saturate(1.3);pointer-events:none}usa-blobs .usa-blobs-layer i{position:absolute;width:45%;aspect-ratio:1;border-radius:42% 58% 60% 40% / 45% 45% 55% 55%;background:var(--c);opacity:0.75;left:calc(10% + var(--i) * 18%);top:calc(10% + var(--i) * 14%);animation:usa-blob calc(14s / var(--usa-blobs-speed,1)) ease-in-out infinite alternate;animation-delay:calc(var(--i) * -3.5s)}@keyframes usa-blob{0%{transform:translate(0,0) rotate(0) scale(1);border-radius:42% 58% 60% 40% / 45% 45% 55% 55%}50%{transform:translate(18%,-12%) rotate(120deg) scale(1.15);border-radius:60% 40% 35% 65% / 55% 60% 40% 45%}100%{transform:translate(-14%,14%) rotate(240deg) scale(0.9);border-radius:38% 62% 55% 45% / 62% 38% 62% 38%}}usa-water-ripple .usa-bg-canvas{position:absolute;inset:0;z-index:1;pointer-events:none;mix-blend-mode:screen}usa-dot-network .usa-bg-canvas{position:absolute;inset:0;z-index:-1;pointer-events:none}@media (prefers-reduced-motion:reduce){usa-blobs .usa-blobs-layer i{animation:none}}';function ue(t,e,s){const i=document.createElement("canvas");i.className="usa-bg-canvas",i.setAttribute("aria-hidden","true"),t.prepend(i),t.onCleanup(()=>i.remove());const a=i.getContext?.("2d");if(!a)return;const r=Math.min(2,"undefined"!=typeof window&&window.devicePixelRatio||1);let n=0,o=0;const l=()=>{const e=t.getBoundingClientRect();n=Math.max(1,e.width||300),o=Math.max(1,e.height||150),i.width=n*r,i.height=o*r,a.setTransform(r,0,0,r,0,0)};l();const c="undefined"!=typeof ResizeObserver?new ResizeObserver(l):null;c?.observe(t),t.onCleanup(()=>c?.disconnect());let u=0,d=!1;const h=t=>{document.hidden||e(a,n,o,t),u=C(h)};s?e(a,n,o,0):(t.inView(t=>{t&&!d?(d=!0,u=C(h)):!t&&d&&(d=!1,T(u))}),t.onCleanup(()=>T(u)))}function de(t="usa-grid-glow"){return b(t,t=>class extends t{mount(){if(this.style.setProperty("--usa-grid",`${this.num("size",32)}px`),this.style.setProperty("--usa-grid-r",`${this.num("radius",220)}px`),this.str("color")&&this.style.setProperty("--usa-grid-color",this.str("color")),this.reduced)return;let t=0,e=0,s=0;this.listen(this,"pointermove",i=>{const a=this.getBoundingClientRect();e=i.clientX-a.left,s=i.clientY-a.top,t||(t=C(()=>{t=0,this.style.setProperty("--usa-grid-x",`${e}px`),this.style.setProperty("--usa-grid-y",`${s}px`)}))}),this.onCleanup(()=>T(t))}},{id:"bg-fx",text:ce})}function he(t="usa-blobs"){return b(t,t=>class extends t{mount(){this.querySelector(":scope > .usa-blobs-layer")?.remove();const t=this.str("colors","#7c5cff,#22d3ee,#f472b6,#34d399").split(","),e=document.createElement("div");e.className="usa-blobs-layer",e.setAttribute("aria-hidden","true"),e.innerHTML=t.map((t,e)=>`<i style="--c:${t.trim()};--i:${e}"></i>`).join(""),this.prepend(e),this.style.setProperty("--usa-blobs-speed",String(this.num("speed",1))),this.style.setProperty("--usa-blobs-blur",`${this.num("blur",60)}px`)}},{id:"bg-fx",text:ce})}function pe(t="usa-water-ripple"){return b(t,t=>class extends t{constructor(){super(...arguments),this._drop=null}drop(t,e,s=1){this._drop?.(t,e,s)}mount(){if(this.reduced)return;let t=0,e=0,s=new Float32Array(0),i=new Float32Array(0);const a=this.num("damping",.96),r=this.str("color","255,255,255");this._drop=(i,a,r=1)=>{const n=Math.floor(i/4),o=Math.floor(a/4);n<1||o<1||n>=t-1||o>=e-1||(s[o*t+n]+=256*r*this.num("strength",1))},ue(this,(n,o,l)=>{const c=Math.ceil(o/4),u=Math.ceil(l/4);c===t&&u===e||(t=c,e=u,s=new Float32Array(t*e),i=new Float32Array(t*e)),n.clearRect(0,0,o,l);for(let o=1;o<e-1;o++)for(let e=1;e<t-1;e++){const l=o*t+e,c=((s[l-1]+s[l+1]+s[l-t]+s[l+t])/2-i[l])*a;i[l]=c,(c>2||c<-2)&&(n.fillStyle=`rgba(${r},${Math.min(.5,Math.abs(c)/300).toFixed(3)})`,n.fillRect(4*e,4*o,4,4))}const d=s;s=i,i=d},!1),this.listen(this,"pointermove",t=>{const e=this.getBoundingClientRect();this.drop(t.clientX-e.left,t.clientY-e.top,.35)}),this.listen(this,"pointerdown",t=>{const e=this.getBoundingClientRect();this.drop(t.clientX-e.left,t.clientY-e.top,1.5)})}},{id:"bg-fx",text:ce})}function fe(t="usa-dot-network"){return b(t,t=>class extends t{mount(){const t=Math.max(8,this.num("gap",28)),e=this.num("radius",140),s=this.str("color","124,92,255");let i=-1e4,a=-1e4;this.listen(this,"pointermove",t=>{const e=this.getBoundingClientRect();i=t.clientX-e.left,a=t.clientY-e.top}),this.listen(this,"pointerleave",()=>i=a=-1e4),ue(this,(r,n,o)=>{r.clearRect(0,0,n,o);const l=[];for(let c=t/2;c<o;c+=t)for(let o=t/2;o<n;o+=t){const t=Math.hypot(o-i,c-a),n=t<e?1-t/e:0,u=n?(o-i)/(t||1)*n*8:0,d=n?(c-a)/(t||1)*n*8:0;r.fillStyle=`rgba(${s},${(.25+.75*n).toFixed(3)})`,r.beginPath(),r.arc(o+u,c+d,1.2+2.2*n,0,2*Math.PI),r.fill(),n>.2&&l.push([o+u,c+d,n])}r.lineWidth=1;for(const[t,e,n]of l)r.strokeStyle=`rgba(${s},${(.5*n).toFixed(3)})`,r.beginPath(),r.moveTo(t,e),r.lineTo(i,a),r.stroke()},this.reduced)}},{id:"bg-fx",text:ce})}function me(){p("variants",':root{--usa-accent:#7c5cff;--usa-accent-text:#fff;--usa-surface:#1b1e27;--usa-text:inherit;--usa-radius:14px;--usa-border:1px solid rgb(127 127 127 / 0.25);--usa-shadow:0 10px 30px -12px rgb(0 0 0 / 0.45);--usa-blur:0px;--usa-font:inherit}:where([variant="minimal"],[data-usa-variant="minimal"]){--usa-accent:currentColor;--usa-accent-text:Canvas;--usa-surface:transparent;--usa-radius:6px;--usa-border:1px solid color-mix(in srgb,currentColor 22%,transparent);--usa-shadow:none;--usa-blur:0px}:where([variant="neon"],[data-usa-variant="neon"]){--usa-accent:#00f0ff;--usa-accent-text:#04121a;--usa-surface:#0a0b14;--usa-text:#e6fbff;--usa-radius:10px;--usa-border:1px solid #00f0ff;--usa-shadow:0 0 6px #00f0ff,0 0 22px rgb(0 240 255 / 0.45);--usa-blur:0px}:where([variant="glass"],[data-usa-variant="glass"]){--usa-accent:#a78bfa;--usa-accent-text:#fff;--usa-surface:rgb(255 255 255 / 0.12);--usa-radius:18px;--usa-border:1px solid rgb(255 255 255 / 0.28);--usa-shadow:0 12px 40px -12px rgb(0 0 0 / 0.35);--usa-blur:16px}:where([variant="brutalist"],[data-usa-variant="brutalist"]){--usa-accent:#ff3d00;--usa-accent-text:#000;--usa-surface:#fff;--usa-text:#000;--usa-radius:0px;--usa-border:3px solid #000;--usa-shadow:5px 5px 0 #000;--usa-blur:0px;--usa-font:ui-monospace,"SFMono-Regular",Menlo,monospace}:where([variant="fluent"],[data-usa-variant="fluent"]){--usa-accent:#0067c0;--usa-accent-text:#fff;--usa-surface:rgb(249 249 249 / 0.82);--usa-text:#1a1a1a;--usa-radius:8px;--usa-border:1px solid rgb(0 0 0 / 0.08);--usa-shadow:0 2px 4px rgb(0 0 0 / 0.14),0 0 2px rgb(0 0 0 / 0.12);--usa-blur:30px;--usa-font:"Segoe UI Variable","Segoe UI",system-ui,sans-serif}:where([variant="material"],[data-usa-variant="material"]){--usa-accent:#6750a4;--usa-accent-text:#fff;--usa-surface:#fffbfe;--usa-text:#1c1b1f;--usa-radius:20px;--usa-border:0 solid transparent;--usa-shadow:0 1px 3px rgb(0 0 0 / 0.3),0 4px 8px 3px rgb(0 0 0 / 0.15);--usa-blur:0px;--usa-font:Roboto,system-ui,sans-serif}@media (prefers-color-scheme:dark){:where([variant="fluent"],[data-usa-variant="fluent"]){--usa-accent:#4cc2ff;--usa-accent-text:#000;--usa-surface:rgb(44 44 44 / 0.8);--usa-text:#fff;--usa-border:1px solid rgb(255 255 255 / 0.08)}:where([variant="material"],[data-usa-variant="material"]){--usa-accent:#d0bcff;--usa-accent-text:#381e72;--usa-surface:#1c1b1f;--usa-text:#e6e1e5}}.usa-surface{background:var(--usa-surface);color:var(--usa-text);border:var(--usa-border);border-radius:var(--usa-radius);box-shadow:var(--usa-shadow);font-family:var(--usa-font);-webkit-backdrop-filter:blur(var(--usa-blur));backdrop-filter:blur(var(--usa-blur))}@media (prefers-reduced-transparency:reduce){.usa-surface{-webkit-backdrop-filter:none;backdrop-filter:none}}')}function ge(t,e=("undefined"!=typeof document?document.documentElement:null)){e&&(me(),t?e.setAttribute("data-usa-variant",t):e.removeAttribute("data-usa-variant"))}function be(){ae(),re(),ne(),oe(),le(),de(),he(),pe(),fe()}const ye={modal:"scale(0.94)","drawer-start":"translateX(-100%)","drawer-end":"translateX(100%)","drawer-bottom":"translateY(100%)",sheet:"translateY(40px)"};function ve(t="usa-dialog"){return b(t,t=>class extends t{constructor(){super(...arguments),this._dialog=null,this._panel=null,this._backdrop=null,this._busy=null,this._syncing=!1,this.returnValue=""}static get observedAttributes(){return["open","kind","label"]}get dialog(){return this._dialog}get open(){return this.hasAttribute("open")}set open(t){this.toggleAttribute("open",!!t)}get kind(){return j(this,ye,"modal")}changed(t){if("open"===t){if(this._syncing)return;this.open?this.show():this.close()}else this.syncAttrs()}syncAttrs(){if(!this._dialog)return;this._dialog.setAttribute("data-kind",this.kind),this._dialog.setAttribute("aria-modal","true");const t=this.getAttribute("label");t&&this._dialog.setAttribute("aria-label",t)}mount(){if(!this._dialog){const t=this.shadowRoot||this.attachShadow({mode:"open"});t.innerHTML='<dialog part="dialog"><div part="backdrop" aria-hidden="true"></div><div part="panel"><slot></slot></div></dialog>',function(t,e){try{if("function"==typeof CSSStyleSheet&&"adoptedStyleSheets"in t){const s=new CSSStyleSheet;return s.replaceSync(e),void(t.adoptedStyleSheets=[s])}}catch{}const s=document.createElement("style");s.textContent=e,t.prepend(s)}(t,':host{display:contents}dialog{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;color:inherit;overflow:hidden}dialog:not([open]){display:none}dialog::backdrop{background:transparent}[part="backdrop"]{position:absolute;inset:0;background:var(--usa-dialog-backdrop,rgb(0 0 0 / 0.42))}[part="panel"]{position:absolute;left:50%;top:50%;translate:-50% -50%;box-sizing:border-box;width:min(var(--usa-dialog-width,480px),calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto;padding:var(--usa-dialog-padding,24px);border-radius:var(--usa-dialog-radius,12px);background:var(--usa-dialog-bg,Canvas);color:var(--usa-dialog-fg,CanvasText);box-shadow:0 32px 64px -12px rgb(0 0 0 / 0.45),0 0 0 1px rgb(127 127 127 / 0.18)}dialog[data-kind^="drawer"] [part="panel"]{top:0;bottom:0;translate:none;max-height:none;height:100%;border-radius:0;width:min(var(--usa-dialog-width,380px),88vw)}dialog[data-kind="drawer-start"] [part="panel"]{left:0}dialog[data-kind="drawer-end"] [part="panel"]{left:auto;right:0}dialog[data-kind="drawer-bottom"] [part="panel"],dialog[data-kind="sheet"] [part="panel"]{top:auto;bottom:0;left:0;right:0;translate:none;width:100%;height:auto;max-height:85vh;border-radius:var(--usa-dialog-radius,16px) var(--usa-dialog-radius,16px) 0 0}dialog[data-kind="sheet"] [part="panel"]{left:50%;translate:-50% 0;width:min(var(--usa-dialog-width,560px),100vw)}'),this._dialog=t.querySelector("dialog"),this._backdrop=t.querySelector("[part=backdrop]"),this._panel=t.querySelector("[part=panel]")}this.syncAttrs();const t=this._dialog;this.listen(t,"cancel",t=>{t.preventDefault(),this.flag("no-esc")||this.close("cancel")}),this.listen(this._backdrop,"click",()=>!this.flag("no-backdrop-close")&&this.close("backdrop")),this.listen(this,"click",t=>{const e=t.target.closest?.("[data-close]");e&&this.contains(e)&&this.close(e.getAttribute("data-close")||"close")}),this.open&&!t.open&&this.show()}unmount(){this._dialog?.open&&this._dialog.close()}setOpenAttr(t){this._syncing=!0,this.toggleAttribute("open",t),this._syncing=!1}async show(){await this._busy;const t=this._dialog;if(t){if(!t.open){this.setOpenAttr(!0);try{"function"==typeof t.showModal?t.showModal():t.setAttribute("open","")}catch{t.setAttribute("open","")}this.emit("open"),this.reduced?await this.animate2([{opacity:0},{opacity:1}],[{opacity:0},{opacity:1}],160,Y):await this.animate2([{opacity:0,transform:ye[this.kind]},{opacity:1,transform:"none"}],[{opacity:0},{opacity:1}],"modal"===this.kind?260:360,O)}}else this.setOpenAttr(!0)}async close(t=""){await this._busy;const e=this._dialog;e&&e.open?this.emit("beforeclose",{returnValue:t})?(this.returnValue=t,this._busy=(async()=>{const s=this.reduced?{opacity:0}:{opacity:0,transform:ye[this.kind]},i=this.reduced?{opacity:1}:{opacity:1,transform:"none"};await this.animate2([i,s],[{opacity:1},{opacity:0}],this.reduced?120:200,"cubic-bezier(0.7, 0, 0.84, 0)","forwards");try{"function"==typeof e.close?e.close(t):e.removeAttribute("open")}catch{e.removeAttribute("open")}e.removeAttribute("open"),this._panel?.getAnimations?.().forEach(t=>t.cancel()),this._backdrop?.getAnimations?.().forEach(t=>t.cancel()),this.setOpenAttr(!1),this.emit("close",{returnValue:t})})(),await this._busy,this._busy=null):this.setOpenAttr(!0):this.setOpenAttr(!1)}animate2(t,e,s,i,a="none"){const r=this._panel?this.motion(this._panel,t,{duration:s,easing:i,fill:a}):null,n=this._backdrop?this.motion(this._backdrop,e,{duration:s,easing:"linear",fill:a}):null;return Promise.all([r?.finished,n?.finished].map(t=>t?.catch(()=>{}))).then(()=>{})}},{id:"dialog",text:"usa-dialog{display:contents}usa-dialog:not(:defined){display:none}"})}function xe(t="usa-accordion"){return b(t,t=>class extends t{constructor(){super(...arguments),this._running=new WeakMap}static get observedAttributes(){return[]}get items(){return Array.from(this.children).filter(t=>"DETAILS"===t.tagName)}mount(){this.listen(this,"click",t=>{const e=t.target.closest?.("summary"),s=e?.parentElement;e&&s&&"DETAILS"===s.tagName&&s.parentElement===this&&(t.preventDefault(),this.toggleItem(s))})}closedHeight(t){const e=t.querySelector(":scope > summary"),s="function"==typeof getComputedStyle?getComputedStyle(t):null,i=s?["paddingTop","paddingBottom","borderTopWidth","borderBottomWidth"].reduce((t,e)=>t+(parseFloat(s[e])||0),0):0;return(e?e.getBoundingClientRect().height:0)+i}async toggleItem(t,e=!t.open||t.hasAttribute("data-closing")){e&&!this.flag("multiple")&&this.items.forEach(e=>e!==t&&e.open&&this.toggleItem(e,!1)),this._running.get(t)?.cancel(),this._running.delete(t);const s=this.reduced?0:this.num("duration",300),i=t.getBoundingClientRect().height;if(e&&(t.removeAttribute("data-closing"),t.open=!0),this.emit("toggle",{details:t,open:e}),!s||"function"!=typeof t.animate)return void(e||(t.open=!1));const a=e?t.getBoundingClientRect().height:this.closedHeight(t);e||t.setAttribute("data-closing",""),t.style.overflow="hidden";const r=t.animate([{height:`${i}px`},{height:`${a}px`}],{duration:s,easing:Y});this._running.set(t,r),await r.finished.catch(()=>{}),this._running.get(t)===r&&(this._running.delete(t),t.style.overflow="",e||(t.open=!1,t.removeAttribute("data-closing")))}},{id:"accordion",text:'usa-accordion{display:block}usa-accordion>details>summary{cursor:pointer}usa-accordion>details>summary::-webkit-details-marker{display:none}usa-accordion>details>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:1em}usa-accordion>details>summary::after{content:"";flex:none;width:0.5em;height:0.5em;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-25%) rotate(45deg);transition:transform 0.3s cubic-bezier(0.22,1,0.36,1);opacity:0.7}usa-accordion>details[open]:not([data-closing])>summary::after{transform:translateY(25%) rotate(-135deg)}@media (prefers-reduced-motion:reduce){usa-accordion>details>summary::after{transition:none}}'})}function we(t="usa-view-switch"){return b(t,t=>class extends t{constructor(){super(...arguments),this._index=-1,this._anims=[]}static get observedAttributes(){return["active"]}get views(){return Array.from(this.children)}get active(){return this.str("active","0")}set active(t){this.setAttribute("active",String(t))}indexOf(t){const e=this.views,s=e.findIndex(e=>e.dataset.view===String(t));if(s>=0)return s;const i=Number(t);return Number.isInteger(i)&&i>=0&&i<e.length?i:-1}changed(){this.show(this.active)}mount(){const t=Math.max(0,this.indexOf(this.active));this._index=t,this.views.forEach((e,s)=>this.setVisible(e,s===t))}setVisible(t,e){t.hidden=!e,t.toggleAttribute("inert",!e),t.toggleAttribute("data-active",e)}async show(t){const e=this.indexOf(t),s=this._index;if(e<0||e===s)return;const i=this.views,a=i[s],r=i[e];this._index=e;const n=r.dataset.view??String(e);if(this.active!==n&&this.active!==String(e)&&this.setAttribute("active",n),this._anims.splice(0).forEach(t=>t.finish()),this.setVisible(r,!0),this.emit("change",{view:r,index:e,name:n}),!a)return;const o=this.num("duration",320),l=e>s?1:-1;let c,u;switch(this.reduced?"fade":this.str("effect","slide")){case"fade":c={opacity:0},u={opacity:0};break;case"scale":c={opacity:0,transform:"scale(0.96)"},u={opacity:0,transform:"scale(1.04)"};break;case"drill":c={opacity:0,transform:`scale(${l>0?1.06:.94})`},u={opacity:0,transform:`scale(${l>0?.94:1.06})`};break;default:c={opacity:0,transform:`translateX(${32*-l}px)`},u={opacity:0,transform:`translateX(${48*l}px)`}}const d=t=>"transform"in t?{opacity:1,transform:"none"}:{opacity:1};a.setAttribute("data-leaving","");const h=this.motion(a,[d(c),c],{duration:.6*o,easing:Y,fill:"forwards"}),p=this.motion(r,[u,d(u)],{duration:o,delay:.15*o,easing:O,fill:"backwards"});this._anims=[h,p].filter(t=>!!t),await Promise.all(this._anims.map(t=>t.finished.catch(()=>{}))),a.removeAttribute("data-leaving"),this._index!==s&&this.setVisible(a,!1),h?.cancel()}},{id:"view-switch",text:"usa-view-switch{display:grid}usa-view-switch>*{grid-area:1 / 1;min-width:0}usa-view-switch>[hidden]:not([data-leaving]){display:none !important}usa-view-switch>[data-leaving]{display:block;pointer-events:none}"})}const ke=t=>t instanceof Element?Array.from(t.children):Array.from(t);function _e(){ve(),xe(),we()}const Ae={default:{stiffness:170,damping:26,mass:1},gentle:{stiffness:120,damping:14,mass:1},wobbly:{stiffness:180,damping:12,mass:1},stiff:{stiffness:210,damping:20,mass:1},bouncy:{stiffness:300,damping:10,mass:1},slow:{stiffness:280,damping:60,mass:1},molasses:{stiffness:280,damping:120,mass:1}};function Me(t){const e="string"==typeof t?Ae[t]||Ae.default:{...Ae.default,...t||{}},s=(t,e)=>"number"==typeof t&&Number.isFinite(t)&&t>0?t:e,i="object"==typeof t&&t||{};return{stiffness:s(e.stiffness,170),damping:Math.max(0,Number.isFinite(e.damping)?e.damping:26),mass:s(e.mass,1),velocity:Number.isFinite(i.velocity)?i.velocity:0,precision:s(i.precision,.001)}}function Ee(t,e,s,i,a){const r=s+(-t.stiffness*(e-i)-t.damping*s)/t.mass*a;return[e+r*a,r]}const Se=new Map;function Ce(t,e=60){const s=Me(t),i=`${s.stiffness}|${s.damping}|${s.mass}|${s.velocity}|${s.precision}|${e}`,a=Se.get(i);if(a)return a;const r=[0];let n=0,o=s.velocity;const l=1e3/e;let c=0,u=l;for(;c<1e4&&([n,o]=Ee(s,n,o,1,.001),c+=1,!(c>=u&&(r.push(n),u+=l,Math.abs(1-n)<s.precision&&Math.abs(o)<10*s.precision))););r[r.length-1]=1;const d={values:r,duration:Math.round(c)};return Se.size>64&&Se.clear(),Se.set(i,d),d}function $e(){return"undefined"!=typeof CSS&&"function"==typeof CSS.supports&&CSS.supports("animation-timing-function","linear(0, 1)")}function Te(t,e=48){const{values:s,duration:i}=Ce(t);return $e()?{easing:ze(s,e),duration:i}:{easing:B,duration:Math.min(i,1200)}}function ze(t,e=48){const s=t.length,i=Math.max(1,Math.ceil((s-1)/Math.max(2,e-1))),a=[];for(let e=0;e<s-1;e+=i)a.push(String(Math.round(1e3*t[e])/1e3));return a.push("1"),`linear(${a.join(", ")})`}function Pe(t={}){let e=Me(t.spring),s=t.value??0,i=0,a=s,r=0,n=0,o=!1;const l=()=>{o&&T(r),o=!1},c=()=>{const l=$();let u=Math.min(64,Math.max(1,l-n));for(n=l;u>0;){const t=Math.min(u,4);[s,i]=Ee(e,s,i,a,t/1e3),u-=t}const d=Math.max(1,5e-4*Math.abs(a));if(Math.abs(a-s)<e.precision*d*10&&Math.abs(i)<e.precision*d*100)return s=a,i=0,o=!1,t.onUpdate?.(s,0),void t.onRest?.(s);t.onUpdate?.(s,i),r=C(c)},u={get value(){return s},get velocity(){return i},get target(){return a},get animating(){return o},set(e,s){if(a=e,void 0!==s&&Number.isFinite(s)&&(i=s),d())return u.jump(e),void t.onRest?.(e);o||(o=!0,n=$(),r=C(c))},jump(e){l(),s=a=e,i=0,t.onUpdate?.(s,0)},stop(){l(),i=0,a=s},configure(t){e=Me(t)}};return u}function Fe(t,e,s=.325){return t+e*s}function Le(t,e){return Array.isArray(e)?e.length?e.reduce((e,s)=>Math.abs(s-t)<Math.abs(e-t)?s:e,e[0]):t:"number"==typeof e&&e>0?Math.round(t/e)*e:t}function qe(t,e,s=.55){if(e<=0)return 0;return(t<0?-1:1)*(1-1/(Math.abs(t)*s/e+1))*e}const Re=new Set(["bounce-in","pop","drop"]);function Ie(t,e=!1){if(e)return Re.has(t)?[{opacity:0},{opacity:1}]:[{opacity:1},{opacity:1}];switch(t){case"pop":return[{opacity:0,transform:"scale(0.5)"},{opacity:1,transform:"scale(1)"}];case"drop":return[{opacity:0,transform:"translate3d(0, -120%, 0)"},{opacity:1,transform:"translate3d(0, 0, 0)"}];case"jelly":return[{transform:"scale3d(1, 1, 1)"},{transform:"scale3d(1.25, 0.75, 1)",offset:.3},{transform:"scale3d(0.75, 1.25, 1)",offset:.4},{transform:"scale3d(1.15, 0.85, 1)",offset:.5},{transform:"scale3d(0.95, 1.05, 1)",offset:.65},{transform:"scale3d(1.05, 0.95, 1)",offset:.75},{transform:"scale3d(1, 1, 1)"}];case"rubber-band":return[{transform:"scale3d(1, 1, 1)"},{transform:"scale3d(1.3, 0.7, 1)",offset:.3},{transform:"scale3d(0.8, 1.2, 1)",offset:.45},{transform:"scale3d(1.1, 0.9, 1)",offset:.6},{transform:"scale3d(0.97, 1.03, 1)",offset:.8},{transform:"scale3d(1, 1, 1)"}];default:return[{opacity:0,transform:"scale(0.3)"},{opacity:1,transform:"scale(1)"}]}}const Ne={"bounce-in":"bouncy",pop:"wobbly",drop:"bouncy"};function Ye(t="usa-spring"){return b(t,t=>class extends t{constructor(){super(...arguments),this._anim=null}static get observedAttributes(){return["effect","trigger","repeat"]}get effect(){return this.str("effect","bounce-in")}set effect(t){this.setAttribute("effect",t)}config(){return this.hasAttribute("stiffness")||this.hasAttribute("damping")||this.hasAttribute("mass")?{stiffness:this.num("stiffness",170),damping:this.num("damping",26),mass:this.num("mass",1)}:this.str("preset",Ne[this.effect]||"wobbly")}mount(){const t=this.str("trigger","view"),e=Re.has(this.effect);"view"===t?(e&&this.setAttribute("data-state","hidden"),this.inView(t=>{t?this.play():this.flag("repeat")&&e&&this.reset()},{threshold:.15})):("hover"===t&&this.listen(this,"pointerenter",()=>this.play()),"click"===t&&(this.listen(this,"click",()=>this.play()),this.listen(this,"keydown",t=>("Enter"===t.key||" "===t.key)&&!t.repeat&&this.play())))}unmount(){this._anim?.cancel(),this._anim=null}reset(){this._anim?.cancel(),this._anim=null,Re.has(this.effect)&&this.setAttribute("data-state","hidden")}async play(){const t=this.effect,e=this.reduced;this._anim?.cancel(),this.setAttribute("data-state","playing");const s=Ie(t,e),i=Re.has(t)&&!e?Te(this.config()):{duration:e?250:this.num("duration",900),easing:"ease-out"},a=this.motion(this,s,{...i,delay:this.num("delay",0),fill:"backwards"});if(this._anim=a,a){try{await a.finished}catch{return}if(this._anim!==a)return}this._anim=null,this.setAttribute("data-state","done"),this.emit("complete",{effect:t})}},{id:"spring",text:'usa-spring{display:inline-block;transform-origin:50% 70%}usa-spring[block]{display:block}usa-spring[effect="drop"]{transform-origin:50% 100%}usa-spring[data-state="hidden"]{opacity:0}usa-spring[trigger="click"],usa-spring[trigger="hover"]{cursor:pointer;-webkit-tap-highlight-color:transparent}'})}const Be=t=>{if(!t.trim())return null;const e=t.split(",").map(t=>Number(t.trim())).filter(t=>Number.isFinite(t));return e.length?t.includes(",")?e:e[0]:null};function Oe(t="usa-draggable"){return b(t,t=>class extends t{constructor(){super(...arguments),this._x=0,this._y=0,this._drag=null}static get observedAttributes(){return["axis","disabled","preset"]}get x(){return this._x}get y(){return this._y}get dragging(){return!!this._drag}render(){this.style.transform=`translate3d(${this._x}px, ${this._y}px, 0)`,this.style.setProperty("--usa-drag-x",`${this._x}px`),this.style.setProperty("--usa-drag-y",`${this._y}px`)}axis(){return this.str("axis","both")}limits(){if("parent"!==this.str("bounds")||!this.parentElement)return null;const t=this.parentElement.getBoundingClientRect(),e=this.getBoundingClientRect(),s=e.left-this._x,i=e.top-this._y;return{minX:t.left-s,maxX:t.right-s-e.width,minY:t.top-i,maxY:t.bottom-i-e.height}}mount(){let t=0;const e=()=>{++t>=2&&(t=0,this.removeAttribute("data-moving"),this.emit("settle",{x:this._x,y:this._y}))},s=this.str("preset","wobbly");this._sx=Pe({value:this._x,spring:s,onUpdate:t=>(this._x=t,this.render()),onRest:e}),this._sy=Pe({value:this._y,spring:s,onUpdate:t=>(this._y=t,this.render()),onRest:e}),this.hasAttribute("tabindex")||(this.tabIndex=0),this.setAttribute("aria-roledescription","draggable"),this.listen(this,"pointerdown",t=>this.start(t)),this.listen(this,"pointermove",t=>this.move(t)),this.listen(this,"pointerup",t=>this.end(t)),this.listen(this,"pointercancel",t=>this.end(t)),this.listen(this,"keydown",t=>this.key(t)),this.render()}unmount(){this._sx?.stop(),this._sy?.stop(),this._drag=null}start(t){if(!(this.flag("disabled")||"mouse"===t.pointerType&&0!==t.button)){this._sx.stop(),this._sy.stop(),this._drag={id:t.pointerId,px:t.clientX,py:t.clientY,ox:this._x,oy:this._y,samples:[[t.clientX,t.clientY,"number"==typeof t.timeStamp?t.timeStamp:Date.now()]]};try{this.setPointerCapture?.(t.pointerId)}catch{}this.setAttribute("data-dragging",""),this.emit("drag-start",{x:this._x,y:this._y})}}move(t){const e=this._drag;if(!e||t.pointerId!==e.id)return;const s=this.axis();let i="y"===s?e.ox:e.ox+t.clientX-e.px,a="x"===s?e.oy:e.oy+t.clientY-e.py;const r=this.limits();if(r){const t=(t,e,s,i)=>t<e?e+qe(t-e,i):t>s?s+qe(t-s,i):t;i=t(i,r.minX,r.maxX,200),a=t(a,r.minY,r.maxY,200)}this._x=i,this._y=a,e.samples.push([t.clientX,t.clientY,"number"==typeof t.timeStamp?t.timeStamp:Date.now()]),e.samples.length>6&&e.samples.shift(),this.render(),this.emit("drag",{x:i,y:a})}velocity(){const t=this._drag?.samples||[];if(t.length<2)return[0,0];const e=t[0],s=t[t.length-1],i=(s[2]-e[2])/1e3;return i<=0||i>.3?[0,0]:[(s[0]-e[0])/i,(s[1]-e[1])/i]}end(t){const e=this._drag;if(!e||t.pointerId!==e.id)return;let[s,i]=this.velocity();const a=this.axis();"y"===a&&(s=0),"x"===a&&(i=0),this._drag=null,this.removeAttribute("data-dragging");let r=this._x,n=this._y;this.flag("spring-back")?(r=0,n=0):(this.flag("inertia")&&!this.reduced&&(r=Fe(r,s),n=Fe(n,i)),[r,n]=this.constrain(r,n)),this.emit("drag-end",{x:r,y:n,vx:s,vy:i}),this.go(r,n,s,i)}constrain(t,e){const s=Be(this.str("snap"));let i=Le(t,s),a=Le(e,s);const r=this.limits();r&&(i=H(i,r.minX,Math.max(r.minX,r.maxX)),a=H(a,r.minY,Math.max(r.minY,r.maxY)));const n=this.axis();return["y"===n?0:i,"x"===n?0:a]}go(t,e,s=0,i=0){this.setAttribute("data-moving",""),this._sx.set(t,s),this._sy.set(e,i)}key(t){if(this.flag("disabled"))return;const e=this.num("step",16),s=Be(this.str("snap")),i="number"==typeof s?s:e,a={ArrowLeft:[-i,0],ArrowRight:[i,0],ArrowUp:[0,-i],ArrowDown:[0,i]};if("Home"===t.key||"Escape"===t.key)return t.preventDefault(),void this.reset();const r=a[t.key];if(!r)return;t.preventDefault();const[n,o]=this.flag("spring-back")?[this._sx.target+r[0],this._sy.target+r[1]]:this.constrain(this._sx.target+r[0],this._sy.target+r[1]);this.go(n,o)}moveTo(t,e,s=!0){if(!s)return this._sx.jump(t),void this._sy.jump(e);this.go(t,e)}reset(){this.go(0,0)}},{id:"draggable",text:'usa-draggable{display:inline-block;touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab;will-change:transform;-webkit-tap-highlight-color:transparent}usa-draggable[axis="x"]{touch-action:pan-y}usa-draggable[axis="y"]{touch-action:pan-x}usa-draggable[block]{display:block}usa-draggable[data-dragging]{cursor:grabbing}usa-draggable[disabled]{cursor:default}usa-draggable:focus-visible{outline:2px solid var(--usa-accent,#7c5cff);outline-offset:3px}'})}function Xe(t="usa-overscroll"){return b(t,t=>class extends t{constructor(){super(...arguments),this._off=0}static get observedAttributes(){return["axis","disabled"]}get offset(){return this._off}set(t){this._off=t,this.style.setProperty("--usa-overscroll",`${t}px`),this.toggleAttribute("data-stretched",Math.abs(t)>.5)}edge(t){const e="x"===this.str("axis","y"),s=e?this.scrollLeft:this.scrollTop,i=(e?this.scrollWidth-this.clientWidth:this.scrollHeight-this.clientHeight)-1;return t<0&&s<=0||t>0&&s>=i}stretch(t){const e=this.num("max",120);this.set(Math.max(-e,Math.min(e,qe(t,2.5*e))))}mount(){this._spring=Pe({spring:this.str("preset","default"),onUpdate:t=>this.set(t)});const t="x"===this.str("axis","y"),e=()=>this.flag("disabled")||this.reduced;let s,i=0;this.listen(this,"wheel",a=>{const r=t&&a.deltaX||a.deltaY;!e()&&r&&this.edge(r)&&(this._spring.stop(),i-=r,this.stretch(i),clearTimeout(s),s=setTimeout(()=>{i=0,this._spring.jump(this._off),this._spring.set(0)},140))},{passive:!0}),this.onCleanup(()=>clearTimeout(s));let a=0,r=!1;this.listen(this,"touchstart",s=>{if(e())return;const i=s.touches[0];a=t?i.clientX:i.clientY,r=!1,this._spring.stop()},{passive:!0}),this.listen(this,"touchmove",s=>{if(e())return;const i=s.touches[0],n=(t?i.clientX:i.clientY)-a;!r&&0!==n&&this.edge(-n)&&(r=!0),r&&(s.cancelable&&s.preventDefault(),this.stretch(n))},{passive:!1});const n=()=>{r&&(r=!1,this._spring.jump(this._off),this._spring.set(0))};this.listen(this,"touchend",n),this.listen(this,"touchcancel",n)}unmount(){this._spring?.stop(),this.set(0)}},{id:"overscroll",text:'usa-overscroll{display:block;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}usa-overscroll[axis="x"]{overflow-y:hidden}usa-overscroll>*{transform:translate3d(0,var(--usa-overscroll,0px),0)}usa-overscroll[axis="x"]>*{transform:translate3d(var(--usa-overscroll,0px),0,0)}usa-overscroll[data-stretched]>*{will-change:transform}'})}function De(){Ye(),Oe(),Xe()}const je=new Set(["holo","border-glow","spotlight","parallax-layers","lift"]);function He(t="usa-card"){return b(t,t=>class extends t{constructor(){super(...arguments),this._frame=0,this._spacer=null,this._backdrop=null,this._busy=!1}static get observedAttributes(){return["effect","trigger","disabled"]}get effects(){return this.str("effect","lift").split(/[\s,]+/).filter(Boolean)}has(t){return this.effects.includes(t)}get flipped(){return this.flag("flipped")}set flipped(t){this.setFlag("flipped",t)}get expanded(){return this.flag("expanded")}mount(){if(this.flag("disabled"))return;const t=this.str("color");if(t&&this.style.setProperty("--usa-card-glow",t),this.has("sheen")&&!this.querySelector(":scope > .usa-card-sheen")&&this.append(Ve("usa-card-sheen")),this.has("holo")&&!this.querySelector(":scope > .usa-card-holo")&&this.append(Ve("usa-card-holo")),this.has("flip")){"click"===this.str("trigger","hover")&&(this.hasAttribute("tabindex")||(this.tabIndex=0),this.setAttribute("role",this.getAttribute("role")||"button"),this.setAttribute("aria-pressed",String(this.flipped)),this.listen(this,"click",t=>!Ue(t.target,this)&&this.flip()),this.listen(this,"keydown",t=>{"Enter"!==t.key&&" "!==t.key||t.target!==this||(t.preventDefault(),this.flip())})),this.setBackHidden()}if(this.has("expand")&&(this.hasAttribute("tabindex")||(this.tabIndex=0),this.setAttribute("aria-expanded",String(this.expanded)),this.listen(this,"click",t=>{const e=t.target;e.closest?.("[data-close]")?(t.stopPropagation(),this.collapse()):this.expanded||Ue(e,this)||this.expand()}),this.listen(this,"keydown",t=>{"Escape"===t.key&&this.expanded?this.collapse():"Enter"!==t.key&&" "!==t.key||t.target!==this||this.expanded||(t.preventDefault(),this.expand())})),!this.effects.some(t=>je.has(t))||this.reduced)return;let e=null,s=.5,i=.5;const a=()=>{this._frame=0;const t=H(2*s-1,-1,1),e=H(2*i-1,-1,1);if(this.style.setProperty("--usa-card-x",`${(100*s).toFixed(1)}%`),this.style.setProperty("--usa-card-y",`${(100*i).toFixed(1)}%`),this.style.setProperty("--usa-card-nx",t.toFixed(3)),this.style.setProperty("--usa-card-ny",e.toFixed(3)),this.has("parallax-layers")){const s=this.num("depth",16);this.querySelectorAll("[data-depth]").forEach(i=>{const a=Number(i.dataset.depth)||.5;i.style.transform=`translate3d(${(t*s*a).toFixed(1)}px, ${(e*s*a).toFixed(1)}px, 0)`})}};this.listen(this,"pointerenter",()=>{e=this.getBoundingClientRect(),this.setAttribute("data-hover","")}),this.listen(this,"pointermove",t=>{this.expanded||(e=e||this.getBoundingClientRect(),s=(t.clientX-e.left)/(e.width||1),i=(t.clientY-e.top)/(e.height||1),this._frame||(this._frame=C(a)))}),this.listen(this,"pointerleave",()=>{e=null,s=i=.5,this.removeAttribute("data-hover"),this._frame||(this._frame=C(a))})}unmount(){T(this._frame),this._frame=0,this.expanded&&this.finishCollapse()}setBackHidden(){const t=this.querySelector(":scope > [data-front]"),e=this.querySelector(":scope > [data-back]");t?.setAttribute("aria-hidden",String(this.flipped)),e?.setAttribute("aria-hidden",String(!this.flipped))}flip(t){const e=void 0===t?!this.flipped:t;e!==this.flipped&&(this.flipped=e,this.hasAttribute("aria-pressed")&&this.setAttribute("aria-pressed",String(e)),this.setBackHidden(),this.emit("flip",{flipped:e}))}async expand(){if(this.expanded||this._busy)return;this._busy=!0;const t=this.getBoundingClientRect(),e=document.createElement("div");e.className="usa-card-spacer",e.style.cssText=`width:${t.width}px;height:${t.height}px`,e.setAttribute("aria-hidden","true"),this.before(e),this._spacer=e;const s=document.createElement("div");s.className="usa-card-backdrop",s.addEventListener("click",()=>this.collapse()),this.before(s),this._backdrop=s,this.setFlag("expanded",!0),this.setAttribute("aria-expanded","true"),this.emit("expand");const i=this.getBoundingClientRect();await this.flipFrom(t,i),this.motion(s,[{opacity:0},{opacity:1}],{duration:250,easing:"ease-out"}),this.focus({preventScroll:!0}),this._busy=!1}async collapse(){if(!this.expanded||this._busy)return;this._busy=!0;const t=this.getBoundingClientRect(),e=this._backdrop;e&&this.motion(e,[{opacity:1},{opacity:0}],{duration:200,easing:"ease-in",fill:"forwards"}),this.finishCollapse(),this.emit("collapse");const s=this.getBoundingClientRect();await this.flipFrom(t,s),this._busy=!1}finishCollapse(){this.setFlag("expanded",!1),this.setAttribute("aria-expanded","false"),this._spacer?.remove(),this._backdrop?.remove(),this._spacer=this._backdrop=null}async flipFrom(t,e){if(this.reduced){const t=this.motion(this,[{opacity:.4},{opacity:1}],{duration:200});return void await(t?.finished.catch(()=>{}))}const s=t.width/(e.width||1),i=t.height/(e.height||1),a=t.left-e.left,r=t.top-e.top,{easing:n,duration:o}=Te("stiff"),l=this.motion(this,[{transformOrigin:"0 0",transform:`translate(${a}px, ${r}px) scale(${s}, ${i})`},{transformOrigin:"0 0",transform:"none"}],{duration:Math.min(o,900),easing:n||Y});await(l?.finished.catch(()=>{}))}},{id:"card",text:'usa-card{--usa-card-radius:18px;--usa-card-bg:var(--usa-surface,#1b1e27);--usa-card-glow:var(--usa-accent,#7c5cff);--usa-card-x:50%;--usa-card-y:50%;--usa-card-nx:0;--usa-card-ny:0;position:relative;display:block;border-radius:var(--usa-card-radius);isolation:isolate;-webkit-tap-highlight-color:transparent}usa-card:focus-visible{outline:2px solid var(--usa-card-glow);outline-offset:3px}usa-card[effect~="lift"]{transition:transform 0.45s cubic-bezier(0.34,1.56,0.64,1),box-shadow 0.45s ease}usa-card[effect~="lift"][data-hover],usa-card[effect~="lift"]:focus-visible{transform:translateY(-6px) perspective(900px) rotateX(calc(var(--usa-card-ny) * -4deg)) rotateY(calc(var(--usa-card-nx) * 4deg));box-shadow:0 22px 44px -18px rgb(0 0 0 / 0.55)}usa-card[effect~="glass"]{background:color-mix(in srgb,var(--usa-card-bg) 45%,transparent);border:1px solid rgb(255 255 255 / 0.16);-webkit-backdrop-filter:blur(18px) saturate(1.5);backdrop-filter:blur(18px) saturate(1.5)}usa-card[effect~="spotlight"]::before,usa-card[effect~="border-glow"]::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:0;transition:opacity 0.3s ease}usa-card[effect~="spotlight"]::before{z-index:-1;background:radial-gradient(260px circle at var(--usa-card-x) var(--usa-card-y),color-mix(in srgb,var(--usa-card-glow) 28%,transparent),transparent 70%)}usa-card[effect~="border-glow"]::after{padding:1.5px;background:radial-gradient(180px circle at var(--usa-card-x) var(--usa-card-y),var(--usa-card-glow),transparent 70%);-webkit-mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0)}usa-card[data-hover]::before,usa-card[data-hover]::after{opacity:1}@property --usa-card-angle{syntax:"<angle>";inherits:false;initial-value:0deg}usa-card[effect~="conic-border"]{border:2px solid transparent;background:linear-gradient(var(--usa-card-bg),var(--usa-card-bg)) padding-box,conic-gradient(from var(--usa-card-angle),var(--usa-card-glow),#22d3ee,#f472b6,var(--usa-card-glow)) border-box;animation:usa-card-spin 4s linear infinite}@keyframes usa-card-spin{to{--usa-card-angle:360deg}}usa-card .usa-card-sheen{position:absolute;inset:0;border-radius:inherit;overflow:hidden;pointer-events:none}usa-card .usa-card-sheen::before{content:"";position:absolute;top:0;bottom:0;width:45%;left:-60%;transform:skewX(-20deg);background:linear-gradient(90deg,transparent,rgb(255 255 255 / 0.35),transparent)}usa-card[effect~="sheen"]:hover .usa-card-sheen::before,usa-card[effect~="sheen"]:focus-visible .usa-card-sheen::before{left:130%;transition:left 0.8s cubic-bezier(0.22,1,0.36,1)}usa-card .usa-card-holo{position:absolute;inset:0;border-radius:inherit;pointer-events:none;mix-blend-mode:color-dodge;opacity:0.35;background:linear-gradient(115deg,transparent 20%,#ff7ad9 35%,#7af0ff 45%,#ffe27a 55%,transparent 70%) calc(var(--usa-card-x) * 1.4 - 20%) calc(var(--usa-card-y) * 1.4 - 20%) / 220% 220%;transition:opacity 0.3s ease}usa-card[data-hover] .usa-card-holo{opacity:0.7}usa-card[effect~="parallax-layers"] [data-depth]{transition:transform 0.25s ease-out;will-change:transform}usa-card[effect~="flip"]{perspective:1000px;display:grid}usa-card[effect~="flip"]>[data-front],usa-card[effect~="flip"]>[data-back]{grid-area:1 / 1;backface-visibility:hidden;-webkit-backface-visibility:hidden;border-radius:inherit;transition:transform 0.7s cubic-bezier(0.34,1.3,0.64,1),opacity 0.3s ease}usa-card[effect~="flip"]>[data-back]{transform:rotateY(180deg)}usa-card[effect~="flip"][axis="x"]>[data-back]{transform:rotateX(180deg)}usa-card[effect~="flip"][flipped]>[data-front],usa-card[effect~="flip"]:not([trigger="click"]):hover>[data-front]{transform:rotateY(-180deg)}usa-card[effect~="flip"][flipped]>[data-back],usa-card[effect~="flip"]:not([trigger="click"]):hover>[data-back]{transform:rotateY(0deg)}usa-card[effect~="flip"][axis="x"][flipped]>[data-front],usa-card[effect~="flip"][axis="x"]:not([trigger="click"]):hover>[data-front]{transform:rotateX(180deg)}usa-card[effect~="flip"][axis="x"][flipped]>[data-back],usa-card[effect~="flip"][axis="x"]:not([trigger="click"]):hover>[data-back]{transform:rotateX(0deg)}usa-card[effect~="flip"][trigger="click"]{cursor:pointer}usa-card[effect~="expand"]{cursor:zoom-in}usa-card[effect~="expand"]:not([expanded]) [data-detail]{display:none}usa-card[expanded]{position:fixed;inset:6vh max(4vw,calc(50vw - 420px));z-index:1000;overflow:auto;cursor:default;background:var(--usa-card-bg);box-shadow:0 30px 80px -20px rgb(0 0 0 / 0.6)}.usa-card-backdrop{position:fixed;inset:0;z-index:999;background:rgb(0 0 0 / 0.45)}@media (prefers-reduced-motion:reduce){usa-card,usa-card *,usa-card .usa-card-sheen::before{transition-duration:0.01ms !important;animation:none !important}usa-card[effect~="lift"][data-hover]{transform:none}usa-card[effect~="flip"]>[data-front],usa-card[effect~="flip"]>[data-back]{transform:none !important}usa-card[effect~="flip"][flipped]>[data-front],usa-card[effect~="flip"]:not([flipped])>[data-back]{opacity:0;visibility:hidden}usa-card[effect~="flip"]:not([trigger="click"]):hover>[data-front]{opacity:0;visibility:hidden}usa-card[effect~="flip"]:not([trigger="click"]):hover>[data-back]{opacity:1;visibility:visible}}@media (prefers-reduced-transparency:reduce),(forced-colors:active){usa-card[effect~="glass"]{background:var(--usa-card-bg);-webkit-backdrop-filter:none;backdrop-filter:none}}'})}function Ve(t){const e=document.createElement("span");return e.className=t,e.setAttribute("aria-hidden","true"),e}function Ue(t,e){const s=t?.closest?.("a, button, input, select, textarea, label, [contenteditable]");return!!s&&s!==e&&e.contains(s)}function We(t="usa-card-stack"){return b(t,t=>class extends t{constructor(){super(...arguments),this._drag=null,this._busy=!1}static get observedAttributes(){return["visible","offset","disabled"]}get top(){return this.cards()[0]||null}cards(){return Array.from(this.children).filter(t=>!t.hasAttribute("data-gone"))}layout(t=0){const e=this.num("visible",3),s=this.num("offset",10),i=this.reduced;this.cards().forEach((a,r)=>{if(a.style.zIndex=String(100-r),a.toggleAttribute("data-top",0===r),a.setAttribute("aria-hidden",String(0!==r)),0===r){const e=i?0:t/18;a.style.transform=`translate3d(${t}px, 0, 0) rotate(${e.toFixed(2)}deg)`,a.style.opacity="1"}else{const i=Math.min(r,e),n=Math.min(1,Math.abs(t)/this.num("threshold",90)),o=Math.max(0,i-n);a.style.transform=`translate3d(0, ${(o*s).toFixed(1)}px, 0) scale(${(1-.05*o).toFixed(3)})`,a.style.opacity=r>e?"0":"1"}})}mount(){this.hasAttribute("tabindex")||(this.tabIndex=0),this.hasAttribute("role")||this.setAttribute("role","group"),this.setAttribute("aria-roledescription","card stack"),this._x=Pe({spring:"wobbly",onUpdate:t=>this.layout(t)}),this.layout(),this.listen(this,"pointerdown",t=>{if(!this.flag("disabled")&&!this._busy&&this.top&&this.top.contains(t.target)){this._x.stop(),this._drag={id:t.pointerId,x0:t.clientX-this._x.value,t0:t.timeStamp};try{this.setPointerCapture?.(t.pointerId)}catch{}this.setAttribute("data-dragging","")}}),this.listen(this,"pointermove",t=>{this._drag&&t.pointerId===this._drag.id&&this._x.jump(t.clientX-this._drag.x0)});const t=t=>{if(!this._drag||t.pointerId!==this._drag.id)return;this._drag=null,this.removeAttribute("data-dragging");const e=this._x.value;Math.abs(e)>=this.num("threshold",90)?this.swipe(e>0?"right":"left"):this._x.set(0)};this.listen(this,"pointerup",t),this.listen(this,"pointercancel",t),this.listen(this,"keydown",t=>{"ArrowLeft"!==t.key&&"ArrowRight"!==t.key||(t.preventDefault(),this.swipe("ArrowLeft"===t.key?"left":"right"))});const e="undefined"!=typeof MutationObserver?new MutationObserver(()=>this.layout(this._x.value)):null;e?.observe(this,{childList:!0}),this.onCleanup(()=>e?.disconnect())}unmount(){this._x?.stop()}async swipe(t){const e=this.top;if(!e||this._busy||this.flag("disabled"))return;this._busy=!0,this._x.stop();const s=this._x.value,i=("left"===t?-1:1)*Math.max(320,1.4*(this.getBoundingClientRect().width||300));e.setAttribute("data-gone",""),this._x.jump(0),this.layout(0);const a=this.reduced?null:this.motion(e,[{transform:`translate3d(${s}px,0,0) rotate(${s/18}deg)`,opacity:1},{transform:`translate3d(${i}px,0,0) rotate(${i/14}deg)`,opacity:0}],{duration:380,easing:"cubic-bezier(0.3, 0.7, 0.4, 1)",fill:"forwards"});await(a?.finished.catch(()=>{})),a?.cancel(),e.removeAttribute("data-gone"),this.flag("loop")?this.append(e):e.remove(),this.layout(0),this._busy=!1,this.emit("swipe",{direction:t,card:e}),this.top||this.emit("empty")}},{id:"card-stack",text:"usa-card-stack{position:relative;display:grid;touch-action:pan-y;user-select:none;-webkit-user-select:none}usa-card-stack>*{grid-area:1 / 1;transform-origin:50% 100%;transition:transform 0.35s cubic-bezier(0.34,1.3,0.64,1),opacity 0.3s ease;will-change:transform}usa-card-stack>[data-top]{cursor:grab}usa-card-stack[data-dragging]>*,usa-card-stack>[data-top]{transition:none}usa-card-stack:focus-visible{outline:2px solid var(--usa-accent,#7c5cff);outline-offset:4px;border-radius:12px}@media (prefers-reduced-motion:reduce){usa-card-stack>*{transition:none}}"})}function Ge(t="usa-sticky-stack"){return b(t,t=>class extends t{constructor(){super(...arguments),this._frame=0}static get observedAttributes(){return["top","gap","scale"]}mount(){const t=this.num("top",80),e=this.num("gap",16);if(Array.from(this.children).forEach((s,i)=>{s.style.top=`${t+i*e}px`,s.style.zIndex=String(i+1)}),this.reduced)return;const s=()=>{this._frame||(this._frame=C(()=>this.update()))};let i=!1;this.inView(t=>{t&&!i?(i=!0,window.addEventListener("scroll",s,{passive:!0}),window.addEventListener("resize",s,{passive:!0}),s()):!t&&i&&(i=!1,window.removeEventListener("scroll",s),window.removeEventListener("resize",s))}),this.onCleanup(()=>{window.removeEventListener("scroll",s),window.removeEventListener("resize",s)})}unmount(){T(this._frame),this._frame=0}update(){this._frame=0;const t=Array.from(this.children),e=t.map(t=>t.getBoundingClientRect()),s=this.num("scale",.06);t.forEach((i,a)=>{let r=0;for(let s=a+1;s<t.length;s++){const t=e[a].height||1;r+=H((e[a].bottom-e[s].top)/t,0,1)}const n=1-Math.min(3,r)*s;i.style.transform=r>.001?`scale(${n.toFixed(4)})`:"",i.style.filter=r>.001?`brightness(${(1-Math.min(.35,.12*r)).toFixed(3)})`:""})}},{id:"sticky-stack",text:"usa-sticky-stack{display:grid;gap:28vh;padding-bottom:10vh}usa-sticky-stack>*{position:sticky;transform-origin:50% 0;will-change:transform}"})}function Ke(t="usa-carousel-3d"){return b(t,t=>class extends t{constructor(){super(...arguments),this._i=0}static get observedAttributes(){return["radius","perspective","autoplay"]}get index(){return this._i}set index(t){this.goTo(t)}items(){return Array.from(this.children)}render(t){const e=this.items(),s=e.length||1,i=360/s,a=e[0]?.offsetWidth||200,r=this.num("radius",Math.round(a/2/Math.tan(Math.PI/s))+24),n=this.reduced;e.forEach((e,s)=>{const a=((s*i-t)%360+540)%360-180;e.style.transform=n?"":`rotateY(${a.toFixed(2)}deg) translateZ(${r}px)`,e.style.opacity=n?s===this._i?"1":"0":String(Math.max(.25,1-Math.abs(a)/200))})}mount(){this.style.setProperty("--usa-c3d-perspective",`${this.num("perspective",1200)}px`),this.hasAttribute("tabindex")||(this.tabIndex=0),this.setAttribute("role","region"),this.setAttribute("aria-roledescription","carousel"),this._i=Math.max(0,Math.min(this.items().length-1,this.num("index",0)));this._angle=Pe({value:this._i*(()=>360/(this.items().length||1))(),spring:"gentle",onUpdate:t=>this.render(t)}),this.render(this._angle.value),this.mark(),this.listen(this,"keydown",t=>{if("ArrowRight"===t.key)this.next();else{if("ArrowLeft"!==t.key)return;this.prev()}t.preventDefault()});let t=null;this.listen(this,"pointerdown",e=>t=e.clientX),this.listen(this,"pointerup",e=>{if(null===t)return;const s=e.clientX-t;t=null,Math.abs(s)>40&&(s<0?this.next():this.prev())}),this.listen(this,"click",t=>{const e=this.items().find(e=>e.contains(t.target));if(e){const t=this.items().indexOf(e);t!==this._i&&this.goTo(t)}});const e=this.num("autoplay",0);if(e>0&&!this.reduced){let t=!1;const s=()=>t=!0,i=()=>t=!1;this.listen(this,"pointerenter",s),this.listen(this,"pointerleave",i),this.listen(this,"focusin",s),this.listen(this,"focusout",i);const a=setInterval(()=>!t&&!document.hidden&&this.next(),e);this.onCleanup(()=>clearInterval(a))}}unmount(){this._angle?.stop()}mark(){this.items().forEach((t,e)=>{e===this._i?t.setAttribute("aria-current","true"):t.removeAttribute("aria-current")})}goTo(t){const e=this.items().length;if(!e||!this._angle)return;const s=360/e,i=this._angle.target,a=Math.round(i/s);let r=((t-a)%e+e)%e;r>e/2&&(r-=e),this._i=(t%e+e)%e,this._angle.set((a+r)*s),this.reduced&&this.render(this._angle.value),this.mark(),this.emit("change",{index:this._i})}next(){this.goTo(this._i+1)}prev(){this.goTo(this._i-1)}},{id:"carousel-3d",text:"usa-carousel-3d{position:relative;display:grid;place-items:center;perspective:var(--usa-c3d-perspective,1200px);transform-style:preserve-3d;touch-action:pan-y;user-select:none;-webkit-user-select:none;min-height:220px}usa-carousel-3d>*{grid-area:1 / 1;backface-visibility:hidden;transition:opacity 0.3s ease;cursor:pointer}usa-carousel-3d>[aria-current]{cursor:default}usa-carousel-3d:focus-visible{outline:2px solid var(--usa-accent,#7c5cff);outline-offset:4px;border-radius:12px}@media (prefers-reduced-motion:reduce){usa-carousel-3d{perspective:none}usa-carousel-3d>:not([aria-current]){visibility:hidden}}"})}function Je(){He(),We(),Ge(),Ke()}let Ze=null;const Qe=["#7c5cff","#22d3ee","#f472b6","#facc15","#34d399","#fb923c"],ts={star:"★",heart:"♥"};function es(t,e,s,i,a){const r=document.createElement("span"),n=ts[a]||("circle"!==a&&"square"!==a?a:"");return r.style.cssText=`position:absolute;left:${t}px;top:${e}px;width:${s}px;height:${s}px;margin:${-s/2}px 0 0 ${-s/2}px;will-change:transform,opacity;`+(n?`font-size:${2*s}px;line-height:${s}px;text-align:center;color:${i}`:`background:${i};border-radius:${"square"===a?"2px":"50%"}`),n&&(r.textContent=n),(Ze&&Ze.isConnected||(Ze=document.createElement("div"),Ze.className="usa-fx-layer",Ze.setAttribute("aria-hidden","true"),Ze.style.cssText="position:fixed;inset:0;pointer-events:none;z-index:2147483000;overflow:hidden;contain:strict",document.body.appendChild(Ze)),Ze).appendChild(r),r}const ss=(t,e)=>{t?t.onfinish=()=>e.remove():e.remove()};function is(t,e,s={}){if("undefined"==typeof document||d())return 0;const{count:i=12,colors:a=Qe,distance:r=48,size:n=6,shape:o="circle",duration:l=600}=s;for(let s=0;s<i;s++){const c=s/i*Math.PI*2+.4*Math.random(),u=r*(.7+.5*Math.random()),d=es(t,e,n,a[s%a.length],o),h="function"==typeof d.animate?d.animate([{transform:"translate(0,0) scale(1)",opacity:1},{transform:`translate(${Math.cos(c)*u}px, ${Math.sin(c)*u}px) scale(0.2)`,opacity:0}],{duration:l*(.8+.4*Math.random()),easing:"cubic-bezier(0.22, 1, 0.36, 1)",fill:"forwards"}):null;ss(h,d)}return i}function as(t={}){if("undefined"==typeof document||d())return 0;const e=window.innerWidth||800,s=window.innerHeight||600,{x:i=e/2,y:a=.66*s,count:r=80,spread:n=70,velocity:o=1,colors:l=Qe,duration:c=1600}=t;for(let t=0;t<r;t++){const e=((Math.random()-.5)*n-90)*Math.PI/180,s=(260+320*Math.random())*o,r=Math.cos(e)*s,u=Math.sin(e)*s,d=es(i,a,6+5*Math.random(),l[t%l.length],Math.random()>.5?"square":"circle");d.style.height=4+3*Math.random()+"px";const h=[],p=8,f=c/1e3,m=1440*(Math.random()-.5);for(let t=0;t<=p;t++){const e=t/p*f,s=900;h.push({transform:`translate(${(r*e*.8).toFixed(1)}px, ${(u*e+.5*s*e*e).toFixed(1)}px) rotate(${(m*t/p).toFixed(0)}deg) rotateX(${120*t}deg)`,opacity:t===p?0:1})}const g="function"==typeof d.animate?d.animate(h,{duration:c*(.85+.3*Math.random()),easing:"linear",fill:"forwards"}):null;ss(g,d)}return r}function rs(t,e=8,s=480){const i=t;if("function"!=typeof i.animate)return null;if(d())return i.animate([{outline:"2px solid #e5484d"},{outline:"2px solid transparent"}],{duration:600});const a=e;return i.animate([0,-a,a,.75*-a,.75*a,.4*-a,.4*a,0].map(t=>({transform:`translateX(${t}px)`})),{duration:s,easing:"ease-in-out"})}function ns(t=10){try{return"undefined"!=typeof navigator&&"function"==typeof navigator.vibrate&&navigator.vibrate(t)}catch{return!1}}function os(t="usa-click"){return b(t,t=>class extends t{constructor(){super(...arguments),this._press=null}static get observedAttributes(){return["effect","disabled"]}get effects(){return this.str("effect","ripple").split(/[\s,]+/).filter(Boolean)}mount(){this.listen(this,"pointerdown",t=>{this.flag("disabled")||"mouse"===t.pointerType&&0!==t.button||(this.down(),this.effects.includes("ripple")&&this.ripple(t.clientX,t.clientY))});const t=()=>this.up();this.listen(this,"pointerup",t),this.listen(this,"pointerleave",t),this.listen(this,"pointercancel",t),this.listen(this,"click",t=>{if(this.flag("disabled"))return;const e=0===t.detail,s=this.getBoundingClientRect(),i=e?s.left+s.width/2:t.clientX,a=e?s.top+s.height/2:t.clientY;e&&this.effects.includes("ripple")&&this.ripple(i,a),this.play(i,a),this.effects.includes("shake")&&"click"===this.str("trigger")&&this.shake()}),this.listen(this,"keydown",t=>{"Enter"!==t.key&&" "!==t.key||t.repeat||this.down()}),this.listen(this,"keyup",t),this.effects.includes("shake")&&this.listen(this,"invalid",()=>this.shake(),{capture:!0})}play(t,e){if(void 0===t||void 0===e){const s=this.getBoundingClientRect();t=s.left+s.width/2,e=s.top+s.height/2}const s=this.effects,i=this.str("color")?this.str("color").split(","):void 0;s.includes("burst")&&is(t,e,{count:this.num("count",12),shape:this.str("shape","circle"),colors:i}),s.includes("confetti")&&as({x:t,y:e,count:this.num("count",60),colors:i,spread:90,velocity:.8}),this.hasAttribute("haptic")&&ns(this.num("haptic",10)),this.emit("click-effect",{x:t,y:e,effects:s})}shake(){rs(this),this.hasAttribute("haptic")&&ns([30,40,30])}ripple(t,e){if(this.reduced)return;const s=this.getBoundingClientRect(),i=t-s.left,a=e-s.top,r=Math.hypot(Math.max(i,s.width-i),Math.max(a,s.height-a)),n=document.createElement("span");n.className="usa-click-wave",n.setAttribute("aria-hidden","true"),n.style.cssText=`width:${2*r}px;height:${2*r}px;left:${i-r}px;top:${a-r}px;--usa-wave:${this.str("color","currentColor").split(",")[0]}`,this.append(n);const o=this.motion(n,[{transform:"scale(0)",opacity:.35},{transform:"scale(1)",opacity:.25,offset:.6},{transform:"scale(1.05)",opacity:0}],{duration:650,easing:Y,fill:"forwards"});o?o.onfinish=()=>n.remove():n.remove()}down(){if(this.hasAttribute("data-pressed"))return;const t=this.effects;if(!t.includes("squish")&&!t.includes("press-spring"))return;this.setAttribute("data-pressed",""),this._press?.cancel();const e=this.reduced?{opacity:.75}:t.includes("squish")?{transform:"scale(1.08, 0.86)"}:{transform:"scale(0.94)"},s=this.reduced?{opacity:1}:{transform:"none"};this._press=this.motion(this,[s,e],{duration:110,easing:"ease-out",fill:"forwards"})}up(){if(!this.hasAttribute("data-pressed"))return;this.removeAttribute("data-pressed");const t=this.effects;if(this._press?.cancel(),this.reduced)return void(this._press=this.motion(this,[{opacity:.75},{opacity:1}],{duration:150}));const e=t.includes("squish")?"scale(1.08, 0.86)":"scale(0.94)",s=t.includes("squish")?[{transform:e},{transform:"scale(0.92, 1.1)",offset:.3},{transform:"scale(1.03, 0.97)",offset:.6},{transform:"none"}]:[{transform:e},{transform:"none"}];this._press=this.motion(this,s,t.includes("squish")?{duration:520,easing:"ease-out"}:Te("bouncy"))}},{id:"click",text:"usa-click{position:relative;display:inline-block;overflow:hidden;isolation:isolate;border-radius:inherit;-webkit-tap-highlight-color:transparent;touch-action:manipulation}usa-click[block]{display:block}usa-click .usa-click-wave{position:absolute;border-radius:50%;pointer-events:none;z-index:-1;transform:scale(0);background:radial-gradient(circle,var(--usa-wave) 0 55%,color-mix(in srgb,var(--usa-wave) 40%,transparent) 70%,transparent 72%)}"})}let ls=!1;function cs(t="usa-button"){return b(t,t=>class extends t{constructor(){super(...arguments),this._press=null,this._status=null,this._shapeBefore=null}static get observedAttributes(){return["deform","state","shape","disabled"]}get target(){return this.querySelector(':scope > button, :scope > a, :scope > [role="button"]')||this}deforms(){return this.str("deform").split(/[\s,]+/).filter(Boolean)}get shape(){return this.str("shape","pill")||"pill"}set shape(t){this.morphTo(t)}get state(){return this.str("state","idle")||"idle"}set state(t){this.setAttribute("state",t)}mount(){const t=this.target;if(t===this&&(this.setAttribute("role","button"),this.hasAttribute("tabindex")||(this.tabIndex=0)),t.classList.add("usa-button-face"),"submit"===this.str("morph")&&!t.querySelector(".usa-button-status")){const e=document.createElement("span");e.className="usa-button-status",e.setAttribute("aria-hidden","true"),e.innerHTML='<svg class="usa-button-spin" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9" pathLength="100"/></svg><svg class="usa-button-ok" viewBox="0 0 24 24"><path d="M5 12.5l4.2 4.2L19 7" pathLength="1"/></svg><svg class="usa-button-err" viewBox="0 0 24 24"><path d="M7 7l10 10M17 7L7 17" pathLength="1"/></svg>',t.append(e);const s=document.createElement("span");s.className="usa-sr",s.setAttribute("role","status"),this.append(s),this._status=s}this.deforms().includes("gooey")&&function(){if(ls||"undefined"==typeof document)return;ls=!0;const t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.setAttribute("aria-hidden","true"),t.setAttribute("width","0"),t.setAttribute("height","0"),t.style.position="absolute",t.innerHTML='<filter id="usa-goo"><feGaussianBlur in="SourceGraphic" stdDeviation="6" result="b"/><feColorMatrix in="b" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 22 -9" result="g"/><feComposite in="SourceGraphic" in2="g" operator="atop"/></filter>',document.body.appendChild(t)}(),this.applyState(),this.listen(t,"pointerdown",t=>{this.isOff()||"mouse"===t.pointerType&&0!==t.button||this.down(t.clientX,t.clientY)});for(const e of["pointerup","pointerleave","pointercancel"])this.listen(t,e,()=>this.up());this.listen(t,"keydown",t=>("Enter"===t.key||" "===t.key)&&!t.repeat&&this.down()),this.listen(t,"keyup",()=>this.up()),this.listen(t,"click",t=>{this.isOff()?"loading"===this.state&&t.preventDefault():(this.deforms().includes("wobble")&&this.wobble(),this.hasAttribute("haptic")&&ns(this.num("haptic",10)),"submit"===this.str("morph")&&"idle"===this.state&&this.submit())}),t===this&&this.listen(this,"keydown",t=>{"Enter"!==t.key&&" "!==t.key||t.repeat||(t.preventDefault(),this.click())})}unmount(){clearTimeout(this._timer),this._press?.cancel()}changed(t){"state"===t?this.applyState():"shape"===t?this.target.setAttribute("data-shape",this.shape):super.changed(t)}isOff(){return this.flag("disabled")||"loading"===this.state}down(t,e){if(this.reduced||this.hasAttribute("data-pressed"))return;const s=this.deforms();if(!s.length)return;this.setAttribute("data-pressed","");const i=this.target,a=i.getBoundingClientRect(),r=void 0===t?.5:H((t-a.left)/(a.width||1),0,1),n=void 0===e?.5:H((e-a.top)/(a.height||1),0,1);i.style.setProperty("--usa-dent-x",`${(100*r).toFixed(1)}%`),i.style.setProperty("--usa-dent-y",`${(100*n).toFixed(1)}%`);const o=[];s.includes("dent")&&o.push(`perspective(600px) rotateX(${(-14*(.5-n)).toFixed(2)}deg) rotateY(${(14*(r-.5)).toFixed(2)}deg) scale(0.97)`),s.includes("squash")&&o.push("scale(1.12, 0.84)"),s.includes("gooey")&&(o.push("scale(0.96)"),this.goo(r,n)),o.length&&(this._press?.cancel(),this._press=this.motion(i,[{transform:"none"},{transform:o.join(" ")}],{duration:110,easing:"ease-out",fill:"forwards"}))}up(){if(!this.hasAttribute("data-pressed"))return;this.removeAttribute("data-pressed");const t=this.target,e=this._press,s=e?.effect?.getKeyframes?.().slice(-1)[0]?.transform;e?.cancel(),s&&(this._press=this.motion(t,[{transform:s},{transform:"none"}],{...Te(this.deforms().includes("squash")?"bouncy":"wobbly")}))}wobble(){if(this.reduced)return;const t=this.target,e=getComputedStyle(t).borderRadius||"12px";this.motion(t,[{borderRadius:e},{borderRadius:"42% 58% 50% 50% / 60% 45% 55% 40%",offset:.2},{borderRadius:"58% 42% 45% 55% / 40% 60% 40% 60%",offset:.45},{borderRadius:"48% 52% 52% 48% / 52% 48% 52% 48%",offset:.7},{borderRadius:e}],{duration:700,easing:"ease-out"})}goo(t,e){const s=this.target,i=document.createElement("span");i.className="usa-button-goo",i.setAttribute("aria-hidden","true"),i.style.setProperty("--usa-goo-bg",getComputedStyle(s).backgroundColor||"currentColor");const a=[];for(let s=0;s<4;s++){const s=document.createElement("i");s.style.left=`${(100*t).toFixed(1)}%`,s.style.top=`${(100*e).toFixed(1)}%`,i.append(s),a.push(s)}this.prepend(i);let r=a.length;a.forEach((t,e)=>{const s=e/a.length*Math.PI*2+.6,n=26+e%2*12,o=this.motion(t,[{transform:"translate(-50%, -50%) scale(0.4)"},{transform:`translate(calc(-50% + ${(Math.cos(s)*n).toFixed(1)}px), calc(-50% + ${(Math.sin(s)*n).toFixed(1)}px)) scale(1)`,offset:.45},{transform:"translate(-50%, -50%) scale(0.2)"}],{duration:700,easing:"cubic-bezier(0.34, 1.3, 0.64, 1)",fill:"forwards"}),l=()=>0===--r&&i.remove();o?o.onfinish=l:l()})}async morphTo(t){const e=this.target,s=e.getBoundingClientRect();if(this.setAttribute("shape",t),e.setAttribute("data-shape",t),this.reduced)return;const i=e.getBoundingClientRect();if(!s.width||!i.width||Math.abs(s.width-i.width)<.5)return;const a=this.motion(e,[{width:`${s.width}px`},{width:`${i.width}px`}],Te("stiff"));await(a?.finished.catch(()=>{}))}submit(){let t=!1;this.state="loading",this.emit("submit",{done:(e=!0)=>{t||(t=!0,this.state=e?"success":"error")}})}applyState(){if("submit"!==this.str("morph"))return;const t=this.target,e=this.state;if(clearTimeout(this._timer),t.setAttribute("data-state",e),"loading"===e?(null===this._shapeBefore&&(this._shapeBefore=this.shape),t.setAttribute("aria-busy","true"),this.morphTo("circle")):t.removeAttribute("aria-busy"),"error"===e&&(rs(t),this.hasAttribute("haptic")&&ns([30,40,30])),"success"===e&&!this.reduced){const e=t.querySelector(".usa-button-ok");e&&this.motion(e,[{transform:"scale(0.4)"},{transform:"scale(1)"}],Te("bouncy"))}if(this._status&&(this._status.textContent="loading"===e?"Loading…":"success"===e?"Done":"error"===e?"Failed":""),"success"!==e&&"error"!==e||(this._timer=setTimeout(()=>{this.state="idle"},this.num("reset",1800))),"idle"===e&&null!==this._shapeBefore){const t=this._shapeBefore;this._shapeBefore=null,this.morphTo(t)}this.emit("state",{state:e})}},{id:"button",text:'usa-button{position:relative;display:inline-block;isolation:isolate;-webkit-tap-highlight-color:transparent;touch-action:manipulation;vertical-align:middle}usa-button[role="button"]{cursor:pointer}usa-button .usa-button-face{position:relative;overflow:hidden;will-change:transform;transform-origin:50% 60%;white-space:nowrap}usa-button[deform~="gooey"] .usa-button-face{overflow:visible}usa-button[deform~="dent"] .usa-button-face::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:0;transition:opacity 0.2s ease;background:radial-gradient(circle at var(--usa-dent-x,50%) var(--usa-dent-y,50%),rgb(0 0 0 / 0.28),transparent 60%)}usa-button[deform~="dent"][data-pressed] .usa-button-face::after{opacity:1}usa-button .usa-button-goo{position:absolute;inset:0;z-index:-1;pointer-events:none;filter:url(#usa-goo)}usa-button .usa-button-goo i{position:absolute;width:22px;height:22px;border-radius:50%;background:var(--usa-goo-bg);transform:translate(-50%,-50%) scale(0.4)}usa-button .usa-button-face[data-shape="circle"],usa-button .usa-button-face[data-shape="icon"]{padding-inline:0;aspect-ratio:1;border-radius:999px;display:inline-grid;place-items:center}usa-button .usa-button-face [data-label],usa-button .usa-button-face [data-icon]{transition:opacity 0.2s ease}usa-button .usa-button-face[data-shape="circle"] [data-label],usa-button .usa-button-face[data-shape="icon"] [data-label]{position:absolute;opacity:0;pointer-events:none}usa-button .usa-button-face[data-shape="circle"] [data-icon]{opacity:0}usa-button .usa-button-status{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none}usa-button .usa-button-status svg{grid-area:1 / 1;width:1.25em;height:1.25em;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;opacity:0}usa-button .usa-button-spin circle{stroke-dasharray:60 100;transform-origin:50% 50%;animation:usa-btn-spin 0.8s linear infinite}usa-button .usa-button-ok path,usa-button .usa-button-err path{stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset 0.35s ease 0.1s}usa-button .usa-button-face[data-state="loading"] .usa-button-spin,usa-button .usa-button-face[data-state="success"] .usa-button-ok,usa-button .usa-button-face[data-state="error"] .usa-button-err{opacity:1}usa-button .usa-button-face[data-state="success"] .usa-button-ok path,usa-button .usa-button-face[data-state="error"] .usa-button-err path{stroke-dashoffset:0}usa-button .usa-button-face:is([data-state="loading"],[data-state="success"],[data-state="error"])>:not(.usa-button-status){opacity:0}usa-button .usa-button-face[data-state="success"]{background:#16a34a;border-color:#16a34a;color:#fff}usa-button .usa-button-face[data-state="error"]{background:#e5484d;border-color:#e5484d;color:#fff}usa-button .usa-button-face[data-state]{transition:background-color 0.25s ease,color 0.25s ease,border-radius 0.3s ease}@keyframes usa-btn-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){usa-button .usa-button-spin circle{animation-duration:2.4s}usa-button .usa-button-face,usa-button .usa-button-face *{transition:none !important}}'})}const us=[[12,12],[12,12],[12,12],[12,12]],ds={play:[[[7,5],[12.5,8.25],[12.5,15.75],[7,19]],[[12.5,8.25],[19,12],[19,12],[12.5,15.75]],us],pause:[[[6,5],[10,5],[10,19],[6,19]],[[14,5],[18,5],[18,19],[14,19]],us],menu:[[[4,6],[20,6],[20,8],[4,8]],[[4,11],[20,11],[20,13],[4,13]],[[4,16],[20,16],[20,18],[4,18]]],close:[[[5.2,6.6],[6.6,5.2],[18.8,17.4],[17.4,18.8]],us,[[17.4,5.2],[18.8,6.6],[6.6,18.8],[5.2,17.4]]],plus:[[[11,4],[13,4],[13,20],[11,20]],[[4,11],[20,11],[20,13],[4,13]],us],minus:[[[4,11],[20,11],[20,13],[4,13]],[[4,11],[20,11],[20,13],[4,13]],us],check:[[[4.3,12.7],[5.7,11.3],[10.4,16],[9,17.4]],[[9,17.4],[7.6,16],[18.3,5.3],[19.7,6.7]],us],"arrow-right":[[[4,11],[17,11],[17,13],[4,13]],[[12.6,6.4],[14,5],[21,12],[19.6,13.4]],[[19.6,10.6],[21,12],[14,19],[12.6,17.6]]]};function hs(t,e=t,s=0){const i=ds[t]||ds.menu,a=ds[e]||i;return i.map((t,e)=>`M${t.map((t,i)=>{const r=a[e][i];return`${(t[0]+(r[0]-t[0])*s).toFixed(2)} ${(t[1]+(r[1]-t[1])*s).toFixed(2)}`}).join("L")}Z`).join("")}function ps(t="usa-icon-morph"){return b(t,t=>class extends t{constructor(){super(...arguments),this._i=0,this._from="play",this._to="play"}static get observedAttributes(){return["icons","size","toggle"]}list(){return this.str("icons","play,pause").split(",").map(t=>t.trim()).filter(t=>ds[t])}get index(){return this._i}set index(t){this.show(t)}get icon(){return this.list()[this._i]||"play"}draw(t){this.querySelector("path")?.setAttribute("d",hs(this._from,this._to,t))}mount(){const t=this.num("size",24);this.innerHTML=`<svg viewBox="0 0 24 24" width="${t}" height="${t}" aria-hidden="true" focusable="false"><path/></svg>`,this._i=Math.max(0,Math.min(this.list().length-1,this.num("index",0))),this._from=this._to=this.icon,this._t=Pe({value:1,spring:this.str("preset","wobbly"),onUpdate:t=>this.draw(t)}),this.draw(1),this.flag("toggle")&&(this.setAttribute("role","button"),this.hasAttribute("tabindex")||(this.tabIndex=0),this.listen(this,"click",()=>this.next()),this.listen(this,"keydown",t=>{"Enter"!==t.key&&" "!==t.key||t.repeat||(t.preventDefault(),this.next())})),this.label()}unmount(){this._t?.stop()}label(){const t=this.str("labels").split(",").map(t=>t.trim())[this._i];t&&this.setAttribute("aria-label",t),this.flag("toggle")||t||this.setAttribute("aria-hidden","true")}show(t){const e=this.list(),s="number"==typeof t?(t%e.length+e.length)%e.length:e.indexOf(t);if(s<0||!this._t)return;const i=e[s],a=this._t.value;this._from=a>=.5?this._to:this._from,this._to=i,this._i=s,this._t.jump(0),this._t.set(1),this.label(),this.emit("change",{index:s,icon:i})}next(){this.show(this._i+1)}},{id:"icon-morph",text:"usa-icon-morph{display:inline-grid;place-items:center;line-height:0;color:inherit;-webkit-tap-highlight-color:transparent;vertical-align:middle}usa-icon-morph svg{fill:currentColor;overflow:visible}usa-icon-morph[toggle]{cursor:pointer;border-radius:8px}usa-icon-morph[toggle]:focus-visible{outline:2px solid var(--usa-accent,#7c5cff);outline-offset:3px}"})}function fs(t="usa-like"){return b(t,t=>class extends t{static get observedAttributes(){return["liked","count","label","disabled"]}get liked(){return this.flag("liked")}set liked(t){this.setFlag("liked",t)}get count(){return this.hasAttribute("count")?this.num("count",0):null}set count(t){null===t?this.removeAttribute("count"):this.setAttribute("count",String(t))}mount(){if(!this.querySelector(":scope > .usa-like-heart")){const t=this.num("size",24);this.insertAdjacentHTML("afterbegin",`<svg class="usa-like-heart" viewBox="0 0 24 24" width="${t}" height="${t}" aria-hidden="true"><path d="M12 21s-7.5-4.6-9.6-9.2C.9 8.4 3 4.5 6.7 4.5c2.1 0 3.6 1.2 5.3 3.2 1.7-2 3.2-3.2 5.3-3.2 3.7 0 5.8 3.9 4.3 7.3C19.5 16.4 12 21 12 21z"/></svg><span class="usa-like-count" aria-hidden="true"></span>`)}this.str("color")&&this.style.setProperty("--usa-like-color",this.str("color")),this.setAttribute("role","button"),this.hasAttribute("tabindex")||(this.tabIndex=0),this.sync(),this.listen(this,"click",()=>this.toggle()),this.listen(this,"keydown",t=>{"Enter"!==t.key&&" "!==t.key||t.repeat||(t.preventDefault(),this.toggle())})}changed(){this.sync()}sync(){const t=this.count,e=this.str("label","Like");this.setAttribute("aria-pressed",String(this.liked)),this.setAttribute("aria-label",null===t?e:`${e} (${t})`),this.toggleAttribute("aria-disabled",this.flag("disabled"));const s=this.querySelector(".usa-like-count");s&&(s.textContent=null===t?"":(new Intl.NumberFormat).format(t))}toggle(t){if(this.flag("disabled"))return;const e=void 0===t?!this.liked:t;if(e===this.liked)return;this.liked=e,null!==this.count&&(this.count=Math.max(0,this.count+(e?1:-1))),this.sync();const s=this.querySelector(".usa-like-heart");if(e&&s&&!this.reduced){this.motion(s,[{transform:"scale(0.4)"},{transform:"scale(1)"}],Te("bouncy"));const t=s.getBoundingClientRect();is(t.left+t.width/2,t.top+t.height/2,{count:10,distance:28,size:5,colors:[getComputedStyle(this).getPropertyValue("--usa-like-color").trim()||"#f43f5e","#fb923c","#facc15"]})}this.hasAttribute("haptic")&&ns(this.num("haptic",12)),this.dispatchEvent(new Event("change",{bubbles:!0})),this.emit("change",{liked:e,count:this.count})}},{id:"like",text:"usa-like{--usa-like-color:#f43f5e;display:inline-flex;align-items:center;gap:0.35em;cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent;vertical-align:middle}usa-like .usa-like-heart{fill:transparent;stroke:currentColor;stroke-width:1.8;transition:fill 0.2s ease,stroke 0.2s ease;overflow:visible}usa-like[liked] .usa-like-heart{fill:var(--usa-like-color);stroke:var(--usa-like-color)}usa-like .usa-like-count{font-variant-numeric:tabular-nums}usa-like[disabled]{opacity:0.5;cursor:not-allowed}usa-like:focus-visible{outline:2px solid var(--usa-like-color);outline-offset:3px;border-radius:8px}"})}function ms(t="usa-hold"){return b(t,t=>class extends t{constructor(){super(...arguments),this._p=0,this._frame=0,this._holding=!1}static get observedAttributes(){return["duration","disabled"]}get progress(){return this._p}set(t){this._p=t,this.style.setProperty("--usa-hold",t.toFixed(4));const e=this.querySelector(".usa-hold-ring circle:last-child");e&&(e.style.strokeDashoffset=String(100-100*t))}mount(){this.querySelector(":scope > .usa-hold-ring")||this.insertAdjacentHTML("beforeend",'<svg class="usa-hold-ring" viewBox="0 0 36 36" aria-hidden="true"><circle cx="18" cy="18" r="15.9" pathLength="100"/><circle cx="18" cy="18" r="15.9" pathLength="100"/></svg>'),this.str("color")&&this.style.setProperty("--usa-hold-color",this.str("color")),this.setAttribute("role","button"),this.hasAttribute("tabindex")||(this.tabIndex=0),this.str("label")&&this.setAttribute("aria-label",this.str("label")),this.setAttribute("aria-description","Press and hold to confirm"),this.set(0),this.listen(this,"pointerdown",t=>("mouse"!==t.pointerType||0===t.button)&&this.start());for(const t of["pointerup","pointerleave","pointercancel"])this.listen(this,t,()=>this.stop());this.listen(this,"keydown",t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.repeat||this.start())}),this.listen(this,"keyup",t=>("Enter"===t.key||" "===t.key)&&this.stop()),this.listen(this,"contextmenu",t=>this._holding&&t.preventDefault())}unmount(){T(this._frame),this._holding=!1}start(){if(this.flag("disabled")||this._holding)return;this._holding=!0,this.setAttribute("data-holding","");const t=Math.max(100,this.num("duration",1200));let e=$();const s=()=>{const i=$(),a=Math.min(1,this._p+(i-e)/t);if(e=i,this.set(a),this.emit("progress",{progress:a}),a>=1)return this._holding=!1,this.removeAttribute("data-holding"),this.setAttribute("data-done",""),this.hasAttribute("haptic")&&ns(20),this.emit("confirm"),void setTimeout(()=>{this.removeAttribute("data-done"),this.rewind()},700);this._frame=C(s)};this._frame=C(s)}stop(){this._holding&&(this._holding=!1,T(this._frame),this.removeAttribute("data-holding"),this._p<1&&(this.emit("cancel",{progress:this._p}),this.rewind()))}rewind(){let t=$();const e=()=>{if(this._holding)return;const s=$(),i=Math.max(0,this._p-(s-t)/250);t=s,this.set(i),i>0&&(this._frame=C(e))};this._frame=C(e)}cancel(){this.stop()}},{id:"hold",text:"usa-hold{--usa-hold-color:#e5484d;position:relative;display:inline-flex;align-items:center;gap:0.5em;cursor:pointer;user-select:none;-webkit-user-select:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent}usa-hold .usa-hold-ring{width:1.6em;height:1.6em;transform:rotate(-90deg);flex:none}usa-hold .usa-hold-ring circle{fill:none;stroke-width:3.5;stroke-linecap:round}usa-hold .usa-hold-ring circle:first-child{stroke:color-mix(in srgb,currentColor 18%,transparent)}usa-hold .usa-hold-ring circle:last-child{stroke:var(--usa-hold-color);stroke-dasharray:100;stroke-dashoffset:100}usa-hold[data-holding]{transform:scale(calc(1 - var(--usa-hold,0) * 0.05))}usa-hold[data-done] .usa-hold-ring{animation:usa-hold-pop 0.4s cubic-bezier(0.34,1.56,0.64,1)}@keyframes usa-hold-pop{50%{transform:rotate(-90deg) scale(1.3)}}usa-hold[disabled]{opacity:0.5;cursor:not-allowed}usa-hold:focus-visible{outline:2px solid var(--usa-hold-color);outline-offset:3px;border-radius:10px}@media (prefers-reduced-motion:reduce){usa-hold[data-holding]{transform:none}usa-hold[data-done] .usa-hold-ring{animation:none}}"})}function gs(t="usa-double-tap"){return b(t,t=>class extends t{mount(){let t=0,e=0,s=0;this.listen(this,"pointerup",i=>{if(this.flag("disabled"))return;const a=i.timeStamp||Date.now();a-t<this.num("delay",300)&&Math.hypot(i.clientX-e,i.clientY-s)<40?(t=0,this.pop(i.clientX,i.clientY)):(t=a,e=i.clientX,s=i.clientY)}),this.listen(this,"dblclick",t=>t.preventDefault()),this.listen(this,"keydown",t=>"l"===t.key.toLowerCase()&&!t.repeat&&this.pop())}pop(t,e){const s=this.getBoundingClientRect();void 0!==t&&void 0!==e||(t=s.left+s.width/2,e=s.top+s.height/2);const i=document.createElement("span");i.className="usa-double-tap-icon",i.setAttribute("aria-hidden","true"),i.textContent=this.str("icon","♥"),i.style.left=t-s.left+"px",i.style.top=e-s.top+"px",this.str("color")&&(i.style.color=this.str("color")),this.append(i);const a=this.reduced?[{opacity:0},{opacity:1,offset:.3},{opacity:0}]:[{opacity:0,transform:"translate(-50%, -50%) scale(0.2) rotate(-15deg)"},{opacity:1,transform:"translate(-50%, -50%) scale(1.15) rotate(5deg)",offset:.3},{opacity:1,transform:"translate(-50%, -50%) scale(1) rotate(0deg)",offset:.6},{opacity:0,transform:"translate(-50%, -110%) scale(0.9)"}],r=this.motion(i,a,{duration:900,easing:"ease-out",fill:"forwards"});r?r.onfinish=()=>i.remove():i.remove(),is(t,e,{count:8,distance:40,size:5,colors:[this.str("color","#f43f5e"),"#fb923c","#facc15"]}),this.hasAttribute("haptic")&&ns(15),this.emit("double-tap",{x:t-s.left,y:e-s.top})}},{id:"double-tap",text:"usa-double-tap{position:relative;display:block;touch-action:manipulation;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}usa-double-tap .usa-double-tap-icon{position:absolute;pointer-events:none;font-size:64px;line-height:1;color:#f43f5e;transform:translate(-50%,-50%);text-shadow:0 6px 18px rgb(0 0 0 / 0.35);z-index:2}"})}function bs(t="usa-checkbox"){return b(t,t=>{class e extends t{static get observedAttributes(){return["checked","indeterminate","disabled","label"]}constructor(){super(),this._internals=null;try{this._internals=this.attachInternals?.()??null}catch{this._internals=null}}get checked(){return this.flag("checked")}set checked(t){this.setFlag("checked",t)}get indeterminate(){return this.flag("indeterminate")}set indeterminate(t){this.setFlag("indeterminate",t)}mount(){this.querySelector(":scope > .usa-checkbox-box")||this.insertAdjacentHTML("afterbegin",'<span class="usa-checkbox-box" aria-hidden="true"><svg viewBox="0 0 24 24"><path class="usa-checkbox-check" d="M5 12.5l4.2 4.2L19 7" pathLength="1"/><path class="usa-checkbox-dash" d="M6 12h12" pathLength="1"/></svg></span>'),this.setAttribute("role","checkbox"),this.hasAttribute("tabindex")||(this.tabIndex=0),this.sync(),this.listen(this,"click",()=>this.toggle()),this.listen(this,"keydown",t=>{" "!==t.key||t.repeat||(t.preventDefault(),this.toggle())})}changed(){this.sync()}sync(){this.setAttribute("aria-checked",this.indeterminate?"mixed":String(this.checked)),this.str("label")&&this.setAttribute("aria-label",this.str("label")),this.toggleAttribute("aria-disabled",this.flag("disabled")),this._internals?.setFormValue?.(this.checked?this.str("value","on"):null)}toggle(t){if(this.flag("disabled"))return;const e=void 0===t?!this.checked||this.indeterminate:t;this.indeterminate=!1,this.checked=e,this.sync();const s=this.querySelector(".usa-checkbox-box");s&&!this.reduced&&this.motion(s,[{transform:"scale(0.75)"},{transform:"scale(1)"}],Te("bouncy")),this.dispatchEvent(new Event("change",{bubbles:!0})),this.emit("change",{checked:e})}}return e.formAssociated=!0,e},{id:"checkbox",text:'usa-checkbox{--usa-checkbox-on:var(--usa-accent,#7c5cff);display:inline-flex;align-items:center;gap:0.55em;cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent;vertical-align:middle}usa-checkbox .usa-checkbox-box{flex:none;width:1.25em;height:1.25em;border-radius:0.3em;border:1.5px solid color-mix(in srgb,currentColor 55%,transparent);display:grid;place-items:center;transition:background-color 0.2s ease,border-color 0.2s ease;box-sizing:border-box}usa-checkbox[shape="circle"] .usa-checkbox-box{border-radius:50%}usa-checkbox svg{width:85%;height:85%;fill:none;stroke:#fff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}usa-checkbox svg path{stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset 0.28s cubic-bezier(0.65,0,0.35,1) 0.05s}usa-checkbox[checked]:not([indeterminate]) .usa-checkbox-check,usa-checkbox[indeterminate] .usa-checkbox-dash{stroke-dashoffset:0}usa-checkbox[checked] .usa-checkbox-box,usa-checkbox[indeterminate] .usa-checkbox-box{background:var(--usa-checkbox-on);border-color:var(--usa-checkbox-on)}usa-checkbox[disabled]{opacity:0.45;cursor:not-allowed}usa-checkbox:focus-visible{outline:none}usa-checkbox:focus-visible .usa-checkbox-box{outline:2px solid var(--usa-checkbox-on);outline-offset:2px}@media (prefers-reduced-motion:reduce){usa-checkbox svg path,usa-checkbox .usa-checkbox-box{transition:none}}'})}function ys(){os(),cs(),ps(),fs(),ms(),gs(),bs()}function vs(t,e,s="top",i=8){const a=e.getBoundingClientRect(),r=t.getBoundingClientRect(),n=window.innerWidth||1024,o=window.innerHeight||768,l={top:a.top-r.height-i>=0,bottom:a.bottom+r.height+i<=o,left:a.left-r.width-i>=0,right:a.right+r.width+i<=n},c={top:"bottom",bottom:"top",left:"right",right:"left"},u=l[s]||!l[c[s]]?s:c[s];let d=0,h=0;return"top"===u||"bottom"===u?(d=Math.min(Math.max(4,a.left+a.width/2-r.width/2),n-r.width-4),h="top"===u?a.top-r.height-i:a.bottom+i):(h=Math.min(Math.max(4,a.top+a.height/2-r.height/2),o-r.height-4),d="left"===u?a.left-r.width-i:a.right+i),t.style.left=`${Math.round(d)}px`,t.style.top=`${Math.round(h)}px`,t.setAttribute("data-placement",u),u}let xs=0;const ws=t=>`${t}-${++xs}`;function ks(t="usa-tabs"){return me(),b(t,t=>class extends t{constructor(){super(...arguments),this._i=0,this._bar=null}static get observedAttributes(){return["indicator"]}get selected(){return this._i}set selected(t){this.select(t)}tabs(){return Array.from(this.querySelectorAll("[data-tab]")).filter(t=>t.closest(this.localName)===this)}panels(){return Array.from(this.querySelectorAll("[data-panel]")).filter(t=>t.closest(this.localName)===this)}mount(){const t=this.tabs(),e=this.panels(),s=t[0]?.parentElement;if(!s)return;s.setAttribute("role","tablist"),s.classList.add("usa-tabs-list"),s.querySelector(":scope > .usa-tabs-indicator")?this._bar=s.querySelector(":scope > .usa-tabs-indicator"):(this._bar=document.createElement("span"),this._bar.className="usa-tabs-indicator",this._bar.setAttribute("aria-hidden","true"),s.append(this._bar)),t.forEach((t,s)=>{t.id||(t.id=ws("usa-tab")),t.setAttribute("role","tab");const i=e[s];i&&(i.id||(i.id=ws("usa-panel")),i.setAttribute("role","tabpanel"),i.setAttribute("aria-labelledby",t.id),t.setAttribute("aria-controls",i.id),i.hasAttribute("tabindex")||(i.tabIndex=0)),this.listen(t,"click",()=>this.select(s))}),this.listen(s,"keydown",e=>{const s=t.length,i={ArrowRight:this._i+1,ArrowDown:this._i+1,ArrowLeft:this._i-1,ArrowUp:this._i-1,Home:0,End:s-1};e.key in i&&(e.preventDefault(),this.select((i[e.key]+s)%s,!0))});const i="undefined"!=typeof ResizeObserver?new ResizeObserver(()=>this.moveBar(!1)):null;i?.observe(s),this.onCleanup(()=>i?.disconnect()),this.select(Math.max(0,Math.min(t.length-1,this.num("selected",0))),!1,!0)}moveBar(t){const e=this.tabs()[this._i],s=this._bar;if(!e||!s)return;const i=s.style.transform,a=s.style.width;s.style.width=`${e.offsetWidth}px`,s.style.transform=`translateX(${e.offsetLeft}px)`,t&&i&&!this.reduced&&this.motion(s,[{transform:i,width:a},{transform:s.style.transform,width:s.style.width}],Te("stiff"))}select(t,e=!1,s=!1){const i=this.tabs(),a=this.panels();if(!i[t])return;const r=this._i;if(this._i=t,this.setAttribute("selected",String(t)),i.forEach((e,s)=>{e.setAttribute("aria-selected",String(s===t)),e.tabIndex=s===t?0:-1}),a.forEach((e,s)=>e.hidden=s!==t),e&&i[t].focus(),this.moveBar(!s),s||r===t)return;const n=a[t];n&&!this.reduced&&this.motion(n,[{opacity:0,transform:`translateX(${t>r?16:-16}px)`},{opacity:1,transform:"none"}],{duration:280,easing:"cubic-bezier(0.22, 1, 0.36, 1)"}),this.emit("change",{index:t})}},{id:"tabs",text:'usa-tabs{display:block;font-family:var(--usa-font)}usa-tabs .usa-tabs-list{position:relative;display:flex;gap:4px;border-bottom:1px solid color-mix(in srgb,currentColor 14%,transparent)}usa-tabs [role="tab"]{position:relative;z-index:1;padding:10px 14px;border:0;background:none;color:inherit;font:inherit;cursor:pointer;opacity:0.7;transition:opacity 0.2s ease,color 0.2s ease;border-radius:calc(var(--usa-radius,14px) / 2)}usa-tabs [role="tab"][aria-selected="true"]{opacity:1;color:var(--usa-accent,#7c5cff)}usa-tabs [role="tab"]:focus-visible{outline:2px solid var(--usa-accent,#7c5cff);outline-offset:-2px}usa-tabs .usa-tabs-indicator{position:absolute;left:0;bottom:-1px;height:3px;width:0;border-radius:3px;background:var(--usa-accent,#7c5cff);pointer-events:none}usa-tabs[indicator="pill"] .usa-tabs-list{border-bottom:0;padding:4px;border-radius:999px;background:color-mix(in srgb,currentColor 8%,transparent)}usa-tabs[indicator="pill"] .usa-tabs-indicator{top:4px;bottom:4px;height:auto;border-radius:999px;opacity:0.18}usa-tabs [role="tabpanel"]{padding:14px 2px}usa-tabs [role="tabpanel"]:focus-visible{outline:2px solid var(--usa-accent,#7c5cff);outline-offset:2px;border-radius:6px}'})}var _s='usa-drawer,usa-bottom-sheet{position:fixed;z-index:1001;box-sizing:border-box;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;will-change:transform;outline:none}usa-drawer{top:0;bottom:0;left:0;width:min(86vw,360px);border-radius:0 var(--usa-radius,14px) var(--usa-radius,14px) 0;padding:20px}usa-drawer[side="right"]{left:auto;right:0;border-radius:var(--usa-radius,14px) 0 0 var(--usa-radius,14px)}usa-drawer[side="top"],usa-drawer[side="bottom"]{left:0;right:0;width:auto;bottom:auto;max-height:80vh;border-radius:0 0 var(--usa-radius,14px) var(--usa-radius,14px);touch-action:pan-x}usa-drawer[side="bottom"]{top:auto;bottom:0;border-radius:var(--usa-radius,14px) var(--usa-radius,14px) 0 0}usa-bottom-sheet{left:0;right:0;bottom:0;margin:0 auto;max-width:640px;border-radius:22px 22px 0 0;padding:8px 20px 24px;touch-action:none}usa-bottom-sheet .usa-sheet-handle{width:40px;height:5px;border-radius:3px;margin:4px auto 14px;background:color-mix(in srgb,currentColor 35%,transparent);cursor:grab}usa-drawer[hidden],usa-bottom-sheet[hidden]{display:none}.usa-panel-backdrop{position:fixed;inset:0;z-index:1000;background:rgb(0 0 0 / 0.45)}';function As(t,e){return class extends t{constructor(){super(...arguments),this._backdrop=null,this._return=null,this._drag=null}static get observedAttributes(){return["open","side"]}get open(){return this.flag("open")}set open(t){this.setFlag("open",t)}size(){const t=this.getBoundingClientRect();return("sheet"===e||this.vertical()?t.height:t.width)||("sheet"===e?.9*window.innerHeight:320)}vertical(){return"sheet"===e||"top"===this.str("side")||"bottom"===this.str("side")}dir(){const t="sheet"===e?"bottom":this.str("side","left");return"left"===t||"top"===t?-1:1}stops(){return[0]}render(t){const e=this.vertical()?"Y":"X";this.style.transform=`translate${e}(${(t*this.dir()).toFixed(1)}px)`,this._backdrop&&(this._backdrop.style.opacity=String(H(1-t/(this.size()||1),0,1)))}mount(){this.setAttribute("role","dialog"),this.str("label")&&this.setAttribute("aria-label",this.str("label")),this.hasAttribute("tabindex")||(this.tabIndex=-1),this.classList.add("usa-surface"),this._pos=Pe({value:2*this.size(),spring:"stiff",onUpdate:t=>this.render(t),onRest:t=>t>=this.size()-1&&!this.open&&this.afterClose()}),this.open?this.show(!1):(this.hidden=!0,this._pos.jump(1.2*this.size())),this.listen(document,"keydown",t=>"Escape"===t.key&&this.open&&this.close()),this.listen(this,"click",t=>t.target.closest?.("[data-close]")&&this.close()),this.listen(this,"pointerdown",t=>this.dragStart(t)),this.listen(this,"pointermove",t=>this.dragMove(t)),this.listen(this,"pointerup",t=>this.dragEnd(t)),this.listen(this,"pointercancel",t=>this.dragEnd(t))}unmount(){this._pos?.stop(),this._backdrop?.remove(),this._backdrop=null}changed(t){if("open"!==t)return super.changed(t);this.open&&this.hidden?this.show(!0):this.open||this.hidden||this.hide()}show(t=!0){this._return=document.activeElement,this.hidden=!1,this.setAttribute("aria-modal","true"),this._backdrop||(this._backdrop=document.createElement("div"),this._backdrop.className="usa-panel-backdrop",this._backdrop.addEventListener("click",()=>this.close()),this.before(this._backdrop));const e=this.stops()[this.initialStop()];t?(this._pos.jump(this.size()),this._pos.set(e)):this._pos.jump(e),this.setFlag("open",!0),this.focus({preventScroll:!0}),this.emit("open")}initialStop(){return 0}hide(){this._pos.set(1.05*this.size()),this.emit("close")}afterClose(){this.hidden=!0,this._backdrop?.remove(),this._backdrop=null,this._return instanceof HTMLElement&&this._return.focus({preventScroll:!0})}close(){this.setFlag("open",!1)}dragStart(t){if(!("sheet"===e?t.target.closest?.("[data-handle], .usa-sheet-handle")||(this.scrollTop<=0?this:null):this)||t.target.closest?.("input, textarea, select, button, a, [data-no-drag]"))return;const s=this.vertical()?t.clientY:t.clientX;this._pos.stop(),this._drag={id:t.pointerId,start:s,origin:this._pos.value,t:t.timeStamp,last:s,lt:t.timeStamp}}dragMove(t){const e=this._drag;if(!e||t.pointerId!==e.id)return;const s=this.vertical()?t.clientY:t.clientX;let i=e.origin+(s-e.start)*this.dir();i<0&&(i=qe(i,200)),e.lt=e.t,e.t=t.timeStamp,e.last=s,this._pos.jump(i)}dragEnd(t){const e=this._drag;if(!e||t.pointerId!==e.id)return;this._drag=null;const s=this._pos.value-e.origin,i=Math.max(16,e.t-e.lt)/1e3,a=Math.abs(s)>4?s/Math.max(i,(t.timeStamp-(e.lt||0))/1e3||.1)*.2:0,r=Le(Fe(this._pos.value,H(a,-3e3,3e3)),[...this.stops(),this.size()]);r>=this.size()-1?this.close():this._pos.set(r),this.emit("snap",{offset:r})}}}function Ms(t="usa-drawer"){return me(),b(t,t=>As(t,"drawer"),{id:"sheet",text:_s})}function Es(t="usa-bottom-sheet"){return me(),b(t,t=>{const e=As(t,"sheet");return class extends e{static get observedAttributes(){return["open","snap"]}mount(){if(!this.querySelector(":scope > .usa-sheet-handle")){const t=document.createElement("div");t.className="usa-sheet-handle",t.setAttribute("aria-hidden","true"),this.prepend(t)}super.mount()}size(){return(window.innerHeight||800)*Math.max(...this.fractions())}fractions(){const t=this.str("snap","0.5,0.92").split(",").map(Number).filter(t=>t>0&&t<=1);return t.length?t:[.5,.92]}stops(){const t=this.size(),e=window.innerHeight||800;return this.fractions().map(s=>Math.max(0,t-s*e)).sort((t,e)=>t-e)}initialStop(){const t=this.fractions(),e=t[H(this.num("start",0),0,t.length-1)],s=Math.max(0,this.size()-e*(window.innerHeight||800)),i=this.stops();return Math.max(0,i.indexOf(s))}render(t){this.style.height=`${this.size()}px`,super.render(t)}}},{id:"sheet",text:_s})}function Ss(t="usa-pull-refresh"){return me(),b(t,t=>class extends t{constructor(){super(...arguments),this._busy=!1,this._ind=null,this._live=null}get refreshing(){return this._busy}draw(t){const e=this.num("threshold",70);this.style.setProperty("--usa-pull",`${t.toFixed(1)}px`),this.style.setProperty("--usa-pull-p",Math.min(1,t/e).toFixed(3)),this.toggleAttribute("data-armed",t>=e&&!this._busy)}mount(){this.querySelector(":scope > .usa-pull-indicator")||(this._ind=document.createElement("div"),this._ind.className="usa-pull-indicator",this._ind.setAttribute("aria-hidden","true"),this._ind.innerHTML='<svg viewBox="0 0 24 24"><circle cx="12" cy="12" r="9" pathLength="100"/></svg>',this.prepend(this._ind),this._live=document.createElement("span"),this._live.className="usa-sr",this._live.setAttribute("role","status"),this.append(this._live)),this._y=Pe({spring:"stiff",onUpdate:t=>this.draw(t)});let t=null,e=-1;this.listen(this,"pointerdown",s=>{this.flag("disabled")||this._busy||this.scrollTop>0||(t=s.clientY,e=s.pointerId)}),this.listen(this,"pointermove",s=>{if(null===t||s.pointerId!==e)return;const i=s.clientY-t;i<=0||(this._y.jump(this.reduced?0:qe(i,220)),this.reduced&&i>this.num("threshold",70)&&this.setAttribute("data-armed",""))});const s=s=>{if(null===t||s.pointerId!==e)return;const i=s.clientY-t;t=null;this.hasAttribute("data-armed")||!this.reduced&&this._y.value>=this.num("threshold",70)||this.reduced&&i>this.num("threshold",70)?this.refresh():this._y.set(0)};this.listen(this,"pointerup",s),this.listen(this,"pointercancel",s)}unmount(){this._y?.stop()}refresh(){return this._busy?Promise.resolve():(this._busy=!0,this.removeAttribute("data-armed"),this.setAttribute("data-refreshing",""),this.setAttribute("aria-busy","true"),this._live&&(this._live.textContent=this.str("label","Refreshing")),this._y.set(this.reduced?0:.8*this.num("threshold",70)),new Promise(t=>{let e=!1;const s=()=>{e||(e=!0,this._busy=!1,this.removeAttribute("data-refreshing"),this.removeAttribute("aria-busy"),this._live&&(this._live.textContent=""),this._y.set(0),t())},i=new CustomEvent("usa:refresh",{detail:{done:s},bubbles:!0,cancelable:!0});this.dispatchEvent(i);const a=this.onrefresh;"function"==typeof a&&Promise.resolve(a(i)).then(s,s)}))}},{id:"pull-refresh",text:"usa-pull-refresh{position:relative;display:block;overflow:auto;overscroll-behavior-y:contain;touch-action:pan-x pan-down}usa-pull-refresh>:not(.usa-pull-indicator):not(.usa-sr){transform:translateY(var(--usa-pull,0px))}usa-pull-refresh .usa-pull-indicator{position:absolute;left:50%;top:0;width:34px;height:34px;margin-left:-17px;z-index:2;display:grid;place-items:center;border-radius:50%;background:var(--usa-surface,#1b1e27);box-shadow:var(--usa-shadow);color:var(--usa-accent,#7c5cff);transform:translateY(calc(var(--usa-pull,0px) - 40px)) rotate(calc(var(--usa-pull-p,0) * 270deg));opacity:var(--usa-pull-p,0);pointer-events:none}usa-pull-refresh .usa-pull-indicator svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round}usa-pull-refresh .usa-pull-indicator circle{stroke-dasharray:calc(var(--usa-pull-p,0) * 75) 100}usa-pull-refresh[data-armed] .usa-pull-indicator{background:var(--usa-accent,#7c5cff);color:var(--usa-accent-text,#fff)}usa-pull-refresh[data-refreshing] .usa-pull-indicator{opacity:1;animation:usa-pull-spin 0.8s linear infinite}usa-pull-refresh[data-refreshing] .usa-pull-indicator circle{stroke-dasharray:60 100}@keyframes usa-pull-spin{from{transform:translateY(calc(var(--usa-pull,0px) - 40px)) rotate(0)}to{transform:translateY(calc(var(--usa-pull,0px) - 40px)) rotate(360deg)}}@media (prefers-reduced-motion:reduce){usa-pull-refresh[data-refreshing] .usa-pull-indicator{animation-duration:2.4s;transform:translateY(8px)}}"})}function Cs(t="usa-fab"){return me(),b(t,t=>class extends t{static get observedAttributes(){return["direction","gap"]}get open(){return this.flag("open")}set open(t){this.toggle(t)}parts(){const t=Array.from(this.children);return[t[0]||null,t.slice(1)]}offset(t,e){const s=this.num("gap",56)*(t+1);switch(this.str("direction","up")){case"down":return[0,s];case"left":return[-s,0];case"right":return[s,0];case"radial":{const s=Math.PI+(e>1?t/(e-1)*(Math.PI/2):Math.PI/4),i=1.6*this.num("gap",56);return[Math.cos(s)*i,Math.sin(s)*i]}default:return[0,-s]}}mount(){const[t,e]=this.parts();t&&(t.classList.add("usa-fab-main"),t.setAttribute("aria-haspopup","true"),e.forEach(t=>t.classList.add("usa-fab-action")),this.apply(!1),this.listen(t,"click",()=>this.toggle()),this.listen(document,"keydown",e=>{"Escape"===e.key&&this.open&&(this.toggle(!1),t.focus())}),this.listen(document,"pointerdown",t=>this.open&&!this.contains(t.target)&&this.toggle(!1)),this.listen(this,"click",t=>{const e=t.target.closest?.(".usa-fab-action");e&&this.contains(e)&&this.toggle(!1)}))}apply(t){const[e,s]=this.parts();if(!e)return;const i=this.open;e.setAttribute("aria-expanded",String(i)),s.forEach((e,a)=>{const[r,n]=this.offset(a,s.length);e.toggleAttribute("inert",!i),e.setAttribute("aria-hidden",String(!i));const o=i?`translate(${r.toFixed(1)}px, ${n.toFixed(1)}px) scale(1)`:"translate(0, 0) scale(0.4)",l=e.style.transform||"translate(0, 0) scale(0.4)";if(e.style.transform=this.reduced?i?`translate(${r.toFixed(1)}px, ${n.toFixed(1)}px)`:"translate(0, 0)":o,e.style.opacity=i?"1":"0",t&&!this.reduced){const t=Te(i?"wobbly":"stiff");this.motion(e,[{transform:l,opacity:i?0:1},{transform:o,opacity:i?1:0}],{...t,delay:35*(i?a:s.length-1-a)})}})}toggle(t){const e=void 0===t?!this.open:t;e!==this.open&&(this.setFlag("open",e),this.apply(!0),this.emit("toggle",{open:e}))}},{id:"fab",text:'usa-fab{position:fixed;right:max(20px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom));z-index:900;display:grid;place-items:center}usa-fab[position="bottom-left"]{right:auto;left:max(20px,env(safe-area-inset-left))}usa-fab[position="inline"]{position:relative;right:auto;bottom:auto;display:inline-grid}usa-fab>*{grid-area:1 / 1}usa-fab .usa-fab-main{position:relative;z-index:1;width:56px;height:56px;border-radius:min(var(--usa-radius,14px) * 1.2,28px);border:0;display:grid;place-items:center;font-size:24px;cursor:pointer;background:var(--usa-accent,#7c5cff);color:var(--usa-accent-text,#fff);box-shadow:var(--usa-shadow);transition:transform 0.35s cubic-bezier(0.34,1.56,0.64,1)}usa-fab[open] .usa-fab-main{transform:rotate(45deg)}usa-fab .usa-fab-action{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;opacity:0;transform:scale(0.4);will-change:transform,opacity}usa-fab .usa-fab-main:focus-visible,usa-fab .usa-fab-action:focus-visible{outline:2px solid var(--usa-accent,#7c5cff);outline-offset:3px}@media (prefers-reduced-motion:reduce){usa-fab .usa-fab-main{transition:none}}'})}function $s(t="usa-navbar"){return me(),b(t,t=>class extends t{constructor(){super(...arguments),this._frame=0,this._last=0}get hiddenByScroll(){return this.hasAttribute("data-hidden")}mount(){const t=this.str("target"),e=t&&document.querySelector(t)||window,s=()=>e===window?window.scrollY||document.documentElement.scrollTop:e.scrollTop;this._last=s();const i=()=>{this._frame=0;const t=s(),e=t-this._last;this._last=t,this.toggleAttribute("data-scrolled",t>4),t<=this.num("threshold",64)||e<-2?this.show():e>2&&!this.contains(document.activeElement)&&this.hide()};this.listen(e,"scroll",()=>{this._frame||(this._frame=C(i))},{passive:!0}),this.listen(this,"focusin",()=>this.show()),i()}unmount(){T(this._frame),this._frame=0}hide(){this.hiddenByScroll||(this.setAttribute("data-hidden",""),this.emit("hide"))}show(){this.hiddenByScroll&&(this.removeAttribute("data-hidden"),this.emit("show"))}},{id:"navbar",text:"usa-navbar{position:sticky;top:0;z-index:800;display:block;transition:transform 0.35s cubic-bezier(0.22,1,0.36,1),padding 0.25s ease,box-shadow 0.25s ease;will-change:transform}usa-navbar[data-hidden]{transform:translateY(-100%)}usa-navbar[data-scrolled]{box-shadow:var(--usa-shadow,0 6px 20px -10px rgb(0 0 0 / 0.4))}usa-navbar[shrink][data-scrolled]{padding-block:4px}@media (prefers-reduced-motion:reduce){usa-navbar{transition:none}}"})}function Ts(t="usa-slider"){return me(),b(t,t=>{class e extends t{static get observedAttributes(){return["min","max","disabled","label"]}constructor(){super(),this._internals=null,this._v=0,this._id=-1;try{this._internals=this.attachInternals?.()??null}catch{this._internals=null}}range(){const t=this.num("min",0);return[t,Math.max(t+1e-9,this.num("max",100)),Math.max(1e-9,this.num("step",1))]}get value(){return this._v}set value(t){this.setValue(t,!1)}fraction(t=this._v){const[e,s]=this.range();return(t-e)/(s-e)}setValue(t,e,s=!0){const[i,a,r]=this.range(),n=H(Math.round((t-i)/r)*r+i,i,a),o=Number(n.toFixed(10)),l=o!==this._v;this._v=o,this.setAttribute("aria-valuenow",String(o)),this.setAttribute("aria-valuetext",String(o)),this._internals?.setFormValue?.(String(o));const c=this.querySelector(".usa-slider-bubble");c&&(c.textContent=String(o)),s?this._pos?.set(this.fraction()):this._pos?.jump(this.fraction()),l&&e&&(this.dispatchEvent(new Event("input",{bubbles:!0})),this.emit("input",{value:o}))}mount(){this.querySelector(":scope > .usa-slider-track")||(this.innerHTML='<span class="usa-slider-track"><span class="usa-slider-fill"></span></span><span class="usa-slider-thumb"><span class="usa-slider-bubble"></span></span>'),this.setAttribute("role","slider"),this.hasAttribute("tabindex")||(this.tabIndex=0);const[t,e]=this.range();this.setAttribute("aria-valuemin",String(t)),this.setAttribute("aria-valuemax",String(e)),this.str("label")&&this.setAttribute("aria-label",this.str("label")),this.toggleAttribute("aria-disabled",this.flag("disabled")),this._pos=Pe({spring:"stiff",onUpdate:t=>this.style.setProperty("--usa-slider",H(t,0,1).toFixed(4))}),this.setValue(this.num("value",t),!1,!1);const s=s=>{const i=this.getBoundingClientRect();return t+H((s.clientX-i.left)/(i.width||1),0,1)*(e-t)};this.listen(this,"pointerdown",t=>{if(!this.flag("disabled")){this._id=t.pointerId;try{this.setPointerCapture?.(t.pointerId)}catch{}this.setAttribute("data-dragging",""),this.setValue(s(t),!0)}}),this.listen(this,"pointermove",t=>t.pointerId===this._id&&this.setValue(s(t),!0));const i=t=>{t.pointerId===this._id&&(this._id=-1,this.removeAttribute("data-dragging"),this.commit())};this.listen(this,"pointerup",i),this.listen(this,"pointercancel",i),this.listen(this,"keydown",t=>{if(this.flag("disabled"))return;const[e,s,i]=this.range(),a={ArrowRight:this._v+i,ArrowUp:this._v+i,ArrowLeft:this._v-i,ArrowDown:this._v-i,PageUp:this._v+10*i,PageDown:this._v-10*i,Home:e,End:s};t.key in a&&(t.preventDefault(),this.setValue(a[t.key],!0),this.commit())})}unmount(){this._pos?.stop()}commit(){this.dispatchEvent(new Event("change",{bubbles:!0})),this.emit("change",{value:this._v})}}return e.formAssociated=!0,e},{id:"slider",text:"usa-slider{--usa-slider:0;position:relative;display:block;height:28px;min-width:120px;touch-action:none;cursor:pointer;-webkit-tap-highlight-color:transparent}usa-slider .usa-slider-track{position:absolute;left:0;right:0;top:50%;height:6px;margin-top:-3px;border-radius:3px;background:color-mix(in srgb,currentColor 16%,transparent);overflow:hidden}usa-slider .usa-slider-fill{position:absolute;inset:0;background:var(--usa-accent,#7c5cff);transform-origin:0 50%;transform:scaleX(var(--usa-slider))}usa-slider .usa-slider-thumb{position:absolute;top:50%;left:calc(var(--usa-slider) * 100%);width:20px;height:20px;margin:-10px 0 0 -10px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgb(0 0 0 / 0.35),0 0 0 4px color-mix(in srgb,var(--usa-accent,#7c5cff) 0%,transparent);transition:transform 0.25s cubic-bezier(0.34,1.56,0.64,1),box-shadow 0.2s ease}usa-slider:hover .usa-slider-thumb,usa-slider:focus-visible .usa-slider-thumb{box-shadow:0 1px 4px rgb(0 0 0 / 0.35),0 0 0 6px color-mix(in srgb,var(--usa-accent,#7c5cff) 25%,transparent)}usa-slider[data-dragging] .usa-slider-thumb{transform:scale(1.25)}usa-slider .usa-slider-bubble{position:absolute;bottom:150%;left:50%;transform:translateX(-50%) scale(0.6);opacity:0;padding:2px 8px;border-radius:8px;font:600 12px/1.6 system-ui,sans-serif;color:var(--usa-accent-text,#fff);background:var(--usa-accent,#7c5cff);white-space:nowrap;pointer-events:none;transition:opacity 0.15s ease,transform 0.25s cubic-bezier(0.34,1.56,0.64,1)}usa-slider[bubble][data-dragging] .usa-slider-bubble,usa-slider[bubble]:focus-visible .usa-slider-bubble{opacity:1;transform:translateX(-50%) scale(1)}usa-slider:focus-visible{outline:none}usa-slider[disabled]{opacity:0.45;cursor:not-allowed}@media (prefers-reduced-motion:reduce){usa-slider .usa-slider-thumb,usa-slider .usa-slider-bubble{transition:none}}"})}function zs(t="usa-rating"){return me(),b(t,t=>{class e extends t{static get observedAttributes(){return["max","icon","readonly"]}constructor(){super(),this._internals=null;try{this._internals=this.attachInternals?.()??null}catch{this._internals=null}}get value(){return H(this.num("value",0),0,this.num("max",5))}set value(t){this.setAttribute("value",String(H(Math.round(t),0,this.num("max",5)))),this.sync()}mount(){D("usa-rating",'<usa-rating> is deprecated and removed in 8.0 — use <usa-star-rating> (same value / max / readonly / label / name; icon="heart"). Run `npx usa-codemod-8 --write src`.');const t=this.num("max",5);this.innerHTML=Array.from({length:t},(t,e)=>`<span class="usa-rating-star" data-i="${e+1}" aria-hidden="true">${this.str("icon","★")}</span>`).join(""),this.setAttribute("role","slider"),this.setAttribute("aria-valuemin","0"),this.setAttribute("aria-valuemax",String(t)),this.setAttribute("aria-label",this.str("label","Rating")),this.flag("readonly")?this.setAttribute("aria-readonly","true"):this.hasAttribute("tabindex")||(this.tabIndex=0),this.sync(),this.flag("readonly")||(this.listen(this,"pointerover",t=>{const e=t.target.closest?.("[data-i]");e&&this.preview(Number(e.dataset.i))}),this.listen(this,"pointerleave",()=>this.preview(0)),this.listen(this,"click",t=>{const e=t.target.closest?.("[data-i]");e&&this.choose(Number(e.dataset.i)===this.value?0:Number(e.dataset.i))}),this.listen(this,"keydown",e=>{const s=this.value,i={ArrowRight:s+1,ArrowUp:s+1,ArrowLeft:s-1,ArrowDown:s-1,Home:0,End:t},a=/^[0-9]$/.test(e.key)?Number(e.key):i[e.key];void 0!==a&&(e.preventDefault(),this.choose(H(a,0,t)))}))}preview(t){this.querySelectorAll("[data-i]").forEach(e=>e.toggleAttribute("data-preview",t>0&&Number(e.dataset.i)<=t)),this.toggleAttribute("data-previewing",t>0)}sync(){const t=this.value;this.setAttribute("aria-valuenow",String(t)),this.setAttribute("aria-valuetext",`${t} of ${this.num("max",5)}`),this._internals?.setFormValue?.(String(t)),this.querySelectorAll("[data-i]").forEach(e=>e.toggleAttribute("data-on",Number(e.dataset.i)<=t))}choose(t){if(t===this.value)return;this.value=t;const e=this.querySelector(`[data-i="${t}"]`);e&&!this.reduced&&this.motion(e,[{transform:"scale(0.5) rotate(-20deg)"},{transform:"scale(1) rotate(0)"}],Te("bouncy")),this.dispatchEvent(new Event("change",{bubbles:!0})),this.emit("change",{value:t})}}return e.formAssociated=!0,e},{id:"rating",text:"usa-rating{--usa-rating-on:#f5b301;display:inline-flex;gap:2px;font-size:1.5em;line-height:1;cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent}usa-rating[readonly]{cursor:default}usa-rating .usa-rating-star{display:inline-block;color:color-mix(in srgb,currentColor 22%,transparent);transition:color 0.15s ease,transform 0.2s ease}usa-rating .usa-rating-star[data-on]{color:var(--usa-rating-on)}usa-rating[data-previewing] .usa-rating-star{color:color-mix(in srgb,currentColor 22%,transparent)}usa-rating[data-previewing] .usa-rating-star[data-preview]{color:var(--usa-rating-on);transform:scale(1.12)}usa-rating:focus-visible{outline:2px solid var(--usa-accent,#7c5cff);outline-offset:3px;border-radius:6px}@media (prefers-reduced-motion:reduce){usa-rating .usa-rating-star{transition:none;transform:none !important}}"})}function Ps(t="usa-popover"){return me(),b(t,t=>class extends t{get open(){return this.flag("open")}set open(t){this.toggle(t)}parts(){return[this.firstElementChild,this.querySelector(":scope > [data-popover]")]}mount(){const[t,e]=this.parts();t&&e&&t!==e&&(e.id||(e.id=ws("usa-pop")),e.classList.add("usa-surface","usa-popover-panel"),e.hasAttribute("role")||e.setAttribute("role","dialog"),e.tabIndex=-1,t.setAttribute("aria-controls",e.id),t.setAttribute("aria-haspopup","dialog"),this.render(!1),this.listen(t,"click",()=>this.toggle()),this.listen(document,"keydown",e=>{"Escape"===e.key&&this.open&&(this.toggle(!1),t.focus())}),this.listen(document,"pointerdown",t=>this.open&&!this.contains(t.target)&&this.toggle(!1)),this.listen(window,"resize",()=>this.open&&vs(e,t,this.str("placement","bottom"))))}render(t){const[e,s]=this.parts();if(!e||!s)return;if(e.setAttribute("aria-expanded",String(this.open)),s.hidden=!this.open,!this.open)return;const i=vs(s,e,this.str("placement","bottom"));if(!t)return;const a={top:"50% 100%",bottom:"50% 0",left:"100% 50%",right:"0 50%"}[i];s.style.transformOrigin=a,this.motion(s,this.reduced?[{opacity:0},{opacity:1}]:[{opacity:0,transform:"scale(0.9)"},{opacity:1,transform:"none"}],this.reduced?{duration:120}:Te("wobbly")),s.focus({preventScroll:!0})}toggle(t){const e=void 0===t?!this.open:t;e!==this.open&&(this.setFlag("open",e),this.render(!0),this.emit(e?"open":"close"))}},{id:"popover",text:"usa-popover{display:inline-block}usa-popover .usa-popover-panel{position:fixed;z-index:1500;min-width:180px;max-width:min(92vw,360px);padding:12px 14px;outline:none}usa-popover .usa-popover-panel[hidden]{display:none}"})}function Fs(t="usa-badge"){return me(),b(t,t=>class extends t{constructor(){super(...arguments),this._el=null}static get observedAttributes(){return["value","max","dot","label"]}get value(){return this.str("value")}set value(t){this.setAttribute("value",String(t))}mount(){this._el&&this._el.isConnected||(this._el=document.createElement("span"),this._el.className="usa-badge-count",this.append(this._el)),this.sync(!1)}changed(t){this.sync("value"===t)}sync(t){const e=this._el;if(!e)return;const s=this.value,i=Number(s),a=this.num("max",99),r=this.flag("dot")?"":""!==s&&Number.isFinite(i)&&i>a?`${a}+`:s,n=!this.flag("dot")&&(""===s||"0"===s&&!this.flag("show-zero"));e.textContent=r,e.hidden=n,this.toggleAttribute("data-dot",this.flag("dot"));const o=this.str("label",s?`${s} new`:"New");e.setAttribute("aria-label",o.replace("{n}",s)),e.setAttribute("role","status"),!t||n||this.reduced||this.motion(e,[{transform:"scale(0.4)"},{transform:"scale(1)"}],Te("bouncy"))}},{id:"badge",text:'usa-badge{position:relative;display:inline-block}usa-badge .usa-badge-count{position:absolute;top:0;right:0;transform-origin:50% 50%;translate:45% -45%;min-width:18px;height:18px;padding:0 5px;box-sizing:border-box;border-radius:9px;display:grid;place-items:center;font:700 11px/1 system-ui,sans-serif;color:var(--usa-accent-text,#fff);background:var(--usa-badge-color,#e5484d);box-shadow:0 0 0 2px var(--usa-badge-ring,Canvas);pointer-events:none}usa-badge[data-dot] .usa-badge-count{min-width:10px;width:10px;height:10px;padding:0}usa-badge .usa-badge-count[hidden]{display:none}usa-badge[pulse] .usa-badge-count::after{content:"";position:absolute;inset:0;border-radius:inherit;background:inherit;animation:usa-badge-pulse 1.6s ease-out infinite;z-index:-1}@keyframes usa-badge-pulse{from{transform:scale(1);opacity:0.6}to{transform:scale(2.4);opacity:0}}@media (prefers-reduced-motion:reduce){usa-badge[pulse] .usa-badge-count::after{animation:none}}'})}function Ls(t="usa-avatar-stack"){return me(),b(t,t=>class extends t{static get observedAttributes(){return["max","size","overlap"]}mount(){this.querySelector(":scope > .usa-avatar-more")?.remove();const t=Array.from(this.children),e=Math.max(1,this.num("max",5));if(this.style.setProperty("--usa-avatar-size",`${this.num("size",36)}px`),this.style.setProperty("--usa-avatar-overlap",String(this.num("overlap",.35))),this.setAttribute("role","group"),this.setAttribute("aria-label",this.str("label",`${t.length} people`)),t.forEach((s,i)=>{s.classList.add("usa-avatar"),s.hidden=i>=e,s.style.setProperty("--i",String(i)),s.style.zIndex=String(t.length-i)}),t.length>e){const s=document.createElement("span");s.className="usa-avatar usa-avatar-more",s.textContent="+"+(t.length-e),s.style.setProperty("--i",String(e)),s.setAttribute("aria-label",`and ${t.length-e} more`),this.append(s)}}},{id:"avatar-stack",text:"usa-avatar-stack{--usa-avatar-size:36px;--usa-avatar-overlap:0.35;display:inline-flex;align-items:center;padding-inline-start:calc(var(--usa-avatar-size) * var(--usa-avatar-overlap))}usa-avatar-stack .usa-avatar{width:var(--usa-avatar-size);height:var(--usa-avatar-size);border-radius:50%;object-fit:cover;flex:none;box-shadow:0 0 0 2px var(--usa-avatar-ring,Canvas);margin-inline-start:calc(var(--usa-avatar-size) * var(--usa-avatar-overlap) * -1);transition:margin 0.45s cubic-bezier(0.34,1.56,0.64,1),transform 0.3s cubic-bezier(0.34,1.56,0.64,1);display:grid;place-items:center;font:700 12px/1 system-ui,sans-serif;background:color-mix(in srgb,currentColor 14%,transparent)}usa-avatar-stack .usa-avatar[hidden]{display:none}usa-avatar-stack:hover .usa-avatar,usa-avatar-stack:focus-within .usa-avatar{margin-inline-start:4px}usa-avatar-stack .usa-avatar:hover{transform:translateY(-4px) scale(1.08)}@media (prefers-reduced-motion:reduce){usa-avatar-stack .usa-avatar{transition:none}usa-avatar-stack:hover .usa-avatar,usa-avatar-stack:focus-within .usa-avatar{margin-inline-start:calc(var(--usa-avatar-size) * var(--usa-avatar-overlap) * -1)}usa-avatar-stack .usa-avatar:hover{transform:none}}"})}function qs(){ks(),Ms(),Es(),Ss(),Cs(),$s(),Ts(),zs(),Ps(),Fs(),Ls()}const Rs=["dot","magnetic","glow"];function Is(t="usa-cursor"){return b(t,t=>class extends t{constructor(){super(...arguments),this._frame=0}static get observedAttributes(){return["mode","size","color","hide-native"]}get active(){return this.hasAttribute("data-active")}mount(){this.setAttribute("aria-hidden","true");const t="function"!=typeof matchMedia||matchMedia("(pointer: fine)").matches||matchMedia("(hover: hover)").matches;if(this.reduced||!t)return void this.replaceChildren();const e=this.str("mode","dot"),s=Rs.includes(e)?e:"dot";this.innerHTML=Array.from({length:1},(t,e)=>`<span class="usa-cursor-${"glow"===s?"glow":"ring"}" style="--i:${e}"></span>`).join("")+("glow"===s?"":'<span class="usa-cursor-dot"></span>'),this.str("color")&&this.style.setProperty("--usa-cursor-color",this.str("color")),this.style.setProperty("--usa-cursor-size",`${this.num("size",28)}px`),this.flag("hide-native")&&document.documentElement.classList.add("usa-cursor-none"),this.onCleanup(()=>document.documentElement.classList.remove("usa-cursor-none"));const i=Array.from(this.querySelectorAll(".usa-cursor-ring, .usa-cursor-glow")),a=this.querySelector(".usa-cursor-dot"),r=i.map(()=>({x:-100,y:-100}));let n=-100,o=-100,l=null;const c=this.str("targets",'a, button, [role="button"], [data-cursor], input, select, textarea, label'),u=()=>{this._frame=0;let t=n,e=o;r.forEach((a,r)=>{const n="glow"===s?.12:.22,o=l&&0===r?l.left+l.width/2:t,c=l&&0===r?l.top+l.height/2:e;a.x+=(o-a.x)*n,a.y+=(c-a.y)*n,i[r].style.transform=`translate3d(${a.x.toFixed(1)}px, ${a.y.toFixed(1)}px, 0)`,t=a.x,e=a.y}),l&&i[0]?(i[0].style.width=`${l.width+12}px`,i[0].style.height=`${l.height+12}px`):i[0]&&(i[0].style.width=i[0].style.height=""),a&&(a.style.transform=`translate3d(${n}px, ${o}px, 0)`);r.some((t,e)=>Math.abs(t.x-(0===e&&l?l.left+l.width/2:n))>.3)&&(this._frame=C(u))},d=()=>{this._frame||(this._frame=C(u))};this.listen(document,"pointermove",t=>{if("touch"!==t.pointerType){if(n=t.clientX,o=t.clientY,this.setAttribute("data-active",""),"magnetic"===s){const e=t.target?.closest?.(c);l=e?e.getBoundingClientRect():null,this.toggleAttribute("data-snapped",!!e)}else this.toggleAttribute("data-hover",!!t.target?.closest?.(c));d()}},{passive:!0}),this.listen(document,"pointerdown",()=>this.setAttribute("data-down","")),this.listen(document,"pointerup",()=>this.removeAttribute("data-down")),this.listen(document.documentElement,"pointerleave",()=>this.removeAttribute("data-active"))}unmount(){T(this._frame),this._frame=0,this.removeAttribute("data-active")}},{id:"cursor",text:"usa-cursor{--usa-cursor-color:var(--usa-accent,#7c5cff);--usa-cursor-size:28px;position:fixed;inset:0;pointer-events:none;z-index:2147483600;opacity:0;transition:opacity 0.2s ease;contain:strict}usa-cursor[data-active]{opacity:1}usa-cursor .usa-cursor-ring{position:absolute;left:0;top:0;width:var(--usa-cursor-size);height:var(--usa-cursor-size);margin:calc(var(--usa-cursor-size) / -2) 0 0 calc(var(--usa-cursor-size) / -2);border:1.5px solid var(--usa-cursor-color);border-radius:999px;box-sizing:border-box;transition:width 0.25s cubic-bezier(0.34,1.56,0.64,1),height 0.25s cubic-bezier(0.34,1.56,0.64,1),margin 0.25s ease,border-radius 0.25s ease,background-color 0.2s ease;will-change:transform}usa-cursor[data-hover] .usa-cursor-ring:first-child{width:calc(var(--usa-cursor-size) * 1.6);height:calc(var(--usa-cursor-size) * 1.6);margin:calc(var(--usa-cursor-size) * -0.8) 0 0 calc(var(--usa-cursor-size) * -0.8);background:color-mix(in srgb,var(--usa-cursor-color) 15%,transparent)}usa-cursor[data-snapped] .usa-cursor-ring{border-radius:12px;background:color-mix(in srgb,var(--usa-cursor-color) 12%,transparent);translate:-50% -50%;margin:0}usa-cursor[data-down] .usa-cursor-ring:first-child{scale:0.8}usa-cursor .usa-cursor-dot{position:absolute;left:-3px;top:-3px;width:6px;height:6px;border-radius:50%;background:var(--usa-cursor-color)}usa-cursor[data-snapped] .usa-cursor-dot{opacity:0}usa-cursor .usa-cursor-glow{position:absolute;left:-200px;top:-200px;width:400px;height:400px;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--usa-cursor-color) 35%,transparent),transparent 65%);mix-blend-mode:screen}.usa-cursor-none,.usa-cursor-none *{cursor:none !important}@media (pointer:coarse),(prefers-reduced-motion:reduce){usa-cursor{display:none}.usa-cursor-none,.usa-cursor-none *{cursor:auto !important}}"})}function Ns(t,e={}){if("undefined"==typeof window)return Promise.resolve();const s=e.target||null,i=s?s.scrollTop:window.scrollY;let a="number"==typeof t?t:0;if("number"!=typeof t){const e="string"==typeof t?document.querySelector(t):t;if(!e)return Promise.resolve();const r=e.getBoundingClientRect().top;a=i+r-(s?s.getBoundingClientRect().top:0)}a=Math.max(0,a-(e.offset??0));const r=t=>s?s.scrollTop=t:window.scrollTo(0,t);if(d())return r(a),Promise.resolve();const{values:n,duration:o}=Ce(e.preset||"slow"),l=$();return new Promise(t=>{const e=()=>{const s=Math.min(1,($()-l)/Math.max(1,o)),c=n[Math.min(n.length-1,Math.round(s*(n.length-1)))];r(i+(a-i)*c),s<1?C(e):t()};C(e)})}function Ys(t="usa-fullpage"){return b(t,t=>class extends t{constructor(){super(...arguments),this._i=0}get index(){return this._i}sections(){return Array.from(this.children).filter(t=>!t.classList.contains("usa-fullpage-dots"))}mount(){this.hasAttribute("tabindex")||(this.tabIndex=0);const t=this.sections();t.forEach((t,e)=>{t.classList.add("usa-fullpage-section"),t.setAttribute("data-index",String(e))});let e=null;if(this.flag("dots")&&(e=document.createElement("nav"),e.className="usa-fullpage-dots",e.setAttribute("aria-label","Sections"),t.forEach((t,s)=>{const i=document.createElement("button");i.type="button",i.setAttribute("aria-label",t.getAttribute("aria-label")||t.querySelector("h1,h2,h3")?.textContent?.trim()||`Section ${s+1}`),i.addEventListener("click",()=>this.go(s)),e.append(i)}),this.append(e),this.onCleanup(()=>e?.remove())),this.mark(0),"undefined"!=typeof IntersectionObserver){const e=new IntersectionObserver(t=>{for(const e of t)e.isIntersecting&&e.intersectionRatio>=.6&&this.mark(Number(e.target.dataset.index))},{root:this,threshold:[.6]});t.forEach(t=>e.observe(t)),this.onCleanup(()=>e.disconnect())}this.listen(this,"keydown",t=>{const e=this.sections().length,s={PageDown:this._i+1,ArrowDown:this._i+1," ":this._i+1,PageUp:this._i-1,ArrowUp:this._i-1,Home:0,End:e-1};"x"===this.str("axis")&&Object.assign(s,{ArrowRight:this._i+1,ArrowLeft:this._i-1}),t.key in s&&!t.target.closest?.("input, textarea, select")&&(t.preventDefault(),this.go(s[t.key]))})}mark(t){t===this._i&&this.hasAttribute("data-ready")||(this.setAttribute("data-ready",""),this._i=t,this.sections().forEach((e,s)=>e.toggleAttribute("data-current",s===t)),this.querySelectorAll(".usa-fullpage-dots button").forEach((e,s)=>s===t?e.setAttribute("aria-current","true"):e.removeAttribute("aria-current")),this.emit("section",{index:t}))}go(t){const e=this.sections(),s=e[Math.max(0,Math.min(e.length-1,t))];s&&("x"===this.str("axis")?this.scrollTo({left:s.offsetLeft,behavior:this.reduced?"auto":"smooth"}):Ns(s.offsetTop,{target:this,preset:"stiff"}),this.mark(e.indexOf(s)))}next(){this.go(this._i+1)}prev(){this.go(this._i-1)}},{id:"fullpage",text:'usa-fullpage{position:relative;display:block;height:100vh;height:100dvh;overflow-y:auto;scroll-snap-type:y mandatory;overscroll-behavior:contain;outline:none}usa-fullpage[axis="x"]{display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory}usa-fullpage .usa-fullpage-section{box-sizing:border-box;min-height:100%;scroll-snap-align:start;scroll-snap-stop:always}usa-fullpage[axis="x"] .usa-fullpage-section{flex:0 0 100%}usa-fullpage .usa-fullpage-dots{position:sticky;float:right;top:50%;margin-right:16px;transform:translateY(-50%);display:grid;gap:10px;z-index:5}usa-fullpage .usa-fullpage-dots button{width:10px;height:10px;padding:0;border-radius:50%;border:0;cursor:pointer;background:color-mix(in srgb,currentColor 35%,transparent);transition:transform 0.3s cubic-bezier(0.34,1.56,0.64,1),background-color 0.2s ease}usa-fullpage .usa-fullpage-dots button[aria-current]{background:var(--usa-accent,#7c5cff);transform:scale(1.5)}'})}function Bs(t="usa-loading-bar"){return b(t,t=>class extends t{constructor(){super(...arguments),this._p=0}get progress(){return this._p}mount(){this.querySelector(".usa-loading-bar-fill")||(this.innerHTML='<span class="usa-loading-bar-fill"></span>'),this.setAttribute("role","progressbar"),this.setAttribute("aria-label",this.str("label","Loading")),this.setAttribute("aria-valuemin","0"),this.setAttribute("aria-valuemax","100"),this.str("color")&&this.style.setProperty("--usa-loading-color",this.str("color")),this.style.setProperty("--usa-loading-h",`${this.num("height",3)}px`),this.paint()}unmount(){clearInterval(this._t),clearTimeout(this._h)}paint(){this.style.setProperty("--usa-loading",this._p.toFixed(4)),this.setAttribute("aria-valuenow",String(Math.round(100*this._p)))}start(){clearTimeout(this._h),clearInterval(this._t),this.setAttribute("data-active",""),this.setAttribute("aria-busy","true"),this._p=Math.max(this._p,.08),this.paint(),this._t=setInterval(()=>{this._p+=(.9-this._p)*(this.reduced?.5:.08),this.paint()},200)}set(t){this.setAttribute("data-active",""),this._p=Math.max(0,Math.min(1,t)),this.paint()}done(){clearInterval(this._t),this._p=1,this.paint(),this.removeAttribute("aria-busy"),this._h=setTimeout(()=>{this.removeAttribute("data-active"),this._h=setTimeout(()=>{this._p=0,this.paint()},300)},250)}},{id:"loading-bar",text:'usa-loading-bar{--usa-loading:0;--usa-loading-h:3px;--usa-loading-color:var(--usa-accent,#7c5cff);position:fixed;left:0;right:0;top:0;height:var(--usa-loading-h);z-index:2147483500;pointer-events:none;opacity:0;transition:opacity 0.3s ease}usa-loading-bar[position="bottom"]{top:auto;bottom:0}usa-loading-bar[data-active]{opacity:1}usa-loading-bar .usa-loading-bar-fill{position:absolute;inset:0;transform-origin:0 50%;transform:scaleX(var(--usa-loading));background:var(--usa-loading-color);box-shadow:0 0 10px var(--usa-loading-color);transition:transform 0.2s ease-out}@media (prefers-reduced-motion:reduce){usa-loading-bar .usa-loading-bar-fill{transition:none}}'})}function Os(){if("undefined"==typeof document)return null;let t=document.querySelector("usa-loading-bar");return t||(Bs(),t=document.createElement("usa-loading-bar"),document.body.appendChild(t)),"function"==typeof t.start?t:null}const Xs={start:()=>Os()?.start(),set:t=>Os()?.set(t),done:()=>Os()?.done(),async track(t){Os()?.start();try{return await("function"==typeof t?t():t)}finally{Os()?.done()}}};function Ds(t="usa-back-to-top"){return b(t,t=>class extends t{constructor(){super(...arguments),this._frame=0}get visible(){return this.hasAttribute("data-visible")}mount(){this.querySelector("button")||(this.innerHTML=`<button type="button" aria-label="${this.str("label","Back to top")}"><svg viewBox="0 0 36 36" aria-hidden="true"><circle cx="18" cy="18" r="16" pathLength="100"/><path d="M12 20l6-6 6 6"/></svg></button>`);const t=this.querySelector("button"),e=()=>{this._frame=0;const t=window.scrollY||document.documentElement.scrollTop||0,e=Math.max(1,(document.documentElement.scrollHeight||0)-(window.innerHeight||0));this.toggleAttribute("data-visible",t>this.num("offset",300)),this.style.setProperty("--usa-btt",Math.min(1,t/e).toFixed(4))};this.listen(window,"scroll",()=>{this._frame||(this._frame=C(e))},{passive:!0}),this.listen(t,"click",async()=>{await Ns(0,{preset:"slow"});const t=document.querySelector(this.str("focus-target","#main"))||document.body;t.hasAttribute("tabindex")||t===document.body||(t.tabIndex=-1),t.focus?.({preventScroll:!0})}),e()}unmount(){T(this._frame),this._frame=0}},{id:"back-to-top",text:'usa-back-to-top{--usa-btt:0;position:fixed;right:max(20px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom));z-index:850;opacity:0;transform:translateY(16px) scale(0.8);pointer-events:none;transition:opacity 0.25s ease,transform 0.4s cubic-bezier(0.34,1.56,0.64,1)}usa-back-to-top[position="bottom-left"]{right:auto;left:max(20px,env(safe-area-inset-left))}usa-back-to-top[data-visible]{opacity:1;transform:none;pointer-events:auto}usa-back-to-top button{width:48px;height:48px;padding:0;border:0;border-radius:50%;cursor:pointer;display:grid;place-items:center;color:var(--usa-accent,#7c5cff);background:var(--usa-surface,#1b1e27);box-shadow:var(--usa-shadow,0 8px 24px -10px rgb(0 0 0 / 0.5))}usa-back-to-top svg{width:44px;height:44px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}usa-back-to-top circle{stroke-dasharray:100;stroke-dashoffset:calc(100 - var(--usa-btt) * 100);transform:rotate(-90deg);transform-origin:50% 50%;opacity:0.85}usa-back-to-top button:focus-visible{outline:2px solid var(--usa-accent,#7c5cff);outline-offset:3px}@media (prefers-reduced-motion:reduce){usa-back-to-top{transition:opacity 0.2s ease;transform:none}}'})}function js(t="usa-ambient"){return b(t,t=>class extends t{constructor(){super(...arguments),this._frame=0}static get observedAttributes(){return["effect","density","color"]}mount(){this.setAttribute("aria-hidden","true");const t=this.str("effect","particles");if(this.style.setProperty("--usa-ambient-opacity",String(this.num("opacity",.6))),this.replaceChildren(),"noise"===t)return;if("gradient"===t){const t=()=>{this._frame=0;const t=Math.max(1,document.documentElement.scrollHeight-window.innerHeight);this.style.setProperty("--usa-ambient-p",((window.scrollY||0)/t).toFixed(4))};return this.reduced||this.listen(window,"scroll",()=>!this._frame&&(this._frame=C(t)),{passive:!0}),void t()}const e=document.createElement("canvas");this.append(e);const s=e.getContext?.("2d");if(!s)return;const i=Math.min(2,window.devicePixelRatio||1);let a=0,r=0;const n=this.str("color","snow"===t||"stars"===t?"#ffffff":"#a78bfa"),o=this.num("speed",1),l=()=>{a=window.innerWidth||800,r=window.innerHeight||600,e.width=a*i,e.height=r*i,e.style.width=`${a}px`,e.style.height=`${r}px`,s.setTransform(i,0,0,i,0,0)};l();const c="stars"===t?140:"snow"===t?90:60,u=Math.round(c*Math.max(.2,Math.min(3,this.num("density",1)))*Math.min(1.5,a*r/1024e3)),d=Array.from({length:u},()=>({x:Math.random()*a,y:Math.random()*r,r:"stars"===t?1.3*Math.random()+.2:"snow"===t?2.6*Math.random()+.8:2*Math.random()+.6,vx:.25*(Math.random()-.5),vy:"snow"===t?.8*Math.random()+.4:.25*(Math.random()-.5),t:Math.random()*Math.PI*2}));s.fillStyle=n;const h=e=>{s.clearRect(0,0,a,r);for(const i of d)e&&(i.t+=.02*o,i.x+=(i.vx+("snow"===t?.3*Math.sin(i.t):0))*o,i.y+=i.vy*o,i.y>r+5&&(i.y=-5),i.y<-5&&(i.y=r+5),i.x>a+5&&(i.x=-5),i.x<-5&&(i.x=a+5)),s.globalAlpha="stars"===t?.35+.65*Math.abs(Math.sin(i.t)):.85,s.beginPath(),s.arc(i.x,i.y,i.r,0,2*Math.PI),s.fill()};if(this.listen(window,"resize",()=>{l(),s.fillStyle=n,h(!1)}),this.reduced)return void h(!1);const p=()=>{document.hidden||h(!0),this._frame=C(p)};this._frame=C(p)}unmount(){T(this._frame),this._frame=0}},{id:"ambient",text:"usa-ambient{--usa-ambient-opacity:0.6;--usa-ambient-p:0;position:fixed;inset:0;z-index:-1;pointer-events:none;opacity:var(--usa-ambient-opacity);contain:strict}usa-ambient[layer=\"front\"]{z-index:2147483000}usa-ambient canvas{display:block}usa-ambient[effect=\"noise\"]{opacity:calc(var(--usa-ambient-opacity) * 0.25);background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E\");animation:usa-ambient-grain 0.6s steps(4) infinite;mix-blend-mode:overlay}@keyframes usa-ambient-grain{25%{background-position:-40px 20px}50%{background-position:30px -50px}75%{background-position:-20px -30px}}usa-ambient[effect=\"gradient\"]{background:linear-gradient(135deg,hsl(calc(250 + var(--usa-ambient-p) * 140) 85% 60%),hsl(calc(190 + var(--usa-ambient-p) * 160) 85% 55%) 50%,hsl(calc(320 + var(--usa-ambient-p) * 90) 85% 62%))}@media (prefers-reduced-motion:reduce){usa-ambient[effect=\"noise\"]{animation:none}}"})}function Hs(t="usa-splash"){return b(t,t=>class extends t{constructor(){super(...arguments),this._t0=0,this._gone=!1}mount(){this._t0=Date.now(),this.setAttribute("role","status"),this.setAttribute("aria-label",this.str("label","Loading")),document.body?.setAttribute("aria-busy","true"),this.flag("manual")||("complete"===document.readyState?this.done():this.listen(window,"load",()=>this.done(),{once:!0}))}async done(){if(this._gone)return;this._gone=!0;const t=Math.max(0,this.num("min",600)-(Date.now()-this._t0));t&&await new Promise(e=>setTimeout(e,t));const e=this.reduced?"fade":this.str("exit","fade"),s={fade:[{opacity:1},{opacity:0}],scale:[{opacity:1,transform:"scale(1)"},{opacity:0,transform:"scale(1.15)"}],"slide-up":[{transform:"translateY(0)"},{transform:"translateY(-100%)"}],circle:[{clipPath:"circle(150% at 50% 50%)"},{clipPath:"circle(0% at 50% 50%)"}]},i=this.motion(this,s[e]||s.fade,{duration:this.reduced?200:550,easing:"cubic-bezier(0.65, 0, 0.35, 1)",fill:"forwards"});await(i?.finished.catch(()=>{})),document.body?.removeAttribute("aria-busy"),this.hidden=!0,this.emit("done")}},{id:"splash",text:"usa-splash{position:fixed;inset:0;z-index:2147483400;display:grid;place-items:center;background:var(--usa-splash-bg,var(--usa-surface,#0b0d12));color:var(--usa-text,#fff)}usa-splash[hidden]{display:none}"})}function Vs(t="usa-auto-skeleton"){return b(t,t=>class extends t{static get observedAttributes(){return["loading"]}get loading(){return this.flag("loading")}set loading(t){this.setFlag("loading",t)}mount(){this.sync(!1)}changed(){this.sync(!0)}sync(t){this.loading?this.setAttribute("aria-busy","true"):(this.removeAttribute("aria-busy"),t&&!this.reduced&&this.motion(this,[{opacity:.4},{opacity:1}],{duration:300,easing:"ease-out"}))}},{id:"auto-skeleton",text:"usa-auto-skeleton{display:block;--usa-skel-base:color-mix(in srgb,currentColor 10%,transparent);--usa-skel-shine:color-mix(in srgb,currentColor 18%,transparent)}usa-auto-skeleton[loading] :is(h1,h2,h3,h4,h5,h6,p,li,span,a,button,label,img,svg,video,input,select,textarea,td,th,figcaption,blockquote,[data-skeleton]):not([data-no-skeleton]):not(:has(:is(h1,h2,h3,h4,h5,h6,p,li,img,button,input))){color:transparent !important;border-color:transparent !important;box-shadow:none !important;user-select:none;pointer-events:none;background:linear-gradient(90deg,var(--usa-skel-base) 25%,var(--usa-skel-shine) 50%,var(--usa-skel-base) 75%) 0 0 / 300% 100% !important;border-radius:6px;animation:usa-skel-shimmer 1.4s ease-in-out infinite}usa-auto-skeleton[loading] :is(img,svg,video){opacity:0}usa-auto-skeleton[loading] :is(img,svg,video):not([data-no-skeleton]){opacity:1;object-position:-9999px}@keyframes usa-skel-shimmer{from{background-position:100% 0}to{background-position:0 0}}@media (prefers-reduced-motion:reduce){usa-auto-skeleton[loading] *{animation:none !important}}"})}const Us=["low","normal","high"],Ws=["off","low","normal","high"],Gs="usa:motion";function Ks(t,e){if(e)try{localStorage.setItem(Gs,t)}catch{}"undefined"!=typeof document&&document.dispatchEvent(new CustomEvent("usa:motion",{detail:{level:t}}))}function Js(t,e=!1){Ws.includes(t)&&(a("off"===t?{motionSensitivity:"minimal"}:{motionIntensity:t,..."minimal"===r()?{motionSensitivity:"full"}:{}}),Ks(t,e))}function Zs(){return"minimal"===r()||"static"===r()?"off":l()}function Qs(){try{const t=localStorage.getItem(Gs);t&&Ws.includes(t)&&Js(t)}catch{}return l()}function ti(t="usa-motion-switch"){return b(t,t=>class extends t{get value(){return Zs()}set value(t){Js(t,!0),this.sync()}mount(){Qs();const t=this.str("labels","Off,Low,Normal,High").split(",");this.setAttribute("role","radiogroup"),this.setAttribute("aria-label",this.str("label","Motion")),this.innerHTML=Ws.map((e,s)=>`<button type="button" role="radio" data-level="${e}">${t[s]||e}</button><span hidden></span>`.replace("<span hidden></span>","")).join("")+'<span class="usa-motion-thumb" aria-hidden="true"></span>',this.listen(this,"click",t=>{const e=t.target.closest?.("[data-level]");e&&this.pick(e.dataset.level)}),this.listen(this,"keydown",t=>{const e=Ws.indexOf(this.value),s="ArrowRight"===t.key||"ArrowDown"===t.key?e+1:"ArrowLeft"===t.key||"ArrowUp"===t.key?e-1:null;null!==s&&(t.preventDefault(),this.pick(Ws[(s+Ws.length)%Ws.length]),this.querySelector('[aria-checked="true"]')?.focus())}),this.listen(document,"usa:motion",()=>this.sync()),this.sync()}pick(t){this.value=t,this.emit("change",{level:t})}sync(){const t=this.value,e=Ws.indexOf(t);this.style.setProperty("--usa-motion-i",String(e)),this.querySelectorAll("[data-level]").forEach(e=>{const s=e.dataset.level===t;e.setAttribute("aria-checked",String(s)),e.tabIndex=s?0:-1})}},{id:"motion-switch",text:'usa-motion-switch{--usa-motion-i:2;position:relative;display:inline-grid;grid-auto-flow:column;grid-auto-columns:1fr;padding:3px;border-radius:999px;background:color-mix(in srgb,currentColor 9%,transparent);isolation:isolate}usa-motion-switch button{position:relative;z-index:1;padding:6px 12px;border:0;background:none;color:inherit;font:inherit;font-size:0.85em;border-radius:999px;cursor:pointer}usa-motion-switch button[aria-checked="true"]{color:var(--usa-accent-text,#fff)}usa-motion-switch button:focus-visible{outline:2px solid var(--usa-accent,#7c5cff);outline-offset:1px}usa-motion-switch .usa-motion-thumb{position:absolute;z-index:0;top:3px;bottom:3px;left:3px;width:calc((100% - 6px) / 4);border-radius:999px;background:var(--usa-accent,#7c5cff);transform:translateX(calc(var(--usa-motion-i) * 100%));transition:transform 0.4s cubic-bezier(0.34,1.4,0.64,1)}@media (prefers-reduced-motion:reduce){usa-motion-switch .usa-motion-thumb{transition:none}}'})}var ei='::view-transition-group(root){animation-duration:var(--usa-pt-duration,600ms)}html[data-usa-pt] ::view-transition-old(root),html[data-usa-pt] ::view-transition-new(root){animation-duration:var(--usa-pt-duration,600ms);animation-timing-function:cubic-bezier(0.22,1,0.36,1);mix-blend-mode:normal}html[data-usa-pt="slide"] ::view-transition-old(root),html[data-usa-pt="slide-left"] ::view-transition-old(root){animation-name:usa-pt-out-left}html[data-usa-pt="slide"] ::view-transition-new(root),html[data-usa-pt="slide-left"] ::view-transition-new(root){animation-name:usa-pt-in-right}html[data-usa-pt="slide-right"] ::view-transition-old(root){animation-name:usa-pt-out-right}html[data-usa-pt="slide-right"] ::view-transition-new(root){animation-name:usa-pt-in-left}html[data-usa-pt="slide-up"] ::view-transition-old(root){animation-name:usa-pt-out-up}html[data-usa-pt="slide-up"] ::view-transition-new(root){animation-name:usa-pt-in-up}html[data-usa-pt="zoom"] ::view-transition-old(root){animation-name:usa-pt-zoom-out}html[data-usa-pt="zoom"] ::view-transition-new(root){animation-name:usa-pt-zoom-in}html[data-usa-pt="circle"] ::view-transition-old(root){animation:none}html[data-usa-pt="circle"] ::view-transition-new(root){animation-name:usa-pt-circle}html[data-usa-pt="blinds"] ::view-transition-old(root){animation:none}html[data-usa-pt="blinds"] ::view-transition-new(root){animation-name:usa-pt-blinds;-webkit-mask-image:repeating-linear-gradient(to bottom,#000 0 var(--usa-blind),transparent var(--usa-blind) 10vh);mask-image:repeating-linear-gradient(to bottom,#000 0 var(--usa-blind),transparent var(--usa-blind) 10vh)}html[data-usa-pt="pixel"] ::view-transition-old(root){animation-name:usa-pt-pixel-out;animation-timing-function:steps(10,end)}html[data-usa-pt="pixel"] ::view-transition-new(root){animation-name:usa-pt-pixel-in;animation-timing-function:steps(10,end)}@property --usa-blind{syntax:"<length-percentage>";inherits:false;initial-value:0vh}@keyframes usa-pt-out-left{to{transform:translateX(-30%);opacity:0}}@keyframes usa-pt-in-right{from{transform:translateX(30%);opacity:0}}@keyframes usa-pt-out-right{to{transform:translateX(30%);opacity:0}}@keyframes usa-pt-in-left{from{transform:translateX(-30%);opacity:0}}@keyframes usa-pt-out-up{to{transform:translateY(-12%);opacity:0}}@keyframes usa-pt-in-up{from{transform:translateY(12%);opacity:0}}@keyframes usa-pt-zoom-out{to{transform:scale(0.92);opacity:0}}@keyframes usa-pt-zoom-in{from{transform:scale(1.08);opacity:0}}@keyframes usa-pt-circle{from{clip-path:circle(0 at var(--usa-pt-x,50%) var(--usa-pt-y,50%))}to{clip-path:circle(var(--usa-pt-r,150vmax) at var(--usa-pt-x,50%) var(--usa-pt-y,50%))}}@keyframes usa-pt-blinds{from{--usa-blind:0vh}to{--usa-blind:10vh}}@keyframes usa-pt-pixel-out{to{opacity:0;filter:blur(6px) contrast(1.4)}}@keyframes usa-pt-pixel-in{from{opacity:0;filter:blur(6px) contrast(1.4)}}@media (prefers-reduced-motion:reduce){::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none !important}}';let si=null;function ii(){"undefined"==typeof document||ii.done||(ii.done=!0,document.addEventListener("pointerdown",t=>si=[t.clientX,t.clientY],{capture:!0,passive:!0}))}const ai=()=>"undefined"!=typeof document&&"function"==typeof document.startViewTransition;function ri(t){const e=document.documentElement,s=window.innerWidth||1024,i=window.innerHeight||768,[a,r]=void 0!==t.x&&void 0!==t.y?[t.x,t.y]:si||[s/2,i/2],n=Math.hypot(Math.max(a,s-a),Math.max(r,i-r));e.style.setProperty("--usa-pt-x",`${a}px`),e.style.setProperty("--usa-pt-y",`${r}px`),e.style.setProperty("--usa-pt-r",`${Math.ceil(n)}px`),e.style.setProperty("--usa-pt-duration",`${t.duration??600}ms`)}async function ni(t,e={}){if("undefined"==typeof document)return void await t();p("page-transitions",ei),ii();const s=e.effect||"fade";if(d()||!ai()){await t();const s=e.fallback;return void(s&&"function"==typeof s.animate&&!d()&&await s.animate([{opacity:0},{opacity:1}],{duration:200}).finished.catch(()=>{}))}const i=document.documentElement;ri(e),i.setAttribute("data-usa-pt",s);try{const e=document.startViewTransition(()=>t());await e.finished}finally{i.removeAttribute("data-usa-pt")}}function oi(){Is(),Ys(),Bs(),Ds(),js(),Hs(),Vs(),ti()}function li(t="usa-timeline"){return b(t,t=>class extends t{constructor(){super(...arguments),this._tl=null}static get observedAttributes(){return["scrub","trigger","overlap"]}get timeline(){return this._tl}play(){return this._tl?this._tl.play(0).then(()=>{this.emit("complete")}):Promise.resolve()}reverse(){return this._tl?this._tl.reverse():Promise.resolve()}seek(t){this._tl?.seek(t)}mount(){const t=this.num("overlap",0),e=this._tl=yt({defaults:{duration:this.num("duration",600),stagger:this.num("stagger",0)}});if(this.querySelectorAll("[data-tl]").forEach((s,i)=>{s.dataset.label&&e.label(s.dataset.label);const a=s.dataset.tl||"fade";e.to(s,gt[a]?a:"fade",{at:s.dataset.at??(i&&t?`-=${t}`:void 0),duration:s.dataset.duration?Number(s.dataset.duration):void 0})}),this.onCleanup(()=>e.cancel()),this.reduced)return void e.seek(e.duration);if(this.flag("scrub")){const t=this.str("scrub"),s=e.scrub(this,{smooth:this.num("smooth",0),engine:"auto",source:"scroll"===t?"scroll":"view"});return this.toggleAttribute("data-native",s.native),void this.onCleanup(s)}const s=this.str("trigger","view");if("click"===s)return e.seek(e.duration),this.listen(this,"click",()=>{this.play()}),this.listen(this,"keydown",t=>{t.target!==this||"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.play())}),void(this.hasAttribute("tabindex")||(this.tabIndex=0));if(e.seek(0),"view"===s){let t=!1;this.inView(s=>{!s||t&&!this.flag("repeat")?!s&&this.flag("repeat")&&e.seek(0):(t=!0,this.play())},{threshold:.2})}}unmount(){this._tl=null}},{id:"timeline",text:"usa-timeline{display:block}usa-timeline[scrub]{position:relative}@media (prefers-reduced-motion:reduce){usa-timeline [data-tl]{opacity:1 !important;transform:none !important;filter:none !important;clip-path:none !important}}"})}function ci(){li()}function ui(t,e,s,i,a={}){const r=a.distance??40,n=a.velocity??300,o="x"===a.axis||"y"!==a.axis&&Math.abs(t)>=Math.abs(e),l=o?t:e,c=o?s:i;if(Math.abs(l)<r&&Math.abs(c)<2*n)return null;if(Math.abs(c)<n&&Math.abs(l)<3*r)return null;return{direction:o?l>0?"right":"left":l>0?"down":"up",velocity:Math.abs(c),dx:t,dy:e}}function di(t,e,s=1,i=.5,a=4){return t?H(s*(e/t),i,a):s}const hi=t=>"number"==typeof t.pointerId?t.pointerId:1;function pi(t,e,s={}){const i=new Map;let a,r={x:0,y:0},n={x:0,y:0,t:0},o=0,l=0,c=!1,u=null,d=1,h=!1,p=-1e9;const f=s.threshold??4,m=()=>{const[t,e]=[...i.values()];return Math.hypot(t.x-e.x,t.y-e.y)},g=t=>t.timeStamp||Date.now(),b=d=>{i.set(hi(d),{x:d.clientX,y:d.clientY});try{t.setPointerCapture?.(hi(d))}catch{}if(2===i.size&&e.onPinch)return clearTimeout(a),c&&e.onPan?.({dx:n.x-r.x,dy:n.y-r.y,vx:0,vy:0,first:!1,last:!0,event:d}),c=!1,void(u={d0:m(),first:!0});i.size>1||(r={x:d.clientX,y:d.clientY},n={...r,t:g(d)},o=l=0,h=!1,e.onLongPress&&(a=setTimeout(()=>{h=!0,e.onLongPress?.({x:r.x,y:r.y})},s.longPress??500)))},y=t=>{if(!i.has(hi(t)))return;if(i.set(hi(t),{x:t.clientX,y:t.clientY}),u&&i.size>=2){const t=(()=>{const[t,e]=[...i.values()];return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}})();return d=di(u.d0,m(),1,.05,20),e.onPinch?.({scale:d,x:t.x,y:t.y,first:u.first,last:!1}),void(u.first=!1)}const h=t.clientX-r.x,p=t.clientY-r.y,b=Math.max(1,g(t)-n.t)/1e3;if(o=(t.clientX-n.x)/b,l=(t.clientY-n.y)/b,n={x:t.clientX,y:t.clientY,t:g(t)},!c){const r="x"===s.axis?Math.abs(h):"y"===s.axis?Math.abs(p):Math.hypot(h,p);if(r<f)return;return clearTimeout(a),s.axis&&Math.abs("x"===s.axis?p:h)>r?void i.delete(hi(t)):(c=!0,void e.onPan?.({dx:"y"===s.axis?0:h,dy:"x"===s.axis?0:p,vx:o,vy:l,first:!0,last:!1,event:t}))}t.cancelable&&t.preventDefault(),e.onPan?.({dx:"y"===s.axis?0:h,dy:"x"===s.axis?0:p,vx:o,vy:l,first:!1,last:!1,event:t})},v=t=>{if(!i.has(hi(t)))return;if(i.delete(hi(t)),clearTimeout(a),u)return void(i.size<2&&(e.onPinch?.({scale:d,...r,first:!1,last:!0}),u=null,i.clear()));const f=t.clientX-r.x,m=t.clientY-r.y;if(c){c=!1,g(t)-n.t>80&&(o=l=0),e.onPan?.({dx:"y"===s.axis?0:f,dy:"x"===s.axis?0:m,vx:o,vy:l,first:!1,last:!0,event:t});const i=ui(f,m,o,l,{distance:s.swipeDistance,velocity:s.swipeVelocity,axis:s.axis});return void(i&&e.onSwipe?.(i))}if(h||"pointercancel"===t.type)return;const b={x:t.clientX,y:t.clientY},y=g(t);if(e.onDoubleTap&&y-p<300)return p=-1e9,void e.onDoubleTap(b);p=y,e.onTap?.(b)},x=t=>{if(!e.onPinch||!1===s.wheelPinch||!t.ctrlKey)return;t.preventDefault();const i=Math.exp(-t.deltaY/100);e.onPinch({scale:i,x:t.clientX,y:t.clientY,first:!0,last:!0})},w={passive:!1};return t.addEventListener("pointerdown",b),t.addEventListener("pointermove",y,w),t.addEventListener("pointerup",v),t.addEventListener("pointercancel",v),t.addEventListener("wheel",x,w),s.axis&&!t.style.touchAction?t.style.touchAction="x"===s.axis?"pan-y":"pan-x":s.axis||t.style.touchAction||!e.onPan&&!e.onPinch||(t.style.touchAction="none"),()=>{clearTimeout(a),t.removeEventListener("pointerdown",b),t.removeEventListener("pointermove",y,w),t.removeEventListener("pointerup",v),t.removeEventListener("pointercancel",v),t.removeEventListener("wheel",x,w)}}var fi='usa-swipeable{display:block;touch-action:pan-y;user-select:none;-webkit-user-select:none}usa-swipeable[axis="y"]{touch-action:pan-x}usa-swipeable>*{transform:translate3d(var(--usa-swipe,0px),0,0);opacity:calc(1 - var(--usa-swipe-p,0) * 0.5)}usa-swipeable[axis="y"]>*{transform:translate3d(0,var(--usa-swipe,0px),0)}usa-swipeable:focus-visible{outline:2px solid currentColor;outline-offset:2px}usa-pinch-zoom{display:block;overflow:hidden;touch-action:none;position:relative}usa-pinch-zoom>*{transform:translate3d(var(--usa-zoom-x,0px),var(--usa-zoom-y,0px),0) scale(var(--usa-zoom,1));transform-origin:50% 50%}usa-pinch-zoom[data-zoomed]{cursor:grab}usa-pinch-zoom:focus-visible{outline:2px solid currentColor;outline-offset:2px}';function mi(t="usa-swipeable"){return b(t,t=>class extends t{constructor(){super(...arguments),this._off=0}static get observedAttributes(){return["axis","disabled"]}get offset(){return this._off}put(t){this._off=t,this.style.setProperty("--usa-swipe",`${t}px`),this.style.setProperty("--usa-swipe-p",String(Math.min(1,Math.abs(t)/this.num("distance",120))))}swipe(t){if(!this.emit("swipe",{direction:t}))return this.reset();const e="left"===t||"up"===t?-1:1,s=e*(("y"===this.str("axis","x")?this.offsetHeight:this.offsetWidth)+80||600),i=()=>{this.emit("dismiss",{direction:t}),this.flag("dismiss")&&this.remove()};if(this.reduced)return this.put(0),i();this.setAttribute("data-gone",""),this._s=Pe({spring:"stiff",value:this._off,onUpdate:t=>this.put(t),onRest:i}),this._s.set(s,1500*e)}reset(){if(this.removeAttribute("data-gone"),this.reduced)return this.put(0);this._s.set(0)}mount(){this._s=Pe({spring:this.str("preset","default"),onUpdate:t=>this.put(t)}),this.hasAttribute("tabindex")||(this.tabIndex=0);const t="y"===this.str("axis","x"),e=()=>this.num("distance",120);this.onCleanup(pi(this,{onPan:({dx:s,dy:i,vx:a,vy:r,last:n})=>{if(this.flag("disabled"))return;const o=t?i:s;if(!n)return this._s.stop(),void(this.reduced||this.put(Math.abs(o)>e()?Math.sign(o)*(e()+.35*(Math.abs(o)-e())):o));Math.abs(o)>e()?this.swipe(t?o>0?"down":"up":o>0?"right":"left"):this.hasAttribute("data-gone")||(this.reduced?this.put(0):this._s.set(0,t?r:a))},onSwipe:({direction:e})=>{this.flag("disabled")||this.hasAttribute("data-gone")||t===("up"===e||"down"===e)&&this.swipe(e)}},{axis:t?"y":"x"})),this.listen(this,"keydown",e=>{if(this.flag("disabled"))return;const s=t?{ArrowUp:"up",ArrowDown:"down"}:{ArrowLeft:"left",ArrowRight:"right"};if("Delete"===e.key||"Backspace"===e.key)this.swipe(t?"up":"left");else{if(!s[e.key])return;this.swipe(s[e.key])}e.preventDefault()})}unmount(){this._s?.stop()}},{id:"gesture",text:fi})}function gi(t="usa-pinch-zoom"){return b(t,t=>class extends t{constructor(){super(...arguments),this._v={k:1,x:0,y:0}}get scale(){return this._v.k}paint(){const{k:t,x:e,y:s}=this._v;this.style.setProperty("--usa-zoom",String(t)),this.style.setProperty("--usa-zoom-x",`${e}px`),this.style.setProperty("--usa-zoom-y",`${s}px`),this.toggleAttribute("data-zoomed",t>1.01)}bound(t,e,s){const i=this.clientWidth*(t-1)/2,a=this.clientHeight*(t-1)/2;return{x:H(e,-i,i),y:H(s,-a,a)}}zoomTo(t){const e=H(t,this.num("min",1),this.num("max",4)),s=this.bound(e,this._v.x,this._v.y);this.reduced?(this._v={k:e,...s},this.paint()):(this._k.set(e),this._x.set(s.x),this._y.set(s.y)),this.emit("zoom",{scale:e})}mount(){const t=this.str("preset","gentle");this._k=Pe({spring:t,value:this._v.k,onUpdate:t=>(this._v.k=t,this.paint())}),this._x=Pe({spring:t,value:this._v.x,onUpdate:t=>(this._v.x=t,this.paint())}),this._y=Pe({spring:t,value:this._v.y,onUpdate:t=>(this._v.y=t,this.paint())}),this.hasAttribute("tabindex")||(this.tabIndex=0);let e=1,s=0,i=0;this.onCleanup(pi(this,{onPinch:({scale:t,first:s,last:i})=>{s&&(e=this._v.k);const a=H(e*t,.7*this.num("min",1),1.3*this.num("max",4));if(i)return this.zoomTo(a);this._k.jump(a)},onPan:({dx:t,dy:e,vx:a,vy:r,first:n,last:o})=>{if(this._v.k<=1.01)return;if(n&&(s=this._v.x,i=this._v.y),!o)return this._x.jump(s+t),void this._y.jump(i+e);const l=this.bound(this._v.k,s+t+.15*a,i+e+.15*r);this._x.set(l.x,a),this._y.set(l.y,r)},onDoubleTap:()=>this.zoomTo(this._v.k>1.01?1:this.num("double-tap",2))})),this.listen(this,"keydown",t=>{if("+"===t.key||"="===t.key)this.zoomTo(1.25*this._v.k);else if("-"===t.key)this.zoomTo(this._v.k/1.25);else{if("0"!==t.key)return;this.zoomTo(1)}t.preventDefault()}),this.paint()}unmount(){[this._k,this._x,this._y].forEach(t=>t?.stop())}},{id:"gesture",text:fi})}function bi(){mi(),gi()}const yi=/-?(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?/gi;function vi(t,e){return t.replace(yi,"#").replace(/[\s,]+/g," ").trim()===e.replace(yi,"#").replace(/[\s,]+/g," ").trim()}function xi(t,e,s){if(s<=0)return t;if(s>=1)return e;if(!vi(t,e))return s<.5?t:e;const i=e.match(yi)||[];let a=0;return t.replace(yi,t=>{const e=Number(t)+(Number(i[a++])-Number(t))*s;return String(Math.round(1e3*e)/1e3)})}const wi=t=>1-Math.pow(1-t,3);function ki(t,e,s={}){const i=t.getAttribute("d")||e,a=(s.duration??500)*c(),r=t.__usaMorph;if(r&&T(r),d()||a<=0||i===e)return t.setAttribute("d",e),Promise.resolve();const n=s.easing||wi,o=$();return new Promise(s=>{const r=()=>{const l=H(($()-o)/a,0,1);t.setAttribute("d",xi(i,e,n(l))),l<1?t.__usaMorph=C(r):(t.__usaMorph=0,s())};t.__usaMorph=C(r)})}function _i(t,e={}){const s=Array.from(t.querySelectorAll("path, line, polyline, polygon, circle, ellipse, rect"));s.forEach(t=>{t.setAttribute("pathLength","1"),t.style.strokeDasharray="1 1"});const i=H(e.stagger??0,0,.9);return t=>{const e=s.length;s.forEach((s,a)=>{const r=H((t-(e>1?a/(e-1)*i:0))/(1-i||1),0,1);s.style.strokeDashoffset=String(1-r)})}}var Ai='usa-draw{display:inline-block}usa-draw svg :is(path,line,polyline,polygon,circle,ellipse,rect){transition:fill-opacity 0.6s ease}usa-draw[fill]:not([data-drawn]) svg :is(path,polygon,circle,ellipse,rect){fill-opacity:0}usa-morph{display:inline-block;line-height:0}usa-morph svg{width:100%;height:100%;fill:currentColor}usa-morph[role="button"]{cursor:pointer}usa-mask-reveal{display:block}usa-mask-reveal[data-state="visible"]{clip-path:none !important}usa-mask-reveal[data-state="hidden"]{opacity:0}usa-anim-icon{display:inline-flex;line-height:0;vertical-align:middle}usa-anim-icon svg{overflow:visible}@media (prefers-reduced-motion:reduce){usa-mask-reveal{clip-path:none !important;opacity:1 !important}usa-draw svg *{stroke-dashoffset:0 !important}}';function Mi(t="usa-draw"){return b(t,t=>class extends t{constructor(){super(...arguments),this._set=()=>{},this._p=0,this._id=0}get progress(){return this._p}set progress(t){this._p=H(t,0,1),this._set(this._p),this.toggleAttribute("data-drawn",this._p>=1)}play(){if(T(this._id),this.reduced)return this.progress=1,void this.emit("complete");const t=this.num("duration",1600)*c(),e=$();this.progress=0;const s=()=>{this.progress=($()-e)/t,this._p<1?this._id=C(s):this.emit("complete")};this._id=C(s)}mount(){this._set=_i(this,{stagger:this.num("stagger",.2)});const t=this.str("trigger","view");if(this.reduced)this.progress=1;else{if(this.progress=0,"scrub"===t){const t=()=>{const t=this.getBoundingClientRect(),e=window.innerHeight||1;this.progress=(e-t.top)/(.6*e+.4*t.height||1)};this.listen(window,"scroll",t,{passive:!0}),t()}else if("hover"===t)this.listen(this,"pointerenter",()=>this.play());else if("click"===t)this.listen(this,"click",()=>this.play());else{let t=!1;this.inView(e=>{!e||t&&!this.flag("repeat")?!e&&this.flag("repeat")&&(this.progress=0):(t=!0,this.play())},{threshold:.3})}this.onCleanup(()=>T(this._id))}}},{id:"svg",text:Ai})}function Ei(t="usa-morph"){return b(t,t=>class extends t{constructor(){super(...arguments),this._i=0,this._path=null}static get observedAttributes(){return["paths","trigger"]}get index(){return this._i}list(){return this.str("paths").split("|").map(t=>t.trim()).filter(Boolean)}next(){const t=this.list();return!this._path||t.length<2?Promise.resolve():(this._i=(this._i+1)%t.length,this.emit("change",{index:this._i}),ki(this._path,t[this._i],{duration:this.num("duration",600)}))}mount(){let t=this.querySelector("path");t||(this.innerHTML='<svg viewBox="0 0 100 100" aria-hidden="true"><path></path></svg>',t=this.querySelector("path")),this._path=t;const e=this.list();e[0]&&this._path.setAttribute("d",e[this._i%e.length]);const s=this.str("trigger","click");if("hover"===s)this.listen(this,"pointerenter",()=>{this.next()}),this.listen(this,"pointerleave",()=>{this.next()});else if("auto"===s||"view"===s){let t;this.inView(e=>{clearInterval(t),e&&!this.reduced&&("view"!==s?t=setInterval(()=>{this.next()},this.num("interval",2e3)):this.next())}),this.onCleanup(()=>clearInterval(t))}else this.hasAttribute("tabindex")||(this.tabIndex=0),this.hasAttribute("role")||this.setAttribute("role","button"),this.listen(this,"click",()=>{this.next()}),this.listen(this,"keydown",t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.next())})}},{id:"svg",text:Ai})}const Si={circle:["circle(0% at 50% 50%)","circle(75% at 50% 50%)"],diamond:["polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%)","polygon(50% -50%, 150% 50%, 50% 150%, -50% 50%)"],wipe:["inset(0 100% 0 0)","inset(0 0% 0 0)"],"wipe-up":["inset(100% 0 0 0)","inset(0% 0 0 0)"],iris:["inset(50% 50% 50% 50% round 50%)","inset(0% 0% 0% 0% round 0%)"],star:["polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%)","polygon(50% -60%, 80% 20%, 160% 30%, 95% 85%, 115% 170%, 50% 125%, -15% 170%, 5% 85%, -60% 30%, 20% 20%)"]};function Ci(t="usa-mask-reveal"){return b(t,t=>class extends t{frames(){const t=Si[this.str("shape","circle")]||Si.circle,e=this.str("at");return e&&t[0].startsWith("circle")?[t[0].replace("50% 50%",e),t[1].replace("50% 50%",e)]:t}reveal(){const[t,e]=this.frames();this.setAttribute("data-state","revealing");const s=this.motion(this,[{clipPath:t},{clipPath:e}],{duration:this.num("duration",900),delay:this.num("delay",0),easing:Y,fill:"both"});this.style.opacity="";const i=()=>{this.setAttribute("data-state","visible"),this.emit("complete")};return s?s.finished.then(i,()=>{}):Promise.resolve(i())}mount(){if(this.reduced)return void this.setAttribute("data-state","visible");const t=()=>{this.getAnimations?.().forEach(t=>t.cancel()),this.style.opacity="0",this.setAttribute("data-state","hidden")};t(),this.onCleanup(()=>(this.style.opacity="",this.style.clipPath=""));const e=this.str("trigger","view");if("hover"===e)this.listen(this,"pointerenter",()=>{this.reveal()});else if("click"===e)this.listen(this,"click",()=>{this.reveal()});else{let e=!1;this.inView(s=>{!s||e&&!this.flag("repeat")?!s&&this.flag("repeat")&&t():(e=!0,this.reveal())},{threshold:.25})}}},{id:"svg",text:Ai})}const $i={bell:{d:"M6 16V11a6 6 0 0 1 12 0v5l2 2H4l2-2M10 20a2 2 0 0 0 4 0",duration:800,origin:"50% 10%",frames:[{rotate:"0deg"},{rotate:"18deg"},{rotate:"-14deg"},{rotate:"9deg"},{rotate:"-5deg"},{rotate:"0deg"}]},heart:{d:"M12 20s-7-4.4-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 10c0 5.6-7 10-7 10z",duration:600,frames:[{scale:1},{scale:1.3},{scale:.92},{scale:1.12},{scale:1}]},check:{d:"M4 12.5l5 5L20 6.5",duration:600,frames:[{strokeDashoffset:1},{strokeDashoffset:0}]},arrow:{d:"M4 12h15M13 6l6 6-6 6",duration:600,frames:[{translate:"0 0"},{translate:"5px 0"},{translate:"0 0"}]},star:{d:"M12 3l2.7 5.6 6.1.9-4.4 4.3 1 6.1L12 17l-5.4 2.9 1-6.1-4.4-4.3 6.1-.9z",duration:700,frames:[{rotate:"0deg",scale:1},{rotate:"72deg",scale:1.2},{rotate:"144deg",scale:1}]},gear:{d:"M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8zM12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9l2.1 2.1M17 17l2.1 2.1M4.9 19.1L7 17M17 7l2.1-2.1",duration:900,frames:[{rotate:"0deg"},{rotate:"180deg"}]},search:{d:"M10.5 4a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13zM15.5 15.5L20 20",duration:700,frames:[{rotate:"0deg"},{rotate:"-15deg"},{rotate:"10deg"},{rotate:"0deg"}]},download:{d:"M12 4v11M7 10l5 5 5-5M5 20h14",duration:700,frames:[{translate:"0 0"},{translate:"0 3px"},{translate:"0 0"}]}};function Ti(t="usa-anim-icon"){return b(t,t=>class extends t{static get observedAttributes(){return["name","size","label"]}icon(){return $i[this.str("name","heart")]||$i.heart}play(){if(this.reduced)return;const t=this.querySelector("svg"),e=this.icon(),s=void 0!==e.frames[0].strokeDashoffset?this.querySelector("path"):t;s&&this.motion(s,e.frames,{duration:e.duration,easing:"ease-in-out",iterations:"loop"===this.str("trigger")?1/0:1})}mount(){const t=this.icon(),e=this.num("size",24),s=this.str("label");this.innerHTML=`<svg viewBox="0 0 24 24" width="${e}" height="${e}" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="transform-origin:${t.origin||"50% 50%"}"${s?` role="img" aria-label="${s.replace(/"/g,"&quot;")}"`:' aria-hidden="true"'}><path d="${t.d}"${void 0!==t.frames[0].strokeDashoffset?' pathLength="1" stroke-dasharray="1"':""}></path></svg>`;const i=this.str("trigger","hover");"click"===i?this.listen(this,"click",()=>this.play()):"view"===i||"loop"===i?this.inView(t=>t&&this.play(),{threshold:.5}):(this.listen(this,"pointerenter",()=>this.play()),this.listen(this,"focusin",()=>this.play()))}},{id:"svg",text:Ai})}function zi(){Mi(),Ei(),Ci(),Ti()}const Pi={gradient:"void main(){vec2 u=v_uv;float t=u_time*.15;vec3 a=vec3(.39,.4,.95),b=vec3(.93,.29,.6),c=vec3(.13,.83,.93);float k=.5+.5*sin(u.x*3.+t*2.)*cos(u.y*2.-t);vec3 col=mix(mix(a,b,u.x+.2*sin(t)),c,k*.6);gl_FragColor=vec4(col,1.);}",plasma:"void main(){vec2 u=v_uv*4.;float t=u_time*.6;float v=sin(u.x+t)+sin(u.y+t*.7)+sin(u.x+u.y+t*.5)+sin(length(u-2.+vec2(sin(t),cos(t)))*2.);vec3 col=.5+.5*cos(v+vec3(0.,2.,4.));gl_FragColor=vec4(col,1.);}",waves:"void main(){vec2 u=v_uv;float t=u_time*.4;float w=0.;for(int i=0;i<4;i++){float f=float(i)+1.;w+=sin(u.x*6.*f+t*f)*.08/f;}float l=smoothstep(.0,.02,abs(u.y-.5-w));vec3 col=mix(vec3(.2,.5,1.),vec3(.04,.06,.15),l)+vec3(.1,.0,.2)*u.y;gl_FragColor=vec4(col,1.);}",aurora:"void main(){vec2 u=v_uv;float t=u_time*.2;float b=0.;for(int i=0;i<3;i++){float f=float(i);b+=.4/abs((u.y-.6+.15*sin(u.x*3.+t+f*1.7))*(8.+f*4.));}vec3 col=vec3(.02,.03,.08)+b*mix(vec3(.1,.9,.6),vec3(.6,.3,1.),u.x)*.35;gl_FragColor=vec4(col,1.);}",distort:"void main(){vec2 u=v_uv;vec2 d=u-u_mouse;float r=length(d);float k=u_hover*.08*exp(-r*r*18.);u-=normalize(d+1e-4)*k;float s=u_hover*.006;vec3 col=vec3(texture2D(u_tex,u+vec2(s,0.)).r,texture2D(u_tex,u).g,texture2D(u_tex,u-vec2(s,0.)).b);gl_FragColor=vec4(col,1.);}",snow:"float h(vec2 p){return fract(sin(dot(p,vec2(127.1,311.7)))*43758.5453);}void main(){vec2 u=v_uv;u.x*=u_resolution.x/max(u_resolution.y,1.);vec3 col=mix(vec3(.05,.08,.16),vec3(.12,.16,.3),v_uv.y);for(int l=0;l<3;l++){float s=8.+float(l)*7.;vec2 q=u*s;q.y+=u_time*(.6+float(l)*.35);q.x+=sin(q.y*.7+float(l))*.3;vec2 id=floor(q);vec2 f=fract(q)-.5;float r=h(id);if(r>.6){vec2 o=vec2(h(id+3.)-.5,h(id+7.)-.5)*.6;float d=length(f-o);col+=smoothstep(.09-float(l)*.02,0.,d)*(.5+.5*r);}}gl_FragColor=vec4(col,1.);}",fireflies:"float h(vec2 p){return fract(sin(dot(p,vec2(127.1,311.7)))*43758.5453);}void main(){vec2 u=v_uv;u.x*=u_resolution.x/max(u_resolution.y,1.);vec3 col=vec3(.02,.04,.03);for(int l=0;l<2;l++){vec2 q=u*(5.+float(l)*4.);vec2 id=floor(q);vec2 f=fract(q)-.5;float r=h(id+float(l)*13.);vec2 o=.35*vec2(sin(u_time*(.4+r)+r*6.28),cos(u_time*(.3+r)+r*12.));float d=length(f-o);float tw=.5+.5*sin(u_time*3.*r+r*20.);col+=vec3(1.,.85,.3)*smoothstep(.12,0.,d)*tw*step(.45,r);}gl_FragColor=vec4(col,1.);}",stars:"float h(vec2 p){return fract(sin(dot(p,vec2(127.1,311.7)))*43758.5453);}void main(){vec2 c=v_uv-.5;c.x*=u_resolution.x/max(u_resolution.y,1.);vec3 col=vec3(.01,.01,.04);for(int l=0;l<4;l++){float z=fract(float(l)*.25+u_time*.05);float sc=mix(20.,.5,z);vec2 q=c*sc+float(l)*7.;vec2 id=floor(q);vec2 f=fract(q)-.5;float r=h(id);float d=length(f-(vec2(h(id+1.),h(id+2.))-.5)*.7);col+=vec3(.8,.9,1.)*smoothstep(.06,0.,d)*step(.8,r)*smoothstep(0.,.5,z)*smoothstep(1.,.8,z)*2.;}gl_FragColor=vec4(col,1.);}",bokeh:"float h(vec2 p){return fract(sin(dot(p,vec2(127.1,311.7)))*43758.5453);}void main(){vec2 u=v_uv;u.x*=u_resolution.x/max(u_resolution.y,1.);vec3 col=mix(vec3(.08,.03,.12),vec3(.02,.05,.12),v_uv.y);for(int l=0;l<3;l++){vec2 q=u*(2.5+float(l)*1.5);q.y-=u_time*.05*(1.+float(l));vec2 id=floor(q);vec2 f=fract(q)-.5;float r=h(id+float(l)*5.);float d=length(f-(vec2(h(id+4.),h(id+9.))-.5)*.5);vec3 tint=.5+.5*cos(r*6.28+vec3(0.,2.,4.));col+=tint*smoothstep(.3,.26,d)*.18*step(.35,r);}gl_FragColor=vec4(col,1.);}",rain:"float h(float n){return fract(sin(n)*43758.5453);}void main(){vec2 u=v_uv;vec3 col=mix(vec3(.04,.06,.1),vec3(.1,.13,.2),u.y);float n=floor(u.x*120.);float sp=.8+h(n)*1.2;float y=fract(u.y+u_time*sp+h(n+1.));float drop=smoothstep(.0,.08,y)*smoothstep(.16,.08,y)*step(.7,h(n+2.));col+=vec3(.5,.6,.8)*drop*.6;gl_FragColor=vec4(col,1.);}",liquid:"void main(){vec2 u=v_uv;vec2 o=vec2(0.);for(int i=0;i<4;i++){vec4 r=u_ripples[i];if(r.w>0.){float d=distance(u,r.xy);float w=sin(d*60.-r.z*12.)*exp(-d*6.)*exp(-r.z*1.6)*r.w*.02;o+=normalize(u-r.xy+1e-4)*w;}}o+=vec2(sin(u.y*10.+u_time),cos(u.x*10.+u_time))*.002*u_hover;gl_FragColor=texture2D(u_tex,u+o);}"};function Fi(t){const e=Pi[t]||t;return/precision\s+\w+\s+float/.test(e)?e:"precision mediump float;varying vec2 v_uv;uniform float u_time;uniform vec2 u_resolution;uniform vec2 u_mouse;uniform float u_hover;uniform sampler2D u_tex;uniform vec4 u_ripples[4];\n"+e}let Li;function qi(t,e){let s=null;try{s=t.getContext("webgl",{premultipliedAlpha:!1,antialias:!1})}catch{s=null}if(!s)return null;const i=s,a=(t,e)=>{const s=i.createShader(t);return i.shaderSource(s,e),i.compileShader(s),i.getShaderParameter(s,i.COMPILE_STATUS)?s:null},r=a(i.VERTEX_SHADER,"attribute vec2 p;varying vec2 v_uv;void main(){v_uv=p*.5+.5;gl_Position=vec4(p,0.,1.);}"),n=a(i.FRAGMENT_SHADER,Fi(e));if(!r||!n)return null;const o=i.createProgram();if(i.attachShader(o,r),i.attachShader(o,n),i.linkProgram(o),!i.getProgramParameter(o,i.LINK_STATUS))return null;i.useProgram(o);const l=i.createBuffer();i.bindBuffer(i.ARRAY_BUFFER,l),i.bufferData(i.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,-1,1,1,-1,1,1]),i.STATIC_DRAW);const c=i.getAttribLocation(o,"p");i.enableVertexAttribArray(c),i.vertexAttribPointer(c,2,i.FLOAT,!1,0,0);const u=t=>i.getUniformLocation(o,t),d=u("u_time"),h=u("u_resolution"),p=u("u_mouse"),f=u("u_hover"),m=u("u_ripples");let g=null;const b={},y={resize(e=1){const s=Math.min(2,"number"==typeof devicePixelRatio&&devicePixelRatio||1)*Math.min(1,Math.max(.25,e)),a=Math.max(1,Math.round((t.clientWidth||300)*s)),r=Math.max(1,Math.round((t.clientHeight||150)*s));t.width===a&&t.height===r||(t.width=a,t.height=r),i.viewport(0,0,a,r)},texture(t){g=g||i.createTexture(),i.bindTexture(i.TEXTURE_2D,g),i.pixelStorei(i.UNPACK_FLIP_Y_WEBGL,!0),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.LINEAR),i.texImage2D(i.TEXTURE_2D,0,i.RGBA,i.RGBA,i.UNSIGNED_BYTE,t)},render(e){if(i.uniform1f(d,e.time??0),i.uniform2f(h,t.width,t.height),i.uniform2f(p,...e.mouse??[.5,.5]),i.uniform1f(f,e.hover??0),m&&i.uniform4fv(m,new Float32Array((e.ripples??[]).concat(Array(16).fill(0)).slice(0,16))),e.extra)for(const[t,s]of Object.entries(e.extra))i.uniform1f(b[t]??(b[t]=u(t)),s);i.drawArrays(i.TRIANGLES,0,6)},dispose(){i.deleteProgram(o),i.deleteBuffer(l),g&&i.deleteTexture(g),i.getExtension("WEBGL_lose_context")?.loseContext()}};return y.resize(),y}const Ri={vignette:"c*=mix(1.,smoothstep(.85,.25,length(uv-.5)),u_intensity);",grain:"c+=(fract(sin(dot(uv*u_resolution+u_time,vec2(12.9898,78.233)))*43758.5453)-.5)*.18*u_intensity;",chromatic:"float s=.008*u_intensity;c=vec3(texture2D(u_tex,uv+vec2(s,0.)).r,c.g,texture2D(u_tex,uv-vec2(s,0.)).b);",scanlines:"c*=1.-.25*u_intensity*step(.5,fract(uv.y*u_resolution.y*.5));",crt:"vec2 d=uv-.5;float r=dot(d,d);c*=1.-.6*u_intensity*r;c*=.92+.08*sin(uv.y*u_resolution.y*3.14159);c.r*=1.+.05*u_intensity;",bloom:"vec3 b=vec3(0.);for(int i=0;i<8;i++){float a=float(i)*.785;b+=max(texture2D(u_tex,uv+vec2(cos(a),sin(a))*.012).rgb-.6,0.);}c+=b*.35*u_intensity;",pixelate:"float px=mix(1.,48.,u_intensity);vec2 g=floor(uv*u_resolution/px)*px/u_resolution;c=texture2D(u_tex,g+.5*px/u_resolution).rgb;",duotone:"float l=dot(c,vec3(.299,.587,.114));c=mix(c,mix(vec3(.12,.05,.35),vec3(1.,.55,.4),l),u_intensity);",glitch:"float k=step(.97,fract(sin(floor(uv.y*24.)+floor(u_time*6.))*4375.5));c=mix(c,texture2D(u_tex,uv+vec2(k*.04*u_intensity,0.)).rgb,k);"};function Ii(t){return`uniform float u_intensity;void main(){vec2 uv=v_uv;vec3 c=texture2D(u_tex,uv).rgb;${t.filter(t=>Ri[t]).map(t=>`{${Ri[t]}}`).join("")}gl_FragColor=vec4(clamp(c,0.,1.),1.);}`}const Ni={gradient:"linear-gradient(120deg,#6366f1,#ec4899 50%,#22d3ee)",plasma:"conic-gradient(from 90deg,#f43f5e,#a855f7,#06b6d4,#f43f5e)",waves:"linear-gradient(#0a0f26,#1e3a8a)",aurora:"radial-gradient(120% 60% at 30% 40%,#10b98155,transparent),radial-gradient(100% 50% at 70% 50%,#8b5cf655,transparent),#05070f",snow:"radial-gradient(2px 2px at 20% 30%,#fff,transparent),radial-gradient(2px 2px at 70% 60%,#fff,transparent),radial-gradient(1.5px 1.5px at 40% 80%,#fff,transparent),linear-gradient(#0d1428,#1f2a4d)",fireflies:"radial-gradient(3px 3px at 25% 40%,#fde68a,transparent),radial-gradient(3px 3px at 65% 70%,#fde68a,transparent),#05090a",stars:"radial-gradient(1px 1px at 10% 20%,#fff,transparent),radial-gradient(1px 1px at 80% 30%,#fff,transparent),radial-gradient(1.5px 1.5px at 50% 70%,#cfe0ff,transparent),#02020a",bokeh:"radial-gradient(40px 40px at 30% 40%,#f472b633,transparent),radial-gradient(60px 60px at 70% 60%,#60a5fa33,transparent),#140820",rain:"repeating-linear-gradient(100deg,#ffffff10 0 1px,transparent 1px 14px),linear-gradient(#0a0f1a,#1a2133)","post:duotone":"grayscale(1) sepia(.6) hue-rotate(220deg) saturate(2)","post:vignette":"brightness(.95) contrast(1.05)","post:crt":"contrast(1.15) saturate(1.2)","post:bloom":"brightness(1.08) saturate(1.15)"};function Yi(t,e=!1){return e?t.split(/\s+/).map(t=>Ni[`post:${t}`]).filter(Boolean).join(" "):Ni[t]||Ni.gradient}function Bi(t={}){const{minFps:e=40,saverFps:s=30}=t,i=[1,.5,.35];let a=0,r=0,n=-1,o=-1/0,l=0,c=0,u=60;const d={saver:!1,get scale(){return Math.min(i[a],d.saver?.6:1)},get fps(){return u},tick(t){if(n<0&&(n=t),d.saver&&t-o<1e3/s-1)return!1;if(o=t,r++,t-n>=1e3){u=Math.round(1e3*r/(t-n)),r=0,n=t;const s=d.scale;u<e&&!d.saver?(c=0,++l>=2&&a<i.length-1&&(a++,l=0)):(l=0,++c>=5&&a>0&&(a--,c=0)),d.scale!==s&&d.onScale?.(d.scale)}return!0}};return d}function Oi(t){let e=!1;const s="undefined"!=typeof navigator?navigator:{},i=!!s.connection?.saveData;if(i&&t(!0),"function"!=typeof s.getBattery)return()=>{};let a=null;const r=()=>!e&&t(i||!!a&&!a.charging&&a.level<=.2);return s.getBattery().then(t=>{a=t,r(),t.addEventListener?.("levelchange",r),t.addEventListener?.("chargingchange",r)},()=>{}),()=>{e=!0,a?.removeEventListener?.("levelchange",r),a?.removeEventListener?.("chargingchange",r)}}var Xi="usa-shader,usa-distort,usa-liquid,usa-post-fx{display:block;position:relative;isolation:isolate;overflow:hidden}usa-shader{background:linear-gradient(120deg,#6366f1,#ec4899 50%,#22d3ee)}usa-shader>canvas.usa-gl{position:absolute;inset:0;width:100%;height:100%;z-index:-1;display:block}usa-distort>canvas.usa-gl,usa-liquid>canvas.usa-gl{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none}usa-distort>img,usa-liquid>img{display:block;width:100%;height:auto}usa-distort[data-active]>img,usa-liquid[data-active]>img{visibility:hidden}usa-distort[data-fallback]>img{transition:transform 0.6s cubic-bezier(0.22,1,0.36,1),filter 0.6s}usa-distort[data-fallback]:hover>img{transform:scale(1.04);filter:saturate(1.2)}@media (prefers-reduced-motion:reduce){usa-distort[data-fallback]:hover>img{transform:none}}usa-shader[data-fallback]{background:var(--usa-gl-fallback,linear-gradient(120deg,#6366f1,#ec4899 50%,#22d3ee))}usa-post-fx>canvas.usa-gl{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none}usa-post-fx>img{display:block;width:100%;height:auto}usa-post-fx[data-active]>img{visibility:hidden}usa-post-fx[data-fallback]>img{filter:var(--usa-gl-filter,none)}";function Di(t){return e=>class extends e{constructor(){super(...arguments),this._q=null,this._c=null,this._id=0,this._mouse=[.5,.5],this._hover=0,this._hoverTo=0,this._ripples=[],this._scale=1}static get observedAttributes(){return"shader"===t?["preset","speed","quality"]:"post"===t?["effects","intensity","quality"]:["src"]}get active(){return!!this._q}fallback(e){this.setAttribute("data-fallback",e),"off"!==e&&("shader"===t&&this.style.setProperty("--usa-gl-fallback",Yi(this.str("preset","gradient"))),"post"===t&&this.style.setProperty("--usa-gl-filter",Yi(this.str("effects","vignette grain"),!0)||"none")),this._c?.remove(),this._c=null,this._q?.dispose(),this._q=null}frame(){const e=this._q;if(!e)return;this._hover+=.12*(this._hoverTo-this._hover);const s=$();this._ripples=this._ripples.filter(t=>s-t.t<2500),e.render({time:s/1e3*this.num("speed",1),mouse:this._mouse,hover:this._hover,ripples:this._ripples.flatMap(t=>[t.x,t.y,(s-t.t)/1e3,this.num("strength",1)]),extra:"post"===t?{u_intensity:H(this.num("intensity",.6),0,1)}:void 0})}mount(){this.removeAttribute("data-fallback");const e=this.querySelector('script[type="x-shader/x-fragment"]'),s="shader"===t?e?.textContent||this.str("preset","gradient"):"post"===t?Ii(this.str("effects","vignette grain").split(/[\s,]+/)):t,i="shader"===t?null:this.querySelector("img");if("shader"!==t&&!i)return this.fallback("no-image");const a=this._c=document.createElement("canvas");a.setAttribute("aria-hidden","true"),a.className="usa-gl",this.prepend(a);const r=this._q=qi(a,s);if(!r)return this.fallback("webgl");this.onCleanup(()=>this.fallback("off"));const n=()=>{if(!i)return!0;try{return r.texture(i),!0}catch{return this.fallback("image"),!1}},o=()=>{r.resize(this._scale),this.frame()};if(!i||i.complete&&i.naturalWidth){if(!n())return}else i.crossOrigin||!/^https?:/.test(i.src)||i.src.startsWith(location.origin)||(i.crossOrigin="anonymous"),this.listen(i,"load",()=>n()&&o()),this.listen(i,"error",()=>this.fallback("image"));if(this.setAttribute("data-active",""),this.onCleanup(()=>this.removeAttribute("data-active")),o(),"distort"===t||"liquid"===t){const e=t=>{const e=this.getBoundingClientRect();this._mouse=[H((t.clientX-e.left)/(e.width||1),0,1),H(1-(t.clientY-e.top)/(e.height||1),0,1)]};this.listen(this,"pointermove",e),this.listen(this,"pointerenter",t=>(e(t),this._hoverTo=1)),this.listen(this,"pointerleave",()=>this._hoverTo=0),"liquid"===t&&this.listen(this,"pointerdown",t=>{e(t),this._ripples=[...this._ripples.slice(-3),{x:this._mouse[0],y:this._mouse[1],t:$()}]})}if("undefined"!=typeof ResizeObserver){const t=new ResizeObserver(()=>{r.resize(this._scale),this._id||this.frame()});t.observe(this),this.onCleanup(()=>t.disconnect())}if(this.reduced)return;const l=Bi(),c="high"!==this.str("quality","auto");l.onScale=t=>{this._scale=t,this.setAttribute("data-quality",String(t)),r.resize(t)},c&&this.onCleanup(Oi(t=>(l.saver=t,l.onScale?.(l.scale))));let u=!1;const d=()=>{c&&!l.tick($())||this.frame(),this._id=C(d)},h=()=>{T(this._id),this._id=0,u&&!document.hidden&&(this._id=C(d))};this.inView(t=>(u=t,h())),this.listen(document,"visibilitychange",h),this.listen(window,"resize",()=>r.resize(this._scale),{passive:!0}),this.onCleanup(()=>T(this._id))}}}function ji(t="usa-shader"){return b(t,Di("shader"),{id:"webgl",text:Xi})}function Hi(t="usa-distort"){return b(t,Di("distort"),{id:"webgl",text:Xi})}function Vi(t="usa-liquid"){return b(t,Di("liquid"),{id:"webgl",text:Xi})}function Ui(t="usa-post-fx"){return b(t,Di("post"),{id:"webgl",text:Xi})}function Wi(){ji(),Hi(),Vi(),Ui()}var Gi='usa-cube{--usa-cube-size:200px;display:block;width:var(--usa-cube-size);height:var(--usa-cube-size);perspective:var(--usa-cube-perspective,900px);touch-action:pan-y;user-select:none;-webkit-user-select:none;position:relative}usa-cube>[data-face]{position:absolute;inset:0;backface-visibility:hidden;transform:translateZ(calc(var(--usa-cube-size) / -2)) rotateX(var(--usa-cube-rx,0deg)) rotateY(var(--usa-cube-ry,0deg)) var(--usa-face) translateZ(calc(var(--usa-cube-size) / 2));transform-origin:50% 50%}usa-cube>[data-face="front"]{--usa-face:rotateY(0deg)}usa-cube>[data-face="right"]{--usa-face:rotateY(90deg)}usa-cube>[data-face="back"]{--usa-face:rotateY(180deg)}usa-cube>[data-face="left"]{--usa-face:rotateY(-90deg)}usa-cube>[data-face="top"]{--usa-face:rotateX(90deg)}usa-cube>[data-face="bottom"]{--usa-face:rotateX(-90deg)}usa-cube:focus-visible{outline:2px solid currentColor;outline-offset:6px}usa-depth{display:block;position:relative;perspective:1000px}usa-depth>*{transform:var(--usa-depth-rot,none);transform-style:preserve-3d}usa-depth [data-depth]{will-change:transform;transition:transform 0.12s linear}@media (prefers-reduced-motion:reduce){usa-depth [data-depth]{transform:none !important}}';const Ki=["front","right","back","left","top","bottom"],Ji={front:[0,0],right:[0,-90],back:[0,-180],left:[0,90],top:[-90,0],bottom:[90,0]};function Zi(t="usa-cube"){return b(t,t=>class extends t{constructor(){super(...arguments),this._i=0,this._base=[0,0]}static get observedAttributes(){return["size","autoplay"]}get index(){return this._i}faces(){return Array.from(this.children).filter(t=>t instanceof HTMLElement&&!t.hasAttribute("slot")).slice(0,6)}paint(){this.style.setProperty("--usa-cube-rx",`${this._rx.value}deg`),this.style.setProperty("--usa-cube-ry",`${this._ry.value}deg`)}show(t){const e=this.faces().length||1,s="number"==typeof t?(t%e+e)%e:Math.max(0,Ki.indexOf(t));this._i=s;const[i,a]=Ji[Ki[s]],r=this._ry.target,n=a+360*Math.round((r-a)/360);this._base=[i,n],this.reduced?(this._rx.jump(i),this._ry.jump(n)):(this._rx.set(i),this._ry.set(n)),this.faces().forEach((t,e)=>t.setAttribute("aria-hidden",String(e!==s))),this.emit("change",{index:s,face:Ki[s]})}next(){this.show(this._i+1)}prev(){this.show(this._i-1)}mount(){this.style.setProperty("--usa-cube-size",`${this.num("size",200)}px`),this.style.setProperty("--usa-cube-perspective",`${this.num("perspective",900)}px`),this.faces().forEach((t,e)=>t.setAttribute("data-face",Ki[e])),this.hasAttribute("tabindex")||(this.tabIndex=0),this.hasAttribute("role")||this.setAttribute("role","region"),this.hasAttribute("aria-roledescription")||this.setAttribute("aria-roledescription","cube"),this._rx=Pe({spring:"gentle",onUpdate:()=>this.paint()}),this._ry=Pe({spring:"gentle",onUpdate:()=>this.paint()}),this.show(this._i),this.paint(),this.onCleanup(pi(this,{onPan:({dx:t,dy:e,last:s})=>{if(!this.reduced)return s?Math.abs(t)>40&&Math.abs(t)>=Math.abs(e)?t<0?this.next():this.prev():Math.abs(e)>40&&this.faces().length>4?this.show(e<0?"bottom":"top"):void this.show(this._i):(this._ry.jump(this._base[1]+.5*t),void this._rx.jump(this._base[0]-.5*e))}})),this.listen(this,"keydown",t=>{const e={ArrowRight:()=>this.next(),ArrowLeft:()=>this.prev(),ArrowUp:()=>this.show("bottom"),ArrowDown:()=>this.show("top"),Home:()=>this.show(0)};!e[t.key]||("ArrowUp"===t.key||"ArrowDown"===t.key)&&this.faces().length<6||(t.preventDefault(),e[t.key]())});const t=this.num("autoplay",0);if(t>0&&!this.reduced){let e=!1;const s=setInterval(()=>!e&&this.show((this._i+1)%Math.min(4,this.faces().length||1)),t);this.listen(this,"pointerenter",()=>e=!0),this.listen(this,"pointerleave",()=>e=!1),this.listen(this,"focusin",()=>e=!0),this.listen(this,"focusout",()=>e=!1),this.onCleanup(()=>clearInterval(s))}}unmount(){this._rx?.stop(),this._ry?.stop()}},{id:"depth",text:Gi})}function Qi(t,e,s=30,i=45){return{x:H((e??0)/s,-1,1),y:H(((t??i)-i)/s,-1,1)}}const ta=()=>"undefined"!=typeof window&&"DeviceOrientationEvent"in window;async function ea(){if(!ta())return!1;const t=window.DeviceOrientationEvent;if("function"!=typeof t.requestPermission)return!0;try{return"granted"===await t.requestPermission()}catch{return!1}}function sa(t,e={}){if(!ta())return()=>{};let s={x:0,y:0};const i=1-H(e.smooth??.2,0,.95),a=a=>{const r=Qi(a.beta,a.gamma,e.range??30);s={x:s.x+(r.x-s.x)*i,y:s.y+(r.y-s.y)*i},t(s)};return window.addEventListener("deviceorientation",a),()=>window.removeEventListener("deviceorientation",a)}function ia(t="usa-depth"){return b(t,t=>class extends t{constructor(){super(...arguments),this._t={x:0,y:0},this._id=0}static get observedAttributes(){return["source","strength","rotate"]}get tilt(){return{...this._t}}requestPermission(){return ea().then(t=>(t&&this.changed("source"),t))}apply(){this._id=0;const t=this.num("strength",40),e=this.num("rotate",0),{x:s,y:i}=this._t;this.style.setProperty("--usa-depth-x",s.toFixed(4)),this.style.setProperty("--usa-depth-y",i.toFixed(4)),e&&this.style.setProperty("--usa-depth-rot",`rotateX(${(-i*e).toFixed(2)}deg) rotateY(${(s*e).toFixed(2)}deg)`),this.querySelectorAll("[data-depth]").forEach(e=>{const a=H(Number(e.dataset.depth)||0,-1,1);e.style.transform=`translate3d(${(s*a*t).toFixed(2)}px, ${(i*a*t).toFixed(2)}px, 0) scale(${(1+.04*a).toFixed(4)})`})}set(t,e){this._t={x:H(t,-1,1),y:H(e,-1,1)},this._id||(this._id=C(()=>this.apply()))}mount(){if(this.reduced)return;const t=this.str("source","pointer").split(/\s+/);if(t.includes("pointer")&&(this.listen(this,"pointermove",t=>{const e=this.getBoundingClientRect();this.set((t.clientX-e.left)/(e.width||1)*2-1,(t.clientY-e.top)/(e.height||1)*2-1)}),this.listen(this,"pointerleave",()=>this.set(0,0))),t.includes("orientation")&&ta()&&this.onCleanup(sa(t=>this.set(t.x,t.y))),t.includes("scroll")){const t=()=>{const t=this.getBoundingClientRect(),e=window.innerHeight||1;this.set(this._t.x,H((t.top+t.height/2)/e*2-1,-1,1))};this.listen(window,"scroll",t,{passive:!0}),t()}this.onCleanup(()=>{T(this._id),this._id=0})}unmount(){this._t={x:0,y:0},this.querySelectorAll("[data-depth]").forEach(t=>t.style.transform="")}},{id:"depth",text:Gi})}function aa(){Zi(),ia()}function ra(t,e,s=!0){return[{transformOrigin:"0 0",transform:`translate(${t.left-e.left}px, ${t.top-e.top}px) scale(${s&&e.width?t.width/e.width:1}, ${s&&e.height?t.height/e.height:1})`},{transformOrigin:"0 0",transform:"none"}]}function na(t,e={}){let s=!0;const i=new WeakMap,a=e=>{const s=e.getBoundingClientRect(),i=t.getBoundingClientRect();return{left:s.left-i.left,top:s.top-i.top,width:s.width,height:s.height}},r=()=>Array.from(t.children).forEach(t=>i.set(t,a(t))),n=()=>(e.duration??300)*c(),o=(t,s,i=(()=>({duration:n(),easing:e.easing??Y}))())=>"function"==typeof t.animate?t.animate(s,i):null,l="function"==typeof MutationObserver?new MutationObserver(l=>{if(!s||d()||n()<=0)return r();const c=new Set;for(const e of l)e.addedNodes.forEach(e=>e instanceof Element&&e.parentElement===t&&c.add(e)),e.removedNodes.forEach(e=>{if(!(e instanceof HTMLElement)||e.isConnected)return;const s=i.get(e);if(!s)return;e.style.position="absolute",e.style.left=`${s.left}px`,e.style.top=`${s.top}px`,e.style.width=`${s.width}px`,e.style.height=`${s.height}px`,e.style.margin="0",e.style.pointerEvents="none","static"===getComputedStyle(t).position&&(t.style.position="relative"),t.appendChild(e),e.__usaGhost=!0;const a=o(e,[{opacity:1,transform:"none"},{opacity:0,transform:"scale(0.96)"}]),r=()=>{e.remove();for(const t of["position","left","top","width","height","margin","pointerEvents"])e.style[t]=""};a?a.finished.then(r,r):r()});Array.from(t.children).forEach(t=>{if(t.__usaGhost)return;if(c.has(t))return void o(t,[{opacity:0,transform:"scale(0.96)"},{opacity:1,transform:"none"}]);const s=i.get(t);if(!s)return;const r=a(t);Math.abs(s.left-r.left)+Math.abs(s.top-r.top)+Math.abs(s.width-r.width)+Math.abs(s.height-r.height)<1||o(t,ra(s,r,!1!==e.scale))}),r()}):null;l?.observe(t,{childList:!0});const u="function"==typeof ResizeObserver?new ResizeObserver(()=>r()):null;u?.observe(t),r();const h=()=>r();return t.addEventListener("pointerdown",h,!0),{enable:()=>(s=!0,r()),disable:()=>s=!1,stop:()=>{l?.disconnect(),u?.disconnect(),t.removeEventListener("pointerdown",h,!0)}}}function oa(t,e,s,i){const a=Array(Math.max(1,e)).fill(0),r=t.map(t=>{const e=a.indexOf(Math.min(...a)),r={x:e*(s+i),y:a[e]};return a[e]+=t+i,r});return r.height=Math.max(0,Math.max(...a)-i),r}var la="usa-auto-animate{display:block}usa-masonry{display:block;column-width:220px;column-gap:16px}usa-masonry>*{break-inside:avoid;margin-bottom:16px}usa-masonry[data-js]{position:relative;columns:auto}usa-masonry[data-js]>*{position:absolute;left:0;top:0;margin:0;box-sizing:border-box;transition:transform 0.45s cubic-bezier(0.22,1,0.36,1)}@media (prefers-reduced-motion:reduce){usa-masonry[data-js]>*{transition:none}}";function ca(t="usa-auto-animate"){return b(t,t=>class extends t{constructor(){super(...arguments),this._c=null}enable(){this._c?.enable()}disable(){this._c?.disable()}mount(){const t=this._c=na(this,{duration:this.num("duration",300),scale:!this.flag("no-scale")});this.onCleanup(()=>t.stop())}},{id:"layout",text:la})}function ua(t="usa-masonry"){return b(t,t=>class extends t{static get observedAttributes(){return["columns","min","gap"]}changed(){this.layout()}layout(){const t=Array.from(this.children).filter(t=>!t.__usaGhost),e=this.clientWidth;if(!e)return;const s=this.num("gap",16),i=this.num("columns",0)||Math.max(1,Math.floor((e+s)/(this.num("min",220)+s))),a=(e-s*(i-1))/i;t.forEach(t=>t.style.width=`${a}px`);const r=oa(t.map(t=>t.offsetHeight),i,a,s);t.forEach((t,e)=>t.style.transform=`translate(${r[e].x}px, ${r[e].y}px)`),this.style.height=`${r.height}px`,this.style.setProperty("--usa-masonry-cols",String(i))}mount(){this.setAttribute("data-js",""),this.onCleanup(()=>this.removeAttribute("data-js"));let t=0;const e=()=>{t||(t=requestAnimationFrame(()=>{t=0,this.layout()}))};if("function"==typeof ResizeObserver){const t=new ResizeObserver(e);t.observe(this),Array.from(this.children).forEach(e=>t.observe(e));const s=new MutationObserver(s=>{s.forEach(e=>e.addedNodes.forEach(e=>e instanceof Element&&t.observe(e))),e()});s.observe(this,{childList:!0}),this.onCleanup(()=>(t.disconnect(),s.disconnect()))}this.listen(this,"load",e,{capture:!0}),this.layout()}unmount(){this.style.height="",Array.from(this.children).forEach(t=>(t.style.transform="",t.style.width=""))}},{id:"layout",text:la})}function da(){ca(),ua()}const ha=(t,e,s)=>{if("function"!=typeof t.animate)return null;const i=c();return t.animate(e,{...s,duration:(s.duration??400)*i,delay:(s.delay??0)*i})},pa=(t,e,s)=>(t.addEventListener(e,s),()=>t.removeEventListener(e,s)),fa=(t,e)=>{if("undefined"==typeof IntersectionObserver)return void e();const s=new IntersectionObserver(t=>t.some(t=>t.isIntersecting)&&(s.disconnect(),e()),{threshold:.15});return s.observe(t),()=>s.disconnect()};function ma(t,e=1200){const s=t.textContent||"",i=/(-?[\d,]*\.?\d+)/.exec(s);if(!i||d())return()=>{};const a=Number(i[1].replace(/,/g,"")),r=(i[1].split(".")[1]||"").length,n=t=>s.replace(i[1],t.toLocaleString("en-US",{minimumFractionDigits:r,maximumFractionDigits:r}));t.setAttribute("aria-label",s.trim()),t.textContent=n(0);let o=!1;const l=fa(t,()=>{const s=$(),i=e*c()||1,r=()=>{if(o)return;const e=H(($()-s)/i,0,1);t.textContent=n(a*(1-Math.pow(1-e,3))),e<1&&C(r)};C(r)});return()=>{o=!0,l(),t.textContent=s}}async function ga(t,e,s={}){if(d()||"undefined"==typeof document)return;const i=t.getBoundingClientRect(),a=e.getBoundingClientRect(),r=t.cloneNode(!0);r.setAttribute("aria-hidden","true"),Object.assign(r.style,{position:"fixed",left:`${i.left}px`,top:`${i.top}px`,width:`${i.width}px`,height:`${i.height}px`,margin:"0",zIndex:"2147483000",pointerEvents:"none"}),document.body.appendChild(r);const n=a.left+a.width/2-(i.left+i.width/2),o=a.top+a.height/2-(i.top+i.height/2),l=ha(r,[{transform:"translate(0, 0) scale(1)",opacity:1},{transform:`translate(${.5*n}px, ${.5*o-80}px) scale(0.6)`,opacity:.9,offset:.5},{transform:`translate(${n}px, ${o}px) scale(0.15)`,opacity:.4}],{duration:s.duration??700,easing:"cubic-bezier(0.5, 0, 0.5, 1)"});await(l?.finished.catch(()=>{})),r.remove(),ha(e,[{transform:"scale(1)"},{transform:"scale(1.3)"},{transform:"scale(1)"}],{duration:380,easing:B})}const ba={reveal:(t,e)=>{if(e.reduced)return;t.style.opacity="0";const s=fa(t,()=>{t.style.opacity="",ha(t,[{opacity:0,transform:"translateY(24px)"},{opacity:1,transform:"none"}],{duration:600,delay:70*Math.min(e.index,8),easing:Y,fill:"backwards"})});return()=>(s(),t.style.opacity="")},lift:(t,e)=>{if(e.reduced)return;const s=pa(t,"pointerenter",()=>ha(t,[{transform:"none"},{transform:"translateY(-6px) scale(1.02)"}],{duration:220,easing:Y,fill:"forwards"})),i=pa(t,"pointerleave",()=>ha(t,[{transform:"translateY(-6px) scale(1.02)"},{transform:"none"}],{duration:260,easing:Y,fill:"forwards"}));return()=>(s(),i())},press:(t,e)=>e.reduced?void 0:pa(t,"pointerdown",()=>ha(t,[{transform:"scale(1)"},{transform:"scale(0.94)"},{transform:"scale(1)"}],{duration:260,easing:B})),"count-up":t=>ma(t),pulse:(t,e)=>{if(e.reduced)return;const s=ha(t,[{boxShadow:"0 0 0 0 rgba(124, 92, 255, 0.55)"},{boxShadow:"0 0 0 14px rgba(124, 92, 255, 0)"}],{duration:1600,iterations:1/0});return()=>s?.cancel()},float:(t,e)=>{if(e.reduced)return;const s=ha(t,[{transform:"translateY(0)"},{transform:"translateY(-8px)"},{transform:"translateY(0)"}],{duration:3e3,delay:300*e.index,iterations:1/0,easing:"ease-in-out"});return()=>s?.cancel()},shake:(t,e)=>e.reduced?void 0:pa(t,"click",()=>ha(t,[0,-8,8,-6,6,-3,0].map(t=>({transform:`translateX(${t}px)`})),{duration:420})),bump:(t,e)=>e.reduced?void 0:pa(t,"usa:bump",()=>ha(t,[{transform:"scale(1)"},{transform:"scale(1.25)"},{transform:"scale(1)"}],{duration:360,easing:B})),"fly-to-cart":(t,e)=>pa(t,"click",()=>{const s=e.root.querySelector('[data-role="cart"]')||document.querySelector('[data-role="cart"]'),i=t.closest('[data-role="product"]')?.querySelector('img, [data-role="thumb"]')||t;s&&ga(i,s).then(()=>s.dispatchEvent(new CustomEvent("usa:added",{bubbles:!0})))})},ya={ecommerce:{product:["reveal","lift"],"add-to-cart":["press","fly-to-cart"],cart:["bump"],price:["count-up"],badge:["pulse"]},portfolio:{project:["reveal","lift"],heading:["reveal"],stat:["count-up"],contact:["press","pulse"]},dashboard:{card:["reveal"],stat:["count-up"],alert:["pulse"],action:["press"]},game:{button:["press"],score:["count-up","bump"],item:["float"],hit:["shake"],reward:["pulse"]},landing:{hero:["reveal"],feature:["reveal","lift"],cta:["press","pulse"],logo:["float"],stat:["count-up"]}};function va(t,e=document){const s=ya[t];if(!s||"undefined"==typeof document)return()=>{};const i=e.documentElement?e.body:e,a=d(),r=[];for(const[t,e]of Object.entries(s))i.querySelectorAll(`[data-role="${t}"]`).forEach((t,s)=>{for(const n of e){const e=ba[n]?.(t,{root:i,index:s,reduced:a});e&&r.push(e)}});return()=>r.splice(0).forEach(t=>t())}const xa=Object.keys(ba);function wa(t="usa-pack"){return b(t,t=>class extends t{static get observedAttributes(){return["name"]}get roles(){return Object.keys(ya[this.str("name","landing")]||{})}mount(){var t;(t=this.style).display||(t.display="block"),this.onCleanup(va(this.str("name","landing"),this))}})}function ka(){wa()}var _a;const Aa=["enter","exit","attention","click","hover","card","loop","page","background","text","cursor","scroll"],Ma=["click","hover","enter","load","loop","manual"],Ea=Symbol.for("use-scroll-animate.effects"),Sa=(_a=globalThis)[Ea]||(_a[Ea]=new Map);function Ca(t,e={}){if(!/^[a-z][a-z0-9-]*$/.test(t.name))throw new Error(`[motionary] invalid effect name "${t.name}"`);if(!Aa.includes(t.kind))throw new Error(`[motionary] unknown effect kind "${t.kind}"`);if(Sa.has(t.name)&&!e.override)throw new Error(`[motionary] effect "${t.name}" is already registered`);return Sa.set(t.name,t),()=>{Sa.get(t.name)===t&&Sa.delete(t.name)}}function $a(t){for(const e of t)Sa.has(e.name)||Ca(e)}const Ta=["loop","background","cursor"];function za(t){const e=[];return{reduced:d(),sensitivity:r(),event:t,animate:m,onCleanup:t=>e.push(t),cleanups:e}}async function Pa(t,e,s={},i){const a=Sa.get(e);if(!a)throw new Error(`[motionary] unknown effect "${e}" — registered: ${Array.from(Sa.keys()).join(", ")}`);const r=za(i);if(r.reduced&&"skip"===(a.reduced??(Ta.includes(a.kind)?"skip":"run")))return;const n=a.run(t,{...a.defaults||{},...s},r);n&&"function"==typeof n.finished?.then?await n.finished.catch(()=>{}):n&&"function"==typeof n.then&&await n}function Fa(t,e,s={}){const{trigger:i="click",once:a,...r}=s,n=Sa.get(e);if(!n)throw new Error(`[motionary] unknown effect "${e}"`);const o=[];let l=null;const c=e=>{const s=za(e);if(s.reduced&&"skip"===(n.reduced??(Ta.includes(n.kind)?"skip":"run")))return;l?.(),l=null;const i=n.run(t,{...n.defaults||{},...r},s),a=[...s.cleanups,..."function"==typeof i?[i]:[]];a.length&&(l=()=>a.splice(0).forEach(t=>t()))};o.push(()=>{l?.(),l=null});const u=(e,s)=>{t.addEventListener(e,c,s),o.push(()=>t.removeEventListener(e,c,s))};if("click"===i)u("click",{once:!!a});else if("hover"===i)u("pointerenter"),u("focusin");else if("load"===i||"loop"===i)c();else if("enter"===i&&"undefined"!=typeof IntersectionObserver){const e=new IntersectionObserver(t=>{for(const s of t)s.isIntersecting&&(c(),!1!==a&&e.disconnect())},{threshold:.15});e.observe(t),o.push(()=>e.disconnect())}return()=>o.splice(0).reverse().forEach(t=>t())}function La(t="usa-fx"){return b(t,t=>class extends t{static get observedAttributes(){return["effect","trigger","options"]}get target(){return this.flag("self")?this:this.firstElementChild||this}opts(){try{return JSON.parse(this.str("options","{}"))||{}}catch{return{}}}play(){return Pa(this.target,this.str("effect","pop"),this.opts()).catch(()=>{})}mount(){this.style.display||(this.style.display="inline-block");const t=this.str("effect","pop"),e=this.str("trigger","click");try{this.onCleanup(Fa(this.target,t,{...this.opts(),trigger:Ma.includes(e)?e:"click",once:this.flag("once")})),this.removeAttribute("data-unknown")}catch{this.setAttribute("data-unknown",t)}}})}const qa=(t,e,s,i=700,a="ease-in-out")=>({name:t,kind:"attention",description:e,defaults:{duration:i,iterations:1},run:(t,e,i)=>i.reduced?i.animate(t,[{opacity:1},{opacity:.6},{opacity:1}],{duration:400}):i.animate(t,s,{duration:e.duration,easing:a,iterations:e.iterations})}),Ra=[{name:"burst",kind:"click",description:"Particle burst from the click point (or `x` / `y`, or the element center).",defaults:{count:12},run:(t,e,s)=>{if(s.reduced)return;const i=t.getBoundingClientRect(),a=s.event;is(e.x??a?.clientX??i.left+i.width/2,e.y??a?.clientY??i.top+i.height/2,e)}},{name:"confetti",kind:"click",description:"Confetti cannon from the element.",defaults:{count:80},run:(t,e,s)=>{if(s.reduced)return;const i=t.getBoundingClientRect();as({x:i.left+i.width/2,y:i.top+i.height/2,...e})}},{name:"shake",kind:"attention",description:'Horizontal "no" shake (errors, wrong password).',defaults:{intensity:8,duration:480},run:(t,e,s)=>s.reduced?s.animate(t,[{opacity:1},{opacity:.5},{opacity:1}],{duration:300}):rs(t,e.intensity,e.duration)},{name:"ripple",kind:"click",description:"Material-style ink ripple from the pointer.",defaults:{color:"currentColor",duration:600},run:(t,e,s)=>{var i;if(s.reduced)return;const a=t.getBoundingClientRect(),r=s.event,n=2*Math.hypot(a.width,a.height),o=document.createElement("span");o.setAttribute("aria-hidden","true"),Object.assign(o.style,{position:"absolute",left:(r?.clientX??a.left+a.width/2)-a.left-n/2+"px",top:(r?.clientY??a.top+a.height/2)-a.top-n/2+"px",width:`${n}px`,height:`${n}px`,borderRadius:"50%",background:e.color,opacity:"0.25",pointerEvents:"none"}),"static"===getComputedStyle(t).position&&(t.style.position="relative"),(i=t.style).overflow||(i.overflow="hidden"),t.appendChild(o);const l=s.animate(o,[{transform:"scale(0)",opacity:.3},{transform:"scale(1)",opacity:0}],{duration:e.duration,easing:"ease-out"}),c=()=>o.remove();return l?l.finished.then(c,c):c(),l}}],Ia=[...Object.entries(gt).map(([t,e])=>({name:t,kind:"enter",description:`Entrance: ${t} (same keyframes as the timeline preset).`,defaults:{duration:600,delay:0,easing:"cubic-bezier(0.22, 1, 0.36, 1)"},run:(t,s,i)=>i.animate(t,i.reduced?[{opacity:0},{opacity:1}]:e,{duration:s.duration,delay:s.delay,easing:s.easing,fill:"backwards"})})),...[qa("pulse","Gentle scale pulse.",[{transform:"scale(1)"},{transform:"scale(1.08)"},{transform:"scale(1)"}],600),qa("pop","Quick overshoot pop.",[{transform:"scale(1)"},{transform:"scale(1.18)",offset:.4},{transform:"scale(0.96)",offset:.7},{transform:"scale(1)"}],450,"cubic-bezier(0.34, 1.56, 0.64, 1)"),qa("jelly","Rubbery squash-and-stretch.",[{transform:"scale(1,1)"},{transform:"scale(1.25,0.75)",offset:.3},{transform:"scale(0.75,1.25)",offset:.4},{transform:"scale(1.15,0.85)",offset:.5},{transform:"scale(0.95,1.05)",offset:.65},{transform:"scale(1.05,0.95)",offset:.75},{transform:"scale(1,1)"}],900),qa("wiggle","Playful rotate wiggle.",[{transform:"rotate(0)"},{transform:"rotate(-8deg)",offset:.2},{transform:"rotate(7deg)",offset:.4},{transform:"rotate(-5deg)",offset:.6},{transform:"rotate(3deg)",offset:.8},{transform:"rotate(0)"}],650),qa("heartbeat","Double-beat heart pulse.",[{transform:"scale(1)"},{transform:"scale(1.2)",offset:.14},{transform:"scale(1)",offset:.28},{transform:"scale(1.2)",offset:.42},{transform:"scale(1)",offset:.7}],1100),qa("bounce","Hop up and settle with a squash.",[{transform:"translateY(0) scale(1,1)"},{transform:"translateY(-22px) scale(0.95,1.05)",offset:.35},{transform:"translateY(0) scale(1.08,0.92)",offset:.6},{transform:"translateY(-6px) scale(1,1)",offset:.8},{transform:"translateY(0) scale(1,1)"}],800),qa("flash","Two soft flashes (well under 3 per second).",[{opacity:1},{opacity:.25,offset:.25},{opacity:1,offset:.5},{opacity:.25,offset:.75},{opacity:1}],1400),qa("tada","Scale + shake celebration.",[{transform:"scale(1) rotate(0)"},{transform:"scale(0.9) rotate(-3deg)",offset:.1},{transform:"scale(1.1) rotate(3deg)",offset:.3},{transform:"scale(1.1) rotate(-3deg)",offset:.5},{transform:"scale(1.1) rotate(3deg)",offset:.7},{transform:"scale(1) rotate(0)"}],1e3)],...Ra];function Na(){$a(Ia)}function Ya(){Na(),La()}const Ba={reveal:["usa-reveal","usa-stagger","usa-scroll-progress","usa-scrolly"],text:["usa-typewriter","usa-split-text","usa-scramble","usa-counter","usa-shimmer-text","usa-text-rotate","usa-wave-text","usa-glitch","usa-gradient-text","usa-handwriting","usa-scroll-highlight"],interaction:["usa-ripple","usa-magnetic","usa-tilt","usa-spotlight","usa-press"],feedback:["usa-spinner","usa-skeleton","usa-progress","usa-toaster","usa-check"],background:["usa-aurora","usa-particles","usa-grain","usa-marquee","usa-acrylic","usa-grid-glow","usa-blobs","usa-water-ripple","usa-dot-network"],transitions:["usa-dialog","usa-accordion","usa-view-switch"],physics:["usa-spring","usa-draggable","usa-overscroll"],cards:["usa-card","usa-card-stack","usa-sticky-stack","usa-carousel-3d"],click:["usa-click","usa-button","usa-icon-morph","usa-like","usa-hold","usa-double-tap","usa-checkbox"],ui:["usa-tabs","usa-drawer","usa-bottom-sheet","usa-pull-refresh","usa-fab","usa-navbar","usa-slider","usa-rating","usa-popover","usa-badge","usa-avatar-stack"],page:["usa-cursor","usa-fullpage","usa-loading-bar","usa-back-to-top","usa-ambient","usa-splash","usa-auto-skeleton","usa-motion-switch"],timeline:["usa-timeline"],gesture:["usa-swipeable","usa-pinch-zoom"],svg:["usa-draw","usa-morph","usa-mask-reveal","usa-anim-icon"],webgl:["usa-shader","usa-distort","usa-liquid","usa-post-fx"],depth:["usa-cube","usa-depth"],layout:["usa-auto-animate","usa-masonry"],packs:["usa-pack"],fx:["usa-fx"]};function Oa(){const t="undefined"!=typeof window?window:{},e="undefined"!=typeof document?document:{};return[{id:"custom-elements",required:!0,supported:!!t.customElements},{id:"web-animations",required:!0,supported:"function"==typeof t.Element?.prototype?.animate},{id:"intersection-observer",required:!0,supported:"function"==typeof t.IntersectionObserver},{id:"resize-observer",required:!0,supported:"function"==typeof t.ResizeObserver},{id:"adopted-stylesheets",required:!0,supported:"adoptedStyleSheets"in e},{id:"view-transitions",required:!1,supported:"function"==typeof e.startViewTransition},{id:"scroll-driven-animations",required:!1,supported:(s="animation-timeline: view()","function"==typeof t.CSS?.supports&&t.CSS.supports(s))},{id:"webgl",required:!1,supported:!(!e.createElement||!(()=>{try{return e.createElement("canvas").getContext("webgl")}catch{return null}})())}];var s}const Xa="usa:sensitivity",Da={full:{en:"All motion",zh:"全部动效",allows:["fade","translate","scale","rotate","parallax","loop","flash"]},gentle:{en:"Gentle — no spins, zooms or parallax",zh:"温和 —— 无旋转、缩放与视差",allows:["fade","translate","loop"]},minimal:{en:"Minimal — fades only",zh:"最少 —— 仅淡入淡出",allows:["fade"]},static:{en:"Static — no animation",zh:"静态 —— 无动画",allows:[]}},ja='html[data-usa-sensitivity="static"] *,html[data-usa-sensitivity="static"] *::before,html[data-usa-sensitivity="static"] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}html[data-usa-sensitivity="minimal"] *,html[data-usa-sensitivity="minimal"] *::before,html[data-usa-sensitivity="minimal"] *::after{animation-duration:1ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important}html[data-usa-sensitivity="gentle"]{--usa-parallax:0;--usa-tilt:0}';function Ha(t,s=!1){if(e.includes(t)){if(a({motionSensitivity:t}),p("a11y-sensitivity",ja),s)try{localStorage.setItem(Xa,t)}catch{}"static"===t&&"undefined"!=typeof document&&Va(document.documentElement),"undefined"!=typeof document&&document.dispatchEvent(new CustomEvent("usa:sensitivity",{detail:{level:t}}))}}function Va(t){const e=t.getAnimations;if("function"==typeof e)for(const s of e.call(t,{subtree:!0}))try{const t=s.effect?.getComputedTiming().iterations;t===1/0?s.cancel():s.finish()}catch{}return t.setAttribute("data-usa-static",""),()=>t.removeAttribute("data-usa-static")}const Ua={polite:"usa-live-polite",assertive:"usa-live-assertive"};function Wa(t="polite"){if("undefined"==typeof document||!document.body)return null;const e=Ua[t];let s=document.getElementById(e);return s||(s=document.createElement("div"),s.id=e,s.className="usa-sr",s.setAttribute("role","assertive"===t?"alert":"status"),s.setAttribute("aria-live",t),s.setAttribute("aria-atomic","true"),document.body.appendChild(s)),s}let Ga="",Ka=0;const Ja='a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex="-1"])',Za=["button","switch","checkbox","slider","tab","progressbar","radiogroup","dialog"];const Qa=Object.values(Ba).flat();const tr={};for(const[t,e]of Object.entries(Ba))for(const s of e)tr[s]=t;const er=t=>tr[t],sr=new Set;function ir(t,e){if("undefined"==typeof document||sr.has(t))return null;sr.add(t);const s=document.createElement("link");return s.rel="stylesheet",s.href=`${e.replace(/\/?$/,"/")}${"all"===t?"components.css":`components/${t}.css`}`,s.setAttribute("data-usa-css",t),document.head.appendChild(s),s}const ar=()=>"undefined"==typeof window?null:window;function rr(t="UsaBridge"){const e=ar();return e?e.chrome?.webview?.postMessage?"webview2":e.HybridWebView?.SendRawMessage||e.HybridWebView?.SendRawMessageToDotNet||/\bMAUI\b/i.test(e.navigator?.userAgent||"")?"maui":e.flutter_inappwebview?.callHandler||e[t]?.postMessage?"flutter":e.__TAURI__||e.__TAURI_INTERNALS__?"tauri":e.process?.versions?.electron||/Electron\//.test(e.navigator?.userAgent||"")?"electron":"browser":"browser"}function nr(t,e="UsaBridge"){const s=ar();if(!s)return!1;const i=JSON.stringify(t);try{if(s.chrome?.webview?.postMessage)return s.chrome.webview.postMessage(t),!0;if(s.HybridWebView?.SendRawMessage)return s.HybridWebView.SendRawMessage(i),!0;if(s.HybridWebView?.SendRawMessageToDotNet)return s.HybridWebView.SendRawMessageToDotNet(i),!0;if(s.flutter_inappwebview?.callHandler)return s.flutter_inappwebview.callHandler(e,i),!0;if(s[e]?.postMessage)return s[e].postMessage(i),!0}catch{}return!1}const or=["light","dark","high-contrast"],lr=/^(#[0-9a-f]{3,8}|rgba?\([\d\s.,%]+\)|hsla?\([\d\s.,%deg]+\))$/i;function cr(t){let s=t;if("string"==typeof s)try{s=JSON.parse(s)}catch{return null}if(!s||"object"!=typeof s||"usa:settings"!==s.type)return null;const i={};return"boolean"==typeof s.reducedMotion&&(i.reducedMotion=s.reducedMotion),or.includes(s.theme)&&(i.theme=s.theme),"string"==typeof s.accent&&lr.test(s.accent.trim())&&(i.accent=s.accent.trim()),e.includes(s.sensitivity)&&(i.sensitivity=s.sensitivity),i}function ur(t,e){void 0!==t.reducedMotion&&a({reducedMotion:t.reducedMotion?"reduce":"user"}),t.sensitivity&&a({motionSensitivity:t.sensitivity});const s=e||("undefined"!=typeof document?document.documentElement:null);s&&(t.theme&&(s.setAttribute("data-theme","high-contrast"===t.theme?"dark":t.theme),s.toggleAttribute("data-usa-contrast","high-contrast"===t.theme),s.style.colorScheme="light"===t.theme?"light":"dark"),t.accent&&s.style.setProperty("--usa-accent",t.accent),"undefined"!=typeof document&&document.dispatchEvent(new CustomEvent("usa:native-settings",{detail:t})))}
1
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).UsaComponents={})}(this,function(t){"use strict";var e;const s=["full","gentle","minimal","static"],i={low:.6,normal:1,high:1.25},a={injectStyles:!0,reducedMotion:"user",motionIntensity:"normal",motionSensitivity:"full"};function r(t){(t={...t}).motionIntensity&&!(t.motionIntensity in i)&&delete t.motionIntensity,t.reducedMotion&&"reduce"!==t.reducedMotion&&(t.reducedMotion="user"),Object.assign(a,t),t.motionIntensity&&"undefined"!=typeof document&&(document.documentElement.style.setProperty("--usa-motion",String(i[t.motionIntensity]??1)),document.documentElement.setAttribute("data-usa-motion",t.motionIntensity)),t.motionSensitivity&&"undefined"!=typeof document&&("full"===t.motionSensitivity?document.documentElement.removeAttribute("data-usa-sensitivity"):document.documentElement.setAttribute("data-usa-sensitivity",t.motionSensitivity))}function n(){return a.motionSensitivity}const o=/rotate|scale|skew|perspective|matrix3d/;function l(t,e=a.motionSensitivity){return"full"!==e&&t.length?"static"===e?[t[t.length-1]]:t.map(t=>{const s={};for(const[i,a]of Object.entries(t))if("offset"===i||"easing"===i||"composite"===i)s[i]=a;else if("minimal"===e)"opacity"===i&&(s[i]=a);else{if("rotate"===i||"scale"===i||"transform"===i&&o.test(String(a)))continue;s[i]=a}return s}):t}function c(){return a.motionIntensity}function u(){return i[a.motionIntensity]??1}const d=()=>"undefined"!=typeof customElements&&"undefined"!=typeof HTMLElement;function h(){return"minimal"===a.motionSensitivity||"static"===a.motionSensitivity||("reduce"===a.reducedMotion||"function"==typeof matchMedia&&!!matchMedia("(prefers-reduced-motion: reduce)").matches)}const p=new Set;function f(t,e){if(!a.injectStyles||!e||p.has(t)||"undefined"==typeof document)return;p.add(t);try{if("function"==typeof CSSStyleSheet&&"adoptedStyleSheets"in document){const t=new CSSStyleSheet;return t.replaceSync(e),void(document.adoptedStyleSheets=[...document.adoptedStyleSheets,t])}}catch{}const s=document.createElement("style");s.setAttribute("data-usa",t),s.textContent=e,(document.head||document.documentElement).appendChild(s)}let m=null;function g(t,e,s){if("function"!=typeof t.animate||"static"===a.motionSensitivity)return b(t,e[e.length-1]),null;if(e=l(e),q>=R)return b(t,e[e.length-1]),null;const i=u();1!==i&&i>0&&"number"==typeof s.duration&&(s={...s,duration:s.duration*i,delay:(s.delay||0)*i});const r=t.animate(e,s);if(function(t){if(!t)return;(1!==L.rate||L.paused)&&function(t){try{"function"==typeof t.updatePlaybackRate?t.updatePlaybackRate(L.rate):1===L.rate&&void 0===t.playbackRate||(t.playbackRate=L.rate),L.paused?t.pause?.():"paused"===t.playState&&t._usaClockPaused&&t.play?.(),t._usaClockPaused=L.paused}catch{}}(t);L.anims.add(t);const e=()=>L.anims.delete(t);t.finished?.then(e,e)}(r),s.iterations!==1/0){q++;let t=!1;const e=()=>{t||(t=!0,q--)};r?.finished?.then(e,e)}return r}function b(t,e){if(e)for(const[s,i]of Object.entries(e))"offset"!==s&&"easing"!==s&&"composite"!==s&&null!=i&&(t.style[s]=String(i))}function y(t,e,s){if(!d())return;f("base",v),s&&f(s.id,s.text);const i=customElements.get(t);if(i)return i;const a=e(function(){if(m)return m;class t extends HTMLElement{constructor(){super(...arguments),this._cleanups=[],this._connected=!1}get reduced(){return h()}connectedCallback(){if(!this._connected){if(this._connected=!0,B?.(this.localName),"undefined"!=typeof document&&"loading"===document.readyState&&!this.nextSibling&&!this.childNodes.length){const t=()=>{this._connected&&this.isConnected&&this.mount()};return document.addEventListener("DOMContentLoaded",t,{once:!0}),void this._cleanups.push(()=>document.removeEventListener("DOMContentLoaded",t))}this.mount()}}disconnectedCallback(){this._connected=!1,this.teardown()}attributeChangedCallback(t,e,s){this._connected&&e!==s&&this.changed(t)}changed(t){this.teardown(),this.mount()}teardown(){this._cleanups.splice(0).reverse().forEach(t=>t()),this.unmount()}mount(){}unmount(){}str(t,e=""){const s=this.getAttribute(t);return null===s?e:s}num(t,e){const s=this.getAttribute(t),i=null===s||""===s.trim()?NaN:Number(s);return Number.isFinite(i)?i:e}flag(t){const e=this.getAttribute(t);return null!==e&&"false"!==e}setFlag(t,e){e?this.setAttribute(t,""):this.removeAttribute(t)}onCleanup(t){this._cleanups.push(t)}listen(t,e,s,i){t.addEventListener(e,s,i),this.onCleanup(()=>t.removeEventListener(e,s,i))}inView(t,e,s=this){if("undefined"==typeof IntersectionObserver)return void t(!0);const i=new IntersectionObserver(e=>{for(const s of e)t(s.isIntersecting,s)},e);i.observe(s),this.onCleanup(()=>i.disconnect())}motion(t,e,s){return g(t,e,s)}emit(t,e){return this.dispatchEvent(new CustomEvent(`usa:${t}`,{detail:e,bubbles:!0,cancelable:!0}))}}return m=t,m}());return customElements.define(t,a),a}const v=".usa-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}";function x(t){const e=document.createElement("span");return e.className="usa-sr",e.textContent=t,e}const w=new Map;let k=1,_=0,A=null;const M={frames:0,callbacks:0,peak:0,last:0},E=new Set;function S(t){_=0;const e=M.last&&t>M.last?t-M.last:16.7;M.last=t,M.frames++;const s=Array.from(w.values());w.clear(),M.callbacks+=s.length,M.peak=Math.max(M.peak,s.length);let i=null;for(const e of s)try{e(t)}catch(t){i??(i=t)}if(!L.paused){const s=e*L.rate;L.time+=s,E.forEach(e=>e(t,s)),E.size&&C()}if(i)throw i}function C(){const t="function"==typeof requestAnimationFrame?requestAnimationFrame:null;_&&A===t||(A=t,_=t?t(S):setTimeout(()=>S(T()),16))}const $=t=>{const e=k++;return w.set(e,t),C(),e},T=()=>"undefined"!=typeof performance?performance.now():Date.now(),z=t=>{w.delete(t)};function P(t){return E.add(t),L.paused||C(),()=>E.delete(t)}const F=Symbol.for("motionary.clock"),L=(e=globalThis)[F]||(e[F]={rate:1,paused:!1,time:0,anims:new Set,subs:new Set});let q=0,R=1/0;const I=()=>q;function N(t){R=t>0?t:1/0}const Y=()=>R;let B=null;function O(t){B=t}const X="cubic-bezier(0.22, 1, 0.36, 1)",D="cubic-bezier(0.34, 1.56, 0.64, 1)",j="cubic-bezier(0.1, 0.9, 0.2, 1)",H=new Set;function V(t,e,s){const i=t.getAttribute("kind");return i&&(Array.isArray(e)?e.includes(i):i in e)?i:s}const U=(t,e,s)=>Math.min(s,Math.max(e,t)),W=["fade","fade-up","fade-down","fade-left","fade-right","zoom-in","zoom-out","blur","blur-up","flip-up","flip-left","rise"];function G(t,e){const s=W.includes(t)?null:globalThis[Symbol.for("use-scroll-animate.presets")]?.[t];if(s)return[s.from,...s.frames||[],s.to];const i=function(t,e=32){const s=`${e}px`;switch(t){case"fade":return{opacity:0};case"fade-down":return{opacity:0,transform:`translate3d(0,-${s},0)`};case"fade-left":return{opacity:0,transform:`translate3d(-${s},0,0)`};case"fade-right":return{opacity:0,transform:`translate3d(${s},0,0)`};case"zoom-in":return{opacity:0,transform:"scale(0.86)"};case"zoom-out":return{opacity:0,transform:"scale(1.14)"};case"blur":return{opacity:0,filter:"blur(12px)"};case"blur-up":return{opacity:0,filter:"blur(10px)",transform:`translate3d(0,${s},0)`};case"flip-up":return{opacity:0,transform:"perspective(800px) rotateX(-55deg)",transformOrigin:"50% 100%"};case"flip-left":return{opacity:0,transform:"perspective(800px) rotateY(55deg)",transformOrigin:"0% 50%"};case"rise":return{opacity:0,transform:`translate3d(0,${1.5*e}px,0) scale(0.96)`};default:return{opacity:0,transform:`translate3d(0,${s},0)`}}}(t,e),a={};for(const t of Object.keys(i))"opacity"===t?a.opacity=1:"transform"===t?a.transform="none":"filter"===t?a.filter="none":"transformOrigin"===t&&(a.transformOrigin=i.transformOrigin);return[i,a]}var K='usa-reveal,usa-stagger{display:block}usa-reveal[data-state="hidden"],usa-stagger[data-state="hidden"]>*{opacity:0}@media (prefers-reduced-motion:reduce){usa-reveal[data-state="hidden"],usa-stagger[data-state="hidden"]>*{opacity:1}}';function J(t="usa-reveal"){return y(t,t=>class extends t{constructor(){super(...arguments),this._anim=null}static get observedAttributes(){return["effect","distance","repeat","threshold","root-margin"]}get effect(){return this.str("effect","fade-up")}set effect(t){this.setAttribute("effect",t)}get revealed(){return"hidden"!==this.getAttribute("data-state")}mount(){this.reduced?this.setAttribute("data-state","shown"):("shown"!==this.getAttribute("data-state")&&this.setAttribute("data-state","hidden"),this.inView(t=>{t?(this.emit("enter"),this.revealed||this.reveal()):(this.emit("leave"),this.flag("repeat")&&this.revealed&&this.reset())},{threshold:this.num("threshold",.15),rootMargin:this.str("root-margin","0px")}))}unmount(){this._anim?.cancel(),this._anim=null}reveal(){if(this._anim?.cancel(),this.setAttribute("data-state","shown"),this.reduced)return Promise.resolve();const t=this.motion(this,G(this.effect,this.num("distance",32)),{duration:this.num("duration",700),delay:this.num("delay",0),easing:this.str("easing",X),fill:"backwards"});return this._anim=t,new Promise(e=>{const s=()=>{this._anim===t&&(this._anim=null),this.emit("complete"),e()};t?t.onfinish=s:s()})}reset(){this._anim?.cancel(),this._anim=null,this.reduced||this.setAttribute("data-state","hidden")}},{id:"reveal",text:K})}function Z(t="usa-stagger"){return y(t,t=>class extends t{constructor(){super(...arguments),this._anims=[]}static get observedAttributes(){return["effect","repeat","threshold"]}mount(){this.reduced?this.setAttribute("data-state","shown"):("shown"!==this.getAttribute("data-state")&&this.setAttribute("data-state","hidden"),this.inView(t=>{t&&"hidden"===this.getAttribute("data-state")?(this.emit("enter"),this.reveal()):!t&&this.flag("repeat")&&this.reset()},{threshold:this.num("threshold",.1)}))}unmount(){this.cancel()}cancel(){this._anims.splice(0).forEach(t=>t.cancel())}reveal(){this.cancel(),this.setAttribute("data-state","shown");const t=Array.from(this.children);if(this.reduced||!t.length)return Promise.resolve();const e=G(this.str("effect","fade-up"),this.num("distance",24)),s=this.num("interval",70),i=this.num("delay",0),a=this.num("duration",600),r=this.str("easing",X),n=t.map((t,n)=>this.motion(t,e,{duration:a,easing:r,delay:i+n*s,fill:"backwards"})).filter(t=>!!t);this._anims=n;const o=n[n.length-1];return new Promise(t=>{const e=()=>{this.emit("complete"),t()};o?o.onfinish=e:e()})}reset(){this.cancel(),this.reduced||this.setAttribute("data-state","hidden")}},{id:"reveal",text:K})}function Q(t){if("undefined"==typeof window)return 0;const e=window.innerHeight||document.documentElement.clientHeight;if(t){const s=t.getBoundingClientRect(),i=s.height-e;return i<=0?s.top<=0?1:0:U(-s.top/i,0,1)}const s=document.documentElement,i=s.scrollHeight-e;return i<=0?0:U((window.scrollY||s.scrollTop)/i,0,1)}function tt(t="usa-scroll-progress"){return y(t,t=>class extends t{constructor(){super(...arguments),this._bar=null,this._p=-1,this._frame=0}static get observedAttributes(){return["target","label"]}get progress(){return Math.max(0,this._p)}mount(){this._bar||(this._bar=document.createElement("span"),this._bar.className="usa-progress-fill",this.replaceChildren(this._bar)),this.setAttribute("role","progressbar"),this.setAttribute("aria-valuemin","0"),this.setAttribute("aria-valuemax","100"),this.hasAttribute("aria-label")||this.setAttribute("aria-label",this.str("label","Reading progress"));const t=()=>{this._frame||(this._frame=$(()=>(this._frame=0,this.update())))};this.listen(window,"scroll",t,{passive:!0}),this.listen(window,"resize",t,{passive:!0}),this.update()}unmount(){z(this._frame),this._frame=0}update(){const t=this.getAttribute("target"),e=Q(t?document.querySelector(t):null);if(Math.abs(e-this._p)<5e-4)return;this._p=e,this._bar&&(this._bar.style.transform=`scaleX(${e})`),this.style.setProperty("--usa-progress",String(e));const s=String(Math.round(100*e));this.getAttribute("aria-valuenow")!==s&&this.setAttribute("aria-valuenow",s),this.emit("progress",{progress:e})}},{id:"scroll-progress",text:'usa-scroll-progress{display:block;position:fixed;left:0;right:0;top:0;z-index:1000;height:var(--usa-progress-height,3px);background:var(--usa-progress-track,transparent);pointer-events:none;contain:strict}usa-scroll-progress[position="bottom"]{top:auto;bottom:0}usa-scroll-progress[position="inline"]{position:relative;z-index:auto;border-radius:999px;overflow:hidden}usa-scroll-progress .usa-progress-fill{display:block;height:100%;transform:scaleX(0);transform-origin:0 50%;background:var(--usa-progress-color,linear-gradient(90deg,#7c5cff,#22d3ee));will-change:transform}'})}function et(t="usa-scrolly"){return y(t,t=>class extends t{constructor(){super(...arguments),this._active=-1}static get observedAttributes(){return["offset"]}get active(){return this._active}get steps(){return Array.from(this.querySelectorAll("[data-step]"))}mount(){const t=this.steps;if(!t.length)return;const e=U(this.num("offset",.5),0,1),s=Math.min(99,Math.round(100*e)),i=`-${s}% 0px -${Math.max(0,99-s)}% 0px`;if("undefined"==typeof IntersectionObserver)return void this.activate(0);const a=new IntersectionObserver(e=>{for(const s of e)s.isIntersecting&&this.activate(t.indexOf(s.target))},{rootMargin:i});t.forEach(t=>a.observe(t)),this.onCleanup(()=>a.disconnect()),this._active<0&&this.activate(0,!0)}activate(t,e=!1){const s=this.steps;if(t<0||t>=s.length||t===this._active)return;this._active=t,s.forEach((e,s)=>e.toggleAttribute("data-active",s===t));const i=s[t];this.setAttribute("active",String(t)),this.style.setProperty("--usa-step",String(t)),this.setAttribute("data-step-name",i.dataset.step||String(t)),e||this.emit("step",{index:t,step:i,name:i.dataset.step||""})}},{id:"scrolly",text:"usa-scrolly{display:block;position:relative}usa-scrolly [data-sticky]{position:sticky;top:var(--usa-sticky-top,0px)}usa-scrolly [data-step]{opacity:var(--usa-step-dim,0.35);transition:opacity 0.4s ease}usa-scrolly [data-step][data-active]{opacity:1}@media (prefers-reduced-motion:reduce){usa-scrolly [data-step]{transition:none}}"})}function st(){J(),Z(),tt(),et()}function it(t="usa-typewriter"){return y(t,t=>class extends t{constructor(){super(...arguments),this._source=null,this._out=null,this._timer=0,this._running=!1}static get observedAttributes(){return["text","words"]}get phrases(){const t=this.getAttribute("words");return t?t.split("|").map(t=>t.trim()).filter(Boolean):[this.getAttribute("text")??this._source??""]}mount(){null===this._source&&(this._source=(this.textContent||"").trim());const t=this.phrases,e=x(t.join(", "));this._out=document.createElement("span"),this._out.className="usa-tw-text",this._out.setAttribute("aria-hidden","true");const s=document.createElement("span");if(s.className="usa-tw-caret",s.setAttribute("aria-hidden","true"),this.replaceChildren(e,this._out,s),this.toggleAttribute("data-no-cursor","false"===this.getAttribute("cursor")),this.reduced)return void(this._out.textContent=t[0]||"");const i=this.str("start","view");"load"===i?this.start():"view"===i&&this.inView(t=>{!t||this._running||this._out?.textContent||this.start()})}unmount(){this.stop()}stop(){clearTimeout(this._timer),this._timer=0,this._running=!1,this.removeAttribute("data-typing")}restart(){this.stop(),this._out&&(this._out.textContent=""),this.start()}start(){if(this._running||!this._out)return;const t=this._out,e=this.phrases;if(this.reduced)return void(t.textContent=e[0]||"");this._running=!0;const s=this.num("speed",55),i=this.num("delete-speed",30),a=this.num("pause",1400),r=this.flag("loop")||e.length>1;let n=0,o=0,l=!1;const c=()=>{const u=e[n]||"";if(l){if(o--,t.textContent=u.slice(0,Math.max(0,o)),o<=0)return l=!1,n=(n+1)%e.length,void(this._timer=setTimeout(c,4*s));this._timer=setTimeout(c,i)}else{if(o++,t.textContent=u.slice(0,o),this.setAttribute("data-typing",""),o>=u.length){this.removeAttribute("data-typing");const t=n===e.length-1;return t&&this.emit("complete"),!r&&t?void(this._running=!1):(l=!0,void(this._timer=setTimeout(c,a)))}this._timer=setTimeout(c,s*(.6+.8*Math.random()))}};this._timer=setTimeout(c,this.num("delay",0))}},{id:"typewriter",text:"usa-typewriter{white-space:pre-wrap}usa-typewriter .usa-tw-caret{display:inline-block;width:var(--usa-caret-width,0.08em);height:1.05em;margin-left:0.06em;vertical-align:-0.12em;background:var(--usa-caret-color,currentColor);animation:usa-caret 1.06s steps(1) infinite}usa-typewriter[data-typing] .usa-tw-caret{animation:none}usa-typewriter[data-no-cursor] .usa-tw-caret{display:none}@keyframes usa-caret{50%{opacity:0}}@media (prefers-reduced-motion:reduce){usa-typewriter .usa-tw-caret,usa-shimmer-text{animation:none}}"})}const at={duration:{instant:0,fast:150,normal:300,slow:600,slower:900,slowest:1400},easing:{linear:"linear",standard:"cubic-bezier(0.2, 0, 0, 1)",emphasized:"cubic-bezier(0.22, 1, 0.36, 1)",decelerate:"cubic-bezier(0, 0, 0, 1)",accelerate:"cubic-bezier(0.3, 0, 1, 1)",spring:"cubic-bezier(0.34, 1.56, 0.64, 1)",bounce:"cubic-bezier(0.68, -0.55, 0.265, 1.55)"},spring:{gentle:{stiffness:120,damping:14,mass:1},snappy:{stiffness:300,damping:30,mass:1},bouncy:{stiffness:260,damping:12,mass:1},wobbly:{stiffness:180,damping:8,mass:1},stiff:{stiffness:500,damping:40,mass:1}}};let rt=nt(at);function nt(t){return{duration:{...t.duration},easing:{...t.easing},spring:Object.fromEntries(Object.entries(t.spring).map(([t,e])=>[t,{...e}]))}}function ot(t,e=at){const s=nt(e);Object.assign(s.duration,t.duration||{}),Object.assign(s.easing,t.easing||{});for(const[e,i]of Object.entries(t.spring||{}))s.spring[e]={...s.spring[e]||{stiffness:170,damping:26,mass:1},...i};return s}const lt=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[\s_.]+/g,"-").toLowerCase();function ct(t=rt,e="--usa"){const s={};for(const[i,a]of Object.entries(t.duration))s[`${e}-duration-${lt(i)}`]=`${a}ms`;for(const[i,a]of Object.entries(t.easing))s[`${e}-easing-${lt(i)}`]=a;for(const[i,a]of Object.entries(t.spring))s[`${e}-spring-${lt(i)}-stiffness`]=String(a.stiffness),s[`${e}-spring-${lt(i)}-damping`]=String(a.damping),s[`${e}-spring-${lt(i)}-mass`]=String(a.mass);return s}function ut(t){if("number"==typeof t&&isFinite(t))return t;if("object"==typeof t&&t&&"value"in t&&"unit"in t)return ut(`${t.value}${t.unit}`);const e=/^\s*(-?\d*\.?\d+)\s*(ms|s)?\s*$/.exec(String(t??""));return e?"s"===e[2]?1e3*Number(e[1]):Number(e[1]):void 0}function dt(t){if(Array.isArray(t)&&4===t.length&&t.every(t=>"number"==typeof t))return`cubic-bezier(${t.join(", ")})`;if("string"!=typeof t||!t.trim())return;const e=t.trim();return/^-?\d*\.?\d+(\s*,\s*-?\d*\.?\d+){3}$/.test(e)?`cubic-bezier(${e.split(/\s*,\s*/).join(", ")})`:e}function ht(t=at,e,s="--usa"){const i=rt;rt=ot(t,at);const a=e||("undefined"!=typeof document?document.documentElement:null),r=ct(rt,s),n={};if(a)for(const[t,e]of Object.entries(r))n[t]=a.style.getPropertyValue(t),a.style.setProperty(t,e);return()=>{if(rt=i,a)for(const[t,e]of Object.entries(n))e?a.style.setProperty(t,e):a.style.removeProperty(t)}}function pt(t,e){return rt[t][e]??at[t][e]}function ft(t,e){return"number"==typeof t?t:"string"==typeof t?rt.duration[t]??ut(t)??e:e}function mt(t,e){return t?rt.easing[t]??t:e}function gt(t="view"){const e=globalThis;return"function"==typeof e["scroll"===t?"ScrollTimeline":"ViewTimeline"]&&"function"==typeof e.Element?.prototype?.animate}const bt=(t,e)=>Object.assign(t,{native:e}),yt={fade:[{opacity:0},{opacity:1}],"fade-up":[{opacity:0,transform:"translateY(24px)"},{opacity:1,transform:"none"}],"fade-down":[{opacity:0,transform:"translateY(-24px)"},{opacity:1,transform:"none"}],"fade-left":[{opacity:0,transform:"translateX(24px)"},{opacity:1,transform:"none"}],"fade-right":[{opacity:0,transform:"translateX(-24px)"},{opacity:1,transform:"none"}],scale:[{opacity:0,transform:"scale(0.85)"},{opacity:1,transform:"none"}],blur:[{opacity:0,filter:"blur(12px)"},{opacity:1,filter:"blur(0)"}],rotate:[{opacity:0,transform:"rotate(-12deg) scale(0.9)"},{opacity:1,transform:"none"}],"clip-up":[{clipPath:"inset(100% 0 0 0)"},{clipPath:"inset(0 0 0 0)"}],"clip-right":[{clipPath:"inset(0 100% 0 0)"},{clipPath:"inset(0 0 0 0)"}]};function vt(t,e,s,i={}){if(void 0===t||""===t||">"===t)return e;if("number"==typeof t)return Math.max(0,t);const a=String(t).trim();if(/^-?\d+(\.\d+)?$/.test(a))return Math.max(0,Number(a));const r=/^(<|>|[A-Za-z_][\w-]*)?\s*(?:([+-])=\s*(\d+(?:\.\d+)?))?$/.exec(a);if(!r)return e;const n="<"===r[1]?s:">"!==r[1]&&r[1]?i[r[1]]??e:e,o=r[2]?("-"===r[2]?-1:1)*Number(r[3]):0;return Math.max(0,n+o)}function xt(t={}){const e={duration:600,easing:"cubic-bezier(0.22, 1, 0.36, 1)",stagger:0,...t.defaults},s=[],i=[],a={};let r,n=0,o=0,l=0,c=0,d=1,p=!1;const f=()=>Math.max(n,...i.map(t=>t.at),0),m=(e,a)=>{(()=>{if(!p){p=!0;for(const t of s)"function"==typeof t.el.animate?(t.anim=t.el.animate(t.frames,{duration:t.duration,delay:t.start,easing:t.easing,fill:"both"}),t.anim.pause?.()):t.anim=null}})(),l=U(e,0,f());for(const t of s)t.anim?t.anim.currentTime=l:b(t.el,t.frames[l>=t.start?t.frames.length-1:0]);for(const t of i)(a<t.at&&l>=t.at||a>t.at&&l<=t.at)&&t.fn();t.onUpdate?.(f()?l/f():1)},g=()=>{c&&z(c),c=0},y=e=>{g(),r?.(),d=e;const s=d>0?f():0,i=u();if(h()||0===i||!f())return m(s,l),t.onComplete?.(),Promise.resolve();const a=(t.speed??1)/i;return new Promise(e=>{r=()=>{r=void 0,e()};let i=T();const n=()=>{const e=T(),o=l+(e-i)*a*d;if(i=e,m(o,l),d>0&&l>=s||d<0&&l<=0)return c=0,t.onComplete?.(),void r?.();c=$(n)};c=$(n)})},v={get duration(){return f()},get labels(){return{...a}},get time(){return l},to(t,i,r={}){const l="string"==typeof i?yt[i]||yt.fade:i,c=vt(r.at,n,o,a),u=ft(r.duration??e.duration,600),d=r.stagger??e.stagger;let h=c;return(t=>"string"==typeof t?"undefined"==typeof document?[]:Array.from(document.querySelectorAll(t)):t instanceof Element?[t]:Array.from(t))(t).forEach((t,i)=>{const a=c+i*d;s.push({el:t,frames:l,start:a,duration:u,easing:mt(r.easing??e.easing,"cubic-bezier(0.22, 1, 0.36, 1)")}),h=Math.max(h,a+u)}),o=c,n=Math.max(n,h),p=!1,s.forEach(t=>t.anim?.cancel?.()),v},label:(t,e)=>(a[t]=vt(e,n,o,a),v),call:(t,e)=>(i.push({fn:t,at:vt(e,n,o,a)}),v),play:t=>(void 0!==t?m(vt(t,0,0,a),l):l>=f()&&m(0,-1),y(1)),reverse:()=>y(-1),pause:()=>(g(),v),seek:t=>(g(),m(vt(t,0,0,a),l),v),progress:t=>(void 0!==t&&v.seek(U(t,0,1)*f()),f()?l/f():0),scrub(e,a={}){if(g(),h()||"undefined"==typeof window)return m(f(),l),bt(()=>{},!1);const r=a.source??"view",n=a.axis??"block";if(!(!!a.smooth||!!a.offset||i.length>0||!!t.onUpdate||"js"===a.engine)&&f()>0&&gt(r)&&s.every(t=>"function"==typeof t.el.animate)){const t=globalThis,i="scroll"===r?new t.ScrollTimeline({source:e,axis:n}):new t.ViewTimeline({subject:e,axis:n}),a=f();s.forEach(t=>t.anim?.cancel?.()),p=!1;const o=t=>`${(t/a*100).toFixed(3)}%`,c=s.map(t=>{const e="view"===r?{rangeStart:`cover ${o(t.start)}`,rangeEnd:`cover ${o(t.start+t.duration)}`}:{},s={easing:t.easing,fill:"both",timeline:i,...e};return"scroll"===r&&Object.assign(s,{duration:"auto",rangeStart:o(t.start),rangeEnd:o(t.start+t.duration)}),t.el.animate(t.frames,s)});return bt(()=>{c.forEach(t=>t.cancel()),m(l,l)},!0)}let o=0,c=l;const u="scroll"===r?e:null,d=()=>{o=0;const t=(()=>{const t="x"===n||"inline"===n;if(u){const e=t?u.scrollWidth-u.clientWidth:u.scrollHeight-u.clientHeight;return U((t?u.scrollLeft:u.scrollTop)/(e||1),0,1)}const s=e.getBoundingClientRect(),i=(t?window.innerWidth:window.innerHeight)||1,r=t?s.left:s.top,o=t?s.width:s.height;return U((i+(a.offset??0)-r)/(i+o||1),0,1)})()*f(),s=U(a.smooth??0,0,.95);c=s?c+(t-c)*(1-s):t,m(c,l),s&&Math.abs(t-c)>.5&&(o=$(d))},b=()=>{o||(o=$(d))},y=u||window;return y.addEventListener("scroll",b,{passive:!0}),window.addEventListener("resize",b,{passive:!0}),d(),bt(()=>{y.removeEventListener("scroll",b),window.removeEventListener("resize",b),o&&z(o)},!1)},cancel(){g(),r?.(),s.forEach(t=>t.anim?.cancel?.()),p=!1}};return v}const wt=/[\u2E80-\u2FFF\u3000-\u303F\u3040-\u30FF\u3100-\u312F\u3130-\u318F\u31A0-\u31FF\u3400-\u4DBF\u4E00-\u9FFF\uAC00-\uD7AF\uF900-\uFAFF\uFF00-\uFFEF]/,kt=/[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]/,_t=/[\u0590-\u08FF\uFB1D-\uFDFF\uFE70-\uFEFF]/;function At(t,e){const s=globalThis.Intl?.Segmenter;if("function"!=typeof s)return null;try{return new s(t||void 0,{granularity:e})}catch{return null}}function Mt(t,e){const s=At(e,"grapheme");return s?Array.from(s.segment(t),t=>t.segment):Array.from(t)}function Et(t,e){const s=At(e,"word"),i=[];if(s){for(const e of s.segment(t)){const t=i[i.length-1];e.isWordLike||/^\s+$/.test(e.segment)||!t||/^\s+$/.test(t)?i.push(e.segment):i[i.length-1]=t+e.segment}return i}for(const e of t.split(/(\s+)/))if(e)if(/^\s+$/.test(e)||!wt.test(e))i.push(e);else{let t="";for(const s of Array.from(e))wt.test(s)?(t&&(i.push(t),t=""),i.push(s)):/[\p{P}]/u.test(s)&&i.length?i[i.length-1]+=s:t+=s;t&&i.push(t)}return i}function St(t,e={}){const s=new Set((Array.isArray(e.by)?e.by:String(e.by??"char").split(/[\s,]+/)).filter(Boolean)),i=e.className||"usa-split",a=e.locale||t.closest?.("[lang]")?.getAttribute("lang")||void 0,r=Array.from(t.childNodes).map(t=>t.cloneNode(!0)),n=t.textContent||"",o=function(t,e){const s=t.closest?.("[dir]")?.getAttribute("dir");if("rtl"===s||"ltr"===s)return s;try{if("rtl"===getComputedStyle(t).direction)return"rtl"}catch{}return _t.test(e)&&!/[A-Za-z]/.test(e.replace(_t,""))?"rtl":"ltr"}(t,n),l=[],c=[];let u=[];const d=t.ownerDocument,h=(t,e)=>{const s=d.createElement("span");return s.className=t,void 0!==e&&(s.textContent=e),s},p=t=>{if(3===t.nodeType){const e=d.createDocumentFragment();for(const r of Et(t.nodeValue||"",a)){if(/^\s+$/.test(r)){e.append(d.createTextNode(r));continue}const t=h(`${i}-word`);if(t.style.display="inline-block",t.style.whiteSpace="nowrap",t.dataset.index=String(c.length),c.push(t),s.has("char")&&!kt.test(r))for(const e of Mt(r,a)){const s=h(`${i}-char`,e);s.style.display="inline-block",s.dataset.index=String(l.length),l.push(s),t.append(s)}else t.textContent=r,s.has("char")&&(t.dataset.whole="",l.push(t));e.append(t)}t.parentNode.replaceChild(e,t)}else 1!==t.nodeType||/^(BR|SCRIPT|STYLE|SVG|IMG)$/i.test(t.tagName)||Array.from(t.childNodes).forEach(p)},f=d.createElement("span");f.setAttribute("aria-hidden","true"),f.className=`${i}-body`,r.forEach(t=>f.append(t.cloneNode(!0))),Array.from(f.childNodes).forEach(p);const m=h(`${i}-sr`,n.replace(/\s+/g," ").trim());m.setAttribute("style","position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0"),t.replaceChildren(m,f),t.setAttribute("data-split",[...s].join(" ")),"rtl"===o&&t.setAttribute("data-split-dir","rtl");const g=()=>{for(const t of u)t.replaceWith(...Array.from(t.childNodes));if(u=[],!s.has("line")||!c.length)return u;const t=[];let e=null;for(const s of c){const i=Math.round(s.offsetTop);(null===e||Math.abs(i-e)>2)&&t.push([]),t[t.length-1].push(s),e=i}return t.forEach((t,e)=>{const s=t[0].parentNode,a=t.filter(t=>t.parentNode===s),r=h(`${i}-line`);r.style.display="inline-block",r.dataset.index=String(e),s.insertBefore(r,a[0]);let n=a[0];const o=a[a.length-1];for(;n;){const t=n.nextSibling;if(r.append(n),n===o)break;n=t}u.push(r)}),u};return g(),{chars:l,words:c,get lines(){return u},direction:o,relayout:g,revert(){t.replaceChildren(...r.map(t=>t.cloneNode(!0))),t.removeAttribute("data-split"),t.removeAttribute("data-split-dir")}}}function Ct(t,e="start",s=1){const i=Array.from({length:t},(t,e)=>e),a=(t-1)/2;if("end"===e)return i.map(e=>t-1-e);if("center"===e)return i.map(t=>Math.round(2*Math.abs(t-a))/2);if("edges"===e)return i.map(t=>Math.round(2*(a-Math.abs(t-a)))/2);if("random"===e){let t=s;const e=()=>(t=16807*t%2147483647)/2147483647,a=i.slice().sort(()=>e()-.5),r=[];return a.forEach((t,e)=>r[t]=e),r}return i}function $t(t="usa-split-text"){return y(t,t=>class extends t{constructor(){super(...arguments),this._source=null,this._timer=0,this._steps=0}static get observedAttributes(){return["by","text"]}get units(){return Array.from(this.querySelectorAll(".usa-split-unit"))}mount(){null===this._source&&(this._source=this.getAttribute("text")??(this.textContent||"").replace(/\s+/g," ").trim());const t=this.getAttribute("text")??this._source,e=this.str("by","chars"),s="chars"!==e,i=this.closest("[lang]")?.getAttribute("lang")||void 0,a=document.createDocumentFragment();a.append(x(t));const r=[];for(const e of Et(t,i)){if(/^\s+$/.test(e)){a.append(" ");continue}const t=document.createElement("span");t.className="usa-split-word",t.setAttribute("aria-hidden","true");const n=s||kt.test(e)?[e]:Mt(e,i);for(const e of n){const s=document.createElement("span");s.className="usa-split-unit",s.textContent=e,r.push(s),t.append(s)}a.append(t)}this.replaceChildren(a);let n=r.map((t,e)=>e);if("lines"===e){let t=-1,e=null;n=r.map(s=>{const i=Math.round(s.parentElement.offsetTop);return(null===e||Math.abs(i-e)>2)&&t++,e=i,t})}const o=Ct(Math.max(0,...n)+1,this.str("from","start"));r.forEach((t,e)=>t.style.setProperty("--i",String(o[n[e]]??0)));const l=Math.max(0,...r.map((t,e)=>o[n[e]]??0))+1;if(this._steps=l,this.style.setProperty("--usa-split-stagger",`${this.num("stagger","lines"===e?140:s?70:28)}ms`),this.style.setProperty("--usa-split-duration",`${this.num("duration",620)}ms`),this.style.setProperty("--usa-split-delay",`${this.num("delay",0)}ms`),this.style.setProperty("--usa-split-count",String(l)),this.reduced)return void this.setAttribute("data-state","shown");this.setAttribute("data-state","hidden");const c=this.str("trigger","view");"load"===c?this.play():"view"===c&&this.inView(t=>{t&&"hidden"===this.getAttribute("data-state")?this.play():!t&&this.flag("repeat")&&this.reset()},{threshold:.2})}unmount(){clearTimeout(this._timer)}play(){if(clearTimeout(this._timer),this.reduced)return void this.setAttribute("data-state","shown");this.setAttribute("data-state","hidden"),this.offsetWidth,this.setAttribute("data-state","play");const t=this.str("by","chars"),e=this.num("delay",0)+this.num("duration",620)+Math.max(0,this._steps-1)*this.num("stagger","lines"===t?140:"words"===t?70:28);this._timer=setTimeout(()=>{this.setAttribute("data-state","shown"),this.emit("complete")},e)}reset(){clearTimeout(this._timer),this.setAttribute("data-state",this.reduced?"shown":"hidden")}},{id:"split-text",text:'usa-split-text .usa-split-word{display:inline-block;white-space:nowrap}usa-split-text .usa-split-unit{display:inline-block;white-space:pre}usa-split-text[data-state="hidden"] .usa-split-unit{opacity:0}usa-split-text[data-state="play"] .usa-split-unit{animation:usa-split-rise var(--usa-split-duration,620ms) cubic-bezier(0.22,1,0.36,1) both;animation-delay:calc(var(--usa-split-delay,0ms) + var(--i,0) * var(--usa-split-stagger,28ms))}usa-split-text[effect="fade"][data-state="play"] .usa-split-unit{animation-name:usa-split-fade}usa-split-text[effect="blur"][data-state="play"] .usa-split-unit{animation-name:usa-split-blur}usa-split-text[effect="flip"][data-state="play"] .usa-split-unit{animation-name:usa-split-flip;transform-origin:50% 100%}usa-split-text[effect="pop"][data-state="play"] .usa-split-unit{animation-name:usa-split-pop;animation-timing-function:cubic-bezier(0.34,1.56,0.64,1)}@keyframes usa-split-rise{from{opacity:0;transform:translate3d(0,0.6em,0)}to{opacity:1;transform:none}}@keyframes usa-split-fade{from{opacity:0}to{opacity:1}}@keyframes usa-split-blur{from{opacity:0;filter:blur(8px)}to{opacity:1;filter:none}}@keyframes usa-split-flip{from{opacity:0;transform:perspective(500px) rotateX(-80deg)}to{opacity:1;transform:none}}@keyframes usa-split-pop{from{opacity:0;transform:scale(0.3)}to{opacity:1;transform:none}}@media (prefers-reduced-motion:reduce){usa-split-text .usa-split-unit{animation:none !important;opacity:1 !important}}'})}const Tt="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789#%&*+=<>/\\?!";function zt(t,e,s=Tt,i=Math.random){const a=Math.floor(t.length*e);let r="";for(let e=0;e<t.length;e++){const n=t[e];r+=e<a||/\s|[.,:;!?'"()\-–—]/.test(n)?n:s[Math.floor(i()*s.length)]}return r}function Pt(t="usa-scramble"){return y(t,t=>class extends t{constructor(){super(...arguments),this._source=null,this._out=null,this._frame=0}static get observedAttributes(){return["text"]}get text(){return this.getAttribute("text")??this._source??""}mount(){if(null===this._source&&(this._source=(this.textContent||"").trim()),this._out=document.createElement("span"),this._out.setAttribute("aria-hidden","true"),this._out.textContent=this.text,this.replaceChildren(x(this.text),this._out),this.reduced)return;const t=this.str("trigger","view");if("load"===t)this.play();else if("hover"===t)this.listen(this,"pointerenter",()=>this.play()),this.listen(this,"focusin",()=>this.play());else if("view"===t){let t=!1;this.inView(e=>{e&&!t&&(t=!0,this.play())})}}unmount(){z(this._frame),this._frame=0}play(){z(this._frame);const t=this._out,e=this.text;if(!t||this.reduced)return t&&(t.textContent=e),Promise.resolve();const s=this.num("duration",900),i=this.str("chars",Tt)||Tt,a=T();let r=-1;return new Promise(n=>{const o=()=>{const l=Math.min(1,Math.max(0,T()-a)/s),c=Math.floor(l*s/33);c===r&&1!==l||(r=c,t.textContent=1===l?e:zt(e,l,i)),l<1?this._frame=$(o):(this._frame=0,this.emit("complete"),n())};this._frame=$(o)})}},void 0)}const Ft=t=>t>=1?1:1-Math.pow(2,-10*t);function Lt(t="usa-counter"){return y(t,t=>class extends t{constructor(){super(...arguments),this._current=NaN,this._target=NaN,this._frame=0,this._fmt=null}static get observedAttributes(){return["to","decimals","locale","prefix","suffix","grouping"]}get value(){return Number.isNaN(this._target)?this.num("to",0):this._target}set value(t){this.play(Number(t))}format(t){if(!this._fmt){const t=Math.max(0,Math.min(20,this.num("decimals",0))),e=this.getAttribute("locale")||"undefined"!=typeof document&&document.documentElement.lang||void 0;try{this._fmt=new Intl.NumberFormat(e,{minimumFractionDigits:t,maximumFractionDigits:t,useGrouping:"false"!==this.getAttribute("grouping")})}catch{this._fmt=new Intl.NumberFormat(void 0,{minimumFractionDigits:t,maximumFractionDigits:t})}}return`${this.str("prefix")}${this._fmt.format(t)}${this.str("suffix")}`}render(t){this._current=t,this.textContent=this.format(t)}changed(t){this._fmt=null,"to"===t?this.play():this.render(Number.isNaN(this._current)?this.num("from",0):this._current)}mount(){this._fmt=null;const t=this.num("to",0);if(this.reduced)return this._target=t,void this.render(t);Number.isNaN(this._current)&&this.render(this.num("from",0));const e=this.str("start","view");if("load"===e)this.play();else if("view"===e){let t=!1;this.inView(e=>{e&&!t&&(t=!0,this.play())},{threshold:.4})}}unmount(){z(this._frame),this._frame=0}play(t=this.num("to",0)){z(this._frame),this._target=t;const e=Number.isNaN(this._current)?this.num("from",0):this._current;if(this.reduced||e===t||!this.isConnected)return this.render(t),this.emit("complete",{value:t}),Promise.resolve();const s=this.num("duration",1600),i=T();return new Promise(a=>{const r=()=>{const n=Math.min(1,Math.max(0,T()-i)/s);this.render(e+(t-e)*Ft(n)),n<1?this._frame=$(r):(this._frame=0,this.render(t),this.emit("complete",{value:t}),a())};this._frame=$(r)})}},{id:"counter",text:"usa-counter{font-variant-numeric:tabular-nums}"})}function qt(t="usa-shimmer-text"){return y(t,t=>class extends t{static get observedAttributes(){return["duration","color","shine","angle"]}mount(){const t=(t,e,s="")=>{const i=this.getAttribute(t);null!==i?this.style.setProperty(e,i+s):this.style.removeProperty(e)};t("duration","--usa-shimmer-duration","ms"),t("color","--usa-shimmer-color"),t("shine","--usa-shimmer-shine"),t("angle","--usa-shimmer-angle","deg")}},{id:"shimmer-text",text:"usa-shimmer-text{--usa-shimmer-color:currentColor;--usa-shimmer-shine:#fff;background:linear-gradient(var(--usa-shimmer-angle,110deg),var(--usa-shimmer-color) 35%,var(--usa-shimmer-shine) 50%,var(--usa-shimmer-color) 65%) 0 0 / 250% 100%;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent;animation:usa-shimmer var(--usa-shimmer-duration,2600ms) linear infinite}@keyframes usa-shimmer{from{background-position:100% 0}to{background-position:-150% 0}}"})}function Rt(t="usa-text-rotate"){return y(t,t=>class extends t{constructor(){super(...arguments),this._source=null,this._index=0,this._timer=0,this._visible=!0}static get observedAttributes(){return["words","interval","paused"]}get index(){return this._index}get words(){return(this.getAttribute("words")??this._source??"").split("|").map(t=>t.trim()).filter(Boolean)}mount(){null===this._source&&(this._source=(this.textContent||"").trim());const t=this.words;this.replaceChildren(x(t.join(", ")),...t.map((t,e)=>{const s=document.createElement("span");return s.className="usa-rotate-word",s.textContent=t,s.setAttribute("aria-hidden","true"),e!==this._index&&s.setAttribute("data-hidden",""),s})),this._index>=t.length&&(this._index=0),t.length<2||(this.inView(t=>this._visible=t),this.flag("paused")||(this._timer=setInterval(()=>{!this._visible||"undefined"!=typeof document&&document.hidden||this.next()},Math.max(400,this.num("interval",2200)))))}unmount(){clearInterval(this._timer),this._timer=0}next(){const t=Array.from(this.querySelectorAll(".usa-rotate-word"));if(t.length<2)return;const e=t[this._index];this._index=(this._index+1)%t.length;const s=t[this._index];e.setAttribute("data-hidden",""),s.removeAttribute("data-hidden");const i=this.reduced?"fade":this.str("effect","slide"),[a,r]="fade"===i?[{opacity:0},{opacity:0}]:"flip"===i?[{opacity:0,transform:"perspective(400px) rotateX(-90deg)"},{opacity:0,transform:"perspective(400px) rotateX(90deg)"}]:"blur"===i?[{opacity:0,filter:"blur(8px)"},{opacity:0,filter:"blur(8px)"}]:[{opacity:0,transform:"translateY(0.8em)"},{opacity:0,transform:"translateY(-0.8em)"}],n={opacity:1,transform:"none",filter:"none"},o=t=>Object.fromEntries(Object.keys(t).map(t=>[t,n[t]]));this.motion(e,[{...o(r)},r],{duration:380,easing:X}),this.motion(s,[a,o(a)],{duration:520,easing:"slide"===i?D:X}),this.emit("change",{index:this._index,word:s.textContent})}},{id:"text-rotate",text:"usa-text-rotate{display:inline-grid;vertical-align:bottom;overflow:hidden;padding-block:0.08em}usa-text-rotate .usa-rotate-word{grid-area:1 / 1;white-space:nowrap}usa-text-rotate .usa-rotate-word[data-hidden]{opacity:0}"})}var It='usa-wave-text .usa-word,usa-scroll-highlight .usa-word{display:inline-block;white-space:nowrap}usa-wave-text .usa-char{display:inline-block;animation:usa-wave var(--usa-wave-s,1.6s) ease-in-out infinite;animation-delay:calc(var(--i) * var(--usa-wave-d,0.06s))}@keyframes usa-wave{0%,60%,100%{transform:translateY(0)}30%{transform:translateY(calc(var(--usa-wave-a,0.25em) * -1))}}usa-glitch{position:relative;display:inline-block}usa-glitch::before,usa-glitch::after{content:attr(data-text);position:absolute;inset:0;pointer-events:none}usa-glitch::before{color:#ff2bd6;transform:translate(calc(var(--usa-glitch-i,3px) * -1),0);clip-path:inset(0 0 55% 0);mix-blend-mode:screen;animation:usa-glitch-a 2.4s steps(2,end) infinite}usa-glitch::after{color:#00f0ff;transform:translate(var(--usa-glitch-i,3px),0);clip-path:inset(50% 0 0 0);mix-blend-mode:screen;animation:usa-glitch-b 1.9s steps(2,end) infinite}usa-glitch[trigger="hover"]::before,usa-glitch[trigger="hover"]::after{animation-play-state:paused;opacity:0}usa-glitch[trigger="hover"]:hover::before,usa-glitch[trigger="hover"]:hover::after{animation-play-state:running;opacity:1}@keyframes usa-glitch-a{0%{clip-path:inset(0 0 80% 0)}20%{clip-path:inset(30% 0 40% 0)}40%{clip-path:inset(70% 0 5% 0)}60%{clip-path:inset(10% 0 60% 0)}80%{clip-path:inset(50% 0 30% 0)}100%{clip-path:inset(0 0 80% 0)}}@keyframes usa-glitch-b{0%{clip-path:inset(60% 0 10% 0)}25%{clip-path:inset(15% 0 70% 0)}50%{clip-path:inset(80% 0 2% 0)}75%{clip-path:inset(40% 0 35% 0)}100%{clip-path:inset(60% 0 10% 0)}}usa-gradient-text{background:var(--usa-grad) 0 50% / 300% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;animation:usa-grad-flow var(--usa-grad-s,6s) linear infinite}@keyframes usa-grad-flow{to{background-position:150% 50%}}usa-handwriting{--usa-hw-stroke:currentColor;display:inline-block;line-height:0}usa-handwriting svg{width:auto;max-width:100%;height:auto;overflow:visible}usa-handwriting text{fill:transparent;stroke:var(--usa-hw-stroke);stroke-width:1.2;stroke-dasharray:1600;stroke-dashoffset:1600;font-family:"Segoe Script","Brush Script MT","Snell Roundhand",cursive}usa-handwriting[data-state="drawing"] text{animation:usa-hw-draw var(--usa-hw-d,2400ms) cubic-bezier(0.55,0,0.45,1) forwards,usa-hw-fill 0.6s ease calc(var(--usa-hw-d,2400ms) * 0.8) forwards}usa-handwriting[data-state="done"] text{stroke-dashoffset:0;fill:currentColor}@keyframes usa-hw-draw{to{stroke-dashoffset:0}}@keyframes usa-hw-fill{to{fill:currentColor}}usa-scroll-highlight .usa-hl-word{opacity:var(--usa-hl-dim,0.2);transition:opacity 0.35s ease}usa-scroll-highlight .usa-hl-word[data-on]{opacity:1}usa-scroll-highlight[mode="marker"]{--usa-hl-color:color-mix(in srgb,#facc15 55%,transparent);background:linear-gradient(var(--usa-hl-color),var(--usa-hl-color)) 0 88% / 0% 40% no-repeat;transition:background-size 1s cubic-bezier(0.65,0,0.35,1);-webkit-box-decoration-break:clone;box-decoration-break:clone}usa-scroll-highlight[mode="marker"][data-lit]{background-size:100% 40%}@media (prefers-reduced-motion:reduce){usa-wave-text .usa-char,usa-glitch::before,usa-glitch::after,usa-gradient-text{animation:none !important}usa-glitch::before,usa-glitch::after{display:none}usa-scroll-highlight .usa-hl-word,usa-scroll-highlight[mode="marker"]{transition:none}}';const Nt=t=>t.getAttribute("text")??t.dataset.usaText??(t.dataset.usaText=(t.textContent||"").trim());function Yt(t="usa-wave-text"){return y(t,t=>class extends t{static get observedAttributes(){return["text"]}mount(){!function(t,e){const s=document.createElement("span");s.setAttribute("aria-hidden","true");const i=[];e.split(/(\s+)/).forEach(t=>{if(/^\s+$/.test(t))return void s.append(document.createTextNode(t));const e=document.createElement("span");e.className="usa-word";for(const s of Array.from(t)){const t=document.createElement("span");t.className="usa-char",t.textContent=s,t.style.setProperty("--i",String(i.length)),e.append(t),i.push(t)}s.append(e)}),t.replaceChildren(x(e),s)}(this,Nt(this)),this.style.setProperty("--usa-wave-a",`${this.num("amplitude",.25)}em`),this.style.setProperty("--usa-wave-s",`${this.num("speed",1.6)}s`),this.style.setProperty("--usa-wave-d",`${this.num("stagger",.06)}s`)}},{id:"text-fx",text:It})}function Bt(t="usa-glitch"){return y(t,t=>class extends t{static get observedAttributes(){return["text","intensity"]}mount(){const t=Nt(this);this.setAttribute("data-text",t),this.style.setProperty("--usa-glitch-i",`${this.num("intensity",3)}px`),this.firstChild||(this.textContent=t)}},{id:"text-fx",text:It})}function Ot(t="usa-gradient-text"){return y(t,t=>class extends t{static get observedAttributes(){return["colors","speed","angle"]}mount(){const t=this.str("colors","#7c5cff,#22d3ee,#f472b6,#facc15").split(",").map(t=>t.trim());this.style.setProperty("--usa-grad",`linear-gradient(${this.num("angle",90)}deg, ${[...t,t[0]].join(", ")})`),this.style.setProperty("--usa-grad-s",`${this.num("speed",6)}s`)}},{id:"text-fx",text:It})}function Xt(t="usa-handwriting"){return y(t,t=>class extends t{static get observedAttributes(){return["text","size","font"]}mount(){const t=Nt(this),e=this.num("size",64),s=Math.ceil(t.length*e*.62)+8;this.replaceChildren(x(t)),this.insertAdjacentHTML("beforeend",`<svg aria-hidden="true" viewBox="0 0 ${s} ${Math.ceil(1.3*e)}" width="${s}" height="${Math.ceil(1.3*e)}"><text x="4" y="${Math.round(e)}" font-size="${e}"></text></svg>`);const i=this.querySelector("text");i.textContent=t,this.str("font")&&i.setAttribute("font-family",this.str("font")),this.str("stroke")&&this.style.setProperty("--usa-hw-stroke",this.str("stroke")),this.style.setProperty("--usa-hw-d",`${this.num("duration",2400)}ms`),this.reduced?this.setAttribute("data-state","done"):this.inView(t=>t&&this.play(),{threshold:.3})}play(){this.removeAttribute("data-state"),this.offsetWidth,this.setAttribute("data-state","drawing"),setTimeout(()=>{this.setAttribute("data-state","done"),this.emit("complete")},this.reduced?0:this.num("duration",2400))}},{id:"text-fx",text:It})}function Dt(t="usa-scroll-highlight"){return y(t,t=>class extends t{constructor(){super(...arguments),this._f=0,this._p=0}static get observedAttributes(){return["mode","text"]}get progress(){return this._p}mount(){const t=this.str("mode","words");if(this.str("color")&&this.style.setProperty("--usa-hl-color",this.str("color")),this.style.setProperty("--usa-hl-dim",String(this.num("dim",.2))),"marker"===t)return void(this.reduced?this.setAttribute("data-lit",""):this.inView(t=>t&&this.setAttribute("data-lit",""),{threshold:.6}));const e=Nt(this),s=document.createElement("span");s.setAttribute("aria-hidden","true");const i=e.split(/\s+/).filter(Boolean).map(t=>{const e=document.createElement("span");return e.className="usa-hl-word",e.textContent=t,s.append(e," "),e});if(this.replaceChildren(x(e),s),this.reduced)return void i.forEach(t=>t.setAttribute("data-on",""));const a=()=>{this._f=0;const t=this.getBoundingClientRect(),e=window.innerHeight||800;this._p=U((.85*e-t.top)/(t.height+.35*e),0,1);const s=Math.round(this._p*i.length);i.forEach((t,e)=>t.toggleAttribute("data-on",e<s))},r=()=>!this._f&&(this._f=$(a));let n=!1;this.inView(t=>{t!==n&&(n=t,t?window.addEventListener("scroll",r,{passive:!0}):window.removeEventListener("scroll",r),r())}),this.onCleanup(()=>window.removeEventListener("scroll",r))}unmount(){z(this._f),this._f=0}},{id:"text-fx",text:It})}function jt(){it(),$t(),Pt(),Lt(),qt(),Rt(),Yt(),Bt(),Ot(),Xt(),Dt()}function Ht(t="usa-ripple"){return y(t,t=>class extends t{static get observedAttributes(){return[]}mount(){this.listen(this,"pointerdown",t=>{0!==t.button&&"mouse"===t.pointerType||this.ripple(t.clientX,t.clientY)}),this.listen(this,"keydown",t=>{"Enter"!==t.key&&" "!==t.key||t.repeat||this.ripple()})}ripple(t,e){if(this.flag("disabled"))return;const s=this.getBoundingClientRect(),i=this.flag("centered")||void 0===t||void 0===e,a=i?s.width/2:t-s.left,r=i?s.height/2:e-s.top,n=Math.hypot(Math.max(a,s.width-a),Math.max(r,s.height-r)),o=document.createElement("span");o.className="usa-ripple-wave",o.setAttribute("aria-hidden","true");const l=2*n;o.style.cssText=`width:${l}px;height:${l}px;left:${a-n}px;top:${r-n}px;background:${this.str("color","currentColor")}`,this.append(o);const c=this.num("opacity",.22),u=this.num("duration",550),d=this.reduced?[{opacity:c},{opacity:0}]:[{transform:"scale(0)",opacity:c},{transform:"scale(1)",opacity:c,offset:.7},{transform:"scale(1)",opacity:0}],h=this.motion(o,d,{duration:this.reduced?300:u,easing:X,fill:"forwards"});h?h.onfinish=()=>o.remove():setTimeout(()=>o.remove(),0)}},{id:"ripple",text:"usa-ripple{position:relative;display:inline-block;overflow:hidden;isolation:isolate;border-radius:inherit;-webkit-tap-highlight-color:transparent}usa-ripple[block]{display:block}usa-ripple .usa-ripple-wave{position:absolute;border-radius:50%;pointer-events:none;transform:scale(0);z-index:-1;will-change:transform,opacity}"})}function Vt(t="usa-magnetic"){return y(t,t=>class extends t{constructor(){super(...arguments),this._frame=0}static get observedAttributes(){return["strength","radius","disabled"]}mount(){if(this.reduced||this.flag("disabled"))return;if("function"==typeof matchMedia&&!matchMedia("(hover: hover) and (pointer: fine)").matches)return;const t=this.num("strength",.35),e=this.num("radius",60);let s=0,i=0,a=!1;const r=()=>{this._frame=0;const r=this.getBoundingClientRect(),n=s-(r.left+r.width/2),o=i-(r.top+r.height/2);Math.abs(n)<r.width/2+e&&Math.abs(o)<r.height/2+e?(a=!0,this.setAttribute("data-active",""),this.style.setProperty("--usa-mx",`${(n*t).toFixed(2)}px`),this.style.setProperty("--usa-my",`${(o*t).toFixed(2)}px`)):a&&this.release()};this.listen(document,"pointermove",t=>{"mouse"!==t.pointerType&&"pen"!==t.pointerType||(s=t.clientX,i=t.clientY,this._frame||(this._frame=$(r)))},{passive:!0}),this.listen(document,"pointerleave",()=>this.release()),this.listen(window,"blur",()=>this.release())}release(){this.removeAttribute("data-active"),this.style.removeProperty("--usa-mx"),this.style.removeProperty("--usa-my")}unmount(){z(this._frame),this._frame=0,this.release()}},{id:"magnetic",text:"usa-magnetic{display:inline-block}usa-magnetic>*{transform:translate3d(var(--usa-mx,0px),var(--usa-my,0px),0);transition:transform 0.6s cubic-bezier(0.34,1.56,0.64,1)}usa-magnetic[data-active]>*{transition-duration:0.15s;transition-timing-function:ease-out}@media (prefers-reduced-motion:reduce){usa-magnetic>*,usa-tilt,usa-toggle .usa-toggle-knob{transition:none}}"})}function Ut(t="usa-tilt"){return y(t,t=>class extends t{constructor(){super(...arguments),this._frame=0,this._glare=null}static get observedAttributes(){return["max","scale","perspective","glare","reverse","disabled"]}mount(){if(this.flag("glare")&&!this._glare?(this._glare=document.createElement("span"),this._glare.className="usa-tilt-glare",this._glare.setAttribute("aria-hidden","true"),this.append(this._glare)):!this.flag("glare")&&this._glare&&(this._glare.remove(),this._glare=null),this.reduced||this.flag("disabled"))return;const t=this.num("max",10)*(this.flag("reverse")?-1:1),e=this.num("scale",1.03),s=this.num("perspective",900);let i=.5,a=.5,r=null;const n=()=>{this._frame=0;const r=U(2*i-1,-1,1),n=U(2*a-1,-1,1);this.style.transform=`perspective(${s}px) rotateX(${(-n*t).toFixed(2)}deg) rotateY(${(r*t).toFixed(2)}deg) scale(${e})`,this.style.setProperty("--usa-tilt-x",r.toFixed(3)),this.style.setProperty("--usa-tilt-y",n.toFixed(3)),this.style.setProperty("--usa-glare-x",`${(100*i).toFixed(1)}%`),this.style.setProperty("--usa-glare-y",`${(100*a).toFixed(1)}%`)};this.listen(this,"pointerenter",t=>{"touch"!==t.pointerType&&(r=this.getBoundingClientRect(),this.setAttribute("data-active",""))}),this.listen(this,"pointermove",t=>{"touch"!==t.pointerType&&(r=r||this.getBoundingClientRect(),i=(t.clientX-r.left)/(r.width||1),a=(t.clientY-r.top)/(r.height||1),this._frame||(this._frame=$(n)))}),this.listen(this,"pointerleave",()=>this.reset())}reset(){z(this._frame),this._frame=0,this.removeAttribute("data-active"),this.style.transform="",this.style.setProperty("--usa-tilt-x","0"),this.style.setProperty("--usa-tilt-y","0")}unmount(){this.reset()}},{id:"tilt",text:"usa-tilt{display:block;position:relative;transform-style:preserve-3d;transition:transform 0.5s cubic-bezier(0.22,1,0.36,1);will-change:transform}usa-tilt[data-active]{transition-duration:0.12s}usa-tilt .usa-tilt-glare{position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:0;transition:opacity 0.3s ease;background:radial-gradient(circle at var(--usa-glare-x,50%) var(--usa-glare-y,50%),rgb(255 255 255 / 0.35),transparent 55%);mix-blend-mode:soft-light}usa-tilt[data-active] .usa-tilt-glare{opacity:1}"})}function Wt(t="usa-spotlight"){return y(t,t=>class extends t{constructor(){super(...arguments),this._frame=0}static get observedAttributes(){return["size","color","border"]}items(){const t=Array.from(this.querySelectorAll("[data-spotlight]")),e=t.length?t:Array.from(this.children);return e.forEach(t=>t.classList.add("usa-spotlight-item")),e}mount(){const t=this.getAttribute("size");t&&this.style.setProperty("--usa-spot-size",`${Number(t)}px`);const e=this.getAttribute("color");e&&this.style.setProperty("--usa-spot-color",e);const s=this.getAttribute("border");s&&this.style.setProperty("--usa-spot-border",`${Number(s)}px`);let i=this.items(),a=0,r=0;const n=()=>{this._frame=0;i.map(t=>t.getBoundingClientRect()).forEach((t,e)=>{i[e].style.setProperty("--usa-spot-x",`${(a-t.left).toFixed(1)}px`),i[e].style.setProperty("--usa-spot-y",`${(r-t.top).toFixed(1)}px`)})};this.listen(this,"pointerenter",t=>{"touch"!==t.pointerType&&(i=this.items(),this.setAttribute("data-lit",""))}),this.listen(this,"pointermove",t=>{"touch"!==t.pointerType&&(a=t.clientX,r=t.clientY,this.hasAttribute("data-lit")||this.setAttribute("data-lit",""),this._frame||(this._frame=$(n)))}),this.listen(this,"pointerleave",()=>this.removeAttribute("data-lit"))}unmount(){z(this._frame),this._frame=0,this.removeAttribute("data-lit")}},{id:"spotlight",text:'usa-spotlight{display:block;--usa-spot-size:160px;--usa-spot-color:rgb(255 255 255 / 0.55);--usa-spot-border:1px}usa-spotlight .usa-spotlight-item{position:relative;isolation:isolate}usa-spotlight .usa-spotlight-item::before,usa-spotlight .usa-spotlight-item::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:0;transition:opacity 0.25s ease}usa-spotlight .usa-spotlight-item::before{padding:var(--usa-spot-border);background:radial-gradient(var(--usa-spot-size) circle at var(--usa-spot-x,-999px) var(--usa-spot-y,-999px),var(--usa-spot-color),transparent 70%);-webkit-mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0)}usa-spotlight .usa-spotlight-item::after{z-index:-1;background:radial-gradient(calc(var(--usa-spot-size) * 0.9) circle at var(--usa-spot-x,-999px) var(--usa-spot-y,-999px),color-mix(in srgb,var(--usa-spot-color) 30%,transparent),transparent 70%)}usa-spotlight[data-lit] .usa-spotlight-item::before{opacity:1}usa-spotlight[data-lit] .usa-spotlight-item:hover::after{opacity:1}usa-spotlight[no-fill] .usa-spotlight-item::after{display:none}'})}function Gt(t="usa-press"){return y(t,t=>class extends t{constructor(){super(...arguments),this._anim=null,this._down=!1}static get observedAttributes(){return["disabled"]}get pressed(){return this._down}frame(t){return this.reduced?{opacity:t?.7:1}:{transform:t?`scale(${this.num("scale",.95)})`:"scale(1)"}}down(){if(this._down||this.flag("disabled"))return;this._down=!0,this.setAttribute("data-pressed","");const t=this.currentFrame();this._anim?.cancel(),this._anim=this.motion(this,[t,this.frame(!0)],{duration:120,easing:"cubic-bezier(0.3, 0, 0.7, 1)",fill:"forwards"})}up(){if(!this._down)return;this._down=!1,this.removeAttribute("data-pressed");const t=this.currentFrame();this._anim?.cancel();const e=this.flag("bounce")&&!this.reduced?[t,{transform:"scale(1.06)",offset:.45},{transform:"scale(0.99)",offset:.75},this.frame(!1)]:[t,this.frame(!1)],s=this.motion(this,e,{duration:this.flag("bounce")?480:320,easing:D});this._anim=s,s&&(s.onfinish=()=>this._anim===s&&(this._anim=null))}currentFrame(){if("function"!=typeof getComputedStyle)return this.frame(!1);const t=getComputedStyle(this);return this.reduced?{opacity:t.opacity||"1"}:{transform:t.transform&&"none"!==t.transform?t.transform:"scale(1)"}}mount(){this.listen(this,"pointerdown",t=>{"mouse"===t.pointerType&&0!==t.button||this.down()});for(const t of["pointerup","pointerleave","pointercancel","blur"])this.listen(this,t,()=>this.up());this.listen(this,"keydown",t=>(" "===t.key||"Enter"===t.key)&&!t.repeat&&this.down()),this.listen(this,"keyup",t=>(" "===t.key||"Enter"===t.key)&&this.up())}unmount(){this._anim?.cancel(),this._anim=null,this._down=!1}},{id:"press",text:"usa-press{display:inline-block;touch-action:manipulation;-webkit-tap-highlight-color:transparent}usa-press[block]{display:block}"})}function Kt(){Ht(),Vt(),Ut(),Wt(),Gt()}const Jt=["fluent","windows","ring","dots","pulse","bars"];function Zt(t="usa-spinner"){return y(t,t=>class extends t{static get observedAttributes(){return["kind","size","label"]}get kind(){return V(this,Jt,"fluent")}set kind(t){this.setAttribute("kind",t)}mount(){const t=this.kind;this.getAttribute("data-kind")!==t&&(this.innerHTML=function(t){switch(t){case"windows":return"<i></i><i></i><i></i><i></i><i></i>";case"dots":return"<i></i><i></i><i></i>";case"bars":return"<i></i><i></i><i></i><i></i>";case"pulse":return"<i></i><i></i>";case"ring":return"<i></i>";default:return'<svg viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="7" pathLength="100"/></svg>'}}(t),this.setAttribute("data-kind",t));const e=this.getAttribute("size");e?this.style.setProperty("--usa-spinner-size",`${Number(e)}px`):this.style.removeProperty("--usa-spinner-size"),this.setAttribute("role","progressbar"),this.hasAttribute("aria-label")&&!this.hasAttribute("label")||this.setAttribute("aria-label",this.str("label","Loading"))}},{id:"spinner",text:'usa-spinner{--usa-spinner-size:32px;--usa-spinner-color:currentColor;position:relative;display:inline-block;vertical-align:middle;flex:none;width:var(--usa-spinner-size);height:var(--usa-spinner-size);color:var(--usa-spinner-color)}usa-spinner i{position:absolute;display:block}usa-spinner[paused] *,usa-spinner[paused] *::after{animation-play-state:paused !important}usa-spinner svg{width:100%;height:100%;animation:usa-spin 2s linear infinite;overflow:visible}usa-spinner svg circle{fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-dasharray:0.5 100;stroke-dashoffset:0;animation:usa-ring-arc 1.6s ease-in-out infinite}@keyframes usa-spin{to{transform:rotate(360deg)}}@keyframes usa-ring-arc{0%{stroke-dasharray:0.5 100;stroke-dashoffset:0}50%{stroke-dasharray:62 100;stroke-dashoffset:-20}100%{stroke-dasharray:0.5 100;stroke-dashoffset:-99}}usa-spinner[data-kind="windows"] i{inset:0;opacity:0;animation:usa-orbit 5.5s infinite}usa-spinner[data-kind="windows"] i::after{content:"";position:absolute;left:50%;top:0;width:12%;height:12%;margin-left:-6%;border-radius:50%;background:currentColor}usa-spinner[data-kind="windows"] i:nth-child(2){animation-delay:240ms;--n:1}usa-spinner[data-kind="windows"] i:nth-child(3){animation-delay:480ms;--n:2}usa-spinner[data-kind="windows"] i:nth-child(4){animation-delay:720ms;--n:3}usa-spinner[data-kind="windows"] i:nth-child(5){animation-delay:960ms;--n:4}@keyframes usa-orbit{0%{transform:rotate(225deg);opacity:1;animation-timing-function:ease-out}7%{transform:rotate(345deg);animation-timing-function:linear}30%{transform:rotate(455deg);animation-timing-function:ease-in-out}39%{transform:rotate(690deg);animation-timing-function:linear}70%{transform:rotate(815deg);opacity:1;animation-timing-function:ease-out}75%{transform:rotate(945deg);animation-timing-function:ease-out}76%,100%{transform:rotate(945deg);opacity:0}}usa-spinner[data-kind="ring"] i{inset:0;border-radius:50%;border:calc(var(--usa-spinner-size) / 9) solid color-mix(in srgb,currentColor 20%,transparent);border-top-color:currentColor;animation:usa-spin 0.8s linear infinite}usa-spinner[data-kind="dots"]{display:inline-flex;align-items:center;justify-content:space-between;height:calc(var(--usa-spinner-size) / 2.5)}usa-spinner[data-kind="dots"] i{position:static;width:22%;aspect-ratio:1;border-radius:50%;background:currentColor;animation:usa-dot 1.2s ease-in-out infinite}usa-spinner[data-kind="dots"] i:nth-child(2){animation-delay:0.15s}usa-spinner[data-kind="dots"] i:nth-child(3){animation-delay:0.3s}@keyframes usa-dot{0%,60%,100%{transform:translateY(0);opacity:0.35}30%{transform:translateY(-70%);opacity:1}}usa-spinner[data-kind="pulse"] i{inset:0;border-radius:50%;background:currentColor;opacity:0;animation:usa-pulse 1.6s cubic-bezier(0.22,1,0.36,1) infinite}usa-spinner[data-kind="pulse"] i:nth-child(2){animation-delay:0.8s}@keyframes usa-pulse{from{transform:scale(0.1);opacity:0.8}to{transform:scale(1);opacity:0}}usa-spinner[data-kind="bars"]{display:inline-flex;align-items:center;justify-content:space-between}usa-spinner[data-kind="bars"] i{position:static;width:16%;height:100%;border-radius:2px;background:currentColor;transform:scaleY(0.35);animation:usa-bar 1s ease-in-out infinite}usa-spinner[data-kind="bars"] i:nth-child(2){animation-delay:0.12s}usa-spinner[data-kind="bars"] i:nth-child(3){animation-delay:0.24s}usa-spinner[data-kind="bars"] i:nth-child(4){animation-delay:0.36s}@keyframes usa-bar{0%,100%{transform:scaleY(0.35)}40%{transform:scaleY(1)}}@media (prefers-reduced-motion:reduce){usa-spinner svg,usa-spinner i,usa-spinner i::after{animation:usa-calm 2.4s ease-in-out infinite !important}usa-spinner[data-kind="windows"] i{transform:rotate(calc(var(--n,0) * 72deg))}usa-spinner svg circle{animation:none;stroke-dasharray:30 100}}@keyframes usa-calm{0%,100%{opacity:1}50%{opacity:0.4}}'})}function Qt(t="usa-skeleton"){return y(t,t=>class extends t{constructor(){super(...arguments),this._ph=null}static get observedAttributes(){return["loading","lines","width","height","circle","avatar","radius"]}get loading(){return this.hasAttribute("loading")}set loading(t){this.toggleAttribute("loading",!!t)}changed(t){"loading"===t?this.sync(!0):(this._ph?.remove(),this._ph=null,this.sync(!1))}mount(){this.sync(!1)}build(){const t=document.createElement("div");t.className="usa-skeleton-ph",t.setAttribute("aria-hidden","true");const e=(t="")=>{const e=document.createElement("span");return e.className=`usa-bone ${t}`.trim(),e},s=this.getAttribute("radius");if(s&&this.style.setProperty("--usa-skeleton-radius",s),this.flag("circle")||this.hasAttribute("width")||this.hasAttribute("height")){const s=e(this.flag("circle")?"usa-bone-circle":"usa-bone-block");s.style.width=this.str("width",this.flag("circle")?this.str("height","48px"):"100%"),s.style.height=this.str("height",this.flag("circle")?s.style.width:"120px"),t.append(s)}else{this.flag("avatar")&&t.append(e("usa-bone-circle usa-bone-avatar"));const s=document.createElement("div");s.className="usa-bone-lines";const i=Math.max(1,Math.min(20,this.num("lines",3)));for(let t=0;t<i;t++)s.append(e(t===i-1&&i>1?"usa-bone-last":""));t.append(s)}return t}sync(t){const e=this.loading;if(this.setAttribute("aria-busy",String(e)),e)this._ph||(this._ph=this.build(),this.prepend(this._ph));else{if(this._ph&&(this._ph.remove(),this._ph=null),t&&!this.reduced)for(const t of Array.from(this.children))this.motion(t,[{opacity:0,transform:"translateY(4px)"},{opacity:1,transform:"none"}],{duration:360,easing:X});this.emit("loaded")}}},{id:"skeleton",text:'usa-skeleton{display:block;--usa-skeleton-base:color-mix(in srgb,currentColor 10%,transparent);--usa-skeleton-shine:color-mix(in srgb,currentColor 9%,transparent);--usa-skeleton-radius:8px}usa-skeleton[loading]>:not(.usa-skeleton-ph){display:none !important}usa-skeleton .usa-skeleton-ph{display:flex;gap:14px;align-items:flex-start}usa-skeleton .usa-bone-lines{flex:1;display:grid;gap:10px;min-width:0}usa-skeleton .usa-bone{position:relative;display:block;overflow:hidden;height:0.9em;border-radius:var(--usa-skeleton-radius);background:var(--usa-skeleton-base)}usa-skeleton .usa-bone-last{width:62%}usa-skeleton .usa-bone-block{height:120px}usa-skeleton .usa-bone-circle{border-radius:50%;flex:none}usa-skeleton .usa-bone-avatar{width:44px;height:44px}usa-skeleton .usa-bone::after{content:"";position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(90deg,transparent,var(--usa-skeleton-shine),transparent);animation:usa-skeleton 1.5s ease-in-out infinite}@keyframes usa-skeleton{to{transform:translateX(100%)}}@media (prefers-reduced-motion:reduce){usa-skeleton .usa-bone::after{animation:none}}'})}function te(t="usa-progress"){return y(t,t=>class extends t{constructor(){super(...arguments),this._fill=null}static get observedAttributes(){return["value","max","indeterminate","label"]}get value(){const t=this.getAttribute("value");return null===t||""===t||Number.isNaN(Number(t))?null:Number(t)}set value(t){null==t?this.removeAttribute("value"):this.setAttribute("value",String(t))}get max(){const t=this.num("max",100);return t>0?t:100}set max(t){this.setAttribute("max",String(t))}get ratio(){const t=this.value;return this.hasAttribute("indeterminate")||null===t?null:U(t/this.max,0,1)}changed(){this.sync()}mount(){this._fill||(this.innerHTML='<span class="usa-progress-bar"></span><span class="usa-progress-bar usa-progress-bar2"></span>',this._fill=this.firstElementChild),this.setAttribute("role","progressbar"),this.sync()}sync(){const t=this.ratio,e=this.getAttribute("label");if(e&&this.setAttribute("aria-label",e),this.toggleAttribute("data-indeterminate",null===t),null===t)return this.removeAttribute("aria-valuenow"),void(this._fill&&(this._fill.style.transform=""));this.setAttribute("aria-valuemin","0"),this.setAttribute("aria-valuemax",String(this.max)),this.setAttribute("aria-valuenow",String(this.value)),this._fill&&(this._fill.style.transform=`scaleX(${t})`),1===t&&this.emit("complete")}},{id:"progress",text:'usa-progress{--usa-progress-color:var(--usa-accent,#7c5cff);--usa-progress-track:color-mix(in srgb,currentColor 14%,transparent);position:relative;display:block;height:var(--usa-progress-height,4px);border-radius:999px;overflow:hidden;background:var(--usa-progress-track);contain:paint}usa-progress .usa-progress-bar{position:absolute;inset:0;border-radius:inherit;background:var(--usa-progress-color);transform:scaleX(0);transform-origin:0 50%;transition:transform 0.45s cubic-bezier(0.22,1,0.36,1)}usa-progress .usa-progress-bar2{display:none}usa-progress[data-indeterminate] .usa-progress-bar{right:auto;width:40%;transform:translateX(-100%);transition:none;animation:usa-indet 2s cubic-bezier(0.4,0,0.6,1) infinite}usa-progress[data-indeterminate] .usa-progress-bar2{display:block;width:60%;animation:usa-indet2 2s cubic-bezier(0.4,0,0.6,1) 1s infinite}usa-progress[state="paused"]{--usa-progress-color:#c19c00}usa-progress[state="error"]{--usa-progress-color:#d13438}usa-progress[state="paused"] .usa-progress-bar,usa-progress[state="error"] .usa-progress-bar{animation-play-state:paused}@keyframes usa-indet{from{transform:translateX(-100%)}to{transform:translateX(250%)}}@keyframes usa-indet2{from{transform:translateX(-100%)}to{transform:translateX(167%)}}@media (prefers-reduced-motion:reduce){usa-progress .usa-progress-bar{transition:none}usa-progress[data-indeterminate] .usa-progress-bar{width:100%;transform:none;animation:usa-calm-bar 2.4s ease-in-out infinite}usa-progress[data-indeterminate] .usa-progress-bar2{display:none}}@keyframes usa-calm-bar{0%,100%{opacity:1}50%{opacity:0.4}}'})}const ee={info:'<path d="M12 8h.01M11 12h1v5h1"/>',success:'<path d="m8 12.5 3 3 5-6"/>',warning:'<path d="M12 8v5M12 16.5h.01"/>',error:'<path d="m9 9 6 6M15 9l-6 6"/>'};function se(t="usa-toaster"){return y(t,t=>class extends t{static get observedAttributes(){return["label"]}mount(){this.setAttribute("role","region"),this.setAttribute("aria-label",this.str("label","Notifications"))}flip(t){const e=Array.from(this.children),s=new Map(e.map(t=>[t,t.getBoundingClientRect().top]));if(t(),!this.reduced)for(const t of Array.from(this.children)){const e=s.get(t);if(void 0===e||t.hasAttribute("data-leaving"))continue;const i=e-t.getBoundingClientRect().top;Math.abs(i)>.5&&this.motion(t,[{transform:`translateY(${i}px)`},{transform:"none"}],{duration:320,easing:X,composite:"add"})}}enterFrames(){if(this.reduced)return[{opacity:0},{opacity:1}];const t=this.str("position","bottom-right");return[{opacity:0,transform:`translate(${t.endsWith("right")?"110%":t.endsWith("left")?"-110%":"0"}, ${t.endsWith("center")?t.startsWith("top")?"-120%":"120%":"0"}) scale(0.96)`},{opacity:1,transform:"none"}]}show(t,e={}){const s=e.type||"info",i=document.createElement("div");i.className="usa-toast",i.setAttribute("data-type",s),i.setAttribute("role","error"===s?"alert":"status"),i.innerHTML=`<svg class="usa-toast-icon" viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="9"/>${ee[s]||ee.info}</svg><div class="usa-toast-msg"></div>`,i.querySelector(".usa-toast-msg").textContent=t;let a=null,r=0;const n=()=>{if(a)return a;clearTimeout(r),i.setAttribute("data-leaving","");const t=this.enterFrames().reverse(),e=i.isConnected?this.motion(i,t,{duration:220,easing:"cubic-bezier(0.7, 0, 0.84, 0)",fill:"forwards"}):null;return a=new Promise(t=>{const s=()=>{this.flip(()=>i.remove()),t()};e?e.onfinish=s:s()}),a};if(e.action){const t=document.createElement("button");t.type="button",t.className="usa-toast-action",t.textContent=e.action.label,t.addEventListener("click",()=>{e.action.onClick(),n()}),i.append(t)}if(!1!==e.dismissible){const t=document.createElement("button");t.type="button",t.className="usa-toast-close",t.setAttribute("aria-label","Close"),t.innerHTML='<svg viewBox="0 0 24 24" aria-hidden="true"><path d="m7 7 10 10M17 7 7 17"/></svg>',t.addEventListener("click",()=>n()),i.append(t)}const o=e.duration??4e3,l=()=>{clearTimeout(r),o>0&&(r=setTimeout(n,o))},c=()=>clearTimeout(r);i.addEventListener("pointerenter",c),i.addEventListener("pointerleave",l),i.addEventListener("focusin",c),i.addEventListener("focusout",l);const u=this.str("position","bottom-right").startsWith("top");this.flip(()=>u?this.prepend(i):this.append(i)),this.motion(i,this.enterFrames(),{duration:420,easing:j}),l();const d=Array.from(this.querySelectorAll(".usa-toast:not([data-leaving])")),h=Math.max(1,this.num("max",4)),p=d.length-h;return p>0&&(u?d.slice(-p):d.slice(0,p)).forEach(t=>t._close?.()),i._close=n,this.emit("toast",{element:i,message:t,type:s}),{element:i,close:n}}clear(){this.querySelectorAll(".usa-toast").forEach(t=>t._close?.())}},{id:"toast",text:'usa-toaster{position:fixed;z-index:2147483000;right:16px;bottom:16px;display:flex;flex-direction:column;gap:10px;width:min(360px,calc(100vw - 32px));pointer-events:none}usa-toaster[position^="top"]{bottom:auto;top:16px}usa-toaster[position$="left"]{right:auto;left:16px}usa-toaster[position$="center"]{right:auto;left:50%;translate:-50% 0}usa-toaster .usa-toast{--usa-toast-accent:#0078d4;pointer-events:auto;display:flex;align-items:flex-start;gap:10px;padding:12px 12px 12px 14px;border-radius:10px;background:var(--usa-toast-bg,color-mix(in srgb,Canvas 92%,transparent));color:var(--usa-toast-fg,CanvasText);border:1px solid color-mix(in srgb,CanvasText 12%,transparent);border-left:3px solid var(--usa-toast-accent);box-shadow:0 8px 28px -8px rgb(0 0 0 / 0.35);font:inherit;font-size:14px;line-height:1.4;-webkit-backdrop-filter:blur(20px) saturate(1.4);backdrop-filter:blur(20px) saturate(1.4)}usa-toaster .usa-toast[data-type="success"]{--usa-toast-accent:#0f9d58}usa-toaster .usa-toast[data-type="warning"]{--usa-toast-accent:#c19c00}usa-toaster .usa-toast[data-type="error"]{--usa-toast-accent:#d13438}usa-toaster .usa-toast-icon{flex:none;width:20px;height:20px;fill:none;stroke:var(--usa-toast-accent);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}usa-toaster .usa-toast-msg{flex:1;min-width:0;padding-top:1px;overflow-wrap:anywhere}usa-toaster .usa-toast-action,usa-toaster .usa-toast-close{flex:none;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer;border-radius:6px;padding:2px 6px}usa-toaster .usa-toast-action{color:var(--usa-toast-accent);font-weight:600}usa-toaster .usa-toast-close{opacity:0.6;line-height:0;padding:3px}usa-toaster .usa-toast-close svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}usa-toaster .usa-toast-action:hover,usa-toaster .usa-toast-close:hover{background:color-mix(in srgb,currentColor 10%,transparent);opacity:1}'})}const ie={success:"M15 27 l7 7 l14 -15",error:"M18 18 L34 34 M34 18 L18 34",warning:"M26 15 V30 M26 37 V37.5"};function ae(t="usa-check"){return y(t,t=>class extends t{constructor(){super(...arguments),this._anims=[]}static get observedAttributes(){return["kind","size","label"]}mount(){const t=V(this,ie,"success");this.innerHTML=`<svg viewBox="0 0 52 52" aria-hidden="true"><circle class="usa-check-circle" cx="26" cy="26" r="23" pathLength="1"/><path class="usa-check-mark" d="${ie[t]}" pathLength="1"/></svg>`,this.setAttribute("data-kind",t);const e=this.getAttribute("size");e&&this.style.setProperty("--usa-check-size",`${Number(e)}px`);const s=this.getAttribute("label");if(s&&(this.setAttribute("role","img"),this.setAttribute("aria-label",s)),this.reduced)return void this.setAttribute("data-state","done");this.setAttribute("data-state","idle");const i=this.str("start","view");if("load"===i)this.play();else if("view"===i){let t=!1;this.inView(e=>e&&!t&&(t=!0,this.play()),{threshold:.5})}}unmount(){this._anims.splice(0).forEach(t=>t.cancel())}reset(){this._anims.splice(0).forEach(t=>t.cancel()),this.setAttribute("data-state",this.reduced?"done":"idle")}play(){this.reset(),this.setAttribute("data-state","done");const t=this.querySelector(".usa-check-circle"),e=this.querySelector(".usa-check-mark"),s=this.querySelector("svg");if(this.reduced||!t||!e||!s)return this.emit("complete"),Promise.resolve();const i=[{strokeDashoffset:1},{strokeDashoffset:0}],a=[this.motion(t,i,{duration:520,easing:X,fill:"backwards"}),this.motion(e,i,{duration:340,delay:420,easing:X,fill:"backwards"}),this.motion(s,[{transform:"scale(1)"},{transform:"scale(1.12)"},{transform:"scale(1)"}],{duration:420,delay:640,easing:D})].filter(t=>!!t);return this._anims=a,new Promise(t=>{const e=a[a.length-1],s=()=>{this.emit("complete"),t()};e?e.onfinish=s:s()})}},{id:"check",text:'usa-check{--usa-check-size:56px;--usa-check-color:#0f9d58;display:inline-block;width:var(--usa-check-size);height:var(--usa-check-size);vertical-align:middle}usa-check[data-kind="error"]{--usa-check-color:#d13438}usa-check[data-kind="warning"]{--usa-check-color:#c19c00}usa-check svg{width:100%;height:100%;overflow:visible}usa-check circle,usa-check path{fill:none;stroke:var(--usa-check-color);stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1 1}usa-check[data-state="idle"] circle,usa-check[data-state="idle"] path{stroke-dashoffset:1}usa-check[data-state="done"] circle,usa-check[data-state="done"] path{stroke-dashoffset:0}'})}function re(){Zt(),Qt(),te(),se(),ae()}function ne(t="usa-aurora"){return y(t,t=>class extends t{constructor(){super(...arguments),this._layer=null}static get observedAttributes(){return["colors","speed","intensity"]}mount(){this._layer||(this._layer=document.createElement("div"),this._layer.className="usa-aurora-layer",this._layer.setAttribute("aria-hidden","true"),this._layer.innerHTML="<i></i><i></i><i></i><i></i>",this.prepend(this._layer));const t=this.str("colors","#7c5cff,#22d3ee,#f472b6,#34d399").split(",").map(t=>t.trim()).filter(Boolean);Array.from(this._layer.children).forEach((e,s)=>{e.style.setProperty("--c",t[s%t.length])});const e=this.num("speed",1);this.style.setProperty("--usa-aurora-speed",`${(18/Math.max(.05,e)).toFixed(2)}s`),this.style.setProperty("--usa-aurora-opacity",String(this.num("intensity",.7))),this.inView(t=>this.toggleAttribute("data-offscreen",!t))}},{id:"aurora",text:"usa-aurora{position:relative;display:block;isolation:isolate;overflow:hidden}usa-aurora .usa-aurora-layer{position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:var(--usa-aurora-opacity,0.7);overflow:hidden;contain:strict}usa-aurora .usa-aurora-layer i{position:absolute;display:block;width:70%;aspect-ratio:1;border-radius:50%;background:radial-gradient(closest-side,var(--c),transparent);will-change:transform;animation:usa-aurora-a var(--usa-aurora-speed,18s) ease-in-out infinite alternate}usa-aurora .usa-aurora-layer i:nth-child(1){left:-15%;top:-30%}usa-aurora .usa-aurora-layer i:nth-child(2){right:-20%;top:-10%;animation-name:usa-aurora-b;animation-duration:calc(var(--usa-aurora-speed,18s) * 1.3)}usa-aurora .usa-aurora-layer i:nth-child(3){left:10%;bottom:-45%;animation-name:usa-aurora-c;animation-duration:calc(var(--usa-aurora-speed,18s) * 0.9)}usa-aurora .usa-aurora-layer i:nth-child(4){right:0;bottom:-30%;width:50%;animation-name:usa-aurora-b;animation-direction:alternate-reverse}usa-aurora[paused] .usa-aurora-layer i,usa-aurora[data-offscreen] .usa-aurora-layer i{animation-play-state:paused}@keyframes usa-aurora-a{from{transform:translate3d(0,0,0) scale(1)}to{transform:translate3d(30%,20%,0) scale(1.25)}}@keyframes usa-aurora-b{from{transform:translate3d(0,0,0) scale(1.1)}to{transform:translate3d(-35%,25%,0) scale(0.85)}}@keyframes usa-aurora-c{from{transform:translate3d(0,0,0) rotate(0deg) scale(1)}to{transform:translate3d(25%,-30%,0) rotate(40deg) scale(1.2)}}@media (prefers-reduced-motion:reduce){usa-aurora .usa-aurora-layer i,usa-grain .usa-grain-layer,usa-acrylic::after{animation:none !important}}"})}function oe(t="usa-particles"){return y(t,t=>class extends t{constructor(){super(...arguments),this._canvas=null,this._ctx=null,this._ps=[],this._frame=0,this._w=0,this._h=0,this._visible=!1,this._mx=-1e4,this._color="#888",this._my=-1e4}static get observedAttributes(){return["count","color","size","speed","links","interactive","paused"]}mount(){if(this._canvas||(this._canvas=document.createElement("canvas"),this._canvas.setAttribute("aria-hidden","true"),this.prepend(this._canvas)),this._ctx=this._canvas.getContext?.("2d")??null,this._ctx){if(this.resize(),"undefined"!=typeof ResizeObserver){const t=new ResizeObserver(()=>{this.resize(),this._frame||this.draw()});t.observe(this),this.onCleanup(()=>t.disconnect())}this.inView(t=>{this._visible=t,this.loop()}),this.listen(document,"visibilitychange",()=>this.loop()),this.flag("interactive")&&this.listen(window,"pointermove",t=>{const e=this.getBoundingClientRect();this._mx=t.clientX-e.left,this._my=t.clientY-e.top},{passive:!0}),this.draw()}}unmount(){z(this._frame),this._frame=0}reset(){this._ps=[],this.resize(),this.draw()}resize(){const t=this._canvas;if(!t||!this._ctx)return;const e=this.clientWidth||300,s=this.clientHeight||150,i=Math.min(2,"number"==typeof devicePixelRatio&&devicePixelRatio||1);t.width=Math.round(e*i),t.height=Math.round(s*i),this._ctx.setTransform(i,0,0,i,0,0),this._w=e,this._h=s,this._color=this.getAttribute("color")||("function"==typeof getComputedStyle?getComputedStyle(this).color:"")||"#888";const a=Math.round(Math.min(1,e*s/45e4)*Math.max(1,this.num("count",60)))||1,r=this.num("speed",.35),n=this.num("size",2.2);for(;this._ps.length<a;){const t=Math.random()*Math.PI*2,i=r*(.3+.7*Math.random());this._ps.push({x:Math.random()*e,y:Math.random()*s,vx:Math.cos(t)*i,vy:Math.sin(t)*i,r:.6+Math.random()*(n-.6)})}this._ps.length=a}loop(){const t=this._visible&&!this.reduced&&!this.flag("paused")&&!("undefined"!=typeof document&&document.hidden);if(t&&!this._frame){const t=()=>{this.step(),this.draw(),this._frame=$(t)};this._frame=$(t)}else!t&&this._frame&&(z(this._frame),this._frame=0)}step(){const{_w:t,_h:e}=this;for(const s of this._ps){const i=s.x-this._mx,a=s.y-this._my,r=i*i+a*a;if(r<8100&&r>.01){const t=.6*(1-Math.sqrt(r)/90);s.x+=i/Math.sqrt(r)*t,s.y+=a/Math.sqrt(r)*t}s.x+=s.vx,s.y+=s.vy,s.x<-5?s.x=t+5:s.x>t+5&&(s.x=-5),s.y<-5?s.y=e+5:s.y>e+5&&(s.y=-5)}}draw(){const t=this._ctx;if(!t)return;const e=this._color;t.clearRect(0,0,this._w,this._h),t.fillStyle=e,t.strokeStyle=e;const s=this._ps,i=this.num("links",110);if(i>0){const e=i*i;t.lineWidth=.6;for(let i=0;i<s.length;i++)for(let a=i+1;a<s.length;a++){const r=s[i].x-s[a].x,n=s[i].y-s[a].y,o=r*r+n*n;o<e&&(t.globalAlpha=.35*(1-o/e),t.beginPath(),t.moveTo(s[i].x,s[i].y),t.lineTo(s[a].x,s[a].y),t.stroke())}}t.globalAlpha=.85;for(const e of s)t.beginPath(),t.arc(e.x,e.y,e.r,0,2*Math.PI),t.fill();t.globalAlpha=1}},{id:"particles",text:"usa-particles{position:relative;display:block;min-height:120px;overflow:hidden}usa-particles>canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}"})}function le(t="usa-grain"){return y(t,t=>class extends t{constructor(){super(...arguments),this._layer=null}static get observedAttributes(){return["opacity","blend","scale"]}mount(){this._layer||(this._layer=document.createElement("div"),this._layer.className="usa-grain-layer",this._layer.setAttribute("aria-hidden","true"),this.append(this._layer));const t=this._layer.style;t.backgroundImage=`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='${.8}' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 1.6 -0.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")`,t.backgroundSize=`${this.num("scale",180)}px`,t.opacity=String(this.num("opacity",.12)),t.mixBlendMode=this.str("blend","overlay")}},{id:"grain",text:"usa-grain{position:relative;display:block;isolation:isolate;overflow:hidden}usa-grain .usa-grain-layer{position:absolute;inset:-100%;z-index:1;pointer-events:none}usa-grain[animated] .usa-grain-layer{animation:usa-grain 0.8s steps(10) infinite}@keyframes usa-grain{0%,100%{transform:translate(0,0)}10%{transform:translate(-5%,-8%)}20%{transform:translate(-12%,4%)}30%{transform:translate(6%,-16%)}40%{transform:translate(-4%,18%)}50%{transform:translate(-12%,8%)}60%{transform:translate(14%,0)}70%{transform:translate(0,12%)}80%{transform:translate(3%,25%)}90%{transform:translate(-8%,8%)}}"})}function ce(t="usa-marquee"){return y(t,t=>class extends t{constructor(){super(...arguments),this._track=null,this._anim=null,this._hover=!1,this._visible=!0,this._size=0}static get observedAttributes(){return["speed","direction","gap","paused"]}get vertical(){const t=this.str("direction","left");return"up"===t||"down"===t}mount(){if(!this._track){const t=document.createElement("div");t.className="usa-marquee-track";const e=document.createElement("div");e.className="usa-marquee-group",e.append(...Array.from(this.childNodes)),t.append(e),this.append(t),this._track=t}if(this.toggleAttribute("data-vertical",this.vertical),this.style.setProperty("--usa-marquee-gap",`${this.num("gap",32)}px`),this.reduced)return this.setAttribute("data-static",""),void this.syncClones(1);if(this.removeAttribute("data-static"),this.build(),"undefined"!=typeof ResizeObserver){const t=new ResizeObserver(()=>this.build());t.observe(this._track.firstElementChild),this.onCleanup(()=>t.disconnect())}this.inView(t=>{this._visible=t,this.sync()}),this.listen(this,"pointerenter",()=>(this._hover=!0,this.sync())),this.listen(this,"pointerleave",()=>(this._hover=!1,this.sync())),this.listen(this,"focusin",()=>(this._hover=!0,this.sync())),this.listen(this,"focusout",()=>(this._hover=!1,this.sync()))}unmount(){this._anim?.cancel(),this._anim=null,this._size=0}syncClones(t){const e=this._track,s=e.firstElementChild;for(;e.children.length>t;)e.lastElementChild.remove();for(;e.children.length<t;){const t=s.cloneNode(!0);t.setAttribute("aria-hidden","true"),t.setAttribute("inert",""),e.append(t)}}build(){const t=this._track,e=t.firstElementChild,s=this.vertical,i=this.num("gap",32),a=s?e.offsetHeight:e.offsetWidth;if(!a)return;const r=a+i;if(this._anim&&this._size===r)return;this._size=r;const n=(s?this.clientHeight:this.clientWidth)||r;this.syncClones(Math.min(50,Math.max(2,Math.ceil(n/r)+1)));const o=this._anim?.effect?.getComputedTiming().progress??0;this._anim?.cancel();const l=s?"Y":"X",c=["right","down"].includes(this.str("direction","left")),u=[{transform:`translate${l}(0)`},{transform:`translate${l}(${-r}px)`}];this._anim=this.motion(t,c?u.reverse():u,{duration:Math.max(1,r)/Math.max(1,this.num("speed",50))*1e3,iterations:1/0}),this._anim&&o&&(this._anim.currentTime=o*Number(this._anim.effect?.getTiming().duration||0)),this.sync()}sync(){const t=this._anim;if(!t)return;const e=this.flag("paused")||!this._visible||this._hover&&this.flag("pause-on-hover");e&&"running"===t.playState?t.pause():e||"paused"!==t.playState||t.play()}pause(){this.setAttribute("paused","")}resume(){this.removeAttribute("paused")}changed(t){"paused"===t?this.sync():super.changed(t)}},{id:"marquee",text:"usa-marquee{--usa-marquee-gap:32px;display:block;overflow:hidden;contain:content}usa-marquee[fade]{-webkit-mask:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent);mask:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent)}usa-marquee[fade][data-vertical]{-webkit-mask:linear-gradient(180deg,transparent,#000 12%,#000 88%,transparent);mask:linear-gradient(180deg,transparent,#000 12%,#000 88%,transparent)}usa-marquee .usa-marquee-track{display:flex;width:max-content;gap:var(--usa-marquee-gap);will-change:transform}usa-marquee .usa-marquee-group{display:flex;flex:none;align-items:center;gap:var(--usa-marquee-gap)}usa-marquee[data-vertical] .usa-marquee-track,usa-marquee[data-vertical] .usa-marquee-group{flex-direction:column;width:auto}usa-marquee[data-vertical]{height:var(--usa-marquee-height,240px)}usa-marquee[data-static]{overflow:auto;scrollbar-width:thin}"})}function ue(t="usa-acrylic"){return y(t,t=>class extends t{static get observedAttributes(){return["tint","tint-opacity","blur","shimmer"]}mount(){const t=this.getAttribute("tint");t?this.style.setProperty("--usa-acrylic-tint",t):this.style.removeProperty("--usa-acrylic-tint"),this.style.setProperty("--usa-acrylic-opacity",`${Math.round(100*this.num("tint-opacity",.55))}%`),this.style.setProperty("--usa-acrylic-blur",`${this.num("blur",30)}px`),"load"!==this.str("shimmer")||this.reduced||(this.removeAttribute("data-shine"),this.offsetWidth,this.setAttribute("data-shine",""))}},{id:"acrylic",text:"usa-acrylic{--usa-acrylic-tint:#f3f3f3;--usa-acrylic-opacity:55%;--usa-acrylic-blur:30px;position:relative;display:block;isolation:isolate;overflow:hidden;background-color:color-mix(in srgb,var(--usa-acrylic-tint) var(--usa-acrylic-opacity),transparent);-webkit-backdrop-filter:blur(var(--usa-acrylic-blur)) saturate(1.6);backdrop-filter:blur(var(--usa-acrylic-blur)) saturate(1.6);border:1px solid color-mix(in srgb,#fff 22%,transparent)}@media (prefers-color-scheme:dark){usa-acrylic{--usa-acrylic-tint:#2c2c2c}}usa-acrylic::before{content:\"\";position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:0.035;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E\")}usa-acrylic::after{content:\"\";position:absolute;inset:0;z-index:1;pointer-events:none;transform:translateX(-120%);background:linear-gradient(105deg,transparent 30%,rgb(255 255 255 / 0.28) 50%,transparent 70%)}usa-acrylic[shimmer=\"hover\"]:hover::after,usa-acrylic[data-shine]::after{animation:usa-acrylic-shine 1.1s cubic-bezier(0.22,1,0.36,1) both}@keyframes usa-acrylic-shine{from{transform:translateX(-120%)}to{transform:translateX(120%)}}usa-acrylic[kind=\"mica\"]{--usa-acrylic-opacity:80%;-webkit-backdrop-filter:none;backdrop-filter:none;background:linear-gradient(color-mix(in srgb,var(--usa-acrylic-tint) var(--usa-acrylic-opacity),transparent),color-mix(in srgb,var(--usa-acrylic-tint) var(--usa-acrylic-opacity),transparent)),var(--usa-mica-source,linear-gradient(135deg,#b8c6ff,#ffd6e8));border-color:transparent}@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){usa-acrylic{background-color:var(--usa-acrylic-tint)}}@media (prefers-reduced-transparency:reduce){usa-acrylic{background:var(--usa-acrylic-tint);-webkit-backdrop-filter:none;backdrop-filter:none}}@media (forced-colors:active){usa-acrylic{background:Canvas;-webkit-backdrop-filter:none;backdrop-filter:none;border-color:CanvasText}usa-acrylic::before,usa-acrylic::after{display:none}}"})}var de='usa-grid-glow,usa-blobs,usa-water-ripple,usa-dot-network{position:relative;display:block;isolation:isolate;overflow:hidden}usa-grid-glow{--usa-grid:32px;--usa-grid-r:220px;--usa-grid-color:var(--usa-accent,#7c5cff);--usa-grid-x:50%;--usa-grid-y:50%}usa-grid-glow::before,usa-grid-glow::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background-image:linear-gradient(to right,var(--l) 1px,transparent 1px),linear-gradient(to bottom,var(--l) 1px,transparent 1px);background-size:var(--usa-grid) var(--usa-grid)}usa-grid-glow::before{--l:color-mix(in srgb,currentColor 9%,transparent)}usa-grid-glow::after{--l:var(--usa-grid-color);-webkit-mask:radial-gradient(var(--usa-grid-r) circle at var(--usa-grid-x) var(--usa-grid-y),#000,transparent 70%);mask:radial-gradient(var(--usa-grid-r) circle at var(--usa-grid-x) var(--usa-grid-y),#000,transparent 70%)}usa-blobs .usa-blobs-layer{position:absolute;inset:-20%;z-index:-1;filter:blur(var(--usa-blobs-blur,60px)) saturate(1.3);pointer-events:none}usa-blobs .usa-blobs-layer i{position:absolute;width:45%;aspect-ratio:1;border-radius:42% 58% 60% 40% / 45% 45% 55% 55%;background:var(--c);opacity:0.75;left:calc(10% + var(--i) * 18%);top:calc(10% + var(--i) * 14%);animation:usa-blob calc(14s / var(--usa-blobs-speed,1)) ease-in-out infinite alternate;animation-delay:calc(var(--i) * -3.5s)}@keyframes usa-blob{0%{transform:translate(0,0) rotate(0) scale(1);border-radius:42% 58% 60% 40% / 45% 45% 55% 55%}50%{transform:translate(18%,-12%) rotate(120deg) scale(1.15);border-radius:60% 40% 35% 65% / 55% 60% 40% 45%}100%{transform:translate(-14%,14%) rotate(240deg) scale(0.9);border-radius:38% 62% 55% 45% / 62% 38% 62% 38%}}usa-water-ripple .usa-bg-canvas{position:absolute;inset:0;z-index:1;pointer-events:none;mix-blend-mode:screen}usa-dot-network .usa-bg-canvas{position:absolute;inset:0;z-index:-1;pointer-events:none}@media (prefers-reduced-motion:reduce){usa-blobs .usa-blobs-layer i{animation:none}}';function he(t,e,s){const i=document.createElement("canvas");i.className="usa-bg-canvas",i.setAttribute("aria-hidden","true"),t.prepend(i),t.onCleanup(()=>i.remove());const a=i.getContext?.("2d");if(!a)return;const r=Math.min(2,"undefined"!=typeof window&&window.devicePixelRatio||1);let n=0,o=0;const l=()=>{const e=t.getBoundingClientRect();n=Math.max(1,e.width||300),o=Math.max(1,e.height||150),i.width=n*r,i.height=o*r,a.setTransform(r,0,0,r,0,0)};l();const c="undefined"!=typeof ResizeObserver?new ResizeObserver(l):null;c?.observe(t),t.onCleanup(()=>c?.disconnect());let u=0,d=!1;const h=t=>{document.hidden||e(a,n,o,t),u=$(h)};s?e(a,n,o,0):(t.inView(t=>{t&&!d?(d=!0,u=$(h)):!t&&d&&(d=!1,z(u))}),t.onCleanup(()=>z(u)))}function pe(t="usa-grid-glow"){return y(t,t=>class extends t{mount(){if(this.style.setProperty("--usa-grid",`${this.num("size",32)}px`),this.style.setProperty("--usa-grid-r",`${this.num("radius",220)}px`),this.str("color")&&this.style.setProperty("--usa-grid-color",this.str("color")),this.reduced)return;let t=0,e=0,s=0;this.listen(this,"pointermove",i=>{const a=this.getBoundingClientRect();e=i.clientX-a.left,s=i.clientY-a.top,t||(t=$(()=>{t=0,this.style.setProperty("--usa-grid-x",`${e}px`),this.style.setProperty("--usa-grid-y",`${s}px`)}))}),this.onCleanup(()=>z(t))}},{id:"bg-fx",text:de})}function fe(t="usa-blobs"){return y(t,t=>class extends t{mount(){this.querySelector(":scope > .usa-blobs-layer")?.remove();const t=this.str("colors","#7c5cff,#22d3ee,#f472b6,#34d399").split(","),e=document.createElement("div");e.className="usa-blobs-layer",e.setAttribute("aria-hidden","true"),e.innerHTML=t.map((t,e)=>`<i style="--c:${t.trim()};--i:${e}"></i>`).join(""),this.prepend(e),this.style.setProperty("--usa-blobs-speed",String(this.num("speed",1))),this.style.setProperty("--usa-blobs-blur",`${this.num("blur",60)}px`)}},{id:"bg-fx",text:de})}function me(t="usa-water-ripple"){return y(t,t=>class extends t{constructor(){super(...arguments),this._drop=null}drop(t,e,s=1){this._drop?.(t,e,s)}mount(){if(this.reduced)return;let t=0,e=0,s=new Float32Array(0),i=new Float32Array(0);const a=this.num("damping",.96),r=this.str("color","255,255,255");this._drop=(i,a,r=1)=>{const n=Math.floor(i/4),o=Math.floor(a/4);n<1||o<1||n>=t-1||o>=e-1||(s[o*t+n]+=256*r*this.num("strength",1))},he(this,(n,o,l)=>{const c=Math.ceil(o/4),u=Math.ceil(l/4);c===t&&u===e||(t=c,e=u,s=new Float32Array(t*e),i=new Float32Array(t*e)),n.clearRect(0,0,o,l);for(let o=1;o<e-1;o++)for(let e=1;e<t-1;e++){const l=o*t+e,c=((s[l-1]+s[l+1]+s[l-t]+s[l+t])/2-i[l])*a;i[l]=c,(c>2||c<-2)&&(n.fillStyle=`rgba(${r},${Math.min(.5,Math.abs(c)/300).toFixed(3)})`,n.fillRect(4*e,4*o,4,4))}const d=s;s=i,i=d},!1),this.listen(this,"pointermove",t=>{const e=this.getBoundingClientRect();this.drop(t.clientX-e.left,t.clientY-e.top,.35)}),this.listen(this,"pointerdown",t=>{const e=this.getBoundingClientRect();this.drop(t.clientX-e.left,t.clientY-e.top,1.5)})}},{id:"bg-fx",text:de})}function ge(t="usa-dot-network"){return y(t,t=>class extends t{mount(){const t=Math.max(8,this.num("gap",28)),e=this.num("radius",140),s=this.str("color","124,92,255");let i=-1e4,a=-1e4;this.listen(this,"pointermove",t=>{const e=this.getBoundingClientRect();i=t.clientX-e.left,a=t.clientY-e.top}),this.listen(this,"pointerleave",()=>i=a=-1e4),he(this,(r,n,o)=>{r.clearRect(0,0,n,o);const l=[];for(let c=t/2;c<o;c+=t)for(let o=t/2;o<n;o+=t){const t=Math.hypot(o-i,c-a),n=t<e?1-t/e:0,u=n?(o-i)/(t||1)*n*8:0,d=n?(c-a)/(t||1)*n*8:0;r.fillStyle=`rgba(${s},${(.25+.75*n).toFixed(3)})`,r.beginPath(),r.arc(o+u,c+d,1.2+2.2*n,0,2*Math.PI),r.fill(),n>.2&&l.push([o+u,c+d,n])}r.lineWidth=1;for(const[t,e,n]of l)r.strokeStyle=`rgba(${s},${(.5*n).toFixed(3)})`,r.beginPath(),r.moveTo(t,e),r.lineTo(i,a),r.stroke()},this.reduced)}},{id:"bg-fx",text:de})}function be(){f("variants",':root{--usa-accent:#7c5cff;--usa-accent-text:#fff;--usa-surface:#1b1e27;--usa-text:inherit;--usa-radius:14px;--usa-border:1px solid rgb(127 127 127 / 0.25);--usa-shadow:0 10px 30px -12px rgb(0 0 0 / 0.45);--usa-blur:0px;--usa-font:inherit}:where([variant="minimal"],[data-usa-variant="minimal"]){--usa-accent:currentColor;--usa-accent-text:Canvas;--usa-surface:transparent;--usa-radius:6px;--usa-border:1px solid color-mix(in srgb,currentColor 22%,transparent);--usa-shadow:none;--usa-blur:0px}:where([variant="neon"],[data-usa-variant="neon"]){--usa-accent:#00f0ff;--usa-accent-text:#04121a;--usa-surface:#0a0b14;--usa-text:#e6fbff;--usa-radius:10px;--usa-border:1px solid #00f0ff;--usa-shadow:0 0 6px #00f0ff,0 0 22px rgb(0 240 255 / 0.45);--usa-blur:0px}:where([variant="glass"],[data-usa-variant="glass"]){--usa-accent:#a78bfa;--usa-accent-text:#fff;--usa-surface:rgb(255 255 255 / 0.12);--usa-radius:18px;--usa-border:1px solid rgb(255 255 255 / 0.28);--usa-shadow:0 12px 40px -12px rgb(0 0 0 / 0.35);--usa-blur:16px}:where([variant="brutalist"],[data-usa-variant="brutalist"]){--usa-accent:#ff3d00;--usa-accent-text:#000;--usa-surface:#fff;--usa-text:#000;--usa-radius:0px;--usa-border:3px solid #000;--usa-shadow:5px 5px 0 #000;--usa-blur:0px;--usa-font:ui-monospace,"SFMono-Regular",Menlo,monospace}:where([variant="fluent"],[data-usa-variant="fluent"]){--usa-accent:#0067c0;--usa-accent-text:#fff;--usa-surface:rgb(249 249 249 / 0.82);--usa-text:#1a1a1a;--usa-radius:8px;--usa-border:1px solid rgb(0 0 0 / 0.08);--usa-shadow:0 2px 4px rgb(0 0 0 / 0.14),0 0 2px rgb(0 0 0 / 0.12);--usa-blur:30px;--usa-font:"Segoe UI Variable","Segoe UI",system-ui,sans-serif}:where([variant="material"],[data-usa-variant="material"]){--usa-accent:#6750a4;--usa-accent-text:#fff;--usa-surface:#fffbfe;--usa-text:#1c1b1f;--usa-radius:20px;--usa-border:0 solid transparent;--usa-shadow:0 1px 3px rgb(0 0 0 / 0.3),0 4px 8px 3px rgb(0 0 0 / 0.15);--usa-blur:0px;--usa-font:Roboto,system-ui,sans-serif}@media (prefers-color-scheme:dark){:where([variant="fluent"],[data-usa-variant="fluent"]){--usa-accent:#4cc2ff;--usa-accent-text:#000;--usa-surface:rgb(44 44 44 / 0.8);--usa-text:#fff;--usa-border:1px solid rgb(255 255 255 / 0.08)}:where([variant="material"],[data-usa-variant="material"]){--usa-accent:#d0bcff;--usa-accent-text:#381e72;--usa-surface:#1c1b1f;--usa-text:#e6e1e5}}.usa-surface{background:var(--usa-surface);color:var(--usa-text);border:var(--usa-border);border-radius:var(--usa-radius);box-shadow:var(--usa-shadow);font-family:var(--usa-font);-webkit-backdrop-filter:blur(var(--usa-blur));backdrop-filter:blur(var(--usa-blur))}@media (prefers-reduced-transparency:reduce){.usa-surface{-webkit-backdrop-filter:none;backdrop-filter:none}}')}function ye(t,e=("undefined"!=typeof document?document.documentElement:null)){e&&(be(),t?e.setAttribute("data-usa-variant",t):e.removeAttribute("data-usa-variant"))}function ve(){ne(),oe(),le(),ce(),ue(),pe(),fe(),me(),ge()}const xe={modal:"scale(0.94)","drawer-start":"translateX(-100%)","drawer-end":"translateX(100%)","drawer-bottom":"translateY(100%)",sheet:"translateY(40px)"};function we(t="usa-dialog"){return y(t,t=>class extends t{constructor(){super(...arguments),this._dialog=null,this._panel=null,this._backdrop=null,this._busy=null,this._syncing=!1,this.returnValue=""}static get observedAttributes(){return["open","kind","label"]}get dialog(){return this._dialog}get open(){return this.hasAttribute("open")}set open(t){this.toggleAttribute("open",!!t)}get kind(){return V(this,xe,"modal")}changed(t){if("open"===t){if(this._syncing)return;this.open?this.show():this.close()}else this.syncAttrs()}syncAttrs(){if(!this._dialog)return;this._dialog.setAttribute("data-kind",this.kind),this._dialog.setAttribute("aria-modal","true");const t=this.getAttribute("label");t&&this._dialog.setAttribute("aria-label",t)}mount(){if(!this._dialog){const t=this.shadowRoot||this.attachShadow({mode:"open"});t.innerHTML='<dialog part="dialog"><div part="backdrop" aria-hidden="true"></div><div part="panel"><slot></slot></div></dialog>',function(t,e){try{if("function"==typeof CSSStyleSheet&&"adoptedStyleSheets"in t){const s=new CSSStyleSheet;return s.replaceSync(e),void(t.adoptedStyleSheets=[s])}}catch{}const s=document.createElement("style");s.textContent=e,t.prepend(s)}(t,':host{display:contents}dialog{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;color:inherit;overflow:hidden}dialog:not([open]){display:none}dialog::backdrop{background:transparent}[part="backdrop"]{position:absolute;inset:0;background:var(--usa-dialog-backdrop,rgb(0 0 0 / 0.42))}[part="panel"]{position:absolute;left:50%;top:50%;translate:-50% -50%;box-sizing:border-box;width:min(var(--usa-dialog-width,480px),calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto;padding:var(--usa-dialog-padding,24px);border-radius:var(--usa-dialog-radius,12px);background:var(--usa-dialog-bg,Canvas);color:var(--usa-dialog-fg,CanvasText);box-shadow:0 32px 64px -12px rgb(0 0 0 / 0.45),0 0 0 1px rgb(127 127 127 / 0.18)}dialog[data-kind^="drawer"] [part="panel"]{top:0;bottom:0;translate:none;max-height:none;height:100%;border-radius:0;width:min(var(--usa-dialog-width,380px),88vw)}dialog[data-kind="drawer-start"] [part="panel"]{left:0}dialog[data-kind="drawer-end"] [part="panel"]{left:auto;right:0}dialog[data-kind="drawer-bottom"] [part="panel"],dialog[data-kind="sheet"] [part="panel"]{top:auto;bottom:0;left:0;right:0;translate:none;width:100%;height:auto;max-height:85vh;border-radius:var(--usa-dialog-radius,16px) var(--usa-dialog-radius,16px) 0 0}dialog[data-kind="sheet"] [part="panel"]{left:50%;translate:-50% 0;width:min(var(--usa-dialog-width,560px),100vw)}'),this._dialog=t.querySelector("dialog"),this._backdrop=t.querySelector("[part=backdrop]"),this._panel=t.querySelector("[part=panel]")}this.syncAttrs();const t=this._dialog;this.listen(t,"cancel",t=>{t.preventDefault(),this.flag("no-esc")||this.close("cancel")}),this.listen(this._backdrop,"click",()=>!this.flag("no-backdrop-close")&&this.close("backdrop")),this.listen(this,"click",t=>{const e=t.target.closest?.("[data-close]");e&&this.contains(e)&&this.close(e.getAttribute("data-close")||"close")}),this.open&&!t.open&&this.show()}unmount(){this._dialog?.open&&this._dialog.close()}setOpenAttr(t){this._syncing=!0,this.toggleAttribute("open",t),this._syncing=!1}async show(){await this._busy;const t=this._dialog;if(t){if(!t.open){this.setOpenAttr(!0);try{"function"==typeof t.showModal?t.showModal():t.setAttribute("open","")}catch{t.setAttribute("open","")}this.emit("open"),this.reduced?await this.animate2([{opacity:0},{opacity:1}],[{opacity:0},{opacity:1}],160,X):await this.animate2([{opacity:0,transform:xe[this.kind]},{opacity:1,transform:"none"}],[{opacity:0},{opacity:1}],"modal"===this.kind?260:360,j)}}else this.setOpenAttr(!0)}async close(t=""){await this._busy;const e=this._dialog;e&&e.open?this.emit("beforeclose",{returnValue:t})?(this.returnValue=t,this._busy=(async()=>{const s=this.reduced?{opacity:0}:{opacity:0,transform:xe[this.kind]},i=this.reduced?{opacity:1}:{opacity:1,transform:"none"};await this.animate2([i,s],[{opacity:1},{opacity:0}],this.reduced?120:200,"cubic-bezier(0.7, 0, 0.84, 0)","forwards");try{"function"==typeof e.close?e.close(t):e.removeAttribute("open")}catch{e.removeAttribute("open")}e.removeAttribute("open"),this._panel?.getAnimations?.().forEach(t=>t.cancel()),this._backdrop?.getAnimations?.().forEach(t=>t.cancel()),this.setOpenAttr(!1),this.emit("close",{returnValue:t})})(),await this._busy,this._busy=null):this.setOpenAttr(!0):this.setOpenAttr(!1)}animate2(t,e,s,i,a="none"){const r=this._panel?this.motion(this._panel,t,{duration:s,easing:i,fill:a}):null,n=this._backdrop?this.motion(this._backdrop,e,{duration:s,easing:"linear",fill:a}):null;return Promise.all([r?.finished,n?.finished].map(t=>t?.catch(()=>{}))).then(()=>{})}},{id:"dialog",text:"usa-dialog{display:contents}usa-dialog:not(:defined){display:none}"})}function ke(t="usa-accordion"){return y(t,t=>class extends t{constructor(){super(...arguments),this._running=new WeakMap}static get observedAttributes(){return[]}get items(){return Array.from(this.children).filter(t=>"DETAILS"===t.tagName)}mount(){this.listen(this,"click",t=>{const e=t.target.closest?.("summary"),s=e?.parentElement;e&&s&&"DETAILS"===s.tagName&&s.parentElement===this&&(t.preventDefault(),this.toggleItem(s))})}closedHeight(t){const e=t.querySelector(":scope > summary"),s="function"==typeof getComputedStyle?getComputedStyle(t):null,i=s?["paddingTop","paddingBottom","borderTopWidth","borderBottomWidth"].reduce((t,e)=>t+(parseFloat(s[e])||0),0):0;return(e?e.getBoundingClientRect().height:0)+i}async toggleItem(t,e=!t.open||t.hasAttribute("data-closing")){e&&!this.flag("multiple")&&this.items.forEach(e=>e!==t&&e.open&&this.toggleItem(e,!1)),this._running.get(t)?.cancel(),this._running.delete(t);const s=this.reduced?0:this.num("duration",300),i=t.getBoundingClientRect().height;if(e&&(t.removeAttribute("data-closing"),t.open=!0),this.emit("toggle",{details:t,open:e}),!s||"function"!=typeof t.animate)return void(e||(t.open=!1));const a=e?t.getBoundingClientRect().height:this.closedHeight(t);e||t.setAttribute("data-closing",""),t.style.overflow="hidden";const r=t.animate([{height:`${i}px`},{height:`${a}px`}],{duration:s,easing:X});this._running.set(t,r),await r.finished.catch(()=>{}),this._running.get(t)===r&&(this._running.delete(t),t.style.overflow="",e||(t.open=!1,t.removeAttribute("data-closing")))}},{id:"accordion",text:'usa-accordion{display:block}usa-accordion>details>summary{cursor:pointer}usa-accordion>details>summary::-webkit-details-marker{display:none}usa-accordion>details>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:1em}usa-accordion>details>summary::after{content:"";flex:none;width:0.5em;height:0.5em;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-25%) rotate(45deg);transition:transform 0.3s cubic-bezier(0.22,1,0.36,1);opacity:0.7}usa-accordion>details[open]:not([data-closing])>summary::after{transform:translateY(25%) rotate(-135deg)}@media (prefers-reduced-motion:reduce){usa-accordion>details>summary::after{transition:none}}'})}function _e(t="usa-view-switch"){return y(t,t=>class extends t{constructor(){super(...arguments),this._index=-1,this._anims=[]}static get observedAttributes(){return["active"]}get views(){return Array.from(this.children)}get active(){return this.str("active","0")}set active(t){this.setAttribute("active",String(t))}indexOf(t){const e=this.views,s=e.findIndex(e=>e.dataset.view===String(t));if(s>=0)return s;const i=Number(t);return Number.isInteger(i)&&i>=0&&i<e.length?i:-1}changed(){this.show(this.active)}mount(){const t=Math.max(0,this.indexOf(this.active));this._index=t,this.views.forEach((e,s)=>this.setVisible(e,s===t))}setVisible(t,e){t.hidden=!e,t.toggleAttribute("inert",!e),t.toggleAttribute("data-active",e)}async show(t){const e=this.indexOf(t),s=this._index;if(e<0||e===s)return;const i=this.views,a=i[s],r=i[e];this._index=e;const n=r.dataset.view??String(e);if(this.active!==n&&this.active!==String(e)&&this.setAttribute("active",n),this._anims.splice(0).forEach(t=>t.finish()),this.setVisible(r,!0),this.emit("change",{view:r,index:e,name:n}),!a)return;const o=this.num("duration",320),l=e>s?1:-1;let c,u;switch(this.reduced?"fade":this.str("effect","slide")){case"fade":c={opacity:0},u={opacity:0};break;case"scale":c={opacity:0,transform:"scale(0.96)"},u={opacity:0,transform:"scale(1.04)"};break;case"drill":c={opacity:0,transform:`scale(${l>0?1.06:.94})`},u={opacity:0,transform:`scale(${l>0?.94:1.06})`};break;default:c={opacity:0,transform:`translateX(${32*-l}px)`},u={opacity:0,transform:`translateX(${48*l}px)`}}const d=t=>"transform"in t?{opacity:1,transform:"none"}:{opacity:1};a.setAttribute("data-leaving","");const h=this.motion(a,[d(c),c],{duration:.6*o,easing:X,fill:"forwards"}),p=this.motion(r,[u,d(u)],{duration:o,delay:.15*o,easing:j,fill:"backwards"});this._anims=[h,p].filter(t=>!!t),await Promise.all(this._anims.map(t=>t.finished.catch(()=>{}))),a.removeAttribute("data-leaving"),this._index!==s&&this.setVisible(a,!1),h?.cancel()}},{id:"view-switch",text:"usa-view-switch{display:grid}usa-view-switch>*{grid-area:1 / 1;min-width:0}usa-view-switch>[hidden]:not([data-leaving]){display:none !important}usa-view-switch>[data-leaving]{display:block;pointer-events:none}"})}const Ae=t=>t instanceof Element?Array.from(t.children):Array.from(t);function Me(){we(),ke(),_e()}const Ee={default:{stiffness:170,damping:26,mass:1},gentle:{stiffness:120,damping:14,mass:1},wobbly:{stiffness:180,damping:12,mass:1},stiff:{stiffness:210,damping:20,mass:1},bouncy:{stiffness:300,damping:10,mass:1},slow:{stiffness:280,damping:60,mass:1},molasses:{stiffness:280,damping:120,mass:1}};function Se(t){const e="string"==typeof t?Ee[t]||Ee.default:{...Ee.default,...t||{}},s=(t,e)=>"number"==typeof t&&Number.isFinite(t)&&t>0?t:e,i="object"==typeof t&&t||{};return{stiffness:s(e.stiffness,170),damping:Math.max(0,Number.isFinite(e.damping)?e.damping:26),mass:s(e.mass,1),velocity:Number.isFinite(i.velocity)?i.velocity:0,precision:s(i.precision,.001)}}function Ce(t,e,s,i,a){const r=s+(-t.stiffness*(e-i)-t.damping*s)/t.mass*a;return[e+r*a,r]}const $e=new Map;function Te(t,e=60){const s=Se(t),i=`${s.stiffness}|${s.damping}|${s.mass}|${s.velocity}|${s.precision}|${e}`,a=$e.get(i);if(a)return a;const r=[0];let n=0,o=s.velocity;const l=1e3/e;let c=0,u=l;for(;c<1e4&&([n,o]=Ce(s,n,o,1,.001),c+=1,!(c>=u&&(r.push(n),u+=l,Math.abs(1-n)<s.precision&&Math.abs(o)<10*s.precision))););r[r.length-1]=1;const d={values:r,duration:Math.round(c)};return $e.size>64&&$e.clear(),$e.set(i,d),d}function ze(){return"undefined"!=typeof CSS&&"function"==typeof CSS.supports&&CSS.supports("animation-timing-function","linear(0, 1)")}function Pe(t,e=48){const{values:s,duration:i}=Te(t);return ze()?{easing:Fe(s,e),duration:i}:{easing:D,duration:Math.min(i,1200)}}function Fe(t,e=48){const s=t.length,i=Math.max(1,Math.ceil((s-1)/Math.max(2,e-1))),a=[];for(let e=0;e<s-1;e+=i)a.push(String(Math.round(1e3*t[e])/1e3));return a.push("1"),`linear(${a.join(", ")})`}function Le(t={}){let e=Se(t.spring),s=t.value??0,i=0,a=s,r=0,n=0,o=!1;const l=()=>{o&&z(r),o=!1},c=()=>{const l=T();let u=Math.min(64,Math.max(1,l-n));for(n=l;u>0;){const t=Math.min(u,4);[s,i]=Ce(e,s,i,a,t/1e3),u-=t}const d=Math.max(1,5e-4*Math.abs(a));if(Math.abs(a-s)<e.precision*d*10&&Math.abs(i)<e.precision*d*100)return s=a,i=0,o=!1,t.onUpdate?.(s,0),void t.onRest?.(s);t.onUpdate?.(s,i),r=$(c)},u={get value(){return s},get velocity(){return i},get target(){return a},get animating(){return o},set(e,s){if(a=e,void 0!==s&&Number.isFinite(s)&&(i=s),h())return u.jump(e),void t.onRest?.(e);o||(o=!0,n=T(),r=$(c))},jump(e){l(),s=a=e,i=0,t.onUpdate?.(s,0)},stop(){l(),i=0,a=s},configure(t){e=Se(t)}};return u}function qe(t,e,s=.325){return t+e*s}function Re(t,e){return Array.isArray(e)?e.length?e.reduce((e,s)=>Math.abs(s-t)<Math.abs(e-t)?s:e,e[0]):t:"number"==typeof e&&e>0?Math.round(t/e)*e:t}function Ie(t,e,s=.55){if(e<=0)return 0;return(t<0?-1:1)*(1-1/(Math.abs(t)*s/e+1))*e}const Ne=new Set(["bounce-in","pop","drop"]);function Ye(t,e=!1){if(e)return Ne.has(t)?[{opacity:0},{opacity:1}]:[{opacity:1},{opacity:1}];switch(t){case"pop":return[{opacity:0,transform:"scale(0.5)"},{opacity:1,transform:"scale(1)"}];case"drop":return[{opacity:0,transform:"translate3d(0, -120%, 0)"},{opacity:1,transform:"translate3d(0, 0, 0)"}];case"jelly":return[{transform:"scale3d(1, 1, 1)"},{transform:"scale3d(1.25, 0.75, 1)",offset:.3},{transform:"scale3d(0.75, 1.25, 1)",offset:.4},{transform:"scale3d(1.15, 0.85, 1)",offset:.5},{transform:"scale3d(0.95, 1.05, 1)",offset:.65},{transform:"scale3d(1.05, 0.95, 1)",offset:.75},{transform:"scale3d(1, 1, 1)"}];case"rubber-band":return[{transform:"scale3d(1, 1, 1)"},{transform:"scale3d(1.3, 0.7, 1)",offset:.3},{transform:"scale3d(0.8, 1.2, 1)",offset:.45},{transform:"scale3d(1.1, 0.9, 1)",offset:.6},{transform:"scale3d(0.97, 1.03, 1)",offset:.8},{transform:"scale3d(1, 1, 1)"}];default:return[{opacity:0,transform:"scale(0.3)"},{opacity:1,transform:"scale(1)"}]}}const Be={"bounce-in":"bouncy",pop:"wobbly",drop:"bouncy"};function Oe(t="usa-spring"){return y(t,t=>class extends t{constructor(){super(...arguments),this._anim=null}static get observedAttributes(){return["effect","trigger","repeat"]}get effect(){return this.str("effect","bounce-in")}set effect(t){this.setAttribute("effect",t)}config(){return this.hasAttribute("stiffness")||this.hasAttribute("damping")||this.hasAttribute("mass")?{stiffness:this.num("stiffness",170),damping:this.num("damping",26),mass:this.num("mass",1)}:this.str("preset",Be[this.effect]||"wobbly")}mount(){const t=this.str("trigger","view"),e=Ne.has(this.effect);"view"===t?(e&&this.setAttribute("data-state","hidden"),this.inView(t=>{t?this.play():this.flag("repeat")&&e&&this.reset()},{threshold:.15})):("hover"===t&&this.listen(this,"pointerenter",()=>this.play()),"click"===t&&(this.listen(this,"click",()=>this.play()),this.listen(this,"keydown",t=>("Enter"===t.key||" "===t.key)&&!t.repeat&&this.play())))}unmount(){this._anim?.cancel(),this._anim=null}reset(){this._anim?.cancel(),this._anim=null,Ne.has(this.effect)&&this.setAttribute("data-state","hidden")}async play(){const t=this.effect,e=this.reduced;this._anim?.cancel(),this.setAttribute("data-state","playing");const s=Ye(t,e),i=Ne.has(t)&&!e?Pe(this.config()):{duration:e?250:this.num("duration",900),easing:"ease-out"},a=this.motion(this,s,{...i,delay:this.num("delay",0),fill:"backwards"});if(this._anim=a,a){try{await a.finished}catch{return}if(this._anim!==a)return}this._anim=null,this.setAttribute("data-state","done"),this.emit("complete",{effect:t})}},{id:"spring",text:'usa-spring{display:inline-block;transform-origin:50% 70%}usa-spring[block]{display:block}usa-spring[effect="drop"]{transform-origin:50% 100%}usa-spring[data-state="hidden"]{opacity:0}usa-spring[trigger="click"],usa-spring[trigger="hover"]{cursor:pointer;-webkit-tap-highlight-color:transparent}'})}const Xe=t=>{if(!t.trim())return null;const e=t.split(",").map(t=>Number(t.trim())).filter(t=>Number.isFinite(t));return e.length?t.includes(",")?e:e[0]:null};function De(t="usa-draggable"){return y(t,t=>class extends t{constructor(){super(...arguments),this._x=0,this._y=0,this._drag=null}static get observedAttributes(){return["axis","disabled","preset"]}get x(){return this._x}get y(){return this._y}get dragging(){return!!this._drag}render(){this.style.transform=`translate3d(${this._x}px, ${this._y}px, 0)`,this.style.setProperty("--usa-drag-x",`${this._x}px`),this.style.setProperty("--usa-drag-y",`${this._y}px`)}axis(){return this.str("axis","both")}limits(){if("parent"!==this.str("bounds")||!this.parentElement)return null;const t=this.parentElement.getBoundingClientRect(),e=this.getBoundingClientRect(),s=e.left-this._x,i=e.top-this._y;return{minX:t.left-s,maxX:t.right-s-e.width,minY:t.top-i,maxY:t.bottom-i-e.height}}mount(){let t=0;const e=()=>{++t>=2&&(t=0,this.removeAttribute("data-moving"),this.emit("settle",{x:this._x,y:this._y}))},s=this.str("preset","wobbly");this._sx=Le({value:this._x,spring:s,onUpdate:t=>(this._x=t,this.render()),onRest:e}),this._sy=Le({value:this._y,spring:s,onUpdate:t=>(this._y=t,this.render()),onRest:e}),this.hasAttribute("tabindex")||(this.tabIndex=0),this.setAttribute("aria-roledescription","draggable"),this.listen(this,"pointerdown",t=>this.start(t)),this.listen(this,"pointermove",t=>this.move(t)),this.listen(this,"pointerup",t=>this.end(t)),this.listen(this,"pointercancel",t=>this.end(t)),this.listen(this,"keydown",t=>this.key(t)),this.render()}unmount(){this._sx?.stop(),this._sy?.stop(),this._drag=null}start(t){if(!(this.flag("disabled")||"mouse"===t.pointerType&&0!==t.button)){this._sx.stop(),this._sy.stop(),this._drag={id:t.pointerId,px:t.clientX,py:t.clientY,ox:this._x,oy:this._y,samples:[[t.clientX,t.clientY,"number"==typeof t.timeStamp?t.timeStamp:Date.now()]]};try{this.setPointerCapture?.(t.pointerId)}catch{}this.setAttribute("data-dragging",""),this.emit("drag-start",{x:this._x,y:this._y})}}move(t){const e=this._drag;if(!e||t.pointerId!==e.id)return;const s=this.axis();let i="y"===s?e.ox:e.ox+t.clientX-e.px,a="x"===s?e.oy:e.oy+t.clientY-e.py;const r=this.limits();if(r){const t=(t,e,s,i)=>t<e?e+Ie(t-e,i):t>s?s+Ie(t-s,i):t;i=t(i,r.minX,r.maxX,200),a=t(a,r.minY,r.maxY,200)}this._x=i,this._y=a,e.samples.push([t.clientX,t.clientY,"number"==typeof t.timeStamp?t.timeStamp:Date.now()]),e.samples.length>6&&e.samples.shift(),this.render(),this.emit("drag",{x:i,y:a})}velocity(){const t=this._drag?.samples||[];if(t.length<2)return[0,0];const e=t[0],s=t[t.length-1],i=(s[2]-e[2])/1e3;return i<=0||i>.3?[0,0]:[(s[0]-e[0])/i,(s[1]-e[1])/i]}end(t){const e=this._drag;if(!e||t.pointerId!==e.id)return;let[s,i]=this.velocity();const a=this.axis();"y"===a&&(s=0),"x"===a&&(i=0),this._drag=null,this.removeAttribute("data-dragging");let r=this._x,n=this._y;this.flag("spring-back")?(r=0,n=0):(this.flag("inertia")&&!this.reduced&&(r=qe(r,s),n=qe(n,i)),[r,n]=this.constrain(r,n)),this.emit("drag-end",{x:r,y:n,vx:s,vy:i}),this.go(r,n,s,i)}constrain(t,e){const s=Xe(this.str("snap"));let i=Re(t,s),a=Re(e,s);const r=this.limits();r&&(i=U(i,r.minX,Math.max(r.minX,r.maxX)),a=U(a,r.minY,Math.max(r.minY,r.maxY)));const n=this.axis();return["y"===n?0:i,"x"===n?0:a]}go(t,e,s=0,i=0){this.setAttribute("data-moving",""),this._sx.set(t,s),this._sy.set(e,i)}key(t){if(this.flag("disabled"))return;const e=this.num("step",16),s=Xe(this.str("snap")),i="number"==typeof s?s:e,a={ArrowLeft:[-i,0],ArrowRight:[i,0],ArrowUp:[0,-i],ArrowDown:[0,i]};if("Home"===t.key||"Escape"===t.key)return t.preventDefault(),void this.reset();const r=a[t.key];if(!r)return;t.preventDefault();const[n,o]=this.flag("spring-back")?[this._sx.target+r[0],this._sy.target+r[1]]:this.constrain(this._sx.target+r[0],this._sy.target+r[1]);this.go(n,o)}moveTo(t,e,s=!0){if(!s)return this._sx.jump(t),void this._sy.jump(e);this.go(t,e)}reset(){this.go(0,0)}},{id:"draggable",text:'usa-draggable{display:inline-block;touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab;will-change:transform;-webkit-tap-highlight-color:transparent}usa-draggable[axis="x"]{touch-action:pan-y}usa-draggable[axis="y"]{touch-action:pan-x}usa-draggable[block]{display:block}usa-draggable[data-dragging]{cursor:grabbing}usa-draggable[disabled]{cursor:default}usa-draggable:focus-visible{outline:2px solid var(--usa-accent,#7c5cff);outline-offset:3px}'})}function je(t="usa-overscroll"){return y(t,t=>class extends t{constructor(){super(...arguments),this._off=0}static get observedAttributes(){return["axis","disabled"]}get offset(){return this._off}set(t){this._off=t,this.style.setProperty("--usa-overscroll",`${t}px`),this.toggleAttribute("data-stretched",Math.abs(t)>.5)}edge(t){const e="x"===this.str("axis","y"),s=e?this.scrollLeft:this.scrollTop,i=(e?this.scrollWidth-this.clientWidth:this.scrollHeight-this.clientHeight)-1;return t<0&&s<=0||t>0&&s>=i}stretch(t){const e=this.num("max",120);this.set(Math.max(-e,Math.min(e,Ie(t,2.5*e))))}mount(){this._spring=Le({spring:this.str("preset","default"),onUpdate:t=>this.set(t)});const t="x"===this.str("axis","y"),e=()=>this.flag("disabled")||this.reduced;let s,i=0;this.listen(this,"wheel",a=>{const r=t&&a.deltaX||a.deltaY;!e()&&r&&this.edge(r)&&(this._spring.stop(),i-=r,this.stretch(i),clearTimeout(s),s=setTimeout(()=>{i=0,this._spring.jump(this._off),this._spring.set(0)},140))},{passive:!0}),this.onCleanup(()=>clearTimeout(s));let a=0,r=!1;this.listen(this,"touchstart",s=>{if(e())return;const i=s.touches[0];a=t?i.clientX:i.clientY,r=!1,this._spring.stop()},{passive:!0}),this.listen(this,"touchmove",s=>{if(e())return;const i=s.touches[0],n=(t?i.clientX:i.clientY)-a;!r&&0!==n&&this.edge(-n)&&(r=!0),r&&(s.cancelable&&s.preventDefault(),this.stretch(n))},{passive:!1});const n=()=>{r&&(r=!1,this._spring.jump(this._off),this._spring.set(0))};this.listen(this,"touchend",n),this.listen(this,"touchcancel",n)}unmount(){this._spring?.stop(),this.set(0)}},{id:"overscroll",text:'usa-overscroll{display:block;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}usa-overscroll[axis="x"]{overflow-y:hidden}usa-overscroll>*{transform:translate3d(0,var(--usa-overscroll,0px),0)}usa-overscroll[axis="x"]>*{transform:translate3d(var(--usa-overscroll,0px),0,0)}usa-overscroll[data-stretched]>*{will-change:transform}'})}function He(){Oe(),De(),je()}const Ve=new Set(["holo","border-glow","spotlight","parallax-layers","lift"]);function Ue(t="usa-card"){return y(t,t=>class extends t{constructor(){super(...arguments),this._frame=0,this._spacer=null,this._backdrop=null,this._busy=!1}static get observedAttributes(){return["effect","trigger","disabled"]}get effects(){return this.str("effect","lift").split(/[\s,]+/).filter(Boolean)}has(t){return this.effects.includes(t)}get flipped(){return this.flag("flipped")}set flipped(t){this.setFlag("flipped",t)}get expanded(){return this.flag("expanded")}mount(){if(this.flag("disabled"))return;const t=this.str("color");if(t&&this.style.setProperty("--usa-card-glow",t),this.has("sheen")&&!this.querySelector(":scope > .usa-card-sheen")&&this.append(We("usa-card-sheen")),this.has("holo")&&!this.querySelector(":scope > .usa-card-holo")&&this.append(We("usa-card-holo")),this.has("flip")){"click"===this.str("trigger","hover")&&(this.hasAttribute("tabindex")||(this.tabIndex=0),this.setAttribute("role",this.getAttribute("role")||"button"),this.setAttribute("aria-pressed",String(this.flipped)),this.listen(this,"click",t=>!Ge(t.target,this)&&this.flip()),this.listen(this,"keydown",t=>{"Enter"!==t.key&&" "!==t.key||t.target!==this||(t.preventDefault(),this.flip())})),this.setBackHidden()}if(this.has("expand")&&(this.hasAttribute("tabindex")||(this.tabIndex=0),this.setAttribute("aria-expanded",String(this.expanded)),this.listen(this,"click",t=>{const e=t.target;e.closest?.("[data-close]")?(t.stopPropagation(),this.collapse()):this.expanded||Ge(e,this)||this.expand()}),this.listen(this,"keydown",t=>{"Escape"===t.key&&this.expanded?this.collapse():"Enter"!==t.key&&" "!==t.key||t.target!==this||this.expanded||(t.preventDefault(),this.expand())})),!this.effects.some(t=>Ve.has(t))||this.reduced)return;let e=null,s=.5,i=.5;const a=()=>{this._frame=0;const t=U(2*s-1,-1,1),e=U(2*i-1,-1,1);if(this.style.setProperty("--usa-card-x",`${(100*s).toFixed(1)}%`),this.style.setProperty("--usa-card-y",`${(100*i).toFixed(1)}%`),this.style.setProperty("--usa-card-nx",t.toFixed(3)),this.style.setProperty("--usa-card-ny",e.toFixed(3)),this.has("parallax-layers")){const s=this.num("depth",16);this.querySelectorAll("[data-depth]").forEach(i=>{const a=Number(i.dataset.depth)||.5;i.style.transform=`translate3d(${(t*s*a).toFixed(1)}px, ${(e*s*a).toFixed(1)}px, 0)`})}};this.listen(this,"pointerenter",()=>{e=this.getBoundingClientRect(),this.setAttribute("data-hover","")}),this.listen(this,"pointermove",t=>{this.expanded||(e=e||this.getBoundingClientRect(),s=(t.clientX-e.left)/(e.width||1),i=(t.clientY-e.top)/(e.height||1),this._frame||(this._frame=$(a)))}),this.listen(this,"pointerleave",()=>{e=null,s=i=.5,this.removeAttribute("data-hover"),this._frame||(this._frame=$(a))})}unmount(){z(this._frame),this._frame=0,this.expanded&&this.finishCollapse()}setBackHidden(){const t=this.querySelector(":scope > [data-front]"),e=this.querySelector(":scope > [data-back]");t?.setAttribute("aria-hidden",String(this.flipped)),e?.setAttribute("aria-hidden",String(!this.flipped))}flip(t){const e=void 0===t?!this.flipped:t;e!==this.flipped&&(this.flipped=e,this.hasAttribute("aria-pressed")&&this.setAttribute("aria-pressed",String(e)),this.setBackHidden(),this.emit("flip",{flipped:e}))}async expand(){if(this.expanded||this._busy)return;this._busy=!0;const t=this.getBoundingClientRect(),e=document.createElement("div");e.className="usa-card-spacer",e.style.cssText=`width:${t.width}px;height:${t.height}px`,e.setAttribute("aria-hidden","true"),this.before(e),this._spacer=e;const s=document.createElement("div");s.className="usa-card-backdrop",s.addEventListener("click",()=>this.collapse()),this.before(s),this._backdrop=s,this.setFlag("expanded",!0),this.setAttribute("aria-expanded","true"),this.emit("expand");const i=this.getBoundingClientRect();await this.flipFrom(t,i),this.motion(s,[{opacity:0},{opacity:1}],{duration:250,easing:"ease-out"}),this.focus({preventScroll:!0}),this._busy=!1}async collapse(){if(!this.expanded||this._busy)return;this._busy=!0;const t=this.getBoundingClientRect(),e=this._backdrop;e&&this.motion(e,[{opacity:1},{opacity:0}],{duration:200,easing:"ease-in",fill:"forwards"}),this.finishCollapse(),this.emit("collapse");const s=this.getBoundingClientRect();await this.flipFrom(t,s),this._busy=!1}finishCollapse(){this.setFlag("expanded",!1),this.setAttribute("aria-expanded","false"),this._spacer?.remove(),this._backdrop?.remove(),this._spacer=this._backdrop=null}async flipFrom(t,e){if(this.reduced){const t=this.motion(this,[{opacity:.4},{opacity:1}],{duration:200});return void await(t?.finished.catch(()=>{}))}const s=t.width/(e.width||1),i=t.height/(e.height||1),a=t.left-e.left,r=t.top-e.top,{easing:n,duration:o}=Pe("stiff"),l=this.motion(this,[{transformOrigin:"0 0",transform:`translate(${a}px, ${r}px) scale(${s}, ${i})`},{transformOrigin:"0 0",transform:"none"}],{duration:Math.min(o,900),easing:n||X});await(l?.finished.catch(()=>{}))}},{id:"card",text:'usa-card{--usa-card-radius:18px;--usa-card-bg:var(--usa-surface,#1b1e27);--usa-card-glow:var(--usa-accent,#7c5cff);--usa-card-x:50%;--usa-card-y:50%;--usa-card-nx:0;--usa-card-ny:0;position:relative;display:block;border-radius:var(--usa-card-radius);isolation:isolate;-webkit-tap-highlight-color:transparent}usa-card:focus-visible{outline:2px solid var(--usa-card-glow);outline-offset:3px}usa-card[effect~="lift"]{transition:transform 0.45s cubic-bezier(0.34,1.56,0.64,1),box-shadow 0.45s ease}usa-card[effect~="lift"][data-hover],usa-card[effect~="lift"]:focus-visible{transform:translateY(-6px) perspective(900px) rotateX(calc(var(--usa-card-ny) * -4deg)) rotateY(calc(var(--usa-card-nx) * 4deg));box-shadow:0 22px 44px -18px rgb(0 0 0 / 0.55)}usa-card[effect~="glass"]{background:color-mix(in srgb,var(--usa-card-bg) 45%,transparent);border:1px solid rgb(255 255 255 / 0.16);-webkit-backdrop-filter:blur(18px) saturate(1.5);backdrop-filter:blur(18px) saturate(1.5)}usa-card[effect~="spotlight"]::before,usa-card[effect~="border-glow"]::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:0;transition:opacity 0.3s ease}usa-card[effect~="spotlight"]::before{z-index:-1;background:radial-gradient(260px circle at var(--usa-card-x) var(--usa-card-y),color-mix(in srgb,var(--usa-card-glow) 28%,transparent),transparent 70%)}usa-card[effect~="border-glow"]::after{padding:1.5px;background:radial-gradient(180px circle at var(--usa-card-x) var(--usa-card-y),var(--usa-card-glow),transparent 70%);-webkit-mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0)}usa-card[data-hover]::before,usa-card[data-hover]::after{opacity:1}@property --usa-card-angle{syntax:"<angle>";inherits:false;initial-value:0deg}usa-card[effect~="conic-border"]{border:2px solid transparent;background:linear-gradient(var(--usa-card-bg),var(--usa-card-bg)) padding-box,conic-gradient(from var(--usa-card-angle),var(--usa-card-glow),#22d3ee,#f472b6,var(--usa-card-glow)) border-box;animation:usa-card-spin 4s linear infinite}@keyframes usa-card-spin{to{--usa-card-angle:360deg}}usa-card .usa-card-sheen{position:absolute;inset:0;border-radius:inherit;overflow:hidden;pointer-events:none}usa-card .usa-card-sheen::before{content:"";position:absolute;top:0;bottom:0;width:45%;left:-60%;transform:skewX(-20deg);background:linear-gradient(90deg,transparent,rgb(255 255 255 / 0.35),transparent)}usa-card[effect~="sheen"]:hover .usa-card-sheen::before,usa-card[effect~="sheen"]:focus-visible .usa-card-sheen::before{left:130%;transition:left 0.8s cubic-bezier(0.22,1,0.36,1)}usa-card .usa-card-holo{position:absolute;inset:0;border-radius:inherit;pointer-events:none;mix-blend-mode:color-dodge;opacity:0.35;background:linear-gradient(115deg,transparent 20%,#ff7ad9 35%,#7af0ff 45%,#ffe27a 55%,transparent 70%) calc(var(--usa-card-x) * 1.4 - 20%) calc(var(--usa-card-y) * 1.4 - 20%) / 220% 220%;transition:opacity 0.3s ease}usa-card[data-hover] .usa-card-holo{opacity:0.7}usa-card[effect~="parallax-layers"] [data-depth]{transition:transform 0.25s ease-out;will-change:transform}usa-card[effect~="flip"]{perspective:1000px;display:grid}usa-card[effect~="flip"]>[data-front],usa-card[effect~="flip"]>[data-back]{grid-area:1 / 1;backface-visibility:hidden;-webkit-backface-visibility:hidden;border-radius:inherit;transition:transform 0.7s cubic-bezier(0.34,1.3,0.64,1),opacity 0.3s ease}usa-card[effect~="flip"]>[data-back]{transform:rotateY(180deg)}usa-card[effect~="flip"][axis="x"]>[data-back]{transform:rotateX(180deg)}usa-card[effect~="flip"][flipped]>[data-front],usa-card[effect~="flip"]:not([trigger="click"]):hover>[data-front]{transform:rotateY(-180deg)}usa-card[effect~="flip"][flipped]>[data-back],usa-card[effect~="flip"]:not([trigger="click"]):hover>[data-back]{transform:rotateY(0deg)}usa-card[effect~="flip"][axis="x"][flipped]>[data-front],usa-card[effect~="flip"][axis="x"]:not([trigger="click"]):hover>[data-front]{transform:rotateX(180deg)}usa-card[effect~="flip"][axis="x"][flipped]>[data-back],usa-card[effect~="flip"][axis="x"]:not([trigger="click"]):hover>[data-back]{transform:rotateX(0deg)}usa-card[effect~="flip"][trigger="click"]{cursor:pointer}usa-card[effect~="expand"]{cursor:zoom-in}usa-card[effect~="expand"]:not([expanded]) [data-detail]{display:none}usa-card[expanded]{position:fixed;inset:6vh max(4vw,calc(50vw - 420px));z-index:1000;overflow:auto;cursor:default;background:var(--usa-card-bg);box-shadow:0 30px 80px -20px rgb(0 0 0 / 0.6)}.usa-card-backdrop{position:fixed;inset:0;z-index:999;background:rgb(0 0 0 / 0.45)}@media (prefers-reduced-motion:reduce){usa-card,usa-card *,usa-card .usa-card-sheen::before{transition-duration:0.01ms !important;animation:none !important}usa-card[effect~="lift"][data-hover]{transform:none}usa-card[effect~="flip"]>[data-front],usa-card[effect~="flip"]>[data-back]{transform:none !important}usa-card[effect~="flip"][flipped]>[data-front],usa-card[effect~="flip"]:not([flipped])>[data-back]{opacity:0;visibility:hidden}usa-card[effect~="flip"]:not([trigger="click"]):hover>[data-front]{opacity:0;visibility:hidden}usa-card[effect~="flip"]:not([trigger="click"]):hover>[data-back]{opacity:1;visibility:visible}}@media (prefers-reduced-transparency:reduce),(forced-colors:active){usa-card[effect~="glass"]{background:var(--usa-card-bg);-webkit-backdrop-filter:none;backdrop-filter:none}}'})}function We(t){const e=document.createElement("span");return e.className=t,e.setAttribute("aria-hidden","true"),e}function Ge(t,e){const s=t?.closest?.("a, button, input, select, textarea, label, [contenteditable]");return!!s&&s!==e&&e.contains(s)}function Ke(t="usa-card-stack"){return y(t,t=>class extends t{constructor(){super(...arguments),this._drag=null,this._busy=!1}static get observedAttributes(){return["visible","offset","disabled"]}get top(){return this.cards()[0]||null}cards(){return Array.from(this.children).filter(t=>!t.hasAttribute("data-gone"))}layout(t=0){const e=this.num("visible",3),s=this.num("offset",10),i=this.reduced;this.cards().forEach((a,r)=>{if(a.style.zIndex=String(100-r),a.toggleAttribute("data-top",0===r),a.setAttribute("aria-hidden",String(0!==r)),0===r){const e=i?0:t/18;a.style.transform=`translate3d(${t}px, 0, 0) rotate(${e.toFixed(2)}deg)`,a.style.opacity="1"}else{const i=Math.min(r,e),n=Math.min(1,Math.abs(t)/this.num("threshold",90)),o=Math.max(0,i-n);a.style.transform=`translate3d(0, ${(o*s).toFixed(1)}px, 0) scale(${(1-.05*o).toFixed(3)})`,a.style.opacity=r>e?"0":"1"}})}mount(){this.hasAttribute("tabindex")||(this.tabIndex=0),this.hasAttribute("role")||this.setAttribute("role","group"),this.setAttribute("aria-roledescription","card stack"),this._x=Le({spring:"wobbly",onUpdate:t=>this.layout(t)}),this.layout(),this.listen(this,"pointerdown",t=>{if(!this.flag("disabled")&&!this._busy&&this.top&&this.top.contains(t.target)){this._x.stop(),this._drag={id:t.pointerId,x0:t.clientX-this._x.value,t0:t.timeStamp};try{this.setPointerCapture?.(t.pointerId)}catch{}this.setAttribute("data-dragging","")}}),this.listen(this,"pointermove",t=>{this._drag&&t.pointerId===this._drag.id&&this._x.jump(t.clientX-this._drag.x0)});const t=t=>{if(!this._drag||t.pointerId!==this._drag.id)return;this._drag=null,this.removeAttribute("data-dragging");const e=this._x.value;Math.abs(e)>=this.num("threshold",90)?this.swipe(e>0?"right":"left"):this._x.set(0)};this.listen(this,"pointerup",t),this.listen(this,"pointercancel",t),this.listen(this,"keydown",t=>{"ArrowLeft"!==t.key&&"ArrowRight"!==t.key||(t.preventDefault(),this.swipe("ArrowLeft"===t.key?"left":"right"))});const e="undefined"!=typeof MutationObserver?new MutationObserver(()=>this.layout(this._x.value)):null;e?.observe(this,{childList:!0}),this.onCleanup(()=>e?.disconnect())}unmount(){this._x?.stop()}async swipe(t){const e=this.top;if(!e||this._busy||this.flag("disabled"))return;this._busy=!0,this._x.stop();const s=this._x.value,i=("left"===t?-1:1)*Math.max(320,1.4*(this.getBoundingClientRect().width||300));e.setAttribute("data-gone",""),this._x.jump(0),this.layout(0);const a=this.reduced?null:this.motion(e,[{transform:`translate3d(${s}px,0,0) rotate(${s/18}deg)`,opacity:1},{transform:`translate3d(${i}px,0,0) rotate(${i/14}deg)`,opacity:0}],{duration:380,easing:"cubic-bezier(0.3, 0.7, 0.4, 1)",fill:"forwards"});await(a?.finished.catch(()=>{})),a?.cancel(),e.removeAttribute("data-gone"),this.flag("loop")?this.append(e):e.remove(),this.layout(0),this._busy=!1,this.emit("swipe",{direction:t,card:e}),this.top||this.emit("empty")}},{id:"card-stack",text:"usa-card-stack{position:relative;display:grid;touch-action:pan-y;user-select:none;-webkit-user-select:none}usa-card-stack>*{grid-area:1 / 1;transform-origin:50% 100%;transition:transform 0.35s cubic-bezier(0.34,1.3,0.64,1),opacity 0.3s ease;will-change:transform}usa-card-stack>[data-top]{cursor:grab}usa-card-stack[data-dragging]>*,usa-card-stack>[data-top]{transition:none}usa-card-stack:focus-visible{outline:2px solid var(--usa-accent,#7c5cff);outline-offset:4px;border-radius:12px}@media (prefers-reduced-motion:reduce){usa-card-stack>*{transition:none}}"})}function Je(t="usa-sticky-stack"){return y(t,t=>class extends t{constructor(){super(...arguments),this._frame=0}static get observedAttributes(){return["top","gap","scale"]}mount(){const t=this.num("top",80),e=this.num("gap",16);if(Array.from(this.children).forEach((s,i)=>{s.style.top=`${t+i*e}px`,s.style.zIndex=String(i+1)}),this.reduced)return;const s=()=>{this._frame||(this._frame=$(()=>this.update()))};let i=!1;this.inView(t=>{t&&!i?(i=!0,window.addEventListener("scroll",s,{passive:!0}),window.addEventListener("resize",s,{passive:!0}),s()):!t&&i&&(i=!1,window.removeEventListener("scroll",s),window.removeEventListener("resize",s))}),this.onCleanup(()=>{window.removeEventListener("scroll",s),window.removeEventListener("resize",s)})}unmount(){z(this._frame),this._frame=0}update(){this._frame=0;const t=Array.from(this.children),e=t.map(t=>t.getBoundingClientRect()),s=this.num("scale",.06);t.forEach((i,a)=>{let r=0;for(let s=a+1;s<t.length;s++){const t=e[a].height||1;r+=U((e[a].bottom-e[s].top)/t,0,1)}const n=1-Math.min(3,r)*s;i.style.transform=r>.001?`scale(${n.toFixed(4)})`:"",i.style.filter=r>.001?`brightness(${(1-Math.min(.35,.12*r)).toFixed(3)})`:""})}},{id:"sticky-stack",text:"usa-sticky-stack{display:grid;gap:28vh;padding-bottom:10vh}usa-sticky-stack>*{position:sticky;transform-origin:50% 0;will-change:transform}"})}function Ze(t="usa-carousel-3d"){return y(t,t=>class extends t{constructor(){super(...arguments),this._i=0}static get observedAttributes(){return["radius","perspective","autoplay"]}get index(){return this._i}set index(t){this.goTo(t)}items(){return Array.from(this.children)}render(t){const e=this.items(),s=e.length||1,i=360/s,a=e[0]?.offsetWidth||200,r=this.num("radius",Math.round(a/2/Math.tan(Math.PI/s))+24),n=this.reduced;e.forEach((e,s)=>{const a=((s*i-t)%360+540)%360-180;e.style.transform=n?"":`rotateY(${a.toFixed(2)}deg) translateZ(${r}px)`,e.style.opacity=n?s===this._i?"1":"0":String(Math.max(.25,1-Math.abs(a)/200))})}mount(){this.style.setProperty("--usa-c3d-perspective",`${this.num("perspective",1200)}px`),this.hasAttribute("tabindex")||(this.tabIndex=0),this.setAttribute("role","region"),this.setAttribute("aria-roledescription","carousel"),this._i=Math.max(0,Math.min(this.items().length-1,this.num("index",0)));this._angle=Le({value:this._i*(()=>360/(this.items().length||1))(),spring:"gentle",onUpdate:t=>this.render(t)}),this.render(this._angle.value),this.mark(),this.listen(this,"keydown",t=>{if("ArrowRight"===t.key)this.next();else{if("ArrowLeft"!==t.key)return;this.prev()}t.preventDefault()});let t=null;this.listen(this,"pointerdown",e=>t=e.clientX),this.listen(this,"pointerup",e=>{if(null===t)return;const s=e.clientX-t;t=null,Math.abs(s)>40&&(s<0?this.next():this.prev())}),this.listen(this,"click",t=>{const e=this.items().find(e=>e.contains(t.target));if(e){const t=this.items().indexOf(e);t!==this._i&&this.goTo(t)}});const e=this.num("autoplay",0);if(e>0&&!this.reduced){let t=!1;const s=()=>t=!0,i=()=>t=!1;this.listen(this,"pointerenter",s),this.listen(this,"pointerleave",i),this.listen(this,"focusin",s),this.listen(this,"focusout",i);const a=setInterval(()=>!t&&!document.hidden&&this.next(),e);this.onCleanup(()=>clearInterval(a))}}unmount(){this._angle?.stop()}mark(){this.items().forEach((t,e)=>{e===this._i?t.setAttribute("aria-current","true"):t.removeAttribute("aria-current")})}goTo(t){const e=this.items().length;if(!e||!this._angle)return;const s=360/e,i=this._angle.target,a=Math.round(i/s);let r=((t-a)%e+e)%e;r>e/2&&(r-=e),this._i=(t%e+e)%e,this._angle.set((a+r)*s),this.reduced&&this.render(this._angle.value),this.mark(),this.emit("change",{index:this._i})}next(){this.goTo(this._i+1)}prev(){this.goTo(this._i-1)}},{id:"carousel-3d",text:"usa-carousel-3d{position:relative;display:grid;place-items:center;perspective:var(--usa-c3d-perspective,1200px);transform-style:preserve-3d;touch-action:pan-y;user-select:none;-webkit-user-select:none;min-height:220px}usa-carousel-3d>*{grid-area:1 / 1;backface-visibility:hidden;transition:opacity 0.3s ease;cursor:pointer}usa-carousel-3d>[aria-current]{cursor:default}usa-carousel-3d:focus-visible{outline:2px solid var(--usa-accent,#7c5cff);outline-offset:4px;border-radius:12px}@media (prefers-reduced-motion:reduce){usa-carousel-3d{perspective:none}usa-carousel-3d>:not([aria-current]){visibility:hidden}}"})}function Qe(){Ue(),Ke(),Je(),Ze()}let ts=null;const es=["#7c5cff","#22d3ee","#f472b6","#facc15","#34d399","#fb923c"],ss={star:"★",heart:"♥"};function is(t,e,s,i,a){const r=document.createElement("span"),n=ss[a]||("circle"!==a&&"square"!==a?a:"");return r.style.cssText=`position:absolute;left:${t}px;top:${e}px;width:${s}px;height:${s}px;margin:${-s/2}px 0 0 ${-s/2}px;will-change:transform,opacity;`+(n?`font-size:${2*s}px;line-height:${s}px;text-align:center;color:${i}`:`background:${i};border-radius:${"square"===a?"2px":"50%"}`),n&&(r.textContent=n),(ts&&ts.isConnected||(ts=document.createElement("div"),ts.className="usa-fx-layer",ts.setAttribute("aria-hidden","true"),ts.style.cssText="position:fixed;inset:0;pointer-events:none;z-index:2147483000;overflow:hidden;contain:strict",document.body.appendChild(ts)),ts).appendChild(r),r}const as=(t,e)=>{t?t.onfinish=()=>e.remove():e.remove()};function rs(t,e,s={}){if("undefined"==typeof document||h())return 0;const{count:i=12,colors:a=es,distance:r=48,size:n=6,shape:o="circle",duration:l=600}=s;for(let s=0;s<i;s++){const c=s/i*Math.PI*2+.4*Math.random(),u=r*(.7+.5*Math.random()),d=is(t,e,n,a[s%a.length],o),h="function"==typeof d.animate?d.animate([{transform:"translate(0,0) scale(1)",opacity:1},{transform:`translate(${Math.cos(c)*u}px, ${Math.sin(c)*u}px) scale(0.2)`,opacity:0}],{duration:l*(.8+.4*Math.random()),easing:"cubic-bezier(0.22, 1, 0.36, 1)",fill:"forwards"}):null;as(h,d)}return i}function ns(t={}){if("undefined"==typeof document||h())return 0;const e=window.innerWidth||800,s=window.innerHeight||600,{x:i=e/2,y:a=.66*s,count:r=80,spread:n=70,velocity:o=1,colors:l=es,duration:c=1600}=t;for(let t=0;t<r;t++){const e=((Math.random()-.5)*n-90)*Math.PI/180,s=(260+320*Math.random())*o,r=Math.cos(e)*s,u=Math.sin(e)*s,d=is(i,a,6+5*Math.random(),l[t%l.length],Math.random()>.5?"square":"circle");d.style.height=4+3*Math.random()+"px";const h=[],p=8,f=c/1e3,m=1440*(Math.random()-.5);for(let t=0;t<=p;t++){const e=t/p*f,s=900;h.push({transform:`translate(${(r*e*.8).toFixed(1)}px, ${(u*e+.5*s*e*e).toFixed(1)}px) rotate(${(m*t/p).toFixed(0)}deg) rotateX(${120*t}deg)`,opacity:t===p?0:1})}const g="function"==typeof d.animate?d.animate(h,{duration:c*(.85+.3*Math.random()),easing:"linear",fill:"forwards"}):null;as(g,d)}return r}function os(t,e=8,s=480){const i=t;if("function"!=typeof i.animate)return null;if(h())return i.animate([{outline:"2px solid #e5484d"},{outline:"2px solid transparent"}],{duration:600});const a=e;return i.animate([0,-a,a,.75*-a,.75*a,.4*-a,.4*a,0].map(t=>({transform:`translateX(${t}px)`})),{duration:s,easing:"ease-in-out"})}function ls(t=10){try{return"undefined"!=typeof navigator&&"function"==typeof navigator.vibrate&&navigator.vibrate(t)}catch{return!1}}function cs(t="usa-click"){return y(t,t=>class extends t{constructor(){super(...arguments),this._press=null}static get observedAttributes(){return["effect","disabled"]}get effects(){return this.str("effect","ripple").split(/[\s,]+/).filter(Boolean)}mount(){this.listen(this,"pointerdown",t=>{this.flag("disabled")||"mouse"===t.pointerType&&0!==t.button||(this.down(),this.effects.includes("ripple")&&this.ripple(t.clientX,t.clientY))});const t=()=>this.up();this.listen(this,"pointerup",t),this.listen(this,"pointerleave",t),this.listen(this,"pointercancel",t),this.listen(this,"click",t=>{if(this.flag("disabled"))return;const e=0===t.detail,s=this.getBoundingClientRect(),i=e?s.left+s.width/2:t.clientX,a=e?s.top+s.height/2:t.clientY;e&&this.effects.includes("ripple")&&this.ripple(i,a),this.play(i,a),this.effects.includes("shake")&&"click"===this.str("trigger")&&this.shake()}),this.listen(this,"keydown",t=>{"Enter"!==t.key&&" "!==t.key||t.repeat||this.down()}),this.listen(this,"keyup",t),this.effects.includes("shake")&&this.listen(this,"invalid",()=>this.shake(),{capture:!0})}play(t,e){if(void 0===t||void 0===e){const s=this.getBoundingClientRect();t=s.left+s.width/2,e=s.top+s.height/2}const s=this.effects,i=this.str("color")?this.str("color").split(","):void 0;s.includes("burst")&&rs(t,e,{count:this.num("count",12),shape:this.str("shape","circle"),colors:i}),s.includes("confetti")&&ns({x:t,y:e,count:this.num("count",60),colors:i,spread:90,velocity:.8}),this.hasAttribute("haptic")&&ls(this.num("haptic",10)),this.emit("click-effect",{x:t,y:e,effects:s})}shake(){os(this),this.hasAttribute("haptic")&&ls([30,40,30])}ripple(t,e){if(this.reduced)return;const s=this.getBoundingClientRect(),i=t-s.left,a=e-s.top,r=Math.hypot(Math.max(i,s.width-i),Math.max(a,s.height-a)),n=document.createElement("span");n.className="usa-click-wave",n.setAttribute("aria-hidden","true"),n.style.cssText=`width:${2*r}px;height:${2*r}px;left:${i-r}px;top:${a-r}px;--usa-wave:${this.str("color","currentColor").split(",")[0]}`,this.append(n);const o=this.motion(n,[{transform:"scale(0)",opacity:.35},{transform:"scale(1)",opacity:.25,offset:.6},{transform:"scale(1.05)",opacity:0}],{duration:650,easing:X,fill:"forwards"});o?o.onfinish=()=>n.remove():n.remove()}down(){if(this.hasAttribute("data-pressed"))return;const t=this.effects;if(!t.includes("squish")&&!t.includes("press-spring"))return;this.setAttribute("data-pressed",""),this._press?.cancel();const e=this.reduced?{opacity:.75}:t.includes("squish")?{transform:"scale(1.08, 0.86)"}:{transform:"scale(0.94)"},s=this.reduced?{opacity:1}:{transform:"none"};this._press=this.motion(this,[s,e],{duration:110,easing:"ease-out",fill:"forwards"})}up(){if(!this.hasAttribute("data-pressed"))return;this.removeAttribute("data-pressed");const t=this.effects;if(this._press?.cancel(),this.reduced)return void(this._press=this.motion(this,[{opacity:.75},{opacity:1}],{duration:150}));const e=t.includes("squish")?"scale(1.08, 0.86)":"scale(0.94)",s=t.includes("squish")?[{transform:e},{transform:"scale(0.92, 1.1)",offset:.3},{transform:"scale(1.03, 0.97)",offset:.6},{transform:"none"}]:[{transform:e},{transform:"none"}];this._press=this.motion(this,s,t.includes("squish")?{duration:520,easing:"ease-out"}:Pe("bouncy"))}},{id:"click",text:"usa-click{position:relative;display:inline-block;overflow:hidden;isolation:isolate;border-radius:inherit;-webkit-tap-highlight-color:transparent;touch-action:manipulation}usa-click[block]{display:block}usa-click .usa-click-wave{position:absolute;border-radius:50%;pointer-events:none;z-index:-1;transform:scale(0);background:radial-gradient(circle,var(--usa-wave) 0 55%,color-mix(in srgb,var(--usa-wave) 40%,transparent) 70%,transparent 72%)}"})}let us=!1;function ds(t="usa-button"){return y(t,t=>class extends t{constructor(){super(...arguments),this._press=null,this._status=null,this._shapeBefore=null}static get observedAttributes(){return["deform","state","shape","disabled"]}get target(){return this.querySelector(':scope > button, :scope > a, :scope > [role="button"]')||this}deforms(){return this.str("deform").split(/[\s,]+/).filter(Boolean)}get shape(){return this.str("shape","pill")||"pill"}set shape(t){this.morphTo(t)}get state(){return this.str("state","idle")||"idle"}set state(t){this.setAttribute("state",t)}mount(){const t=this.target;if(t===this&&(this.setAttribute("role","button"),this.hasAttribute("tabindex")||(this.tabIndex=0)),t.classList.add("usa-button-face"),"submit"===this.str("morph")&&!t.querySelector(".usa-button-status")){const e=document.createElement("span");e.className="usa-button-status",e.setAttribute("aria-hidden","true"),e.innerHTML='<svg class="usa-button-spin" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9" pathLength="100"/></svg><svg class="usa-button-ok" viewBox="0 0 24 24"><path d="M5 12.5l4.2 4.2L19 7" pathLength="1"/></svg><svg class="usa-button-err" viewBox="0 0 24 24"><path d="M7 7l10 10M17 7L7 17" pathLength="1"/></svg>',t.append(e);const s=document.createElement("span");s.className="usa-sr",s.setAttribute("role","status"),this.append(s),this._status=s}this.deforms().includes("gooey")&&function(){if(us||"undefined"==typeof document)return;us=!0;const t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.setAttribute("aria-hidden","true"),t.setAttribute("width","0"),t.setAttribute("height","0"),t.style.position="absolute",t.innerHTML='<filter id="usa-goo"><feGaussianBlur in="SourceGraphic" stdDeviation="6" result="b"/><feColorMatrix in="b" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 22 -9" result="g"/><feComposite in="SourceGraphic" in2="g" operator="atop"/></filter>',document.body.appendChild(t)}(),this.applyState(),this.listen(t,"pointerdown",t=>{this.isOff()||"mouse"===t.pointerType&&0!==t.button||this.down(t.clientX,t.clientY)});for(const e of["pointerup","pointerleave","pointercancel"])this.listen(t,e,()=>this.up());this.listen(t,"keydown",t=>("Enter"===t.key||" "===t.key)&&!t.repeat&&this.down()),this.listen(t,"keyup",()=>this.up()),this.listen(t,"click",t=>{this.isOff()?"loading"===this.state&&t.preventDefault():(this.deforms().includes("wobble")&&this.wobble(),this.hasAttribute("haptic")&&ls(this.num("haptic",10)),"submit"===this.str("morph")&&"idle"===this.state&&this.submit())}),t===this&&this.listen(this,"keydown",t=>{"Enter"!==t.key&&" "!==t.key||t.repeat||(t.preventDefault(),this.click())})}unmount(){clearTimeout(this._timer),this._press?.cancel()}changed(t){"state"===t?this.applyState():"shape"===t?this.target.setAttribute("data-shape",this.shape):super.changed(t)}isOff(){return this.flag("disabled")||"loading"===this.state}down(t,e){if(this.reduced||this.hasAttribute("data-pressed"))return;const s=this.deforms();if(!s.length)return;this.setAttribute("data-pressed","");const i=this.target,a=i.getBoundingClientRect(),r=void 0===t?.5:U((t-a.left)/(a.width||1),0,1),n=void 0===e?.5:U((e-a.top)/(a.height||1),0,1);i.style.setProperty("--usa-dent-x",`${(100*r).toFixed(1)}%`),i.style.setProperty("--usa-dent-y",`${(100*n).toFixed(1)}%`);const o=[];s.includes("dent")&&o.push(`perspective(600px) rotateX(${(-14*(.5-n)).toFixed(2)}deg) rotateY(${(14*(r-.5)).toFixed(2)}deg) scale(0.97)`),s.includes("squash")&&o.push("scale(1.12, 0.84)"),s.includes("gooey")&&(o.push("scale(0.96)"),this.goo(r,n)),o.length&&(this._press?.cancel(),this._press=this.motion(i,[{transform:"none"},{transform:o.join(" ")}],{duration:110,easing:"ease-out",fill:"forwards"}))}up(){if(!this.hasAttribute("data-pressed"))return;this.removeAttribute("data-pressed");const t=this.target,e=this._press,s=e?.effect?.getKeyframes?.().slice(-1)[0]?.transform;e?.cancel(),s&&(this._press=this.motion(t,[{transform:s},{transform:"none"}],{...Pe(this.deforms().includes("squash")?"bouncy":"wobbly")}))}wobble(){if(this.reduced)return;const t=this.target,e=getComputedStyle(t).borderRadius||"12px";this.motion(t,[{borderRadius:e},{borderRadius:"42% 58% 50% 50% / 60% 45% 55% 40%",offset:.2},{borderRadius:"58% 42% 45% 55% / 40% 60% 40% 60%",offset:.45},{borderRadius:"48% 52% 52% 48% / 52% 48% 52% 48%",offset:.7},{borderRadius:e}],{duration:700,easing:"ease-out"})}goo(t,e){const s=this.target,i=document.createElement("span");i.className="usa-button-goo",i.setAttribute("aria-hidden","true"),i.style.setProperty("--usa-goo-bg",getComputedStyle(s).backgroundColor||"currentColor");const a=[];for(let s=0;s<4;s++){const s=document.createElement("i");s.style.left=`${(100*t).toFixed(1)}%`,s.style.top=`${(100*e).toFixed(1)}%`,i.append(s),a.push(s)}this.prepend(i);let r=a.length;a.forEach((t,e)=>{const s=e/a.length*Math.PI*2+.6,n=26+e%2*12,o=this.motion(t,[{transform:"translate(-50%, -50%) scale(0.4)"},{transform:`translate(calc(-50% + ${(Math.cos(s)*n).toFixed(1)}px), calc(-50% + ${(Math.sin(s)*n).toFixed(1)}px)) scale(1)`,offset:.45},{transform:"translate(-50%, -50%) scale(0.2)"}],{duration:700,easing:"cubic-bezier(0.34, 1.3, 0.64, 1)",fill:"forwards"}),l=()=>0===--r&&i.remove();o?o.onfinish=l:l()})}async morphTo(t){const e=this.target,s=e.getBoundingClientRect();if(this.setAttribute("shape",t),e.setAttribute("data-shape",t),this.reduced)return;const i=e.getBoundingClientRect();if(!s.width||!i.width||Math.abs(s.width-i.width)<.5)return;const a=this.motion(e,[{width:`${s.width}px`},{width:`${i.width}px`}],Pe("stiff"));await(a?.finished.catch(()=>{}))}submit(){let t=!1;this.state="loading",this.emit("submit",{done:(e=!0)=>{t||(t=!0,this.state=e?"success":"error")}})}applyState(){if("submit"!==this.str("morph"))return;const t=this.target,e=this.state;if(clearTimeout(this._timer),t.setAttribute("data-state",e),"loading"===e?(null===this._shapeBefore&&(this._shapeBefore=this.shape),t.setAttribute("aria-busy","true"),this.morphTo("circle")):t.removeAttribute("aria-busy"),"error"===e&&(os(t),this.hasAttribute("haptic")&&ls([30,40,30])),"success"===e&&!this.reduced){const e=t.querySelector(".usa-button-ok");e&&this.motion(e,[{transform:"scale(0.4)"},{transform:"scale(1)"}],Pe("bouncy"))}if(this._status&&(this._status.textContent="loading"===e?"Loading…":"success"===e?"Done":"error"===e?"Failed":""),"success"!==e&&"error"!==e||(this._timer=setTimeout(()=>{this.state="idle"},this.num("reset",1800))),"idle"===e&&null!==this._shapeBefore){const t=this._shapeBefore;this._shapeBefore=null,this.morphTo(t)}this.emit("state",{state:e})}},{id:"button",text:'usa-button{position:relative;display:inline-block;isolation:isolate;-webkit-tap-highlight-color:transparent;touch-action:manipulation;vertical-align:middle}usa-button[role="button"]{cursor:pointer}usa-button .usa-button-face{position:relative;overflow:hidden;will-change:transform;transform-origin:50% 60%;white-space:nowrap}usa-button[deform~="gooey"] .usa-button-face{overflow:visible}usa-button[deform~="dent"] .usa-button-face::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:0;transition:opacity 0.2s ease;background:radial-gradient(circle at var(--usa-dent-x,50%) var(--usa-dent-y,50%),rgb(0 0 0 / 0.28),transparent 60%)}usa-button[deform~="dent"][data-pressed] .usa-button-face::after{opacity:1}usa-button .usa-button-goo{position:absolute;inset:0;z-index:-1;pointer-events:none;filter:url(#usa-goo)}usa-button .usa-button-goo i{position:absolute;width:22px;height:22px;border-radius:50%;background:var(--usa-goo-bg);transform:translate(-50%,-50%) scale(0.4)}usa-button .usa-button-face[data-shape="circle"],usa-button .usa-button-face[data-shape="icon"]{padding-inline:0;aspect-ratio:1;border-radius:999px;display:inline-grid;place-items:center}usa-button .usa-button-face [data-label],usa-button .usa-button-face [data-icon]{transition:opacity 0.2s ease}usa-button .usa-button-face[data-shape="circle"] [data-label],usa-button .usa-button-face[data-shape="icon"] [data-label]{position:absolute;opacity:0;pointer-events:none}usa-button .usa-button-face[data-shape="circle"] [data-icon]{opacity:0}usa-button .usa-button-status{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none}usa-button .usa-button-status svg{grid-area:1 / 1;width:1.25em;height:1.25em;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;opacity:0}usa-button .usa-button-spin circle{stroke-dasharray:60 100;transform-origin:50% 50%;animation:usa-btn-spin 0.8s linear infinite}usa-button .usa-button-ok path,usa-button .usa-button-err path{stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset 0.35s ease 0.1s}usa-button .usa-button-face[data-state="loading"] .usa-button-spin,usa-button .usa-button-face[data-state="success"] .usa-button-ok,usa-button .usa-button-face[data-state="error"] .usa-button-err{opacity:1}usa-button .usa-button-face[data-state="success"] .usa-button-ok path,usa-button .usa-button-face[data-state="error"] .usa-button-err path{stroke-dashoffset:0}usa-button .usa-button-face:is([data-state="loading"],[data-state="success"],[data-state="error"])>:not(.usa-button-status){opacity:0}usa-button .usa-button-face[data-state="success"]{background:#16a34a;border-color:#16a34a;color:#fff}usa-button .usa-button-face[data-state="error"]{background:#e5484d;border-color:#e5484d;color:#fff}usa-button .usa-button-face[data-state]{transition:background-color 0.25s ease,color 0.25s ease,border-radius 0.3s ease}@keyframes usa-btn-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){usa-button .usa-button-spin circle{animation-duration:2.4s}usa-button .usa-button-face,usa-button .usa-button-face *{transition:none !important}}'})}const hs=[[12,12],[12,12],[12,12],[12,12]],ps={play:[[[7,5],[12.5,8.25],[12.5,15.75],[7,19]],[[12.5,8.25],[19,12],[19,12],[12.5,15.75]],hs],pause:[[[6,5],[10,5],[10,19],[6,19]],[[14,5],[18,5],[18,19],[14,19]],hs],menu:[[[4,6],[20,6],[20,8],[4,8]],[[4,11],[20,11],[20,13],[4,13]],[[4,16],[20,16],[20,18],[4,18]]],close:[[[5.2,6.6],[6.6,5.2],[18.8,17.4],[17.4,18.8]],hs,[[17.4,5.2],[18.8,6.6],[6.6,18.8],[5.2,17.4]]],plus:[[[11,4],[13,4],[13,20],[11,20]],[[4,11],[20,11],[20,13],[4,13]],hs],minus:[[[4,11],[20,11],[20,13],[4,13]],[[4,11],[20,11],[20,13],[4,13]],hs],check:[[[4.3,12.7],[5.7,11.3],[10.4,16],[9,17.4]],[[9,17.4],[7.6,16],[18.3,5.3],[19.7,6.7]],hs],"arrow-right":[[[4,11],[17,11],[17,13],[4,13]],[[12.6,6.4],[14,5],[21,12],[19.6,13.4]],[[19.6,10.6],[21,12],[14,19],[12.6,17.6]]]};function fs(t,e=t,s=0){const i=ps[t]||ps.menu,a=ps[e]||i;return i.map((t,e)=>`M${t.map((t,i)=>{const r=a[e][i];return`${(t[0]+(r[0]-t[0])*s).toFixed(2)} ${(t[1]+(r[1]-t[1])*s).toFixed(2)}`}).join("L")}Z`).join("")}function ms(t="usa-icon-morph"){return y(t,t=>class extends t{constructor(){super(...arguments),this._i=0,this._from="play",this._to="play"}static get observedAttributes(){return["icons","size","toggle"]}list(){return this.str("icons","play,pause").split(",").map(t=>t.trim()).filter(t=>ps[t])}get index(){return this._i}set index(t){this.show(t)}get icon(){return this.list()[this._i]||"play"}draw(t){this.querySelector("path")?.setAttribute("d",fs(this._from,this._to,t))}mount(){const t=this.num("size",24);this.innerHTML=`<svg viewBox="0 0 24 24" width="${t}" height="${t}" aria-hidden="true" focusable="false"><path/></svg>`,this._i=Math.max(0,Math.min(this.list().length-1,this.num("index",0))),this._from=this._to=this.icon,this._t=Le({value:1,spring:this.str("preset","wobbly"),onUpdate:t=>this.draw(t)}),this.draw(1),this.flag("toggle")&&(this.setAttribute("role","button"),this.hasAttribute("tabindex")||(this.tabIndex=0),this.listen(this,"click",()=>this.next()),this.listen(this,"keydown",t=>{"Enter"!==t.key&&" "!==t.key||t.repeat||(t.preventDefault(),this.next())})),this.label()}unmount(){this._t?.stop()}label(){const t=this.str("labels").split(",").map(t=>t.trim())[this._i];t&&this.setAttribute("aria-label",t),this.flag("toggle")||t||this.setAttribute("aria-hidden","true")}show(t){const e=this.list(),s="number"==typeof t?(t%e.length+e.length)%e.length:e.indexOf(t);if(s<0||!this._t)return;const i=e[s],a=this._t.value;this._from=a>=.5?this._to:this._from,this._to=i,this._i=s,this._t.jump(0),this._t.set(1),this.label(),this.emit("change",{index:s,icon:i})}next(){this.show(this._i+1)}},{id:"icon-morph",text:"usa-icon-morph{display:inline-grid;place-items:center;line-height:0;color:inherit;-webkit-tap-highlight-color:transparent;vertical-align:middle}usa-icon-morph svg{fill:currentColor;overflow:visible}usa-icon-morph[toggle]{cursor:pointer;border-radius:8px}usa-icon-morph[toggle]:focus-visible{outline:2px solid var(--usa-accent,#7c5cff);outline-offset:3px}"})}function gs(t="usa-like"){return y(t,t=>class extends t{static get observedAttributes(){return["liked","count","label","disabled"]}get liked(){return this.flag("liked")}set liked(t){this.setFlag("liked",t)}get count(){return this.hasAttribute("count")?this.num("count",0):null}set count(t){null===t?this.removeAttribute("count"):this.setAttribute("count",String(t))}mount(){if(!this.querySelector(":scope > .usa-like-heart")){const t=this.num("size",24);this.insertAdjacentHTML("afterbegin",`<svg class="usa-like-heart" viewBox="0 0 24 24" width="${t}" height="${t}" aria-hidden="true"><path d="M12 21s-7.5-4.6-9.6-9.2C.9 8.4 3 4.5 6.7 4.5c2.1 0 3.6 1.2 5.3 3.2 1.7-2 3.2-3.2 5.3-3.2 3.7 0 5.8 3.9 4.3 7.3C19.5 16.4 12 21 12 21z"/></svg><span class="usa-like-count" aria-hidden="true"></span>`)}this.str("color")&&this.style.setProperty("--usa-like-color",this.str("color")),this.setAttribute("role","button"),this.hasAttribute("tabindex")||(this.tabIndex=0),this.sync(),this.listen(this,"click",()=>this.toggle()),this.listen(this,"keydown",t=>{"Enter"!==t.key&&" "!==t.key||t.repeat||(t.preventDefault(),this.toggle())})}changed(){this.sync()}sync(){const t=this.count,e=this.str("label","Like");this.setAttribute("aria-pressed",String(this.liked)),this.setAttribute("aria-label",null===t?e:`${e} (${t})`),this.toggleAttribute("aria-disabled",this.flag("disabled"));const s=this.querySelector(".usa-like-count");s&&(s.textContent=null===t?"":(new Intl.NumberFormat).format(t))}toggle(t){if(this.flag("disabled"))return;const e=void 0===t?!this.liked:t;if(e===this.liked)return;this.liked=e,null!==this.count&&(this.count=Math.max(0,this.count+(e?1:-1))),this.sync();const s=this.querySelector(".usa-like-heart");if(e&&s&&!this.reduced){this.motion(s,[{transform:"scale(0.4)"},{transform:"scale(1)"}],Pe("bouncy"));const t=s.getBoundingClientRect();rs(t.left+t.width/2,t.top+t.height/2,{count:10,distance:28,size:5,colors:[getComputedStyle(this).getPropertyValue("--usa-like-color").trim()||"#f43f5e","#fb923c","#facc15"]})}this.hasAttribute("haptic")&&ls(this.num("haptic",12)),this.dispatchEvent(new Event("change",{bubbles:!0})),this.emit("change",{liked:e,count:this.count})}},{id:"like",text:"usa-like{--usa-like-color:#f43f5e;display:inline-flex;align-items:center;gap:0.35em;cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent;vertical-align:middle}usa-like .usa-like-heart{fill:transparent;stroke:currentColor;stroke-width:1.8;transition:fill 0.2s ease,stroke 0.2s ease;overflow:visible}usa-like[liked] .usa-like-heart{fill:var(--usa-like-color);stroke:var(--usa-like-color)}usa-like .usa-like-count{font-variant-numeric:tabular-nums}usa-like[disabled]{opacity:0.5;cursor:not-allowed}usa-like:focus-visible{outline:2px solid var(--usa-like-color);outline-offset:3px;border-radius:8px}"})}function bs(t="usa-hold"){return y(t,t=>class extends t{constructor(){super(...arguments),this._p=0,this._frame=0,this._holding=!1}static get observedAttributes(){return["duration","disabled"]}get progress(){return this._p}set(t){this._p=t,this.style.setProperty("--usa-hold",t.toFixed(4));const e=this.querySelector(".usa-hold-ring circle:last-child");e&&(e.style.strokeDashoffset=String(100-100*t))}mount(){this.querySelector(":scope > .usa-hold-ring")||this.insertAdjacentHTML("beforeend",'<svg class="usa-hold-ring" viewBox="0 0 36 36" aria-hidden="true"><circle cx="18" cy="18" r="15.9" pathLength="100"/><circle cx="18" cy="18" r="15.9" pathLength="100"/></svg>'),this.str("color")&&this.style.setProperty("--usa-hold-color",this.str("color")),this.setAttribute("role","button"),this.hasAttribute("tabindex")||(this.tabIndex=0),this.str("label")&&this.setAttribute("aria-label",this.str("label")),this.setAttribute("aria-description","Press and hold to confirm"),this.set(0),this.listen(this,"pointerdown",t=>("mouse"!==t.pointerType||0===t.button)&&this.start());for(const t of["pointerup","pointerleave","pointercancel"])this.listen(this,t,()=>this.stop());this.listen(this,"keydown",t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.repeat||this.start())}),this.listen(this,"keyup",t=>("Enter"===t.key||" "===t.key)&&this.stop()),this.listen(this,"contextmenu",t=>this._holding&&t.preventDefault())}unmount(){z(this._frame),this._holding=!1}start(){if(this.flag("disabled")||this._holding)return;this._holding=!0,this.setAttribute("data-holding","");const t=Math.max(100,this.num("duration",1200));let e=T();const s=()=>{const i=T(),a=Math.min(1,this._p+(i-e)/t);if(e=i,this.set(a),this.emit("progress",{progress:a}),a>=1)return this._holding=!1,this.removeAttribute("data-holding"),this.setAttribute("data-done",""),this.hasAttribute("haptic")&&ls(20),this.emit("confirm"),void setTimeout(()=>{this.removeAttribute("data-done"),this.rewind()},700);this._frame=$(s)};this._frame=$(s)}stop(){this._holding&&(this._holding=!1,z(this._frame),this.removeAttribute("data-holding"),this._p<1&&(this.emit("cancel",{progress:this._p}),this.rewind()))}rewind(){let t=T();const e=()=>{if(this._holding)return;const s=T(),i=Math.max(0,this._p-(s-t)/250);t=s,this.set(i),i>0&&(this._frame=$(e))};this._frame=$(e)}cancel(){this.stop()}},{id:"hold",text:"usa-hold{--usa-hold-color:#e5484d;position:relative;display:inline-flex;align-items:center;gap:0.5em;cursor:pointer;user-select:none;-webkit-user-select:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent}usa-hold .usa-hold-ring{width:1.6em;height:1.6em;transform:rotate(-90deg);flex:none}usa-hold .usa-hold-ring circle{fill:none;stroke-width:3.5;stroke-linecap:round}usa-hold .usa-hold-ring circle:first-child{stroke:color-mix(in srgb,currentColor 18%,transparent)}usa-hold .usa-hold-ring circle:last-child{stroke:var(--usa-hold-color);stroke-dasharray:100;stroke-dashoffset:100}usa-hold[data-holding]{transform:scale(calc(1 - var(--usa-hold,0) * 0.05))}usa-hold[data-done] .usa-hold-ring{animation:usa-hold-pop 0.4s cubic-bezier(0.34,1.56,0.64,1)}@keyframes usa-hold-pop{50%{transform:rotate(-90deg) scale(1.3)}}usa-hold[disabled]{opacity:0.5;cursor:not-allowed}usa-hold:focus-visible{outline:2px solid var(--usa-hold-color);outline-offset:3px;border-radius:10px}@media (prefers-reduced-motion:reduce){usa-hold[data-holding]{transform:none}usa-hold[data-done] .usa-hold-ring{animation:none}}"})}function ys(t="usa-double-tap"){return y(t,t=>class extends t{mount(){let t=0,e=0,s=0;this.listen(this,"pointerup",i=>{if(this.flag("disabled"))return;const a=i.timeStamp||Date.now();a-t<this.num("delay",300)&&Math.hypot(i.clientX-e,i.clientY-s)<40?(t=0,this.pop(i.clientX,i.clientY)):(t=a,e=i.clientX,s=i.clientY)}),this.listen(this,"dblclick",t=>t.preventDefault()),this.listen(this,"keydown",t=>"l"===t.key.toLowerCase()&&!t.repeat&&this.pop())}pop(t,e){const s=this.getBoundingClientRect();void 0!==t&&void 0!==e||(t=s.left+s.width/2,e=s.top+s.height/2);const i=document.createElement("span");i.className="usa-double-tap-icon",i.setAttribute("aria-hidden","true"),i.textContent=this.str("icon","♥"),i.style.left=t-s.left+"px",i.style.top=e-s.top+"px",this.str("color")&&(i.style.color=this.str("color")),this.append(i);const a=this.reduced?[{opacity:0},{opacity:1,offset:.3},{opacity:0}]:[{opacity:0,transform:"translate(-50%, -50%) scale(0.2) rotate(-15deg)"},{opacity:1,transform:"translate(-50%, -50%) scale(1.15) rotate(5deg)",offset:.3},{opacity:1,transform:"translate(-50%, -50%) scale(1) rotate(0deg)",offset:.6},{opacity:0,transform:"translate(-50%, -110%) scale(0.9)"}],r=this.motion(i,a,{duration:900,easing:"ease-out",fill:"forwards"});r?r.onfinish=()=>i.remove():i.remove(),rs(t,e,{count:8,distance:40,size:5,colors:[this.str("color","#f43f5e"),"#fb923c","#facc15"]}),this.hasAttribute("haptic")&&ls(15),this.emit("double-tap",{x:t-s.left,y:e-s.top})}},{id:"double-tap",text:"usa-double-tap{position:relative;display:block;touch-action:manipulation;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}usa-double-tap .usa-double-tap-icon{position:absolute;pointer-events:none;font-size:64px;line-height:1;color:#f43f5e;transform:translate(-50%,-50%);text-shadow:0 6px 18px rgb(0 0 0 / 0.35);z-index:2}"})}function vs(t="usa-checkbox"){return y(t,t=>{class e extends t{static get observedAttributes(){return["checked","indeterminate","disabled","label"]}constructor(){super(),this._internals=null;try{this._internals=this.attachInternals?.()??null}catch{this._internals=null}}get checked(){return this.flag("checked")}set checked(t){this.setFlag("checked",t)}get indeterminate(){return this.flag("indeterminate")}set indeterminate(t){this.setFlag("indeterminate",t)}mount(){this.querySelector(":scope > .usa-checkbox-box")||this.insertAdjacentHTML("afterbegin",'<span class="usa-checkbox-box" aria-hidden="true"><svg viewBox="0 0 24 24"><path class="usa-checkbox-check" d="M5 12.5l4.2 4.2L19 7" pathLength="1"/><path class="usa-checkbox-dash" d="M6 12h12" pathLength="1"/></svg></span>'),this.setAttribute("role","checkbox"),this.hasAttribute("tabindex")||(this.tabIndex=0),this.sync(),this.listen(this,"click",()=>this.toggle()),this.listen(this,"keydown",t=>{" "!==t.key||t.repeat||(t.preventDefault(),this.toggle())})}changed(){this.sync()}sync(){this.setAttribute("aria-checked",this.indeterminate?"mixed":String(this.checked)),this.str("label")&&this.setAttribute("aria-label",this.str("label")),this.toggleAttribute("aria-disabled",this.flag("disabled")),this._internals?.setFormValue?.(this.checked?this.str("value","on"):null)}toggle(t){if(this.flag("disabled"))return;const e=void 0===t?!this.checked||this.indeterminate:t;this.indeterminate=!1,this.checked=e,this.sync();const s=this.querySelector(".usa-checkbox-box");s&&!this.reduced&&this.motion(s,[{transform:"scale(0.75)"},{transform:"scale(1)"}],Pe("bouncy")),this.dispatchEvent(new Event("change",{bubbles:!0})),this.emit("change",{checked:e})}}return e.formAssociated=!0,e},{id:"checkbox",text:'usa-checkbox{--usa-checkbox-on:var(--usa-accent,#7c5cff);display:inline-flex;align-items:center;gap:0.55em;cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent;vertical-align:middle}usa-checkbox .usa-checkbox-box{flex:none;width:1.25em;height:1.25em;border-radius:0.3em;border:1.5px solid color-mix(in srgb,currentColor 55%,transparent);display:grid;place-items:center;transition:background-color 0.2s ease,border-color 0.2s ease;box-sizing:border-box}usa-checkbox[shape="circle"] .usa-checkbox-box{border-radius:50%}usa-checkbox svg{width:85%;height:85%;fill:none;stroke:#fff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}usa-checkbox svg path{stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset 0.28s cubic-bezier(0.65,0,0.35,1) 0.05s}usa-checkbox[checked]:not([indeterminate]) .usa-checkbox-check,usa-checkbox[indeterminate] .usa-checkbox-dash{stroke-dashoffset:0}usa-checkbox[checked] .usa-checkbox-box,usa-checkbox[indeterminate] .usa-checkbox-box{background:var(--usa-checkbox-on);border-color:var(--usa-checkbox-on)}usa-checkbox[disabled]{opacity:0.45;cursor:not-allowed}usa-checkbox:focus-visible{outline:none}usa-checkbox:focus-visible .usa-checkbox-box{outline:2px solid var(--usa-checkbox-on);outline-offset:2px}@media (prefers-reduced-motion:reduce){usa-checkbox svg path,usa-checkbox .usa-checkbox-box{transition:none}}'})}function xs(){cs(),ds(),ms(),gs(),bs(),ys(),vs()}function ws(t,e,s="top",i=8){const a=e.getBoundingClientRect(),r=t.getBoundingClientRect(),n=window.innerWidth||1024,o=window.innerHeight||768,l={top:a.top-r.height-i>=0,bottom:a.bottom+r.height+i<=o,left:a.left-r.width-i>=0,right:a.right+r.width+i<=n},c={top:"bottom",bottom:"top",left:"right",right:"left"},u=l[s]||!l[c[s]]?s:c[s];let d=0,h=0;return"top"===u||"bottom"===u?(d=Math.min(Math.max(4,a.left+a.width/2-r.width/2),n-r.width-4),h="top"===u?a.top-r.height-i:a.bottom+i):(h=Math.min(Math.max(4,a.top+a.height/2-r.height/2),o-r.height-4),d="left"===u?a.left-r.width-i:a.right+i),t.style.left=`${Math.round(d)}px`,t.style.top=`${Math.round(h)}px`,t.setAttribute("data-placement",u),u}let ks=0;const _s=t=>`${t}-${++ks}`;function As(t="usa-tabs"){return be(),y(t,t=>class extends t{constructor(){super(...arguments),this._i=0,this._bar=null}static get observedAttributes(){return["indicator"]}get selected(){return this._i}set selected(t){this.select(t)}tabs(){return Array.from(this.querySelectorAll("[data-tab]")).filter(t=>t.closest(this.localName)===this)}panels(){return Array.from(this.querySelectorAll("[data-panel]")).filter(t=>t.closest(this.localName)===this)}mount(){const t=this.tabs(),e=this.panels(),s=t[0]?.parentElement;if(!s)return;s.setAttribute("role","tablist"),s.classList.add("usa-tabs-list"),s.querySelector(":scope > .usa-tabs-indicator")?this._bar=s.querySelector(":scope > .usa-tabs-indicator"):(this._bar=document.createElement("span"),this._bar.className="usa-tabs-indicator",this._bar.setAttribute("aria-hidden","true"),s.append(this._bar)),t.forEach((t,s)=>{t.id||(t.id=_s("usa-tab")),t.setAttribute("role","tab");const i=e[s];i&&(i.id||(i.id=_s("usa-panel")),i.setAttribute("role","tabpanel"),i.setAttribute("aria-labelledby",t.id),t.setAttribute("aria-controls",i.id),i.hasAttribute("tabindex")||(i.tabIndex=0)),this.listen(t,"click",()=>this.select(s))}),this.listen(s,"keydown",e=>{const s=t.length,i={ArrowRight:this._i+1,ArrowDown:this._i+1,ArrowLeft:this._i-1,ArrowUp:this._i-1,Home:0,End:s-1};e.key in i&&(e.preventDefault(),this.select((i[e.key]+s)%s,!0))});const i="undefined"!=typeof ResizeObserver?new ResizeObserver(()=>this.moveBar(!1)):null;i?.observe(s),this.onCleanup(()=>i?.disconnect()),this.select(Math.max(0,Math.min(t.length-1,this.num("selected",0))),!1,!0)}moveBar(t){const e=this.tabs()[this._i],s=this._bar;if(!e||!s)return;const i=s.style.transform,a=s.style.width;s.style.width=`${e.offsetWidth}px`,s.style.transform=`translateX(${e.offsetLeft}px)`,t&&i&&!this.reduced&&this.motion(s,[{transform:i,width:a},{transform:s.style.transform,width:s.style.width}],Pe("stiff"))}select(t,e=!1,s=!1){const i=this.tabs(),a=this.panels();if(!i[t])return;const r=this._i;if(this._i=t,this.setAttribute("selected",String(t)),i.forEach((e,s)=>{e.setAttribute("aria-selected",String(s===t)),e.tabIndex=s===t?0:-1}),a.forEach((e,s)=>e.hidden=s!==t),e&&i[t].focus(),this.moveBar(!s),s||r===t)return;const n=a[t];n&&!this.reduced&&this.motion(n,[{opacity:0,transform:`translateX(${t>r?16:-16}px)`},{opacity:1,transform:"none"}],{duration:280,easing:"cubic-bezier(0.22, 1, 0.36, 1)"}),this.emit("change",{index:t})}},{id:"tabs",text:'usa-tabs{display:block;font-family:var(--usa-font)}usa-tabs .usa-tabs-list{position:relative;display:flex;gap:4px;border-bottom:1px solid color-mix(in srgb,currentColor 14%,transparent)}usa-tabs [role="tab"]{position:relative;z-index:1;padding:10px 14px;border:0;background:none;color:inherit;font:inherit;cursor:pointer;opacity:0.7;transition:opacity 0.2s ease,color 0.2s ease;border-radius:calc(var(--usa-radius,14px) / 2)}usa-tabs [role="tab"][aria-selected="true"]{opacity:1;color:var(--usa-accent,#7c5cff)}usa-tabs [role="tab"]:focus-visible{outline:2px solid var(--usa-accent,#7c5cff);outline-offset:-2px}usa-tabs .usa-tabs-indicator{position:absolute;left:0;bottom:-1px;height:3px;width:0;border-radius:3px;background:var(--usa-accent,#7c5cff);pointer-events:none}usa-tabs[indicator="pill"] .usa-tabs-list{border-bottom:0;padding:4px;border-radius:999px;background:color-mix(in srgb,currentColor 8%,transparent)}usa-tabs[indicator="pill"] .usa-tabs-indicator{top:4px;bottom:4px;height:auto;border-radius:999px;opacity:0.18}usa-tabs [role="tabpanel"]{padding:14px 2px}usa-tabs [role="tabpanel"]:focus-visible{outline:2px solid var(--usa-accent,#7c5cff);outline-offset:2px;border-radius:6px}'})}var Ms='usa-drawer,usa-bottom-sheet{position:fixed;z-index:1001;box-sizing:border-box;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;will-change:transform;outline:none}usa-drawer{top:0;bottom:0;left:0;width:min(86vw,360px);border-radius:0 var(--usa-radius,14px) var(--usa-radius,14px) 0;padding:20px}usa-drawer[side="right"]{left:auto;right:0;border-radius:var(--usa-radius,14px) 0 0 var(--usa-radius,14px)}usa-drawer[side="top"],usa-drawer[side="bottom"]{left:0;right:0;width:auto;bottom:auto;max-height:80vh;border-radius:0 0 var(--usa-radius,14px) var(--usa-radius,14px);touch-action:pan-x}usa-drawer[side="bottom"]{top:auto;bottom:0;border-radius:var(--usa-radius,14px) var(--usa-radius,14px) 0 0}usa-bottom-sheet{left:0;right:0;bottom:0;margin:0 auto;max-width:640px;border-radius:22px 22px 0 0;padding:8px 20px 24px;touch-action:none}usa-bottom-sheet .usa-sheet-handle{width:40px;height:5px;border-radius:3px;margin:4px auto 14px;background:color-mix(in srgb,currentColor 35%,transparent);cursor:grab}usa-drawer[hidden],usa-bottom-sheet[hidden]{display:none}.usa-panel-backdrop{position:fixed;inset:0;z-index:1000;background:rgb(0 0 0 / 0.45)}';function Es(t,e){return class extends t{constructor(){super(...arguments),this._backdrop=null,this._return=null,this._drag=null}static get observedAttributes(){return["open","side"]}get open(){return this.flag("open")}set open(t){this.setFlag("open",t)}size(){const t=this.getBoundingClientRect();return("sheet"===e||this.vertical()?t.height:t.width)||("sheet"===e?.9*window.innerHeight:320)}vertical(){return"sheet"===e||"top"===this.str("side")||"bottom"===this.str("side")}dir(){const t="sheet"===e?"bottom":this.str("side","left");return"left"===t||"top"===t?-1:1}stops(){return[0]}render(t){const e=this.vertical()?"Y":"X";this.style.transform=`translate${e}(${(t*this.dir()).toFixed(1)}px)`,this._backdrop&&(this._backdrop.style.opacity=String(U(1-t/(this.size()||1),0,1)))}mount(){this.setAttribute("role","dialog"),this.str("label")&&this.setAttribute("aria-label",this.str("label")),this.hasAttribute("tabindex")||(this.tabIndex=-1),this.classList.add("usa-surface"),this._pos=Le({value:2*this.size(),spring:"stiff",onUpdate:t=>this.render(t),onRest:t=>t>=this.size()-1&&!this.open&&this.afterClose()}),this.open?this.show(!1):(this.hidden=!0,this._pos.jump(1.2*this.size())),this.listen(document,"keydown",t=>"Escape"===t.key&&this.open&&this.close()),this.listen(this,"click",t=>t.target.closest?.("[data-close]")&&this.close()),this.listen(this,"pointerdown",t=>this.dragStart(t)),this.listen(this,"pointermove",t=>this.dragMove(t)),this.listen(this,"pointerup",t=>this.dragEnd(t)),this.listen(this,"pointercancel",t=>this.dragEnd(t))}unmount(){this._pos?.stop(),this._backdrop?.remove(),this._backdrop=null}changed(t){if("open"!==t)return super.changed(t);this.open&&this.hidden?this.show(!0):this.open||this.hidden||this.hide()}show(t=!0){this._return=document.activeElement,this.hidden=!1,this.setAttribute("aria-modal","true"),this._backdrop||(this._backdrop=document.createElement("div"),this._backdrop.className="usa-panel-backdrop",this._backdrop.addEventListener("click",()=>this.close()),this.before(this._backdrop));const e=this.stops()[this.initialStop()];t?(this._pos.jump(this.size()),this._pos.set(e)):this._pos.jump(e),this.setFlag("open",!0),this.focus({preventScroll:!0}),this.emit("open")}initialStop(){return 0}hide(){this._pos.set(1.05*this.size()),this.emit("close")}afterClose(){this.hidden=!0,this._backdrop?.remove(),this._backdrop=null,this._return instanceof HTMLElement&&this._return.focus({preventScroll:!0})}close(){this.setFlag("open",!1)}dragStart(t){if(!("sheet"===e?t.target.closest?.("[data-handle], .usa-sheet-handle")||(this.scrollTop<=0?this:null):this)||t.target.closest?.("input, textarea, select, button, a, [data-no-drag]"))return;const s=this.vertical()?t.clientY:t.clientX;this._pos.stop(),this._drag={id:t.pointerId,start:s,origin:this._pos.value,t:t.timeStamp,last:s,lt:t.timeStamp}}dragMove(t){const e=this._drag;if(!e||t.pointerId!==e.id)return;const s=this.vertical()?t.clientY:t.clientX;let i=e.origin+(s-e.start)*this.dir();i<0&&(i=Ie(i,200)),e.lt=e.t,e.t=t.timeStamp,e.last=s,this._pos.jump(i)}dragEnd(t){const e=this._drag;if(!e||t.pointerId!==e.id)return;this._drag=null;const s=this._pos.value-e.origin,i=Math.max(16,e.t-e.lt)/1e3,a=Math.abs(s)>4?s/Math.max(i,(t.timeStamp-(e.lt||0))/1e3||.1)*.2:0,r=Re(qe(this._pos.value,U(a,-3e3,3e3)),[...this.stops(),this.size()]);r>=this.size()-1?this.close():this._pos.set(r),this.emit("snap",{offset:r})}}}function Ss(t="usa-drawer"){return be(),y(t,t=>Es(t,"drawer"),{id:"sheet",text:Ms})}function Cs(t="usa-bottom-sheet"){return be(),y(t,t=>{const e=Es(t,"sheet");return class extends e{static get observedAttributes(){return["open","snap"]}mount(){if(!this.querySelector(":scope > .usa-sheet-handle")){const t=document.createElement("div");t.className="usa-sheet-handle",t.setAttribute("aria-hidden","true"),this.prepend(t)}super.mount()}size(){return(window.innerHeight||800)*Math.max(...this.fractions())}fractions(){const t=this.str("snap","0.5,0.92").split(",").map(Number).filter(t=>t>0&&t<=1);return t.length?t:[.5,.92]}stops(){const t=this.size(),e=window.innerHeight||800;return this.fractions().map(s=>Math.max(0,t-s*e)).sort((t,e)=>t-e)}initialStop(){const t=this.fractions(),e=t[U(this.num("start",0),0,t.length-1)],s=Math.max(0,this.size()-e*(window.innerHeight||800)),i=this.stops();return Math.max(0,i.indexOf(s))}render(t){this.style.height=`${this.size()}px`,super.render(t)}}},{id:"sheet",text:Ms})}function $s(t="usa-pull-refresh"){return be(),y(t,t=>class extends t{constructor(){super(...arguments),this._busy=!1,this._ind=null,this._live=null}get refreshing(){return this._busy}draw(t){const e=this.num("threshold",70);this.style.setProperty("--usa-pull",`${t.toFixed(1)}px`),this.style.setProperty("--usa-pull-p",Math.min(1,t/e).toFixed(3)),this.toggleAttribute("data-armed",t>=e&&!this._busy)}mount(){this.querySelector(":scope > .usa-pull-indicator")||(this._ind=document.createElement("div"),this._ind.className="usa-pull-indicator",this._ind.setAttribute("aria-hidden","true"),this._ind.innerHTML='<svg viewBox="0 0 24 24"><circle cx="12" cy="12" r="9" pathLength="100"/></svg>',this.prepend(this._ind),this._live=document.createElement("span"),this._live.className="usa-sr",this._live.setAttribute("role","status"),this.append(this._live)),this._y=Le({spring:"stiff",onUpdate:t=>this.draw(t)});let t=null,e=-1;this.listen(this,"pointerdown",s=>{this.flag("disabled")||this._busy||this.scrollTop>0||(t=s.clientY,e=s.pointerId)}),this.listen(this,"pointermove",s=>{if(null===t||s.pointerId!==e)return;const i=s.clientY-t;i<=0||(this._y.jump(this.reduced?0:Ie(i,220)),this.reduced&&i>this.num("threshold",70)&&this.setAttribute("data-armed",""))});const s=s=>{if(null===t||s.pointerId!==e)return;const i=s.clientY-t;t=null;this.hasAttribute("data-armed")||!this.reduced&&this._y.value>=this.num("threshold",70)||this.reduced&&i>this.num("threshold",70)?this.refresh():this._y.set(0)};this.listen(this,"pointerup",s),this.listen(this,"pointercancel",s)}unmount(){this._y?.stop()}refresh(){return this._busy?Promise.resolve():(this._busy=!0,this.removeAttribute("data-armed"),this.setAttribute("data-refreshing",""),this.setAttribute("aria-busy","true"),this._live&&(this._live.textContent=this.str("label","Refreshing")),this._y.set(this.reduced?0:.8*this.num("threshold",70)),new Promise(t=>{let e=!1;const s=()=>{e||(e=!0,this._busy=!1,this.removeAttribute("data-refreshing"),this.removeAttribute("aria-busy"),this._live&&(this._live.textContent=""),this._y.set(0),t())},i=new CustomEvent("usa:refresh",{detail:{done:s},bubbles:!0,cancelable:!0});this.dispatchEvent(i);const a=this.onrefresh;"function"==typeof a&&Promise.resolve(a(i)).then(s,s)}))}},{id:"pull-refresh",text:"usa-pull-refresh{position:relative;display:block;overflow:auto;overscroll-behavior-y:contain;touch-action:pan-x pan-down}usa-pull-refresh>:not(.usa-pull-indicator):not(.usa-sr){transform:translateY(var(--usa-pull,0px))}usa-pull-refresh .usa-pull-indicator{position:absolute;left:50%;top:0;width:34px;height:34px;margin-left:-17px;z-index:2;display:grid;place-items:center;border-radius:50%;background:var(--usa-surface,#1b1e27);box-shadow:var(--usa-shadow);color:var(--usa-accent,#7c5cff);transform:translateY(calc(var(--usa-pull,0px) - 40px)) rotate(calc(var(--usa-pull-p,0) * 270deg));opacity:var(--usa-pull-p,0);pointer-events:none}usa-pull-refresh .usa-pull-indicator svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round}usa-pull-refresh .usa-pull-indicator circle{stroke-dasharray:calc(var(--usa-pull-p,0) * 75) 100}usa-pull-refresh[data-armed] .usa-pull-indicator{background:var(--usa-accent,#7c5cff);color:var(--usa-accent-text,#fff)}usa-pull-refresh[data-refreshing] .usa-pull-indicator{opacity:1;animation:usa-pull-spin 0.8s linear infinite}usa-pull-refresh[data-refreshing] .usa-pull-indicator circle{stroke-dasharray:60 100}@keyframes usa-pull-spin{from{transform:translateY(calc(var(--usa-pull,0px) - 40px)) rotate(0)}to{transform:translateY(calc(var(--usa-pull,0px) - 40px)) rotate(360deg)}}@media (prefers-reduced-motion:reduce){usa-pull-refresh[data-refreshing] .usa-pull-indicator{animation-duration:2.4s;transform:translateY(8px)}}"})}function Ts(t="usa-fab"){return be(),y(t,t=>class extends t{static get observedAttributes(){return["direction","gap"]}get open(){return this.flag("open")}set open(t){this.toggle(t)}parts(){const t=Array.from(this.children);return[t[0]||null,t.slice(1)]}offset(t,e){const s=this.num("gap",56)*(t+1);switch(this.str("direction","up")){case"down":return[0,s];case"left":return[-s,0];case"right":return[s,0];case"radial":{const s=Math.PI+(e>1?t/(e-1)*(Math.PI/2):Math.PI/4),i=1.6*this.num("gap",56);return[Math.cos(s)*i,Math.sin(s)*i]}default:return[0,-s]}}mount(){const[t,e]=this.parts();t&&(t.classList.add("usa-fab-main"),t.setAttribute("aria-haspopup","true"),e.forEach(t=>t.classList.add("usa-fab-action")),this.apply(!1),this.listen(t,"click",()=>this.toggle()),this.listen(document,"keydown",e=>{"Escape"===e.key&&this.open&&(this.toggle(!1),t.focus())}),this.listen(document,"pointerdown",t=>this.open&&!this.contains(t.target)&&this.toggle(!1)),this.listen(this,"click",t=>{const e=t.target.closest?.(".usa-fab-action");e&&this.contains(e)&&this.toggle(!1)}))}apply(t){const[e,s]=this.parts();if(!e)return;const i=this.open;e.setAttribute("aria-expanded",String(i)),s.forEach((e,a)=>{const[r,n]=this.offset(a,s.length);e.toggleAttribute("inert",!i),e.setAttribute("aria-hidden",String(!i));const o=i?`translate(${r.toFixed(1)}px, ${n.toFixed(1)}px) scale(1)`:"translate(0, 0) scale(0.4)",l=e.style.transform||"translate(0, 0) scale(0.4)";if(e.style.transform=this.reduced?i?`translate(${r.toFixed(1)}px, ${n.toFixed(1)}px)`:"translate(0, 0)":o,e.style.opacity=i?"1":"0",t&&!this.reduced){const t=Pe(i?"wobbly":"stiff");this.motion(e,[{transform:l,opacity:i?0:1},{transform:o,opacity:i?1:0}],{...t,delay:35*(i?a:s.length-1-a)})}})}toggle(t){const e=void 0===t?!this.open:t;e!==this.open&&(this.setFlag("open",e),this.apply(!0),this.emit("toggle",{open:e}))}},{id:"fab",text:'usa-fab{position:fixed;right:max(20px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom));z-index:900;display:grid;place-items:center}usa-fab[position="bottom-left"]{right:auto;left:max(20px,env(safe-area-inset-left))}usa-fab[position="inline"]{position:relative;right:auto;bottom:auto;display:inline-grid}usa-fab>*{grid-area:1 / 1}usa-fab .usa-fab-main{position:relative;z-index:1;width:56px;height:56px;border-radius:min(var(--usa-radius,14px) * 1.2,28px);border:0;display:grid;place-items:center;font-size:24px;cursor:pointer;background:var(--usa-accent,#7c5cff);color:var(--usa-accent-text,#fff);box-shadow:var(--usa-shadow);transition:transform 0.35s cubic-bezier(0.34,1.56,0.64,1)}usa-fab[open] .usa-fab-main{transform:rotate(45deg)}usa-fab .usa-fab-action{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;opacity:0;transform:scale(0.4);will-change:transform,opacity}usa-fab .usa-fab-main:focus-visible,usa-fab .usa-fab-action:focus-visible{outline:2px solid var(--usa-accent,#7c5cff);outline-offset:3px}@media (prefers-reduced-motion:reduce){usa-fab .usa-fab-main{transition:none}}'})}function zs(t="usa-navbar"){return be(),y(t,t=>class extends t{constructor(){super(...arguments),this._frame=0,this._last=0}get hiddenByScroll(){return this.hasAttribute("data-hidden")}mount(){const t=this.str("target"),e=t&&document.querySelector(t)||window,s=()=>e===window?window.scrollY||document.documentElement.scrollTop:e.scrollTop;this._last=s();const i=()=>{this._frame=0;const t=s(),e=t-this._last;this._last=t,this.toggleAttribute("data-scrolled",t>4),t<=this.num("threshold",64)||e<-2?this.show():e>2&&!this.contains(document.activeElement)&&this.hide()};this.listen(e,"scroll",()=>{this._frame||(this._frame=$(i))},{passive:!0}),this.listen(this,"focusin",()=>this.show()),i()}unmount(){z(this._frame),this._frame=0}hide(){this.hiddenByScroll||(this.setAttribute("data-hidden",""),this.emit("hide"))}show(){this.hiddenByScroll&&(this.removeAttribute("data-hidden"),this.emit("show"))}},{id:"navbar",text:"usa-navbar{position:sticky;top:0;z-index:800;display:block;transition:transform 0.35s cubic-bezier(0.22,1,0.36,1),padding 0.25s ease,box-shadow 0.25s ease;will-change:transform}usa-navbar[data-hidden]{transform:translateY(-100%)}usa-navbar[data-scrolled]{box-shadow:var(--usa-shadow,0 6px 20px -10px rgb(0 0 0 / 0.4))}usa-navbar[shrink][data-scrolled]{padding-block:4px}@media (prefers-reduced-motion:reduce){usa-navbar{transition:none}}"})}function Ps(t="usa-slider"){return be(),y(t,t=>{class e extends t{static get observedAttributes(){return["min","max","disabled","label"]}constructor(){super(),this._internals=null,this._v=0,this._id=-1;try{this._internals=this.attachInternals?.()??null}catch{this._internals=null}}range(){const t=this.num("min",0);return[t,Math.max(t+1e-9,this.num("max",100)),Math.max(1e-9,this.num("step",1))]}get value(){return this._v}set value(t){this.setValue(t,!1)}fraction(t=this._v){const[e,s]=this.range();return(t-e)/(s-e)}setValue(t,e,s=!0){const[i,a,r]=this.range(),n=U(Math.round((t-i)/r)*r+i,i,a),o=Number(n.toFixed(10)),l=o!==this._v;this._v=o,this.setAttribute("aria-valuenow",String(o)),this.setAttribute("aria-valuetext",String(o)),this._internals?.setFormValue?.(String(o));const c=this.querySelector(".usa-slider-bubble");c&&(c.textContent=String(o)),s?this._pos?.set(this.fraction()):this._pos?.jump(this.fraction()),l&&e&&(this.dispatchEvent(new Event("input",{bubbles:!0})),this.emit("input",{value:o}))}mount(){this.querySelector(":scope > .usa-slider-track")||(this.innerHTML='<span class="usa-slider-track"><span class="usa-slider-fill"></span></span><span class="usa-slider-thumb"><span class="usa-slider-bubble"></span></span>'),this.setAttribute("role","slider"),this.hasAttribute("tabindex")||(this.tabIndex=0);const[t,e]=this.range();this.setAttribute("aria-valuemin",String(t)),this.setAttribute("aria-valuemax",String(e)),this.str("label")&&this.setAttribute("aria-label",this.str("label")),this.toggleAttribute("aria-disabled",this.flag("disabled")),this._pos=Le({spring:"stiff",onUpdate:t=>this.style.setProperty("--usa-slider",U(t,0,1).toFixed(4))}),this.setValue(this.num("value",t),!1,!1);const s=s=>{const i=this.getBoundingClientRect();return t+U((s.clientX-i.left)/(i.width||1),0,1)*(e-t)};this.listen(this,"pointerdown",t=>{if(!this.flag("disabled")){this._id=t.pointerId;try{this.setPointerCapture?.(t.pointerId)}catch{}this.setAttribute("data-dragging",""),this.setValue(s(t),!0)}}),this.listen(this,"pointermove",t=>t.pointerId===this._id&&this.setValue(s(t),!0));const i=t=>{t.pointerId===this._id&&(this._id=-1,this.removeAttribute("data-dragging"),this.commit())};this.listen(this,"pointerup",i),this.listen(this,"pointercancel",i),this.listen(this,"keydown",t=>{if(this.flag("disabled"))return;const[e,s,i]=this.range(),a={ArrowRight:this._v+i,ArrowUp:this._v+i,ArrowLeft:this._v-i,ArrowDown:this._v-i,PageUp:this._v+10*i,PageDown:this._v-10*i,Home:e,End:s};t.key in a&&(t.preventDefault(),this.setValue(a[t.key],!0),this.commit())})}unmount(){this._pos?.stop()}commit(){this.dispatchEvent(new Event("change",{bubbles:!0})),this.emit("change",{value:this._v})}}return e.formAssociated=!0,e},{id:"slider",text:"usa-slider{--usa-slider:0;position:relative;display:block;height:28px;min-width:120px;touch-action:none;cursor:pointer;-webkit-tap-highlight-color:transparent}usa-slider .usa-slider-track{position:absolute;left:0;right:0;top:50%;height:6px;margin-top:-3px;border-radius:3px;background:color-mix(in srgb,currentColor 16%,transparent);overflow:hidden}usa-slider .usa-slider-fill{position:absolute;inset:0;background:var(--usa-accent,#7c5cff);transform-origin:0 50%;transform:scaleX(var(--usa-slider))}usa-slider .usa-slider-thumb{position:absolute;top:50%;left:calc(var(--usa-slider) * 100%);width:20px;height:20px;margin:-10px 0 0 -10px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgb(0 0 0 / 0.35),0 0 0 4px color-mix(in srgb,var(--usa-accent,#7c5cff) 0%,transparent);transition:transform 0.25s cubic-bezier(0.34,1.56,0.64,1),box-shadow 0.2s ease}usa-slider:hover .usa-slider-thumb,usa-slider:focus-visible .usa-slider-thumb{box-shadow:0 1px 4px rgb(0 0 0 / 0.35),0 0 0 6px color-mix(in srgb,var(--usa-accent,#7c5cff) 25%,transparent)}usa-slider[data-dragging] .usa-slider-thumb{transform:scale(1.25)}usa-slider .usa-slider-bubble{position:absolute;bottom:150%;left:50%;transform:translateX(-50%) scale(0.6);opacity:0;padding:2px 8px;border-radius:8px;font:600 12px/1.6 system-ui,sans-serif;color:var(--usa-accent-text,#fff);background:var(--usa-accent,#7c5cff);white-space:nowrap;pointer-events:none;transition:opacity 0.15s ease,transform 0.25s cubic-bezier(0.34,1.56,0.64,1)}usa-slider[bubble][data-dragging] .usa-slider-bubble,usa-slider[bubble]:focus-visible .usa-slider-bubble{opacity:1;transform:translateX(-50%) scale(1)}usa-slider:focus-visible{outline:none}usa-slider[disabled]{opacity:0.45;cursor:not-allowed}@media (prefers-reduced-motion:reduce){usa-slider .usa-slider-thumb,usa-slider .usa-slider-bubble{transition:none}}"})}function Fs(t="usa-popover"){return be(),y(t,t=>class extends t{get open(){return this.flag("open")}set open(t){this.toggle(t)}parts(){return[this.firstElementChild,this.querySelector(":scope > [data-popover]")]}mount(){const[t,e]=this.parts();t&&e&&t!==e&&(e.id||(e.id=_s("usa-pop")),e.classList.add("usa-surface","usa-popover-panel"),e.hasAttribute("role")||e.setAttribute("role","dialog"),e.tabIndex=-1,t.setAttribute("aria-controls",e.id),t.setAttribute("aria-haspopup","dialog"),this.render(!1),this.listen(t,"click",()=>this.toggle()),this.listen(document,"keydown",e=>{"Escape"===e.key&&this.open&&(this.toggle(!1),t.focus())}),this.listen(document,"pointerdown",t=>this.open&&!this.contains(t.target)&&this.toggle(!1)),this.listen(window,"resize",()=>this.open&&ws(e,t,this.str("placement","bottom"))))}render(t){const[e,s]=this.parts();if(!e||!s)return;if(e.setAttribute("aria-expanded",String(this.open)),s.hidden=!this.open,!this.open)return;const i=ws(s,e,this.str("placement","bottom"));if(!t)return;const a={top:"50% 100%",bottom:"50% 0",left:"100% 50%",right:"0 50%"}[i];s.style.transformOrigin=a,this.motion(s,this.reduced?[{opacity:0},{opacity:1}]:[{opacity:0,transform:"scale(0.9)"},{opacity:1,transform:"none"}],this.reduced?{duration:120}:Pe("wobbly")),s.focus({preventScroll:!0})}toggle(t){const e=void 0===t?!this.open:t;e!==this.open&&(this.setFlag("open",e),this.render(!0),this.emit(e?"open":"close"))}},{id:"popover",text:"usa-popover{display:inline-block}usa-popover .usa-popover-panel{position:fixed;z-index:1500;min-width:180px;max-width:min(92vw,360px);padding:12px 14px;outline:none}usa-popover .usa-popover-panel[hidden]{display:none}"})}function Ls(t="usa-badge"){return be(),y(t,t=>class extends t{constructor(){super(...arguments),this._el=null}static get observedAttributes(){return["value","max","dot","label"]}get value(){return this.str("value")}set value(t){this.setAttribute("value",String(t))}mount(){this._el&&this._el.isConnected||(this._el=document.createElement("span"),this._el.className="usa-badge-count",this.append(this._el)),this.sync(!1)}changed(t){this.sync("value"===t)}sync(t){const e=this._el;if(!e)return;const s=this.value,i=Number(s),a=this.num("max",99),r=this.flag("dot")?"":""!==s&&Number.isFinite(i)&&i>a?`${a}+`:s,n=!this.flag("dot")&&(""===s||"0"===s&&!this.flag("show-zero"));e.textContent=r,e.hidden=n,this.toggleAttribute("data-dot",this.flag("dot"));const o=this.str("label",s?`${s} new`:"New");e.setAttribute("aria-label",o.replace("{n}",s)),e.setAttribute("role","status"),!t||n||this.reduced||this.motion(e,[{transform:"scale(0.4)"},{transform:"scale(1)"}],Pe("bouncy"))}},{id:"badge",text:'usa-badge{position:relative;display:inline-block}usa-badge .usa-badge-count{position:absolute;top:0;right:0;transform-origin:50% 50%;translate:45% -45%;min-width:18px;height:18px;padding:0 5px;box-sizing:border-box;border-radius:9px;display:grid;place-items:center;font:700 11px/1 system-ui,sans-serif;color:var(--usa-accent-text,#fff);background:var(--usa-badge-color,#e5484d);box-shadow:0 0 0 2px var(--usa-badge-ring,Canvas);pointer-events:none}usa-badge[data-dot] .usa-badge-count{min-width:10px;width:10px;height:10px;padding:0}usa-badge .usa-badge-count[hidden]{display:none}usa-badge[pulse] .usa-badge-count::after{content:"";position:absolute;inset:0;border-radius:inherit;background:inherit;animation:usa-badge-pulse 1.6s ease-out infinite;z-index:-1}@keyframes usa-badge-pulse{from{transform:scale(1);opacity:0.6}to{transform:scale(2.4);opacity:0}}@media (prefers-reduced-motion:reduce){usa-badge[pulse] .usa-badge-count::after{animation:none}}'})}function qs(t="usa-avatar-stack"){return be(),y(t,t=>class extends t{static get observedAttributes(){return["max","size","overlap"]}mount(){this.querySelector(":scope > .usa-avatar-more")?.remove();const t=Array.from(this.children),e=Math.max(1,this.num("max",5));if(this.style.setProperty("--usa-avatar-size",`${this.num("size",36)}px`),this.style.setProperty("--usa-avatar-overlap",String(this.num("overlap",.35))),this.setAttribute("role","group"),this.setAttribute("aria-label",this.str("label",`${t.length} people`)),t.forEach((s,i)=>{s.classList.add("usa-avatar"),s.hidden=i>=e,s.style.setProperty("--i",String(i)),s.style.zIndex=String(t.length-i)}),t.length>e){const s=document.createElement("span");s.className="usa-avatar usa-avatar-more",s.textContent="+"+(t.length-e),s.style.setProperty("--i",String(e)),s.setAttribute("aria-label",`and ${t.length-e} more`),this.append(s)}}},{id:"avatar-stack",text:"usa-avatar-stack{--usa-avatar-size:36px;--usa-avatar-overlap:0.35;display:inline-flex;align-items:center;padding-inline-start:calc(var(--usa-avatar-size) * var(--usa-avatar-overlap))}usa-avatar-stack .usa-avatar{width:var(--usa-avatar-size);height:var(--usa-avatar-size);border-radius:50%;object-fit:cover;flex:none;box-shadow:0 0 0 2px var(--usa-avatar-ring,Canvas);margin-inline-start:calc(var(--usa-avatar-size) * var(--usa-avatar-overlap) * -1);transition:margin 0.45s cubic-bezier(0.34,1.56,0.64,1),transform 0.3s cubic-bezier(0.34,1.56,0.64,1);display:grid;place-items:center;font:700 12px/1 system-ui,sans-serif;background:color-mix(in srgb,currentColor 14%,transparent)}usa-avatar-stack .usa-avatar[hidden]{display:none}usa-avatar-stack:hover .usa-avatar,usa-avatar-stack:focus-within .usa-avatar{margin-inline-start:4px}usa-avatar-stack .usa-avatar:hover{transform:translateY(-4px) scale(1.08)}@media (prefers-reduced-motion:reduce){usa-avatar-stack .usa-avatar{transition:none}usa-avatar-stack:hover .usa-avatar,usa-avatar-stack:focus-within .usa-avatar{margin-inline-start:calc(var(--usa-avatar-size) * var(--usa-avatar-overlap) * -1)}usa-avatar-stack .usa-avatar:hover{transform:none}}"})}function Rs(){As(),Ss(),Cs(),$s(),Ts(),zs(),Ps(),Fs(),Ls(),qs()}const Is=["dot","magnetic","glow"];function Ns(t="usa-cursor"){return y(t,t=>class extends t{constructor(){super(...arguments),this._frame=0}static get observedAttributes(){return["mode","size","color","hide-native"]}get active(){return this.hasAttribute("data-active")}mount(){this.setAttribute("aria-hidden","true");const t="function"!=typeof matchMedia||matchMedia("(pointer: fine)").matches||matchMedia("(hover: hover)").matches;if(this.reduced||!t)return void this.replaceChildren();const e=this.str("mode","dot"),s=Is.includes(e)?e:"dot";this.innerHTML=Array.from({length:1},(t,e)=>`<span class="usa-cursor-${"glow"===s?"glow":"ring"}" style="--i:${e}"></span>`).join("")+("glow"===s?"":'<span class="usa-cursor-dot"></span>'),this.str("color")&&this.style.setProperty("--usa-cursor-color",this.str("color")),this.style.setProperty("--usa-cursor-size",`${this.num("size",28)}px`),this.flag("hide-native")&&document.documentElement.classList.add("usa-cursor-none"),this.onCleanup(()=>document.documentElement.classList.remove("usa-cursor-none"));const i=Array.from(this.querySelectorAll(".usa-cursor-ring, .usa-cursor-glow")),a=this.querySelector(".usa-cursor-dot"),r=i.map(()=>({x:-100,y:-100}));let n=-100,o=-100,l=null;const c=this.str("targets",'a, button, [role="button"], [data-cursor], input, select, textarea, label'),u=()=>{this._frame=0;let t=n,e=o;r.forEach((a,r)=>{const n="glow"===s?.12:.22,o=l&&0===r?l.left+l.width/2:t,c=l&&0===r?l.top+l.height/2:e;a.x+=(o-a.x)*n,a.y+=(c-a.y)*n,i[r].style.transform=`translate3d(${a.x.toFixed(1)}px, ${a.y.toFixed(1)}px, 0)`,t=a.x,e=a.y}),l&&i[0]?(i[0].style.width=`${l.width+12}px`,i[0].style.height=`${l.height+12}px`):i[0]&&(i[0].style.width=i[0].style.height=""),a&&(a.style.transform=`translate3d(${n}px, ${o}px, 0)`);r.some((t,e)=>Math.abs(t.x-(0===e&&l?l.left+l.width/2:n))>.3)&&(this._frame=$(u))},d=()=>{this._frame||(this._frame=$(u))};this.listen(document,"pointermove",t=>{if("touch"!==t.pointerType){if(n=t.clientX,o=t.clientY,this.setAttribute("data-active",""),"magnetic"===s){const e=t.target?.closest?.(c);l=e?e.getBoundingClientRect():null,this.toggleAttribute("data-snapped",!!e)}else this.toggleAttribute("data-hover",!!t.target?.closest?.(c));d()}},{passive:!0}),this.listen(document,"pointerdown",()=>this.setAttribute("data-down","")),this.listen(document,"pointerup",()=>this.removeAttribute("data-down")),this.listen(document.documentElement,"pointerleave",()=>this.removeAttribute("data-active"))}unmount(){z(this._frame),this._frame=0,this.removeAttribute("data-active")}},{id:"cursor",text:"usa-cursor{--usa-cursor-color:var(--usa-accent,#7c5cff);--usa-cursor-size:28px;position:fixed;inset:0;pointer-events:none;z-index:2147483600;opacity:0;transition:opacity 0.2s ease;contain:strict}usa-cursor[data-active]{opacity:1}usa-cursor .usa-cursor-ring{position:absolute;left:0;top:0;width:var(--usa-cursor-size);height:var(--usa-cursor-size);margin:calc(var(--usa-cursor-size) / -2) 0 0 calc(var(--usa-cursor-size) / -2);border:1.5px solid var(--usa-cursor-color);border-radius:999px;box-sizing:border-box;transition:width 0.25s cubic-bezier(0.34,1.56,0.64,1),height 0.25s cubic-bezier(0.34,1.56,0.64,1),margin 0.25s ease,border-radius 0.25s ease,background-color 0.2s ease;will-change:transform}usa-cursor[data-hover] .usa-cursor-ring:first-child{width:calc(var(--usa-cursor-size) * 1.6);height:calc(var(--usa-cursor-size) * 1.6);margin:calc(var(--usa-cursor-size) * -0.8) 0 0 calc(var(--usa-cursor-size) * -0.8);background:color-mix(in srgb,var(--usa-cursor-color) 15%,transparent)}usa-cursor[data-snapped] .usa-cursor-ring{border-radius:12px;background:color-mix(in srgb,var(--usa-cursor-color) 12%,transparent);translate:-50% -50%;margin:0}usa-cursor[data-down] .usa-cursor-ring:first-child{scale:0.8}usa-cursor .usa-cursor-dot{position:absolute;left:-3px;top:-3px;width:6px;height:6px;border-radius:50%;background:var(--usa-cursor-color)}usa-cursor[data-snapped] .usa-cursor-dot{opacity:0}usa-cursor .usa-cursor-glow{position:absolute;left:-200px;top:-200px;width:400px;height:400px;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--usa-cursor-color) 35%,transparent),transparent 65%);mix-blend-mode:screen}.usa-cursor-none,.usa-cursor-none *{cursor:none !important}@media (pointer:coarse),(prefers-reduced-motion:reduce){usa-cursor{display:none}.usa-cursor-none,.usa-cursor-none *{cursor:auto !important}}"})}function Ys(t,e={}){if("undefined"==typeof window)return Promise.resolve();const s=e.target||null,i=s?s.scrollTop:window.scrollY;let a="number"==typeof t?t:0;if("number"!=typeof t){const e="string"==typeof t?document.querySelector(t):t;if(!e)return Promise.resolve();const r=e.getBoundingClientRect().top;a=i+r-(s?s.getBoundingClientRect().top:0)}a=Math.max(0,a-(e.offset??0));const r=t=>s?s.scrollTop=t:window.scrollTo(0,t);if(h())return r(a),Promise.resolve();const{values:n,duration:o}=Te(e.preset||"slow"),l=T();return new Promise(t=>{const e=()=>{const s=Math.min(1,(T()-l)/Math.max(1,o)),c=n[Math.min(n.length-1,Math.round(s*(n.length-1)))];r(i+(a-i)*c),s<1?$(e):t()};$(e)})}function Bs(t="usa-fullpage"){return y(t,t=>class extends t{constructor(){super(...arguments),this._i=0}get index(){return this._i}sections(){return Array.from(this.children).filter(t=>!t.classList.contains("usa-fullpage-dots"))}mount(){this.hasAttribute("tabindex")||(this.tabIndex=0);const t=this.sections();t.forEach((t,e)=>{t.classList.add("usa-fullpage-section"),t.setAttribute("data-index",String(e))});let e=null;if(this.flag("dots")&&(e=document.createElement("nav"),e.className="usa-fullpage-dots",e.setAttribute("aria-label","Sections"),t.forEach((t,s)=>{const i=document.createElement("button");i.type="button",i.setAttribute("aria-label",t.getAttribute("aria-label")||t.querySelector("h1,h2,h3")?.textContent?.trim()||`Section ${s+1}`),i.addEventListener("click",()=>this.go(s)),e.append(i)}),this.append(e),this.onCleanup(()=>e?.remove())),this.mark(0),"undefined"!=typeof IntersectionObserver){const e=new IntersectionObserver(t=>{for(const e of t)e.isIntersecting&&e.intersectionRatio>=.6&&this.mark(Number(e.target.dataset.index))},{root:this,threshold:[.6]});t.forEach(t=>e.observe(t)),this.onCleanup(()=>e.disconnect())}this.listen(this,"keydown",t=>{const e=this.sections().length,s={PageDown:this._i+1,ArrowDown:this._i+1," ":this._i+1,PageUp:this._i-1,ArrowUp:this._i-1,Home:0,End:e-1};"x"===this.str("axis")&&Object.assign(s,{ArrowRight:this._i+1,ArrowLeft:this._i-1}),t.key in s&&!t.target.closest?.("input, textarea, select")&&(t.preventDefault(),this.go(s[t.key]))})}mark(t){t===this._i&&this.hasAttribute("data-ready")||(this.setAttribute("data-ready",""),this._i=t,this.sections().forEach((e,s)=>e.toggleAttribute("data-current",s===t)),this.querySelectorAll(".usa-fullpage-dots button").forEach((e,s)=>s===t?e.setAttribute("aria-current","true"):e.removeAttribute("aria-current")),this.emit("section",{index:t}))}go(t){const e=this.sections(),s=e[Math.max(0,Math.min(e.length-1,t))];s&&("x"===this.str("axis")?this.scrollTo({left:s.offsetLeft,behavior:this.reduced?"auto":"smooth"}):Ys(s.offsetTop,{target:this,preset:"stiff"}),this.mark(e.indexOf(s)))}next(){this.go(this._i+1)}prev(){this.go(this._i-1)}},{id:"fullpage",text:'usa-fullpage{position:relative;display:block;height:100vh;height:100dvh;overflow-y:auto;scroll-snap-type:y mandatory;overscroll-behavior:contain;outline:none}usa-fullpage[axis="x"]{display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory}usa-fullpage .usa-fullpage-section{box-sizing:border-box;min-height:100%;scroll-snap-align:start;scroll-snap-stop:always}usa-fullpage[axis="x"] .usa-fullpage-section{flex:0 0 100%}usa-fullpage .usa-fullpage-dots{position:sticky;float:right;top:50%;margin-right:16px;transform:translateY(-50%);display:grid;gap:10px;z-index:5}usa-fullpage .usa-fullpage-dots button{width:10px;height:10px;padding:0;border-radius:50%;border:0;cursor:pointer;background:color-mix(in srgb,currentColor 35%,transparent);transition:transform 0.3s cubic-bezier(0.34,1.56,0.64,1),background-color 0.2s ease}usa-fullpage .usa-fullpage-dots button[aria-current]{background:var(--usa-accent,#7c5cff);transform:scale(1.5)}'})}function Os(t="usa-loading-bar"){return y(t,t=>class extends t{constructor(){super(...arguments),this._p=0}get progress(){return this._p}mount(){this.querySelector(".usa-loading-bar-fill")||(this.innerHTML='<span class="usa-loading-bar-fill"></span>'),this.setAttribute("role","progressbar"),this.setAttribute("aria-label",this.str("label","Loading")),this.setAttribute("aria-valuemin","0"),this.setAttribute("aria-valuemax","100"),this.str("color")&&this.style.setProperty("--usa-loading-color",this.str("color")),this.style.setProperty("--usa-loading-h",`${this.num("height",3)}px`),this.paint()}unmount(){clearInterval(this._t),clearTimeout(this._h)}paint(){this.style.setProperty("--usa-loading",this._p.toFixed(4)),this.setAttribute("aria-valuenow",String(Math.round(100*this._p)))}start(){clearTimeout(this._h),clearInterval(this._t),this.setAttribute("data-active",""),this.setAttribute("aria-busy","true"),this._p=Math.max(this._p,.08),this.paint(),this._t=setInterval(()=>{this._p+=(.9-this._p)*(this.reduced?.5:.08),this.paint()},200)}set(t){this.setAttribute("data-active",""),this._p=Math.max(0,Math.min(1,t)),this.paint()}done(){clearInterval(this._t),this._p=1,this.paint(),this.removeAttribute("aria-busy"),this._h=setTimeout(()=>{this.removeAttribute("data-active"),this._h=setTimeout(()=>{this._p=0,this.paint()},300)},250)}},{id:"loading-bar",text:'usa-loading-bar{--usa-loading:0;--usa-loading-h:3px;--usa-loading-color:var(--usa-accent,#7c5cff);position:fixed;left:0;right:0;top:0;height:var(--usa-loading-h);z-index:2147483500;pointer-events:none;opacity:0;transition:opacity 0.3s ease}usa-loading-bar[position="bottom"]{top:auto;bottom:0}usa-loading-bar[data-active]{opacity:1}usa-loading-bar .usa-loading-bar-fill{position:absolute;inset:0;transform-origin:0 50%;transform:scaleX(var(--usa-loading));background:var(--usa-loading-color);box-shadow:0 0 10px var(--usa-loading-color);transition:transform 0.2s ease-out}@media (prefers-reduced-motion:reduce){usa-loading-bar .usa-loading-bar-fill{transition:none}}'})}function Xs(){if("undefined"==typeof document)return null;let t=document.querySelector("usa-loading-bar");return t||(Os(),t=document.createElement("usa-loading-bar"),document.body.appendChild(t)),"function"==typeof t.start?t:null}const Ds={start:()=>Xs()?.start(),set:t=>Xs()?.set(t),done:()=>Xs()?.done(),async track(t){Xs()?.start();try{return await("function"==typeof t?t():t)}finally{Xs()?.done()}}};function js(t="usa-back-to-top"){return y(t,t=>class extends t{constructor(){super(...arguments),this._frame=0}get visible(){return this.hasAttribute("data-visible")}mount(){this.querySelector("button")||(this.innerHTML=`<button type="button" aria-label="${this.str("label","Back to top")}"><svg viewBox="0 0 36 36" aria-hidden="true"><circle cx="18" cy="18" r="16" pathLength="100"/><path d="M12 20l6-6 6 6"/></svg></button>`);const t=this.querySelector("button"),e=()=>{this._frame=0;const t=window.scrollY||document.documentElement.scrollTop||0,e=Math.max(1,(document.documentElement.scrollHeight||0)-(window.innerHeight||0));this.toggleAttribute("data-visible",t>this.num("offset",300)),this.style.setProperty("--usa-btt",Math.min(1,t/e).toFixed(4))};this.listen(window,"scroll",()=>{this._frame||(this._frame=$(e))},{passive:!0}),this.listen(t,"click",async()=>{await Ys(0,{preset:"slow"});const t=document.querySelector(this.str("focus-target","#main"))||document.body;t.hasAttribute("tabindex")||t===document.body||(t.tabIndex=-1),t.focus?.({preventScroll:!0})}),e()}unmount(){z(this._frame),this._frame=0}},{id:"back-to-top",text:'usa-back-to-top{--usa-btt:0;position:fixed;right:max(20px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom));z-index:850;opacity:0;transform:translateY(16px) scale(0.8);pointer-events:none;transition:opacity 0.25s ease,transform 0.4s cubic-bezier(0.34,1.56,0.64,1)}usa-back-to-top[position="bottom-left"]{right:auto;left:max(20px,env(safe-area-inset-left))}usa-back-to-top[data-visible]{opacity:1;transform:none;pointer-events:auto}usa-back-to-top button{width:48px;height:48px;padding:0;border:0;border-radius:50%;cursor:pointer;display:grid;place-items:center;color:var(--usa-accent,#7c5cff);background:var(--usa-surface,#1b1e27);box-shadow:var(--usa-shadow,0 8px 24px -10px rgb(0 0 0 / 0.5))}usa-back-to-top svg{width:44px;height:44px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}usa-back-to-top circle{stroke-dasharray:100;stroke-dashoffset:calc(100 - var(--usa-btt) * 100);transform:rotate(-90deg);transform-origin:50% 50%;opacity:0.85}usa-back-to-top button:focus-visible{outline:2px solid var(--usa-accent,#7c5cff);outline-offset:3px}@media (prefers-reduced-motion:reduce){usa-back-to-top{transition:opacity 0.2s ease;transform:none}}'})}function Hs(t="usa-ambient"){return y(t,t=>class extends t{constructor(){super(...arguments),this._frame=0}static get observedAttributes(){return["effect","density","color"]}mount(){this.setAttribute("aria-hidden","true");const t=this.str("effect","particles");if(this.style.setProperty("--usa-ambient-opacity",String(this.num("opacity",.6))),this.replaceChildren(),"noise"===t)return;if("gradient"===t){const t=()=>{this._frame=0;const t=Math.max(1,document.documentElement.scrollHeight-window.innerHeight);this.style.setProperty("--usa-ambient-p",((window.scrollY||0)/t).toFixed(4))};return this.reduced||this.listen(window,"scroll",()=>!this._frame&&(this._frame=$(t)),{passive:!0}),void t()}const e=document.createElement("canvas");this.append(e);const s=e.getContext?.("2d");if(!s)return;const i=Math.min(2,window.devicePixelRatio||1);let a=0,r=0;const n=this.str("color","snow"===t||"stars"===t?"#ffffff":"#a78bfa"),o=this.num("speed",1),l=()=>{a=window.innerWidth||800,r=window.innerHeight||600,e.width=a*i,e.height=r*i,e.style.width=`${a}px`,e.style.height=`${r}px`,s.setTransform(i,0,0,i,0,0)};l();const c="stars"===t?140:"snow"===t?90:60,u=Math.round(c*Math.max(.2,Math.min(3,this.num("density",1)))*Math.min(1.5,a*r/1024e3)),d=Array.from({length:u},()=>({x:Math.random()*a,y:Math.random()*r,r:"stars"===t?1.3*Math.random()+.2:"snow"===t?2.6*Math.random()+.8:2*Math.random()+.6,vx:.25*(Math.random()-.5),vy:"snow"===t?.8*Math.random()+.4:.25*(Math.random()-.5),t:Math.random()*Math.PI*2}));s.fillStyle=n;const h=e=>{s.clearRect(0,0,a,r);for(const i of d)e&&(i.t+=.02*o,i.x+=(i.vx+("snow"===t?.3*Math.sin(i.t):0))*o,i.y+=i.vy*o,i.y>r+5&&(i.y=-5),i.y<-5&&(i.y=r+5),i.x>a+5&&(i.x=-5),i.x<-5&&(i.x=a+5)),s.globalAlpha="stars"===t?.35+.65*Math.abs(Math.sin(i.t)):.85,s.beginPath(),s.arc(i.x,i.y,i.r,0,2*Math.PI),s.fill()};if(this.listen(window,"resize",()=>{l(),s.fillStyle=n,h(!1)}),this.reduced)return void h(!1);const p=()=>{document.hidden||h(!0),this._frame=$(p)};this._frame=$(p)}unmount(){z(this._frame),this._frame=0}},{id:"ambient",text:"usa-ambient{--usa-ambient-opacity:0.6;--usa-ambient-p:0;position:fixed;inset:0;z-index:-1;pointer-events:none;opacity:var(--usa-ambient-opacity);contain:strict}usa-ambient[layer=\"front\"]{z-index:2147483000}usa-ambient canvas{display:block}usa-ambient[effect=\"noise\"]{opacity:calc(var(--usa-ambient-opacity) * 0.25);background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E\");animation:usa-ambient-grain 0.6s steps(4) infinite;mix-blend-mode:overlay}@keyframes usa-ambient-grain{25%{background-position:-40px 20px}50%{background-position:30px -50px}75%{background-position:-20px -30px}}usa-ambient[effect=\"gradient\"]{background:linear-gradient(135deg,hsl(calc(250 + var(--usa-ambient-p) * 140) 85% 60%),hsl(calc(190 + var(--usa-ambient-p) * 160) 85% 55%) 50%,hsl(calc(320 + var(--usa-ambient-p) * 90) 85% 62%))}@media (prefers-reduced-motion:reduce){usa-ambient[effect=\"noise\"]{animation:none}}"})}function Vs(t="usa-splash"){return y(t,t=>class extends t{constructor(){super(...arguments),this._t0=0,this._gone=!1}mount(){this._t0=Date.now(),this.setAttribute("role","status"),this.setAttribute("aria-label",this.str("label","Loading")),document.body?.setAttribute("aria-busy","true"),this.flag("manual")||("complete"===document.readyState?this.done():this.listen(window,"load",()=>this.done(),{once:!0}))}async done(){if(this._gone)return;this._gone=!0;const t=Math.max(0,this.num("min",600)-(Date.now()-this._t0));t&&await new Promise(e=>setTimeout(e,t));const e=this.reduced?"fade":this.str("exit","fade"),s={fade:[{opacity:1},{opacity:0}],scale:[{opacity:1,transform:"scale(1)"},{opacity:0,transform:"scale(1.15)"}],"slide-up":[{transform:"translateY(0)"},{transform:"translateY(-100%)"}],circle:[{clipPath:"circle(150% at 50% 50%)"},{clipPath:"circle(0% at 50% 50%)"}]},i=this.motion(this,s[e]||s.fade,{duration:this.reduced?200:550,easing:"cubic-bezier(0.65, 0, 0.35, 1)",fill:"forwards"});await(i?.finished.catch(()=>{})),document.body?.removeAttribute("aria-busy"),this.hidden=!0,this.emit("done")}},{id:"splash",text:"usa-splash{position:fixed;inset:0;z-index:2147483400;display:grid;place-items:center;background:var(--usa-splash-bg,var(--usa-surface,#0b0d12));color:var(--usa-text,#fff)}usa-splash[hidden]{display:none}"})}function Us(t="usa-auto-skeleton"){return y(t,t=>class extends t{static get observedAttributes(){return["loading"]}get loading(){return this.flag("loading")}set loading(t){this.setFlag("loading",t)}mount(){this.sync(!1)}changed(){this.sync(!0)}sync(t){this.loading?this.setAttribute("aria-busy","true"):(this.removeAttribute("aria-busy"),t&&!this.reduced&&this.motion(this,[{opacity:.4},{opacity:1}],{duration:300,easing:"ease-out"}))}},{id:"auto-skeleton",text:"usa-auto-skeleton{display:block;--usa-skel-base:color-mix(in srgb,currentColor 10%,transparent);--usa-skel-shine:color-mix(in srgb,currentColor 18%,transparent)}usa-auto-skeleton[loading] :is(h1,h2,h3,h4,h5,h6,p,li,span,a,button,label,img,svg,video,input,select,textarea,td,th,figcaption,blockquote,[data-skeleton]):not([data-no-skeleton]):not(:has(:is(h1,h2,h3,h4,h5,h6,p,li,img,button,input))){color:transparent !important;border-color:transparent !important;box-shadow:none !important;user-select:none;pointer-events:none;background:linear-gradient(90deg,var(--usa-skel-base) 25%,var(--usa-skel-shine) 50%,var(--usa-skel-base) 75%) 0 0 / 300% 100% !important;border-radius:6px;animation:usa-skel-shimmer 1.4s ease-in-out infinite}usa-auto-skeleton[loading] :is(img,svg,video){opacity:0}usa-auto-skeleton[loading] :is(img,svg,video):not([data-no-skeleton]){opacity:1;object-position:-9999px}@keyframes usa-skel-shimmer{from{background-position:100% 0}to{background-position:0 0}}@media (prefers-reduced-motion:reduce){usa-auto-skeleton[loading] *{animation:none !important}}"})}const Ws=["low","normal","high"],Gs=["off","low","normal","high"],Ks="usa:motion";function Js(t,e){if(e)try{localStorage.setItem(Ks,t)}catch{}"undefined"!=typeof document&&document.dispatchEvent(new CustomEvent("usa:motion",{detail:{level:t}}))}function Zs(t,e=!1){Gs.includes(t)&&(r("off"===t?{motionSensitivity:"minimal"}:{motionIntensity:t,..."minimal"===n()?{motionSensitivity:"full"}:{}}),Js(t,e))}function Qs(){return"minimal"===n()||"static"===n()?"off":c()}function ti(){try{const t=localStorage.getItem(Ks);t&&Gs.includes(t)&&Zs(t)}catch{}return c()}function ei(t="usa-motion-switch"){return y(t,t=>class extends t{get value(){return Qs()}set value(t){Zs(t,!0),this.sync()}mount(){ti();const t=this.str("labels","Off,Low,Normal,High").split(",");this.setAttribute("role","radiogroup"),this.setAttribute("aria-label",this.str("label","Motion")),this.innerHTML=Gs.map((e,s)=>`<button type="button" role="radio" data-level="${e}">${t[s]||e}</button><span hidden></span>`.replace("<span hidden></span>","")).join("")+'<span class="usa-motion-thumb" aria-hidden="true"></span>',this.listen(this,"click",t=>{const e=t.target.closest?.("[data-level]");e&&this.pick(e.dataset.level)}),this.listen(this,"keydown",t=>{const e=Gs.indexOf(this.value),s="ArrowRight"===t.key||"ArrowDown"===t.key?e+1:"ArrowLeft"===t.key||"ArrowUp"===t.key?e-1:null;null!==s&&(t.preventDefault(),this.pick(Gs[(s+Gs.length)%Gs.length]),this.querySelector('[aria-checked="true"]')?.focus())}),this.listen(document,"usa:motion",()=>this.sync()),this.sync()}pick(t){this.value=t,this.emit("change",{level:t})}sync(){const t=this.value,e=Gs.indexOf(t);this.style.setProperty("--usa-motion-i",String(e)),this.querySelectorAll("[data-level]").forEach(e=>{const s=e.dataset.level===t;e.setAttribute("aria-checked",String(s)),e.tabIndex=s?0:-1})}},{id:"motion-switch",text:'usa-motion-switch{--usa-motion-i:2;position:relative;display:inline-grid;grid-auto-flow:column;grid-auto-columns:1fr;padding:3px;border-radius:999px;background:color-mix(in srgb,currentColor 9%,transparent);isolation:isolate}usa-motion-switch button{position:relative;z-index:1;padding:6px 12px;border:0;background:none;color:inherit;font:inherit;font-size:0.85em;border-radius:999px;cursor:pointer}usa-motion-switch button[aria-checked="true"]{color:var(--usa-accent-text,#fff)}usa-motion-switch button:focus-visible{outline:2px solid var(--usa-accent,#7c5cff);outline-offset:1px}usa-motion-switch .usa-motion-thumb{position:absolute;z-index:0;top:3px;bottom:3px;left:3px;width:calc((100% - 6px) / 4);border-radius:999px;background:var(--usa-accent,#7c5cff);transform:translateX(calc(var(--usa-motion-i) * 100%));transition:transform 0.4s cubic-bezier(0.34,1.4,0.64,1)}@media (prefers-reduced-motion:reduce){usa-motion-switch .usa-motion-thumb{transition:none}}'})}var si='::view-transition-group(root){animation-duration:var(--usa-pt-duration,600ms)}html[data-usa-pt] ::view-transition-old(root),html[data-usa-pt] ::view-transition-new(root){animation-duration:var(--usa-pt-duration,600ms);animation-timing-function:cubic-bezier(0.22,1,0.36,1);mix-blend-mode:normal}html[data-usa-pt="slide"] ::view-transition-old(root),html[data-usa-pt="slide-left"] ::view-transition-old(root){animation-name:usa-pt-out-left}html[data-usa-pt="slide"] ::view-transition-new(root),html[data-usa-pt="slide-left"] ::view-transition-new(root){animation-name:usa-pt-in-right}html[data-usa-pt="slide-right"] ::view-transition-old(root){animation-name:usa-pt-out-right}html[data-usa-pt="slide-right"] ::view-transition-new(root){animation-name:usa-pt-in-left}html[data-usa-pt="slide-up"] ::view-transition-old(root){animation-name:usa-pt-out-up}html[data-usa-pt="slide-up"] ::view-transition-new(root){animation-name:usa-pt-in-up}html[data-usa-pt="zoom"] ::view-transition-old(root){animation-name:usa-pt-zoom-out}html[data-usa-pt="zoom"] ::view-transition-new(root){animation-name:usa-pt-zoom-in}html[data-usa-pt="circle"] ::view-transition-old(root){animation:none}html[data-usa-pt="circle"] ::view-transition-new(root){animation-name:usa-pt-circle}html[data-usa-pt="blinds"] ::view-transition-old(root){animation:none}html[data-usa-pt="blinds"] ::view-transition-new(root){animation-name:usa-pt-blinds;-webkit-mask-image:repeating-linear-gradient(to bottom,#000 0 var(--usa-blind),transparent var(--usa-blind) 10vh);mask-image:repeating-linear-gradient(to bottom,#000 0 var(--usa-blind),transparent var(--usa-blind) 10vh)}html[data-usa-pt="pixel"] ::view-transition-old(root){animation-name:usa-pt-pixel-out;animation-timing-function:steps(10,end)}html[data-usa-pt="pixel"] ::view-transition-new(root){animation-name:usa-pt-pixel-in;animation-timing-function:steps(10,end)}@property --usa-blind{syntax:"<length-percentage>";inherits:false;initial-value:0vh}@keyframes usa-pt-out-left{to{transform:translateX(-30%);opacity:0}}@keyframes usa-pt-in-right{from{transform:translateX(30%);opacity:0}}@keyframes usa-pt-out-right{to{transform:translateX(30%);opacity:0}}@keyframes usa-pt-in-left{from{transform:translateX(-30%);opacity:0}}@keyframes usa-pt-out-up{to{transform:translateY(-12%);opacity:0}}@keyframes usa-pt-in-up{from{transform:translateY(12%);opacity:0}}@keyframes usa-pt-zoom-out{to{transform:scale(0.92);opacity:0}}@keyframes usa-pt-zoom-in{from{transform:scale(1.08);opacity:0}}@keyframes usa-pt-circle{from{clip-path:circle(0 at var(--usa-pt-x,50%) var(--usa-pt-y,50%))}to{clip-path:circle(var(--usa-pt-r,150vmax) at var(--usa-pt-x,50%) var(--usa-pt-y,50%))}}@keyframes usa-pt-blinds{from{--usa-blind:0vh}to{--usa-blind:10vh}}@keyframes usa-pt-pixel-out{to{opacity:0;filter:blur(6px) contrast(1.4)}}@keyframes usa-pt-pixel-in{from{opacity:0;filter:blur(6px) contrast(1.4)}}@media (prefers-reduced-motion:reduce){::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none !important}}';let ii=null;function ai(){"undefined"==typeof document||ai.done||(ai.done=!0,document.addEventListener("pointerdown",t=>ii=[t.clientX,t.clientY],{capture:!0,passive:!0}))}const ri=()=>"undefined"!=typeof document&&"function"==typeof document.startViewTransition;function ni(t){const e=document.documentElement,s=window.innerWidth||1024,i=window.innerHeight||768,[a,r]=void 0!==t.x&&void 0!==t.y?[t.x,t.y]:ii||[s/2,i/2],n=Math.hypot(Math.max(a,s-a),Math.max(r,i-r));e.style.setProperty("--usa-pt-x",`${a}px`),e.style.setProperty("--usa-pt-y",`${r}px`),e.style.setProperty("--usa-pt-r",`${Math.ceil(n)}px`),e.style.setProperty("--usa-pt-duration",`${t.duration??600}ms`)}async function oi(t,e={}){if("undefined"==typeof document)return void await t();f("page-transitions",si),ai();const s=e.effect||"fade";if(h()||!ri()){await t();const s=e.fallback;return void(s&&"function"==typeof s.animate&&!h()&&await s.animate([{opacity:0},{opacity:1}],{duration:200}).finished.catch(()=>{}))}const i=document.documentElement;ni(e),i.setAttribute("data-usa-pt",s);try{const e=document.startViewTransition(()=>t());await e.finished}finally{i.removeAttribute("data-usa-pt")}}function li(){Ns(),Bs(),Os(),js(),Hs(),Vs(),Us(),ei()}function ci(t="usa-timeline"){return y(t,t=>class extends t{constructor(){super(...arguments),this._tl=null}static get observedAttributes(){return["scrub","trigger","overlap"]}get timeline(){return this._tl}play(){return this._tl?this._tl.play(0).then(()=>{this.emit("complete")}):Promise.resolve()}reverse(){return this._tl?this._tl.reverse():Promise.resolve()}seek(t){this._tl?.seek(t)}mount(){const t=this.num("overlap",0),e=this._tl=xt({defaults:{duration:this.num("duration",600),stagger:this.num("stagger",0)}});if(this.querySelectorAll("[data-tl]").forEach((s,i)=>{s.dataset.label&&e.label(s.dataset.label);const a=s.dataset.tl||"fade";e.to(s,yt[a]?a:"fade",{at:s.dataset.at??(i&&t?`-=${t}`:void 0),duration:s.dataset.duration?Number(s.dataset.duration):void 0})}),this.onCleanup(()=>e.cancel()),this.reduced)return void e.seek(e.duration);if(this.flag("scrub")){const t=this.str("scrub"),s=e.scrub(this,{smooth:this.num("smooth",0),engine:"auto",source:"scroll"===t?"scroll":"view"});return this.toggleAttribute("data-native",s.native),void this.onCleanup(s)}const s=this.str("trigger","view");if("click"===s)return e.seek(e.duration),this.listen(this,"click",()=>{this.play()}),this.listen(this,"keydown",t=>{t.target!==this||"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.play())}),void(this.hasAttribute("tabindex")||(this.tabIndex=0));if(e.seek(0),"view"===s){let t=!1;this.inView(s=>{!s||t&&!this.flag("repeat")?!s&&this.flag("repeat")&&e.seek(0):(t=!0,this.play())},{threshold:.2})}}unmount(){this._tl=null}},{id:"timeline",text:"usa-timeline{display:block}usa-timeline[scrub]{position:relative}@media (prefers-reduced-motion:reduce){usa-timeline [data-tl]{opacity:1 !important;transform:none !important;filter:none !important;clip-path:none !important}}"})}function ui(){ci()}function di(t,e,s,i,a={}){const r=a.distance??40,n=a.velocity??300,o="x"===a.axis||"y"!==a.axis&&Math.abs(t)>=Math.abs(e),l=o?t:e,c=o?s:i;if(Math.abs(l)<r&&Math.abs(c)<2*n)return null;if(Math.abs(c)<n&&Math.abs(l)<3*r)return null;return{direction:o?l>0?"right":"left":l>0?"down":"up",velocity:Math.abs(c),dx:t,dy:e}}function hi(t,e,s=1,i=.5,a=4){return t?U(s*(e/t),i,a):s}const pi=t=>"number"==typeof t.pointerId?t.pointerId:1;function fi(t,e,s={}){const i=new Map;let a,r={x:0,y:0},n={x:0,y:0,t:0},o=0,l=0,c=!1,u=null,d=1,h=!1,p=-1e9;const f=s.threshold??4,m=()=>{const[t,e]=[...i.values()];return Math.hypot(t.x-e.x,t.y-e.y)},g=t=>t.timeStamp||Date.now(),b=d=>{i.set(pi(d),{x:d.clientX,y:d.clientY});try{t.setPointerCapture?.(pi(d))}catch{}if(2===i.size&&e.onPinch)return clearTimeout(a),c&&e.onPan?.({dx:n.x-r.x,dy:n.y-r.y,vx:0,vy:0,first:!1,last:!0,event:d}),c=!1,void(u={d0:m(),first:!0});i.size>1||(r={x:d.clientX,y:d.clientY},n={...r,t:g(d)},o=l=0,h=!1,e.onLongPress&&(a=setTimeout(()=>{h=!0,e.onLongPress?.({x:r.x,y:r.y})},s.longPress??500)))},y=t=>{if(!i.has(pi(t)))return;if(i.set(pi(t),{x:t.clientX,y:t.clientY}),u&&i.size>=2){const t=(()=>{const[t,e]=[...i.values()];return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}})();return d=hi(u.d0,m(),1,.05,20),e.onPinch?.({scale:d,x:t.x,y:t.y,first:u.first,last:!1}),void(u.first=!1)}const h=t.clientX-r.x,p=t.clientY-r.y,b=Math.max(1,g(t)-n.t)/1e3;if(o=(t.clientX-n.x)/b,l=(t.clientY-n.y)/b,n={x:t.clientX,y:t.clientY,t:g(t)},!c){const r="x"===s.axis?Math.abs(h):"y"===s.axis?Math.abs(p):Math.hypot(h,p);if(r<f)return;return clearTimeout(a),s.axis&&Math.abs("x"===s.axis?p:h)>r?void i.delete(pi(t)):(c=!0,void e.onPan?.({dx:"y"===s.axis?0:h,dy:"x"===s.axis?0:p,vx:o,vy:l,first:!0,last:!1,event:t}))}t.cancelable&&t.preventDefault(),e.onPan?.({dx:"y"===s.axis?0:h,dy:"x"===s.axis?0:p,vx:o,vy:l,first:!1,last:!1,event:t})},v=t=>{if(!i.has(pi(t)))return;if(i.delete(pi(t)),clearTimeout(a),u)return void(i.size<2&&(e.onPinch?.({scale:d,...r,first:!1,last:!0}),u=null,i.clear()));const f=t.clientX-r.x,m=t.clientY-r.y;if(c){c=!1,g(t)-n.t>80&&(o=l=0),e.onPan?.({dx:"y"===s.axis?0:f,dy:"x"===s.axis?0:m,vx:o,vy:l,first:!1,last:!0,event:t});const i=di(f,m,o,l,{distance:s.swipeDistance,velocity:s.swipeVelocity,axis:s.axis});return void(i&&e.onSwipe?.(i))}if(h||"pointercancel"===t.type)return;const b={x:t.clientX,y:t.clientY},y=g(t);if(e.onDoubleTap&&y-p<300)return p=-1e9,void e.onDoubleTap(b);p=y,e.onTap?.(b)},x=t=>{if(!e.onPinch||!1===s.wheelPinch||!t.ctrlKey)return;t.preventDefault();const i=Math.exp(-t.deltaY/100);e.onPinch({scale:i,x:t.clientX,y:t.clientY,first:!0,last:!0})},w={passive:!1};return t.addEventListener("pointerdown",b),t.addEventListener("pointermove",y,w),t.addEventListener("pointerup",v),t.addEventListener("pointercancel",v),t.addEventListener("wheel",x,w),s.axis&&!t.style.touchAction?t.style.touchAction="x"===s.axis?"pan-y":"pan-x":s.axis||t.style.touchAction||!e.onPan&&!e.onPinch||(t.style.touchAction="none"),()=>{clearTimeout(a),t.removeEventListener("pointerdown",b),t.removeEventListener("pointermove",y,w),t.removeEventListener("pointerup",v),t.removeEventListener("pointercancel",v),t.removeEventListener("wheel",x,w)}}var mi='usa-swipeable{display:block;touch-action:pan-y;user-select:none;-webkit-user-select:none}usa-swipeable[axis="y"]{touch-action:pan-x}usa-swipeable>*{transform:translate3d(var(--usa-swipe,0px),0,0);opacity:calc(1 - var(--usa-swipe-p,0) * 0.5)}usa-swipeable[axis="y"]>*{transform:translate3d(0,var(--usa-swipe,0px),0)}usa-swipeable:focus-visible{outline:2px solid currentColor;outline-offset:2px}usa-pinch-zoom{display:block;overflow:hidden;touch-action:none;position:relative}usa-pinch-zoom>*{transform:translate3d(var(--usa-zoom-x,0px),var(--usa-zoom-y,0px),0) scale(var(--usa-zoom,1));transform-origin:50% 50%}usa-pinch-zoom[data-zoomed]{cursor:grab}usa-pinch-zoom:focus-visible{outline:2px solid currentColor;outline-offset:2px}';function gi(t="usa-swipeable"){return y(t,t=>class extends t{constructor(){super(...arguments),this._off=0}static get observedAttributes(){return["axis","disabled"]}get offset(){return this._off}put(t){this._off=t,this.style.setProperty("--usa-swipe",`${t}px`),this.style.setProperty("--usa-swipe-p",String(Math.min(1,Math.abs(t)/this.num("distance",120))))}swipe(t){if(!this.emit("swipe",{direction:t}))return this.reset();const e="left"===t||"up"===t?-1:1,s=e*(("y"===this.str("axis","x")?this.offsetHeight:this.offsetWidth)+80||600),i=()=>{this.emit("dismiss",{direction:t}),this.flag("dismiss")&&this.remove()};if(this.reduced)return this.put(0),i();this.setAttribute("data-gone",""),this._s=Le({spring:"stiff",value:this._off,onUpdate:t=>this.put(t),onRest:i}),this._s.set(s,1500*e)}reset(){if(this.removeAttribute("data-gone"),this.reduced)return this.put(0);this._s.set(0)}mount(){this._s=Le({spring:this.str("preset","default"),onUpdate:t=>this.put(t)}),this.hasAttribute("tabindex")||(this.tabIndex=0);const t="y"===this.str("axis","x"),e=()=>this.num("distance",120);this.onCleanup(fi(this,{onPan:({dx:s,dy:i,vx:a,vy:r,last:n})=>{if(this.flag("disabled"))return;const o=t?i:s;if(!n)return this._s.stop(),void(this.reduced||this.put(Math.abs(o)>e()?Math.sign(o)*(e()+.35*(Math.abs(o)-e())):o));Math.abs(o)>e()?this.swipe(t?o>0?"down":"up":o>0?"right":"left"):this.hasAttribute("data-gone")||(this.reduced?this.put(0):this._s.set(0,t?r:a))},onSwipe:({direction:e})=>{this.flag("disabled")||this.hasAttribute("data-gone")||t===("up"===e||"down"===e)&&this.swipe(e)}},{axis:t?"y":"x"})),this.listen(this,"keydown",e=>{if(this.flag("disabled"))return;const s=t?{ArrowUp:"up",ArrowDown:"down"}:{ArrowLeft:"left",ArrowRight:"right"};if("Delete"===e.key||"Backspace"===e.key)this.swipe(t?"up":"left");else{if(!s[e.key])return;this.swipe(s[e.key])}e.preventDefault()})}unmount(){this._s?.stop()}},{id:"gesture",text:mi})}function bi(t="usa-pinch-zoom"){return y(t,t=>class extends t{constructor(){super(...arguments),this._v={k:1,x:0,y:0}}get scale(){return this._v.k}paint(){const{k:t,x:e,y:s}=this._v;this.style.setProperty("--usa-zoom",String(t)),this.style.setProperty("--usa-zoom-x",`${e}px`),this.style.setProperty("--usa-zoom-y",`${s}px`),this.toggleAttribute("data-zoomed",t>1.01)}bound(t,e,s){const i=this.clientWidth*(t-1)/2,a=this.clientHeight*(t-1)/2;return{x:U(e,-i,i),y:U(s,-a,a)}}zoomTo(t){const e=U(t,this.num("min",1),this.num("max",4)),s=this.bound(e,this._v.x,this._v.y);this.reduced?(this._v={k:e,...s},this.paint()):(this._k.set(e),this._x.set(s.x),this._y.set(s.y)),this.emit("zoom",{scale:e})}mount(){const t=this.str("preset","gentle");this._k=Le({spring:t,value:this._v.k,onUpdate:t=>(this._v.k=t,this.paint())}),this._x=Le({spring:t,value:this._v.x,onUpdate:t=>(this._v.x=t,this.paint())}),this._y=Le({spring:t,value:this._v.y,onUpdate:t=>(this._v.y=t,this.paint())}),this.hasAttribute("tabindex")||(this.tabIndex=0);let e=1,s=0,i=0;this.onCleanup(fi(this,{onPinch:({scale:t,first:s,last:i})=>{s&&(e=this._v.k);const a=U(e*t,.7*this.num("min",1),1.3*this.num("max",4));if(i)return this.zoomTo(a);this._k.jump(a)},onPan:({dx:t,dy:e,vx:a,vy:r,first:n,last:o})=>{if(this._v.k<=1.01)return;if(n&&(s=this._v.x,i=this._v.y),!o)return this._x.jump(s+t),void this._y.jump(i+e);const l=this.bound(this._v.k,s+t+.15*a,i+e+.15*r);this._x.set(l.x,a),this._y.set(l.y,r)},onDoubleTap:()=>this.zoomTo(this._v.k>1.01?1:this.num("double-tap",2))})),this.listen(this,"keydown",t=>{if("+"===t.key||"="===t.key)this.zoomTo(1.25*this._v.k);else if("-"===t.key)this.zoomTo(this._v.k/1.25);else{if("0"!==t.key)return;this.zoomTo(1)}t.preventDefault()}),this.paint()}unmount(){[this._k,this._x,this._y].forEach(t=>t?.stop())}},{id:"gesture",text:mi})}function yi(){gi(),bi()}const vi=/-?(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?/gi;function xi(t,e){return t.replace(vi,"#").replace(/[\s,]+/g," ").trim()===e.replace(vi,"#").replace(/[\s,]+/g," ").trim()}function wi(t,e,s){if(s<=0)return t;if(s>=1)return e;if(!xi(t,e))return s<.5?t:e;const i=e.match(vi)||[];let a=0;return t.replace(vi,t=>{const e=Number(t)+(Number(i[a++])-Number(t))*s;return String(Math.round(1e3*e)/1e3)})}const ki=t=>1-Math.pow(1-t,3);function _i(t,e,s={}){const i=t.getAttribute("d")||e,a=(s.duration??500)*u(),r=t.__usaMorph;if(r&&z(r),h()||a<=0||i===e)return t.setAttribute("d",e),Promise.resolve();const n=s.easing||ki,o=T();return new Promise(s=>{const r=()=>{const l=U((T()-o)/a,0,1);t.setAttribute("d",wi(i,e,n(l))),l<1?t.__usaMorph=$(r):(t.__usaMorph=0,s())};t.__usaMorph=$(r)})}function Ai(t,e={}){const s=Array.from(t.querySelectorAll("path, line, polyline, polygon, circle, ellipse, rect"));s.forEach(t=>{t.setAttribute("pathLength","1"),t.style.strokeDasharray="1 1"});const i=U(e.stagger??0,0,.9);return t=>{const e=s.length;s.forEach((s,a)=>{const r=U((t-(e>1?a/(e-1)*i:0))/(1-i||1),0,1);s.style.strokeDashoffset=String(1-r)})}}var Mi='usa-draw{display:inline-block}usa-draw svg :is(path,line,polyline,polygon,circle,ellipse,rect){transition:fill-opacity 0.6s ease}usa-draw[fill]:not([data-drawn]) svg :is(path,polygon,circle,ellipse,rect){fill-opacity:0}usa-morph{display:inline-block;line-height:0}usa-morph svg{width:100%;height:100%;fill:currentColor}usa-morph[role="button"]{cursor:pointer}usa-mask-reveal{display:block}usa-mask-reveal[data-state="visible"]{clip-path:none !important}usa-mask-reveal[data-state="hidden"]{opacity:0}usa-anim-icon{display:inline-flex;line-height:0;vertical-align:middle}usa-anim-icon svg{overflow:visible}@media (prefers-reduced-motion:reduce){usa-mask-reveal{clip-path:none !important;opacity:1 !important}usa-draw svg *{stroke-dashoffset:0 !important}}';function Ei(t="usa-draw"){return y(t,t=>class extends t{constructor(){super(...arguments),this._set=()=>{},this._p=0,this._id=0}get progress(){return this._p}set progress(t){this._p=U(t,0,1),this._set(this._p),this.toggleAttribute("data-drawn",this._p>=1)}play(){if(z(this._id),this.reduced)return this.progress=1,void this.emit("complete");const t=this.num("duration",1600)*u(),e=T();this.progress=0;const s=()=>{this.progress=(T()-e)/t,this._p<1?this._id=$(s):this.emit("complete")};this._id=$(s)}mount(){this._set=Ai(this,{stagger:this.num("stagger",.2)});const t=this.str("trigger","view");if(this.reduced)this.progress=1;else{if(this.progress=0,"scrub"===t){const t=()=>{const t=this.getBoundingClientRect(),e=window.innerHeight||1;this.progress=(e-t.top)/(.6*e+.4*t.height||1)};this.listen(window,"scroll",t,{passive:!0}),t()}else if("hover"===t)this.listen(this,"pointerenter",()=>this.play());else if("click"===t)this.listen(this,"click",()=>this.play());else{let t=!1;this.inView(e=>{!e||t&&!this.flag("repeat")?!e&&this.flag("repeat")&&(this.progress=0):(t=!0,this.play())},{threshold:.3})}this.onCleanup(()=>z(this._id))}}},{id:"svg",text:Mi})}function Si(t="usa-morph"){return y(t,t=>class extends t{constructor(){super(...arguments),this._i=0,this._path=null}static get observedAttributes(){return["paths","trigger"]}get index(){return this._i}list(){return this.str("paths").split("|").map(t=>t.trim()).filter(Boolean)}next(){const t=this.list();return!this._path||t.length<2?Promise.resolve():(this._i=(this._i+1)%t.length,this.emit("change",{index:this._i}),_i(this._path,t[this._i],{duration:this.num("duration",600)}))}mount(){let t=this.querySelector("path");t||(this.innerHTML='<svg viewBox="0 0 100 100" aria-hidden="true"><path></path></svg>',t=this.querySelector("path")),this._path=t;const e=this.list();e[0]&&this._path.setAttribute("d",e[this._i%e.length]);const s=this.str("trigger","click");if("hover"===s)this.listen(this,"pointerenter",()=>{this.next()}),this.listen(this,"pointerleave",()=>{this.next()});else if("auto"===s||"view"===s){let t;this.inView(e=>{clearInterval(t),e&&!this.reduced&&("view"!==s?t=setInterval(()=>{this.next()},this.num("interval",2e3)):this.next())}),this.onCleanup(()=>clearInterval(t))}else this.hasAttribute("tabindex")||(this.tabIndex=0),this.hasAttribute("role")||this.setAttribute("role","button"),this.listen(this,"click",()=>{this.next()}),this.listen(this,"keydown",t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.next())})}},{id:"svg",text:Mi})}const Ci={circle:["circle(0% at 50% 50%)","circle(75% at 50% 50%)"],diamond:["polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%)","polygon(50% -50%, 150% 50%, 50% 150%, -50% 50%)"],wipe:["inset(0 100% 0 0)","inset(0 0% 0 0)"],"wipe-up":["inset(100% 0 0 0)","inset(0% 0 0 0)"],iris:["inset(50% 50% 50% 50% round 50%)","inset(0% 0% 0% 0% round 0%)"],star:["polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%)","polygon(50% -60%, 80% 20%, 160% 30%, 95% 85%, 115% 170%, 50% 125%, -15% 170%, 5% 85%, -60% 30%, 20% 20%)"]};function $i(t="usa-mask-reveal"){return y(t,t=>class extends t{frames(){const t=Ci[this.str("shape","circle")]||Ci.circle,e=this.str("at");return e&&t[0].startsWith("circle")?[t[0].replace("50% 50%",e),t[1].replace("50% 50%",e)]:t}reveal(){const[t,e]=this.frames();this.setAttribute("data-state","revealing");const s=this.motion(this,[{clipPath:t},{clipPath:e}],{duration:this.num("duration",900),delay:this.num("delay",0),easing:X,fill:"both"});this.style.opacity="";const i=()=>{this.setAttribute("data-state","visible"),this.emit("complete")};return s?s.finished.then(i,()=>{}):Promise.resolve(i())}mount(){if(this.reduced)return void this.setAttribute("data-state","visible");const t=()=>{this.getAnimations?.().forEach(t=>t.cancel()),this.style.opacity="0",this.setAttribute("data-state","hidden")};t(),this.onCleanup(()=>(this.style.opacity="",this.style.clipPath=""));const e=this.str("trigger","view");if("hover"===e)this.listen(this,"pointerenter",()=>{this.reveal()});else if("click"===e)this.listen(this,"click",()=>{this.reveal()});else{let e=!1;this.inView(s=>{!s||e&&!this.flag("repeat")?!s&&this.flag("repeat")&&t():(e=!0,this.reveal())},{threshold:.25})}}},{id:"svg",text:Mi})}const Ti={bell:{d:"M6 16V11a6 6 0 0 1 12 0v5l2 2H4l2-2M10 20a2 2 0 0 0 4 0",duration:800,origin:"50% 10%",frames:[{rotate:"0deg"},{rotate:"18deg"},{rotate:"-14deg"},{rotate:"9deg"},{rotate:"-5deg"},{rotate:"0deg"}]},heart:{d:"M12 20s-7-4.4-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 10c0 5.6-7 10-7 10z",duration:600,frames:[{scale:1},{scale:1.3},{scale:.92},{scale:1.12},{scale:1}]},check:{d:"M4 12.5l5 5L20 6.5",duration:600,frames:[{strokeDashoffset:1},{strokeDashoffset:0}]},arrow:{d:"M4 12h15M13 6l6 6-6 6",duration:600,frames:[{translate:"0 0"},{translate:"5px 0"},{translate:"0 0"}]},star:{d:"M12 3l2.7 5.6 6.1.9-4.4 4.3 1 6.1L12 17l-5.4 2.9 1-6.1-4.4-4.3 6.1-.9z",duration:700,frames:[{rotate:"0deg",scale:1},{rotate:"72deg",scale:1.2},{rotate:"144deg",scale:1}]},gear:{d:"M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8zM12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9l2.1 2.1M17 17l2.1 2.1M4.9 19.1L7 17M17 7l2.1-2.1",duration:900,frames:[{rotate:"0deg"},{rotate:"180deg"}]},search:{d:"M10.5 4a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13zM15.5 15.5L20 20",duration:700,frames:[{rotate:"0deg"},{rotate:"-15deg"},{rotate:"10deg"},{rotate:"0deg"}]},download:{d:"M12 4v11M7 10l5 5 5-5M5 20h14",duration:700,frames:[{translate:"0 0"},{translate:"0 3px"},{translate:"0 0"}]}};function zi(t="usa-anim-icon"){return y(t,t=>class extends t{static get observedAttributes(){return["name","size","label"]}icon(){return Ti[this.str("name","heart")]||Ti.heart}play(){if(this.reduced)return;const t=this.querySelector("svg"),e=this.icon(),s=void 0!==e.frames[0].strokeDashoffset?this.querySelector("path"):t;s&&this.motion(s,e.frames,{duration:e.duration,easing:"ease-in-out",iterations:"loop"===this.str("trigger")?1/0:1})}mount(){const t=this.icon(),e=this.num("size",24),s=this.str("label");this.innerHTML=`<svg viewBox="0 0 24 24" width="${e}" height="${e}" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="transform-origin:${t.origin||"50% 50%"}"${s?` role="img" aria-label="${s.replace(/"/g,"&quot;")}"`:' aria-hidden="true"'}><path d="${t.d}"${void 0!==t.frames[0].strokeDashoffset?' pathLength="1" stroke-dasharray="1"':""}></path></svg>`;const i=this.str("trigger","hover");"click"===i?this.listen(this,"click",()=>this.play()):"view"===i||"loop"===i?this.inView(t=>t&&this.play(),{threshold:.5}):(this.listen(this,"pointerenter",()=>this.play()),this.listen(this,"focusin",()=>this.play()))}},{id:"svg",text:Mi})}function Pi(){Ei(),Si(),$i(),zi()}const Fi={gradient:"void main(){vec2 u=v_uv;float t=u_time*.15;vec3 a=vec3(.39,.4,.95),b=vec3(.93,.29,.6),c=vec3(.13,.83,.93);float k=.5+.5*sin(u.x*3.+t*2.)*cos(u.y*2.-t);vec3 col=mix(mix(a,b,u.x+.2*sin(t)),c,k*.6);gl_FragColor=vec4(col,1.);}",plasma:"void main(){vec2 u=v_uv*4.;float t=u_time*.6;float v=sin(u.x+t)+sin(u.y+t*.7)+sin(u.x+u.y+t*.5)+sin(length(u-2.+vec2(sin(t),cos(t)))*2.);vec3 col=.5+.5*cos(v+vec3(0.,2.,4.));gl_FragColor=vec4(col,1.);}",waves:"void main(){vec2 u=v_uv;float t=u_time*.4;float w=0.;for(int i=0;i<4;i++){float f=float(i)+1.;w+=sin(u.x*6.*f+t*f)*.08/f;}float l=smoothstep(.0,.02,abs(u.y-.5-w));vec3 col=mix(vec3(.2,.5,1.),vec3(.04,.06,.15),l)+vec3(.1,.0,.2)*u.y;gl_FragColor=vec4(col,1.);}",aurora:"void main(){vec2 u=v_uv;float t=u_time*.2;float b=0.;for(int i=0;i<3;i++){float f=float(i);b+=.4/abs((u.y-.6+.15*sin(u.x*3.+t+f*1.7))*(8.+f*4.));}vec3 col=vec3(.02,.03,.08)+b*mix(vec3(.1,.9,.6),vec3(.6,.3,1.),u.x)*.35;gl_FragColor=vec4(col,1.);}",distort:"void main(){vec2 u=v_uv;vec2 d=u-u_mouse;float r=length(d);float k=u_hover*.08*exp(-r*r*18.);u-=normalize(d+1e-4)*k;float s=u_hover*.006;vec3 col=vec3(texture2D(u_tex,u+vec2(s,0.)).r,texture2D(u_tex,u).g,texture2D(u_tex,u-vec2(s,0.)).b);gl_FragColor=vec4(col,1.);}",snow:"float h(vec2 p){return fract(sin(dot(p,vec2(127.1,311.7)))*43758.5453);}void main(){vec2 u=v_uv;u.x*=u_resolution.x/max(u_resolution.y,1.);vec3 col=mix(vec3(.05,.08,.16),vec3(.12,.16,.3),v_uv.y);for(int l=0;l<3;l++){float s=8.+float(l)*7.;vec2 q=u*s;q.y+=u_time*(.6+float(l)*.35);q.x+=sin(q.y*.7+float(l))*.3;vec2 id=floor(q);vec2 f=fract(q)-.5;float r=h(id);if(r>.6){vec2 o=vec2(h(id+3.)-.5,h(id+7.)-.5)*.6;float d=length(f-o);col+=smoothstep(.09-float(l)*.02,0.,d)*(.5+.5*r);}}gl_FragColor=vec4(col,1.);}",fireflies:"float h(vec2 p){return fract(sin(dot(p,vec2(127.1,311.7)))*43758.5453);}void main(){vec2 u=v_uv;u.x*=u_resolution.x/max(u_resolution.y,1.);vec3 col=vec3(.02,.04,.03);for(int l=0;l<2;l++){vec2 q=u*(5.+float(l)*4.);vec2 id=floor(q);vec2 f=fract(q)-.5;float r=h(id+float(l)*13.);vec2 o=.35*vec2(sin(u_time*(.4+r)+r*6.28),cos(u_time*(.3+r)+r*12.));float d=length(f-o);float tw=.5+.5*sin(u_time*3.*r+r*20.);col+=vec3(1.,.85,.3)*smoothstep(.12,0.,d)*tw*step(.45,r);}gl_FragColor=vec4(col,1.);}",stars:"float h(vec2 p){return fract(sin(dot(p,vec2(127.1,311.7)))*43758.5453);}void main(){vec2 c=v_uv-.5;c.x*=u_resolution.x/max(u_resolution.y,1.);vec3 col=vec3(.01,.01,.04);for(int l=0;l<4;l++){float z=fract(float(l)*.25+u_time*.05);float sc=mix(20.,.5,z);vec2 q=c*sc+float(l)*7.;vec2 id=floor(q);vec2 f=fract(q)-.5;float r=h(id);float d=length(f-(vec2(h(id+1.),h(id+2.))-.5)*.7);col+=vec3(.8,.9,1.)*smoothstep(.06,0.,d)*step(.8,r)*smoothstep(0.,.5,z)*smoothstep(1.,.8,z)*2.;}gl_FragColor=vec4(col,1.);}",bokeh:"float h(vec2 p){return fract(sin(dot(p,vec2(127.1,311.7)))*43758.5453);}void main(){vec2 u=v_uv;u.x*=u_resolution.x/max(u_resolution.y,1.);vec3 col=mix(vec3(.08,.03,.12),vec3(.02,.05,.12),v_uv.y);for(int l=0;l<3;l++){vec2 q=u*(2.5+float(l)*1.5);q.y-=u_time*.05*(1.+float(l));vec2 id=floor(q);vec2 f=fract(q)-.5;float r=h(id+float(l)*5.);float d=length(f-(vec2(h(id+4.),h(id+9.))-.5)*.5);vec3 tint=.5+.5*cos(r*6.28+vec3(0.,2.,4.));col+=tint*smoothstep(.3,.26,d)*.18*step(.35,r);}gl_FragColor=vec4(col,1.);}",rain:"float h(float n){return fract(sin(n)*43758.5453);}void main(){vec2 u=v_uv;vec3 col=mix(vec3(.04,.06,.1),vec3(.1,.13,.2),u.y);float n=floor(u.x*120.);float sp=.8+h(n)*1.2;float y=fract(u.y+u_time*sp+h(n+1.));float drop=smoothstep(.0,.08,y)*smoothstep(.16,.08,y)*step(.7,h(n+2.));col+=vec3(.5,.6,.8)*drop*.6;gl_FragColor=vec4(col,1.);}",liquid:"void main(){vec2 u=v_uv;vec2 o=vec2(0.);for(int i=0;i<4;i++){vec4 r=u_ripples[i];if(r.w>0.){float d=distance(u,r.xy);float w=sin(d*60.-r.z*12.)*exp(-d*6.)*exp(-r.z*1.6)*r.w*.02;o+=normalize(u-r.xy+1e-4)*w;}}o+=vec2(sin(u.y*10.+u_time),cos(u.x*10.+u_time))*.002*u_hover;gl_FragColor=texture2D(u_tex,u+o);}"};function Li(t){const e=Fi[t]||t;return/precision\s+\w+\s+float/.test(e)?e:"precision mediump float;varying vec2 v_uv;uniform float u_time;uniform vec2 u_resolution;uniform vec2 u_mouse;uniform float u_hover;uniform sampler2D u_tex;uniform vec4 u_ripples[4];\n"+e}let qi;function Ri(t,e){let s=null;try{s=t.getContext("webgl",{premultipliedAlpha:!1,antialias:!1})}catch{s=null}if(!s)return null;const i=s,a=(t,e)=>{const s=i.createShader(t);return i.shaderSource(s,e),i.compileShader(s),i.getShaderParameter(s,i.COMPILE_STATUS)?s:null},r=a(i.VERTEX_SHADER,"attribute vec2 p;varying vec2 v_uv;void main(){v_uv=p*.5+.5;gl_Position=vec4(p,0.,1.);}"),n=a(i.FRAGMENT_SHADER,Li(e));if(!r||!n)return null;const o=i.createProgram();if(i.attachShader(o,r),i.attachShader(o,n),i.linkProgram(o),!i.getProgramParameter(o,i.LINK_STATUS))return null;i.useProgram(o);const l=i.createBuffer();i.bindBuffer(i.ARRAY_BUFFER,l),i.bufferData(i.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,-1,1,1,-1,1,1]),i.STATIC_DRAW);const c=i.getAttribLocation(o,"p");i.enableVertexAttribArray(c),i.vertexAttribPointer(c,2,i.FLOAT,!1,0,0);const u=t=>i.getUniformLocation(o,t),d=u("u_time"),h=u("u_resolution"),p=u("u_mouse"),f=u("u_hover"),m=u("u_ripples");let g=null;const b={},y={resize(e=1){const s=Math.min(2,"number"==typeof devicePixelRatio&&devicePixelRatio||1)*Math.min(1,Math.max(.25,e)),a=Math.max(1,Math.round((t.clientWidth||300)*s)),r=Math.max(1,Math.round((t.clientHeight||150)*s));t.width===a&&t.height===r||(t.width=a,t.height=r),i.viewport(0,0,a,r)},texture(t){g=g||i.createTexture(),i.bindTexture(i.TEXTURE_2D,g),i.pixelStorei(i.UNPACK_FLIP_Y_WEBGL,!0),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.LINEAR),i.texImage2D(i.TEXTURE_2D,0,i.RGBA,i.RGBA,i.UNSIGNED_BYTE,t)},render(e){if(i.uniform1f(d,e.time??0),i.uniform2f(h,t.width,t.height),i.uniform2f(p,...e.mouse??[.5,.5]),i.uniform1f(f,e.hover??0),m&&i.uniform4fv(m,new Float32Array((e.ripples??[]).concat(Array(16).fill(0)).slice(0,16))),e.extra)for(const[t,s]of Object.entries(e.extra))i.uniform1f(b[t]??(b[t]=u(t)),s);i.drawArrays(i.TRIANGLES,0,6)},dispose(){i.deleteProgram(o),i.deleteBuffer(l),g&&i.deleteTexture(g),i.getExtension("WEBGL_lose_context")?.loseContext()}};return y.resize(),y}const Ii={vignette:"c*=mix(1.,smoothstep(.85,.25,length(uv-.5)),u_intensity);",grain:"c+=(fract(sin(dot(uv*u_resolution+u_time,vec2(12.9898,78.233)))*43758.5453)-.5)*.18*u_intensity;",chromatic:"float s=.008*u_intensity;c=vec3(texture2D(u_tex,uv+vec2(s,0.)).r,c.g,texture2D(u_tex,uv-vec2(s,0.)).b);",scanlines:"c*=1.-.25*u_intensity*step(.5,fract(uv.y*u_resolution.y*.5));",crt:"vec2 d=uv-.5;float r=dot(d,d);c*=1.-.6*u_intensity*r;c*=.92+.08*sin(uv.y*u_resolution.y*3.14159);c.r*=1.+.05*u_intensity;",bloom:"vec3 b=vec3(0.);for(int i=0;i<8;i++){float a=float(i)*.785;b+=max(texture2D(u_tex,uv+vec2(cos(a),sin(a))*.012).rgb-.6,0.);}c+=b*.35*u_intensity;",pixelate:"float px=mix(1.,48.,u_intensity);vec2 g=floor(uv*u_resolution/px)*px/u_resolution;c=texture2D(u_tex,g+.5*px/u_resolution).rgb;",duotone:"float l=dot(c,vec3(.299,.587,.114));c=mix(c,mix(vec3(.12,.05,.35),vec3(1.,.55,.4),l),u_intensity);",glitch:"float k=step(.97,fract(sin(floor(uv.y*24.)+floor(u_time*6.))*4375.5));c=mix(c,texture2D(u_tex,uv+vec2(k*.04*u_intensity,0.)).rgb,k);"};function Ni(t){return`uniform float u_intensity;void main(){vec2 uv=v_uv;vec3 c=texture2D(u_tex,uv).rgb;${t.filter(t=>Ii[t]).map(t=>`{${Ii[t]}}`).join("")}gl_FragColor=vec4(clamp(c,0.,1.),1.);}`}const Yi={gradient:"linear-gradient(120deg,#6366f1,#ec4899 50%,#22d3ee)",plasma:"conic-gradient(from 90deg,#f43f5e,#a855f7,#06b6d4,#f43f5e)",waves:"linear-gradient(#0a0f26,#1e3a8a)",aurora:"radial-gradient(120% 60% at 30% 40%,#10b98155,transparent),radial-gradient(100% 50% at 70% 50%,#8b5cf655,transparent),#05070f",snow:"radial-gradient(2px 2px at 20% 30%,#fff,transparent),radial-gradient(2px 2px at 70% 60%,#fff,transparent),radial-gradient(1.5px 1.5px at 40% 80%,#fff,transparent),linear-gradient(#0d1428,#1f2a4d)",fireflies:"radial-gradient(3px 3px at 25% 40%,#fde68a,transparent),radial-gradient(3px 3px at 65% 70%,#fde68a,transparent),#05090a",stars:"radial-gradient(1px 1px at 10% 20%,#fff,transparent),radial-gradient(1px 1px at 80% 30%,#fff,transparent),radial-gradient(1.5px 1.5px at 50% 70%,#cfe0ff,transparent),#02020a",bokeh:"radial-gradient(40px 40px at 30% 40%,#f472b633,transparent),radial-gradient(60px 60px at 70% 60%,#60a5fa33,transparent),#140820",rain:"repeating-linear-gradient(100deg,#ffffff10 0 1px,transparent 1px 14px),linear-gradient(#0a0f1a,#1a2133)","post:duotone":"grayscale(1) sepia(.6) hue-rotate(220deg) saturate(2)","post:vignette":"brightness(.95) contrast(1.05)","post:crt":"contrast(1.15) saturate(1.2)","post:bloom":"brightness(1.08) saturate(1.15)"};function Bi(t,e=!1){return e?t.split(/\s+/).map(t=>Yi[`post:${t}`]).filter(Boolean).join(" "):Yi[t]||Yi.gradient}function Oi(t={}){const{minFps:e=40,saverFps:s=30}=t,i=[1,.5,.35];let a=0,r=0,n=-1,o=-1/0,l=0,c=0,u=60;const d={saver:!1,get scale(){return Math.min(i[a],d.saver?.6:1)},get fps(){return u},tick(t){if(n<0&&(n=t),d.saver&&t-o<1e3/s-1)return!1;if(o=t,r++,t-n>=1e3){u=Math.round(1e3*r/(t-n)),r=0,n=t;const s=d.scale;u<e&&!d.saver?(c=0,++l>=2&&a<i.length-1&&(a++,l=0)):(l=0,++c>=5&&a>0&&(a--,c=0)),d.scale!==s&&d.onScale?.(d.scale)}return!0}};return d}function Xi(t){let e=!1;const s="undefined"!=typeof navigator?navigator:{},i=!!s.connection?.saveData;if(i&&t(!0),"function"!=typeof s.getBattery)return()=>{};let a=null;const r=()=>!e&&t(i||!!a&&!a.charging&&a.level<=.2);return s.getBattery().then(t=>{a=t,r(),t.addEventListener?.("levelchange",r),t.addEventListener?.("chargingchange",r)},()=>{}),()=>{e=!0,a?.removeEventListener?.("levelchange",r),a?.removeEventListener?.("chargingchange",r)}}var Di="usa-shader,usa-distort,usa-liquid,usa-post-fx{display:block;position:relative;isolation:isolate;overflow:hidden}usa-shader{background:linear-gradient(120deg,#6366f1,#ec4899 50%,#22d3ee)}usa-shader>canvas.usa-gl{position:absolute;inset:0;width:100%;height:100%;z-index:-1;display:block}usa-distort>canvas.usa-gl,usa-liquid>canvas.usa-gl{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none}usa-distort>img,usa-liquid>img{display:block;width:100%;height:auto}usa-distort[data-active]>img,usa-liquid[data-active]>img{visibility:hidden}usa-distort[data-fallback]>img{transition:transform 0.6s cubic-bezier(0.22,1,0.36,1),filter 0.6s}usa-distort[data-fallback]:hover>img{transform:scale(1.04);filter:saturate(1.2)}@media (prefers-reduced-motion:reduce){usa-distort[data-fallback]:hover>img{transform:none}}usa-shader[data-fallback]{background:var(--usa-gl-fallback,linear-gradient(120deg,#6366f1,#ec4899 50%,#22d3ee))}usa-post-fx>canvas.usa-gl{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none}usa-post-fx>img{display:block;width:100%;height:auto}usa-post-fx[data-active]>img{visibility:hidden}usa-post-fx[data-fallback]>img{filter:var(--usa-gl-filter,none)}";function ji(t){return e=>class extends e{constructor(){super(...arguments),this._q=null,this._c=null,this._id=0,this._mouse=[.5,.5],this._hover=0,this._hoverTo=0,this._ripples=[],this._scale=1}static get observedAttributes(){return"shader"===t?["preset","speed","quality"]:"post"===t?["effects","intensity","quality"]:["src"]}get active(){return!!this._q}fallback(e){this.setAttribute("data-fallback",e),"off"!==e&&("shader"===t&&this.style.setProperty("--usa-gl-fallback",Bi(this.str("preset","gradient"))),"post"===t&&this.style.setProperty("--usa-gl-filter",Bi(this.str("effects","vignette grain"),!0)||"none")),this._c?.remove(),this._c=null,this._q?.dispose(),this._q=null}frame(){const e=this._q;if(!e)return;this._hover+=.12*(this._hoverTo-this._hover);const s=T();this._ripples=this._ripples.filter(t=>s-t.t<2500),e.render({time:s/1e3*this.num("speed",1),mouse:this._mouse,hover:this._hover,ripples:this._ripples.flatMap(t=>[t.x,t.y,(s-t.t)/1e3,this.num("strength",1)]),extra:"post"===t?{u_intensity:U(this.num("intensity",.6),0,1)}:void 0})}mount(){this.removeAttribute("data-fallback");const e=this.querySelector('script[type="x-shader/x-fragment"]'),s="shader"===t?e?.textContent||this.str("preset","gradient"):"post"===t?Ni(this.str("effects","vignette grain").split(/[\s,]+/)):t,i="shader"===t?null:this.querySelector("img");if("shader"!==t&&!i)return this.fallback("no-image");const a=this._c=document.createElement("canvas");a.setAttribute("aria-hidden","true"),a.className="usa-gl",this.prepend(a);const r=this._q=Ri(a,s);if(!r)return this.fallback("webgl");this.onCleanup(()=>this.fallback("off"));const n=()=>{if(!i)return!0;try{return r.texture(i),!0}catch{return this.fallback("image"),!1}},o=()=>{r.resize(this._scale),this.frame()};if(!i||i.complete&&i.naturalWidth){if(!n())return}else i.crossOrigin||!/^https?:/.test(i.src)||i.src.startsWith(location.origin)||(i.crossOrigin="anonymous"),this.listen(i,"load",()=>n()&&o()),this.listen(i,"error",()=>this.fallback("image"));if(this.setAttribute("data-active",""),this.onCleanup(()=>this.removeAttribute("data-active")),o(),"distort"===t||"liquid"===t){const e=t=>{const e=this.getBoundingClientRect();this._mouse=[U((t.clientX-e.left)/(e.width||1),0,1),U(1-(t.clientY-e.top)/(e.height||1),0,1)]};this.listen(this,"pointermove",e),this.listen(this,"pointerenter",t=>(e(t),this._hoverTo=1)),this.listen(this,"pointerleave",()=>this._hoverTo=0),"liquid"===t&&this.listen(this,"pointerdown",t=>{e(t),this._ripples=[...this._ripples.slice(-3),{x:this._mouse[0],y:this._mouse[1],t:T()}]})}if("undefined"!=typeof ResizeObserver){const t=new ResizeObserver(()=>{r.resize(this._scale),this._id||this.frame()});t.observe(this),this.onCleanup(()=>t.disconnect())}if(this.reduced)return;const l=Oi(),c="high"!==this.str("quality","auto");l.onScale=t=>{this._scale=t,this.setAttribute("data-quality",String(t)),r.resize(t)},c&&this.onCleanup(Xi(t=>(l.saver=t,l.onScale?.(l.scale))));let u=!1;const d=()=>{c&&!l.tick(T())||this.frame(),this._id=$(d)},h=()=>{z(this._id),this._id=0,u&&!document.hidden&&(this._id=$(d))};this.inView(t=>(u=t,h())),this.listen(document,"visibilitychange",h),this.listen(window,"resize",()=>r.resize(this._scale),{passive:!0}),this.onCleanup(()=>z(this._id))}}}function Hi(t="usa-shader"){return y(t,ji("shader"),{id:"webgl",text:Di})}function Vi(t="usa-distort"){return y(t,ji("distort"),{id:"webgl",text:Di})}function Ui(t="usa-liquid"){return y(t,ji("liquid"),{id:"webgl",text:Di})}function Wi(t="usa-post-fx"){return y(t,ji("post"),{id:"webgl",text:Di})}function Gi(){Hi(),Vi(),Ui(),Wi()}var Ki='usa-cube{--usa-cube-size:200px;display:block;width:var(--usa-cube-size);height:var(--usa-cube-size);perspective:var(--usa-cube-perspective,900px);touch-action:pan-y;user-select:none;-webkit-user-select:none;position:relative}usa-cube>[data-face]{position:absolute;inset:0;backface-visibility:hidden;transform:translateZ(calc(var(--usa-cube-size) / -2)) rotateX(var(--usa-cube-rx,0deg)) rotateY(var(--usa-cube-ry,0deg)) var(--usa-face) translateZ(calc(var(--usa-cube-size) / 2));transform-origin:50% 50%}usa-cube>[data-face="front"]{--usa-face:rotateY(0deg)}usa-cube>[data-face="right"]{--usa-face:rotateY(90deg)}usa-cube>[data-face="back"]{--usa-face:rotateY(180deg)}usa-cube>[data-face="left"]{--usa-face:rotateY(-90deg)}usa-cube>[data-face="top"]{--usa-face:rotateX(90deg)}usa-cube>[data-face="bottom"]{--usa-face:rotateX(-90deg)}usa-cube:focus-visible{outline:2px solid currentColor;outline-offset:6px}usa-depth{display:block;position:relative;perspective:1000px}usa-depth>*{transform:var(--usa-depth-rot,none);transform-style:preserve-3d}usa-depth [data-depth]{will-change:transform;transition:transform 0.12s linear}@media (prefers-reduced-motion:reduce){usa-depth [data-depth]{transform:none !important}}';const Ji=["front","right","back","left","top","bottom"],Zi={front:[0,0],right:[0,-90],back:[0,-180],left:[0,90],top:[-90,0],bottom:[90,0]};function Qi(t="usa-cube"){return y(t,t=>class extends t{constructor(){super(...arguments),this._i=0,this._base=[0,0]}static get observedAttributes(){return["size","autoplay"]}get index(){return this._i}faces(){return Array.from(this.children).filter(t=>t instanceof HTMLElement&&!t.hasAttribute("slot")).slice(0,6)}paint(){this.style.setProperty("--usa-cube-rx",`${this._rx.value}deg`),this.style.setProperty("--usa-cube-ry",`${this._ry.value}deg`)}show(t){const e=this.faces().length||1,s="number"==typeof t?(t%e+e)%e:Math.max(0,Ji.indexOf(t));this._i=s;const[i,a]=Zi[Ji[s]],r=this._ry.target,n=a+360*Math.round((r-a)/360);this._base=[i,n],this.reduced?(this._rx.jump(i),this._ry.jump(n)):(this._rx.set(i),this._ry.set(n)),this.faces().forEach((t,e)=>t.setAttribute("aria-hidden",String(e!==s))),this.emit("change",{index:s,face:Ji[s]})}next(){this.show(this._i+1)}prev(){this.show(this._i-1)}mount(){this.style.setProperty("--usa-cube-size",`${this.num("size",200)}px`),this.style.setProperty("--usa-cube-perspective",`${this.num("perspective",900)}px`),this.faces().forEach((t,e)=>t.setAttribute("data-face",Ji[e])),this.hasAttribute("tabindex")||(this.tabIndex=0),this.hasAttribute("role")||this.setAttribute("role","region"),this.hasAttribute("aria-roledescription")||this.setAttribute("aria-roledescription","cube"),this._rx=Le({spring:"gentle",onUpdate:()=>this.paint()}),this._ry=Le({spring:"gentle",onUpdate:()=>this.paint()}),this.show(this._i),this.paint(),this.onCleanup(fi(this,{onPan:({dx:t,dy:e,last:s})=>{if(!this.reduced)return s?Math.abs(t)>40&&Math.abs(t)>=Math.abs(e)?t<0?this.next():this.prev():Math.abs(e)>40&&this.faces().length>4?this.show(e<0?"bottom":"top"):void this.show(this._i):(this._ry.jump(this._base[1]+.5*t),void this._rx.jump(this._base[0]-.5*e))}})),this.listen(this,"keydown",t=>{const e={ArrowRight:()=>this.next(),ArrowLeft:()=>this.prev(),ArrowUp:()=>this.show("bottom"),ArrowDown:()=>this.show("top"),Home:()=>this.show(0)};!e[t.key]||("ArrowUp"===t.key||"ArrowDown"===t.key)&&this.faces().length<6||(t.preventDefault(),e[t.key]())});const t=this.num("autoplay",0);if(t>0&&!this.reduced){let e=!1;const s=setInterval(()=>!e&&this.show((this._i+1)%Math.min(4,this.faces().length||1)),t);this.listen(this,"pointerenter",()=>e=!0),this.listen(this,"pointerleave",()=>e=!1),this.listen(this,"focusin",()=>e=!0),this.listen(this,"focusout",()=>e=!1),this.onCleanup(()=>clearInterval(s))}}unmount(){this._rx?.stop(),this._ry?.stop()}},{id:"depth",text:Ki})}function ta(t,e,s=30,i=45){return{x:U((e??0)/s,-1,1),y:U(((t??i)-i)/s,-1,1)}}const ea=()=>"undefined"!=typeof window&&"DeviceOrientationEvent"in window;async function sa(){if(!ea())return!1;const t=window.DeviceOrientationEvent;if("function"!=typeof t.requestPermission)return!0;try{return"granted"===await t.requestPermission()}catch{return!1}}function ia(t,e={}){if(!ea())return()=>{};let s={x:0,y:0};const i=1-U(e.smooth??.2,0,.95),a=a=>{const r=ta(a.beta,a.gamma,e.range??30);s={x:s.x+(r.x-s.x)*i,y:s.y+(r.y-s.y)*i},t(s)};return window.addEventListener("deviceorientation",a),()=>window.removeEventListener("deviceorientation",a)}function aa(t="usa-depth"){return y(t,t=>class extends t{constructor(){super(...arguments),this._t={x:0,y:0},this._id=0}static get observedAttributes(){return["source","strength","rotate"]}get tilt(){return{...this._t}}requestPermission(){return sa().then(t=>(t&&this.changed("source"),t))}apply(){this._id=0;const t=this.num("strength",40),e=this.num("rotate",0),{x:s,y:i}=this._t;this.style.setProperty("--usa-depth-x",s.toFixed(4)),this.style.setProperty("--usa-depth-y",i.toFixed(4)),e&&this.style.setProperty("--usa-depth-rot",`rotateX(${(-i*e).toFixed(2)}deg) rotateY(${(s*e).toFixed(2)}deg)`),this.querySelectorAll("[data-depth]").forEach(e=>{const a=U(Number(e.dataset.depth)||0,-1,1);e.style.transform=`translate3d(${(s*a*t).toFixed(2)}px, ${(i*a*t).toFixed(2)}px, 0) scale(${(1+.04*a).toFixed(4)})`})}set(t,e){this._t={x:U(t,-1,1),y:U(e,-1,1)},this._id||(this._id=$(()=>this.apply()))}mount(){if(this.reduced)return;const t=this.str("source","pointer").split(/\s+/);if(t.includes("pointer")&&(this.listen(this,"pointermove",t=>{const e=this.getBoundingClientRect();this.set((t.clientX-e.left)/(e.width||1)*2-1,(t.clientY-e.top)/(e.height||1)*2-1)}),this.listen(this,"pointerleave",()=>this.set(0,0))),t.includes("orientation")&&ea()&&this.onCleanup(ia(t=>this.set(t.x,t.y))),t.includes("scroll")){const t=()=>{const t=this.getBoundingClientRect(),e=window.innerHeight||1;this.set(this._t.x,U((t.top+t.height/2)/e*2-1,-1,1))};this.listen(window,"scroll",t,{passive:!0}),t()}this.onCleanup(()=>{z(this._id),this._id=0})}unmount(){this._t={x:0,y:0},this.querySelectorAll("[data-depth]").forEach(t=>t.style.transform="")}},{id:"depth",text:Ki})}function ra(){Qi(),aa()}function na(t,e,s=!0){return[{transformOrigin:"0 0",transform:`translate(${t.left-e.left}px, ${t.top-e.top}px) scale(${s&&e.width?t.width/e.width:1}, ${s&&e.height?t.height/e.height:1})`},{transformOrigin:"0 0",transform:"none"}]}function oa(t,e={}){let s=!0;const i=new WeakMap,a=e=>{const s=e.getBoundingClientRect(),i=t.getBoundingClientRect();return{left:s.left-i.left,top:s.top-i.top,width:s.width,height:s.height}},r=()=>Array.from(t.children).forEach(t=>i.set(t,a(t))),n=()=>(e.duration??300)*u(),o=(t,s,i=(()=>({duration:n(),easing:e.easing??X}))())=>"function"==typeof t.animate?t.animate(s,i):null,l="function"==typeof MutationObserver?new MutationObserver(l=>{if(!s||h()||n()<=0)return r();const c=new Set;for(const e of l)e.addedNodes.forEach(e=>e instanceof Element&&e.parentElement===t&&c.add(e)),e.removedNodes.forEach(e=>{if(!(e instanceof HTMLElement)||e.isConnected)return;const s=i.get(e);if(!s)return;e.style.position="absolute",e.style.left=`${s.left}px`,e.style.top=`${s.top}px`,e.style.width=`${s.width}px`,e.style.height=`${s.height}px`,e.style.margin="0",e.style.pointerEvents="none","static"===getComputedStyle(t).position&&(t.style.position="relative"),t.appendChild(e),e.__usaGhost=!0;const a=o(e,[{opacity:1,transform:"none"},{opacity:0,transform:"scale(0.96)"}]),r=()=>{e.remove();for(const t of["position","left","top","width","height","margin","pointerEvents"])e.style[t]=""};a?a.finished.then(r,r):r()});Array.from(t.children).forEach(t=>{if(t.__usaGhost)return;if(c.has(t))return void o(t,[{opacity:0,transform:"scale(0.96)"},{opacity:1,transform:"none"}]);const s=i.get(t);if(!s)return;const r=a(t);Math.abs(s.left-r.left)+Math.abs(s.top-r.top)+Math.abs(s.width-r.width)+Math.abs(s.height-r.height)<1||o(t,na(s,r,!1!==e.scale))}),r()}):null;l?.observe(t,{childList:!0});const c="function"==typeof ResizeObserver?new ResizeObserver(()=>r()):null;c?.observe(t),r();const d=()=>r();return t.addEventListener("pointerdown",d,!0),{enable:()=>(s=!0,r()),disable:()=>s=!1,stop:()=>{l?.disconnect(),c?.disconnect(),t.removeEventListener("pointerdown",d,!0)}}}function la(t,e,s,i){const a=Array(Math.max(1,e)).fill(0),r=t.map(t=>{const e=a.indexOf(Math.min(...a)),r={x:e*(s+i),y:a[e]};return a[e]+=t+i,r});return r.height=Math.max(0,Math.max(...a)-i),r}var ca="usa-auto-animate{display:block}usa-masonry{display:block;column-width:220px;column-gap:16px}usa-masonry>*{break-inside:avoid;margin-bottom:16px}usa-masonry[data-js]{position:relative;columns:auto}usa-masonry[data-js]>*{position:absolute;left:0;top:0;margin:0;box-sizing:border-box;transition:transform 0.45s cubic-bezier(0.22,1,0.36,1)}@media (prefers-reduced-motion:reduce){usa-masonry[data-js]>*{transition:none}}";function ua(t="usa-auto-animate"){return y(t,t=>class extends t{constructor(){super(...arguments),this._c=null}enable(){this._c?.enable()}disable(){this._c?.disable()}mount(){const t=this._c=oa(this,{duration:this.num("duration",300),scale:!this.flag("no-scale")});this.onCleanup(()=>t.stop())}},{id:"layout",text:ca})}function da(t="usa-masonry"){return y(t,t=>class extends t{static get observedAttributes(){return["columns","min","gap"]}changed(){this.layout()}layout(){const t=Array.from(this.children).filter(t=>!t.__usaGhost),e=this.clientWidth;if(!e)return;const s=this.num("gap",16),i=this.num("columns",0)||Math.max(1,Math.floor((e+s)/(this.num("min",220)+s))),a=(e-s*(i-1))/i;t.forEach(t=>t.style.width=`${a}px`);const r=la(t.map(t=>t.offsetHeight),i,a,s);t.forEach((t,e)=>t.style.transform=`translate(${r[e].x}px, ${r[e].y}px)`),this.style.height=`${r.height}px`,this.style.setProperty("--usa-masonry-cols",String(i))}mount(){this.setAttribute("data-js",""),this.onCleanup(()=>this.removeAttribute("data-js"));let t=0;const e=()=>{t||(t=requestAnimationFrame(()=>{t=0,this.layout()}))};if("function"==typeof ResizeObserver){const t=new ResizeObserver(e);t.observe(this),Array.from(this.children).forEach(e=>t.observe(e));const s=new MutationObserver(s=>{s.forEach(e=>e.addedNodes.forEach(e=>e instanceof Element&&t.observe(e))),e()});s.observe(this,{childList:!0}),this.onCleanup(()=>(t.disconnect(),s.disconnect()))}this.listen(this,"load",e,{capture:!0}),this.layout()}unmount(){this.style.height="",Array.from(this.children).forEach(t=>(t.style.transform="",t.style.width=""))}},{id:"layout",text:ca})}function ha(){ua(),da()}const pa=(t,e,s)=>{if("function"!=typeof t.animate)return null;const i=u();return t.animate(e,{...s,duration:(s.duration??400)*i,delay:(s.delay??0)*i})},fa=(t,e,s)=>(t.addEventListener(e,s),()=>t.removeEventListener(e,s)),ma=(t,e)=>{if("undefined"==typeof IntersectionObserver)return void e();const s=new IntersectionObserver(t=>t.some(t=>t.isIntersecting)&&(s.disconnect(),e()),{threshold:.15});return s.observe(t),()=>s.disconnect()};function ga(t,e=1200){const s=t.textContent||"",i=/(-?[\d,]*\.?\d+)/.exec(s);if(!i||h())return()=>{};const a=Number(i[1].replace(/,/g,"")),r=(i[1].split(".")[1]||"").length,n=t=>s.replace(i[1],t.toLocaleString("en-US",{minimumFractionDigits:r,maximumFractionDigits:r}));t.setAttribute("aria-label",s.trim()),t.textContent=n(0);let o=!1;const l=ma(t,()=>{const s=T(),i=e*u()||1,r=()=>{if(o)return;const e=U((T()-s)/i,0,1);t.textContent=n(a*(1-Math.pow(1-e,3))),e<1&&$(r)};$(r)});return()=>{o=!0,l(),t.textContent=s}}async function ba(t,e,s={}){if(h()||"undefined"==typeof document)return;const i=t.getBoundingClientRect(),a=e.getBoundingClientRect(),r=t.cloneNode(!0);r.setAttribute("aria-hidden","true"),Object.assign(r.style,{position:"fixed",left:`${i.left}px`,top:`${i.top}px`,width:`${i.width}px`,height:`${i.height}px`,margin:"0",zIndex:"2147483000",pointerEvents:"none"}),document.body.appendChild(r);const n=a.left+a.width/2-(i.left+i.width/2),o=a.top+a.height/2-(i.top+i.height/2),l=pa(r,[{transform:"translate(0, 0) scale(1)",opacity:1},{transform:`translate(${.5*n}px, ${.5*o-80}px) scale(0.6)`,opacity:.9,offset:.5},{transform:`translate(${n}px, ${o}px) scale(0.15)`,opacity:.4}],{duration:s.duration??700,easing:"cubic-bezier(0.5, 0, 0.5, 1)"});await(l?.finished.catch(()=>{})),r.remove(),pa(e,[{transform:"scale(1)"},{transform:"scale(1.3)"},{transform:"scale(1)"}],{duration:380,easing:D})}const ya={reveal:(t,e)=>{if(e.reduced)return;t.style.opacity="0";const s=ma(t,()=>{t.style.opacity="",pa(t,[{opacity:0,transform:"translateY(24px)"},{opacity:1,transform:"none"}],{duration:600,delay:70*Math.min(e.index,8),easing:X,fill:"backwards"})});return()=>(s(),t.style.opacity="")},lift:(t,e)=>{if(e.reduced)return;const s=fa(t,"pointerenter",()=>pa(t,[{transform:"none"},{transform:"translateY(-6px) scale(1.02)"}],{duration:220,easing:X,fill:"forwards"})),i=fa(t,"pointerleave",()=>pa(t,[{transform:"translateY(-6px) scale(1.02)"},{transform:"none"}],{duration:260,easing:X,fill:"forwards"}));return()=>(s(),i())},press:(t,e)=>e.reduced?void 0:fa(t,"pointerdown",()=>pa(t,[{transform:"scale(1)"},{transform:"scale(0.94)"},{transform:"scale(1)"}],{duration:260,easing:D})),"count-up":t=>ga(t),pulse:(t,e)=>{if(e.reduced)return;const s=pa(t,[{boxShadow:"0 0 0 0 rgba(124, 92, 255, 0.55)"},{boxShadow:"0 0 0 14px rgba(124, 92, 255, 0)"}],{duration:1600,iterations:1/0});return()=>s?.cancel()},float:(t,e)=>{if(e.reduced)return;const s=pa(t,[{transform:"translateY(0)"},{transform:"translateY(-8px)"},{transform:"translateY(0)"}],{duration:3e3,delay:300*e.index,iterations:1/0,easing:"ease-in-out"});return()=>s?.cancel()},shake:(t,e)=>e.reduced?void 0:fa(t,"click",()=>pa(t,[0,-8,8,-6,6,-3,0].map(t=>({transform:`translateX(${t}px)`})),{duration:420})),bump:(t,e)=>e.reduced?void 0:fa(t,"usa:bump",()=>pa(t,[{transform:"scale(1)"},{transform:"scale(1.25)"},{transform:"scale(1)"}],{duration:360,easing:D})),"fly-to-cart":(t,e)=>fa(t,"click",()=>{const s=e.root.querySelector('[data-role="cart"]')||document.querySelector('[data-role="cart"]'),i=t.closest('[data-role="product"]')?.querySelector('img, [data-role="thumb"]')||t;s&&ba(i,s).then(()=>s.dispatchEvent(new CustomEvent("usa:added",{bubbles:!0})))})},va={ecommerce:{product:["reveal","lift"],"add-to-cart":["press","fly-to-cart"],cart:["bump"],price:["count-up"],badge:["pulse"]},portfolio:{project:["reveal","lift"],heading:["reveal"],stat:["count-up"],contact:["press","pulse"]},dashboard:{card:["reveal"],stat:["count-up"],alert:["pulse"],action:["press"]},game:{button:["press"],score:["count-up","bump"],item:["float"],hit:["shake"],reward:["pulse"]},landing:{hero:["reveal"],feature:["reveal","lift"],cta:["press","pulse"],logo:["float"],stat:["count-up"]}};function xa(t,e=document){const s=va[t];if(!s||"undefined"==typeof document)return()=>{};const i=e.documentElement?e.body:e,a=h(),r=[];for(const[t,e]of Object.entries(s))i.querySelectorAll(`[data-role="${t}"]`).forEach((t,s)=>{for(const n of e){const e=ya[n]?.(t,{root:i,index:s,reduced:a});e&&r.push(e)}});return()=>r.splice(0).forEach(t=>t())}const wa=Object.keys(ya);function ka(t="usa-pack"){return y(t,t=>class extends t{static get observedAttributes(){return["name"]}get roles(){return Object.keys(va[this.str("name","landing")]||{})}mount(){var t;(t=this.style).display||(t.display="block"),this.onCleanup(xa(this.str("name","landing"),this))}})}function _a(){ka()}var Aa;const Ma=["enter","exit","attention","click","hover","card","loop","page","background","text","cursor","scroll"],Ea=["click","hover","enter","load","loop","manual"],Sa=Symbol.for("use-scroll-animate.effects"),Ca=(Aa=globalThis)[Sa]||(Aa[Sa]=new Map);function $a(t,e={}){if(!/^[a-z][a-z0-9-]*$/.test(t.name))throw new Error(`[motionary] invalid effect name "${t.name}"`);if(!Ma.includes(t.kind))throw new Error(`[motionary] unknown effect kind "${t.kind}"`);if(Ca.has(t.name)&&!e.override)throw new Error(`[motionary] effect "${t.name}" is already registered`);return Ca.set(t.name,t),()=>{Ca.get(t.name)===t&&Ca.delete(t.name)}}function Ta(t){for(const e of t)Ca.has(e.name)||$a(e)}const za=["loop","background","cursor"];function Pa(t){const e=[];return{reduced:h(),sensitivity:n(),event:t,animate:g,onCleanup:t=>e.push(t),cleanups:e}}async function Fa(t,e,s={},i){const a=Ca.get(e);if(!a)throw new Error(`[motionary] unknown effect "${e}" — registered: ${Array.from(Ca.keys()).join(", ")}`);const r=Pa(i);if(r.reduced&&"skip"===(a.reduced??(za.includes(a.kind)?"skip":"run")))return;const n=a.run(t,{...a.defaults||{},...s},r);n&&"function"==typeof n.finished?.then?await n.finished.catch(()=>{}):n&&"function"==typeof n.then&&await n}function La(t,e,s={}){const{trigger:i="click",once:a,...r}=s,n=Ca.get(e);if(!n)throw new Error(`[motionary] unknown effect "${e}"`);const o=[];let l=null;const c=e=>{const s=Pa(e);if(s.reduced&&"skip"===(n.reduced??(za.includes(n.kind)?"skip":"run")))return;l?.(),l=null;const i=n.run(t,{...n.defaults||{},...r},s),a=[...s.cleanups,..."function"==typeof i?[i]:[]];a.length&&(l=()=>a.splice(0).forEach(t=>t()))};o.push(()=>{l?.(),l=null});const u=(e,s)=>{t.addEventListener(e,c,s),o.push(()=>t.removeEventListener(e,c,s))};if("click"===i)u("click",{once:!!a});else if("hover"===i)u("pointerenter"),u("focusin");else if("load"===i||"loop"===i)c();else if("enter"===i&&"undefined"!=typeof IntersectionObserver){const e=new IntersectionObserver(t=>{for(const s of t)s.isIntersecting&&(c(),!1!==a&&e.disconnect())},{threshold:.15});e.observe(t),o.push(()=>e.disconnect())}return()=>o.splice(0).reverse().forEach(t=>t())}function qa(t="usa-fx"){return y(t,t=>class extends t{static get observedAttributes(){return["effect","trigger","options"]}get target(){return this.flag("self")?this:this.firstElementChild||this}opts(){try{return JSON.parse(this.str("options","{}"))||{}}catch{return{}}}play(){return Fa(this.target,this.str("effect","pop"),this.opts()).catch(()=>{})}mount(){this.style.display||(this.style.display="inline-block");const t=this.str("effect","pop"),e=this.str("trigger","click");try{this.onCleanup(La(this.target,t,{...this.opts(),trigger:Ea.includes(e)?e:"click",once:this.flag("once")})),this.removeAttribute("data-unknown")}catch{this.setAttribute("data-unknown",t)}}})}const Ra=(t,e,s,i=700,a="ease-in-out")=>({name:t,kind:"attention",description:e,defaults:{duration:i,iterations:1},run:(t,e,i)=>i.reduced?i.animate(t,[{opacity:1},{opacity:.6},{opacity:1}],{duration:400}):i.animate(t,s,{duration:e.duration,easing:a,iterations:e.iterations})}),Ia=[{name:"burst",kind:"click",description:"Particle burst from the click point (or `x` / `y`, or the element center).",defaults:{count:12},run:(t,e,s)=>{if(s.reduced)return;const i=t.getBoundingClientRect(),a=s.event;rs(e.x??a?.clientX??i.left+i.width/2,e.y??a?.clientY??i.top+i.height/2,e)}},{name:"confetti",kind:"click",description:"Confetti cannon from the element.",defaults:{count:80},run:(t,e,s)=>{if(s.reduced)return;const i=t.getBoundingClientRect();ns({x:i.left+i.width/2,y:i.top+i.height/2,...e})}},{name:"shake",kind:"attention",description:'Horizontal "no" shake (errors, wrong password).',defaults:{intensity:8,duration:480},run:(t,e,s)=>s.reduced?s.animate(t,[{opacity:1},{opacity:.5},{opacity:1}],{duration:300}):os(t,e.intensity,e.duration)},{name:"ripple",kind:"click",description:"Material-style ink ripple from the pointer.",defaults:{color:"currentColor",duration:600},run:(t,e,s)=>{var i;if(s.reduced)return;const a=t.getBoundingClientRect(),r=s.event,n=2*Math.hypot(a.width,a.height),o=document.createElement("span");o.setAttribute("aria-hidden","true"),Object.assign(o.style,{position:"absolute",left:(r?.clientX??a.left+a.width/2)-a.left-n/2+"px",top:(r?.clientY??a.top+a.height/2)-a.top-n/2+"px",width:`${n}px`,height:`${n}px`,borderRadius:"50%",background:e.color,opacity:"0.25",pointerEvents:"none"}),"static"===getComputedStyle(t).position&&(t.style.position="relative"),(i=t.style).overflow||(i.overflow="hidden"),t.appendChild(o);const l=s.animate(o,[{transform:"scale(0)",opacity:.3},{transform:"scale(1)",opacity:0}],{duration:e.duration,easing:"ease-out"}),c=()=>o.remove();return l?l.finished.then(c,c):c(),l}}],Na=[...Object.entries(yt).map(([t,e])=>({name:t,kind:"enter",description:`Entrance: ${t} (same keyframes as the timeline preset).`,defaults:{duration:600,delay:0,easing:"cubic-bezier(0.22, 1, 0.36, 1)"},run:(t,s,i)=>i.animate(t,i.reduced?[{opacity:0},{opacity:1}]:e,{duration:s.duration,delay:s.delay,easing:s.easing,fill:"backwards"})})),...[Ra("pulse","Gentle scale pulse.",[{transform:"scale(1)"},{transform:"scale(1.08)"},{transform:"scale(1)"}],600),Ra("pop","Quick overshoot pop.",[{transform:"scale(1)"},{transform:"scale(1.18)",offset:.4},{transform:"scale(0.96)",offset:.7},{transform:"scale(1)"}],450,"cubic-bezier(0.34, 1.56, 0.64, 1)"),Ra("jelly","Rubbery squash-and-stretch.",[{transform:"scale(1,1)"},{transform:"scale(1.25,0.75)",offset:.3},{transform:"scale(0.75,1.25)",offset:.4},{transform:"scale(1.15,0.85)",offset:.5},{transform:"scale(0.95,1.05)",offset:.65},{transform:"scale(1.05,0.95)",offset:.75},{transform:"scale(1,1)"}],900),Ra("wiggle","Playful rotate wiggle.",[{transform:"rotate(0)"},{transform:"rotate(-8deg)",offset:.2},{transform:"rotate(7deg)",offset:.4},{transform:"rotate(-5deg)",offset:.6},{transform:"rotate(3deg)",offset:.8},{transform:"rotate(0)"}],650),Ra("heartbeat","Double-beat heart pulse.",[{transform:"scale(1)"},{transform:"scale(1.2)",offset:.14},{transform:"scale(1)",offset:.28},{transform:"scale(1.2)",offset:.42},{transform:"scale(1)",offset:.7}],1100),Ra("bounce","Hop up and settle with a squash.",[{transform:"translateY(0) scale(1,1)"},{transform:"translateY(-22px) scale(0.95,1.05)",offset:.35},{transform:"translateY(0) scale(1.08,0.92)",offset:.6},{transform:"translateY(-6px) scale(1,1)",offset:.8},{transform:"translateY(0) scale(1,1)"}],800),Ra("flash","Two soft flashes (well under 3 per second).",[{opacity:1},{opacity:.25,offset:.25},{opacity:1,offset:.5},{opacity:.25,offset:.75},{opacity:1}],1400),Ra("tada","Scale + shake celebration.",[{transform:"scale(1) rotate(0)"},{transform:"scale(0.9) rotate(-3deg)",offset:.1},{transform:"scale(1.1) rotate(3deg)",offset:.3},{transform:"scale(1.1) rotate(-3deg)",offset:.5},{transform:"scale(1.1) rotate(3deg)",offset:.7},{transform:"scale(1) rotate(0)"}],1e3)],...Ia];function Ya(){Ta(Na)}function Ba(){Ya(),qa()}const Oa={reveal:["usa-reveal","usa-stagger","usa-scroll-progress","usa-scrolly"],text:["usa-typewriter","usa-split-text","usa-scramble","usa-counter","usa-shimmer-text","usa-text-rotate","usa-wave-text","usa-glitch","usa-gradient-text","usa-handwriting","usa-scroll-highlight"],interaction:["usa-ripple","usa-magnetic","usa-tilt","usa-spotlight","usa-press"],feedback:["usa-spinner","usa-skeleton","usa-progress","usa-toaster","usa-check"],background:["usa-aurora","usa-particles","usa-grain","usa-marquee","usa-acrylic","usa-grid-glow","usa-blobs","usa-water-ripple","usa-dot-network"],transitions:["usa-dialog","usa-accordion","usa-view-switch"],physics:["usa-spring","usa-draggable","usa-overscroll"],cards:["usa-card","usa-card-stack","usa-sticky-stack","usa-carousel-3d"],click:["usa-click","usa-button","usa-icon-morph","usa-like","usa-hold","usa-double-tap","usa-checkbox"],ui:["usa-tabs","usa-drawer","usa-bottom-sheet","usa-pull-refresh","usa-fab","usa-navbar","usa-slider","usa-popover","usa-badge","usa-avatar-stack"],page:["usa-cursor","usa-fullpage","usa-loading-bar","usa-back-to-top","usa-ambient","usa-splash","usa-auto-skeleton","usa-motion-switch"],timeline:["usa-timeline"],gesture:["usa-swipeable","usa-pinch-zoom"],svg:["usa-draw","usa-morph","usa-mask-reveal","usa-anim-icon"],webgl:["usa-shader","usa-distort","usa-liquid","usa-post-fx"],depth:["usa-cube","usa-depth"],layout:["usa-auto-animate","usa-masonry"],packs:["usa-pack"],fx:["usa-fx"]};function Xa(){const t="undefined"!=typeof window?window:{},e="undefined"!=typeof document?document:{};return[{id:"custom-elements",required:!0,supported:!!t.customElements},{id:"web-animations",required:!0,supported:"function"==typeof t.Element?.prototype?.animate},{id:"intersection-observer",required:!0,supported:"function"==typeof t.IntersectionObserver},{id:"resize-observer",required:!0,supported:"function"==typeof t.ResizeObserver},{id:"adopted-stylesheets",required:!0,supported:"adoptedStyleSheets"in e},{id:"view-transitions",required:!1,supported:"function"==typeof e.startViewTransition},{id:"scroll-driven-animations",required:!1,supported:(s="animation-timeline: view()","function"==typeof t.CSS?.supports&&t.CSS.supports(s))},{id:"webgl",required:!1,supported:!(!e.createElement||!(()=>{try{return e.createElement("canvas").getContext("webgl")}catch{return null}})())}];var s}const Da="usa:sensitivity",ja={full:{en:"All motion",zh:"全部动效",allows:["fade","translate","scale","rotate","parallax","loop","flash"]},gentle:{en:"Gentle — no spins, zooms or parallax",zh:"温和 —— 无旋转、缩放与视差",allows:["fade","translate","loop"]},minimal:{en:"Minimal — fades only",zh:"最少 —— 仅淡入淡出",allows:["fade"]},static:{en:"Static — no animation",zh:"静态 —— 无动画",allows:[]}},Ha='html[data-usa-sensitivity="static"] *,html[data-usa-sensitivity="static"] *::before,html[data-usa-sensitivity="static"] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}html[data-usa-sensitivity="minimal"] *,html[data-usa-sensitivity="minimal"] *::before,html[data-usa-sensitivity="minimal"] *::after{animation-duration:1ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important}html[data-usa-sensitivity="gentle"]{--usa-parallax:0;--usa-tilt:0}';function Va(t,e=!1){if(s.includes(t)){if(r({motionSensitivity:t}),f("a11y-sensitivity",Ha),e)try{localStorage.setItem(Da,t)}catch{}"static"===t&&"undefined"!=typeof document&&Ua(document.documentElement),"undefined"!=typeof document&&document.dispatchEvent(new CustomEvent("usa:sensitivity",{detail:{level:t}}))}}function Ua(t){const e=t.getAnimations;if("function"==typeof e)for(const s of e.call(t,{subtree:!0}))try{const t=s.effect?.getComputedTiming().iterations;t===1/0?s.cancel():s.finish()}catch{}return t.setAttribute("data-usa-static",""),()=>t.removeAttribute("data-usa-static")}const Wa={polite:"usa-live-polite",assertive:"usa-live-assertive"};function Ga(t="polite"){if("undefined"==typeof document||!document.body)return null;const e=Wa[t];let s=document.getElementById(e);return s||(s=document.createElement("div"),s.id=e,s.className="usa-sr",s.setAttribute("role","assertive"===t?"alert":"status"),s.setAttribute("aria-live",t),s.setAttribute("aria-atomic","true"),document.body.appendChild(s)),s}let Ka="",Ja=0;const Za='a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex="-1"])',Qa=["button","switch","checkbox","slider","tab","progressbar","radiogroup","dialog"];const tr=Object.values(Oa).flat();const er={};for(const[t,e]of Object.entries(Oa))for(const s of e)er[s]=t;const sr=t=>er[t],ir=new Set;function ar(t,e){if("undefined"==typeof document||ir.has(t))return null;ir.add(t);const s=document.createElement("link");return s.rel="stylesheet",s.href=`${e.replace(/\/?$/,"/")}${"all"===t?"components.css":`components/${t}.css`}`,s.setAttribute("data-usa-css",t),document.head.appendChild(s),s}const rr=()=>"undefined"==typeof window?null:window;function nr(t="UsaBridge"){const e=rr();return e?e.chrome?.webview?.postMessage?"webview2":e.HybridWebView?.SendRawMessage||e.HybridWebView?.SendRawMessageToDotNet||/\bMAUI\b/i.test(e.navigator?.userAgent||"")?"maui":e.flutter_inappwebview?.callHandler||e[t]?.postMessage?"flutter":e.__TAURI__||e.__TAURI_INTERNALS__?"tauri":e.process?.versions?.electron||/Electron\//.test(e.navigator?.userAgent||"")?"electron":"browser":"browser"}function or(t,e="UsaBridge"){const s=rr();if(!s)return!1;const i=JSON.stringify(t);try{if(s.chrome?.webview?.postMessage)return s.chrome.webview.postMessage(t),!0;if(s.HybridWebView?.SendRawMessage)return s.HybridWebView.SendRawMessage(i),!0;if(s.HybridWebView?.SendRawMessageToDotNet)return s.HybridWebView.SendRawMessageToDotNet(i),!0;if(s.flutter_inappwebview?.callHandler)return s.flutter_inappwebview.callHandler(e,i),!0;if(s[e]?.postMessage)return s[e].postMessage(i),!0}catch{}return!1}const lr=["light","dark","high-contrast"],cr=/^(#[0-9a-f]{3,8}|rgba?\([\d\s.,%]+\)|hsla?\([\d\s.,%deg]+\))$/i;function ur(t){let e=t;if("string"==typeof e)try{e=JSON.parse(e)}catch{return null}if(!e||"object"!=typeof e||"usa:settings"!==e.type)return null;const i={};return"boolean"==typeof e.reducedMotion&&(i.reducedMotion=e.reducedMotion),lr.includes(e.theme)&&(i.theme=e.theme),"string"==typeof e.accent&&cr.test(e.accent.trim())&&(i.accent=e.accent.trim()),s.includes(e.sensitivity)&&(i.sensitivity=e.sensitivity),i}function dr(t,e){void 0!==t.reducedMotion&&r({reducedMotion:t.reducedMotion?"reduce":"user"}),t.sensitivity&&r({motionSensitivity:t.sensitivity});const s=e||("undefined"!=typeof document?document.documentElement:null);s&&(t.theme&&(s.setAttribute("data-theme","high-contrast"===t.theme?"dark":t.theme),s.toggleAttribute("data-usa-contrast","high-contrast"===t.theme),s.style.colorScheme="light"===t.theme?"light":"dark"),t.accent&&s.style.setProperty("--usa-accent",t.accent),"undefined"!=typeof document&&document.dispatchEvent(new CustomEvent("usa:native-settings",{detail:t})))}
2
2
  /**
3
3
  * motionary/components
4
4
  *
@@ -19,5 +19,5 @@
19
19
  *
20
20
  * @license MIT
21
21
  */
22
- const dr={reveal:tt,text:Xt,interaction:Wt,feedback:ie,background:be,transitions:_e,physics:De,cards:Je,click:ys,ui:qs,page:oi,timeline:ci,gesture:bi,svg:zi,webgl:Wi,depth:aa,layout:da,packs:ka,fx:Ya};function hr(t){u()&&me(),(t||Object.keys(dr)).forEach(t=>dr[t]?.())}let pr=null;function fr(){return pr?.isConnected||(pr=document.createElement("div"),pr.setAttribute("aria-hidden","true"),pr.setAttribute("data-usa-fx-layer",""),pr.style.cssText="position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:2147483000;contain:strict",document.body.appendChild(pr)),pr}function mr(t,e){const s=e.event,i=t.getBoundingClientRect();return s&&"number"==typeof s.clientX&&(s.clientX||s.clientY)?{x:s.clientX,y:s.clientY}:{x:i.left+i.width/2,y:i.top+i.height/2}}function gr(t,e,s,i,a,r,n=""){const o=document.createElement("span");o.style.cssText=`position:absolute;left:${t}px;top:${e}px;${s}`,n&&(o.textContent=n),fr().appendChild(o);const l=i.animate(o,a,{fill:"forwards",...r}),c=()=>o.remove();return l?l.finished.then(c,c):c(),l}function br(t,e){const s=document.createElement("span");return s.setAttribute("aria-hidden","true"),s.style.cssText=`position:absolute;inset:0;pointer-events:none;border-radius:inherit;${e}`,"static"===getComputedStyle(t).position&&(t.style.position="relative"),t.appendChild(s),[s,()=>s.remove()]}const yr=["#7c5cff","#ff5c8a","#22d3ee","#facc15","#34d399"],vr=(t,e)=>t+Math.random()*(e-t),xr=t=>Promise.all(t.filter(Boolean).map(t=>t.finished.catch(()=>{}))),wr=[{name:"holo",kind:"card",description:'Holographic foil: a rainbow sheen and sparkle that follow the pointer (persistent; bind with trigger="load").',reduced:"run",defaults:{strength:.55},run:(t,e,s)=>{const[i,a]=br(t,`mix-blend-mode:color-dodge;opacity:${e.strength};background:linear-gradient(115deg,transparent 20%,#ff8bd855 35%,#8bf3ff55 45%,#fff58b55 55%,transparent 70%),repeating-linear-gradient(55deg,#ffffff10 0 2px,transparent 2px 6px);background-size:250% 250%,100% 100%;background-position:50% 50%;transition:background-position .2s ease-out`);if(s.reduced)return a;const r=e=>{const s=t.getBoundingClientRect(),a=(e.clientX-s.left)/(s.width||1)*100,r=(e.clientY-s.top)/(s.height||1)*100;i.style.backgroundPosition=`${a}% ${r}%, 0 0`,t.style.transform=`perspective(700px) rotateY(${(a-50)/8}deg) rotateX(${(50-r)/8}deg)`},n=()=>{i.style.backgroundPosition="50% 50%, 0 0",t.style.transform=""};return t.addEventListener("pointermove",r),t.addEventListener("pointerleave",n),()=>{t.removeEventListener("pointermove",r),t.removeEventListener("pointerleave",n),n(),a()}}},{name:"glare-sweep",kind:"card",description:"A diagonal light streak sweeps across the card once.",defaults:{duration:900,color:"rgba(255,255,255,.55)"},run:(t,e,s)=>{if(s.reduced)return;const[i,a]=br(t,`overflow:hidden;background:linear-gradient(105deg,transparent 35%,${e.color} 50%,transparent 65%);background-size:250% 100%`),r=s.animate(i,[{backgroundPosition:"150% 0"},{backgroundPosition:"-50% 0"}],{duration:e.duration,easing:"ease-in-out"});return r?r.finished.then(a,a):a(),r}},{name:"book-open",kind:"card",description:"The card opens like a book cover around its left edge, peeks and closes.",defaults:{angle:35,duration:1100},run:(t,e,s)=>(t.style.transformOrigin="left center",s.animate(t,[{transform:"perspective(900px) rotateY(0)"},{transform:`perspective(900px) rotateY(-${e.angle}deg)`,offset:.45},{transform:"perspective(900px) rotateY(0)"}],{duration:e.duration,easing:"cubic-bezier(0.34, 1.3, 0.64, 1)"}))},{name:"card-fan",kind:"card",description:"The element’s children fan out like a hand of cards, then gather.",defaults:{spread:14,duration:900},run:(t,e,s)=>{const i=Array.from(t.children),a=(i.length-1)/2;return xr(i.map((t,i)=>s.animate(t,[{transform:"none"},{transform:`translateX(${(i-a)*e.spread}px) rotate(${(i-a)*(e.spread/2)}deg)`,offset:.5},{transform:"none"}],{duration:e.duration,easing:"cubic-bezier(0.34, 1.56, 0.64, 1)"})))}},{name:"topple",kind:"card",description:"Tips backwards on its bottom edge and springs upright.",defaults:{duration:1e3},run:(t,e,s)=>(t.style.transformOrigin="bottom center",s.animate(t,[{transform:"perspective(800px) rotateX(0)"},{transform:"perspective(800px) rotateX(55deg)",offset:.35},{transform:"perspective(800px) rotateX(-12deg)",offset:.6},{transform:"perspective(800px) rotateX(5deg)",offset:.8},{transform:"perspective(800px) rotateX(0)"}],{duration:e.duration,easing:"ease-out"}))},{name:"float-tilt",kind:"loop",description:"Idle floating with a slow 3D sway (loop; stops under reduced motion).",defaults:{duration:4200,distance:8},run:(t,e,s)=>{const i=s.animate(t,[{transform:"translateY(0) rotateX(0) rotateY(0)"},{transform:`translateY(-${e.distance}px) rotateX(4deg) rotateY(-5deg)`},{transform:"translateY(0) rotateX(0) rotateY(0)"}],{duration:e.duration,iterations:1/0,easing:"ease-in-out"});return()=>i?.cancel()}}],kr=[{name:"shockwave",kind:"click",description:"Two expanding rings from the click point.",defaults:{color:"#7c5cff",size:160,duration:700},run:(t,e,s)=>{if(s.reduced)return;const{x:i,y:a}=mr(t,s);return xr([0,120].map(t=>gr(i,a,`width:${e.size}px;height:${e.size}px;margin:${-e.size/2}px 0 0 ${-e.size/2}px;border:3px solid ${e.color};border-radius:50%`,s,[{transform:"scale(0)",opacity:.9},{transform:"scale(1)",opacity:0}],{duration:e.duration,delay:t,easing:"cubic-bezier(0.22, 1, 0.36, 1)"})))}},{name:"ink-splash",kind:"click",description:"Ink blobs splatter from the click point and fade.",defaults:{count:9,colors:yr,duration:800},run:(t,e,s)=>{if(s.reduced)return;const{x:i,y:a}=mr(t,s);return xr(Array.from({length:e.count},(t,r)=>{const n=vr(6,22),o=vr(0,2*Math.PI),l=vr(20,70);return gr(i,a,`width:${n}px;height:${n}px;margin:${-n/2}px 0 0 ${-n/2}px;background:${e.colors[r%e.colors.length]};border-radius:${vr(40,50)}% ${vr(50,60)}% ${vr(40,60)}% ${vr(45,55)}%`,s,[{transform:"translate(0,0) scale(.3)",opacity:1},{transform:`translate(${Math.cos(o)*l}px,${Math.sin(o)*l}px) scale(1)`,opacity:.9,offset:.5},{transform:`translate(${Math.cos(o)*l}px,${Math.sin(o)*l+8}px) scale(1.1)`,opacity:0}],{duration:e.duration,easing:"cubic-bezier(0.22, 1, 0.36, 1)"})}))}},{name:"star-burst",kind:"click",description:"Spinning stars burst outward.",defaults:{count:10,colors:["#facc15","#fb923c","#f472b6"],duration:900},run:(t,e,s)=>{if(s.reduced)return;const{x:i,y:a}=mr(t,s);return xr(Array.from({length:e.count},(t,r)=>{const n=r/e.count*Math.PI*2,o=vr(40,80),l=vr(12,22);return gr(i,a,`font-size:${l}px;line-height:1;margin:${-l/2}px 0 0 ${-l/2}px;color:${e.colors[r%e.colors.length]}`,s,[{transform:"translate(0,0) rotate(0) scale(.2)",opacity:1},{transform:`translate(${Math.cos(n)*o}px,${Math.sin(n)*o}px) rotate(${vr(180,360)}deg) scale(1)`,opacity:0}],{duration:e.duration,easing:"cubic-bezier(0.22, 1, 0.36, 1)"},"★")}))}},{name:"jelly-press",kind:"click",description:"The pressed element squishes like jelly and wobbles back.",defaults:{duration:650},run:(t,e,s)=>s.reduced?s.animate(t,[{opacity:1},{opacity:.7},{opacity:1}],{duration:250}):s.animate(t,[{transform:"scale(1,1)"},{transform:"scale(1.15,.85)",offset:.2},{transform:"scale(.9,1.1)",offset:.4},{transform:"scale(1.05,.95)",offset:.6},{transform:"scale(.98,1.02)",offset:.8},{transform:"scale(1,1)"}],{duration:e.duration,easing:"ease-out"})},{name:"ring-ripple",kind:"click",description:"Concentric outlined rings ripple out like water.",defaults:{rings:3,color:"#22d3ee",size:120,duration:1e3},run:(t,e,s)=>{if(s.reduced)return;const{x:i,y:a}=mr(t,s);return xr(Array.from({length:e.rings},(t,r)=>gr(i,a,`width:${e.size}px;height:${e.size}px;margin:${-e.size/2}px 0 0 ${-e.size/2}px;border:2px solid ${e.color};border-radius:50%`,s,[{transform:"scale(.1)",opacity:.8},{transform:"scale(1)",opacity:0}],{duration:e.duration,delay:160*r,easing:"ease-out"})))}},{name:"emoji-rain",kind:"click",description:'Emoji pop up and fall around the click (pass `emoji: "🎉✨💜"`).',defaults:{emoji:"🎉✨💜🔥",count:14,duration:1300},run:(t,e,s)=>{if(s.reduced)return;const{x:i,y:a}=mr(t,s),r=Array.from(String(e.emoji));return xr(Array.from({length:e.count},(t,n)=>{const o=vr(-90,90);return gr(i,a,`font-size:${vr(16,28)}px;line-height:1`,s,[{transform:"translate(0,0) scale(.4)",opacity:0},{transform:`translate(${.6*o}px,${vr(-90,-50)}px) scale(1)`,opacity:1,offset:.35},{transform:`translate(${o}px,${vr(40,90)}px) rotate(${vr(-60,60)}deg) scale(.9)`,opacity:0}],{duration:e.duration,delay:25*n,easing:"cubic-bezier(0.33, 0, 0.67, 1)"},r[n%r.length])}))}}];function _r({stiffness:t=180,damping:e=12,mass:s=1,steps:i=40}={}){const a=1/120;let r=0,n=0;const o=[];let l=0;for(;l<4;l+=a){if(n+=(-t*(r-1)-e*n)/s*a,r+=n*a,o.push(r),l>.1&&Math.abs(r-1)<.001&&Math.abs(n)<.01)break}const c=Array.from({length:i+1},(t,e)=>+o[Math.min(o.length-1,Math.round(e/i*(o.length-1)))].toFixed(4));return c[0]=0,c[i]=1,{values:c,duration:Math.round(o.length*a*1e3)}}function Ar(t,e){const{values:s,duration:i}=_r(e);return{frames:s.map(t),duration:i}}function Mr(t=.5,e=48){const s=[1];let i=1;for(;s.length<6&&i>.01;)i*=t*t,s.push(i);const a=s.map((t,e)=>0===e?Math.sqrt(t):2*Math.sqrt(t)),r=a.reduce((t,e)=>t+e,0);return Array.from({length:e+1},(t,i)=>{let n=i/e*r;for(let t=0;t<s.length;t++){if(n<=a[t]||t===s.length-1){const e=Math.min(n,a[t]);if(0===t)return+(1-(e/a[0])**2).toFixed(4);const i=a[t]/2;return+(s[t]*(1-((e-i)/i)**2)).toFixed(4)}n-=a[t]}return 0})}const Er=(t,e)=>e.animate(t,[{opacity:0},{opacity:1}],{duration:200}),Sr=[{name:"bounce-in",kind:"enter",description:"Springs in from small with an overshoot (spring solver; stiffness / damping options).",defaults:{stiffness:220,damping:11,from:.3},run:(t,e,s)=>{if(s.reduced)return Er(t,s);const{frames:i,duration:a}=Ar(t=>({transform:`scale(${(e.from+(1-e.from)*t).toFixed(4)})`,opacity:Math.min(1,3*t)}),e);return s.animate(t,i,{duration:a,easing:"linear"})}},{name:"rubber-band",kind:"attention",description:"Stretches wide, snaps back thin and settles like a rubber band.",defaults:{duration:900,amount:.25},run:(t,e,s)=>{if(s.reduced)return;const i=e.amount;return s.animate(t,[{transform:"scale(1,1)"},{transform:`scale(${1+i},${1-i})`,offset:.3},{transform:`scale(${1-i},${1+i})`,offset:.4},{transform:`scale(${1+i/2},${1-i/2})`,offset:.5},{transform:`scale(${1-i/5},${1+i/5})`,offset:.65},{transform:`scale(${1+i/10},${1-i/10})`,offset:.75},{transform:"scale(1,1)"}],{duration:e.duration})}},{name:"elastic-hover",kind:"hover",description:'Hover lifts with a springy overshoot; leaving springs back (persistent; trigger="load").',defaults:{lift:6,scale:1.04,stiffness:260,damping:10},run:(t,e,s)=>{if(s.reduced)return;const i=i=>{const a=i?0:1,{frames:r,duration:n}=Ar(t=>{const s=a+(i?t:-t);return{transform:`translateY(${(-e.lift*s).toFixed(2)}px) scale(${(1+(e.scale-1)*s).toFixed(4)})`}},e);s.animate(t,r,{duration:n,fill:"forwards",easing:"linear"})},a=()=>i(!0),r=()=>i(!1);return t.addEventListener("pointerenter",a),t.addEventListener("pointerleave",r),()=>{t.removeEventListener("pointerenter",a),t.removeEventListener("pointerleave",r)}}},{name:"drop-bounce",kind:"enter",description:"Falls in under gravity and bounces to rest (`height`, `bounce` restitution 0–0.9).",defaults:{height:120,bounce:.5,duration:1100},run:(t,e,s)=>{if(s.reduced)return Er(t,s);const i=Mr(Math.min(.9,Math.max(0,e.bounce)));return s.animate(t,i.map((t,s)=>({transform:`translateY(${(-t*e.height).toFixed(1)}px)`,opacity:0===s?0:1})),{duration:e.duration,easing:"linear"})}},{name:"gravity-text",kind:"text",description:"Each character drops in under gravity with a bounce, staggered (splits the text into aria-hidden spans; the label stays readable).",defaults:{height:60,bounce:.45,duration:900,stagger:45},run:(t,e,s)=>{if(s.reduced)return;if(!t.dataset.usaSplit){const e=t.textContent||"";t.setAttribute("aria-label",e),t.textContent="";for(const s of Array.from(e)){const e=document.createElement("span");e.setAttribute("aria-hidden","true"),e.style.display="inline-block",e.style.whiteSpace="pre",e.textContent=s,t.appendChild(e)}t.dataset.usaSplit="1"}const i=Mr(e.bounce,32);return xr(Array.from(t.children).map((t,a)=>s.animate(t,i.map(t=>({transform:`translateY(${(-t*e.height).toFixed(1)}px)`})),{duration:e.duration,delay:a*e.stagger,easing:"linear",fill:"backwards"})))}},{name:"spring-follow",kind:"cursor",description:"The element springs toward the pointer while it moves over its parent, and back home on leave (persistent).",defaults:{stiffness:.12,damping:.75,range:40},run:(t,e,s)=>{if(s.reduced)return;const i=t.parentElement||t;let a=0,r=0,n=0,o=0,l=0,c=0,u=0;const d=()=>{l=(l+(a-n)*e.stiffness)*e.damping,c=(c+(r-o)*e.stiffness)*e.damping,n+=l,o+=c,t.style.translate=`${n.toFixed(2)}px ${o.toFixed(2)}px`,u=Math.abs(l)+Math.abs(c)+Math.abs(a-n)+Math.abs(r-o)>.05?requestAnimationFrame(d):0},h=()=>{u||(u=requestAnimationFrame(d))},p=t=>{const s=i.getBoundingClientRect(),n=(t.clientX-s.left)/(s.width||1)-.5,o=(t.clientY-s.top)/(s.height||1)-.5;a=2*n*e.range,r=2*o*e.range,h()},f=()=>{a=r=0,h()};return i.addEventListener("pointermove",p),i.addEventListener("pointerleave",f),()=>{i.removeEventListener("pointermove",p),i.removeEventListener("pointerleave",f),cancelAnimationFrame(u),t.style.translate=""}}},{name:"bell-swing",kind:"attention",description:"Swings from its top like a ringing bell with damped oscillation.",defaults:{angle:22,stiffness:120,damping:4},run:(t,e,s)=>{if(s.reduced)return;t.style.transformOrigin="top center";const{frames:i,duration:a}=Ar(t=>({transform:`rotate(${(e.angle*(1-t)).toFixed(2)}deg)`}),{stiffness:e.stiffness,damping:e.damping,steps:48});return i[0]={transform:"rotate(0deg)"},s.animate(t,i,{duration:Math.min(a,2400),easing:"linear"})}}];function Cr(t=""){const e=document.createElement("div");return e.setAttribute("aria-hidden","true"),e.setAttribute("data-usa-page-fx",""),e.style.cssText=`position:fixed;inset:0;z-index:2147483001;pointer-events:auto;${t}`,document.body.appendChild(e),e}const $r=t=>t?t.finished.catch(()=>{}):Promise.resolve(),Tr=async t=>{"function"==typeof t&&await t()};function zr(t){return async(e,s,i)=>{if(i.reduced)return async function(t,e){const s=Cr(`background:${t.color};opacity:0`);await $r(e.animate(s,[{opacity:0},{opacity:1}],{duration:150,fill:"forwards"})),await Tr(t.onCovered),await $r(e.animate(s,[{opacity:1},{opacity:0}],{duration:150,fill:"forwards"})),s.remove()}(s,i);const a=Cr("pointer-events:auto"),{parts:r,cover:n,delay:o}=t(a,s,i,e),l=t=>"function"==typeof n?n(t):n,c=s.duration/2;await Promise.all(r.map((t,e)=>$r(i.animate(t,l(e),{duration:c,delay:o?.(e)??0,easing:"cubic-bezier(0.65, 0, 0.35, 1)",fill:"both"})))),await Tr(s.onCovered),s.hold&&await new Promise(t=>setTimeout(t,s.hold)),await Promise.all(r.map((t,e)=>$r(i.animate(t,[...l(e)].reverse(),{duration:c,delay:o?.(e)??0,easing:"cubic-bezier(0.65, 0, 0.35, 1)",fill:"both"})))),a.remove()}}const Pr=(t,e)=>{const s=document.createElement("div");return s.style.cssText=`position:absolute;${e}`,t.appendChild(s),s},Fr={color:"#0f0f1a",duration:1e3,hold:0,onCovered:void 0},Lr=[{name:"curtain",kind:"page",description:"Two curtain panels close from the sides, call onCovered(), then open.",reduced:"run",defaults:Fr,run:zr((t,e)=>({parts:[Pr(t,`top:0;bottom:0;left:0;width:50.5%;background:${e.color}`),Pr(t,`top:0;bottom:0;right:0;width:50.5%;background:${e.color}`)],cover:t=>[{transform:`translateX(${t?100:-100}%)`},{transform:"translateX(0)"}]}))},{name:"iris",kind:"page",description:"A circle closes on the click point (or the element’s center), calls onCovered(), then opens.",reduced:"run",defaults:Fr,run:zr((t,e,s,i)=>{const{x:a,y:r}=mr(i,s),n=Math.hypot(Math.max(a,innerWidth-a),Math.max(r,innerHeight-r))+2,o=Pr(t,`left:${a}px;top:${r}px;width:0;height:0;border-radius:50%;box-shadow:0 0 0 ${Math.ceil(n)}px ${e.color}`);return t.style.background="transparent",{parts:[o],cover:[{width:2*n+"px",height:2*n+"px",margin:`${-n}px 0 0 ${-n}px`},{width:"0px",height:"0px",margin:"0px 0 0 0px"}]}})},{name:"pixel-dissolve",kind:"page",description:"The screen fills with pixels in random order, calls onCovered(), then dissolves (`cols` × `rows`).",reduced:"run",defaults:{...Fr,cols:16,rows:10},run:zr((t,e)=>{const s=e.cols*e.rows,i=Array.from({length:s},(t,e)=>e).sort(()=>Math.random()-.5);return{parts:Array.from({length:s},(s,i)=>Pr(t,`left:${i%e.cols*100/e.cols}%;top:${100*Math.floor(i/e.cols)/e.rows}%;width:${100/e.cols+.2}%;height:${100/e.rows+.2}%;background:${e.color};opacity:0`)),cover:[{opacity:0},{opacity:1}],delay:t=>i[t]/s*(e.duration/2)*.6}})},{name:"blinds",kind:"page",description:"Horizontal slats rotate shut like venetian blinds, call onCovered(), then open (`slats`).",reduced:"run",defaults:{...Fr,slats:8},run:zr((t,e)=>({parts:Array.from({length:e.slats},(s,i)=>Pr(t,`left:0;right:0;top:${100*i/e.slats}%;height:${100/e.slats+.3}%;background:${e.color};transform-origin:top`)),cover:[{transform:"scaleY(0)"},{transform:"scaleY(1)"}],delay:t=>30*t}))},{name:"velocity-skew",kind:"scroll",description:"Skews the element with scroll velocity and eases back when scrolling stops (persistent).",defaults:{max:8,factor:.25},run:(t,e,s)=>{if(s.reduced)return;let i=scrollY,a=0,r=0;const n=()=>{const s=scrollY,o=Math.max(-e.max,Math.min(e.max,(s-i)*e.factor));i=s,a+=.2*(o-a),t.style.transform=`skewY(${a.toFixed(3)}deg)`,r=Math.abs(a)>.01||Math.abs(o)>.01?requestAnimationFrame(n):0,r||(t.style.transform="")},o=()=>{r||(r=requestAnimationFrame(n))};return addEventListener("scroll",o,{passive:!0}),()=>{removeEventListener("scroll",o),cancelAnimationFrame(r),t.style.transform=""}}},{name:"spotlight",kind:"cursor",description:"Dims the page except a soft circle that follows the pointer (persistent; `radius`, `dim`).",defaults:{radius:180,dim:.72},run:(t,e,s)=>{if(s.reduced)return;const i=Cr(`pointer-events:none;background:radial-gradient(circle ${e.radius}px at var(--x,50%) var(--y,50%),transparent 0,transparent 60%,rgba(0,0,0,${e.dim}) 100%)`),a=t=>{i.style.setProperty("--x",`${t.clientX}px`),i.style.setProperty("--y",`${t.clientY}px`)};return addEventListener("pointermove",a,{passive:!0}),()=>{removeEventListener("pointermove",a),i.remove()}}},{name:"edge-glow",kind:"scroll",description:"A soft glow lights the top / bottom edge of the viewport while scrolling in that direction (persistent).",defaults:{color:"#7c5cff",size:90},run:(t,e,s)=>{if(s.reduced)return;const i=Cr("pointer-events:none;opacity:0;transition:opacity .35s ease-out");let a=scrollY,r=0;const n=()=>{const t=scrollY>=a;a=scrollY,i.style.background=`linear-gradient(${t?"to top":"to bottom"},${e.color}55,transparent ${e.size}px)`,i.style.opacity="1",clearTimeout(r),r=setTimeout(()=>i.style.opacity="0",160)};return addEventListener("scroll",n,{passive:!0}),()=>{removeEventListener("scroll",n),clearTimeout(r),i.remove()}}}],qr=["pin","gallery","zoom","compare","counter","highlight"],Rr=(t,e=0,s=1)=>Math.min(s,Math.max(e,t));function Ir(t,e=("number"==typeof innerHeight?innerHeight:800)){const s=t.getBoundingClientRect(),i=s.height-e;return Rr(i>0?-s.top/i:(e-s.top)/(e+s.height))}function Nr(t,e){const s=t.match(/^(\D*)([\d,]*\.?\d+)(.*)$/);if(!s)return t;const[,i,a,r]=s,n=parseFloat(a.replace(/,/g,"")),o=(a.split(".")[1]||"").length;let l=(n*e).toFixed(o);return a.includes(",")&&(l=Number(l).toLocaleString("en-US",{minimumFractionDigits:o,maximumFractionDigits:o})),i+l+r}function Yr(t="usa-story"){return b(t,t=>class extends t{constructor(){super(...arguments),this.progress=0,this.step=-1,this.frame=0}static get observedAttributes(){return["template","zoom"]}get template(){const t=this.str("template","pin");return qr.includes(t)?t:"pin"}steps(){const t=Array.from(this.querySelectorAll("[data-step]:not([data-stage])"));return t.length||"highlight"!==this.template?t:Array.from(this.querySelectorAll("p"))}setStep(t){if(t===this.step)return;this.step=t,this.steps().forEach((e,s)=>e.toggleAttribute("data-active",s===t));const e=this.querySelector("[data-stage]");e&&(e.dataset.activeStep=String(t)),this.dispatchEvent(new CustomEvent("usa-story-step",{detail:{index:t},bubbles:!0}))}update(){this.frame=0;const t=this.progress=Ir(this);this.style.setProperty("--usa-story-progress",t.toFixed(4));const e=this.template,s=innerHeight||800;if("pin"===e||"highlight"===e){const t=s/2;let e=-1,i=1/0;this.steps().forEach((s,a)=>{const r=s.getBoundingClientRect(),n=r.top<=t&&r.bottom>=t?0:Math.min(Math.abs(r.top-t),Math.abs(r.bottom-t));n<i&&(i=n,e=a)}),this.setStep(e)}else if("gallery"!==e||this.reduced)if("zoom"!==e||this.reduced)"compare"!==e||this.hasAttribute("data-dragged")?"counter"===e&&this.querySelectorAll("[data-count]:not([data-counted])").forEach(t=>{const e=t.getBoundingClientRect();e.top<.9*s&&e.bottom>0&&this.count(t)}):this.setSplit(100*t);else{const e=this.querySelector("[data-stage] > *");e&&(e.style.transform=`scale(${(1+t*(this.num("zoom",6)-1)).toFixed(3)})`,e.style.opacity=String(Rr(1.4-1.4*t).toFixed(3)))}else{const e=this.querySelector("[data-track]"),s=this.querySelector("[data-sticky]");e&&s&&(e.style.transform=`translateX(${(-t*Math.max(0,e.scrollWidth-s.clientWidth)).toFixed(1)}px)`)}}setSplit(t){const e=Rr(t,0,100);this.style.setProperty("--usa-split",`${e.toFixed(2)}%`);const s=this.querySelector("[data-handle]");s&&s.setAttribute("aria-valuenow",String(Math.round(e)))}count(t){t.dataset.counted="";const e=t.dataset.count||t.textContent||"0";if(t.setAttribute("aria-label",e),this.reduced)return void(t.textContent=e);const s=Number(t.dataset.duration)||1600,i=performance.now(),a=r=>{const n=Rr((r-i)/s);t.textContent=Nr(e,1-(1-n)**3),n<1&&requestAnimationFrame(a)};requestAnimationFrame(a)}mount(){this.toggleAttribute("data-static",this.reduced),"compare"===this.template&&this.mountCompare();const t=()=>{this.frame||(this.frame=requestAnimationFrame(()=>this.update()))};this.listen(window,"scroll",t,{passive:!0}),this.listen(window,"resize",t),this.onCleanup(()=>cancelAnimationFrame(this.frame)),this.update()}mountCompare(){const t=this.querySelector("[data-sticky]")||this;let e=this.querySelector("[data-handle]");e||(e=document.createElement("div"),e.setAttribute("data-handle",""),t.appendChild(e),this.onCleanup(()=>e.remove())),e.tabIndex=0,e.setAttribute("role","slider"),e.setAttribute("aria-label",this.str("label","Before / after")),e.setAttribute("aria-valuemin","0"),e.setAttribute("aria-valuemax","100");const s=e=>{const s=t.getBoundingClientRect();this.dataset.dragged="",this.setSplit((e.clientX-s.left)/(s.width||1)*100)};let i=!1;this.listen(e,"pointerdown",t=>{i=!0,e.setPointerCapture?.(t.pointerId)}),this.listen(e,"pointermove",t=>i&&s(t)),this.listen(e,"pointerup",()=>i=!1),this.listen(e,"keydown",t=>{const s=parseFloat(e.getAttribute("aria-valuenow")||"50"),i=t.shiftKey?10:2,a="ArrowLeft"===t.key||"ArrowDown"===t.key?s-i:"ArrowRight"===t.key||"ArrowUp"===t.key?s+i:"Home"===t.key?0:"End"===t.key?100:null;null!=a&&(t.preventDefault(),this.dataset.dragged="",this.setSplit(a))}),this.setSplit(50)}unmount(){this.step=-1,delete this.dataset.dragged}},{id:"usa-story",text:"usa-story{display:block;position:relative}\nusa-story[template=pin] [data-stage],usa-story[template=gallery] [data-sticky],usa-story[template=zoom] [data-stage],usa-story[template=compare] [data-sticky]{position:sticky;top:0}\nusa-story[template=pin] [data-stage]{align-self:start}\nusa-story[template=pin] [data-step]{min-height:80vh;opacity:.35;transition:opacity .3s}\nusa-story[template=pin] [data-step][data-active]{opacity:1}\nusa-story[template=gallery] [data-sticky]{height:100vh;overflow:hidden;display:flex;align-items:center}\nusa-story[template=gallery] [data-track]{display:flex;gap:24px;will-change:transform}\nusa-story[template=gallery][data-static] [data-sticky]{position:static;height:auto;overflow:visible}\nusa-story[template=gallery][data-static] [data-track]{flex-direction:column;transform:none!important}\nusa-story[template=zoom] [data-stage]{height:100vh;overflow:hidden;display:grid;place-items:center}\nusa-story[template=compare] [data-sticky]{height:var(--usa-story-h,70vh);overflow:hidden}\nusa-story[template=compare] [data-before],usa-story[template=compare] [data-after]{position:absolute;inset:0}\nusa-story[template=compare] [data-after]{clip-path:inset(0 0 0 var(--usa-split,50%))}\nusa-story [data-handle]{position:absolute;top:0;bottom:0;left:var(--usa-split,50%);width:4px;margin-left:-2px;background:#fff;box-shadow:0 0 0 1px #0003;cursor:ew-resize;touch-action:none}\nusa-story [data-handle]:focus-visible{outline:3px solid #7c5cff;outline-offset:2px}\nusa-story[template=highlight] p,usa-story[template=highlight] [data-step]{opacity:.3;transition:opacity .25s}\nusa-story[template=highlight] [data-active]{opacity:1}"})}function Br(t,e,s=0){return(Math.sin(1.7*t+s)*Math.cos(1.3*e-.7*s)+.5*Math.sin(.9*(t+e)+.5*s)+.5*Math.cos(.6*t-1.1*e-.3*s))/2}function Or(t){const e=/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(t.trim());return e?[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]:[124,92,255]}function Xr(t,e,s,i){const a=document.createElement("canvas");a.setAttribute("aria-hidden","true"),a.setAttribute("data-usa-fx-canvas",""),a.style.cssText="position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:-1;border-radius:inherit";const r=[],n=(e,s)=>{r.push([e,t.style[e]]),t.style[e]=s};"static"===getComputedStyle(t).position&&n("position","relative"),n("isolation","isolate"),t.prepend(a);const o=a.getContext("2d");let l=0,c=!0,u=Math.min(1,Math.max(.35,Number(i.quality)||1)),d=0,h=0,p=null;const f=performance.now();let m=f,g=0,b=0;const y=()=>{const e=t.getBoundingClientRect();d=Math.max(1,Math.round(e.width)),h=Math.max(1,Math.round(e.height));const r=Math.min(2,("number"==typeof devicePixelRatio?devicePixelRatio:1)||1)*u;a.width=Math.max(1,Math.round(d*r)),a.height=Math.max(1,Math.round(h*r)),o&&o.setTransform(r,0,0,r,0,0),p=s.init?s.init(d,h,i):{}},v=t=>{if(l=0,!o)return;const e=t-m;m=t,e>28?g++:e<18&&b++,g>20&&u>.35?(u=Math.max(.35,u-.15),g=b=0,y()):b>240&&u<1&&(u=Math.min(1,u+.15),g=b=0,y()),s.draw({ctx:o,w:d,h:h,t:(t-f)/1e3,quality:u,state:p,o:i}),c&&!document.hidden&&(l=requestAnimationFrame(v))},x=()=>{l||!o||e.reduced||(m=performance.now(),l=requestAnimationFrame(v))};y(),o&&s.draw({ctx:o,w:d,h:h,t:0,quality:u,state:p,o:i});const w="function"==typeof IntersectionObserver?new IntersectionObserver(t=>{c=t.some(t=>t.isIntersecting),c&&x()}):null;w?.observe(t);const k="function"==typeof ResizeObserver?new ResizeObserver(()=>{y(),o&&e.reduced&&s.draw({ctx:o,w:d,h:h,t:0,quality:u,state:p,o:i})}):null;k?.observe(t);const _=()=>!document.hidden&&c&&x();return document.addEventListener("visibilitychange",_),x(),()=>{cancelAnimationFrame(l),l=0,w?.disconnect(),k?.disconnect(),document.removeEventListener("visibilitychange",_),a.remove();for(const[e,s]of r)t.style[e]=s}}const Dr=(t,e,s,i)=>({name:t,kind:"background",description:e,reduced:"run",defaults:{colors:yr,background:"#0b0d12",speed:1,quality:1,...s},run:(t,e,s)=>Xr(t,s,i,e)});function jr(t,e,s){const i=Math.max(2,Math.round(e/t.quality)),a=Math.max(1,Math.ceil(t.w/i)),r=Math.max(1,Math.ceil(t.h/i)),n=t.state;if(n.buf&&n.buf.width===a&&n.buf.height===r||(n.buf=document.createElement("canvas"),n.buf.width=a,n.buf.height=r,n.bctx=n.buf.getContext("2d"),n.img=n.bctx?.createImageData(a,r)),!n.bctx||!n.img)return;const o=n.img.data;for(let t=0;t<r;t++)for(let e=0;e<a;e++)s(e*i,t*i,o,4*(t*a+e));n.bctx.putImageData(n.img,0,0),t.ctx.imageSmoothingEnabled=!0,t.ctx.drawImage(n.buf,0,0,t.w,t.h)}const Hr=[Dr("flow-field","Particles drift along a slowly changing flow field, leaving silky trails.",{count:600,fade:.06},{init:(t,e,s)=>({p:Array.from({length:s.count},()=>[Math.random()*t,Math.random()*e])}),draw:({ctx:t,w:e,h:s,t:i,state:a,o:r,quality:n})=>{t.fillStyle=r.background,t.globalAlpha=0===i?1:r.fade,t.fillRect(0,0,e,s),t.globalAlpha=.8;const o=Math.round(a.p.length*n),l=0===i?40:1;for(let n=0;n<o;n++){const o=a.p[n];t.fillStyle=r.colors[n%r.colors.length];for(let a=0;a<l;a++){const a=Br(.004*o[0],.004*o[1],.15*i*r.speed)*Math.PI*2;o[0]+=1.2*Math.cos(a)*r.speed,o[1]+=1.2*Math.sin(a)*r.speed,(o[0]<0||o[0]>e||o[1]<0||o[1]>s)&&(o[0]=Math.random()*e,o[1]=Math.random()*s),t.fillRect(o[0],o[1],1.4,1.4)}}t.globalAlpha=1}}),Dr("voronoi","Drifting Voronoi cells in the palette, with darker borders.",{seeds:14,cell:6},{init:(t,e,s)=>({s:Array.from({length:s.seeds},(i,a)=>({x:Math.random()*t,y:Math.random()*e,vx:Math.random()-.5,vy:Math.random()-.5,c:Or(s.colors[a%s.colors.length])}))}),draw:t=>{const{w:e,h:s,state:i,o:a}=t;for(const t of i.s)t.x+=t.vx*a.speed,t.y+=t.vy*a.speed,(t.x<0||t.x>e)&&(t.vx*=-1),(t.y<0||t.y>s)&&(t.vy*=-1);jr(t,a.cell,(t,e,s,a)=>{let r=1/0,n=1/0,o=i.s[0].c;for(const s of i.s){const i=(s.x-t)**2+(s.y-e)**2;i<r?(n=r,r=i,o=s.c):i<n&&(n=i)}const l=Math.sqrt(n)-Math.sqrt(r)<6?.55:1;s[a]=o[0]*l,s[a+1]=o[1]*l,s[a+2]=o[2]*l,s[a+3]=255})}}),Dr("mesh-gradient","Soft blobs of colour orbit and blend into a living mesh gradient.",{blobs:4,blur:.65},{draw:({ctx:t,w:e,h:s,t:i,o:a})=>{t.fillStyle=a.background,t.fillRect(0,0,e,s);const r=Math.max(e,s)*a.blur;for(let n=0;n<a.blobs;n++){const o=.25*i*a.speed+n*Math.PI*2/a.blobs,l=e/2+Math.cos(o*(1+.13*n))*e*.32,c=s/2+Math.sin(o*(.8+.11*n))*s*.32,[u,d,h]=Or(a.colors[n%a.colors.length]),p=t.createRadialGradient(l,c,0,l,c,r);p.addColorStop(0,`rgba(${u},${d},${h},0.7)`),p.addColorStop(1,`rgba(${u},${d},${h},0)`),t.fillStyle=p,t.fillRect(0,0,e,s)}}}),Dr("starfield","Stars stream toward the viewer (warp speed with `speed: 4`).",{stars:400,color:"#ffffff"},{init:(t,e,s)=>({s:Array.from({length:s.stars},()=>[2*Math.random()-1,2*Math.random()-1,Math.random()])}),draw:({ctx:t,w:e,h:s,t:i,state:a,o:r,quality:n})=>{t.fillStyle=r.background,t.fillRect(0,0,e,s),t.fillStyle=r.color;const o=Math.round(a.s.length*n);for(let n=0;n<o;n++){const o=a.s[n];i>0&&(o[2]-=.004*r.speed),o[2]<=.01&&(o[0]=2*Math.random()-1,o[1]=2*Math.random()-1,o[2]=1);const l=e/2+o[0]/o[2]*e*.5,c=s/2+o[1]/o[2]*s*.5;if(l<0||l>e||c<0||c>s)continue;const u=2.6*(1-o[2]);t.globalAlpha=Math.min(1,1.6*(1-o[2])),t.fillRect(l,c,u,u)}t.globalAlpha=1}}),Dr("metaballs","Gooey blobs that merge and split (low-resolution field, scaled up).",{balls:6,cell:5,threshold:1},{init:(t,e,s)=>({b:Array.from({length:s.balls},()=>({x:Math.random()*t,y:Math.random()*e,vx:1.6*(Math.random()-.5),vy:1.6*(Math.random()-.5),r:Math.min(t,e)*(.08+.08*Math.random())}))}),draw:t=>{const{w:e,h:s,state:i,o:a}=t;for(const t of i.b)t.x+=t.vx*a.speed,t.y+=t.vy*a.speed,(t.x<0||t.x>e)&&(t.vx*=-1),(t.y<0||t.y>s)&&(t.vy*=-1);const[r,n,o]=Or(a.colors[0]),[l,c,u]=Or(a.colors[1]||a.colors[0]),[d,h,p]=Or(a.background);jr(t,a.cell,(t,e,s,f)=>{let m=0;for(const s of i.b)m+=s.r*s.r/((s.x-t)**2+(s.y-e)**2+1);const g=m>=a.threshold,b=Math.min(1,.8*(m-a.threshold));s[f]=g?r+(l-r)*b:d,s[f+1]=g?n+(c-n)*b:h,s[f+2]=g?o+(u-o)*b:p,s[f+3]=255})}}),Dr("contours","Topographic contour lines over a slowly shifting height field.",{levels:9,cell:4,color:"#7c5cff"},{draw:t=>{const{t:e,o:s}=t,[i,a,r]=Or(s.color),[n,o,l]=Or(s.background),c=(t,i)=>(Br(.006*t,.006*i,.2*e*s.speed)+1)/2,u=Math.max(2,Math.round(s.cell/t.quality));jr(t,s.cell,(t,e,d,h)=>{const p=Math.floor(c(t,e)*s.levels),f=p!==Math.floor(c(t+u,e)*s.levels)||p!==Math.floor(c(t,e+u)*s.levels),m=.12+p/s.levels*.18;d[h]=f?i:n+(i-n)*m,d[h+1]=f?a:o+(a-o)*m,d[h+2]=f?r:l+(r-l)*m,d[h+3]=255})}})];let Vr=null,Ur=null;const Wr=new WeakMap;async function Gr(t="mic",e={}){Ur?.stop();const s=function(){const t=globalThis.AudioContext||globalThis.webkitAudioContext;if(!t)throw new Error("[motionary] Web Audio is not available");return Vr&&"closed"!==Vr.state||(Vr=new t),Vr}();"suspended"===s.state&&await s.resume().catch(()=>{});const i=s.createAnalyser();let a;i.fftSize=e.fftSize||512,i.smoothingTimeConstant=e.smoothing??.8;let r=()=>{};const n="string"==typeof t&&"mic"!==t?document.querySelector(t):t;if("mic"===n){const t=await navigator.mediaDevices.getUserMedia({audio:!0});a=s.createMediaStreamSource(t),a.connect(i),r=()=>t.getTracks().forEach(t=>t.stop())}else if(n&&"function"==typeof n.play){const t=n;let e=Wr.get(t);e||Wr.set(t,e=s.createMediaElementSource(t));try{e.disconnect()}catch{}a=e,a.connect(i),i.connect(s.destination),r=()=>{try{e.disconnect()}catch{}e.connect(s.destination)},t.paused&&await(t.play()?.catch?.(()=>{}))}else{if(!n||"function"!=typeof n.getTracks)throw new Error(`[motionary] enableAudio: no audio source for ${String(t)}`);a=s.createMediaStreamSource(n),a.connect(i)}const o=new Uint8Array(i.frequencyBinCount),l=new Uint8Array(i.fftSize),c={context:s,analyser:i,sample:()=>{i.getByteFrequencyData(o),i.getByteTimeDomainData(l);let t=0;for(let e=0;e<l.length;e++)t+=((l[e]-128)/128)**2;const e=Math.max(1,Math.round(.08*o.length));let s=0;for(let t=0;t<e;t++)s+=o[t];return{level:Math.min(1,2*Math.sqrt(t/l.length)),bass:s/e/255,freq:o,wave:l}},stop:()=>{Ur===c&&(Ur=null,Zr&&"function"==typeof cancelAnimationFrame&&cancelAnimationFrame(Zr),Zr=0);try{a.disconnect(),i.disconnect()}catch{}r(),Qr(0,0)}};return Ur=c,en(),c}function Kr(t={}){const{threshold:e=1.35,cooldown:s=250,history:i=43,floor:a=.08}=t,r=[];let n=-1/0;return(t,o)=>{const l=r.length?r.reduce((t,e)=>t+e,0)/r.length:t,c=r.length>=8;return r.push(t),r.length>i&&r.shift(),!!(c&&t>a&&t>l*e&&o-n>=s)&&(n=o,!0)}}const Jr=new Set;let Zr=0;function Qr(t,e){if("undefined"==typeof document)return;const s=document.documentElement.style;s.setProperty("--usa-audio-level",t.toFixed(3)),s.setProperty("--usa-audio-bass",e.toFixed(3))}function tn(t){if(Zr=0,!Ur)return;const{level:e,bass:s}=Ur.sample(),i=d();Qr(i?0:e,i?0:s);for(const e of Array.from(Jr))e.detect(s,t)&&e.cb({energy:s,time:t});en()}function en(){!Zr&&Ur&&"function"==typeof requestAnimationFrame&&(Zr=requestAnimationFrame(tn))}function sn(t,e={}){const s={detect:Kr(e),cb:t};return Jr.add(s),en(),()=>{Jr.delete(s)}}function an(t,e){if(Ur)return{...Ur.sample(),idle:!1};const s=new Uint8Array(e),i=new Uint8Array(2*e);for(let i=0;i<e;i++)s[i]=70+50*Math.sin(2*t+.35*i)*Math.cos(.7*t+.11*i)*(1-i/e);for(let e=0;e<i.length;e++)i[e]=128+22*Math.sin(3*t+.12*e);return{level:.25+.1*Math.sin(2*t),bass:.35+.2*Math.sin(2.4*t),freq:s,wave:i,idle:!0}}const rn=(t,e,s,i)=>({name:t,kind:"background",description:e,reduced:"skip",defaults:{colors:yr,background:"#0b0d12",speed:1,quality:1,...s},run:(t,e,s)=>Xr(t,s,i,e)}),nn=[rn("spectrum-bars","Frequency bars dance to the audio (mirror them with `mirror: true`).",{bars:48,gap:2,mirror:!1},{draw:({ctx:t,w:e,h:s,t:i,o:a})=>{t.fillStyle=a.background,t.fillRect(0,0,e,s);const r=an(i,a.bars),n=Math.max(1,Math.floor(.7*r.freq.length/a.bars)),o=e/a.bars;for(let e=0;e<a.bars;e++){let i=0;for(let t=0;t<n;t++)i+=r.freq[Math.min(r.freq.length-1,e*n+t)];const l=i/n/255*s*(a.mirror?.5:.9);t.fillStyle=a.colors[e%a.colors.length],t.fillRect(e*o+a.gap/2,a.mirror?s/2-l:s-l,Math.max(1,o-a.gap),a.mirror?2*l:l)}}}),rn("pulse-ring","Glowing rings pulse with the bass.",{rings:3,color:"#7c5cff"},{draw:({ctx:t,w:e,h:s,t:i,o:a})=>{t.fillStyle=a.background,t.fillRect(0,0,e,s);const r=an(i,32),[n,o,l]=Or(a.color),c=.18*Math.min(e,s);for(let i=0;i<a.rings;i++){const a=c*(1+.55*i)*(1+.6*r.bass);t.strokeStyle=`rgba(${n},${o},${l},${(.9-.25*i)*(.4+r.level)})`,t.lineWidth=3+10*r.bass-i,t.beginPath(),t.arc(e/2,s/2,a,0,2*Math.PI),t.stroke()}}}),rn("wave-ring","The live waveform wrapped into a circle.",{color:"#22d3ee",amplitude:.35},{draw:({ctx:t,w:e,h:s,t:i,o:a})=>{t.fillStyle=a.background,t.fillRect(0,0,e,s);const r=an(i,64),n=r.wave.length,o=.28*Math.min(e,s);t.strokeStyle=a.color,t.lineWidth=2,t.beginPath();for(let i=0;i<=n;i++){const l=i/n*Math.PI*2,c=o*(1+(r.wave[i%n]-128)/128*a.amplitude*2),u=e/2+Math.cos(l)*c,d=s/2+Math.sin(l)*c;i?t.lineTo(u,d):t.moveTo(u,d)}t.closePath(),t.stroke()}})];function on(t="usa-audio"){return b(t,t=>class extends t{constructor(){super(...arguments),this.active=!1,this.audio=null,this.off=null}static get observedAttributes(){return["source"]}button(){let t=this.querySelector("[data-audio-toggle]");return t||(t=document.createElement("button"),t.type="button",t.setAttribute("data-audio-toggle",""),t.textContent=this.str("label","🔊 Enable sound-reactive effects"),this.prepend(t),this.onCleanup(()=>t.remove())),t}async toggle(){const t=this.button();if(this.active)return this.stop();try{this.audio=await Gr(this.str("source","mic")),this.active=!0,this.removeAttribute("data-audio-error"),t.setAttribute("aria-pressed","true"),this.off=sn(t=>{this.dispatchEvent(new CustomEvent("usa-beat",{detail:t,bubbles:!0})),d()||this.querySelectorAll("[data-usa-beat]").forEach(t=>{let e={};try{e=JSON.parse(t.dataset.usaBeatOptions||"{}")||{}}catch{}Pa(t,t.dataset.usaBeat||"pulse",e).catch(()=>{})})},{threshold:this.num("threshold",1.35),cooldown:this.num("cooldown",250)})}catch(t){this.setAttribute("data-audio-error",""),this.dispatchEvent(new CustomEvent("usa-audio-error",{detail:{error:t},bubbles:!0}))}}stop(){this.off?.(),this.off=null,this.audio&&Ur===this.audio&&this.audio.stop(),this.audio=null,this.active=!1,this.querySelector("[data-audio-toggle]")?.setAttribute("aria-pressed","false")}mount(){const t=this.button();t.setAttribute("aria-pressed","false"),this.listen(t,"click",()=>{this.toggle()}),this.onCleanup(()=>this.stop())}},{id:"usa-audio",text:"usa-audio{display:block}usa-audio[data-audio-error] [data-audio-toggle]{outline:2px solid #ff5c8a}"})}const ln=(t,e)=>e.touch||"touch"!==t.pointerType;function cn(t,e,s){const i=[],a=function(t){const e=document.createElement("canvas");e.style.cssText="position:absolute;inset:0;width:100%;height:100%",fr().appendChild(e);const s=e.getContext("2d");let i=0;const a=r=>{if(i=0,!s)return;const n=innerWidth,o=innerHeight,l=Math.min(2,devicePixelRatio||1);e.width===Math.round(n*l)&&e.height===Math.round(o*l)||(e.width=Math.round(n*l),e.height=Math.round(o*l)),s.setTransform(l,0,0,l,0,0),s.clearRect(0,0,n,o),t(s,n,o,r)&&(i=requestAnimationFrame(a))};return{kick:()=>{!i&&s&&(i=requestAnimationFrame(a))},stop:()=>{cancelAnimationFrame(i),i=0,e.remove()}}}((t,a,r,n)=>{for(;i.length&&n-i[0].t>e.life;)i.shift();return i.length>1&&s(t,i,n),i.length>0}),r=t=>{ln(t,e)&&(i.push({x:t.clientX,y:t.clientY,t:performance.now()}),i.length>64&&i.shift(),a.kick())};return t.addEventListener("pointermove",r,{passive:!0}),()=>{t.removeEventListener("pointermove",r),a.stop()}}const un=[{name:"comet-trail",kind:"cursor",description:"A glowing comet tail follows the pointer over the element (persistent; `color`, `width`, `life`).",defaults:{color:"#7c5cff",width:10,life:320,touch:!1},run:(t,e)=>cn(t,e,(t,s,i)=>{const[a,r,n]=Or(e.color);t.lineCap="round";for(let o=1;o<s.length;o++){const l=1-(i-s[o].t)/e.life;t.strokeStyle=`rgba(${a},${r},${n},${(.9*l).toFixed(3)})`,t.lineWidth=Math.max(.5,e.width*l),t.beginPath(),t.moveTo(s[o-1].x,s[o-1].y),t.lineTo(s[o].x,s[o].y),t.stroke()}})},{name:"ribbon-trail",kind:"cursor",description:"A smooth rainbow ribbon flows behind the pointer (persistent; `width`, `life`).",defaults:{width:18,life:600,touch:!1},run:(t,e)=>cn(t,e,(t,s,i)=>{for(let a=2;a<s.length;a++){const r=1-(i-s[a].t)/e.life,n=s[a-2],o=s[a-1],l=s[a];t.strokeStyle=`hsla(${s[a].t/6%360},90%,62%,${(.85*r).toFixed(3)})`,t.lineWidth=Math.max(.5,e.width*r*Math.sin(Math.PI*Math.min(1,a/s.length*1.1))),t.lineCap="round",t.beginPath(),t.moveTo((n.x+o.x)/2,(n.y+o.y)/2),t.quadraticCurveTo(o.x,o.y,(o.x+l.x)/2,(o.y+l.y)/2),t.stroke()}})},{name:"sparkle-trail",kind:"cursor",description:"Little stars twinkle off the pointer as it moves (persistent; `colors`, `spacing` px between stars).",defaults:{colors:yr,spacing:14,size:14,touch:!1},run:(t,e,s)=>{let i=-1e4,a=-1e4;const r=t=>{if(!ln(t,e)||Math.hypot(t.clientX-i,t.clientY-a)<e.spacing)return;i=t.clientX,a=t.clientY;const r=e.size*vr(.6,1.2);gr(t.clientX-r/2,t.clientY-r/2,`font-size:${r}px;line-height:1;color:${e.colors[Math.floor(vr(0,e.colors.length))]}`,s,[{transform:"translate(0,0) scale(0) rotate(0deg)",opacity:1},{transform:`translate(${vr(-14,14)}px,${vr(4,26)}px) scale(1) rotate(${vr(-90,90)}deg)`,opacity:0}],{duration:vr(500,800),easing:"ease-out"},"✦")};return t.addEventListener("pointermove",r,{passive:!0}),()=>t.removeEventListener("pointermove",r)}},{name:"magnetic-dots",kind:"cursor",description:"A grid of dots behind the content leans toward the pointer like iron filings to a magnet (persistent; `gap`, `radius`, `color`).",defaults:{gap:22,radius:120,color:"#7c5cff",background:"transparent",touch:!1},reduced:"skip",run:(t,e,s)=>{const i={x:-1e4,y:-1e4},a=s=>{if(!ln(s,e))return;const a=t.getBoundingClientRect();i.x=s.clientX-a.left,i.y=s.clientY-a.top},r=()=>(i.x=-1e4,i.y=-1e4);t.addEventListener("pointermove",a,{passive:!0}),t.addEventListener("pointerleave",r);const n=Xr(t,s,{draw:({ctx:t,w:s,h:a})=>{t.clearRect(0,0,s,a),"transparent"!==e.background&&(t.fillStyle=e.background,t.fillRect(0,0,s,a)),t.fillStyle=e.color;for(let r=e.gap/2;r<a;r+=e.gap)for(let a=e.gap/2;a<s;a+=e.gap){const s=i.x-a,n=i.y-r,o=Math.hypot(s,n),l=o<e.radius?(1-o/e.radius)**2:0,c=1.5+3*l;t.globalAlpha=.35+.65*l,t.fillRect(a+s*l*.35-c/2,r+n*l*.35-c/2,c,c)}t.globalAlpha=1}},e);return()=>{t.removeEventListener("pointermove",a),t.removeEventListener("pointerleave",r),n()}}},{name:"spotlight-cursor",kind:"cursor",description:"A soft light follows the pointer across the element, easing behind it (persistent; `color`, `size`).",defaults:{color:"#ffffff",size:260,ease:.18,touch:!1},run:(t,e)=>{const[s,i,a]=Or(e.color),r=document.createElement("span");r.setAttribute("aria-hidden","true"),r.style.cssText=`position:absolute;inset:0;pointer-events:none;border-radius:inherit;opacity:0;transition:opacity .25s;mix-blend-mode:soft-light;background:radial-gradient(circle ${e.size/2}px at var(--sx,50%) var(--sy,50%),rgba(${s},${i},${a},.75),transparent)`;const n=t.style.position;"static"===getComputedStyle(t).position&&(t.style.position="relative"),t.appendChild(r);let o=0,l=0,c=0,u=0,d=0;const h=()=>{c+=(o-c)*e.ease,u+=(l-u)*e.ease,r.style.setProperty("--sx",`${c.toFixed(1)}px`),r.style.setProperty("--sy",`${u.toFixed(1)}px`),d=Math.abs(o-c)+Math.abs(l-u)>.3?requestAnimationFrame(h):0},p=s=>{if(!ln(s,e))return;const i=t.getBoundingClientRect();o=s.clientX-i.left,l=s.clientY-i.top,"1"!==r.style.opacity&&(c=o,u=l,r.style.opacity="1"),d||(d=requestAnimationFrame(h))},f=()=>r.style.opacity="0";return t.addEventListener("pointermove",p,{passive:!0}),t.addEventListener("pointerleave",f),()=>{cancelAnimationFrame(d),t.removeEventListener("pointermove",p),t.removeEventListener("pointerleave",f),r.remove(),t.style.position=n}}}],dn=["fling","twist","long-press"];function hn(t,e=90){if(t.length<2)return{vx:0,vy:0,speed:0};const s=t[t.length-1];let i=t[0];for(let a=t.length-2;a>=0&&(i=t[a],!(s.t-t[a].t>=e));a--);const a=Math.max(1,s.t-i.t),r=(s.x-i.x)/a,n=(s.y-i.y)/a;return{vx:r,vy:n,speed:Math.hypot(r,n)}}function pn(t,e){let s=(e-t)%360;return s>180&&(s-=360),s<=-180&&(s+=360),s}function fn(t,e,s,i={}){const{velocity:a=.8,angle:r=30,duration:n=650,tolerance:o=10,effectOptions:l={}}=i,c=new Map;let u=[],d=null,h=null;const p=(e,i)=>{t.dispatchEvent(new CustomEvent("usa-gesture",{detail:e,bubbles:!0})),"function"==typeof s?s(e,i):Pa(t,s,l,i).catch(()=>{})},f=()=>{const[t,e]=[...c.values()];return 180*Math.atan2(e.y-t.y,e.x-t.x)/Math.PI},m=e=>{t.style.setProperty("--usa-charge",e.toFixed(3)),t.toggleAttribute("data-charging",e>0&&e<1)},g=()=>{h&&(cancelAnimationFrame(h.raf),h=null,m(0))},b=s=>{if(c.set(s.pointerId??1,{x:s.clientX,y:s.clientY}),"fling"===e&&(u=[{x:s.clientX,y:s.clientY,t:s.timeStamp||performance.now()}]),"twist"===e&&2===c.size&&(d=f()),"long-press"===e&&1===c.size){h={x:s.clientX,y:s.clientY,t0:performance.now(),raf:0};const i=a=>{if(!h)return;const r=Math.min(1,(a-h.t0)/n);m(r),r>=1?(g(),t.style.setProperty("--usa-charge","1"),p({gesture:e,charge:1},s)):h.raf=requestAnimationFrame(i)};h.raf=requestAnimationFrame(i)}},y=t=>{if(c.has(t.pointerId??1))if(c.set(t.pointerId??1,{x:t.clientX,y:t.clientY}),"fling"===e)u.push({x:t.clientX,y:t.clientY,t:t.timeStamp||performance.now()}),u.length>20&&u.shift();else if("twist"===e&&c.size>=2&&null!==d){const s=f(),i=pn(d,s);Math.abs(i)>=r&&(d=s,p({gesture:e,angle:i,direction:i>0?"cw":"ccw"},t))}else"long-press"===e&&h&&Math.hypot(t.clientX-h.x,t.clientY-h.y)>o&&g()},v=t=>{if(c.delete(t.pointerId??1),"fling"===e&&u.length){u.push({x:t.clientX,y:t.clientY,t:t.timeStamp||performance.now()});const s=hn(u);if(u=[],s.speed>=a){const i=Math.abs(s.vx)>Math.abs(s.vy)?s.vx>0?"right":"left":s.vy>0?"down":"up";p({gesture:e,...s,direction:i},t)}}c.size<2&&(d=null),g()};return t.addEventListener("pointerdown",b),t.addEventListener("pointermove",y),t.addEventListener("pointerup",v),t.addEventListener("pointercancel",v),"twist"!==e||t.style.touchAction||(t.style.touchAction="none"),()=>{g(),t.removeEventListener("pointerdown",b),t.removeEventListener("pointermove",y),t.removeEventListener("pointerup",v),t.removeEventListener("pointercancel",v)}}function mn(t="usa-gesture-fx"){return b(t,t=>class extends t{static get observedAttributes(){return["gesture","effect","options"]}get gesture(){const t=this.str("gesture","fling");return dn.includes(t)?t:"fling"}mount(){let t={};try{t=JSON.parse(this.str("options","{}"))||{}}catch{}const e=this.flag("self")?this:this.firstElementChild||this,s=this.str("effect","pulse");this.onCleanup(fn(this,this.gesture,(i,a)=>{Pa(e,s,t,a).catch(()=>{})},{velocity:this.num("velocity",.8),angle:this.num("angle",30),duration:this.num("duration",650)}))}},{id:"usa-gesture-fx",text:"usa-gesture-fx{display:inline-block;touch-action:none;user-select:none}"})}const gn=new WeakMap;function bn(t,e){const s=e??"true"!==t.getAttribute("aria-pressed");return t.setAttribute("aria-pressed",String(s)),s}function yn(t,e,s){return gn.has(t)||gn.set(t,t.innerHTML),t.setAttribute("aria-live","polite"),t.textContent=e,new Promise(e=>setTimeout(()=>{t.innerHTML=gn.get(t),gn.delete(t),t.removeAttribute("aria-live"),e()},s))}function vn(t,e,s){const i=t.querySelector("[data-count]")||t,a=(Number(i.dataset.count??(i.textContent||"").replace(/[^\d.-]/g,""))||0)+e;return i.dataset.count=String(a),i.textContent=String(a),s?.animate(i,[{transform:`translateY(${e>0?60:-60}%)`,opacity:0},{transform:"none",opacity:1}],{duration:260,easing:"cubic-bezier(.2,1.4,.4,1)"}),a}const xn=(t,e,s=1.25,i=380)=>e.animate(t,[{transform:"scale(1)"},{transform:`scale(${s})`,offset:.4},{transform:"scale(1)"}],{duration:i,easing:"cubic-bezier(.2,1.4,.4,1)"});function wn(t,e,s,i,a=6,r=!1){const{x:n,y:o}=mr(t,e);return xr(Array.from({length:a},(t,l)=>{const c=r?-Math.PI/2+vr(-.6,.6):l/a*Math.PI*2,u=vr(28,56);return gr(n-7,o-7,`font-size:14px;line-height:1;color:${i}`,e,[{transform:"translate(0,0) scale(.4)",opacity:1},{transform:`translate(${Math.cos(c)*u}px,${Math.sin(c)*u}px) scale(1)`,opacity:0}],{duration:vr(500,750),easing:"cubic-bezier(.2,.8,.3,1)"},s)}))}const kn=(t,e,s,i)=>({name:t,kind:"click",description:e,defaults:s,run:i}),_n=(t,e,s,i)=>({name:t,kind:"attention",description:e,defaults:s,run:i}),An=[kn("copy-success",'Copies `text` (or `data-copy` / the target of `for`) to the clipboard and swaps the label to "Copied ✓".',{text:"",label:"Copied ✓",ms:1500},(t,e,s)=>{const i=t.getAttribute("for")?document.getElementById(t.getAttribute("for")):null,a=e.text||t.dataset.copy||i?.value||i?.textContent||"";return navigator.clipboard?.writeText(a).catch(()=>{}),xn(t,s,1.08),yn(t,e.label,e.ms)}),kn("toggle-morph","Toggles `aria-pressed` with a squash-and-stretch morph.",{},(t,e,s)=>{const i=bn(t);return s.animate(t,[{transform:"scale(1,1)"},{transform:`scale(${i?1.15:.85},${i?.85:1.15})`,offset:.35},{transform:"scale(1,1)"}],{duration:360,easing:"ease-out"})}),kn("password-reveal","Shows / hides the password input (`for` id, or the previous input) with an eye blink.",{show:"Hide password",hide:"Show password"},(t,e,s)=>{const i=t.getAttribute("for")?document.getElementById(t.getAttribute("for")):t.previousElementSibling;if(!i||!("type"in i))return;const a="password"===i.type;return i.type=a?"text":"password",bn(t,a),t.setAttribute("aria-label",a?e.show:e.hide),s.animate(t,[{transform:"scaleY(1)"},{transform:"scaleY(.1)",offset:.5},{transform:"scaleY(1)"}],{duration:240,easing:"ease-in-out"})}),kn("favorite-star","Toggles a favourite: the star pops and throws little stars (`color`).",{color:"#facc15"},(t,e,s)=>{const i=bn(t);return Promise.all([xn(t,s,i?1.35:.85)?.finished,i?wn(t,s,"★",e.color):null])}),kn("like-heart","Toggles a like: the heart beats and hearts float up (`color`).",{color:"#ff5c8a"},(t,e,s)=>{const i=bn(t);return Promise.all([xn(t,s,i?1.3:.9)?.finished,i?wn(t,s,"♥",e.color,5,!0):null])}),kn("bookmark-flip","Toggles a bookmark with a 3D flip.",{},(t,e,s)=>(bn(t),s.animate(t,[{transform:"perspective(400px) rotateY(0)"},{transform:"perspective(400px) rotateY(180deg)"},{transform:"perspective(400px) rotateY(360deg)"}],{duration:520,easing:"ease-in-out"}))),kn("download-progress",'Fills a progress bar over `duration` ms, then shows "Done ✓" (`aria-busy` while running; fires `usa-done`).',{duration:1600,label:"Done ✓",color:"#34d399"},(t,e,s)=>{if("true"===t.getAttribute("aria-busy"))return;t.setAttribute("aria-busy","true");const[i,a]=br(t,`background:${e.color}55;transform-origin:left;transform:scaleX(0)`),r=s.animate(i,[{transform:"scaleX(0)"},{transform:"scaleX(1)"}],{duration:e.duration,easing:"linear",fill:"forwards"});return(r?r.finished.catch(()=>{}):Promise.resolve()).then(()=>(a(),t.removeAttribute("aria-busy"),t.dispatchEvent(new CustomEvent("usa-done",{bubbles:!0})),yn(t,e.label,1400)))}),kn("submit-loading",'Shows "Sending…" with pulsing dots for `duration` ms, then "Sent ✓" (`aria-busy`, `usa-done`).',{duration:1200,loading:"Sending…",label:"Sent ✓"},(t,e,s)=>{if("true"===t.getAttribute("aria-busy"))return;t.setAttribute("aria-busy","true");const i=yn(t,e.loading,e.duration),a=s.animate(t,[{opacity:1},{opacity:.55},{opacity:1}],{duration:600,iterations:Math.max(1,Math.round(e.duration/600))});return i.then(()=>(a?.cancel(),t.removeAttribute("aria-busy"),t.dispatchEvent(new CustomEvent("usa-done",{bubbles:!0})),yn(t,e.label,1400)))}),kn("send-plane","A paper plane ✈ takes off from the button.",{color:"#22d3ee"},(t,e,s)=>{const i=t.getBoundingClientRect();return xn(t,s,.92,200),gr(i.left+i.width/2-8,i.top+i.height/2-8,`font-size:16px;color:${e.color}`,s,[{transform:"translate(0,0) rotate(0)",opacity:1},{transform:"translate(40px,-10px) rotate(-10deg)",opacity:1,offset:.4},{transform:"translate(160px,-90px) rotate(-25deg)",opacity:0}],{duration:800,easing:"ease-in"},"✈")?.finished}),kn("add-to-cart",'Bumps `[data-count]` by one and floats a "+1" (`text`).',{text:"+1",color:"#34d399"},(t,e,s)=>{vn(t,1,s);const{x:i,y:a}=mr(t,s);return gr(i-10,a-10,`font:700 14px system-ui;color:${e.color}`,s,[{transform:"translateY(0)",opacity:1},{transform:"translateY(-40px)",opacity:0}],{duration:700,easing:"ease-out"},e.text)?.finished}),kn("counter-bump","Adds `step` to `[data-count]` with a rolling number.",{step:1},(t,e,s)=>{vn(t,Number(e.step)||1,s)}),kn("upvote","Toggles an upvote: the arrow nudges up and `[data-count]` ±1.",{},(t,e,s)=>{const i=bn(t);return vn(t,i?1:-1,s),s.animate(t,[{transform:"translateY(0)"},{transform:`translateY(${i?-6:4}px)`,offset:.4},{transform:"translateY(0)"}],{duration:320,easing:"cubic-bezier(.2,1.4,.4,1)"})}),kn("clap","Counts claps in `[data-count]` with a 👏 burst on every press.",{},(t,e,s)=>(vn(t,1,s),Promise.all([xn(t,s,1.15,240)?.finished,wn(t,s,"👏","inherit",3,!0)]))),kn("emoji-react","Pops one `emoji` up from the pointer (reaction button).",{emoji:"🎉"},(t,e,s)=>wn(t,s,e.emoji,"inherit",1,!0)),kn("refresh-spin","Spins the icon one turn (`turns`).",{turns:1},(t,e,s)=>s.animate(t,[{transform:"rotate(0)"},{transform:`rotate(${360*e.turns}deg)`}],{duration:600*e.turns,easing:"cubic-bezier(.4,0,.2,1)"})),kn("trash-shake","Shakes, then drops and fades (`remove: true` removes the element afterwards).",{remove:!1},(t,e,s)=>{const i=s.animate(t,[{transform:"none",opacity:1},{transform:"rotate(-6deg)",offset:.15},{transform:"rotate(6deg)",offset:.3},{transform:"rotate(0)",offset:.45,opacity:1},{transform:"translateY(30px) scale(.8)",opacity:0}],{duration:650,easing:"ease-in",fill:"forwards"}),a=()=>e.remove?t.remove():i?.cancel();return i?i.finished.then(a,a):void a()}),kn("check-toggle","Toggles a check mark (`aria-checked` for role=checkbox, else `aria-pressed`) that scales in.",{},(t,e,s)=>{const i="checkbox"===t.getAttribute("role")?"aria-checked":"aria-pressed",a="true"!==t.getAttribute(i);return t.setAttribute(i,String(a)),s.animate(t,a?[{transform:"scale(.6)"},{transform:"scale(1.15)",offset:.6},{transform:"scale(1)"}]:[{transform:"scale(1)"},{transform:"scale(.85)"},{transform:"scale(1)"}],{duration:280,easing:"ease-out"})}),_n("input-shake","Shakes an invalid field side to side and sets `aria-invalid` (`color` outline flash).",{color:"#ff5c8a"},(t,e,s)=>{t.setAttribute("aria-invalid","true");const i=t.style.outline;return t.style.outline=`2px solid ${e.color}`,setTimeout(()=>t.style.outline=i,900),s.animate(t,[0,-8,8,-6,6,-3,0].map(t=>({transform:`translateX(${t}px)`})),{duration:420,easing:"ease-out"})}),_n("error-flash","Flashes the element red once (no more than one flash per call).",{color:"#ff5c8a"},(t,e,s)=>s.animate(t,[{boxShadow:`0 0 0 0 ${e.color}00`},{boxShadow:`0 0 0 4px ${e.color}`,offset:.3},{boxShadow:`0 0 0 0 ${e.color}00`}],{duration:700})),_n("success-check","A green ✓ badge pops over the element and fades.",{color:"#34d399"},(t,e,s)=>{const[i,a]=br(t,`display:grid;place-items:center;font:700 22px system-ui;color:#fff;background:${e.color}d0`);i.textContent="✓";const r=s.animate(i,[{opacity:0,transform:"scale(.6)"},{opacity:1,transform:"scale(1)",offset:.3},{opacity:1,offset:.75},{opacity:0}],{duration:1100,easing:"ease-out"});return r?r.finished.then(a,a):void setTimeout(a,900)}),_n("nudge-hint",'A small sideways nudge that says "try me" (`distance`).',{distance:6},(t,e,s)=>s.animate(t,[0,e.distance,0,e.distance/2,0].map(t=>({transform:`translateX(${t}px)`})),{duration:700,easing:"ease-in-out"})),_n("focus-pulse","A ring pulses around the element to draw focus to it (`color`).",{color:"#7c5cff"},(t,e,s)=>s.animate(t,[{boxShadow:`0 0 0 0 ${e.color}aa`},{boxShadow:`0 0 0 12px ${e.color}00`}],{duration:900,iterations:2,easing:"ease-out"})),_n("notify-badge","Bumps the badge count (`[data-count]`, `step`) with a pop — for new notifications.",{step:1},(t,e,s)=>(vn(t,Number(e.step)||1,s),xn(t,s,1.3,320)))],Mn=["enter","hover","click","attention","background"],En=(t,e,s,i,a)=>({enter:{effect:t},hover:{effect:e},click:{effect:s},attention:{effect:i},background:{effect:a}}),Sn={neon:{name:"neon",vars:{bg:"#07070c",fg:"#e8e8ff",accent:"#22d3ee","accent-2":"#ff2bd6",surface:"#11111c",border:"1px solid #22d3ee",radius:"10px",shadow:"0 0 18px #22d3ee66, inset 0 0 12px #ff2bd622",font:"ui-monospace, SFMono-Regular, Menlo, monospace"},motion:{duration:{fast:120,normal:220},easing:{standard:"cubic-bezier(0.2, 0, 0, 1)"}},presets:En("fade-up","neon-flicker","shockwave","neon-flicker","starfield")},paper:{name:"paper",vars:{bg:"#f6f1e7",fg:"#2b2721",accent:"#c2410c","accent-2":"#0f766e",surface:"#fffdf8",border:"1px solid #e3dccd",radius:"4px",shadow:"0 1px 0 #0000000d, 0 10px 24px -14px #00000040",font:'Georgia, "Times New Roman", serif'},motion:{duration:{fast:200,normal:380,slow:700},easing:{standard:"cubic-bezier(0, 0, 0, 1)"}},presets:En("paper-fold","wiggle","ink-splash","nudge-hint","contours")},glass:{name:"glass",vars:{bg:"linear-gradient(135deg, #1e1b4b, #0e7490)",fg:"#f8fafc",accent:"#a5f3fc","accent-2":"#c4b5fd",surface:"#ffffff1f",border:"1px solid #ffffff40",radius:"18px",shadow:"0 8px 32px #0000003d",font:'system-ui, -apple-system, "Segoe UI", sans-serif'},motion:{duration:{normal:320},easing:{standard:"cubic-bezier(0.22, 1, 0.36, 1)"}},presets:En("blur","glass-shine","ripple","focus-pulse","mesh-gradient")},retro:{name:"retro",vars:{bg:"#1d1135",fg:"#ffe9a8",accent:"#ff6b35","accent-2":"#2ec4b6",surface:"#2a1b4d",border:"3px solid #ffe9a8",radius:"0",shadow:"4px 4px 0 #ff6b35",font:'"Courier New", ui-monospace, monospace'},motion:{duration:{normal:300},easing:{standard:"steps(6, end)"}},presets:En("clip-up","rubber-band","star-burst","tada","retro-scanlines")},brutalist:{name:"brutalist",vars:{bg:"#ffffff",fg:"#000000",accent:"#ff3b00","accent-2":"#0047ff",surface:"#fff200",border:"3px solid #000000",radius:"0",shadow:"6px 6px 0 #000000",font:'"Arial Black", Arial, sans-serif'},motion:{duration:{fast:80,normal:160},easing:{standard:"linear"}},presets:En("drop-bounce","jelly","brutal-shift","shake","voronoi")}},Cn=Object.keys(Sn),$n=t=>{const e="string"==typeof t?Sn[t]:t;if(!e)throw new Error(`[motionary] unknown theme "${String(t)}" — ${Cn.join(", ")}`);return e};function Tn(t){const e=$n(t),s={};for(const[t,i]of Object.entries(e.vars))s[`--usa-theme-${t}`]=i;return{...s,...ot(rt(e.motion))}}function zn(t,e){const s=$n(t),i=e||document.documentElement;p("usa-theme","[data-usa-theme]{background:var(--usa-theme-bg);color:var(--usa-theme-fg);font-family:var(--usa-theme-font)}\n[data-usa-theme] .usa-surface{background:var(--usa-theme-surface);border:var(--usa-theme-border);border-radius:var(--usa-theme-radius);box-shadow:var(--usa-theme-shadow)}\n[data-usa-theme] .usa-accent{color:var(--usa-theme-accent)}\n[data-usa-theme=glass] .usa-surface{-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}");const a=i.getAttribute("data-usa-theme");i.setAttribute("data-usa-theme",s.name);const r=Object.entries(s.vars).map(([t,e])=>[`--usa-theme-${t}`,e]),n=r.map(([t])=>[t,i.style.getPropertyValue(t)]);for(const[t,e]of r)i.style.setProperty(t,e);let o;if(i===document.documentElement)o=ut(s.motion,i);else{const t=Object.entries(ot(rt(s.motion))),e=t.map(([t])=>[t,i.style.getPropertyValue(t)]);for(const[e,s]of t)i.style.setProperty(e,s);o=()=>e.forEach(([t,e])=>e?i.style.setProperty(t,e):i.style.removeProperty(t))}return()=>{o(),n.forEach(([t,e])=>e?i.style.setProperty(t,e):i.style.removeProperty(t)),null===a?i.removeAttribute("data-usa-theme"):i.setAttribute("data-usa-theme",a)}}function Pn(t,e){return $n(t).presets[e]}const Fn=[{name:"neon-flicker",kind:"attention",description:"A neon tube flickering on — dims (never blacks out) twice, well under 3 flashes per second.",defaults:{color:"#22d3ee"},run:(t,e,s)=>s.animate(t,[{opacity:1,filter:"none"},{opacity:.55,offset:.2},{opacity:1,filter:`drop-shadow(0 0 6px ${e.color})`,offset:.35},{opacity:.7,offset:.6},{opacity:1,filter:`drop-shadow(0 0 10px ${e.color})`}],{duration:900,easing:"linear"})},{name:"paper-fold",kind:"enter",description:"Unfolds like a sheet of paper hinged at the top.",defaults:{duration:600},run:(t,e,s)=>s.animate(t,[{transform:"perspective(800px) rotateX(-85deg)",transformOrigin:"top",opacity:0},{transform:"perspective(800px) rotateX(12deg)",transformOrigin:"top",opacity:1,offset:.7},{transform:"perspective(800px) rotateX(0)",transformOrigin:"top",opacity:1}],{duration:e.duration,easing:"ease-out",fill:"backwards"})},{name:"glass-shine",kind:"hover",description:"A bright diagonal shine sweeps across frosted glass.",defaults:{duration:700},run:(t,e,s)=>{const[i,a]=br(t,"overflow:hidden;background:linear-gradient(105deg,transparent 35%,#ffffff8c 50%,transparent 65%);background-size:250% 100%;background-position:120% 0"),r=s.animate(i,[{backgroundPosition:"120% 0"},{backgroundPosition:"-20% 0"}],{duration:e.duration,easing:"ease-in-out"});return r?r.finished.then(a,a):void a()}},{name:"retro-scanlines",kind:"background",description:"CRT scanlines with a slow roll (static lines under reduced motion; persistent).",reduced:"run",defaults:{opacity:.18},run:(t,e,s)=>{const[i,a]=br(t,`opacity:${e.opacity};background:repeating-linear-gradient(0deg,#000 0 1px,transparent 1px 3px);mix-blend-mode:multiply`),r=s.reduced?null:s.animate(i,[{backgroundPosition:"0 0"},{backgroundPosition:"0 30px"}],{duration:2400,iterations:1/0,easing:"linear"});return()=>{r?.cancel(),a()}}},{name:"brutal-shift",kind:"click",description:"Presses into its hard drop shadow and springs back (brutalist buttons).",defaults:{offset:6},run:(t,e,s)=>s.animate(t,[{transform:"translate(0,0)"},{transform:`translate(${e.offset}px,${e.offset}px)`,boxShadow:"0 0 0 #000",offset:.3},{transform:"translate(0,0)"}],{duration:260,easing:"ease-out"})}];function Ln(t="usa-theme"){return b(t,t=>class extends t{static get observedAttributes(){return["name"]}get theme(){const t=this.str("name","neon");return Sn[t]?t:"neon"}mount(){this.onCleanup(zn(this.theme,this)),this.querySelectorAll("[data-theme-fx]").forEach(t=>{const e=t.dataset.themeFx||"click";if(!Mn.includes(e))return;const s=Pn(this.theme,e),i="attention"===e?"click":"background"===e?"load":e;try{this.onCleanup(Fa(t,s.effect,{...s.options||{},trigger:i}))}catch{}})}},{id:"usa-theme-el",text:"usa-theme{display:block}"})}const qn="use-scroll-animate/animation";function Rn(t){const e="string"==typeof t?JSON.parse(t):t;if(!e||"object"!=typeof e)throw new Error("[motionary] animation: expected an object");let s;if("use-scroll-animate/playground"===e.format)s=function(t){try{const e=t.replace(/-/g,"+").replace(/_/g,"/"),s=decodeURIComponent(escape(atob(e)));return(JSON.parse(s).t||[]).map(([t,e,s,i],a)=>({target:`:scope > :nth-child(${a+1})`,preset:t,start:e,duration:s,label:i}))}catch{return[]}}(String(e.state||""));else{if(!Array.isArray(e.tracks))throw new Error('[motionary] animation: missing "tracks"');s=e.tracks}if(e.format&&e.format!==qn&&"use-scroll-animate/playground"!==e.format)throw new Error(`[motionary] animation: unknown format "${e.format}"`);if(e.version&&e.version>1&&e.format===qn)throw new Error(`[motionary] animation: version ${e.version} needs a newer motionary`);const i=s.filter(t=>t&&(t.effect||t.preset||Array.isArray(t.keyframes))).map(t=>({...t,target:t.target||":scope",start:Math.max(0,Number(t.start)||0),duration:t.effect?0:Math.max(1,Number(t.duration)||600)})),a=i.reduce((t,e)=>Math.max(t,e.start+e.duration),0);return{tracks:i,duration:Math.max(a,Number(e.duration)||0),loop:!!e.loop,name:String(e.name||"animation")}}const In=(t,e)=>{if(":scope"===e)return[t];try{return Array.from(t.querySelectorAll(e))}catch{return[]}};function Nn(t,e,s={}){const i=Rn(e),a=s.loop??i.loop,r=[],n=[];for(const e of i.tracks){const s=In(t,e.target);if(e.effect)n.push({els:s,t:e,fired:!1});else{const t=e.keyframes||gt[e.preset]||gt.fade;for(const i of s){if("function"!=typeof i.animate)continue;const s=i.animate(t,{duration:e.duration,delay:e.start,easing:e.easing||"cubic-bezier(0.22, 1, 0.36, 1)",fill:"both"});s.pause(),s.currentTime=0,r.push(s)}}}let o,l=0,c=!1,u=0,h=0,p=new Promise(t=>o=t);const f=t=>{l=Math.min(i.duration,Math.max(0,t));for(const t of r)t.currentTime=l},m=()=>{if(!d())for(const t of n)if(!t.fired&&l>=t.t.start){t.fired=!0;for(const e of t.els)Pa(e,t.t.effect,t.t.options||{}).catch(()=>{})}},g=()=>{o(),s.onFinish?.(),p=new Promise(t=>o=t)},b=t=>{if(u=0,c){if(f(l+(t-h)*y.rate),h=t,m(),l>=i.duration){if(!a)return c=!1,void g();n.forEach(t=>t.fired=!1),f(0)}u=requestAnimationFrame(b)}},y={get duration(){return i.duration},get currentTime(){return l},get playing(){return c},rate:s.rate??1,get finished(){return p},play(){if(d())return f(i.duration),n.forEach(t=>t.fired=!0),void g();c||(l>=i.duration&&(n.forEach(t=>t.fired=!1),f(0)),c=!0,h=performance.now(),m(),u=requestAnimationFrame(b))},pause(){c=!1,cancelAnimationFrame(u),u=0},seek(t){f(t),n.forEach(t=>t.fired=t.t.start<l)},destroy(){y.pause(),r.forEach(t=>t.cancel())}};return s.autoplay&&y.play(),y}function Yn(t="usa-player"){return b(t,t=>class extends t{constructor(){super(...arguments),this.player=null,this.json=null}static get observedAttributes(){return["src","trigger","loop","rate"]}load(t){this.json=t,this.start()}play(){this.player?.play()}pause(){this.player?.pause()}seek(t){this.player?.seek(t)}start(){if(this.player?.destroy(),this.player=null,!this.json)return;try{this.player=Nn(this,this.json,{loop:!!this.hasAttribute("loop")||void 0,rate:this.num("rate",1),onFinish:()=>this.dispatchEvent(new CustomEvent("usa-player-finish",{bubbles:!0}))}),this.removeAttribute("data-error")}catch(t){return void this.setAttribute("data-error",String(t.message||t))}const t=this.player;this.dispatchEvent(new CustomEvent("usa-player-ready",{detail:{duration:t.duration},bubbles:!0}));const e=this.str("trigger","view");if("load"===e)t.play();else if("view"===e)this.inView(e=>e&&t.play(),{threshold:.25});else if("click"===e)this.listen(this,"click",()=>t.playing?t.pause():t.play());else if("scroll"===e){let e=0;const s=()=>{e=0,t.seek(Ir(this)*t.duration)},i=()=>{e||(e=requestAnimationFrame(s))};this.listen(window,"scroll",i,{passive:!0}),this.listen(window,"resize",i),this.onCleanup(()=>cancelAnimationFrame(e)),s()}this.flag("controls")&&this.mountControls(t)}mountControls(t){const e=document.createElement("button");e.type="button",e.setAttribute("data-player-toggle",""),e.textContent="▶︎ / ❚❚",e.setAttribute("aria-label","Play / pause animation"),this.listen(e,"click",s=>{s.stopPropagation(),t.playing?t.pause():t.play(),e.setAttribute("aria-pressed",String(t.playing))}),this.append(e),this.onCleanup(()=>e.remove())}changed(t){"src"===t&&(this.json=null),super.changed(t)}mount(){this.onCleanup(()=>{this.player?.destroy(),this.player=null});const t=this.querySelector('script[type="application/json"]'),e=this.str("src");t&&!this.json&&(this.json=t.textContent||""),!e||this.json?this.start():fetch(e).then(t=>t.ok?t.text():Promise.reject(new Error(`HTTP ${t.status}`))).then(t=>this.isConnected&&this.load(t)).catch(t=>this.setAttribute("data-error",String(t.message||t)))}},{id:"usa-player",text:"usa-player{display:block;position:relative}usa-player>script{display:none}usa-player [data-player-toggle]{position:absolute;right:8px;bottom:8px}"})}const Bn={"cards-click":[...wr,...kr],physics:Sr,page:Lr,generative:Hr,audio:nn,cursor:un,micro:An,themes:Fn};function On(){Yr(),on(),mn(),Ln(),Yn()}function Xn(){Na();for(const t of Object.values(Bn))$a(t)}hr(),Xn(),On(),t.ALL_TAGS=Qa,t.AMBIENT_EFFECTS=["particles","snow","stars","noise","gradient"],t.ANIMATION_FORMAT=qn,t.ANIM_ICONS=$i,t.AUDIO_FX=nn,t.BRIDGE_PROTOCOL_VERSION=1,t.BUILTIN_EFFECTS=Ia,t.BUTTON_DEFORMS=["squash","wobble","gooey","dent"],t.CARD_EFFECTS=["flip","holo","glass","border-glow","conic-border","lift","spotlight","sheen","parallax-layers","expand"],t.CARD_FX=wr,t.CLICK_EFFECTS=["ripple","burst","confetti","squish","press-spring","shake"],t.CLICK_FX=kr,t.COMPONENT_CATEGORIES=Ba,t.CURSOR_FX=un,t.CURSOR_MODES=Rs,t.EFFECT_KINDS=Aa,t.EFFECT_PACKS=Bn,t.EFFECT_TRIGGERS=Ma,t.GENERATIVE_FX=Hr,t.GESTURES=dn,t.GL_FALLBACKS=Ni,t.JOINING_SCRIPT=xt,t.LIVE_REGION_IDS=Ua,t.MASK_SHAPES=Si,t.MICRO_FX=An,t.MORPH_ICONS=ds,t.MOTION_SCALE=s,t.MOTION_SENSITIVITY=Da,t.MOTION_SENSITIVITY_LEVELS=e,t.MOTION_TOKENS=st,t.PACKS=ya,t.PACK_PRIMITIVES=xa,t.PAGE_EFFECTS=["fade","slide","slide-left","slide-right","slide-up","circle","blinds","pixel","zoom"],t.PAGE_FX=Lr,t.PARTICLE_PRESETS=["snow","fireflies","stars","bokeh","rain"],t.PHYSICS_FX=Sr,t.POST_EFFECTS=Ri,t.REVEAL_EFFECTS=V,t.SENSITIVITY_CSS=ja,t.SHADERS=Pi,t.SPINNER_VARIANTS=Gt,t.SPRING_EFFECTS=["bounce-in","pop","drop","jelly","rubber-band"],t.SPRING_PRESETS=Ae,t.STATIC_ALTERNATIVES={reveal:"Content visible in place; progress bars show the current value.",text:"Full final text (screen readers always get a plain copy).",interaction:"Normal hover / focus styles; no tilt, magnet or ripple.",feedback:"Spinners become a static busy indicator; progress shows its value; toasts appear without sliding.",background:"A still frame of the background (gradient / pattern); particles and marquees stop.",transitions:"Dialogs, accordions and views switch instantly.",physics:"Values jump to their target; drag still works, without inertia.",cards:"Cards are shown flat and fully readable; stacks become lists.",click:"Clicks work and states are announced; no bursts, confetti or deformation.",ui:"Tabs, drawers, sheets and popovers open instantly with focus management intact.",page:"Page transitions are instant; cursors and ambient layers are hidden.",timeline:"Every step is shown at its final state.",gesture:"Buttons / keys provide the same actions as swipes and pinches.",svg:"Drawings and icons are shown complete.",webgl:"A static poster image or CSS gradient instead of the shader.",depth:"Flat, front-facing layout.",layout:"Items reflow instantly.",packs:"Roles are styled but not animated.",fx:"Effects are skipped or reduced to a short fade; the content is unchanged."},t.STORY_TEMPLATES=qr,t.THEMES=Sn,t.THEME_FX=Fn,t.THEME_NAMES=Cn,t.THEME_ROLES=Mn,t.TIMELINE_PRESETS=gt,t.VARIANTS=["minimal","neon","glass","brutalist","fluent","material"],t.activeAnimations=L,t.adaptKeyframes=o,t.adoptVariants=me,t.angleDelta=pn,t.animateWithMotion=m,t.animationBudget=R,t.announce=function(t,e={}){const{politeness:s="polite",dedupe:i=500}=e,a=Date.now();if(!t||t===Ga&&a-Ka<i)return!1;Ga=t,Ka=a;const r=Wa(s);return!!r&&(r.textContent="",r.textContent=t,!0)},t.applyMotionTokens=ut,t.applyNativeSettings=ur,t.applyPack=va,t.applyTheme=zn,t.auditMotionA11y=function(t){const e=[],s=(t,s,i,a)=>e.push({rule:t,level:s,element:i,message:a}),i=t;i.querySelectorAll('[aria-hidden="true"]').forEach(t=>{(t.matches(Ja)?[t]:Array.from(t.querySelectorAll(Ja))).filter(t=>!t.closest("[inert]")).forEach(t=>s("aria-hidden-focusable","error",t,`focusable <${t.tagName.toLowerCase()}> inside aria-hidden`))}),i.querySelectorAll("[role]").forEach(t=>{const e=t.getAttribute("role");Za.includes(e)&&!function(t){const e=t.getAttribute("aria-label");if(e)return e;const s=t.getAttribute("aria-labelledby");return s?s.split(/\s+/).map(e=>t.ownerDocument.getElementById(e)?.textContent||"").join(" ").trim():(t.textContent||t.getAttribute("title")||"").trim()}(t)&&s("role-name","error",t,`role="${e}" has no accessible name`),"slider"!==e||t.hasAttribute("aria-valuenow")||s("range-value","error",t,"slider without aria-valuenow")}),i.querySelectorAll("img:not([alt])").forEach(t=>s("img-alt","error",t,"<img> without alt")),i.querySelectorAll('[aria-live="assertive"]').forEach(t=>{"alert"!==t.getAttribute("role")&&s("assertive-live","warning",t,'assertive live region outside role="alert"')});const a=t.ownerDocument||t,r="function"==typeof t.getAnimations?t.getAnimations({subtree:!0}):[];return a&&(a.querySelector("usa-motion-switch, [data-usa-pause]")||a.documentElement.hasAttribute("data-usa-sensitivity"))||r.forEach(t=>{try{if(t.effect?.getComputedTiming().iterations===1/0){const e=t.effect.target;e&&s("infinite-no-control","warning",e,"endless animation and no motion control on the page")}}catch{}}),{errors:e.filter(t=>"error"===t.level),warnings:e.filter(t=>"warning"===t.level)}},t.autoAnimate=na,t.autoDegrade=function(t={}){const{minFps:e=45,maxActive:s=40,sample:i=1e3,patience:r=2,recovery:n=3,onChange:o}=t;let c=0,u=0,d=0,h=0,p=null;const f={degraded:!1,fps:60,active:0,reason:""},m=(t,e)=>{t!==f.degraded&&(f.degraded=t,f.reason=e,t?(p={intensity:l(),budget:R()},a({motionIntensity:"low"}),q(Math.max(4,Math.floor(s/2)))):p&&(a({motionIntensity:p.intensity}),q(p.budget),p=null),o?.({...f}),"undefined"!=typeof document&&document.dispatchEvent(new CustomEvent("usa:degrade",{detail:{...f}})))},g=z((t,a)=>{if(c++,u+=Math.min(a,250),u<i)return;f.fps=Math.round(1e3*c/u),f.active=L(),c=0,u=0;const o=f.fps<e?"fps":f.active>s?"count":"";o?(h=0,++d>=r&&m(!0,o)):(d=0,++h>=n&&m(!1,""))});return()=>{g(),m(!1,"")}},t.baselineReport=Oa,t.bindBeat=function(t,e,s={}){const{threshold:i,cooldown:a,history:r,floor:n,...o}=s;return sn(()=>{d()||Pa(t,e,o).catch(()=>{})},{threshold:i,cooldown:a,history:r,floor:n})},t.bindEffect=Fa,t.bindGesture=fn,t.bounceKeyframes=Mr,t.bumpCount=vn,t.canvasBackground=Xr,t.categoryOf=er,t.configureComponents=a,t.connectNativeShell=function(t={}){const e=ar(),s=t.channel||"UsaBridge",i=rr(s);if(!e)return{host:i,disconnect:()=>{}};const a=e=>{const s=cr(e);s&&(ur(s,t.root),t.onSettings?.(s,i))},r=t=>a(t.data);e.chrome?.webview?.addEventListener?.("message",r),e.addEventListener?.("message",r);const n=e.usaNative;return e.usaNative={apply:t=>a({...t,type:"usa:settings"}),version:1,host:i},nr({type:"usa:ready",version:1},s),nr({type:"usa:request-settings"},s),{host:i,disconnect:()=>{e.chrome?.webview?.removeEventListener?.("message",r),e.removeEventListener?.("message",r),e.usaNative=n}}},t.countUp=ma,t.createBeatDetector=Kr,t.createPlayer=Nn,t.createSpring=Pe,t.defineAccordion=xe,t.defineAcrylic=le,t.defineAmbient=js,t.defineAnimIcon=Ti,t.defineAudio=on,t.defineAurora=ae,t.defineAutoAnimate=ca,t.defineAutoSkeleton=Vs,t.defineAvatarStack=Ls,t.defineBackToTop=Ds,t.defineBackgroundComponents=be,t.defineBadge=Fs,t.defineBlobs=he,t.defineBottomSheet=Es,t.defineButton=cs,t.defineCard=He,t.defineCardComponents=Je,t.defineCardStack=We,t.defineCarousel3d=Ke,t.defineCheck=se,t.defineCheckbox=bs,t.defineClick=os,t.defineClickComponents=ys,t.defineComponents=hr,t.defineCounter=Pt,t.defineCube=Zi,t.defineCursor=Is,t.defineDepth=ia,t.defineDepthComponents=aa,t.defineDialog=ve,t.defineDistort=Hi,t.defineDotNetwork=fe,t.defineDoubleTap=gs,t.defineDraggable=Oe,t.defineDraw=Mi,t.defineDrawer=Ms,t.defineEffectElements=On,t.defineFab=Cs,t.defineFeedbackComponents=ie,t.defineFullpage=Ys,t.defineFx=La,t.defineFxComponents=Ya,t.defineGestureComponents=bi,t.defineGestureFx=mn,t.defineGlitch=Nt,t.defineGradientText=Yt,t.defineGrain=ne,t.defineGridGlow=de,t.defineHandwriting=Bt,t.defineHold=ms,t.defineIconMorph=ps,t.defineInteractionComponents=Wt,t.defineLayoutComponents=da,t.defineLike=fs,t.defineLiquid=Vi,t.defineLoadingBar=Bs,t.defineMagnetic=jt,t.defineMarquee=oe,t.defineMaskReveal=Ci,t.defineMasonry=ua,t.defineMorph=Ei,t.defineMotionSwitch=ti,t.defineNavbar=$s,t.defineOverscroll=Xe,t.definePack=wa,t.definePacksComponents=ka,t.definePageComponents=oi,t.defineParticles=re,t.definePhysicsComponents=De,t.definePinchZoom=gi,t.definePlayer=Yn,t.definePopover=Ps,t.definePostFx=Ui,t.definePress=Ut,t.defineProgress=Zt,t.definePullRefresh=Ss,t.defineRating=zs,t.defineReveal=G,t.defineRevealComponents=tt,t.defineRipple=Dt,t.defineScramble=Tt,t.defineScrollHighlight=Ot,t.defineScrollProgress=Z,t.defineScrolly=Q,t.defineShader=ji,t.defineShimmerText=Ft,t.defineSkeleton=Jt,t.defineSlider=Ts,t.defineSpinner=Kt,t.defineSplash=Hs,t.defineSplitText=St,t.defineSpotlight=Vt,t.defineSpring=Ye,t.defineStagger=K,t.defineStickyStack=Ge,t.defineStory=Yr,t.defineSvgComponents=zi,t.defineSwipeable=mi,t.defineTabs=ks,t.defineTextComponents=Xt,t.defineTextRotate=Lt,t.defineTheme=Ln,t.defineTilt=Ht,t.defineTimeline=li,t.defineTimelineComponents=ci,t.defineToaster=te,t.defineTransitionComponents=_e,t.defineTypewriter=et,t.defineUiComponents=qs,t.defineViewSwitch=we,t.defineWaterRipple=pe,t.defineWaveText=It,t.defineWebglComponents=Wi,t.detectNativeHost=rr,t.deviceTilt=sa,t.disableAudio=function(){Ur?.stop()},t.drawLines=_i,t.easeOutExpo=zt,t.enableAudio=Gr,t.enableMpaTransitions=function(t="fade",e=450){if("undefined"==typeof document)return;p("page-transitions",ei),p("mpa-transitions",d()?"":"@view-transition{navigation:auto}"),document.documentElement.setAttribute("data-usa-pt",t),ri({duration:e})},t.flingVelocity=hn,t.flip=async function(t,e,s={}){const i=new Map(ke(t).map(t=>[t,t.getBoundingClientRect()]));if(await e(),d())return;const a=ke(t),r=s.duration??420,n=s.easing??O,o=[],l=a.map(t=>t.getBoundingClientRect());a.forEach((t,e)=>{if("function"!=typeof t.animate)return;const a=i.get(t),c=l[e];if(!a)return void(!1!==s.animateEnter&&o.push(t.animate([{opacity:0,transform:"scale(0.9)"},{opacity:1,transform:"none"}],{duration:r,easing:n})));const u=a.left-c.left,d=a.top-c.top,h=c.width?a.width/c.width:1,p=c.height?a.height/c.height:1;Math.abs(u)<.5&&Math.abs(d)<.5&&Math.abs(h-1)<.01&&Math.abs(p-1)<.01||o.push(t.animate([{transformOrigin:"0 0",transform:`translate(${u}px, ${d}px) scale(${h}, ${p})`},{transformOrigin:"0 0",transform:"none"}],{duration:r,easing:n}))}),await Promise.all(o.map(t=>t.finished.catch(()=>{})))},t.flipFrames=ra,t.fluentPreset=function(t={}){if("undefined"==typeof document)return()=>{};const e=t.root||document.documentElement;p("fluent-preset",'.usa-fluent{font-family:"Segoe UI Variable","Segoe UI",system-ui,sans-serif;accent-color:var(--usa-accent,#0067c0)}.usa-fluent-mica body{background:linear-gradient(135deg,color-mix(in srgb,var(--usa-accent,#0067c0) 8%,#f3f3f3),#f3f3f3 60%)}@media (prefers-color-scheme:dark){.usa-fluent-mica body{background:linear-gradient(135deg,color-mix(in srgb,var(--usa-accent,#4cc2ff) 10%,#202020),#202020 60%)}}.usa-fluent :is(.usa-acrylic,[data-acrylic]){background:color-mix(in srgb,var(--usa-surface) 70%,transparent);-webkit-backdrop-filter:blur(30px) saturate(1.25);backdrop-filter:blur(30px) saturate(1.25);border:var(--usa-border);border-radius:var(--usa-radius)}.usa-fluent :is(button,[role="button"],[data-fluent-reveal],.usa-fluent-item){position:relative}.usa-fluent [data-reveal]::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;padding:1px;background:radial-gradient(90px circle at var(--usa-reveal-x) var(--usa-reveal-y),rgb(255 255 255 / 0.55),transparent 70%);-webkit-mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0)}.usa-fluent [data-reveal]{background-image:radial-gradient(120px circle at var(--usa-reveal-x) var(--usa-reveal-y),rgb(255 255 255 / 0.1),transparent 70%)}@media (prefers-reduced-transparency:reduce),(forced-colors:active){.usa-fluent :is(.usa-acrylic,[data-acrylic]){background:var(--usa-surface);-webkit-backdrop-filter:none;backdrop-filter:none}}'),ge("fluent",e),e.classList.add("usa-fluent"),!1!==t.mica&&e.classList.add("usa-fluent-mica");const s=t.selector||'button, [role="button"], a.usa-fluent-item, [data-fluent-reveal], .usa-fluent-item';let i=0,a=null,r=null;const n=()=>{if(i=0,!r)return;const t=r.target?.closest?.(s);if(a&&a!==t&&a.removeAttribute("data-reveal"),a=t,!t)return;const e=t.getBoundingClientRect();t.style.setProperty("--usa-reveal-x",r.clientX-e.left+"px"),t.style.setProperty("--usa-reveal-y",r.clientY-e.top+"px"),t.setAttribute("data-reveal","")},o=t=>{"touch"!==t.pointerType&&(r=t,i||(i=C(n)))};return!1!==t.reveal&&!d()&&document.addEventListener("pointermove",o,{passive:!0}),()=>{document.removeEventListener("pointermove",o),T(i),a?.removeAttribute("data-reveal"),e.classList.remove("usa-fluent","usa-fluent-mica"),ge(null,e)}},t.flyToCart=ga,t.formatCount=Nr,t.fragmentSource=Fi,t.fxLayer=fr,t.gesture=pi,t.getAudio=()=>Ur,t.getEffect=t=>Sa.get(t),t.getMotionIntensity=l,t.getMotionLevel=Zs,t.getMotionSensitivity=r,t.getMotionTokens=function(){return at(it)},t.glFallbackCss=Yi,t.glGovernor=Bi,t.glQuad=qi,t.graphemes=_t,t.haptic=ns,t.hasEffect=t=>Sa.has(t),t.hexRgb=Or,t.importMotionTokens=function(t,e=st){const s={duration:{},easing:{},spring:{}},i=(t,e)=>{if(t&&"object"==typeof t){if((a=t)&&"object"==typeof a&&("$value"in a||"value"in a)){const i=e[e.length-1],a=(t=>String(t.$type??t.type??"").toLowerCase())(t),r=e.slice(0,-1).map(t=>t.toLowerCase()),n=(t=>"$value"in t?t.$value:t.value)(t),o=t=>r.some(e=>t.includes(e));if("duration"===a||!a&&o(["duration","durations"])||"cubicbezier"!==a&&o(["duration","durations"])){const t=lt(n);void 0!==t&&(s.duration[i]=t)}else if("cubicbezier"===a||"easing"===a||o(["easing","easings","ease"])){const t=ct(n);t&&(s.easing[i]=t)}else if("spring"===a||o(["spring","springs"]))n&&"object"==typeof n&&(s.spring[i]={stiffness:Number(n.stiffness??170),damping:Number(n.damping??26),mass:Number(n.mass??1)});else if("transition"===a&&n&&"object"==typeof n){const t=lt(n.duration);void 0!==t&&(s.duration[i]=t);const e=ct(n.timingFunction);e&&(s.easing[i]=e)}return}var a;for(const[s,a]of Object.entries(t))s.startsWith("$")||i(a,[...e,s])}};return i(t,[]),rt(s,e)},t.interpolatePath=xi,t.linearEasing=ze,t.listEffects=function(t){return Array.from(Sa.values()).filter(e=>!t||e.kind===t).sort((t,e)=>t.name.localeCompare(e.name))},t.liveRegion=Wa,t.loadCategoryStyles=ir,t.loadedStyles=()=>Array.from(sr),t.loadingBar=Xs,t.masonryLayout=oa,t.mergeMotionTokens=rt,t.morphPath=hs,t.morphTo=ki,t.motionAllowed=function(t,e=r()){return Da[e].allows.includes(t)},t.motionScale=c,t.motionToken=dt,t.motionTokensToCss=function(t=it,e=":root",s="--usa"){return`${e} {\n${Object.entries(ot(t,s)).map(([t,e])=>` ${t}: ${e};`).join("\n")}\n}\n`},t.motionTokensToJSON=function(t=it){const e=(t,e)=>Object.fromEntries(Object.entries(t).map(([t,s])=>[t,e(s)]));return{motion:{duration:e(t.duration,t=>({$type:"duration",$value:`${t}ms`})),easing:e(t.easing,t=>{const e=/^cubic-bezier\(([^)]+)\)$/.exec(t);return e?{$type:"cubicBezier",$value:e[1].split(",").map(Number)}:{$type:"string",$value:t}}),spring:e(t.spring,t=>({$type:"spring",$value:{...t}}))}}},t.motionTokensToVars=ot,t.motionVar=function(t,e,s,i="--usa"){if("spring"===t){const t=dt("spring",e),a=s||"stiffness";return`var(${i}-spring-${nt(e)}-${a}, ${t?t[a]:""})`}const a="duration"===t?`${dt("duration",e)}ms`:dt("easing",e);return`var(${i}-${t}-${nt(e)}, ${a})`},t.noise2=Br,t.normalizeAnimation=Rn,t.onBeat=sn,t.onDemandStyles=function(t){return N(e=>ir(er(e)||"all",t)),()=>N(null)},t.onFrame=z,t.orientationToTilt=Qi,t.pageTransition=ni,t.parseDuration=lt,t.parseEasing=ct,t.parseNativeSettings=cr,t.pathsCompatible=vi,t.pinchScale=di,t.playEffect=Pa,t.playThemeEffect=function(t,e,s){const i=Pn(s||t.closest("[data-usa-theme]")?.getAttribute("data-usa-theme")||"neon",e);return Pa(t,i.effect,i.options)},t.postFxShader=Ii,t.postToNative=nr,t.prefersReducedMotion=d,t.projectInertia=Fe,t.readScrollProgress=J,t.registerAllEffects=Xn,t.registerAudioEffects=function(){$a(Bn.audio)},t.registerBuiltinEffects=Na,t.registerCardClickEffects=function(){$a(Bn["cards-click"])},t.registerCursorEffects=function(){$a(Bn.cursor)},t.registerEffect=Ca,t.registerEffects=$a,t.registerGenerativeEffects=function(){$a(Bn.generative)},t.registerMicroEffects=function(){$a(Bn.micro),$a(Bn.themes)},t.registerPageEffects=function(){$a(Bn.page)},t.registerPhysicsEffects=function(){$a(Bn.physics)},t.requestOrientationPermission=ea,t.resolveDurationToken=ht,t.resolveEasingToken=pt,t.resolvePosition=bt,t.resolveSpring=Me,t.restoreMotionIntensity=Qs,t.restoreMotionSensitivity=function(){try{const t=localStorage.getItem(Xa);t&&e.includes(t)&&Ha(t)}catch{}return r()},t.revealKeyframes=U,t.rubberBand=qe,t.schedulerStats=function(){return{frames:A.frames,callbacks:A.callbacks,peak:A.peak,pending:x.size,loops:M.size}},t.scrambleFrame=$t,t.scrollToTarget=Ns,t.setAnimationBudget=q,t.setMotionIntensity=function(t,e=!1){Us.includes(t)&&(a({motionIntensity:t}),Ks(t,e))},t.setMotionLevel=Js,t.setMotionSensitivity=Ha,t.setVariant=ge,t.sharedTransition=async function(t,e=document,s={}){if(d()||"undefined"==typeof document)return void await t();const i=()=>new Map(Array.from(e.querySelectorAll("[data-shared]")).map(t=>[t.dataset.shared,t])),a=document;if("function"==typeof a.startViewTransition){const e=t=>t.forEach((t,e)=>t.style.viewTransitionName=`usa-${e.replace(/[^\w-]/g,"_")}`),s=t=>t.forEach(t=>t.style.viewTransitionName=""),r=i();e(r);let n=new Map;const o=a.startViewTransition(async()=>{s(r),await t(),n=i(),e(n)});return await o.finished.catch(()=>{}),void s(n)}const r=new Map(Array.from(i()).map(([t,e])=>[t,e.getBoundingClientRect()]));await t();const n=[];i().forEach((t,e)=>{const i=r.get(e);if(!i||"function"!=typeof t.animate)return;const a=t.getBoundingClientRect();a.width&&a.height&&n.push(t.animate(ra(i,a),{duration:(s.duration??450)*c(),easing:s.easing??Y}).finished.catch(()=>{}))}),await Promise.all(n)},t.smoothScroll=function(t={}){if("undefined"==typeof window||d())return()=>{};const e=t.target||null,s=Math.min(1,Math.max(.02,t.lerp??.12)),i=t.wheelMultiplier??1,a=()=>e?e.scrollTop:window.scrollY;let r=a(),n=r,o=0;const l=()=>{var t;n+=(r-n)*s,Math.abs(r-n)<.5&&(n=r),t=n,e?e.scrollTop=t:window.scrollTo(0,t),o=n===r?0:C(l)},c=t=>{if(t.ctrlKey||t.defaultPrevented)return;o||(r=n=a()),t.preventDefault();const s=1===t.deltaMode?16*t.deltaY:2===t.deltaMode?t.deltaY*(window.innerHeight||800):t.deltaY;r=Math.max(0,Math.min(e?e.scrollHeight-e.clientHeight:document.documentElement.scrollHeight-window.innerHeight,r+s*i)),o||(o=C(l))},u=()=>{o||(r=n=a())},h=e||window;return h.addEventListener("wheel",c,{passive:!1}),h.addEventListener("scroll",u,{passive:!0}),()=>{h.removeEventListener("wheel",c),h.removeEventListener("scroll",u),o&&T(o),o=0}},t.snapTo=Le,t.solveSpring=_r,t.splitOrder=Et,t.splitText=Mt,t.splitTimeline=function(t,e={}){const s=Mt(t,e),i=Array.isArray(e.by)?e.by:String(e.by??"char").split(/[\s,]+/),a=e.unit||(i.includes("char")?"char":i.includes("word")?"word":"line"),r="char"===a?s.chars:"word"===a?s.words:s.lines,n=e.stagger??("char"===a?30:"word"===a?80:140),o=Et(r.length,e.from),l=yt({defaults:{duration:e.duration??500,easing:e.easing}});return r.forEach((t,s)=>l.to(t,e.preset||"fade-up",{at:o[s]*n})),l.seek(0),{split:s,timeline:l}},t.splitWords=At,t.spring=function(t,e,s,i={}){const a=t;if(d()||"function"!=typeof a.animate)return g(a,e[e.length-1]),null;const{easing:r,duration:n}=Te(s);return a.animate(e,{duration:n*c(),easing:r,fill:"both",...i})},t.springEasing=Te,t.springEffectKeyframes=Ie,t.springKeyframes=Ar,t.springSamples=Ce,t.staticAlternative=Va,t.stepSpring=Ee,t.storyProgress=Ir,t.supportsLinearEasing=$e,t.supportsNativeScrub=ft,t.supportsOrientation=ta,t.supportsViewTransitions=ai,t.supportsWebGL=function(){if(void 0!==Li)return Li;try{const t="undefined"!=typeof document?document.createElement("canvas"):null;Li=!(!t||!t.getContext("webgl"))}catch{Li=!1}return Li},t.swapLabel=yn,t.swipeDirection=ui,t.themeCss=function(t,e){const s=$n(t);return`${e||`[data-usa-theme=${s.name}]`}{${Object.entries(Tn(s)).map(([t,e])=>`${t}:${e}`).join(";")}}`},t.themePreset=Pn,t.themeTransition=function(t,e={}){return ni(t,{...e,effect:"circle",duration:e.duration??650})},t.themeVars=Tn,t.timeline=yt,t.toast=function(t,e={}){if("undefined"==typeof document||!te())return null;let s="string"==typeof e.toaster?document.querySelector(e.toaster):e.toaster||document.querySelector("usa-toaster");return s||(s=document.createElement("usa-toaster"),document.body.append(s)),s.show(t,e)},t.togglePressed=bn,t.viewTransition=async function(t,e={}){const s="undefined"!=typeof document?document:null;if(!s||d())return void await t();if("function"==typeof s.startViewTransition){let i;try{i=e.types?s.startViewTransition({update:t,types:e.types}):s.startViewTransition(t)}catch{i=s.startViewTransition(t)}return void await i.finished.catch(()=>{})}const i=e.fallback,a=e.duration??200;if(!i||"function"!=typeof i.animate)return void await t();await i.animate([{opacity:1},{opacity:0}],{duration:.8*a,easing:"ease-in",fill:"forwards"}).finished.catch(()=>{}),await t();const r=i.animate([{opacity:0,transform:"translateY(6px)"},{opacity:1,transform:"none"}],{duration:1.1*a,easing:Y});i.getAnimations?.().forEach(t=>t!==r&&t.cancel()),await r.finished.catch(()=>{})},t.warnBaseline=function(){const t=Oa().filter(t=>t.required&&!t.supported).map(t=>t.id);return t.length&&D("baseline",`this browser lacks ${t.join(", ")}; motionary 5.0 requires them (modern-browser baseline, see docs/upgrading-5.md).`),t},t.watchPowerSaver=Oi,t.withoutDeprecations=function(t){try{return t()}finally{}}});
22
+ const hr={reveal:st,text:jt,interaction:Kt,feedback:re,background:ve,transitions:Me,physics:He,cards:Qe,click:xs,ui:Rs,page:li,timeline:ui,gesture:yi,svg:Pi,webgl:Gi,depth:ra,layout:ha,packs:_a,fx:Ba};function pr(t){d()&&be(),(t||Object.keys(hr)).forEach(t=>hr[t]?.())}let fr=null;function mr(){return fr?.isConnected||(fr=document.createElement("div"),fr.setAttribute("aria-hidden","true"),fr.setAttribute("data-usa-fx-layer",""),fr.style.cssText="position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:2147483000;contain:strict",document.body.appendChild(fr)),fr}function gr(t,e){const s=e.event,i=t.getBoundingClientRect();return s&&"number"==typeof s.clientX&&(s.clientX||s.clientY)?{x:s.clientX,y:s.clientY}:{x:i.left+i.width/2,y:i.top+i.height/2}}function br(t,e,s,i,a,r,n=""){const o=document.createElement("span");o.style.cssText=`position:absolute;left:${t}px;top:${e}px;${s}`,n&&(o.textContent=n),mr().appendChild(o);const l=i.animate(o,a,{fill:"forwards",...r}),c=()=>o.remove();return l?l.finished.then(c,c):c(),l}function yr(t,e){const s=document.createElement("span");return s.setAttribute("aria-hidden","true"),s.style.cssText=`position:absolute;inset:0;pointer-events:none;border-radius:inherit;${e}`,"static"===getComputedStyle(t).position&&(t.style.position="relative"),t.appendChild(s),[s,()=>s.remove()]}const vr=["#7c5cff","#ff5c8a","#22d3ee","#facc15","#34d399"],xr=(t,e)=>t+Math.random()*(e-t),wr=t=>Promise.all(t.filter(Boolean).map(t=>t.finished.catch(()=>{}))),kr=[{name:"holo",kind:"card",description:'Holographic foil: a rainbow sheen and sparkle that follow the pointer (persistent; bind with trigger="load").',reduced:"run",defaults:{strength:.55},run:(t,e,s)=>{const[i,a]=yr(t,`mix-blend-mode:color-dodge;opacity:${e.strength};background:linear-gradient(115deg,transparent 20%,#ff8bd855 35%,#8bf3ff55 45%,#fff58b55 55%,transparent 70%),repeating-linear-gradient(55deg,#ffffff10 0 2px,transparent 2px 6px);background-size:250% 250%,100% 100%;background-position:50% 50%;transition:background-position .2s ease-out`);if(s.reduced)return a;const r=e=>{const s=t.getBoundingClientRect(),a=(e.clientX-s.left)/(s.width||1)*100,r=(e.clientY-s.top)/(s.height||1)*100;i.style.backgroundPosition=`${a}% ${r}%, 0 0`,t.style.transform=`perspective(700px) rotateY(${(a-50)/8}deg) rotateX(${(50-r)/8}deg)`},n=()=>{i.style.backgroundPosition="50% 50%, 0 0",t.style.transform=""};return t.addEventListener("pointermove",r),t.addEventListener("pointerleave",n),()=>{t.removeEventListener("pointermove",r),t.removeEventListener("pointerleave",n),n(),a()}}},{name:"glare-sweep",kind:"card",description:"A diagonal light streak sweeps across the card once.",defaults:{duration:900,color:"rgba(255,255,255,.55)"},run:(t,e,s)=>{if(s.reduced)return;const[i,a]=yr(t,`overflow:hidden;background:linear-gradient(105deg,transparent 35%,${e.color} 50%,transparent 65%);background-size:250% 100%`),r=s.animate(i,[{backgroundPosition:"150% 0"},{backgroundPosition:"-50% 0"}],{duration:e.duration,easing:"ease-in-out"});return r?r.finished.then(a,a):a(),r}},{name:"book-open",kind:"card",description:"The card opens like a book cover around its left edge, peeks and closes.",defaults:{angle:35,duration:1100},run:(t,e,s)=>(t.style.transformOrigin="left center",s.animate(t,[{transform:"perspective(900px) rotateY(0)"},{transform:`perspective(900px) rotateY(-${e.angle}deg)`,offset:.45},{transform:"perspective(900px) rotateY(0)"}],{duration:e.duration,easing:"cubic-bezier(0.34, 1.3, 0.64, 1)"}))},{name:"card-fan",kind:"card",description:"The element’s children fan out like a hand of cards, then gather.",defaults:{spread:14,duration:900},run:(t,e,s)=>{const i=Array.from(t.children),a=(i.length-1)/2;return wr(i.map((t,i)=>s.animate(t,[{transform:"none"},{transform:`translateX(${(i-a)*e.spread}px) rotate(${(i-a)*(e.spread/2)}deg)`,offset:.5},{transform:"none"}],{duration:e.duration,easing:"cubic-bezier(0.34, 1.56, 0.64, 1)"})))}},{name:"topple",kind:"card",description:"Tips backwards on its bottom edge and springs upright.",defaults:{duration:1e3},run:(t,e,s)=>(t.style.transformOrigin="bottom center",s.animate(t,[{transform:"perspective(800px) rotateX(0)"},{transform:"perspective(800px) rotateX(55deg)",offset:.35},{transform:"perspective(800px) rotateX(-12deg)",offset:.6},{transform:"perspective(800px) rotateX(5deg)",offset:.8},{transform:"perspective(800px) rotateX(0)"}],{duration:e.duration,easing:"ease-out"}))},{name:"float-tilt",kind:"loop",description:"Idle floating with a slow 3D sway (loop; stops under reduced motion).",defaults:{duration:4200,distance:8},run:(t,e,s)=>{const i=s.animate(t,[{transform:"translateY(0) rotateX(0) rotateY(0)"},{transform:`translateY(-${e.distance}px) rotateX(4deg) rotateY(-5deg)`},{transform:"translateY(0) rotateX(0) rotateY(0)"}],{duration:e.duration,iterations:1/0,easing:"ease-in-out"});return()=>i?.cancel()}}],_r=[{name:"shockwave",kind:"click",description:"Two expanding rings from the click point.",defaults:{color:"#7c5cff",size:160,duration:700},run:(t,e,s)=>{if(s.reduced)return;const{x:i,y:a}=gr(t,s);return wr([0,120].map(t=>br(i,a,`width:${e.size}px;height:${e.size}px;margin:${-e.size/2}px 0 0 ${-e.size/2}px;border:3px solid ${e.color};border-radius:50%`,s,[{transform:"scale(0)",opacity:.9},{transform:"scale(1)",opacity:0}],{duration:e.duration,delay:t,easing:"cubic-bezier(0.22, 1, 0.36, 1)"})))}},{name:"ink-splash",kind:"click",description:"Ink blobs splatter from the click point and fade.",defaults:{count:9,colors:vr,duration:800},run:(t,e,s)=>{if(s.reduced)return;const{x:i,y:a}=gr(t,s);return wr(Array.from({length:e.count},(t,r)=>{const n=xr(6,22),o=xr(0,2*Math.PI),l=xr(20,70);return br(i,a,`width:${n}px;height:${n}px;margin:${-n/2}px 0 0 ${-n/2}px;background:${e.colors[r%e.colors.length]};border-radius:${xr(40,50)}% ${xr(50,60)}% ${xr(40,60)}% ${xr(45,55)}%`,s,[{transform:"translate(0,0) scale(.3)",opacity:1},{transform:`translate(${Math.cos(o)*l}px,${Math.sin(o)*l}px) scale(1)`,opacity:.9,offset:.5},{transform:`translate(${Math.cos(o)*l}px,${Math.sin(o)*l+8}px) scale(1.1)`,opacity:0}],{duration:e.duration,easing:"cubic-bezier(0.22, 1, 0.36, 1)"})}))}},{name:"star-burst",kind:"click",description:"Spinning stars burst outward.",defaults:{count:10,colors:["#facc15","#fb923c","#f472b6"],duration:900},run:(t,e,s)=>{if(s.reduced)return;const{x:i,y:a}=gr(t,s);return wr(Array.from({length:e.count},(t,r)=>{const n=r/e.count*Math.PI*2,o=xr(40,80),l=xr(12,22);return br(i,a,`font-size:${l}px;line-height:1;margin:${-l/2}px 0 0 ${-l/2}px;color:${e.colors[r%e.colors.length]}`,s,[{transform:"translate(0,0) rotate(0) scale(.2)",opacity:1},{transform:`translate(${Math.cos(n)*o}px,${Math.sin(n)*o}px) rotate(${xr(180,360)}deg) scale(1)`,opacity:0}],{duration:e.duration,easing:"cubic-bezier(0.22, 1, 0.36, 1)"},"★")}))}},{name:"jelly-press",kind:"click",description:"The pressed element squishes like jelly and wobbles back.",defaults:{duration:650},run:(t,e,s)=>s.reduced?s.animate(t,[{opacity:1},{opacity:.7},{opacity:1}],{duration:250}):s.animate(t,[{transform:"scale(1,1)"},{transform:"scale(1.15,.85)",offset:.2},{transform:"scale(.9,1.1)",offset:.4},{transform:"scale(1.05,.95)",offset:.6},{transform:"scale(.98,1.02)",offset:.8},{transform:"scale(1,1)"}],{duration:e.duration,easing:"ease-out"})},{name:"ring-ripple",kind:"click",description:"Concentric outlined rings ripple out like water.",defaults:{rings:3,color:"#22d3ee",size:120,duration:1e3},run:(t,e,s)=>{if(s.reduced)return;const{x:i,y:a}=gr(t,s);return wr(Array.from({length:e.rings},(t,r)=>br(i,a,`width:${e.size}px;height:${e.size}px;margin:${-e.size/2}px 0 0 ${-e.size/2}px;border:2px solid ${e.color};border-radius:50%`,s,[{transform:"scale(.1)",opacity:.8},{transform:"scale(1)",opacity:0}],{duration:e.duration,delay:160*r,easing:"ease-out"})))}},{name:"emoji-rain",kind:"click",description:'Emoji pop up and fall around the click (pass `emoji: "🎉✨💜"`).',defaults:{emoji:"🎉✨💜🔥",count:14,duration:1300},run:(t,e,s)=>{if(s.reduced)return;const{x:i,y:a}=gr(t,s),r=Array.from(String(e.emoji));return wr(Array.from({length:e.count},(t,n)=>{const o=xr(-90,90);return br(i,a,`font-size:${xr(16,28)}px;line-height:1`,s,[{transform:"translate(0,0) scale(.4)",opacity:0},{transform:`translate(${.6*o}px,${xr(-90,-50)}px) scale(1)`,opacity:1,offset:.35},{transform:`translate(${o}px,${xr(40,90)}px) rotate(${xr(-60,60)}deg) scale(.9)`,opacity:0}],{duration:e.duration,delay:25*n,easing:"cubic-bezier(0.33, 0, 0.67, 1)"},r[n%r.length])}))}}];function Ar({stiffness:t=180,damping:e=12,mass:s=1,steps:i=40}={}){const a=1/120;let r=0,n=0;const o=[];let l=0;for(;l<4;l+=a){if(n+=(-t*(r-1)-e*n)/s*a,r+=n*a,o.push(r),l>.1&&Math.abs(r-1)<.001&&Math.abs(n)<.01)break}const c=Array.from({length:i+1},(t,e)=>+o[Math.min(o.length-1,Math.round(e/i*(o.length-1)))].toFixed(4));return c[0]=0,c[i]=1,{values:c,duration:Math.round(o.length*a*1e3)}}function Mr(t,e){const{values:s,duration:i}=Ar(e);return{frames:s.map(t),duration:i}}function Er(t=.5,e=48){const s=[1];let i=1;for(;s.length<6&&i>.01;)i*=t*t,s.push(i);const a=s.map((t,e)=>0===e?Math.sqrt(t):2*Math.sqrt(t)),r=a.reduce((t,e)=>t+e,0);return Array.from({length:e+1},(t,i)=>{let n=i/e*r;for(let t=0;t<s.length;t++){if(n<=a[t]||t===s.length-1){const e=Math.min(n,a[t]);if(0===t)return+(1-(e/a[0])**2).toFixed(4);const i=a[t]/2;return+(s[t]*(1-((e-i)/i)**2)).toFixed(4)}n-=a[t]}return 0})}const Sr=(t,e)=>e.animate(t,[{opacity:0},{opacity:1}],{duration:200}),Cr=[{name:"bounce-in",kind:"enter",description:"Springs in from small with an overshoot (spring solver; stiffness / damping options).",defaults:{stiffness:220,damping:11,from:.3},run:(t,e,s)=>{if(s.reduced)return Sr(t,s);const{frames:i,duration:a}=Mr(t=>({transform:`scale(${(e.from+(1-e.from)*t).toFixed(4)})`,opacity:Math.min(1,3*t)}),e);return s.animate(t,i,{duration:a,easing:"linear"})}},{name:"rubber-band",kind:"attention",description:"Stretches wide, snaps back thin and settles like a rubber band.",defaults:{duration:900,amount:.25},run:(t,e,s)=>{if(s.reduced)return;const i=e.amount;return s.animate(t,[{transform:"scale(1,1)"},{transform:`scale(${1+i},${1-i})`,offset:.3},{transform:`scale(${1-i},${1+i})`,offset:.4},{transform:`scale(${1+i/2},${1-i/2})`,offset:.5},{transform:`scale(${1-i/5},${1+i/5})`,offset:.65},{transform:`scale(${1+i/10},${1-i/10})`,offset:.75},{transform:"scale(1,1)"}],{duration:e.duration})}},{name:"elastic-hover",kind:"hover",description:'Hover lifts with a springy overshoot; leaving springs back (persistent; trigger="load").',defaults:{lift:6,scale:1.04,stiffness:260,damping:10},run:(t,e,s)=>{if(s.reduced)return;const i=i=>{const a=i?0:1,{frames:r,duration:n}=Mr(t=>{const s=a+(i?t:-t);return{transform:`translateY(${(-e.lift*s).toFixed(2)}px) scale(${(1+(e.scale-1)*s).toFixed(4)})`}},e);s.animate(t,r,{duration:n,fill:"forwards",easing:"linear"})},a=()=>i(!0),r=()=>i(!1);return t.addEventListener("pointerenter",a),t.addEventListener("pointerleave",r),()=>{t.removeEventListener("pointerenter",a),t.removeEventListener("pointerleave",r)}}},{name:"drop-bounce",kind:"enter",description:"Falls in under gravity and bounces to rest (`height`, `bounce` restitution 0–0.9).",defaults:{height:120,bounce:.5,duration:1100},run:(t,e,s)=>{if(s.reduced)return Sr(t,s);const i=Er(Math.min(.9,Math.max(0,e.bounce)));return s.animate(t,i.map((t,s)=>({transform:`translateY(${(-t*e.height).toFixed(1)}px)`,opacity:0===s?0:1})),{duration:e.duration,easing:"linear"})}},{name:"gravity-text",kind:"text",description:"Each character drops in under gravity with a bounce, staggered (splits the text into aria-hidden spans; the label stays readable).",defaults:{height:60,bounce:.45,duration:900,stagger:45},run:(t,e,s)=>{if(s.reduced)return;if(!t.dataset.usaSplit){const e=t.textContent||"";t.setAttribute("aria-label",e),t.textContent="";for(const s of Array.from(e)){const e=document.createElement("span");e.setAttribute("aria-hidden","true"),e.style.display="inline-block",e.style.whiteSpace="pre",e.textContent=s,t.appendChild(e)}t.dataset.usaSplit="1"}const i=Er(e.bounce,32);return wr(Array.from(t.children).map((t,a)=>s.animate(t,i.map(t=>({transform:`translateY(${(-t*e.height).toFixed(1)}px)`})),{duration:e.duration,delay:a*e.stagger,easing:"linear",fill:"backwards"})))}},{name:"spring-follow",kind:"cursor",description:"The element springs toward the pointer while it moves over its parent, and back home on leave (persistent).",defaults:{stiffness:.12,damping:.75,range:40},run:(t,e,s)=>{if(s.reduced)return;const i=t.parentElement||t;let a=0,r=0,n=0,o=0,l=0,c=0,u=0;const d=()=>{l=(l+(a-n)*e.stiffness)*e.damping,c=(c+(r-o)*e.stiffness)*e.damping,n+=l,o+=c,t.style.translate=`${n.toFixed(2)}px ${o.toFixed(2)}px`,u=Math.abs(l)+Math.abs(c)+Math.abs(a-n)+Math.abs(r-o)>.05?requestAnimationFrame(d):0},h=()=>{u||(u=requestAnimationFrame(d))},p=t=>{const s=i.getBoundingClientRect(),n=(t.clientX-s.left)/(s.width||1)-.5,o=(t.clientY-s.top)/(s.height||1)-.5;a=2*n*e.range,r=2*o*e.range,h()},f=()=>{a=r=0,h()};return i.addEventListener("pointermove",p),i.addEventListener("pointerleave",f),()=>{i.removeEventListener("pointermove",p),i.removeEventListener("pointerleave",f),cancelAnimationFrame(u),t.style.translate=""}}},{name:"bell-swing",kind:"attention",description:"Swings from its top like a ringing bell with damped oscillation.",defaults:{angle:22,stiffness:120,damping:4},run:(t,e,s)=>{if(s.reduced)return;t.style.transformOrigin="top center";const{frames:i,duration:a}=Mr(t=>({transform:`rotate(${(e.angle*(1-t)).toFixed(2)}deg)`}),{stiffness:e.stiffness,damping:e.damping,steps:48});return i[0]={transform:"rotate(0deg)"},s.animate(t,i,{duration:Math.min(a,2400),easing:"linear"})}}];function $r(t=""){const e=document.createElement("div");return e.setAttribute("aria-hidden","true"),e.setAttribute("data-usa-page-fx",""),e.style.cssText=`position:fixed;inset:0;z-index:2147483001;pointer-events:auto;${t}`,document.body.appendChild(e),e}const Tr=t=>t?t.finished.catch(()=>{}):Promise.resolve(),zr=async t=>{"function"==typeof t&&await t()};function Pr(t){return async(e,s,i)=>{if(i.reduced)return async function(t,e){const s=$r(`background:${t.color};opacity:0`);await Tr(e.animate(s,[{opacity:0},{opacity:1}],{duration:150,fill:"forwards"})),await zr(t.onCovered),await Tr(e.animate(s,[{opacity:1},{opacity:0}],{duration:150,fill:"forwards"})),s.remove()}(s,i);const a=$r("pointer-events:auto"),{parts:r,cover:n,delay:o}=t(a,s,i,e),l=t=>"function"==typeof n?n(t):n,c=s.duration/2;await Promise.all(r.map((t,e)=>Tr(i.animate(t,l(e),{duration:c,delay:o?.(e)??0,easing:"cubic-bezier(0.65, 0, 0.35, 1)",fill:"both"})))),await zr(s.onCovered),s.hold&&await new Promise(t=>setTimeout(t,s.hold)),await Promise.all(r.map((t,e)=>Tr(i.animate(t,[...l(e)].reverse(),{duration:c,delay:o?.(e)??0,easing:"cubic-bezier(0.65, 0, 0.35, 1)",fill:"both"})))),a.remove()}}const Fr=(t,e)=>{const s=document.createElement("div");return s.style.cssText=`position:absolute;${e}`,t.appendChild(s),s},Lr={color:"#0f0f1a",duration:1e3,hold:0,onCovered:void 0},qr=[{name:"curtain",kind:"page",description:"Two curtain panels close from the sides, call onCovered(), then open.",reduced:"run",defaults:Lr,run:Pr((t,e)=>({parts:[Fr(t,`top:0;bottom:0;left:0;width:50.5%;background:${e.color}`),Fr(t,`top:0;bottom:0;right:0;width:50.5%;background:${e.color}`)],cover:t=>[{transform:`translateX(${t?100:-100}%)`},{transform:"translateX(0)"}]}))},{name:"iris",kind:"page",description:"A circle closes on the click point (or the element’s center), calls onCovered(), then opens.",reduced:"run",defaults:Lr,run:Pr((t,e,s,i)=>{const{x:a,y:r}=gr(i,s),n=Math.hypot(Math.max(a,innerWidth-a),Math.max(r,innerHeight-r))+2,o=Fr(t,`left:${a}px;top:${r}px;width:0;height:0;border-radius:50%;box-shadow:0 0 0 ${Math.ceil(n)}px ${e.color}`);return t.style.background="transparent",{parts:[o],cover:[{width:2*n+"px",height:2*n+"px",margin:`${-n}px 0 0 ${-n}px`},{width:"0px",height:"0px",margin:"0px 0 0 0px"}]}})},{name:"pixel-dissolve",kind:"page",description:"The screen fills with pixels in random order, calls onCovered(), then dissolves (`cols` × `rows`).",reduced:"run",defaults:{...Lr,cols:16,rows:10},run:Pr((t,e)=>{const s=e.cols*e.rows,i=Array.from({length:s},(t,e)=>e).sort(()=>Math.random()-.5);return{parts:Array.from({length:s},(s,i)=>Fr(t,`left:${i%e.cols*100/e.cols}%;top:${100*Math.floor(i/e.cols)/e.rows}%;width:${100/e.cols+.2}%;height:${100/e.rows+.2}%;background:${e.color};opacity:0`)),cover:[{opacity:0},{opacity:1}],delay:t=>i[t]/s*(e.duration/2)*.6}})},{name:"blinds",kind:"page",description:"Horizontal slats rotate shut like venetian blinds, call onCovered(), then open (`slats`).",reduced:"run",defaults:{...Lr,slats:8},run:Pr((t,e)=>({parts:Array.from({length:e.slats},(s,i)=>Fr(t,`left:0;right:0;top:${100*i/e.slats}%;height:${100/e.slats+.3}%;background:${e.color};transform-origin:top`)),cover:[{transform:"scaleY(0)"},{transform:"scaleY(1)"}],delay:t=>30*t}))},{name:"velocity-skew",kind:"scroll",description:"Skews the element with scroll velocity and eases back when scrolling stops (persistent).",defaults:{max:8,factor:.25},run:(t,e,s)=>{if(s.reduced)return;let i=scrollY,a=0,r=0;const n=()=>{const s=scrollY,o=Math.max(-e.max,Math.min(e.max,(s-i)*e.factor));i=s,a+=.2*(o-a),t.style.transform=`skewY(${a.toFixed(3)}deg)`,r=Math.abs(a)>.01||Math.abs(o)>.01?requestAnimationFrame(n):0,r||(t.style.transform="")},o=()=>{r||(r=requestAnimationFrame(n))};return addEventListener("scroll",o,{passive:!0}),()=>{removeEventListener("scroll",o),cancelAnimationFrame(r),t.style.transform=""}}},{name:"spotlight",kind:"cursor",description:"Dims the page except a soft circle that follows the pointer (persistent; `radius`, `dim`).",defaults:{radius:180,dim:.72},run:(t,e,s)=>{if(s.reduced)return;const i=$r(`pointer-events:none;background:radial-gradient(circle ${e.radius}px at var(--x,50%) var(--y,50%),transparent 0,transparent 60%,rgba(0,0,0,${e.dim}) 100%)`),a=t=>{i.style.setProperty("--x",`${t.clientX}px`),i.style.setProperty("--y",`${t.clientY}px`)};return addEventListener("pointermove",a,{passive:!0}),()=>{removeEventListener("pointermove",a),i.remove()}}},{name:"edge-glow",kind:"scroll",description:"A soft glow lights the top / bottom edge of the viewport while scrolling in that direction (persistent).",defaults:{color:"#7c5cff",size:90},run:(t,e,s)=>{if(s.reduced)return;const i=$r("pointer-events:none;opacity:0;transition:opacity .35s ease-out");let a=scrollY,r=0;const n=()=>{const t=scrollY>=a;a=scrollY,i.style.background=`linear-gradient(${t?"to top":"to bottom"},${e.color}55,transparent ${e.size}px)`,i.style.opacity="1",clearTimeout(r),r=setTimeout(()=>i.style.opacity="0",160)};return addEventListener("scroll",n,{passive:!0}),()=>{removeEventListener("scroll",n),clearTimeout(r),i.remove()}}}],Rr=["pin","gallery","zoom","compare","counter","highlight"],Ir=(t,e=0,s=1)=>Math.min(s,Math.max(e,t));function Nr(t,e=("number"==typeof innerHeight?innerHeight:800)){const s=t.getBoundingClientRect(),i=s.height-e;return Ir(i>0?-s.top/i:(e-s.top)/(e+s.height))}function Yr(t,e){const s=t.match(/^(\D*)([\d,]*\.?\d+)(.*)$/);if(!s)return t;const[,i,a,r]=s,n=parseFloat(a.replace(/,/g,"")),o=(a.split(".")[1]||"").length;let l=(n*e).toFixed(o);return a.includes(",")&&(l=Number(l).toLocaleString("en-US",{minimumFractionDigits:o,maximumFractionDigits:o})),i+l+r}function Br(t="usa-story"){return y(t,t=>class extends t{constructor(){super(...arguments),this.progress=0,this.step=-1,this.frame=0}static get observedAttributes(){return["template","zoom"]}get template(){const t=this.str("template","pin");return Rr.includes(t)?t:"pin"}steps(){const t=Array.from(this.querySelectorAll("[data-step]:not([data-stage])"));return t.length||"highlight"!==this.template?t:Array.from(this.querySelectorAll("p"))}setStep(t){if(t===this.step)return;this.step=t,this.steps().forEach((e,s)=>e.toggleAttribute("data-active",s===t));const e=this.querySelector("[data-stage]");e&&(e.dataset.activeStep=String(t)),this.dispatchEvent(new CustomEvent("usa-story-step",{detail:{index:t},bubbles:!0}))}update(){this.frame=0;const t=this.progress=Nr(this);this.style.setProperty("--usa-story-progress",t.toFixed(4));const e=this.template,s=innerHeight||800;if("pin"===e||"highlight"===e){const t=s/2;let e=-1,i=1/0;this.steps().forEach((s,a)=>{const r=s.getBoundingClientRect(),n=r.top<=t&&r.bottom>=t?0:Math.min(Math.abs(r.top-t),Math.abs(r.bottom-t));n<i&&(i=n,e=a)}),this.setStep(e)}else if("gallery"!==e||this.reduced)if("zoom"!==e||this.reduced)"compare"!==e||this.hasAttribute("data-dragged")?"counter"===e&&this.querySelectorAll("[data-count]:not([data-counted])").forEach(t=>{const e=t.getBoundingClientRect();e.top<.9*s&&e.bottom>0&&this.count(t)}):this.setSplit(100*t);else{const e=this.querySelector("[data-stage] > *");e&&(e.style.transform=`scale(${(1+t*(this.num("zoom",6)-1)).toFixed(3)})`,e.style.opacity=String(Ir(1.4-1.4*t).toFixed(3)))}else{const e=this.querySelector("[data-track]"),s=this.querySelector("[data-sticky]");e&&s&&(e.style.transform=`translateX(${(-t*Math.max(0,e.scrollWidth-s.clientWidth)).toFixed(1)}px)`)}}setSplit(t){const e=Ir(t,0,100);this.style.setProperty("--usa-split",`${e.toFixed(2)}%`);const s=this.querySelector("[data-handle]");s&&s.setAttribute("aria-valuenow",String(Math.round(e)))}count(t){t.dataset.counted="";const e=t.dataset.count||t.textContent||"0";if(t.setAttribute("aria-label",e),this.reduced)return void(t.textContent=e);const s=Number(t.dataset.duration)||1600,i=performance.now(),a=r=>{const n=Ir((r-i)/s);t.textContent=Yr(e,1-(1-n)**3),n<1&&requestAnimationFrame(a)};requestAnimationFrame(a)}mount(){this.toggleAttribute("data-static",this.reduced),"compare"===this.template&&this.mountCompare();const t=()=>{this.frame||(this.frame=requestAnimationFrame(()=>this.update()))};this.listen(window,"scroll",t,{passive:!0}),this.listen(window,"resize",t),this.onCleanup(()=>cancelAnimationFrame(this.frame)),this.update()}mountCompare(){const t=this.querySelector("[data-sticky]")||this;let e=this.querySelector("[data-handle]");e||(e=document.createElement("div"),e.setAttribute("data-handle",""),t.appendChild(e),this.onCleanup(()=>e.remove())),e.tabIndex=0,e.setAttribute("role","slider"),e.setAttribute("aria-label",this.str("label","Before / after")),e.setAttribute("aria-valuemin","0"),e.setAttribute("aria-valuemax","100");const s=e=>{const s=t.getBoundingClientRect();this.dataset.dragged="",this.setSplit((e.clientX-s.left)/(s.width||1)*100)};let i=!1;this.listen(e,"pointerdown",t=>{i=!0,e.setPointerCapture?.(t.pointerId)}),this.listen(e,"pointermove",t=>i&&s(t)),this.listen(e,"pointerup",()=>i=!1),this.listen(e,"keydown",t=>{const s=parseFloat(e.getAttribute("aria-valuenow")||"50"),i=t.shiftKey?10:2,a="ArrowLeft"===t.key||"ArrowDown"===t.key?s-i:"ArrowRight"===t.key||"ArrowUp"===t.key?s+i:"Home"===t.key?0:"End"===t.key?100:null;null!=a&&(t.preventDefault(),this.dataset.dragged="",this.setSplit(a))}),this.setSplit(50)}unmount(){this.step=-1,delete this.dataset.dragged}},{id:"usa-story",text:"usa-story{display:block;position:relative}\nusa-story[template=pin] [data-stage],usa-story[template=gallery] [data-sticky],usa-story[template=zoom] [data-stage],usa-story[template=compare] [data-sticky]{position:sticky;top:0}\nusa-story[template=pin] [data-stage]{align-self:start}\nusa-story[template=pin] [data-step]{min-height:80vh;opacity:.35;transition:opacity .3s}\nusa-story[template=pin] [data-step][data-active]{opacity:1}\nusa-story[template=gallery] [data-sticky]{height:100vh;overflow:hidden;display:flex;align-items:center}\nusa-story[template=gallery] [data-track]{display:flex;gap:24px;will-change:transform}\nusa-story[template=gallery][data-static] [data-sticky]{position:static;height:auto;overflow:visible}\nusa-story[template=gallery][data-static] [data-track]{flex-direction:column;transform:none!important}\nusa-story[template=zoom] [data-stage]{height:100vh;overflow:hidden;display:grid;place-items:center}\nusa-story[template=compare] [data-sticky]{height:var(--usa-story-h,70vh);overflow:hidden}\nusa-story[template=compare] [data-before],usa-story[template=compare] [data-after]{position:absolute;inset:0}\nusa-story[template=compare] [data-after]{clip-path:inset(0 0 0 var(--usa-split,50%))}\nusa-story [data-handle]{position:absolute;top:0;bottom:0;left:var(--usa-split,50%);width:4px;margin-left:-2px;background:#fff;box-shadow:0 0 0 1px #0003;cursor:ew-resize;touch-action:none}\nusa-story [data-handle]:focus-visible{outline:3px solid #7c5cff;outline-offset:2px}\nusa-story[template=highlight] p,usa-story[template=highlight] [data-step]{opacity:.3;transition:opacity .25s}\nusa-story[template=highlight] [data-active]{opacity:1}"})}function Or(t,e,s=0){return(Math.sin(1.7*t+s)*Math.cos(1.3*e-.7*s)+.5*Math.sin(.9*(t+e)+.5*s)+.5*Math.cos(.6*t-1.1*e-.3*s))/2}function Xr(t){const e=/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(t.trim());return e?[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]:[124,92,255]}function Dr(t,e,s,i){const a=document.createElement("canvas");a.setAttribute("aria-hidden","true"),a.setAttribute("data-usa-fx-canvas",""),a.style.cssText="position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:-1;border-radius:inherit";const r=[],n=(e,s)=>{r.push([e,t.style[e]]),t.style[e]=s};"static"===getComputedStyle(t).position&&n("position","relative"),n("isolation","isolate"),t.prepend(a);const o=a.getContext("2d");let l=0,c=!0,u=Math.min(1,Math.max(.35,Number(i.quality)||1)),d=0,h=0,p=null;const f=performance.now();let m=f,g=0,b=0;const y=()=>{const e=t.getBoundingClientRect();d=Math.max(1,Math.round(e.width)),h=Math.max(1,Math.round(e.height));const r=Math.min(2,("number"==typeof devicePixelRatio?devicePixelRatio:1)||1)*u;a.width=Math.max(1,Math.round(d*r)),a.height=Math.max(1,Math.round(h*r)),o&&o.setTransform(r,0,0,r,0,0),p=s.init?s.init(d,h,i):{}},v=t=>{if(l=0,!o)return;const e=t-m;m=t,e>28?g++:e<18&&b++,g>20&&u>.35?(u=Math.max(.35,u-.15),g=b=0,y()):b>240&&u<1&&(u=Math.min(1,u+.15),g=b=0,y()),s.draw({ctx:o,w:d,h:h,t:(t-f)/1e3,quality:u,state:p,o:i}),c&&!document.hidden&&(l=requestAnimationFrame(v))},x=()=>{l||!o||e.reduced||(m=performance.now(),l=requestAnimationFrame(v))};y(),o&&s.draw({ctx:o,w:d,h:h,t:0,quality:u,state:p,o:i});const w="function"==typeof IntersectionObserver?new IntersectionObserver(t=>{c=t.some(t=>t.isIntersecting),c&&x()}):null;w?.observe(t);const k="function"==typeof ResizeObserver?new ResizeObserver(()=>{y(),o&&e.reduced&&s.draw({ctx:o,w:d,h:h,t:0,quality:u,state:p,o:i})}):null;k?.observe(t);const _=()=>!document.hidden&&c&&x();return document.addEventListener("visibilitychange",_),x(),()=>{cancelAnimationFrame(l),l=0,w?.disconnect(),k?.disconnect(),document.removeEventListener("visibilitychange",_),a.remove();for(const[e,s]of r)t.style[e]=s}}const jr=(t,e,s,i)=>({name:t,kind:"background",description:e,reduced:"run",defaults:{colors:vr,background:"#0b0d12",speed:1,quality:1,...s},run:(t,e,s)=>Dr(t,s,i,e)});function Hr(t,e,s){const i=Math.max(2,Math.round(e/t.quality)),a=Math.max(1,Math.ceil(t.w/i)),r=Math.max(1,Math.ceil(t.h/i)),n=t.state;if(n.buf&&n.buf.width===a&&n.buf.height===r||(n.buf=document.createElement("canvas"),n.buf.width=a,n.buf.height=r,n.bctx=n.buf.getContext("2d"),n.img=n.bctx?.createImageData(a,r)),!n.bctx||!n.img)return;const o=n.img.data;for(let t=0;t<r;t++)for(let e=0;e<a;e++)s(e*i,t*i,o,4*(t*a+e));n.bctx.putImageData(n.img,0,0),t.ctx.imageSmoothingEnabled=!0,t.ctx.drawImage(n.buf,0,0,t.w,t.h)}const Vr=[jr("flow-field","Particles drift along a slowly changing flow field, leaving silky trails.",{count:600,fade:.06},{init:(t,e,s)=>({p:Array.from({length:s.count},()=>[Math.random()*t,Math.random()*e])}),draw:({ctx:t,w:e,h:s,t:i,state:a,o:r,quality:n})=>{t.fillStyle=r.background,t.globalAlpha=0===i?1:r.fade,t.fillRect(0,0,e,s),t.globalAlpha=.8;const o=Math.round(a.p.length*n),l=0===i?40:1;for(let n=0;n<o;n++){const o=a.p[n];t.fillStyle=r.colors[n%r.colors.length];for(let a=0;a<l;a++){const a=Or(.004*o[0],.004*o[1],.15*i*r.speed)*Math.PI*2;o[0]+=1.2*Math.cos(a)*r.speed,o[1]+=1.2*Math.sin(a)*r.speed,(o[0]<0||o[0]>e||o[1]<0||o[1]>s)&&(o[0]=Math.random()*e,o[1]=Math.random()*s),t.fillRect(o[0],o[1],1.4,1.4)}}t.globalAlpha=1}}),jr("voronoi","Drifting Voronoi cells in the palette, with darker borders.",{seeds:14,cell:6},{init:(t,e,s)=>({s:Array.from({length:s.seeds},(i,a)=>({x:Math.random()*t,y:Math.random()*e,vx:Math.random()-.5,vy:Math.random()-.5,c:Xr(s.colors[a%s.colors.length])}))}),draw:t=>{const{w:e,h:s,state:i,o:a}=t;for(const t of i.s)t.x+=t.vx*a.speed,t.y+=t.vy*a.speed,(t.x<0||t.x>e)&&(t.vx*=-1),(t.y<0||t.y>s)&&(t.vy*=-1);Hr(t,a.cell,(t,e,s,a)=>{let r=1/0,n=1/0,o=i.s[0].c;for(const s of i.s){const i=(s.x-t)**2+(s.y-e)**2;i<r?(n=r,r=i,o=s.c):i<n&&(n=i)}const l=Math.sqrt(n)-Math.sqrt(r)<6?.55:1;s[a]=o[0]*l,s[a+1]=o[1]*l,s[a+2]=o[2]*l,s[a+3]=255})}}),jr("mesh-gradient","Soft blobs of colour orbit and blend into a living mesh gradient.",{blobs:4,blur:.65},{draw:({ctx:t,w:e,h:s,t:i,o:a})=>{t.fillStyle=a.background,t.fillRect(0,0,e,s);const r=Math.max(e,s)*a.blur;for(let n=0;n<a.blobs;n++){const o=.25*i*a.speed+n*Math.PI*2/a.blobs,l=e/2+Math.cos(o*(1+.13*n))*e*.32,c=s/2+Math.sin(o*(.8+.11*n))*s*.32,[u,d,h]=Xr(a.colors[n%a.colors.length]),p=t.createRadialGradient(l,c,0,l,c,r);p.addColorStop(0,`rgba(${u},${d},${h},0.7)`),p.addColorStop(1,`rgba(${u},${d},${h},0)`),t.fillStyle=p,t.fillRect(0,0,e,s)}}}),jr("starfield","Stars stream toward the viewer (warp speed with `speed: 4`).",{stars:400,color:"#ffffff"},{init:(t,e,s)=>({s:Array.from({length:s.stars},()=>[2*Math.random()-1,2*Math.random()-1,Math.random()])}),draw:({ctx:t,w:e,h:s,t:i,state:a,o:r,quality:n})=>{t.fillStyle=r.background,t.fillRect(0,0,e,s),t.fillStyle=r.color;const o=Math.round(a.s.length*n);for(let n=0;n<o;n++){const o=a.s[n];i>0&&(o[2]-=.004*r.speed),o[2]<=.01&&(o[0]=2*Math.random()-1,o[1]=2*Math.random()-1,o[2]=1);const l=e/2+o[0]/o[2]*e*.5,c=s/2+o[1]/o[2]*s*.5;if(l<0||l>e||c<0||c>s)continue;const u=2.6*(1-o[2]);t.globalAlpha=Math.min(1,1.6*(1-o[2])),t.fillRect(l,c,u,u)}t.globalAlpha=1}}),jr("metaballs","Gooey blobs that merge and split (low-resolution field, scaled up).",{balls:6,cell:5,threshold:1},{init:(t,e,s)=>({b:Array.from({length:s.balls},()=>({x:Math.random()*t,y:Math.random()*e,vx:1.6*(Math.random()-.5),vy:1.6*(Math.random()-.5),r:Math.min(t,e)*(.08+.08*Math.random())}))}),draw:t=>{const{w:e,h:s,state:i,o:a}=t;for(const t of i.b)t.x+=t.vx*a.speed,t.y+=t.vy*a.speed,(t.x<0||t.x>e)&&(t.vx*=-1),(t.y<0||t.y>s)&&(t.vy*=-1);const[r,n,o]=Xr(a.colors[0]),[l,c,u]=Xr(a.colors[1]||a.colors[0]),[d,h,p]=Xr(a.background);Hr(t,a.cell,(t,e,s,f)=>{let m=0;for(const s of i.b)m+=s.r*s.r/((s.x-t)**2+(s.y-e)**2+1);const g=m>=a.threshold,b=Math.min(1,.8*(m-a.threshold));s[f]=g?r+(l-r)*b:d,s[f+1]=g?n+(c-n)*b:h,s[f+2]=g?o+(u-o)*b:p,s[f+3]=255})}}),jr("contours","Topographic contour lines over a slowly shifting height field.",{levels:9,cell:4,color:"#7c5cff"},{draw:t=>{const{t:e,o:s}=t,[i,a,r]=Xr(s.color),[n,o,l]=Xr(s.background),c=(t,i)=>(Or(.006*t,.006*i,.2*e*s.speed)+1)/2,u=Math.max(2,Math.round(s.cell/t.quality));Hr(t,s.cell,(t,e,d,h)=>{const p=Math.floor(c(t,e)*s.levels),f=p!==Math.floor(c(t+u,e)*s.levels)||p!==Math.floor(c(t,e+u)*s.levels),m=.12+p/s.levels*.18;d[h]=f?i:n+(i-n)*m,d[h+1]=f?a:o+(a-o)*m,d[h+2]=f?r:l+(r-l)*m,d[h+3]=255})}})];let Ur=null,Wr=null;const Gr=new WeakMap;async function Kr(t="mic",e={}){Wr?.stop();const s=function(){const t=globalThis.AudioContext||globalThis.webkitAudioContext;if(!t)throw new Error("[motionary] Web Audio is not available");return Ur&&"closed"!==Ur.state||(Ur=new t),Ur}();"suspended"===s.state&&await s.resume().catch(()=>{});const i=s.createAnalyser();let a;i.fftSize=e.fftSize||512,i.smoothingTimeConstant=e.smoothing??.8;let r=()=>{};const n="string"==typeof t&&"mic"!==t?document.querySelector(t):t;if("mic"===n){const t=await navigator.mediaDevices.getUserMedia({audio:!0});a=s.createMediaStreamSource(t),a.connect(i),r=()=>t.getTracks().forEach(t=>t.stop())}else if(n&&"function"==typeof n.play){const t=n;let e=Gr.get(t);e||Gr.set(t,e=s.createMediaElementSource(t));try{e.disconnect()}catch{}a=e,a.connect(i),i.connect(s.destination),r=()=>{try{e.disconnect()}catch{}e.connect(s.destination)},t.paused&&await(t.play()?.catch?.(()=>{}))}else{if(!n||"function"!=typeof n.getTracks)throw new Error(`[motionary] enableAudio: no audio source for ${String(t)}`);a=s.createMediaStreamSource(n),a.connect(i)}const o=new Uint8Array(i.frequencyBinCount),l=new Uint8Array(i.fftSize),c={context:s,analyser:i,sample:()=>{i.getByteFrequencyData(o),i.getByteTimeDomainData(l);let t=0;for(let e=0;e<l.length;e++)t+=((l[e]-128)/128)**2;const e=Math.max(1,Math.round(.08*o.length));let s=0;for(let t=0;t<e;t++)s+=o[t];return{level:Math.min(1,2*Math.sqrt(t/l.length)),bass:s/e/255,freq:o,wave:l}},stop:()=>{Wr===c&&(Wr=null,Qr&&"function"==typeof cancelAnimationFrame&&cancelAnimationFrame(Qr),Qr=0);try{a.disconnect(),i.disconnect()}catch{}r(),tn(0,0)}};return Wr=c,sn(),c}function Jr(t={}){const{threshold:e=1.35,cooldown:s=250,history:i=43,floor:a=.08}=t,r=[];let n=-1/0;return(t,o)=>{const l=r.length?r.reduce((t,e)=>t+e,0)/r.length:t,c=r.length>=8;return r.push(t),r.length>i&&r.shift(),!!(c&&t>a&&t>l*e&&o-n>=s)&&(n=o,!0)}}const Zr=new Set;let Qr=0;function tn(t,e){if("undefined"==typeof document)return;const s=document.documentElement.style;s.setProperty("--usa-audio-level",t.toFixed(3)),s.setProperty("--usa-audio-bass",e.toFixed(3))}function en(t){if(Qr=0,!Wr)return;const{level:e,bass:s}=Wr.sample(),i=h();tn(i?0:e,i?0:s);for(const e of Array.from(Zr))e.detect(s,t)&&e.cb({energy:s,time:t});sn()}function sn(){!Qr&&Wr&&"function"==typeof requestAnimationFrame&&(Qr=requestAnimationFrame(en))}function an(t,e={}){const s={detect:Jr(e),cb:t};return Zr.add(s),sn(),()=>{Zr.delete(s)}}function rn(t,e){if(Wr)return{...Wr.sample(),idle:!1};const s=new Uint8Array(e),i=new Uint8Array(2*e);for(let i=0;i<e;i++)s[i]=70+50*Math.sin(2*t+.35*i)*Math.cos(.7*t+.11*i)*(1-i/e);for(let e=0;e<i.length;e++)i[e]=128+22*Math.sin(3*t+.12*e);return{level:.25+.1*Math.sin(2*t),bass:.35+.2*Math.sin(2.4*t),freq:s,wave:i,idle:!0}}const nn=(t,e,s,i)=>({name:t,kind:"background",description:e,reduced:"skip",defaults:{colors:vr,background:"#0b0d12",speed:1,quality:1,...s},run:(t,e,s)=>Dr(t,s,i,e)}),on=[nn("spectrum-bars","Frequency bars dance to the audio (mirror them with `mirror: true`).",{bars:48,gap:2,mirror:!1},{draw:({ctx:t,w:e,h:s,t:i,o:a})=>{t.fillStyle=a.background,t.fillRect(0,0,e,s);const r=rn(i,a.bars),n=Math.max(1,Math.floor(.7*r.freq.length/a.bars)),o=e/a.bars;for(let e=0;e<a.bars;e++){let i=0;for(let t=0;t<n;t++)i+=r.freq[Math.min(r.freq.length-1,e*n+t)];const l=i/n/255*s*(a.mirror?.5:.9);t.fillStyle=a.colors[e%a.colors.length],t.fillRect(e*o+a.gap/2,a.mirror?s/2-l:s-l,Math.max(1,o-a.gap),a.mirror?2*l:l)}}}),nn("pulse-ring","Glowing rings pulse with the bass.",{rings:3,color:"#7c5cff"},{draw:({ctx:t,w:e,h:s,t:i,o:a})=>{t.fillStyle=a.background,t.fillRect(0,0,e,s);const r=rn(i,32),[n,o,l]=Xr(a.color),c=.18*Math.min(e,s);for(let i=0;i<a.rings;i++){const a=c*(1+.55*i)*(1+.6*r.bass);t.strokeStyle=`rgba(${n},${o},${l},${(.9-.25*i)*(.4+r.level)})`,t.lineWidth=3+10*r.bass-i,t.beginPath(),t.arc(e/2,s/2,a,0,2*Math.PI),t.stroke()}}}),nn("wave-ring","The live waveform wrapped into a circle.",{color:"#22d3ee",amplitude:.35},{draw:({ctx:t,w:e,h:s,t:i,o:a})=>{t.fillStyle=a.background,t.fillRect(0,0,e,s);const r=rn(i,64),n=r.wave.length,o=.28*Math.min(e,s);t.strokeStyle=a.color,t.lineWidth=2,t.beginPath();for(let i=0;i<=n;i++){const l=i/n*Math.PI*2,c=o*(1+(r.wave[i%n]-128)/128*a.amplitude*2),u=e/2+Math.cos(l)*c,d=s/2+Math.sin(l)*c;i?t.lineTo(u,d):t.moveTo(u,d)}t.closePath(),t.stroke()}})];function ln(t="usa-audio"){return y(t,t=>class extends t{constructor(){super(...arguments),this.active=!1,this.audio=null,this.off=null}static get observedAttributes(){return["source"]}button(){let t=this.querySelector("[data-audio-toggle]");return t||(t=document.createElement("button"),t.type="button",t.setAttribute("data-audio-toggle",""),t.textContent=this.str("label","🔊 Enable sound-reactive effects"),this.prepend(t),this.onCleanup(()=>t.remove())),t}async toggle(){const t=this.button();if(this.active)return this.stop();try{this.audio=await Kr(this.str("source","mic")),this.active=!0,this.removeAttribute("data-audio-error"),t.setAttribute("aria-pressed","true"),this.off=an(t=>{this.dispatchEvent(new CustomEvent("usa-beat",{detail:t,bubbles:!0})),h()||this.querySelectorAll("[data-usa-beat]").forEach(t=>{let e={};try{e=JSON.parse(t.dataset.usaBeatOptions||"{}")||{}}catch{}Fa(t,t.dataset.usaBeat||"pulse",e).catch(()=>{})})},{threshold:this.num("threshold",1.35),cooldown:this.num("cooldown",250)})}catch(t){this.setAttribute("data-audio-error",""),this.dispatchEvent(new CustomEvent("usa-audio-error",{detail:{error:t},bubbles:!0}))}}stop(){this.off?.(),this.off=null,this.audio&&Wr===this.audio&&this.audio.stop(),this.audio=null,this.active=!1,this.querySelector("[data-audio-toggle]")?.setAttribute("aria-pressed","false")}mount(){const t=this.button();t.setAttribute("aria-pressed","false"),this.listen(t,"click",()=>{this.toggle()}),this.onCleanup(()=>this.stop())}},{id:"usa-audio",text:"usa-audio{display:block}usa-audio[data-audio-error] [data-audio-toggle]{outline:2px solid #ff5c8a}"})}const cn=(t,e)=>e.touch||"touch"!==t.pointerType;function un(t,e,s){const i=[],a=function(t){const e=document.createElement("canvas");e.style.cssText="position:absolute;inset:0;width:100%;height:100%",mr().appendChild(e);const s=e.getContext("2d");let i=0;const a=r=>{if(i=0,!s)return;const n=innerWidth,o=innerHeight,l=Math.min(2,devicePixelRatio||1);e.width===Math.round(n*l)&&e.height===Math.round(o*l)||(e.width=Math.round(n*l),e.height=Math.round(o*l)),s.setTransform(l,0,0,l,0,0),s.clearRect(0,0,n,o),t(s,n,o,r)&&(i=requestAnimationFrame(a))};return{kick:()=>{!i&&s&&(i=requestAnimationFrame(a))},stop:()=>{cancelAnimationFrame(i),i=0,e.remove()}}}((t,a,r,n)=>{for(;i.length&&n-i[0].t>e.life;)i.shift();return i.length>1&&s(t,i,n),i.length>0}),r=t=>{cn(t,e)&&(i.push({x:t.clientX,y:t.clientY,t:performance.now()}),i.length>64&&i.shift(),a.kick())};return t.addEventListener("pointermove",r,{passive:!0}),()=>{t.removeEventListener("pointermove",r),a.stop()}}const dn=[{name:"comet-trail",kind:"cursor",description:"A glowing comet tail follows the pointer over the element (persistent; `color`, `width`, `life`).",defaults:{color:"#7c5cff",width:10,life:320,touch:!1},run:(t,e)=>un(t,e,(t,s,i)=>{const[a,r,n]=Xr(e.color);t.lineCap="round";for(let o=1;o<s.length;o++){const l=1-(i-s[o].t)/e.life;t.strokeStyle=`rgba(${a},${r},${n},${(.9*l).toFixed(3)})`,t.lineWidth=Math.max(.5,e.width*l),t.beginPath(),t.moveTo(s[o-1].x,s[o-1].y),t.lineTo(s[o].x,s[o].y),t.stroke()}})},{name:"ribbon-trail",kind:"cursor",description:"A smooth rainbow ribbon flows behind the pointer (persistent; `width`, `life`).",defaults:{width:18,life:600,touch:!1},run:(t,e)=>un(t,e,(t,s,i)=>{for(let a=2;a<s.length;a++){const r=1-(i-s[a].t)/e.life,n=s[a-2],o=s[a-1],l=s[a];t.strokeStyle=`hsla(${s[a].t/6%360},90%,62%,${(.85*r).toFixed(3)})`,t.lineWidth=Math.max(.5,e.width*r*Math.sin(Math.PI*Math.min(1,a/s.length*1.1))),t.lineCap="round",t.beginPath(),t.moveTo((n.x+o.x)/2,(n.y+o.y)/2),t.quadraticCurveTo(o.x,o.y,(o.x+l.x)/2,(o.y+l.y)/2),t.stroke()}})},{name:"sparkle-trail",kind:"cursor",description:"Little stars twinkle off the pointer as it moves (persistent; `colors`, `spacing` px between stars).",defaults:{colors:vr,spacing:14,size:14,touch:!1},run:(t,e,s)=>{let i=-1e4,a=-1e4;const r=t=>{if(!cn(t,e)||Math.hypot(t.clientX-i,t.clientY-a)<e.spacing)return;i=t.clientX,a=t.clientY;const r=e.size*xr(.6,1.2);br(t.clientX-r/2,t.clientY-r/2,`font-size:${r}px;line-height:1;color:${e.colors[Math.floor(xr(0,e.colors.length))]}`,s,[{transform:"translate(0,0) scale(0) rotate(0deg)",opacity:1},{transform:`translate(${xr(-14,14)}px,${xr(4,26)}px) scale(1) rotate(${xr(-90,90)}deg)`,opacity:0}],{duration:xr(500,800),easing:"ease-out"},"✦")};return t.addEventListener("pointermove",r,{passive:!0}),()=>t.removeEventListener("pointermove",r)}},{name:"magnetic-dots",kind:"cursor",description:"A grid of dots behind the content leans toward the pointer like iron filings to a magnet (persistent; `gap`, `radius`, `color`).",defaults:{gap:22,radius:120,color:"#7c5cff",background:"transparent",touch:!1},reduced:"skip",run:(t,e,s)=>{const i={x:-1e4,y:-1e4},a=s=>{if(!cn(s,e))return;const a=t.getBoundingClientRect();i.x=s.clientX-a.left,i.y=s.clientY-a.top},r=()=>(i.x=-1e4,i.y=-1e4);t.addEventListener("pointermove",a,{passive:!0}),t.addEventListener("pointerleave",r);const n=Dr(t,s,{draw:({ctx:t,w:s,h:a})=>{t.clearRect(0,0,s,a),"transparent"!==e.background&&(t.fillStyle=e.background,t.fillRect(0,0,s,a)),t.fillStyle=e.color;for(let r=e.gap/2;r<a;r+=e.gap)for(let a=e.gap/2;a<s;a+=e.gap){const s=i.x-a,n=i.y-r,o=Math.hypot(s,n),l=o<e.radius?(1-o/e.radius)**2:0,c=1.5+3*l;t.globalAlpha=.35+.65*l,t.fillRect(a+s*l*.35-c/2,r+n*l*.35-c/2,c,c)}t.globalAlpha=1}},e);return()=>{t.removeEventListener("pointermove",a),t.removeEventListener("pointerleave",r),n()}}},{name:"spotlight-cursor",kind:"cursor",description:"A soft light follows the pointer across the element, easing behind it (persistent; `color`, `size`).",defaults:{color:"#ffffff",size:260,ease:.18,touch:!1},run:(t,e)=>{const[s,i,a]=Xr(e.color),r=document.createElement("span");r.setAttribute("aria-hidden","true"),r.style.cssText=`position:absolute;inset:0;pointer-events:none;border-radius:inherit;opacity:0;transition:opacity .25s;mix-blend-mode:soft-light;background:radial-gradient(circle ${e.size/2}px at var(--sx,50%) var(--sy,50%),rgba(${s},${i},${a},.75),transparent)`;const n=t.style.position;"static"===getComputedStyle(t).position&&(t.style.position="relative"),t.appendChild(r);let o=0,l=0,c=0,u=0,d=0;const h=()=>{c+=(o-c)*e.ease,u+=(l-u)*e.ease,r.style.setProperty("--sx",`${c.toFixed(1)}px`),r.style.setProperty("--sy",`${u.toFixed(1)}px`),d=Math.abs(o-c)+Math.abs(l-u)>.3?requestAnimationFrame(h):0},p=s=>{if(!cn(s,e))return;const i=t.getBoundingClientRect();o=s.clientX-i.left,l=s.clientY-i.top,"1"!==r.style.opacity&&(c=o,u=l,r.style.opacity="1"),d||(d=requestAnimationFrame(h))},f=()=>r.style.opacity="0";return t.addEventListener("pointermove",p,{passive:!0}),t.addEventListener("pointerleave",f),()=>{cancelAnimationFrame(d),t.removeEventListener("pointermove",p),t.removeEventListener("pointerleave",f),r.remove(),t.style.position=n}}}],hn=["fling","twist","long-press"];function pn(t,e=90){if(t.length<2)return{vx:0,vy:0,speed:0};const s=t[t.length-1];let i=t[0];for(let a=t.length-2;a>=0&&(i=t[a],!(s.t-t[a].t>=e));a--);const a=Math.max(1,s.t-i.t),r=(s.x-i.x)/a,n=(s.y-i.y)/a;return{vx:r,vy:n,speed:Math.hypot(r,n)}}function fn(t,e){let s=(e-t)%360;return s>180&&(s-=360),s<=-180&&(s+=360),s}function mn(t,e,s,i={}){const{velocity:a=.8,angle:r=30,duration:n=650,tolerance:o=10,effectOptions:l={}}=i,c=new Map;let u=[],d=null,h=null;const p=(e,i)=>{t.dispatchEvent(new CustomEvent("usa-gesture",{detail:e,bubbles:!0})),"function"==typeof s?s(e,i):Fa(t,s,l,i).catch(()=>{})},f=()=>{const[t,e]=[...c.values()];return 180*Math.atan2(e.y-t.y,e.x-t.x)/Math.PI},m=e=>{t.style.setProperty("--usa-charge",e.toFixed(3)),t.toggleAttribute("data-charging",e>0&&e<1)},g=()=>{h&&(cancelAnimationFrame(h.raf),h=null,m(0))},b=s=>{if(c.set(s.pointerId??1,{x:s.clientX,y:s.clientY}),"fling"===e&&(u=[{x:s.clientX,y:s.clientY,t:s.timeStamp||performance.now()}]),"twist"===e&&2===c.size&&(d=f()),"long-press"===e&&1===c.size){h={x:s.clientX,y:s.clientY,t0:performance.now(),raf:0};const i=a=>{if(!h)return;const r=Math.min(1,(a-h.t0)/n);m(r),r>=1?(g(),t.style.setProperty("--usa-charge","1"),p({gesture:e,charge:1},s)):h.raf=requestAnimationFrame(i)};h.raf=requestAnimationFrame(i)}},y=t=>{if(c.has(t.pointerId??1))if(c.set(t.pointerId??1,{x:t.clientX,y:t.clientY}),"fling"===e)u.push({x:t.clientX,y:t.clientY,t:t.timeStamp||performance.now()}),u.length>20&&u.shift();else if("twist"===e&&c.size>=2&&null!==d){const s=f(),i=fn(d,s);Math.abs(i)>=r&&(d=s,p({gesture:e,angle:i,direction:i>0?"cw":"ccw"},t))}else"long-press"===e&&h&&Math.hypot(t.clientX-h.x,t.clientY-h.y)>o&&g()},v=t=>{if(c.delete(t.pointerId??1),"fling"===e&&u.length){u.push({x:t.clientX,y:t.clientY,t:t.timeStamp||performance.now()});const s=pn(u);if(u=[],s.speed>=a){const i=Math.abs(s.vx)>Math.abs(s.vy)?s.vx>0?"right":"left":s.vy>0?"down":"up";p({gesture:e,...s,direction:i},t)}}c.size<2&&(d=null),g()};return t.addEventListener("pointerdown",b),t.addEventListener("pointermove",y),t.addEventListener("pointerup",v),t.addEventListener("pointercancel",v),"twist"!==e||t.style.touchAction||(t.style.touchAction="none"),()=>{g(),t.removeEventListener("pointerdown",b),t.removeEventListener("pointermove",y),t.removeEventListener("pointerup",v),t.removeEventListener("pointercancel",v)}}function gn(t="usa-gesture-fx"){return y(t,t=>class extends t{static get observedAttributes(){return["gesture","effect","options"]}get gesture(){const t=this.str("gesture","fling");return hn.includes(t)?t:"fling"}mount(){let t={};try{t=JSON.parse(this.str("options","{}"))||{}}catch{}const e=this.flag("self")?this:this.firstElementChild||this,s=this.str("effect","pulse");this.onCleanup(mn(this,this.gesture,(i,a)=>{Fa(e,s,t,a).catch(()=>{})},{velocity:this.num("velocity",.8),angle:this.num("angle",30),duration:this.num("duration",650)}))}},{id:"usa-gesture-fx",text:"usa-gesture-fx{display:inline-block;touch-action:none;user-select:none}"})}const bn=new WeakMap;function yn(t,e){const s=e??"true"!==t.getAttribute("aria-pressed");return t.setAttribute("aria-pressed",String(s)),s}function vn(t,e,s){return bn.has(t)||bn.set(t,t.innerHTML),t.setAttribute("aria-live","polite"),t.textContent=e,new Promise(e=>setTimeout(()=>{t.innerHTML=bn.get(t),bn.delete(t),t.removeAttribute("aria-live"),e()},s))}function xn(t,e,s){const i=t.querySelector("[data-count]")||t,a=(Number(i.dataset.count??(i.textContent||"").replace(/[^\d.-]/g,""))||0)+e;return i.dataset.count=String(a),i.textContent=String(a),s?.animate(i,[{transform:`translateY(${e>0?60:-60}%)`,opacity:0},{transform:"none",opacity:1}],{duration:260,easing:"cubic-bezier(.2,1.4,.4,1)"}),a}const wn=(t,e,s=1.25,i=380)=>e.animate(t,[{transform:"scale(1)"},{transform:`scale(${s})`,offset:.4},{transform:"scale(1)"}],{duration:i,easing:"cubic-bezier(.2,1.4,.4,1)"});function kn(t,e,s,i,a=6,r=!1){const{x:n,y:o}=gr(t,e);return wr(Array.from({length:a},(t,l)=>{const c=r?-Math.PI/2+xr(-.6,.6):l/a*Math.PI*2,u=xr(28,56);return br(n-7,o-7,`font-size:14px;line-height:1;color:${i}`,e,[{transform:"translate(0,0) scale(.4)",opacity:1},{transform:`translate(${Math.cos(c)*u}px,${Math.sin(c)*u}px) scale(1)`,opacity:0}],{duration:xr(500,750),easing:"cubic-bezier(.2,.8,.3,1)"},s)}))}const _n=(t,e,s,i)=>({name:t,kind:"click",description:e,defaults:s,run:i}),An=(t,e,s,i)=>({name:t,kind:"attention",description:e,defaults:s,run:i}),Mn=[_n("copy-success",'Copies `text` (or `data-copy` / the target of `for`) to the clipboard and swaps the label to "Copied ✓".',{text:"",label:"Copied ✓",ms:1500},(t,e,s)=>{const i=t.getAttribute("for")?document.getElementById(t.getAttribute("for")):null,a=e.text||t.dataset.copy||i?.value||i?.textContent||"";return navigator.clipboard?.writeText(a).catch(()=>{}),wn(t,s,1.08),vn(t,e.label,e.ms)}),_n("toggle-morph","Toggles `aria-pressed` with a squash-and-stretch morph.",{},(t,e,s)=>{const i=yn(t);return s.animate(t,[{transform:"scale(1,1)"},{transform:`scale(${i?1.15:.85},${i?.85:1.15})`,offset:.35},{transform:"scale(1,1)"}],{duration:360,easing:"ease-out"})}),_n("password-reveal","Shows / hides the password input (`for` id, or the previous input) with an eye blink.",{show:"Hide password",hide:"Show password"},(t,e,s)=>{const i=t.getAttribute("for")?document.getElementById(t.getAttribute("for")):t.previousElementSibling;if(!i||!("type"in i))return;const a="password"===i.type;return i.type=a?"text":"password",yn(t,a),t.setAttribute("aria-label",a?e.show:e.hide),s.animate(t,[{transform:"scaleY(1)"},{transform:"scaleY(.1)",offset:.5},{transform:"scaleY(1)"}],{duration:240,easing:"ease-in-out"})}),_n("favorite-star","Toggles a favourite: the star pops and throws little stars (`color`).",{color:"#facc15"},(t,e,s)=>{const i=yn(t);return Promise.all([wn(t,s,i?1.35:.85)?.finished,i?kn(t,s,"★",e.color):null])}),_n("like-heart","Toggles a like: the heart beats and hearts float up (`color`).",{color:"#ff5c8a"},(t,e,s)=>{const i=yn(t);return Promise.all([wn(t,s,i?1.3:.9)?.finished,i?kn(t,s,"♥",e.color,5,!0):null])}),_n("bookmark-flip","Toggles a bookmark with a 3D flip.",{},(t,e,s)=>(yn(t),s.animate(t,[{transform:"perspective(400px) rotateY(0)"},{transform:"perspective(400px) rotateY(180deg)"},{transform:"perspective(400px) rotateY(360deg)"}],{duration:520,easing:"ease-in-out"}))),_n("download-progress",'Fills a progress bar over `duration` ms, then shows "Done ✓" (`aria-busy` while running; fires `usa-done`).',{duration:1600,label:"Done ✓",color:"#34d399"},(t,e,s)=>{if("true"===t.getAttribute("aria-busy"))return;t.setAttribute("aria-busy","true");const[i,a]=yr(t,`background:${e.color}55;transform-origin:left;transform:scaleX(0)`),r=s.animate(i,[{transform:"scaleX(0)"},{transform:"scaleX(1)"}],{duration:e.duration,easing:"linear",fill:"forwards"});return(r?r.finished.catch(()=>{}):Promise.resolve()).then(()=>(a(),t.removeAttribute("aria-busy"),t.dispatchEvent(new CustomEvent("usa-done",{bubbles:!0})),vn(t,e.label,1400)))}),_n("submit-loading",'Shows "Sending…" with pulsing dots for `duration` ms, then "Sent ✓" (`aria-busy`, `usa-done`).',{duration:1200,loading:"Sending…",label:"Sent ✓"},(t,e,s)=>{if("true"===t.getAttribute("aria-busy"))return;t.setAttribute("aria-busy","true");const i=vn(t,e.loading,e.duration),a=s.animate(t,[{opacity:1},{opacity:.55},{opacity:1}],{duration:600,iterations:Math.max(1,Math.round(e.duration/600))});return i.then(()=>(a?.cancel(),t.removeAttribute("aria-busy"),t.dispatchEvent(new CustomEvent("usa-done",{bubbles:!0})),vn(t,e.label,1400)))}),_n("send-plane","A paper plane ✈ takes off from the button.",{color:"#22d3ee"},(t,e,s)=>{const i=t.getBoundingClientRect();return wn(t,s,.92,200),br(i.left+i.width/2-8,i.top+i.height/2-8,`font-size:16px;color:${e.color}`,s,[{transform:"translate(0,0) rotate(0)",opacity:1},{transform:"translate(40px,-10px) rotate(-10deg)",opacity:1,offset:.4},{transform:"translate(160px,-90px) rotate(-25deg)",opacity:0}],{duration:800,easing:"ease-in"},"✈")?.finished}),_n("add-to-cart",'Bumps `[data-count]` by one and floats a "+1" (`text`).',{text:"+1",color:"#34d399"},(t,e,s)=>{xn(t,1,s);const{x:i,y:a}=gr(t,s);return br(i-10,a-10,`font:700 14px system-ui;color:${e.color}`,s,[{transform:"translateY(0)",opacity:1},{transform:"translateY(-40px)",opacity:0}],{duration:700,easing:"ease-out"},e.text)?.finished}),_n("counter-bump","Adds `step` to `[data-count]` with a rolling number.",{step:1},(t,e,s)=>{xn(t,Number(e.step)||1,s)}),_n("upvote","Toggles an upvote: the arrow nudges up and `[data-count]` ±1.",{},(t,e,s)=>{const i=yn(t);return xn(t,i?1:-1,s),s.animate(t,[{transform:"translateY(0)"},{transform:`translateY(${i?-6:4}px)`,offset:.4},{transform:"translateY(0)"}],{duration:320,easing:"cubic-bezier(.2,1.4,.4,1)"})}),_n("clap","Counts claps in `[data-count]` with a 👏 burst on every press.",{},(t,e,s)=>(xn(t,1,s),Promise.all([wn(t,s,1.15,240)?.finished,kn(t,s,"👏","inherit",3,!0)]))),_n("emoji-react","Pops one `emoji` up from the pointer (reaction button).",{emoji:"🎉"},(t,e,s)=>kn(t,s,e.emoji,"inherit",1,!0)),_n("refresh-spin","Spins the icon one turn (`turns`).",{turns:1},(t,e,s)=>s.animate(t,[{transform:"rotate(0)"},{transform:`rotate(${360*e.turns}deg)`}],{duration:600*e.turns,easing:"cubic-bezier(.4,0,.2,1)"})),_n("trash-shake","Shakes, then drops and fades (`remove: true` removes the element afterwards).",{remove:!1},(t,e,s)=>{const i=s.animate(t,[{transform:"none",opacity:1},{transform:"rotate(-6deg)",offset:.15},{transform:"rotate(6deg)",offset:.3},{transform:"rotate(0)",offset:.45,opacity:1},{transform:"translateY(30px) scale(.8)",opacity:0}],{duration:650,easing:"ease-in",fill:"forwards"}),a=()=>e.remove?t.remove():i?.cancel();return i?i.finished.then(a,a):void a()}),_n("check-toggle","Toggles a check mark (`aria-checked` for role=checkbox, else `aria-pressed`) that scales in.",{},(t,e,s)=>{const i="checkbox"===t.getAttribute("role")?"aria-checked":"aria-pressed",a="true"!==t.getAttribute(i);return t.setAttribute(i,String(a)),s.animate(t,a?[{transform:"scale(.6)"},{transform:"scale(1.15)",offset:.6},{transform:"scale(1)"}]:[{transform:"scale(1)"},{transform:"scale(.85)"},{transform:"scale(1)"}],{duration:280,easing:"ease-out"})}),An("input-shake","Shakes an invalid field side to side and sets `aria-invalid` (`color` outline flash).",{color:"#ff5c8a"},(t,e,s)=>{t.setAttribute("aria-invalid","true");const i=t.style.outline;return t.style.outline=`2px solid ${e.color}`,setTimeout(()=>t.style.outline=i,900),s.animate(t,[0,-8,8,-6,6,-3,0].map(t=>({transform:`translateX(${t}px)`})),{duration:420,easing:"ease-out"})}),An("error-flash","Flashes the element red once (no more than one flash per call).",{color:"#ff5c8a"},(t,e,s)=>s.animate(t,[{boxShadow:`0 0 0 0 ${e.color}00`},{boxShadow:`0 0 0 4px ${e.color}`,offset:.3},{boxShadow:`0 0 0 0 ${e.color}00`}],{duration:700})),An("success-check","A green ✓ badge pops over the element and fades.",{color:"#34d399"},(t,e,s)=>{const[i,a]=yr(t,`display:grid;place-items:center;font:700 22px system-ui;color:#fff;background:${e.color}d0`);i.textContent="✓";const r=s.animate(i,[{opacity:0,transform:"scale(.6)"},{opacity:1,transform:"scale(1)",offset:.3},{opacity:1,offset:.75},{opacity:0}],{duration:1100,easing:"ease-out"});return r?r.finished.then(a,a):void setTimeout(a,900)}),An("nudge-hint",'A small sideways nudge that says "try me" (`distance`).',{distance:6},(t,e,s)=>s.animate(t,[0,e.distance,0,e.distance/2,0].map(t=>({transform:`translateX(${t}px)`})),{duration:700,easing:"ease-in-out"})),An("focus-pulse","A ring pulses around the element to draw focus to it (`color`).",{color:"#7c5cff"},(t,e,s)=>s.animate(t,[{boxShadow:`0 0 0 0 ${e.color}aa`},{boxShadow:`0 0 0 12px ${e.color}00`}],{duration:900,iterations:2,easing:"ease-out"})),An("notify-badge","Bumps the badge count (`[data-count]`, `step`) with a pop — for new notifications.",{step:1},(t,e,s)=>(xn(t,Number(e.step)||1,s),wn(t,s,1.3,320)))],En=["enter","hover","click","attention","background"],Sn=(t,e,s,i,a)=>({enter:{effect:t},hover:{effect:e},click:{effect:s},attention:{effect:i},background:{effect:a}}),Cn={neon:{name:"neon",vars:{bg:"#07070c",fg:"#e8e8ff",accent:"#22d3ee","accent-2":"#ff2bd6",surface:"#11111c",border:"1px solid #22d3ee",radius:"10px",shadow:"0 0 18px #22d3ee66, inset 0 0 12px #ff2bd622",font:"ui-monospace, SFMono-Regular, Menlo, monospace"},motion:{duration:{fast:120,normal:220},easing:{standard:"cubic-bezier(0.2, 0, 0, 1)"}},presets:Sn("fade-up","neon-flicker","shockwave","neon-flicker","starfield")},paper:{name:"paper",vars:{bg:"#f6f1e7",fg:"#2b2721",accent:"#c2410c","accent-2":"#0f766e",surface:"#fffdf8",border:"1px solid #e3dccd",radius:"4px",shadow:"0 1px 0 #0000000d, 0 10px 24px -14px #00000040",font:'Georgia, "Times New Roman", serif'},motion:{duration:{fast:200,normal:380,slow:700},easing:{standard:"cubic-bezier(0, 0, 0, 1)"}},presets:Sn("paper-fold","wiggle","ink-splash","nudge-hint","contours")},glass:{name:"glass",vars:{bg:"linear-gradient(135deg, #1e1b4b, #0e7490)",fg:"#f8fafc",accent:"#a5f3fc","accent-2":"#c4b5fd",surface:"#ffffff1f",border:"1px solid #ffffff40",radius:"18px",shadow:"0 8px 32px #0000003d",font:'system-ui, -apple-system, "Segoe UI", sans-serif'},motion:{duration:{normal:320},easing:{standard:"cubic-bezier(0.22, 1, 0.36, 1)"}},presets:Sn("blur","glass-shine","ripple","focus-pulse","mesh-gradient")},retro:{name:"retro",vars:{bg:"#1d1135",fg:"#ffe9a8",accent:"#ff6b35","accent-2":"#2ec4b6",surface:"#2a1b4d",border:"3px solid #ffe9a8",radius:"0",shadow:"4px 4px 0 #ff6b35",font:'"Courier New", ui-monospace, monospace'},motion:{duration:{normal:300},easing:{standard:"steps(6, end)"}},presets:Sn("clip-up","rubber-band","star-burst","tada","retro-scanlines")},brutalist:{name:"brutalist",vars:{bg:"#ffffff",fg:"#000000",accent:"#ff3b00","accent-2":"#0047ff",surface:"#fff200",border:"3px solid #000000",radius:"0",shadow:"6px 6px 0 #000000",font:'"Arial Black", Arial, sans-serif'},motion:{duration:{fast:80,normal:160},easing:{standard:"linear"}},presets:Sn("drop-bounce","jelly","brutal-shift","shake","voronoi")}},$n=Object.keys(Cn),Tn=t=>{const e="string"==typeof t?Cn[t]:t;if(!e)throw new Error(`[motionary] unknown theme "${String(t)}" — ${$n.join(", ")}`);return e};function zn(t){const e=Tn(t),s={};for(const[t,i]of Object.entries(e.vars))s[`--usa-theme-${t}`]=i;return{...s,...ct(ot(e.motion))}}function Pn(t,e){const s=Tn(t),i=e||document.documentElement;f("usa-theme","[data-usa-theme]{background:var(--usa-theme-bg);color:var(--usa-theme-fg);font-family:var(--usa-theme-font)}\n[data-usa-theme] .usa-surface{background:var(--usa-theme-surface);border:var(--usa-theme-border);border-radius:var(--usa-theme-radius);box-shadow:var(--usa-theme-shadow)}\n[data-usa-theme] .usa-accent{color:var(--usa-theme-accent)}\n[data-usa-theme=glass] .usa-surface{-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}");const a=i.getAttribute("data-usa-theme");i.setAttribute("data-usa-theme",s.name);const r=Object.entries(s.vars).map(([t,e])=>[`--usa-theme-${t}`,e]),n=r.map(([t])=>[t,i.style.getPropertyValue(t)]);for(const[t,e]of r)i.style.setProperty(t,e);let o;if(i===document.documentElement)o=ht(s.motion,i);else{const t=Object.entries(ct(ot(s.motion))),e=t.map(([t])=>[t,i.style.getPropertyValue(t)]);for(const[e,s]of t)i.style.setProperty(e,s);o=()=>e.forEach(([t,e])=>e?i.style.setProperty(t,e):i.style.removeProperty(t))}return()=>{o(),n.forEach(([t,e])=>e?i.style.setProperty(t,e):i.style.removeProperty(t)),null===a?i.removeAttribute("data-usa-theme"):i.setAttribute("data-usa-theme",a)}}function Fn(t,e){return Tn(t).presets[e]}const Ln=[{name:"neon-flicker",kind:"attention",description:"A neon tube flickering on — dims (never blacks out) twice, well under 3 flashes per second.",defaults:{color:"#22d3ee"},run:(t,e,s)=>s.animate(t,[{opacity:1,filter:"none"},{opacity:.55,offset:.2},{opacity:1,filter:`drop-shadow(0 0 6px ${e.color})`,offset:.35},{opacity:.7,offset:.6},{opacity:1,filter:`drop-shadow(0 0 10px ${e.color})`}],{duration:900,easing:"linear"})},{name:"paper-fold",kind:"enter",description:"Unfolds like a sheet of paper hinged at the top.",defaults:{duration:600},run:(t,e,s)=>s.animate(t,[{transform:"perspective(800px) rotateX(-85deg)",transformOrigin:"top",opacity:0},{transform:"perspective(800px) rotateX(12deg)",transformOrigin:"top",opacity:1,offset:.7},{transform:"perspective(800px) rotateX(0)",transformOrigin:"top",opacity:1}],{duration:e.duration,easing:"ease-out",fill:"backwards"})},{name:"glass-shine",kind:"hover",description:"A bright diagonal shine sweeps across frosted glass.",defaults:{duration:700},run:(t,e,s)=>{const[i,a]=yr(t,"overflow:hidden;background:linear-gradient(105deg,transparent 35%,#ffffff8c 50%,transparent 65%);background-size:250% 100%;background-position:120% 0"),r=s.animate(i,[{backgroundPosition:"120% 0"},{backgroundPosition:"-20% 0"}],{duration:e.duration,easing:"ease-in-out"});return r?r.finished.then(a,a):void a()}},{name:"retro-scanlines",kind:"background",description:"CRT scanlines with a slow roll (static lines under reduced motion; persistent).",reduced:"run",defaults:{opacity:.18},run:(t,e,s)=>{const[i,a]=yr(t,`opacity:${e.opacity};background:repeating-linear-gradient(0deg,#000 0 1px,transparent 1px 3px);mix-blend-mode:multiply`),r=s.reduced?null:s.animate(i,[{backgroundPosition:"0 0"},{backgroundPosition:"0 30px"}],{duration:2400,iterations:1/0,easing:"linear"});return()=>{r?.cancel(),a()}}},{name:"brutal-shift",kind:"click",description:"Presses into its hard drop shadow and springs back (brutalist buttons).",defaults:{offset:6},run:(t,e,s)=>s.animate(t,[{transform:"translate(0,0)"},{transform:`translate(${e.offset}px,${e.offset}px)`,boxShadow:"0 0 0 #000",offset:.3},{transform:"translate(0,0)"}],{duration:260,easing:"ease-out"})}];function qn(t="usa-theme"){return y(t,t=>class extends t{static get observedAttributes(){return["name"]}get theme(){const t=this.str("name","neon");return Cn[t]?t:"neon"}mount(){this.onCleanup(Pn(this.theme,this)),this.querySelectorAll("[data-theme-fx]").forEach(t=>{const e=t.dataset.themeFx||"click";if(!En.includes(e))return;const s=Fn(this.theme,e),i="attention"===e?"click":"background"===e?"load":e;try{this.onCleanup(La(t,s.effect,{...s.options||{},trigger:i}))}catch{}})}},{id:"usa-theme-el",text:"usa-theme{display:block}"})}const Rn="use-scroll-animate/animation";function In(t){const e="string"==typeof t?JSON.parse(t):t;if(!e||"object"!=typeof e)throw new Error("[motionary] animation: expected an object");let s;if("use-scroll-animate/playground"===e.format)s=function(t){try{const e=t.replace(/-/g,"+").replace(/_/g,"/"),s=decodeURIComponent(escape(atob(e)));return(JSON.parse(s).t||[]).map(([t,e,s,i],a)=>({target:`:scope > :nth-child(${a+1})`,preset:t,start:e,duration:s,label:i}))}catch{return[]}}(String(e.state||""));else{if(!Array.isArray(e.tracks))throw new Error('[motionary] animation: missing "tracks"');s=e.tracks}if(e.format&&e.format!==Rn&&"use-scroll-animate/playground"!==e.format)throw new Error(`[motionary] animation: unknown format "${e.format}"`);if(e.version&&e.version>1&&e.format===Rn)throw new Error(`[motionary] animation: version ${e.version} needs a newer motionary`);const i=s.filter(t=>t&&(t.effect||t.preset||Array.isArray(t.keyframes))).map(t=>({...t,target:t.target||":scope",start:Math.max(0,Number(t.start)||0),duration:t.effect?0:Math.max(1,Number(t.duration)||600)})),a=i.reduce((t,e)=>Math.max(t,e.start+e.duration),0);return{tracks:i,duration:Math.max(a,Number(e.duration)||0),loop:!!e.loop,name:String(e.name||"animation")}}const Nn=(t,e)=>{if(":scope"===e)return[t];try{return Array.from(t.querySelectorAll(e))}catch{return[]}};function Yn(t,e,s={}){const i=In(e),a=s.loop??i.loop,r=[],n=[];for(const e of i.tracks){const s=Nn(t,e.target);if(e.effect)n.push({els:s,t:e,fired:!1});else{const t=e.keyframes||yt[e.preset]||yt.fade;for(const i of s){if("function"!=typeof i.animate)continue;const s=i.animate(t,{duration:e.duration,delay:e.start,easing:e.easing||"cubic-bezier(0.22, 1, 0.36, 1)",fill:"both"});s.pause(),s.currentTime=0,r.push(s)}}}let o,l=0,c=!1,u=0,d=0,p=new Promise(t=>o=t);const f=t=>{l=Math.min(i.duration,Math.max(0,t));for(const t of r)t.currentTime=l},m=()=>{if(!h())for(const t of n)if(!t.fired&&l>=t.t.start){t.fired=!0;for(const e of t.els)Fa(e,t.t.effect,t.t.options||{}).catch(()=>{})}},g=()=>{o(),s.onFinish?.(),p=new Promise(t=>o=t)},b=t=>{if(u=0,c){if(f(l+(t-d)*y.rate),d=t,m(),l>=i.duration){if(!a)return c=!1,void g();n.forEach(t=>t.fired=!1),f(0)}u=requestAnimationFrame(b)}},y={get duration(){return i.duration},get currentTime(){return l},get playing(){return c},rate:s.rate??1,get finished(){return p},play(){if(h())return f(i.duration),n.forEach(t=>t.fired=!0),void g();c||(l>=i.duration&&(n.forEach(t=>t.fired=!1),f(0)),c=!0,d=performance.now(),m(),u=requestAnimationFrame(b))},pause(){c=!1,cancelAnimationFrame(u),u=0},seek(t){f(t),n.forEach(t=>t.fired=t.t.start<l)},destroy(){y.pause(),r.forEach(t=>t.cancel())}};return s.autoplay&&y.play(),y}function Bn(t="usa-player"){return y(t,t=>class extends t{constructor(){super(...arguments),this.player=null,this.json=null}static get observedAttributes(){return["src","trigger","loop","rate"]}load(t){this.json=t,this.start()}play(){this.player?.play()}pause(){this.player?.pause()}seek(t){this.player?.seek(t)}start(){if(this.player?.destroy(),this.player=null,!this.json)return;try{this.player=Yn(this,this.json,{loop:!!this.hasAttribute("loop")||void 0,rate:this.num("rate",1),onFinish:()=>this.dispatchEvent(new CustomEvent("usa-player-finish",{bubbles:!0}))}),this.removeAttribute("data-error")}catch(t){return void this.setAttribute("data-error",String(t.message||t))}const t=this.player;this.dispatchEvent(new CustomEvent("usa-player-ready",{detail:{duration:t.duration},bubbles:!0}));const e=this.str("trigger","view");if("load"===e)t.play();else if("view"===e)this.inView(e=>e&&t.play(),{threshold:.25});else if("click"===e)this.listen(this,"click",()=>t.playing?t.pause():t.play());else if("scroll"===e){let e=0;const s=()=>{e=0,t.seek(Nr(this)*t.duration)},i=()=>{e||(e=requestAnimationFrame(s))};this.listen(window,"scroll",i,{passive:!0}),this.listen(window,"resize",i),this.onCleanup(()=>cancelAnimationFrame(e)),s()}this.flag("controls")&&this.mountControls(t)}mountControls(t){const e=document.createElement("button");e.type="button",e.setAttribute("data-player-toggle",""),e.textContent="▶︎ / ❚❚",e.setAttribute("aria-label","Play / pause animation"),this.listen(e,"click",s=>{s.stopPropagation(),t.playing?t.pause():t.play(),e.setAttribute("aria-pressed",String(t.playing))}),this.append(e),this.onCleanup(()=>e.remove())}changed(t){"src"===t&&(this.json=null),super.changed(t)}mount(){this.onCleanup(()=>{this.player?.destroy(),this.player=null});const t=this.querySelector('script[type="application/json"]'),e=this.str("src");t&&!this.json&&(this.json=t.textContent||""),!e||this.json?this.start():fetch(e).then(t=>t.ok?t.text():Promise.reject(new Error(`HTTP ${t.status}`))).then(t=>this.isConnected&&this.load(t)).catch(t=>this.setAttribute("data-error",String(t.message||t)))}},{id:"usa-player",text:"usa-player{display:block;position:relative}usa-player>script{display:none}usa-player [data-player-toggle]{position:absolute;right:8px;bottom:8px}"})}const On={"cards-click":[...kr,..._r],physics:Cr,page:qr,generative:Vr,audio:on,cursor:dn,micro:Mn,themes:Ln};function Xn(){Br(),ln(),gn(),qn(),Bn()}function Dn(){Ya();for(const t of Object.values(On))Ta(t)}pr(),Dn(),Xn(),t.ALL_TAGS=tr,t.AMBIENT_EFFECTS=["particles","snow","stars","noise","gradient"],t.ANIMATION_FORMAT=Rn,t.ANIM_ICONS=Ti,t.AUDIO_FX=on,t.BRIDGE_PROTOCOL_VERSION=1,t.BUILTIN_EFFECTS=Na,t.BUTTON_DEFORMS=["squash","wobble","gooey","dent"],t.CARD_EFFECTS=["flip","holo","glass","border-glow","conic-border","lift","spotlight","sheen","parallax-layers","expand"],t.CARD_FX=kr,t.CLICK_EFFECTS=["ripple","burst","confetti","squish","press-spring","shake"],t.CLICK_FX=_r,t.COMPONENT_CATEGORIES=Oa,t.CURSOR_FX=dn,t.CURSOR_MODES=Is,t.EFFECT_KINDS=Ma,t.EFFECT_PACKS=On,t.EFFECT_TRIGGERS=Ea,t.GENERATIVE_FX=Vr,t.GESTURES=hn,t.GL_FALLBACKS=Yi,t.JOINING_SCRIPT=kt,t.LIVE_REGION_IDS=Wa,t.MASK_SHAPES=Ci,t.MICRO_FX=Mn,t.MORPH_ICONS=ps,t.MOTION_SCALE=i,t.MOTION_SENSITIVITY=ja,t.MOTION_SENSITIVITY_LEVELS=s,t.MOTION_TOKENS=at,t.PACKS=va,t.PACK_PRIMITIVES=wa,t.PAGE_EFFECTS=["fade","slide","slide-left","slide-right","slide-up","circle","blinds","pixel","zoom"],t.PAGE_FX=qr,t.PARTICLE_PRESETS=["snow","fireflies","stars","bokeh","rain"],t.PHYSICS_FX=Cr,t.POST_EFFECTS=Ii,t.REVEAL_EFFECTS=W,t.SENSITIVITY_CSS=Ha,t.SHADERS=Fi,t.SPINNER_VARIANTS=Jt,t.SPRING_EFFECTS=["bounce-in","pop","drop","jelly","rubber-band"],t.SPRING_PRESETS=Ee,t.STATIC_ALTERNATIVES={reveal:"Content visible in place; progress bars show the current value.",text:"Full final text (screen readers always get a plain copy).",interaction:"Normal hover / focus styles; no tilt, magnet or ripple.",feedback:"Spinners become a static busy indicator; progress shows its value; toasts appear without sliding.",background:"A still frame of the background (gradient / pattern); particles and marquees stop.",transitions:"Dialogs, accordions and views switch instantly.",physics:"Values jump to their target; drag still works, without inertia.",cards:"Cards are shown flat and fully readable; stacks become lists.",click:"Clicks work and states are announced; no bursts, confetti or deformation.",ui:"Tabs, drawers, sheets and popovers open instantly with focus management intact.",page:"Page transitions are instant; cursors and ambient layers are hidden.",timeline:"Every step is shown at its final state.",gesture:"Buttons / keys provide the same actions as swipes and pinches.",svg:"Drawings and icons are shown complete.",webgl:"A static poster image or CSS gradient instead of the shader.",depth:"Flat, front-facing layout.",layout:"Items reflow instantly.",packs:"Roles are styled but not animated.",fx:"Effects are skipped or reduced to a short fade; the content is unchanged."},t.STORY_TEMPLATES=Rr,t.THEMES=Cn,t.THEME_FX=Ln,t.THEME_NAMES=$n,t.THEME_ROLES=En,t.TIMELINE_PRESETS=yt,t.VARIANTS=["minimal","neon","glass","brutalist","fluent","material"],t.activeAnimations=I,t.adaptKeyframes=l,t.adoptVariants=be,t.angleDelta=fn,t.animateWithMotion=g,t.animationBudget=Y,t.announce=function(t,e={}){const{politeness:s="polite",dedupe:i=500}=e,a=Date.now();if(!t||t===Ka&&a-Ja<i)return!1;Ka=t,Ja=a;const r=Ga(s);return!!r&&(r.textContent="",r.textContent=t,!0)},t.applyMotionTokens=ht,t.applyNativeSettings=dr,t.applyPack=xa,t.applyTheme=Pn,t.auditMotionA11y=function(t){const e=[],s=(t,s,i,a)=>e.push({rule:t,level:s,element:i,message:a}),i=t;i.querySelectorAll('[aria-hidden="true"]').forEach(t=>{(t.matches(Za)?[t]:Array.from(t.querySelectorAll(Za))).filter(t=>!t.closest("[inert]")).forEach(t=>s("aria-hidden-focusable","error",t,`focusable <${t.tagName.toLowerCase()}> inside aria-hidden`))}),i.querySelectorAll("[role]").forEach(t=>{const e=t.getAttribute("role");Qa.includes(e)&&!function(t){const e=t.getAttribute("aria-label");if(e)return e;const s=t.getAttribute("aria-labelledby");return s?s.split(/\s+/).map(e=>t.ownerDocument.getElementById(e)?.textContent||"").join(" ").trim():(t.textContent||t.getAttribute("title")||"").trim()}(t)&&s("role-name","error",t,`role="${e}" has no accessible name`),"slider"!==e||t.hasAttribute("aria-valuenow")||s("range-value","error",t,"slider without aria-valuenow")}),i.querySelectorAll("img:not([alt])").forEach(t=>s("img-alt","error",t,"<img> without alt")),i.querySelectorAll('[aria-live="assertive"]').forEach(t=>{"alert"!==t.getAttribute("role")&&s("assertive-live","warning",t,'assertive live region outside role="alert"')});const a=t.ownerDocument||t,r="function"==typeof t.getAnimations?t.getAnimations({subtree:!0}):[];return a&&(a.querySelector("usa-motion-switch, [data-usa-pause]")||a.documentElement.hasAttribute("data-usa-sensitivity"))||r.forEach(t=>{try{if(t.effect?.getComputedTiming().iterations===1/0){const e=t.effect.target;e&&s("infinite-no-control","warning",e,"endless animation and no motion control on the page")}}catch{}}),{errors:e.filter(t=>"error"===t.level),warnings:e.filter(t=>"warning"===t.level)}},t.autoAnimate=oa,t.autoDegrade=function(t={}){const{minFps:e=45,maxActive:s=40,sample:i=1e3,patience:a=2,recovery:n=3,onChange:o}=t;let l=0,u=0,d=0,h=0,p=null;const f={degraded:!1,fps:60,active:0,reason:""},m=(t,e)=>{t!==f.degraded&&(f.degraded=t,f.reason=e,t?(p={intensity:c(),budget:Y()},r({motionIntensity:"low"}),N(Math.max(4,Math.floor(s/2)))):p&&(r({motionIntensity:p.intensity}),N(p.budget),p=null),o?.({...f}),"undefined"!=typeof document&&document.dispatchEvent(new CustomEvent("usa:degrade",{detail:{...f}})))},g=P((t,r)=>{if(l++,u+=Math.min(r,250),u<i)return;f.fps=Math.round(1e3*l/u),f.active=I(),l=0,u=0;const o=f.fps<e?"fps":f.active>s?"count":"";o?(h=0,++d>=a&&m(!0,o)):(d=0,++h>=n&&m(!1,""))});return()=>{g(),m(!1,"")}},t.baselineReport=Xa,t.bindBeat=function(t,e,s={}){const{threshold:i,cooldown:a,history:r,floor:n,...o}=s;return an(()=>{h()||Fa(t,e,o).catch(()=>{})},{threshold:i,cooldown:a,history:r,floor:n})},t.bindEffect=La,t.bindGesture=mn,t.bounceKeyframes=Er,t.bumpCount=xn,t.canvasBackground=Dr,t.categoryOf=sr,t.configureComponents=r,t.connectNativeShell=function(t={}){const e=rr(),s=t.channel||"UsaBridge",i=nr(s);if(!e)return{host:i,disconnect:()=>{}};const a=e=>{const s=ur(e);s&&(dr(s,t.root),t.onSettings?.(s,i))},r=t=>a(t.data);e.chrome?.webview?.addEventListener?.("message",r),e.addEventListener?.("message",r);const n=e.usaNative;return e.usaNative={apply:t=>a({...t,type:"usa:settings"}),version:1,host:i},or({type:"usa:ready",version:1},s),or({type:"usa:request-settings"},s),{host:i,disconnect:()=>{e.chrome?.webview?.removeEventListener?.("message",r),e.removeEventListener?.("message",r),e.usaNative=n}}},t.countUp=ga,t.createBeatDetector=Jr,t.createPlayer=Yn,t.createSpring=Le,t.defineAccordion=ke,t.defineAcrylic=ue,t.defineAmbient=Hs,t.defineAnimIcon=zi,t.defineAudio=ln,t.defineAurora=ne,t.defineAutoAnimate=ua,t.defineAutoSkeleton=Us,t.defineAvatarStack=qs,t.defineBackToTop=js,t.defineBackgroundComponents=ve,t.defineBadge=Ls,t.defineBlobs=fe,t.defineBottomSheet=Cs,t.defineButton=ds,t.defineCard=Ue,t.defineCardComponents=Qe,t.defineCardStack=Ke,t.defineCarousel3d=Ze,t.defineCheck=ae,t.defineCheckbox=vs,t.defineClick=cs,t.defineClickComponents=xs,t.defineComponents=pr,t.defineCounter=Lt,t.defineCube=Qi,t.defineCursor=Ns,t.defineDepth=aa,t.defineDepthComponents=ra,t.defineDialog=we,t.defineDistort=Vi,t.defineDotNetwork=ge,t.defineDoubleTap=ys,t.defineDraggable=De,t.defineDraw=Ei,t.defineDrawer=Ss,t.defineEffectElements=Xn,t.defineFab=Ts,t.defineFeedbackComponents=re,t.defineFullpage=Bs,t.defineFx=qa,t.defineFxComponents=Ba,t.defineGestureComponents=yi,t.defineGestureFx=gn,t.defineGlitch=Bt,t.defineGradientText=Ot,t.defineGrain=le,t.defineGridGlow=pe,t.defineHandwriting=Xt,t.defineHold=bs,t.defineIconMorph=ms,t.defineInteractionComponents=Kt,t.defineLayoutComponents=ha,t.defineLike=gs,t.defineLiquid=Ui,t.defineLoadingBar=Os,t.defineMagnetic=Vt,t.defineMarquee=ce,t.defineMaskReveal=$i,t.defineMasonry=da,t.defineMorph=Si,t.defineMotionSwitch=ei,t.defineNavbar=zs,t.defineOverscroll=je,t.definePack=ka,t.definePacksComponents=_a,t.definePageComponents=li,t.defineParticles=oe,t.definePhysicsComponents=He,t.definePinchZoom=bi,t.definePlayer=Bn,t.definePopover=Fs,t.definePostFx=Wi,t.definePress=Gt,t.defineProgress=te,t.definePullRefresh=$s,t.defineReveal=J,t.defineRevealComponents=st,t.defineRipple=Ht,t.defineScramble=Pt,t.defineScrollHighlight=Dt,t.defineScrollProgress=tt,t.defineScrolly=et,t.defineShader=Hi,t.defineShimmerText=qt,t.defineSkeleton=Qt,t.defineSlider=Ps,t.defineSpinner=Zt,t.defineSplash=Vs,t.defineSplitText=$t,t.defineSpotlight=Wt,t.defineSpring=Oe,t.defineStagger=Z,t.defineStickyStack=Je,t.defineStory=Br,t.defineSvgComponents=Pi,t.defineSwipeable=gi,t.defineTabs=As,t.defineTextComponents=jt,t.defineTextRotate=Rt,t.defineTheme=qn,t.defineTilt=Ut,t.defineTimeline=ci,t.defineTimelineComponents=ui,t.defineToaster=se,t.defineTransitionComponents=Me,t.defineTypewriter=it,t.defineUiComponents=Rs,t.defineViewSwitch=_e,t.defineWaterRipple=me,t.defineWaveText=Yt,t.defineWebglComponents=Gi,t.detectNativeHost=nr,t.deviceTilt=ia,t.disableAudio=function(){Wr?.stop()},t.drawLines=Ai,t.easeOutExpo=Ft,t.enableAudio=Kr,t.enableMpaTransitions=function(t="fade",e=450){if("undefined"==typeof document)return;f("page-transitions",si),f("mpa-transitions",h()?"":"@view-transition{navigation:auto}"),document.documentElement.setAttribute("data-usa-pt",t),ni({duration:e})},t.flingVelocity=pn,t.flip=async function(t,e,s={}){const i=new Map(Ae(t).map(t=>[t,t.getBoundingClientRect()]));if(await e(),h())return;const a=Ae(t),r=s.duration??420,n=s.easing??j,o=[],l=a.map(t=>t.getBoundingClientRect());a.forEach((t,e)=>{if("function"!=typeof t.animate)return;const a=i.get(t),c=l[e];if(!a)return void(!1!==s.animateEnter&&o.push(t.animate([{opacity:0,transform:"scale(0.9)"},{opacity:1,transform:"none"}],{duration:r,easing:n})));const u=a.left-c.left,d=a.top-c.top,h=c.width?a.width/c.width:1,p=c.height?a.height/c.height:1;Math.abs(u)<.5&&Math.abs(d)<.5&&Math.abs(h-1)<.01&&Math.abs(p-1)<.01||o.push(t.animate([{transformOrigin:"0 0",transform:`translate(${u}px, ${d}px) scale(${h}, ${p})`},{transformOrigin:"0 0",transform:"none"}],{duration:r,easing:n}))}),await Promise.all(o.map(t=>t.finished.catch(()=>{})))},t.flipFrames=na,t.fluentPreset=function(t={}){if("undefined"==typeof document)return()=>{};const e=t.root||document.documentElement;f("fluent-preset",'.usa-fluent{font-family:"Segoe UI Variable","Segoe UI",system-ui,sans-serif;accent-color:var(--usa-accent,#0067c0)}.usa-fluent-mica body{background:linear-gradient(135deg,color-mix(in srgb,var(--usa-accent,#0067c0) 8%,#f3f3f3),#f3f3f3 60%)}@media (prefers-color-scheme:dark){.usa-fluent-mica body{background:linear-gradient(135deg,color-mix(in srgb,var(--usa-accent,#4cc2ff) 10%,#202020),#202020 60%)}}.usa-fluent :is(.usa-acrylic,[data-acrylic]){background:color-mix(in srgb,var(--usa-surface) 70%,transparent);-webkit-backdrop-filter:blur(30px) saturate(1.25);backdrop-filter:blur(30px) saturate(1.25);border:var(--usa-border);border-radius:var(--usa-radius)}.usa-fluent :is(button,[role="button"],[data-fluent-reveal],.usa-fluent-item){position:relative}.usa-fluent [data-reveal]::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;padding:1px;background:radial-gradient(90px circle at var(--usa-reveal-x) var(--usa-reveal-y),rgb(255 255 255 / 0.55),transparent 70%);-webkit-mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0)}.usa-fluent [data-reveal]{background-image:radial-gradient(120px circle at var(--usa-reveal-x) var(--usa-reveal-y),rgb(255 255 255 / 0.1),transparent 70%)}@media (prefers-reduced-transparency:reduce),(forced-colors:active){.usa-fluent :is(.usa-acrylic,[data-acrylic]){background:var(--usa-surface);-webkit-backdrop-filter:none;backdrop-filter:none}}'),ye("fluent",e),e.classList.add("usa-fluent"),!1!==t.mica&&e.classList.add("usa-fluent-mica");const s=t.selector||'button, [role="button"], a.usa-fluent-item, [data-fluent-reveal], .usa-fluent-item';let i=0,a=null,r=null;const n=()=>{if(i=0,!r)return;const t=r.target?.closest?.(s);if(a&&a!==t&&a.removeAttribute("data-reveal"),a=t,!t)return;const e=t.getBoundingClientRect();t.style.setProperty("--usa-reveal-x",r.clientX-e.left+"px"),t.style.setProperty("--usa-reveal-y",r.clientY-e.top+"px"),t.setAttribute("data-reveal","")},o=t=>{"touch"!==t.pointerType&&(r=t,i||(i=$(n)))};return!1!==t.reveal&&!h()&&document.addEventListener("pointermove",o,{passive:!0}),()=>{document.removeEventListener("pointermove",o),z(i),a?.removeAttribute("data-reveal"),e.classList.remove("usa-fluent","usa-fluent-mica"),ye(null,e)}},t.flyToCart=ba,t.formatCount=Yr,t.fragmentSource=Li,t.fxLayer=mr,t.gesture=fi,t.getAudio=()=>Wr,t.getEffect=t=>Ca.get(t),t.getMotionIntensity=c,t.getMotionLevel=Qs,t.getMotionSensitivity=n,t.getMotionTokens=function(){return nt(rt)},t.glFallbackCss=Bi,t.glGovernor=Oi,t.glQuad=Ri,t.graphemes=Mt,t.haptic=ls,t.hasEffect=t=>Ca.has(t),t.hexRgb=Xr,t.importMotionTokens=function(t,e=at){const s={duration:{},easing:{},spring:{}},i=(t,e)=>{if(t&&"object"==typeof t){if((a=t)&&"object"==typeof a&&("$value"in a||"value"in a)){const i=e[e.length-1],a=(t=>String(t.$type??t.type??"").toLowerCase())(t),r=e.slice(0,-1).map(t=>t.toLowerCase()),n=(t=>"$value"in t?t.$value:t.value)(t),o=t=>r.some(e=>t.includes(e));if("duration"===a||!a&&o(["duration","durations"])||"cubicbezier"!==a&&o(["duration","durations"])){const t=ut(n);void 0!==t&&(s.duration[i]=t)}else if("cubicbezier"===a||"easing"===a||o(["easing","easings","ease"])){const t=dt(n);t&&(s.easing[i]=t)}else if("spring"===a||o(["spring","springs"]))n&&"object"==typeof n&&(s.spring[i]={stiffness:Number(n.stiffness??170),damping:Number(n.damping??26),mass:Number(n.mass??1)});else if("transition"===a&&n&&"object"==typeof n){const t=ut(n.duration);void 0!==t&&(s.duration[i]=t);const e=dt(n.timingFunction);e&&(s.easing[i]=e)}return}var a;for(const[s,a]of Object.entries(t))s.startsWith("$")||i(a,[...e,s])}};return i(t,[]),ot(s,e)},t.interpolatePath=wi,t.linearEasing=Fe,t.listEffects=function(t){return Array.from(Ca.values()).filter(e=>!t||e.kind===t).sort((t,e)=>t.name.localeCompare(e.name))},t.liveRegion=Ga,t.loadCategoryStyles=ar,t.loadedStyles=()=>Array.from(ir),t.loadingBar=Ds,t.masonryLayout=la,t.mergeMotionTokens=ot,t.morphPath=fs,t.morphTo=_i,t.motionAllowed=function(t,e=n()){return ja[e].allows.includes(t)},t.motionScale=u,t.motionToken=pt,t.motionTokensToCss=function(t=rt,e=":root",s="--usa"){return`${e} {\n${Object.entries(ct(t,s)).map(([t,e])=>` ${t}: ${e};`).join("\n")}\n}\n`},t.motionTokensToJSON=function(t=rt){const e=(t,e)=>Object.fromEntries(Object.entries(t).map(([t,s])=>[t,e(s)]));return{motion:{duration:e(t.duration,t=>({$type:"duration",$value:`${t}ms`})),easing:e(t.easing,t=>{const e=/^cubic-bezier\(([^)]+)\)$/.exec(t);return e?{$type:"cubicBezier",$value:e[1].split(",").map(Number)}:{$type:"string",$value:t}}),spring:e(t.spring,t=>({$type:"spring",$value:{...t}}))}}},t.motionTokensToVars=ct,t.motionVar=function(t,e,s,i="--usa"){if("spring"===t){const t=pt("spring",e),a=s||"stiffness";return`var(${i}-spring-${lt(e)}-${a}, ${t?t[a]:""})`}const a="duration"===t?`${pt("duration",e)}ms`:pt("easing",e);return`var(${i}-${t}-${lt(e)}, ${a})`},t.noise2=Or,t.normalizeAnimation=In,t.onBeat=an,t.onDemandStyles=function(t){return O(e=>ar(sr(e)||"all",t)),()=>O(null)},t.onFrame=P,t.orientationToTilt=ta,t.pageTransition=oi,t.parseDuration=ut,t.parseEasing=dt,t.parseNativeSettings=ur,t.pathsCompatible=xi,t.pinchScale=hi,t.playEffect=Fa,t.playThemeEffect=function(t,e,s){const i=Fn(s||t.closest("[data-usa-theme]")?.getAttribute("data-usa-theme")||"neon",e);return Fa(t,i.effect,i.options)},t.postFxShader=Ni,t.postToNative=or,t.prefersReducedMotion=h,t.projectInertia=qe,t.readScrollProgress=Q,t.registerAllEffects=Dn,t.registerAudioEffects=function(){Ta(On.audio)},t.registerBuiltinEffects=Ya,t.registerCardClickEffects=function(){Ta(On["cards-click"])},t.registerCursorEffects=function(){Ta(On.cursor)},t.registerEffect=$a,t.registerEffects=Ta,t.registerGenerativeEffects=function(){Ta(On.generative)},t.registerMicroEffects=function(){Ta(On.micro),Ta(On.themes)},t.registerPageEffects=function(){Ta(On.page)},t.registerPhysicsEffects=function(){Ta(On.physics)},t.requestOrientationPermission=sa,t.resolveDurationToken=ft,t.resolveEasingToken=mt,t.resolvePosition=vt,t.resolveSpring=Se,t.restoreMotionIntensity=ti,t.restoreMotionSensitivity=function(){try{const t=localStorage.getItem(Da);t&&s.includes(t)&&Va(t)}catch{}return n()},t.revealKeyframes=G,t.rubberBand=Ie,t.schedulerStats=function(){return{frames:M.frames,callbacks:M.callbacks,peak:M.peak,pending:w.size,loops:E.size}},t.scrambleFrame=zt,t.scrollToTarget=Ys,t.setAnimationBudget=N,t.setMotionIntensity=function(t,e=!1){Ws.includes(t)&&(r({motionIntensity:t}),Js(t,e))},t.setMotionLevel=Zs,t.setMotionSensitivity=Va,t.setVariant=ye,t.sharedTransition=async function(t,e=document,s={}){if(h()||"undefined"==typeof document)return void await t();const i=()=>new Map(Array.from(e.querySelectorAll("[data-shared]")).map(t=>[t.dataset.shared,t])),a=document;if("function"==typeof a.startViewTransition){const e=t=>t.forEach((t,e)=>t.style.viewTransitionName=`usa-${e.replace(/[^\w-]/g,"_")}`),s=t=>t.forEach(t=>t.style.viewTransitionName=""),r=i();e(r);let n=new Map;const o=a.startViewTransition(async()=>{s(r),await t(),n=i(),e(n)});return await o.finished.catch(()=>{}),void s(n)}const r=new Map(Array.from(i()).map(([t,e])=>[t,e.getBoundingClientRect()]));await t();const n=[];i().forEach((t,e)=>{const i=r.get(e);if(!i||"function"!=typeof t.animate)return;const a=t.getBoundingClientRect();a.width&&a.height&&n.push(t.animate(na(i,a),{duration:(s.duration??450)*u(),easing:s.easing??X}).finished.catch(()=>{}))}),await Promise.all(n)},t.smoothScroll=function(t={}){if("undefined"==typeof window||h())return()=>{};const e=t.target||null,s=Math.min(1,Math.max(.02,t.lerp??.12)),i=t.wheelMultiplier??1,a=()=>e?e.scrollTop:window.scrollY;let r=a(),n=r,o=0;const l=()=>{var t;n+=(r-n)*s,Math.abs(r-n)<.5&&(n=r),t=n,e?e.scrollTop=t:window.scrollTo(0,t),o=n===r?0:$(l)},c=t=>{if(t.ctrlKey||t.defaultPrevented)return;o||(r=n=a()),t.preventDefault();const s=1===t.deltaMode?16*t.deltaY:2===t.deltaMode?t.deltaY*(window.innerHeight||800):t.deltaY;r=Math.max(0,Math.min(e?e.scrollHeight-e.clientHeight:document.documentElement.scrollHeight-window.innerHeight,r+s*i)),o||(o=$(l))},u=()=>{o||(r=n=a())},d=e||window;return d.addEventListener("wheel",c,{passive:!1}),d.addEventListener("scroll",u,{passive:!0}),()=>{d.removeEventListener("wheel",c),d.removeEventListener("scroll",u),o&&z(o),o=0}},t.snapTo=Re,t.solveSpring=Ar,t.splitOrder=Ct,t.splitText=St,t.splitTimeline=function(t,e={}){const s=St(t,e),i=Array.isArray(e.by)?e.by:String(e.by??"char").split(/[\s,]+/),a=e.unit||(i.includes("char")?"char":i.includes("word")?"word":"line"),r="char"===a?s.chars:"word"===a?s.words:s.lines,n=e.stagger??("char"===a?30:"word"===a?80:140),o=Ct(r.length,e.from),l=xt({defaults:{duration:e.duration??500,easing:e.easing}});return r.forEach((t,s)=>l.to(t,e.preset||"fade-up",{at:o[s]*n})),l.seek(0),{split:s,timeline:l}},t.splitWords=Et,t.spring=function(t,e,s,i={}){const a=t;if(h()||"function"!=typeof a.animate)return b(a,e[e.length-1]),null;const{easing:r,duration:n}=Pe(s);return a.animate(e,{duration:n*u(),easing:r,fill:"both",...i})},t.springEasing=Pe,t.springEffectKeyframes=Ye,t.springKeyframes=Mr,t.springSamples=Te,t.staticAlternative=Ua,t.stepSpring=Ce,t.storyProgress=Nr,t.supportsLinearEasing=ze,t.supportsNativeScrub=gt,t.supportsOrientation=ea,t.supportsViewTransitions=ri,t.supportsWebGL=function(){if(void 0!==qi)return qi;try{const t="undefined"!=typeof document?document.createElement("canvas"):null;qi=!(!t||!t.getContext("webgl"))}catch{qi=!1}return qi},t.swapLabel=vn,t.swipeDirection=di,t.themeCss=function(t,e){const s=Tn(t);return`${e||`[data-usa-theme=${s.name}]`}{${Object.entries(zn(s)).map(([t,e])=>`${t}:${e}`).join(";")}}`},t.themePreset=Fn,t.themeTransition=function(t,e={}){return oi(t,{...e,effect:"circle",duration:e.duration??650})},t.themeVars=zn,t.timeline=xt,t.toast=function(t,e={}){if("undefined"==typeof document||!se())return null;let s="string"==typeof e.toaster?document.querySelector(e.toaster):e.toaster||document.querySelector("usa-toaster");return s||(s=document.createElement("usa-toaster"),document.body.append(s)),s.show(t,e)},t.togglePressed=yn,t.viewTransition=async function(t,e={}){const s="undefined"!=typeof document?document:null;if(!s||h())return void await t();if("function"==typeof s.startViewTransition){let i;try{i=e.types?s.startViewTransition({update:t,types:e.types}):s.startViewTransition(t)}catch{i=s.startViewTransition(t)}return void await i.finished.catch(()=>{})}const i=e.fallback,a=e.duration??200;if(!i||"function"!=typeof i.animate)return void await t();await i.animate([{opacity:1},{opacity:0}],{duration:.8*a,easing:"ease-in",fill:"forwards"}).finished.catch(()=>{}),await t();const r=i.animate([{opacity:0,transform:"translateY(6px)"},{opacity:1,transform:"none"}],{duration:1.1*a,easing:X});i.getAnimations?.().forEach(t=>t!==r&&t.cancel()),await r.finished.catch(()=>{})},t.warnBaseline=function(){const t=Xa().filter(t=>t.required&&!t.supported).map(t=>t.id);var e,s;return t.length&&(e="baseline",s=`this browser lacks ${t.join(", ")}; motionary 5.0 requires them (modern-browser baseline, see docs/upgrading-5.md).`,H.has(e)||(H.add(e),"undefined"!=typeof console&&console.warn(`[motionary] ${s}`))),t},t.watchPowerSaver=Xi,t.withoutDeprecations=function(t){try{return t()}finally{}}});
23
23
  //# sourceMappingURL=components.umd.js.map