signalpilot-ai-internal 0.10.0__py3-none-any.whl → 0.11.24__py3-none-any.whl

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 (85) hide show
  1. signalpilot_ai_internal/__init__.py +1 -0
  2. signalpilot_ai_internal/_version.py +1 -1
  3. signalpilot_ai_internal/cache_service.py +22 -21
  4. signalpilot_ai_internal/composio_handlers.py +224 -0
  5. signalpilot_ai_internal/composio_service.py +511 -0
  6. signalpilot_ai_internal/database_config_handlers.py +182 -0
  7. signalpilot_ai_internal/database_config_service.py +166 -0
  8. signalpilot_ai_internal/databricks_schema_service.py +907 -0
  9. signalpilot_ai_internal/file_scanner_service.py +5 -146
  10. signalpilot_ai_internal/handlers.py +388 -9
  11. signalpilot_ai_internal/integrations_config.py +256 -0
  12. signalpilot_ai_internal/log_utils.py +31 -0
  13. signalpilot_ai_internal/mcp_handlers.py +532 -0
  14. signalpilot_ai_internal/mcp_server_manager.py +298 -0
  15. signalpilot_ai_internal/mcp_service.py +1255 -0
  16. signalpilot_ai_internal/oauth_token_store.py +141 -0
  17. signalpilot_ai_internal/schema_search_config.yml +17 -11
  18. signalpilot_ai_internal/schema_search_service.py +85 -4
  19. signalpilot_ai_internal/signalpilot_home.py +961 -0
  20. signalpilot_ai_internal/snowflake_schema_service.py +2 -0
  21. signalpilot_ai_internal/test_dbt_mcp_server.py +180 -0
  22. signalpilot_ai_internal/unified_database_schema_service.py +2 -0
  23. signalpilot_ai_internal-0.10.0.data/data/share/jupyter/labextensions/signalpilot-ai-internal/schemas/signalpilot-ai-internal/package.json.orig → signalpilot_ai_internal-0.11.24.data/data/share/jupyter/labextensions/signalpilot-ai-internal/package.json +15 -48
  24. signalpilot_ai_internal-0.10.0.data/data/share/jupyter/labextensions/signalpilot-ai-internal/package.json → signalpilot_ai_internal-0.11.24.data/data/share/jupyter/labextensions/signalpilot-ai-internal/schemas/signalpilot-ai-internal/package.json.orig +9 -52
  25. {signalpilot_ai_internal-0.10.0.data → signalpilot_ai_internal-0.11.24.data}/data/share/jupyter/labextensions/signalpilot-ai-internal/schemas/signalpilot-ai-internal/plugin.json +7 -1
  26. signalpilot_ai_internal-0.11.24.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/122.bab318d6caadb055e29c.js +1 -0
  27. signalpilot_ai_internal-0.11.24.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/129.868ca665e6fc225c20a0.js +1 -0
  28. signalpilot_ai_internal-0.11.24.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/179.fd45a2e75d471d0aa3b9.js +7 -0
  29. signalpilot_ai_internal-0.11.24.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/220.81105a94aa873fc51a94.js +1 -0
  30. signalpilot_ai_internal-0.11.24.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/262.a002dd4630d3b6404a90.js +1 -0
  31. signalpilot_ai_internal-0.11.24.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/353.cc6f6ecacd703bcdb468.js +1 -0
  32. signalpilot_ai_internal-0.11.24.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/364.817a883549d55a0e0576.js +1 -0
  33. signalpilot_ai_internal-0.11.24.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/384.a4daecd44f1e9364e44a.js +1 -0
  34. signalpilot_ai_internal-0.11.24.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/439.667225aab294fb5ed161.js +1 -0
  35. signalpilot_ai_internal-0.11.24.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/447.8138af2522716e5a926f.js +1 -0
  36. signalpilot_ai_internal-0.11.24.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/476.925c73e32f3c07448da0.js +1 -0
  37. signalpilot_ai_internal-0.11.24.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/477.aaa4cc9e87801fb45f5b.js +1 -0
  38. signalpilot_ai_internal-0.11.24.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/481.370056149a59022b700c.js +1 -0
  39. signalpilot_ai_internal-0.11.24.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/510.868ca665e6fc225c20a0.js +1 -0
  40. signalpilot_ai_internal-0.11.24.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/512.835f97f7ccfc70ff5c93.js +1 -0
  41. signalpilot_ai_internal-0.11.24.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/57.6c13335f73de089d6b1e.js +1 -0
  42. signalpilot_ai_internal-0.11.24.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/574.ad2709e91ebcac5bbe68.js +1 -0
  43. signalpilot_ai_internal-0.11.24.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/635.bddbab8e464fe31f0393.js +1 -0
  44. signalpilot_ai_internal-0.11.24.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/713.fda1bcdb10497b0a6ade.js +1 -0
  45. signalpilot_ai_internal-0.11.24.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/741.d046701f475fcbf6697d.js +1 -0
  46. signalpilot_ai_internal-0.11.24.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/785.c306dffd4cfe8a613d13.js +1 -0
  47. signalpilot_ai_internal-0.11.24.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/801.e39898b6f336539f228c.js +1 -0
  48. signalpilot_ai_internal-0.11.24.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/880.77cc0ca10a1860df1b52.js +1 -0
  49. signalpilot_ai_internal-0.11.24.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/936.4e2850b2af985ed0d378.js +1 -0
  50. signalpilot_ai_internal-0.11.24.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/956.eeffe67d7781fd63ef4b.js +2 -0
  51. signalpilot_ai_internal-0.11.24.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/remoteEntry.055f50d20a31f3068c72.js +1 -0
  52. {signalpilot_ai_internal-0.10.0.data → signalpilot_ai_internal-0.11.24.data}/data/share/jupyter/labextensions/signalpilot-ai-internal/static/third-party-licenses.json +47 -29
  53. {signalpilot_ai_internal-0.10.0.dist-info → signalpilot_ai_internal-0.11.24.dist-info}/METADATA +14 -31
  54. signalpilot_ai_internal-0.11.24.dist-info/RECORD +66 -0
  55. signalpilot_ai_internal-0.11.24.dist-info/licenses/LICENSE +7 -0
  56. signalpilot_ai_internal-0.10.0.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/122.e2dadf63dc64d7b5f1ee.js +0 -1
  57. signalpilot_ai_internal-0.10.0.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/220.328403b5545f268b95c6.js +0 -1
  58. signalpilot_ai_internal-0.10.0.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/262.726e1da31a50868cb297.js +0 -1
  59. signalpilot_ai_internal-0.10.0.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/330.af2e9cb5def5ae2b84d5.js +0 -1
  60. signalpilot_ai_internal-0.10.0.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/353.972abe1d2d66f083f9cc.js +0 -1
  61. signalpilot_ai_internal-0.10.0.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/364.dbec4c2dc12e7b050dcc.js +0 -1
  62. signalpilot_ai_internal-0.10.0.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/384.fa432bdb7fb6b1c95ad6.js +0 -1
  63. signalpilot_ai_internal-0.10.0.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/439.37e271d7a80336daabe2.js +0 -1
  64. signalpilot_ai_internal-0.10.0.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/476.ad22ccddd74ee306fb56.js +0 -1
  65. signalpilot_ai_internal-0.10.0.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/481.73c7a9290b7d35a8b9c1.js +0 -1
  66. signalpilot_ai_internal-0.10.0.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/512.b58fc0093d080b8ee61c.js +0 -1
  67. signalpilot_ai_internal-0.10.0.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/553.b4042a795c91d9ff71ef.js +0 -2
  68. signalpilot_ai_internal-0.10.0.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/57.e9acd2e1f9739037f1ab.js +0 -1
  69. signalpilot_ai_internal-0.10.0.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/635.9720593ee20b768da3ca.js +0 -1
  70. signalpilot_ai_internal-0.10.0.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/713.8e6edc9a965bdd578ca7.js +0 -1
  71. signalpilot_ai_internal-0.10.0.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/741.dc49867fafb03ea2ba4d.js +0 -1
  72. signalpilot_ai_internal-0.10.0.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/742.91e7b516c8699eea3373.js +0 -1
  73. signalpilot_ai_internal-0.10.0.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/785.2d75de1a8d2c3131a8db.js +0 -1
  74. signalpilot_ai_internal-0.10.0.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/786.770dc7bcab77e14cc135.js +0 -7
  75. signalpilot_ai_internal-0.10.0.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/801.ca9e114a30896b669a3c.js +0 -1
  76. signalpilot_ai_internal-0.10.0.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/880.25ddd15aca09421d3765.js +0 -1
  77. signalpilot_ai_internal-0.10.0.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/888.34054db17bcf6e87ec95.js +0 -1
  78. signalpilot_ai_internal-0.10.0.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/remoteEntry.b05b2f0c9617ba28370d.js +0 -1
  79. signalpilot_ai_internal-0.10.0.dist-info/RECORD +0 -50
  80. signalpilot_ai_internal-0.10.0.dist-info/licenses/LICENSE +0 -29
  81. {signalpilot_ai_internal-0.10.0.data → signalpilot_ai_internal-0.11.24.data}/data/etc/jupyter/jupyter_server_config.d/signalpilot_ai.json +0 -0
  82. {signalpilot_ai_internal-0.10.0.data → signalpilot_ai_internal-0.11.24.data}/data/share/jupyter/labextensions/signalpilot-ai-internal/install.json +0 -0
  83. /signalpilot_ai_internal-0.10.0.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/553.b4042a795c91d9ff71ef.js.LICENSE.txt → /signalpilot_ai_internal-0.11.24.data/data/share/jupyter/labextensions/signalpilot-ai-internal/static/956.eeffe67d7781fd63ef4b.js.LICENSE.txt +0 -0
  84. {signalpilot_ai_internal-0.10.0.data → signalpilot_ai_internal-0.11.24.data}/data/share/jupyter/labextensions/signalpilot-ai-internal/static/style.js +0 -0
  85. {signalpilot_ai_internal-0.10.0.dist-info → signalpilot_ai_internal-0.11.24.dist-info}/WHEEL +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunksignalpilot_ai_internal=self.webpackChunksignalpilot_ai_internal||[]).push([[220],{24474(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Allow=r.ALL=r.COLLECTION=r.ATOM=r.SPECIAL=r.INF=r._INFINITY=r.INFINITY=r.NAN=r.BOOL=r.NULL=r.OBJ=r.ARR=r.NUM=r.STR=void 0,r.STR=1,r.NUM=2,r.ARR=4,r.OBJ=8,r.NULL=16,r.BOOL=32,r.NAN=64,r.INFINITY=128,r._INFINITY=256,r.INF=r.INFINITY|r._INFINITY,r.SPECIAL=r.NULL|r.BOOL|r.INF|r.NAN,r.ATOM=r.STR|r.NUM|r.SPECIAL,r.COLLECTION=r.ARR|r.OBJ,r.ALL=r.ATOM|r.COLLECTION,r.Allow={STR:r.STR,NUM:r.NUM,ARR:r.ARR,OBJ:r.OBJ,NULL:r.NULL,BOOL:r.BOOL,NAN:r.NAN,INFINITY:r.INFINITY,_INFINITY:r._INFINITY,INF:r.INF,SPECIAL:r.SPECIAL,ATOM:r.ATOM,COLLECTION:r.COLLECTION,ALL:r.ALL},r.default=r.Allow},69220(t,r,e){var n=this&&this.__createBinding||(Object.create?function(t,r,e,n){void 0===n&&(n=e);var s=Object.getOwnPropertyDescriptor(r,e);s&&!("get"in s?!r.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return r[e]}}),Object.defineProperty(t,n,s)}:function(t,r,e,n){void 0===n&&(n=e),t[n]=r[e]}),s=this&&this.__exportStar||function(t,r){for(var e in t)"default"===e||Object.prototype.hasOwnProperty.call(r,e)||n(r,t,e)};Object.defineProperty(r,"__esModule",{value:!0}),r.Allow=r.MalformedJSON=r.PartialJSON=r.parseJSON=r.parse=void 0;const i=e(24474);Object.defineProperty(r,"Allow",{enumerable:!0,get:function(){return i.Allow}}),s(e(24474),r);class l extends Error{}r.PartialJSON=l;class o extends Error{}function N(t,r=i.Allow.ALL){if("string"!=typeof t)throw new TypeError("expecting str, got "+typeof t);if(!t.trim())throw new Error(`${t} is empty`);return a(t.trim(),r)}r.MalformedJSON=o,r.parseJSON=N;const a=(t,r)=>{const e=t.length;let n=0;const s=t=>{throw new l(`${t} at position ${n}`)},N=t=>{throw new o(`${t} at position ${n}`)},a=()=>(f(),n>=e&&s("Unexpected end of input"),'"'===t[n]?u():"{"===t[n]?O():"["===t[n]?c():"null"===t.substring(n,n+4)||i.Allow.NULL&r&&e-n<4&&"null".startsWith(t.substring(n))?(n+=4,null):"true"===t.substring(n,n+4)||i.Allow.BOOL&r&&e-n<4&&"true".startsWith(t.substring(n))?(n+=4,!0):"false"===t.substring(n,n+5)||i.Allow.BOOL&r&&e-n<5&&"false".startsWith(t.substring(n))?(n+=5,!1):"Infinity"===t.substring(n,n+8)||i.Allow.INFINITY&r&&e-n<8&&"Infinity".startsWith(t.substring(n))?(n+=8,1/0):"-Infinity"===t.substring(n,n+9)||i.Allow._INFINITY&r&&1<e-n&&e-n<9&&"-Infinity".startsWith(t.substring(n))?(n+=9,-1/0):"NaN"===t.substring(n,n+3)||i.Allow.NAN&r&&e-n<3&&"NaN".startsWith(t.substring(n))?(n+=3,NaN):I()),u=()=>{const l=n;let o=!1;for(n++;n<e&&('"'!==t[n]||o&&"\\"===t[n-1]);)o="\\"===t[n]&&!o,n++;if('"'==t.charAt(n))try{return JSON.parse(t.substring(l,++n-Number(o)))}catch(t){N(String(t))}else if(i.Allow.STR&r)try{return JSON.parse(t.substring(l,n-Number(o))+'"')}catch(r){return JSON.parse(t.substring(l,t.lastIndexOf("\\"))+'"')}s("Unterminated string literal")},O=()=>{n++,f();const l={};try{for(;"}"!==t[n];){if(f(),n>=e&&i.Allow.OBJ&r)return l;const s=u();f(),n++;try{const t=a();l[s]=t}catch(t){if(i.Allow.OBJ&r)return l;throw t}f(),","===t[n]&&n++}}catch(t){if(i.Allow.OBJ&r)return l;s("Expected '}' at end of object")}return n++,l},c=()=>{n++;const e=[];try{for(;"]"!==t[n];)e.push(a()),f(),","===t[n]&&n++}catch(t){if(i.Allow.ARR&r)return e;s("Expected ']' at end of array")}return n++,e},I=()=>{if(0===n){"-"===t&&N("Not sure what '-' is");try{return JSON.parse(t)}catch(e){if(i.Allow.NUM&r)try{return JSON.parse(t.substring(0,t.lastIndexOf("e")))}catch(t){}N(String(e))}}const l=n;for("-"===t[n]&&n++;t[n]&&-1===",]}".indexOf(t[n]);)n++;n!=e||i.Allow.NUM&r||s("Unterminated number literal");try{return JSON.parse(t.substring(l,n))}catch(r){"-"===t.substring(l,n)&&s("Not sure what '-' is");try{return JSON.parse(t.substring(l,t.lastIndexOf("e")))}catch(t){N(String(t))}}},f=()=>{for(;n<e&&" \n\r\t".includes(t[n]);)n++};return a()},u=N;r.parse=u}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunksignalpilot_ai_internal=self.webpackChunksignalpilot_ai_internal||[]).push([[262],{78262(n,t,e){e.r(t),e.d(t,{MAX:()=>r,NIL:()=>o,parse:()=>i,stringify:()=>a,v1:()=>p,v1ToV6:()=>U,v3:()=>_,v4:()=>C,v5:()=>N,v6:()=>j,v6ToV1:()=>O,v7:()=>z,validate:()=>s,version:()=>B});const r="ffffffff-ffff-ffff-ffff-ffffffffffff",o="00000000-0000-0000-0000-000000000000",f=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i,s=function(n){return"string"==typeof n&&f.test(n)},i=function(n){if(!s(n))throw TypeError("Invalid UUID");let t;return Uint8Array.of((t=parseInt(n.slice(0,8),16))>>>24,t>>>16&255,t>>>8&255,255&t,(t=parseInt(n.slice(9,13),16))>>>8,255&t,(t=parseInt(n.slice(14,18),16))>>>8,255&t,(t=parseInt(n.slice(19,23),16))>>>8,255&t,(t=parseInt(n.slice(24,36),16))/1099511627776&255,t/4294967296&255,t>>>24&255,t>>>16&255,t>>>8&255,255&t)},c=[];for(let n=0;n<256;++n)c.push((n+256).toString(16).slice(1));function u(n,t=0){return(c[n[t+0]]+c[n[t+1]]+c[n[t+2]]+c[n[t+3]]+"-"+c[n[t+4]]+c[n[t+5]]+"-"+c[n[t+6]]+c[n[t+7]]+"-"+c[n[t+8]]+c[n[t+9]]+"-"+c[n[t+10]]+c[n[t+11]]+c[n[t+12]]+c[n[t+13]]+c[n[t+14]]+c[n[t+15]]).toLowerCase()}const a=function(n,t=0){const e=u(n,t);if(!s(e))throw TypeError("Stringified UUID is invalid");return e};let l;const d=new Uint8Array(16);function g(){if(!l){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");l=crypto.getRandomValues.bind(crypto)}return l(d)}const h={};function y(n,t,e,r,o,f,s=0){if(n.length<16)throw new Error("Random bytes length must be >= 16");if(f){if(s<0||s+16>f.length)throw new RangeError(`UUID byte range ${s}:${s+15} is out of buffer bounds`)}else f=new Uint8Array(16),s=0;t??=Date.now(),e??=0,r??=16383&(n[8]<<8|n[9]),o??=n.slice(10,16);const i=(1e4*(268435455&(t+=122192928e5))+e)%4294967296;f[s++]=i>>>24&255,f[s++]=i>>>16&255,f[s++]=i>>>8&255,f[s++]=255&i;const c=t/4294967296*1e4&268435455;f[s++]=c>>>8&255,f[s++]=255&c,f[s++]=c>>>24&15|16,f[s++]=c>>>16&255,f[s++]=r>>>8|128,f[s++]=255&r;for(let n=0;n<6;++n)f[s++]=o[n];return f}const p=function(n,t,e){let r;const o=n?._v6??!1;if(n){const t=Object.keys(n);1===t.length&&"_v6"===t[0]&&(n=void 0)}if(n)r=y(n.random??n.rng?.()??g(),n.msecs,n.nsecs,n.clockseq,n.node,t,e);else{const n=Date.now(),f=g();!function(n,t,e){n.msecs??=-1/0,n.nsecs??=0,t===n.msecs?(n.nsecs++,n.nsecs>=1e4&&(n.node=void 0,n.nsecs=0)):t>n.msecs?n.nsecs=0:t<n.msecs&&(n.node=void 0),n.node||(n.node=e.slice(10,16),n.node[0]|=1,n.clockseq=16383&(e[8]<<8|e[9])),n.msecs=t}(h,n,f),r=y(f,h.msecs,h.nsecs,o?void 0:h.clockseq,o?void 0:h.node,t,e)}return t??u(r)};function U(n){const t=function(n){return Uint8Array.of((15&n[6])<<4|n[7]>>4&15,(15&n[7])<<4|(240&n[4])>>4,(15&n[4])<<4|(240&n[5])>>4,(15&n[5])<<4|(240&n[0])>>4,(15&n[0])<<4|(240&n[1])>>4,(15&n[1])<<4|(240&n[2])>>4,96|15&n[2],n[3],n[8],n[9],n[10],n[11],n[12],n[13],n[14],n[15])}("string"==typeof n?i(n):n);return"string"==typeof n?u(t):t}function w(n){return 14+(n+64>>>9<<4)+1}function m(n,t){const e=(65535&n)+(65535&t);return(n>>16)+(t>>16)+(e>>16)<<16|65535&e}function b(n,t,e,r,o,f){return m((s=m(m(t,n),m(r,f)))<<(i=o)|s>>>32-i,e);var s,i}function v(n,t,e,r,o,f,s){return b(t&e|~t&r,n,t,o,f,s)}function A(n,t,e,r,o,f,s){return b(t&r|e&~r,n,t,o,f,s)}function I(n,t,e,r,o,f,s){return b(t^e^r,n,t,o,f,s)}function D(n,t,e,r,o,f,s){return b(e^(t|~r),n,t,o,f,s)}const R=function(n){return function(n){const t=new Uint8Array(4*n.length);for(let e=0;e<4*n.length;e++)t[e]=n[e>>2]>>>e%4*8&255;return t}(function(n,t){const e=new Uint32Array(w(t)).fill(0);e.set(n),e[t>>5]|=128<<t%32,e[e.length-1]=t,n=e;let r=1732584193,o=-271733879,f=-1732584194,s=271733878;for(let t=0;t<n.length;t+=16){const e=r,i=o,c=f,u=s;r=v(r,o,f,s,n[t],7,-680876936),s=v(s,r,o,f,n[t+1],12,-389564586),f=v(f,s,r,o,n[t+2],17,606105819),o=v(o,f,s,r,n[t+3],22,-1044525330),r=v(r,o,f,s,n[t+4],7,-176418897),s=v(s,r,o,f,n[t+5],12,1200080426),f=v(f,s,r,o,n[t+6],17,-1473231341),o=v(o,f,s,r,n[t+7],22,-45705983),r=v(r,o,f,s,n[t+8],7,1770035416),s=v(s,r,o,f,n[t+9],12,-1958414417),f=v(f,s,r,o,n[t+10],17,-42063),o=v(o,f,s,r,n[t+11],22,-1990404162),r=v(r,o,f,s,n[t+12],7,1804603682),s=v(s,r,o,f,n[t+13],12,-40341101),f=v(f,s,r,o,n[t+14],17,-1502002290),o=v(o,f,s,r,n[t+15],22,1236535329),r=A(r,o,f,s,n[t+1],5,-165796510),s=A(s,r,o,f,n[t+6],9,-1069501632),f=A(f,s,r,o,n[t+11],14,643717713),o=A(o,f,s,r,n[t],20,-373897302),r=A(r,o,f,s,n[t+5],5,-701558691),s=A(s,r,o,f,n[t+10],9,38016083),f=A(f,s,r,o,n[t+15],14,-660478335),o=A(o,f,s,r,n[t+4],20,-405537848),r=A(r,o,f,s,n[t+9],5,568446438),s=A(s,r,o,f,n[t+14],9,-1019803690),f=A(f,s,r,o,n[t+3],14,-187363961),o=A(o,f,s,r,n[t+8],20,1163531501),r=A(r,o,f,s,n[t+13],5,-1444681467),s=A(s,r,o,f,n[t+2],9,-51403784),f=A(f,s,r,o,n[t+7],14,1735328473),o=A(o,f,s,r,n[t+12],20,-1926607734),r=I(r,o,f,s,n[t+5],4,-378558),s=I(s,r,o,f,n[t+8],11,-2022574463),f=I(f,s,r,o,n[t+11],16,1839030562),o=I(o,f,s,r,n[t+14],23,-35309556),r=I(r,o,f,s,n[t+1],4,-1530992060),s=I(s,r,o,f,n[t+4],11,1272893353),f=I(f,s,r,o,n[t+7],16,-155497632),o=I(o,f,s,r,n[t+10],23,-1094730640),r=I(r,o,f,s,n[t+13],4,681279174),s=I(s,r,o,f,n[t],11,-358537222),f=I(f,s,r,o,n[t+3],16,-722521979),o=I(o,f,s,r,n[t+6],23,76029189),r=I(r,o,f,s,n[t+9],4,-640364487),s=I(s,r,o,f,n[t+12],11,-421815835),f=I(f,s,r,o,n[t+15],16,530742520),o=I(o,f,s,r,n[t+2],23,-995338651),r=D(r,o,f,s,n[t],6,-198630844),s=D(s,r,o,f,n[t+7],10,1126891415),f=D(f,s,r,o,n[t+14],15,-1416354905),o=D(o,f,s,r,n[t+5],21,-57434055),r=D(r,o,f,s,n[t+12],6,1700485571),s=D(s,r,o,f,n[t+3],10,-1894986606),f=D(f,s,r,o,n[t+10],15,-1051523),o=D(o,f,s,r,n[t+1],21,-2054922799),r=D(r,o,f,s,n[t+8],6,1873313359),s=D(s,r,o,f,n[t+15],10,-30611744),f=D(f,s,r,o,n[t+6],15,-1560198380),o=D(o,f,s,r,n[t+13],21,1309151649),r=D(r,o,f,s,n[t+4],6,-145523070),s=D(s,r,o,f,n[t+11],10,-1120210379),f=D(f,s,r,o,n[t+2],15,718787259),o=D(o,f,s,r,n[t+9],21,-343485551),r=m(r,e),o=m(o,i),f=m(f,c),s=m(s,u)}return Uint32Array.of(r,o,f,s)}(function(n){if(0===n.length)return new Uint32Array;const t=new Uint32Array(w(8*n.length)).fill(0);for(let e=0;e<n.length;e++)t[e>>2]|=(255&n[e])<<e%4*8;return t}(n),8*n.length))},E="6ba7b810-9dad-11d1-80b4-00c04fd430c8",q="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function k(n,t,e,r,o,f){const s="string"==typeof e?function(n){n=unescape(encodeURIComponent(n));const t=new Uint8Array(n.length);for(let e=0;e<n.length;++e)t[e]=n.charCodeAt(e);return t}(e):e,c="string"==typeof r?i(r):r;if("string"==typeof r&&(r=i(r)),16!==r?.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let a=new Uint8Array(16+s.length);if(a.set(c),a.set(s,c.length),a=t(a),a[6]=15&a[6]|n,a[8]=63&a[8]|128,o){f=f||0;for(let n=0;n<16;++n)o[f+n]=a[n];return o}return u(a)}function $(n,t,e,r){return k(48,R,n,t,e,r)}$.DNS=E,$.URL=q;const _=$,T={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},C=function(n,t,e){if(T.randomUUID&&!t&&!n)return T.randomUUID();const r=(n=n||{}).random??n.rng?.()??g();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){if((e=e||0)<0||e+16>t.length)throw new RangeError(`UUID byte range ${e}:${e+15} is out of buffer bounds`);for(let n=0;n<16;++n)t[e+n]=r[n];return t}return u(r)};function M(n,t,e,r){switch(n){case 0:return t&e^~t&r;case 1:case 3:return t^e^r;case 2:return t&e^t&r^e&r}}function S(n,t){return n<<t|n>>>32-t}const V=function(n){const t=[1518500249,1859775393,2400959708,3395469782],e=[1732584193,4023233417,2562383102,271733878,3285377520],r=new Uint8Array(n.length+1);r.set(n),r[n.length]=128;const o=(n=r).length/4+2,f=Math.ceil(o/16),s=new Array(f);for(let t=0;t<f;++t){const e=new Uint32Array(16);for(let r=0;r<16;++r)e[r]=n[64*t+4*r]<<24|n[64*t+4*r+1]<<16|n[64*t+4*r+2]<<8|n[64*t+4*r+3];s[t]=e}s[f-1][14]=8*(n.length-1)/Math.pow(2,32),s[f-1][14]=Math.floor(s[f-1][14]),s[f-1][15]=8*(n.length-1)&4294967295;for(let n=0;n<f;++n){const r=new Uint32Array(80);for(let t=0;t<16;++t)r[t]=s[n][t];for(let n=16;n<80;++n)r[n]=S(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);let o=e[0],f=e[1],i=e[2],c=e[3],u=e[4];for(let n=0;n<80;++n){const e=Math.floor(n/20),s=S(o,5)+M(e,f,i,c)+u+t[e]+r[n]>>>0;u=c,c=i,i=S(f,30)>>>0,f=o,o=s}e[0]=e[0]+o>>>0,e[1]=e[1]+f>>>0,e[2]=e[2]+i>>>0,e[3]=e[3]+c>>>0,e[4]=e[4]+u>>>0}return Uint8Array.of(e[0]>>24,e[0]>>16,e[0]>>8,e[0],e[1]>>24,e[1]>>16,e[1]>>8,e[1],e[2]>>24,e[2]>>16,e[2]>>8,e[2],e[3]>>24,e[3]>>16,e[3]>>8,e[3],e[4]>>24,e[4]>>16,e[4]>>8,e[4])};function L(n,t,e,r){return k(80,V,n,t,e,r)}L.DNS=E,L.URL=q;const N=L,j=function(n,t,e){n??={},e??=0;let r=p({...n,_v6:!0},new Uint8Array(16));if(r=U(r),t){for(let n=0;n<16;n++)t[e+n]=r[n];return t}return u(r)};function O(n){const t=(e="string"==typeof n?i(n):n,Uint8Array.of((15&e[3])<<4|e[4]>>4&15,(15&e[4])<<4|(240&e[5])>>4,(15&e[5])<<4|15&e[6],e[7],(15&e[1])<<4|(240&e[2])>>4,(15&e[2])<<4|(240&e[3])>>4,16|(240&e[0])>>4,(15&e[0])<<4|(240&e[1])>>4,e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]));var e;return"string"==typeof n?u(t):t}const X={};function x(n,t,e,r,o=0){if(n.length<16)throw new Error("Random bytes length must be >= 16");if(r){if(o<0||o+16>r.length)throw new RangeError(`UUID byte range ${o}:${o+15} is out of buffer bounds`)}else r=new Uint8Array(16),o=0;return t??=Date.now(),e??=127*n[6]<<24|n[7]<<16|n[8]<<8|n[9],r[o++]=t/1099511627776&255,r[o++]=t/4294967296&255,r[o++]=t/16777216&255,r[o++]=t/65536&255,r[o++]=t/256&255,r[o++]=255&t,r[o++]=112|e>>>28&15,r[o++]=e>>>20&255,r[o++]=128|e>>>14&63,r[o++]=e>>>6&255,r[o++]=e<<2&255|3&n[10],r[o++]=n[11],r[o++]=n[12],r[o++]=n[13],r[o++]=n[14],r[o++]=n[15],r}const z=function(n,t,e){let r;if(n)r=x(n.random??n.rng?.()??g(),n.msecs,n.seq,t,e);else{const n=Date.now(),o=g();!function(n,t,e){n.msecs??=-1/0,n.seq??=0,t>n.msecs?(n.seq=e[6]<<23|e[7]<<16|e[8]<<8|e[9],n.msecs=t):(n.seq=n.seq+1|0,0===n.seq&&n.msecs++)}(X,n,o),r=x(o,X.msecs,X.seq,t,e)}return t??u(r)},B=function(n){if(!s(n))throw TypeError("Invalid UUID");return parseInt(n.slice(14,15),16)}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunksignalpilot_ai_internal=self.webpackChunksignalpilot_ai_internal||[]).push([[353],{44353(e,t,n){n.d(t,{b6:()=>v,cL:()=>R,g_:()=>g,pw:()=>Oe});var r=n(60195),o=n(45024),l=n(72084),i=n(3708);function s(e,t){return({state:n,dispatch:r})=>{if(n.readOnly)return!1;let o=e(t,n);return!!o&&(r(n.update(o)),!0)}}const a=s(d,0),c=s(h,0),f=s((e,t)=>h(e,t,function(e){let t=[];for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from),o=n.to<=r.to?r:e.doc.lineAt(n.to);o.from>r.from&&o.from==n.to&&(o=n.to==r.to+1?r:e.doc.lineAt(n.to-1));let l=t.length-1;l>=0&&t[l].to>r.from?t[l].to=o.to:t.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:o.to})}return t}(t)),0);function u(e,t){let n=e.languageDataAt("commentTokens",t,1);return n.length?n[0]:{}}function h(e,t,n=t.selection.ranges){let r=n.map(e=>u(t,e.from).block);if(!r.every(e=>e))return null;let o=n.map((e,n)=>function(e,{open:t,close:n},r,o){let l,i,s=e.sliceDoc(r-50,r),a=e.sliceDoc(o,o+50),c=/\s*$/.exec(s)[0].length,f=/^\s*/.exec(a)[0].length,u=s.length-c;if(s.slice(u-t.length,u)==t&&a.slice(f,f+n.length)==n)return{open:{pos:r-c,margin:c&&1},close:{pos:o+f,margin:f&&1}};o-r<=100?l=i=e.sliceDoc(r,o):(l=e.sliceDoc(r,r+50),i=e.sliceDoc(o-50,o));let h=/^\s*/.exec(l)[0].length,d=/\s*$/.exec(i)[0].length,m=i.length-d-n.length;return l.slice(h,h+t.length)==t&&i.slice(m,m+n.length)==n?{open:{pos:r+h+t.length,margin:/\s/.test(l.charAt(h+t.length))?1:0},close:{pos:o-d-n.length,margin:/\s/.test(i.charAt(m-1))?1:0}}:null}(t,r[n],e.from,e.to));if(2!=e&&!o.every(e=>e))return{changes:t.changes(n.map((e,t)=>o[t]?[]:[{from:e.from,insert:r[t].open+" "},{from:e.to,insert:" "+r[t].close}]))};if(1!=e&&o.some(e=>e)){let e=[];for(let t,n=0;n<o.length;n++)if(t=o[n]){let o=r[n],{open:l,close:i}=t;e.push({from:l.pos-o.open.length,to:l.pos+l.margin},{from:i.pos-i.margin,to:i.pos+o.close.length})}return{changes:e}}return null}function d(e,t,n=t.selection.ranges){let r=[],o=-1;for(let{from:e,to:l}of n){let n=r.length,i=1e9,s=u(t,e).line;if(s){for(let n=e;n<=l;){let a=t.doc.lineAt(n);if(a.from>o&&(e==l||l>a.from)){o=a.from;let e=/^\s*/.exec(a.text)[0].length,t=e==a.length,n=a.text.slice(e,e+s.length)==s?e:-1;e<a.text.length&&e<i&&(i=e),r.push({line:a,comment:n,token:s,indent:e,empty:t,single:!1})}n=a.to+1}if(i<1e9)for(let e=n;e<r.length;e++)r[e].indent<r[e].line.text.length&&(r[e].indent=i);r.length==n+1&&(r[n].single=!0)}}if(2!=e&&r.some(e=>e.comment<0&&(!e.empty||e.single))){let e=[];for(let{line:t,token:n,indent:o,empty:l,single:i}of r)!i&&l||e.push({from:t.from+o,insert:n+" "});let n=t.changes(e);return{changes:n,selection:t.selection.map(n,1)}}if(1!=e&&r.some(e=>e.comment>=0)){let e=[];for(let{line:t,comment:n,token:o}of r)if(n>=0){let r=t.from+n,l=r+o.length;" "==t.text[l-t.from]&&l++,e.push({from:r,to:l})}return{changes:e}}return null}const m=r.Annotation.define(),p=r.Annotation.define(),g=r.Facet.define(),y=r.Facet.define({combine:e=>(0,r.combineConfig)(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,r)=>e(n,r)||t(n,r)})}),k=r.StateField.define({create:()=>N.empty,update(e,t){let n=t.state.facet(y),o=t.annotation(m);if(o){let r=x.fromTransaction(t,o.selection),l=o.side,i=0==l?e.undone:e.done;return i=r?C(i,i.length,n.minDepth,r):b(i,t.startState.selection),new N(0==l?o.rest:i,0==l?i:o.rest)}let l=t.annotation(p);if("full"!=l&&"before"!=l||(e=e.isolate()),!1===t.annotation(r.Transaction.addToHistory))return t.changes.empty?e:e.addMapping(t.changes.desc);let i=x.fromTransaction(t),s=t.annotation(r.Transaction.time),a=t.annotation(r.Transaction.userEvent);return i?e=e.addChanges(i,s,a,n,t):t.selection&&(e=e.addSelection(t.startState.selection,s,a,n.newGroupDelay)),"full"!=l&&"after"!=l||(e=e.isolate()),e},toJSON:e=>({done:e.done.map(e=>e.toJSON()),undone:e.undone.map(e=>e.toJSON())}),fromJSON:e=>new N(e.done.map(x.fromJSON),e.undone.map(x.fromJSON))});function v(e={}){return[k,y.of(e),o.EditorView.domEventHandlers({beforeinput(e,t){let n="historyUndo"==e.inputType?S:"historyRedo"==e.inputType?w:null;return!!n&&(e.preventDefault(),n(t))}})]}function A(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return!1;let o=n.field(k,!1);if(!o)return!1;let l=o.pop(e,n,t);return!!l&&(r(l),!0)}}const S=A(0,!1),w=A(1,!1),E=A(0,!0),D=A(1,!0);class x{constructor(e,t,n,r,o){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=r,this.selectionsAfter=o}setSelAfter(e){return new x(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,n;return{changes:null===(e=this.changes)||void 0===e?void 0:e.toJSON(),mapped:null===(t=this.mapped)||void 0===t?void 0:t.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map(e=>e.toJSON())}}static fromJSON(e){return new x(e.changes&&r.ChangeSet.fromJSON(e.changes),[],e.mapped&&r.ChangeDesc.fromJSON(e.mapped),e.startSelection&&r.EditorSelection.fromJSON(e.startSelection),e.selectionsAfter.map(r.EditorSelection.fromJSON))}static fromTransaction(e,t){let n=B;for(let t of e.startState.facet(g)){let r=t(e);r.length&&(n=n.concat(r))}return!n.length&&e.changes.empty?null:new x(e.changes.invert(e.startState.doc),n,void 0,t||e.startState.selection,B)}static selection(e){return new x(void 0,B,void 0,void 0,e)}}function C(e,t,n,r){let o=t+1>n+20?t-n-1:0,l=e.slice(o,t);return l.push(r),l}function M(e,t){return e.length?t.length?e.concat(t):e:t}const B=[];function b(e,t){if(e.length){let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-200));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),C(e,e.length-1,1e9,n.setSelAfter(r)))}return[x.selection([t])]}function O(e){let t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function T(e,t){if(!e.length)return e;let n=e.length,r=B;for(;n;){let o=I(e[n-1],t,r);if(o.changes&&!o.changes.empty||o.effects.length){let t=e.slice(0,n);return t[n-1]=o,t}t=o.mapped,n--,r=o.selectionsAfter}return r.length?[x.selection(r)]:B}function I(e,t,n){let o=M(e.selectionsAfter.length?e.selectionsAfter.map(e=>e.map(t)):B,n);if(!e.changes)return x.selection(o);let l=e.changes.map(t),i=t.mapDesc(e.changes,!0),s=e.mapped?e.mapped.composeDesc(i):i;return new x(l,r.StateEffect.mapEffects(e.effects,t),s,e.startSelection.map(i),o)}const V=/^(input\.type|delete)($|\.)/;class N{constructor(e,t,n=0,r=void 0){this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=r}isolate(){return this.prevTime?new N(this.done,this.undone):this}addChanges(e,t,n,o,l){let i=this.done,s=i[i.length-1];return i=s&&s.changes&&!s.changes.empty&&e.changes&&(!n||V.test(n))&&(!s.selectionsAfter.length&&t-this.prevTime<o.newGroupDelay&&o.joinToEvent(l,function(e,t){let n=[],r=!1;return e.iterChangedRanges((e,t)=>n.push(e,t)),t.iterChangedRanges((e,t,o,l)=>{for(let e=0;e<n.length;){let t=n[e++],i=n[e++];l>=t&&o<=i&&(r=!0)}}),r}(s.changes,e.changes))||"input.type.compose"==n)?C(i,i.length-1,o.minDepth,new x(e.changes.compose(s.changes),M(r.StateEffect.mapEffects(e.effects,s.changes),s.effects),s.mapped,s.startSelection,B)):C(i,i.length,o.minDepth,e),new N(i,B,t,n)}addSelection(e,t,n,r){let o=this.done.length?this.done[this.done.length-1].selectionsAfter:B;return o.length>0&&t-this.prevTime<r&&n==this.prevUserEvent&&n&&/^select($|\.)/.test(n)&&(l=o[o.length-1],i=e,l.ranges.length==i.ranges.length&&0===l.ranges.filter((e,t)=>e.empty!=i.ranges[t].empty).length)?this:new N(b(this.done,e),this.undone,t,n);var l,i}addMapping(e){return new N(T(this.done,e),T(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,n){let r=0==e?this.done:this.undone;if(0==r.length)return null;let o=r[r.length-1],l=o.selectionsAfter[0]||t.selection;if(n&&o.selectionsAfter.length)return t.update({selection:o.selectionsAfter[o.selectionsAfter.length-1],annotations:m.of({side:e,rest:O(r),selection:l}),userEvent:0==e?"select.undo":"select.redo",scrollIntoView:!0});if(o.changes){let n=1==r.length?B:r.slice(0,r.length-1);return o.mapped&&(n=T(n,o.mapped)),t.update({changes:o.changes,selection:o.startSelection,effects:o.effects,annotations:m.of({side:e,rest:n,selection:l}),filter:!1,userEvent:0==e?"undo":"redo",scrollIntoView:!0})}return null}}N.empty=new N(B,B);const R=[{key:"Mod-z",run:S,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:w,preventDefault:!0},{linux:"Ctrl-Shift-z",run:w,preventDefault:!0},{key:"Mod-u",run:E,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:D,preventDefault:!0}];function J(e,t){return r.EditorSelection.create(e.ranges.map(t),e.mainIndex)}function L(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function U({state:e,dispatch:t},n){let r=J(e.selection,n);return!r.eq(e.selection,!0)&&(t(L(e,r)),!0)}function H(e,t){return r.EditorSelection.cursor(t?e.to:e.from)}function P(e,t){return U(e,n=>n.empty?e.moveByChar(n,t):H(n,t))}function z(e){return e.textDirectionAt(e.state.selection.main.head)==o.Direction.LTR}const G=e=>P(e,!z(e)),q=e=>P(e,z(e));function _(e,t){return U(e,n=>n.empty?e.moveByGroup(n,t):H(n,t))}function j(e,t,n){if(t.type.prop(n))return!0;let r=t.to-t.from;return r&&(r>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function F(e,t,n){let o,s,a=(0,l.syntaxTree)(e).resolveInner(t.head),c=n?i.NodeProp.closedBy:i.NodeProp.openedBy;for(let r=t.head;;){let t=n?a.childAfter(r):a.childBefore(r);if(!t)break;j(e,t,c)?a=t:r=n?t.to:t.from}return s=a.type.prop(c)&&(o=n?(0,l.matchBrackets)(e,a.from,1):(0,l.matchBrackets)(e,a.to,-1))&&o.matched?n?o.end.to:o.end.from:n?a.to:a.from,r.EditorSelection.cursor(s,n?-1:1)}function $(e,t){return U(e,n=>{if(!n.empty)return H(n,t);let r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)})}"undefined"!=typeof Intl&&Intl.Segmenter;const W=e=>$(e,!1),K=e=>$(e,!0);function Q(e){let t,n=e.scrollDOM.clientHeight<e.scrollDOM.scrollHeight-2,r=0,l=0;if(n){for(let t of e.state.facet(o.EditorView.scrollMargins)){let n=t(e);(null==n?void 0:n.top)&&(r=Math.max(null==n?void 0:n.top,r)),(null==n?void 0:n.bottom)&&(l=Math.max(null==n?void 0:n.bottom,l))}t=e.scrollDOM.clientHeight-r-l}else t=(e.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:r,marginBottom:l,selfScroll:n,height:Math.max(e.defaultLineHeight,t-5)}}function X(e,t){let n,r=Q(e),{state:l}=e,i=J(l.selection,n=>n.empty?e.moveVertically(n,t,r.height):H(n,t));if(i.eq(l.selection))return!1;if(r.selfScroll){let t=e.coordsAtPos(l.selection.main.head),s=e.scrollDOM.getBoundingClientRect(),a=s.top+r.marginTop,c=s.bottom-r.marginBottom;t&&t.top>a&&t.bottom<c&&(n=o.EditorView.scrollIntoView(i.main.head,{y:"start",yMargin:t.top-a}))}return e.dispatch(L(l,i),{effects:n}),!0}const Y=e=>X(e,!1),Z=e=>X(e,!0);function ee(e,t,n){let o=e.lineBlockAt(t.head),l=e.moveToLineBoundary(t,n);if(l.head==t.head&&l.head!=(n?o.to:o.from)&&(l=e.moveToLineBoundary(t,n,!1)),!n&&l.head==o.from&&o.length){let n=/^\s*/.exec(e.state.sliceDoc(o.from,Math.min(o.from+100,o.to)))[0].length;n&&t.head!=o.from+n&&(l=r.EditorSelection.cursor(o.from+n))}return l}function te(e,t){let n=J(e.state.selection,e=>{let n=t(e);return r.EditorSelection.range(e.anchor,n.head,n.goalColumn,n.bidiLevel||void 0)});return!n.eq(e.state.selection)&&(e.dispatch(L(e.state,n)),!0)}function ne(e,t){return te(e,n=>e.moveByChar(n,t))}const re=e=>ne(e,!z(e)),oe=e=>ne(e,z(e));function le(e,t){return te(e,n=>e.moveByGroup(n,t))}function ie(e,t){return te(e,n=>e.moveVertically(n,t))}const se=e=>ie(e,!1),ae=e=>ie(e,!0);function ce(e,t){return te(e,n=>e.moveVertically(n,t,Q(e).height))}const fe=e=>ce(e,!1),ue=e=>ce(e,!0),he=({state:e,dispatch:t})=>(t(L(e,{anchor:0})),!0),de=({state:e,dispatch:t})=>(t(L(e,{anchor:e.doc.length})),!0),me=({state:e,dispatch:t})=>(t(L(e,{anchor:e.selection.main.anchor,head:0})),!0),pe=({state:e,dispatch:t})=>(t(L(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0);function ge(e,t){let{state:n}=e,o=n.selection,l=n.selection.ranges.slice();for(let r of n.selection.ranges){let o=n.doc.lineAt(r.head);if(t?o.to<e.state.doc.length:o.from>0)for(let n=r;;){let r=e.moveVertically(n,t);if(r.head<o.from||r.head>o.to){l.some(e=>e.head==r.head)||l.push(r);break}if(r.head==n.head)break;n=r}}return l.length!=o.ranges.length&&(e.dispatch(L(n,r.EditorSelection.create(l,l.length-1))),!0)}function ye(e,t){if(e.state.readOnly)return!1;let n="delete.selection",{state:l}=e,i=l.changeByRange(o=>{let{from:l,to:i}=o;if(l==i){let r=t(o);r<l?(n="delete.backward",r=ke(e,r,!1)):r>l&&(n="delete.forward",r=ke(e,r,!0)),l=Math.min(l,r),i=Math.max(i,r)}else l=ke(e,l,!1),i=ke(e,i,!0);return l==i?{range:o}:{changes:{from:l,to:i},range:r.EditorSelection.cursor(l,l<o.head?-1:1)}});return!i.changes.empty&&(e.dispatch(l.update(i,{scrollIntoView:!0,userEvent:n,effects:"delete.selection"==n?o.EditorView.announce.of(l.phrase("Selection deleted")):void 0})),!0)}function ke(e,t,n){if(e instanceof o.EditorView)for(let r of e.state.facet(o.EditorView.atomicRanges).map(t=>t(e)))r.between(t,t,(e,r)=>{e<t&&r>t&&(t=n?r:e)});return t}const ve=(e,t,n)=>ye(e,o=>{let i,s,a=o.from,{state:c}=e,f=c.doc.lineAt(a);if(n&&!t&&a>f.from&&a<f.from+200&&!/[^ \t]/.test(i=f.text.slice(0,a-f.from))){if("\t"==i[i.length-1])return a-1;let e=(0,r.countColumn)(i,c.tabSize)%(0,l.getIndentUnit)(c)||(0,l.getIndentUnit)(c);for(let t=0;t<e&&" "==i[i.length-1-t];t++)a--;s=a}else s=(0,r.findClusterBreak)(f.text,a-f.from,t,t)+f.from,s==a&&f.number!=(t?c.doc.lines:1)?s+=t?1:-1:!t&&/[\ufe00-\ufe0f]/.test(f.text.slice(s-f.from,a-f.from))&&(s=(0,r.findClusterBreak)(f.text,s-f.from,!1,!1)+f.from);return s}),Ae=e=>ve(e,!1,!0),Se=e=>ve(e,!0,!1),we=(e,t)=>ye(e,n=>{let o=n.head,{state:l}=e,i=l.doc.lineAt(o),s=l.charCategorizer(o);for(let e=null;;){if(o==(t?i.to:i.from)){o==n.head&&i.number!=(t?l.doc.lines:1)&&(o+=t?1:-1);break}let a=(0,r.findClusterBreak)(i.text,o-i.from,t)+i.from,c=i.text.slice(Math.min(o,a)-i.from,Math.max(o,a)-i.from),f=s(c);if(null!=e&&f!=e)break;" "==c&&o==n.head||(e=f),o=a}return o}),Ee=e=>we(e,!1);function De(e){let t=[],n=-1;for(let r of e.selection.ranges){let o=e.doc.lineAt(r.from),l=e.doc.lineAt(r.to);if(r.empty||r.to!=l.from||(l=e.doc.lineAt(r.to-1)),n>=o.number){let e=t[t.length-1];e.to=l.to,e.ranges.push(r)}else t.push({from:o.from,to:l.to,ranges:[r]});n=l.number+1}return t}function xe(e,t,n){if(e.readOnly)return!1;let o=[],l=[];for(let t of De(e)){if(n?t.to==e.doc.length:0==t.from)continue;let i=e.doc.lineAt(n?t.to+1:t.from-1),s=i.length+1;if(n){o.push({from:t.to,to:i.to},{from:t.from,insert:i.text+e.lineBreak});for(let n of t.ranges)l.push(r.EditorSelection.range(Math.min(e.doc.length,n.anchor+s),Math.min(e.doc.length,n.head+s)))}else{o.push({from:i.from,to:t.from},{from:t.to,insert:e.lineBreak+i.text});for(let e of t.ranges)l.push(r.EditorSelection.range(e.anchor-s,e.head-s))}}return!!o.length&&(t(e.update({changes:o,scrollIntoView:!0,selection:r.EditorSelection.create(l,e.selection.mainIndex),userEvent:"move.line"})),!0)}function Ce(e,t,n){if(e.readOnly)return!1;let r=[];for(let t of De(e))n?r.push({from:t.from,insert:e.doc.slice(t.from,t.to)+e.lineBreak}):r.push({from:t.to,insert:e.lineBreak+e.doc.slice(t.from,t.to)});let o=e.changes(r);return t(e.update({changes:o,selection:e.selection.map(o,n?1:-1),scrollIntoView:!0,userEvent:"input.copyline"})),!0}const Me=Be(!1);function Be(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let o=t.changeByRange(n=>{let{from:o,to:s}=n,a=t.doc.lineAt(o),c=!e&&o==s&&function(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n,r=(0,l.syntaxTree)(e).resolveInner(t),o=r.childBefore(t),s=r.childAfter(t);return o&&s&&o.to<=t&&s.from>=t&&(n=o.type.prop(i.NodeProp.closedBy))&&n.indexOf(s.name)>-1&&e.doc.lineAt(o.to).from==e.doc.lineAt(s.from).from&&!/\S/.test(e.sliceDoc(o.to,s.from))?{from:o.to,to:s.from}:null}(t,o);e&&(o=s=(s<=a.to?a:t.doc.lineAt(s)).to);let f=new l.IndentContext(t,{simulateBreak:o,simulateDoubleBreak:!!c}),u=(0,l.getIndentation)(f,o);for(null==u&&(u=(0,r.countColumn)(/^\s*/.exec(t.doc.lineAt(o).text)[0],t.tabSize));s<a.to&&/\s/.test(a.text[s-a.from]);)s++;c?({from:o,to:s}=c):o>a.from&&o<a.from+100&&!/\S/.test(a.text.slice(0,o))&&(o=a.from);let h=["",(0,l.indentString)(t,u)];return c&&h.push((0,l.indentString)(t,f.lineIndent(a.from,-1))),{changes:{from:o,to:s,insert:r.Text.of(h)},range:r.EditorSelection.cursor(o+1+h[1].length)}});return n(t.update(o,{scrollIntoView:!0,userEvent:"input"})),!0}}function be(e,t){let n=-1;return e.changeByRange(o=>{let l=[];for(let r=o.from;r<=o.to;){let i=e.doc.lineAt(r);i.number>n&&(o.empty||o.to>i.from)&&(t(i,l,o),n=i.number),r=i.to+1}let i=e.changes(l);return{changes:l,range:r.EditorSelection.range(i.mapPos(o.anchor,1),i.mapPos(o.head,1))}})}const Oe=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:e=>U(e,t=>F(e.state,t,!z(e))),shift:e=>te(e,t=>F(e.state,t,!z(e)))},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:e=>U(e,t=>F(e.state,t,z(e))),shift:e=>te(e,t=>F(e.state,t,z(e)))},{key:"Alt-ArrowUp",run:({state:e,dispatch:t})=>xe(e,t,!1)},{key:"Shift-Alt-ArrowUp",run:({state:e,dispatch:t})=>Ce(e,t,!1)},{key:"Alt-ArrowDown",run:({state:e,dispatch:t})=>xe(e,t,!0)},{key:"Shift-Alt-ArrowDown",run:({state:e,dispatch:t})=>Ce(e,t,!0)},{key:"Mod-Alt-ArrowUp",run:e=>ge(e,!1)},{key:"Mod-Alt-ArrowDown",run:e=>ge(e,!0)},{key:"Escape",run:({state:e,dispatch:t})=>{let n=e.selection,o=null;return n.ranges.length>1?o=r.EditorSelection.create([n.main]):n.main.empty||(o=r.EditorSelection.create([r.EditorSelection.cursor(n.main.head)])),!!o&&(t(L(e,o)),!0)}},{key:"Mod-Enter",run:Be(!0)},{key:"Alt-l",mac:"Ctrl-l",run:({state:e,dispatch:t})=>{let n=De(e).map(({from:t,to:n})=>r.EditorSelection.range(t,Math.min(n+1,e.doc.length)));return t(e.update({selection:r.EditorSelection.create(n),userEvent:"select"})),!0}},{key:"Mod-i",run:({state:e,dispatch:t})=>{let n=J(e.selection,t=>{let n=(0,l.syntaxTree)(e),o=n.resolveStack(t.from,1);if(t.empty){let e=n.resolveStack(t.from,-1);e.node.from>=o.node.from&&e.node.to<=o.node.to&&(o=e)}for(let e=o;e;e=e.next){let{node:n}=e;if((n.from<t.from&&n.to>=t.to||n.to>t.to&&n.from<=t.from)&&e.next)return r.EditorSelection.range(n.to,n.from)}return t});return!n.eq(e.selection)&&(t(L(e,n)),!0)},preventDefault:!0},{key:"Mod-[",run:({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(be(e,(t,n)=>{let o=/^\s*/.exec(t.text)[0];if(!o)return;let i=(0,r.countColumn)(o,e.tabSize),s=0,a=(0,l.indentString)(e,Math.max(0,i-(0,l.getIndentUnit)(e)));for(;s<o.length&&s<a.length&&o.charCodeAt(s)==a.charCodeAt(s);)s++;n.push({from:t.from+s,to:t.from+o.length,insert:a.slice(s)})}),{userEvent:"delete.dedent"})),!0)},{key:"Mod-]",run:({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(be(e,(t,n)=>{n.push({from:t.from,insert:e.facet(l.indentUnit)})}),{userEvent:"input.indent"})),!0)},{key:"Mod-Alt-\\",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),r=new l.IndentContext(e,{overrideIndentation:e=>{let t=n[e];return null==t?-1:t}}),o=be(e,(t,o,i)=>{let s=(0,l.getIndentation)(r,t.from);if(null==s)return;/\S/.test(t.text)||(s=0);let a=/^\s*/.exec(t.text)[0],c=(0,l.indentString)(e,s);(a!=c||i.from<t.from+a.length)&&(n[t.from]=s,o.push({from:t.from,to:t.from+a.length,insert:c}))});return o.changes.empty||t(e.update(o,{userEvent:"indent"})),!0}},{key:"Shift-Mod-k",run:e=>{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(De(t).map(({from:e,to:n})=>(e>0?e--:n<t.doc.length&&n++,{from:e,to:n}))),r=J(t.selection,t=>{let n;if(e.lineWrapping){let r=e.lineBlockAt(t.head),o=e.coordsAtPos(t.head,t.assoc||1);o&&(n=r.bottom+e.documentTop-o.bottom+e.defaultLineHeight/2)}return e.moveVertically(t,!0,n)}).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:({state:e,dispatch:t})=>function(e,t,n){let o=!1,i=J(e.selection,t=>{let i=(0,l.matchBrackets)(e,t.head,-1)||(0,l.matchBrackets)(e,t.head,1)||t.head>0&&(0,l.matchBrackets)(e,t.head-1,1)||t.head<e.doc.length&&(0,l.matchBrackets)(e,t.head+1,-1);if(!i||!i.end)return t;o=!0;let s=i.start.from==t.head?i.end.to:i.end.from;return n?r.EditorSelection.range(t.anchor,s):r.EditorSelection.cursor(s)});return!!o&&(t(L(e,i)),!0)}(e,t,!1)},{key:"Mod-/",run:e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=u(e.state,n.from);return r.line?a(e):!!r.block&&f(e)}},{key:"Alt-A",run:c},{key:"Ctrl-m",mac:"Shift-Alt-m",run:e=>(e.setTabFocusMode(),!0)}].concat([{key:"ArrowLeft",run:G,shift:re,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:e=>_(e,!z(e)),shift:e=>le(e,!z(e)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:e=>U(e,t=>ee(e,t,!z(e))),shift:e=>te(e,t=>ee(e,t,!z(e))),preventDefault:!0},{key:"ArrowRight",run:q,shift:oe,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:e=>_(e,z(e)),shift:e=>le(e,z(e)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:e=>U(e,t=>ee(e,t,z(e))),shift:e=>te(e,t=>ee(e,t,z(e))),preventDefault:!0},{key:"ArrowUp",run:W,shift:se,preventDefault:!0},{mac:"Cmd-ArrowUp",run:he,shift:me},{mac:"Ctrl-ArrowUp",run:Y,shift:fe},{key:"ArrowDown",run:K,shift:ae,preventDefault:!0},{mac:"Cmd-ArrowDown",run:de,shift:pe},{mac:"Ctrl-ArrowDown",run:Z,shift:ue},{key:"PageUp",run:Y,shift:fe},{key:"PageDown",run:Z,shift:ue},{key:"Home",run:e=>U(e,t=>ee(e,t,!1)),shift:e=>te(e,t=>ee(e,t,!1)),preventDefault:!0},{key:"Mod-Home",run:he,shift:me},{key:"End",run:e=>U(e,t=>ee(e,t,!0)),shift:e=>te(e,t=>ee(e,t,!0)),preventDefault:!0},{key:"Mod-End",run:de,shift:pe},{key:"Enter",run:Me,shift:Me},{key:"Mod-a",run:({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0)},{key:"Backspace",run:Ae,shift:Ae,preventDefault:!0},{key:"Delete",run:Se,preventDefault:!0},{key:"Mod-Backspace",mac:"Alt-Backspace",run:Ee,preventDefault:!0},{key:"Mod-Delete",mac:"Alt-Delete",run:e=>we(e,!0),preventDefault:!0},{mac:"Mod-Backspace",run:e=>ye(e,t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)}),preventDefault:!0},{mac:"Mod-Delete",run:e=>ye(e,t=>{let n=e.moveToLineBoundary(t,!0).head;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)}),preventDefault:!0}].concat([{key:"Ctrl-b",run:G,shift:re,preventDefault:!0},{key:"Ctrl-f",run:q,shift:oe},{key:"Ctrl-p",run:W,shift:se},{key:"Ctrl-n",run:K,shift:ae},{key:"Ctrl-a",run:e=>U(e,t=>r.EditorSelection.cursor(e.lineBlockAt(t.head).from,1)),shift:e=>te(e,t=>r.EditorSelection.cursor(e.lineBlockAt(t.head).from))},{key:"Ctrl-e",run:e=>U(e,t=>r.EditorSelection.cursor(e.lineBlockAt(t.head).to,-1)),shift:e=>te(e,t=>r.EditorSelection.cursor(e.lineBlockAt(t.head).to))},{key:"Ctrl-d",run:Se},{key:"Ctrl-h",run:Ae},{key:"Ctrl-k",run:e=>ye(e,t=>{let n=e.lineBlockAt(t.head).to;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)})},{key:"Ctrl-Alt-h",run:Ee},{key:"Ctrl-o",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:r.Text.of(["",""])},range:r.EditorSelection.cursor(e.from)}));return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(t=>{if(!t.empty||0==t.from||t.from==e.doc.length)return{range:t};let n=t.from,o=e.doc.lineAt(n),l=n==o.from?n-1:(0,r.findClusterBreak)(o.text,n-o.from,!1)+o.from,i=n==o.to?n+1:(0,r.findClusterBreak)(o.text,n-o.from,!0)+o.from;return{changes:{from:l,to:i,insert:e.doc.slice(n,i).append(e.doc.slice(l,n))},range:r.EditorSelection.cursor(i)}});return!n.changes.empty&&(t(e.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:Z}].map(e=>({mac:e.key,run:e.run,shift:e.shift}))))}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunksignalpilot_ai_internal=self.webpackChunksignalpilot_ai_internal||[]).push([[364],{54364(e,t,n){function s(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}n.r(t),n.d(t,{Hooks:()=>pe,Lexer:()=>oe,Marked:()=>ue,Parser:()=>he,Renderer:()=>ae,TextRenderer:()=>ce,Tokenizer:()=>le,defaults:()=>r,getDefaults:()=>s,lexer:()=>$e,marked:()=>ke,options:()=>de,parse:()=>me,parseInline:()=>we,parser:()=>ye,setOptions:()=>fe,use:()=>xe,walkTokens:()=>be});var r={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function i(e){r=e}var l={exec:()=>null};function o(e,t=""){let n="string"==typeof e?e:e.source;const s={replace:(e,t)=>{let r="string"==typeof t?t:t.source;return r=r.replace(a.caret,"$1"),n=n.replace(e,r),s},getRegex:()=>new RegExp(n,t)};return s}var a={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},c=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,h=/(?:[*+-]|\d{1,9}[.)])/,p=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,u=o(p).replace(/bull/g,h).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),g=o(p).replace(/bull/g,h).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),k=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,d=/(?!\s*\])(?:\\.|[^\[\]\\])+/,f=o(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",d).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),x=o(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,h).getRegex(),b="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",w=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,m=o("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",w).replace("tag",b).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),y=o(k).replace("hr",c).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",b).getRegex(),$={blockquote:o(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",y).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:f,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:c,html:m,lheading:u,list:x,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:y,table:l,text:/^[^\n]+/},R=o("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",c).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",b).getRegex(),S={...$,lheading:g,table:R,paragraph:o(k).replace("hr",c).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",R).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",b).getRegex()},T={...$,html:o("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",w).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:l,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:o(k).replace("hr",c).replace("heading"," *#{1,6} *[^\n]").replace("lheading",u).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},z=/^( {2,}|\\)\n(?!\s*$)/,A=/[\p{P}\p{S}]/u,_=/[\s\p{P}\p{S}]/u,P=/[^\s\p{P}\p{S}]/u,I=o(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,_).getRegex(),L=/(?!~)[\p{P}\p{S}]/u,C=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,B=o(C,"u").replace(/punct/g,A).getRegex(),q=o(C,"u").replace(/punct/g,L).getRegex(),E="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",v=o(E,"gu").replace(/notPunctSpace/g,P).replace(/punctSpace/g,_).replace(/punct/g,A).getRegex(),Z=o(E,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,L).getRegex(),D=o("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,P).replace(/punctSpace/g,_).replace(/punct/g,A).getRegex(),M=o(/\\(punct)/,"gu").replace(/punct/g,A).getRegex(),O=o(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Q=o(w).replace("(?:--\x3e|$)","--\x3e").getRegex(),N=o("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Q).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),j=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,G=o(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",j).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),H=o(/^!?\[(label)\]\[(ref)\]/).replace("label",j).replace("ref",d).getRegex(),X=o(/^!?\[(ref)\](?:\[\])?/).replace("ref",d).getRegex(),F={_backpedal:l,anyPunctuation:M,autolink:O,blockSkip:/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,br:z,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:l,emStrongLDelim:B,emStrongRDelimAst:v,emStrongRDelimUnd:D,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:G,nolink:X,punctuation:I,reflink:H,reflinkSearch:o("reflink|nolink(?!\\()","g").replace("reflink",H).replace("nolink",X).getRegex(),tag:N,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:l},U={...F,link:o(/^!?\[(label)\]\((.*?)\)/).replace("label",j).getRegex(),reflink:o(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",j).getRegex()},J={...F,emStrongRDelimAst:Z,emStrongLDelim:q,url:o(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},K={...J,br:o(z).replace("{2,}","*").getRegex(),text:o(J.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},V={normal:$,gfm:S,pedantic:T},W={normal:F,gfm:J,breaks:K,pedantic:U},Y={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ee=e=>Y[e];function te(e,t){if(t){if(a.escapeTest.test(e))return e.replace(a.escapeReplace,ee)}else if(a.escapeTestNoEncode.test(e))return e.replace(a.escapeReplaceNoEncode,ee);return e}function ne(e){try{e=encodeURI(e).replace(a.percentDecode,"%")}catch{return null}return e}function se(e,t){const n=e.replace(a.findPipe,(e,t,n)=>{let s=!1,r=t;for(;--r>=0&&"\\"===n[r];)s=!s;return s?"|":" |"}).split(a.splitPipe);let s=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;s<n.length;s++)n[s]=n[s].trim().replace(a.slashPipe,"|");return n}function re(e,t,n){const s=e.length;if(0===s)return"";let r=0;for(;r<s;){const i=e.charAt(s-r-1);if(i!==t||n){if(i===t||!n)break;r++}else r++}return e.slice(0,s-r)}function ie(e,t,n,s,r){const i=t.href,l=t.title||null,o=e[1].replace(r.other.outputLinkReplace,"$1");s.state.inLink=!0;const a={type:"!"===e[0].charAt(0)?"image":"link",raw:n,href:i,title:l,text:o,tokens:s.inlineTokens(o)};return s.state.inLink=!1,a}var le=class{options;rules;lexer;constructor(e){this.options=e||r}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:re(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],n=function(e,t,n){const s=e.match(n.other.indentCodeCompensation);if(null===s)return t;const r=s[1];return t.split("\n").map(e=>{const t=e.match(n.other.beginningSpace);if(null===t)return e;const[s]=t;return s.length>=r.length?e.slice(r.length):e}).join("\n")}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){const t=re(e,"#");this.options.pedantic?e=t.trim():t&&!this.rules.other.endingSpaceChar.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:re(t[0],"\n")}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let e=re(t[0],"\n").split("\n"),n="",s="";const r=[];for(;e.length>0;){let t=!1;const i=[];let l;for(l=0;l<e.length;l++)if(this.rules.other.blockquoteStart.test(e[l]))i.push(e[l]),t=!0;else{if(t)break;i.push(e[l])}e=e.slice(l);const o=i.join("\n"),a=o.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}\n${o}`:o,s=s?`${s}\n${a}`:a;const c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(a,r,!0),this.lexer.state.top=c,0===e.length)break;const h=r.at(-1);if("code"===h?.type)break;if("blockquote"===h?.type){const t=h,i=t.raw+"\n"+e.join("\n"),l=this.blockquote(i);r[r.length-1]=l,n=n.substring(0,n.length-t.raw.length)+l.raw,s=s.substring(0,s.length-t.text.length)+l.text;break}if("list"===h?.type){const t=h,i=t.raw+"\n"+e.join("\n"),l=this.list(i);r[r.length-1]=l,n=n.substring(0,n.length-h.raw.length)+l.raw,s=s.substring(0,s.length-t.raw.length)+l.raw,e=i.substring(r.at(-1).raw.length).split("\n");continue}}return{type:"blockquote",raw:n,tokens:r,text:s}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim();const s=n.length>1,r={type:"list",raw:"",ordered:s,start:s?+n.slice(0,-1):"",loose:!1,items:[]};n=s?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=s?n:"[*+-]");const i=this.rules.other.listItemRegex(n);let l=!1;for(;e;){let n=!1,s="",o="";if(!(t=i.exec(e)))break;if(this.rules.block.hr.test(e))break;s=t[0],e=e.substring(s.length);let a=t[2].split("\n",1)[0].replace(this.rules.other.listReplaceTabs,e=>" ".repeat(3*e.length)),c=e.split("\n",1)[0],h=!a.trim(),p=0;if(this.options.pedantic?(p=2,o=a.trimStart()):h?p=t[1].length+1:(p=t[2].search(this.rules.other.nonSpaceChar),p=p>4?1:p,o=a.slice(p),p+=t[1].length),h&&this.rules.other.blankLine.test(c)&&(s+=c+"\n",e=e.substring(c.length+1),n=!0),!n){const t=this.rules.other.nextBulletRegex(p),n=this.rules.other.hrRegex(p),r=this.rules.other.fencesBeginRegex(p),i=this.rules.other.headingBeginRegex(p),l=this.rules.other.htmlBeginRegex(p);for(;e;){const u=e.split("\n",1)[0];let g;if(c=u,this.options.pedantic?(c=c.replace(this.rules.other.listReplaceNesting," "),g=c):g=c.replace(this.rules.other.tabCharGlobal," "),r.test(c))break;if(i.test(c))break;if(l.test(c))break;if(t.test(c))break;if(n.test(c))break;if(g.search(this.rules.other.nonSpaceChar)>=p||!c.trim())o+="\n"+g.slice(p);else{if(h)break;if(a.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4)break;if(r.test(a))break;if(i.test(a))break;if(n.test(a))break;o+="\n"+c}h||c.trim()||(h=!0),s+=u+"\n",e=e.substring(u.length+1),a=g.slice(p)}}r.loose||(l?r.loose=!0:this.rules.other.doubleBlankLine.test(s)&&(l=!0));let u,g=null;this.options.gfm&&(g=this.rules.other.listIsTask.exec(o),g&&(u="[ ] "!==g[0],o=o.replace(this.rules.other.listReplaceTask,""))),r.items.push({type:"list_item",raw:s,task:!!g,checked:u,loose:!1,text:o,tokens:[]}),r.raw+=s}const o=r.items.at(-1);if(!o)return;o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd(),r.raw=r.raw.trimEnd();for(let e=0;e<r.items.length;e++)if(this.lexer.state.top=!1,r.items[e].tokens=this.lexer.blockTokens(r.items[e].text,[]),!r.loose){const t=r.items[e].tokens.filter(e=>"space"===e.type),n=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw));r.loose=n}if(r.loose)for(let e=0;e<r.items.length;e++)r.items[e].loose=!0;return r}}html(e){const t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){const t=this.rules.block.def.exec(e);if(t){const e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:s}}}table(e){const t=this.rules.block.table.exec(e);if(!t)return;if(!this.rules.other.tableDelimiter.test(t[2]))return;const n=se(t[1]),s=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),r=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],i={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===s.length){for(const e of s)this.rules.other.tableAlignRight.test(e)?i.align.push("right"):this.rules.other.tableAlignCenter.test(e)?i.align.push("center"):this.rules.other.tableAlignLeft.test(e)?i.align.push("left"):i.align.push(null);for(let e=0;e<n.length;e++)i.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:i.align[e]});for(const e of r)i.rows.push(se(e,i.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:i.align[t]})));return i}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;const t=re(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;let n=0;for(let s=0;s<e.length;s++)if("\\"===e[s])s++;else if(e[s]===t[0])n++;else if(e[s]===t[1]&&(n--,n<0))return s;return n>0?-2:-1}(t[2],"()");if(-2===e)return;if(e>-1){const n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],s="";if(this.options.pedantic){const e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],s=e[3])}else s=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),ie(t,{href:n?n.replace(this.rules.inline.anyPunctuation,"$1"):n,title:s?s.replace(this.rules.inline.anyPunctuation,"$1"):s},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){const e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return ie(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let s=this.rules.inline.emStrongLDelim.exec(e);if(s&&(!s[3]||!n.match(this.rules.other.unicodeAlphaNumeric))&&(!s[1]&&!s[2]||!n||this.rules.inline.punctuation.exec(n))){const n=[...s[0]].length-1;let r,i,l=n,o=0;const a="*"===s[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(a.lastIndex=0,t=t.slice(-1*e.length+n);null!=(s=a.exec(t));){if(r=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!r)continue;if(i=[...r].length,s[3]||s[4]){l+=i;continue}if((s[5]||s[6])&&n%3&&!((n+i)%3)){o+=i;continue}if(l-=i,l>0)continue;i=Math.min(i,i+l+o);const t=[...s[0]][0].length,a=e.slice(0,n+s.index+t+i);if(Math.min(n,i)%2){const e=a.slice(1,-1);return{type:"em",raw:a,text:e,tokens:this.lexer.inlineTokens(e)}}const c=a.slice(2,-2);return{type:"strong",raw:a,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," ");const n=this.rules.other.nonSpaceChar.test(e),s=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&s&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let e,n;return"@"===t[2]?(e=t[1],n="mailto:"+e):(e=t[1],n=e),{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])e=t[0],n="mailto:"+e;else{let s;do{s=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??""}while(s!==t[0]);e=t[0],n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){const e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},oe=class e{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||r,this.options.tokenizer=this.options.tokenizer||new le,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={other:a,block:V.normal,inline:W.normal};this.options.pedantic?(t.block=V.pedantic,t.inline=W.pedantic):this.options.gfm&&(t.block=V.gfm,this.options.breaks?t.inline=W.breaks:t.inline=W.gfm),this.tokenizer.rules=t}static get rules(){return{block:V,inline:W}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(a.carriageReturn,"\n"),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){const t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.options.pedantic&&(e=e.replace(a.tabCharGlobal," ").replace(a.spaceLine,""));e;){let s;if(this.options.extensions?.block?.some(n=>!!(s=n.call({lexer:this},e,t))&&(e=e.substring(s.raw.length),t.push(s),!0)))continue;if(s=this.tokenizer.space(e)){e=e.substring(s.raw.length);const n=t.at(-1);1===s.raw.length&&void 0!==n?n.raw+="\n":t.push(s);continue}if(s=this.tokenizer.code(e)){e=e.substring(s.raw.length);const n=t.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+="\n"+s.raw,n.text+="\n"+s.text,this.inlineQueue.at(-1).src=n.text):t.push(s);continue}if(s=this.tokenizer.fences(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.heading(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.hr(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.blockquote(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.list(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.html(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.def(e)){e=e.substring(s.raw.length);const n=t.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+="\n"+s.raw,n.text+="\n"+s.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title});continue}if(s=this.tokenizer.table(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.lheading(e)){e=e.substring(s.raw.length),t.push(s);continue}let r=e;if(this.options.extensions?.startBlock){let t=1/0;const n=e.slice(1);let s;this.options.extensions.startBlock.forEach(e=>{s=e.call({lexer:this},n),"number"==typeof s&&s>=0&&(t=Math.min(t,s))}),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(this.state.top&&(s=this.tokenizer.paragraph(r))){const i=t.at(-1);n&&"paragraph"===i?.type?(i.raw+="\n"+s.raw,i.text+="\n"+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):t.push(s),n=r.length!==e.length,e=e.substring(s.raw.length);continue}if(s=this.tokenizer.text(e)){e=e.substring(s.raw.length);const n=t.at(-1);"text"===n?.type?(n.raw+="\n"+s.raw,n.text+="\n"+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(s);continue}if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n=e,s=null;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(s=this.tokenizer.rules.inline.reflinkSearch.exec(n));)e.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(s=this.tokenizer.rules.inline.anyPunctuation.exec(n));)n=n.slice(0,s.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(s=this.tokenizer.rules.inline.blockSkip.exec(n));)n=n.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let r=!1,i="";for(;e;){let s;if(r||(i=""),r=!1,this.options.extensions?.inline?.some(n=>!!(s=n.call({lexer:this},e,t))&&(e=e.substring(s.raw.length),t.push(s),!0)))continue;if(s=this.tokenizer.escape(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.tag(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.link(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(s.raw.length);const n=t.at(-1);"text"===s.type&&"text"===n?.type?(n.raw+=s.raw,n.text+=s.text):t.push(s);continue}if(s=this.tokenizer.emStrong(e,n,i)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.codespan(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.br(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.del(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.autolink(e)){e=e.substring(s.raw.length),t.push(s);continue}if(!this.state.inLink&&(s=this.tokenizer.url(e))){e=e.substring(s.raw.length),t.push(s);continue}let l=e;if(this.options.extensions?.startInline){let t=1/0;const n=e.slice(1);let s;this.options.extensions.startInline.forEach(e=>{s=e.call({lexer:this},n),"number"==typeof s&&s>=0&&(t=Math.min(t,s))}),t<1/0&&t>=0&&(l=e.substring(0,t+1))}if(s=this.tokenizer.inlineText(l)){e=e.substring(s.raw.length),"_"!==s.raw.slice(-1)&&(i=s.raw.slice(-1)),r=!0;const n=t.at(-1);"text"===n?.type?(n.raw+=s.raw,n.text+=s.text):t.push(s);continue}if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return t}},ae=class{options;parser;constructor(e){this.options=e||r}space(e){return""}code({text:e,lang:t,escaped:n}){const s=(t||"").match(a.notSpaceStart)?.[0],r=e.replace(a.endingNewline,"")+"\n";return s?'<pre><code class="language-'+te(s)+'">'+(n?r:te(r,!0))+"</code></pre>\n":"<pre><code>"+(n?r:te(r,!0))+"</code></pre>\n"}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return"<hr>\n"}list(e){const t=e.ordered,n=e.start;let s="";for(let t=0;t<e.items.length;t++){const n=e.items[t];s+=this.listitem(n)}const r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+s+"</"+r+">\n"}listitem(e){let t="";if(e.task){const n=this.checkbox({checked:!!e.checked});e.loose?"paragraph"===e.tokens[0]?.type?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=n+" "+te(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):t+=n+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>\n`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}table(e){let t="",n="";for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let s="";for(let t=0;t<e.rows.length;t++){const r=e.rows[t];n="";for(let e=0;e<r.length;e++)n+=this.tablecell(r[e]);s+=this.tablerow({text:n})}return s&&(s=`<tbody>${s}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+s+"</table>\n"}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){const t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>\n`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${te(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){const s=this.parser.parseInline(n),r=ne(e);if(null===r)return s;let i='<a href="'+(e=r)+'"';return t&&(i+=' title="'+te(t)+'"'),i+=">"+s+"</a>",i}image({href:e,title:t,text:n,tokens:s}){s&&(n=this.parser.parseInline(s,this.parser.textRenderer));const r=ne(e);if(null===r)return te(n);let i=`<img src="${e=r}" alt="${n}"`;return t&&(i+=` title="${te(t)}"`),i+=">",i}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:te(e.text)}},ce=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},he=class e{options;renderer;textRenderer;constructor(e){this.options=e||r,this.options.renderer=this.options.renderer||new ae,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ce}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e,t=!0){let n="";for(let s=0;s<e.length;s++){const r=e[s];if(this.options.extensions?.renderers?.[r.type]){const e=r,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(e.type)){n+=t||"";continue}}const i=r;switch(i.type){case"space":n+=this.renderer.space(i);continue;case"hr":n+=this.renderer.hr(i);continue;case"heading":n+=this.renderer.heading(i);continue;case"code":n+=this.renderer.code(i);continue;case"table":n+=this.renderer.table(i);continue;case"blockquote":n+=this.renderer.blockquote(i);continue;case"list":n+=this.renderer.list(i);continue;case"html":n+=this.renderer.html(i);continue;case"paragraph":n+=this.renderer.paragraph(i);continue;case"text":{let r=i,l=this.renderer.text(r);for(;s+1<e.length&&"text"===e[s+1].type;)r=e[++s],l+="\n"+this.renderer.text(r);n+=t?this.renderer.paragraph({type:"paragraph",raw:l,text:l,tokens:[{type:"text",raw:l,text:l,escaped:!0}]}):l;continue}default:{const e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return n}parseInline(e,t=this.renderer){let n="";for(let s=0;s<e.length;s++){const r=e[s];if(this.options.extensions?.renderers?.[r.type]){const e=this.options.extensions.renderers[r.type].call({parser:this},r);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)){n+=e||"";continue}}const i=r;switch(i.type){case"escape":case"text":n+=t.text(i);break;case"html":n+=t.html(i);break;case"link":n+=t.link(i);break;case"image":n+=t.image(i);break;case"strong":n+=t.strong(i);break;case"em":n+=t.em(i);break;case"codespan":n+=t.codespan(i);break;case"br":n+=t.br(i);break;case"del":n+=t.del(i);break;default:{const e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return n}},pe=class{options;block;constructor(e){this.options=e||r}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?oe.lex:oe.lexInline}provideParser(){return this.block?he.parse:he.parseInline}},ue=class{defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=he;Renderer=ae;TextRenderer=ce;Lexer=oe;Tokenizer=le;Hooks=pe;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(const s of e)switch(n=n.concat(t.call(this,s)),s.type){case"table":{const e=s;for(const s of e.header)n=n.concat(this.walkTokens(s.tokens,t));for(const s of e.rows)for(const e of s)n=n.concat(this.walkTokens(e.tokens,t));break}case"list":{const e=s;n=n.concat(this.walkTokens(e.items,t));break}default:{const e=s;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(s=>{const r=e[s].flat(1/0);n=n.concat(this.walkTokens(r,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{const n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){const n=t.renderers[e.name];t.renderers[e.name]=n?function(...t){let s=e.renderer.apply(this,t);return!1===s&&(s=n.apply(this,t)),s}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");const n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){const t=this.defaults.renderer||new ae(this.defaults);for(const n in e.renderer){if(!(n in t))throw new Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;const s=n,r=e.renderer[s],i=t[s];t[s]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){const t=this.defaults.tokenizer||new le(this.defaults);for(const n in e.tokenizer){if(!(n in t))throw new Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;const s=n,r=e.tokenizer[s],i=t[s];t[s]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){const t=this.defaults.hooks||new pe;for(const n in e.hooks){if(!(n in t))throw new Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;const s=n,r=e.hooks[s],i=t[s];pe.passThroughHooks.has(n)?t[s]=e=>{if(this.defaults.async)return Promise.resolve(r.call(t,e)).then(e=>i.call(t,e));const n=r.call(t,e);return i.call(t,n)}:t[s]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){const t=this.defaults.walkTokens,s=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(s.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return oe.lex(e,t??this.defaults)}parser(e,t){return he.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{const s={...n},r={...this.defaults,...s},i=this.onError(!!r.silent,!!r.async);if(!0===this.defaults.async&&!1===s.async)return i(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(null==t)return i(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));r.hooks&&(r.hooks.options=r,r.hooks.block=e);const l=r.hooks?r.hooks.provideLexer():e?oe.lex:oe.lexInline,o=r.hooks?r.hooks.provideParser():e?he.parse:he.parseInline;if(r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(t):t).then(e=>l(e,r)).then(e=>r.hooks?r.hooks.processAllTokens(e):e).then(e=>r.walkTokens?Promise.all(this.walkTokens(e,r.walkTokens)).then(()=>e):e).then(e=>o(e,r)).then(e=>r.hooks?r.hooks.postprocess(e):e).catch(i);try{r.hooks&&(t=r.hooks.preprocess(t));let e=l(t,r);r.hooks&&(e=r.hooks.processAllTokens(e)),r.walkTokens&&this.walkTokens(e,r.walkTokens);let n=o(e,r);return r.hooks&&(n=r.hooks.postprocess(n)),n}catch(e){return i(e)}}}onError(e,t){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){const e="<p>An error occurred:</p><pre>"+te(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}},ge=new ue;function ke(e,t){return ge.parse(e,t)}ke.options=ke.setOptions=function(e){return ge.setOptions(e),ke.defaults=ge.defaults,i(ke.defaults),ke},ke.getDefaults=s,ke.defaults=r,ke.use=function(...e){return ge.use(...e),ke.defaults=ge.defaults,i(ke.defaults),ke},ke.walkTokens=function(e,t){return ge.walkTokens(e,t)},ke.parseInline=ge.parseInline,ke.Parser=he,ke.parser=he.parse,ke.Renderer=ae,ke.TextRenderer=ce,ke.Lexer=oe,ke.lexer=oe.lex,ke.Tokenizer=le,ke.Hooks=pe,ke.parse=ke;var de=ke.options,fe=ke.setOptions,xe=ke.use,be=ke.walkTokens,we=ke.parseInline,me=ke,ye=he.parse,$e=oe.lex}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunksignalpilot_ai_internal=self.webpackChunksignalpilot_ai_internal||[]).push([[384],{72384(t,e,n){function s(t){return Array.isArray?Array.isArray(t):"[object Array]"===h(t)}function i(t){return"string"==typeof t}function r(t){return"number"==typeof t}function u(t){return"object"==typeof t}function c(t){return null!=t}function o(t){return!t.trim().length}function h(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}n.r(e),n.d(e,{default:()=>K});const a=Object.prototype.hasOwnProperty;class l{constructor(t){this._keys=[],this._keyMap={};let e=0;t.forEach(t=>{let n=d(t);this._keys.push(n),this._keyMap[n.id]=n,e+=n.weight}),this._keys.forEach(t=>{t.weight/=e})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function d(t){let e=null,n=null,r=null,u=1,c=null;if(i(t)||s(t))r=t,e=g(t),n=f(t);else{if(!a.call(t,"name"))throw new Error("Missing name property in key");const s=t.name;if(r=s,a.call(t,"weight")&&(u=t.weight,u<=0))throw new Error((t=>`Property 'weight' in key '${t}' must be a positive integer`)(s));e=g(s),n=f(s),c=t.getFn}return{path:e,id:n,weight:u,src:r,getFn:c}}function g(t){return s(t)?t:t.split(".")}function f(t){return s(t)?t.join("."):t}var A={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,useExtendedSearch:!1,getFn:function(t,e){let n=[],o=!1;const a=(t,e,l)=>{if(c(t))if(e[l]){const d=t[e[l]];if(!c(d))return;if(l===e.length-1&&(i(d)||r(d)||function(t){return!0===t||!1===t||function(t){return u(t)&&null!==t}(t)&&"[object Boolean]"==h(t)}(d)))n.push(function(t){return null==t?"":function(t){if("string"==typeof t)return t;let e=t+"";return"0"==e&&1/t==-1/0?"-0":e}(t)}(d));else if(s(d)){o=!0;for(let t=0,n=d.length;t<n;t+=1)a(d[t],e,l+1)}else e.length&&a(d,e,l+1)}else n.push(t)};return a(t,i(e)?e.split("."):e,0),o?n:n[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};const p=/[^ ]+/g;class C{constructor({getFn:t=A.getFn,fieldNormWeight:e=A.fieldNormWeight}={}){this.norm=function(t=1,e=3){const n=new Map,s=Math.pow(10,e);return{get(e){const i=e.match(p).length;if(n.has(i))return n.get(i);const r=1/Math.pow(i,.5*t),u=parseFloat(Math.round(r*s)/s);return n.set(i,u),u},clear(){n.clear()}}}(e,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((t,e)=>{this._keysMap[t.id]=e})}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,i(this.docs[0])?this.docs.forEach((t,e)=>{this._addString(t,e)}):this.docs.forEach((t,e)=>{this._addObject(t,e)}),this.norm.clear())}add(t){const e=this.size();i(t)?this._addString(t,e):this._addObject(t,e)}removeAt(t){this.records.splice(t,1);for(let e=t,n=this.size();e<n;e+=1)this.records[e].i-=1}getValueForItemAtKeyId(t,e){return t[this._keysMap[e]]}size(){return this.records.length}_addString(t,e){if(!c(t)||o(t))return;let n={v:t,i:e,n:this.norm.get(t)};this.records.push(n)}_addObject(t,e){let n={i:e,$:{}};this.keys.forEach((e,r)=>{let u=e.getFn?e.getFn(t):this.getFn(t,e.path);if(c(u))if(s(u)){let t=[];const e=[{nestedArrIndex:-1,value:u}];for(;e.length;){const{nestedArrIndex:n,value:r}=e.pop();if(c(r))if(i(r)&&!o(r)){let e={v:r,i:n,n:this.norm.get(r)};t.push(e)}else s(r)&&r.forEach((t,n)=>{e.push({nestedArrIndex:n,value:t})})}n.$[r]=t}else if(i(u)&&!o(u)){let t={v:u,n:this.norm.get(u)};n.$[r]=t}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function m(t,e,{getFn:n=A.getFn,fieldNormWeight:s=A.fieldNormWeight}={}){const i=new C({getFn:n,fieldNormWeight:s});return i.setKeys(t.map(d)),i.setSources(e),i.create(),i}function F(t,{errors:e=0,currentLocation:n=0,expectedLocation:s=0,distance:i=A.distance,ignoreLocation:r=A.ignoreLocation}={}){const u=e/t.length;if(r)return u;const c=Math.abs(s-n);return i?u+c/i:c?1:u}const M=32;function E(t){let e={};for(let n=0,s=t.length;n<s;n+=1){const i=t.charAt(n);e[i]=(e[i]||0)|1<<s-n-1}return e}const D=String.prototype.normalize?t=>t.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,""):t=>t;class y{constructor(t,{location:e=A.location,threshold:n=A.threshold,distance:s=A.distance,includeMatches:i=A.includeMatches,findAllMatches:r=A.findAllMatches,minMatchCharLength:u=A.minMatchCharLength,isCaseSensitive:c=A.isCaseSensitive,ignoreDiacritics:o=A.ignoreDiacritics,ignoreLocation:h=A.ignoreLocation}={}){if(this.options={location:e,threshold:n,distance:s,includeMatches:i,findAllMatches:r,minMatchCharLength:u,isCaseSensitive:c,ignoreDiacritics:o,ignoreLocation:h},t=c?t:t.toLowerCase(),t=o?D(t):t,this.pattern=t,this.chunks=[],!this.pattern.length)return;const a=(t,e)=>{this.chunks.push({pattern:t,alphabet:E(t),startIndex:e})},l=this.pattern.length;if(l>M){let t=0;const e=l%M,n=l-e;for(;t<n;)a(this.pattern.substr(t,M),t),t+=M;if(e){const t=l-M;a(this.pattern.substr(t),t)}}else a(this.pattern,0)}searchIn(t){const{isCaseSensitive:e,ignoreDiacritics:n,includeMatches:s}=this.options;if(t=e?t:t.toLowerCase(),t=n?D(t):t,this.pattern===t){let e={isMatch:!0,score:0};return s&&(e.indices=[[0,t.length-1]]),e}const{location:i,distance:r,threshold:u,findAllMatches:c,minMatchCharLength:o,ignoreLocation:h}=this.options;let a=[],l=0,d=!1;this.chunks.forEach(({pattern:e,alphabet:n,startIndex:g})=>{const{isMatch:f,score:p,indices:C}=function(t,e,n,{location:s=A.location,distance:i=A.distance,threshold:r=A.threshold,findAllMatches:u=A.findAllMatches,minMatchCharLength:c=A.minMatchCharLength,includeMatches:o=A.includeMatches,ignoreLocation:h=A.ignoreLocation}={}){if(e.length>M)throw new Error("Pattern length exceeds max of 32.");const a=e.length,l=t.length,d=Math.max(0,Math.min(s,l));let g=r,f=d;const p=c>1||o,C=p?Array(l):[];let m;for(;(m=t.indexOf(e,f))>-1;){let t=F(e,{currentLocation:m,expectedLocation:d,distance:i,ignoreLocation:h});if(g=Math.min(t,g),f=m+a,p){let t=0;for(;t<a;)C[m+t]=1,t+=1}}f=-1;let E=[],D=1,y=a+l;const B=1<<a-1;for(let s=0;s<a;s+=1){let r=0,c=y;for(;r<c;)F(e,{errors:s,currentLocation:d+c,expectedLocation:d,distance:i,ignoreLocation:h})<=g?r=c:y=c,c=Math.floor((y-r)/2+r);y=c;let o=Math.max(1,d-c+1),A=u?l:Math.min(d+c,l)+a,m=Array(A+2);m[A+1]=(1<<s)-1;for(let r=A;r>=o;r-=1){let u=r-1,c=n[t.charAt(u)];if(p&&(C[u]=+!!c),m[r]=(m[r+1]<<1|1)&c,s&&(m[r]|=(E[r+1]|E[r])<<1|1|E[r+1]),m[r]&B&&(D=F(e,{errors:s,currentLocation:u,expectedLocation:d,distance:i,ignoreLocation:h}),D<=g)){if(g=D,f=u,f<=d)break;o=Math.max(1,2*d-f)}}if(F(e,{errors:s+1,currentLocation:d,expectedLocation:d,distance:i,ignoreLocation:h})>g)break;E=m}const x={isMatch:f>=0,score:Math.max(.001,D)};if(p){const t=function(t=[],e=A.minMatchCharLength){let n=[],s=-1,i=-1,r=0;for(let u=t.length;r<u;r+=1){let u=t[r];u&&-1===s?s=r:u||-1===s||(i=r-1,i-s+1>=e&&n.push([s,i]),s=-1)}return t[r-1]&&r-s>=e&&n.push([s,r-1]),n}(C,c);t.length?o&&(x.indices=t):x.isMatch=!1}return x}(t,e,n,{location:i+g,distance:r,threshold:u,findAllMatches:c,minMatchCharLength:o,includeMatches:s,ignoreLocation:h});f&&(d=!0),l+=p,f&&C&&(a=[...a,...C])});let g={isMatch:d,score:d?l/this.chunks.length:1};return d&&s&&(g.indices=a),g}}class B{constructor(t){this.pattern=t}static isMultiMatch(t){return x(t,this.multiRegex)}static isSingleMatch(t){return x(t,this.singleRegex)}search(){}}function x(t,e){const n=t.match(e);return n?n[1]:null}class L extends B{constructor(t,{location:e=A.location,threshold:n=A.threshold,distance:s=A.distance,includeMatches:i=A.includeMatches,findAllMatches:r=A.findAllMatches,minMatchCharLength:u=A.minMatchCharLength,isCaseSensitive:c=A.isCaseSensitive,ignoreDiacritics:o=A.ignoreDiacritics,ignoreLocation:h=A.ignoreLocation}={}){super(t),this._bitapSearch=new y(t,{location:e,threshold:n,distance:s,includeMatches:i,findAllMatches:r,minMatchCharLength:u,isCaseSensitive:c,ignoreDiacritics:o,ignoreLocation:h})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class k extends B{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let e,n=0;const s=[],i=this.pattern.length;for(;(e=t.indexOf(this.pattern,n))>-1;)n=e+i,s.push([e,n-1]);const r=!!s.length;return{isMatch:r,score:r?0:1,indices:s}}}const _=[class extends B{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const e=t===this.pattern;return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}},k,class extends B{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const e=t.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}},class extends B{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const e=!t.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}},class extends B{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const e=!t.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}},class extends B{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const e=t.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[t.length-this.pattern.length,t.length-1]}}},class extends B{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const e=-1===t.indexOf(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}},L],v=_.length,S=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,w=new Set([L.type,k.type]);const I=[];function $(t,e){for(let n=0,s=I.length;n<s;n+=1){let s=I[n];if(s.condition(t,e))return new s(t,e)}return new y(t,e)}const b="$and",N="$path",R=t=>!(!t[b]&&!t.$or),O=t=>({[b]:Object.keys(t).map(e=>({[e]:t[e]}))});function j(t,e,{auto:n=!0}={}){const r=t=>{let c=Object.keys(t);const o=(t=>!!t[N])(t);if(!o&&c.length>1&&!R(t))return r(O(t));if((t=>!s(t)&&u(t)&&!R(t))(t)){const s=o?t[N]:c[0],r=o?t.$val:t[s];if(!i(r))throw new Error((t=>`Invalid value for key ${t}`)(s));const u={keyId:f(s),pattern:r};return n&&(u.searcher=$(r,e)),u}let h={children:[],operator:c[0]};return c.forEach(e=>{const n=t[e];s(n)&&n.forEach(t=>{h.children.push(r(t))})}),h};return R(t)||(t=O(t)),r(t)}function W(t,e){const n=t.matches;e.matches=[],c(n)&&n.forEach(t=>{if(!c(t.indices)||!t.indices.length)return;const{indices:n,value:s}=t;let i={indices:n,value:s};t.key&&(i.key=t.key.src),t.idx>-1&&(i.refIndex=t.idx),e.matches.push(i)})}function z(t,e){e.score=t.score}class K{constructor(t,e={},n){this.options={...A,...e},this.options.useExtendedSearch,this._keyStore=new l(this.options.keys),this.setCollection(t,n)}setCollection(t,e){if(this._docs=t,e&&!(e instanceof C))throw new Error("Incorrect 'index' type");this._myIndex=e||m(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){c(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const e=[];for(let n=0,s=this._docs.length;n<s;n+=1){const i=this._docs[n];t(i,n)&&(this.removeAt(n),n-=1,s-=1,e.push(i))}return e}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:e=-1}={}){const{includeMatches:n,includeScore:s,shouldSort:u,sortFn:c,ignoreFieldNorm:o}=this.options;let h=i(t)?i(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return function(t,{ignoreFieldNorm:e=A.ignoreFieldNorm}){t.forEach(t=>{let n=1;t.matches.forEach(({key:t,norm:s,score:i})=>{const r=t?t.weight:null;n*=Math.pow(0===i&&r?Number.EPSILON:i,(r||1)*(e?1:s))}),t.score=n})}(h,{ignoreFieldNorm:o}),u&&h.sort(c),r(e)&&e>-1&&(h=h.slice(0,e)),function(t,e,{includeMatches:n=A.includeMatches,includeScore:s=A.includeScore}={}){const i=[];return n&&i.push(W),s&&i.push(z),t.map(t=>{const{idx:n}=t,s={item:e[n],refIndex:n};return i.length&&i.forEach(e=>{e(t,s)}),s})}(h,this._docs,{includeMatches:n,includeScore:s})}_searchStringList(t){const e=$(t,this.options),{records:n}=this._myIndex,s=[];return n.forEach(({v:t,i:n,n:i})=>{if(!c(t))return;const{isMatch:r,score:u,indices:o}=e.searchIn(t);r&&s.push({item:t,idx:n,matches:[{score:u,value:t,norm:i,indices:o}]})}),s}_searchLogical(t){const e=j(t,this.options),n=(t,e,s)=>{if(!t.children){const{keyId:n,searcher:i}=t,r=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(e,n),searcher:i});return r&&r.length?[{idx:s,item:e,matches:r}]:[]}const i=[];for(let r=0,u=t.children.length;r<u;r+=1){const u=t.children[r],c=n(u,e,s);if(c.length)i.push(...c);else if(t.operator===b)return[]}return i},s=this._myIndex.records,i={},r=[];return s.forEach(({$:t,i:s})=>{if(c(t)){let u=n(e,t,s);u.length&&(i[s]||(i[s]={idx:s,item:t,matches:[]},r.push(i[s])),u.forEach(({matches:t})=>{i[s].matches.push(...t)}))}}),r}_searchObjectList(t){const e=$(t,this.options),{keys:n,records:s}=this._myIndex,i=[];return s.forEach(({$:t,i:s})=>{if(!c(t))return;let r=[];n.forEach((n,s)=>{r.push(...this._findMatches({key:n,value:t[s],searcher:e}))}),r.length&&i.push({idx:s,item:t,matches:r})}),i}_findMatches({key:t,value:e,searcher:n}){if(!c(e))return[];let i=[];if(s(e))e.forEach(({v:e,i:s,n:r})=>{if(!c(e))return;const{isMatch:u,score:o,indices:h}=n.searchIn(e);u&&i.push({score:o,key:t,value:e,idx:s,norm:r,indices:h})});else{const{v:s,n:r}=e,{isMatch:u,score:c,indices:o}=n.searchIn(s);u&&i.push({score:c,key:t,value:s,norm:r,indices:o})}return i}}K.version="7.1.0",K.createIndex=m,K.parseIndex=function(t,{getFn:e=A.getFn,fieldNormWeight:n=A.fieldNormWeight}={}){const{keys:s,records:i}=t,r=new C({getFn:e,fieldNormWeight:n});return r.setKeys(s),r.setIndexRecords(i),r},K.config=A,K.parseQuery=j,function(...t){I.push(...t)}(class{constructor(t,{isCaseSensitive:e=A.isCaseSensitive,ignoreDiacritics:n=A.ignoreDiacritics,includeMatches:s=A.includeMatches,minMatchCharLength:i=A.minMatchCharLength,ignoreLocation:r=A.ignoreLocation,findAllMatches:u=A.findAllMatches,location:c=A.location,threshold:o=A.threshold,distance:h=A.distance}={}){this.query=null,this.options={isCaseSensitive:e,ignoreDiacritics:n,includeMatches:s,minMatchCharLength:i,findAllMatches:u,ignoreLocation:r,location:c,threshold:o,distance:h},t=e?t:t.toLowerCase(),t=n?D(t):t,this.pattern=t,this.query=function(t,e={}){return t.split("|").map(t=>{let n=t.trim().split(S).filter(t=>t&&!!t.trim()),s=[];for(let t=0,i=n.length;t<i;t+=1){const i=n[t];let r=!1,u=-1;for(;!r&&++u<v;){const t=_[u];let n=t.isMultiMatch(i);n&&(s.push(new t(n,e)),r=!0)}if(!r)for(u=-1;++u<v;){const t=_[u];let n=t.isSingleMatch(i);if(n){s.push(new t(n,e));break}}}return s})}(this.pattern,this.options)}static condition(t,e){return e.useExtendedSearch}searchIn(t){const e=this.query;if(!e)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:s,ignoreDiacritics:i}=this.options;t=s?t:t.toLowerCase(),t=i?D(t):t;let r=0,u=[],c=0;for(let s=0,i=e.length;s<i;s+=1){const i=e[s];u.length=0,r=0;for(let e=0,s=i.length;e<s;e+=1){const s=i[e],{isMatch:o,indices:h,score:a}=s.search(t);if(!o){c=0,r=0,u.length=0;break}if(r+=1,c+=a,n){const t=s.constructor.type;w.has(t)?u=[...u,...h]:u.push(h)}}if(r){let t={isMatch:!0,score:c/r};return n&&(t.indices=u),t}}return{isMatch:!1,score:1}}})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunksignalpilot_ai_internal=self.webpackChunksignalpilot_ai_internal||[]).push([[439],{45439(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.parse=r.enableErrorLogging=r.disableErrorLogging=r.setErrorLogger=void 0;let t=console.error;function e(n){if(void 0!==n){if(null===n)return null;if(""===n)return"";n=n.replace(/\\+$/,n=>n.length%2==0?n:n.slice(0,-1));try{return JSON.parse(n)}catch(r){const[t,i]=":"===n.trimLeft()[0]?s(n,r):s(n,r,h);if(e.lastParseReminding=i,e.onExtraToken&&i.length>0){const r=i.trimRight();e.lastParseReminding=r,r.length>0&&e.onExtraToken(n,t,r)}return t}}}function s(n,r,e){const s=o[n[0]]||e;if(!s)throw t(`no parser registered for ${JSON.stringify(n[0])}:`,{s:n}),r;return s(n,r)}function i(n,r,t){return'"'===n[0]?g(n):"'"===n[0]?b(n):h(n,0,t)}r.setErrorLogger=function(n){t=n},r.disableErrorLogging=function(){t=()=>{}},r.enableErrorLogging=function(){t=console.error},r.parse=e,function(n){n.onExtraToken=(n,r,e)=>{t("parsed json with extra tokens:",{text:n,data:r,reminding:e})}}(e=r.parse||(r.parse={}));const o={};function u(n){return n.trimLeft()}function c(n,r){return s(n=u(n),r)}o[" "]=c,o["\r"]=c,o["\n"]=c,o["\t"]=c,o["["]=function(n,r){const t=[];for(n=u(n=n.substr(1));n.length>0;){if("]"===n[0]){n=n.substr(1);break}const e=s(n,r,(n,r)=>h(n,0,[",","]"]));t.push(e[0]),","===(n=u(n=e[1]))[0]&&(n=u(n=n.substring(1)))}return[t,n]};for(const n of"0123456789.-".slice())o[n]=l;function l(n){for(let r=0;r<n.length;r++){const t=n[r];if(o[t]===l)continue;const e=n.substring(0,r);return n=n.substring(r),[f(e),n]}return[f(n),""]}function f(n){if("-"===n)return-0;const r=+n;return Number.isNaN(r)?n:r}function g(n){for(let r=1;r<n.length;r++){const t=n[r];if("\\"!==t){if('"'===t){const t=a(n.substring(0,r+1));return n=n.substring(r+1),[JSON.parse(t),n]}}else r++}return[JSON.parse(a(n)+'"'),""]}function a(n){return n.replace(/\n/g,"\\n").replace(/\t/g,"\\t").replace(/\r/g,"\\r")}function b(n){for(let r=1;r<n.length;r++){const t=n[r];if("\\"!==t){if("'"===t){const t=a(n.substring(0,r+1));return n=n.substring(r+1),[JSON.parse('"'+t.slice(1,-1)+'"'),n]}}else r++}return[JSON.parse('"'+a(n.slice(1))+'"'),""]}function h(n,r,t=[" "]){const e=Math.min(...t.map(r=>{const t=n.indexOf(r);return-1===t?n.length:t}));return[n.substring(0,e).trim(),n.substring(e)]}function p(n,r,e,s){for(let t=r.length;t>=1;t--)if(n.startsWith(r.slice(0,t)))return[e,n.slice(t)];{const e=JSON.stringify(n.slice(0,r.length));throw t(`unknown token starting with ${e}:`,{s:n}),s}}o['"']=g,o["'"]=b,o["{"]=function(n,r){const t={};for(n=u(n=n.substr(1));n.length>0;){if("}"===n[0]){n=n.substr(1);break}const e=i(n,0,[":","}"]),o=e[0];if(":"!==(n=u(n=e[1]))[0]){t[o]=void 0;break}if(0===(n=u(n=n.substr(1))).length){t[o]=void 0;break}const c=s(n,r);t[o]=c[0],","===(n=u(n=c[1]))[0]&&(n=u(n=n.substr(1)))}return[t,n]},o.t=function(n,r){return p(n,"true",!0,r)},o.f=function(n,r){return p(n,"false",!1,r)},o.n=function(n,r){return p(n,"null",null,r)}}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunksignalpilot_ai_internal=self.webpackChunksignalpilot_ai_internal||[]).push([[447],{2694(e,n,t){"use strict";var r=t(6925);function s(){}function o(){}o.resetWarningCache=s,e.exports=function(){function e(e,n,t,s,o,a){if(a!==r){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function n(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:o,resetWarningCache:s};return t.PropTypes=t,t}},5556(e,n,t){e.exports=t(2694)()},6925(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},55447(e,n,t){"use strict";t.r(n),t.d(n,{Accordion:()=>ce,AccordionBody:()=>ee,AccordionButton:()=>re,AccordionCollapse:()=>q,AccordionContext:()=>Z,AccordionHeader:()=>oe,AccordionItem:()=>ie,Alert:()=>Re,AlertHeading:()=>pe,AlertLink:()=>ve,Anchor:()=>Pe,Badge:()=>Te,Breadcrumb:()=>Ie,BreadcrumbItem:()=>$e,Button:()=>Ue.A,ButtonGroup:()=>Me,ButtonToolbar:()=>Le,Card:()=>dn,CardBody:()=>He,CardFooter:()=>_e,CardGroup:()=>fn,CardHeader:()=>Ge,CardImg:()=>Xe,CardImgOverlay:()=>Je,CardLink:()=>Qe,CardSubtitle:()=>tn,CardText:()=>sn,CardTitle:()=>ln,Carousel:()=>jn,CarouselCaption:()=>gn,CarouselItem:()=>Nn,CloseButton:()=>je,Col:()=>Pn,Collapse:()=>V,Container:()=>Tn,Dropdown:()=>An.default,DropdownButton:()=>Bn,DropdownDivider:()=>Ln.A,DropdownHeader:()=>Dn.A,DropdownItem:()=>Hn.A,DropdownItemText:()=>Kn.A,DropdownMenu:()=>Sn.A,DropdownToggle:()=>$n.A,Fade:()=>ye,Figure:()=>Jn,FigureCaption:()=>Xn,FigureImage:()=>Gn,FloatingLabel:()=>jt,Form:()=>Pt,FormCheck:()=>it,FormControl:()=>ct,FormFloating:()=>ut,FormGroup:()=>mt,FormLabel:()=>xt,FormSelect:()=>gt,FormText:()=>Nt,Image:()=>Vn,InputGroup:()=>St,ListGroup:()=>tr,ListGroupItem:()=>er,Modal:()=>es,ModalBody:()=>Br,ModalDialog:()=>Hr,ModalFooter:()=>_r,ModalHeader:()=>Gr,ModalTitle:()=>qr,Nav:()=>is,NavDropdown:()=>Ds,NavItem:()=>rs,NavLink:()=>os,Navbar:()=>Bs,NavbarBrand:()=>cs,NavbarCollapse:()=>us,NavbarOffcanvas:()=>Is,NavbarText:()=>Fs,NavbarToggle:()=>ms,Offcanvas:()=>$s,OffcanvasBody:()=>ys,OffcanvasHeader:()=>js,OffcanvasTitle:()=>Ps,OffcanvasToggling:()=>ws,Overlay:()=>oo,OverlayTrigger:()=>io,PageItem:()=>co,Pagination:()=>bo,Placeholder:()=>wo,PlaceholderButton:()=>No,Popover:()=>no,PopoverBody:()=>Js,PopoverHeader:()=>Xs,ProgressBar:()=>Ro,Ratio:()=>ko,Row:()=>Ao,SSRProvider:()=>Bo,Spinner:()=>So,SplitButton:()=>Fo,Stack:()=>Ho,Tab:()=>aa,TabContainer:()=>Qo,TabContent:()=>na,TabPane:()=>ra,Table:()=>la,Tabs:()=>fa,ThemeProvider:()=>l.Ay,Toast:()=>Ea,ToastBody:()=>ya,ToastContainer:()=>ja,ToastHeader:()=>ba,ToggleButton:()=>Pa,ToggleButtonGroup:()=>$a,Tooltip:()=>ro,useAccordionButton:()=>ne});var r=t(32485),s=t.n(r),o=t(93345),a=t.n(o),i=t(93647),l=t(36519),c=t(91625);var d=/([A-Z])/g,u=/^ms-/;function f(e){return function(e){return e.replace(d,"-$1").toLowerCase()}(e).replace(u,"-ms-")}var m=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;const p=function(e,n){var t="",r="";if("string"==typeof n)return e.style.getPropertyValue(f(n))||function(e,n){return function(e){var n=(0,c.A)(e);return n&&n.defaultView||window}(e).getComputedStyle(e,n)}(e).getPropertyValue(f(n));Object.keys(n).forEach(function(s){var o=n[s];o||0===o?function(e){return!(!e||!m.test(e))}(s)?r+=s+"("+o+") ":t+=f(s)+": "+o+";":e.style.removeProperty(f(s))}),r&&(t+="transform: "+r+";"),e.style.cssText+=";"+t};var x=t(40644);function h(e,n){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},h(e,n)}var v=t(7628),b=t.n(v);const g=a().createContext(null);var y="unmounted",N="exited",E="entering",w="entered",C="exiting",j=function(e){var n,t;function r(n,t){var r;r=e.call(this,n,t)||this;var s,o=t&&!t.isMounting?n.enter:n.appear;return r.appearStatus=null,n.in?o?(s=N,r.appearStatus=E):s=w:s=n.unmountOnExit||n.mountOnEnter?y:N,r.state={status:s},r.nextCallback=null,r}t=e,(n=r).prototype=Object.create(t.prototype),n.prototype.constructor=n,h(n,t),r.getDerivedStateFromProps=function(e,n){return e.in&&n.status===y?{status:N}:null};var s=r.prototype;return s.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},s.componentDidUpdate=function(e){var n=null;if(e!==this.props){var t=this.state.status;this.props.in?t!==E&&t!==w&&(n=E):t!==E&&t!==w||(n=C)}this.updateStatus(!1,n)},s.componentWillUnmount=function(){this.cancelNextCallback()},s.getTimeouts=function(){var e,n,t,r=this.props.timeout;return e=n=t=r,null!=r&&"number"!=typeof r&&(e=r.exit,n=r.enter,t=void 0!==r.appear?r.appear:n),{exit:e,enter:n,appear:t}},s.updateStatus=function(e,n){if(void 0===e&&(e=!1),null!==n)if(this.cancelNextCallback(),n===E){if(this.props.unmountOnExit||this.props.mountOnEnter){var t=this.props.nodeRef?this.props.nodeRef.current:b().findDOMNode(this);t&&function(e){e.scrollTop}(t)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===N&&this.setState({status:y})},s.performEnter=function(e){var n=this,t=this.props.enter,r=this.context?this.context.isMounting:e,s=this.props.nodeRef?[r]:[b().findDOMNode(this),r],o=s[0],a=s[1],i=this.getTimeouts(),l=r?i.appear:i.enter;e||t?(this.props.onEnter(o,a),this.safeSetState({status:E},function(){n.props.onEntering(o,a),n.onTransitionEnd(l,function(){n.safeSetState({status:w},function(){n.props.onEntered(o,a)})})})):this.safeSetState({status:w},function(){n.props.onEntered(o)})},s.performExit=function(){var e=this,n=this.props.exit,t=this.getTimeouts(),r=this.props.nodeRef?void 0:b().findDOMNode(this);n?(this.props.onExit(r),this.safeSetState({status:C},function(){e.props.onExiting(r),e.onTransitionEnd(t.exit,function(){e.safeSetState({status:N},function(){e.props.onExited(r)})})})):this.safeSetState({status:N},function(){e.props.onExited(r)})},s.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},s.safeSetState=function(e,n){n=this.setNextCallback(n),this.setState(e,n)},s.setNextCallback=function(e){var n=this,t=!0;return this.nextCallback=function(r){t&&(t=!1,n.nextCallback=null,e(r))},this.nextCallback.cancel=function(){t=!1},this.nextCallback},s.onTransitionEnd=function(e,n){this.setNextCallback(n);var t=this.props.nodeRef?this.props.nodeRef.current:b().findDOMNode(this),r=null==e&&!this.props.addEndListener;if(t&&!r){if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[t,this.nextCallback],o=s[0],a=s[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},s.render=function(){var e=this.state.status;if(e===y)return null;var n=this.props,t=n.children,r=(n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef,(0,x.A)(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return a().createElement(g.Provider,{value:null},"function"==typeof t?t(e,r):a().cloneElement(a().Children.only(t),r))},r}(a().Component);function O(){}j.contextType=g,j.propTypes={},j.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:O,onEntering:O,onEntered:O,onExit:O,onExiting:O,onExited:O},j.UNMOUNTED=y,j.EXITED=N,j.ENTERING=E,j.ENTERED=w,j.EXITING=C;const R=j;function P(e){return"Escape"===e.code||27===e.keyCode}function k(e){if(!e||"function"==typeof e)return null;const{major:n}=function(){const e=o.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}();return n>=19?e.props.ref:e.ref}var T=t(1284);function A(e,n,t,r){var s,o;null==t&&(o=-1===(s=p(e,"transitionDuration")||"").indexOf("ms")?1e3:1,t=parseFloat(s)*o||0);var a=function(e,n,t){void 0===t&&(t=5);var r=!1,s=setTimeout(function(){r||function(e,n,t,r){if(void 0===t&&(t=!1),void 0===r&&(r=!0),e){var s=document.createEvent("HTMLEvents");s.initEvent("transitionend",t,r),e.dispatchEvent(s)}}(e,0,!0)},n+t),o=(0,T.A)(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(s),o()}}(e,t,r),i=(0,T.A)(e,"transitionend",n);return function(){a(),i()}}function $(e,n){const t=p(e,n)||"",r=-1===t.indexOf("ms")?1e3:1;return parseFloat(t)*r}function S(e,n){const t=$(e,"transitionDuration"),r=$(e,"transitionDelay"),s=A(e,t=>{t.target===e&&(s(),n(t))},t+r)}const I=function(...e){return e.filter(e=>null!=e).reduce((e,n)=>{if("function"!=typeof n)throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?n:function(...t){e.apply(this,t),n.apply(this,t)}},null)};function U(e){e.offsetHeight}var F=t(43804);function M(e){return e&&"setState"in e?b().findDOMNode(e):null!=e?e:null}var B=t(74848);const L=a().forwardRef(({onEnter:e,onEntering:n,onEntered:t,onExit:r,onExiting:s,onExited:i,addEndListener:l,children:c,childRef:d,...u},f)=>{const m=(0,o.useRef)(null),p=(0,F.A)(m,d),x=e=>{p(M(e))},h=e=>n=>{e&&m.current&&e(m.current,n)},v=(0,o.useCallback)(h(e),[e]),b=(0,o.useCallback)(h(n),[n]),g=(0,o.useCallback)(h(t),[t]),y=(0,o.useCallback)(h(r),[r]),N=(0,o.useCallback)(h(s),[s]),E=(0,o.useCallback)(h(i),[i]),w=(0,o.useCallback)(h(l),[l]);return(0,B.jsx)(R,{ref:f,...u,onEnter:v,onEntered:g,onEntering:b,onExit:y,onExited:E,onExiting:N,addEndListener:w,nodeRef:m,children:"function"==typeof c?(e,n)=>c(e,{...n,ref:x}):a().cloneElement(c,{ref:x})})});L.displayName="TransitionWrapper";const D=L,H={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function K(e,n){const t=n[`offset${e[0].toUpperCase()}${e.slice(1)}`],r=H[e];return t+parseInt(p(n,r[0]),10)+parseInt(p(n,r[1]),10)}const _={[N]:"collapse",[C]:"collapsing",[E]:"collapsing",[w]:"collapse show"},z=a().forwardRef(({onEnter:e,onEntering:n,onEntered:t,onExit:r,onExiting:i,className:l,children:c,dimension:d="height",in:u=!1,timeout:f=300,mountOnEnter:m=!1,unmountOnExit:p=!1,appear:x=!1,getDimensionValue:h=K,...v},b)=>{const g="function"==typeof d?d():d,y=(0,o.useMemo)(()=>I(e=>{e.style[g]="0"},e),[g,e]),N=(0,o.useMemo)(()=>I(e=>{const n=`scroll${g[0].toUpperCase()}${g.slice(1)}`;e.style[g]=`${e[n]}px`},n),[g,n]),E=(0,o.useMemo)(()=>I(e=>{e.style[g]=null},t),[g,t]),w=(0,o.useMemo)(()=>I(e=>{e.style[g]=`${h(g,e)}px`,U(e)},r),[r,h,g]),C=(0,o.useMemo)(()=>I(e=>{e.style[g]=null},i),[g,i]);return(0,B.jsx)(D,{ref:b,addEndListener:S,...v,"aria-expanded":v.role?u:null,onEnter:y,onEntering:N,onEntered:E,onExit:w,onExiting:C,childRef:k(c),in:u,timeout:f,mountOnEnter:m,unmountOnExit:p,appear:x,children:(e,n)=>a().cloneElement(c,{...n,className:s()(l,c.props.className,_[e],"width"===g&&"collapse-horizontal")})})});z.displayName="Collapse";const V=z;function W(e,n){return Array.isArray(e)?e.includes(n):e===n}const G=o.createContext({});G.displayName="AccordionContext";const Z=G,X=o.forwardRef(({as:e="div",bsPrefix:n,className:t,children:r,eventKey:a,...i},c)=>{const{activeEventKey:d}=(0,o.useContext)(Z);return n=(0,l.oU)(n,"accordion-collapse"),(0,B.jsx)(V,{ref:c,in:W(d,a),...i,className:s()(t,n),children:(0,B.jsx)(e,{children:o.Children.only(r)})})});X.displayName="AccordionCollapse";const q=X,J=o.createContext({eventKey:""});J.displayName="AccordionItemContext";const Y=J,Q=o.forwardRef(({as:e="div",bsPrefix:n,className:t,onEnter:r,onEntering:a,onEntered:i,onExit:c,onExiting:d,onExited:u,...f},m)=>{n=(0,l.oU)(n,"accordion-body");const{eventKey:p}=(0,o.useContext)(Y);return(0,B.jsx)(q,{eventKey:p,onEnter:r,onEntering:a,onEntered:i,onExit:c,onExiting:d,onExited:u,children:(0,B.jsx)(e,{ref:m,...f,className:s()(t,n)})})});Q.displayName="AccordionBody";const ee=Q;function ne(e,n){const{activeEventKey:t,onSelect:r,alwaysOpen:s}=(0,o.useContext)(Z);return o=>{let a=e===t?null:e;s&&(a=Array.isArray(t)?t.includes(e)?t.filter(n=>n!==e):[...t,e]:[e]),null==r||r(a,o),null==n||n(o)}}const te=o.forwardRef(({as:e="button",bsPrefix:n,className:t,onClick:r,...a},i)=>{n=(0,l.oU)(n,"accordion-button");const{eventKey:c}=(0,o.useContext)(Y),d=ne(c,r),{activeEventKey:u}=(0,o.useContext)(Z);return"button"===e&&(a.type="button"),(0,B.jsx)(e,{ref:i,onClick:d,...a,"aria-expanded":Array.isArray(u)?u.includes(c):c===u,className:s()(t,n,!W(u,c)&&"collapsed")})});te.displayName="AccordionButton";const re=te,se=o.forwardRef(({as:e="h2","aria-controls":n,bsPrefix:t,className:r,children:o,onClick:a,...i},c)=>(t=(0,l.oU)(t,"accordion-header"),(0,B.jsx)(e,{ref:c,...i,className:s()(r,t),children:(0,B.jsx)(re,{onClick:a,"aria-controls":n,children:o})})));se.displayName="AccordionHeader";const oe=se,ae=o.forwardRef(({as:e="div",bsPrefix:n,className:t,eventKey:r,...a},i)=>{n=(0,l.oU)(n,"accordion-item");const c=(0,o.useMemo)(()=>({eventKey:r}),[r]);return(0,B.jsx)(Y.Provider,{value:c,children:(0,B.jsx)(e,{ref:i,...a,className:s()(t,n)})})});ae.displayName="AccordionItem";const ie=ae,le=o.forwardRef((e,n)=>{const{as:t="div",activeKey:r,bsPrefix:a,className:c,onSelect:d,flush:u,alwaysOpen:f,...m}=(0,i.Zw)(e,{activeKey:"onSelect"}),p=(0,l.oU)(a,"accordion"),x=(0,o.useMemo)(()=>({activeEventKey:r,onSelect:d,alwaysOpen:f}),[r,d,f]);return(0,B.jsx)(Z.Provider,{value:x,children:(0,B.jsx)(t,{ref:n,...m,className:s()(c,p,u&&`${p}-flush`)})})});le.displayName="Accordion";const ce=Object.assign(le,{Button:re,Collapse:q,Item:ie,Header:oe,Body:ee});var de=t(17895);const ue=e=>o.forwardRef((n,t)=>(0,B.jsx)("div",{...n,ref:t,className:s()(n.className,e)})),fe=ue("h4");fe.displayName="DivStyledAsH4";const me=o.forwardRef(({className:e,bsPrefix:n,as:t=fe,...r},o)=>(n=(0,l.oU)(n,"alert-heading"),(0,B.jsx)(t,{ref:o,className:s()(e,n),...r})));me.displayName="AlertHeading";const pe=me;var xe=t(19300);const he=o.forwardRef(({className:e,bsPrefix:n,as:t=xe.A,...r},o)=>(n=(0,l.oU)(n,"alert-link"),(0,B.jsx)(t,{ref:o,className:s()(e,n),...r})));he.displayName="AlertLink";const ve=he,be={[E]:"show",[w]:"show"},ge=o.forwardRef(({className:e,children:n,transitionClasses:t={},onEnter:r,...a},i)=>{const l={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...a},c=(0,o.useCallback)((e,n)=>{U(e),null==r||r(e,n)},[r]);return(0,B.jsx)(D,{ref:i,addEndListener:S,...l,onEnter:c,childRef:k(n),children:(r,a)=>o.cloneElement(n,{...a,className:s()("fade",e,n.props.className,be[r],t[r])})})});ge.displayName="Fade";const ye=ge;var Ne=t(5556),Ee=t.n(Ne);const we={"aria-label":Ee().string,onClick:Ee().func,variant:Ee().oneOf(["white"])},Ce=o.forwardRef(({className:e,variant:n,"aria-label":t="Close",...r},o)=>(0,B.jsx)("button",{ref:o,type:"button",className:s()("btn-close",n&&`btn-close-${n}`,e),"aria-label":t,...r}));Ce.displayName="CloseButton",Ce.propTypes=we;const je=Ce,Oe=o.forwardRef((e,n)=>{const{bsPrefix:t,show:r=!0,closeLabel:o="Close alert",closeVariant:a,className:c,children:d,variant:u="primary",onClose:f,dismissible:m,transition:p=ye,...x}=(0,i.Zw)(e,{show:"onClose"}),h=(0,l.oU)(t,"alert"),v=(0,de.A)(e=>{f&&f(!1,e)}),b=!0===p?ye:p,g=(0,B.jsxs)("div",{role:"alert",...b?void 0:x,ref:n,className:s()(c,h,u&&`${h}-${u}`,m&&`${h}-dismissible`),children:[m&&(0,B.jsx)(je,{onClick:v,"aria-label":o,variant:a}),d]});return b?(0,B.jsx)(b,{unmountOnExit:!0,...x,ref:void 0,in:r,children:g}):r?g:null});Oe.displayName="Alert";const Re=Object.assign(Oe,{Link:ve,Heading:pe}),Pe=xe.A,ke=o.forwardRef(({bsPrefix:e,bg:n="primary",pill:t=!1,text:r,className:o,as:a="span",...i},c)=>{const d=(0,l.oU)(e,"badge");return(0,B.jsx)(a,{ref:c,...i,className:s()(o,d,t&&"rounded-pill",r&&`text-${r}`,n&&`bg-${n}`)})});ke.displayName="Badge";const Te=ke,Ae=o.forwardRef(({bsPrefix:e,active:n=!1,children:t,className:r,as:o="li",linkAs:a=xe.A,linkProps:i={},href:c,title:d,target:u,...f},m)=>{const p=(0,l.oU)(e,"breadcrumb-item");return(0,B.jsx)(o,{ref:m,...f,className:s()(p,r,{active:n}),"aria-current":n?"page":void 0,children:n?t:(0,B.jsx)(a,{...i,href:c,title:d,target:u,children:t})})});Ae.displayName="BreadcrumbItem";const $e=Ae,Se=o.forwardRef(({bsPrefix:e,className:n,listProps:t={},children:r,label:o="breadcrumb",as:a="nav",...i},c)=>{const d=(0,l.oU)(e,"breadcrumb");return(0,B.jsx)(a,{"aria-label":o,className:n,ref:c,...i,children:(0,B.jsx)("ol",{...t,className:s()(d,null==t?void 0:t.className),children:r})})});Se.displayName="Breadcrumb";const Ie=Object.assign(Se,{Item:$e});var Ue=t(25615);const Fe=o.forwardRef(({bsPrefix:e,size:n,vertical:t=!1,className:r,role:o="group",as:a="div",...i},c)=>{const d=(0,l.oU)(e,"btn-group");let u=d;return t&&(u=`${d}-vertical`),(0,B.jsx)(a,{...i,ref:c,role:o,className:s()(r,u,n&&`${d}-${n}`)})});Fe.displayName="ButtonGroup";const Me=Fe,Be=o.forwardRef(({bsPrefix:e,className:n,role:t="toolbar",...r},o)=>{const a=(0,l.oU)(e,"btn-toolbar");return(0,B.jsx)("div",{...r,ref:o,className:s()(n,a),role:t})});Be.displayName="ButtonToolbar";const Le=Be,De=o.forwardRef(({className:e,bsPrefix:n,as:t="div",...r},o)=>(n=(0,l.oU)(n,"card-body"),(0,B.jsx)(t,{ref:o,className:s()(e,n),...r})));De.displayName="CardBody";const He=De,Ke=o.forwardRef(({className:e,bsPrefix:n,as:t="div",...r},o)=>(n=(0,l.oU)(n,"card-footer"),(0,B.jsx)(t,{ref:o,className:s()(e,n),...r})));Ke.displayName="CardFooter";const _e=Ke,ze=o.createContext(null);ze.displayName="CardHeaderContext";const Ve=ze,We=o.forwardRef(({bsPrefix:e,className:n,as:t="div",...r},a)=>{const i=(0,l.oU)(e,"card-header"),c=(0,o.useMemo)(()=>({cardHeaderBsPrefix:i}),[i]);return(0,B.jsx)(Ve.Provider,{value:c,children:(0,B.jsx)(t,{ref:a,...r,className:s()(n,i)})})});We.displayName="CardHeader";const Ge=We,Ze=o.forwardRef(({bsPrefix:e,className:n,variant:t,as:r="img",...o},a)=>{const i=(0,l.oU)(e,"card-img");return(0,B.jsx)(r,{ref:a,className:s()(t?`${i}-${t}`:i,n),...o})});Ze.displayName="CardImg";const Xe=Ze,qe=o.forwardRef(({className:e,bsPrefix:n,as:t="div",...r},o)=>(n=(0,l.oU)(n,"card-img-overlay"),(0,B.jsx)(t,{ref:o,className:s()(e,n),...r})));qe.displayName="CardImgOverlay";const Je=qe,Ye=o.forwardRef(({className:e,bsPrefix:n,as:t="a",...r},o)=>(n=(0,l.oU)(n,"card-link"),(0,B.jsx)(t,{ref:o,className:s()(e,n),...r})));Ye.displayName="CardLink";const Qe=Ye,en=ue("h6"),nn=o.forwardRef(({className:e,bsPrefix:n,as:t=en,...r},o)=>(n=(0,l.oU)(n,"card-subtitle"),(0,B.jsx)(t,{ref:o,className:s()(e,n),...r})));nn.displayName="CardSubtitle";const tn=nn,rn=o.forwardRef(({className:e,bsPrefix:n,as:t="p",...r},o)=>(n=(0,l.oU)(n,"card-text"),(0,B.jsx)(t,{ref:o,className:s()(e,n),...r})));rn.displayName="CardText";const sn=rn,on=ue("h5"),an=o.forwardRef(({className:e,bsPrefix:n,as:t=on,...r},o)=>(n=(0,l.oU)(n,"card-title"),(0,B.jsx)(t,{ref:o,className:s()(e,n),...r})));an.displayName="CardTitle";const ln=an,cn=o.forwardRef(({bsPrefix:e,className:n,bg:t,text:r,border:o,body:a=!1,children:i,as:c="div",...d},u)=>{const f=(0,l.oU)(e,"card");return(0,B.jsx)(c,{ref:u,...d,className:s()(n,f,t&&`bg-${t}`,r&&`text-${r}`,o&&`border-${o}`),children:a?(0,B.jsx)(He,{children:i}):i})});cn.displayName="Card";const dn=Object.assign(cn,{Img:Xe,Title:ln,Subtitle:tn,Body:He,Link:Qe,Text:sn,Header:Ge,Footer:_e,ImgOverlay:Je}),un=o.forwardRef(({className:e,bsPrefix:n,as:t="div",...r},o)=>(n=(0,l.oU)(n,"card-group"),(0,B.jsx)(t,{ref:o,className:s()(e,n),...r})));un.displayName="CardGroup";const fn=un;var mn=t(23713);function pn(e){const n=function(e){const n=(0,o.useRef)(e);return n.current=e,n}(e);(0,o.useEffect)(()=>()=>n.current(),[])}const xn=2**31-1;function hn(e,n,t){const r=t-Date.now();e.current=r<=xn?setTimeout(n,r):setTimeout(()=>hn(e,n,t),xn)}function vn(){const e=function(){const e=(0,o.useRef)(!0),n=(0,o.useRef)(()=>e.current);return(0,o.useEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),n.current}(),n=(0,o.useRef)();return pn(()=>clearTimeout(n.current)),(0,o.useMemo)(()=>{const t=()=>clearTimeout(n.current);return{set:function(r,s=0){e()&&(t(),s<=xn?n.current=setTimeout(r,s):hn(n,r,Date.now()+s))},clear:t,handleRef:n}},[])}const bn=o.forwardRef(({className:e,bsPrefix:n,as:t="div",...r},o)=>(n=(0,l.oU)(n,"carousel-caption"),(0,B.jsx)(t,{ref:o,className:s()(e,n),...r})));bn.displayName="CarouselCaption";const gn=bn,yn=o.forwardRef(({as:e="div",bsPrefix:n,className:t,...r},o)=>{const a=s()(t,(0,l.oU)(n,"carousel-item"));return(0,B.jsx)(e,{ref:o,...r,className:a})});yn.displayName="CarouselItem";const Nn=yn;function En(e,n){let t=0;return o.Children.map(e,e=>o.isValidElement(e)?n(e,t++):e)}function wn(e,n){let t=0;o.Children.forEach(e,e=>{o.isValidElement(e)&&n(e,t++)})}const Cn=o.forwardRef(({defaultActiveIndex:e=0,...n},t)=>{const{as:r="div",bsPrefix:a,slide:c=!0,fade:d=!1,controls:u=!0,indicators:f=!0,indicatorLabels:m=[],activeIndex:p,onSelect:x,onSlide:h,onSlid:v,interval:b=5e3,keyboard:g=!0,onKeyDown:y,pause:N="hover",onMouseOver:E,onMouseOut:w,wrap:C=!0,touch:j=!0,onTouchStart:O,onTouchMove:R,onTouchEnd:P,prevIcon:k=(0,B.jsx)("span",{"aria-hidden":"true",className:"carousel-control-prev-icon"}),prevLabel:T="Previous",nextIcon:A=(0,B.jsx)("span",{"aria-hidden":"true",className:"carousel-control-next-icon"}),nextLabel:$="Next",variant:I,className:F,children:M,...L}=(0,i.Zw)({defaultActiveIndex:e,...n},{activeIndex:"onSelect"}),H=(0,l.oU)(a,"carousel"),K=(0,l.Wz)(),_=(0,o.useRef)(null),[z,V]=(0,o.useState)("next"),[W,G]=(0,o.useState)(!1),[Z,X]=(0,o.useState)(!1),[q,J]=(0,o.useState)(p||0);(0,o.useEffect)(()=>{Z||p===q||(_.current?V(_.current):V((p||0)>q?"next":"prev"),c&&X(!0),J(p||0))},[p,Z,q,c]),(0,o.useEffect)(()=>{_.current&&(_.current=null)});let Y,Q=0;wn(M,(e,n)=>{++Q,n===p&&(Y=e.props.interval)});const ee=(0,mn.A)(Y),ne=(0,o.useCallback)(e=>{if(Z)return;let n=q-1;if(n<0){if(!C)return;n=Q-1}_.current="prev",null==x||x(n,e)},[Z,q,x,C,Q]),te=(0,de.A)(e=>{if(Z)return;let n=q+1;if(n>=Q){if(!C)return;n=0}_.current="next",null==x||x(n,e)}),re=(0,o.useRef)();(0,o.useImperativeHandle)(t,()=>({element:re.current,prev:ne,next:te}));const se=(0,de.A)(()=>{!document.hidden&&function(e){if(!(e&&e.style&&e.parentNode&&e.parentNode.style))return!1;const n=getComputedStyle(e);return"none"!==n.display&&"hidden"!==n.visibility&&"none"!==getComputedStyle(e.parentNode).display}(re.current)&&(K?ne():te())}),oe="next"===z?"start":"end";!function(e,n){const t=(0,o.useRef)(!0);(0,o.useEffect)(()=>{if(!t.current)return e();t.current=!1},n)}(()=>{c||(null==h||h(q,oe),null==v||v(q,oe))},[q]);const ae=`${H}-item-${z}`,ie=`${H}-item-${oe}`,le=(0,o.useCallback)(e=>{U(e),null==h||h(q,oe)},[h,q,oe]),ce=(0,o.useCallback)(()=>{X(!1),null==v||v(q,oe)},[v,q,oe]),ue=(0,o.useCallback)(e=>{if(g&&!/input|textarea/i.test(e.target.tagName))switch(e.key){case"ArrowLeft":return e.preventDefault(),void(K?te(e):ne(e));case"ArrowRight":return e.preventDefault(),void(K?ne(e):te(e))}null==y||y(e)},[g,y,ne,te,K]),fe=(0,o.useCallback)(e=>{"hover"===N&&G(!0),null==E||E(e)},[N,E]),me=(0,o.useCallback)(e=>{G(!1),null==w||w(e)},[w]),pe=(0,o.useRef)(0),he=(0,o.useRef)(0),ve=vn(),be=(0,o.useCallback)(e=>{pe.current=e.touches[0].clientX,he.current=0,"hover"===N&&G(!0),null==O||O(e)},[N,O]),ge=(0,o.useCallback)(e=>{e.touches&&e.touches.length>1?he.current=0:he.current=e.touches[0].clientX-pe.current,null==R||R(e)},[R]),ye=(0,o.useCallback)(e=>{if(j){const n=he.current;Math.abs(n)>40&&(n>0?ne(e):te(e))}"hover"===N&&ve.set(()=>{G(!1)},b||void 0),null==P||P(e)},[j,N,ne,te,ve,b,P]),Ne=null!=b&&!W&&!Z,Ee=(0,o.useRef)();(0,o.useEffect)(()=>{var e,n;if(!Ne)return;const t=K?ne:te;return Ee.current=window.setInterval(document.visibilityState?se:t,null!=(e=null!=(n=ee.current)?n:b)?e:void 0),()=>{null!==Ee.current&&clearInterval(Ee.current)}},[Ne,ne,te,ee,b,se,K]);const we=(0,o.useMemo)(()=>f&&Array.from({length:Q},(e,n)=>e=>{null==x||x(n,e)}),[f,Q,x]);return(0,B.jsxs)(r,{ref:re,...L,onKeyDown:ue,onMouseOver:fe,onMouseOut:me,onTouchStart:be,onTouchMove:ge,onTouchEnd:ye,className:s()(F,H,c&&"slide",d&&`${H}-fade`,I&&`${H}-${I}`),children:[f&&(0,B.jsx)("div",{className:`${H}-indicators`,children:En(M,(e,n)=>(0,B.jsx)("button",{type:"button","data-bs-target":"","aria-label":null!=m&&m.length?m[n]:`Slide ${n+1}`,className:n===q?"active":void 0,onClick:we?we[n]:void 0,"aria-current":n===q},n))}),(0,B.jsx)("div",{className:`${H}-inner`,children:En(M,(e,n)=>{const t=n===q;return c?(0,B.jsx)(D,{in:t,onEnter:t?le:void 0,onEntered:t?ce:void 0,addEndListener:S,children:(n,r)=>o.cloneElement(e,{...r,className:s()(e.props.className,t&&"entered"!==n&&ae,("entered"===n||"exiting"===n)&&"active",("entering"===n||"exiting"===n)&&ie)})}):o.cloneElement(e,{className:s()(e.props.className,t&&"active")})})}),u&&(0,B.jsxs)(B.Fragment,{children:[(C||0!==p)&&(0,B.jsxs)(xe.A,{className:`${H}-control-prev`,onClick:ne,children:[k,T&&(0,B.jsx)("span",{className:"visually-hidden",children:T})]}),(C||p!==Q-1)&&(0,B.jsxs)(xe.A,{className:`${H}-control-next`,onClick:te,children:[A,$&&(0,B.jsx)("span",{className:"visually-hidden",children:$})]})]})]})});Cn.displayName="Carousel";const jn=Object.assign(Cn,{Caption:gn,Item:Nn});function On({as:e,bsPrefix:n,className:t,...r}){n=(0,l.oU)(n,"col");const o=(0,l.gy)(),a=(0,l.Jm)(),i=[],c=[];return o.forEach(e=>{const t=r[e];let s,o,l;delete r[e],"object"==typeof t&&null!=t?({span:s,offset:o,order:l}=t):s=t;const d=e!==a?`-${e}`:"";s&&i.push(!0===s?`${n}${d}`:`${n}${d}-${s}`),null!=l&&c.push(`order${d}-${l}`),null!=o&&c.push(`offset${d}-${o}`)}),[{...r,className:s()(t,...i,...c)},{as:e,bsPrefix:n,spans:i}]}const Rn=o.forwardRef((e,n)=>{const[{className:t,...r},{as:o="div",bsPrefix:a,spans:i}]=On(e);return(0,B.jsx)(o,{...r,ref:n,className:s()(t,!i.length&&a)})});Rn.displayName="Col";const Pn=Rn,kn=o.forwardRef(({bsPrefix:e,fluid:n=!1,as:t="div",className:r,...o},a)=>{const i=(0,l.oU)(e,"container"),c="string"==typeof n?`-${n}`:"-fluid";return(0,B.jsx)(t,{ref:a,...o,className:s()(r,n?`${i}${c}`:i)})});kn.displayName="Container";const Tn=kn;var An=t(62956),$n=t(69826),Sn=t(63545);const In=Ee().oneOf(["start","end"]),Un=Ee().oneOfType([In,Ee().shape({sm:In}),Ee().shape({md:In}),Ee().shape({lg:In}),Ee().shape({xl:In}),Ee().shape({xxl:In}),Ee().object]),Fn={id:Ee().string,href:Ee().string,onClick:Ee().func,title:Ee().node.isRequired,disabled:Ee().bool,align:Un,menuRole:Ee().string,renderMenuOnMount:Ee().bool,rootCloseEvent:Ee().string,menuVariant:Ee().oneOf(["dark"]),flip:Ee().bool,bsPrefix:Ee().string,variant:Ee().string,size:Ee().string},Mn=o.forwardRef(({title:e,children:n,bsPrefix:t,rootCloseEvent:r,variant:s,size:o,menuRole:a,renderMenuOnMount:i,disabled:l,href:c,id:d,menuVariant:u,flip:f,...m},p)=>(0,B.jsxs)(An.default,{ref:p,...m,children:[(0,B.jsx)($n.A,{id:d,href:c,size:o,variant:s,disabled:l,childBsPrefix:t,children:e}),(0,B.jsx)(Sn.A,{role:a,renderOnMount:i,rootCloseEvent:r,variant:u,flip:f,children:n})]}));Mn.displayName="DropdownButton",Mn.propTypes=Fn;const Bn=Mn;var Ln=t(36013),Dn=t(50859),Hn=t(93261),Kn=t(93810);const _n={bsPrefix:Ee().string,fluid:Ee().bool,rounded:Ee().bool,roundedCircle:Ee().bool,thumbnail:Ee().bool},zn=o.forwardRef(({bsPrefix:e,className:n,fluid:t=!1,rounded:r=!1,roundedCircle:o=!1,thumbnail:a=!1,...i},c)=>(e=(0,l.oU)(e,"img"),(0,B.jsx)("img",{ref:c,...i,className:s()(n,t&&`${e}-fluid`,r&&"rounded",o&&"rounded-circle",a&&`${e}-thumbnail`)})));zn.displayName="Image";const Vn=zn,Wn=o.forwardRef(({className:e,fluid:n=!0,...t},r)=>(0,B.jsx)(Vn,{ref:r,...t,fluid:n,className:s()(e,"figure-img")}));Wn.displayName="FigureImage",Wn.propTypes=_n;const Gn=Wn,Zn=o.forwardRef(({className:e,bsPrefix:n,as:t="figcaption",...r},o)=>(n=(0,l.oU)(n,"figure-caption"),(0,B.jsx)(t,{ref:o,className:s()(e,n),...r})));Zn.displayName="FigureCaption";const Xn=Zn,qn=o.forwardRef(({className:e,bsPrefix:n,as:t="figure",...r},o)=>(n=(0,l.oU)(n,"figure"),(0,B.jsx)(t,{ref:o,className:s()(e,n),...r})));qn.displayName="Figure";const Jn=Object.assign(qn,{Image:Gn,Caption:Xn}),Yn={type:Ee().string,tooltip:Ee().bool,as:Ee().elementType},Qn=o.forwardRef(({as:e="div",className:n,type:t="valid",tooltip:r=!1,...o},a)=>(0,B.jsx)(e,{...o,ref:a,className:s()(n,`${t}-${r?"tooltip":"feedback"}`)}));Qn.displayName="Feedback",Qn.propTypes=Yn;const et=Qn,nt=o.createContext({}),tt=o.forwardRef(({id:e,bsPrefix:n,className:t,type:r="checkbox",isValid:a=!1,isInvalid:i=!1,as:c="input",...d},u)=>{const{controlId:f}=(0,o.useContext)(nt);return n=(0,l.oU)(n,"form-check-input"),(0,B.jsx)(c,{...d,ref:u,type:r,id:e||f,className:s()(t,n,a&&"is-valid",i&&"is-invalid")})});tt.displayName="FormCheckInput";const rt=tt,st=o.forwardRef(({bsPrefix:e,className:n,htmlFor:t,...r},a)=>{const{controlId:i}=(0,o.useContext)(nt);return e=(0,l.oU)(e,"form-check-label"),(0,B.jsx)("label",{...r,ref:a,htmlFor:t||i,className:s()(n,e)})});st.displayName="FormCheckLabel";const ot=st,at=o.forwardRef(({id:e,bsPrefix:n,bsSwitchPrefix:t,inline:r=!1,reverse:a=!1,disabled:i=!1,isValid:c=!1,isInvalid:d=!1,feedbackTooltip:u=!1,feedback:f,feedbackType:m,className:p,style:x,title:h="",type:v="checkbox",label:b,children:g,as:y="input",...N},E)=>{n=(0,l.oU)(n,"form-check"),t=(0,l.oU)(t,"form-switch");const{controlId:w}=(0,o.useContext)(nt),C=(0,o.useMemo)(()=>({controlId:e||w}),[w,e]),j=!g&&null!=b&&!1!==b||function(e,n){return o.Children.toArray(e).some(e=>o.isValidElement(e)&&e.type===n)}(g,ot),O=(0,B.jsx)(rt,{...N,type:"switch"===v?"checkbox":v,ref:E,isValid:c,isInvalid:d,disabled:i,as:y});return(0,B.jsx)(nt.Provider,{value:C,children:(0,B.jsx)("div",{style:x,className:s()(p,j&&n,r&&`${n}-inline`,a&&`${n}-reverse`,"switch"===v&&t),children:g||(0,B.jsxs)(B.Fragment,{children:[O,j&&(0,B.jsx)(ot,{title:h,children:b}),f&&(0,B.jsx)(et,{type:m,tooltip:u,children:f})]})})})});at.displayName="FormCheck";const it=Object.assign(at,{Input:rt,Label:ot});t(9771);const lt=o.forwardRef(({bsPrefix:e,type:n,size:t,htmlSize:r,id:a,className:i,isValid:c=!1,isInvalid:d=!1,plaintext:u,readOnly:f,as:m="input",...p},x)=>{const{controlId:h}=(0,o.useContext)(nt);return e=(0,l.oU)(e,"form-control"),(0,B.jsx)(m,{...p,type:n,size:r,ref:x,readOnly:f,id:a||h,className:s()(i,u?`${e}-plaintext`:e,t&&`${e}-${t}`,"color"===n&&`${e}-color`,c&&"is-valid",d&&"is-invalid")})});lt.displayName="FormControl";const ct=Object.assign(lt,{Feedback:et}),dt=o.forwardRef(({className:e,bsPrefix:n,as:t="div",...r},o)=>(n=(0,l.oU)(n,"form-floating"),(0,B.jsx)(t,{ref:o,className:s()(e,n),...r})));dt.displayName="FormFloating";const ut=dt,ft=o.forwardRef(({controlId:e,as:n="div",...t},r)=>{const s=(0,o.useMemo)(()=>({controlId:e}),[e]);return(0,B.jsx)(nt.Provider,{value:s,children:(0,B.jsx)(n,{...t,ref:r})})});ft.displayName="FormGroup";const mt=ft,pt=o.forwardRef(({as:e="label",bsPrefix:n,column:t=!1,visuallyHidden:r=!1,className:a,htmlFor:i,...c},d)=>{const{controlId:u}=(0,o.useContext)(nt);n=(0,l.oU)(n,"form-label");let f="col-form-label";"string"==typeof t&&(f=`${f} ${f}-${t}`);const m=s()(a,n,r&&"visually-hidden",t&&f);return i=i||u,t?(0,B.jsx)(Pn,{ref:d,as:"label",className:m,htmlFor:i,...c}):(0,B.jsx)(e,{ref:d,className:m,htmlFor:i,...c})});pt.displayName="FormLabel";const xt=pt,ht=o.forwardRef(({bsPrefix:e,className:n,id:t,...r},a)=>{const{controlId:i}=(0,o.useContext)(nt);return e=(0,l.oU)(e,"form-range"),(0,B.jsx)("input",{...r,type:"range",ref:a,className:s()(n,e),id:t||i})});ht.displayName="FormRange";const vt=ht,bt=o.forwardRef(({bsPrefix:e,size:n,htmlSize:t,className:r,isValid:a=!1,isInvalid:i=!1,id:c,...d},u)=>{const{controlId:f}=(0,o.useContext)(nt);return e=(0,l.oU)(e,"form-select"),(0,B.jsx)("select",{...d,size:t,ref:u,className:s()(r,e,n&&`${e}-${n}`,a&&"is-valid",i&&"is-invalid"),id:c||f})});bt.displayName="FormSelect";const gt=bt,yt=o.forwardRef(({bsPrefix:e,className:n,as:t="small",muted:r,...o},a)=>(e=(0,l.oU)(e,"form-text"),(0,B.jsx)(t,{...o,ref:a,className:s()(n,e,r&&"text-muted")})));yt.displayName="FormText";const Nt=yt,Et=o.forwardRef((e,n)=>(0,B.jsx)(it,{...e,ref:n,type:"switch"}));Et.displayName="Switch";const wt=Object.assign(Et,{Input:it.Input,Label:it.Label}),Ct=o.forwardRef(({bsPrefix:e,className:n,children:t,controlId:r,label:o,...a},i)=>(e=(0,l.oU)(e,"form-floating"),(0,B.jsxs)(mt,{ref:i,className:s()(n,e),controlId:r,...a,children:[t,(0,B.jsx)("label",{htmlFor:r,children:o})]})));Ct.displayName="FloatingLabel";const jt=Ct,Ot={_ref:Ee().any,validated:Ee().bool,as:Ee().elementType},Rt=o.forwardRef(({className:e,validated:n,as:t="form",...r},o)=>(0,B.jsx)(t,{...r,ref:o,className:s()(e,n&&"was-validated")}));Rt.displayName="Form",Rt.propTypes=Ot;const Pt=Object.assign(Rt,{Group:mt,Control:ct,Floating:ut,Check:it,Switch:wt,Label:xt,Text:Nt,Range:vt,Select:gt,FloatingLabel:jt});var kt=t(22061);const Tt=o.forwardRef(({className:e,bsPrefix:n,as:t="span",...r},o)=>(n=(0,l.oU)(n,"input-group-text"),(0,B.jsx)(t,{ref:o,className:s()(e,n),...r})));Tt.displayName="InputGroupText";const At=Tt,$t=o.forwardRef(({bsPrefix:e,size:n,hasValidation:t,className:r,as:a="div",...i},c)=>{e=(0,l.oU)(e,"input-group");const d=(0,o.useMemo)(()=>({}),[]);return(0,B.jsx)(kt.A.Provider,{value:d,children:(0,B.jsx)(a,{ref:c,...i,className:s()(r,e,n&&`${e}-${n}`,t&&"has-validation")})})});$t.displayName="InputGroup";const St=Object.assign($t,{Text:At,Radio:e=>(0,B.jsx)(At,{children:(0,B.jsx)(rt,{type:"radio",...e})}),Checkbox:e=>(0,B.jsx)(At,{children:(0,B.jsx)(rt,{type:"checkbox",...e})})});var It=t(55003),Ut=t(80818);const Ft=e=>e&&"function"!=typeof e?n=>{e.current=n}:e,Mt=function(e,n){return(0,o.useMemo)(()=>function(e,n){const t=Ft(e),r=Ft(n);return e=>{t&&t(e),r&&r(e)}}(e,n),[e,n])};var Bt=t(89409),Lt=t(31406);const Dt=o.createContext(null);var Ht=t(5182),Kt=t(2883),_t=t(65753);const zt=["as","active","eventKey"];function Vt({key:e,onClick:n,active:t,id:r,role:s,disabled:a}){const i=(0,o.useContext)(Lt.A),l=(0,o.useContext)(Bt.A),c=(0,o.useContext)(Dt);let d=t;const u={role:s};if(l){s||"tablist"!==l.role||(u.role="tab");const n=l.getControllerId(null!=e?e:null),o=l.getControlledId(null!=e?e:null);u[(0,Ht.sE)("event-key")]=e,u.id=n||r,d=null==t&&null!=e?l.activeKey===e:t,!d&&(null!=c&&c.unmountOnExit||null!=c&&c.mountOnEnter)||(u["aria-controls"]=o)}return"tab"===u.role&&(u["aria-selected"]=d,d||(u.tabIndex=-1),a&&(u.tabIndex=-1,u["aria-disabled"]=!0)),u.onClick=(0,Kt.A)(t=>{a||(null==n||n(t),null!=e&&i&&!t.isPropagationStopped()&&i(e,t))}),[u,{isActive:d}]}const Wt=o.forwardRef((e,n)=>{let{as:t=_t.Ay,active:r,eventKey:s}=e,o=function(e,n){if(null==e)return{};var t={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(n.indexOf(r)>=0)continue;t[r]=e[r]}return t}(e,zt);const[a,i]=Vt(Object.assign({key:(0,Lt.u)(s,o.href),active:r},o));return a[(0,Ht.sE)("active")]=i.isActive,(0,B.jsx)(t,Object.assign({},o,a,{ref:n}))});Wt.displayName="NavItem";const Gt=Wt,Zt=["as","onSelect","activeKey","role","onKeyDown"],Xt=()=>{},qt=(0,Ht.sE)("event-key"),Jt=o.forwardRef((e,n)=>{let{as:t="div",onSelect:r,activeKey:s,role:a,onKeyDown:i}=e,l=function(e,n){if(null==e)return{};var t={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(n.indexOf(r)>=0)continue;t[r]=e[r]}return t}(e,Zt);const c=(0,Ut.A)(),d=(0,o.useRef)(!1),u=(0,o.useContext)(Lt.A),f=(0,o.useContext)(Dt);let m,p;f&&(a=a||"tablist",s=f.activeKey,m=f.getControlledId,p=f.getControllerId);const x=(0,o.useRef)(null),h=e=>{const n=x.current;if(!n)return null;const t=(0,It.A)(n,`[${qt}]:not([aria-disabled=true])`),r=n.querySelector("[aria-selected=true]");if(!r||r!==document.activeElement)return null;const s=t.indexOf(r);if(-1===s)return null;let o=s+e;return o>=t.length&&(o=0),o<0&&(o=t.length-1),t[o]},v=(e,n)=>{null!=e&&(null==r||r(e,n),null==u||u(e,n))};(0,o.useEffect)(()=>{if(x.current&&d.current){const e=x.current.querySelector(`[${qt}][aria-selected=true]`);null==e||e.focus()}d.current=!1});const b=Mt(n,x);return(0,B.jsx)(Lt.A.Provider,{value:v,children:(0,B.jsx)(Bt.A.Provider,{value:{role:a,activeKey:(0,Lt.u)(s),getControlledId:m||Xt,getControllerId:p||Xt},children:(0,B.jsx)(t,Object.assign({},l,{onKeyDown:e=>{if(null==i||i(e),!f)return;let n;switch(e.key){case"ArrowLeft":case"ArrowUp":n=h(-1);break;case"ArrowRight":case"ArrowDown":n=h(1);break;default:return}n&&(e.preventDefault(),v(n.dataset[(0,Ht.y)("EventKey")]||null,e),d.current=!0,c())},ref:b,role:a}))})})});Jt.displayName="Nav";const Yt=Object.assign(Jt,{Item:Gt}),Qt=o.forwardRef(({bsPrefix:e,active:n,disabled:t,eventKey:r,className:o,variant:a,action:i,as:c,...d},u)=>{e=(0,l.oU)(e,"list-group-item");const[f,m]=Vt({key:(0,Lt.u)(r,d.href),active:n,...d}),p=(0,de.A)(e=>{if(t)return e.preventDefault(),void e.stopPropagation();f.onClick(e)});t&&void 0===d.tabIndex&&(d.tabIndex=-1,d["aria-disabled"]=!0);const x=c||(i?d.href?"a":"button":"div");return(0,B.jsx)(x,{ref:u,...d,...f,onClick:p,className:s()(o,e,m.isActive&&"active",t&&"disabled",a&&`${e}-${a}`,i&&`${e}-action`)})});Qt.displayName="ListGroupItem";const er=Qt,nr=o.forwardRef((e,n)=>{const{className:t,bsPrefix:r,variant:o,horizontal:a,numbered:c,as:d="div",...u}=(0,i.Zw)(e,{activeKey:"onSelect"}),f=(0,l.oU)(r,"list-group");let m;return a&&(m=!0===a?"horizontal":`horizontal-${a}`),(0,B.jsx)(Yt,{ref:n,...u,as:d,className:s()(t,f,o&&`${f}-${o}`,m&&`${f}-${m}`,c&&`${f}-numbered`)})});nr.displayName="ListGroup";const tr=Object.assign(nr,{Item:er});var rr,sr=t(88394),or=t(87828),ar=t(95019);function ir(e){if((!rr&&0!==rr||e)&&or.A){var n=document.createElement("div");n.style.position="absolute",n.style.top="-9999px",n.style.width="50px",n.style.height="50px",n.style.overflow="scroll",document.body.appendChild(n),rr=n.offsetWidth-n.clientWidth,document.body.removeChild(n)}return rr}function lr(e){void 0===e&&(e=(0,c.A)());try{var n=e.activeElement;return n&&n.nodeName?n:null}catch(n){return e.body}}var cr=t(56406),dr=t(18348);var ur=t(1539);const fr=(0,Ht.sE)("modal-open"),mr=class{constructor({ownerDocument:e,handleContainerOverflow:n=!0,isRTL:t=!1}={}){this.handleContainerOverflow=n,this.isRTL=t,this.modals=[],this.ownerDocument=e}getScrollbarWidth(){return function(e=document){const n=e.defaultView;return Math.abs(n.innerWidth-e.documentElement.clientWidth)}(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(e){}removeModalAttributes(e){}setContainerStyle(e){const n={overflow:"hidden"},t=this.isRTL?"paddingLeft":"paddingRight",r=this.getElement();e.style={overflow:r.style.overflow,[t]:r.style[t]},e.scrollBarWidth&&(n[t]=`${parseInt(p(r,t)||"0",10)+e.scrollBarWidth}px`),r.setAttribute(fr,""),p(r,n)}reset(){[...this.modals].forEach(e=>this.remove(e))}removeContainerStyle(e){const n=this.getElement();n.removeAttribute(fr),Object.assign(n.style,e.style)}add(e){let n=this.modals.indexOf(e);return-1!==n||(n=this.modals.length,this.modals.push(e),this.setModalAttributes(e),0!==n||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state))),n}remove(e){const n=this.modals.indexOf(e);-1!==n&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(e))}isTopModal(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e}};var pr=t(82810);const xr=(e,n)=>or.A?null==e?(n||(0,c.A)()).body:("function"==typeof e&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function hr(e,n){const t=(0,pr.A)(),[r,s]=(0,o.useState)(()=>xr(e,null==t?void 0:t.document));if(!r){const n=xr(e);n&&s(n)}return(0,o.useEffect)(()=>{n&&r&&n(r)},[n,r]),(0,o.useEffect)(()=>{const n=xr(e);n!==r&&s(n)},[e,r]),r}var vr=t(97494);const br=function({children:e,in:n,onExited:t,mountOnEnter:r,unmountOnExit:s}){const a=(0,o.useRef)(null),i=(0,o.useRef)(n),l=(0,Kt.A)(t);(0,o.useEffect)(()=>{n?i.current=!0:l(a.current)},[n,l]);const c=Mt(a,k(e)),d=(0,o.cloneElement)(e,{ref:c});return n?d:s||!i.current&&r?null:d},gr=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"],yr=["component"],Nr=o.forwardRef((e,n)=>{let{component:t}=e;const r=function(e){let{onEnter:n,onEntering:t,onEntered:r,onExit:s,onExiting:a,onExited:i,addEndListener:l,children:c}=e,d=function(e,n){if(null==e)return{};var t={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(n.indexOf(r)>=0)continue;t[r]=e[r]}return t}(e,gr);const u=(0,o.useRef)(null),f=Mt(u,k(c)),m=e=>n=>{e&&u.current&&e(u.current,n)},p=(0,o.useCallback)(m(n),[n]),x=(0,o.useCallback)(m(t),[t]),h=(0,o.useCallback)(m(r),[r]),v=(0,o.useCallback)(m(s),[s]),b=(0,o.useCallback)(m(a),[a]),g=(0,o.useCallback)(m(i),[i]),y=(0,o.useCallback)(m(l),[l]);return Object.assign({},d,{nodeRef:u},n&&{onEnter:p},t&&{onEntering:x},r&&{onEntered:h},s&&{onExit:v},a&&{onExiting:b},i&&{onExited:g},l&&{addEndListener:y},{children:"function"==typeof c?(e,n)=>c(e,Object.assign({},n,{ref:f})):(0,o.cloneElement)(c,{ref:f})})}(function(e,n){if(null==e)return{};var t={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(n.indexOf(r)>=0)continue;t[r]=e[r]}return t}(e,yr));return(0,B.jsx)(t,Object.assign({ref:n},r))});function Er({children:e,in:n,onExited:t,onEntered:r,transition:s}){const[a,i]=(0,o.useState)(!n);n&&a&&i(!1);const l=function({in:e,onTransition:n}){const t=(0,o.useRef)(null),r=(0,o.useRef)(!0),s=(0,Kt.A)(n);return(0,vr.A)(()=>{if(!t.current)return;let n=!1;return s({in:e,element:t.current,initial:r.current,isStale:()=>n}),()=>{n=!0}},[e,s]),(0,vr.A)(()=>(r.current=!1,()=>{r.current=!0}),[]),t}({in:!!n,onTransition:e=>{Promise.resolve(s(e)).then(()=>{e.isStale()||(e.in?null==r||r(e.element,e.initial):(i(!0),null==t||t(e.element)))},n=>{throw e.in||i(!0),n})}}),c=Mt(l,k(e));return a&&!n?null:(0,o.cloneElement)(e,{ref:c})}function wr(e,n,t){return e?(0,B.jsx)(Nr,Object.assign({},t,{component:e})):n?(0,B.jsx)(Er,Object.assign({},t,{transition:n})):(0,B.jsx)(br,Object.assign({},t))}const Cr=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];let jr;const Or=(0,o.forwardRef)((e,n)=>{let{show:t=!1,role:r="dialog",className:s,style:a,children:i,backdrop:l=!0,keyboard:c=!0,onBackdropClick:d,onEscapeKeyDown:u,transition:f,runTransition:m,backdropTransition:p,runBackdropTransition:x,autoFocus:h=!0,enforceFocus:v=!0,restoreFocus:g=!0,restoreFocusOptions:y,renderDialog:N,renderBackdrop:E=e=>(0,B.jsx)("div",Object.assign({},e)),manager:w,container:C,onShow:j,onHide:O=()=>{},onExit:R,onExited:k,onExiting:A,onEnter:$,onEntering:S,onEntered:I}=e,U=function(e,n){if(null==e)return{};var t={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(n.indexOf(r)>=0)continue;t[r]=e[r]}return t}(e,Cr);const F=(0,pr.A)(),M=hr(C),L=function(e){const n=(0,pr.A)(),t=e||function(e){return jr||(jr=new mr({ownerDocument:null==e?void 0:e.document})),jr}(n),r=(0,o.useRef)({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>t.add(r.current),remove:()=>t.remove(r.current),isTopModal:()=>t.isTopModal(r.current),setDialogRef:(0,o.useCallback)(e=>{r.current.dialog=e},[]),setBackdropRef:(0,o.useCallback)(e=>{r.current.backdrop=e},[])})}(w),D=(0,dr.A)(),H=(0,ur.A)(t),[K,_]=(0,o.useState)(!t),z=(0,o.useRef)(null);(0,o.useImperativeHandle)(n,()=>L,[L]),or.A&&!H&&t&&(z.current=lr(null==F?void 0:F.document)),t&&K&&_(!1);const V=(0,Kt.A)(()=>{if(L.add(),J.current=(0,T.A)(document,"keydown",X),q.current=(0,T.A)(document,"focus",()=>setTimeout(G),!0),j&&j(),h){var e,n;const t=lr(null!=(e=null==(n=L.dialog)?void 0:n.ownerDocument)?e:null==F?void 0:F.document);L.dialog&&t&&!(0,cr.A)(L.dialog,t)&&(z.current=t,L.dialog.focus())}}),W=(0,Kt.A)(()=>{var e;L.remove(),null==J.current||J.current(),null==q.current||q.current(),g&&(null==(e=z.current)||null==e.focus||e.focus(y),z.current=null)});(0,o.useEffect)(()=>{t&&M&&V()},[t,M,V]),(0,o.useEffect)(()=>{K&&W()},[K,W]),function(e){const n=function(e){const n=(0,o.useRef)(e);return n.current=e,n}(e);(0,o.useEffect)(()=>()=>n.current(),[])}(()=>{W()});const G=(0,Kt.A)(()=>{if(!v||!D()||!L.isTopModal())return;const e=lr(null==F?void 0:F.document);L.dialog&&e&&!(0,cr.A)(L.dialog,e)&&L.dialog.focus()}),Z=(0,Kt.A)(e=>{e.target===e.currentTarget&&(null==d||d(e),!0===l&&O())}),X=(0,Kt.A)(e=>{c&&P(e)&&L.isTopModal()&&(null==u||u(e),e.defaultPrevented||O())}),q=(0,o.useRef)(),J=(0,o.useRef)();if(!M)return null;const Y=Object.assign({role:r,ref:L.setDialogRef,"aria-modal":"dialog"===r||void 0},U,{style:a,className:s,tabIndex:-1});let Q=N?N(Y):(0,B.jsx)("div",Object.assign({},Y,{children:o.cloneElement(i,{role:"document"})}));Q=wr(f,m,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!t,onExit:R,onExiting:A,onExited:(...e)=>{_(!0),null==k||k(...e)},onEnter:$,onEntering:S,onEntered:I,children:Q});let ee=null;return l&&(ee=E({ref:L.setBackdropRef,onClick:Z}),ee=wr(p,x,{in:!!t,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:ee})),(0,B.jsx)(B.Fragment,{children:b().createPortal((0,B.jsxs)(B.Fragment,{children:[ee,Q]}),M)})});Or.displayName="Modal";const Rr=Object.assign(Or,{Manager:mr});function Pr(e,n){return e.classList?!!n&&e.classList.contains(n):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+n+" ")}function kr(e,n){return e.replace(new RegExp("(^|\\s)"+n+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const Tr=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Ar=".sticky-top",$r=".navbar-toggler";class Sr extends mr{adjustAndStore(e,n,t){const r=n.style[e];n.dataset[e]=r,p(n,{[e]:`${parseFloat(p(n,e))+t}px`})}restore(e,n){const t=n.dataset[e];void 0!==t&&(delete n.dataset[e],p(n,{[e]:t}))}setContainerStyle(e){super.setContainerStyle(e);const n=this.getElement();var t,r;if(r="modal-open",(t=n).classList?t.classList.add(r):Pr(t,r)||("string"==typeof t.className?t.className=t.className+" "+r:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+r)),!e.scrollBarWidth)return;const s=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";(0,It.A)(n,Tr).forEach(n=>this.adjustAndStore(s,n,e.scrollBarWidth)),(0,It.A)(n,Ar).forEach(n=>this.adjustAndStore(o,n,-e.scrollBarWidth)),(0,It.A)(n,$r).forEach(n=>this.adjustAndStore(o,n,e.scrollBarWidth))}removeContainerStyle(e){super.removeContainerStyle(e);const n=this.getElement();var t,r;r="modal-open",(t=n).classList?t.classList.remove(r):"string"==typeof t.className?t.className=kr(t.className,r):t.setAttribute("class",kr(t.className&&t.className.baseVal||"",r));const s=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";(0,It.A)(n,Tr).forEach(e=>this.restore(s,e)),(0,It.A)(n,Ar).forEach(e=>this.restore(o,e)),(0,It.A)(n,$r).forEach(e=>this.restore(o,e))}}let Ir;function Ur(e){return Ir||(Ir=new Sr(e)),Ir}const Fr=Sr,Mr=o.forwardRef(({className:e,bsPrefix:n,as:t="div",...r},o)=>(n=(0,l.oU)(n,"modal-body"),(0,B.jsx)(t,{ref:o,className:s()(e,n),...r})));Mr.displayName="ModalBody";const Br=Mr,Lr=o.createContext({onHide(){}}),Dr=o.forwardRef(({bsPrefix:e,className:n,contentClassName:t,centered:r,size:o,fullscreen:a,children:i,scrollable:c,...d},u)=>{const f=`${e=(0,l.oU)(e,"modal")}-dialog`,m="string"==typeof a?`${e}-fullscreen-${a}`:`${e}-fullscreen`;return(0,B.jsx)("div",{...d,ref:u,className:s()(f,n,o&&`${e}-${o}`,r&&`${f}-centered`,c&&`${f}-scrollable`,a&&m),children:(0,B.jsx)("div",{className:s()(`${e}-content`,t),children:i})})});Dr.displayName="ModalDialog";const Hr=Dr,Kr=o.forwardRef(({className:e,bsPrefix:n,as:t="div",...r},o)=>(n=(0,l.oU)(n,"modal-footer"),(0,B.jsx)(t,{ref:o,className:s()(e,n),...r})));Kr.displayName="ModalFooter";const _r=Kr,zr=o.forwardRef(({closeLabel:e="Close",closeVariant:n,closeButton:t=!1,onHide:r,children:s,...a},i)=>{const l=(0,o.useContext)(Lr),c=(0,de.A)(()=>{null==l||l.onHide(),null==r||r()});return(0,B.jsxs)("div",{ref:i,...a,children:[s,t&&(0,B.jsx)(je,{"aria-label":e,variant:n,onClick:c})]})});zr.displayName="AbstractModalHeader";const Vr=zr,Wr=o.forwardRef(({bsPrefix:e,className:n,closeLabel:t="Close",closeButton:r=!1,...o},a)=>(e=(0,l.oU)(e,"modal-header"),(0,B.jsx)(Vr,{ref:a,...o,className:s()(n,e),closeLabel:t,closeButton:r})));Wr.displayName="ModalHeader";const Gr=Wr,Zr=ue("h4"),Xr=o.forwardRef(({className:e,bsPrefix:n,as:t=Zr,...r},o)=>(n=(0,l.oU)(n,"modal-title"),(0,B.jsx)(t,{ref:o,className:s()(e,n),...r})));Xr.displayName="ModalTitle";const qr=Xr;function Jr(e){return(0,B.jsx)(ye,{...e,timeout:null})}function Yr(e){return(0,B.jsx)(ye,{...e,timeout:null})}const Qr=o.forwardRef(({bsPrefix:e,className:n,style:t,dialogClassName:r,contentClassName:a,children:i,dialogAs:d=Hr,"data-bs-theme":u,"aria-labelledby":f,"aria-describedby":m,"aria-label":p,show:x=!1,animation:h=!0,backdrop:v=!0,keyboard:b=!0,onEscapeKeyDown:g,onShow:y,onHide:N,container:E,autoFocus:w=!0,enforceFocus:C=!0,restoreFocus:j=!0,restoreFocusOptions:O,onEntered:R,onExit:P,onExiting:k,onEnter:T,onEntering:$,onExited:S,backdropClassName:I,manager:U,...M},L)=>{const[D,H]=(0,o.useState)({}),[K,_]=(0,o.useState)(!1),z=(0,o.useRef)(!1),V=(0,o.useRef)(!1),W=(0,o.useRef)(null),[G,Z]=(0,o.useState)(null),X=(0,F.A)(L,Z),q=(0,de.A)(N),J=(0,l.Wz)();e=(0,l.oU)(e,"modal");const Y=(0,o.useMemo)(()=>({onHide:q}),[q]);function Q(){return U||Ur({isRTL:J})}function ee(e){if(!or.A)return;const n=Q().getScrollbarWidth()>0,t=e.scrollHeight>(0,c.A)(e).documentElement.clientHeight;H({paddingRight:n&&!t?ir():void 0,paddingLeft:!n&&t?ir():void 0})}const ne=(0,de.A)(()=>{G&&ee(G.dialog)});pn(()=>{(0,ar.A)(window,"resize",ne),null==W.current||W.current()});const te=()=>{z.current=!0},re=e=>{z.current&&G&&e.target===G.dialog&&(V.current=!0),z.current=!1},se=()=>{_(!0),W.current=A(G.dialog,()=>{_(!1)})},oe=e=>{"static"!==v?V.current||e.target!==e.currentTarget?V.current=!1:null==N||N():(e=>{e.target===e.currentTarget&&se()})(e)},ae=(0,o.useCallback)(n=>(0,B.jsx)("div",{...n,className:s()(`${e}-backdrop`,I,!h&&"show")}),[h,I,e]),ie={...t,...D};return ie.display="block",(0,B.jsx)(Lr.Provider,{value:Y,children:(0,B.jsx)(Rr,{show:x,ref:X,backdrop:v,container:E,keyboard:!0,autoFocus:w,enforceFocus:C,restoreFocus:j,restoreFocusOptions:O,onEscapeKeyDown:e=>{b?null==g||g(e):(e.preventDefault(),"static"===v&&se())},onShow:y,onHide:N,onEnter:(e,n)=>{e&&ee(e),null==T||T(e,n)},onEntering:(e,n)=>{null==$||$(e,n),(0,sr.Ay)(window,"resize",ne)},onEntered:R,onExit:e=>{null==W.current||W.current(),null==P||P(e)},onExiting:k,onExited:e=>{e&&(e.style.display=""),null==S||S(e),(0,ar.A)(window,"resize",ne)},manager:Q(),transition:h?Jr:void 0,backdropTransition:h?Yr:void 0,renderBackdrop:ae,renderDialog:t=>(0,B.jsx)("div",{role:"dialog",...t,style:ie,className:s()(n,e,K&&`${e}-static`,!h&&"show"),onClick:v?oe:void 0,onMouseUp:re,"data-bs-theme":u,"aria-label":p,"aria-labelledby":f,"aria-describedby":m,children:(0,B.jsx)(d,{...M,onMouseDown:te,className:r,contentClassName:a,children:i})})})})});Qr.displayName="Modal";const es=Object.assign(Qr,{Body:Br,Header:Gr,Title:qr,Footer:_r,Dialog:Hr,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150});var ns=t(64778);const ts=o.forwardRef(({className:e,bsPrefix:n,as:t="div",...r},o)=>(n=(0,l.oU)(n,"nav-item"),(0,B.jsx)(t,{ref:o,className:s()(e,n),...r})));ts.displayName="NavItem";const rs=ts,ss=o.forwardRef(({bsPrefix:e,className:n,as:t=xe.A,active:r,eventKey:o,disabled:a=!1,...i},c)=>{e=(0,l.oU)(e,"nav-link");const[d,u]=Vt({key:(0,Lt.u)(o,i.href),active:r,disabled:a,...i});return(0,B.jsx)(t,{...i,...d,ref:c,disabled:a,className:s()(n,e,a&&"disabled",u.isActive&&"active")})});ss.displayName="NavLink";const os=ss,as=o.forwardRef((e,n)=>{const{as:t="div",bsPrefix:r,variant:a,fill:c=!1,justify:d=!1,navbar:u,navbarScroll:f,className:m,activeKey:p,...x}=(0,i.Zw)(e,{activeKey:"onSelect"}),h=(0,l.oU)(r,"nav");let v,b,g=!1;const y=(0,o.useContext)(ns.A),N=(0,o.useContext)(Ve);return y?(v=y.bsPrefix,g=null==u||u):N&&({cardHeaderBsPrefix:b}=N),(0,B.jsx)(Yt,{as:t,ref:n,activeKey:p,className:s()(m,{[h]:!g,[`${v}-nav`]:g,[`${v}-nav-scroll`]:g&&f,[`${b}-${a}`]:!!b,[`${h}-${a}`]:!!a,[`${h}-fill`]:c,[`${h}-justified`]:d}),...x})});as.displayName="Nav";const is=Object.assign(as,{Item:rs,Link:os}),ls=o.forwardRef(({bsPrefix:e,className:n,as:t,...r},o)=>{e=(0,l.oU)(e,"navbar-brand");const a=t||(r.href?"a":"span");return(0,B.jsx)(a,{...r,ref:o,className:s()(n,e)})});ls.displayName="NavbarBrand";const cs=ls,ds=o.forwardRef(({children:e,bsPrefix:n,...t},r)=>{n=(0,l.oU)(n,"navbar-collapse");const s=(0,o.useContext)(ns.A);return(0,B.jsx)(V,{in:!(!s||!s.expanded),...t,children:(0,B.jsx)("div",{ref:r,className:n,children:e})})});ds.displayName="NavbarCollapse";const us=ds,fs=o.forwardRef(({bsPrefix:e,className:n,children:t,label:r="Toggle navigation",as:a="button",onClick:i,...c},d)=>{e=(0,l.oU)(e,"navbar-toggler");const{onToggle:u,expanded:f}=(0,o.useContext)(ns.A)||{},m=(0,de.A)(e=>{i&&i(e),u&&u()});return"button"===a&&(c.type="button"),(0,B.jsx)(a,{...c,ref:d,onClick:m,"aria-label":r,className:s()(n,e,!f&&"collapsed"),children:t||(0,B.jsx)("span",{className:`${e}-icon`})})});fs.displayName="NavbarToggle";const ms=fs;var ps=t(11706);const xs=new WeakMap,hs=(e,n)=>{if(!e||!n)return;const t=xs.get(n)||new Map;xs.set(n,t);let r=t.get(e);return r||(r=n.matchMedia(e),r.refCount=0,t.set(r.media,r)),r};function vs(e,n=("undefined"==typeof window?void 0:window)){const t=hs(e,n),[r,s]=(0,o.useState)(()=>!!t&&t.matches);return(0,ps.A)(()=>{let t=hs(e,n);if(!t)return s(!1);let r=xs.get(n);const o=()=>{s(t.matches)};return t.refCount++,t.addListener(o),o(),()=>{t.removeListener(o),t.refCount--,t.refCount<=0&&(null==r||r.delete(t.media)),t=void 0}},[e]),r}const bs=function(e){const n=Object.keys(e);function t(e,n){return e===n?n:e?`${e} and ${n}`:n}return function(r,s,a){let i;return"object"==typeof r?(i=r,a=s,s=!0):(s=s||!0,i={[r]:s}),vs((0,o.useMemo)(()=>Object.entries(i).reduce((r,[s,o])=>("up"!==o&&!0!==o||(r=t(r,function(n){let t=e[n];return"number"==typeof t&&(t=`${t}px`),`(min-width: ${t})`}(s))),"down"!==o&&!0!==o||(r=t(r,function(t){const r=function(e){return n[Math.min(n.indexOf(e)+1,n.length-1)]}(t);let s=e[r];return s="number"==typeof s?s-.2+"px":`calc(${s} - 0.2px)`,`(max-width: ${s})`}(s))),r),""),[JSON.stringify(i)]),a)}}({xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400}),gs=o.forwardRef(({className:e,bsPrefix:n,as:t="div",...r},o)=>(n=(0,l.oU)(n,"offcanvas-body"),(0,B.jsx)(t,{ref:o,className:s()(e,n),...r})));gs.displayName="OffcanvasBody";const ys=gs,Ns={[E]:"show",[w]:"show"},Es=o.forwardRef(({bsPrefix:e,className:n,children:t,in:r=!1,mountOnEnter:a=!1,unmountOnExit:i=!1,appear:c=!1,...d},u)=>(e=(0,l.oU)(e,"offcanvas"),(0,B.jsx)(D,{ref:u,addEndListener:S,in:r,mountOnEnter:a,unmountOnExit:i,appear:c,...d,childRef:k(t),children:(r,a)=>o.cloneElement(t,{...a,className:s()(n,t.props.className,(r===E||r===C)&&`${e}-toggling`,Ns[r])})})));Es.displayName="OffcanvasToggling";const ws=Es,Cs=o.forwardRef(({bsPrefix:e,className:n,closeLabel:t="Close",closeButton:r=!1,...o},a)=>(e=(0,l.oU)(e,"offcanvas-header"),(0,B.jsx)(Vr,{ref:a,...o,className:s()(n,e),closeLabel:t,closeButton:r})));Cs.displayName="OffcanvasHeader";const js=Cs,Os=ue("h5"),Rs=o.forwardRef(({className:e,bsPrefix:n,as:t=Os,...r},o)=>(n=(0,l.oU)(n,"offcanvas-title"),(0,B.jsx)(t,{ref:o,className:s()(e,n),...r})));Rs.displayName="OffcanvasTitle";const Ps=Rs;function ks(e){return(0,B.jsx)(ws,{...e})}function Ts(e){return(0,B.jsx)(ye,{...e})}const As=o.forwardRef(({bsPrefix:e,className:n,children:t,"aria-labelledby":r,placement:a="start",responsive:i,show:c=!1,backdrop:d=!0,keyboard:u=!0,scroll:f=!1,onEscapeKeyDown:m,onShow:p,onHide:x,container:h,autoFocus:v=!0,enforceFocus:b=!0,restoreFocus:g=!0,restoreFocusOptions:y,onEntered:N,onExit:E,onExiting:w,onEnter:C,onEntering:j,onExited:O,backdropClassName:R,manager:P,renderStaticNode:k=!1,...T},A)=>{const $=(0,o.useRef)();e=(0,l.oU)(e,"offcanvas");const[S,I]=(0,o.useState)(!1),U=(0,de.A)(x),F=bs(i||"xs","up");(0,o.useEffect)(()=>{I(i?c&&!F:c)},[c,i,F]);const M=(0,o.useMemo)(()=>({onHide:U}),[U]),L=(0,o.useCallback)(n=>(0,B.jsx)("div",{...n,className:s()(`${e}-backdrop`,R)}),[R,e]),D=o=>(0,B.jsx)("div",{...o,...T,className:s()(n,i?`${e}-${i}`:e,`${e}-${a}`),"aria-labelledby":r,children:t});return(0,B.jsxs)(B.Fragment,{children:[!S&&(i||k)&&D({}),(0,B.jsx)(Lr.Provider,{value:M,children:(0,B.jsx)(Rr,{show:S,ref:A,backdrop:d,container:h,keyboard:u,autoFocus:v,enforceFocus:b&&!f,restoreFocus:g,restoreFocusOptions:y,onEscapeKeyDown:m,onShow:p,onHide:U,onEnter:(e,...n)=>{e&&(e.style.visibility="visible"),null==C||C(e,...n)},onEntering:j,onEntered:N,onExit:E,onExiting:w,onExited:(e,...n)=>{e&&(e.style.visibility=""),null==O||O(...n)},manager:P||(f?($.current||($.current=new Fr({handleContainerOverflow:!1})),$.current):Ur()),transition:ks,backdropTransition:Ts,renderBackdrop:L,renderDialog:D})})]})});As.displayName="Offcanvas";const $s=Object.assign(As,{Body:ys,Header:js,Title:Ps}),Ss=o.forwardRef(({onHide:e,...n},t)=>{const r=(0,o.useContext)(ns.A),s=(0,de.A)(()=>{null==r||null==r.onToggle||r.onToggle(),null==e||e()});return(0,B.jsx)($s,{ref:t,show:!(null==r||!r.expanded),...n,renderStaticNode:!0,onHide:s})});Ss.displayName="NavbarOffcanvas";const Is=Ss,Us=o.forwardRef(({className:e,bsPrefix:n,as:t="span",...r},o)=>(n=(0,l.oU)(n,"navbar-text"),(0,B.jsx)(t,{ref:o,className:s()(e,n),...r})));Us.displayName="NavbarText";const Fs=Us,Ms=o.forwardRef((e,n)=>{const{bsPrefix:t,expand:r=!0,variant:a="light",bg:c,fixed:d,sticky:u,className:f,as:m="nav",expanded:p,onToggle:x,onSelect:h,collapseOnSelect:v=!1,...b}=(0,i.Zw)(e,{expanded:"onToggle"}),g=(0,l.oU)(t,"navbar"),y=(0,o.useCallback)((...e)=>{null==h||h(...e),v&&p&&(null==x||x(!1))},[h,v,p,x]);void 0===b.role&&"nav"!==m&&(b.role="navigation");let N=`${g}-expand`;"string"==typeof r&&(N=`${N}-${r}`);const E=(0,o.useMemo)(()=>({onToggle:()=>null==x?void 0:x(!p),bsPrefix:g,expanded:!!p,expand:r}),[g,p,r,x]);return(0,B.jsx)(ns.A.Provider,{value:E,children:(0,B.jsx)(Lt.A.Provider,{value:y,children:(0,B.jsx)(m,{ref:n,...b,className:s()(f,g,r&&N,a&&`${g}-${a}`,c&&`bg-${c}`,u&&`sticky-${u}`,d&&`fixed-${d}`)})})})});Ms.displayName="Navbar";const Bs=Object.assign(Ms,{Brand:cs,Collapse:us,Offcanvas:Is,Text:Fs,Toggle:ms}),Ls=o.forwardRef(({id:e,title:n,children:t,bsPrefix:r,className:o,rootCloseEvent:a,menuRole:i,disabled:c,active:d,renderMenuOnMount:u,menuVariant:f,...m},p)=>{const x=(0,l.oU)(void 0,"nav-item");return(0,B.jsxs)(An.default,{ref:p,...m,className:s()(o,x),children:[(0,B.jsx)(An.default.Toggle,{id:e,eventKey:null,active:d,disabled:c,childBsPrefix:r,as:os,children:n}),(0,B.jsx)(An.default.Menu,{role:i,renderOnMount:u,rootCloseEvent:a,variant:f,children:t})]})});Ls.displayName="NavDropdown";const Ds=Object.assign(Ls,{Item:An.default.Item,ItemText:An.default.ItemText,Divider:An.default.Divider,Header:An.default.Header});var Hs=t(1168),Ks=t(72432),_s=t(61289);const zs=()=>{};var Vs=t(18415);const Ws=o.forwardRef((e,n)=>{const{flip:t,offset:r,placement:s,containerPadding:a,popperConfig:i={},transition:l,runTransition:d}=e,[u,f]=(0,Hs.A)(),[m,p]=(0,Hs.A)(),x=Mt(f,n),h=hr(e.container),v=hr(e.target),[g,y]=(0,o.useState)(!e.show),N=(0,Ks.A)(v,u,(0,Vs.Ay)({placement:s,enableEvents:!!e.show,containerPadding:a||5,flip:t,offset:r,arrowElement:m,popperConfig:i}));e.show&&g&&y(!1);const E=e.show||!g;if(function(e,n,{disabled:t,clickTrigger:r}={}){const s=n||zs;(0,_s.A)(e,s,{disabled:t,clickTrigger:r});const a=(0,Kt.A)(e=>{P(e)&&s(e)});(0,o.useEffect)(()=>{if(t||null==e)return;const n=(0,c.A)((0,_s.j)(e));let r=(n.defaultView||window).event;const s=(0,T.A)(n,"keyup",e=>{e!==r?a(e):r=void 0});return()=>{s()}},[e,t,a])}(u,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!E)return null;const{onExit:w,onExiting:C,onEnter:j,onEntering:O,onEntered:R}=e;let k=e.children(Object.assign({},N.attributes.popper,{style:N.styles.popper,ref:x}),{popper:N,placement:s,show:!!e.show,arrowProps:Object.assign({},N.attributes.arrow,{style:N.styles.arrow,ref:p})});return k=wr(l,d,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:k,onExit:w,onExiting:C,onExited:(...n)=>{y(!0),e.onExited&&e.onExited(...n)},onEnter:j,onEntering:O,onEntered:R}),h?b().createPortal(k,h):null});Ws.displayName="Overlay";const Gs=Ws,Zs=o.forwardRef(({className:e,bsPrefix:n,as:t="div",...r},o)=>(n=(0,l.oU)(n,"popover-header"),(0,B.jsx)(t,{ref:o,className:s()(e,n),...r})));Zs.displayName="PopoverHeader";const Xs=Zs,qs=o.forwardRef(({className:e,bsPrefix:n,as:t="div",...r},o)=>(n=(0,l.oU)(n,"popover-body"),(0,B.jsx)(t,{ref:o,className:s()(e,n),...r})));qs.displayName="PopoverBody";const Js=qs;function Ys(e,n){let t=e;return"left"===e?t=n?"end":"start":"right"===e&&(t=n?"start":"end"),t}function Qs(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}o.Component;const eo=o.forwardRef(({bsPrefix:e,placement:n="right",className:t,style:r,children:o,body:a,arrowProps:i,hasDoneInitialMeasure:c,popper:d,show:u,...f},m)=>{const p=(0,l.oU)(e,"popover"),x=(0,l.Wz)(),[h]=(null==n?void 0:n.split("-"))||[],v=Ys(h,x);let b=r;return u&&!c&&(b={...r,...Qs(null==d?void 0:d.strategy)}),(0,B.jsxs)("div",{ref:m,role:"tooltip",style:b,"x-placement":h,className:s()(t,p,h&&`bs-popover-${v}`),...f,children:[(0,B.jsx)("div",{className:"popover-arrow",...i}),a?(0,B.jsx)(Js,{children:o}):o]})});eo.displayName="Popover";const no=Object.assign(eo,{Header:Xs,Body:Js,POPPER_OFFSET:[0,8]}),to=o.forwardRef(({bsPrefix:e,placement:n="right",className:t,style:r,children:o,arrowProps:a,hasDoneInitialMeasure:i,popper:c,show:d,...u},f)=>{e=(0,l.oU)(e,"tooltip");const m=(0,l.Wz)(),[p]=(null==n?void 0:n.split("-"))||[],x=Ys(p,m);let h=r;return d&&!i&&(h={...r,...Qs(null==c?void 0:c.strategy)}),(0,B.jsxs)("div",{ref:f,style:h,role:"tooltip","x-placement":p,className:s()(t,e,`bs-tooltip-${x}`),...u,children:[(0,B.jsx)("div",{className:"tooltip-arrow",...a}),(0,B.jsx)("div",{className:`${e}-inner`,children:o})]})});to.displayName="Tooltip";const ro=Object.assign(to,{TOOLTIP_OFFSET:[0,6]}),so=o.forwardRef(({children:e,transition:n=ye,popperConfig:t={},rootClose:r=!1,placement:a="top",show:i=!1,...c},d)=>{const u=(0,o.useRef)({}),[f,m]=(0,o.useState)(null),[p,x]=function(e){const n=(0,o.useRef)(null),t=(0,l.oU)(void 0,"popover"),r=(0,l.oU)(void 0,"tooltip"),s=(0,o.useMemo)(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(n.current){if(Pr(n.current,t))return no.POPPER_OFFSET;if(Pr(n.current,r))return ro.TOOLTIP_OFFSET}return[0,0]}}}),[e,t,r]);return[n,[s]]}(c.offset),h=(0,F.A)(d,p),v=!0===n?ye:n||void 0,b=(0,de.A)(e=>{m(e),null==t||null==t.onFirstUpdate||t.onFirstUpdate(e)});return(0,ps.A)(()=>{f&&c.target&&(null==u.current.scheduleUpdate||u.current.scheduleUpdate())},[f,c.target]),(0,o.useEffect)(()=>{i||m(null)},[i]),(0,B.jsx)(Gs,{...c,ref:h,popperConfig:{...t,modifiers:x.concat(t.modifiers||[]),onFirstUpdate:b},transition:v,rootClose:r,placement:a,show:i,children:(r,{arrowProps:a,popper:i,show:l})=>{var c;!function(e,n){const{ref:t}=e,{ref:r}=n;e.ref=t.__wrapped||(t.__wrapped=e=>t(M(e))),n.ref=r.__wrapped||(r.__wrapped=e=>r(M(e)))}(r,a);const d=null==i?void 0:i.placement,m=Object.assign(u.current,{state:null==i?void 0:i.state,scheduleUpdate:null==i?void 0:i.update,placement:d,outOfBoundaries:(null==i||null==(c=i.state)||null==(c=c.modifiersData.hide)?void 0:c.isReferenceHidden)||!1,strategy:t.strategy}),p=!!f;return"function"==typeof e?e({...r,placement:d,show:l,...!n&&l&&{className:"show"},popper:m,arrowProps:a,hasDoneInitialMeasure:p}):o.cloneElement(e,{...r,placement:d,arrowProps:a,popper:m,hasDoneInitialMeasure:p,className:s()(e.props.className,!n&&l&&"show"),style:{...e.props.style,...r.style}})}})});so.displayName="Overlay";const oo=so;function ao(e,n,t){const[r]=n,s=r.currentTarget,o=r.relatedTarget||r.nativeEvent[t];o&&o===s||(0,cr.A)(s,o)||e(...n)}Ee().oneOf(["click","hover","focus"]);const io=({trigger:e=["hover","focus"],overlay:n,children:t,popperConfig:r={},show:s,defaultShow:a=!1,onToggle:l,delay:c,placement:d,flip:u=d&&-1!==d.indexOf("auto"),...f})=>{const m=(0,o.useRef)(null),p=(0,F.A)(m,k(t)),x=vn(),h=(0,o.useRef)(""),[v,b]=(0,i.iC)(s,a,l),g=function(e){return e&&"object"==typeof e?e:{show:e,hide:e}}(c),{onFocus:y,onBlur:N,onClick:E}="function"!=typeof t?o.Children.only(t).props:{},w=(0,o.useCallback)(()=>{x.clear(),h.current="show",g.show?x.set(()=>{"show"===h.current&&b(!0)},g.show):b(!0)},[g.show,b,x]),C=(0,o.useCallback)(()=>{x.clear(),h.current="hide",g.hide?x.set(()=>{"hide"===h.current&&b(!1)},g.hide):b(!1)},[g.hide,b,x]),j=(0,o.useCallback)((...e)=>{w(),null==y||y(...e)},[w,y]),O=(0,o.useCallback)((...e)=>{C(),null==N||N(...e)},[C,N]),R=(0,o.useCallback)((...e)=>{b(!v),null==E||E(...e)},[E,b,v]),P=(0,o.useCallback)((...e)=>{ao(w,e,"fromElement")},[w]),T=(0,o.useCallback)((...e)=>{ao(C,e,"toElement")},[C]),A=null==e?[]:[].concat(e),$={ref:e=>{p(M(e))}};return-1!==A.indexOf("click")&&($.onClick=R),-1!==A.indexOf("focus")&&($.onFocus=j,$.onBlur=O),-1!==A.indexOf("hover")&&($.onMouseOver=P,$.onMouseOut=T),(0,B.jsxs)(B.Fragment,{children:["function"==typeof t?t($):(0,o.cloneElement)(t,$),(0,B.jsx)(oo,{...f,show:v,onHide:C,flip:u,placement:d,popperConfig:r,target:m.current,children:n})]})},lo=o.forwardRef(({active:e=!1,disabled:n=!1,className:t,style:r,activeLabel:o="(current)",children:a,linkStyle:i,linkClassName:l,as:c=xe.A,...d},u)=>{const f=e||n?"span":c;return(0,B.jsx)("li",{ref:u,style:r,className:s()(t,"page-item",{active:e,disabled:n}),children:(0,B.jsxs)(f,{className:s()("page-link",l),style:i,...d,children:[a,e&&o&&(0,B.jsx)("span",{className:"visually-hidden",children:o})]})})});lo.displayName="PageItem";const co=lo;function uo(e,n,t=e){const r=o.forwardRef(({children:e,...r},s)=>(0,B.jsxs)(lo,{...r,ref:s,children:[(0,B.jsx)("span",{"aria-hidden":"true",children:e||n}),(0,B.jsx)("span",{className:"visually-hidden",children:t})]}));return r.displayName=e,r}const fo=uo("First","«"),mo=uo("Prev","‹","Previous"),po=uo("Ellipsis","…","More"),xo=uo("Next","›"),ho=uo("Last","»"),vo=o.forwardRef(({bsPrefix:e,className:n,size:t,...r},o)=>{const a=(0,l.oU)(e,"pagination");return(0,B.jsx)("ul",{ref:o,...r,className:s()(n,a,t&&`${a}-${t}`)})});vo.displayName="Pagination";const bo=Object.assign(vo,{First:fo,Prev:mo,Ellipsis:po,Item:co,Next:xo,Last:ho});function go({animation:e,bg:n,bsPrefix:t,size:r,...o}){t=(0,l.oU)(t,"placeholder");const[{className:a,...i}]=On(o);return{...i,className:s()(a,e?`${t}-${e}`:t,r&&`${t}-${r}`,n&&`bg-${n}`)}}const yo=o.forwardRef((e,n)=>{const t=go(e);return(0,B.jsx)(Ue.A,{...t,ref:n,disabled:!0,tabIndex:-1})});yo.displayName="PlaceholderButton";const No=yo,Eo=o.forwardRef(({as:e="span",...n},t)=>{const r=go(n);return(0,B.jsx)(e,{...r,ref:t})});Eo.displayName="Placeholder";const wo=Object.assign(Eo,{Button:No});function Co(e,n,t){const r=(e-n)/(t-n)*100;return Math.round(1e3*r)/1e3}function jo({min:e,now:n,max:t,label:r,visuallyHidden:o,striped:a,animated:i,className:l,style:c,variant:d,bsPrefix:u,...f},m){return(0,B.jsx)("div",{ref:m,...f,role:"progressbar",className:s()(l,`${u}-bar`,{[`bg-${d}`]:d,[`${u}-bar-animated`]:i,[`${u}-bar-striped`]:i||a}),style:{width:`${Co(n,e,t)}%`,...c},"aria-valuenow":n,"aria-valuemin":e,"aria-valuemax":t,children:o?(0,B.jsx)("span",{className:"visually-hidden",children:r}):r})}const Oo=o.forwardRef(({isChild:e=!1,...n},t)=>{const r={min:0,max:100,animated:!1,visuallyHidden:!1,striped:!1,...n};if(r.bsPrefix=(0,l.oU)(r.bsPrefix,"progress"),e)return jo(r,t);const{min:a,now:i,max:c,label:d,visuallyHidden:u,striped:f,animated:m,bsPrefix:p,variant:x,className:h,children:v,...b}=r;return(0,B.jsx)("div",{ref:t,...b,className:s()(h,p),children:v?En(v,e=>(0,o.cloneElement)(e,{isChild:!0})):jo({min:a,now:i,max:c,label:d,visuallyHidden:u,striped:f,animated:m,bsPrefix:p,variant:x},t)})});Oo.displayName="ProgressBar";const Ro=Oo,Po=o.forwardRef(({bsPrefix:e,className:n,children:t,aspectRatio:r="1x1",style:a,...i},c)=>{e=(0,l.oU)(e,"ratio");const d="number"==typeof r;return(0,B.jsx)("div",{ref:c,...i,style:{...a,...d&&{"--bs-aspect-ratio":(u=r,u<=0?"100%":u<1?100*u+"%":`${u}%`)}},className:s()(e,n,!d&&`${e}-${r}`),children:o.Children.only(t)});var u});Po.displayName="Ratio";const ko=Po,To=o.forwardRef(({bsPrefix:e,className:n,as:t="div",...r},o)=>{const a=(0,l.oU)(e,"row"),i=(0,l.gy)(),c=(0,l.Jm)(),d=`${a}-cols`,u=[];return i.forEach(e=>{const n=r[e];let t;delete r[e],null!=n&&"object"==typeof n?({cols:t}=n):t=n;const s=e!==c?`-${e}`:"";null!=t&&u.push(`${d}${s}-${t}`)}),(0,B.jsx)(t,{ref:o,...r,className:s()(n,a,...u)})});To.displayName="Row";const Ao=To,$o=o.forwardRef(({bsPrefix:e,variant:n,animation:t="border",size:r,as:o="div",className:a,...i},c)=>{const d=`${e=(0,l.oU)(e,"spinner")}-${t}`;return(0,B.jsx)(o,{ref:c,...i,className:s()(a,d,r&&`${d}-${r}`,n&&`text-${n}`)})});$o.displayName="Spinner";const So=$o,Io={id:Ee().string,toggleLabel:Ee().string,href:Ee().string,target:Ee().string,onClick:Ee().func,title:Ee().node.isRequired,type:Ee().string,disabled:Ee().bool,align:Un,menuRole:Ee().string,renderMenuOnMount:Ee().bool,rootCloseEvent:Ee().string,flip:Ee().bool,bsPrefix:Ee().string,variant:Ee().string,size:Ee().string},Uo=o.forwardRef(({id:e,bsPrefix:n,size:t,variant:r,title:s,type:o="button",toggleLabel:a="Toggle dropdown",children:i,onClick:l,href:c,target:d,menuRole:u,renderMenuOnMount:f,rootCloseEvent:m,flip:p,...x},h)=>(0,B.jsxs)(An.default,{ref:h,...x,as:Me,children:[(0,B.jsx)(Ue.A,{size:t,variant:r,disabled:x.disabled,bsPrefix:n,href:c,target:d,onClick:l,type:o,children:s}),(0,B.jsx)(An.default.Toggle,{split:!0,id:e,size:t,variant:r,disabled:x.disabled,childBsPrefix:n,children:(0,B.jsx)("span",{className:"visually-hidden",children:a})}),(0,B.jsx)(An.default.Menu,{role:u,renderOnMount:f,rootCloseEvent:m,flip:p,children:i})]}));Uo.propTypes=Io,Uo.displayName="SplitButton";const Fo=Uo;var Mo=t(48368);const Bo=Mo.WX;function Lo(e,n=l.Jy,t=l.ff){const r=[];return Object.entries(e).forEach(([e,s])=>{null!=s&&("object"==typeof s?n.forEach(n=>{const o=s[n];if(null!=o){const s=n!==t?`-${n}`:"";r.push(`${e}${s}-${o}`)}}):r.push(`${e}-${s}`))}),r}const Do=o.forwardRef(({as:e="div",bsPrefix:n,className:t,direction:r,gap:o,...a},i)=>{n=(0,l.oU)(n,"horizontal"===r?"hstack":"vstack");const c=(0,l.gy)(),d=(0,l.Jm)();return(0,B.jsx)(e,{...a,ref:i,className:s()(t,n,...Lo({gap:o},c,d))})});Do.displayName="Stack";const Ho=Do;var Ko=t(5941);const _o=["active","eventKey","mountOnEnter","transition","unmountOnExit","role","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],zo=["activeKey","getControlledId","getControllerId"],Vo=["as"];function Wo(e,n){if(null==e)return{};var t={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(n.indexOf(r)>=0)continue;t[r]=e[r]}return t}function Go(e){let{active:n,eventKey:t,mountOnEnter:r,transition:s,unmountOnExit:a,role:i="tabpanel",onEnter:l,onEntering:c,onEntered:d,onExit:u,onExiting:f,onExited:m}=e,p=Wo(e,_o);const x=(0,o.useContext)(Dt);if(!x)return[Object.assign({},p,{role:i}),{eventKey:t,isActive:n,mountOnEnter:r,transition:s,unmountOnExit:a,onEnter:l,onEntering:c,onEntered:d,onExit:u,onExiting:f,onExited:m}];const{activeKey:h,getControlledId:v,getControllerId:b}=x,g=Wo(x,zo),y=(0,Lt.u)(t);return[Object.assign({},p,{role:i,id:v(t),"aria-labelledby":b(t)}),{eventKey:t,isActive:null==n&&null!=y?(0,Lt.u)(h)===y:n,transition:s||g.transition,mountOnEnter:null!=r?r:g.mountOnEnter,unmountOnExit:null!=a?a:g.unmountOnExit,onEnter:l,onEntering:c,onEntered:d,onExit:u,onExiting:f,onExited:m}]}const Zo=o.forwardRef((e,n)=>{let{as:t="div"}=e,r=Wo(e,Vo);const[s,{isActive:o,onEnter:a,onEntering:i,onEntered:l,onExit:c,onExiting:d,onExited:u,mountOnEnter:f,unmountOnExit:m,transition:p=br}]=Go(r);return(0,B.jsx)(Dt.Provider,{value:null,children:(0,B.jsx)(Lt.A.Provider,{value:null,children:(0,B.jsx)(p,{in:o,onEnter:a,onEntering:i,onEntered:l,onExit:c,onExiting:d,onExited:u,mountOnEnter:f,unmountOnExit:m,children:(0,B.jsx)(t,Object.assign({},s,{ref:n,hidden:!o,"aria-hidden":!o}))})})})});Zo.displayName="TabPanel";const Xo=e=>{const{id:n,generateChildId:t,onSelect:r,activeKey:s,defaultActiveKey:a,transition:i,mountOnEnter:l,unmountOnExit:c,children:d}=e,[u,f]=(0,Ko.iC)(s,a,r),m=(0,Mo.Cc)(n),p=(0,o.useMemo)(()=>t||((e,n)=>m?`${m}-${n}-${e}`:null),[m,t]),x=(0,o.useMemo)(()=>({onSelect:f,activeKey:u,transition:i,mountOnEnter:l||!1,unmountOnExit:c||!1,getControlledId:e=>p(e,"tabpane"),getControllerId:e=>p(e,"tab")}),[f,u,i,l,c,p]);return(0,B.jsx)(Dt.Provider,{value:x,children:(0,B.jsx)(Lt.A.Provider,{value:f||null,children:d})})};Xo.Panel=Zo;const qo=Xo;function Jo(e){return"boolean"==typeof e?e?ye:br:e}const Yo=({transition:e,...n})=>(0,B.jsx)(qo,{...n,transition:Jo(e)});Yo.displayName="TabContainer";const Qo=Yo,ea=o.forwardRef(({className:e,bsPrefix:n,as:t="div",...r},o)=>(n=(0,l.oU)(n,"tab-content"),(0,B.jsx)(t,{ref:o,className:s()(e,n),...r})));ea.displayName="TabContent";const na=ea,ta=o.forwardRef(({bsPrefix:e,transition:n,...t},r)=>{const[{className:o,as:a="div",...i},{isActive:c,onEnter:d,onEntering:u,onEntered:f,onExit:m,onExiting:p,onExited:x,mountOnEnter:h,unmountOnExit:v,transition:b=ye}]=Go({...t,transition:Jo(n)}),g=(0,l.oU)(e,"tab-pane");return(0,B.jsx)(Dt.Provider,{value:null,children:(0,B.jsx)(Lt.A.Provider,{value:null,children:(0,B.jsx)(b,{in:c,onEnter:d,onEntering:u,onEntered:f,onExit:m,onExiting:p,onExited:x,mountOnEnter:h,unmountOnExit:v,children:(0,B.jsx)(a,{...i,ref:r,className:s()(o,g,c&&"active")})})})})});ta.displayName="TabPane";const ra=ta,sa={eventKey:Ee().oneOfType([Ee().string,Ee().number]),title:Ee().node.isRequired,disabled:Ee().bool,tabClassName:Ee().string,tabAttrs:Ee().object},oa=()=>{throw new Error("ReactBootstrap: The `Tab` component is not meant to be rendered! It's an abstract component that is only valid as a direct Child of the `Tabs` Component. For custom tabs components use TabPane and TabsContainer directly")};oa.propTypes=sa;const aa=Object.assign(oa,{Container:Qo,Content:na,Pane:ra}),ia=o.forwardRef(({bsPrefix:e,className:n,striped:t,bordered:r,borderless:o,hover:a,size:i,variant:c,responsive:d,...u},f)=>{const m=(0,l.oU)(e,"table"),p=s()(n,m,c&&`${m}-${c}`,i&&`${m}-${i}`,t&&`${m}-${"string"==typeof t?`striped-${t}`:"striped"}`,r&&`${m}-bordered`,o&&`${m}-borderless`,a&&`${m}-hover`),x=(0,B.jsx)("table",{...u,className:p,ref:f});if(d){let e=`${m}-responsive`;return"string"==typeof d&&(e=`${e}-${d}`),(0,B.jsx)("div",{className:e,children:x})}return x});ia.displayName="Table";const la=ia;function ca(e){let n;return wn(e,e=>{null==n&&(n=e.props.eventKey)}),n}function da(e){const{title:n,eventKey:t,disabled:r,tabClassName:s,tabAttrs:o,id:a}=e.props;return null==n?null:(0,B.jsx)(rs,{as:"li",role:"presentation",children:(0,B.jsx)(os,{as:"button",type:"button",eventKey:t,disabled:r,id:a,className:s,...o,children:n})})}const ua=e=>{const{id:n,onSelect:t,transition:r,mountOnEnter:s=!1,unmountOnExit:o=!1,variant:a="tabs",children:l,activeKey:c=ca(l),...d}=(0,i.Zw)(e,{activeKey:"onSelect"});return(0,B.jsxs)(qo,{id:n,activeKey:c,onSelect:t,transition:Jo(r),mountOnEnter:s,unmountOnExit:o,children:[(0,B.jsx)(is,{id:n,...d,role:"tablist",as:"ul",variant:a,children:En(l,da)}),(0,B.jsx)(na,{children:En(l,e=>{const n={...e.props};return delete n.title,delete n.disabled,delete n.tabClassName,delete n.tabAttrs,(0,B.jsx)(ra,{...n})})})]})};ua.displayName="Tabs";const fa=ua,ma={[E]:"showing",[C]:"showing show"},pa=o.forwardRef((e,n)=>(0,B.jsx)(ye,{...e,ref:n,transitionClasses:ma}));pa.displayName="ToastFade";const xa=pa,ha=o.createContext({onClose(){}}),va=o.forwardRef(({bsPrefix:e,closeLabel:n="Close",closeVariant:t,closeButton:r=!0,className:a,children:i,...c},d)=>{e=(0,l.oU)(e,"toast-header");const u=(0,o.useContext)(ha),f=(0,de.A)(e=>{null==u||null==u.onClose||u.onClose(e)});return(0,B.jsxs)("div",{ref:d,...c,className:s()(e,a),children:[i,r&&(0,B.jsx)(je,{"aria-label":n,variant:t,onClick:f,"data-dismiss":"toast"})]})});va.displayName="ToastHeader";const ba=va,ga=o.forwardRef(({className:e,bsPrefix:n,as:t="div",...r},o)=>(n=(0,l.oU)(n,"toast-body"),(0,B.jsx)(t,{ref:o,className:s()(e,n),...r})));ga.displayName="ToastBody";const ya=ga,Na=o.forwardRef(({bsPrefix:e,className:n,transition:t=xa,show:r=!0,animation:a=!0,delay:i=5e3,autohide:c=!1,onClose:d,onEntered:u,onExit:f,onExiting:m,onEnter:p,onEntering:x,onExited:h,bg:v,...b},g)=>{e=(0,l.oU)(e,"toast");const y=(0,o.useRef)(i),N=(0,o.useRef)(d);(0,o.useEffect)(()=>{y.current=i,N.current=d},[i,d]);const E=vn(),w=!(!c||!r),C=(0,o.useCallback)(()=>{w&&(null==N.current||N.current())},[w]);(0,o.useEffect)(()=>{E.set(C,y.current)},[E,C]);const j=(0,o.useMemo)(()=>({onClose:d}),[d]),O=!(!t||!a),R=(0,B.jsx)("div",{...b,ref:g,className:s()(e,n,v&&`bg-${v}`,!O&&(r?"show":"hide")),role:"alert","aria-live":"assertive","aria-atomic":"true"});return(0,B.jsx)(ha.Provider,{value:j,children:O&&t?(0,B.jsx)(t,{in:r,onEnter:p,onEntering:x,onEntered:u,onExit:f,onExiting:m,onExited:h,unmountOnExit:!0,children:R}):R})});Na.displayName="Toast";const Ea=Object.assign(Na,{Body:ya,Header:ba}),wa={"top-start":"top-0 start-0","top-center":"top-0 start-50 translate-middle-x","top-end":"top-0 end-0","middle-start":"top-50 start-0 translate-middle-y","middle-center":"top-50 start-50 translate-middle","middle-end":"top-50 end-0 translate-middle-y","bottom-start":"bottom-0 start-0","bottom-center":"bottom-0 start-50 translate-middle-x","bottom-end":"bottom-0 end-0"},Ca=o.forwardRef(({bsPrefix:e,position:n,containerPosition:t,className:r,as:o="div",...a},i)=>(e=(0,l.oU)(e,"toast-container"),(0,B.jsx)(o,{ref:i,...a,className:s()(e,n&&wa[n],t&&`position-${t}`,r)})));Ca.displayName="ToastContainer";const ja=Ca,Oa=()=>{},Ra=o.forwardRef(({bsPrefix:e,name:n,className:t,checked:r,type:o,onChange:a,value:i,disabled:c,id:d,inputRef:u,...f},m)=>(e=(0,l.oU)(e,"btn-check"),(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)("input",{className:e,name:n,type:o,value:i,ref:u,autoComplete:"off",checked:!!r,disabled:!!c,onChange:a||Oa,id:d}),(0,B.jsx)(Ue.A,{...f,ref:m,className:s()(t,c&&"disabled"),type:void 0,role:void 0,as:"label",htmlFor:d})]})));Ra.displayName="ToggleButton";const Pa=Ra;var ka=t(20311),Ta=t.n(ka);const Aa=o.forwardRef((e,n)=>{const{children:t,type:r="radio",name:s,value:a,onChange:l,vertical:c=!1,...d}=(0,i.Zw)(e,{value:"onChange"}),u=()=>null==a?[]:[].concat(a);return"radio"!==r||s||Ta()(!1),(0,B.jsx)(Me,{...d,ref:n,vertical:c,children:En(t,e=>{const n=u(),{value:t,onChange:a}=e.props;return o.cloneElement(e,{type:r,name:e.name||s,checked:-1!==n.indexOf(t),onChange:I(a,e=>((e,n)=>{if(!l)return;const t=u(),s=-1!==t.indexOf(e);"radio"!==r?l(s?t.filter(n=>n!==e):[...t,e],n):s||l(e,n)})(t,e))})})})});Aa.displayName="ToggleButtonGroup";const $a=Object.assign(Aa,{Button:Pa})}}]);