bitwrench 2.0.14 → 2.0.15

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 (45) hide show
  1. package/dist/bitwrench-code-edit.cjs.js +46 -46
  2. package/dist/bitwrench-code-edit.cjs.min.js +16 -0
  3. package/dist/bitwrench-code-edit.es5.js +8 -8
  4. package/dist/bitwrench-code-edit.es5.min.js +2 -2
  5. package/dist/bitwrench-code-edit.esm.js +46 -46
  6. package/dist/bitwrench-code-edit.esm.min.js +2 -2
  7. package/dist/bitwrench-code-edit.umd.js +46 -46
  8. package/dist/bitwrench-code-edit.umd.min.js +2 -2
  9. package/dist/bitwrench-lean.cjs.js +4551 -3272
  10. package/dist/bitwrench-lean.cjs.min.js +35 -6
  11. package/dist/bitwrench-lean.es5.js +5747 -4414
  12. package/dist/bitwrench-lean.es5.min.js +32 -3
  13. package/dist/bitwrench-lean.esm.js +4551 -3272
  14. package/dist/bitwrench-lean.esm.min.js +35 -6
  15. package/dist/bitwrench-lean.umd.js +4551 -3272
  16. package/dist/bitwrench-lean.umd.min.js +35 -6
  17. package/dist/bitwrench.cjs.js +4739 -3720
  18. package/dist/bitwrench.cjs.min.js +38 -8
  19. package/dist/bitwrench.css +2253 -6041
  20. package/dist/bitwrench.es5.js +6234 -5130
  21. package/dist/bitwrench.es5.min.js +34 -5
  22. package/dist/bitwrench.esm.js +4739 -3720
  23. package/dist/bitwrench.esm.min.js +38 -8
  24. package/dist/bitwrench.min.css +1 -0
  25. package/dist/bitwrench.umd.js +4739 -3720
  26. package/dist/bitwrench.umd.min.js +38 -8
  27. package/dist/builds.json +89 -67
  28. package/dist/sri.json +28 -26
  29. package/package.json +7 -5
  30. package/readme.html +10 -10
  31. package/src/{bitwrench-components-v2.js → bitwrench-bccl.js} +396 -647
  32. package/src/bitwrench-code-edit.js +45 -45
  33. package/src/bitwrench-color-utils.js +25 -18
  34. package/src/bitwrench-components-stub.js +4 -1
  35. package/src/bitwrench-file-ops.js +180 -0
  36. package/src/bitwrench-lean.js +2 -2
  37. package/src/bitwrench-styles.js +1275 -4029
  38. package/src/bitwrench-utils.js +458 -0
  39. package/src/bitwrench.js +1686 -1293
  40. package/src/cli/layout-default.js +18 -18
  41. package/src/generate-css.js +73 -53
  42. package/src/version.js +3 -3
  43. package/src/bitwrench-component-base.js +0 -736
  44. package/src/bitwrench-components-inline.js +0 -374
  45. package/src/bitwrench-components.js +0 -610
@@ -1,5 +1,5 @@
1
- /*! bitwrench-lean v2.0.14 | BSD-2-Clause | https://deftio.github.com/bitwrench/pages */
2
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).bw=t()}(this,function(){"use strict";function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r<t;r++)o[r]=e[r];return o}function t(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t);if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,o)}return r}function o(e){for(var o=1;o<arguments.length;o++){var n=null!=arguments[o]?arguments[o]:{};o%2?r(Object(n),!0).forEach(function(r){t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function n(e,t){if(null==e)return{};var r,o,n=function(e,t){if(null==e)return{};var r={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;r[o]=e[o]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,n,a,i,l=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t);else for(;!(s=(o=a.call(r)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw n}}return l}}(e,t)||s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||s(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function s(t,r){if(t){if("string"==typeof t)return e(t,r);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?e(t,r):void 0}}var c,d,b={version:"2.0.14",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-03-08T08:04:06.572Z"};
1
+ /*! bitwrench-lean v2.0.15 | BSD-2-Clause | https://deftio.github.com/bitwrench/pages */
2
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).bw=t()}(this,function(){"use strict";function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r<t;r++)o[r]=e[r];return o}function t(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t);if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,o)}return r}function o(e){for(var o=1;o<arguments.length;o++){var n=null!=arguments[o]?arguments[o]:{};o%2?r(Object(n),!0).forEach(function(r){t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function n(e,t){if(null==e)return{};var r,o,n=function(e,t){if(null==e)return{};var r={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;r[o]=e[o]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,n,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(l=(o=i.call(r)).done)&&(s.push(o.value),s.length!==t);l=!0);}catch(e){c=!0,n=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return s}}(e,t)||l(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||l(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function l(t,r){if(t){if("string"==typeof t)return e(t,r);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?e(t,r):void 0}}var c={version:"2.0.15",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-03-10T09:08:17.015Z"};
3
3
  /**
4
4
  * Bitwrench Color Utilities
5
5
  *
@@ -8,6 +8,35 @@
8
8
  * bw.colorParse, bw.colorRgbToHsl, etc.
9
9
  *
10
10
  * @module bitwrench-color-utils
11
+ * @license BSD-2-Clause
12
+ * @copy Manu Chatterjee @deftio
13
+ */function d(e){return("0"+e.toString(16)).slice(-2)}function b(e,t,r){return Math.max(t,Math.min(r,e))}function _(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"],n=0;n<e.length&&n<o.length;n++)o[n]=e[n];return o}if("#"===(e=String(e).replace(/\s/g,""))[0]){var i=e.slice(1);if(3===i.length||4===i.length)for(var a=0;a<i.length;a++)r[a]=parseInt(i[a]+i[a],16);else if(6===i.length||8===i.length)for(var s=0;s<i.length;s+=2)r[s/2]=parseInt(i.substring(s,s+2),16)}else{var l=e.match(/^(rgb|hsl)a?\(([^)]+)\)$/i);if(l){var c=l[1].toLowerCase(),d=l[2].split(",").map(function(e){return parseFloat(e)});if("rgb"===c)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,r[4]="rgb";else if("hsl"===c){return u(d[0]||0,d[1]||0,d[2]||0,void 0!==d[3]?255*d[3]:t)}}}return r}function p(e,t,r,o,n){void 0===o&&(o=255),void 0===n&&(n=!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 i,a,s=Math.max(e,t,r),l=Math.min(e,t,r),c=(s+l)/2;if(s===l)i=a=0;else{var d=s-l;switch(a=c>.5?d/(2-s-l):d/(s+l),s){case e:i=((t-r)/d+(t<r?6:0))/6;break;case t:i=((r-e)/d+2)/6;break;case r:i=((e-t)/d+4)/6}}return i*=360,a*=100,c*=100,n&&(i=Math.round(i),a=Math.round(a),c=Math.round(c),o=Math.round(o)),[i,a,c,o,"hsl"]}function u(e,t,r,o,n){void 0===o&&(o=255),void 0===n&&(n=!0),Array.isArray(e)&&(t=e[1],r=e[2],o=void 0!==e[3]?e[3]:255,e=e[0]);var i,a,s,l=e/360,c=t/100,d=r/100;if(0===c)i=a=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,p=2*d-_;i=255*b(p,_,l+1/3),a=255*b(p,_,l),s=255*b(p,_,l-1/3)}return n&&(i=Math.round(i),a=Math.round(a),s=Math.round(s),o=Math.round(o)),[i,a,s,o,"rgb"]}function m(e){var t=_(e),r=p(t[0],t[1],t[2],255,!1);return[r[0],r[1],r[2]]}function f(e){var t=u(e[0],e[1],e[2],255,!0);return"#"+d(t[0])+d(t[1])+d(t[2])}function h(e,t){var r=m(e);return r[2]=b(r[2]+t,0,100),f(r)}function w(e,t,r){var o=_(e),n=_(t),i=Math.round(o[0]+(n[0]-o[0])*r),a=Math.round(o[1]+(n[1]-o[1])*r),s=Math.round(o[2]+(n[2]-o[2])*r);return"#"+d(i)+d(a)+d(s)}function g(e){var t=_(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 v(e){return g(e)>.179?"#000":"#fff"}function y(e,t,r){if(void 0===r&&(r=.2),0===r)return e;var o=m(e),n=m(t)[0]-o[0];return n>180&&(n-=360),n<-180&&(n+=360),f([(o[0]+n*r+360)%360,o[1],o[2]])}function x(e){var t=_(e);return{base:e,hover:h(e,-10),active:h(e,-15),light:w(e,"#ffffff",.85),darkText:h(e,-40),border:w(e,"#ffffff",.6),focus:"rgba("+t[0]+","+t[1]+","+t[2]+",0.25)",textOn:v(e)}}function k(e){var t,r,o=m(e),n=o[0],i=o[1],a=o[2];return a>50?(t=b(100-a-10,8,40),r=b(.85*i,0,100)):(t=b(100-a+10,60,92),r=b(1.1*i,0,100)),f([n,r,t])}function j(e){var t=g(e.primary);return e.secondary&&(t=(t+g(e.secondary))/2),e.tertiary&&(t=(2*t+g(e.tertiary))/3),t>.179}function C(e){var t={};t.primary=k(e.primary),t.secondary=k(e.secondary),t.tertiary=e.tertiary?k(e.tertiary):t.primary;var r=m(e.primary),o=r[0];j(e)?(t.light=f([o,Math.min(r[1],15),15]),t.dark=f([o,5,88])):(t.light=f([o,Math.min(r[1],10),96]),t.dark=f([o,10,18]));for(var n=void 0!==e.harmonize?e.harmonize:.2,i={success:"#198754",danger:"#dc3545",warning:"#f0ad4e",info:"#17a2b8"},a=["success","danger","warning","info"],s=0;s<a.length;s++){var l=a[s],c=y(e[l]||i[l],e.primary,n);t[l]=k(c)}return t.harmonize=0,t}function O(e){var t=void 0!==e.harmonize?e.harmonize:.2,r=e.primary,o=m(r)[0],n=y(e.success||"#198754",r,t),i=y(e.danger||"#dc3545",r,t),a=y(e.warning||"#f0ad4e",r,t),s=y(e.info||"#17a2b8",r,t),l=e.light||f([o,8,97]),c=e.dark||f([o,10,13]),d=e.background||"#ffffff",b=e.surface||"#f8f9fa";return{primary:x(e.primary),secondary:x(e.secondary),tertiary:x(e.tertiary),success:x(n),danger:x(i),warning:x(a),info:x(s),light:x(l),dark:x(c),background:d,surface:b}}var A="0.25rem",S="0.5rem",z="0.75rem",M="1rem",T="1.5rem",E="2rem",I={compact:{btn:A+" "+z,card:z+" "+M,alert:S+" "+M,cell:S+" "+z,input:A+" "+z},normal:{btn:S+" "+M,card:T+" "+T,alert:z+" "+T,cell:z+" "+M,input:S+" "+z},spacious:{btn:z+" "+T,card:E+" "+E,alert:M+" "+T,cell:M+" "+T,input:z+" "+M}},P={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"}},D={tight:1.125,normal:1.2,relaxed:1.25,dramatic:1.333};function L(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 N={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.08)",md:"0 2px 6px rgba(0,0,0,0.12)",lg:"0 4px 12px rgba(0,0,0,0.16)",xl:"0 8px 24px rgba(0,0,0,0.20)"},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)"}},B={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)"}},F={primary:"#006666",secondary:"#6c757d",tertiary:"#006666",success:"#198754",danger:"#dc3545",warning:"#b38600",info:"#0891b2",light:"#f8f9fa",dark:"#212529"};function R(e,t){return e?t.includes(",")?t.split(",").map(function(t){return"."+e+" "+t.trim()}).join(", "):"."+e+" "+t:t}function U(e,t,r){return Object.assign({},function(e,t){var r={},o=t.background||"#f5f5f5",n={color:t.dark.base,"background-color":o};return r[R(e,"body")]=n,e&&(r["."+e]=n),r}(e,t),function(e,t,r){var o=r.motion,n={};return n[R(e,"a")]={color:t.primary.base,"text-decoration":"none",transition:"color "+o.fast+" "+o.easing},n[R(e,"a:hover")]={color:t.primary.hover,"text-decoration":"underline"},n}(e,t,r),function(e,t,r){var o={},n=r.spacing,i=r.radius;return o[R(e,".bw_btn")]={padding:n.btn,"border-radius":i.btn},o[R(e,".bw_btn:focus-visible")]={outline:"2px solid currentColor","outline-offset":"2px","box-shadow":"0 0 0 3px "+t.primary.focus},o[R(e,".bw_btn_lg")]={padding:"0.625rem 1.5rem","font-size":"1rem","border-radius":"50rem"===i.btn?"50rem":parseInt(i.btn)+2+"px"},o[R(e,".bw_btn_sm")]={padding:"0.25rem 0.75rem","font-size":"0.8125rem","border-radius":"50rem"===i.btn?"50rem":Math.max(parseInt(i.btn)-1,0)+"px"},o}(e,t,r),function(e,t,r){var o={},n=r.spacing,i=r.radius;return o[R(e,".bw_alert")]={padding:n.alert,"border-radius":i.alert},o}(e,0,r),function(e,t,r){var o={},n=r.spacing,i=r.radius,a=r.elevation,s=r.motion;return o[R(e,".bw_card")]={"background-color":t.surface||"#fff",border:"1px solid "+t.light.border,"border-radius":i.card,"box-shadow":a.sm,transition:"box-shadow "+s.normal+" "+s.easing+", transform "+s.normal+" "+s.easing},o[R(e,".bw_card:hover")]={"box-shadow":a.md},o[R(e,".bw_card_hoverable:hover")]={"box-shadow":a.lg},o[R(e,".bw_card_body")]={padding:n.card},o[R(e,".bw_card_header")]={padding:n.card.split(" ").map(function(e){return(.7*parseFloat(e)).toFixed(3).replace(/\.?0+$/,"")+"rem"}).join(" "),"background-color":t.light.light,"border-bottom":"1px solid "+t.light.border},o[R(e,".bw_card_footer")]={"background-color":t.light.light,"border-top":"1px solid "+t.light.border,color:t.secondary.base},o[R(e,".bw_card_title")]={color:t.dark.base},o[R(e,".bw_card_subtitle")]={color:t.secondary.base},o}(e,t,r),function(e,t,r){var o={},n=r.spacing,i=r.radius;return o[R(e,".bw_form_control")]={padding:n.input,"border-radius":i.input,color:t.dark.base,"background-color":t.surface||"#fff","border-color":t.light.border},o[R(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[R(e,".bw_form_control::placeholder")]={color:t.secondary.base},o[R(e,".bw_form_label")]={color:t.dark.base},o[R(e,".bw_form_text")]={color:t.secondary.base},o[R(e,".bw_form_check_input:checked")]={"background-color":t.primary.base,"border-color":t.primary.base},o[R(e,".bw_form_check_input:focus")]={"box-shadow":"0 0 0 0.25rem "+t.primary.focus},o[R(e,".bw_form_control.bw_is_valid")]={"border-color":t.success.base},o[R(e,".bw_form_control.bw_is_valid:focus")]={"border-color":t.success.base,"box-shadow":"0 0 0 0.2rem "+t.success.focus},o[R(e,".bw_form_control.bw_is_invalid")]={"border-color":t.danger.base},o[R(e,".bw_form_control.bw_is_invalid:focus")]={"border-color":t.danger.base,"box-shadow":"0 0 0 0.2rem "+t.danger.focus},o[R(e,".bw_form_select")]={padding:n.input,"border-radius":i.input,color:t.dark.base,"background-color":t.surface||"#fff","border-color":t.light.border},o[R(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){var r={};return r[R(e,".bw_navbar")]={"background-color":t.light.light,"border-bottom-color":t.light.border},r[R(e,".bw_navbar_brand")]={color:t.dark.base},r[R(e,".bw_navbar_nav .bw_nav_link")]={color:t.secondary.base},r[R(e,".bw_navbar_nav .bw_nav_link:hover")]={color:t.dark.base},r[R(e,".bw_navbar_nav .bw_nav_link.active")]={color:t.primary.base,"background-color":t.primary.focus},r[R(e,".bw_navbar_dark")]={"background-color":t.dark.base,"border-bottom-color":t.dark.hover},r[R(e,".bw_navbar_dark .bw_navbar_brand")]={color:t.light.base},r[R(e,".bw_navbar_dark .bw_nav_link")]={color:"rgba(255,255,255,.65)"},r[R(e,".bw_navbar_dark .bw_nav_link:hover")]={color:"#fff"},r[R(e,".bw_navbar_dark .bw_nav_link.active")]={color:"#fff","font-weight":"600"},r[R(e,".bw_nav_pills .bw_nav_link.active")]={color:t.primary.textOn,"background-color":t.primary.base},r}(e,t),function(e,t,r){var o={},n=r.spacing;return o[R(e,".bw_table")]={color:t.dark.base,"border-color":t.light.border},o[R(e,".bw_table > :not(caption) > * > *")]={padding:n.cell,"border-bottom-color":t.light.border},o[R(e,".bw_table > thead > tr > *")]={color:t.secondary.base,"border-bottom-color":t.light.border,"background-color":t.light.light},o[R(e,".bw_table_striped > tbody > tr:nth-of-type(odd) > *")]={"background-color":"rgba(0, 0, 0, 0.05)"},o[R(e,".bw_table_hover > tbody > tr:hover > *")]={"background-color":t.primary.focus},o[R(e,".bw_table_bordered")]={"border-color":t.light.border},o[R(e,".bw_table caption")]={color:t.secondary.base},o}(e,t,r),function(e,t){var r={};return r[R(e,".bw_nav_tabs")]={"border-bottom-color":t.light.border},r[R(e,".bw_nav_link")]={color:t.secondary.base},r[R(e,".bw_nav_tabs .bw_nav_link:hover")]={color:t.dark.base,"border-bottom-color":t.light.border},r[R(e,".bw_nav_tabs .bw_nav_link.active")]={color:t.primary.base,"border-bottom":"2px solid "+t.primary.base},r}(e,t),function(e,t,r){var o={},n=r.spacing;return o[R(e,".bw_list_group_item")]={padding:n.cell,color:t.dark.base,"background-color":t.surface||"#fff","border-color":t.light.border},o[R(e,"a.bw_list_group_item:hover")]={"background-color":t.light.light,color:t.dark.hover},o[R(e,".bw_list_group_item.active")]={color:t.primary.textOn,"background-color":t.primary.base,"border-color":t.primary.base},o[R(e,".bw_list_group_item.disabled")]={color:t.secondary.base,"background-color":t.surface||"#fff"},o}(e,t,r),function(e,t){var r={};return r[R(e,".bw_page_link")]={color:t.primary.base,"background-color":t.surface||"#fff","border-color":t.light.border},r[R(e,".bw_page_link:hover")]={color:t.primary.hover,"background-color":t.light.light,"border-color":t.light.border},r[R(e,".bw_page_link:focus")]={outline:"2px solid "+t.primary.base,"outline-offset":"-2px"},r[R(e,".bw_page_item.bw_active .bw_page_link")]={color:t.primary.textOn,"background-color":t.primary.base,"border-color":t.primary.base},r[R(e,".bw_page_item.bw_disabled .bw_page_link")]={color:t.secondary.base,"background-color":t.surface||"#fff","border-color":t.light.border},r}(e,t),function(e,t){var r={};return r[R(e,".bw_progress")]={"background-color":t.light.light,"box-shadow":"inset 0 1px 2px rgba(0,0,0,.1)"},r[R(e,".bw_progress_bar")]={color:"#fff","background-color":t.primary.base,"box-shadow":"inset 0 -1px 0 rgba(0,0,0,.15)"},r}(e,t),function(e,t){var r={};return r[R(e,".bw_breadcrumb_item + .bw_breadcrumb_item::before")]={color:t.secondary.base},r[R(e,".bw_breadcrumb_item.active")]={color:t.secondary.base},r[R(e,".bw_breadcrumb_item a:hover")]={color:t.primary.hover,"text-decoration":"underline"},r}(e,t),function(e,t){var r={};return r[R(e,".bw_close")]={color:t.dark.base,opacity:"0.5"},r[R(e,".bw_close:focus")]={"box-shadow":"0 0 0 0.25rem "+t.primary.focus},r}(e,t),function(e,t){var r={};return r[R(e,".bw_section_subtitle")]={color:t.secondary.base},r[R(e,".bw_feature_description")]={color:t.secondary.base},r[R(e,".bw_cta_description")]={color:t.secondary.base},r}(e,t),function(e,t){var r={};return r[R(e,".bw_accordion_item")]={"background-color":t.surface||"#fff","border-color":t.light.border},r[R(e,".bw_accordion_button")]={color:t.dark.base},r[R(e,".bw_accordion_button:not(.bw_collapsed)")]={color:t.primary.darkText,"background-color":t.primary.light},r[R(e,".bw_accordion_button:hover")]={"background-color":t.light.light},r[R(e,".bw_accordion_button:not(.bw_collapsed):hover")]={"background-color":t.primary.hover},r[R(e,".bw_accordion_button:focus-visible")]={"box-shadow":"0 0 0 0.2rem "+t.primary.focus},r[R(e,".bw_accordion_body")]={"border-top":"1px solid "+t.light.border},r}(e,t),function(e,t){var r={};return r[R(e,".bw_carousel")]={"background-color":t.light.light},r[R(e,".bw_carousel_indicator.active")]={"background-color":t.primary.base},r[R(e,".bw_carousel_control")]={"background-color":"rgba(0,0,0,0.4)",color:"#fff"},r[R(e,".bw_carousel_control:hover")]={"background-color":"rgba(0,0,0,0.6)"},r[R(e,".bw_carousel_caption")]={background:"linear-gradient(transparent, rgba(0,0,0,0.6))",color:"#fff"},r}(e,t),function(e,t,r){var o={};return o[R(e,".bw_modal_content")]={"background-color":t.surface||"#fff","border-color":t.light.border,"box-shadow":r.elevation.lg},o[R(e,".bw_modal_header")]={"border-bottom-color":t.light.border},o[R(e,".bw_modal_footer")]={"border-top-color":t.light.border},o[R(e,".bw_modal_title")]={color:t.dark.base},o}(e,t,r),function(e,t,r){var o={};return o[R(e,".bw_toast")]={"background-color":t.surface||"#fff","border-color":"rgba(0,0,0,0.1)","box-shadow":r.elevation.lg},o[R(e,".bw_toast_header")]={"border-bottom-color":"rgba(0,0,0,0.05)"},o}(e,t,r),function(e,t,r){var o={};return o[R(e,".bw_dropdown_menu")]={"background-color":t.surface||"#fff","border-color":t.light.border,"box-shadow":r.elevation.md},o[R(e,".bw_dropdown_item")]={color:t.dark.base},o[R(e,".bw_dropdown_item:hover")]={color:t.dark.hover,"background-color":t.light.light},o[R(e,".bw_dropdown_item.disabled")]={color:t.secondary.base},o[R(e,".bw_dropdown_divider")]={"border-top-color":t.light.border},o}(e,t,r),function(e,t){var r={};return r[R(e,".bw_form_switch .bw_switch_input")]={"background-color":t.secondary.base,"border-color":t.secondary.base},r[R(e,".bw_form_switch .bw_switch_input:checked")]={"background-color":t.primary.base,"border-color":t.primary.base},r[R(e,".bw_form_switch .bw_switch_input:focus")]={"box-shadow":"0 0 0 0.25rem "+t.primary.focus},r}(e,t),function(e,t){var r={};return r[R(e,".bw_skeleton")]={background:"linear-gradient(90deg, "+t.light.border+" 25%, "+t.light.light+" 37%, "+t.light.border+" 63%)"},r}(e,t),function(e,t){var r={};return r[R(e,".bw_stat_change_up")]={color:t.success.base},r[R(e,".bw_stat_change_down")]={color:t.danger.base},r}(e,t),function(e,t){var r={};return r[R(e,".bw_timeline::before")]={"background-color":t.light.border},r[R(e,".bw_timeline_date")]={color:t.secondary.base},r}(e,t),function(e,t){var r={};return r[R(e,".bw_step_indicator")]={"background-color":t.light.light,border:"2px solid "+t.light.border,color:t.secondary.base},r[R(e,".bw_step + .bw_step::before")]={"background-color":t.light.border},r[R(e,".bw_step_active .bw_step_indicator")]={"background-color":t.primary.base,color:t.primary.textOn},r[R(e,".bw_step_active .bw_step_label")]={color:t.dark.base,"font-weight":"600"},r[R(e,".bw_step_completed .bw_step_indicator")]={"background-color":t.primary.base,color:t.primary.textOn},r[R(e,".bw_step_completed .bw_step_label")]={color:t.primary.base},r[R(e,".bw_step_completed + .bw_step::before")]={"background-color":t.primary.base},r}(e,t),function(e,t){var r={};return r[R(e,".bw_chip_input")]={"border-color":t.light.border},r[R(e,".bw_chip_input:focus-within")]={"border-color":t.primary.base,"box-shadow":"0 0 0 0.2rem "+t.primary.focus},r[R(e,".bw_chip")]={"background-color":t.light.light,color:t.dark.base},r[R(e,".bw_chip_remove:hover")]={color:t.danger.base,"background-color":t.danger.light},r}(e,t),function(e,t){var r={};return r[R(e,".bw_file_upload")]={"border-color":t.light.border,"background-color":t.light.light},r[R(e,".bw_file_upload:hover")]={"border-color":t.primary.base,"background-color":t.primary.light},r[R(e,".bw_file_upload:focus")]={outline:"2px solid "+t.primary.base,"outline-offset":"2px"},r[R(e,".bw_file_upload.bw_file_upload_active")]={"border-color":t.primary.base,"background-color":t.primary.light,"border-style":"solid"},r}(e,t),function(e,t){var r={};return r[R(e,".bw_range")]={"background-color":t.light.border},r[R(e,".bw_range::-webkit-slider-thumb")]={"background-color":t.primary.base,"border-color":"#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[R(e,".bw_range::-moz-range-thumb")]={"background-color":t.primary.base,"border-color":"#fff","box-shadow":"0 1px 3px rgba(0,0,0,0.2)"},r}(e,t),function(e,t){var r={};return r[R(e,".bw_search_clear:hover")]={color:t.dark.base},r}(e,t),function(e,t){var r={};return r[R(e,".bw_code_copy_btn_copied")]={background:t.success.base,color:t.success.textOn,"border-color":t.success.base},r[R(e,".bw_copy_btn:hover")]={background:"rgba(255,255,255,0.2)",color:"#fff"},r}(e,t),function(e,t,r){var o={},n=r.radius;return o[R(e,".bw_nav_pills .bw_nav_link")]={"border-radius":n.btn},o}(e,0,r),function(e,t){var r={};return Object.keys(t).forEach(function(o){if("object"===s(t[o])){var n=t[o];r[R(e,".bw_"+o)]={"background-color":n.base,color:n.textOn,"border-color":n.base},r[R(e,".bw_"+o+":hover")]={"background-color":n.hover,"border-color":n.active},r[R(e,".bw_"+o+":active")]={"background-color":n.active},r[R(e,".bw_"+o+":focus-visible")]={"box-shadow":"0 0 0 3px "+n.focus,outline:"none"},r[R(e,".bw_alert.bw_"+o)]={"background-color":n.light,color:n.darkText,"border-color":n.border},r[R(e,".bw_toast.bw_"+o)]={"background-color":"inherit",color:"inherit","border-left":"4px solid "+n.base},r[R(e,".bw_stat_card.bw_"+o)]={"background-color":"inherit",color:"inherit","border-left-color":n.base},r[R(e,".bw_card.bw_"+o)]={"background-color":"inherit",color:"inherit","border-left":"4px solid "+n.base},r[R(e,".bw_timeline_marker.bw_"+o)]={"box-shadow":"0 0 0 2px "+n.base},r[R(e,".bw_spinner_border.bw_"+o+",\n"+R(e,".bw_spinner_grow.bw_"+o))]={"background-color":"transparent",color:n.base,"border-color":"currentColor"},r[R(e,".bw_btn_outline.bw_"+o)]={"background-color":"transparent",color:n.base,"border-color":n.base},r[R(e,".bw_btn_outline.bw_"+o+":hover")]={"background-color":n.base,color:n.textOn},r[R(e,".bw_hero.bw_"+o)]={background:"linear-gradient(135deg, "+n.base+" 0%, "+n.hover+" 100%)",color:n.textOn},r[R(e,".bw_progress_bar.bw_"+o)]={color:"#fff"}}}),r[R(e,".bw_text_muted")]={color:t.secondary.base},r}(e,t))}var $={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":"15px","padding-left":"15px","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":{transition:"all 0.3s ease-out"},".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"},".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_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"},".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","text-decoration":"none",cursor:"pointer",border:"none",background:"transparent","font-family":"inherit"},".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"},".bw_page_item:first-child .bw_page_link":{"margin-left":"0","border-top-left-radius":"0.375rem","border-bottom-left-radius":"0.375rem"},".bw_page_item:last-child .bw_page_link":{"border-top-right-radius":"0.375rem","border-bottom-right-radius":"0.375rem"},".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"},".bw_close:hover":{opacity:"0.75"}},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"},".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%","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"},".bw_accordion_button:not(.bw_collapsed)::after":{transform:"rotate(-180deg)"},".bw_accordion_collapse":{"max-height":"0",overflow:"hidden"},".bw_accordion_collapse.bw_collapse_show":{"max-height":"none"},".bw_accordion_item:first-child":{"border-top-left-radius":"8px","border-top-right-radius":"8px"},".bw_accordion_item:last-child":{"border-bottom-left-radius":"8px","border-bottom-right-radius":"8px"}},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_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"},".bw_modal.bw_modal_show":{opacity:"1",visibility:"visible","pointer-events":"auto"},".bw_modal_dialog":{position:"relative",width:"100%","max-width":"500px",margin:"1.75rem auto","pointer-events":"none"},".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"},".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"},".bw_modal_footer":{display:"flex","flex-wrap":"wrap","align-items":"center","justify-content":"flex-end",gap:"0.5rem"}},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":"100%","background-clip":"padding-box",opacity:"0"},".bw_toast.bw_toast_show":{opacity:"1",transform:"translateY(0)"},".bw_toast.bw_toast_hiding":{opacity:"0"},".bw_toast_header":{display:"flex","align-items":"center","justify-content":"space-between","font-size":"0.875rem"},".bw_toast_body":{"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",opacity:"0",visibility:"hidden","pointer-events":"none"},".bw_dropdown_menu.bw_dropdown_show":{opacity:"1",visibility:"visible","pointer-events":"auto"},".bw_dropdown_menu_end":{left:"auto",right:"0"},".bw_dropdown_item":{display:"block",width:"100%",clear:"both","font-weight":"400","text-align":"inherit","text-decoration":"none","white-space":"nowrap","background-color":"transparent",border:"0","font-size":"0.9375rem"},".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"},".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":{"border-left":"4px solid transparent"},".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","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":"320px","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%"}},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_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"}}}};function H(){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"};var n={start:"flex-start",end:"flex-end",center:"center",between:"space-between",around:"space-around"};for(var i in n)e[".bw_justify_content_"+i+", .justify-content-"+i]={"justify-content":n[i]};var a={start:"flex-start",end:"flex-end",center:"center"};for(var s in a)e[".bw_align_items_"+s+", .align-items-"+s]={"align-items":a[s]};return 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"},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 q(){return function(){for(var e={},t=Object.keys($),r=0;r<t.length;r++)Object.assign(e,$[t[r]]);return Object.assign(e,H()),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}()}
14
+ /**
15
+ * Bitwrench v2 Utility Functions
16
+ *
17
+ * Pure utility functions with no DOM dependencies. These work identically
18
+ * in Node.js and browsers: type detection, math, array ops, text generation,
19
+ * timing helpers.
20
+ *
21
+ * Extracted from bitwrench.js to keep the core focused on DOM/TACO/state.
22
+ *
23
+ * @module bitwrench-utils
24
+ * @license BSD-2-Clause
25
+ * @author M A Chatterjee <deftio [at] deftio [dot] com>
26
+ */
27
+ function W(e,t){if(null===e)return"null";var r=s(e);if("object"!==r)return r;if(t)return r;var o=Object.prototype.toString.call(e),n={"[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 n[o]?n[o]:e._bw_type?e._bw_type:e.constructor&&e.constructor.name?e.constructor.name:r}function Y(e,t,r,o,n){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=i.clip,s=void 0!==a&&a,l=i.expScale,c=void 0===l?1:l,d=(e-t)/(r-t);1!==c&&(d=Math.pow(d,c));var b=d*(n-o)+o;if(s){var _=Math.min(o,n),p=Math.max(o,n);b=Math.max(_,Math.min(p,b))}return b}function X(e,t,r){return Math.max(t,Math.min(r,e))}function J(e){return"array"!==W(e)?[]:e.filter(function(e,t,r){return r.indexOf(e)===t})}Object.assign({},$,{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:$.base,enhancedCards:$.cards,tableResponsive:{".bw_table_responsive":{"overflow-x":"auto","-webkit-overflow-scrolling":"touch"}},utilities:H()});function G(){return""}var V={};function K(){throw new Error("bw.make() requires the full bitwrench build (not lean)")}var Z=Object.freeze({__proto__:null,BCCL:V,componentHandles:{},make:K,variantClass:G}),Q=["data","headerRow","columns"],ee=["title","data","columns","className","striped","hover","responsive"],te={version:c.version,versionInfo:c,getVersion:function(){return o({},c)},_idCounter:0,_unmountCallbacks:new Map,_topics:{},_subIdCounter:0,_nodeMap:{},__monkey_patch_is_nodejs__:{_value:"ignore",set:function(e){this._value="boolean"==typeof e?e:"ignore"},get:function(){return this._value}}};function re(e){this._bwComponent=!0,this._bwId=te.uuid("comp"),this.taco=e,this.element=null,this.mounted=!1;var t=e.o||{};if(this._state={},t.state)for(var r in t.state)Object.prototype.hasOwnProperty.call(t.state,r)&&(this._state[r]=t.state[r]);if(this._actions={},t.actions)for(var o in t.actions)Object.prototype.hasOwnProperty.call(t.actions,o)&&(this._actions[o]=t.actions[o]);if(this._methods={},t.methods){var n=this;for(var i in t.methods)Object.prototype.hasOwnProperty.call(t.methods,i)&&(this._methods[i]=t.methods[i],function(e,t){n[e]=function(){var e=[n].concat(Array.prototype.slice.call(arguments));return t.apply(null,e)}}(i,t.methods[i]))}this._userTag=null,this._hooks={willMount:t.willMount||null,mounted:t.mounted||null,willUpdate:t.willUpdate||null,onUpdate:t.onUpdate||null,unmount:t.unmount||null,willDestroy:t.willDestroy||null},this._bindings=[],this._dirtyKeys={},this._scheduled=!1,this._subs=[],this._eventListeners=[],this._registeredActions=[],this._prevValues={},this._compile=!!t.compile,this._bw_refs={},this._refCounter=0}return te.isNodeJS=function(){return"ignore"!==te.__monkey_patch_is_nodejs__.get()?te.__monkey_patch_is_nodejs__.get():"undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node},te._isNode=te.isNodeJS(),Object.defineProperty(te,"_isBrowser",{get:function(){return"undefined"!=typeof document&&"undefined"!=typeof window},configurable:!0}),te._fsCache=void 0,te._getFs=function(){if(void 0!==te._fsCache)return Promise.resolve(te._fsCache);if(!te.isNodeJS())return te._fsCache=null,Promise.resolve(null);if("function"==typeof require)try{return te._fsCache=require("fs"),Promise.resolve(te._fsCache)}catch(e){}try{return new Function("m","return import(m)")("fs").then(function(e){return te._fsCache=e.default||e,te._fsCache}).catch(function(){return te._fsCache=null,null})}catch(e){return te._fsCache=null,Promise.resolve(null)}},te.typeOf=W,te.to=te.typeOf,te.uuid=function(e){var t=e?"bw_"+e+"_":"bw_";if(te._isBrowser&&crypto&&crypto.randomUUID)return t+crypto.randomUUID().replace(/-/g,"");var r=Date.now().toString(36),o=(++te._idCounter).toString(36),n=Math.random().toString(36).substring(2,11);return"".concat(t).concat(r,"_").concat(o,"_").concat(n)},te._el=function(e){if("string"!=typeof e)return e||null;if(!e)return null;if(!te._isBrowser)return null;var t=te._nodeMap[e];if(t){if(null!==t.parentNode)return t;delete te._nodeMap[e]}var r=document.getElementById(e);return r||"#"!==e.charAt(0)&&"."!==e.charAt(0)||(r=document.querySelector(e)),r||(r=document.querySelector('[data-bw_id="'+e+'"]')),r&&(te._nodeMap[e]=r),r},te._registerNode=function(e,t){if(e){t&&(te._nodeMap[t]=e);var r=e.getAttribute?e.getAttribute("id"):null;r&&(te._nodeMap[r]=e)}},te._deregisterNode=function(e,t){t&&delete te._nodeMap[t];var r=e&&e.getAttribute?e.getAttribute("id"):null;r&&delete te._nodeMap[r]},te.escapeHTML=function(e){if("string"!=typeof e)return"";var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};return e.replace(/[&<>"'/]/g,function(e){return t[e]})},te.raw=function(e){return{__bw_raw:!0,v:String(e)}},te.html=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e)return"";if(e&&!0===e._bwComponent){var o=Object.assign({},r);return!o.state&&e._state&&(o.state=e._state),te.html(e.taco,o)}if(Array.isArray(e))return e.map(function(e){return te.html(e,r)}).join("");if(e&&e.__bw_raw)return e.v;if(e&&e._bwWhen&&r.state){var n=e.expr.replace(/^\$\{|\}$/g,""),a=(r.compile?te._resolveTemplate("${"+n+"}",r.state,!0):te._evaluatePath(r.state,n))?e.branches[0]:e.branches[1]||null;return a?te.html(a,r):""}if(e&&e._bwEach&&r.state){var l=e.expr.replace(/^\$\{|\}$/g,""),c=te._evaluatePath(r.state,l);return Array.isArray(c)?c.map(function(t,o){return te.html(e.factory(t,o),r)}).join(""):""}if("object"!==s(e)||!e.t){var d=r.raw?String(e):te.escapeHTML(String(e));return r.state&&"string"==typeof d&&d.indexOf("${")>=0&&(d=te._resolveTemplate(d,r.state,!!r.compile)),d}for(var b=e.t,_=e.a,p=void 0===_?{}:_,u=e.c,m=e.o,f=void 0===m?{}:m,h=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"].includes(b.toLowerCase()),w="",g=0,v=Object.entries(p);g<v.length;g++){var y=i(v[g],2),x=y[0],k=y[1];if(null!=k&&!1!==k&&!x.startsWith("on"))if("style"===x&&"object"===s(k)){var j=Object.entries(k).filter(function(e){return null!=i(e,2)[1]}).map(function(e){var t=i(e,2),r=t[0],o=t[1];return"".concat(r,":").concat(o)}).join(";");j&&(w+=' style="'.concat(te.escapeHTML(j),'"'))}else if("class"===x){var C=Array.isArray(k)?k.filter(Boolean).join(" "):String(k);C&&(w+=' class="'.concat(te.escapeHTML(C),'"'))}else if(!0===k)w+=" ".concat(x);else{var O=String(k);r.state&&O.indexOf("${")>=0&&(O=te._resolveTemplate(O,r.state,!!r.compile)),w+=" ".concat(x,'="').concat(te.escapeHTML(O),'"')}}if((f.mounted||f.unmount)&&(null===(t=p.class)||void 0===t||!t.includes("bw_id_"))){var A=f.bw_id||te.uuid();(w=w.replace(/class="([^"]*)"/,function(e,t){return'class="'.concat(t," bw_id_").concat(A,'"').trim()})).includes("class=")||(w+=' class="bw_id_'.concat(A,'"'))}if(h)return"<".concat(b).concat(w," />");var S=null!=u?te.html(u,r):"";return r.state&&"string"==typeof S&&S.indexOf("${")>=0&&(S=te._resolveTemplate(S,r.state,!!r.compile)),"<".concat(b).concat(w,">").concat(S,"</").concat(b,">")},te.createDOM=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!te._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(e&&!0===e._bwComponent)return te.createDOM(e.taco,t);if("object"!==s(e)||!e.t)return document.createTextNode(String(e));for(var n=e.t,a=e.a,l=void 0===a?{}:a,c=e.c,d=e.o,b=void 0===d?{}:d,_=document.createElement(n),p=0,u=Object.entries(l);p<u.length;p++){var m=i(u[p],2),f=m[0],h=m[1];if(null!=h&&!1!==h)if("style"===f&&"object"===s(h))Object.assign(_.style,h);else if("class"===f){var w=Array.isArray(h)?h.filter(Boolean).join(" "):String(h);w&&(_.className=w)}else if(f.startsWith("on")&&"function"==typeof h){var g=f.slice(2).toLowerCase();_.addEventListener(g,h)}else"value"===f&&"input"===n?_.value=h:!0===h?_.setAttribute(f,""):_.setAttribute(f,String(h))}if(null!=c)if(Array.isArray(c))c.forEach(function(e){if(null!=e){if(!0===e._bwComponent)return void e.mount(_);var r=te.createDOM(e,t);_.appendChild(r);var o=e&&e.a?e.a["data-bw_id"]||e.a.id:null;if(o&&(_._bw_refs||(_._bw_refs={}),_._bw_refs[o]=r),r._bw_refs)for(var n in _._bw_refs||(_._bw_refs={}),r._bw_refs)Object.prototype.hasOwnProperty.call(r._bw_refs,n)&&(_._bw_refs[n]=r._bw_refs[n])}});else if("object"===s(c)&&c.__bw_raw)_.innerHTML=c.v;else if(!0===c._bwComponent)c.mount(_);else if("object"===s(c)&&c.t){var v=te.createDOM(c,t);_.appendChild(v);var y=c.a?c.a["data-bw_id"]||c.a.id:null;if(y&&(_._bw_refs||(_._bw_refs={}),_._bw_refs[y]=v),v._bw_refs)for(var x in _._bw_refs||(_._bw_refs={}),v._bw_refs)Object.prototype.hasOwnProperty.call(v._bw_refs,x)&&(_._bw_refs[x]=v._bw_refs[x])}else _.textContent=String(c);if(l.id&&te._registerNode(_,null),b.mounted||b.unmount||b.render||b.state){var k=l["data-bw_id"]||te.uuid();_.setAttribute("data-bw_id",k),te._registerNode(_,k),b.state&&(_._bw_state=b.state),b.render?(_._bw_render=b.render,b.mounted&&console.warn("bw.createDOM: o.render and o.mounted are mutually exclusive. o.render wins."),document.body.contains(_)?b.render(_,_._bw_state||{}):requestAnimationFrame(function(){document.body.contains(_)&&b.render(_,_._bw_state||{})})):b.mounted&&(document.body.contains(_)?b.mounted(_,_._bw_state||{}):requestAnimationFrame(function(){document.body.contains(_)&&b.mounted(_,_._bw_state||{})})),b.unmount&&te._unmountCallbacks.set(k,function(){b.unmount(_,_._bw_state||{})})}else l["data-bw_id"]&&te._registerNode(_,l["data-bw_id"]);return _},te.DOM=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!te._isBrowser)throw new Error("bw.DOM requires a DOM environment (document/window). Use bw.html() instead.");var o=te._el(e);if(!o)return console.error("bw.DOM: Target element not found:",e),null;var n=o._bw_state,i=o._bw_render,a=o.getAttribute("data-bw_id"),s=o._bw_subs;return delete o._bw_subs,te.cleanup(o),void 0!==n&&(o._bw_state=n),i&&(o._bw_render=i),a&&(o.setAttribute("data-bw_id",a),te._registerNode(o,a)),s&&(o._bw_subs=s),o.innerHTML="",null!=t&&(!0===t._bwComponent?t.mount(o):t.element instanceof Element?o.appendChild(t.element):Array.isArray(t)?t.forEach(function(e){null!=e&&(!0===e._bwComponent?e.mount(o):e.element instanceof Element?o.appendChild(e.element):o.appendChild(te.createDOM(e,r)))}):o.appendChild(te.createDOM(t,r))),o},te.compileProps=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={};return Object.keys(t).forEach(function(t){Object.defineProperty(r,t,{get:function(){return e._props[t]},set:function(r){var o=e._props[t];o!==r&&(e._props[t]=r,e.onPropChange&&e.onPropChange(t,r,o))},enumerable:!0,configurable:!0})}),r},te.renderComponent=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=te.createDOM(e,r),i={element:n,taco:e,_props:o({},e.a),_state:(null===(t=e.o)||void 0===t?void 0:t.state)||{},_children:{},get props(){return this._compiledProps||(this._compiledProps=te.compileProps(this,this._props)),this._compiledProps},$:function(e){return this.element.querySelectorAll(e)},$first:function(e){return this.element.querySelector(e)},update:function(e){Object.assign(this._props,e);var t=o(o({},this.taco),{},{a:o(o({},this.taco.a),e)}),n=te.createDOM(t,r);return this.element.replaceWith(n),this.element=n,this.taco=t,this},render:function(){var e=te.createDOM(this.taco,r);return this.element.replaceWith(e),this.element=e,this},onPropChange:function(e,t,r){this.render()},get state(){return this._state},set state(e){this._state=e,this.render()},setState:function(e){return Object.assign(this._state,e),this.render(),this},addChild:function(e,t){return this._children[e]=t,this},getChild:function(e){return this._children[e]},destroy:function(){Object.values(this._children).forEach(function(e){e&&e.destroy&&e.destroy()}),te.cleanup(this.element),this.element.remove(),this._children={},this._props={},this._state={},this._compiledProps=null}};return n._bwHandle=i,i},te.cleanup=function(e){if(te._isBrowser&&e){e.querySelectorAll("[data-bw_id]").forEach(function(e){var t=e.getAttribute("data-bw_id"),r=te._unmountCallbacks.get(t);r&&(r(),te._unmountCallbacks.delete(t)),te._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=e.getAttribute("data-bw_id");if(t){var r=te._unmountCallbacks.get(t);r&&(r(),te._unmountCallbacks.delete(t)),te._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,e._bwComponentHandle&&(e._bwComponentHandle.mounted=!1,e._bwComponentHandle.element=null,delete e._bwComponentHandle)}}},te.update=function(e){var t=te._el(e);return t&&t._bw_render&&(t._bw_render(t,t._bw_state||{}),te.emit(t,"statechange",t._bw_state)),t||null},te.patch=function(e,t,r){var o=te._el(e);return o?(r?o.setAttribute(r,String(t)):Array.isArray(t)?(o.innerHTML="",t.forEach(function(e){"string"==typeof e||"number"==typeof e?o.appendChild(document.createTextNode(String(e))):e&&e.t&&o.appendChild(te.createDOM(e))})):"object"===s(t)&&null!==t&&t.t?(o.innerHTML="",o.appendChild(te.createDOM(t))):o.textContent=String(t),o):null},te.patchAll=function(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=te.patch(r,e[r]));return t},te.emit=function(e,t,r){var o=te._el(e);o&&o.dispatchEvent(new CustomEvent("bw:"+t,{bubbles:!0,detail:r||{}}))},te.on=function(e,t,r){var o=te._el(e);return o&&o.addEventListener("bw:"+t,function(e){r(e.detail,e)}),o||null},te.pub=function(e,t){var r=te._topics[e];if(!r||0===r.length)return 0;for(var o=r.slice(),n=0,i=0;i<o.length;i++)try{o[i].handler(t),n++}catch(t){console.warn('bw.pub: subscriber error on topic "'+e+'":',t)}return n},te.sub=function(e,t,r){var o=++te._subIdCounter;te._topics[e]||(te._topics[e]=[]),te._topics[e].push({handler:t,id:o});var n=function(){var t=te._topics[e];t&&(te._topics[e]=t.filter(function(e){return e.id!==o}),0===te._topics[e].length&&delete te._topics[e])};if(r&&(r._bw_subs||(r._bw_subs=[]),r._bw_subs.push(n),!r.getAttribute("data-bw_id"))){var i="bw_sub_"+o;r.setAttribute("data-bw_id",i)}return n},te.unsub=function(e,t){var r=te._topics[e];if(!r)return 0;var o=r.length;te._topics[e]=r.filter(function(e){return e.handler!==t});var n=o-te._topics[e].length;return 0===te._topics[e].length&&delete te._topics[e],n},te._fnRegistry={},te._fnIDCounter=0,te.funcRegister=function(e,t){if("function"!=typeof e)return"";var r="string"==typeof t&&t.length>0?t:"bw_fn_"+te._fnIDCounter++;return te._fnRegistry[r]=e,r},te.funcGetById=function(e,t){return(e=String(e))in te._fnRegistry?te._fnRegistry[e]:"function"==typeof t?t:function(){console.warn('bw.funcGetById: unregistered fn "'+e+'"')}},te.funcGetDispatchStr=function(e,t){return"bw.funcGetById('"+e+"')("+(t=null!=t?String(t):"")+")"},te.funcUnregister=function(e){return e in te._fnRegistry&&(delete te._fnRegistry[e],!0)},te.funcGetRegistry=function(){var e={};for(var t in te._fnRegistry)Object.prototype.hasOwnProperty.call(te._fnRegistry,t)&&(e[t]=te._fnRegistry[t]);return e},te._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},te._evaluatePath=function(e,t){for(var r=t.split("."),o=e,n=0;n<r.length;n++){if(null==o)return"";o=o[r[n]]}return null==o?"":o},te._compiledExprs={},te._resolveTemplate=function(e,t,r){if("string"!=typeof e||e.indexOf("${")<0)return e;var o=te._parseBindings(e);if(0===o.length)return e;for(var n="",i=0,a=0;a<o.length;a++){var s,l=o[a];if(n+=e.slice(i,l.start),r){if(!te._compiledExprs[l.expr])try{te._compiledExprs[l.expr]=new Function("state","with(state){return ("+l.expr+");}")}catch(e){te._compiledExprs[l.expr]=function(){return""}}try{s=te._compiledExprs[l.expr](t)}catch(e){s=""}}else s=te._evaluatePath(t,l.expr);n+=null==s?"":String(s),i=l.end}return n+=e.slice(i)},te._extractDeps=function(e,t){for(var r=[],o=0;o<t.length;o++){var n=t[o];(new RegExp("(?:^|[^\\w$.])"+n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+"(?:[^\\w$]|$)").test(e)||e===n||0===e.indexOf(n+"."))&&r.push(n)}return r},te._dirtyComponents=[],te._flushScheduled=!1,te._scheduleFlush=function(){te._flushScheduled||(te._flushScheduled=!0,"undefined"!=typeof Promise?Promise.resolve().then(te._doFlush):setTimeout(te._doFlush,0))},te._doFlush=function(){te._flushScheduled=!1;var e=te._dirtyComponents.slice();te._dirtyComponents=[];for(var t={},r=0;r<e.length;r++){var o=e[r];t[o._bwId]||(t[o._bwId]=!0,o._flush())}},te.flush=function(){te._doFlush()},re.prototype.get=function(e){return te._evaluatePath(this._state,e)},re.prototype.set=function(e,t,r){for(var o=e.split("."),n=this._state,i=0;i<o.length-1;i++)null!=n[o[i]]&&"object"===s(n[o[i]])||(n[o[i]]={}),n=n[o[i]];n[o[o.length-1]]=t,this._dirtyKeys[o[0]]=!0,this.mounted&&(r&&r.sync?this._flush():this._scheduleDirty())},re.prototype.getState=function(){var e={};for(var t in this._state)Object.prototype.hasOwnProperty.call(this._state,t)&&(e[t]=this._state[t]);return e},re.prototype.setState=function(e,t){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this._state[r]=e[r],this._dirtyKeys[r]=!0);this.mounted&&(t&&t.sync?this._flush():this._scheduleDirty())},re.prototype.push=function(e,t){var r=this.get(e),o=Array.isArray(r)?r.slice():[];o.push(t),this.set(e,o)},re.prototype.splice=function(e,t,r){var o=this.get(e),n=Array.isArray(o)?o.slice():[],i=[t,r].concat(Array.prototype.slice.call(arguments,3));Array.prototype.splice.apply(n,i),this.set(e,n)},re.prototype._scheduleDirty=function(){this._scheduled||(this._scheduled=!0,te._dirtyComponents.push(this),te._scheduleFlush())},re.prototype._compileBindings=function(){this._bindings=[],this._refCounter=0;var e=Object.keys(this._state),t=this;!function r(o,n){if(null==o||"object"!==s(o)||!o.t)return o;if("string"==typeof o.c&&o.c.indexOf("${")>=0){for(var i="bw_ref_"+t._refCounter++,a=te._parseBindings(o.c),l=[],c=0;c<a.length;c++)l=l.concat(te._extractDeps(a[c].expr,e));t._bindings.push({expr:o.c,type:"content",refId:i,deps:l,template:o.c}),o.a||(o.a={}),o.a["data-bw_ref"]=i}if(o.a)for(var d in o.a)if(Object.prototype.hasOwnProperty.call(o.a,d)&&"data-bw_ref"!==d){var b=o.a[d];if("string"==typeof b&&b.indexOf("${")>=0){for(var _="bw_ref_"+t._refCounter++,p=te._parseBindings(b),u=[],m=0;m<p.length;m++)u=u.concat(te._extractDeps(p[m].expr,e));t._bindings.push({expr:b,type:"attribute",attrName:d,refId:_,deps:u,template:b}),o.a||(o.a={}),o.a["data-bw_ref"]=o.a["data-bw_ref"]||_,o.a["data-bw_ref"]!==_&&(o.a["data-bw_ref_"+d]=_)}}if(Array.isArray(o.c))for(var f=0;f<o.c.length;f++){if(o.c[f]&&"object"===s(o.c[f])&&o.c[f].t&&r(o.c[f],n.concat(f)),o.c[f]&&o.c[f]._bwWhen){var h="bw_ref_"+t._refCounter++,w=te._extractDeps(o.c[f].expr.replace(/^\$\{|\}$/g,""),e);t._bindings.push({expr:o.c[f].expr,type:"structural",subtype:"when",refId:h,deps:w,branches:o.c[f].branches,index:f,parentPath:n}),o.c[f]._refId=h}if(o.c[f]&&o.c[f]._bwEach){var g="bw_ref_"+t._refCounter++,v=te._extractDeps(o.c[f].expr.replace(/^\$\{|\}$/g,""),e);t._bindings.push({expr:o.c[f].expr,type:"structural",subtype:"each",refId:g,deps:v,factory:o.c[f].factory,index:f,parentPath:n}),o.c[f]._refId=g}}else o.c&&"object"===s(o.c)&&o.c.t&&r(o.c,n.concat(0));return o}(this.taco,[])},re.prototype._collectRefs=function(){if(this._bw_refs={},this.element){for(var e=this.element.querySelectorAll("[data-bw_ref]"),t=0;t<e.length;t++)this._bw_refs[e[t].getAttribute("data-bw_ref")]=e[t];var r=this.element.getAttribute&&this.element.getAttribute("data-bw_ref");r&&(this._bw_refs[r]=this.element)}},re.prototype.mount=function(e){this._hooks.willMount&&this._hooks.willMount(this),this._originalTaco||(this._originalTaco=this.taco),this.taco=this._deepCloneTaco(this._originalTaco),this._compileBindings(),this._prepareTaco(this.taco);var t=this;for(var r in this._actions)if(Object.prototype.hasOwnProperty.call(this._actions,r)){var o=this._bwId+"_"+r;(function(e){te.funcRegister(function(r){t._actions[e](t,r)},o)})(r),this._registeredActions.push(o)}this._wireActions(this.taco);var n=this._tacoForDOM(this.taco);this.element=te.createDOM(n),this.element._bwComponentHandle=this,this.element.setAttribute("data-bw_comp_id",this._bwId),this._userTag&&this.element.classList.add(this._userTag),e.appendChild(this.element),this._collectRefs(),this._resolveAndApplyAll(),this.mounted=!0,this._hooks.mounted&&(2===this._hooks.mounted.length?this._hooks.mounted(this.element,this.getState()):this._hooks.mounted(this))},re.prototype._prepareTaco=function(e){if(e&&"object"===s(e))if(Array.isArray(e.c))for(var t=e.c.length-1;t>=0;t--){var r=e.c[t];if(r&&r._bwWhen){var o,n=r.expr.replace(/^\$\{|\}$/g,"");if(this._compile)try{o=new Function("state","with(state){return ("+n+");}")(this._state)}catch(e){o=!1}else o=te._evaluatePath(this._state,n);var i=o?r.branches[0]:r.branches[1]||null;e.c[t]=i?{t:"span",a:{"data-bw_when":r._refId,style:"display:contents"},c:i}:{t:"span",a:{"data-bw_when":r._refId,style:"display:contents"},c:""}}if(r&&r._bwEach){var a=r.expr.replace(/^\$\{|\}$/g,""),l=te._evaluatePath(this._state,a),c=[];if(Array.isArray(l))for(var d=0;d<l.length;d++)c.push(r.factory(l[d],d));e.c[t]={t:"span",a:{"data-bw_each":r._refId,style:"display:contents"},c:c}}e.c[t]&&"object"===s(e.c[t])&&e.c[t].t&&this._prepareTaco(e.c[t])}else e.c&&"object"===s(e.c)&&e.c.t&&this._prepareTaco(e.c)},re.prototype._wireActions=function(e){if(e&&"object"===s(e)&&e.t){if(e.a)for(var t in e.a)if(Object.prototype.hasOwnProperty.call(e.a,t)&&t.startsWith("on")&&"string"==typeof e.a[t]){var r=e.a[t];if(r in this._actions)(function(r){e.a[t]=function(e){te.funcGetById(r)(e)}})(this._bwId+"_"+r)}if(Array.isArray(e.c))for(var o=0;o<e.c.length;o++)this._wireActions(e.c[o]);else e.c&&"object"===s(e.c)&&e.c.t&&this._wireActions(e.c)}},re.prototype._deepCloneTaco=function(e){if(null==e)return e;if(e._bwWhen)return{_bwWhen:!0,expr:e.expr,branches:[this._deepCloneTaco(e.branches[0]),e.branches[1]?this._deepCloneTaco(e.branches[1]):null],_refId:e._refId};if(e._bwEach)return{_bwEach:!0,expr:e.expr,factory:e.factory,_refId:e._refId};if("object"!==s(e)||!e.t)return e;var t={t:e.t};if(e.a)for(var r in t.a={},e.a)Object.prototype.hasOwnProperty.call(e.a,r)&&(t.a[r]=e.a[r]);return null!=e.c&&(Array.isArray(e.c)?t.c=e.c.map(function(e){return this._deepCloneTaco(e)}.bind(this)):"object"===s(e.c)?t.c=this._deepCloneTaco(e.c):t.c=e.c),e.o&&(t.o=e.o),t},re.prototype._tacoForDOM=function(e){if(!e||"object"!==s(e)||!e.t)return e;var t={t:e.t};return e.a&&(t.a=e.a),null!=e.c&&(Array.isArray(e.c)?t.c=e.c.map(function(e){return this._tacoForDOM(e)}.bind(this)):"object"===s(e.c)&&e.c.t?t.c=this._tacoForDOM(e.c):t.c=e.c),t},re.prototype.unmount=function(){if(this.mounted){this._hooks.unmount&&this._hooks.unmount(this);for(var e=0;e<this._eventListeners.length;e++){var t=this._eventListeners[e];this.element&&this.element.removeEventListener(t.event,t.handler)}this._eventListeners=[];for(var r=0;r<this._subs.length;r++)this._subs[r]();this._subs=[],this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.mounted=!1}},re.prototype.destroy=function(){this._hooks.willDestroy&&this._hooks.willDestroy(this),this.unmount();for(var e=0;e<this._registeredActions.length;e++)te.funcUnregister(this._registeredActions[e]);this._registeredActions=[],this._state={},this._bindings=[],this._bw_refs={},this._prevValues={},this._dirtyKeys={},this.element&&(delete this.element._bwComponentHandle,this.element=null)},re.prototype._flush=function(){this._scheduled=!1;var e=Object.keys(this._dirtyKeys);if(this._dirtyKeys={},0!==e.length&&this.mounted){this._hooks.willUpdate&&this._hooks.willUpdate(this,e);for(var t=!1,r=0;r<this._bindings.length;r++){var o=this._bindings[r];if("structural"===o.type){for(var n=0;n<o.deps.length;n++)if(e.indexOf(o.deps[n])>=0){t=!0;break}if(t)break}}if(t)this._render();else{var i=this._resolveBindings(e);this._applyPatches(i)}this._hooks.onUpdate&&this._hooks.onUpdate(this,e)}},re.prototype._resolveBindings=function(e){for(var t=[],r=0;r<this._bindings.length;r++){var o=this._bindings[r];if("structural"!==o.type){for(var n=!1,i=0;i<o.deps.length;i++)if(e.indexOf(o.deps[i])>=0){n=!0;break}if(n){var a=te._resolveTemplate(o.template,this._state,this._compile),s=o.refId+"_"+(o.attrName||"content");this._prevValues[s]!==a&&(this._prevValues[s]=a,t.push({refId:o.refId,type:o.type,attrName:o.attrName,value:a}))}}}return t},re.prototype._applyPatches=function(e){for(var t=0;t<e.length;t++){var r=e[t],o=this._bw_refs[r.refId];o&&("content"===r.type?o.textContent=r.value:"attribute"===r.type&&("class"===r.attrName?o.className=r.value:o.setAttribute(r.attrName,r.value)))}},re.prototype._resolveAndApplyAll=function(){for(var e=[],t=0;t<this._bindings.length;t++){var r=this._bindings[t];if("structural"!==r.type){var o=te._resolveTemplate(r.template,this._state,this._compile),n=r.refId+"_"+(r.attrName||"content");this._prevValues[n]=o,e.push({refId:r.refId,type:r.type,attrName:r.attrName,value:o})}}this._applyPatches(e)},re.prototype._render=function(){if(this.element&&this.element.parentNode){var e=this.element.parentNode,t=this.element.nextSibling;e.removeChild(this.element),this.taco=this._deepCloneTaco(this._originalTaco||this.taco),this._compileBindings(),this._prepareTaco(this.taco),this._wireActions(this.taco);var r=this._tacoForDOM(this.taco);this.element=te.createDOM(r),this.element._bwComponentHandle=this,this.element.setAttribute("data-bw_comp_id",this._bwId),t?e.insertBefore(this.element,t):e.appendChild(this.element),this._collectRefs(),this._resolveAndApplyAll()}},re.prototype.on=function(e,t){this.element&&this.element.addEventListener(e,t),this._eventListeners.push({event:e,handler:t})},re.prototype.off=function(e,t){this.element&&this.element.removeEventListener(e,t),this._eventListeners=this._eventListeners.filter(function(r){return!(r.event===e&&r.handler===t)})},re.prototype.sub=function(e,t){var r=te.sub(e,t);return this._subs.push(r),r},re.prototype.action=function(e){var t=this._actions[e];if(t){var r=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(null,r)}console.warn('ComponentHandle.action: unknown action "'+e+'"')},re.prototype.select=function(e){return this.element?this.element.querySelector(e):null},re.prototype.selectAll=function(e){return this.element?Array.prototype.slice.call(this.element.querySelectorAll(e)):[]},re.prototype.userTag=function(e){return this._userTag=e,this.element&&this.element.classList.add(e),this},te._ComponentHandle=re,te.when=function(e,t,r){return{_bwWhen:!0,expr:e,branches:[t,r||null]}},te.each=function(e,t){return{_bwEach:!0,expr:e,factory:t}},te.component=function(e){return new re(e)},te.message=function(e,t,r){var o=te.$('[data-bw_comp_id="'+e+'"]')[0];if(o||(o=te.$("."+e)[0]),!o||!o._bwComponentHandle)return!1;var n=o._bwComponentHandle;return"function"!=typeof n[t]?(console.warn('bw.message: unknown action "'+t+'" on component '+e),!1):(n[t](r),!0)},te.inspect=function(e){var t,r=e;if(e&&!0===e._bwComponent)r=e.element,t=e;else{if("string"==typeof e&&(r=te.$(e)[0]),!r)return console.warn("bw.inspect: element not found"),null;t=r._bwComponentHandle}if(!t)return console.log("bw.inspect: no ComponentHandle on this element"),console.log(" Tag:",r.tagName),console.log(" Classes:",r.className),console.log(" _bw_state:",r._bw_state||"(none)"),null;var o=t._bindings.reduce(function(e,t){return e.concat(t.deps||[])},[]).filter(function(e,t,r){return r.indexOf(e)===t});return console.group("Component: "+t._bwId),console.log("State:",t._state),console.log("Bindings:",t._bindings.length,"(deps:",o,")"),console.log("Methods:",Object.keys(t._methods)),console.log("Actions:",Object.keys(t._actions)),console.log("User tag:",t._userTag||"(none)"),console.log("Mounted:",t.mounted),console.log("Element:",t.element),console.groupEnd(),t},te.compile=function(e){var t=[];return function e(r){if(r&&"object"===s(r)){if("string"==typeof r.c&&r.c.indexOf("${")>=0)for(var o=te._parseBindings(r.c),n=0;n<o.length;n++)try{t.push({expr:o[n].expr,fn:new Function("state","with(state){return ("+o[n].expr+");}")})}catch(e){t.push({expr:o[n].expr,fn:function(){return""}})}if(r.a)for(var i in r.a)if(Object.prototype.hasOwnProperty.call(r.a,i)){var a=r.a[i];if("string"==typeof a&&a.indexOf("${")>=0)for(var l=te._parseBindings(a),c=0;c<l.length;c++)try{t.push({expr:l[c].expr,fn:new Function("state","with(state){return ("+l[c].expr+");}")})}catch(e){t.push({expr:l[c].expr,fn:function(){return""}})}}if(Array.isArray(r.c))for(var d=0;d<r.c.length;d++)e(r.c[d]);else r.c&&"object"===s(r.c)&&r.c.t&&e(r.c)}}(e),function(r){var o=new re(e);if(o._compile=!0,o._precompiledBindings=t,r)for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(o._state[n]=r[n]);return o}},te.css=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.minify,o=void 0!==r&&r,n=t.pretty,a=void 0===n?!o:n;if("string"==typeof e)return e;var l="",c=a?" ":"",d=a?"\n":"",b=a?" ":"";return Array.isArray(e)?l=e.map(function(e){return te.css(e,t)}).join(d):"object"===s(e)&&Object.entries(e).forEach(function(e){var r=i(e,2),o=r[0],n=r[1];if("object"===s(n)&&!Array.isArray(n)){if("@"===o.charAt(0)){var a=te.css(n,t);return void(a&&(l+="".concat(o).concat(b,"{").concat(d).concat(a).concat(d,"}").concat(d)))}var _=Object.entries(n).filter(function(e){return null!=i(e,2)[1]}).map(function(e){var t=i(e,2),r=t[0],o=t[1],n=r.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()});return"".concat(c).concat(n,":").concat(b).concat(o,";")}).join(d);_&&(l+="".concat(o).concat(b,"{").concat(d).concat(_).concat(d,"}").concat(d))}}),l.trim()},te.injectCSS=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!te._isBrowser)return console.warn("bw.injectCSS requires a DOM environment"),null;var r=t.id,o=void 0===r?"bw_styles":r,n=t.append,i=void 0===n||n,a=document.getElementById(o);a||((a=document.createElement("style")).id=o,a.type="text/css",document.head.appendChild(a));var s="string"==typeof e?e:te.css(e,t);return i&&a.textContent?a.textContent+="\n"+s:a.textContent=s,a},te.s=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];r&&"object"===s(r)&&Object.assign(e,r)}return e},te.u={flex:{display:"flex"},flexCol:{display:"flex",flexDirection:"column"},flexRow:{display:"flex",flexDirection:"row"},flexWrap:{display:"flex",flexWrap:"wrap"},block:{display:"block"},inline:{display:"inline"},hidden:{display:"none"},justifyCenter:{justifyContent:"center"},justifyBetween:{justifyContent:"space-between"},justifyEnd:{justifyContent:"flex-end"},alignCenter:{alignItems:"center"},alignStart:{alignItems:"flex-start"},alignEnd:{alignItems:"flex-end"},gap1:{gap:"0.25rem"},gap2:{gap:"0.5rem"},gap3:{gap:"0.75rem"},gap4:{gap:"1rem"},gap6:{gap:"1.5rem"},gap8:{gap:"2rem"},p0:{padding:"0"},p1:{padding:"0.25rem"},p2:{padding:"0.5rem"},p3:{padding:"0.75rem"},p4:{padding:"1rem"},p6:{padding:"1.5rem"},p8:{padding:"2rem"},px4:{paddingLeft:"1rem",paddingRight:"1rem"},py2:{paddingTop:"0.5rem",paddingBottom:"0.5rem"},py4:{paddingTop:"1rem",paddingBottom:"1rem"},m0:{margin:"0"},m4:{margin:"1rem"},mt2:{marginTop:"0.5rem"},mt4:{marginTop:"1rem"},mb2:{marginBottom:"0.5rem"},mb4:{marginBottom:"1rem"},mx_auto:{marginLeft:"auto",marginRight:"auto"},textSm:{fontSize:"0.875rem"},textBase:{fontSize:"1rem"},textLg:{fontSize:"1.125rem"},textXl:{fontSize:"1.25rem"},text2xl:{fontSize:"1.5rem"},text3xl:{fontSize:"1.875rem"},bold:{fontWeight:"700"},semibold:{fontWeight:"600"},italic:{fontStyle:"italic"},textCenter:{textAlign:"center"},textRight:{textAlign:"right"},bgWhite:{background:"#ffffff"},bgTeal:{background:"#006666",color:"#ffffff"},textWhite:{color:"#ffffff"},textTeal:{color:"#006666"},textMuted:{color:"#888"},rounded:{borderRadius:"0.375rem"},roundedLg:{borderRadius:"0.5rem"},roundedFull:{borderRadius:"9999px"},border:{border:"1px solid #d8d8d8"},wFull:{width:"100%"},hFull:{height:"100%"},transition:{transition:"all 0.2s ease"}},te.responsive=function(e,t){var r={sm:"576px",md:"768px",lg:"992px",xl:"1200px"},o=[];return Object.keys(t).forEach(function(n){var i={};"base"===n?(i[e]=t[n],o.push(te.css(i))):r[n]&&(i[e]=t[n],o.push("@media (min-width: "+r[n]+") {\n"+te.css(i)+"\n}"))}),o.join("\n")},te.mapScale=Y,te.clip=X,te._isBrowser&&(te.$=function(e){return e?Array.isArray(e)?e:e.nodeType?[e]:void 0!==e.length&&"string"!=typeof e?Array.from(e):"string"==typeof e?Array.from(document.querySelectorAll(e)):[]:[]},te.$.one=function(e){return te.$(e)[0]||null}),te.loadDefaultStyles=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.minify,r=void 0===t||t,o=e.palette;if(te._isBrowser){var n=te.css(q());te.injectCSS(n,{id:"bw_structural",append:!1,minify:r})}var i=Object.assign({},F,o||{});return te.generateTheme("",Object.assign({},i,{inject:!0}))},te.generateTheme=function(e,t){if(!t||!t.primary||!t.secondary)throw new Error("bw.generateTheme requires config.primary and config.secondary");var r=Object.assign({},F,t);t.tertiary||(r.tertiary=r.primary);var o=O(r),n=function(e){var t=e&&e.spacing||"normal",r=e&&e.radius||"md",o=e&&e.fontSize||1,n=e&&e.typeRatio||"normal",i="string"==typeof n?D[n]||D.normal:n,a=e&&e.elevation||"md",s=e&&e.motion||"standard";return{spacing:"string"==typeof t?I[t]||I.normal:t,radius:"string"==typeof r?P[r]||P.md:r,fontSize:o,typeScale:L(16,i),elevation:"string"==typeof a?N[a]||N.md:a,motion:"string"==typeof s?B[s]||B.standard:s}}(r),i=U(e,o,n),a=te.css(i),s=O(C(r)),l=function(e,t,r){var o=U("",t,r),n=e?"."+e+".bw_theme_alt":".bw_theme_alt",i={};for(var a in o)if(o.hasOwnProperty(a))if("@"===a.charAt(0)){var s=o[a],l={};for(var c in s)s.hasOwnProperty(c)&&(l[n+" "+c]=s[c]);i[a]=l}else{for(var d=a.split(","),b=[],_=0;_<d.length;_++){var p=d[_].trim();"body"===p||p.indexOf("body"),b.push(n+" "+p)}i[b.join(", ")]=o[a]}return i[n+" body, :root"+n+" body"]={color:t.dark.base,"background-color":t.light.base},i}
28
+ /**
29
+ * Bitwrench v2 File I/O Functions
30
+ *
31
+ * Save/load files in both Node.js and browser environments.
32
+ * Node uses fs module, browser uses Blob/XHR/FileReader.
33
+ *
34
+ * Called via bindFileOps(bw) which attaches all functions to the bw namespace.
35
+ * This preserves the same public API (bw.saveClientFile, bw.loadClientFile, etc.)
36
+ * while keeping the implementation in a separate module.
37
+ *
38
+ * @module bitwrench-file-ops
11
39
  * @license BSD-2-Clause
12
- */function m(e,t,r){return Math.max(t,Math.min(r,e))}function p(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"],n=0;n<e.length&&n<o.length;n++)o[n]=e[n];return o}if("#"===(e=String(e).replace(/\s/g,""))[0]){var a=e.slice(1);if(3===a.length||4===a.length)for(var i=0;i<a.length;i++)r[i]=parseInt(a[i]+a[i],16);else if(6===a.length||8===a.length)for(var l=0;l<a.length;l+=2)r[l/2]=parseInt(a.substring(l,l+2),16)}else{var s=e.match(/^(rgb|hsl)a?\(([^)]+)\)$/i);if(s){var c=s[1].toLowerCase(),d=s[2].split(",").map(function(e){return parseFloat(e)});if("rgb"===c)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,r[4]="rgb";else if("hsl"===c){return u(d[0]||0,d[1]||0,d[2]||0,void 0!==d[3]?255*d[3]:t)}}}return r}function u(e,t,r,o,n){void 0===o&&(o=255),void 0===n&&(n=!0),Array.isArray(e)&&(t=e[1],r=e[2],o=void 0!==e[3]?e[3]:255,e=e[0]);var a,i,l,s=e/360,c=t/100,d=r/100;if(0===c)a=i=l=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},m=d<.5?d*(1+c):d+c-d*c,p=2*d-m;a=255*b(p,m,s+1/3),i=255*b(p,m,s),l=255*b(p,m,s-1/3)}return n&&(a=Math.round(a),i=Math.round(i),l=Math.round(l),o=Math.round(o)),[a,i,l,o,"rgb"]}function f(e){var t=p(e),r=function(e,t,r,o){void 0===o&&(o=255),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,a,i=Math.max(e,t,r),l=Math.min(e,t,r),s=(i+l)/2;if(i===l)n=a=0;else{var c=i-l;switch(a=s>.5?c/(2-i-l):c/(i+l),i){case e:n=((t-r)/c+(t<r?6:0))/6;break;case t:n=((r-e)/c+2)/6;break;case r:n=((e-t)/c+4)/6}}return[n*=360,a*=100,s*=100,o,"hsl"]}(t[0],t[1],t[2],255);return[r[0],r[1],r[2]]}function w(e){var t=u(e[0],e[1],e[2],255,!0);return"#"+("0"+t[0].toString(16)).slice(-2)+("0"+t[1].toString(16)).slice(-2)+("0"+t[2].toString(16)).slice(-2)}function h(e,t){var r=f(e);return r[2]=m(r[2]+t,0,100),w(r)}function g(e,t,r){var o=p(e),n=p(t),a=Math.round(o[0]+(n[0]-o[0])*r),i=Math.round(o[1]+(n[1]-o[1])*r),l=Math.round(o[2]+(n[2]-o[2])*r);return"#"+("0"+a.toString(16)).slice(-2)+("0"+i.toString(16)).slice(-2)+("0"+l.toString(16)).slice(-2)}function v(e){var t=p(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 y(e){return v(e)>.179?"#000":"#fff"}function x(e,t,r){if(void 0===r&&(r=.2),0===r)return e;var o=f(e),n=f(t)[0]-o[0];return n>180&&(n-=360),n<-180&&(n+=360),w([(o[0]+n*r+360)%360,o[1],o[2]])}function _(e){var t=p(e);return{base:e,hover:h(e,-10),active:h(e,-15),light:g(e,"#ffffff",.85),darkText:h(e,-40),border:g(e,"#ffffff",.6),focus:"rgba("+t[0]+","+t[1]+","+t[2]+",0.25)",textOn:y(e)}}function k(e){var t,r,o=f(e),n=o[0],a=o[1],i=o[2];return i>50?(t=m(100-i-10,8,40),r=m(.85*a,0,100)):(t=m(100-i+10,60,92),r=m(1.1*a,0,100)),w([n,r,t])}function j(e){var t=v(e.primary);return e.secondary&&(t=(t+v(e.secondary))/2),e.tertiary&&(t=(2*t+v(e.tertiary))/3),t>.179}function S(e){var t={};t.primary=k(e.primary),t.secondary=k(e.secondary),t.tertiary=e.tertiary?k(e.tertiary):t.primary;var r=f(e.primary),o=r[0];j(e)?(t.light=w([o,Math.min(r[1],15),15]),t.dark=w([o,5,88])):(t.light=w([o,Math.min(r[1],10),96]),t.dark=w([o,10,18]));for(var n=void 0!==e.harmonize?e.harmonize:.2,a={success:"#198754",danger:"#dc3545",warning:"#f0ad4e",info:"#17a2b8"},i=["success","danger","warning","info"],l=0;l<i.length;l++){var s=i[l],c=x(e[s]||a[s],e.primary,n);t[s]=k(c)}return t.harmonize=0,t}function O(e){var t=void 0!==e.harmonize?e.harmonize:.2,r=e.primary,o=f(r)[0],n=x(e.success||"#198754",r,t),a=x(e.danger||"#dc3545",r,t),i=x(e.warning||"#f0ad4e",r,t),l=x(e.info||"#17a2b8",r,t),s=e.light||w([o,8,97]),c=e.dark||w([o,10,13]);return{primary:_(e.primary),secondary:_(e.secondary),tertiary:_(e.tertiary),success:_(n),danger:_(a),warning:_(i),info:_(l),light:_(s),dark:_(c)}}var z={compact:{btn:"0.3rem 0.8rem",card:"0.875rem 1rem",alert:"0.625rem 1rem",cell:"0.5rem 0.75rem",input:"0.375rem 0.7rem"},normal:{btn:"0.5rem 1.125rem",card:"1.25rem 1.5rem",alert:"0.875rem 1.25rem",cell:"0.75rem 1rem",input:"0.5rem 0.875rem"},spacious:{btn:"0.75rem 1.5rem",card:"1.75rem 2rem",alert:"1.125rem 1.5rem",cell:"1rem 1.25rem",input:"0.75rem 1.125rem"}},C={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"}},A={tight:1.125,normal:1.2,relaxed:1.25,dramatic:1.333};function M(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 T={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.08)",md:"0 2px 6px rgba(0,0,0,0.12)",lg:"0 4px 12px rgba(0,0,0,0.16)",xl:"0 8px 24px rgba(0,0,0,0.20)"},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)"}},E={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)"}},L={primary:"#006666",secondary:"#6c757d",tertiary:"#006666",success:"#198754",danger:"#dc3545",warning:"#b38600",info:"#0891b2",light:"#f8f9fa",dark:"#212529"};function P(e,t){return e?t.includes(",")?t.split(",").map(function(t){return"."+e+" "+t.trim()}).join(", "):"."+e+" "+t:t}function N(e,t,r){return Object.assign({},function(e,t){var r={};return r[P(e,"body")]={color:t.dark.base,"background-color":"#f5f5f5"},r}(e,t),function(e,t,r){var o=r.motion,n={};return n[P(e,"a")]={color:t.primary.base,"text-decoration":"none",transition:"color "+o.fast+" "+o.easing},n[P(e,"a:hover")]={color:t.primary.hover,"text-decoration":"underline"},n}(e,t,r),function(e,t,r){var o={},n=r.spacing,a=r.radius;return o[P(e,".bw-btn")]={padding:n.btn,"border-radius":a.btn},o[P(e,".bw-btn:focus-visible")]={outline:"2px solid currentColor","outline-offset":"2px","box-shadow":"0 0 0 3px "+t.primary.focus},["primary","secondary","success","danger","warning","info","light","dark"].forEach(function(r){var n=t[r];o[P(e,".bw-btn-"+r)]={color:n.textOn,"background-color":n.base,"border-color":n.base},o[P(e,".bw-btn-"+r+":hover")]={color:n.textOn,"background-color":n.hover,"border-color":n.active},o[P(e,".bw-btn-outline-"+r)]={color:n.base,"border-color":n.base,"background-color":"transparent"},o[P(e,".bw-btn-outline-"+r+":hover")]={color:n.textOn,"background-color":n.base,"border-color":n.base}}),o[P(e,".bw-btn-lg")]={padding:"0.625rem 1.5rem","font-size":"1rem","border-radius":"50rem"===a.btn?"50rem":parseInt(a.btn)+2+"px"},o[P(e,".bw-btn-sm")]={padding:"0.25rem 0.75rem","font-size":"0.8125rem","border-radius":"50rem"===a.btn?"50rem":Math.max(parseInt(a.btn)-1,0)+"px"},o}(e,t,r),function(e,t,r){var o={},n=r.spacing,a=r.radius;return o[P(e,".bw-alert")]={padding:n.alert,"border-radius":a.alert},["primary","secondary","success","danger","warning","info","light","dark"].forEach(function(r){var n=t[r];o[P(e,".bw-alert-"+r)]={color:n.darkText,"background-color":n.light,"border-color":n.border},o[P(e,".bw-alert-"+r+" .alert-link")]={color:h(n.darkText,-10)}}),o}(e,t,r),function(e,t){var r={};return["primary","secondary","success","danger","warning","info","light","dark"].forEach(function(o){var n=t[o];r[P(e,".bw-badge-"+o)]={color:n.textOn,"background-color":n.base}}),r}(e,t),function(e,t,r){var o={},n=r.spacing,a=r.radius,i=r.elevation;return o[P(e,".bw-card")]={"background-color":"#fff",border:"1px solid "+t.light.border,"border-radius":a.card,"box-shadow":i.sm},o[P(e,".bw-card:hover")]={"box-shadow":i.md},o[P(e,".bw-card-body")]={padding:n.card},o[P(e,".bw-card-header")]={padding:n.card.split(" ").map(function(e){return(.7*parseFloat(e)).toFixed(3).replace(/\.?0+$/,"")+"rem"}).join(" "),"background-color":t.light.light,"border-bottom":"1px solid "+t.light.border},o[P(e,".bw-card-footer")]={"background-color":t.light.light,"border-top":"1px solid "+t.light.border,color:t.secondary.base},o[P(e,".bw-card-title")]={color:t.dark.base},o[P(e,".bw-card-subtitle")]={color:t.secondary.base},["primary","secondary","success","danger","warning","info","light","dark"].forEach(function(r){o[P(e,".bw-card-"+r)]={"border-left":"4px solid "+t[r].base}}),o}(e,t,r),function(e,t,r){var o={},n=r.spacing,a=r.radius;return o[P(e,".bw-form-control")]={padding:n.input,"border-radius":a.input,color:t.dark.base,"background-color":"#fff","border-color":t.light.border},o[P(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[P(e,".bw-form-control::placeholder")]={color:t.secondary.base},o[P(e,".bw-form-label")]={color:t.dark.base},o[P(e,".bw-form-text")]={color:t.secondary.base},o[P(e,".bw-form-check-input:checked")]={"background-color":t.primary.base,"border-color":t.primary.base},o[P(e,".bw-form-check-input:focus")]={"box-shadow":"0 0 0 0.25rem "+t.primary.focus},o}(e,t,r),function(e,t){var r={};return r[P(e,".bw-navbar")]={"background-color":t.light.light,"border-bottom-color":t.light.border},r[P(e,".bw-navbar-brand")]={color:t.dark.base},r[P(e,".bw-navbar-nav .bw-nav-link")]={color:t.secondary.base},r[P(e,".bw-navbar-nav .bw-nav-link:hover")]={color:t.dark.base},r[P(e,".bw-navbar-nav .bw-nav-link.active")]={color:t.primary.base,"background-color":t.primary.focus},r[P(e,".bw-navbar-dark")]={"background-color":t.dark.base,"border-bottom-color":t.dark.hover},r[P(e,".bw-navbar-dark .bw-navbar-brand")]={color:t.light.base},r[P(e,".bw-navbar-dark .bw-nav-link")]={color:"rgba(255,255,255,.65)"},r[P(e,".bw-navbar-dark .bw-nav-link:hover")]={color:"#fff"},r[P(e,".bw-navbar-dark .bw-nav-link.active")]={color:"#fff","font-weight":"600"},r[P(e,".bw-nav-pills .bw-nav-link.active")]={color:t.primary.textOn,"background-color":t.primary.base},r}(e,t),function(e,t,r){var o={},n=r.spacing;return o[P(e,".bw-table")]={color:t.dark.base,"border-color":t.light.border},o[P(e,".bw-table > :not(caption) > * > *")]={padding:n.cell,"border-bottom-color":t.light.border},o[P(e,".bw-table > thead > tr > *")]={color:t.secondary.base,"border-bottom-color":t.light.border,"background-color":t.light.light},o[P(e,".bw-table-striped > tbody > tr:nth-of-type(odd) > *")]={"background-color":"rgba(0, 0, 0, 0.05)"},o[P(e,".bw-table-hover > tbody > tr:hover > *")]={"background-color":t.primary.focus},o[P(e,".bw-table-bordered")]={"border-color":t.light.border},o[P(e,".bw-table caption")]={color:t.secondary.base},o}(e,t,r),function(e,t){var r={};return r[P(e,".bw-nav-tabs")]={"border-bottom-color":t.light.border},r[P(e,".bw-nav-link")]={color:t.secondary.base},r[P(e,".bw-nav-tabs .bw-nav-link:hover")]={color:t.dark.base,"border-bottom-color":t.light.border},r[P(e,".bw-nav-tabs .bw-nav-link.active")]={color:t.primary.base,"border-bottom":"2px solid "+t.primary.base},r}(e,t),function(e,t,r){var o={},n=r.spacing;return o[P(e,".bw-list-group-item")]={padding:n.cell,color:t.dark.base,"background-color":"#fff","border-color":t.light.border},o[P(e,"a.bw-list-group-item:hover")]={"background-color":t.light.light,color:t.dark.hover},o[P(e,".bw-list-group-item.active")]={color:t.primary.textOn,"background-color":t.primary.base,"border-color":t.primary.base},o[P(e,".bw-list-group-item.disabled")]={color:t.secondary.base,"background-color":"#fff"},o}(e,t,r),function(e,t){var r={};return r[P(e,".bw-page-link")]={color:t.primary.base,"background-color":"#fff","border-color":t.light.border},r[P(e,".bw-page-link:hover")]={color:t.primary.hover,"background-color":t.light.light,"border-color":t.light.border},r[P(e,".bw-page-link:focus")]={outline:"2px solid "+t.primary.base,"outline-offset":"-2px"},r[P(e,".bw-page-item.bw-active .bw-page-link")]={color:t.primary.textOn,"background-color":t.primary.base,"border-color":t.primary.base},r[P(e,".bw-page-item.bw-disabled .bw-page-link")]={color:t.secondary.base,"background-color":"#fff","border-color":t.light.border},r}(e,t),function(e,t){var r={};return r[P(e,".bw-progress")]={"background-color":t.light.light,"box-shadow":"inset 0 1px 2px rgba(0,0,0,.1)"},r[P(e,".bw-progress-bar")]={color:"#fff","background-color":t.primary.base,"box-shadow":"inset 0 -1px 0 rgba(0,0,0,.15)"},["primary","secondary","success","danger","warning","info"].forEach(function(o){r[P(e,".bw-progress-bar-"+o)]={"background-color":t[o].base}}),r}(e,t),function(e,t){var r={};return r[P(e,".bw-hero-primary")]={background:"linear-gradient(135deg, "+t.primary.base+" 0%, "+t.primary.hover+" 100%)",color:t.primary.textOn},r[P(e,".bw-hero-secondary")]={background:"linear-gradient(135deg, "+t.secondary.base+" 0%, "+t.secondary.hover+" 100%)",color:t.secondary.textOn},r[P(e,".bw-hero-dark")]={background:"linear-gradient(135deg, "+t.dark.base+" 0%, "+t.dark.hover+" 100%)",color:t.dark.textOn},r}(e,t),function(e,t){var r={};return r[P(e,".bw-breadcrumb-item + .bw-breadcrumb-item::before")]={color:t.secondary.base},r[P(e,".bw-breadcrumb-item.active")]={color:t.secondary.base},r}(e,t),function(e,t){var r={};return["primary","secondary","success","danger","warning","info","light","dark"].forEach(function(o){r[P(e,".bw-spinner-border.bw-text-"+o)]={color:t[o].base},r[P(e,".bw-spinner-grow.bw-text-"+o)]={color:t[o].base}}),r}(e,t),function(e,t){var r={};return r[P(e,".bw-close")]={color:t.dark.base,opacity:"0.5"},r[P(e,".bw-close:focus")]={"box-shadow":"0 0 0 0.25rem "+t.primary.focus},r}(e,t),function(e,t){var r={};return r[P(e,".bw-section-subtitle")]={color:t.secondary.base},r[P(e,".bw-feature-description")]={color:t.secondary.base},r[P(e,".bw-cta-description")]={color:t.secondary.base},r}(e,t),function(e,t){var r={};return r[P(e,".bw-accordion-item")]={"background-color":"#fff","border-color":t.light.border},r[P(e,".bw-accordion-button")]={color:t.dark.base},r[P(e,".bw-accordion-button:not(.bw-collapsed)")]={color:t.primary.darkText,"background-color":t.primary.light},r[P(e,".bw-accordion-button:hover")]={"background-color":t.light.light},r[P(e,".bw-accordion-button:not(.bw-collapsed):hover")]={"background-color":t.primary.hover},r[P(e,".bw-accordion-button:focus-visible")]={"box-shadow":"0 0 0 0.2rem "+t.primary.focus},r[P(e,".bw-accordion-body")]={"border-top":"1px solid "+t.light.border},r}(e,t),function(e,t){var r={};return r[P(e,".bw-carousel")]={"background-color":t.light.light},r[P(e,".bw-carousel-indicator.active")]={"background-color":t.primary.base},r}(e,t),function(e,t,r){var o={};return o[P(e,".bw-modal-content")]={"background-color":"#fff","border-color":t.light.border,"box-shadow":r.elevation.lg},o[P(e,".bw-modal-header")]={"border-bottom-color":t.light.border},o[P(e,".bw-modal-footer")]={"border-top-color":t.light.border},o[P(e,".bw-modal-title")]={color:t.dark.base},o}(e,t,r),function(e,t,r){var o={};return o[P(e,".bw-toast")]={"background-color":"#fff","border-color":"rgba(0,0,0,0.1)","box-shadow":r.elevation.lg},o[P(e,".bw-toast-header")]={"border-bottom-color":"rgba(0,0,0,0.05)"},["primary","secondary","success","danger","warning","info"].forEach(function(r){o[P(e,".bw-toast-"+r)]={"border-left":"4px solid "+t[r].base}}),o}(e,t,r),function(e,t,r){var o={};return o[P(e,".bw-dropdown-menu")]={"background-color":"#fff","border-color":t.light.border,"box-shadow":r.elevation.md},o[P(e,".bw-dropdown-item")]={color:t.dark.base},o[P(e,".bw-dropdown-item:hover")]={color:t.dark.hover,"background-color":t.light.light},o[P(e,".bw-dropdown-item.disabled")]={color:t.secondary.base},o[P(e,".bw-dropdown-divider")]={"border-top-color":t.light.border},o}(e,t,r),function(e,t){var r={};return r[P(e,".bw-form-switch .bw-switch-input")]={"background-color":t.secondary.base,"border-color":t.secondary.base},r[P(e,".bw-form-switch .bw-switch-input:checked")]={"background-color":t.primary.base,"border-color":t.primary.base},r[P(e,".bw-form-switch .bw-switch-input:focus")]={"box-shadow":"0 0 0 0.25rem "+t.primary.focus},r}(e,t),function(e,t){var r={};return r[P(e,".bw-skeleton")]={background:"linear-gradient(90deg, "+t.light.border+" 25%, "+t.light.light+" 37%, "+t.light.border+" 63%)"},r}(e,t),function(e,t){var r={};return["primary","secondary","success","danger","warning","info","light","dark"].forEach(function(o){r[P(e,".bw-avatar-"+o)]={"background-color":t[o].base,color:t[o].textOn}}),r}(e,t),function(e,t){var r={};return["primary","secondary","success","danger","warning","info","light","dark"].forEach(function(o){var n=t[o];r[P(e,".bw-text-"+o)]={color:n.base},r[P(e,".bw-bg-"+o)]={"background-color":n.base}}),r}(e,t))}var D={typography:(c={"h1, h2, h3, h4, h5, h6":{"margin-top":"0","margin-bottom":".5rem","font-weight":"600","line-height":"1.25","letter-spacing":"-0.01em",color:"inherit"},h1:{"font-size":"calc(1.375rem + 1.5vw)"},"@media (min-width: 1200px)":{h1:{"font-size":"2.5rem"}},h2:{"font-size":"calc(1.325rem + .9vw)"}},t(t(t(t(t(t(t(t(t(t(c,"@media (min-width: 1200px)",{h2:{"font-size":"2rem"}}),"h3",{"font-size":"calc(1.3rem + .6vw)"}),"@media (min-width: 1200px)",{h3:{"font-size":"1.75rem"}}),"h4",{"font-size":"calc(1.275rem + .3vw)"}),"@media (min-width: 1200px)",{h4:{"font-size":"1.5rem"}}),"h5",{"font-size":"1.25rem"}),"h6",{"font-size":"1rem"}),"p",{"margin-top":"0","margin-bottom":"1rem"}),"small",{"font-size":"0.875rem"}),"a",{color:"#006666","text-decoration":"none",transition:"color 0.15s"}),t(c,"a:hover",{color:"#004d4d","text-decoration":"underline"})),grid:(d={".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":"15px","padding-left":"15px","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:"1 0 0%"}},t(t(t(t(t(t(t(t(t(t(d,".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%"}),t(t(t(d,".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%"})),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"}}}};function I(e){for(var t={},r=0,o=Object.entries(e);r<o.length;r++){var n=a(o[r],2),i=n[0],l=n[1];if(t[i]=l,i.includes(".bw-"))t[i.replace(/\.bw-/g,".bw_")]=l}return t}var F={colors:{primary:"#006666",secondary:"#6c757d",success:"#198754",danger:"#dc3545",warning:"#b38600",info:"#0891b2",light:"#f8f9fa",dark:"#212529",white:"#fff",black:"#000"},breakpoints:{xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400},spacing:{0:"0",1:"0.25rem",2:"0.5rem",3:"1rem",4:"1.5rem",5:"3rem"},typography:{fontFamily:'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',fontSize:{xs:"0.75rem",sm:"0.875rem",base:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem"}}};function B(e,t){for(var r=0,o=Object.keys(t);r<o.length;r++){var n=o[r];t[n]&&"object"===l(t[n])&&!Array.isArray(t[n])&&e[n]&&"object"===l(e[n])&&!Array.isArray(e[n])?B(e[n],t[n]):e[n]=t[n]}return e}function R(e){B(F,e)}var U={},H=Object.freeze({__proto__:null,componentHandles:U}),q=["data","headerRow","columns"],Y=["title","data","columns","className","striped","hover","responsive"],W={version:b.version,versionInfo:b,getVersion:function(){return o({},b)},_idCounter:0,_unmountCallbacks:new Map,_topics:{},_subIdCounter:0,_nodeMap:{},__monkey_patch_is_nodejs__:{_value:"ignore",set:function(e){this._value="boolean"==typeof e?e:"ignore"},get:function(){return this._value}},isNodeJS:function(){return"ignore"!==W.__monkey_patch_is_nodejs__.get()?W.__monkey_patch_is_nodejs__.get():"undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node}};return W._isNode=W.isNodeJS(),Object.defineProperty(W,"_isBrowser",{get:function(){return"undefined"!=typeof document&&"undefined"!=typeof window},configurable:!0}),W._fsCache=void 0,W._getFs=function(){if(void 0!==W._fsCache)return Promise.resolve(W._fsCache);if(!W.isNodeJS())return W._fsCache=null,Promise.resolve(null);if("function"==typeof require)try{return W._fsCache=require("fs"),Promise.resolve(W._fsCache)}catch(e){}try{return new Function("m","return import(m)")("fs").then(function(e){return W._fsCache=e.default||e,W._fsCache}).catch(function(){return W._fsCache=null,null})}catch(e){return W._fsCache=null,Promise.resolve(null)}},W.typeOf=function(e,t){if(null===e)return"null";var r=l(e);if("object"!==r)return r;if(t)return r;var o=Object.prototype.toString.call(e),n={"[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 n[o]?n[o]:e._bw_type?e._bw_type:e.constructor&&e.constructor.name?e.constructor.name:r},W.to=W.typeOf,W.uuid=function(e){var t=e?"bw_"+e+"_":"bw_";if(W._isBrowser&&crypto&&crypto.randomUUID)return t+crypto.randomUUID().replace(/-/g,"");var r=Date.now().toString(36),o=(++W._idCounter).toString(36),n=Math.random().toString(36).substring(2,11);return"".concat(t).concat(r,"_").concat(o,"_").concat(n)},W._el=function(e){if("string"!=typeof e)return e||null;if(!e)return null;if(!W._isBrowser)return null;var t=W._nodeMap[e];if(t){if(null!==t.parentNode)return t;delete W._nodeMap[e]}var r=document.getElementById(e);return r||"#"!==e.charAt(0)&&"."!==e.charAt(0)||(r=document.querySelector(e)),r||(r=document.querySelector('[data-bw-id="'+e+'"]')),r&&(W._nodeMap[e]=r),r},W._registerNode=function(e,t){if(e){t&&(W._nodeMap[t]=e);var r=e.getAttribute?e.getAttribute("id"):null;r&&(W._nodeMap[r]=e)}},W._deregisterNode=function(e,t){t&&delete W._nodeMap[t];var r=e&&e.getAttribute?e.getAttribute("id"):null;r&&delete W._nodeMap[r]},W.escapeHTML=function(e){if("string"!=typeof e)return"";var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};return e.replace(/[&<>"'/]/g,function(e){return t[e]})},W.raw=function(e){return{__bw_raw:!0,v:String(e)}},W.normalizeClass=function(e){return"string"!=typeof e?e:e.replace(/\bbw_/g,"bw-")},W.html=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e)return"";if(Array.isArray(e))return e.map(function(e){return W.html(e,r)}).join("");if(e&&e.__bw_raw)return e.v;if("object"!==l(e)||!e.t)return r.raw?String(e):W.escapeHTML(String(e));for(var o=e.t,n=e.a,i=void 0===n?{}:n,s=e.c,c=e.o,d=void 0===c?{}:c,b=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"].includes(o.toLowerCase()),m="",p=0,u=Object.entries(i);p<u.length;p++){var f=a(u[p],2),w=f[0],h=f[1];if(null!=h&&!1!==h&&!w.startsWith("on"))if("style"===w&&"object"===l(h)){var g=Object.entries(h).filter(function(e){return null!=a(e,2)[1]}).map(function(e){var t=a(e,2),r=t[0],o=t[1];return"".concat(r,":").concat(o)}).join(";");g&&(m+=' style="'.concat(W.escapeHTML(g),'"'))}else if("class"===w){var v=W.normalizeClass(Array.isArray(h)?h.filter(Boolean).join(" "):String(h));v&&(m+=' class="'.concat(W.escapeHTML(v),'"'))}else m+=!0===h?" ".concat(w):" ".concat(w,'="').concat(W.escapeHTML(String(h)),'"')}if((d.mounted||d.unmount)&&(null===(t=i.class)||void 0===t||!t.includes("bw-id-"))){var y=d.bw_id||W.uuid();(m=m.replace(/class="([^"]*)"/,function(e,t){return'class="'.concat(t," bw-id-").concat(y,'"').trim()})).includes("class=")||(m+=' class="bw-id-'.concat(y,'"'))}if(b)return"<".concat(o).concat(m," />");var x=null!=s?W.html(s,r):"";return"<".concat(o).concat(m,">").concat(x,"</").concat(o,">")},W.createDOM=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!W._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("object"!==l(e)||!e.t)return document.createTextNode(String(e));for(var n=e.t,i=e.a,s=void 0===i?{}:i,c=e.c,d=e.o,b=void 0===d?{}:d,m=document.createElement(n),p=0,u=Object.entries(s);p<u.length;p++){var f=a(u[p],2),w=f[0],h=f[1];if(null!=h&&!1!==h)if("style"===w&&"object"===l(h))Object.assign(m.style,h);else if("class"===w){var g=W.normalizeClass(Array.isArray(h)?h.filter(Boolean).join(" "):String(h));g&&(m.className=g)}else if(w.startsWith("on")&&"function"==typeof h){var v=w.slice(2).toLowerCase();m.addEventListener(v,h)}else"value"===w&&"input"===n?m.value=h:!0===h?m.setAttribute(w,""):m.setAttribute(w,String(h))}if(null!=c)if(Array.isArray(c))c.forEach(function(e){if(null!=e){var r=W.createDOM(e,t);m.appendChild(r);var o=e&&e.a?e.a["data-bw-id"]||e.a.id:null;if(o&&(m._bw_refs||(m._bw_refs={}),m._bw_refs[o]=r),r._bw_refs)for(var n in m._bw_refs||(m._bw_refs={}),r._bw_refs)Object.prototype.hasOwnProperty.call(r._bw_refs,n)&&(m._bw_refs[n]=r._bw_refs[n])}});else if("object"===l(c)&&c.__bw_raw)m.innerHTML=c.v;else if("object"===l(c)&&c.t){var y=W.createDOM(c,t);m.appendChild(y);var x=c.a?c.a["data-bw-id"]||c.a.id:null;if(x&&(m._bw_refs||(m._bw_refs={}),m._bw_refs[x]=y),y._bw_refs)for(var _ in m._bw_refs||(m._bw_refs={}),y._bw_refs)Object.prototype.hasOwnProperty.call(y._bw_refs,_)&&(m._bw_refs[_]=y._bw_refs[_])}else m.textContent=String(c);if(s.id&&W._registerNode(m,null),b.mounted||b.unmount||b.render||b.state){var k=s["data-bw-id"]||W.uuid();m.setAttribute("data-bw-id",k),W._registerNode(m,k),b.state&&(m._bw_state=b.state),b.render?(m._bw_render=b.render,b.mounted&&console.warn("bw.createDOM: o.render and o.mounted are mutually exclusive. o.render wins."),document.body.contains(m)?b.render(m,m._bw_state||{}):requestAnimationFrame(function(){document.body.contains(m)&&b.render(m,m._bw_state||{})})):b.mounted&&(document.body.contains(m)?b.mounted(m,m._bw_state||{}):requestAnimationFrame(function(){document.body.contains(m)&&b.mounted(m,m._bw_state||{})})),b.unmount&&W._unmountCallbacks.set(k,function(){b.unmount(m,m._bw_state||{})})}else s["data-bw-id"]&&W._registerNode(m,s["data-bw-id"]);return m},W.DOM=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!W._isBrowser)throw new Error("bw.DOM requires a DOM environment (document/window). Use bw.html() instead.");var o=W._el(e);if(!o)return console.error("bw.DOM: Target element not found:",e),null;var n=o._bw_state,a=o._bw_render,i=o.getAttribute("data-bw-id"),l=o._bw_subs;return delete o._bw_subs,W.cleanup(o),void 0!==n&&(o._bw_state=n),a&&(o._bw_render=a),i&&(o.setAttribute("data-bw-id",i),W._registerNode(o,i)),l&&(o._bw_subs=l),o.innerHTML="",null!=t&&(t.element instanceof Element?o.appendChild(t.element):Array.isArray(t)?t.forEach(function(e){null!=e&&(e.element instanceof Element?o.appendChild(e.element):o.appendChild(W.createDOM(e,r)))}):o.appendChild(W.createDOM(t,r))),o},W.compileProps=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={};return Object.keys(t).forEach(function(t){Object.defineProperty(r,t,{get:function(){return e._props[t]},set:function(r){var o=e._props[t];o!==r&&(e._props[t]=r,e.onPropChange&&e.onPropChange(t,r,o))},enumerable:!0,configurable:!0})}),r},W.renderComponent=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=W.createDOM(e,r),a={element:n,taco:e,_props:o({},e.a),_state:(null===(t=e.o)||void 0===t?void 0:t.state)||{},_children:{},get props(){return this._compiledProps||(this._compiledProps=W.compileProps(this,this._props)),this._compiledProps},$:function(e){return this.element.querySelectorAll(e)},$first:function(e){return this.element.querySelector(e)},update:function(e){Object.assign(this._props,e);var t=o(o({},this.taco),{},{a:o(o({},this.taco.a),e)}),n=W.createDOM(t,r);return this.element.replaceWith(n),this.element=n,this.taco=t,this},render:function(){var e=W.createDOM(this.taco,r);return this.element.replaceWith(e),this.element=e,this},onPropChange:function(e,t,r){this.render()},get state(){return this._state},set state(e){this._state=e,this.render()},setState:function(e){return Object.assign(this._state,e),this.render(),this},addChild:function(e,t){return this._children[e]=t,this},getChild:function(e){return this._children[e]},destroy:function(){Object.values(this._children).forEach(function(e){e&&e.destroy&&e.destroy()}),W.cleanup(this.element),this.element.remove(),this._children={},this._props={},this._state={},this._compiledProps=null}};return n._bwHandle=a,a},W.cleanup=function(e){if(W._isBrowser&&e){e.querySelectorAll("[data-bw-id]").forEach(function(e){var t=e.getAttribute("data-bw-id"),r=W._unmountCallbacks.get(t);r&&(r(),W._unmountCallbacks.delete(t)),W._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=e.getAttribute("data-bw-id");if(t){var r=W._unmountCallbacks.get(t);r&&(r(),W._unmountCallbacks.delete(t)),W._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}}},W.update=function(e){var t=W._el(e);return t&&t._bw_render&&(t._bw_render(t,t._bw_state||{}),W.emit(t,"statechange",t._bw_state)),t||null},W.patch=function(e,t,r){var o=W._el(e);return o?(r?o.setAttribute(r,String(t)):Array.isArray(t)?(o.innerHTML="",t.forEach(function(e){"string"==typeof e||"number"==typeof e?o.appendChild(document.createTextNode(String(e))):e&&e.t&&o.appendChild(W.createDOM(e))})):"object"===l(t)&&null!==t&&t.t?(o.innerHTML="",o.appendChild(W.createDOM(t))):o.textContent=String(t),o):null},W.patchAll=function(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=W.patch(r,e[r]));return t},W.emit=function(e,t,r){var o=W._el(e);o&&o.dispatchEvent(new CustomEvent("bw:"+t,{bubbles:!0,detail:r||{}}))},W.on=function(e,t,r){var o=W._el(e);return o&&o.addEventListener("bw:"+t,function(e){r(e.detail,e)}),o||null},W.pub=function(e,t){var r=W._topics[e];if(!r||0===r.length)return 0;for(var o=r.slice(),n=0,a=0;a<o.length;a++)try{o[a].handler(t),n++}catch(t){console.warn('bw.pub: subscriber error on topic "'+e+'":',t)}return n},W.sub=function(e,t,r){var o=++W._subIdCounter;W._topics[e]||(W._topics[e]=[]),W._topics[e].push({handler:t,id:o});var n=function(){var t=W._topics[e];t&&(W._topics[e]=t.filter(function(e){return e.id!==o}),0===W._topics[e].length&&delete W._topics[e])};if(r&&(r._bw_subs||(r._bw_subs=[]),r._bw_subs.push(n),!r.getAttribute("data-bw-id"))){var a="bw_sub_"+o;r.setAttribute("data-bw-id",a)}return n},W.unsub=function(e,t){var r=W._topics[e];if(!r)return 0;var o=r.length;W._topics[e]=r.filter(function(e){return e.handler!==t});var n=o-W._topics[e].length;return 0===W._topics[e].length&&delete W._topics[e],n},W.css=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.minify,o=void 0!==r&&r,n=t.pretty,i=void 0===n?!o:n;if("string"==typeof e)return e;var s="",c=i?" ":"",d=i?"\n":"",b=i?" ":"";return Array.isArray(e)?s=e.map(function(e){return W.css(e,t)}).join(d):"object"===l(e)&&Object.entries(e).forEach(function(e){var r=a(e,2),o=r[0],n=r[1];if("object"===l(n)&&!Array.isArray(n)){if("@"===o.charAt(0)){var i=W.css(n,t);return void(i&&(s+="".concat(o).concat(b,"{").concat(d).concat(i).concat(d,"}").concat(d)))}var m=Object.entries(n).filter(function(e){return null!=a(e,2)[1]}).map(function(e){var t=a(e,2),r=t[0],o=t[1],n=r.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()});return"".concat(c).concat(n,":").concat(b).concat(o,";")}).join(d);m&&(s+="".concat(o).concat(b,"{").concat(d).concat(m).concat(d,"}").concat(d))}}),s.trim()},W.injectCSS=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!W._isBrowser)return console.warn("bw.injectCSS requires a DOM environment"),null;var r=t.id,o=void 0===r?"bw-styles":r,n=t.append,a=void 0===n||n,i=document.getElementById(o);i||((i=document.createElement("style")).id=o,i.type="text/css",document.head.appendChild(i));var l="string"==typeof e?e:W.css(e,t);return a&&i.textContent?i.textContent+="\n"+l:i.textContent=l,i},W.s=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];r&&"object"===l(r)&&Object.assign(e,r)}return e},W.u={flex:{display:"flex"},flexCol:{display:"flex",flexDirection:"column"},flexRow:{display:"flex",flexDirection:"row"},flexWrap:{display:"flex",flexWrap:"wrap"},block:{display:"block"},inline:{display:"inline"},hidden:{display:"none"},justifyCenter:{justifyContent:"center"},justifyBetween:{justifyContent:"space-between"},justifyEnd:{justifyContent:"flex-end"},alignCenter:{alignItems:"center"},alignStart:{alignItems:"flex-start"},alignEnd:{alignItems:"flex-end"},gap1:{gap:"0.25rem"},gap2:{gap:"0.5rem"},gap3:{gap:"0.75rem"},gap4:{gap:"1rem"},gap6:{gap:"1.5rem"},gap8:{gap:"2rem"},p0:{padding:"0"},p1:{padding:"0.25rem"},p2:{padding:"0.5rem"},p3:{padding:"0.75rem"},p4:{padding:"1rem"},p6:{padding:"1.5rem"},p8:{padding:"2rem"},px4:{paddingLeft:"1rem",paddingRight:"1rem"},py2:{paddingTop:"0.5rem",paddingBottom:"0.5rem"},py4:{paddingTop:"1rem",paddingBottom:"1rem"},m0:{margin:"0"},m4:{margin:"1rem"},mt2:{marginTop:"0.5rem"},mt4:{marginTop:"1rem"},mb2:{marginBottom:"0.5rem"},mb4:{marginBottom:"1rem"},mx_auto:{marginLeft:"auto",marginRight:"auto"},textSm:{fontSize:"0.875rem"},textBase:{fontSize:"1rem"},textLg:{fontSize:"1.125rem"},textXl:{fontSize:"1.25rem"},text2xl:{fontSize:"1.5rem"},text3xl:{fontSize:"1.875rem"},bold:{fontWeight:"700"},semibold:{fontWeight:"600"},italic:{fontStyle:"italic"},textCenter:{textAlign:"center"},textRight:{textAlign:"right"},bgWhite:{background:"#ffffff"},bgTeal:{background:"#006666",color:"#ffffff"},textWhite:{color:"#ffffff"},textTeal:{color:"#006666"},textMuted:{color:"#888"},rounded:{borderRadius:"0.375rem"},roundedLg:{borderRadius:"0.5rem"},roundedFull:{borderRadius:"9999px"},border:{border:"1px solid #d8d8d8"},wFull:{width:"100%"},hFull:{height:"100%"},transition:{transition:"all 0.2s ease"}},W.responsive=function(e,t){var r={sm:"576px",md:"768px",lg:"992px",xl:"1200px"},o=[];return Object.keys(t).forEach(function(n){var a={};"base"===n?(a[e]=t[n],o.push(W.css(a))):r[n]&&(a[e]=t[n],o.push("@media (min-width: "+r[n]+") {\n"+W.css(a)+"\n}"))}),o.join("\n")},W.mapScale=function(e,t,r,o,n){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},i=a.clip,l=void 0!==i&&i,s=a.expScale,c=void 0===s?1:s,d=(e-t)/(r-t);1!==c&&(d=Math.pow(d,c));var b=d*(n-o)+o;if(l){var m=Math.min(o,n),p=Math.max(o,n);b=Math.max(m,Math.min(p,b))}return b},W.clip=function(e,t,r){return Math.max(t,Math.min(r,e))},W._isBrowser&&(W.$=function(e){return e?Array.isArray(e)?e:e.nodeType?[e]:void 0!==e.length&&"string"!=typeof e?Array.from(e):"string"==typeof e?Array.from(document.querySelectorAll(e)):[]:[]},W.$.one=function(e){return W.$(e)[0]||null}),W.loadDefaultStyles=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.minify,r=void 0===t||t,o=e.palette;if(W._isBrowser){var n=W.css(function(){var e={"*":{"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"},"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",transition:"color 0.15s"}};Object.assign(e,D.grid),e[".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",padding:"0.5rem 1.125rem","font-size":"0.875rem","font-family":"inherit","border-radius":"6px",transition:"all 0.15s ease-out",gap:"0.5rem"},e[".bw-btn:hover"]={"text-decoration":"none",transform:"translateY(-1px)"},e[".bw-btn:active"]={transform:"translateY(0)"},e[".bw-btn:focus-visible"]={outline:"2px solid currentColor","outline-offset":"2px"},e[".bw-btn:disabled"]={opacity:"0.5",cursor:"not-allowed","pointer-events":"none"},e[".bw-btn-lg"]={padding:"0.625rem 1.5rem","font-size":"1rem","border-radius":"8px"},e[".bw-btn-sm"]={padding:"0.25rem 0.75rem","font-size":"0.8125rem","border-radius":"5px"},e[".bw-card"]={position:"relative",display:"flex","flex-direction":"column","min-width":"0",height:"100%","word-wrap":"break-word","background-clip":"border-box",border:"1px solid transparent","border-radius":"8px",transition:"box-shadow 0.2s ease-out, transform 0.2s ease-out","margin-bottom":"1.5rem",overflow:"hidden"},e[".bw-card-body"]={flex:"1 1 auto",padding:"1.25rem 1.5rem"},e[".bw-card-body > *:last-child"]={"margin-bottom":"0"},e[".bw-card-title"]={"margin-bottom":"0.5rem","font-size":"1.125rem","font-weight":"600","line-height":"1.3"},e[".bw-card-text"]={"margin-bottom":"0","font-size":"0.9375rem","line-height":"1.6"},e[".bw-card-header"]={padding:"0.875rem 1.5rem","margin-bottom":"0","font-weight":"600","font-size":"0.875rem"},e[".bw-card-footer"]={padding:"0.75rem 1.5rem","font-size":"0.875rem"},e[".bw-card-hoverable"]={transition:"all 0.3s ease-out"},e[".bw-card-img-top"]={width:"100%","border-top-left-radius":"7px","border-top-right-radius":"7px"},e[".bw-card-img-bottom"]={width:"100%","border-bottom-left-radius":"7px","border-bottom-right-radius":"7px"},e[".bw-card-img-left"]={width:"40%","object-fit":"cover"},e[".bw-card-img-right"]={width:"40%","object-fit":"cover"},e[".bw-card-subtitle"]={"margin-top":"-0.25rem","margin-bottom":"0.5rem","font-size":"0.875rem"},e[".bw-form-control"]={display:"block",width:"100%",padding:"0.5rem 0.875rem","font-size":"0.9375rem","font-weight":"400","line-height":"1.5","background-clip":"padding-box",appearance:"none",border:"1px solid transparent","border-radius":"6px",transition:"border-color 0.15s ease-out, box-shadow 0.15s ease-out","font-family":"inherit"},e[".bw-form-control:focus"]={outline:"2px solid currentColor","outline-offset":"-1px"},e[".bw-form-control::placeholder"]={opacity:"1"},e[".bw-form-label"]={display:"block","margin-bottom":"0.375rem","font-size":"0.875rem","font-weight":"600"},e[".bw-form-group"]={"margin-bottom":"1.25rem"},e[".bw-form-text"]={"margin-top":"0.25rem","font-size":"0.8125rem"},e["select.bw-form-control"]={"padding-right":"2.25rem","background-repeat":"no-repeat","background-position":"right 0.75rem center","background-size":"16px 12px"},e["textarea.bw-form-control"]={"min-height":"5rem",resize:"vertical"},e[".bw-valid-feedback"]={display:"block","font-size":"0.875rem","margin-top":"0.25rem"},e[".bw-invalid-feedback"]={display:"block","font-size":"0.875rem","margin-top":"0.25rem"},Object.assign(e,{".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"}}),e[".bw-navbar"]={position:"relative",display:"flex","flex-wrap":"wrap","align-items":"center","justify-content":"space-between",padding:"0.5rem 1.5rem"},e[".bw-navbar > .bw-container, .bw-navbar > .container"]={display:"flex","flex-wrap":"wrap","align-items":"center","justify-content":"space-between"},e[".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"},e[".bw-navbar-nav"]={display:"flex","flex-direction":"row","padding-left":"0","margin-bottom":"0","list-style":"none",gap:"0.25rem"},e[".bw-navbar-nav .bw-nav-link"]={display:"block",padding:"0.5rem 0.875rem","text-decoration":"none","font-size":"0.875rem","font-weight":"500","border-radius":"6px",transition:"color 0.15s, background-color 0.15s"},e[".bw-table"]={width:"100%","margin-bottom":"1.5rem","vertical-align":"top","border-collapse":"collapse","font-size":"0.9375rem","line-height":"1.5"},e[".bw-table > :not(caption) > * > *"]={padding:"0.75rem 1rem"},e[".bw-table > tbody"]={"vertical-align":"inherit"},e[".bw-table > thead"]={"vertical-align":"bottom"},e[".bw-table > thead > tr > *"]={padding:"0.625rem 1rem","font-size":"0.8125rem","font-weight":"600","text-transform":"uppercase","letter-spacing":"0.04em"},e[".bw-table caption"]={padding:"0.5rem 1rem","font-size":"0.875rem","caption-side":"bottom"},e[".bw-table-responsive"]={"overflow-x":"auto","-webkit-overflow-scrolling":"touch"},e[".bw-alert"]={position:"relative",padding:"0.875rem 1.25rem","margin-bottom":"1rem",border:"1px solid transparent","border-radius":"8px","font-size":"0.9375rem","line-height":"1.6"},e[".bw-alert-heading, .alert-heading"]={color:"inherit"},e[".bw-alert-link, .alert-link"]={"font-weight":"700"},e[".bw-alert-dismissible"]={"padding-right":"3rem"},e[".bw-alert-dismissible .btn-close"]={position:"absolute",top:"0",right:"0","z-index":"2",padding:"1.25rem 1rem"},e[".bw-badge"]={display:"inline-block",padding:"0.375rem 0.625rem","font-size":"0.875rem","font-weight":"600","line-height":"1.3","text-align":"center","white-space":"nowrap","vertical-align":"baseline","border-radius":".375rem"},e[".bw-badge:empty"]={display:"none"},e[".bw-badge-sm"]={"font-size":"0.75rem",padding:"0.25rem 0.5rem"},e[".bw-badge-lg"]={"font-size":"1rem",padding:"0.5rem 0.875rem"},e[".bw-badge-pill"]={"border-radius":"50rem"},e[".bw-progress"]={display:"flex",height:"1.25rem",overflow:"hidden","font-size":".875rem","border-radius":".5rem"},e[".bw-progress-bar"]={display:"flex","flex-direction":"column","justify-content":"center",overflow:"hidden","text-align":"center","white-space":"nowrap",transition:"width 0.3s ease-out","font-weight":"600"},e[".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"},e[".bw-progress-bar-animated"]={animation:"progress-bar-stripes 1s linear infinite"},e["@keyframes progress-bar-stripes"]={"0%":{"background-position-x":"1rem"}},e[".bw-nav"]={display:"flex","flex-wrap":"wrap","padding-left":"0","margin-bottom":"0","list-style":"none",gap:"0"},e[".bw-nav-item"]={display:"block"},e[".bw-nav-tabs .bw-nav-item"]={"margin-bottom":"-2px"},e[".bw-nav-link"]={display:"block",padding:"0.625rem 1rem","font-size":"0.875rem","font-weight":"500","text-decoration":"none",cursor:"pointer",border:"none",background:"transparent",transition:"color 0.15s ease-out, background-color 0.15s ease-out, border-color 0.15s ease-out","font-family":"inherit"},e[".bw-nav-tabs .bw-nav-link"]={border:"none","border-bottom":"2px solid transparent","border-radius":"0","background-color":"transparent"},e[".bw-nav-pills .bw-nav-link"]={"border-radius":"6px"},e[".bw-nav-vertical"]={"flex-direction":"column"},e[".bw-tab-content"]={padding:"1.25rem 0"},e[".bw-tab-pane"]={display:"none"},e[".bw-tab-pane.active"]={display:"block"},e[".bw-nav-scrollable"]={"flex-wrap":"nowrap","overflow-x":"auto","-webkit-overflow-scrolling":"touch","scrollbar-width":"none"},e[".bw-nav-scrollable .bw-nav-link"]={"white-space":"nowrap"},e[".bw-list-group"]={display:"flex","flex-direction":"column","padding-left":"0","margin-bottom":"0","border-radius":"0.375rem"},e[".bw-list-group-item"]={position:"relative",display:"block",padding:"0.75rem 1.25rem","text-decoration":"none","font-size":"0.9375rem"},e[".bw-list-group-item:first-child"]={"border-top-left-radius":"inherit","border-top-right-radius":"inherit"},e[".bw-list-group-item:last-child"]={"border-bottom-right-radius":"inherit","border-bottom-left-radius":"inherit"},e[".bw-list-group-item + .bw-list-group-item"]={"border-top-width":"0"},e[".bw-list-group-item.disabled"]={"pointer-events":"none"},e["a.bw-list-group-item"]={cursor:"pointer",transition:"background-color 0.15s ease-out, color 0.15s ease-out"},e["a.bw-list-group-item:focus-visible, .bw-list-group-item:focus-visible"]={"z-index":"2",outline:"2px solid currentColor","outline-offset":"-2px"},e[".bw-list-group-flush"]={"border-radius":"0"},e[".bw-list-group-flush > .bw-list-group-item"]={"border-width":"0 0 1px","border-radius":"0"},e[".bw-list-group-flush > .bw-list-group-item:last-child"]={"border-bottom-width":"0"},e[".bw-pagination"]={display:"flex","padding-left":"0","list-style":"none","margin-bottom":"0"},e[".bw-page-item"]={display:"list-item","list-style":"none"},e[".bw-page-link"]={position:"relative",display:"block",padding:"0.375rem 0.75rem","margin-left":"-1px","line-height":"1.25","text-decoration":"none",transition:"color 0.15s ease-out, background-color 0.15s ease-out, border-color 0.15s ease-out"},e[".bw-page-item:first-child .bw-page-link"]={"margin-left":"0","border-top-left-radius":"0.375rem","border-bottom-left-radius":"0.375rem"},e[".bw-page-item:last-child .bw-page-link"]={"border-top-right-radius":"0.375rem","border-bottom-right-radius":"0.375rem"},e[".bw-page-link:focus-visible"]={"z-index":"3",outline:"2px solid currentColor","outline-offset":"-2px"},e[".bw-breadcrumb"]={display:"flex","flex-wrap":"wrap",padding:"0 0","margin-bottom":"1rem","list-style":"none"},e[".bw-breadcrumb-item"]={display:"flex"},e[".bw-breadcrumb-item + .bw-breadcrumb-item"]={"padding-left":"0.5rem"},e[".bw-breadcrumb-item + .bw-breadcrumb-item::before"]={float:"left","padding-right":"0.5rem",content:'"/"'},e[".bw-breadcrumb-item a"]={"text-decoration":"none",transition:"color 0.15s ease-out"},e[".bw-breadcrumb-item.active"]={"font-weight":"500"},e[".bw-hero"]={position:"relative",overflow:"hidden"},e[".bw-hero-overlay"]={position:"absolute",top:"0",left:"0",right:"0",bottom:"0","z-index":"1"},e[".bw-hero-content"]={position:"relative","z-index":"2"},e[".bw-hero-title"]={"font-weight":"300","letter-spacing":"-0.05rem",color:"inherit"},e[".bw-hero-subtitle"]={color:"inherit"},e[".bw-hero-actions"]={display:"flex",gap:"1rem","justify-content":"center","flex-wrap":"wrap"},e[".bw-display-4"]={"font-size":"calc(1.475rem + 2.7vw)","font-weight":"300","line-height":"1.2"},e[".bw-lead"]={"font-size":"1.25rem","font-weight":"300"},e[".bw-feature"]={padding:"1rem"},e[".bw-feature-icon"]={display:"inline-block","margin-bottom":"1rem"},e[".bw-feature-title"]={"margin-bottom":"0.5rem"},e[".bw-feature-grid"]={width:"100%"},e[".bw-g-4"]={"--bw-gutter-x":"1.5rem","--bw-gutter-y":"1.5rem"},e[".bw-section"]={position:"relative"},e[".bw-section-header"]={"margin-bottom":"3rem"},e[".bw-section-title"]={"margin-bottom":"1rem","font-weight":"300","font-size":"calc(1.325rem + .9vw)"},e[".bw-cta"]={position:"relative"},e[".bw-cta-content"]={"max-width":"48rem",margin:"0 auto"},e[".bw-cta-title"]={"font-weight":"300"},e[".bw-cta-actions"]={display:"flex",gap:"1rem","justify-content":"center","flex-wrap":"wrap"},e[".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"},e[".bw-spinner-border-sm"]={width:"1rem",height:"1rem","border-width":"0.2em"},e[".bw-spinner-border-lg"]={width:"3rem",height:"3rem","border-width":"0.3em"},e[".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"},e[".bw-spinner-grow-sm"]={width:"1rem",height:"1rem"},e[".bw-spinner-grow-lg"]={width:"3rem",height:"3rem"},e["@keyframes bw-spinner-border"]={"100%":{transform:"rotate(360deg)"}},e["@keyframes bw-spinner-grow"]={"0%":{transform:"scale(0)"},"50%":{opacity:"1",transform:"none"}},e[".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"},e[".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"},e[".bw-vstack"]={display:"flex","flex-direction":"column"},e[".bw-hstack"]={display:"flex","flex-direction":"row","align-items":"center"},e[".bw-gap-0"]={gap:"0"},e[".bw-gap-1"]={gap:"0.25rem"},e[".bw-gap-2"]={gap:"0.5rem"},e[".bw-gap-3"]={gap:"1rem"},e[".bw-gap-4"]={gap:"1.5rem"},e[".bw-gap-5"]={gap:"3rem"};for(var t=1;t<=11;t++)e[".bw-offset-"+t]={"margin-left":(t/12*100).toFixed(6).replace(/\.?0+$/,"")+"%"};e[".bw-code-demo"]={"margin-bottom":"2rem"},e[".bw-code-pre"]={margin:"0",border:"none","border-radius":"6px","overflow-x":"auto"},e[".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"},e[".bw-code-copy-btn"]={position:"absolute",top:"0.5rem",right:"0.5rem",padding:"0.25rem 0.625rem","font-size":"0.6875rem","border-radius":"4px",cursor:"pointer","font-family":"inherit",transition:"all 0.15s"},e[".bw-btn-group, .bw-btn-group-vertical"]={position:"relative",display:"inline-flex","vertical-align":"middle"},e[".bw-btn-group > .bw-btn, .bw-btn-group-vertical > .bw-btn"]={position:"relative",flex:"1 1 auto","border-radius":"0","margin-left":"-1px"},e[".bw-btn-group > .bw-btn:first-child"]={"margin-left":"0","border-top-left-radius":"6px","border-bottom-left-radius":"6px"},e[".bw-btn-group > .bw-btn:last-child"]={"border-top-right-radius":"6px","border-bottom-right-radius":"6px"},e[".bw-btn-group-vertical"]={"flex-direction":"column","align-items":"flex-start","justify-content":"center"},e[".bw-btn-group-vertical > .bw-btn"]={width:"100%","margin-left":"0","margin-top":"-1px"},e[".bw-btn-group-vertical > .bw-btn:first-child"]={"margin-top":"0","border-top-left-radius":"6px","border-top-right-radius":"6px","border-bottom-left-radius":"0","border-bottom-right-radius":"0"},e[".bw-btn-group-vertical > .bw-btn:last-child"]={"border-top-left-radius":"0","border-top-right-radius":"0","border-bottom-left-radius":"6px","border-bottom-right-radius":"6px"},e[".bw-accordion"]={"border-radius":"8px",overflow:"hidden"},e[".bw-accordion-item"]={border:"1px solid transparent"},e[".bw-accordion-item + .bw-accordion-item"]={"border-top":"0"},e[".bw-accordion-header"]={margin:"0"},e[".bw-accordion-button"]={position:"relative",display:"flex","align-items":"center",width:"100%",padding:"1rem 1.25rem","font-size":"1rem","font-weight":"500","text-align":"left","background-color":"transparent",border:"0","overflow-anchor":"none",cursor:"pointer","font-family":"inherit",transition:"color 0.15s ease-out, background-color 0.15s ease-out"},e[".bw-accordion-button::after"]={"flex-shrink":"0",width:"1.25rem",height:"1.25rem","margin-left":"auto",content:'""',"background-repeat":"no-repeat","background-size":"1.25rem",transition:"transform 0.2s ease-out"},e[".bw-accordion-button:not(.bw-collapsed)::after"]={transform:"rotate(-180deg)"},e[".bw-accordion-collapse"]={"max-height":"0",overflow:"hidden",transition:"max-height 0.3s ease"},e[".bw-accordion-collapse.bw-collapse-show"]={"max-height":"none"},e[".bw-accordion-body"]={padding:"1rem 1.25rem"},e[".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, visibility 0.2s ease"},e[".bw-modal.bw-modal-show"]={opacity:"1",visibility:"visible","pointer-events":"auto"},e[".bw-modal-dialog"]={position:"relative",width:"100%","max-width":"500px",margin:"1.75rem auto","pointer-events":"none",transform:"translateY(-20px)",transition:"transform 0.2s ease-out"},e[".bw-modal.bw-modal-show .bw-modal-dialog"]={transform:"translateY(0)"},e[".bw-modal-sm"]={"max-width":"300px"},e[".bw-modal-lg"]={"max-width":"800px"},e[".bw-modal-xl"]={"max-width":"1140px"},e[".bw-modal-content"]={position:"relative",display:"flex","flex-direction":"column","pointer-events":"auto","background-clip":"padding-box",border:"1px solid transparent","border-radius":"8px",outline:"0"},e[".bw-modal-header"]={display:"flex","align-items":"center","justify-content":"space-between",padding:"1rem 1.5rem"},e[".bw-modal-title"]={margin:"0","font-size":"1.25rem","font-weight":"600","line-height":"1.3"},e[".bw-modal-body"]={position:"relative",flex:"1 1 auto",padding:"1.5rem"},e[".bw-modal-footer"]={display:"flex","flex-wrap":"wrap","align-items":"center","justify-content":"flex-end",padding:"0.75rem 1.5rem",gap:"0.5rem"},e[".bw-carousel"]={position:"relative",overflow:"hidden","border-radius":"8px"},e[".bw-carousel-track"]={display:"flex",transition:"transform 0.3s ease-out",height:"100%"},e[".bw-carousel-slide"]={"min-width":"100%","flex-shrink":"0",overflow:"hidden",position:"relative",display:"flex","align-items":"center","justify-content":"center"},e[".bw-carousel-slide img"]={width:"100%",height:"100%","object-fit":"cover"},e[".bw-carousel-caption"]={position:"absolute",bottom:"0",left:"0",right:"0",padding:"0.75rem 1rem"},e[".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",transition:"background-color 0.2s ease"},e[".bw-carousel-control img"]={width:"20px",height:"20px","pointer-events":"none"},e[".bw-carousel-control-prev"]={left:"10px"},e[".bw-carousel-control-next"]={right:"10px"},e[".bw-carousel-indicators"]={position:"absolute",bottom:"12px",left:"50%",transform:"translateX(-50%)",display:"flex",gap:"6px","z-index":"2"},e[".bw-carousel-indicator"]={width:"10px",height:"10px","border-radius":"50%",border:"2px solid transparent",padding:"0",cursor:"pointer",transition:"opacity 0.2s ease, background-color 0.2s ease"},e[".bw-toast-container"]={position:"fixed","z-index":"1080","pointer-events":"none",display:"flex","flex-direction":"column",gap:"0.5rem",padding:"1rem"},e[".bw-toast"]={"pointer-events":"auto",width:"350px","max-width":"100%","background-clip":"padding-box","border-radius":"8px",opacity:"0",transform:"translateY(-10px)",transition:"opacity 0.3s ease, transform 0.3s ease"},e[".bw-toast.bw-toast-show"]={opacity:"1",transform:"translateY(0)"},e[".bw-toast.bw-toast-hiding"]={opacity:"0",transform:"translateY(-10px)"},e[".bw-toast-header"]={display:"flex","align-items":"center","justify-content":"space-between",padding:"0.5rem 0.75rem","font-size":"0.875rem"},e[".bw-toast-body"]={padding:"0.75rem","font-size":"0.9375rem"},e[".bw-dropdown"]={position:"relative",display:"inline-block"},e[".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"},e[".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-radius":"6px",opacity:"0",visibility:"hidden",transform:"translateY(-4px)","pointer-events":"none",transition:"opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease"},e[".bw-dropdown-menu.bw-dropdown-show"]={opacity:"1",visibility:"visible",transform:"translateY(0)","pointer-events":"auto"},e[".bw-dropdown-menu-end"]={left:"auto",right:"0"},e[".bw-dropdown-item"]={display:"block",width:"100%",padding:"0.375rem 1rem",clear:"both","font-weight":"400","text-align":"inherit","text-decoration":"none","white-space":"nowrap","background-color":"transparent",border:"0","font-size":"0.9375rem",transition:"background-color 0.15s, color 0.15s"},e[".bw-dropdown-item:focus-visible"]={outline:"2px solid currentColor","outline-offset":"-2px"},e[".bw-dropdown-divider"]={height:"0",margin:"0.5rem 0",overflow:"hidden",opacity:"1"},e[".bw-form-switch"]={"padding-left":"2.5em"},e[".bw-form-switch .bw-switch-input"]={width:"2em",height:"1.125em","margin-left":"-2.5em","border-radius":"2em",appearance:"none","background-position":"left center","background-repeat":"no-repeat","background-size":"contain",transition:"background-position 0.15s ease-out, background-color 0.15s ease-out",cursor:"pointer"},e[".bw-form-switch .bw-switch-input:checked"]={"background-position":"right center"},e[".bw-form-switch .bw-switch-input:disabled"]={opacity:"0.5",cursor:"not-allowed"},e[".bw-skeleton"]={"border-radius":"4px","background-size":"400% 100%",animation:"bw-skeleton-shimmer 1.4s ease infinite"},e[".bw-skeleton-text"]={height:"1em","margin-bottom":"0.5rem"},e[".bw-skeleton-circle"]={"border-radius":"50%"},e[".bw-skeleton-rect"]={"border-radius":"8px"},e[".bw-skeleton-group"]={display:"flex","flex-direction":"column"},e["@keyframes bw-skeleton-shimmer"]={"0%":{"background-position":"100% 50%"},"100%":{"background-position":"0 50%"}},e[".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"},e[".bw-avatar-sm"]={width:"2rem",height:"2rem","font-size":"0.75rem"},e[".bw-avatar-md"]={width:"3rem",height:"3rem","font-size":"1rem"},e[".bw-avatar-lg"]={width:"4rem",height:"4rem","font-size":"1.25rem"},e[".bw-avatar-xl"]={width:"5rem",height:"5rem","font-size":"1.5rem"},e[".bw-stat-card"]={"border-radius":"8px",padding:"1.25rem","border-left":"4px solid transparent",transition:"box-shadow 0.15s ease-out, transform 0.15s ease-out"},e[".bw-stat-card:hover"]={transform:"translateY(-1px)"},e[".bw-stat-icon"]={"font-size":"1.5rem","margin-bottom":"0.5rem"},e[".bw-stat-value"]={"font-size":"2rem","font-weight":"700","line-height":"1.2"},e[".bw-stat-label"]={"font-size":"0.875rem","margin-top":"0.25rem"},e[".bw-stat-change"]={"font-size":"0.875rem","font-weight":"500","margin-top":"0.5rem"},e[".bw-tooltip-wrapper"]={position:"relative",display:"inline-block"},e[".bw-tooltip"]={position:"absolute","z-index":"999",padding:"0.375rem 0.75rem","border-radius":"4px","font-size":"0.875rem","white-space":"nowrap","pointer-events":"none",opacity:"0",visibility:"hidden",transition:"opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease"},e[".bw-tooltip.bw-tooltip-show"]={opacity:"1",visibility:"visible"},e[".bw-tooltip-top"]={bottom:"100%",left:"50%",transform:"translateX(-50%) translateY(-4px)","margin-bottom":"4px"},e[".bw-tooltip-top.bw-tooltip-show"]={transform:"translateX(-50%) translateY(0)"},e[".bw-tooltip-bottom"]={top:"100%",left:"50%",transform:"translateX(-50%) translateY(4px)","margin-top":"4px"},e[".bw-tooltip-bottom.bw-tooltip-show"]={transform:"translateX(-50%) translateY(0)"},e[".bw-tooltip-left"]={right:"100%",top:"50%",transform:"translateY(-50%) translateX(-4px)","margin-right":"4px"},e[".bw-tooltip-left.bw-tooltip-show"]={transform:"translateY(-50%) translateX(0)"},e[".bw-tooltip-right"]={left:"100%",top:"50%",transform:"translateY(-50%) translateX(4px)","margin-left":"4px"},e[".bw-tooltip-right.bw-tooltip-show"]={transform:"translateY(-50%) translateX(0)"},e[".bw-search-input"]={position:"relative",display:"flex","align-items":"center"},e[".bw-search-input .bw-search-field"]={"padding-right":"2.5rem"},e[".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%",transition:"color 0.15s ease-out"},e[".bw-range-wrapper"]={"margin-bottom":"1rem"},e[".bw-range-label"]={display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"0.5rem","font-size":"0.875rem","font-weight":"500"},e[".bw-range-value"]={"font-weight":"600"},e[".bw-range"]={width:"100%",height:"0.5rem",padding:"0",appearance:"none",border:"none","border-radius":"0.25rem",cursor:"pointer",outline:"none"},e[".bw-range:disabled"]={opacity:"0.5",cursor:"not-allowed"},e[".bw-media"]={display:"flex","align-items":"flex-start",gap:"1rem"},e[".bw-media-reverse"]={"flex-direction":"row-reverse"},e[".bw-media-img"]={"border-radius":"50%","object-fit":"cover","flex-shrink":"0"},e[".bw-media-body"]={flex:"1","min-width":"0"},e[".bw-media-title"]={margin:"0 0 0.25rem 0","font-size":"1rem","font-weight":"600","line-height":"1.3"},e[".bw-file-upload"]={display:"flex","flex-direction":"column","align-items":"center","justify-content":"center",padding:"2rem",border:"2px dashed transparent","border-radius":"8px",cursor:"pointer","text-align":"center",position:"relative",transition:"border-color 0.15s ease-out, background-color 0.15s ease-out"},e[".bw-file-upload-icon"]={"font-size":"2rem","margin-bottom":"0.5rem"},e[".bw-file-upload-text"]={"font-size":"0.875rem"},e[".bw-file-upload-input"]={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)",border:"0"},e[".bw-timeline"]={position:"relative","padding-left":"2rem"},e[".bw-timeline-item"]={position:"relative","padding-bottom":"1.5rem"},e[".bw-timeline-item:last-child"]={"padding-bottom":"0"},e[".bw-timeline-marker"]={position:"absolute",left:"-1.75rem",top:"0.25rem",width:"0.75rem",height:"0.75rem","border-radius":"50%"},e[".bw-timeline-content"]={"padding-left":"0.5rem"},e[".bw-timeline-date"]={"font-size":"0.75rem","margin-bottom":"0.25rem","font-weight":"500"},e[".bw-timeline-title"]={"font-size":"1rem","font-weight":"600",margin:"0 0 0.25rem 0","line-height":"1.3"},e[".bw-timeline-text"]={"font-size":"0.875rem",margin:"0","line-height":"1.5"},e[".bw-stepper"]={display:"flex",gap:"0"},e[".bw-step"]={flex:"1",display:"flex","flex-direction":"column","align-items":"center","text-align":"center",position:"relative"},e[".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",transition:"background-color 0.2s ease-out, color 0.2s ease-out"},e[".bw-step-body"]={"margin-top":"0.5rem"},e[".bw-step-label"]={"font-size":"0.875rem","font-weight":"500"},e[".bw-step-description"]={"font-size":"0.75rem","margin-top":"0.125rem"},e[".bw-chip-input"]={display:"flex","flex-wrap":"wrap","align-items":"center",gap:"0.375rem",padding:"0.375rem 0.5rem","border-radius":"6px","min-height":"2.5rem",cursor:"text",transition:"border-color 0.15s ease-out, box-shadow 0.15s ease-out"},e[".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"},e[".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%",transition:"color 0.15s ease-out, background-color 0.15s ease-out"},e[".bw-chip-field"]={flex:"1","min-width":"80px",border:"none",outline:"none","font-size":"0.875rem",padding:"0.125rem 0",background:"transparent"},e[".bw-popover-wrapper"]={position:"relative",display:"inline-block"},e[".bw-popover-trigger"]={cursor:"pointer"},e[".bw-popover"]={position:"absolute","z-index":"1000","min-width":"200px","max-width":"320px","border-radius":"8px","pointer-events":"none",opacity:"0",visibility:"hidden",transition:"opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease"},e[".bw-popover.bw-popover-show"]={opacity:"1",visibility:"visible","pointer-events":"auto"},e[".bw-popover-header"]={padding:"0.625rem 0.875rem","font-weight":"600","font-size":"0.9375rem"},e[".bw-popover-body"]={padding:"0.75rem 0.875rem","font-size":"0.875rem","line-height":"1.5"},e[".bw-popover-top"]={bottom:"100%",left:"50%",transform:"translateX(-50%) translateY(-8px)","margin-bottom":"8px"},e[".bw-popover-top.bw-popover-show"]={transform:"translateX(-50%) translateY(0)"},e[".bw-popover-bottom"]={top:"100%",left:"50%",transform:"translateX(-50%) translateY(8px)","margin-top":"8px"},e[".bw-popover-bottom.bw-popover-show"]={transform:"translateX(-50%) translateY(0)"},e[".bw-popover-left"]={right:"100%",top:"50%",transform:"translateY(-50%) translateX(-8px)","margin-right":"8px"},e[".bw-popover-left.bw-popover-show"]={transform:"translateY(-50%) translateX(0)"},e[".bw-popover-right"]={left:"100%",top:"50%",transform:"translateY(-50%) translateX(8px)","margin-left":"8px"},e[".bw-popover-right.bw-popover-show"]={transform:"translateY(-50%) translateX(0)"},e[".bw-bar-chart-container"]={padding:"1rem",border:"1px solid transparent","border-radius":"8px"},e[".bw-bar-chart"]={display:"flex","align-items":"flex-end",gap:"6px",padding:"0 0.5rem"},e[".bw-bar-group"]={flex:"1",display:"flex","flex-direction":"column","align-items":"center",height:"100%","justify-content":"flex-end"},e[".bw-bar"]={width:"100%","border-radius":"3px 3px 0 0",transition:"height 0.3s ease-out","min-height":"4px"},e[".bw-bar:hover"]={opacity:"0.85"},e[".bw-bar-value"]={"font-size":"0.65rem","font-weight":"600","margin-bottom":"2px","text-align":"center"},e[".bw-bar-label"]={"font-size":"0.7rem","margin-top":"4px","text-align":"center"},e[".bw-bar-chart-title"]={"font-size":"1.1rem","font-weight":"600",margin:"0 0 0.75rem 0"};var r={0:"0",1:".25rem",2:".5rem",3:"1rem",4:"1.5rem",5:"3rem"};for(var o in r){var n=r[o];e[".bw-m-"+o]={margin:n+" !important"},e[".bw-mt-"+o]={"margin-top":n+" !important"},e[".bw-mb-"+o]={"margin-bottom":n+" !important"},e[".bw-ms-"+o]={"margin-left":n+" !important"},e[".bw-me-"+o]={"margin-right":n+" !important"},e[".bw-p-"+o]={padding:n+" !important"},e[".bw-pt-"+o+", .pt-"+o]={"padding-top":n+" !important"},e[".bw-pb-"+o+", .pb-"+o]={"padding-bottom":n+" !important"},e[".bw-ps-"+o+", .ps-"+o]={"padding-left":n+" !important"},e[".bw-pe-"+o+", .pe-"+o]={"padding-right":n+" !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"};var a={start:"flex-start",end:"flex-end",center:"center",between:"space-between",around:"space-around"};for(var i in a)e[".bw-justify-content-"+i+", .justify-content-"+i]={"justify-content":a[i]};var l={start:"flex-start",end:"flex-end",center:"center"};for(var s in l)e[".bw-align-items-"+s+", .align-items-"+s]={"align-items":l[s]};return["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-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[".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[".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[".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[".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"},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"},Object.assign(e,D.responsive),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"}},I(e)}());W.injectCSS(n,{id:"bw-structural",append:!1,minify:r})}var a=Object.assign({},L,o||{});return W.generateTheme("",Object.assign({},a,{inject:!0}))},W.getTheme=function(){return"undefined"!=typeof console&&console.warn&&console.warn("bw.getTheme() is deprecated. Use bw.generateTheme() instead."),JSON.parse(JSON.stringify(F))},W.setTheme=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"undefined"!=typeof console&&console.warn&&console.warn("bw.setTheme() is deprecated. Use bw.generateTheme() instead.");var r=t.inject,o=void 0===r||r;if(R(e),o&&W._isBrowser&&e.colors)for(var n=document.documentElement,i=0,l=Object.entries(e.colors);i<l.length;i++){var s=a(l[i],2),c=s[0],d=s[1];n.style.setProperty("--bw-"+c,d)}return W.getTheme()},W.generateTheme=function(e,t){if(!t||!t.primary||!t.secondary)throw new Error("bw.generateTheme requires config.primary and config.secondary");var r=Object.assign({},L,t);t.tertiary||(r.tertiary=r.primary);var o=O(r),n=function(e){var t=e&&e.spacing||"normal",r=e&&e.radius||"md",o=e&&e.fontSize||1,n=e&&e.typeRatio||"normal",a="string"==typeof n?A[n]||A.normal:n,i=e&&e.elevation||"md",l=e&&e.motion||"standard";return{spacing:"string"==typeof t?z[t]||z.normal:t,radius:"string"==typeof r?C[r]||C.md:r,fontSize:o,typeScale:M(16,a),elevation:"string"==typeof i?T[i]||T.md:i,motion:"string"==typeof l?E[l]||E.standard:l}}(r),a=I(N(e,o,n)),i=W.css(a),l=O(S(r)),s=function(e,t,r){var o=N("",t,r),n=e?"."+e+".bw-theme-alt":".bw-theme-alt",a={};for(var i in o)if(o.hasOwnProperty(i))if("@"===i.charAt(0)){var l=o[i],s={};for(var c in l)l.hasOwnProperty(c)&&(s[n+" "+c]=l[c]);a[i]=s}else{for(var d=i.split(","),b=[],m=0;m<d.length;m++){var p=d[m].trim();"body"===p||p.indexOf("body"),b.push(n+" "+p)}a[b.join(", ")]=o[i]}return a[n+" body, :root"+n+" body"]={color:t.dark.base,"background-color":t.light.base},a}(e,l,n),c=I(s),d=W.css(c),b=j(r);if(!1!==t.inject&&W._isBrowser){var m=e?"bw-theme-"+e:"bw-theme-default";W.injectCSS(i,{id:m,append:!1});var p=e?"bw-theme-"+e+"-alt":"bw-theme-default-alt";W.injectCSS(d,{id:p,append:!1})}e||(W.u.bgTeal={background:o.primary.base,color:o.primary.textOn},W.u.textTeal={color:o.primary.base},W.u.bgWhite={background:"#ffffff"},W.u.textWhite={color:"#ffffff"});var u={css:i,palette:o,name:e,isLightPrimary:b,alternate:{css:d,palette:l}};return W._activeTheme=u,W._activeThemeMode="primary",u},W.applyTheme=function(e){if(!W._isBrowser)return e||"primary";var t,r=document.documentElement,o=!W._activeTheme||W._activeTheme.isLightPrimary;return(t="primary"!==e&&("alternate"===e||("light"===e?!o:"dark"===e&&o)))?r.classList.add("bw-theme-alt"):r.classList.remove("bw-theme-alt"),W._activeThemeMode=t?"alternate":"primary",W._activeThemeMode},W.toggleTheme=function(){var e=W._activeThemeMode||"primary";return W.applyTheme("primary"===e?"alternate":"primary")},W.hexToHsl=f,W.hslToHex=w,W.adjustLightness=h,W.mixColor=g,W.relativeLuminance=v,W.textOnColor=y,W.deriveShades=_,W.derivePalette=O,W.harmonize=x,W.deriveAlternateSeed=k,W.deriveAlternateConfig=S,W.isLightPalette=j,W.SPACING_PRESETS=z,W.RADIUS_PRESETS=C,W.TYPE_RATIO_PRESETS=A,W.ELEVATION_PRESETS=T,W.MOTION_PRESETS=E,W.generateTypeScale=M,W.DEFAULT_PALETTE_CONFIG=L,W.THEME_PRESETS={teal:{primary:"#006666",secondary:"#6c757d",tertiary:"#006666",label:"Teal",desc:"The signature bitwrench palette — professional teal and neutral gray."},ocean:{primary:"#0077b6",secondary:"#90e0ef",tertiary:"#00b4d8",label:"Ocean",desc:"Cool blues and teals for a calm, professional look."},sunset:{primary:"#e76f51",secondary:"#264653",tertiary:"#e9c46a",label:"Sunset",desc:"Warm oranges and deep earth tones for a bold feel."},forest:{primary:"#2d6a4f",secondary:"#95d5b2",tertiary:"#52b788",label:"Forest",desc:"Natural greens for an organic, earthy vibe."},slate:{primary:"#343a40",secondary:"#adb5bd",tertiary:"#6c757d",label:"Slate",desc:"Elegant grays for a minimal, modern interface."},rose:{primary:"#e11d48",secondary:"#fda4af",tertiary:"#fb7185",label:"Rose",desc:"Vibrant pinks and reds for a bold, energetic design."},indigo:{primary:"#4f46e5",secondary:"#a5b4fc",tertiary:"#818cf8",label:"Indigo",desc:"Deep purples and soft lavenders for a creative palette."},amber:{primary:"#d97706",secondary:"#fbbf24",tertiary:"#f59e0b",label:"Amber",desc:"Warm golds and yellows for a sunny, welcoming feel."},emerald:{primary:"#059669",secondary:"#6ee7b7",tertiary:"#34d399",label:"Emerald",desc:"Bright greens and mints for a fresh, modern look."},nord:{primary:"#5e81ac",secondary:"#88c0d0",tertiary:"#81a1c1",label:"Nord",desc:"Muted arctic blues inspired by the Nord color scheme."},coral:{primary:"#ef6461",secondary:"#4a7c7e",tertiary:"#e8a87c",label:"Coral",desc:"Warm coral and teal for a balanced, approachable design."},midnight:{primary:"#1e3a5f",secondary:"#7c8db5",tertiary:"#3d5a80",label:"Midnight",desc:"Deep navy and steel blue for a sophisticated, authoritative feel."}},W.choice=function(e,t,r){var o=e in t?t[e]:r;return"function"===W.typeOf(o)?o(e):o},W.arrayUniq=function(e){return"array"!==W.typeOf(e)?[]:e.filter(function(e,t,r){return r.indexOf(e)===t})},W.arrayBinA=function(e,t){return"array"!==W.typeOf(e)||"array"!==W.typeOf(t)?[]:W.arrayUniq(e.filter(function(e){return-1!==t.indexOf(e)}))},W.arrayBNotInA=function(e,t){return"array"!==W.typeOf(e)||"array"!==W.typeOf(t)?[]:W.arrayUniq(t.filter(function(t){return e.indexOf(t)<0}))},W.colorInterp=function(e,t,r,o,n){var a=Array.isArray(o)?o:["#000","#fff"];if(1===(a=0===a.length?["#000","#fff"]:a).length)return a[0];a=a.map(function(e){return W.colorParse(e)});var i=W.mapScale(e,t,r,0,a.length-1,{clip:!0,expScale:n}),l=W.clip(Math.floor(i),0,a.length-2),s=i-l,c=function(e){return W.mapScale(s,0,1,a[l][e],a[l+1][e],{clip:!0})};return[c(0),c(1),c(2),c(3),"rgb"]},W.colorHslToRgb=function(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:255,n=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];"array"===W.typeOf(e)&&(t=e[1],r=e[2],o=e[3],e=e[0]);var a,i,l,s=e/360,c=t/100,d=r/100;if(0===c)a=i=l=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},m=d<.5?d*(1+c):d+c-d*c,p=2*d-m;a=255*b(p,m,s+1/3),i=255*b(p,m,s),l=255*b(p,m,s-1/3)}return n&&(a=Math.round(a),i=Math.round(i),l=Math.round(l),o=Math.round(o)),[a,i,l,o,"rgb"]},W.colorRgbToHsl=function(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:255,n=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];"array"===W.typeOf(e)&&(t=e[1],r=e[2],o=e[3],e=e[0]),e/=255,t/=255,r/=255;var a,i,l=Math.max(e,t,r),s=Math.min(e,t,r),c=(l+s)/2;if(l===s)a=i=0;else{var d=l-s;switch(i=c>.5?d/(2-l-s):d/(l+s),l){case e:a=((t-r)/d+(t<r?6:0))/6;break;case t:a=((r-e)/d+2)/6;break;case r:a=((e-t)/d+4)/6}}return a*=360,i*=100,c*=100,n&&(a=Math.round(a),i=Math.round(i),c=Math.round(c),o=Math.round(o)),[a,i,c,o,"hsl"]},W.colorParse=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:255,r=[0,0,0,t,"rgb"];if("array"===W.typeOf(e)){for(var o=[0,0,0,255,"rgb"],n=0;n<e.length&&n<o.length;n++)o[n]=e[n];return o}if("#"===(e=String(e).replace(/\s/g,""))[0]){var a=e.slice(1);if(3===a.length||4===a.length)for(var i=0;i<a.length;i++)r[i]=parseInt(a[i]+a[i],16);else if(6===a.length||8===a.length)for(var l=0;l<a.length;l+=2)r[l/2]=parseInt(a.substring(l,l+2),16)}else{var s=e.match(/^(rgb|hsl)a?\(([^)]+)\)$/i);if(s){var c=s[1].toLowerCase(),d=s[2].split(",").map(function(e){return parseFloat(e)});if("rgb"===c)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,r[4]="rgb";else if("hsl"===c){return W.colorHslToRgb(d[0]||0,d[1]||0,d[2]||0,void 0!==d[3]?255*d[3]:t)}}}return r},W.setCookie=function(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(W._isBrowser){var n=new Date;n.setTime(n.getTime()+24*r*60*60*1e3);var a="".concat(e,"=").concat(t,"; expires=").concat(n.toUTCString());o.path&&(a+="; path=".concat(o.path)),o.domain&&(a+="; domain=".concat(o.domain)),o.secure&&(a+="; secure"),o.sameSite&&(a+="; samesite=".concat(o.sameSite)),document.cookie=a}},W.getCookie=function(e,t){if(!W._isBrowser)return t;for(var r=e+"=",o=document.cookie.split(";"),n=0;n<o.length;n++){for(var a=o[n];" "===a.charAt(0);)a=a.substring(1);if(0===a.indexOf(r))return a.substring(r.length,a.length)}return t},W.getURLParam=function(e,t){if(!W._isBrowser||"object"!==("undefined"==typeof window?"undefined":l(window)))return t;try{var r=new URLSearchParams(window.location.search);if(!e){var o,n={},i=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=s(e))||t){r&&(e=r);var o=0,n=function(){};return{s:n,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(l)throw a}}}}(r);try{for(i.s();!(o=i.n()).done;){var c=a(o.value,2),d=c[0],b=c[1];n[d]=b||!0}}catch(e){i.e(e)}finally{i.f()}return n}return r.has(e)?r.get(e)||!0:t}catch(e){return t}},W.htmlTable=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(console.warn("bw.htmlTable() is deprecated. Use bw.makeTableFromArray() for TACO output or bw.makeTable() for object-array data."),"array"!==W.typeOf(e)||e.length<1)return"";var r={useFirstRowAsHeaders:!0,caption:null,atr:{class:"table"},thead_atr:{},th_atr:{},tbody_atr:{},tr_atr:{},td_atr:{}};Object.assign(r,t);var o="<table".concat(W._attrsToStr(r.atr),">");r.caption&&(o+="<caption>".concat(W.escapeHTML(r.caption),"</caption>"));var n=0;if(r.useFirstRowAsHeaders&&e.length>0&&(o+="<thead".concat(W._attrsToStr(r.thead_atr),">"),o+="<tr".concat(W._attrsToStr(r.tr_atr),">"),e[0].forEach(function(e){o+="<th".concat(W._attrsToStr(r.th_atr),">").concat(W.escapeHTML(String(e)),"</th>")}),o+="</tr></thead>",n=1),e.length>n){o+="<tbody".concat(W._attrsToStr(r.tbody_atr),">");for(var a=n;a<e.length;a++)o+="<tr".concat(W._attrsToStr(r.tr_atr),">"),e[a].forEach(function(e){o+="<td".concat(W._attrsToStr(r.td_atr),">").concat(W.escapeHTML(String(e)),"</td>")}),o+="</tr>";o+="</tbody>"}return o+="</table>"},W._attrsToStr=function(e){if(!e||"object"!==l(e))return"";for(var t="",r=0,o=Object.entries(e);r<o.length;r++){var n=a(o[r],2),i=n[0],s=n[1];null!=s&&!1!==s&&(t+=!0===s?" ".concat(i):" ".concat(i,'="').concat(W.escapeHTML(String(s)),'"'))}return t},W.htmlTabs=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(console.warn("bw.htmlTabs() is deprecated. Use bw.makeTabs() instead."),"array"!==W.typeOf(e)||e.length<1)return"";var r={atr:{class:"bw-tab-container"},tab_atr:{class:"bw-tab-item-list"},tabc_atr:{class:"bw-tab-content-list"}};Object.assign(r,t);var o=e.map(function(e,t){return{t:"li",a:{class:0===t?"bw-tab-item bw-tab-active":"bw-tab-item",onclick:"bw.selectTabContent(this)"},c:e[0]}}),n=e.map(function(e,t){return{t:"div",a:{class:0===t?"bw-tab-content bw-show":"bw-tab-content"},c:e[1]}});return W.html({t:"div",a:r.atr,c:[{t:"ul",a:r.tab_atr,c:o},{t:"div",a:r.tabc_atr,c:n}]})},W.selectTabContent=function(e){if(console.warn("bw.selectTabContent() is deprecated. Use bw.makeTabs() instead."),W._isBrowser&&e){var t=e.closest(".bw-tab-container");if(t){t.querySelectorAll(".bw-tab-item").forEach(function(e){e.classList.remove("bw-tab-active")}),e.classList.add("bw-tab-active");var r=Array.from(e.parentElement.children).indexOf(e);t.querySelectorAll(".bw-tab-content").forEach(function(e){e.classList.remove("bw-show")});var o=t.querySelectorAll(".bw-tab-content");o[r]&&o[r].classList.add("bw-show")}}},W.loremIpsum=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],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;for(var n=0;" "===o[t]||/[.,:;!?]/.test(o[t]);)if(t=(t+1)%446,++n>=446){t=0,n=0;break}for(var a=o.substring(t)+o.substring(0,t),i="",l=e+n;l>0;)i+=l<a.length?a.substring(0,l):a,l-=a.length;if(i.length>e&&(i=i.substring(0,e))," "===i[i.length-1]&&(i=i.substring(0,i.length-1)+"."),r){var s=i[0].toUpperCase();i=(s=/[A-Z]/.test(s)?s:"L")+i.substring(1)}return i},W.multiArray=function(e,t){t="number"==typeof t?[t]:t;var r=function(o){if(o>=t.length)return"function"===W.typeOf(e)?e():e;for(var n=[],a=0;a<t[o];a++)n[a]=r(o+1);return n};return r(0)},W.naturalCompare=function(e,t){if(isFinite(e)&&isFinite(t))return Math.sign(e-t);var 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;for(var n=r.match(/(\d+|\D+)/g)||[],a=o.match(/(\d+|\D+)/g)||[],i=Math.min(n.length,a.length),l=0;l<i;l++){var s=n[l],c=a[l];if(s!==c){if(/^\d+$/.test(s)&&/^\d+$/.test(c)){var d=s,b=c;return"0"===s[0]&&(d="0."+s),"0"===c[0]&&(b="0."+c),parseFloat(d)-parseFloat(b)}return s>c?1:-1}}return n.length-a.length},W.setIntervalX=function(e,t,r){var o=0,n=setInterval(function(){e(o),++o>=r&&clearInterval(n)},t);return n},W.repeatUntil=function(e,t,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:10,n=arguments.length>5?arguments[5]:void 0;if("function"!=typeof e)return"err";var a=0,i=setInterval(function(){var l=e();a++,l?(clearInterval(i),t&&t(l),n&&n(!0,a)):a>=o?(clearInterval(i),r&&r(),n&&n(!1,a)):r&&r()},arguments.length>3&&void 0!==arguments[3]?arguments[3]:250);return i},W.saveClientFile=function(e,t){if(W.isNodeJS())W._getFs().then(function(r){r?r.writeFile(e,t,function(e){e&&console.error("Error saving file:",e)}):console.error("bw.saveClientFile: fs module not available")});else{var r=new Blob([t],{type:"application/octet-stream"}),o=window.URL.createObjectURL(r),n=W.createDOM({t:"a",a:{href:o,download:e,style:"display: none"}});document.body.appendChild(n),n.click(),window.URL.revokeObjectURL(o),document.body.removeChild(n)}},W.saveClientJSON=function(e,t){W.saveClientFile(e,JSON.stringify(t,null,2))},W.loadClientFile=function(e,t,r){var o={parser:"raw"};r&&r.parser&&(o.parser=r.parser);var n="JSON"===o.parser?JSON.parse:function(e){return e};if(W.isNodeJS())W._getFs().then(function(r){r?r.readFile(e,"utf8",function(e,r){if(e)t(null,e);else try{t(n(r),null)}catch(e){t(null,e)}}):t(null,new Error("fs module not available"))});else{var a=new XMLHttpRequest;a.open("GET",e,!0),a.onreadystatechange=function(){if(4===a.readyState)if(a.status>=200&&a.status<300)try{t(n(a.responseText),null)}catch(e){t(null,e)}else t(null,new Error("HTTP "+a.status+": "+e))},a.send(null)}return"BW_OK"},W.loadClientJSON=function(e,t){return W.loadClientFile(e,t,{parser:"JSON"})},W.loadLocalFile=function(e,t){var r={parser:"raw",accept:""};t&&(t.parser&&(r.parser=t.parser),t.accept&&(r.accept=t.accept));var o="JSON"===r.parser?JSON.parse:function(e){return e};if(W.isNodeJS())e(null,"",new Error("bw.loadLocalFile is browser-only. Use bw.loadClientFile() in Node."));else{var n=W.createDOM({t:"input",a:{type:"file",accept:r.accept,style:"display: none"}});n.addEventListener("change",function(){var t=n.files[0];if(t){var r=new FileReader;r.onload=function(r){try{e(o(r.target.result),t.name,null)}catch(r){e(null,t.name,r)}},r.onerror=function(){e(null,t.name,r.error)},r.readAsText(t),n.remove()}else e(null,"",new Error("No file selected"))}),document.body.appendChild(n),n.click()}},W.loadLocalJSON=function(e){W.loadLocalFile(e,{parser:"JSON",accept:".json"})},W.copyToClipboard=function(e){return navigator.clipboard&&navigator.clipboard.writeText?navigator.clipboard.writeText(e):new Promise(function(t,r){var o=W.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{var n=document.execCommand("copy");document.body.removeChild(o),n?t():r(new Error("Copy command failed"))}catch(e){document.body.removeChild(o),r(e)}})},W.makeTable=function(e){var t=e.data,r=void 0===t?[]:t,o=e.columns,n=e.className,a=void 0===n?"":n,l=e.striped,s=void 0!==l&&l,c=e.hover,d=void 0!==c&&c,b=e.sortable,m=void 0===b||b,p=e.onSort,u=e.sortColumn,f=e.sortDirection,w=void 0===f?"asc":f,h="bw-table";s&&(h+=" bw-table-striped"),d&&(h+=" bw-table-hover"),a&&(h+=" "+a),h=h.trim();var g=o||(r.length>0?Object.keys(r[0]).map(function(e){return{key:e,label:e}}):[]),v=u||null,y=w,x=i(r);v&&x.sort(function(e,t){var r=e[v],o=t[v];if("number"==typeof r&&"number"==typeof o)return"asc"===y?r-o:o-r;var n=String(r||"").toLowerCase(),a=String(o||"").toLowerCase();return"asc"===y?n.localeCompare(a):a.localeCompare(n)});return{t:"table",a:{class:h},c:[{t:"thead",c:{t:"tr",c:g.map(function(e){return{t:"th",a:m?{style:{cursor:"pointer",userSelect:"none"},onclick:function(){return t=e.key,void(m&&(v===t?y="asc"===y?"desc":"asc":(v=t,y="asc"),p&&p(t,y)));var t}}:{},c:[e.label,m&&v===e.key&&{t:"span",a:{style:{marginLeft:"5px"}},c:"asc"===y?"▲":"▼"}].filter(Boolean)}})}},{t:"tbody",c:x.map(function(e){return{t:"tr",c:g.map(function(t){return{t:"td",c:t.render?t.render(e[t.key],e):String(e[t.key]||"")}})}})}]}},W.makeTableFromArray=function(e){var t,r,a=e.data,i=void 0===a?[]:a,l=e.headerRow,s=void 0===l||l,c=e.columns,d=n(e,q);if(!Array.isArray(i)||0===i.length)return W.makeTable(o({data:[],columns:c||[]},d));if(s&&i.length>0)t=i[0].map(function(e){return String(e)}),r=i.slice(1);else{var b=i[0].length;t=[];for(var m=0;m<b;m++)t.push("col"+m);r=i}var p=r.map(function(e){var r={};return t.forEach(function(t,o){r[t]=void 0!==e[o]?e[o]:""}),r}),u=c||t.map(function(e){return{key:e,label:e}});return W.makeTable(o({data:p,columns:u},d))},W.makeBarChart=function(e){var t=e.data,r=void 0===t?[]:t,o=e.labelKey,n=void 0===o?"label":o,a=e.valueKey,i=void 0===a?"value":a,l=e.title,s=e.color,c=void 0===s?"#006666":s,d=e.height,b=void 0===d?"200px":d,m=e.formatValue,p=e.showValues,u=void 0===p||p,f=e.showLabels,w=void 0===f||f,h=e.className,g=void 0===h?"":h;if(!Array.isArray(r)||0===r.length)return{t:"div",a:{class:("bw-bar-chart-container "+g).trim()},c:""};var v=r.map(function(e){return Number(e[i])||0}),y=Math.max.apply(null,v),x=r.map(function(e,t){var r=v[t],o=y>0?r/y*100:0,a=m?m(r):String(r),i=[];return u&&i.push({t:"div",a:{class:"bw-bar-value"},c:a}),i.push({t:"div",a:{class:"bw-bar",style:"height:"+o+"%;background:"+c+";"}}),w&&i.push({t:"div",a:{class:"bw-bar-label"},c:String(e[n]||"")}),{t:"div",a:{class:"bw-bar-group"},c:i}}),_=[];return l&&_.push({t:"h3",a:{class:"bw-bar-chart-title"},c:l}),_.push({t:"div",a:{class:"bw-bar-chart",style:"height:"+b+";"},c:x}),{t:"div",a:{class:("bw-bar-chart-container "+g).trim()},c:_}},W.makeDataTable=function(e){var t=e.title,r=e.data,a=e.columns,i=e.className,l=void 0===i?"":i,s=e.striped,c=void 0===s||s,d=e.hover,b=void 0===d||d,m=e.responsive,p=void 0===m||m,u=n(e,Y),f=W.makeTable(o({data:r,columns:a,className:l,striped:c,hover:b},u)),w=[];return t&&w.push({t:"h5",a:{class:"mb-3"},c:t}),p?w.push({t:"div",a:{class:"table-responsive"},c:f}):w.push(f),{t:"div",a:{class:"table-container"},c:w}},W._componentRegistry=new Map,W.render=function(e,t,r){var n,a,i,l="string"==typeof e?document.querySelector(e):e;if(!l)return{object_type:"error",component_id:null,object_handle_in_dom:null,status_code:"error=target_element_not_found"};var s,c=(null===(n=r.o)||void 0===n?void 0:n.id)||W.uuid();try{s=W.createDOM(r)}catch(e){return{object_type:"error",component_id:c,object_handle_in_dom:null,status_code:"error=render_failed:".concat(e.message)}}s.setAttribute("data-bw-id",c);try{switch(t){case"replace":l.parentNode.replaceChild(s,l);break;case"prepend":l.insertBefore(s,l.firstChild);break;case"append":l.appendChild(s);break;case"before":l.parentNode.insertBefore(s,l);break;case"after":l.parentNode.insertBefore(s,l.nextSibling);break;default:throw new Error("Invalid position: ".concat(t))}}catch(e){return{object_type:"error",component_id:c,object_handle_in_dom:null,status_code:"error=insertion_failed:".concat(e.message)}}var d={object_type:r.t||"element",component_id:c,object_handle_in_dom:s,status_code:"success",_taco:o({},r),_state:o({},(null===(a=r.o)||void 0===a?void 0:a.state)||{}),_mounted:!0,get element(){return this.object_handle_in_dom},getState:function(){return o({},this._state)},setState:function(e){var t;return this._state=o(o({},this._state),e),null!==(t=this._taco.o)&&void 0!==t&&t.onStateChange&&this._taco.o.onStateChange(this._state,e),this},update:function(){var e;if(!this._mounted||!this.element)return this;var t=this.element.parentNode;this._taco.o&&(this._taco.o.state=this._state);var r=W.createDOM(this._taco);return r.setAttribute("data-bw-id",c),t.replaceChild(r,this.element),this.object_handle_in_dom=r,null!==(e=this._taco.o)&&void 0!==e&&e.onUpdate&&this._taco.o.onUpdate(r,this._state),this},getProp:function(e){var t;return null===(t=this._taco.a)||void 0===t?void 0:t[e]},setProp:function(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:function(){return this._taco.c},setContent:function(e){return this._taco.c=e,this.element&&("string"==typeof e?this.element.textContent=e:this.update()),this},addClass:function(e){return this.element&&this.element.classList.add(e),this},removeClass:function(e){return this.element&&this.element.classList.remove(e),this},toggleClass:function(e){return this.element&&this.element.classList.toggle(e),this},hasClass:function(e){return!!this.element&&this.element.classList.contains(e)},show:function(){return this.element&&(this.element.style.display=""),this},hide:function(){return this.element&&(this.element.style.display="none"),this},on:function(e,t){return this.element&&this.element.addEventListener(e,t),this},off:function(e,t){return this.element&&this.element.removeEventListener(e,t),this},destroy:function(){var e;return this._mounted?(null!==(e=this._taco.o)&&void 0!==e&&e.unmount&&this._taco.o.unmount(this.element),this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),W._componentRegistry.delete(c),this._mounted=!1,this.object_handle_in_dom=null,this.status_code="destroyed",this):this}};return W._componentRegistry.set(c,d),null!==(i=r.o)&&void 0!==i&&i.mounted&&r.o.mounted(s,d),d},W.getComponent=function(e){return W._componentRegistry.get(e)||null},W.getAllComponents=function(){return new Map(W._componentRegistry)},Object.entries(H).forEach(function(e){var t=a(e,2),r=t[0],o=t[1];r.startsWith("make")&&(W[r]=o)}),W._componentHandles=U||{},Object.entries(H).forEach(function(e){var t=a(e,2),r=t[0],o=t[1];if(r.startsWith("make")){var n=r.substring(4).toLowerCase(),i="create"+r.substring(4);W[i]=function(e){var t=o(e),r=W.renderComponent(t),a=W._componentHandles[n];if(a){var i=new a(r.element,t);return Object.setPrototypeOf(i,r),i}return r}}}),W.createTable=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=W.makeTable(o({data:e},t)),n=W.renderComponent(r),a=W._componentHandles.table;if(a){var i=new a(n.element,r);return Object.setPrototypeOf(i,n),i}return n},W._isBrowser&&"undefined"!=typeof window&&(window.bw=W),W});
40
+ * @author M A Chatterjee <deftio [at] deftio [dot] com>
41
+ */(e,s,n),c=te.css(l),d=j(r);if(!1!==t.inject&&te._isBrowser){var b=e?e.replace(/-/g,"_"):"",_=b?"bw_theme_"+b:"bw_theme_default",p=b?"bw_theme_"+b+"_alt":"bw_theme_default_alt";te.injectCSS(a,{id:_,append:!1}),te.injectCSS(c,{id:p,append:!1}),te._activeThemeStyleIds=[_,p]}e||(te.u.bgTeal={background:o.primary.base,color:o.primary.textOn},te.u.textTeal={color:o.primary.base},te.u.bgWhite={background:"#ffffff"},te.u.textWhite={color:"#ffffff"});var u={css:a,palette:o,name:e,isLightPrimary:d,alternate:{css:c,palette:s}};return te._activeTheme=u,te._activeThemeMode="primary",u},te.applyTheme=function(e){if(!te._isBrowser)return e||"primary";var t,r=document.documentElement,o=!te._activeTheme||te._activeTheme.isLightPrimary;return(t="primary"!==e&&("alternate"===e||("light"===e?!o:"dark"===e&&o)))?r.classList.add("bw_theme_alt"):r.classList.remove("bw_theme_alt"),te._activeThemeMode=t?"alternate":"primary",te._activeThemeMode},te.toggleTheme=function(){var e=te._activeThemeMode||"primary";return te.applyTheme("primary"===e?"alternate":"primary")},te.clearTheme=function(){te._activeThemeStyleIds&&te._isBrowser&&(te._activeThemeStyleIds.forEach(function(e){var t=document.getElementById(e);t&&t.remove()}),te._activeThemeStyleIds=null),te._activeTheme=null,te._activeThemeMode="primary"},te.hexToHsl=m,te.hslToHex=f,te.adjustLightness=h,te.mixColor=w,te.relativeLuminance=g,te.textOnColor=v,te.deriveShades=x,te.derivePalette=O,te.harmonize=y,te.deriveAlternateSeed=k,te.deriveAlternateConfig=C,te.isLightPalette=j,te.SPACING_PRESETS=I,te.RADIUS_PRESETS=P,te.TYPE_RATIO_PRESETS=D,te.ELEVATION_PRESETS=N,te.MOTION_PRESETS=B,te.generateTypeScale=L,te.DEFAULT_PALETTE_CONFIG=F,te.THEME_PRESETS={teal:{primary:"#006666",secondary:"#6c757d",tertiary:"#006666"},ocean:{primary:"#0077b6",secondary:"#90e0ef",tertiary:"#00b4d8"},sunset:{primary:"#e76f51",secondary:"#264653",tertiary:"#e9c46a"},forest:{primary:"#2d6a4f",secondary:"#95d5b2",tertiary:"#52b788"},slate:{primary:"#343a40",secondary:"#adb5bd",tertiary:"#6c757d"},rose:{primary:"#e11d48",secondary:"#fda4af",tertiary:"#fb7185"},indigo:{primary:"#4f46e5",secondary:"#a5b4fc",tertiary:"#818cf8"},amber:{primary:"#d97706",secondary:"#fbbf24",tertiary:"#f59e0b"},emerald:{primary:"#059669",secondary:"#6ee7b7",tertiary:"#34d399"},nord:{primary:"#5e81ac",secondary:"#88c0d0",tertiary:"#81a1c1"},coral:{primary:"#ef6461",secondary:"#4a7c7e",tertiary:"#e8a87c"},midnight:{primary:"#1e3a5f",secondary:"#7c8db5",tertiary:"#3d5a80"}},te.choice=function(e,t,r){var o=e in t?t[e]:r;return"function"===W(o)?o(e):o},te.arrayUniq=J,te.arrayBinA=function(e,t){return"array"!==W(e)||"array"!==W(t)?[]:J(e.filter(function(e){return-1!==t.indexOf(e)}))},te.arrayBNotInA=function(e,t){return"array"!==W(e)||"array"!==W(t)?[]:J(t.filter(function(t){return e.indexOf(t)<0}))},te.colorInterp=function(e,t,r,o,n){return function(e,t,r,o,n,i){var a=Array.isArray(o)?o:["#000","#fff"];if(1===(a=0===a.length?["#000","#fff"]:a).length)return a[0];var s=Y(e,t,r,0,(a=a.map(function(e){return i(e)})).length-1,{clip:!0,expScale:n}),l=X(Math.floor(s),0,a.length-2),c=s-l,d=function(e){return Y(c,0,1,a[l][e],a[l+1][e],{clip:!0})};return[d(0),d(1),d(2),d(3),"rgb"]}(e,t,r,o,n,_)},te.colorHslToRgb=u,te.colorRgbToHsl=p,te.colorParse=_,te.setCookie=function(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(te._isBrowser){var n=new Date;n.setTime(n.getTime()+24*r*60*60*1e3);var i="".concat(e,"=").concat(t,"; expires=").concat(n.toUTCString());o.path&&(i+="; path=".concat(o.path)),o.domain&&(i+="; domain=".concat(o.domain)),o.secure&&(i+="; secure"),o.sameSite&&(i+="; samesite=".concat(o.sameSite)),document.cookie=i}},te.getCookie=function(e,t){if(!te._isBrowser)return t;for(var r=e+"=",o=document.cookie.split(";"),n=0;n<o.length;n++){for(var i=o[n];" "===i.charAt(0);)i=i.substring(1);if(0===i.indexOf(r))return i.substring(r.length,i.length)}return t},te.getURLParam=function(e,t){if(!te._isBrowser||"object"!==("undefined"==typeof window?"undefined":s(window)))return t;try{var r=new URLSearchParams(window.location.search);if(!e){var o,n={},a=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=l(e))||t){r&&(e=r);var o=0,n=function(){};return{s:n,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}(r);try{for(a.s();!(o=a.n()).done;){var c=i(o.value,2),d=c[0],b=c[1];n[d]=b||!0}}catch(e){a.e(e)}finally{a.f()}return n}return r.has(e)?r.get(e)||!0:t}catch(e){return t}},te.loremIpsum=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],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;for(var n=0;" "===o[t]||/[.,:;!?]/.test(o[t]);)if(t=(t+1)%446,++n>=446){t=0,n=0;break}for(var i=o.substring(t)+o.substring(0,t),a="",s=e+n;s>0;)a+=s<i.length?i.substring(0,s):i,s-=i.length;if(a.length>e&&(a=a.substring(0,e))," "===a[a.length-1]&&(a=a.substring(0,a.length-1)+"."),r){var l=a[0].toUpperCase();a=(l=/[A-Z]/.test(l)?l:"L")+a.substring(1)}return a},te.multiArray=function(e,t){t="number"==typeof t?[t]:t;var r=function(o){if(o>=t.length)return"function"===W(e)?e():e;for(var n=[],i=0;i<t[o];i++)n[i]=r(o+1);return n};return r(0)},te.naturalCompare=function(e,t){if(isFinite(e)&&isFinite(t))return Math.sign(e-t);var 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;for(var n=r.match(/(\d+|\D+)/g)||[],i=o.match(/(\d+|\D+)/g)||[],a=Math.min(n.length,i.length),s=0;s<a;s++){var l=n[s],c=i[s];if(l!==c){if(/^\d+$/.test(l)&&/^\d+$/.test(c)){var d=l,b=c;return"0"===l[0]&&(d="0."+l),"0"===c[0]&&(b="0."+c),parseFloat(d)-parseFloat(b)}return l>c?1:-1}}return n.length-i.length},te.setIntervalX=function(e,t,r){var o=0,n=setInterval(function(){e(o),++o>=r&&clearInterval(n)},t);return n},te.repeatUntil=function(e,t,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:10,n=arguments.length>5?arguments[5]:void 0;if("function"!=typeof e)return"err";var i=0,a=setInterval(function(){var s=e();i++,s?(clearInterval(a),t&&t(s),n&&n(!0,i)):i>=o?(clearInterval(a),r&&r(),n&&n(!1,i)):r&&r()},arguments.length>3&&void 0!==arguments[3]?arguments[3]:250);return a},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"}),n=window.URL.createObjectURL(o),i=e.createDOM({t:"a",a:{href:n,download:t,style:"display: none"}});document.body.appendChild(i),i.click(),window.URL.revokeObjectURL(n),document.body.removeChild(i)}},e.saveClientJSON=function(t,r){e.saveClientFile(t,JSON.stringify(r,null,2))},e.loadClientFile=function(t,r,o){var n={parser:"raw"};o&&o.parser&&(n.parser=o.parser);var i="JSON"===n.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(i(t),null)}catch(e){r(null,e)}}):r(null,new Error("fs module not available"))});else{var a=new XMLHttpRequest;a.open("GET",t,!0),a.onreadystatechange=function(){if(4===a.readyState)if(a.status>=200&&a.status<300)try{r(i(a.responseText),null)}catch(e){r(null,e)}else r(null,new Error("HTTP "+a.status+": "+t))},a.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 n="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 i=e.createDOM({t:"input",a:{type:"file",accept:o.accept,style:"display: none"}});i.addEventListener("change",function(){var e=i.files[0];if(e){var r=new FileReader;r.onload=function(r){try{t(n(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),i.remove()}else t(null,"",new Error("No file selected"))}),document.body.appendChild(i),i.click()}},e.loadLocalJSON=function(t){e.loadLocalFile(t,{parser:"JSON",accept:".json"})}}(te),te.copyToClipboard=function(e){return navigator.clipboard&&navigator.clipboard.writeText?navigator.clipboard.writeText(e):new Promise(function(t,r){var o=te.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{var n=document.execCommand("copy");document.body.removeChild(o),n?t():r(new Error("Copy command failed"))}catch(e){document.body.removeChild(o),r(e)}})},te.makeTable=function(e){var t=e.data,r=void 0===t?[]:t,o=e.columns,n=e.className,i=void 0===n?"":n,s=e.striped,l=void 0!==s&&s,c=e.hover,d=void 0!==c&&c,b=e.sortable,_=void 0===b||b,p=e.onSort,u=e.sortColumn,m=e.sortDirection,f=void 0===m?"asc":m,h="bw_table";l&&(h+=" bw_table_striped"),d&&(h+=" bw_table_hover"),i&&(h+=" "+i),h=h.trim();var w=o||(r.length>0?Object.keys(r[0]).map(function(e){return{key:e,label:e}}):[]),g=u||null,v=f,y=a(r);g&&y.sort(function(e,t){var r=e[g],o=t[g];if("number"==typeof r&&"number"==typeof o)return"asc"===v?r-o:o-r;var n=String(r||"").toLowerCase(),i=String(o||"").toLowerCase();return"asc"===v?n.localeCompare(i):i.localeCompare(n)});return{t:"table",a:{class:h},c:[{t:"thead",c:{t:"tr",c:w.map(function(e){return{t:"th",a:_?{style:{cursor:"pointer",userSelect:"none"},onclick:function(){return t=e.key,void(_&&(g===t?v="asc"===v?"desc":"asc":(g=t,v="asc"),p&&p(t,v)));var t}}:{},c:[e.label,_&&g===e.key&&{t:"span",a:{style:{marginLeft:"5px"}},c:"asc"===v?"▲":"▼"}].filter(Boolean)}})}},{t:"tbody",c:y.map(function(e){return{t:"tr",c:w.map(function(t){return{t:"td",c:t.render?t.render(e[t.key],e):String(e[t.key]||"")}})}})}]}},te.makeTableFromArray=function(e){var t,r,i=e.data,a=void 0===i?[]:i,s=e.headerRow,l=void 0===s||s,c=e.columns,d=n(e,Q);if(!Array.isArray(a)||0===a.length)return te.makeTable(o({data:[],columns:c||[]},d));if(l&&a.length>0)t=a[0].map(function(e){return String(e)}),r=a.slice(1);else{var b=a[0].length;t=[];for(var _=0;_<b;_++)t.push("col"+_);r=a}var p=r.map(function(e){var r={};return t.forEach(function(t,o){r[t]=void 0!==e[o]?e[o]:""}),r}),u=c||t.map(function(e){return{key:e,label:e}});return te.makeTable(o({data:p,columns:u},d))},te.makeBarChart=function(e){var t=e.data,r=void 0===t?[]:t,o=e.labelKey,n=void 0===o?"label":o,i=e.valueKey,a=void 0===i?"value":i,s=e.title,l=e.color,c=void 0===l?"#006666":l,d=e.height,b=void 0===d?"200px":d,_=e.formatValue,p=e.showValues,u=void 0===p||p,m=e.showLabels,f=void 0===m||m,h=e.className,w=void 0===h?"":h;if(!Array.isArray(r)||0===r.length)return{t:"div",a:{class:("bw_bar_chart_container "+w).trim()},c:""};var g=r.map(function(e){return Number(e[a])||0}),v=Math.max.apply(null,g),y=r.map(function(e,t){var r=g[t],o=v>0?r/v*100:0,i=_?_(r):String(r),a=[];return u&&a.push({t:"div",a:{class:"bw_bar_value"},c:i}),a.push({t:"div",a:{class:"bw_bar",style:"height:"+o+"%;background:"+c+";"}}),f&&a.push({t:"div",a:{class:"bw_bar_label"},c:String(e[n]||"")}),{t:"div",a:{class:"bw_bar_group"},c:a}}),x=[];return s&&x.push({t:"h3",a:{class:"bw_bar_chart_title"},c:s}),x.push({t:"div",a:{class:"bw_bar_chart",style:"height:"+b+";"},c:y}),{t:"div",a:{class:("bw_bar_chart_container "+w).trim()},c:x}},te.makeDataTable=function(e){var t=e.title,r=e.data,i=e.columns,a=e.className,s=void 0===a?"":a,l=e.striped,c=void 0===l||l,d=e.hover,b=void 0===d||d,_=e.responsive,p=void 0===_||_,u=n(e,ee),m=te.makeTable(o({data:r,columns:i,className:s,striped:c,hover:b},u)),f=[];return t&&f.push({t:"h5",a:{class:"mb-3"},c:t}),p?f.push({t:"div",a:{class:"table-responsive"},c:m}):f.push(m),{t:"div",a:{class:"table-container"},c:f}},te._componentRegistry=new Map,te.render=function(e,t,r){var n,i,a,s="string"==typeof e?document.querySelector(e):e;if(!s)return{object_type:"error",component_id:null,object_handle_in_dom:null,status_code:"error=target_element_not_found"};var l,c=(null===(n=r.o)||void 0===n?void 0:n.id)||te.uuid();try{l=te.createDOM(r)}catch(e){return{object_type:"error",component_id:c,object_handle_in_dom:null,status_code:"error=render_failed:".concat(e.message)}}l.setAttribute("data-bw_id",c);try{switch(t){case"replace":s.parentNode.replaceChild(l,s);break;case"prepend":s.insertBefore(l,s.firstChild);break;case"append":s.appendChild(l);break;case"before":s.parentNode.insertBefore(l,s);break;case"after":s.parentNode.insertBefore(l,s.nextSibling);break;default:throw new Error("Invalid position: ".concat(t))}}catch(e){return{object_type:"error",component_id:c,object_handle_in_dom:null,status_code:"error=insertion_failed:".concat(e.message)}}var d={object_type:r.t||"element",component_id:c,object_handle_in_dom:l,status_code:"success",_taco:o({},r),_state:o({},(null===(i=r.o)||void 0===i?void 0:i.state)||{}),_mounted:!0,get element(){return this.object_handle_in_dom},getState:function(){return o({},this._state)},setState:function(e){var t;return this._state=o(o({},this._state),e),null!==(t=this._taco.o)&&void 0!==t&&t.onStateChange&&this._taco.o.onStateChange(this._state,e),this},update:function(){var e;if(!this._mounted||!this.element)return this;var t=this.element.parentNode;this._taco.o&&(this._taco.o.state=this._state);var r=te.createDOM(this._taco);return r.setAttribute("data-bw_id",c),t.replaceChild(r,this.element),this.object_handle_in_dom=r,null!==(e=this._taco.o)&&void 0!==e&&e.onUpdate&&this._taco.o.onUpdate(r,this._state),this},getProp:function(e){var t;return null===(t=this._taco.a)||void 0===t?void 0:t[e]},setProp:function(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:function(){return this._taco.c},setContent:function(e){return this._taco.c=e,this.element&&("string"==typeof e?this.element.textContent=e:this.update()),this},addClass:function(e){return this.element&&this.element.classList.add(e),this},removeClass:function(e){return this.element&&this.element.classList.remove(e),this},toggleClass:function(e){return this.element&&this.element.classList.toggle(e),this},hasClass:function(e){return!!this.element&&this.element.classList.contains(e)},show:function(){return this.element&&(this.element.style.display=""),this},hide:function(){return this.element&&(this.element.style.display="none"),this},on:function(e,t){return this.element&&this.element.addEventListener(e,t),this},off:function(e,t){return this.element&&this.element.removeEventListener(e,t),this},destroy:function(){var e;return this._mounted?(null!==(e=this._taco.o)&&void 0!==e&&e.unmount&&this._taco.o.unmount(this.element),this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),te._componentRegistry.delete(c),this._mounted=!1,this.object_handle_in_dom=null,this.status_code="destroyed",this):this}};return te._componentRegistry.set(c,d),null!==(a=r.o)&&void 0!==a&&a.mounted&&r.o.mounted(l,d),d},te.getComponent=function(e){return te._componentRegistry.get(e)||null},te.getAllComponents=function(){return new Map(te._componentRegistry)},Object.entries(Z).forEach(function(e){var t=i(e,2),r=t[0],o=t[1];r.startsWith("make")&&(te[r]=o)}),te.make=K,te.BCCL=V,te.variantClass=G,Object.entries(Z).forEach(function(e){var t=i(e,2),r=t[0],o=t[1];if(r.startsWith("make")){var n="create"+r.substring(4);te[n]=function(e){var t=o(e);return te.renderComponent(t)}}}),te._isBrowser&&"undefined"!=typeof window&&(window.bw=te),te});
13
42
  //# sourceMappingURL=bitwrench-lean.es5.min.js.map