bitwrench 2.0.32 → 2.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 (126) hide show
  1. package/README.md +210 -125
  2. package/dist/bitwrench-bccl.cjs.js +349 -188
  3. package/dist/bitwrench-bccl.cjs.min.js +2 -39
  4. package/dist/bitwrench-bccl.cjs.min.js.gz +0 -0
  5. package/dist/bitwrench-bccl.esm.js +349 -188
  6. package/dist/bitwrench-bccl.esm.min.js +2 -39
  7. package/dist/bitwrench-bccl.esm.min.js.gz +0 -0
  8. package/dist/bitwrench-bccl.umd.js +349 -188
  9. package/dist/bitwrench-bccl.umd.min.js +2 -39
  10. package/dist/bitwrench-bccl.umd.min.js.gz +0 -0
  11. package/dist/bitwrench-code-edit.cjs.js +17 -6
  12. package/dist/bitwrench-code-edit.cjs.min.js +2 -20
  13. package/dist/bitwrench-code-edit.es5.js +8 -3
  14. package/dist/bitwrench-code-edit.es5.min.js +2 -19
  15. package/dist/bitwrench-code-edit.esm.js +17 -6
  16. package/dist/bitwrench-code-edit.esm.min.js +2 -19
  17. package/dist/bitwrench-code-edit.umd.js +17 -6
  18. package/dist/bitwrench-code-edit.umd.min.js +2 -19
  19. package/dist/bitwrench-code-edit.umd.min.js.gz +0 -0
  20. package/dist/bitwrench-debug.js +1 -1
  21. package/dist/bitwrench-debug.min.js +1 -1
  22. package/dist/bitwrench-lean.cjs.js +2492 -1628
  23. package/dist/bitwrench-lean.cjs.min.js +2 -80
  24. package/dist/bitwrench-lean.cjs.min.js.gz +0 -0
  25. package/dist/bitwrench-lean.es5.js +2740 -1838
  26. package/dist/bitwrench-lean.es5.min.js +2 -49
  27. package/dist/bitwrench-lean.es5.min.js.gz +0 -0
  28. package/dist/bitwrench-lean.esm.js +2492 -1628
  29. package/dist/bitwrench-lean.esm.min.js +2 -80
  30. package/dist/bitwrench-lean.esm.min.js.gz +0 -0
  31. package/dist/bitwrench-lean.umd.js +2492 -1628
  32. package/dist/bitwrench-lean.umd.min.js +2 -80
  33. package/dist/bitwrench-lean.umd.min.js.gz +0 -0
  34. package/dist/bitwrench-util-color.cjs.js +251 -0
  35. package/dist/bitwrench-util-color.cjs.min.js +3 -0
  36. package/dist/bitwrench-util-color.es5.js +256 -0
  37. package/dist/bitwrench-util-color.es5.min.js +3 -0
  38. package/dist/bitwrench-util-color.esm.js +241 -0
  39. package/dist/bitwrench-util-color.esm.min.js +3 -0
  40. package/dist/bitwrench-util-color.umd.js +257 -0
  41. package/dist/bitwrench-util-color.umd.min.js +3 -0
  42. package/dist/bitwrench-util-css.cjs.js +2 -1
  43. package/dist/bitwrench-util-css.cjs.min.js +2 -21
  44. package/dist/bitwrench-util-css.es5.js +2 -1
  45. package/dist/bitwrench-util-css.es5.min.js +2 -20
  46. package/dist/bitwrench-util-css.esm.js +2 -1
  47. package/dist/bitwrench-util-css.esm.min.js +1 -19
  48. package/dist/bitwrench-util-css.umd.js +2 -1
  49. package/dist/bitwrench-util-css.umd.min.js +2 -20
  50. package/dist/bitwrench-util-css.umd.min.js.gz +0 -0
  51. package/dist/bitwrench.cjs.js +2826 -1801
  52. package/dist/bitwrench.cjs.min.js +2 -99
  53. package/dist/bitwrench.cjs.min.js.gz +0 -0
  54. package/dist/bitwrench.css +403 -479
  55. package/dist/bitwrench.d.ts +70 -73
  56. package/dist/bitwrench.es5.js +3106 -2020
  57. package/dist/bitwrench.es5.min.js +2 -67
  58. package/dist/bitwrench.es5.min.js.gz +0 -0
  59. package/dist/bitwrench.esm.js +2826 -1801
  60. package/dist/bitwrench.esm.min.js +2 -99
  61. package/dist/bitwrench.esm.min.js.gz +0 -0
  62. package/dist/bitwrench.min.css +1 -1
  63. package/dist/bitwrench.umd.js +2826 -1801
  64. package/dist/bitwrench.umd.min.js +2 -99
  65. package/dist/bitwrench.umd.min.js.gz +0 -0
  66. package/dist/builds.json +222 -134
  67. package/dist/bwserve.cjs.js +289 -282
  68. package/dist/bwserve.d.ts +157 -0
  69. package/dist/bwserve.esm.js +290 -283
  70. package/dist/sri.json +54 -46
  71. package/docs/README.md +6 -3
  72. package/docs/app-patterns.md +7 -6
  73. package/docs/bitwrench-for-wasm.md +53 -54
  74. package/docs/bitwrench-mcp.md +2 -2
  75. package/docs/bitwrench-northstar-principles.md +406 -0
  76. package/docs/bitwrench-taco-schema-discussion.md +2 -2
  77. package/docs/bitwrench_api.md +191 -106
  78. package/docs/bitwrench_typescript_usage.md +5 -5
  79. package/docs/bw-attach.md +29 -75
  80. package/docs/bwserve.md +200 -168
  81. package/docs/cli.md +36 -12
  82. package/docs/component-cheatsheet.md +2 -2
  83. package/docs/component-library.md +4 -4
  84. package/docs/component-lifecycle.md +234 -0
  85. package/docs/drift-lint.md +268 -0
  86. package/docs/framework-translation-table.md +4 -4
  87. package/docs/llm-bitwrench-guide.md +60 -50
  88. package/docs/routing.md +11 -13
  89. package/docs/state-management.md +110 -109
  90. package/docs/taco-format.md +13 -14
  91. package/docs/theming.md +13 -3
  92. package/docs/thinking-in-bitwrench.md +858 -983
  93. package/docs/tutorial-bwserve.md +37 -36
  94. package/docs/tutorial-embedded.md +10 -21
  95. package/docs/tutorial-website.md +2 -2
  96. package/package.json +38 -7
  97. package/readme.html +262 -160
  98. package/src/bitwrench-bccl-entry.js +2 -2
  99. package/src/bitwrench-bccl.js +346 -185
  100. package/src/bitwrench-code-edit.js +16 -5
  101. package/src/bitwrench-color-utils.js +117 -181
  102. package/src/bitwrench-file-ops.js +2 -2
  103. package/src/bitwrench-lean.js +4 -3
  104. package/src/bitwrench-router.js +5 -2
  105. package/src/bitwrench-styles.js +420 -504
  106. package/src/bitwrench-util-color.js +240 -0
  107. package/src/bitwrench-util-css.js +1 -0
  108. package/src/bitwrench-utils.js +4 -0
  109. package/src/bitwrench.d.ts +70 -73
  110. package/src/bitwrench.h +5 -0
  111. package/src/bitwrench.js +1939 -933
  112. package/src/bwserve/attach.js +0 -1
  113. package/src/bwserve/bwclient.js +172 -32
  114. package/src/bwserve/bwshell.js +0 -4
  115. package/src/bwserve/client.js +59 -220
  116. package/src/bwserve/index.js +59 -26
  117. package/src/bwserve.d.ts +157 -0
  118. package/src/bwserve.h +5 -0
  119. package/src/cli/attach.js +12 -75
  120. package/src/cli/convert.js +2 -2
  121. package/src/cli/serve.js +37 -35
  122. package/src/generate-css.js +1 -1
  123. package/src/mcp/knowledge.js +4 -4
  124. package/src/mcp/live.js +21 -13
  125. package/src/mcp/tools.js +0 -1
  126. package/src/version.js +3 -7
@@ -1,100 +1,3 @@
1
- /*! bitwrench v2.0.32 | BSD-2-Clause | https://deftio.github.com/bitwrench/pages */
2
- const e={version:"2.0.32",name:"bitwrench",description:"A library for javascript UI functions.",license:"BSD-2-Clause",homepage:"https://deftio.github.com/bitwrench/pages",repository:"git+https://github.com/deftio/bitwrench.git",author:"manu a. chatterjee <deftio@deftio.com> (https://deftio.com/)",buildDate:"2026-04-26T20:48:52.112Z"};
3
- /**
4
- * Bitwrench Color Utilities
5
- *
6
- * Standalone color math helpers used by both bitwrench.js and bitwrench-styles.js.
7
- * Extracted to avoid circular dependencies. bitwrench.js re-exports these as
8
- * bw.colorParse, bw.colorRgbToHsl, etc.
9
- *
10
- * @module bitwrench-color-utils
11
- * @license BSD-2-Clause
12
- * @copy Manu Chatterjee @deftio
13
- */function t(e){return("0"+e.toString(16)).slice(-2)}function r(e,t,r){return Math.max(t,Math.min(r,e))}function o(e,t){void 0===t&&(t=255);var r=[0,0,0,t,"rgb"];if(Array.isArray(e)){for(var o=[0,0,0,255,"rgb"],a=0;a<e.length&&a<o.length;a++)o[a]=e[a];return o}if("#"===(e=String(e).replace(/\s/g,""))[0]){var i=e.slice(1);if(3===i.length||4===i.length)for(var s=0;s<i.length;s++)r[s]=parseInt(i[s]+i[s],16);else if(6===i.length||8===i.length)for(var l=0;l<i.length;l+=2)r[l/2]=parseInt(i.substring(l,l+2),16)}else{var c=e.match(/^(rgb|hsl)a?\(([^)]+)\)$/i);if(c){var d=c[1].toLowerCase(),b=c[2].split(",").map(function(e){return parseFloat(e)});if("rgb"===d)r[0]=b[0]||0,r[1]=b[1]||0,r[2]=b[2]||0,r[3]=void 0!==b[3]?255*b[3]:t,r[4]="rgb";else if("hsl"===d){return n(b[0]||0,b[1]||0,b[2]||0,void 0!==b[3]?255*b[3]:t)}}}return r}function a(e,t,r,o,a){void 0===o&&(o=255),void 0===a&&(a=!0),Array.isArray(e)&&(t=e[1],r=e[2],o=void 0!==e[3]?e[3]:255,e=e[0]),e/=255,t/=255,r/=255;var n,i,s=Math.max(e,t,r),l=Math.min(e,t,r),c=(s+l)/2;if(s===l)n=i=0;else{var d=s-l;switch(i=c>.5?d/(2-s-l):d/(s+l),s){case e:n=((t-r)/d+(t<r?6:0))/6;break;case t:n=((r-e)/d+2)/6;break;case r:n=((e-t)/d+4)/6}}return n*=360,i*=100,c*=100,a&&(n=Math.round(n),i=Math.round(i),c=Math.round(c),o=Math.round(o)),[n,i,c,o,"hsl"]}function n(e,t,r,o,a){void 0===o&&(o=255),void 0===a&&(a=!0),Array.isArray(e)&&(t=e[1],r=e[2],o=void 0!==e[3]?e[3]:255,e=e[0]);var n,i,s,l=e/360,c=t/100,d=r/100;if(0===c)n=i=s=255*d;else{var b=function(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e},_=d<.5?d*(1+c):d+c-d*c,u=2*d-_;n=255*b(u,_,l+1/3),i=255*b(u,_,l),s=255*b(u,_,l-1/3)}return a&&(n=Math.round(n),i=Math.round(i),s=Math.round(s),o=Math.round(o)),[n,i,s,o,"rgb"]}function i(e){var t=o(e),r=a(t[0],t[1],t[2],255,!1);return[r[0],r[1],r[2]]}function s(e){var r=n(e[0],e[1],e[2],255,!0);return"#"+t(r[0])+t(r[1])+t(r[2])}function l(e,t){var o=i(e);return o[2]=r(o[2]+t,0,100),s(o)}function c(e,r,a){var n=o(e),i=o(r),s=Math.round(n[0]+(i[0]-n[0])*a),l=Math.round(n[1]+(i[1]-n[1])*a),c=Math.round(n[2]+(i[2]-n[2])*a);return"#"+t(s)+t(l)+t(c)}function d(e){var t=o(e),r=[t[0]/255,t[1]/255,t[2]/255].map(function(e){return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)});return.2126*r[0]+.7152*r[1]+.0722*r[2]}function b(e){return d(e)>.179?"#000":"#fff"}function _(e,t,r){if(void 0===r&&(r=.2),0===r)return e;var o=i(e),a=i(t)[0]-o[0];return a>180&&(a-=360),a<-180&&(a+=360),s([(o[0]+a*r+360)%360,o[1],o[2]])}function u(e){var t=o(e),r=i(e)[2]>75?l(e,-18):c(e,"#ffffff",.6);return{base:e,hover:l(e,-10),active:l(e,-15),light:c(e,"#ffffff",.85),darkText:l(e,-40),border:r,focus:"rgba("+t[0]+","+t[1]+","+t[2]+",0.25)",textOn:b(e)}}function p(e){var t,o,a=i(e),n=a[0],l=a[1],c=a[2];return c>50?(t=r(100-c-10,8,40),o=r(.85*l,0,100)):(t=r(100-c+10,60,92),o=r(1.1*l,0,100)),s([n,o,t])}function m(e){var t=d(e.primary);return e.secondary&&(t=(t+d(e.secondary))/2),e.tertiary&&(t=(2*t+d(e.tertiary))/3),t>.179}function w(e){var t={};t.primary=p(e.primary),t.secondary=p(e.secondary),t.tertiary=e.tertiary?p(e.tertiary):t.primary;var r=i(e.primary),o=r[0];d(e.surface||s([o,8,96]))>.179?(t.light=s([o,Math.min(r[1],15),15]),t.dark=s([o,5,88]),t.surface=s([o,12,18]),t.background=s([o,10,14])):(t.light=s([o,Math.min(r[1],10),96]),t.dark=s([o,10,18]),t.surface=s([o,8,96]),t.background=s([o,6,98]));for(var a=void 0!==e.harmonize?e.harmonize:.2,n={success:"#198754",danger:"#dc3545",warning:"#f0ad4e",info:"#17a2b8"},l=["success","danger","warning","info"],c=0;c<l.length;c++){var b=l[c],u=_(e[b]||n[b],e.primary,a);t[b]=p(u)}return t.harmonize=0,t}function f(e){var t=void 0!==e.harmonize?e.harmonize:.2,r=e.primary,o=i(r)[0],a=_(e.success||"#198754",r,t),n=_(e.danger||"#dc3545",r,t),l=_(e.warning||"#f0ad4e",r,t),c=_(e.info||"#17a2b8",r,t),d=e.light||s([o,8,97]),b=e.dark||s([o,10,13]),p=e.background||s([o,22,96]),m=e.surface||s([o,25,94]),w=i(m),f=w[2]<=50?s([w[0],w[1],Math.min(w[2]+8,100)]):s([w[0],w[1],Math.max(w[2]-3,0)]);return{primary:u(e.primary),secondary:u(e.secondary),tertiary:u(e.tertiary),success:u(a),danger:u(n),warning:u(l),info:u(c),light:u(d),dark:u(b),background:p,surface:m,surfaceAlt:f}}
14
- /**
15
- * Bitwrench v2 Default Styles
16
- *
17
- * CSS-in-JS style definitions providing a complete, Bootstrap-inspired
18
- * design system. Styles are defined as nested JavaScript objects that
19
- * bw.css() converts to CSS strings and bw.injectCSS() injects into the DOM.
20
- *
21
- * The module exports:
22
- * - {@link defaultStyles} - All style categories as a structured object
23
- * - {@link getAllStyles} - Merges all categories into a flat CSS rules object
24
- * - {@link theme} - Design token configuration (colors, breakpoints, spacing, typography)
25
- * - {@link generateThemedCSS} - Generate scoped themed CSS from a palette
26
- * - {@link derivePalette} - Re-export from color-utils for convenience
27
- *
28
- * Style categories: root (CSS variables), reset, typography, grid, buttons,
29
- * cards, forms, navigation, tables, alerts, badges, progress, tabs, listGroups,
30
- * pagination, breadcrumb, hero, features, enhancedCards, sections, cta,
31
- * utilities, responsive.
32
- *
33
- * @module bitwrench-styles
34
- * @license BSD-2-Clause
35
- * @author M A Chatterjee <deftio [at] deftio [dot] com>
36
- */let h={1:"0.25rem",2:"0.5rem",3:"0.75rem",4:"1rem",5:"1.5rem",6:"2rem"};var g={compact:{btn:h[1]+" "+h[3],card:h[3]+" "+h[4],alert:h[2]+" "+h[4],cell:h[2]+" "+h[3],input:h[1]+" "+h[3]},normal:{btn:h[2]+" "+h[4],card:h[5]+" "+h[5],alert:h[3]+" "+h[5],cell:h[3]+" "+h[4],input:h[2]+" "+h[3]},spacious:{btn:h[3]+" "+h[5],card:h[6]+" "+h[6],alert:h[4]+" "+h[5],cell:h[4]+" "+h[5],input:h[3]+" "+h[4]}},v={none:{btn:"0",card:"0",badge:"0",alert:"0",input:"0"},sm:{btn:"4px",card:"4px",badge:".25rem",alert:"4px",input:"4px"},md:{btn:"6px",card:"8px",badge:".375rem",alert:"8px",input:"6px"},lg:{btn:"10px",card:"12px",badge:".5rem",alert:"12px",input:"10px"},pill:{btn:"50rem",card:"1rem",badge:"50rem",alert:"1rem",input:"50rem"}},y={tight:1.125,normal:1.2,relaxed:1.25,dramatic:1.333};function x(e,t){return e||(e=16),t||(t=1.2),{xs:Math.round(e/(t*t)),sm:Math.round(e/t),base:e,lg:Math.round(e*t),xl:Math.round(e*t*t),"2xl":Math.round(e*Math.pow(t,3)),"3xl":Math.round(e*Math.pow(t,4)),"4xl":Math.round(e*Math.pow(t,5))}}var k={flat:{sm:"none",md:"none",lg:"none",xl:"none"},sm:{sm:"0 1px 2px rgba(0,0,0,0.05)",md:"0 1px 3px rgba(0,0,0,0.08)",lg:"0 2px 6px rgba(0,0,0,0.10)",xl:"0 4px 12px rgba(0,0,0,0.12)"},md:{sm:"0 1px 3px rgba(0,0,0,0.10), 0 1px 2px rgba(0,0,0,0.06)",md:"0 4px 6px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.06)",lg:"0 10px 15px rgba(0,0,0,0.12), 0 4px 6px rgba(0,0,0,0.08)",xl:"0 20px 25px rgba(0,0,0,0.15), 0 8px 10px rgba(0,0,0,0.10)"},lg:{sm:"0 2px 4px rgba(0,0,0,0.10)",md:"0 4px 12px rgba(0,0,0,0.16)",lg:"0 8px 24px rgba(0,0,0,0.22)",xl:"0 16px 48px rgba(0,0,0,0.28)"}},C={reduced:{fast:"0ms",normal:"0ms",slow:"0ms",easing:"linear"},standard:{fast:"100ms",normal:"200ms",slow:"300ms",easing:"ease-out"},expressive:{fast:"150ms",normal:"300ms",slow:"500ms",easing:"cubic-bezier(0.34, 1.56, 0.64, 1)"}},S={primary:"#006666",secondary:"#6c757d",tertiary:"#006666",success:"#198754",danger:"#dc3545",warning:"#b38600",info:"#0891b2",light:"#f8f9fa",dark:"#212529"},j=Object.fromEntries([["teal","#006666","#6c757d","#006666"],["ocean","#0077b6","#90e0ef","#00b4d8"],["sunset","#e76f51","#264653","#e9c46a"],["forest","#2d6a4f","#95d5b2","#52b788"],["slate","#343a40","#adb5bd","#6c757d"],["rose","#e11d48","#fda4af","#fb7185"],["indigo","#4f46e5","#a5b4fc","#818cf8"],["amber","#d97706","#fbbf24","#f59e0b"],["emerald","#059669","#6ee7b7","#34d399"],["nord","#5e81ac","#88c0d0","#81a1c1"],["coral","#ef6461","#4a7c7e","#e8a87c"],["midnight","#1e3a5f","#7c8db5","#3d5a80"]].map(function(e){return[e[0],{primary:e[1],secondary:e[2],tertiary:e[3]}]}));var L=function(e,t){return e?t.includes(",")?t.split(",").map(function(t){return"."+e+" "+t.trim()}).join(", "):"."+e+" "+t:t};function A(e,t,r){return Object.assign({},function(e,t){var r={},o=t.background||"#f5f5f5",a={color:t.dark.base,"background-color":o};return r[L(e,"body")]=a,r}(e,t),function(e,t,r){var o=r.motion,a={};return a[L(e,"a")]={color:t.primary.base,"text-decoration":"none",transition:"color "+o.fast+" "+o.easing},a[L(e,"a:hover")]={color:t.tertiary.hover,"text-decoration":"underline"},a}(e,t,r),function(e,t,r){var o={},a=r.spacing,n=r.radius;return o[L(e,".bw_btn")]={padding:a.btn,"border-radius":n.btn},o[L(e,".bw_btn:focus-visible")]={outline:"2px solid currentColor","outline-offset":"2px","box-shadow":"0 0 0 3px "+t.primary.focus},o[L(e,".bw_btn_lg")]={padding:"0.625rem 1.5rem","font-size":"1rem","border-radius":"50rem"===n.btn?"50rem":parseInt(n.btn)+2+"px"},o[L(e,".bw_btn_sm")]={padding:"0.25rem 0.75rem","font-size":"0.8125rem","border-radius":"50rem"===n.btn?"50rem":Math.max(parseInt(n.btn)-1,0)+"px"},o}(e,t,r),function(e,t,r){var o={},a=r.spacing,n=r.radius;return o[L(e,".bw_alert")]={padding:a.alert,"border-radius":n.alert},o}(e,0,r),function(e,t,r){var o={},a=r.spacing,n=r.radius,i=r.elevation,s=r.motion;return o[L(e,".bw_card")]={"background-color":t.surface||"#fff",border:"1px solid "+t.light.border,"border-radius":n.card,"box-shadow":i.sm,transition:"box-shadow "+s.normal+" "+s.easing+", transform "+s.normal+" "+s.easing},o[L(e,".bw_card:hover")]={"box-shadow":i.md},o[L(e,".bw_card_hoverable")]={transition:"box-shadow "+s.slow+" "+s.easing+", transform "+s.slow+" "+s.easing},o[L(e,".bw_card_hoverable:hover")]={"box-shadow":i.lg},o[L(e,".bw_card_body")]={padding:a.card},o[L(e,".bw_card_header")]={padding:a.card.split(" ").map(function(e){return(.7*parseFloat(e)).toFixed(3).replace(/\.?0+$/,"")+"rem"}).join(" "),"background-color":t.surfaceAlt,"border-bottom":"1px solid "+t.light.border},o[L(e,".bw_card_footer")]={"background-color":t.surfaceAlt,"border-top":"1px solid "+t.light.border,color:t.secondary.base},o[L(e,".bw_card_title")]={color:t.dark.base},o[L(e,".bw_card_subtitle")]={color:t.secondary.base},o}(e,t,r),function(e,t,r){var o={},a=r.spacing,n=r.radius;return o[L(e,".bw_form_control")]={padding:a.input,"border-radius":n.input,color:t.dark.base,"background-color":t.surface||"#fff","border-color":t.light.border},o[L(e,".bw_form_control:focus")]={"border-color":t.primary.border,outline:"2px solid "+t.primary.base,"outline-offset":"-1px","box-shadow":"0 0 0 0.25rem "+t.primary.focus},o[L(e,".bw_form_control::placeholder")]={color:t.secondary.base},o[L(e,".bw_form_label")]={color:t.dark.base},o[L(e,".bw_form_text")]={color:t.secondary.base},o[L(e,".bw_form_check_input:checked")]={"background-color":t.primary.base,"border-color":t.primary.base},o[L(e,".bw_form_check_input:focus")]={"box-shadow":"0 0 0 0.25rem "+t.primary.focus},o[L(e,".bw_form_control.bw_is_valid")]={"border-color":t.success.base},o[L(e,".bw_form_control.bw_is_valid:focus")]={"border-color":t.success.base,"box-shadow":"0 0 0 0.2rem "+t.success.focus},o[L(e,".bw_form_control.bw_is_invalid")]={"border-color":t.danger.base},o[L(e,".bw_form_control.bw_is_invalid:focus")]={"border-color":t.danger.base,"box-shadow":"0 0 0 0.2rem "+t.danger.focus},o[L(e,".bw_form_select")]={padding:a.input,"border-radius":n.input,color:t.dark.base,"background-color":t.surface||"#fff","border-color":t.light.border},o[L(e,".bw_form_select:focus")]={"border-color":t.primary.border,"box-shadow":"0 0 0 0.25rem "+t.primary.focus},o}(e,t,r),function(e,t,r){var o={};return o[L(e,".bw_navbar")]={"background-color":t.surfaceAlt,"border-bottom-color":t.light.border},o[L(e,".bw_navbar_brand")]={color:t.dark.base},o[L(e,".bw_navbar_nav .bw_nav_link")]={color:t.secondary.base,"border-radius":r.radius.btn,transition:"color "+r.motion.fast+" "+r.motion.easing+", background-color "+r.motion.fast+" "+r.motion.easing},o[L(e,".bw_navbar_nav .bw_nav_link:hover")]={color:t.tertiary.base,"background-color":t.surfaceAlt},o[L(e,".bw_navbar_nav .bw_nav_link.active")]={color:t.primary.base,"background-color":t.primary.focus,"font-weight":"600"},o[L(e,".bw_navbar_dark")]={"background-color":t.dark.base,"border-bottom-color":t.dark.hover},o[L(e,".bw_navbar_dark .bw_navbar_brand")]={color:t.light.base},o[L(e,".bw_navbar_dark .bw_nav_link")]={color:t.light.border},o[L(e,".bw_navbar_dark .bw_nav_link:hover")]={color:t.light.base},o[L(e,".bw_navbar_dark .bw_nav_link.active")]={color:t.light.base,"font-weight":"600"},o[L(e,".bw_nav_pills .bw_nav_link.active")]={color:t.primary.textOn,"background-color":t.primary.base},o}(e,t,r),function(e,t,r){var o={},a=r.spacing;return o[L(e,".bw_table")]={color:t.dark.base,"border-color":t.light.border},o[L(e,".bw_table > :not(caption) > * > *")]={padding:a.cell,"border-bottom-color":t.light.border},o[L(e,".bw_table > thead > tr > *")]={color:t.secondary.base,"border-bottom-color":t.light.border,"background-color":t.surfaceAlt},o[L(e,".bw_table_striped > tbody > tr:nth-of-type(odd) > *")]={"background-color":t.surfaceAlt},o[L(e,".bw_table_hover > tbody > tr:hover > *")]={"background-color":t.primary.focus},o[L(e,".bw_table_selectable > tbody > tr")]={cursor:"pointer"},o[L(e,".bw_table > tbody > tr.bw_table_row_selected > *")]={"background-color":t.primary.light},o[L(e,".bw_table_bordered")]={"border-color":t.light.border},o[L(e,".bw_table caption")]={color:t.secondary.base},o}(e,t,r),function(e,t,r){var o={},a=r.motion;return o[L(e,".bw_nav_tabs")]={"border-bottom-color":t.light.border},o[L(e,".bw_nav_link")]={color:t.secondary.base,transition:"color "+a.fast+" "+a.easing+", border-color "+a.fast+" "+a.easing+", background-color "+a.fast+" "+a.easing},o[L(e,".bw_nav_tabs .bw_nav_link:hover")]={color:t.tertiary.base,"background-color":t.surfaceAlt,"border-bottom-color":t.light.border},o[L(e,".bw_nav_tabs .bw_nav_link.active")]={color:t.primary.base,"background-color":t.primary.focus,"border-bottom":"2px solid "+t.primary.base},o}(e,t,r),function(e,t,r){var o={},a=r.spacing,n=r.motion;return o[L(e,".bw_list_group_item")]={padding:a.cell,color:t.dark.base,"background-color":t.surface||"#fff","border-color":t.light.border,transition:"color "+n.fast+" "+n.easing+", background-color "+n.fast+" "+n.easing},o[L(e,"a.bw_list_group_item:hover")]={"background-color":t.surfaceAlt,color:t.tertiary.base},o[L(e,".bw_list_group_item.active")]={color:t.primary.textOn,"background-color":t.primary.base,"border-color":t.primary.base},o[L(e,".bw_list_group_item.disabled")]={color:t.secondary.base,"background-color":t.surface||"#fff"},o}(e,t,r),function(e,t,r){var o={},a=r.motion,n=r.radius;return o[L(e,".bw_page_item:first-child .bw_page_link")]={"border-top-left-radius":n.btn,"border-bottom-left-radius":n.btn},o[L(e,".bw_page_item:last-child .bw_page_link")]={"border-top-right-radius":n.btn,"border-bottom-right-radius":n.btn},o[L(e,".bw_page_link")]={color:t.primary.base,"background-color":t.surface||"#fff","border-color":t.light.border,transition:"color "+a.fast+" "+a.easing+", background-color "+a.fast+" "+a.easing},o[L(e,".bw_page_link:hover")]={color:t.primary.hover,"background-color":t.surfaceAlt,"border-color":t.light.border},o[L(e,".bw_page_link:focus")]={outline:"2px solid "+t.primary.base,"outline-offset":"-2px"},o[L(e,".bw_page_item.bw_active .bw_page_link")]={color:t.primary.textOn,"background-color":t.primary.base,"border-color":t.primary.base},o[L(e,".bw_page_item.bw_disabled .bw_page_link")]={color:t.secondary.base,"background-color":t.surface||"#fff","border-color":t.light.border},o}(e,t,r),function(e,t,r){var o={},a=r?r.radius:{badge:".375rem"};return o[L(e,".bw_progress")]={"background-color":t.surfaceAlt,"border-radius":a.badge,"box-shadow":"inset 0 1px 2px rgba(0,0,0,.1)"},o[L(e,".bw_progress_bar")]={color:t.primary.textOn,"background-color":t.primary.base,"border-radius":"inherit","box-shadow":"inset 0 -1px 0 rgba(0,0,0,.15)"},o}(e,t,r),function(e,t,r){var o={},a=r.motion;return o[L(e,".bw_breadcrumb")]={"background-color":t.surfaceAlt,padding:"0.625rem 1rem","border-radius":r.radius.btn},o[L(e,".bw_breadcrumb_item + .bw_breadcrumb_item::before")]={color:t.secondary.base},o[L(e,".bw_breadcrumb_item a")]={color:t.tertiary.base,transition:"color "+a.fast+" "+a.easing},o[L(e,".bw_breadcrumb_item a:hover")]={color:t.tertiary.hover,"text-decoration":"underline"},o[L(e,".bw_breadcrumb_item.active")]={color:t.dark.base},o}(e,t,r),function(e,t){var r={};return r[L(e,".bw_close")]={color:t.dark.base,opacity:"0.5"},r[L(e,".bw_close:focus")]={"box-shadow":"0 0 0 0.25rem "+t.primary.focus},r}(e,t),function(e,t){var r={};return r[L(e,".bw_section_subtitle")]={color:t.secondary.base},r[L(e,".bw_feature_description")]={color:t.secondary.base},r[L(e,".bw_cta_description")]={color:t.secondary.base},r}(e,t),function(e,t,r){var o={},a=r?r.radius:{card:"8px"};return o[L(e,".bw_accordion_item")]={"background-color":t.surface||"#fff","border-color":t.light.border},o[L(e,".bw_accordion_item:first-child")]={"border-top-left-radius":a.card,"border-top-right-radius":a.card},o[L(e,".bw_accordion_item:last-child")]={"border-bottom-left-radius":a.card,"border-bottom-right-radius":a.card},o[L(e,".bw_accordion_button")]={color:t.dark.base},o[L(e,".bw_accordion_button:not(.bw_collapsed)")]={color:t.primary.darkText,"background-color":t.primary.light,"border-left":"3px solid "+t.primary.base},o[L(e,".bw_accordion_button:hover")]={"background-color":t.surfaceAlt},o[L(e,".bw_accordion_button:not(.bw_collapsed):hover")]={"background-color":t.primary.base,color:t.primary.textOn},o[L(e,".bw_accordion_button:focus-visible")]={"box-shadow":"0 0 0 0.2rem "+t.primary.focus},o[L(e,".bw_accordion_body")]={"border-top":"1px solid "+t.light.border,"background-color":t.surfaceAlt},o}(e,t,r),function(e,t){var r={};return r[L(e,".bw_carousel")]={"background-color":t.surfaceAlt},r[L(e,".bw_carousel_indicator.active")]={"background-color":t.primary.base},r[L(e,".bw_carousel_control")]={"background-color":t.dark.base,color:t.dark.textOn,transition:"background-color 0.15s ease-out"},r[L(e,".bw_carousel_control:hover")]={"background-color":t.dark.hover},r[L(e,".bw_carousel_caption")]={background:"linear-gradient(transparent, "+t.dark.base+")",color:t.dark.textOn},r}(e,t),function(e,t,r){var o={},a=r?r.radius:{card:"8px"};return o[L(e,".bw_modal_content")]={"background-color":t.surface||"#fff","border-color":t.light.border,"border-radius":a.card,"box-shadow":r.elevation.lg},o[L(e,".bw_modal_header")]={"border-bottom-color":t.light.border},o[L(e,".bw_modal_footer")]={"border-top-color":t.light.border},o[L(e,".bw_modal_title")]={color:t.dark.base},o}(e,t,r),function(e,t,r){var o={},a=r?r.radius:{card:"8px"};return o[L(e,".bw_toast")]={"background-color":t.surface||"#fff","border-color":t.light.border,"border-radius":a.card,"box-shadow":r.elevation.lg},o[L(e,".bw_toast_header")]={"border-bottom-color":t.light.border},o}(e,t,r),function(e,t,r){var o={},a=r?r.radius:{card:"8px"};return o[L(e,".bw_dropdown_menu")]={"background-color":t.surface||"#fff","border-color":t.light.border,"border-radius":a.card,"box-shadow":r.elevation.md},o[L(e,".bw_dropdown_item")]={color:t.dark.base,transition:"background-color "+r.motion.fast+" "+r.motion.easing},o[L(e,".bw_dropdown_item:hover")]={color:t.dark.hover,"background-color":t.surfaceAlt},o[L(e,".bw_dropdown_item.disabled")]={color:t.secondary.base},o[L(e,".bw_dropdown_divider")]={"border-top-color":t.light.border},o}(e,t,r),function(e,t){var r={};return r[L(e,".bw_form_switch .bw_switch_input")]={"background-color":t.secondary.base,"border-color":t.secondary.base},r[L(e,".bw_form_switch .bw_switch_input:checked")]={"background-color":t.primary.base,"border-color":t.primary.base},r[L(e,".bw_form_switch .bw_switch_input:focus")]={"box-shadow":"0 0 0 0.25rem "+t.primary.focus},r[L(e,".bw_form_switch .bw_switch_input:focus-visible")]={"box-shadow":"0 0 0 0.25rem "+t.primary.focus,outline:"none"},r}(e,t),function(e,t){var r={};return r[L(e,".bw_skeleton")]={background:"linear-gradient(90deg, "+t.light.border+" 25%, "+t.surfaceAlt+" 37%, "+t.light.border+" 63%)"},r}(e,t),function(e,t,r){var o={},a=r.motion,n=r.elevation,i=r.radius;return o[L(e,".bw_stat_card")]={"background-color":t.surface||"#fff",color:t.dark.base,border:"1px solid "+t.light.border,"border-radius":i.card,"box-shadow":n.sm,transition:"box-shadow "+a.fast+" "+a.easing+", transform "+a.fast+" "+a.easing},o[L(e,".bw_stat_card:hover")]={"box-shadow":n.md},o[L(e,".bw_stat_change_up")]={color:t.success.base},o[L(e,".bw_stat_change_down")]={color:t.danger.base},o}(e,t,r),function(e,t){var r={};return r[L(e,".bw_timeline::before")]={"background-color":t.light.border},r[L(e,".bw_timeline_date")]={color:t.secondary.base},r}(e,t),function(e,t){var r={};return r[L(e,".bw_step_indicator")]={"background-color":t.surfaceAlt,border:"2px solid "+t.light.border,color:t.secondary.base},r[L(e,".bw_step + .bw_step::before")]={"background-color":t.light.border},r[L(e,".bw_step_active .bw_step_indicator")]={"background-color":t.primary.base,color:t.primary.textOn},r[L(e,".bw_step_active .bw_step_label")]={color:t.dark.base,"font-weight":"600"},r[L(e,".bw_step_completed .bw_step_indicator")]={"background-color":t.tertiary.base,color:t.tertiary.textOn},r[L(e,".bw_step_completed .bw_step_label")]={color:t.tertiary.base},r[L(e,".bw_step_completed + .bw_step::before")]={"background-color":t.tertiary.base},r}(e,t),function(e,t,r){var o={},a=r?r.radius:{input:"6px"};return o[L(e,".bw_chip_input")]={"border-color":t.light.border,"background-color":t.surface||"#fff",color:t.dark.base,"border-radius":a.input},o[L(e,".bw_chip_input:focus-within")]={"border-color":t.primary.base,"box-shadow":"0 0 0 0.2rem "+t.primary.focus},o[L(e,".bw_chip")]={"background-color":t.surfaceAlt,color:t.dark.base},o[L(e,".bw_chip_remove:hover")]={color:t.danger.base,"background-color":t.danger.light},o}(e,t,r),function(e,t,r){var o={},a=r.motion;return o[L(e,".bw_file_upload")]={"border-color":t.light.border,"background-color":t.surfaceAlt,transition:"border-color "+a.fast+" "+a.easing+", background-color "+a.fast+" "+a.easing},o[L(e,".bw_file_upload:hover")]={"border-color":t.primary.base,"background-color":t.primary.light},o[L(e,".bw_file_upload:focus")]={outline:"2px solid "+t.primary.base,"outline-offset":"2px"},o[L(e,".bw_file_upload.bw_file_upload_active")]={"border-color":t.primary.base,"background-color":t.primary.light,"border-style":"solid"},o}(e,t,r),function(e,t){var r={};return r[L(e,".bw_range")]={"background-color":t.light.border},r[L(e,".bw_range::-webkit-slider-thumb")]={"background-color":t.primary.base,"border-color":t.surface||"#fff","box-shadow":"0 1px 3px rgba(0,0,0,0.2)",transition:"background-color 0.15s ease-out, transform 0.15s ease-out"},r[L(e,".bw_range::-moz-range-thumb")]={"background-color":t.primary.base,"border-color":t.surface||"#fff","box-shadow":"0 1px 3px rgba(0,0,0,0.2)"},r}(e,t),function(e,t,r){var o={},a=r.motion;return o[L(e,".bw_search_input")]={"background-color":t.surface||"#fff",color:t.dark.base},o[L(e,".bw_search_clear")]={transition:"color "+a.fast+" "+a.easing+", background-color "+a.fast+" "+a.easing},o[L(e,".bw_search_clear:hover")]={color:t.dark.base},o}(e,t,r),function(e,t,r){var o={},a=r.spacing,n=r.radius,i=r.elevation,s=r.motion;return o[L(e,".bw_tooltip")]={"background-color":t.dark.base,color:t.dark.textOn,padding:a.input,"border-radius":n.badge,"box-shadow":i.md,transition:"opacity "+s.fast+" "+s.easing+", transform "+s.fast+" "+s.easing},o}(e,t,r),function(e,t,r){var o={},a=r.spacing,n=r.radius,i=r.elevation,s=r.motion;return o[L(e,".bw_popover")]={"background-color":t.surface||"#fff",color:t.dark.base,border:"1px solid "+t.light.border,"border-radius":n.card,"box-shadow":i.lg,transition:"opacity "+s.fast+" "+s.easing+", transform "+s.fast+" "+s.easing},o[L(e,".bw_popover_header")]={"background-color":t.surfaceAlt,"border-bottom":"1px solid "+t.light.border,padding:a.input},o[L(e,".bw_popover_body")]={padding:a.card},o}(e,t,r),function(e,t,r){var o={},a=r?r.radius:{card:"0.375rem"};return o[L(e,".bw_code_demo")]={"background-color":t.surface||"#fff",color:t.dark.base,"border-radius":a.card},o[L(e,".bw_code_copy_btn_copied")]={background:t.success.base,color:t.success.textOn,"border-color":t.success.base},o[L(e,".bw_copy_btn:hover")]={background:"rgba(255,255,255,0.2)",color:"#fff"},o}(e,t,r),function(e,t,r){var o={},a=r.radius;return o[L(e,".bw_nav_pills .bw_nav_link")]={"border-radius":a.btn},o}(e,0,r),function(e,t){var r={};return Object.keys(t).forEach(function(o){if("object"==typeof t[o]){var a=t[o];r[L(e,".bw_"+o)]={"background-color":a.base,color:a.textOn,"border-color":a.base},r[L(e,".bw_"+o+":hover")]={"background-color":a.hover,"border-color":a.active},r[L(e,".bw_"+o+":active")]={"background-color":a.active},r[L(e,".bw_"+o+":focus-visible")]={"box-shadow":"0 0 0 3px "+a.focus,outline:"none"},r[L(e,".bw_alert.bw_"+o)]={"background-color":a.light,color:a.darkText,"border-color":a.border},r[L(e,".bw_toast.bw_"+o)]={"background-color":"inherit",color:"inherit","border-left":"4px solid "+a.base},r[L(e,".bw_stat_card.bw_"+o)]={"background-color":"inherit",color:"inherit","border-left-color":a.base},r[L(e,".bw_card.bw_"+o)]={"background-color":"inherit",color:"inherit","border-left":"4px solid "+a.base},r[L(e,".bw_timeline_marker.bw_"+o)]={"box-shadow":"0 0 0 2px "+a.base},r[L(e,".bw_spinner_border.bw_"+o)]={"background-color":"transparent",color:a.base,"border-color":a.base,"border-right-color":"transparent"},r[L(e,".bw_spinner_border.bw_"+o+":hover")]={"background-color":"transparent","border-color":a.base,"border-right-color":"transparent"},r[L(e,".bw_spinner_grow.bw_"+o)]={"background-color":a.base,color:a.base},r[L(e,".bw_btn_outline.bw_"+o)]={"background-color":"transparent",color:a.base,"border-color":a.base},r[L(e,".bw_btn_outline.bw_"+o+":hover")]={"background-color":a.base,color:a.textOn},r[L(e,".bw_hero.bw_"+o)]={background:"linear-gradient(135deg, "+a.base+" 0%, "+a.hover+" 100%)",color:a.textOn},r[L(e,".bw_progress_bar.bw_"+o)]={color:a.textOn},r[L(e,".bw_bg_"+o)]={"background-color":a.base,color:a.textOn},r[L(e,".bw_text_"+o)]={color:a.base}}}),r[L(e,".bw_text_muted")]={color:t.secondary.base},r[L(e,".bw_bg_dark")]={"background-color":t.dark.base,color:t.dark.textOn},r[L(e,".bw_bg_light")]={"background-color":t.light.base,color:t.light.textOn},r[L(e,".bw_text_light")]={color:t.light.base},r[L(e,".bw_text_dark")]={color:t.dark.base},r}(e,t))}var z={base:{"*":{"box-sizing":"border-box",margin:"0",padding:"0"},html:{"font-size":"16px","line-height":"1.5","-webkit-text-size-adjust":"100%","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"},body:{"font-family":'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',"font-size":"1rem","font-weight":"400","line-height":"1.6",margin:"0",padding:"0","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"},".bw_page":{"min-height":"100vh",display:"flex","flex-direction":"column"},".bw_page_content":{flex:"1",padding:"2rem 0"},main:{display:"block"},hr:{"box-sizing":"content-box",height:"0",overflow:"visible",margin:"1rem 0",border:"0"},"hr:not([size])":{height:"1px"}},typography:{"h1, h2, h3, h4, h5, h6":{"margin-top":"0","margin-bottom":".5rem","font-weight":"600","line-height":"1.25","letter-spacing":"-0.01em"},h1:{"font-size":"calc(1.375rem + 1.5vw)"},h2:{"font-size":"calc(1.325rem + .9vw)"},h3:{"font-size":"calc(1.3rem + .6vw)"},h4:{"font-size":"calc(1.275rem + .3vw)"},h5:{"font-size":"1.25rem"},h6:{"font-size":"1rem"},p:{"margin-top":"0","margin-bottom":"1rem"},small:{"font-size":"0.875rem"},a:{"text-decoration":"none"},".bw_display_4":{"font-size":"calc(1.475rem + 2.7vw)","font-weight":"300","line-height":"1.2"},".bw_lead":{"font-size":"1.25rem","font-weight":"300"},".bw_h5":{"font-size":"1.25rem"},".bw_h6":{"font-size":"1rem"}},grid:{".bw_container":{width:"100%","padding-right":"0.75rem","padding-left":"0.75rem","margin-right":"auto","margin-left":"auto"},"@media (min-width: 576px)":{".bw_container":{"max-width":"540px"}},"@media (min-width: 768px)":{".bw_container":{"max-width":"720px"}},"@media (min-width: 992px)":{".bw_container":{"max-width":"960px"}},"@media (min-width: 1200px)":{".bw_container":{"max-width":"1140px"}},".bw_container_fluid":{width:"100%","padding-right":"0.75rem","padding-left":"0.75rem","margin-right":"auto","margin-left":"auto"},".bw_row":{display:"flex","flex-wrap":"wrap","margin-right":"calc(var(--bw_gutter_x, 0.75rem) * -0.5)","margin-left":"calc(var(--bw_gutter_x, 0.75rem) * -0.5)"},'.col, [class*="col-"]':{position:"relative",width:"100%","padding-right":"calc(var(--bw_gutter_x, 0.75rem) * 0.5)","padding-left":"calc(var(--bw_gutter_x, 0.75rem) * 0.5)"},".bw_col":{"flex-basis":"0","flex-grow":"1","max-width":"100%"},".bw_col_1":{flex:"0 0 8.333333%","max-width":"8.333333%"},".bw_col_2":{flex:"0 0 16.666667%","max-width":"16.666667%"},".bw_col_3":{flex:"0 0 25%","max-width":"25%"},".bw_col_4":{flex:"0 0 33.333333%","max-width":"33.333333%"},".bw_col_5":{flex:"0 0 41.666667%","max-width":"41.666667%"},".bw_col_6":{flex:"0 0 50%","max-width":"50%"},".bw_col_7":{flex:"0 0 58.333333%","max-width":"58.333333%"},".bw_col_8":{flex:"0 0 66.666667%","max-width":"66.666667%"},".bw_col_9":{flex:"0 0 75%","max-width":"75%"},".bw_col_10":{flex:"0 0 83.333333%","max-width":"83.333333%"},".bw_col_11":{flex:"0 0 91.666667%","max-width":"91.666667%"},".bw_col_12":{flex:"0 0 100%","max-width":"100%"}},buttons:{".bw_btn":{display:"inline-flex","align-items":"center","justify-content":"center","font-weight":"500","line-height":"1.5","text-align":"center","text-decoration":"none","vertical-align":"middle",cursor:"pointer","user-select":"none",border:"1px solid transparent","font-size":"0.875rem","font-family":"inherit",gap:"0.5rem"},".bw_btn:hover":{"text-decoration":"none",transform:"translateY(-1px)"},".bw_btn:active":{transform:"translateY(0)"},".bw_btn:focus-visible":{outline:"2px solid currentColor","outline-offset":"2px"},".bw_btn:disabled":{opacity:"0.5",cursor:"not-allowed","pointer-events":"none"},".bw_btn_block":{display:"block",width:"100%"}},cards:{".bw_card":{position:"relative",display:"flex","flex-direction":"column","min-width":"0",height:"100%","word-wrap":"break-word","background-clip":"border-box","margin-bottom":"1.5rem",overflow:"hidden"},".bw_card_body":{flex:"1 1 auto"},".bw_card_body > *:last-child":{"margin-bottom":"0"},".bw_card_title":{"margin-bottom":"0.5rem","font-size":"1.125rem","font-weight":"600","line-height":"1.3"},".bw_card_text":{"margin-bottom":"0","font-size":"0.9375rem","line-height":"1.6"},".bw_card_header":{"margin-bottom":"0","font-weight":"600","font-size":"0.875rem"},".bw_card_footer":{"font-size":"0.875rem"},".bw_card_hoverable":{},".bw_card_hoverable:hover":{transform:"translateY(-4px)"},".bw_card_img_top":{width:"100%"},".bw_card_img_bottom":{width:"100%"},".bw_card_img_left":{width:"40%","object-fit":"cover"},".bw_card_img_right":{width:"40%","object-fit":"cover"},".bw_card_subtitle, .card-subtitle":{"margin-top":"-0.25rem","margin-bottom":"0.5rem","font-size":"0.875rem"}},forms:{".bw_form_control":{display:"block",width:"100%","font-size":"0.9375rem","font-weight":"400","line-height":"1.5","background-clip":"padding-box",appearance:"none",border:"1px solid transparent","font-family":"inherit",transition:"border-color 0.15s ease-out, box-shadow 0.15s ease-out"},".bw_form_control:focus":{outline:"2px solid currentColor","outline-offset":"-1px"},".bw_form_control::placeholder":{opacity:"1"},".bw_form_label":{display:"block","margin-bottom":"0.375rem","font-size":"0.875rem","font-weight":"600"},".bw_form_group":{"margin-bottom":"1.25rem"},".bw_form_text":{"margin-top":"0.25rem","font-size":"0.8125rem"},"select.bw_form_control":{"padding-right":"2.25rem","background-image":"url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e\")","background-repeat":"no-repeat","background-position":"right 0.75rem center","background-size":"16px 12px"},"textarea.bw_form_control":{"min-height":"5rem",resize:"vertical"},".bw_valid_feedback":{display:"block","font-size":"0.875rem","margin-top":"0.25rem"},".bw_invalid_feedback":{display:"block","font-size":"0.875rem","margin-top":"0.25rem"}},formChecks:{".bw_form_check":{display:"flex","align-items":"center",gap:"0.5rem","min-height":"1.5rem","margin-bottom":"0.25rem"},".bw_form_check_input":{width:"1rem",height:"1rem",margin:"0",cursor:"pointer","flex-shrink":"0","border-radius":"0.25rem",appearance:"auto"},".bw_form_check_input:disabled":{opacity:"0.5",cursor:"not-allowed"},".bw_form_check_label":{cursor:"pointer","user-select":"none","font-size":"0.9375rem"}},navigation:{".bw_navbar":{position:"relative",display:"flex","flex-wrap":"wrap","align-items":"center","justify-content":"space-between",padding:"0.5rem 1.5rem"},".bw_navbar > .bw_container, .bw_navbar > .container":{display:"flex","flex-wrap":"wrap","align-items":"center","justify-content":"space-between"},".bw_navbar_brand":{display:"inline-flex","align-items":"center",gap:"0.5rem","padding-top":"0.25rem","padding-bottom":"0.25rem","margin-right":"1.5rem","font-size":"1.125rem","font-weight":"600","line-height":"inherit","white-space":"nowrap","text-decoration":"none"},".bw_navbar_nav":{display:"flex","flex-direction":"row","padding-left":"0","margin-bottom":"0","list-style":"none",gap:"0.25rem"},".bw_navbar_nav .bw_nav_link":{display:"block","text-decoration":"none","font-size":"0.875rem","font-weight":"500"}},tables:{".bw_table":{width:"100%","margin-bottom":"1.5rem","vertical-align":"top","border-collapse":"collapse","font-size":"0.9375rem","line-height":"1.5"},".bw_table > :not(caption) > * > *":{"background-color":"transparent","border-bottom-width":"1px","border-bottom-style":"solid"},".bw_table > tbody":{"vertical-align":"inherit"},".bw_table > thead":{"vertical-align":"bottom"},".bw_table > thead > tr > *":{"font-size":"0.8125rem","font-weight":"600","text-transform":"uppercase","letter-spacing":"0.04em","border-bottom-width":"2px"},".bw_table caption":{"font-size":"0.875rem","caption-side":"bottom"},".bw_table_bordered > :not(caption) > * > *":{"border-width":"1px","border-style":"solid"},".bw_table_selectable > tbody > tr":{cursor:"pointer"},".bw_table > tbody > tr.bw_table_row_selected > *":{"background-color":"rgba(0, 102, 102, 0.1)"},".bw_table_responsive":{"overflow-x":"auto","-webkit-overflow-scrolling":"touch"}},alerts:{".bw_alert":{position:"relative","margin-bottom":"1rem",border:"1px solid transparent","font-size":"0.9375rem","line-height":"1.6"},".bw_alert_heading, .alert-heading":{color:"inherit"},".bw_alert_link, .alert-link":{"font-weight":"700"},".bw_alert_dismissible":{"padding-right":"3rem"},".bw_alert_dismissible .btn-close":{position:"absolute",top:"0",right:"0","z-index":"2",padding:"1.25rem 1rem"}},badges:{".bw_badge":{display:"inline-block","font-size":"0.875rem","font-weight":"600","line-height":"1.3","text-align":"center","white-space":"nowrap","vertical-align":"baseline",padding:"0.35rem 0.65rem","border-radius":"0.25rem"},".bw_badge:empty":{display:"none"},".bw_badge_sm":{"font-size":"0.75rem",padding:"0.25rem 0.5rem"},".bw_badge_lg":{"font-size":"1rem",padding:"0.5rem 0.875rem"},".bw_badge_pill":{"border-radius":"50rem"},".btn .badge":{position:"relative",top:"-1px"}},progress:{".bw_progress":{display:"flex",height:"1.25rem",overflow:"hidden","font-size":".875rem"},".bw_progress_bar":{display:"flex","flex-direction":"column","justify-content":"center",overflow:"hidden","text-align":"center","white-space":"nowrap","font-weight":"600"},".bw_progress_bar_striped":{"background-image":"linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)","background-size":"1rem 1rem"},".bw_progress_bar_animated":{animation:"progress-bar-stripes 1s linear infinite"},"@keyframes progress-bar-stripes":{"0%":{"background-position-x":"1rem"}}},tabs:{".bw_nav":{display:"flex","flex-wrap":"wrap","padding-left":"0","margin-bottom":"0","list-style":"none",gap:"0"},".bw_nav_item":{display:"block"},".bw_nav_tabs .bw_nav_item":{"margin-bottom":"-2px"},".bw_nav_link":{display:"block","font-size":"0.875rem","font-weight":"500",padding:"0.625rem 1rem","text-decoration":"none",cursor:"pointer",border:"none",background:"transparent","font-family":"inherit"},".bw_nav_link:focus-visible":{outline:"2px solid currentColor","outline-offset":"-2px"},".bw_nav_tabs .bw_nav_link":{border:"none","border-bottom":"2px solid transparent","border-radius":"0","background-color":"transparent"},".bw_nav_vertical":{"flex-direction":"column"},".bw_tab_content":{padding:"1.25rem 0"},".bw_tab_pane":{display:"none"},".bw_tab_pane.active":{display:"block"},".bw_nav_scrollable":{"flex-wrap":"nowrap","overflow-x":"auto","-webkit-overflow-scrolling":"touch","scrollbar-width":"none"},".bw_nav_scrollable::-webkit-scrollbar":{display:"none"},".bw_nav_scrollable .bw_nav_link":{"white-space":"nowrap"}},listGroups:{".bw_list_group":{display:"flex","flex-direction":"column","padding-left":"0","margin-bottom":"0"},".bw_list_group_item":{position:"relative",display:"block","text-decoration":"none","font-size":"0.9375rem"},".bw_list_group_item:first-child":{"border-top-left-radius":"inherit","border-top-right-radius":"inherit"},".bw_list_group_item:last-child":{"border-bottom-right-radius":"inherit","border-bottom-left-radius":"inherit"},".bw_list_group_item + .bw_list_group_item":{"border-top-width":"0"},".bw_list_group_item.disabled":{"pointer-events":"none"},"a.bw_list_group_item":{cursor:"pointer"},"a.bw_list_group_item:focus-visible, .bw_list_group_item:focus-visible":{"z-index":"2",outline:"2px solid currentColor","outline-offset":"-2px"},".bw_list_group_flush":{"border-radius":"0"},".bw_list_group_flush > .bw_list_group_item":{"border-width":"0 0 1px","border-radius":"0"},".bw_list_group_flush > .bw_list_group_item:last-child":{"border-bottom-width":"0"}},pagination:{".bw_pagination":{display:"flex","padding-left":"0","list-style":"none","margin-bottom":"0"},".bw_page_item":{display:"list-item","list-style":"none"},".bw_page_link":{position:"relative",display:"block",padding:"0.375rem 0.75rem","margin-left":"-1px","line-height":"1.25","text-decoration":"none",border:"1px solid transparent",cursor:"pointer","font-family":"inherit","font-size":"inherit",background:"none"},".bw_page_item:first-child .bw_page_link":{"margin-left":"0"},".bw_page_link:focus-visible":{"z-index":"3",outline:"2px solid currentColor","outline-offset":"-2px"}},breadcrumb:{".bw_breadcrumb":{display:"flex","flex-wrap":"wrap",padding:"0 0","margin-bottom":"1rem","list-style":"none"},".bw_breadcrumb_item":{display:"flex"},".bw_breadcrumb_item + .bw_breadcrumb_item":{"padding-left":"0.5rem"},".bw_breadcrumb_item + .bw_breadcrumb_item::before":{float:"left","padding-right":"0.5rem",content:'"/"'},".bw_breadcrumb_item a":{"text-decoration":"none"},".bw_breadcrumb_item.active":{"font-weight":"500"}},hero:{".bw_hero":{position:"relative",overflow:"hidden"},".bw_hero_overlay":{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","z-index":"1"},".bw_hero_content":{position:"relative","z-index":"2"},".bw_hero_title":{"font-weight":"300","letter-spacing":"-0.05rem",color:"inherit"},".bw_hero_subtitle":{color:"inherit"},".bw_hero_actions":{display:"flex",gap:"1rem","justify-content":"center","flex-wrap":"wrap"}},features:{".bw_feature":{padding:"1rem"},".bw_feature_icon":{display:"inline-block","margin-bottom":"1rem"},".bw_feature_title":{"margin-bottom":"0.5rem"},".bw_feature_grid":{width:"100%"},".bw_g_4":{"--bw_gutter_x":"1.5rem","--bw_gutter_y":"1.5rem"}},sections:{".bw_section":{position:"relative"},".bw_section_header":{"margin-bottom":"3rem"},".bw_section_title":{"margin-bottom":"1rem","font-weight":"300","font-size":"calc(1.325rem + .9vw)"}},cta:{".bw_cta":{position:"relative"},".bw_cta_content":{"max-width":"48rem",margin:"0 auto"},".bw_cta_title":{"font-weight":"300"},".bw_cta_actions":{display:"flex",gap:"1rem","justify-content":"center","flex-wrap":"wrap"}},spinner:{".bw_spinner_border":{display:"inline-block",width:"2rem",height:"2rem","vertical-align":"-0.125em",border:"0.25em solid currentcolor","border-right-color":"transparent","border-radius":"50%",animation:"bw_spinner_border 0.75s linear infinite"},".bw_spinner_border_sm":{width:"1rem",height:"1rem","border-width":"0.2em"},".bw_spinner_border_lg":{width:"3rem",height:"3rem","border-width":"0.3em"},".bw_spinner_border_md":{},".bw_spinner_grow":{display:"inline-block",width:"2rem",height:"2rem","vertical-align":"-0.125em","border-radius":"50%",opacity:"0",animation:"bw_spinner_grow 0.75s linear infinite"},".bw_spinner_grow_sm":{width:"1rem",height:"1rem"},".bw_spinner_grow_lg":{width:"3rem",height:"3rem"},".bw_spinner_grow_md":{},"@keyframes bw_spinner_border":{"100%":{transform:"rotate(360deg)"}},"@keyframes bw_spinner_grow":{"0%":{transform:"scale(0)"},"50%":{opacity:"1",transform:"none"}},".bw_visually_hidden":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)","white-space":"nowrap",border:"0"}},closeButton:{".bw_close":{display:"inline-flex","align-items":"center","justify-content":"center",width:"1.5rem",height:"1.5rem",padding:"0","font-size":"1.25rem","font-weight":"700","line-height":"1",background:"transparent",border:"0","border-radius":"0.25rem",cursor:"pointer",transition:"opacity 0.15s ease-out"},".bw_close:hover":{opacity:"0.75"},".bw_close:focus-visible":{outline:"2px solid currentColor","outline-offset":"2px"}},stacks:{".bw_vstack":{display:"flex","flex-direction":"column"},".bw_hstack":{display:"flex","flex-direction":"row","align-items":"center"},".bw_gap_0":{gap:"0"},".bw_gap_1":{gap:"0.25rem"},".bw_gap_2":{gap:"0.5rem"},".bw_gap_3":{gap:"1rem"},".bw_gap_4":{gap:"1.5rem"},".bw_gap_5":{gap:"3rem"}},offsets:{".bw_offset_1":{"margin-left":"8.333333%"},".bw_offset_2":{"margin-left":"16.666667%"},".bw_offset_3":{"margin-left":"25%"},".bw_offset_4":{"margin-left":"33.333333%"},".bw_offset_5":{"margin-left":"41.666667%"},".bw_offset_6":{"margin-left":"50%"},".bw_offset_7":{"margin-left":"58.333333%"},".bw_offset_8":{"margin-left":"66.666667%"},".bw_offset_9":{"margin-left":"75%"},".bw_offset_10":{"margin-left":"83.333333%"},".bw_offset_11":{"margin-left":"91.666667%"}},codeDemo:{".bw_code_demo":{"margin-bottom":"2rem"},".bw_code_pre":{margin:"0",border:"none","overflow-x":"auto","max-width":"100%"},".bw_code_block":{display:"block",padding:"1.25rem","font-family":'"SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace',"font-size":"0.8125rem","line-height":"1.6"},".bw_code_copy_btn":{position:"absolute",top:"0.5rem",right:"0.5rem",padding:"0.25rem 0.625rem","font-size":"0.6875rem",cursor:"pointer","font-family":"inherit"},".bw_copy_btn":{position:"absolute",top:"0.5rem",right:"0.5rem",padding:"0.25rem 0.625rem","font-size":"0.6875rem",cursor:"pointer","font-family":"inherit"}},buttonGroup:{".bw_btn_group, .bw_btn_group_vertical":{position:"relative",display:"inline-flex","vertical-align":"middle"},".bw_btn_group > .bw_btn, .bw_btn_group_vertical > .bw_btn":{position:"relative",flex:"1 1 auto","border-radius":"0","margin-left":"-1px"},".bw_btn_group > .bw_btn:first-child":{"margin-left":"0"},".bw_btn_group > .bw_btn:last-child":{},".bw_btn_group_lg > .bw_btn":{padding:"0.625rem 1.5rem","font-size":"1rem"},".bw_btn_group_sm > .bw_btn":{padding:"0.25rem 0.75rem","font-size":"0.8125rem"},".bw_btn_group_vertical":{"flex-direction":"column","align-items":"flex-start","justify-content":"center"},".bw_btn_group_vertical > .bw_btn":{width:"100%","margin-left":"0","margin-top":"-1px"},".bw_btn_group_vertical > .bw_btn:first-child":{"margin-top":"0"},".bw_btn_group_vertical > .bw_btn:last-child":{}},accordion:{".bw_accordion":{overflow:"hidden"},".bw_accordion_item":{border:"1px solid transparent"},".bw_accordion_item + .bw_accordion_item":{"border-top":"0"},".bw_accordion_header":{margin:"0"},".bw_accordion_button":{position:"relative",display:"flex","align-items":"center",width:"100%",padding:"0.875rem 1.25rem","font-size":"1rem","font-weight":"500","text-align":"left","background-color":"transparent",border:"0","overflow-anchor":"none",cursor:"pointer","font-family":"inherit"},".bw_accordion_button::after":{"flex-shrink":"0",width:"1.25rem",height:"1.25rem","margin-left":"auto",content:'""',"background-image":"url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e\")","background-repeat":"no-repeat","background-size":"1.25rem",transition:"transform 0.2s ease-out"},".bw_accordion_button:not(.bw_collapsed)::after":{transform:"rotate(-180deg)"},".bw_accordion_body":{padding:"1rem 1.25rem"},".bw_accordion_collapse":{"max-height":"0",overflow:"hidden",transition:"max-height 0.3s ease"},".bw_accordion_collapse.bw_collapse_show":{"max-height":"none"}},carousel:{".bw_carousel":{position:"relative",overflow:"hidden"},".bw_carousel_track":{display:"flex",height:"100%"},".bw_carousel_slide":{"min-width":"100%","flex-shrink":"0",overflow:"hidden",position:"relative",display:"flex","align-items":"center","justify-content":"center"},".bw_carousel_slide img":{width:"100%",height:"100%","object-fit":"cover"},".bw_carousel_caption":{position:"absolute",bottom:"0",left:"0",right:"0",padding:"0.75rem 1rem","font-size":"0.875rem"},".bw_carousel_control":{position:"absolute",top:"50%",transform:"translateY(-50%)",width:"40px",height:"40px",border:"none","border-radius":"50%",cursor:"pointer",display:"flex","align-items":"center","justify-content":"center","z-index":"2",padding:"0"},".bw_carousel_control img":{width:"20px",height:"20px","pointer-events":"none"},".bw_carousel_control:focus-visible":{outline:"2px solid currentColor","outline-offset":"2px"},".bw_carousel_control_prev":{left:"10px"},".bw_carousel_control_next":{right:"10px"},".bw_carousel_indicators":{position:"absolute",bottom:"12px",left:"50%",transform:"translateX(-50%)",display:"flex",gap:"6px","z-index":"2"},".bw_carousel_indicator":{width:"10px",height:"10px","border-radius":"50%",border:"2px solid transparent",padding:"0",cursor:"pointer"},".bw_carousel_indicator:hover":{opacity:"0.8"}},modal:{".bw_modal":{display:"flex","align-items":"center","justify-content":"center",position:"fixed",top:"0",left:"0",width:"100%",height:"100%","z-index":"1050","overflow-x":"hidden","overflow-y":"auto",opacity:"0",visibility:"hidden","pointer-events":"none",transition:"opacity 0.2s ease-out, visibility 0.2s ease-out"},".bw_modal.bw_modal_show":{opacity:"1",visibility:"visible","pointer-events":"auto"},".bw_modal_dialog":{position:"relative",width:"calc(100% - 1rem)","max-width":"500px",margin:"1.75rem auto","pointer-events":"none",transform:"translateY(-16px)",transition:"transform 0.2s ease-out"},".bw_modal.bw_modal_show .bw_modal_dialog":{transform:"translateY(0)"},".bw_modal_sm":{"max-width":"300px"},".bw_modal_lg":{"max-width":"800px"},".bw_modal_xl":{"max-width":"1140px"},".bw_modal_content":{position:"relative",display:"flex","flex-direction":"column","pointer-events":"auto","background-clip":"padding-box",border:"1px solid transparent",outline:"0"},".bw_modal_header":{display:"flex","align-items":"center","justify-content":"space-between",padding:"1rem 1.25rem","border-bottom":"1px solid transparent"},".bw_modal_title":{margin:"0","font-size":"1.25rem","font-weight":"600","line-height":"1.3"},".bw_modal_body":{position:"relative",flex:"1 1 auto",padding:"1rem 1.25rem"},".bw_modal_footer":{display:"flex","flex-wrap":"wrap","align-items":"center","justify-content":"flex-end",gap:"0.5rem",padding:"0.75rem 1.25rem","border-top":"1px solid transparent"}},toast:{".bw_toast_container":{position:"fixed","z-index":"1080","pointer-events":"none",display:"flex","flex-direction":"column",gap:"0.5rem",padding:"1rem"},".bw_toast_container.bw_toast_top_right":{top:"0",right:"0"},".bw_toast_container.bw_toast_top_left":{top:"0",left:"0"},".bw_toast_container.bw_toast_bottom_right":{bottom:"0",right:"0"},".bw_toast_container.bw_toast_bottom_left":{bottom:"0",left:"0"},".bw_toast_container.bw_toast_top_center":{top:"0",left:"50%",transform:"translateX(-50%)"},".bw_toast_container.bw_toast_bottom_center":{bottom:"0",left:"50%",transform:"translateX(-50%)"},".bw_toast":{"pointer-events":"auto",width:"350px","max-width":"calc(100vw - 2rem)","background-clip":"padding-box",opacity:"0",transform:"translateY(-8px)",transition:"opacity 0.2s ease-out, transform 0.2s ease-out"},".bw_toast.bw_toast_show":{opacity:"1",transform:"translateY(0)"},".bw_toast.bw_toast_hiding":{opacity:"0",transform:"translateY(-8px)"},".bw_toast_header":{display:"flex","align-items":"center","justify-content":"space-between",padding:"0.5rem 0.75rem","font-size":"0.875rem","border-bottom":"1px solid transparent"},".bw_toast_body":{padding:"0.5rem 0.75rem","font-size":"0.9375rem"}},dropdown:{".bw_dropdown":{position:"relative",display:"inline-block"},".bw_dropdown_toggle::after":{display:"inline-block","margin-left":"0.255em","vertical-align":"0.255em",content:'""',"border-top":"0.3em solid","border-right":"0.3em solid transparent","border-bottom":"0","border-left":"0.3em solid transparent"},".bw_dropdown_menu":{position:"absolute",top:"100%",left:"0","z-index":"1000",display:"block","min-width":"10rem",padding:"0.5rem 0",margin:"0.125rem 0 0","background-clip":"padding-box",border:"1px solid transparent",opacity:"0",visibility:"hidden","pointer-events":"none",transform:"translateY(-4px)",transition:"opacity 0.15s ease-out, transform 0.15s ease-out, visibility 0.15s ease-out"},".bw_dropdown_menu.bw_dropdown_show":{opacity:"1",visibility:"visible","pointer-events":"auto",transform:"translateY(0)"},".bw_dropdown_menu_end":{left:"auto",right:"0"},".bw_dropdown_item":{display:"block",width:"100%",padding:"0.4rem 1rem",clear:"both","font-weight":"400","text-align":"inherit","text-decoration":"none","white-space":"nowrap","background-color":"transparent",border:"0","font-size":"0.9375rem",cursor:"pointer"},".bw_dropdown_item:focus-visible":{outline:"2px solid currentColor","outline-offset":"-2px"},".bw_dropdown_divider":{height:"0",margin:"0.5rem 0",overflow:"hidden",opacity:"1"}},formSwitch:{".bw_form_switch":{"padding-left":"2.5em"},".bw_form_switch .bw_switch_input":{width:"2em",height:"1.125em","margin-left":"-2.5em","border-radius":"2em",appearance:"none","background-image":"url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba(255,255,255,1)'/%3e%3c/svg%3e\")","background-position":"left center","background-repeat":"no-repeat","background-size":"contain",cursor:"pointer",transition:"background-color 0.15s ease-out, background-position 0.15s ease-out, border-color 0.15s ease-out"},".bw_form_switch .bw_switch_input:checked":{"background-position":"right center"},".bw_form_switch .bw_switch_input:disabled":{opacity:"0.5",cursor:"not-allowed"}},skeleton:{".bw_skeleton":{"background-size":"400% 100%",animation:"bw_skeleton_shimmer 1.4s ease infinite"},".bw_skeleton_text":{height:"1em","margin-bottom":"0.5rem"},".bw_skeleton_circle":{"border-radius":"50%"},".bw_skeleton_rect":{},".bw_skeleton_group":{display:"flex","flex-direction":"column"},"@keyframes bw_skeleton_shimmer":{"0%":{"background-position":"100% 50%"},"100%":{"background-position":"0 50%"}}},avatar:{".bw_avatar":{display:"inline-flex","align-items":"center","justify-content":"center","border-radius":"50%",overflow:"hidden","font-weight":"600","text-transform":"uppercase","vertical-align":"middle","object-fit":"cover"},".bw_avatar_sm":{width:"2rem",height:"2rem","font-size":"0.75rem"},".bw_avatar_md":{width:"3rem",height:"3rem","font-size":"1rem"},".bw_avatar_lg":{width:"4rem",height:"4rem","font-size":"1.25rem"},".bw_avatar_xl":{width:"5rem",height:"5rem","font-size":"1.5rem"}},statCard:{".bw_stat_card":{padding:"1.25rem","border-left":"4px solid transparent","background-color":"inherit"},".bw_stat_card:hover":{transform:"translateY(-1px)"},".bw_stat_icon":{"font-size":"1.5rem","margin-bottom":"0.5rem"},".bw_stat_value":{"font-size":"2rem","font-weight":"700","line-height":"1.2"},".bw_stat_label":{"font-size":"0.875rem","margin-top":"0.25rem"},".bw_stat_change":{"font-size":"0.875rem","font-weight":"500","margin-top":"0.5rem"}},tooltip:{".bw_tooltip_wrapper":{position:"relative",display:"inline-block"},".bw_tooltip":{position:"absolute","z-index":"999","font-size":"0.875rem","white-space":"nowrap","max-width":"min(300px, calc(100vw - 1rem))","pointer-events":"none",opacity:"0",visibility:"hidden"},".bw_tooltip.bw_tooltip_show":{opacity:"1",visibility:"visible"},".bw_tooltip_top":{bottom:"100%",left:"50%",transform:"translateX(-50%) translateY(-4px)","margin-bottom":"4px"},".bw_tooltip_top.bw_tooltip_show":{transform:"translateX(-50%) translateY(0)"},".bw_tooltip_bottom":{top:"100%",left:"50%",transform:"translateX(-50%) translateY(4px)","margin-top":"4px"},".bw_tooltip_bottom.bw_tooltip_show":{transform:"translateX(-50%) translateY(0)"},".bw_tooltip_left":{right:"100%",top:"50%",transform:"translateY(-50%) translateX(-4px)","margin-right":"4px"},".bw_tooltip_left.bw_tooltip_show":{transform:"translateY(-50%) translateX(0)"},".bw_tooltip_right":{left:"100%",top:"50%",transform:"translateY(-50%) translateX(4px)","margin-left":"4px"},".bw_tooltip_right.bw_tooltip_show":{transform:"translateY(-50%) translateX(0)"}},popover:{".bw_popover_wrapper":{position:"relative",display:"inline-block"},".bw_popover_trigger":{cursor:"pointer"},".bw_popover":{position:"absolute","z-index":"1000","min-width":"200px","max-width":"min(320px, calc(100vw - 2rem))","pointer-events":"none",opacity:"0",visibility:"hidden"},".bw_popover.bw_popover_show":{opacity:"1",visibility:"visible","pointer-events":"auto"},".bw_popover_header":{"font-weight":"600","font-size":"0.9375rem"},".bw_popover_body":{"font-size":"0.875rem","line-height":"1.5"},".bw_popover_top":{bottom:"100%",left:"50%",transform:"translateX(-50%) translateY(-8px)","margin-bottom":"8px"},".bw_popover_top.bw_popover_show":{transform:"translateX(-50%) translateY(0)"},".bw_popover_bottom":{top:"100%",left:"50%",transform:"translateX(-50%) translateY(8px)","margin-top":"8px"},".bw_popover_bottom.bw_popover_show":{transform:"translateX(-50%) translateY(0)"},".bw_popover_left":{right:"100%",top:"50%",transform:"translateY(-50%) translateX(-8px)","margin-right":"8px"},".bw_popover_left.bw_popover_show":{transform:"translateY(-50%) translateX(0)"},".bw_popover_right":{left:"100%",top:"50%",transform:"translateY(-50%) translateX(8px)","margin-left":"8px"},".bw_popover_right.bw_popover_show":{transform:"translateY(-50%) translateX(0)"}},searchInput:{".bw_search_input":{position:"relative",display:"flex","align-items":"center"},".bw_search_input .bw_search_field":{"padding-right":"2.5rem"},".bw_search_clear":{position:"absolute",right:"0.5rem",display:"flex","align-items":"center","justify-content":"center",width:"1.5rem",height:"1.5rem",border:"none",background:"none","font-size":"1.25rem",cursor:"pointer",padding:"0","border-radius":"50%"},".bw_search_clear:focus-visible":{outline:"2px solid currentColor","outline-offset":"2px"}},range:{".bw_range_wrapper":{"margin-bottom":"1rem"},".bw_range_label":{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"0.5rem","font-size":"0.875rem","font-weight":"500"},".bw_range_value":{"font-weight":"600"},".bw_range":{width:"100%",height:"0.5rem",padding:"0",appearance:"none",border:"none","border-radius":"0.25rem",cursor:"pointer",outline:"none"},".bw_range:focus":{outline:"none"},".bw_range::-webkit-slider-thumb":{appearance:"none",width:"1.25rem",height:"1.25rem","border-radius":"50%","border-width":"2px","border-style":"solid",cursor:"pointer"},".bw_range::-moz-range-thumb":{width:"1.25rem",height:"1.25rem","border-radius":"50%","border-width":"2px","border-style":"solid",cursor:"pointer"},".bw_range::-webkit-slider-thumb:hover":{transform:"scale(1.15)"},".bw_range:disabled":{opacity:"0.5",cursor:"not-allowed"}},mediaObject:{".bw_media":{display:"flex","align-items":"flex-start",gap:"1rem"},".bw_media_reverse":{"flex-direction":"row-reverse"},".bw_media_img":{"border-radius":"50%","object-fit":"cover","flex-shrink":"0"},".bw_media_body":{flex:"1","min-width":"0"},".bw_media_title":{margin:"0 0 0.25rem 0","font-size":"1rem","font-weight":"600","line-height":"1.3"}},fileUpload:{".bw_file_upload":{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center",border:"2px dashed transparent",cursor:"pointer","text-align":"center",position:"relative"},".bw_file_upload_icon":{"font-size":"2rem","margin-bottom":"0.5rem"},".bw_file_upload_text":{"font-size":"0.875rem"},".bw_file_upload_input":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)",border:"0"}},timeline:{".bw_timeline":{position:"relative","padding-left":"2rem"},".bw_timeline::before":{content:'""',position:"absolute",left:"0.5rem",top:"0",bottom:"0",width:"2px"},".bw_timeline_item":{position:"relative","padding-bottom":"1.5rem"},".bw_timeline_item:last-child":{"padding-bottom":"0"},".bw_timeline_marker":{position:"absolute",left:"-1.75rem",top:"0.25rem",width:"0.75rem",height:"0.75rem","border-radius":"50%"},".bw_timeline_content":{"padding-left":"0.5rem"},".bw_timeline_date":{"font-size":"0.75rem","margin-bottom":"0.25rem","font-weight":"500"},".bw_timeline_title":{"font-size":"1rem","font-weight":"600",margin:"0 0 0.25rem 0","line-height":"1.3"},".bw_timeline_text":{"font-size":"0.875rem",margin:"0","line-height":"1.5"}},stepper:{".bw_stepper":{display:"flex",gap:"0","counter-reset":"step"},".bw_step":{flex:"1",display:"flex","flex-direction":"column","align-items":"center","text-align":"center",position:"relative"},".bw_step + .bw_step::before":{content:'""',position:"absolute",top:"1rem",left:"-50%",right:"50%",height:"2px"},".bw_step_indicator":{width:"2rem",height:"2rem","border-radius":"50%",display:"flex","align-items":"center","justify-content":"center","font-size":"0.875rem","font-weight":"600",position:"relative","z-index":"1"},".bw_step_body":{"margin-top":"0.5rem"},".bw_step_label":{"font-size":"0.875rem","font-weight":"500"},".bw_step_description":{"font-size":"0.75rem","margin-top":"0.125rem"}},chipInput:{".bw_chip_input":{display:"flex","flex-wrap":"wrap","align-items":"center",gap:"0.375rem",padding:"0.375rem 0.5rem","min-height":"2.5rem",cursor:"text"},".bw_chip":{display:"inline-flex","align-items":"center",gap:"0.25rem",padding:"0.125rem 0.5rem","border-radius":"1rem","font-size":"0.8125rem","line-height":"1.5","white-space":"nowrap"},".bw_chip_remove":{display:"inline-flex","align-items":"center","justify-content":"center",width:"1rem",height:"1rem",border:"none",background:"none","font-size":"0.875rem",cursor:"pointer",padding:"0","border-radius":"50%"},".bw_chip_remove:focus-visible":{outline:"2px solid currentColor","outline-offset":"1px"},".bw_chip_field":{flex:"1","min-width":"80px",border:"none",outline:"none","font-size":"0.875rem",padding:"0.125rem 0",background:"transparent"}},barChart:{".bw_bar_chart_container":{padding:"1rem",border:"1px solid transparent"},".bw_bar_chart":{display:"flex","align-items":"flex-end",gap:"6px",padding:"0 0.5rem"},".bw_bar_group":{flex:"1",display:"flex","flex-direction":"column","align-items":"center",height:"100%","justify-content":"flex-end"},".bw_bar":{width:"100%","border-radius":"3px 3px 0 0","min-height":"4px"},".bw_bar:hover":{opacity:"0.85"},".bw_bar_value":{"font-size":"0.65rem","font-weight":"600","margin-bottom":"2px","text-align":"center"},".bw_bar_label":{"font-size":"0.7rem","margin-top":"4px","text-align":"center"},".bw_bar_chart_title":{"font-size":"1.1rem","font-weight":"600",margin:"0 0 0.75rem 0"}},responsive:{"@media (min-width: 576px)":{".bw_col_sm_1":{flex:"0 0 8.333333%","max-width":"8.333333%"},".bw_col_sm_2":{flex:"0 0 16.666667%","max-width":"16.666667%"},".bw_col_sm_3":{flex:"0 0 25%","max-width":"25%"},".bw_col_sm_4":{flex:"0 0 33.333333%","max-width":"33.333333%"},".bw_col_sm_5":{flex:"0 0 41.666667%","max-width":"41.666667%"},".bw_col_sm_6":{flex:"0 0 50%","max-width":"50%"},".bw_col_sm_7":{flex:"0 0 58.333333%","max-width":"58.333333%"},".bw_col_sm_8":{flex:"0 0 66.666667%","max-width":"66.666667%"},".bw_col_sm_9":{flex:"0 0 75%","max-width":"75%"},".bw_col_sm_10":{flex:"0 0 83.333333%","max-width":"83.333333%"},".bw_col_sm_11":{flex:"0 0 91.666667%","max-width":"91.666667%"},".bw_col_sm_12":{flex:"0 0 100%","max-width":"100%"}},"@media (min-width: 768px)":{".bw_col_md_1":{flex:"0 0 8.333333%","max-width":"8.333333%"},".bw_col_md_2":{flex:"0 0 16.666667%","max-width":"16.666667%"},".bw_col_md_3":{flex:"0 0 25%","max-width":"25%"},".bw_col_md_4":{flex:"0 0 33.333333%","max-width":"33.333333%"},".bw_col_md_5":{flex:"0 0 41.666667%","max-width":"41.666667%"},".bw_col_md_6":{flex:"0 0 50%","max-width":"50%"},".bw_col_md_7":{flex:"0 0 58.333333%","max-width":"58.333333%"},".bw_col_md_8":{flex:"0 0 66.666667%","max-width":"66.666667%"},".bw_col_md_9":{flex:"0 0 75%","max-width":"75%"},".bw_col_md_10":{flex:"0 0 83.333333%","max-width":"83.333333%"},".bw_col_md_11":{flex:"0 0 91.666667%","max-width":"91.666667%"},".bw_col_md_12":{flex:"0 0 100%","max-width":"100%"}},"@media (min-width: 992px)":{".bw_col_lg_1":{flex:"0 0 8.333333%","max-width":"8.333333%"},".bw_col_lg_2":{flex:"0 0 16.666667%","max-width":"16.666667%"},".bw_col_lg_3":{flex:"0 0 25%","max-width":"25%"},".bw_col_lg_4":{flex:"0 0 33.333333%","max-width":"33.333333%"},".bw_col_lg_5":{flex:"0 0 41.666667%","max-width":"41.666667%"},".bw_col_lg_6":{flex:"0 0 50%","max-width":"50%"},".bw_col_lg_7":{flex:"0 0 58.333333%","max-width":"58.333333%"},".bw_col_lg_8":{flex:"0 0 66.666667%","max-width":"66.666667%"},".bw_col_lg_9":{flex:"0 0 75%","max-width":"75%"},".bw_col_lg_10":{flex:"0 0 83.333333%","max-width":"83.333333%"},".bw_col_lg_11":{flex:"0 0 91.666667%","max-width":"91.666667%"},".bw_col_lg_12":{flex:"0 0 100%","max-width":"100%"}},"@media (max-width: 575px)":{".bw_card_img_left, .bw_card-img-left":{width:"100%"},".bw_card_img_right, .bw_card-img-right":{width:"100%"},".bw_hero, .bw_hero":{padding:"2rem 1rem"},".bw_cta_actions, .bw_cta-actions":{"flex-direction":"column"},".bw_hstack, .bw_hstack":{"flex-direction":"column"},".bw_feature_grid, .bw_feature-grid":{"grid-template-columns":"1fr"},".bw_modal_dialog":{margin:"0.5rem auto"},".bw_modal_lg":{"max-width":"calc(100% - 1rem)"},".bw_modal_xl":{"max-width":"calc(100% - 1rem)"},".bw_navbar":{padding:"0.5rem 0.75rem"},".bw_navbar_brand":{"margin-right":"0.5rem","font-size":"1rem"},".bw_navbar_nav":{"flex-wrap":"wrap"},".bw_tooltip":{"white-space":"normal"},".bw_table":{display:"block","overflow-x":"auto","-webkit-overflow-scrolling":"touch"},".bw_col, .bw_col_1, .bw_col_2, .bw_col_3, .bw_col_4, .bw_col_5, .bw_col_6, .bw_col_7, .bw_col_8, .bw_col_9, .bw_col_10, .bw_col_11, .bw_col_12":{flex:"0 0 100%","max-width":"100%"},".bw_container":{"padding-right":"0.5rem","padding-left":"0.5rem"},".bw_container_fluid":{"padding-right":"0.5rem","padding-left":"0.5rem"}}}};function E(){var e={},t={0:"0",1:".25rem",2:".5rem",3:"1rem",4:"1.5rem",5:"3rem"};for(var r in t){var o=t[r];e[".bw_m_"+r]={margin:o+" !important"},e[".bw_mt_"+r]={"margin-top":o+" !important"},e[".bw_mb_"+r]={"margin-bottom":o+" !important"},e[".bw_ms_"+r]={"margin-left":o+" !important"},e[".bw_me_"+r]={"margin-right":o+" !important"},e[".bw_p_"+r]={padding:o+" !important"},e[".bw_pt_"+r+", .pt-"+r]={"padding-top":o+" !important"},e[".bw_pb_"+r+", .pb-"+r]={"padding-bottom":o+" !important"},e[".bw_ps_"+r+", .ps-"+r]={"padding-left":o+" !important"},e[".bw_pe_"+r+", .pe-"+r]={"padding-right":o+" !important"}}e[".bw_m_auto, .m-auto"]={margin:"auto !important"},e[".bw_py_3"]={"padding-top":"1rem !important","padding-bottom":"1rem !important"},e[".bw_py_4"]={"padding-top":"1.5rem !important","padding-bottom":"1.5rem !important"},e[".bw_py_5"]={"padding-top":"3rem !important","padding-bottom":"3rem !important"},e[".bw_py_6"]={"padding-top":"4rem !important","padding-bottom":"4rem !important"},e[".bw_d_none"]={display:"none"},e[".bw_d_block"]={display:"block"},e[".bw_d_inline"]={display:"inline"},e[".bw_d_inline_block"]={display:"inline-block"},e[".bw_d_flex"]={display:"flex"},e[".bw_text_left"]={"text-align":"left"},e[".bw_text_right"]={"text-align":"right"},e[".bw_text_center"]={"text-align":"center"},e[".bw_text_justify"]={"text-align":"justify"},e[".bw_fw_bold"]={"font-weight":"700"},e[".bw_fw_semibold"]={"font-weight":"600"},e[".bw_fw_normal"]={"font-weight":"400"},e[".bw_fw_light"]={"font-weight":"300"},e[".bw_fst_italic"]={"font-style":"italic"},e[".bw_fst_normal"]={"font-style":"normal"},e[".bw_text_underline"]={"text-decoration":"underline"},e[".bw_text_line_through"]={"text-decoration":"line-through"},e[".bw_text_decoration_none"]={"text-decoration":"none"},e[".bw_text_uppercase"]={"text-transform":"uppercase"},e[".bw_text_lowercase"]={"text-transform":"lowercase"},e[".bw_text_capitalize"]={"text-transform":"capitalize"},e[".bw_fs_sm"]={"font-size":"0.875rem"},e[".bw_fs_base"]={"font-size":"1rem"},e[".bw_fs_lg"]={"font-size":"1.25rem"},e[".bw_fs_xl"]={"font-size":"1.5rem"};var a={start:"flex-start",end:"flex-end",center:"center",between:"space-between",around:"space-around"};for(var n in a)e[".bw_justify_content_"+n+", .justify-content-"+n]={"justify-content":a[n]};var i={start:"flex-start",end:"flex-end",center:"center"};for(var s in i)e[".bw_align_items_"+s+", .align-items-"+s]={"align-items":i[s]};e[".bw_border"]={border:"1px solid transparent !important"},e[".bw_border_0"]={border:"0 !important"},e[".bw_border_top_0, .border-top-0"]={"border-top":"0 !important"},e[".bw_border_end_0, .border-end-0"]={"border-right":"0 !important"},e[".bw_border_bottom_0, .border-bottom-0"]={"border-bottom":"0 !important"},e[".bw_border_start_0, .border-start-0"]={"border-left":"0 !important"},e[".bw_rounded"]={"border-radius":".375rem !important"},e[".bw_rounded_0"]={"border-radius":"0 !important"},e[".bw_rounded_1, .rounded-1"]={"border-radius":".25rem !important"},e[".bw_rounded_2, .rounded-2"]={"border-radius":".375rem !important"},e[".bw_rounded_3, .rounded-3"]={"border-radius":".5rem !important"},e[".bw_rounded_circle"]={"border-radius":"50% !important"},e[".bw_rounded_pill, .rounded-pill"]={"border-radius":"50rem !important"},e[".bw_shadow"]={"box-shadow":"0 .5rem 1rem rgba(0,0,0,.15) !important"},e[".bw_shadow_sm"]={"box-shadow":"0 .125rem .25rem rgba(0,0,0,.075) !important"},e[".bw_shadow_lg"]={"box-shadow":"0 1rem 3rem rgba(0,0,0,.175) !important"},e[".bw_shadow_none, .shadow-none"]={"box-shadow":"none !important"},["25","50","75","100"].forEach(function(t){e[".bw_w_"+t+", .w-"+t]={width:t+"% !important"},e[".bw_h_"+t+", .h-"+t]={height:t+"% !important"}}),e[".bw_w_auto, .w-auto"]={width:"auto !important"},e[".bw_h_auto, .h-auto"]={height:"auto !important"},e[".bw_mw_100, .mw-100"]={"max-width":"100% !important"},e[".bw_mh_100, .mh-100"]={"max-height":"100% !important"},["static","relative","absolute","fixed","sticky"].forEach(function(t){e[".bw_position_"+t+", .position-"+t]={position:t+" !important"}}),e[".bw_top_0, .top-0"]={top:"0 !important"},e[".bw_top_50, .top-50"]={top:"50% !important"},e[".bw_top_100, .top-100"]={top:"100% !important"},e[".bw_bottom_0, .bottom-0"]={bottom:"0 !important"},e[".bw_bottom_50, .bottom-50"]={bottom:"50% !important"},e[".bw_bottom_100, .bottom-100"]={bottom:"100% !important"},e[".bw_start_0, .start-0"]={left:"0 !important"},e[".bw_start_50, .start-50"]={left:"50% !important"},e[".bw_start_100, .start-100"]={left:"100% !important"},e[".bw_end_0, .end-0"]={right:"0 !important"},e[".bw_end_50, .end-50"]={right:"50% !important"},e[".bw_end_100, .end-100"]={right:"100% !important"},e[".bw_translate_middle, .translate-middle"]={transform:"translate(-50%, -50%) !important"},["auto","hidden","visible","scroll"].forEach(function(t){e[".bw_overflow_"+t+", .overflow-"+t]={overflow:t+" !important"}}),e[".fs-1"]={"font-size":"calc(1.375rem + 1.5vw) !important"},e[".fs-2"]={"font-size":"calc(1.325rem + .9vw) !important"},e[".fs-3"]={"font-size":"calc(1.3rem + .6vw) !important"},e[".fs-4"]={"font-size":"calc(1.275rem + .3vw) !important"},e[".fs-5"]={"font-size":"1.25rem !important"},e[".fs-6"]={"font-size":"1rem !important"},e[".fw-light"]={"font-weight":"300 !important"},e[".fw-lighter"]={"font-weight":"lighter !important"},e[".fw-normal"]={"font-weight":"400 !important"},e[".fw-bold"]={"font-weight":"700 !important"},e[".fw-bolder"]={"font-weight":"bolder !important"},e[".fst-italic"]={"font-style":"italic !important"},e[".fst-normal"]={"font-style":"normal !important"},e[".text-decoration-none"]={"text-decoration":"none !important"},e[".text-decoration-underline"]={"text-decoration":"underline !important"},e[".text-decoration-line-through"]={"text-decoration":"line-through !important"},e[".text-lowercase"]={"text-transform":"lowercase !important"},e[".text-uppercase"]={"text-transform":"uppercase !important"},e[".text-capitalize"]={"text-transform":"capitalize !important"},e[".text-wrap"]={"white-space":"normal !important"},e[".text-nowrap"]={"white-space":"nowrap !important"},e[".list-unstyled"]={"padding-left":"0","list-style":"none"},e[".list-inline"]={"padding-left":"0","list-style":"none"},e[".list-inline-item"]={display:"inline-block"},e[".list-inline-item:not(:last-child)"]={"margin-right":".5rem"};var l=function(e,t){var r={};return r[e]=t+" !important",r};for(var c in[["fs",{xs:"0.75rem",sm:"0.875rem",base:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem"},"font-size"],["fw",{light:"300",normal:"400",medium:"500",semibold:"600",bold:"700"},"font-weight"],["lh",{tight:"1.25",normal:"1.5",relaxed:"1.75"},"line-height"]].forEach(function(t){for(var r in t[1])e[".bw_"+t[0]+"_"+r]=l(t[2],t[1][r])}),e[".bw_flex"]={display:"flex"},e[".bw_flex_column"]={"flex-direction":"column"},e[".bw_flex_wrap"]={"flex-wrap":"wrap"},e[".bw_flex_center"]={display:"flex","align-items":"center","justify-content":"center"},t)e[".bw_gap_"+c]={gap:t[c]+" !important"};return e[".bw_visible, .visible"]={visibility:"visible !important"},e[".bw_invisible, .invisible"]={visibility:"hidden !important"},["all","auto","none"].forEach(function(t){e[".bw_user_select_"+t+", .user-select-"+t]={"user-select":t+" !important"}}),e[".pe-none"]={"pointer-events":"none !important"},e[".pe-auto"]={"pointer-events":"auto !important"},e[".opacity-0"]={opacity:"0 !important"},e[".opacity-25"]={opacity:".25 !important"},e[".opacity-50"]={opacity:".5 !important"},e[".opacity-75"]={opacity:".75 !important"},e[".opacity-100"]={opacity:"1 !important"},e}function $(){return function(){for(var e={},t=Object.keys(z),r=0;r<t.length;r++)Object.assign(e,z[t[r]]);return Object.assign(e,E()),e["@media (prefers-reduced-motion: reduce)"]={"*, *::before, *::after":{"animation-duration":"0.01ms !important","animation-iteration-count":"1 !important","transition-duration":"0.01ms !important","scroll-behavior":"auto !important"}},e}()}function N(e,t,r){var o={};for(var a in e)if(e.hasOwnProperty(a))if("@"===a.charAt(0)){var n=e[a],i={};for(var s in n)n.hasOwnProperty(s)&&(i[M(s,t)]=n[s]);o[a]=i}else o[M(a,t)]=e[a];return o}function M(e,t){for(var r=e.split(","),o=[],a=0;a<r.length;a++)o.push(t+" "+r[a].trim());return o.join(", ")}
37
- /**
38
- * Bitwrench v2 File I/O Functions
39
- *
40
- * Save/load files in both Node.js and browser environments.
41
- * Node uses fs module, browser uses Blob/XHR/FileReader.
42
- *
43
- * Called via bindFileOps(bw) which attaches all functions to the bw namespace.
44
- * This preserves the same public API (bw.saveClientFile, bw.loadClientFile, etc.)
45
- * while keeping the implementation in a separate module.
46
- *
47
- * @module bitwrench-file-ops
48
- * @license BSD-2-Clause
49
- * @author M A Chatterjee <deftio [at] deftio [dot] com>
50
- */
51
- /**
52
- * Bitwrench v2 Utility Functions
53
- *
54
- * Pure utility functions with no DOM dependencies. These work identically
55
- * in Node.js and browsers: type detection, math, array ops, text generation,
56
- * timing helpers.
57
- *
58
- * Extracted from bitwrench.js to keep the core focused on DOM/TACO/state.
59
- *
60
- * @module bitwrench-utils
61
- * @license BSD-2-Clause
62
- * @author M A Chatterjee <deftio [at] deftio [dot] com>
63
- */
64
- function O(e,t){if(null===e)return"null";const r=typeof e;if("object"!==r)return r;if(t)return r;const o=Object.prototype.toString.call(e),a={"[object Array]":"array","[object Date]":"Date","[object RegExp]":"RegExp","[object Error]":"Error","[object Promise]":"Promise","[object Map]":"Map","[object Set]":"Set","[object WeakMap]":"WeakMap","[object WeakSet]":"WeakSet","[object ArrayBuffer]":"ArrayBuffer","[object DataView]":"DataView","[object Int8Array]":"Int8Array","[object Uint8Array]":"Uint8Array","[object Uint8ClampedArray]":"Uint8ClampedArray","[object Int16Array]":"Int16Array","[object Uint16Array]":"Uint16Array","[object Int32Array]":"Int32Array","[object Uint32Array]":"Uint32Array","[object Float32Array]":"Float32Array","[object Float64Array]":"Float64Array"};return a[o]?a[o]:e._bw_type?e._bw_type:e.constructor&&e.constructor.name?e.constructor.name:r}function I(e,t,r,o,a,n={}){const{clip:i=!1,expScale:s=1}=n;let l=(e-t)/(r-t);1!==s&&(l=Math.pow(l,s));let c=l*(a-o)+o;if(i){const e=Math.min(o,a),t=Math.max(o,a);c=Math.max(e,Math.min(t,c))}return c}function T(e,t,r){return Math.max(t,Math.min(r,e))}function B(e){return"array"!==O(e)?[]:e.filter((e,t,r)=>r.indexOf(e)===t)}
65
- /**
66
- * Bitwrench Router -- client-side URL routing for SPAs
67
- *
68
- * Single export: initRouter(bw) attaches bw.router(), bw.navigate(), bw.link()
69
- *
70
- * @license BSD-2-Clause
71
- */
72
- function D(e){var t=e.indexOf("?");return t>=0&&(e=e.substring(0,t)),(e=e.replace(/\/\/+/g,"/")).length>1&&"/"===e.charAt(e.length-1)&&(e=e.substring(0,e.length-1)),e||"/"}function q(e){var t=e.indexOf("?");if(t<0)return{};for(var r={},o=e.substring(t+1).split("&"),a=0;a<o.length;a++){var n=o[a].split("=");n[0]&&(r[decodeURIComponent(n[0])]=n.length>1?decodeURIComponent(n[1]):"")}return r}function R(e,t){for(var r=q(t),o=D(t),a="/"===o?[""]:o.split("/"),n=null,i=0;i<e.length;i++){var s=e[i],l=s.pattern;if("*"!==l)if(l.length>1&&"/*"===l.substring(l.length-2)){var c=l.substring(0,l.length-2),d=""===c?[""]:c.split("/");if(a.length<d.length)continue;for(var b={},_=!0,u=0;u<d.length;u++)if(":"===d[u].charAt(0))b[d[u].substring(1)]=a[u];else if(d[u]!==a[u]){_=!1;break}if(_)return b._rest=a.slice(d.length).join("/"),b._query=r,{handler:s.handler,params:b}}else{var p="/"===l?[""]:l.split("/");if(p.length===a.length){for(var m={},w=!0,f=0;f<p.length;f++)if(":"===p[f].charAt(0))m[p[f].substring(1)]=a[f];else if(p[f]!==a[f]){w=!1;break}if(w)return m._query=r,{handler:s.handler,params:m}}}else n=s}return n?{handler:n.handler,params:{_query:r}}:null}
73
- /**
74
- * Bitwrench v2 Components
75
- *
76
- * TACO-based UI component library providing Bootstrap-inspired components
77
- * as pure JavaScript objects. Every make* function returns a TACO object
78
- * ({t, a, c, o}) that can be rendered with bw.html() or bw.DOM().
79
- *
80
- * Components included: Card, Button, Container, Row, Col, Nav, Navbar,
81
- * Tabs, Alert, Badge, Progress, ListGroup, Breadcrumb, Form controls,
82
- * Stack, Spinner, Hero, FeatureGrid, CardV2, CTA, Section, CodeDemo.
83
- *
84
- * Handle classes (CardHandle, TableHandle, NavbarHandle, TabsHandle)
85
- * provide imperative DOM manipulation for rendered components.
86
- *
87
- * @module bitwrench-bccl
88
- * @license BSD-2-Clause
89
- * @author M A Chatterjee <deftio [at] deftio [dot] com>
90
- */
91
- function U(e){return e?0===e.indexOf("outline")?"bw_btn_outline bw_"+e.replace(/^outline[_-]/,""):"bw_"+e:""}function P(e={}){const{title:t,subtitle:r,content:o,footer:a,header:n,image:i,imagePosition:s="top",variant:l,bordered:c=!0,shadow:d,hoverable:b=!1,className:_="",style:u,headerClass:p="",bodyClass:m="",footerClass:w=""}=e,f=["bw_card",U(l),d&&{none:"",sm:"bw_shadow_sm",md:"bw_shadow",lg:"bw_shadow_lg"}[d]||"",c?"":"bw_border_0",b?"bw_card_hoverable":"",_].filter(Boolean).join(" ").trim(),h=[n&&{t:"div",a:{class:`bw_card_header ${p}`.trim()},c:n},i&&("top"===s||"left"===s)&&{t:"img",a:{class:`bw_card_img_${s}`,src:i.src,alt:i.alt||""}},{t:"div",a:{class:`bw_card_body ${m}`.trim()},c:[t&&{t:"h5",a:{class:"bw_card_title"},c:t},r&&{t:"h6",a:{class:"bw_card_subtitle bw_mb_2 bw_text_muted"},c:r},o&&(Array.isArray(o)?o:[o])].flat().filter(Boolean)},i&&("bottom"===s||"right"===s)&&{t:"img",a:{class:`bw_card_img_${s}`,src:i.src,alt:i.alt||""}},a&&{t:"div",a:{class:`bw_card_footer ${w}`.trim()},c:a}].filter(Boolean);return!i||"left"!==s&&"right"!==s?{t:"div",a:{class:f,style:u},c:h,o:{type:"card",state:e.state||{},slots:{title:".bw_card_title",content:".bw_card_body",footer:".bw_card_footer"}}}:{t:"div",a:{class:f,style:u},c:{t:"div",a:{class:"bw_row bw_g_0"},c:h},o:{type:"card",state:e.state||{},slots:{title:".bw_card_title",content:".bw_card_body",footer:".bw_card_footer"}}}}function H(e={}){"string"==typeof e&&(e={text:e});const{text:t,variant:r="primary",size:o,disabled:a=!1,onclick:n,type:i="button",className:s="",style:l}=e;return{t:"button",a:{type:i,class:["bw_btn",U(r),o&&`bw_btn_${o}`,s].filter(Boolean).join(" "),disabled:a,onclick:n,style:l},c:t,o:{type:"button"}}}function F(e={}){const{fluid:t=!1,children:r,className:o=""}=e;return{t:"div",a:{class:`bw_container${t?"-fluid":""} ${o}`.trim()},c:r}}function Y(e={}){const{children:t,className:r="",gap:o}=e;return{t:"div",a:{class:`bw_row ${o?`bw_g_${o}`:""} ${r}`.trim()},c:t}}function G(e={}){const{size:t,offset:r,push:o,pull:a,content:n,children:i,className:s=""}=e,l=[];return"object"==typeof t?Object.entries(t).forEach(([e,t])=>{"xs"===e?l.push(`bw_col_${t}`):l.push(`bw_col_${e}_${t}`)}):t?l.push(`bw_col_${t}`):l.push("bw_col"),r&&l.push(`bw_offset_${r}`),o&&l.push(`bw_push_${o}`),a&&l.push(`bw_pull_${a}`),{t:"div",a:{class:`${l.join(" ")} ${s}`.trim()},c:n||i}}function J(e={}){const{items:t=[],pills:r=!1,vertical:o=!1,className:a=""}=e;return{t:"ul",a:{class:`bw_nav ${r?"bw_nav_pills":"bw_nav_tabs"} ${o?"bw_nav_vertical":""} ${a}`.trim()},c:t.map(e=>({t:"li",a:{class:"bw_nav_item"},c:{t:"a",a:{href:e.href||"#",class:`bw_nav_link ${e.active?"active":""} ${e.disabled?"disabled":""}`.trim()},c:e.text}}))}}function X(e={}){const{brand:t,brandHref:r="#",items:o=[],dark:a=!0,className:n=""}=e;return{t:"nav",a:{class:`bw_navbar ${a?"bw_navbar_dark":"bw_navbar_light"} ${n}`.trim()},c:{t:"div",a:{class:"bw_container"},c:[t&&{t:"a",a:{href:r,class:"bw_navbar_brand"},c:t},o.length>0&&{t:"div",a:{class:"bw_navbar_nav"},c:o.map(e=>({t:"a",a:{href:e.href||"#",class:"bw_nav_link "+(e.active?"active":"")},c:e.text}))}].filter(Boolean)},o:{type:"navbar",state:{activeItem:o.findIndex(e=>e.active)}}}}function V(e={}){const{tabs:t=[],activeIndex:r=0}=e;let o=r;function a(e,t){var r=e.querySelectorAll(".bw_nav_link"),o=e.querySelectorAll(".bw_tab_pane");t<0||t>=r.length||(r.forEach(function(e){e.classList.remove("active"),e.setAttribute("aria-selected","false"),e.setAttribute("tabindex","-1")}),o.forEach(function(e){e.classList.remove("active")}),r[t].classList.add("active"),r[t].setAttribute("aria-selected","true"),r[t].setAttribute("tabindex","0"),o[t].classList.add("active"),e._bw_state&&(e._bw_state.activeIndex=t))}return t.forEach((e,t)=>{e.active&&(o=t)}),{t:"div",a:{class:"bw_tabs"},c:[{t:"ul",a:{class:"bw_nav bw_nav_tabs",role:"tablist"},c:t.map((e,t)=>({t:"li",a:{class:"bw_nav_item",role:"presentation"},c:{t:"button",a:{class:"bw_nav_link "+(t===o?"active":""),type:"button",role:"tab",tabindex:t===o?"0":"-1","aria-selected":t===o?"true":"false",onclick:e=>{a(e.target.closest(".bw_tabs"),t)}},c:e.label}}))},{t:"div",a:{class:"bw_tab_content"},c:t.map((e,t)=>({t:"div",a:{class:"bw_tab_pane "+(t===o?"active":""),role:"tabpanel"},c:e.content}))}],o:{type:"tabs",state:{activeIndex:o},handle:{setActiveTab:a,getActiveTab:function(e){return e._bw_state&&e._bw_state.activeIndex||0}},mounted:function(e){var t=e.querySelector('[role="tablist"]');t&&t.addEventListener("keydown",function(e){for(var r=t.querySelectorAll('[role="tab"]'),o=-1,a=0;a<r.length;a++)if(r[a]===e.target){o=a;break}if(-1!==o){var n=-1;"ArrowLeft"===e.key||"ArrowUp"===e.key?(e.preventDefault(),n=o>0?o-1:r.length-1):"ArrowRight"===e.key||"ArrowDown"===e.key?(e.preventDefault(),n=o<r.length-1?o+1:0):"Home"===e.key?(e.preventDefault(),n=0):"End"===e.key&&(e.preventDefault(),n=r.length-1),n>=0&&(r[n].focus(),r[n].click())}})}}}}function W(e={}){"string"==typeof e&&(e={content:e});const{content:t,variant:r="info",dismissible:o=!1,className:a=""}=e;return{t:"div",a:{class:`bw_alert ${U(r)} ${o?"bw_alert_dismissible":""} ${a}`.trim(),role:"alert"},c:[t,o&&{t:"button",a:{type:"button",class:"bw_close","aria-label":"Close",onclick:function(e){var t=e.target.closest(".bw_alert");t&&t.remove()}},c:"×"}].filter(Boolean),o:{type:"alert",handle:{dismiss:function(e){e&&e.parentNode&&e.parentNode.removeChild(e)}}}}}function K(e={}){"string"==typeof e&&(e={text:e});const{text:t,variant:r="primary",size:o,pill:a=!1,className:n=""}=e,i="sm"===o?" bw_badge_sm":"lg"===o?" bw_badge_lg":"";return{t:"span",a:{class:`bw_badge ${U(r)}${i} ${a?"bw_badge_pill":""} ${n}`.trim()},c:t}}function Z(e={}){const{value:t=0,max:r=100,variant:o="primary",striped:a=!1,animated:n=!1,label:i,height:s}=e,l=Math.round(t/r*100);return{t:"div",a:{class:"bw_progress",style:s?{height:`${s}px`}:void 0},c:{t:"div",a:{class:["bw_progress_bar",U(o),a&&"bw_progress_bar_striped",n&&"bw_progress_bar_animated"].filter(Boolean).join(" "),role:"progressbar",style:{width:`${l}%`},"aria-valuenow":t,"aria-valuemin":0,"aria-valuemax":r},c:i||`${l}%`},o:{type:"progress",handle:{setValue:function(e,t){var r=e.querySelector(".bw_progress_bar");if(r){var o=parseInt(r.getAttribute("aria-valuemax"))||100,a=Math.round(t/o*100);r.style.width=a+"%",r.setAttribute("aria-valuenow",t),r.textContent=a+"%"}},getValue:function(e){var t=e.querySelector(".bw_progress_bar");return t&&parseInt(t.getAttribute("aria-valuenow"))||0}}}}}function Q(e={}){const{items:t=[],flush:r=!1,interactive:o=!1}=e;return{t:"div",a:{class:("bw_list_group "+(r?"bw_list_group_flush":"")).trim()},c:t.map(e=>{const t="object"==typeof e,r=t?e.text:e,a=!!t&&e.active,n=!!t&&e.disabled,i=t?e.href:null,s=t?e.onclick:null;return o||i||s?{t:"a",a:{class:["bw_list_group_item",a&&"active",n&&"disabled"].filter(Boolean).join(" "),href:i||"#",onclick:s||(e=>{i||e.preventDefault()}),style:n?"pointer-events: none; opacity: 0.65;":""},c:r}:{t:"div",a:{class:["bw_list_group_item",a&&"active",n&&"disabled"].filter(Boolean).join(" ")},c:r}})}}function ee(e={}){const{items:t=[]}=e;return{t:"nav",a:{"aria-label":"breadcrumb"},c:{t:"ol",a:{class:"bw_breadcrumb"},c:t.map((e,t)=>({t:"li",a:{class:"bw_breadcrumb_item "+(e.active?"active":""),"aria-current":e.active?"page":void 0},c:e.active?e.text:{t:"a",a:{href:e.href||"#"},c:e.text}}))}}}function te(e={}){const{children:t,onsubmit:r,className:o=""}=e;return{t:"form",a:{class:o,onsubmit:r||(e=>e.preventDefault())},c:t}}function re(e={}){var{label:t,input:r,help:o,id:a,validation:n,feedback:i,required:s}=e,l=r;if(n&&r&&r.a){l={t:r.t,a:Object.assign({},r.a),c:r.c,o:r.o};var c="valid"===n?"bw_is_valid":"invalid"===n?"bw_is_invalid":"";c&&(l.a.class=((l.a.class||"")+" "+c).trim())}return{t:"div",a:{class:"bw_form_group"},c:[t&&{t:"label",a:{for:a,class:"bw_form_label"},c:s?[t,{t:"span",a:{class:"bw_text_danger bw_ms_1"},c:"*"}]:t},l,i&&n&&{t:"div",a:{class:"valid"===n?"bw_valid_feedback":"bw_invalid_feedback"},c:i},o&&{t:"small",a:{class:"bw_form_text bw_text_muted"},c:o}].filter(Boolean)}}function oe(e={}){const{type:t="text",placeholder:r,value:o,id:a,name:n,disabled:i=!1,readonly:s=!1,required:l=!1,className:c="",style:d,...b}=e;return{t:"input",a:{type:t,class:`bw_form_control ${c}`.trim(),placeholder:r,value:o,id:a,name:n,style:d,disabled:i,readonly:s,required:l,...b}}}function ae(e={}){const{placeholder:t,value:r,rows:o=3,id:a,name:n,disabled:i=!1,readonly:s=!1,required:l=!1,className:c="",...d}=e;return{t:"textarea",a:{class:`bw_form_control ${c}`.trim(),placeholder:t,rows:o,id:a,name:n,disabled:i,readonly:s,required:l,...d},c:r}}function ne(e={}){const{options:t=[],value:r,id:o,name:a,disabled:n=!1,required:i=!1,className:s="",...l}=e;return{t:"select",a:{class:`bw_form_control ${s}`.trim(),id:o,name:a,disabled:n,required:i,...l},c:t.map(e=>({t:"option",a:{value:e.value,selected:e.value===r},c:e.text||e.value}))}}function ie(e={}){const{label:t,checked:r=!1,id:o,name:a,disabled:n=!1,value:i,className:s="",...l}=e;return{t:"div",a:{class:`bw_form_check ${s}`.trim()},c:[{t:"input",a:{type:"checkbox",class:"bw_form_check_input",checked:r,id:o,name:a,disabled:n,value:i,...l}},t&&{t:"label",a:{class:"bw_form_check_label",for:o},c:t}].filter(Boolean)}}function se(e={}){const{children:t,direction:r="vertical",gap:o=3,className:a=""}=e;return{t:"div",a:{class:`bw_${"vertical"===r?"vstack":"hstack"} bw_gap_${o} ${a}`.trim()},c:t}}function le(e={}){const{variant:t="primary",size:r="md",type:o="border"}=e;return{t:"div",a:{class:`bw_spinner_${o} bw_spinner_${o}-${r} ${U(t)}`,role:"status"},c:{t:"span",a:{class:"bw_visually_hidden"},c:"Loading..."}}}function ce(e={}){const{title:t,subtitle:r,content:o,variant:a="primary",size:n="lg",centered:i=!0,overlay:s=!1,backgroundImage:l,actions:c,className:d=""}=e,b={sm:"bw_py_3",md:"bw_py_4",lg:"bw_py_5",xl:"bw_py_6"};return{t:"section",a:{class:`bw_hero ${U(a)} ${b[n]||b.lg} ${i?"bw_text_center":""} ${d}`.trim(),style:l?`background-image: url('${l}'); background-size: cover; background-position: center;`:void 0},c:[s&&{t:"div",a:{class:"bw_hero_overlay"}},{t:"div",a:{class:"bw_container"},c:{t:"div",a:{class:"bw_hero_content"},c:[t&&{t:"h1",a:{class:"bw_hero_title bw_display_4 bw_mb_3"},c:t},r&&{t:"p",a:{class:"bw_hero_subtitle bw_lead bw_mb_4"},c:r},o,c&&{t:"div",a:{class:"bw_hero_actions bw_mt_4"},c:c}].filter(Boolean)}}].filter(Boolean)}}function de(e={}){const{features:t=[],columns:r=3,centered:o=!0,iconSize:a="3rem",className:n=""}=e,i="bw_col_md_"+12/r;return{t:"div",a:{class:`bw_feature_grid ${n}`.trim()},c:{t:"div",a:{class:"bw_row bw_g_4"},c:t.map(e=>({t:"div",a:{class:i},c:{t:"div",a:{class:"bw_feature "+(o?"bw_text_center":"")},c:[e.icon&&{t:"div",a:{class:"bw_feature_icon bw_mb_3 bw_text_primary",style:`font-size: ${a};`},c:e.icon},e.title&&{t:"h3",a:{class:"bw_feature_title bw_h5 bw_mb_2"},c:e.title},e.description&&{t:"p",a:{class:"bw_feature_description bw_text_muted"},c:e.description}].filter(Boolean)}}))}}}function be(e={}){const{title:t,description:r,actions:o,variant:a="light",centered:n=!0,className:i=""}=e;return{t:"section",a:{class:`bw_cta bw_bg_${a} bw_py_5 ${i}`.trim()},c:{t:"div",a:{class:"bw_container"},c:{t:"div",a:{class:"bw_cta_content "+(n?"bw_text_center":"")},c:[t&&{t:"h2",a:{class:"bw_cta_title bw_mb_3"},c:t},r&&{t:"p",a:{class:"bw_cta_description bw_lead bw_mb_4"},c:r},o&&{t:"div",a:{class:"bw_cta_actions"},c:o}].filter(Boolean)}}}}function _e(e={}){const{title:t,subtitle:r,content:o,variant:a="default",spacing:n="md",className:i=""}=e,s={sm:"bw_py_3",md:"bw_py_4",lg:"bw_py_5",xl:"bw_py_6"};return{t:"section",a:{class:`bw_section ${s[n]||s.md} ${"default"!==a?`bw_bg_${a}`:""} ${i}`.trim()},c:{t:"div",a:{class:"bw_container"},c:[(t||r)&&{t:"div",a:{class:"bw_section_header bw_text_center bw_mb_5"},c:[t&&{t:"h2",a:{class:"bw_section_title"},c:t},r&&{t:"p",a:{class:"bw_section_subtitle bw_text_muted"},c:r}].filter(Boolean)},o].filter(Boolean)}}}function ue(e={}){const{title:t,description:r,code:o,result:a,language:n="javascript"}=e;Math.random().toString(36).substr(2,9);const i=[{label:"Result",active:!0,content:a}];o&&i.push({label:"Code",content:{t:"div",a:{style:"position: relative;"},c:[{t:"button",a:{class:"bw_copy_btn bw_code_copy_btn",onclick:function(e){navigator.clipboard.writeText(o).then(function(){var t=e.target,r=t.textContent;t.textContent="Copied!",t.classList.add("bw_code_copy_btn_copied"),setTimeout(function(){t.textContent=r,t.classList.remove("bw_code_copy_btn_copied")},2e3)})}},c:"Copy"},"undefined"!=typeof globalThis&&void 0!==globalThis.bw&&"function"==typeof globalThis.bw.codeEditor?globalThis.bw.codeEditor({code:o,lang:"javascript"===n?"js":n,readOnly:!0,height:"auto"}):{t:"pre",a:{class:"bw_code_pre"},c:{t:"code",a:{class:`bw_code_block language-${n}`},c:o}}]}});return{t:"div",a:{class:"bw_code_demo"},c:[t&&{t:"h3",c:t},r&&{t:"p",a:{class:"bw_text_muted bw_mb_3"},c:r},V({tabs:i})].filter(Boolean)}}function pe(e={}){const{pages:t=1,currentPage:r=1,onPageChange:o,size:a,className:n=""}=e;function i(e){return function(a){a.preventDefault(),e<1||e>t||e===r||o&&o(e)}}const s=[];s.push({t:"li",a:{class:("bw_page_item "+(r<=1?"bw_disabled":"")).trim()},c:{t:"button",a:{class:"bw_page_link",type:"button",onclick:i(r-1),"aria-label":"Previous",disabled:r<=1||void 0},c:"‹"}});for(var l=1;l<=t;l++)(function(e){s.push({t:"li",a:{class:("bw_page_item "+(e===r?"bw_active":"")).trim()},c:{t:"button",a:{class:"bw_page_link",type:"button",onclick:i(e),"aria-current":e===r?"page":void 0},c:""+e}})})(l);return s.push({t:"li",a:{class:("bw_page_item "+(r>=t?"bw_disabled":"")).trim()},c:{t:"button",a:{class:"bw_page_link",type:"button",onclick:i(r+1),"aria-label":"Next",disabled:r>=t||void 0},c:"›"}}),{t:"nav",a:{"aria-label":"Pagination"},c:{t:"ul",a:{class:`bw_pagination ${a?"bw_pagination_"+a:""} ${n}`.trim()},c:s},o:{type:"pagination",state:{currentPage:r,pages:t},handle:{setPage:function(e,r){if(!(r<1||r>t)){for(var a=e.querySelectorAll(".bw_page_item"),n=0;n<a.length;n++)a[n].classList.remove("bw_active");a[r]&&a[r].classList.add("bw_active"),e._bw_state&&(e._bw_state.currentPage=r),o&&o(r)}},getPage:function(e){return e._bw_state&&e._bw_state.currentPage||1}}}}}function me(e={}){const{label:t,name:r,value:o,checked:a=!1,id:n,disabled:i=!1,className:s="",...l}=e;return{t:"div",a:{class:`bw_form_check ${s}`.trim()},c:[{t:"input",a:{type:"radio",class:"bw_form_check_input",name:r,value:o,checked:a,id:n,disabled:i,...l}},t&&{t:"label",a:{class:"bw_form_check_label",for:n},c:t}].filter(Boolean)}}function we(e={}){const{children:t,size:r,vertical:o=!1,className:a=""}=e;return{t:"div",a:{class:`${o?"bw_btn_group_vertical":"bw_btn_group"} ${r?"bw_btn_group_"+r:""} ${a}`.trim(),role:"group"},c:t}}function fe(e={}){const{items:t=[],multiOpen:r=!1,className:o=""}=e;return{t:"div",a:{class:`bw_accordion ${o}`.trim()},c:t.map(function(e,t){return{t:"div",a:{class:"bw_accordion_item"},c:[{t:"h2",a:{class:"bw_accordion_header"},c:{t:"button",a:{class:("bw_accordion_button "+(e.open?"":"bw_collapsed")).trim(),type:"button","aria-expanded":e.open?"true":"false",onclick:function(e){var t=e.target.closest(".bw_accordion_button"),o=t.closest(".bw_accordion"),a=t.closest(".bw_accordion_item"),n=a.querySelector(".bw_accordion_collapse"),i=n.classList.contains("bw_collapse_show");if(!r)for(var s=o.querySelectorAll(".bw_accordion_item"),l=0;l<s.length;l++)if(s[l]!==a){var c=s[l].querySelector(".bw_accordion_collapse"),d=s[l].querySelector(".bw_accordion_button");c.classList.contains("bw_collapse_show")&&(c.style.maxHeight=c.scrollHeight+"px",c.offsetHeight,c.style.maxHeight="0px",c.classList.remove("bw_collapse_show"),d.classList.add("bw_collapsed"),d.setAttribute("aria-expanded","false"))}if(i)n.style.maxHeight=n.scrollHeight+"px",n.offsetHeight,n.style.maxHeight="0px",n.classList.remove("bw_collapse_show"),t.classList.add("bw_collapsed"),t.setAttribute("aria-expanded","false");else{n.classList.add("bw_collapse_show"),n.style.maxHeight="0px",n.offsetHeight,n.style.maxHeight=n.scrollHeight+"px",t.classList.remove("bw_collapsed"),t.setAttribute("aria-expanded","true");var b=function(e){"max-height"===e.propertyName&&n.classList.contains("bw_collapse_show")&&(n.style.maxHeight="none"),n.removeEventListener("transitionend",b)};n.addEventListener("transitionend",b)}}},c:e.title}},{t:"div",a:{class:("bw_accordion_collapse "+(e.open?"bw_collapse_show":"")).trim()},c:{t:"div",a:{class:"bw_accordion_body"},c:e.content},o:e.open?{mounted:function(e){e.style.maxHeight="none"}}:void 0}]}}),o:{type:"accordion",state:{multiOpen:r},handle:{toggle:function(e,t){var r=e.querySelectorAll(".bw_accordion_item");if(!(t<0||t>=r.length)){var o=r[t].querySelector(".bw_accordion_button");o&&o.click()}},openAll:function(e){for(var t=e.querySelectorAll(".bw_accordion_item"),r=0;r<t.length;r++){var o=t[r].querySelector(".bw_accordion_collapse"),a=t[r].querySelector(".bw_accordion_button");o.classList.contains("bw_collapse_show")||(o.classList.add("bw_collapse_show"),o.style.maxHeight="none",a.classList.remove("bw_collapsed"),a.setAttribute("aria-expanded","true"))}},closeAll:function(e){for(var t=e.querySelectorAll(".bw_accordion_item"),r=0;r<t.length;r++){var o=t[r].querySelector(".bw_accordion_collapse"),a=t[r].querySelector(".bw_accordion_button");o.classList.contains("bw_collapse_show")&&(o.style.maxHeight=o.scrollHeight+"px",o.offsetHeight,o.style.maxHeight="0px",o.classList.remove("bw_collapse_show"),a.classList.add("bw_collapsed"),a.setAttribute("aria-expanded","false"))}}}}}}function he(e={}){const{title:t,content:r,footer:o,size:a,closeButton:n=!0,onClose:i,className:s=""}=e;function l(e){var t=e.closest(".bw_modal");t&&(t.classList.remove("bw_modal_show"),document.body.style.overflow=""),i&&i()}return{t:"div",a:{class:`bw_modal ${s}`.trim()},c:{t:"div",a:{class:("bw_modal_dialog "+(a?"bw_modal_"+a:"")).trim()},c:{t:"div",a:{class:"bw_modal_content"},c:[(t||n)&&{t:"div",a:{class:"bw_modal_header"},c:[t&&{t:"h5",a:{class:"bw_modal_title"},c:t},n&&{t:"button",a:{type:"button",class:"bw_close","aria-label":"Close",onclick:function(e){l(e.target)}},c:"×"}].filter(Boolean)},r&&{t:"div",a:{class:"bw_modal_body"},c:r},o&&{t:"div",a:{class:"bw_modal_footer"},c:o}].filter(Boolean)}},o:{type:"modal",handle:{open:function(e){e.classList.add("bw_modal_show"),e.style.display="flex",document.body.style.overflow="hidden"},close:function(e){l(e)}},mounted:function(e){e.addEventListener("click",function(t){t.target===e&&l(e)});var t=function(t){"Escape"===t.key&&e.classList.contains("bw_modal_show")&&l(e)};document.addEventListener("keydown",t),e._bw_escHandler=t},unmount:function(e){e._bw_escHandler&&document.removeEventListener("keydown",e._bw_escHandler),document.body.style.overflow=""}}}}function ge(e={}){const{title:t,content:r,variant:o="info",autoDismiss:a=!0,delay:n=5e3,position:i="top-right",className:s=""}=e;return{t:"div",a:{class:`bw_toast ${U(o)} bw_toast_${i.replace(/-/g,"_")} ${s}`.trim(),role:"alert"},c:[t&&{t:"div",a:{class:"bw_toast_header"},c:[{t:"strong",c:t},{t:"button",a:{type:"button",class:"bw_close","aria-label":"Close",onclick:function(e){var t=e.target.closest(".bw_toast");t&&(t.classList.add("bw_toast_hiding"),setTimeout(function(){t.parentNode&&t.parentNode.removeChild(t)},300))}},c:"×"}]},r&&{t:"div",a:{class:"bw_toast_body"},c:r}].filter(Boolean),o:{type:"toast",handle:{dismiss:function(e){e.classList.add("bw_toast_hiding"),setTimeout(function(){e.parentNode&&e.parentNode.removeChild(e)},300)}},mounted:function(e){requestAnimationFrame(function(){e.classList.add("bw_toast_show")}),a&&setTimeout(function(){e.classList.add("bw_toast_hiding"),setTimeout(function(){e.parentNode&&e.parentNode.removeChild(e)},300)},n)}}}}function ve(e={}){const{trigger:t,items:r=[],align:o="start",variant:a="primary",className:n=""}=e;var i;return i="string"==typeof t||void 0===t?{t:"button",a:{class:`bw_btn ${U(a)} bw_dropdown_toggle`,type:"button",onclick:function(e){e.target.closest(".bw_dropdown").querySelector(".bw_dropdown_menu").classList.toggle("bw_dropdown_show")}},c:t||"Dropdown"}:t,{t:"div",a:{class:`bw_dropdown ${n}`.trim()},c:[i,{t:"div",a:{class:("bw_dropdown_menu "+("end"===o?"bw_dropdown_menu_end":"")).trim()},c:r.map(function(e){return e.divider?{t:"hr",a:{class:"bw_dropdown_divider"}}:{t:"a",a:{class:("bw_dropdown_item "+(e.disabled?"disabled":"")).trim(),href:e.href||"#",onclick:e.disabled?void 0:function(t){e.href||t.preventDefault(),t.target.closest(".bw_dropdown").querySelector(".bw_dropdown_menu").classList.remove("bw_dropdown_show"),e.onclick&&e.onclick(t)}},c:e.text}})}],o:{type:"dropdown",mounted:function(e){var t=function(t){if(!e.contains(t.target)){var r=e.querySelector(".bw_dropdown_menu");r&&r.classList.remove("bw_dropdown_show")}};document.addEventListener("click",t),e._bw_outsideHandler=t},unmount:function(e){e._bw_outsideHandler&&document.removeEventListener("click",e._bw_outsideHandler)}}}}function ye(e={}){const{label:t,checked:r=!1,id:o,name:a,disabled:n=!1,className:i="",...s}=e;return{t:"div",a:{class:`bw_form_check bw_form_switch ${i}`.trim()},c:[{t:"input",a:{type:"checkbox",class:"bw_form_check_input bw_switch_input",role:"switch",checked:r,id:o,name:a,disabled:n,...s}},t&&{t:"label",a:{class:"bw_form_check_label",for:o},c:t}].filter(Boolean)}}function xe(e={}){const{variant:t="text",width:r,height:o,count:a=1,className:n=""}=e;if("circle"===t){var i=r||o||"3rem";return{t:"div",a:{class:`bw_skeleton bw_skeleton_circle ${n}`.trim(),style:{width:i,height:i}}}}if("rect"===t)return{t:"div",a:{class:`bw_skeleton bw_skeleton_rect ${n}`.trim(),style:{width:r||"100%",height:o||"120px"}}};if(1===a)return{t:"div",a:{class:`bw_skeleton bw_skeleton_text ${n}`.trim(),style:{width:r||"100%",height:o||"1em"}}};for(var s=[],l=0;l<a;l++)s.push({t:"div",a:{class:"bw_skeleton bw_skeleton_text",style:{width:l===a-1?"75%":r||"100%",height:o||"1em"}}});return{t:"div",a:{class:`bw_skeleton_group ${n}`.trim()},c:s}}function ke(e={}){const{src:t,alt:r="",initials:o,size:a="md",variant:n="primary",className:i=""}=e;return t?{t:"img",a:{class:`bw_avatar bw_avatar_${a} ${i}`.trim(),src:t,alt:r}}:{t:"div",a:{class:`bw_avatar bw_avatar_${a} ${U(n)} ${i}`.trim()},c:o||""}}function Ce(e={}){const{items:t=[],showControls:r=!0,showIndicators:o=!0,autoPlay:a=!1,interval:n=5e3,height:i="300px",startIndex:s=0,className:l=""}=e;function c(e,t){var r=e.querySelectorAll(".bw_carousel_slide").length;t<0&&(t=r-1),t>=r&&(t=0),e._bw_carouselIndex=t,e.querySelector(".bw_carousel_track").style.transform="translateX(-"+100*t+"%)";for(var o=e.querySelectorAll(".bw_carousel_indicator"),a=0;a<o.length;a++)a===t?o[a].classList.add("active"):o[a].classList.remove("active")}var d=t.map(function(e){var t=[e.content,e.caption&&{t:"div",a:{class:"bw_carousel_caption"},c:e.caption}].filter(Boolean);return{t:"div",a:{class:"bw_carousel_slide"},c:1===t.length?t[0]:t}}),b=[{t:"div",a:{class:"bw_carousel_track",style:"transform: translateX(-"+100*s+"%)"},c:d}];return r&&t.length>1&&(b.push({t:"button",a:{class:"bw_carousel_control bw_carousel_control_prev",type:"button","aria-label":"Previous slide",onclick:function(e){var t=e.target.closest(".bw_carousel");c(t,(t._bw_carouselIndex||0)-1)}},c:{t:"img",a:{src:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e",alt:"",role:"presentation"}}}),b.push({t:"button",a:{class:"bw_carousel_control bw_carousel_control_next",type:"button","aria-label":"Next slide",onclick:function(e){var t=e.target.closest(".bw_carousel");c(t,(t._bw_carouselIndex||0)+1)}},c:{t:"img",a:{src:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e",alt:"",role:"presentation"}}})),o&&t.length>1&&b.push({t:"div",a:{class:"bw_carousel_indicators"},c:t.map(function(e,t){return{t:"button",a:{class:"bw_carousel_indicator"+(t===s?" active":""),type:"button","aria-label":"Go to slide "+(t+1),onclick:function(e){c(e.target.closest(".bw_carousel"),t)}}}})}),{t:"div",a:{class:("bw_carousel "+l).trim(),style:"height: "+i,tabindex:"0","aria-roledescription":"carousel"},c:b,o:{type:"carousel",state:{activeIndex:s,autoPlay:a,interval:n},handle:{goToSlide:function(e,t){c(e,t)},next:function(e){c(e,(e._bw_carouselIndex||0)+1)},prev:function(e){c(e,(e._bw_carouselIndex||0)-1)},getActiveIndex:function(e){return e._bw_carouselIndex||0},pause:function(e){e._bw_carouselInterval&&(clearInterval(e._bw_carouselInterval),e._bw_carouselInterval=null)},play:function(e){if(!e._bw_carouselInterval&&e._bw_state){var t=e._bw_state.interval||5e3;e._bw_carouselInterval=setInterval(function(){c(e,(e._bw_carouselIndex||0)+1)},t)}}},mounted:function(e){if(e._bw_carouselIndex=s,e.addEventListener("keydown",function(t){var r=e._bw_carouselIndex||0;"ArrowLeft"===t.key?(t.preventDefault(),c(e,r-1)):"ArrowRight"===t.key&&(t.preventDefault(),c(e,r+1))}),a){var t=setInterval(function(){var t=e._bw_carouselIndex||0;c(e,t+1)},n);e._bw_carouselInterval=t,e.addEventListener("mouseenter",function(){e._bw_carouselInterval&&clearInterval(e._bw_carouselInterval)}),e.addEventListener("mouseleave",function(){e._bw_carouselInterval=setInterval(function(){var t=e._bw_carouselIndex||0;c(e,t+1)},n)})}},unmount:function(e){e._bw_carouselInterval&&clearInterval(e._bw_carouselInterval)}}}}function Se(e={}){"string"==typeof e&&(e={label:e});var{value:t=0,label:r,change:o,format:a,prefix:n,suffix:i,icon:s,variant:l,className:c="",style:d}=e;var b=["bw_stat_card",U(l),c].filter(Boolean).join(" ").trim(),_=[];return s&&_.push({t:"div",a:{class:"bw_stat_icon"},c:s}),_.push({t:"div",a:{class:"bw_stat_value"},c:function(e,t){if(n||i)return(n||"")+e+(i||"");switch(t){case"currency":return"$"+Number(e).toLocaleString();case"percent":return e+"%";case"number":return Number(e).toLocaleString();default:return""+e}}(t,a)}),r&&_.push({t:"div",a:{class:"bw_stat_label"},c:r}),null!=o&&_.push({t:"div",a:{class:"bw_stat_change "+(o>=0?"bw_stat_change_up":"bw_stat_change_down")},c:(o>=0?"↑ +":"↓ ")+o+"%"}),{t:"div",a:{class:b,style:d},c:_,o:{type:"stat-card",slots:{value:".bw_stat_value",label:".bw_stat_label"}}}}function je(e={}){var{content:t,text:r="",placement:o="top",className:a=""}=e;return{t:"span",a:{class:("bw_tooltip_wrapper "+a).trim()},c:[t,{t:"span",a:{class:"bw_tooltip bw_tooltip_"+o,role:"tooltip"},c:r}],o:{type:"tooltip",mounted:function(e){var t=e.querySelector(".bw_tooltip");e.addEventListener("mouseenter",function(){t.classList.add("bw_tooltip_show")}),e.addEventListener("mouseleave",function(){t.classList.remove("bw_tooltip_show")}),e.addEventListener("focusin",function(){t.classList.add("bw_tooltip_show")}),e.addEventListener("focusout",function(){t.classList.remove("bw_tooltip_show")})}}}}function Le(e={}){var{trigger:t,title:r,content:o,placement:a="top",className:n=""}=e,i=[r&&{t:"div",a:{class:"bw_popover_header"},c:r},o&&{t:"div",a:{class:"bw_popover_body"},c:o}].filter(Boolean);return{t:"span",a:{class:("bw_popover_wrapper "+n).trim()},c:[{t:"span",a:{class:"bw_popover_trigger",onclick:function(e){e.target.closest(".bw_popover_wrapper").querySelector(".bw_popover").classList.toggle("bw_popover_show")}},c:t},{t:"div",a:{class:"bw_popover bw_popover_"+a},c:i}],o:{type:"popover",mounted:function(e){var t=function(t){if(!e.contains(t.target)){var r=e.querySelector(".bw_popover");r&&r.classList.remove("bw_popover_show")}};document.addEventListener("click",t),e._bw_outsideHandler=t},unmount:function(e){e._bw_outsideHandler&&document.removeEventListener("click",e._bw_outsideHandler)}}}}function Ae(e={}){"string"==typeof e&&(e={placeholder:e});var{placeholder:t="Search...",value:r,onSearch:o,onInput:a,id:n,name:i,className:s=""}=e;return{t:"div",a:{class:("bw_search_input "+s).trim()},c:[{t:"input",a:{type:"search",class:"bw_form_control bw_search_field",placeholder:t,value:r,id:n,name:i,onkeydown:function(e){"Enter"===e.key&&o&&(e.preventDefault(),o(e.target.value))},oninput:function(e){var t=e.target.closest(".bw_search_input").querySelector(".bw_search_clear");t&&(t.style.display=e.target.value?"flex":"none"),a&&a(e.target.value)}}},{t:"button",a:{type:"button",class:"bw_search_clear","aria-label":"Clear search",style:r?void 0:"display: none",onclick:function(e){var t=e.target.closest(".bw_search_input").querySelector(".bw_search_field");t.value="",e.target.style.display="none",t.focus(),a&&a(""),o&&o("")}},c:"×"}],o:{type:"search-input"}}}function ze(e={}){var{min:t=0,max:r=100,step:o=1,value:a=50,label:n,showValue:i=!1,id:s,name:l,disabled:c=!1,className:d="",...b}=e,_=[];if(n||i){var u=[];n&&u.push({t:"span",c:n}),i&&u.push({t:"span",a:{class:"bw_range_value"},c:""+a}),_.push({t:"div",a:{class:"bw_range_label"},c:u})}var p=b.oninput;return i&&(b.oninput=function(e){var t=e.target.closest(".bw_range_wrapper").querySelector(".bw_range_value");t&&(t.textContent=e.target.value),p&&p(e)}),_.push({t:"input",a:{type:"range",class:"bw_range",min:t,max:r,step:o,value:a,id:s,name:l,disabled:c,...b}}),{t:"div",a:{class:("bw_range_wrapper "+d).trim()},c:_,o:{type:"range"}}}function Ee(e={}){var{src:t,alt:r="",title:o,content:a,reverse:n=!1,imageSize:i="3rem",className:s=""}=e,l=t?{t:"img",a:{class:"bw_media_img",src:t,alt:r,style:"width:"+i+";height:"+i}}:null,c={t:"div",a:{class:"bw_media_body"},c:[o&&{t:"h5",a:{class:"bw_media_title"},c:o},a].filter(Boolean)};return{t:"div",a:{class:("bw_media "+(n?"bw_media_reverse ":"")+s).trim()},c:n?[c,l].filter(Boolean):[l,c].filter(Boolean),o:{type:"media-object"}}}function $e(e={}){var{accept:t,multiple:r=!1,onFiles:o,text:a="Drop files here or click to browse",id:n,className:i=""}=e;return{t:"div",a:{class:("bw_file_upload "+i).trim(),tabindex:"0",role:"button","aria-label":a},c:[{t:"div",a:{class:"bw_file_upload_icon"},c:"📁"},{t:"div",a:{class:"bw_file_upload_text"},c:a},{t:"input",a:{type:"file",class:"bw_file_upload_input",accept:t,multiple:r,id:n,onchange:function(e){o&&e.target.files.length&&o(e.target.files)}}}],o:{type:"file-upload",mounted:function(e){var t=e.querySelector(".bw_file_upload_input");e.addEventListener("click",function(e){e.target!==t&&t.click()}),e.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),t.click())}),e.addEventListener("dragover",function(t){t.preventDefault(),e.classList.add("bw_file_upload_active")}),e.addEventListener("dragleave",function(){e.classList.remove("bw_file_upload_active")}),e.addEventListener("drop",function(t){t.preventDefault(),e.classList.remove("bw_file_upload_active"),o&&t.dataTransfer.files.length&&o(t.dataTransfer.files)})}}}}function Ne(e={}){var{items:t=[],className:r=""}=e;return{t:"div",a:{class:("bw_timeline "+r).trim()},c:t.map(function(e){return{t:"div",a:{class:"bw_timeline_item"},c:[{t:"div",a:{class:"bw_timeline_marker "+U(e.variant||"primary")}},{t:"div",a:{class:"bw_timeline_content"},c:[e.date&&{t:"div",a:{class:"bw_timeline_date"},c:e.date},e.title&&{t:"h5",a:{class:"bw_timeline_title"},c:e.title},e.content&&("string"==typeof e.content?{t:"p",a:{class:"bw_timeline_text"},c:e.content}:e.content)].filter(Boolean)}]}}),o:{type:"timeline"}}}function Me(e={}){var{steps:t=[],currentStep:r=0,className:o=""}=e;return{t:"div",a:{class:("bw_stepper "+o).trim(),role:"list"},c:t.map(function(e,t){var o=t<r?"completed":t===r?"active":"pending";return{t:"div",a:{class:"bw_step bw_step_"+o,role:"listitem","aria-current":"active"===o?"step":void 0},c:[{t:"div",a:{class:"bw_step_indicator"},c:"completed"===o?"✓":""+(t+1)},{t:"div",a:{class:"bw_step_body"},c:[{t:"div",a:{class:"bw_step_label"},c:e.label},e.description&&{t:"div",a:{class:"bw_step_description"},c:e.description}].filter(Boolean)}]}}),o:{type:"stepper"}}}function Oe(e={}){var{chips:t=[],placeholder:r="Add...",onAdd:o,onRemove:a,className:n=""}=e;return{t:"div",a:{class:("bw_chip_input "+n).trim()},c:[...t.map(function(e){return{t:"span",a:{class:"bw_chip"},c:[e,{t:"button",a:{type:"button",class:"bw_chip_remove","aria-label":"Remove "+e,onclick:function(t){var r=t.target.closest(".bw_chip");r.parentNode.removeChild(r),a&&a(e)}},c:"×"}]}}),{t:"input",a:{type:"text",class:"bw_chip_field",placeholder:r,onkeydown:function(e){if("Enter"===e.key&&e.target.value.trim()){e.preventDefault();var t=e.target.value.trim(),r=e.target.closest(".bw_chip_input"),n=document.createElement("span");n.className="bw_chip",n._bw_chipValue=t,n.innerHTML="",n.textContent=t;var i=document.createElement("button");i.type="button",i.className="bw_chip_remove",i.setAttribute("aria-label","Remove "+t),i.textContent="×",i.onclick=function(){n.parentNode.removeChild(n),a&&a(t)},n.appendChild(i),r.insertBefore(n,e.target),e.target.value="",o&&o(t)}if("Backspace"===e.key&&!e.target.value){var s=(r=e.target.closest(".bw_chip_input")).querySelectorAll(".bw_chip");if(s.length){var l=s[s.length-1],c=l._bw_chipValue||l.firstChild.textContent;l.parentNode.removeChild(l),a&&a(c)}}}}}],o:{type:"chip-input",handle:{addChip:function(e,t){if(t){var r=e.querySelector(".bw_chip_field"),o=document.createElement("span");o.className="bw_chip",o._bw_chipValue=t,o.textContent=t;var a=document.createElement("button");a.type="button",a.className="bw_chip_remove",a.setAttribute("aria-label","Remove "+t),a.textContent="×",a.onclick=function(){o.parentNode.removeChild(o)},o.appendChild(a),e.insertBefore(o,r)}},removeChip:function(e,t){for(var r=e.querySelectorAll(".bw_chip"),o=0;o<r.length;o++)if((r[o]._bw_chipValue||r[o].firstChild.textContent)===t)return void r[o].parentNode.removeChild(r[o])},getChips:function(e){for(var t=e.querySelectorAll(".bw_chip"),r=[],o=0;o<t.length;o++)r.push(t[o]._bw_chipValue||t[o].firstChild.textContent);return r},clear:function(e){for(var t=e.querySelectorAll(".bw_chip"),r=t.length-1;r>=0;r--)t[r].parentNode.removeChild(t[r])}}}}}Object.assign({},z,{root:{":root":{"--bw_font_sans_serif":'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',"--bw_font_monospace":'"SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Liberation Mono", "Courier New", monospace',"--bw_body_font_family":"var(--bw_font_sans_serif)","--bw_body_font_size":"1rem","--bw_body_font_weight":"400","--bw_body_line_height":"1.5"}},reset:z.base,enhancedCards:z.cards,tableResponsive:{".bw_table_responsive":{"overflow-x":"auto","-webkit-overflow-scrolling":"touch"}},utilities:E()});var Ie={card:{make:P},button:{make:H},container:{make:F},row:{make:Y},col:{make:G},nav:{make:J},navbar:{make:X},tabs:{make:V},alert:{make:W},badge:{make:K},progress:{make:Z},listGroup:{make:Q},breadcrumb:{make:ee},form:{make:te},formGroup:{make:re},input:{make:oe},textarea:{make:ae},select:{make:ne},checkbox:{make:ie},stack:{make:se},spinner:{make:le},hero:{make:ce},featureGrid:{make:de},cta:{make:be},section:{make:_e},codeDemo:{make:ue},pagination:{make:pe},radio:{make:me},buttonGroup:{make:we},accordion:{make:fe},modal:{make:he},toast:{make:ge},dropdown:{make:ve},switch:{make:ye},skeleton:{make:xe},avatar:{make:ke},carousel:{make:Ce},statCard:{make:Se},tooltip:{make:je},popover:{make:Le},searchInput:{make:Ae},range:{make:ze},mediaObject:{make:Ee},fileUpload:{make:$e},timeline:{make:Ne},stepper:{make:Me},chipInput:{make:Oe}};function Te(e,t){var r=Ie[e];if(!r)throw new Error('bw.make: unknown component type "'+e+'". Available: '+Object.keys(Ie).join(", "));var o=r.make(t||{});return o&&"object"==typeof o&&(o._bwFactory={type:e,props:t||{}}),o}var Be=Object.freeze({__proto__:null,BCCL:Ie,make:Te,makeAccordion:fe,makeAlert:W,makeAvatar:ke,makeBadge:K,makeBreadcrumb:ee,makeButton:H,makeButtonGroup:we,makeCTA:be,makeCard:P,makeCarousel:Ce,makeCheckbox:ie,makeChipInput:Oe,makeCodeDemo:ue,makeCol:G,makeContainer:F,makeDropdown:ve,makeFeatureGrid:de,makeFileUpload:$e,makeForm:te,makeFormGroup:re,makeHero:ce,makeInput:oe,makeListGroup:Q,makeMediaObject:Ee,makeModal:he,makeNav:J,makeNavbar:X,makePagination:pe,makePopover:Le,makeProgress:Z,makeRadio:me,makeRange:ze,makeRow:Y,makeSearchInput:Ae,makeSection:_e,makeSelect:ne,makeSkeleton:xe,makeSpinner:le,makeStack:se,makeStatCard:Se,makeStepper:Me,makeSwitch:ye,makeTabs:V,makeTextarea:ae,makeTimeline:Ne,makeToast:ge,makeTooltip:je,variantClass:U});
92
- /**
93
- * Bitwrench v2 Core
94
- * Zero-dependency UI library using JavaScript objects
95
- * Works in browsers (IE11+) and Node.js
96
- *
97
- * @license BSD-2-Clause
98
- * @author M A Chatterjee <deftio [at] deftio [dot] com>
99
- */const De={version:e.version,versionInfo:e,getVersion:function(){return{...e}},_idCounter:0,_unmountCallbacks:new Map,_topics:{},_subIdCounter:0,_nodeMap:{},__monkey_patch_is_nodejs__:{_value:"ignore",set:function(e){this._value=He(e,"boolean")?e:"ignore"},get:function(){return this._value}},isNodeJS:function(){return"ignore"!==De.__monkey_patch_is_nodejs__.get()?De.__monkey_patch_is_nodejs__.get():"undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node}};De._isNode=De.isNodeJS(),Object.defineProperty(De,"_isBrowser",{get:function(){return"undefined"!=typeof document&&"undefined"!=typeof window},configurable:!0});var qe=Object.prototype.hasOwnProperty,Re=Array.isArray,Ue=Object.keys,Pe=O,He=function(e,t){var r=Pe(e);return r===t||r.toLowerCase()===t},Fe=function(){console.warn.apply(console,arguments)},Ye=function(){console.error.apply(console,arguments)};function Ge(e,t){He(t,"function")?t(e):Re(t)?(e.innerHTML="",t.forEach(function(t){null!=t&&(He(t,"object")&&t.t?e.appendChild(De.createDOM(t)):e.appendChild(document.createTextNode(String(t))))})):He(t,"object")&&null!==t&&t.t?(e.innerHTML="",e.appendChild(De.createDOM(t))):e.textContent=String(t)}De.debug=!1,De._fsCache=void 0,De._getFs=function(){if(void 0!==De._fsCache)return Promise.resolve(De._fsCache);if(!De.isNodeJS())return De._fsCache=null,Promise.resolve(null);if("function"==typeof require)try{return De._fsCache=require("fs"),Promise.resolve(De._fsCache)}catch(e){}try{return new Function("m","return import(m)")("fs").then(function(e){return De._fsCache=e.default||e,De._fsCache}).catch(function(){return De._fsCache=null,null})}catch(e){return De._fsCache=null,Promise.resolve(null)}},De.typeOf=O,De.to=De.typeOf,De.uuid=function(e){var t=e?"bw_"+e+"_":"bw_";if(De._isBrowser&&crypto&&crypto.randomUUID)return t+crypto.randomUUID().replace(/-/g,"");return`${t}${Date.now().toString(36)}_${(++De._idCounter).toString(36)}_${Math.random().toString(36).substring(2,11)}`},De.el=function(e,t){var r;if(He(e,"string"))if(e&&De._isBrowser){var o=De._nodeMap[e];o&&(null!==o.parentNode?r=o:delete De._nodeMap[e]),r||((r=document.getElementById(e))||"#"!==e.charAt(0)&&"."!==e.charAt(0)||(r=document.querySelector(e)),r||0!==e.indexOf("bw_uuid_")||(r=document.querySelector("."+e)),r&&(De._nodeMap[e]=r))}else r=null;else r=e||null;return r&&void 0!==t&&Ge(r,t),r},De._el=De.el,De._registerNode=function(e,t){if(e){t&&(De._nodeMap[t]=e);var r=e.getAttribute?e.getAttribute("id"):null;r&&(De._nodeMap[r]=e)}},De._deregisterNode=function(e,t){t&&delete De._nodeMap[t];var r=e&&e.getAttribute?e.getAttribute("id"):null;r&&delete De._nodeMap[r]};var Je="bw_lc",Xe=/\bbw_uuid_[a-z0-9_]+\b/;function Ve(e){return e&&""!==e&&"global"!==e?"reset"===e?"bw_style_reset":"bw_style_"+e.replace(/^[#.]/,"").replace(/-/g,"_"):"bw_style_global"}De.assignUUID=function(e,t){if(!e||!He(e,"object"))return null;e.a||(e.a={}),He(e.a.class,"string")||(e.a.class=e.a.class?String(e.a.class):"");var r=e.a.class.match(Xe);if(r&&!t)return r[0];r&&(e.a.class=e.a.class.replace(Xe,"").replace(/\s+/g," ").trim());var o=De.uuid("uuid");return e.a.class=(e.a.class?e.a.class+" ":"")+o,o},De.getUUID=function(e){if(!e)return null;var t;if(void 0!==e.className&&e.tagName?t="string"==typeof e.className?e.className:e.getAttribute("class")||"":e.a&&He(e.a.class,"string")&&(t=e.a.class),!t)return null;var r=t.match(Xe);return r?r[0]:null},De.escapeHTML=function(e){if(!He(e,"string"))return"";const t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};return e.replace(/[&<>"'/]/g,e=>t[e])},De.raw=function(e){return{__bw_raw:!0,v:String(e)}},De.h=function(e,t,r,o){var a={t:String(e)};return null!=t&&(a.a=t),void 0!==r&&(a.c=r),void 0!==o&&(a.o=o),a},De.html=function(e,t={}){if(null==e)return"";if(Re(e))return e.map(e=>De.html(e,t)).join("");if(e&&e.__bw_raw)return e.v;if(!He(e,"object")||!e.t){var r=t.raw?String(e):De.escapeHTML(String(e));return t.state&&He(r,"string")&&r.indexOf("${")>=0&&(r=De._resolveTemplate(r,t.state,!!t.compile)),r}const{t:o,a:a={},c:n,o:i={}}=e,s=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"].includes(o.toLowerCase());let l="";for(const[e,r]of Object.entries(a))if(null!=r&&!1!==r)if(e.startsWith("on"))if(He(r,"function")){var c=De.funcRegister(r);l+=" "+e+'="'+De.funcGetDispatchStr(c,"event")+'"'}else He(r,"string")&&(l+=" "+e+'="'+De.escapeHTML(r)+'"');else if("style"===e&&He(r,"object")){const e=Object.entries(r).filter(([,e])=>null!=e).map(([e,t])=>`${e}:${t}`).join(";");e&&(l+=` style="${De.escapeHTML(e)}"`)}else if("class"===e){const e=Re(r)?r.filter(Boolean).join(" "):String(r);e&&(l+=` class="${De.escapeHTML(e)}"`)}else if(!0===r)l+=` ${e}`;else{let o=String(r);t.state&&o.indexOf("${")>=0&&(o=De._resolveTemplate(o,t.state,!!t.compile)),l+=` ${e}="${De.escapeHTML(o)}"`}if((i.mounted||i.unmount)&&!Xe.test(a.class||"")){const e=De.uuid("uuid");l=l.replace(/class="([^"]*)"/,(t,r)=>`class="${r} ${e} ${Je}"`.trim()),l.includes("class=")||(l+=` class="${e} ${Je}"`)}if(s)return`<${o}${l} />`;let d=null!=n?De.html(n,t):"";return t.state&&He(d,"string")&&d.indexOf("${")>=0&&(d=De._resolveTemplate(d,t.state,!!t.compile)),`<${o}${l}>${d}</${o}>`},De.htmlPage=function(e){var t,r=(e=e||{}).title||"bitwrench",o=e.body||"",a=e.state||void 0,n=e.runtime||"shim",i=e.css||"",s=e.theme||null,l=e.head||[],c=e.favicon||"",d=e.lang||"en",b=De._fnIDCounter;if(He(o,"string"))t=o;else{var _={};a&&(_.state=a),t=De.html(o,_)}for(var u=De._fnIDCounter,p="",m=b;m<u;m++){var w="bw_fn_"+m;De._fnRegistry[w]&&(p+="bw._fnRegistry['"+w+"']="+De._fnRegistry[w].toString()+";\n")}var f="";if("inline"===n){var h=null;if(De._isNode)try{var g="function"==typeof require?require("fs"):null,v="function"==typeof require?require("path"):null;if(g&&v){var y="";try{y=v.dirname("undefined"!=typeof __filename?__filename:"")}catch(e){}if(!y&&void 0!==import.meta&&import.meta.url){var x="function"==typeof require?require("url"):null;x&&x.fileURLToPath&&(y=v.dirname(x.fileURLToPath(import.meta.url)))}if(y){var k=v.resolve(y,"../dist/bitwrench.umd.min.js");h=g.readFileSync(k,"utf8")}}}catch(e){}f=h?"<script>"+h+"<\/script>":"<script>"+De._FUNC_REGISTRY_SHIM+"<\/script>"}else"cdn"===n?f='<script src="https://cdn.jsdelivr.net/npm/bitwrench@2/dist/bitwrench.umd.min.js"><\/script>':"shim"===n&&(f="<script>"+De._FUNC_REGISTRY_SHIM+"<\/script>");var C="";if(s){var S=He(s,"string")?j[s.toLowerCase()]||null:s;if(S)C=De.makeStyles(S).css}var L="";Re(l)&&l.length>0&&(L=l.map(function(e){return De.html(e)}).join("\n"));var A="";c&&(A='<link rel="icon" href="'+c.replace(/[&<>"']/g,function(e){return{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}[e]})+'">');var z=De.escapeHTML(r),E=(C?C+"\n":"")+i,$="",N=[];p&&N.push(p),"inline"!==n&&"cdn"!==n||N.push('if(typeof bw!=="undefined"){bw.loadStyles();}'),N.length>0&&($="<script>\n"+N.join("\n")+"\n<\/script>");var M=["<!DOCTYPE html>",'<html lang="'+d+'">',"<head>",'<meta charset="UTF-8">','<meta name="viewport" content="width=device-width, initial-scale=1">'];return M.push("<title>"+z+"</title>"),A&&M.push(A),f&&M.push(f),L&&M.push(L),E&&M.push("<style>"+E+"</style>"),M.push("</head>"),M.push("<body>"),M.push(t),$&&M.push($),M.push("</body>"),M.push("</html>"),M.join("\n")},De.createDOM=function(e,t={}){if(!De._isBrowser)throw new Error("bw.createDOM requires a DOM environment (document/window). Use bw.html() instead.");if(null==e)return document.createTextNode("");if(e&&e.__bw_raw){var r=document.createDocumentFragment(),o=document.createElement("span");for(o.innerHTML=e.v;o.firstChild;)r.appendChild(o.firstChild);return r}if(!He(e,"object")||!e.t)return document.createTextNode(String(e));const{t:a,a:n={},c:i,o:s={}}=e;var l=t._svgCtx||"svg"===a,c=l?document.createElementNS("http://www.w3.org/2000/svg",a):document.createElement(a);for(const[e,t]of Object.entries(n))if(null!=t&&!1!==t)if("style"===e&&He(t,"object"))Object.assign(c.style,t);else if("class"===e){const e=Re(t)?t.filter(Boolean).join(" "):String(t);e&&(l?c.setAttribute("class",e):c.className=e)}else if(e.startsWith("on")&&He(t,"function")){const r=e.slice(2).toLowerCase();c.addEventListener(r,t)}else"value"===e&&"input"===a?c.value=t:!0===t?c.setAttribute(e,""):c.setAttribute(e,String(t));var d=t,b=l&&"foreignObject"!==a;if(b!==(t._svgCtx||!1)&&(d=Object.assign({},t,{_svgCtx:b||void 0})),null!=i)if(Re(i))i.forEach(e=>{if(null!=e){var t=De.createDOM(e,d);c.appendChild(t);var r=e&&e.a?e.a.id||De.getUUID(e):null;if(r&&(c._bw_refs||(c._bw_refs={}),c._bw_refs[r]=t),t._bw_refs)for(var o in c._bw_refs||(c._bw_refs={}),t._bw_refs)qe.call(t._bw_refs,o)&&(c._bw_refs[o]=t._bw_refs[o])}});else if(He(i,"object")&&i.__bw_raw)c.innerHTML=i.v;else if(He(i,"object")&&i.t){var _=De.createDOM(i,d);c.appendChild(_);var u=i.a?i.a.id||De.getUUID(i):null;if(u&&(c._bw_refs||(c._bw_refs={}),c._bw_refs[u]=_),_._bw_refs)for(var p in c._bw_refs||(c._bw_refs={}),_._bw_refs)qe.call(_._bw_refs,p)&&(c._bw_refs[p]=_._bw_refs[p])}else c.textContent=String(i);n.id&&De._registerNode(c,null);var m=l?c.getAttribute("class")||"":c.className;if(m){var w=m.match(Xe);w&&(De._nodeMap[w[0]]=c)}if(s.type&&(c._bw_type=s.type),s.mounted||s.unmount||s.render||s.state){var f=De.getUUID(c)||De.uuid("uuid");c.classList.add(f),c.classList.add(Je),De._registerNode(c,f),s.state&&(c._bw_state=s.state),s.render&&(c._bw_render=s.render);var h=s.mounted||(s.render?function(e){s.render(e,e._bw_state||{})}:null);if(h)if(document.body.contains(c))try{h(c,c._bw_state||{})}catch(e){Fe("o.mounted error: "+e.message)}else requestAnimationFrame(()=>{if(document.body.contains(c))try{h(c,c._bw_state||{})}catch(e){Fe("o.mounted error: "+e.message)}});s.unmount&&De._unmountCallbacks.set(f,()=>{try{s.unmount(c,c._bw_state||{})}catch(e){Fe("o.unmount error: "+e.message)}})}if(s.handle||s.slots){if(c.bw||(c.bw={}),s.handle)for(var g in s.handle)qe.call(s.handle,g)&&(c.bw[g]=s.handle[g].bind(null,c));if(s.slots)for(var v in s.slots)qe.call(s.slots,v)&&function(e,t){var r=c.querySelector(t),o=e.charAt(0).toUpperCase()+e.slice(1);c.bw["set"+o]=function(e){r&&(null!=e&&"object"==typeof e&&e.t?(r.innerHTML="",r.appendChild(De.createDOM(e))):r.textContent=null!=e?String(e):"")},c.bw["get"+o]=function(){return r?r.textContent:""}}(v,s.slots[v])}return c},De.DOM=function(e,t,r={}){if(!De._isBrowser)throw new Error("bw.DOM requires a DOM environment (document/window). Use bw.html() instead.");const o=De.el(e);if(!o)return Ye("bw.DOM: Target element not found:",e),null;const a=o._bw_state,n=o._bw_render,i=De.getUUID(o),s=o._bw_subs;return delete o._bw_subs,De.cleanup(o),void 0!==a&&(o._bw_state=a),n&&(o._bw_render=n),i&&De._registerNode(o,i),s&&(o._bw_subs=s),o.innerHTML="",null!=t&&(Re(t)?t.forEach(e=>{null!=e&&o.appendChild(De.createDOM(e,r))}):o.appendChild(De.createDOM(t,r))),o},De.compileProps=function(){throw new Error("bw.compileProps() removed in v2.0.19. Use o.handle/o.slots instead.")},De.renderComponent=function(){throw new Error("bw.renderComponent() removed in v2.0.19. Use bw.mount() with o.handle/o.slots instead.")},De.mount=function(e,t,r){var o=He(e,"string")?De.$(e)[0]:e;if(!o)return Fe("bw.mount: target not found"),null;De.cleanup(o),o.innerHTML="";var a=De.createDOM(t,r||{});return o.appendChild(a),a},De.cleanup=function(e){if(!De._isBrowser||!e)return;e.querySelectorAll('[class*="bw_uuid_"]').forEach(function(e){var t="string"==typeof e.className?e.className:e.getAttribute("class")||"",r=t&&t.match(Xe);r&&delete De._nodeMap[r[0]]});e.querySelectorAll("."+Je).forEach(e=>{var t=De.getUUID(e);if(t){const r=De._unmountCallbacks.get(t);r&&(r(),De._unmountCallbacks.delete(t)),De._deregisterNode(e,t)}e._bw_subs&&(e._bw_subs.forEach(function(e){e()}),delete e._bw_subs),delete e._bw_state,delete e._bw_render,delete e._bw_refs});var t=De.getUUID(e);if(t){delete De._nodeMap[t];const r=De._unmountCallbacks.get(t);r&&(r(),De._unmountCallbacks.delete(t)),De._deregisterNode(e,t),e._bw_subs&&(e._bw_subs.forEach(function(e){e()}),delete e._bw_subs),delete e._bw_state,delete e._bw_render,delete e._bw_refs}else e._bw_subs&&(e._bw_subs.forEach(function(e){e()}),delete e._bw_subs)},De.update=function(e){var t=De.el(e);if(t&&t._bw_render){try{t._bw_render(t,t._bw_state||{})}catch(e){Fe("o.render error: "+e.message)}De.emit(t,"statechange",t._bw_state)}return t||null},De.patch=function(e,t,r){var o=De.el(e);return o?(r?o.setAttribute(r,String(t)):Re(t)?(o.innerHTML="",t.forEach(function(e){He(e,"string")||He(e,"number")?o.appendChild(document.createTextNode(String(e))):e&&e.t&&o.appendChild(De.createDOM(e))})):He(t,"object")&&t.t?(o.innerHTML="",o.appendChild(De.createDOM(t))):o.textContent=String(t),o):null},De.patchAll=function(e){var t={};for(var r in e)qe.call(e,r)&&(t[r]=De.patch(r,e[r]));return t},De.emit=function(e,t,r){var o=De.el(e);o&&o.dispatchEvent(new CustomEvent("bw:"+t,{bubbles:!0,detail:r||{}}))},De.on=function(e,t,r){var o=De.el(e);return o&&o.addEventListener("bw:"+t,function(e){r(e.detail,e)}),o||null},De.pub=function(e,t){var r=0,o=De._topics[e];if(o&&o.length>0)for(var a=o.slice(),n=0;n<a.length;n++)try{a[n].handler(t,e),r++}catch(t){Fe('bw.pub: subscriber error on topic "'+e+'":',t)}for(var i=Object.keys(De._topics),s=0;s<i.length;s++){var l=i[s];if("*"===l.charAt(l.length-1)){var c=l.slice(0,-1);if(e.length>=c.length&&e.substring(0,c.length)===c&&e!==l){var d=De._topics[l];if(!d)continue;for(var b=d.slice(),_=0;_<b.length;_++)try{b[_].handler(t,e),r++}catch(t){Fe('bw.pub: wildcard subscriber error on "'+l+'" for topic "'+e+'":',t)}}}}return r},De.sub=function(e,t,r){var o=++De._subIdCounter;De._topics[e]||(De._topics[e]=[]),De._topics[e].push({handler:t,id:o});var a=function(){var t=De._topics[e];t&&(De._topics[e]=t.filter(function(e){return e.id!==o}),0===De._topics[e].length&&delete De._topics[e])};return r&&(r._bw_subs||(r._bw_subs=[]),r._bw_subs.push(a),De.getUUID(r)||r.classList.add(De.uuid("uuid")),r.classList.contains(Je)||r.classList.add(Je)),a},De.unsub=function(e,t){var r=De._topics[e];if(!r)return 0;var o=r.length;De._topics[e]=r.filter(function(e){return e.handler!==t});var a=o-De._topics[e].length;return 0===De._topics[e].length&&delete De._topics[e],a},De.once=function(e,t,r){var o=De.sub(e,function(e){o(),t(e)},r);return o},De._fnRegistry={},De._fnIDCounter=0,De.funcRegister=function(e,t){if(!He(e,"function"))return"";var r=He(t,"string")&&t.length>0?t:"bw_fn_"+De._fnIDCounter++;return De._fnRegistry[r]=e,r},De.funcGetById=function(e,t){return(e=String(e))in De._fnRegistry?De._fnRegistry[e]:He(t,"function")?t:function(){Fe('bw.funcGetById: unregistered fn "'+e+'"')}},De.funcGetDispatchStr=function(e,t){return"bw.funcGetById('"+e+"')("+(t=null!=t?String(t):"")+")"},De.funcUnregister=function(e){return e in De._fnRegistry&&(delete De._fnRegistry[e],!0)},De.funcGetRegistry=function(){var e={};for(var t in De._fnRegistry)qe.call(De._fnRegistry,t)&&(e[t]=De._fnRegistry[t]);return e},De._FUNC_REGISTRY_SHIM='(function(){var bw=window.bw||(window.bw={});if(!bw._fnRegistry)bw._fnRegistry={};bw.funcGetById=function(n){return bw._fnRegistry[n]||function(){console.warn("bw: unregistered fn "+n)};};bw.funcRegister=function(fn,name){var id=name||("bw_fn_"+(bw._fnIDCounter=(bw._fnIDCounter||0)+1));bw._fnRegistry[id]=fn;return id;};window.bw=bw;})();',De._parseBindings=function(e){for(var t,r=[],o=/\$\{([^}]+)\}/g;null!==(t=o.exec(e));)r.push({start:t.index,end:t.index+t[0].length,expr:t[1].trim()});return r},De._evaluatePath=function(e,t){for(var r=t.split("."),o=e,a=0;a<r.length;a++){if(null==o)return De.debug&&Fe('bw.debug: _evaluatePath — null at key "'+r[a]+'" in path "'+t+'"'),"";o=o[r[a]]}return null==o?"":o},De._compiledExprs={},De._resolveTemplate=function(e,t,r){if(!He(e,"string")||e.indexOf("${")<0)return e;var o=De._parseBindings(e);if(0===o.length)return e;for(var a="",n=0,i=0;i<o.length;i++){var s,l=o[i];if(a+=e.slice(n,l.start),r){if(!De._compiledExprs[l.expr])try{De._compiledExprs[l.expr]=new Function("state","with(state){return ("+l.expr+");}")}catch(e){De._compiledExprs[l.expr]=function(){return""}}try{s=De._compiledExprs[l.expr](t)}catch(e){De.debug&&Fe('bw.debug: _resolveTemplate — Tier 2 eval failed for "${'+l.expr+'}":',e.message),s=""}}else s=De._evaluatePath(t,l.expr);a+=null==s?"":String(s),n=l.end}return a+=e.slice(n)},De._extractDeps=void 0,De._dirtyComponents=void 0,De._flushScheduled=void 0,De._scheduleFlush=void 0,De._doFlush=void 0,De._ComponentHandle=void 0,De.flush=function(){},De.when=function(){throw new Error("bw.when() removed in v2.0.19. Use conditional logic in o.render instead.")},De.each=function(){throw new Error("bw.each() removed in v2.0.19. Use array mapping in o.render instead.")},De.component=function(){throw new Error("bw.component() removed in v2.0.19. Use o.handle/o.slots on TACO options instead.")},De.message=function(e,t,r){var o=De.el(e);return o||(o=De.$("."+e)[0]),o&&o.bw&&"function"==typeof o.bw[t]?(o.bw[t](r),!0):(Fe('bw.message: no handle method "'+t+'" on '+e),!1)},De.formData=function(e){var t=De.el(e);if(!t)return{};for(var r={},o=t.querySelectorAll("input, select, textarea"),a=0;a<o.length;a++){var n=o[a],i=n.name||n.id;if(i)if("checkbox"===n.type)r[i]=n.checked;else if("radio"===n.type)n.checked&&(r[i]=n.value);else if("SELECT"===n.tagName&&n.multiple){r[i]=[];for(var s=0;s<n.options.length;s++)n.options[s].selected&&r[i].push(n.options[s].value)}else r[i]=n.value}return r},De.jsonPatch=function(e,t){if(!Re(t))return e;function r(e){if(""===e)return[];if("/"!==e.charAt(0))throw new Error("Invalid JSON Pointer: "+e);return e.slice(1).split("/").map(function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")})}function o(e,t){for(var r=e,o=0;o<t.length-1;o++){var a=Re(r)?parseInt(t[o],10):t[o];if(void 0===r[a])throw new Error("Path not found: /"+t.slice(0,o+1).join("/"));r=r[a]}return{parent:r,key:Re(r)?parseInt(t[t.length-1],10):t[t.length-1]}}function a(e,t){for(var r=e,o=0;o<t.length;o++){var a=Re(r)?parseInt(t[o],10):t[o];if(void 0===r[a])throw new Error("Path not found: /"+t.slice(0,o+1).join("/"));r=r[a]}return r}for(var n=0;n<t.length;n++){var i=t[n];if(!i.op||!He(i.path,"string"))throw new Error("Invalid patch operation at index "+n);var s,l,c,d,b,_,u=r(i.path);switch(i.op){case"add":if(0===u.length)throw new Error("Cannot add to root");s=o(e,u),Re(s.parent)&&s.key<=s.parent.length?s.parent.splice(s.key,0,i.value):s.parent[s.key]=i.value;break;case"remove":if(0===u.length)throw new Error("Cannot remove root");if(s=o(e,u),Re(s.parent)){if(s.key>=s.parent.length)throw new Error("Index out of bounds: "+s.key);s.parent.splice(s.key,1)}else{if(!(s.key in s.parent))throw new Error("Path not found: "+i.path);delete s.parent[s.key]}break;case"replace":if(0===u.length)throw new Error("Cannot replace root");if(s=o(e,u),Re(s.parent)){if(s.key>=s.parent.length)throw new Error("Index out of bounds: "+s.key)}else if(!(s.key in s.parent))throw new Error("Path not found: "+i.path);s.parent[s.key]=i.value;break;case"move":if(!He(i.from,"string"))throw new Error('move requires "from"');l=a(e,c=r(i.from)),d=o(e,c),Re(d.parent)?d.parent.splice(d.key,1):delete d.parent[d.key],b=o(e,u),Re(b.parent)&&b.key<=b.parent.length?b.parent.splice(b.key,0,l):b.parent[b.key]=l;break;case"copy":if(!He(i.from,"string"))throw new Error('copy requires "from"');l=a(e,r(i.from)),_=o(e,u),Re(_.parent)&&_.key<=_.parent.length?_.parent.splice(_.key,0,l):_.parent[_.key]=l;break;case"test":var p=a(e,u);if(JSON.stringify(p)!==JSON.stringify(i.value))throw new Error("Test failed: "+i.path+" expected "+JSON.stringify(i.value)+" got "+JSON.stringify(p));break;default:throw new Error("Unknown op: "+i.op)}}return e},De._clientFunctions={},De._allowExec=!1,De.parseJSONFlex=function(e){if("r"!==(e=(e||"").trim()).charAt(0))return JSON.parse(e);for(var t=[],r=0,o=(e=e.slice(1)).length;r<o;){var a=e[r];if("'"===a){for(t.push('"'),r++;r<o;){var n=e[r];if("\\"===n&&r+1<o){var i=e[r+1];"'"===i?t.push("'"):(t.push("\\"),t.push(i)),r+=2}else if('"'===n)t.push('\\"'),r++;else{if("'"===n)break;t.push(n),r++}}t.push('"'),r++}else if('"'===a)for(t.push(a),r++;r<o;){var s=e[r];if("\\"===s&&r+1<o)t.push(s),t.push(e[r+1]),r+=2;else if(t.push(s),r++,'"'===s)break}else if(","===a){for(var l=r+1;l<o&&(" "===e[l]||"\t"===e[l]||"\n"===e[l]||"\r"===e[l]);)l++;l<o&&("}"===e[l]||"]"===e[l])||t.push(a),r++}else t.push(a),r++}return JSON.parse(t.join(""))},De.apply=function(e){if(!e||!e.type)return!1;var t=e.type,r=e.target;if("replace"===t){var o=De.el(r);return!!o&&(De.DOM(o,e.node),!0)}if("patch"===t)return null!==De.patch(r,e.content,e.attr);if("append"===t){var a=De.el(r);if(!a)return!1;var n=De.createDOM(e.node);return a.appendChild(n),!0}if("remove"===t){var i=De.el(r);return!!i&&(He(De.cleanup,"function")&&De.cleanup(i),i.remove(),!0)}if("batch"===t){if(!Re(e.ops))return!1;var s=!0;return e.ops.forEach(function(e){De.apply(e)||(s=!1)}),s}if("message"===t)return De.message(e.target,e.action,e.data);if("register"===t){if(!e.name||!e.body)return!1;try{return De._clientFunctions[e.name]=new Function("return "+e.body)(),!0}catch(t){return Ye("[bw] register error:",e.name,t),!1}}else if("call"===t){if(!e.name)return!1;var l=De._clientFunctions[e.name];if(!He(l,"function"))return!1;try{var c=Re(e.args)?e.args:[];return l.apply(null,c),!0}catch(t){return Ye("[bw] call error:",e.name,t),!1}}else if("exec"===t){if(!De._allowExec)return Fe("[bw] exec rejected: allowExec is not enabled"),!1;if(!e.code)return!1;try{return new Function(e.code)(),!0}catch(e){return Ye("[bw] exec error:",e),!1}}return!1},De.inspect=function(e,t){var r=De.el(e);if(!r&&He(e,"string")&&(r=De.$(e)[0]),!r)return null;return null==t&&(t=3),function e(r,o){if(!r)return null;if(1!==r.nodeType)return null;var a={tag:r.tagName?r.tagName.toLowerCase():"#text"};r.id&&(a.id=r.id);var n=De.getUUID(r);if(n&&(a.uuid=n),r._bw_type&&(a.type=r._bw_type),r.className&&"string"==typeof r.className&&(a.classes=r.className.split(" ").slice(0,5).join(" ")),r.bw){var i=Ue(r.bw);i.length>0&&(a.handles=i)}if(r._bw_state&&(a.state=r._bw_state),r._bw_render&&(a.hasRender=!0),r._bw_subs&&r._bw_subs.length>0&&(a.hasSubs=!0),r._bw_refs&&(a.refs=Ue(r._bw_refs)),o<t&&r.children&&r.children.length>0){a.children=[];for(var s=Math.min(r.children.length,50),l=0;l<s;l++){var c=e(r.children[l],o+1);c&&a.children.push(c)}r.children.length>50&&a.children.push({tag:"...",count:r.children.length-50})}return a}(r,0)},De.compile=function(){throw new Error("bw.compile() removed in v2.0.19. Use o.handle/o.slots on TACO options instead.")},De.css=function(e,t={}){const{minify:r=!1,pretty:o=!r}=t;if(He(e,"string"))return e;let a="";const n=o?" ":"",i=o?"\n":"",s=o?" ":"";return Re(e)?a=e.map(e=>De.css(e,t)).join(i):He(e,"object")&&Object.entries(e).forEach(([e,r])=>{if(He(r,"object")){if("@"===e.charAt(0)){const o=De.css(r,t);return void(o&&(a+=`${e}${s}{${i}${o}${i}}${i}`))}const o=Object.entries(r).filter(([,e])=>null!=e).map(([e,t])=>{const r=e.replace(/[A-Z]/g,e=>"-"+e.toLowerCase());return`${n}${r}:${s}${t};`}).join(i);o&&(a+=`${e}${s}{${i}${o}${i}}${i}`)}}),a.trim()},De.injectCSS=function(e,t={}){if(!De._isBrowser)return Fe("bw.injectCSS requires a DOM environment"),null;const{id:r="bw_styles",append:o=!0}=t;let a=document.getElementById(r);a||(a=document.createElement("style"),a.id=r,a.type="text/css",document.head.appendChild(a));const n=He(e,"string")?e:De.css(e,t);return o&&a.textContent?a.textContent+="\n"+n:a.textContent=n,a},De.s=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];He(r,"object")&&Object.assign(e,r)}return e},De.responsive=function(e,t){var r={sm:"576px",md:"768px",lg:"992px",xl:"1200px"},o=[];return Ue(t).forEach(function(a){var n={};"base"===a?(n[e]=t[a],o.push(De.css(n))):r[a]&&(n[e]=t[a],o.push("@media (min-width: "+r[a]+") {\n"+De.css(n)+"\n}"))}),o.join("\n")},De.mapScale=I,De.clip=T,De._isBrowser&&(De.$=function(e,t){var r;if(r=e?Re(e)?e:e.nodeType?[e]:void 0===e.length||He(e,"string")?He(e,"string")?Array.from(document.querySelectorAll(e)):[]:Array.from(e):[],void 0!==t)for(var o=0;o<r.length;o++)Ge(r[o],t);return r},De.$.one=function(e){return De.$(e)[0]||null}),De.makeStyles=function(e){var t=Object.assign({},S,e||{});e&&!e.tertiary&&(t.tertiary=t.primary);var r=f(t),o=function(e){var t=e&&e.spacing||"normal",r=e&&e.radius||"md",o=e&&e.fontSize||1,a=e&&e.typeRatio||"normal",n="string"==typeof a?y[a]||y.normal:a,i=e&&e.elevation||"md",s=e&&e.motion||"standard";return{spacing:"string"==typeof t?g[t]||g.normal:t,radius:"string"==typeof r?v[r]||v.md:r,fontSize:o,typeScale:x(16,n),elevation:"string"==typeof i?k[i]||k.md:i,motion:"string"==typeof s?C[s]||C.standard:s}}(t),a=A("",r,o),n=De.css(a),i=f(w(t)),s=A("",i,o);return s.body={color:i.dark.base,"background-color":i.surface||i.light.base},{css:n,alternateCss:De.css(s),rules:a,alternateRules:s,palette:r,alternatePalette:i,isLightPrimary:m(t)}},De.applyStyles=function(e,t){if(!De._isBrowser)return null;if(!e||!e.rules)return Fe("bw.applyStyles: invalid styles object"),null;var r=Ve(t),o=e.rules;t&&(o=N(o,t));var a=e.alternateRules;a&&(a=N(a,t?t+".bw_theme_alt":".bw_theme_alt"));var n=De.css(o);return a&&(n+="\n"+De.css(a)),De.injectCSS(n,{id:r,append:!1})},De.loadStyles=function(e,t){if(De._isBrowser&&!document.getElementById("bw_structural")){var r=De.css($());De.injectCSS(r,{id:"bw_structural",append:!1})}var o=De.makeStyles(e);return De.applyStyles(o,t),o},De.scopeRulesUnder=N,De.loadReset=function(){if(!De._isBrowser)return null;var e,t=document.getElementById("bw_style_reset");return t||De.injectCSS(De.css((e={},Object.assign(e,z.base),e["@media (prefers-reduced-motion: reduce)"]={"*, *::before, *::after":{"animation-duration":"0.01ms !important","animation-iteration-count":"1 !important","transition-duration":"0.01ms !important","scroll-behavior":"auto !important"}},e)),{id:"bw_style_reset",append:!1})},De.toggleThemeMode=function(e){if(!De._isBrowser)return"primary";var t,r;if(!(t=e?De.$(e):[document.documentElement]).length)return"primary";for(var o=0;o<t.length;o++){var a=t[o].classList.contains("bw_theme_alt");a?t[o].classList.remove("bw_theme_alt"):t[o].classList.add("bw_theme_alt"),0===o&&(r=a?"primary":"alternate")}return r},De.toggleStyles=De.toggleThemeMode,De.clearStyles=function(e){if(De._isBrowser){var t=Ve(e),r=document.getElementById(t);if(r&&r.remove(),e&&"reset"!==e&&"global"!==e){var o=De.$(e);o[0]&&o[0].classList.remove("bw_theme_alt")}else e&&"global"!==e||document.documentElement.classList.remove("bw_theme_alt")}},De.hexToHsl=i,De.hslToHex=s,De.adjustLightness=l,De.mixColor=c,De.relativeLuminance=d,De.textOnColor=b,De.deriveShades=u,De.derivePalette=f,De.harmonize=_,De.deriveAlternateSeed=p,De.deriveAlternateConfig=w,De.isLightPalette=m,De.SPACING_PRESETS=g,De.RADIUS_PRESETS=v,De.TYPE_RATIO_PRESETS=y,De.ELEVATION_PRESETS=k,De.MOTION_PRESETS=C,De.generateTypeScale=x,De.DEFAULT_PALETTE_CONFIG=S,De.THEME_PRESETS=j,De.choice=function(e,t,r){const o=e in t?t[e]:r;return"function"===O(o)?o(e):o},De.arrayUniq=B,De.arrayBinA=function(e,t){return"array"!==O(e)||"array"!==O(t)?[]:B(e.filter(e=>-1!==t.indexOf(e)))},De.arrayBNotInA=function(e,t){return"array"!==O(e)||"array"!==O(t)?[]:B(t.filter(t=>e.indexOf(t)<0))},De.colorInterp=function(e,t,r,a,n){return function(e,t,r,o,a,n){let i=Array.isArray(o)?o:["#000","#fff"];if(i=0===i.length?["#000","#fff"]:i,1===i.length)return i[0];i=i.map(e=>n(e));const s=I(e,t,r,0,i.length-1,{clip:!0,expScale:a}),l=T(Math.floor(s),0,i.length-2),c=s-l,d=e=>I(c,0,1,i[l][e],i[l+1][e],{clip:!0});return[d(0),d(1),d(2),d(3),"rgb"]}(e,t,r,a,n,o)},De.colorHslToRgb=n,De.colorRgbToHsl=a,De.colorParse=o,De.setCookie=function(e,t,r,o={}){if(!De._isBrowser)return;const a=new Date;a.setTime(a.getTime()+24*r*60*60*1e3);let n=`${e}=${t}; expires=${a.toUTCString()}`;o.path&&(n+=`; path=${o.path}`),o.domain&&(n+=`; domain=${o.domain}`),o.secure&&(n+="; secure"),o.sameSite&&(n+=`; samesite=${o.sameSite}`),document.cookie=n},De.getCookie=function(e,t){if(!De._isBrowser)return t;const r=e+"=",o=document.cookie.split(";");for(let e=0;e<o.length;e++){let t=o[e];for(;" "===t.charAt(0);)t=t.substring(1);if(0===t.indexOf(r))return t.substring(r.length,t.length)}return t},De.getURLParam=function(e,t){if(!De._isBrowser||"object"!=typeof window)return t;try{const r=new URLSearchParams(window.location.search);if(!e){const e={};for(const[t,o]of r)e[t]=o||!0;return e}return r.has(e)?r.get(e)||!0:t}catch(e){return t}},De.loremIpsum=function(e,t,r=!0){const o="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. ";"number"!=typeof e&&(e=Math.floor(125*Math.random())+25),void 0===t&&(t=Math.floor(446*Math.random())),t%=446;let a=0;for(;" "===o[t]||/[.,:;!?]/.test(o[t]);)if(t=(t+1)%446,a++,a>=446){t=0,a=0;break}let n=o.substring(t)+o.substring(0,t),i="",s=e+a;for(;s>0;)i+=s<n.length?n.substring(0,s):n,s-=n.length;if(i.length>e&&(i=i.substring(0,e))," "===i[i.length-1]&&(i=i.substring(0,i.length-1)+"."),r){let e=i[0].toUpperCase();e=/[A-Z]/.test(e)?e:"L",i=e+i.substring(1)}return i},De.multiArray=function(e,t){t="number"==typeof t?[t]:t;const r=o=>{if(o>=t.length)return"function"===O(e)?e():e;const a=[];for(let e=0;e<t[o];e++)a[e]=r(o+1);return a};return r(0)},De.naturalCompare=function(e,t){if(isFinite(e)&&isFinite(t))return Math.sign(e-t);const r=String(e).toLowerCase(),o=String(t).toLowerCase();if(r===o)return e>t?1:0;if(!/\d/.test(r)||!/\d/.test(o))return r>o?1:-1;const a=r.match(/(\d+|\D+)/g)||[],n=o.match(/(\d+|\D+)/g)||[],i=Math.min(a.length,n.length);for(let e=0;e<i;e++){const t=a[e],r=n[e];if(t!==r){if(/^\d+$/.test(t)&&/^\d+$/.test(r)){let e=t,o=r;return"0"===t[0]&&(e="0."+t),"0"===r[0]&&(o="0."+r),parseFloat(e)-parseFloat(o)}return t>r?1:-1}}return a.length-n.length},De.setIntervalX=function(e,t,r){let o=0;const a=setInterval(function(){e(o),++o>=r&&clearInterval(a)},t);return a},De.repeatUntil=function(e,t,r,o=250,a=10,n){if("function"!=typeof e)return"err";let i=0;const s=setInterval(function(){const o=e();i++,o?(clearInterval(s),t&&t(o),n&&n(!0,i)):i>=a?(clearInterval(s),r&&r(),n&&n(!1,i)):r&&r()},o);return s},function(e){e.saveClientFile=function(t,r){if(e.isNodeJS())e._getFs().then(function(e){e?e.writeFile(t,r,function(e){e&&console.error("Error saving file:",e)}):console.error("bw.saveClientFile: fs module not available")});else{var o=new Blob([r],{type:"application/octet-stream"}),a=window.URL.createObjectURL(o),n=e.createDOM({t:"a",a:{href:a,download:t,style:"display: none"}});document.body.appendChild(n),n.click(),window.URL.revokeObjectURL(a),document.body.removeChild(n)}},e.saveClientJSON=function(t,r){e.saveClientFile(t,JSON.stringify(r,null,2))},e.loadClientFile=function(t,r,o){var a={parser:"raw"};o&&o.parser&&(a.parser=o.parser);var n="JSON"===a.parser?JSON.parse:function(e){return e};if(e.isNodeJS())e._getFs().then(function(e){e?e.readFile(t,"utf8",function(e,t){if(e)r(null,e);else try{r(n(t),null)}catch(e){r(null,e)}}):r(null,new Error("fs module not available"))});else{var i=new XMLHttpRequest;i.open("GET",t,!0),i.onreadystatechange=function(){if(4===i.readyState)if(i.status>=200&&i.status<300)try{r(n(i.responseText),null)}catch(e){r(null,e)}else r(null,new Error("HTTP "+i.status+": "+t))},i.send(null)}return"BW_OK"},e.loadClientJSON=function(t,r){return e.loadClientFile(t,r,{parser:"JSON"})},e.loadLocalFile=function(t,r){var o={parser:"raw",accept:""};r&&(r.parser&&(o.parser=r.parser),r.accept&&(o.accept=r.accept));var a="JSON"===o.parser?JSON.parse:function(e){return e};if(e.isNodeJS())t(null,"",new Error("bw.loadLocalFile is browser-only. Use bw.loadClientFile() in Node."));else{var n=e.createDOM({t:"input",a:{type:"file",accept:o.accept,style:"display: none"}});n.addEventListener("change",function(){var e=n.files[0];if(e){var r=new FileReader;r.onload=function(r){try{t(a(r.target.result),e.name,null)}catch(r){t(null,e.name,r)}},r.onerror=function(){t(null,e.name,r.error)},r.readAsText(e),n.remove()}else t(null,"",new Error("No file selected"))}),document.body.appendChild(n),n.click()}},e.loadLocalJSON=function(t){e.loadLocalFile(t,{parser:"JSON",accept:".json"})}}(De),De.copyToClipboard=function(e){return navigator.clipboard&&navigator.clipboard.writeText?navigator.clipboard.writeText(e):new Promise((t,r)=>{const o=De.createDOM({t:"textarea",a:{value:e,style:{position:"fixed",top:"-999px",left:"-999px",width:"2em",height:"2em",padding:0,border:"none",outline:"none",boxShadow:"none",background:"transparent"}}});document.body.appendChild(o),o.focus(),o.select();try{const e=document.execCommand("copy");document.body.removeChild(o),e?t():r(new Error("Copy command failed"))}catch(e){document.body.removeChild(o),r(e)}})},De.makeTable=function(e){const{data:t=[],columns:r,className:o="",striped:a=!1,hover:n=!1,sortable:i=!0,onSort:s,sortColumn:l,sortDirection:c="asc",selectable:d=!1,onRowClick:b,pageSize:_,currentPage:u=1,onPageChange:p}=e;let m="bw_table";a&&(m+=" bw_table_striped"),(n||d)&&(m+=" bw_table_hover"),d&&(m+=" bw_table_selectable"),o&&(m+=" "+o),m=m.trim();const w=r||(t.length>0?Ue(t[0]).map(e=>({key:e,label:e})):[]);let f=l||null,h=c,g=[...t];f&&g.sort((e,t)=>{const r=e[f],o=t[f];if(He(r,"number")&&He(o,"number"))return"asc"===h?r-o:o-r;const a=String(r||"").toLowerCase(),n=String(o||"").toLowerCase();return"asc"===h?a.localeCompare(n):n.localeCompare(a)});const v=g.length,y=_?Math.max(1,Math.ceil(v/_)):1,x=Math.max(1,Math.min(u,y));if(_){const e=(x-1)*_;g=g.slice(e,e+_)}const k={t:"table",a:{class:m},c:[{t:"thead",c:{t:"tr",c:w.map(e=>({t:"th",a:i?{style:{cursor:"pointer",userSelect:"none"},onclick:()=>{return t=e.key,void(i&&(f===t?h="asc"===h?"desc":"asc":(f=t,h="asc"),s&&s(t,h)));var t}}:{},c:[e.label,i&&f===e.key&&{t:"span",a:{style:{marginLeft:"5px"}},c:"asc"===h?"▲":"▼"}].filter(Boolean)}))}},{t:"tbody",c:g.map((e,t)=>{const r=_?(x-1)*_+t:t,o={};return(d||b)&&(o.style="cursor:pointer;",o.onclick=function(t){d&&t.currentTarget.classList.toggle("bw_table_row_selected");b&&b(e,r,t)}),{t:"tr",a:o,c:w.map(t=>({t:"td",c:t.render?t.render(e[t.key],e):String(e[t.key]||"")}))}})}]};if(!_)return k;const C=[];return C.push({t:"button",a:{class:"bw_btn bw_btn_sm",disabled:x<=1?"disabled":void 0,onclick:x>1&&p?function(){p(x-1)}:void 0},c:"Prev"}),C.push({t:"span",a:{style:"margin:0 0.5rem;font-size:0.875rem;"},c:"Page "+x+" of "+y}),C.push({t:"button",a:{class:"bw_btn bw_btn_sm",disabled:x>=y?"disabled":void 0,onclick:x<y&&p?function(){p(x+1)}:void 0},c:"Next"}),{t:"div",a:{class:"bw_table_paginated"},c:[k,{t:"div",a:{class:"bw_table_pagination",style:"display:flex;align-items:center;justify-content:flex-end;padding:0.5rem 0;gap:0.25rem;"},c:C}]}},De.makeTableFromArray=function(e){const{data:t=[],headerRow:r=!0,columns:o,...a}=e;if(!Re(t)||0===t.length)return De.makeTable({data:[],columns:o||[],...a});let n,i;if(r&&t.length>0)n=t[0].map(function(e){return String(e)}),i=t.slice(1);else{const e=t[0].length;n=[];for(let t=0;t<e;t++)n.push("col"+t);i=t}const s=i.map(function(e){const t={};return n.forEach(function(r,o){t[r]=void 0!==e[o]?e[o]:""}),t}),l=o||n.map(function(e){return{key:e,label:e}});return De.makeTable({data:s,columns:l,...a})},De.makeBarChart=function(e){const{data:t=[],labelKey:r="label",valueKey:o="value",title:a,color:n="#006666",height:i="200px",formatValue:s,showValues:l=!0,showLabels:c=!0,className:d=""}=e;if(!Re(t)||0===t.length)return{t:"div",a:{class:("bw_bar_chart_container "+d).trim()},c:""};const b=t.map(function(e){return Number(e[o])||0}),_=Math.max.apply(null,b),u=t.map(function(e,t){const o=b[t],a=_>0?o/_*100:0,i=s?s(o):String(o),d=[];return l&&d.push({t:"div",a:{class:"bw_bar_value"},c:i}),d.push({t:"div",a:{class:"bw_bar",style:"height:"+a+"%;background:"+n+";"}}),c&&d.push({t:"div",a:{class:"bw_bar_label"},c:String(e[r]||"")}),{t:"div",a:{class:"bw_bar_group"},c:d}}),p=[];return a&&p.push({t:"h3",a:{class:"bw_bar_chart_title"},c:a}),p.push({t:"div",a:{class:"bw_bar_chart",style:"height:"+i+";"},c:u}),{t:"div",a:{class:("bw_bar_chart_container "+d).trim()},c:p}},De.makeDataTable=function(e){const{title:t,data:r,columns:o,className:a="",striped:n=!0,hover:i=!0,responsive:s=!0,...l}=e,c=De.makeTable({data:r,columns:o,className:a,striped:n,hover:i,...l}),d=[];return t&&d.push({t:"h5",a:{class:"mb-3"},c:t}),s?d.push({t:"div",a:{class:"table-responsive"},c:c}):d.push(c),{t:"div",a:{class:"table-container"},c:d}},De._componentRegistry=new Map,De.render=function(e,t,r){const o=He(e,"string")?document.querySelector(e):e;if(!o)return{object_type:"error",component_id:null,object_handle_in_dom:null,status_code:"error=target_element_not_found"};const a=r.o?.id||De.uuid("uuid");let n;try{n=De.createDOM(r)}catch(e){return{object_type:"error",component_id:a,object_handle_in_dom:null,status_code:`error=render_failed:${e.message}`}}n.classList.add(a),n.classList.add(Je);try{switch(t){case"replace":o.parentNode.replaceChild(n,o);break;case"prepend":o.insertBefore(n,o.firstChild);break;case"append":o.appendChild(n);break;case"before":o.parentNode.insertBefore(n,o);break;case"after":o.parentNode.insertBefore(n,o.nextSibling);break;default:throw new Error(`Invalid position: ${t}`)}}catch(e){return{object_type:"error",component_id:a,object_handle_in_dom:null,status_code:`error=insertion_failed:${e.message}`}}const i={object_type:r.t||"element",component_id:a,object_handle_in_dom:n,status_code:"success",_taco:{...r},_state:{...r.o?.state||{}},_mounted:!0,get element(){return this.object_handle_in_dom},getState(){return{...this._state}},setState(e){return this._state={...this._state,...e},this._taco.o?.onStateChange&&this._taco.o.onStateChange(this._state,e),this},update(){if(!this._mounted||!this.element)return this;const e=this.element.parentNode;this._taco.o&&(this._taco.o.state=this._state);const t=De.createDOM(this._taco);return t.classList.add(a),t.classList.add(Je),e.replaceChild(t,this.element),this.object_handle_in_dom=t,this._taco.o?.onUpdate&&this._taco.o.onUpdate(t,this._state),this},getProp(e){return this._taco.a?.[e]},setProp(e,t){return this._taco.a||(this._taco.a={}),this._taco.a[e]=t,this.element&&(null==t?this.element.removeAttribute(e):!0===t?this.element.setAttribute(e,""):this.element.setAttribute(e,String(t))),this},getContent(){return this._taco.c},setContent(e){return this._taco.c=e,this.element&&(He(e,"string")?this.element.textContent=e:this.update()),this},addClass(e){return this.element&&this.element.classList.add(e),this},removeClass(e){return this.element&&this.element.classList.remove(e),this},toggleClass(e){return this.element&&this.element.classList.toggle(e),this},hasClass(e){return!!this.element&&this.element.classList.contains(e)},show(){return this.element&&(this.element.style.display=""),this},hide(){return this.element&&(this.element.style.display="none"),this},on(e,t){return this.element&&this.element.addEventListener(e,t),this},off(e,t){return this.element&&this.element.removeEventListener(e,t),this},destroy(){return this._mounted?(this._taco.o?.unmount&&this._taco.o.unmount(this.element),this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),De._componentRegistry.delete(a),this._mounted=!1,this.object_handle_in_dom=null,this.status_code="destroyed",this):this}};return De._componentRegistry.set(a,i),r.o?.mounted&&r.o.mounted(n,i),i},De.getComponent=function(e){return De._componentRegistry.get(e)||null},De.getAllComponents=function(){return new Map(De._componentRegistry)},function(e){var t=null;e.router=function(r){if(!r||!r.routes)throw new Error("bw.router: config.routes is required");if(!e._isBrowser)throw new Error("bw.router: requires a browser environment");var o=r.mode||"hash",a=r.base||"/";a.length>1&&"/"===a.charAt(a.length-1)&&(a=a.substring(0,a.length-1));for(var n=r.target||null,i=[],s=Object.keys(r.routes),l=0;l<s.length;l++)i.push({pattern:s[l],handler:r.routes[s[l]]});var c="/",d=!1;function b(){if("hash"===o)return window.location.hash.replace(/^#/,"")||"/";var e=window.location.pathname;return"/"!==a&&0===e.indexOf(a)&&(e=e.substring(a.length)||"/"),e+(window.location.search||"")}function _(t,o){if(!d){var a=c,s=D(t);if(r.before){var l=r.before(s,a);if(!1===l)return;"string"==typeof l&&(s=D(l),t=l)}c=s;var b=R(i,t);if(b){var _=b.handler(b.params);null!=_&&n&&e.DOM(n,_)}var u=q(t);e.pub("bw:route",{path:s,params:b?b.params:{},query:u,from:a}),r.after&&r.after(s,a)}}function u(){d||_(b())}function p(){d||_(b())}"hash"===o?window.addEventListener("hashchange",u):window.addEventListener("popstate",p),_(b());var m={navigate:function(e,t){if(!d)if(t=t||{},"hash"===o){if(t.replace){var r=window.location;r.replace(r.pathname+r.search+"#"+e)}else window.location.hash=e;D(window.location.hash.replace(/^#/,"")||"/")===D(e)&&_(e)}else{var n=("/"===a?"":a)+e;t.replace?window.history.replaceState(null,"",n):window.history.pushState(null,"",n),_(e)}},current:function(){var e=b(),t=R(i,e);return{path:c,params:t?t.params:{},query:q(e)}},destroy:function(){d=!0,"hash"===o?window.removeEventListener("hashchange",u):window.removeEventListener("popstate",p),t===m&&(t=null)}};return t=m,m},e.navigate=function(e,r){t?t.navigate(e,r):"undefined"!=typeof console&&console.warn&&console.warn("bw.navigate: no active router")},e.link=function(r,o,a){var n={};if(a)for(var i=Object.keys(a),s=0;s<i.length;s++)n[i[s]]=a[i[s]];return n.href=t?"#"+r:r,n.onclick=function(t){t.preventDefault(),e.navigate(r)},{t:"a",a:n,c:o}},e._router={matchRoute:R,normalizePath:D,parseQuery:q,getActiveRouter:function(){return t},resetActiveRouter:function(){t=null}}}(De),Object.entries(Be).forEach(([e,t])=>{e.startsWith("make")&&(De[e]=t)}),De.make=Te,De.BCCL=Ie,De.variantClass=U,Object.entries(Be).forEach(([e,t])=>{if(e.startsWith("make")){const r="create"+e.substring(4);De[r]=function(e){return De.createDOM(t(e))}}}),De.catalog=function(e){if(e){var t=De.BCCL[e];return t?{type:e,factory:t.make.name||"make"+e.charAt(0).toUpperCase()+e.slice(1)}:null}return Object.keys(De.BCCL).map(function(e){return{type:e,factory:De.BCCL[e].make.name||"make"+e.charAt(0).toUpperCase()+e.slice(1)}})},De._isBrowser&&"undefined"!=typeof window&&(window.bw=De);export{Ie as BCCL,De as default,Te as make,fe as makeAccordion,W as makeAlert,ke as makeAvatar,K as makeBadge,ee as makeBreadcrumb,H as makeButton,we as makeButtonGroup,be as makeCTA,P as makeCard,Ce as makeCarousel,ie as makeCheckbox,Oe as makeChipInput,ue as makeCodeDemo,G as makeCol,F as makeContainer,ve as makeDropdown,de as makeFeatureGrid,$e as makeFileUpload,te as makeForm,re as makeFormGroup,ce as makeHero,oe as makeInput,Q as makeListGroup,Ee as makeMediaObject,he as makeModal,J as makeNav,X as makeNavbar,pe as makePagination,Le as makePopover,Z as makeProgress,me as makeRadio,ze as makeRange,Y as makeRow,Ae as makeSearchInput,_e as makeSection,ne as makeSelect,xe as makeSkeleton,le as makeSpinner,se as makeStack,Se as makeStatCard,Me as makeStepper,ye as makeSwitch,V as makeTabs,ae as makeTextarea,Ne as makeTimeline,ge as makeToast,je as makeTooltip,U as variantClass};
1
+ /*! bitwrench v2.1.0 | BSD-2-Clause | https://deftio.github.io/bitwrench/pages */
2
+ const e={version:"2.1.0",name:"bitwrench",license:"BSD-2-Clause",buildDate:"2026-07-15T05:51:07.722Z"};function t(e){return("0"+e.toString(16)).slice(-2)}function r(e,t,r){return Math.max(t,Math.min(r,e))}function n(e){var t="#"===e.charAt(0)?e.slice(1):e;return 3===t.length&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),[parseInt(t.slice(0,2),16),parseInt(t.slice(2,4),16),parseInt(t.slice(4,6),16)]}function a(e,t,r){e/=255,t/=255,r/=255;var n,a,o=Math.max(e,t,r),i=Math.min(e,t,r),c=(o+i)/2;if(o===i)n=a=0;else{var l=o-i;switch(a=c>.5?l/(2-o-i):l/(o+i),o){case e:n=((t-r)/l+(t<r?6:0))/6;break;case t:n=((r-e)/l+2)/6;break;case r:n=((e-t)/l+4)/6}}return[360*n,100*a,100*c]}function o(e,t,r){var n,a,o,i=e/360,c=t/100,l=r/100;if(0===c)n=a=o=255*l;else{var s=function(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e},b=l<.5?l*(1+c):l+c-l*c,d=2*l-b;n=255*s(d,b,i+1/3),a=255*s(d,b,i),o=255*s(d,b,i-1/3)}return[Math.round(n),Math.round(a),Math.round(o)]}function i(e,t,n,a,o,i){var c=(e-t)/(n-t);i&&i.expScale&&1!==i.expScale&&(c=Math.pow(c,i.expScale));var l=c*(o-a)+a;return i&&i.clip&&(l=r(l,Math.min(a,o),Math.max(a,o))),l}function c(e,t,r,n,a){void 0===n&&(n=255),void 0===a&&(a=!0),Array.isArray(e)&&(t=e[1],r=e[2],n=void 0!==e[3]?e[3]:255,e=e[0]);var i=o(e,t,r);return a&&(n=Math.round(n)),[i[0],i[1],i[2],n,"rgb"]}function l(e,t){void 0===t&&(t=255);var r=[0,0,0,t,"rgb"];if(Array.isArray(e)){for(var n=[0,0,0,255,"rgb"],a=0;a<e.length&&a<n.length;a++)n[a]=e[a];return n}if("#"===(e=String(e).replace(/\s/g,""))[0]){var o=e.slice(1);if(3===o.length||4===o.length)for(var i=0;i<o.length;i++)r[i]=parseInt(o[i]+o[i],16);else if(6===o.length||8===o.length)for(var l=0;l<o.length;l+=2)r[l/2]=parseInt(o.substring(l,l+2),16)}else{var s=e.match(/^(rgb|hsl)a?\(([^)]+)\)$/i);if(s){var b=s[1].toLowerCase(),d=s[2].split(",").map(function(e){return parseFloat(e)});if("rgb"===b)r[0]=d[0]||0,r[1]=d[1]||0,r[2]=d[2]||0,r[3]=void 0!==d[3]?255*d[3]:t;else if("hsl"===b)return c(d[0]||0,d[1]||0,d[2]||0,void 0!==d[3]?255*d[3]:t)}}return r}function s(e){var t=n(e);return a(t[0],t[1],t[2])}function b(e){var r=o(e[0],e[1],e[2]);return"#"+t(r[0])+t(r[1])+t(r[2])}function d(e,t){var n=s(e);return n[2]=r(n[2]+t,0,100),b(n)}function _(e,r,a){var o=n(e),i=n(r),c=Math.round(o[0]+(i[0]-o[0])*a),l=Math.round(o[1]+(i[1]-o[1])*a),s=Math.round(o[2]+(i[2]-o[2])*a);return"#"+t(c)+t(l)+t(s)}function u(e){var t=n(e),r=[t[0]/255,t[1]/255,t[2]/255].map(function(e){return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)});return.2126*r[0]+.7152*r[1]+.0722*r[2]}function p(e){return u(e)>.179?"#000":"#fff"}function m(e,t,r){if(void 0===r&&(r=.2),0===r)return e;var n=s(e),a=s(t)[0]-n[0];return a>180&&(a-=360),a<-180&&(a+=360),b([(n[0]+a*r+360)%360,n[1],n[2]])}function f(e){var t=n(e),r=s(e)[2]>75?d(e,-18):_(e,"#ffffff",.6);return{base:e,hover:d(e,-10),active:d(e,-15),light:_(e,"#ffffff",.85),darkText:d(e,-40),border:r,focus:"rgba("+t[0]+","+t[1]+","+t[2]+",0.25)",textOn:p(e)}}function w(e){var t,n,a=s(e),o=a[0],i=a[1],c=a[2];return c>50?(t=r(100-c-10,8,40),n=r(.85*i,0,100)):(t=r(100-c+10,60,92),n=r(1.1*i,0,100)),b([o,n,t])}function h(e){var t=u(e.primary);return e.secondary&&(t=(t+u(e.secondary))/2),e.tertiary&&(t=(2*t+u(e.tertiary))/3),t>.179}function g(e){var t={};t.primary=w(e.primary),t.secondary=w(e.secondary||e.primary),t.tertiary=e.tertiary?w(e.tertiary):t.primary;var r=s(e.primary),n=r[0];u(e.surface||b([n,8,96]))>.179?(t.light=b([n,Math.min(r[1],15),15]),t.dark=b([n,5,88]),t.surface=b([n,12,18]),t.background=b([n,10,14])):(t.light=b([n,Math.min(r[1],10),96]),t.dark=b([n,10,18]),t.surface=b([n,8,96]),t.background=b([n,6,98]));for(var a=void 0!==e.harmonize?e.harmonize:.2,o={success:"#198754",danger:"#dc3545",warning:"#f0ad4e",info:"#17a2b8"},i=["success","danger","warning","info"],c=0;c<i.length;c++){var l=i[c],d=m(e[l]||o[l],e.primary,a);t[l]=w(d)}return t.harmonize=0,t}function v(e){var t=void 0!==e.harmonize?e.harmonize:.2,r=e.primary,n=e.secondary||r,a=e.tertiary||r,o=s(r)[0],i=m(e.success||"#198754",r,t),c=m(e.danger||"#dc3545",r,t),l=m(e.warning||"#f0ad4e",r,t),d=m(e.info||"#17a2b8",r,t),_=e.light||b([o,8,97]),u=e.dark||b([o,10,13]),p=e.background||b([o,22,96]),w=e.surface||b([o,25,94]),h=s(w),g=h[2]<=50?b([h[0],h[1],Math.min(h[2]+8,100)]):b([h[0],h[1],Math.max(h[2]-3,0)]);return{primary:f(r),secondary:f(n),tertiary:f(a),success:f(i),danger:f(c),warning:f(l),info:f(d),light:f(_),dark:f(u),background:p,surface:w,surfaceAlt:g}}let y={1:"0.25rem",2:"0.5rem",3:"0.75rem",4:"1rem",5:"1.5rem",6:"2rem"};var x={compact:{btn:y[1]+" "+y[3],card:y[3]+" "+y[4],alert:y[2]+" "+y[4],cell:y[2]+" "+y[3],input:y[1]+" "+y[3]},normal:{btn:y[2]+" "+y[4],card:y[5]+" "+y[5],alert:y[3]+" "+y[5],cell:y[3]+" "+y[4],input:y[2]+" "+y[3]},spacious:{btn:y[3]+" "+y[5],card:y[6]+" "+y[6],alert:y[4]+" "+y[5],cell:y[4]+" "+y[5],input:y[3]+" "+y[4]}},k={none:{btn:"0",card:"0",badge:"0",alert:"0",input:"0"},sm:{btn:"4px",card:"4px",badge:".25rem",alert:"4px",input:"4px"},md:{btn:"6px",card:"8px",badge:".375rem",alert:"8px",input:"6px"},lg:{btn:"10px",card:"12px",badge:".5rem",alert:"12px",input:"10px"},pill:{btn:"50rem",card:"1rem",badge:"50rem",alert:"1rem",input:"50rem"}},C={tight:1.125,normal:1.2,relaxed:1.25,dramatic:1.333};function S(e,t){return e||(e=16),t||(t=1.2),{xs:Math.round(e/(t*t)),sm:Math.round(e/t),base:e,lg:Math.round(e*t),xl:Math.round(e*t*t),"2xl":Math.round(e*Math.pow(t,3)),"3xl":Math.round(e*Math.pow(t,4)),"4xl":Math.round(e*Math.pow(t,5))}}var L={flat:{sm:"none",md:"none",lg:"none",xl:"none"},sm:{sm:"0 1px 2px rgba(0,0,0,0.05)",md:"0 1px 3px rgba(0,0,0,0.08)",lg:"0 2px 6px rgba(0,0,0,0.10)",xl:"0 4px 12px rgba(0,0,0,0.12)"},md:{sm:"0 1px 3px rgba(0,0,0,0.10), 0 1px 2px rgba(0,0,0,0.06)",md:"0 4px 6px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.06)",lg:"0 10px 15px rgba(0,0,0,0.12), 0 4px 6px rgba(0,0,0,0.08)",xl:"0 20px 25px rgba(0,0,0,0.15), 0 8px 10px rgba(0,0,0,0.10)"},lg:{sm:"0 2px 4px rgba(0,0,0,0.10)",md:"0 4px 12px rgba(0,0,0,0.16)",lg:"0 8px 24px rgba(0,0,0,0.22)",xl:"0 16px 48px rgba(0,0,0,0.28)"}},j={reduced:{fast:"0ms",normal:"0ms",slow:"0ms",easing:"linear"},standard:{fast:"100ms",normal:"200ms",slow:"300ms",easing:"ease-out"},expressive:{fast:"150ms",normal:"300ms",slow:"500ms",easing:"cubic-bezier(0.34, 1.56, 0.64, 1)"}},A={primary:"#006666",secondary:"#6c757d",tertiary:"#006666",success:"#198754",danger:"#dc3545",warning:"#b38600",info:"#0891b2",light:"#f8f9fa",dark:"#212529"},E=Object.fromEntries([["teal","#006666","#6c757d","#006666"],["ocean","#0077b6","#90e0ef","#00b4d8"],["sunset","#e76f51","#264653","#e9c46a"],["forest","#2d6a4f","#95d5b2","#52b788"],["slate","#343a40","#adb5bd","#6c757d"],["rose","#e11d48","#fda4af","#fb7185"],["indigo","#4f46e5","#a5b4fc","#818cf8"],["amber","#d97706","#fbbf24","#f59e0b"],["emerald","#059669","#6ee7b7","#34d399"],["nord","#5e81ac","#88c0d0","#81a1c1"],["coral","#ef6461","#4a7c7e","#e8a87c"],["midnight","#1e3a5f","#7c8db5","#3d5a80"]].map(function(e){return[e[0],{primary:e[1],secondary:e[2],tertiary:e[3]}]}));var N=function(e,t){return e?t.includes(",")?t.split(",").map(function(t){return"."+e+" "+t.trim()}).join(", "):"."+e+" "+t:t};function z(e,t,r){var n=t[r||"fast"];return e.split(",").map(function(e){return e.trim()+" "+n+" "+t.easing}).join(", ")}function M(e,t){return"0 0 0 "+(t||"0.25rem")+" "+e}function $(e){return e.surface||"#fff"}function O(e,t,r){return Object.assign({},function(e,t){var r={},n=t.background||"#f5f5f5",a={color:t.dark.base,"background-color":n};return r[N(e,"body")]=a,r}(e,t),function(e,t,r){var n=r.motion,a={};return a[N(e,"a")]={color:t.primary.base,"text-decoration":"none",transition:z("color",n)},a[N(e,"a:hover")]={color:t.tertiary.hover,"text-decoration":"underline"},a}(e,t,r),function(e,t,r){var n={},a=r.spacing,o=r.radius;return n[N(e,".bw_bccl_btn")]={padding:a.btn,"border-radius":o.btn},n[N(e,".bw_bccl_btn:focus-visible")]={outline:"2px solid currentColor","outline-offset":"2px","box-shadow":M(t.primary.focus,"3px")},n[N(e,".bw_bccl_btn_lg")]={padding:"0.625rem 1.5rem","font-size":"1rem","border-radius":"50rem"===o.btn?"50rem":parseInt(o.btn)+2+"px"},n[N(e,".bw_bccl_btn_sm")]={padding:"0.25rem 0.75rem","font-size":"0.8125rem","border-radius":"50rem"===o.btn?"50rem":Math.max(parseInt(o.btn)-1,0)+"px"},n}(e,t,r),function(e,t,r){var n={},a=r.spacing,o=r.radius;return n[N(e,".bw_bccl_alert")]={padding:a.alert,"border-radius":o.alert},n}(e,0,r),function(e,t,r){var n={},a=r.spacing,o=r.radius,i=r.elevation,c=r.motion;return n[N(e,".bw_bccl_card")]={"background-color":$(t),border:"1px solid "+t.light.border,"border-radius":o.card,"box-shadow":i.sm,transition:z("box-shadow,transform",c,"normal")},n[N(e,".bw_bccl_card:hover")]={"box-shadow":i.md},n[N(e,".bw_bccl_card_hoverable")]={transition:z("box-shadow,transform",c,"slow")},n[N(e,".bw_bccl_card_hoverable:hover")]={"box-shadow":i.lg},n[N(e,".bw_bccl_card_body")]={padding:a.card},n[N(e,".bw_bccl_card_header")]={padding:a.card.split(" ").map(function(e){return(.7*parseFloat(e)).toFixed(3).replace(/\.?0+$/,"")+"rem"}).join(" "),"background-color":t.surfaceAlt,"border-bottom":"1px solid "+t.light.border},n[N(e,".bw_bccl_card_footer")]={"background-color":t.surfaceAlt,"border-top":"1px solid "+t.light.border,color:t.secondary.base},n[N(e,".bw_bccl_card_title")]={color:t.dark.base},n[N(e,".bw_bccl_card_subtitle")]={color:t.secondary.base},n}(e,t,r),function(e,t,r){var n={},a=r.spacing,o=r.radius;return n[N(e,".bw_bccl_form_control")]={padding:a.input,"border-radius":o.input,color:t.dark.base,"background-color":$(t),"border-color":t.light.border},n[N(e,".bw_bccl_form_control:focus")]={"border-color":t.primary.border,outline:"2px solid "+t.primary.base,"outline-offset":"-1px","box-shadow":M(t.primary.focus)},n[N(e,".bw_bccl_form_control::placeholder")]={color:t.secondary.base},n[N(e,".bw_bccl_form_label")]={color:t.dark.base},n[N(e,".bw_bccl_form_text")]={color:t.secondary.base},n[N(e,".bw_bccl_form_check_input:checked")]={"background-color":t.primary.base,"border-color":t.primary.base},n[N(e,".bw_bccl_form_check_input:focus")]={"box-shadow":M(t.primary.focus)},n[N(e,".bw_bccl_form_control.bw_is_valid")]={"border-color":t.success.base},n[N(e,".bw_bccl_form_control.bw_is_valid:focus")]={"border-color":t.success.base,"box-shadow":M(t.success.focus,"0.2rem")},n[N(e,".bw_bccl_form_control.bw_is_invalid")]={"border-color":t.danger.base},n[N(e,".bw_bccl_form_control.bw_is_invalid:focus")]={"border-color":t.danger.base,"box-shadow":M(t.danger.focus,"0.2rem")},n[N(e,".bw_bccl_form_select")]={padding:a.input,"border-radius":o.input,color:t.dark.base,"background-color":$(t),"border-color":t.light.border},n[N(e,".bw_bccl_form_select:focus")]={"border-color":t.primary.border,"box-shadow":M(t.primary.focus)},n}(e,t,r),function(e,t,r){var n={};return n[N(e,".bw_bccl_navbar")]={"background-color":t.surfaceAlt,"border-bottom-color":t.light.border},n[N(e,".bw_bccl_navbar_brand")]={color:t.dark.base},n[N(e,".bw_bccl_navbar_nav .bw_nav_link")]={color:t.secondary.base,"border-radius":r.radius.btn,transition:z("color,background-color",r.motion)},n[N(e,".bw_bccl_navbar_nav .bw_nav_link:hover")]={color:t.tertiary.base,"background-color":t.surfaceAlt},n[N(e,".bw_bccl_navbar_nav .bw_nav_link.active")]={color:t.primary.base,"background-color":t.primary.focus,"font-weight":"600"},n[N(e,".bw_bccl_navbar_dark")]={"background-color":t.dark.base,"border-bottom-color":t.dark.hover},n[N(e,".bw_bccl_navbar_dark .bw_bccl_navbar_brand")]={color:t.light.base},n[N(e,".bw_bccl_navbar_dark .bw_nav_link")]={color:t.light.border},n[N(e,".bw_bccl_navbar_dark .bw_nav_link:hover")]={color:t.light.base},n[N(e,".bw_bccl_navbar_dark .bw_nav_link.active")]={color:t.light.base,"font-weight":"600"},n[N(e,".bw_nav_pills .bw_nav_link.active")]={color:t.primary.textOn,"background-color":t.primary.base},n}(e,t,r),function(e,t,r){var n={},a=r.spacing;return n[N(e,".bw_bccl_table")]={color:t.dark.base,"border-color":t.light.border},n[N(e,".bw_bccl_table > :not(caption) > * > *")]={padding:a.cell,"border-bottom-color":t.light.border},n[N(e,".bw_bccl_table > thead > tr > *")]={color:t.secondary.base,"border-bottom-color":t.light.border,"background-color":t.surfaceAlt},n[N(e,".bw_bccl_table_striped > tbody > tr:nth-of-type(odd) > *")]={"background-color":t.surfaceAlt},n[N(e,".bw_bccl_table_hover > tbody > tr:hover > *")]={"background-color":t.primary.focus},n[N(e,".bw_bccl_table_selectable > tbody > tr")]={cursor:"pointer"},n[N(e,".bw_bccl_table > tbody > tr.bw_bccl_table_row_selected > *")]={"background-color":t.primary.light},n[N(e,".bw_bccl_table_bordered")]={"border-color":t.light.border},n[N(e,".bw_bccl_table caption")]={color:t.secondary.base},n}(e,t,r),function(e,t,r){var n={},a=r.motion;return n[N(e,".bw_nav_tabs")]={"border-bottom-color":t.light.border},n[N(e,".bw_nav_link")]={color:t.secondary.base,transition:z("color,border-color,background-color",a)},n[N(e,".bw_nav_tabs .bw_nav_link:hover")]={color:t.tertiary.base,"background-color":t.surfaceAlt,"border-bottom-color":t.light.border},n[N(e,".bw_nav_tabs .bw_nav_link.active")]={color:t.primary.base,"background-color":t.primary.focus,"border-bottom":"2px solid "+t.primary.base},n}(e,t,r),function(e,t,r){var n={},a=r.spacing,o=r.motion;return n[N(e,".bw_list_group_item")]={padding:a.cell,color:t.dark.base,"background-color":$(t),"border-color":t.light.border,transition:z("color,background-color",o)},n[N(e,"a.bw_list_group_item:hover")]={"background-color":t.surfaceAlt,color:t.tertiary.base},n[N(e,".bw_list_group_item.active")]={color:t.primary.textOn,"background-color":t.primary.base,"border-color":t.primary.base},n[N(e,".bw_list_group_item.disabled")]={color:t.secondary.base,"background-color":$(t)},n}(e,t,r),function(e,t,r){var n={},a=r.motion,o=r.radius;return n[N(e,".bw_page_item:first-child .bw_page_link")]={"border-top-left-radius":o.btn,"border-bottom-left-radius":o.btn},n[N(e,".bw_page_item:last-child .bw_page_link")]={"border-top-right-radius":o.btn,"border-bottom-right-radius":o.btn},n[N(e,".bw_page_link")]={color:t.primary.base,"background-color":$(t),"border-color":t.light.border,transition:z("color,background-color",a)},n[N(e,".bw_page_link:hover")]={color:t.primary.hover,"background-color":t.surfaceAlt,"border-color":t.light.border},n[N(e,".bw_page_link:focus")]={outline:"2px solid "+t.primary.base,"outline-offset":"-2px"},n[N(e,".bw_page_item.bw_active .bw_page_link")]={color:t.primary.textOn,"background-color":t.primary.base,"border-color":t.primary.base},n[N(e,".bw_page_item.bw_disabled .bw_page_link")]={color:t.secondary.base,"background-color":$(t),"border-color":t.light.border},n}(e,t,r),function(e,t,r){var n={},a=r.radius;return n[N(e,".bw_bccl_progress")]={"background-color":t.surfaceAlt,"border-radius":a.badge,"box-shadow":"inset 0 1px 2px rgba(0,0,0,.1)"},n[N(e,".bw_bccl_progress_bar")]={color:t.primary.textOn,"background-color":t.primary.base,"border-radius":"inherit","box-shadow":"inset 0 -1px 0 rgba(0,0,0,.15)"},n}(e,t,r),function(e,t,r){var n={},a=r.motion;return n[N(e,".bw_bccl_breadcrumb")]={"background-color":t.surfaceAlt,padding:"0.625rem 1rem","border-radius":r.radius.btn},n[N(e,".bw_bccl_breadcrumb_item + .bw_bccl_breadcrumb_item::before")]={color:t.secondary.base},n[N(e,".bw_bccl_breadcrumb_item a")]={color:t.tertiary.base,transition:z("color",a)},n[N(e,".bw_bccl_breadcrumb_item a:hover")]={color:t.tertiary.hover,"text-decoration":"underline"},n[N(e,".bw_bccl_breadcrumb_item.active")]={color:t.dark.base},n}(e,t,r),function(e,t){var r={};return r[N(e,".bw_close")]={color:t.dark.base,opacity:"0.5"},r[N(e,".bw_close:focus")]={"box-shadow":M(t.primary.focus)},r}(e,t),function(e,t){var r={};return r[N(e,".bw_section_subtitle")]={color:t.secondary.base},r[N(e,".bw_feature_description")]={color:t.secondary.base},r[N(e,".bw_cta_description")]={color:t.secondary.base},r}(e,t),function(e,t,r){var n={},a=r.radius;return n[N(e,".bw_bccl_accordion_item")]={"background-color":$(t),"border-color":t.light.border},n[N(e,".bw_bccl_accordion_item:first-child")]={"border-top-left-radius":a.card,"border-top-right-radius":a.card},n[N(e,".bw_bccl_accordion_item:last-child")]={"border-bottom-left-radius":a.card,"border-bottom-right-radius":a.card},n[N(e,".bw_bccl_accordion_button")]={color:t.dark.base},n[N(e,".bw_bccl_accordion_button:not(.bw_collapsed)")]={color:t.primary.darkText,"background-color":t.primary.light,"border-left":"3px solid "+t.primary.base},n[N(e,".bw_bccl_accordion_button:hover")]={"background-color":t.surfaceAlt},n[N(e,".bw_bccl_accordion_button:not(.bw_collapsed):hover")]={"background-color":t.primary.base,color:t.primary.textOn},n[N(e,".bw_bccl_accordion_button:focus-visible")]={"box-shadow":M(t.primary.focus,"0.2rem")},n[N(e,".bw_bccl_accordion_body")]={"border-top":"1px solid "+t.light.border,"background-color":t.surfaceAlt},n}(e,t,r),function(e,t){var r={};return r[N(e,".bw_bccl_carousel")]={"background-color":t.surfaceAlt},r[N(e,".bw_bccl_carousel_indicator.active")]={"background-color":t.primary.base},r[N(e,".bw_bccl_carousel_control")]={"background-color":t.dark.base,color:t.dark.textOn,transition:"background-color 0.15s ease-out"},r[N(e,".bw_bccl_carousel_control:hover")]={"background-color":t.dark.hover},r[N(e,".bw_bccl_carousel_caption")]={background:"linear-gradient(transparent, "+t.dark.base+")",color:t.dark.textOn},r}(e,t),function(e,t,r){var n={},a=r.radius;return n[N(e,".bw_bccl_modal_content")]={"background-color":$(t),"border-color":t.light.border,"border-radius":a.card,"box-shadow":r.elevation.lg},n[N(e,".bw_bccl_modal_header")]={"border-bottom-color":t.light.border},n[N(e,".bw_bccl_modal_footer")]={"border-top-color":t.light.border},n[N(e,".bw_bccl_modal_title")]={color:t.dark.base},n}(e,t,r),function(e,t,r){var n={},a=r.radius;return n[N(e,".bw_bccl_toast")]={"background-color":$(t),"border-color":t.light.border,"border-radius":a.card,"box-shadow":r.elevation.lg},n[N(e,".bw_bccl_toast_header")]={"border-bottom-color":t.light.border},n}(e,t,r),function(e,t,r){var n={},a=r.radius;return n[N(e,".bw_bccl_dropdown_menu")]={"background-color":$(t),"border-color":t.light.border,"border-radius":a.card,"box-shadow":r.elevation.md},n[N(e,".bw_bccl_dropdown_item")]={color:t.dark.base,transition:z("background-color",r.motion)},n[N(e,".bw_bccl_dropdown_item:hover")]={color:t.dark.hover,"background-color":t.surfaceAlt},n[N(e,".bw_bccl_dropdown_item.disabled")]={color:t.secondary.base},n[N(e,".bw_bccl_dropdown_divider")]={"border-top-color":t.light.border},n}(e,t,r),function(e,t){var r={};return r[N(e,".bw_bccl_form_switch .bw_switch_input")]={"background-color":t.secondary.base,"border-color":t.secondary.base},r[N(e,".bw_bccl_form_switch .bw_switch_input:checked")]={"background-color":t.primary.base,"border-color":t.primary.base},r[N(e,".bw_bccl_form_switch .bw_switch_input:focus")]={"box-shadow":M(t.primary.focus)},r[N(e,".bw_bccl_form_switch .bw_switch_input:focus-visible")]={"box-shadow":M(t.primary.focus),outline:"none"},r}(e,t),function(e,t){var r={};return r[N(e,".bw_skeleton")]={background:"linear-gradient(90deg, "+t.light.border+" 25%, "+t.surfaceAlt+" 37%, "+t.light.border+" 63%)"},r}(e,t),function(e,t,r){var n={},a=r.motion,o=r.elevation,i=r.radius;return n[N(e,".bw_stat_card")]={"background-color":$(t),color:t.dark.base,border:"1px solid "+t.light.border,"border-radius":i.card,"box-shadow":o.sm,transition:z("box-shadow,transform",a)},n[N(e,".bw_stat_card:hover")]={"box-shadow":o.md},n[N(e,".bw_stat_change_up")]={color:t.success.base},n[N(e,".bw_stat_change_down")]={color:t.danger.base},n}(e,t,r),function(e,t){var r={};return r[N(e,".bw_bccl_timeline::before")]={"background-color":t.light.border},r[N(e,".bw_bccl_timeline_date")]={color:t.secondary.base},r}(e,t),function(e,t){var r={};return r[N(e,".bw_step_indicator")]={"background-color":t.surfaceAlt,border:"2px solid "+t.light.border,color:t.secondary.base},r[N(e,".bw_step + .bw_step::before")]={"background-color":t.light.border},r[N(e,".bw_step_active .bw_step_indicator")]={"background-color":t.primary.base,color:t.primary.textOn},r[N(e,".bw_step_active .bw_step_label")]={color:t.dark.base,"font-weight":"600"},r[N(e,".bw_step_completed .bw_step_indicator")]={"background-color":t.tertiary.base,color:t.tertiary.textOn},r[N(e,".bw_step_completed .bw_step_label")]={color:t.tertiary.base},r[N(e,".bw_step_completed + .bw_step::before")]={"background-color":t.tertiary.base},r}(e,t),function(e,t,r){var n={},a=r.radius;return n[N(e,".bw_chip_input")]={"border-color":t.light.border,"background-color":$(t),color:t.dark.base,"border-radius":a.input},n[N(e,".bw_chip_input:focus-within")]={"border-color":t.primary.base,"box-shadow":M(t.primary.focus,"0.2rem")},n[N(e,".bw_chip")]={"background-color":t.surfaceAlt,color:t.dark.base},n[N(e,".bw_chip_remove:hover")]={color:t.danger.base,"background-color":t.danger.light},n}(e,t,r),function(e,t,r){var n={},a=r.motion;return n[N(e,".bw_file_upload")]={"border-color":t.light.border,"background-color":t.surfaceAlt,transition:z("border-color,background-color",a)},n[N(e,".bw_file_upload:hover")]={"border-color":t.primary.base,"background-color":t.primary.light},n[N(e,".bw_file_upload:focus")]={outline:"2px solid "+t.primary.base,"outline-offset":"2px"},n[N(e,".bw_file_upload.bw_file_upload_active")]={"border-color":t.primary.base,"background-color":t.primary.light,"border-style":"solid"},n}(e,t,r),function(e,t){var r={};return r[N(e,".bw_range")]={"background-color":t.light.border},r[N(e,".bw_range::-webkit-slider-thumb")]={"background-color":t.primary.base,"border-color":$(t),"box-shadow":"0 1px 3px rgba(0,0,0,0.2)",transition:"background-color 0.15s ease-out, transform 0.15s ease-out"},r[N(e,".bw_range::-moz-range-thumb")]={"background-color":t.primary.base,"border-color":$(t),"box-shadow":"0 1px 3px rgba(0,0,0,0.2)"},r}(e,t),function(e,t,r){var n={},a=r.motion;return n[N(e,".bw_search_input")]={"background-color":$(t),color:t.dark.base},n[N(e,".bw_search_clear")]={transition:z("color,background-color",a)},n[N(e,".bw_search_clear:hover")]={color:t.dark.base},n}(e,t,r),function(e,t,r){var n={},a=r.spacing,o=r.radius,i=r.elevation,c=r.motion;return n[N(e,".bw_bccl_tooltip")]={"background-color":t.dark.base,color:t.dark.textOn,padding:a.input,"border-radius":o.badge,"box-shadow":i.md,transition:z("opacity,transform",c)},n}(e,t,r),function(e,t,r){var n={},a=r.spacing,o=r.radius,i=r.elevation,c=r.motion;return n[N(e,".bw_popover")]={"background-color":$(t),color:t.dark.base,border:"1px solid "+t.light.border,"border-radius":o.card,"box-shadow":i.lg,transition:z("opacity,transform",c)},n[N(e,".bw_popover_header")]={"background-color":t.surfaceAlt,"border-bottom":"1px solid "+t.light.border,padding:a.input},n[N(e,".bw_popover_body")]={padding:a.card},n}(e,t,r),function(e,t,r){var n={},a=r.radius;return n[N(e,".bw_code_demo")]={"background-color":$(t),color:t.dark.base,"border-radius":a.card},n[N(e,".bw_code_copy_btn_copied")]={background:t.success.base,color:t.success.textOn,"border-color":t.success.base},n[N(e,".bw_copy_btn:hover")]={background:"rgba(255,255,255,0.2)",color:"#fff"},n}(e,t,r),function(e,t,r){var n={},a=r.radius;return n[N(e,".bw_nav_pills .bw_nav_link")]={"border-radius":a.btn},n}(e,0,r),function(e,t){var r={};return Object.keys(t).forEach(function(n){if("object"==typeof t[n]){var a=t[n];r[N(e,".bw_"+n)]={"background-color":a.base,color:a.textOn,"border-color":a.base},r[N(e,".bw_"+n+":hover")]={"background-color":a.hover,"border-color":a.active},r[N(e,".bw_"+n+":active")]={"background-color":a.active},r[N(e,".bw_"+n+":focus-visible")]={"box-shadow":"0 0 0 3px "+a.focus,outline:"none"},r[N(e,".bw_bccl_alert.bw_"+n)]={"background-color":a.light,color:a.darkText,"border-color":a.border},r[N(e,".bw_bccl_toast.bw_"+n)]={"background-color":"inherit",color:"inherit","border-left":"4px solid "+a.base},r[N(e,".bw_stat_card.bw_"+n)]={"background-color":"inherit",color:"inherit","border-left-color":a.base},r[N(e,".bw_bccl_card.bw_"+n)]={"background-color":"inherit",color:"inherit","border-left":"4px solid "+a.base},r[N(e,".bw_bccl_timeline_marker.bw_"+n)]={"box-shadow":"0 0 0 2px "+a.base},r[N(e,".bw_spinner_border.bw_"+n)]={"background-color":"transparent",color:a.base,"border-color":a.base,"border-right-color":"transparent"},r[N(e,".bw_spinner_border.bw_"+n+":hover")]={"background-color":"transparent","border-color":a.base,"border-right-color":"transparent"},r[N(e,".bw_spinner_grow.bw_"+n)]={"background-color":a.base,color:a.base},r[N(e,".bw_bccl_btn_outline.bw_"+n)]={"background-color":"transparent",color:a.base,"border-color":a.base},r[N(e,".bw_bccl_btn_outline.bw_"+n+":hover")]={"background-color":a.base,color:a.textOn},r[N(e,".bw_bccl_hero.bw_"+n)]={background:"linear-gradient(135deg, "+a.base+" 0%, "+a.hover+" 100%)",color:a.textOn},r[N(e,".bw_bccl_progress_bar.bw_"+n)]={color:a.textOn},r[N(e,".bw_bg_"+n)]={"background-color":a.base,color:a.textOn},r[N(e,".bw_text_"+n)]={color:a.base}}}),r[N(e,".bw_text_muted")]={color:t.secondary.base},r[N(e,".bw_bg_dark")]={"background-color":t.dark.base,color:t.dark.textOn},r[N(e,".bw_bg_light")]={"background-color":t.light.base,color:t.light.textOn},r[N(e,".bw_text_light")]={color:t.light.base},r[N(e,".bw_text_dark")]={color:t.dark.base},r}(e,t))}function I(e){for(var t={},r=1;r<=12;r++){var n=+(100*r/12).toFixed(6)+"%";t["."+e+"_"+r]={flex:"0 0 "+n,"max-width":n}}return t}var T={base:{"*":{"box-sizing":"border-box",margin:"0",padding:"0"},html:{"font-size":"16px","line-height":"1.5","-webkit-text-size-adjust":"100%","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"},body:{"font-family":'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',"font-size":"1rem","font-weight":"400","line-height":"1.6",margin:"0",padding:"0","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"},".bw_page":{"min-height":"100vh",display:"flex","flex-direction":"column"},".bw_page_content":{flex:"1",padding:"2rem 0"},main:{display:"block"},hr:{"box-sizing":"content-box",height:"0",overflow:"visible",margin:"1rem 0",border:"0"},"hr:not([size])":{height:"1px"}},typography:{"h1, h2, h3, h4, h5, h6":{"margin-top":"0","margin-bottom":".5rem","font-weight":"600","line-height":"1.25","letter-spacing":"-0.01em"},h1:{"font-size":"calc(1.375rem + 1.5vw)"},h2:{"font-size":"calc(1.325rem + .9vw)"},h3:{"font-size":"calc(1.3rem + .6vw)"},h4:{"font-size":"calc(1.275rem + .3vw)"},h5:{"font-size":"1.25rem"},h6:{"font-size":"1rem"},p:{"margin-top":"0","margin-bottom":"1rem"},small:{"font-size":"0.875rem"},a:{"text-decoration":"none"},".bw_display_4":{"font-size":"calc(1.475rem + 2.7vw)","font-weight":"300","line-height":"1.2"},".bw_lead":{"font-size":"1.25rem","font-weight":"300"},".bw_h5":{"font-size":"1.25rem"},".bw_h6":{"font-size":"1rem"}},grid:{".bw_bccl_container":{width:"100%","padding-right":"0.75rem","padding-left":"0.75rem","margin-right":"auto","margin-left":"auto"},"@media (min-width: 576px)":{".bw_bccl_container":{"max-width":"540px"}},"@media (min-width: 768px)":{".bw_bccl_container":{"max-width":"720px"}},"@media (min-width: 992px)":{".bw_bccl_container":{"max-width":"960px"}},"@media (min-width: 1200px)":{".bw_bccl_container":{"max-width":"1140px"}},".bw_bccl_container_fluid":{width:"100%","padding-right":"0.75rem","padding-left":"0.75rem","margin-right":"auto","margin-left":"auto"},".bw_row":{display:"flex","flex-wrap":"wrap","margin-right":"calc(var(--bw_gutter_x, 0.75rem) * -0.5)","margin-left":"calc(var(--bw_gutter_x, 0.75rem) * -0.5)"},'.col, [class*="col-"]':{position:"relative",width:"100%","padding-right":"calc(var(--bw_gutter_x, 0.75rem) * 0.5)","padding-left":"calc(var(--bw_gutter_x, 0.75rem) * 0.5)"},".bw_col":{"flex-basis":"0","flex-grow":"1","max-width":"100%"},...I("bw_col")},buttons:{".bw_bccl_btn":{display:"inline-flex","align-items":"center","justify-content":"center","font-weight":"500","line-height":"1.5","text-align":"center","text-decoration":"none","vertical-align":"middle",cursor:"pointer","user-select":"none",border:"1px solid transparent","font-size":"0.875rem","font-family":"inherit",gap:"0.5rem"},".bw_bccl_btn:hover":{"text-decoration":"none",transform:"translateY(-1px)"},".bw_bccl_btn:active":{transform:"translateY(0)"},".bw_bccl_btn:focus-visible":{outline:"2px solid currentColor","outline-offset":"2px"},".bw_bccl_btn:disabled":{opacity:"0.5",cursor:"not-allowed","pointer-events":"none"},".bw_bccl_btn_block":{display:"block",width:"100%"}},cards:{".bw_bccl_card":{position:"relative",display:"flex","flex-direction":"column","min-width":"0",height:"100%","word-wrap":"break-word","background-clip":"border-box","margin-bottom":"1.5rem",overflow:"hidden"},".bw_bccl_card_body":{flex:"1 1 auto"},".bw_bccl_card_body > *:last-child":{"margin-bottom":"0"},".bw_bccl_card_title":{"margin-bottom":"0.5rem","font-size":"1.125rem","font-weight":"600","line-height":"1.3"},".bw_bccl_card_text":{"margin-bottom":"0","font-size":"0.9375rem","line-height":"1.6"},".bw_bccl_card_header":{"margin-bottom":"0","font-weight":"600","font-size":"0.875rem"},".bw_bccl_card_footer":{"font-size":"0.875rem"},".bw_bccl_card_hoverable":{},".bw_bccl_card_hoverable:hover":{transform:"translateY(-4px)"},".bw_bccl_card_img_top":{width:"100%"},".bw_bccl_card_img_bottom":{width:"100%"},".bw_bccl_card_img_left":{width:"40%","object-fit":"cover"},".bw_bccl_card_img_right":{width:"40%","object-fit":"cover"},".bw_bccl_card_subtitle, .card-subtitle":{"margin-top":"-0.25rem","margin-bottom":"0.5rem","font-size":"0.875rem"}},forms:{".bw_bccl_form_control":{display:"block",width:"100%","font-size":"0.9375rem","font-weight":"400","line-height":"1.5","background-clip":"padding-box",appearance:"none",border:"1px solid transparent","font-family":"inherit",transition:"border-color 0.15s ease-out, box-shadow 0.15s ease-out"},".bw_bccl_form_control:focus":{outline:"2px solid currentColor","outline-offset":"-1px"},".bw_bccl_form_control::placeholder":{opacity:"1"},".bw_bccl_form_label":{display:"block","margin-bottom":"0.375rem","font-size":"0.875rem","font-weight":"600"},".bw_bccl_form_group":{"margin-bottom":"1.25rem"},".bw_bccl_form_text":{"margin-top":"0.25rem","font-size":"0.8125rem"},"select.bw_bccl_form_control":{"padding-right":"2.25rem","background-image":"url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e\")","background-repeat":"no-repeat","background-position":"right 0.75rem center","background-size":"16px 12px"},"textarea.bw_bccl_form_control":{"min-height":"5rem",resize:"vertical"},".bw_valid_feedback":{display:"block","font-size":"0.875rem","margin-top":"0.25rem"},".bw_invalid_feedback":{display:"block","font-size":"0.875rem","margin-top":"0.25rem"}},formChecks:{".bw_bccl_form_check":{display:"flex","align-items":"center",gap:"0.5rem","min-height":"1.5rem","margin-bottom":"0.25rem"},".bw_bccl_form_check_input":{width:"1rem",height:"1rem",margin:"0",cursor:"pointer","flex-shrink":"0","border-radius":"0.25rem",appearance:"auto"},".bw_bccl_form_check_input:disabled":{opacity:"0.5",cursor:"not-allowed"},".bw_bccl_form_check_label":{cursor:"pointer","user-select":"none","font-size":"0.9375rem"}},navigation:{".bw_bccl_navbar":{position:"relative",display:"flex","flex-wrap":"wrap","align-items":"center","justify-content":"space-between",padding:"0.5rem 1.5rem"},".bw_bccl_navbar > .bw_bccl_container, .bw_bccl_navbar > .container":{display:"flex","flex-wrap":"wrap","align-items":"center","justify-content":"space-between"},".bw_bccl_navbar_brand":{display:"inline-flex","align-items":"center",gap:"0.5rem","padding-top":"0.25rem","padding-bottom":"0.25rem","margin-right":"1.5rem","font-size":"1.125rem","font-weight":"600","line-height":"inherit","white-space":"nowrap","text-decoration":"none"},".bw_bccl_navbar_nav":{display:"flex","flex-direction":"row","padding-left":"0","margin-bottom":"0","list-style":"none",gap:"0.25rem"},".bw_bccl_navbar_nav .bw_nav_link":{display:"block","text-decoration":"none","font-size":"0.875rem","font-weight":"500"}},tables:{".bw_bccl_table":{width:"100%","margin-bottom":"1.5rem","vertical-align":"top","border-collapse":"collapse","font-size":"0.9375rem","line-height":"1.5"},".bw_bccl_table > :not(caption) > * > *":{"background-color":"transparent","border-bottom-width":"1px","border-bottom-style":"solid"},".bw_bccl_table > tbody":{"vertical-align":"inherit"},".bw_bccl_table > thead":{"vertical-align":"bottom"},".bw_bccl_table > thead > tr > *":{"font-size":"0.8125rem","font-weight":"600","text-transform":"uppercase","letter-spacing":"0.04em","border-bottom-width":"2px"},".bw_bccl_table caption":{"font-size":"0.875rem","caption-side":"bottom"},".bw_bccl_table_bordered > :not(caption) > * > *":{"border-width":"1px","border-style":"solid"},".bw_bccl_table_selectable > tbody > tr":{cursor:"pointer"},".bw_bccl_table > tbody > tr.bw_bccl_table_row_selected > *":{"background-color":"rgba(0, 102, 102, 0.1)"},".bw_bccl_table_responsive":{"overflow-x":"auto","-webkit-overflow-scrolling":"touch"}},alerts:{".bw_bccl_alert":{position:"relative","margin-bottom":"1rem",border:"1px solid transparent","font-size":"0.9375rem","line-height":"1.6"},".bw_bccl_alert_heading, .alert-heading":{color:"inherit"},".bw_bccl_alert_link, .alert-link":{"font-weight":"700"},".bw_bccl_alert_dismissible":{"padding-right":"3rem"},".bw_bccl_alert_dismissible .btn-close":{position:"absolute",top:"0",right:"0","z-index":"2",padding:"1.25rem 1rem"}},badges:{".bw_bccl_badge":{display:"inline-block","font-size":"0.875rem","font-weight":"600","line-height":"1.3","text-align":"center","white-space":"nowrap","vertical-align":"baseline",padding:"0.35rem 0.65rem","border-radius":"0.25rem"},".bw_bccl_badge:empty":{display:"none"},".bw_bccl_badge_sm":{"font-size":"0.75rem",padding:"0.25rem 0.5rem"},".bw_bccl_badge_lg":{"font-size":"1rem",padding:"0.5rem 0.875rem"},".bw_bccl_badge_pill":{"border-radius":"50rem"},".btn .badge":{position:"relative",top:"-1px"}},progress:{".bw_bccl_progress":{display:"flex",height:"1.25rem",overflow:"hidden","font-size":".875rem"},".bw_bccl_progress_bar":{display:"flex","flex-direction":"column","justify-content":"center",overflow:"hidden","text-align":"center","white-space":"nowrap","font-weight":"600"},".bw_bccl_progress_bar_striped":{"background-image":"linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)","background-size":"1rem 1rem"},".bw_bccl_progress_bar_animated":{animation:"progress-bar-stripes 1s linear infinite"},"@keyframes progress-bar-stripes":{"0%":{"background-position-x":"1rem"}}},tabs:{".bw_nav":{display:"flex","flex-wrap":"wrap","padding-left":"0","margin-bottom":"0","list-style":"none",gap:"0"},".bw_nav_item":{display:"block"},".bw_nav_tabs .bw_nav_item":{"margin-bottom":"-2px"},".bw_nav_link":{display:"block","font-size":"0.875rem","font-weight":"500",padding:"0.625rem 1rem","text-decoration":"none",cursor:"pointer",border:"none",background:"transparent","font-family":"inherit"},".bw_nav_link:focus-visible":{outline:"2px solid currentColor","outline-offset":"-2px"},".bw_nav_tabs .bw_nav_link":{border:"none","border-bottom":"2px solid transparent","border-radius":"0","background-color":"transparent"},".bw_nav_vertical":{"flex-direction":"column"},".bw_bccl_tab_content":{padding:"1.25rem 0"},".bw_bccl_tab_pane":{display:"none"},".bw_bccl_tab_pane.active":{display:"block"},".bw_nav_scrollable":{"flex-wrap":"nowrap","overflow-x":"auto","-webkit-overflow-scrolling":"touch","scrollbar-width":"none"},".bw_nav_scrollable::-webkit-scrollbar":{display:"none"},".bw_nav_scrollable .bw_nav_link":{"white-space":"nowrap"}},listGroups:{".bw_list_group":{display:"flex","flex-direction":"column","padding-left":"0","margin-bottom":"0"},".bw_list_group_item":{position:"relative",display:"block","text-decoration":"none","font-size":"0.9375rem"},".bw_list_group_item:first-child":{"border-top-left-radius":"inherit","border-top-right-radius":"inherit"},".bw_list_group_item:last-child":{"border-bottom-right-radius":"inherit","border-bottom-left-radius":"inherit"},".bw_list_group_item + .bw_list_group_item":{"border-top-width":"0"},".bw_list_group_item.disabled":{"pointer-events":"none"},"a.bw_list_group_item":{cursor:"pointer"},"a.bw_list_group_item:focus-visible, .bw_list_group_item:focus-visible":{"z-index":"2",outline:"2px solid currentColor","outline-offset":"-2px"},".bw_list_group_flush":{"border-radius":"0"},".bw_list_group_flush > .bw_list_group_item":{"border-width":"0 0 1px","border-radius":"0"},".bw_list_group_flush > .bw_list_group_item:last-child":{"border-bottom-width":"0"}},pagination:{".bw_bccl_pagination":{display:"flex","padding-left":"0","list-style":"none","margin-bottom":"0"},".bw_page_item":{display:"list-item","list-style":"none"},".bw_page_link":{position:"relative",display:"block",padding:"0.375rem 0.75rem","margin-left":"-1px","line-height":"1.25","text-decoration":"none",border:"1px solid transparent",cursor:"pointer","font-family":"inherit","font-size":"inherit",background:"none"},".bw_page_item:first-child .bw_page_link":{"margin-left":"0"},".bw_page_link:focus-visible":{"z-index":"3",outline:"2px solid currentColor","outline-offset":"-2px"}},breadcrumb:{".bw_bccl_breadcrumb":{display:"flex","flex-wrap":"wrap",padding:"0 0","margin-bottom":"1rem","list-style":"none"},".bw_bccl_breadcrumb_item":{display:"flex"},".bw_bccl_breadcrumb_item + .bw_bccl_breadcrumb_item":{"padding-left":"0.5rem"},".bw_bccl_breadcrumb_item + .bw_bccl_breadcrumb_item::before":{float:"left","padding-right":"0.5rem",content:'"/"'},".bw_bccl_breadcrumb_item a":{"text-decoration":"none"},".bw_bccl_breadcrumb_item.active":{"font-weight":"500"}},hero:{".bw_bccl_hero":{position:"relative",overflow:"hidden"},".bw_bccl_hero_overlay":{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","z-index":"1"},".bw_bccl_hero_content":{position:"relative","z-index":"2"},".bw_bccl_hero_title":{"font-weight":"300","letter-spacing":"-0.05rem",color:"inherit"},".bw_bccl_hero_subtitle":{color:"inherit"},".bw_bccl_hero_actions":{display:"flex",gap:"1rem","justify-content":"center","flex-wrap":"wrap"}},features:{".bw_feature":{padding:"1rem"},".bw_feature_icon":{display:"inline-block","margin-bottom":"1rem"},".bw_feature_title":{"margin-bottom":"0.5rem"},".bw_feature_grid":{width:"100%"},".bw_g_4":{"--bw_gutter_x":"1.5rem","--bw_gutter_y":"1.5rem"}},sections:{".bw_section":{position:"relative"},".bw_section_header":{"margin-bottom":"3rem"},".bw_section_title":{"margin-bottom":"1rem","font-weight":"300","font-size":"calc(1.325rem + .9vw)"}},cta:{".bw_cta":{position:"relative"},".bw_cta_content":{"max-width":"48rem",margin:"0 auto"},".bw_cta_title":{"font-weight":"300"},".bw_cta_actions":{display:"flex",gap:"1rem","justify-content":"center","flex-wrap":"wrap"}},spinner:{".bw_spinner_border":{display:"inline-block",width:"2rem",height:"2rem","vertical-align":"-0.125em",border:"0.25em solid currentcolor","border-right-color":"transparent","border-radius":"50%",animation:"bw_spinner_border 0.75s linear infinite"},".bw_spinner_border_sm":{width:"1rem",height:"1rem","border-width":"0.2em"},".bw_spinner_border_lg":{width:"3rem",height:"3rem","border-width":"0.3em"},".bw_spinner_border_md":{},".bw_spinner_grow":{display:"inline-block",width:"2rem",height:"2rem","vertical-align":"-0.125em","border-radius":"50%",opacity:"0",animation:"bw_spinner_grow 0.75s linear infinite"},".bw_spinner_grow_sm":{width:"1rem",height:"1rem"},".bw_spinner_grow_lg":{width:"3rem",height:"3rem"},".bw_spinner_grow_md":{},"@keyframes bw_spinner_border":{"100%":{transform:"rotate(360deg)"}},"@keyframes bw_spinner_grow":{"0%":{transform:"scale(0)"},"50%":{opacity:"1",transform:"none"}},".bw_visually_hidden":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)","white-space":"nowrap",border:"0"}},closeButton:{".bw_close":{display:"inline-flex","align-items":"center","justify-content":"center",width:"1.5rem",height:"1.5rem",padding:"0","font-size":"1.25rem","font-weight":"700","line-height":"1",background:"transparent",border:"0","border-radius":"0.25rem",cursor:"pointer",transition:"opacity 0.15s ease-out"},".bw_close:hover":{opacity:"0.75"},".bw_close:focus-visible":{outline:"2px solid currentColor","outline-offset":"2px"}},stacks:{".bw_vstack":{display:"flex","flex-direction":"column"},".bw_hstack":{display:"flex","flex-direction":"row","align-items":"center"},".bw_gap_0":{gap:"0"},".bw_gap_1":{gap:"0.25rem"},".bw_gap_2":{gap:"0.5rem"},".bw_gap_3":{gap:"1rem"},".bw_gap_4":{gap:"1.5rem"},".bw_gap_5":{gap:"3rem"}},offsets:{".bw_offset_1":{"margin-left":"8.333333%"},".bw_offset_2":{"margin-left":"16.666667%"},".bw_offset_3":{"margin-left":"25%"},".bw_offset_4":{"margin-left":"33.333333%"},".bw_offset_5":{"margin-left":"41.666667%"},".bw_offset_6":{"margin-left":"50%"},".bw_offset_7":{"margin-left":"58.333333%"},".bw_offset_8":{"margin-left":"66.666667%"},".bw_offset_9":{"margin-left":"75%"},".bw_offset_10":{"margin-left":"83.333333%"},".bw_offset_11":{"margin-left":"91.666667%"}},codeDemo:{".bw_code_demo":{"margin-bottom":"2rem"},".bw_code_pre":{margin:"0",border:"none","overflow-x":"auto","max-width":"100%"},".bw_code_block":{display:"block",padding:"1.25rem","font-family":'"SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace',"font-size":"0.8125rem","line-height":"1.6"},".bw_code_copy_btn":{position:"absolute",top:"0.5rem",right:"0.5rem",padding:"0.25rem 0.625rem","font-size":"0.6875rem",cursor:"pointer","font-family":"inherit"},".bw_copy_btn":{position:"absolute",top:"0.5rem",right:"0.5rem",padding:"0.25rem 0.625rem","font-size":"0.6875rem",cursor:"pointer","font-family":"inherit"}},buttonGroup:{".bw_bccl_btn_group, .bw_bccl_btn_group_vertical":{position:"relative",display:"inline-flex","vertical-align":"middle"},".bw_bccl_btn_group > .bw_bccl_btn, .bw_bccl_btn_group_vertical > .bw_bccl_btn":{position:"relative",flex:"1 1 auto","border-radius":"0","margin-left":"-1px"},".bw_bccl_btn_group > .bw_bccl_btn:first-child":{"margin-left":"0"},".bw_bccl_btn_group > .bw_bccl_btn:last-child":{},".bw_bccl_btn_group_lg > .bw_bccl_btn":{padding:"0.625rem 1.5rem","font-size":"1rem"},".bw_bccl_btn_group_sm > .bw_bccl_btn":{padding:"0.25rem 0.75rem","font-size":"0.8125rem"},".bw_bccl_btn_group_vertical":{"flex-direction":"column","align-items":"flex-start","justify-content":"center"},".bw_bccl_btn_group_vertical > .bw_bccl_btn":{width:"100%","margin-left":"0","margin-top":"-1px"},".bw_bccl_btn_group_vertical > .bw_bccl_btn:first-child":{"margin-top":"0"},".bw_bccl_btn_group_vertical > .bw_bccl_btn:last-child":{}},accordion:{".bw_bccl_accordion":{overflow:"hidden"},".bw_bccl_accordion_item":{border:"1px solid transparent"},".bw_bccl_accordion_item + .bw_bccl_accordion_item":{"border-top":"0"},".bw_bccl_accordion_header":{margin:"0"},".bw_bccl_accordion_button":{position:"relative",display:"flex","align-items":"center",width:"100%",padding:"0.875rem 1.25rem","font-size":"1rem","font-weight":"500","text-align":"left","background-color":"transparent",border:"0","overflow-anchor":"none",cursor:"pointer","font-family":"inherit"},".bw_bccl_accordion_button::after":{"flex-shrink":"0",width:"1.25rem",height:"1.25rem","margin-left":"auto",content:'""',"background-image":"url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e\")","background-repeat":"no-repeat","background-size":"1.25rem",transition:"transform 0.2s ease-out"},".bw_bccl_accordion_button:not(.bw_collapsed)::after":{transform:"rotate(-180deg)"},".bw_bccl_accordion_body":{padding:"1rem 1.25rem"},".bw_bccl_accordion_collapse":{"max-height":"0",overflow:"hidden",transition:"max-height 0.3s ease"},".bw_bccl_accordion_collapse.bw_collapse_show":{"max-height":"none"}},carousel:{".bw_bccl_carousel":{position:"relative",overflow:"hidden"},".bw_bccl_carousel_track":{display:"flex",height:"100%"},".bw_bccl_carousel_slide":{"min-width":"100%","flex-shrink":"0",overflow:"hidden",position:"relative",display:"flex","align-items":"center","justify-content":"center"},".bw_bccl_carousel_slide img":{width:"100%",height:"100%","object-fit":"cover"},".bw_bccl_carousel_caption":{position:"absolute",bottom:"0",left:"0",right:"0",padding:"0.75rem 1rem","font-size":"0.875rem"},".bw_bccl_carousel_control":{position:"absolute",top:"50%",transform:"translateY(-50%)",width:"40px",height:"40px",border:"none","border-radius":"50%",cursor:"pointer",display:"flex","align-items":"center","justify-content":"center","z-index":"2",padding:"0"},".bw_bccl_carousel_control img":{width:"20px",height:"20px","pointer-events":"none"},".bw_bccl_carousel_control:focus-visible":{outline:"2px solid currentColor","outline-offset":"2px"},".bw_bccl_carousel_control_prev":{left:"10px"},".bw_bccl_carousel_control_next":{right:"10px"},".bw_bccl_carousel_indicators":{position:"absolute",bottom:"12px",left:"50%",transform:"translateX(-50%)",display:"flex",gap:"6px","z-index":"2"},".bw_bccl_carousel_indicator":{width:"10px",height:"10px","border-radius":"50%",border:"2px solid transparent",padding:"0",cursor:"pointer"},".bw_bccl_carousel_indicator:hover":{opacity:"0.8"}},modal:{".bw_bccl_modal":{display:"flex","align-items":"center","justify-content":"center",position:"fixed",top:"0",left:"0",width:"100%",height:"100%","z-index":"1050","overflow-x":"hidden","overflow-y":"auto",opacity:"0",visibility:"hidden","pointer-events":"none",transition:"opacity 0.2s ease-out, visibility 0.2s ease-out"},".bw_bccl_modal.bw_bccl_modal_show":{opacity:"1",visibility:"visible","pointer-events":"auto"},".bw_bccl_modal_dialog":{position:"relative",width:"calc(100% - 1rem)","max-width":"500px",margin:"1.75rem auto","pointer-events":"none",transform:"translateY(-16px)",transition:"transform 0.2s ease-out"},".bw_bccl_modal.bw_bccl_modal_show .bw_bccl_modal_dialog":{transform:"translateY(0)"},".bw_bccl_modal_sm":{"max-width":"300px"},".bw_bccl_modal_lg":{"max-width":"800px"},".bw_bccl_modal_xl":{"max-width":"1140px"},".bw_bccl_modal_content":{position:"relative",display:"flex","flex-direction":"column","pointer-events":"auto","background-clip":"padding-box",border:"1px solid transparent",outline:"0"},".bw_bccl_modal_header":{display:"flex","align-items":"center","justify-content":"space-between",padding:"1rem 1.25rem","border-bottom":"1px solid transparent"},".bw_bccl_modal_title":{margin:"0","font-size":"1.25rem","font-weight":"600","line-height":"1.3"},".bw_bccl_modal_body":{position:"relative",flex:"1 1 auto",padding:"1rem 1.25rem"},".bw_bccl_modal_footer":{display:"flex","flex-wrap":"wrap","align-items":"center","justify-content":"flex-end",gap:"0.5rem",padding:"0.75rem 1.25rem","border-top":"1px solid transparent"}},toast:{".bw_bccl_toast_container":{position:"fixed","z-index":"1080","pointer-events":"none",display:"flex","flex-direction":"column",gap:"0.5rem",padding:"1rem"},".bw_bccl_toast_container.bw_bccl_toast_top_right":{top:"0",right:"0"},".bw_bccl_toast_container.bw_bccl_toast_top_left":{top:"0",left:"0"},".bw_bccl_toast_container.bw_bccl_toast_bottom_right":{bottom:"0",right:"0"},".bw_bccl_toast_container.bw_bccl_toast_bottom_left":{bottom:"0",left:"0"},".bw_bccl_toast_container.bw_bccl_toast_top_center":{top:"0",left:"50%",transform:"translateX(-50%)"},".bw_bccl_toast_container.bw_bccl_toast_bottom_center":{bottom:"0",left:"50%",transform:"translateX(-50%)"},".bw_bccl_toast":{"pointer-events":"auto",width:"350px","max-width":"calc(100vw - 2rem)","background-clip":"padding-box",opacity:"0",transform:"translateY(-8px)",transition:"opacity 0.2s ease-out, transform 0.2s ease-out"},".bw_bccl_toast.bw_bccl_toast_show":{opacity:"1",transform:"translateY(0)"},".bw_bccl_toast.bw_bccl_toast_hiding":{opacity:"0",transform:"translateY(-8px)"},".bw_bccl_toast_header":{display:"flex","align-items":"center","justify-content":"space-between",padding:"0.5rem 0.75rem","font-size":"0.875rem","border-bottom":"1px solid transparent"},".bw_bccl_toast_body":{padding:"0.5rem 0.75rem","font-size":"0.9375rem"}},dropdown:{".bw_bccl_dropdown":{position:"relative",display:"inline-block"},".bw_bccl_dropdown_toggle::after":{display:"inline-block","margin-left":"0.255em","vertical-align":"0.255em",content:'""',"border-top":"0.3em solid","border-right":"0.3em solid transparent","border-bottom":"0","border-left":"0.3em solid transparent"},".bw_bccl_dropdown_menu":{position:"absolute",top:"100%",left:"0","z-index":"1000",display:"block","min-width":"10rem",padding:"0.5rem 0",margin:"0.125rem 0 0","background-clip":"padding-box",border:"1px solid transparent",opacity:"0",visibility:"hidden","pointer-events":"none",transform:"translateY(-4px)",transition:"opacity 0.15s ease-out, transform 0.15s ease-out, visibility 0.15s ease-out"},".bw_bccl_dropdown_menu.bw_bccl_dropdown_show":{opacity:"1",visibility:"visible","pointer-events":"auto",transform:"translateY(0)"},".bw_bccl_dropdown_menu_end":{left:"auto",right:"0"},".bw_bccl_dropdown_item":{display:"block",width:"100%",padding:"0.4rem 1rem",clear:"both","font-weight":"400","text-align":"inherit","text-decoration":"none","white-space":"nowrap","background-color":"transparent",border:"0","font-size":"0.9375rem",cursor:"pointer"},".bw_bccl_dropdown_item:focus-visible":{outline:"2px solid currentColor","outline-offset":"-2px"},".bw_bccl_dropdown_divider":{height:"0",margin:"0.5rem 0",overflow:"hidden",opacity:"1"}},formSwitch:{".bw_bccl_form_switch":{"padding-left":"2.5em"},".bw_bccl_form_switch .bw_switch_input":{width:"2em",height:"1.125em","margin-left":"-2.5em","border-radius":"2em",appearance:"none","background-image":"url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba(255,255,255,1)'/%3e%3c/svg%3e\")","background-position":"left center","background-repeat":"no-repeat","background-size":"contain",cursor:"pointer",transition:"background-color 0.15s ease-out, background-position 0.15s ease-out, border-color 0.15s ease-out"},".bw_bccl_form_switch .bw_switch_input:checked":{"background-position":"right center"},".bw_bccl_form_switch .bw_switch_input:disabled":{opacity:"0.5",cursor:"not-allowed"}},skeleton:{".bw_skeleton":{"background-size":"400% 100%",animation:"bw_skeleton_shimmer 1.4s ease infinite"},".bw_skeleton_text":{height:"1em","margin-bottom":"0.5rem"},".bw_skeleton_circle":{"border-radius":"50%"},".bw_skeleton_rect":{},".bw_skeleton_group":{display:"flex","flex-direction":"column"},"@keyframes bw_skeleton_shimmer":{"0%":{"background-position":"100% 50%"},"100%":{"background-position":"0 50%"}}},avatar:{".bw_avatar":{display:"inline-flex","align-items":"center","justify-content":"center","border-radius":"50%",overflow:"hidden","font-weight":"600","text-transform":"uppercase","vertical-align":"middle","object-fit":"cover"},".bw_avatar_sm":{width:"2rem",height:"2rem","font-size":"0.75rem"},".bw_avatar_md":{width:"3rem",height:"3rem","font-size":"1rem"},".bw_avatar_lg":{width:"4rem",height:"4rem","font-size":"1.25rem"},".bw_avatar_xl":{width:"5rem",height:"5rem","font-size":"1.5rem"}},statCard:{".bw_stat_card":{padding:"1.25rem","border-left":"4px solid transparent","background-color":"inherit"},".bw_stat_card:hover":{transform:"translateY(-1px)"},".bw_stat_icon":{"font-size":"1.5rem","margin-bottom":"0.5rem"},".bw_stat_value":{"font-size":"2rem","font-weight":"700","line-height":"1.2"},".bw_stat_label":{"font-size":"0.875rem","margin-top":"0.25rem"},".bw_stat_change":{"font-size":"0.875rem","font-weight":"500","margin-top":"0.5rem"}},tooltip:{".bw_bccl_tooltip_wrapper":{position:"relative",display:"inline-block"},".bw_bccl_tooltip":{position:"absolute","z-index":"999","font-size":"0.875rem","white-space":"nowrap","max-width":"min(300px, calc(100vw - 1rem))","pointer-events":"none",opacity:"0",visibility:"hidden"},".bw_bccl_tooltip.bw_bccl_tooltip_show":{opacity:"1",visibility:"visible"},".bw_bccl_tooltip_top":{bottom:"100%",left:"50%",transform:"translateX(-50%) translateY(-4px)","margin-bottom":"4px"},".bw_bccl_tooltip_top.bw_bccl_tooltip_show":{transform:"translateX(-50%) translateY(0)"},".bw_bccl_tooltip_bottom":{top:"100%",left:"50%",transform:"translateX(-50%) translateY(4px)","margin-top":"4px"},".bw_bccl_tooltip_bottom.bw_bccl_tooltip_show":{transform:"translateX(-50%) translateY(0)"},".bw_bccl_tooltip_left":{right:"100%",top:"50%",transform:"translateY(-50%) translateX(-4px)","margin-right":"4px"},".bw_bccl_tooltip_left.bw_bccl_tooltip_show":{transform:"translateY(-50%) translateX(0)"},".bw_bccl_tooltip_right":{left:"100%",top:"50%",transform:"translateY(-50%) translateX(4px)","margin-left":"4px"},".bw_bccl_tooltip_right.bw_bccl_tooltip_show":{transform:"translateY(-50%) translateX(0)"}},popover:{".bw_popover_wrapper":{position:"relative",display:"inline-block"},".bw_popover_trigger":{cursor:"pointer"},".bw_popover":{position:"absolute","z-index":"1000","min-width":"200px","max-width":"min(320px, calc(100vw - 2rem))","pointer-events":"none",opacity:"0",visibility:"hidden"},".bw_popover.bw_popover_show":{opacity:"1",visibility:"visible","pointer-events":"auto"},".bw_popover_header":{"font-weight":"600","font-size":"0.9375rem"},".bw_popover_body":{"font-size":"0.875rem","line-height":"1.5"},".bw_popover_top":{bottom:"100%",left:"50%",transform:"translateX(-50%) translateY(-8px)","margin-bottom":"8px"},".bw_popover_top.bw_popover_show":{transform:"translateX(-50%) translateY(0)"},".bw_popover_bottom":{top:"100%",left:"50%",transform:"translateX(-50%) translateY(8px)","margin-top":"8px"},".bw_popover_bottom.bw_popover_show":{transform:"translateX(-50%) translateY(0)"},".bw_popover_left":{right:"100%",top:"50%",transform:"translateY(-50%) translateX(-8px)","margin-right":"8px"},".bw_popover_left.bw_popover_show":{transform:"translateY(-50%) translateX(0)"},".bw_popover_right":{left:"100%",top:"50%",transform:"translateY(-50%) translateX(8px)","margin-left":"8px"},".bw_popover_right.bw_popover_show":{transform:"translateY(-50%) translateX(0)"}},searchInput:{".bw_search_input":{position:"relative",display:"flex","align-items":"center"},".bw_search_input .bw_search_field":{"padding-right":"2.5rem"},".bw_search_clear":{position:"absolute",right:"0.5rem",display:"flex","align-items":"center","justify-content":"center",width:"1.5rem",height:"1.5rem",border:"none",background:"none","font-size":"1.25rem",cursor:"pointer",padding:"0","border-radius":"50%"},".bw_search_clear:focus-visible":{outline:"2px solid currentColor","outline-offset":"2px"}},range:{".bw_range_wrapper":{"margin-bottom":"1rem"},".bw_range_label":{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"0.5rem","font-size":"0.875rem","font-weight":"500"},".bw_range_value":{"font-weight":"600"},".bw_range":{width:"100%",height:"0.5rem",padding:"0",appearance:"none",border:"none","border-radius":"0.25rem",cursor:"pointer",outline:"none"},".bw_range:focus":{outline:"none"},".bw_range::-webkit-slider-thumb":{appearance:"none",width:"1.25rem",height:"1.25rem","border-radius":"50%","border-width":"2px","border-style":"solid",cursor:"pointer"},".bw_range::-moz-range-thumb":{width:"1.25rem",height:"1.25rem","border-radius":"50%","border-width":"2px","border-style":"solid",cursor:"pointer"},".bw_range::-webkit-slider-thumb:hover":{transform:"scale(1.15)"},".bw_range:disabled":{opacity:"0.5",cursor:"not-allowed"}},mediaObject:{".bw_media":{display:"flex","align-items":"flex-start",gap:"1rem"},".bw_media_reverse":{"flex-direction":"row-reverse"},".bw_media_img":{"border-radius":"50%","object-fit":"cover","flex-shrink":"0"},".bw_media_body":{flex:"1","min-width":"0"},".bw_media_title":{margin:"0 0 0.25rem 0","font-size":"1rem","font-weight":"600","line-height":"1.3"}},fileUpload:{".bw_file_upload":{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center",border:"2px dashed transparent",cursor:"pointer","text-align":"center",position:"relative"},".bw_file_upload_icon":{"font-size":"2rem","margin-bottom":"0.5rem"},".bw_file_upload_text":{"font-size":"0.875rem"},".bw_file_upload_input":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)",border:"0"}},timeline:{".bw_bccl_timeline":{position:"relative","padding-left":"2rem"},".bw_bccl_timeline::before":{content:'""',position:"absolute",left:"0.5rem",top:"0",bottom:"0",width:"2px"},".bw_bccl_timeline_item":{position:"relative","padding-bottom":"1.5rem"},".bw_bccl_timeline_item:last-child":{"padding-bottom":"0"},".bw_bccl_timeline_marker":{position:"absolute",left:"-1.75rem",top:"0.25rem",width:"0.75rem",height:"0.75rem","border-radius":"50%"},".bw_bccl_timeline_content":{"padding-left":"0.5rem"},".bw_bccl_timeline_date":{"font-size":"0.75rem","margin-bottom":"0.25rem","font-weight":"500"},".bw_bccl_timeline_title":{"font-size":"1rem","font-weight":"600",margin:"0 0 0.25rem 0","line-height":"1.3"},".bw_bccl_timeline_text":{"font-size":"0.875rem",margin:"0","line-height":"1.5"}},stepper:{".bw_stepper":{display:"flex",gap:"0","counter-reset":"step"},".bw_step":{flex:"1",display:"flex","flex-direction":"column","align-items":"center","text-align":"center",position:"relative"},".bw_step + .bw_step::before":{content:'""',position:"absolute",top:"1rem",left:"-50%",right:"50%",height:"2px"},".bw_step_indicator":{width:"2rem",height:"2rem","border-radius":"50%",display:"flex","align-items":"center","justify-content":"center","font-size":"0.875rem","font-weight":"600",position:"relative","z-index":"1"},".bw_step_body":{"margin-top":"0.5rem"},".bw_step_label":{"font-size":"0.875rem","font-weight":"500"},".bw_step_description":{"font-size":"0.75rem","margin-top":"0.125rem"}},chipInput:{".bw_chip_input":{display:"flex","flex-wrap":"wrap","align-items":"center",gap:"0.375rem",padding:"0.375rem 0.5rem","min-height":"2.5rem",cursor:"text"},".bw_chip":{display:"inline-flex","align-items":"center",gap:"0.25rem",padding:"0.125rem 0.5rem","border-radius":"1rem","font-size":"0.8125rem","line-height":"1.5","white-space":"nowrap"},".bw_chip_remove":{display:"inline-flex","align-items":"center","justify-content":"center",width:"1rem",height:"1rem",border:"none",background:"none","font-size":"0.875rem",cursor:"pointer",padding:"0","border-radius":"50%"},".bw_chip_remove:focus-visible":{outline:"2px solid currentColor","outline-offset":"1px"},".bw_chip_field":{flex:"1","min-width":"80px",border:"none",outline:"none","font-size":"0.875rem",padding:"0.125rem 0",background:"transparent"}},barChart:{".bw_bar_chart_container":{padding:"1rem",border:"1px solid transparent"},".bw_bar_chart":{display:"flex","align-items":"flex-end",gap:"6px",padding:"0 0.5rem"},".bw_bar_group":{flex:"1",display:"flex","flex-direction":"column","align-items":"center",height:"100%","justify-content":"flex-end"},".bw_bar":{width:"100%","border-radius":"3px 3px 0 0","min-height":"4px"},".bw_bar:hover":{opacity:"0.85"},".bw_bar_value":{"font-size":"0.65rem","font-weight":"600","margin-bottom":"2px","text-align":"center"},".bw_bar_label":{"font-size":"0.7rem","margin-top":"4px","text-align":"center"},".bw_bar_chart_title":{"font-size":"1.1rem","font-weight":"600",margin:"0 0 0.75rem 0"}},responsive:{"@media (min-width: 576px)":I("bw_col_sm"),"@media (min-width: 768px)":I("bw_col_md"),"@media (min-width: 992px)":I("bw_col_lg"),"@media (max-width: 575px)":{".bw_bccl_card_img_left, .bw_bccl_card-img-left":{width:"100%"},".bw_bccl_card_img_right, .bw_bccl_card-img-right":{width:"100%"},".bw_bccl_hero, .bw_bccl_hero":{padding:"2rem 1rem"},".bw_cta_actions, .bw_cta-actions":{"flex-direction":"column"},".bw_hstack, .bw_hstack":{"flex-direction":"column"},".bw_feature_grid, .bw_feature-grid":{"grid-template-columns":"1fr"},".bw_bccl_modal_dialog":{margin:"0.5rem auto"},".bw_bccl_modal_lg":{"max-width":"calc(100% - 1rem)"},".bw_bccl_modal_xl":{"max-width":"calc(100% - 1rem)"},".bw_bccl_navbar":{padding:"0.5rem 0.75rem"},".bw_bccl_navbar_brand":{"margin-right":"0.5rem","font-size":"1rem"},".bw_bccl_navbar_nav":{"flex-wrap":"wrap"},".bw_bccl_tooltip":{"white-space":"normal"},".bw_bccl_table":{display:"block","overflow-x":"auto","-webkit-overflow-scrolling":"touch"},".bw_col, .bw_col_1, .bw_col_2, .bw_col_3, .bw_col_4, .bw_col_5, .bw_col_6, .bw_col_7, .bw_col_8, .bw_col_9, .bw_col_10, .bw_col_11, .bw_col_12":{flex:"0 0 100%","max-width":"100%"},".bw_bccl_container":{"padding-right":"0.5rem","padding-left":"0.5rem"},".bw_bccl_container_fluid":{"padding-right":"0.5rem","padding-left":"0.5rem"}}}};function B(){var e={},t={0:"0",1:".25rem",2:".5rem",3:"1rem",4:"1.5rem",5:"3rem"};for(var r in t){var n=t[r];e[".bw_m_"+r]={margin:n+" !important"},e[".bw_mt_"+r]={"margin-top":n+" !important"},e[".bw_mb_"+r]={"margin-bottom":n+" !important"},e[".bw_ms_"+r]={"margin-left":n+" !important"},e[".bw_me_"+r]={"margin-right":n+" !important"},e[".bw_p_"+r]={padding:n+" !important"},e[".bw_pt_"+r]={"padding-top":n+" !important"},e[".bw_pb_"+r]={"padding-bottom":n+" !important"},e[".bw_ps_"+r]={"padding-left":n+" !important"},e[".bw_pe_"+r]={"padding-right":n+" !important"}}e[".bw_m_auto"]={margin:"auto !important"},e[".bw_py_3"]={"padding-top":"1rem !important","padding-bottom":"1rem !important"},e[".bw_py_4"]={"padding-top":"1.5rem !important","padding-bottom":"1.5rem !important"},e[".bw_py_5"]={"padding-top":"3rem !important","padding-bottom":"3rem !important"},e[".bw_py_6"]={"padding-top":"4rem !important","padding-bottom":"4rem !important"},e[".bw_d_none"]={display:"none"},e[".bw_d_block"]={display:"block"},e[".bw_d_inline"]={display:"inline"},e[".bw_d_inline_block"]={display:"inline-block"},e[".bw_d_flex"]={display:"flex"},e[".bw_text_left"]={"text-align":"left"},e[".bw_text_right"]={"text-align":"right"},e[".bw_text_center"]={"text-align":"center"},e[".bw_text_justify"]={"text-align":"justify"},e[".bw_fw_bold"]={"font-weight":"700"},e[".bw_fw_semibold"]={"font-weight":"600"},e[".bw_fw_normal"]={"font-weight":"400"},e[".bw_fw_light"]={"font-weight":"300"},e[".bw_fst_italic"]={"font-style":"italic"},e[".bw_fst_normal"]={"font-style":"normal"},e[".bw_text_underline"]={"text-decoration":"underline"},e[".bw_text_line_through"]={"text-decoration":"line-through"},e[".bw_text_decoration_none"]={"text-decoration":"none"},e[".bw_text_uppercase"]={"text-transform":"uppercase"},e[".bw_text_lowercase"]={"text-transform":"lowercase"},e[".bw_text_capitalize"]={"text-transform":"capitalize"},e[".bw_text_wrap"]={"white-space":"normal"},e[".bw_text_nowrap"]={"white-space":"nowrap"},e[".bw_fs_sm"]={"font-size":"0.875rem"},e[".bw_fs_base"]={"font-size":"1rem"},e[".bw_fs_lg"]={"font-size":"1.25rem"},e[".bw_fs_xl"]={"font-size":"1.5rem"};var a={start:"flex-start",end:"flex-end",center:"center",between:"space-between",around:"space-around"};for(var o in a)e[".bw_justify_content_"+o]={"justify-content":a[o]};var i={start:"flex-start",end:"flex-end",center:"center"};for(var c in i)e[".bw_align_items_"+c]={"align-items":i[c]};e[".bw_border"]={border:"1px solid transparent !important"},e[".bw_border_0"]={border:"0 !important"},e[".bw_border_top_0"]={"border-top":"0 !important"},e[".bw_border_end_0"]={"border-right":"0 !important"},e[".bw_border_bottom_0"]={"border-bottom":"0 !important"},e[".bw_border_start_0"]={"border-left":"0 !important"},e[".bw_rounded"]={"border-radius":".375rem !important"},e[".bw_rounded_0"]={"border-radius":"0 !important"},e[".bw_rounded_1"]={"border-radius":".25rem !important"},e[".bw_rounded_2"]={"border-radius":".375rem !important"},e[".bw_rounded_3"]={"border-radius":".5rem !important"},e[".bw_rounded_circle"]={"border-radius":"50% !important"},e[".bw_rounded_pill"]={"border-radius":"50rem !important"},e[".bw_shadow"]={"box-shadow":"0 .5rem 1rem rgba(0,0,0,.15) !important"},e[".bw_shadow_sm"]={"box-shadow":"0 .125rem .25rem rgba(0,0,0,.075) !important"},e[".bw_shadow_lg"]={"box-shadow":"0 1rem 3rem rgba(0,0,0,.175) !important"},e[".bw_shadow_none"]={"box-shadow":"none !important"},["25","50","75","100"].forEach(function(t){e[".bw_w_"+t]={width:t+"% !important"},e[".bw_h_"+t]={height:t+"% !important"}}),e[".bw_w_auto"]={width:"auto !important"},e[".bw_h_auto"]={height:"auto !important"},e[".bw_mw_100"]={"max-width":"100% !important"},e[".bw_mh_100"]={"max-height":"100% !important"},["static","relative","absolute","fixed","sticky"].forEach(function(t){e[".bw_position_"+t]={position:t+" !important"}}),e[".bw_top_0"]={top:"0 !important"},e[".bw_top_50"]={top:"50% !important"},e[".bw_top_100"]={top:"100% !important"},e[".bw_bottom_0"]={bottom:"0 !important"},e[".bw_bottom_50"]={bottom:"50% !important"},e[".bw_bottom_100"]={bottom:"100% !important"},e[".bw_start_0"]={left:"0 !important"},e[".bw_start_50"]={left:"50% !important"},e[".bw_start_100"]={left:"100% !important"},e[".bw_end_0"]={right:"0 !important"},e[".bw_end_50"]={right:"50% !important"},e[".bw_end_100"]={right:"100% !important"},e[".bw_translate_middle"]={transform:"translate(-50%, -50%) !important"},["auto","hidden","visible","scroll"].forEach(function(t){e[".bw_overflow_"+t]={overflow:t+" !important"}});var l=function(e,t){var r={};return r[e]=t+" !important",r};for(var s in[["fs",{xs:"0.75rem",sm:"0.875rem",base:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem"},"font-size"],["fw",{light:"300",normal:"400",medium:"500",semibold:"600",bold:"700"},"font-weight"],["lh",{tight:"1.25",normal:"1.5",relaxed:"1.75"},"line-height"]].forEach(function(t){for(var r in t[1])e[".bw_"+t[0]+"_"+r]=l(t[2],t[1][r])}),e[".bw_list_unstyled"]={"padding-left":"0","list-style":"none"},e[".bw_list_inline"]={"padding-left":"0","list-style":"none"},e[".bw_list_inline_item"]={display:"inline-block"},e[".bw_list_inline_item:not(:last-child)"]={"margin-right":".5rem"},e[".bw_flex"]={display:"flex"},e[".bw_flex_column"]={"flex-direction":"column"},e[".bw_flex_wrap"]={"flex-wrap":"wrap"},e[".bw_flex_center"]={display:"flex","align-items":"center","justify-content":"center"},t)e[".bw_gap_"+s]={gap:t[s]+" !important"};return e[".bw_visible"]={visibility:"visible !important"},e[".bw_invisible"]={visibility:"hidden !important"},["all","auto","none"].forEach(function(t){e[".bw_user_select_"+t]={"user-select":t+" !important"}}),e[".bw_pe_none"]={"pointer-events":"none !important"},e[".bw_pe_auto"]={"pointer-events":"auto !important"},e[".bw_opacity_0"]={opacity:"0 !important"},e[".bw_opacity_25"]={opacity:".25 !important"},e[".bw_opacity_50"]={opacity:".5 !important"},e[".bw_opacity_75"]={opacity:".75 !important"},e[".bw_opacity_100"]={opacity:"1 !important"},e}function q(){return function(){for(var e={},t=Object.keys(T),r=0;r<t.length;r++)Object.assign(e,T[t[r]]);return Object.assign(e,B()),e["@media (prefers-reduced-motion: reduce)"]={"*, *::before, *::after":{"animation-duration":"0.01ms !important","animation-iteration-count":"1 !important","transition-duration":"0.01ms !important","scroll-behavior":"auto !important"}},e}()}function U(e,t,r){var n={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a))if("@"===a.charAt(0)){var o=e[a];if(/^@keyframes\s/.test(a))n[a]=o;else{var i={};for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(i[D(c,t)]=o[c]);n[a]=i}}else n[D(a,t)]=e[a];return n}function D(e,t){for(var r=e.split(","),n=[],a=0;a<r.length;a++)n.push(t+" "+r[a].trim());return n.join(", ")}function R(e,t){if(null===e)return"null";const r=typeof e;if("object"!==r)return r;if(t)return r;const n=Object.prototype.toString.call(e),a={"[object Array]":"array","[object Date]":"Date","[object RegExp]":"RegExp","[object Error]":"Error","[object Promise]":"Promise","[object Map]":"Map","[object Set]":"Set","[object WeakMap]":"WeakMap","[object WeakSet]":"WeakSet","[object ArrayBuffer]":"ArrayBuffer","[object DataView]":"DataView","[object Int8Array]":"Int8Array","[object Uint8Array]":"Uint8Array","[object Uint8ClampedArray]":"Uint8ClampedArray","[object Int16Array]":"Int16Array","[object Uint16Array]":"Uint16Array","[object Int32Array]":"Int32Array","[object Uint32Array]":"Uint32Array","[object Float32Array]":"Float32Array","[object Float64Array]":"Float64Array"};return a[n]?a[n]:e._bw_type?e._bw_type:e.constructor&&e.constructor.name?e.constructor.name:r}function P(e){return"array"!==R(e)?[]:e.filter((e,t,r)=>r.indexOf(e)===t)}function H(e){var t=e.indexOf("?");return t>=0&&(e=e.substring(0,t)),(e=e.replace(/\/\/+/g,"/")).length>1&&"/"===e.charAt(e.length-1)&&(e=e.substring(0,e.length-1)),e||"/"}function F(e){var t=e.indexOf("?");if(t<0)return{};for(var r={},n=e.substring(t+1).split("&"),a=0;a<n.length;a++){var o=n[a].split("=");o[0]&&(r[decodeURIComponent(o[0])]=o.length>1?decodeURIComponent(o[1]):"")}return r}function Y(e,t){for(var r=F(t),n=H(t),a="/"===n?[""]:n.split("/"),o=null,i=0;i<e.length;i++){var c=e[i],l=c.pattern;if("*"!==l)if(l.length>1&&"/*"===l.substring(l.length-2)){var s=l.substring(0,l.length-2),b=""===s?[""]:s.split("/");if(a.length<b.length)continue;for(var d={},_=!0,u=0;u<b.length;u++)if(":"===b[u].charAt(0))d[b[u].substring(1)]=a[u];else if(b[u]!==a[u]){_=!1;break}if(_)return d._rest=a.slice(b.length).join("/"),d._query=r,{handler:c.handler,params:d}}else{var p="/"===l?[""]:l.split("/");if(p.length===a.length){for(var m={},f=!0,w=0;w<p.length;w++)if(":"===p[w].charAt(0))m[p[w].substring(1)]=a[w];else if(p[w]!==a[w]){f=!1;break}if(f)return m._query=r,{handler:c.handler,params:m}}}else o=c}return o?{handler:o.handler,params:{_query:r}}:null}function J(e){return e?0===e.indexOf("outline")?"bw_bccl_btn_outline bw_"+e.replace(/^outline[_-]/,""):"bw_"+e:""}function G(e={}){const{title:t,subtitle:r,content:n,footer:a,header:o,image:i,imagePosition:c="top",variant:l,bordered:s=!0,shadow:b,hoverable:d=!1,className:_="",style:u,headerClass:p="",bodyClass:m="",footerClass:f=""}=e,w=["bw_bccl_card",J(l),b&&{none:"",sm:"bw_shadow_sm",md:"bw_shadow",lg:"bw_shadow_lg"}[b]||"",s?"":"bw_border_0",d?"bw_bccl_card_hoverable":"",_].filter(Boolean).join(" ").trim(),h=[o&&{t:"div",a:{class:`bw_bccl_card_header ${p}`.trim()},c:o},i&&("top"===c||"left"===c)&&{t:"img",a:{class:`bw_bccl_card_img_${c}`,src:i.src,alt:i.alt||""}},{t:"div",a:{class:`bw_bccl_card_body ${m}`.trim()},c:[t&&{t:"h5",a:{class:"bw_bccl_card_title"},c:t},r&&{t:"h6",a:{class:"bw_bccl_card_subtitle bw_mb_2 bw_text_muted"},c:r},n&&(Array.isArray(n)?n:[n])].flat().filter(Boolean)},i&&("bottom"===c||"right"===c)&&{t:"img",a:{class:`bw_bccl_card_img_${c}`,src:i.src,alt:i.alt||""}},a&&{t:"div",a:{class:`bw_bccl_card_footer ${f}`.trim()},c:a}].filter(Boolean);return!i||"left"!==c&&"right"!==c?{t:"div",a:{class:w,style:u},c:h,o:{type:"card",state:e.state||{},slots:{title:".bw_bccl_card_title",content:".bw_bccl_card_body",footer:".bw_bccl_card_footer"}}}:{t:"div",a:{class:w,style:u},c:{t:"div",a:{class:"bw_row bw_g_0"},c:h},o:{type:"card",state:e.state||{},slots:{title:".bw_bccl_card_title",content:".bw_bccl_card_body",footer:".bw_bccl_card_footer"}}}}function X(e={}){"string"==typeof e&&(e={text:e});const{text:t,variant:r="primary",size:n,disabled:a=!1,onclick:o,action:i,type:c="button",className:l="",style:s}=e;return{t:"button",a:{type:c,class:["bw_bccl_btn",J(r),n&&`bw_bccl_btn_${n}`,i&&"bw_act_"+i,l].filter(Boolean).join(" "),disabled:a,onclick:o,style:s},c:t,o:{type:"button"}}}function V(e={}){const{fluid:t=!1,children:r,className:n=""}=e;return{t:"div",a:{class:`bw_bccl_container${t?"-fluid":""} ${n}`.trim()},c:r}}function W(e={}){const{children:t,className:r="",gap:n}=e;return{t:"div",a:{class:`bw_bccl_row bw_row ${n?`bw_g_${n}`:""} ${r}`.trim()},c:t}}function K(e={}){const{size:t,offset:r,push:n,pull:a,content:o,children:i,className:c=""}=e,l=[];return"object"==typeof t?Object.entries(t).forEach(([e,t])=>{"xs"===e?l.push(`bw_col_${t}`):l.push(`bw_col_${e}_${t}`)}):t?l.push(`bw_col_${t}`):l.push("bw_col"),r&&l.push(`bw_offset_${r}`),n&&l.push(`bw_push_${n}`),a&&l.push(`bw_pull_${a}`),{t:"div",a:{class:`bw_bccl_col ${l.join(" ")} ${c}`.trim()},c:o||i}}function Z(e={}){const{items:t=[],pills:r=!1,vertical:n=!1,className:a=""}=e;return{t:"ul",a:{class:`bw_bccl_nav bw_nav ${r?"bw_nav_pills":"bw_nav_tabs"} ${n?"bw_nav_vertical":""} ${a}`.trim()},c:t.map(e=>({t:"li",a:{class:"bw_nav_item"},c:{t:"a",a:{href:e.href||"#",class:`bw_nav_link ${e.active?"active":""} ${e.disabled?"disabled":""}`.trim()},c:e.text}}))}}function Q(e={}){const{brand:t,brandHref:r="#",items:n=[],dark:a=!0,className:o=""}=e;return{t:"nav",a:{class:`bw_bccl_navbar ${a?"bw_bccl_navbar_dark":"bw_bccl_navbar_light"} ${o}`.trim()},c:{t:"div",a:{class:"bw_container"},c:[t&&{t:"a",a:{href:r,class:"bw_bccl_navbar_brand"},c:t},n.length>0&&{t:"div",a:{class:"bw_bccl_navbar_nav"},c:n.map(e=>({t:"a",a:{href:e.href||"#",class:"bw_nav_link "+(e.active?"active":"")},c:e.text}))}].filter(Boolean)},o:{type:"navbar",state:{activeItem:n.findIndex(e=>e.active)}}}}function ee(e={}){const{tabs:t=[],activeIndex:r=0}=e;let n=r;function a(e,t){var r=e.querySelectorAll(".bw_nav_link"),n=e.querySelectorAll(".bw_bccl_tab_pane");t<0||t>=r.length||(r.forEach(function(e){e.classList.remove("active"),e.setAttribute("aria-selected","false"),e.setAttribute("tabindex","-1")}),n.forEach(function(e){e.classList.remove("active")}),r[t].classList.add("active"),r[t].setAttribute("aria-selected","true"),r[t].setAttribute("tabindex","0"),n[t].classList.add("active"),e._bw_state&&(e._bw_state.activeIndex=t))}return t.forEach((e,t)=>{e.active&&(n=t)}),{t:"div",a:{class:"bw_bccl_tabs"},c:[{t:"ul",a:{class:"bw_nav bw_nav_tabs",role:"tablist"},c:t.map((e,t)=>({t:"li",a:{class:"bw_nav_item",role:"presentation"},c:{t:"button",a:{class:"bw_nav_link "+(t===n?"active":""),type:"button",role:"tab",tabindex:t===n?"0":"-1","aria-selected":t===n?"true":"false",onclick:e=>{a(e.target.closest(".bw_bccl_tabs"),t)}},c:e.label}}))},{t:"div",a:{class:"bw_bccl_tab_content"},c:t.map((e,t)=>({t:"div",a:{class:"bw_bccl_tab_pane "+(t===n?"active":""),role:"tabpanel"},c:e.content}))}],o:{type:"tabs",state:{activeIndex:n},handle:{setActiveTab:a,getActiveTab:function(e){return e._bw_state&&e._bw_state.activeIndex||0}},mounted:function(e){var t=e.querySelector('[role="tablist"]');t&&t.addEventListener("keydown",function(e){for(var r=t.querySelectorAll('[role="tab"]'),n=-1,a=0;a<r.length;a++)if(r[a]===e.target){n=a;break}if(-1!==n){var o=-1;"ArrowLeft"===e.key||"ArrowUp"===e.key?(e.preventDefault(),o=n>0?n-1:r.length-1):"ArrowRight"===e.key||"ArrowDown"===e.key?(e.preventDefault(),o=n<r.length-1?n+1:0):"Home"===e.key?(e.preventDefault(),o=0):"End"===e.key&&(e.preventDefault(),o=r.length-1),o>=0&&(r[o].focus(),r[o].click())}})}}}}function te(e={}){"string"==typeof e&&(e={content:e});const{content:t,variant:r="info",dismissible:n=!1,className:a=""}=e;return{t:"div",a:{class:`bw_bccl_alert ${J(r)} ${n?"bw_bccl_alert_dismissible":""} ${a}`.trim(),role:"alert"},c:[t,n&&{t:"button",a:{type:"button",class:"bw_close","aria-label":"Close",onclick:function(e){var t=e.target.closest(".bw_bccl_alert");t&&t.remove()}},c:"×"}].filter(Boolean),o:{type:"alert",handle:{dismiss:function(e){e&&e.parentNode&&e.parentNode.removeChild(e)}}}}}function re(e={}){"string"==typeof e&&(e={text:e});const{text:t,variant:r="primary",size:n,pill:a=!1,className:o=""}=e,i="sm"===n?" bw_bccl_badge_sm":"lg"===n?" bw_bccl_badge_lg":"";return{t:"span",a:{class:`bw_bccl_badge ${J(r)}${i} ${a?"bw_bccl_badge_pill":""} ${o}`.trim()},c:t}}function ne(e={}){const{value:t=0,max:r=100,variant:n="primary",striped:a=!1,animated:o=!1,label:i,height:c}=e,l=Math.round(t/r*100);return{t:"div",a:{class:"bw_bccl_progress",style:c?{height:`${c}px`}:void 0},c:{t:"div",a:{class:["bw_bccl_progress_bar",J(n),a&&"bw_bccl_progress_bar_striped",o&&"bw_bccl_progress_bar_animated"].filter(Boolean).join(" "),role:"progressbar",style:{width:`${l}%`},"aria-valuenow":t,"aria-valuemin":0,"aria-valuemax":r},c:i||`${l}%`},o:{type:"progress",handle:{setValue:function(e,t){var r=e.querySelector(".bw_bccl_progress_bar");if(r){var n=parseInt(r.getAttribute("aria-valuemax"))||100,a=Math.round(t/n*100);r.style.width=a+"%",r.setAttribute("aria-valuenow",t),r.textContent=a+"%"}},getValue:function(e){var t=e.querySelector(".bw_bccl_progress_bar");return t&&parseInt(t.getAttribute("aria-valuenow"))||0}}}}}function ae(e={}){const{items:t=[],flush:r=!1,interactive:n=!1}=e;return{t:"div",a:{class:("bw_bccl_listGroup bw_list_group "+(r?"bw_list_group_flush":"")).trim()},c:t.map(e=>{const t="object"==typeof e,r=t?e.text:e,a=!!t&&e.active,o=!!t&&e.disabled,i=t?e.href:null,c=t?e.onclick:null;return n||i||c?{t:"a",a:{class:["bw_list_group_item",a&&"active",o&&"disabled"].filter(Boolean).join(" "),href:i||"#",onclick:c||(e=>{i||e.preventDefault()}),style:o?"pointer-events: none; opacity: 0.65;":""},c:r}:{t:"div",a:{class:["bw_list_group_item",a&&"active",o&&"disabled"].filter(Boolean).join(" ")},c:r}})}}function oe(e={}){const{items:t=[]}=e;return{t:"nav",a:{"aria-label":"breadcrumb",class:"bw_bccl_breadcrumb"},c:{t:"ol",a:{class:"bw_breadcrumb"},c:t.map((e,t)=>({t:"li",a:{class:"bw_breadcrumb_item "+(e.active?"active":""),"aria-current":e.active?"page":void 0},c:e.active?e.text:{t:"a",a:{href:e.href||"#"},c:e.text}}))}}}function ie(e={}){const{children:t,fields:r,onsubmit:n,className:a=""}=e;if(!r)return{t:"form",a:{class:`bw_bccl_form ${a}`.trim(),onsubmit:n||(e=>e.preventDefault())},c:t};var o={},i=r.map(function(e){var t="bw_field_"+Math.random().toString(36).substr(2,9);o[e.name]=t;var r="textarea"===e.type?"textarea":"select"===e.type?"select":"input",n={id:t,name:e.name,class:"bw_bccl_form_control"};return"input"===r&&(n.type=e.type||"text"),e.required&&(n.required=!0),e.placeholder&&(n.placeholder=e.placeholder),{t:"div",a:{class:"bw_bccl_form_group"},c:[e.label&&{t:"label",a:{for:t,class:"bw_bccl_form_label"},c:e.required?[e.label,{t:"span",a:{class:"bw_text_danger bw_ms_1"},c:"*"}]:e.label},{t:r,a:n}].filter(Boolean)}});return{t:"form",a:{class:`bw_bccl_form ${a}`.trim(),onsubmit:n||(e=>e.preventDefault())},c:i,o:{type:"form",handle:{getValues:function(e){var t={};return r.forEach(function(r){var n=e.querySelector('[name="'+r.name+'"]');if(n){var a=n.value;"number"===r.type&&""!==a&&void 0!==a&&(a=Number(a)),t[r.name]=a}}),t},setValues:function(e,t){"object"==typeof t&&Object.keys(t).forEach(function(r){var n=e.querySelector('[name="'+r+'"]');n&&(n.value=t[r])})},validate:function(e){var t=!0;return r.forEach(function(r){var n=e.querySelector('[name="'+r.name+'"]');if(n){n.removeAttribute("aria-invalid"),n.removeAttribute("aria-describedby");var a=n.parentNode.querySelector(".bw_bccl_form_error");a&&a.parentNode.removeChild(a);var o=!0;if(!r.required||n.value&&""!==n.value.trim()||(o=!1),!o){t=!1,n.setAttribute("aria-invalid","true");var i="bw_err_"+r.name+"_"+Math.random().toString(36).substr(2,6);n.setAttribute("aria-describedby",i);var c=document.createElement("div");c.id=i,c.className="bw_bccl_form_error bw_invalid_feedback",c.textContent=(r.label||r.name)+" is required",n.parentNode.appendChild(c)}}}),{valid:t}},setErrors:function(e,t){"object"==typeof t&&Object.keys(t).forEach(function(r){var n=e.querySelector('[name="'+r+'"]');if(n){n.setAttribute("aria-invalid","true");var a="bw_err_"+r+"_"+Math.random().toString(36).substr(2,6);n.setAttribute("aria-describedby",a);var o=document.createElement("div");o.id=a,o.className="bw_bccl_form_error bw_invalid_feedback",o.textContent=t[r],n.parentNode.appendChild(o)}})}}}}}function ce(e={}){var{label:t,input:r,help:n,id:a,validation:o,feedback:i,required:c}=e,l=r;if(o&&r&&r.a){l={t:r.t,a:Object.assign({},r.a),c:r.c,o:r.o};var s="valid"===o?"bw_is_valid":"invalid"===o?"bw_is_invalid":"";s&&(l.a.class=((l.a.class||"")+" "+s).trim())}return{t:"div",a:{class:"bw_bccl_form_group"},c:[t&&{t:"label",a:{for:a,class:"bw_bccl_form_label"},c:c?[t,{t:"span",a:{class:"bw_text_danger bw_ms_1"},c:"*"}]:t},l,i&&o&&{t:"div",a:{class:"valid"===o?"bw_valid_feedback":"bw_invalid_feedback"},c:i},n&&{t:"small",a:{class:"bw_bccl_form_text bw_text_muted"},c:n}].filter(Boolean)}}function le(e={}){const{type:t="text",placeholder:r,value:n,id:a,name:o,disabled:i=!1,readonly:c=!1,required:l=!1,className:s="",style:b,...d}=e;return{t:"input",a:{type:t,class:`bw_bccl_form_control ${s}`.trim(),placeholder:r,value:n,id:a,name:o,style:b,disabled:i,readonly:c,required:l,...d}}}function se(e={}){const{placeholder:t,value:r,rows:n=3,id:a,name:o,disabled:i=!1,readonly:c=!1,required:l=!1,className:s="",...b}=e;return{t:"textarea",a:{class:`bw_bccl_form_control ${s}`.trim(),placeholder:t,rows:n,id:a,name:o,disabled:i,readonly:c,required:l,...b},c:r}}function be(e={}){const{options:t=[],value:r,id:n,name:a,disabled:o=!1,required:i=!1,className:c="",...l}=e;return{t:"select",a:{class:`bw_bccl_form_control ${c}`.trim(),id:n,name:a,disabled:o,required:i,...l},c:t.map(e=>({t:"option",a:{value:e.value,selected:e.value===r},c:e.text||e.value}))}}function de(e={}){const{label:t,checked:r=!1,id:n,name:a,disabled:o=!1,value:i,className:c="",...l}=e;return{t:"div",a:{class:`bw_bccl_form_check ${c}`.trim()},c:[{t:"input",a:{type:"checkbox",class:"bw_bccl_form_check_input",checked:r,id:n,name:a,disabled:o,value:i,...l}},t&&{t:"label",a:{class:"bw_bccl_form_check_label",for:n},c:t}].filter(Boolean)}}function _e(e={}){const{children:t,direction:r="vertical",gap:n=3,className:a=""}=e;return{t:"div",a:{class:`bw_bccl_stack bw_${"vertical"===r?"vstack":"hstack"} bw_gap_${n} ${a}`.trim()},c:t}}function ue(e={}){const{variant:t="primary",size:r="md",type:n="border"}=e;return{t:"div",a:{class:`bw_bccl_spinner bw_spinner_${n} bw_spinner_${n}-${r} ${J(t)}`,role:"status"},c:{t:"span",a:{class:"bw_visually_hidden"},c:"Loading..."}}}function pe(e={}){const{title:t,subtitle:r,content:n,variant:a="primary",size:o="lg",centered:i=!0,overlay:c=!1,backgroundImage:l,actions:s,className:b=""}=e,d={sm:"bw_py_3",md:"bw_py_4",lg:"bw_py_5",xl:"bw_py_6"};return{t:"section",a:{class:`bw_bccl_hero ${J(a)} ${d[o]||d.lg} ${i?"bw_text_center":""} ${b}`.trim(),style:l?`background-image: url('${l}'); background-size: cover; background-position: center;`:void 0},c:[c&&{t:"div",a:{class:"bw_bccl_hero_overlay"}},{t:"div",a:{class:"bw_container"},c:{t:"div",a:{class:"bw_bccl_hero_content"},c:[t&&{t:"h1",a:{class:"bw_bccl_hero_title bw_display_4 bw_mb_3"},c:t},r&&{t:"p",a:{class:"bw_bccl_hero_subtitle bw_lead bw_mb_4"},c:r},n,s&&{t:"div",a:{class:"bw_bccl_hero_actions bw_mt_4"},c:s}].filter(Boolean)}}].filter(Boolean)}}function me(e={}){const{features:t=[],columns:r=3,centered:n=!0,iconSize:a="3rem",className:o=""}=e,i="bw_col_md_"+12/r;return{t:"div",a:{class:`bw_bccl_featureGrid bw_feature_grid ${o}`.trim()},c:{t:"div",a:{class:"bw_row bw_g_4"},c:t.map(e=>({t:"div",a:{class:i},c:{t:"div",a:{class:"bw_feature "+(n?"bw_text_center":"")},c:[e.icon&&{t:"div",a:{class:"bw_feature_icon bw_mb_3 bw_text_primary",style:`font-size: ${a};`},c:e.icon},e.title&&{t:"h3",a:{class:"bw_feature_title bw_h5 bw_mb_2"},c:e.title},e.description&&{t:"p",a:{class:"bw_feature_description bw_text_muted"},c:e.description}].filter(Boolean)}}))}}}function fe(e={}){const{title:t,description:r,actions:n,variant:a="light",centered:o=!0,className:i=""}=e;return{t:"section",a:{class:`bw_bccl_cta bw_cta bw_bg_${a} bw_py_5 ${i}`.trim()},c:{t:"div",a:{class:"bw_container"},c:{t:"div",a:{class:"bw_cta_content "+(o?"bw_text_center":"")},c:[t&&{t:"h2",a:{class:"bw_cta_title bw_mb_3"},c:t},r&&{t:"p",a:{class:"bw_cta_description bw_lead bw_mb_4"},c:r},n&&{t:"div",a:{class:"bw_cta_actions"},c:n}].filter(Boolean)}}}}function we(e={}){const{title:t,subtitle:r,content:n,variant:a="default",spacing:o="md",className:i=""}=e,c={sm:"bw_py_3",md:"bw_py_4",lg:"bw_py_5",xl:"bw_py_6"};return{t:"section",a:{class:`bw_bccl_section bw_section ${c[o]||c.md} ${"default"!==a?`bw_bg_${a}`:""} ${i}`.trim()},c:{t:"div",a:{class:"bw_container"},c:[(t||r)&&{t:"div",a:{class:"bw_section_header bw_text_center bw_mb_5"},c:[t&&{t:"h2",a:{class:"bw_section_title"},c:t},r&&{t:"p",a:{class:"bw_section_subtitle bw_text_muted"},c:r}].filter(Boolean)},n].filter(Boolean)}}}function he(e={}){const{title:t,description:r,code:n,result:a,language:o="javascript"}=e;Math.random().toString(36).substr(2,9);const i=[{label:"Result",active:!0,content:a}];n&&i.push({label:"Code",content:{t:"div",a:{style:"position: relative;"},c:[{t:"button",a:{class:"bw_copy_btn bw_code_copy_btn",onclick:function(e){navigator.clipboard.writeText(n).then(function(){var t=e.target,r=t.textContent;t.textContent="Copied!",t.classList.add("bw_code_copy_btn_copied"),setTimeout(function(){t.textContent=r,t.classList.remove("bw_code_copy_btn_copied")},2e3)})}},c:"Copy"},"undefined"!=typeof globalThis&&void 0!==globalThis.bw&&"function"==typeof globalThis.bw.codeEditor?globalThis.bw.codeEditor({code:n,lang:"javascript"===o?"js":o,readOnly:!0,height:"auto"}):{t:"pre",a:{class:"bw_code_pre"},c:{t:"code",a:{class:`bw_code_block language-${o}`},c:n}}]}});return{t:"div",a:{class:"bw_bccl_codeDemo bw_code_demo"},c:[t&&{t:"h3",c:t},r&&{t:"p",a:{class:"bw_text_muted bw_mb_3"},c:r},ee({tabs:i})].filter(Boolean)}}function ge(e={}){const{pages:t=1,currentPage:r=1,onPageChange:n,size:a,className:o=""}=e;function i(e){return function(a){a.preventDefault(),e<1||e>t||e===r||n&&n(e)}}const c=[];c.push({t:"li",a:{class:("bw_page_item "+(r<=1?"bw_disabled":"")).trim()},c:{t:"button",a:{class:"bw_page_link",type:"button",onclick:i(r-1),"aria-label":"Previous",disabled:r<=1||void 0},c:"‹"}});for(var l=1;l<=t;l++)(function(e){c.push({t:"li",a:{class:("bw_page_item "+(e===r?"bw_active":"")).trim()},c:{t:"button",a:{class:"bw_page_link",type:"button",onclick:i(e),"aria-current":e===r?"page":void 0},c:""+e}})})(l);return c.push({t:"li",a:{class:("bw_page_item "+(r>=t?"bw_disabled":"")).trim()},c:{t:"button",a:{class:"bw_page_link",type:"button",onclick:i(r+1),"aria-label":"Next",disabled:r>=t||void 0},c:"›"}}),{t:"nav",a:{"aria-label":"Pagination"},c:{t:"ul",a:{class:`bw_bccl_pagination ${a?"bw_bccl_pagination_"+a:""} ${o}`.trim()},c:c},o:{type:"pagination",state:{currentPage:r,pages:t},handle:{setPage:function(e,r){if(!(r<1||r>t)){for(var a=e.querySelectorAll(".bw_page_item"),o=0;o<a.length;o++)a[o].classList.remove("bw_active");a[r]&&a[r].classList.add("bw_active"),e._bw_state&&(e._bw_state.currentPage=r),n&&n(r)}},getPage:function(e){return e._bw_state&&e._bw_state.currentPage||1}}}}}function ve(e={}){const{label:t,name:r,value:n,checked:a=!1,id:o,disabled:i=!1,className:c="",...l}=e;return{t:"div",a:{class:`bw_bccl_form_check ${c}`.trim()},c:[{t:"input",a:{type:"radio",class:"bw_bccl_form_check_input",name:r,value:n,checked:a,id:o,disabled:i,...l}},t&&{t:"label",a:{class:"bw_bccl_form_check_label",for:o},c:t}].filter(Boolean)}}function ye(e={}){const{children:t,size:r,vertical:n=!1,className:a=""}=e;return{t:"div",a:{class:`${n?"bw_bccl_btn_group_vertical":"bw_bccl_btn_group"} ${r?"bw_bccl_btn_group_"+r:""} ${a}`.trim(),role:"group"},c:t}}function xe(e={}){const{items:t=[],multiOpen:r=!1,className:n=""}=e;return{t:"div",a:{class:`bw_bccl_accordion ${n}`.trim()},c:t.map(function(e,t){var n="bw_acc_panel_"+Math.random().toString(36).substr(2,9)+"_"+t;return{t:"div",a:{class:"bw_bccl_accordion_item"},c:[{t:"h2",a:{class:"bw_bccl_accordion_header"},c:{t:"button",a:{class:("bw_bccl_accordion_button "+(e.open?"":"bw_collapsed")).trim(),type:"button","aria-expanded":e.open?"true":"false","aria-controls":n,onclick:function(e){var t=e.target.closest(".bw_bccl_accordion_button"),n=t.closest(".bw_bccl_accordion"),a=t.closest(".bw_bccl_accordion_item"),o=a.querySelector(".bw_bccl_accordion_collapse"),i=o.classList.contains("bw_collapse_show");if(!r)for(var c=n.querySelectorAll(".bw_bccl_accordion_item"),l=0;l<c.length;l++)if(c[l]!==a){var s=c[l].querySelector(".bw_bccl_accordion_collapse"),b=c[l].querySelector(".bw_bccl_accordion_button");s.classList.contains("bw_collapse_show")&&(s.style.maxHeight=s.scrollHeight+"px",s.offsetHeight,s.style.maxHeight="0px",s.classList.remove("bw_collapse_show"),b.classList.add("bw_collapsed"),b.setAttribute("aria-expanded","false"))}if(i)o.style.maxHeight=o.scrollHeight+"px",o.offsetHeight,o.style.maxHeight="0px",o.classList.remove("bw_collapse_show"),t.classList.add("bw_collapsed"),t.setAttribute("aria-expanded","false");else{o.classList.add("bw_collapse_show"),o.style.maxHeight="0px",o.offsetHeight,o.style.maxHeight=o.scrollHeight+"px",t.classList.remove("bw_collapsed"),t.setAttribute("aria-expanded","true");var d=function(e){"max-height"===e.propertyName&&o.classList.contains("bw_collapse_show")&&(o.style.maxHeight="none"),o.removeEventListener("transitionend",d)};o.addEventListener("transitionend",d)}}},c:e.title}},{t:"div",a:{id:n,class:("bw_bccl_accordion_collapse "+(e.open?"bw_collapse_show":"")).trim()},c:{t:"div",a:{class:"bw_bccl_accordion_body"},c:e.content},o:e.open?{mounted:function(e){e.style.maxHeight="none"}}:void 0}]}}),o:{type:"accordion",state:{multiOpen:r},handle:{toggle:function(e,t){var r=e.querySelectorAll(".bw_bccl_accordion_item");if(!(t<0||t>=r.length)){var n=r[t].querySelector(".bw_bccl_accordion_button");n&&n.click()}},openAll:function(e){for(var t=e.querySelectorAll(".bw_bccl_accordion_item"),r=0;r<t.length;r++){var n=t[r].querySelector(".bw_bccl_accordion_collapse"),a=t[r].querySelector(".bw_bccl_accordion_button");n.classList.contains("bw_collapse_show")||(n.classList.add("bw_collapse_show"),n.style.maxHeight="none",a.classList.remove("bw_collapsed"),a.setAttribute("aria-expanded","true"))}},closeAll:function(e){for(var t=e.querySelectorAll(".bw_bccl_accordion_item"),r=0;r<t.length;r++){var n=t[r].querySelector(".bw_bccl_accordion_collapse"),a=t[r].querySelector(".bw_bccl_accordion_button");n.classList.contains("bw_collapse_show")&&(n.style.maxHeight=n.scrollHeight+"px",n.offsetHeight,n.style.maxHeight="0px",n.classList.remove("bw_collapse_show"),a.classList.add("bw_collapsed"),a.setAttribute("aria-expanded","false"))}}}}}}function ke(e={}){const{title:t,content:r,footer:n,size:a,closeButton:o=!0,closeLabel:i="Close",onClose:c,open:l=!1,className:s=""}=e;function b(e){var t=e.closest(".bw_bccl_modal");t||(t=e);var r=t._bw_opener||null;t.classList.remove("bw_bccl_modal_show"),t.style.display="none",document.body.style.overflow="";var n=t.querySelector("[aria-modal]");n&&n.removeAttribute("aria-modal"),r&&"function"==typeof r.focus&&r.focus(),c&&c()}return{t:"div",a:{class:`bw_bccl_modal ${l?"bw_bccl_modal_show":""} ${s}`.trim(),style:l?"display:flex":void 0},c:{t:"div",a:{class:("bw_bccl_modal_dialog "+(a?"bw_bccl_modal_"+a:"")).trim(),role:"dialog","aria-modal":"true"},c:{t:"div",a:{class:"bw_bccl_modal_content"},c:[(t||o)&&{t:"div",a:{class:"bw_bccl_modal_header"},c:[t&&{t:"h5",a:{class:"bw_bccl_modal_title"},c:t},o&&{t:"button",a:{type:"button",class:"bw_close","aria-label":i,onclick:function(e){b(e.target)}},c:"×"}].filter(Boolean)},r&&{t:"div",a:{class:"bw_bccl_modal_body"},c:r},n&&{t:"div",a:{class:"bw_bccl_modal_footer"},c:n}].filter(Boolean)}},o:{type:"modal",handle:{open:function(e){e._bw_opener=document.activeElement,e.classList.add("bw_bccl_modal_show"),e.style.display="flex";var t=e.querySelector('[role="dialog"]');t&&t.setAttribute("aria-modal","true"),document.body.style.overflow="hidden"},close:function(e){b(e)}},mounted:function(e){e._bw_opener=document.activeElement,e.addEventListener("click",function(t){t.target===e&&b(e)});e.addEventListener("keydown",function(t){"Escape"===t.key&&b(e)});var t=function(t){"Escape"!==t.key||!e.classList.contains("bw_bccl_modal_show")&&"flex"!==e.style.display||b(e)};document.addEventListener("keydown",t),e._bw_escHandler=t},unmount:function(e){e._bw_escHandler&&document.removeEventListener("keydown",e._bw_escHandler),document.body.style.overflow=""}}}}function Ce(e={}){const{title:t,content:r,variant:n="info",autoDismiss:a=!0,delay:o=5e3,position:i="top-right",className:c=""}=e;return{t:"div",a:{class:`bw_bccl_toast ${J(n)} bw_bccl_toast_${i.replace(/-/g,"_")} ${c}`.trim(),role:"alert"},c:[t&&{t:"div",a:{class:"bw_bccl_toast_header"},c:[{t:"strong",c:t},{t:"button",a:{type:"button",class:"bw_close","aria-label":"Close",onclick:function(e){var t=e.target.closest(".bw_bccl_toast");t&&(t.classList.add("bw_bccl_toast_hiding"),setTimeout(function(){t.parentNode&&t.parentNode.removeChild(t)},300))}},c:"×"}]},r&&{t:"div",a:{class:"bw_bccl_toast_body"},c:r}].filter(Boolean),o:{type:"toast",handle:{dismiss:function(e){e.classList.add("bw_bccl_toast_hiding"),setTimeout(function(){e.parentNode&&e.parentNode.removeChild(e)},300)}},mounted:function(e){requestAnimationFrame(function(){e.classList.add("bw_bccl_toast_show")}),a&&setTimeout(function(){e.classList.add("bw_bccl_toast_hiding"),setTimeout(function(){e.parentNode&&e.parentNode.removeChild(e)},300)},o)}}}}function Se(e={}){const{trigger:t,items:r=[],align:n="start",variant:a="primary",className:o=""}=e;var i;return i="string"==typeof t||void 0===t?{t:"button",a:{class:`bw_bccl_btn ${J(a)} bw_bccl_dropdown_toggle`,type:"button",onclick:function(e){e.target.closest(".bw_bccl_dropdown").querySelector(".bw_bccl_dropdown_menu").classList.toggle("bw_bccl_dropdown_show")}},c:t||"Dropdown"}:t,{t:"div",a:{class:`bw_bccl_dropdown ${o}`.trim()},c:[i,{t:"div",a:{class:("bw_bccl_dropdown_menu "+("end"===n?"bw_bccl_dropdown_menu_end":"")).trim()},c:r.map(function(e){return e.divider?{t:"hr",a:{class:"bw_bccl_dropdown_divider"}}:{t:"a",a:{class:("bw_bccl_dropdown_item "+(e.disabled?"disabled":"")).trim(),href:e.href||"#",onclick:e.disabled?void 0:function(t){e.href||t.preventDefault(),t.target.closest(".bw_bccl_dropdown").querySelector(".bw_bccl_dropdown_menu").classList.remove("bw_bccl_dropdown_show"),e.onclick&&e.onclick(t)}},c:e.text}})}],o:{type:"dropdown",mounted:function(e){var t=function(t){if(!e.contains(t.target)){var r=e.querySelector(".bw_bccl_dropdown_menu");r&&r.classList.remove("bw_bccl_dropdown_show")}};document.addEventListener("click",t),e._bw_outsideHandler=t},unmount:function(e){e._bw_outsideHandler&&document.removeEventListener("click",e._bw_outsideHandler)}}}}function Le(e={}){const{label:t,checked:r=!1,id:n,name:a,disabled:o=!1,className:i="",...c}=e;return{t:"div",a:{class:`bw_bccl_form_check bw_bccl_form_switch ${i}`.trim()},c:[{t:"input",a:{type:"checkbox",class:"bw_bccl_form_check_input bw_switch_input",role:"switch",checked:r,id:n,name:a,disabled:o,...c}},t&&{t:"label",a:{class:"bw_bccl_form_check_label",for:n},c:t}].filter(Boolean)}}function je(e={}){const{variant:t="text",width:r,height:n,count:a=1,className:o=""}=e;if("circle"===t){var i=r||n||"3rem";return{t:"div",a:{class:`bw_bccl_skeleton bw_skeleton bw_skeleton_circle ${o}`.trim(),style:{width:i,height:i}}}}if("rect"===t)return{t:"div",a:{class:`bw_bccl_skeleton bw_skeleton bw_skeleton_rect ${o}`.trim(),style:{width:r||"100%",height:n||"120px"}}};if(1===a)return{t:"div",a:{class:`bw_bccl_skeleton bw_skeleton bw_skeleton_text ${o}`.trim(),style:{width:r||"100%",height:n||"1em"}}};for(var c=[],l=0;l<a;l++)c.push({t:"div",a:{class:"bw_skeleton bw_skeleton_text",style:{width:l===a-1?"75%":r||"100%",height:n||"1em"}}});return{t:"div",a:{class:`bw_bccl_skeleton bw_skeleton_group ${o}`.trim()},c:c}}function Ae(e={}){const{src:t,alt:r="",initials:n,size:a="md",variant:o="primary",className:i=""}=e;return t?{t:"img",a:{class:`bw_bccl_avatar bw_avatar bw_avatar_${a} ${i}`.trim(),src:t,alt:r}}:{t:"div",a:{class:`bw_bccl_avatar bw_avatar bw_avatar_${a} ${J(o)} ${i}`.trim()},c:n||""}}function Ee(e={}){const{items:t=[],showControls:r=!0,showIndicators:n=!0,autoPlay:a=!1,interval:o=5e3,height:i="300px",startIndex:c=0,prevLabel:l="Previous slide",nextLabel:s="Next slide",className:b=""}=e;function d(e,t){var r=e.querySelectorAll(".bw_bccl_carousel_slide").length;t<0&&(t=r-1),t>=r&&(t=0),e._bw_carouselIndex=t,e.querySelector(".bw_bccl_carousel_track").style.transform="translateX(-"+100*t+"%)";for(var n=e.querySelectorAll(".bw_bccl_carousel_indicator"),a=0;a<n.length;a++)a===t?n[a].classList.add("active"):n[a].classList.remove("active")}var _=t.map(function(e){var t=[e.content,e.caption&&{t:"div",a:{class:"bw_bccl_carousel_caption"},c:e.caption}].filter(Boolean);return{t:"div",a:{class:"bw_bccl_carousel_slide"},c:1===t.length?t[0]:t}}),u=[{t:"div",a:{class:"bw_bccl_carousel_track",style:"transform: translateX(-"+100*c+"%)"},c:_}];return r&&t.length>1&&(u.push({t:"button",a:{class:"bw_bccl_carousel_control bw_bccl_carousel_control_prev",type:"button","aria-label":l,onclick:function(e){var t=e.target.closest(".bw_bccl_carousel");d(t,(t._bw_carouselIndex||0)-1)}},c:[{t:"img",a:{src:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e",alt:"",role:"presentation"}},{t:"span",a:{class:"bw_visually_hidden"},c:l}]}),u.push({t:"button",a:{class:"bw_bccl_carousel_control bw_bccl_carousel_control_next",type:"button","aria-label":s,onclick:function(e){var t=e.target.closest(".bw_bccl_carousel");d(t,(t._bw_carouselIndex||0)+1)}},c:[{t:"img",a:{src:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e",alt:"",role:"presentation"}},{t:"span",a:{class:"bw_visually_hidden"},c:s}]})),n&&t.length>1&&u.push({t:"div",a:{class:"bw_bccl_carousel_indicators"},c:t.map(function(e,t){return{t:"button",a:{class:"bw_bccl_carousel_indicator"+(t===c?" active":""),type:"button","aria-label":"Go to slide "+(t+1),onclick:function(e){d(e.target.closest(".bw_bccl_carousel"),t)}}}})}),{t:"div",a:{class:("bw_bccl_carousel "+b).trim(),style:"height: "+i,tabindex:"0","aria-roledescription":"carousel"},c:u,o:{type:"carousel",state:{activeIndex:c,autoPlay:a,interval:o},handle:{goToSlide:function(e,t){d(e,t)},next:function(e){d(e,(e._bw_carouselIndex||0)+1)},prev:function(e){d(e,(e._bw_carouselIndex||0)-1)},getActiveIndex:function(e){return e._bw_carouselIndex||0},pause:function(e){e._bw_carouselInterval&&(clearInterval(e._bw_carouselInterval),e._bw_carouselInterval=null)},play:function(e){if(!e._bw_carouselInterval&&e._bw_state){var t=e._bw_state.interval||5e3;e._bw_carouselInterval=setInterval(function(){d(e,(e._bw_carouselIndex||0)+1)},t)}}},mounted:function(e){if(e._bw_carouselIndex=c,e.addEventListener("keydown",function(t){var r=e._bw_carouselIndex||0;"ArrowLeft"===t.key?(t.preventDefault(),d(e,r-1)):"ArrowRight"===t.key&&(t.preventDefault(),d(e,r+1))}),a){var t=setInterval(function(){var t=e._bw_carouselIndex||0;d(e,t+1)},o);e._bw_carouselInterval=t,e.addEventListener("mouseenter",function(){e._bw_carouselInterval&&clearInterval(e._bw_carouselInterval)}),e.addEventListener("mouseleave",function(){e._bw_carouselInterval=setInterval(function(){var t=e._bw_carouselIndex||0;d(e,t+1)},o)})}},unmount:function(e){e._bw_carouselInterval&&clearInterval(e._bw_carouselInterval)}}}}function Ne(e={}){"string"==typeof e&&(e={label:e});var{value:t=0,label:r,change:n,format:a,prefix:o,suffix:i,icon:c,variant:l,className:s="",style:b}=e;var d=["bw_bccl_statCard bw_stat_card",J(l),s].filter(Boolean).join(" ").trim(),_=[];return c&&_.push({t:"div",a:{class:"bw_stat_icon"},c:c}),_.push({t:"div",a:{class:"bw_stat_value"},c:function(e,t){if(o||i)return(o||"")+e+(i||"");switch(t){case"currency":return"$"+Number(e).toLocaleString();case"percent":return e+"%";case"number":return Number(e).toLocaleString();default:return""+e}}(t,a)}),r&&_.push({t:"div",a:{class:"bw_stat_label"},c:r}),null!=n&&_.push({t:"div",a:{class:"bw_stat_change "+(n>=0?"bw_stat_change_up":"bw_stat_change_down")},c:(n>=0?"↑ +":"↓ ")+n+"%"}),{t:"div",a:{class:d,style:b},c:_,o:{type:"stat-card",slots:{value:".bw_stat_value",label:".bw_stat_label"}}}}function ze(e={}){var{content:t,text:r="",placement:n="top",className:a=""}=e;return{t:"span",a:{class:("bw_bccl_tooltip_wrapper "+a).trim()},c:[t,{t:"span",a:{class:"bw_bccl_tooltip bw_bccl_tooltip_"+n,role:"tooltip"},c:r}],o:{type:"tooltip",mounted:function(e){var t=e.querySelector(".bw_bccl_tooltip");e.addEventListener("mouseenter",function(){t.classList.add("bw_bccl_tooltip_show")}),e.addEventListener("mouseleave",function(){t.classList.remove("bw_bccl_tooltip_show")}),e.addEventListener("focusin",function(){t.classList.add("bw_bccl_tooltip_show")}),e.addEventListener("focusout",function(){t.classList.remove("bw_bccl_tooltip_show")})}}}}function Me(e={}){var{trigger:t,title:r,content:n,placement:a="top",className:o=""}=e,i=[r&&{t:"div",a:{class:"bw_popover_header"},c:r},n&&{t:"div",a:{class:"bw_popover_body"},c:n}].filter(Boolean);return{t:"span",a:{class:("bw_bccl_popover bw_popover_wrapper "+o).trim()},c:[{t:"span",a:{class:"bw_popover_trigger",onclick:function(e){e.target.closest(".bw_popover_wrapper").querySelector(".bw_popover").classList.toggle("bw_popover_show")}},c:t},{t:"div",a:{class:"bw_popover bw_popover_"+a},c:i}],o:{type:"popover",mounted:function(e){var t=function(t){if(!e.contains(t.target)){var r=e.querySelector(".bw_popover");r&&r.classList.remove("bw_popover_show")}};document.addEventListener("click",t),e._bw_outsideHandler=t},unmount:function(e){e._bw_outsideHandler&&document.removeEventListener("click",e._bw_outsideHandler)}}}}function $e(e={}){"string"==typeof e&&(e={placeholder:e});var{placeholder:t="Search...",value:r,onSearch:n,onInput:a,id:o,name:i,className:c=""}=e;return{t:"div",a:{class:("bw_bccl_searchInput bw_search_input "+c).trim()},c:[{t:"input",a:{type:"search",class:"bw_bccl_form_control bw_search_field",placeholder:t,value:r,id:o,name:i,onkeydown:function(e){"Enter"===e.key&&n&&(e.preventDefault(),n(e.target.value))},oninput:function(e){var t=e.target.closest(".bw_search_input").querySelector(".bw_search_clear");t&&(t.style.display=e.target.value?"flex":"none"),a&&a(e.target.value)}}},{t:"button",a:{type:"button",class:"bw_search_clear","aria-label":"Clear search",style:r?void 0:"display: none",onclick:function(e){var t=e.target.closest(".bw_search_input").querySelector(".bw_search_field");t.value="",e.target.style.display="none",t.focus(),a&&a(""),n&&n("")}},c:"×"}],o:{type:"search-input"}}}function Oe(e={}){var{min:t=0,max:r=100,step:n=1,value:a=50,label:o,showValue:i=!1,id:c,name:l,disabled:s=!1,className:b="",...d}=e,_=[];if(o||i){var u=[];o&&u.push({t:"span",c:o}),i&&u.push({t:"span",a:{class:"bw_range_value"},c:""+a}),_.push({t:"div",a:{class:"bw_range_label"},c:u})}var p=d.oninput;return i&&(d.oninput=function(e){var t=e.target.closest(".bw_range_wrapper").querySelector(".bw_range_value");t&&(t.textContent=e.target.value),p&&p(e)}),_.push({t:"input",a:{type:"range",class:"bw_range",min:t,max:r,step:n,value:a,id:c,name:l,disabled:s,...d}}),{t:"div",a:{class:("bw_bccl_range bw_range_wrapper "+b).trim()},c:_,o:{type:"range"}}}function Ie(e={}){var{src:t,alt:r="",title:n,content:a,reverse:o=!1,imageSize:i="3rem",className:c=""}=e,l=t?{t:"img",a:{class:"bw_media_img",src:t,alt:r,style:"width:"+i+";height:"+i}}:null,s={t:"div",a:{class:"bw_media_body"},c:[n&&{t:"h5",a:{class:"bw_media_title"},c:n},a].filter(Boolean)};return{t:"div",a:{class:("bw_bccl_mediaObject bw_media "+(o?"bw_media_reverse ":"")+c).trim()},c:o?[s,l].filter(Boolean):[l,s].filter(Boolean),o:{type:"media-object"}}}function Te(e={}){var{accept:t,multiple:r=!1,onFiles:n,text:a="Drop files here or click to browse",id:o,className:i=""}=e;return{t:"div",a:{class:("bw_bccl_fileUpload bw_file_upload "+i).trim(),tabindex:"0",role:"button","aria-label":a},c:[{t:"div",a:{class:"bw_file_upload_icon"},c:"📁"},{t:"div",a:{class:"bw_file_upload_text"},c:a},{t:"input",a:{type:"file",class:"bw_file_upload_input",accept:t,multiple:r,id:o,onchange:function(e){n&&e.target.files.length&&n(e.target.files)}}}],o:{type:"file-upload",mounted:function(e){var t=e.querySelector(".bw_file_upload_input");e.addEventListener("click",function(e){e.target!==t&&t.click()}),e.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),t.click())}),e.addEventListener("dragover",function(t){t.preventDefault(),e.classList.add("bw_file_upload_active")}),e.addEventListener("dragleave",function(){e.classList.remove("bw_file_upload_active")}),e.addEventListener("drop",function(t){t.preventDefault(),e.classList.remove("bw_file_upload_active"),n&&t.dataTransfer.files.length&&n(t.dataTransfer.files)})}}}}function Be(e={}){var{items:t=[],className:r=""}=e;return{t:"div",a:{class:("bw_bccl_timeline "+r).trim()},c:t.map(function(e){return{t:"div",a:{class:"bw_bccl_timeline_item"},c:[{t:"div",a:{class:"bw_bccl_timeline_marker "+J(e.variant||"primary")}},{t:"div",a:{class:"bw_bccl_timeline_content"},c:[e.date&&{t:"div",a:{class:"bw_bccl_timeline_date"},c:e.date},e.title&&{t:"h5",a:{class:"bw_bccl_timeline_title"},c:e.title},e.content&&("string"==typeof e.content?{t:"p",a:{class:"bw_bccl_timeline_text"},c:e.content}:e.content)].filter(Boolean)}]}}),o:{type:"timeline"}}}function qe(e={}){var{steps:t=[],currentStep:r=0,className:n=""}=e;return{t:"div",a:{class:("bw_bccl_stepper bw_stepper "+n).trim(),role:"list"},c:t.map(function(e,t){var n=t<r?"completed":t===r?"active":"pending";return{t:"div",a:{class:"bw_step bw_step_"+n,role:"listitem","aria-current":"active"===n?"step":void 0},c:[{t:"div",a:{class:"bw_step_indicator"},c:"completed"===n?"✓":""+(t+1)},{t:"div",a:{class:"bw_step_body"},c:[{t:"div",a:{class:"bw_step_label"},c:e.label},e.description&&{t:"div",a:{class:"bw_step_description"},c:e.description}].filter(Boolean)}]}}),o:{type:"stepper"}}}function Ue(e={}){var{chips:t=[],placeholder:r="Add...",onAdd:n,onRemove:a,className:o=""}=e;return{t:"div",a:{class:("bw_bccl_chipInput bw_chip_input "+o).trim()},c:[...t.map(function(e){return{t:"span",a:{class:"bw_chip"},c:[e,{t:"button",a:{type:"button",class:"bw_chip_remove","aria-label":"Remove "+e,onclick:function(t){var r=t.target.closest(".bw_chip");r.parentNode.removeChild(r),a&&a(e)}},c:"×"}]}}),{t:"input",a:{type:"text",class:"bw_chip_field",placeholder:r,onkeydown:function(e){if("Enter"===e.key&&e.target.value.trim()){e.preventDefault();var t=e.target.value.trim(),r=e.target.closest(".bw_chip_input"),o=document.createElement("span");o.className="bw_chip",o._bw_chipValue=t,o.innerHTML="",o.textContent=t;var i=document.createElement("button");i.type="button",i.className="bw_chip_remove",i.setAttribute("aria-label","Remove "+t),i.textContent="×",i.onclick=function(){o.parentNode.removeChild(o),a&&a(t)},o.appendChild(i),r.insertBefore(o,e.target),e.target.value="",n&&n(t)}if("Backspace"===e.key&&!e.target.value){var c=e.target.closest(".bw_chip_input").querySelectorAll(".bw_chip");if(c.length){var l=c[c.length-1],s=l._bw_chipValue||l.firstChild.textContent;l.parentNode.removeChild(l),a&&a(s)}}}}}],o:{type:"chip-input",handle:{addChip:function(e,t){if(t){var r=e.querySelector(".bw_chip_field"),n=document.createElement("span");n.className="bw_chip",n._bw_chipValue=t,n.textContent=t;var a=document.createElement("button");a.type="button",a.className="bw_chip_remove",a.setAttribute("aria-label","Remove "+t),a.textContent="×",a.onclick=function(){n.parentNode.removeChild(n)},n.appendChild(a),e.insertBefore(n,r)}},removeChip:function(e,t){for(var r=e.querySelectorAll(".bw_chip"),n=0;n<r.length;n++)if((r[n]._bw_chipValue||r[n].firstChild.textContent)===t)return void r[n].parentNode.removeChild(r[n])},getChips:function(e){for(var t=e.querySelectorAll(".bw_chip"),r=[],n=0;n<t.length;n++)r.push(t[n]._bw_chipValue||t[n].firstChild.textContent);return r},clear:function(e){for(var t=e.querySelectorAll(".bw_chip"),r=t.length-1;r>=0;r--)t[r].parentNode.removeChild(t[r])}}}}}Object.assign({},T,{root:{":root":{"--bw_font_sans_serif":'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',"--bw_font_monospace":'"SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Liberation Mono", "Courier New", monospace',"--bw_body_font_family":"var(--bw_font_sans_serif)","--bw_body_font_size":"1rem","--bw_body_font_weight":"400","--bw_body_line_height":"1.5"}},reset:T.base,enhancedCards:T.cards,tableResponsive:{".bw_bccl_table_responsive":{"overflow-x":"auto","-webkit-overflow-scrolling":"touch"}},utilities:B()});var De={card:{make:G},button:{make:X},container:{make:V},row:{make:W},col:{make:K},nav:{make:Z},navbar:{make:Q},tabs:{make:ee},alert:{make:te},badge:{make:re},progress:{make:ne},listGroup:{make:ae},breadcrumb:{make:oe},form:{make:ie},formGroup:{make:ce},input:{make:le},textarea:{make:se},select:{make:be},checkbox:{make:de},stack:{make:_e},spinner:{make:ue},hero:{make:pe},featureGrid:{make:me},cta:{make:fe},section:{make:we},codeDemo:{make:he},pagination:{make:ge},radio:{make:ve},buttonGroup:{make:ye},accordion:{make:xe},modal:{make:ke},toast:{make:Ce},dropdown:{make:Se},switch:{make:Le},skeleton:{make:je},avatar:{make:Ae},carousel:{make:Ee},statCard:{make:Ne},tooltip:{make:ze},popover:{make:Me},searchInput:{make:$e},range:{make:Oe},mediaObject:{make:Ie},fileUpload:{make:Te},timeline:{make:Be},stepper:{make:qe},chipInput:{make:Ue}};function Re(e,t){var r=De[e];if(!r)throw new Error('bw.make: unknown component type "'+e+'". Available: '+Object.keys(De).join(", "));var n=r.make(t||{});return n&&"object"==typeof n&&(n._bwFactory={type:e,props:t||{}}),n}var Pe=Object.freeze({__proto__:null,BCCL:De,make:Re,makeAccordion:xe,makeAlert:te,makeAvatar:Ae,makeBadge:re,makeBreadcrumb:oe,makeButton:X,makeButtonGroup:ye,makeCTA:fe,makeCard:G,makeCarousel:Ee,makeCheckbox:de,makeChipInput:Ue,makeCodeDemo:he,makeCol:K,makeContainer:V,makeDropdown:Se,makeFeatureGrid:me,makeFileUpload:Te,makeForm:ie,makeFormGroup:ce,makeHero:pe,makeInput:le,makeListGroup:ae,makeMediaObject:Ie,makeModal:ke,makeNav:Z,makeNavbar:Q,makePagination:ge,makePopover:Me,makeProgress:ne,makeRadio:ve,makeRange:Oe,makeRow:W,makeSearchInput:$e,makeSection:we,makeSelect:be,makeSkeleton:je,makeSpinner:ue,makeStack:_e,makeStatCard:Ne,makeStepper:qe,makeSwitch:Le,makeTabs:ee,makeTextarea:se,makeTimeline:Be,makeToast:Ce,makeTooltip:ze,variantClass:J});const He={version:e.version,versionInfo:e,getVersion:function(){return{...e}},_idCounter:0,_topics:{},_subIdCounter:0,_detached:{},_mounted:{},_nodeMap:{},__monkey_patch_is_nodejs__:{_value:"ignore",set:function(e){this._value=Xe(e,"boolean")?e:"ignore"},get:function(){return this._value}},isNodeJS:function(){return"ignore"!==He.__monkey_patch_is_nodejs__.get()?He.__monkey_patch_is_nodejs__.get():"undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node}};He._isNode=He.isNodeJS(),Object.defineProperty(He,"_isBrowser",{get:function(){return"undefined"!=typeof document&&"undefined"!=typeof window},configurable:!0});var Fe=Object.prototype.hasOwnProperty,Ye=Array.isArray,Je=Object.keys,Ge=R,Xe=function(e,t){var r=Ge(e);return r===t||r.toLowerCase()===t},Ve=function(){console.warn.apply(console,arguments)};function We(e,t){Xe(t,"function")?t(e):Ye(t)?(e.innerHTML="",t.forEach(function(t){null!=t&&(Xe(t,"object")&&t.t?e.appendChild(He.create(t)):e.appendChild(document.createTextNode(String(t))))})):Xe(t,"object")&&null!==t&&t.t?(e.innerHTML="",e.appendChild(He.create(t))):e.textContent=String(t)}He.debug=!1,He._fsCache=void 0,He._getFs=function(){if(void 0!==He._fsCache)return Promise.resolve(He._fsCache);if(!He.isNodeJS())return He._fsCache=null,Promise.resolve(null);if("function"==typeof require)try{return He._fsCache=require("fs"),Promise.resolve(He._fsCache)}catch(e){}try{return new Function("m","return import(m)")("fs").then(function(e){return He._fsCache=e.default||e,He._fsCache}).catch(function(){return He._fsCache=null,null})}catch(e){return He._fsCache=null,Promise.resolve(null)}},He.typeOf=R,He.to=He.typeOf,He.uuid=function(e){var t=e?"bw_"+e+"_":"bw_";if(He._isBrowser&&crypto&&crypto.randomUUID)return t+crypto.randomUUID().replace(/-/g,"");return`${t}${Date.now().toString(36)}_${(++He._idCounter).toString(36)}_${Math.random().toString(36).substring(2,11)}`},He.el=function(e,t){var r;if(Xe(e,"string"))if(e&&He._isBrowser){var n=He._nodeMap[e];if(n){var a=He.getUUID(n);null!==n.parentNode||a&&He._detached[a]?(r=n,a&&He._detached[a]&&null!==n.parentNode&&delete He._detached[a]):delete He._nodeMap[e]}r||(0===e.indexOf("bw_uuid_")?r=null:((r=document.getElementById(e))||"#"!==e.charAt(0)&&"."!==e.charAt(0)||(r=document.querySelector(e)),r&&(He._nodeMap[e]=r)))}else r=null;else r=e||null;return r&&void 0!==t&&We(r,t),r},He._registerNode=function(e,t){if(e){t&&(He._nodeMap[t]=e);var r=e.getAttribute?e.getAttribute("id"):null;r&&(He._nodeMap[r]=e)}},He._deregisterNode=function(e,t){t&&delete He._nodeMap[t];var r=e&&e.getAttribute?e.getAttribute("id"):null;r&&delete He._nodeMap[r]};var Ke="bw_lc",Ze=/\bbw_uuid_[a-z0-9_]+\b/;function Qe(e,t){if(null==e)return document.createTextNode("");if(e&&e.__bw_raw){var r=document.createDocumentFragment(),n=document.createElement("span");for(n.innerHTML=e.v;n.firstChild;)r.appendChild(n.firstChild);return r}if(!Xe(e,"object")||!e.t)return document.createTextNode(String(e));for(var a=e.t,o=e.a||{},i=e.c,c=e.o||{},l=t._svgCtx||"svg"===a,s=l?document.createElementNS("http://www.w3.org/2000/svg",a):document.createElement(a),b=Je(o),d=0;d<b.length;d++){var _=b[d],u=o[_];if(null!=u&&!1!==u)if("style"===_&&Xe(u,"object"))Object.assign(s.style,u);else if("class"===_){var p=Ye(u)?u.filter(Boolean).join(" "):String(u);p&&(l?s.setAttribute("class",p):s.className=p)}else if(0===_.indexOf("on")&&_.length>2&&Xe(u,"function")){var m=_.slice(2).toLowerCase();s.addEventListener(m,u)}else"value"===_&&"input"===a?s.value=u:!0===u?s.setAttribute(_,""):s.setAttribute(_,String(u))}var f=t,w=l&&"foreignObject"!==a;if(w!==(t._svgCtx||!1)&&(f=Object.assign({},t,{_svgCtx:w||void 0})),null!=i)if(Ye(i))for(var h=0;h<i.length;h++){var g=i[h];if(null!=g){var v=Qe(g,f);s.appendChild(v);var y=g&&g.a?g.a.id||He.getUUID(g):null;if(y&&(s._bw_refs||(s._bw_refs={}),s._bw_refs[y]=v),v._bw_refs)for(var x in s._bw_refs||(s._bw_refs={}),v._bw_refs)Fe.call(v._bw_refs,x)&&(s._bw_refs[x]=v._bw_refs[x])}}else if(Xe(i,"object")&&i.__bw_raw)s.innerHTML=i.v;else if(Xe(i,"object")&&i.t){var k=Qe(i,f);s.appendChild(k);var C=i.a?i.a.id||He.getUUID(i):null;if(C&&(s._bw_refs||(s._bw_refs={}),s._bw_refs[C]=k),k._bw_refs)for(var S in s._bw_refs||(s._bw_refs={}),k._bw_refs)Fe.call(k._bw_refs,S)&&(s._bw_refs[S]=k._bw_refs[S])}else s.textContent=String(i);return et(s,c),s}function et(e,t){if(t&&"object"==typeof t&&((t.mounted||t.unmount||t.render||t.state||t.handle||t.slots||t.type)&&!e.bw)){t.type&&(e._bw_type=t.type);var r=He.getUUID(e)||He.uuid("uuid");if(e.classList.contains(r)||e.classList.add(r),e.classList.add(Ke),e.classList.add("bw_is_component"),t.type&&e.classList.add("bw_is_component_"+t.type),t.state&&(e._bw_state=t.state),t.render&&(e._bw_render=t.render),t.mounted?e._bw_mounted_fn=t.mounted:t.render&&!t.mounted&&(e._bw_mounted_fn=function(e,r){t.render(e,r)}),t.unmount&&(e._bw_unmount_fn=t.unmount),e.bw||(e.bw={}),e.bw.getState=function(){return Object.assign({},e._bw_state||{})},t.handle)for(var n in t.handle)Fe.call(t.handle,n)&&(e.bw[n]=t.handle[n].bind(null,e));if(t.slots)for(var a in e._bw_slots=t.slots,e._bw_slot_cache=null,t.slots)Fe.call(t.slots,a)&&function(t,r){var n=t.charAt(0).toUpperCase()+t.slice(1);e.bw["set"+n]=function(n){e._bw_slot_cache||(e._bw_slot_cache={}),e._bw_slot_cache[t]||(e._bw_slot_cache[t]=e.querySelector(r));var a=e._bw_slot_cache[t];if(a)if(He.unmountChildren(a),null!=n&&"object"==typeof n&&n.t){a.innerHTML="";var o=He.create(n);a.appendChild(o),e.isConnected&&He.mountTree(o)}else a.textContent=null!=n?String(n):""},e.bw["get"+n]=function(){e._bw_slot_cache||(e._bw_slot_cache={}),e._bw_slot_cache[t]||(e._bw_slot_cache[t]=e.querySelector(r));var n=e._bw_slot_cache[t];return n?n.textContent:""}}(a,t.slots[a])}}function tt(e){if(e&&1===e.nodeType){var t=He.getUUID(e);if(t){if(He._nodeMap[t]!==e||!He._mounted[t]){if(He._nodeMap[t]&&He._nodeMap[t]!==e){var r=t,n=He.uuid("uuid");e.classList.remove(r),e.classList.add(n),t=n,e.parentNode&&e.parentNode._bw_refs&&e.parentNode._bw_refs[r]===e&&(delete e.parentNode._bw_refs[r],e.parentNode._bw_refs[n]=e),He.pub("bw:diag",{code:"uuid_collision",uuid:r,ref:n,msg:"UUID collision detected; reminted to "+n})}if(He._nodeMap[t]=e,(a=e.getAttribute?e.getAttribute("id"):null)&&(He._nodeMap[a]=e),He._detached[t]&&delete He._detached[t],e.classList.contains(Ke)&&!He._mounted[t]){if(He._mounted[t]=!0,e._bw_mounted_fn)try{e._bw_mounted_fn(e,e._bw_state||{})}catch(e){Ve("o.mounted error: "+e.message),He.pub("bw:diag",{code:"mounted_hook_error",uuid:t,msg:e.message})}try{e.dispatchEvent(new CustomEvent("bw:mount",{bubbles:!0,detail:{uuid:t,type:e._bw_type||null}}))}catch(e){}He.pub("bw:lifecycle",{event:"mount",uuid:t,type:e._bw_type||null})}}}else{var a=e.getAttribute?e.getAttribute("id"):null;a&&(He._nodeMap[a]=e)}}}function rt(e){if(e&&1===e.nodeType){var t=He.getUUID(e),r=e.getAttribute?e.getAttribute("id"):null;if(t||r||e.classList.contains(Ke)){if(t&&e.classList.contains(Ke))try{e.dispatchEvent(new CustomEvent("bw:unmount",{bubbles:!0,detail:{uuid:t,type:e._bw_type||null}}))}catch(e){}if(e._bw_unmount_fn)try{e._bw_unmount_fn(e,e._bw_state||{})}catch(e){Ve("o.unmount error: "+e.message),He.pub("bw:diag",{code:"unmount_hook_error",uuid:t,msg:e.message})}if(e._bw_subs){for(var n=0;n<e._bw_subs.length;n++)try{e._bw_subs[n]()}catch(e){}delete e._bw_subs}for(var a in He._nodeMap)Fe.call(He._nodeMap,a)&&He._nodeMap[a]===e&&delete He._nodeMap[a];if(t&&(delete He._mounted[t],delete He._detached[t]),delete e.bw,delete e._bw_state,delete e._bw_render,delete e._bw_refs,delete e._bw_type,delete e._bw_unmount_fn,delete e._bw_mounted_fn,delete e._bw_slots,delete e._bw_slot_cache,e.classList){e.classList.remove(Ke),e.classList.remove("bw_is_component");var o=e.className;if("string"==typeof o)for(var i=o.split(/\s+/),c=0;c<i.length;c++)0!==i[c].indexOf("bw_is_component_")&&0!==i[c].indexOf("bw_uuid_")||e.classList.remove(i[c])}}}}function nt(e){if(!e||"object"!=typeof e)return e;if(e.a){for(var t={},r=Je(e.a),n=0;n<r.length;n++)"on"===r[n].substring(0,2).toLowerCase()&&"string"==typeof e.a[r[n]]||(t[r[n]]=e.a[r[n]]);e=Object.assign({},e,{a:t})}return Ye(e.c)?e=Object.assign({},e,{c:e.c.map(nt)}):e.c&&"object"==typeof e.c&&e.c.t&&(e=Object.assign({},e,{c:nt(e.c)})),e}function at(e){if(!e||""===e||"global"===e)return"bw_style_global";if("reset"===e)return"bw_style_reset";if("structural"===e)return"bw_style_structural";var t=e;return"#"===t.charAt(0)?t="id_"+t.substring(1):"."===t.charAt(0)&&(t="cls_"+t.substring(1)),"bw_style_"+(t=t.replace(/-/g,"_"))}function ot(e){return!e||(-1!==e.indexOf(",")?(He.pub("bw:diag",{code:"scope_rejected",ref:e,msg:"comma selectors not allowed"}),!1):!/\s/.test(e.trim())||(He.pub("bw:diag",{code:"scope_rejected",ref:e,msg:"complex selectors not allowed"}),!1))}He.assignUUID=function(e,t){if(!e||!Xe(e,"object"))return null;e.a||(e.a={}),Xe(e.a.class,"string")||(e.a.class=e.a.class?String(e.a.class):"");var r=e.a.class.match(Ze);if(r&&!t)return r[0];r&&(e.a.class=e.a.class.replace(Ze,"").replace(/\s+/g," ").trim());var n=He.uuid("uuid");return e.a.class=(e.a.class?e.a.class+" ":"")+n,n},He.getUUID=function(e){if(!e)return null;var t;if(void 0!==e.className&&e.tagName?t="string"==typeof e.className?e.className:e.getAttribute("class")||"":e.a&&Xe(e.a.class,"string")&&(t=e.a.class),!t)return null;var r=t.match(Ze);return r?r[0]:null},He.escapeHTML=function(e){if(!Xe(e,"string"))return"";const t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};return e.replace(/[&<>"'/]/g,e=>t[e])},He.raw=function(e){return{__bw_raw:!0,v:String(e)}},He.h=function(e,t,r,n){var a={t:String(e)};return null!=t&&(a.a=t),void 0!==r&&(a.c=r),void 0!==n&&(a.o=n),a},He.html=function(e,t={}){if(null==e)return"";if(Ye(e))return e.map(e=>He.html(e,t)).join("");if(e&&e.__bw_raw)return e.v;if(!Xe(e,"object")||!e.t){var r=t.raw?String(e):He.escapeHTML(String(e));return t.state&&Xe(r,"string")&&r.indexOf("${")>=0&&(r=He._resolveTemplate(r,t.state,!!t.compile)),r}const{t:n,a:a={},c:o,o:i={}}=e,c=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"].includes(n.toLowerCase());let l="";var s=[],b=t.fns||null;for(const[e,r]of Object.entries(a))if(null!=r&&!1!==r)if(e.startsWith("on")){if(Xe(r,"function")){if(b){var d="";try{d=r.toString()}catch(e){}if(-1!==d.indexOf("[native code]")){t._fnUnserializableWarned||(He.pub("bw:diag",{code:"fn_unserializable",msg:"bound/native function cannot be serialized"}),t._fnUnserializableWarned=!0);continue}for(var _=e.substring(2),u=null,p=Je(b),m=0;m<p.length;m++)if(b[p[m]].fn===r&&b[p[m]].event===_){u=p[m];break}u||(u="bw_fn_"+(t._fnCounter||0),t._fnCounter=(t._fnCounter||0)+1,b[u]={fn:r,event:_}),s.push(u)}else t._fnSkipWarned||(He.pub("bw:diag",{code:"fn_skipped",msg:"function attrs skipped without {fns} option"}),t._fnSkipWarned=!0);continue}Xe(r,"string")&&(l+=" "+e+'="'+He.escapeHTML(r)+'"')}else if("style"===e&&Xe(r,"object")){const e=Object.entries(r).filter(([,e])=>null!=e).map(([e,t])=>`${e}:${t}`).join(";");e&&(l+=` style="${He.escapeHTML(e)}"`)}else{if("class"===e)continue;if(!0===r)l+=` ${e}`;else{let n=String(r);t.state&&n.indexOf("${")>=0&&(n=He._resolveTemplate(n,t.state,!!t.compile)),l+=` ${e}="${He.escapeHTML(n)}"`}}var f=[],w=a.class||"";if(Ye(w)&&(w=w.filter(Boolean).join(" ")),w&&f.push(String(w)),i&&(i.type||i.state||i.mounted||i.unmount||i.handle||i.render||i.slots)&&!Ze.test(w)){var h=He.uuid("uuid");f.push(h),f.push(Ke),f.push("bw_is_component"),i.type&&f.push("bw_is_component_"+i.type)}for(var g=0;g<s.length;g++)f.push(s[g]);if(f.length>0&&(l+=' class="'+He.escapeHTML(f.join(" "))+'"'),c)return`<${n}${l} />`;let v=null!=o?He.html(o,t):"";return t.state&&Xe(v,"string")&&v.indexOf("${")>=0&&(v=He._resolveTemplate(v,t.state,!!t.compile)),`<${n}${l}>${v}</${n}>`},He.htmlPage=function(e){var t,r=(e=e||{}).title||"bitwrench",n=e.body||"",a=e.state||void 0,o=e.runtime||"shim",i=e.css||"",c=e.theme||null,l=e.head||[],s=e.favicon||"",b=e.lang||"en",d=!1!==e.handlers?{}:null;if(Xe(n,"string"))t=n;else{var _={_fnCounter:0};a&&(_.state=a),d&&(_.fns=d),t=He.html(n,_)}var u="";if(d)for(var p=Je(d),m=0;m<p.length;m++){var f=d[p[m]];u+="r['"+p[m]+"']={fn:"+f.fn.toString()+",event:'"+f.event+"'};\n"}var w="";if("inline"===o){var h=null;if(He._isNode)try{var g="function"==typeof require?require("fs"):null,v="function"==typeof require?require("path"):null;if(g&&v){var y="";try{y=v.dirname("undefined"!=typeof __filename?__filename:"")}catch(e){}if(!y&&void 0!==import.meta&&import.meta.url){var x="function"==typeof require?require("url"):null;x&&x.fileURLToPath&&(y=v.dirname(x.fileURLToPath(import.meta.url)))}if(y){var k=v.resolve(y,"../dist/bitwrench.umd.min.js");h=g.readFileSync(k,"utf8")}}}catch(e){}w=h?"<script>"+h+"<\/script>":"<script>"+He._FUNC_REGISTRY_SHIM+"<\/script>"}else"cdn"===o?w='<script src="https://cdn.jsdelivr.net/npm/bitwrench@2/dist/bitwrench.umd.min.js"><\/script>':"shim"===o&&(w="<script>"+He._FUNC_REGISTRY_SHIM+"<\/script>");var C="";if(c){var S=Xe(c,"string")?E[c.toLowerCase()]||null:c;if(S)C=He.makeStyles(S).css}var L="";Ye(l)&&l.length>0&&(L=l.map(function(e){return He.html(e)}).join("\n"));var j="";s&&(j='<link rel="icon" href="'+s.replace(/[&<>"']/g,function(e){return{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}[e]})+'">');var A=He.escapeHTML(r),N=(C?C+"\n":"")+i,z=He.config&&He.config.cspNonce?He.config.cspNonce:null,M=z?' nonce="'+He.escapeHTML(z)+'"':"",$="",O=[];u&&(O.push("(function(){var r={};"),O.push(u),O.push("for(var k in r){if(r.hasOwnProperty(k)){"),O.push('var els=document.querySelectorAll("."+k);'),O.push("for(var i=0;i<els.length;i++){"),O.push("(function(el,entry){el.addEventListener(entry.event,function(event){"),O.push("try{entry.fn.call(el,event);}catch(e){"),O.push('console.error("bw_act handler error — if this is a ReferenceError from a closure, use bw_act_* class tokens instead:",e);}'),O.push("});})(els[i],r[k]);}}}})();")),"inline"!==o&&"cdn"!==o||O.push('if(typeof bw!=="undefined"){bw.loadStyles();}'),O.length>0&&($="<script"+M+">\n"+O.join("\n")+"\n<\/script>");var I=["<!DOCTYPE html>",'<html lang="'+b+'">',"<head>",'<meta charset="UTF-8">','<meta name="viewport" content="width=device-width, initial-scale=1">'];return I.push("<title>"+A+"</title>"),j&&I.push(j),w&&(z&&(w=w.replace(/<script(?![^>]*\bnonce\b)/g,"<script"+M)),I.push(w)),L&&I.push(L),N&&I.push("<style"+M+">"+N+"</style>"),I.push("</head>"),I.push("<body>"),I.push(t),$&&I.push($),I.push("</body>"),I.push("</html>"),I.join("\n")},He.create=function(e,t){if(!He._isBrowser)throw new Error("bw.create requires a DOM environment (document/window). Use bw.html() instead.");return Qe(e,t||{})},He.hydrate=function(e,t){e&&t&&et(e,t.o||{})},He.mountTree=function(e){if(e&&1===e.nodeType){He.janitor&&He.janitor._ensureObserver&&He.janitor._ensureObserver(),He.actions&&He.actions._ensureInstalled&&He.actions._ensureInstalled(),tt(e);for(var t=e.querySelectorAll("*"),r=0;r<t.length;r++)tt(t[r])}},He.unmount=function(e){if(e&&1===e.nodeType){for(var t=[e],r=e.querySelectorAll('.bw_lc, [class*="bw_uuid_"], [id]'),n=0;n<r.length;n++)t.push(r[n]);for(var a=0;a<t.length;a++)rt(t[a])}},He.unmountChildren=function(e){if(e&&1===e.nodeType)for(var t=e.querySelectorAll('.bw_lc, [class*="bw_uuid_"]'),r=0;r<t.length;r++)rt(t[r])},He.remove=function(e){var t=He.el(e);t&&(He.unmount(t),t.parentNode&&t.parentNode.removeChild(t))},He.detach=function(e){if(e){var t=He.getUUID(e);t&&(He._detached[t]=!0),e.parentNode&&e.parentNode.removeChild(e)}},He.janitor=function(){var e=[],t=!0,r=[],n=null,a=!1;function o(){a=!1,c()}function i(){if(He._isBrowser&&"undefined"!=typeof MutationObserver&&!n)try{(n=new MutationObserver(function(r){if(t){for(var n=[],i=[],c=0;c<r.length;c++){for(var l=r[c],s=0;s<l.removedNodes.length;s++){var b=l.removedNodes[s];1===b.nodeType&&n.push(b)}for(var d=0;d<l.addedNodes.length;d++){var _=l.addedNodes[d];1===_.nodeType&&i.push(_)}}for(var u=!1,p=0;p<n.length;p++){var m=n[p];if(-1===i.indexOf(m)){var f=He.getUUID(m);if(f&&He._nodeMap[f]&&(-1===e.indexOf(m)&&e.push(m),u=!0),m.querySelectorAll)for(var w=m.querySelectorAll('.bw_lc, [class*="bw_uuid_"]'),h=0;h<w.length;h++)-1===i.indexOf(w[h])&&-1===e.indexOf(w[h])&&(e.push(w[h]),u=!0)}}u&&(a||(a=!0,Promise.resolve().then(o)))}})).observe(document.body,{childList:!0,subtree:!0})}catch(e){}}function c(){var t=e.splice(0),n=t.length;for(var a in He._nodeMap)if(Fe.call(He._nodeMap,a)){var o=He._nodeMap[a];o&&1===o.nodeType&&!o.isConnected&&-1===t.indexOf(o)&&t.push(o)}for(var i in He._detached)if(Fe.call(He._detached,i)){var c=He._nodeMap[i];c&&c.isConnected&&delete He._detached[i]}for(var l=[],s=0;s<r.length;s++){var b=r[s];b.isConnected?He.pub("bw:diag",{code:"reaped_reinserted",msg:"a reaped element was reinserted — use bw.detach() for keep-alive"}):l.push(b)}r=l;for(var d=0;d<t.length;d++){var _=t[d];if(t.indexOf(_)<n||!_.isConnected){var u=He.getUUID(_);if(!u||!He._detached[u]){var p=_.classList&&_.classList.contains(Ke),m=u&&He._nodeMap[u]===_;if(p){var f=_._bw_type||null;He.unmount(_),r.push(_),He.pub("bw:lifecycle",{event:"unmount",uuid:u,type:f}),He.pub("bw:diag",{code:"janitor_reap",uuid:u})}else m&&(rt(_),r.push(_),He.pub("bw:diag",{code:"janitor_reap",uuid:u}));if(_.querySelectorAll)for(var w=_.querySelectorAll('.bw_lc, [class*="bw_uuid_"]'),h=0;h<w.length;h++){var g=w[h],v=He.getUUID(g);v&&He._nodeMap[v]===g&&(g.classList.contains(Ke)?(He.unmount(g),r&&r.push(g),He.pub("bw:diag",{code:"janitor_reap",uuid:v})):(rt(g),He.pub("bw:diag",{code:"janitor_reap",uuid:v})))}}}}}return He._isBrowser&&"undefined"!=typeof document&&document.body&&i(),{flush:function(){a=!1,!n&&He._isBrowser&&"undefined"!=typeof document&&document.body&&i(),c()},enable:function(){t=!0},disable:function(){t=!1},_addPending:function(t){-1===e.indexOf(t)&&e.push(t)},_ensureObserver:function(){!n&&He._isBrowser&&"undefined"!=typeof document&&document.body&&i()},_reset:function(){e.length=0,r.length=0,a=!1,t=!0,n&&(n.disconnect(),n=null)},_getPendingCount:function(){var t=e.length;for(var r in He._nodeMap)if(Fe.call(He._nodeMap,r)){var n=He._nodeMap[r];if(n&&1===n.nodeType&&!n.isConnected){var a=He.getUUID(n);a&&He._detached[a]||t++}}return t}}}(),He._debug=function(){var e=0;for(var t in He._nodeMap)Fe.call(He._nodeMap,t)&&e++;var r=0;for(var n in He._detached)Fe.call(He._detached,n)&&r++;return{registered:e,detached:r,janitorPending:He.janitor._getPendingCount(),topics:Je(He._topics).length}},He._resetForTest=function(){for(var e in He._nodeMap)Fe.call(He._nodeMap,e)&&delete He._nodeMap[e];for(var t in He._topics)Fe.call(He._topics,t)&&delete He._topics[t];for(var r in He._detached)Fe.call(He._detached,r)&&delete He._detached[r];for(var n in He._mounted)Fe.call(He._mounted,n)&&delete He._mounted[n];for(var a in He._subIdCounter=0,He._idCounter=0,He.janitor&&"function"==typeof He.janitor._reset&&He.janitor._reset(),He.actions&&("function"==typeof He.actions._reset&&He.actions._reset(),He.actions.enable()),He.remote=null,He._wireListeners)if(Fe.call(He._wireListeners,a)){try{He._wireListeners[a]()}catch(e){}delete He._wireListeners[a]}for(var o in He._clientRemotes)Fe.call(He._clientRemotes,o)&&delete He._clientRemotes[o]},He.mount=function(e,t,r){var n=Xe(e,"string")?He.$(e)[0]:e;if(!n)return Ve("bw.mount: target not found"),null;if(He.unmountChildren(n),n.innerHTML="",null==t)return null;var a=null,o=[];if(Ye(t)){for(var i=0;i<t.length;i++)if(null!=t[i]){var c=He.create(t[i],r||{});n.appendChild(c),o.push(c),a||(a=c)}}else a=He.create(t,r||{}),n.appendChild(a),o.push(a);for(var l=0;l<o.length;l++)He.mountTree(o[l]);return a},He.DOM=He.mount,He.append=function(e,t,r){var n=Xe(e,"string")?He.$(e)[0]:e;if(!n)return null;var a=He.create(t);if(r&&void 0!==r.before){var o=r.before;"number"==typeof o&&(o=n.children[o]||null),n.insertBefore(a,o)}else n.appendChild(a);return He.mountTree(a),a},He.replace=function(e,t){if(!e)return null;var r=e.parentNode,n=e.nextSibling;if(He.unmount(e),e.parentNode&&e.parentNode.removeChild(e),null==t)return null;var a=He.create(t);return r&&(n?r.insertBefore(a,n):r.appendChild(a)),He.mountTree(a),a},He.refresh=function(e){var t=He.el(e);if(!t)return null;He.unmountChildren(t),t.innerHTML="",t._bw_slot_cache&&(t._bw_slot_cache=null),t._bw_render&&(t._bw_render(t,t._bw_state||{}),He.mountTree(t));try{t.dispatchEvent(new CustomEvent("bw:refresh",{bubbles:!0,detail:{uuid:He.getUUID(t),type:t._bw_type||null}}))}catch(e){}return t},He.update=function(e,t){var r=He.el(e);return r?r.bw&&"function"==typeof r.bw.update?(r.bw.update(t),He.pub("bw:lifecycle",{event:"statechange",uuid:He.getUUID(r),data:t}),He.emit(r,"statechange",r._bw_state),r):(r._bw_render?He.pub("bw:diag",{code:"update_use_refresh",uuid:He.getUUID(r),msg:"component has o.render but no update handle — use bw.refresh() instead"}):He.pub("bw:diag",{code:"update_no_handle",uuid:He.getUUID(r),msg:"component has no update handle and no render — nothing to do"}),r):null},He.updateSlot=function(e,t,r){var n=He.el(e);if(!n||!n.bw)return!1;var a="set"+t.charAt(0).toUpperCase()+t.slice(1);return"function"==typeof n.bw[a]&&(n.bw[a](r),!0)},He.patch=function(e,t,r){var n=He.el(e);if(!n)return null;if(r)n.setAttribute(r,String(t));else if(Xe(t,"string")||Xe(t,"number"))n.textContent=String(t);else if(Ye(t)){He.unmountChildren(n),n.innerHTML="";for(var a=0;a<t.length;a++){var o=t[a];null!=o&&(Xe(o,"object")&&o.t?n.appendChild(He.create(o)):n.appendChild(document.createTextNode(String(o))))}He.mountTree(n)}else if(Xe(t,"object")&&null!==t&&t.t)He.unmountChildren(n),n.innerHTML="",n.appendChild(He.create(t)),He.mountTree(n);else if(Xe(t,"object")&&null!==t)for(var i=Je(t),c=0;c<i.length;c++)n.setAttribute(i[c],String(t[i[c]]));else n.textContent=String(t);return n},He.patchAll=function(e){var t={};for(var r in e)Fe.call(e,r)&&(t[r]=He.patch(r,e[r]));return t},He.syncChildren=function(e,t,r){if(e&&t&&r){var n=r.key,a=r.create,o=r.update,i="undefined"!=typeof document?document.activeElement:null;i&&!e.contains(i)&&(i=null);for(var c={},l=e.firstElementChild;l;)null!=l._bw_key&&(c[l._bw_key]=l),l=l.nextElementSibling;for(var s={},b=0;b<t.length;b++)s[n(t[b])]=!0;var d=[];for(var _ in c)Fe.call(c,_)&&!s[_]&&d.push(c[_]);for(var u=0;u<d.length;u++)He.unmount(d[u]),d[u].parentNode&&d[u].parentNode.removeChild(d[u]),delete c[d[u]._bw_key];for(var p=null,m=0;m<t.length;m++){var f=n(t[m]),w=c[f];if(w){o&&o(w,t[m]);var h=p?p.nextSibling:e.firstChild;w!==h&&e.insertBefore(w,h),p=w}else{var g=a(t[m]),v=He.create(g);v._bw_key=f;var y=p?p.nextSibling:e.firstChild;e.insertBefore(v,y),He.mountTree(v),c[f]=v,p=v}}if(i&&i.isConnected&&document.activeElement!==i)try{i.focus()}catch(e){}}},He.emit=function(e,t,r){var n=He.el(e);n&&n.dispatchEvent(new CustomEvent("bw:"+t,{bubbles:!0,detail:r||{}}))},He.on=function(e,t,r){var n=He.el(e);if(!n)return function(){};var a=function(e){r(e.detail,e)};return n.addEventListener("bw:"+t,a),function(){n.removeEventListener("bw:"+t,a)}},He.pub=function(e,t){var r=0;function n(n,a){if(n&&0!==n.length){for(var o=n.slice(),i=!1,c=[],l=0;l<o.length;l++){var s=o[l];if(s.tiedEl&&"bw:diag"!==e&&"bw:lifecycle"!==e){var b=He.getUUID(s.tiedEl);if(!(s.tiedEl.isConnected||b&&He._detached[b])){var d=n.indexOf(s);-1!==d&&n.splice(d,1),i=!0,c.push({code:"ghost_prune",uuid:b,topic:a});continue}}try{s.handler(t,e),r++}catch(e){Ve('bw.pub: subscriber error on topic "'+a+'":',e)}}i&&0===n.length&&delete He._topics[a];for(var _=0;_<c.length;_++)He.pub("bw:diag",c[_])}}n(He._topics[e],e);for(var a=Object.keys(He._topics),o=0;o<a.length;o++){var i=a[o];if("*"===i.charAt(i.length-1)){var c=i.slice(0,-1);e.length>=c.length&&e.substring(0,c.length)===c&&e!==i&&n(He._topics[i],i)}}return r},He.sub=function(e,t,r){var n=++He._subIdCounter;He._topics[e]||(He._topics[e]=[]);var a={handler:t,id:n};r&&(a.tiedEl=r),He._topics[e].push(a);var o=function(){var t=He._topics[e];t&&(He._topics[e]=t.filter(function(e){return e.id!==n}),0===He._topics[e].length&&delete He._topics[e])};return r&&(r._bw_subs||(r._bw_subs=[]),r._bw_subs.push(o),He.getUUID(r)||r.classList.add(He.uuid("uuid")),r.classList.contains(Ke)||r.classList.add(Ke)),o},He.unsub=function(e,t){var r=He._topics[e];if(!r)return 0;var n=r.length;He._topics[e]=r.filter(function(e){return e.handler!==t});var a=n-He._topics[e].length;return 0===He._topics[e].length&&delete He._topics[e],a},He.once=function(e,t,r){var n=He.sub(e,function(e){n(),t(e)},r);return n},He.derive=function(e,t,r,n){n=n||{};var a=new Array(e.length),o=new Array(e.length),i=!1,c=[];if(n.seed){if(n.seed.length!==e.length)throw new TypeError("bw.derive: seed length ("+n.seed.length+") must match inputs length ("+e.length+")");for(var l=0;l<n.seed.length;l++)a[l]=n.seed[l],o[l]=!0}function s(){for(var e=0;e<o.length;e++)if(!o[e])return!1;return!0}function b(){if(!i)try{var e=t.apply(null,a);He.pub(r,e)}catch(e){He.pub("bw:diag",{code:"derive_error",outTopic:r,msg:e.message})}}-1!==e.indexOf(r)&&He.pub("bw:diag",{code:"derive_cycle",inputs:e,outTopic:r});for(var d=0;d<e.length;d++)(function(t){var r=He.sub(e[t],function(e){a[t]=e,o[t]=!0,s()&&b()});c.push(r)})(d);function _(){if(!i){i=!0;for(var e=0;e<c.length;e++)try{c[e]()}catch(e){}}}return n.immediate&&s()&&b(),n.el&&(n.el._bw_subs||(n.el._bw_subs=[]),n.el._bw_subs.push(_)),_},He._fnRegistry={},He._fnIDCounter=0,He.funcRegister=function(e,t){if(!Xe(e,"function"))return"";var r=Xe(t,"string")&&t.length>0?t:"bw_fn_"+He._fnIDCounter++;return He._fnRegistry[r]=e,r},He.funcGetById=function(e,t){return(e=String(e))in He._fnRegistry?He._fnRegistry[e]:Xe(t,"function")?t:function(){Ve('bw.funcGetById: unregistered fn "'+e+'"')}},He.funcGetDispatchStr=function(e,t){return"bw.funcGetById('"+e+"')("+(t=null!=t?String(t):"")+")"},He.funcUnregister=function(e){return e in He._fnRegistry&&(delete He._fnRegistry[e],!0)},He.funcGetRegistry=function(){var e={};for(var t in He._fnRegistry)Fe.call(He._fnRegistry,t)&&(e[t]=He._fnRegistry[t]);return e},He._FUNC_REGISTRY_SHIM='(function(){var bw=window.bw||(window.bw={});if(!bw._fnRegistry)bw._fnRegistry={};bw.funcGetById=function(n){return bw._fnRegistry[n]||function(){console.warn("bw: unregistered fn "+n)};};bw.funcRegister=function(fn,name){var id=name||("bw_fn_"+(bw._fnIDCounter=(bw._fnIDCounter||0)+1));bw._fnRegistry[id]=fn;return id;};window.bw=bw;})();',He._parseBindings=function(e){for(var t,r=[],n=/\$\{([^}]+)\}/g;null!==(t=n.exec(e));)r.push({start:t.index,end:t.index+t[0].length,expr:t[1].trim()});return r},He._evaluatePath=function(e,t){for(var r=t.split("."),n=e,a=0;a<r.length;a++){if(null==n)return He.debug&&Ve('bw.debug: _evaluatePath — null at key "'+r[a]+'" in path "'+t+'"'),"";n=n[r[a]]}return null==n?"":n},He._compiledExprs={},He._resolveTemplate=function(e,t,r){if(!Xe(e,"string")||e.indexOf("${")<0)return e;var n=He._parseBindings(e);if(0===n.length)return e;for(var a="",o=0,i=0;i<n.length;i++){var c,l=n[i];if(a+=e.slice(o,l.start),r){if(!He._compiledExprs[l.expr])try{He._compiledExprs[l.expr]=new Function("state","with(state){return ("+l.expr+");}")}catch(e){He._compiledExprs[l.expr]=function(){return""}}try{c=He._compiledExprs[l.expr](t)}catch(e){He.debug&&Ve('bw.debug: _resolveTemplate — Tier 2 eval failed for "${'+l.expr+'}":',e.message),c=""}}else c=He._evaluatePath(t,l.expr);a+=null==c?"":String(c),o=l.end}return a+=e.slice(o)},He.message=function(e,t,r){var n=He.el(e);if(!n&&Xe(e,"string")&&0!==e.indexOf("#")&&0!==e.indexOf("."))try{n=He.$("."+e)[0]}catch(e){}return n&&n.bw&&"function"==typeof n.bw[t]?(n.bw[t](r),!0):(Ve('bw.message: no handle method "'+t+'" on '+e),!1)},He.formData=function(e){var t=He.el(e);if(!t)return{};for(var r={},n=t.querySelectorAll("input, select, textarea"),a=0;a<n.length;a++){var o=n[a],i=o.name||o.id;if(i)if("checkbox"===o.type)r[i]=o.checked;else if("radio"===o.type)o.checked&&(r[i]=o.value);else if("SELECT"===o.tagName&&o.multiple){r[i]=[];for(var c=0;c<o.options.length;c++)o.options[c].selected&&r[i].push(o.options[c].value)}else r[i]=o.value}return r},He.jsonPatch=function(e,t){if(!Ye(t))return e;function r(e){if(""===e)return[];if("/"!==e.charAt(0))throw new Error("Invalid JSON Pointer: "+e);return e.slice(1).split("/").map(function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")})}function n(e,t){for(var r=e,n=0;n<t.length-1;n++){var a=Ye(r)?parseInt(t[n],10):t[n];if(void 0===r[a])throw new Error("Path not found: /"+t.slice(0,n+1).join("/"));r=r[a]}return{parent:r,key:Ye(r)?parseInt(t[t.length-1],10):t[t.length-1]}}function a(e,t){for(var r=e,n=0;n<t.length;n++){var a=Ye(r)?parseInt(t[n],10):t[n];if(void 0===r[a])throw new Error("Path not found: /"+t.slice(0,n+1).join("/"));r=r[a]}return r}for(var o=0;o<t.length;o++){var i=t[o];if(!i.op||!Xe(i.path,"string"))throw new Error("Invalid patch operation at index "+o);var c,l,s,b,d,_,u=r(i.path);switch(i.op){case"add":if(0===u.length)throw new Error("Cannot add to root");c=n(e,u),Ye(c.parent)&&c.key<=c.parent.length?c.parent.splice(c.key,0,i.value):c.parent[c.key]=i.value;break;case"remove":if(0===u.length)throw new Error("Cannot remove root");if(c=n(e,u),Ye(c.parent)){if(c.key>=c.parent.length)throw new Error("Index out of bounds: "+c.key);c.parent.splice(c.key,1)}else{if(!(c.key in c.parent))throw new Error("Path not found: "+i.path);delete c.parent[c.key]}break;case"replace":if(0===u.length)throw new Error("Cannot replace root");if(c=n(e,u),Ye(c.parent)){if(c.key>=c.parent.length)throw new Error("Index out of bounds: "+c.key)}else if(!(c.key in c.parent))throw new Error("Path not found: "+i.path);c.parent[c.key]=i.value;break;case"move":if(!Xe(i.from,"string"))throw new Error('move requires "from"');l=a(e,s=r(i.from)),b=n(e,s),Ye(b.parent)?b.parent.splice(b.key,1):delete b.parent[b.key],d=n(e,u),Ye(d.parent)&&d.key<=d.parent.length?d.parent.splice(d.key,0,l):d.parent[d.key]=l;break;case"copy":if(!Xe(i.from,"string"))throw new Error('copy requires "from"');l=a(e,r(i.from)),_=n(e,u),Ye(_.parent)&&_.key<=_.parent.length?_.parent.splice(_.key,0,l):_.parent[_.key]=l;break;case"test":var p=a(e,u);if(JSON.stringify(p)!==JSON.stringify(i.value))throw new Error("Test failed: "+i.path+" expected "+JSON.stringify(i.value)+" got "+JSON.stringify(p));break;default:throw new Error("Unknown op: "+i.op)}}return e},He._clientFunctions={},He.parseJSONFlex=function(e){if("r"!==(e=(e||"").trim()).charAt(0))return JSON.parse(e);for(var t=[],r=0,n=(e=e.slice(1)).length;r<n;){var a=e[r];if("'"===a){for(t.push('"'),r++;r<n;){var o=e[r];if("\\"===o&&r+1<n){var i=e[r+1];"'"===i?t.push("'"):(t.push("\\"),t.push(i)),r+=2}else if('"'===o)t.push('\\"'),r++;else{if("'"===o)break;t.push(o),r++}}t.push('"'),r++}else if('"'===a)for(t.push(a),r++;r<n;){var c=e[r];if("\\"===c&&r+1<n)t.push(c),t.push(e[r+1]),r+=2;else if(t.push(c),r++,'"'===c)break}else if(","===a){for(var l=r+1;l<n&&(" "===e[l]||"\t"===e[l]||"\n"===e[l]||"\r"===e[l]);)l++;l<n&&("}"===e[l]||"]"===e[l])||t.push(a),r++}else t.push(a),r++}return JSON.parse(t.join(""))},He.actions=function(){var e=!1;function t(e){if(!e||!e.classList)return null;for(var t=e.classList,r=[],n=0;n<t.length;n++)0===t[n].indexOf("bw_act_")&&r.push(t[n].substring(7));return r}function r(e){for(var t=e;t;){if(t._bw_type)return{uuid:He.getUUID(t),type:t._bw_type};t=t.parentElement}return null}function n(n){if(e)for(var a=n.target;a&&a!==document;){var o=t(a);if(o&&o.length>0){var i=o[0];o.length>1&&He.pub("bw:diag",{code:"act_multiple",tokens:o});var c=a.tagName?a.tagName.toLowerCase():"";"a"!==c&&"form"!==c||n.preventDefault();var l=null,s=null,b=null;if("input"!==c&&"textarea"!==c&&"select"!==c||(l=a.value,s=a.getAttribute("name")),"form"===c){b={};try{new FormData(a).forEach(function(e,t){b[t]=e})}catch(e){}}var d=He.getUUID(a)||a.getAttribute("id")||null,_=r(a.parentElement),u={action:i,value:l,name:s,ref:d,owner:_};return b&&(u.form=b),He.pub("act:"+i,u),void(He.remote&&"function"==typeof He.remote.send&&He.remote.send({v:1,type:"event",action:i,value:l,name:s,ref:d,owner:_}))}a=a.parentElement}}var a=null;function o(){"undefined"!=typeof document&&a!==document&&(a=document,document.addEventListener("click",n,!0),document.addEventListener("change",n,!0),document.addEventListener("input",n,!0),document.addEventListener("submit",n,!0))}return{enable:function(){e=!0,o()},disable:function(){e=!1},_ensureInstalled:function(){e&&o()},_reset:function(){e=!1,a=null}}}(),He.remote=null,He._clientRemotes={},He._wireListeners={},He.registerRemote=function(e,t){He._clientRemotes[e]=t},He.connect=function(e){He.pub("bw:diag",{code:"remote_status",status:"connecting",url:e});var t=new EventSource(e),r={send:function(t){try{var r=new XMLHttpRequest;r.open("POST",e.replace("/events/","/apply/"),!0),r.setRequestHeader("Content-Type","application/json"),r.send(JSON.stringify(t))}catch(e){}},close:function(){t.close()}};return t.onopen=function(){He.pub("bw:diag",{code:"remote_status",status:"connected"})},t.onmessage=function(e){try{He.apply(JSON.parse(e.data))}catch(e){}},t.onerror=function(){He.pub("bw:diag",{code:"remote_status",status:"disconnected"})},He.remote=r,r},He.apply=function(e){if(!e||!e.type)return!1;if("hello"===e.type)return!0;if("batch"!==e.type&&1!==e.v)return He.pub("bw:diag",{code:"wire_rejected",msg:"missing or unknown version",v:e.v}),!1;var t=e.type,r=e.ref;if(void 0!==e.target||void 0!==e.node)return He.pub("bw:diag",{code:"wire_rejected",msg:"v:1 uses ref/taco, not target/node"}),!1;if("mount"===t){var n=He.el(r);return!!n&&(He.mount(n,nt(e.taco)),!0)}if("patch"===t){var a=He.el(r);return!!a&&(void 0!==e.text?He.patch(a,e.text):e.attrs?He.patch(a,e.attrs):e.content&&He.patch(a,nt(e.content)),!0)}if("append"===t){var o=He.el(r);return!!o&&(He.append(o,nt(e.taco)),!0)}if("replace"===t){var i=He.el(r);return!!i&&(He.replace(i,nt(e.taco)),!0)}if("remove"===t){var c=He.el(r);return!!c&&(He.remove(c),!0)}if("refresh"===t){var l=He.el(r);return!!l&&(l._bw_render?(He.refresh(l),!0):(He.pub("bw:diag",{code:"refresh_no_render",ref:r}),!1))}if("update"===t){var s=He.el(r);return!!s&&(He.update(s,e.data),!0)}if("message"===t)return!1!==He.message(r,e.action,e.data);if("batch"===t){if(!Ye(e.ops))return!1;for(var b=!0,d=0;d<e.ops.length;d++)try{He.apply(e.ops[d])||(b=!1)}catch(e){b=!1}return b}if("listen"===t)return!!e.topic&&(He._wireListeners[e.topic]||(He._wireListeners[e.topic]=He.sub(e.topic,function(t){He.remote&&"function"==typeof He.remote.send&&He.remote.send({v:1,type:"topic",topic:e.topic,data:t})})),!0);if("unlisten"===t)return!(!e.topic||!He._wireListeners[e.topic])&&(He._wireListeners[e.topic](),delete He._wireListeners[e.topic],!0);if("call"===t){if(!e.name)return!1;var _=He._clientRemotes[e.name]||He._clientFunctions[e.name];if(!Xe(_,"function"))return!1;try{var u=Ye(e.args)?e.args:[];return _.apply(null,u),!0}catch(e){return!1}}else if("exec"===t||"register"===t)return He.pub("bw:diag",{code:"wire_rejected",msg:t+" is not a valid v:1 verb"}),!1;return He.pub("bw:diag",{code:"wire_rejected",msg:"unknown type: "+t}),!1},He.inspect=function(e,t){var r=He.el(e);if(!r&&Xe(e,"string")&&(r=He.$(e)[0]),!r)return null;return null==t&&(t=3),function e(r,n){if(!r)return null;if(1!==r.nodeType)return null;var a={tag:r.tagName?r.tagName.toLowerCase():"#text"};r.id&&(a.id=r.id);var o=He.getUUID(r);if(o&&(a.uuid=o),r._bw_type&&(a.type=r._bw_type),r.className&&"string"==typeof r.className&&(a.classes=r.className.split(" ").slice(0,5).join(" ")),r.bw){var i=Je(r.bw);i.length>0&&(a.handles=i)}if(r._bw_state&&(a.state=r._bw_state),r._bw_render&&(a.hasRender=!0),r._bw_subs&&r._bw_subs.length>0&&(a.hasSubs=!0),r._bw_refs&&(a.refs=Je(r._bw_refs)),n<t&&r.children&&r.children.length>0){a.children=[];for(var c=Math.min(r.children.length,50),l=0;l<c;l++){var s=e(r.children[l],n+1);s&&a.children.push(s)}r.children.length>50&&a.children.push({tag:"...",count:r.children.length-50})}return a}(r,0)},He.compile=function(){throw new Error("bw.compile() removed in v2.0.19. Use o.handle/o.slots on TACO options instead.")},He.css=function(e,t={}){const{minify:r=!1,pretty:n=!r}=t;if(Xe(e,"string"))return e;let a="";const o=n?" ":"",i=n?"\n":"",c=n?" ":"";return Ye(e)?a=e.map(e=>He.css(e,t)).join(i):Xe(e,"object")&&Object.entries(e).forEach(([e,r])=>{if(Xe(r,"object")){if("@"===e.charAt(0)){const n=He.css(r,t);return void(n&&(a+=`${e}${c}{${i}${n}${i}}${i}`))}const n=Object.entries(r).filter(([,e])=>null!=e).map(([e,t])=>{const r=e.replace(/[A-Z]/g,e=>"-"+e.toLowerCase());return`${o}${r}:${c}${t};`}).join(i);n&&(a+=`${e}${c}{${i}${n}${i}}${i}`)}}),a.trim()},He.injectCSS=function(e,t={}){if(!He._isBrowser)return Ve("bw.injectCSS requires a DOM environment"),null;const{id:r="bw_styles",append:n=!0}=t;r&&/^bw_style_/.test(r)&&!t._internal&&He.pub("bw:diag",{code:"css_reserved_id",ref:r,msg:'id "'+r+'" is in the reserved bw_style_* namespace'});let a=document.getElementById(r);if(!a)if(a=document.createElement("style"),a.id=r,a.type="text/css",/^bw_style_/.test(r)){var o=["bw_style_reset","bw_style_structural","bw_style_global"],i=o.indexOf(r);-1===i&&(i=o.length);for(var c=!1,l=document.head.querySelectorAll('style[id^="bw_style_"]'),s=0;s<l.length;s++){var b=o.indexOf(l[s].id);if(-1===b&&(b=o.length),b>i){document.head.insertBefore(a,l[s]),c=!0;break}}c||document.head.appendChild(a)}else document.head.appendChild(a);He.config&&He.config.cspNonce&&a.setAttribute("nonce",He.config.cspNonce);const d=Xe(e,"string")?e:He.css(e,t);return n&&a.textContent?a.textContent+="\n"+d:a.textContent=d,a},He.s=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];Xe(r,"object")&&Object.assign(e,r)}return e},He.responsive=function(e,t){var r={sm:"576px",md:"768px",lg:"992px",xl:"1200px"},n=[];return Je(t).forEach(function(a){var o={};"base"===a?(o[e]=t[a],n.push(He.css(o))):r[a]&&(o[e]=t[a],n.push("@media (min-width: "+r[a]+") {\n"+He.css(o)+"\n}"))}),n.join("\n")},He.mapScale=function(e,t,r,n,a,o={}){const{clip:i=!1,expScale:c=1}=o;let l=(e-t)/(r-t);1!==c&&(l=Math.pow(l,c));let s=l*(a-n)+n;if(i){const e=Math.min(n,a),t=Math.max(n,a);s=Math.max(e,Math.min(t,s))}return s},He.clip=function(e,t,r){return Math.max(t,Math.min(r,e))},He.$=function(e,t){if(!He._isBrowser)return[];var r;if(r=e?Ye(e)?e:e.nodeType?[e]:void 0===e.length||Xe(e,"string")?Xe(e,"string")?Array.from(document.querySelectorAll(e)):[]:Array.from(e):[],void 0!==t)for(var n=0;n<r.length;n++)We(r[n],t);return r},He.$.one=function(e){return He.$(e)[0]||null},He.makeStyles=function(e){var t=Object.assign({},A,e||{});if(e&&!e.tertiary&&(t.tertiary=t.primary),t.primary&&t.secondary){var r=u(t.primary),n=u(t.secondary),a=(Math.max(r,n)+.05)/(Math.min(r,n)+.05);a<1.5&&He.pub("bw:diag",{code:"contrast_aa",msg:"primary/secondary seeds have near-identical luminance (ratio "+a.toFixed(2)+")"})}var o=v(t),i=function(e){var t=e&&e.spacing||"normal",r=e&&e.radius||"md",n=e&&e.fontSize||1,a=e&&e.typeRatio||"normal",o="string"==typeof a?C[a]||C.normal:a,i=e&&e.elevation||"md",c=e&&e.motion||"standard";return{spacing:"string"==typeof t?x[t]||x.normal:t,radius:"string"==typeof r?k[r]||k.md:r,fontSize:n,typeScale:S(16,o),elevation:"string"==typeof i?L[i]||L.md:i,motion:"string"==typeof c?j[c]||j.standard:c}}(t),c=O("",o,i),l=He.css(c),s=v(g(t)),b=O("",s,i);return b.body={color:s.dark.base,"background-color":s.surface||s.light.base},{css:l,alternateCss:He.css(b),rules:c,alternateRules:b,palette:o,alternatePalette:s,isLightPrimary:h(t)}},He.applyStyles=function(e,t){if(!He._isBrowser)return null;if(!e||!e.rules)return Ve("bw.applyStyles: invalid styles object"),null;if(t&&!ot(t))return null;var r=at(t),n=e.rules;t&&(n=U(n,t));var a=e.alternateRules;if(a){var o=null;if(t&&a.body){o=a.body;var i={};for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&"body"!==c&&(i[c]=a[c]);a=i}t?(a=U(a,t+".bw_theme_alt"),o&&(a[t+".bw_theme_alt"]=o)):a=U(a,".bw_theme_alt")}var l=He.css(n);return a&&(l+="\n"+He.css(a)),He.injectCSS(l,{id:r,append:!1,_internal:!0})},He.loadStyles=function(e,t){He.loadStructural();var r=He.makeStyles(e);return He.applyStyles(r,t),r},He.loadStructural=function(){if(!He._isBrowser)return null;var e=document.getElementById("bw_style_structural");if(e)return e;var t=He.css(q());return He.injectCSS(t,{id:"bw_style_structural",append:!1,_internal:!0})},He.scopeRulesUnder=U,He.loadReset=function(){if(!He._isBrowser)return null;var e,t=document.getElementById("bw_style_reset");return t||He.injectCSS(He.css((e={},Object.assign(e,T.base),e["@media (prefers-reduced-motion: reduce)"]={"*, *::before, *::after":{"animation-duration":"0.01ms !important","animation-iteration-count":"1 !important","transition-duration":"0.01ms !important","scroll-behavior":"auto !important"}},e)),{id:"bw_style_reset",append:!1,_internal:!0})},He.setThemeMode=function(e,t){if(!He._isBrowser)return{mode:"primary",count:0};if(!ot(t))return{mode:e,count:0};var r;r=t?He.$(t):[document.documentElement];for(var n=0;n<r.length;n++)"alternate"===e?r[n].classList.add("bw_theme_alt"):r[n].classList.remove("bw_theme_alt");var a={mode:e,count:r.length};return He.pub("bw:thememode",{mode:e,scope:t||"html",count:r.length}),a},He.toggleThemeMode=function(e){if(!He._isBrowser)return"primary";if(!ot(e))return"primary";var t;if(!(t=e?He.$(e):[document.documentElement]).length)return"primary";for(var r=t[0].classList.contains("bw_theme_alt")?"primary":"alternate",n=0;n<t.length;n++)"alternate"===r?t[n].classList.add("bw_theme_alt"):t[n].classList.remove("bw_theme_alt");return r},He.clearStyles=function(e){if(He._isBrowser){var t=at(e),r=document.getElementById(t);if(r&&r.remove(),e&&"reset"!==e&&"structural"!==e&&"global"!==e)for(var n=He.$(e),a=0;a<n.length;a++)n[a].classList.remove("bw_theme_alt");else e&&"global"!==e||document.documentElement.classList.remove("bw_theme_alt")}},He.hexToHsl=s,He.hslToHex=b,He.adjustLightness=d,He.mixColor=_,He.relativeLuminance=u,He.textOnColor=p,He.deriveShades=f,He.derivePalette=v,He.harmonize=m,He.deriveAlternateSeed=w,He.deriveAlternateConfig=g,He.isLightPalette=h,He.colorParse=l,He.colorRgbToHsl=function(e,t,r,n,o){void 0===n&&(n=255),void 0===o&&(o=!0),Array.isArray(e)&&(t=e[1],r=e[2],n=void 0!==e[3]?e[3]:255,e=e[0]);var i=a(e,t,r);return o&&(i[0]=Math.round(i[0]),i[1]=Math.round(i[1]),i[2]=Math.round(i[2]),n=Math.round(n)),[i[0],i[1],i[2],n,"hsl"]},He.colorHslToRgb=c,He.colorInterp=function(e,t,n,a,o){var c=Array.isArray(a)?a:["#000","#fff"];if(1===(c=0===c.length?["#000","#fff"]:c).length)return c[0];var s=i(e,t,n,0,(c=c.map(function(e){return l(e)})).length-1,{clip:!0,expScale:o}),b=r(Math.floor(s),0,c.length-2),d=s-b,_=function(e){return i(d,0,1,c[b][e],c[b+1][e],{clip:!0})};return[_(0),_(1),_(2),_(3),"rgb"]},He.SPACING_PRESETS=x,He.RADIUS_PRESETS=k,He.TYPE_RATIO_PRESETS=C,He.ELEVATION_PRESETS=L,He.MOTION_PRESETS=j,He.generateTypeScale=S,He.DEFAULT_PALETTE_CONFIG=A,He.THEME_PRESETS=E,He.choice=function(e,t,r){const n=e in t?t[e]:r;return"function"===R(n)?n(e):n},He.arrayUniq=P,He.arrayBinA=function(e,t){return"array"!==R(e)||"array"!==R(t)?[]:P(e.filter(e=>-1!==t.indexOf(e)))},He.arrayBNotInA=function(e,t){return"array"!==R(e)||"array"!==R(t)?[]:P(t.filter(t=>e.indexOf(t)<0))},He.setCookie=function(e,t,r,n={}){if(!He._isBrowser)return;const a=new Date;a.setTime(a.getTime()+24*r*60*60*1e3);let o=`${e}=${t}; expires=${a.toUTCString()}`;n.path&&(o+=`; path=${n.path}`),n.domain&&(o+=`; domain=${n.domain}`),n.secure&&(o+="; secure"),n.sameSite&&(o+=`; samesite=${n.sameSite}`),document.cookie=o},He.getCookie=function(e,t){if(!He._isBrowser)return t;const r=e+"=",n=document.cookie.split(";");for(let e=0;e<n.length;e++){let t=n[e];for(;" "===t.charAt(0);)t=t.substring(1);if(0===t.indexOf(r))return t.substring(r.length,t.length)}return t},He.getURLParam=function(e,t){if(!He._isBrowser||"object"!=typeof window)return t;try{const r=new URLSearchParams(window.location.search);if(!e){const e={};for(const[t,n]of r)e[t]=n||!0;return e}return r.has(e)?r.get(e)||!0:t}catch(e){return t}},He.loremIpsum=function(e,t,r=!0){const n="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. ";"number"!=typeof e&&(e=Math.floor(125*Math.random())+25),void 0===t&&(t=Math.floor(446*Math.random())),t%=446;let a=0;for(;" "===n[t]||/[.,:;!?]/.test(n[t]);)if(t=(t+1)%446,a++,a>=446){t=0,a=0;break}let o=n.substring(t)+n.substring(0,t),i="",c=e+a;for(;c>0;)i+=c<o.length?o.substring(0,c):o,c-=o.length;if(i.length>e&&(i=i.substring(0,e))," "===i[i.length-1]&&(i=i.substring(0,i.length-1)+"."),r){let e=i[0].toUpperCase();e=/[A-Z]/.test(e)?e:"L",i=e+i.substring(1)}return i},He.multiArray=function(e,t){t="number"==typeof t?[t]:t;const r=n=>{if(n>=t.length)return"function"===R(e)?e():e;const a=[];for(let e=0;e<t[n];e++)a[e]=r(n+1);return a};return r(0)},He.naturalCompare=function(e,t){if(isFinite(e)&&isFinite(t))return Math.sign(e-t);const r=String(e).toLowerCase(),n=String(t).toLowerCase();if(r===n)return e>t?1:0;if(!/\d/.test(r)||!/\d/.test(n))return r>n?1:-1;const a=r.match(/(\d+|\D+)/g)||[],o=n.match(/(\d+|\D+)/g)||[],i=Math.min(a.length,o.length);for(let e=0;e<i;e++){const t=a[e],r=o[e];if(t!==r){if(/^\d+$/.test(t)&&/^\d+$/.test(r)){let e=t,n=r;return"0"===t[0]&&(e="0."+t),"0"===r[0]&&(n="0."+r),parseFloat(e)-parseFloat(n)}return t>r?1:-1}}return a.length-o.length},He.setIntervalX=function(e,t,r){let n=0;const a=setInterval(function(){e(n),++n>=r&&clearInterval(a)},t);return a},He.repeatUntil=function(e,t,r,n=250,a=10,o){if("function"!=typeof e)return"err";let i=0;const c=setInterval(function(){const n=e();i++,n?(clearInterval(c),t&&t(n),o&&o(!0,i)):i>=a?(clearInterval(c),r&&r(),o&&o(!1,i)):r&&r()},n);return c},function(e){e.saveClientFile=function(t,r){if(e.isNodeJS())e._getFs().then(function(e){e?e.writeFile(t,r,function(e){e&&console.error("Error saving file:",e)}):console.error("bw.saveClientFile: fs module not available")});else{var n=new Blob([r],{type:"application/octet-stream"}),a=window.URL.createObjectURL(n),o=e.create({t:"a",a:{href:a,download:t,style:"display: none"}});document.body.appendChild(o),o.click(),window.URL.revokeObjectURL(a),document.body.removeChild(o)}},e.saveClientJSON=function(t,r){e.saveClientFile(t,JSON.stringify(r,null,2))},e.loadClientFile=function(t,r,n){var a={parser:"raw"};n&&n.parser&&(a.parser=n.parser);var o="JSON"===a.parser?JSON.parse:function(e){return e};if(e.isNodeJS())e._getFs().then(function(e){e?e.readFile(t,"utf8",function(e,t){if(e)r(null,e);else try{r(o(t),null)}catch(e){r(null,e)}}):r(null,new Error("fs module not available"))});else{var i=new XMLHttpRequest;i.open("GET",t,!0),i.onreadystatechange=function(){if(4===i.readyState)if(i.status>=200&&i.status<300)try{r(o(i.responseText),null)}catch(e){r(null,e)}else r(null,new Error("HTTP "+i.status+": "+t))},i.send(null)}return"BW_OK"},e.loadClientJSON=function(t,r){return e.loadClientFile(t,r,{parser:"JSON"})},e.loadLocalFile=function(t,r){var n={parser:"raw",accept:""};r&&(r.parser&&(n.parser=r.parser),r.accept&&(n.accept=r.accept));var a="JSON"===n.parser?JSON.parse:function(e){return e};if(e.isNodeJS())t(null,"",new Error("bw.loadLocalFile is browser-only. Use bw.loadClientFile() in Node."));else{var o=e.create({t:"input",a:{type:"file",accept:n.accept,style:"display: none"}});o.addEventListener("change",function(){var e=o.files[0];if(e){var r=new FileReader;r.onload=function(r){try{t(a(r.target.result),e.name,null)}catch(r){t(null,e.name,r)}},r.onerror=function(){t(null,e.name,r.error)},r.readAsText(e),o.remove()}else t(null,"",new Error("No file selected"))}),document.body.appendChild(o),o.click()}},e.loadLocalJSON=function(t){e.loadLocalFile(t,{parser:"JSON",accept:".json"})}}(He),He.copyToClipboard=function(e){return navigator.clipboard&&navigator.clipboard.writeText?navigator.clipboard.writeText(e):new Promise((t,r)=>{const n=He.create({t:"textarea",a:{value:e,style:{position:"fixed",top:"-999px",left:"-999px",width:"2em",height:"2em",padding:0,border:"none",outline:"none",boxShadow:"none",background:"transparent"}}});document.body.appendChild(n),n.focus(),n.select();try{const e=document.execCommand("copy");document.body.removeChild(n),e?t():r(new Error("Copy command failed"))}catch(e){document.body.removeChild(n),r(e)}})},He.makeTable=function(e){const{data:t=[],columns:r,className:n="",striped:a=!1,hover:o=!1,sortable:i=!0,onSort:c,sortColumn:l,sortDirection:s="asc",selectable:b=!1,onRowClick:d,rowKey:_,pageSize:u,currentPage:p=1,onPageChange:m}=e;let f="bw_bccl_table";a&&(f+=" bw_bccl_table_striped"),(o||b)&&(f+=" bw_bccl_table_hover"),b&&(f+=" bw_bccl_table_selectable"),n&&(f+=" "+n),f=f.trim();const w=r||(t.length>0?Je(t[0]).map(e=>({key:e,label:e})):[]);let h=l||null,g=s,v=[...t];h&&v.sort((e,t)=>{const r=e[h],n=t[h];if(Xe(r,"number")&&Xe(n,"number"))return"asc"===g?r-n:n-r;const a=String(r||"").toLowerCase(),o=String(n||"").toLowerCase();return"asc"===g?a.localeCompare(o):o.localeCompare(a)});const y=v.length,x=u?Math.max(1,Math.ceil(y/u)):1,k=Math.max(1,Math.min(p,x));if(u){const e=(k-1)*u;v=v.slice(e,e+u)}function C(e,t,r,n){var a=e.querySelector("tbody");if(a)if(n){for(var o={},i=a.querySelectorAll("tr"),c=0;c<i.length;c++){var l=i[c].getAttribute("data-row-key");null!==l&&(o[l]=i[c])}for(var s=e.ownerDocument.createDocumentFragment(),b=0;b<t.length;b++){var d=t[b],_=String(d[n]);if(o[_]){for(var u=o[_],p=u.querySelectorAll("td"),m=0;m<r.length;m++)if(p[m]){var f=r[m].render?r[m].render(d[r[m].key],d):String(d[r[m].key]||"");p[m].textContent!==f&&(p[m].textContent=f)}s.appendChild(u)}else{var w=e.ownerDocument.createElement("tr");w.setAttribute("data-row-key",_);for(var h=0;h<r.length;h++){var g=e.ownerDocument.createElement("td");g.textContent=r[h].render?r[h].render(d[r[h].key],d):String(d[r[h].key]||""),w.appendChild(g)}s.appendChild(w)}}for(;a.firstChild;)a.removeChild(a.firstChild);a.appendChild(s)}else{for(;a.firstChild;)a.removeChild(a.firstChild);for(var v=0;v<t.length;v++){for(var y=e.ownerDocument.createElement("tr"),x=0;x<r.length;x++){var k=e.ownerDocument.createElement("td");k.textContent=r[x].render?r[x].render(t[v][r[x].key],t[v]):String(t[v][r[x].key]||""),y.appendChild(k)}a.appendChild(y)}}}const S={t:"table",a:{class:f},c:[{t:"thead",c:{t:"tr",c:w.map(e=>{var t={scope:"col","data-col-key":e.key};return i&&(t.style={cursor:"pointer",userSelect:"none"}),h===e.key&&(t["aria-sort"]="asc"===g?"ascending":"descending"),{t:"th",a:t,c:[e.label,i&&h===e.key&&{t:"span",a:{style:{marginLeft:"5px"}},c:"asc"===g?"▲":"▼"}].filter(Boolean)}})}},{t:"tbody",c:v.map((e,t)=>{const r=u?(k-1)*u+t:t,n={};return _&&void 0!==e[_]&&(n["data-row-key"]=String(e[_])),(b||d)&&(n.style="cursor:pointer;",n.onclick=function(t){b&&t.currentTarget.classList.toggle("bw_bccl_table_row_selected");d&&d(e,r,t)}),{t:"tr",a:n,c:w.map(t=>({t:"td",c:t.render?t.render(e[t.key],e):String(e[t.key]||"")}))}})}],o:{type:"table",state:{data:t,columns:w,sortColumn:h,sortDirection:g,rowKey:_},handle:{sort:function(e,t,r){var n=e._bw_state||{};r||(r=n.sortColumn===t&&"asc"===n.sortDirection?"desc":"asc"),n.sortColumn=t,n.sortDirection=r,function(e,t,r){for(var n=e.querySelectorAll("th[data-col-key]"),a=0;a<n.length;a++)n[a].removeAttribute("aria-sort");for(var o=0;o<n.length;o++)if(n[o].getAttribute("data-col-key")===t){n[o].setAttribute("aria-sort","asc"===r?"ascending":"descending");break}}(e,t,r);var a=n.data?[...n.data]:[];a.sort(function(e,n){var a=e[t],o=n[t];if("number"==typeof a&&"number"==typeof o)return"asc"===r?a-o:o-a;var i=String(a||"").toLowerCase(),c=String(o||"").toLowerCase();return"asc"===r?i.localeCompare(c):c.localeCompare(i)}),C(e,a,n.columns||w,n.rowKey),c&&c(t,r)},update:function(e,t){if(t){var r=e._bw_state||{};t.data&&(r.data=t.data,C(e,t.data,r.columns||w,r.rowKey))}},setData:function(e,t){var r=e._bw_state||{};r.data=t,C(e,t,r.columns||w,r.rowKey)},getData:function(e){return e._bw_state&&e._bw_state.data||[]}}}};if(!u)return S;const L=[];return L.push({t:"button",a:{class:"bw_bccl_btn bw_bccl_btn_sm",disabled:k<=1?"disabled":void 0,onclick:k>1&&m?function(){m(k-1)}:void 0},c:"Prev"}),L.push({t:"span",a:{style:"margin:0 0.5rem;font-size:0.875rem;"},c:"Page "+k+" of "+x}),L.push({t:"button",a:{class:"bw_bccl_btn bw_bccl_btn_sm",disabled:k>=x?"disabled":void 0,onclick:k<x&&m?function(){m(k+1)}:void 0},c:"Next"}),{t:"div",a:{class:"bw_bccl_table_paginated"},c:[S,{t:"div",a:{class:"bw_bccl_table_pagination",style:"display:flex;align-items:center;justify-content:flex-end;padding:0.5rem 0;gap:0.25rem;"},c:L}]}},He.makeTableFromArray=function(e){const{data:t=[],headerRow:r=!0,columns:n,...a}=e;if(!Ye(t)||0===t.length)return He.makeTable({data:[],columns:n||[],...a});let o,i;if(r&&t.length>0)o=t[0].map(function(e){return String(e)}),i=t.slice(1);else{const e=t[0].length;o=[];for(let t=0;t<e;t++)o.push("col"+t);i=t}const c=i.map(function(e){const t={};return o.forEach(function(r,n){t[r]=void 0!==e[n]?e[n]:""}),t}),l=n||o.map(function(e){return{key:e,label:e}});return He.makeTable({data:c,columns:l,...a})},He.makeBarChart=function(e){const{data:t=[],labelKey:r="label",valueKey:n="value",title:a,color:o="#006666",height:i="200px",formatValue:c,showValues:l=!0,showLabels:s=!0,className:b=""}=e;if(!Ye(t)||0===t.length)return{t:"div",a:{class:("bw_bar_chart_container "+b).trim()},c:""};const d=t.map(function(e){return Number(e[n])||0}),_=Math.max.apply(null,d),u=t.map(function(e,t){const n=d[t],a=_>0?n/_*100:0,i=c?c(n):String(n),b=[];return l&&b.push({t:"div",a:{class:"bw_bar_value"},c:i}),b.push({t:"div",a:{class:"bw_bar",style:"height:"+a+"%;background:"+o+";"}}),s&&b.push({t:"div",a:{class:"bw_bar_label"},c:String(e[r]||"")}),{t:"div",a:{class:"bw_bar_group"},c:b}}),p=[];return a&&p.push({t:"h3",a:{class:"bw_bar_chart_title"},c:a}),p.push({t:"div",a:{class:"bw_bar_chart",style:"height:"+i+";"},c:u}),{t:"div",a:{class:("bw_bar_chart_container "+b).trim()},c:p}},He.makeDataTable=function(e){const{title:t,data:r,columns:n,className:a="",striped:o=!0,hover:i=!0,responsive:c=!0,...l}=e,s=He.makeTable({data:r,columns:n,className:a,striped:o,hover:i,...l}),b=[];return t&&b.push({t:"h5",a:{class:"mb-3"},c:t}),c?b.push({t:"div",a:{class:"table-responsive"},c:s}):b.push(s),{t:"div",a:{class:"bw_bccl_dataTable table-container"},c:b}},He.render=function(e,t,r){try{var n,a=Xe(e,"string")?He.$(e)[0]:e;if(!a)return{el:null,ok:!1,error:"target not found"};switch(t){case"append":n=He.append(a,r);break;case"prepend":n=He.append(a,r,{before:0});break;case"replace":n=He.replace(a,r);break;case"before":if(!a.parentNode)return{el:null,ok:!1,error:"no parent for before"};n=He.append(a.parentNode,r,{before:a});break;case"after":if(!a.parentNode)return{el:null,ok:!1,error:"no parent for after"};n=He.append(a.parentNode,r,{before:a.nextSibling});break;default:return{el:null,ok:!1,error:"invalid position: "+t}}return{el:n,ok:!0,error:null}}catch(e){return{el:null,ok:!1,error:e.message}}},function(e){var t=null;e.router=function(r){if(!r||!r.routes)throw new Error("bw.router: config.routes is required");if(!e._isBrowser)throw new Error("bw.router: requires a browser environment");var n=r.mode||"hash",a=r.base||"/";a.length>1&&"/"===a.charAt(a.length-1)&&(a=a.substring(0,a.length-1));for(var o=r.target||null,i=[],c=Object.keys(r.routes),l=0;l<c.length;l++)i.push({pattern:c[l],handler:r.routes[c[l]]});var s="/",b=!1;function d(){if("hash"===n)return window.location.hash.replace(/^#/,"")||"/";var e=window.location.pathname;return"/"!==a&&0===e.indexOf(a)&&(e=e.substring(a.length)||"/"),e+(window.location.search||"")}function _(t,n){if(!b){var a=s,c=H(t);if(r.before){var l=r.before(c,a);if(!1===l)return;"string"==typeof l&&(c=H(l),t=l)}s=c;var d=Y(i,t);if(d){var _=d.handler(d.params);null!=_&&o&&e.DOM(o,_)}var u=F(t);e.pub("bw:route",{path:c,params:d?d.params:{},query:u,from:a}),r.after&&r.after(c,a)}}function u(){b||_(d())}function p(){b||_(d())}"hash"===n?window.addEventListener("hashchange",u):window.addEventListener("popstate",p),_(d());var m={navigate:function(e,t){if(!b)if(t=t||{},"hash"===n){if(t.replace){var r=window.location;r.replace(r.pathname+r.search+"#"+e)}else window.location.hash=e;H(window.location.hash.replace(/^#/,"")||"/")===H(e)&&_(e)}else{var o=("/"===a?"":a)+e;t.replace?window.history.replaceState(null,"",o):window.history.pushState(null,"",o),_(e)}},current:function(){var e=d(),t=Y(i,e);return{path:s,params:t?t.params:{},query:F(e)}},destroy:function(){b=!0,"hash"===n?window.removeEventListener("hashchange",u):window.removeEventListener("popstate",p),t===m&&(t=null)}};return t=m,m},e.navigate=function(e,r){t?t.navigate(e,r):"undefined"!=typeof console&&console.warn&&console.warn("bw.navigate: no active router")},e.link=function(r,n,a){var o={};if(a)for(var i=Object.keys(a),c=0;c<i.length;c++)o[i[c]]=a[i[c]];return o.href=t?"#"+r:r,o.onclick=function(t){t.preventDefault(),e.navigate(r)},{t:"a",a:o,c:n}},e._router={matchRoute:Y,normalizePath:H,parseQuery:F,getActiveRouter:function(){return t},resetActiveRouter:function(){t=null}}}(He),Object.entries(Pe).forEach(([e,t])=>{e.startsWith("make")&&(He[e]=t)}),He.make=Re,He.BCCL=De,He.BCCL.table={make:He.makeTable},He.BCCL.tableFromArray={make:He.makeTableFromArray},He.BCCL.dataTable={make:He.makeDataTable},He.BCCL.barChart={make:He.makeBarChart},He.variantClass=J,He.catalog=function(e){if(e){var t=He.BCCL[e];return t?{type:e,factory:t.make.name||"make"+e.charAt(0).toUpperCase()+e.slice(1)}:null}return Object.keys(He.BCCL).map(function(e){return{type:e,factory:He.BCCL[e].make.name||"make"+e.charAt(0).toUpperCase()+e.slice(1)}})},He._isBrowser&&"undefined"!=typeof window&&(window.__bitwrench&&console.warn("bitwrench: already loaded (v"+window.__bitwrench+"); loading v"+He.version+" over it."),window.__bitwrench=He.version,window.bw=He);export{De as BCCL,He as default,Re as make,xe as makeAccordion,te as makeAlert,Ae as makeAvatar,re as makeBadge,oe as makeBreadcrumb,X as makeButton,ye as makeButtonGroup,fe as makeCTA,G as makeCard,Ee as makeCarousel,de as makeCheckbox,Ue as makeChipInput,he as makeCodeDemo,K as makeCol,V as makeContainer,Se as makeDropdown,me as makeFeatureGrid,Te as makeFileUpload,ie as makeForm,ce as makeFormGroup,pe as makeHero,le as makeInput,ae as makeListGroup,Ie as makeMediaObject,ke as makeModal,Z as makeNav,Q as makeNavbar,ge as makePagination,Me as makePopover,ne as makeProgress,ve as makeRadio,Oe as makeRange,W as makeRow,$e as makeSearchInput,we as makeSection,be as makeSelect,je as makeSkeleton,ue as makeSpinner,_e as makeStack,Ne as makeStatCard,qe as makeStepper,Le as makeSwitch,ee as makeTabs,se as makeTextarea,Be as makeTimeline,Ce as makeToast,ze as makeTooltip,J as variantClass};
100
3
  //# sourceMappingURL=bitwrench.esm.min.js.map