@sabrish/power-platform-solution-blueprint 0.5.1

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 (129) hide show
  1. package/CHANGELOG.md +166 -0
  2. package/LICENSE +21 -0
  3. package/README.md +331 -0
  4. package/dist/assets/BusinessProcessFlowDiscovery-BSDgBoIA.js +2 -0
  5. package/dist/assets/BusinessProcessFlowDiscovery-BSDgBoIA.js.map +1 -0
  6. package/dist/assets/ColumnSecurityDiscovery-B3yVn0LZ.js +2 -0
  7. package/dist/assets/ColumnSecurityDiscovery-B3yVn0LZ.js.map +1 -0
  8. package/dist/assets/ConnectionReferenceDiscovery-DFTQuo-S.js +2 -0
  9. package/dist/assets/ConnectionReferenceDiscovery-DFTQuo-S.js.map +1 -0
  10. package/dist/assets/CustomAPIDiscovery-BiQS_ENt.js +2 -0
  11. package/dist/assets/CustomAPIDiscovery-BiQS_ENt.js.map +1 -0
  12. package/dist/assets/CustomConnectorDiscovery-TvNjElP3.js +2 -0
  13. package/dist/assets/CustomConnectorDiscovery-TvNjElP3.js.map +1 -0
  14. package/dist/assets/EnvironmentVariableDiscovery-DG_tXCcQ.js +2 -0
  15. package/dist/assets/EnvironmentVariableDiscovery-DG_tXCcQ.js.map +1 -0
  16. package/dist/assets/GlobalChoiceDiscovery-nivz9yGs.js +2 -0
  17. package/dist/assets/GlobalChoiceDiscovery-nivz9yGs.js.map +1 -0
  18. package/dist/assets/HtmlReporter-Cu9NwA6b.js +1894 -0
  19. package/dist/assets/HtmlReporter-Cu9NwA6b.js.map +1 -0
  20. package/dist/assets/JsonReporter-BqDJorX-.js +2 -0
  21. package/dist/assets/JsonReporter-BqDJorX-.js.map +1 -0
  22. package/dist/assets/MarkdownReporter-B1FEpc6-.js +53 -0
  23. package/dist/assets/MarkdownReporter-B1FEpc6-.js.map +1 -0
  24. package/dist/assets/ZipPackager-B4xx8LbF.js +3 -0
  25. package/dist/assets/ZipPackager-B4xx8LbF.js.map +1 -0
  26. package/dist/assets/_baseUniq-Nm59UrQz.js +2 -0
  27. package/dist/assets/_baseUniq-Nm59UrQz.js.map +1 -0
  28. package/dist/assets/arc-BVr5R-xB.js +2 -0
  29. package/dist/assets/arc-BVr5R-xB.js.map +1 -0
  30. package/dist/assets/architectureDiagram-VXUJARFQ-C-olLUHb.js +37 -0
  31. package/dist/assets/architectureDiagram-VXUJARFQ-C-olLUHb.js.map +1 -0
  32. package/dist/assets/blockDiagram-VD42YOAC-B4incSX8.js +123 -0
  33. package/dist/assets/blockDiagram-VD42YOAC-B4incSX8.js.map +1 -0
  34. package/dist/assets/c4Diagram-YG6GDRKO-BJxhcb17.js +11 -0
  35. package/dist/assets/c4Diagram-YG6GDRKO-BJxhcb17.js.map +1 -0
  36. package/dist/assets/channel-CjhOgOS9.js +2 -0
  37. package/dist/assets/channel-CjhOgOS9.js.map +1 -0
  38. package/dist/assets/chunk-4BX2VUAB-BIe6iK-b.js +2 -0
  39. package/dist/assets/chunk-4BX2VUAB-BIe6iK-b.js.map +1 -0
  40. package/dist/assets/chunk-55IACEB6-CA6P5Ey6.js +2 -0
  41. package/dist/assets/chunk-55IACEB6-CA6P5Ey6.js.map +1 -0
  42. package/dist/assets/chunk-B4BG7PRW-licIQLj-.js +166 -0
  43. package/dist/assets/chunk-B4BG7PRW-licIQLj-.js.map +1 -0
  44. package/dist/assets/chunk-DI55MBZ5-CxFpzZDS.js +221 -0
  45. package/dist/assets/chunk-DI55MBZ5-CxFpzZDS.js.map +1 -0
  46. package/dist/assets/chunk-FMBD7UC4-VjnBPAq9.js +16 -0
  47. package/dist/assets/chunk-FMBD7UC4-VjnBPAq9.js.map +1 -0
  48. package/dist/assets/chunk-QN33PNHL-BcMwEixv.js +2 -0
  49. package/dist/assets/chunk-QN33PNHL-BcMwEixv.js.map +1 -0
  50. package/dist/assets/chunk-QZHKN3VN-6eOG0UZ6.js +2 -0
  51. package/dist/assets/chunk-QZHKN3VN-6eOG0UZ6.js.map +1 -0
  52. package/dist/assets/chunk-TZMSLE5B-B38vDpWG.js +2 -0
  53. package/dist/assets/chunk-TZMSLE5B-B38vDpWG.js.map +1 -0
  54. package/dist/assets/classDiagram-2ON5EDUG-CEjpoRuI.js +2 -0
  55. package/dist/assets/classDiagram-2ON5EDUG-CEjpoRuI.js.map +1 -0
  56. package/dist/assets/classDiagram-v2-WZHVMYZB-CEjpoRuI.js +2 -0
  57. package/dist/assets/classDiagram-v2-WZHVMYZB-CEjpoRuI.js.map +1 -0
  58. package/dist/assets/clone-FgHYDKfb.js +2 -0
  59. package/dist/assets/clone-FgHYDKfb.js.map +1 -0
  60. package/dist/assets/cose-bilkent-S5V4N54A-BFz6nI_Q.js +2 -0
  61. package/dist/assets/cose-bilkent-S5V4N54A-BFz6nI_Q.js.map +1 -0
  62. package/dist/assets/cytoscape.esm-CyJtwmzi.js +332 -0
  63. package/dist/assets/cytoscape.esm-CyJtwmzi.js.map +1 -0
  64. package/dist/assets/dagre-6UL2VRFP-B9xCTGce.js +5 -0
  65. package/dist/assets/dagre-6UL2VRFP-B9xCTGce.js.map +1 -0
  66. package/dist/assets/defaultLocale-DX6XiGOO.js +2 -0
  67. package/dist/assets/defaultLocale-DX6XiGOO.js.map +1 -0
  68. package/dist/assets/diagram-PSM6KHXK-BG-mPBdn.js +25 -0
  69. package/dist/assets/diagram-PSM6KHXK-BG-mPBdn.js.map +1 -0
  70. package/dist/assets/diagram-QEK2KX5R-BAd41szY.js +44 -0
  71. package/dist/assets/diagram-QEK2KX5R-BAd41szY.js.map +1 -0
  72. package/dist/assets/diagram-S2PKOQOG-Qhy7nrMX.js +25 -0
  73. package/dist/assets/diagram-S2PKOQOG-Qhy7nrMX.js.map +1 -0
  74. package/dist/assets/erDiagram-Q2GNP2WA-HJD-sygr.js +61 -0
  75. package/dist/assets/erDiagram-Q2GNP2WA-HJD-sygr.js.map +1 -0
  76. package/dist/assets/flowDiagram-NV44I4VS-DcFzPV5l.js +163 -0
  77. package/dist/assets/flowDiagram-NV44I4VS-DcFzPV5l.js.map +1 -0
  78. package/dist/assets/ganttDiagram-JELNMOA3-5hzmn_YM.js +268 -0
  79. package/dist/assets/ganttDiagram-JELNMOA3-5hzmn_YM.js.map +1 -0
  80. package/dist/assets/gitGraphDiagram-NY62KEGX-BJoaRoQP.js +66 -0
  81. package/dist/assets/gitGraphDiagram-NY62KEGX-BJoaRoQP.js.map +1 -0
  82. package/dist/assets/graph-iTkoc_Qp.js +2 -0
  83. package/dist/assets/graph-iTkoc_Qp.js.map +1 -0
  84. package/dist/assets/index-C0N3Q-wf.js +404 -0
  85. package/dist/assets/index-C0N3Q-wf.js.map +1 -0
  86. package/dist/assets/index-Dau71uup.css +1 -0
  87. package/dist/assets/infoDiagram-WHAUD3N6-Dm-9Locf.js +3 -0
  88. package/dist/assets/infoDiagram-WHAUD3N6-Dm-9Locf.js.map +1 -0
  89. package/dist/assets/init-Gi6I4Gst.js +2 -0
  90. package/dist/assets/init-Gi6I4Gst.js.map +1 -0
  91. package/dist/assets/journeyDiagram-XKPGCS4Q-Cn4q49x5.js +140 -0
  92. package/dist/assets/journeyDiagram-XKPGCS4Q-Cn4q49x5.js.map +1 -0
  93. package/dist/assets/kanban-definition-3W4ZIXB7-lUx8-faE.js +90 -0
  94. package/dist/assets/kanban-definition-3W4ZIXB7-lUx8-faE.js.map +1 -0
  95. package/dist/assets/katex-CBSAILhF.js +262 -0
  96. package/dist/assets/katex-CBSAILhF.js.map +1 -0
  97. package/dist/assets/layout-BNMvCxLN.js +2 -0
  98. package/dist/assets/layout-BNMvCxLN.js.map +1 -0
  99. package/dist/assets/linear-OqJg3PPm.js +2 -0
  100. package/dist/assets/linear-OqJg3PPm.js.map +1 -0
  101. package/dist/assets/min-N_DZlU1c.js +2 -0
  102. package/dist/assets/min-N_DZlU1c.js.map +1 -0
  103. package/dist/assets/mindmap-definition-VGOIOE7T-C43AGCOz.js +69 -0
  104. package/dist/assets/mindmap-definition-VGOIOE7T-C43AGCOz.js.map +1 -0
  105. package/dist/assets/ordinal-Cboi1Yqb.js +2 -0
  106. package/dist/assets/ordinal-Cboi1Yqb.js.map +1 -0
  107. package/dist/assets/pieDiagram-ADFJNKIX-COl1BPcc.js +31 -0
  108. package/dist/assets/pieDiagram-ADFJNKIX-COl1BPcc.js.map +1 -0
  109. package/dist/assets/quadrantDiagram-AYHSOK5B-C-fSINkS.js +8 -0
  110. package/dist/assets/quadrantDiagram-AYHSOK5B-C-fSINkS.js.map +1 -0
  111. package/dist/assets/requirementDiagram-UZGBJVZJ-DSag9Z4m.js +65 -0
  112. package/dist/assets/requirementDiagram-UZGBJVZJ-DSag9Z4m.js.map +1 -0
  113. package/dist/assets/sankeyDiagram-TZEHDZUN-JyvYJ7BV.js +11 -0
  114. package/dist/assets/sankeyDiagram-TZEHDZUN-JyvYJ7BV.js.map +1 -0
  115. package/dist/assets/sequenceDiagram-WL72ISMW-GkUPZQOc.js +146 -0
  116. package/dist/assets/sequenceDiagram-WL72ISMW-GkUPZQOc.js.map +1 -0
  117. package/dist/assets/stateDiagram-FKZM4ZOC-DiJHFrza.js +2 -0
  118. package/dist/assets/stateDiagram-FKZM4ZOC-DiJHFrza.js.map +1 -0
  119. package/dist/assets/stateDiagram-v2-4FDKWEC3-BgdSYitm.js +2 -0
  120. package/dist/assets/stateDiagram-v2-4FDKWEC3-BgdSYitm.js.map +1 -0
  121. package/dist/assets/timeline-definition-IT6M3QCI-BIeoFfU5.js +62 -0
  122. package/dist/assets/timeline-definition-IT6M3QCI-BIeoFfU5.js.map +1 -0
  123. package/dist/assets/treemap-KMMF4GRG-BDDqLxLB.js +129 -0
  124. package/dist/assets/treemap-KMMF4GRG-BDDqLxLB.js.map +1 -0
  125. package/dist/assets/xychartDiagram-PRI3JC2R-CUzWjNyv.js +8 -0
  126. package/dist/assets/xychartDiagram-PRI3JC2R-CUzWjNyv.js.map +1 -0
  127. package/dist/index.html +13 -0
  128. package/index.html +12 -0
  129. package/package.json +74 -0
@@ -0,0 +1,404 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./dagre-6UL2VRFP-B9xCTGce.js","./graph-iTkoc_Qp.js","./_baseUniq-Nm59UrQz.js","./layout-BNMvCxLN.js","./min-N_DZlU1c.js","./clone-FgHYDKfb.js","./cose-bilkent-S5V4N54A-BFz6nI_Q.js","./cytoscape.esm-CyJtwmzi.js","./c4Diagram-YG6GDRKO-BJxhcb17.js","./chunk-TZMSLE5B-B38vDpWG.js","./flowDiagram-NV44I4VS-DcFzPV5l.js","./chunk-FMBD7UC4-VjnBPAq9.js","./chunk-55IACEB6-CA6P5Ey6.js","./chunk-QN33PNHL-BcMwEixv.js","./channel-CjhOgOS9.js","./erDiagram-Q2GNP2WA-HJD-sygr.js","./gitGraphDiagram-NY62KEGX-BJoaRoQP.js","./chunk-4BX2VUAB-BIe6iK-b.js","./chunk-QZHKN3VN-6eOG0UZ6.js","./treemap-KMMF4GRG-BDDqLxLB.js","./ganttDiagram-JELNMOA3-5hzmn_YM.js","./linear-OqJg3PPm.js","./init-Gi6I4Gst.js","./defaultLocale-DX6XiGOO.js","./infoDiagram-WHAUD3N6-Dm-9Locf.js","./pieDiagram-ADFJNKIX-COl1BPcc.js","./arc-BVr5R-xB.js","./ordinal-Cboi1Yqb.js","./quadrantDiagram-AYHSOK5B-C-fSINkS.js","./xychartDiagram-PRI3JC2R-CUzWjNyv.js","./requirementDiagram-UZGBJVZJ-DSag9Z4m.js","./sequenceDiagram-WL72ISMW-GkUPZQOc.js","./classDiagram-2ON5EDUG-CEjpoRuI.js","./chunk-B4BG7PRW-licIQLj-.js","./classDiagram-v2-WZHVMYZB-CEjpoRuI.js","./stateDiagram-FKZM4ZOC-DiJHFrza.js","./chunk-DI55MBZ5-CxFpzZDS.js","./stateDiagram-v2-4FDKWEC3-BgdSYitm.js","./journeyDiagram-XKPGCS4Q-Cn4q49x5.js","./timeline-definition-IT6M3QCI-BIeoFfU5.js","./mindmap-definition-VGOIOE7T-C43AGCOz.js","./kanban-definition-3W4ZIXB7-lUx8-faE.js","./sankeyDiagram-TZEHDZUN-JyvYJ7BV.js","./diagram-S2PKOQOG-Qhy7nrMX.js","./diagram-QEK2KX5R-BAd41szY.js","./blockDiagram-VD42YOAC-B4incSX8.js","./architectureDiagram-VXUJARFQ-C-olLUHb.js","./diagram-PSM6KHXK-BG-mPBdn.js"])))=>i.map(i=>d[i]);
2
+ var y6=Object.defineProperty;var b6=(e,t,r)=>t in e?y6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Oe=(e,t,r)=>b6(e,typeof t!="symbol"?t+"":t,r);function Gk(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const o in n)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(n,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>n[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();var nc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Rh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xk={exports:{}},Ah={},Yk={exports:{}},it={};/**
3
+ * @license React
4
+ * react.production.min.js
5
+ *
6
+ * Copyright (c) Facebook, Inc. and its affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */var ku=Symbol.for("react.element"),x6=Symbol.for("react.portal"),w6=Symbol.for("react.fragment"),k6=Symbol.for("react.strict_mode"),S6=Symbol.for("react.profiler"),C6=Symbol.for("react.provider"),_6=Symbol.for("react.context"),B6=Symbol.for("react.forward_ref"),T6=Symbol.for("react.suspense"),N6=Symbol.for("react.memo"),j6=Symbol.for("react.lazy"),zb=Symbol.iterator;function z6(e){return e===null||typeof e!="object"?null:(e=zb&&e[zb]||e["@@iterator"],typeof e=="function"?e:null)}var Zk={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Kk=Object.assign,Qk={};function ul(e,t,r){this.props=e,this.context=t,this.refs=Qk,this.updater=r||Zk}ul.prototype.isReactComponent={};ul.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ul.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Jk(){}Jk.prototype=ul.prototype;function Av(e,t,r){this.props=e,this.context=t,this.refs=Qk,this.updater=r||Zk}var Fv=Av.prototype=new Jk;Fv.constructor=Av;Kk(Fv,ul.prototype);Fv.isPureReactComponent=!0;var Eb=Array.isArray,eS=Object.prototype.hasOwnProperty,Pv={current:null},tS={key:!0,ref:!0,__self:!0,__source:!0};function rS(e,t,r){var n,o={},i=null,s=null;if(t!=null)for(n in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)eS.call(t,n)&&!tS.hasOwnProperty(n)&&(o[n]=t[n]);var a=arguments.length-2;if(a===1)o.children=r;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];o.children=l}if(e&&e.defaultProps)for(n in a=e.defaultProps,a)o[n]===void 0&&(o[n]=a[n]);return{$$typeof:ku,type:e,key:i,ref:s,props:o,_owner:Pv.current}}function E6(e,t){return{$$typeof:ku,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Iv(e){return typeof e=="object"&&e!==null&&e.$$typeof===ku}function R6(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var Rb=/\/+/g;function Hp(e,t){return typeof e=="object"&&e!==null&&e.key!=null?R6(""+e.key):t.toString(36)}function Pd(e,t,r,n,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case ku:case x6:s=!0}}if(s)return s=e,o=o(s),e=n===""?"."+Hp(s,0):n,Eb(o)?(r="",e!=null&&(r=e.replace(Rb,"$&/")+"/"),Pd(o,t,r,"",function(c){return c})):o!=null&&(Iv(o)&&(o=E6(o,r+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(Rb,"$&/")+"/")+e)),t.push(o)),1;if(s=0,n=n===""?".":n+":",Eb(e))for(var a=0;a<e.length;a++){i=e[a];var l=n+Hp(i,a);s+=Pd(i,t,r,l,o)}else if(l=z6(e),typeof l=="function")for(e=l.call(e),a=0;!(i=e.next()).done;)i=i.value,l=n+Hp(i,a++),s+=Pd(i,t,r,l,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function Uu(e,t,r){if(e==null)return e;var n=[],o=0;return Pd(e,n,"","",function(i){return t.call(r,i,o++)}),n}function A6(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var qr={current:null},Id={transition:null},F6={ReactCurrentDispatcher:qr,ReactCurrentBatchConfig:Id,ReactCurrentOwner:Pv};function nS(){throw Error("act(...) is not supported in production builds of React.")}it.Children={map:Uu,forEach:function(e,t,r){Uu(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Uu(e,function(){t++}),t},toArray:function(e){return Uu(e,function(t){return t})||[]},only:function(e){if(!Iv(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};it.Component=ul;it.Fragment=w6;it.Profiler=S6;it.PureComponent=Av;it.StrictMode=k6;it.Suspense=T6;it.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=F6;it.act=nS;it.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=Kk({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=Pv.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)eS.call(t,l)&&!tS.hasOwnProperty(l)&&(n[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];n.children=a}return{$$typeof:ku,type:e.type,key:o,ref:i,props:n,_owner:s}};it.createContext=function(e){return e={$$typeof:_6,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:C6,_context:e},e.Consumer=e};it.createElement=rS;it.createFactory=function(e){var t=rS.bind(null,e);return t.type=e,t};it.createRef=function(){return{current:null}};it.forwardRef=function(e){return{$$typeof:B6,render:e}};it.isValidElement=Iv;it.lazy=function(e){return{$$typeof:j6,_payload:{_status:-1,_result:e},_init:A6}};it.memo=function(e,t){return{$$typeof:N6,type:e,compare:t===void 0?null:t}};it.startTransition=function(e){var t=Id.transition;Id.transition={};try{e()}finally{Id.transition=t}};it.unstable_act=nS;it.useCallback=function(e,t){return qr.current.useCallback(e,t)};it.useContext=function(e){return qr.current.useContext(e)};it.useDebugValue=function(){};it.useDeferredValue=function(e){return qr.current.useDeferredValue(e)};it.useEffect=function(e,t){return qr.current.useEffect(e,t)};it.useId=function(){return qr.current.useId()};it.useImperativeHandle=function(e,t,r){return qr.current.useImperativeHandle(e,t,r)};it.useInsertionEffect=function(e,t){return qr.current.useInsertionEffect(e,t)};it.useLayoutEffect=function(e,t){return qr.current.useLayoutEffect(e,t)};it.useMemo=function(e,t){return qr.current.useMemo(e,t)};it.useReducer=function(e,t,r){return qr.current.useReducer(e,t,r)};it.useRef=function(e){return qr.current.useRef(e)};it.useState=function(e){return qr.current.useState(e)};it.useSyncExternalStore=function(e,t,r){return qr.current.useSyncExternalStore(e,t,r)};it.useTransition=function(){return qr.current.useTransition()};it.version="18.3.1";Yk.exports=it;var B=Yk.exports;const oS=Rh(B),pf=Gk({__proto__:null,default:oS},[B]);/**
11
+ * @license React
12
+ * react-jsx-runtime.production.min.js
13
+ *
14
+ * Copyright (c) Facebook, Inc. and its affiliates.
15
+ *
16
+ * This source code is licensed under the MIT license found in the
17
+ * LICENSE file in the root directory of this source tree.
18
+ */var P6=B,I6=Symbol.for("react.element"),M6=Symbol.for("react.fragment"),D6=Object.prototype.hasOwnProperty,L6=P6.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,O6={key:!0,ref:!0,__self:!0,__source:!0};function iS(e,t,r){var n,o={},i=null,s=null;r!==void 0&&(i=""+r),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(n in t)D6.call(t,n)&&!O6.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)o[n]===void 0&&(o[n]=t[n]);return{$$typeof:I6,type:e,key:i,ref:s,props:o,_owner:L6.current}}Ah.Fragment=M6;Ah.jsx=iS;Ah.jsxs=iS;Xk.exports=Ah;var f=Xk.exports;const q6=Rh(f),$6=Gk({__proto__:null,default:q6},[f]);var cm={},sS={exports:{}},Sn={},aS={exports:{}},lS={};/**
19
+ * @license React
20
+ * scheduler.production.min.js
21
+ *
22
+ * Copyright (c) Facebook, Inc. and its affiliates.
23
+ *
24
+ * This source code is licensed under the MIT license found in the
25
+ * LICENSE file in the root directory of this source tree.
26
+ */(function(e){function t(M,$){var X=M.length;M.push($);e:for(;0<X;){var V=X-1>>>1,L=M[V];if(0<o(L,$))M[V]=$,M[X]=L,X=V;else break e}}function r(M){return M.length===0?null:M[0]}function n(M){if(M.length===0)return null;var $=M[0],X=M.pop();if(X!==$){M[0]=X;e:for(var V=0,L=M.length,Y=L>>>1;V<Y;){var ee=2*(V+1)-1,te=M[ee],ge=ee+1,_e=M[ge];if(0>o(te,X))ge<L&&0>o(_e,te)?(M[V]=_e,M[ge]=X,V=ge):(M[V]=te,M[ee]=X,V=ee);else if(ge<L&&0>o(_e,X))M[V]=_e,M[ge]=X,V=ge;else break e}}return $}function o(M,$){var X=M.sortIndex-$.sortIndex;return X!==0?X:M.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],c=[],u=1,d=null,p=3,h=!1,m=!1,g=!1,y=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(M){for(var $=r(c);$!==null;){if($.callback===null)n(c);else if($.startTime<=M)n(c),$.sortIndex=$.expirationTime,t(l,$);else break;$=r(c)}}function k(M){if(g=!1,x(M),!m)if(r(l)!==null)m=!0,O(S);else{var $=r(c);$!==null&&D(k,$.startTime-M)}}function S(M,$){m=!1,g&&(g=!1,v(z),z=-1),h=!0;var X=p;try{for(x($),d=r(l);d!==null&&(!(d.expirationTime>$)||M&&!H());){var V=d.callback;if(typeof V=="function"){d.callback=null,p=d.priorityLevel;var L=V(d.expirationTime<=$);$=e.unstable_now(),typeof L=="function"?d.callback=L:d===r(l)&&n(l),x($)}else n(l);d=r(l)}if(d!==null)var Y=!0;else{var ee=r(c);ee!==null&&D(k,ee.startTime-$),Y=!1}return Y}finally{d=null,p=X,h=!1}}var _=!1,N=null,z=-1,F=5,I=-1;function H(){return!(e.unstable_now()-I<F)}function A(){if(N!==null){var M=e.unstable_now();I=M;var $=!0;try{$=N(!0,M)}finally{$?P():(_=!1,N=null)}}else _=!1}var P;if(typeof b=="function")P=function(){b(A)};else if(typeof MessageChannel<"u"){var C=new MessageChannel,R=C.port2;C.port1.onmessage=A,P=function(){R.postMessage(null)}}else P=function(){y(A,0)};function O(M){N=M,_||(_=!0,P())}function D(M,$){z=y(function(){M(e.unstable_now())},$)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(M){M.callback=null},e.unstable_continueExecution=function(){m||h||(m=!0,O(S))},e.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<M?Math.floor(1e3/M):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(M){switch(p){case 1:case 2:case 3:var $=3;break;default:$=p}var X=p;p=$;try{return M()}finally{p=X}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(M,$){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var X=p;p=M;try{return $()}finally{p=X}},e.unstable_scheduleCallback=function(M,$,X){var V=e.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?V+X:V):X=V,M){case 1:var L=-1;break;case 2:L=250;break;case 5:L=1073741823;break;case 4:L=1e4;break;default:L=5e3}return L=X+L,M={id:u++,callback:$,priorityLevel:M,startTime:X,expirationTime:L,sortIndex:-1},X>V?(M.sortIndex=X,t(c,M),r(l)===null&&M===r(c)&&(g?(v(z),z=-1):g=!0,D(k,X-V))):(M.sortIndex=L,t(l,M),m||h||(m=!0,O(S))),M},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(M){var $=p;return function(){var X=p;p=$;try{return M.apply(this,arguments)}finally{p=X}}}})(lS);aS.exports=lS;var um=aS.exports;/**
27
+ * @license React
28
+ * react-dom.production.min.js
29
+ *
30
+ * Copyright (c) Facebook, Inc. and its affiliates.
31
+ *
32
+ * This source code is licensed under the MIT license found in the
33
+ * LICENSE file in the root directory of this source tree.
34
+ */var H6=B,yn=um;function de(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var cS=new Set,Dc={};function Os(e,t){Oa(e,t),Oa(e+"Capture",t)}function Oa(e,t){for(Dc[e]=t,e=0;e<t.length;e++)cS.add(t[e])}var Jo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),dm=Object.prototype.hasOwnProperty,W6=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ab={},Fb={};function V6(e){return dm.call(Fb,e)?!0:dm.call(Ab,e)?!1:W6.test(e)?Fb[e]=!0:(Ab[e]=!0,!1)}function U6(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function G6(e,t,r,n){if(t===null||typeof t>"u"||U6(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function $r(e,t,r,n,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var gr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){gr[e]=new $r(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];gr[t]=new $r(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){gr[e]=new $r(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){gr[e]=new $r(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){gr[e]=new $r(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){gr[e]=new $r(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){gr[e]=new $r(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){gr[e]=new $r(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){gr[e]=new $r(e,5,!1,e.toLowerCase(),null,!1,!1)});var Mv=/[\-:]([a-z])/g;function Dv(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Mv,Dv);gr[t]=new $r(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Mv,Dv);gr[t]=new $r(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Mv,Dv);gr[t]=new $r(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){gr[e]=new $r(e,1,!1,e.toLowerCase(),null,!1,!1)});gr.xlinkHref=new $r("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){gr[e]=new $r(e,1,!1,e.toLowerCase(),null,!0,!0)});function Lv(e,t,r,n){var o=gr.hasOwnProperty(t)?gr[t]:null;(o!==null?o.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(G6(t,r,o,n)&&(r=null),n||o===null?V6(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):o.mustUseProperty?e[o.propertyName]=r===null?o.type===3?!1:"":r:(t=o.attributeName,n=o.attributeNamespace,r===null?e.removeAttribute(t):(o=o.type,r=o===3||o===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var li=H6.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Gu=Symbol.for("react.element"),la=Symbol.for("react.portal"),ca=Symbol.for("react.fragment"),Ov=Symbol.for("react.strict_mode"),fm=Symbol.for("react.profiler"),uS=Symbol.for("react.provider"),dS=Symbol.for("react.context"),qv=Symbol.for("react.forward_ref"),hm=Symbol.for("react.suspense"),pm=Symbol.for("react.suspense_list"),$v=Symbol.for("react.memo"),xi=Symbol.for("react.lazy"),fS=Symbol.for("react.offscreen"),Pb=Symbol.iterator;function Al(e){return e===null||typeof e!="object"?null:(e=Pb&&e[Pb]||e["@@iterator"],typeof e=="function"?e:null)}var Dt=Object.assign,Wp;function oc(e){if(Wp===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Wp=t&&t[1]||""}return`
35
+ `+Wp+e}var Vp=!1;function Up(e,t){if(!e||Vp)return"";Vp=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var n=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){n=c}e.call(t.prototype)}else{try{throw Error()}catch(c){n=c}e()}}catch(c){if(c&&n&&typeof c.stack=="string"){for(var o=c.stack.split(`
36
+ `),i=n.stack.split(`
37
+ `),s=o.length-1,a=i.length-1;1<=s&&0<=a&&o[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(o[s]!==i[a]){if(s!==1||a!==1)do if(s--,a--,0>a||o[s]!==i[a]){var l=`
38
+ `+o[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Vp=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?oc(e):""}function X6(e){switch(e.tag){case 5:return oc(e.type);case 16:return oc("Lazy");case 13:return oc("Suspense");case 19:return oc("SuspenseList");case 0:case 2:case 15:return e=Up(e.type,!1),e;case 11:return e=Up(e.type.render,!1),e;case 1:return e=Up(e.type,!0),e;default:return""}}function gm(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ca:return"Fragment";case la:return"Portal";case fm:return"Profiler";case Ov:return"StrictMode";case hm:return"Suspense";case pm:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case dS:return(e.displayName||"Context")+".Consumer";case uS:return(e._context.displayName||"Context")+".Provider";case qv:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $v:return t=e.displayName||null,t!==null?t:gm(e.type)||"Memo";case xi:t=e._payload,e=e._init;try{return gm(e(t))}catch{}}return null}function Y6(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return gm(t);case 8:return t===Ov?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Li(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function hS(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Z6(e){var t=hS(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){n=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Xu(e){e._valueTracker||(e._valueTracker=Z6(e))}function pS(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=hS(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function gf(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function mm(e,t){var r=t.checked;return Dt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Ib(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Li(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function gS(e,t){t=t.checked,t!=null&&Lv(e,"checked",t,!1)}function vm(e,t){gS(e,t);var r=Li(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ym(e,t.type,r):t.hasOwnProperty("defaultValue")&&ym(e,t.type,Li(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Mb(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function ym(e,t,r){(t!=="number"||gf(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var ic=Array.isArray;function ka(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&n&&(e[r].defaultSelected=!0)}else{for(r=""+Li(r),t=null,o=0;o<e.length;o++){if(e[o].value===r){e[o].selected=!0,n&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function bm(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(de(91));return Dt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Db(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(de(92));if(ic(r)){if(1<r.length)throw Error(de(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Li(r)}}function mS(e,t){var r=Li(t.value),n=Li(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function Lb(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function vS(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function xm(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?vS(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Yu,yS=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,o){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Yu=Yu||document.createElement("div"),Yu.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Yu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Lc(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var bc={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},K6=["Webkit","ms","Moz","O"];Object.keys(bc).forEach(function(e){K6.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),bc[t]=bc[e]})});function bS(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||bc.hasOwnProperty(e)&&bc[e]?(""+t).trim():t+"px"}function xS(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=bS(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var Q6=Dt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function wm(e,t){if(t){if(Q6[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(de(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(de(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(de(61))}if(t.style!=null&&typeof t.style!="object")throw Error(de(62))}}function km(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Sm=null;function Hv(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Cm=null,Sa=null,Ca=null;function Ob(e){if(e=_u(e)){if(typeof Cm!="function")throw Error(de(280));var t=e.stateNode;t&&(t=Dh(t),Cm(e.stateNode,e.type,t))}}function wS(e){Sa?Ca?Ca.push(e):Ca=[e]:Sa=e}function kS(){if(Sa){var e=Sa,t=Ca;if(Ca=Sa=null,Ob(e),t)for(e=0;e<t.length;e++)Ob(t[e])}}function SS(e,t){return e(t)}function CS(){}var Gp=!1;function _S(e,t,r){if(Gp)return e(t,r);Gp=!0;try{return SS(e,t,r)}finally{Gp=!1,(Sa!==null||Ca!==null)&&(CS(),kS())}}function Oc(e,t){var r=e.stateNode;if(r===null)return null;var n=Dh(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(de(231,t,typeof r));return r}var _m=!1;if(Jo)try{var Fl={};Object.defineProperty(Fl,"passive",{get:function(){_m=!0}}),window.addEventListener("test",Fl,Fl),window.removeEventListener("test",Fl,Fl)}catch{_m=!1}function J6(e,t,r,n,o,i,s,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(u){this.onError(u)}}var xc=!1,mf=null,vf=!1,Bm=null,eR={onError:function(e){xc=!0,mf=e}};function tR(e,t,r,n,o,i,s,a,l){xc=!1,mf=null,J6.apply(eR,arguments)}function rR(e,t,r,n,o,i,s,a,l){if(tR.apply(this,arguments),xc){if(xc){var c=mf;xc=!1,mf=null}else throw Error(de(198));vf||(vf=!0,Bm=c)}}function qs(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function BS(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function qb(e){if(qs(e)!==e)throw Error(de(188))}function nR(e){var t=e.alternate;if(!t){if(t=qs(e),t===null)throw Error(de(188));return t!==e?null:e}for(var r=e,n=t;;){var o=r.return;if(o===null)break;var i=o.alternate;if(i===null){if(n=o.return,n!==null){r=n;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===r)return qb(o),e;if(i===n)return qb(o),t;i=i.sibling}throw Error(de(188))}if(r.return!==n.return)r=o,n=i;else{for(var s=!1,a=o.child;a;){if(a===r){s=!0,r=o,n=i;break}if(a===n){s=!0,n=o,r=i;break}a=a.sibling}if(!s){for(a=i.child;a;){if(a===r){s=!0,r=i,n=o;break}if(a===n){s=!0,n=i,r=o;break}a=a.sibling}if(!s)throw Error(de(189))}}if(r.alternate!==n)throw Error(de(190))}if(r.tag!==3)throw Error(de(188));return r.stateNode.current===r?e:t}function TS(e){return e=nR(e),e!==null?NS(e):null}function NS(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=NS(e);if(t!==null)return t;e=e.sibling}return null}var jS=yn.unstable_scheduleCallback,$b=yn.unstable_cancelCallback,oR=yn.unstable_shouldYield,iR=yn.unstable_requestPaint,Gt=yn.unstable_now,sR=yn.unstable_getCurrentPriorityLevel,Wv=yn.unstable_ImmediatePriority,zS=yn.unstable_UserBlockingPriority,yf=yn.unstable_NormalPriority,aR=yn.unstable_LowPriority,ES=yn.unstable_IdlePriority,Fh=null,Co=null;function lR(e){if(Co&&typeof Co.onCommitFiberRoot=="function")try{Co.onCommitFiberRoot(Fh,e,void 0,(e.current.flags&128)===128)}catch{}}var Jn=Math.clz32?Math.clz32:dR,cR=Math.log,uR=Math.LN2;function dR(e){return e>>>=0,e===0?32:31-(cR(e)/uR|0)|0}var Zu=64,Ku=4194304;function sc(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function bf(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,s=r&268435455;if(s!==0){var a=s&~o;a!==0?n=sc(a):(i&=s,i!==0&&(n=sc(i)))}else s=r&~o,s!==0?n=sc(s):i!==0&&(n=sc(i));if(n===0)return 0;if(t!==0&&t!==n&&!(t&o)&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-Jn(t),o=1<<r,n|=e[r],t&=~o;return n}function fR(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function hR(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-Jn(i),a=1<<s,l=o[s];l===-1?(!(a&r)||a&n)&&(o[s]=fR(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}function Tm(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function RS(){var e=Zu;return Zu<<=1,!(Zu&4194240)&&(Zu=64),e}function Xp(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Su(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Jn(t),e[t]=r}function pR(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var o=31-Jn(r),i=1<<o;t[o]=0,n[o]=-1,e[o]=-1,r&=~i}}function Vv(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-Jn(r),o=1<<n;o&t|e[n]&t&&(e[n]|=t),r&=~o}}var gt=0;function AS(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var FS,Uv,PS,IS,MS,Nm=!1,Qu=[],Ni=null,ji=null,zi=null,qc=new Map,$c=new Map,Si=[],gR="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Hb(e,t){switch(e){case"focusin":case"focusout":Ni=null;break;case"dragenter":case"dragleave":ji=null;break;case"mouseover":case"mouseout":zi=null;break;case"pointerover":case"pointerout":qc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":$c.delete(t.pointerId)}}function Pl(e,t,r,n,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:i,targetContainers:[o]},t!==null&&(t=_u(t),t!==null&&Uv(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function mR(e,t,r,n,o){switch(t){case"focusin":return Ni=Pl(Ni,e,t,r,n,o),!0;case"dragenter":return ji=Pl(ji,e,t,r,n,o),!0;case"mouseover":return zi=Pl(zi,e,t,r,n,o),!0;case"pointerover":var i=o.pointerId;return qc.set(i,Pl(qc.get(i)||null,e,t,r,n,o)),!0;case"gotpointercapture":return i=o.pointerId,$c.set(i,Pl($c.get(i)||null,e,t,r,n,o)),!0}return!1}function DS(e){var t=us(e.target);if(t!==null){var r=qs(t);if(r!==null){if(t=r.tag,t===13){if(t=BS(r),t!==null){e.blockedOn=t,MS(e.priority,function(){PS(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Md(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=jm(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);Sm=n,r.target.dispatchEvent(n),Sm=null}else return t=_u(r),t!==null&&Uv(t),e.blockedOn=r,!1;t.shift()}return!0}function Wb(e,t,r){Md(e)&&r.delete(t)}function vR(){Nm=!1,Ni!==null&&Md(Ni)&&(Ni=null),ji!==null&&Md(ji)&&(ji=null),zi!==null&&Md(zi)&&(zi=null),qc.forEach(Wb),$c.forEach(Wb)}function Il(e,t){e.blockedOn===t&&(e.blockedOn=null,Nm||(Nm=!0,yn.unstable_scheduleCallback(yn.unstable_NormalPriority,vR)))}function Hc(e){function t(o){return Il(o,e)}if(0<Qu.length){Il(Qu[0],e);for(var r=1;r<Qu.length;r++){var n=Qu[r];n.blockedOn===e&&(n.blockedOn=null)}}for(Ni!==null&&Il(Ni,e),ji!==null&&Il(ji,e),zi!==null&&Il(zi,e),qc.forEach(t),$c.forEach(t),r=0;r<Si.length;r++)n=Si[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<Si.length&&(r=Si[0],r.blockedOn===null);)DS(r),r.blockedOn===null&&Si.shift()}var _a=li.ReactCurrentBatchConfig,xf=!0;function yR(e,t,r,n){var o=gt,i=_a.transition;_a.transition=null;try{gt=1,Gv(e,t,r,n)}finally{gt=o,_a.transition=i}}function bR(e,t,r,n){var o=gt,i=_a.transition;_a.transition=null;try{gt=4,Gv(e,t,r,n)}finally{gt=o,_a.transition=i}}function Gv(e,t,r,n){if(xf){var o=jm(e,t,r,n);if(o===null)og(e,t,n,wf,r),Hb(e,n);else if(mR(o,e,t,r,n))n.stopPropagation();else if(Hb(e,n),t&4&&-1<gR.indexOf(e)){for(;o!==null;){var i=_u(o);if(i!==null&&FS(i),i=jm(e,t,r,n),i===null&&og(e,t,n,wf,r),i===o)break;o=i}o!==null&&n.stopPropagation()}else og(e,t,n,null,r)}}var wf=null;function jm(e,t,r,n){if(wf=null,e=Hv(n),e=us(e),e!==null)if(t=qs(e),t===null)e=null;else if(r=t.tag,r===13){if(e=BS(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return wf=e,null}function LS(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(sR()){case Wv:return 1;case zS:return 4;case yf:case aR:return 16;case ES:return 536870912;default:return 16}default:return 16}}var _i=null,Xv=null,Dd=null;function OS(){if(Dd)return Dd;var e,t=Xv,r=t.length,n,o="value"in _i?_i.value:_i.textContent,i=o.length;for(e=0;e<r&&t[e]===o[e];e++);var s=r-e;for(n=1;n<=s&&t[r-n]===o[i-n];n++);return Dd=o.slice(e,1<n?1-n:void 0)}function Ld(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ju(){return!0}function Vb(){return!1}function Cn(e){function t(r,n,o,i,s){this._reactName=r,this._targetInst=o,this.type=n,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(r=e[a],this[a]=r?r(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Ju:Vb,this.isPropagationStopped=Vb,this}return Dt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Ju)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Ju)},persist:function(){},isPersistent:Ju}),t}var dl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Yv=Cn(dl),Cu=Dt({},dl,{view:0,detail:0}),xR=Cn(Cu),Yp,Zp,Ml,Ph=Dt({},Cu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Zv,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ml&&(Ml&&e.type==="mousemove"?(Yp=e.screenX-Ml.screenX,Zp=e.screenY-Ml.screenY):Zp=Yp=0,Ml=e),Yp)},movementY:function(e){return"movementY"in e?e.movementY:Zp}}),Ub=Cn(Ph),wR=Dt({},Ph,{dataTransfer:0}),kR=Cn(wR),SR=Dt({},Cu,{relatedTarget:0}),Kp=Cn(SR),CR=Dt({},dl,{animationName:0,elapsedTime:0,pseudoElement:0}),_R=Cn(CR),BR=Dt({},dl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),TR=Cn(BR),NR=Dt({},dl,{data:0}),Gb=Cn(NR),jR={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},zR={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ER={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function RR(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ER[e])?!!t[e]:!1}function Zv(){return RR}var AR=Dt({},Cu,{key:function(e){if(e.key){var t=jR[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ld(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?zR[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Zv,charCode:function(e){return e.type==="keypress"?Ld(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ld(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),FR=Cn(AR),PR=Dt({},Ph,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Xb=Cn(PR),IR=Dt({},Cu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Zv}),MR=Cn(IR),DR=Dt({},dl,{propertyName:0,elapsedTime:0,pseudoElement:0}),LR=Cn(DR),OR=Dt({},Ph,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),qR=Cn(OR),$R=[9,13,27,32],Kv=Jo&&"CompositionEvent"in window,wc=null;Jo&&"documentMode"in document&&(wc=document.documentMode);var HR=Jo&&"TextEvent"in window&&!wc,qS=Jo&&(!Kv||wc&&8<wc&&11>=wc),Yb=" ",Zb=!1;function $S(e,t){switch(e){case"keyup":return $R.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function HS(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ua=!1;function WR(e,t){switch(e){case"compositionend":return HS(t);case"keypress":return t.which!==32?null:(Zb=!0,Yb);case"textInput":return e=t.data,e===Yb&&Zb?null:e;default:return null}}function VR(e,t){if(ua)return e==="compositionend"||!Kv&&$S(e,t)?(e=OS(),Dd=Xv=_i=null,ua=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return qS&&t.locale!=="ko"?null:t.data;default:return null}}var UR={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Kb(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!UR[e.type]:t==="textarea"}function WS(e,t,r,n){wS(n),t=kf(t,"onChange"),0<t.length&&(r=new Yv("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var kc=null,Wc=null;function GR(e){tC(e,0)}function Ih(e){var t=ha(e);if(pS(t))return e}function XR(e,t){if(e==="change")return t}var VS=!1;if(Jo){var Qp;if(Jo){var Jp="oninput"in document;if(!Jp){var Qb=document.createElement("div");Qb.setAttribute("oninput","return;"),Jp=typeof Qb.oninput=="function"}Qp=Jp}else Qp=!1;VS=Qp&&(!document.documentMode||9<document.documentMode)}function Jb(){kc&&(kc.detachEvent("onpropertychange",US),Wc=kc=null)}function US(e){if(e.propertyName==="value"&&Ih(Wc)){var t=[];WS(t,Wc,e,Hv(e)),_S(GR,t)}}function YR(e,t,r){e==="focusin"?(Jb(),kc=t,Wc=r,kc.attachEvent("onpropertychange",US)):e==="focusout"&&Jb()}function ZR(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ih(Wc)}function KR(e,t){if(e==="click")return Ih(t)}function QR(e,t){if(e==="input"||e==="change")return Ih(t)}function JR(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var oo=typeof Object.is=="function"?Object.is:JR;function Vc(e,t){if(oo(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var o=r[n];if(!dm.call(t,o)||!oo(e[o],t[o]))return!1}return!0}function ex(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function tx(e,t){var r=ex(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ex(r)}}function GS(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?GS(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function XS(){for(var e=window,t=gf();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=gf(e.document)}return t}function Qv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function e8(e){var t=XS(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&GS(r.ownerDocument.documentElement,r)){if(n!==null&&Qv(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=tx(r,i);var s=tx(r,n);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var t8=Jo&&"documentMode"in document&&11>=document.documentMode,da=null,zm=null,Sc=null,Em=!1;function rx(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Em||da==null||da!==gf(n)||(n=da,"selectionStart"in n&&Qv(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Sc&&Vc(Sc,n)||(Sc=n,n=kf(zm,"onSelect"),0<n.length&&(t=new Yv("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=da)))}function ed(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var fa={animationend:ed("Animation","AnimationEnd"),animationiteration:ed("Animation","AnimationIteration"),animationstart:ed("Animation","AnimationStart"),transitionend:ed("Transition","TransitionEnd")},eg={},YS={};Jo&&(YS=document.createElement("div").style,"AnimationEvent"in window||(delete fa.animationend.animation,delete fa.animationiteration.animation,delete fa.animationstart.animation),"TransitionEvent"in window||delete fa.transitionend.transition);function Mh(e){if(eg[e])return eg[e];if(!fa[e])return e;var t=fa[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in YS)return eg[e]=t[r];return e}var ZS=Mh("animationend"),KS=Mh("animationiteration"),QS=Mh("animationstart"),JS=Mh("transitionend"),eC=new Map,nx="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ui(e,t){eC.set(e,t),Os(t,[e])}for(var tg=0;tg<nx.length;tg++){var rg=nx[tg],r8=rg.toLowerCase(),n8=rg[0].toUpperCase()+rg.slice(1);Ui(r8,"on"+n8)}Ui(ZS,"onAnimationEnd");Ui(KS,"onAnimationIteration");Ui(QS,"onAnimationStart");Ui("dblclick","onDoubleClick");Ui("focusin","onFocus");Ui("focusout","onBlur");Ui(JS,"onTransitionEnd");Oa("onMouseEnter",["mouseout","mouseover"]);Oa("onMouseLeave",["mouseout","mouseover"]);Oa("onPointerEnter",["pointerout","pointerover"]);Oa("onPointerLeave",["pointerout","pointerover"]);Os("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Os("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Os("onBeforeInput",["compositionend","keypress","textInput","paste"]);Os("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Os("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Os("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ac="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),o8=new Set("cancel close invalid load scroll toggle".split(" ").concat(ac));function ox(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,rR(n,t,void 0,e),e.currentTarget=null}function tC(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],o=n.event;n=n.listeners;e:{var i=void 0;if(t)for(var s=n.length-1;0<=s;s--){var a=n[s],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==i&&o.isPropagationStopped())break e;ox(o,a,c),i=l}else for(s=0;s<n.length;s++){if(a=n[s],l=a.instance,c=a.currentTarget,a=a.listener,l!==i&&o.isPropagationStopped())break e;ox(o,a,c),i=l}}}if(vf)throw e=Bm,vf=!1,Bm=null,e}function Ct(e,t){var r=t[Im];r===void 0&&(r=t[Im]=new Set);var n=e+"__bubble";r.has(n)||(rC(t,e,2,!1),r.add(n))}function ng(e,t,r){var n=0;t&&(n|=4),rC(r,e,n,t)}var td="_reactListening"+Math.random().toString(36).slice(2);function Uc(e){if(!e[td]){e[td]=!0,cS.forEach(function(r){r!=="selectionchange"&&(o8.has(r)||ng(r,!1,e),ng(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[td]||(t[td]=!0,ng("selectionchange",!1,t))}}function rC(e,t,r,n){switch(LS(t)){case 1:var o=yR;break;case 4:o=bR;break;default:o=Gv}r=o.bind(null,t,r,e),o=void 0,!_m||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),n?o!==void 0?e.addEventListener(t,r,{capture:!0,passive:o}):e.addEventListener(t,r,!0):o!==void 0?e.addEventListener(t,r,{passive:o}):e.addEventListener(t,r,!1)}function og(e,t,r,n,o){var i=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var s=n.tag;if(s===3||s===4){var a=n.stateNode.containerInfo;if(a===o||a.nodeType===8&&a.parentNode===o)break;if(s===4)for(s=n.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;s=s.return}for(;a!==null;){if(s=us(a),s===null)return;if(l=s.tag,l===5||l===6){n=i=s;continue e}a=a.parentNode}}n=n.return}_S(function(){var c=i,u=Hv(r),d=[];e:{var p=eC.get(e);if(p!==void 0){var h=Yv,m=e;switch(e){case"keypress":if(Ld(r)===0)break e;case"keydown":case"keyup":h=FR;break;case"focusin":m="focus",h=Kp;break;case"focusout":m="blur",h=Kp;break;case"beforeblur":case"afterblur":h=Kp;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=Ub;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=kR;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=MR;break;case ZS:case KS:case QS:h=_R;break;case JS:h=LR;break;case"scroll":h=xR;break;case"wheel":h=qR;break;case"copy":case"cut":case"paste":h=TR;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Xb}var g=(t&4)!==0,y=!g&&e==="scroll",v=g?p!==null?p+"Capture":null:p;g=[];for(var b=c,x;b!==null;){x=b;var k=x.stateNode;if(x.tag===5&&k!==null&&(x=k,v!==null&&(k=Oc(b,v),k!=null&&g.push(Gc(b,k,x)))),y)break;b=b.return}0<g.length&&(p=new h(p,m,null,r,u),d.push({event:p,listeners:g}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",p&&r!==Sm&&(m=r.relatedTarget||r.fromElement)&&(us(m)||m[ei]))break e;if((h||p)&&(p=u.window===u?u:(p=u.ownerDocument)?p.defaultView||p.parentWindow:window,h?(m=r.relatedTarget||r.toElement,h=c,m=m?us(m):null,m!==null&&(y=qs(m),m!==y||m.tag!==5&&m.tag!==6)&&(m=null)):(h=null,m=c),h!==m)){if(g=Ub,k="onMouseLeave",v="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(g=Xb,k="onPointerLeave",v="onPointerEnter",b="pointer"),y=h==null?p:ha(h),x=m==null?p:ha(m),p=new g(k,b+"leave",h,r,u),p.target=y,p.relatedTarget=x,k=null,us(u)===c&&(g=new g(v,b+"enter",m,r,u),g.target=x,g.relatedTarget=y,k=g),y=k,h&&m)t:{for(g=h,v=m,b=0,x=g;x;x=Js(x))b++;for(x=0,k=v;k;k=Js(k))x++;for(;0<b-x;)g=Js(g),b--;for(;0<x-b;)v=Js(v),x--;for(;b--;){if(g===v||v!==null&&g===v.alternate)break t;g=Js(g),v=Js(v)}g=null}else g=null;h!==null&&ix(d,p,h,g,!1),m!==null&&y!==null&&ix(d,y,m,g,!0)}}e:{if(p=c?ha(c):window,h=p.nodeName&&p.nodeName.toLowerCase(),h==="select"||h==="input"&&p.type==="file")var S=XR;else if(Kb(p))if(VS)S=QR;else{S=ZR;var _=YR}else(h=p.nodeName)&&h.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(S=KR);if(S&&(S=S(e,c))){WS(d,S,r,u);break e}_&&_(e,p,c),e==="focusout"&&(_=p._wrapperState)&&_.controlled&&p.type==="number"&&ym(p,"number",p.value)}switch(_=c?ha(c):window,e){case"focusin":(Kb(_)||_.contentEditable==="true")&&(da=_,zm=c,Sc=null);break;case"focusout":Sc=zm=da=null;break;case"mousedown":Em=!0;break;case"contextmenu":case"mouseup":case"dragend":Em=!1,rx(d,r,u);break;case"selectionchange":if(t8)break;case"keydown":case"keyup":rx(d,r,u)}var N;if(Kv)e:{switch(e){case"compositionstart":var z="onCompositionStart";break e;case"compositionend":z="onCompositionEnd";break e;case"compositionupdate":z="onCompositionUpdate";break e}z=void 0}else ua?$S(e,r)&&(z="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(z="onCompositionStart");z&&(qS&&r.locale!=="ko"&&(ua||z!=="onCompositionStart"?z==="onCompositionEnd"&&ua&&(N=OS()):(_i=u,Xv="value"in _i?_i.value:_i.textContent,ua=!0)),_=kf(c,z),0<_.length&&(z=new Gb(z,e,null,r,u),d.push({event:z,listeners:_}),N?z.data=N:(N=HS(r),N!==null&&(z.data=N)))),(N=HR?WR(e,r):VR(e,r))&&(c=kf(c,"onBeforeInput"),0<c.length&&(u=new Gb("onBeforeInput","beforeinput",null,r,u),d.push({event:u,listeners:c}),u.data=N))}tC(d,t)})}function Gc(e,t,r){return{instance:e,listener:t,currentTarget:r}}function kf(e,t){for(var r=t+"Capture",n=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=Oc(e,r),i!=null&&n.unshift(Gc(e,i,o)),i=Oc(e,t),i!=null&&n.push(Gc(e,i,o))),e=e.return}return n}function Js(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ix(e,t,r,n,o){for(var i=t._reactName,s=[];r!==null&&r!==n;){var a=r,l=a.alternate,c=a.stateNode;if(l!==null&&l===n)break;a.tag===5&&c!==null&&(a=c,o?(l=Oc(r,i),l!=null&&s.unshift(Gc(r,l,a))):o||(l=Oc(r,i),l!=null&&s.push(Gc(r,l,a)))),r=r.return}s.length!==0&&e.push({event:t,listeners:s})}var i8=/\r\n?/g,s8=/\u0000|\uFFFD/g;function sx(e){return(typeof e=="string"?e:""+e).replace(i8,`
39
+ `).replace(s8,"")}function rd(e,t,r){if(t=sx(t),sx(e)!==t&&r)throw Error(de(425))}function Sf(){}var Rm=null,Am=null;function Fm(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Pm=typeof setTimeout=="function"?setTimeout:void 0,a8=typeof clearTimeout=="function"?clearTimeout:void 0,ax=typeof Promise=="function"?Promise:void 0,l8=typeof queueMicrotask=="function"?queueMicrotask:typeof ax<"u"?function(e){return ax.resolve(null).then(e).catch(c8)}:Pm;function c8(e){setTimeout(function(){throw e})}function ig(e,t){var r=t,n=0;do{var o=r.nextSibling;if(e.removeChild(r),o&&o.nodeType===8)if(r=o.data,r==="/$"){if(n===0){e.removeChild(o),Hc(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=o}while(r);Hc(t)}function Ei(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function lx(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var fl=Math.random().toString(36).slice(2),xo="__reactFiber$"+fl,Xc="__reactProps$"+fl,ei="__reactContainer$"+fl,Im="__reactEvents$"+fl,u8="__reactListeners$"+fl,d8="__reactHandles$"+fl;function us(e){var t=e[xo];if(t)return t;for(var r=e.parentNode;r;){if(t=r[ei]||r[xo]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=lx(e);e!==null;){if(r=e[xo])return r;e=lx(e)}return t}e=r,r=e.parentNode}return null}function _u(e){return e=e[xo]||e[ei],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ha(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(de(33))}function Dh(e){return e[Xc]||null}var Mm=[],pa=-1;function Gi(e){return{current:e}}function Tt(e){0>pa||(e.current=Mm[pa],Mm[pa]=null,pa--)}function kt(e,t){pa++,Mm[pa]=e.current,e.current=t}var Oi={},jr=Gi(Oi),Jr=Gi(!1),_s=Oi;function qa(e,t){var r=e.type.contextTypes;if(!r)return Oi;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function en(e){return e=e.childContextTypes,e!=null}function Cf(){Tt(Jr),Tt(jr)}function cx(e,t,r){if(jr.current!==Oi)throw Error(de(168));kt(jr,t),kt(Jr,r)}function nC(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(de(108,Y6(e)||"Unknown",o));return Dt({},r,n)}function _f(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Oi,_s=jr.current,kt(jr,e),kt(Jr,Jr.current),!0}function ux(e,t,r){var n=e.stateNode;if(!n)throw Error(de(169));r?(e=nC(e,t,_s),n.__reactInternalMemoizedMergedChildContext=e,Tt(Jr),Tt(jr),kt(jr,e)):Tt(Jr),kt(Jr,r)}var Wo=null,Lh=!1,sg=!1;function oC(e){Wo===null?Wo=[e]:Wo.push(e)}function f8(e){Lh=!0,oC(e)}function Xi(){if(!sg&&Wo!==null){sg=!0;var e=0,t=gt;try{var r=Wo;for(gt=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}Wo=null,Lh=!1}catch(o){throw Wo!==null&&(Wo=Wo.slice(e+1)),jS(Wv,Xi),o}finally{gt=t,sg=!1}}return null}var ga=[],ma=0,Bf=null,Tf=0,Bn=[],Tn=0,Bs=null,Vo=1,Uo="";function is(e,t){ga[ma++]=Tf,ga[ma++]=Bf,Bf=e,Tf=t}function iC(e,t,r){Bn[Tn++]=Vo,Bn[Tn++]=Uo,Bn[Tn++]=Bs,Bs=e;var n=Vo;e=Uo;var o=32-Jn(n)-1;n&=~(1<<o),r+=1;var i=32-Jn(t)+o;if(30<i){var s=o-o%5;i=(n&(1<<s)-1).toString(32),n>>=s,o-=s,Vo=1<<32-Jn(t)+o|r<<o|n,Uo=i+e}else Vo=1<<i|r<<o|n,Uo=e}function Jv(e){e.return!==null&&(is(e,1),iC(e,1,0))}function ey(e){for(;e===Bf;)Bf=ga[--ma],ga[ma]=null,Tf=ga[--ma],ga[ma]=null;for(;e===Bs;)Bs=Bn[--Tn],Bn[Tn]=null,Uo=Bn[--Tn],Bn[Tn]=null,Vo=Bn[--Tn],Bn[Tn]=null}var pn=null,hn=null,Rt=!1,Un=null;function sC(e,t){var r=En(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function dx(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,pn=e,hn=Ei(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,pn=e,hn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Bs!==null?{id:Vo,overflow:Uo}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=En(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,pn=e,hn=null,!0):!1;default:return!1}}function Dm(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Lm(e){if(Rt){var t=hn;if(t){var r=t;if(!dx(e,t)){if(Dm(e))throw Error(de(418));t=Ei(r.nextSibling);var n=pn;t&&dx(e,t)?sC(n,r):(e.flags=e.flags&-4097|2,Rt=!1,pn=e)}}else{if(Dm(e))throw Error(de(418));e.flags=e.flags&-4097|2,Rt=!1,pn=e}}}function fx(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;pn=e}function nd(e){if(e!==pn)return!1;if(!Rt)return fx(e),Rt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Fm(e.type,e.memoizedProps)),t&&(t=hn)){if(Dm(e))throw aC(),Error(de(418));for(;t;)sC(e,t),t=Ei(t.nextSibling)}if(fx(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(de(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){hn=Ei(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}hn=null}}else hn=pn?Ei(e.stateNode.nextSibling):null;return!0}function aC(){for(var e=hn;e;)e=Ei(e.nextSibling)}function $a(){hn=pn=null,Rt=!1}function ty(e){Un===null?Un=[e]:Un.push(e)}var h8=li.ReactCurrentBatchConfig;function Dl(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(de(309));var n=r.stateNode}if(!n)throw Error(de(147,e));var o=n,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(s){var a=o.refs;s===null?delete a[i]:a[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(de(284));if(!r._owner)throw Error(de(290,e))}return e}function od(e,t){throw e=Object.prototype.toString.call(t),Error(de(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function hx(e){var t=e._init;return t(e._payload)}function lC(e){function t(v,b){if(e){var x=v.deletions;x===null?(v.deletions=[b],v.flags|=16):x.push(b)}}function r(v,b){if(!e)return null;for(;b!==null;)t(v,b),b=b.sibling;return null}function n(v,b){for(v=new Map;b!==null;)b.key!==null?v.set(b.key,b):v.set(b.index,b),b=b.sibling;return v}function o(v,b){return v=Pi(v,b),v.index=0,v.sibling=null,v}function i(v,b,x){return v.index=x,e?(x=v.alternate,x!==null?(x=x.index,x<b?(v.flags|=2,b):x):(v.flags|=2,b)):(v.flags|=1048576,b)}function s(v){return e&&v.alternate===null&&(v.flags|=2),v}function a(v,b,x,k){return b===null||b.tag!==6?(b=hg(x,v.mode,k),b.return=v,b):(b=o(b,x),b.return=v,b)}function l(v,b,x,k){var S=x.type;return S===ca?u(v,b,x.props.children,k,x.key):b!==null&&(b.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===xi&&hx(S)===b.type)?(k=o(b,x.props),k.ref=Dl(v,b,x),k.return=v,k):(k=Ud(x.type,x.key,x.props,null,v.mode,k),k.ref=Dl(v,b,x),k.return=v,k)}function c(v,b,x,k){return b===null||b.tag!==4||b.stateNode.containerInfo!==x.containerInfo||b.stateNode.implementation!==x.implementation?(b=pg(x,v.mode,k),b.return=v,b):(b=o(b,x.children||[]),b.return=v,b)}function u(v,b,x,k,S){return b===null||b.tag!==7?(b=ws(x,v.mode,k,S),b.return=v,b):(b=o(b,x),b.return=v,b)}function d(v,b,x){if(typeof b=="string"&&b!==""||typeof b=="number")return b=hg(""+b,v.mode,x),b.return=v,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Gu:return x=Ud(b.type,b.key,b.props,null,v.mode,x),x.ref=Dl(v,null,b),x.return=v,x;case la:return b=pg(b,v.mode,x),b.return=v,b;case xi:var k=b._init;return d(v,k(b._payload),x)}if(ic(b)||Al(b))return b=ws(b,v.mode,x,null),b.return=v,b;od(v,b)}return null}function p(v,b,x,k){var S=b!==null?b.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return S!==null?null:a(v,b,""+x,k);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Gu:return x.key===S?l(v,b,x,k):null;case la:return x.key===S?c(v,b,x,k):null;case xi:return S=x._init,p(v,b,S(x._payload),k)}if(ic(x)||Al(x))return S!==null?null:u(v,b,x,k,null);od(v,x)}return null}function h(v,b,x,k,S){if(typeof k=="string"&&k!==""||typeof k=="number")return v=v.get(x)||null,a(b,v,""+k,S);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case Gu:return v=v.get(k.key===null?x:k.key)||null,l(b,v,k,S);case la:return v=v.get(k.key===null?x:k.key)||null,c(b,v,k,S);case xi:var _=k._init;return h(v,b,x,_(k._payload),S)}if(ic(k)||Al(k))return v=v.get(x)||null,u(b,v,k,S,null);od(b,k)}return null}function m(v,b,x,k){for(var S=null,_=null,N=b,z=b=0,F=null;N!==null&&z<x.length;z++){N.index>z?(F=N,N=null):F=N.sibling;var I=p(v,N,x[z],k);if(I===null){N===null&&(N=F);break}e&&N&&I.alternate===null&&t(v,N),b=i(I,b,z),_===null?S=I:_.sibling=I,_=I,N=F}if(z===x.length)return r(v,N),Rt&&is(v,z),S;if(N===null){for(;z<x.length;z++)N=d(v,x[z],k),N!==null&&(b=i(N,b,z),_===null?S=N:_.sibling=N,_=N);return Rt&&is(v,z),S}for(N=n(v,N);z<x.length;z++)F=h(N,v,z,x[z],k),F!==null&&(e&&F.alternate!==null&&N.delete(F.key===null?z:F.key),b=i(F,b,z),_===null?S=F:_.sibling=F,_=F);return e&&N.forEach(function(H){return t(v,H)}),Rt&&is(v,z),S}function g(v,b,x,k){var S=Al(x);if(typeof S!="function")throw Error(de(150));if(x=S.call(x),x==null)throw Error(de(151));for(var _=S=null,N=b,z=b=0,F=null,I=x.next();N!==null&&!I.done;z++,I=x.next()){N.index>z?(F=N,N=null):F=N.sibling;var H=p(v,N,I.value,k);if(H===null){N===null&&(N=F);break}e&&N&&H.alternate===null&&t(v,N),b=i(H,b,z),_===null?S=H:_.sibling=H,_=H,N=F}if(I.done)return r(v,N),Rt&&is(v,z),S;if(N===null){for(;!I.done;z++,I=x.next())I=d(v,I.value,k),I!==null&&(b=i(I,b,z),_===null?S=I:_.sibling=I,_=I);return Rt&&is(v,z),S}for(N=n(v,N);!I.done;z++,I=x.next())I=h(N,v,z,I.value,k),I!==null&&(e&&I.alternate!==null&&N.delete(I.key===null?z:I.key),b=i(I,b,z),_===null?S=I:_.sibling=I,_=I);return e&&N.forEach(function(A){return t(v,A)}),Rt&&is(v,z),S}function y(v,b,x,k){if(typeof x=="object"&&x!==null&&x.type===ca&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Gu:e:{for(var S=x.key,_=b;_!==null;){if(_.key===S){if(S=x.type,S===ca){if(_.tag===7){r(v,_.sibling),b=o(_,x.props.children),b.return=v,v=b;break e}}else if(_.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===xi&&hx(S)===_.type){r(v,_.sibling),b=o(_,x.props),b.ref=Dl(v,_,x),b.return=v,v=b;break e}r(v,_);break}else t(v,_);_=_.sibling}x.type===ca?(b=ws(x.props.children,v.mode,k,x.key),b.return=v,v=b):(k=Ud(x.type,x.key,x.props,null,v.mode,k),k.ref=Dl(v,b,x),k.return=v,v=k)}return s(v);case la:e:{for(_=x.key;b!==null;){if(b.key===_)if(b.tag===4&&b.stateNode.containerInfo===x.containerInfo&&b.stateNode.implementation===x.implementation){r(v,b.sibling),b=o(b,x.children||[]),b.return=v,v=b;break e}else{r(v,b);break}else t(v,b);b=b.sibling}b=pg(x,v.mode,k),b.return=v,v=b}return s(v);case xi:return _=x._init,y(v,b,_(x._payload),k)}if(ic(x))return m(v,b,x,k);if(Al(x))return g(v,b,x,k);od(v,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,b!==null&&b.tag===6?(r(v,b.sibling),b=o(b,x),b.return=v,v=b):(r(v,b),b=hg(x,v.mode,k),b.return=v,v=b),s(v)):r(v,b)}return y}var Ha=lC(!0),cC=lC(!1),Nf=Gi(null),jf=null,va=null,ry=null;function ny(){ry=va=jf=null}function oy(e){var t=Nf.current;Tt(Nf),e._currentValue=t}function Om(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Ba(e,t){jf=e,ry=va=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Kr=!0),e.firstContext=null)}function Fn(e){var t=e._currentValue;if(ry!==e)if(e={context:e,memoizedValue:t,next:null},va===null){if(jf===null)throw Error(de(308));va=e,jf.dependencies={lanes:0,firstContext:e}}else va=va.next=e;return t}var ds=null;function iy(e){ds===null?ds=[e]:ds.push(e)}function uC(e,t,r,n){var o=t.interleaved;return o===null?(r.next=r,iy(t)):(r.next=o.next,o.next=r),t.interleaved=r,ti(e,n)}function ti(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var wi=!1;function sy(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function dC(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Go(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ri(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,ct&2){var o=n.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),n.pending=t,ti(e,r)}return o=n.interleaved,o===null?(t.next=t,iy(n)):(t.next=o.next,o.next=t),n.interleaved=t,ti(e,r)}function Od(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Vv(e,r)}}function px(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var o=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var s={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?o=i=s:i=i.next=s,r=r.next}while(r!==null);i===null?o=i=t:i=i.next=t}else o=i=t;r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function zf(e,t,r,n){var o=e.updateQueue;wi=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,c=l.next;l.next=null,s===null?i=c:s.next=c,s=l;var u=e.alternate;u!==null&&(u=u.updateQueue,a=u.lastBaseUpdate,a!==s&&(a===null?u.firstBaseUpdate=c:a.next=c,u.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;s=0,u=c=l=null,a=i;do{var p=a.lane,h=a.eventTime;if((n&p)===p){u!==null&&(u=u.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var m=e,g=a;switch(p=t,h=r,g.tag){case 1:if(m=g.payload,typeof m=="function"){d=m.call(h,d,p);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,p=typeof m=="function"?m.call(h,d,p):m,p==null)break e;d=Dt({},d,p);break e;case 2:wi=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[a]:p.push(a))}else h={eventTime:h,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},u===null?(c=u=h,l=d):u=u.next=h,s|=p;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;p=a,a=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(u===null&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Ns|=s,e.lanes=s,e.memoizedState=d}}function gx(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],o=n.callback;if(o!==null){if(n.callback=null,n=r,typeof o!="function")throw Error(de(191,o));o.call(n)}}}var Bu={},_o=Gi(Bu),Yc=Gi(Bu),Zc=Gi(Bu);function fs(e){if(e===Bu)throw Error(de(174));return e}function ay(e,t){switch(kt(Zc,t),kt(Yc,e),kt(_o,Bu),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:xm(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=xm(t,e)}Tt(_o),kt(_o,t)}function Wa(){Tt(_o),Tt(Yc),Tt(Zc)}function fC(e){fs(Zc.current);var t=fs(_o.current),r=xm(t,e.type);t!==r&&(kt(Yc,e),kt(_o,r))}function ly(e){Yc.current===e&&(Tt(_o),Tt(Yc))}var Ft=Gi(0);function Ef(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ag=[];function cy(){for(var e=0;e<ag.length;e++)ag[e]._workInProgressVersionPrimary=null;ag.length=0}var qd=li.ReactCurrentDispatcher,lg=li.ReactCurrentBatchConfig,Ts=0,Mt=null,Jt=null,sr=null,Rf=!1,Cc=!1,Kc=0,p8=0;function yr(){throw Error(de(321))}function uy(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!oo(e[r],t[r]))return!1;return!0}function dy(e,t,r,n,o,i){if(Ts=i,Mt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,qd.current=e===null||e.memoizedState===null?y8:b8,e=r(n,o),Cc){i=0;do{if(Cc=!1,Kc=0,25<=i)throw Error(de(301));i+=1,sr=Jt=null,t.updateQueue=null,qd.current=x8,e=r(n,o)}while(Cc)}if(qd.current=Af,t=Jt!==null&&Jt.next!==null,Ts=0,sr=Jt=Mt=null,Rf=!1,t)throw Error(de(300));return e}function fy(){var e=Kc!==0;return Kc=0,e}function bo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return sr===null?Mt.memoizedState=sr=e:sr=sr.next=e,sr}function Pn(){if(Jt===null){var e=Mt.alternate;e=e!==null?e.memoizedState:null}else e=Jt.next;var t=sr===null?Mt.memoizedState:sr.next;if(t!==null)sr=t,Jt=e;else{if(e===null)throw Error(de(310));Jt=e,e={memoizedState:Jt.memoizedState,baseState:Jt.baseState,baseQueue:Jt.baseQueue,queue:Jt.queue,next:null},sr===null?Mt.memoizedState=sr=e:sr=sr.next=e}return sr}function Qc(e,t){return typeof t=="function"?t(e):t}function cg(e){var t=Pn(),r=t.queue;if(r===null)throw Error(de(311));r.lastRenderedReducer=e;var n=Jt,o=n.baseQueue,i=r.pending;if(i!==null){if(o!==null){var s=o.next;o.next=i.next,i.next=s}n.baseQueue=o=i,r.pending=null}if(o!==null){i=o.next,n=n.baseState;var a=s=null,l=null,c=i;do{var u=c.lane;if((Ts&u)===u)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),n=c.hasEagerState?c.eagerState:e(n,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(a=l=d,s=n):l=l.next=d,Mt.lanes|=u,Ns|=u}c=c.next}while(c!==null&&c!==i);l===null?s=n:l.next=a,oo(n,t.memoizedState)||(Kr=!0),t.memoizedState=n,t.baseState=s,t.baseQueue=l,r.lastRenderedState=n}if(e=r.interleaved,e!==null){o=e;do i=o.lane,Mt.lanes|=i,Ns|=i,o=o.next;while(o!==e)}else o===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function ug(e){var t=Pn(),r=t.queue;if(r===null)throw Error(de(311));r.lastRenderedReducer=e;var n=r.dispatch,o=r.pending,i=t.memoizedState;if(o!==null){r.pending=null;var s=o=o.next;do i=e(i,s.action),s=s.next;while(s!==o);oo(i,t.memoizedState)||(Kr=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),r.lastRenderedState=i}return[i,n]}function hC(){}function pC(e,t){var r=Mt,n=Pn(),o=t(),i=!oo(n.memoizedState,o);if(i&&(n.memoizedState=o,Kr=!0),n=n.queue,hy(vC.bind(null,r,n,e),[e]),n.getSnapshot!==t||i||sr!==null&&sr.memoizedState.tag&1){if(r.flags|=2048,Jc(9,mC.bind(null,r,n,o,t),void 0,null),lr===null)throw Error(de(349));Ts&30||gC(r,t,o)}return o}function gC(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Mt.updateQueue,t===null?(t={lastEffect:null,stores:null},Mt.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function mC(e,t,r,n){t.value=r,t.getSnapshot=n,yC(t)&&bC(e)}function vC(e,t,r){return r(function(){yC(t)&&bC(e)})}function yC(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!oo(e,r)}catch{return!0}}function bC(e){var t=ti(e,1);t!==null&&eo(t,e,1,-1)}function mx(e){var t=bo();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Qc,lastRenderedState:e},t.queue=e,e=e.dispatch=v8.bind(null,Mt,e),[t.memoizedState,e]}function Jc(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=Mt.updateQueue,t===null?(t={lastEffect:null,stores:null},Mt.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function xC(){return Pn().memoizedState}function $d(e,t,r,n){var o=bo();Mt.flags|=e,o.memoizedState=Jc(1|t,r,void 0,n===void 0?null:n)}function Oh(e,t,r,n){var o=Pn();n=n===void 0?null:n;var i=void 0;if(Jt!==null){var s=Jt.memoizedState;if(i=s.destroy,n!==null&&uy(n,s.deps)){o.memoizedState=Jc(t,r,i,n);return}}Mt.flags|=e,o.memoizedState=Jc(1|t,r,i,n)}function vx(e,t){return $d(8390656,8,e,t)}function hy(e,t){return Oh(2048,8,e,t)}function wC(e,t){return Oh(4,2,e,t)}function kC(e,t){return Oh(4,4,e,t)}function SC(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function CC(e,t,r){return r=r!=null?r.concat([e]):null,Oh(4,4,SC.bind(null,t,e),r)}function py(){}function _C(e,t){var r=Pn();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&uy(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function BC(e,t){var r=Pn();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&uy(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function TC(e,t,r){return Ts&21?(oo(r,t)||(r=RS(),Mt.lanes|=r,Ns|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Kr=!0),e.memoizedState=r)}function g8(e,t){var r=gt;gt=r!==0&&4>r?r:4,e(!0);var n=lg.transition;lg.transition={};try{e(!1),t()}finally{gt=r,lg.transition=n}}function NC(){return Pn().memoizedState}function m8(e,t,r){var n=Fi(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},jC(e))zC(t,r);else if(r=uC(e,t,r,n),r!==null){var o=Dr();eo(r,e,n,o),EC(r,t,n)}}function v8(e,t,r){var n=Fi(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(jC(e))zC(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,r);if(o.hasEagerState=!0,o.eagerState=a,oo(a,s)){var l=t.interleaved;l===null?(o.next=o,iy(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}r=uC(e,t,o,n),r!==null&&(o=Dr(),eo(r,e,n,o),EC(r,t,n))}}function jC(e){var t=e.alternate;return e===Mt||t!==null&&t===Mt}function zC(e,t){Cc=Rf=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function EC(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Vv(e,r)}}var Af={readContext:Fn,useCallback:yr,useContext:yr,useEffect:yr,useImperativeHandle:yr,useInsertionEffect:yr,useLayoutEffect:yr,useMemo:yr,useReducer:yr,useRef:yr,useState:yr,useDebugValue:yr,useDeferredValue:yr,useTransition:yr,useMutableSource:yr,useSyncExternalStore:yr,useId:yr,unstable_isNewReconciler:!1},y8={readContext:Fn,useCallback:function(e,t){return bo().memoizedState=[e,t===void 0?null:t],e},useContext:Fn,useEffect:vx,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,$d(4194308,4,SC.bind(null,t,e),r)},useLayoutEffect:function(e,t){return $d(4194308,4,e,t)},useInsertionEffect:function(e,t){return $d(4,2,e,t)},useMemo:function(e,t){var r=bo();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=bo();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=m8.bind(null,Mt,e),[n.memoizedState,e]},useRef:function(e){var t=bo();return e={current:e},t.memoizedState=e},useState:mx,useDebugValue:py,useDeferredValue:function(e){return bo().memoizedState=e},useTransition:function(){var e=mx(!1),t=e[0];return e=g8.bind(null,e[1]),bo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Mt,o=bo();if(Rt){if(r===void 0)throw Error(de(407));r=r()}else{if(r=t(),lr===null)throw Error(de(349));Ts&30||gC(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,vx(vC.bind(null,n,i,e),[e]),n.flags|=2048,Jc(9,mC.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=bo(),t=lr.identifierPrefix;if(Rt){var r=Uo,n=Vo;r=(n&~(1<<32-Jn(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Kc++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=p8++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},b8={readContext:Fn,useCallback:_C,useContext:Fn,useEffect:hy,useImperativeHandle:CC,useInsertionEffect:wC,useLayoutEffect:kC,useMemo:BC,useReducer:cg,useRef:xC,useState:function(){return cg(Qc)},useDebugValue:py,useDeferredValue:function(e){var t=Pn();return TC(t,Jt.memoizedState,e)},useTransition:function(){var e=cg(Qc)[0],t=Pn().memoizedState;return[e,t]},useMutableSource:hC,useSyncExternalStore:pC,useId:NC,unstable_isNewReconciler:!1},x8={readContext:Fn,useCallback:_C,useContext:Fn,useEffect:hy,useImperativeHandle:CC,useInsertionEffect:wC,useLayoutEffect:kC,useMemo:BC,useReducer:ug,useRef:xC,useState:function(){return ug(Qc)},useDebugValue:py,useDeferredValue:function(e){var t=Pn();return Jt===null?t.memoizedState=e:TC(t,Jt.memoizedState,e)},useTransition:function(){var e=ug(Qc)[0],t=Pn().memoizedState;return[e,t]},useMutableSource:hC,useSyncExternalStore:pC,useId:NC,unstable_isNewReconciler:!1};function qn(e,t){if(e&&e.defaultProps){t=Dt({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function qm(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:Dt({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var qh={isMounted:function(e){return(e=e._reactInternals)?qs(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Dr(),o=Fi(e),i=Go(n,o);i.payload=t,r!=null&&(i.callback=r),t=Ri(e,i,o),t!==null&&(eo(t,e,o,n),Od(t,e,o))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Dr(),o=Fi(e),i=Go(n,o);i.tag=1,i.payload=t,r!=null&&(i.callback=r),t=Ri(e,i,o),t!==null&&(eo(t,e,o,n),Od(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Dr(),n=Fi(e),o=Go(r,n);o.tag=2,t!=null&&(o.callback=t),t=Ri(e,o,n),t!==null&&(eo(t,e,n,r),Od(t,e,n))}};function yx(e,t,r,n,o,i,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,i,s):t.prototype&&t.prototype.isPureReactComponent?!Vc(r,n)||!Vc(o,i):!0}function RC(e,t,r){var n=!1,o=Oi,i=t.contextType;return typeof i=="object"&&i!==null?i=Fn(i):(o=en(t)?_s:jr.current,n=t.contextTypes,i=(n=n!=null)?qa(e,o):Oi),t=new t(r,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=qh,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function bx(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&qh.enqueueReplaceState(t,t.state,null)}function $m(e,t,r,n){var o=e.stateNode;o.props=r,o.state=e.memoizedState,o.refs={},sy(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=Fn(i):(i=en(t)?_s:jr.current,o.context=qa(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(qm(e,t,i,r),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&qh.enqueueReplaceState(o,o.state,null),zf(e,r,o,n),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Va(e,t){try{var r="",n=t;do r+=X6(n),n=n.return;while(n);var o=r}catch(i){o=`
40
+ Error generating stack: `+i.message+`
41
+ `+i.stack}return{value:e,source:t,stack:o,digest:null}}function dg(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function Hm(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var w8=typeof WeakMap=="function"?WeakMap:Map;function AC(e,t,r){r=Go(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Pf||(Pf=!0,Jm=n),Hm(e,t)},r}function FC(e,t,r){r=Go(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var o=t.value;r.payload=function(){return n(o)},r.callback=function(){Hm(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){Hm(e,t),typeof n!="function"&&(Ai===null?Ai=new Set([this]):Ai.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),r}function xx(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new w8;var o=new Set;n.set(t,o)}else o=n.get(t),o===void 0&&(o=new Set,n.set(t,o));o.has(r)||(o.add(r),e=P8.bind(null,e,t,r),t.then(e,e))}function wx(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function kx(e,t,r,n,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Go(-1,1),t.tag=2,Ri(r,t,1))),r.lanes|=1),e)}var k8=li.ReactCurrentOwner,Kr=!1;function Fr(e,t,r,n){t.child=e===null?cC(t,null,r,n):Ha(t,e.child,r,n)}function Sx(e,t,r,n,o){r=r.render;var i=t.ref;return Ba(t,o),n=dy(e,t,r,n,i,o),r=fy(),e!==null&&!Kr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ri(e,t,o)):(Rt&&r&&Jv(t),t.flags|=1,Fr(e,t,n,o),t.child)}function Cx(e,t,r,n,o){if(e===null){var i=r.type;return typeof i=="function"&&!ky(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=i,PC(e,t,i,n,o)):(e=Ud(r.type,null,n,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var s=i.memoizedProps;if(r=r.compare,r=r!==null?r:Vc,r(s,n)&&e.ref===t.ref)return ri(e,t,o)}return t.flags|=1,e=Pi(i,n),e.ref=t.ref,e.return=t,t.child=e}function PC(e,t,r,n,o){if(e!==null){var i=e.memoizedProps;if(Vc(i,n)&&e.ref===t.ref)if(Kr=!1,t.pendingProps=n=i,(e.lanes&o)!==0)e.flags&131072&&(Kr=!0);else return t.lanes=e.lanes,ri(e,t,o)}return Wm(e,t,r,n,o)}function IC(e,t,r){var n=t.pendingProps,o=n.children,i=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},kt(ba,dn),dn|=r;else{if(!(r&1073741824))return e=i!==null?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,kt(ba,dn),dn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=i!==null?i.baseLanes:r,kt(ba,dn),dn|=n}else i!==null?(n=i.baseLanes|r,t.memoizedState=null):n=r,kt(ba,dn),dn|=n;return Fr(e,t,o,r),t.child}function MC(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Wm(e,t,r,n,o){var i=en(r)?_s:jr.current;return i=qa(t,i),Ba(t,o),r=dy(e,t,r,n,i,o),n=fy(),e!==null&&!Kr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ri(e,t,o)):(Rt&&n&&Jv(t),t.flags|=1,Fr(e,t,r,o),t.child)}function _x(e,t,r,n,o){if(en(r)){var i=!0;_f(t)}else i=!1;if(Ba(t,o),t.stateNode===null)Hd(e,t),RC(t,r,n),$m(t,r,n,o),n=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,c=r.contextType;typeof c=="object"&&c!==null?c=Fn(c):(c=en(r)?_s:jr.current,c=qa(t,c));var u=r.getDerivedStateFromProps,d=typeof u=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==n||l!==c)&&bx(t,s,n,c),wi=!1;var p=t.memoizedState;s.state=p,zf(t,n,s,o),l=t.memoizedState,a!==n||p!==l||Jr.current||wi?(typeof u=="function"&&(qm(t,r,u,n),l=t.memoizedState),(a=wi||yx(t,r,a,n,p,l,c))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),s.props=n,s.state=l,s.context=c,n=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{s=t.stateNode,dC(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:qn(t.type,a),s.props=c,d=t.pendingProps,p=s.context,l=r.contextType,typeof l=="object"&&l!==null?l=Fn(l):(l=en(r)?_s:jr.current,l=qa(t,l));var h=r.getDerivedStateFromProps;(u=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==d||p!==l)&&bx(t,s,n,l),wi=!1,p=t.memoizedState,s.state=p,zf(t,n,s,o);var m=t.memoizedState;a!==d||p!==m||Jr.current||wi?(typeof h=="function"&&(qm(t,r,h,n),m=t.memoizedState),(c=wi||yx(t,r,c,n,p,m,l)||!1)?(u||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(n,m,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(n,m,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=m),s.props=n,s.state=m,s.context=l,n=c):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),n=!1)}return Vm(e,t,r,n,i,o)}function Vm(e,t,r,n,o,i){MC(e,t);var s=(t.flags&128)!==0;if(!n&&!s)return o&&ux(t,r,!1),ri(e,t,i);n=t.stateNode,k8.current=t;var a=s&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&s?(t.child=Ha(t,e.child,null,i),t.child=Ha(t,null,a,i)):Fr(e,t,a,i),t.memoizedState=n.state,o&&ux(t,r,!0),t.child}function DC(e){var t=e.stateNode;t.pendingContext?cx(e,t.pendingContext,t.pendingContext!==t.context):t.context&&cx(e,t.context,!1),ay(e,t.containerInfo)}function Bx(e,t,r,n,o){return $a(),ty(o),t.flags|=256,Fr(e,t,r,n),t.child}var Um={dehydrated:null,treeContext:null,retryLane:0};function Gm(e){return{baseLanes:e,cachePool:null,transitions:null}}function LC(e,t,r){var n=t.pendingProps,o=Ft.current,i=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),kt(Ft,o&1),e===null)return Lm(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=n.children,e=n.fallback,i?(n=t.mode,i=t.child,s={mode:"hidden",children:s},!(n&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=Wh(s,n,0,null),e=ws(e,n,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Gm(r),t.memoizedState=Um,e):gy(t,s));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return S8(e,t,s,n,a,o,r);if(i){i=n.fallback,s=t.mode,o=e.child,a=o.sibling;var l={mode:"hidden",children:n.children};return!(s&1)&&t.child!==o?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=Pi(o,l),n.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=Pi(a,i):(i=ws(i,s,r,null),i.flags|=2),i.return=t,n.return=t,n.sibling=i,t.child=n,n=i,i=t.child,s=e.child.memoizedState,s=s===null?Gm(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~r,t.memoizedState=Um,n}return i=e.child,e=i.sibling,n=Pi(i,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function gy(e,t){return t=Wh({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function id(e,t,r,n){return n!==null&&ty(n),Ha(t,e.child,null,r),e=gy(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function S8(e,t,r,n,o,i,s){if(r)return t.flags&256?(t.flags&=-257,n=dg(Error(de(422))),id(e,t,s,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=n.fallback,o=t.mode,n=Wh({mode:"visible",children:n.children},o,0,null),i=ws(i,o,s,null),i.flags|=2,n.return=t,i.return=t,n.sibling=i,t.child=n,t.mode&1&&Ha(t,e.child,null,s),t.child.memoizedState=Gm(s),t.memoizedState=Um,i);if(!(t.mode&1))return id(e,t,s,null);if(o.data==="$!"){if(n=o.nextSibling&&o.nextSibling.dataset,n)var a=n.dgst;return n=a,i=Error(de(419)),n=dg(i,n,void 0),id(e,t,s,n)}if(a=(s&e.childLanes)!==0,Kr||a){if(n=lr,n!==null){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(n.suspendedLanes|s)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,ti(e,o),eo(n,e,o,-1))}return wy(),n=dg(Error(de(421))),id(e,t,s,n)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=I8.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,hn=Ei(o.nextSibling),pn=t,Rt=!0,Un=null,e!==null&&(Bn[Tn++]=Vo,Bn[Tn++]=Uo,Bn[Tn++]=Bs,Vo=e.id,Uo=e.overflow,Bs=t),t=gy(t,n.children),t.flags|=4096,t)}function Tx(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Om(e.return,t,r)}function fg(e,t,r,n,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailMode=o)}function OC(e,t,r){var n=t.pendingProps,o=n.revealOrder,i=n.tail;if(Fr(e,t,n.children,r),n=Ft.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Tx(e,r,t);else if(e.tag===19)Tx(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(kt(Ft,n),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(r=t.child,o=null;r!==null;)e=r.alternate,e!==null&&Ef(e)===null&&(o=r),r=r.sibling;r=o,r===null?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),fg(t,!1,o,r,i);break;case"backwards":for(r=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Ef(e)===null){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}fg(t,!0,r,null,i);break;case"together":fg(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Hd(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ri(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Ns|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(de(153));if(t.child!==null){for(e=t.child,r=Pi(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Pi(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function C8(e,t,r){switch(t.tag){case 3:DC(t),$a();break;case 5:fC(t);break;case 1:en(t.type)&&_f(t);break;case 4:ay(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,o=t.memoizedProps.value;kt(Nf,n._currentValue),n._currentValue=o;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(kt(Ft,Ft.current&1),t.flags|=128,null):r&t.child.childLanes?LC(e,t,r):(kt(Ft,Ft.current&1),e=ri(e,t,r),e!==null?e.sibling:null);kt(Ft,Ft.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return OC(e,t,r);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),kt(Ft,Ft.current),n)break;return null;case 22:case 23:return t.lanes=0,IC(e,t,r)}return ri(e,t,r)}var qC,Xm,$C,HC;qC=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};Xm=function(){};$C=function(e,t,r,n){var o=e.memoizedProps;if(o!==n){e=t.stateNode,fs(_o.current);var i=null;switch(r){case"input":o=mm(e,o),n=mm(e,n),i=[];break;case"select":o=Dt({},o,{value:void 0}),n=Dt({},n,{value:void 0}),i=[];break;case"textarea":o=bm(e,o),n=bm(e,n),i=[];break;default:typeof o.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=Sf)}wm(r,n);var s;r=null;for(c in o)if(!n.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var a=o[c];for(s in a)a.hasOwnProperty(s)&&(r||(r={}),r[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Dc.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in n){var l=n[c];if(a=o!=null?o[c]:void 0,n.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(r||(r={}),r[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(r||(r={}),r[s]=l[s])}else r||(i||(i=[]),i.push(c,r)),r=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Dc.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Ct("scroll",e),i||a===l||(i=[])):(i=i||[]).push(c,l))}r&&(i=i||[]).push("style",r);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};HC=function(e,t,r,n){r!==n&&(t.flags|=4)};function Ll(e,t){if(!Rt)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function br(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var o=e.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags&14680064,n|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags,n|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function _8(e,t,r){var n=t.pendingProps;switch(ey(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return br(t),null;case 1:return en(t.type)&&Cf(),br(t),null;case 3:return n=t.stateNode,Wa(),Tt(Jr),Tt(jr),cy(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(nd(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Un!==null&&(r0(Un),Un=null))),Xm(e,t),br(t),null;case 5:ly(t);var o=fs(Zc.current);if(r=t.type,e!==null&&t.stateNode!=null)$C(e,t,r,n,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(de(166));return br(t),null}if(e=fs(_o.current),nd(t)){n=t.stateNode,r=t.type;var i=t.memoizedProps;switch(n[xo]=t,n[Xc]=i,e=(t.mode&1)!==0,r){case"dialog":Ct("cancel",n),Ct("close",n);break;case"iframe":case"object":case"embed":Ct("load",n);break;case"video":case"audio":for(o=0;o<ac.length;o++)Ct(ac[o],n);break;case"source":Ct("error",n);break;case"img":case"image":case"link":Ct("error",n),Ct("load",n);break;case"details":Ct("toggle",n);break;case"input":Ib(n,i),Ct("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!i.multiple},Ct("invalid",n);break;case"textarea":Db(n,i),Ct("invalid",n)}wm(r,i),o=null;for(var s in i)if(i.hasOwnProperty(s)){var a=i[s];s==="children"?typeof a=="string"?n.textContent!==a&&(i.suppressHydrationWarning!==!0&&rd(n.textContent,a,e),o=["children",a]):typeof a=="number"&&n.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&rd(n.textContent,a,e),o=["children",""+a]):Dc.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&Ct("scroll",n)}switch(r){case"input":Xu(n),Mb(n,i,!0);break;case"textarea":Xu(n),Lb(n);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(n.onclick=Sf)}n=o,t.updateQueue=n,n!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=vS(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=s.createElement(r,{is:n.is}):(e=s.createElement(r),r==="select"&&(s=e,n.multiple?s.multiple=!0:n.size&&(s.size=n.size))):e=s.createElementNS(e,r),e[xo]=t,e[Xc]=n,qC(e,t,!1,!1),t.stateNode=e;e:{switch(s=km(r,n),r){case"dialog":Ct("cancel",e),Ct("close",e),o=n;break;case"iframe":case"object":case"embed":Ct("load",e),o=n;break;case"video":case"audio":for(o=0;o<ac.length;o++)Ct(ac[o],e);o=n;break;case"source":Ct("error",e),o=n;break;case"img":case"image":case"link":Ct("error",e),Ct("load",e),o=n;break;case"details":Ct("toggle",e),o=n;break;case"input":Ib(e,n),o=mm(e,n),Ct("invalid",e);break;case"option":o=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},o=Dt({},n,{value:void 0}),Ct("invalid",e);break;case"textarea":Db(e,n),o=bm(e,n),Ct("invalid",e);break;default:o=n}wm(r,o),a=o;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?xS(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&yS(e,l)):i==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&Lc(e,l):typeof l=="number"&&Lc(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Dc.hasOwnProperty(i)?l!=null&&i==="onScroll"&&Ct("scroll",e):l!=null&&Lv(e,i,l,s))}switch(r){case"input":Xu(e),Mb(e,n,!1);break;case"textarea":Xu(e),Lb(e);break;case"option":n.value!=null&&e.setAttribute("value",""+Li(n.value));break;case"select":e.multiple=!!n.multiple,i=n.value,i!=null?ka(e,!!n.multiple,i,!1):n.defaultValue!=null&&ka(e,!!n.multiple,n.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Sf)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return br(t),null;case 6:if(e&&t.stateNode!=null)HC(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(de(166));if(r=fs(Zc.current),fs(_o.current),nd(t)){if(n=t.stateNode,r=t.memoizedProps,n[xo]=t,(i=n.nodeValue!==r)&&(e=pn,e!==null))switch(e.tag){case 3:rd(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&rd(n.nodeValue,r,(e.mode&1)!==0)}i&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[xo]=t,t.stateNode=n}return br(t),null;case 13:if(Tt(Ft),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Rt&&hn!==null&&t.mode&1&&!(t.flags&128))aC(),$a(),t.flags|=98560,i=!1;else if(i=nd(t),n!==null&&n.dehydrated!==null){if(e===null){if(!i)throw Error(de(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(de(317));i[xo]=t}else $a(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;br(t),i=!1}else Un!==null&&(r0(Un),Un=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||Ft.current&1?rr===0&&(rr=3):wy())),t.updateQueue!==null&&(t.flags|=4),br(t),null);case 4:return Wa(),Xm(e,t),e===null&&Uc(t.stateNode.containerInfo),br(t),null;case 10:return oy(t.type._context),br(t),null;case 17:return en(t.type)&&Cf(),br(t),null;case 19:if(Tt(Ft),i=t.memoizedState,i===null)return br(t),null;if(n=(t.flags&128)!==0,s=i.rendering,s===null)if(n)Ll(i,!1);else{if(rr!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Ef(e),s!==null){for(t.flags|=128,Ll(i,!1),n=s.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)i=r,e=n,i.flags&=14680066,s=i.alternate,s===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return kt(Ft,Ft.current&1|2),t.child}e=e.sibling}i.tail!==null&&Gt()>Ua&&(t.flags|=128,n=!0,Ll(i,!1),t.lanes=4194304)}else{if(!n)if(e=Ef(s),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Ll(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Rt)return br(t),null}else 2*Gt()-i.renderingStartTime>Ua&&r!==1073741824&&(t.flags|=128,n=!0,Ll(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(r=i.last,r!==null?r.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Gt(),t.sibling=null,r=Ft.current,kt(Ft,n?r&1|2:r&1),t):(br(t),null);case 22:case 23:return xy(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?dn&1073741824&&(br(t),t.subtreeFlags&6&&(t.flags|=8192)):br(t),null;case 24:return null;case 25:return null}throw Error(de(156,t.tag))}function B8(e,t){switch(ey(t),t.tag){case 1:return en(t.type)&&Cf(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wa(),Tt(Jr),Tt(jr),cy(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ly(t),null;case 13:if(Tt(Ft),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(de(340));$a()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Tt(Ft),null;case 4:return Wa(),null;case 10:return oy(t.type._context),null;case 22:case 23:return xy(),null;case 24:return null;default:return null}}var sd=!1,Cr=!1,T8=typeof WeakSet=="function"?WeakSet:Set,Se=null;function ya(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Ut(e,t,n)}else r.current=null}function Ym(e,t,r){try{r()}catch(n){Ut(e,t,n)}}var Nx=!1;function N8(e,t){if(Rm=xf,e=XS(),Qv(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var s=0,a=-1,l=-1,c=0,u=0,d=e,p=null;t:for(;;){for(var h;d!==r||o!==0&&d.nodeType!==3||(a=s+o),d!==i||n!==0&&d.nodeType!==3||(l=s+n),d.nodeType===3&&(s+=d.nodeValue.length),(h=d.firstChild)!==null;)p=d,d=h;for(;;){if(d===e)break t;if(p===r&&++c===o&&(a=s),p===i&&++u===n&&(l=s),(h=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=h}r=a===-1||l===-1?null:{start:a,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Am={focusedElem:e,selectionRange:r},xf=!1,Se=t;Se!==null;)if(t=Se,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Se=e;else for(;Se!==null;){t=Se;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var g=m.memoizedProps,y=m.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:qn(t.type,g),y);v.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(de(163))}}catch(k){Ut(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,Se=e;break}Se=t.return}return m=Nx,Nx=!1,m}function _c(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Ym(t,r,i)}o=o.next}while(o!==n)}}function $h(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Zm(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function WC(e){var t=e.alternate;t!==null&&(e.alternate=null,WC(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[xo],delete t[Xc],delete t[Im],delete t[u8],delete t[d8])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function VC(e){return e.tag===5||e.tag===3||e.tag===4}function jx(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||VC(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Km(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Sf));else if(n!==4&&(e=e.child,e!==null))for(Km(e,t,r),e=e.sibling;e!==null;)Km(e,t,r),e=e.sibling}function Qm(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Qm(e,t,r),e=e.sibling;e!==null;)Qm(e,t,r),e=e.sibling}var dr=null,Hn=!1;function gi(e,t,r){for(r=r.child;r!==null;)UC(e,t,r),r=r.sibling}function UC(e,t,r){if(Co&&typeof Co.onCommitFiberUnmount=="function")try{Co.onCommitFiberUnmount(Fh,r)}catch{}switch(r.tag){case 5:Cr||ya(r,t);case 6:var n=dr,o=Hn;dr=null,gi(e,t,r),dr=n,Hn=o,dr!==null&&(Hn?(e=dr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):dr.removeChild(r.stateNode));break;case 18:dr!==null&&(Hn?(e=dr,r=r.stateNode,e.nodeType===8?ig(e.parentNode,r):e.nodeType===1&&ig(e,r),Hc(e)):ig(dr,r.stateNode));break;case 4:n=dr,o=Hn,dr=r.stateNode.containerInfo,Hn=!0,gi(e,t,r),dr=n,Hn=o;break;case 0:case 11:case 14:case 15:if(!Cr&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&Ym(r,t,s),o=o.next}while(o!==n)}gi(e,t,r);break;case 1:if(!Cr&&(ya(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){Ut(r,t,a)}gi(e,t,r);break;case 21:gi(e,t,r);break;case 22:r.mode&1?(Cr=(n=Cr)||r.memoizedState!==null,gi(e,t,r),Cr=n):gi(e,t,r);break;default:gi(e,t,r)}}function zx(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new T8),t.forEach(function(n){var o=M8.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function Dn(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var o=r[n];try{var i=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:dr=a.stateNode,Hn=!1;break e;case 3:dr=a.stateNode.containerInfo,Hn=!0;break e;case 4:dr=a.stateNode.containerInfo,Hn=!0;break e}a=a.return}if(dr===null)throw Error(de(160));UC(i,s,o),dr=null,Hn=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(c){Ut(o,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)GC(t,e),t=t.sibling}function GC(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Dn(t,e),po(e),n&4){try{_c(3,e,e.return),$h(3,e)}catch(g){Ut(e,e.return,g)}try{_c(5,e,e.return)}catch(g){Ut(e,e.return,g)}}break;case 1:Dn(t,e),po(e),n&512&&r!==null&&ya(r,r.return);break;case 5:if(Dn(t,e),po(e),n&512&&r!==null&&ya(r,r.return),e.flags&32){var o=e.stateNode;try{Lc(o,"")}catch(g){Ut(e,e.return,g)}}if(n&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,s=r!==null?r.memoizedProps:i,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&gS(o,i),km(a,s);var c=km(a,i);for(s=0;s<l.length;s+=2){var u=l[s],d=l[s+1];u==="style"?xS(o,d):u==="dangerouslySetInnerHTML"?yS(o,d):u==="children"?Lc(o,d):Lv(o,u,d,c)}switch(a){case"input":vm(o,i);break;case"textarea":mS(o,i);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var h=i.value;h!=null?ka(o,!!i.multiple,h,!1):p!==!!i.multiple&&(i.defaultValue!=null?ka(o,!!i.multiple,i.defaultValue,!0):ka(o,!!i.multiple,i.multiple?[]:"",!1))}o[Xc]=i}catch(g){Ut(e,e.return,g)}}break;case 6:if(Dn(t,e),po(e),n&4){if(e.stateNode===null)throw Error(de(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(g){Ut(e,e.return,g)}}break;case 3:if(Dn(t,e),po(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Hc(t.containerInfo)}catch(g){Ut(e,e.return,g)}break;case 4:Dn(t,e),po(e);break;case 13:Dn(t,e),po(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(yy=Gt())),n&4&&zx(e);break;case 22:if(u=r!==null&&r.memoizedState!==null,e.mode&1?(Cr=(c=Cr)||u,Dn(t,e),Cr=c):Dn(t,e),po(e),n&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!u&&e.mode&1)for(Se=e,u=e.child;u!==null;){for(d=Se=u;Se!==null;){switch(p=Se,h=p.child,p.tag){case 0:case 11:case 14:case 15:_c(4,p,p.return);break;case 1:ya(p,p.return);var m=p.stateNode;if(typeof m.componentWillUnmount=="function"){n=p,r=p.return;try{t=n,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(g){Ut(n,r,g)}}break;case 5:ya(p,p.return);break;case 22:if(p.memoizedState!==null){Rx(d);continue}}h!==null?(h.return=p,Se=h):Rx(d)}u=u.sibling}e:for(u=null,d=e;;){if(d.tag===5){if(u===null){u=d;try{o=d.stateNode,c?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=d.stateNode,l=d.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=bS("display",s))}catch(g){Ut(e,e.return,g)}}}else if(d.tag===6){if(u===null)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(g){Ut(e,e.return,g)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Dn(t,e),po(e),n&4&&zx(e);break;case 21:break;default:Dn(t,e),po(e)}}function po(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(VC(r)){var n=r;break e}r=r.return}throw Error(de(160))}switch(n.tag){case 5:var o=n.stateNode;n.flags&32&&(Lc(o,""),n.flags&=-33);var i=jx(e);Qm(e,i,o);break;case 3:case 4:var s=n.stateNode.containerInfo,a=jx(e);Km(e,a,s);break;default:throw Error(de(161))}}catch(l){Ut(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function j8(e,t,r){Se=e,XC(e)}function XC(e,t,r){for(var n=(e.mode&1)!==0;Se!==null;){var o=Se,i=o.child;if(o.tag===22&&n){var s=o.memoizedState!==null||sd;if(!s){var a=o.alternate,l=a!==null&&a.memoizedState!==null||Cr;a=sd;var c=Cr;if(sd=s,(Cr=l)&&!c)for(Se=o;Se!==null;)s=Se,l=s.child,s.tag===22&&s.memoizedState!==null?Ax(o):l!==null?(l.return=s,Se=l):Ax(o);for(;i!==null;)Se=i,XC(i),i=i.sibling;Se=o,sd=a,Cr=c}Ex(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,Se=i):Ex(e)}}function Ex(e){for(;Se!==null;){var t=Se;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Cr||$h(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!Cr)if(r===null)n.componentDidMount();else{var o=t.elementType===t.type?r.memoizedProps:qn(t.type,r.memoizedProps);n.componentDidUpdate(o,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&gx(t,i,n);break;case 3:var s=t.updateQueue;if(s!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}gx(t,s,r)}break;case 5:var a=t.stateNode;if(r===null&&t.flags&4){r=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var d=u.dehydrated;d!==null&&Hc(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(de(163))}Cr||t.flags&512&&Zm(t)}catch(p){Ut(t,t.return,p)}}if(t===e){Se=null;break}if(r=t.sibling,r!==null){r.return=t.return,Se=r;break}Se=t.return}}function Rx(e){for(;Se!==null;){var t=Se;if(t===e){Se=null;break}var r=t.sibling;if(r!==null){r.return=t.return,Se=r;break}Se=t.return}}function Ax(e){for(;Se!==null;){var t=Se;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{$h(4,t)}catch(l){Ut(t,r,l)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var o=t.return;try{n.componentDidMount()}catch(l){Ut(t,o,l)}}var i=t.return;try{Zm(t)}catch(l){Ut(t,i,l)}break;case 5:var s=t.return;try{Zm(t)}catch(l){Ut(t,s,l)}}}catch(l){Ut(t,t.return,l)}if(t===e){Se=null;break}var a=t.sibling;if(a!==null){a.return=t.return,Se=a;break}Se=t.return}}var z8=Math.ceil,Ff=li.ReactCurrentDispatcher,my=li.ReactCurrentOwner,Rn=li.ReactCurrentBatchConfig,ct=0,lr=null,Zt=null,hr=0,dn=0,ba=Gi(0),rr=0,eu=null,Ns=0,Hh=0,vy=0,Bc=null,Xr=null,yy=0,Ua=1/0,Ho=null,Pf=!1,Jm=null,Ai=null,ad=!1,Bi=null,If=0,Tc=0,e0=null,Wd=-1,Vd=0;function Dr(){return ct&6?Gt():Wd!==-1?Wd:Wd=Gt()}function Fi(e){return e.mode&1?ct&2&&hr!==0?hr&-hr:h8.transition!==null?(Vd===0&&(Vd=RS()),Vd):(e=gt,e!==0||(e=window.event,e=e===void 0?16:LS(e.type)),e):1}function eo(e,t,r,n){if(50<Tc)throw Tc=0,e0=null,Error(de(185));Su(e,r,n),(!(ct&2)||e!==lr)&&(e===lr&&(!(ct&2)&&(Hh|=r),rr===4&&Ci(e,hr)),tn(e,n),r===1&&ct===0&&!(t.mode&1)&&(Ua=Gt()+500,Lh&&Xi()))}function tn(e,t){var r=e.callbackNode;hR(e,t);var n=bf(e,e===lr?hr:0);if(n===0)r!==null&&$b(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&$b(r),t===1)e.tag===0?f8(Fx.bind(null,e)):oC(Fx.bind(null,e)),l8(function(){!(ct&6)&&Xi()}),r=null;else{switch(AS(n)){case 1:r=Wv;break;case 4:r=zS;break;case 16:r=yf;break;case 536870912:r=ES;break;default:r=yf}r=r_(r,YC.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function YC(e,t){if(Wd=-1,Vd=0,ct&6)throw Error(de(327));var r=e.callbackNode;if(Ta()&&e.callbackNode!==r)return null;var n=bf(e,e===lr?hr:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=Mf(e,n);else{t=n;var o=ct;ct|=2;var i=KC();(lr!==e||hr!==t)&&(Ho=null,Ua=Gt()+500,xs(e,t));do try{A8();break}catch(a){ZC(e,a)}while(!0);ny(),Ff.current=i,ct=o,Zt!==null?t=0:(lr=null,hr=0,t=rr)}if(t!==0){if(t===2&&(o=Tm(e),o!==0&&(n=o,t=t0(e,o))),t===1)throw r=eu,xs(e,0),Ci(e,n),tn(e,Gt()),r;if(t===6)Ci(e,n);else{if(o=e.current.alternate,!(n&30)&&!E8(o)&&(t=Mf(e,n),t===2&&(i=Tm(e),i!==0&&(n=i,t=t0(e,i))),t===1))throw r=eu,xs(e,0),Ci(e,n),tn(e,Gt()),r;switch(e.finishedWork=o,e.finishedLanes=n,t){case 0:case 1:throw Error(de(345));case 2:ss(e,Xr,Ho);break;case 3:if(Ci(e,n),(n&130023424)===n&&(t=yy+500-Gt(),10<t)){if(bf(e,0)!==0)break;if(o=e.suspendedLanes,(o&n)!==n){Dr(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Pm(ss.bind(null,e,Xr,Ho),t);break}ss(e,Xr,Ho);break;case 4:if(Ci(e,n),(n&4194240)===n)break;for(t=e.eventTimes,o=-1;0<n;){var s=31-Jn(n);i=1<<s,s=t[s],s>o&&(o=s),n&=~i}if(n=o,n=Gt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*z8(n/1960))-n,10<n){e.timeoutHandle=Pm(ss.bind(null,e,Xr,Ho),n);break}ss(e,Xr,Ho);break;case 5:ss(e,Xr,Ho);break;default:throw Error(de(329))}}}return tn(e,Gt()),e.callbackNode===r?YC.bind(null,e):null}function t0(e,t){var r=Bc;return e.current.memoizedState.isDehydrated&&(xs(e,t).flags|=256),e=Mf(e,t),e!==2&&(t=Xr,Xr=r,t!==null&&r0(t)),e}function r0(e){Xr===null?Xr=e:Xr.push.apply(Xr,e)}function E8(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var o=r[n],i=o.getSnapshot;o=o.value;try{if(!oo(i(),o))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ci(e,t){for(t&=~vy,t&=~Hh,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Jn(t),n=1<<r;e[r]=-1,t&=~n}}function Fx(e){if(ct&6)throw Error(de(327));Ta();var t=bf(e,0);if(!(t&1))return tn(e,Gt()),null;var r=Mf(e,t);if(e.tag!==0&&r===2){var n=Tm(e);n!==0&&(t=n,r=t0(e,n))}if(r===1)throw r=eu,xs(e,0),Ci(e,t),tn(e,Gt()),r;if(r===6)throw Error(de(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ss(e,Xr,Ho),tn(e,Gt()),null}function by(e,t){var r=ct;ct|=1;try{return e(t)}finally{ct=r,ct===0&&(Ua=Gt()+500,Lh&&Xi())}}function js(e){Bi!==null&&Bi.tag===0&&!(ct&6)&&Ta();var t=ct;ct|=1;var r=Rn.transition,n=gt;try{if(Rn.transition=null,gt=1,e)return e()}finally{gt=n,Rn.transition=r,ct=t,!(ct&6)&&Xi()}}function xy(){dn=ba.current,Tt(ba)}function xs(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,a8(r)),Zt!==null)for(r=Zt.return;r!==null;){var n=r;switch(ey(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&Cf();break;case 3:Wa(),Tt(Jr),Tt(jr),cy();break;case 5:ly(n);break;case 4:Wa();break;case 13:Tt(Ft);break;case 19:Tt(Ft);break;case 10:oy(n.type._context);break;case 22:case 23:xy()}r=r.return}if(lr=e,Zt=e=Pi(e.current,null),hr=dn=t,rr=0,eu=null,vy=Hh=Ns=0,Xr=Bc=null,ds!==null){for(t=0;t<ds.length;t++)if(r=ds[t],n=r.interleaved,n!==null){r.interleaved=null;var o=n.next,i=r.pending;if(i!==null){var s=i.next;i.next=o,n.next=s}r.pending=n}ds=null}return e}function ZC(e,t){do{var r=Zt;try{if(ny(),qd.current=Af,Rf){for(var n=Mt.memoizedState;n!==null;){var o=n.queue;o!==null&&(o.pending=null),n=n.next}Rf=!1}if(Ts=0,sr=Jt=Mt=null,Cc=!1,Kc=0,my.current=null,r===null||r.return===null){rr=1,eu=t,Zt=null;break}e:{var i=e,s=r.return,a=r,l=t;if(t=hr,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,u=a,d=u.tag;if(!(u.mode&1)&&(d===0||d===11||d===15)){var p=u.alternate;p?(u.updateQueue=p.updateQueue,u.memoizedState=p.memoizedState,u.lanes=p.lanes):(u.updateQueue=null,u.memoizedState=null)}var h=wx(s);if(h!==null){h.flags&=-257,kx(h,s,a,i,t),h.mode&1&&xx(i,c,t),t=h,l=c;var m=t.updateQueue;if(m===null){var g=new Set;g.add(l),t.updateQueue=g}else m.add(l);break e}else{if(!(t&1)){xx(i,c,t),wy();break e}l=Error(de(426))}}else if(Rt&&a.mode&1){var y=wx(s);if(y!==null){!(y.flags&65536)&&(y.flags|=256),kx(y,s,a,i,t),ty(Va(l,a));break e}}i=l=Va(l,a),rr!==4&&(rr=2),Bc===null?Bc=[i]:Bc.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var v=AC(i,l,t);px(i,v);break e;case 1:a=l;var b=i.type,x=i.stateNode;if(!(i.flags&128)&&(typeof b.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Ai===null||!Ai.has(x)))){i.flags|=65536,t&=-t,i.lanes|=t;var k=FC(i,a,t);px(i,k);break e}}i=i.return}while(i!==null)}JC(r)}catch(S){t=S,Zt===r&&r!==null&&(Zt=r=r.return);continue}break}while(!0)}function KC(){var e=Ff.current;return Ff.current=Af,e===null?Af:e}function wy(){(rr===0||rr===3||rr===2)&&(rr=4),lr===null||!(Ns&268435455)&&!(Hh&268435455)||Ci(lr,hr)}function Mf(e,t){var r=ct;ct|=2;var n=KC();(lr!==e||hr!==t)&&(Ho=null,xs(e,t));do try{R8();break}catch(o){ZC(e,o)}while(!0);if(ny(),ct=r,Ff.current=n,Zt!==null)throw Error(de(261));return lr=null,hr=0,rr}function R8(){for(;Zt!==null;)QC(Zt)}function A8(){for(;Zt!==null&&!oR();)QC(Zt)}function QC(e){var t=t_(e.alternate,e,dn);e.memoizedProps=e.pendingProps,t===null?JC(e):Zt=t,my.current=null}function JC(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=B8(r,t),r!==null){r.flags&=32767,Zt=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{rr=6,Zt=null;return}}else if(r=_8(r,t,dn),r!==null){Zt=r;return}if(t=t.sibling,t!==null){Zt=t;return}Zt=t=e}while(t!==null);rr===0&&(rr=5)}function ss(e,t,r){var n=gt,o=Rn.transition;try{Rn.transition=null,gt=1,F8(e,t,r,n)}finally{Rn.transition=o,gt=n}return null}function F8(e,t,r,n){do Ta();while(Bi!==null);if(ct&6)throw Error(de(327));r=e.finishedWork;var o=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(de(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(pR(e,i),e===lr&&(Zt=lr=null,hr=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||ad||(ad=!0,r_(yf,function(){return Ta(),null})),i=(r.flags&15990)!==0,r.subtreeFlags&15990||i){i=Rn.transition,Rn.transition=null;var s=gt;gt=1;var a=ct;ct|=4,my.current=null,N8(e,r),GC(r,e),e8(Am),xf=!!Rm,Am=Rm=null,e.current=r,j8(r),iR(),ct=a,gt=s,Rn.transition=i}else e.current=r;if(ad&&(ad=!1,Bi=e,If=o),i=e.pendingLanes,i===0&&(Ai=null),lR(r.stateNode),tn(e,Gt()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)o=t[r],n(o.value,{componentStack:o.stack,digest:o.digest});if(Pf)throw Pf=!1,e=Jm,Jm=null,e;return If&1&&e.tag!==0&&Ta(),i=e.pendingLanes,i&1?e===e0?Tc++:(Tc=0,e0=e):Tc=0,Xi(),null}function Ta(){if(Bi!==null){var e=AS(If),t=Rn.transition,r=gt;try{if(Rn.transition=null,gt=16>e?16:e,Bi===null)var n=!1;else{if(e=Bi,Bi=null,If=0,ct&6)throw Error(de(331));var o=ct;for(ct|=4,Se=e.current;Se!==null;){var i=Se,s=i.child;if(Se.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for(Se=c;Se!==null;){var u=Se;switch(u.tag){case 0:case 11:case 15:_c(8,u,i)}var d=u.child;if(d!==null)d.return=u,Se=d;else for(;Se!==null;){u=Se;var p=u.sibling,h=u.return;if(WC(u),u===c){Se=null;break}if(p!==null){p.return=h,Se=p;break}Se=h}}}var m=i.alternate;if(m!==null){var g=m.child;if(g!==null){m.child=null;do{var y=g.sibling;g.sibling=null,g=y}while(g!==null)}}Se=i}}if(i.subtreeFlags&2064&&s!==null)s.return=i,Se=s;else e:for(;Se!==null;){if(i=Se,i.flags&2048)switch(i.tag){case 0:case 11:case 15:_c(9,i,i.return)}var v=i.sibling;if(v!==null){v.return=i.return,Se=v;break e}Se=i.return}}var b=e.current;for(Se=b;Se!==null;){s=Se;var x=s.child;if(s.subtreeFlags&2064&&x!==null)x.return=s,Se=x;else e:for(s=b;Se!==null;){if(a=Se,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:$h(9,a)}}catch(S){Ut(a,a.return,S)}if(a===s){Se=null;break e}var k=a.sibling;if(k!==null){k.return=a.return,Se=k;break e}Se=a.return}}if(ct=o,Xi(),Co&&typeof Co.onPostCommitFiberRoot=="function")try{Co.onPostCommitFiberRoot(Fh,e)}catch{}n=!0}return n}finally{gt=r,Rn.transition=t}}return!1}function Px(e,t,r){t=Va(r,t),t=AC(e,t,1),e=Ri(e,t,1),t=Dr(),e!==null&&(Su(e,1,t),tn(e,t))}function Ut(e,t,r){if(e.tag===3)Px(e,e,r);else for(;t!==null;){if(t.tag===3){Px(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Ai===null||!Ai.has(n))){e=Va(r,e),e=FC(t,e,1),t=Ri(t,e,1),e=Dr(),t!==null&&(Su(t,1,e),tn(t,e));break}}t=t.return}}function P8(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=Dr(),e.pingedLanes|=e.suspendedLanes&r,lr===e&&(hr&r)===r&&(rr===4||rr===3&&(hr&130023424)===hr&&500>Gt()-yy?xs(e,0):vy|=r),tn(e,t)}function e_(e,t){t===0&&(e.mode&1?(t=Ku,Ku<<=1,!(Ku&130023424)&&(Ku=4194304)):t=1);var r=Dr();e=ti(e,t),e!==null&&(Su(e,t,r),tn(e,r))}function I8(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),e_(e,r)}function M8(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(de(314))}n!==null&&n.delete(t),e_(e,r)}var t_;t_=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Jr.current)Kr=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Kr=!1,C8(e,t,r);Kr=!!(e.flags&131072)}else Kr=!1,Rt&&t.flags&1048576&&iC(t,Tf,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Hd(e,t),e=t.pendingProps;var o=qa(t,jr.current);Ba(t,r),o=dy(null,t,n,e,o,r);var i=fy();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,en(n)?(i=!0,_f(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,sy(t),o.updater=qh,t.stateNode=o,o._reactInternals=t,$m(t,n,e,r),t=Vm(null,t,n,!0,i,r)):(t.tag=0,Rt&&i&&Jv(t),Fr(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Hd(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=L8(n),e=qn(n,e),o){case 0:t=Wm(null,t,n,e,r);break e;case 1:t=_x(null,t,n,e,r);break e;case 11:t=Sx(null,t,n,e,r);break e;case 14:t=Cx(null,t,n,qn(n.type,e),r);break e}throw Error(de(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:qn(n,o),Wm(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:qn(n,o),_x(e,t,n,o,r);case 3:e:{if(DC(t),e===null)throw Error(de(387));n=t.pendingProps,i=t.memoizedState,o=i.element,dC(e,t),zf(t,n,null,r);var s=t.memoizedState;if(n=s.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Va(Error(de(423)),t),t=Bx(e,t,n,r,o);break e}else if(n!==o){o=Va(Error(de(424)),t),t=Bx(e,t,n,r,o);break e}else for(hn=Ei(t.stateNode.containerInfo.firstChild),pn=t,Rt=!0,Un=null,r=cC(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if($a(),n===o){t=ri(e,t,r);break e}Fr(e,t,n,r)}t=t.child}return t;case 5:return fC(t),e===null&&Lm(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Fm(n,o)?s=null:i!==null&&Fm(n,i)&&(t.flags|=32),MC(e,t),Fr(e,t,s,r),t.child;case 6:return e===null&&Lm(t),null;case 13:return LC(e,t,r);case 4:return ay(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Ha(t,null,n,r):Fr(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:qn(n,o),Sx(e,t,n,o,r);case 7:return Fr(e,t,t.pendingProps,r),t.child;case 8:return Fr(e,t,t.pendingProps.children,r),t.child;case 12:return Fr(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,kt(Nf,n._currentValue),n._currentValue=s,i!==null)if(oo(i.value,s)){if(i.children===o.children&&!Jr.current){t=ri(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===n){if(i.tag===1){l=Go(-1,r&-r),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=r,l=i.alternate,l!==null&&(l.lanes|=r),Om(i.return,r,t),a.lanes|=r;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(de(341));s.lanes|=r,a=s.alternate,a!==null&&(a.lanes|=r),Om(s,r,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Fr(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,Ba(t,r),o=Fn(o),n=n(o),t.flags|=1,Fr(e,t,n,r),t.child;case 14:return n=t.type,o=qn(n,t.pendingProps),o=qn(n.type,o),Cx(e,t,n,o,r);case 15:return PC(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:qn(n,o),Hd(e,t),t.tag=1,en(n)?(e=!0,_f(t)):e=!1,Ba(t,r),RC(t,n,o),$m(t,n,o,r),Vm(null,t,n,!0,e,r);case 19:return OC(e,t,r);case 22:return IC(e,t,r)}throw Error(de(156,t.tag))};function r_(e,t){return jS(e,t)}function D8(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function En(e,t,r,n){return new D8(e,t,r,n)}function ky(e){return e=e.prototype,!(!e||!e.isReactComponent)}function L8(e){if(typeof e=="function")return ky(e)?1:0;if(e!=null){if(e=e.$$typeof,e===qv)return 11;if(e===$v)return 14}return 2}function Pi(e,t){var r=e.alternate;return r===null?(r=En(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Ud(e,t,r,n,o,i){var s=2;if(n=e,typeof e=="function")ky(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case ca:return ws(r.children,o,i,t);case Ov:s=8,o|=8;break;case fm:return e=En(12,r,t,o|2),e.elementType=fm,e.lanes=i,e;case hm:return e=En(13,r,t,o),e.elementType=hm,e.lanes=i,e;case pm:return e=En(19,r,t,o),e.elementType=pm,e.lanes=i,e;case fS:return Wh(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case uS:s=10;break e;case dS:s=9;break e;case qv:s=11;break e;case $v:s=14;break e;case xi:s=16,n=null;break e}throw Error(de(130,e==null?e:typeof e,""))}return t=En(s,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function ws(e,t,r,n){return e=En(7,e,n,t),e.lanes=r,e}function Wh(e,t,r,n){return e=En(22,e,n,t),e.elementType=fS,e.lanes=r,e.stateNode={isHidden:!1},e}function hg(e,t,r){return e=En(6,e,null,t),e.lanes=r,e}function pg(e,t,r){return t=En(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function O8(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Xp(0),this.expirationTimes=Xp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xp(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Sy(e,t,r,n,o,i,s,a,l){return e=new O8(e,t,r,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=En(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},sy(i),e}function q8(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:la,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function n_(e){if(!e)return Oi;e=e._reactInternals;e:{if(qs(e)!==e||e.tag!==1)throw Error(de(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(en(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(de(171))}if(e.tag===1){var r=e.type;if(en(r))return nC(e,r,t)}return t}function o_(e,t,r,n,o,i,s,a,l){return e=Sy(r,n,!0,e,o,i,s,a,l),e.context=n_(null),r=e.current,n=Dr(),o=Fi(r),i=Go(n,o),i.callback=t??null,Ri(r,i,o),e.current.lanes=o,Su(e,o,n),tn(e,n),e}function Vh(e,t,r,n){var o=t.current,i=Dr(),s=Fi(o);return r=n_(r),t.context===null?t.context=r:t.pendingContext=r,t=Go(i,s),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=Ri(o,t,s),e!==null&&(eo(e,o,s,i),Od(e,o,s)),s}function Df(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Ix(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function Cy(e,t){Ix(e,t),(e=e.alternate)&&Ix(e,t)}function $8(){return null}var i_=typeof reportError=="function"?reportError:function(e){console.error(e)};function _y(e){this._internalRoot=e}Uh.prototype.render=_y.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(de(409));Vh(e,t,null,null)};Uh.prototype.unmount=_y.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;js(function(){Vh(null,e,null,null)}),t[ei]=null}};function Uh(e){this._internalRoot=e}Uh.prototype.unstable_scheduleHydration=function(e){if(e){var t=IS();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Si.length&&t!==0&&t<Si[r].priority;r++);Si.splice(r,0,e),r===0&&DS(e)}};function By(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Gh(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Mx(){}function H8(e,t,r,n,o){if(o){if(typeof n=="function"){var i=n;n=function(){var c=Df(s);i.call(c)}}var s=o_(t,n,e,0,null,!1,!1,"",Mx);return e._reactRootContainer=s,e[ei]=s.current,Uc(e.nodeType===8?e.parentNode:e),js(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof n=="function"){var a=n;n=function(){var c=Df(l);a.call(c)}}var l=Sy(e,0,!1,null,null,!1,!1,"",Mx);return e._reactRootContainer=l,e[ei]=l.current,Uc(e.nodeType===8?e.parentNode:e),js(function(){Vh(t,l,r,n)}),l}function Xh(e,t,r,n,o){var i=r._reactRootContainer;if(i){var s=i;if(typeof o=="function"){var a=o;o=function(){var l=Df(s);a.call(l)}}Vh(t,s,e,o)}else s=H8(r,t,e,o,n);return Df(s)}FS=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=sc(t.pendingLanes);r!==0&&(Vv(t,r|1),tn(t,Gt()),!(ct&6)&&(Ua=Gt()+500,Xi()))}break;case 13:js(function(){var n=ti(e,1);if(n!==null){var o=Dr();eo(n,e,1,o)}}),Cy(e,1)}};Uv=function(e){if(e.tag===13){var t=ti(e,134217728);if(t!==null){var r=Dr();eo(t,e,134217728,r)}Cy(e,134217728)}};PS=function(e){if(e.tag===13){var t=Fi(e),r=ti(e,t);if(r!==null){var n=Dr();eo(r,e,t,n)}Cy(e,t)}};IS=function(){return gt};MS=function(e,t){var r=gt;try{return gt=e,t()}finally{gt=r}};Cm=function(e,t,r){switch(t){case"input":if(vm(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var o=Dh(n);if(!o)throw Error(de(90));pS(n),vm(n,o)}}}break;case"textarea":mS(e,r);break;case"select":t=r.value,t!=null&&ka(e,!!r.multiple,t,!1)}};SS=by;CS=js;var W8={usingClientEntryPoint:!1,Events:[_u,ha,Dh,wS,kS,by]},Ol={findFiberByHostInstance:us,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},V8={bundleType:Ol.bundleType,version:Ol.version,rendererPackageName:Ol.rendererPackageName,rendererConfig:Ol.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:li.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=TS(e),e===null?null:e.stateNode},findFiberByHostInstance:Ol.findFiberByHostInstance||$8,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ld=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ld.isDisabled&&ld.supportsFiber)try{Fh=ld.inject(V8),Co=ld}catch{}}Sn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W8;Sn.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!By(t))throw Error(de(200));return q8(e,t,null,r)};Sn.createRoot=function(e,t){if(!By(e))throw Error(de(299));var r=!1,n="",o=i_;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Sy(e,1,!1,null,null,r,!1,n,o),e[ei]=t.current,Uc(e.nodeType===8?e.parentNode:e),new _y(t)};Sn.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(de(188)):(e=Object.keys(e).join(","),Error(de(268,e)));return e=TS(t),e=e===null?null:e.stateNode,e};Sn.flushSync=function(e){return js(e)};Sn.hydrate=function(e,t,r){if(!Gh(t))throw Error(de(200));return Xh(null,e,t,!0,r)};Sn.hydrateRoot=function(e,t,r){if(!By(e))throw Error(de(405));var n=r!=null&&r.hydratedSources||null,o=!1,i="",s=i_;if(r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(s=r.onRecoverableError)),t=o_(t,null,e,1,r??null,o,!1,i,s),e[ei]=t.current,Uc(e),n)for(e=0;e<n.length;e++)r=n[e],o=r._getVersion,o=o(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,o]:t.mutableSourceEagerHydrationData.push(r,o);return new Uh(t)};Sn.render=function(e,t,r){if(!Gh(t))throw Error(de(200));return Xh(null,e,t,!1,r)};Sn.unmountComponentAtNode=function(e){if(!Gh(e))throw Error(de(40));return e._reactRootContainer?(js(function(){Xh(null,null,e,!1,function(){e._reactRootContainer=null,e[ei]=null})}),!0):!1};Sn.unstable_batchedUpdates=by;Sn.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Gh(r))throw Error(de(200));if(e==null||e._reactInternals===void 0)throw Error(de(38));return Xh(e,t,r,!1,n)};Sn.version="18.3.1-next-f1338f8080-20240426";function s_(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s_)}catch(e){console.error(e)}}s_(),sS.exports=Sn;var Lf=sS.exports,Dx=Lf;cm.createRoot=Dx.createRoot,cm.hydrateRoot=Dx.hydrateRoot;const gg=typeof window>"u"?global:window,mg="@griffel/";function U8(e,t){return gg[Symbol.for(mg+e)]||(gg[Symbol.for(mg+e)]=t),gg[Symbol.for(mg+e)]}const n0=U8("DEFINITION_LOOKUP_TABLE",{}),Nc="data-make-styles-bucket",G8="data-priority",o0="f",i0=7,Ty="___",X8=Ty.length+i0,Y8=0,Z8=1,K8={all:1,borderColor:1,borderStyle:1,borderWidth:1,borderBlock:1,borderBlockEnd:1,borderBlockStart:1,borderInline:1,borderInlineEnd:1,borderInlineStart:1},s0="DO_NOT_USE_DIRECTLY: @griffel/reset-value";function tu(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function Q8(e){const t=e.length;if(t===i0)return e;for(let r=t;r<i0;r++)e+="0";return e}function a_(e,t,r=[]){return Ty+Q8(tu(e+t))}function l_(e,t){let r="",n="";for(const o in e){const i=e[o];if(i===0){n+=o+" ";continue}const s=Array.isArray(i),a=t==="rtl"?(s?i[1]:i)+" ":(s?i[0]:i)+" ";r+=a,n+=a}return[r.slice(0,-1),n.slice(0,-1)]}function Of(e,t){const r={};for(const n in e){const[o,i]=l_(e[n],t);if(i===""){r[n]="";continue}const s=a_(i,t),a=s+(o===""?"":" "+o);n0[s]=[e[n],t],r[n]=a}return r}const Lx={};function ne(){let e=null,t="",r="";const n=new Array(arguments.length);for(let d=0;d<arguments.length;d++){const p=arguments[d];if(typeof p=="string"&&p!==""){const h=p.indexOf(Ty);if(h===-1)t+=p+" ";else{const m=p.substr(h,X8);h>0&&(t+=p.slice(0,h)),r+=m,n[d]=m}}}if(r==="")return t.slice(0,-1);const o=Lx[r];if(o!==void 0)return t+o;const i=[];for(let d=0;d<arguments.length;d++){const p=n[d];if(p){const h=n0[p];h&&(i.push(h[Y8]),e=h[Z8])}}const s=Object.assign.apply(Object,[{}].concat(i)),[a,l]=l_(s,e),c=a_(l,e,n),u=c+" "+a;return Lx[r]=u,n0[c]=[s,e],t+u}function J8(e){return Array.isArray(e)?e:[e]}function eA(e,t,r,n){const o=[];if(n[Nc]=t,n[G8]=String(r),e)for(const s in n)e.setAttribute(s,n[s]);function i(s){return e!=null&&e.sheet?e.sheet.insertRule(s,e.sheet.cssRules.length):o.push(s)}return{elementAttributes:n,insertRule:i,element:e,bucketName:t,cssRules(){return e!=null&&e.sheet?Array.from(e.sheet.cssRules).map(s=>s.cssText):o}}}const tA=["r","d","l","v","w","f","i","h","a","s","k","t","m","c"],Ox=tA.reduce((e,t,r)=>(e[t]=r,e),{});function rA(e,t,r){return(e==="m"?e+t:e)+r}function nA(e,t,r,n,o={}){var i,s;const a=e==="m",l=(i=o.m)!==null&&i!==void 0?i:"0",c=(s=o.p)!==null&&s!==void 0?s:0,u=rA(e,l,c);if(!n.stylesheets[u]){const d=t&&t.createElement("style"),p=eA(d,e,c,Object.assign({},n.styleElementAttributes,a&&{media:l}));n.stylesheets[u]=p,t!=null&&t.head&&d&&t.head.insertBefore(d,iA(t,r,e,n,o))}return n.stylesheets[u]}function oA(e,t,r){var n,o;const i=t+((n=r.m)!==null&&n!==void 0?n:""),s=e.getAttribute(Nc)+((o=e.media)!==null&&o!==void 0?o:"");return i===s}function iA(e,t,r,n,o={}){var i,s;const a=Ox[r],l=(i=o.m)!==null&&i!==void 0?i:"",c=(s=o.p)!==null&&s!==void 0?s:0;let u=g=>a-Ox[g.getAttribute(Nc)],d=e.head.querySelectorAll(`[${Nc}]`);if(r==="m"){const g=e.head.querySelectorAll(`[${Nc}="${r}"]`);g.length&&(d=g,u=y=>n.compareMediaQueries(l,y.media))}const p=g=>oA(g,r,o)?c-Number(g.getAttribute("data-priority")):u(g),h=d.length;let m=h-1;for(;m>=0;){const g=d.item(m);if(p(g)>0)return g.nextSibling;m--}return h>0?d.item(0):t?t.nextSibling:null}function qx(e,t){try{e.insertRule(t)}catch{}}let sA=0;const aA=(e,t)=>e<t?-1:e>t?1:0;function lA(e=typeof document>"u"?void 0:document,t={}){const{classNameHashSalt:r,unstable_filterCSSRule:n,insertionPoint:o,styleElementAttributes:i,compareMediaQueries:s=aA}=t,a={classNameHashSalt:r,insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(i),compareMediaQueries:s,id:`d${sA++}`,insertCSSRules(l){for(const c in l){const u=l[c];for(let d=0,p=u.length;d<p;d++){const[h,m]=J8(u[d]),g=nA(c,e,o||null,a,m);a.insertionCache[h]||(a.insertionCache[h]=c,n?n(h)&&qx(g,h):qx(g,h))}}}};return a}const Ny=()=>{const e={};return function(r,n){e[r.id]===void 0&&(r.insertCSSRules(n),e[r.id]=!0)}};function c_(e){return e.reduce(function(t,r){var n=r[0],o=r[1];return t[n]=o,t[o]=n,t},{})}function cA(e){return typeof e=="boolean"}function uA(e){return typeof e=="function"}function lc(e){return typeof e=="number"}function dA(e){return e===null||typeof e>"u"}function fA(e){return e&&typeof e=="object"}function hA(e){return typeof e=="string"}function Gd(e,t){return e.indexOf(t)!==-1}function pA(e){return parseFloat(e)===0?e:e[0]==="-"?e.slice(1):"-"+e}function cd(e,t,r,n){return t+pA(r)+n}function gA(e){var t=e.indexOf(".");if(t===-1)e=100-parseFloat(e)+"%";else{var r=e.length-t-2;e=100-parseFloat(e),e=e.toFixed(r)+"%"}return e}function u_(e){return e.replace(/ +/g," ").split(" ").map(function(t){return t.trim()}).filter(Boolean).reduce(function(t,r){var n=t.list,o=t.state,i=(r.match(/\(/g)||[]).length,s=(r.match(/\)/g)||[]).length;return o.parensDepth>0?n[n.length-1]=n[n.length-1]+" "+r:n.push(r),o.parensDepth+=i-s,{list:n,state:o}},{list:[],state:{parensDepth:0}}).list}function $x(e){var t=u_(e);if(t.length<=3||t.length>4)return e;var r=t[0],n=t[1],o=t[2],i=t[3];return[r,i,o,n].join(" ")}function mA(e){return!cA(e)&&!dA(e)}function vA(e){for(var t=[],r=0,n=0,o=!1;n<e.length;)!o&&e[n]===","?(t.push(e.substring(r,n).trim()),n++,r=n):e[n]==="("?(o=!0,n++):(e[n]===")"&&(o=!1),n++);return r!=n&&t.push(e.substring(r,n+1)),t}var ue={padding:function(t){var r=t.value;return lc(r)?r:$x(r)},textShadow:function(t){var r=t.value,n=vA(r).map(function(o){return o.replace(/(^|\s)(-*)([.|\d]+)/,function(i,s,a,l){if(l==="0")return i;var c=a===""?"-":"";return""+s+c+l})});return n.join(",")},borderColor:function(t){var r=t.value;return $x(r)},borderRadius:function(t){var r=t.value;if(lc(r))return r;if(Gd(r,"/")){var n=r.split("/"),o=n[0],i=n[1],s=ue.borderRadius({value:o.trim()}),a=ue.borderRadius({value:i.trim()});return s+" / "+a}var l=u_(r);switch(l.length){case 2:return l.reverse().join(" ");case 4:{var c=l[0],u=l[1],d=l[2],p=l[3];return[u,c,p,d].join(" ")}default:return r}},background:function(t){var r=t.value,n=t.valuesToConvert,o=t.isRtl,i=t.bgImgDirectionRegex,s=t.bgPosDirectionRegex;if(lc(r))return r;var a=r.replace(/(url\(.*?\))|(rgba?\(.*?\))|(hsl\(.*?\))|(#[a-fA-F0-9]+)|((^| )(\D)+( |$))/g,"").trim();return r=r.replace(a,ue.backgroundPosition({value:a,valuesToConvert:n,isRtl:o,bgPosDirectionRegex:s})),ue.backgroundImage({value:r,valuesToConvert:n,bgImgDirectionRegex:i})},backgroundImage:function(t){var r=t.value,n=t.valuesToConvert,o=t.bgImgDirectionRegex;return!Gd(r,"url(")&&!Gd(r,"linear-gradient(")?r:r.replace(o,function(i,s,a){return i.replace(a,n[a])})},backgroundPosition:function(t){var r=t.value,n=t.valuesToConvert,o=t.isRtl,i=t.bgPosDirectionRegex;return r.replace(o?/^((-|\d|\.)+%)/:null,function(s,a){return gA(a)}).replace(i,function(s){return n[s]})},backgroundPositionX:function(t){var r=t.value,n=t.valuesToConvert,o=t.isRtl,i=t.bgPosDirectionRegex;return lc(r)?r:ue.backgroundPosition({value:r,valuesToConvert:n,isRtl:o,bgPosDirectionRegex:i})},transition:function(t){var r=t.value,n=t.propertiesToConvert;return r.split(/,\s*/g).map(function(o){var i=o.split(" ");return i[0]=n[i[0]]||i[0],i.join(" ")}).join(", ")},transitionProperty:function(t){var r=t.value,n=t.propertiesToConvert;return r.split(/,\s*/g).map(function(o){return n[o]||o}).join(", ")},transform:function(t){var r=t.value,n="[^\\u0020-\\u007e]",o="(?:(?:(?:\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",i="((?:-?"+("(?:[0-9]*\\.[0-9]+|[0-9]+)(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|"+("-?"+("(?:[_a-z]|"+n+"|"+o+")")+("(?:[_a-z0-9-]|"+n+"|"+o+")")+"*")+")?")+")|(?:inherit|auto))",s=new RegExp("(translateX\\s*\\(\\s*)"+i+"(\\s*\\))","gi"),a=new RegExp("(translate\\s*\\(\\s*)"+i+"((?:\\s*,\\s*"+i+"){0,1}\\s*\\))","gi"),l=new RegExp("(translate3d\\s*\\(\\s*)"+i+"((?:\\s*,\\s*"+i+"){0,2}\\s*\\))","gi"),c=new RegExp("(rotate[ZY]?\\s*\\(\\s*)"+i+"(\\s*\\))","gi");return r.replace(s,cd).replace(a,cd).replace(l,cd).replace(c,cd)}};ue.objectPosition=ue.backgroundPosition;ue.margin=ue.padding;ue.borderWidth=ue.padding;ue.boxShadow=ue.textShadow;ue.webkitBoxShadow=ue.boxShadow;ue.mozBoxShadow=ue.boxShadow;ue.WebkitBoxShadow=ue.boxShadow;ue.MozBoxShadow=ue.boxShadow;ue.borderStyle=ue.borderColor;ue.webkitTransform=ue.transform;ue.mozTransform=ue.transform;ue.WebkitTransform=ue.transform;ue.MozTransform=ue.transform;ue.transformOrigin=ue.backgroundPosition;ue.webkitTransformOrigin=ue.transformOrigin;ue.mozTransformOrigin=ue.transformOrigin;ue.WebkitTransformOrigin=ue.transformOrigin;ue.MozTransformOrigin=ue.transformOrigin;ue.webkitTransition=ue.transition;ue.mozTransition=ue.transition;ue.WebkitTransition=ue.transition;ue.MozTransition=ue.transition;ue.webkitTransitionProperty=ue.transitionProperty;ue.mozTransitionProperty=ue.transitionProperty;ue.WebkitTransitionProperty=ue.transitionProperty;ue.MozTransitionProperty=ue.transitionProperty;ue["text-shadow"]=ue.textShadow;ue["border-color"]=ue.borderColor;ue["border-radius"]=ue.borderRadius;ue["background-image"]=ue.backgroundImage;ue["background-position"]=ue.backgroundPosition;ue["background-position-x"]=ue.backgroundPositionX;ue["object-position"]=ue.objectPosition;ue["border-width"]=ue.padding;ue["box-shadow"]=ue.textShadow;ue["-webkit-box-shadow"]=ue.textShadow;ue["-moz-box-shadow"]=ue.textShadow;ue["border-style"]=ue.borderColor;ue["-webkit-transform"]=ue.transform;ue["-moz-transform"]=ue.transform;ue["transform-origin"]=ue.transformOrigin;ue["-webkit-transform-origin"]=ue.transformOrigin;ue["-moz-transform-origin"]=ue.transformOrigin;ue["-webkit-transition"]=ue.transition;ue["-moz-transition"]=ue.transition;ue["transition-property"]=ue.transitionProperty;ue["-webkit-transition-property"]=ue.transitionProperty;ue["-moz-transition-property"]=ue.transitionProperty;var d_=c_([["paddingLeft","paddingRight"],["marginLeft","marginRight"],["left","right"],["borderLeft","borderRight"],["borderLeftColor","borderRightColor"],["borderLeftStyle","borderRightStyle"],["borderLeftWidth","borderRightWidth"],["borderTopLeftRadius","borderTopRightRadius"],["borderBottomLeftRadius","borderBottomRightRadius"],["padding-left","padding-right"],["margin-left","margin-right"],["border-left","border-right"],["border-left-color","border-right-color"],["border-left-style","border-right-style"],["border-left-width","border-right-width"],["border-top-left-radius","border-top-right-radius"],["border-bottom-left-radius","border-bottom-right-radius"]]),yA=["content"],Hx=c_([["ltr","rtl"],["left","right"],["w-resize","e-resize"],["sw-resize","se-resize"],["nw-resize","ne-resize"]]),bA=new RegExp("(^|\\W|_)((ltr)|(rtl)|(left)|(right))(\\W|_|$)","g"),xA=new RegExp("(left)|(right)");function f_(e){return Object.keys(e).reduce(function(t,r){var n=e[r];if(hA(n)&&(n=n.trim()),Gd(yA,r))return t[r]=n,t;var o=a0(r,n),i=o.key,s=o.value;return t[i]=s,t},Array.isArray(e)?[]:{})}function a0(e,t){var r=/\/\*\s?@noflip\s?\*\//.test(t),n=r?e:wA(e),o=r?t:kA(n,t);return{key:n,value:o}}function wA(e){return d_[e]||e}function kA(e,t){if(!mA(t))return t;if(fA(t))return f_(t);var r=lc(t),n=uA(t),o=r||n?t:t.replace(/ !important.*?$/,""),i=!r&&o.length!==t.length,s=ue[e],a;return s?a=s({value:o,valuesToConvert:Hx,propertiesToConvert:d_,isRtl:!0,bgImgDirectionRegex:bA,bgPosDirectionRegex:xA}):a=Hx[o]||o,i?a+" !important":a}const SA=/[A-Z]/g,CA=/^ms-/,vg={};function _A(e){return"-"+e.toLowerCase()}function xa(e){if(Object.prototype.hasOwnProperty.call(vg,e))return vg[e];if(e.substr(0,2)==="--")return e;const t=e.replace(SA,_A);return vg[e]=CA.test(t)?"-"+t:t}function h_(e){return e.charAt(0)==="&"?e.slice(1):e}var jc="-moz-",Ln="-webkit-",p_="comm",Yh="rule",jy="decl",BA="@media",TA="@import",NA="@supports",jA="@namespace",zA="@keyframes",g_="@layer",m_=Math.abs,Zh=String.fromCharCode,EA=Object.assign;function RA(e,t){return _r(e,0)^45?(((t<<2^_r(e,0))<<2^_r(e,1))<<2^_r(e,2))<<2^_r(e,3):0}function v_(e){return e.trim()}function y_(e,t){return(e=t.exec(e))?e[0]:e}function Gr(e,t,r){return e.replace(t,r)}function b_(e,t,r){return e.indexOf(t,r)}function _r(e,t){return e.charCodeAt(t)|0}function Ga(e,t,r){return e.slice(t,r)}function Wn(e){return e.length}function x_(e){return e.length}function hs(e,t){return t.push(e),e}function AA(e,t){return e.map(t).join("")}var Kh=1,Xa=1,w_=0,bn=0,It=0,hl="";function Qh(e,t,r,n,o,i,s,a){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Kh,column:Xa,length:s,return:"",siblings:a}}function yg(e,t){return EA(Qh("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function FA(){return It}function PA(){return It=bn>0?_r(hl,--bn):0,Xa--,It===10&&(Xa=1,Kh--),It}function An(){return It=bn<w_?_r(hl,bn++):0,Xa++,It===10&&(Xa=1,Kh++),It}function Ti(){return _r(hl,bn)}function Xd(){return bn}function Jh(e,t){return Ga(hl,e,t)}function Ya(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function k_(e){return Kh=Xa=1,w_=Wn(hl=e),bn=0,[]}function S_(e){return hl="",e}function Yd(e){return v_(Jh(bn-1,l0(e===91?e+2:e===40?e+1:e)))}function IA(e){return S_(DA(k_(e)))}function MA(e){for(;(It=Ti())&&It<33;)An();return Ya(e)>2||Ya(It)>3?"":" "}function DA(e){for(;An();)switch(Ya(It)){case 0:hs(C_(bn-1),e);break;case 2:hs(Yd(It),e);break;default:hs(Zh(It),e)}return e}function LA(e,t){for(;--t&&An()&&!(It<48||It>102||It>57&&It<65||It>70&&It<97););return Jh(e,Xd()+(t<6&&Ti()==32&&An()==32))}function l0(e){for(;An();)switch(It){case e:return bn;case 34:case 39:e!==34&&e!==39&&l0(It);break;case 40:e===41&&l0(e);break;case 92:An();break}return bn}function OA(e,t){for(;An()&&e+It!==57;)if(e+It===84&&Ti()===47)break;return"/*"+Jh(t,bn-1)+"*"+Zh(e===47?e:An())}function C_(e){for(;!Ya(Ti());)An();return Jh(e,bn)}function zy(e){return S_(Zd("",null,null,null,[""],e=k_(e),0,[0],e))}function Zd(e,t,r,n,o,i,s,a,l){for(var c=0,u=0,d=s,p=0,h=0,m=0,g=1,y=1,v=1,b=0,x="",k=o,S=i,_=n,N=x;y;)switch(m=b,b=An()){case 40:if(m!=108&&_r(N,d-1)==58){b_(N+=Gr(Yd(b),"&","&\f"),"&\f",m_(c?a[c-1]:0))!=-1&&(v=-1);break}case 34:case 39:case 91:N+=Yd(b);break;case 9:case 10:case 13:case 32:N+=MA(m);break;case 92:N+=LA(Xd()-1,7);continue;case 47:switch(Ti()){case 42:case 47:hs(qA(OA(An(),Xd()),t,r,l),l),(Ya(m||1)==5||Ya(Ti()||1)==5)&&Wn(N)&&Ga(N,-1,void 0)!==" "&&(N+=" ");break;default:N+="/"}break;case 123*g:a[c++]=Wn(N)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+u:v==-1&&(N=Gr(N,/\f/g,"")),h>0&&(Wn(N)-d||g===0&&m===47)&&hs(h>32?Vx(N+";",n,r,d-1,l):Vx(Gr(N," ","")+";",n,r,d-2,l),l);break;case 59:N+=";";default:if(hs(_=Wx(N,t,r,c,u,o,a,x,k=[],S=[],d,i),i),b===123)if(u===0)Zd(N,t,_,_,k,i,d,a,S);else{switch(p){case 99:if(_r(N,3)===110)break;case 108:if(_r(N,2)===97)break;default:u=0;case 100:case 109:case 115:}u?Zd(e,_,_,n&&hs(Wx(e,_,_,0,0,o,a,x,o,k=[],d,S),S),o,S,d,a,n?k:S):Zd(N,_,_,_,[""],S,0,a,S)}}c=u=h=0,g=v=1,x=N="",d=s;break;case 58:d=1+Wn(N),h=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&PA()==125)continue}switch(N+=Zh(b),b*g){case 38:v=u>0?1:(N+="\f",-1);break;case 44:a[c++]=(Wn(N)-1)*v,v=1;break;case 64:Ti()===45&&(N+=Yd(An())),p=Ti(),u=d=Wn(x=N+=C_(Xd())),b++;break;case 45:m===45&&Wn(N)==2&&(g=0)}}return i}function Wx(e,t,r,n,o,i,s,a,l,c,u,d){for(var p=o-1,h=o===0?i:[""],m=x_(h),g=0,y=0,v=0;g<n;++g)for(var b=0,x=Ga(e,p+1,p=m_(y=s[g])),k=e;b<m;++b)(k=v_(y>0?h[b]+" "+x:Gr(x,/&\f/g,h[b])))&&(l[v++]=k);return Qh(e,t,r,o===0?Yh:a,l,c,u,d)}function qA(e,t,r,n){return Qh(e,t,r,p_,Zh(FA()),Ga(e,2,-2),0,n)}function Vx(e,t,r,n,o){return Qh(e,t,r,jy,Ga(e,0,n),Ga(e,n+1,-1),n,o)}function zs(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Ey(e,t,r,n){switch(e.type){case g_:if(e.children.length)break;case TA:case jA:case jy:return e.return=e.return||e.value;case p_:return"";case zA:return e.return=e.value+"{"+zs(e.children,n)+"}";case Yh:if(!Wn(e.value=e.props.join(",")))return""}return Wn(r=zs(e.children,n))?e.return=e.value+"{"+r+"}":""}function __(e){var t=x_(e);return function(r,n,o,i){for(var s="",a=0;a<t;a++)s+=e[a](r,n,o,i)||"";return s}}function B_(e){return function(t){t.root||(t=t.return)&&e(t)}}const $A=e=>{switch(e.type){case Yh:if(typeof e.props=="string")return;e.props=e.props.map(t=>t.indexOf(":global(")===-1?t:IA(t).reduce((r,n,o,i)=>{if(n==="")return r;if(n===":"&&i[o+1]==="global"){const s=i[o+2].slice(1,-1)+" ";return r.unshift(s),i[o+1]="",i[o+2]="",r}return r.push(n),r},[]).join(""))}};function T_(e,t,r){switch(RA(e,t)){case 5103:return Ln+"print-"+e+e;case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:return Ln+e+e;case 4215:if(_r(e,9)===102||_r(e,t+1)===116)return Ln+e+e;break;case 4789:return jc+e+e;case 5349:case 4246:case 6968:return Ln+e+jc+e+e;case 6187:if(!y_(e,/grab/))return Gr(Gr(Gr(e,/(zoom-|grab)/,Ln+"$1"),/(image-set)/,Ln+"$1"),e,"")+e;case 5495:case 3959:return Gr(e,/(image-set\([^]*)/,Ln+"$1$`$1");case 4095:case 3583:case 4068:case 2532:return Gr(e,/(.+)-inline(.+)/,Ln+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Wn(e)-1-t>6)switch(_r(e,t+1)){case 102:if(_r(e,t+3)===108)return Gr(e,/(.+:)(.+)-([^]+)/,"$1"+Ln+"$2-$3$1"+jc+(_r(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~b_(e,"stretch")?T_(Gr(e,"stretch","fill-available"),t)+e:e}break}return e}function N_(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case jy:e.return=T_(e.value,e.length);return;case Yh:if(e.length)return AA(e.props,function(o){switch(y_(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return zs([yg(e,{props:[Gr(o,/:(read-\w+)/,":"+jc+"$1")]})],n);case"::placeholder":return zs([yg(e,{props:[Gr(o,/:(plac\w+)/,":"+Ln+"input-$1")]}),yg(e,{props:[Gr(o,/:(plac\w+)/,":"+jc+"$1")]})],n)}return""})}}function HA(e){switch(e.type){case"@container":case BA:case NA:case g_:return!0}return!1}const WA=e=>{HA(e)&&Array.isArray(e.children)&&e.children.sort((t,r)=>t.props[0]>r.props[0]?1:-1)};function VA(e,t){const r=[];return zs(zy(e),__([$A,WA,N_,Ey,B_(n=>r.push(n))])),r}const UA=/,( *[^ &])/g;function GA(e){return"&"+h_(e.replace(UA,",&$1"))}function Ux(e,t,r){let n=t;return r.length>0&&(n=r.reduceRight((o,i)=>`${GA(i)} { ${o} }`,t)),`${e}{${n}}`}function Gx(e,t){const{className:r,selectors:n,property:o,rtlClassName:i,rtlProperty:s,rtlValue:a,value:l}=e,{container:c,layer:u,media:d,supports:p}=t,h=`.${r}`,m=Array.isArray(l)?`${l.map(y=>`${xa(o)}: ${y}`).join(";")};`:`${xa(o)}: ${l};`;let g=Ux(h,m,n);if(s&&i){const y=`.${i}`,v=Array.isArray(a)?`${a.map(b=>`${xa(s)}: ${b}`).join(";")};`:`${xa(s)}: ${a};`;g+=Ux(y,v,n)}return d&&(g=`@media ${d} { ${g} }`),u&&(g=`@layer ${u} { ${g} }`),p&&(g=`@supports ${p} { ${g} }`),c&&(g=`@container ${c} { ${g} }`),VA(g)}function XA(e){let t="";for(const r in e){const n=e[r];if(typeof n=="string"||typeof n=="number"){t+=xa(r)+":"+n+";";continue}if(Array.isArray(n))for(const o of n)t+=xa(r)+":"+o+";"}return t}function Xx(e){let t="";for(const r in e)t+=`${r}{${XA(e[r])}}`;return t}function Yx(e,t){const r=`@keyframes ${e} {${t}}`,n=[];return zs(zy(r),__([Ey,N_,B_(o=>n.push(o))])),n}const YA={animation:[-1,["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimeline","animationTimingFunction"]],animationRange:[-1,["animationRangeEnd","animationRangeStart"]],background:[-2,["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"]],backgroundPosition:[-1,["backgroundPositionX","backgroundPositionY"]],border:[-2,["borderBottom","borderBottomColor","borderBottomStyle","borderBottomWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderTop","borderTopColor","borderTopStyle","borderTopWidth"]],borderBottom:[-1,["borderBottomColor","borderBottomStyle","borderBottomWidth"]],borderImage:[-1,["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"]],borderLeft:[-1,["borderLeftColor","borderLeftStyle","borderLeftWidth"]],borderRadius:[-1,["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"]],borderRight:[-1,["borderRightColor","borderRightStyle","borderRightWidth"]],borderTop:[-1,["borderTopColor","borderTopStyle","borderTopWidth"]],caret:[-1,["caretColor","caretShape"]],columnRule:[-1,["columnRuleColor","columnRuleStyle","columnRuleWidth"]],columns:[-1,["columnCount","columnWidth"]],containIntrinsicSize:[-1,["containIntrinsicHeight","containIntrinsicWidth"]],container:[-1,["containerName","containerType"]],flex:[-1,["flexBasis","flexGrow","flexShrink"]],flexFlow:[-1,["flexDirection","flexWrap"]],font:[-1,["fontFamily","fontSize","fontStretch","fontStyle","fontVariant","fontWeight","lineHeight"]],gap:[-1,["columnGap","rowGap"]],grid:[-1,["columnGap","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumnGap","gridRowGap","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","rowGap"]],gridArea:[-1,["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"]],gridColumn:[-1,["gridColumnEnd","gridColumnStart"]],gridRow:[-1,["gridRowEnd","gridRowStart"]],gridTemplate:[-1,["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"]],inset:[-1,["bottom","left","right","top"]],insetBlock:[-1,["insetBlockEnd","insetBlockStart"]],insetInline:[-1,["insetInlineEnd","insetInlineStart"]],listStyle:[-1,["listStyleImage","listStylePosition","listStyleType"]],margin:[-1,["marginBottom","marginLeft","marginRight","marginTop"]],marginBlock:[-1,["marginBlockEnd","marginBlockStart"]],marginInline:[-1,["marginInlineEnd","marginInlineStart"]],mask:[-1,["maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPosition","maskRepeat","maskSize"]],maskBorder:[-1,["maskBorderMode","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth"]],offset:[-1,["offsetAnchor","offsetDistance","offsetPath","offsetPosition","offsetRotate"]],outline:[-1,["outlineColor","outlineStyle","outlineWidth"]],overflow:[-1,["overflowX","overflowY"]],overscrollBehavior:[-1,["overscrollBehaviorX","overscrollBehaviorY"]],padding:[-1,["paddingBottom","paddingLeft","paddingRight","paddingTop"]],paddingBlock:[-1,["paddingBlockEnd","paddingBlockStart"]],paddingInline:[-1,["paddingInlineEnd","paddingInlineStart"]],placeContent:[-1,["alignContent","justifyContent"]],placeItems:[-1,["alignItems","justifyItems"]],placeSelf:[-1,["alignSelf","justifySelf"]],scrollMargin:[-1,["scrollMarginBottom","scrollMarginLeft","scrollMarginRight","scrollMarginTop"]],scrollMarginBlock:[-1,["scrollMarginBlockEnd","scrollMarginBlockStart"]],scrollMarginInline:[-1,["scrollMarginInlineEnd","scrollMarginInlineStart"]],scrollPadding:[-1,["scrollPaddingBottom","scrollPaddingLeft","scrollPaddingRight","scrollPaddingTop"]],scrollPaddingBlock:[-1,["scrollPaddingBlockEnd","scrollPaddingBlockStart"]],scrollPaddingInline:[-1,["scrollPaddingInlineEnd","scrollPaddingInlineStart"]],scrollTimeline:[-1,["scrollTimelineAxis","scrollTimelineName"]],textDecoration:[-1,["textDecorationColor","textDecorationLine","textDecorationStyle","textDecorationThickness"]],textEmphasis:[-1,["textEmphasisColor","textEmphasisStyle"]],transition:[-1,["transitionBehavior","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"]],viewTimeline:[-1,["viewTimelineAxis","viewTimelineName"]]};function Zx(e,t){return e.length===0?t:`${e} and ${t}`}function ZA(e){return e.substr(0,6)==="@media"}function KA(e){return e.substr(0,6)==="@layer"}const QA=/^(:|\[|>|&)/;function JA(e){return QA.test(e)}function eF(e){return e.substr(0,9)==="@supports"}function tF(e){return e.substring(0,10)==="@container"}function rF(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}const Kx={"us-w":"w","us-v":"i",nk:"l",si:"v",cu:"f",ve:"h",ti:"a"};function Qx(e,t){if(t.media)return"m";if(t.layer||t.supports)return"t";if(t.container)return"c";if(e.length>0){const r=e[0].trim();if(r.charCodeAt(0)===58)return Kx[r.slice(4,8)]||Kx[r.slice(3,5)]||"d"}return"d"}function ud(e,t){return e&&t+e}function j_(e){return ud(e.container,"c")+ud(e.media,"m")+ud(e.layer,"l")+ud(e.supports,"s")}function bg(e,t,r){const n=e+j_(r)+t,o=tu(n),i=o.charCodeAt(0);return i>=48&&i<=57?String.fromCharCode(i+17)+o.slice(1):o}function dd({property:e,selector:t,salt:r,value:n},o){return o0+tu(r+t+j_(o)+e+n.trim())}function nF(e){return e===s0}function xg(e){return e.replace(/>\s+/g,">")}function Jx(e){return YA[e]}function ew(e){var t;return(t=e==null?void 0:e[0])!==null&&t!==void 0?t:0}function wg(e,t,r,n){e[t]=n?[r,n]:r}function tw(e,t){return t.length>0?[e,Object.fromEntries(t)]:e}function kg(e,t,r,n,o,i){var s;const a=[];i!==0&&a.push(["p",i]),t==="m"&&o&&a.push(["m",o]),(s=e[t])!==null&&s!==void 0||(e[t]=[]),r&&e[t].push(tw(r,a)),n&&e[t].push(tw(n,a))}function Oo(e,t="",r=[],n={container:"",layer:"",media:"",supports:""},o={},i={},s){for(const a in e){if(K8.hasOwnProperty(a)){e[a];continue}const l=e[a];if(l!=null){if(nF(l)){const c=xg(r.join("")),u=bg(c,a,n);wg(o,u,0,void 0);continue}if(typeof l=="string"||typeof l=="number"){const c=xg(r.join("")),u=Jx(a);if(u){const k=u[1],S=Object.fromEntries(k.map(_=>[_,s0]));Oo(S,t,r,n,o,i)}const d=bg(c,a,n),p=dd({value:l.toString(),salt:t,selector:c,property:a},n),h=s&&{key:a,value:s}||a0(a,l),m=h.key!==a||h.value!==l,g=m?dd({value:h.value.toString(),property:h.key,salt:t,selector:c},n):void 0,y=m?{rtlClassName:g,rtlProperty:h.key,rtlValue:h.value}:void 0,v=Qx(r,n),[b,x]=Gx(Object.assign({className:p,selectors:r,property:a,value:l},y),n);wg(o,d,p,g),kg(i,v,b,x,n.media,ew(u))}else if(a==="animationName"){const c=Array.isArray(l)?l:[l],u=[],d=[];for(const p of c){const h=Xx(p),m=Xx(f_(p)),g=o0+tu(h);let y;const v=Yx(g,h);let b=[];h===m?y=g:(y=o0+tu(m),b=Yx(y,m));for(let x=0;x<v.length;x++)kg(i,"k",v[x],b[x],n.media,0);u.push(g),d.push(y)}Oo({animationName:u.join(", ")},t,r,n,o,i,d.join(", "))}else if(Array.isArray(l)){if(l.length===0)continue;const c=xg(r.join("")),u=Jx(a);if(u){const S=u[1],_=Object.fromEntries(S.map(N=>[N,s0]));Oo(_,t,r,n,o,i)}const d=bg(c,a,n),p=dd({value:l.map(S=>(S??"").toString()).join(";"),salt:t,selector:c,property:a},n),h=l.map(S=>a0(a,S));if(!!h.some(S=>S.key!==h[0].key))continue;const g=h[0].key!==a||h.some((S,_)=>S.value!==l[_]),y=g?dd({value:h.map(S=>{var _;return((_=S==null?void 0:S.value)!==null&&_!==void 0?_:"").toString()}).join(";"),salt:t,property:h[0].key,selector:c},n):void 0,v=g?{rtlClassName:y,rtlProperty:h[0].key,rtlValue:h.map(S=>S.value)}:void 0,b=Qx(r,n),[x,k]=Gx(Object.assign({className:p,selectors:r,property:a,value:l},v),n);wg(o,d,p,y),kg(i,b,x,k,n.media,ew(u))}else if(rF(l)){if(JA(a))Oo(l,t,r.concat(h_(a)),n,o,i);else if(ZA(a)){const c=Zx(n.media,a.slice(6).trim());Oo(l,t,r,Object.assign({},n,{media:c}),o,i)}else if(KA(a)){const c=(n.layer?`${n.layer}.`:"")+a.slice(6).trim();Oo(l,t,r,Object.assign({},n,{layer:c}),o,i)}else if(eF(a)){const c=Zx(n.supports,a.slice(9).trim());Oo(l,t,r,Object.assign({},n,{supports:c}),o,i)}else if(tF(a)){const c=a.slice(10).trim();Oo(l,t,r,Object.assign({},n,{container:c}),o,i)}}}}return[o,i]}function oF(e,t=""){const r={},n={};for(const o in e){const i=e[o],[s,a]=Oo(i,t);r[o]=s,Object.keys(a).forEach(l=>{n[l]=(n[l]||[]).concat(a[l])})}return[r,n]}function iF(e,t=Ny){const r=t();let n=null,o=null,i=null,s=null;function a(l){const{dir:c,renderer:u}=l;n===null&&([n,o]=oF(e,u.classNameHashSalt));const d=c==="ltr";return d?i===null&&(i=Of(n,c)):s===null&&(s=Of(n,c)),r(u,o),d?i:s}return a}function z_(e,t,r=Ny){const n=r();let o=null,i=null;function s(a){const{dir:l,renderer:c}=a,u=l==="ltr";return u?o===null&&(o=Of(e,l)):i===null&&(i=Of(e,l)),n(c,t),u?o:i}return s}function sF(e,t,r,n=Ny){const o=n();function i(s){const{dir:a,renderer:l}=s,c=a==="ltr"?e:t||e;return o(l,Array.isArray(r)?{r}:r),c}return i}function aF(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}const rw=pf.useInsertionEffect?pf.useInsertionEffect:void 0,Ry=()=>{const e={};return function(r,n){if(rw&&aF()){rw(()=>{r.insertCSSRules(n)},[r,n]);return}e[r.id]===void 0&&(r.insertCSSRules(n),e[r.id]=!0)}},lF=B.createContext(lA());function Tu(){return B.useContext(lF)}const E_=B.createContext("ltr"),cF=({children:e,dir:t})=>B.createElement(E_.Provider,{value:t},e);function Ay(){return B.useContext(E_)}function bt(e){const t=iF(e,Ry);return function(){const n=Ay(),o=Tu();return t({dir:n,renderer:o})}}function se(e,t){const r=z_(e,t,Ry);return function(){const o=Ay(),i=Tu();return r({dir:o,renderer:i})}}function Ge(e,t,r){const n=sF(e,t,r,Ry);return function(){const i=Ay(),s=Tu();return n({dir:i,renderer:s})}}function uF(e,t){if(t){const r=Object.keys(t).reduce((n,o)=>`${n}--${o}: ${t[o]}; `,"");return`${e} { ${r} }`}return`${e} {}`}const qf=Symbol.for("fui.slotRenderFunction"),Za=Symbol.for("fui.slotElementType"),R_=Symbol.for("fui.slotClassNameProp");function Ce(e,t){const{defaultProps:r,elementType:n}=t,o=A_(e),i={...r,...o,[Za]:n,[R_]:(o==null?void 0:o.className)||(r==null?void 0:r.className)};return o&&typeof o.children=="function"&&(i[qf]=o.children,i.children=r==null?void 0:r.children),i}function qe(e,t){if(!(e===null||e===void 0&&!t.renderByDefault))return Ce(e,t)}function A_(e){return typeof e=="string"||typeof e=="number"||dF(e)||B.isValidElement(e)?{children:e}:e}const dF=e=>typeof e=="object"&&e!==null&&Symbol.iterator in e;function ep(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&!B.isValidElement(e)}function nw(e){return!!(e!=null&&e.hasOwnProperty(Za))}const St=(...e)=>{const t={};for(const r of e){const n=Array.isArray(r)?r:Object.keys(r);for(const o of n)t[o]=1}return t},fF=St(["onAuxClick","onAnimationEnd","onAnimationStart","onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),hF=St(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","popover","focusgroup","ref","role","style","tabIndex","title","translate","spellCheck","name"]),pF=St(["itemID","itemProp","itemRef","itemScope","itemType"]),Kt=St(hF,fF,pF),gF=St(Kt,["form"]),F_=St(Kt,["height","loop","muted","preload","src","width"]),mF=St(F_,["poster"]),vF=St(Kt,["start"]),yF=St(Kt,["value"]),bF=St(Kt,["download","href","hrefLang","media","referrerPolicy","rel","target","type"]),xF=St(Kt,["dateTime"]),tp=St(Kt,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","popoverTarget","popoverTargetAction","type","value"]),wF=St(tp,["accept","alt","autoCorrect","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","minLength","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),kF=St(tp,["autoCapitalize","cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),SF=St(tp,["form","multiple","required"]),CF=St(Kt,["selected","value"]),_F=St(Kt,["cellPadding","cellSpacing"]),BF=Kt,TF=St(Kt,["colSpan","rowSpan","scope"]),NF=St(Kt,["colSpan","headers","rowSpan","scope"]),jF=St(Kt,["span"]),zF=St(Kt,["span"]),EF=St(Kt,["disabled","form"]),RF=St(Kt,["acceptCharset","action","encType","encType","method","noValidate","target"]),AF=St(Kt,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),FF=St(Kt,["alt","crossOrigin","height","src","srcSet","useMap","width"]),PF=St(Kt,["open","onCancel","onClose"]);function IF(e,t,r){const n=Array.isArray(t),o={},i=Object.keys(e);for(const s of i)(!n&&t[s]||n&&t.indexOf(s)>=0||s.indexOf("data-")===0||s.indexOf("aria-")===0)&&(!r||(r==null?void 0:r.indexOf(s))===-1)&&(o[s]=e[s]);return o}const MF={label:gF,audio:F_,video:mF,ol:vF,li:yF,a:bF,button:tp,input:wF,textarea:kF,select:SF,option:CF,table:_F,tr:BF,th:TF,td:NF,colGroup:jF,col:zF,fieldset:EF,form:RF,iframe:AF,img:FF,time:xF,dialog:PF};function P_(e,t,r){const n=e&&MF[e]||Kt;return n.as=1,IF(t,n,r)}const Nu=({primarySlotTagName:e,props:t,excludedPropNames:r})=>({root:{style:t.style,className:t.className},primary:P_(e,t,[...r||[],"style","className"])}),Je=(e,t,r)=>{var n;return P_((n=t.as)!==null&&n!==void 0?n:e,t,r)};function DF(e,t){const r={};for(const n in e)t.indexOf(n)===-1&&e.hasOwnProperty(n)&&(r[n]=e[n]);return r}function I_(e,t){const r=B.useRef(void 0),n=B.useCallback((i,s)=>(r.current!==void 0&&t(r.current),r.current=e(i,s),r.current),[t,e]),o=B.useCallback(()=>{r.current!==void 0&&(t(r.current),r.current=void 0)},[t]);return B.useEffect(()=>o,[o]),[n,o]}const M_=B.createContext(void 0),LF=M_.Provider,D_=B.createContext(void 0),OF="",qF=D_.Provider;function $F(){var e;return(e=B.useContext(D_))!==null&&e!==void 0?e:OF}const L_=B.createContext(void 0),HF={},WF=L_.Provider;function VF(){var e;return(e=B.useContext(L_))!==null&&e!==void 0?e:HF}const O_=B.createContext(void 0),UF={targetDocument:typeof document=="object"?document:void 0,dir:"ltr"},GF=O_.Provider;function mt(){var e;return(e=B.useContext(O_))!==null&&e!==void 0?e:UF}const q_=B.createContext(void 0),XF=q_.Provider;function Fy(){var e;return(e=B.useContext(q_))!==null&&e!==void 0?e:{}}const Py=B.createContext(void 0),YF=()=>{},ZF=Py.Provider,Le=e=>{var t,r;return(r=(t=B.useContext(Py))===null||t===void 0?void 0:t[e])!==null&&r!==void 0?r:YF},$_=B.createContext(void 0),KF=$_.Provider;function H_(){return B.useContext($_)}const W_=B.createContext(void 0);W_.Provider;function QF(){return B.useContext(W_)}const V_=B.createContext(void 0);V_.Provider;function JF(){var e;return(e=B.useContext(V_))!==null&&e!==void 0?e:{announce:()=>{}}}const eP=e=>(e(0),0),tP=e=>e;function U_(){const{targetDocument:e}=mt(),t=e==null?void 0:e.defaultView,r=t?t.requestAnimationFrame:eP,n=t?t.cancelAnimationFrame:tP;return I_(r,n)}function rP(e){return typeof e=="function"}const xn=e=>{"use no memo";const[t,r]=B.useState(()=>e.defaultState===void 0?e.initialState:nP(e.defaultState)?e.defaultState():e.defaultState),n=B.useRef(e.state);B.useEffect(()=>{n.current=e.state},[e.state]);const o=B.useCallback(i=>{rP(i)&&i(n.current)},[]);return oP(e.state)?[e.state,o]:[t,r]};function nP(e){return typeof e=="function"}const oP=e=>{"use no memo";const[t]=B.useState(()=>e!==void 0);return t};function rp(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}const G_={current:0},iP=B.createContext(void 0);function X_(){var e;return(e=B.useContext(iP))!==null&&e!==void 0?e:G_}function sP(){const e=X_()!==G_,[t,r]=B.useState(e);return rp()&&e&&B.useLayoutEffect(()=>{r(!1)},[]),t}const nr=rp()?B.useLayoutEffect:B.useEffect,ye=e=>{const t=B.useRef(()=>{throw new Error("Cannot call an event handler while rendering")});return nr(()=>{t.current=e},[e]),B.useCallback((...r)=>{const n=t.current;return n(...r)},[t])};function Y_(){const e=B.useRef(!0);return B.useEffect(()=>{e.current&&(e.current=!1)},[]),e.current}function Z_(){return B.useReducer(e=>e+1,0)[1]}const K_=B.createContext(void 0);K_.Provider;function aP(){return B.useContext(K_)||""}function or(e="fui-",t){"use no memo";const r=X_(),n=aP(),o=pf.useId;if(o){const i=o(),s=B.useMemo(()=>i.replace(/:/g,""),[i]);return t||`${n}${e}${s}`}return B.useMemo(()=>t||`${n}${e}${++r.current}`,[n,e,t,r])}function yt(...e){"use no memo";const t=B.useCallback(r=>{t.current=r;for(const n of e)typeof n=="function"?n(r):n&&(n.current=r)},[...e]);return t}const Q_=(e,t)=>!!(e!=null&&e.contains(t)),lP=e=>{const{targetDocument:t}=mt(),r=t==null?void 0:t.defaultView,{refs:n,callback:o,element:i,disabled:s,disabledFocusOnIframe:a,contains:l=Q_}=e,c=B.useRef(void 0);uP({element:i,disabled:a||s,callback:o,refs:n,contains:l});const u=B.useRef(!1),d=ye(h=>{if(u.current){u.current=!1;return}const m=h.composedPath()[0];n.every(y=>!l(y.current||null,m))&&!s&&o(h)}),p=ye(h=>{u.current=n.some(m=>l(m.current||null,h.target))});B.useEffect(()=>{if(s)return;let h=cP(r);const m=g=>{if(g===h){h=void 0;return}d(g)};return i==null||i.addEventListener("click",m,!0),i==null||i.addEventListener("touchstart",m,!0),i==null||i.addEventListener("contextmenu",m,!0),i==null||i.addEventListener("mousedown",p,!0),c.current=r==null?void 0:r.setTimeout(()=>{h=void 0},1),()=>{i==null||i.removeEventListener("click",m,!0),i==null||i.removeEventListener("touchstart",m,!0),i==null||i.removeEventListener("contextmenu",m,!0),i==null||i.removeEventListener("mousedown",p,!0),r==null||r.clearTimeout(c.current),h=void 0}},[d,i,s,p,r])},cP=e=>{if(e){var t,r;if(typeof e.window=="object"&&e.window===e)return e.event;var n;return(n=(r=e.ownerDocument)===null||r===void 0||(t=r.defaultView)===null||t===void 0?void 0:t.event)!==null&&n!==void 0?n:void 0}},Sg="fuiframefocus",uP=e=>{const{disabled:t,element:r,callback:n,contains:o=Q_,pollDuration:i=100,refs:s}=e,a=B.useRef(void 0),l=ye(c=>{s.every(d=>!o(d.current||null,c.target))&&!t&&n(c)});B.useEffect(()=>{if(!t)return r==null||r.addEventListener(Sg,l,!0),()=>{r==null||r.removeEventListener(Sg,l,!0)}},[r,t,l]),B.useEffect(()=>{var c;if(!t)return a.current=r==null||(c=r.defaultView)===null||c===void 0?void 0:c.setInterval(()=>{const u=r==null?void 0:r.activeElement;if((u==null?void 0:u.tagName)==="IFRAME"||(u==null?void 0:u.tagName)==="WEBVIEW"){const d=new CustomEvent(Sg,{bubbles:!0});u.dispatchEvent(d)}},i),()=>{var u;r==null||(u=r.defaultView)===null||u===void 0||u.clearInterval(a.current)}},[r,t,i])},dP=e=>-1,fP=e=>{};function Iy(){const{targetDocument:e}=mt(),t=e==null?void 0:e.defaultView,r=t?t.setTimeout:dP,n=t?t.clearTimeout:fP;return I_(r,n)}const hP=parseInt(B.version,10)>=19;function My(e){if(e)return hP?e.props.ref:e.ref}function wt(e,t){return(...r)=>{e==null||e(...r),t==null||t(...r)}}function Et(e,t){var r;const n=e;var o;return!!(!(n==null||(r=n.ownerDocument)===null||r===void 0)&&r.defaultView&&n instanceof n.ownerDocument.defaultView[(o=t==null?void 0:t.constructorName)!==null&&o!==void 0?o:"HTMLElement"])}function pP(e){if(!Et(e))return!1;const{tagName:t}=e;switch(t){case"BUTTON":case"A":case"INPUT":case"TEXTAREA":return!0}return e.isContentEditable}function J_(e){const t=[];let r=0;const n=(p,h)=>{const m=t[p];t[p]=t[h],t[h]=m},o=p=>{let h=p;const m=gP(p),g=mP(p);m<r&&e(t[m],t[h])<0&&(h=m),g<r&&e(t[g],t[h])<0&&(h=g),h!==p&&(n(h,p),o(h))};return{all:()=>t.slice(0,r),clear:()=>{r=0},contains:p=>{const h=t.indexOf(p);return h>=0&&h<r},dequeue:()=>{if(r===0)throw new Error("Priority queue empty");const p=t[0];return t[0]=t[--r],o(0),p},enqueue:p=>{t[r++]=p;let h=r-1,m=ow(h);for(;h>0&&e(t[m],t[h])>0;)n(m,h),h=m,m=ow(h)},peek:()=>r===0?null:t[0],remove:p=>{const h=t.indexOf(p);h===-1||h>=r||(t[h]=t[--r],o(h))},size:()=>r}}const gP=e=>2*e+1,mP=e=>2*e+2,ow=e=>Math.floor((e-1)/2);function e5(e){return!!e.type.isFluentTriggerComponent}function t5(e,t){return typeof e=="function"?e(t):e?r5(e,t):e||null}function r5(e,t){if(!B.isValidElement(e)||e.type===B.Fragment)throw new Error("A trigger element must be a single element for this component. Please ensure that you're not using React Fragments.");if(e5(e)){const r=r5(e.props.children,t);return B.cloneElement(e,void 0,r)}else return B.cloneElement(e,t)}function Dy(e){return B.isValidElement(e)?e5(e)?Dy(e.props.children):e:null}function c0(e){return e.type.startsWith("touch")}function u0(e){return e.type.startsWith("mouse")||["click","contextmenu","dblclick"].indexOf(e.type)>-1}function iw(e){return u0(e)?{clientX:e.clientX,clientY:e.clientY}:c0(e)?{clientX:e.touches[0].clientX,clientY:e.touches[0].clientY}:{clientX:0,clientY:0}}function sw(e){return e instanceof Set?e:new Set(e)}function n5(e){const[t,r]=xn({initialState:new Set,defaultState:B.useMemo(()=>e.defaultSelectedItems&&sw(e.defaultSelectedItems),[e.defaultSelectedItems]),state:B.useMemo(()=>e.selectedItems&&sw(e.selectedItems),[e.selectedItems])});return[t,(o,i)=>{var s;(s=e.onSelectionChange)===null||s===void 0||s.call(e,o,{selectedItems:i}),r(i)}]}function vP(e){const[t,r]=n5(e);return[t,{deselectItem:o=>r(o,new Set),selectItem:(o,i)=>r(o,new Set([i])),toggleAllItems:()=>{},toggleItem:(o,i)=>r(o,new Set([i])),clearItems:o=>r(o,new Set),isSelected:o=>{var i;return(i=t.has(o))!==null&&i!==void 0?i:!1}}]}function yP(e){const[t,r]=n5(e);return[t,{toggleItem:(o,i)=>{const s=new Set(t);t.has(i)?s.delete(i):s.add(i),r(o,s)},selectItem:(o,i)=>{const s=new Set(t);s.add(i),r(o,s)},deselectItem:(o,i)=>{const s=new Set(t);s.delete(i),r(o,s)},clearItems:o=>{r(o,new Set)},isSelected:o=>t.has(o),toggleAllItems:(o,i)=>{const s=i.every(l=>t.has(l)),a=new Set(t);s?a.clear():i.forEach(l=>a.add(l)),r(o,a)}}]}function bP(e){"use no memo";return e.selectionMode==="multiselect"?yP(e):vP(e)}function xP(e){return e&&!!e._virtual}function wP(e){return xP(e)&&e._virtual.parent||null}function kP(e,t={}){if(!e)return null;if(!t.skipVirtual){const n=wP(e);if(n)return n}const r=e.parentNode;return r&&r.nodeType===11?r.host:r}function aw(e,t){e&&Object.assign(e,{_virtual:{parent:t}})}function SP(e,t){return{...t,[Za]:e}}function o5(e,t){return function(n,o,i,s,a){return nw(o)?t(SP(n,o),null,i,s,a):nw(n)?t(n,o,i,s,a):e(n,o,i,s,a)}}function i5(e){const{as:t,[R_]:r,[Za]:n,[qf]:o,...i}=e,s=i,a=typeof n=="string"?t??n:n;return typeof a!="string"&&t&&(s.as=t),{elementType:a,props:s,renderFunction:o}}const ks=$6,CP=(e,t,r)=>{const{elementType:n,renderFunction:o,props:i}=i5(e),s={...i,...t};return o?ks.jsx(B.Fragment,{children:o(n,s)},r):ks.jsx(n,s,r)},_P=(e,t,r)=>{const{elementType:n,renderFunction:o,props:i}=i5(e),s={...i,...t};return o?ks.jsx(B.Fragment,{children:o(n,{...s,children:ks.jsxs(B.Fragment,{children:s.children},void 0)})},r):ks.jsxs(n,s,r)},J=o5(ks.jsx,CP),rt=o5(ks.jsxs,_P),s5=B.createContext(void 0),BP={},TP=s5.Provider,NP=()=>{const e=B.useContext(s5);return e??BP},jP=(e,t)=>J(GF,{value:t.provider,children:J(LF,{value:t.theme,children:J(qF,{value:t.themeClassName,children:J(ZF,{value:t.customStyleHooks_unstable,children:J(WF,{value:t.tooltip,children:J(cF,{dir:t.textDirection,children:J(TP,{value:t.iconDirection,children:J(XF,{value:t.overrides_unstable,children:rt(e.root,{children:[rp()?null:J("style",{dangerouslySetInnerHTML:{__html:e.serverStyleProps.cssRule},...e.serverStyleProps.attributes}),e.root.children]})})})})})})})})});var zP=typeof WeakRef<"u",lw=class{constructor(e){zP&&typeof e=="object"?this._weakRef=new WeakRef(e):this._instance=e}deref(){var e,t;let r;return this._weakRef?(r=(e=this._weakRef)==null?void 0:e.deref(),r||delete this._weakRef):(r=this._instance,(t=r==null?void 0:r.isDisposed)!=null&&t.call(r)&&delete this._instance),r}},wn="keyborg:focusin",ru="keyborg:focusout";function EP(e){const t=e.HTMLElement,r=t.prototype.focus;let n=!1;return t.prototype.focus=function(){n=!0},e.document.createElement("button").focus(),t.prototype.focus=r,n}var Cg=!1;function No(e){const t=e.focus;t.__keyborgNativeFocus?t.__keyborgNativeFocus.call(e):e.focus()}function RP(e){const t=e;Cg||(Cg=EP(t));const r=t.HTMLElement.prototype.focus;if(r.__keyborgNativeFocus)return;t.HTMLElement.prototype.focus=l;const n=new Set,o=u=>{const d=u.target;if(!d)return;const p=new CustomEvent(ru,{cancelable:!0,bubbles:!0,composed:!0,detail:{originalEvent:u}});d.dispatchEvent(p)},i=u=>{const d=u.target;if(!d)return;let p=u.composedPath()[0];const h=new Set;for(;p;)p.nodeType===Node.DOCUMENT_FRAGMENT_NODE?(h.add(p),p=p.host):p=p.parentNode;for(const m of n){const g=m.deref();(!g||!h.has(g))&&(n.delete(m),g&&(g.removeEventListener("focusin",i,!0),g.removeEventListener("focusout",o,!0)))}s(d,u.relatedTarget||void 0)},s=(u,d,p)=>{var h;const m=u.shadowRoot;if(m){for(const v of n)if(v.deref()===m)return;m.addEventListener("focusin",i,!0),m.addEventListener("focusout",o,!0),n.add(new lw(m));return}const g={relatedTarget:d,originalEvent:p},y=new CustomEvent(wn,{cancelable:!0,bubbles:!0,composed:!0,detail:g});y.details=g,(Cg||a.lastFocusedProgrammatically)&&(g.isFocusedProgrammatically=u===((h=a.lastFocusedProgrammatically)==null?void 0:h.deref()),a.lastFocusedProgrammatically=void 0),u.dispatchEvent(y)},a=t.__keyborgData={focusInHandler:i,focusOutHandler:o,shadowTargets:n};t.document.addEventListener("focusin",t.__keyborgData.focusInHandler,!0),t.document.addEventListener("focusout",t.__keyborgData.focusOutHandler,!0);function l(){const u=t.__keyborgData;return u&&(u.lastFocusedProgrammatically=new lw(this)),r.apply(this,arguments)}let c=t.document.activeElement;for(;c&&c.shadowRoot;)s(c),c=c.shadowRoot.activeElement;l.__keyborgNativeFocus=r}function AP(e){const t=e,r=t.HTMLElement.prototype,n=r.focus.__keyborgNativeFocus,o=t.__keyborgData;if(o){t.document.removeEventListener("focusin",o.focusInHandler,!0),t.document.removeEventListener("focusout",o.focusOutHandler,!0);for(const i of o.shadowTargets){const s=i.deref();s&&(s.removeEventListener("focusin",o.focusInHandler,!0),s.removeEventListener("focusout",o.focusOutHandler,!0))}o.shadowTargets.clear(),delete t.__keyborgData}n&&(r.focus=n)}var FP=500,a5=0,PP=class{constructor(e,t){this._isNavigatingWithKeyboard_DO_NOT_USE=!1,this._onFocusIn=n=>{if(this._isMouseOrTouchUsedTimer||this.isNavigatingWithKeyboard)return;const o=n.detail;o.relatedTarget&&(o.isFocusedProgrammatically||o.isFocusedProgrammatically===void 0||(this.isNavigatingWithKeyboard=!0))},this._onMouseDown=n=>{n.buttons===0||n.clientX===0&&n.clientY===0&&n.screenX===0&&n.screenY===0||this._onMouseOrTouch()},this._onMouseOrTouch=()=>{const n=this._win;n&&(this._isMouseOrTouchUsedTimer&&n.clearTimeout(this._isMouseOrTouchUsedTimer),this._isMouseOrTouchUsedTimer=n.setTimeout(()=>{delete this._isMouseOrTouchUsedTimer},1e3)),this.isNavigatingWithKeyboard=!1},this._onKeyDown=n=>{this.isNavigatingWithKeyboard?this._shouldDismissKeyboardNavigation(n)&&this._scheduleDismiss():this._shouldTriggerKeyboardNavigation(n)&&(this.isNavigatingWithKeyboard=!0)},this.id="c"+ ++a5,this._win=e;const r=e.document;if(t){const n=t.triggerKeys,o=t.dismissKeys;n!=null&&n.length&&(this._triggerKeys=new Set(n)),o!=null&&o.length&&(this._dismissKeys=new Set(o))}r.addEventListener(wn,this._onFocusIn,!0),r.addEventListener("mousedown",this._onMouseDown,!0),e.addEventListener("keydown",this._onKeyDown,!0),r.addEventListener("touchstart",this._onMouseOrTouch,!0),r.addEventListener("touchend",this._onMouseOrTouch,!0),r.addEventListener("touchcancel",this._onMouseOrTouch,!0),RP(e)}get isNavigatingWithKeyboard(){return this._isNavigatingWithKeyboard_DO_NOT_USE}set isNavigatingWithKeyboard(e){this._isNavigatingWithKeyboard_DO_NOT_USE!==e&&(this._isNavigatingWithKeyboard_DO_NOT_USE=e,this.update())}dispose(){const e=this._win;if(e){this._isMouseOrTouchUsedTimer&&(e.clearTimeout(this._isMouseOrTouchUsedTimer),this._isMouseOrTouchUsedTimer=void 0),this._dismissTimer&&(e.clearTimeout(this._dismissTimer),this._dismissTimer=void 0),AP(e);const t=e.document;t.removeEventListener(wn,this._onFocusIn,!0),t.removeEventListener("mousedown",this._onMouseDown,!0),e.removeEventListener("keydown",this._onKeyDown,!0),t.removeEventListener("touchstart",this._onMouseOrTouch,!0),t.removeEventListener("touchend",this._onMouseOrTouch,!0),t.removeEventListener("touchcancel",this._onMouseOrTouch,!0),delete this._win}}isDisposed(){return!!this._win}update(){var e,t;const r=(t=(e=this._win)==null?void 0:e.__keyborg)==null?void 0:t.refs;if(r)for(const n of Object.keys(r))Ly.update(r[n],this.isNavigatingWithKeyboard)}_shouldTriggerKeyboardNavigation(e){var t;if(e.key==="Tab")return!0;const r=(t=this._win)==null?void 0:t.document.activeElement,n=!this._triggerKeys||this._triggerKeys.has(e.keyCode),o=r&&(r.tagName==="INPUT"||r.tagName==="TEXTAREA"||r.isContentEditable);return n&&!o}_shouldDismissKeyboardNavigation(e){var t;return(t=this._dismissKeys)==null?void 0:t.has(e.keyCode)}_scheduleDismiss(){const e=this._win;if(e){this._dismissTimer&&(e.clearTimeout(this._dismissTimer),this._dismissTimer=void 0);const t=e.document.activeElement;this._dismissTimer=e.setTimeout(()=>{this._dismissTimer=void 0;const r=e.document.activeElement;t&&r&&t===r&&(this.isNavigatingWithKeyboard=!1)},FP)}}},Ly=class l5{constructor(t,r){this._cb=[],this._id="k"+ ++a5,this._win=t;const n=t.__keyborg;n?(this._core=n.core,n.refs[this._id]=this):(this._core=new PP(t,r),t.__keyborg={core:this._core,refs:{[this._id]:this}})}static create(t,r){return new l5(t,r)}static dispose(t){t.dispose()}static update(t,r){t._cb.forEach(n=>n(r))}dispose(){var t;const r=(t=this._win)==null?void 0:t.__keyborg;r!=null&&r.refs[this._id]&&(delete r.refs[this._id],Object.keys(r.refs).length===0&&(r.core.dispose(),delete this._win.__keyborg)),this._cb=[],delete this._core,delete this._win}isNavigatingWithKeyboard(){var t;return!!((t=this._core)!=null&&t.isNavigatingWithKeyboard)}subscribe(t){this._cb.push(t)}unsubscribe(t){const r=this._cb.indexOf(t);r>=0&&this._cb.splice(r,1)}setVal(t){this._core&&(this._core.isNavigatingWithKeyboard=t)}};function np(e,t){return Ly.create(e,t)}function op(e){Ly.dispose(e)}/*!
42
+ * Copyright (c) Microsoft Corporation. All rights reserved.
43
+ * Licensed under the MIT License.
44
+ *//*!
45
+ * Copyright (c) Microsoft Corporation. All rights reserved.
46
+ * Licensed under the MIT License.
47
+ */const to="data-tabster",IP="data-tabster-dummy",c5=`:is(${["a[href]","button","input","select","textarea","*[tabindex]","*[contenteditable]","details > summary","audio[controls]","video[controls]"].join(", ")}):not(:disabled)`,Xo={EscapeGroupper:1,Restorer:2,Deloser:3},mi={Invisible:0,PartiallyVisible:1,Visible:2},Ka={Source:0,Target:1},Gn={Both:0,Vertical:1,Horizontal:2,Grid:3,GridLinear:4},qt={ArrowUp:1,ArrowDown:2,ArrowLeft:3,ArrowRight:4,PageUp:5,PageDown:6,Home:7,End:8},Kd={Unlimited:0,Limited:1,LimitedTrapFocus:2},$f={Enter:1,Escape:2},MP={Outside:2};/*!
48
+ * Copyright (c) Microsoft Corporation. All rights reserved.
49
+ * Licensed under the MIT License.
50
+ */function pr(e,t){var r;return(r=e.storageEntry(t))===null||r===void 0?void 0:r.tabster}function u5(e,t,r){var n,o,i;const s=r||e._noop?void 0:t.getAttribute(to);let a=e.storageEntry(t),l;if(s)if(s!==((n=a==null?void 0:a.attr)===null||n===void 0?void 0:n.string))try{const p=JSON.parse(s);if(typeof p!="object")throw new Error(`Value is not a JSON object, got '${s}'.`);l={string:s,object:p}}catch{}else return;else if(!a)return;a||(a=e.storageEntry(t,!0)),a.tabster||(a.tabster={});const c=a.tabster||{},u=((o=a.attr)===null||o===void 0?void 0:o.object)||{},d=(l==null?void 0:l.object)||{};for(const p of Object.keys(u))if(!d[p]){if(p==="root"){const h=c[p];h&&e.root.onRoot(h,!0)}switch(p){case"deloser":case"root":case"groupper":case"modalizer":case"restorer":case"mover":const h=c[p];h&&(h.dispose(),delete c[p]);break;case"observed":delete c[p],e.observedElement&&e.observedElement.onObservedElementUpdate(t);break;case"focusable":case"outline":case"uncontrolled":case"sys":delete c[p];break}}for(const p of Object.keys(d)){const h=d.sys;switch(p){case"deloser":c.deloser?c.deloser.setProps(d.deloser):e.deloser&&(c.deloser=e.deloser.createDeloser(t,d.deloser));break;case"root":c.root?c.root.setProps(d.root):c.root=e.root.createRoot(t,d.root,h),e.root.onRoot(c.root);break;case"modalizer":{let m;const g=e.modalizer;if(c.modalizer){const y=d.modalizer,v=y.id;v&&((i=u==null?void 0:u.modalizer)===null||i===void 0?void 0:i.id)!==v?(c.modalizer.dispose(),m=y):c.modalizer.setProps(y)}else g&&(m=d.modalizer);g&&m&&(c.modalizer=g.createModalizer(t,m,h))}break;case"restorer":c.restorer?c.restorer.setProps(d.restorer):e.restorer&&d.restorer&&(c.restorer=e.restorer.createRestorer(t,d.restorer));break;case"focusable":c.focusable=d.focusable;break;case"groupper":c.groupper?c.groupper.setProps(d.groupper):e.groupper&&(c.groupper=e.groupper.createGroupper(t,d.groupper,h));break;case"mover":c.mover?c.mover.setProps(d.mover):e.mover&&(c.mover=e.mover.createMover(t,d.mover,h));break;case"observed":e.observedElement&&(c.observed=d.observed,e.observedElement.onObservedElementUpdate(t));break;case"uncontrolled":c.uncontrolled=d.uncontrolled;break;case"outline":e.outline&&(c.outline=d.outline);break;case"sys":c.sys=d.sys;break;default:console.error(`Unknown key '${p}' in data-tabster attribute value.`)}}l?a.attr=l:(Object.keys(c).length===0&&(delete a.tabster,delete a.attr),e.storageEntry(t,!1))}/*!
51
+ * Copyright (c) Microsoft Corporation. All rights reserved.
52
+ * Licensed under the MIT License.
53
+ */const DP="tabster:focusin",LP="tabster:focusout",OP="tabster:movefocus",qP="tabster:modalizer:active",$P="tabster:modalizer:inactive",HP="tabster:mover:state",d0="tabster:mover:movefocus",cw="tabster:mover:memorized-element",f0="tabster:groupper:movefocus",h0="tabster:restorer:restore-focus",WP="tabster:root:focus",VP="tabster:root:blur",UP=typeof CustomEvent<"u"?CustomEvent:function(){};class co extends UP{constructor(t,r){super(t,{bubbles:!0,cancelable:!0,composed:!0,detail:r}),this.details=r}}class GP extends co{constructor(t){super(DP,t)}}class XP extends co{constructor(t){super(LP,t)}}class Ii extends co{constructor(t){super(OP,t)}}class uw extends co{constructor(t){super(HP,t)}}class YP extends co{constructor(t){super(d0,t)}}class dw extends co{constructor(t){super(f0,t)}}class ZP extends co{constructor(t){super(qP,t)}}class KP extends co{constructor(t){super($P,t)}}class fw extends co{constructor(){super(h0)}}class QP extends co{constructor(t){super(WP,t)}}class JP extends co{constructor(t){super(VP,t)}}/*!
54
+ * Copyright (c) Microsoft Corporation. All rights reserved.
55
+ * Licensed under the MIT License.
56
+ */const eI=e=>new MutationObserver(e),tI=(e,t,r,n)=>e.createTreeWalker(t,r,n),rI=e=>e?e.parentNode:null,nI=e=>e?e.parentElement:null,oI=(e,t)=>!!(t&&(e!=null&&e.contains(t))),iI=e=>e.activeElement,sI=(e,t)=>e.querySelector(t),aI=(e,t)=>Array.prototype.slice.call(e.querySelectorAll(t),0),lI=(e,t)=>e.getElementById(t),cI=e=>(e==null?void 0:e.firstChild)||null,uI=e=>(e==null?void 0:e.lastChild)||null,dI=e=>(e==null?void 0:e.nextSibling)||null,fI=e=>(e==null?void 0:e.previousSibling)||null,hI=e=>(e==null?void 0:e.firstElementChild)||null,pI=e=>(e==null?void 0:e.lastElementChild)||null,gI=e=>(e==null?void 0:e.nextElementSibling)||null,mI=e=>(e==null?void 0:e.previousElementSibling)||null,vI=(e,t)=>e.appendChild(t),yI=(e,t,r)=>e.insertBefore(t,r),bI=e=>{var t;return((t=e.ownerDocument)===null||t===void 0?void 0:t.getSelection())||null},xI=(e,t)=>e.ownerDocument.getElementsByName(t),le={createMutationObserver:eI,createTreeWalker:tI,getParentNode:rI,getParentElement:nI,nodeContains:oI,getActiveElement:iI,querySelector:sI,querySelectorAll:aI,getElementById:lI,getFirstChild:cI,getLastChild:uI,getNextSibling:dI,getPreviousSibling:fI,getFirstElementChild:hI,getLastElementChild:pI,getNextElementSibling:gI,getPreviousElementSibling:mI,appendChild:vI,insertBefore:yI,getSelection:bI,getElementsByName:xI};function wI(e){for(const t of Object.keys(e))le[t]=e[t]}/*!
57
+ * Copyright (c) Microsoft Corporation. All rights reserved.
58
+ * Licensed under the MIT License.
59
+ */let p0;const hw=typeof DOMRect<"u"?DOMRect:class{constructor(e,t,r,n){this.left=e||0,this.top=t||0,this.right=(e||0)+(r||0),this.bottom=(t||0)+(n||0)}};let kI=0;try{document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT),p0=!1}catch{p0=!0}const _g=100;function ci(e){const t=e();let r=t.__tabsterInstanceContext;return r||(r={elementByUId:{},basics:{Promise:t.Promise||void 0,WeakRef:t.WeakRef||void 0},containerBoundingRectCache:{},lastContainerBoundingRectCacheId:0,fakeWeakRefs:[],fakeWeakRefsStarted:!1},t.__tabsterInstanceContext=r),r}function SI(e){const t=e.__tabsterInstanceContext;t&&(t.elementByUId={},delete t.WeakRef,t.containerBoundingRectCache={},t.containerBoundingRectCacheTimer&&e.clearTimeout(t.containerBoundingRectCacheTimer),t.fakeWeakRefsTimer&&e.clearTimeout(t.fakeWeakRefsTimer),t.fakeWeakRefs=[],delete e.__tabsterInstanceContext)}function CI(e){const t=e.__tabsterInstanceContext;return new((t==null?void 0:t.basics.WeakMap)||WeakMap)}function _I(e){return!!e.querySelector(c5)}class d5{constructor(t){this._target=t}deref(){return this._target}static cleanup(t,r){return t._target?r||!qy(t._target.ownerDocument,t._target)?(delete t._target,!0):!1:!0}}class gn{constructor(t,r,n){const o=ci(t);let i;o.WeakRef?i=new o.WeakRef(r):(i=new d5(r),o.fakeWeakRefs.push(i)),this._ref=i,this._data=n}get(){const t=this._ref;let r;return t&&(r=t.deref(),r||delete this._ref),r}getData(){return this._data}}function f5(e,t){const r=ci(e);r.fakeWeakRefs=r.fakeWeakRefs.filter(n=>!d5.cleanup(n,t))}function h5(e){const t=ci(e);t.fakeWeakRefsStarted||(t.fakeWeakRefsStarted=!0,t.WeakRef=EI(t)),t.fakeWeakRefsTimer||(t.fakeWeakRefsTimer=e().setTimeout(()=>{t.fakeWeakRefsTimer=void 0,f5(e),h5(e)},2*60*1e3))}function BI(e){const t=ci(e);t.fakeWeakRefsStarted=!1,t.fakeWeakRefsTimer&&(e().clearTimeout(t.fakeWeakRefsTimer),t.fakeWeakRefsTimer=void 0,t.fakeWeakRefs=[])}function Oy(e,t,r){if(t.nodeType!==Node.ELEMENT_NODE)return;const n=p0?r:{acceptNode:r};return le.createTreeWalker(e,t,NodeFilter.SHOW_ELEMENT,n,!1)}function p5(e,t){let r=t.__tabsterCacheId;const n=ci(e),o=r?n.containerBoundingRectCache[r]:void 0;if(o)return o.rect;const i=t.ownerDocument&&t.ownerDocument.documentElement;if(!i)return new hw;let s=0,a=0,l=i.clientWidth,c=i.clientHeight;if(t!==i){const d=t.getBoundingClientRect();s=Math.max(s,d.left),a=Math.max(a,d.top),l=Math.min(l,d.right),c=Math.min(c,d.bottom)}const u=new hw(s<l?s:-1,a<c?a:-1,s<l?l-s:0,a<c?c-a:0);return r||(r="r-"+ ++n.lastContainerBoundingRectCacheId,t.__tabsterCacheId=r),n.containerBoundingRectCache[r]={rect:u,element:t},n.containerBoundingRectCacheTimer||(n.containerBoundingRectCacheTimer=window.setTimeout(()=>{n.containerBoundingRectCacheTimer=void 0;for(const d of Object.keys(n.containerBoundingRectCache))delete n.containerBoundingRectCache[d].element.__tabsterCacheId;n.containerBoundingRectCache={}},50)),u}function pw(e,t,r){const n=g5(t);if(!n)return!1;const o=p5(e,n),i=t.getBoundingClientRect(),s=i.height*(1-r),a=Math.max(0,o.top-i.top),l=Math.max(0,i.bottom-o.bottom),c=a+l;return c===0||c<=s}function TI(e,t,r){const n=g5(t);if(n){const o=p5(e,n),i=t.getBoundingClientRect();r?n.scrollTop+=i.top-o.top:n.scrollTop+=i.bottom-o.bottom}}function g5(e){const t=e.ownerDocument;if(t){for(let r=le.getParentElement(e);r;r=le.getParentElement(r))if(r.scrollWidth>r.clientWidth||r.scrollHeight>r.clientHeight)return r;return t.documentElement}return null}function NI(e){e.__shouldIgnoreFocus=!0}function m5(e){return!!e.__shouldIgnoreFocus}function jI(e){const t=new Uint32Array(4);if(e.crypto&&e.crypto.getRandomValues)e.crypto.getRandomValues(t);else if(e.msCrypto&&e.msCrypto.getRandomValues)e.msCrypto.getRandomValues(t);else for(let n=0;n<t.length;n++)t[n]=4294967295*Math.random();const r=[];for(let n=0;n<t.length;n++)r.push(t[n].toString(36));return r.push("|"),r.push((++kI).toString(36)),r.push("|"),r.push(Date.now().toString(36)),r.join("")}function Qd(e,t){const r=ci(e);let n=t.__tabsterElementUID;return n||(n=t.__tabsterElementUID=jI(e())),!r.elementByUId[n]&&qy(t.ownerDocument,t)&&(r.elementByUId[n]=new gn(e,t)),n}function gw(e,t){const r=ci(e);for(const n of Object.keys(r.elementByUId)){const o=r.elementByUId[n],i=o&&o.get();i&&t&&!le.nodeContains(t,i)||delete r.elementByUId[n]}}function qy(e,t){return le.nodeContains(e==null?void 0:e.body,t)}function v5(e,t){const r=e.matches||e.matchesSelector||e.msMatchesSelector||e.webkitMatchesSelector;return r&&r.call(e,t)}function zI(e){const t=ci(e);if(t.basics.Promise)return t.basics.Promise;throw new Error("No Promise defined.")}function EI(e){return e.basics.WeakRef}let RI=0;class ju{constructor(t,r,n){const o=t.getWindow;this._tabster=t,this._element=new gn(o,r),this._props={...n},this.id="i"+ ++RI}getElement(){return this._element.get()}getProps(){return this._props}setProps(t){this._props={...t}}}class Hf{constructor(t,r,n,o,i){var s;this._focusIn=u=>{if(this._fixedTarget){const p=this._fixedTarget.get();p&&No(p);return}const d=this.input;if(this.onFocusIn&&d){const p=u.relatedTarget;this.onFocusIn(this,this._isBackward(!0,d,p),p)}},this._focusOut=u=>{if(this._fixedTarget)return;this.useDefaultAction=!1;const d=this.input;if(this.onFocusOut&&d){const p=u.relatedTarget;this.onFocusOut(this,this._isBackward(!1,d,p),p)}};const a=t(),l=a.document.createElement("i");l.tabIndex=0,l.setAttribute("role","none"),l.setAttribute(IP,""),l.setAttribute("aria-hidden","true");const c=l.style;c.position="fixed",c.width=c.height="1px",c.opacity="0.001",c.zIndex="-1",c.setProperty("content-visibility","hidden"),NI(l),this.input=l,this.isFirst=n.isFirst,this.isOutside=r,this._isPhantom=(s=n.isPhantom)!==null&&s!==void 0?s:!1,this._fixedTarget=i,l.addEventListener("focusin",this._focusIn),l.addEventListener("focusout",this._focusOut),l.__tabsterDummyContainer=o,this._isPhantom&&(this._disposeTimer=a.setTimeout(()=>{delete this._disposeTimer,this.dispose()},0),this._clearDisposeTimeout=()=>{this._disposeTimer&&(a.clearTimeout(this._disposeTimer),delete this._disposeTimer),delete this._clearDisposeTimeout})}dispose(){var t;this._clearDisposeTimeout&&this._clearDisposeTimeout();const r=this.input;r&&(delete this._fixedTarget,delete this.onFocusIn,delete this.onFocusOut,delete this.input,r.removeEventListener("focusin",this._focusIn),r.removeEventListener("focusout",this._focusOut),delete r.__tabsterDummyContainer,(t=le.getParentNode(r))===null||t===void 0||t.removeChild(r))}setTopLeft(t,r){var n;const o=(n=this.input)===null||n===void 0?void 0:n.style;o&&(o.top=`${t}px`,o.left=`${r}px`)}_isBackward(t,r,n){return t&&!n?!this.isFirst:!!(n&&r.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING)}}const ip={Root:1,Modalizer:2,Mover:3,Groupper:4};class Qa{constructor(t,r,n,o,i,s){this._element=r,this._instance=new FI(t,r,this,n,o,i,s)}_setHandlers(t,r){this._onFocusIn=t,this._onFocusOut=r}moveOut(t){var r;(r=this._instance)===null||r===void 0||r.moveOut(t)}moveOutWithDefaultAction(t,r){var n;(n=this._instance)===null||n===void 0||n.moveOutWithDefaultAction(t,r)}getHandler(t){return t?this._onFocusIn:this._onFocusOut}setTabbable(t){var r;(r=this._instance)===null||r===void 0||r.setTabbable(this,t)}dispose(){this._instance&&(this._instance.dispose(this),delete this._instance),delete this._onFocusIn,delete this._onFocusOut}static moveWithPhantomDummy(t,r,n,o,i){const a=new Hf(t.getWindow,!0,{isPhantom:!0,isFirst:!0}).input;if(a){let l,c;if(r.tagName==="BODY")l=r,c=n&&o||!n&&!o?le.getFirstElementChild(r):null;else{n&&(!o||o&&!t.focusable.isFocusable(r,!1,!0,!0))?(l=r,c=o?r.firstElementChild:null):(l=le.getParentElement(r),c=n&&o||!n&&!o?r:le.getNextElementSibling(r));let u,d;do u=n&&o||!n&&!o?le.getPreviousElementSibling(c):c,d=Ja(u),d===r?c=n&&o||!n&&!o?u:le.getNextElementSibling(u):d=null;while(d)}l!=null&&l.dispatchEvent(new Ii({by:"root",owner:l,next:null,relatedEvent:i}))&&(le.insertBefore(l,a,c),No(a))}}static addPhantomDummyWithTarget(t,r,n,o){const s=new Hf(t.getWindow,!0,{isPhantom:!0,isFirst:!0},void 0,new gn(t.getWindow,o)).input;if(s){let a,l;_I(r)&&!n?(a=r,l=le.getFirstElementChild(r)):(a=le.getParentElement(r),l=n?r:le.getNextElementSibling(r)),a&&le.insertBefore(a,s,l)}}}class AI{constructor(t){this._updateQueue=new Set,this._lastUpdateQueueTime=0,this._changedParents=new WeakSet,this._dummyElements=[],this._dummyCallbacks=new WeakMap,this._domChanged=r=>{var n;this._changedParents.has(r)||(this._changedParents.add(r),!this._updateDummyInputsTimer&&(this._updateDummyInputsTimer=(n=this._win)===null||n===void 0?void 0:n.call(this).setTimeout(()=>{delete this._updateDummyInputsTimer;for(const o of this._dummyElements){const i=o.get();if(i){const s=this._dummyCallbacks.get(i);if(s){const a=le.getParentNode(i);(!a||this._changedParents.has(a))&&s()}}}this._changedParents=new WeakSet},_g)))},this._win=t}add(t,r){!this._dummyCallbacks.has(t)&&this._win&&(this._dummyElements.push(new gn(this._win,t)),this._dummyCallbacks.set(t,r),this.domChanged=this._domChanged)}remove(t){this._dummyElements=this._dummyElements.filter(r=>{const n=r.get();return n&&n!==t}),this._dummyCallbacks.delete(t),this._dummyElements.length===0&&delete this.domChanged}dispose(){var t;const r=(t=this._win)===null||t===void 0?void 0:t.call(this);this._updateTimer&&(r==null||r.clearTimeout(this._updateTimer),delete this._updateTimer),this._updateDummyInputsTimer&&(r==null||r.clearTimeout(this._updateDummyInputsTimer),delete this._updateDummyInputsTimer),this._changedParents=new WeakSet,this._dummyCallbacks=new WeakMap,this._dummyElements=[],this._updateQueue.clear(),delete this.domChanged,delete this._win}updatePositions(t){this._win&&(this._updateQueue.add(t),this._lastUpdateQueueTime=Date.now(),this._scheduledUpdatePositions())}_scheduledUpdatePositions(){var t;this._updateTimer||(this._updateTimer=(t=this._win)===null||t===void 0?void 0:t.call(this).setTimeout(()=>{if(delete this._updateTimer,this._lastUpdateQueueTime+_g<=Date.now()){const r=new Map,n=[];for(const o of this._updateQueue)n.push(o(r));this._updateQueue.clear();for(const o of n)o();r.clear()}else this._scheduledUpdatePositions()},_g))}}class FI{constructor(t,r,n,o,i,s,a){this._wrappers=[],this._isOutside=!1,this._transformElements=new Set,this._onFocusIn=(h,m,g)=>{this._onFocus(!0,h,m,g)},this._onFocusOut=(h,m,g)=>{this._onFocus(!1,h,m,g)},this.moveOut=h=>{var m;const g=this._firstDummy,y=this._lastDummy;if(g&&y){this._ensurePosition();const v=g.input,b=y.input,x=(m=this._element)===null||m===void 0?void 0:m.get();if(v&&b&&x){let k;h?(v.tabIndex=0,k=v):(b.tabIndex=0,k=b),k&&No(k)}}},this.moveOutWithDefaultAction=(h,m)=>{var g;const y=this._firstDummy,v=this._lastDummy;if(y&&v){this._ensurePosition();const b=y.input,x=v.input,k=(g=this._element)===null||g===void 0?void 0:g.get();if(b&&x&&k){let S;h?!y.isOutside&&this._tabster.focusable.isFocusable(k,!0,!0,!0)?S=k:(y.useDefaultAction=!0,b.tabIndex=0,S=b):(v.useDefaultAction=!0,x.tabIndex=0,S=x),S&&k.dispatchEvent(new Ii({by:"root",owner:k,next:null,relatedEvent:m}))&&No(S)}}},this.setTabbable=(h,m)=>{var g,y;for(const b of this._wrappers)if(b.manager===h){b.tabbable=m;break}const v=this._getCurrent();if(v){const b=v.tabbable?0:-1;let x=(g=this._firstDummy)===null||g===void 0?void 0:g.input;x&&(x.tabIndex=b),x=(y=this._lastDummy)===null||y===void 0?void 0:y.input,x&&(x.tabIndex=b)}},this._addDummyInputs=()=>{this._addTimer||(this._addTimer=this._getWindow().setTimeout(()=>{delete this._addTimer,this._ensurePosition(),this._addTransformOffsets()},0))},this._addTransformOffsets=()=>{this._tabster._dummyObserver.updatePositions(this._computeTransformOffsets)},this._computeTransformOffsets=h=>{var m,g;const y=((m=this._firstDummy)===null||m===void 0?void 0:m.input)||((g=this._lastDummy)===null||g===void 0?void 0:g.input),v=this._transformElements,b=new Set;let x=0,k=0;const S=this._getWindow();for(let _=y;_&&_.nodeType===Node.ELEMENT_NODE;_=le.getParentElement(_)){let N=h.get(_);if(N===void 0){const z=S.getComputedStyle(_).transform;z&&z!=="none"&&(N={scrollTop:_.scrollTop,scrollLeft:_.scrollLeft}),h.set(_,N||null)}N&&(b.add(_),v.has(_)||_.addEventListener("scroll",this._addTransformOffsets),x+=N.scrollTop,k+=N.scrollLeft)}for(const _ of v)b.has(_)||_.removeEventListener("scroll",this._addTransformOffsets);return this._transformElements=b,()=>{var _,N;(_=this._firstDummy)===null||_===void 0||_.setTopLeft(x,k),(N=this._lastDummy)===null||N===void 0||N.setTopLeft(x,k)}};const l=r.get();if(!l)throw new Error("No element");this._tabster=t,this._getWindow=t.getWindow,this._callForDefaultAction=a;const c=l.__tabsterDummy;if((c||this)._wrappers.push({manager:n,priority:o,tabbable:!0}),c)return c;l.__tabsterDummy=this;const u=i==null?void 0:i.dummyInputsPosition,d=l.tagName;this._isOutside=u?u===MP.Outside:(s||d==="UL"||d==="OL"||d==="TABLE")&&!(d==="LI"||d==="TD"||d==="TH"),this._firstDummy=new Hf(this._getWindow,this._isOutside,{isFirst:!0},r),this._lastDummy=new Hf(this._getWindow,this._isOutside,{isFirst:!1},r);const p=this._firstDummy.input;p&&t._dummyObserver.add(p,this._addDummyInputs),this._firstDummy.onFocusIn=this._onFocusIn,this._firstDummy.onFocusOut=this._onFocusOut,this._lastDummy.onFocusIn=this._onFocusIn,this._lastDummy.onFocusOut=this._onFocusOut,this._element=r,this._addDummyInputs()}dispose(t,r){var n,o,i,s;if((this._wrappers=this._wrappers.filter(l=>l.manager!==t&&!r)).length===0){delete((n=this._element)===null||n===void 0?void 0:n.get()).__tabsterDummy;for(const u of this._transformElements)u.removeEventListener("scroll",this._addTransformOffsets);this._transformElements.clear();const l=this._getWindow();this._addTimer&&(l.clearTimeout(this._addTimer),delete this._addTimer);const c=(o=this._firstDummy)===null||o===void 0?void 0:o.input;c&&this._tabster._dummyObserver.remove(c),(i=this._firstDummy)===null||i===void 0||i.dispose(),(s=this._lastDummy)===null||s===void 0||s.dispose()}}_onFocus(t,r,n,o){var i;const s=this._getCurrent();s&&(!r.useDefaultAction||this._callForDefaultAction)&&((i=s.manager.getHandler(t))===null||i===void 0||i(r,n,o))}_getCurrent(){return this._wrappers.sort((t,r)=>t.tabbable!==r.tabbable?t.tabbable?-1:1:t.priority-r.priority),this._wrappers[0]}_ensurePosition(){var t,r,n;const o=(t=this._element)===null||t===void 0?void 0:t.get(),i=(r=this._firstDummy)===null||r===void 0?void 0:r.input,s=(n=this._lastDummy)===null||n===void 0?void 0:n.input;if(!(!o||!i||!s))if(this._isOutside){const a=le.getParentNode(o);if(a){const l=le.getNextSibling(o);l!==s&&le.insertBefore(a,s,l),le.getPreviousElementSibling(o)!==i&&le.insertBefore(a,i,o)}}else{le.getLastElementChild(o)!==s&&le.appendChild(o,s);const a=le.getFirstElementChild(o);a&&a!==i&&a.parentNode&&le.insertBefore(a.parentNode,i,a)}}}function y5(e){let t=null;for(let r=le.getLastElementChild(e);r;r=le.getLastElementChild(r))t=r;return t||void 0}function PI(e,t){let r=e,n=null;for(;r&&!n;)n=t?le.getPreviousElementSibling(r):le.getNextElementSibling(r),r=le.getParentElement(r);return n||void 0}function Bg(e,t,r,n){const o=e.storageEntry(t,!0);let i=!1;if(!o.aug){if(n===void 0)return i;o.aug={}}if(n===void 0){if(r in o.aug){const s=o.aug[r];delete o.aug[r],s===null?t.removeAttribute(r):t.setAttribute(r,s),i=!0}}else{let s;r in o.aug||(s=t.getAttribute(r)),s!==void 0&&s!==n&&(o.aug[r]=s,n===null?t.removeAttribute(r):t.setAttribute(r,n),i=!0)}return n===void 0&&Object.keys(o.aug).length===0&&(delete o.aug,e.storageEntry(t,!1)),i}function II(e){var t,r;const n=e.ownerDocument,o=(t=n.defaultView)===null||t===void 0?void 0:t.getComputedStyle(e);return e.offsetParent===null&&n.body!==e&&(o==null?void 0:o.position)!=="fixed"||(o==null?void 0:o.visibility)==="hidden"||(o==null?void 0:o.position)==="fixed"&&(o.display==="none"||((r=e.parentElement)===null||r===void 0?void 0:r.offsetParent)===null&&n.body!==e.parentElement)}function g0(e){return e.tagName==="INPUT"&&!!e.name&&e.type==="radio"}function MI(e){if(!g0(e))return;const t=e.name;let r=Array.from(le.getElementsByName(e,t)),n;return r=r.filter(o=>g0(o)?(o.checked&&(n=o),!0):!1),{name:t,buttons:new Set(r),checked:n}}function Ja(e){var t;return((t=e==null?void 0:e.__tabsterDummyContainer)===null||t===void 0?void 0:t.get())||null}/*!
60
+ * Copyright (c) Microsoft Corporation. All rights reserved.
61
+ * Licensed under the MIT License.
62
+ */function b5(e,t){return JSON.stringify(e)}function DI(e,t){for(const r of Object.keys(t)){const n=t[r];n?e[r]=n:delete e[r]}}function LI(e,t,r){let n;{const o=e.getAttribute(to);if(o)try{n=JSON.parse(o)}catch{}}n||(n={}),DI(n,t),Object.keys(n).length>0?e.setAttribute(to,b5(n)):e.removeAttribute(to)}class mw extends Qa{constructor(t,r,n,o){super(t,r,ip.Root,o,void 0,!0),this._onDummyInputFocus=i=>{var s;if(i.useDefaultAction)this._setFocused(!1);else{this._tabster.keyboardNavigation.setNavigatingWithKeyboard(!0);const a=this._element.get();if(a){this._setFocused(!0);const l=this._tabster.focusedElement.getFirstOrLastTabbable(i.isFirst,{container:a,ignoreAccessibility:!0});if(l){No(l);return}}(s=i.input)===null||s===void 0||s.blur()}},this._setHandlers(this._onDummyInputFocus),this._tabster=t,this._setFocused=n}}class OI extends ju{constructor(t,r,n,o,i){super(t,r,o),this._isFocused=!1,this._setFocused=c=>{var u;if(this._setFocusedTimer&&(this._tabster.getWindow().clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),this._isFocused===c)return;const d=this._element.get();d&&(c?(this._isFocused=!0,(u=this._dummyManager)===null||u===void 0||u.setTabbable(!1),d.dispatchEvent(new QP({element:d}))):this._setFocusedTimer=this._tabster.getWindow().setTimeout(()=>{var p;delete this._setFocusedTimer,this._isFocused=!1,(p=this._dummyManager)===null||p===void 0||p.setTabbable(!0),d.dispatchEvent(new JP({element:d}))},0))},this._onFocusIn=c=>{const u=this._tabster.getParent,d=this._element.get();let p=c.composedPath()[0];do{if(p===d){this._setFocused(!0);return}p=p&&u(p)}while(p)},this._onFocusOut=()=>{this._setFocused(!1)},this._onDispose=n;const s=t.getWindow;this.uid=Qd(s,r),this._sys=i,(t.controlTab||t.rootDummyInputs)&&this.addDummyInputs();const l=s().document;l.addEventListener(wn,this._onFocusIn),l.addEventListener(ru,this._onFocusOut),this._add()}addDummyInputs(){this._dummyManager||(this._dummyManager=new mw(this._tabster,this._element,this._setFocused,this._sys))}dispose(){var t;this._onDispose(this);const r=this._tabster.getWindow(),n=r.document;n.removeEventListener(wn,this._onFocusIn),n.removeEventListener(ru,this._onFocusOut),this._setFocusedTimer&&(r.clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),(t=this._dummyManager)===null||t===void 0||t.dispose(),this._remove()}moveOutWithDefaultAction(t,r){const n=this._dummyManager;if(n)n.moveOutWithDefaultAction(t,r);else{const o=this.getElement();o&&mw.moveWithPhantomDummy(this._tabster,o,!0,t,r)}}_add(){}_remove(){}}class pt{constructor(t,r){this._autoRootWaiting=!1,this._roots={},this._forceDummy=!1,this.rootById={},this._autoRootCreate=()=>{var n;const o=this._win().document,i=o.body;if(i){this._autoRootUnwait(o);const s=this._autoRoot;if(s)return LI(i,{root:s}),u5(this._tabster,i),(n=pr(this._tabster,i))===null||n===void 0?void 0:n.root}else this._autoRootWaiting||(this._autoRootWaiting=!0,o.addEventListener("readystatechange",this._autoRootCreate))},this._onRootDispose=n=>{delete this._roots[n.id]},this._tabster=t,this._win=t.getWindow,this._autoRoot=r,t.queueInit(()=>{this._autoRoot&&this._autoRootCreate()})}_autoRootUnwait(t){t.removeEventListener("readystatechange",this._autoRootCreate),this._autoRootWaiting=!1}dispose(){const t=this._win();this._autoRootUnwait(t.document),delete this._autoRoot,Object.keys(this._roots).forEach(r=>{this._roots[r]&&(this._roots[r].dispose(),delete this._roots[r])}),this.rootById={}}createRoot(t,r,n){const o=new OI(this._tabster,t,this._onRootDispose,r,n);return this._roots[o.id]=o,this._forceDummy&&o.addDummyInputs(),o}addDummyInputs(){this._forceDummy=!0;const t=this._roots;for(const r of Object.keys(t))t[r].addDummyInputs()}static getRootByUId(t,r){const n=t().__tabsterInstance;return n&&n.root.rootById[r]}static getTabsterContext(t,r,n={}){var o,i,s,a;if(!r.ownerDocument)return;const{checkRtl:l,referenceElement:c}=n,u=t.getParent;t.drainInitQueue();let d,p,h,m,g=!1,y,v,b,x,k=c||r;const S={};for(;k&&(!d||l);){const N=pr(t,k);if(l&&b===void 0){const A=k.dir;A&&(b=A.toLowerCase()==="rtl")}if(!N){k=u(k);continue}const z=k.tagName;(N.uncontrolled||z==="IFRAME"||z==="WEBVIEW")&&t.focusable.isVisible(k)&&(x=k),!m&&(!((o=N.focusable)===null||o===void 0)&&o.excludeFromMover)&&!h&&(g=!0);const F=N.modalizer,I=N.groupper,H=N.mover;!p&&F&&(p=F),!h&&I&&(!p||F)&&(p?(!I.isActive()&&I.getProps().tabbability&&p.userId!==((i=t.modalizer)===null||i===void 0?void 0:i.activeId)&&(p=void 0,h=I),v=I):h=I),!m&&H&&(!p||F)&&(!I||k!==r)&&k.contains(r)&&(m=H,y=!!h&&h!==I),N.root&&(d=N.root),!((s=N.focusable)===null||s===void 0)&&s.ignoreKeydown&&Object.assign(S,N.focusable.ignoreKeydown),k=u(k)}if(!d){const N=t.root;N._autoRoot&&!((a=r.ownerDocument)===null||a===void 0)&&a.body&&(d=N._autoRootCreate())}return h&&!m&&(y=!0),d?{root:d,modalizer:p,groupper:h,mover:m,groupperBeforeMover:y,modalizerInGroupper:v,rtl:l?!!b:void 0,uncontrolled:x,excludedFromMover:g,ignoreKeydown:N=>!!S[N.key]}:void 0}static getRoot(t,r){var n;const o=t.getParent;for(let i=r;i;i=o(i)){const s=(n=pr(t,i))===null||n===void 0?void 0:n.root;if(s)return s}}onRoot(t,r){r?delete this.rootById[t.uid]:this.rootById[t.uid]=t}}/*!
63
+ * Copyright (c) Microsoft Corporation. All rights reserved.
64
+ * Licensed under the MIT License.
65
+ */class x5{constructor(){this._callbacks=[]}dispose(){this._callbacks=[],delete this._val}subscribe(t){const r=this._callbacks;r.indexOf(t)<0&&r.push(t)}subscribeFirst(t){const r=this._callbacks,n=r.indexOf(t);n>=0&&r.splice(n,1),r.unshift(t)}unsubscribe(t){const r=this._callbacks.indexOf(t);r>=0&&this._callbacks.splice(r,1)}setVal(t,r){this._val!==t&&(this._val=t,this._callCallbacks(t,r))}getVal(){return this._val}trigger(t,r){this._callCallbacks(t,r)}_callCallbacks(t,r){this._callbacks.forEach(n=>n(t,r))}}/*!
66
+ * Copyright (c) Microsoft Corporation. All rights reserved.
67
+ * Licensed under the MIT License.
68
+ */class qI{constructor(t){this._tabster=t}dispose(){}getProps(t){const r=pr(this._tabster,t);return r&&r.focusable||{}}isFocusable(t,r,n,o){return v5(t,c5)&&(r||t.tabIndex!==-1)?(n||this.isVisible(t))&&(o||this.isAccessible(t)):!1}isVisible(t){if(!t.ownerDocument||t.nodeType!==Node.ELEMENT_NODE||II(t))return!1;const r=t.ownerDocument.body.getBoundingClientRect();return!(r.width===0&&r.height===0)}isAccessible(t){var r;for(let n=t;n;n=le.getParentElement(n)){const o=pr(this._tabster,n);if(this._isHidden(n)||!((r=o==null?void 0:o.focusable)===null||r===void 0?void 0:r.ignoreAriaDisabled)&&this._isDisabled(n))return!1}return!0}_isDisabled(t){return t.hasAttribute("disabled")}_isHidden(t){var r;const n=t.getAttribute("aria-hidden");return!!(n&&n.toLowerCase()==="true"&&!(!((r=this._tabster.modalizer)===null||r===void 0)&&r.isAugmented(t)))}findFirst(t,r){return this.findElement({...t},r)}findLast(t,r){return this.findElement({isBackward:!0,...t},r)}findNext(t,r){return this.findElement({...t},r)}findPrev(t,r){return this.findElement({...t,isBackward:!0},r)}findDefault(t,r){return this.findElement({...t,acceptCondition:n=>this.isFocusable(n,t.includeProgrammaticallyFocusable)&&!!this.getProps(n).isDefault},r)||null}findAll(t){return this._findElements(!0,t)||[]}findElement(t,r){const n=this._findElements(!1,t,r);return n&&n[0]}_findElements(t,r,n){var o,i,s;const{container:a,currentElement:l=null,includeProgrammaticallyFocusable:c,useActiveModalizer:u,ignoreAccessibility:d,modalizerId:p,isBackward:h,onElement:m}=r;n||(n={});const g=[];let{acceptCondition:y}=r;const v=!!y;if(!a)return null;y||(y=S=>this.isFocusable(S,c,!1,d));const b={container:a,modalizerUserId:p===void 0&&u?(o=this._tabster.modalizer)===null||o===void 0?void 0:o.activeId:p||((s=(i=pt.getTabsterContext(this._tabster,a))===null||i===void 0?void 0:i.modalizer)===null||s===void 0?void 0:s.userId),from:l||a,isBackward:h,isFindAll:t,acceptCondition:y,hasCustomCondition:v,includeProgrammaticallyFocusable:c,ignoreAccessibility:d,cachedGrouppers:{},cachedRadioGroups:{}},x=Oy(a.ownerDocument,a,S=>this._acceptElement(S,b));if(!x)return null;const k=S=>{var _,N;const z=(_=b.foundElement)!==null&&_!==void 0?_:b.foundBackward;return z&&g.push(z),t?z&&(b.found=!1,delete b.foundElement,delete b.foundBackward,delete b.fromCtx,b.from=z,m&&!m(z))?!1:!!(z||S):(z&&n&&(n.uncontrolled=(N=pt.getTabsterContext(this._tabster,z))===null||N===void 0?void 0:N.uncontrolled),!!(S&&!z))};if(l||(n.outOfDOMOrder=!0),l&&le.nodeContains(a,l))x.currentNode=l;else if(h){const S=y5(a);if(!S)return null;if(this._acceptElement(S,b)===NodeFilter.FILTER_ACCEPT&&!k(!0))return b.skippedFocusable&&(n.outOfDOMOrder=!0),g;x.currentNode=S}do h?x.previousNode():x.nextNode();while(k());return b.skippedFocusable&&(n.outOfDOMOrder=!0),g.length?g:null}_acceptElement(t,r){var n,o,i;if(r.found)return NodeFilter.FILTER_ACCEPT;const s=r.foundBackward;if(s&&(t===s||!le.nodeContains(s,t)))return r.found=!0,r.foundElement=s,NodeFilter.FILTER_ACCEPT;const a=r.container;if(t===a)return NodeFilter.FILTER_SKIP;if(!le.nodeContains(a,t)||Ja(t)||le.nodeContains(r.rejectElementsFrom,t))return NodeFilter.FILTER_REJECT;const l=r.currentCtx=pt.getTabsterContext(this._tabster,t);if(!l)return NodeFilter.FILTER_SKIP;if(m5(t))return this.isFocusable(t,void 0,!0,!0)&&(r.skippedFocusable=!0),NodeFilter.FILTER_SKIP;if(!r.hasCustomCondition&&(t.tagName==="IFRAME"||t.tagName==="WEBVIEW"))return this.isVisible(t)&&((n=l.modalizer)===null||n===void 0?void 0:n.userId)===((o=this._tabster.modalizer)===null||o===void 0?void 0:o.activeId)?(r.found=!0,r.rejectElementsFrom=r.foundElement=t,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT;if(!r.ignoreAccessibility&&!this.isAccessible(t))return this.isFocusable(t,!1,!0,!0)&&(r.skippedFocusable=!0),NodeFilter.FILTER_REJECT;let c,u=r.fromCtx;u||(u=r.fromCtx=pt.getTabsterContext(this._tabster,r.from));const d=u==null?void 0:u.mover;let p=l.groupper,h=l.mover;if(c=(i=this._tabster.modalizer)===null||i===void 0?void 0:i.acceptElement(t,r),c!==void 0&&(r.skippedFocusable=!0),c===void 0&&(p||h||d)){const m=p==null?void 0:p.getElement(),g=d==null?void 0:d.getElement();let y=h==null?void 0:h.getElement();if(y&&le.nodeContains(g,y)&&le.nodeContains(a,g)&&(!m||!h||le.nodeContains(g,m))&&(h=d,y=g),m){if(m===a||!le.nodeContains(a,m))p=void 0;else if(!le.nodeContains(m,t))return NodeFilter.FILTER_REJECT}if(y){if(!le.nodeContains(a,y))h=void 0;else if(!le.nodeContains(y,t))return NodeFilter.FILTER_REJECT}p&&h&&(y&&m&&!le.nodeContains(m,y)?h=void 0:p=void 0),p&&(c=p.acceptElement(t,r)),h&&(c=h.acceptElement(t,r))}if(c===void 0&&(c=r.acceptCondition(t)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,c===NodeFilter.FILTER_SKIP&&this.isFocusable(t,!1,!0,!0)&&(r.skippedFocusable=!0)),c===NodeFilter.FILTER_ACCEPT&&!r.found){if(!r.isFindAll&&g0(t)&&!t.checked){const m=t.name;let g=r.cachedRadioGroups[m];if(g||(g=MI(t),g&&(r.cachedRadioGroups[m]=g)),g!=null&&g.checked&&g.checked!==t)return NodeFilter.FILTER_SKIP}r.isBackward?(r.foundBackward=t,c=NodeFilter.FILTER_SKIP):(r.found=!0,r.foundElement=t)}return c}}/*!
69
+ * Copyright (c) Microsoft Corporation. All rights reserved.
70
+ * Licensed under the MIT License.
71
+ */const $t={Tab:"Tab",Enter:"Enter",Escape:"Escape",PageUp:"PageUp",PageDown:"PageDown",End:"End",Home:"Home",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",ArrowDown:"ArrowDown"};/*!
72
+ * Copyright (c) Microsoft Corporation. All rights reserved.
73
+ * Licensed under the MIT License.
74
+ */function $I(e,t){var r;const n=e.getParent;let o=t;do{const i=(r=pr(e,o))===null||r===void 0?void 0:r.uncontrolled;if(i&&e.uncontrolled.isUncontrolledCompletely(o,!!i.completely))return o;o=n(o)}while(o)}const vw={[Xo.Restorer]:0,[Xo.Deloser]:1,[Xo.EscapeGroupper]:2};class Ht extends x5{constructor(t,r){super(),this._init=()=>{const n=this._win(),o=n.document;o.addEventListener(wn,this._onFocusIn,!0),o.addEventListener(ru,this._onFocusOut,!0),n.addEventListener("keydown",this._onKeyDown,!0);const i=le.getActiveElement(o);i&&i!==o.body&&this._setFocusedElement(i),this.subscribe(this._onChanged)},this._onFocusIn=n=>{const o=n.composedPath()[0];o&&this._setFocusedElement(o,n.detail.relatedTarget,n.detail.isFocusedProgrammatically)},this._onFocusOut=n=>{var o;this._setFocusedElement(void 0,(o=n.detail)===null||o===void 0?void 0:o.originalEvent.relatedTarget)},this._validateFocusedElement=n=>{},this._onKeyDown=n=>{if(n.key!==$t.Tab||n.ctrlKey)return;const o=this.getVal();if(!o||!o.ownerDocument||o.contentEditable==="true")return;const i=this._tabster,s=i.controlTab,a=pt.getTabsterContext(i,o);if(!a||a.ignoreKeydown(n))return;const l=n.shiftKey,c=Ht.findNextTabbable(i,a,void 0,o,void 0,l,!0),u=a.root.getElement();if(!u)return;const d=c==null?void 0:c.element,p=$I(i,o);if(d){const h=c.uncontrolled;if(a.uncontrolled||le.nodeContains(h,o)){if(!c.outOfDOMOrder&&h===a.uncontrolled||p&&!le.nodeContains(p,d))return;Qa.addPhantomDummyWithTarget(i,o,l,d);return}if(h&&i.focusable.isVisible(h)||d.tagName==="IFRAME"&&i.focusable.isVisible(d)){u.dispatchEvent(new Ii({by:"root",owner:u,next:d,relatedEvent:n}))&&Qa.moveWithPhantomDummy(i,h??d,!1,l,n);return}(s||c!=null&&c.outOfDOMOrder)&&u.dispatchEvent(new Ii({by:"root",owner:u,next:d,relatedEvent:n}))&&(n.preventDefault(),n.stopImmediatePropagation(),No(d))}else!p&&u.dispatchEvent(new Ii({by:"root",owner:u,next:null,relatedEvent:n}))&&a.root.moveOutWithDefaultAction(l,n)},this._onChanged=(n,o)=>{var i,s;if(n)n.dispatchEvent(new GP(o));else{const a=(i=this._lastVal)===null||i===void 0?void 0:i.get();if(a){const l={...o},c=pt.getTabsterContext(this._tabster,a),u=(s=c==null?void 0:c.modalizer)===null||s===void 0?void 0:s.userId;u&&(l.modalizerId=u),a.dispatchEvent(new XP(l))}}},this._tabster=t,this._win=r,t.queueInit(this._init)}dispose(){super.dispose();const t=this._win(),r=t.document;r.removeEventListener(wn,this._onFocusIn,!0),r.removeEventListener(ru,this._onFocusOut,!0),t.removeEventListener("keydown",this._onKeyDown,!0),this.unsubscribe(this._onChanged);const n=this._asyncFocus;n&&(t.clearTimeout(n.timeout),delete this._asyncFocus),delete Ht._lastResetElement,delete this._nextVal,delete this._lastVal}static forgetMemorized(t,r){var n,o;let i=Ht._lastResetElement,s=i&&i.get();s&&le.nodeContains(r,s)&&delete Ht._lastResetElement,s=(o=(n=t._nextVal)===null||n===void 0?void 0:n.element)===null||o===void 0?void 0:o.get(),s&&le.nodeContains(r,s)&&delete t._nextVal,i=t._lastVal,s=i&&i.get(),s&&le.nodeContains(r,s)&&delete t._lastVal}getFocusedElement(){return this.getVal()}getLastFocusedElement(){var t;let r=(t=this._lastVal)===null||t===void 0?void 0:t.get();return(!r||r&&!qy(r.ownerDocument,r))&&(this._lastVal=r=void 0),r}focus(t,r,n,o){return this._tabster.focusable.isFocusable(t,r,!1,n)?(t.focus({preventScroll:o}),!0):!1}focusDefault(t){const r=this._tabster.focusable.findDefault({container:t});return r?(this._tabster.focusedElement.focus(r),!0):!1}getFirstOrLastTabbable(t,r){var n;const{container:o,ignoreAccessibility:i}=r;let s;if(o){const a=pt.getTabsterContext(this._tabster,o);a&&(s=(n=Ht.findNextTabbable(this._tabster,a,o,void 0,void 0,!t,i))===null||n===void 0?void 0:n.element)}return s&&!le.nodeContains(o,s)&&(s=void 0),s||void 0}_focusFirstOrLast(t,r){const n=this.getFirstOrLastTabbable(t,r);return n?(this.focus(n,!1,!0),!0):!1}focusFirst(t){return this._focusFirstOrLast(!0,t)}focusLast(t){return this._focusFirstOrLast(!1,t)}resetFocus(t){if(!this._tabster.focusable.isVisible(t))return!1;if(this._tabster.focusable.isFocusable(t,!0,!0,!0))this.focus(t);else{const r=t.getAttribute("tabindex"),n=t.getAttribute("aria-hidden");t.tabIndex=-1,t.setAttribute("aria-hidden","true"),Ht._lastResetElement=new gn(this._win,t),this.focus(t,!0,!0),this._setOrRemoveAttribute(t,"tabindex",r),this._setOrRemoveAttribute(t,"aria-hidden",n)}return!0}requestAsyncFocus(t,r,n){const o=this._tabster.getWindow(),i=this._asyncFocus;if(i){if(vw[t]>vw[i.source])return;o.clearTimeout(i.timeout)}this._asyncFocus={source:t,callback:r,timeout:o.setTimeout(()=>{this._asyncFocus=void 0,r()},n)}}cancelAsyncFocus(t){const r=this._asyncFocus;(r==null?void 0:r.source)===t&&(this._tabster.getWindow().clearTimeout(r.timeout),this._asyncFocus=void 0)}_setOrRemoveAttribute(t,r,n){n===null?t.removeAttribute(r):t.setAttribute(r,n)}_setFocusedElement(t,r,n){var o,i;if(this._tabster._noop)return;const s={relatedTarget:r};if(t){const l=(o=Ht._lastResetElement)===null||o===void 0?void 0:o.get();if(Ht._lastResetElement=void 0,l===t||m5(t))return;s.isFocusedProgrammatically=n;const c=pt.getTabsterContext(this._tabster,t),u=(i=c==null?void 0:c.modalizer)===null||i===void 0?void 0:i.userId;u&&(s.modalizerId=u)}const a=this._nextVal={element:t?new gn(this._win,t):void 0,detail:s};t&&t!==this._val&&this._validateFocusedElement(t),this._nextVal===a&&this.setVal(t,s),this._nextVal=void 0}setVal(t,r){super.setVal(t,r),t&&(this._lastVal=new gn(this._win,t))}static findNextTabbable(t,r,n,o,i,s,a){const l=n||r.root.getElement();if(!l)return null;let c=null;const u=Ht._isTabbingTimer,d=t.getWindow();u&&d.clearTimeout(u),Ht.isTabbing=!0,Ht._isTabbingTimer=d.setTimeout(()=>{delete Ht._isTabbingTimer,Ht.isTabbing=!1},0);const p=r.modalizer,h=r.groupper,m=r.mover,g=y=>{if(c=y.findNextTabbable(o,i,s,a),o&&!(c!=null&&c.element)){const v=y!==p&&le.getParentElement(y.getElement());if(v){const b=pt.getTabsterContext(t,o,{referenceElement:v});if(b){const x=y.getElement(),k=s?x:x&&y5(x)||x;k&&(c=Ht.findNextTabbable(t,b,n,k,v,s,a),c&&(c.outOfDOMOrder=!0))}}}};if(h&&m)g(r.groupperBeforeMover?h:m);else if(h)g(h);else if(m)g(m);else if(p)g(p);else{const y={container:l,currentElement:o,referenceElement:i,ignoreAccessibility:a,useActiveModalizer:!0},v={};c={element:t.focusable[s?"findPrev":"findNext"](y,v),outOfDOMOrder:v.outOfDOMOrder,uncontrolled:v.uncontrolled}}return c}}Ht.isTabbing=!1;/*!
75
+ * Copyright (c) Microsoft Corporation. All rights reserved.
76
+ * Licensed under the MIT License.
77
+ */class HI extends Qa{constructor(t,r,n,o){super(n,t,ip.Groupper,o,!0),this._setHandlers((i,s,a)=>{var l,c;const u=t.get(),d=i.input;if(u&&d){const p=pt.getTabsterContext(n,d);if(p){let h;h=(l=r.findNextTabbable(a||void 0,void 0,s,!0))===null||l===void 0?void 0:l.element,h||(h=(c=Ht.findNextTabbable(n,p,void 0,i.isOutside?d:PI(u,!s),void 0,s,!0))===null||c===void 0?void 0:c.element),h&&No(h)}}})}}class WI extends ju{constructor(t,r,n,o,i){super(t,r,o),this._shouldTabInside=!1,this.makeTabbable(!1),this._onDispose=n,t.controlTab||(this.dummyManager=new HI(this._element,this,t,i))}dispose(){var t;this._onDispose(this),this._element.get(),(t=this.dummyManager)===null||t===void 0||t.dispose(),delete this.dummyManager,delete this._first}findNextTabbable(t,r,n,o){const i=this.getElement();if(!i)return null;const s=Ja(t)===i;if(!this._shouldTabInside&&t&&le.nodeContains(i,t)&&!s)return{element:void 0,outOfDOMOrder:!0};const a=this.getFirst(!0);if(!t||!le.nodeContains(i,t)||s)return{element:a,outOfDOMOrder:!0};const l=this._tabster;let c=null,u=!1,d;if(this._shouldTabInside&&a){const p={container:i,currentElement:t,referenceElement:r,ignoreAccessibility:o,useActiveModalizer:!0},h={};c=l.focusable[n?"findPrev":"findNext"](p,h),u=!!h.outOfDOMOrder,!c&&this._props.tabbability===Kd.LimitedTrapFocus&&(c=l.focusable[n?"findLast":"findFirst"]({container:i,ignoreAccessibility:o,useActiveModalizer:!0},h),u=!0),d=h.uncontrolled}return{element:c,uncontrolled:d,outOfDOMOrder:u}}makeTabbable(t){this._shouldTabInside=t||!this._props.tabbability}isActive(t){var r;const n=this.getElement()||null;let o=!0;for(let s=le.getParentElement(n);s;s=le.getParentElement(s)){const a=(r=pr(this._tabster,s))===null||r===void 0?void 0:r.groupper;a&&(a._shouldTabInside||(o=!1))}let i=o?this._props.tabbability?this._shouldTabInside:!1:void 0;if(i&&t){const s=this._tabster.focusedElement.getFocusedElement();s&&(i=s!==this.getFirst(!0))}return i}getFirst(t){var r;const n=this.getElement();let o;if(n){if(t&&this._tabster.focusable.isFocusable(n))return n;o=(r=this._first)===null||r===void 0?void 0:r.get(),o||(o=this._tabster.focusable.findFirst({container:n,useActiveModalizer:!0})||void 0,o&&this.setFirst(o))}return o}setFirst(t){t?this._first=new gn(this._tabster.getWindow,t):delete this._first}acceptElement(t,r){const n=r.cachedGrouppers,o=le.getParentElement(this.getElement()),i=o&&pt.getTabsterContext(this._tabster,o),s=i==null?void 0:i.groupper,a=i!=null&&i.groupperBeforeMover?s:void 0;let l;const c=p=>{let h=n[p.id],m;return h?m=h.isActive:(m=this.isActive(!0),h=n[p.id]={isActive:m}),m};if(a&&(l=a.getElement(),!c(a)&&l&&r.container!==l&&le.nodeContains(r.container,l)))return r.skippedFocusable=!0,NodeFilter.FILTER_REJECT;const u=c(this),d=this.getElement();if(d&&u!==!0){if(d===t&&s&&(l||(l=s.getElement()),l&&!c(s)&&le.nodeContains(r.container,l)&&l!==r.container)||d!==t&&le.nodeContains(d,t))return r.skippedFocusable=!0,NodeFilter.FILTER_REJECT;const p=n[this.id];let h;if("first"in p?h=p.first:h=p.first=this.getFirst(!0),h&&r.acceptCondition(h))return r.rejectElementsFrom=d,r.skippedFocusable=!0,h!==r.from?(r.found=!0,r.foundElement=h,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT}}}class VI{constructor(t,r){this._current={},this._grouppers={},this._init=()=>{const n=this._win();this._tabster.focusedElement.subscribeFirst(this._onFocus);const o=n.document,i=le.getActiveElement(o);i&&this._onFocus(i),o.addEventListener("mousedown",this._onMouseDown,!0),n.addEventListener("keydown",this._onKeyDown,!0),n.addEventListener(f0,this._onMoveFocus)},this._onGroupperDispose=n=>{delete this._grouppers[n.id]},this._onFocus=n=>{n&&this._updateCurrent(n)},this._onMouseDown=n=>{let o=n.target;for(;o&&!this._tabster.focusable.isFocusable(o);)o=this._tabster.getParent(o);o&&this._updateCurrent(o)},this._onKeyDown=n=>{if(n.key!==$t.Enter&&n.key!==$t.Escape||n.ctrlKey||n.altKey||n.shiftKey||n.metaKey)return;const o=this._tabster.focusedElement.getFocusedElement();o&&this.handleKeyPress(o,n)},this._onMoveFocus=n=>{var o;const i=n.composedPath()[0],s=(o=n.detail)===null||o===void 0?void 0:o.action;i&&s!==void 0&&!n.defaultPrevented&&(s===$f.Enter?this._enterGroupper(i):this._escapeGroupper(i),n.stopImmediatePropagation())},this._tabster=t,this._win=r,t.queueInit(this._init)}dispose(){const t=this._win();this._tabster.focusedElement.cancelAsyncFocus(Xo.EscapeGroupper),this._current={},this._updateTimer&&(t.clearTimeout(this._updateTimer),delete this._updateTimer),this._tabster.focusedElement.unsubscribe(this._onFocus),t.document.removeEventListener("mousedown",this._onMouseDown,!0),t.removeEventListener("keydown",this._onKeyDown,!0),t.removeEventListener(f0,this._onMoveFocus),Object.keys(this._grouppers).forEach(r=>{this._grouppers[r]&&(this._grouppers[r].dispose(),delete this._grouppers[r])})}createGroupper(t,r,n){const o=this._tabster,i=new WI(o,t,this._onGroupperDispose,r,n);this._grouppers[i.id]=i;const s=o.focusedElement.getFocusedElement();return s&&le.nodeContains(t,s)&&!this._updateTimer&&(this._updateTimer=this._win().setTimeout(()=>{delete this._updateTimer,s===o.focusedElement.getFocusedElement()&&this._updateCurrent(s)},0)),i}forgetCurrentGrouppers(){this._current={}}_updateCurrent(t){var r;this._updateTimer&&(this._win().clearTimeout(this._updateTimer),delete this._updateTimer);const n=this._tabster,o={};for(let i=n.getParent(t);i;i=n.getParent(i)){const s=(r=pr(n,i))===null||r===void 0?void 0:r.groupper;if(s){o[s.id]=!0,this._current[s.id]=s;const a=s.isActive()||t!==i&&(!s.getProps().delegated||s.getFirst(!1)!==t);s.makeTabbable(a)}}for(const i of Object.keys(this._current)){const s=this._current[i];s.id in o||(s.makeTabbable(!1),s.setFirst(void 0),delete this._current[i])}}_enterGroupper(t,r){const n=this._tabster,o=pt.getTabsterContext(n,t),i=(o==null?void 0:o.groupper)||(o==null?void 0:o.modalizerInGroupper),s=i==null?void 0:i.getElement();if(i&&s&&(t===s||i.getProps().delegated&&t===i.getFirst(!1))){const a=n.focusable.findNext({container:s,currentElement:t,useActiveModalizer:!0});if(a&&(!r||r&&s.dispatchEvent(new Ii({by:"groupper",owner:s,next:a,relatedEvent:r}))))return r&&(r.preventDefault(),r.stopImmediatePropagation()),a.focus(),a}return null}_escapeGroupper(t,r,n){const o=this._tabster,i=pt.getTabsterContext(o,t);let s=(i==null?void 0:i.groupper)||(i==null?void 0:i.modalizerInGroupper);const a=s==null?void 0:s.getElement();if(s&&a&&le.nodeContains(a,t)){let l;if(t!==a||n)l=s.getFirst(!0);else{const c=le.getParentElement(a),u=c?pt.getTabsterContext(o,c):void 0;s=u==null?void 0:u.groupper,l=s==null?void 0:s.getFirst(!0)}if(l&&(!r||r&&a.dispatchEvent(new Ii({by:"groupper",owner:a,next:l,relatedEvent:r}))))return s&&s.makeTabbable(!1),l.focus(),l}return null}moveFocus(t,r){return r===$f.Enter?this._enterGroupper(t):this._escapeGroupper(t)}handleKeyPress(t,r,n){const o=this._tabster,i=pt.getTabsterContext(o,t);if(i&&(i!=null&&i.groupper||i!=null&&i.modalizerInGroupper)){if(o.focusedElement.cancelAsyncFocus(Xo.EscapeGroupper),i.ignoreKeydown(r))return;if(r.key===$t.Enter)this._enterGroupper(t,r);else if(r.key===$t.Escape){const s=o.focusedElement.getFocusedElement();o.focusedElement.requestAsyncFocus(Xo.EscapeGroupper,()=>{s!==o.focusedElement.getFocusedElement()&&(n&&!s||!n)||this._escapeGroupper(t,r,n)},0)}}}}/*!
78
+ * Copyright (c) Microsoft Corporation. All rights reserved.
79
+ * Licensed under the MIT License.
80
+ */class UI extends x5{constructor(t){super(),this._onChange=r=>{this.setVal(r,void 0)},this._keyborg=np(t()),this._keyborg.subscribe(this._onChange)}dispose(){super.dispose(),this._keyborg&&(this._keyborg.unsubscribe(this._onChange),op(this._keyborg),delete this._keyborg)}setNavigatingWithKeyboard(t){var r;(r=this._keyborg)===null||r===void 0||r.setVal(t)}isNavigatingWithKeyboard(){var t;return!!(!((t=this._keyborg)===null||t===void 0)&&t.isNavigatingWithKeyboard())}}/*!
81
+ * Copyright (c) Microsoft Corporation. All rights reserved.
82
+ * Licensed under the MIT License.
83
+ */let GI=0;const Tg="aria-hidden";class XI extends Qa{constructor(t,r,n){super(r,t,ip.Modalizer,n),this._setHandlers((o,i)=>{var s,a;const l=t.get(),c=l&&((s=pt.getRoot(r,l))===null||s===void 0?void 0:s.getElement()),u=o.input;let d;if(c&&u){const p=Ja(u),h=pt.getTabsterContext(r,p||u);h&&(d=(a=Ht.findNextTabbable(r,h,c,u,void 0,i,!0))===null||a===void 0?void 0:a.element),d&&No(d)}})}}class YI extends ju{constructor(t,r,n,o,i,s){super(t,r,o),this._wasFocused=0,this.userId=o.id,this._onDispose=n,this._activeElements=s,t.controlTab||(this.dummyManager=new XI(this._element,t,i))}makeActive(t){if(this._isActive!==t){this._isActive=t;const r=this.getElement();if(r){const n=this._activeElements,o=n.map(i=>i.get()).indexOf(r);t?o<0&&n.push(new gn(this._tabster.getWindow,r)):o>=0&&n.splice(o,1)}this._dispatchEvent(t)}}focused(t){return t||(this._wasFocused=++GI),this._wasFocused}setProps(t){t.id&&(this.userId=t.id),this._props={...t}}dispose(){var t;this.makeActive(!1),this._onDispose(this),(t=this.dummyManager)===null||t===void 0||t.dispose(),delete this.dummyManager,this._activeElements=[],this._remove()}isActive(){return!!this._isActive}contains(t){return le.nodeContains(this.getElement(),t)}findNextTabbable(t,r,n,o){var i,s;if(!this.getElement())return null;const l=this._tabster;let c=null,u=!1,d;const p=t&&((i=pt.getRoot(l,t))===null||i===void 0?void 0:i.getElement());if(p){const h={container:p,currentElement:t,referenceElement:r,ignoreAccessibility:o,useActiveModalizer:!0},m={};c=l.focusable[n?"findPrev":"findNext"](h,m),!c&&this._props.isTrapped&&(!((s=l.modalizer)===null||s===void 0)&&s.activeId)?(c=l.focusable[n?"findLast":"findFirst"]({container:p,ignoreAccessibility:o,useActiveModalizer:!0},m),c===null&&(c=t),u=!0):u=!!m.outOfDOMOrder,d=m.uncontrolled}return{element:c,uncontrolled:d,outOfDOMOrder:u}}_dispatchEvent(t,r){const n=this.getElement();let o=!1;if(n){const i=r?this._activeElements.map(s=>s.get()):[n];for(const s of i)if(s){const a={id:this.userId,element:n},l=t?new ZP(a):new KP(a);s.dispatchEvent(l),l.defaultPrevented&&(o=!0)}}return o}_remove(){}}class ZI{constructor(t,r,n){this._onModalizerDispose=i=>{const s=i.id,a=i.userId,l=this._parts[a];if(delete this._modalizers[s],l&&(delete l[s],Object.keys(l).length===0)){delete this._parts[a];const c=this._activationHistory,u=[];let d;for(let p=c.length;p--;){const h=c[p];h!==a&&h!==d&&(d=h,(h||u.length>0)&&u.unshift(h))}if(this._activationHistory=u,this.activeId===a){const p=u[0],h=p?Object.values(this._parts[p])[0]:void 0;this.setActive(h)}}},this._onKeyDown=i=>{var s;if(i.key!==$t.Escape)return;const a=this._tabster,l=a.focusedElement.getFocusedElement();if(l){const c=pt.getTabsterContext(a,l),u=c==null?void 0:c.modalizer;if(c&&!c.groupper&&(u!=null&&u.isActive())&&!c.ignoreKeydown(i)){const d=u.userId;if(d){const p=this._parts[d];if(p){const h=Object.keys(p).map(m=>{var g;const y=p[m],v=y.getElement();let b;return v&&(b=(g=pr(a,v))===null||g===void 0?void 0:g.groupper),y&&v&&b?{el:v,focusedSince:y.focused(!0)}:{focusedSince:0}}).filter(m=>m.focusedSince>0).sort((m,g)=>m.focusedSince>g.focusedSince?-1:m.focusedSince<g.focusedSince?1:0);if(h.length){const m=h[0].el;m&&((s=a.groupper)===null||s===void 0||s.handleKeyPress(m,i,!0))}}}}}},this._onFocus=(i,s)=>{var a;const l=this._tabster,c=i&&pt.getTabsterContext(l,i);if(!c||!i)return;const u=this._augMap;for(let m=i;m;m=le.getParentElement(m))u.has(m)&&(u.delete(m),Bg(l,m,Tg));let d=c.modalizer;const p=pr(l,i),h=p==null?void 0:p.modalizer;if(h&&(h.focused(),h.userId===this.activeId&&p.groupper)){const m=l.getParent(i),g=m&&((a=pt.getTabsterContext(l,m))===null||a===void 0?void 0:a.modalizer);if(g)d=g;else{this.setActive(void 0);return}}if(d==null||d.focused(),(d==null?void 0:d.userId)===this.activeId){this.currentIsOthersAccessible=d==null?void 0:d.getProps().isOthersAccessible;return}if(s.isFocusedProgrammatically||this.currentIsOthersAccessible||d!=null&&d.getProps().isAlwaysAccessible)this.setActive(d);else{const m=this._win();m.clearTimeout(this._restoreModalizerFocusTimer),this._restoreModalizerFocusTimer=m.setTimeout(()=>this._restoreModalizerFocus(i),100)}},this._tabster=t,this._win=t.getWindow,this._modalizers={},this._parts={},this._augMap=new WeakMap,this._aug=[],this._alwaysAccessibleSelector=r,this._accessibleCheck=n,this._activationHistory=[],this.activeElements=[],t.controlTab||t.root.addDummyInputs(),this._win().addEventListener("keydown",this._onKeyDown,!0),t.queueInit(()=>{this._tabster.focusedElement.subscribe(this._onFocus)})}dispose(){const t=this._win();t.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._modalizers).forEach(r=>{this._modalizers[r]&&(this._modalizers[r].dispose(),delete this._modalizers[r])}),t.clearTimeout(this._restoreModalizerFocusTimer),t.clearTimeout(this._hiddenUpdateTimer),this._parts={},delete this.activeId,this.activeElements=[],this._augMap=new WeakMap,this._aug=[],this._tabster.focusedElement.unsubscribe(this._onFocus)}createModalizer(t,r,n){var o;const i=new YI(this._tabster,t,this._onModalizerDispose,r,n,this.activeElements),s=i.id,a=r.id;this._modalizers[s]=i;let l=this._parts[a];l||(l=this._parts[a]={}),l[s]=i;const c=(o=this._tabster.focusedElement.getFocusedElement())!==null&&o!==void 0?o:null;return t!==c&&le.nodeContains(t,c)&&(a!==this.activeId?this.setActive(i):i.makeActive(!0)),i}isAugmented(t){return this._augMap.has(t)}hiddenUpdate(){this._hiddenUpdateTimer||(this._hiddenUpdateTimer=this._win().setTimeout(()=>{delete this._hiddenUpdateTimer,this._hiddenUpdate()},250))}setActive(t){const r=t==null?void 0:t.userId,n=this.activeId;if(n===r)return;if(this.activeId=r,n){const i=this._parts[n];if(i)for(const s of Object.keys(i))i[s].makeActive(!1)}if(r){const i=this._parts[r];if(i)for(const s of Object.keys(i))i[s].makeActive(!0)}this.currentIsOthersAccessible=t==null?void 0:t.getProps().isOthersAccessible,this.hiddenUpdate();const o=this._activationHistory;o[0]!==r&&(r!==void 0||o.length>0)&&o.unshift(r)}focus(t,r,n){const o=this._tabster,i=pt.getTabsterContext(o,t),s=i==null?void 0:i.modalizer;if(s){this.setActive(s);const a=s.getProps(),l=s.getElement();if(l){if(r===void 0&&(r=a.isNoFocusFirst),!r&&o.keyboardNavigation.isNavigatingWithKeyboard()&&o.focusedElement.focusFirst({container:l})||(n===void 0&&(n=a.isNoFocusDefault),!n&&o.focusedElement.focusDefault(l)))return!0;o.focusedElement.resetFocus(l)}}return!1}activate(t){var r;const n=t?(r=pt.getTabsterContext(this._tabster,t))===null||r===void 0?void 0:r.modalizer:void 0;return!t||n?(this.setActive(n),!0):!1}acceptElement(t,r){var n;const o=r.modalizerUserId,i=(n=r.currentCtx)===null||n===void 0?void 0:n.modalizer;if(o)for(const a of this.activeElements){const l=a.get();if(l&&(le.nodeContains(t,l)||l===t))return NodeFilter.FILTER_SKIP}const s=o===(i==null?void 0:i.userId)||!o&&(i!=null&&i.getProps().isAlwaysAccessible)?void 0:NodeFilter.FILTER_SKIP;return s!==void 0&&(r.skippedFocusable=!0),s}_hiddenUpdate(){var t;const r=this._tabster,n=r.getWindow().document.body,o=this.activeId,i=this._parts,s=[],a=[],l=this._alwaysAccessibleSelector,c=l?Array.from(le.querySelectorAll(n,l)):[],u=[];for(const v of Object.keys(i)){const b=i[v];for(const x of Object.keys(b)){const k=b[x],S=k.getElement(),N=k.getProps().isAlwaysAccessible;S&&(v===o?(u.push(S),this.currentIsOthersAccessible||s.push(S)):N?c.push(S):a.push(S))}}const d=this._augMap,p=s.length>0?[...s,...c]:void 0,h=[],m=new WeakMap,g=(v,b)=>{var x;const k=v.tagName;if(k==="SCRIPT"||k==="STYLE")return;let S=!1;d.has(v)?b?S=!0:(d.delete(v),Bg(r,v,Tg)):b&&!(!((x=this._accessibleCheck)===null||x===void 0)&&x.call(this,v,u))&&Bg(r,v,Tg,"true")&&(d.set(v,!0),S=!0),S&&(h.push(new gn(r.getWindow,v)),m.set(v,!0))},y=v=>{var b;for(let x=le.getFirstElementChild(v);x;x=le.getNextElementSibling(x)){let k=!1,S=!1,_=!1;if(p){const N=r.getParent(x);for(const z of p){if(x===z){k=!0;break}if(le.nodeContains(x,z)){S=!0;break}else le.nodeContains(z,N)&&(_=!0)}S||!((b=x.__tabsterElementFlags)===null||b===void 0)&&b.noDirectAriaHidden?y(x):!k&&!_&&g(x,!0)}else g(x,!1)}};p||c.forEach(v=>g(v,!1)),a.forEach(v=>g(v,!0)),n&&y(n),(t=this._aug)===null||t===void 0||t.map(v=>v.get()).forEach(v=>{v&&!m.get(v)&&g(v,!1)}),this._aug=h,this._augMap=m}_restoreModalizerFocus(t){var r;const n=t==null?void 0:t.ownerDocument;if(!t||!n)return;const o=this._tabster.focusedElement.getFocusedElement(),i=o&&((r=pt.getTabsterContext(this._tabster,o))===null||r===void 0?void 0:r.modalizer);if(!o||o&&(i==null?void 0:i.userId)===this.activeId)return;const s=this._tabster,a=pt.getTabsterContext(s,t),l=a==null?void 0:a.modalizer,c=this.activeId;if(!l&&!c||l&&c===l.userId)return;const u=a==null?void 0:a.root.getElement();if(u){let d=s.focusable.findFirst({container:u,useActiveModalizer:!0});if(d){if(t.compareDocumentPosition(d)&document.DOCUMENT_POSITION_PRECEDING&&(d=s.focusable.findLast({container:u,useActiveModalizer:!0}),!d))throw new Error("Something went wrong.");s.focusedElement.focus(d);return}}t.blur()}}/*!
84
+ * Copyright (c) Microsoft Corporation. All rights reserved.
85
+ * Licensed under the MIT License.
86
+ */const KI=["input","textarea","*[contenteditable]"].join(", ");class QI extends Qa{constructor(t,r,n,o){super(r,t,ip.Mover,o),this._onFocusDummyInput=i=>{var s,a;const l=this._element.get(),c=i.input;if(l&&c){const u=pt.getTabsterContext(this._tabster,l);let d;u&&(d=(s=Ht.findNextTabbable(this._tabster,u,void 0,c,void 0,!i.isFirst,!0))===null||s===void 0?void 0:s.element);const p=(a=this._getMemorized())===null||a===void 0?void 0:a.get();p&&this._tabster.focusable.isFocusable(p)&&(d=p),d&&No(d)}},this._tabster=r,this._getMemorized=n,this._setHandlers(this._onFocusDummyInput)}}const Ng=1,yw=2,bw=3;class JI extends ju{constructor(t,r,n,o,i){var s;super(t,r,o),this._visible={},this._onIntersection=l=>{for(const c of l){const u=c.target,d=Qd(this._win,u);let p,h=this._fullyVisible;if(c.intersectionRatio>=.25?(p=c.intersectionRatio>=.75?mi.Visible:mi.PartiallyVisible,p===mi.Visible&&(h=d)):p=mi.Invisible,this._visible[d]!==p){p===void 0?(delete this._visible[d],h===d&&delete this._fullyVisible):(this._visible[d]=p,this._fullyVisible=h);const m=this.getState(u);m&&u.dispatchEvent(new uw(m))}}},this._win=t.getWindow,this.visibilityTolerance=(s=o.visibilityTolerance)!==null&&s!==void 0?s:.8,(this._props.trackState||this._props.visibilityAware)&&(this._intersectionObserver=new IntersectionObserver(this._onIntersection,{threshold:[0,.25,.5,.75,1]}),this._observeState()),this._onDispose=n;const a=()=>o.memorizeCurrent?this._current:void 0;t.controlTab||(this.dummyManager=new QI(this._element,t,a,i))}dispose(){var t;this._onDispose(this),this._intersectionObserver&&(this._intersectionObserver.disconnect(),delete this._intersectionObserver),delete this._current,delete this._fullyVisible,delete this._allElements,delete this._updateQueue,this._unobserve&&(this._unobserve(),delete this._unobserve);const r=this._win();this._setCurrentTimer&&(r.clearTimeout(this._setCurrentTimer),delete this._setCurrentTimer),this._updateTimer&&(r.clearTimeout(this._updateTimer),delete this._updateTimer),(t=this.dummyManager)===null||t===void 0||t.dispose(),delete this.dummyManager}setCurrent(t){t?this._current=new gn(this._win,t):this._current=void 0,(this._props.trackState||this._props.visibilityAware)&&!this._setCurrentTimer&&(this._setCurrentTimer=this._win().setTimeout(()=>{var r;delete this._setCurrentTimer;const n=[];this._current!==this._prevCurrent&&(n.push(this._current),n.push(this._prevCurrent),this._prevCurrent=this._current);for(const o of n){const i=o==null?void 0:o.get();if(i&&((r=this._allElements)===null||r===void 0?void 0:r.get(i))===this){const s=this._props;if(i&&(s.visibilityAware!==void 0||s.trackState)){const a=this.getState(i);a&&i.dispatchEvent(new uw(a))}}}}))}getCurrent(){var t;return((t=this._current)===null||t===void 0?void 0:t.get())||null}findNextTabbable(t,r,n,o){const i=this.getElement(),s=i&&Ja(t)===i;if(!i)return null;let a=null,l=!1,c;if(this._props.tabbable||s||t&&!le.nodeContains(i,t)){const u={currentElement:t,referenceElement:r,container:i,ignoreAccessibility:o,useActiveModalizer:!0},d={};a=this._tabster.focusable[n?"findPrev":"findNext"](u,d),l=!!d.outOfDOMOrder,c=d.uncontrolled}return{element:a,uncontrolled:c,outOfDOMOrder:l}}acceptElement(t,r){var n,o;if(!Ht.isTabbing)return!((n=r.currentCtx)===null||n===void 0)&&n.excludedFromMover?NodeFilter.FILTER_REJECT:void 0;const{memorizeCurrent:i,visibilityAware:s,hasDefault:a=!0}=this._props,l=this.getElement();if(l&&(i||s||a)&&(!le.nodeContains(l,r.from)||Ja(r.from)===l)){let c;if(i){const u=(o=this._current)===null||o===void 0?void 0:o.get();u&&r.acceptCondition(u)&&(c=u)}if(!c&&a&&(c=this._tabster.focusable.findDefault({container:l,useActiveModalizer:!0})),!c&&s&&(c=this._tabster.focusable.findElement({container:l,useActiveModalizer:!0,isBackward:r.isBackward,acceptCondition:u=>{var d;const p=Qd(this._win,u),h=this._visible[p];return l!==u&&!!(!((d=this._allElements)===null||d===void 0)&&d.get(u))&&r.acceptCondition(u)&&(h===mi.Visible||h===mi.PartiallyVisible&&(s===mi.PartiallyVisible||!this._fullyVisible))}})),c)return r.found=!0,r.foundElement=c,r.rejectElementsFrom=l,r.skippedFocusable=!0,NodeFilter.FILTER_ACCEPT}}_observeState(){const t=this.getElement();if(this._unobserve||!t||typeof MutationObserver>"u")return;const r=this._win(),n=this._allElements=new WeakMap,o=this._tabster.focusable;let i=this._updateQueue=[];const s=le.createMutationObserver(h=>{for(const m of h){const g=m.target,y=m.removedNodes,v=m.addedNodes;if(m.type==="attributes")m.attributeName==="tabindex"&&i.push({element:g,type:yw});else{for(let b=0;b<y.length;b++)i.push({element:y[b],type:bw});for(let b=0;b<v.length;b++)i.push({element:v[b],type:Ng})}}d()}),a=(h,m)=>{var g,y;const v=n.get(h);v&&m&&((g=this._intersectionObserver)===null||g===void 0||g.unobserve(h),n.delete(h)),!v&&!m&&(n.set(h,this),(y=this._intersectionObserver)===null||y===void 0||y.observe(h))},l=h=>{const m=o.isFocusable(h);n.get(h)?m||a(h,!0):m&&a(h)},c=h=>{const{mover:m}=p(h);if(m&&m!==this)if(m.getElement()===h&&o.isFocusable(h))a(h);else return;const g=Oy(r.document,h,y=>{const{mover:v,groupper:b}=p(y);if(v&&v!==this)return NodeFilter.FILTER_REJECT;const x=b==null?void 0:b.getFirst(!0);return b&&b.getElement()!==y&&x&&x!==y?NodeFilter.FILTER_REJECT:(o.isFocusable(y)&&a(y),NodeFilter.FILTER_SKIP)});if(g)for(g.currentNode=h;g.nextNode(););},u=h=>{n.get(h)&&a(h,!0);for(let g=le.getFirstElementChild(h);g;g=le.getNextElementSibling(g))u(g)},d=()=>{!this._updateTimer&&i.length&&(this._updateTimer=r.setTimeout(()=>{delete this._updateTimer;for(const{element:h,type:m}of i)switch(m){case yw:l(h);break;case Ng:c(h);break;case bw:u(h);break}i=this._updateQueue=[]},0))},p=h=>{const m={};for(let g=h;g;g=le.getParentElement(g)){const y=pr(this._tabster,g);if(y&&(y.groupper&&!m.groupper&&(m.groupper=y.groupper),y.mover)){m.mover=y.mover;break}}return m};i.push({element:t,type:Ng}),d(),s.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["tabindex"]}),this._unobserve=()=>{s.disconnect()}}getState(t){const r=Qd(this._win,t);if(r in this._visible){const n=this._visible[r]||mi.Invisible;return{isCurrent:this._current?this._current.get()===t:void 0,visibility:n}}}}function eM(e,t,r,n,o,i,s,a){const l=r<o?o-r:s<e?e-s:0,c=n<i?i-n:a<t?t-a:0;return l===0?c:c===0?l:Math.sqrt(l*l+c*c)}class tM{constructor(t,r){this._init=()=>{const n=this._win();n.addEventListener("keydown",this._onKeyDown,!0),n.addEventListener(d0,this._onMoveFocus),n.addEventListener(cw,this._onMemorizedElement),this._tabster.focusedElement.subscribe(this._onFocus)},this._onMoverDispose=n=>{delete this._movers[n.id]},this._onFocus=n=>{var o;let i=n,s=n;for(let a=le.getParentElement(n);a;a=le.getParentElement(a)){const l=(o=pr(this._tabster,a))===null||o===void 0?void 0:o.mover;l&&(l.setCurrent(s),i=void 0),!i&&this._tabster.focusable.isFocusable(a)&&(i=s=a)}},this._onKeyDown=async n=>{var o;if(this._ignoredInputTimer&&(this._win().clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),(o=this._ignoredInputResolve)===null||o===void 0||o.call(this,!1),n.ctrlKey||n.altKey||n.shiftKey||n.metaKey)return;const i=n.key;let s;if(i===$t.ArrowDown?s=qt.ArrowDown:i===$t.ArrowRight?s=qt.ArrowRight:i===$t.ArrowUp?s=qt.ArrowUp:i===$t.ArrowLeft?s=qt.ArrowLeft:i===$t.PageDown?s=qt.PageDown:i===$t.PageUp?s=qt.PageUp:i===$t.Home?s=qt.Home:i===$t.End&&(s=qt.End),!s)return;const a=this._tabster.focusedElement.getFocusedElement();!a||await this._isIgnoredInput(a,i)||this._moveFocus(a,s,n)},this._onMoveFocus=n=>{var o;const i=n.composedPath()[0],s=(o=n.detail)===null||o===void 0?void 0:o.key;i&&s!==void 0&&!n.defaultPrevented&&(this._moveFocus(i,s),n.stopImmediatePropagation())},this._onMemorizedElement=n=>{var o;const i=n.composedPath()[0];let s=(o=n.detail)===null||o===void 0?void 0:o.memorizedElement;if(i){const a=pt.getTabsterContext(this._tabster,i),l=a==null?void 0:a.mover;l&&(s&&!le.nodeContains(l.getElement(),s)&&(s=void 0),l.setCurrent(s),n.stopImmediatePropagation())}},this._tabster=t,this._win=r,this._movers={},t.queueInit(this._init)}dispose(){var t;const r=this._win();this._tabster.focusedElement.unsubscribe(this._onFocus),(t=this._ignoredInputResolve)===null||t===void 0||t.call(this,!1),this._ignoredInputTimer&&(r.clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),r.removeEventListener("keydown",this._onKeyDown,!0),r.removeEventListener(d0,this._onMoveFocus),r.removeEventListener(cw,this._onMemorizedElement),Object.keys(this._movers).forEach(n=>{this._movers[n]&&(this._movers[n].dispose(),delete this._movers[n])})}createMover(t,r,n){const o=new JI(this._tabster,t,this._onMoverDispose,r,n);return this._movers[o.id]=o,o}moveFocus(t,r){return this._moveFocus(t,r)}_moveFocus(t,r,n){var o,i;const s=this._tabster,a=pt.getTabsterContext(s,t,{checkRtl:!0});if(!a||!a.mover||a.excludedFromMover||n&&a.ignoreKeydown(n))return null;const l=a.mover,c=l.getElement();if(a.groupperBeforeMover){const z=a.groupper;if(z&&!z.isActive(!0)){for(let F=le.getParentElement(z.getElement());F&&F!==c;F=le.getParentElement(F))if(!((i=(o=pr(s,F))===null||o===void 0?void 0:o.groupper)===null||i===void 0)&&i.isActive(!0))return null}else return null}if(!c)return null;const u=s.focusable,d=l.getProps(),p=d.direction||Gn.Both,h=p===Gn.Both,m=h||p===Gn.Vertical,g=h||p===Gn.Horizontal,y=p===Gn.GridLinear,v=y||p===Gn.Grid,b=d.cyclic;let x,k,S,_=0,N=0;if(v&&(S=t.getBoundingClientRect(),_=Math.ceil(S.left),N=Math.floor(S.right)),a.rtl&&(r===qt.ArrowRight?r=qt.ArrowLeft:r===qt.ArrowLeft&&(r=qt.ArrowRight)),r===qt.ArrowDown&&m||r===qt.ArrowRight&&(g||v))if(x=u.findNext({currentElement:t,container:c,useActiveModalizer:!0}),x&&v){const z=Math.ceil(x.getBoundingClientRect().left);!y&&N>z&&(x=void 0)}else!x&&b&&(x=u.findFirst({container:c,useActiveModalizer:!0}));else if(r===qt.ArrowUp&&m||r===qt.ArrowLeft&&(g||v))if(x=u.findPrev({currentElement:t,container:c,useActiveModalizer:!0}),x&&v){const z=Math.floor(x.getBoundingClientRect().right);!y&&z>_&&(x=void 0)}else!x&&b&&(x=u.findLast({container:c,useActiveModalizer:!0}));else if(r===qt.Home)v?u.findElement({container:c,currentElement:t,useActiveModalizer:!0,isBackward:!0,acceptCondition:z=>{var F;if(!u.isFocusable(z))return!1;const I=Math.ceil((F=z.getBoundingClientRect().left)!==null&&F!==void 0?F:0);return z!==t&&_<=I?!0:(x=z,!1)}}):x=u.findFirst({container:c,useActiveModalizer:!0});else if(r===qt.End)v?u.findElement({container:c,currentElement:t,useActiveModalizer:!0,acceptCondition:z=>{var F;if(!u.isFocusable(z))return!1;const I=Math.ceil((F=z.getBoundingClientRect().left)!==null&&F!==void 0?F:0);return z!==t&&_>=I?!0:(x=z,!1)}}):x=u.findLast({container:c,useActiveModalizer:!0});else if(r===qt.PageUp){if(u.findElement({currentElement:t,container:c,useActiveModalizer:!0,isBackward:!0,acceptCondition:z=>u.isFocusable(z)?pw(this._win,z,l.visibilityTolerance)?(x=z,!1):!0:!1}),v&&x){const z=Math.ceil(x.getBoundingClientRect().left);u.findElement({currentElement:x,container:c,useActiveModalizer:!0,acceptCondition:F=>{if(!u.isFocusable(F))return!1;const I=Math.ceil(F.getBoundingClientRect().left);return _<I||z>=I?!0:(x=F,!1)}})}k=!1}else if(r===qt.PageDown){if(u.findElement({currentElement:t,container:c,useActiveModalizer:!0,acceptCondition:z=>u.isFocusable(z)?pw(this._win,z,l.visibilityTolerance)?(x=z,!1):!0:!1}),v&&x){const z=Math.ceil(x.getBoundingClientRect().left);u.findElement({currentElement:x,container:c,useActiveModalizer:!0,isBackward:!0,acceptCondition:F=>{if(!u.isFocusable(F))return!1;const I=Math.ceil(F.getBoundingClientRect().left);return _>I||z<=I?!0:(x=F,!1)}})}k=!0}else if(v){const z=r===qt.ArrowUp,F=_,I=Math.ceil(S.top),H=N,A=Math.floor(S.bottom);let P,C,R=0;u.findAll({container:c,currentElement:t,isBackward:z,onElement:O=>{const D=O.getBoundingClientRect(),M=Math.ceil(D.left),$=Math.ceil(D.top),X=Math.floor(D.right),V=Math.floor(D.bottom);if(z&&I<V||!z&&A>$)return!0;const L=Math.ceil(Math.min(H,X))-Math.floor(Math.max(F,M)),Y=Math.ceil(Math.min(H-F,X-M));if(L>0&&Y>=L){const ee=L/Y;ee>R&&(P=O,R=ee)}else if(R===0){const ee=eM(F,I,H,A,M,$,X,V);(C===void 0||ee<C)&&(C=ee,P=O)}else if(R>0)return!1;return!0}}),x=P}return x&&(!n||n&&c.dispatchEvent(new Ii({by:"mover",owner:c,next:x,relatedEvent:n})))?(k!==void 0&&TI(this._win,x,k),n&&(n.preventDefault(),n.stopImmediatePropagation()),No(x),x):null}async _isIgnoredInput(t,r){if(t.getAttribute("aria-expanded")==="true"&&(t.hasAttribute("aria-activedescendant")||t.getAttribute("role")==="combobox"))return!0;if(v5(t,KI)){let n=0,o=0,i=0,s;if(t.tagName==="INPUT"||t.tagName==="TEXTAREA"){const a=t.type;if(i=(t.value||"").length,a==="email"||a==="number"){if(i){const c=le.getSelection(t);if(c){const u=c.toString().length,d=r===$t.ArrowLeft||r===$t.ArrowUp;if(c.modify("extend",d?"backward":"forward","character"),u!==c.toString().length)return c.modify("extend",d?"forward":"backward","character"),!0;i=0}}}else{const c=t.selectionStart;if(c===null)return a==="hidden";n=c||0,o=t.selectionEnd||0}}else t.contentEditable==="true"&&(s=new(zI(this._win))(a=>{this._ignoredInputResolve=h=>{delete this._ignoredInputResolve,a(h)};const l=this._win();this._ignoredInputTimer&&l.clearTimeout(this._ignoredInputTimer);const{anchorNode:c,focusNode:u,anchorOffset:d,focusOffset:p}=le.getSelection(t)||{};this._ignoredInputTimer=l.setTimeout(()=>{var h,m,g;delete this._ignoredInputTimer;const{anchorNode:y,focusNode:v,anchorOffset:b,focusOffset:x}=le.getSelection(t)||{};if(y!==c||v!==u||b!==d||x!==p){(h=this._ignoredInputResolve)===null||h===void 0||h.call(this,!1);return}if(n=b||0,o=x||0,i=((m=t.textContent)===null||m===void 0?void 0:m.length)||0,y&&v&&le.nodeContains(t,y)&&le.nodeContains(t,v)&&y!==t){let k=!1;const S=_=>{if(_===y)k=!0;else if(_===v)return!0;const N=_.textContent;if(N&&!le.getFirstChild(_)){const F=N.length;k?v!==y&&(o+=F):(n+=F,o+=F)}let z=!1;for(let F=le.getFirstChild(_);F&&!z;F=F.nextSibling)z=S(F);return z};S(t)}(g=this._ignoredInputResolve)===null||g===void 0||g.call(this,!0)},0)}));if(s&&!await s||n!==o||n>0&&(r===$t.ArrowLeft||r===$t.ArrowUp||r===$t.Home)||n<i&&(r===$t.ArrowRight||r===$t.ArrowDown||r===$t.End))return!0}return!1}}/*!
87
+ * Copyright (c) Microsoft Corporation. All rights reserved.
88
+ * Licensed under the MIT License.
89
+ */function rM(e,t,r,n){if(typeof MutationObserver>"u")return()=>{};const o=t.getWindow;let i;const s=u=>{var d,p,h,m,g;const y=new Set;for(const v of u){const b=v.target,x=v.removedNodes,k=v.addedNodes;if(v.type==="attributes")v.attributeName===to&&(y.has(b)||r(t,b));else{for(let S=0;S<x.length;S++){const _=x[S];y.add(_),a(_,!0),(p=(d=t._dummyObserver).domChanged)===null||p===void 0||p.call(d,b)}for(let S=0;S<k.length;S++)a(k[S]),(m=(h=t._dummyObserver).domChanged)===null||m===void 0||m.call(h,b)}}y.clear(),(g=t.modalizer)===null||g===void 0||g.hiddenUpdate()};function a(u,d){i||(i=ci(o).elementByUId),l(u,d);const p=Oy(e,u,h=>l(h,d));if(p)for(;p.nextNode(););}function l(u,d){var p;if(!u.getAttribute)return NodeFilter.FILTER_SKIP;const h=u.__tabsterElementUID;return h&&i&&(d?delete i[h]:(p=i[h])!==null&&p!==void 0||(i[h]=new gn(o,u))),(pr(t,u)||u.hasAttribute(to))&&r(t,u,d),NodeFilter.FILTER_SKIP}const c=le.createMutationObserver(s);return n&&a(o().document.body),c.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[to]}),()=>{c.disconnect()}}/*!
90
+ * Copyright (c) Microsoft Corporation. All rights reserved.
91
+ * Licensed under the MIT License.
92
+ */class nM{constructor(t){this._isUncontrolledCompletely=t}isUncontrolledCompletely(t,r){var n;const o=(n=this._isUncontrolledCompletely)===null||n===void 0?void 0:n.call(this,t,r);return o===void 0?r:o}}/*!
93
+ * Copyright (c) Microsoft Corporation. All rights reserved.
94
+ * Licensed under the MIT License.
95
+ */class oM extends ju{constructor(t,r,n){var o;if(super(t,r,n),this._hasFocus=!1,this._onFocusOut=i=>{var s;const a=(s=this._element)===null||s===void 0?void 0:s.get();a&&i.relatedTarget===null&&a.dispatchEvent(new fw),a&&!le.nodeContains(a,i.relatedTarget)&&(this._hasFocus=!1)},this._onFocusIn=()=>{this._hasFocus=!0},this._props.type===Ka.Source){const i=(o=this._element)===null||o===void 0?void 0:o.get();i==null||i.addEventListener("focusout",this._onFocusOut),i==null||i.addEventListener("focusin",this._onFocusIn),this._hasFocus=le.nodeContains(i,i&&le.getActiveElement(i.ownerDocument))}}dispose(){var t;if(this._props.type===Ka.Source){const r=(t=this._element)===null||t===void 0?void 0:t.get();r==null||r.removeEventListener("focusout",this._onFocusOut),r==null||r.removeEventListener("focusin",this._onFocusIn),this._hasFocus&&this._tabster.getWindow().document.body.dispatchEvent(new fw)}}}class sp{constructor(t){this._stack=[],this._getWindow=t}push(t){var r;((r=this._stack[this._stack.length-1])===null||r===void 0?void 0:r.get())!==t&&(this._stack.length>sp.DEPTH&&this._stack.shift(),this._stack.push(new gn(this._getWindow,t)))}pop(t=()=>!0){var r;const n=this._getWindow().document;for(let o=this._stack.length-1;o>=0;o--){const i=(r=this._stack.pop())===null||r===void 0?void 0:r.get();if(i&&le.nodeContains(n.body,le.getParentElement(i))&&t(i))return i}}}sp.DEPTH=10;class iM{constructor(t){this._onRestoreFocus=r=>{var n,o;this._focusedElementState.cancelAsyncFocus(Xo.Restorer);const i=r.composedPath()[0];if(i){const s=(o=(n=pr(this._tabster,i))===null||n===void 0?void 0:n.restorer)===null||o===void 0?void 0:o.getProps().id;this._focusedElementState.requestAsyncFocus(Xo.Restorer,()=>this._restoreFocus(i,s),0)}},this._onFocusIn=r=>{var n;if(!r)return;const o=pr(this._tabster,r);((n=o==null?void 0:o.restorer)===null||n===void 0?void 0:n.getProps().type)===Ka.Target&&this._history.push(r)},this._restoreFocus=(r,n)=>{var o;const i=this._getWindow().document;if(le.getActiveElement(i)!==i.body||!this._keyboardNavState.isNavigatingWithKeyboard()&&le.nodeContains(i.body,r))return;const s=a=>{var l,c;const u=(c=(l=pr(this._tabster,a))===null||l===void 0?void 0:l.restorer)===null||c===void 0?void 0:c.getProps();return u?u.id:null};(o=this._history.pop(a=>n===s(a)))===null||o===void 0||o.focus()},this._tabster=t,this._getWindow=t.getWindow,this._getWindow().addEventListener(h0,this._onRestoreFocus),this._history=new sp(this._getWindow),this._keyboardNavState=t.keyboardNavigation,this._focusedElementState=t.focusedElement,this._focusedElementState.subscribe(this._onFocusIn)}dispose(){const t=this._getWindow();this._focusedElementState.unsubscribe(this._onFocusIn),this._focusedElementState.cancelAsyncFocus(Xo.Restorer),t.removeEventListener(h0,this._onRestoreFocus)}createRestorer(t,r){const n=new oM(this._tabster,t,r);return r.type===Ka.Target&&le.getActiveElement(t.ownerDocument)===t&&this._history.push(t),n}}/*!
96
+ * Copyright (c) Microsoft Corporation. All rights reserved.
97
+ * Licensed under the MIT License.
98
+ */class sM{constructor(t){this.keyboardNavigation=t.keyboardNavigation,this.focusedElement=t.focusedElement,this.focusable=t.focusable,this.root=t.root,this.uncontrolled=t.uncontrolled,this.core=t}}class aM{constructor(t,r){var n,o;this._forgetMemorizedElements=[],this._wrappers=new Set,this._initQueue=[],this._version="8.7.0",this._noop=!1,this.getWindow=()=>{if(!this._win)throw new Error("Using disposed Tabster.");return this._win},this._storage=CI(t),this._win=t;const i=this.getWindow;r!=null&&r.DOMAPI&&wI({...r.DOMAPI}),this.keyboardNavigation=new UI(i),this.focusedElement=new Ht(this,i),this.focusable=new qI(this),this.root=new pt(this,r==null?void 0:r.autoRoot),this.uncontrolled=new nM((r==null?void 0:r.checkUncontrolledCompletely)||(r==null?void 0:r.checkUncontrolledTrappingFocus)),this.controlTab=(n=r==null?void 0:r.controlTab)!==null&&n!==void 0?n:!0,this.rootDummyInputs=!!(r!=null&&r.rootDummyInputs),this._dummyObserver=new AI(i),this.getParent=(o=r==null?void 0:r.getParent)!==null&&o!==void 0?o:le.getParentNode,this.internal={stopObserver:()=>{this._unobserve&&(this._unobserve(),delete this._unobserve)},resumeObserver:s=>{if(!this._unobserve){const a=i().document;this._unobserve=rM(a,this,u5,s)}}},h5(i),this.queueInit(()=>{this.internal.resumeObserver(!0)})}_mergeProps(t){var r;t&&(this.getParent=(r=t.getParent)!==null&&r!==void 0?r:this.getParent)}createTabster(t,r){const n=new sM(this);return t||this._wrappers.add(n),this._mergeProps(r),n}disposeTabster(t,r){r?this._wrappers.clear():this._wrappers.delete(t),this._wrappers.size===0&&this.dispose()}dispose(){var t,r,n,o,i,s,a,l;this.internal.stopObserver();const c=this._win;c==null||c.clearTimeout(this._initTimer),delete this._initTimer,this._initQueue=[],this._forgetMemorizedElements=[],c&&this._forgetMemorizedTimer&&(c.clearTimeout(this._forgetMemorizedTimer),delete this._forgetMemorizedTimer),(t=this.outline)===null||t===void 0||t.dispose(),(r=this.crossOrigin)===null||r===void 0||r.dispose(),(n=this.deloser)===null||n===void 0||n.dispose(),(o=this.groupper)===null||o===void 0||o.dispose(),(i=this.mover)===null||i===void 0||i.dispose(),(s=this.modalizer)===null||s===void 0||s.dispose(),(a=this.observedElement)===null||a===void 0||a.dispose(),(l=this.restorer)===null||l===void 0||l.dispose(),this.keyboardNavigation.dispose(),this.focusable.dispose(),this.focusedElement.dispose(),this.root.dispose(),this._dummyObserver.dispose(),BI(this.getWindow),gw(this.getWindow),this._storage=new WeakMap,this._wrappers.clear(),c&&(SI(c),delete c.__tabsterInstance,delete this._win)}storageEntry(t,r){const n=this._storage;let o=n.get(t);return o?r===!1&&Object.keys(o).length===0&&n.delete(t):r===!0&&(o={},n.set(t,o)),o}forceCleanup(){this._win&&(this._forgetMemorizedElements.push(this._win.document.body),!this._forgetMemorizedTimer&&(this._forgetMemorizedTimer=this._win.setTimeout(()=>{delete this._forgetMemorizedTimer;for(let t=this._forgetMemorizedElements.shift();t;t=this._forgetMemorizedElements.shift())gw(this.getWindow,t),Ht.forgetMemorized(this.focusedElement,t)},0),f5(this.getWindow,!0)))}queueInit(t){var r;this._win&&(this._initQueue.push(t),this._initTimer||(this._initTimer=(r=this._win)===null||r===void 0?void 0:r.setTimeout(()=>{delete this._initTimer,this.drainInitQueue()},0)))}drainInitQueue(){if(!this._win)return;const t=this._initQueue;this._initQueue=[],t.forEach(r=>r())}}function lM(e,t){let r=pM(e);return r?r.createTabster(!1,t):(r=new aM(e,t),e.__tabsterInstance=r,r.createTabster())}function cM(e){const t=e.core;return t.groupper||(t.groupper=new VI(t,t.getWindow)),t.groupper}function uM(e){const t=e.core;return t.mover||(t.mover=new tM(t,t.getWindow)),t.mover}function dM(e,t,r){const n=e.core;return n.modalizer||(n.modalizer=new ZI(n,t,r)),n.modalizer}function fM(e){const t=e.core;return t.restorer||(t.restorer=new iM(t)),t.restorer}function hM(e,t){e.core.disposeTabster(e,t)}function pM(e){return e.__tabsterInstance}const gM=e=>e;function mM(e){const t=(e==null?void 0:e.defaultView)||void 0,r=t==null?void 0:t.__tabsterShadowDOMAPI;if(t)return lM(t,{autoRoot:{},controlTab:!1,getParent:kP,checkUncontrolledCompletely:n=>{var o;return((o=n.firstElementChild)===null||o===void 0?void 0:o.hasAttribute("data-is-focus-trap-zone-bumper"))===!0||void 0},DOMAPI:r})}function zu(e=gM){const{targetDocument:t}=mt(),r=B.useRef(null);return nr(()=>{const n=mM(t);if(n)return r.current=e(n),()=>{hM(n),r.current=null}},[t,e]),r}const Es=e=>{zu();const t=b5(e);return B.useMemo(()=>({[to]:t}),[t])},nu=(e={})=>{const{circular:t,axis:r,memorizeCurrent:n=!0,tabbable:o,ignoreDefaultKeydown:i,unstable_hasDefault:s}=e;return zu(uM),Es({mover:{cyclic:!!t,direction:vM(r??"vertical"),memorizeCurrent:n,tabbable:o,hasDefault:s},...i&&{focusable:{ignoreKeydown:i}}})};function vM(e){switch(e){case"horizontal":return Gn.Horizontal;case"grid":return Gn.Grid;case"grid-linear":return Gn.GridLinear;case"both":return Gn.Both;case"vertical":default:return Gn.Vertical}}const pl=e=>(zu(cM),Es({groupper:{tabbability:yM(e==null?void 0:e.tabBehavior)},focusable:{ignoreKeydown:e==null?void 0:e.ignoreDefaultKeydown}})),yM=e=>{switch(e){case"unlimited":return Kd.Unlimited;case"limited":return Kd.Limited;case"limited-trap-focus":return Kd.LimitedTrapFocus;default:return}},gl=()=>{const e=zu(),{targetDocument:t}=mt(),r=B.useCallback((a,l)=>{var c;return a&&((c=e.current)===null||c===void 0?void 0:c.focusable.findAll({container:a,acceptCondition:l}))||[]},[e]),n=B.useCallback(a=>{var l;return a&&((l=e.current)===null||l===void 0?void 0:l.focusable.findFirst({container:a}))},[e]),o=B.useCallback(a=>{var l;return a&&((l=e.current)===null||l===void 0?void 0:l.focusable.findLast({container:a}))},[e]),i=B.useCallback((a,l={})=>{if(!e.current||!t||!a)return null;const{container:c=t.body}=l;return e.current.focusable.findNext({currentElement:a,container:c})},[e,t]),s=B.useCallback((a,l={})=>{if(!e.current||!t||!a)return null;const{container:c=t.body}=l;return e.current.focusable.findPrev({currentElement:a,container:c})},[e,t]);return{findAllFocusable:r,findFirstFocusable:n,findLastFocusable:o,findNextFocusable:i,findPrevFocusable:s}},xw="data-fui-focus-visible",w5="data-fui-focus-within";function bM(e,t){if(k5(e))return()=>{};const r={current:void 0},n=np(t);function o(l){n.isNavigatingWithKeyboard()&&Et(l)&&(r.current=l,l.setAttribute(xw,""))}function i(){r.current&&(r.current.removeAttribute(xw),r.current=void 0)}n.subscribe(l=>{l?o(t.document.activeElement):i()});const s=l=>{i();const c=l.composedPath()[0];o(c)},a=l=>{(!l.relatedTarget||Et(l.relatedTarget)&&!e.contains(l.relatedTarget))&&i()};return e.addEventListener(wn,s),e.addEventListener("focusout",a),e.focusVisible=!0,e.contains(t.document.activeElement)&&o(t.document.activeElement),()=>{i(),e.removeEventListener(wn,s),e.removeEventListener("focusout",a),e.focusVisible=void 0,op(n)}}function k5(e){return e?e.focusVisible?!0:k5(e==null?void 0:e.parentElement):!1}function $y(e={}){const t=mt(),r=B.useRef(null);var n;const o=(n=e.targetDocument)!==null&&n!==void 0?n:t.targetDocument;return B.useEffect(()=>{if(o!=null&&o.defaultView&&r.current)return bM(r.current,o.defaultView)},[r,o]),r}function xM(e,t){const r=np(t);r.subscribe(i=>{i||ww(e)});const n=i=>{r.isNavigatingWithKeyboard()&&kw(i.target)&&wM(e)},o=i=>{(!i.relatedTarget||kw(i.relatedTarget)&&!e.contains(i.relatedTarget))&&ww(e)};return e.addEventListener(wn,n),e.addEventListener("focusout",o),()=>{e.removeEventListener(wn,n),e.removeEventListener("focusout",o),op(r)}}function wM(e){e.setAttribute(w5,"")}function ww(e){e.removeAttribute(w5)}function kw(e){return e?!!(e&&typeof e=="object"&&"classList"in e&&"contains"in e):!1}function ml(){const{targetDocument:e}=mt(),t=B.useRef(null);return B.useEffect(()=>{if(e!=null&&e.defaultView&&t.current)return xM(t.current,e.defaultView)},[t,e]),t}function Hy(){const{targetDocument:e}=mt(),t=B.useRef(null);return B.useEffect(()=>{const r=e==null?void 0:e.defaultView;if(r){const n=np(r);return t.current=n,()=>{op(n),t.current=null}}},[e]),t}function S5(e){const t=Hy(),r=ye(e);B.useEffect(()=>{const n=t.current;if(n){const o=i=>{r(i)};return n.subscribe(o),o(n.isNavigatingWithKeyboard()),()=>{n.unsubscribe(o)}}},[t,r])}const kM="data-tabster-never-hide",SM=e=>e.hasAttribute(kM);function CM(e){dM(e,void 0,SM),fM(e)}const C5=(e={})=>{const{trapFocus:t,alwaysFocusable:r,legacyTrapFocus:n}=e;zu(CM);const o=or("modal-",e.id),i=Es({restorer:{type:Ka.Source},...t&&{modalizer:{id:o,isOthersAccessible:!t,isAlwaysAccessible:r,isTrapped:n&&t}}}),s=Es({restorer:{type:Ka.Target}});return{modalAttributes:i,triggerAttributes:s}},_M=(...e)=>{"use no memo";const t=e.reduce((r,n)=>(n!=null&&n[to]&&r.push(n[to]),r),[]);return B.useMemo(()=>({[to]:t.length>0?t.reduce(BM):void 0}),t)},BM=(e,t)=>JSON.stringify(Object.assign(Sw(e),Sw(t))),Sw=e=>{try{return JSON.parse(e)}catch{return{}}};function TM(){const e=Hy();return B.useCallback(()=>{var t,r;return(r=(t=e.current)===null||t===void 0?void 0:t.isNavigatingWithKeyboard())!==null&&r!==void 0?r:!1},[e])}function NM(){const e=Hy();return B.useCallback(t=>{var r;(r=e.current)===null||r===void 0||r.setVal(t)},[e])}const ve={12:"#1f1f1f",14:"#242424",16:"#292929",20:"#333333",22:"#383838",24:"#3d3d3d",26:"#424242",30:"#4d4d4d",34:"#575757",38:"#616161",44:"#707070",70:"#b3b3b3",74:"#bdbdbd",78:"#c7c7c7",82:"#d1d1d1",84:"#d6d6d6",86:"#dbdbdb",88:"#e0e0e0",90:"#e6e6e6",92:"#ebebeb",94:"#f0f0f0",96:"#f5f5f5",98:"#fafafa",99:"#fcfcfc"},vi={10:"rgba(255, 255, 255, 0.1)",20:"rgba(255, 255, 255, 0.2)",40:"rgba(255, 255, 255, 0.4)",50:"rgba(255, 255, 255, 0.5)",70:"rgba(255, 255, 255, 0.7)",80:"rgba(255, 255, 255, 0.8)"},yi={5:"rgba(0, 0, 0, 0.05)",10:"rgba(0, 0, 0, 0.1)",20:"rgba(0, 0, 0, 0.2)",30:"rgba(0, 0, 0, 0.3)",40:"rgba(0, 0, 0, 0.4)",50:"rgba(0, 0, 0, 0.5)"},Ot="#ffffff",jM="#000000",zM={shade50:"#130204",shade40:"#230308",shade30:"#420610",shade20:"#590815",shade10:"#690a19",primary:"#750b1c",tint10:"#861b2c",tint20:"#962f3f",tint30:"#ac4f5e",tint40:"#d69ca5",tint50:"#e9c7cd",tint60:"#f9f0f2"},_5={shade50:"#200205",shade40:"#3b0509",shade30:"#6e0811",shade20:"#960b18",shade10:"#b10e1c",primary:"#c50f1f",tint10:"#cc2635",tint20:"#d33f4c",tint30:"#dc626d",tint40:"#eeacb2",tint50:"#f6d1d5",tint60:"#fdf3f4"},EM={shade50:"#210809",shade40:"#3f1011",shade30:"#751d1f",shade20:"#9f282b",shade10:"#bc2f32",primary:"#d13438",tint10:"#d7494c",tint20:"#dc5e62",tint30:"#e37d80",tint40:"#f1bbbc",tint50:"#f8dadb",tint60:"#fdf6f6"},RM={shade50:"#230900",shade40:"#411200",shade30:"#7a2101",shade20:"#a62d01",shade10:"#c43501",primary:"#da3b01",tint10:"#de501c",tint20:"#e36537",tint30:"#e9835e",tint40:"#f4bfab",tint50:"#f9dcd1",tint60:"#fdf6f3"},AM={shade50:"#200d03",shade40:"#3d1805",shade30:"#712d09",shade20:"#9a3d0c",shade10:"#b6480e",primary:"#ca5010",tint10:"#d06228",tint20:"#d77440",tint30:"#df8e64",tint40:"#efc4ad",tint50:"#f7dfd2",tint60:"#fdf7f4"},FM={shade50:"#271002",shade40:"#4a1e04",shade30:"#8a3707",shade20:"#bc4b09",shade10:"#de590b",primary:"#f7630c",tint10:"#f87528",tint20:"#f98845",tint30:"#faa06b",tint40:"#fdcfb4",tint50:"#fee5d7",tint60:"#fff9f5"},PM={shade50:"#291600",shade40:"#4d2a00",shade30:"#8f4e00",shade20:"#c26a00",shade10:"#e67e00",primary:"#ff8c00",tint10:"#ff9a1f",tint20:"#ffa83d",tint30:"#ffba66",tint40:"#ffddb3",tint50:"#ffedd6",tint60:"#fffaf5"},IM={shade50:"#251a00",shade40:"#463100",shade30:"#835b00",shade20:"#b27c00",shade10:"#d39300",primary:"#eaa300",tint10:"#edad1c",tint20:"#efb839",tint30:"#f2c661",tint40:"#f9e2ae",tint50:"#fcefd3",tint60:"#fefbf4"},MM={shade50:"#282400",shade40:"#4c4400",shade30:"#817400",shade20:"#c0ad00",shade10:"#e4cc00",primary:"#fde300",tint10:"#fde61e",tint20:"#fdea3d",tint30:"#feee66",tint40:"#fef7b2",tint50:"#fffad6",tint60:"#fffef5"},DM={shade50:"#1f1900",shade40:"#3a2f00",shade30:"#6c5700",shade20:"#937700",shade10:"#ae8c00",primary:"#c19c00",tint10:"#c8a718",tint20:"#d0b232",tint30:"#dac157",tint40:"#ecdfa5",tint50:"#f5eece",tint60:"#fdfbf2"},LM={shade50:"#181202",shade40:"#2e2103",shade30:"#553e06",shade20:"#745408",shade10:"#89640a",primary:"#986f0b",tint10:"#a47d1e",tint20:"#b18c34",tint30:"#c1a256",tint40:"#e0cea2",tint50:"#efe4cb",tint60:"#fbf8f2"},OM={shade50:"#170e07",shade40:"#2b1a0e",shade30:"#50301a",shade20:"#6c4123",shade10:"#804d29",primary:"#8e562e",tint10:"#9c663f",tint20:"#a97652",tint30:"#bb8f6f",tint40:"#ddc3b0",tint50:"#edded3",tint60:"#faf7f4"},qM={shade50:"#0c1501",shade40:"#162702",shade30:"#294903",shade20:"#376304",shade10:"#427505",primary:"#498205",tint10:"#599116",tint20:"#6ba02b",tint30:"#85b44c",tint40:"#bdd99b",tint50:"#dbebc7",tint60:"#f6faf0"},$M={shade50:"#002111",shade40:"#003d20",shade30:"#00723b",shade20:"#009b51",shade10:"#00b85f",primary:"#00cc6a",tint10:"#19d279",tint20:"#34d889",tint30:"#5ae0a0",tint40:"#a8f0cd",tint50:"#cff7e4",tint60:"#f3fdf8"},HM={shade50:"#031a02",shade40:"#063004",shade30:"#0b5a08",shade20:"#0e7a0b",shade10:"#11910d",primary:"#13a10e",tint10:"#27ac22",tint20:"#3db838",tint30:"#5ec75a",tint40:"#a7e3a5",tint50:"#cef0cd",tint60:"#f2fbf2"},B5={shade50:"#031403",shade40:"#052505",shade30:"#094509",shade20:"#0c5e0c",shade10:"#0e700e",primary:"#107c10",tint10:"#218c21",tint20:"#359b35",tint30:"#54b054",tint40:"#9fd89f",tint50:"#c9eac9",tint60:"#f1faf1"},WM={shade50:"#021102",shade40:"#032003",shade30:"#063b06",shade20:"#085108",shade10:"#0a5f0a",primary:"#0b6a0b",tint10:"#1a7c1a",tint20:"#2d8e2d",tint30:"#4da64d",tint40:"#9ad29a",tint50:"#c6e7c6",tint60:"#f0f9f0"},VM={shade50:"#001d1f",shade40:"#00373a",shade30:"#00666d",shade20:"#008b94",shade10:"#00a5af",primary:"#00b7c3",tint10:"#18bfca",tint20:"#32c8d1",tint30:"#58d3db",tint40:"#a6e9ed",tint50:"#cef3f5",tint60:"#f2fcfd"},UM={shade50:"#001516",shade40:"#012728",shade30:"#02494c",shade20:"#026467",shade10:"#037679",primary:"#038387",tint10:"#159195",tint20:"#2aa0a4",tint30:"#4cb4b7",tint40:"#9bd9db",tint50:"#c7ebec",tint60:"#f0fafa"},GM={shade50:"#000f12",shade40:"#001b22",shade30:"#00333f",shade20:"#004555",shade10:"#005265",primary:"#005b70",tint10:"#0f6c81",tint20:"#237d92",tint30:"#4496a9",tint40:"#94c8d4",tint50:"#c3e1e8",tint60:"#eff7f9"},XM={shade50:"#001322",shade40:"#002440",shade30:"#004377",shade20:"#005ba1",shade10:"#006cbf",primary:"#0078d4",tint10:"#1a86d9",tint20:"#3595de",tint30:"#5caae5",tint40:"#a9d3f2",tint50:"#d0e7f8",tint60:"#f3f9fd"},YM={shade50:"#000c16",shade40:"#00172a",shade30:"#002c4e",shade20:"#003b6a",shade10:"#00467e",primary:"#004e8c",tint10:"#125e9a",tint20:"#286fa8",tint30:"#4a89ba",tint40:"#9abfdc",tint50:"#c7dced",tint60:"#f0f6fa"},ZM={shade50:"#0d1126",shade40:"#182047",shade30:"#2c3c85",shade20:"#3c51b4",shade10:"#4760d5",primary:"#4f6bed",tint10:"#637cef",tint20:"#778df1",tint30:"#93a4f4",tint40:"#c8d1fa",tint50:"#e1e6fc",tint60:"#f7f9fe"},KM={shade50:"#00061d",shade40:"#000c36",shade30:"#001665",shade20:"#001e89",shade10:"#0023a2",primary:"#0027b4",tint10:"#173bbd",tint20:"#3050c6",tint30:"#546fd2",tint40:"#a3b2e8",tint50:"#ccd5f3",tint60:"#f2f4fc"},QM={shade50:"#120f25",shade40:"#221d46",shade30:"#3f3682",shade20:"#5649b0",shade10:"#6656d1",primary:"#7160e8",tint10:"#8172eb",tint20:"#9184ee",tint30:"#a79cf1",tint40:"#d2ccf8",tint50:"#e7e4fb",tint60:"#f9f8fe"},JM={shade50:"#0f0717",shade40:"#1c0e2b",shade30:"#341a51",shade20:"#46236e",shade10:"#532982",primary:"#5c2e91",tint10:"#6b3f9e",tint20:"#7c52ab",tint30:"#9470bd",tint40:"#c6b1de",tint50:"#e0d3ed",tint60:"#f7f4fb"},eD={shade50:"#160418",shade40:"#29072e",shade30:"#4c0d55",shade20:"#671174",shade10:"#7a1589",primary:"#881798",tint10:"#952aa4",tint20:"#a33fb1",tint30:"#b55fc1",tint40:"#d9a7e0",tint50:"#eaceef",tint60:"#faf2fb"},tD={shade50:"#1f091d",shade40:"#3a1136",shade30:"#6d2064",shade20:"#932b88",shade10:"#af33a1",primary:"#c239b3",tint10:"#c94cbc",tint20:"#d161c4",tint30:"#da7ed0",tint40:"#edbbe7",tint50:"#f5daf2",tint60:"#fdf5fc"},rD={shade50:"#1c0b1f",shade40:"#35153a",shade30:"#63276d",shade20:"#863593",shade10:"#9f3faf",primary:"#b146c2",tint10:"#ba58c9",tint20:"#c36bd1",tint30:"#cf87da",tint40:"#e6bfed",tint50:"#f2dcf5",tint60:"#fcf6fd"},nD={shade50:"#24091b",shade40:"#441232",shade30:"#80215d",shade20:"#ad2d7e",shade10:"#cd3595",primary:"#e43ba6",tint10:"#e750b0",tint20:"#ea66ba",tint30:"#ef85c8",tint40:"#f7c0e3",tint50:"#fbddf0",tint60:"#fef6fb"},oD={shade50:"#1f0013",shade40:"#390024",shade30:"#6b0043",shade20:"#91005a",shade10:"#ac006b",primary:"#bf0077",tint10:"#c71885",tint20:"#ce3293",tint30:"#d957a8",tint40:"#eca5d1",tint50:"#f5cee6",tint60:"#fcf2f9"},iD={shade50:"#13000c",shade40:"#240017",shade30:"#43002b",shade20:"#5a003b",shade10:"#6b0045",primary:"#77004d",tint10:"#87105d",tint20:"#98246f",tint30:"#ad4589",tint40:"#d696c0",tint50:"#e9c4dc",tint60:"#faf0f6"},sD={shade50:"#141313",shade40:"#252323",shade30:"#444241",shade20:"#5d5958",shade10:"#6e6968",primary:"#7a7574",tint10:"#8a8584",tint20:"#9a9594",tint30:"#afabaa",tint40:"#d7d4d4",tint50:"#eae8e8",tint60:"#faf9f9"},aD={shade50:"#0f0e0e",shade40:"#1c1b1a",shade30:"#343231",shade20:"#474443",shade10:"#54514f",primary:"#5d5a58",tint10:"#706d6b",tint20:"#84817e",tint30:"#9e9b99",tint40:"#cecccb",tint50:"#e5e4e3",tint60:"#f8f8f8"},lD={shade50:"#111314",shade40:"#1f2426",shade30:"#3b4447",shade20:"#505c60",shade10:"#5f6d71",primary:"#69797e",tint10:"#79898d",tint20:"#89989d",tint30:"#a0adb2",tint40:"#cdd6d8",tint50:"#e4e9ea",tint60:"#f8f9fa"},cD={shade50:"#090a0b",shade40:"#111315",shade30:"#202427",shade20:"#2b3135",shade10:"#333a3f",primary:"#394146",tint10:"#4d565c",tint20:"#626c72",tint30:"#808a90",tint40:"#bcc3c7",tint50:"#dbdfe1",tint60:"#f6f7f8"},un={red:EM,green:B5,darkOrange:RM,yellow:MM,berry:tD,lightGreen:HM,marigold:IM},jg={darkRed:zM,cranberry:_5,pumpkin:AM,peach:PM,gold:DM,brass:LM,brown:OM,forest:qM,seafoam:$M,darkGreen:WM,lightTeal:VM,teal:UM,steel:GM,blue:XM,royalBlue:YM,cornflower:ZM,navy:KM,lavender:QM,purple:JM,grape:eD,lilac:rD,pink:nD,magenta:oD,plum:iD,beige:sD,mink:aD,platinum:lD,anchor:cD},Ar={cranberry:_5,green:B5,orange:FM},uD=["red","green","darkOrange","yellow","berry","lightGreen","marigold"],dD=["darkRed","cranberry","pumpkin","peach","gold","brass","brown","forest","seafoam","darkGreen","lightTeal","teal","steel","blue","royalBlue","cornflower","navy","lavender","purple","grape","lilac","pink","magenta","plum","beige","mink","platinum","anchor"],vl={success:"green",warning:"orange",danger:"cranberry"},Eu=uD.reduce((e,t)=>{const r=t.slice(0,1).toUpperCase()+t.slice(1),n={[`colorPalette${r}Background1`]:un[t].tint60,[`colorPalette${r}Background2`]:un[t].tint40,[`colorPalette${r}Background3`]:un[t].primary,[`colorPalette${r}Foreground1`]:un[t].shade10,[`colorPalette${r}Foreground2`]:un[t].shade30,[`colorPalette${r}Foreground3`]:un[t].primary,[`colorPalette${r}BorderActive`]:un[t].primary,[`colorPalette${r}Border1`]:un[t].tint40,[`colorPalette${r}Border2`]:un[t].primary};return Object.assign(e,n)},{});Eu.colorPaletteYellowForeground1=un.yellow.shade30;Eu.colorPaletteRedForegroundInverted=un.red.tint20;Eu.colorPaletteGreenForegroundInverted=un.green.tint20;Eu.colorPaletteYellowForegroundInverted=un.yellow.tint40;const fD=dD.reduce((e,t)=>{const r=t.slice(0,1).toUpperCase()+t.slice(1),n={[`colorPalette${r}Background2`]:jg[t].tint40,[`colorPalette${r}Foreground2`]:jg[t].shade30,[`colorPalette${r}BorderActive`]:jg[t].primary};return Object.assign(e,n)},{}),hD={...Eu,...fD},yl=Object.entries(vl).reduce((e,[t,r])=>{const n=t.slice(0,1).toUpperCase()+t.slice(1),o={[`colorStatus${n}Background1`]:Ar[r].tint60,[`colorStatus${n}Background2`]:Ar[r].tint40,[`colorStatus${n}Background3`]:Ar[r].primary,[`colorStatus${n}Foreground1`]:Ar[r].shade10,[`colorStatus${n}Foreground2`]:Ar[r].shade30,[`colorStatus${n}Foreground3`]:Ar[r].primary,[`colorStatus${n}ForegroundInverted`]:Ar[r].tint30,[`colorStatus${n}BorderActive`]:Ar[r].primary,[`colorStatus${n}Border1`]:Ar[r].tint40,[`colorStatus${n}Border2`]:Ar[r].primary};return Object.assign(e,o)},{});yl.colorStatusDangerBackground3Hover=Ar[vl.danger].shade10;yl.colorStatusDangerBackground3Pressed=Ar[vl.danger].shade20;yl.colorStatusWarningForeground1=Ar[vl.warning].shade20;yl.colorStatusWarningForeground3=Ar[vl.warning].shade20;yl.colorStatusWarningBorder2=Ar[vl.warning].shade20;const pD=e=>({colorNeutralForeground1:ve[14],colorNeutralForeground1Hover:ve[14],colorNeutralForeground1Pressed:ve[14],colorNeutralForeground1Selected:ve[14],colorNeutralForeground2:ve[26],colorNeutralForeground2Hover:ve[14],colorNeutralForeground2Pressed:ve[14],colorNeutralForeground2Selected:ve[14],colorNeutralForeground2BrandHover:e[80],colorNeutralForeground2BrandPressed:e[70],colorNeutralForeground2BrandSelected:e[80],colorNeutralForeground3:ve[38],colorNeutralForeground3Hover:ve[26],colorNeutralForeground3Pressed:ve[26],colorNeutralForeground3Selected:ve[26],colorNeutralForeground3BrandHover:e[80],colorNeutralForeground3BrandPressed:e[70],colorNeutralForeground3BrandSelected:e[80],colorNeutralForeground4:ve[44],colorNeutralForeground5:ve[38],colorNeutralForeground5Hover:ve[14],colorNeutralForeground5Pressed:ve[14],colorNeutralForeground5Selected:ve[14],colorNeutralForegroundDisabled:ve[74],colorNeutralForegroundInvertedDisabled:vi[40],colorBrandForegroundLink:e[70],colorBrandForegroundLinkHover:e[60],colorBrandForegroundLinkPressed:e[40],colorBrandForegroundLinkSelected:e[70],colorNeutralForeground2Link:ve[26],colorNeutralForeground2LinkHover:ve[14],colorNeutralForeground2LinkPressed:ve[14],colorNeutralForeground2LinkSelected:ve[14],colorCompoundBrandForeground1:e[80],colorCompoundBrandForeground1Hover:e[70],colorCompoundBrandForeground1Pressed:e[60],colorBrandForeground1:e[80],colorBrandForeground2:e[70],colorBrandForeground2Hover:e[60],colorBrandForeground2Pressed:e[30],colorNeutralForeground1Static:ve[14],colorNeutralForegroundStaticInverted:Ot,colorNeutralForegroundInverted:Ot,colorNeutralForegroundInvertedHover:Ot,colorNeutralForegroundInvertedPressed:Ot,colorNeutralForegroundInvertedSelected:Ot,colorNeutralForegroundInverted2:Ot,colorNeutralForegroundOnBrand:Ot,colorNeutralForegroundInvertedLink:Ot,colorNeutralForegroundInvertedLinkHover:Ot,colorNeutralForegroundInvertedLinkPressed:Ot,colorNeutralForegroundInvertedLinkSelected:Ot,colorBrandForegroundInverted:e[100],colorBrandForegroundInvertedHover:e[110],colorBrandForegroundInvertedPressed:e[100],colorBrandForegroundOnLight:e[80],colorBrandForegroundOnLightHover:e[70],colorBrandForegroundOnLightPressed:e[50],colorBrandForegroundOnLightSelected:e[60],colorNeutralBackground1:Ot,colorNeutralBackground1Hover:ve[96],colorNeutralBackground1Pressed:ve[88],colorNeutralBackground1Selected:ve[92],colorNeutralBackground2:ve[98],colorNeutralBackground2Hover:ve[94],colorNeutralBackground2Pressed:ve[86],colorNeutralBackground2Selected:ve[90],colorNeutralBackground3:ve[96],colorNeutralBackground3Hover:ve[92],colorNeutralBackground3Pressed:ve[84],colorNeutralBackground3Selected:ve[88],colorNeutralBackground4:ve[94],colorNeutralBackground4Hover:ve[98],colorNeutralBackground4Pressed:ve[96],colorNeutralBackground4Selected:Ot,colorNeutralBackground5:ve[92],colorNeutralBackground5Hover:ve[96],colorNeutralBackground5Pressed:ve[94],colorNeutralBackground5Selected:ve[98],colorNeutralBackground6:ve[90],colorNeutralBackground7:"#00000000",colorNeutralBackground7Hover:ve[92],colorNeutralBackground7Pressed:ve[84],colorNeutralBackground7Selected:"#00000000",colorNeutralBackground8:ve[99],colorNeutralBackgroundInverted:ve[16],colorNeutralBackgroundInvertedHover:ve[24],colorNeutralBackgroundInvertedPressed:ve[12],colorNeutralBackgroundInvertedSelected:ve[22],colorNeutralBackgroundStatic:ve[20],colorNeutralBackgroundAlpha:vi[50],colorNeutralBackgroundAlpha2:vi[80],colorSubtleBackground:"transparent",colorSubtleBackgroundHover:ve[96],colorSubtleBackgroundPressed:ve[88],colorSubtleBackgroundSelected:ve[92],colorSubtleBackgroundLightAlphaHover:vi[70],colorSubtleBackgroundLightAlphaPressed:vi[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:yi[10],colorSubtleBackgroundInvertedPressed:yi[30],colorSubtleBackgroundInvertedSelected:yi[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:ve[94],colorNeutralBackgroundDisabled2:Ot,colorNeutralBackgroundInvertedDisabled:vi[10],colorNeutralStencil1:ve[90],colorNeutralStencil2:ve[98],colorNeutralStencil1Alpha:yi[10],colorNeutralStencil2Alpha:yi[5],colorBackgroundOverlay:yi[40],colorScrollbarOverlay:yi[50],colorBrandBackground:e[80],colorBrandBackgroundHover:e[70],colorBrandBackgroundPressed:e[40],colorBrandBackgroundSelected:e[60],colorCompoundBrandBackground:e[80],colorCompoundBrandBackgroundHover:e[70],colorCompoundBrandBackgroundPressed:e[60],colorBrandBackgroundStatic:e[80],colorBrandBackground2:e[160],colorBrandBackground2Hover:e[150],colorBrandBackground2Pressed:e[130],colorBrandBackground3Static:e[60],colorBrandBackground4Static:e[40],colorBrandBackgroundInverted:Ot,colorBrandBackgroundInvertedHover:e[160],colorBrandBackgroundInvertedPressed:e[140],colorBrandBackgroundInvertedSelected:e[150],colorNeutralCardBackground:ve[98],colorNeutralCardBackgroundHover:Ot,colorNeutralCardBackgroundPressed:ve[96],colorNeutralCardBackgroundSelected:ve[92],colorNeutralCardBackgroundDisabled:ve[94],colorNeutralStrokeAccessible:ve[38],colorNeutralStrokeAccessibleHover:ve[34],colorNeutralStrokeAccessiblePressed:ve[30],colorNeutralStrokeAccessibleSelected:e[80],colorNeutralStroke1:ve[82],colorNeutralStroke1Hover:ve[78],colorNeutralStroke1Pressed:ve[70],colorNeutralStroke1Selected:ve[74],colorNeutralStroke2:ve[88],colorNeutralStroke3:ve[94],colorNeutralStroke4:ve[92],colorNeutralStroke4Hover:ve[88],colorNeutralStroke4Pressed:ve[84],colorNeutralStroke4Selected:ve[92],colorNeutralStrokeSubtle:ve[88],colorNeutralStrokeOnBrand:Ot,colorNeutralStrokeOnBrand2:Ot,colorNeutralStrokeOnBrand2Hover:Ot,colorNeutralStrokeOnBrand2Pressed:Ot,colorNeutralStrokeOnBrand2Selected:Ot,colorBrandStroke1:e[80],colorBrandStroke2:e[140],colorBrandStroke2Hover:e[120],colorBrandStroke2Pressed:e[80],colorBrandStroke2Contrast:e[140],colorCompoundBrandStroke:e[80],colorCompoundBrandStrokeHover:e[70],colorCompoundBrandStrokePressed:e[60],colorNeutralStrokeDisabled:ve[88],colorNeutralStrokeDisabled2:ve[92],colorNeutralStrokeInvertedDisabled:vi[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:yi[5],colorNeutralStrokeAlpha2:vi[20],colorStrokeFocus1:Ot,colorStrokeFocus2:jM,colorNeutralShadowAmbient:"rgba(0,0,0,0.12)",colorNeutralShadowKey:"rgba(0,0,0,0.14)",colorNeutralShadowAmbientLighter:"rgba(0,0,0,0.06)",colorNeutralShadowKeyLighter:"rgba(0,0,0,0.07)",colorNeutralShadowAmbientDarker:"rgba(0,0,0,0.20)",colorNeutralShadowKeyDarker:"rgba(0,0,0,0.24)",colorBrandShadowAmbient:"rgba(0,0,0,0.30)",colorBrandShadowKey:"rgba(0,0,0,0.25)"}),gD={borderRadiusNone:"0",borderRadiusSmall:"2px",borderRadiusMedium:"4px",borderRadiusLarge:"6px",borderRadiusXLarge:"8px",borderRadius2XLarge:"12px",borderRadius3XLarge:"16px",borderRadius4XLarge:"24px",borderRadius5XLarge:"32px",borderRadius6XLarge:"40px",borderRadiusCircular:"10000px"},mD={curveAccelerateMax:"cubic-bezier(0.9,0.1,1,0.2)",curveAccelerateMid:"cubic-bezier(1,0,1,1)",curveAccelerateMin:"cubic-bezier(0.8,0,0.78,1)",curveDecelerateMax:"cubic-bezier(0.1,0.9,0.2,1)",curveDecelerateMid:"cubic-bezier(0,0,0,1)",curveDecelerateMin:"cubic-bezier(0.33,0,0.1,1)",curveEasyEaseMax:"cubic-bezier(0.8,0,0.2,1)",curveEasyEase:"cubic-bezier(0.33,0,0.67,1)",curveLinear:"cubic-bezier(0,0,1,1)"},vD={durationUltraFast:"50ms",durationFaster:"100ms",durationFast:"150ms",durationNormal:"200ms",durationGentle:"250ms",durationSlow:"300ms",durationSlower:"400ms",durationUltraSlow:"500ms"},yD={fontSizeBase100:"10px",fontSizeBase200:"12px",fontSizeBase300:"14px",fontSizeBase400:"16px",fontSizeBase500:"20px",fontSizeBase600:"24px",fontSizeHero700:"28px",fontSizeHero800:"32px",fontSizeHero900:"40px",fontSizeHero1000:"68px"},bD={lineHeightBase100:"14px",lineHeightBase200:"16px",lineHeightBase300:"20px",lineHeightBase400:"22px",lineHeightBase500:"28px",lineHeightBase600:"32px",lineHeightHero700:"36px",lineHeightHero800:"40px",lineHeightHero900:"52px",lineHeightHero1000:"92px"},xD={fontWeightRegular:400,fontWeightMedium:500,fontWeightSemibold:600,fontWeightBold:700},wD={fontFamilyBase:"'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif",fontFamilyMonospace:"Consolas, 'Courier New', Courier, monospace",fontFamilyNumeric:"Bahnschrift, 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif"},Vt={none:"0",xxs:"2px",xs:"4px",sNudge:"6px",s:"8px",mNudge:"10px",m:"12px",l:"16px",xl:"20px",xxl:"24px",xxxl:"32px"},kD={spacingHorizontalNone:Vt.none,spacingHorizontalXXS:Vt.xxs,spacingHorizontalXS:Vt.xs,spacingHorizontalSNudge:Vt.sNudge,spacingHorizontalS:Vt.s,spacingHorizontalMNudge:Vt.mNudge,spacingHorizontalM:Vt.m,spacingHorizontalL:Vt.l,spacingHorizontalXL:Vt.xl,spacingHorizontalXXL:Vt.xxl,spacingHorizontalXXXL:Vt.xxxl},SD={spacingVerticalNone:Vt.none,spacingVerticalXXS:Vt.xxs,spacingVerticalXS:Vt.xs,spacingVerticalSNudge:Vt.sNudge,spacingVerticalS:Vt.s,spacingVerticalMNudge:Vt.mNudge,spacingVerticalM:Vt.m,spacingVerticalL:Vt.l,spacingVerticalXL:Vt.xl,spacingVerticalXXL:Vt.xxl,spacingVerticalXXXL:Vt.xxxl},CD={strokeWidthThin:"1px",strokeWidthThick:"2px",strokeWidthThicker:"3px",strokeWidthThickest:"4px"},w={colorNeutralForeground1:"var(--colorNeutralForeground1)",colorNeutralForeground2:"var(--colorNeutralForeground2)",colorNeutralForeground3:"var(--colorNeutralForeground3)",colorNeutralForeground4:"var(--colorNeutralForeground4)",colorNeutralForegroundOnBrand:"var(--colorNeutralForegroundOnBrand)",colorBrandForeground1:"var(--colorBrandForeground1)",colorNeutralBackground1:"var(--colorNeutralBackground1)",colorNeutralBackground1Hover:"var(--colorNeutralBackground1Hover)",colorNeutralBackground1Selected:"var(--colorNeutralBackground1Selected)",colorNeutralBackground2:"var(--colorNeutralBackground2)",colorNeutralBackground2Hover:"var(--colorNeutralBackground2Hover)",colorNeutralBackground3:"var(--colorNeutralBackground3)",colorNeutralBackground4:"var(--colorNeutralBackground4)",colorNeutralBackground5:"var(--colorNeutralBackground5)",colorBrandBackground:"var(--colorBrandBackground)",colorBrandBackground2:"var(--colorBrandBackground2)",colorNeutralStroke1:"var(--colorNeutralStroke1)",colorNeutralStroke2:"var(--colorNeutralStroke2)",colorPaletteRedBackground1:"var(--colorPaletteRedBackground1)",colorPaletteRedBackground2:"var(--colorPaletteRedBackground2)",colorPaletteRedBackground3:"var(--colorPaletteRedBackground3)",colorPaletteRedBorder1:"var(--colorPaletteRedBorder1)",colorPaletteRedBorder2:"var(--colorPaletteRedBorder2)",colorPaletteRedForeground1:"var(--colorPaletteRedForeground1)",colorPaletteRedForeground2:"var(--colorPaletteRedForeground2)",colorPaletteGreenBackground2:"var(--colorPaletteGreenBackground2)",colorPaletteGreenBackground3:"var(--colorPaletteGreenBackground3)",colorPaletteGreenBorder1:"var(--colorPaletteGreenBorder1)",colorPaletteGreenBorder2:"var(--colorPaletteGreenBorder2)",colorPaletteGreenForeground1:"var(--colorPaletteGreenForeground1)",colorPaletteGreenForeground2:"var(--colorPaletteGreenForeground2)",colorPaletteDarkOrangeBackground1:"var(--colorPaletteDarkOrangeBackground1)",colorPaletteDarkOrangeBackground2:"var(--colorPaletteDarkOrangeBackground2)",colorPaletteDarkOrangeBackground3:"var(--colorPaletteDarkOrangeBackground3)",colorPaletteDarkOrangeBorder1:"var(--colorPaletteDarkOrangeBorder1)",colorPaletteDarkOrangeBorder2:"var(--colorPaletteDarkOrangeBorder2)",colorPaletteDarkOrangeForeground1:"var(--colorPaletteDarkOrangeForeground1)",colorPaletteYellowBackground1:"var(--colorPaletteYellowBackground1)",colorPaletteYellowBackground2:"var(--colorPaletteYellowBackground2)",colorPaletteYellowBackground3:"var(--colorPaletteYellowBackground3)",colorPaletteYellowBorder1:"var(--colorPaletteYellowBorder1)",colorPaletteYellowBorder2:"var(--colorPaletteYellowBorder2)",colorPaletteYellowForeground1:"var(--colorPaletteYellowForeground1)",colorPaletteYellowForeground2:"var(--colorPaletteYellowForeground2)",colorPaletteBerryBackground1:"var(--colorPaletteBerryBackground1)",colorPaletteBerryBorder1:"var(--colorPaletteBerryBorder1)",colorPaletteLightGreenBackground3:"var(--colorPaletteLightGreenBackground3)",colorPaletteBlueBorderActive:"var(--colorPaletteBlueBorderActive)",colorPaletteBlueForeground2:"var(--colorPaletteBlueForeground2)",colorPaletteDarkGreenBackground2:"var(--colorPaletteDarkGreenBackground2)",colorPalettePinkForeground2:"var(--colorPalettePinkForeground2)",colorPalettePurpleForeground2:"var(--colorPalettePurpleForeground2)",colorPaletteTealForeground2:"var(--colorPaletteTealForeground2)",borderRadiusSmall:"var(--borderRadiusSmall)",borderRadiusMedium:"var(--borderRadiusMedium)",fontSizeBase100:"var(--fontSizeBase100)",fontSizeBase200:"var(--fontSizeBase200)",fontSizeBase300:"var(--fontSizeBase300)",fontSizeBase400:"var(--fontSizeBase400)",fontSizeHero700:"var(--fontSizeHero700)",fontSizeHero800:"var(--fontSizeHero800)",fontSizeHero900:"var(--fontSizeHero900)",fontWeightSemibold:"var(--fontWeightSemibold)",lineHeightHero800:"var(--lineHeightHero800)",shadow4:"var(--shadow4)",shadow64:"var(--shadow64)",spacingHorizontalXS:"var(--spacingHorizontalXS)",spacingHorizontalS:"var(--spacingHorizontalS)",spacingHorizontalM:"var(--spacingHorizontalM)",spacingHorizontalL:"var(--spacingHorizontalL)",spacingHorizontalXL:"var(--spacingHorizontalXL)",spacingVerticalXXS:"var(--spacingVerticalXXS)",spacingVerticalXS:"var(--spacingVerticalXS)",spacingVerticalS:"var(--spacingVerticalS)",spacingVerticalM:"var(--spacingVerticalM)",spacingVerticalL:"var(--spacingVerticalL)",spacingVerticalXL:"var(--spacingVerticalXL)",spacingVerticalXXL:"var(--spacingVerticalXXL)",spacingVerticalXXXL:"var(--spacingVerticalXXXL)"};function Cw(e,t,r=""){return{[`shadow2${r}`]:`0 0 2px ${e}, 0 1px 2px ${t}`,[`shadow4${r}`]:`0 0 2px ${e}, 0 2px 4px ${t}`,[`shadow8${r}`]:`0 0 2px ${e}, 0 4px 8px ${t}`,[`shadow16${r}`]:`0 0 2px ${e}, 0 8px 16px ${t}`,[`shadow28${r}`]:`0 0 8px ${e}, 0 14px 28px ${t}`,[`shadow64${r}`]:`0 0 8px ${e}, 0 32px 64px ${t}`}}const _D=e=>{const t=pD(e);return{...gD,...yD,...bD,...wD,...xD,...CD,...kD,...SD,...vD,...mD,...t,...hD,...yl,...Cw(t.colorNeutralShadowAmbient,t.colorNeutralShadowKey),...Cw(t.colorBrandShadowAmbient,t.colorBrandShadowKey,"Brand")}},BD={30:"#0a2e4a",40:"#0c3b5e",50:"#0e4775",60:"#0f548c",70:"#115ea3",80:"#0f6cbd",100:"#479ef5",110:"#62abf5",120:"#77b7f7",130:"#96c6fa",140:"#b4d6fa",150:"#cfe4fa",160:"#ebf3fc"},TD=_D(BD),T5={root:"fui-FluentProvider"},ND=z_({root:{sj55zd:"f19n0e5",De3pzq:"fxugw4r",fsow6f:["f1o700av","fes3tcz"],Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}"]}),jD=e=>{"use no memo";const t=Tu(),r=ND({dir:e.dir,renderer:t});return e.root.className=ne(T5.root,e.themeClassName,r.root,e.root.className),e},zD=B.useInsertionEffect?B.useInsertionEffect:nr,ED=(e,t)=>{if(!(e!=null&&e.head))return;const r=e.createElement("style");return Object.keys(t).forEach(n=>{r.setAttribute(n,t[n])}),e.head.appendChild(r),r},RD=(e,t)=>{const r=e.sheet;r&&(r.cssRules.length>0&&r.deleteRule(0),r.insertRule(t,0))},AD=e=>{"use no memo";const{targetDocument:t,theme:r,rendererAttributes:n}=e,o=B.useRef(void 0),i=or(T5.root),s=n,a=B.useMemo(()=>uF(`.${i}`,r),[r,i]);return FD(t,i),zD(()=>{const l=t==null?void 0:t.getElementById(i);return l?o.current=l:(o.current=ED(t,{...s,id:i}),o.current&&RD(o.current,a)),()=>{var c;(c=o.current)===null||c===void 0||c.remove()}},[i,t,a,s]),{styleTagId:i,rule:a}};function FD(e,t){B.useState(()=>{if(!e)return;const r=e.getElementById(t);r&&e.head.append(r)})}const PD={},ID={},MD=(e,t)=>{"use no memo";const r=mt(),n=DD(),o=Fy(),i=B.useContext(Py)||PD,{applyStylesToPortals:s=!0,customStyleHooks_unstable:a,dir:l=r.dir,targetDocument:c=r.targetDocument,theme:u,overrides_unstable:d={}}=e,p=zg(n,u),h=zg(o,d),m=zg(i,a),g=Tu();var y;const{styleTagId:v,rule:b}=AD({theme:p,targetDocument:c,rendererAttributes:(y=g.styleElementAttributes)!==null&&y!==void 0?y:ID});return{applyStylesToPortals:s,customStyleHooks_unstable:m,dir:l,targetDocument:c,theme:p,overrides_unstable:h,themeClassName:v,components:{root:"div"},root:Ce(Je("div",{...e,dir:l,ref:yt(t,$y({targetDocument:c}))}),{elementType:"div"}),serverStyleProps:{cssRule:b,attributes:{...g.styleElementAttributes,id:v}}}};function zg(e,t){return e&&t?{...e,...t}:e||t}function DD(){return B.useContext(M_)}function LD(e){const{applyStylesToPortals:t,customStyleHooks_unstable:r,dir:n,root:o,targetDocument:i,theme:s,themeClassName:a,overrides_unstable:l}=e,c=B.useMemo(()=>({dir:n,targetDocument:i}),[n,i]),[u]=B.useState(()=>({})),d=B.useMemo(()=>({textDirection:n}),[n]);return{customStyleHooks_unstable:r,overrides_unstable:l,provider:c,textDirection:n,iconDirection:d,tooltip:u,theme:s,themeClassName:t?o.className:a}}const N5=B.forwardRef((e,t)=>{const r=MD(e,t);jD(r);const n=LD(r);return jP(r,n)});N5.displayName="FluentProvider";const OD=e=>r=>{const n=B.useRef(r.value),o=B.useRef(0),i=B.useRef(null);return i.current||(i.current={value:n,version:o,listeners:[]}),nr(()=>{n.current=r.value,o.current+=1,um.unstable_runWithPriority(um.unstable_NormalPriority,()=>{i.current.listeners.forEach(s=>{s([o.current,r.value])})})},[r.value]),B.createElement(e,{value:i.current},r.children)},bl=e=>{const t=B.createContext({value:{current:e},version:{current:-1},listeners:[]});return t.Provider=OD(t.Provider),delete t.Consumer,t},Ru=(e,t)=>{const r=B.useContext(e),{value:{current:n},version:{current:o},listeners:i}=r,s=t(n),[a,l]=B.useState([n,s]),c=d=>{l(p=>{if(!d)return[n,s];if(d[0]<=o)return Object.is(p[1],s)?p:[n,s];try{if(Object.is(p[0],d[1]))return p;const h=t(d[1]);return Object.is(p[1],h)?p:[d[1],h]}catch{}return[p[0],p[1]]})};Object.is(a[1],s)||c(void 0);const u=ye(c);return nr(()=>(i.push(u),()=>{const d=i.indexOf(u);i.splice(d,1)}),[u,i]),a[1]};function Wy(e){const t=B.useContext(e);return t.version?t.version.current!==-1:!1}const j5=bl(void 0),qD={openItems:[],collapsible:!1,multiple:!1,navigation:void 0,requestToggle(){}},{Provider:$D}=j5,ou=e=>Ru(j5,(t=qD)=>e(t)),HD=(e,t)=>J(e.root,{children:J($D,{value:t.accordion,children:e.root.children})}),WD=(e,t)=>{const{openItems:r,defaultOpenItems:n,multiple:o=!1,collapsible:i=!1,onToggle:s,navigation:a,...l}=e,[c,u]=xn({state:B.useMemo(()=>GD(r),[r]),defaultState:n&&(()=>VD({defaultOpenItems:n,multiple:o})),initialState:[]}),d=nu({circular:a==="circular",tabbable:!0}),p=ye(h=>{const m=UD(h.value,c,o,i);s==null||s(h.event,{value:h.value,openItems:m}),u(m)});return{collapsible:i,multiple:o,navigation:a,openItems:c,requestToggle:p,components:{root:"div"},root:Ce(Je("div",{...l,...a?d:void 0,ref:t}),{elementType:"div"})}};function VD({defaultOpenItems:e,multiple:t}){return e!==void 0?Array.isArray(e)?t?e:[e[0]]:[e]:[]}function UD(e,t,r,n){if(r)if(t.includes(e)){if(t.length>1||n)return t.filter(o=>o!==e)}else return[...t,e].sort();else return t[0]===e&&n?[]:[e];return t}function GD(e){if(e!==void 0)return Array.isArray(e)?e:[e]}function XD(e){const{navigation:t,openItems:r,requestToggle:n,multiple:o,collapsible:i}=e;return{accordion:{navigation:t,openItems:r,requestToggle:n,collapsible:i,multiple:o}}}const YD={root:"fui-Accordion"},ZD=e=>{"use no memo";return e.root.className=ne(YD.root,e.root.className),e},Vy=B.forwardRef((e,t)=>{const r=WD(e,t),n=XD(r);return ZD(r),Le("useAccordionStyles_unstable")(r),HD(r,n)});Vy.displayName="Accordion";const KD=(e,t)=>{const{value:r,disabled:n=!1}=e,o=ou(a=>a.requestToggle),i=ou(a=>a.openItems.includes(r)),s=ye(a=>o({event:a,value:r}));return{open:i,value:r,disabled:n,onHeaderClick:s,components:{root:"div"},root:Ce(Je("div",{ref:t,...e}),{elementType:"div"})}};function QD(e){const{disabled:t,open:r,value:n,onHeaderClick:o}=e;return{accordionItem:B.useMemo(()=>({disabled:t,open:r,value:n,onHeaderClick:o}),[t,r,n,o])}}const z5=B.createContext(void 0),JD={open:!1,disabled:!1,value:void 0,onHeaderClick(){}},{Provider:eL}=z5,E5=()=>{var e;return(e=B.useContext(z5))!==null&&e!==void 0?e:JD},tL=(e,t)=>J(e.root,{children:J(eL,{value:t.accordionItem,children:e.root.children})}),rL={root:"fui-AccordionItem"},nL=e=>{"use no memo";return e.root.className=ne(rL.root,e.root.className),e},Uy=B.forwardRef((e,t)=>{const r=KD(e,t),n=QD(r);return nL(r),Le("useAccordionItemStyles_unstable")(r),tL(r,n)});Uy.displayName="AccordionItem";const oL="Shift",Mi="Enter",Qn=" ",R5="Tab",Wf="ArrowDown",A5="ArrowLeft",F5="ArrowRight",zc="ArrowUp",P5="End",I5="Home",iL="PageDown",sL="PageUp",aL="Backspace",M5="Delete",Au="Escape";function ap(e,t){const{disabled:r,disabledFocusable:n=!1,["aria-disabled"]:o,onClick:i,onKeyDown:s,onKeyUp:a,...l}=t??{},c=typeof o=="string"?o==="true":o,u=r||n||c,d=ye(m=>{u?(m.preventDefault(),m.stopPropagation()):i==null||i(m)}),p=ye(m=>{if(s==null||s(m),m.isDefaultPrevented())return;const g=m.key;if(u&&(g===Mi||g===Qn)){m.preventDefault(),m.stopPropagation();return}if(g===Qn){m.preventDefault();return}else g===Mi&&(m.preventDefault(),m.currentTarget.click())}),h=ye(m=>{if(a==null||a(m),m.isDefaultPrevented())return;const g=m.key;if(u&&(g===Mi||g===Qn)){m.preventDefault(),m.stopPropagation();return}g===Qn&&(m.preventDefault(),m.currentTarget.click())});if(e==="button"||e===void 0)return{...l,disabled:r&&!n,"aria-disabled":n?!0:c,onClick:n?void 0:d,onKeyUp:n?void 0:a,onKeyDown:n?void 0:s};{const m=!!l.href;let g=m?void 0:"button";!g&&u&&(g="link");const y={role:g,tabIndex:n||!m&&!r?0:void 0,...l,onClick:d,onKeyUp:h,onKeyDown:p,"aria-disabled":u};return e==="a"&&u&&(y.href=void 0),y}}const Vr=()=>{},lL={controller:{active:Vr,blur:Vr,find:Vr,first:Vr,focus:Vr,focusLastActive:Vr,scrollActiveIntoView:Vr,last:Vr,next:Vr,prev:Vr,showAttributes:Vr,hideAttributes:Vr,showFocusVisibleAttributes:Vr,hideFocusVisibleAttributes:Vr}},Gy=B.createContext(void 0),D5=Gy.Provider,L5=()=>{var e;return(e=B.useContext(Gy))!==null&&e!==void 0?e:lL},cL=()=>!!B.useContext(Gy);function uL(e){const{matchOption:t}=e,{targetDocument:r}=mt(),n=B.useRef(null),o=B.useRef(null),i=B.useCallback(l=>Et(l)&&t(l)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,[t]),s=B.useCallback(l=>{l&&r?(o.current=l,n.current=r.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,i)):(o.current=null,n.current=null)},[r,i]);return{optionWalker:B.useMemo(()=>({first:()=>!n.current||!o.current?null:(n.current.currentNode=o.current,n.current.firstChild()),last:()=>!n.current||!o.current?null:(n.current.currentNode=o.current,n.current.lastChild()),next:()=>n.current?n.current.nextNode():null,prev:()=>n.current?n.current.previousNode():null,find:(l,c)=>{if(!n.current||!o.current)return null;const u=c?r==null?void 0:r.getElementById(c):null;n.current.currentNode=u??o.current;let d=n.current.currentNode;for(;d&&!l(d.id);)d=n.current.nextNode();return d},setCurrent:l=>{n.current&&(n.current.currentNode=l)}}),[r]),listboxCallbackRef:s}}const _w="data-activedescendant",ea="data-activedescendant-focusvisible",Bw=e=>{if(!e)return;const t=O5(e.parentElement);if(!t)return;const{offsetHeight:r}=e,n=q5(e,t),{scrollMarginTop:o,scrollMarginBottom:i}=dL(e),{offsetHeight:s,scrollTop:a}=t,l=n-o<a,c=n+r+i>a+s,u=2;l?t.scrollTo(0,n-o-u):c&&t.scrollTo(0,n+r+i-s+u)},O5=e=>e?e.scrollHeight>e.offsetHeight?e:O5(e.parentElement):null,q5=(e,t)=>!e||e===t?0:e.contains(t)?t.offsetTop*-1:e.offsetTop+q5(e.offsetParent,t),dL=e=>{var t;const r=(t=e.ownerDocument)===null||t===void 0?void 0:t.defaultView;if(!r)return{scrollMarginTop:0,scrollMarginBottom:0};const n=r.getComputedStyle(e);var o;const i=(o=fd(n.scrollMarginTop))!==null&&o!==void 0?o:fd(n.scrollMarginBlockStart);var s;const a=(s=fd(n.scrollMarginBottom))!==null&&s!==void 0?s:fd(n.scrollMarginBlockEnd);return{scrollMarginTop:i,scrollMarginBottom:a}},fd=e=>e?parseInt(e,10):0,fL=e=>new CustomEvent("activedescendantchange",{bubbles:!0,cancelable:!1,composed:!0,detail:e});function $5(e){const{imperativeRef:t,matchOption:r}=e,n=B.useRef(!1),o=B.useRef(!0),i=B.useRef(null),s=B.useRef(null),a=B.useRef(null),l=B.useRef(!0),c=B.useCallback(()=>{var k;(k=a.current)===null||k===void 0||k.removeAttribute("aria-activedescendant")},[]),u=B.useCallback(k=>{if(k&&(i.current=k),l.current&&i.current){var S;(S=a.current)===null||S===void 0||S.setAttribute("aria-activedescendant",i.current)}},[]);S5(k=>{n.current=k;const S=g();S&&(k&&o.current?S.setAttribute(ea,""):S.removeAttribute(ea))});const d=ye(r),p=B.useRef(null),{optionWalker:h,listboxCallbackRef:m}=uL({matchOption:d}),g=B.useCallback(()=>{var k;return(k=p.current)===null||k===void 0?void 0:k.querySelector(`#${i.current}`)},[p]),y=B.useCallback(k=>{o.current=k;const S=g();S&&(k&&n.current?S.setAttribute(ea,""):S.removeAttribute(ea))},[g]),v=B.useCallback(()=>{const k=g();k&&(k.removeAttribute(_w),k.removeAttribute(ea)),c(),s.current=i.current,i.current=null;var S;return(S=k==null?void 0:k.id)!==null&&S!==void 0?S:null},[g,c]),b=B.useCallback(k=>{if(!k)return;const S=v();Bw(k),u(k.id),k.setAttribute(_w,""),n.current&&o.current&&k.setAttribute(ea,"");const _=fL({id:k.id,previousId:S});k.dispatchEvent(_)},[v,u]),x=B.useMemo(()=>({first:({passive:k}={})=>{const S=h.first();return k||b(S),S==null?void 0:S.id},last:({passive:k}={})=>{const S=h.last();return k||b(S),S==null?void 0:S.id},next:({passive:k}={})=>{const S=g();if(!S)return;h.setCurrent(S);const _=h.next();return k||b(_),_==null?void 0:_.id},prev:({passive:k}={})=>{const S=g();if(!S)return;h.setCurrent(S);const _=h.prev();return k||b(_),_==null?void 0:_.id},blur:()=>{v()},active:()=>{var k;return(k=g())===null||k===void 0?void 0:k.id},focus:k=>{if(!p.current)return;const S=p.current.querySelector(`#${k}`);S&&b(S)},focusLastActive:()=>{if(!p.current||!s.current)return;const k=p.current.querySelector(`#${s.current}`);if(k)return b(k),!0},find(k,{passive:S,startFrom:_}={}){const N=h.find(k,_);return S||b(N),N==null?void 0:N.id},scrollActiveIntoView:()=>{if(!p.current)return;const k=g();k&&Bw(k)},showAttributes(){l.current=!0,u()},hideAttributes(){l.current=!1,c()},showFocusVisibleAttributes(){y(!0)},hideFocusVisibleAttributes(){y(!1)}}),[h,p,u,c,b,v,g,y]);return B.useImperativeHandle(t,()=>x),{listboxRef:yt(p,m),activeParentRef:a,controller:x}}const hL=se({root:{mc9l5x:"f1w7gpdv",Bg96gwp:"fez10in"},rtl:{Bz10aip:"f13rod7r"}},{d:[".f1w7gpdv{display:inline;}",".fez10in{line-height:0;}",".f13rod7r{transform:scaleX(-1);}"]}),pL=(e,t)=>{const{filled:r,title:n,primaryFill:o="currentColor",...i}=e,s={...i,fill:o},a=hL(),l=NP();return s.className=ne(a.root,(t==null?void 0:t.flipInRtl)&&(l==null?void 0:l.textDirection)==="rtl"&&a.rtl,s.className),n&&(s["aria-label"]=n),!s["aria-label"]&&!s["aria-labelledby"]?s["aria-hidden"]=!0:s.role="img",s},gL=se({root:{B8gzw0y:"f1dd5bof"}},{m:[["@media (forced-colors: active){.f1dd5bof{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}]]}),mL="fui-Icon",ke=(e,t,r,n)=>{const o=t==="1em"?"20":t,i=B.forwardRef((s,a)=>{const l=gL(),c=pL(s,{flipInRtl:n==null?void 0:n.flipInRtl}),u={...c,className:ne(mL,c.className,l.root),ref:a,width:t,height:t,viewBox:`0 0 ${o} ${o}`,xmlns:"http://www.w3.org/2000/svg"};return typeof r=="string"?B.createElement("svg",{...u,dangerouslySetInnerHTML:{__html:r}}):B.createElement("svg",u,...r.map(d=>B.createElement("path",{d,fill:u.fill})))});return i.displayName=e,i},vL=ke("SearchRegular","1em",["M13.73 14.44a6.5 6.5 0 1 1 .7-.7l3.42 3.4a.5.5 0 0 1-.63.77l-.07-.06-3.42-3.41Zm-.71-.71A5.54 5.54 0 0 0 15 9.5a5.5 5.5 0 1 0-1.98 4.23Z"]),H5=ke("WarningFilled","1em",["M8.68 2.79a1.5 1.5 0 0 1 2.64 0l6.5 12A1.5 1.5 0 0 1 16.5 17h-13a1.5 1.5 0 0 1-1.32-2.21l6.5-12ZM10.5 7.5a.5.5 0 0 0-1 0v4a.5.5 0 0 0 1 0v-4Zm.25 6.25a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Z"]),W5=ke("InfoFilled","1em",["M18 10a8 8 0 1 0-16 0 8 8 0 0 0 16 0ZM9.5 8.91a.5.5 0 0 1 1 0V13.6a.5.5 0 0 1-1 0V8.9Zm-.25-2.16a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0Z"]),yL=ke("CircleFilled","1em",["M10 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z"]),bL=ke("ArrowDownRegular","1em",["M16.87 10.84a.5.5 0 1 0-.74-.68l-5.63 6.17V2.5a.5.5 0 0 0-1 0v13.83l-5.63-6.17a.5.5 0 0 0-.74.68l6.31 6.91a.75.75 0 0 0 1.11 0l6.32-6.91Z"]),xL=ke("ArrowUpRegular","1em",["M3.13 9.16a.5.5 0 1 0 .74.68L9.5 3.67V17.5a.5.5 0 1 0 1 0V3.67l5.63 6.17a.5.5 0 0 0 .74-.68l-6.32-6.92a.75.75 0 0 0-1.1 0L3.13 9.16Z"],{flipInRtl:!0}),wL=ke("CheckmarkFilled","1em",["M7.03 13.9 3.56 10a.75.75 0 0 0-1.12 1l4 4.5c.29.32.79.34 1.09.03l10.5-10.5a.75.75 0 0 0-1.06-1.06l-9.94 9.94Z"]),V5=ke("CheckmarkCircleFilled","1em",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm3.36 5.65a.5.5 0 0 0-.64-.06l-.07.06L9 11.3 7.35 9.65l-.07-.06a.5.5 0 0 0-.7.7l.07.07 2 2 .07.06c.17.11.4.11.56 0l.07-.06 4-4 .07-.08a.5.5 0 0 0-.06-.63Z"]),U5=ke("ChevronDownRegular","1em",["M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z"]),kL=ke("ChevronRightRegular","1em",["M7.65 4.15c.2-.2.5-.2.7 0l5.49 5.46c.21.22.21.57 0 .78l-5.49 5.46a.5.5 0 0 1-.7-.7L12.8 10 7.65 4.85a.5.5 0 0 1 0-.7Z"]),Xy=ke("DismissRegular","1em",["m4.09 4.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L10 9.29l5.15-5.14a.5.5 0 0 1 .63-.06l.07.06c.18.17.2.44.06.63l-.06.07L10.71 10l5.14 5.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L10 10.71l-5.15 5.14a.5.5 0 0 1-.63.06l-.07-.06a.5.5 0 0 1-.06-.63l.06-.07L9.29 10 4.15 4.85a.5.5 0 0 1-.06-.63l.06-.07-.06.07Z"]),G5=ke("DismissCircleFilled","1em",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16ZM7.8 7.11a.5.5 0 0 0-.63.06l-.06.07a.5.5 0 0 0 .06.64L9.3 10l-2.12 2.12-.06.07a.5.5 0 0 0 .06.64l.07.06c.2.13.47.11.64-.06L10 10.7l2.12 2.12.07.06c.2.13.46.11.64-.06l.06-.07a.5.5 0 0 0-.06-.64L10.7 10l2.12-2.12.06-.07a.5.5 0 0 0-.06-.64l-.07-.06a.5.5 0 0 0-.64.06L10 9.3 7.88 7.17l-.07-.06Z"]),SL=ke("Calendar20Regular","20",["M7 11a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm1 2a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm2-2a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm1 2a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm2-2a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm4-5.5A2.5 2.5 0 0 0 14.5 3h-9A2.5 2.5 0 0 0 3 5.5v9A2.5 2.5 0 0 0 5.5 17h9a2.5 2.5 0 0 0 2.5-2.5v-9ZM4 7h12v7.5c0 .83-.67 1.5-1.5 1.5h-9A1.5 1.5 0 0 1 4 14.5V7Zm1.5-3h9c.83 0 1.5.67 1.5 1.5V6H4v-.5C4 4.67 4.67 4 5.5 4Z"],{flipInRtl:!0}),m0=ke("Code20Regular","20",["M12.97 3.68a.5.5 0 0 0-.94-.36l-5 13a.5.5 0 1 0 .94.36l5-13ZM5.83 6.12c.2.18.23.5.05.7L3.16 10l2.72 3.17a.5.5 0 0 1-.76.66l-3-3.5a.5.5 0 0 1 0-.66l3-3.5a.5.5 0 0 1 .7-.05Zm8.34 8.26a.5.5 0 0 1-.05-.7l2.72-3.18-2.72-3.17a.5.5 0 1 1 .76-.66l3 3.5a.5.5 0 0 1 0 .66l-3 3.5a.5.5 0 0 1-.7.05Z"]),v0=ke("Database24Regular","24",["M4 6c0-.7.32-1.3.77-1.78a5.61 5.61 0 0 1 1.8-1.2A13.65 13.65 0 0 1 12 2c2.08 0 4 .38 5.43 1.02.72.32 1.34.72 1.8 1.2.45.49.77 1.09.77 1.78v12c0 .7-.32 1.3-.77 1.78-.46.48-1.08.88-1.8 1.2A13.65 13.65 0 0 1 12 22c-2.08 0-4-.38-5.43-1.02a5.61 5.61 0 0 1-1.8-1.2A2.6 2.6 0 0 1 4 18V6Zm1.5 0c0 .2.09.46.37.75.27.3.71.6 1.31.86 1.2.54 2.9.89 4.82.89 1.92 0 3.62-.35 4.82-.89.6-.26 1.04-.56 1.31-.86.28-.3.37-.54.37-.75 0-.2-.09-.46-.37-.75-.27-.3-.71-.6-1.31-.86-1.2-.54-2.9-.89-4.82-.89-1.92 0-3.62.35-4.82.89-.6.26-1.04.56-1.31.86-.28.3-.37.54-.37.75Zm13 2.4a6.8 6.8 0 0 1-1.07.58A13.65 13.65 0 0 1 12 10c-2.08 0-4-.38-5.43-1.02A6.8 6.8 0 0 1 5.5 8.4V18c0 .2.09.46.37.75.27.3.71.6 1.31.86 1.2.54 2.9.89 4.82.89 1.92 0 3.62-.35 4.82-.89.6-.26 1.04-.56 1.31-.86.28-.3.37-.54.37-.75V8.4Z"]),CL=ke("Document20Regular","20",["M6 2a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V7.41c0-.4-.16-.78-.44-1.06l-3.91-3.91A1.5 1.5 0 0 0 10.59 2H6ZM5 4a1 1 0 0 1 1-1h4v3.5c0 .83.67 1.5 1.5 1.5H15v8a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V4Zm9.8 3h-3.3a.5.5 0 0 1-.5-.5V3.2L14.8 7Z"]),_L=ke("DocumentBulletList20Regular","20",["M6 10.5a.5.5 0 1 1 1 0 .5.5 0 0 1-1 0Zm.5 1.5a.5.5 0 1 0 0 1 .5.5 0 0 0 0-1ZM6 14.5a.5.5 0 1 1 1 0 .5.5 0 0 1-1 0ZM8.5 10a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1h-5ZM8 12.5c0-.28.22-.5.5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5Zm.5 1.5a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1h-5ZM6 2a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V7.41c0-.4-.16-.78-.44-1.06l-3.91-3.91A1.5 1.5 0 0 0 10.59 2H6ZM5 4a1 1 0 0 1 1-1h4v3.5c0 .83.67 1.5 1.5 1.5H15v8a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V4Zm9.8 3h-3.3a.5.5 0 0 1-.5-.5V3.2L14.8 7Z"]),X5=ke("Settings20Regular","20",["M1.91 7.38A8.5 8.5 0 0 1 3.7 4.3a.5.5 0 0 1 .54-.13l1.92.68a1 1 0 0 0 1.32-.76l.36-2a.5.5 0 0 1 .4-.4 8.53 8.53 0 0 1 3.55 0c.2.04.35.2.38.4l.37 2a1 1 0 0 0 1.32.76l1.92-.68a.5.5 0 0 1 .54.13 8.5 8.5 0 0 1 1.78 3.08c.06.2 0 .4-.15.54l-1.56 1.32a1 1 0 0 0 0 1.52l1.56 1.32a.5.5 0 0 1 .15.54 8.5 8.5 0 0 1-1.78 3.08.5.5 0 0 1-.54.13l-1.92-.68a1 1 0 0 0-1.32.76l-.37 2a.5.5 0 0 1-.38.4 8.53 8.53 0 0 1-3.56 0 .5.5 0 0 1-.39-.4l-.36-2a1 1 0 0 0-1.32-.76l-1.92.68a.5.5 0 0 1-.54-.13 8.5 8.5 0 0 1-1.78-3.08.5.5 0 0 1 .15-.54l1.56-1.32a1 1 0 0 0 0-1.52L2.06 7.92a.5.5 0 0 1-.15-.54Zm1.06 0 1.3 1.1a2 2 0 0 1 0 3.04l-1.3 1.1c.3.79.72 1.51 1.25 2.16l1.6-.58a2 2 0 0 1 2.63 1.53l.3 1.67a7.56 7.56 0 0 0 2.5 0l.3-1.67a2 2 0 0 1 2.64-1.53l1.6.58a7.5 7.5 0 0 0 1.24-2.16l-1.3-1.1a2 2 0 0 1 0-3.04l1.3-1.1a7.5 7.5 0 0 0-1.25-2.16l-1.6.58a2 2 0 0 1-2.63-1.53l-.3-1.67a7.55 7.55 0 0 0-2.5 0l-.3 1.67A2 2 0 0 1 5.81 5.8l-1.6-.58a7.5 7.5 0 0 0-1.24 2.16ZM7.5 10a2.5 2.5 0 1 1 5 0 2.5 2.5 0 0 1-5 0Zm1 0a1.5 1.5 0 1 0 3 0 1.5 1.5 0 0 0-3 0Z"]),BL=ke("NumberSymbol20Regular","20",["M8.99 2.6a.5.5 0 0 0-.98-.2L7.09 7H3.5a.5.5 0 1 0 0 1h3.39l-.8 4H2.5a.5.5 0 0 0 0 1h3.4L5 17.4a.5.5 0 1 0 .98.2l.92-4.6h5l-.9 4.4a.5.5 0 0 0 .98.2l.95-4.6h3.56a.5.5 0 0 0 0-1h-3.36l.82-4h3.54a.5.5 0 1 0 0-1h-3.33l.9-4.39a.5.5 0 1 0-.98-.2l-.95 4.6H8.11l.88-4.41ZM7.91 8h5.03l-.82 4h-5l.79-4Z"]),y0=ke("Copy24Regular","24",["M5.5 4.63V17.25c0 1.8 1.46 3.25 3.25 3.25h8.62c-.31.88-1.15 1.5-2.13 1.5H8.75A4.75 4.75 0 0 1 4 17.25V6.75c0-.98.63-1.81 1.5-2.12ZM17.75 2C18.99 2 20 3 20 4.25v13c0 1.24-1 2.25-2.25 2.25h-9c-1.24 0-2.25-1-2.25-2.25v-13C6.5 3.01 7.5 2 8.75 2h9Zm0 1.5h-9a.75.75 0 0 0-.75.75v13c0 .41.34.75.75.75h9c.41 0 .75-.34.75-.75v-13a.75.75 0 0 0-.75-.75Z"]),TL=ke("Globe20Regular","20",["M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm0-15c.66 0 1.4.59 2.02 1.9.22.47.4 1.01.56 1.6H7.42c.15-.59.34-1.13.56-1.6C8.59 3.6 9.34 3 10 3ZM7.07 4.49c-.27.59-.5 1.27-.68 2.01H3.94A7.02 7.02 0 0 1 7.7 3.38c-.24.33-.45.7-.64 1.1ZM6.2 7.5a15.97 15.97 0 0 0 0 5H3.46a6.98 6.98 0 0 1 0-5h2.73Zm.2 6c.17.74.4 1.42.68 2.01.19.4.4.78.64 1.1a7.02 7.02 0 0 1-3.77-3.11h2.45Zm1.03 0h5.16a9.25 9.25 0 0 1-.56 1.6C11.41 16.4 10.66 17 10 17c-.66 0-1.4-.59-2.02-1.9-.22-.47-.4-1.01-.56-1.6Zm5.37-1H7.21a14.87 14.87 0 0 1 0-5h5.58a14.86 14.86 0 0 1 0 5Zm.82 1h2.45a7.02 7.02 0 0 1-3.77 3.12c.24-.33.45-.7.64-1.1.27-.6.5-1.28.68-2.02Zm2.93-1h-2.73a15.97 15.97 0 0 0 0-5h2.73a6.98 6.98 0 0 1 0 5Zm-4.25-9.12a7.02 7.02 0 0 1 3.77 3.12h-2.45a10.5 10.5 0 0 0-.68-2.01c-.19-.4-.4-.78-.64-1.1Z"]),Y5=ke("Open20Regular","20",["M6 4a2 2 0 0 0-2 2v8c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2v-2.5a.5.5 0 0 1 1 0V14a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h2.5a.5.5 0 0 1 0 1H6Zm5-.5c0-.28.22-.5.5-.5h5c.28 0 .5.22.5.5v5a.5.5 0 0 1-1 0V4.7l-4.15 4.15a.5.5 0 0 1-.7-.7L15.29 4H11.5a.5.5 0 0 1-.5-.5Z"]),Z5=ke("PlugConnected20Regular","20",["M17.85 2.85a.5.5 0 0 0-.7-.7L14.48 4.8a4.04 4.04 0 0 0-5.33.34l-.3.3a1.49 1.49 0 0 0 0 2.1l3.6 3.6c.58.59 1.52.59 2.1 0l.3-.3a4.04 4.04 0 0 0 .34-5.33l2.66-2.67Zm-4 7.6c-.2.19-.5.19-.7 0l-3.6-3.6c-.19-.2-.19-.5 0-.7l.3-.3a3.04 3.04 0 0 1 4.3 4.3l-.3.3Zm-6.3-1.6a1.49 1.49 0 0 0-2.1 0l-.3.3a4.04 4.04 0 0 0-.34 5.33l-2.66 2.67a.5.5 0 0 0 .7.7l2.67-2.66a4.04 4.04 0 0 0 5.33-.34l.3-.3c.59-.58.59-1.52 0-2.1l-3.6-3.6Zm-1.4.7c.2-.19.5-.19.7 0l3.6 3.6c.19.2.19.5 0 .7l-.3.3a3.04 3.04 0 1 1-4.3-4.3l.3-.3Z"]),K5=ke("PlugDisconnected20Regular","20",["M17.85 2.15c.2.2.2.5 0 .7L16.2 4.52a4.04 4.04 0 0 1-.34 5.33l-.3.3-.3.31c-.42.41-1.08.41-1.5 0L9.55 6.24a1.05 1.05 0 0 1 0-1.48l.6-.61a4.04 4.04 0 0 1 5.34-.34l1.67-1.66c.2-.2.5-.2.7 0Zm-2.71 2.7a3.04 3.04 0 0 0-4.29 0l-.3.3c-.19.2-.19.5 0 .7l3.6 3.6c.2.19.5.19.7 0l.3-.3a3.04 3.04 0 0 0 0-4.29l-.01-.01Zm-5.79 3.8c.2.2.2.5 0 .7L7.71 11 9 12.3l1.65-1.65a.5.5 0 0 1 .7.7L9.71 13l.44.45c.59.58.59 1.52 0 2.1l-.3.3a4.04 4.04 0 0 1-5.33.34l-1.67 1.66a.5.5 0 0 1-.7-.7l1.66-1.67a4.04 4.04 0 0 1 .34-5.33l.3-.3a1.49 1.49 0 0 1 2.1 0l.45.44 1.65-1.64c.2-.2.5-.2.7 0Zm-4.5 6.5a3.04 3.04 0 0 0 4.3 0l.3-.3c.19-.2.19-.5 0-.7l-3.6-3.6c-.2-.19-.5-.19-.7 0l-.3.3a3.04 3.04 0 0 0 0 4.3Z"]),NL=ke("Warning12Filled","12",["M5.21 1.46a.9.9 0 0 1 1.58 0l4.09 7.17a.92.92 0 0 1-.79 1.37H1.91a.92.92 0 0 1-.79-1.37l4.1-7.17ZM5.5 4.5v1a.5.5 0 0 0 1 0v-1a.5.5 0 0 0-1 0ZM6 6.75a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z"]),Yo=ke("Warning20Regular","20",["M9.56 3.26a.5.5 0 0 1 .88 0l6.5 12a.5.5 0 0 1-.44.74h-13a.5.5 0 0 1-.44-.74l6.5-12Zm1.76-.47a1.5 1.5 0 0 0-2.64 0l-6.5 12A1.5 1.5 0 0 0 3.5 17h13a1.5 1.5 0 0 0 1.32-2.21l-6.5-12ZM10.5 7.5a.5.5 0 0 0-1 0v4a.5.5 0 1 0 1 0v-4Zm.25 6.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z"]),Q5=ke("Warning24Regular","24",["M13 17a1 1 0 1 0-2 0 1 1 0 0 0 2 0Zm-.26-7.85a.75.75 0 0 0-1.5.1l.01 4.5v.1a.75.75 0 0 0 1.5-.1v-4.5l-.01-.1Zm1.23-5.5a2.25 2.25 0 0 0-3.94 0L2.3 17.67A2.25 2.25 0 0 0 4.26 21h15.49c1.71 0 2.8-1.84 1.96-3.34l-7.74-14Zm-2.63.74a.75.75 0 0 1 1.32 0l7.74 14a.75.75 0 0 1-.65 1.11H4.25a.75.75 0 0 1-.65-1.11l7.74-14Z"]),jL=ke("Info20Regular","20",["M10.5 8.91a.5.5 0 0 0-1 .09v4.6a.5.5 0 0 0 1-.1V8.91Zm.3-2.16a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0ZM18 10a8 8 0 1 0-16 0 8 8 0 0 0 16 0ZM3 10a7 7 0 1 1 14 0 7 7 0 0 1-14 0Z"]),zL=ke("Info24Regular","24",["M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20Zm0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17Zm0 7c.41 0 .75.34.75.75v5a.75.75 0 0 1-1.5 0v-5c0-.41.34-.75.75-.75ZM12 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"]),EL=ke("Link20Regular","20",["M8 6a.5.5 0 0 1 .09 1H6a3 3 0 0 0-.2 6H8a.5.5 0 0 1 .09 1H6a4 4 0 0 1-.22-8H8Zm6 0a4 4 0 0 1 .22 8H12a.5.5 0 0 1-.09-1H14a3 3 0 0 0 .2-6H12a.5.5 0 0 1-.09-1H14ZM6 9.5h8a.5.5 0 0 1 .09 1H6a.5.5 0 0 1-.09-1H14 6Z"]),RL=ke("Image20Regular","20",["M14 7.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm-1 0a.5.5 0 1 0-1 0 .5.5 0 0 0 1 0ZM3 6a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V6Zm3-2a2 2 0 0 0-2 2v8c0 .37.1.72.28 1.02l4.67-4.59a1.5 1.5 0 0 1 2.1 0l4.67 4.59c.18-.3.28-.65.28-1.02V6a2 2 0 0 0-2-2H6Zm0 12h8a2 2 0 0 0 1.01-.27l-4.66-4.58a.5.5 0 0 0-.7 0l-4.66 4.58A2 2 0 0 0 6 16Z"]),b0=ke("Flowchart20Regular","20",["M4.5 3C3.67 3 3 3.67 3 4.5v2C3 7.33 3.67 8 4.5 8H5v3.84a1 1 0 0 0-.2.16L3 13.8a1 1 0 0 0 0 1.4L4.8 17a1 1 0 0 0 1.4 0L8 15.2a1 1 0 0 0 .16-.2H12v.5c0 .83.67 1.5 1.5 1.5h2c.83 0 1.5-.67 1.5-1.5v-2c0-.83-.67-1.5-1.5-1.5h-2c-.83 0-1.5.67-1.5 1.5v.5H8.16a1 1 0 0 0-.16-.2L6.2 12a1 1 0 0 0-.2-.16V8h.5C7.33 8 8 7.33 8 6.5v-2C8 3.67 7.33 3 6.5 3h-2ZM4 4.5c0-.28.22-.5.5-.5h2c.28 0 .5.22.5.5v2a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1-.5-.5v-2Zm-.3 10 1.8-1.8 1.8 1.8-1.8 1.8-1.8-1.8Zm9.8-1.5h2c.28 0 .5.22.5.5v2a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1-.5-.5v-2c0-.28.22-.5.5-.5Z"]),AL=ke("Clock20Regular","20",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 1a7 7 0 1 0 0 14 7 7 0 0 0 0-14Zm-.5 2a.5.5 0 0 1 .5.41V10h2.5a.5.5 0 0 1 .09 1H9.5a.5.5 0 0 1-.5-.41V5.5c0-.28.22-.5.5-.5Z"]),J5=ke("Cloud20Regular","20",["M10 4c2.82 0 4.41 1.92 4.65 4.25h.07A3.33 3.33 0 0 1 18 11.62 3.33 3.33 0 0 1 14.72 15H5.28A3.33 3.33 0 0 1 2 11.62c0-1.8 1.37-3.27 3.1-3.37h.25C5.6 5.9 7.18 4 10 4Zm0 1C7.89 5 6.55 6.32 6.35 8.35a1 1 0 0 1-1 .9h-.07A2.33 2.33 0 0 0 3 11.62 2.33 2.33 0 0 0 5.28 14h9.44A2.33 2.33 0 0 0 17 11.62a2.33 2.33 0 0 0-2.28-2.37h-.07a1 1 0 0 1-1-.9C13.45 6.32 12.11 5 10 5Z"]),eB=ke("FlashFlow20Regular","20",["M6.2 2.77C6.31 2.31 6.73 2 7.2 2h5.25c.73 0 1.24.71 1.01 1.4L12.2 7h2.56c.95 0 1.4 1.14.77 1.81L14 10.38a2.5 2.5 0 0 0-.63-.79l1.44-1.46a.06.06 0 0 0 .01-.03v-.05a.08.08 0 0 0-.03-.03L14.77 8H11.5a.5.5 0 0 1-.47-.67l1.5-4.25a.06.06 0 0 0-.07-.08H7.21a.06.06 0 0 0-.06.05L4.9 10.92c0 .04.02.08.06.08h1.21a3 3 0 0 0 1 1.38l-1.14 4.54v.04l.03.03.04.01h.01l.03-.02 4.2-4.3c.34-.17.65-.4.9-.68h.18l.25.76-4.81 4.91c-.76.79-2.06.06-1.8-1L6.23 12H4.96c-.7 0-1.21-.68-1.02-1.36L6.2 2.77Zm12.52 12.25A2.01 2.01 0 0 1 17 16a2 2 0 0 1-2-2h-.78a1.5 1.5 0 0 1-1.41-1l-.01-.03-.55-1.63a.5.5 0 0 0-.47-.34h-1.05a2 2 0 1 1 .27-1h.78c.64 0 1.22.41 1.42 1.03l.55 1.63c.06.2.26.34.47.34h1.05a2 2 0 1 1 3.45 2.02ZM17 15a1 1 0 0 0 1-1v-.05a1 1 0 0 0-2 .05v.02a1 1 0 0 0 1 .98Zm-8-4a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"]),x0=ke("Layer20Regular","20",["M10.5 3.12a1 1 0 0 0-1 0L3.47 6.64a1 1 0 0 0 0 1.72l6.02 3.5a1 1 0 0 0 1 0l6.01-3.5a1 1 0 0 0 0-1.72l-6-3.52Zm-1 1.16a1 1 0 0 1 1 0L16 7.5l-5.5 3.2a1 1 0 0 1-1 0L3.99 7.5l5.5-3.22ZM3.06 9.65l6.44 3.62a1 1 0 0 0 .98 0l6.44-3.62a1 1 0 0 1-.42 1.26l-6 3.5a1 1 0 0 1-1.01 0l-6.01-3.5a1 1 0 0 1-.42-1.26Zm0 2.45 6.44 3.63a1 1 0 0 0 .98 0l6.44-3.63a1 1 0 0 1-.42 1.26l-6 3.5a1 1 0 0 1-1.01 0l-6.01-3.5a1 1 0 0 1-.42-1.26Z"]),FL=ke("LockClosed20Regular","20",["M10 1a4 4 0 0 1 4 4v2.05a2.5 2.5 0 0 1 2 2.45v6a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 4 15.5v-6c0-1.2.86-2.22 2-2.45V5a4 4 0 0 1 4-4ZM6.5 8C5.67 8 5 8.67 5 9.5v6c0 .83.67 1.5 1.5 1.5h7c.83 0 1.5-.67 1.5-1.5v-6c0-.83-.67-1.5-1.5-1.5h-7Zm3.5 3.5a1 1 0 1 1 0 2 1 1 0 0 1 0-2ZM10 2a3 3 0 0 0-3 3v2h6V5a3 3 0 0 0-3-3Z"]),PL=ke("List20Regular","20",["M2 4.5c0-.28.22-.5.5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5Zm0 10c0-.28.22-.5.5-.5h10a.5.5 0 0 1 0 1h-10a.5.5 0 0 1-.5-.5ZM2.5 9a.5.5 0 0 0 0 1h15a.5.5 0 0 0 0-1h-15Z"]),IL=ke("ZoomIn24Regular","24",["M10 6.5c.41 0 .75.34.75.75v2h2a.75.75 0 0 1 0 1.5h-2v2a.75.75 0 0 1-1.5 0v-2h-2a.75.75 0 0 1 0-1.5h2v-2c0-.41.34-.75.75-.75ZM10 2a8 8 0 0 1 6.16 13.1l4.62 4.62a.75.75 0 0 1-1.06 1.06l-4.62-4.62A8 8 0 1 1 10 2Zm0 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13Z"]),ML=ke("ZoomOut24Regular","24",["M12.75 9.25a.75.75 0 0 1 0 1.5h-5.5a.75.75 0 0 1 0-1.5h5.5ZM10 2a8 8 0 0 1 6.16 13.1l4.62 4.62a.75.75 0 0 1-1.06 1.06l-4.62-4.62A8 8 0 1 1 10 2Zm0 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13Z"]),DL=ke("ArrowClockwise24Regular","24",["M12 4.5a7.5 7.5 0 1 0 7.42 6.4c-.07-.46.26-.9.72-.9.37 0 .7.26.76.62A9 9 0 1 1 18 5.3V4.25a.75.75 0 0 1 1.5 0v3c0 .41-.34.75-.75.75h-3a.75.75 0 0 1 0-1.5h1.35a7.47 7.47 0 0 0-5.1-2Z"]),tB=ke("ArrowDownload24Regular","24",["M18.25 20.5a.75.75 0 1 1 0 1.5h-13a.75.75 0 1 1 0-1.5h13Zm-6.6-18.49h.1c.38 0 .7.28.74.64l.01.1v13.7l3.72-3.73a.75.75 0 0 1 .98-.07l.08.07c.27.27.3.68.07.98l-.07.08-5 5a.75.75 0 0 1-.97.07l-.09-.07-5-5a.75.75 0 0 1 .98-1.13l.08.07L11 16.43V2.76c0-.38.28-.7.65-.75h.1-.1Z"]),LL=ke("ArrowLeft24Regular","24",["M10.73 19.8a.75.75 0 0 0 1.04-1.1l-6.25-5.95h14.73a.75.75 0 0 0 0-1.5H5.52l6.25-5.95a.75.75 0 0 0-1.04-1.1l-7.42 7.08a1 1 0 0 0 0 1.44l7.42 7.07Z"]),Na=ke("ArrowRight20Regular","20",["M10.84 3.13a.5.5 0 0 0-.68.74l6.17 5.63H2.5a.5.5 0 0 0 0 1h13.83l-6.17 5.63a.5.5 0 0 0 .68.74l6.91-6.32a.75.75 0 0 0 0-1.1l-6.91-6.32Z"]),OL=ke("ArrowRight24Regular","24",["M13.27 4.2a.75.75 0 0 0-1.04 1.1l6.25 5.95H3.75a.75.75 0 0 0 0 1.5h14.73l-6.25 5.95a.75.75 0 0 0 1.04 1.1l7.42-7.08a1 1 0 0 0 0-1.44L13.27 4.2Z"]),Eg=ke("ArrowSort24Regular","24",["M17.25 4h-.1a.75.75 0 0 0-.65.75v12.7l-3.22-3.23-.08-.07a.75.75 0 0 0-.98 1.14l4.5 4.5.09.07c.3.22.7.2.97-.07l4.5-4.5.07-.09c.22-.3.2-.7-.07-.98l-.08-.07a.75.75 0 0 0-.98.07L18 17.45V4.65a.75.75 0 0 0-.75-.65Zm-11.04.22-4.49 4.5-.07.08c-.22.3-.2.7.07.98l.08.07c.3.22.71.2.98-.07L6 6.56V19.36c.05.36.37.64.75.64h.1a.75.75 0 0 0 .65-.75V6.55l3.22 3.23.08.07a.75.75 0 0 0 .98-1.14l-4.5-4.5-.09-.06a.75.75 0 0 0-.98.07Z"]),rB=ke("ArrowSync20Regular","20",["M11.41 3.64a.5.5 0 0 0 0-.71L9.3.8a.5.5 0 0 0-.7.7l1 1a7.5 7.5 0 0 0-4.08 13.5.5.5 0 0 0 .6-.8A6.5 6.5 0 0 1 10.14 3.5L8.59 5.04a.5.5 0 0 0 .7.7l2.12-2.11ZM8.6 16.36a.5.5 0 0 0 0 .71l2.12 2.12a.5.5 0 0 0 .7-.7l-1-1a7.5 7.5 0 0 0 4.07-13.5.5.5 0 1 0-.59.8A6.5 6.5 0 0 1 9.86 16.5l1.55-1.55a.5.5 0 1 0-.7-.7l-2.12 2.11Z"],{flipInRtl:!0}),qL=ke("Shield24Regular","24",["M3 5.75c0-.41.34-.75.75-.75 2.66 0 5.26-.94 7.8-2.85.27-.2.63-.2.9 0C14.99 4.05 17.59 5 20.25 5c.41 0 .75.34.75.75V11c0 5-2.96 8.68-8.73 10.95a.75.75 0 0 1-.54 0C5.96 19.68 3 16 3 11V5.75Zm1.5.73V11c0 4.26 2.45 7.38 7.5 9.44 5.05-2.06 7.5-5.18 7.5-9.44V6.48a14.36 14.36 0 0 1-7.5-2.8 14.36 14.36 0 0 1-7.5 2.8Z"]),$L=ke("ShieldCheckmark24Regular","24",["M3 5.75c0-.41.34-.75.75-.75 2.66 0 5.26-.94 7.8-2.85.27-.2.63-.2.9 0C14.99 4.05 17.59 5 20.25 5c.41 0 .75.34.75.75V11c0 .34-.01.67-.04 1a6.47 6.47 0 0 0-1.46-.69V6.48a14.36 14.36 0 0 1-7.5-2.8 14.36 14.36 0 0 1-7.5 2.8V11c0 4.15 2.33 7.22 7.13 9.28.26.56.6 1.07 1 1.52l-.36.15a.75.75 0 0 1-.54 0C5.96 19.68 3 16 3 11V5.75ZM23 17.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0Zm-2.15-2.35a.5.5 0 0 0-.7 0l-3.65 3.64-1.65-1.64a.5.5 0 0 0-.7.7l2 2c.2.2.5.2.7 0l4-4a.5.5 0 0 0 0-.7Z"]),HL=ke("ShieldError24Regular","24",["M20.25 5c-2.66 0-5.26-.94-7.8-2.85a.75.75 0 0 0-.9 0C9.01 4.05 6.41 5 3.75 5a.75.75 0 0 0-.75.75V11c0 5 2.96 8.68 8.73 10.95.17.07.37.07.54 0C18.04 19.68 21 16 21 11V5.75a.75.75 0 0 0-.75-.75ZM4.5 6.48a14.36 14.36 0 0 0 7.5-2.8 14.36 14.36 0 0 0 7.5 2.8V11c0 4.26-2.45 7.38-7.5 9.44-5.05-2.06-7.5-5.18-7.5-9.44V6.48Zm8.24 1.17a.75.75 0 0 0-1.49.1v6.6a.75.75 0 0 0 1.5-.1v-6.6ZM12 18a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"]),WL=ke("TextT20Regular","20",["M4 3.5c0-.28.22-.5.5-.5h10c.28 0 .5.22.5.5v2a.5.5 0 0 1-1 0V4h-4v12h1.5a.5.5 0 0 1 0 1h-4a.5.5 0 0 1 0-1H9V4H5v1.5a.5.5 0 0 1-1 0v-2Z"]),VL=ke("Key20Regular","20",["M15 6a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-2.5-4a5.45 5.45 0 0 0-5.38 6.67c.06.27 0 .5-.14.64l-4.54 4.54A1.5 1.5 0 0 0 2 14.91v1.59c0 .83.67 1.5 1.5 1.5h2c.83 0 1.5-.67 1.5-1.5V16h1a1 1 0 0 0 1-1v-1h1a1 1 0 0 0 1-1v-.18c.5.13 1 .18 1.5.18 3.08 0 5.5-2.42 5.5-5.5S15.58 2 12.5 2ZM8 7.5C8 4.98 9.98 3 12.5 3S17 4.98 17 7.5 15.02 12 12.5 12c-.66 0-1.27-.1-1.78-.35a.5.5 0 0 0-.72.45v.9H9a1 1 0 0 0-1 1v1H7a1 1 0 0 0-1 1v.5a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1-.5-.5v-1.59a.5.5 0 0 1 .15-.35l4.54-4.54c.43-.43.52-1.04.4-1.56-.06-.3-.09-.63-.09-.96Z"]),nB=ke("Checkmark12Filled","12",["M9.76 3.2c.3.29.32.76.04 1.06l-4.25 4.5a.75.75 0 0 1-1.08.02L2.22 6.53a.75.75 0 0 1 1.06-1.06l1.7 1.7L8.7 3.24a.75.75 0 0 1 1.06-.04Z"]),UL=ke("Checkmark16Filled","16",["M14.05 3.49c.28.3.27.77-.04 1.06l-7.93 7.47A.85.85 0 0 1 4.9 12L2.22 9.28a.75.75 0 1 1 1.06-1.06l2.24 2.27 7.47-7.04a.75.75 0 0 1 1.06.04Z"]),GL=ke("Checkmark20Regular","20",["M3.37 10.17a.5.5 0 0 0-.74.66l4 4.5c.19.22.52.23.72.02l10.5-10.5a.5.5 0 0 0-.7-.7L7.02 14.27l-3.65-4.1Z"]),Tw=ke("Checkmark24Regular","24",["M4.53 12.97a.75.75 0 0 0-1.06 1.06l4.5 4.5c.3.3.77.3 1.06 0l11-11a.75.75 0 0 0-1.06-1.06L8.5 16.94l-3.97-3.97Z"]),XL=ke("CheckmarkCircle12Filled","12",["M1 6a5 5 0 1 1 10 0A5 5 0 0 1 1 6Zm7.35-.9a.5.5 0 1 0-.7-.7L5.5 6.54 4.35 5.4a.5.5 0 1 0-.7.7l1.5 1.5c.2.2.5.2.7 0l2.5-2.5Z"]),YL=ke("CheckmarkCircle20Regular","20",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 1a7 7 0 1 0 0 14 7 7 0 0 0 0-14Zm3.36 4.65c.17.17.2.44.06.63l-.06.07-4 4a.5.5 0 0 1-.64.07l-.07-.06-2-2a.5.5 0 0 1 .63-.77l.07.06L9 11.3l3.65-3.65c.2-.2.51-.2.7 0Z"]),ZL=ke("CheckmarkCircle24Regular","24",["M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20Zm0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17Zm-1.25 9.94 4.47-4.47a.75.75 0 0 1 1.13.98l-.07.08-5 5a.75.75 0 0 1-.98.07l-.08-.07-2.5-2.5a.75.75 0 0 1 .98-1.13l.08.07 1.97 1.97 4.47-4.47-4.47 4.47Z"]),io=ke("ChevronDown20Regular","20",["M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z"]),so=ke("ChevronRight20Regular","20",["M7.65 4.15c.2-.2.5-.2.7 0l5.49 5.46c.21.22.21.57 0 .78l-5.49 5.46a.5.5 0 0 1-.7-.7L12.8 10 7.65 4.85a.5.5 0 0 1 0-.7Z"]),KL=ke("Money20Regular","20",["M7 9a2 2 0 1 1 4 0 2 2 0 0 1-4 0Zm2-1a1 1 0 1 0 0 2 1 1 0 0 0 0-2ZM3.5 4C2.67 4 2 4.67 2 5.5v7c0 .83.67 1.5 1.5 1.5h11c.83 0 1.5-.67 1.5-1.5v-7c0-.83-.67-1.5-1.5-1.5h-11ZM3 5.5c0-.28.22-.5.5-.5H5v1a1 1 0 0 1-1 1H3V5.5ZM3 8h1a2 2 0 0 0 2-2V5h6v1c0 1.1.9 2 2 2h1v2h-1a2 2 0 0 0-2 2v1H6v-1a2 2 0 0 0-2-2H3V8Zm10-3h1.5c.28 0 .5.22.5.5V7h-1a1 1 0 0 1-1-1V5Zm2 6v1.5a.5.5 0 0 1-.5.5H13v-1a1 1 0 0 1 1-1h1ZM5 13H3.5a.5.5 0 0 1-.5-.5V11h1a1 1 0 0 1 1 1v1Zm12-.5a2.5 2.5 0 0 1-2.5 2.5H4.09c.2.58.76 1 1.41 1h9a3.5 3.5 0 0 0 3.5-3.5v-5c0-.65-.42-1.2-1-1.41v6.41Z"]),QL=ke("Square12Filled","12",["M2 4c0-1.1.9-2 2-2h4a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4Z"]),JL=ke("Square16Filled","16",["M2 4.5A2.5 2.5 0 0 1 4.5 2h7A2.5 2.5 0 0 1 14 4.5v7a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 11.5v-7Z"]),e7=ke("ErrorCircle12Filled","12",["M6 11A5 5 0 1 0 6 1a5 5 0 0 0 0 10Zm-.75-2.75a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0Zm.26-4.84a.5.5 0 0 1 .98 0l.01.09v2.59a.5.5 0 0 1-1 0V3.41Z"]),t7=ke("ErrorCircle20Regular","20",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 1a7 7 0 1 0 0 14 7 7 0 0 0 0-14Zm0 9.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5ZM10 6a.5.5 0 0 1 .5.41V11a.5.5 0 0 1-1 .09V6.5c0-.28.22-.5.5-.5Z"]),r7=ke("Dismiss20Regular","20",["m4.09 4.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L10 9.29l5.15-5.14a.5.5 0 0 1 .63-.06l.07.06c.18.17.2.44.06.63l-.06.07L10.71 10l5.14 5.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L10 10.71l-5.15 5.14a.5.5 0 0 1-.63.06l-.07-.06a.5.5 0 0 1-.06-.63l.06-.07L9.29 10 4.15 4.85a.5.5 0 0 1-.06-.63l.06-.07-.06.07Z"]),n7=ke("Dismiss24Regular","24",["m4.4 4.55.07-.08a.75.75 0 0 1 .98-.07l.08.07L12 10.94l6.47-6.47a.75.75 0 1 1 1.06 1.06L13.06 12l6.47 6.47c.27.27.3.68.07.98l-.07.08a.75.75 0 0 1-.98.07l-.08-.07L12 13.06l-6.47 6.47a.75.75 0 0 1-1.06-1.06L10.94 12 4.47 5.53a.75.75 0 0 1-.07-.98l.07-.08-.07.08Z"]),o7={durationUltraFast:50,durationFaster:100,durationFast:150,durationNormal:200,durationGentle:250,durationSlow:300,durationSlower:400,durationUltraSlow:500},i7={curveAccelerateMax:"cubic-bezier(0.9,0.1,1,0.2)",curveAccelerateMid:"cubic-bezier(1,0,1,1)",curveAccelerateMin:"cubic-bezier(0.8,0,0.78,1)",curveDecelerateMax:"cubic-bezier(0.1,0.9,0.2,1)",curveDecelerateMid:"cubic-bezier(0,0,0,1)",curveDecelerateMin:"cubic-bezier(0.33,0,0.1,1)",curveEasyEaseMax:"cubic-bezier(0.8,0,0.2,1)",curveEasyEase:"cubic-bezier(0.33,0,0.67,1)",curveLinear:"cubic-bezier(0,0,1,1)"},dt={...o7,...i7};function s7(e){if(e.playState==="running"){var t;if(e.overallProgress!==void 0){var r;const a=(r=e.overallProgress)!==null&&r!==void 0?r:0;return a>0&&a<1}var n;const i=Number((n=e.currentTime)!==null&&n!==void 0?n:0);var o;const s=Number((o=(t=e.effect)===null||t===void 0?void 0:t.getTiming().duration)!==null&&o!==void 0?o:0);return i>0&&i<s}return!1}const a7={fill:"forwards"},l7={duration:1};function c7(e){return{set playbackRate(t){e.forEach(r=>{r.playbackRate=t})},setMotionEndCallbacks(t,r){const n=e.map(o=>new Promise((i,s)=>{o.onfinish=()=>i(),o.oncancel=()=>s()}));Promise.all(n).then(()=>{t()}).catch(()=>{r()})},isRunning(){return e.some(t=>s7(t))},dispose:()=>{e.length=0},cancel:()=>{e.forEach(t=>{t.cancel()})},pause:()=>{e.forEach(t=>{t.pause()})},play:()=>{e.forEach(t=>{t.play()})},finish:()=>{e.forEach(t=>{t.finish()})},reverse:()=>{e.forEach(t=>{t.reverse()})}}}function u7(){var e;const t=typeof window<"u"&&typeof((e=window.Animation)===null||e===void 0?void 0:e.prototype.persist)=="function";return B.useCallback((r,n,o)=>{const i=Array.isArray(n)?n:[n],{isReducedMotion:s}=o,a=i.map(l=>{const{keyframes:c,reducedMotion:u=l7,...d}=l,{keyframes:p=c,...h}=u,m=s?p:c,g={...a7,...d,...s&&h};try{const v=r.animate(m,g);if(t)v==null||v.persist();else{const b=m[m.length-1];var y;Object.assign((y=r.style)!==null&&y!==void 0?y:{},b)}return v}catch{return null}}).filter(l=>!!l);return c7(a)},[t])}function oB(){"use no memo";return u7()}function iB(e){const t=B.useRef(void 0);return B.useImperativeHandle(e,()=>({setPlayState:r=>{if(r==="running"){var n;(n=t.current)===null||n===void 0||n.play()}if(r==="paused"){var o;(o=t.current)===null||o===void 0||o.pause()}},setPlaybackRate:r=>{t.current&&(t.current.playbackRate=r)}})),t}const d7="screen and (prefers-reduced-motion: reduce)";function sB(){const{targetDocument:e}=mt();var t;const r=(t=e==null?void 0:e.defaultView)!==null&&t!==void 0?t:null,n=B.useRef(!1),o=B.useCallback(()=>n.current,[]);return nr(()=>{if(r===null||typeof r.matchMedia!="function")return;const i=r.matchMedia(d7);i.matches&&(n.current=!0);const s=a=>{n.current=a.matches};return i.addEventListener("change",s),()=>{i.removeEventListener("change",s)}},[r]),o}const f7=["@fluentui/react-motion: Invalid child element.",`
99
+ `,"Motion factories require a single child element to be passed. ","That element element should support ref forwarding i.e. it should be either an intrinsic element (e.g. div) or a component that uses React.forwardRef()."].join("");function aB(e,t=!0){const r=B.useRef(null);B.useEffect(()=>{},[t]);try{const n=B.Children.only(e);if(B.isValidElement(n))return[B.cloneElement(n,{ref:yt(r,My(n))}),r]}catch{}throw new Error(f7)}const lB=B.createContext(void 0);lB.Provider;const cB=()=>{var e;return(e=B.useContext(lB))!==null&&e!==void 0?e:"default"},h7=Symbol("MOTION_DEFINITION");function Nw(e){return Object.assign(r=>{"use no memo";const{children:n,imperativeRef:o,onMotionFinish:i,onMotionStart:s,onMotionCancel:a,...l}=r,c=l,[u,d]=aB(n),p=iB(o),h=cB()==="skip",m=B.useRef({skipMotions:h,params:c}),g=oB(),y=sB(),v=ye(()=>{s==null||s(null)}),b=ye(()=>{i==null||i(null)}),x=ye(()=>{a==null||a(null)});return nr(()=>{m.current={skipMotions:h,params:c}}),nr(()=>{const k=d.current;if(k){const S=typeof e=="function"?e({element:k,...m.current.params}):e;v();const _=g(k,S,{isReducedMotion:y()});return p.current=_,_.setMotionEndCallbacks(b,x),m.current.skipMotions&&_.finish(),()=>{_.cancel()}}},[g,d,p,y,b,v,x]),u},{[h7]:typeof e=="function"?e:()=>e})}const uB=B.createContext(void 0);uB.Provider;function p7(e=!1,t=!1){const r=B.useRef(t?e:!0),n=Z_(),o=B.useCallback(i=>{r.current!==i&&(r.current=i,n())},[n]);return B.useEffect(()=>{e&&(r.current=e)}),[e||r.current,o]}const dB=Symbol("PRESENCE_MOTION_DEFINITION"),g7=Symbol.for("interruptablePresence");function lp(e){return Object.assign(t=>{"use no memo";const n={...B.useContext(uB),...t},o=cB()==="skip",{appear:i,children:s,imperativeRef:a,onExit:l,onMotionFinish:c,onMotionStart:u,onMotionCancel:d,visible:p,unmountOnExit:h,...m}=n,g=m,[y,v]=p7(p,h),[b,x]=aB(s,y),k=iB(a),S=B.useRef({appear:i,params:g,skipMotions:o}),_=oB(),N=Y_(),z=sB(),F=ye(A=>{u==null||u(null,{direction:A})}),I=ye(A=>{c==null||c(null,{direction:A}),A==="exit"&&h&&(v(!1),l==null||l())}),H=ye(A=>{d==null||d(null,{direction:A})});return nr(()=>{S.current={appear:i,params:g,skipMotions:o}}),nr(()=>{const A=x.current;if(!A)return;let P;function C(){P&&(O&&P.isRunning()||(P.cancel(),k.current=void 0))}const R=typeof e=="function"?e({element:A,...S.current.params}):e,O=R[g7];if(O&&(P=k.current,P&&P.isRunning()))return P.reverse(),C;const D=p?R.enter:R.exit,M=p?"enter":"exit",$=!S.current.appear&&N,X=S.current.skipMotions;return $||F(M),P=_(A,D,{isReducedMotion:z()}),$?(P.finish(),C):(k.current=P,P.setMotionEndCallbacks(()=>I(M),()=>H(M)),X&&P.finish(),C)},[_,x,k,z,I,F,H,p]),B.useEffect(()=>{if(h&&!y){var A;(A=k.current)===null||A===void 0||A.dispose()}},[k,h,y]),y?b:null},{[dB]:typeof e=="function"?e:()=>e},{In:Nw(typeof e=="function"?(...t)=>e(...t).enter:e.enter),Out:Nw(typeof e=="function"?(...t)=>e(...t).exit:e.exit)})}function m7(e,t){return n=>e({...t,...n})}function Yi(e,t){const r=e[dB],n=m7(r,t);return lp(n)}function Yy(e,t){const{as:r,children:n,...o}=e??{};if(e===null){const s=!t.defaultProps.visible&&t.defaultProps.unmountOnExit,a=(l,c)=>s?null:B.createElement(B.Fragment,null,c.children);return{[qf]:a,[Za]:t.elementType}}const i={...t.defaultProps,...o,[Za]:t.elementType};return typeof n=="function"&&(i[qf]=n),i}const v7=(e,t)=>{const{icon:r,button:n,expandIcon:o,inline:i=!1,size:s="medium",expandIconPosition:a="start"}=e,{value:l,disabled:c,open:u}=E5(),d=ou(y=>y.requestToggle),p=ou(y=>!y.collapsible&&y.openItems.length===1&&u),{dir:h}=mt();let m;a==="end"?m=u?-90:90:m=u?90:h!=="rtl"?0:180;const g=Ce(n,{elementType:"button",defaultProps:{disabled:c,disabledFocusable:p,"aria-expanded":u,type:"button"}});return g.onClick=ye(y=>{if(ep(n)){var v;(v=n.onClick)===null||v===void 0||v.call(n,y)}y.defaultPrevented||d({value:l,event:y})}),{disabled:c,open:u,size:s,inline:i,expandIconPosition:a,components:{root:"div",button:"button",expandIcon:"span",icon:"div"},root:Ce(Je("div",{ref:t,...e}),{elementType:"div"}),icon:qe(r,{elementType:"div"}),expandIcon:qe(o,{renderByDefault:!0,defaultProps:{children:B.createElement(kL,{style:{transform:`rotate(${m}deg)`,transition:`transform ${dt.durationNormal}ms ease-out`}}),"aria-hidden":!0},elementType:"span"}),button:ap(g.as,g)}},y7=B.createContext(void 0),{Provider:b7}=y7,x7=(e,t)=>J(b7,{value:t.accordionHeader,children:J(e.root,{children:rt(e.button,{children:[e.expandIconPosition==="start"&&e.expandIcon&&J(e.expandIcon,{}),e.icon&&J(e.icon,{}),e.root.children,e.expandIconPosition==="end"&&e.expandIcon&&J(e.expandIcon,{})]})})}),hd={root:"fui-AccordionHeader",button:"fui-AccordionHeader__button",expandIcon:"fui-AccordionHeader__expandIcon",icon:"fui-AccordionHeader__icon"},w7=se({resetButton:{B7ck84d:"f1e4lqlz",De3pzq:"f1u2r49w",sj55zd:"f1ym3bx4",Bahqtrf:"f1mo0ibp",Be2twd7:"fjoy568",Bg96gwp:"fytdu2e",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1gl81tg",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1mk8lai",Bv0vk6g:"f37px4s",fsow6f:"fgusgyc"},focusIndicator:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bqhya38:"f1j6vpng",Bwxa6fj:["f1pniga2","f1ffjurs"],Bdhvstf:"f987i1v",B7zbvrb:["f1ffjurs","f1pniga2"],Bm4h7ae:"f15bsgw9",B7ys5i9:"f14e48fq",Busjfv9:"f18yb2kv",Bhk32uz:"fd6o370",f6g5ot:0,Boxcth7:0,Bhdgwq3:0,hgwjuy:0,Bshpdp8:0,Bsom6fd:0,Blkhhs4:0,Bonggc9:0,Ddfuxk:0,i03rao:0,kclons:0,clg4pj:0,Bpqj9nj:0,B6dhp37:0,Bf4ptjt:0,Bqtpl0w:0,i4rwgc:"ffwy5si",Dah5zi:0,B1tsrr9:0,qqdqy8:0,Bkh64rk:0,e3fwne:"f3znvyf",J0r882:"f57olzd",Bule8hv:["f4stah7","fs1por5"],Bjwuhne:"f480a47",Ghsupd:["fs1por5","f4stah7"]},root:{sj55zd:"f19n0e5",De3pzq:"f1c21dwh",jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"f1s184ao",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5"},rootDisabled:{Bcmaq0h:"fwrgwhw",sj55zd:"f1s2aq7o"},rootInline:{mc9l5x:"f14t3ns0"},button:{qhf8xq:"f10pi13n",a9b677:"fly5x3f",B4j52fo:"fre7gi1",Bekrc4i:["f1358rze","f1rvrf73"],Bn0qgzm:"fqdk4by",ibv6hh:["f1rvrf73","f1358rze"],Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:["f1rmphuq","f26yw9j"],sshi5w:"f5pgtk9",mc9l5x:"f22iagw",Bt984gj:"f122n59",Bceei9c:"f1k6fduh",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B7ck84d:"f1ewtqcl"},buttonSmall:{sshi5w:"f1nxs5xn",Be2twd7:"fy9rknc"},buttonLarge:{Bg96gwp:"faaz57k",Be2twd7:"fod5ikn"},buttonExtraLarge:{Bg96gwp:"f106mvju",Be2twd7:"f1pp30po"},buttonInline:{mc9l5x:"ftuwxu6"},buttonExpandIconEndNoIcon:{uwmqm3:["f1uw59to","fw5db7e"]},buttonExpandIconEnd:{z189sj:["f11gcy0p","f1ng84yb"]},buttonDisabled:{Bceei9c:"fdrzuqr"},expandIcon:{Bqenvij:"f1l02sjl",mc9l5x:"f22iagw",Bt984gj:"f122n59",Bg96gwp:"f106mvju",Be2twd7:"f1pp30po"},expandIconStart:{z189sj:["f1vdfbxk","f1f5gg8d"]},expandIconEnd:{Bh6795r:"fqerorx",Bnnss6s:"f1neuvcm",xawz:"flqd7gy",mc9l5x:"f22iagw",Brf1p80:"f9c4gz4",uwmqm3:["f1f5gg8d","f1vdfbxk"]},icon:{Bqenvij:"f1l02sjl",mc9l5x:"f22iagw",Bt984gj:"f122n59",z189sj:["f1vdfbxk","f1f5gg8d"],Bg96gwp:"f106mvju",Be2twd7:"f1pp30po"}},{d:[".f1e4lqlz{box-sizing:content-box;}",".f1u2r49w{background-color:inherit;}",".f1ym3bx4{color:inherit;}",".f1mo0ibp{font-family:inherit;}",".fjoy568{font-size:inherit;}",".fytdu2e{line-height:normal;}",[".f1gl81tg{overflow:visible;}",{p:-1}],[".f1mk8lai{padding:0;}",{p:-1}],".f37px4s{-webkit-appearance:button;}",".fgusgyc{text-align:unset;}",".f8hki3x[data-fui-focus-visible]{border-top-color:transparent;}",".f1d2448m[data-fui-focus-visible]{border-right-color:transparent;}",".ffh67wi[data-fui-focus-visible]{border-left-color:transparent;}",".f1bjia2o[data-fui-focus-visible]{border-bottom-color:transparent;}",'.f15bsgw9[data-fui-focus-visible]::after{content:"";}',".f14e48fq[data-fui-focus-visible]::after{position:absolute;}",".f18yb2kv[data-fui-focus-visible]::after{pointer-events:none;}",".fd6o370[data-fui-focus-visible]::after{z-index:1;}",[".ffwy5si[data-fui-focus-visible]::after{border:2px solid var(--colorStrokeFocus2);}",{p:-2}],[".f3znvyf[data-fui-focus-visible]::after{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f57olzd[data-fui-focus-visible]::after{top:calc(2px * -1);}",".f4stah7[data-fui-focus-visible]::after{right:calc(2px * -1);}",".fs1por5[data-fui-focus-visible]::after{left:calc(2px * -1);}",".f480a47[data-fui-focus-visible]::after{bottom:calc(2px * -1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",[".f1s184ao{margin:0;}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fwrgwhw{background-image:none;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f14t3ns0{display:inline-block;}",".f10pi13n{position:relative;}",".fly5x3f{width:100%;}",".fre7gi1{border-top-width:0;}",".f1358rze{border-right-width:0;}",".f1rvrf73{border-left-width:0;}",".fqdk4by{border-bottom-width:0;}",[".f1rmphuq{padding:0 var(--spacingHorizontalM) 0 var(--spacingHorizontalMNudge);}",{p:-1}],[".f26yw9j{padding:0 var(--spacingHorizontalMNudge) 0 var(--spacingHorizontalM);}",{p:-1}],".f5pgtk9{min-height:44px;}",".f22iagw{display:flex;}",".f122n59{align-items:center;}",".f1k6fduh{cursor:pointer;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1ewtqcl{box-sizing:border-box;}",".f1nxs5xn{min-height:32px;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".f106mvju{line-height:var(--lineHeightBase500);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".ftuwxu6{display:inline-flex;}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".fdrzuqr{cursor:not-allowed;}",".f1l02sjl{height:100%;}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".fqerorx{flex-grow:1;}",".f1neuvcm{flex-shrink:1;}",".flqd7gy{flex-basis:0%;}",".f9c4gz4{justify-content:flex-end;}"],f:[".ftqa4ok:focus{outline-style:none;}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"],m:[["@media (forced-colors: active){.f1j6vpng[data-fui-focus-visible]::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ffjurs[data-fui-focus-visible]::after{border-left-color:Highlight;}.f1pniga2[data-fui-focus-visible]::after{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f987i1v[data-fui-focus-visible]::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}]]}),k7=e=>{"use no memo";const t=w7();return e.root.className=ne(hd.root,t.root,e.inline&&t.rootInline,e.disabled&&t.rootDisabled,e.root.className),e.button.className=ne(hd.button,t.resetButton,t.button,t.focusIndicator,e.expandIconPosition==="end"&&!e.icon&&t.buttonExpandIconEndNoIcon,e.expandIconPosition==="end"&&t.buttonExpandIconEnd,e.inline&&t.buttonInline,e.size==="small"&&t.buttonSmall,e.size==="large"&&t.buttonLarge,e.size==="extra-large"&&t.buttonExtraLarge,e.disabled&&t.buttonDisabled,e.button.className),e.expandIcon&&(e.expandIcon.className=ne(hd.expandIcon,t.expandIcon,e.expandIconPosition==="start"&&t.expandIconStart,e.expandIconPosition==="end"&&t.expandIconEnd,e.expandIcon.className)),e.icon&&(e.icon.className=ne(hd.icon,t.icon,e.icon.className)),e};function S7(e){const{disabled:t,expandIconPosition:r,open:n,size:o}=e;return{accordionHeader:B.useMemo(()=>({disabled:t,expandIconPosition:r,open:n,size:o}),[t,r,n,o])}}const Zy=B.forwardRef((e,t)=>{const r=v7(e,t),n=S7(r);return k7(r),Le("useAccordionHeaderStyles_unstable")(r),x7(r,n)});Zy.displayName="AccordionHeader";const fB=(e,t)=>{const r=e==="horizontal"?"maxWidth":"maxHeight",n=e==="horizontal"?"overflowX":"overflowY",i=`${e==="horizontal"?t.scrollWidth:t.scrollHeight}px`;return{sizeName:r,overflowName:n,toSize:i}},C7=({orientation:e,duration:t,easing:r,element:n,outSize:o="0",delay:i=0})=>{const{sizeName:s,overflowName:a,toSize:l}=fB(e,n);return{keyframes:[{[s]:o,[a]:"hidden"},{[s]:l,offset:.9999,[a]:"hidden"},{[s]:"unset",[a]:"unset"}],duration:t,easing:r,delay:i,fill:"both"}},_7=({orientation:e,duration:t,easing:r,element:n,delay:o=0,outSize:i="0"})=>{const{sizeName:s,overflowName:a,toSize:l}=fB(e,n);return{keyframes:[{[s]:l,[a]:"hidden"},{[s]:i,[a]:"hidden"}],duration:t,easing:r,delay:o,fill:"both"}},B7=e=>e==="horizontal"?{paddingStart:"paddingInlineStart",paddingEnd:"paddingInlineEnd",marginStart:"marginInlineStart",marginEnd:"marginInlineEnd"}:{paddingStart:"paddingBlockStart",paddingEnd:"paddingBlockEnd",marginStart:"marginBlockStart",marginEnd:"marginBlockEnd"},jw=({direction:e,orientation:t,duration:r,easing:n,delay:o=0})=>{const{paddingStart:i,paddingEnd:s,marginStart:a,marginEnd:l}=B7(t),c=e==="enter"?0:1;return{keyframes:[{[i]:"0",[s]:"0",[a]:"0",[l]:"0",offset:c}],duration:r,easing:n,delay:o,fill:"both"}},el=({direction:e,duration:t,easing:r=dt.curveLinear,delay:n=0,outOpacity:o=0,inOpacity:i=1})=>{const s=[{opacity:o},{opacity:i}];return e==="exit"&&s.reverse(),{keyframes:s,duration:t,easing:r,delay:n,fill:"both"}},T7=({element:e,duration:t=dt.durationNormal,exitDuration:r=t,sizeDuration:n=t,opacityDuration:o=n,exitSizeDuration:i=r,exitOpacityDuration:s=i,easing:a=dt.curveEasyEaseMax,delay:l=0,exitEasing:c=a,exitDelay:u=l,staggerDelay:d=0,exitStaggerDelay:p=d,animateOpacity:h=!0,orientation:m="vertical",outSize:g="0px"})=>{const y=[C7({orientation:m,duration:n,easing:a,element:e,outSize:g,delay:l}),jw({direction:"enter",orientation:m,duration:n,easing:a,delay:l})];h&&y.push(el({direction:"enter",duration:o,easing:a,delay:l+d}));const v=[];return h&&v.push(el({direction:"exit",duration:s,easing:c,delay:u})),v.push(_7({orientation:m,duration:i,easing:c,element:e,delay:u+p,outSize:g}),jw({direction:"exit",orientation:m,duration:i,easing:c,delay:u+p})),{enter:y,exit:v}},iu=lp(T7);Yi(iu,{duration:dt.durationFast});Yi(iu,{duration:dt.durationSlower});const N7=Yi(iu,{sizeDuration:dt.durationNormal,opacityDuration:dt.durationSlower,staggerDelay:dt.durationNormal,exitSizeDuration:dt.durationNormal,exitOpacityDuration:dt.durationSlower,exitStaggerDelay:dt.durationSlower,easing:dt.curveEasyEase,exitEasing:dt.curveEasyEase}),j7=({duration:e=dt.durationNormal,easing:t=dt.curveEasyEase,delay:r=0,exitDuration:n=e,exitEasing:o=t,exitDelay:i=r,outOpacity:s=0,inOpacity:a=1})=>({enter:el({direction:"enter",duration:e,easing:t,delay:r,outOpacity:s,inOpacity:a}),exit:el({direction:"exit",duration:n,easing:o,delay:i,outOpacity:s,inOpacity:a})}),hB=lp(j7);Yi(hB,{duration:dt.durationFast});const z7=Yi(hB,{duration:dt.durationGentle}),zw=({direction:e,duration:t,easing:r=dt.curveLinear,delay:n=0,outScale:o=.9,inScale:i=1})=>{const s=[{scale:o},{scale:i}];return e==="exit"&&s.reverse(),{keyframes:s,duration:t,easing:r,delay:n}},E7=({duration:e=dt.durationGentle,easing:t=dt.curveDecelerateMax,delay:r=0,exitDuration:n=dt.durationNormal,exitEasing:o=dt.curveAccelerateMax,exitDelay:i=r,outScale:s=.9,inScale:a=1,animateOpacity:l=!0})=>{const c=[zw({direction:"enter",duration:e,easing:t,delay:r,outScale:s,inScale:a})],u=[zw({direction:"exit",duration:n,easing:o,delay:i,outScale:s,inScale:a})];return l&&(c.push(el({direction:"enter",duration:e,easing:t,delay:r})),u.push(el({direction:"exit",duration:n,easing:o,delay:i}))),{enter:c,exit:u}},Ky=lp(E7);Yi(Ky,{duration:dt.durationNormal,exitDuration:dt.durationFast});Yi(Ky,{duration:dt.durationSlow,exitDuration:dt.durationGentle});const R7=(e,t)=>{const{open:r}=E5(),n=Es({focusable:{excludeFromMover:!0}}),o=ou(i=>i.navigation);return{open:r,components:{root:"div",collapseMotion:iu},root:Ce(Je("div",{ref:t,...e,...o&&n}),{elementType:"div"}),collapseMotion:Yy(e.collapseMotion,{elementType:iu,defaultProps:{visible:r,unmountOnExit:!0}})}},A7=e=>e.collapseMotion?J(e.collapseMotion,{children:J(e.root,{})}):J(e.root,{}),F7={root:"fui-AccordionPanel"},P7=se({root:{jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"f1axvtxu"}},{d:[[".f1axvtxu{margin:0 var(--spacingHorizontalM);}",{p:-1}]]}),I7=e=>{"use no memo";const t=P7();return e.root.className=ne(F7.root,t.root,e.root.className),e},Qy=B.forwardRef((e,t)=>{const r=R7(e,t);return I7(r),Le("useAccordionPanelStyles_unstable")(r),A7(r)});Qy.displayName="AccordionPanel";const M7=(e,t)=>{const{shape:r="circular",size:n="medium",iconPosition:o="before",appearance:i="filled",color:s="brand"}=e;return{shape:r,size:n,iconPosition:o,appearance:i,color:s,components:{root:"div",icon:"span"},root:Ce(Je("div",{ref:t,...e}),{elementType:"div"}),icon:qe(e.icon,{elementType:"span"})}},Ew={root:"fui-Badge",icon:"fui-Badge__icon"},D7=Ge("r1iycov","r115jdol",[".r1iycov{display:inline-flex;box-sizing:border-box;align-items:center;justify-content:center;position:relative;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase200);height:20px;min-width:20px;padding:0 calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));border-radius:var(--borderRadiusCircular);border-color:var(--colorTransparentStroke);}",'.r1iycov::after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;border-style:solid;border-color:inherit;border-width:var(--strokeWidthThin);border-radius:inherit;}',".r115jdol{display:inline-flex;box-sizing:border-box;align-items:center;justify-content:center;position:relative;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase200);height:20px;min-width:20px;padding:0 calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));border-radius:var(--borderRadiusCircular);border-color:var(--colorTransparentStroke);}",'.r115jdol::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-style:solid;border-color:inherit;border-width:var(--strokeWidthThin);border-radius:inherit;}']),L7=se({fontSmallToTiny:{Bahqtrf:"fk6fouc",Be2twd7:"f13mqy1h",Bhrd7zp:"fl43uef",Bg96gwp:"fcpl73t"},tiny:{a9b677:"f16dn6v3",Bqenvij:"f3mu39s",Be2twd7:"f130uwy9",Bg96gwp:"fod1mrr",Bf4jedk:"f18p0k4z",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f19jm9xf"},"extra-small":{a9b677:"fpd43o0",Bqenvij:"f30q22z",Be2twd7:"f1tccstq",Bg96gwp:"f1y3arg5",Bf4jedk:"f18p0k4z",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f19jm9xf"},small:{Bf4jedk:"fq2vo04",Bqenvij:"fd461yt",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fupdldz"},medium:{},large:{Bf4jedk:"f17fgpbq",Bqenvij:"frvgh55",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1996nqw"},"extra-large":{Bf4jedk:"fwbmr0d",Bqenvij:"f1d2rq10",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fty64o7"},square:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f1fabniw"},rounded:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5"},roundedSmallToTiny:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"fq9zq91"},circular:{},borderGhost:{ap17g6:"f10ludwy"},filled:{},"filled-brand":{De3pzq:"ffp7eso",sj55zd:"f1phragk"},"filled-danger":{De3pzq:"fdl5y0r",sj55zd:"f1phragk"},"filled-important":{De3pzq:"f1c73kur",sj55zd:"fr0bkrk"},"filled-informative":{De3pzq:"f3vzo32",sj55zd:"f11d4kpn"},"filled-severe":{De3pzq:"f1s438gw",sj55zd:"f1phragk"},"filled-subtle":{De3pzq:"fxugw4r",sj55zd:"f19n0e5"},"filled-success":{De3pzq:"flxk52p",sj55zd:"f1phragk"},"filled-warning":{De3pzq:"ffq97bm",sj55zd:"ff5vbop"},ghost:{},"ghost-brand":{sj55zd:"f16muhyy"},"ghost-danger":{sj55zd:"f1whyuy6"},"ghost-important":{sj55zd:"f19n0e5"},"ghost-informative":{sj55zd:"f11d4kpn"},"ghost-severe":{sj55zd:"f1l8vj45"},"ghost-subtle":{sj55zd:"fonrgv7"},"ghost-success":{sj55zd:"f1m7fhi8"},"ghost-warning":{sj55zd:"fpti2h4"},outline:{g2u3we:"f23ftbb",h3c5rm:["f1gkuv52","f1p1bl80"],B9xav0g:"fioka3i",zhjwy3:["f1p1bl80","f1gkuv52"]},"outline-brand":{sj55zd:"f16muhyy"},"outline-danger":{sj55zd:"f1whyuy6",g2u3we:"fyqpifd",h3c5rm:["f3ukxca","f1k7dugc"],B9xav0g:"f1njxb2b",zhjwy3:["f1k7dugc","f3ukxca"]},"outline-important":{sj55zd:"f11d4kpn",g2u3we:"fq0vr37",h3c5rm:["f1byw159","f11cr0be"],B9xav0g:"f1c1zstj",zhjwy3:["f11cr0be","f1byw159"]},"outline-informative":{sj55zd:"f11d4kpn",g2u3we:"f68mrw8",h3c5rm:["f7pw515","fw35ms5"],B9xav0g:"frpde29",zhjwy3:["fw35ms5","f7pw515"]},"outline-severe":{sj55zd:"f1l8vj45"},"outline-subtle":{sj55zd:"fonrgv7"},"outline-success":{sj55zd:"f1m7fhi8",g2u3we:"f1mmhl11",h3c5rm:["f1tjpp2f","f1ocn5n7"],B9xav0g:"f1gjv25d",zhjwy3:["f1ocn5n7","f1tjpp2f"]},"outline-warning":{sj55zd:"fpti2h4"},tint:{},"tint-brand":{De3pzq:"f16xkysk",sj55zd:"faj9fo0",g2u3we:"f161y7kd",h3c5rm:["f1c8dzaj","f1sl6hi9"],B9xav0g:"f1619yhw",zhjwy3:["f1sl6hi9","f1c8dzaj"]},"tint-danger":{De3pzq:"ff0poqj",sj55zd:"f1hcrxcs",g2u3we:"f1oqjm8o",h3c5rm:["fkgrb8g","frb5wm0"],B9xav0g:"f1iai1ph",zhjwy3:["frb5wm0","fkgrb8g"]},"tint-important":{De3pzq:"f945g0u",sj55zd:"fr0bkrk",g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},"tint-informative":{De3pzq:"f1ctqxl6",sj55zd:"f11d4kpn",g2u3we:"f68mrw8",h3c5rm:["f7pw515","fw35ms5"],B9xav0g:"frpde29",zhjwy3:["fw35ms5","f7pw515"]},"tint-severe":{De3pzq:"f1xzsg4",sj55zd:"f1k5f75o",g2u3we:"fxy9dsj",h3c5rm:["f54u6j2","fcm23ze"],B9xav0g:"f4vf0uq",zhjwy3:["fcm23ze","f54u6j2"]},"tint-subtle":{De3pzq:"fxugw4r",sj55zd:"f11d4kpn",g2u3we:"f68mrw8",h3c5rm:["f7pw515","fw35ms5"],B9xav0g:"frpde29",zhjwy3:["fw35ms5","f7pw515"]},"tint-success":{De3pzq:"f2vsrz6",sj55zd:"ffmvakt",g2u3we:"fdmic9h",h3c5rm:["f196y6m","fetptd8"],B9xav0g:"f1pev5xq",zhjwy3:["fetptd8","f196y6m"]},"tint-warning":{De3pzq:"f10s6hli",sj55zd:"f42v8de",g2u3we:"fn9i3n",h3c5rm:["f1aw8cx4","f51if14"],B9xav0g:"fvq8iai",zhjwy3:["f51if14","f1aw8cx4"]}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f13mqy1h{font-size:var(--fontSizeBase100);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".fcpl73t{line-height:var(--lineHeightBase100);}",".f16dn6v3{width:6px;}",".f3mu39s{height:6px;}",".f130uwy9{font-size:4px;}",".fod1mrr{line-height:4px;}",".f18p0k4z{min-width:unset;}",[".f19jm9xf{padding:unset;}",{p:-1}],".fpd43o0{width:10px;}",".f30q22z{height:10px;}",".f1tccstq{font-size:6px;}",".f1y3arg5{line-height:6px;}",[".f19jm9xf{padding:unset;}",{p:-1}],".fq2vo04{min-width:16px;}",".fd461yt{height:16px;}",[".fupdldz{padding:0 calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}",{p:-1}],".f17fgpbq{min-width:24px;}",".frvgh55{height:24px;}",[".f1996nqw{padding:0 calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}",{p:-1}],".fwbmr0d{min-width:32px;}",".f1d2rq10{height:32px;}",[".fty64o7{padding:0 calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",{p:-1}],[".f1fabniw{border-radius:var(--borderRadiusNone);}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],[".fq9zq91{border-radius:var(--borderRadiusSmall);}",{p:-1}],".f10ludwy::after{display:none;}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fdl5y0r{background-color:var(--colorPaletteRedBackground3);}",".f1c73kur{background-color:var(--colorNeutralForeground1);}",".fr0bkrk{color:var(--colorNeutralBackground1);}",".f3vzo32{background-color:var(--colorNeutralBackground5);}",".f11d4kpn{color:var(--colorNeutralForeground3);}",".f1s438gw{background-color:var(--colorPaletteDarkOrangeBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".flxk52p{background-color:var(--colorPaletteGreenBackground3);}",".ffq97bm{background-color:var(--colorPaletteYellowBackground3);}",".ff5vbop{color:var(--colorNeutralForeground1Static);}",".f16muhyy{color:var(--colorBrandForeground1);}",".f1whyuy6{color:var(--colorPaletteRedForeground3);}",".f1l8vj45{color:var(--colorPaletteDarkOrangeForeground3);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".f1m7fhi8{color:var(--colorPaletteGreenForeground3);}",".fpti2h4{color:var(--colorPaletteYellowForeground2);}",".f23ftbb{border-top-color:currentColor;}",".f1gkuv52{border-right-color:currentColor;}",".f1p1bl80{border-left-color:currentColor;}",".fioka3i{border-bottom-color:currentColor;}",".fyqpifd{border-top-color:var(--colorPaletteRedBorder2);}",".f3ukxca{border-right-color:var(--colorPaletteRedBorder2);}",".f1k7dugc{border-left-color:var(--colorPaletteRedBorder2);}",".f1njxb2b{border-bottom-color:var(--colorPaletteRedBorder2);}",".fq0vr37{border-top-color:var(--colorNeutralStrokeAccessible);}",".f1byw159{border-right-color:var(--colorNeutralStrokeAccessible);}",".f11cr0be{border-left-color:var(--colorNeutralStrokeAccessible);}",".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f68mrw8{border-top-color:var(--colorNeutralStroke2);}",".f7pw515{border-right-color:var(--colorNeutralStroke2);}",".fw35ms5{border-left-color:var(--colorNeutralStroke2);}",".frpde29{border-bottom-color:var(--colorNeutralStroke2);}",".f1mmhl11{border-top-color:var(--colorPaletteGreenBorder2);}",".f1tjpp2f{border-right-color:var(--colorPaletteGreenBorder2);}",".f1ocn5n7{border-left-color:var(--colorPaletteGreenBorder2);}",".f1gjv25d{border-bottom-color:var(--colorPaletteGreenBorder2);}",".f16xkysk{background-color:var(--colorBrandBackground2);}",".faj9fo0{color:var(--colorBrandForeground2);}",".f161y7kd{border-top-color:var(--colorBrandStroke2);}",".f1c8dzaj{border-right-color:var(--colorBrandStroke2);}",".f1sl6hi9{border-left-color:var(--colorBrandStroke2);}",".f1619yhw{border-bottom-color:var(--colorBrandStroke2);}",".ff0poqj{background-color:var(--colorPaletteRedBackground1);}",".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",".f1oqjm8o{border-top-color:var(--colorPaletteRedBorder1);}",".fkgrb8g{border-right-color:var(--colorPaletteRedBorder1);}",".frb5wm0{border-left-color:var(--colorPaletteRedBorder1);}",".f1iai1ph{border-bottom-color:var(--colorPaletteRedBorder1);}",".f945g0u{background-color:var(--colorNeutralForeground3);}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".f1ctqxl6{background-color:var(--colorNeutralBackground4);}",".f1xzsg4{background-color:var(--colorPaletteDarkOrangeBackground1);}",".f1k5f75o{color:var(--colorPaletteDarkOrangeForeground1);}",".fxy9dsj{border-top-color:var(--colorPaletteDarkOrangeBorder1);}",".f54u6j2{border-right-color:var(--colorPaletteDarkOrangeBorder1);}",".fcm23ze{border-left-color:var(--colorPaletteDarkOrangeBorder1);}",".f4vf0uq{border-bottom-color:var(--colorPaletteDarkOrangeBorder1);}",".f2vsrz6{background-color:var(--colorPaletteGreenBackground1);}",".ffmvakt{color:var(--colorPaletteGreenForeground1);}",".fdmic9h{border-top-color:var(--colorPaletteGreenBorder1);}",".f196y6m{border-right-color:var(--colorPaletteGreenBorder1);}",".fetptd8{border-left-color:var(--colorPaletteGreenBorder1);}",".f1pev5xq{border-bottom-color:var(--colorPaletteGreenBorder1);}",".f10s6hli{background-color:var(--colorPaletteYellowBackground1);}",".f42v8de{color:var(--colorPaletteYellowForeground1);}",".fn9i3n{border-top-color:var(--colorPaletteYellowBorder1);}",".f1aw8cx4{border-right-color:var(--colorPaletteYellowBorder1);}",".f51if14{border-left-color:var(--colorPaletteYellowBorder1);}",".fvq8iai{border-bottom-color:var(--colorPaletteYellowBorder1);}"]}),O7=Ge("rttl5z0",null,[".rttl5z0{display:flex;line-height:1;margin:0 calc(-1 * var(--spacingHorizontalXXS));font-size:12px;}"]),q7=se({beforeText:{t21cq0:["f1t8l4o1","f11juvx6"]},afterText:{Frg6f3:["f11juvx6","f1t8l4o1"]},beforeTextXL:{t21cq0:["f1rs9grm","f1kwmkpi"]},afterTextXL:{Frg6f3:["f1kwmkpi","f1rs9grm"]},tiny:{Be2twd7:"f1tccstq"},"extra-small":{Be2twd7:"fnmn6fi"},small:{Be2twd7:"f1ugzwwg"},medium:{},large:{Be2twd7:"f4ybsrx"},"extra-large":{Be2twd7:"fe5j1ua"}},{d:[".f1t8l4o1{margin-right:calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}",".f11juvx6{margin-left:calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}",".f1rs9grm{margin-right:calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}",".f1kwmkpi{margin-left:calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}",".f1tccstq{font-size:6px;}",".fnmn6fi{font-size:10px;}",".f1ugzwwg{font-size:12px;}",".f4ybsrx{font-size:16px;}",".fe5j1ua{font-size:20px;}"]}),$7=e=>{"use no memo";const t=D7(),r=L7(),n=e.size==="small"||e.size==="extra-small"||e.size==="tiny";e.root.className=ne(Ew.root,t,n&&r.fontSmallToTiny,r[e.size],r[e.shape],e.shape==="rounded"&&n&&r.roundedSmallToTiny,e.appearance==="ghost"&&r.borderGhost,r[e.appearance],r[`${e.appearance}-${e.color}`],e.root.className);const o=O7(),i=q7();if(e.icon){let s;B.Children.toArray(e.root.children).length>0&&(e.size==="extra-large"?s=e.iconPosition==="after"?i.afterTextXL:i.beforeTextXL:s=e.iconPosition==="after"?i.afterText:i.beforeText),e.icon.className=ne(Ew.icon,o,s,i[e.size],e.icon.className)}return e},H7=e=>rt(e.root,{children:[e.iconPosition==="before"&&e.icon&&J(e.icon,{}),e.root.children,e.iconPosition==="after"&&e.icon&&J(e.icon,{})]}),Q=B.forwardRef((e,t)=>{const r=M7(e,t);return $7(r),Le("useBadgeStyles_unstable")(r),H7(r)});Q.displayName="Badge";const W7=B.createContext(void 0),pB=W7.Provider,Rw="data-popper-is-intersecting",Aw="data-popper-escaped",Fw="data-popper-reference-hidden",V7="data-popper-placement",w0="fui-positioningend",U7=({options:e})=>e,gB=B.createContext(void 0);gB.Provider;const G7=()=>{var e;return(e=B.useContext(gB))!==null&&e!==void 0?e:U7},X7=["top","right","bottom","left"],Rs=Math.min,Nn=Math.max,Vf=Math.round,Bo=e=>({x:e,y:e}),Y7={left:"right",right:"left",bottom:"top",top:"bottom"},Z7={start:"end",end:"start"};function k0(e,t,r){return Nn(e,Rs(t,r))}function ni(e,t){return typeof e=="function"?e(t):e}function oi(e){return e.split("-")[0]}function xl(e){return e.split("-")[1]}function Jy(e){return e==="x"?"y":"x"}function e1(e){return e==="y"?"height":"width"}const K7=new Set(["top","bottom"]);function So(e){return K7.has(oi(e))?"y":"x"}function t1(e){return Jy(So(e))}function Q7(e,t,r){r===void 0&&(r=!1);const n=xl(e),o=t1(e),i=e1(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Uf(s)),[s,Uf(s)]}function J7(e){const t=Uf(e);return[S0(e),t,S0(t)]}function S0(e){return e.replace(/start|end/g,t=>Z7[t])}const Pw=["left","right"],Iw=["right","left"],e9=["top","bottom"],t9=["bottom","top"];function r9(e,t,r){switch(e){case"top":case"bottom":return r?t?Iw:Pw:t?Pw:Iw;case"left":case"right":return t?e9:t9;default:return[]}}function n9(e,t,r,n){const o=xl(e);let i=r9(oi(e),r==="start",n);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(S0)))),i}function Uf(e){return e.replace(/left|right|bottom|top/g,t=>Y7[t])}function o9(e){return{top:0,right:0,bottom:0,left:0,...e}}function mB(e){return typeof e!="number"?o9(e):{top:e,right:e,bottom:e,left:e}}function Gf(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function Mw(e,t,r){let{reference:n,floating:o}=e;const i=So(t),s=t1(t),a=e1(s),l=oi(t),c=i==="y",u=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,p=n[a]/2-o[a]/2;let h;switch(l){case"top":h={x:u,y:n.y-o.height};break;case"bottom":h={x:u,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:d};break;case"left":h={x:n.x-o.width,y:d};break;default:h={x:n.x,y:n.y}}switch(xl(t)){case"start":h[s]-=p*(r&&c?-1:1);break;case"end":h[s]+=p*(r&&c?-1:1);break}return h}async function vB(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=ni(t,e),m=mB(h),y=a[p?d==="floating"?"reference":"floating":d],v=Gf(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(y)))==null||r?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),b=d==="floating"?{x:n,y:o,width:s.floating.width,height:s.floating.height}:s.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),k=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},S=Gf(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:x,strategy:l}):b);return{top:(v.top-S.top+m.top)/k.y,bottom:(S.bottom-v.bottom+m.bottom)/k.y,left:(v.left-S.left+m.left)/k.x,right:(S.right-v.right+m.right)/k.x}}const i9=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:s}=r,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Mw(c,n,l),p=n,h={},m=0;for(let y=0;y<a.length;y++){var g;const{name:v,fn:b}=a[y],{x,y:k,data:S,reset:_}=await b({x:u,y:d,initialPlacement:n,placement:p,strategy:o,middlewareData:h,rects:c,platform:{...s,detectOverflow:(g=s.detectOverflow)!=null?g:vB},elements:{reference:e,floating:t}});u=x??u,d=k??d,h={...h,[v]:{...h[v],...S}},_&&m<=50&&(m++,typeof _=="object"&&(_.placement&&(p=_.placement),_.rects&&(c=_.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):_.rects),{x:u,y:d}=Mw(c,p,l)),y=-1)}return{x:u,y:d,placement:p,strategy:o,middlewareData:h}},s9=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=ni(e,t)||{};if(c==null)return{};const d=mB(u),p={x:r,y:n},h=t1(o),m=e1(h),g=await s.getDimensions(c),y=h==="y",v=y?"top":"left",b=y?"bottom":"right",x=y?"clientHeight":"clientWidth",k=i.reference[m]+i.reference[h]-p[h]-i.floating[m],S=p[h]-i.reference[h],_=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let N=_?_[x]:0;(!N||!await(s.isElement==null?void 0:s.isElement(_)))&&(N=a.floating[x]||i.floating[m]);const z=k/2-S/2,F=N/2-g[m]/2-1,I=Rs(d[v],F),H=Rs(d[b],F),A=I,P=N-g[m]-H,C=N/2-g[m]/2+z,R=k0(A,C,P),O=!l.arrow&&xl(o)!=null&&C!==R&&i.reference[m]/2-(C<A?I:H)-g[m]/2<0,D=O?C<A?C-A:C-P:0;return{[h]:p[h]+D,data:{[h]:R,centerOffset:C-R-D,...O&&{alignmentOffset:D}},reset:O}}}),a9=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...y}=ni(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const v=oi(o),b=So(a),x=oi(a)===a,k=await(l.isRTL==null?void 0:l.isRTL(c.floating)),S=p||(x||!g?[Uf(a)]:J7(a)),_=m!=="none";!p&&_&&S.push(...n9(a,g,m,k));const N=[a,...S],z=await l.detectOverflow(t,y),F=[];let I=((n=i.flip)==null?void 0:n.overflows)||[];if(u&&F.push(z[v]),d){const C=Q7(o,s,k);F.push(z[C[0]],z[C[1]])}if(I=[...I,{placement:o,overflows:F}],!F.every(C=>C<=0)){var H,A;const C=(((H=i.flip)==null?void 0:H.index)||0)+1,R=N[C];if(R&&(!(d==="alignment"?b!==So(R):!1)||I.every(M=>So(M.placement)===b?M.overflows[0]>0:!0)))return{data:{index:C,overflows:I},reset:{placement:R}};let O=(A=I.filter(D=>D.overflows[0]<=0).sort((D,M)=>D.overflows[1]-M.overflows[1])[0])==null?void 0:A.placement;if(!O)switch(h){case"bestFit":{var P;const D=(P=I.filter(M=>{if(_){const $=So(M.placement);return $===b||$==="y"}return!0}).map(M=>[M.placement,M.overflows.filter($=>$>0).reduce(($,X)=>$+X,0)]).sort((M,$)=>M[1]-$[1])[0])==null?void 0:P[0];D&&(O=D);break}case"initialPlacement":O=a;break}if(o!==O)return{reset:{placement:O}}}return{}}}};function Dw(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Lw(e){return X7.some(t=>e[t]>=0)}const l9=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:n}=t,{strategy:o="referenceHidden",...i}=ni(e,t);switch(o){case"referenceHidden":{const s=await n.detectOverflow(t,{...i,elementContext:"reference"}),a=Dw(s,r.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Lw(a)}}}case"escaped":{const s=await n.detectOverflow(t,{...i,altBoundary:!0}),a=Dw(s,r.floating);return{data:{escapedOffsets:a,escaped:Lw(a)}}}default:return{}}}}},yB=new Set(["left","top"]);async function c9(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=oi(r),a=xl(r),l=So(r)==="y",c=yB.has(s)?-1:1,u=i&&l?-1:1,d=ni(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof m=="number"&&(h=a==="end"?m*-1:m),l?{x:h*u,y:p*c}:{x:p*c,y:h*u}}const u9=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await c9(t,e);return s===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},d9=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o,platform:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:v=>{let{x:b,y:x}=v;return{x:b,y:x}}},...c}=ni(e,t),u={x:r,y:n},d=await i.detectOverflow(t,c),p=So(oi(o)),h=Jy(p);let m=u[h],g=u[p];if(s){const v=h==="y"?"top":"left",b=h==="y"?"bottom":"right",x=m+d[v],k=m-d[b];m=k0(x,m,k)}if(a){const v=p==="y"?"top":"left",b=p==="y"?"bottom":"right",x=g+d[v],k=g-d[b];g=k0(x,g,k)}const y=l.fn({...t,[h]:m,[p]:g});return{...y,data:{x:y.x-r,y:y.y-n,enabled:{[h]:s,[p]:a}}}}}},f9=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=ni(e,t),u={x:r,y:n},d=So(o),p=Jy(d);let h=u[p],m=u[d];const g=ni(a,t),y=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const x=p==="y"?"height":"width",k=i.reference[p]-i.floating[x]+y.mainAxis,S=i.reference[p]+i.reference[x]-y.mainAxis;h<k?h=k:h>S&&(h=S)}if(c){var v,b;const x=p==="y"?"width":"height",k=yB.has(oi(o)),S=i.reference[d]-i.floating[x]+(k&&((v=s.offset)==null?void 0:v[d])||0)+(k?0:y.crossAxis),_=i.reference[d]+i.reference[x]+(k?0:((b=s.offset)==null?void 0:b[d])||0)-(k?y.crossAxis:0);m<S?m=S:m>_&&(m=_)}return{[p]:h,[d]:m}}}},h9=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...c}=ni(e,t),u=await s.detectOverflow(t,c),d=oi(o),p=xl(o),h=So(o)==="y",{width:m,height:g}=i.floating;let y,v;d==="top"||d==="bottom"?(y=d,v=p===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(v=d,y=p==="end"?"top":"bottom");const b=g-u.top-u.bottom,x=m-u.left-u.right,k=Rs(g-u[y],b),S=Rs(m-u[v],x),_=!t.middlewareData.shift;let N=k,z=S;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(z=x),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(N=b),_&&!p){const I=Nn(u.left,0),H=Nn(u.right,0),A=Nn(u.top,0),P=Nn(u.bottom,0);h?z=m-2*(I!==0||H!==0?I+H:Nn(u.left,u.right)):N=g-2*(A!==0||P!==0?A+P:Nn(u.top,u.bottom))}await l({...t,availableWidth:z,availableHeight:N});const F=await s.getDimensions(a.floating);return m!==F.width||g!==F.height?{reset:{rects:!0}}:{}}}};function cp(){return typeof window<"u"}function wl(e){return bB(e)?(e.nodeName||"").toLowerCase():"#document"}function mn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ui(e){var t;return(t=(bB(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function bB(e){return cp()?e instanceof Node||e instanceof mn(e).Node:!1}function ao(e){return cp()?e instanceof Element||e instanceof mn(e).Element:!1}function jo(e){return cp()?e instanceof HTMLElement||e instanceof mn(e).HTMLElement:!1}function Ow(e){return!cp()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof mn(e).ShadowRoot}const p9=new Set(["inline","contents"]);function Fu(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=lo(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!p9.has(o)}const g9=new Set(["table","td","th"]);function m9(e){return g9.has(wl(e))}const v9=[":popover-open",":modal"];function up(e){return v9.some(t=>{try{return e.matches(t)}catch{return!1}})}const y9=["transform","translate","scale","rotate","perspective"],b9=["transform","translate","scale","rotate","perspective","filter"],x9=["paint","layout","strict","content"];function r1(e){const t=n1(),r=ao(e)?lo(e):e;return y9.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||b9.some(n=>(r.willChange||"").includes(n))||x9.some(n=>(r.contain||"").includes(n))}function w9(e){let t=qi(e);for(;jo(t)&&!tl(t);){if(r1(t))return t;if(up(t))return null;t=qi(t)}return null}function n1(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const k9=new Set(["html","body","#document"]);function tl(e){return k9.has(wl(e))}function lo(e){return mn(e).getComputedStyle(e)}function dp(e){return ao(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function qi(e){if(wl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ow(e)&&e.host||ui(e);return Ow(t)?t.host:t}function xB(e){const t=qi(e);return tl(t)?e.ownerDocument?e.ownerDocument.body:e.body:jo(t)&&Fu(t)?t:xB(t)}function wB(e,t,r){var n;t===void 0&&(t=[]);const o=xB(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),s=mn(o);return i?(C0(s),t.concat(s,s.visualViewport||[],Fu(o)?o:[],[])):t.concat(o,wB(o,[]))}function C0(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function kB(e){const t=lo(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=jo(e),i=o?e.offsetWidth:r,s=o?e.offsetHeight:n,a=Vf(r)!==i||Vf(n)!==s;return a&&(r=i,n=s),{width:r,height:n,$:a}}function SB(e){return ao(e)?e:e.contextElement}function ja(e){const t=SB(e);if(!jo(t))return Bo(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=kB(t);let s=(i?Vf(r.width):r.width)/n,a=(i?Vf(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const S9=Bo(0);function CB(e){const t=mn(e);return!n1()||!t.visualViewport?S9:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function C9(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==mn(e)?!1:t}function su(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=SB(e);let s=Bo(1);t&&(n?ao(n)&&(s=ja(n)):s=ja(e));const a=C9(i,r,n)?CB(i):Bo(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,u=o.width/s.x,d=o.height/s.y;if(i){const p=mn(i),h=n&&ao(n)?mn(n):n;let m=p,g=C0(m);for(;g&&n&&h!==m;){const y=ja(g),v=g.getBoundingClientRect(),b=lo(g),x=v.left+(g.clientLeft+parseFloat(b.paddingLeft))*y.x,k=v.top+(g.clientTop+parseFloat(b.paddingTop))*y.y;l*=y.x,c*=y.y,u*=y.x,d*=y.y,l+=x,c+=k,m=mn(g),g=C0(m)}}return Gf({width:u,height:d,x:l,y:c})}function fp(e,t){const r=dp(e).scrollLeft;return t?t.left+r:su(ui(e)).left+r}function _B(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-fp(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function _9(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i=o==="fixed",s=ui(n),a=t?up(t.floating):!1;if(n===s||a&&i)return r;let l={scrollLeft:0,scrollTop:0},c=Bo(1);const u=Bo(0),d=jo(n);if((d||!d&&!i)&&((wl(n)!=="body"||Fu(s))&&(l=dp(n)),jo(n))){const h=su(n);c=ja(n),u.x=h.x+n.clientLeft,u.y=h.y+n.clientTop}const p=s&&!d&&!i?_B(s,l):Bo(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:r.y*c.y-l.scrollTop*c.y+u.y+p.y}}function B9(e){return Array.from(e.getClientRects())}function T9(e){const t=ui(e),r=dp(e),n=e.ownerDocument.body,o=Nn(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=Nn(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+fp(e);const a=-r.scrollTop;return lo(n).direction==="rtl"&&(s+=Nn(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:s,y:a}}const qw=25;function N9(e,t){const r=mn(e),n=ui(e),o=r.visualViewport;let i=n.clientWidth,s=n.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const u=n1();(!u||u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}const c=fp(n);if(c<=0){const u=n.ownerDocument,d=u.body,p=getComputedStyle(d),h=u.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,m=Math.abs(n.clientWidth-d.clientWidth-h);m<=qw&&(i-=m)}else c<=qw&&(i+=c);return{width:i,height:s,x:a,y:l}}const j9=new Set(["absolute","fixed"]);function z9(e,t){const r=su(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=jo(e)?ja(e):Bo(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,c=n*i.y;return{width:s,height:a,x:l,y:c}}function $w(e,t,r){let n;if(t==="viewport")n=N9(e,r);else if(t==="document")n=T9(ui(e));else if(ao(t))n=z9(t,r);else{const o=CB(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Gf(n)}function BB(e,t){const r=qi(e);return r===t||!ao(r)||tl(r)?!1:lo(r).position==="fixed"||BB(r,t)}function E9(e,t){const r=t.get(e);if(r)return r;let n=wB(e,[]).filter(a=>ao(a)&&wl(a)!=="body"),o=null;const i=lo(e).position==="fixed";let s=i?qi(e):e;for(;ao(s)&&!tl(s);){const a=lo(s),l=r1(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&j9.has(o.position)||Fu(s)&&!l&&BB(e,s))?n=n.filter(u=>u!==s):o=a,s=qi(s)}return t.set(e,n),n}function R9(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const s=[...r==="clippingAncestors"?up(t)?[]:E9(t,this._c):[].concat(r),n],a=s[0],l=s.reduce((c,u)=>{const d=$w(t,u,o);return c.top=Nn(d.top,c.top),c.right=Rs(d.right,c.right),c.bottom=Rs(d.bottom,c.bottom),c.left=Nn(d.left,c.left),c},$w(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function A9(e){const{width:t,height:r}=kB(e);return{width:t,height:r}}function F9(e,t,r){const n=jo(t),o=ui(t),i=r==="fixed",s=su(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Bo(0);function c(){l.x=fp(o)}if(n||!n&&!i)if((wl(t)!=="body"||Fu(o))&&(a=dp(t)),n){const h=su(t,!0,i,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else o&&c();i&&!n&&o&&c();const u=o&&!n&&!i?_B(o,a):Bo(0),d=s.left+a.scrollLeft-l.x-u.x,p=s.top+a.scrollTop-l.y-u.y;return{x:d,y:p,width:s.width,height:s.height}}function Rg(e){return lo(e).position==="static"}function Hw(e,t){if(!jo(e)||lo(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return ui(e)===r&&(r=r.ownerDocument.body),r}function TB(e,t){const r=mn(e);if(up(e))return r;if(!jo(e)){let o=qi(e);for(;o&&!tl(o);){if(ao(o)&&!Rg(o))return o;o=qi(o)}return r}let n=Hw(e,t);for(;n&&m9(n)&&Rg(n);)n=Hw(n,t);return n&&tl(n)&&Rg(n)&&!r1(n)?r:n||w9(e)||r}const P9=async function(e){const t=this.getOffsetParent||TB,r=this.getDimensions,n=await r(e.floating);return{reference:F9(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function I9(e){return lo(e).direction==="rtl"}const M9={convertOffsetParentRelativeRectToViewportRelativeRect:_9,getDocumentElement:ui,getClippingRect:R9,getOffsetParent:TB,getElementRects:P9,getClientRects:B9,getDimensions:A9,getScale:ja,isElement:ao,isRTL:I9},D9=vB,L9=u9,O9=d9,q9=a9,$9=h9,Ww=l9,H9=s9,Vw=f9,W9=(e,t,r)=>{const n=new Map,o={platform:M9,...r},i={...o.platform,_c:n};return i9(e,t,{...o,platform:i})};function NB(e){const t=e.split("-");return{side:t[0],alignment:t[1]}}const V9=e=>e.nodeName==="HTML"?e:e.parentNode||e.host,U9=e=>{var t;if(e.nodeType!==1)return{};const r=(t=e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return r?r.getComputedStyle(e,null):{}},hp=e=>{const t=e&&V9(e);if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}const{overflow:r,overflowX:n,overflowY:o}=U9(t);return/(auto|scroll|overlay)/.test(r+o+n)?t:hp(t)},G9=e=>{var t;const r=hp(e);return r?r!==((t=r.ownerDocument)===null||t===void 0?void 0:t.body):!1};function o1(e,t){if(t==="window")return e==null?void 0:e.ownerDocument.documentElement;if(t==="clippingParents")return"clippingAncestors";if(t==="scrollParent"){let r=hp(e);return r.nodeName==="BODY"&&(r=e==null?void 0:e.ownerDocument.documentElement),r}return t}function X9(e,t){return typeof e=="number"||typeof e=="object"&&e!==null?Ag(e,t):typeof e=="function"?r=>{const n=e(r);return Ag(n,t)}:{mainAxis:t}}const Ag=(e,t)=>{if(typeof e=="number")return{mainAxis:e+t};var r;return{...e,mainAxis:((r=e.mainAxis)!==null&&r!==void 0?r:0)+t}};function jB(e,t){if(typeof e=="number")return e;const{start:r,end:n,...o}=e,i=o,s=t?"end":"start",a=t?"start":"end";return e[s]&&(i.left=e[s]),e[a]&&(i.right=e[a]),i}const Y9=e=>({above:"top",below:"bottom",before:e?"right":"left",after:e?"left":"right"}),Z9=()=>({start:"start",end:"end",top:"start",bottom:"end",center:void 0}),K9=(e,t)=>{const r=e==="above"||e==="below",n=t==="top"||t==="bottom";return r&&n||!r&&!n},zB=(e,t,r)=>{const n=K9(t,e)?"center":e,o=t&&Y9(r)[t],i=n&&Z9()[n];return o&&i?`${o}-${i}`:o},Q9=()=>({top:"above",bottom:"below",right:"after",left:"before"}),J9=e=>e==="above"||e==="below"?{start:"start",end:"end"}:{start:"top",end:"bottom"},eO=e=>{const{side:t,alignment:r}=NB(e),n=Q9()[t],o=r&&J9(n)[r];return{position:n,alignment:o}},tO={above:{position:"above",align:"center"},"above-start":{position:"above",align:"start"},"above-end":{position:"above",align:"end"},below:{position:"below",align:"center"},"below-start":{position:"below",align:"start"},"below-end":{position:"below",align:"end"},before:{position:"before",align:"center"},"before-top":{position:"before",align:"top"},"before-bottom":{position:"before",align:"bottom"},after:{position:"after",align:"center"},"after-top":{position:"after",align:"top"},"after-bottom":{position:"after",align:"bottom"}};function i1(e){return e==null?{}:typeof e=="string"?tO[e]:e}function Fg(e,t,r){const n=B.useRef(!0),[o]=B.useState(()=>({value:e,callback:t,facade:{get current(){return o.value},set current(i){const s=o.value;s!==i&&(o.value=i,o.callback(i,s))}}}));return nr(()=>{n.current=!1},[]),o.callback=t,o.facade}function rO(e){let t;return()=>(t||(t=new Promise(r=>{Promise.resolve().then(()=>{t=void 0,r(e())})})),t)}function nO(e){const{arrow:t,middlewareData:r}=e;if(!r.arrow||!t)return;const{x:n,y:o}=r.arrow;Object.assign(t.style,{left:n!=null?`${n}px`:"",top:o!=null?`${o}px`:""})}function oO(e){var t,r,n;const{container:o,placement:i,middlewareData:s,strategy:a,lowPPI:l,coordinates:c,useTransform:u=!0}=e;if(!o)return;o.setAttribute(V7,i),o.removeAttribute(Rw),s.intersectionObserver.intersecting&&o.setAttribute(Rw,""),o.removeAttribute(Aw),!((t=s.hide)===null||t===void 0)&&t.escaped&&o.setAttribute(Aw,""),o.removeAttribute(Fw),!((r=s.hide)===null||r===void 0)&&r.referenceHidden&&o.setAttribute(Fw,"");const d=((n=o.ownerDocument.defaultView)===null||n===void 0?void 0:n.devicePixelRatio)||1,p=Math.round(c.x*d)/d,h=Math.round(c.y*d)/d;if(Object.assign(o.style,{position:a}),u){Object.assign(o.style,{transform:l?`translate(${p}px, ${h}px)`:`translate3d(${p}px, ${h}px, 0)`});return}Object.assign(o.style,{left:`${p}px`,top:`${h}px`})}const iO=e=>{switch(e){case"always":case!0:return{applyMaxWidth:!0,applyMaxHeight:!0};case"width-always":case"width":return{applyMaxWidth:!0,applyMaxHeight:!1};case"height-always":case"height":return{applyMaxWidth:!1,applyMaxHeight:!0};default:return!1}};function Uw(e){const t=[];let r=e;for(;r;){const n=hp(r);if(e.ownerDocument.body===n){t.push(n);break}if(n.nodeName==="BODY"&&n!==e.ownerDocument.body)break;t.push(n),r=n}return t}function sO(e,t){return new e.ResizeObserver(t)}function aO(e){let t=!1;const{container:r,target:n,arrow:o,strategy:i,middleware:s,placement:a,useTransform:l=!0,disableUpdateOnResize:c=!1}=e,u=r.ownerDocument.defaultView;if(!n||!r||!u)return{updatePosition:()=>{},dispose:()=>{}};const d=c?null:sO(u,v=>{v.every(x=>x.contentRect.width>0&&x.contentRect.height>0)&&g()});let p=!0;const h=new Set;Object.assign(r.style,{position:"fixed",left:0,top:0,margin:0});const m=()=>{t||(p&&(Uw(r).forEach(v=>h.add(v)),Et(n)&&Uw(n).forEach(v=>h.add(v)),h.forEach(v=>{v.addEventListener("scroll",g,{passive:!0})}),d==null||d.observe(r),Et(n)&&(d==null||d.observe(n)),p=!1),Object.assign(r.style,{position:i}),W9(n,r,{placement:a,middleware:s,strategy:i}).then(({x:v,y:b,middlewareData:x,placement:k})=>{t||(nO({arrow:o,middlewareData:x}),oO({container:r,middlewareData:x,placement:k,coordinates:{x:v,y:b},lowPPI:((u==null?void 0:u.devicePixelRatio)||1)<=1,strategy:i,useTransform:l}),r.dispatchEvent(new CustomEvent(w0)))}).catch(v=>{}))},g=rO(()=>m()),y=()=>{t=!0,u&&(u.removeEventListener("scroll",g),u.removeEventListener("resize",g)),h.forEach(v=>{v.removeEventListener("scroll",g)}),h.clear(),d==null||d.disconnect()};return u&&(u.addEventListener("scroll",g,{passive:!0}),u.addEventListener("resize",g)),g(),{updatePosition:g,dispose:y}}function lO(){return{name:"coverTarget",fn:e=>{const{placement:t,rects:r,x:n,y:o}=e,i=NB(t).side,s={x:n,y:o};switch(i){case"bottom":s.y-=r.reference.height;break;case"top":s.y+=r.reference.height;break;case"left":s.x+=r.reference.width;break;case"right":s.x-=r.reference.width;break}return s}}}function cO(e){const{hasScrollableElement:t,flipBoundary:r,container:n,fallbackPositions:o=[],isRtl:i}=e,s=o.reduce((a,l)=>{const{position:c,align:u}=i1(l),d=zB(u,c,i);return d&&a.push(d),a},[]);return q9({...t&&{boundary:"clippingAncestors"},...r&&{altBoundary:!0,boundary:o1(n,r)},fallbackStrategy:"bestFit",...s.length&&{fallbackPlacements:s}})}function uO(){return{name:"intersectionObserver",fn:async e=>{const t=e.rects.floating,r=await D9(e,{altBoundary:!0}),n=r.top<t.height&&r.top>0,o=r.bottom<t.height&&r.bottom>0;return{data:{intersecting:n||o}}}}}const dO=e=>({name:"resetMaxSize",fn({middlewareData:t,elements:r}){var n;if(!((n=t.resetMaxSize)===null||n===void 0)&&n.maxSizeAlreadyReset)return{};const{applyMaxWidth:o,applyMaxHeight:i}=e;return o&&(r.floating.style.removeProperty("box-sizing"),r.floating.style.removeProperty("max-width"),r.floating.style.removeProperty("width")),i&&(r.floating.style.removeProperty("box-sizing"),r.floating.style.removeProperty("max-height"),r.floating.style.removeProperty("height")),{data:{maxSizeAlreadyReset:!0},reset:{rects:!0}}}});function fO(e,t){const{container:r,overflowBoundary:n,overflowBoundaryPadding:o,isRtl:i}=t;return $9({...o&&{padding:jB(o,i)},...n&&{altBoundary:!0,boundary:o1(r,n)},apply({availableHeight:s,availableWidth:a,elements:l,rects:c}){const u=(h,m,g)=>{if(h&&(l.floating.style.setProperty("box-sizing","border-box"),l.floating.style.setProperty(`max-${m}`,`${g}px`),c.floating[m]>g)){l.floating.style.setProperty(m,`${g}px`);const y=m==="width"?"x":"y";l.floating.style.getPropertyValue(`overflow-${y}`)||l.floating.style.setProperty(`overflow-${y}`,"auto")}},{applyMaxWidth:d,applyMaxHeight:p}=e;u(d,"width",a),u(p,"height",s)}})}function hO(e){return!e||typeof e=="number"||typeof e=="object"?e:({rects:{floating:t,reference:r},placement:n})=>{const{position:o,alignment:i}=eO(n);return e({positionedRect:t,targetRect:r,position:o,alignment:i})}}function pO(e){const t=hO(e);return L9(t)}function gO(e){const{hasScrollableElement:t,shiftToCoverTarget:r,disableTether:n,overflowBoundary:o,container:i,overflowBoundaryPadding:s,isRtl:a}=e;return O9({...t&&{boundary:"clippingAncestors"},...r&&{crossAxis:!0,limiter:Vw({crossAxis:!0,mainAxis:!1})},...n&&{crossAxis:n==="all",limiter:Vw({crossAxis:n!=="all",mainAxis:!1})},...s&&{padding:jB(s,a)},...o&&{altBoundary:!0,boundary:o1(i,o)}})}const Gw="--fui-match-target-size";function mO(){return{name:"matchTargetSize",fn:async e=>{const{rects:{reference:t,floating:r},elements:{floating:n},middlewareData:{matchTargetSize:{matchTargetSizeAttempt:o=!1}={}}}=e;if(t.width===r.width||o)return{};const{width:i}=t;return n.style.setProperty(Gw,`${i}px`),n.style.width||(n.style.width=`var(${Gw})`),{data:{matchTargetSizeAttempt:!0},reset:{rects:!0}}}}}function vO(e,t){const{align:r,arrowPadding:n,autoSize:o,coverTarget:i,disableUpdateOnResize:s,flipBoundary:a,offset:l,overflowBoundary:c,pinned:u,position:d,unstable_disableTether:p,strategy:h,overflowBoundaryPadding:m,fallbackPositions:g,useTransform:y,matchTargetSize:v,shiftToCoverTarget:b}=t;return B.useCallback((x,k)=>e({container:x,arrow:k,options:{autoSize:o,disableUpdateOnResize:s,matchTargetSize:v,offset:l,strategy:h,coverTarget:i,flipBoundary:a,overflowBoundary:c,useTransform:y,overflowBoundaryPadding:m,pinned:u,arrowPadding:n,align:r,fallbackPositions:g,shiftToCoverTarget:b,position:d,unstable_disableTether:p}}),[o,s,v,l,h,i,a,c,y,m,u,n,r,g,b,d,p,e])}function yO(e){const{dir:t,targetDocument:r}=mt(),n=t==="rtl",o=vO(G7(),e),{positionFixed:i}=e;return B.useCallback((s,a)=>{const l=G9(s),c=o(s,a),{autoSize:u,disableUpdateOnResize:d,matchTargetSize:p,offset:h,coverTarget:m,flipBoundary:g,overflowBoundary:y,useTransform:v,overflowBoundaryPadding:b,pinned:x,position:k,arrowPadding:S,strategy:_,align:N,fallbackPositions:z,shiftToCoverTarget:F,unstable_disableTether:I}=c,H=iO(u),A=[H&&dO(H),p&&mO(),h&&pO(h),m&&lO(),!x&&cO({container:s,flipBoundary:g,hasScrollableElement:l,isRtl:n,fallbackPositions:z}),gO({container:s,hasScrollableElement:l,overflowBoundary:y,disableTether:I,overflowBoundaryPadding:b,isRtl:n,shiftToCoverTarget:F}),H&&fO(H,{container:s,overflowBoundary:y,overflowBoundaryPadding:b,isRtl:n}),uO(),a&&H9({element:a,padding:S}),Ww({strategy:"referenceHidden"}),Ww({strategy:"escaped"}),!1].filter(Boolean);return{placement:zB(N,k,n),middleware:A,strategy:_??i?"fixed":"absolute",disableUpdateOnResize:d,useTransform:v}},[o,n,r,i])}function EB(e){"use no memo";const t=B.useRef(null),r=B.useRef(null),n=B.useRef(null),o=B.useRef(null),i=B.useRef(null),{enabled:s=!0}=e,a=yO(e),l=B.useCallback(()=>{t.current&&t.current.dispose(),t.current=null;var m;const g=(m=n.current)!==null&&m!==void 0?m:r.current;s&&rp()&&g&&o.current&&(t.current=aO({container:o.current,target:g,arrow:i.current,...a(o.current,i.current)}))},[s,a]),c=ye(m=>{n.current=m,l()});B.useImperativeHandle(e.positioningRef,()=>({updatePosition:()=>{var m;return(m=t.current)===null||m===void 0?void 0:m.updatePosition()},setTarget:m=>{e.target,c(m)}}),[e.target,c]),nr(()=>{var m;c((m=e.target)!==null&&m!==void 0?m:null)},[e.target,c]),nr(()=>{l()},[l]);const u=Fg(null,m=>{r.current!==m&&(r.current=m,l())}),d=ye(()=>{var m;return(m=e.onPositioningEnd)===null||m===void 0?void 0:m.call(e)}),p=Fg(null,m=>{if(o.current!==m){var g;(g=o.current)===null||g===void 0||g.removeEventListener(w0,d),m==null||m.addEventListener(w0,d),o.current=m,l()}}),h=Fg(null,m=>{i.current!==m&&(i.current=m,l())});return{targetRef:u,containerRef:p,arrowRef:h}}function bO(e){return Et(e)?{element:e}:typeof e=="object"?e===null?{element:null}:e:{}}const xO=se({root:{qhf8xq:"f1euv43f",Bhzewxz:"f15twtuk",oyh7mz:["f1vgc2s3","f1e31b4d"],j35jbq:["f1e31b4d","f1vgc2s3"],Bj3rh1h:"f494woh"}},{d:[".f1euv43f{position:absolute;}",".f15twtuk{top:0;}",".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",".f494woh{z-index:1000000;}"]}),RB=pf.useInsertionEffect,wO=e=>{"use no memo";const{className:t,dir:r,focusVisibleRef:n,targetNode:o}=e,i=B.useMemo(()=>{if(o===void 0||e.disabled)return null;const s=o.ownerDocument.createElement("div");return o.appendChild(s),s},[o,e.disabled]);return B.useMemo(()=>{i&&(i.className=t,i.setAttribute("dir",r),i.setAttribute("data-portal-node","true"),n.current=i)},[t,r,i,n]),B.useEffect(()=>()=>{i==null||i.remove()},[i]),i},kO=()=>{let e;function t(n,o){return e||(o&&(e=n.ownerDocument.createElement("div"),n.appendChild(e)),e)}function r(){e&&(e.remove(),e=void 0)}return{get:t,dispose:r}},SO=e=>{"use no memo";const{className:t,dir:r,focusVisibleRef:n,targetNode:o}=e,[i]=B.useState(kO),s=B.useMemo(()=>o===void 0||e.disabled?null:new Proxy({},{get(a,l){if(l==="nodeType")return 1;if(l==="remove"){const d=i.get(o,!1);return d&&d.childNodes.length===0&&i.dispose(),()=>{}}const c=i.get(o,!0),u=c?c[l]:void 0;return typeof u=="function"?u.bind(c):u},set(a,l,c){const u=l==="_virtual"||l==="focusVisible",d=u?i.get(o,!1):i.get(o,!0);return u&&!d?!0:d?(Object.assign(d,{[l]:c}),!0):!1}}),[i,o,e.disabled]);return RB(()=>{if(!s)return;const a=t.split(" ").filter(Boolean);return s.classList.add(...a),s.setAttribute("dir",r),s.setAttribute("data-portal-node","true"),n.current=s,()=>{s.classList.remove(...a),s.removeAttribute("dir")}},[t,r,s,n]),B.useEffect(()=>()=>{s==null||s.remove()},[s]),s},CO=RB?SO:wO,_O=e=>{"use no memo";const{targetDocument:t,dir:r}=mt(),n=QF(),o=$y(),i=xO(),s=$F(),a={dir:r,disabled:e.disabled,focusVisibleRef:o,className:ne(s,i.root,e.className),targetNode:n??(t==null?void 0:t.body)};return CO(a)},BO=e=>{const{element:t,className:r}=bO(e.mountNode),n=B.useRef(null),o=_O({disabled:!!t,className:r}),i=t??o,s={children:e.children,mountNode:i,virtualParentRootRef:n};return B.useEffect(()=>{if(!i)return;const a=n.current,l=i.contains(a);if(a&&!l)return aw(i,a),()=>{aw(i,void 0)}},[n,i]),s},TO=e=>B.createElement("span",{hidden:!0,ref:e.virtualParentRootRef},e.mountNode&&Lf.createPortal(B.createElement(B.Fragment,null,e.children,B.createElement("span",{hidden:!0})),e.mountNode)),Pu=e=>{const t=BO(e);return TO(t)};Pu.displayName="Portal";const NO=6,jO=4,zO=e=>-1,EO=e=>{};function RO(e){const{targetDocument:t}=mt(),r=t==null?void 0:t.defaultView,n=r?r.setTimeout:zO,o=r?r.clearTimeout:EO,i=B.useRef(void 0),s=B.useCallback((l,c)=>(i.current!==void 0&&o(i.current),i.current=n(l,c??0),i.current),[o,n]),a=B.useCallback(()=>{i.current!==void 0&&(o(i.current),i.current=void 0)},[o]);return B.useEffect(()=>{const l=e.current;return()=>{(!l||!l.isConnected)&&a()}},[a,e]),[s,a]}const AO=e=>{"use no memo";var t,r,n,o,i,s,a;const l=VF(),c=sP(),{targetDocument:u}=mt(),[d,p]=xn({state:e.visible,initialState:!1}),{children:h,content:m,withArrow:g=!1,positioning:y="above",onVisibleChange:v,relationship:b,showDelay:x=250,hideDelay:k=250,mountNode:S}=e,_={withArrow:g,positioning:y,showDelay:x,hideDelay:k,relationship:b,visible:d,shouldRenderTooltip:d,mountNode:S,components:{content:"div"},content:Ce(m,{defaultProps:{role:"tooltip"},elementType:"div"})};_.content.id=or("tooltip-",_.content.id);const N={enabled:_.visible,arrowPadding:2*jO,position:"above",align:"center",offset:4,...i1(_.positioning)};_.withArrow&&(N.offset=X9(N.offset,NO));const{targetRef:z,containerRef:F,arrowRef:I}=EB(N),[H,A]=RO(F),P=B.useCallback((L,Y)=>{A(),p(ee=>(Y.visible!==ee&&(v==null||v(L,Y)),Y.visible))},[A,p,v]);_.content.ref=yt(_.content.ref,F),_.arrowRef=I,nr(()=>{if(d){var L;const Y={hide:te=>P(void 0,{visible:!1,documentKeyboardEvent:te})};(L=l.visibleTooltip)===null||L===void 0||L.hide(),l.visibleTooltip=Y;const ee=te=>{te.key===Au&&!te.defaultPrevented&&(Y.hide(te),te.preventDefault())};return u==null||u.addEventListener("keydown",ee,{capture:!0}),()=>{l.visibleTooltip===Y&&(l.visibleTooltip=void 0),u==null||u.removeEventListener("keydown",ee,{capture:!0})}}},[l,u,d,P]);const C=B.useRef(!1),R=B.useCallback(L=>{if(L.type==="focus"&&C.current){C.current=!1;return}const Y=l.visibleTooltip?0:_.showDelay;H(()=>{P(L,{visible:!0})},Y),L.persist()},[H,P,_.showDelay,l]),O=TM(),[D]=B.useState(()=>{const L=ee=>{var te;!((te=ee.detail)===null||te===void 0)&&te.isFocusedProgrammatically&&!O()&&(C.current=!0)};let Y=null;return ee=>{Y==null||Y.removeEventListener(wn,L),ee==null||ee.addEventListener(wn,L),Y=ee}}),M=B.useCallback(L=>{let Y=_.hideDelay;L.type==="blur"&&(Y=0,C.current=(u==null?void 0:u.activeElement)===L.target),H(()=>{P(L,{visible:!1})},Y),L.persist()},[H,P,_.hideDelay,u]);_.content.onPointerEnter=wt(_.content.onPointerEnter,A),_.content.onPointerLeave=wt(_.content.onPointerLeave,M),_.content.onFocus=wt(_.content.onFocus,A),_.content.onBlur=wt(_.content.onBlur,M);const $=Dy(h),X={},V=($==null||(t=$.props)===null||t===void 0?void 0:t["aria-haspopup"])&&(($==null||(r=$.props)===null||r===void 0?void 0:r["aria-expanded"])===!0||($==null||(n=$.props)===null||n===void 0?void 0:n["aria-expanded"])==="true");return b==="label"?typeof _.content.children=="string"?X["aria-label"]=_.content.children:(X["aria-labelledby"]=_.content.id,_.shouldRenderTooltip=!0):b==="description"&&(X["aria-describedby"]=_.content.id,_.shouldRenderTooltip=!0),(c||V)&&(_.shouldRenderTooltip=!1),_.children=t5(h,{...X,...$==null?void 0:$.props,ref:yt(My($),D,N.target===void 0?z:void 0),onPointerEnter:ye(wt($==null||(o=$.props)===null||o===void 0?void 0:o.onPointerEnter,R)),onPointerLeave:ye(wt($==null||(i=$.props)===null||i===void 0?void 0:i.onPointerLeave,M)),onFocus:ye(wt($==null||(s=$.props)===null||s===void 0?void 0:s.onFocus,R)),onBlur:ye(wt($==null||(a=$.props)===null||a===void 0?void 0:a.onBlur,M))}),_},FO=e=>{"use no memo";const{appearance:t="normal"}=e,r=AO(e);return{appearance:t,...r}},PO=e=>rt(B.Fragment,{children:[e.children,e.shouldRenderTooltip&&J(Pu,{mountNode:e.mountNode,children:rt(e.content,{children:[e.withArrow&&J("div",{ref:e.arrowRef,className:e.arrowClassName}),e.content.children]})})]}),IO={content:"fui-Tooltip__content"},MO=se({root:{mc9l5x:"fjseox",B7ck84d:"f1ewtqcl",B2u0y6b:"f132xexn",Bceei9c:"f158kwzp",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm",Btd35i7:"fokg9q4",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f9ggezi",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1bzqsji",De3pzq:"fxugw4r",sj55zd:"f19n0e5",Bhu2qc9:"fxeb0a7"},visible:{mc9l5x:"ftgm304"},inverted:{De3pzq:"fg3r6xk",sj55zd:"fonrgv7"},arrow:{B7ck84d:"f1ewtqcl",qhf8xq:"f1euv43f",Bj3rh1h:"f1bsuimh",rhnwrx:"f1s3jn22",Bdy53xb:"fv40uqz",De3pzq:"f1u2r49w",B2eet1l:"fqhgnl",Beyfa6y:"f17bz04i",Bz10aip:"f36o3x3",Bqenvij:"fzofk8q",a9b677:"f1wbx1ie",Ftih45:"f1wl9k8s",Br0sdwz:"f1aocrix",cmx5o7:"f1ljr5q2",susq4k:0,Biibvgv:0,Bicfajf:0,qehafq:0,Brs5u8j:"f155f1qt",Ccq8qp:"f9mhzq7",Baz25je:"fr6rhvx",Bcgcnre:0,Bqjgrrk:0,qa3bma:0,y0oebl:0,Biqmznv:0,Bm6vgfq:0,Bbv0w2i:0,uvfttm:0,eqrjj:0,Bk5zm6e:0,m598lv:0,B4f6apu:0,ydt019:0,Bq4z7u6:0,Bdkvgpv:0,B0qfbqy:0,kj8mxx:"f1kc0wz4",r59vdv:"fgq90dz",Bkw5xw4:"fq0y47f",hl6cv3:"f1pwrbz6",aea9ga:"f1hxxcvm",yayu3t:"fw8rgyo",Bhsv975:"f1wnzycx",rhl9o9:"f1730wal",B7gxrvb:"f1fy4ixr",B6q6orb:"fobkauc",B0lu1f8:"f16bqv1l"}},{d:[".fjseox{display:none;}",".f1ewtqcl{box-sizing:border-box;}",".f132xexn{max-width:240px;}",".f158kwzp{cursor:default;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fokg9q4{overflow-wrap:break-word;}",[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],[".f9ggezi{border:1px solid var(--colorTransparentStroke);}",{p:-2}],[".f1bzqsji{padding:4px 11px 6px 11px;}",{p:-1}],".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".fxeb0a7{filter:drop-shadow(0 0 2px var(--colorNeutralShadowAmbient)) drop-shadow(0 4px 8px var(--colorNeutralShadowKey));}",".ftgm304{display:block;}",".fg3r6xk{background-color:var(--colorNeutralBackgroundStatic);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".f1euv43f{position:absolute;}",".f1bsuimh{z-index:-1;}",".f1s3jn22{--fui-positioning-arrow-height:8.484px;}",".fv40uqz{--fui-positioning-arrow-offset:-4.242px;}",".f1u2r49w{background-color:inherit;}",".fqhgnl{background-clip:content-box;}",".f17bz04i{border-bottom-left-radius:var(--borderRadiusSmall);}",".f36o3x3{transform:rotate(var(--fui-positioning-arrow-angle));}",".fzofk8q{height:var(--fui-positioning-arrow-height);}",".f1wbx1ie{width:var(--fui-positioning-arrow-height);}",'.f1wl9k8s::before{content:"";}',".f1aocrix::before{display:block;}",".f1ljr5q2::before{background-color:inherit;}",[".f155f1qt::before{margin:-1px;}",{p:-1}],".f9mhzq7::before{width:100%;}",".fr6rhvx::before{height:100%;}",[".f1kc0wz4::before{border:1px solid var(--colorTransparentStroke);}",{p:-2}],".fgq90dz::before{border-bottom-left-radius:var(--borderRadiusSmall);}",".fq0y47f::before{clip-path:polygon(0% 0%, 100% 100%, 0% 100%);}",'[data-popper-placement^="top"] .f1pwrbz6{bottom:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="top"] .f1hxxcvm{--fui-positioning-arrow-angle:-45deg;}','[data-popper-placement^="right"] .fw8rgyo{left:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="right"] .f1wnzycx{--fui-positioning-arrow-angle:45deg;}','[data-popper-placement^="bottom"] .f1730wal{top:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="bottom"] .f1fy4ixr{--fui-positioning-arrow-angle:135deg;}','[data-popper-placement^="left"] .fobkauc{right:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="left"] .f16bqv1l{--fui-positioning-arrow-angle:225deg;}']}),DO=e=>{"use no memo";const t=MO();return e.content.className=ne(IO.content,t.root,e.appearance==="inverted"&&t.inverted,e.visible&&t.visible,e.content.className),e.arrowClassName=t.arrow,e},zo=e=>{const t=FO(e);return DO(t),Le("useTooltipStyles_unstable")(t),PO(t)};zo.displayName="Tooltip";zo.isFluentTriggerComponent=!0;const LO=e=>{const{iconOnly:t,iconPosition:r}=e;return rt(e.root,{children:[r!=="after"&&e.icon&&J(e.icon,{}),!t&&e.root.children,r==="after"&&e.icon&&J(e.icon,{})]})},AB=B.createContext(void 0),OO={};AB.Provider;const qO=()=>{var e;return(e=B.useContext(AB))!==null&&e!==void 0?e:OO},$O=(e,t)=>{const{as:r="button",disabled:n=!1,disabledFocusable:o=!1,icon:i,iconPosition:s="before"}=e,a=qe(i,{elementType:"span"});return{disabled:n,disabledFocusable:o,iconPosition:s,iconOnly:!!(a!=null&&a.children&&!e.children),components:{root:"button",icon:"span"},root:Ce(Je(r,ap(e.as,e)),{elementType:"button",defaultProps:{ref:t,type:r==="button"?"button":void 0}}),icon:a}},HO=(e,t)=>{const{size:r}=qO(),{appearance:n="secondary",shape:o="rounded",size:i=r??"medium"}=e,s=$O(e,t);return{appearance:n,shape:o,size:i,...s}},Xw={root:"fui-Button",icon:"fui-Button__icon"},WO=Ge("r1f29ykk",null,{r:[".r1f29ykk{align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;text-decoration-line:none;vertical-align:middle;margin:0;overflow:hidden;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);font-family:var(--fontFamilyBase);outline-style:none;padding:5px var(--spacingHorizontalM);min-width:96px;border-radius:var(--borderRadiusMedium);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase300);transition-duration:var(--durationFaster);transition-property:background,border,color;transition-timing-function:var(--curveEasyEase);}",".r1f29ykk:hover{background-color:var(--colorNeutralBackground1Hover);border-color:var(--colorNeutralStroke1Hover);color:var(--colorNeutralForeground1Hover);cursor:pointer;}",".r1f29ykk:hover:active,.r1f29ykk:active:focus-visible{background-color:var(--colorNeutralBackground1Pressed);border-color:var(--colorNeutralStroke1Pressed);color:var(--colorNeutralForeground1Pressed);outline-style:none;}",".r1f29ykk[data-fui-focus-visible]{border-color:var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);border-width:1px;outline:var(--strokeWidthThick) solid var(--colorTransparentStroke);box-shadow:0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;z-index:1;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1f29ykk{transition-duration:0.01ms;}}","@media (forced-colors: active){.r1f29ykk:focus{border-color:ButtonText;}.r1f29ykk:hover{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}.r1f29ykk:hover:active,.r1f29ykk:active:focus-visible{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}}","@supports (-moz-appearance:button){.r1f29ykk[data-fui-focus-visible]{box-shadow:0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),VO=Ge("rywnvv2",null,[".rywnvv2{align-items:center;display:inline-flex;justify-content:center;font-size:20px;height:20px;width:20px;--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}"]),UO=se({outline:{De3pzq:"f1c21dwh",Jwef8y:"fjxutwb",Bpjbzib:"fkoldzo"},primary:{De3pzq:"ffp7eso",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"f1phragk",Jwef8y:"f15wkkf3",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f1rq72xc",Bpjbzib:"f1ksv2xa",im15vp:"fhvnf4x",Hjvxdg:["fb6swo4","f232fm2"],Gpfmf1:"f1klyf7k",ustxxc:["f232fm2","fb6swo4"],Brsut9c:"f1d6mv4x",By8wz76:"f1nz3ub2",Bcq6wej:"fag2qd2",Jcjdmf:["fmvhcg7","f14bpyus"],sc4o1m:"f1o3dhpw",Bosien3:["f14bpyus","fmvhcg7"],B7iucu3:"fqc85l4",B8gzw0y:"f1h3a8gf",Bbkh6qg:"fkiggi6",F230oe:"f8gmj8i",Bdw8ktp:["f1ap8nzx","fjag8bx"],Bj1xduy:"f1igan7k",Bhh2cfd:["fjag8bx","f1ap8nzx"],Bahaeuw:"f1v3eptx",Bv2bamp:"f1ysmecq",vxuvv6:"faulsx",Bli9q98:["f79t15f","f8qmx7k"],Bx2tt8t:"fbtzoaq",yad0b3:["f8qmx7k","f79t15f"],j2fop7:"fd4bjan"},secondary:{},subtle:{De3pzq:"fhovq9v",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"f1t94bn6",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"fnwyq0v",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",Bbdnnc7:"fy5bs14",Bpjbzib:"f1q1yqic",im15vp:"fhvnf4x",Hjvxdg:["fb6swo4","f232fm2"],Gpfmf1:"f1klyf7k",ustxxc:["f232fm2","fb6swo4"],Brsut9c:"fwga7ee",Bqou3pl:"f1nhwcv0",Bsnehw8:"f1gm6xmp",wsxvnf:"f1xxsver",Bahaeuw:"f1v3eptx",Buhizc3:"fivsta0",j2fop7:"fd4bjan",Bqabnb4:"f3m6zum"},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"fjxutwb",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f139oj5f",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",Bpjbzib:"fkoldzo",im15vp:"fhvnf4x",Hjvxdg:["fb6swo4","f232fm2"],Gpfmf1:"f1klyf7k",ustxxc:["f232fm2","fb6swo4"],Brsut9c:"f1l983o9",Bqou3pl:"f1nhwcv0",Bsnehw8:"f1gm6xmp",Bbkh6qg:"fxoo9op",Bahaeuw:"f1v3eptx",Bv2bamp:"f1i0gk12",j2fop7:"fd4bjan"},circular:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f44lkw9"},rounded:{},square:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f1fabniw"},small:{Bf4jedk:"fh7ncta",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fneth5b",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},smallWithIcon:{Byoj8tv:"f1brlhvm",z8tnut:"f1sl3k7w"},medium:{},large:{Bf4jedk:"f14es27b",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f4db1ww",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},largeWithIcon:{Byoj8tv:"fy7v416",z8tnut:"f1a1bwwz"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",[".f44lkw9{border-radius:var(--borderRadiusCircular);}",{p:-1}],[".f1fabniw{border-radius:var(--borderRadiusNone);}",{p:-1}],".fh7ncta{min-width:64px;}",[".fneth5b{padding:3px var(--spacingHorizontalS);}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1brlhvm{padding-bottom:1px;}",".f1sl3k7w{padding-top:1px;}",".f14es27b{min-width:96px;}",[".f4db1ww{padding:8px var(--spacingHorizontalL);}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fy7v416{padding-bottom:7px;}",".f1a1bwwz{padding-top:7px;}"],h:[".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".fkoldzo:hover:active,.fkoldzo:active:focus-visible{background-color:var(--colorTransparentBackgroundPressed);}",".f15wkkf3:hover{background-color:var(--colorBrandBackgroundHover);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1rq72xc:hover{color:var(--colorNeutralForegroundOnBrand);}",".f1ksv2xa:hover:active,.f1ksv2xa:active:focus-visible{background-color:var(--colorBrandBackgroundPressed);}",".fhvnf4x:hover:active,.fhvnf4x:active:focus-visible{border-top-color:transparent;}",".fb6swo4:hover:active,.fb6swo4:active:focus-visible{border-right-color:transparent;}",".f232fm2:hover:active,.f232fm2:active:focus-visible{border-left-color:transparent;}",".f1klyf7k:hover:active,.f1klyf7k:active:focus-visible{border-bottom-color:transparent;}",".f1d6mv4x:hover:active,.f1d6mv4x:active:focus-visible{color:var(--colorNeutralForegroundOnBrand);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".ft1hn21:hover .fui-Icon-filled{display:inline;}",".fuxngvv:hover .fui-Icon-regular{display:none;}",".fy5bs14:hover .fui-Button__icon{color:var(--colorNeutralForeground2BrandHover);}",".f1q1yqic:hover:active,.f1q1yqic:active:focus-visible{background-color:var(--colorSubtleBackgroundPressed);}",".fwga7ee:hover:active,.fwga7ee:active:focus-visible{color:var(--colorNeutralForeground2Pressed);}",".f1nhwcv0:hover:active .fui-Icon-filled,.f1nhwcv0:active:focus-visible .fui-Icon-filled{display:inline;}",".f1gm6xmp:hover:active .fui-Icon-regular,.f1gm6xmp:active:focus-visible .fui-Icon-regular{display:none;}",".f1xxsver:hover:active .fui-Button__icon,.f1xxsver:active:focus-visible .fui-Button__icon{color:var(--colorNeutralForeground2BrandPressed);}",".f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);}",".f1l983o9:hover:active,.f1l983o9:active:focus-visible{color:var(--colorNeutralForeground2BrandPressed);}"],m:[["@media (forced-colors: active){.f1nz3ub2{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fag2qd2{border-top-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14bpyus{border-left-color:HighlightText;}.fmvhcg7{border-right-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1o3dhpw{border-bottom-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fqc85l4{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1h3a8gf{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkiggi6:hover{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f8gmj8i:hover{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ap8nzx:hover{border-right-color:Highlight;}.fjag8bx:hover{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1igan7k:hover{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1v3eptx:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ysmecq:hover:active,.f1ysmecq:active:focus-visible{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.faulsx:hover:active,.faulsx:active:focus-visible{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f79t15f:hover:active,.f79t15f:active:focus-visible{border-right-color:Highlight;}.f8qmx7k:hover:active,.f8qmx7k:active:focus-visible{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fbtzoaq:hover:active,.fbtzoaq:active:focus-visible{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fd4bjan:hover:active,.fd4bjan:active:focus-visible{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fivsta0:hover .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3m6zum:hover:active .fui-Button__icon,.f3m6zum:active:focus-visible .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fxoo9op:hover{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1i0gk12:hover:active,.f1i0gk12:active:focus-visible{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}]]}),GO=se({base:{De3pzq:"f1bg9a2p",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",Bfinmwp:"f15x8b5r",Jwef8y:"f1falr9n",Bgoe8wy:"f12mpcsy",Bwzppfd:["f1gwvigk","f18rmfxp"],oetu4i:"f1jnshp0",gg5e9n:["f18rmfxp","f1gwvigk"],Bi91k9c:"fvgxktp",eoavqd:"fphbwmw",Bk3fhr4:"f19vpps7",Bmfj8id:"fv5swzo",Bbdnnc7:"f1al02dq",Bpjbzib:"f1jct5ie",im15vp:"f13txml0",Hjvxdg:["f1ncddno","f1axfvow"],Gpfmf1:"f1z04ada",ustxxc:["f1axfvow","f1ncddno"],Brsut9c:"f1uhomfy",Bses4qk:"fy9mucy",Bqou3pl:"f1g9va8i",Bsnehw8:"fwgvudy",wsxvnf:"fom6jww"},highContrast:{By8wz76:"f14ptb23",Bcq6wej:"f9dbb4x",Jcjdmf:["f3qs60o","f5u9ap2"],sc4o1m:"fwd1oij",Bosien3:["f5u9ap2","f3qs60o"],B7iucu3:"f1cyfu5x",Grqk0h:"f127ot8j",h3ptyc:"f19etb0b",Buw724y:["f4f984j","fw441p0"],Buk7464:"f3d22hf",Hwei09:["fw441p0","f4f984j"],Bbkh6qg:"fj8k9ua",F230oe:"fifrq0d",Bdw8ktp:["f196mwp7","fnekfq"],Bj1xduy:"f1l6uprw",Bhh2cfd:["fnekfq","f196mwp7"],Bahaeuw:"fa9u7a5",Buhizc3:"f1m71e0y",Bv2bamp:"fw24f3",vxuvv6:"f1nznrny",Bli9q98:["fq8nxuu","f1ao3jkc"],Bx2tt8t:"ftoixeo",yad0b3:["f1ao3jkc","fq8nxuu"],j2fop7:"fpmuzpx",Bqabnb4:"f168odog"},outline:{De3pzq:"f1c21dwh",Jwef8y:"f9ql6rf",Bpjbzib:"f9r0db0"},primary:{g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],im15vp:"fhvnf4x",Hjvxdg:["fb6swo4","f232fm2"],Gpfmf1:"f1klyf7k",ustxxc:["f232fm2","fb6swo4"]},secondary:{},subtle:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bpjbzib:"f9r0db0",im15vp:"fhvnf4x",Hjvxdg:["fb6swo4","f232fm2"],Gpfmf1:"f1klyf7k",ustxxc:["f232fm2","fb6swo4"]},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bpjbzib:"f9r0db0",im15vp:"fhvnf4x",Hjvxdg:["fb6swo4","f232fm2"],Gpfmf1:"f1klyf7k",ustxxc:["f232fm2","fb6swo4"]}},{d:[".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f15x8b5r .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}"],h:[".f1falr9n:hover{background-color:var(--colorNeutralBackgroundDisabled);}",".f12mpcsy:hover{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1gwvigk:hover{border-right-color:var(--colorNeutralStrokeDisabled);}",".f18rmfxp:hover{border-left-color:var(--colorNeutralStrokeDisabled);}",".f1jnshp0:hover{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".fphbwmw:hover{cursor:not-allowed;}",".f19vpps7:hover .fui-Icon-filled{display:none;}",".fv5swzo:hover .fui-Icon-regular{display:inline;}",".f1al02dq:hover .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1jct5ie:hover:active,.f1jct5ie:active:focus-visible{background-color:var(--colorNeutralBackgroundDisabled);}",".f13txml0:hover:active,.f13txml0:active:focus-visible{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1ncddno:hover:active,.f1ncddno:active:focus-visible{border-right-color:var(--colorNeutralStrokeDisabled);}",".f1axfvow:hover:active,.f1axfvow:active:focus-visible{border-left-color:var(--colorNeutralStrokeDisabled);}",".f1z04ada:hover:active,.f1z04ada:active:focus-visible{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1uhomfy:hover:active,.f1uhomfy:active:focus-visible{color:var(--colorNeutralForegroundDisabled);}",".fy9mucy:hover:active,.fy9mucy:active:focus-visible{cursor:not-allowed;}",".f1g9va8i:hover:active .fui-Icon-filled,.f1g9va8i:active:focus-visible .fui-Icon-filled{display:none;}",".fwgvudy:hover:active .fui-Icon-regular,.fwgvudy:active:focus-visible .fui-Icon-regular{display:inline;}",".fom6jww:hover:active .fui-Button__icon,.fom6jww:active:focus-visible .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}",".f9r0db0:hover:active,.f9r0db0:active:focus-visible{background-color:var(--colorTransparentBackground);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".fhvnf4x:hover:active,.fhvnf4x:active:focus-visible{border-top-color:transparent;}",".fb6swo4:hover:active,.fb6swo4:active:focus-visible{border-right-color:transparent;}",".f232fm2:hover:active,.f232fm2:active:focus-visible{border-left-color:transparent;}",".f1klyf7k:hover:active,.f1klyf7k:active:focus-visible{border-bottom-color:transparent;}"],m:[["@media (forced-colors: active){.f14ptb23{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9dbb4x{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3qs60o{border-right-color:GrayText;}.f5u9ap2{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fwd1oij{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cyfu5x{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f127ot8j .fui-Button__icon{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f19etb0b:focus{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f4f984j:focus{border-right-color:GrayText;}.fw441p0:focus{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3d22hf:focus{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fj8k9ua:hover{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fifrq0d:hover{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f196mwp7:hover{border-right-color:GrayText;}.fnekfq:hover{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1l6uprw:hover{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fa9u7a5:hover{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1m71e0y:hover .fui-Button__icon{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fw24f3:hover:active,.fw24f3:active:focus-visible{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1nznrny:hover:active,.f1nznrny:active:focus-visible{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ao3jkc:hover:active,.f1ao3jkc:active:focus-visible{border-left-color:GrayText;}.fq8nxuu:hover:active,.fq8nxuu:active:focus-visible{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.ftoixeo:hover:active,.ftoixeo:active:focus-visible{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fpmuzpx:hover:active,.fpmuzpx:active:focus-visible{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f168odog:hover:active .fui-Button__icon,.f168odog:active:focus-visible .fui-Button__icon{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),XO=se({circular:{Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"f1062rbf"},rounded:{},square:{Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"fj0ryk1"},primary:{B8q5s1w:"f17t0x8g",Bci5o5g:["f194v5ow","fk7jm04"],n8qw10:"f1qgg65p",Bdrgwmp:["fk7jm04","f194v5ow"],j6ew2k:["fhgccpy","fjo7pq6"],he4mth:"f32wu9k",Byr4aka:"fu5nqqq",lks7q5:["f13prjl2","f1nl83rv"],Bnan3qt:"f1czftr5",k1dn9:["f1nl83rv","f13prjl2"],Bqsb82s:["fixhny3","f18mfu3r"],jg1oma:"feygou5"},small:{Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"fazmxh"},medium:{},large:{Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"f1b6alqh"}},{d:[[".f1062rbf[data-fui-focus-visible]{border-radius:var(--borderRadiusCircular);}",{p:-1}],[".fj0ryk1[data-fui-focus-visible]{border-radius:var(--borderRadiusNone);}",{p:-1}],".f17t0x8g[data-fui-focus-visible]{border-top-color:var(--colorStrokeFocus2);}",".f194v5ow[data-fui-focus-visible]{border-right-color:var(--colorStrokeFocus2);}",".fk7jm04[data-fui-focus-visible]{border-left-color:var(--colorStrokeFocus2);}",".f1qgg65p[data-fui-focus-visible]{border-bottom-color:var(--colorStrokeFocus2);}",".fhgccpy[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}",".fjo7pq6[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}",".f32wu9k[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;}",".fu5nqqq[data-fui-focus-visible]:hover{border-top-color:var(--colorStrokeFocus2);}",".f13prjl2[data-fui-focus-visible]:hover{border-right-color:var(--colorStrokeFocus2);}",".f1nl83rv[data-fui-focus-visible]:hover{border-left-color:var(--colorStrokeFocus2);}",".f1czftr5[data-fui-focus-visible]:hover{border-bottom-color:var(--colorStrokeFocus2);}",[".fazmxh[data-fui-focus-visible]{border-radius:var(--borderRadiusSmall);}",{p:-1}],[".f1b6alqh[data-fui-focus-visible]{border-radius:var(--borderRadiusLarge);}",{p:-1}]],t:["@supports (-moz-appearance:button){.f18mfu3r[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}.fixhny3[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}}","@supports (-moz-appearance:button){.feygou5[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),YO=se({small:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fu97m5z",Bf4jedk:"f17fgpbq",B2u0y6b:"f1jt17bm"},medium:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f18ktai2",Bf4jedk:"fwbmr0d",B2u0y6b:"f44c6la"},large:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1hbd1aw",Bf4jedk:"f12clzc2",B2u0y6b:"fjy1crr"}},{d:[[".fu97m5z{padding:1px;}",{p:-1}],".f17fgpbq{min-width:24px;}",".f1jt17bm{max-width:24px;}",[".f18ktai2{padding:5px;}",{p:-1}],".fwbmr0d{min-width:32px;}",".f44c6la{max-width:32px;}",[".f1hbd1aw{padding:7px;}",{p:-1}],".f12clzc2{min-width:40px;}",".fjy1crr{max-width:40px;}"]}),ZO=se({small:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3",Bqrlyyl:"fbaiahx"},medium:{},large:{Be2twd7:"f1rt2boy",Bqenvij:"frvgh55",a9b677:"fq4mcun",Bqrlyyl:"f1exjqw5"},before:{t21cq0:["f1nizpg2","f1a695kz"]},after:{Frg6f3:["f1a695kz","f1nizpg2"]}},{d:[".fe5j1ua{font-size:20px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".fbaiahx{--fui-Button__icon--spacing:var(--spacingHorizontalXS);}",".f1rt2boy{font-size:24px;}",".frvgh55{height:24px;}",".fq4mcun{width:24px;}",".f1exjqw5{--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}",".f1nizpg2{margin-right:var(--fui-Button__icon--spacing);}",".f1a695kz{margin-left:var(--fui-Button__icon--spacing);}"]}),KO=e=>{"use no memo";const t=WO(),r=VO(),n=UO(),o=GO(),i=XO(),s=YO(),a=ZO(),{appearance:l,disabled:c,disabledFocusable:u,icon:d,iconOnly:p,iconPosition:h,shape:m,size:g}=e;return e.root.className=ne(Xw.root,t,l&&n[l],n[g],d&&g==="small"&&n.smallWithIcon,d&&g==="large"&&n.largeWithIcon,n[m],(c||u)&&o.base,(c||u)&&o.highContrast,l&&(c||u)&&o[l],l==="primary"&&i.primary,i[g],i[m],p&&s[g],e.root.className),e.icon&&(e.icon.className=ne(Xw.icon,r,!!e.root.children&&a[h],a[g],e.icon.className)),e},st=B.forwardRef((e,t)=>{const r=HO(e,t);return KO(r),Le("useButtonStyles_unstable")(r),LO(r)});st.displayName="Button";const FB=B.createContext(void 0),QO=FB.Provider,PB=()=>B.useContext(FB),JO=e=>{var t,r,n,o;const{generatedControlId:i,orientation:s,required:a,size:l,validationState:c}=e,u=(t=e.label)===null||t===void 0?void 0:t.htmlFor,d=(r=e.label)===null||r===void 0?void 0:r.id,p=(n=e.validationMessage)===null||n===void 0?void 0:n.id,h=(o=e.hint)===null||o===void 0?void 0:o.id;return{field:B.useMemo(()=>({generatedControlId:i,hintId:h,labelFor:u,labelId:d,orientation:s,required:a,size:l,validationMessageId:p,validationState:c}),[i,h,u,d,s,a,l,p,c])}};function kl(e,t){return IB(PB(),e,t)}function IB(e,t,r){if(!e)return t;t={...t};const{generatedControlId:n,hintId:o,labelFor:i,labelId:s,required:a,validationMessageId:l,validationState:c}=e;if(n){var u,d;(d=(u=t).id)!==null&&d!==void 0||(u.id=n)}if(s&&(!(r!=null&&r.supportsLabelFor)||i!==t.id)){var p,h,m;(m=(p=t)[h="aria-labelledby"])!==null&&m!==void 0||(p[h]=s)}if((l||o)&&(t["aria-describedby"]=[l,o,t==null?void 0:t["aria-describedby"]].filter(Boolean).join(" ")),c==="error"){var g,y,v;(v=(g=t)[y="aria-invalid"])!==null&&v!==void 0||(g[y]=!0)}if(a)if(r!=null&&r.supportsRequired){var b,x;(x=(b=t).required)!==null&&x!==void 0||(b.required=!0)}else{var k,S,_;(_=(k=t)[S="aria-required"])!==null&&_!==void 0||(k[S]=!0)}if(r!=null&&r.supportsSize){var N,z;(z=(N=t).size)!==null&&z!==void 0||(N.size=e.size)}return t}const eq=(e,t)=>{let{children:r}=e;return typeof r=="function"&&(r=r(IB(t.field)||{})),J(QO,{value:t==null?void 0:t.field,children:rt(e.root,{children:[e.label&&J(e.label,{}),r,e.validationMessage&&rt(e.validationMessage,{children:[e.validationMessageIcon&&J(e.validationMessageIcon,{}),e.validationMessage.children]}),e.hint&&J(e.hint,{})]})})},tq=(e,t)=>{const{disabled:r=!1,required:n=!1,weight:o="regular",size:i="medium"}=e;return{disabled:r,required:qe(n===!0?"*":n||void 0,{defaultProps:{"aria-hidden":"true"},elementType:"span"}),weight:o,size:i,components:{root:"label",required:"span"},root:Ce(Je("label",{ref:t,...e}),{elementType:"label"})}},rq=e=>rt(e.root,{children:[e.root.children,e.required&&J(e.required,{})]}),Yw={root:"fui-Label",required:"fui-Label__required"},nq=se({root:{Bahqtrf:"fk6fouc",sj55zd:"f19n0e5"},disabled:{sj55zd:"f1s2aq7o",B7iucu3:"f1cyfu5x"},required:{sj55zd:"f1whyuy6",uwmqm3:["fruq291","f7x41pl"]},small:{Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm"},medium:{Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi"},large:{Be2twd7:"fod5ikn",Bg96gwp:"faaz57k",Bhrd7zp:"fl43uef"},semibold:{Bhrd7zp:"fl43uef"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1whyuy6{color:var(--colorPaletteRedForeground3);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}"],m:[["@media (forced-colors: active){.f1cyfu5x{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),oq=e=>{"use no memo";const t=nq();return e.root.className=ne(Yw.root,t.root,e.disabled&&t.disabled,t[e.size],e.weight==="semibold"&&t.semibold,e.root.className),e.required&&(e.required.className=ne(Yw.required,t.required,e.disabled&&t.disabled,e.required.className)),e},ii=B.forwardRef((e,t)=>{const r=tq(e,t);return oq(r),Le("useLabelStyles_unstable")(r),rq(r)});ii.displayName="Label";const iq={error:B.createElement(e7,null),warning:B.createElement(NL,null),success:B.createElement(XL,null),none:void 0},sq=(e,t)=>{const{children:r,orientation:n="vertical",required:o=!1,validationState:i=e.validationMessage?"error":"none",size:s="medium"}=e,a=or("field-"),l=a+"__control",c=Ce(Je("div",{...e,ref:t},["children"]),{elementType:"div"}),u=qe(e.label,{defaultProps:{htmlFor:l,id:a+"__label",required:o,size:s},elementType:ii}),d=qe(e.validationMessage,{defaultProps:{id:a+"__validationMessage",role:i==="error"||i==="warning"?"alert":void 0},elementType:"div"}),p=qe(e.hint,{defaultProps:{id:a+"__hint"},elementType:"div"}),h=iq[i],m=qe(e.validationMessageIcon,{renderByDefault:!!h,defaultProps:{children:h},elementType:"span"});return{children:r,generatedControlId:l,orientation:n,required:o,size:s,validationState:i,components:{root:"div",label:ii,validationMessage:"div",validationMessageIcon:"span",hint:"div"},root:c,label:u,validationMessageIcon:m,validationMessage:d,hint:p}},ql={root:"fui-Field",label:"fui-Field__label",validationMessage:"fui-Field__validationMessage",validationMessageIcon:"fui-Field__validationMessageIcon",hint:"fui-Field__hint"},aq=se({base:{mc9l5x:"f13qh94s"},horizontal:{Budl1dq:"f2wwaib",wkccdc:"f1645dqt"},horizontalNoLabel:{uwmqm3:["f15jqgz8","fggqkej"],Budl1dq:"f1c2z91y"}},{d:[".f13qh94s{display:grid;}",".f2wwaib{grid-template-columns:33% 1fr;}",".f1645dqt{grid-template-rows:auto auto auto 1fr;}",".f15jqgz8{padding-left:33%;}",".fggqkej{padding-right:33%;}",".f1c2z91y{grid-template-columns:1fr;}"]}),lq=se({base:{B2u0y6b:"f6nezus",Bxyxcbc:"f1iqmcbn"},vertical:{z8tnut:"fclwglc",Byoj8tv:"fywfov9",jrapky:"fyacil5"},verticalLarge:{z8tnut:"f1sl3k7w",Byoj8tv:"f1brlhvm",jrapky:"f8l5zjj"},horizontal:{z8tnut:"fp2oml8",Byoj8tv:"f1tdddsa",t21cq0:["fkujibs","f199hnxi"],Ijaq50:"f16hsg94",nk6f5a:"f1nzqi2z"},horizontalSmall:{z8tnut:"f1ywm7hm",Byoj8tv:"f14wxoun"},horizontalLarge:{z8tnut:"f1hqyr95",Byoj8tv:"fm4hlj0"}},{d:[".f6nezus{max-width:max-content;}",".f1iqmcbn{max-height:max-content;}",".fclwglc{padding-top:var(--spacingVerticalXXS);}",".fywfov9{padding-bottom:var(--spacingVerticalXXS);}",".fyacil5{margin-bottom:var(--spacingVerticalXXS);}",".f1sl3k7w{padding-top:1px;}",".f1brlhvm{padding-bottom:1px;}",".f8l5zjj{margin-bottom:var(--spacingVerticalXS);}",".fp2oml8{padding-top:var(--spacingVerticalSNudge);}",".f1tdddsa{padding-bottom:var(--spacingVerticalSNudge);}",".fkujibs{margin-right:var(--spacingHorizontalM);}",".f199hnxi{margin-left:var(--spacingHorizontalM);}",".f16hsg94{grid-row-start:1;}",".f1nzqi2z{grid-row-end:-1;}",".f1ywm7hm{padding-top:var(--spacingVerticalXS);}",".f14wxoun{padding-bottom:var(--spacingVerticalXS);}",".f1hqyr95{padding-top:9px;}",".fm4hlj0{padding-bottom:9px;}"]}),cq=Ge("r5c4z9l",null,[".r5c4z9l{margin-top:var(--spacingVerticalXXS);color:var(--colorNeutralForeground3);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase200);}"]),uq=se({error:{sj55zd:"f1hcrxcs"},withIcon:{uwmqm3:["frawy03","fg4c52"]}},{d:[".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",".frawy03{padding-left:calc(12px + var(--spacingHorizontalXS));}",".fg4c52{padding-right:calc(12px + var(--spacingHorizontalXS));}"]}),dq=Ge("ra7h1uk","r1rh6bd7",[".ra7h1uk{display:inline-block;font-size:12px;margin-left:calc(-12px - var(--spacingHorizontalXS));margin-right:var(--spacingHorizontalXS);line-height:0;vertical-align:-1px;}",".r1rh6bd7{display:inline-block;font-size:12px;margin-right:calc(-12px - var(--spacingHorizontalXS));margin-left:var(--spacingHorizontalXS);line-height:0;vertical-align:-1px;}"]),fq=se({error:{sj55zd:"f1hcrxcs"},warning:{sj55zd:"f1k5f75o"},success:{sj55zd:"ffmvakt"}},{d:[".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",".f1k5f75o{color:var(--colorPaletteDarkOrangeForeground1);}",".ffmvakt{color:var(--colorPaletteGreenForeground1);}"]}),hq=e=>{"use no memo";const{validationState:t,size:r}=e,n=e.orientation==="horizontal",o=aq();e.root.className=ne(ql.root,o.base,n&&o.horizontal,n&&!e.label&&o.horizontalNoLabel,e.root.className);const i=lq();e.label&&(e.label.className=ne(ql.label,i.base,n&&i.horizontal,n&&r==="small"&&i.horizontalSmall,n&&r==="large"&&i.horizontalLarge,!n&&i.vertical,!n&&r==="large"&&i.verticalLarge,e.label.className));const s=dq(),a=fq();e.validationMessageIcon&&(e.validationMessageIcon.className=ne(ql.validationMessageIcon,s,t!=="none"&&a[t],e.validationMessageIcon.className));const l=cq(),c=uq();return e.validationMessage&&(e.validationMessage.className=ne(ql.validationMessage,l,t==="error"&&c.error,!!e.validationMessageIcon&&c.withIcon,e.validationMessage.className)),e.hint&&(e.hint.className=ne(ql.hint,l,e.hint.className)),e},Jd=B.forwardRef((e,t)=>{const r=sq(e,t);hq(r),Le("useFieldStyles_unstable")(r);const n=JO(r);return eq(r,n)});Jd.displayName="Field";const pq=(e,t)=>{"use no memo";e=kl(e,{supportsLabelFor:!0,supportsRequired:!0});const{disabled:r=!1,required:n,shape:o="square",size:i="medium",labelPosition:s="after",onChange:a}=e,[l,c]=xn({defaultState:e.defaultChecked,state:e.checked,initialState:!1}),u=Nu({props:e,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","size","onChange"]}),d=l==="mixed",p=or("checkbox-",u.primary.id);let h;d?o==="circular"?h=B.createElement(yL,null):h=i==="large"?B.createElement(JL,null):B.createElement(QL,null):l&&(h=i==="large"?B.createElement(UL,null):B.createElement(nB,null));const m={shape:o,checked:l,disabled:r,size:i,labelPosition:s,components:{root:"span",input:"input",indicator:"div",label:ii},root:Ce(e.root,{defaultProps:{ref:ml(),...u.root},elementType:"span"}),input:Ce(e.input,{defaultProps:{type:"checkbox",id:p,ref:t,checked:l===!0,...u.primary},elementType:"input"}),label:qe(e.label,{defaultProps:{htmlFor:p,disabled:r,required:n,size:"medium"},elementType:ii}),indicator:qe(e.indicator,{renderByDefault:!0,defaultProps:{"aria-hidden":!0,children:h},elementType:"div"})};m.input.onChange=ye(y=>{const v=y.currentTarget.indeterminate?"mixed":y.currentTarget.checked;a==null||a(y,{checked:v}),c(v)});const g=yt(m.input.ref);return m.input.ref=g,nr(()=>{g.current&&(g.current.indeterminate=d)},[g,d]),m},gq=e=>rt(e.root,{children:[J(e.input,{}),e.labelPosition==="before"&&e.label&&J(e.label,{}),e.indicator&&J(e.indicator,{}),e.labelPosition==="after"&&e.label&&J(e.label,{})]}),pd={root:"fui-Checkbox",label:"fui-Checkbox__label",input:"fui-Checkbox__input",indicator:"fui-Checkbox__indicator"},mq=Ge("r1nzur1d","r128arqq",{r:[".r1nzur1d{position:relative;display:inline-flex;cursor:pointer;max-width:fit-content;vertical-align:middle;color:var(--colorNeutralForeground3);}",".r1nzur1d:focus{outline-style:none;}",".r1nzur1d:focus-visible{outline-style:none;}",".r1nzur1d[data-fui-focus-within]:focus-within{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r1nzur1d[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".r128arqq{position:relative;display:inline-flex;cursor:pointer;max-width:fit-content;vertical-align:middle;color:var(--colorNeutralForeground3);}",".r128arqq:focus{outline-style:none;}",".r128arqq:focus-visible{outline-style:none;}",".r128arqq[data-fui-focus-within]:focus-within{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r128arqq[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r1nzur1d[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.r128arqq[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),vq=se({unchecked:{Bi91k9c:"f3p8bqa",pv5h1i:"fium13f",lj723h:"f1r2dosr",Hnthvo:"f1729es6"},checked:{sj55zd:"f19n0e5",wkncrt:"f35ds98",zxk7z7:"f12mnkne",Hmsnfy:"fei9a8h",e6czan:"fix56y3",pv5h1i:"f1bcv2js",qbydtz:"f7dr4go",Hnthvo:"f1r5cpua"},mixed:{sj55zd:"f19n0e5",Hmsnfy:"f1l27tf0",zxk7z7:"fcilktj",pv5h1i:"f1lphd54",Bunfa6h:"f1obkvq7",Hnthvo:"f2gmbuh",B15ykmv:"f1oy4fa1"},disabled:{Bceei9c:"f158kwzp",sj55zd:"f1s2aq7o",Hmsnfy:"f1w7mfl5",zxk7z7:"fcoafq6",B7iucu3:"f1cyfu5x",Bptavk6:"f1lwde8o"}},{h:[".f3p8bqa:hover{color:var(--colorNeutralForeground2);}",".fium13f:hover{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeAccessibleHover);}",".fix56y3:hover{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackgroundHover);}",".f1bcv2js:hover{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackgroundHover);}",".f1lphd54:hover{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStrokeHover);}",".f1obkvq7:hover{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1Hover);}"],a:[".f1r2dosr:active{color:var(--colorNeutralForeground1);}",".f1729es6:active{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeAccessiblePressed);}",".f7dr4go:active{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackgroundPressed);}",".f1r5cpua:active{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackgroundPressed);}",".f2gmbuh:active{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStrokePressed);}",".f1oy4fa1:active{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1Pressed);}"],d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".f35ds98{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackground);}",".f12mnkne{--fui-Checkbox__indicator--color:var(--colorNeutralForegroundInverted);}",".fei9a8h{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackground);}",".f1l27tf0{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStroke);}",".fcilktj{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1);}",".f158kwzp{cursor:default;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1w7mfl5{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeDisabled);}",".fcoafq6{--fui-Checkbox__indicator--color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1cyfu5x{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lwde8o{--fui-Checkbox__indicator--color:GrayText;}}",{m:"(forced-colors: active)"}]]}),yq=Ge("ruo9svu",null,[".ruo9svu{box-sizing:border-box;cursor:inherit;height:100%;margin:0;opacity:0;position:absolute;top:0;width:calc(16px + 2 * var(--spacingHorizontalS));}"]),bq=se({before:{j35jbq:["f1e31b4d","f1vgc2s3"]},after:{oyh7mz:["f1vgc2s3","f1e31b4d"]},large:{a9b677:"f1mq5jt6"}},{d:[".f1e31b4d{right:0;}",".f1vgc2s3{left:0;}",".f1mq5jt6{width:calc(20px + 2 * var(--spacingHorizontalS));}"]}),xq=Ge("rl7ci6d",null,[".rl7ci6d{align-self:flex-start;box-sizing:border-box;flex-shrink:0;display:flex;align-items:center;justify-content:center;overflow:hidden;color:var(--fui-Checkbox__indicator--color);background-color:var(--fui-Checkbox__indicator--backgroundColor);border-color:var(--fui-Checkbox__indicator--borderColor, var(--colorNeutralStrokeAccessible));border-style:solid;border-width:var(--strokeWidthThin);border-radius:var(--borderRadiusSmall);margin:var(--spacingVerticalS) var(--spacingHorizontalS);fill:currentColor;pointer-events:none;font-size:12px;height:16px;width:16px;}"]),wq=se({large:{Be2twd7:"f4ybsrx",Bqenvij:"fjamq6b",a9b677:"f64fuq3"},circular:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f44lkw9"}},{d:[".f4ybsrx{font-size:16px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",[".f44lkw9{border-radius:var(--borderRadiusCircular);}",{p:-1}]]}),kq=se({base:{qb2dma:"f7nlbp4",sj55zd:"f1ym3bx4",Bceei9c:"fpo1scq",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1f5q0n8"},before:{z189sj:["f7x41pl","fruq291"]},after:{uwmqm3:["fruq291","f7x41pl"]},medium:{B6of3ja:"fjzwpt6",jrapky:"fh6j2fo"},large:{B6of3ja:"f1xlvstr",jrapky:"f49ad5g"}},{d:[".f7nlbp4{align-self:center;}",".f1ym3bx4{color:inherit;}",".fpo1scq{cursor:inherit;}",[".f1f5q0n8{padding:var(--spacingVerticalS) var(--spacingHorizontalS);}",{p:-1}],".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".fjzwpt6{margin-top:calc((16px - var(--lineHeightBase300)) / 2);}",".fh6j2fo{margin-bottom:calc((16px - var(--lineHeightBase300)) / 2);}",".f1xlvstr{margin-top:calc((20px - var(--lineHeightBase300)) / 2);}",".f49ad5g{margin-bottom:calc((20px - var(--lineHeightBase300)) / 2);}"]}),Sq=e=>{"use no memo";const{checked:t,disabled:r,labelPosition:n,shape:o,size:i}=e,s=mq(),a=vq();e.root.className=ne(pd.root,s,r?a.disabled:t==="mixed"?a.mixed:t?a.checked:a.unchecked,e.root.className);const l=yq(),c=bq();e.input.className=ne(pd.input,l,i==="large"&&c.large,c[n],e.input.className);const u=xq(),d=wq();e.indicator&&(e.indicator.className=ne(pd.indicator,u,i==="large"&&d.large,o==="circular"&&d.circular,e.indicator.className));const p=kq();return e.label&&(e.label.className=ne(pd.label,p.base,p[i],p[n],e.label.className)),e},ro=B.forwardRef((e,t)=>{const r=pq(e,t);return Sq(r),Le("useCheckboxStyles_unstable")(r),gq(r)});ro.displayName="Checkbox";const MB=bl({activeOption:void 0,appearance:"outline",focusVisible:!1,open:!1,registerOption(){return()=>{}},selectedOptions:[],selectOption(){},setActiveOption(){},setOpen(){},size:"medium"});MB.Provider;const Cq={activeOption:void 0,focusVisible:!1,multiselect:!1,getOptionById(){},getOptionsMatchingValue(){return[]},registerOption(){return()=>{}},selectedOptions:[],onOptionClick(){},onActiveDescendantChange(){},selectOption(){},setActiveOption(){}},Sl=bl(void 0),fn=e=>Ru(Sl,(t=Cq)=>e(t));Sl.Provider;function _q(e){const{appearance:t,open:r,getOptionById:n,getOptionsMatchingValue:o,registerOption:i,selectedOptions:s,selectOption:a,setOpen:l,size:c,activeDescendantController:u,onOptionClick:d,onActiveDescendantChange:p}=e,h={activeOption:void 0,appearance:t,focusVisible:!1,open:r,registerOption:i,selectedOptions:s,selectOption:a,setActiveOption:()=>null,setOpen:l,size:c},m={activeOption:void 0,focusVisible:!1,getOptionById:n,getOptionsMatchingValue:o,registerOption:i,selectedOptions:s,selectOption:a,setActiveOption:()=>null,onOptionClick:d,onActiveDescendantChange:p},g=B.useMemo(()=>({controller:u}),[u]);return{combobox:h,activeDescendant:g,listbox:m}}function Bq(e){const t=Wy(Sl),{getOptionById:r,getOptionsMatchingValue:n,multiselect:o,registerOption:i,selectedOptions:s,selectOption:a,activeDescendantController:l}=e,c=fn(g=>g.registerOption),u=fn(g=>g.onOptionClick),d=fn(g=>g.onActiveDescendantChange),h={activeOption:void 0,focusVisible:!1,getOptionById:r,getOptionsMatchingValue:n,multiselect:o,registerOption:t?c:i,selectedOptions:s,selectOption:a,setActiveOption:()=>{},onOptionClick:u,onActiveDescendantChange:d},m=B.useMemo(()=>({controller:l}),[l]);return{listbox:h,activeDescendant:m}}function s1(e,t={}){const{open:r=!0,multiselect:n=!1}=t,o=e.key,{altKey:i,ctrlKey:s,key:a,metaKey:l}=e;return a.length===1&&o!==Qn&&!i&&!s&&!l?"Type":r?o===zc&&i||o===Mi||!n&&o===Qn?"CloseSelect":n&&o===Qn?"Select":o===Au?"Close":o===Wf?"Next":o===zc?"Previous":o===I5?"First":o===P5?"Last":o===sL?"PageUp":o===iL?"PageDown":o===R5?"Tab":"None":o===Wf||o===zc||o===Mi||o===Qn?"Open":"None"}const DB=()=>{const e=B.useRef(new Map),t=B.useMemo(()=>({getCount:()=>e.current.size,getOptionAtIndex:()=>{},getIndexOfId:()=>-1,getOptionById:c=>e.current.get(c),getOptionsMatchingText:c=>Array.from(e.current.values()).filter(({text:u})=>c(u)),getOptionsMatchingValue:c=>{const u=[];for(const d of e.current.values())c(d.value)&&u.push(d);return u}}),[]),r=B.useCallback(n=>(e.current.set(n.id,n),()=>e.current.delete(n.id)),[]);return{...t,options:Array.from(e.current.values()),registerOption:r}},LB=e=>{const{defaultSelectedOptions:t,multiselect:r,onOptionSelect:n}=e,[o,i]=xn({state:e.selectedOptions,defaultState:t,initialState:[]}),s=B.useCallback((l,c)=>{if(c.disabled)return;let u=[c.value];if(r){const d=o.findIndex(p=>p===c.value);d>-1?u=[...o.slice(0,d),...o.slice(d+1)]:u=[...o,c.value]}i(u),n==null||n(l,{optionValue:c.value,optionText:c.text,selectedOptions:u})},[n,r,o,i]);return{clearSelection:l=>{i([]),n==null||n(l,{optionValue:void 0,optionText:void 0,selectedOptions:[]})},selectOption:s,selectedOptions:o}},Xf={root:"fui-Option",checkIcon:"fui-Option__checkIcon"},Tq=se({root:{Bt984gj:"f122n59",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",sj55zd:"f19n0e5",i8kkvl:"f1ufnopg",Bceei9c:"f1k6fduh",mc9l5x:"f22iagw",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fm5eomj",qhf8xq:"f10pi13n",Jwef8y:"f1knas48",Bi91k9c:"feu1g3u",zqbkvg:"fo79ri9",h82x05:["f1osiabc","f1e8le25"],cqj998:"f1yusjty",j3hlsh:["f1e8le25","f1osiabc"],ecr2s2:"fb40n2d",lj723h:"f1g4hkjv",Btxx2vb:"f1lnr2zp",sltcwy:["f1ogfk9z","f1g7j8ec"],dnwvvm:"fiuf46r",Blyvkvs:["f1g7j8ec","f1ogfk9z"]},active:{Bowz1zl:"f11vrvdw",oxogb1:"f17hxjb7",Ix2sn8:"f1dha69c",q7v32p:"f1lm7500",B7cbj04:0,Bewtojm:0,b50fsz:0,B1wzb3v:0,Bqwk70n:0,B37u8z8:0,avt0cx:0,f0sref:0,B9fkznv:0,Be3o27t:0,Bertapg:0,B53xpsf:0,Bsv72rj:0,B39dzdd:0,Btq9bd3:0,Bqfxd14:0,atup0s:"fo7xqb",Fffuxt:0,Bttcd12:0,Beitzug:0,Bqougee:0,B86i8pi:"f1kurthe",Bhijsxg:"fwq15dy",kktds4:"f1pb3wry",Bmau3bo:["ftjv2f4","f1flhb1f"],npektv:["f1flhb1f","ftjv2f4"]},disabled:{sj55zd:"f1s2aq7o",Jwef8y:"f9ql6rf",Bi91k9c:"fvgxktp",zqbkvg:"f185j3qj",h82x05:["f1dligi3","f1vydzie"],cqj998:"fjw1di3",j3hlsh:["f1vydzie","f1dligi3"],ecr2s2:"fgj9um3",lj723h:"f19wldhg",Btxx2vb:"f1ss0kt2",sltcwy:["f1t6oli3","fjy9ci8"],dnwvvm:"fresaxk",Blyvkvs:["fjy9ci8","f1t6oli3"],B7iucu3:"f1cyfu5x"},selected:{},checkIcon:{Bnnss6s:"fi64zpg",Be2twd7:"fod5ikn",Frg6f3:["f18b9hdq","fn6qj8t"],t21cq0:["f1xk557c","f1h9en5y"],Bcdw1i0:"fd7fpy0",Bo70h7d:"fvc9v3g"},selectedCheck:{Bcdw1i0:"f1022m68"},multiselectCheck:{Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f1l3cf7o",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"fq9zq91",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Bt984gj:"f122n59",Brf1p80:"f4d9j23",Bkfmm31:"f1w9h62z",Be2twd7:"f1ugzwwg",Bqenvij:"fd461yt",a9b677:"fjw5fx7",Bcdw1i0:"f1022m68"},selectedMultiselectCheck:{De3pzq:"ftywsgz",sj55zd:"fqpbvvt",g2u3we:"f3xi7mh",h3c5rm:["ftovhe4","f1wczvin"],B9xav0g:"f68vbr6",zhjwy3:["f1wczvin","ftovhe4"]},checkDisabled:{sj55zd:"f1s2aq7o",B7iucu3:"f1cyfu5x"},multiselectCheckDisabled:{g2u3we:"f1r1t4y1",h3c5rm:["fmj8ijw","figx54m"],B9xav0g:"f360ss8",zhjwy3:["figx54m","fmj8ijw"]}},{d:[".f122n59{align-items:center;}",[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f19n0e5{color:var(--colorNeutralForeground1);}",".f1ufnopg{column-gap:var(--spacingHorizontalXS);}",".f1k6fduh{cursor:pointer;}",".f22iagw{display:flex;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",[".fm5eomj{padding:var(--spacingVerticalSNudge) var(--spacingHorizontalS);}",{p:-1}],".f10pi13n{position:relative;}",'.f11vrvdw[data-activedescendant-focusvisible]::after{content:"";}',".f17hxjb7[data-activedescendant-focusvisible]::after{position:absolute;}",".f1dha69c[data-activedescendant-focusvisible]::after{pointer-events:none;}",".f1lm7500[data-activedescendant-focusvisible]::after{z-index:1;}",[".fo7xqb[data-activedescendant-focusvisible]::after{border:2px solid var(--colorStrokeFocus2);}",{p:-2}],[".f1kurthe[data-activedescendant-focusvisible]::after{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fwq15dy[data-activedescendant-focusvisible]::after{top:-2px;}",".f1pb3wry[data-activedescendant-focusvisible]::after{bottom:-2px;}",".ftjv2f4[data-activedescendant-focusvisible]::after{left:-2px;}",".f1flhb1f[data-activedescendant-focusvisible]::after{right:-2px;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fi64zpg{flex-shrink:0;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".f18b9hdq{margin-left:calc(var(--spacingHorizontalXXS) * -1);}",".fn6qj8t{margin-right:calc(var(--spacingHorizontalXXS) * -1);}",".f1xk557c{margin-right:var(--spacingHorizontalXXS);}",".f1h9en5y{margin-left:var(--spacingHorizontalXXS);}",".fd7fpy0{visibility:hidden;}",".fvc9v3g svg{display:block;}",".f1022m68{visibility:visible;}",[".f1l3cf7o{border:var(--strokeWidthThin) solid var(--colorNeutralStrokeAccessible);}",{p:-2}],[".fq9zq91{border-radius:var(--borderRadiusSmall);}",{p:-1}],".f1ewtqcl{box-sizing:border-box;}",".f4d9j23{justify-content:center;}",".f1w9h62z{fill:currentColor;}",".f1ugzwwg{font-size:12px;}",".fd461yt{height:16px;}",".fjw5fx7{width:16px;}",".ftywsgz{background-color:var(--colorCompoundBrandBackground);}",".fqpbvvt{color:var(--colorNeutralForegroundInverted);}",".f3xi7mh{border-top-color:var(--colorCompoundBrandBackground);}",".ftovhe4{border-right-color:var(--colorCompoundBrandBackground);}",".f1wczvin{border-left-color:var(--colorCompoundBrandBackground);}",".f68vbr6{border-bottom-color:var(--colorCompoundBrandBackground);}",".f1r1t4y1{border-top-color:var(--colorNeutralForegroundDisabled);}",".fmj8ijw{border-right-color:var(--colorNeutralForegroundDisabled);}",".figx54m{border-left-color:var(--colorNeutralForegroundDisabled);}",".f360ss8{border-bottom-color:var(--colorNeutralForegroundDisabled);}"],h:[".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}",".feu1g3u:hover{color:var(--colorNeutralForeground1Hover);}",".fo79ri9:hover .fui-Option__checkIcon{border-top-color:var(--colorNeutralForeground1Hover);}",".f1osiabc:hover .fui-Option__checkIcon{border-right-color:var(--colorNeutralForeground1Hover);}",".f1e8le25:hover .fui-Option__checkIcon{border-left-color:var(--colorNeutralForeground1Hover);}",".f1yusjty:hover .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForeground1Hover);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".f185j3qj:hover .fui-Option__checkIcon{border-top-color:var(--colorNeutralForegroundDisabled);}",".f1dligi3:hover .fui-Option__checkIcon{border-right-color:var(--colorNeutralForegroundDisabled);}",".f1vydzie:hover .fui-Option__checkIcon{border-left-color:var(--colorNeutralForegroundDisabled);}",".fjw1di3:hover .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForegroundDisabled);}"],a:[".fb40n2d:active{background-color:var(--colorNeutralBackground1Pressed);}",".f1g4hkjv:active{color:var(--colorNeutralForeground1Pressed);}",".f1lnr2zp:active .fui-Option__checkIcon{border-top-color:var(--colorNeutralForeground1Hover);}",".f1ogfk9z:active .fui-Option__checkIcon{border-right-color:var(--colorNeutralForeground1Hover);}",".f1g7j8ec:active .fui-Option__checkIcon{border-left-color:var(--colorNeutralForeground1Hover);}",".fiuf46r:active .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForeground1Hover);}",".fgj9um3:active{background-color:var(--colorTransparentBackground);}",".f19wldhg:active{color:var(--colorNeutralForegroundDisabled);}",".f1ss0kt2:active .fui-Option__checkIcon{border-top-color:var(--colorNeutralForegroundDisabled);}",".f1t6oli3:active .fui-Option__checkIcon{border-right-color:var(--colorNeutralForegroundDisabled);}",".fjy9ci8:active .fui-Option__checkIcon{border-left-color:var(--colorNeutralForegroundDisabled);}",".fresaxk:active .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1cyfu5x{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),Nq=e=>{"use no memo";const{disabled:t,multiselect:r,selected:n}=e,o=Tq();return e.root.className=ne(Xf.root,o.root,o.active,t&&o.disabled,n&&o.selected,e.root.className),e.checkIcon&&(e.checkIcon.className=ne(Xf.checkIcon,o.checkIcon,r&&o.multiselectCheck,n&&o.selectedCheck,n&&r&&o.selectedMultiselectCheck,t&&o.checkDisabled,t&&r&&o.multiselectCheckDisabled,e.checkIcon.className)),e},Zw={activeOption:void 0,focusVisible:!1,setActiveOption:()=>null},jq=(e,t)=>{"use no memo";const{multiselect:r,disableAutoFocus:n=!1}=e,o=DB(),{listboxRef:i,activeParentRef:s,controller:a}=$5({matchOption:C=>C.classList.contains(Xf.root)}),l=Wy(Sl),c=fn(C=>C.onActiveDescendantChange),u=fn(C=>C.getOptionById),d=fn(C=>C.getOptionsMatchingValue),p=l?u:o.getOptionById,h=l?d:o.getOptionsMatchingValue,m=B.useMemo(()=>{let C=null;const R=O=>{const D=O;c==null||c(D)};return O=>{if(!O){C==null||C.removeEventListener("activedescendantchange",R);return}C=O,C.addEventListener("activedescendantchange",R)}},[c]),[g,y]=B.useState(!1);S5(y);const v=L5(),b=cL(),x=b?v.controller:a,{clearSelection:k,selectedOptions:S,selectOption:_}=LB(e),N=C=>{const R=s1(C,{open:!0}),O=x.active(),D=O?p(O):null;switch(R){case"First":case"Last":case"Next":case"Previous":case"PageDown":case"PageUp":case"CloseSelect":case"Select":C.preventDefault();break}switch(R){case"Next":D?x.next():x.first();break;case"Previous":D?x.prev():x.first();break;case"PageUp":case"First":x.first();break;case"PageDown":case"Last":x.last();break;case"Select":case"CloseSelect":D&&_(C,D);break}},z=fn(C=>C.selectedOptions),F=fn(C=>C.selectOption),I=l?{selectedOptions:z,selectOption:F,...Zw}:{selectedOptions:S,selectOption:_,...Zw};B.useEffect(()=>{if(!b){if(x.hideFocusVisibleAttributes(),!n)if(!r&&I.selectedOptions.length>0){const C=h(R=>R===I.selectedOptions[0]).pop();C!=null&&C.id&&x.focus(C.id)}else x.first();return()=>{x.blur()}}},[]);const H=B.useCallback(()=>{b||(x.showFocusVisibleAttributes(),g&&x.scrollActiveIntoView())},[x,b,g]),A=B.useCallback(()=>{b||x.hideFocusVisibleAttributes()},[x,b]),P={components:{root:"div"},root:Ce(Je("div",{ref:yt(t,s,i,m),role:r?"menu":"listbox",tabIndex:0,...e}),{elementType:"div"}),standalone:!l,multiselect:r,clearSelection:k,activeDescendantController:x,onActiveDescendantChange:c,...o,...I};return P.root.onKeyDown=ye(wt(P.root.onKeyDown,N)),P.root.onFocus=ye(wt(P.root.onFocus,H)),P.root.onBlur=ye(wt(P.root.onBlur,A)),P},zq=(e,t)=>J(D5,{value:t.activeDescendant,children:J(Sl.Provider,{value:t.listbox,children:J(e.root,{})})}),Eq={root:"fui-Listbox"},Rq=se({root:{De3pzq:"fxugw4r",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62",Bf4jedk:"f3hsy1e",Bmxbyg5:"f5zp4f",Bw0xxkn:0,oeaueh:0,Bpd4iqm:0,Befb4lg:"f1iepc6i",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1t35pdg",Belr9w4:"fiut8dr"}},{d:[".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1ewtqcl{box-sizing:border-box;}",".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",".f3hsy1e{min-width:160px;}",".f5zp4f{overflow-y:auto;}",[".f1iepc6i{outline:1px solid var(--colorTransparentStroke);}",{p:-1}],[".f1t35pdg{padding:var(--spacingHorizontalXS);}",{p:-1}],".fiut8dr{row-gap:var(--spacingHorizontalXXS);}"]}),Aq=e=>{"use no memo";const t=Rq();return e.root.className=ne(Eq.root,t.root,e.root.className),e},a1=B.forwardRef((e,t)=>{const r=jq(e,t),n=Bq(r);return Aq(r),Le("useListboxStyles_unstable")(r),zq(r,n)});a1.displayName="Listbox";function Fq(e,t){if(e!==void 0)return e;let r="",n=!1;return B.Children.forEach(t,o=>{typeof o=="string"?r+=o:n=!0}),n&&console.warn("Provide a `text` prop to Option components when they contain non-string children."),r}const Pq=(e,t)=>{const{children:r,disabled:n,text:o,value:i}=e,s=B.useRef(null),a=Fq(o,r),l=i??a,c=or("fluent-option",e.id),u=B.useMemo(()=>({id:c,disabled:n,text:a,value:l}),[c,n,a,l]),{controller:d}=L5(),p=fn(k=>k.multiselect),h=fn(k=>k.registerOption),m=fn(k=>{const S=k.selectedOptions;return l!==void 0&&S.find(_=>_===l)!==void 0}),g=fn(k=>k.selectOption),y=fn(k=>k.onOptionClick);let v=B.createElement(wL,null);p&&(v=m?B.createElement(nB,null):"");const b=k=>{var S;if(n){k.preventDefault();return}d.focus(c),g(k,u),y(k),(S=e.onClick)===null||S===void 0||S.call(e,k)};B.useEffect(()=>{if(c&&s.current)return h(u,s.current)},[c,u,h]);const x=p?{role:"menuitemcheckbox","aria-checked":m}:{role:"option","aria-selected":m};return{components:{root:"div",checkIcon:"span"},root:Ce(Je("div",{ref:yt(t,s),"aria-disabled":n?"true":void 0,id:c,...x,...e,onClick:b}),{elementType:"div"}),checkIcon:qe(e.checkIcon,{renderByDefault:!0,defaultProps:{"aria-hidden":"true",children:v},elementType:"span"}),disabled:n,multiselect:p,selected:m,focusVisible:!1,active:!1}},Iq=e=>rt(e.root,{children:[e.checkIcon&&J(e.checkIcon,{}),e.root.children]}),Wt=B.forwardRef((e,t)=>{const r=Pq(e,t);return Nq(r),Le("useOptionStyles_unstable")(r),Iq(r)});Wt.displayName="Option";const Mq=e=>{"use no memo";const{appearance:t="outline",disableAutoFocus:r,children:n,clearable:o=!1,editable:i=!1,inlinePopup:s=!1,mountNode:a=void 0,multiselect:l,onOpenChange:c,size:u="medium",activeDescendantController:d,freeform:p=!1,disabled:h=!1,onActiveOptionChange:m=null}=e,g=DB(),{getOptionsMatchingValue:y}=g,{getOptionById:v}=g,b=B.useCallback(()=>{const L=d.active();return L?v(L):void 0},[d,v]),x=b(),k=B.useCallback(L=>{let Y;if(typeof L=="function"){const ee=b();Y=L(ee)}Y?d.focus(Y.id):d.blur()},[d,b]),[S,_]=B.useState(!1),[N,z]=B.useState(!1),F=B.useRef(!1),I=Y_(),[H,A]=xn({state:e.value,initialState:void 0}),{selectedOptions:P,selectOption:C,clearSelection:R}=LB(e),O=B.useCallback((L,Y)=>{Lf.unstable_batchedUpdates(()=>{A(void 0),C(L,Y)})},[A,C]),D=B.useMemo(()=>{if(H!==void 0)return H;if(I&&e.defaultValue!==void 0)return e.defaultValue;const L=y(Y=>P.includes(Y)).map(Y=>Y.text);return l?i?"":L.join(", "):L[0]},[H,i,y,l,P]),[M,$]=xn({state:e.open,defaultState:e.defaultOpen,initialState:!1}),X=B.useCallback((L,Y)=>{h||(c==null||c(L,{open:Y}),Lf.unstable_batchedUpdates(()=>{!Y&&!p&&A(void 0),$(Y)}))},[c,$,A,p,h]);B.useEffect(()=>{if(M){if(!l&&P.length>0){const L=y(Y=>Y===P[0]).pop();L!=null&&L.id&&d.focus(L.id)}}else d.blur()},[M,d]),B.useEffect(()=>{M&&!r&&!d.active()&&d.first()},[M,n,r,d,v]);const V=ye(L=>{const Y=L.detail.previousId?g.getOptionById(L.detail.previousId):null,ee=g.getOptionById(L.detail.id);m==null||m(L,{event:L,type:"change",previousOption:Y,nextOption:ee})});return{...g,freeform:p,disabled:h,selectOption:O,clearSelection:R,selectedOptions:P,activeOption:x,appearance:t,clearable:o,focusVisible:S,ignoreNextBlur:F,inlinePopup:s,mountNode:a,open:M,hasFocus:N,setActiveOption:k,setFocusVisible:_,setHasFocus:z,setOpen:X,setValue:A,size:u,value:D,multiselect:l,onOptionClick:ye(L=>{l||X(L,!1)}),onActiveDescendantChange:V}};function Dq(e){const{positioning:t}=e,n={position:"below",align:"start",offset:{crossAxis:0,mainAxis:2},fallbackPositions:["above","after","after-top","before","before-top"],matchTargetSize:"width",autoSize:!0,...i1(t)},{targetRef:o,containerRef:i}=EB(n);return[i,o]}function Lq(e,t,r){const{state:{multiselect:n},triggerRef:o,defaultProps:i}=r,s=or("fluent-listbox",ep(e)?e.id:void 0),a=qe(e,{renderByDefault:!0,elementType:a1,defaultProps:{id:s,multiselect:n,tabIndex:void 0,...i}}),l=kl({id:s},{supportsLabelFor:!0});a&&!a["aria-label"]&&!a["aria-labelledby"]&&l["aria-labelledby"]&&(a["aria-labelledby"]=l["aria-labelledby"]);const c=ye(wt(p=>{p.preventDefault()},a==null?void 0:a.onMouseDown)),u=ye(wt(p=>{var h;p.preventDefault(),(h=o.current)===null||h===void 0||h.focus()},a==null?void 0:a.onClick)),d=yt(a==null?void 0:a.ref,t);return a&&(a.ref=d,a.onMouseDown=c,a.onClick=u),a}function Oq(e,t,r){const{state:{open:n,setOpen:o,setHasFocus:i},defaultProps:s,elementType:a,activeDescendantController:l}=r,c=Ce(e,{defaultProps:{type:"text","aria-expanded":n,role:"combobox",...typeof s=="object"&&s},elementType:a}),u=B.useRef(null);return c.ref=yt(u,c.ref,t),c.onBlur=wt(d=>{o(d,!1),i(!1)},c.onBlur),c.onFocus=wt(d=>{d.target===d.currentTarget&&i(!0)},c.onFocus),c.onClick=wt(d=>{o(d,!n)},c.onClick),c.onKeyDown=wt(qq({activeDescendantController:l,...r.state}),c.onKeyDown),c}function qq(e){const{activeDescendantController:t,getOptionById:r,setOpen:n,selectOption:o,multiselect:i,open:s}=e,a=B.useCallback(()=>{const g=t.active();return g?r(g):void 0},[t,r]),l=()=>{t.first()},c=()=>{t.last()},u=g=>{g?t.next():t.first()},d=g=>{g?t.prev():t.first()},p=()=>{for(let g=0;g<10;g++)t.prev()},h=()=>{for(let g=0;g<10;g++)t.next()},m=NM();return ye(g=>{const y=s1(g,{open:s,multiselect:i}),v=a();switch(y){case"First":case"Last":case"Next":case"Previous":case"PageDown":case"PageUp":case"Open":case"Close":case"CloseSelect":case"Select":g.preventDefault();break}switch(m(!0),y){case"First":l();break;case"Last":c();break;case"Next":u(v);break;case"Previous":d(v);break;case"PageDown":h();break;case"PageUp":p();break;case"Open":n(g,!0);break;case"Close":g.stopPropagation(),n(g,!1);break;case"CloseSelect":!i&&!(v!=null&&v.disabled)&&n(g,!1);case"Select":v&&o(g,v);break;case"Tab":!i&&v&&o(g,v);break}})}function $q(e,t,r){"use no memo";const{state:{open:n,setOpen:o,getOptionById:i},defaultProps:s,activeDescendantController:a}=r,l=B.useRef(""),[c,u]=Iy(),d=(g,y={startFromNext:!1})=>{const{startFromNext:v}=y,b=a.active(),x=a.find(k=>{const S=i(k);return!!S&&g(S.text)},{startFrom:v?a.next({passive:!0}):b});return x||a.find(k=>{const S=i(k);return!!S&&g(S.text)})},p=()=>{d(g=>g.toLocaleLowerCase().indexOf(l.current)===0,{startFromNext:l.current.length===1})||Hq(l.current)&&d(g=>g.toLocaleLowerCase().indexOf(l.current[0])===0,{startFromNext:!0})||a.blur()},h=g=>{u(),s1(g)==="Type"&&(l.current+=g.key.toLowerCase(),c(()=>{l.current=""},500),n&&p(),!n&&o(g,!0))},m=Oq(e,t,{state:r.state,defaultProps:s,elementType:"button",activeDescendantController:a});return m.onKeyDown=wt(h,m.onKeyDown),m}function Hq(e){for(let t=1;t<e.length;t++)if(e[t]!==e[t-1])return!1;return!0}const Wq=(e,t)=>{"use no memo";var r;e=kl(e,{supportsLabelFor:!0,supportsSize:!0});const{listboxRef:n,activeParentRef:o,controller:i}=$5({matchOption:A=>A.classList.contains(Xf.root)}),s=Mq({...e,activeDescendantController:i,freeform:!1}),{clearable:a,clearSelection:l,disabled:c,hasFocus:u,multiselect:d,open:p,selectedOptions:h,setOpen:m}=s,{primary:g,root:y}=Nu({props:e,primarySlotTagName:"button",excludedPropNames:["children"]}),[v,b]=Dq(e),x=B.useRef(null),k=Lq(e.listbox,yt(v,n),{state:s,triggerRef:x,defaultProps:{children:e.children}}),{targetDocument:S}=mt();lP({element:S,callback:A=>m(A,!1),refs:[x,v,b],disabled:!p});var _;const N=$q((_=e.button)!==null&&_!==void 0?_:{},yt(x,o,t),{state:s,defaultProps:{type:"button",tabIndex:g.disabled?void 0:0,children:s.value||e.placeholder,"aria-controls":p?k==null?void 0:k.id:void 0,...g},activeDescendantController:i}),z=Ce(e.root,{defaultProps:{"aria-owns":!e.inlinePopup&&p?k==null?void 0:k.id:void 0,children:e.children,...y},elementType:"div"});z.ref=yt(z.ref,b);const F=h.length>0&&!c&&a&&!d,I={components:{root:"div",button:"button",clearButton:"button",expandIcon:"span",listbox:a1},root:z,button:N,listbox:p||u?k:void 0,clearButton:qe(e.clearButton,{defaultProps:{"aria-label":"Clear selection",children:B.createElement(Xy,null),tabIndex:F?0:void 0,type:"button"},elementType:"button",renderByDefault:!0}),expandIcon:qe(e.expandIcon,{renderByDefault:!0,defaultProps:{children:B.createElement(U5,null)},elementType:"span"}),placeholderVisible:!s.value&&!!e.placeholder,showClearButton:F,activeDescendantController:i,...s},H=ye(wt((r=I.clearButton)===null||r===void 0?void 0:r.onClick,A=>{var P;l(A),(P=x.current)===null||P===void 0||P.focus()}));return I.clearButton&&(I.clearButton.onClick=H),d&&(I.clearButton=void 0),I},Vq=(e,t)=>J(e.root,{children:J(D5,{value:t.activeDescendant,children:J(Sl.Provider,{value:t.listbox,children:rt(MB.Provider,{value:t.combobox,children:[rt(e.button,{children:[e.button.children,e.expandIcon&&J(e.expandIcon,{})]}),e.clearButton&&J(e.clearButton,{}),e.listbox&&(e.inlinePopup?J(e.listbox,{}):J(Pu,{mountNode:e.mountNode,children:J(e.listbox,{})}))]})})})}),$l={root:"fui-Dropdown",button:"fui-Dropdown__button",clearButton:"fui-Dropdown__clearButton",expandIcon:"fui-Dropdown__expandIcon",listbox:"fui-Dropdown__listbox"},Uq=se({root:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",B7ck84d:"f1ewtqcl",mc9l5x:"ftuwxu6",Bf4jedk:"f1exfvgq",qhf8xq:"f10pi13n",ha4doy:"fmrv4ls",Bbr2w1p:"f14a1fxs",Bduesf4:"f3e99gv",Bpq79vn:"fhljsf7",li1rpt:"f1gw3sf2",Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",Eqx8gd:["f1a7op3","f1cjjd47"],By385i5:"f1gboi2j",B1piin3:["f1cjjd47","f1a7op3"],Dlnsje:"ffyw7fx",d9w3h3:["f1kp91vd","f1ibwz09"],B3778ie:["f1ibwz09","f1kp91vd"],B1q35kw:0,Bw17bha:0,Bcgy8vk:0,Bjuhk93:"f1mnjydx",Gjdm7m:"f13evtba",b1kco5:"f1yk9hq",Ba2ppi3:"fhwpy7i",F2fol1:"f14ee0xe",lck23g:"f1xhbsuh",wi16st:"fsrmcvb",ywj3b2:"f1t3k7v9",umuwi5:"fjw5xc1",Blcqepd:"f1xdyd5c",nplu4u:"fatpbeo",Bioka5o:"fb7uyps",Bnupc0a:"fx04xgm",bing71:"f1c7in40",Bercvud:"f1ibeo51",Br277j9:"f18qfb8s",Btis473:"f1m082s7"},listbox:{B7ck84d:"f1ewtqcl",E5pizo:"f1hg901r",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Bxyxcbc:"fmmk62d"},listboxCollapsed:{mc9l5x:"fjseox"},inlineListbox:{Bj3rh1h:"f19g0ac"},button:{Bt984gj:"f122n59",De3pzq:"f1c21dwh",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f3bhgqh",B7ck84d:"f1ewtqcl",sj55zd:"f19n0e5",i8kkvl:"f14mj54c",Bceei9c:"f1k6fduh",mc9l5x:"f13qh94s",Bahqtrf:"fk6fouc",Budl1dq:"f12nh0o2",Brf1p80:"f1869bpl",fsow6f:["f1o700av","fes3tcz"],a9b677:"fly5x3f",Brovlpu:"ftqa4ok"},placeholder:{sj55zd:"fxc4j92"},small:{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:["fye6m5k","f3cq2dl"]},medium:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:["f14ev680","f58uxzw"]},large:{i8kkvl:"f1rjii52",Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:["f139mn7i","f1v3q0m"]},outline:{De3pzq:"fxugw4r",Bgfg5da:0,B9xav0g:"f1c1zstj",oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"fhz96rm"},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"f1l4zc64",gg5e9n:["f1m52nbi","f1ub3y4t"],B6oc9vd:"fvs00aa",ak43y8:["f1assf6x","f4ruux4"],wmxk5l:"f1z0osm6",B50zh58:["f4ruux4","f1assf6x"],Bvq3b66:"f1b473iu",Brahy3i:["f381qr8","ft4skwv"],zoxjo1:"f1qzcrsd",an54nd:["ft4skwv","f381qr8"]},underline:{De3pzq:"f1c21dwh",B9xav0g:0,oivjwe:0,Bn0qgzm:0,Bgfg5da:"f9ez7ne",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"fokr779"},"filled-lighter":{De3pzq:"fxugw4r",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"fs2rfia"},"filled-darker":{De3pzq:"f16xq7d1",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"fs2rfia"},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},invalidUnderline:{hhx65j:"f1fgmyf4"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bcq6wej:"f9dbb4x",Jcjdmf:["f3qs60o","f5u9ap2"],sc4o1m:"fwd1oij",Bosien3:["f5u9ap2","f3qs60o"]},disabledText:{sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr"},hidden:{mc9l5x:"fjseox"}},{d:[[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f1ewtqcl{box-sizing:border-box;}",".ftuwxu6{display:inline-flex;}",".f1exfvgq{min-width:250px;}",".f10pi13n{position:relative;}",".fmrv4ls{vertical-align:middle;}",".f1gw3sf2::after{box-sizing:border-box;}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1a7op3::after{left:-1px;}",".f1cjjd47::after{right:-1px;}",".f1gboi2j::after{bottom:-1px;}",".ffyw7fx::after{height:max(var(--strokeWidthThick), var(--borderRadiusMedium));}",".f1kp91vd::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1ibwz09::after{border-bottom-right-radius:var(--borderRadiusMedium);}",[".f1mnjydx::after{border-bottom:var(--strokeWidthThick) solid var(--colorCompoundBrandStroke);}",{p:-1}],".f13evtba::after{clip-path:inset(calc(100% - 2px) 0 0 0);}",".f1yk9hq::after{transform:scaleX(0);}",".fhwpy7i::after{transition-property:transform;}",".f14ee0xe::after{transition-duration:var(--durationUltraFast);}",".f1xhbsuh::after{transition-delay:var(--curveAccelerateMid);}",".f1hg901r{box-shadow:var(--shadow16);}",[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fmmk62d{max-height:80vh;}",".fjseox{display:none;}",".f19g0ac{z-index:1;}",".f122n59{align-items:center;}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",[".f3bhgqh{border:none;}",{p:-2}],".f19n0e5{color:var(--colorNeutralForeground1);}",".f14mj54c{column-gap:var(--spacingHorizontalXXS);}",".f1k6fduh{cursor:pointer;}",".f13qh94s{display:grid;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".f12nh0o2{grid-template-columns:[content] 1fr [icon] auto [end];}",".f1869bpl{justify-content:space-between;}",".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".fly5x3f{width:100%;}",".fxc4j92{color:var(--colorNeutralForeground4);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",[".fye6m5k{padding:3px var(--spacingHorizontalSNudge) 3px calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",{p:-1}],[".f3cq2dl{padding:3px calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS)) 3px var(--spacingHorizontalSNudge);}",{p:-1}],".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",[".f14ev680{padding:5px var(--spacingHorizontalMNudge) 5px calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",{p:-1}],[".f58uxzw{padding:5px calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS)) 5px var(--spacingHorizontalMNudge);}",{p:-1}],".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",[".f139mn7i{padding:7px var(--spacingHorizontalM) 7px calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",{p:-1}],[".f1v3q0m{padding:7px calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge)) 7px var(--spacingHorizontalM);}",{p:-1}],".fxugw4r{background-color:var(--colorNeutralBackground1);}",[".fhz96rm{border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);}",{p:-2}],".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",[".f9ez7ne{border-bottom:var(--strokeWidthThin) solid var(--colorNeutralStrokeAccessible);}",{p:-1}],[".fokr779{border-radius:0;}",{p:-1}],[".fs2rfia{border:var(--strokeWidthThin) solid transparent;}",{p:-2}],".f16xq7d1{background-color:var(--colorNeutralBackground3);}",[".fs2rfia{border:var(--strokeWidthThin) solid transparent;}",{p:-2}],".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}",".fdrzuqr{cursor:not-allowed;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}"],w:[".f14a1fxs:focus-within{outline-width:2px;}",".f3e99gv:focus-within{outline-style:solid;}",".fhljsf7:focus-within{outline-color:transparent;}",".fjw5xc1:focus-within::after{transform:scaleX(1);}",".f1xdyd5c:focus-within::after{transition-property:transform;}",".fatpbeo:focus-within::after{transition-duration:var(--durationNormal);}",".fb7uyps:focus-within::after{transition-delay:var(--curveDecelerateMid);}",".f1ibeo51:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".f1b473iu:focus-within{border-top-color:var(--colorNeutralStroke1Pressed);}",".f381qr8:focus-within{border-right-color:var(--colorNeutralStroke1Pressed);}",".ft4skwv:focus-within{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1qzcrsd:focus-within{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"],m:[["@media screen and (prefers-reduced-motion: reduce){.fsrmcvb::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1t3k7v9::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.fx04xgm:focus-within::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1c7in40:focus-within::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media (forced-colors: active){.f9dbb4x{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3qs60o{border-right-color:GrayText;}.f5u9ap2{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fwd1oij{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],t:["@supports selector(:has(*)){.f18qfb8s:has(.fui-Dropdown__clearButton:focus)::after{border-bottom-color:initial;}}","@supports selector(:has(*)){.f1m082s7:has(.fui-Dropdown__clearButton:focus)::after{transform:scaleX(0);}}"],f:[".ftqa4ok:focus{outline-style:none;}"],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".f1l4zc64:hover{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}"],a:[".fvs00aa:active{border-top-color:var(--colorNeutralStroke1Pressed);}",".f1assf6x:active{border-right-color:var(--colorNeutralStroke1Pressed);}",".f4ruux4:active{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1z0osm6:active{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"]}),Gq=se({icon:{B7ck84d:"f1ewtqcl",sj55zd:"fxkbij4",mc9l5x:"ftgm304",Be2twd7:"f1pp30po",Br312pm:"f12w6cgp",Bw0ie65:"f8bv1bt",Bo70h7d:"fvc9v3g"},small:{Be2twd7:"f4ybsrx",Frg6f3:["f1h9en5y","f1xk557c"]},medium:{Be2twd7:"fe5j1ua",Frg6f3:["f1h9en5y","f1xk557c"]},large:{Be2twd7:"f1rt2boy",Frg6f3:["f1t5qyk5","f1ikr372"]},disabled:{sj55zd:"f1s2aq7o"}},{d:[".f1ewtqcl{box-sizing:border-box;}",".fxkbij4{color:var(--colorNeutralStrokeAccessible);}",".ftgm304{display:block;}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f12w6cgp{grid-column-start:icon;}",".f8bv1bt{grid-column-end:end;}",".fvc9v3g svg{display:block;}",".f4ybsrx{font-size:16px;}",".f1h9en5y{margin-left:var(--spacingHorizontalXXS);}",".f1xk557c{margin-right:var(--spacingHorizontalXXS);}",".fe5j1ua{font-size:20px;}",".f1rt2boy{font-size:24px;}",".f1t5qyk5{margin-left:var(--spacingHorizontalSNudge);}",".f1ikr372{margin-right:var(--spacingHorizontalSNudge);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}"]}),Xq=Ge("rticfuj","r1vp6jef",{r:[".rticfuj{align-self:center;background-color:var(--colorTransparentBackground);border:none;cursor:pointer;height:fit-content;margin:0;margin-right:var(--spacingHorizontalMNudge);padding:0;position:relative;}",".rticfuj:focus{outline-style:none;}",".rticfuj:focus-visible{outline-style:none;}",".rticfuj[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.rticfuj[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".r1vp6jef{align-self:center;background-color:var(--colorTransparentBackground);border:none;cursor:pointer;height:fit-content;margin:0;margin-left:var(--spacingHorizontalMNudge);padding:0;position:relative;}",".r1vp6jef:focus{outline-style:none;}",".r1vp6jef:focus-visible{outline-style:none;}",".r1vp6jef[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r1vp6jef[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.rticfuj[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.r1vp6jef[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),Yq=e=>{"use no memo";const{appearance:t,open:r,placeholderVisible:n,showClearButton:o,size:i}=e,s=`${e.button["aria-invalid"]}`=="true",a=e.button.disabled,l=Uq(),c=Gq(),u=Xq();return e.root.className=ne($l.root,l.root,l[t],!a&&t==="outline"&&l.outlineInteractive,s&&t!=="underline"&&l.invalid,s&&t==="underline"&&l.invalidUnderline,a&&l.disabled,e.root.className),e.button.className=ne($l.button,l.button,l[i],n&&l.placeholder,a&&l.disabledText,e.button.className),e.listbox&&(e.listbox.className=ne($l.listbox,l.listbox,e.inlinePopup&&l.inlineListbox,!r&&l.listboxCollapsed,e.listbox.className)),e.expandIcon&&(e.expandIcon.className=ne($l.expandIcon,c.icon,c[i],a&&c.disabled,o&&l.hidden,e.expandIcon.className)),e.clearButton&&(e.clearButton.className=ne($l.clearButton,u,c.icon,c[i],a&&c.disabled,!o&&l.hidden,e.clearButton.className)),e},Zo=B.forwardRef((e,t)=>{const r=Wq(e,t),n=_q(r);return Yq(r),Le("useDropdownStyles_unstable")(r),Vq(r,n)});Zo.displayName="Dropdown";const Zq=e=>J(e.root,{children:e.root.children!==void 0&&J(e.wrapper,{children:e.root.children})}),Kq=(e,t)=>{const{alignContent:r="center",appearance:n="default",inset:o=!1,...i}=e,s=Qq(i,t);return{alignContent:r,appearance:n,inset:o,...s}},Qq=(e,t)=>{const{vertical:r=!1,wrapper:n,...o}=e,i=or("divider-");return{vertical:r,components:{root:"div",wrapper:"div"},root:Ce({role:"separator","aria-orientation":r?"vertical":"horizontal","aria-labelledby":e.children?i:void 0,ref:t,...o},{elementType:"div"}),wrapper:Ce(n,{defaultProps:{id:i,children:e.children},elementType:"div"})}},Kw={root:"fui-Divider",wrapper:"fui-Divider__wrapper"},Jq=se({base:{Bt984gj:"f122n59",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Beiy3e4:"f1063pyq",Bh6795r:"fqerorx",qhf8xq:"f10pi13n",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",fsow6f:"f17mccla",Bcvre1j:"fyl8oag",Br0sdwz:"f16vkdww",Bn78ew0:"fhsnbul",li1rpt:"f1gw3sf2",ap17g6:"f1ly5f7u",B771hl4:"f1s3tz6t"},childless:{susq4k:"f1kyqvp9",Bicfajf:["fzynn9s","f1z0ukd1"],jwcpgy:["fekrn8e","ftdg338"],B4rk6o:"fesgyo"},start:{Bsft5z2:"f13zj6fq"},center:{Ftih45:"f1wl9k8s",Bsft5z2:"f13zj6fq"},end:{Ftih45:"f1wl9k8s"},brand:{sj55zd:"f16muhyy",Bq4z7u6:"fcbuu2a",Bk5zm6e:["f1wdw2dr","f1ttio3w"],Bqjgrrk:"f1582fpk",Bm6vgfq:["f1ttio3w","f1wdw2dr"],B0n5ga8:"f1ahrvm8",s924m2:["f1cd3wbc","f17hbk9y"],B1q35kw:"fvrapl0",Gp14am:["f17hbk9y","f1cd3wbc"]},default:{sj55zd:"fkfq4zb",Bq4z7u6:"f1vccso1",Bk5zm6e:["f1geml7w","fjml6kk"],Bqjgrrk:"f1r7kh1m",Bm6vgfq:["fjml6kk","f1geml7w"],B0n5ga8:"f16j7guv",s924m2:["fx01ahm","fj1a37q"],B1q35kw:"fl8d8yv",Gp14am:["fj1a37q","fx01ahm"]},subtle:{sj55zd:"f11d4kpn",Bq4z7u6:"f5g06un",Bk5zm6e:["f13sxdku","f1n015lb"],Bqjgrrk:"f1x6bl8t",Bm6vgfq:["f1n015lb","f13sxdku"],B0n5ga8:"fvod1wy",s924m2:["fwslg65","flk0e17"],B1q35kw:"f103fvts",Gp14am:["flk0e17","fwslg65"]},strong:{sj55zd:"f19n0e5",Bq4z7u6:"f10tv6oz",Bk5zm6e:["f16xp3sf","f1seuxxq"],Bqjgrrk:"fwrmqbx",Bm6vgfq:["f1seuxxq","f16xp3sf"],B0n5ga8:"ft83z1f",s924m2:["f1g4150c","f192dr6e"],B1q35kw:"f1qnawh6",Gp14am:["f192dr6e","f1g4150c"]}},{d:[".f122n59{align-items:center;}",".f1ewtqcl{box-sizing:border-box;}",".f22iagw{display:flex;}",".f1063pyq{flex-direction:row;}",".fqerorx{flex-grow:1;}",".f10pi13n{position:relative;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f17mccla{text-align:center;}",".fyl8oag::before{box-sizing:border-box;}",".f16vkdww::before{display:flex;}",".fhsnbul::before{flex-grow:1;}",".f1gw3sf2::after{box-sizing:border-box;}",".f1ly5f7u::after{display:flex;}",".f1s3tz6t::after{flex-grow:1;}",".f1kyqvp9::before{margin-bottom:0;}",".fzynn9s::before{margin-right:0;}",".f1z0ukd1::before{margin-left:0;}",".fekrn8e::after{margin-left:0;}",".ftdg338::after{margin-right:0;}",".fesgyo::after{margin-top:0;}",'.f13zj6fq::after{content:"";}','.f1wl9k8s::before{content:"";}',".f16muhyy{color:var(--colorBrandForeground1);}",".fcbuu2a::before{border-top-color:var(--colorBrandStroke1);}",".f1wdw2dr::before{border-right-color:var(--colorBrandStroke1);}",".f1ttio3w::before{border-left-color:var(--colorBrandStroke1);}",".f1582fpk::before{border-bottom-color:var(--colorBrandStroke1);}",".f1ahrvm8::after{border-top-color:var(--colorBrandStroke1);}",".f1cd3wbc::after{border-right-color:var(--colorBrandStroke1);}",".f17hbk9y::after{border-left-color:var(--colorBrandStroke1);}",".fvrapl0::after{border-bottom-color:var(--colorBrandStroke1);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f1vccso1::before{border-top-color:var(--colorNeutralStroke2);}",".f1geml7w::before{border-right-color:var(--colorNeutralStroke2);}",".fjml6kk::before{border-left-color:var(--colorNeutralStroke2);}",".f1r7kh1m::before{border-bottom-color:var(--colorNeutralStroke2);}",".f16j7guv::after{border-top-color:var(--colorNeutralStroke2);}",".fx01ahm::after{border-right-color:var(--colorNeutralStroke2);}",".fj1a37q::after{border-left-color:var(--colorNeutralStroke2);}",".fl8d8yv::after{border-bottom-color:var(--colorNeutralStroke2);}",".f11d4kpn{color:var(--colorNeutralForeground3);}",".f5g06un::before{border-top-color:var(--colorNeutralStroke3);}",".f13sxdku::before{border-right-color:var(--colorNeutralStroke3);}",".f1n015lb::before{border-left-color:var(--colorNeutralStroke3);}",".f1x6bl8t::before{border-bottom-color:var(--colorNeutralStroke3);}",".fvod1wy::after{border-top-color:var(--colorNeutralStroke3);}",".fwslg65::after{border-right-color:var(--colorNeutralStroke3);}",".flk0e17::after{border-left-color:var(--colorNeutralStroke3);}",".f103fvts::after{border-bottom-color:var(--colorNeutralStroke3);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f10tv6oz::before{border-top-color:var(--colorNeutralStroke1);}",".f16xp3sf::before{border-right-color:var(--colorNeutralStroke1);}",".f1seuxxq::before{border-left-color:var(--colorNeutralStroke1);}",".fwrmqbx::before{border-bottom-color:var(--colorNeutralStroke1);}",".ft83z1f::after{border-top-color:var(--colorNeutralStroke1);}",".f1g4150c::after{border-right-color:var(--colorNeutralStroke1);}",".f192dr6e::after{border-left-color:var(--colorNeutralStroke1);}",".f1qnawh6::after{border-bottom-color:var(--colorNeutralStroke1);}"]}),e$=se({base:{a9b677:"fly5x3f",Bdkvgpv:"f163fonl",B0qfbqy:"f51yk4v",pbipgd:"f13rof3u",Bm2nyyq:"f8rth92",xrcqlc:"f6czdpx",i5u598:"f1iyka9k"},inset:{uwmqm3:["fjlbh76","f11qrl6u"],z189sj:["f11qrl6u","fjlbh76"]},start:{fsow6f:["f1o700av","fes3tcz"],Ftih45:"f1wl9k8s",Bicfajf:["f1ojjlep","fk1kexq"],Bxwl2t9:"f1he2m4d",jwcpgy:["f12w1bnb","f1558wlj"]},center:{fsow6f:"f17mccla",Bicfajf:["f1ojjlep","fk1kexq"],jwcpgy:["f12w1bnb","f1558wlj"]},end:{fsow6f:["fes3tcz","f1o700av"],Bicfajf:["f1ojjlep","fk1kexq"],Bsft5z2:"f13zj6fq",jwcpgy:["f12w1bnb","f1558wlj"],Iy66sp:"f1ayce8x"}},{d:[".fly5x3f{width:100%;}",".f163fonl::before{border-top-style:solid;}",".f51yk4v::before{border-top-width:var(--strokeWidthThin);}",".f13rof3u::before{min-width:8px;}",".f8rth92::after{border-top-style:solid;}",".f6czdpx::after{border-top-width:var(--strokeWidthThin);}",".f1iyka9k::after{min-width:8px;}",".fjlbh76{padding-left:12px;}",".f11qrl6u{padding-right:12px;}",".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",'.f1wl9k8s::before{content:"";}',".f1ojjlep::before{margin-right:12px;}",".fk1kexq::before{margin-left:12px;}",".f1he2m4d::before{max-width:8px;}",".f12w1bnb::after{margin-left:12px;}",".f1558wlj::after{margin-right:12px;}",".f17mccla{text-align:center;}",'.f13zj6fq::after{content:"";}',".f1ayce8x::after{max-width:8px;}"]}),t$=se({base:{Beiy3e4:"f1vx9l62",sshi5w:"f16gbxbe",m598lv:["f1yq6w5o","f1jpmc5p"],B4f6apu:["f9sc749","f1x8pvcy"],zkzzav:"fhkwbjy",Barhvk9:["flthirb","ftkbnf5"],Ihftqj:["f13hvwk3","f1en4csx"],Bde111x:"f19onpk6"},inset:{B6of3ja:"f1xdg43u",jrapky:"f1jlhsmd"},withChildren:{sshi5w:"f1tjaq3g"},start:{Ftih45:"f1wl9k8s",susq4k:"fg2pwug",Bbdr6tz:"fkjtzyi",B4rk6o:"f8vk40g"},center:{susq4k:"fg2pwug",B4rk6o:"f8vk40g"},end:{susq4k:"fg2pwug",Bsft5z2:"f13zj6fq",B4rk6o:"f8vk40g",gn64ia:"fqg5mu5"}},{d:[".f1vx9l62{flex-direction:column;}",".f16gbxbe{min-height:20px;}",".f1yq6w5o::before{border-right-style:solid;}",".f1jpmc5p::before{border-left-style:solid;}",".f9sc749::before{border-right-width:var(--strokeWidthThin);}",".f1x8pvcy::before{border-left-width:var(--strokeWidthThin);}",".fhkwbjy::before{min-height:8px;}",".flthirb::after{border-right-style:solid;}",".ftkbnf5::after{border-left-style:solid;}",".f13hvwk3::after{border-right-width:var(--strokeWidthThin);}",".f1en4csx::after{border-left-width:var(--strokeWidthThin);}",".f19onpk6::after{min-height:8px;}",".f1xdg43u{margin-top:12px;}",".f1jlhsmd{margin-bottom:12px;}",".f1tjaq3g{min-height:84px;}",'.f1wl9k8s::before{content:"";}',".fg2pwug::before{margin-bottom:12px;}",".fkjtzyi::before{max-height:8px;}",".f8vk40g::after{margin-top:12px;}",'.f13zj6fq::after{content:"";}',".fqg5mu5::after{max-height:8px;}"]}),r$=e=>{"use no memo";const t=Jq(),r=e$(),n=t$(),{alignContent:o,appearance:i,inset:s,vertical:a}=e;return e.root.className=ne(Kw.root,t.base,t[o],i&&t[i],!a&&r.base,!a&&s&&r.inset,!a&&r[o],a&&n.base,a&&s&&n.inset,a&&n[o],a&&e.root.children!==void 0&&n.withChildren,e.root.children===void 0&&t.childless,e.root.className),e.wrapper&&(e.wrapper.className=ne(Kw.wrapper,e.wrapper.className)),e},$s=B.forwardRef((e,t)=>{const r=Kq(e,t);return r$(r),Le("useDividerStyles_unstable")(r),Zq(r)});$s.displayName="Divider";const n$=(e,t)=>{e=kl(e,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const r=Fy();var n;const{size:o="medium",appearance:i=(n=r.inputDefaultAppearance)!==null&&n!==void 0?n:"outline",onChange:s}=e,[a,l]=xn({state:e.value,defaultState:e.defaultValue,initialState:""}),c=Nu({props:e,primarySlotTagName:"input",excludedPropNames:["size","onChange","value","defaultValue"]}),u={size:o,appearance:i,components:{root:"span",input:"input",contentBefore:"span",contentAfter:"span"},input:Ce(e.input,{defaultProps:{type:"text",ref:t,...c.primary},elementType:"input"}),contentAfter:qe(e.contentAfter,{elementType:"span"}),contentBefore:qe(e.contentBefore,{elementType:"span"}),root:Ce(e.root,{defaultProps:c.root,elementType:"span"})};return u.input.value=a,u.input.onChange=ye(d=>{const p=d.target.value;s==null||s(d,{value:p}),l(p)}),u},gd={root:"fui-Input",input:"fui-Input__input",contentBefore:"fui-Input__contentBefore",contentAfter:"fui-Input__contentAfter"},o$=Ge("r1oeeo9n","r9sxh5",{r:[".r1oeeo9n{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;vertical-align:middle;min-height:32px;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}",'.r1oeeo9n::after{box-sizing:border-box;content:"";position:absolute;left:-1px;bottom:-1px;right:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".r1oeeo9n:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".r1oeeo9n:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".r1oeeo9n:focus-within{outline:2px solid transparent;}",".r9sxh5{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;vertical-align:middle;min-height:32px;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}",'.r9sxh5::after{box-sizing:border-box;content:"";position:absolute;right:-1px;bottom:-1px;left:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".r9sxh5:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".r9sxh5:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".r9sxh5:focus-within{outline:2px solid transparent;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1oeeo9n::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r1oeeo9n:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r9sxh5::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r9sxh5:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}"]}),i$=se({small:{sshi5w:"f1pha7fy",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},medium:{},large:{sshi5w:"f1w5jphr",Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",i8kkvl:0,Belr9w4:0,rmohyg:"f1eyhf9v"},outline:{},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"f1l4zc64",gg5e9n:["f1m52nbi","f1ub3y4t"],Drbcw7:"f8vnjqi",udz0bu:["fz1etlk","f1hc16gm"],Be8ivqh:"f1klwx88",ofdepl:["f1hc16gm","fz1etlk"]},underline:{De3pzq:"f1c21dwh",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"fokr779",icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],wvpqe5:["f1deefiw","f1n71otn"],Eqx8gd:["f1n6gb5g","f15yvnhg"],B1piin3:["f15yvnhg","f1n6gb5g"]},underlineInteractive:{oetu4i:"f1l4zc64",Be8ivqh:"f1klwx88",d9w3h3:0,B3778ie:0,B4j8arr:0,Bl18szs:0,Blrzh8d:"f2ale1x"},filled:{g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},filledInteractive:{q7v0qe:"ftmjh5b",kmh5ft:["f17blpuu","fsrcdbj"],nagaa4:"f1tpwn32",B1yhkcb:["fsrcdbj","f17blpuu"]},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},"filled-darker":{De3pzq:"f16xq7d1"},"filled-lighter":{De3pzq:"fxugw4r"},"filled-darker-shadow":{De3pzq:"f16xq7d1",E5pizo:"fyed02w"},"filled-lighter-shadow":{De3pzq:"fxugw4r",E5pizo:"fyed02w"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bcq6wej:"f9dbb4x",Jcjdmf:["f3qs60o","f5u9ap2"],sc4o1m:"fwd1oij",Bosien3:["f5u9ap2","f3qs60o"],Bsft5z2:"fhr9occ",Bduesf4:"f99w1ws"},smallWithContentBefore:{uwmqm3:["fk8j09s","fdw0yi8"]},smallWithContentAfter:{z189sj:["fdw0yi8","fk8j09s"]},mediumWithContentBefore:{uwmqm3:["f1ng84yb","f11gcy0p"]},mediumWithContentAfter:{z189sj:["f11gcy0p","f1ng84yb"]},largeWithContentBefore:{uwmqm3:["f1uw59to","fw5db7e"]},largeWithContentAfter:{z189sj:["fw5db7e","f1uw59to"]}},{d:[".f1pha7fy{min-height:24px;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1w5jphr{min-height:40px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",[".f1eyhf9v{gap:var(--spacingHorizontalSNudge);}",{p:-1}],".f1c21dwh{background-color:var(--colorTransparentBackground);}",[".fokr779{border-radius:0;}",{p:-1}],".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",[".f2ale1x::after{border-radius:0;}",{p:-1}],".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}",".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".fyed02w{box-shadow:var(--shadow2);}",".fdrzuqr{cursor:not-allowed;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fhr9occ::after{content:unset;}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fw5db7e{padding-right:var(--spacingHorizontalM);}"],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".f1l4zc64:hover{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}",".ftmjh5b:hover,.ftmjh5b:focus-within{border-top-color:var(--colorTransparentStrokeInteractive);}",".f17blpuu:hover,.f17blpuu:focus-within{border-right-color:var(--colorTransparentStrokeInteractive);}",".fsrcdbj:hover,.fsrcdbj:focus-within{border-left-color:var(--colorTransparentStrokeInteractive);}",".f1tpwn32:hover,.f1tpwn32:focus-within{border-bottom-color:var(--colorTransparentStrokeInteractive);}"],a:[".f8vnjqi:active,.f8vnjqi:focus-within{border-top-color:var(--colorNeutralStroke1Pressed);}",".fz1etlk:active,.fz1etlk:focus-within{border-right-color:var(--colorNeutralStroke1Pressed);}",".f1hc16gm:active,.f1hc16gm:focus-within{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1klwx88:active,.f1klwx88:focus-within{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"],m:[["@media (forced-colors: active){.f9dbb4x{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3qs60o{border-right-color:GrayText;}.f5u9ap2{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fwd1oij{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],w:[".f99w1ws:focus-within{outline-style:none;}"]}),s$=Ge("r12stul0",null,[".r12stul0{align-self:stretch;box-sizing:border-box;flex-grow:1;min-width:0;border-style:none;padding:0 var(--spacingHorizontalM);color:var(--colorNeutralForeground1);background-color:transparent;outline-style:none;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;}",".r12stul0::-webkit-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".r12stul0::-moz-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".r12stul0::placeholder{color:var(--colorNeutralForeground4);opacity:1;}"]),a$=se({small:{uwmqm3:["f1f5gg8d","f1vdfbxk"],z189sj:["f1vdfbxk","f1f5gg8d"]},medium:{},large:{uwmqm3:["fnphzt9","flt1dlf"],z189sj:["flt1dlf","fnphzt9"]},smallWithContentBefore:{uwmqm3:["fgiv446","ffczdla"]},smallWithContentAfter:{z189sj:["ffczdla","fgiv446"]},mediumWithContentBefore:{uwmqm3:["fgiv446","ffczdla"]},mediumWithContentAfter:{z189sj:["ffczdla","fgiv446"]},largeWithContentBefore:{uwmqm3:["fk8j09s","fdw0yi8"]},largeWithContentAfter:{z189sj:["fdw0yi8","fk8j09s"]},disabled:{sj55zd:"f1s2aq7o",De3pzq:"f1c21dwh",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"}},{d:[".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".fnphzt9{padding-left:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".flt1dlf{padding-right:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fdrzuqr{cursor:not-allowed;}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}"]}),l$=Ge("r1572tok",null,[".r1572tok{box-sizing:border-box;color:var(--colorNeutralForeground3);display:flex;}",".r1572tok>svg{font-size:20px;}"]),c$=se({disabled:{sj55zd:"f1s2aq7o"},small:{Duoase:"f3qv9w"},medium:{},large:{Duoase:"f16u2scb"}},{d:[".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f3qv9w>svg{font-size:16px;}",".f16u2scb>svg{font-size:24px;}"]}),u$=e=>{"use no memo";const{size:t,appearance:r}=e,n=e.input.disabled,o=`${e.input["aria-invalid"]}`=="true",i=r.startsWith("filled"),s=i$(),a=a$(),l=c$();e.root.className=ne(gd.root,o$(),s[t],e.contentBefore&&s[`${t}WithContentBefore`],e.contentAfter&&s[`${t}WithContentAfter`],s[r],!n&&r==="outline"&&s.outlineInteractive,!n&&r==="underline"&&s.underlineInteractive,!n&&i&&s.filledInteractive,i&&s.filled,!n&&o&&s.invalid,n&&s.disabled,e.root.className),e.input.className=ne(gd.input,s$(),a[t],e.contentBefore&&a[`${t}WithContentBefore`],e.contentAfter&&a[`${t}WithContentAfter`],n&&a.disabled,e.input.className);const c=[l$(),n&&l.disabled,l[t]];return e.contentBefore&&(e.contentBefore.className=ne(gd.contentBefore,...c,e.contentBefore.className)),e.contentAfter&&(e.contentAfter.className=ne(gd.contentAfter,...c,e.contentAfter.className)),e},d$=e=>{const{disabled:t,disabledFocusable:r}=e,{onClick:n,onKeyDown:o,role:i,tabIndex:s}=e.root;return e.root.as==="a"&&(e.root.href=t?void 0:e.root.href,(t||r)&&(e.root.role=i||"link")),(e.root.as==="a"||e.root.as==="span")&&(e.root.tabIndex=s??(t&&!r?void 0:0)),e.root.onClick=a=>{t||r?a.preventDefault():n==null||n(a)},e.root.onKeyDown=a=>{const l=a.key===Mi||a.key===Qn;(t||r)&&l?(a.preventDefault(),a.stopPropagation()):(o==null||o(a),e.root.as==="span"&&e.root.onClick&&!o&&l&&(a.preventDefault(),a.currentTarget.click()))},e.disabled=t||r,e.root["aria-disabled"]=t||r||void 0,e.root.as==="button"&&(e.root.disabled=t&&!r),e},OB=B.createContext(void 0),f$={inline:!1},h$=OB.Provider,p$=()=>{var e;return(e=B.useContext(OB))!==null&&e!==void 0?e:f$},g$=(e,t)=>{const r=H_(),{inline:n}=p$(),{appearance:o="default",disabled:i=!1,disabledFocusable:s=!1,inline:a=!1}=e,l=e.as||(e.href?"a":"button"),c={role:l==="span"?"button":void 0,type:l==="button"?"button":void 0,...e,as:l},u={appearance:o,disabled:i,disabledFocusable:s,inline:a??!!n,components:{root:l},root:Ce(Je(l,{ref:t,...c}),{elementType:l}),backgroundAppearance:r};return d$(u),u},m$={root:"fui-Link"},v$=se({focusIndicator:{Bttzg6e:"fhgqx19",B3uz8dt:"f1olyrje",B6ihwck:"f1p93eir",g9k6zt:"f1nev41a"},root:{B486eqv:"f2hkw1w",De3pzq:"f3rmtva",B7ck84d:"f1ewtqcl",sj55zd:"fyind8e",Bceei9c:"f1k6fduh",mc9l5x:"f1w7gpdv",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"f1s184ao",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1mk8lai",B68tc82:0,Bmxbyg5:0,Bpg54ce:"fnbmjn9",fsow6f:["f1o700av","fes3tcz"],w71qe1:"f1iuv45f",Bkioxbp:"f1cmlufx",ygn44y:"f9n3di6",famaaq:"f1ids18y",Bde5pd6:"f1tx3yz7",Bi91k9c:"f1deo86v",i089h6:"f1eh06m1",lj723h:"f1iescvh"},button:{icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],oivjwe:"f1h8hb77",wvpqe5:["f1deefiw","f1n71otn"]},href:{Be2twd7:"fjoy568"},subtle:{sj55zd:"f2yjg6r",Bde5pd6:"f1tx3yz7",Bi91k9c:"fj1cjhr",i089h6:"f1eh06m1",lj723h:"fhucn0c"},inline:{w71qe1:"f13mvf36"},disabled:{w71qe1:"f1iuv45f",sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",Bde5pd6:"fbnuktb",Bi91k9c:"fvgxktp",i089h6:"fljg2da",lj723h:"f19wldhg"},inverted:{sj55zd:"f1qz2gb0",Bi91k9c:"f1ujg2k6",lj723h:"f1ebemlp"},brand:{sj55zd:"f179xftw",Bi91k9c:"f1sk1dtk",lj723h:"f182g21t"}},{d:[".fhgqx19[data-fui-focus-visible]{text-decoration-color:var(--colorStrokeFocus2);}",".f1olyrje[data-fui-focus-visible]{text-decoration-line:underline;}",".f1p93eir[data-fui-focus-visible]{text-decoration-style:double;}",".f1nev41a[data-fui-focus-visible]{outline-style:none;}",".f3rmtva{background-color:transparent;}",".f1ewtqcl{box-sizing:border-box;}",".fyind8e{color:var(--colorBrandForegroundLink);}",".f1k6fduh{cursor:pointer;}",".f1w7gpdv{display:inline;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",[".f1s184ao{margin:0;}",{p:-1}],[".f1mk8lai{padding:0;}",{p:-1}],[".fnbmjn9{overflow:inherit;}",{p:-1}],".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".f1iuv45f{text-decoration-line:none;}",".f1cmlufx{text-decoration-thickness:var(--strokeWidthThin);}",".f9n3di6{text-overflow:inherit;}",".f1ids18y{-webkit-user-select:text;-moz-user-select:text;user-select:text;}",".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1h8hb77{border-bottom-style:none;}",".fjoy568{font-size:inherit;}",".f2yjg6r{color:var(--colorNeutralForeground2Link);}",".f13mvf36{text-decoration-line:underline;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f1qz2gb0{color:var(--colorBrandForegroundInverted);}",".f179xftw{color:var(--colorNeutralForegroundInvertedLink);}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"],h:[".f1tx3yz7:hover{text-decoration-line:underline;}",".f1deo86v:hover{color:var(--colorBrandForegroundLinkHover);}",".fj1cjhr:hover{color:var(--colorNeutralForeground2LinkHover);}",".fbnuktb:hover{text-decoration-line:none;}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".f1ujg2k6:hover{color:var(--colorBrandForegroundInverted);}",".f1sk1dtk:hover{color:var(--colorNeutralForegroundInvertedLinkHover);}"],a:[".f1eh06m1:active{text-decoration-line:underline;}",".f1iescvh:active{color:var(--colorBrandForegroundLinkPressed);}",".fhucn0c:active{color:var(--colorNeutralForeground2LinkPressed);}",".fljg2da:active{text-decoration-line:none;}",".f19wldhg:active{color:var(--colorNeutralForegroundDisabled);}",".f1ebemlp:active{color:var(--colorBrandForegroundInverted);}",".f182g21t:active{color:var(--colorNeutralForegroundInvertedLinkPressed);}"]}),y$=e=>{"use no memo";const t=v$(),{appearance:r,disabled:n,inline:o,root:i,backgroundAppearance:s}=e;return e.root.className=ne(m$.root,t.root,t.focusIndicator,i.as==="a"&&i.href&&t.href,i.as==="button"&&t.button,r==="subtle"&&t.subtle,s==="inverted"&&t.inverted,s==="brand"&&t.brand,o&&t.inline,n&&t.disabled,e.root.className),e},b$=e=>J(e.root,{}),_0=B.forwardRef((e,t)=>{const r=g$(e,t);return y$(r),Le("useLinkStyles_unstable")(r),b$(r)});_0.displayName="Link";const l1=B.createContext(void 0),x$={};l1.Provider;const w$=()=>B.useContext(l1)||x$,k$=(e,t)=>J(l1.Provider,{value:t.radioGroup,children:J(e.root,{})}),S$=(e,t)=>{e=kl(e);const r=or("radiogroup-"),{name:n=r,value:o,defaultValue:i,disabled:s,layout:a="vertical",onChange:l,required:c}=e;return{layout:a,name:n,value:o,defaultValue:i,disabled:s,required:c,components:{root:"div"},root:{ref:t,role:"radiogroup",...Ce(Je("div",e,["onChange","name"]),{elementType:"div"}),onChange:ye(u=>{l&&Et(u.target,{constructorName:"HTMLInputElement"})&&u.target.type==="radio"&&l(u,{value:u.target.value})})}}},C$={root:"fui-RadioGroup"},_$=se({root:{mc9l5x:"f22iagw",Bt984gj:"f6jr5hl"},vertical:{Beiy3e4:"f1vx9l62"}},{d:[".f22iagw{display:flex;}",".f6jr5hl{align-items:flex-start;}",".f1vx9l62{flex-direction:column;}"]}),B$=e=>{"use no memo";const t=_$();return e.root.className=ne(C$.root,t.root,e.layout==="vertical"&&t.vertical,e.root.className),e},T$=e=>{const{name:t,value:r,defaultValue:n,disabled:o,layout:i,required:s}=e,a=e.root["aria-describedby"];return{radioGroup:B.useMemo(()=>({name:t,value:r,defaultValue:n,disabled:o,layout:i,required:s,"aria-describedby":a}),[t,r,n,o,i,s,a])}},B0=B.forwardRef((e,t)=>{const r=S$(e,t),n=T$(r);return B$(r),Le("useRadioGroupStyles_unstable")(r),k$(r,n)});B0.displayName="RadioGroup";const N$=e=>rt(e.root,{children:[J(e.input,{}),J(e.indicator,{}),e.label&&J(e.label,{})]}),j$=(e,t)=>{const r=w$(),{name:n=r.name,checked:o=r.value!==void 0?r.value===e.value:void 0,defaultChecked:i=r.defaultValue!==void 0?r.defaultValue===e.value:void 0,labelPosition:s=r.layout==="horizontal-stacked"?"below":"after",disabled:a=r.disabled,required:l=r.required,"aria-describedby":c=r["aria-describedby"],onChange:u}=e,d=Nu({props:e,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","onChange"]}),p=Ce(e.root,{defaultProps:{ref:ml(),...d.root},elementType:"span"}),h=Ce(e.input,{defaultProps:{ref:t,type:"radio",id:or("radio-",d.primary.id),name:n,checked:o,defaultChecked:i,disabled:a,required:l,"aria-describedby":c,...d.primary},elementType:"input"});h.onChange=wt(h.onChange,y=>u==null?void 0:u(y,{value:y.currentTarget.value}));const m=qe(e.label,{defaultProps:{htmlFor:h.id,disabled:h.disabled},elementType:ii}),g=Ce(e.indicator,{defaultProps:{"aria-hidden":!0},elementType:"div"});return{labelPosition:s,components:{root:"span",input:"input",label:ii,indicator:"div"},root:p,input:h,label:m,indicator:g}},md={root:"fui-Radio",indicator:"fui-Radio__indicator",input:"fui-Radio__input",label:"fui-Radio__label"},z$=Ge("r1siqwd8","rmnplyc",{r:[".r1siqwd8{display:inline-flex;position:relative;}",".r1siqwd8:focus{outline-style:none;}",".r1siqwd8:focus-visible{outline-style:none;}",".r1siqwd8[data-fui-focus-within]:focus-within{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r1siqwd8[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".rmnplyc{display:inline-flex;position:relative;}",".rmnplyc:focus{outline-style:none;}",".rmnplyc:focus-visible{outline-style:none;}",".rmnplyc[data-fui-focus-within]:focus-within{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rmnplyc[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r1siqwd8[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.rmnplyc[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),E$=se({vertical:{Beiy3e4:"f1vx9l62",Bt984gj:"f122n59"}},{d:[".f1vx9l62{flex-direction:column;}",".f122n59{align-items:center;}"]}),R$=Ge("rg1upok","rzwdzb4",{r:[".rg1upok{position:absolute;left:0;top:0;width:calc(16px + 2 * var(--spacingHorizontalS));height:100%;box-sizing:border-box;margin:0;opacity:0;}",".rg1upok:enabled{cursor:pointer;}",".rg1upok:enabled~.fui-Radio__label{cursor:pointer;}",".rg1upok:enabled:not(:checked)~.fui-Radio__label{color:var(--colorNeutralForeground3);}",".rg1upok:enabled:not(:checked)~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessible);}",".rg1upok:enabled:not(:checked):hover~.fui-Radio__label{color:var(--colorNeutralForeground2);}",".rg1upok:enabled:not(:checked):hover~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessibleHover);}",".rg1upok:enabled:not(:checked):hover:active~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".rg1upok:enabled:not(:checked):hover:active~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessiblePressed);}",".rg1upok:enabled:checked~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".rg1upok:enabled:checked~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStroke);color:var(--colorCompoundBrandForeground1);}",".rg1upok:enabled:checked:hover~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokeHover);color:var(--colorCompoundBrandForeground1Hover);}",".rg1upok:enabled:checked:hover:active~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokePressed);color:var(--colorCompoundBrandForeground1Pressed);}",".rg1upok:disabled~.fui-Radio__label{color:var(--colorNeutralForegroundDisabled);cursor:default;}",".rg1upok:disabled~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeDisabled);color:var(--colorNeutralForegroundDisabled);}",".rzwdzb4{position:absolute;right:0;top:0;width:calc(16px + 2 * var(--spacingHorizontalS));height:100%;box-sizing:border-box;margin:0;opacity:0;}",".rzwdzb4:enabled{cursor:pointer;}",".rzwdzb4:enabled~.fui-Radio__label{cursor:pointer;}",".rzwdzb4:enabled:not(:checked)~.fui-Radio__label{color:var(--colorNeutralForeground3);}",".rzwdzb4:enabled:not(:checked)~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessible);}",".rzwdzb4:enabled:not(:checked):hover~.fui-Radio__label{color:var(--colorNeutralForeground2);}",".rzwdzb4:enabled:not(:checked):hover~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessibleHover);}",".rzwdzb4:enabled:not(:checked):hover:active~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".rzwdzb4:enabled:not(:checked):hover:active~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessiblePressed);}",".rzwdzb4:enabled:checked~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".rzwdzb4:enabled:checked~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStroke);color:var(--colorCompoundBrandForeground1);}",".rzwdzb4:enabled:checked:hover~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokeHover);color:var(--colorCompoundBrandForeground1Hover);}",".rzwdzb4:enabled:checked:hover:active~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokePressed);color:var(--colorCompoundBrandForeground1Pressed);}",".rzwdzb4:disabled~.fui-Radio__label{color:var(--colorNeutralForegroundDisabled);cursor:default;}",".rzwdzb4:disabled~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeDisabled);color:var(--colorNeutralForegroundDisabled);}"],s:["@media (forced-colors: active){.rg1upok:enabled:not(:checked)~.fui-Radio__indicator{border-color:ButtonBorder;}}","@media (forced-colors: active){.rg1upok:enabled:checked~.fui-Radio__indicator{border-color:Highlight;color:Highlight;}.rg1upok:enabled:checked~.fui-Radio__indicator::after{background-color:Highlight;}}","@media (forced-colors: active){.rg1upok:disabled~.fui-Radio__label{color:GrayText;}}","@media (forced-colors: active){.rg1upok:disabled~.fui-Radio__indicator{border-color:GrayText;color:GrayText;}.rg1upok:disabled~.fui-Radio__indicator::after{background-color:GrayText;}}","@media (forced-colors: active){.rzwdzb4:enabled:not(:checked)~.fui-Radio__indicator{border-color:ButtonBorder;}}","@media (forced-colors: active){.rzwdzb4:enabled:checked~.fui-Radio__indicator{border-color:Highlight;color:Highlight;}.rzwdzb4:enabled:checked~.fui-Radio__indicator::after{background-color:Highlight;}}","@media (forced-colors: active){.rzwdzb4:disabled~.fui-Radio__label{color:GrayText;}}","@media (forced-colors: active){.rzwdzb4:disabled~.fui-Radio__indicator{border-color:GrayText;color:GrayText;}.rzwdzb4:disabled~.fui-Radio__indicator::after{background-color:GrayText;}}"]}),A$=se({below:{a9b677:"fly5x3f",Bqenvij:"f1je6zif"},defaultIndicator:{Blbys7f:"f9ma1gx"},customIndicator:{Bj53wkj:"f12zxao0"}},{d:[".fly5x3f{width:100%;}",".f1je6zif{height:calc(16px + 2 * var(--spacingVerticalS));}",'.f9ma1gx:checked~.fui-Radio__indicator::after{content:"";}',".f12zxao0:not(:checked)~.fui-Radio__indicator>*{opacity:0;}"]}),F$=Ge("rwtekvw",null,[".rwtekvw{position:relative;width:16px;height:16px;font-size:12px;box-sizing:border-box;flex-shrink:0;display:flex;align-items:center;justify-content:center;overflow:hidden;border:var(--strokeWidthThin) solid;border-radius:var(--borderRadiusCircular);margin:var(--spacingVerticalS) var(--spacingHorizontalS);fill:currentColor;pointer-events:none;}",".rwtekvw::after{position:absolute;width:16px;height:16px;border-radius:var(--borderRadiusCircular);transform:scale(0.625);background-color:currentColor;}"]),P$=se({base:{qb2dma:"f7nlbp4",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1f5q0n8"},after:{uwmqm3:["fruq291","f7x41pl"],B6of3ja:"fjzwpt6",jrapky:"fh6j2fo"},below:{z8tnut:"f1ywm7hm",fsow6f:"f17mccla"}},{d:[".f7nlbp4{align-self:center;}",[".f1f5q0n8{padding:var(--spacingVerticalS) var(--spacingHorizontalS);}",{p:-1}],".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fjzwpt6{margin-top:calc((16px - var(--lineHeightBase300)) / 2);}",".fh6j2fo{margin-bottom:calc((16px - var(--lineHeightBase300)) / 2);}",".f1ywm7hm{padding-top:var(--spacingVerticalXS);}",".f17mccla{text-align:center;}"]}),I$=e=>{"use no memo";const{labelPosition:t}=e,r=z$(),n=E$();e.root.className=ne(md.root,r,t==="below"&&n.vertical,e.root.className);const o=R$(),i=A$();e.input.className=ne(md.input,o,t==="below"&&i.below,e.indicator.children?i.customIndicator:i.defaultIndicator,e.input.className);const s=F$();e.indicator.className=ne(md.indicator,s,e.indicator.className);const a=P$();return e.label&&(e.label.className=ne(md.label,a.base,a[t],e.label.className)),e},ps=B.forwardRef((e,t)=>{const r=j$(e,t);return I$(r),Le("useRadioStyles_unstable")(r),N$(r)});ps.displayName="Radio";const M$=(e,t)=>{e=kl(e,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const r=Fy();var n;const{defaultValue:o,value:i,select:s,icon:a,root:l,appearance:c=(n=r.inputDefaultAppearance)!==null&&n!==void 0?n:"outline",onChange:u,size:d="medium"}=e,p=Nu({props:e,primarySlotTagName:"select",excludedPropNames:["appearance","defaultValue","onChange","size","value"]}),h={size:d,appearance:c,components:{root:"span",select:"select",icon:"span"},select:Ce(s,{defaultProps:{defaultValue:o,value:i,ref:t,...p.primary},elementType:"select"}),icon:qe(a,{renderByDefault:!0,defaultProps:{children:B.createElement(U5,null)},elementType:"span"}),root:Ce(l,{defaultProps:p.root,elementType:"span"})};return h.select.onChange=ye(m=>{u==null||u(m,{value:m.target.value})}),h},D$=e=>rt(e.root,{children:[J(e.select,{children:e.select.children}),e.icon&&J(e.icon,{})]}),Pg={root:"fui-Select",select:"fui-Select__select",icon:"fui-Select__icon"},L$=se({base:{Bt984gj:"f122n59",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Eh141a:"flvyvdh",Bahqtrf:"fk6fouc",qhf8xq:"f10pi13n",h62rwi:"f7ll8cq",d9w3h3:0,B3778ie:0,B4j8arr:0,Bl18szs:0,Blrzh8d:"fe5s0lv",li1rpt:"f1gw3sf2",Bsft5z2:"f13zj6fq",Dlnsje:"fhwjr99",E3zdtr:"f1mdlcz9",By385i5:"fo72kxq",Eqx8gd:["f1n6gb5g","f15yvnhg"],B1piin3:["f15yvnhg","f1n6gb5g"],b1kco5:"f1yk9hq",Ba2ppi3:"fhwpy7i",F2fol1:"f14ee0xe",lck23g:"f1xhbsuh",wi16st:"fsrmcvb",ywj3b2:"f1t3k7v9",umuwi5:"fjw5xc1",Blcqepd:"f1xdyd5c",nplu4u:"fatpbeo",Bioka5o:"fb7uyps",Bnupc0a:"fx04xgm",bing71:"f1c7in40"}},{d:[".f122n59{align-items:center;}",".f1ewtqcl{box-sizing:border-box;}",".f22iagw{display:flex;}",".flvyvdh{flex-wrap:nowrap;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".f10pi13n{position:relative;}",`.f7ll8cq::after{background-image:linear-gradient(
100
+ 0deg,
101
+ var(--colorCompoundBrandStroke) 0%,
102
+ var(--colorCompoundBrandStroke) 50%,
103
+ transparent 50%,
104
+ transparent 100%
105
+ );}`,[".fe5s0lv::after{border-radius:0 0 var(--borderRadiusMedium) var(--borderRadiusMedium);}",{p:-1}],".f1gw3sf2::after{box-sizing:border-box;}",'.f13zj6fq::after{content:"";}',".fhwjr99::after{height:var(--borderRadiusMedium);}",".f1mdlcz9::after{position:absolute;}",".fo72kxq::after{bottom:0;}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",".f1yk9hq::after{transform:scaleX(0);}",".fhwpy7i::after{transition-property:transform;}",".f14ee0xe::after{transition-duration:var(--durationUltraFast);}",".f1xhbsuh::after{transition-delay:var(--curveAccelerateMid);}"],m:[["@media screen and (prefers-reduced-motion: reduce){.fsrmcvb::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1t3k7v9::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.fx04xgm:focus-within::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1c7in40:focus-within::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]],w:[".fjw5xc1:focus-within::after{transform:scaleX(1);}",".f1xdyd5c:focus-within::after{transition-property:transform;}",".fatpbeo:focus-within::after{transition-duration:var(--durationNormal);}",".fb7uyps:focus-within::after{transition-delay:var(--curveDecelerateMid);}"]}),O$=se({base:{Bowrso0:"fqrijq1",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"faev5xe",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",E5pizo:"f1couhl3",B7ck84d:"f1ewtqcl",sj55zd:"f19n0e5",Bceei9c:"f1k6fduh",Bh6795r:"fqerorx",B2u0y6b:"f6dzj5z",Byoj8tv:"f1qch9an",z8tnut:"f1g0x7ka",B3aqqti:"fatbyko",Brovlpu:"f1grzc83",Bxa1mx5:"f19shzzi"},disabled:{De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",Bcq6wej:"f9dbb4x",Jcjdmf:["f3qs60o","f5u9ap2"],sc4o1m:"fwd1oij",Bosien3:["f5u9ap2","f3qs60o"]},disabledUnderline:{g2u3we:"fgig46g",h3c5rm:["f1mxt3zg","fziff3p"],B9xav0g:"f4ikngz",zhjwy3:["fziff3p","f1mxt3zg"]},small:{Bqenvij:"frvgh55",uwmqm3:["f1xile11","fqznh8f"],z189sj:["fiqd4sw","f11fkzut"],Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},medium:{Bqenvij:"f1d2rq10",uwmqm3:["f1e60jzv","f135dnwl"],z189sj:["f154vowv","flqamny"],Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},large:{Bqenvij:"fbhnoac",uwmqm3:["fnphzt9","flt1dlf"],z189sj:["f1xi5ia2","f1xi1l47"],Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k"},outline:{De3pzq:"fxugw4r",Bgfg5da:0,B9xav0g:"f1c1zstj",oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"fm9niy"},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"flmw63s",gg5e9n:["f1m52nbi","f1ub3y4t"],B6oc9vd:"fvs00aa",ak43y8:["f1assf6x","f4ruux4"],wmxk5l:"fqhmt4z",B50zh58:["f4ruux4","f1assf6x"]},underline:{De3pzq:"f1c21dwh",B9xav0g:0,oivjwe:0,Bn0qgzm:0,Bgfg5da:"fd91s9p",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"fokr779",C8i20h:"fb77jct"},"filled-lighter":{De3pzq:"fxugw4r"},"filled-darker":{De3pzq:"f16xq7d1"},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},invalidUnderline:{hhx65j:"f1fgmyf4"}},{d:[".fqrijq1{-webkit-appearance:none;-moz-appearance:none;appearance:none;}",[".faev5xe{border:1px solid transparent;}",{p:-2}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f1couhl3{box-shadow:none;}",".f1ewtqcl{box-sizing:border-box;}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1k6fduh{cursor:pointer;}",".fqerorx{flex-grow:1;}",".f6dzj5z{max-width:100%;}",".f1qch9an{padding-bottom:0;}",".f1g0x7ka{padding-top:0;}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".fgig46g{border-top-color:var(--colorTransparentStrokeDisabled);}",".f1mxt3zg{border-right-color:var(--colorTransparentStrokeDisabled);}",".fziff3p{border-left-color:var(--colorTransparentStrokeDisabled);}",".frvgh55{height:24px;}",".f1xile11{padding-left:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".fqznh8f{padding-right:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",`.fiqd4sw{padding-right:calc(var(--spacingHorizontalSNudge)
106
+ + 16px
107
+ + var(--spacingHorizontalXXS)
108
+ + var(--spacingHorizontalXXS));}`,`.f11fkzut{padding-left:calc(var(--spacingHorizontalSNudge)
109
+ + 16px
110
+ + var(--spacingHorizontalXXS)
111
+ + var(--spacingHorizontalXXS));}`,".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1d2rq10{height:32px;}",".f1e60jzv{padding-left:calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",".f135dnwl{padding-right:calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",`.f154vowv{padding-right:calc(var(--spacingHorizontalMNudge)
112
+ + 20px
113
+ + var(--spacingHorizontalXXS)
114
+ + var(--spacingHorizontalXXS));}`,`.flqamny{padding-left:calc(var(--spacingHorizontalMNudge)
115
+ + 20px
116
+ + var(--spacingHorizontalXXS)
117
+ + var(--spacingHorizontalXXS));}`,".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fbhnoac{height:40px;}",".fnphzt9{padding-left:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".flt1dlf{padding-right:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",`.f1xi5ia2{padding-right:calc(var(--spacingHorizontalM)
118
+ + 24px
119
+ + var(--spacingHorizontalSNudge)
120
+ + var(--spacingHorizontalSNudge));}`,`.f1xi1l47{padding-left:calc(var(--spacingHorizontalM)
121
+ + 24px
122
+ + var(--spacingHorizontalSNudge)
123
+ + var(--spacingHorizontalSNudge));}`,".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",[".fm9niy{border:1px solid var(--colorNeutralStroke1);}",{p:-2}],".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",[".fd91s9p{border-bottom:1px solid var(--colorNeutralStrokeAccessible);}",{p:-1}],[".fokr779{border-radius:0;}",{p:-1}],".fb77jct option{background-color:var(--colorNeutralBackground1);}",".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}"],f:[".fatbyko:focus{outline-width:2px;}",".f1grzc83:focus{outline-style:solid;}",".f19shzzi:focus{outline-color:transparent;}"],m:[["@media (forced-colors: active){.f9dbb4x{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3qs60o{border-right-color:GrayText;}.f5u9ap2{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fwd1oij{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".flmw63s:hover{border-bottom-color:var(--colorNeutralStrokeAccessible);}"],a:[".fvs00aa:active{border-top-color:var(--colorNeutralStroke1Pressed);}",".f1assf6x:active{border-right-color:var(--colorNeutralStroke1Pressed);}",".f4ruux4:active{border-left-color:var(--colorNeutralStroke1Pressed);}",".fqhmt4z:active{border-bottom-color:var(--colorNeutralStrokeAccessible);}"]}),q$=se({icon:{B7ck84d:"f1ewtqcl",sj55zd:"fxkbij4",mc9l5x:"ftgm304",qhf8xq:"f1euv43f",Bkecrkj:"f1aehjj5",Bo70h7d:"fvc9v3g"},disabled:{sj55zd:"f1s2aq7o",B7iucu3:"f1cyfu5x"},small:{Be2twd7:"f4ybsrx",Bqenvij:"fd461yt",j35jbq:["f13lnp83","f1i5nn0v"],a9b677:"fjw5fx7"},medium:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",j35jbq:["fnyteob","f1enpzzf"],a9b677:"f64fuq3"},large:{Be2twd7:"f1rt2boy",Bqenvij:"frvgh55",j35jbq:["f8b87gs","fedtrts"],a9b677:"fq4mcun"}},{d:[".f1ewtqcl{box-sizing:border-box;}",".fxkbij4{color:var(--colorNeutralStrokeAccessible);}",".ftgm304{display:block;}",".f1euv43f{position:absolute;}",".f1aehjj5{pointer-events:none;}",".fvc9v3g svg{display:block;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f4ybsrx{font-size:16px;}",".fd461yt{height:16px;}",".f13lnp83{right:var(--spacingHorizontalSNudge);}",".f1i5nn0v{left:var(--spacingHorizontalSNudge);}",".fjw5fx7{width:16px;}",".fe5j1ua{font-size:20px;}",".fjamq6b{height:20px;}",".fnyteob{right:var(--spacingHorizontalMNudge);}",".f1enpzzf{left:var(--spacingHorizontalMNudge);}",".f64fuq3{width:20px;}",".f1rt2boy{font-size:24px;}",".frvgh55{height:24px;}",".f8b87gs{right:var(--spacingHorizontalM);}",".fedtrts{left:var(--spacingHorizontalM);}",".fq4mcun{width:24px;}"],m:[["@media (forced-colors: active){.f1cyfu5x{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),$$=e=>{"use no memo";const{size:t,appearance:r}=e,n=e.select.disabled,o=`${e.select["aria-invalid"]}`=="true",i=q$(),s=L$(),a=O$();return e.root.className=ne(Pg.root,s.base,e.root.className),e.select.className=ne(Pg.select,a.base,a[t],a[r],!n&&r==="outline"&&a.outlineInteractive,!n&&o&&r!=="underline"&&a.invalid,!n&&o&&r==="underline"&&a.invalidUnderline,n&&a.disabled,n&&r==="underline"&&a.disabledUnderline,e.select.className),e.icon&&(e.icon.className=ne(Pg.icon,i.icon,n&&i.disabled,i[t],e.icon.className)),e},qB=B.forwardRef((e,t)=>{const r=M$(e,t);return $$(r),Le("useSelectStyles_unstable")(r),D$(r)});qB.displayName="Select";const $B=B.createContext(void 0),H$={};$B.Provider;const W$=()=>{var e;return(e=B.useContext($B))!==null&&e!==void 0?e:H$},V$=(e,t)=>{const{size:r}=W$(),{appearance:n="primary",labelPosition:o="after",size:i=r??"medium",delay:s=0}=e,a=or("spinner"),{role:l="progressbar",...c}=e,u=Ce(Je("div",{ref:t,role:l,...c},["size"]),{elementType:"div"}),[d,p]=B.useState(!1),[h,m]=Iy();B.useEffect(()=>{if(!(s<=0))return h(()=>{p(!0)},s),()=>{m()}},[h,m,s]);const g=qe(e.label,{defaultProps:{id:a},renderByDefault:!1,elementType:ii}),y=qe(e.spinner,{renderByDefault:!0,elementType:"span"});return g&&u&&!u["aria-labelledby"]&&(u["aria-labelledby"]=g.id),{appearance:n,delay:s,labelPosition:o,size:i,shouldRenderSpinner:!s||d,components:{root:"div",spinner:"span",spinnerTail:"span",label:ii},root:u,spinner:y,spinnerTail:Ce(e.spinnerTail,{elementType:"span"}),label:g}},U$=e=>{const{labelPosition:t,shouldRenderSpinner:r}=e;return rt(e.root,{children:[e.label&&r&&(t==="above"||t==="before")&&J(e.label,{}),e.spinner&&r&&J(e.spinner,{children:e.spinnerTail&&J(e.spinnerTail,{})}),e.label&&r&&(t==="below"||t==="after")&&J(e.label,{})]})},vd={root:"fui-Spinner",spinner:"fui-Spinner__spinner",spinnerTail:"fui-Spinner__spinnerTail",label:"fui-Spinner__label"},G$=Ge("rpp59a7",null,[".rpp59a7{display:flex;align-items:center;justify-content:center;line-height:0;gap:8px;overflow:hidden;min-width:min-content;}"]),X$=se({vertical:{Beiy3e4:"f1vx9l62"}},{d:[".f1vx9l62{flex-direction:column;}"]}),Y$=Ge("rvgcg50","r15nd2jo",{r:[".rvgcg50{position:relative;flex-shrink:0;-webkit-mask-image:radial-gradient(closest-side, transparent calc(100% - var(--fui-Spinner--strokeWidth) - 1px), white calc(100% - var(--fui-Spinner--strokeWidth)) calc(100% - 1px), transparent 100%);mask-image:radial-gradient(closest-side, transparent calc(100% - var(--fui-Spinner--strokeWidth) - 1px), white calc(100% - var(--fui-Spinner--strokeWidth)) calc(100% - 1px), transparent 100%);background-color:var(--colorBrandStroke2Contrast);color:var(--colorBrandStroke1);animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:linear;animation-name:rb7n1on;}","@keyframes rb7n1on{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}",".r15nd2jo{position:relative;flex-shrink:0;-webkit-mask-image:radial-gradient(closest-side, transparent calc(100% - var(--fui-Spinner--strokeWidth) - 1px), white calc(100% - var(--fui-Spinner--strokeWidth)) calc(100% - 1px), transparent 100%);mask-image:radial-gradient(closest-side, transparent calc(100% - var(--fui-Spinner--strokeWidth) - 1px), white calc(100% - var(--fui-Spinner--strokeWidth)) calc(100% - 1px), transparent 100%);background-color:var(--colorBrandStroke2Contrast);color:var(--colorBrandStroke1);animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:linear;animation-name:r1gx3jof;}","@keyframes r1gx3jof{0%{transform:rotate(0deg);}100%{transform:rotate(-360deg);}}"],s:["@media screen and (forced-colors: active){.rvgcg50{background-color:HighlightText;color:Highlight;forced-color-adjust:none;}}","@media screen and (prefers-reduced-motion: reduce){.rvgcg50{animation-duration:1.8s;}}","@media screen and (forced-colors: active){.r15nd2jo{background-color:HighlightText;color:Highlight;forced-color-adjust:none;}}","@media screen and (prefers-reduced-motion: reduce){.r15nd2jo{animation-duration:1.8s;}}"]}),Z$=Ge("rxov3xa","r1o544mv",{r:[".rxov3xa{position:absolute;display:block;width:100%;height:100%;-webkit-mask-image:conic-gradient(transparent 105deg, white 105deg);mask-image:conic-gradient(transparent 105deg, white 105deg);animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:var(--curveEasyEase);animation-name:r15mim6k;}",'.rxov3xa::before,.rxov3xa::after{content:"";position:absolute;display:block;width:100%;height:100%;animation:inherit;background-image:conic-gradient(currentcolor 135deg, transparent 135deg);}',"@keyframes r15mim6k{0%{transform:rotate(-135deg);}50%{transform:rotate(0deg);}100%{transform:rotate(225deg);}}",".rxov3xa::before{animation-name:r18vhmn8;}","@keyframes r18vhmn8{0%{transform:rotate(0deg);}50%{transform:rotate(105deg);}100%{transform:rotate(0deg);}}",".rxov3xa::after{animation-name:rkgrvoi;}","@keyframes rkgrvoi{0%{transform:rotate(0deg);}50%{transform:rotate(225deg);}100%{transform:rotate(0deg);}}",".r1o544mv{position:absolute;display:block;width:100%;height:100%;-webkit-mask-image:conic-gradient(transparent 105deg, white 105deg);mask-image:conic-gradient(transparent 105deg, white 105deg);animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:var(--curveEasyEase);animation-name:r109gmi5;}",'.r1o544mv::before,.r1o544mv::after{content:"";position:absolute;display:block;width:100%;height:100%;animation:inherit;background-image:conic-gradient(currentcolor 135deg, transparent 135deg);}',"@keyframes r109gmi5{0%{transform:rotate(135deg);}50%{transform:rotate(0deg);}100%{transform:rotate(-225deg);}}",".r1o544mv::before{animation-name:r17whflh;}","@keyframes r17whflh{0%{transform:rotate(0deg);}50%{transform:rotate(-105deg);}100%{transform:rotate(0deg);}}",".r1o544mv::after{animation-name:re4odhl;}","@keyframes re4odhl{0%{transform:rotate(0deg);}50%{transform:rotate(-225deg);}100%{transform:rotate(0deg);}}"],s:["@media screen and (prefers-reduced-motion: reduce){.rxov3xa{animation-iteration-count:0;background-image:conic-gradient(transparent 120deg, currentcolor 360deg);}.rxov3xa::before,.rxov3xa::after{content:none;}}","@media screen and (prefers-reduced-motion: reduce){.r1o544mv{animation-iteration-count:0;background-image:conic-gradient(transparent 120deg, currentcolor 360deg);}.r1o544mv::before,.r1o544mv::after{content:none;}}"]}),K$=se({inverted:{De3pzq:"fr407j0",sj55zd:"f1f7voed"},rtlTail:{btxmck:"f179dep3",gb5jj2:"fbz9ihp",Bdya8wy:"f1pme1qz"},"extra-tiny":{Bqenvij:"fd461yt",a9b677:"fjw5fx7",qmp6fs:"f1v3ph3m"},tiny:{Bqenvij:"fjamq6b",a9b677:"f64fuq3",qmp6fs:"f1v3ph3m"},"extra-small":{Bqenvij:"frvgh55",a9b677:"fq4mcun",qmp6fs:"f1v3ph3m"},small:{Bqenvij:"fxldao9",a9b677:"f1w9dchk",qmp6fs:"f1v3ph3m"},medium:{Bqenvij:"f1d2rq10",a9b677:"f1szoe96",qmp6fs:"fb52u90"},large:{Bqenvij:"f8ljn23",a9b677:"fpdz1er",qmp6fs:"fb52u90"},"extra-large":{Bqenvij:"fbhnoac",a9b677:"feqmc2u",qmp6fs:"fb52u90"},huge:{Bqenvij:"f1ft4266",a9b677:"fksc0bp",qmp6fs:"fa3u9ii"}},{d:[".fr407j0{background-color:var(--colorNeutralStrokeAlpha2);}",".f1f7voed{color:var(--colorNeutralStrokeOnBrand2);}",".f179dep3{-webkit-mask-image:conic-gradient(white 255deg, transparent 255deg);mask-image:conic-gradient(white 255deg, transparent 255deg);}",".fbz9ihp::before,.fbz9ihp::after{background-image:conic-gradient(transparent 225deg, currentcolor 225deg);}",".fd461yt{height:16px;}",".fjw5fx7{width:16px;}",".f1v3ph3m{--fui-Spinner--strokeWidth:var(--strokeWidthThick);}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".frvgh55{height:24px;}",".fq4mcun{width:24px;}",".fxldao9{height:28px;}",".f1w9dchk{width:28px;}",".f1d2rq10{height:32px;}",".f1szoe96{width:32px;}",".fb52u90{--fui-Spinner--strokeWidth:var(--strokeWidthThicker);}",".f8ljn23{height:36px;}",".fpdz1er{width:36px;}",".fbhnoac{height:40px;}",".feqmc2u{width:40px;}",".f1ft4266{height:44px;}",".fksc0bp{width:44px;}",".fa3u9ii{--fui-Spinner--strokeWidth:var(--strokeWidthThickest);}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f1pme1qz{background-image:conic-gradient(currentcolor 0deg, transparent 240deg);}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]}),Q$=se({inverted:{sj55zd:"fonrgv7"},"extra-tiny":{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},tiny:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},"extra-small":{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},small:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},medium:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},large:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},"extra-large":{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},huge:{Bahqtrf:"fk6fouc",Be2twd7:"f1pp30po",Bhrd7zp:"fl43uef",Bg96gwp:"f106mvju"}},{d:[".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f106mvju{line-height:var(--lineHeightBase500);}"]}),J$=e=>{"use no memo";const{labelPosition:t,size:r,appearance:n}=e,{dir:o}=mt(),i=G$(),s=X$(),a=Y$(),l=K$(),c=Z$(),u=Q$();return e.root.className=ne(vd.root,i,(t==="above"||t==="below")&&s.vertical,e.root.className),e.spinner&&(e.spinner.className=ne(vd.spinner,a,l[r],n==="inverted"&&l.inverted,e.spinner.className)),e.spinnerTail&&(e.spinnerTail.className=ne(vd.spinnerTail,c,o==="rtl"&&l.rtlTail,e.spinnerTail.className)),e.label&&(e.label.className=ne(vd.label,u[r],n==="inverted"&&u.inverted,e.label.className)),e},rl=B.forwardRef((e,t)=>{const r=V$(e,t);return J$(r),Le("useSpinnerStyles_unstable")(r),U$(r)});rl.displayName="Spinner";const eH=(e,t)=>{const{appearance:r="transparent",reserveSelectedTabSpace:n=!0,size:o="medium"}=e,i=tH(e,t),s=rH({vertical:i.vertical});return{...i,root:{...i.root,...s},appearance:r,reserveSelectedTabSpace:n,size:o}},tH=(e,t)=>{const{disabled:r=!1,onTabSelect:n,selectTabOnFocus:o=!1,vertical:i=!1,selectedValue:s,defaultSelectedValue:a,...l}=e,c=B.useRef(null),[u,d]=xn({state:s,defaultState:a,initialState:void 0}),p=B.useRef(void 0),h=B.useRef(void 0);B.useEffect(()=>{h.current=p.current,p.current=u},[u]);const m=ye((x,k)=>{d(k.value),n==null||n(x,k)}),g=B.useRef({}),y=ye(x=>{const k=JSON.stringify(x.value);g.current[k]=x}),v=ye(x=>{delete g.current[JSON.stringify(x.value)]}),b=B.useCallback(()=>({selectedValue:p.current,previousSelectedValue:h.current,registeredTabs:g.current}),[]);return{components:{root:"div"},root:Ce({ref:yt(t,c),role:"tablist","aria-orientation":i?"vertical":"horizontal",...l},{elementType:"div"}),disabled:r,selectTabOnFocus:o,selectedValue:u,onRegister:y,onUnregister:v,onSelect:m,getRegisteredTabs:b,vertical:i}},rH=({vertical:e})=>nu({circular:!0,axis:e?"vertical":"horizontal",memorizeCurrent:!1,unstable_hasDefault:!0}),nH={appearance:"transparent",reserveSelectedTabSpace:!0,selectTabOnFocus:!1,disabled:!1,selectedValue:void 0,onRegister:()=>{},onUnregister:()=>{},onSelect:()=>{},getRegisteredTabs:()=>({registeredTabs:{}}),size:"medium",vertical:!1},HB=bl(void 0),oH=HB.Provider,Vn=e=>Ru(HB,(t=nH)=>e(t)),iH=(e,t)=>J(e.root,{children:J(oH,{value:t.tabList,children:e.root.children})}),sH={root:"fui-TabList"},aH=se({root:{mc9l5x:"f22iagw",Beiy3e4:"f1063pyq",Bnnss6s:"fi64zpg",Eh141a:"flvyvdh",qhf8xq:"f10pi13n"},horizontal:{Bt984gj:"f1q9h2pe",Beiy3e4:"f1063pyq"},vertical:{Bt984gj:"f1q9h2pe",Beiy3e4:"f1vx9l62"},roundedSmall:{i8kkvl:0,Belr9w4:0,rmohyg:"f1eyhf9v"},rounded:{i8kkvl:0,Belr9w4:0,rmohyg:"faqewft"}},{d:[".f22iagw{display:flex;}",".f1063pyq{flex-direction:row;}",".fi64zpg{flex-shrink:0;}",".flvyvdh{flex-wrap:nowrap;}",".f10pi13n{position:relative;}",".f1q9h2pe{align-items:stretch;}",".f1vx9l62{flex-direction:column;}",[".f1eyhf9v{gap:var(--spacingHorizontalSNudge);}",{p:-1}],[".faqewft{gap:var(--spacingHorizontalS);}",{p:-1}]]}),lH=e=>{"use no memo";const{appearance:t,vertical:r,size:n}=e,o=aH(),i=t==="subtle-circular"||t==="filled-circular";return e.root.className=ne(sH.root,o.root,r?o.vertical:o.horizontal,i&&(n==="small"?o.roundedSmall:o.rounded),e.root.className),e};function cH(e){const{appearance:t,reserveSelectedTabSpace:r,disabled:n,selectTabOnFocus:o,selectedValue:i,onRegister:s,onUnregister:a,onSelect:l,getRegisteredTabs:c,size:u,vertical:d}=e;return{tabList:{appearance:t,reserveSelectedTabSpace:r,disabled:n,selectTabOnFocus:o,selectedValue:i,onSelect:l,onRegister:s,onUnregister:a,getRegisteredTabs:c,size:u,vertical:d}}}const Yf=B.forwardRef((e,t)=>{const r=eH(e,t),n=cH(r);return lH(r),Le("useTabListStyles_unstable")(r),iH(r,n)});Yf.displayName="TabList";const uH=(e,t)=>{const{content:r}=e,n=dH(e,t),o=fH(n),i=Vn(c=>c.appearance),s=Vn(c=>c.reserveSelectedTabSpace),a=Vn(c=>{var u;return(u=c.size)!==null&&u!==void 0?u:"medium"}),l=r&&typeof r=="object"?DF(r,["ref"]):r;return{...n,components:{...n.components,contentReservedSpace:"span"},root:{...n.root,...o},contentReservedSpace:qe(l,{renderByDefault:!n.selected&&!n.iconOnly&&s,defaultProps:{children:e.children},elementType:"span"}),appearance:i,size:a}},dH=(e,t)=>{const{content:r,disabled:n=!1,icon:o,onClick:i,onFocus:s,value:a,...l}=e,c=Vn(z=>z.selectTabOnFocus),u=Vn(z=>z.disabled),d=Vn(z=>z.selectedValue===a),p=Vn(z=>z.onRegister),h=Vn(z=>z.onUnregister),m=Vn(z=>z.onSelect),g=Vn(z=>!!z.vertical),y=u||n,v=B.useRef(null),b=z=>m(z,{value:a}),x=ye(wt(i,b)),k=ye(wt(s,b));B.useEffect(()=>(p({value:a,ref:v}),()=>{h({value:a,ref:v})}),[p,h,v,a]);const S=qe(o,{elementType:"span"}),_=Ce(r,{defaultProps:{children:e.children},elementType:"span"}),N=!!(S!=null&&S.children&&!_.children);return{components:{root:"button",icon:"span",content:"span",contentReservedSpace:"span"},root:Ce({ref:yt(t,v),role:"tab",type:"button","aria-selected":y?void 0:`${d}`,value:a,...l,disabled:y,onClick:x,onFocus:c?k:s},{elementType:"button"}),icon:S,iconOnly:N,content:_,disabled:y,selected:d,value:a,vertical:g}},fH=({selected:e})=>Es({focusable:{isDefault:e}}),hH=e=>rt(e.root,{children:[e.icon&&J(e.icon,{}),!e.iconOnly&&J(e.content,{}),e.contentReservedSpace&&J(e.contentReservedSpace,{})]}),Qw={offsetVar:"--fui-Tab__indicator--offset",scaleVar:"--fui-Tab__indicator--scale"},pH=se({base:{B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1gl81tg"},animated:{Ba2ppi3:"fhwpy7i",F2fol1:"f6zz20j",B1dyfl9:"f1ai4sc1",Bu93a1u:"f1rnm8gg",Bdasjez:"f1x3cmqg"},horizontal:{sjv3b2:["fug4aj8","f1i5xzg7"],b1kco5:"f1q7ujh"},vertical:{sjv3b2:"f1hqboyk",b1kco5:"f1dxupa6"}},{d:[[".f1gl81tg{overflow:visible;}",{p:-1}],".fhwpy7i::after{transition-property:transform;}",".f6zz20j::after{transition-duration:var(--durationSlow);}",".f1ai4sc1::after{transition-timing-function:var(--curveDecelerateMax);}",".fug4aj8::after{transform-origin:left;}",".f1i5xzg7::after{transform-origin:right;}",".f1q7ujh::after{transform:translateX(var(--fui-Tab__indicator--offset)) scaleX(var(--fui-Tab__indicator--scale));}",".f1hqboyk::after{transform-origin:top;}",".f1dxupa6::after{transform:translateY(var(--fui-Tab__indicator--offset)) scaleY(var(--fui-Tab__indicator--scale));}"],m:[["@media (prefers-reduced-motion: reduce){.f1rnm8gg::after{transition-property:none;}}",{m:"(prefers-reduced-motion: reduce)"}],["@media (prefers-reduced-motion: reduce){.f1x3cmqg::after{transition-duration:0.01ms;}}",{m:"(prefers-reduced-motion: reduce)"}]]}),gH=e=>{if(e){var t;const r=((t=e.parentElement)===null||t===void 0?void 0:t.getBoundingClientRect())||{x:0,y:0},n=e.getBoundingClientRect();return{x:n.x-r.x,y:n.y-r.y,width:n.width,height:n.height}}},Jw=(e,t)=>{var r;const n=T0(t)?(r=e[JSON.stringify(t)])===null||r===void 0?void 0:r.ref.current:void 0;return n?gH(n):void 0},T0=e=>e!=null,mH=e=>{const{disabled:t,selected:r,vertical:n}=e,o=pH(),[i,s]=B.useState(),[a,l]=B.useState({offset:0,scale:1}),c=Vn(h=>h.getRegisteredTabs),[u]=U_();if(r){const{previousSelectedValue:h,selectedValue:m,registeredTabs:g}=c();if(T0(h)&&i!==h){const y=Jw(g,h),v=Jw(g,m);if(v&&y){const b=n?y.y-v.y:y.x-v.x,x=n?y.height/v.height:y.width/v.width;l({offset:b,scale:x}),s(h),u(()=>l({offset:0,scale:1}))}}}else T0(i)&&s(void 0);if(t)return e;const d=a.offset===0&&a.scale===1;e.root.className=ne(e.root.className,r&&o.base,r&&d&&o.animated,r&&(n?o.vertical:o.horizontal));const p={[Qw.offsetVar]:`${a.offset}px`,[Qw.scaleVar]:`${a.scale}`};return e.root.style={...p,...e.root.style},e},N0={root:"fui-Tab",icon:"fui-Tab__icon",content:"fui-Tab__content"},vH={content:"fui-Tab__content--reserved-space"},WB=se({root:{Bt984gj:"f122n59",mc9l5x:"f13qh94s",Bnnss6s:"fi64zpg",Bxotwcr:"f1u07yai",Budl1dq:"frn2hmy",wkccdc:"f1olsevy",oeaueh:"f1s6fcnf",qhf8xq:"f10pi13n"},button:{Bt984gj:"f122n59",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f3bhgqh",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Bceei9c:"f1k6fduh",mc9l5x:"f13qh94s",Bnnss6s:"fi64zpg",Bxotwcr:"f1u07yai",Budl1dq:"frn2hmy",wkccdc:"f1olsevy",Bahqtrf:"fk6fouc",Bg96gwp:"f1i3iumi",oeaueh:"f1s6fcnf",qhf8xq:"f10pi13n",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp",B9bfxx9:"f1cxpek8"},horizontal:{Brf1p80:"f4d9j23"},vertical:{Brf1p80:"f1s9ku6b"},smallHorizontal:{i8kkvl:"f14mj54c",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1wmopi4"},smallVertical:{i8kkvl:"f14mj54c",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f12or63q"},mediumHorizontal:{i8kkvl:"f1rjii52",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1w08f2p"},mediumVertical:{i8kkvl:"f1rjii52",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fymxs25"},largeHorizontal:{i8kkvl:"f1rjii52",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1ssfvub"},largeVertical:{i8kkvl:"f1rjii52",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fwkd1rq"},transparent:{De3pzq:"f1c21dwh",B95qlz1:"f9rvdkv",B7xitij:"f1051ucx",Bptxc3x:"fmmjozx",Bwqhzpy:"fqhzt5g",iyk698:"f7l5cgy",cl4aha:"fpkze5g",B0q3jbp:"f1iywnoi",Be9ayug:"f9n45c4"},subtle:{De3pzq:"fhovq9v",B95qlz1:"f1bifk9c",B7xitij:"fo6hitd",Bptxc3x:"fmmjozx",Bwqhzpy:"fqhzt5g",iyk698:"f7l5cgy",cl4aha:"fpkze5g",B0q3jbp:"f1iywnoi",Be9ayug:"f9n45c4"},disabledCursor:{Bceei9c:"fdrzuqr"},disabled:{De3pzq:"f1c21dwh",Bptxc3x:"fato7r6",cl4aha:"fao1bnu"},selected:{Bptxc3x:"f1cadz5z",Bwqhzpy:"fwhdxxj",iyk698:"fintccb",cl4aha:"ffplhdr",B0q3jbp:"fjo17wb",Be9ayug:"f148789c"}},{d:[".f122n59{align-items:center;}",".f13qh94s{display:grid;}",".fi64zpg{flex-shrink:0;}",".f1u07yai{grid-auto-flow:column;}",".frn2hmy{grid-template-columns:auto;}",".f1olsevy{grid-template-rows:auto;}",".f1s6fcnf{outline-style:none;}",".f10pi13n{position:relative;}",[".f3bhgqh{border:none;}",{p:-2}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f1k6fduh{cursor:pointer;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",[".f1a3p1vp{overflow:hidden;}",{p:-1}],".f1cxpek8{text-transform:none;}",".f4d9j23{justify-content:center;}",".f1s9ku6b{justify-content:start;}",".f14mj54c{column-gap:var(--spacingHorizontalXXS);}",[".f1wmopi4{padding:var(--spacingVerticalSNudge) var(--spacingHorizontalSNudge);}",{p:-1}],[".f12or63q{padding:var(--spacingVerticalXXS) var(--spacingHorizontalSNudge);}",{p:-1}],".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",[".f1w08f2p{padding:var(--spacingVerticalM) var(--spacingHorizontalMNudge);}",{p:-1}],[".fymxs25{padding:var(--spacingVerticalSNudge) var(--spacingHorizontalMNudge);}",{p:-1}],[".f1ssfvub{padding:var(--spacingVerticalL) var(--spacingHorizontalMNudge);}",{p:-1}],[".fwkd1rq{padding:var(--spacingVerticalS) var(--spacingHorizontalMNudge);}",{p:-1}],".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f9rvdkv:enabled:hover{background-color:var(--colorTransparentBackgroundHover);}",".f1051ucx:enabled:active{background-color:var(--colorTransparentBackgroundPressed);}",".fmmjozx .fui-Tab__icon{color:var(--colorNeutralForeground2);}",".fqhzt5g:enabled:hover .fui-Tab__icon{color:var(--colorNeutralForeground2Hover);}",".f7l5cgy:enabled:active .fui-Tab__icon{color:var(--colorNeutralForeground2Pressed);}",".fpkze5g .fui-Tab__content{color:var(--colorNeutralForeground2);}",".f1iywnoi:enabled:hover .fui-Tab__content{color:var(--colorNeutralForeground2Hover);}",".f9n45c4:enabled:active .fui-Tab__content{color:var(--colorNeutralForeground2Pressed);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".f1bifk9c:enabled:hover{background-color:var(--colorSubtleBackgroundHover);}",".fo6hitd:enabled:active{background-color:var(--colorSubtleBackgroundPressed);}",".fdrzuqr{cursor:not-allowed;}",".fato7r6 .fui-Tab__icon{color:var(--colorNeutralForegroundDisabled);}",".fao1bnu .fui-Tab__content{color:var(--colorNeutralForegroundDisabled);}",".f1cadz5z .fui-Tab__icon{color:var(--colorCompoundBrandForeground1);}",".fwhdxxj:enabled:hover .fui-Tab__icon{color:var(--colorCompoundBrandForeground1Hover);}",".fintccb:enabled:active .fui-Tab__icon{color:var(--colorCompoundBrandForeground1Pressed);}",".ffplhdr .fui-Tab__content{color:var(--colorNeutralForeground1);}",".fjo17wb:enabled:hover .fui-Tab__content{color:var(--colorNeutralForeground1Hover);}",".f148789c:enabled:active .fui-Tab__content{color:var(--colorNeutralForeground1Pressed);}"]}),yH=se({base:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f44lkw9",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"fp7rvkm",Bptxc3x:"ftorr8m",cl4aha:"f16lqpmv"},small:{Dbcxam:0,rjzwhg:0,Bblux5w:"fzklhed"},medium:{Dbcxam:0,rjzwhg:0,Bblux5w:"f1j721cc"},large:{Dbcxam:0,rjzwhg:0,Bblux5w:"frx9knr"},subtle:{De3pzq:"fhovq9v",sj55zd:"fkfq4zb",B95qlz1:"f1bifk9c",Eo63ln:0,r9osk6:0,Itrz8y:0,zeg6vx:0,l65xgk:0,Bw4olcx:0,Folb0i:0,I2h8y4:0,Bgxgoyi:0,Bvlkotb:0,Fwyncl:0,Byh5edv:0,Becqvjq:0,uumbiq:0,B73q3dg:0,Bblwbaf:0,B0ezav:"ft57sj0",r4wkhp:"f1fcoy83",B7xitij:"fo6hitd",d3wsvi:0,Hdqn7s:0,zu5y1p:0,owqphb:0,g9c53k:0,Btmu08z:0,Bthxvy6:0,gluvuq:0,tb88gp:0,wns6jk:0,kdfdk4:0,Bbw008l:0,Bayi1ib:0,B1kkfu3:0,J1oqyp:0,kem6az:0,goa3yj:"fhn220o",p743kt:"f15qf7sh",wmvzou:0,sc4o1m:0,wymq9i:0,u9orzk:0,puiv5t:0,Bosien3:0,b2z72d:0,Beulxaw:0,B57pkaw:0,Jcjdmf:0,B8qgbzl:0,Bbmb0sr:0,B14q8qp:0,Bcq6wej:0,Byz1pjr:0,kr9cjb:0,Ff9ifp:"f1mljprk"},subtleSelected:{De3pzq:"f16xkysk",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f1c2pc3t",sj55zd:"faj9fo0",B95qlz1:"fsm7zmf",Eo63ln:0,r9osk6:0,Itrz8y:0,zeg6vx:0,l65xgk:0,Bw4olcx:0,Folb0i:0,I2h8y4:0,Bgxgoyi:0,Bvlkotb:0,Fwyncl:0,Byh5edv:0,Becqvjq:0,uumbiq:0,B73q3dg:0,Bblwbaf:0,B0ezav:"f1wo0sfq",r4wkhp:"f1afuynh",B7xitij:"f94ddyl",d3wsvi:0,Hdqn7s:0,zu5y1p:0,owqphb:0,g9c53k:0,Btmu08z:0,Bthxvy6:0,gluvuq:0,tb88gp:0,wns6jk:0,kdfdk4:0,Bbw008l:0,Bayi1ib:0,B1kkfu3:0,J1oqyp:0,kem6az:0,goa3yj:"fmle6oo",p743kt:"f1d3itm4",wmvzou:0,sc4o1m:0,wymq9i:0,u9orzk:0,puiv5t:0,Bosien3:0,b2z72d:0,Beulxaw:0,B57pkaw:0,Jcjdmf:0,B8qgbzl:0,Bbmb0sr:0,B14q8qp:0,Bcq6wej:0,Byz1pjr:0,kr9cjb:0,Ff9ifp:"f1e9l2u"},subtleDisabled:{De3pzq:"fhovq9v",sj55zd:"f1s2aq7o"},subtleDisabledSelected:{De3pzq:"f1bg9a2p",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"fegtqic",sj55zd:"f1s2aq7o"},filled:{De3pzq:"f16xq7d1",sj55zd:"fkfq4zb",B95qlz1:"fwwxidx",r4wkhp:"f1fcoy83",B7xitij:"f14i52sd",p743kt:"f15qf7sh",Hhssn:"f1cpi5f4",uaurb9:"f6pj1s0",B401qx7:"f12sz5kj",Buyp1jb:"f17588c3",gsp74p:"fnthgdt"},filledSelected:{De3pzq:"ffp7eso",sj55zd:"f1phragk",B95qlz1:"f1lm9dni",r4wkhp:"f1mn5ei1",B7xitij:"f1g6ncd0",p743kt:"fl71aob",Gedr8k:"f14zl92z",Bm69vlq:"f16zy3eu",Bodipah:"f1gdgb7p",B5kpen0:"f1tua9ng"},filledDisabled:{De3pzq:"f1bg9a2p",sj55zd:"f1s2aq7o"},filledDisabledSelected:{De3pzq:"f1bg9a2p",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"fegtqic",sj55zd:"f1s2aq7o"}},{d:[[".f44lkw9{border-radius:var(--borderRadiusCircular);}",{p:-1}],[".fp7rvkm{border:solid var(--strokeWidthThin) var(--colorTransparentStroke);}",{p:-2}],".ftorr8m .fui-Tab__icon{color:inherit;}",".f16lqpmv .fui-Tab__content{color:inherit;}",[".fzklhed{padding-block:calc(var(--spacingVerticalXXS) - var(--strokeWidthThin));}",{p:-1}],[".f1j721cc{padding-block:calc(var(--spacingVerticalSNudge) - var(--strokeWidthThin));}",{p:-1}],[".frx9knr{padding-block:calc(var(--spacingVerticalS) - var(--strokeWidthThin));}",{p:-1}],".fhovq9v{background-color:var(--colorSubtleBackground);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f1bifk9c:enabled:hover{background-color:var(--colorSubtleBackgroundHover);}",[".ft57sj0:enabled:hover{border:solid var(--strokeWidthThin) var(--colorNeutralStroke1Hover);}",{p:-2}],".f1fcoy83:enabled:hover{color:var(--colorNeutralForeground2Hover);}",".fo6hitd:enabled:active{background-color:var(--colorSubtleBackgroundPressed);}",[".fhn220o:enabled:active{border:solid var(--strokeWidthThin) var(--colorNeutralStroke1Pressed);}",{p:-2}],".f15qf7sh:enabled:active{color:var(--colorNeutralForeground2Pressed);}",".f16xkysk{background-color:var(--colorBrandBackground2);}",[".f1c2pc3t{border:solid var(--strokeWidthThin) var(--colorCompoundBrandStroke);}",{p:-2}],".faj9fo0{color:var(--colorBrandForeground2);}",".fsm7zmf:enabled:hover{background-color:var(--colorBrandBackground2Hover);}",[".f1wo0sfq:enabled:hover{border:solid var(--strokeWidthThin) var(--colorCompoundBrandStrokeHover);}",{p:-2}],".f1afuynh:enabled:hover{color:var(--colorBrandForeground2Hover);}",".f94ddyl:enabled:active{background-color:var(--colorBrandBackground2Pressed);}",[".fmle6oo:enabled:active{border:solid var(--strokeWidthThin) var(--colorCompoundBrandStrokePressed);}",{p:-2}],".f1d3itm4:enabled:active{color:var(--colorBrandForeground2Pressed);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",[".fegtqic{border:solid var(--strokeWidthThin) var(--colorNeutralStrokeDisabled);}",{p:-2}],".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fwwxidx:enabled:hover{background-color:var(--colorNeutralBackground3Hover);}",".f14i52sd:enabled:active{background-color:var(--colorNeutralBackground3Pressed);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".f1lm9dni:enabled:hover{background-color:var(--colorBrandBackgroundHover);}",".f1mn5ei1:enabled:hover{color:var(--colorNeutralForegroundOnBrand);}",".f1g6ncd0:enabled:active{background-color:var(--colorBrandBackgroundPressed);}",".fl71aob:enabled:active{color:var(--colorNeutralForegroundOnBrand);}",[".fegtqic{border:solid var(--strokeWidthThin) var(--colorNeutralStrokeDisabled);}",{p:-2}]],m:[["@media (forced-colors: active){.f1mljprk{border:solid var(--strokeWidthThin) Canvas;}}",{p:-2,m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1e9l2u{border:solid var(--strokeWidthThin) Highlight;}}",{p:-2,m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cpi5f4:enabled:hover{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f6pj1s0:enabled:hover{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f12sz5kj:enabled:hover .fui-Tab__content{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f17588c3:enabled:hover .fui-Icon-filled{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fnthgdt:enabled:hover .fui-Icon-regular{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14zl92z:enabled{background-color:ButtonText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16zy3eu:enabled .fui-Tab__content{color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1gdgb7p:enabled .fui-Tab__content{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1tua9ng:enabled .fui-Tab__icon{color:ButtonFace;}}",{m:"(forced-colors: active)"}]]}),bH=se({base:{B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bn4voq9:"f1p7hgxw",Bfpq7zp:"f1way5bb",g9k6zt:"f9znhxp",j6ew2k:["fqa318h","fqa318h"],Bhxq17a:"f1vjpng2"},circular:{B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bn4voq9:"f1p7hgxw",Bfpq7zp:"f1way5bb",g9k6zt:"f9znhxp",j6ew2k:["fzgyhws","fqxug60"],Bhxq17a:"f1vjpng2"}},{d:[".f8hki3x[data-fui-focus-visible]{border-top-color:transparent;}",".f1d2448m[data-fui-focus-visible]{border-right-color:transparent;}",".ffh67wi[data-fui-focus-visible]{border-left-color:transparent;}",".f1bjia2o[data-fui-focus-visible]{border-bottom-color:transparent;}",".f1p7hgxw[data-fui-focus-visible]{outline-width:var(--strokeWidthThick);}",".f1way5bb[data-fui-focus-visible]{outline-color:transparent;}",".f9znhxp[data-fui-focus-visible]{outline-style:solid;}",".fqa318h[data-fui-focus-visible]{box-shadow:var(--shadow4),0 0 0 var(--strokeWidthThick) var(--colorStrokeFocus2);}",".f1vjpng2[data-fui-focus-visible]{z-index:1;}",".fzgyhws[data-fui-focus-visible]{box-shadow:var(--shadow4),0 0 0 var(--strokeWidthThick) var(--colorStrokeFocus2),0 0 0 var(--strokeWidthThin) var(--colorNeutralStrokeOnBrand) inset;}",".fqxug60[data-fui-focus-visible]{box-shadow:var(--shadow4),0 0 0 var(--strokeWidthThick) var(--colorStrokeFocus2),0 0 0 var(--strokeWidthThin) var(--colorNeutralStrokeOnBrand) inset;}"]}),xH=se({base:{az7l2e:"fhw179n",vqofr:0,Bv4n3vi:0,Bgqb9hq:0,B0uxbk8:0,Bf3jju6:"fg9j5n4",amg5m6:"f1kmhr4c",zkfqfm:"fl1ydde",Bkydozb:"f1y7maxz",Bka2azo:0,vzq8l0:0,csmgbd:0,Br4ovkg:0,aelrif:"fceyvr4",y36c18:"f16cxu0",B1ctymy:"f1nwgacf",xzc5d:"fm6alxz",h5yqg8:"fhx32z1"},disabled:{az7l2e:"f1ut20fw",Bkydozb:"fhrzcfn",xzc5d:"fw15awd",h5yqg8:"faqmq51"},smallHorizontal:{lawp4y:"fchca7p",Baz25je:"f1r53b5e",Fbdkly:["f1s6rxz5","fo35v8s"],mdwyqc:["fo35v8s","f1s6rxz5"]},smallVertical:{lawp4y:"fze4zud",Fbdkly:["f1fzr1x6","f1f351id"],Bciustq:"fdp32p8",Ccq8qp:"f1aij3q"},mediumHorizontal:{lawp4y:"fchca7p",Baz25je:"f1s2r9ax",Fbdkly:["f1o0nnkk","fxb7rol"],mdwyqc:["fxb7rol","f1o0nnkk"]},mediumVertical:{lawp4y:"f17jracn",Fbdkly:["f1fzr1x6","f1f351id"],Bciustq:"f117lcb2",Ccq8qp:"f1aij3q"},largeHorizontal:{lawp4y:"fchca7p",Baz25je:"f1s2r9ax",Fbdkly:["f1o0nnkk","fxb7rol"],mdwyqc:["fxb7rol","f1o0nnkk"]},largeVertical:{lawp4y:"fel9d3z",Fbdkly:["f1fzr1x6","f1f351id"],Bciustq:"f6vqlre",Ccq8qp:"f1aij3q"}},{h:[".fhw179n:hover::before{background-color:var(--colorNeutralStroke1Hover);}",[".fg9j5n4:hover::before{border-radius:var(--borderRadiusCircular);}",{p:-1}],'.f1kmhr4c:hover::before{content:"";}',".fl1ydde:hover::before{position:absolute;}",".f1ut20fw:hover::before{background-color:var(--colorTransparentStroke);}"],a:[".f1y7maxz:active::before{background-color:var(--colorNeutralStroke1Pressed);}",[".fceyvr4:active::before{border-radius:var(--borderRadiusCircular);}",{p:-1}],'.f16cxu0:active::before{content:"";}',".f1nwgacf:active::before{position:absolute;}",".fhrzcfn:active::before{background-color:var(--colorTransparentStroke);}"],m:[["@media (forced-colors: active){.fm6alxz:hover::before{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fhx32z1:active::before{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fw15awd:hover::before{background-color:transparent;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.faqmq51:active::before{background-color:transparent;}}",{m:"(forced-colors: active)"}]],d:[".fchca7p::before{bottom:0;}",".f1r53b5e::before{height:var(--strokeWidthThick);}",".f1s6rxz5::before{left:var(--spacingHorizontalSNudge);}",".fo35v8s::before{right:var(--spacingHorizontalSNudge);}",".fze4zud::before{bottom:var(--spacingVerticalXS);}",".f1fzr1x6::before{left:0;}",".f1f351id::before{right:0;}",".fdp32p8::before{top:var(--spacingVerticalXS);}",".f1aij3q::before{width:var(--strokeWidthThicker);}",".f1s2r9ax::before{height:var(--strokeWidthThicker);}",".f1o0nnkk::before{left:var(--spacingHorizontalM);}",".fxb7rol::before{right:var(--spacingHorizontalM);}",".f17jracn::before{bottom:var(--spacingVerticalS);}",".f117lcb2::before{top:var(--spacingVerticalS);}",".fel9d3z::before{bottom:var(--spacingVerticalMNudge);}",".f6vqlre::before{top:var(--spacingVerticalMNudge);}"]}),wH=se({base:{Bjyk6c5:"f1rp0jgh",d9w3h3:0,B3778ie:0,B4j8arr:0,Bl18szs:0,Blrzh8d:"f3b9emi",Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9"},selected:{Bjyk6c5:"f1ksivud",Bej4dhw:"f1476jrx",B7wqxwa:"f18q216b",Hwb57:"f1wf6u82",Beg08s0:"f1xwit7m",Bo27r1v:"f1ksfgwi"},disabled:{Bjyk6c5:"f13lkzet"},smallHorizontal:{By385i5:"fo72kxq",Dlnsje:"f9bb2ob",Eqx8gd:["f1q70ajw","f18rbzdx"],B1piin3:["f18rbzdx","f1q70ajw"]},smallVertical:{By385i5:"fqbue9b",Eqx8gd:["f1n6gb5g","f15yvnhg"],bn5sak:"fk1klkt",a2br6o:"f1o25lip"},mediumHorizontal:{By385i5:"fo72kxq",Dlnsje:"f1vx7lu8",Eqx8gd:["fna7m5n","f1oxpfwv"],B1piin3:["f1oxpfwv","fna7m5n"]},mediumVertical:{By385i5:"fipylg0",Eqx8gd:["f1n6gb5g","f15yvnhg"],bn5sak:"fqchiol",a2br6o:"f1o25lip"},largeHorizontal:{By385i5:"fo72kxq",Dlnsje:"f1vx7lu8",Eqx8gd:["fna7m5n","f1oxpfwv"],B1piin3:["f1oxpfwv","fna7m5n"]},largeVertical:{By385i5:"f1w7dm5g",Eqx8gd:["f1n6gb5g","f15yvnhg"],bn5sak:"f1p6em4m",a2br6o:"f1o25lip"}},{d:[".f1rp0jgh::after{background-color:var(--colorTransparentStroke);}",[".f3b9emi::after{border-radius:var(--borderRadiusCircular);}",{p:-1}],'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1ksivud::after{background-color:var(--colorCompoundBrandStroke);}",".f1476jrx:enabled:hover::after{background-color:var(--colorCompoundBrandStrokeHover);}",".f18q216b:enabled:active::after{background-color:var(--colorCompoundBrandStrokePressed);}",".f13lkzet::after{background-color:var(--colorNeutralForegroundDisabled);}",".fo72kxq::after{bottom:0;}",".f9bb2ob::after{height:var(--strokeWidthThick);}",".f1q70ajw::after{left:var(--spacingHorizontalSNudge);}",".f18rbzdx::after{right:var(--spacingHorizontalSNudge);}",".fqbue9b::after{bottom:var(--spacingVerticalXS);}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",".fk1klkt::after{top:var(--spacingVerticalXS);}",".f1o25lip::after{width:var(--strokeWidthThicker);}",".f1vx7lu8::after{height:var(--strokeWidthThicker);}",".fna7m5n::after{left:var(--spacingHorizontalM);}",".f1oxpfwv::after{right:var(--spacingHorizontalM);}",".fipylg0::after{bottom:var(--spacingVerticalS);}",".fqchiol::after{top:var(--spacingVerticalS);}",".f1w7dm5g::after{bottom:var(--spacingVerticalMNudge);}",".f1p6em4m::after{top:var(--spacingVerticalMNudge);}"],m:[["@media (forced-colors: active){.f1wf6u82::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1xwit7m:enabled:hover::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ksfgwi:enabled:active::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}]]}),kH=se({base:{Br312pm:"fwpfdsa",Ijaq50:"f16hsg94",Bt984gj:"f122n59",mc9l5x:"ftuwxu6",Brf1p80:"f4d9j23",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp",D0sxk3:"f16u1re",t6yez3:"f8bsbmo"},small:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3"},medium:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3"},large:{Be2twd7:"f1rt2boy",Bqenvij:"frvgh55",a9b677:"fq4mcun"},selected:{D0sxk3:"fxoiby5",t6yez3:"f15q0o9g"}},{d:[".fwpfdsa{grid-column-start:1;}",".f16hsg94{grid-row-start:1;}",".f122n59{align-items:center;}",".ftuwxu6{display:inline-flex;}",".f4d9j23{justify-content:center;}",[".f1a3p1vp{overflow:hidden;}",{p:-1}],".f16u1re .fui-Icon-filled{display:none;}",".f8bsbmo .fui-Icon-regular{display:inline;}",".fe5j1ua{font-size:20px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".f1rt2boy{font-size:24px;}",".frvgh55{height:24px;}",".fq4mcun{width:24px;}",".fxoiby5 .fui-Icon-filled{display:inline;}",".f15q0o9g .fui-Icon-regular{display:none;}"]}),SH=se({base:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1bwptpd"},selected:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"fl43uef",Bg96gwp:"f1i3iumi"},large:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k"},largeSelected:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},noIconBefore:{Br312pm:"fwpfdsa",Ijaq50:"f16hsg94"},iconBefore:{Br312pm:"fd46tj4",Ijaq50:"f16hsg94"},placeholder:{Bcdw1i0:"fd7fpy0"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",[".f1a3p1vp{overflow:hidden;}",{p:-1}],[".f1bwptpd{padding:var(--spacingVerticalNone) var(--spacingHorizontalXXS);}",{p:-1}],".fl43uef{font-weight:var(--fontWeightSemibold);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fwpfdsa{grid-column-start:1;}",".f16hsg94{grid-row-start:1;}",".fd46tj4{grid-column-start:2;}",".fd7fpy0{visibility:hidden;}"]}),CH=e=>{"use no memo";return _H(e),BH(e,e.root),TH(e),e},_H=e=>{"use no memo";const t=WB(),r=xH(),n=wH(),{appearance:o,disabled:i,selected:s,size:a,vertical:l}=e,c=[N0.root,t.root];return o!=="subtle-circular"&&o!=="filled-circular"&&c.push(r.base,a==="small"&&(l?r.smallVertical:r.smallHorizontal),a==="medium"&&(l?r.mediumVertical:r.mediumHorizontal),a==="large"&&(l?r.largeVertical:r.largeHorizontal),i&&r.disabled,s&&n.base,s&&!i&&n.selected,s&&a==="small"&&(l?n.smallVertical:n.smallHorizontal),s&&a==="medium"&&(l?n.mediumVertical:n.mediumHorizontal),s&&a==="large"&&(l?n.largeVertical:n.largeHorizontal),s&&i&&n.disabled),e.root.className=ne(...c,e.root.className),mH(e),e},BH=(e,t)=>{"use no memo";const r=WB(),n=bH(),o=yH(),{appearance:i,disabled:s,selected:a,size:l,vertical:c}=e,u=i==="subtle-circular",d=i==="filled-circular",p=u||d,h=[o.base,n.circular,l==="small"&&o.small,l==="medium"&&o.medium,l==="large"&&o.large,u&&o.subtle,a&&u&&o.subtleSelected,s&&u&&o.subtleDisabled,a&&s&&u&&o.subtleDisabledSelected,d&&o.filled,a&&d&&o.filledSelected,s&&d&&o.filledDisabled,a&&s&&d&&o.filledDisabledSelected],m=[n.base,!s&&i==="subtle"&&r.subtle,!s&&i==="transparent"&&r.transparent,!s&&a&&r.selected,s&&r.disabled];return t.className=ne(r.button,c?r.vertical:r.horizontal,l==="small"&&(c?r.smallVertical:r.smallHorizontal),l==="medium"&&(c?r.mediumVertical:r.mediumHorizontal),l==="large"&&(c?r.largeVertical:r.largeHorizontal),...p?h:m,s&&r.disabledCursor,t.className),e},TH=e=>{"use no memo";const t=kH(),r=SH(),{selected:n,size:o}=e;return e.icon&&(e.icon.className=ne(N0.icon,t.base,t[o],n&&t.selected,e.icon.className)),e.contentReservedSpace&&(e.contentReservedSpace.className=ne(vH.content,r.base,o==="large"?r.largeSelected:r.selected,e.icon?r.iconBefore:r.noIconBefore,r.placeholder,e.content.className),e.contentReservedSpaceClassName=e.contentReservedSpace.className),e.content.className=ne(N0.content,r.base,o==="large"&&r.large,n&&(o==="large"?r.largeSelected:r.selected),e.icon?r.iconBefore:r.noIconBefore,e.content.className),e},_t=B.forwardRef((e,t)=>{const r=uH(e,t);return CH(r),Le("useTabStyles_unstable")(r),hH(r)});_t.displayName="Tab";const VB=(e,t)=>{const{wrap:r,truncate:n,block:o,italic:i,underline:s,strikethrough:a,size:l,font:c,weight:u,align:d}=e;return{align:d??"start",block:o??!1,font:c??"base",italic:i??!1,size:l??300,strikethrough:a??!1,truncate:n??!1,underline:s??!1,weight:u??"regular",wrap:r??!0,components:{root:"span"},root:Ce(Je("span",{ref:t,...e}),{elementType:"span"})}},UB=e=>J(e.root,{}),NH={root:"fui-Text"},jH=se({root:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi",Bhrd7zp:"figsok6",fsow6f:"fpgzoln",mc9l5x:"f1w7gpdv",Huce71:"f6juhto",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1gl81tg",ygn44y:"f2jf649"},nowrap:{Huce71:"fz5stix",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp"},truncate:{ygn44y:"f1cmbuwj"},block:{mc9l5x:"ftgm304"},italic:{B80ckks:"f1j4dglz"},underline:{w71qe1:"f13mvf36"},strikethrough:{w71qe1:"fv5q2k7"},strikethroughUnderline:{w71qe1:"f1drk4o6"},base100:{Be2twd7:"f13mqy1h",Bg96gwp:"fcpl73t"},base200:{Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm"},base400:{Be2twd7:"fod5ikn",Bg96gwp:"faaz57k"},base500:{Be2twd7:"f1pp30po",Bg96gwp:"f106mvju"},base600:{Be2twd7:"f1x0m3f5",Bg96gwp:"fb86gi6"},hero700:{Be2twd7:"fojgt09",Bg96gwp:"fcen8rp"},hero800:{Be2twd7:"fccw675",Bg96gwp:"f1ebx5kk"},hero900:{Be2twd7:"f15afnhw",Bg96gwp:"fr3w3wp"},hero1000:{Be2twd7:"fpyltcb",Bg96gwp:"f1ivgwrt"},monospace:{Bahqtrf:"f1fedwem"},numeric:{Bahqtrf:"f1uq0ln5"},weightMedium:{Bhrd7zp:"fdj6btp"},weightSemibold:{Bhrd7zp:"fl43uef"},weightBold:{Bhrd7zp:"flh3ekv"},alignCenter:{fsow6f:"f17mccla"},alignEnd:{fsow6f:"f12ymhq5"},alignJustify:{fsow6f:"f1j59e10"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fpgzoln{text-align:start;}",".f1w7gpdv{display:inline;}",".f6juhto{white-space:normal;}",[".f1gl81tg{overflow:visible;}",{p:-1}],".f2jf649{text-overflow:clip;}",".fz5stix{white-space:nowrap;}",[".f1a3p1vp{overflow:hidden;}",{p:-1}],".f1cmbuwj{text-overflow:ellipsis;}",".ftgm304{display:block;}",".f1j4dglz{font-style:italic;}",".f13mvf36{text-decoration-line:underline;}",".fv5q2k7{text-decoration-line:line-through;}",".f1drk4o6{text-decoration-line:line-through underline;}",".f13mqy1h{font-size:var(--fontSizeBase100);}",".fcpl73t{line-height:var(--lineHeightBase100);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f106mvju{line-height:var(--lineHeightBase500);}",".f1x0m3f5{font-size:var(--fontSizeBase600);}",".fb86gi6{line-height:var(--lineHeightBase600);}",".fojgt09{font-size:var(--fontSizeHero700);}",".fcen8rp{line-height:var(--lineHeightHero700);}",".fccw675{font-size:var(--fontSizeHero800);}",".f1ebx5kk{line-height:var(--lineHeightHero800);}",".f15afnhw{font-size:var(--fontSizeHero900);}",".fr3w3wp{line-height:var(--lineHeightHero900);}",".fpyltcb{font-size:var(--fontSizeHero1000);}",".f1ivgwrt{line-height:var(--lineHeightHero1000);}",".f1fedwem{font-family:var(--fontFamilyMonospace);}",".f1uq0ln5{font-family:var(--fontFamilyNumeric);}",".fdj6btp{font-weight:var(--fontWeightMedium);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".flh3ekv{font-weight:var(--fontWeightBold);}",".f17mccla{text-align:center;}",".f12ymhq5{text-align:end;}",".f1j59e10{text-align:justify;}"]}),GB=e=>{"use no memo";const t=jH();return e.root.className=ne(NH.root,t.root,e.wrap===!1&&t.nowrap,e.truncate&&t.truncate,e.block&&t.block,e.italic&&t.italic,e.underline&&t.underline,e.strikethrough&&t.strikethrough,e.underline&&e.strikethrough&&t.strikethroughUnderline,e.size===100&&t.base100,e.size===200&&t.base200,e.size===400&&t.base400,e.size===500&&t.base500,e.size===600&&t.base600,e.size===700&&t.hero700,e.size===800&&t.hero800,e.size===900&&t.hero900,e.size===1e3&&t.hero1000,e.font==="monospace"&&t.monospace,e.font==="numeric"&&t.numeric,e.weight==="medium"&&t.weightMedium,e.weight==="semibold"&&t.weightSemibold,e.weight==="bold"&&t.weightBold,e.align==="center"&&t.alignCenter,e.align==="end"&&t.alignEnd,e.align==="justify"&&t.alignJustify,e.root.className),e},E=B.forwardRef((e,t)=>{const r=VB(e,t);return GB(r),Le("useTextStyles_unstable")(r),UB(r)});E.displayName="Text";function Cl(e){const{useStyles:t,className:r,displayName:n}=e,o=B.forwardRef((i,s)=>{"use no memo";const a=t(),l=VB(i,s);return GB(l),l.root.className=ne(r,l.root.className,a.root,i.className),UB(l)});return o.displayName=n,o}const zH={root:"fui-Body1"},EH=se({root:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}"]}),Ve=Cl({useStyles:EH,className:zH.root,displayName:"Body1"}),RH={root:"fui-Caption1"},AH=se({root:{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}"]}),at=Cl({useStyles:AH,className:RH.root,displayName:"Caption1"}),FH={root:"fui-Subtitle1"},PH=se({root:{Bahqtrf:"fk6fouc",Be2twd7:"f1pp30po",Bhrd7zp:"fl43uef",Bg96gwp:"f106mvju"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".f106mvju{line-height:var(--lineHeightBase500);}"]}),XB=Cl({useStyles:PH,className:FH.root,displayName:"Subtitle1"}),IH={root:"fui-Title1"},MH=se({root:{Bahqtrf:"fk6fouc",Be2twd7:"fccw675",Bhrd7zp:"fl43uef",Bg96gwp:"f1ebx5kk"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fccw675{font-size:var(--fontSizeHero800);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".f1ebx5kk{line-height:var(--lineHeightHero800);}"]}),YB=Cl({useStyles:MH,className:IH.root,displayName:"Title1"}),DH={root:"fui-Title2"},LH=se({root:{Bahqtrf:"fk6fouc",Be2twd7:"fojgt09",Bhrd7zp:"fl43uef",Bg96gwp:"fcen8rp"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fojgt09{font-size:var(--fontSizeHero700);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".fcen8rp{line-height:var(--lineHeightHero700);}"]}),c1=Cl({useStyles:LH,className:DH.root,displayName:"Title2"}),OH={root:"fui-Title3"},qH=se({root:{Bahqtrf:"fk6fouc",Be2twd7:"f1x0m3f5",Bhrd7zp:"fl43uef",Bg96gwp:"fb86gi6"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f1x0m3f5{font-size:var(--fontSizeBase600);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".fb86gi6{line-height:var(--lineHeightBase600);}"]}),Ze=Cl({useStyles:qH,className:OH.root,displayName:"Title3"}),$H=Ge("r6pzz3z",null,[".r6pzz3z{overflow-y:hidden;overflow-y:clip;scrollbar-gutter:stable;}"]),HH=Ge("r144vlu9",null,[".r144vlu9{overflow-y:hidden;}"]);function WH(){const e=$H(),t=HH(),{targetDocument:r}=mt(),n=B.useCallback(()=>{var i;if(!r)return;var s;Math.floor(r.body.getBoundingClientRect().height)>((s=(i=r.defaultView)===null||i===void 0?void 0:i.innerHeight)!==null&&s!==void 0?s:0)&&(r.documentElement.classList.add(e),r.body.classList.add(t))},[r,e,t]),o=B.useCallback(()=>{r&&(r.documentElement.classList.remove(e),r.body.classList.remove(t))},[r,e,t]);return{disableBodyScroll:n,enableBodyScroll:o}}function VH(e,t){const{findFirstFocusable:r}=gl(),{targetDocument:n}=mt(),o=B.useRef(null);return B.useEffect(()=>{if(!e)return;const i=o.current&&r(o.current);if(i)i.focus();else{var s;(s=o.current)===null||s===void 0||s.focus()}},[r,e,t,n]),o}const UH={open:!1,inertTrapFocus:!1,modalType:"modal",isNestedDialog:!1,unmountOnClose:!0,dialogRef:{current:null},requestOpenChange(){}},u1=bl(void 0),GH=u1.Provider,$n=e=>Ru(u1,(t=UH)=>e(t)),XH=!1,ZB=B.createContext(void 0),KB=ZB.Provider,YH=()=>{var e;return(e=B.useContext(ZB))!==null&&e!==void 0?e:XH},e2=Yi(Ky,{outScale:.85,easing:dt.curveDecelerateMid,duration:dt.durationGentle,exitEasing:dt.curveAccelerateMin,exitDuration:dt.durationGentle}),ZH=e=>{const{children:t,modalType:r="modal",onOpenChange:n,inertTrapFocus:o=!1,unmountOnClose:i=!0}=e,s=or("dialog-title-"),[a,l]=KH(t),[c,u]=xn({state:e.open,defaultState:e.defaultOpen,initialState:!1}),d=ye(y=>{n==null||n(y.event,y),y.event.isDefaultPrevented()||u(y.open)}),p=VH(c,r),{modalAttributes:h,triggerAttributes:m}=C5({trapFocus:r!=="non-modal",legacyTrapFocus:!o}),g=Wy(u1);return{components:{surfaceMotion:e2},inertTrapFocus:o,open:c,modalType:r,content:l,trigger:a,requestOpenChange:d,dialogTitleId:s,isNestedDialog:g,unmountOnClose:i,dialogRef:p,modalAttributes:h,triggerAttributes:m,surfaceMotion:Yy(e.surfaceMotion,{elementType:e2,defaultProps:{visible:c,appear:i,unmountOnExit:i}})}};function KH(e){const t=B.Children.toArray(e);switch(t.length){case 2:return t;case 1:return[void 0,t[0]];default:return[void 0,void 0]}}const QB=B.createContext(void 0);function QH(){return B.useContext(QB)}const JH=B.forwardRef((e,t)=>B.createElement(QB.Provider,{value:t},e.children)),eW=(e,t)=>J(GH,{value:t.dialog,children:rt(KB,{value:t.dialogSurface,children:[e.trigger,e.content&&J(e.surfaceMotion,{children:J(JH,{children:e.content})})]})});function tW(e){const{modalType:t,open:r,dialogRef:n,dialogTitleId:o,isNestedDialog:i,inertTrapFocus:s,requestOpenChange:a,modalAttributes:l,triggerAttributes:c,unmountOnClose:u}=e;return{dialog:{open:r,modalType:t,dialogRef:n,dialogTitleId:o,isNestedDialog:i,inertTrapFocus:s,modalAttributes:l,triggerAttributes:c,unmountOnClose:u,requestOpenChange:a},dialogSurface:!1}}const JB=B.memo(e=>{const t=ZH(e),r=tW(t);return eW(t,r)});JB.displayName="Dialog";const rW=e=>{const t=YH(),{children:r,disableButtonEnhancement:n=!1,action:o=t?"close":"open"}=e,i=Dy(r),s=$n(d=>d.requestOpenChange),{triggerAttributes:a}=C5(),l=ye(d=>{var p,h;i==null||(p=(h=i.props).onClick)===null||p===void 0||p.call(h,d),d.isDefaultPrevented()||s({event:d,type:"triggerClick",open:o==="open"})}),c={...i==null?void 0:i.props,ref:My(i),onClick:l,...a},u=ap((i==null?void 0:i.type)==="button"||(i==null?void 0:i.type)==="a"?i.type:"div",{...c,type:"button"});return{children:t5(r,n?c:u)}},nW=e=>e.children,d1=e=>{const t=rW(e);return nW(t)};d1.displayName="DialogTrigger";d1.isFluentTriggerComponent=!0;const oW=(e,t)=>{const{position:r="end",fluid:n=!1}=e;return{components:{root:"div"},root:Ce(Je("div",{ref:t,...e}),{elementType:"div"}),position:r,fluid:n}},iW=e=>J(e.root,{}),sW={root:"fui-DialogActions"},aW=Ge("rhfpeu0",null,{r:[".rhfpeu0{gap:8px;height:fit-content;box-sizing:border-box;display:flex;grid-row-start:3;grid-row-end:3;}"],s:["@media screen and (max-width: 480px){.rhfpeu0{flex-direction:column;justify-self:stretch;}}"]}),lW=se({gridPositionEnd:{Bdqf98w:"f1a7i8kp",Br312pm:"fd46tj4",Bw0ie65:"fsyjsko",Btsd7tp:"f1n00o3b",ufxxby:"f1mvsp37",Bq5p579:"flbz1vp"},gridPositionStart:{Bdqf98w:"fsxvdwy",Br312pm:"fwpfdsa",Bw0ie65:"f1e2fz10",Ew0qkd:"f119phc2",ufxxby:"f1j719yo",Bq5p579:"flbz1vp"},fluidStart:{Bw0ie65:"fsyjsko"},fluidEnd:{Br312pm:"fwpfdsa"}},{d:[".f1a7i8kp{justify-self:end;}",".fd46tj4{grid-column-start:2;}",".fsyjsko{grid-column-end:4;}",".fsxvdwy{justify-self:start;}",".fwpfdsa{grid-column-start:1;}",".f1e2fz10{grid-column-end:2;}"],m:[["@media screen and (max-width: 480px){.f1n00o3b{grid-column-start:1;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.f1mvsp37{grid-row-start:4;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.flbz1vp{grid-row-end:auto;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.f119phc2{grid-column-end:4;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.f1j719yo{grid-row-start:3;}}",{m:"screen and (max-width: 480px)"}]]}),cW=e=>{"use no memo";const t=aW(),r=lW();return e.root.className=ne(sW.root,t,e.position==="start"&&r.gridPositionStart,e.position==="end"&&r.gridPositionEnd,e.fluid&&e.position==="start"&&r.fluidStart,e.fluid&&e.position==="end"&&r.fluidEnd,e.root.className),e},e3=B.forwardRef((e,t)=>{const r=oW(e,t);return cW(r),Le("useDialogActionsStyles_unstable")(r),iW(r)});e3.displayName="DialogActions";const uW=(e,t)=>{var r;return{components:{root:"div"},root:Ce(Je((r=e.as)!==null&&r!==void 0?r:"div",{ref:t,...e}),{elementType:"div"})}},dW=e=>J(e.root,{}),fW={root:"fui-DialogBody"},hW=Ge("rhwx3p8",null,{r:[".rhwx3p8{overflow:unset;gap:8px;display:grid;max-height:calc(100vh - 2 * 24px);max-height:calc(100dvh - 2 * 24px);box-sizing:border-box;grid-template-rows:auto 1fr;grid-template-columns:1fr 1fr auto;}"],s:["@media screen and (max-width: 480px){.rhwx3p8{max-width:100vw;grid-template-rows:auto 1fr auto;}}","@media screen and (max-height: 359px){.rhwx3p8{max-height:unset;}}"]}),pW=e=>{"use no memo";const t=hW();return e.root.className=ne(fW.root,t,e.root.className),e},t3=B.forwardRef((e,t)=>{const r=uW(e,t);return pW(r),Le("useDialogBodyStyles_unstable")(r),dW(r)});t3.displayName="DialogBody";const t2={root:"fui-DialogTitle",action:"fui-DialogTitle__action"},gW=Ge("rxjm636",null,[".rxjm636{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase500);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase500);margin:0;grid-row-start:1;grid-row-end:1;grid-column-start:1;grid-column-end:3;}"]),mW=se({rootWithoutAction:{Bw0ie65:"fsyjsko"}},{d:[".fsyjsko{grid-column-end:4;}"]}),vW=Ge("r13kcrze",null,[".r13kcrze{grid-row-start:1;grid-row-end:1;grid-column-start:3;justify-self:end;align-self:start;}"]),yW=Ge("r2avt6e","roj2bbc",{r:[".r2avt6e{overflow:visible;padding:0;border-style:none;position:relative;box-sizing:content-box;background-color:inherit;color:inherit;font-family:inherit;font-size:inherit;cursor:pointer;line-height:0;-webkit-appearance:button;text-align:unset;}",".r2avt6e:focus{outline-style:none;}",".r2avt6e:focus-visible{outline-style:none;}",".r2avt6e[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r2avt6e[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".roj2bbc{overflow:visible;padding:0;border-style:none;position:relative;box-sizing:content-box;background-color:inherit;color:inherit;font-family:inherit;font-size:inherit;cursor:pointer;line-height:0;-webkit-appearance:button;text-align:unset;}",".roj2bbc:focus{outline-style:none;}",".roj2bbc:focus-visible{outline-style:none;}",".roj2bbc[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.roj2bbc[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r2avt6e[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.roj2bbc[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),bW=e=>{"use no memo";const t=gW(),r=vW(),n=mW();return e.root.className=ne(t2.root,t,!e.action&&n.rootWithoutAction,e.root.className),e.action&&(e.action.className=ne(t2.action,r,e.action.className)),e},xW=(e,t)=>{const{action:r}=e,n=$n(i=>i.modalType),o=yW();return{components:{root:"h2",action:"div"},root:Ce(Je("h2",{ref:t,id:$n(i=>i.dialogTitleId),...e}),{elementType:"h2"}),action:qe(r,{renderByDefault:n==="non-modal",defaultProps:{children:B.createElement(d1,{disableButtonEnhancement:!0,action:"close"},B.createElement("button",{type:"button",className:o,"aria-label":"close"},B.createElement(r7,null)))},elementType:"div"})}},wW=e=>rt(B.Fragment,{children:[J(e.root,{children:e.root.children}),e.action&&J(e.action,{})]}),r3=B.forwardRef((e,t)=>{const r=xW(e,t);return bW(r),Le("useDialogTitleStyles_unstable")(r),wW(r)});r3.displayName="DialogTitle";const r2=z7,kW=(e,t)=>{const r=QH(),n=$n(y=>y.modalType),o=$n(y=>y.isNestedDialog),i=$n(y=>y.modalAttributes),s=$n(y=>y.dialogRef),a=$n(y=>y.requestOpenChange),l=$n(y=>y.dialogTitleId),c=$n(y=>y.open),u=$n(y=>y.unmountOnClose),d=ye(y=>{if(ep(e.backdrop)){var v,b;(v=(b=e.backdrop).onClick)===null||v===void 0||v.call(b,y)}n==="modal"&&!y.isDefaultPrevented()&&a({event:y,open:!1,type:"backdropClick"})}),p=ye(y=>{var v;(v=e.onKeyDown)===null||v===void 0||v.call(e,y),y.key===Au&&!y.isDefaultPrevented()&&(a({event:y,open:!1,type:"escapeKeyDown"}),y.preventDefault())}),h=qe(e.backdrop,{renderByDefault:n!=="non-modal",defaultProps:{"aria-hidden":"true"},elementType:"div"});h&&(h.onClick=d);const{disableBodyScroll:m,enableBodyScroll:g}=WH();return nr(()=>{if(!c){g();return}if(!(o||n==="non-modal"))return m(),()=>g()},[c,n,o,m,g]),{components:{backdrop:"div",root:"div",backdropMotion:r2},open:c,backdrop:h,isNestedDialog:o,unmountOnClose:u,mountNode:e.mountNode,root:Ce(Je("div",{tabIndex:-1,role:n==="alert"?"alertdialog":"dialog","aria-modal":n!=="non-modal","aria-labelledby":e["aria-label"]?void 0:l,"aria-hidden":!u&&!c?!0:void 0,...e,...i,onKeyDown:p,ref:yt(t,r,s)}),{elementType:"div"}),backdropMotion:Yy(e.backdropMotion,{elementType:r2,defaultProps:{appear:u,visible:c}}),transitionStatus:void 0}},SW=(e,t)=>rt(Pu,{mountNode:e.mountNode,children:[e.backdrop&&e.backdropMotion&&J(e.backdropMotion,{children:J(e.backdrop,{})}),J(KB,{value:t.dialogSurface,children:J(e.root,{})})]}),n2={root:"fui-DialogSurface",backdrop:"fui-DialogSurface__backdrop"},CW=Ge("r1u3t6p6","r5coedp",{r:[".r1u3t6p6{inset:0;padding:24px;margin:auto;border-style:none;overflow:unset;border:1px solid var(--colorTransparentStroke);border-radius:var(--borderRadiusXLarge);display:block;-webkit-user-select:unset;-moz-user-select:unset;user-select:unset;visibility:unset;position:fixed;height:fit-content;max-width:600px;max-height:100vh;max-height:100dvh;box-sizing:border-box;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);box-shadow:var(--shadow64);}",".r1u3t6p6:focus{outline-style:none;}",".r1u3t6p6:focus-visible{outline-style:none;}",".r1u3t6p6[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r1u3t6p6[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".r5coedp{inset:0;padding:24px;margin:auto;border-style:none;overflow:unset;border:1px solid var(--colorTransparentStroke);border-radius:var(--borderRadiusXLarge);display:block;-webkit-user-select:unset;-moz-user-select:unset;user-select:unset;visibility:unset;position:fixed;height:fit-content;max-width:600px;max-height:100vh;max-height:100dvh;box-sizing:border-box;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);box-shadow:var(--shadow64);}",".r5coedp:focus{outline-style:none;}",".r5coedp:focus-visible{outline-style:none;}",".r5coedp[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r5coedp[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r1u3t6p6[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media screen and (max-width: 480px){.r1u3t6p6{max-width:100vw;}}","@media screen and (max-height: 359px){.r1u3t6p6{overflow-y:auto;padding-right:calc(24px - 4px);border-right-width:4px;border-top-width:4px;border-bottom-width:4px;}}","@media (forced-colors: active){.r5coedp[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}","@media screen and (max-width: 480px){.r5coedp{max-width:100vw;}}","@media screen and (max-height: 359px){.r5coedp{overflow-y:auto;padding-left:calc(24px - 4px);border-left-width:4px;border-top-width:4px;border-bottom-width:4px;}}"]}),_W=Ge("r1e18s3l",null,[".r1e18s3l{inset:0px;background-color:var(--colorBackgroundOverlay);position:fixed;}"]),BW=se({nestedDialogBackdrop:{De3pzq:"f1c21dwh"},dialogHidden:{Bkecrkj:"f1aehjj5"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1aehjj5{pointer-events:none;}"]}),TW=e=>{"use no memo";const{isNestedDialog:t,root:r,backdrop:n,open:o,unmountOnClose:i}=e,s=CW(),a=_W(),l=BW(),c=!i&&!o;return r.className=ne(n2.root,s,c&&l.dialogHidden,r.className),n&&(n.className=ne(n2.backdrop,a,t&&l.nestedDialogBackdrop,c&&l.dialogHidden,n.className)),e};function NW(e){return{dialogSurface:!0}}const n3=B.forwardRef((e,t)=>{const r=kW(e,t),n=NW();return TW(r),Le("useDialogSurfaceStyles_unstable")(r),SW(r,n)});n3.displayName="DialogSurface";const jW=(e,t)=>{var r;return{components:{root:"div"},root:Ce(Je((r=e.as)!==null&&r!==void 0?r:"div",{ref:t,...e}),{elementType:"div"})}},zW=e=>J(e.root,{}),EW={root:"fui-DialogContent"},RW=Ge("r1v5zwsm",null,{r:[".r1v5zwsm{padding:var(--strokeWidthThick);margin:calc(var(--strokeWidthThick) * -1);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);overflow-y:auto;min-height:32px;box-sizing:border-box;grid-row-start:2;grid-row-end:2;grid-column-start:1;grid-column-end:4;}"],s:["@media screen and (max-height: 359px){.r1v5zwsm{overflow-y:unset;}}"]}),AW=e=>{"use no memo";const t=RW();return e.root.className=ne(EW.root,t,e.root.className),e},o3=B.forwardRef((e,t)=>{const r=jW(e,t);return AW(r),Le("useDialogContentStyles_unstable")(r),zW(r)});o3.displayName="DialogContent";const FW=e=>e<=0?1:e,PW=(e,t)=>e===void 0?e:e<0?0:e>t?t:e,IW=(e,t)=>{const r=PB(),n=r==null?void 0:r.validationState,{color:o=n==="error"||n==="warning"||n==="success"?n:"brand",shape:i="rounded",thickness:s="medium"}=e;var a;const l=FW((a=e.max)!==null&&a!==void 0?a:1),c=PW(e.value,l),u=Ce(Je("div",{ref:t,role:"progressbar","aria-valuemin":c!==void 0?0:void 0,"aria-valuemax":c!==void 0?l:void 0,"aria-valuenow":c,"aria-labelledby":r==null?void 0:r.labelId,...e}),{elementType:"div"});r&&(r.validationMessageId||r.hintId)&&(u["aria-describedby"]=[r==null?void 0:r.validationMessageId,r==null?void 0:r.hintId,u["aria-describedby"]].filter(Boolean).join(" "));const d=Ce(e.bar,{elementType:"div"});return{color:o,max:l,shape:i,thickness:s,value:c,components:{root:"div",bar:"div"},root:u,bar:d}},MW=e=>J(e.root,{children:e.bar&&J(e.bar,{})}),o2={root:"fui-ProgressBar",bar:"fui-ProgressBar__bar"},DW=.01,LW=se({root:{mc9l5x:"ftgm304",De3pzq:"f18f03hv",a9b677:"fly5x3f",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp",Bomf52o:"f1skxd4g"},rounded:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5"},square:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f1fabniw"},medium:{Bqenvij:"f4t8t6x"},large:{Bqenvij:"f6ywr7j"}},{d:[".ftgm304{display:block;}",".f18f03hv{background-color:var(--colorNeutralBackground6);}",".fly5x3f{width:100%;}",[".f1a3p1vp{overflow:hidden;}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],[".f1fabniw{border-radius:var(--borderRadiusNone);}",{p:-1}],".f4t8t6x{height:2px;}",".f6ywr7j{height:4px;}"],m:[["@media screen and (forced-colors: active){.f1skxd4g{background-color:CanvasText;}}",{m:"screen and (forced-colors: active)"}]]}),OW=se({base:{Bomf52o:"f1tnpuu0",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f12b9xdw",Bqenvij:"f1l02sjl"},nonZeroDeterminate:{Bmy1vo4:"fjt6zfz",B3o57yi:"f1wofebd",Bkqvd7p:"fv71qf3"},indeterminate:{B2u0y6b:"fa0wk36",qhf8xq:"f10pi13n",Bcmaq0h:["fpo0yib","f1u5hf6c"],Bv12yb3:["fwd2bol","f14gig94"],vin17d:"f1a27w2r",Ezkn3b:"f452v7t",w3vfg9:"f1cpbl36",jpy9cc:"f3z2g5w",Bqo2lbl:"fz5izi4",B6plc1d:"fv40pdu",I82g5a:"f1uj6jbf"},brand:{De3pzq:"ftywsgz"},error:{De3pzq:"fdl5y0r"},warning:{De3pzq:"f1s438gw"},success:{De3pzq:"flxk52p"}},{m:[["@media screen and (forced-colors: active){.f1tnpuu0{background-color:Highlight;}}",{m:"screen and (forced-colors: active)"}],["@media screen and (prefers-reduced-motion: reduce){.f3z2g5w{max-width:100%;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.fz5izi4{animation-iteration-count:infinite;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.fv40pdu{animation-duration:3s;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1uj6jbf{animation-name:ftc26vs;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]],d:[[".f12b9xdw{border-radius:inherit;}",{p:-1}],".f1l02sjl{height:100%;}",".fjt6zfz{transition-property:width;}",".f1wofebd{transition-duration:0.3s;}",".fv71qf3{transition-timing-function:ease;}",".fa0wk36{max-width:33%;}",".f10pi13n{position:relative;}",`.fpo0yib{background-image:linear-gradient(
124
+ to right,
125
+ var(--colorNeutralBackground6) 0%,
126
+ var(--colorTransparentBackground) 50%,
127
+ var(--colorNeutralBackground6) 100%
128
+ );}`,`.f1u5hf6c{background-image:linear-gradient(
129
+ to left,
130
+ var(--colorNeutralBackground6) 0%,
131
+ var(--colorTransparentBackground) 50%,
132
+ var(--colorNeutralBackground6) 100%
133
+ );}`,".fwd2bol{animation-name:f1keuaan;}",".f14gig94{animation-name:f10x8f8u;}",".f1a27w2r{animation-duration:3s;}",".f452v7t{animation-timing-function:linear;}",".f1cpbl36{animation-iteration-count:infinite;}",".ftywsgz{background-color:var(--colorCompoundBrandBackground);}",".fdl5y0r{background-color:var(--colorPaletteRedBackground3);}",".f1s438gw{background-color:var(--colorPaletteDarkOrangeBackground3);}",".flxk52p{background-color:var(--colorPaletteGreenBackground3);}"],k:["@keyframes f1keuaan{0%{left:-33%;}100%{left:100%;}}","@keyframes f10x8f8u{0%{right:-33%;}100%{right:100%;}}","@keyframes ftc26vs{0%{opacity:.2;}50%{opacity:1;}100%{opacity:.2;}}"]}),qW=e=>{"use no memo";const{color:t,max:r,shape:n,thickness:o,value:i}=e,s=LW(),a=OW();return e.root.className=ne(o2.root,s.root,s[n],s[o],e.root.className),e.bar&&(e.bar.className=ne(o2.bar,a.base,a.brand,i===void 0&&a.indeterminate,i!==void 0&&i>DW&&a.nonZeroDeterminate,t&&i!==void 0&&a[t],e.bar.className)),e.bar&&i!==void 0&&(e.bar.style={width:Math.min(100,Math.max(0,i/r*100))+"%",...e.bar.style}),e},i3=B.forwardRef((e,t)=>{const r=IW(e,t);return qW(r),Le("useProgressBarStyles_unstable")(r),MW(r)});i3.displayName="ProgressBar";const Hl=()=>{},s3={allRowsSelected:!1,clearRows:Hl,deselectRow:Hl,isRowSelected:()=>!1,selectRow:Hl,selectedRows:new Set,someRowsSelected:!1,toggleAllRows:Hl,toggleRow:Hl,selectionMode:"multiselect"};function $W(e){"use no memo";return t=>HW(t,e)}function HW(e,t){const{items:r,getRowId:n}=e,{selectionMode:o,defaultSelectedItems:i,selectedItems:s,onSelectionChange:a}=t,[l,c]=bP({selectionMode:o,defaultSelectedItems:i,selectedItems:s,onSelectionChange:a}),u=B.useMemo(()=>{const x=new Set;for(let S=0;S<r.length;S++){var k;x.add((k=n==null?void 0:n(r[S]))!==null&&k!==void 0?k:S)}return x},[r,n]),d=B.useMemo(()=>{if(o==="single"){const k=Array.from(l)[0];return u.has(k)}if(l.size<u.size||u.size===0)return!1;let x=!0;return u.forEach(k=>{l.has(k)||(x=!1)}),x},[u,l,o]),p=B.useMemo(()=>{if(l.size<=0)return!1;let x=!1;return u.forEach(k=>{l.has(k)&&(x=!0)}),x},[u,l]),h=ye(x=>{c.toggleAllItems(x,r.map((k,S)=>{var _;return(_=n==null?void 0:n(k))!==null&&_!==void 0?_:S}))}),m=ye((x,k)=>c.toggleItem(x,k)),g=ye((x,k)=>c.deselectItem(x,k)),y=ye((x,k)=>c.selectItem(x,k)),v=x=>c.isSelected(x),b=ye(x=>c.clearItems(x));return{...e,selection:{selectionMode:o,someRowsSelected:p,allRowsSelected:d,selectedRows:l,toggleRow:m,toggleAllRows:h,clearRows:b,deselectRow:g,selectRow:y,isRowSelected:v}}}const j0=()=>{},a3={getSortDirection:()=>"ascending",setColumnSort:j0,sort:e=>[...e],sortColumn:void 0,sortDirection:"ascending",toggleColumnSort:j0};function WW(e){"use no memo";return t=>VW(t,e)}function VW(e,t){const{columns:r}=e,{sortState:n,defaultSortState:o,onSortChange:i=j0}=t,[s,a]=xn({initialState:{sortDirection:"ascending",sortColumn:void 0},defaultState:o,state:n}),{sortColumn:l,sortDirection:c}=s,u=ye(i),d=B.useCallback((g,y)=>{a(v=>{const b={...v,sortColumn:y};return v.sortColumn===y?b.sortDirection=v.sortDirection==="ascending"?"descending":"ascending":b.sortDirection="ascending",u==null||u(g,b),b})},[u,a]),p=(g,y,v)=>{const b={sortColumn:y,sortDirection:v};u==null||u(g,b),a(b)},h=B.useCallback(g=>g.slice().sort((y,v)=>{const b=r.find(k=>k.columnId===l);if(!(b!=null&&b.compare))return 0;const x=c==="ascending"?1:-1;return b.compare(y.item,v.item)*x}),[r,l,c]);return{...e,sort:{sort:h,sortColumn:l,sortDirection:c,setColumnSort:p,toggleColumnSort:d,getSortDirection:g=>l===g?c:void 0}}}const UW=(e,t)=>{const r=ye(n=>{var o;(o=e.onClick)===null||o===void 0||o.call(e,n),n.stopPropagation()});return{components:{root:"div"},root:Ce(Je("div",{ref:t,...e,onClick:r}),{elementType:"div"})}},GW=e=>J(e.root,{}),XW={root:"fui-TableResizeHandle"},YW=se({root:{qhf8xq:"f1euv43f",j35jbq:["f1e31b4d","f1vgc2s3"],Bhzewxz:"f15twtuk",B5kzvoi:"f1yab3r1",a9b677:"fjw5fx7",jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"fg06o1j",Bceei9c:"fc3en1c",abs64n:"fk73vx1",Bmy1vo4:"f13u1uyl",B3o57yi:"fezquic",Bj3rh1h:"f19g0ac",B3cna0y:"f1tkae59",Brovlpu:"ftqa4ok",B7zu5sd:"f15pjodv",Bsft5z2:"f1rcdj94",ap17g6:"f2gz7yw",a2br6o:"ff2ryt5",E3zdtr:"f1mdlcz9",Eqx8gd:["f10awi5f","f1nzedbg"],bn5sak:"frwkxtg",By385i5:"fo72kxq",Bjyk6c5:"fdlpgxj"}},{d:[".f1euv43f{position:absolute;}",".f1e31b4d{right:0;}",".f1vgc2s3{left:0;}",".f15twtuk{top:0;}",".f1yab3r1{bottom:0;}",".fjw5fx7{width:16px;}",[".fg06o1j{margin:0 -8px;}",{p:-1}],".fc3en1c{cursor:col-resize;}",".fk73vx1{opacity:0;}",".f13u1uyl{transition-property:opacity;}",".fezquic{transition-duration:.2s;}",".f19g0ac{z-index:1;}",'.f1rcdj94::after{content:" ";}',".f2gz7yw::after{display:block;}",".ff2ryt5::after{width:1px;}",".f1mdlcz9::after{position:absolute;}",".f10awi5f::after{left:50%;}",".f1nzedbg::after{right:50%;}",".frwkxtg::after{top:0;}",".fo72kxq::after{bottom:0;}",".fdlpgxj::after{background-color:var(--colorNeutralStroke1);}"],f:[".f1tkae59:focus{opacity:1;}",".ftqa4ok:focus{outline-style:none;}"],h:[".f15pjodv:hover{opacity:1;}"]}),ZW=e=>{"use no memo";const t=YW();return e.root.className=ne(XW.root,t.root,e.root.className),e},l3=B.forwardRef((e,t)=>{const r=UW(e,t);return ZW(r),Le("useTableResizeHandleStyles_unstable")(r),GW(r)});l3.displayName="TableResizeHandle";function KW(){const[e,t]=B.useState(0),r=B.useRef(void 0),n=B.useRef(null),{targetDocument:o}=mt(),i=B.useCallback(()=>{var a;const l=(a=r.current)===null||a===void 0?void 0:a.getBoundingClientRect().width;t(l||0)},[]),s=B.useCallback(a=>{if(o&&(!a&&n.current&&r.current&&n.current.unobserve(r.current),r.current=void 0,a!=null&&a.parentElement)){var l;r.current=a.parentElement,i(),(l=n.current)===null||l===void 0||l.observe(r.current)}},[o,i]);return B.useEffect(()=>{if(n.current=QW(o,i),!(!r.current||!n.current))return n.current.observe(r.current),()=>{var a;(a=n.current)===null||a===void 0||a.disconnect()}},[i,o]),{width:e,measureElementRef:s}}function QW(e,t){var r;return!(e==null||(r=e.defaultView)===null||r===void 0)&&r.ResizeObserver?new e.defaultView.ResizeObserver(t):null}function JW(e){const t=B.useRef(0),r=B.useRef(0),n=B.useRef(void 0),[o,i]=B.useState(!1),{targetDocument:s}=mt(),{getColumnWidth:a,setColumnWidth:l}=e,c=B.useCallback(m=>{const{clientX:g}=iw(m),y=g-t.current;r.current+=y,n.current&&l(m,{columnId:n.current,width:r.current}),t.current=g},[l]),[u]=U_(),d=B.useCallback(m=>{u(()=>c(m))},[u,c]),p=B.useCallback(m=>{u0(m)&&(s==null||s.removeEventListener("mouseup",p),s==null||s.removeEventListener("mousemove",d)),c0(m)&&(s==null||s.removeEventListener("touchend",p),s==null||s.removeEventListener("touchmove",d)),i(!1)},[d,s]);return{getOnMouseDown:B.useCallback(m=>g=>{if(r.current=a(m),t.current=iw(g).clientX,n.current=m,u0(g)){if(g.target!==g.currentTarget||g.button!==0)return;s==null||s.addEventListener("mouseup",p),s==null||s.addEventListener("mousemove",d),i(!0)}c0(g)&&(s==null||s.addEventListener("touchend",p),s==null||s.addEventListener("touchmove",d),i(!0))},[a,d,p,s]),dragging:o}}const eV=150,tV=100;function z0(e,t=[],r={}){let n=!1;const o=new Map(t.map(s=>[s.columnId,s])),i=e.map(s=>{const a=o.get(s.columnId);if(a){var l;const{idealWidth:m=a.idealWidth,minWidth:g=a.minWidth,padding:y=a.padding}=(l=r[s.columnId])!==null&&l!==void 0?l:{};return m!==a.idealWidth||g!==a.minWidth||y!==a.padding?(n=!0,{...a,idealWidth:m,width:m,minWidth:g,padding:y}):a}var c;const{defaultWidth:u,idealWidth:d=eV,minWidth:p=tV,padding:h}=(c=r[s.columnId])!==null&&c!==void 0?c:{};return n=!0,{columnId:s.columnId,width:Math.max(u??d,p),minWidth:p,idealWidth:Math.max(u??d,p),padding:h??16}});if(i.length!==t.length||n){const s=i.find(a=>a.width>a.idealWidth);s&&(s.width=s.idealWidth),n=!0}return n?i:t}function au(e,t){return e.find(r=>r.columnId===t)}function Ig(e,t){return e[t]}function rV(e){return e.reduce((t,r)=>t+r.width+r.padding,0)}function nV(e,t){const r=au(e,t);var n;return(n=r==null?void 0:r.width)!==null&&n!==void 0?n:0}function Ec(e,t,r,n){const o=au(e,t);if(!o||(o==null?void 0:o[r])===n)return e;const i={...o,[r]:n};return e.reduce((a,l)=>l.columnId===i.columnId?[...a,i]:[...a,l],[])}function yd(e,t){let r=e;const n=rV(r);if(n<t){let o=t-n,i=0;for(;i<r.length&&o>0;){const s=Ig(r,i);if(!s)break;const a=Math.min(s.idealWidth-s.width,o);if(r=Ec(r,s.columnId,"width",s.width+a),o-=a,i===r.length-1&&o!==0){const l=Ig(r,i);l&&(r=Ec(r,l.columnId,"width",l.width+o))}i++}}else if(n>=t){let o=n-t,i=r.length-1;for(;i>=0&&o>0;){const s=Ig(r,i);if(!s){i--;continue}if(s.width>s.minWidth){const a=Math.min(s.width-s.minWidth,o);o-=a,r=Ec(r,s.columnId,"width",s.width-a)}i--}}return r}const oV=e=>(t,r)=>{switch(r.type){case"CONTAINER_WIDTH_UPDATED":return{...t,containerWidth:r.containerWidth,columnWidthState:e?yd(t.columnWidthState,r.containerWidth):t.columnWidthState};case"COLUMNS_UPDATED":const n=z0(r.columns,t.columnWidthState,t.columnSizingOptions);return{...t,columns:r.columns,columnWidthState:e?yd(n,t.containerWidth):n};case"COLUMN_SIZING_OPTIONS_UPDATED":const o=z0(t.columns,t.columnWidthState,r.columnSizingOptions);return{...t,columnSizingOptions:r.columnSizingOptions,columnWidthState:e?yd(o,t.containerWidth):o};case"SET_COLUMN_WIDTH":const{columnId:i,width:s}=r,{containerWidth:a}=t,l=au(t.columnWidthState,i);let c=[...t.columnWidthState];return l?(c=Ec(c,i,"width",s),c=Ec(c,i,"idealWidth",s),e&&(c=yd(c,a)),{...t,columnWidthState:c}):t}};function iV(e,t,r={}){const{onColumnResize:n,columnSizingOptions:o,autoFitColumns:i=!0}=r,s=B.useMemo(()=>oV(i),[i]),[a,l]=B.useReducer(s,{columns:e,containerWidth:0,columnWidthState:z0(e,void 0,o),columnSizingOptions:o});nr(()=>{l({type:"CONTAINER_WIDTH_UPDATED",containerWidth:t})},[t]),nr(()=>{l({type:"COLUMNS_UPDATED",columns:e})},[e]),nr(()=>{l({type:"COLUMN_SIZING_OPTIONS_UPDATED",columnSizingOptions:o})},[o]);const c=ye((u,d)=>{let{width:p}=d;const{columnId:h}=d,m=au(a.columnWidthState,h);m&&(p=Math.max(m.minWidth||0,p),n&&n(u,{columnId:h,width:p}),l({type:"SET_COLUMN_WIDTH",columnId:h,width:p}))});return{getColumnById:B.useCallback(u=>au(a.columnWidthState,u),[a.columnWidthState]),getColumns:B.useCallback(()=>a.columnWidthState,[a.columnWidthState]),getColumnWidth:B.useCallback(u=>nV(a.columnWidthState,u),[a.columnWidthState]),setColumnWidth:c}}const bd=20,sV=oL,i2=1/4;function aV(e){const[t,r]=B.useState(),n=B.useRef(void 0),{findPrevFocusable:o}=gl(),i=B.useRef(e);B.useEffect(()=>{i.current=e},[e]);const[s]=B.useState(()=>new Map),a=ye(h=>{if(!t)return;const m=i.current.getColumnWidth(t),g=h.getModifierState(sV),y=()=>{h.preventDefault(),h.stopPropagation()};switch(h.key){case A5:y(),i.current.setColumnWidth(h.nativeEvent,{columnId:t,width:m-(g?bd*i2:bd)});return;case F5:y(),i.current.setColumnWidth(h.nativeEvent,{columnId:t,width:m+(g?bd*i2:bd)});return;case Qn:case Mi:case Au:var v,b;y(),(b=s.get(t))===null||b===void 0||(v=b.current)===null||v===void 0||v.blur();break}}),l=B.useCallback(h=>{var m,g;r(h),(m=n.current)===null||m===void 0||m.call(n,h,!0);const y=(g=s.get(h))===null||g===void 0?void 0:g.current;y&&(y.setAttribute("tabindex","-1"),y.tabIndex=-1,y.focus())},[s]),c=B.useCallback(()=>{var h,m;if(!t)return;(h=n.current)===null||h===void 0||h.call(n,t,!1);const g=(m=s.get(t))===null||m===void 0?void 0:m.current;if(g){var y;(y=o(g))===null||y===void 0||y.focus(),g.removeAttribute("tabindex")}r(void 0)},[t,o,s]),u=(h,m)=>{n.current=m,t?h&&t!==h?(l(h),r(h)):c():l(h)},d=B.useCallback(h=>{const m=s.get(h)||B.createRef();return s.set(h,m),m},[s]),p=Es({focusable:{ignoreKeydown:{ArrowLeft:!0,ArrowRight:!0}}});return{toggleInteractiveMode:u,columnId:t,getKeyboardResizingProps:B.useCallback((h,m)=>({onKeyDown:a,onBlur:c,ref:d(h),role:"separator","aria-label":"Resize column","aria-valuetext":`${m} pixels`,"aria-hidden":h!==t,tabIndex:h===t?0:void 0,...p}),[t,c,d,a,p])}}const c3={getColumnWidths:()=>[],getOnMouseDown:()=>()=>null,setColumnWidth:()=>null,getTableProps:()=>({}),getTableHeaderCellProps:()=>({style:{},columnId:""}),getTableCellProps:()=>({style:{},columnId:""}),enableKeyboardMode:()=>()=>null};function lV(e){"use no memo";return t=>cV(t,{autoFitColumns:!0,...e})}function s2(e,t){const r=e.width;return{width:r,minWidth:r,maxWidth:r,...t?{pointerEvents:"none"}:{}}}function cV(e,t={}){const{columns:r}=e,{width:n,measureElementRef:o}=KW(),i=iV(r,n+((t==null?void 0:t.containerWidthOffset)||0),t),s=JW(i),{toggleInteractiveMode:a,getKeyboardResizingProps:l}=aV(i),{autoFitColumns:c}=t,u=B.useCallback((y,v)=>b=>{b.preventDefault(),b.nativeEvent.stopPropagation(),a(y,v)},[a]),{getColumnById:d,setColumnWidth:p,getColumns:h}=i,{getOnMouseDown:m,dragging:g}=s;return{...e,tableRef:o,columnSizing_unstable:{getOnMouseDown:m,setColumnWidth:(y,v)=>p(void 0,{columnId:y,width:v}),getColumnWidths:h,getTableProps:(y={})=>({...y,style:{minWidth:"fit-content",...y.style||{}}}),getTableHeaderCellProps:B.useCallback(y=>{var v;const b=d(y),k=((v=r[r.length-1])===null||v===void 0?void 0:v.columnId)===y&&c?null:B.createElement(l3,{onMouseDown:m(y),onTouchStart:m(y),...l(y,(b==null?void 0:b.width)||0)});return b?{style:s2(b,g),aside:k}:{}},[d,r,g,l,m,c]),getTableCellProps:B.useCallback(y=>{const v=d(y);return v?{style:s2(v)}:{}},[d]),enableKeyboardMode:u}}}const uV=e=>e,dV={selection:s3,sort:a3,getRows:()=>[],getRowId:()=>"",items:[],columns:[],columnSizing_unstable:c3,tableRef:B.createRef()};function fV(e,t=[]){const{items:r,getRowId:n,columns:o}=e,i=B.useCallback((a=uV)=>r.map((l,c)=>{var u;return a({item:l,rowId:(u=n==null?void 0:n(l))!==null&&u!==void 0?u:c})}),[r,n]),s={getRowId:n,items:r,columns:o,getRows:i,selection:s3,sort:a3,columnSizing_unstable:c3,tableRef:B.createRef()};return t.reduce((a,l)=>l(a),s)}const hV=()=>0,pV=()=>null,gV=()=>null;function Ne(e){const{columnId:t,renderCell:r=pV,renderHeaderCell:n=gV,compare:o=hV}=e;return{columnId:t,renderCell:r,renderHeaderCell:n,compare:o}}function mV(){const e=nu({axis:"horizontal"}),t=nu({axis:"grid"}),r=pl({tabBehavior:"limited-trap-focus"}),{findFirstFocusable:n}=gl(),{targetDocument:o}=mt(),i=_M(e,r);return{onTableKeyDown:B.useCallback(a=>{if(!o)return;let l=o.activeElement;if(!l||!a.currentTarget.contains(l))return;const c=l.getAttribute("role");if(a.key===F5&&c==="row"&&Et(l)){var u;(u=n(l))===null||u===void 0||u.focus()}if(c==="row")return;const d=(()=>{let p=Et(l)?l:null;for(;p;){const h=p.getAttribute("role");if(h==="cell"||h==="gridcell")return!0;p=p.parentElement}return!1})();if(a.key===A5&&d){l.dispatchEvent(new dw({action:$f.Escape}));return}(a.key===Wf||a.key===zc)&&d&&(l.dispatchEvent(new dw({action:$f.Escape})),l=o.activeElement,l&&l.dispatchEvent(new YP({key:qt[a.key]})))},[o,n]),tableTabsterAttribute:t,tableRowTabsterAttribute:i}}const u3=B.createContext(void 0),vV={size:"medium",noNativeElements:!1,sortable:!1},yV=u3.Provider,di=()=>{var e;return(e=B.useContext(u3))!==null&&e!==void 0?e:vV},f1=(e,t)=>{const{noNativeElements:r,size:n}=di();var o;const i=((o=e.as)!==null&&o!==void 0?o:r)?"div":"td";return{components:{root:i},root:Ce(Je(i,{ref:t,role:i==="div"?"cell":void 0,...e}),{elementType:i}),noNativeElements:r,size:n}},d3=e=>J(e.root,{}),bV="fui-TableCell",xV={root:bV},wV=se({root:{mc9l5x:"f15pt5es",ha4doy:"fmrv4ls"},medium:{Bqenvij:"f1ft4266"},small:{Bqenvij:"fbsu25e"},"extra-small":{Bqenvij:"frvgh55"}},{d:[".f15pt5es{display:table-cell;}",".fmrv4ls{vertical-align:middle;}",".f1ft4266{height:44px;}",".fbsu25e{height:34px;}",".frvgh55{height:24px;}"]}),kV=se({root:{mc9l5x:"f22iagw",Bf4jedk:"f10tiqix",Bt984gj:"f122n59",xawz:0,Bh6795r:0,Bnnss6s:0,fkmc3a:"f1izfyrr"},medium:{sshi5w:"f5pgtk9"},small:{sshi5w:"fcep9tg"},"extra-small":{sshi5w:"f1pha7fy"}},{d:[".f22iagw{display:flex;}",".f10tiqix{min-width:0px;}",".f122n59{align-items:center;}",[".f1izfyrr{flex:1 1 0px;}",{p:-1}],".f5pgtk9{min-height:44px;}",".fcep9tg{min-height:34px;}",".f1pha7fy{min-height:24px;}"]}),SV=se({root:{qhf8xq:"f10pi13n",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f3gpkru",Bfpq7zp:0,g9k6zt:0,Bn4voq9:0,giviqs:"f1dxfoyt",Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"f2krc9w"}},{d:[".f10pi13n{position:relative;}",[".f3gpkru{padding:0px var(--spacingHorizontalS);}",{p:-1}],[".f1dxfoyt[data-fui-focus-visible]{outline:2px solid var(--colorStrokeFocus2);}",{p:-1}],[".f2krc9w[data-fui-focus-visible]{border-radius:var(--borderRadiusMedium);}",{p:-1}]]}),f3=e=>{"use no memo";const t=SV(),r={table:wV(),flex:kV()};return e.root.className=ne(xV.root,t.root,e.noNativeElements?r.flex.root:r.table.root,e.noNativeElements?r.flex[e.size]:r.table[e.size],e.root.className),e},wo=B.forwardRef((e,t)=>{const r=f1(e,t);return f3(r),Le("useTableCellStyles_unstable")(r),d3(r)});wo.displayName="TableCell";const h3=B.createContext(void 0),CV="",_V=h3.Provider,h1=()=>B.useContext(h3)===CV,p3=(e,t)=>{const{noNativeElements:r,size:n}=di();var o;const i=((o=e.as)!==null&&o!==void 0?o:r)?"div":"tr",s=$y(),a=ml(),l=h1();var c;return{components:{root:i},root:Ce(Je(i,{ref:yt(t,s,a),role:i==="div"?"row":void 0,...e}),{elementType:i}),size:n,noNativeElements:r,appearance:(c=e.appearance)!==null&&c!==void 0?c:"none",isHeaderRow:l}},BV=e=>J(e.root,{}),Mg={root:"fui-TableSelectionCell",checkboxIndicator:"fui-TableSelectionCell__checkboxIndicator",radioIndicator:"fui-TableSelectionCell__radioIndicator"},TV=se({root:{mc9l5x:"f15pt5es",a9b677:"fksc0bp"}},{d:[".f15pt5es{display:table-cell;}",".fksc0bp{width:44px;}"]}),NV=se({root:{mc9l5x:"f22iagw",xawz:0,Bh6795r:0,Bnnss6s:0,fkmc3a:"f1izfyrr",Bf4jedk:"fvrlu0f",B2u0y6b:"f1c71y05",Brf1p80:"f4d9j23"}},{d:[".f22iagw{display:flex;}",[".f1izfyrr{flex:1 1 0px;}",{p:-1}],".fvrlu0f{min-width:44px;}",".f1c71y05{max-width:44px;}",".f4d9j23{justify-content:center;}"]}),jV=se({root:{fsow6f:"f17mccla",Huce71:"fz5stix",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1mk8lai",Bfpq7zp:0,g9k6zt:0,Bn4voq9:0,giviqs:"f1dxfoyt",Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"f2krc9w"},radioIndicator:{mc9l5x:"f22iagw",Bh6795r:"fqerorx",Bt984gj:"f122n59",Brf1p80:"f4d9j23"},subtle:{abs64n:"fk73vx1",B8a84jv:"f1y7ij6c"},hidden:{abs64n:"fk73vx1"}},{d:[".f17mccla{text-align:center;}",".fz5stix{white-space:nowrap;}",[".f1mk8lai{padding:0;}",{p:-1}],[".f1dxfoyt[data-fui-focus-visible]{outline:2px solid var(--colorStrokeFocus2);}",{p:-1}],[".f2krc9w[data-fui-focus-visible]{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f22iagw{display:flex;}",".fqerorx{flex-grow:1;}",".f122n59{align-items:center;}",".f4d9j23{justify-content:center;}",".fk73vx1{opacity:0;}",".f1y7ij6c[data-fui-focus-within]:focus-within{opacity:1;}"]}),zV=e=>{"use no memo";const t=jV(),r={table:TV(),flex:NV()};return e.root.className=ne(Mg.root,t.root,e.noNativeElements?r.flex.root:r.table.root,e.subtle&&e.checked===!1&&t.subtle,e.hidden&&t.hidden,e.root.className),e.checkboxIndicator&&(e.checkboxIndicator.className=ne(Mg.checkboxIndicator,e.checkboxIndicator.className)),e.radioIndicator&&(e.radioIndicator.className=ne(Mg.radioIndicator,t.radioIndicator,e.radioIndicator.className)),e},EV="fui-TableRow",RV={root:EV},AV=se({root:{mc9l5x:"f1u0rzck"}},{d:[".f1u0rzck{display:table-row;}"]}),FV=se({root:{mc9l5x:"f22iagw",Bt984gj:"f122n59"}},{d:[".f22iagw{display:flex;}",".f122n59{align-items:center;}"]}),PV=se({root:{sj55zd:"f19n0e5",B7ck84d:"f1ewtqcl",Bconypa:"f1jazu75",B6guboy:"f1xeqee6",Bfpq7zp:0,g9k6zt:0,Bn4voq9:0,giviqs:"f1dxfoyt",Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"f2krc9w"},rootInteractive:{B6guboy:"f1xeqee6",ecr2s2:"f1wfn5kd",lj723h:"f1g4hkjv",B43xm9u:"f15ngxrw",i921ia:"fjbbrdp",Jwef8y:"f1t94bn6",Bi91k9c:"feu1g3u",Bpt6rm4:"f1uorfem",ff6mpl:"fw60kww",Bahaeuw:"f1v3eptx",F230oe:"f8gmj8i",Bdw8ktp:["f1ap8nzx","fjag8bx"],Bj1xduy:"f1igan7k",Bhh2cfd:["fjag8bx","f1ap8nzx"]},medium:{B9xav0g:0,oivjwe:0,Bn0qgzm:0,Bgfg5da:"f1facbz3"},small:{B9xav0g:0,oivjwe:0,Bn0qgzm:0,Bgfg5da:"f1facbz3"},"extra-small":{Be2twd7:"fy9rknc"},brand:{De3pzq:"f16xkysk",g2u3we:"f1bh3yvw",h3c5rm:["fmi79ni","f11fozsx"],B9xav0g:"fnzw4c6",zhjwy3:["f11fozsx","fmi79ni"],ecr2s2:"f7tkmfy",lj723h:"f1r2dosr",wmvzou:0,sc4o1m:0,wymq9i:0,u9orzk:0,puiv5t:0,Bosien3:0,b2z72d:0,Beulxaw:0,B57pkaw:0,Jcjdmf:0,B8qgbzl:0,Bbmb0sr:0,B14q8qp:0,Bcq6wej:0,Byz1pjr:0,kr9cjb:0,Ff9ifp:"f1msmgpi",Bmclvqj:0,psczho:0,B0tx59b:0,sk7i8k:0,zlwzm7:"fbo0xvd",Bkp2nk:"fjuvmhu",gy0h4g:"f1kvufhq"},neutral:{wmvzou:0,sc4o1m:0,wymq9i:0,u9orzk:0,puiv5t:0,Bosien3:0,b2z72d:0,Beulxaw:0,B57pkaw:0,Jcjdmf:0,B8qgbzl:0,Bbmb0sr:0,B14q8qp:0,Bcq6wej:0,Byz1pjr:0,kr9cjb:0,Ff9ifp:"f1msmgpi",Bmclvqj:0,psczho:0,B0tx59b:0,sk7i8k:0,zlwzm7:"fbo0xvd",Bkp2nk:"fjuvmhu",gy0h4g:"f1kvufhq",De3pzq:"fq5gl1p",sj55zd:"f1cgsbmv",ecr2s2:"fa9o754",g2u3we:"frmsihh",h3c5rm:["frttxa5","f11o2r7f"],B9xav0g:"fem5et0",zhjwy3:["f11o2r7f","frttxa5"]},none:{}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".f1ewtqcl{box-sizing:border-box;}",".f1jazu75[data-fui-focus-within]:focus-within .fui-TableSelectionCell{opacity:1;}",".f1xeqee6[data-fui-focus-within]:focus-within .fui-TableCellActions{opacity:1;}",[".f1dxfoyt[data-fui-focus-visible]{outline:2px solid var(--colorStrokeFocus2);}",{p:-1}],[".f2krc9w[data-fui-focus-visible]{border-radius:var(--borderRadiusMedium);}",{p:-1}],[".f1facbz3{border-bottom:var(--strokeWidthThin) solid var(--colorNeutralStroke2);}",{p:-1}],[".f1facbz3{border-bottom:var(--strokeWidthThin) solid var(--colorNeutralStroke2);}",{p:-1}],".fy9rknc{font-size:var(--fontSizeBase200);}",".f16xkysk{background-color:var(--colorBrandBackground2);}",".f1bh3yvw{border-top-color:var(--colorTransparentStrokeInteractive);}",".fmi79ni{border-right-color:var(--colorTransparentStrokeInteractive);}",".f11fozsx{border-left-color:var(--colorTransparentStrokeInteractive);}",".fnzw4c6{border-bottom-color:var(--colorTransparentStrokeInteractive);}",".fq5gl1p{background-color:var(--colorSubtleBackgroundSelected);}",".f1cgsbmv{color:var(--colorNeutralForeground1Hover);}",".frmsihh{border-top-color:var(--colorNeutralStrokeOnBrand);}",".frttxa5{border-right-color:var(--colorNeutralStrokeOnBrand);}",".f11o2r7f{border-left-color:var(--colorNeutralStrokeOnBrand);}",".fem5et0{border-bottom-color:var(--colorNeutralStrokeOnBrand);}"],a:[".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}",".f1g4hkjv:active{color:var(--colorNeutralForeground1Pressed);}",".f15ngxrw:active .fui-TableCellActions{opacity:1;}",".fjbbrdp:active .fui-TableSelectionCell{opacity:1;}",".f7tkmfy:active{background-color:var(--colorBrandBackground2);}",".f1r2dosr:active{color:var(--colorNeutralForeground1);}",".fa9o754:active{background-color:var(--colorSubtleBackgroundSelected);}"],h:[".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".feu1g3u:hover{color:var(--colorNeutralForeground1Hover);}",".f1uorfem:hover .fui-TableCellActions{opacity:1;}",".fw60kww:hover .fui-TableSelectionCell{opacity:1;}"],m:[["@media (forced-colors: active){.f1v3eptx:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f8gmj8i:hover{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ap8nzx:hover{border-right-color:Highlight;}.fjag8bx:hover{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1igan7k:hover{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1msmgpi{border:2px solid transparent;}}",{p:-2,m:"(forced-colors: active)"}],["@media (forced-colors: active){.fbo0xvd{border-radius:var(--borderRadiusMedium);}}",{p:-1,m:"(forced-colors: active)"}],["@media (forced-colors: active){.fjuvmhu{box-sizing:border-box;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1kvufhq:focus-visible{outline-offset:-4px;}}",{m:"(forced-colors: active)"}]]}),g3=e=>{"use no memo";const t=PV(),r={table:AV(),flex:FV()};return e.root.className=ne(RV.root,t.root,!e.isHeaderRow&&t.rootInteractive,t[e.size],e.noNativeElements?r.flex.root:r.table.root,t[e.appearance],e.root.className),e},lu=B.forwardRef((e,t)=>{const r=p3(e,t);return g3(r),Le("useTableRowStyles_unstable")(r),BV(r)});lu.displayName="TableRow";const m3=(e,t)=>{const{noNativeElements:r}=di();var n;const o=((n=e.as)!==null&&n!==void 0?n:r)?"div":"tbody";return{components:{root:o},root:Ce(Je(o,{ref:t,role:o==="div"?"rowgroup":void 0,...e}),{elementType:o}),noNativeElements:r}},IV=e=>J(e.root,{}),MV=se({root:{mc9l5x:"f1tp1avn"}},{d:[".f1tp1avn{display:table-row-group;}"]}),DV=se({root:{mc9l5x:"ftgm304"}},{d:[".ftgm304{display:block;}"]}),LV="fui-TableBody",v3=e=>{"use no memo";const t={table:MV(),flex:DV()};return e.root.className=ne(LV,e.noNativeElements?t.flex.root:t.table.root,e.root.className),e},p1=B.forwardRef((e,t)=>{const r=m3(e,t);return v3(r),Le("useTableBodyStyles_unstable")(r),IV(r)});p1.displayName="TableBody";const y3=(e,t)=>{var r;const n=((r=e.as)!==null&&r!==void 0?r:e.noNativeElements)?"div":"table";var o,i,s;return{components:{root:n},root:Ce(Je(n,{ref:t,role:n==="div"?"table":void 0,...e}),{elementType:n}),size:(o=e.size)!==null&&o!==void 0?o:"medium",noNativeElements:(i=e.noNativeElements)!==null&&i!==void 0?i:!1,sortable:(s=e.sortable)!==null&&s!==void 0?s:!1}},b3=(e,t)=>J(yV,{value:t.table,children:J(e.root,{})}),OV="fui-Table",qV=se({root:{mc9l5x:"f1w4nmp0",ha4doy:"fmrv4ls",a9b677:"fly5x3f",B73mfa3:"f14m3nip"}},{d:[".f1w4nmp0{display:table;}",".fmrv4ls{vertical-align:middle;}",".fly5x3f{width:100%;}",".f14m3nip{table-layout:fixed;}"]}),$V=se({root:{mc9l5x:"ftgm304"}},{d:[".ftgm304{display:block;}"]}),HV=se({root:{po53p8:"fgkb47j",De3pzq:"fhovq9v"}},{d:[".fgkb47j{border-collapse:collapse;}",".fhovq9v{background-color:var(--colorSubtleBackground);}"]}),x3=e=>{"use no memo";const t=HV(),r={table:qV(),flex:$V()};return e.root.className=ne(OV,t.root,e.noNativeElements?r.flex.root:r.table.root,e.root.className),e};function w3(e){const{size:t,noNativeElements:r,sortable:n}=e;return{table:B.useMemo(()=>({noNativeElements:r,size:t,sortable:n}),[r,t,n])}}const g1=B.forwardRef((e,t)=>{const r=y3(e,t);return x3(r),Le("useTableStyles_unstable")(r),b3(r,w3(r))});g1.displayName="Table";const k3=(e,t)=>{const{noNativeElements:r}=di();var n;const o=((n=e.as)!==null&&n!==void 0?n:r)?"div":"thead";return{components:{root:o},root:Ce(Je(o,{ref:t,role:o==="div"?"rowgroup":void 0,...e}),{elementType:o}),noNativeElements:r}},S3=e=>J(_V,{value:"",children:J(e.root,{})}),WV="fui-TableHeader",VV=se({root:{mc9l5x:"ftgm304"}},{d:[".ftgm304{display:block;}"]}),UV=se({root:{mc9l5x:"f1tp1avn"}},{d:[".f1tp1avn{display:table-row-group;}"]}),C3=e=>{"use no memo";const t={table:UV(),flex:VV()};return e.root.className=ne(WV,e.noNativeElements?t.flex.root:t.table.root,e.root.className),e},m1=B.forwardRef((e,t)=>{const r=k3(e,t);return C3(r),Le("useTableHeaderStyles_unstable")(r),S3(r)});m1.displayName="TableHeader";const GV={ascending:B.createElement(xL,{fontSize:12}),descending:B.createElement(bL,{fontSize:12})},_3=(e,t)=>{const{noNativeElements:r,sortable:n}=di(),{sortable:o=n}=e;var i;const s=((i=e.as)!==null&&i!==void 0?i:r)?"div":"th",a=Ce(e.button,{elementType:"div",defaultProps:{as:"div"}}),l=ap(a.as,a);var c;return{components:{root:s,button:"div",sortIcon:"span",aside:"span"},root:Ce(Je(s,{ref:yt(t,ml()),role:s==="div"?"columnheader":void 0,"aria-sort":o?(c=e.sortDirection)!==null&&c!==void 0?c:"none":void 0,...e}),{elementType:s}),aside:qe(e.aside,{elementType:"span"}),sortIcon:qe(e.sortIcon,{renderByDefault:!!e.sortDirection,defaultProps:{children:e.sortDirection?GV[e.sortDirection]:void 0},elementType:"span"}),button:o?l:a,sortable:o,noNativeElements:r}},B3=e=>rt(e.root,{children:[rt(e.button,{children:[e.root.children,e.sortIcon&&J(e.sortIcon,{})]}),e.aside&&J(e.aside,{})]}),xd={root:"fui-TableHeaderCell",button:"fui-TableHeaderCell__button",sortIcon:"fui-TableHeaderCell__sortIcon",aside:"fui-TableHeaderCell__aside"},XV=se({root:{mc9l5x:"f15pt5es",ha4doy:"fmrv4ls"}},{d:[".f15pt5es{display:table-cell;}",".fmrv4ls{vertical-align:middle;}"]}),YV=se({root:{mc9l5x:"f22iagw",xawz:0,Bh6795r:0,Bnnss6s:0,fkmc3a:"f1izfyrr",Bf4jedk:"f10tiqix"}},{d:[".f22iagw{display:flex;}",[".f1izfyrr{flex:1 1 0px;}",{p:-1}],".f10tiqix{min-width:0px;}"]}),ZV=se({root:{Bhrd7zp:"figsok6",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f3gpkru",robkg1:0,Bmvh20x:0,B3nxjsc:0,Bmkhcsx:"f14ym4q2",B8osjzx:0,pehzd3:0,Blsv9te:0,u7xebq:0,Bsvwmf7:"f1euou18",qhf8xq:"f10pi13n"},rootInteractive:{Bi91k9c:"feu1g3u",Jwef8y:"f1t94bn6",lj723h:"f1g4hkjv",ecr2s2:"f1wfn5kd"},resetButton:{B3rzk8w:"fq6nmtn",B7ck84d:"f1e4lqlz",De3pzq:"f1u2r49w",sj55zd:"f1ym3bx4",Bahqtrf:"f1mo0ibp",Be2twd7:"fjoy568",Bg96gwp:"fytdu2e",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1gl81tg",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1mk8lai",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f3bhgqh",fsow6f:"fgusgyc"},button:{qhf8xq:"f10pi13n",a9b677:"fly5x3f",mc9l5x:"f22iagw",Bh6795r:0,Bqenvij:"f1l02sjl",Bt984gj:"f122n59",i8kkvl:0,Belr9w4:0,rmohyg:"fkln5zr",sshi5w:"f1nxs5xn",xawz:0,Bnnss6s:0,fkmc3a:"f1izfyrr",oeaueh:"f1s6fcnf"},sortable:{Bceei9c:"f1k6fduh"},sortIcon:{mc9l5x:"f22iagw",Bt984gj:"f122n59",z8tnut:"fclwglc"},resizeHandle:{}},{d:[".figsok6{font-weight:var(--fontWeightRegular);}",[".f3gpkru{padding:0px var(--spacingHorizontalS);}",{p:-1}],[".f14ym4q2[data-fui-focus-within]:focus-within{outline:2px solid var(--colorStrokeFocus2);}",{p:-1}],[".f1euou18[data-fui-focus-within]:focus-within{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f10pi13n{position:relative;}",".fq6nmtn{resize:horizontal;}",".f1e4lqlz{box-sizing:content-box;}",".f1u2r49w{background-color:inherit;}",".f1ym3bx4{color:inherit;}",".f1mo0ibp{font-family:inherit;}",".fjoy568{font-size:inherit;}",".fytdu2e{line-height:normal;}",[".f1gl81tg{overflow:visible;}",{p:-1}],[".f1mk8lai{padding:0;}",{p:-1}],[".f3bhgqh{border:none;}",{p:-2}],".fgusgyc{text-align:unset;}",".fly5x3f{width:100%;}",".f22iagw{display:flex;}",".fqerorx{flex-grow:1;}",".f1l02sjl{height:100%;}",".f122n59{align-items:center;}",[".fkln5zr{gap:var(--spacingHorizontalXS);}",{p:-1}],".f1nxs5xn{min-height:32px;}",[".f1izfyrr{flex:1 1 0px;}",{p:-1}],".f1s6fcnf{outline-style:none;}",".f1k6fduh{cursor:pointer;}",".fclwglc{padding-top:var(--spacingVerticalXXS);}"],h:[".feu1g3u:hover{color:var(--colorNeutralForeground1Hover);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}"],a:[".f1g4hkjv:active{color:var(--colorNeutralForeground1Pressed);}",".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}"]}),T3=e=>{"use no memo";const t=ZV(),r={table:XV(),flex:YV()};return e.root.className=ne(xd.root,t.root,e.sortable&&t.rootInteractive,e.noNativeElements?r.flex.root:r.table.root,e.root.className),e.button.className=ne(xd.button,t.resetButton,t.button,e.sortable&&t.sortable,e.button.className),e.sortIcon&&(e.sortIcon.className=ne(xd.sortIcon,t.sortIcon,e.sortIcon.className)),e.aside&&(e.aside.className=ne(xd.aside,t.resizeHandle,e.aside.className)),e},ko=B.forwardRef((e,t)=>{const r=_3(e,t);return T3(r),Le("useTableHeaderCellStyles_unstable")(r),B3(r)});ko.displayName="TableHeaderCell";const N3=B.createContext(void 0),KV="",j3=()=>{var e;return(e=B.useContext(N3))!==null&&e!==void 0?e:KV},QV=N3.Provider,z3=B.createContext(void 0),JV="",E3=()=>{var e;return(e=B.useContext(z3))!==null&&e!==void 0?e:JV},eU=z3.Provider,tU=(e,t)=>{const r=f1(e,yt(t,ml())),{noNativeElements:n}=di(),{type:o="checkbox",checked:i=!1,subtle:s=!1,hidden:a=!1,invisible:l=!1}=e;return{...r,components:{...r.components,checkboxIndicator:ro,radioIndicator:ps},checkboxIndicator:qe(e.checkboxIndicator,{renderByDefault:o==="checkbox",defaultProps:{checked:e.checked},elementType:ro}),radioIndicator:qe(e.radioIndicator,{renderByDefault:o==="radio",defaultProps:{checked:!!i,input:{name:or("table-selection-radio")}},elementType:ps}),type:o,checked:i,noNativeElements:n,subtle:s,hidden:l||a}},rU=e=>rt(e.root,{children:[e.type==="checkbox"&&e.checkboxIndicator&&J(e.checkboxIndicator,{}),e.type==="radio"&&e.radioIndicator&&J(e.radioIndicator,{})]}),nU={medium:32,small:24,"extra-small":20},oU=(e,t)=>{const{size:r}=di();return{components:{root:"div",main:"span",description:"span",content:"div",media:"span"},root:Ce(Je("div",{ref:t,...e},["content"]),{elementType:"div"}),appearance:e.appearance,truncate:e.truncate,main:qe(e.main,{renderByDefault:!0,elementType:"span"}),media:qe(e.media,{elementType:"span"}),description:qe(e.description,{elementType:"span"}),content:qe(e.content,{renderByDefault:!!e.description||!!e.children,elementType:"div"}),avatarSize:nU[r],size:r}},iU=(e,t)=>rt(e.root,{children:[e.media&&J(pB,{value:t.avatar,children:J(e.media,{})}),e.content&&rt(e.content,{children:[e.main&&J(e.main,{children:e.root.children}),e.description&&J(e.description,{})]})]}),Wl={root:"fui-TableCellLayout",media:"fui-TableCellLayout__media",main:"fui-TableCellLayout__main",description:"fui-TableCellLayout__description",content:"fui-TableCellLayout__content"},sU=se({root:{mc9l5x:"f22iagw",Bt984gj:"f122n59",i8kkvl:0,Belr9w4:0,rmohyg:"faqewft",xawz:0,Bh6795r:0,Bnnss6s:0,fkmc3a:"f1izfyrr"},rootTruncate:{B68tc82:"f1p9o1ba"},content:{mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62"},contentTruncate:{B68tc82:"f1p9o1ba"},media:{mc9l5x:"f22iagw",Bt984gj:"f122n59"},mediaExtraSmall:{Be2twd7:"f4ybsrx"},mediaSmallAndMedium:{Be2twd7:"fe5j1ua"},mediaPrimary:{Be2twd7:"f1rt2boy"},mainPrimary:{Bhrd7zp:"fl43uef"},mainTruncate:{B68tc82:"f1p9o1ba",Huce71:"fz5stix",ygn44y:"f1cmbuwj"},description:{sj55zd:"fkfq4zb",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"}},{d:[".f22iagw{display:flex;}",".f122n59{align-items:center;}",[".faqewft{gap:var(--spacingHorizontalS);}",{p:-1}],[".f1izfyrr{flex:1 1 0px;}",{p:-1}],".f1p9o1ba{overflow-x:hidden;}",".f1vx9l62{flex-direction:column;}",".f4ybsrx{font-size:16px;}",".fe5j1ua{font-size:20px;}",".f1rt2boy{font-size:24px;}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".fz5stix{white-space:nowrap;}",".f1cmbuwj{text-overflow:ellipsis;}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}"]}),aU=e=>{"use no memo";const t=sU(),{truncate:r}=e;e.root.className=ne(Wl.root,t.root,r&&t.rootTruncate,e.root.className);const n=e.appearance==="primary";if(e.media){const o={small:t.mediaSmallAndMedium,medium:t.mediaSmallAndMedium,"extra-small":t.mediaExtraSmall};e.media.className=ne(Wl.media,t.media,o[e.size],n&&t.mediaPrimary,e.media.className)}return e.main&&(e.main.className=ne(Wl.main,r&&t.mainTruncate,n&&t.mainPrimary,e.main.className)),e.description&&(e.description.className=ne(Wl.description,t.description,e.description.className)),e.content&&(e.content.className=ne(Wl.content,t.content,r&&t.contentTruncate,e.content.className)),e};function lU(e){const{avatarSize:t}=e;return{avatar:B.useMemo(()=>({size:t}),[t])}}const Qe=B.forwardRef((e,t)=>{const r=oU(e,t);return aU(r),Le("useTableCellLayoutStyles_unstable")(r),iU(r,lU(r))});Qe.displayName="TableCellLayout";const R3=bl(void 0),A3={...dV,subtleSelection:!1,selectableRows:!1,selectionAppearance:"brand",focusMode:"none",compositeRowTabsterAttribute:{}},cU=R3.Provider,Pt=e=>Ru(R3,(t=A3)=>e(t)),uU=(e,t)=>{const{focusMode:r="cell"}=e,n=j3(),o=Pt(l=>(l.focusMode==="cell"||l.focusMode==="composite")&&r!=="none"),i=Pt(l=>l.resizableColumns),s=Pt(l=>l.columnSizing_unstable.getTableCellProps),a=pl({tabBehavior:"limited-trap-focus"});return f1({as:"div",role:"gridcell",...r==="group"&&a,tabIndex:o?0:void 0,...i?s(n):{},...e},t)},dU=e=>d3(e),fU={root:"fui-DataGridCell"},hU=e=>{"use no memo";return f3(e),e.root.className=ne(fU.root,e.root.className),e},rn=B.forwardRef((e,t)=>{const r=uU(e,t);return hU(r),Le("useDataGridCellStyles_unstable")(r),dU(r)});rn.displayName="DataGridCell";const pU=(e,t)=>{const r=h1(),n=E3(),o=Pt(c=>c.subtleSelection),i=Pt(c=>r&&c.selection.selectionMode==="multiselect"?c.selection.allRowsSelected?!0:c.selection.someRowsSelected?"mixed":!1:c.selection.isRowSelected(n)),s=Pt(c=>c.selection.toggleAllRows),a=Pt(c=>c.selection.selectionMode==="multiselect"?"checkbox":"radio"),l=ye(c=>{var u;r&&s(c),(u=e.onClick)===null||u===void 0||u.call(e,c)});return tU({as:"div",role:"gridcell",checked:i,type:a,invisible:r&&a==="radio","aria-selected":i==="mixed"?void 0:i,subtle:o,radioIndicator:r?null:void 0,...e,onClick:l},t)},gU=e=>rU(e),Dg={root:"fui-DataGridSelectionCell",checkboxIndicator:"fui-DataGridSelectionCell__checkboxIndicator",radioIndicator:"fui-DataGridSelectionCell__radioIndicator"},mU=e=>{"use no memo";return zV(e),e.root.className=ne(Dg.root,e.root.className),e.checkboxIndicator&&(e.checkboxIndicator.className=ne(Dg.checkboxIndicator,e.checkboxIndicator.className)),e.radioIndicator&&(e.radioIndicator.className=ne(Dg.radioIndicator,e.radioIndicator.className)),e},E0=B.forwardRef((e,t)=>{const r=pU(e,t);return mU(r),Le("useDataGridSelectionCellStyles_unstable")(r),gU(r)});E0.displayName="DataGridSelectionCell";const vU=(e,t)=>{const r=E3(),n=h1(),o=Pt(g=>g.columns),i=Pt(g=>g.selectableRows),s=Pt(g=>g.selection.isRowSelected(r)),a=Pt(g=>g.focusMode),l=Pt(g=>g.compositeRowTabsterAttribute),c=a==="row_unstable"||a==="composite",u=Pt(g=>!n&&i&&g.selection.isRowSelected(r)?g.selectionAppearance:"none"),d=Pt(g=>g.selection.toggleRow),p=ye(g=>{var y;i&&!n&&d(g,r),(y=e.onClick)===null||y===void 0||y.call(e,g)}),h=ye(g=>{var y;i&&!n&&g.key===Qn&&!pP(g.target)&&(g.preventDefault(),d(g,r)),(y=e.onKeyDown)===null||y===void 0||y.call(e,g)}),m=p3({appearance:u,"aria-selected":i?s:void 0,tabIndex:c&&!n?0:void 0,...a==="composite"&&!n&&l,...e,onClick:p,onKeyDown:h,children:null,as:"div"},t);return{...m,components:{...m.components,selectionCell:E0},selectionCell:qe(e.selectionCell,{renderByDefault:i,elementType:E0}),renderCell:e.children,columnDefs:o,dataGridContextValue:yU()}};function yU(){const e=B.useRef(A3);return Pt(t=>(e.current=t,null)),e.current}const bU=e=>rt(e.root,{children:[e.selectionCell&&J(e.selectionCell,{}),e.columnDefs.map(t=>J(QV,{value:t.columnId,children:e.renderCell(t,e.dataGridContextValue)},t.columnId))]}),a2={root:"fui-DataGridRow",selectionCell:"fui-DataGridRow__selectionCell"},xU=se({subtleSelection:{Bconypa:"f1jazu75",ff6mpl:"fw60kww"}},{d:[".f1jazu75[data-fui-focus-within]:focus-within .fui-TableSelectionCell{opacity:1;}"],h:[".fw60kww:hover .fui-TableSelectionCell{opacity:1;}"]}),wU=e=>{"use no memo";const t=Pt(n=>n.subtleSelection),r=xU();return g3(e),e.root.className=ne(a2.root,e.root.className,t&&r.subtleSelection),e.selectionCell&&(e.selectionCell.className=ne(a2.selectionCell,e.selectionCell.className)),e},vt=B.forwardRef((e,t)=>{const r=vU(e,t);return wU(r),Le("useDataGridRowStyles_unstable")(r),bU(r)});vt.displayName="DataGridRow";const kU=(e,t)=>{const{sortable:r}=di(),n=Pt(a=>a.getRows),o=Pt(a=>a.sort.sort),i=r?o(n()):n();return{...m3({...e,children:null,as:"div"},t),rows:i,renderRow:e.children}},SU=e=>J(e.root,{children:e.rows.map(t=>J(eU,{value:t.rowId,children:e.renderRow(t)},t.rowId))}),CU={root:"fui-DataGridBody"},_U=e=>{"use no memo";return v3(e),e.root.className=ne(CU.root,e.root.className),e},nn=B.forwardRef((e,t)=>{const r=kU(e,t);return _U(r),Le("useDataGridBodyStyles_unstable")(r),SU(r)});nn.displayName="DataGridBody";const BU=(e,t)=>{const{items:r,columns:n,focusMode:o="cell",selectionMode:i,onSortChange:s,onSelectionChange:a,defaultSortState:l,sortState:c,selectedItems:u,defaultSelectedItems:d,subtleSelection:p=!1,selectionAppearance:h="brand",getRowId:m,resizableColumns:g,columnSizingOptions:y,onColumnResize:v,containerWidthOffset:b,resizableColumnsOptions:x={}}=e,k=b??(i?-44:0),S=nu({axis:"grid"}),{onTableKeyDown:_,tableTabsterAttribute:N,tableRowTabsterAttribute:z}=mV();var F;const I=fV({items:r,columns:n,getRowId:m},[WW({defaultSortState:l,sortState:c,onSortChange:s}),$W({defaultSelectedItems:d,selectedItems:u,onSelectionChange:a,selectionMode:i??"multiselect"}),lV({onColumnResize:v,columnSizingOptions:y,containerWidthOffset:k,autoFitColumns:(F=x.autoFitColumns)!==null&&F!==void 0?F:!0})]),H=B.useRef(null),{findFirstFocusable:A,findLastFocusable:P}=gl(),C=ye(O=>{var D;if((D=e.onKeyDown)===null||D===void 0||D.call(e,O),o==="composite"&&_(O),!(!H.current||!O.ctrlKey||O.defaultPrevented)){if(O.key===I5){const X=H.current.querySelector('[role="row"]');if(X){var M;(M=A(X))===null||M===void 0||M.focus()}}if(O.key===P5){const X=H.current.querySelectorAll('[role="row"]');if(X.length){var $;const V=X.item(X.length-1);($=P(V))===null||$===void 0||$.focus()}}}});return{...y3({role:"grid",as:"div",noNativeElements:!0,...o==="cell"&&S,...o==="composite"&&N,...e,onKeyDown:C,...g?I.columnSizing_unstable.getTableProps(e):{}},yt(t,I.tableRef,H)),focusMode:o,tableState:I,selectableRows:!!i,subtleSelection:p,selectionAppearance:h,resizableColumns:g,compositeRowTabsterAttribute:z}},TU=(e,t)=>B.createElement(cU,{value:t.dataGrid},b3(e,t)),NU={root:"fui-DataGrid"},jU=e=>{"use no memo";return x3(e),e.root.className=ne(NU.root,e.root.className),e};function zU(e){const t=w3(e),{tableState:r,focusMode:n,selectableRows:o,subtleSelection:i,selectionAppearance:s,resizableColumns:a,compositeRowTabsterAttribute:l}=e;return{...t,dataGrid:{...r,focusMode:n,selectableRows:o,subtleSelection:i,selectionAppearance:s,resizableColumns:a,compositeRowTabsterAttribute:l}}}const on=B.forwardRef((e,t)=>{const r=BU(e,t);return jU(r),Le("useDataGridStyles_unstable")(r),TU(r,zU(r))});on.displayName="DataGrid";const EU=(e,t)=>k3({...e,as:"div"},t),RU=e=>S3(e),AU={root:"fui-DataGridHeader"},FU=e=>{"use no memo";return C3(e),e.root.className=ne(AU.root,e.root.className),e},sn=B.forwardRef((e,t)=>{const r=EU(e,t);return FU(r),Le("useDataGridHeaderStyles_unstable")(r),RU(r)});sn.displayName="DataGridHeader";function PU(e){return e.compare.length>0}const IU=(e,t)=>{const r=j3(),{sortable:n}=di(),o=Pt(p=>p.sort.toggleColumnSort),i=Pt(p=>{const h=!!p.columns.find(m=>m.columnId===r&&PU(m));return n?h:!1}),s=Pt(p=>i?p.sort.getSortDirection(r):void 0),a=Pt(p=>p.resizableColumns),l=Pt(p=>p.columnSizing_unstable.getTableHeaderCellProps),{focusMode:c=i?"none":"cell"}=e,u=pl({tabBehavior:"limited-trap-focus"}),d=ye(p=>{var h;i&&o(p,r),(h=e.onClick)===null||h===void 0||h.call(e,p)});return _3({sortable:i,sortDirection:s,as:"div",tabIndex:c!=="none"?0:void 0,...c==="group"&&u,...a?l(r):{},...e,onClick:d},t)},MU=e=>B3(e),wd={root:"fui-DataGridHeaderCell",button:"fui-DataGridHeaderCell__button",sortIcon:"fui-DataGridHeaderCell__sortIcon",aside:"fui-DataGridHeaderCell__aside"},DU=e=>{"use no memo";return T3(e),e.root.className=ne(wd.root,e.root.className),e.button&&(e.button.className=ne(wd.button,e.button.className)),e.sortIcon&&(e.sortIcon.className=ne(wd.sortIcon,e.sortIcon.className)),e.aside&&(e.aside.className=ne(wd.aside,e.aside.className)),e},an=B.forwardRef((e,t)=>{const r=IU(e,t);return DU(r),Le("useDataGridHeaderCellStyles_unstable")(r),MU(r)});an.displayName="DataGridHeaderCell";const LU=(e,{referenceLabel:t,referenceId:r},n)=>{const{checkbox:o={},onSelectionChange:i,floatingAction:s,onClick:a,onKeyDown:l,disabled:c}=e,{findAllFocusable:u}=gl(),d=B.useRef(null),[p,h]=xn({state:e.selected,defaultState:e.defaultSelected,initialState:!1}),m=[e.selected,e.defaultSelected,i].some(N=>typeof N<"u"),[g,y]=B.useState(!1),v=B.useCallback(N=>{if(!n.current)return!1;const z=u(n.current),F=N.target,I=z.some(A=>A.contains(F)),H=(d==null?void 0:d.current)===F;return I&&!H},[n,u]),b=B.useCallback(N=>{if(c||v(N))return;const z=!p;h(z),i&&i(N,{selected:z})},[c,i,p,h,v]),x=B.useCallback(N=>{[Mi].includes(N.key)&&(N.preventDefault(),b(N))},[b]),k=B.useMemo(()=>{if(!m||s)return;const N={};return r?N["aria-labelledby"]=r:t&&(N["aria-label"]=t),qe(o,{defaultProps:{ref:d,type:"checkbox",checked:p,disabled:c,onChange:z=>b(z),onFocus:()=>y(!0),onBlur:()=>y(!1),...N},elementType:"input"})},[o,c,s,p,m,b,r,t]),S=B.useMemo(()=>{if(s)return qe(s,{defaultProps:{ref:d},elementType:"div"})},[s]),_=B.useMemo(()=>m?{onClick:wt(a,b),onKeyDown:wt(l,x)}:null,[m,b,a,l,x]);return{selected:p,selectable:m,selectFocused:g,selectableCardProps:_,checkboxSlot:k,floatingActionSlot:S}},F3=B.createContext(void 0),R0={selectableA11yProps:{referenceId:void 0,setReferenceId(){},referenceLabel:void 0,setReferenceLabel(){}}},OU=F3.Provider,qU=()=>{var e;return(e=B.useContext(F3))!==null&&e!==void 0?e:R0},$U={off:void 0,"no-tab":"limited-trap-focus","tab-exit":"limited","tab-only":"unlimited"},HU=({focusMode:e,disabled:t=!1,...r})=>{const n=["onClick","onDoubleClick","onMouseUp","onMouseDown","onPointerUp","onPointerDown","onTouchStart","onTouchEnd","onDragStart","onDragEnd"].some(s=>r[s]),o=e??(n?"no-tab":"off"),i=pl({tabBehavior:$U[o]});return t?{interactive:!1,focusAttributes:null}:o==="off"?{interactive:n,focusAttributes:null}:{interactive:n,focusAttributes:{...i,tabIndex:0}}},WU=(e,t)=>{const{appearance:r="filled",orientation:n="vertical",size:o="medium",disabled:i=!1,...s}=e,[a,l]=B.useState(R0.selectableA11yProps.referenceId),[c,u]=B.useState(R0.selectableA11yProps.referenceId),d=ml(),{selectable:p,selected:h,selectableCardProps:m,selectFocused:g,checkboxSlot:y,floatingActionSlot:v}=LU(e,{referenceId:a,referenceLabel:c},d),b=yt(d,t),{interactive:x,focusAttributes:k}=HU(e);let S={...p?null:k,...s,...m};return i&&(S={...s,"aria-disabled":!0,onClick:void 0}),{appearance:r,orientation:n,size:o,interactive:x,selectable:p,selectFocused:g,selected:h,disabled:i,selectableA11yProps:{setReferenceId:l,referenceId:a,referenceLabel:c,setReferenceLabel:u},components:{root:"div",floatingAction:"div",checkbox:"input"},root:Ce(Je("div",{ref:b,role:"group",...S}),{elementType:"div"}),floatingAction:v,checkbox:y}},VU=(e,t)=>J(e.root,{children:rt(OU,{value:t,children:[e.checkbox?J(e.checkbox,{}):null,e.floatingAction?J(e.floatingAction,{}):null,e.root.children]})}),P3={root:"fui-CardHeader",image:"fui-CardHeader__image",header:"fui-CardHeader__header",description:"fui-CardHeader__description",action:"fui-CardHeader__action"},UU=se({root:{Bkc6ea2:"fkufhic",Bt984gj:"f122n59"},image:{mc9l5x:"ftuwxu6",t21cq0:["fql5097","f6yss9k"]},header:{mc9l5x:"f22iagw"},description:{mc9l5x:"f22iagw"},action:{Frg6f3:["f6yss9k","fql5097"],rjrqlh:"fs9eatd",Boue1pl:["fxoo9ru","f1g0ekvh"],Bhz1vi0:"f1m6zfxz",etxrgc:["f1g0ekvh","fxoo9ru"],Bdua9ef:"f1sret3r",cbfxhg:"fs4gbcv"}},{d:[".fkufhic{--fui-CardHeader--gap:12px;}",".f122n59{align-items:center;}",".ftuwxu6{display:inline-flex;}",".fql5097{margin-right:var(--fui-CardHeader--gap);}",".f6yss9k{margin-left:var(--fui-CardHeader--gap);}",".f22iagw{display:flex;}"],m:[["@media (forced-colors: active){.fs9eatd .fui-Button,.fs9eatd .fui-Link{border-top-color:currentColor;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1g0ekvh .fui-Button,.f1g0ekvh .fui-Link{border-left-color:currentColor;}.fxoo9ru .fui-Button,.fxoo9ru .fui-Link{border-right-color:currentColor;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1m6zfxz .fui-Button,.f1m6zfxz .fui-Link{border-bottom-color:currentColor;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1sret3r .fui-Button,.f1sret3r .fui-Link{color:currentColor;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fs4gbcv .fui-Button,.fs4gbcv .fui-Link{outline-color:currentColor;}}",{m:"(forced-colors: active)"}]]}),GU=se({root:{mc9l5x:"f13qh94s",t4k1zu:"f8a668j"},image:{Br312pm:"fwpfdsa",Ijaq50:"fldnz9j"},header:{Br312pm:"fd46tj4",Ijaq50:"f16hsg94"},description:{Br312pm:"fd46tj4",Ijaq50:"faunodf"},action:{Br312pm:"fis13di",Ijaq50:"fldnz9j"}},{d:[".f13qh94s{display:grid;}",".f8a668j{grid-auto-columns:min-content 1fr min-content;}",".fwpfdsa{grid-column-start:1;}",".fldnz9j{grid-row-start:span 2;}",".fd46tj4{grid-column-start:2;}",".f16hsg94{grid-row-start:1;}",".faunodf{grid-row-start:2;}",".fis13di{grid-column-start:3;}"]}),XU=se({root:{mc9l5x:"f22iagw"},header:{Bh6795r:"fqerorx"},image:{},description:{},action:{}},{d:[".f22iagw{display:flex;}",".fqerorx{flex-grow:1;}"]}),YU=e=>{"use no memo";const t=UU(),r=GU(),n=XU(),o=e.description?r:n,i=s=>{var a;return ne(P3[s],t[s],o[s],(a=e[s])===null||a===void 0?void 0:a.className)};return e.root.className=i("root"),e.image&&(e.image.className=i("image")),e.header&&(e.header.className=i("header")),e.description&&(e.description.className=i("description")),e.action&&(e.action.className=i("action")),e},Lg={root:"fui-Card",floatingAction:"fui-Card__floatingAction",checkbox:"fui-Card__checkbox"},ZU=Ge("rfxo2k2","rgle7w9",[".rfxo2k2{overflow:hidden;border-radius:var(--fui-Card--border-radius);padding:var(--fui-Card--size);gap:var(--fui-Card--size);display:flex;position:relative;box-sizing:border-box;color:var(--colorNeutralForeground1);}",'.rfxo2k2::after{position:absolute;top:0;left:0;right:0;bottom:0;content:"";pointer-events:none;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:var(--strokeWidthThin);border-right-width:var(--strokeWidthThin);border-bottom-width:var(--strokeWidthThin);border-left-width:var(--strokeWidthThin);border-radius:var(--fui-Card--border-radius);}',".rfxo2k2>.fui-CardHeader,.rfxo2k2>.fui-CardFooter{flex-shrink:0;}",".rgle7w9{overflow:hidden;border-radius:var(--fui-Card--border-radius);padding:var(--fui-Card--size);gap:var(--fui-Card--size);display:flex;position:relative;box-sizing:border-box;color:var(--colorNeutralForeground1);}",'.rgle7w9::after{position:absolute;top:0;right:0;left:0;bottom:0;content:"";pointer-events:none;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:var(--strokeWidthThin);border-left-width:var(--strokeWidthThin);border-bottom-width:var(--strokeWidthThin);border-right-width:var(--strokeWidthThin);border-radius:var(--fui-Card--border-radius);}',".rgle7w9>.fui-CardHeader,.rgle7w9>.fui-CardFooter{flex-shrink:0;}"]),KU=se({focused:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bqhya38:"f1j6vpng",Bwxa6fj:["f1pniga2","f1ffjurs"],Bdhvstf:"f987i1v",B7zbvrb:["f1ffjurs","f1pniga2"],Bm4h7ae:"f15bsgw9",B7ys5i9:"f14e48fq",Busjfv9:"f18yb2kv",Bhk32uz:"fd6o370",f6g5ot:0,Boxcth7:0,Bhdgwq3:0,hgwjuy:0,Bshpdp8:0,Bsom6fd:0,Blkhhs4:0,Bonggc9:0,Ddfuxk:0,i03rao:0,kclons:0,clg4pj:0,Bpqj9nj:0,B6dhp37:0,Bf4ptjt:0,Bqtpl0w:0,i4rwgc:"fpqizxz",Dah5zi:0,B1tsrr9:0,qqdqy8:0,Bkh64rk:0,e3fwne:"fnd8nzh",J0r882:"f15fr7a0",Bule8hv:["fwsq40z","fy0y4wt"],Bjwuhne:"f34ld9f",Ghsupd:["fy0y4wt","fwsq40z"]},selectableFocused:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",Bssx7fj:"f1b1k54r",uh7if5:["f4ne723","fqqcjud"],clntm0:"fh7aioi",Dlk2r6:["fqqcjud","f4ne723"],h6p2u:"f1ufm4qn",I6qiy5:["f1qnwcb4","fgrk5zm"],yzno9d:"fi52z01",By0wis0:["fgrk5zm","f1qnwcb4"],B2j2mmj:"ffht0p2",wigs8:"f1p0ul1q",pbfy6t:"f1c901ms",B0v4ure:"f1alokd7",Byrf0fs:0,Bsiemmq:0,Bwckmig:0,skfxo0:0,Iidy0u:0,B98u21t:0,Bvwlmkc:0,jo1ztg:0,Ba1iezr:0,Blmvk6g:0,B24cy0v:0,Bil7v7r:0,Br3gin4:0,nr063g:0,ghq09:0,Bbgo44z:0,Bseh09z:"f1i978nd",az1dzo:0,Ba3ybja:0,B6352mv:0,vppk2z:0,Biaj6j7:"f1nh8hsq",B2pnrqr:"f1amxum7",B29w5g4:["f1cec8w7","f554mv0"],Bhhzhcn:"f1sj6kbr",Bec0n69:["f554mv0","f1cec8w7"]},orientationHorizontal:{Beiy3e4:"f1063pyq",Bt984gj:"f122n59",Binpb3b:"ftrw7vg",qrt8p2:"f18opajm",k6ws3r:["f13002it","fqo182t"],Btcwela:["f18yna97","f1kd6wh7"],Fer9m8:"f4i4759"},orientationVertical:{Beiy3e4:"f1vx9l62",B5nvv7i:["f14k419y","f1fgo9fz"],Baxg94k:["f1fgo9fz","f14k419y"],tn21ii:"fvqmfsm",B0ud6bj:"f3am6yf",Bgdo4j:"f1r5wgso"},sizeSmall:{B7balbw:"f1pi9uxy",B1h88n7:"f1h1zgly"},sizeMedium:{B7balbw:"frsmuga",B1h88n7:"fuldkky"},sizeLarge:{B7balbw:"f1qua4xo",B1h88n7:"fimkt6v"},interactive:{rhjd8f:"f1epqm3e"},filled:{De3pzq:"fxugw4r",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"]},filledInteractive:{Bceei9c:"f1k6fduh",De3pzq:"fxugw4r",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"],Bi91k9c:"feu1g3u",Jwef8y:"f1knas48",Bvxd0ez:"f1m145df",ecr2s2:"fb40n2d"},filledInteractiveSelected:{De3pzq:"f1nfm20t",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Bi91k9c:"fx9teim",Jwef8y:"f1kz6goq"},filledAlternative:{De3pzq:"f1dmdbja",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"]},filledAlternativeInteractive:{Bceei9c:"f1k6fduh",De3pzq:"f1dmdbja",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"],Bi91k9c:"fnwyq0v",Jwef8y:"f1uvynv3",Bvxd0ez:"f1m145df",ecr2s2:"f1yhgkbh"},filledAlternativeInteractiveSelected:{De3pzq:"fjxa0vh",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Bi91k9c:"f1luvkty",Jwef8y:"fehi0vp"},outline:{De3pzq:"f1c21dwh",E5pizo:"f1couhl3",B0n5ga8:"ft83z1f",s924m2:["f1g4150c","f192dr6e"],B1q35kw:"f1qnawh6",Gp14am:["f192dr6e","f1g4150c"]},outlineInteractive:{Bceei9c:"f1k6fduh",De3pzq:"f1c21dwh",E5pizo:"f1couhl3",B0n5ga8:"ft83z1f",s924m2:["f1g4150c","f192dr6e"],B1q35kw:"f1qnawh6",Gp14am:["f192dr6e","f1g4150c"],Bi91k9c:"feu1g3u",Jwef8y:"fjxutwb",Be0v6ae:"f1llr77y",B5kxglz:["fzk0khw","fjj8tog"],B3pwyw6:"fb1u8ub",Bymgtzf:["fjj8tog","fzk0khw"],ecr2s2:"fophhak",dmfk:"f1uohb70",B4ofi8:["f1jm7v1n","f1bus3rq"],jgq6uv:"f1fbu7rr",Baxewws:["f1bus3rq","f1jm7v1n"]},outlineInteractiveSelected:{De3pzq:"f1q9pm1r",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Bi91k9c:"fx9teim",Jwef8y:"fg59vm4"},outlineDisabled:{De3pzq:"f1c21dwh",E5pizo:"f1couhl3",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],ezxybo:"f1ls5moo",wc7uws:"f1qiza15",B0n5ga8:"f13dj02",s924m2:["f9wngki","f17v59j0"],B1q35kw:"f1vxzwsp",Gp14am:["f17v59j0","f9wngki"]},subtle:{De3pzq:"fhovq9v",E5pizo:"f1couhl3",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"]},subtleInteractive:{Bceei9c:"f1k6fduh",De3pzq:"fhovq9v",E5pizo:"f1couhl3",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"],Bi91k9c:"feu1g3u",Jwef8y:"f1t94bn6",ecr2s2:"f1wfn5kd"},subtleInteractiveSelected:{De3pzq:"fq5gl1p",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Bi91k9c:"fx9teim",Jwef8y:"f1uqaxdt"},highContrastSelected:{B8gzw0y:"f1h3a8gf",By8wz76:"f1nz3ub2",B7iucu3:"fqc85l4",Boo9lyk:"f1ucc5z8",sga51p:"fyj59f4",qj1yg9:["f19v95gn","f1n69f6i"],B8acmzm:"f16q7dot",Gezqo6:["f1n69f6i","f19v95gn"]},highContrastInteractive:{waf3gn:"f1quqgnd",B96h8j5:"f193utb4",Bpd3jnq:"f1io67iv",uhbujs:"f3n01jk",sga51p:"fyj59f4",qj1yg9:["f19v95gn","f1n69f6i"],B8acmzm:"f16q7dot",Gezqo6:["f1n69f6i","f19v95gn"]},select:{qhf8xq:"f1euv43f",Bhzewxz:"fqclxi7",j35jbq:["fiv86kb","f36uhnt"],Bj3rh1h:"fom9my7"},hiddenCheckbox:{B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp",a9b677:"frkrog8",Bqenvij:"f1mpe4l3",qhf8xq:"f1euv43f",Bh84pgu:"fmf1zke",Bgl5zvf:"f1wch0ki",Huce71:"fz5stix"},disabled:{Bceei9c:"fdrzuqr",famaaq:"f1xqy1su",sj55zd:"f1s2aq7o",De3pzq:"f1bg9a2p",E5pizo:"fyed02w",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Ftih45:"f1wl9k8s",Brfgrao:"f1j7ml58",lawp4y:0,Fbdkly:0,mdwyqc:0,Bciustq:0,gc50h5:"f13vvzas",Ehzi8l:"f198lalb",B0n5ga8:"f13dj02",s924m2:["f9wngki","f17v59j0"],B1q35kw:"f1vxzwsp",Gp14am:["f17v59j0","f9wngki"],Bikrtoi:"f11og98d",G8qf51:"f1rg3h4v",Brxh4y7:"fbm2y3b",ezxybo:"f4yodeu",wc7uws:"fcwfbwp",gp3uxg:"f1repx37",Fohawp:["f1ybi8ct","f1h4eg6q"],Bxulg6k:"f18mejnb",vcjq4m:["f1h4eg6q","f1ybi8ct"],Bsqkqe9:"f1nift3m",fskg1g:"f1wu3i8x",iwiei9:0,Effecx:0,Bkt1b9m:0,jfmxvr:0,orauir:"f6v4vfa",B2yd9ot:"folrdqs",Fn9tzk:"f168z5yf",Bv0wker:["fpor7gj","fzextn6"],Bp2dl5b:"f1yaw79v",pzn0iz:["fzextn6","fpor7gj"]}},{f:[".ftqa4ok:focus{outline-style:none;}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"],d:[".f8hki3x[data-fui-focus-visible]{border-top-color:transparent;}",".f1d2448m[data-fui-focus-visible]{border-right-color:transparent;}",".ffh67wi[data-fui-focus-visible]{border-left-color:transparent;}",".f1bjia2o[data-fui-focus-visible]{border-bottom-color:transparent;}",'.f15bsgw9[data-fui-focus-visible]::after{content:"";}',".f14e48fq[data-fui-focus-visible]::after{position:absolute;}",".f18yb2kv[data-fui-focus-visible]::after{pointer-events:none;}",".fd6o370[data-fui-focus-visible]::after{z-index:1;}",[".fpqizxz[data-fui-focus-visible]::after{border:var(--strokeWidthThick) solid var(--colorStrokeFocus2);}",{p:-2}],[".fnd8nzh[data-fui-focus-visible]::after{border-radius:var(--fui-Card--border-radius);}",{p:-1}],".f15fr7a0[data-fui-focus-visible]::after{top:calc(0px - var(--strokeWidthThick) - -2px);}",".fwsq40z[data-fui-focus-visible]::after{right:calc(0px - var(--strokeWidthThick) - -2px);}",".fy0y4wt[data-fui-focus-visible]::after{left:calc(0px - var(--strokeWidthThick) - -2px);}",".f34ld9f[data-fui-focus-visible]::after{bottom:calc(0px - var(--strokeWidthThick) - -2px);}",".f1b1k54r[data-fui-focus-within]:focus-within{border-top-color:transparent;}",".f4ne723[data-fui-focus-within]:focus-within{border-right-color:transparent;}",".fqqcjud[data-fui-focus-within]:focus-within{border-left-color:transparent;}",".fh7aioi[data-fui-focus-within]:focus-within{border-bottom-color:transparent;}",'.ffht0p2[data-fui-focus-within]:focus-within::after{content:"";}',".f1p0ul1q[data-fui-focus-within]:focus-within::after{position:absolute;}",".f1c901ms[data-fui-focus-within]:focus-within::after{pointer-events:none;}",".f1alokd7[data-fui-focus-within]:focus-within::after{z-index:1;}",[".f1i978nd[data-fui-focus-within]:focus-within::after{border:var(--strokeWidthThick) solid var(--colorStrokeFocus2);}",{p:-2}],[".f1nh8hsq[data-fui-focus-within]:focus-within::after{border-radius:var(--fui-Card--border-radius);}",{p:-1}],".f1amxum7[data-fui-focus-within]:focus-within::after{top:calc(0px - var(--strokeWidthThick) - -2px);}",".f1cec8w7[data-fui-focus-within]:focus-within::after{right:calc(0px - var(--strokeWidthThick) - -2px);}",".f554mv0[data-fui-focus-within]:focus-within::after{left:calc(0px - var(--strokeWidthThick) - -2px);}",".f1sj6kbr[data-fui-focus-within]:focus-within::after{bottom:calc(0px - var(--strokeWidthThick) - -2px);}",".f1063pyq{flex-direction:row;}",".f122n59{align-items:center;}",".ftrw7vg>.fui-CardPreview{margin-top:calc(var(--fui-Card--size) * -1);}",".f18opajm>.fui-CardPreview{margin-bottom:calc(var(--fui-Card--size) * -1);}",'.f13002it>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-left:calc(var(--fui-Card--size) * -1);}','.fqo182t>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-right:calc(var(--fui-Card--size) * -1);}','.f18yna97>:not([aria-hidden="true"]).fui-CardPreview:last-of-type{margin-right:calc(var(--fui-Card--size) * -1);}','.f1kd6wh7>:not([aria-hidden="true"]).fui-CardPreview:last-of-type{margin-left:calc(var(--fui-Card--size) * -1);}',".f4i4759>.fui-CardHeader:last-of-type,.f4i4759>.fui-CardFooter:last-of-type{flex-grow:1;}",".f1vx9l62{flex-direction:column;}",".f14k419y>.fui-CardPreview{margin-left:calc(var(--fui-Card--size) * -1);}",".f1fgo9fz>.fui-CardPreview{margin-right:calc(var(--fui-Card--size) * -1);}",'.fvqmfsm>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-top:calc(var(--fui-Card--size) * -1);}',".f3am6yf>.fui-Card__floatingAction+.fui-CardPreview{margin-top:calc(var(--fui-Card--size) * -1);}",'.f1r5wgso>:not([aria-hidden="true"]).fui-CardPreview:last-of-type{margin-bottom:calc(var(--fui-Card--size) * -1);}',".f1pi9uxy{--fui-Card--size:8px;}",".f1h1zgly{--fui-Card--border-radius:var(--borderRadiusSmall);}",".frsmuga{--fui-Card--size:12px;}",".fuldkky{--fui-Card--border-radius:var(--borderRadiusMedium);}",".f1qua4xo{--fui-Card--size:16px;}",".fimkt6v{--fui-Card--border-radius:var(--borderRadiusLarge);}",".f1epqm3e .fui-Text{color:currentColor;}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1whvlc6{box-shadow:var(--shadow4);}",".f16gxe2i::after{border-top-color:var(--colorTransparentStroke);}",".fpgykix::after{border-right-color:var(--colorTransparentStroke);}",".fzybk4o::after{border-left-color:var(--colorTransparentStroke);}",".f1osi826::after{border-bottom-color:var(--colorTransparentStroke);}",".f1k6fduh{cursor:pointer;}",".f1nfm20t{background-color:var(--colorNeutralBackground1Selected);}",".f16eln5f::after{border-top-color:var(--colorNeutralStroke1Selected);}",".fa2okxs::after{border-right-color:var(--colorNeutralStroke1Selected);}",".fg4zq3l::after{border-left-color:var(--colorNeutralStroke1Selected);}",".ff6932p::after{border-bottom-color:var(--colorNeutralStroke1Selected);}",".f1dmdbja{background-color:var(--colorNeutralBackground2);}",".fjxa0vh{background-color:var(--colorNeutralBackground2Selected);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1couhl3{box-shadow:none;}",".ft83z1f::after{border-top-color:var(--colorNeutralStroke1);}",".f1g4150c::after{border-right-color:var(--colorNeutralStroke1);}",".f192dr6e::after{border-left-color:var(--colorNeutralStroke1);}",".f1qnawh6::after{border-bottom-color:var(--colorNeutralStroke1);}",".f1q9pm1r{background-color:var(--colorTransparentBackgroundSelected);}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f13dj02::after{border-top-color:var(--colorNeutralStrokeDisabled);}",".f9wngki::after{border-right-color:var(--colorNeutralStrokeDisabled);}",".f17v59j0::after{border-left-color:var(--colorNeutralStrokeDisabled);}",".f1vxzwsp::after{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fq5gl1p{background-color:var(--colorSubtleBackgroundSelected);}",".f1euv43f{position:absolute;}",".fqclxi7{top:4px;}",".fiv86kb{right:4px;}",".f36uhnt{left:4px;}",".fom9my7{z-index:var(--zIndexContent, 1);}",[".f1a3p1vp{overflow:hidden;}",{p:-1}],".frkrog8{width:1px;}",".f1mpe4l3{height:1px;}",".fmf1zke{clip:rect(0 0 0 0);}",".f1wch0ki{clip-path:inset(50%);}",".fz5stix{white-space:nowrap;}",".fdrzuqr{cursor:not-allowed;}",".f1xqy1su{-webkit-user-select:none;-moz-user-select:none;user-select:none;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",".fyed02w{box-shadow:var(--shadow2);}",'.f1wl9k8s::before{content:"";}',".f1j7ml58::before{position:absolute;}",[".f13vvzas::before{inset:0;}",{p:-1}],".f198lalb::before{z-index:calc(var(--zIndexContent, 1) + 1);}"],m:[["@media (forced-colors: active){.f1j6vpng[data-fui-focus-visible]::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ffjurs[data-fui-focus-visible]::after{border-left-color:Highlight;}.f1pniga2[data-fui-focus-visible]::after{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f987i1v[data-fui-focus-visible]::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ufm4qn[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1qnwcb4[data-fui-focus-within]:focus-within::after{border-right-color:Highlight;}.fgrk5zm[data-fui-focus-within]:focus-within::after{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fi52z01[data-fui-focus-within]:focus-within::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1h3a8gf{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1nz3ub2{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fqc85l4{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ucc5z8 .fui-CardPreview,.f1ucc5z8 .fui-CardFooter{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fyj59f4::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f19v95gn::after{border-right-color:Highlight;}.f1n69f6i::after{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16q7dot::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1quqgnd:hover,.f1quqgnd :active{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f193utb4:hover,.f193utb4 :active{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1io67iv:hover,.f1io67iv :active{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3n01jk:hover .fui-CardPreview,.f3n01jk :active .fui-CardPreview,.f3n01jk:hover .fui-CardFooter,.f3n01jk :active .fui-CardFooter{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}]],h:[".feu1g3u:hover{color:var(--colorNeutralForeground1Hover);}",".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}",".f1m145df:hover{box-shadow:var(--shadow8);}",".fx9teim:hover{color:var(--colorNeutralForeground1Selected);}",".f1kz6goq:hover{background-color:var(--colorNeutralBackground1Selected);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".f1uvynv3:hover{background-color:var(--colorNeutralBackground2Hover);}",".f1luvkty:hover{color:var(--colorNeutralForeground2Selected);}",".fehi0vp:hover{background-color:var(--colorNeutralBackground2Selected);}",".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".f1llr77y:hover::after{border-top-color:var(--colorNeutralStroke1Hover);}",".fzk0khw:hover::after{border-right-color:var(--colorNeutralStroke1Hover);}",".fjj8tog:hover::after{border-left-color:var(--colorNeutralStroke1Hover);}",".fb1u8ub:hover::after{border-bottom-color:var(--colorNeutralStroke1Hover);}",".fg59vm4:hover{background-color:var(--colorTransparentBackgroundSelected);}",".f1ls5moo:hover,.f1ls5moo:active{background-color:var(--colorTransparentBackground);}",".f1qiza15:hover,.f1qiza15:active{box-shadow:none;}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".f1uqaxdt:hover{background-color:var(--colorSubtleBackgroundSelected);}",".f11og98d:hover,.f11og98d:active{cursor:not-allowed;}",".f1rg3h4v:hover,.f1rg3h4v:active{-webkit-user-select:none;-moz-user-select:none;user-select:none;}",".fbm2y3b:hover,.fbm2y3b:active{color:var(--colorNeutralForegroundDisabled);}",".f4yodeu:hover,.f4yodeu:active{background-color:var(--colorNeutralBackgroundDisabled);}",".fcwfbwp:hover,.fcwfbwp:active{box-shadow:var(--shadow2);}",".f1repx37:hover,.f1repx37:active{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1ybi8ct:hover,.f1ybi8ct:active{border-right-color:var(--colorNeutralStrokeDisabled);}",".f1h4eg6q:hover,.f1h4eg6q:active{border-left-color:var(--colorNeutralStrokeDisabled);}",".f18mejnb:hover,.f18mejnb:active{border-bottom-color:var(--colorNeutralStrokeDisabled);}",'.f1nift3m:hover::before,.f1nift3m:active::before{content:"";}',".f1wu3i8x:hover::before,.f1wu3i8x:active::before{position:absolute;}",[".f6v4vfa:hover::before,.f6v4vfa:active::before{inset:0;}",{p:-1}],".folrdqs:hover::before,.folrdqs:active::before{z-index:calc(var(--zIndexContent, 1) + 1);}",".f168z5yf:hover::after,.f168z5yf:active::after{border-top-color:var(--colorNeutralStrokeDisabled);}",".fpor7gj:hover::after,.fpor7gj:active::after{border-right-color:var(--colorNeutralStrokeDisabled);}",".fzextn6:hover::after,.fzextn6:active::after{border-left-color:var(--colorNeutralStrokeDisabled);}",".f1yaw79v:hover::after,.f1yaw79v:active::after{border-bottom-color:var(--colorNeutralStrokeDisabled);}"],a:[".fb40n2d:active{background-color:var(--colorNeutralBackground1Pressed);}",".f1yhgkbh:active{background-color:var(--colorNeutralBackground2Pressed);}",".fophhak:active{background-color:var(--colorTransparentBackgroundPressed);}",".f1uohb70:active::after{border-top-color:var(--colorNeutralStroke1Pressed);}",".f1jm7v1n:active::after{border-right-color:var(--colorNeutralStroke1Pressed);}",".f1bus3rq:active::after{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1fbu7rr:active::after{border-bottom-color:var(--colorNeutralStroke1Pressed);}",".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}"]}),QU=e=>{"use no memo";const t=ZU(),r=KU(),n={horizontal:r.orientationHorizontal,vertical:r.orientationVertical},o={small:r.sizeSmall,medium:r.sizeMedium,large:r.sizeLarge},i={filled:r.filled,"filled-alternative":r.filledAlternative,outline:r.outline,subtle:r.subtle},s={filled:r.filledInteractiveSelected,"filled-alternative":r.filledAlternativeInteractiveSelected,outline:r.outlineInteractiveSelected,subtle:r.subtleInteractiveSelected},a={filled:r.filledInteractive,"filled-alternative":r.filledAlternativeInteractive,outline:r.outlineInteractive,subtle:r.subtleInteractive},l=!e.disabled&&(e.interactive||e.selectable),c=B.useMemo(()=>e.disabled?"":e.selectable?e.selectFocused?r.selectableFocused:"":r.focused,[e.disabled,e.selectFocused,e.selectable,r.focused,r.selectableFocused]);return e.root.className=ne(Lg.root,t,n[e.orientation],o[e.size],i[e.appearance],l&&r.interactive,l&&a[e.appearance],e.selected&&s[e.appearance],c,l&&r.highContrastInteractive,e.selected&&r.highContrastSelected,e.disabled&&r.disabled,e.disabled&&e.appearance==="outline"&&r.outlineDisabled,e.root.className),e.floatingAction&&(e.floatingAction.className=ne(Lg.floatingAction,r.select,e.floatingAction.className)),e.checkbox&&(e.checkbox.className=ne(Lg.checkbox,r.hiddenCheckbox,e.checkbox.className)),e};function JU({selectableA11yProps:e}){return{selectableA11yProps:e}}const Pe=B.forwardRef((e,t)=>{const r=WU(e,t),n=JU(r);return QU(r),Le("useCardStyles_unstable")(r),VU(r,n)});Pe.displayName="Card";function eG(e){function t(r){return B.isValidElement(r)&&!!r.props.id}return B.Children.toArray(e).find(t)}function tG(e,t,r){return e||(t!=null&&t.props.id?t.props.id:r)}const rG=(e,t)=>{const{image:r,header:n,description:o,action:i}=e,{selectableA11yProps:{referenceId:s,setReferenceId:a}}=qU(),l=B.useRef(null),c=B.useRef(!1),u=or(P3.header,s),d=qe(n,{renderByDefault:!0,defaultProps:{ref:l,id:c.current?void 0:s},elementType:"div"});return B.useEffect(()=>{var p;const h=c.current||(p=l.current)===null||p===void 0?void 0:p.id,m=eG(d==null?void 0:d.children);c.current=!!m,a(tG(h,m,u))},[u,n,d,a]),{components:{root:"div",image:"div",header:"div",description:"div",action:"div"},root:Ce(Je("div",{ref:t,...e}),{elementType:"div"}),image:qe(r,{elementType:"div"}),header:d,description:qe(o,{elementType:"div"}),action:qe(i,{elementType:"div"})}},nG=e=>rt(e.root,{children:[e.image&&J(e.image,{}),e.header&&J(e.header,{}),e.description&&J(e.description,{}),e.action&&J(e.action,{})]}),At=B.forwardRef((e,t)=>{const r=rG(e,t);return YU(r),Le("useCardHeaderStyles_unstable")(r),nG(r)});At.displayName="CardHeader";const jn={show:"fui-toast-show",dismiss:"fui-toast-dismiss",dismissAll:"fui-toast-dismiss-all",update:"fui-toast-update",pause:"fui-toast-pause",play:"fui-toast-play"},zn={bottom:"bottom",bottomEnd:"bottom-end",bottomStart:"bottom-start",top:"top",topEnd:"top-end",topStart:"top-start"};let oG=0;function iG(e,t={},r){var n;const o={...t,content:e,toastId:(n=t.toastId)!==null&&n!==void 0?n:(oG++).toString()},i=new CustomEvent(jn.show,{bubbles:!1,cancelable:!1,detail:o});r.dispatchEvent(i)}function sG(e,t=void 0,r){const n=new CustomEvent(jn.dismiss,{bubbles:!1,cancelable:!1,detail:{toastId:e,toasterId:t}});r.dispatchEvent(n)}function aG(e=void 0,t){const r=new CustomEvent(jn.dismissAll,{bubbles:!1,cancelable:!1,detail:{toasterId:e}});t.dispatchEvent(r)}function lG(e,t){const r=new CustomEvent(jn.update,{bubbles:!1,cancelable:!1,detail:e});t.dispatchEvent(r)}function cG(e,t=void 0,r){const n=new CustomEvent(jn.pause,{bubbles:!1,cancelable:!1,detail:{toastId:e,toasterId:t}});r.dispatchEvent(n)}function uG(e,t=void 0,r){const n=new CustomEvent(jn.play,{bubbles:!1,cancelable:!1,detail:{toastId:e,toasterId:t}});r.dispatchEvent(n)}function l2(e,t){for(const[r,n]of Object.entries(t))n!=null&&(e[r]=n)}const dG={onStatusChange:void 0,priority:0,pauseOnHover:!1,pauseOnWindowBlur:!1,position:"bottom-end",timeout:3e3};let fG=0;function hG(e){const{limit:t=Number.POSITIVE_INFINITY}=e,r=new Set,n=new Map,o=J_((u,d)=>{const p=n.get(u),h=n.get(d);return!p||!h?0:p.priority===h.priority?p.order-h.order:p.priority-h.priority});return{buildToast:(u,d)=>{var p;const{toastId:h,content:m,toasterId:g}=u;if(n.has(h))return;const b={...dG,close:()=>{var x;const k=n.get(h);k&&(r.delete(h),d(),(x=k.onStatusChange)===null||x===void 0||x.call(k,null,{status:"dismissed",...k}))},remove:()=>{if(n.get(h)){if(n.delete(h),r.size<t&&o.peek()){const k=n.get(o.dequeue());if(!k)return;r.add(k.toastId)}d()}},toastId:h,content:m,updateId:0,toasterId:g,order:fG++,data:{},imperativeRef:B.createRef()};l2(b,e),l2(b,u),n.set(h,b),(p=b.onStatusChange)===null||p===void 0||p.call(b,null,{status:"queued",...b}),r.size>=t?o.enqueue(h):r.add(h)},dismissAllToasts:()=>{r.clear(),o.clear()},dismissToast:u=>{r.delete(u)},isToastVisible:u=>r.has(u),updateToast:u=>{const{toastId:d}=u,p=n.get(d);p&&(Object.assign(p,u),p.updateId++)},visibleToasts:r,toasts:n}}const ta=(e,t,r)=>{const n={};var o;const i=r?pG(r)?r:(o=r[e])!==null&&o!==void 0?o:{}:{},s=e==="top"||e==="bottom",{horizontal:a=s?0:20,vertical:l=16}=i,c=t==="ltr"?"left":"right",u=t==="ltr"?"right":"left";switch(e){case"top":Object.assign(n,{top:l,left:`calc(50% + ${a}px)`,transform:"translateX(-50%)"});break;case"bottom":Object.assign(n,{bottom:l,left:`calc(50% + ${a}px)`,transform:"translateX(-50%)"});break;case"top-start":Object.assign(n,{top:l,[c]:a});break;case"top-end":Object.assign(n,{top:l,[u]:a});break;case"bottom-start":Object.assign(n,{bottom:l,[c]:a});break;case"bottom-end":Object.assign(n,{bottom:l,[u]:a});break}return n};function pG(e){return"horizontal"in e||"vertical"in e}function gG(e={}){const t=Z_(),{toasterId:r,shortcuts:n}=e,[o]=B.useState(()=>hG(e)),{targetDocument:i}=mt(),s=B.useRef(null),a=ye(g=>g===r),l=ye(g=>{if(n!=null&&n.focus)return n.focus(g)}),c=B.useCallback(()=>{o.visibleToasts.forEach(g=>{var y;const v=o.toasts.get(g);v==null||(y=v.imperativeRef.current)===null||y===void 0||y.pause()})},[o]),u=B.useCallback(()=>{o.visibleToasts.forEach(g=>{var y;const v=o.toasts.get(g);v==null||(y=v.imperativeRef.current)===null||y===void 0||y.play()})},[o]),d=B.useCallback(()=>Array.from(o.visibleToasts).reduce((g,y)=>{const v=o.toasts.get(y);return v&&(!g||g.order<(v==null?void 0:v.order))?v:g},void 0),[o]),p=B.useCallback(()=>{const g=d();if(g!=null&&g.imperativeRef.current)g.imperativeRef.current.focus();else{var y;(y=s.current)===null||y===void 0||y.focus(),s.current=null}},[d]),h=B.useCallback(()=>{o.visibleToasts.forEach(g=>{const y=o.toasts.get(g);y==null||y.close()}),p()},[o,p]);B.useEffect(()=>{if(!i)return;const g=(P,C)=>{const R=O=>{a(O.detail.toasterId)&&(C(O),t())};return i.addEventListener(P,R),()=>i.removeEventListener(P,R)},y=P=>{o.buildToast(P.detail,t)},v=P=>{o.dismissToast(P.detail.toastId)},b=P=>{o.updateToast(P.detail)},x=P=>{o.dismissAllToasts()},k=P=>{const C=o.toasts.get(P.detail.toastId);if(C){var R;(R=C.imperativeRef.current)===null||R===void 0||R.pause()}},S=P=>{const C=o.toasts.get(P.detail.toastId);if(C){var R;(R=C.imperativeRef.current)===null||R===void 0||R.play()}},_=g(jn.show,y),N=g(jn.update,b),z=g(jn.dismiss,v),F=g(jn.dismissAll,x),I=g(jn.pause,k),H=g(jn.play,S),A=P=>{if(l(P)){c();const R=d();if(R){var C;s.current=Et(i.activeElement)?i.activeElement:null,(C=R.imperativeRef.current)===null||C===void 0||C.focus()}}};return i.addEventListener("keydown",A),()=>{_(),F(),N(),z(),I(),H(),i.removeEventListener("keydown",A)}},[o,t,i,a,c,d,l]);const m=(()=>{if(!o)return new Map;const g=new Map;return Array.from(o.toasts.values()).forEach(v=>{const{position:b}=v;g.has(b)||g.set(b,[]),b.startsWith("bottom")?g.get(b).push(v):g.get(b).unshift(v)}),g})();return{isToastVisible:o.isToastVisible,toastsToRender:m,pauseAllToasts:c,playAllToasts:u,tryRestoreFocus:p,closeAllToasts:h}}const ra=()=>{};function mG(e){const{targetDocument:t}=mt();return B.useMemo(()=>t?{dispatchToast:(r,n)=>{iG(r,{...n,toasterId:e,data:{root:n==null?void 0:n.root}},t)},dismissToast:r=>{sG(r,e,t)},dismissAllToasts:()=>{aG(e,t)},updateToast:r=>{lG({...r,data:{root:r.root},toasterId:e},t)},pauseToast:r=>{cG(r,e,t)},playToast:r=>{uG(r,e,t)}}:{dispatchToast:ra,dismissToast:ra,dismissAllToasts:ra,updateToast:ra,pauseToast:ra,playToast:ra},[t,e])}const vG={close:()=>null,intent:void 0,bodyId:"",titleId:""},I3=B.createContext(void 0),yG=I3.Provider,M3=()=>{var e;return(e=B.useContext(I3))!==null&&e!==void 0?e:vG},bG=Ge("r16zaflb","r75casi",[".r16zaflb{animation-name:rsacmq1;}","@keyframes rsacmq1{from{opacity:0;}to{opacity:0;}}",".r75casi{animation-name:rsacmq1;}"]),A0=B.forwardRef((e,t)=>{const r=bG(),{running:n,timeout:o,onTimeout:i}=e,s={animationDuration:`${o}ms`,animationPlayState:n?"running":"paused"};return o<0?null:B.createElement("span",{onAnimationEnd:i,"data-timer-status":s.animationPlayState,ref:t,style:s,className:r})});A0.displayName="Timer";const xG={success:"assertive",warning:"assertive",error:"assertive",info:"polite"},wG=(e,t)=>{const{visible:r,children:n,close:o,remove:i,updateId:s,announce:a,data:l,timeout:c,politeness:u,intent:d="info",pauseOnHover:p,pauseOnWindowBlur:h,imperativeRef:m,tryRestoreFocus:g,content:y,...v}=e,b=or("toast-title"),x=or("toast-body"),k=B.useRef(null),{targetDocument:S}=mt(),[_,N]=B.useState(!1),z=B.useRef(!1),F=B.useRef(!1),I=pl({tabBehavior:"limited-trap-focus",ignoreDefaultKeydown:{Tab:!0,Escape:!0,Enter:!0}}),H=ye(()=>{var L;const Y=S==null?void 0:S.activeElement;Y&&(!((L=k.current)===null||L===void 0)&&L.contains(Y))&&(F.current=!0),o()}),A=ye(L=>{var Y;return(Y=e.onStatusChange)===null||Y===void 0?void 0:Y.call(e,null,{status:L,...e})}),P=ye(()=>N(!1)),C=ye(()=>{var L;if(z.current)return;var Y;const ee=!!(!((L=k.current)===null||L===void 0)&&L.contains((Y=S==null?void 0:S.activeElement)!==null&&Y!==void 0?Y:null));if(c<0){N(!0);return}ee||N(!0)});B.useImperativeHandle(m,()=>({focus:()=>{k.current&&k.current.focus()},play:()=>{z.current=!1,C()},pause:()=>{z.current=!0,P()}})),B.useEffect(()=>()=>A("unmounted"),[A]),B.useEffect(()=>{if(S&&h){var L,Y;return(L=S.defaultView)===null||L===void 0||L.addEventListener("focus",C),(Y=S.defaultView)===null||Y===void 0||Y.addEventListener("blur",P),()=>{var ee,te;(ee=S.defaultView)===null||ee===void 0||ee.removeEventListener("focus",C),(te=S.defaultView)===null||te===void 0||te.removeEventListener("blur",P)}}},[S,P,C,h]);const R=l.root,O=B.useCallback((L,{direction:Y})=>{Y==="exit"&&i(),Y==="enter"&&(C(),A("visible"))},[A,C,i]),D=ye(L=>{var Y;P(),R==null||(Y=R.onMouseEnter)===null||Y===void 0||Y.call(R,L)}),M=ye(L=>{var Y;C(),R==null||(Y=R.onMouseEnter)===null||Y===void 0||Y.call(R,L)}),{findFirstFocusable:$,findLastFocusable:X}=gl(),V=ye(L=>{var Y;if(L.key===M5&&(L.preventDefault(),H()),L.key===R5&&L.currentTarget===L.target)if(L.preventDefault(),L.shiftKey){var ee;(ee=X(L.currentTarget))===null||ee===void 0||ee.focus()}else{var te;(te=$(L.currentTarget))===null||te===void 0||te.focus()}R==null||(Y=R.onKeyDown)===null||Y===void 0||Y.call(R,L)});return B.useEffect(()=>{var L;if(!r)return;const Y=u??xG[d];var ee;a((ee=(L=k.current)===null||L===void 0?void 0:L.textContent)!==null&&ee!==void 0?ee:"",{politeness:Y})},[a,u,k,r,s,d]),B.useEffect(()=>()=>{F.current&&(F.current=!1,g())},[g]),{components:{timer:A0,root:"div"},timer:Ce({onTimeout:H,running:_,timeout:c??-1},{elementType:A0}),root:Ce(Je("div",{ref:yt(t,k),children:n,tabIndex:0,role:"listitem","aria-labelledby":b,"aria-describedby":x,...v,...R,...I,onMouseEnter:D,onMouseLeave:M,onKeyDown:V}),{elementType:"div"}),timerTimeout:c,transitionTimeout:0,running:_,visible:r,remove:i,close:H,onTransitionEntering:()=>{},updateId:s,nodeRef:k,intent:d,titleId:b,bodyId:x,onMotionFinish:O}},kG=(e,t)=>{const{onMotionFinish:r,visible:n,updateId:o}=e;return J(yG,{value:t.toast,children:J(N7,{appear:!0,onMotionFinish:r,visible:n,unmountOnExit:!0,children:rt(e.root,{children:[e.root.children,J(e.timer,{},o)]})})})},D3={root:"fui-ToastContainer"},SG=Ge("r98b696",null,[".r98b696{box-sizing:border-box;margin-top:16px;pointer-events:all;border-radius:var(--borderRadiusMedium);}",".r98b696[data-fui-focus-visible]{outline:var(--strokeWidthThick) solid var(--colorStrokeFocus2);}"]),CG=e=>{"use no memo";const t=SG();return e.root.className=ne(D3.root,t,e.root.className),e};function _G(e){const{close:t,intent:r,titleId:n,bodyId:o}=e;return{toast:B.useMemo(()=>({close:t,intent:r,titleId:n,bodyId:o}),[t,r,n,o])}}const L3=B.forwardRef((e,t)=>{const r=wG(e,t);return CG(r),Le("useToastContainerStyles_unstable")(r),kG(r,_G(r))});L3.displayName="ToastContainer";const c2=()=>{};function BG(e,t){const{targetDocument:r}=mt(),n=B.useRef(c2);return B.useCallback(o=>{if(!o||!r){n.current(),n.current=c2;return}const i=r.createTreeWalker(o,NodeFilter.SHOW_ELEMENT,{acceptNode(c){return Et(c)&&c.classList.contains(D3.root)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}}),s=c=>{const{target:u,key:d}=c;if(Et(u)){if(d===Wf){i.currentNode=u;let p=i.nextNode();p||(i.currentNode=o,p=i.nextNode()),Et(p)&&p.focus()}if(d===zc){i.currentNode=u;let p=i.previousNode();p&&p.contains(u)&&(p=i.previousNode()),p||(i.currentNode=o,p=i.lastChild()),Et(p)&&p.focus()}}},a=c=>{Et(c.currentTarget)&&!c.currentTarget.contains(Et(c.relatedTarget)?c.relatedTarget:null)&&e()},l=c=>{Et(c.currentTarget)&&!c.currentTarget.contains(Et(c.relatedTarget)?c.relatedTarget:null)&&t()};o.addEventListener("keydown",s),o.addEventListener("focusin",a),o.addEventListener("focusout",l),n.current=()=>{o.removeEventListener("keydown",s),o.removeEventListener("focusin",a),o.removeEventListener("focusout",l)}},[r,e,t])}function TG(e){const t=B.useRef(!0),r=B.useRef(()=>{}),n=B.useCallback((i,s)=>{t.current&&e(i,s)},[e]),o=B.useCallback(i=>{if(!i){r.current();return}const s=l=>{Et(l.currentTarget)&&l.currentTarget.contains(Et(l.relatedTarget)?l.relatedTarget:null)||(t.current=!1)},a=l=>{Et(l.currentTarget)&&l.currentTarget.contains(Et(l.relatedTarget)?l.relatedTarget:null)||(t.current=!0)};i.addEventListener("focusin",s),i.addEventListener("focusout",a),r.current=()=>{i.removeEventListener("focusin",s),i.removeEventListener("focusout",a)}},[]);return{announceToast:n,toasterRef:o}}const NG=e=>{"use no memo";const{offset:t,announce:r,mountNode:n,inline:o=!1,...i}=e,s=B.useRef(()=>null),{toastsToRender:a,isToastVisible:l,pauseAllToasts:c,playAllToasts:u,tryRestoreFocus:d,closeAllToasts:p}=gG(i),h=B.useCallback((k,S)=>s.current(k,S),[]),{dir:m}=mt(),{onKeyDown:g,...y}=Ce(Je("div",i),{elementType:"div"}),v=pl({tabBehavior:"limited-trap-focus",ignoreDefaultKeydown:{Escape:!0}}),b=ye(k=>{k.key===Au&&(k.preventDefault(),p()),g==null||g(k)}),x=k=>{var S;const _=BG(c,u),{announceToast:N,toasterRef:z}=TG(r??h);return qe(a.has(k)?y:null,{defaultProps:{ref:yt(_,z),children:(S=a.get(k))===null||S===void 0?void 0:S.map(F=>B.createElement(L3,{...F,tryRestoreFocus:d,intent:F.intent,announce:N,key:F.toastId,visible:l(F.toastId)},F.content)),onKeyDown:b,...v,"data-toaster-position":k,role:"list"},elementType:"div"})};return{dir:m,mountNode:n,components:{root:"div",bottomStart:"div",bottomEnd:"div",topStart:"div",topEnd:"div",top:"div",bottom:"div"},root:Ce(y,{elementType:"div"}),bottomStart:x(zn.bottomStart),bottomEnd:x(zn.bottomEnd),topStart:x(zn.topStart),topEnd:x(zn.topEnd),top:x(zn.top),bottom:x(zn.bottom),announceRef:s,offset:t,announce:r??h,renderAriaLive:!r,inline:o}},jG=500,zG=e=>{const[t,r]=B.useState(void 0),n=B.useRef(0),[o]=B.useState(()=>J_((u,d)=>u.politeness===d.politeness?u.createdAt-d.createdAt:u.politeness==="assertive"?-1:1)),i=ye((u,d)=>{const{politeness:p}=d;if(u===(t==null?void 0:t.message))return;const h={message:u,politeness:p,createdAt:n.current++};t?o.enqueue(h):r(h)}),[s,a]=Iy();B.useEffect(()=>(s(()=>{o.peek()?r(o.dequeue()):r(void 0)},jG),()=>a()),[t,o,s,a]),B.useImperativeHandle(e.announceRef,()=>i);const l=(t==null?void 0:t.politeness)==="polite"?t.message:void 0,c=(t==null?void 0:t.politeness)==="assertive"?t.message:void 0;return{components:{assertive:"div",polite:"div"},assertive:Ce(e.assertive,{defaultProps:{"aria-live":"assertive",children:c},elementType:"div"}),polite:Ce(e.polite,{defaultProps:{"aria-live":"polite",children:l},elementType:"div"})}},EG=e=>rt(B.Fragment,{children:[J(e.assertive,{}),J(e.polite,{})]}),u2={assertive:"fui-AriaLive__assertive",polite:"fui-AriaLive__polite"},RG=Ge("rrd10u0",null,[".rrd10u0{clip:rect(0px, 0px, 0px, 0px);height:1px;margin:-1px;overflow:hidden;padding:0px;width:1px;position:absolute;}"]),AG=e=>{"use no memo";const t=RG();return e.assertive.className=ne(t,u2.assertive,e.assertive.className),e.polite.className=ne(t,u2.polite,e.polite.className),e},O3=e=>{const t=zG(e);return AG(t),EG(t)};O3.displayName="AriaLive";const FG=e=>{const{announceRef:t,renderAriaLive:r,inline:n,mountNode:o}=e,i=!!e.bottomStart||!!e.bottomEnd||!!e.topStart||!!e.topEnd||!!e.top||!!e.bottom,s=r?J(O3,{announceRef:t}):null,a=rt(B.Fragment,{children:[e.bottom?J(e.bottom,{}):null,e.bottomStart?J(e.bottomStart,{}):null,e.bottomEnd?J(e.bottomEnd,{}):null,e.topStart?J(e.topStart,{}):null,e.topEnd?J(e.topEnd,{}):null,e.top?J(e.top,{}):null]});return n?rt(B.Fragment,{children:[s,i?a:null]}):rt(B.Fragment,{children:[s,i?J(Pu,{mountNode:o,children:a}):null]})},PG={root:"fui-Toaster"},IG=Ge("r3hfdjz",null,[".r3hfdjz{position:fixed;width:292px;pointer-events:none;}"]),MG=se({inline:{qhf8xq:"f1euv43f"}},{d:[".f1euv43f{position:absolute;}"]}),DG=e=>{"use no memo";const t=IG(),r=MG(),n=ne(PG.root,t,e.inline&&r.inline,e.root.className);if(e.bottomStart){var o;e.bottomStart.className=n;var i;(i=(o=e.bottomStart).style)!==null&&i!==void 0||(o.style={}),Object.assign(e.bottomStart.style,ta(zn.bottomStart,e.dir,e.offset))}if(e.bottomEnd){var s;e.bottomEnd.className=n;var a;(a=(s=e.bottomEnd).style)!==null&&a!==void 0||(s.style={}),Object.assign(e.bottomEnd.style,ta(zn.bottomEnd,e.dir,e.offset))}if(e.topStart){var l;e.topStart.className=n;var c;(c=(l=e.topStart).style)!==null&&c!==void 0||(l.style={}),Object.assign(e.topStart.style,ta(zn.topStart,e.dir,e.offset))}if(e.topEnd){var u;e.topEnd.className=n;var d;(d=(u=e.topEnd).style)!==null&&d!==void 0||(u.style={}),Object.assign(e.topEnd.style,ta(zn.topEnd,e.dir,e.offset))}if(e.top){var p;e.top.className=n;var h;(h=(p=e.top).style)!==null&&h!==void 0||(p.style={}),Object.assign(e.top.style,ta(zn.top,e.dir,e.offset))}if(e.bottom){var m;e.bottom.className=n;var g;(g=(m=e.bottom).style)!==null&&g!==void 0||(m.style={}),Object.assign(e.bottom.style,ta(zn.bottom,e.dir,e.offset))}return e},q3=e=>{const t=NG(e);return DG(t),Le("useToasterStyles_unstable")(t),FG(t)};q3.displayName="Toaster";const LG=(e,t)=>{const{intent:r}=M3();return{components:{root:"div"},root:Ce(Je("div",{ref:t,...e}),{elementType:"div"}),backgroundAppearance:e.appearance,intent:r}},OG=(e,t)=>J(KF,{value:t.backgroundAppearance,children:J(e.root,{})}),qG={root:"fui-Toast"},$G=Ge("rhf7k35",null,[".rhf7k35{display:grid;grid-template-columns:auto 1fr auto;padding:12px;border-radius:var(--borderRadiusMedium);border:1px solid var(--colorTransparentStroke);box-shadow:var(--shadow8);font-size:var(--fontSizeBase300);line-height:20px;font-weight:var(--fontWeightSemibold);color:var(--colorNeutralForeground1);background-color:var(--colorNeutralBackground1);}"]),HG=se({inverted:{sj55zd:"f1w7i9ko",De3pzq:"f5pduvr"}},{d:[".f1w7i9ko{color:var(--colorNeutralForegroundInverted2);}",".f5pduvr{background-color:var(--colorNeutralBackgroundInverted);}"]}),WG=e=>{"use no memo";const t=$G(),r=HG();return e.root.className=ne(qG.root,t,e.backgroundAppearance==="inverted"&&r.inverted,e.root.className),e};function VG(e){const{backgroundAppearance:t}=e;return{backgroundAppearance:t}}const F0=B.forwardRef((e,t)=>{const r=LG(e,t);return WG(r),Le("useToastStyles_unstable")(r),OG(r,VG(r))});F0.displayName="Toast";const UG=(e,t)=>{const{intent:r,titleId:n}=M3(),o=H_();let i;switch(r){case"success":i=B.createElement(V5,null);break;case"error":i=B.createElement(G5,null);break;case"warning":i=B.createElement(H5,null);break;case"info":i=B.createElement(W5,null);break}return{action:qe(e.action,{elementType:"div"}),components:{root:"div",media:"div",action:"div"},media:qe(e.media,{renderByDefault:!!r,defaultProps:{children:i},elementType:"div"}),root:Ce(Je("div",{ref:t,children:e.children,id:n,...e}),{elementType:"div"}),intent:r,backgroundAppearance:o}},GG=e=>rt(B.Fragment,{children:[e.media?J(e.media,{}):null,J(e.root,{}),e.action?J(e.action,{}):null]}),Og={root:"fui-ToastTitle",media:"fui-ToastTitle__media",action:"fui-ToastTitle__action"},XG=Ge("rdjap1e",null,[".rdjap1e{display:flex;grid-column-end:3;color:var(--colorNeutralForeground1);word-break:break-word;}"]),YG=Ge("r8x5mrd","r1soj19y",[".r8x5mrd{display:flex;padding-top:2px;grid-column-end:2;padding-right:8px;font-size:16px;color:var(--colorNeutralForeground1);}",".r1soj19y{display:flex;padding-top:2px;grid-column-end:2;padding-left:8px;font-size:16px;color:var(--colorNeutralForeground1);}"]),ZG=Ge("r2j19ip","rjfozdo",[".r2j19ip{display:flex;align-items:start;padding-left:12px;grid-column-end:-1;color:var(--colorBrandForeground1);}",".rjfozdo{display:flex;align-items:start;padding-right:12px;grid-column-end:-1;color:var(--colorBrandForeground1);}"]),KG=se({root:{sj55zd:"f1w7i9ko"},action:{sj55zd:"f1qz2gb0"},media:{sj55zd:"fqpbvvt"}},{d:[".f1w7i9ko{color:var(--colorNeutralForegroundInverted2);}",".f1qz2gb0{color:var(--colorBrandForegroundInverted);}",".fqpbvvt{color:var(--colorNeutralForegroundInverted);}"]}),QG=se({success:{sj55zd:"f36rra6"},error:{sj55zd:"f1ca9wz"},warning:{sj55zd:"f13isgzr"},info:{sj55zd:"fkfq4zb"}},{d:[".f36rra6{color:var(--colorStatusSuccessForeground1);}",".f1ca9wz{color:var(--colorStatusDangerForeground1);}",".f13isgzr{color:var(--colorStatusWarningForeground1);}",".fkfq4zb{color:var(--colorNeutralForeground2);}"]}),JG=se({success:{sj55zd:"ff3wk4x"},error:{sj55zd:"fbq2gqr"},warning:{sj55zd:"fx6hq1t"},info:{sj55zd:"f1w7i9ko"}},{d:[".ff3wk4x{color:var(--colorStatusSuccessForegroundInverted);}",".fbq2gqr{color:var(--colorStatusDangerForegroundInverted);}",".fx6hq1t{color:var(--colorStatusWarningForegroundInverted);}",".f1w7i9ko{color:var(--colorNeutralForegroundInverted2);}"]}),eX=e=>{"use no memo";const t=XG(),r=ZG(),n=YG(),o=QG(),i=JG(),{intent:s}=e,a=KG();return e.root.className=ne(Og.root,t,e.backgroundAppearance==="inverted"&&a.root,e.root.className),e.media&&(e.media.className=ne(Og.media,n,e.backgroundAppearance==="inverted"&&a.media,s&&o[s],s&&e.backgroundAppearance==="inverted"&&i[s],e.media.className)),e.action&&(e.action.className=ne(Og.action,r,e.backgroundAppearance==="inverted"&&a.action,e.action.className)),e},P0=B.forwardRef((e,t)=>{const r=UG(e,t);return eX(r),Le("useToastTitleStyles_unstable")(r),GG(r)});P0.displayName="ToastTitle";const $3=B.createContext(void 0),tX={handleTagDismiss:()=>({}),size:"medium",role:"toolbar",handleTagSelect:void 0};$3.Provider;const rX=()=>{var e;return(e=B.useContext($3))!==null&&e!==void 0?e:tX},nX={medium:28,small:20,"extra-small":16},oX={rounded:"square",circular:"circular"},iX=(e,t)=>{const{handleTagDismiss:r,size:n,disabled:o,appearance:i,dismissible:s,role:a}=rX(),l=or("fui-Tag",e.id),{appearance:c=i??"filled",disabled:u=!1,dismissible:d=s??!1,selected:p,shape:h="rounded",size:m=n,value:g=l}=e,y=ye(S=>{var _;(_=e.onClick)===null||_===void 0||_.call(e,S),S.defaultPrevented||r==null||r(S,{value:g})}),v=ye(S=>{var _;e==null||(_=e.onKeyDown)===null||_===void 0||_.call(e,S),!S.defaultPrevented&&(S.key===M5||S.key===aL)&&(r==null||r(S,{value:g}))}),b=d?"button":"span",x=a==="listbox"?"aria-selected":"aria-pressed",k=typeof p=="boolean"||a==="listbox";return{appearance:c,avatarShape:oX[h],avatarSize:nX[m],disabled:o?!0:u,dismissible:d,selected:!!p,shape:h,size:m,components:{root:b,media:"span",icon:"span",primaryText:"span",secondaryText:"span",dismissIcon:"span"},root:Ce(Je(b,{ref:t,role:a==="listbox"?"option":void 0,[x]:k?p:void 0,...e,disabled:o?!0:u,id:l,...d&&{onClick:y,onKeyDown:v}}),{defaultProps:{type:b==="button"?"button":void 0},elementType:b}),media:qe(e.media,{elementType:"span"}),icon:qe(e.icon,{elementType:"span"}),primaryText:qe(e.primaryText,{renderByDefault:!0,defaultProps:{children:e.children},elementType:"span"}),secondaryText:qe(e.secondaryText,{elementType:"span"}),dismissIcon:qe(e.dismissIcon,{renderByDefault:d,defaultProps:{children:B.createElement(Xy,null)},elementType:"span"})}},sX=(e,t)=>rt(e.root,{children:[e.media&&J(pB,{value:t.avatar,children:J(e.media,{})}),e.icon&&J(e.icon,{}),e.primaryText&&J(e.primaryText,{}),e.secondaryText&&J(e.secondaryText,{}),e.dismissIcon&&e.dismissible&&J(e.dismissIcon,{})]}),na={root:"fui-Tag",media:"fui-Tag__media",icon:"fui-Tag__icon",primaryText:"fui-Tag__primaryText",secondaryText:"fui-Tag__secondaryText",dismissIcon:"fui-Tag__dismissIcon"},aX=Ge("r18f5o0q","r1u2q8zc",{r:['.r18f5o0q{font-family:inherit;padding:0px;-webkit-appearance:button;-moz-appearance:button;appearance:button;text-align:unset;display:inline-grid;align-items:center;grid-template-areas:"media primary dismissIcon" "media secondary dismissIcon";box-sizing:border-box;width:fit-content;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-radius:var(--borderRadiusMedium);}',".r18f5o0q[data-fui-focus-visible]{border-radius:var(--borderRadiusMedium);outline:var(--strokeWidthThick) solid var(--colorStrokeFocus2);}",'.r1u2q8zc{font-family:inherit;padding:0px;-webkit-appearance:button;-moz-appearance:button;appearance:button;text-align:unset;display:inline-grid;align-items:center;grid-template-areas:"media primary dismissIcon" "media secondary dismissIcon";box-sizing:border-box;width:fit-content;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-radius:var(--borderRadiusMedium);}',".r1u2q8zc[data-fui-focus-visible]{border-radius:var(--borderRadiusMedium);outline:var(--strokeWidthThick) solid var(--colorStrokeFocus2);}"],s:['@media (forced-colors: active){.r18f5o0q{position:relative;}.r18f5o0q::before{content:"";border-top:var(--strokeWidthThin) solid;position:absolute;inset:-1px;border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);}}','@media (forced-colors: active){.r1u2q8zc{position:relative;}.r1u2q8zc::before{content:"";border-top:var(--strokeWidthThin) solid;position:absolute;inset:-1px;border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);}}']}),lX=Ge("r1mko7zc","r1wx1e29",{r:['.r1mko7zc{font-family:inherit;padding:0px;-webkit-appearance:button;-moz-appearance:button;appearance:button;text-align:unset;display:inline-grid;align-items:center;grid-template-areas:"media primary dismissIcon" "media secondary dismissIcon";box-sizing:border-box;width:fit-content;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-radius:var(--borderRadiusCircular);}',".r1mko7zc[data-fui-focus-visible]{border-radius:var(--borderRadiusCircular);outline:var(--strokeWidthThick) solid var(--colorStrokeFocus2);}",'.r1wx1e29{font-family:inherit;padding:0px;-webkit-appearance:button;-moz-appearance:button;appearance:button;text-align:unset;display:inline-grid;align-items:center;grid-template-areas:"media primary dismissIcon" "media secondary dismissIcon";box-sizing:border-box;width:fit-content;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-radius:var(--borderRadiusCircular);}',".r1wx1e29[data-fui-focus-visible]{border-radius:var(--borderRadiusCircular);outline:var(--strokeWidthThick) solid var(--colorStrokeFocus2);}"],s:['@media (forced-colors: active){.r1mko7zc{position:relative;}.r1mko7zc::before{content:"";border-top:var(--strokeWidthThin) solid;border-left:var(--strokeWidthThin) solid;border-right:var(--strokeWidthThin) solid;position:absolute;inset:-1px;border-radius:var(--borderRadiusCircular);}}','@media (forced-colors: active){.r1wx1e29{position:relative;}.r1wx1e29::before{content:"";border-top:var(--strokeWidthThin) solid;border-right:var(--strokeWidthThin) solid;border-left:var(--strokeWidthThin) solid;position:absolute;inset:-1px;border-radius:var(--borderRadiusCircular);}}']}),cX=se({filled:{De3pzq:"f16xq7d1",sj55zd:"fkfq4zb"},outline:{De3pzq:"fhovq9v",sj55zd:"fkfq4zb",g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1aperda",zhjwy3:["f1lxtadh","f1akhkt"]},brand:{De3pzq:"f16xkysk",sj55zd:"faj9fo0"},selected:{De3pzq:"ffp7eso",sj55zd:"f1phragk",g2u3we:"fk9qgl1",h3c5rm:["f1vfbj5f","f1qpacp7"],B9xav0g:"fdf0ba2",zhjwy3:["f1qpacp7","f1vfbj5f"],B8gzw0y:"f1h3a8gf",By8wz76:"f1nz3ub2",B7iucu3:"fqc85l4"},medium:{Bqenvij:"f1d2rq10"},small:{Bqenvij:"frvgh55"},"extra-small":{qhf8xq:"f10pi13n",Bqenvij:"fjamq6b",Ie5t1m:"fru8nlv",G6hvz8:"f5nasji",wgw0td:"f45hpys",Bbwa3xj:["f1sbfcjn","f1le4i14"],m3mfg4:"fq6y7a1",B9s7hj8:"f1jr4pq3",B9e1dac:"f1tfer7m"}},{d:[".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fj3muxo{border-top-color:var(--colorNeutralStroke1);}",".f1akhkt{border-right-color:var(--colorNeutralStroke1);}",".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}",".f1aperda{border-bottom-color:var(--colorNeutralStroke1);}",".f16xkysk{background-color:var(--colorBrandBackground2);}",".faj9fo0{color:var(--colorBrandForeground2);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fk9qgl1{border-top-color:var(--colorBrandStroke1);}",".f1vfbj5f{border-right-color:var(--colorBrandStroke1);}",".f1qpacp7{border-left-color:var(--colorBrandStroke1);}",".fdf0ba2{border-bottom-color:var(--colorBrandStroke1);}",".f1d2rq10{height:32px;}",".frvgh55{height:24px;}",".f10pi13n{position:relative;}",".fjamq6b{height:20px;}"],m:[["@media (forced-colors: active){.f1h3a8gf{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1nz3ub2{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fqc85l4{color:HighlightText;}}",{m:"(forced-colors: active)"}],['@media (forced-colors: none){.fru8nlv:before,.fru8nlv:after{content:"";}}',{m:"(forced-colors: none)"}],["@media (forced-colors: none){.f5nasji:before,.f5nasji:after{position:absolute;}}",{m:"(forced-colors: none)"}],["@media (forced-colors: none){.f45hpys:before,.f45hpys:after{height:2px;}}",{m:"(forced-colors: none)"}],["@media (forced-colors: none){.f1le4i14:before,.f1le4i14:after{right:0;}.f1sbfcjn:before,.f1sbfcjn:after{left:0;}}",{m:"(forced-colors: none)"}],["@media (forced-colors: none){.fq6y7a1:before,.fq6y7a1:after{width:100%;}}",{m:"(forced-colors: none)"}],["@media (forced-colors: none){.f1jr4pq3:before{bottom:100%;}}",{m:"(forced-colors: none)"}],["@media (forced-colors: none){.f1tfer7m:after{top:100%;}}",{m:"(forced-colors: none)"}]]}),uX=se({filled:{Bceei9c:"fdrzuqr",De3pzq:"f1bg9a2p",sj55zd:"f1s2aq7o",g2u3we:"fgig46g",h3c5rm:["f1mxt3zg","fziff3p"],B9xav0g:"f250w3l",zhjwy3:["fziff3p","f1mxt3zg"]},outline:{Bceei9c:"fdrzuqr",De3pzq:"fhovq9v",sj55zd:"f1s2aq7o",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"]},brand:{Bceei9c:"fdrzuqr",De3pzq:"f1bg9a2p",sj55zd:"f1s2aq7o",g2u3we:"fgig46g",h3c5rm:["f1mxt3zg","fziff3p"],B9xav0g:"f250w3l",zhjwy3:["fziff3p","f1mxt3zg"]}},{d:[".fdrzuqr{cursor:not-allowed;}",".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fgig46g{border-top-color:var(--colorTransparentStrokeDisabled);}",".f1mxt3zg{border-right-color:var(--colorTransparentStrokeDisabled);}",".fziff3p{border-left-color:var(--colorTransparentStrokeDisabled);}",".f250w3l{border-bottom-color:var(--colorTransparentStrokeDisabled);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}"]}),dX=se({medium:{uwmqm3:["f1rtp3s9","f18k1jr3"]},small:{uwmqm3:["f15vdbe4","fwiuce9"]},"extra-small":{uwmqm3:["f15vdbe4","fwiuce9"]}},{d:[".f1rtp3s9{padding-left:7px;}",".f18k1jr3{padding-right:7px;}",".f15vdbe4{padding-left:5px;}",".fwiuce9{padding-right:5px;}"]}),fX=se({medium:{z189sj:["f18k1jr3","f1rtp3s9"]},small:{z189sj:["fwiuce9","f15vdbe4"]},"extra-small":{z189sj:["fwiuce9","f15vdbe4"]}},{d:[".f18k1jr3{padding-right:7px;}",".f1rtp3s9{padding-left:7px;}",".fwiuce9{padding-right:5px;}",".f15vdbe4{padding-left:5px;}"]}),hX=se({base:{Bw0ie65:0,Br312pm:0,nk6f5a:0,Ijaq50:0,Bq1tomu:"fujjg13",mc9l5x:"f22iagw",B7ck84d:"f1e4lqlz"},medium:{uwmqm3:["f1rtp3s9","f18k1jr3"],z189sj:["f7x41pl","fruq291"],a9b677:"f64fuq3",Be2twd7:"fe5j1ua"},small:{uwmqm3:["f15vdbe4","fwiuce9"],z189sj:["ffczdla","fgiv446"],a9b677:"fjw5fx7",Be2twd7:"f4ybsrx"},"extra-small":{uwmqm3:["f15vdbe4","fwiuce9"],z189sj:["ffczdla","fgiv446"],a9b677:"frx94fk",Be2twd7:"f1ugzwwg"}},{d:[[".fujjg13{grid-area:media;}",{p:-1}],".f22iagw{display:flex;}",".f1e4lqlz{box-sizing:content-box;}",".f1rtp3s9{padding-left:7px;}",".f18k1jr3{padding-right:7px;}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f64fuq3{width:20px;}",".fe5j1ua{font-size:20px;}",".f15vdbe4{padding-left:5px;}",".fwiuce9{padding-right:5px;}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".fjw5fx7{width:16px;}",".f4ybsrx{font-size:16px;}",".frx94fk{width:12px;}",".f1ugzwwg{font-size:12px;}"]}),pX=se({base:{Bw0ie65:0,Br312pm:0,nk6f5a:0,Ijaq50:0,Bq1tomu:"fujjg13",mc9l5x:"f22iagw",uwmqm3:["f10xn8zz","f136y8j8"]},medium:{z189sj:["f1vdfbxk","f1f5gg8d"]},small:{z189sj:["fdw0yi8","fk8j09s"]},"extra-small":{z189sj:["fdw0yi8","fk8j09s"]}},{d:[[".fujjg13{grid-area:media;}",{p:-1}],".f22iagw{display:flex;}",".f10xn8zz{padding-left:1px;}",".f136y8j8{padding-right:1px;}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}"]}),gX=se({base:{Bw0ie65:0,Br312pm:0,nk6f5a:0,Ijaq50:0,Bq1tomu:"f1k1gsvr",mc9l5x:"f22iagw",Bahaeuw:"f1v3eptx",Boo3t63:"f1rfz71x"},medium:{uwmqm3:["fruq291","f7x41pl"],z189sj:["f18k1jr3","f1rtp3s9"],Be2twd7:"fe5j1ua"},small:{uwmqm3:["fgiv446","ffczdla"],z189sj:["fwiuce9","f15vdbe4"],Be2twd7:"f4ybsrx"},"extra-small":{uwmqm3:["fgiv446","ffczdla"],z189sj:["fwiuce9","f15vdbe4"],Be2twd7:"f1ugzwwg"},filled:{eoavqd:"f8491dx",Bi91k9c:"f3ymbdj",lj723h:"fryz5bw"},outline:{eoavqd:"f8491dx",Bi91k9c:"f3ymbdj",lj723h:"fryz5bw"},brand:{eoavqd:"f8491dx",Bi91k9c:"f3ymbdj",lj723h:"fryz5bw"},selected:{Bi91k9c:"f1rq72xc",lj723h:"f18otbis"}},{d:[[".f1k1gsvr{grid-area:dismissIcon;}",{p:-1}],".f22iagw{display:flex;}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".f18k1jr3{padding-right:7px;}",".f1rtp3s9{padding-left:7px;}",".fe5j1ua{font-size:20px;}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fwiuce9{padding-right:5px;}",".f15vdbe4{padding-left:5px;}",".f4ybsrx{font-size:16px;}",".f1ugzwwg{font-size:12px;}"],m:[["@media (forced-colors: active){.f1v3eptx:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1rfz71x:active{color:Highlight;}}",{m:"(forced-colors: active)"}]],h:[".f8491dx:hover{cursor:pointer;}",".f3ymbdj:hover{color:var(--colorCompoundBrandForeground1Hover);}",".f1rq72xc:hover{color:var(--colorNeutralForegroundOnBrand);}"],a:[".fryz5bw:active{color:var(--colorCompoundBrandForeground1Pressed);}",".f18otbis:active{color:var(--colorNeutralForegroundOnBrand);}"]}),mX=se({base:{Huce71:"fz5stix",uwmqm3:["fgiv446","ffczdla"],z189sj:["ffczdla","fgiv446"]},medium:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},small:{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},"extra-small":{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},withoutSecondaryText:{Br312pm:"faqcfhe",Ijaq50:"f1q3ipgb",nk6f5a:"fc0ab3q",Byoj8tv:"f1g03r3y"},withSecondaryText:{Bw0ie65:0,Br312pm:0,nk6f5a:0,Ijaq50:0,Bq1tomu:"f1ebragv",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",B6of3ja:"f1ryq6si"}},{d:[".fz5stix{white-space:nowrap;}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".faqcfhe{grid-column-start:primary;}",".f1q3ipgb{grid-row-start:primary;}",".fc0ab3q{grid-row-end:secondary;}",".f1g03r3y{padding-bottom:var(--spacingHorizontalXXS);}",[".f1ebragv{grid-area:primary;}",{p:-1}],".f1ryq6si{margin-top:-2px;}"]}),vX=Ge("r7hv1ps","rnrslm9",[".r7hv1ps{grid-area:secondary;padding-left:var(--spacingHorizontalXXS);padding-right:var(--spacingHorizontalXXS);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase100);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase100);white-space:nowrap;}",".rnrslm9{grid-area:secondary;padding-right:var(--spacingHorizontalXXS);padding-left:var(--spacingHorizontalXXS);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase100);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase100);white-space:nowrap;}"]),yX=e=>{"use no memo";const t=aX(),r=lX(),n=cX(),o=uX(),i=dX(),s=fX(),a=hX(),l=pX(),c=gX(),u=mX(),d=vX(),{disabled:p,shape:h,size:m,appearance:g,selected:y}=e;return e.root.className=ne(na.root,h==="rounded"?t:r,p?o[g]:n[g],y&&!p&&n.selected,n[m],!e.media&&!e.icon&&i[m],!e.dismissIcon&&s[m],e.root.className),e.media&&(e.media.className=ne(na.media,l.base,l[m],e.media.className)),e.icon&&(e.icon.className=ne(na.icon,a.base,a[m],e.icon.className)),e.primaryText&&(e.primaryText.className=ne(na.primaryText,u.base,u[m],e.secondaryText?u.withSecondaryText:u.withoutSecondaryText,e.primaryText.className)),e.secondaryText&&(e.secondaryText.className=ne(na.secondaryText,d,e.secondaryText.className)),e.dismissIcon&&(e.dismissIcon.className=ne(na.dismissIcon,c.base,c[m],!p&&c[g],y&&!p&&c.selected,e.dismissIcon.className)),e};function bX(e){const{avatarSize:t,avatarShape:r}=e;return{avatar:B.useMemo(()=>({size:t,shape:r}),[r,t])}}const ef=B.forwardRef((e,t)=>{const r=iX(e,t);return yX(r),Le("useTagStyles_unstable")(r),sX(r,bX(r))});ef.displayName="Tag";function xX(e){switch(e){case"info":return B.createElement(W5,null);case"warning":return B.createElement(H5,null);case"error":return B.createElement(G5,null);case"success":return B.createElement(V5,null);default:return null}}function wX(e=!1){const{targetDocument:t}=mt(),r=B.useReducer(()=>({}),{})[1],n=B.useRef(!1),o=B.useRef(null),i=B.useRef(-1),s=B.useCallback(l=>{var c,u;const d=l[0];var p;const h=(p=d==null||(u=d.borderBoxSize)===null||u===void 0||(c=u[0])===null||c===void 0?void 0:c.inlineSize)!==null&&p!==void 0?p:d==null?void 0:d.target.getBoundingClientRect().width;if(h===void 0||!d)return;const{target:m}=d;if(!Et(m))return;let g;if(n.current)i.current<h&&(g=!1);else{const y=m.scrollWidth;h<y&&(g=!0)}i.current=h,typeof g<"u"&&n.current!==g&&(n.current=g,r())},[r]),a=B.useCallback(l=>{var c;if(!e||!l||!(t!=null&&t.defaultView))return;(c=o.current)===null||c===void 0||c.disconnect();const u=t.defaultView,d=new u.ResizeObserver(s);o.current=d,d.observe(l,{box:"border-box"})},[t,s,e]);return B.useEffect(()=>()=>{var l;(l=o.current)===null||l===void 0||l.disconnect()},[]),{ref:a,reflowing:n.current}}const H3=B.createContext(void 0),kX={className:"",nodeRef:B.createRef()};H3.Provider;const SX=()=>{var e;return(e=B.useContext(H3))!==null&&e!==void 0?e:kX},CX=B.createContext(void 0);function _X(){return B.useContext(CX)}const BX=(e,t)=>{const{layout:r="auto",intent:n="info",politeness:o,shape:i="rounded"}=e,s=o??n==="info"?"polite":"assertive",a=r==="auto",{ref:l,reflowing:c}=wX(a),u=a?c?"multiline":"singleline":r,{className:d,nodeRef:p}=SX(),h=_X(),m=B.useRef(null),g=B.useRef(null),{announce:y}=JF(),v=or();return B.useEffect(()=>{var b,x;const k=(b=g.current)===null||b===void 0?void 0:b.textContent,S=(x=m.current)===null||x===void 0?void 0:x.textContent,_=[k,S].filter(Boolean).join(",");y(_,{polite:s==="polite",alert:s==="assertive"})},[g,m,y,s]),{components:{root:"div",icon:"div",bottomReflowSpacer:"div"},root:Ce(Je("div",{ref:yt(t,l,p,h),role:"group","aria-labelledby":v,...e}),{elementType:"div"}),icon:qe(e.icon,{renderByDefault:!0,elementType:"div",defaultProps:{children:xX(n)}}),bottomReflowSpacer:qe(e.bottomReflowSpacer,{renderByDefault:u==="multiline",elementType:"div"}),layout:u,intent:n,transitionClassName:d,actionsRef:m,bodyRef:g,titleId:v,shape:i}},W3=B.createContext(void 0),TX={titleId:"",layout:"singleline",actionsRef:B.createRef(),bodyRef:B.createRef()},NX=W3.Provider,V3=()=>{var e;return(e=B.useContext(W3))!==null&&e!==void 0?e:TX},jX=(e,t)=>J(NX,{value:t.messageBar,children:rt(e.root,{children:[e.icon&&J(e.icon,{}),e.root.children,e.bottomReflowSpacer&&J(e.bottomReflowSpacer,{})]})}),qg={root:"fui-MessageBar",icon:"fui-MessageBar__icon",bottomReflowSpacer:"fui-MessageBar__bottomReflowSpacer"},zX=Ge("r2oyxsj","r1wuyrhw",['.r2oyxsj{white-space:nowrap;display:grid;grid-template-columns:auto 1fr auto auto;grid-template-rows:1fr;grid-template-areas:"icon body secondaryActions actions";padding-left:var(--spacingHorizontalM);border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);border-radius:var(--borderRadiusMedium);align-items:center;min-height:36px;box-sizing:border-box;background-color:var(--colorNeutralBackground3);}','.r1wuyrhw{white-space:nowrap;display:grid;grid-template-columns:auto 1fr auto auto;grid-template-rows:1fr;grid-template-areas:"icon body secondaryActions actions";padding-right:var(--spacingHorizontalM);border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);border-radius:var(--borderRadiusMedium);align-items:center;min-height:36px;box-sizing:border-box;background-color:var(--colorNeutralBackground3);}']),EX=Ge("r1df1z33","rivnfjc",[".r1df1z33{grid-area:icon;font-size:var(--fontSizeBase500);margin-right:var(--spacingHorizontalS);color:var(--colorNeutralForeground3);display:flex;align-items:center;}",".rivnfjc{grid-area:icon;font-size:var(--fontSizeBase500);margin-left:var(--spacingHorizontalS);color:var(--colorNeutralForeground3);display:flex;align-items:center;}"]),RX=Ge("r1vx593n",null,[".r1vx593n{margin-bottom:var(--spacingVerticalS);grid-area:secondaryActions;}"]),AX=se({rootMultiline:{Huce71:"f6juhto",Bt984gj:"f1s2louj",z8tnut:"f1ngh7ph",Budl1dq:"f17g0uqy",zoa1oz:"f1w7oly7"},secondaryActionsMultiline:{Brf1p80:"f1e8xxv9",B6of3ja:"f1gaxbfw",jrapky:"fqcjy3b",t21cq0:["fibjyge","f9yszdx"]},square:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"fokr779"}},{d:[".f6juhto{white-space:normal;}",".f1s2louj{align-items:start;}",".f1ngh7ph{padding-top:var(--spacingVerticalMNudge);}",".f17g0uqy{grid-template-columns:auto 1fr auto;}",'.f1w7oly7{grid-template-areas:"icon body actions" "secondaryActions secondaryActions secondaryActions";}',".f1e8xxv9{justify-content:end;}",".f1gaxbfw{margin-top:var(--spacingVerticalMNudge);}",".fqcjy3b{margin-bottom:var(--spacingVerticalS);}",".fibjyge{margin-right:0px;}",".f9yszdx{margin-left:0px;}",[".fokr779{border-radius:0;}",{p:-1}]]}),FX=se({info:{},error:{sj55zd:"f1ca9wz"},warning:{sj55zd:"f14a4cve"},success:{sj55zd:"f36rra6"}},{d:[".f1ca9wz{color:var(--colorStatusDangerForeground1);}",".f14a4cve{color:var(--colorStatusWarningForeground3);}",".f36rra6{color:var(--colorStatusSuccessForeground1);}"]}),PX=se({info:{},error:{De3pzq:"f1eon7jj",g2u3we:"f1f8dvr7",h3c5rm:["f1g1ijmo","f1nxacbt"],B9xav0g:"fo25q1j",zhjwy3:["f1nxacbt","f1g1ijmo"]},warning:{De3pzq:"f13ftzij",g2u3we:"frd1ypx",h3c5rm:["f1gyjrma","f18qd5xz"],B9xav0g:"fqyqtrt",zhjwy3:["f18qd5xz","f1gyjrma"]},success:{De3pzq:"f64thcm",g2u3we:"f1b4u7v",h3c5rm:["f1nyd2b1","f70v3om"],B9xav0g:"fk173vo",zhjwy3:["f70v3om","f1nyd2b1"]}},{d:[".f1eon7jj{background-color:var(--colorStatusDangerBackground1);}",".f1f8dvr7{border-top-color:var(--colorStatusDangerBorder1);}",".f1g1ijmo{border-right-color:var(--colorStatusDangerBorder1);}",".f1nxacbt{border-left-color:var(--colorStatusDangerBorder1);}",".fo25q1j{border-bottom-color:var(--colorStatusDangerBorder1);}",".f13ftzij{background-color:var(--colorStatusWarningBackground1);}",".frd1ypx{border-top-color:var(--colorStatusWarningBorder1);}",".f1gyjrma{border-right-color:var(--colorStatusWarningBorder1);}",".f18qd5xz{border-left-color:var(--colorStatusWarningBorder1);}",".fqyqtrt{border-bottom-color:var(--colorStatusWarningBorder1);}",".f64thcm{background-color:var(--colorStatusSuccessBackground1);}",".f1b4u7v{border-top-color:var(--colorStatusSuccessBorder1);}",".f1nyd2b1{border-right-color:var(--colorStatusSuccessBorder1);}",".f70v3om{border-left-color:var(--colorStatusSuccessBorder1);}",".fk173vo{border-bottom-color:var(--colorStatusSuccessBorder1);}"]}),IX=e=>{"use no memo";const t=zX(),r=EX(),n=FX(),o=PX(),i=RX(),s=AX();return e.root.className=ne(qg.root,t,e.layout==="multiline"&&s.rootMultiline,e.shape==="square"&&s.square,o[e.intent],e.root.className),e.icon&&(e.icon.className=ne(qg.icon,r,n[e.intent],e.icon.className)),e.bottomReflowSpacer&&(e.bottomReflowSpacer.className=ne(qg.bottomReflowSpacer,i)),e};function MX(e){const{layout:t,actionsRef:r,bodyRef:n,titleId:o}=e;return{messageBar:B.useMemo(()=>({layout:t,actionsRef:r,bodyRef:n,titleId:o}),[t,r,n,o])}}const _l=B.forwardRef((e,t)=>{const r=BX(e,t);return IX(r),Le("useMessageBarStyles_unstable")(r),jX(r,MX(r))});_l.displayName="MessageBar";const DX=(e,t)=>{const{titleId:r}=V3();return{components:{root:"span"},root:Ce(Je("span",{ref:t,id:r,...e}),{elementType:"span"})}},LX=e=>J(e.root,{}),OX={root:"fui-MessageBarTitle"},qX=Ge("r168xkm9",null,[".r168xkm9{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase300);}",'.r168xkm9::after{content:" ";}']),$X=e=>{"use no memo";const t=qX();return e.root.className=ne(OX.root,t,e.root.className),e},v1=B.forwardRef((e,t)=>{const r=DX(e,t);return $X(r),Le("useMessageBarTitleStyles_unstable")(r),LX(r)});v1.displayName="MessageBarTitle";const HX=(e,t)=>{const{bodyRef:r}=V3();return{components:{root:"div"},root:Ce(Je("div",{ref:yt(t,r),...e}),{elementType:"div"})}},WX=(e,t)=>J(h$,{value:t.link,children:J(e.root,{})}),VX={root:"fui-MessageBarBody"},UX=Ge("rtatq2b","re2rary",[".rtatq2b{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);grid-area:body;padding-right:var(--spacingHorizontalM);}",".re2rary{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);grid-area:body;padding-left:var(--spacingHorizontalM);}"]),GX=e=>{"use no memo";const t=UX();return e.root.className=ne(VX.root,t,e.root.className),e};function XX(e){return{link:B.useMemo(()=>({inline:!0}),[])}}const Bl=B.forwardRef((e,t)=>{const r=HX(e,t),n=XX();return GX(r),Le("useMessageBarBodyStyles_unstable")(r),WX(r,n)});Bl.displayName="MessageBarBody";const YX=(e,t)=>{const{size:r="medium",disabled:n=!1,root:o,contentBefore:i,dismiss:s,contentAfter:a,value:l,defaultValue:c,...u}=e,d=B.useRef(null),p=B.useRef(null),[h,m]=xn({state:l,defaultState:c,initialState:""}),[g,y]=B.useState(!1),v=B.useCallback(()=>{y(!0)},[y]),b=B.useCallback(N=>{var z;y(!!(!((z=d.current)===null||z===void 0)&&z.contains(N.relatedTarget)))},[y]),x=A_(o),k=ye(N=>{var z,F;if(ep(s)){var I;(I=s.onClick)===null||I===void 0||I.call(s,N)}const H="";m(H),(z=e.onChange)===null||z===void 0||z.call(e,N,{value:H}),(F=p.current)===null||F===void 0||F.focus()}),S=n$({type:"search",disabled:n,size:r,value:h,root:Ce({...x,ref:yt(x==null?void 0:x.ref,d),onFocus:wt(x==null?void 0:x.onFocus,v),onBlur:wt(x==null?void 0:x.onBlur,b)},{elementType:"span"}),contentBefore:qe(i,{renderByDefault:!0,defaultProps:{children:B.createElement(vL,null)},elementType:"span"}),contentAfter:qe(a,{renderByDefault:!0,elementType:"span"}),...u,onChange:ye(N=>{var z;const F=N.target.value;(z=e.onChange)===null||z===void 0||z.call(e,N,{value:F}),m(F)})},yt(p,t)),_={...S,components:{...S.components,dismiss:"span"},dismiss:qe(s,{defaultProps:{children:B.createElement(Xy,null),role:"button","aria-label":"clear",tabIndex:-1},renderByDefault:!0,elementType:"span"}),disabled:n,focused:g,size:r};return _.dismiss&&(_.dismiss.onClick=k),_},ZX=e=>rt(e.root,{children:[e.contentBefore&&J(e.contentBefore,{}),J(e.input,{}),e.contentAfter&&rt(e.contentAfter,{children:[e.contentAfter.children,e.dismiss&&J(e.dismiss,{})]})]}),Vl={root:"fui-SearchBox",dismiss:"fui-SearchBox__dismiss",contentAfter:"fui-SearchBox__contentAfter",contentBefore:"fui-SearchBox__contentBefore",input:"fui-SearchBox__input"},KX=se({small:{i8kkvl:"fjuset5",B2u0y6b:"f1xzfw5u",uwmqm3:["fk8j09s","fdw0yi8"],z189sj:["fdw0yi8","fk8j09s"]},medium:{i8kkvl:"fjuset5",B2u0y6b:"f1xzfw5u",uwmqm3:["f1f5gg8d","f1vdfbxk"],z189sj:["f1vdfbxk","f1f5gg8d"]},large:{i8kkvl:"fjuset5",B2u0y6b:"f1xzfw5u",uwmqm3:["f1ng84yb","f11gcy0p"],z189sj:["f11gcy0p","f1ng84yb"]},input:{uwmqm3:["fk8j09s","fdw0yi8"],z189sj:["fhxju0i","f1cnd47f"],Boqhc8c:"f18izjht",B8uat0v:"fcoa6sg"},unfocusedNoContentAfter:{z189sj:["fhxju0i","f1cnd47f"]}},{d:[".fjuset5{column-gap:0;}",".f1xzfw5u{max-width:468px;}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f18izjht::-webkit-search-decoration{display:none;}",".fcoa6sg::-webkit-search-cancel-button{display:none;}"]}),QX=se({small:{z189sj:["fdw0yi8","fk8j09s"]},medium:{z189sj:["f1vdfbxk","f1f5gg8d"]},large:{z189sj:["f11gcy0p","f1ng84yb"]}},{d:[".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}"]}),JX=se({contentAfter:{uwmqm3:["f1uw59to","fw5db7e"],i8kkvl:"f1ufnopg"},rest:{Bqenvij:"fniina8",a9b677:"f3tsq5r",uwmqm3:["f1cnd47f","fhxju0i"],B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp"}},{d:[".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".f1ufnopg{column-gap:var(--spacingHorizontalXS);}",".fniina8{height:0;}",".f3tsq5r{width:0;}",".f1cnd47f{padding-left:0;}",".fhxju0i{padding-right:0;}",[".f1a3p1vp{overflow:hidden;}",{p:-1}]]}),eY=Ge("r1pvzcuu",null,[".r1pvzcuu{box-sizing:border-box;color:var(--colorNeutralForeground3);display:flex;cursor:pointer;}",".r1pvzcuu>svg{font-size:20px;}"]),tY=se({disabled:{sj55zd:"f1s2aq7o"},small:{Duoase:"f3qv9w"},medium:{},large:{Duoase:"f16u2scb"}},{d:[".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f3qv9w>svg{font-size:16px;}",".f16u2scb>svg{font-size:24px;}"]}),rY=e=>{"use no memo";const{disabled:t,focused:r,size:n}=e,o=KX(),i=QX(),s=JX(),a=eY(),l=tY();return e.root.className=ne(Vl.root,o[n],!r&&o.unfocusedNoContentAfter,e.root.className),e.input.className=ne(Vl.input,o.input,!r&&i[n],e.input.className),e.dismiss&&(e.dismiss.className=ne(Vl.dismiss,a,t&&l.disabled,l[n],e.dismiss.className)),e.contentBefore&&(e.contentBefore.className=ne(Vl.contentBefore,e.contentBefore.className)),e.contentAfter?e.contentAfter.className=ne(Vl.contentAfter,s.contentAfter,!r&&s.rest,e.contentAfter.className):e.dismiss&&(e.dismiss.className=ne(e.dismiss.className,s.contentAfter)),u$(e),e},Zi=B.forwardRef((e,t)=>{const r=YX(e,t);return rY(r),Le("useSearchBoxStyles_unstable")(r),ZX(r)});Zi.displayName="SearchBox";class U3{constructor(t,r){Oe(this,"dataverseApi");Oe(this,"environmentUrl");this.dataverseApi=t,this.environmentUrl=r||"Unknown Environment"}getEnvironmentUrl(){return this.environmentUrl}async query(t,r){try{const n=this.buildQueryString(r),o=n?`${t}?${n}`:t,i=await this.dataverseApi.queryData(o,"primary");return this.parseResponse(i)}catch(n){throw new Error(`Failed to query ${t}: ${n instanceof Error?n.message:"Unknown error"}`)}}async queryMetadata(t,r){try{const n=this.buildQueryString(r),o=n?`${t}?${n}`:t,i=await this.dataverseApi.queryData(o,"primary");return this.parseResponse(i)}catch(n){throw new Error(`Failed to query metadata ${t}: ${n instanceof Error?n.message:"Unknown error"}`)}}buildQueryString(t){if(!t)return"";const r=[];return t.select&&t.select.length>0&&r.push(`$select=${t.select.join(",")}`),t.filter&&r.push(`$filter=${t.filter}`),t.expand&&r.push(`$expand=${t.expand}`),t.orderBy&&t.orderBy.length>0&&r.push(`$orderby=${t.orderBy.join(",")}`),t.top!==void 0&&r.push(`$top=${t.top}`),r.join("&")}parseResponse(t){if(!t||typeof t!="object")throw new Error("Invalid response from Dataverse");const r=t;if(Array.isArray(r.value))return{value:r.value,count:typeof r["@odata.count"]=="number"?r["@odata.count"]:void 0};if(!Array.isArray(r.value)&&r["@odata.context"])return{value:[r],count:1};throw new Error("Response does not contain a value array or single item")}}class G3{constructor(t){Oe(this,"client");this.client=t}async getPublishers(){try{return(await this.client.query("publishers",{select:["publisherid","uniquename","friendlyname","customizationprefix"],filter:"isreadonly eq false",orderBy:["friendlyname"]})).value}catch(t){throw new Error(`Failed to retrieve publishers: ${t instanceof Error?t.message:"Unknown error"}`)}}}class X3{constructor(t){Oe(this,"client");this.client=t}async getSolutions(){try{return(await this.client.query("solutions",{select:["solutionid","uniquename","friendlyname","version","ismanaged"],filter:"isvisible eq true",expand:"publisherid($select=uniquename,friendlyname)",orderBy:["friendlyname"]})).value}catch(t){throw new Error(`Failed to retrieve solutions: ${t instanceof Error?t.message:"Unknown error"}`)}}}class nY{constructor(t){Oe(this,"client");this.client=t}async getEntitiesByPublisher(t){try{const n=`IsCustomEntity eq true and (${t.map(i=>`(startswith(LogicalName,'${i}_') or startswith(SchemaName,'${i}_'))`).join(" or ")})`;return(await this.client.queryMetadata("EntityDefinitions",{select:["LogicalName","SchemaName","DisplayName","EntitySetName","PrimaryIdAttribute","PrimaryNameAttribute","MetadataId","IsCustomEntity","IsCustomizable","IsManaged","Description"],filter:n,orderBy:["LogicalName"]})).value}catch(r){throw new Error(`Failed to retrieve entities by publisher: ${r instanceof Error?r.message:"Unknown error"}`)}}async getEntitiesByIds(t){try{return t.length===0?[]:(await this.client.queryMetadata("EntityDefinitions",{select:["LogicalName","SchemaName","DisplayName","EntitySetName","PrimaryIdAttribute","PrimaryNameAttribute","MetadataId","IsCustomEntity","IsCustomizable","IsManaged","Description"]})).value.filter(o=>t.includes(o.MetadataId.toLowerCase())).sort((o,i)=>o.LogicalName.localeCompare(i.LogicalName))}catch(r){throw new Error(`Failed to retrieve entities by IDs: ${r instanceof Error?r.message:"Unknown error"}`)}}async getEntitiesBySolutions(t){try{const r=new Set;for(const i of t)(await this.client.query("solutioncomponents",{select:["objectid","componenttype"],filter:`_solutionid_value eq ${i} and componenttype eq 1`})).value.forEach(a=>{r.add(a.objectid.toLowerCase())});return r.size===0?[]:(await this.client.queryMetadata("EntityDefinitions",{select:["LogicalName","SchemaName","DisplayName","EntitySetName","PrimaryIdAttribute","PrimaryNameAttribute","MetadataId","IsCustomEntity","IsCustomizable","IsManaged","Description"]})).value.filter(i=>r.has(i.MetadataId.toLowerCase())).sort((i,s)=>i.LogicalName.localeCompare(s.LogicalName))}catch(r){throw new Error(`Failed to retrieve entities by solutions: ${r instanceof Error?r.message:"Unknown error"}`)}}async getAllEntities(t,r=!1){try{const n=t?void 0:"IsCustomEntity eq true";let i=(await this.client.queryMetadata("EntityDefinitions",{select:["LogicalName","SchemaName","DisplayName","EntitySetName","PrimaryIdAttribute","PrimaryNameAttribute","MetadataId","IsCustomEntity","IsCustomizable","IsManaged","Description"],filter:n})).value;return r&&(i=i.filter(s=>!s.IsManaged)),i.sort((s,a)=>s.LogicalName.localeCompare(a.LogicalName)),i}catch(n){throw new Error(`Failed to retrieve all entities: ${n instanceof Error?n.message:"Unknown error"}`)}}}var xr=(e=>(e[e.Entity=1]="Entity",e[e.Attribute=2]="Attribute",e[e.GlobalOptionSet=9]="GlobalOptionSet",e[e.SecurityRole=20]="SecurityRole",e[e.Workflow=29]="Workflow",e[e.WebResource=61]="WebResource",e[e.FieldSecurityProfile=70]="FieldSecurityProfile",e[e.PluginType=90]="PluginType",e[e.PluginAssembly=91]="PluginAssembly",e[e.SdkMessageProcessingStep=92]="SdkMessageProcessingStep",e[e.SdkMessageProcessingStepImage=93]="SdkMessageProcessingStepImage",e[e.CanvasApp=300]="CanvasApp",e[e.ConnectionReference=371]="ConnectionReference",e[e.CustomConnector=372]="CustomConnector",e[e.EnvironmentVariableDefinition=380]="EnvironmentVariableDefinition",e[e.CustomAPI=10076]="CustomAPI",e[e.CustomPage=10004]="CustomPage",e[e.PluginPackage=10030]="PluginPackage",e))(xr||{}),cc=(e=>(e[e.ClassicWorkflow=0]="ClassicWorkflow",e[e.BusinessRule=2]="BusinessRule",e[e.BusinessProcessFlow=4]="BusinessProcessFlow",e[e.Flow=5]="Flow",e))(cc||{});class oY{constructor(t){Oe(this,"client");this.client=t}async discoverComponents(t,r){try{const n={entityIds:[],attributeIds:[],pluginIds:[],pluginPackageIds:[],workflowIds:[],webResourceIds:[],canvasAppIds:[],customPageIds:[],connectionReferenceIds:[],customApiIds:[],environmentVariableIds:[],globalChoiceIds:[],customConnectorIds:[],securityRoleIds:[],fieldSecurityProfileIds:[]},o=new Map,i=new Map,s=new Map;if(r==null?void 0:r.some(u=>u.toLowerCase()==="default"))return this.discoverAllUnmanagedComponents();const l=t.map(u=>`_solutionid_value eq '${u.startsWith("{")?u:`{${u}}`}'`).join(" or "),c=await this.client.query("solutioncomponents",{select:["objectid","componenttype","_solutionid_value"],filter:l});for(const u of c.value){const d=u.objectid.toLowerCase().replace(/[{}]/g,""),p=u.componenttype,h=(u._solutionid_value||"").toLowerCase().replace(/[{}]/g,"");switch(o.has(d)||o.set(d,[]),h&&!o.get(d).includes(h)&&o.get(d).push(h),h&&(i.has(h)||i.set(h,new Set),i.get(h).add(d)),s.set(d,p),u.componenttype){case xr.Entity:n.entityIds.includes(d)||n.entityIds.push(d);break;case xr.Attribute:n.attributeIds.includes(d)||n.attributeIds.push(d);break;case xr.GlobalOptionSet:n.globalChoiceIds.includes(d)||n.globalChoiceIds.push(d);break;case xr.SecurityRole:n.securityRoleIds.includes(d)||n.securityRoleIds.push(d);break;case xr.FieldSecurityProfile:n.fieldSecurityProfileIds.includes(d)||n.fieldSecurityProfileIds.push(d);break;case xr.SdkMessageProcessingStep:n.pluginIds.includes(d)||n.pluginIds.push(d);break;case xr.PluginPackage:n.pluginPackageIds.includes(d)||n.pluginPackageIds.push(d);break;case xr.Workflow:n.workflowIds.includes(d)||n.workflowIds.push(d);break;case xr.WebResource:n.webResourceIds.includes(d)||n.webResourceIds.push(d);break;case xr.CanvasApp:n.canvasAppIds.includes(d)||n.canvasAppIds.push(d);break;case xr.CustomPage:n.customPageIds.includes(d)||n.customPageIds.push(d);break;case xr.ConnectionReference:n.connectionReferenceIds.includes(d)||n.connectionReferenceIds.push(d);break;case xr.CustomConnector:n.customConnectorIds.includes(d)||n.customConnectorIds.push(d);break;case xr.CustomAPI:n.customApiIds.includes(d)||n.customApiIds.push(d);break;case xr.EnvironmentVariableDefinition:n.environmentVariableIds.includes(d)||n.environmentVariableIds.push(d);break}}return{...n,componentToSolutions:o,solutionComponentMap:i,componentTypes:s}}catch(n){throw new Error(`Failed to discover solution components: ${n instanceof Error?n.message:"Unknown error"}`)}}async discoverAllUnmanagedComponents(){const t={entityIds:[],attributeIds:[],pluginIds:[],pluginPackageIds:[],workflowIds:[],webResourceIds:[],canvasAppIds:[],customPageIds:[],connectionReferenceIds:[],customApiIds:[],environmentVariableIds:[],globalChoiceIds:[],customConnectorIds:[],securityRoleIds:[],fieldSecurityProfileIds:[]};try{const r=await this.client.query("sdkmessageprocessingsteps",{select:["sdkmessageprocessingstepid"]});t.pluginIds=r.value.map(p=>p.sdkmessageprocessingstepid.toLowerCase().replace(/[{}]/g,""));const n=await this.client.query("workflows",{select:["workflowid"]});t.workflowIds=n.value.map(p=>p.workflowid.toLowerCase().replace(/[{}]/g,""));const o=await this.client.query("webresourceset",{select:["webresourceid"]});t.webResourceIds=o.value.map(p=>p.webresourceid.toLowerCase().replace(/[{}]/g,""));const i=await this.client.query("customapis",{select:["customapiid"]});t.customApiIds=i.value.map(p=>p.customapiid.toLowerCase().replace(/[{}]/g,""));const s=await this.client.query("environmentvariabledefinitions",{select:["environmentvariabledefinitionid"]});t.environmentVariableIds=s.value.map(p=>p.environmentvariabledefinitionid.toLowerCase().replace(/[{}]/g,""));const a=await this.client.query("connectionreferences",{select:["connectionreferenceid"]});t.connectionReferenceIds=a.value.map(p=>p.connectionreferenceid.toLowerCase().replace(/[{}]/g,""));const l=await this.client.query("connectors",{select:["connectorid"],filter:"iscustomizable/Value eq true"});t.customConnectorIds=l.value.map(p=>p.connectorid.toLowerCase().replace(/[{}]/g,""));const c=await this.client.query("roles",{select:["roleid"]});t.securityRoleIds=c.value.map(p=>p.roleid.toLowerCase().replace(/[{}]/g,""));const u=await this.client.query("fieldsecurityprofiles",{select:["fieldsecurityprofileid"]});t.fieldSecurityProfileIds=u.value.map(p=>p.fieldsecurityprofileid.toLowerCase().replace(/[{}]/g,""));const d=await this.client.query("canvasapps",{select:["canvasappid"]});return t.canvasAppIds=d.value.map(p=>p.canvasappid.toLowerCase().replace(/[{}]/g,"")),{...t,componentToSolutions:new Map,solutionComponentMap:new Map,componentTypes:new Map}}catch(r){throw new Error(`Failed to discover unmanaged components: ${r instanceof Error?r.message:"Unknown error"}`)}}async classifyWorkflows(t,r,n){try{if(t.length===0)return{flowIds:[],businessRuleIds:[],classicWorkflowIds:[],businessProcessFlowIds:[],componentToSolutions:n||new Map,solutionComponentMap:r||new Map};const o={flowIds:[],businessRuleIds:[],classicWorkflowIds:[],businessProcessFlowIds:[]},i=t.map(a=>`workflowid eq '${a.startsWith("{")?a:`{${a}}`}'`).join(" or "),s=await this.client.query("workflows",{select:["workflowid","category"],filter:i});for(const a of s.value){const l=a.workflowid.toLowerCase();switch(a.category){case cc.Flow:o.flowIds.push(l);break;case cc.BusinessRule:o.businessRuleIds.push(l);break;case cc.ClassicWorkflow:o.classicWorkflowIds.push(l);break;case cc.BusinessProcessFlow:o.businessProcessFlowIds.push(l);break}}return{...o,componentToSolutions:n||new Map,solutionComponentMap:r||new Map}}catch(o){throw new Error(`Failed to classify workflows: ${o instanceof Error?o.message:"Unknown error"}`)}}}class iY{constructor(t){Oe(this,"client");this.client=t}async getEntitySchema(t){try{const r=await this.client.queryMetadata("EntityDefinitions",{select:["LogicalName","SchemaName","DisplayName","MetadataId","EntitySetName","PrimaryIdAttribute","PrimaryNameAttribute","Description","OwnershipType","IsAuditEnabled","ChangeTrackingEnabled","IsActivity","IsActivityParty","IsCustomEntity","IsCustomizable","IsManaged","ObjectTypeCode"],filter:`LogicalName eq '${t}'`,expand:["Attributes($select=LogicalName,SchemaName,MetadataId,DisplayName,AttributeType,IsPrimaryId,IsPrimaryName,IsValidForCreate,IsValidForUpdate,IsValidForRead,IsValidForAdvancedFind,IsAuditEnabled,IsSecured,RequiredLevel,Description,IsCustomAttribute,IsManaged)","ManyToOneRelationships($select=SchemaName,MetadataId,ReferencingEntity,ReferencedEntity,ReferencingAttribute,ReferencedAttribute,CascadeConfiguration,IsCustomRelationship,IsManaged)","OneToManyRelationships($select=SchemaName,MetadataId,ReferencingEntity,ReferencedEntity,ReferencingAttribute,ReferencedAttribute,CascadeConfiguration,IsCustomRelationship,IsManaged)","ManyToManyRelationships($select=SchemaName,MetadataId,Entity1LogicalName,Entity2LogicalName,IntersectEntityName,Entity1IntersectAttribute,Entity2IntersectAttribute,IsCustomRelationship,IsManaged)","Keys($select=LogicalName,DisplayName,KeyAttributes,EntityKeyIndexStatus)"].join(",")});if(r.value.length===0)throw new Error(`Entity '${t}' not found`);const n=r.value[0];return n.OwnershipTypeName=this.getOwnershipTypeName(n.OwnershipType),n}catch(r){throw new Error(`Failed to retrieve schema for ${t}: ${r instanceof Error?r.message:"Unknown error"}`)}}getOwnershipTypeName(t){switch(t){case 1:return"User or Team Owned";case 2:return"Team Owned";case 4:return"Organization Owned";case 8:return"Business Owned";default:return"Unknown"}}}class sY{constructor(t,r){Oe(this,"client");Oe(this,"onProgress");this.client=t,this.onProgress=r}async getPluginsByIds(t){var r,n,o,i,s;if(t.length===0)return[];try{const l=[];for(let d=0;d<t.length;d+=20){const m=t.slice(d,d+20).map(y=>`sdkmessageprocessingstepid eq ${y.replace(/[{}]/g,"")}`).join(" or "),g=await this.client.query("sdkmessageprocessingsteps",{select:["sdkmessageprocessingstepid","name","stage","mode","rank","filteringattributes","description","asyncautodelete","configuration","_impersonatinguserid_value"],filter:m,expand:"sdkmessageid($select=name),plugintypeid($select=typename,name,assemblyname,plugintypeid),sdkmessagefilterid($select=primaryobjecttypecode)",orderBy:["stage asc","rank asc"]});l.push(...g.value),this.onProgress&&this.onProgress(l.length,t.length)}const c=await this.getPluginImagesForAllSteps(l.map(d=>d.sdkmessageprocessingstepid)),u=[];for(const d of l){const p=c.get(d.sdkmessageprocessingstepid)||{preImage:null,postImage:null},h={id:d.sdkmessageprocessingstepid,name:d.name,stage:d.stage,stageName:this.getStageName(d.stage),mode:d.mode,modeName:this.getModeName(d.mode),rank:d.rank,message:((r=d.sdkmessageid)==null?void 0:r.name)||"Unknown",entity:((n=d.sdkmessagefilterid)==null?void 0:n.primaryobjecttypecode)||"none",assemblyName:((o=d.plugintypeid)==null?void 0:o.assemblyname)||"Unknown",typeName:((i=d.plugintypeid)==null?void 0:i.typename)||"Unknown",pluginTypeId:((s=d.plugintypeid)==null?void 0:s.plugintypeid)||"",filteringAttributes:this.parseFilteringAttributes(d.filteringattributes),description:d.description,asyncAutoDelete:d.asyncautodelete,configuration:null,customConfiguration:d.configuration,preImage:p.preImage,postImage:p.postImage,impersonatingUserId:d._impersonatinguserid_value||null,impersonatingUserName:d["_impersonatinguserid_value@OData.Community.Display.V1.FormattedValue"]||null};u.push(h)}return u}catch(a){throw new Error(`Failed to retrieve plugins: ${a instanceof Error?a.message:"Unknown error"}`)}}async getPluginImagesForAllSteps(t){var n;const r=new Map;for(const o of t)r.set(o,{preImage:null,postImage:null});if(t.length===0)return r;try{const i=[];for(let s=0;s<t.length;s+=20){const l=t.slice(s,s+20).map(u=>`_sdkmessageprocessingstepid_value eq '${u.startsWith("{")?u:`{${u}}`}'`).join(" or "),c=await this.client.query("sdkmessageprocessingstepimages",{select:["sdkmessageprocessingstepimageid","_sdkmessageprocessingstepid_value","imagetype","name","attributes","messagepropertyname"],filter:l});i.push(...c.value)}for(const s of i){const a=(n=s._sdkmessageprocessingstepid_value)==null?void 0:n.toLowerCase();if(!a)continue;const l=s.imagetype===0?"PreImage":"PostImage",c={id:s.sdkmessageprocessingstepimageid,name:s.name,imageType:l,attributes:this.parseImageAttributes(s.attributes),messagePropertyName:s.messagepropertyname},u=r.get(a);u&&(l==="PreImage"?u.preImage=c:u.postImage=c)}return r}catch{return r}}getStageName(t){switch(t){case 10:return"PreValidation";case 20:return"PreOperation";case 30:return"MainOperation";case 40:return"PostOperation";case 50:return"Asynchronous";default:return"Unknown"}}getModeName(t){switch(t){case 0:return"Synchronous";case 1:return"Asynchronous";default:return"Unknown"}}parseFilteringAttributes(t){return t?t.split(",").map(r=>r.trim()).filter(r=>r.length>0):[]}parseImageAttributes(t){return t?t.split(",").map(r=>r.trim()).filter(r=>r.length>0):[]}}class aY{static parse(t){const r={triggerType:"Other",triggerEvent:"Unknown",triggerConditions:null,scopeType:"Unknown",actionsCount:0,externalCalls:[],connectionReferences:[],dataverseActions:[]};if(!t)return r;try{const n=JSON.parse(t),o=this.extractTrigger(n),{actionsCount:i,externalCalls:s,connectionReferences:a}=this.extractActions(n),l=this.extractDataverseActions(n),c=this.extractScopeType(n);return{triggerType:o.type,triggerEvent:o.event,triggerConditions:o.conditions,scopeType:c,actionsCount:i,externalCalls:s,connectionReferences:a,dataverseActions:l}}catch{return r}}static extractTrigger(t){var u,d,p;const r=t==null?void 0:t.properties,n=r==null?void 0:r.definition;if(!n||!n.triggers)return{type:"Other",event:"Unknown",conditions:null};const o=Object.keys(n.triggers)[0],i=n.triggers[o];if(!i)return{type:"Other",event:"Unknown",conditions:null};let s="Other",a="Unknown",l=null;const c=((u=i.type)==null?void 0:u.toLowerCase())||"";return c.includes("dataverse")||c.includes("commondataservice")?(s="Dataverse",c.includes("create")?a=((d=i.inputs)==null?void 0:d.message)==="Update"?"CreateOrUpdate":"Create":c.includes("update")?a="Update":c.includes("delete")&&(a="Delete"),(p=i.inputs)!=null&&p.filterExpression&&(l=i.inputs.filterExpression)):c.includes("manual")||c.includes("request")?(s="Manual",a="Manual"):(c.includes("recurrence")||c.includes("schedule"))&&(s="Scheduled",a="Scheduled"),{type:s,event:a,conditions:l}}static extractActions(t){var a;const r=(a=t==null?void 0:t.properties)==null?void 0:a.definition,n=new Set,o=[];let i=0;if(!r||!r.actions)return{actionsCount:0,externalCalls:[],connectionReferences:[]};const s=(l,c)=>{var u,d,p;if(i++,l.type==="Http"||l.type==="OpenApiConnection"){const h=this.extractUrl(l);h&&o.push({url:h,domain:this.extractDomain(h),method:((u=l.inputs)==null?void 0:u.method)||null,actionName:c,confidence:this.determineConfidence(l)})}(p=(d=l.inputs)==null?void 0:d.host)!=null&&p.connectionName&&n.add(l.inputs.host.connectionName),l.actions&&Object.keys(l.actions).forEach(h=>{s(l.actions[h],h)})};return Object.keys(r.actions).forEach(l=>{s(r.actions[l],l)}),{actionsCount:i,externalCalls:o,connectionReferences:Array.from(n)}}static extractScopeType(t){var n;const r=(n=t==null?void 0:t.properties)==null?void 0:n.runAs;return r?r==="0"||r===0?"User":r==="1"||r===1?"BusinessUnit":r==="2"||r===2?"Organization":"Unknown":"Unknown"}static extractUrl(t){var r,n;return(r=t.inputs)!=null&&r.uri?t.inputs.uri:(n=t.inputs)!=null&&n.path?t.inputs.path:null}static extractDomain(t){try{return new URL(t).hostname}catch{const r=t.match(/^(?:https?:\/\/)?([^\/\s:]+)/i);return r?r[1]:"unknown"}}static determineConfidence(t){var r,n;return t.type==="Http"&&((r=t.inputs)!=null&&r.uri)?"High":t.type==="OpenApiConnection"&&((n=t.inputs)!=null&&n.path)?"Medium":"Low"}static extractDataverseActions(t){var i;const r=(i=t==null?void 0:t.properties)==null?void 0:i.definition,n=[];if(!r||!r.actions)return[];const o=(s,a)=>{var c,u;const l=((c=s.type)==null?void 0:c.toLowerCase())||"";if(l.includes("dataverse")||l.includes("commondataservice")||l==="openApiConnection"){const d=this.detectDataverseOperation(s,a);d&&n.push(d)}s.actions&&Object.keys(s.actions).forEach(d=>{o(s.actions[d],d)}),(u=s.else)!=null&&u.actions&&Object.keys(s.else.actions).forEach(d=>{o(s.else.actions[d],d)})};return Object.keys(r.actions).forEach(s=>{o(r.actions[s],s)}),n}static detectDataverseOperation(t,r){var c,u,d;const n=t.inputs;if(!n)return null;const o=((c=n.operationId)==null?void 0:c.toLowerCase())||"",i=r.toLowerCase();let s=null,a=null,l="Low";if(o.includes("createrecord")||i.includes("create")?(s="Create",l="High"):o.includes("updaterecord")||i.includes("update")?(s="Update",l="High"):o.includes("deleterecord")||i.includes("delete")?(s="Delete",l="High"):o.includes("getrecord")||o.includes("getitem")||i.includes("get")?(s="Get",l="Medium"):(o.includes("listrecords")||o.includes("listitems")||i.includes("list"))&&(s="List",l="Medium"),!s)return null;if((u=n.parameters)!=null&&u.entityName)a=n.parameters.entityName,l="High";else if((d=n.parameters)!=null&&d.entityLogicalName)a=n.parameters.entityLogicalName,l="High";else if(n.path){const p=n.path.match(/\/([a-z_]+)\(/i);p&&(a=p[1],l="Medium")}else{const p=r.match(/_([A-Z][a-z]+)$/);p&&(a=p[1].toLowerCase(),l="Low")}return a?{operation:s,targetEntity:a,actionName:r,confidence:l}:null}}class lY{constructor(t,r){Oe(this,"client");Oe(this,"onProgress");this.client=t,this.onProgress=r}async getFlowsByIds(t){if(t.length===0)return[];try{const n=[];for(let i=0;i<t.length;i+=20){const l=`(${t.slice(i,i+20).map(u=>`workflowid eq ${u}`).join(" or ")}) and category eq 5`,c=await this.client.query("workflows",{select:["workflowid","name","description","statecode","statuscode","primaryentity","scope","_ownerid_value","_modifiedby_value","modifiedon","createdon","clientdata"],filter:l});n.push(...c.value),this.onProgress&&this.onProgress(n.length,t.length)}return n.map(i=>this.mapWorkflowToFlow(i))}catch(r){throw r}}async getFlowsForEntity(t){try{return(await this.client.query("workflows",{select:["workflowid","name","description","statecode","statuscode","primaryentity","scope","_ownerid_value","_modifiedby_value","modifiedon","createdon","clientdata"],filter:`category eq 5 and primaryentity eq '${t}'`})).value.map(o=>this.mapWorkflowToFlow(o))}catch{return[]}}mapWorkflowToFlow(t){const r=aY.parse(t.clientdata);let n="Draft";t.statecode===1?n="Active":t.statecode===2&&(n="Suspended");let o="Unknown";return t.scope===1?o="User":t.scope===2?o="Business Unit":t.scope===4&&(o="Organization"),{id:t.workflowid,name:t.name,description:t.description,state:n,stateCode:t.statecode,entity:t.primaryentity,entityDisplayName:t["primaryentity@OData.Community.Display.V1.FormattedValue"]||null,scope:t.scope,scopeName:o,owner:t["_ownerid_value@OData.Community.Display.V1.FormattedValue"]||"Unknown",ownerId:t._ownerid_value,modifiedBy:t["_modifiedby_value@OData.Community.Display.V1.FormattedValue"]||"Unknown",modifiedOn:t.modifiedon,createdOn:t.createdon,definition:r,hasExternalCalls:r.externalCalls.length>0}}}class cY{static parse(t){if(!t||t.trim()==="")return{conditions:[],actions:[],executionContext:"Client",conditionLogic:"No conditions defined"};try{const r=this.parseConditions(t),n=this.parseActions(t),o=this.determineExecutionContext(n),i=this.buildConditionLogic(r);return{conditions:r,actions:n,executionContext:o,conditionLogic:i}}catch(r){return{conditions:[],actions:[],executionContext:"Client",conditionLogic:"Unable to parse conditions",parseError:r instanceof Error?r.message:"Unknown error"}}}static parseConditions(t){const r=[],n=/<condition[^>]*attribute="([^"]*)"[^>]*operator="([^"]*)"[^>]*>[\s\S]*?<value[^>]*>([^<]*)<\/value>/gi;let o;for(;(o=n.exec(t))!==null;){const[,i,s,a]=o,l=this.getLogicOperator(t,o.index);r.push({field:i||"unknown",operator:this.getOperatorDisplayName(s||"eq"),value:a||"",logicOperator:l})}return r}static parseActions(t){const r=[],n=/<action[^>]*actiontype="([^"]*)"[^>]*>[\s\S]*?<\/action>/gi;let o;for(;(o=n.exec(t))!==null;){const[i,s]=o,a=this.extractParameter(i,"field"),l=this.extractParameter(i,"value"),c=this.extractParameter(i,"message"),u=this.getActionType(s);r.push({type:u,field:a||"unknown",value:l||void 0,message:c||void 0})}return r}static determineExecutionContext(t){let r=!1,n=!1;for(const o of t)["ShowField","HideField","LockField","UnlockField"].includes(o.type)&&(r=!0),["SetValue","SetRequired","ShowError"].includes(o.type)&&(n=!0);return r&&n?"Both":n?"Server":"Client"}static buildConditionLogic(t){if(t.length===0)return"No conditions defined";if(t.length===1){const n=t[0];return`IF ${n.field} ${n.operator} '${n.value}'`}let r="IF ";for(let n=0;n<t.length;n++){const o=t[n];n>0&&(r+=` ${o.logicOperator} `),r+=`${o.field} ${o.operator} '${o.value}'`}return r}static getLogicOperator(t,r){return t.substring(Math.max(0,r-200),r).includes("<or>")?"OR":"AND"}static getOperatorDisplayName(t){return{eq:"equals",ne:"not equals",gt:"greater than",ge:"greater than or equals",lt:"less than",le:"less than or equals",contains:"contains","not-contains":"does not contain","begins-with":"begins with","ends-with":"ends with"}[t]||t}static getActionType(t){return{show:"ShowField",hide:"HideField",setvalue:"SetValue",setrequired:"SetRequired",lock:"LockField",unlock:"UnlockField",showerror:"ShowError"}[t.toLowerCase()]||"SetValue"}static extractParameter(t,r){const o=new RegExp(`<parameter[^>]*name="${r}"[^>]*>([^<]*)</parameter>`,"i").exec(t);return o?o[1]:null}}class uY{constructor(t,r){Oe(this,"client");Oe(this,"onProgress");this.client=t,this.onProgress=r}async getBusinessRulesByIds(t){if(t.length===0)return[];try{const n=[];for(let i=0;i<t.length;i+=20){const l=`(${t.slice(i,i+20).map(u=>`workflowid eq ${u}`).join(" or ")}) and category eq 2`,c=await this.client.query("workflows",{select:["workflowid","name","description","statecode","primaryentity","scope","xaml","clientdata","modifiedon","createdon"],filter:l,orderBy:["primaryentity","name"]});n.push(...c.value),this.onProgress&&this.onProgress(n.length,t.length)}return n.map(i=>this.mapRecordToBusinessRule(i))}catch(r){throw r}}async getBusinessRulesForEntity(t){try{return(await this.client.query("workflows",{select:["workflowid","name","description","statecode","primaryentity","scope","xaml","clientdata","modifiedon","createdon"],filter:`category eq 2 and primaryentity eq '${t}'`,orderBy:["name"]})).value.map(o=>this.mapRecordToBusinessRule(o))}catch{return[]}}mapRecordToBusinessRule(t){const r=cY.parse(t.xaml||"");let n="Draft";t.statecode===1&&(n="Active");let o="Entity",i="Entity";return t.scope===1?(o="AllForms",i="All Forms"):t.scope===2&&(o="SpecificForm",i="Specific Form"),{id:t.workflowid,name:t.name,description:t.description,state:n,entity:t.primaryentity||"unknown",entityDisplayName:t["primaryentity@OData.Community.Display.V1.FormattedValue"]||null,scope:o,scopeName:i,formId:null,formName:t["_formid_value@OData.Community.Display.V1.FormattedValue"]||null,definition:r,owner:t["_ownerid_value@OData.Community.Display.V1.FormattedValue"]||"Unknown",modifiedOn:t.modifiedon,createdOn:t.createdon}}}class dY{constructor(t){Oe(this,"client");this.client=t}async getFormsForEntities(t){if(t.length===0)return[];try{const n=t.map(i=>`objecttypecode eq '${i}'`).join(" or ");return(await this.client.query("systemforms",{select:["formid","name","type","objecttypecode","formxml"],filter:`(${n}) and type in (2,7,8,11)`})).value.map(i=>this.parseForm(i))}catch(r){throw new Error(`Failed to retrieve forms: ${r instanceof Error?r.message:"Unknown error"}`)}}parseForm(t){const r=this.extractLibraries(t.formxml),n=this.extractEventHandlers(t.formxml);return{id:t.formid,name:t.name,type:t.type,typeName:this.getFormTypeName(t.type),entity:t.objecttypecode,formXml:t.formxml,libraries:r,eventHandlers:n}}extractLibraries(t){const r=[],n=/<Library\s+name="([^"]+)"/gi;let o;for(;(o=n.exec(t))!==null;)r.push(o[1]);return r}extractEventHandlers(t){const r=[];return r.push(...this.extractFormEvents(t)),r.push(...this.extractFieldEvents(t)),r.push(...this.extractTabEvents(t)),r}extractFormEvents(t){const r=[],n=/<event\s+name="(onload|onsave)"[^>]*>(.*?)<\/event>/gis;let o;for(;(o=n.exec(t))!==null;){const i=o[1],s=o[2],a=/<Handler\s+functionName="([^"]+)"\s+library="([^"]+)"\s+enabled="([^"]+)"(?:\s+parameters="([^"]*)")?/gi;let l;for(;(l=a.exec(s))!==null;)r.push({event:i==="onload"?"OnLoad":"OnSave",libraryName:l[2],functionName:l[1],enabled:l[3]==="true",parameters:l[4]||void 0})}return r}extractFieldEvents(t){const r=[],n=/<control\s+[^>]*datafieldname="([^"]+)"[^>]*>(.*?)<\/control>/gis;let o;for(;(o=n.exec(t))!==null;){const i=o[1],s=o[2],a=/<event\s+name="onchange"[^>]*>(.*?)<\/event>/gis;let l;for(;(l=a.exec(s))!==null;){const c=l[1],u=/<Handler\s+functionName="([^"]+)"\s+library="([^"]+)"\s+enabled="([^"]+)"(?:\s+parameters="([^"]*)")?/gi;let d;for(;(d=u.exec(c))!==null;)r.push({event:"OnChange",libraryName:d[2],functionName:d[1],attribute:i,enabled:d[3]==="true",parameters:d[4]||void 0})}}return r}extractTabEvents(t){const r=[],n=/<tab\s+[^>]*>(.*?)<\/tab>/gis;let o;for(;(o=n.exec(t))!==null;){const i=o[1],s=/<event\s+name="TabStateChange"[^>]*>(.*?)<\/event>/gis;let a;for(;(a=s.exec(i))!==null;){const l=a[1],c=/<Handler\s+functionName="([^"]+)"\s+library="([^"]+)"\s+enabled="([^"]+)"(?:\s+parameters="([^"]*)")?/gi;let u;for(;(u=c.exec(l))!==null;)r.push({event:"TabStateChange",libraryName:u[2],functionName:u[1],enabled:u[3]==="true",parameters:u[4]||void 0})}}return r}getFormTypeName(t){switch(t){case 2:return"Main";case 7:return"Quick Create";case 8:return"Quick View";case 11:return"Card";default:return"Unknown"}}}class fY{constructor(t,r){Oe(this,"client");Oe(this,"onProgress");this.client=t,this.onProgress=r}async getClassicWorkflowsByIds(t){if(t.length===0)return[];try{const n=[];for(let o=0;o<t.length;o+=20){const a=`(${t.slice(o,o+20).map(c=>`workflowid eq ${c.replace(/[{}]/g,"")}`).join(" or ")}) and category eq 0`,l=await this.client.query("workflows",{select:["workflowid","name","description","type","category","mode","triggeroncreate","triggeronupdate","triggerondelete","ondemand","scope","primaryentity","statecode","xaml","ismanaged","createdon","modifiedon","_ownerid_value"],filter:a,orderBy:["primaryentity asc","name asc"]});n.push(...l.value),this.onProgress&&this.onProgress(n.length,t.length)}return n.map(o=>this.mapToClassicWorkflow(o))}catch(r){throw new Error(`Failed to retrieve classic workflows: ${r instanceof Error?r.message:"Unknown error"}`)}}mapToClassicWorkflow(t){return{id:t.workflowid,name:t.name,description:t.description,type:t.type,typeName:this.getTypeName(t.type),mode:t.mode,modeName:this.getModeName(t.mode),triggerOnCreate:t.triggeroncreate,triggerOnUpdate:t.triggeronupdate,triggerOnDelete:t.triggerondelete,onDemand:t.ondemand,scope:t.scope,scopeName:this.getScopeName(t.scope),entity:t.primaryentity,entityDisplayName:t["_primaryentity_value@OData.Community.Display.V1.FormattedValue"]||null,state:this.getStateName(t.statecode),isManaged:t.ismanaged,xaml:t.xaml,owner:t["_ownerid_value@OData.Community.Display.V1.FormattedValue"]||"Unknown",modifiedBy:t["_modifiedby_value@OData.Community.Display.V1.FormattedValue"]||"Unknown",modifiedOn:t.modifiedon,createdOn:t.createdon}}getTypeName(t){switch(t){case 1:return"Definition";case 2:return"Activation";case 3:return"Template";default:return"Unknown"}}getModeName(t){switch(t){case 0:return"Background";case 1:return"RealTime";default:return"Unknown"}}getScopeName(t){switch(t){case 1:return"User";case 2:return"Business Unit";case 4:return"Parent-Child Business Units";case 8:return"Organization";default:return"Unknown"}}getStateName(t){switch(t){case 0:return"Draft";case 1:return"Active";case 2:return"Suspended";default:return"Draft"}}}class hY{constructor(t){this.client=t}async getFieldSecurityProfiles(){return(await this.client.query("fieldsecurityprofiles?$select=fieldsecurityprofileid,name,description&$orderby=name")).value}async getFieldPermissions(t){if(t.length===0)return[];const n=`fieldpermissions?$select=fieldpermissionid,entityname,attributelogicalname,canread,cancreate,canupdate,fieldsecurityprofileid&$expand=fieldsecurityprofileid($select=name)&$filter=${t.map(i=>`entityname eq '${i}'`).join(" or ")}`;return(await this.client.query(n)).value.map(i=>{var s;return{fieldpermissionid:i.fieldpermissionid,entityname:i.entityname,attributelogicalname:i.attributelogicalname,canread:i.canread,cancreate:i.cancreate,canupdate:i.canupdate,fieldsecurityprofileid:i.fieldsecurityprofileid,fieldsecurityprofilename:((s=i.fieldsecurityprofileid)==null?void 0:s.name)||"Unknown Profile"}})}async getEntityFieldSecurity(t){const r=await this.getFieldPermissions([t]),n=new Map;for(const i of r){const s=n.get(i.attributelogicalname)||[];s.push({profileId:i.fieldsecurityprofileid,profileName:i.fieldsecurityprofilename||"Unknown Profile",canRead:i.canread===1,canCreate:i.cancreate===1,canUpdate:i.canupdate===1}),n.set(i.attributelogicalname,s)}const o=[];for(const[i,s]of n.entries())o.push({attributeLogicalName:i,profiles:s});return{entityLogicalName:t,securedFields:o}}async getEntitiesFieldSecurity(t){const r=await this.getFieldPermissions(t),n=new Map;for(const i of r){const s=n.get(i.entityname)||[];s.push(i),n.set(i.entityname,s)}const o=new Map;for(const i of t){const s=n.get(i)||[],a=new Map;for(const c of s){const u=a.get(c.attributelogicalname)||[];u.push({profileId:c.fieldsecurityprofileid,profileName:c.fieldsecurityprofilename||"Unknown Profile",canRead:c.canread===1,canCreate:c.cancreate===1,canUpdate:c.canupdate===1}),a.set(c.attributelogicalname,u)}const l=[];for(const[c,u]of a.entries())l.push({attributeLogicalName:c,profiles:u});o.set(i,{entityLogicalName:i,securedFields:l})}return o}}const pY={None:0,Create:1,Read:2,Write:4,Delete:8,Append:16,AppendTo:32,Assign:64,Share:128},gY={documentGeneration:"prvDocumentGeneration",dynamics365ForMobile:"prvMobileOfflineSync",exportToExcel:"prvExportToExcel",goOfflineInOutlook:"prvGoOffline",mailMerge:"prvMailMerge",print:"prvPrint",syncToOutlook:"prvSyncToOutlook",useDynamics365AppForOutlook:"prvUseTabletApp",activateRealtimeProcesses:"prvActivateBusinessProcessFlow",executeWorkflowJob:"prvWorkflowExecution",runFlows:"prvRunFlows",bulkDelete:"prvBulkDelete",bulkEdit:"prvBulkEdit",writeRollupFields:"prvWriteRollupField",overrideCreatedOnModifiedOn:"prvOverrideCreatedOnCreatedBy",activateBusinessRules:"prvActivateBusinessRule",publishCustomizations:"prvPublishCustomization",publishReports:"prvPublishReport",useInternetMarketing:"prvUseInternetMarketing",actOnBehalfOfAnotherUser:"prvActOnBehalfOfAnotherUser",approveKnowledgeArticles:"prvApproveKnowledgeArticle",configureYammer:"prvConfigureYammer",delegateAccess:"prvDelegateAccess",mergeRecords:"prvMerge",turnOnTracing:"prvTurnOnTracing",viewAuditHistory:"prvReadAuditHistory",viewAuditSummary:"prvReadAuditSummary"};class mY{constructor(t,r){this.client=t,this.onProgress=r}async getSecurityRoles(){return(await this.client.query("roles?$select=roleid,name,businessunitid,description,iscustomizable,ismanaged,componentstate&$expand=businessunitid($select=name)&$orderby=name")).value.map(n=>{var o,i;return{roleid:n.roleid,name:n.name,businessunitid:n.businessunitid,businessunitname:((o=n.businessunitid)==null?void 0:o.name)||"Unknown",description:n.description,iscustomizable:((i=n.iscustomizable)==null?void 0:i.Value)??!0,ismanaged:n.ismanaged??!1,componentstate:n.componentstate??0}})}async getRolePrivileges(t){const n=`roleprivilegescollection?$filter=roleid eq ${t.replace(/[{}]/g,"")}&$select=privilegeid,privilegedepthmask`,o=await this.client.query(n);if(!o.value||o.value.length===0)return[];const a=`privileges?$filter=${o.value.map(u=>u.privilegeid).map(u=>`privilegeid eq ${u}`).join(" or ")}&$select=privilegeid,name,accessright`,l=await this.client.query(a),c=new Map;for(const u of l.value)c.set(u.privilegeid.toLowerCase(),u);return o.value.map(u=>{const d=u.privilegeid.toLowerCase(),p=c.get(d);return{privilegeid:u.privilegeid,privilegename:(p==null?void 0:p.name)||"",accessright:(p==null?void 0:p.accessright)??0,privilegedepthmask:u.privilegedepthmask??0}})}async getSecurityRoleDetail(t){const r=await this.getRolePrivileges(t.roleid),n=new Map;let o=!1;const i=this.parseSpecialPermissions(r);for(const a of r){const l=a.privilegename.match(/^prv(Create|Read|Write|Delete|Append|AppendTo|Assign|Share)(.+)$/);if(l){const c=l[1],u=l[2].toLowerCase(),d=this.parsePrivilegeDetails(a.accessright,a.privilegedepthmask,c);for(const h of d)if(h.depth==="Global"&&(c==="Create"||c==="Write"||c==="Delete")){o=!0;break}const p=n.get(u)||[];p.push(...d),n.set(u,p)}}const s=[];for(const[a,l]of n.entries()){const c=this.deduplicatePrivileges(l);s.push({entityLogicalName:a,privileges:c})}return s.sort((a,l)=>a.entityLogicalName.localeCompare(l.entityLogicalName)),{...t,entityPermissions:s,totalEntities:s.length,hasSystemAdminPrivileges:o,specialPermissions:i}}parseSpecialPermissions(t){const r=new Set(t.map(o=>o.privilegename)),n={documentGeneration:!1,dynamics365ForMobile:!1,exportToExcel:!1,goOfflineInOutlook:!1,mailMerge:!1,print:!1,syncToOutlook:!1,useDynamics365AppForOutlook:!1,activateRealtimeProcesses:!1,executeWorkflowJob:!1,runFlows:!1,bulkDelete:!1,bulkEdit:!1,writeRollupFields:!1,overrideCreatedOnModifiedOn:!1,activateBusinessRules:!1,publishCustomizations:!1,publishReports:!1,useInternetMarketing:!1,actOnBehalfOfAnotherUser:!1,approveKnowledgeArticles:!1,configureYammer:!1,delegateAccess:!1,mergeRecords:!1,turnOnTracing:!1,viewAuditHistory:!1,viewAuditSummary:!1};for(const[o,i]of Object.entries(gY))n[o]=r.has(i);return n}async getAllSecurityRoleDetails(){const t=await this.getSecurityRoles(),r=[];for(let n=0;n<t.length;n++){this.onProgress&&this.onProgress(n+1,t.length);const o=await this.getSecurityRoleDetail(t[n]);r.push(o)}return r}parsePrivilegeDetails(t,r,n){const o=[],i=pY[n];if(!i)return o;if(t&i){let s="None",a=0;r&8?(s="Global",a=8):r&4?(s="Deep",a=4):r&2?(s="Local",a=2):r&1&&(s="Basic",a=1),o.push({type:n,depth:s,depthValue:a})}return o}deduplicatePrivileges(t){const r=new Map;for(const n of t){const o=r.get(n.type);(!o||n.depthValue>o.depthValue)&&r.set(n.type,n)}return Array.from(r.values()).sort((n,o)=>{const i=["Create","Read","Write","Delete","Append","AppendTo","Assign","Share"];return i.indexOf(n.type)-i.indexOf(o.type)})}static getEntitySecurityAccess(t,r){const n=[];for(const o of r){const i=o.entityPermissions.find(s=>s.entityLogicalName.toLowerCase()===t.toLowerCase());i&&i.privileges.length>0&&n.push({roleName:o.name,roleId:o.roleid,businessUnit:o.businessunitname||"Unknown",isManaged:o.ismanaged,hasSystemAdminPrivileges:o.hasSystemAdminPrivileges,permissions:i.privileges})}return n.sort((o,i)=>o.roleName.localeCompare(i.roleName))}}const vY="modulepreload",yY=function(e,t){return new URL(e,t).href},d2={},Ke=function(t,r,n){let o=Promise.resolve();if(r&&r.length>0){const s=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));o=Promise.allSettled(r.map(c=>{if(c=yY(c,n),c in d2)return;d2[c]=!0;const u=c.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(!!n)for(let m=s.length-1;m>=0;m--){const g=s[m];if(g.href===c&&(!u||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${d}`))return;const h=document.createElement("link");if(h.rel=u?"stylesheet":vY,u||(h.as="script"),h.crossOrigin="",h.href=c,l&&h.setAttribute("nonce",l),document.head.appendChild(h),u)return new Promise((m,g)=>{h.addEventListener("load",m),h.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return o.then(s=>{for(const a of s||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})};class bY{static parse(t,r){const n=[],o=[];let i=!1,s=!1;try{const a=this.countLinesOfCode(t),l=this.detectExternalCalls(t);n.push(...l),(t.includes("Xrm.WebApi")||t.includes("Xrm.Navigation")||t.includes("Xrm.Utility"))&&(i=!0),t.includes("Xrm.Page")&&(s=!0),(t.includes("jQuery")||t.includes("$")||t.includes("$.ajax"))&&o.push("jQuery"),(t.includes("React")||t.includes("ReactDOM"))&&o.push("React"),(t.includes("angular")||t.includes("ng-"))&&o.push("Angular"),(t.includes("Vue")||t.includes("vue"))&&o.push("Vue");const c=this.determineComplexity(a,n.length,o.length);return{externalCalls:n,usesXrm:i,usesDeprecatedXrmPage:s,frameworks:o,linesOfCode:a,complexity:c}}catch{return{externalCalls:[],usesXrm:!1,usesDeprecatedXrmPage:!1,frameworks:[],linesOfCode:0,complexity:"Low"}}}static countLinesOfCode(t){const r=t.split(`
134
+ `);let n=0;for(const o of r){const i=o.trim();i&&!i.startsWith("//")&&!i.startsWith("/*")&&!i.startsWith("*")&&n++}return n}static detectExternalCalls(t){const r=[],n=new Set,o=/fetch\s*\(\s*['"`]([^'"`]+)['"`](?:\s*,\s*\{[^}]*method\s*:\s*['"`]([^'"`]+)['"`])?/gi;let i;for(;(i=o.exec(t))!==null;){const u=i[1],d=i[2]||"GET";this.isExternalUrl(u)&&!n.has(u)&&(n.add(u),r.push({url:u,domain:this.extractDomain(u),method:d,actionName:"fetch",confidence:"High"}))}const s=/\.open\s*\(\s*['"`]([^'"`]+)['"`]\s*,\s*['"`]([^'"`]+)['"`]/gi;for(;(i=s.exec(t))!==null;){const u=i[1],d=i[2];this.isExternalUrl(d)&&!n.has(d)&&(n.add(d),r.push({url:d,domain:this.extractDomain(d),method:u,actionName:"XMLHttpRequest",confidence:"High"}))}const a=/axios\s*\.\s*(get|post|put|delete|patch)\s*\(\s*['"`]([^'"`]+)['"`]/gi;for(;(i=a.exec(t))!==null;){const u=i[1].toUpperCase(),d=i[2];this.isExternalUrl(d)&&!n.has(d)&&(n.add(d),r.push({url:d,domain:this.extractDomain(d),method:u,actionName:"axios",confidence:"High"}))}const l=/\$\.ajax\s*\(\s*\{[^}]*url\s*:\s*['"`]([^'"`]+)['"`][^}]*(?:method|type)\s*:\s*['"`]([^'"`]+)['"`]/gi;for(;(i=l.exec(t))!==null;){const u=i[1],d=i[2];this.isExternalUrl(u)&&!n.has(u)&&(n.add(u),r.push({url:u,domain:this.extractDomain(u),method:d,actionName:"$.ajax",confidence:"Medium"}))}const c=/https?:\/\/[a-zA-Z0-9\-._~:/?#[\]@!$&'()*+,;=%]+/gi;for(;(i=c.exec(t))!==null;){const u=i[0];this.isExternalUrl(u)&&!n.has(u)&&(n.add(u),r.push({url:u,domain:this.extractDomain(u),method:null,actionName:"URL in string",confidence:"Low"}))}return r}static isExternalUrl(t){const r=["/api/data/","dynamics.com","crm.dynamics.com","Xrm.WebApi"];for(const n of r)if(t.includes(n))return!1;return t.startsWith("http://")||t.startsWith("https://")}static extractDomain(t){try{return new URL(t).hostname}catch{const r=t.match(/https?:\/\/([^/]+)/);return r?r[1]:"unknown"}}static determineComplexity(t,r,n){let o=0;return t>500?o+=2:t>200&&(o+=1),r>3?o+=2:r>0&&(o+=1),n>1&&(o+=1),o>=4?"High":o>=2?"Medium":"Low"}}class xY{constructor(t,r){Oe(this,"client");Oe(this,"onProgress");this.client=t,this.onProgress=r}async getWebResourcesByIds(t){if(t.length===0)return[];try{const n=[];for(let i=0;i<t.length;i+=20){const l=t.slice(i,i+20).map(u=>`webresourceid eq ${u}`).join(" or "),c=await this.client.query("webresourceset",{select:["webresourceid","name","displayname","webresourcetype","content","description","modifiedon","createdon"],filter:l,orderBy:["webresourcetype","name"]});n.push(...c.value),this.onProgress&&this.onProgress(n.length,t.length)}return n.map(i=>this.mapRecordToWebResource(i))}catch(r){throw r}}mapRecordToWebResource(t){const r=this.getTypeName(t.webresourcetype);let n=null,o=0;if(t.content&&(o=t.content.length,this.isTextResource(t.webresourcetype)))try{n=atob(t.content)}catch{n=null}let i=null,s=!1,a=!1;return t.webresourcetype===3&&n&&(i=bY.parse(n,t.name),s=i.externalCalls.length>0,a=i.usesDeprecatedXrmPage),{id:t.webresourceid,name:t.name,displayName:t.displayname||t.name,type:t.webresourcetype,typeName:r,content:n,contentSize:o,description:t.description,analysis:i,modifiedBy:t["_modifiedby_value@OData.Community.Display.V1.FormattedValue"]||"Unknown",modifiedOn:t.modifiedon,createdOn:t.createdon,hasExternalCalls:s,isDeprecated:a}}getTypeName(t){return{1:"HTML",2:"CSS",3:"JavaScript",4:"XML",5:"PNG",6:"JPG",7:"GIF",9:"XSL",10:"ICO",11:"SVG",12:"RESX"}[t]||"Unknown"}isTextResource(t){return[1,2,3,4,9,11,12].includes(t)}}class wY{analyze(t){const r=this.detectFeatures(t.xaml),n=this.calculateComplexity(r,t),o=this.estimateEffort(n),i=this.generateApproach(t,r),s=this.identifyChallenges(r);return{complexity:n,effort:o,approach:i,challenges:s,features:r,documentationLink:"https://learn.microsoft.com/en-us/power-automate/migrate-from-classic-workflows"}}detectFeatures(t){const r=[];return(t.includes("<UpdateEntity")||t.includes("SetState"))&&r.push({feature:"Field Updates",recommendation:"Use Update Record action in Power Automate",migrationPath:"Direct mapping - straightforward"}),(t.includes("<Wait")||t.includes("WaitCondition"))&&r.push({feature:"Wait Conditions",recommendation:"Use Delay Until or Delay actions",migrationPath:"Medium complexity - requires date/time logic"}),t.includes("<CallChildWorkflow")&&r.push({feature:"Child Workflows",recommendation:"Use nested flows or child flows",migrationPath:"Complex - requires restructuring"}),(t.includes("CustomAssemblyActivity")||t.includes("CustomWorkflowActivity"))&&r.push({feature:"Custom Workflow Activities",recommendation:"Requires custom connector or plugin conversion",migrationPath:"Critical - may need code rewrite"}),(t.includes("SendEmail")||t.includes("<Email"))&&r.push({feature:"Send Email",recommendation:"Use Send Email action",migrationPath:"Direct mapping - straightforward"}),t.includes("<CreateEntity")&&r.push({feature:"Create Record",recommendation:"Use Create Record action",migrationPath:"Direct mapping - straightforward"}),(t.includes("<Condition")||t.includes("ConditionalBranch"))&&r.push({feature:"Conditional Logic",recommendation:"Use Condition actions",migrationPath:"Medium complexity - requires expression mapping"}),(t.includes("<Assign")||t.includes("AssignEntity"))&&r.push({feature:"Assign Record",recommendation:"Use Assign Record or Update Record (owner field)",migrationPath:"Direct mapping - straightforward"}),(t.includes("SetState")||t.includes("SetStatus"))&&r.push({feature:"Status Changes",recommendation:"Use Change Status action",migrationPath:"Direct mapping - straightforward"}),(t.includes("SetProcess")||t.includes("SetStage"))&&r.push({feature:"Process/Stage Changes",recommendation:"Use Change Stage or Switch Process actions",migrationPath:"Medium complexity - BPF logic"}),(t.includes("Deprecated")||t.includes("Obsolete"))&&r.push({feature:"Deprecated Features",recommendation:"Find alternative approach in Power Automate",migrationPath:"Critical - no direct equivalent"}),r.length===0&&r.push({feature:"Basic Operations",recommendation:"Standard Power Automate actions",migrationPath:"Low complexity"}),r}calculateComplexity(t,r){return t.some(n=>n.feature.includes("Custom")||n.feature.includes("Deprecated"))?"Critical":t.some(n=>n.feature.includes("Child Workflows")||n.feature.includes("Wait"))||r.mode===1?"High":t.some(n=>n.feature.includes("Conditional")||n.feature.includes("Stage"))&&t.length>3?"Medium":"Low"}estimateEffort(t){switch(t){case"Critical":return"1+ weeks";case"High":return"1-2 days";case"Medium":return"4-8 hours";case"Low":default:return"1-2 hours"}}generateApproach(t,r){const n=[];return n.push("1. Create a new cloud flow in Power Automate"),t.triggerOnCreate||t.triggerOnUpdate||t.triggerOnDelete?n.push(`2. Set trigger: When a row is ${this.getTriggerDescription(t)}`):t.onDemand&&n.push("2. Set trigger: When a flow is run from the command bar"),n.push("3. Add actions for each workflow step:"),r.forEach(o=>{n.push(` - ${o.feature}: ${o.recommendation}`)}),n.push("4. Test the flow thoroughly in development environment"),n.push("5. Deactivate the classic workflow"),n.push("6. Activate the new cloud flow"),n.push("7. Monitor for any issues and adjust as needed"),n.join(`
135
+ `)}getTriggerDescription(t){const r=[];return t.triggerOnCreate&&r.push("added"),t.triggerOnUpdate&&r.push("modified"),t.triggerOnDelete&&r.push("deleted"),r.join(", ")}identifyChallenges(t){const r=[];return t.some(n=>n.feature.includes("Custom"))&&r.push("Custom workflow activities require code migration to custom connectors or plugins"),t.some(n=>n.feature.includes("Wait"))&&r.push("Wait conditions may behave differently in Power Automate (timezone handling, duration limits)"),t.some(n=>n.feature.includes("Child"))&&r.push("Child workflow logic needs to be reorganized as nested or child flows"),t.some(n=>n.feature.includes("Stage"))&&r.push("Business process flow stage changes require careful testing"),r.length===0&&r.push("Standard workflow - migration should be straightforward"),r}}const f2={"":{fill:"#0078D4",stroke:"#004578",text:"#fff"},msft:{fill:"#0078D4",stroke:"#004578",text:"#fff"},microsoft:{fill:"#0078D4",stroke:"#004578",text:"#fff"},mscrm:{fill:"#0078D4",stroke:"#004578",text:"#fff"},contoso:{fill:"#107C10",stroke:"#0B5A08",text:"#fff"},fabrikam:{fill:"#D83B01",stroke:"#8B2500",text:"#fff"},adventure:{fill:"#5C2D91",stroke:"#3B1D5F",text:"#fff"},northwind:{fill:"#E81123",stroke:"#A4000C",text:"#fff"},powerapps:{fill:"#742774",stroke:"#4A1A4A",text:"#fff"},dynamics:{fill:"#002050",stroke:"#001030",text:"#fff"}};function h2(e){const t=e.toLowerCase().trim();if(f2[t])return f2[t];const r=kY(t),n=CY(r,30),o=_Y(r);return{fill:r,stroke:n,text:o}}function kY(e){let t=0;for(let i=0;i<e.length;i++)t=e.charCodeAt(i)+((t<<5)-t),t=t&t;const r=Math.abs(t%360),n=60+Math.abs(t>>8)%20,o=40+Math.abs(t>>16)%20;return SY(r,n,o)}function SY(e,t,r){t/=100,r/=100;const n=(1-Math.abs(2*r-1))*t,o=n*(1-Math.abs(e/60%2-1)),i=r-n/2;let s=0,a=0,l=0;0<=e&&e<60?(s=n,a=o,l=0):60<=e&&e<120?(s=o,a=n,l=0):120<=e&&e<180?(s=0,a=n,l=o):180<=e&&e<240?(s=0,a=o,l=n):240<=e&&e<300?(s=o,a=0,l=n):300<=e&&e<360&&(s=n,a=0,l=o);const c=Math.round((s+i)*255).toString(16).padStart(2,"0"),u=Math.round((a+i)*255).toString(16).padStart(2,"0"),d=Math.round((l+i)*255).toString(16).padStart(2,"0");return`#${c}${u}${d}`}function CY(e,t){const r=e.replace("#",""),n=parseInt(r.substring(0,2),16),o=parseInt(r.substring(2,4),16),i=parseInt(r.substring(4,6),16),s=1-t/100,a=Math.round(n*s),l=Math.round(o*s),c=Math.round(i*s);return`#${a.toString(16).padStart(2,"0")}${l.toString(16).padStart(2,"0")}${c.toString(16).padStart(2,"0")}`}function _Y(e){const t=e.replace("#",""),r=parseInt(t.substring(0,2),16),n=parseInt(t.substring(2,4),16),o=parseInt(t.substring(4,6),16);return(.299*r+.587*n+.114*o)/255>.5?"#000":"#fff"}class BY{constructor(){Oe(this,"direction","TB")}generateMermaidERD(t,r){const n=this.buildPublisherMap(t,r),o=this.generateEntityQuickLinks(t,n),i=[],s=[];t.length>50&&s.push("System has 50+ entities - diagrams are split by publisher for readability");const a=this.generateCoreEntitiesDiagram(t,n);a&&i.push(a);const l=this.generatePublisherDiagrams(t,n);i.push(...l);const c=this.generateLegend(n),u=this.countTotalRelationships(t);return{diagrams:i,legend:c,entityQuickLinks:o,totalEntities:t.length,totalRelationships:u,warnings:s.length>0?s:void 0}}buildPublisherMap(t,r){const n=new Map,o=new Map;for(const i of r)i.customizationprefix&&o.set(i.customizationprefix.toLowerCase(),i);for(const{entity:i}of t){const s=this.extractPublisherPrefix(i.SchemaName),a=s.toLowerCase(),l=o.get(a),c=(l==null?void 0:l.friendlyname)||(s?`${s} (Custom)`:"Microsoft");if(!n.has(a)){const u=h2(s);n.set(a,{prefix:s,name:c,color:u.fill,entities:[]})}n.get(a).entities.push(i.LogicalName)}return n}extractPublisherPrefix(t){const r=t.match(/^([a-z]+)_/i);return r?r[1]:""}generateCoreEntitiesDiagram(t,r){const o=t.map(s=>{var a,l,c;return{entity:s.entity,blueprint:s,relationshipCount:(((a=s.entity.OneToManyRelationships)==null?void 0:a.length)||0)+(((l=s.entity.ManyToOneRelationships)==null?void 0:l.length)||0)+(((c=s.entity.ManyToManyRelationships)==null?void 0:c.length)||0)}}).sort((s,a)=>a.relationshipCount-s.relationshipCount).slice(0,15).map(s=>s.blueprint);return o.length===0?null:this.generateClassDiagramForEntities(o,r,"core-entities","Core Entities",`Top ${o.length} most connected entities (showing only relationships between these entities)`)}generatePublisherDiagrams(t,r){const n=[],o=new Map;for(const i of t){const a=this.extractPublisherPrefix(i.entity.SchemaName).toLowerCase();o.has(a)||o.set(a,[]),o.get(a).push(i)}for(const[i,s]of o){const a=r.get(i);if(!a||s.length===0)continue;const l=this.generateClassDiagramForEntities(s,r,`publisher-${i||"microsoft"}`,`${a.name} Entities`,`${s.length} entities published by ${a.name}`);n.push(l)}return n}generateClassDiagramForEntities(t,r,n,o,i){const s=[];s.push("classDiagram"),s.push(` direction ${this.direction}`),s.push("");const a=new Set(t.map(d=>d.entity.LogicalName.toLowerCase())),l=new Set;let c=0;const u=[];for(const{entity:d}of t){if(d.OneToManyRelationships)for(const p of d.OneToManyRelationships){if(!a.has(p.ReferencingEntity.toLowerCase()))continue;const h=`${d.LogicalName}->${p.ReferencingEntity}:${p.SchemaName}`;if(!l.has(h)){l.add(h);const m=this.sanitizeEntityName(d.LogicalName),g=this.sanitizeEntityName(p.ReferencingEntity);u.push(` ${m} "1" --> "*" ${g}`),c++}}if(d.ManyToManyRelationships)for(const p of d.ManyToManyRelationships){if(!a.has(p.Entity1LogicalName.toLowerCase())||!a.has(p.Entity2LogicalName.toLowerCase()))continue;const h=`${p.Entity1LogicalName}<->${p.Entity2LogicalName}:${p.SchemaName}`,m=`${p.Entity2LogicalName}<->${p.Entity1LogicalName}:${p.SchemaName}`;if(!l.has(h)&&!l.has(m)){l.add(h);const g=this.sanitizeEntityName(p.Entity1LogicalName),y=this.sanitizeEntityName(p.Entity2LogicalName);u.push(` ${g} "*" --> "*" ${y}`),c++}}}s.push(...u),s.push("");for(const{entity:d}of t){const p=this.sanitizeEntityName(d.LogicalName);s.push(` class ${p}`)}s.push(""),s.push(" %% Publisher color coding");for(const[,d]of r){const p=h2(d.prefix),h=t.filter(m=>this.extractPublisherPrefix(m.entity.SchemaName).toLowerCase()===d.prefix.toLowerCase()).map(m=>this.sanitizeEntityName(m.entity.LogicalName));for(const m of h)s.push(` style ${m} fill:${p.fill},stroke:${p.stroke},color:${p.text}`)}return{id:n,title:o,description:i,mermaidDiagram:s.join(`
136
+ `),diagramType:"mermaid-class",direction:this.direction,entityCount:t.length,relationshipCount:c}}sanitizeEntityName(t){return t.replace(/[^a-zA-Z0-9_]/g,"_")}generateLegend(t){const r=[];for(const[,n]of t)r.push({publisherPrefix:n.prefix||"Microsoft",publisherName:n.name,color:n.color,entityCount:n.entities.length,entities:n.entities.sort()});return r.sort((n,o)=>o.entityCount-n.entityCount)}generateEntityQuickLinks(t,r){return t.map(({entity:n,plugins:o,flows:i,businessRules:s})=>{var m,g,y;const a=this.extractPublisherPrefix(n.SchemaName),l=((m=n.Attributes)==null?void 0:m.length)||0,c=o.length,u=i.length,d=s.length,p=c+u+d;let h="Low";return p>=10||l>=100?h="High":(p>=5||l>=50)&&(h="Medium"),{logicalName:n.LogicalName,displayName:((y=(g=n.DisplayName)==null?void 0:g.UserLocalizedLabel)==null?void 0:y.Label)||n.LogicalName,publisherPrefix:a||"Microsoft",fieldCount:l,pluginCount:c,flowCount:u,businessRuleCount:d,complexity:h}}).sort((n,o)=>n.displayName.localeCompare(o.displayName))}countTotalRelationships(t){var o;let r=0;const n=new Set;for(const{entity:i}of t)if(r+=((o=i.OneToManyRelationships)==null?void 0:o.length)||0,i.ManyToManyRelationships)for(const s of i.ManyToManyRelationships){const a=`${s.Entity1LogicalName}<->${s.Entity2LogicalName}:${s.SchemaName}`,l=`${s.Entity2LogicalName}<->${s.Entity1LogicalName}:${s.SchemaName}`;!n.has(a)&&!n.has(l)&&(n.add(a),r++)}return r}}class TY{mapCrossEntityAutomation(t){var o,i,s,a;const r=[],n=new Map;for(const{entity:l}of t)n.set(l.LogicalName.toLowerCase(),((i=(o=l.DisplayName)==null?void 0:o.UserLocalizedLabel)==null?void 0:i.Label)||l.LogicalName);for(const l of t){const c=l.entity.LogicalName,u=((a=(s=l.entity.DisplayName)==null?void 0:s.UserLocalizedLabel)==null?void 0:a.Label)||c;for(const d of l.flows)if(!(!d.definition.dataverseActions||d.definition.dataverseActions.length===0)){for(const p of d.definition.dataverseActions)if(p.targetEntity.toLowerCase()!==c.toLowerCase()){const h=n.get(p.targetEntity.toLowerCase())||p.targetEntity;r.push({sourceEntity:c,sourceEntityDisplayName:u,targetEntity:p.targetEntity,targetEntityDisplayName:h,automationType:"Flow",automationName:d.name,automationId:d.id,operation:p.operation,description:`Flow "${d.name}" ${p.operation.toLowerCase()}s records in ${p.targetEntity} when ${c} is ${this.getTriggerDescription(d.definition.triggerEvent)}`,isAsynchronous:!0})}}for(const d of l.businessRules){const p=this.detectBusinessRuleCrossEntityReferences(d,n);r.push(...p.map(h=>({sourceEntity:c,sourceEntityDisplayName:u,targetEntity:h.targetEntity,targetEntityDisplayName:h.targetDisplayName,automationType:"BusinessRule",automationName:d.name,automationId:d.id,operation:"Read",description:`Business rule "${d.name}" references ${h.targetEntity} via lookup field`,isAsynchronous:!1})))}for(const d of l.plugins){const p=this.detectPluginCrossEntityHints(d,c,n);r.push(...p.map(h=>({sourceEntity:c,sourceEntityDisplayName:u,targetEntity:h.targetEntity,targetEntityDisplayName:h.targetDisplayName,automationType:"Plugin",automationName:d.name,automationId:d.id,operation:h.operation,description:`Plugin "${d.name}" may ${h.operation.toLowerCase()} ${h.targetEntity} (detected from naming)`,isAsynchronous:d.mode===1})))}}return r.sort((l,c)=>{const u=l.sourceEntity.localeCompare(c.sourceEntity);return u!==0?u:l.targetEntity.localeCompare(c.targetEntity)})}getTriggerDescription(t){switch(t){case"Create":return"created";case"Update":return"updated";case"Delete":return"deleted";case"CreateOrUpdate":return"created or updated";default:return"triggered"}}detectBusinessRuleCrossEntityReferences(t,r){return[]}detectPluginCrossEntityHints(t,r,n){var c,u;const o=[],i=((c=t.name)==null?void 0:c.toLowerCase())||"",s=((u=t.description)==null?void 0:u.toLowerCase())||"",a=`${i} ${s}`,l={Create:["create","insert","add"],Update:["update","modify","change","sync"],Delete:["delete","remove"]};for(const[d,p]of n){if(d===r.toLowerCase())continue;if(new RegExp(`\\b${d}\\b`,"i").test(a)){let m="Update";for(const[g,y]of Object.entries(l))if(y.some(v=>a.includes(v))){m=g;break}o.push({targetEntity:d,targetDisplayName:p,operation:m})}}return o}}class NY{aggregateExternalDependencies(t){var o;const r=new Map;for(const i of t.flows)if(!(!i.definition.externalCalls||i.definition.externalCalls.length===0))for(const s of i.definition.externalCalls)this.addOrUpdateEndpoint(r,s.domain,s.url,{type:"Flow",name:i.name,id:i.id,entity:i.entity,mode:"Async",confidence:s.confidence});for(const i of t.webResources)if(!(!((o=i.analysis)!=null&&o.externalCalls)||i.analysis.externalCalls.length===0))for(const s of i.analysis.externalCalls)this.addOrUpdateEndpoint(r,s.domain,s.url,{type:"JavaScript",name:i.name,id:i.id,entity:null,mode:"Client",confidence:s.confidence});const n=Array.from(r.values());for(const i of n)i.riskLevel=this.assessRiskLevel(i.domain),i.riskFactors=this.assessRiskFactors(i);return n.sort((i,s)=>{const a={Unknown:0,Known:1,Trusted:2},l=a[i.riskLevel],c=a[s.riskLevel];return l!==c?l-c:i.domain.localeCompare(s.domain)})}addOrUpdateEndpoint(t,r,n,o){const i=r.toLowerCase();if(!t.has(i))t.set(i,{url:n,domain:i,protocol:n.startsWith("https://")?"https":"http",riskLevel:"Unknown",riskFactors:[],detectedIn:[o],callCount:1});else{const s=t.get(i);s.detectedIn.push(o),s.callCount++,s.protocol==="http"&&n.startsWith("https://")&&(s.protocol="https")}}assessRiskLevel(t){const r=t.toLowerCase(),n=["microsoft.com","dynamics.com","azure.com","office.com","office365.com","microsoftonline.com","windows.net","powerapps.com","powerplatform.com","crm.dynamics.com"];for(const i of n)if(r.endsWith(i)||r===i)return"Trusted";const o=["stripe.com","twilio.com","sendgrid.com","mailchimp.com","slack.com","github.com","googleapis.com","cloudinary.com","auth0.com","okta.com","salesforce.com","hubspot.com","zendesk.com","intercom.io","segment.com","amplitude.com"];for(const i of o)if(r.endsWith(i)||r===i)return"Known";return"Unknown"}assessRiskFactors(t){const r=[];t.protocol==="http"&&r.push({severity:"High",factor:"Insecure Protocol",description:"Endpoint uses HTTP instead of HTTPS, exposing data to interception",recommendation:"Migrate to HTTPS to ensure data is encrypted in transit"}),t.detectedIn.some(s=>s.mode==="Sync")&&r.push({severity:"Critical",factor:"Synchronous External Call",description:"External call is made from synchronous plugin, blocking the database transaction",recommendation:"Move external calls to asynchronous plugins or flows to avoid transaction locks and timeouts"}),t.detectedIn.some(s=>s.mode==="Client")&&r.push({severity:"Medium",factor:"Client-Side Call",description:"External call is made from client-side JavaScript, exposing the endpoint to end users",recommendation:"Consider moving sensitive API calls to server-side (plugins/flows) to protect credentials and reduce CORS issues"}),t.riskLevel==="Unknown"&&r.push({severity:"Medium",factor:"Unknown Endpoint",description:"External endpoint is not from a trusted or known provider",recommendation:"Verify the endpoint is legitimate, review security practices, and document the integration"}),t.callCount>=5&&r.push({severity:"Low",factor:"High Call Frequency",description:`Endpoint is called from ${t.callCount} different automation components`,recommendation:"Consider caching or consolidating calls to reduce external dependencies"});const i={Critical:0,High:1,Medium:2,Low:3};return r.sort((s,a)=>i[s.severity]-i[a.severity])}}class jY{analyzeSolutionDistribution(t,r,n){const o=[];for(const i of t){const s=n?this.countComponentsInSolutionAccurate(i,r,n):this.countComponentsInSolution(i,r),a=this.identifySharedComponents(i,t,r),l=this.identifyDependencies(i,t,r);o.push({solutionName:i.friendlyname,solutionId:i.solutionid,publisher:i.publisherid.friendlyname,version:i.version,isManaged:i.ismanaged,componentCounts:s,sharedComponents:a,dependencies:l})}return o.sort((i,s)=>i.solutionName.localeCompare(s.solutionName))}countComponentsInSolution(t,r){const n={entities:r.entities.length,plugins:r.plugins.length,flows:r.flows.length,businessRules:r.businessRules.length,classicWorkflows:r.classicWorkflows.length,bpfs:r.businessProcessFlows.length,webResources:r.webResources.length,customAPIs:r.customAPIs.length,environmentVariables:r.environmentVariables.length,connectionReferences:r.connectionReferences.length,globalChoices:r.globalChoices.length,total:0};return n.total=Object.entries(n).filter(([o])=>o!=="total").reduce((o,[,i])=>o+i,0),n}countComponentsInSolutionAccurate(t,r,n){const o=t.solutionid.toLowerCase().replace(/[{}]/g,""),i=n.get(o)||new Set,s={entities:r.entities.filter(a=>i.has(a.entity.MetadataId.toLowerCase().replace(/[{}]/g,""))).length,plugins:r.plugins.filter(a=>i.has(a.id.toLowerCase().replace(/[{}]/g,""))).length,flows:r.flows.filter(a=>i.has(a.id.toLowerCase().replace(/[{}]/g,""))).length,businessRules:r.businessRules.filter(a=>i.has(a.id.toLowerCase().replace(/[{}]/g,""))).length,classicWorkflows:r.classicWorkflows.filter(a=>i.has(a.id.toLowerCase().replace(/[{}]/g,""))).length,bpfs:r.businessProcessFlows.filter(a=>i.has(a.id.toLowerCase().replace(/[{}]/g,""))).length,webResources:r.webResources.filter(a=>i.has(a.id.toLowerCase().replace(/[{}]/g,""))).length,customAPIs:r.customAPIs.filter(a=>i.has(a.id.toLowerCase().replace(/[{}]/g,""))).length,environmentVariables:r.environmentVariables.filter(a=>i.has(a.id.toLowerCase().replace(/[{}]/g,""))).length,connectionReferences:r.connectionReferences.filter(a=>i.has(a.id.toLowerCase().replace(/[{}]/g,""))).length,globalChoices:r.globalChoices.filter(a=>i.has(a.id.toLowerCase().replace(/[{}]/g,""))).length,total:0};return s.total=Object.entries(s).filter(([a])=>a!=="total").reduce((a,[,l])=>a+l,0),s}identifySharedComponents(t,r,n){return[]}identifyDependencies(t,r,n){const o=[],i=new Map;for(const a of r)i.set(a.solutionid,a.publisherid.uniquename);const s=t.publisherid.uniquename;for(const a of n.entities){const l=this.extractPublisherPrefix(a.entity.SchemaName);if(l&&l!==s){const c=r.find(u=>u.publisherid.uniquename===l);if(c&&c.solutionid!==t.solutionid){const u=o.find(d=>d.dependsOnSolution===c.friendlyname);u?u.componentReferences.push(a.entity.LogicalName):o.push({dependsOnSolution:c.friendlyname,reason:"References entities from this solution",componentReferences:[a.entity.LogicalName]})}}if(a.entity.ManyToOneRelationships)for(const c of a.entity.ManyToOneRelationships){const u=this.extractPublisherFromLogicalName(c.ReferencedEntity);if(u&&u!==s){const d=r.find(p=>p.publisherid.uniquename===u);if(d&&d.solutionid!==t.solutionid){const p=o.find(m=>m.dependsOnSolution===d.friendlyname),h=`${a.entity.LogicalName} → ${c.ReferencedEntity}`;p?p.componentReferences.includes(h)||p.componentReferences.push(h):o.push({dependsOnSolution:d.friendlyname,reason:"Has lookup relationships to entities in this solution",componentReferences:[h]})}}}}return o}extractPublisherPrefix(t){const r=t.match(/^([a-z]+)_/i);return r?r[1]:null}extractPublisherFromLogicalName(t){const r=t.match(/^([a-z]+)_/i);return r?r[1]:null}}const zY=new Set(["createdon","createdby","createdbyname","createdbyyominame","createdonbehalfby","createdonbehalfbyname","createdonbehalfbyyominame","modifiedon","modifiedby","modifiedbyname","modifiedbyyominame","modifiedonbehalfby","modifiedonbehalfbyname","modifiedonbehalfbyyominame","ownerid","owneridname","owneridtype","owneridyominame","owningbusinessunit","owningbusinessunitname","owninguser","owningteam","statecode","statuscode","importsequencenumber","overriddencreatedon","timezoneruleversionnumber","utcconversiontimezonecode","versionnumber","exchangerate","transactioncurrencyid","transactioncurrencyidname"]);function EY(e,t=!0){return t?e.filter(r=>{var o;const n=((o=r.LogicalName)==null?void 0:o.toLowerCase())||"";return!zY.has(n)}):e}class RY{constructor(t,r,n){Oe(this,"client");Oe(this,"options");Oe(this,"scope");Oe(this,"publishers",[]);Oe(this,"solutions",[]);Oe(this,"latestResult",null);this.client=t,this.scope=r,this.options=n}async generate(){const t=new Date,r=[];try{this.reportProgress({phase:"discovering",entityName:"",current:0,total:0,message:"Discovering components in selected scope..."});const{inventory:n,workflowInventory:o,entities:i}=await this.discoverComponents();this.isInventoryEmpty(n)&&r.push("No components found in selected scope");const s=this.buildDiscoveryMessage(n,o);this.reportProgress({phase:"discovering",entityName:"",current:0,total:0,message:s});const a=await this.processEntities(i,n.attributeIds);i.length===0&&r.push("No entities found in selected scope");const l=await this.processPlugins(n.pluginIds),c=this.groupPluginsByEntity(l);n.pluginIds.length===0&&r.push("No plugins found");const u=await this.processFlows(o.flowIds),d=this.groupFlowsByEntity(u);o.flowIds.length===0&&r.push("No flows found");const p=await this.processBusinessRules(o.businessRuleIds),h=this.groupBusinessRulesByEntity(p);o.businessRuleIds.length===0&&r.push("No business rules found");const m=await this.processClassicWorkflows(o.classicWorkflowIds),g=this.groupClassicWorkflowsByEntity(m);o.classicWorkflowIds.length>0&&r.push(`⚠️ ${o.classicWorkflowIds.length} classic workflow(s) detected - migration to Power Automate recommended`);const y=await this.processBusinessProcessFlows(o.businessProcessFlowIds),v=this.groupBusinessProcessFlowsByEntity(y),b=await this.processWebResources(n.webResourceIds),x=this.groupWebResourcesByType(b);n.webResourceIds.length===0&&r.push("No web resources found");const k=await this.processCustomAPIs(n.customApiIds),S=await this.processEnvironmentVariables(n.environmentVariableIds),_=await this.processConnectionReferences(n.connectionReferenceIds),N=await this.processGlobalChoices(n.globalChoiceIds),z=await this.processCustomConnectors(n.customConnectorIds),F=await this.processSecurityRoles(n.securityRoleIds),{profiles:I,fieldSecurityByEntity:H}=await this.processFieldSecurityProfiles(n.fieldSecurityProfileIds,i.map(ge=>ge.LogicalName)),{attributeMaskingRules:A,columnSecurityProfiles:P}=await this.processColumnSecurity(),C=await this.processForms(i.map(ge=>ge.LogicalName)),R=this.groupFormsByEntity(C);for(const ge of a){const _e=ge.entity.LogicalName;ge.plugins=c.get(_e)||[],ge.flows=d.get(_e)||[],ge.businessRules=h.get(_e)||[],ge.forms=R.get(_e)||[];const we=H.get(_e);we&&(ge.fieldSecurity=we)}this.reportProgress({phase:"discovering",entityName:"",current:0,total:4,message:"Generating ERD and analyzing system architecture..."});const D=new BY().generateMermaidERD(a,this.publishers);this.reportProgress({phase:"discovering",entityName:"",current:1,total:4,message:"ERD generated"});const $=new TY().mapCrossEntityAutomation(a);this.reportProgress({phase:"discovering",entityName:"",current:2,total:4,message:"Cross-entity automation mapped"});const X=new NY,V={metadata:{generatedAt:t,environment:this.client.getEnvironmentUrl(),scope:{type:this.scope.type,description:this.getScopeDescription()},entityCount:i.length},entities:a,summary:{totalEntities:0,totalPlugins:0,totalPluginPackages:0,totalFlows:0,totalBusinessRules:0,totalClassicWorkflows:0,totalBusinessProcessFlows:0,totalCustomAPIs:0,totalEnvironmentVariables:0,totalConnectionReferences:0,totalGlobalChoices:0,totalCustomConnectors:0,totalSecurityRoles:0,totalFieldSecurityProfiles:0,totalAttributeMaskingRules:0,totalColumnSecurityProfiles:0,totalAttributes:0,totalWebResources:0,totalCanvasApps:0,totalCustomPages:0},plugins:l,pluginsByEntity:c,flows:u,flowsByEntity:d,businessRules:p,businessRulesByEntity:h,classicWorkflows:m,classicWorkflowsByEntity:g,businessProcessFlows:y,businessProcessFlowsByEntity:v,customAPIs:k,environmentVariables:S,connectionReferences:_,globalChoices:N,customConnectors:z,webResources:b,webResourcesByType:x},L=X.aggregateExternalDependencies(V);this.reportProgress({phase:"discovering",entityName:"",current:3,total:4,message:"External dependencies aggregated"});let Y;this.scope.type==="solution"&&this.solutions.length>0&&(Y=new jY().analyzeSolutionDistribution(this.solutions,V,n.solutionComponentMap)),this.reportProgress({phase:"discovering",entityName:"",current:4,total:4,message:"Solution distribution analyzed"});const ee={totalEntities:a.length,totalPlugins:n.pluginIds.length,totalPluginPackages:n.pluginPackageIds.length,totalFlows:o.flowIds.length,totalBusinessRules:o.businessRuleIds.length,totalClassicWorkflows:o.classicWorkflowIds.length,totalBusinessProcessFlows:o.businessProcessFlowIds.length,totalCustomAPIs:n.customApiIds.length,totalEnvironmentVariables:n.environmentVariableIds.length,totalConnectionReferences:n.connectionReferenceIds.length,totalGlobalChoices:n.globalChoiceIds.length,totalSecurityRoles:F.length,totalFieldSecurityProfiles:I.length,totalAttributeMaskingRules:A.length,totalColumnSecurityProfiles:P.length,totalCustomConnectors:n.customConnectorIds.length,totalAttributes:a.reduce((ge,_e)=>{var we;return ge+(((we=_e.entity.Attributes)==null?void 0:we.length)||0)},0),totalWebResources:n.webResourceIds.length,totalCanvasApps:n.canvasAppIds.length,totalCustomPages:n.customPageIds.length};this.reportProgress({phase:"complete",entityName:"",current:i.length,total:i.length,message:"Blueprint generation complete!"});const te={metadata:{generatedAt:t,environment:this.client.getEnvironmentUrl(),scope:{type:this.scope.type,description:this.getScopeDescription()},entityCount:i.length},entities:a,summary:ee,plugins:l,pluginsByEntity:c,flows:u,flowsByEntity:d,businessRules:p,businessRulesByEntity:h,classicWorkflows:m,classicWorkflowsByEntity:g,businessProcessFlows:y,businessProcessFlowsByEntity:v,customAPIs:k,environmentVariables:S,connectionReferences:_,globalChoices:N,customConnectors:z,webResources:b,webResourcesByType:x,erd:D,crossEntityLinks:$,externalEndpoints:L,solutionDistribution:Y,securityRoles:F.length>0?F:void 0,fieldSecurityProfiles:I.length>0?I:void 0,attributeMaskingRules:A.length>0?A:void 0,columnSecurityProfiles:P.length>0?P:void 0};return this.latestResult=te,te}catch(n){throw new Error(`Blueprint generation failed: ${n instanceof Error?n.message:"Unknown error"}`)}}async discoverComponents(){const t=new nY(this.client),r=new G3(this.client);if(this.publishers=await r.getPublishers(),this.scope.type==="solution"&&this.scope.solutionIds){const n=new oY(this.client),s=(await new X3(this.client).getSolutions()).filter(p=>{var h;return(h=this.scope.solutionIds)==null?void 0:h.includes(p.solutionid)}),a=s.map(p=>p.uniquename);this.solutions=s;const l=await n.discoverComponents(this.scope.solutionIds,a),c=await n.classifyWorkflows(l.workflowIds,l.solutionComponentMap,l.componentToSolutions),d=a.some(p=>p.toLowerCase()==="default")?await t.getAllEntities(this.scope.includeSystem):await t.getEntitiesByIds(l.entityIds);return{inventory:l,workflowInventory:c,entities:d}}else if(this.scope.type==="publisher"&&this.scope.publisherPrefixes){const n=await t.getEntitiesByPublisher(this.scope.publisherPrefixes);return{inventory:{entityIds:n.map(s=>s.MetadataId),attributeIds:[],pluginIds:[],pluginPackageIds:[],workflowIds:[],webResourceIds:[],canvasAppIds:[],customPageIds:[],connectionReferenceIds:[],customApiIds:[],environmentVariableIds:[],globalChoiceIds:[],customConnectorIds:[],securityRoleIds:[],fieldSecurityProfileIds:[],componentToSolutions:new Map,solutionComponentMap:new Map,componentTypes:new Map},workflowInventory:{flowIds:[],businessRuleIds:[],classicWorkflowIds:[],businessProcessFlowIds:[]},entities:n}}throw new Error("Invalid scope configuration")}async processEntities(t,r){var i,s,a;const n=[],o=t.length;for(let l=0;l<t.length;l++){if((i=this.options.signal)!=null&&i.aborted)throw new Error("Blueprint generation cancelled");const c=t[l],u=l+1,d=((a=(s=c.DisplayName)==null?void 0:s.UserLocalizedLabel)==null?void 0:a.Label)||c.LogicalName;this.reportProgress({phase:"schema",entityName:c.LogicalName,current:u,total:o,message:`Processing ${d} (${u}/${o})...`});const h=await new iY(this.client).getEntitySchema(c.LogicalName),m=c.IsCustomEntity;h.Attributes&&!m&&r.length>0&&(h.Attributes=h.Attributes.filter(g=>{if(!g.MetadataId)return!1;const y=this.normalizeGuid(g.MetadataId);return r.some(v=>this.normalizeGuid(v)===y)})),this.scope.excludeSystemFields&&h.Attributes&&(h.Attributes=EY(h.Attributes,!0)),n.push({entity:h,plugins:[],flows:[],businessRules:[],forms:[]}),await this.delay(100)}return n}isInventoryEmpty(t){return t.entityIds.length===0&&t.pluginIds.length===0&&t.workflowIds.length===0&&t.webResourceIds.length===0&&t.canvasAppIds.length===0&&t.customPageIds.length===0&&t.connectionReferenceIds.length===0&&t.customApiIds.length===0&&t.environmentVariableIds.length===0}buildDiscoveryMessage(t,r){const n=[];return t.entityIds.length>0&&n.push(`${t.entityIds.length} entities`),t.pluginIds.length>0&&n.push(`${t.pluginIds.length} plugins`),r.flowIds.length>0&&n.push(`${r.flowIds.length} flows`),r.businessRuleIds.length>0&&n.push(`${r.businessRuleIds.length} business rules`),t.webResourceIds.length>0&&n.push(`${t.webResourceIds.length} web resources`),t.canvasAppIds.length>0&&n.push(`${t.canvasAppIds.length} canvas apps`),n.length===0?"No components found in selected scope":`Found: ${n.join(", ")}`}getScopeDescription(){return this.scope.type==="publisher"&&this.scope.publisherPrefixes?`Publishers: ${this.scope.publisherPrefixes.join(", ")}`:this.scope.type==="solution"&&this.scope.solutionIds?`Solutions: ${this.scope.solutionIds.length} selected`:"Unknown scope"}reportProgress(t){this.options.onProgress&&this.options.onProgress(t)}async processPlugins(t){if(t.length===0)return[];try{this.reportProgress({phase:"plugins",entityName:"",current:0,total:t.length,message:`Documenting ${t.length} plugin${t.length>1?"s":""}...`});const n=await new sY(this.client,(o,i)=>{this.reportProgress({phase:"plugins",entityName:"",current:o,total:i,message:`Documenting plugins (${o}/${i})...`})}).getPluginsByIds(t);return this.reportProgress({phase:"plugins",entityName:"",current:n.length,total:n.length,message:"Plugins documented"}),n}catch(r){throw console.error("Error processing plugins:",r instanceof Error?r.message:"Unknown error"),r}}async processFlows(t){if(t.length===0)return[];try{this.reportProgress({phase:"flows",entityName:"",current:0,total:t.length,message:`Documenting ${t.length} flow${t.length>1?"s":""}...`});const n=await new lY(this.client,(o,i)=>{this.reportProgress({phase:"flows",entityName:"",current:o,total:i,message:`Documenting flows (${o}/${i})...`})}).getFlowsByIds(t);return this.reportProgress({phase:"flows",entityName:"",current:n.length,total:n.length,message:"Flows documented"}),n}catch(r){throw console.error("Error processing flows:",r instanceof Error?r.message:"Unknown error"),r}}groupFlowsByEntity(t){const r=new Map;for(const n of t){if(!n.entity)continue;const o=n.entity.toLowerCase();r.has(o)||r.set(o,[]),r.get(o).push(n)}for(const[,n]of r)n.sort((o,i)=>o.name.localeCompare(i.name));return r}groupPluginsByEntity(t){const r=new Map;for(const n of t){const o=n.entity.toLowerCase();r.has(o)||r.set(o,[]),r.get(o).push(n)}for(const[,n]of r)n.sort((o,i)=>o.stage!==i.stage?o.stage-i.stage:o.rank-i.rank);return r}async processBusinessRules(t){if(t.length===0)return[];try{this.reportProgress({phase:"business-rules",entityName:"",current:0,total:t.length,message:`Documenting ${t.length} business rule${t.length>1?"s":""}...`});const n=await new uY(this.client,(o,i)=>{this.reportProgress({phase:"business-rules",entityName:"",current:o,total:i,message:`Documenting business rules (${o}/${i})...`})}).getBusinessRulesByIds(t);return this.reportProgress({phase:"business-rules",entityName:"",current:n.length,total:n.length,message:"Business rules documented"}),n}catch(r){throw console.error("Error processing business rules:",r instanceof Error?r.message:"Unknown error"),r}}async processWebResources(t){if(t.length===0)return[];try{this.reportProgress({phase:"discovering",entityName:"",current:0,total:t.length,message:`Analyzing ${t.length} web resource${t.length>1?"s":""}...`});const n=await new xY(this.client,(o,i)=>{this.reportProgress({phase:"discovering",entityName:"",current:o,total:i,message:`Analyzing web resources (${o}/${i})...`})}).getWebResourcesByIds(t);return this.reportProgress({phase:"discovering",entityName:"",current:n.length,total:n.length,message:"Web resources analyzed"}),n}catch(r){throw console.error("Error processing web resources:",r instanceof Error?r.message:"Unknown error"),r}}groupBusinessRulesByEntity(t){const r=new Map;for(const n of t){const o=n.entity.toLowerCase();r.has(o)||r.set(o,[]),r.get(o).push(n)}for(const[,n]of r)n.sort((o,i)=>o.name.localeCompare(i.name));return r}async processClassicWorkflows(t){if(t.length===0)return[];console.warn(`⚠️ Found ${t.length} classic workflow(s) - migration to Power Automate is recommended`);try{this.reportProgress({phase:"discovering",entityName:"",current:0,total:t.length,message:`⚠️ Documenting ${t.length} classic workflow(s) (migration recommended)...`});const n=await new fY(this.client,(i,s)=>{this.reportProgress({phase:"discovering",entityName:"",current:i,total:s,message:`⚠️ Documenting classic workflows (${i}/${s})...`})}).getClassicWorkflowsByIds(t),o=new wY;for(const i of n)i.migrationRecommendation=o.analyze(i);return this.reportProgress({phase:"discovering",entityName:"",current:n.length,total:n.length,message:"Classic workflows documented with migration recommendations"}),n}catch(r){return console.error("Error processing classic workflows:",r instanceof Error?r.message:"Unknown error"),[]}}groupClassicWorkflowsByEntity(t){const r=new Map;for(const n of t){const o=n.entity.toLowerCase();r.has(o)||r.set(o,[]),r.get(o).push(n)}for(const[,n]of r)n.sort((o,i)=>o.name.localeCompare(i.name));return r}async processBusinessProcessFlows(t){if(t.length===0)return[];try{this.reportProgress({phase:"discovering",entityName:"",current:0,total:t.length,message:`📊 Documenting ${t.length} Business Process Flow(s)...`});const{BusinessProcessFlowDiscovery:r}=await Ke(async()=>{const{BusinessProcessFlowDiscovery:i}=await import("./BusinessProcessFlowDiscovery-BSDgBoIA.js");return{BusinessProcessFlowDiscovery:i}},[],import.meta.url),o=await new r(this.client,(i,s)=>{this.reportProgress({phase:"discovering",entityName:"",current:i,total:s,message:`📊 Documenting Business Process Flows (${i}/${s})...`})}).getBusinessProcessFlowsByIds(t);return this.reportProgress({phase:"discovering",entityName:"",current:t.length,total:t.length,message:`📊 Documented ${o.length} Business Process Flow(s)`}),o}catch(r){throw console.error("Error processing Business Process Flows:",r instanceof Error?r.message:"Unknown error"),r}}groupBusinessProcessFlowsByEntity(t){const r=new Map;for(const n of t){const o=n.primaryEntity.toLowerCase();r.has(o)||r.set(o,[]),r.get(o).push(n)}for(const[,n]of r)n.sort((o,i)=>o.name.localeCompare(i.name));return r}async processCustomAPIs(t){if(t.length===0)return[];try{this.reportProgress({phase:"discovering",entityName:"",current:0,total:t.length,message:`🔧 Documenting ${t.length} Custom API(s)...`});const{CustomAPIDiscovery:r}=await Ke(async()=>{const{CustomAPIDiscovery:i}=await import("./CustomAPIDiscovery-BiQS_ENt.js");return{CustomAPIDiscovery:i}},[],import.meta.url),o=await new r(this.client,(i,s)=>{this.reportProgress({phase:"discovering",entityName:"",current:i,total:s,message:`🔧 Documenting Custom APIs (${i}/${s})...`})}).getCustomAPIsByIds(t);return this.reportProgress({phase:"discovering",entityName:"",current:t.length,total:t.length,message:`🔧 Documented ${o.length} Custom API(s)`}),o}catch(r){throw console.error("Error processing Custom APIs:",r instanceof Error?r.message:"Unknown error"),r}}async processEnvironmentVariables(t){if(t.length===0)return[];try{this.reportProgress({phase:"discovering",entityName:"",current:0,total:t.length,message:`🌍 Documenting ${t.length} Environment Variable(s)...`});const{EnvironmentVariableDiscovery:r}=await Ke(async()=>{const{EnvironmentVariableDiscovery:i}=await import("./EnvironmentVariableDiscovery-DG_tXCcQ.js");return{EnvironmentVariableDiscovery:i}},[],import.meta.url),o=await new r(this.client,(i,s)=>{this.reportProgress({phase:"discovering",entityName:"",current:i,total:s,message:`🌍 Documenting Environment Variables (${i}/${s})...`})}).getEnvironmentVariablesByIds(t);return this.reportProgress({phase:"discovering",entityName:"",current:t.length,total:t.length,message:`🌍 Documented ${o.length} Environment Variable(s)`}),o}catch(r){throw console.error("Error processing Environment Variables:",r instanceof Error?r.message:"Unknown error"),r}}async processConnectionReferences(t){if(t.length===0)return[];try{this.reportProgress({phase:"discovering",entityName:"",current:0,total:t.length,message:`🔗 Documenting ${t.length} Connection Reference(s)...`});const{ConnectionReferenceDiscovery:r}=await Ke(async()=>{const{ConnectionReferenceDiscovery:i}=await import("./ConnectionReferenceDiscovery-DFTQuo-S.js");return{ConnectionReferenceDiscovery:i}},[],import.meta.url);return await new r(this.client,(i,s)=>{this.reportProgress({phase:"discovering",entityName:"",current:i,total:s,message:`🔗 Documenting Connection References (${i}/${s})...`})}).getConnectionReferencesByIds(t)}catch(r){throw console.error("Error processing Connection References:",r instanceof Error?r.message:"Unknown error"),r}}async processGlobalChoices(t){if(t.length===0)return[];try{this.reportProgress({phase:"discovering",entityName:"",current:0,total:t.length,message:`📋 Documenting ${t.length} Global Choice(s)...`});const{GlobalChoiceDiscovery:r}=await Ke(async()=>{const{GlobalChoiceDiscovery:i}=await import("./GlobalChoiceDiscovery-nivz9yGs.js");return{GlobalChoiceDiscovery:i}},[],import.meta.url);return await new r(this.client).discoverGlobalChoices(t)}catch(r){throw console.error("Error processing Global Choices:",r instanceof Error?r.message:"Unknown error"),r}}async processCustomConnectors(t){if(t.length===0)return[];try{this.reportProgress({phase:"discovering",entityName:"",current:0,total:t.length,message:`🔌 Documenting ${t.length} Custom Connector(s)...`});const{CustomConnectorDiscovery:r}=await Ke(async()=>{const{CustomConnectorDiscovery:i}=await import("./CustomConnectorDiscovery-TvNjElP3.js");return{CustomConnectorDiscovery:i}},[],import.meta.url);return await new r(this.client,(i,s)=>{this.reportProgress({phase:"discovering",entityName:"",current:i,total:s,message:`🔌 Documenting Custom Connectors (${i}/${s})...`})}).getConnectorsByIds(t)}catch(r){throw console.error("Error processing Custom Connectors:",r instanceof Error?r.message:"Unknown error"),r}}async processSecurityRoles(t){if(t.length===0)return[];try{this.reportProgress({phase:"discovering",entityName:"",current:0,total:t.length,message:`🔒 Documenting ${t.length} security role(s)...`});const r=new mY(this.client,(s,a)=>{this.reportProgress({phase:"discovering",entityName:"",current:s,total:a,message:`🔒 Documenting security roles (${s}/${a})...`})}),o=(await r.getSecurityRoles()).filter(s=>t.some(a=>this.normalizeGuid(a)===this.normalizeGuid(s.roleid))),i=[];for(let s=0;s<o.length;s++){const a=await r.getSecurityRoleDetail(o[s]);i.push(a),this.reportProgress({phase:"discovering",entityName:"",current:s+1,total:o.length,message:`🔒 Processing security role: ${o[s].name}`})}return i}catch(r){throw console.error("Error processing security roles:",r instanceof Error?r.message:"Unknown error"),r}}async processFieldSecurityProfiles(t,r){if(t.length===0)return{profiles:[],fieldSecurityByEntity:new Map};try{this.reportProgress({phase:"discovering",entityName:"",current:0,total:t.length,message:`🛡️ Documenting ${t.length} field security profile(s)...`});const n=new hY(this.client),i=(await n.getFieldSecurityProfiles()).filter(a=>t.some(l=>this.normalizeGuid(l)===this.normalizeGuid(a.fieldsecurityprofileid))),s=await n.getEntitiesFieldSecurity(r);return this.reportProgress({phase:"discovering",entityName:"",current:t.length,total:t.length,message:`🛡️ Documented ${i.length} field security profile(s)`}),{profiles:i,fieldSecurityByEntity:s}}catch(n){throw console.error("Error processing field security profiles:",n instanceof Error?n.message:"Unknown error"),n}}async processColumnSecurity(){try{this.reportProgress({phase:"discovering",entityName:"",current:0,total:2,message:"🎭 Discovering attribute masking and column security..."});const{ColumnSecurityDiscovery:t}=await Ke(async()=>{const{ColumnSecurityDiscovery:i}=await import("./ColumnSecurityDiscovery-B3yVn0LZ.js");return{ColumnSecurityDiscovery:i}},[],import.meta.url),r=new t(this.client),n=await r.getAttributeMaskingRules();this.reportProgress({phase:"discovering",entityName:"",current:1,total:2,message:`🎭 Found ${n.length} attribute masking rule(s)`});const o=await r.getColumnSecurityProfiles();return this.reportProgress({phase:"discovering",entityName:"",current:2,total:2,message:"🎭 Column security discovery complete"}),{attributeMaskingRules:n,columnSecurityProfiles:o}}catch(t){return console.error("Error processing column security:",t instanceof Error?t.message:"Unknown error"),{attributeMaskingRules:[],columnSecurityProfiles:[]}}}async processForms(t){if(t.length===0)return[];try{this.reportProgress({phase:"discovering",entityName:"",current:0,total:t.length,message:"Discovering forms and JavaScript handlers..."});const n=await new dY(this.client).getFormsForEntities(t);return this.reportProgress({phase:"discovering",entityName:"",current:n.length,total:n.length,message:"Forms and JavaScript handlers discovered"}),n}catch(r){return console.error("Error processing forms:",r instanceof Error?r.message:"Unknown error"),[]}}groupFormsByEntity(t){const r=new Map;for(const n of t){const o=n.entity.toLowerCase();r.has(o)||r.set(o,[]),r.get(o).push(n)}for(const[,n]of r)n.sort((o,i)=>o.name.localeCompare(i.name));return r}groupWebResourcesByType(t){const r=new Map;for(const n of t){const o=n.typeName;r.has(o)||r.set(o,[]),r.get(o).push(n)}for(const[,n]of r)n.sort((o,i)=>o.name.localeCompare(i.name));return r}normalizeGuid(t){return t.toLowerCase().replace(/[{}]/g,"")}delay(t){return new Promise(r=>setTimeout(r,t))}async exportAsJson(){const{JsonReporter:t}=await Ke(async()=>{const{JsonReporter:n}=await import("./JsonReporter-BqDJorX-.js");return{JsonReporter:n}},[],import.meta.url);return new t().generate(this.latestResult)}async exportAsMarkdown(){const{MarkdownReporter:t}=await Ke(async()=>{const{MarkdownReporter:n}=await import("./MarkdownReporter-B1FEpc6-.js");return{MarkdownReporter:n}},[],import.meta.url);return new t().generate(this.latestResult)}async exportAsHtml(){const{HtmlReporter:t}=await Ke(async()=>{const{HtmlReporter:n}=await import("./HtmlReporter-Cu9NwA6b.js");return{HtmlReporter:n}},[],import.meta.url);return new t().generate(this.latestResult)}async exportAsZip(t){const{ZipPackager:r}=await Ke(async()=>{const{ZipPackager:a}=await import("./ZipPackager-B4xx8LbF.js");return{ZipPackager:a}},[],import.meta.url),n=new r;let o,i,s;return t.includes("json")&&(o=await this.exportAsJson()),t.includes("html")&&(i=await this.exportAsHtml()),t.includes("markdown")&&(s=await this.exportAsMarkdown()),n.packageBlueprint(s,o,i)}async exportAll(){return this.exportAsZip(["markdown","json","html"])}}class p2{calculatePipeline(t,r,n,o,i,s=[]){const a=n.filter(g=>g.entity===t&&g.message.toLowerCase()===r.toLowerCase()),l=o.filter(g=>g.entity!==t?!1:r==="Create"&&(g.definition.triggerEvent==="Create"||g.definition.triggerEvent==="CreateOrUpdate")||r==="Update"&&(g.definition.triggerEvent==="Update"||g.definition.triggerEvent==="CreateOrUpdate")||r==="Delete"&&g.definition.triggerEvent==="Delete"),c=i.filter(g=>g.entity===t),u=this.buildClientSideSteps(c,s,r),d=this.buildServerSideSteps(a,l,c),p=this.buildAsyncSteps(a,l),h=u.length+d.preValidation.length+d.preOperation.length+d.mainOperation.length+d.postOperation.length+p.length,m=this.checkExternalCalls(u,d,p);return{event:r,clientSide:u,serverSideSync:d,serverSideAsync:p,totalSteps:h,hasExternalCalls:m,performanceRisks:[]}}buildClientSideSteps(t,r,n){const o=[];return t.filter(i=>i.state==="Active"&&i.scope!=="Entity").forEach(i=>{o.push({order:0,type:"BusinessRule",name:i.name,id:i.id,mode:"Client",hasExternalCall:!1,description:i.description||void 0})}),r.forEach(i=>{i.eventHandlers.filter(s=>s.enabled).forEach(s=>{if((n==="Create"||n==="Update")&&(s.event==="OnLoad"||s.event==="OnSave"||s.event==="OnChange")){const l=s.attribute?`${s.functionName} (${s.attribute})`:s.functionName;o.push({order:0,type:"JavaScript",name:l,id:`${i.id}-${s.event}-${s.functionName}`,mode:"Client",hasExternalCall:!1,description:`${s.event} handler - ${s.libraryName}`})}})}),o.forEach((i,s)=>i.order=s+1),o}buildServerSideSteps(t,r,n){const o=[...t].sort((c,u)=>c.stage!==u.stage?c.stage-u.stage:c.rank-u.rank),i=[],s=[],a=[],l=[];return o.filter(c=>c.mode===0).forEach(c=>{const u={order:0,type:"Plugin",name:c.name||c.typeName,id:c.id,stage:c.stage,rank:c.rank,mode:"Sync",hasExternalCall:!1,externalEndpoints:void 0,description:c.description||void 0};switch(c.stage){case 10:i.push(u);break;case 20:s.push(u);break;case 30:a.push(u);break;case 40:l.push(u);break}}),r.filter(c=>c.state==="Active"&&c.scope!==50).forEach(c=>{l.push({order:0,type:"Flow",name:c.name,id:c.id,mode:"Sync",hasExternalCall:c.hasExternalCalls,externalEndpoints:c.definition.externalCalls.map(u=>u.url),description:c.description||void 0})}),n.filter(c=>c.state==="Active"&&c.scope==="Entity").forEach(c=>{l.push({order:0,type:"BusinessRule",name:c.name,id:c.id,mode:"Sync",hasExternalCall:!1,description:c.description||void 0})}),i.forEach((c,u)=>c.order=u+1),s.forEach((c,u)=>c.order=u+1),a.forEach((c,u)=>c.order=u+1),l.forEach((c,u)=>c.order=u+1),{preValidation:i,preOperation:s,mainOperation:a,postOperation:l}}buildAsyncSteps(t,r){const n=[];return t.filter(o=>o.mode===1).forEach(o=>{n.push({order:n.length+1,type:"Plugin",name:o.name||o.typeName,id:o.id,stage:o.stage,rank:o.rank,mode:"Async",hasExternalCall:!1,externalEndpoints:void 0,description:o.description||void 0})}),r.filter(o=>o.state==="Active"&&o.scope===50).forEach(o=>{n.push({order:n.length+1,type:"Flow",name:o.name,id:o.id,mode:"Async",hasExternalCall:o.hasExternalCalls,externalEndpoints:o.definition.externalCalls.map(i=>i.url),description:o.description||void 0})}),n}checkExternalCalls(t,r,n){return[...t,...r.preValidation,...r.preOperation,...r.mainOperation,...r.postOperation,...n].some(i=>i.hasExternalCall)}getEntityEvents(t,r,n,o,i=[]){const s=new Set;return r.filter(c=>c.entity===t).forEach(c=>s.add(c.message)),n.filter(c=>c.entity===t).forEach(c=>{c.definition.triggerEvent==="Create"&&s.add("Create"),c.definition.triggerEvent==="Update"&&s.add("Update"),c.definition.triggerEvent==="Delete"&&s.add("Delete"),c.definition.triggerEvent==="CreateOrUpdate"&&(s.add("Create"),s.add("Update"))}),o.filter(c=>c.entity===t).length>0&&(s.add("Create"),s.add("Update")),i.filter(c=>c.entity===t).some(c=>c.eventHandlers.length>0)&&(s.add("Create"),s.add("Update")),Array.from(s).sort()}}class AY{analyzePerformanceRisks(t){const r=[];return this.analyzeClientSideRisks(t.clientSide,r),this.analyzeServerSideSyncRisks(t.serverSideSync,r),this.analyzeAsyncRisks(t.serverSideAsync,r),this.analyzeComplexityRisks(t,r),r.sort((n,o)=>this.getSeverityWeight(o.severity)-this.getSeverityWeight(n.severity))}analyzeClientSideRisks(t,r){t.length>5&&r.push({severity:"Medium",step:t[0],reason:`${t.length} business rules executing on client side`,recommendation:"Consider consolidating business rules to reduce client-side processing"}),t.length>10&&r.push({severity:"High",step:t[0],reason:`Excessive client-side automation: ${t.length} business rules`,recommendation:"Review and consolidate business rules. Consider moving logic to server-side plugins for better performance"})}analyzeServerSideSyncRisks(t,r){[...t.preValidation,...t.preOperation,...t.mainOperation,...t.postOperation].forEach(i=>{i.hasExternalCall&&i.mode==="Sync"&&r.push({severity:"Critical",step:i,reason:"Synchronous external call blocking transaction",recommendation:`Move ${i.type} "${i.name}" to asynchronous execution or use message queuing to avoid blocking the user transaction`})}),[{name:"PreValidation",steps:t.preValidation},{name:"PreOperation",steps:t.preOperation},{name:"MainOperation",steps:t.mainOperation},{name:"PostOperation",steps:t.postOperation}].forEach(i=>{i.steps.length>3&&r.push({severity:"Medium",step:i.steps[0],reason:`${i.steps.length} synchronous steps in ${i.name} stage`,recommendation:"Consider consolidating logic or moving non-critical steps to async execution"}),i.steps.length>5&&r.push({severity:"High",step:i.steps[0],reason:`Excessive synchronous steps: ${i.steps.length} in ${i.name}`,recommendation:"Review execution order and consolidate plugins. Move non-transactional logic to async"})}),t.preValidation.length>2&&r.push({severity:"Medium",step:t.preValidation[0],reason:`${t.preValidation.length} steps in PreValidation stage`,recommendation:"PreValidation should only validate input. Consider moving logic to PreOperation or PostOperation"})}analyzeAsyncRisks(t,r){t.length>10&&r.push({severity:"Medium",step:t[0],reason:`${t.length} asynchronous automation steps`,recommendation:"Review async workflows for consolidation opportunities to reduce system load"}),t.length>20&&r.push({severity:"High",step:t[0],reason:`Excessive async automation: ${t.length} steps`,recommendation:"Consider batch processing or consolidating workflows to reduce async queue load"});const n=t.filter(o=>o.hasExternalCall);n.length>5&&r.push({severity:"Low",step:n[0],reason:`${n.length} async steps with external calls`,recommendation:"Monitor external service availability and implement retry logic with exponential backoff"})}analyzeComplexityRisks(t,r){const n=t.clientSide.length+t.serverSideSync.preValidation.length+t.serverSideSync.preOperation.length+t.serverSideSync.mainOperation.length+t.serverSideSync.postOperation.length;if(n>10){const a=t.clientSide[0]||t.serverSideSync.preValidation[0]||t.serverSideSync.preOperation[0]||t.serverSideSync.mainOperation[0]||t.serverSideSync.postOperation[0];a&&r.push({severity:"High",step:a,reason:`Total synchronous automation: ${n} steps in pipeline`,recommendation:"User experience will be degraded. Review entire automation chain and move non-critical logic to async"})}const o=[...t.clientSide,...t.serverSideSync.preValidation,...t.serverSideSync.preOperation,...t.serverSideSync.mainOperation,...t.serverSideSync.postOperation].some(a=>a.hasExternalCall),i=t.serverSideAsync.some(a=>a.hasExternalCall);if(o&&i){const a=[...t.clientSide,...t.serverSideSync.preValidation,...t.serverSideSync.preOperation,...t.serverSideSync.mainOperation,...t.serverSideSync.postOperation].find(l=>l.hasExternalCall);a&&r.push({severity:"Critical",step:a,reason:"External calls in both sync and async execution",recommendation:"All external integrations should be async to prevent transaction blocking and improve reliability"})}const s=[...Object.values(t.serverSideSync).flat(),...t.serverSideAsync].filter(a=>a.type==="Flow").length;if(s>5){const a=[...Object.values(t.serverSideSync).flat(),...t.serverSideAsync].find(l=>l.type==="Flow");a&&r.push({severity:"Medium",step:a,reason:`${s} Power Automate flows triggered by this event`,recommendation:"Consider consolidating flows to reduce overhead and improve maintainability"})}}getSeverityWeight(t){switch(t){case"Critical":return 4;case"High":return 3;case"Medium":return 2;case"Low":return 1;default:return 0}}getSummaryStats(t){return{critical:t.filter(r=>r.severity==="Critical").length,high:t.filter(r=>r.severity==="High").length,medium:t.filter(r=>r.severity==="Medium").length,low:t.filter(r=>r.severity==="Low").length,total:t.length}}}function kd(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Y3={exports:{}};/*!
137
+
138
+ JSZip v3.10.1 - A JavaScript class for generating and reading zip files
139
+ <http://stuartk.com/jszip>
140
+
141
+ (c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
142
+ Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
143
+
144
+ JSZip uses the library pako released under the MIT license :
145
+ https://github.com/nodeca/pako/blob/main/LICENSE
146
+ */(function(e,t){(function(r){e.exports=r()})(function(){return function r(n,o,i){function s(c,u){if(!o[c]){if(!n[c]){var d=typeof kd=="function"&&kd;if(!u&&d)return d(c,!0);if(a)return a(c,!0);var p=new Error("Cannot find module '"+c+"'");throw p.code="MODULE_NOT_FOUND",p}var h=o[c]={exports:{}};n[c][0].call(h.exports,function(m){var g=n[c][1][m];return s(g||m)},h,h.exports,r,n,o,i)}return o[c].exports}for(var a=typeof kd=="function"&&kd,l=0;l<i.length;l++)s(i[l]);return s}({1:[function(r,n,o){var i=r("./utils"),s=r("./support"),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";o.encode=function(l){for(var c,u,d,p,h,m,g,y=[],v=0,b=l.length,x=b,k=i.getTypeOf(l)!=="string";v<l.length;)x=b-v,d=k?(c=l[v++],u=v<b?l[v++]:0,v<b?l[v++]:0):(c=l.charCodeAt(v++),u=v<b?l.charCodeAt(v++):0,v<b?l.charCodeAt(v++):0),p=c>>2,h=(3&c)<<4|u>>4,m=1<x?(15&u)<<2|d>>6:64,g=2<x?63&d:64,y.push(a.charAt(p)+a.charAt(h)+a.charAt(m)+a.charAt(g));return y.join("")},o.decode=function(l){var c,u,d,p,h,m,g=0,y=0,v="data:";if(l.substr(0,v.length)===v)throw new Error("Invalid base64 input, it looks like a data url.");var b,x=3*(l=l.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(l.charAt(l.length-1)===a.charAt(64)&&x--,l.charAt(l.length-2)===a.charAt(64)&&x--,x%1!=0)throw new Error("Invalid base64 input, bad content length.");for(b=s.uint8array?new Uint8Array(0|x):new Array(0|x);g<l.length;)c=a.indexOf(l.charAt(g++))<<2|(p=a.indexOf(l.charAt(g++)))>>4,u=(15&p)<<4|(h=a.indexOf(l.charAt(g++)))>>2,d=(3&h)<<6|(m=a.indexOf(l.charAt(g++))),b[y++]=c,h!==64&&(b[y++]=u),m!==64&&(b[y++]=d);return b}},{"./support":30,"./utils":32}],2:[function(r,n,o){var i=r("./external"),s=r("./stream/DataWorker"),a=r("./stream/Crc32Probe"),l=r("./stream/DataLengthProbe");function c(u,d,p,h,m){this.compressedSize=u,this.uncompressedSize=d,this.crc32=p,this.compression=h,this.compressedContent=m}c.prototype={getContentWorker:function(){var u=new s(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new l("data_length")),d=this;return u.on("end",function(){if(this.streamInfo.data_length!==d.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),u},getCompressedWorker:function(){return new s(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},c.createWorkerFrom=function(u,d,p){return u.pipe(new a).pipe(new l("uncompressedSize")).pipe(d.compressWorker(p)).pipe(new l("compressedSize")).withStreamInfo("compression",d)},n.exports=c},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(r,n,o){var i=r("./stream/GenericWorker");o.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},o.DEFLATE=r("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(r,n,o){var i=r("./utils"),s=function(){for(var a,l=[],c=0;c<256;c++){a=c;for(var u=0;u<8;u++)a=1&a?3988292384^a>>>1:a>>>1;l[c]=a}return l}();n.exports=function(a,l){return a!==void 0&&a.length?i.getTypeOf(a)!=="string"?function(c,u,d,p){var h=s,m=p+d;c^=-1;for(var g=p;g<m;g++)c=c>>>8^h[255&(c^u[g])];return-1^c}(0|l,a,a.length,0):function(c,u,d,p){var h=s,m=p+d;c^=-1;for(var g=p;g<m;g++)c=c>>>8^h[255&(c^u.charCodeAt(g))];return-1^c}(0|l,a,a.length,0):0}},{"./utils":32}],5:[function(r,n,o){o.base64=!1,o.binary=!1,o.dir=!1,o.createFolders=!0,o.date=null,o.compression=null,o.compressionOptions=null,o.comment=null,o.unixPermissions=null,o.dosPermissions=null},{}],6:[function(r,n,o){var i=null;i=typeof Promise<"u"?Promise:r("lie"),n.exports={Promise:i}},{lie:37}],7:[function(r,n,o){var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",s=r("pako"),a=r("./utils"),l=r("./stream/GenericWorker"),c=i?"uint8array":"array";function u(d,p){l.call(this,"FlateWorker/"+d),this._pako=null,this._pakoAction=d,this._pakoOptions=p,this.meta={}}o.magic="\b\0",a.inherits(u,l),u.prototype.processChunk=function(d){this.meta=d.meta,this._pako===null&&this._createPako(),this._pako.push(a.transformTo(c,d.data),!1)},u.prototype.flush=function(){l.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},u.prototype.cleanUp=function(){l.prototype.cleanUp.call(this),this._pako=null},u.prototype._createPako=function(){this._pako=new s[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var d=this;this._pako.onData=function(p){d.push({data:p,meta:d.meta})}},o.compressWorker=function(d){return new u("Deflate",d)},o.uncompressWorker=function(){return new u("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(r,n,o){function i(h,m){var g,y="";for(g=0;g<m;g++)y+=String.fromCharCode(255&h),h>>>=8;return y}function s(h,m,g,y,v,b){var x,k,S=h.file,_=h.compression,N=b!==c.utf8encode,z=a.transformTo("string",b(S.name)),F=a.transformTo("string",c.utf8encode(S.name)),I=S.comment,H=a.transformTo("string",b(I)),A=a.transformTo("string",c.utf8encode(I)),P=F.length!==S.name.length,C=A.length!==I.length,R="",O="",D="",M=S.dir,$=S.date,X={crc32:0,compressedSize:0,uncompressedSize:0};m&&!g||(X.crc32=h.crc32,X.compressedSize=h.compressedSize,X.uncompressedSize=h.uncompressedSize);var V=0;m&&(V|=8),N||!P&&!C||(V|=2048);var L=0,Y=0;M&&(L|=16),v==="UNIX"?(Y=798,L|=function(te,ge){var _e=te;return te||(_e=ge?16893:33204),(65535&_e)<<16}(S.unixPermissions,M)):(Y=20,L|=function(te){return 63&(te||0)}(S.dosPermissions)),x=$.getUTCHours(),x<<=6,x|=$.getUTCMinutes(),x<<=5,x|=$.getUTCSeconds()/2,k=$.getUTCFullYear()-1980,k<<=4,k|=$.getUTCMonth()+1,k<<=5,k|=$.getUTCDate(),P&&(O=i(1,1)+i(u(z),4)+F,R+="up"+i(O.length,2)+O),C&&(D=i(1,1)+i(u(H),4)+A,R+="uc"+i(D.length,2)+D);var ee="";return ee+=`
147
+ \0`,ee+=i(V,2),ee+=_.magic,ee+=i(x,2),ee+=i(k,2),ee+=i(X.crc32,4),ee+=i(X.compressedSize,4),ee+=i(X.uncompressedSize,4),ee+=i(z.length,2),ee+=i(R.length,2),{fileRecord:d.LOCAL_FILE_HEADER+ee+z+R,dirRecord:d.CENTRAL_FILE_HEADER+i(Y,2)+ee+i(H.length,2)+"\0\0\0\0"+i(L,4)+i(y,4)+z+R+H}}var a=r("../utils"),l=r("../stream/GenericWorker"),c=r("../utf8"),u=r("../crc32"),d=r("../signature");function p(h,m,g,y){l.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=m,this.zipPlatform=g,this.encodeFileName=y,this.streamFiles=h,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(p,l),p.prototype.push=function(h){var m=h.meta.percent||0,g=this.entriesCount,y=this._sources.length;this.accumulate?this.contentBuffer.push(h):(this.bytesWritten+=h.data.length,l.prototype.push.call(this,{data:h.data,meta:{currentFile:this.currentFile,percent:g?(m+100*(g-y-1))/g:100}}))},p.prototype.openedSource=function(h){this.currentSourceOffset=this.bytesWritten,this.currentFile=h.file.name;var m=this.streamFiles&&!h.file.dir;if(m){var g=s(h,m,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:g.fileRecord,meta:{percent:0}})}else this.accumulate=!0},p.prototype.closedSource=function(h){this.accumulate=!1;var m=this.streamFiles&&!h.file.dir,g=s(h,m,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(g.dirRecord),m)this.push({data:function(y){return d.DATA_DESCRIPTOR+i(y.crc32,4)+i(y.compressedSize,4)+i(y.uncompressedSize,4)}(h),meta:{percent:100}});else for(this.push({data:g.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},p.prototype.flush=function(){for(var h=this.bytesWritten,m=0;m<this.dirRecords.length;m++)this.push({data:this.dirRecords[m],meta:{percent:100}});var g=this.bytesWritten-h,y=function(v,b,x,k,S){var _=a.transformTo("string",S(k));return d.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(v,2)+i(v,2)+i(b,4)+i(x,4)+i(_.length,2)+_}(this.dirRecords.length,g,h,this.zipComment,this.encodeFileName);this.push({data:y,meta:{percent:100}})},p.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},p.prototype.registerPrevious=function(h){this._sources.push(h);var m=this;return h.on("data",function(g){m.processChunk(g)}),h.on("end",function(){m.closedSource(m.previous.streamInfo),m._sources.length?m.prepareNextSource():m.end()}),h.on("error",function(g){m.error(g)}),this},p.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},p.prototype.error=function(h){var m=this._sources;if(!l.prototype.error.call(this,h))return!1;for(var g=0;g<m.length;g++)try{m[g].error(h)}catch{}return!0},p.prototype.lock=function(){l.prototype.lock.call(this);for(var h=this._sources,m=0;m<h.length;m++)h[m].lock()},n.exports=p},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(r,n,o){var i=r("../compressions"),s=r("./ZipFileWorker");o.generateWorker=function(a,l,c){var u=new s(l.streamFiles,c,l.platform,l.encodeFileName),d=0;try{a.forEach(function(p,h){d++;var m=function(b,x){var k=b||x,S=i[k];if(!S)throw new Error(k+" is not a valid compression method !");return S}(h.options.compression,l.compression),g=h.options.compressionOptions||l.compressionOptions||{},y=h.dir,v=h.date;h._compressWorker(m,g).withStreamInfo("file",{name:p,dir:y,date:v,comment:h.comment||"",unixPermissions:h.unixPermissions,dosPermissions:h.dosPermissions}).pipe(u)}),u.entriesCount=d}catch(p){u.error(p)}return u}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(r,n,o){function i(){if(!(this instanceof i))return new i;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var s=new i;for(var a in this)typeof this[a]!="function"&&(s[a]=this[a]);return s}}(i.prototype=r("./object")).loadAsync=r("./load"),i.support=r("./support"),i.defaults=r("./defaults"),i.version="3.10.1",i.loadAsync=function(s,a){return new i().loadAsync(s,a)},i.external=r("./external"),n.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(r,n,o){var i=r("./utils"),s=r("./external"),a=r("./utf8"),l=r("./zipEntries"),c=r("./stream/Crc32Probe"),u=r("./nodejsUtils");function d(p){return new s.Promise(function(h,m){var g=p.decompressed.getContentWorker().pipe(new c);g.on("error",function(y){m(y)}).on("end",function(){g.streamInfo.crc32!==p.decompressed.crc32?m(new Error("Corrupted zip : CRC32 mismatch")):h()}).resume()})}n.exports=function(p,h){var m=this;return h=i.extend(h||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),u.isNode&&u.isStream(p)?s.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip file",p,!0,h.optimizedBinaryString,h.base64).then(function(g){var y=new l(h);return y.load(g),y}).then(function(g){var y=[s.Promise.resolve(g)],v=g.files;if(h.checkCRC32)for(var b=0;b<v.length;b++)y.push(d(v[b]));return s.Promise.all(y)}).then(function(g){for(var y=g.shift(),v=y.files,b=0;b<v.length;b++){var x=v[b],k=x.fileNameStr,S=i.resolve(x.fileNameStr);m.file(S,x.decompressed,{binary:!0,optimizedBinaryString:!0,date:x.date,dir:x.dir,comment:x.fileCommentStr.length?x.fileCommentStr:null,unixPermissions:x.unixPermissions,dosPermissions:x.dosPermissions,createFolders:h.createFolders}),x.dir||(m.file(S).unsafeOriginalName=k)}return y.zipComment.length&&(m.comment=y.zipComment),m})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(r,n,o){var i=r("../utils"),s=r("../stream/GenericWorker");function a(l,c){s.call(this,"Nodejs stream input adapter for "+l),this._upstreamEnded=!1,this._bindStream(c)}i.inherits(a,s),a.prototype._bindStream=function(l){var c=this;(this._stream=l).pause(),l.on("data",function(u){c.push({data:u,meta:{percent:0}})}).on("error",function(u){c.isPaused?this.generatedError=u:c.error(u)}).on("end",function(){c.isPaused?c._upstreamEnded=!0:c.end()})},a.prototype.pause=function(){return!!s.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},n.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(r,n,o){var i=r("readable-stream").Readable;function s(a,l,c){i.call(this,l),this._helper=a;var u=this;a.on("data",function(d,p){u.push(d)||u._helper.pause(),c&&c(p)}).on("error",function(d){u.emit("error",d)}).on("end",function(){u.push(null)})}r("../utils").inherits(s,i),s.prototype._read=function(){this._helper.resume()},n.exports=s},{"../utils":32,"readable-stream":16}],14:[function(r,n,o){n.exports={isNode:typeof Buffer<"u",newBufferFrom:function(i,s){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(i,s);if(typeof i=="number")throw new Error('The "data" argument must not be a number');return new Buffer(i,s)},allocBuffer:function(i){if(Buffer.alloc)return Buffer.alloc(i);var s=new Buffer(i);return s.fill(0),s},isBuffer:function(i){return Buffer.isBuffer(i)},isStream:function(i){return i&&typeof i.on=="function"&&typeof i.pause=="function"&&typeof i.resume=="function"}}},{}],15:[function(r,n,o){function i(S,_,N){var z,F=a.getTypeOf(_),I=a.extend(N||{},u);I.date=I.date||new Date,I.compression!==null&&(I.compression=I.compression.toUpperCase()),typeof I.unixPermissions=="string"&&(I.unixPermissions=parseInt(I.unixPermissions,8)),I.unixPermissions&&16384&I.unixPermissions&&(I.dir=!0),I.dosPermissions&&16&I.dosPermissions&&(I.dir=!0),I.dir&&(S=v(S)),I.createFolders&&(z=y(S))&&b.call(this,z,!0);var H=F==="string"&&I.binary===!1&&I.base64===!1;N&&N.binary!==void 0||(I.binary=!H),(_ instanceof d&&_.uncompressedSize===0||I.dir||!_||_.length===0)&&(I.base64=!1,I.binary=!0,_="",I.compression="STORE",F="string");var A=null;A=_ instanceof d||_ instanceof l?_:m.isNode&&m.isStream(_)?new g(S,_):a.prepareContent(S,_,I.binary,I.optimizedBinaryString,I.base64);var P=new p(S,A,I);this.files[S]=P}var s=r("./utf8"),a=r("./utils"),l=r("./stream/GenericWorker"),c=r("./stream/StreamHelper"),u=r("./defaults"),d=r("./compressedObject"),p=r("./zipObject"),h=r("./generate"),m=r("./nodejsUtils"),g=r("./nodejs/NodejsStreamInputAdapter"),y=function(S){S.slice(-1)==="/"&&(S=S.substring(0,S.length-1));var _=S.lastIndexOf("/");return 0<_?S.substring(0,_):""},v=function(S){return S.slice(-1)!=="/"&&(S+="/"),S},b=function(S,_){return _=_!==void 0?_:u.createFolders,S=v(S),this.files[S]||i.call(this,S,null,{dir:!0,createFolders:_}),this.files[S]};function x(S){return Object.prototype.toString.call(S)==="[object RegExp]"}var k={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(S){var _,N,z;for(_ in this.files)z=this.files[_],(N=_.slice(this.root.length,_.length))&&_.slice(0,this.root.length)===this.root&&S(N,z)},filter:function(S){var _=[];return this.forEach(function(N,z){S(N,z)&&_.push(z)}),_},file:function(S,_,N){if(arguments.length!==1)return S=this.root+S,i.call(this,S,_,N),this;if(x(S)){var z=S;return this.filter(function(I,H){return!H.dir&&z.test(I)})}var F=this.files[this.root+S];return F&&!F.dir?F:null},folder:function(S){if(!S)return this;if(x(S))return this.filter(function(F,I){return I.dir&&S.test(F)});var _=this.root+S,N=b.call(this,_),z=this.clone();return z.root=N.name,z},remove:function(S){S=this.root+S;var _=this.files[S];if(_||(S.slice(-1)!=="/"&&(S+="/"),_=this.files[S]),_&&!_.dir)delete this.files[S];else for(var N=this.filter(function(F,I){return I.name.slice(0,S.length)===S}),z=0;z<N.length;z++)delete this.files[N[z].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(S){var _,N={};try{if((N=a.extend(S||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:s.utf8encode})).type=N.type.toLowerCase(),N.compression=N.compression.toUpperCase(),N.type==="binarystring"&&(N.type="string"),!N.type)throw new Error("No output type specified.");a.checkSupport(N.type),N.platform!=="darwin"&&N.platform!=="freebsd"&&N.platform!=="linux"&&N.platform!=="sunos"||(N.platform="UNIX"),N.platform==="win32"&&(N.platform="DOS");var z=N.comment||this.comment||"";_=h.generateWorker(this,N,z)}catch(F){(_=new l("error")).error(F)}return new c(_,N.type||"string",N.mimeType)},generateAsync:function(S,_){return this.generateInternalStream(S).accumulate(_)},generateNodeStream:function(S,_){return(S=S||{}).type||(S.type="nodebuffer"),this.generateInternalStream(S).toNodejsStream(_)}};n.exports=k},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(r,n,o){n.exports=r("stream")},{stream:void 0}],17:[function(r,n,o){var i=r("./DataReader");function s(a){i.call(this,a);for(var l=0;l<this.data.length;l++)a[l]=255&a[l]}r("../utils").inherits(s,i),s.prototype.byteAt=function(a){return this.data[this.zero+a]},s.prototype.lastIndexOfSignature=function(a){for(var l=a.charCodeAt(0),c=a.charCodeAt(1),u=a.charCodeAt(2),d=a.charCodeAt(3),p=this.length-4;0<=p;--p)if(this.data[p]===l&&this.data[p+1]===c&&this.data[p+2]===u&&this.data[p+3]===d)return p-this.zero;return-1},s.prototype.readAndCheckSignature=function(a){var l=a.charCodeAt(0),c=a.charCodeAt(1),u=a.charCodeAt(2),d=a.charCodeAt(3),p=this.readData(4);return l===p[0]&&c===p[1]&&u===p[2]&&d===p[3]},s.prototype.readData=function(a){if(this.checkOffset(a),a===0)return[];var l=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,l},n.exports=s},{"../utils":32,"./DataReader":18}],18:[function(r,n,o){var i=r("../utils");function s(a){this.data=a,this.length=a.length,this.index=0,this.zero=0}s.prototype={checkOffset:function(a){this.checkIndex(this.index+a)},checkIndex:function(a){if(this.length<this.zero+a||a<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+a+"). Corrupted zip ?")},setIndex:function(a){this.checkIndex(a),this.index=a},skip:function(a){this.setIndex(this.index+a)},byteAt:function(){},readInt:function(a){var l,c=0;for(this.checkOffset(a),l=this.index+a-1;l>=this.index;l--)c=(c<<8)+this.byteAt(l);return this.index+=a,c},readString:function(a){return i.transformTo("string",this.readData(a))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var a=this.readInt(4);return new Date(Date.UTC(1980+(a>>25&127),(a>>21&15)-1,a>>16&31,a>>11&31,a>>5&63,(31&a)<<1))}},n.exports=s},{"../utils":32}],19:[function(r,n,o){var i=r("./Uint8ArrayReader");function s(a){i.call(this,a)}r("../utils").inherits(s,i),s.prototype.readData=function(a){this.checkOffset(a);var l=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,l},n.exports=s},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(r,n,o){var i=r("./DataReader");function s(a){i.call(this,a)}r("../utils").inherits(s,i),s.prototype.byteAt=function(a){return this.data.charCodeAt(this.zero+a)},s.prototype.lastIndexOfSignature=function(a){return this.data.lastIndexOf(a)-this.zero},s.prototype.readAndCheckSignature=function(a){return a===this.readData(4)},s.prototype.readData=function(a){this.checkOffset(a);var l=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,l},n.exports=s},{"../utils":32,"./DataReader":18}],21:[function(r,n,o){var i=r("./ArrayReader");function s(a){i.call(this,a)}r("../utils").inherits(s,i),s.prototype.readData=function(a){if(this.checkOffset(a),a===0)return new Uint8Array(0);var l=this.data.subarray(this.zero+this.index,this.zero+this.index+a);return this.index+=a,l},n.exports=s},{"../utils":32,"./ArrayReader":17}],22:[function(r,n,o){var i=r("../utils"),s=r("../support"),a=r("./ArrayReader"),l=r("./StringReader"),c=r("./NodeBufferReader"),u=r("./Uint8ArrayReader");n.exports=function(d){var p=i.getTypeOf(d);return i.checkSupport(p),p!=="string"||s.uint8array?p==="nodebuffer"?new c(d):s.uint8array?new u(i.transformTo("uint8array",d)):new a(i.transformTo("array",d)):new l(d)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(r,n,o){o.LOCAL_FILE_HEADER="PK",o.CENTRAL_FILE_HEADER="PK",o.CENTRAL_DIRECTORY_END="PK",o.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",o.ZIP64_CENTRAL_DIRECTORY_END="PK",o.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(r,n,o){var i=r("./GenericWorker"),s=r("../utils");function a(l){i.call(this,"ConvertWorker to "+l),this.destType=l}s.inherits(a,i),a.prototype.processChunk=function(l){this.push({data:s.transformTo(this.destType,l.data),meta:l.meta})},n.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(r,n,o){var i=r("./GenericWorker"),s=r("../crc32");function a(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}r("../utils").inherits(a,i),a.prototype.processChunk=function(l){this.streamInfo.crc32=s(l.data,this.streamInfo.crc32||0),this.push(l)},n.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(r,n,o){var i=r("../utils"),s=r("./GenericWorker");function a(l){s.call(this,"DataLengthProbe for "+l),this.propName=l,this.withStreamInfo(l,0)}i.inherits(a,s),a.prototype.processChunk=function(l){if(l){var c=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=c+l.data.length}s.prototype.processChunk.call(this,l)},n.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(r,n,o){var i=r("../utils"),s=r("./GenericWorker");function a(l){s.call(this,"DataWorker");var c=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,l.then(function(u){c.dataIsReady=!0,c.data=u,c.max=u&&u.length||0,c.type=i.getTypeOf(u),c.isPaused||c._tickAndRepeat()},function(u){c.error(u)})}i.inherits(a,s),a.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var l=null,c=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":l=this.data.substring(this.index,c);break;case"uint8array":l=this.data.subarray(this.index,c);break;case"array":case"nodebuffer":l=this.data.slice(this.index,c)}return this.index=c,this.push({data:l,meta:{percent:this.max?this.index/this.max*100:0}})},n.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(r,n,o){function i(s){this.name=s||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}i.prototype={push:function(s){this.emit("data",s)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(s){this.emit("error",s)}return!0},error:function(s){return!this.isFinished&&(this.isPaused?this.generatedError=s:(this.isFinished=!0,this.emit("error",s),this.previous&&this.previous.error(s),this.cleanUp()),!0)},on:function(s,a){return this._listeners[s].push(a),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(s,a){if(this._listeners[s])for(var l=0;l<this._listeners[s].length;l++)this._listeners[s][l].call(this,a)},pipe:function(s){return s.registerPrevious(this)},registerPrevious:function(s){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=s.streamInfo,this.mergeStreamInfo(),this.previous=s;var a=this;return s.on("data",function(l){a.processChunk(l)}),s.on("end",function(){a.end()}),s.on("error",function(l){a.error(l)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var s=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),s=!0),this.previous&&this.previous.resume(),!s},flush:function(){},processChunk:function(s){this.push(s)},withStreamInfo:function(s,a){return this.extraStreamInfo[s]=a,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var s in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,s)&&(this.streamInfo[s]=this.extraStreamInfo[s])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var s="Worker "+this.name;return this.previous?this.previous+" -> "+s:s}},n.exports=i},{}],29:[function(r,n,o){var i=r("../utils"),s=r("./ConvertWorker"),a=r("./GenericWorker"),l=r("../base64"),c=r("../support"),u=r("../external"),d=null;if(c.nodestream)try{d=r("../nodejs/NodejsStreamOutputAdapter")}catch{}function p(m,g){return new u.Promise(function(y,v){var b=[],x=m._internalType,k=m._outputType,S=m._mimeType;m.on("data",function(_,N){b.push(_),g&&g(N)}).on("error",function(_){b=[],v(_)}).on("end",function(){try{var _=function(N,z,F){switch(N){case"blob":return i.newBlob(i.transformTo("arraybuffer",z),F);case"base64":return l.encode(z);default:return i.transformTo(N,z)}}(k,function(N,z){var F,I=0,H=null,A=0;for(F=0;F<z.length;F++)A+=z[F].length;switch(N){case"string":return z.join("");case"array":return Array.prototype.concat.apply([],z);case"uint8array":for(H=new Uint8Array(A),F=0;F<z.length;F++)H.set(z[F],I),I+=z[F].length;return H;case"nodebuffer":return Buffer.concat(z);default:throw new Error("concat : unsupported type '"+N+"'")}}(x,b),S);y(_)}catch(N){v(N)}b=[]}).resume()})}function h(m,g,y){var v=g;switch(g){case"blob":case"arraybuffer":v="uint8array";break;case"base64":v="string"}try{this._internalType=v,this._outputType=g,this._mimeType=y,i.checkSupport(v),this._worker=m.pipe(new s(v)),m.lock()}catch(b){this._worker=new a("error"),this._worker.error(b)}}h.prototype={accumulate:function(m){return p(this,m)},on:function(m,g){var y=this;return m==="data"?this._worker.on(m,function(v){g.call(y,v.data,v.meta)}):this._worker.on(m,function(){i.delay(g,arguments,y)}),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(m){if(i.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new d(this,{objectMode:this._outputType!=="nodebuffer"},m)}},n.exports=h},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(r,n,o){if(o.base64=!0,o.array=!0,o.string=!0,o.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",o.nodebuffer=typeof Buffer<"u",o.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")o.blob=!1;else{var i=new ArrayBuffer(0);try{o.blob=new Blob([i],{type:"application/zip"}).size===0}catch{try{var s=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);s.append(i),o.blob=s.getBlob("application/zip").size===0}catch{o.blob=!1}}}try{o.nodestream=!!r("readable-stream").Readable}catch{o.nodestream=!1}},{"readable-stream":16}],31:[function(r,n,o){for(var i=r("./utils"),s=r("./support"),a=r("./nodejsUtils"),l=r("./stream/GenericWorker"),c=new Array(256),u=0;u<256;u++)c[u]=252<=u?6:248<=u?5:240<=u?4:224<=u?3:192<=u?2:1;c[254]=c[254]=1;function d(){l.call(this,"utf-8 decode"),this.leftOver=null}function p(){l.call(this,"utf-8 encode")}o.utf8encode=function(h){return s.nodebuffer?a.newBufferFrom(h,"utf-8"):function(m){var g,y,v,b,x,k=m.length,S=0;for(b=0;b<k;b++)(64512&(y=m.charCodeAt(b)))==55296&&b+1<k&&(64512&(v=m.charCodeAt(b+1)))==56320&&(y=65536+(y-55296<<10)+(v-56320),b++),S+=y<128?1:y<2048?2:y<65536?3:4;for(g=s.uint8array?new Uint8Array(S):new Array(S),b=x=0;x<S;b++)(64512&(y=m.charCodeAt(b)))==55296&&b+1<k&&(64512&(v=m.charCodeAt(b+1)))==56320&&(y=65536+(y-55296<<10)+(v-56320),b++),y<128?g[x++]=y:(y<2048?g[x++]=192|y>>>6:(y<65536?g[x++]=224|y>>>12:(g[x++]=240|y>>>18,g[x++]=128|y>>>12&63),g[x++]=128|y>>>6&63),g[x++]=128|63&y);return g}(h)},o.utf8decode=function(h){return s.nodebuffer?i.transformTo("nodebuffer",h).toString("utf-8"):function(m){var g,y,v,b,x=m.length,k=new Array(2*x);for(g=y=0;g<x;)if((v=m[g++])<128)k[y++]=v;else if(4<(b=c[v]))k[y++]=65533,g+=b-1;else{for(v&=b===2?31:b===3?15:7;1<b&&g<x;)v=v<<6|63&m[g++],b--;1<b?k[y++]=65533:v<65536?k[y++]=v:(v-=65536,k[y++]=55296|v>>10&1023,k[y++]=56320|1023&v)}return k.length!==y&&(k.subarray?k=k.subarray(0,y):k.length=y),i.applyFromCharCode(k)}(h=i.transformTo(s.uint8array?"uint8array":"array",h))},i.inherits(d,l),d.prototype.processChunk=function(h){var m=i.transformTo(s.uint8array?"uint8array":"array",h.data);if(this.leftOver&&this.leftOver.length){if(s.uint8array){var g=m;(m=new Uint8Array(g.length+this.leftOver.length)).set(this.leftOver,0),m.set(g,this.leftOver.length)}else m=this.leftOver.concat(m);this.leftOver=null}var y=function(b,x){var k;for((x=x||b.length)>b.length&&(x=b.length),k=x-1;0<=k&&(192&b[k])==128;)k--;return k<0||k===0?x:k+c[b[k]]>x?k:x}(m),v=m;y!==m.length&&(s.uint8array?(v=m.subarray(0,y),this.leftOver=m.subarray(y,m.length)):(v=m.slice(0,y),this.leftOver=m.slice(y,m.length))),this.push({data:o.utf8decode(v),meta:h.meta})},d.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:o.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},o.Utf8DecodeWorker=d,i.inherits(p,l),p.prototype.processChunk=function(h){this.push({data:o.utf8encode(h.data),meta:h.meta})},o.Utf8EncodeWorker=p},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(r,n,o){var i=r("./support"),s=r("./base64"),a=r("./nodejsUtils"),l=r("./external");function c(g){return g}function u(g,y){for(var v=0;v<g.length;++v)y[v]=255&g.charCodeAt(v);return y}r("setimmediate"),o.newBlob=function(g,y){o.checkSupport("blob");try{return new Blob([g],{type:y})}catch{try{var v=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return v.append(g),v.getBlob(y)}catch{throw new Error("Bug : can't construct the Blob.")}}};var d={stringifyByChunk:function(g,y,v){var b=[],x=0,k=g.length;if(k<=v)return String.fromCharCode.apply(null,g);for(;x<k;)y==="array"||y==="nodebuffer"?b.push(String.fromCharCode.apply(null,g.slice(x,Math.min(x+v,k)))):b.push(String.fromCharCode.apply(null,g.subarray(x,Math.min(x+v,k)))),x+=v;return b.join("")},stringifyByChar:function(g){for(var y="",v=0;v<g.length;v++)y+=String.fromCharCode(g[v]);return y},applyCanBeUsed:{uint8array:function(){try{return i.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return i.nodebuffer&&String.fromCharCode.apply(null,a.allocBuffer(1)).length===1}catch{return!1}}()}};function p(g){var y=65536,v=o.getTypeOf(g),b=!0;if(v==="uint8array"?b=d.applyCanBeUsed.uint8array:v==="nodebuffer"&&(b=d.applyCanBeUsed.nodebuffer),b)for(;1<y;)try{return d.stringifyByChunk(g,v,y)}catch{y=Math.floor(y/2)}return d.stringifyByChar(g)}function h(g,y){for(var v=0;v<g.length;v++)y[v]=g[v];return y}o.applyFromCharCode=p;var m={};m.string={string:c,array:function(g){return u(g,new Array(g.length))},arraybuffer:function(g){return m.string.uint8array(g).buffer},uint8array:function(g){return u(g,new Uint8Array(g.length))},nodebuffer:function(g){return u(g,a.allocBuffer(g.length))}},m.array={string:p,array:c,arraybuffer:function(g){return new Uint8Array(g).buffer},uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return a.newBufferFrom(g)}},m.arraybuffer={string:function(g){return p(new Uint8Array(g))},array:function(g){return h(new Uint8Array(g),new Array(g.byteLength))},arraybuffer:c,uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return a.newBufferFrom(new Uint8Array(g))}},m.uint8array={string:p,array:function(g){return h(g,new Array(g.length))},arraybuffer:function(g){return g.buffer},uint8array:c,nodebuffer:function(g){return a.newBufferFrom(g)}},m.nodebuffer={string:p,array:function(g){return h(g,new Array(g.length))},arraybuffer:function(g){return m.nodebuffer.uint8array(g).buffer},uint8array:function(g){return h(g,new Uint8Array(g.length))},nodebuffer:c},o.transformTo=function(g,y){if(y=y||"",!g)return y;o.checkSupport(g);var v=o.getTypeOf(y);return m[v][g](y)},o.resolve=function(g){for(var y=g.split("/"),v=[],b=0;b<y.length;b++){var x=y[b];x==="."||x===""&&b!==0&&b!==y.length-1||(x===".."?v.pop():v.push(x))}return v.join("/")},o.getTypeOf=function(g){return typeof g=="string"?"string":Object.prototype.toString.call(g)==="[object Array]"?"array":i.nodebuffer&&a.isBuffer(g)?"nodebuffer":i.uint8array&&g instanceof Uint8Array?"uint8array":i.arraybuffer&&g instanceof ArrayBuffer?"arraybuffer":void 0},o.checkSupport=function(g){if(!i[g.toLowerCase()])throw new Error(g+" is not supported by this platform")},o.MAX_VALUE_16BITS=65535,o.MAX_VALUE_32BITS=-1,o.pretty=function(g){var y,v,b="";for(v=0;v<(g||"").length;v++)b+="\\x"+((y=g.charCodeAt(v))<16?"0":"")+y.toString(16).toUpperCase();return b},o.delay=function(g,y,v){setImmediate(function(){g.apply(v||null,y||[])})},o.inherits=function(g,y){function v(){}v.prototype=y.prototype,g.prototype=new v},o.extend=function(){var g,y,v={};for(g=0;g<arguments.length;g++)for(y in arguments[g])Object.prototype.hasOwnProperty.call(arguments[g],y)&&v[y]===void 0&&(v[y]=arguments[g][y]);return v},o.prepareContent=function(g,y,v,b,x){return l.Promise.resolve(y).then(function(k){return i.blob&&(k instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(k))!==-1)&&typeof FileReader<"u"?new l.Promise(function(S,_){var N=new FileReader;N.onload=function(z){S(z.target.result)},N.onerror=function(z){_(z.target.error)},N.readAsArrayBuffer(k)}):k}).then(function(k){var S=o.getTypeOf(k);return S?(S==="arraybuffer"?k=o.transformTo("uint8array",k):S==="string"&&(x?k=s.decode(k):v&&b!==!0&&(k=function(_){return u(_,i.uint8array?new Uint8Array(_.length):new Array(_.length))}(k))),k):l.Promise.reject(new Error("Can't read the data of '"+g+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(r,n,o){var i=r("./reader/readerFor"),s=r("./utils"),a=r("./signature"),l=r("./zipEntry"),c=r("./support");function u(d){this.files=[],this.loadOptions=d}u.prototype={checkSignature:function(d){if(!this.reader.readAndCheckSignature(d)){this.reader.index-=4;var p=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+s.pretty(p)+", expected "+s.pretty(d)+")")}},isSignature:function(d,p){var h=this.reader.index;this.reader.setIndex(d);var m=this.reader.readString(4)===p;return this.reader.setIndex(h),m},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var d=this.reader.readData(this.zipCommentLength),p=c.uint8array?"uint8array":"array",h=s.transformTo(p,d);this.zipComment=this.loadOptions.decodeFileName(h)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var d,p,h,m=this.zip64EndOfCentralSize-44;0<m;)d=this.reader.readInt(2),p=this.reader.readInt(4),h=this.reader.readData(p),this.zip64ExtensibleData[d]={id:d,length:p,value:h}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var d,p;for(d=0;d<this.files.length;d++)p=this.files[d],this.reader.setIndex(p.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),p.readLocalPart(this.reader),p.handleUTF8(),p.processAttributes()},readCentralDir:function(){var d;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(d=new l({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(d);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var d=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(d<0)throw this.isSignature(0,a.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(d);var p=d;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===s.MAX_VALUE_16BITS||this.diskWithCentralDirStart===s.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===s.MAX_VALUE_16BITS||this.centralDirRecords===s.MAX_VALUE_16BITS||this.centralDirSize===s.MAX_VALUE_32BITS||this.centralDirOffset===s.MAX_VALUE_32BITS){if(this.zip64=!0,(d=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(d),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var h=this.centralDirOffset+this.centralDirSize;this.zip64&&(h+=20,h+=12+this.zip64EndOfCentralSize);var m=p-h;if(0<m)this.isSignature(p,a.CENTRAL_FILE_HEADER)||(this.reader.zero=m);else if(m<0)throw new Error("Corrupted zip: missing "+Math.abs(m)+" bytes.")},prepareReader:function(d){this.reader=i(d)},load:function(d){this.prepareReader(d),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},n.exports=u},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(r,n,o){var i=r("./reader/readerFor"),s=r("./utils"),a=r("./compressedObject"),l=r("./crc32"),c=r("./utf8"),u=r("./compressions"),d=r("./support");function p(h,m){this.options=h,this.loadOptions=m}p.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(h){var m,g;if(h.skip(22),this.fileNameLength=h.readInt(2),g=h.readInt(2),this.fileName=h.readData(this.fileNameLength),h.skip(g),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((m=function(y){for(var v in u)if(Object.prototype.hasOwnProperty.call(u,v)&&u[v].magic===y)return u[v];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+s.pretty(this.compressionMethod)+" unknown (inner file : "+s.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,m,h.readData(this.compressedSize))},readCentralPart:function(h){this.versionMadeBy=h.readInt(2),h.skip(2),this.bitFlag=h.readInt(2),this.compressionMethod=h.readString(2),this.date=h.readDate(),this.crc32=h.readInt(4),this.compressedSize=h.readInt(4),this.uncompressedSize=h.readInt(4);var m=h.readInt(2);if(this.extraFieldsLength=h.readInt(2),this.fileCommentLength=h.readInt(2),this.diskNumberStart=h.readInt(2),this.internalFileAttributes=h.readInt(2),this.externalFileAttributes=h.readInt(4),this.localHeaderOffset=h.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");h.skip(m),this.readExtraFields(h),this.parseZIP64ExtraField(h),this.fileComment=h.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var h=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),h==0&&(this.dosPermissions=63&this.externalFileAttributes),h==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var h=i(this.extraFields[1].value);this.uncompressedSize===s.MAX_VALUE_32BITS&&(this.uncompressedSize=h.readInt(8)),this.compressedSize===s.MAX_VALUE_32BITS&&(this.compressedSize=h.readInt(8)),this.localHeaderOffset===s.MAX_VALUE_32BITS&&(this.localHeaderOffset=h.readInt(8)),this.diskNumberStart===s.MAX_VALUE_32BITS&&(this.diskNumberStart=h.readInt(4))}},readExtraFields:function(h){var m,g,y,v=h.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});h.index+4<v;)m=h.readInt(2),g=h.readInt(2),y=h.readData(g),this.extraFields[m]={id:m,length:g,value:y};h.setIndex(v)},handleUTF8:function(){var h=d.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=c.utf8decode(this.fileName),this.fileCommentStr=c.utf8decode(this.fileComment);else{var m=this.findExtraFieldUnicodePath();if(m!==null)this.fileNameStr=m;else{var g=s.transformTo(h,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(g)}var y=this.findExtraFieldUnicodeComment();if(y!==null)this.fileCommentStr=y;else{var v=s.transformTo(h,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(v)}}},findExtraFieldUnicodePath:function(){var h=this.extraFields[28789];if(h){var m=i(h.value);return m.readInt(1)!==1||l(this.fileName)!==m.readInt(4)?null:c.utf8decode(m.readData(h.length-5))}return null},findExtraFieldUnicodeComment:function(){var h=this.extraFields[25461];if(h){var m=i(h.value);return m.readInt(1)!==1||l(this.fileComment)!==m.readInt(4)?null:c.utf8decode(m.readData(h.length-5))}return null}},n.exports=p},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(r,n,o){function i(m,g,y){this.name=m,this.dir=y.dir,this.date=y.date,this.comment=y.comment,this.unixPermissions=y.unixPermissions,this.dosPermissions=y.dosPermissions,this._data=g,this._dataBinary=y.binary,this.options={compression:y.compression,compressionOptions:y.compressionOptions}}var s=r("./stream/StreamHelper"),a=r("./stream/DataWorker"),l=r("./utf8"),c=r("./compressedObject"),u=r("./stream/GenericWorker");i.prototype={internalStream:function(m){var g=null,y="string";try{if(!m)throw new Error("No output type specified.");var v=(y=m.toLowerCase())==="string"||y==="text";y!=="binarystring"&&y!=="text"||(y="string"),g=this._decompressWorker();var b=!this._dataBinary;b&&!v&&(g=g.pipe(new l.Utf8EncodeWorker)),!b&&v&&(g=g.pipe(new l.Utf8DecodeWorker))}catch(x){(g=new u("error")).error(x)}return new s(g,y,"")},async:function(m,g){return this.internalStream(m).accumulate(g)},nodeStream:function(m,g){return this.internalStream(m||"nodebuffer").toNodejsStream(g)},_compressWorker:function(m,g){if(this._data instanceof c&&this._data.compression.magic===m.magic)return this._data.getCompressedWorker();var y=this._decompressWorker();return this._dataBinary||(y=y.pipe(new l.Utf8EncodeWorker)),c.createWorkerFrom(y,m,g)},_decompressWorker:function(){return this._data instanceof c?this._data.getContentWorker():this._data instanceof u?this._data:new a(this._data)}};for(var d=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],p=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},h=0;h<d.length;h++)i.prototype[d[h]]=p;n.exports=i},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(r,n,o){(function(i){var s,a,l=i.MutationObserver||i.WebKitMutationObserver;if(l){var c=0,u=new l(m),d=i.document.createTextNode("");u.observe(d,{characterData:!0}),s=function(){d.data=c=++c%2}}else if(i.setImmediate||i.MessageChannel===void 0)s="document"in i&&"onreadystatechange"in i.document.createElement("script")?function(){var g=i.document.createElement("script");g.onreadystatechange=function(){m(),g.onreadystatechange=null,g.parentNode.removeChild(g),g=null},i.document.documentElement.appendChild(g)}:function(){setTimeout(m,0)};else{var p=new i.MessageChannel;p.port1.onmessage=m,s=function(){p.port2.postMessage(0)}}var h=[];function m(){var g,y;a=!0;for(var v=h.length;v;){for(y=h,h=[],g=-1;++g<v;)y[g]();v=h.length}a=!1}n.exports=function(g){h.push(g)!==1||a||s()}}).call(this,typeof nc<"u"?nc:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(r,n,o){var i=r("immediate");function s(){}var a={},l=["REJECTED"],c=["FULFILLED"],u=["PENDING"];function d(v){if(typeof v!="function")throw new TypeError("resolver must be a function");this.state=u,this.queue=[],this.outcome=void 0,v!==s&&g(this,v)}function p(v,b,x){this.promise=v,typeof b=="function"&&(this.onFulfilled=b,this.callFulfilled=this.otherCallFulfilled),typeof x=="function"&&(this.onRejected=x,this.callRejected=this.otherCallRejected)}function h(v,b,x){i(function(){var k;try{k=b(x)}catch(S){return a.reject(v,S)}k===v?a.reject(v,new TypeError("Cannot resolve promise with itself")):a.resolve(v,k)})}function m(v){var b=v&&v.then;if(v&&(typeof v=="object"||typeof v=="function")&&typeof b=="function")return function(){b.apply(v,arguments)}}function g(v,b){var x=!1;function k(N){x||(x=!0,a.reject(v,N))}function S(N){x||(x=!0,a.resolve(v,N))}var _=y(function(){b(S,k)});_.status==="error"&&k(_.value)}function y(v,b){var x={};try{x.value=v(b),x.status="success"}catch(k){x.status="error",x.value=k}return x}(n.exports=d).prototype.finally=function(v){if(typeof v!="function")return this;var b=this.constructor;return this.then(function(x){return b.resolve(v()).then(function(){return x})},function(x){return b.resolve(v()).then(function(){throw x})})},d.prototype.catch=function(v){return this.then(null,v)},d.prototype.then=function(v,b){if(typeof v!="function"&&this.state===c||typeof b!="function"&&this.state===l)return this;var x=new this.constructor(s);return this.state!==u?h(x,this.state===c?v:b,this.outcome):this.queue.push(new p(x,v,b)),x},p.prototype.callFulfilled=function(v){a.resolve(this.promise,v)},p.prototype.otherCallFulfilled=function(v){h(this.promise,this.onFulfilled,v)},p.prototype.callRejected=function(v){a.reject(this.promise,v)},p.prototype.otherCallRejected=function(v){h(this.promise,this.onRejected,v)},a.resolve=function(v,b){var x=y(m,b);if(x.status==="error")return a.reject(v,x.value);var k=x.value;if(k)g(v,k);else{v.state=c,v.outcome=b;for(var S=-1,_=v.queue.length;++S<_;)v.queue[S].callFulfilled(b)}return v},a.reject=function(v,b){v.state=l,v.outcome=b;for(var x=-1,k=v.queue.length;++x<k;)v.queue[x].callRejected(b);return v},d.resolve=function(v){return v instanceof this?v:a.resolve(new this(s),v)},d.reject=function(v){var b=new this(s);return a.reject(b,v)},d.all=function(v){var b=this;if(Object.prototype.toString.call(v)!=="[object Array]")return this.reject(new TypeError("must be an array"));var x=v.length,k=!1;if(!x)return this.resolve([]);for(var S=new Array(x),_=0,N=-1,z=new this(s);++N<x;)F(v[N],N);return z;function F(I,H){b.resolve(I).then(function(A){S[H]=A,++_!==x||k||(k=!0,a.resolve(z,S))},function(A){k||(k=!0,a.reject(z,A))})}},d.race=function(v){var b=this;if(Object.prototype.toString.call(v)!=="[object Array]")return this.reject(new TypeError("must be an array"));var x=v.length,k=!1;if(!x)return this.resolve([]);for(var S=-1,_=new this(s);++S<x;)N=v[S],b.resolve(N).then(function(z){k||(k=!0,a.resolve(_,z))},function(z){k||(k=!0,a.reject(_,z))});var N;return _}},{immediate:36}],38:[function(r,n,o){var i={};(0,r("./lib/utils/common").assign)(i,r("./lib/deflate"),r("./lib/inflate"),r("./lib/zlib/constants")),n.exports=i},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(r,n,o){var i=r("./zlib/deflate"),s=r("./utils/common"),a=r("./utils/strings"),l=r("./zlib/messages"),c=r("./zlib/zstream"),u=Object.prototype.toString,d=0,p=-1,h=0,m=8;function g(v){if(!(this instanceof g))return new g(v);this.options=s.assign({level:p,method:m,chunkSize:16384,windowBits:15,memLevel:8,strategy:h,to:""},v||{});var b=this.options;b.raw&&0<b.windowBits?b.windowBits=-b.windowBits:b.gzip&&0<b.windowBits&&b.windowBits<16&&(b.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var x=i.deflateInit2(this.strm,b.level,b.method,b.windowBits,b.memLevel,b.strategy);if(x!==d)throw new Error(l[x]);if(b.header&&i.deflateSetHeader(this.strm,b.header),b.dictionary){var k;if(k=typeof b.dictionary=="string"?a.string2buf(b.dictionary):u.call(b.dictionary)==="[object ArrayBuffer]"?new Uint8Array(b.dictionary):b.dictionary,(x=i.deflateSetDictionary(this.strm,k))!==d)throw new Error(l[x]);this._dict_set=!0}}function y(v,b){var x=new g(b);if(x.push(v,!0),x.err)throw x.msg||l[x.err];return x.result}g.prototype.push=function(v,b){var x,k,S=this.strm,_=this.options.chunkSize;if(this.ended)return!1;k=b===~~b?b:b===!0?4:0,typeof v=="string"?S.input=a.string2buf(v):u.call(v)==="[object ArrayBuffer]"?S.input=new Uint8Array(v):S.input=v,S.next_in=0,S.avail_in=S.input.length;do{if(S.avail_out===0&&(S.output=new s.Buf8(_),S.next_out=0,S.avail_out=_),(x=i.deflate(S,k))!==1&&x!==d)return this.onEnd(x),!(this.ended=!0);S.avail_out!==0&&(S.avail_in!==0||k!==4&&k!==2)||(this.options.to==="string"?this.onData(a.buf2binstring(s.shrinkBuf(S.output,S.next_out))):this.onData(s.shrinkBuf(S.output,S.next_out)))}while((0<S.avail_in||S.avail_out===0)&&x!==1);return k===4?(x=i.deflateEnd(this.strm),this.onEnd(x),this.ended=!0,x===d):k!==2||(this.onEnd(d),!(S.avail_out=0))},g.prototype.onData=function(v){this.chunks.push(v)},g.prototype.onEnd=function(v){v===d&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=v,this.msg=this.strm.msg},o.Deflate=g,o.deflate=y,o.deflateRaw=function(v,b){return(b=b||{}).raw=!0,y(v,b)},o.gzip=function(v,b){return(b=b||{}).gzip=!0,y(v,b)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(r,n,o){var i=r("./zlib/inflate"),s=r("./utils/common"),a=r("./utils/strings"),l=r("./zlib/constants"),c=r("./zlib/messages"),u=r("./zlib/zstream"),d=r("./zlib/gzheader"),p=Object.prototype.toString;function h(g){if(!(this instanceof h))return new h(g);this.options=s.assign({chunkSize:16384,windowBits:0,to:""},g||{});var y=this.options;y.raw&&0<=y.windowBits&&y.windowBits<16&&(y.windowBits=-y.windowBits,y.windowBits===0&&(y.windowBits=-15)),!(0<=y.windowBits&&y.windowBits<16)||g&&g.windowBits||(y.windowBits+=32),15<y.windowBits&&y.windowBits<48&&!(15&y.windowBits)&&(y.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var v=i.inflateInit2(this.strm,y.windowBits);if(v!==l.Z_OK)throw new Error(c[v]);this.header=new d,i.inflateGetHeader(this.strm,this.header)}function m(g,y){var v=new h(y);if(v.push(g,!0),v.err)throw v.msg||c[v.err];return v.result}h.prototype.push=function(g,y){var v,b,x,k,S,_,N=this.strm,z=this.options.chunkSize,F=this.options.dictionary,I=!1;if(this.ended)return!1;b=y===~~y?y:y===!0?l.Z_FINISH:l.Z_NO_FLUSH,typeof g=="string"?N.input=a.binstring2buf(g):p.call(g)==="[object ArrayBuffer]"?N.input=new Uint8Array(g):N.input=g,N.next_in=0,N.avail_in=N.input.length;do{if(N.avail_out===0&&(N.output=new s.Buf8(z),N.next_out=0,N.avail_out=z),(v=i.inflate(N,l.Z_NO_FLUSH))===l.Z_NEED_DICT&&F&&(_=typeof F=="string"?a.string2buf(F):p.call(F)==="[object ArrayBuffer]"?new Uint8Array(F):F,v=i.inflateSetDictionary(this.strm,_)),v===l.Z_BUF_ERROR&&I===!0&&(v=l.Z_OK,I=!1),v!==l.Z_STREAM_END&&v!==l.Z_OK)return this.onEnd(v),!(this.ended=!0);N.next_out&&(N.avail_out!==0&&v!==l.Z_STREAM_END&&(N.avail_in!==0||b!==l.Z_FINISH&&b!==l.Z_SYNC_FLUSH)||(this.options.to==="string"?(x=a.utf8border(N.output,N.next_out),k=N.next_out-x,S=a.buf2string(N.output,x),N.next_out=k,N.avail_out=z-k,k&&s.arraySet(N.output,N.output,x,k,0),this.onData(S)):this.onData(s.shrinkBuf(N.output,N.next_out)))),N.avail_in===0&&N.avail_out===0&&(I=!0)}while((0<N.avail_in||N.avail_out===0)&&v!==l.Z_STREAM_END);return v===l.Z_STREAM_END&&(b=l.Z_FINISH),b===l.Z_FINISH?(v=i.inflateEnd(this.strm),this.onEnd(v),this.ended=!0,v===l.Z_OK):b!==l.Z_SYNC_FLUSH||(this.onEnd(l.Z_OK),!(N.avail_out=0))},h.prototype.onData=function(g){this.chunks.push(g)},h.prototype.onEnd=function(g){g===l.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=g,this.msg=this.strm.msg},o.Inflate=h,o.inflate=m,o.inflateRaw=function(g,y){return(y=y||{}).raw=!0,m(g,y)},o.ungzip=m},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(r,n,o){var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";o.assign=function(l){for(var c=Array.prototype.slice.call(arguments,1);c.length;){var u=c.shift();if(u){if(typeof u!="object")throw new TypeError(u+"must be non-object");for(var d in u)u.hasOwnProperty(d)&&(l[d]=u[d])}}return l},o.shrinkBuf=function(l,c){return l.length===c?l:l.subarray?l.subarray(0,c):(l.length=c,l)};var s={arraySet:function(l,c,u,d,p){if(c.subarray&&l.subarray)l.set(c.subarray(u,u+d),p);else for(var h=0;h<d;h++)l[p+h]=c[u+h]},flattenChunks:function(l){var c,u,d,p,h,m;for(c=d=0,u=l.length;c<u;c++)d+=l[c].length;for(m=new Uint8Array(d),c=p=0,u=l.length;c<u;c++)h=l[c],m.set(h,p),p+=h.length;return m}},a={arraySet:function(l,c,u,d,p){for(var h=0;h<d;h++)l[p+h]=c[u+h]},flattenChunks:function(l){return[].concat.apply([],l)}};o.setTyped=function(l){l?(o.Buf8=Uint8Array,o.Buf16=Uint16Array,o.Buf32=Int32Array,o.assign(o,s)):(o.Buf8=Array,o.Buf16=Array,o.Buf32=Array,o.assign(o,a))},o.setTyped(i)},{}],42:[function(r,n,o){var i=r("./common"),s=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch{s=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{a=!1}for(var l=new i.Buf8(256),c=0;c<256;c++)l[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;function u(d,p){if(p<65537&&(d.subarray&&a||!d.subarray&&s))return String.fromCharCode.apply(null,i.shrinkBuf(d,p));for(var h="",m=0;m<p;m++)h+=String.fromCharCode(d[m]);return h}l[254]=l[254]=1,o.string2buf=function(d){var p,h,m,g,y,v=d.length,b=0;for(g=0;g<v;g++)(64512&(h=d.charCodeAt(g)))==55296&&g+1<v&&(64512&(m=d.charCodeAt(g+1)))==56320&&(h=65536+(h-55296<<10)+(m-56320),g++),b+=h<128?1:h<2048?2:h<65536?3:4;for(p=new i.Buf8(b),g=y=0;y<b;g++)(64512&(h=d.charCodeAt(g)))==55296&&g+1<v&&(64512&(m=d.charCodeAt(g+1)))==56320&&(h=65536+(h-55296<<10)+(m-56320),g++),h<128?p[y++]=h:(h<2048?p[y++]=192|h>>>6:(h<65536?p[y++]=224|h>>>12:(p[y++]=240|h>>>18,p[y++]=128|h>>>12&63),p[y++]=128|h>>>6&63),p[y++]=128|63&h);return p},o.buf2binstring=function(d){return u(d,d.length)},o.binstring2buf=function(d){for(var p=new i.Buf8(d.length),h=0,m=p.length;h<m;h++)p[h]=d.charCodeAt(h);return p},o.buf2string=function(d,p){var h,m,g,y,v=p||d.length,b=new Array(2*v);for(h=m=0;h<v;)if((g=d[h++])<128)b[m++]=g;else if(4<(y=l[g]))b[m++]=65533,h+=y-1;else{for(g&=y===2?31:y===3?15:7;1<y&&h<v;)g=g<<6|63&d[h++],y--;1<y?b[m++]=65533:g<65536?b[m++]=g:(g-=65536,b[m++]=55296|g>>10&1023,b[m++]=56320|1023&g)}return u(b,m)},o.utf8border=function(d,p){var h;for((p=p||d.length)>d.length&&(p=d.length),h=p-1;0<=h&&(192&d[h])==128;)h--;return h<0||h===0?p:h+l[d[h]]>p?h:p}},{"./common":41}],43:[function(r,n,o){n.exports=function(i,s,a,l){for(var c=65535&i|0,u=i>>>16&65535|0,d=0;a!==0;){for(a-=d=2e3<a?2e3:a;u=u+(c=c+s[l++]|0)|0,--d;);c%=65521,u%=65521}return c|u<<16|0}},{}],44:[function(r,n,o){n.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(r,n,o){var i=function(){for(var s,a=[],l=0;l<256;l++){s=l;for(var c=0;c<8;c++)s=1&s?3988292384^s>>>1:s>>>1;a[l]=s}return a}();n.exports=function(s,a,l,c){var u=i,d=c+l;s^=-1;for(var p=c;p<d;p++)s=s>>>8^u[255&(s^a[p])];return-1^s}},{}],46:[function(r,n,o){var i,s=r("../utils/common"),a=r("./trees"),l=r("./adler32"),c=r("./crc32"),u=r("./messages"),d=0,p=4,h=0,m=-2,g=-1,y=4,v=2,b=8,x=9,k=286,S=30,_=19,N=2*k+1,z=15,F=3,I=258,H=I+F+1,A=42,P=113,C=1,R=2,O=3,D=4;function M(j,oe){return j.msg=u[oe],oe}function $(j){return(j<<1)-(4<j?9:0)}function X(j){for(var oe=j.length;0<=--oe;)j[oe]=0}function V(j){var oe=j.state,re=oe.pending;re>j.avail_out&&(re=j.avail_out),re!==0&&(s.arraySet(j.output,oe.pending_buf,oe.pending_out,re,j.next_out),j.next_out+=re,oe.pending_out+=re,j.total_out+=re,j.avail_out-=re,oe.pending-=re,oe.pending===0&&(oe.pending_out=0))}function L(j,oe){a._tr_flush_block(j,0<=j.block_start?j.block_start:-1,j.strstart-j.block_start,oe),j.block_start=j.strstart,V(j.strm)}function Y(j,oe){j.pending_buf[j.pending++]=oe}function ee(j,oe){j.pending_buf[j.pending++]=oe>>>8&255,j.pending_buf[j.pending++]=255&oe}function te(j,oe){var re,W,q=j.max_chain_length,G=j.strstart,ae=j.prev_length,ce=j.nice_match,K=j.strstart>j.w_size-H?j.strstart-(j.w_size-H):0,pe=j.window,xe=j.w_mask,he=j.prev,Ae=j.strstart+I,nt=pe[G+ae-1],et=pe[G+ae];j.prev_length>=j.good_match&&(q>>=2),ce>j.lookahead&&(ce=j.lookahead);do if(pe[(re=oe)+ae]===et&&pe[re+ae-1]===nt&&pe[re]===pe[G]&&pe[++re]===pe[G+1]){G+=2,re++;do;while(pe[++G]===pe[++re]&&pe[++G]===pe[++re]&&pe[++G]===pe[++re]&&pe[++G]===pe[++re]&&pe[++G]===pe[++re]&&pe[++G]===pe[++re]&&pe[++G]===pe[++re]&&pe[++G]===pe[++re]&&G<Ae);if(W=I-(Ae-G),G=Ae-I,ae<W){if(j.match_start=oe,ce<=(ae=W))break;nt=pe[G+ae-1],et=pe[G+ae]}}while((oe=he[oe&xe])>K&&--q!=0);return ae<=j.lookahead?ae:j.lookahead}function ge(j){var oe,re,W,q,G,ae,ce,K,pe,xe,he=j.w_size;do{if(q=j.window_size-j.lookahead-j.strstart,j.strstart>=he+(he-H)){for(s.arraySet(j.window,j.window,he,he,0),j.match_start-=he,j.strstart-=he,j.block_start-=he,oe=re=j.hash_size;W=j.head[--oe],j.head[oe]=he<=W?W-he:0,--re;);for(oe=re=he;W=j.prev[--oe],j.prev[oe]=he<=W?W-he:0,--re;);q+=he}if(j.strm.avail_in===0)break;if(ae=j.strm,ce=j.window,K=j.strstart+j.lookahead,pe=q,xe=void 0,xe=ae.avail_in,pe<xe&&(xe=pe),re=xe===0?0:(ae.avail_in-=xe,s.arraySet(ce,ae.input,ae.next_in,xe,K),ae.state.wrap===1?ae.adler=l(ae.adler,ce,xe,K):ae.state.wrap===2&&(ae.adler=c(ae.adler,ce,xe,K)),ae.next_in+=xe,ae.total_in+=xe,xe),j.lookahead+=re,j.lookahead+j.insert>=F)for(G=j.strstart-j.insert,j.ins_h=j.window[G],j.ins_h=(j.ins_h<<j.hash_shift^j.window[G+1])&j.hash_mask;j.insert&&(j.ins_h=(j.ins_h<<j.hash_shift^j.window[G+F-1])&j.hash_mask,j.prev[G&j.w_mask]=j.head[j.ins_h],j.head[j.ins_h]=G,G++,j.insert--,!(j.lookahead+j.insert<F)););}while(j.lookahead<H&&j.strm.avail_in!==0)}function _e(j,oe){for(var re,W;;){if(j.lookahead<H){if(ge(j),j.lookahead<H&&oe===d)return C;if(j.lookahead===0)break}if(re=0,j.lookahead>=F&&(j.ins_h=(j.ins_h<<j.hash_shift^j.window[j.strstart+F-1])&j.hash_mask,re=j.prev[j.strstart&j.w_mask]=j.head[j.ins_h],j.head[j.ins_h]=j.strstart),re!==0&&j.strstart-re<=j.w_size-H&&(j.match_length=te(j,re)),j.match_length>=F)if(W=a._tr_tally(j,j.strstart-j.match_start,j.match_length-F),j.lookahead-=j.match_length,j.match_length<=j.max_lazy_match&&j.lookahead>=F){for(j.match_length--;j.strstart++,j.ins_h=(j.ins_h<<j.hash_shift^j.window[j.strstart+F-1])&j.hash_mask,re=j.prev[j.strstart&j.w_mask]=j.head[j.ins_h],j.head[j.ins_h]=j.strstart,--j.match_length!=0;);j.strstart++}else j.strstart+=j.match_length,j.match_length=0,j.ins_h=j.window[j.strstart],j.ins_h=(j.ins_h<<j.hash_shift^j.window[j.strstart+1])&j.hash_mask;else W=a._tr_tally(j,0,j.window[j.strstart]),j.lookahead--,j.strstart++;if(W&&(L(j,!1),j.strm.avail_out===0))return C}return j.insert=j.strstart<F-1?j.strstart:F-1,oe===p?(L(j,!0),j.strm.avail_out===0?O:D):j.last_lit&&(L(j,!1),j.strm.avail_out===0)?C:R}function we(j,oe){for(var re,W,q;;){if(j.lookahead<H){if(ge(j),j.lookahead<H&&oe===d)return C;if(j.lookahead===0)break}if(re=0,j.lookahead>=F&&(j.ins_h=(j.ins_h<<j.hash_shift^j.window[j.strstart+F-1])&j.hash_mask,re=j.prev[j.strstart&j.w_mask]=j.head[j.ins_h],j.head[j.ins_h]=j.strstart),j.prev_length=j.match_length,j.prev_match=j.match_start,j.match_length=F-1,re!==0&&j.prev_length<j.max_lazy_match&&j.strstart-re<=j.w_size-H&&(j.match_length=te(j,re),j.match_length<=5&&(j.strategy===1||j.match_length===F&&4096<j.strstart-j.match_start)&&(j.match_length=F-1)),j.prev_length>=F&&j.match_length<=j.prev_length){for(q=j.strstart+j.lookahead-F,W=a._tr_tally(j,j.strstart-1-j.prev_match,j.prev_length-F),j.lookahead-=j.prev_length-1,j.prev_length-=2;++j.strstart<=q&&(j.ins_h=(j.ins_h<<j.hash_shift^j.window[j.strstart+F-1])&j.hash_mask,re=j.prev[j.strstart&j.w_mask]=j.head[j.ins_h],j.head[j.ins_h]=j.strstart),--j.prev_length!=0;);if(j.match_available=0,j.match_length=F-1,j.strstart++,W&&(L(j,!1),j.strm.avail_out===0))return C}else if(j.match_available){if((W=a._tr_tally(j,0,j.window[j.strstart-1]))&&L(j,!1),j.strstart++,j.lookahead--,j.strm.avail_out===0)return C}else j.match_available=1,j.strstart++,j.lookahead--}return j.match_available&&(W=a._tr_tally(j,0,j.window[j.strstart-1]),j.match_available=0),j.insert=j.strstart<F-1?j.strstart:F-1,oe===p?(L(j,!0),j.strm.avail_out===0?O:D):j.last_lit&&(L(j,!1),j.strm.avail_out===0)?C:R}function Ie(j,oe,re,W,q){this.good_length=j,this.max_lazy=oe,this.nice_length=re,this.max_chain=W,this.func=q}function Xe(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=b,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new s.Buf16(2*N),this.dyn_dtree=new s.Buf16(2*(2*S+1)),this.bl_tree=new s.Buf16(2*(2*_+1)),X(this.dyn_ltree),X(this.dyn_dtree),X(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new s.Buf16(z+1),this.heap=new s.Buf16(2*k+1),X(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new s.Buf16(2*k+1),X(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Ye(j){var oe;return j&&j.state?(j.total_in=j.total_out=0,j.data_type=v,(oe=j.state).pending=0,oe.pending_out=0,oe.wrap<0&&(oe.wrap=-oe.wrap),oe.status=oe.wrap?A:P,j.adler=oe.wrap===2?0:1,oe.last_flush=d,a._tr_init(oe),h):M(j,m)}function Lt(j){var oe=Ye(j);return oe===h&&function(re){re.window_size=2*re.w_size,X(re.head),re.max_lazy_match=i[re.level].max_lazy,re.good_match=i[re.level].good_length,re.nice_match=i[re.level].nice_length,re.max_chain_length=i[re.level].max_chain,re.strstart=0,re.block_start=0,re.lookahead=0,re.insert=0,re.match_length=re.prev_length=F-1,re.match_available=0,re.ins_h=0}(j.state),oe}function Nt(j,oe,re,W,q,G){if(!j)return m;var ae=1;if(oe===g&&(oe=6),W<0?(ae=0,W=-W):15<W&&(ae=2,W-=16),q<1||x<q||re!==b||W<8||15<W||oe<0||9<oe||G<0||y<G)return M(j,m);W===8&&(W=9);var ce=new Xe;return(j.state=ce).strm=j,ce.wrap=ae,ce.gzhead=null,ce.w_bits=W,ce.w_size=1<<ce.w_bits,ce.w_mask=ce.w_size-1,ce.hash_bits=q+7,ce.hash_size=1<<ce.hash_bits,ce.hash_mask=ce.hash_size-1,ce.hash_shift=~~((ce.hash_bits+F-1)/F),ce.window=new s.Buf8(2*ce.w_size),ce.head=new s.Buf16(ce.hash_size),ce.prev=new s.Buf16(ce.w_size),ce.lit_bufsize=1<<q+6,ce.pending_buf_size=4*ce.lit_bufsize,ce.pending_buf=new s.Buf8(ce.pending_buf_size),ce.d_buf=1*ce.lit_bufsize,ce.l_buf=3*ce.lit_bufsize,ce.level=oe,ce.strategy=G,ce.method=re,Lt(j)}i=[new Ie(0,0,0,0,function(j,oe){var re=65535;for(re>j.pending_buf_size-5&&(re=j.pending_buf_size-5);;){if(j.lookahead<=1){if(ge(j),j.lookahead===0&&oe===d)return C;if(j.lookahead===0)break}j.strstart+=j.lookahead,j.lookahead=0;var W=j.block_start+re;if((j.strstart===0||j.strstart>=W)&&(j.lookahead=j.strstart-W,j.strstart=W,L(j,!1),j.strm.avail_out===0)||j.strstart-j.block_start>=j.w_size-H&&(L(j,!1),j.strm.avail_out===0))return C}return j.insert=0,oe===p?(L(j,!0),j.strm.avail_out===0?O:D):(j.strstart>j.block_start&&(L(j,!1),j.strm.avail_out),C)}),new Ie(4,4,8,4,_e),new Ie(4,5,16,8,_e),new Ie(4,6,32,32,_e),new Ie(4,4,16,16,we),new Ie(8,16,32,32,we),new Ie(8,16,128,128,we),new Ie(8,32,128,256,we),new Ie(32,128,258,1024,we),new Ie(32,258,258,4096,we)],o.deflateInit=function(j,oe){return Nt(j,oe,b,15,8,0)},o.deflateInit2=Nt,o.deflateReset=Lt,o.deflateResetKeep=Ye,o.deflateSetHeader=function(j,oe){return j&&j.state?j.state.wrap!==2?m:(j.state.gzhead=oe,h):m},o.deflate=function(j,oe){var re,W,q,G;if(!j||!j.state||5<oe||oe<0)return j?M(j,m):m;if(W=j.state,!j.output||!j.input&&j.avail_in!==0||W.status===666&&oe!==p)return M(j,j.avail_out===0?-5:m);if(W.strm=j,re=W.last_flush,W.last_flush=oe,W.status===A)if(W.wrap===2)j.adler=0,Y(W,31),Y(W,139),Y(W,8),W.gzhead?(Y(W,(W.gzhead.text?1:0)+(W.gzhead.hcrc?2:0)+(W.gzhead.extra?4:0)+(W.gzhead.name?8:0)+(W.gzhead.comment?16:0)),Y(W,255&W.gzhead.time),Y(W,W.gzhead.time>>8&255),Y(W,W.gzhead.time>>16&255),Y(W,W.gzhead.time>>24&255),Y(W,W.level===9?2:2<=W.strategy||W.level<2?4:0),Y(W,255&W.gzhead.os),W.gzhead.extra&&W.gzhead.extra.length&&(Y(W,255&W.gzhead.extra.length),Y(W,W.gzhead.extra.length>>8&255)),W.gzhead.hcrc&&(j.adler=c(j.adler,W.pending_buf,W.pending,0)),W.gzindex=0,W.status=69):(Y(W,0),Y(W,0),Y(W,0),Y(W,0),Y(W,0),Y(W,W.level===9?2:2<=W.strategy||W.level<2?4:0),Y(W,3),W.status=P);else{var ae=b+(W.w_bits-8<<4)<<8;ae|=(2<=W.strategy||W.level<2?0:W.level<6?1:W.level===6?2:3)<<6,W.strstart!==0&&(ae|=32),ae+=31-ae%31,W.status=P,ee(W,ae),W.strstart!==0&&(ee(W,j.adler>>>16),ee(W,65535&j.adler)),j.adler=1}if(W.status===69)if(W.gzhead.extra){for(q=W.pending;W.gzindex<(65535&W.gzhead.extra.length)&&(W.pending!==W.pending_buf_size||(W.gzhead.hcrc&&W.pending>q&&(j.adler=c(j.adler,W.pending_buf,W.pending-q,q)),V(j),q=W.pending,W.pending!==W.pending_buf_size));)Y(W,255&W.gzhead.extra[W.gzindex]),W.gzindex++;W.gzhead.hcrc&&W.pending>q&&(j.adler=c(j.adler,W.pending_buf,W.pending-q,q)),W.gzindex===W.gzhead.extra.length&&(W.gzindex=0,W.status=73)}else W.status=73;if(W.status===73)if(W.gzhead.name){q=W.pending;do{if(W.pending===W.pending_buf_size&&(W.gzhead.hcrc&&W.pending>q&&(j.adler=c(j.adler,W.pending_buf,W.pending-q,q)),V(j),q=W.pending,W.pending===W.pending_buf_size)){G=1;break}G=W.gzindex<W.gzhead.name.length?255&W.gzhead.name.charCodeAt(W.gzindex++):0,Y(W,G)}while(G!==0);W.gzhead.hcrc&&W.pending>q&&(j.adler=c(j.adler,W.pending_buf,W.pending-q,q)),G===0&&(W.gzindex=0,W.status=91)}else W.status=91;if(W.status===91)if(W.gzhead.comment){q=W.pending;do{if(W.pending===W.pending_buf_size&&(W.gzhead.hcrc&&W.pending>q&&(j.adler=c(j.adler,W.pending_buf,W.pending-q,q)),V(j),q=W.pending,W.pending===W.pending_buf_size)){G=1;break}G=W.gzindex<W.gzhead.comment.length?255&W.gzhead.comment.charCodeAt(W.gzindex++):0,Y(W,G)}while(G!==0);W.gzhead.hcrc&&W.pending>q&&(j.adler=c(j.adler,W.pending_buf,W.pending-q,q)),G===0&&(W.status=103)}else W.status=103;if(W.status===103&&(W.gzhead.hcrc?(W.pending+2>W.pending_buf_size&&V(j),W.pending+2<=W.pending_buf_size&&(Y(W,255&j.adler),Y(W,j.adler>>8&255),j.adler=0,W.status=P)):W.status=P),W.pending!==0){if(V(j),j.avail_out===0)return W.last_flush=-1,h}else if(j.avail_in===0&&$(oe)<=$(re)&&oe!==p)return M(j,-5);if(W.status===666&&j.avail_in!==0)return M(j,-5);if(j.avail_in!==0||W.lookahead!==0||oe!==d&&W.status!==666){var ce=W.strategy===2?function(K,pe){for(var xe;;){if(K.lookahead===0&&(ge(K),K.lookahead===0)){if(pe===d)return C;break}if(K.match_length=0,xe=a._tr_tally(K,0,K.window[K.strstart]),K.lookahead--,K.strstart++,xe&&(L(K,!1),K.strm.avail_out===0))return C}return K.insert=0,pe===p?(L(K,!0),K.strm.avail_out===0?O:D):K.last_lit&&(L(K,!1),K.strm.avail_out===0)?C:R}(W,oe):W.strategy===3?function(K,pe){for(var xe,he,Ae,nt,et=K.window;;){if(K.lookahead<=I){if(ge(K),K.lookahead<=I&&pe===d)return C;if(K.lookahead===0)break}if(K.match_length=0,K.lookahead>=F&&0<K.strstart&&(he=et[Ae=K.strstart-1])===et[++Ae]&&he===et[++Ae]&&he===et[++Ae]){nt=K.strstart+I;do;while(he===et[++Ae]&&he===et[++Ae]&&he===et[++Ae]&&he===et[++Ae]&&he===et[++Ae]&&he===et[++Ae]&&he===et[++Ae]&&he===et[++Ae]&&Ae<nt);K.match_length=I-(nt-Ae),K.match_length>K.lookahead&&(K.match_length=K.lookahead)}if(K.match_length>=F?(xe=a._tr_tally(K,1,K.match_length-F),K.lookahead-=K.match_length,K.strstart+=K.match_length,K.match_length=0):(xe=a._tr_tally(K,0,K.window[K.strstart]),K.lookahead--,K.strstart++),xe&&(L(K,!1),K.strm.avail_out===0))return C}return K.insert=0,pe===p?(L(K,!0),K.strm.avail_out===0?O:D):K.last_lit&&(L(K,!1),K.strm.avail_out===0)?C:R}(W,oe):i[W.level].func(W,oe);if(ce!==O&&ce!==D||(W.status=666),ce===C||ce===O)return j.avail_out===0&&(W.last_flush=-1),h;if(ce===R&&(oe===1?a._tr_align(W):oe!==5&&(a._tr_stored_block(W,0,0,!1),oe===3&&(X(W.head),W.lookahead===0&&(W.strstart=0,W.block_start=0,W.insert=0))),V(j),j.avail_out===0))return W.last_flush=-1,h}return oe!==p?h:W.wrap<=0?1:(W.wrap===2?(Y(W,255&j.adler),Y(W,j.adler>>8&255),Y(W,j.adler>>16&255),Y(W,j.adler>>24&255),Y(W,255&j.total_in),Y(W,j.total_in>>8&255),Y(W,j.total_in>>16&255),Y(W,j.total_in>>24&255)):(ee(W,j.adler>>>16),ee(W,65535&j.adler)),V(j),0<W.wrap&&(W.wrap=-W.wrap),W.pending!==0?h:1)},o.deflateEnd=function(j){var oe;return j&&j.state?(oe=j.state.status)!==A&&oe!==69&&oe!==73&&oe!==91&&oe!==103&&oe!==P&&oe!==666?M(j,m):(j.state=null,oe===P?M(j,-3):h):m},o.deflateSetDictionary=function(j,oe){var re,W,q,G,ae,ce,K,pe,xe=oe.length;if(!j||!j.state||(G=(re=j.state).wrap)===2||G===1&&re.status!==A||re.lookahead)return m;for(G===1&&(j.adler=l(j.adler,oe,xe,0)),re.wrap=0,xe>=re.w_size&&(G===0&&(X(re.head),re.strstart=0,re.block_start=0,re.insert=0),pe=new s.Buf8(re.w_size),s.arraySet(pe,oe,xe-re.w_size,re.w_size,0),oe=pe,xe=re.w_size),ae=j.avail_in,ce=j.next_in,K=j.input,j.avail_in=xe,j.next_in=0,j.input=oe,ge(re);re.lookahead>=F;){for(W=re.strstart,q=re.lookahead-(F-1);re.ins_h=(re.ins_h<<re.hash_shift^re.window[W+F-1])&re.hash_mask,re.prev[W&re.w_mask]=re.head[re.ins_h],re.head[re.ins_h]=W,W++,--q;);re.strstart=W,re.lookahead=F-1,ge(re)}return re.strstart+=re.lookahead,re.block_start=re.strstart,re.insert=re.lookahead,re.lookahead=0,re.match_length=re.prev_length=F-1,re.match_available=0,j.next_in=ce,j.input=K,j.avail_in=ae,re.wrap=G,h},o.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(r,n,o){n.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(r,n,o){n.exports=function(i,s){var a,l,c,u,d,p,h,m,g,y,v,b,x,k,S,_,N,z,F,I,H,A,P,C,R;a=i.state,l=i.next_in,C=i.input,c=l+(i.avail_in-5),u=i.next_out,R=i.output,d=u-(s-i.avail_out),p=u+(i.avail_out-257),h=a.dmax,m=a.wsize,g=a.whave,y=a.wnext,v=a.window,b=a.hold,x=a.bits,k=a.lencode,S=a.distcode,_=(1<<a.lenbits)-1,N=(1<<a.distbits)-1;e:do{x<15&&(b+=C[l++]<<x,x+=8,b+=C[l++]<<x,x+=8),z=k[b&_];t:for(;;){if(b>>>=F=z>>>24,x-=F,(F=z>>>16&255)===0)R[u++]=65535&z;else{if(!(16&F)){if(!(64&F)){z=k[(65535&z)+(b&(1<<F)-1)];continue t}if(32&F){a.mode=12;break e}i.msg="invalid literal/length code",a.mode=30;break e}I=65535&z,(F&=15)&&(x<F&&(b+=C[l++]<<x,x+=8),I+=b&(1<<F)-1,b>>>=F,x-=F),x<15&&(b+=C[l++]<<x,x+=8,b+=C[l++]<<x,x+=8),z=S[b&N];r:for(;;){if(b>>>=F=z>>>24,x-=F,!(16&(F=z>>>16&255))){if(!(64&F)){z=S[(65535&z)+(b&(1<<F)-1)];continue r}i.msg="invalid distance code",a.mode=30;break e}if(H=65535&z,x<(F&=15)&&(b+=C[l++]<<x,(x+=8)<F&&(b+=C[l++]<<x,x+=8)),h<(H+=b&(1<<F)-1)){i.msg="invalid distance too far back",a.mode=30;break e}if(b>>>=F,x-=F,(F=u-d)<H){if(g<(F=H-F)&&a.sane){i.msg="invalid distance too far back",a.mode=30;break e}if(P=v,(A=0)===y){if(A+=m-F,F<I){for(I-=F;R[u++]=v[A++],--F;);A=u-H,P=R}}else if(y<F){if(A+=m+y-F,(F-=y)<I){for(I-=F;R[u++]=v[A++],--F;);if(A=0,y<I){for(I-=F=y;R[u++]=v[A++],--F;);A=u-H,P=R}}}else if(A+=y-F,F<I){for(I-=F;R[u++]=v[A++],--F;);A=u-H,P=R}for(;2<I;)R[u++]=P[A++],R[u++]=P[A++],R[u++]=P[A++],I-=3;I&&(R[u++]=P[A++],1<I&&(R[u++]=P[A++]))}else{for(A=u-H;R[u++]=R[A++],R[u++]=R[A++],R[u++]=R[A++],2<(I-=3););I&&(R[u++]=R[A++],1<I&&(R[u++]=R[A++]))}break}}break}}while(l<c&&u<p);l-=I=x>>3,b&=(1<<(x-=I<<3))-1,i.next_in=l,i.next_out=u,i.avail_in=l<c?c-l+5:5-(l-c),i.avail_out=u<p?p-u+257:257-(u-p),a.hold=b,a.bits=x}},{}],49:[function(r,n,o){var i=r("../utils/common"),s=r("./adler32"),a=r("./crc32"),l=r("./inffast"),c=r("./inftrees"),u=1,d=2,p=0,h=-2,m=1,g=852,y=592;function v(A){return(A>>>24&255)+(A>>>8&65280)+((65280&A)<<8)+((255&A)<<24)}function b(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function x(A){var P;return A&&A.state?(P=A.state,A.total_in=A.total_out=P.total=0,A.msg="",P.wrap&&(A.adler=1&P.wrap),P.mode=m,P.last=0,P.havedict=0,P.dmax=32768,P.head=null,P.hold=0,P.bits=0,P.lencode=P.lendyn=new i.Buf32(g),P.distcode=P.distdyn=new i.Buf32(y),P.sane=1,P.back=-1,p):h}function k(A){var P;return A&&A.state?((P=A.state).wsize=0,P.whave=0,P.wnext=0,x(A)):h}function S(A,P){var C,R;return A&&A.state?(R=A.state,P<0?(C=0,P=-P):(C=1+(P>>4),P<48&&(P&=15)),P&&(P<8||15<P)?h:(R.window!==null&&R.wbits!==P&&(R.window=null),R.wrap=C,R.wbits=P,k(A))):h}function _(A,P){var C,R;return A?(R=new b,(A.state=R).window=null,(C=S(A,P))!==p&&(A.state=null),C):h}var N,z,F=!0;function I(A){if(F){var P;for(N=new i.Buf32(512),z=new i.Buf32(32),P=0;P<144;)A.lens[P++]=8;for(;P<256;)A.lens[P++]=9;for(;P<280;)A.lens[P++]=7;for(;P<288;)A.lens[P++]=8;for(c(u,A.lens,0,288,N,0,A.work,{bits:9}),P=0;P<32;)A.lens[P++]=5;c(d,A.lens,0,32,z,0,A.work,{bits:5}),F=!1}A.lencode=N,A.lenbits=9,A.distcode=z,A.distbits=5}function H(A,P,C,R){var O,D=A.state;return D.window===null&&(D.wsize=1<<D.wbits,D.wnext=0,D.whave=0,D.window=new i.Buf8(D.wsize)),R>=D.wsize?(i.arraySet(D.window,P,C-D.wsize,D.wsize,0),D.wnext=0,D.whave=D.wsize):(R<(O=D.wsize-D.wnext)&&(O=R),i.arraySet(D.window,P,C-R,O,D.wnext),(R-=O)?(i.arraySet(D.window,P,C-R,R,0),D.wnext=R,D.whave=D.wsize):(D.wnext+=O,D.wnext===D.wsize&&(D.wnext=0),D.whave<D.wsize&&(D.whave+=O))),0}o.inflateReset=k,o.inflateReset2=S,o.inflateResetKeep=x,o.inflateInit=function(A){return _(A,15)},o.inflateInit2=_,o.inflate=function(A,P){var C,R,O,D,M,$,X,V,L,Y,ee,te,ge,_e,we,Ie,Xe,Ye,Lt,Nt,j,oe,re,W,q=0,G=new i.Buf8(4),ae=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!A||!A.state||!A.output||!A.input&&A.avail_in!==0)return h;(C=A.state).mode===12&&(C.mode=13),M=A.next_out,O=A.output,X=A.avail_out,D=A.next_in,R=A.input,$=A.avail_in,V=C.hold,L=C.bits,Y=$,ee=X,oe=p;e:for(;;)switch(C.mode){case m:if(C.wrap===0){C.mode=13;break}for(;L<16;){if($===0)break e;$--,V+=R[D++]<<L,L+=8}if(2&C.wrap&&V===35615){G[C.check=0]=255&V,G[1]=V>>>8&255,C.check=a(C.check,G,2,0),L=V=0,C.mode=2;break}if(C.flags=0,C.head&&(C.head.done=!1),!(1&C.wrap)||(((255&V)<<8)+(V>>8))%31){A.msg="incorrect header check",C.mode=30;break}if((15&V)!=8){A.msg="unknown compression method",C.mode=30;break}if(L-=4,j=8+(15&(V>>>=4)),C.wbits===0)C.wbits=j;else if(j>C.wbits){A.msg="invalid window size",C.mode=30;break}C.dmax=1<<j,A.adler=C.check=1,C.mode=512&V?10:12,L=V=0;break;case 2:for(;L<16;){if($===0)break e;$--,V+=R[D++]<<L,L+=8}if(C.flags=V,(255&C.flags)!=8){A.msg="unknown compression method",C.mode=30;break}if(57344&C.flags){A.msg="unknown header flags set",C.mode=30;break}C.head&&(C.head.text=V>>8&1),512&C.flags&&(G[0]=255&V,G[1]=V>>>8&255,C.check=a(C.check,G,2,0)),L=V=0,C.mode=3;case 3:for(;L<32;){if($===0)break e;$--,V+=R[D++]<<L,L+=8}C.head&&(C.head.time=V),512&C.flags&&(G[0]=255&V,G[1]=V>>>8&255,G[2]=V>>>16&255,G[3]=V>>>24&255,C.check=a(C.check,G,4,0)),L=V=0,C.mode=4;case 4:for(;L<16;){if($===0)break e;$--,V+=R[D++]<<L,L+=8}C.head&&(C.head.xflags=255&V,C.head.os=V>>8),512&C.flags&&(G[0]=255&V,G[1]=V>>>8&255,C.check=a(C.check,G,2,0)),L=V=0,C.mode=5;case 5:if(1024&C.flags){for(;L<16;){if($===0)break e;$--,V+=R[D++]<<L,L+=8}C.length=V,C.head&&(C.head.extra_len=V),512&C.flags&&(G[0]=255&V,G[1]=V>>>8&255,C.check=a(C.check,G,2,0)),L=V=0}else C.head&&(C.head.extra=null);C.mode=6;case 6:if(1024&C.flags&&($<(te=C.length)&&(te=$),te&&(C.head&&(j=C.head.extra_len-C.length,C.head.extra||(C.head.extra=new Array(C.head.extra_len)),i.arraySet(C.head.extra,R,D,te,j)),512&C.flags&&(C.check=a(C.check,R,te,D)),$-=te,D+=te,C.length-=te),C.length))break e;C.length=0,C.mode=7;case 7:if(2048&C.flags){if($===0)break e;for(te=0;j=R[D+te++],C.head&&j&&C.length<65536&&(C.head.name+=String.fromCharCode(j)),j&&te<$;);if(512&C.flags&&(C.check=a(C.check,R,te,D)),$-=te,D+=te,j)break e}else C.head&&(C.head.name=null);C.length=0,C.mode=8;case 8:if(4096&C.flags){if($===0)break e;for(te=0;j=R[D+te++],C.head&&j&&C.length<65536&&(C.head.comment+=String.fromCharCode(j)),j&&te<$;);if(512&C.flags&&(C.check=a(C.check,R,te,D)),$-=te,D+=te,j)break e}else C.head&&(C.head.comment=null);C.mode=9;case 9:if(512&C.flags){for(;L<16;){if($===0)break e;$--,V+=R[D++]<<L,L+=8}if(V!==(65535&C.check)){A.msg="header crc mismatch",C.mode=30;break}L=V=0}C.head&&(C.head.hcrc=C.flags>>9&1,C.head.done=!0),A.adler=C.check=0,C.mode=12;break;case 10:for(;L<32;){if($===0)break e;$--,V+=R[D++]<<L,L+=8}A.adler=C.check=v(V),L=V=0,C.mode=11;case 11:if(C.havedict===0)return A.next_out=M,A.avail_out=X,A.next_in=D,A.avail_in=$,C.hold=V,C.bits=L,2;A.adler=C.check=1,C.mode=12;case 12:if(P===5||P===6)break e;case 13:if(C.last){V>>>=7&L,L-=7&L,C.mode=27;break}for(;L<3;){if($===0)break e;$--,V+=R[D++]<<L,L+=8}switch(C.last=1&V,L-=1,3&(V>>>=1)){case 0:C.mode=14;break;case 1:if(I(C),C.mode=20,P!==6)break;V>>>=2,L-=2;break e;case 2:C.mode=17;break;case 3:A.msg="invalid block type",C.mode=30}V>>>=2,L-=2;break;case 14:for(V>>>=7&L,L-=7&L;L<32;){if($===0)break e;$--,V+=R[D++]<<L,L+=8}if((65535&V)!=(V>>>16^65535)){A.msg="invalid stored block lengths",C.mode=30;break}if(C.length=65535&V,L=V=0,C.mode=15,P===6)break e;case 15:C.mode=16;case 16:if(te=C.length){if($<te&&(te=$),X<te&&(te=X),te===0)break e;i.arraySet(O,R,D,te,M),$-=te,D+=te,X-=te,M+=te,C.length-=te;break}C.mode=12;break;case 17:for(;L<14;){if($===0)break e;$--,V+=R[D++]<<L,L+=8}if(C.nlen=257+(31&V),V>>>=5,L-=5,C.ndist=1+(31&V),V>>>=5,L-=5,C.ncode=4+(15&V),V>>>=4,L-=4,286<C.nlen||30<C.ndist){A.msg="too many length or distance symbols",C.mode=30;break}C.have=0,C.mode=18;case 18:for(;C.have<C.ncode;){for(;L<3;){if($===0)break e;$--,V+=R[D++]<<L,L+=8}C.lens[ae[C.have++]]=7&V,V>>>=3,L-=3}for(;C.have<19;)C.lens[ae[C.have++]]=0;if(C.lencode=C.lendyn,C.lenbits=7,re={bits:C.lenbits},oe=c(0,C.lens,0,19,C.lencode,0,C.work,re),C.lenbits=re.bits,oe){A.msg="invalid code lengths set",C.mode=30;break}C.have=0,C.mode=19;case 19:for(;C.have<C.nlen+C.ndist;){for(;Ie=(q=C.lencode[V&(1<<C.lenbits)-1])>>>16&255,Xe=65535&q,!((we=q>>>24)<=L);){if($===0)break e;$--,V+=R[D++]<<L,L+=8}if(Xe<16)V>>>=we,L-=we,C.lens[C.have++]=Xe;else{if(Xe===16){for(W=we+2;L<W;){if($===0)break e;$--,V+=R[D++]<<L,L+=8}if(V>>>=we,L-=we,C.have===0){A.msg="invalid bit length repeat",C.mode=30;break}j=C.lens[C.have-1],te=3+(3&V),V>>>=2,L-=2}else if(Xe===17){for(W=we+3;L<W;){if($===0)break e;$--,V+=R[D++]<<L,L+=8}L-=we,j=0,te=3+(7&(V>>>=we)),V>>>=3,L-=3}else{for(W=we+7;L<W;){if($===0)break e;$--,V+=R[D++]<<L,L+=8}L-=we,j=0,te=11+(127&(V>>>=we)),V>>>=7,L-=7}if(C.have+te>C.nlen+C.ndist){A.msg="invalid bit length repeat",C.mode=30;break}for(;te--;)C.lens[C.have++]=j}}if(C.mode===30)break;if(C.lens[256]===0){A.msg="invalid code -- missing end-of-block",C.mode=30;break}if(C.lenbits=9,re={bits:C.lenbits},oe=c(u,C.lens,0,C.nlen,C.lencode,0,C.work,re),C.lenbits=re.bits,oe){A.msg="invalid literal/lengths set",C.mode=30;break}if(C.distbits=6,C.distcode=C.distdyn,re={bits:C.distbits},oe=c(d,C.lens,C.nlen,C.ndist,C.distcode,0,C.work,re),C.distbits=re.bits,oe){A.msg="invalid distances set",C.mode=30;break}if(C.mode=20,P===6)break e;case 20:C.mode=21;case 21:if(6<=$&&258<=X){A.next_out=M,A.avail_out=X,A.next_in=D,A.avail_in=$,C.hold=V,C.bits=L,l(A,ee),M=A.next_out,O=A.output,X=A.avail_out,D=A.next_in,R=A.input,$=A.avail_in,V=C.hold,L=C.bits,C.mode===12&&(C.back=-1);break}for(C.back=0;Ie=(q=C.lencode[V&(1<<C.lenbits)-1])>>>16&255,Xe=65535&q,!((we=q>>>24)<=L);){if($===0)break e;$--,V+=R[D++]<<L,L+=8}if(Ie&&!(240&Ie)){for(Ye=we,Lt=Ie,Nt=Xe;Ie=(q=C.lencode[Nt+((V&(1<<Ye+Lt)-1)>>Ye)])>>>16&255,Xe=65535&q,!(Ye+(we=q>>>24)<=L);){if($===0)break e;$--,V+=R[D++]<<L,L+=8}V>>>=Ye,L-=Ye,C.back+=Ye}if(V>>>=we,L-=we,C.back+=we,C.length=Xe,Ie===0){C.mode=26;break}if(32&Ie){C.back=-1,C.mode=12;break}if(64&Ie){A.msg="invalid literal/length code",C.mode=30;break}C.extra=15&Ie,C.mode=22;case 22:if(C.extra){for(W=C.extra;L<W;){if($===0)break e;$--,V+=R[D++]<<L,L+=8}C.length+=V&(1<<C.extra)-1,V>>>=C.extra,L-=C.extra,C.back+=C.extra}C.was=C.length,C.mode=23;case 23:for(;Ie=(q=C.distcode[V&(1<<C.distbits)-1])>>>16&255,Xe=65535&q,!((we=q>>>24)<=L);){if($===0)break e;$--,V+=R[D++]<<L,L+=8}if(!(240&Ie)){for(Ye=we,Lt=Ie,Nt=Xe;Ie=(q=C.distcode[Nt+((V&(1<<Ye+Lt)-1)>>Ye)])>>>16&255,Xe=65535&q,!(Ye+(we=q>>>24)<=L);){if($===0)break e;$--,V+=R[D++]<<L,L+=8}V>>>=Ye,L-=Ye,C.back+=Ye}if(V>>>=we,L-=we,C.back+=we,64&Ie){A.msg="invalid distance code",C.mode=30;break}C.offset=Xe,C.extra=15&Ie,C.mode=24;case 24:if(C.extra){for(W=C.extra;L<W;){if($===0)break e;$--,V+=R[D++]<<L,L+=8}C.offset+=V&(1<<C.extra)-1,V>>>=C.extra,L-=C.extra,C.back+=C.extra}if(C.offset>C.dmax){A.msg="invalid distance too far back",C.mode=30;break}C.mode=25;case 25:if(X===0)break e;if(te=ee-X,C.offset>te){if((te=C.offset-te)>C.whave&&C.sane){A.msg="invalid distance too far back",C.mode=30;break}ge=te>C.wnext?(te-=C.wnext,C.wsize-te):C.wnext-te,te>C.length&&(te=C.length),_e=C.window}else _e=O,ge=M-C.offset,te=C.length;for(X<te&&(te=X),X-=te,C.length-=te;O[M++]=_e[ge++],--te;);C.length===0&&(C.mode=21);break;case 26:if(X===0)break e;O[M++]=C.length,X--,C.mode=21;break;case 27:if(C.wrap){for(;L<32;){if($===0)break e;$--,V|=R[D++]<<L,L+=8}if(ee-=X,A.total_out+=ee,C.total+=ee,ee&&(A.adler=C.check=C.flags?a(C.check,O,ee,M-ee):s(C.check,O,ee,M-ee)),ee=X,(C.flags?V:v(V))!==C.check){A.msg="incorrect data check",C.mode=30;break}L=V=0}C.mode=28;case 28:if(C.wrap&&C.flags){for(;L<32;){if($===0)break e;$--,V+=R[D++]<<L,L+=8}if(V!==(4294967295&C.total)){A.msg="incorrect length check",C.mode=30;break}L=V=0}C.mode=29;case 29:oe=1;break e;case 30:oe=-3;break e;case 31:return-4;case 32:default:return h}return A.next_out=M,A.avail_out=X,A.next_in=D,A.avail_in=$,C.hold=V,C.bits=L,(C.wsize||ee!==A.avail_out&&C.mode<30&&(C.mode<27||P!==4))&&H(A,A.output,A.next_out,ee-A.avail_out)?(C.mode=31,-4):(Y-=A.avail_in,ee-=A.avail_out,A.total_in+=Y,A.total_out+=ee,C.total+=ee,C.wrap&&ee&&(A.adler=C.check=C.flags?a(C.check,O,ee,A.next_out-ee):s(C.check,O,ee,A.next_out-ee)),A.data_type=C.bits+(C.last?64:0)+(C.mode===12?128:0)+(C.mode===20||C.mode===15?256:0),(Y==0&&ee===0||P===4)&&oe===p&&(oe=-5),oe)},o.inflateEnd=function(A){if(!A||!A.state)return h;var P=A.state;return P.window&&(P.window=null),A.state=null,p},o.inflateGetHeader=function(A,P){var C;return A&&A.state&&2&(C=A.state).wrap?((C.head=P).done=!1,p):h},o.inflateSetDictionary=function(A,P){var C,R=P.length;return A&&A.state?(C=A.state).wrap!==0&&C.mode!==11?h:C.mode===11&&s(1,P,R,0)!==C.check?-3:H(A,P,R,R)?(C.mode=31,-4):(C.havedict=1,p):h},o.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(r,n,o){var i=r("../utils/common"),s=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],l=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],c=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];n.exports=function(u,d,p,h,m,g,y,v){var b,x,k,S,_,N,z,F,I,H=v.bits,A=0,P=0,C=0,R=0,O=0,D=0,M=0,$=0,X=0,V=0,L=null,Y=0,ee=new i.Buf16(16),te=new i.Buf16(16),ge=null,_e=0;for(A=0;A<=15;A++)ee[A]=0;for(P=0;P<h;P++)ee[d[p+P]]++;for(O=H,R=15;1<=R&&ee[R]===0;R--);if(R<O&&(O=R),R===0)return m[g++]=20971520,m[g++]=20971520,v.bits=1,0;for(C=1;C<R&&ee[C]===0;C++);for(O<C&&(O=C),A=$=1;A<=15;A++)if($<<=1,($-=ee[A])<0)return-1;if(0<$&&(u===0||R!==1))return-1;for(te[1]=0,A=1;A<15;A++)te[A+1]=te[A]+ee[A];for(P=0;P<h;P++)d[p+P]!==0&&(y[te[d[p+P]]++]=P);if(N=u===0?(L=ge=y,19):u===1?(L=s,Y-=257,ge=a,_e-=257,256):(L=l,ge=c,-1),A=C,_=g,M=P=V=0,k=-1,S=(X=1<<(D=O))-1,u===1&&852<X||u===2&&592<X)return 1;for(;;){for(z=A-M,I=y[P]<N?(F=0,y[P]):y[P]>N?(F=ge[_e+y[P]],L[Y+y[P]]):(F=96,0),b=1<<A-M,C=x=1<<D;m[_+(V>>M)+(x-=b)]=z<<24|F<<16|I|0,x!==0;);for(b=1<<A-1;V&b;)b>>=1;if(b!==0?(V&=b-1,V+=b):V=0,P++,--ee[A]==0){if(A===R)break;A=d[p+y[P]]}if(O<A&&(V&S)!==k){for(M===0&&(M=O),_+=C,$=1<<(D=A-M);D+M<R&&!(($-=ee[D+M])<=0);)D++,$<<=1;if(X+=1<<D,u===1&&852<X||u===2&&592<X)return 1;m[k=V&S]=O<<24|D<<16|_-g|0}}return V!==0&&(m[_+V]=A-M<<24|64<<16|0),v.bits=O,0}},{"../utils/common":41}],51:[function(r,n,o){n.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(r,n,o){var i=r("../utils/common"),s=0,a=1;function l(q){for(var G=q.length;0<=--G;)q[G]=0}var c=0,u=29,d=256,p=d+1+u,h=30,m=19,g=2*p+1,y=15,v=16,b=7,x=256,k=16,S=17,_=18,N=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],z=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],F=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],I=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],H=new Array(2*(p+2));l(H);var A=new Array(2*h);l(A);var P=new Array(512);l(P);var C=new Array(256);l(C);var R=new Array(u);l(R);var O,D,M,$=new Array(h);function X(q,G,ae,ce,K){this.static_tree=q,this.extra_bits=G,this.extra_base=ae,this.elems=ce,this.max_length=K,this.has_stree=q&&q.length}function V(q,G){this.dyn_tree=q,this.max_code=0,this.stat_desc=G}function L(q){return q<256?P[q]:P[256+(q>>>7)]}function Y(q,G){q.pending_buf[q.pending++]=255&G,q.pending_buf[q.pending++]=G>>>8&255}function ee(q,G,ae){q.bi_valid>v-ae?(q.bi_buf|=G<<q.bi_valid&65535,Y(q,q.bi_buf),q.bi_buf=G>>v-q.bi_valid,q.bi_valid+=ae-v):(q.bi_buf|=G<<q.bi_valid&65535,q.bi_valid+=ae)}function te(q,G,ae){ee(q,ae[2*G],ae[2*G+1])}function ge(q,G){for(var ae=0;ae|=1&q,q>>>=1,ae<<=1,0<--G;);return ae>>>1}function _e(q,G,ae){var ce,K,pe=new Array(y+1),xe=0;for(ce=1;ce<=y;ce++)pe[ce]=xe=xe+ae[ce-1]<<1;for(K=0;K<=G;K++){var he=q[2*K+1];he!==0&&(q[2*K]=ge(pe[he]++,he))}}function we(q){var G;for(G=0;G<p;G++)q.dyn_ltree[2*G]=0;for(G=0;G<h;G++)q.dyn_dtree[2*G]=0;for(G=0;G<m;G++)q.bl_tree[2*G]=0;q.dyn_ltree[2*x]=1,q.opt_len=q.static_len=0,q.last_lit=q.matches=0}function Ie(q){8<q.bi_valid?Y(q,q.bi_buf):0<q.bi_valid&&(q.pending_buf[q.pending++]=q.bi_buf),q.bi_buf=0,q.bi_valid=0}function Xe(q,G,ae,ce){var K=2*G,pe=2*ae;return q[K]<q[pe]||q[K]===q[pe]&&ce[G]<=ce[ae]}function Ye(q,G,ae){for(var ce=q.heap[ae],K=ae<<1;K<=q.heap_len&&(K<q.heap_len&&Xe(G,q.heap[K+1],q.heap[K],q.depth)&&K++,!Xe(G,ce,q.heap[K],q.depth));)q.heap[ae]=q.heap[K],ae=K,K<<=1;q.heap[ae]=ce}function Lt(q,G,ae){var ce,K,pe,xe,he=0;if(q.last_lit!==0)for(;ce=q.pending_buf[q.d_buf+2*he]<<8|q.pending_buf[q.d_buf+2*he+1],K=q.pending_buf[q.l_buf+he],he++,ce===0?te(q,K,G):(te(q,(pe=C[K])+d+1,G),(xe=N[pe])!==0&&ee(q,K-=R[pe],xe),te(q,pe=L(--ce),ae),(xe=z[pe])!==0&&ee(q,ce-=$[pe],xe)),he<q.last_lit;);te(q,x,G)}function Nt(q,G){var ae,ce,K,pe=G.dyn_tree,xe=G.stat_desc.static_tree,he=G.stat_desc.has_stree,Ae=G.stat_desc.elems,nt=-1;for(q.heap_len=0,q.heap_max=g,ae=0;ae<Ae;ae++)pe[2*ae]!==0?(q.heap[++q.heap_len]=nt=ae,q.depth[ae]=0):pe[2*ae+1]=0;for(;q.heap_len<2;)pe[2*(K=q.heap[++q.heap_len]=nt<2?++nt:0)]=1,q.depth[K]=0,q.opt_len--,he&&(q.static_len-=xe[2*K+1]);for(G.max_code=nt,ae=q.heap_len>>1;1<=ae;ae--)Ye(q,pe,ae);for(K=Ae;ae=q.heap[1],q.heap[1]=q.heap[q.heap_len--],Ye(q,pe,1),ce=q.heap[1],q.heap[--q.heap_max]=ae,q.heap[--q.heap_max]=ce,pe[2*K]=pe[2*ae]+pe[2*ce],q.depth[K]=(q.depth[ae]>=q.depth[ce]?q.depth[ae]:q.depth[ce])+1,pe[2*ae+1]=pe[2*ce+1]=K,q.heap[1]=K++,Ye(q,pe,1),2<=q.heap_len;);q.heap[--q.heap_max]=q.heap[1],function(et,Er){var hi,Hr,pi,xt,Po,ln,mr=Er.dyn_tree,Ys=Er.max_code,Rl=Er.stat_desc.static_tree,Lp=Er.stat_desc.has_stree,Zs=Er.stat_desc.extra_bits,ts=Er.stat_desc.extra_base,rs=Er.stat_desc.max_length,fo=0;for(xt=0;xt<=y;xt++)et.bl_count[xt]=0;for(mr[2*et.heap[et.heap_max]+1]=0,hi=et.heap_max+1;hi<g;hi++)rs<(xt=mr[2*mr[2*(Hr=et.heap[hi])+1]+1]+1)&&(xt=rs,fo++),mr[2*Hr+1]=xt,Ys<Hr||(et.bl_count[xt]++,Po=0,ts<=Hr&&(Po=Zs[Hr-ts]),ln=mr[2*Hr],et.opt_len+=ln*(xt+Po),Lp&&(et.static_len+=ln*(Rl[2*Hr+1]+Po)));if(fo!==0){do{for(xt=rs-1;et.bl_count[xt]===0;)xt--;et.bl_count[xt]--,et.bl_count[xt+1]+=2,et.bl_count[rs]--,fo-=2}while(0<fo);for(xt=rs;xt!==0;xt--)for(Hr=et.bl_count[xt];Hr!==0;)Ys<(pi=et.heap[--hi])||(mr[2*pi+1]!==xt&&(et.opt_len+=(xt-mr[2*pi+1])*mr[2*pi],mr[2*pi+1]=xt),Hr--)}}(q,G),_e(pe,nt,q.bl_count)}function j(q,G,ae){var ce,K,pe=-1,xe=G[1],he=0,Ae=7,nt=4;for(xe===0&&(Ae=138,nt=3),G[2*(ae+1)+1]=65535,ce=0;ce<=ae;ce++)K=xe,xe=G[2*(ce+1)+1],++he<Ae&&K===xe||(he<nt?q.bl_tree[2*K]+=he:K!==0?(K!==pe&&q.bl_tree[2*K]++,q.bl_tree[2*k]++):he<=10?q.bl_tree[2*S]++:q.bl_tree[2*_]++,pe=K,nt=(he=0)===xe?(Ae=138,3):K===xe?(Ae=6,3):(Ae=7,4))}function oe(q,G,ae){var ce,K,pe=-1,xe=G[1],he=0,Ae=7,nt=4;for(xe===0&&(Ae=138,nt=3),ce=0;ce<=ae;ce++)if(K=xe,xe=G[2*(ce+1)+1],!(++he<Ae&&K===xe)){if(he<nt)for(;te(q,K,q.bl_tree),--he!=0;);else K!==0?(K!==pe&&(te(q,K,q.bl_tree),he--),te(q,k,q.bl_tree),ee(q,he-3,2)):he<=10?(te(q,S,q.bl_tree),ee(q,he-3,3)):(te(q,_,q.bl_tree),ee(q,he-11,7));pe=K,nt=(he=0)===xe?(Ae=138,3):K===xe?(Ae=6,3):(Ae=7,4)}}l($);var re=!1;function W(q,G,ae,ce){ee(q,(c<<1)+(ce?1:0),3),function(K,pe,xe,he){Ie(K),Y(K,xe),Y(K,~xe),i.arraySet(K.pending_buf,K.window,pe,xe,K.pending),K.pending+=xe}(q,G,ae)}o._tr_init=function(q){re||(function(){var G,ae,ce,K,pe,xe=new Array(y+1);for(K=ce=0;K<u-1;K++)for(R[K]=ce,G=0;G<1<<N[K];G++)C[ce++]=K;for(C[ce-1]=K,K=pe=0;K<16;K++)for($[K]=pe,G=0;G<1<<z[K];G++)P[pe++]=K;for(pe>>=7;K<h;K++)for($[K]=pe<<7,G=0;G<1<<z[K]-7;G++)P[256+pe++]=K;for(ae=0;ae<=y;ae++)xe[ae]=0;for(G=0;G<=143;)H[2*G+1]=8,G++,xe[8]++;for(;G<=255;)H[2*G+1]=9,G++,xe[9]++;for(;G<=279;)H[2*G+1]=7,G++,xe[7]++;for(;G<=287;)H[2*G+1]=8,G++,xe[8]++;for(_e(H,p+1,xe),G=0;G<h;G++)A[2*G+1]=5,A[2*G]=ge(G,5);O=new X(H,N,d+1,p,y),D=new X(A,z,0,h,y),M=new X(new Array(0),F,0,m,b)}(),re=!0),q.l_desc=new V(q.dyn_ltree,O),q.d_desc=new V(q.dyn_dtree,D),q.bl_desc=new V(q.bl_tree,M),q.bi_buf=0,q.bi_valid=0,we(q)},o._tr_stored_block=W,o._tr_flush_block=function(q,G,ae,ce){var K,pe,xe=0;0<q.level?(q.strm.data_type===2&&(q.strm.data_type=function(he){var Ae,nt=4093624447;for(Ae=0;Ae<=31;Ae++,nt>>>=1)if(1&nt&&he.dyn_ltree[2*Ae]!==0)return s;if(he.dyn_ltree[18]!==0||he.dyn_ltree[20]!==0||he.dyn_ltree[26]!==0)return a;for(Ae=32;Ae<d;Ae++)if(he.dyn_ltree[2*Ae]!==0)return a;return s}(q)),Nt(q,q.l_desc),Nt(q,q.d_desc),xe=function(he){var Ae;for(j(he,he.dyn_ltree,he.l_desc.max_code),j(he,he.dyn_dtree,he.d_desc.max_code),Nt(he,he.bl_desc),Ae=m-1;3<=Ae&&he.bl_tree[2*I[Ae]+1]===0;Ae--);return he.opt_len+=3*(Ae+1)+5+5+4,Ae}(q),K=q.opt_len+3+7>>>3,(pe=q.static_len+3+7>>>3)<=K&&(K=pe)):K=pe=ae+5,ae+4<=K&&G!==-1?W(q,G,ae,ce):q.strategy===4||pe===K?(ee(q,2+(ce?1:0),3),Lt(q,H,A)):(ee(q,4+(ce?1:0),3),function(he,Ae,nt,et){var Er;for(ee(he,Ae-257,5),ee(he,nt-1,5),ee(he,et-4,4),Er=0;Er<et;Er++)ee(he,he.bl_tree[2*I[Er]+1],3);oe(he,he.dyn_ltree,Ae-1),oe(he,he.dyn_dtree,nt-1)}(q,q.l_desc.max_code+1,q.d_desc.max_code+1,xe+1),Lt(q,q.dyn_ltree,q.dyn_dtree)),we(q),ce&&Ie(q)},o._tr_tally=function(q,G,ae){return q.pending_buf[q.d_buf+2*q.last_lit]=G>>>8&255,q.pending_buf[q.d_buf+2*q.last_lit+1]=255&G,q.pending_buf[q.l_buf+q.last_lit]=255&ae,q.last_lit++,G===0?q.dyn_ltree[2*ae]++:(q.matches++,G--,q.dyn_ltree[2*(C[ae]+d+1)]++,q.dyn_dtree[2*L(G)]++),q.last_lit===q.lit_bufsize-1},o._tr_align=function(q){ee(q,2,3),te(q,x,H),function(G){G.bi_valid===16?(Y(G,G.bi_buf),G.bi_buf=0,G.bi_valid=0):8<=G.bi_valid&&(G.pending_buf[G.pending++]=255&G.bi_buf,G.bi_buf>>=8,G.bi_valid-=8)}(q)}},{"../utils/common":41}],53:[function(r,n,o){n.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(r,n,o){(function(i){(function(s,a){if(!s.setImmediate){var l,c,u,d,p=1,h={},m=!1,g=s.document,y=Object.getPrototypeOf&&Object.getPrototypeOf(s);y=y&&y.setTimeout?y:s,l={}.toString.call(s.process)==="[object process]"?function(k){process.nextTick(function(){b(k)})}:function(){if(s.postMessage&&!s.importScripts){var k=!0,S=s.onmessage;return s.onmessage=function(){k=!1},s.postMessage("","*"),s.onmessage=S,k}}()?(d="setImmediate$"+Math.random()+"$",s.addEventListener?s.addEventListener("message",x,!1):s.attachEvent("onmessage",x),function(k){s.postMessage(d+k,"*")}):s.MessageChannel?((u=new MessageChannel).port1.onmessage=function(k){b(k.data)},function(k){u.port2.postMessage(k)}):g&&"onreadystatechange"in g.createElement("script")?(c=g.documentElement,function(k){var S=g.createElement("script");S.onreadystatechange=function(){b(k),S.onreadystatechange=null,c.removeChild(S),S=null},c.appendChild(S)}):function(k){setTimeout(b,0,k)},y.setImmediate=function(k){typeof k!="function"&&(k=new Function(""+k));for(var S=new Array(arguments.length-1),_=0;_<S.length;_++)S[_]=arguments[_+1];var N={callback:k,args:S};return h[p]=N,l(p),p++},y.clearImmediate=v}function v(k){delete h[k]}function b(k){if(m)setTimeout(b,0,k);else{var S=h[k];if(S){m=!0;try{(function(_){var N=_.callback,z=_.args;switch(z.length){case 0:N();break;case 1:N(z[0]);break;case 2:N(z[0],z[1]);break;case 3:N(z[0],z[1],z[2]);break;default:N.apply(a,z)}})(S)}finally{v(k),m=!1}}}}function x(k){k.source===s&&typeof k.data=="string"&&k.data.indexOf(d)===0&&b(+k.data.slice(d.length))}})(typeof self>"u"?i===void 0?this:i:self)}).call(this,typeof nc<"u"?nc:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(Y3);var FY=Y3.exports;const Pde=Rh(FY),PY=bt({footer:{marginTop:"auto",paddingTop:w.spacingVerticalXXL,paddingBottom:w.spacingVerticalL,borderTop:`1px solid ${w.colorNeutralStroke2}`,display:"flex",justifyContent:"center",alignItems:"center",gap:w.spacingHorizontalM},text:{color:w.colorNeutralForeground3,fontSize:w.fontSizeBase200},iconLink:{display:"inline-flex",alignItems:"center",gap:w.spacingHorizontalXS,color:w.colorNeutralForeground3,fontSize:w.fontSizeBase200,textDecoration:"none",":hover":{color:w.colorBrandForeground1,textDecoration:"underline"}}});function cu(){const e=PY();return f.jsxs("footer",{className:e.footer,children:[f.jsx(E,{className:e.text,children:"Power Platform Solution Blueprint (PPSB) v0.5"}),f.jsx(E,{className:e.text,children:"•"}),f.jsxs(E,{className:e.text,children:["by"," ",f.jsx(_0,{href:"https://github.com/sabrish",target:"_blank",rel:"noopener noreferrer",style:{color:w.colorNeutralForeground3,textDecoration:"none"},children:"SAB"})]}),f.jsx(E,{className:e.text,children:"•"}),f.jsxs(_0,{href:"https://github.com/sabrish/power-platform-solution-blueprint",target:"_blank",rel:"noopener noreferrer",className:e.iconLink,children:[f.jsx(Y5,{}),f.jsx("span",{children:"GitHub"})]})]})}const IY=bt({container:{padding:w.spacingVerticalXXL,maxWidth:"800px",margin:"0 auto",minHeight:"100vh",display:"flex",flexDirection:"column"},header:{marginBottom:w.spacingVerticalXXL,display:"flex",flexDirection:"column",gap:w.spacingVerticalS},subtitle:{color:w.colorNeutralForeground3},section:{marginBottom:w.spacingVerticalXL},radioGroup:{display:"flex",flexDirection:"column",gap:w.spacingVerticalL},radioOption:{display:"flex",flexDirection:"column",gap:w.spacingVerticalS},radioContent:{marginLeft:"28px",display:"flex",flexDirection:"column",gap:w.spacingVerticalM},dropdown:{minWidth:"400px"},selectedItems:{display:"flex",flexWrap:"wrap",gap:w.spacingHorizontalS,marginTop:w.spacingVerticalS},solutionInfo:{display:"flex",flexDirection:"column"},secondaryText:{color:w.colorNeutralForeground3,fontSize:w.fontSizeBase200},subOptions:{marginTop:w.spacingVerticalM,paddingLeft:w.spacingHorizontalL,display:"flex",flexDirection:"column",gap:w.spacingVerticalM},checkboxContainer:{marginTop:w.spacingVerticalL,paddingTop:w.spacingVerticalL,borderTop:`1px solid ${w.colorNeutralStroke2}`},buttonContainer:{marginTop:w.spacingVerticalXXL,display:"flex",justifyContent:"flex-end"},loadingContainer:{display:"flex",alignItems:"center",justifyContent:"center",gap:w.spacingHorizontalM,padding:w.spacingVerticalXXL},errorContainer:{marginBottom:w.spacingVerticalL},hint:{fontSize:w.fontSizeBase200,color:w.colorNeutralForeground3,marginTop:w.spacingVerticalXS}});function MY({onScopeSelected:e,onCancel:t}){const r=IY(),[n,o]=B.useState([]),[i,s]=B.useState([]),[a,l]=B.useState(!0),[c,u]=B.useState(null),[d,p]=B.useState("solution"),[h,m]=B.useState([]),[g,y]=B.useState("all-solutions"),[v,b]=B.useState([]),[x,k]=B.useState(!0),[S,_]=B.useState(!0);B.useEffect(()=>{N()},[]),B.useEffect(()=>{m([]),b([]),y("all-solutions")},[d]),B.useEffect(()=>{g==="all-solutions"&&b([])},[g]);const N=async()=>{try{if(l(!0),u(null),!window.toolboxAPI||!window.dataverseAPI)throw new Error("PPTB Desktop API not available. Please run this tool inside PPTB Desktop.");const C=await window.toolboxAPI.getToolContext(),R=(C==null?void 0:C.connectionUrl)||"Current Environment",O=new U3(window.dataverseAPI,R),D=new G3(O),M=new X3(O),[$,X]=await Promise.all([D.getPublishers(),M.getSolutions()]);o($),s(X),$.length===0&&X.length===0&&u("No custom publishers or solutions found in this environment.")}catch(C){const R=C instanceof Error?C.message:"An unknown error occurred";u(R),console.error("Error loading publishers and solutions:",C instanceof Error?C.message:"Unknown error")}finally{l(!1)}},z=()=>{N()},F=(C,R)=>{p(R.value)},I=(C,R)=>{C&&typeof C=="object"&&"stopPropagation"in C&&typeof C.stopPropagation=="function"&&C.stopPropagation(),y(R.value)},H=B.useMemo(()=>{if(d!=="publisher"||h.length===0)return[];const C=n.filter(R=>h.includes(R.publisherid)).map(R=>R.uniquename);return i.filter(R=>C.includes(R.publisherid.uniquename))},[d,h,n,i]),A=()=>d==="publisher"?!(h.length===0||g==="specific-solutions"&&v.length===0):d==="solution"?v.length>0:!1,P=()=>{if(!A())return;let C;if(d==="publisher"){const R=n.filter(O=>h.includes(O.publisherid));if(C={type:"publisher",publisherIds:h,publisherNames:R.map(O=>O.friendlyname),publisherPrefixes:R.map(O=>O.customizationprefix),mode:g,includeSystem:x,excludeSystemFields:S},g==="specific-solutions"){const O=i.filter(D=>v.includes(D.solutionid));C.solutionIds=v,C.solutionNames=O.map(D=>D.friendlyname)}}else{const R=i.filter(O=>v.includes(O.solutionid));C={type:"solution",solutionIds:v,solutionNames:R.map(O=>O.friendlyname),includeSystem:x,excludeSystemFields:S}}e(C)};return a?f.jsxs("div",{className:r.container,children:[f.jsxs("div",{className:r.loadingContainer,children:[f.jsx(rl,{size:"medium"}),f.jsx(E,{children:"Loading publishers and solutions..."})]}),f.jsx(cu,{})]}):f.jsxs("div",{className:r.container,children:[f.jsxs("div",{className:r.header,children:[f.jsx(YB,{children:"Power Platform Solution Blueprint"}),f.jsx(XB,{className:r.subtitle,children:"Select what you'd like to document"})]}),c&&f.jsx("div",{className:r.errorContainer,children:f.jsx(_l,{intent:"error",children:f.jsxs(Bl,{children:[f.jsx(v1,{children:"Failed to load data"}),c,f.jsx("br",{}),f.jsx(st,{appearance:"secondary",size:"small",onClick:z,style:{marginTop:"8px"},children:"Retry"})]})})}),f.jsx("div",{className:r.section,children:f.jsxs(B0,{value:d,onChange:F,className:r.radioGroup,children:[f.jsxs("div",{className:r.radioOption,children:[f.jsx(ps,{value:"publisher",label:"By Publisher",disabled:a||n.length===0}),d==="publisher"&&f.jsxs("div",{className:r.radioContent,children:[f.jsx(Jd,{hint:`Select one or more publishers. ${h.length} selected.`,children:f.jsx(Zo,{className:r.dropdown,placeholder:"Select publishers...",multiselect:!0,selectedOptions:h,onOptionSelect:(C,R)=>{R.selectedOptions&&m(R.selectedOptions)},disabled:a,children:n.map(C=>f.jsx(Wt,{value:C.publisherid,text:C.friendlyname,children:f.jsxs("div",{className:r.solutionInfo,children:[f.jsx(E,{children:C.friendlyname}),f.jsxs(E,{className:r.secondaryText,children:["Prefix: ",C.customizationprefix]})]})},C.publisherid))})}),h.length>0&&f.jsx("div",{className:r.selectedItems,children:h.map(C=>{const R=n.find(O=>O.publisherid===C);return R?f.jsx(ef,{dismissible:!0,dismissIcon:{onClick:()=>m(h.filter(O=>O!==C))},secondaryText:`Prefix: ${R.customizationprefix}`,children:R.friendlyname},C):null})}),h.length>0&&f.jsxs("div",{className:r.subOptions,children:[f.jsx("div",{onClick:C=>C.stopPropagation(),children:f.jsxs(B0,{value:g,onChange:I,layout:"horizontal",children:[f.jsx(ps,{value:"all-solutions",label:`All solutions from selected publisher${h.length>1?"s":""}`}),f.jsx(ps,{value:"specific-solutions",label:"Specific solutions only"})]})}),g==="specific-solutions"&&f.jsxs(f.Fragment,{children:[f.jsx(Jd,{hint:`Select solutions from chosen publishers. ${v.length}/${H.length} selected.`,children:f.jsx(Zo,{className:r.dropdown,placeholder:"Select solutions...",multiselect:!0,selectedOptions:v,onOptionSelect:(C,R)=>{R.selectedOptions&&b(R.selectedOptions)},disabled:a||H.length===0,children:H.map(C=>f.jsx(Wt,{value:C.solutionid,text:C.friendlyname,children:f.jsxs("div",{className:r.solutionInfo,children:[f.jsx(E,{children:C.friendlyname}),f.jsxs(E,{className:r.secondaryText,children:["v",C.version," | ",C.publisherid.friendlyname]})]})},C.solutionid))})}),v.length>0&&f.jsx("div",{className:r.selectedItems,children:v.map(C=>{const R=i.find(O=>O.solutionid===C);return R?f.jsx(ef,{dismissible:!0,dismissIcon:{onClick:()=>b(v.filter(O=>O!==C))},secondaryText:`v${R.version}`,children:R.friendlyname},C):null})})]})]})]})]}),f.jsxs("div",{className:r.radioOption,children:[f.jsx(ps,{value:"solution",label:"By Solution (Recommended)",disabled:a||i.length===0}),d==="solution"&&f.jsxs("div",{className:r.radioContent,children:[f.jsx(Jd,{hint:`Select one or more solutions. ${v.length} selected.`,children:f.jsx(Zo,{className:r.dropdown,placeholder:"Select solutions...",multiselect:!0,selectedOptions:v,onOptionSelect:(C,R)=>{R.selectedOptions&&b(R.selectedOptions)},disabled:a,children:i.map(C=>f.jsx(Wt,{value:C.solutionid,text:C.friendlyname,children:f.jsxs("div",{className:r.solutionInfo,children:[f.jsx(E,{children:C.friendlyname}),f.jsxs(E,{className:r.secondaryText,children:["v",C.version," | ",C.publisherid.friendlyname]})]})},C.solutionid))})}),v.length>0&&f.jsx("div",{className:r.selectedItems,children:v.map(C=>{const R=i.find(O=>O.solutionid===C);return R?f.jsx(ef,{dismissible:!0,dismissIcon:{onClick:()=>b(v.filter(O=>O!==C))},secondaryText:`v${R.version}`,children:R.friendlyname},C):null})})]})]})]})}),f.jsxs("div",{className:r.checkboxContainer,children:[f.jsx("div",{children:f.jsx(zo,{content:"Include Microsoft-owned entities like Account, Contact, Opportunity, etc. (only if they are in the selected solutions)",relationship:"description",children:f.jsx(ro,{label:"Include system-owned entities",checked:x,onChange:(C,R)=>k(R.checked===!0)})})}),f.jsx("div",{style:{marginTop:w.spacingVerticalM},children:f.jsx(zo,{content:"Exclude common system fields like createdon, createdby, modifiedon, modifiedby, ownerid, statecode, etc.",relationship:"description",children:f.jsx(ro,{label:"Exclude system fields (createdon, modifiedby, etc.)",checked:S,onChange:(C,R)=>_(R.checked===!0)})})})]}),f.jsxs("div",{className:r.buttonContainer,children:[t&&f.jsx(st,{appearance:"secondary",onClick:t,style:{marginRight:"8px"},children:"Cancel"}),f.jsx(st,{appearance:"primary",onClick:P,disabled:!A(),children:"Continue"})]}),f.jsx(cu,{})]})}const DY=bt({container:{padding:w.spacingVerticalXXL,maxWidth:"800px",margin:"0 auto",minHeight:"100vh",display:"flex",flexDirection:"column",gap:w.spacingVerticalXL},header:{textAlign:"center"},progressSection:{display:"flex",flexDirection:"column",gap:w.spacingVerticalM},currentActivity:{display:"flex",alignItems:"center",gap:w.spacingHorizontalM,padding:w.spacingVerticalM,backgroundColor:w.colorNeutralBackground2,borderRadius:w.borderRadiusMedium},activityLog:{display:"flex",flexDirection:"column",gap:w.spacingVerticalXS,maxHeight:"200px",overflowY:"auto",padding:w.spacingVerticalM,backgroundColor:w.colorNeutralBackground1,borderRadius:w.borderRadiusMedium,border:`1px solid ${w.colorNeutralStroke2}`},activityItem:{display:"flex",alignItems:"center",gap:w.spacingHorizontalS,fontSize:w.fontSizeBase200},completedIcon:{color:w.colorPaletteGreenForeground1,flexShrink:0},processingIcon:{flexShrink:0},progressText:{color:w.colorNeutralForeground3,fontSize:w.fontSizeBase300},buttonContainer:{display:"flex",justifyContent:"center",marginTop:w.spacingVerticalL}});function LY({progress:e,onCancel:t}){const r=DY(),n=e.total>0?e.current/e.total*100:0;return f.jsxs("div",{className:r.container,children:[f.jsx("div",{className:r.header,children:f.jsx(c1,{children:"Generating Solution Blueprint"})}),f.jsxs("div",{className:r.progressSection,children:[f.jsx(i3,{value:n/100}),f.jsxs(E,{className:r.progressText,children:[e.current," of ",e.total," entities processed (",Math.round(n),"%)"]})]}),e.phase!=="discovering"&&f.jsxs("div",{className:r.currentActivity,children:[f.jsx(DL,{className:r.processingIcon}),f.jsx(rl,{size:"tiny"}),f.jsx(E,{weight:"semibold",children:e.message})]}),e.phase==="discovering"&&f.jsxs("div",{className:r.currentActivity,children:[f.jsx(rl,{size:"small"}),f.jsx(E,{weight:"semibold",children:e.message})]}),f.jsx("div",{className:r.buttonContainer,children:f.jsx(st,{appearance:"secondary",onClick:t,children:"Cancel"})}),f.jsx(cu,{})]})}function Hs(e,t=!1){const r=typeof e=="string"?new Date(e):e,n={year:"numeric",month:"2-digit",day:"2-digit"};return t&&(n.hour="2-digit",n.minute="2-digit",n.hour12=!1),r.toLocaleDateString("en-GB",n)}function Z3(e){return Hs(e,!0)}const OY=bt({container:{display:"flex",flexDirection:"column",gap:w.spacingVerticalS},emptyState:{padding:w.spacingVerticalXXXL,textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",gap:w.spacingVerticalL,color:w.colorNeutralForeground3},pluginRow:{display:"grid",gridTemplateColumns:"24px 40px minmax(200px, 2fr) minmax(100px, 1fr) auto auto auto",gap:w.spacingHorizontalM,alignItems:"start",padding:w.spacingVerticalM,backgroundColor:w.colorNeutralBackground1,border:`1px solid ${w.colorNeutralStroke1}`,borderRadius:w.borderRadiusMedium,cursor:"pointer",transition:"all 0.2s ease",":hover":{backgroundColor:w.colorNeutralBackground1Hover,boxShadow:w.shadow4}},pluginRowExpanded:{backgroundColor:w.colorBrandBackground2},chevron:{display:"flex",alignItems:"center",color:w.colorNeutralForeground3},rank:{fontWeight:w.fontWeightSemibold,textAlign:"center"},nameColumn:{display:"flex",flexDirection:"column",gap:"2px",minWidth:0,wordBreak:"break-word"},wrapText:{wordBreak:"break-word",overflowWrap:"break-word",hyphens:"auto"},codeText:{fontFamily:"Consolas, Monaco, monospace",fontSize:w.fontSizeBase200,color:w.colorNeutralForeground3},badgeGroup:{display:"flex",gap:w.spacingHorizontalS,alignItems:"center",flexWrap:"wrap"},expandedDetails:{backgroundColor:w.colorNeutralBackground2,padding:w.spacingVerticalL,border:`1px solid ${w.colorNeutralStroke1}`,borderTop:"none",borderRadius:`0 0 ${w.borderRadiusMedium} ${w.borderRadiusMedium}`,marginTop:"-4px"},detailsGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(250px, 1fr))",gap:w.spacingHorizontalM},detailItem:{display:"flex",flexDirection:"column",gap:w.spacingVerticalXXS},detailLabel:{fontSize:w.fontSizeBase200,color:w.colorNeutralForeground3},detailValue:{fontWeight:w.fontWeightSemibold},section:{marginTop:w.spacingVerticalM}});function qY({plugins:e,entityLogicalName:t}){const r=OY(),[n,o]=B.useState(null),i=B.useMemo(()=>t?e.filter(u=>u.entity.toLowerCase()===t.toLowerCase()):e,[e,t]),s=B.useMemo(()=>[...i].sort((u,d)=>u.entity!==d.entity?u.entity.localeCompare(d.entity):u.message!==d.message?u.message.localeCompare(d.message):u.stage!==d.stage?u.stage-d.stage:u.rank-d.rank),[i]),a=u=>({10:"#0078D4",20:"#2B579A",40:"#107C10",50:"#5C2D91"})[u]||w.colorNeutralForeground3,l=u=>{o(n===u?null:u)},c=u=>{var d,p;return f.jsx("div",{className:r.expandedDetails,children:f.jsxs(Pe,{children:[f.jsx(Ze,{children:"Plugin Step Details"}),f.jsxs("div",{className:r.detailsGrid,children:[f.jsxs("div",{className:r.detailItem,children:[f.jsx(E,{className:r.detailLabel,children:"Step ID"}),f.jsx(E,{className:`${r.detailValue} ${r.codeText}`,children:u.id})]}),f.jsxs("div",{className:r.detailItem,children:[f.jsx(E,{className:r.detailLabel,children:"Plugin Type"}),f.jsx(E,{className:r.detailValue,children:u.typeName})]}),f.jsxs("div",{className:r.detailItem,children:[f.jsx(E,{className:r.detailLabel,children:"Assembly"}),f.jsx(E,{className:r.detailValue,children:u.assemblyName})]}),f.jsxs("div",{className:r.detailItem,children:[f.jsx(E,{className:r.detailLabel,children:"Entity"}),f.jsx(E,{className:`${r.detailValue} ${r.codeText}`,children:u.entity})]}),f.jsxs("div",{className:r.detailItem,children:[f.jsx(E,{className:r.detailLabel,children:"Message"}),f.jsx(E,{className:r.detailValue,children:u.message})]}),f.jsxs("div",{className:r.detailItem,children:[f.jsx(E,{className:r.detailLabel,children:"Execution Stage"}),f.jsxs(E,{className:r.detailValue,children:[u.stageName," (",u.stage,")"]})]}),f.jsxs("div",{className:r.detailItem,children:[f.jsx(E,{className:r.detailLabel,children:"Execution Mode"}),f.jsx(E,{className:r.detailValue,children:u.modeName})]}),f.jsxs("div",{className:r.detailItem,children:[f.jsx(E,{className:r.detailLabel,children:"Execution Order"}),f.jsx(E,{className:r.detailValue,children:u.rank})]})]}),u.description&&f.jsxs("div",{className:r.section,children:[f.jsx(E,{className:r.detailLabel,children:"Description"}),f.jsx(E,{className:r.wrapText,children:u.description})]}),u.filteringAttributes.length>0&&f.jsxs("div",{className:r.section,children:[f.jsxs(Ze,{children:["Filtering Attributes (",u.filteringAttributes.length,")"]}),f.jsx("div",{className:r.badgeGroup,children:u.filteringAttributes.map((h,m)=>f.jsx(Q,{appearance:"tint",color:"warning",children:h},m))})]}),(u.preImage||u.postImage)&&f.jsxs("div",{className:r.section,children:[f.jsx(Ze,{children:"Entity Images"}),f.jsxs("div",{className:r.detailsGrid,children:[u.preImage&&f.jsxs("div",{className:r.detailItem,children:[f.jsx(E,{className:r.detailLabel,children:"Pre-Image"}),f.jsx(E,{className:r.detailValue,children:u.preImage.name}),f.jsxs(E,{className:r.codeText,children:["Property: ",u.preImage.messagePropertyName]}),f.jsxs(E,{className:r.codeText,children:["Attributes: ",((d=u.preImage.attributes)==null?void 0:d.join(", "))||"All"]})]}),u.postImage&&f.jsxs("div",{className:r.detailItem,children:[f.jsx(E,{className:r.detailLabel,children:"Post-Image"}),f.jsx(E,{className:r.detailValue,children:u.postImage.name}),f.jsxs(E,{className:r.codeText,children:["Property: ",u.postImage.messagePropertyName]}),f.jsxs(E,{className:r.codeText,children:["Attributes: ",((p=u.postImage.attributes)==null?void 0:p.join(", "))||"All"]})]})]})]})]})})};return i.length===0?f.jsxs("div",{className:r.emptyState,children:[f.jsx(E,{style:{fontSize:"48px"},children:"🔌"}),f.jsx(E,{size:500,weight:"semibold",children:"No Plugins Found"}),f.jsx(E,{children:t?`No plugins registered for the ${t} entity.`:"No plugins were found in the selected solution(s)."})]}):f.jsx("div",{className:r.container,children:s.map(u=>{const d=n===u.id;return f.jsxs("div",{children:[f.jsxs("div",{className:`${r.pluginRow} ${d?r.pluginRowExpanded:""}`,onClick:()=>l(u.id),children:[f.jsx("div",{className:r.chevron,children:d?f.jsx(io,{}):f.jsx(so,{})}),f.jsx(E,{className:r.rank,children:u.rank}),f.jsxs("div",{className:r.nameColumn,children:[f.jsx(E,{weight:"semibold",className:r.wrapText,children:u.name}),f.jsx(E,{className:`${r.wrapText} ${r.codeText}`,children:u.assemblyName})]}),!t&&f.jsx(E,{className:`${r.wrapText} ${r.codeText}`,children:u.entity}),f.jsx(Q,{appearance:"outline",children:u.message}),f.jsx(Q,{appearance:"filled",style:{backgroundColor:a(u.stage),color:"white"},children:u.stageName}),f.jsx(Q,{appearance:u.mode===0?"outline":"filled",color:u.mode===0?"brand":"important",children:u.modeName})]}),d&&c(u)]},u.id)})})}function $Y({attributeType:e,size:t=20}){const r={style:{fontSize:t}};switch(e){case"String":case"Memo":return f.jsx(WL,{...r});case"Integer":case"BigInt":case"Decimal":case"Double":return f.jsx(BL,{...r});case"Money":return f.jsx(KL,{...r});case"DateTime":return f.jsx(SL,{...r});case"Lookup":case"Owner":case"Customer":return f.jsx(EL,{...r});case"Picklist":case"State":case"Status":case"MultiSelectPicklist":return f.jsx(PL,{...r});case"Boolean":return f.jsx(GL,{...r});case"File":case"Image":return f.jsx(RL,{...r});default:return f.jsx(CL,{...r})}}const HY=bt({container:{display:"flex",flexDirection:"column",gap:w.spacingVerticalM},controls:{display:"flex",gap:w.spacingHorizontalM,flexWrap:"wrap",alignItems:"center"},searchBox:{minWidth:"300px"},tableContainer:{maxHeight:"600px",overflowY:"auto"},expandedRow:{backgroundColor:w.colorNeutralBackground2,padding:w.spacingVerticalL},detailsGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(200px, 1fr))",gap:w.spacingHorizontalM},detailItem:{display:"flex",flexDirection:"column",gap:w.spacingVerticalXXS},detailLabel:{fontSize:w.fontSizeBase200,color:w.colorNeutralForeground3},detailValue:{fontWeight:w.fontWeightSemibold},wrapText:{wordBreak:"break-word",overflowWrap:"break-word"},codeText:{fontFamily:"Consolas, Monaco, monospace",fontSize:w.fontSizeBase200},badges:{display:"flex",gap:w.spacingHorizontalS,flexWrap:"wrap"}});function WY({attributes:e}){const t=HY(),[r,n]=B.useState(""),[o,i]=B.useState(null),[s,a]=B.useState("LogicalName"),[l,c]=B.useState("asc"),u=B.useMemo(()=>{const v=r.toLowerCase().trim();let b=e;return v&&(b=e.filter(x=>{var N,z,F,I;const k=((z=(N=x.DisplayName)==null?void 0:N.UserLocalizedLabel)==null?void 0:z.Label)||"",S=x.LogicalName||"",_=((I=(F=x.Description)==null?void 0:F.UserLocalizedLabel)==null?void 0:I.Label)||"";return k.toLowerCase().includes(v)||S.toLowerCase().includes(v)||_.toLowerCase().includes(v)||x.AttributeType.toLowerCase().includes(v)})),b.sort((x,k)=>{var N,z,F,I;let S,_;switch(s){case"DisplayName":S=((z=(N=x.DisplayName)==null?void 0:N.UserLocalizedLabel)==null?void 0:z.Label)||x.LogicalName,_=((I=(F=k.DisplayName)==null?void 0:F.UserLocalizedLabel)==null?void 0:I.Label)||k.LogicalName;break;case"AttributeType":S=x.AttributeType,_=k.AttributeType;break;case"RequiredLevel":S=x.RequiredLevel.Value,_=k.RequiredLevel.Value;break;default:S=x.LogicalName,_=k.LogicalName}return typeof S=="string"&&typeof _=="string"?l==="asc"?S.localeCompare(_):_.localeCompare(S):0})},[e,r,s,l]),d=v=>{s===v?c(l==="asc"?"desc":"asc"):(a(v),c("asc"))},p=v=>{i(o===v?null:v)},h=v=>{switch(v){case"ApplicationRequired":case"SystemRequired":return f.jsx(Q,{appearance:"filled",color:"danger",size:"small",children:"Required"});case"Recommended":return f.jsx(Q,{appearance:"filled",color:"warning",size:"small",children:"Recommended"});default:return f.jsx(Q,{appearance:"outline",color:"subtle",size:"small",children:"Optional"})}},m=v=>{var x;const b=[];if(v.MaxLength&&b.push(`Max: ${v.MaxLength}`),v.Precision&&b.push(`Precision: ${v.Precision}`),v.MinValue){const k=typeof v.MinValue=="object"?v.MinValue.Value:v.MinValue;b.push(`Min: ${k}`)}if(v.MaxValue){const k=typeof v.MaxValue=="object"?v.MaxValue.Value:v.MaxValue;b.push(`Max: ${k}`)}return v.Format&&b.push(v.Format),v.Targets&&v.Targets.length>0&&b.push(`Targets: ${v.Targets.join(", ")}`),(x=v.OptionSet)!=null&&x.Options&&b.push(`${v.OptionSet.Options.length} options`),b.length>0?b.join(" | "):""},g=[Ne({columnId:"displayName",renderHeaderCell:()=>f.jsx(st,{appearance:"transparent",icon:f.jsx(Eg,{}),onClick:()=>d("DisplayName"),children:"Display Name"}),renderCell:v=>{var b,x;return f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:w.spacingHorizontalS,cursor:"pointer"},onClick:()=>p(v.MetadataId||v.LogicalName),children:[o===(v.MetadataId||v.LogicalName)?f.jsx(io,{}):f.jsx(so,{}),f.jsx($Y,{attributeType:v.AttributeType}),f.jsxs("div",{style:{display:"flex",flexDirection:"column",minWidth:0},children:[f.jsx(E,{weight:"semibold",className:t.wrapText,children:((x=(b=v.DisplayName)==null?void 0:b.UserLocalizedLabel)==null?void 0:x.Label)||v.LogicalName}),f.jsx(E,{className:`${t.codeText} ${t.wrapText}`,style:{color:w.colorNeutralForeground3},children:v.LogicalName})]})]})}}),Ne({columnId:"type",renderHeaderCell:()=>f.jsx(st,{appearance:"transparent",icon:f.jsx(Eg,{}),onClick:()=>d("AttributeType"),children:"Type"}),renderCell:v=>f.jsxs("div",{style:{display:"flex",flexDirection:"column",minWidth:0},children:[f.jsx(E,{className:t.wrapText,children:v.AttributeType}),m(v)&&f.jsx(E,{className:t.wrapText,style:{fontSize:w.fontSizeBase200,color:w.colorNeutralForeground3},children:m(v)})]})}),Ne({columnId:"required",renderHeaderCell:()=>f.jsx(st,{appearance:"transparent",icon:f.jsx(Eg,{}),onClick:()=>d("RequiredLevel"),children:"Required"}),renderCell:v=>h(v.RequiredLevel.Value)}),Ne({columnId:"flags",renderHeaderCell:()=>"Flags",renderCell:v=>{var b;return f.jsxs("div",{className:t.badges,children:[v.IsPrimaryId&&f.jsx(Q,{appearance:"filled",color:"brand",size:"small",children:"Primary ID"}),v.IsPrimaryName&&f.jsx(Q,{appearance:"filled",color:"success",size:"small",children:"Primary Name"}),((b=v.IsAuditEnabled)==null?void 0:b.Value)&&f.jsx(Q,{appearance:"tint",size:"small",children:"Audit"}),v.IsSecured&&f.jsx(Q,{appearance:"filled",color:"warning",size:"small",children:"Secured"}),v.IsCustomAttribute&&f.jsx(Q,{appearance:"outline",size:"small",children:"Custom"})]})}}),Ne({columnId:"permissions",renderHeaderCell:()=>"Permissions",renderCell:v=>f.jsxs(E,{style:{fontSize:w.fontSizeBase200},children:[v.IsValidForCreate?"C":"-",v.IsValidForUpdate?"U":"-",v.IsValidForRead?"R":"-"]})})],y=v=>{var b,x,k;return f.jsxs("div",{className:t.expandedRow,children:[f.jsxs("div",{className:t.detailsGrid,children:[f.jsxs("div",{className:t.detailItem,children:[f.jsx(E,{className:t.detailLabel,children:"Logical Name"}),f.jsx(E,{className:`${t.detailValue} ${t.codeText}`,children:v.LogicalName})]}),f.jsxs("div",{className:t.detailItem,children:[f.jsx(E,{className:t.detailLabel,children:"Schema Name"}),f.jsx(E,{className:`${t.detailValue} ${t.codeText}`,children:v.SchemaName})]}),f.jsxs("div",{className:t.detailItem,children:[f.jsx(E,{className:t.detailLabel,children:"Attribute Type"}),f.jsx(E,{className:t.detailValue,children:v.AttributeType})]}),f.jsxs("div",{className:t.detailItem,children:[f.jsx(E,{className:t.detailLabel,children:"Metadata ID"}),f.jsx(E,{className:`${t.codeText}`,style:{fontSize:w.fontSizeBase200},children:v.MetadataId})]})]}),((x=(b=v.Description)==null?void 0:b.UserLocalizedLabel)==null?void 0:x.Label)&&f.jsxs("div",{style:{marginTop:w.spacingVerticalM},children:[f.jsx(E,{className:t.detailLabel,children:"Description"}),f.jsx(E,{className:t.wrapText,children:v.Description.UserLocalizedLabel.Label})]}),v.Targets&&v.Targets.length>0&&f.jsxs("div",{style:{marginTop:w.spacingVerticalM},children:[f.jsx(E,{className:t.detailLabel,children:"Lookup Targets"}),f.jsx("div",{className:t.badges,style:{marginTop:w.spacingVerticalXS},children:v.Targets.map((S,_)=>f.jsx(Q,{appearance:"tint",color:"brand",children:S},_))})]}),((k=v.OptionSet)==null?void 0:k.Options)&&v.OptionSet.Options.length>0&&f.jsxs("div",{style:{marginTop:w.spacingVerticalM},children:[f.jsxs(E,{className:t.detailLabel,children:["Options (",v.OptionSet.Options.length,")"]}),f.jsxs("div",{style:{display:"grid",gridTemplateColumns:"auto 1fr",gap:w.spacingHorizontalS,marginTop:w.spacingVerticalXS},children:[v.OptionSet.Options.slice(0,10).map((S,_)=>{var N,z;return f.jsxs(f.Fragment,{children:[f.jsx(E,{className:t.codeText,children:S.Value},`v-${_}`),f.jsx(E,{children:((z=(N=S.Label)==null?void 0:N.UserLocalizedLabel)==null?void 0:z.Label)||S.Value},`l-${_}`)]})}),v.OptionSet.Options.length>10&&f.jsxs(E,{style:{gridColumn:"1 / -1",color:w.colorNeutralForeground3,fontSize:w.fontSizeBase200},children:["... and ",v.OptionSet.Options.length-10," more options"]})]})]})]})};return f.jsxs("div",{className:t.container,children:[f.jsxs("div",{className:t.controls,children:[f.jsx(Zi,{className:t.searchBox,placeholder:"Search fields...",value:r,onChange:(v,b)=>n(b.value||"")}),f.jsxs(E,{style:{marginLeft:"auto",color:w.colorNeutralForeground3},children:[u.length," of ",e.length," fields"]})]}),f.jsxs("div",{className:t.tableContainer,children:[f.jsxs(on,{items:u,columns:g,focusMode:"composite",children:[f.jsx(sn,{children:f.jsx(vt,{children:({renderHeaderCell:v})=>f.jsx(an,{children:v()})})}),f.jsx(nn,{children:({item:v,rowId:b})=>f.jsx(vt,{children:({renderCell:x})=>f.jsx(rn,{children:x(v)})},b)})]}),o&&u.map(v=>{const b=v.MetadataId||v.LogicalName;return b===o?f.jsx("div",{children:y(v)},`expanded-${b}`):null})]})]})}const VY=bt({container:{display:"flex",flexDirection:"column",gap:w.spacingVerticalL},section:{display:"flex",flexDirection:"column",gap:w.spacingVerticalM},relationshipList:{display:"flex",flexDirection:"column",gap:w.spacingVerticalS},relationshipRow:{display:"grid",gridTemplateColumns:"24px minmax(200px, 2fr) minmax(150px, 1fr) minmax(150px, 1fr) auto auto",gap:w.spacingHorizontalM,alignItems:"start",padding:w.spacingVerticalM,backgroundColor:w.colorNeutralBackground1,border:`1px solid ${w.colorNeutralStroke1}`,borderRadius:w.borderRadiusMedium,cursor:"pointer",transition:"all 0.2s ease",":hover":{backgroundColor:w.colorNeutralBackground1Hover,boxShadow:w.shadow4}},relationshipRowExpanded:{backgroundColor:w.colorBrandBackground2},chevron:{display:"flex",alignItems:"center",color:w.colorNeutralForeground3},expandedDetails:{backgroundColor:w.colorNeutralBackground2,padding:w.spacingVerticalL,border:`1px solid ${w.colorNeutralStroke1}`,borderTop:"none",borderRadius:`0 0 ${w.borderRadiusMedium} ${w.borderRadiusMedium}`,marginTop:"-4px"},detailsGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(200px, 1fr))",gap:w.spacingHorizontalM},detailItem:{display:"flex",flexDirection:"column",gap:w.spacingVerticalXXS},detailLabel:{fontSize:w.fontSizeBase200,color:w.colorNeutralForeground3},detailValue:{fontWeight:w.fontWeightSemibold},codeText:{fontFamily:"Consolas, Monaco, monospace",fontSize:w.fontSizeBase200},emptyState:{padding:w.spacingVerticalXXL,textAlign:"center",color:w.colorNeutralForeground3},wrapText:{wordBreak:"break-word",overflowWrap:"break-word"}});function UY({oneToMany:e,manyToOne:t,manyToMany:r,currentEntityName:n}){const o=VY(),[i,s]=B.useState(null),a=d=>{s(i===d?null:d)},l=d=>{switch(d){case"Cascade":return f.jsx(Q,{appearance:"filled",color:"danger",children:"Cascade"});case"Active":return f.jsx(Q,{appearance:"filled",color:"warning",children:"Active"});case"UserOwned":return f.jsx(Q,{appearance:"filled",color:"important",children:"User Owned"});case"RemoveLink":return f.jsx(Q,{appearance:"filled",color:"warning",children:"Remove Link"});case"Restrict":return f.jsx(Q,{appearance:"filled",color:"danger",children:"Restrict"});case"NoCascade":return f.jsx(Q,{appearance:"outline",children:"No Cascade"});default:return f.jsx(Q,{appearance:"outline",children:d||"None"})}},c=(d,p)=>{var m;return p?((m={Delete:{Cascade:"Related records also deleted",Active:"Active related records deleted",UserOwned:"User-owned records deleted",RemoveLink:"Relationship removed but record kept",Restrict:"Cannot delete if related records exist",NoCascade:"No automatic action on related records"},Merge:{Cascade:"Related records also merged",Active:"Active related records merged",NoCascade:"No automatic merge action"},Assign:{Cascade:"Related records also assigned",NoCascade:"No automatic assignment"},Share:{Cascade:"Related records also shared",NoCascade:"No automatic sharing"},Reparent:{Cascade:"Related records also reparented",NoCascade:"No automatic reparenting"}}[d])==null?void 0:m[p])||p:""},u=d=>{var p,h,m,g,y,v,b,x,k,S,_;return f.jsx("div",{className:o.expandedDetails,children:f.jsxs(Pe,{children:[f.jsx(Ze,{children:"Cascade Configuration"}),f.jsxs("div",{className:o.detailsGrid,children:[f.jsxs("div",{className:o.detailItem,children:[f.jsx(E,{className:o.detailLabel,children:"Delete"}),f.jsx("div",{children:l((p=d.CascadeConfiguration)==null?void 0:p.Delete)}),f.jsx(E,{style:{fontSize:w.fontSizeBase200,color:w.colorNeutralForeground3,marginTop:w.spacingVerticalXXS},children:c("Delete",(h=d.CascadeConfiguration)==null?void 0:h.Delete)})]}),f.jsxs("div",{className:o.detailItem,children:[f.jsx(E,{className:o.detailLabel,children:"Merge"}),f.jsx("div",{children:l((m=d.CascadeConfiguration)==null?void 0:m.Merge)}),f.jsx(E,{style:{fontSize:w.fontSizeBase200,color:w.colorNeutralForeground3,marginTop:w.spacingVerticalXXS},children:c("Merge",(g=d.CascadeConfiguration)==null?void 0:g.Merge)})]}),f.jsxs("div",{className:o.detailItem,children:[f.jsx(E,{className:o.detailLabel,children:"Assign"}),f.jsx("div",{children:l((y=d.CascadeConfiguration)==null?void 0:y.Assign)}),f.jsx(E,{style:{fontSize:w.fontSizeBase200,color:w.colorNeutralForeground3,marginTop:w.spacingVerticalXXS},children:c("Assign",(v=d.CascadeConfiguration)==null?void 0:v.Assign)})]}),f.jsxs("div",{className:o.detailItem,children:[f.jsx(E,{className:o.detailLabel,children:"Share"}),f.jsx("div",{children:l((b=d.CascadeConfiguration)==null?void 0:b.Share)}),f.jsx(E,{style:{fontSize:w.fontSizeBase200,color:w.colorNeutralForeground3,marginTop:w.spacingVerticalXXS},children:c("Share",(x=d.CascadeConfiguration)==null?void 0:x.Share)})]}),f.jsxs("div",{className:o.detailItem,children:[f.jsx(E,{className:o.detailLabel,children:"Reparent"}),f.jsx("div",{children:l((k=d.CascadeConfiguration)==null?void 0:k.Reparent)}),f.jsx(E,{style:{fontSize:w.fontSizeBase200,color:w.colorNeutralForeground3,marginTop:w.spacingVerticalXXS},children:c("Reparent",(S=d.CascadeConfiguration)==null?void 0:S.Reparent)})]}),f.jsxs("div",{className:o.detailItem,children:[f.jsx(E,{className:o.detailLabel,children:"Unshare"}),f.jsx("div",{children:l((_=d.CascadeConfiguration)==null?void 0:_.Unshare)})]})]})]})})};return f.jsxs("div",{className:o.container,children:[f.jsxs("div",{className:o.section,children:[f.jsxs(Ze,{children:["1:N Relationships (This entity is parent) (",e.length,")"]}),e.length===0?f.jsx("div",{className:o.emptyState,children:f.jsx(E,{children:"No 1:N relationships found."})}):f.jsx("div",{className:o.relationshipList,children:e.map(d=>{var m;const p=d.MetadataId||d.SchemaName,h=i===p;return f.jsxs("div",{children:[f.jsxs("div",{className:`${o.relationshipRow} ${h?o.relationshipRowExpanded:""}`,onClick:()=>a(p),children:[f.jsx("div",{className:o.chevron,children:h?f.jsx(io,{}):f.jsx(so,{})}),f.jsx(E,{weight:"semibold",className:o.wrapText,children:d.SchemaName}),f.jsx(E,{className:`${o.codeText} ${o.wrapText}`,children:d.ReferencingEntity}),f.jsx(E,{className:`${o.codeText} ${o.wrapText}`,children:d.ReferencingAttribute}),l((m=d.CascadeConfiguration)==null?void 0:m.Delete),d.IsCustomRelationship&&f.jsx(Q,{appearance:"tint",color:"brand",size:"small",children:"Custom"})]}),h&&u(d)]},p)})})]}),f.jsxs("div",{className:o.section,children:[f.jsxs(Ze,{children:["N:1 Relationships (This entity is child) (",t.length,")"]}),t.length===0?f.jsx("div",{className:o.emptyState,children:f.jsx(E,{children:"No N:1 relationships found."})}):f.jsx("div",{className:o.relationshipList,children:t.map(d=>{var m;const p=d.MetadataId||d.SchemaName,h=i===p;return f.jsxs("div",{children:[f.jsxs("div",{className:`${o.relationshipRow} ${h?o.relationshipRowExpanded:""}`,onClick:()=>a(p),children:[f.jsx("div",{className:o.chevron,children:h?f.jsx(io,{}):f.jsx(so,{})}),f.jsx(E,{weight:"semibold",className:o.wrapText,children:d.SchemaName}),f.jsx(E,{className:`${o.codeText} ${o.wrapText}`,children:d.ReferencedEntity}),f.jsx(E,{className:`${o.codeText} ${o.wrapText}`,children:d.ReferencingAttribute}),l((m=d.CascadeConfiguration)==null?void 0:m.Delete),d.IsCustomRelationship&&f.jsx(Q,{appearance:"tint",color:"brand",size:"small",children:"Custom"})]}),h&&u(d)]},p)})})]}),f.jsxs("div",{className:o.section,children:[f.jsxs(Ze,{children:["N:N Relationships (",r.length,")"]}),r.length===0?f.jsx("div",{className:o.emptyState,children:f.jsx(E,{children:"No N:N relationships found."})}):f.jsx("div",{className:o.relationshipList,children:r.map(d=>{const p=d.MetadataId||d.SchemaName,h=d.Entity1LogicalName===n?d.Entity2LogicalName:d.Entity1LogicalName;return f.jsx("div",{children:f.jsxs("div",{className:o.relationshipRow,style:{gridTemplateColumns:"minmax(200px, 2fr) minmax(150px, 1fr) minmax(150px, 1fr) auto"},children:[f.jsx(E,{weight:"semibold",className:o.wrapText,children:d.SchemaName}),f.jsx(E,{className:`${o.codeText} ${o.wrapText}`,children:h}),f.jsx(E,{className:`${o.codeText} ${o.wrapText}`,children:d.IntersectEntityName}),d.IsCustomRelationship&&f.jsx(Q,{appearance:"tint",color:"brand",size:"small",children:"Custom"})]})},p)})})]})]})}const GY=bt({container:{display:"flex",flexDirection:"column",gap:w.spacingVerticalL},section:{display:"flex",flexDirection:"column",gap:w.spacingVerticalM},primaryKeyCard:{padding:w.spacingVerticalL,backgroundColor:w.colorBrandBackground2},primaryKeyContent:{display:"flex",alignItems:"center",gap:w.spacingHorizontalM},keyIcon:{fontSize:"32px",color:w.colorBrandForeground1},keysList:{display:"flex",flexDirection:"column",gap:w.spacingVerticalS},keyCard:{padding:w.spacingVerticalM},keyHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:w.spacingVerticalS},keyAttributes:{display:"flex",gap:w.spacingHorizontalS,flexWrap:"wrap"},emptyState:{padding:w.spacingVerticalXXL,textAlign:"center",color:w.colorNeutralForeground3}});function XY({keys:e,primaryIdAttribute:t}){const r=GY(),n=o=>{switch(o){case"Active":return f.jsx(Q,{appearance:"filled",color:"success",children:"Active"});case"Creating":case"InProgress":return f.jsx(Q,{appearance:"filled",color:"warning",children:"Creating"});case"Failed":return f.jsx(Q,{appearance:"filled",color:"danger",children:"Failed"});default:return f.jsx(Q,{appearance:"outline",children:"Unknown"})}};return f.jsxs("div",{className:r.container,children:[f.jsxs("div",{className:r.section,children:[f.jsx(Ze,{children:"Primary Key"}),f.jsx(Pe,{className:r.primaryKeyCard,children:f.jsxs("div",{className:r.primaryKeyContent,children:[f.jsx(VL,{className:r.keyIcon}),f.jsxs("div",{children:[f.jsx(E,{weight:"semibold",size:400,children:t}),f.jsx(E,{style:{color:w.colorNeutralForeground3,marginTop:w.spacingVerticalXXS,display:"block"},children:"System-generated unique identifier for this entity"})]})]})})]}),f.jsxs("div",{className:r.section,children:[f.jsxs(Ze,{children:["Alternate Keys (",e.length,")"]}),e.length===0?f.jsxs("div",{className:r.emptyState,children:[f.jsx(E,{children:"No alternate keys defined for this entity."}),f.jsx(E,{style:{marginTop:w.spacingVerticalXS},children:"Alternate keys provide additional ways to uniquely identify records besides the primary key."})]}):f.jsx("div",{className:r.keysList,children:e.map((o,i)=>{var s,a;return f.jsxs(Pe,{className:r.keyCard,children:[f.jsxs("div",{className:r.keyHeader,children:[f.jsx(E,{weight:"semibold",children:((a=(s=o.DisplayName)==null?void 0:s.UserLocalizedLabel)==null?void 0:a.Label)||o.LogicalName}),n(o.EntityKeyIndexStatus)]}),f.jsx(E,{style:{color:w.colorNeutralForeground3,fontSize:w.fontSizeBase200,marginBottom:w.spacingVerticalS},children:o.LogicalName}),f.jsxs("div",{children:[f.jsx(E,{style:{color:w.colorNeutralForeground3,fontSize:w.fontSizeBase200},children:"Key Fields:"}),f.jsx("div",{className:r.keyAttributes,style:{marginTop:w.spacingVerticalXXS},children:o.KeyAttributes.map((l,c)=>f.jsx(Q,{appearance:"tint",color:"brand",children:l},c))})]}),f.jsx(E,{style:{fontSize:w.fontSizeBase200,color:w.colorNeutralForeground3,marginTop:w.spacingVerticalS},children:"This combination of fields must be unique across all records in this entity."})]},i)})})]})]})}const YY=bt({container:{display:"flex",flexDirection:"column",gap:w.spacingVerticalL},section:{display:"flex",flexDirection:"column",gap:w.spacingVerticalS},sectionHeader:{display:"flex",alignItems:"center",gap:w.spacingHorizontalS,paddingBottom:w.spacingVerticalS,borderBottom:`1px solid ${w.colorNeutralStroke2}`},timeline:{display:"flex",flexDirection:"column",gap:w.spacingVerticalXS,paddingLeft:w.spacingHorizontalXL},step:{display:"flex",alignItems:"center",gap:w.spacingHorizontalM,padding:w.spacingVerticalS,borderRadius:w.borderRadiusMedium,":hover":{backgroundColor:w.colorNeutralBackground2Hover}},stepIndicator:{display:"flex",alignItems:"center",gap:w.spacingHorizontalS,minWidth:"80px"},stepContent:{display:"flex",flexDirection:"column",flex:1,minWidth:0},stepName:{fontWeight:w.fontWeightSemibold,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},stepMeta:{display:"flex",gap:w.spacingHorizontalS,alignItems:"center",fontSize:w.fontSizeBase200,color:w.colorNeutralForeground3},badges:{display:"flex",gap:w.spacingHorizontalS,alignItems:"center"},emptyState:{padding:w.spacingVerticalL,color:w.colorNeutralForeground3,textAlign:"center",fontStyle:"italic"},stageGroup:{marginBottom:w.spacingVerticalM},stageLabel:{display:"flex",alignItems:"center",gap:w.spacingHorizontalS,marginBottom:w.spacingVerticalS,paddingLeft:w.spacingHorizontalL},connector:{width:"2px",height:"12px",backgroundColor:w.colorNeutralStroke2,marginLeft:"39px"}});function ZY({pipeline:e}){const t=YY(),r=l=>{switch(l){case"Plugin":return"⚙️";case"Flow":return"⚡";case"BusinessRule":return"📋";case"JavaScript":return"📜";default:return"•"}},n=l=>{switch(l){case"Plugin":return f.jsx(Q,{appearance:"tint",color:"brand",size:"small",children:"Plugin"});case"Flow":return f.jsx(Q,{appearance:"tint",color:"informative",size:"small",children:"Flow"});case"BusinessRule":return f.jsx(Q,{appearance:"tint",color:"success",size:"small",children:"Business Rule"});case"JavaScript":return f.jsx(Q,{appearance:"tint",color:"warning",size:"small",children:"JavaScript"});default:return null}},o=l=>{switch(l){case 10:return"Stage 10";case 20:return"Stage 20";case 30:return"Stage 30";case 40:return"Stage 40";default:return l?`Stage ${l}`:""}},i=(l,c=!1)=>{var u;return f.jsxs("div",{className:t.step,children:[f.jsxs("div",{className:t.stepIndicator,children:[f.jsxs(E,{size:300,style:{fontFamily:"monospace"},children:[l.order,"."]}),f.jsx(E,{size:300,children:r(l.type)})]}),f.jsxs("div",{className:t.stepContent,children:[f.jsx(E,{className:t.stepName,children:l.name}),f.jsxs("div",{className:t.stepMeta,children:[c&&l.stage&&f.jsx(E,{children:o(l.stage)}),l.rank!==void 0&&f.jsxs(E,{children:["Rank: ",l.rank]}),l.description&&f.jsx(zo,{content:l.description,relationship:"description",children:f.jsx(E,{children:"ℹ️"})})]})]}),f.jsxs("div",{className:t.badges,children:[n(l.type),l.mode==="Sync"&&f.jsx(Q,{appearance:"filled",color:"danger",size:"small",children:"Sync"}),l.mode==="Async"&&f.jsx(Q,{appearance:"filled",color:"success",size:"small",children:"Async"}),l.hasExternalCall&&f.jsx(zo,{content:`External: ${(u=l.externalEndpoints)==null?void 0:u.join(", ")}`,relationship:"description",children:f.jsx(Q,{appearance:"filled",color:"warning",size:"small",icon:f.jsx(TL,{}),children:"External"})})]})]},l.id)},s=(l,c=!1)=>l.length===0?f.jsx("div",{className:t.emptyState,children:"No steps in this stage"}):f.jsx("div",{className:t.timeline,children:l.map(u=>i(u,c))}),a=e.serverSideSync.preValidation.length+e.serverSideSync.preOperation.length+e.serverSideSync.mainOperation.length+e.serverSideSync.postOperation.length;return f.jsxs("div",{className:t.container,children:[e.clientSide.length>0&&f.jsxs("div",{className:t.section,children:[f.jsxs("div",{className:t.sectionHeader,children:[f.jsx(E,{size:500,weight:"semibold",children:"Client-Side Execution"}),f.jsxs(Q,{appearance:"tint",size:"small",children:[e.clientSide.length," steps"]}),f.jsx(E,{size:300,style:{color:w.colorNeutralForeground3},children:"Executes in browser before server request"})]}),s(e.clientSide)]}),a>0&&f.jsxs(f.Fragment,{children:[e.clientSide.length>0&&f.jsx("div",{className:t.connector}),f.jsxs("div",{className:t.section,children:[f.jsxs("div",{className:t.sectionHeader,children:[f.jsx(E,{size:500,weight:"semibold",children:"Server-Side Synchronous"}),f.jsxs(Q,{appearance:"tint",color:"danger",size:"small",children:[a," steps"]}),f.jsx(E,{size:300,style:{color:w.colorNeutralForeground3},children:"Blocks user transaction"})]}),e.serverSideSync.preValidation.length>0&&f.jsxs("div",{className:t.stageGroup,children:[f.jsxs("div",{className:t.stageLabel,children:[f.jsx(Na,{}),f.jsx(E,{weight:"semibold",children:"PreValidation (Stage 10)"}),f.jsx(E,{size:200,style:{color:w.colorNeutralForeground3},children:"Before security checks"})]}),s(e.serverSideSync.preValidation,!0)]}),e.serverSideSync.preOperation.length>0&&f.jsxs("div",{className:t.stageGroup,children:[f.jsxs("div",{className:t.stageLabel,children:[f.jsx(Na,{}),f.jsx(E,{weight:"semibold",children:"PreOperation (Stage 20)"}),f.jsx(E,{size:200,style:{color:w.colorNeutralForeground3},children:"Before database operation"})]}),s(e.serverSideSync.preOperation,!0)]}),e.serverSideSync.mainOperation.length>0&&f.jsxs("div",{className:t.stageGroup,children:[f.jsxs("div",{className:t.stageLabel,children:[f.jsx(YL,{}),f.jsx(E,{weight:"semibold",children:"MainOperation (Stage 30)"}),f.jsx(E,{size:200,style:{color:w.colorNeutralForeground3},children:"Database operation happens here"})]}),s(e.serverSideSync.mainOperation,!0)]}),e.serverSideSync.postOperation.length>0&&f.jsxs("div",{className:t.stageGroup,children:[f.jsxs("div",{className:t.stageLabel,children:[f.jsx(Na,{}),f.jsx(E,{weight:"semibold",children:"PostOperation (Stage 40)"}),f.jsx(E,{size:200,style:{color:w.colorNeutralForeground3},children:"After database operation, in transaction"})]}),s(e.serverSideSync.postOperation,!0)]})]})]}),e.serverSideAsync.length>0&&f.jsxs(f.Fragment,{children:[a>0&&f.jsx("div",{className:t.connector}),f.jsxs("div",{className:t.section,children:[f.jsxs("div",{className:t.sectionHeader,children:[f.jsx(E,{size:500,weight:"semibold",children:"Server-Side Asynchronous"}),f.jsxs(Q,{appearance:"tint",color:"success",size:"small",children:[e.serverSideAsync.length," steps"]}),f.jsx(E,{size:300,style:{color:w.colorNeutralForeground3},children:"Executes after transaction completes"})]}),s(e.serverSideAsync)]})]})]})}const KY=bt({panel:{padding:w.spacingVerticalL,borderRadius:w.borderRadiusMedium,backgroundColor:w.colorNeutralBackground2},header:{display:"flex",alignItems:"center",gap:w.spacingHorizontalM,marginBottom:w.spacingVerticalM},risks:{display:"flex",flexDirection:"column",gap:w.spacingVerticalM},riskCard:{padding:w.spacingVerticalM,borderLeft:"4px solid"},critical:{borderLeftColor:w.colorPaletteRedBorder1,backgroundColor:w.colorPaletteRedBackground1},high:{borderLeftColor:w.colorPaletteDarkOrangeBorder1,backgroundColor:w.colorPaletteDarkOrangeBackground1},medium:{borderLeftColor:w.colorPaletteYellowBorder1,backgroundColor:w.colorPaletteYellowBackground1},low:{borderLeftColor:w.colorPaletteBerryBorder1,backgroundColor:w.colorPaletteBerryBackground1},riskHeader:{display:"flex",alignItems:"center",gap:w.spacingHorizontalS,marginBottom:w.spacingVerticalS},riskContent:{display:"flex",flexDirection:"column",gap:w.spacingVerticalS},stepInfo:{display:"flex",alignItems:"center",gap:w.spacingHorizontalS,fontSize:w.fontSizeBase200,color:w.colorNeutralForeground3},recommendation:{padding:w.spacingVerticalS,backgroundColor:w.colorNeutralBackground1,borderRadius:w.borderRadiusSmall,fontSize:w.fontSizeBase300},summary:{display:"flex",gap:w.spacingHorizontalM,alignItems:"center"}});function QY({risks:e}){const t=KY(),r=c=>{switch(c){case"Critical":case"High":return f.jsx(t7,{});case"Medium":return f.jsx(Yo,{});case"Low":return f.jsx(jL,{});default:return null}},n=c=>{switch(c){case"Critical":return f.jsx(Q,{appearance:"filled",color:"danger",size:"large",children:"Critical"});case"High":return f.jsx(Q,{appearance:"filled",color:"warning",size:"large",children:"High"});case"Medium":return f.jsx(Q,{appearance:"tint",color:"warning",size:"large",children:"Medium"});case"Low":return f.jsx(Q,{appearance:"tint",color:"informative",size:"large",children:"Low"});default:return null}},o=c=>{switch(c){case"Critical":return`${t.riskCard} ${t.critical}`;case"High":return`${t.riskCard} ${t.high}`;case"Medium":return`${t.riskCard} ${t.medium}`;case"Low":return`${t.riskCard} ${t.low}`;default:return t.riskCard}},i=e.filter(c=>c.severity==="Critical").length,s=e.filter(c=>c.severity==="High").length,a=e.filter(c=>c.severity==="Medium").length,l=e.filter(c=>c.severity==="Low").length;return f.jsxs("div",{className:t.panel,children:[f.jsxs("div",{className:t.header,children:[f.jsx(Yo,{style:{fontSize:"24px",color:w.colorPaletteDarkOrangeForeground1}}),f.jsx(E,{size:500,weight:"semibold",children:"Performance Risks Detected"}),f.jsxs("div",{className:t.summary,children:[i>0&&f.jsxs(Q,{appearance:"filled",color:"danger",children:[i," Critical"]}),s>0&&f.jsxs(Q,{appearance:"filled",color:"warning",children:[s," High"]}),a>0&&f.jsxs(Q,{appearance:"tint",color:"warning",children:[a," Medium"]}),l>0&&f.jsxs(Q,{appearance:"tint",color:"informative",children:[l," Low"]})]})]}),f.jsx("div",{className:t.risks,children:e.map((c,u)=>f.jsxs(Pe,{className:o(c.severity),children:[f.jsxs("div",{className:t.riskHeader,children:[r(c.severity),n(c.severity),f.jsx(E,{weight:"semibold",children:c.reason})]}),f.jsxs("div",{className:t.riskContent,children:[f.jsxs("div",{className:t.stepInfo,children:[f.jsx(E,{children:"Affected step:"}),f.jsx(Q,{appearance:"outline",size:"small",children:c.step.type}),f.jsx(E,{weight:"semibold",children:c.step.name}),c.step.stage&&f.jsxs(E,{children:["• Stage ",c.step.stage]}),c.step.mode&&f.jsx(Q,{appearance:"tint",size:"small",children:c.step.mode})]}),f.jsxs("div",{className:t.recommendation,children:[f.jsx(E,{weight:"semibold",size:200,style:{display:"block",marginBottom:w.spacingVerticalXXS},children:"Recommendation:"}),f.jsx(E,{size:300,children:c.recommendation})]})]})]},u))})]})}const JY=bt({container:{display:"flex",flexDirection:"column",gap:w.spacingVerticalL,padding:w.spacingVerticalL},header:{display:"flex",gap:w.spacingHorizontalM,alignItems:"center",flexWrap:"wrap"},eventSelector:{minWidth:"200px"},content:{display:"flex",flexDirection:"column",gap:w.spacingVerticalL},emptyState:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:w.spacingVerticalXXXL,color:w.colorNeutralForeground3,gap:w.spacingVerticalM}});function eZ({blueprint:e,classicWorkflows:t=[],onViewClassicWorkflows:r}){const n=JY(),[o,i]=B.useState(null),s=B.useMemo(()=>new p2().getEntityEvents(e.entity.LogicalName,e.plugins,e.flows,e.businessRules,e.forms),[e]);B.useMemo(()=>{s.length>0&&!o&&i(s[0])},[s,o]);const a=B.useMemo(()=>{if(!o)return null;const u=new p2().calculatePipeline(e.entity.LogicalName,o,e.plugins,e.flows,e.businessRules,e.forms),d=new AY;return u.performanceRisks=d.analyzePerformanceRisks(u),u},[o,e]),l=B.useMemo(()=>t.filter(c=>c.entity.toLowerCase()===e.entity.LogicalName.toLowerCase()),[t,e.entity.LogicalName]);return s.length===0?f.jsxs("div",{className:n.emptyState,children:[f.jsx(E,{size:500,children:"No automation detected"}),f.jsx(E,{children:"This entity has no plugins, flows, or business rules configured."})]}):a?f.jsxs("div",{className:n.container,children:[l.length>0&&f.jsx(_l,{intent:"warning",icon:f.jsx(Yo,{}),children:f.jsxs(Bl,{children:[f.jsx("strong",{children:"Classic workflows detected:"})," This entity has"," ",l.length," classic workflow(s) that require migration to Power Automate. Classic workflows are deprecated and will be removed in a future update.",r&&f.jsxs(f.Fragment,{children:[" ",f.jsx(st,{appearance:"transparent",size:"small",onClick:r,style:{verticalAlign:"baseline"},children:"View Migration Guidance →"})]})]})}),f.jsxs("div",{className:n.header,children:[f.jsx(E,{weight:"semibold",size:400,children:"Event:"}),f.jsx(qB,{className:n.eventSelector,value:o||"",onChange:(c,u)=>i(u.value),children:s.map(c=>f.jsx("option",{value:c,children:c},c))}),f.jsxs(E,{style:{marginLeft:"auto",color:w.colorNeutralForeground3},children:[a.totalSteps," total steps",a.hasExternalCalls&&" • External calls detected"]})]}),f.jsxs("div",{className:n.content,children:[a.performanceRisks.length>0&&f.jsx(QY,{risks:a.performanceRisks}),f.jsx(ZY,{pipeline:a})]})]}):f.jsx("div",{className:n.emptyState,children:f.jsx(rl,{size:"large",label:"Calculating execution pipeline..."})})}const tZ=bt({container:{display:"flex",flexDirection:"column",gap:w.spacingVerticalXL,padding:w.spacingVerticalL},header:{display:"flex",alignItems:"center",gap:w.spacingHorizontalM},icon:{fontSize:"48px",color:w.colorBrandForeground1},headerContent:{display:"flex",flexDirection:"column",gap:w.spacingVerticalXS},logicalName:{color:w.colorNeutralForeground3},metadataGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(250px, 1fr))",gap:w.spacingHorizontalM,marginTop:w.spacingVerticalM},metadataItem:{display:"flex",flexDirection:"column",gap:w.spacingVerticalXXS},metadataLabel:{fontSize:w.fontSizeBase200,color:w.colorNeutralForeground3},metadataValue:{fontWeight:w.fontWeightSemibold},badges:{display:"flex",gap:w.spacingHorizontalS,flexWrap:"wrap",marginTop:w.spacingVerticalM},tabContent:{marginTop:w.spacingVerticalL}});function rZ({schema:e,blueprint:t,classicWorkflows:r=[]}){var b,x,k,S,_,N,z,F,I,H,A;const n=tZ(),[o,i]=B.useState("fields"),s=(t==null?void 0:t.entity)||e,a=((x=(b=s.DisplayName)==null?void 0:b.UserLocalizedLabel)==null?void 0:x.Label)||s.LogicalName,l=(S=(k=s.Description)==null?void 0:k.UserLocalizedLabel)==null?void 0:S.Label,c=((_=s.Attributes)==null?void 0:_.length)||0,u=((N=s.OneToManyRelationships)==null?void 0:N.length)||0,d=((z=s.ManyToOneRelationships)==null?void 0:z.length)||0,p=((F=s.ManyToManyRelationships)==null?void 0:F.length)||0,h=((I=s.Keys)==null?void 0:I.length)||0,m=(t==null?void 0:t.plugins.length)||0,g=(t==null?void 0:t.flows.length)||0,y=(t==null?void 0:t.businessRules.length)||0,v=m+g+y;return f.jsxs("div",{className:n.container,children:[f.jsxs(Pe,{children:[f.jsxs("div",{className:n.header,children:[f.jsx(v0,{className:n.icon}),f.jsxs("div",{className:n.headerContent,children:[f.jsx(c1,{children:a}),f.jsxs(E,{className:n.logicalName,children:["Logical Name: ",s.LogicalName," | Schema: ",s.SchemaName]}),l&&f.jsx(E,{style:{marginTop:w.spacingVerticalS},children:l})]})]}),f.jsxs("div",{className:n.metadataGrid,children:[f.jsxs("div",{className:n.metadataItem,children:[f.jsx(E,{className:n.metadataLabel,children:"Entity Set Name"}),f.jsx(E,{className:n.metadataValue,children:s.EntitySetName||"N/A"})]}),f.jsxs("div",{className:n.metadataItem,children:[f.jsx(E,{className:n.metadataLabel,children:"Primary ID Attribute"}),f.jsx(E,{className:n.metadataValue,children:s.PrimaryIdAttribute||"N/A"})]}),f.jsxs("div",{className:n.metadataItem,children:[f.jsx(E,{className:n.metadataLabel,children:"Primary Name Attribute"}),f.jsx(E,{className:n.metadataValue,children:s.PrimaryNameAttribute||"N/A"})]}),f.jsxs("div",{className:n.metadataItem,children:[f.jsx(E,{className:n.metadataLabel,children:"Ownership Type"}),f.jsx(E,{className:n.metadataValue,children:s.OwnershipTypeName||"Unknown"})]}),f.jsxs("div",{className:n.metadataItem,children:[f.jsx(E,{className:n.metadataLabel,children:"Object Type Code"}),f.jsx(E,{className:n.metadataValue,children:s.ObjectTypeCode||"N/A"})]}),f.jsxs("div",{className:n.metadataItem,children:[f.jsx(E,{className:n.metadataLabel,children:"Total Attributes"}),f.jsx(E,{className:n.metadataValue,children:c})]})]}),f.jsxs("div",{className:n.badges,children:[s.IsCustomEntity&&f.jsx(Q,{appearance:"filled",color:"brand",children:"✨ Custom Entity"}),s.IsManaged&&f.jsx(Q,{appearance:"filled",color:"warning",children:"🔒 Managed"}),s.IsActivity&&f.jsx(Q,{appearance:"tint",color:"important",children:"Activity"}),((H=s.IsAuditEnabled)==null?void 0:H.Value)&&f.jsx(Q,{appearance:"tint",color:"success",children:"Audit Enabled"}),s.ChangeTrackingEnabled&&f.jsx(Q,{appearance:"tint",color:"brand",children:"Change Tracking"}),((A=s.IsCustomizable)==null?void 0:A.Value)===!1&&f.jsx(Q,{appearance:"outline",color:"subtle",children:"Not Customizable"})]})]}),f.jsxs(Pe,{children:[f.jsxs(Yf,{selectedValue:o,onTabSelect:(P,C)=>{i(C.value)},children:[f.jsxs(_t,{value:"fields",children:["Fields (",c,")"]}),f.jsxs(_t,{value:"relationships",children:["Relationships (",u+d+p,")"]}),f.jsxs(_t,{value:"keys",children:["Keys (",h+1,")"]}),t&&v>0&&f.jsxs(_t,{value:"execution-pipeline",children:["Execution Pipeline (",v,")"]})]}),f.jsxs("div",{className:n.tabContent,children:[o==="fields"&&s.Attributes&&f.jsx(WY,{attributes:s.Attributes}),o==="relationships"&&f.jsx(UY,{oneToMany:s.OneToManyRelationships||[],manyToOne:s.ManyToOneRelationships||[],manyToMany:s.ManyToManyRelationships||[],currentEntityName:s.LogicalName}),o==="keys"&&f.jsx(XY,{keys:s.Keys||[],primaryIdAttribute:s.PrimaryIdAttribute}),o==="execution-pipeline"&&t&&f.jsx(eZ,{blueprint:t,classicWorkflows:r})]})]})]})}function nZ(e){if(!e)return;const t=["Click to add description","click to add description","CLICK TO ADD DESCRIPTION"],r=e.trim();if(!t.includes(r))return e}const oZ=bt({container:{display:"flex",flexDirection:"column",height:"100%",width:"100%",gap:w.spacingVerticalM,minHeight:0},searchHeader:{display:"flex",flexDirection:"column",gap:w.spacingVerticalXS,flexShrink:0},searchBox:{maxWidth:"400px"},countBadge:{color:w.colorNeutralForeground3,fontSize:w.fontSizeBase300},listContainer:{display:"flex",flexDirection:"column",gap:w.spacingVerticalS,overflowY:"auto",flex:1,minHeight:0},entityRow:{display:"flex",alignItems:"start",gap:w.spacingHorizontalM,padding:w.spacingVerticalM,backgroundColor:w.colorNeutralBackground1,border:`1px solid ${w.colorNeutralStroke1}`,borderRadius:w.borderRadiusMedium,cursor:"pointer",transition:"all 0.2s ease",":hover":{backgroundColor:w.colorNeutralBackground1Hover,boxShadow:w.shadow4}},entityRowExpanded:{backgroundColor:w.colorBrandBackground2},chevron:{display:"flex",alignItems:"center",color:w.colorNeutralForeground3,flexShrink:0},entityIcon:{color:w.colorBrandForeground1,flexShrink:0},entityInfo:{display:"flex",alignItems:"center",gap:w.spacingHorizontalM,flex:1,minWidth:0},entityName:{fontWeight:w.fontWeightSemibold,fontSize:w.fontSizeBase400,color:w.colorNeutralForeground1,flexShrink:0},entityLogicalName:{color:w.colorNeutralForeground3,fontSize:w.fontSizeBase300,fontFamily:"Consolas, Monaco, monospace",flexShrink:0},entityDescription:{color:w.colorNeutralForeground2,fontSize:w.fontSizeBase300,flex:1,wordBreak:"break-word",overflowWrap:"break-word",hyphens:"auto"},entityStats:{display:"flex",gap:w.spacingHorizontalS,alignItems:"center",flexShrink:0},statBadge:{fontSize:w.fontSizeBase200,color:w.colorNeutralForeground3},attributeCount:{fontSize:w.fontSizeBase200,color:w.colorBrandForeground1,fontWeight:w.fontWeightSemibold},expandedDetails:{backgroundColor:w.colorNeutralBackground2,padding:w.spacingVerticalL,border:`1px solid ${w.colorNeutralStroke1}`,borderTop:"none",borderRadius:`0 0 ${w.borderRadiusMedium} ${w.borderRadiusMedium}`,marginTop:"-4px"},detailsGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(200px, 1fr))",gap:w.spacingHorizontalM,marginBottom:w.spacingVerticalL},detailItem:{display:"flex",flexDirection:"column",gap:w.spacingVerticalXXS},detailLabel:{fontSize:w.fontSizeBase200,color:w.colorNeutralForeground3},detailValue:{fontWeight:w.fontWeightSemibold},codeText:{fontFamily:"Consolas, Monaco, monospace",fontSize:w.fontSizeBase200},wrapText:{wordBreak:"break-word",overflowWrap:"break-word",hyphens:"auto"},tableContainer:{maxHeight:"400px",overflowY:"auto",marginTop:w.spacingVerticalM},badges:{display:"flex",gap:w.spacingHorizontalS,flexWrap:"wrap",marginTop:w.spacingVerticalM},emptyState:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:w.spacingVerticalXXXL,gap:w.spacingVerticalM,color:w.colorNeutralForeground3}});function iZ({blueprints:e,classicWorkflows:t=[]}){const r=oZ(),[n,o]=B.useState(""),[i,s]=B.useState(null),a=B.useMemo(()=>{const u=n.toLowerCase().trim();let d=e;return u&&(d=e.filter(p=>{var y,v;const h=p.entity,m=((v=(y=h.DisplayName)==null?void 0:y.UserLocalizedLabel)==null?void 0:v.Label)||"",g=h.LogicalName||"";return m.toLowerCase().includes(u)||g.toLowerCase().includes(u)})),d.sort((p,h)=>{var y,v,b,x;const m=((v=(y=p.entity.DisplayName)==null?void 0:y.UserLocalizedLabel)==null?void 0:v.Label)||p.entity.LogicalName,g=((x=(b=h.entity.DisplayName)==null?void 0:b.UserLocalizedLabel)==null?void 0:x.Label)||h.entity.LogicalName;return m.localeCompare(g)})},[e,n]),l=u=>{s(i===u?null:u)},c=u=>f.jsx("div",{className:r.expandedDetails,children:f.jsx(rZ,{blueprint:u,classicWorkflows:t})});return f.jsxs("div",{className:r.container,children:[f.jsxs("div",{className:r.searchHeader,children:[f.jsx(Zi,{className:r.searchBox,placeholder:"Search entities...",value:n,onChange:(u,d)=>o(d.value||"")}),f.jsx(E,{className:r.countBadge,children:n?`Showing ${a.length} of ${e.length} entities`:`${e.length} ${e.length===1?"entity":"entities"} found`})]}),f.jsx("div",{className:r.listContainer,children:a.length===0?f.jsxs("div",{className:r.emptyState,children:[f.jsx(v0,{}),f.jsx(E,{children:n?"No entities found matching your search":"No entities found for this selection"})]}):a.map(u=>{var y,v,b,x,k;const d=u.entity,p=i===d.MetadataId,h=((v=(y=d.DisplayName)==null?void 0:y.UserLocalizedLabel)==null?void 0:v.Label)||d.LogicalName||"Unknown Entity",m=nZ((x=(b=d.Description)==null?void 0:b.UserLocalizedLabel)==null?void 0:x.Label),g=((k=d.Attributes)==null?void 0:k.length)||0;return f.jsxs("div",{children:[f.jsxs("div",{className:`${r.entityRow} ${p?r.entityRowExpanded:""}`,onClick:()=>l(d.MetadataId),children:[f.jsx("div",{className:r.chevron,children:p?f.jsx(io,{}):f.jsx(so,{})}),f.jsx(v0,{className:r.entityIcon}),f.jsxs("div",{className:r.entityInfo,children:[f.jsx(E,{className:r.entityName,children:h}),f.jsx(E,{className:r.entityLogicalName,children:d.LogicalName}),m&&f.jsx(E,{className:r.entityDescription,children:m}),f.jsxs("div",{className:r.entityStats,children:[f.jsxs(E,{className:r.attributeCount,children:[g," attr",g!==1?"s":""]}),d.IsCustomEntity&&f.jsx(E,{className:r.statBadge,children:"Custom"}),d.IsManaged&&f.jsx(E,{className:r.statBadge,children:"Managed"})]})]})]}),p&&c(u)]},d.MetadataId)})})]})}const sZ=bt({container:{display:"flex",flexDirection:"column",gap:w.spacingVerticalS},emptyState:{padding:w.spacingVerticalXXXL,textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",gap:w.spacingVerticalL,color:w.colorNeutralForeground3},flowRow:{display:"grid",gridTemplateColumns:"24px minmax(200px, 2fr) minmax(100px, 1fr) auto auto auto",gap:w.spacingHorizontalM,alignItems:"start",padding:w.spacingVerticalM,backgroundColor:w.colorNeutralBackground1,border:`1px solid ${w.colorNeutralStroke1}`,borderRadius:w.borderRadiusMedium,cursor:"pointer",transition:"all 0.2s ease",":hover":{backgroundColor:w.colorNeutralBackground1Hover,boxShadow:w.shadow4}},flowRowExpanded:{backgroundColor:w.colorBrandBackground2},chevron:{display:"flex",alignItems:"center",color:w.colorNeutralForeground3},nameColumn:{display:"flex",flexDirection:"column",gap:"2px",minWidth:0,wordBreak:"break-word"},wrapText:{wordBreak:"break-word",overflowWrap:"break-word",hyphens:"auto"},codeText:{fontFamily:"Consolas, Monaco, monospace",fontSize:w.fontSizeBase200,color:w.colorNeutralForeground3},badgeGroup:{display:"flex",gap:w.spacingHorizontalS,alignItems:"center",flexWrap:"wrap"},expandedDetails:{backgroundColor:w.colorNeutralBackground2,padding:w.spacingVerticalL,border:`1px solid ${w.colorNeutralStroke1}`,borderTop:"none",borderRadius:`0 0 ${w.borderRadiusMedium} ${w.borderRadiusMedium}`,marginTop:"-4px"},detailsGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(200px, 1fr))",gap:w.spacingHorizontalM},detailItem:{display:"flex",flexDirection:"column",gap:w.spacingVerticalXXS},detailLabel:{fontSize:w.fontSizeBase200,color:w.colorNeutralForeground3},detailValue:{fontWeight:w.fontWeightSemibold},section:{marginTop:w.spacingVerticalM},externalCallItem:{padding:w.spacingVerticalS,borderLeft:`3px solid ${w.colorBrandForeground1}`,backgroundColor:w.colorNeutralBackground3,borderRadius:w.borderRadiusMedium,display:"flex",flexDirection:"column",gap:w.spacingVerticalXXS,marginBottom:w.spacingVerticalS},badges:{display:"flex",gap:w.spacingHorizontalS,flexWrap:"wrap",marginTop:w.spacingVerticalM}});function aZ({flows:e,entityLogicalName:t}){const r=sZ(),[n,o]=B.useState(null),i=B.useMemo(()=>t?e.filter(u=>{var d;return((d=u.entity)==null?void 0:d.toLowerCase())===t.toLowerCase()}):e,[e,t]),s=B.useMemo(()=>[...i].sort((u,d)=>{if(u.state!==d.state){if(u.state==="Active")return-1;if(d.state==="Active")return 1;if(u.state==="Draft")return-1;if(d.state==="Draft")return 1}return u.name.localeCompare(d.name)}),[i]),a=u=>{o(n===u?null:u)},l=u=>{switch(u){case"Active":return{appearance:"filled",color:"success"};case"Draft":return{appearance:"filled",color:"warning"};case"Suspended":return{appearance:"filled",color:"danger"};default:return{appearance:"outline",color:"subtle"}}},c=u=>f.jsx("div",{className:r.expandedDetails,children:f.jsxs(Pe,{children:[f.jsx(Ze,{children:"Flow Details"}),f.jsxs("div",{className:r.detailsGrid,children:[f.jsxs("div",{className:r.detailItem,children:[f.jsx(E,{className:r.detailLabel,children:"Entity"}),f.jsx(E,{className:r.detailValue,children:u.entityDisplayName||u.entity||"None"})]}),f.jsxs("div",{className:r.detailItem,children:[f.jsx(E,{className:r.detailLabel,children:"Owner"}),f.jsx(E,{className:r.detailValue,children:u.owner})]}),f.jsxs("div",{className:r.detailItem,children:[f.jsx(E,{className:r.detailLabel,children:"Modified By"}),f.jsx(E,{className:r.detailValue,children:u.modifiedBy})]}),f.jsxs("div",{className:r.detailItem,children:[f.jsx(E,{className:r.detailLabel,children:"Modified On"}),f.jsx(E,{className:r.detailValue,children:Z3(u.modifiedOn)})]}),f.jsxs("div",{className:r.detailItem,children:[f.jsx(E,{className:r.detailLabel,children:"Actions Count"}),f.jsx(E,{className:r.detailValue,children:u.definition.actionsCount})]}),f.jsxs("div",{className:r.detailItem,children:[f.jsx(E,{className:r.detailLabel,children:"Scope"}),f.jsx(E,{className:r.detailValue,children:u.scopeName})]})]}),f.jsxs("div",{className:r.badges,children:[f.jsx(Q,{appearance:"tint",color:"brand",children:u.definition.triggerType}),u.definition.triggerEvent!=="Unknown"&&u.definition.triggerEvent!==u.definition.triggerType&&f.jsx(Q,{appearance:"outline",children:u.definition.triggerEvent}),u.hasExternalCalls&&f.jsx(Q,{appearance:"tint",color:"important",children:"External Calls"})]}),u.definition.connectionReferences.length>0&&f.jsxs("div",{className:r.section,children:[f.jsxs(Ze,{children:["Connectors (",u.definition.connectionReferences.length,")"]}),f.jsx("div",{className:r.badgeGroup,children:u.definition.connectionReferences.map((d,p)=>f.jsx(Q,{appearance:"tint",size:"small",children:d},p))})]}),u.definition.externalCalls.length>0&&f.jsxs("div",{className:r.section,children:[f.jsxs(Ze,{children:["External API Calls (",u.definition.externalCalls.length,")"]}),u.definition.externalCalls.map((d,p)=>f.jsxs("div",{className:r.externalCallItem,children:[f.jsxs("div",{style:{display:"flex",gap:w.spacingHorizontalS,alignItems:"center",flexWrap:"wrap"},children:[f.jsx(E,{weight:"semibold",children:d.actionName}),f.jsx(Q,{appearance:"outline",size:"small",children:d.method||"UNKNOWN"}),f.jsx(Q,{appearance:"tint",color:d.confidence==="High"?"success":d.confidence==="Medium"?"warning":"subtle",size:"small",children:d.confidence})]}),f.jsx(E,{className:r.codeText,style:{wordBreak:"break-all"},children:d.url}),f.jsxs(E,{style:{fontSize:w.fontSizeBase200,color:w.colorNeutralForeground3},children:["Domain: ",d.domain]})]},p))]}),f.jsxs("div",{className:r.section,children:[f.jsx(Ze,{children:"Technical Details"}),f.jsxs("div",{className:r.detailsGrid,children:[f.jsxs("div",{className:r.detailItem,children:[f.jsx(E,{className:r.detailLabel,children:"Flow ID"}),f.jsx(E,{className:r.codeText,children:u.id})]}),f.jsxs("div",{className:r.detailItem,children:[f.jsx(E,{className:r.detailLabel,children:"State Code"}),f.jsx(E,{className:r.detailValue,children:u.stateCode})]}),f.jsxs("div",{className:r.detailItem,children:[f.jsx(E,{className:r.detailLabel,children:"Scope Value"}),f.jsx(E,{className:r.detailValue,children:u.scope})]})]})]})]})});return i.length===0?f.jsxs("div",{className:r.emptyState,children:[f.jsx(E,{style:{fontSize:"48px"},children:"🌊"}),f.jsx(E,{size:500,weight:"semibold",children:"No Flows Found"}),f.jsx(E,{children:t?`No flows found for the ${t} entity.`:"No flows were found in the selected solution(s)."})]}):f.jsx("div",{className:r.container,children:s.map(u=>{const d=n===u.id,p=l(u.state);return f.jsxs("div",{children:[f.jsxs("div",{className:`${r.flowRow} ${d?r.flowRowExpanded:""}`,onClick:()=>a(u.id),children:[f.jsx("div",{className:r.chevron,children:d?f.jsx(io,{}):f.jsx(so,{})}),f.jsxs("div",{className:r.nameColumn,children:[f.jsx(E,{weight:"semibold",className:r.wrapText,children:u.name}),u.description&&f.jsx(E,{className:`${r.wrapText} ${r.codeText}`,children:u.description})]}),!t&&u.entity&&f.jsx(E,{className:`${r.wrapText} ${r.codeText}`,children:u.entity}),f.jsx(Q,{appearance:"tint",color:"brand",size:"small",children:u.definition.triggerType}),f.jsx(Q,{...p,children:u.state}),f.jsx(E,{style:{fontSize:w.fontSizeBase200,color:w.colorNeutralForeground3},children:Hs(u.modifiedOn)})]}),d&&c(u)]},u.id)})})}const lZ=bt({container:{display:"flex",flexDirection:"column",gap:w.spacingVerticalS},emptyState:{padding:w.spacingVerticalXXXL,textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",gap:w.spacingVerticalL,color:w.colorNeutralForeground3},ruleRow:{display:"grid",gridTemplateColumns:"24px minmax(200px, 2fr) minmax(100px, 1fr) auto auto auto",gap:w.spacingHorizontalM,alignItems:"start",padding:w.spacingVerticalM,backgroundColor:w.colorNeutralBackground1,border:`1px solid ${w.colorNeutralStroke1}`,borderRadius:w.borderRadiusMedium,cursor:"pointer",transition:"all 0.2s ease",":hover":{backgroundColor:w.colorNeutralBackground1Hover,boxShadow:w.shadow4}},ruleRowExpanded:{backgroundColor:w.colorBrandBackground2},chevron:{display:"flex",alignItems:"center",color:w.colorNeutralForeground3},nameColumn:{display:"flex",flexDirection:"column",gap:"2px",minWidth:0,wordBreak:"break-word"},wrapText:{wordBreak:"break-word",overflowWrap:"break-word",hyphens:"auto"},codeText:{fontFamily:"Consolas, Monaco, monospace",fontSize:w.fontSizeBase200,color:w.colorNeutralForeground3},badgeGroup:{display:"flex",gap:w.spacingHorizontalS,alignItems:"center",flexWrap:"wrap"},expandedDetails:{backgroundColor:w.colorNeutralBackground2,padding:w.spacingVerticalL,border:`1px solid ${w.colorNeutralStroke1}`,borderTop:"none",borderRadius:`0 0 ${w.borderRadiusMedium} ${w.borderRadiusMedium}`,marginTop:"-4px"},detailsGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(250px, 1fr))",gap:w.spacingHorizontalM},detailItem:{display:"flex",flexDirection:"column",gap:w.spacingVerticalXXS},detailLabel:{fontSize:w.fontSizeBase200,color:w.colorNeutralForeground3},detailValue:{fontWeight:w.fontWeightSemibold},section:{marginTop:w.spacingVerticalM},conditionItem:{padding:w.spacingVerticalS,backgroundColor:w.colorNeutralBackground3,borderRadius:w.borderRadiusMedium,marginBottom:w.spacingVerticalXS},actionItem:{padding:w.spacingVerticalS,borderRadius:w.borderRadiusMedium,marginBottom:w.spacingVerticalXS,display:"flex",alignItems:"center",gap:w.spacingHorizontalS},badges:{display:"flex",gap:w.spacingHorizontalS,flexWrap:"wrap",marginTop:w.spacingVerticalM}});function cZ({businessRules:e,entityLogicalName:t}){const r=lZ(),[n,o]=B.useState(null),i=B.useMemo(()=>t?e.filter(p=>p.entity.toLowerCase()===t.toLowerCase()):e,[e,t]),s=B.useMemo(()=>[...i].sort((p,h)=>{if(p.entity!==h.entity)return p.entity.localeCompare(h.entity);if(p.state!==h.state){if(p.state==="Active")return-1;if(h.state==="Active")return 1}return p.name.localeCompare(h.name)}),[i]),a=p=>{o(n===p?null:p)},l=p=>p==="Active"?{appearance:"filled",color:"success"}:{appearance:"filled",color:"warning"},c=p=>p==="Entity"?"brand":p==="AllForms"?"important":"informative",u=p=>({ShowField:w.colorPaletteGreenBackground2,HideField:w.colorPaletteRedBackground2,SetValue:w.colorPaletteBlueBorderActive,SetRequired:w.colorPaletteYellowBackground2,LockField:w.colorPaletteDarkOrangeBackground2,UnlockField:w.colorPaletteGreenBackground2,ShowError:w.colorPaletteRedBackground2})[p]||w.colorNeutralBackground3,d=p=>f.jsx("div",{className:r.expandedDetails,children:f.jsxs(Pe,{children:[f.jsx(Ze,{children:p.name}),f.jsxs("div",{className:r.detailsGrid,children:[f.jsxs("div",{className:r.detailItem,children:[f.jsx(E,{className:r.detailLabel,children:"Entity"}),f.jsx(E,{className:r.detailValue,children:p.entityDisplayName||p.entity})]}),f.jsxs("div",{className:r.detailItem,children:[f.jsx(E,{className:r.detailLabel,children:"Scope"}),f.jsx(E,{className:r.detailValue,children:p.scopeName})]}),p.formName&&f.jsxs("div",{className:r.detailItem,children:[f.jsx(E,{className:r.detailLabel,children:"Form"}),f.jsx(E,{className:r.detailValue,children:p.formName})]}),f.jsxs("div",{className:r.detailItem,children:[f.jsx(E,{className:r.detailLabel,children:"Owner"}),f.jsx(E,{className:r.detailValue,children:p.owner})]}),f.jsxs("div",{className:r.detailItem,children:[f.jsx(E,{className:r.detailLabel,children:"Last Modified"}),f.jsx(E,{className:r.detailValue,children:new Date(p.modifiedOn).toLocaleString()})]})]}),p.description&&f.jsxs("div",{className:r.section,children:[f.jsx(E,{className:r.detailLabel,children:"Description"}),f.jsx(E,{children:p.description})]}),f.jsxs("div",{className:r.badges,children:[f.jsx(Q,{appearance:"tint",color:c(p.scope),children:p.scopeName}),f.jsx(Q,{appearance:"tint",color:p.definition.executionContext==="Client"?"brand":p.definition.executionContext==="Server"?"important":"informative",children:p.definition.executionContext})]}),p.definition.conditions.length>0&&f.jsxs("div",{className:r.section,children:[f.jsx(Ze,{children:"IF (Conditions)"}),f.jsx(E,{weight:"semibold",style:{marginBottom:w.spacingVerticalS},children:p.definition.conditionLogic}),p.definition.conditions.map((h,m)=>f.jsx("div",{className:r.conditionItem,children:f.jsxs(E,{children:[m>0&&f.jsxs("strong",{children:[h.logicOperator," "]}),f.jsx("span",{className:r.codeText,children:h.field})," ",h.operator," ",f.jsxs("strong",{children:["'",h.value,"'"]})]})},m))]}),p.definition.actions.length>0&&f.jsxs("div",{className:r.section,children:[f.jsx(Ze,{children:"THEN (Actions)"}),p.definition.actions.map((h,m)=>f.jsxs("div",{className:r.actionItem,style:{backgroundColor:u(h.type)},children:[f.jsx(Q,{appearance:"filled",size:"small",children:h.type}),f.jsxs(E,{children:[f.jsx("span",{className:r.codeText,children:h.field}),h.value&&f.jsxs(f.Fragment,{children:[" = ",f.jsx("strong",{children:h.value})]}),h.message&&f.jsxs(f.Fragment,{children:[": ",f.jsx("em",{children:h.message})]})]})]},m))]}),p.definition.parseError&&f.jsxs("div",{className:r.section,children:[f.jsx(Q,{appearance:"filled",color:"danger",children:"Parse Error"}),f.jsx(E,{style:{color:w.colorPaletteRedForeground1,marginTop:w.spacingVerticalXS},children:p.definition.parseError})]})]})});return i.length===0?f.jsxs("div",{className:r.emptyState,children:[f.jsx(E,{style:{fontSize:"48px"},children:"📋"}),f.jsx(E,{size:500,weight:"semibold",children:"No Business Rules Found"}),f.jsx(E,{children:t?`No business rules found for the ${t} entity.`:"No business rules were found in the selected solution(s)."})]}):f.jsx("div",{className:r.container,children:s.map(p=>{const h=n===p.id,m=l(p.state),g=p.definition.conditions.length,y=p.definition.actions.length;return f.jsxs("div",{children:[f.jsxs("div",{className:`${r.ruleRow} ${h?r.ruleRowExpanded:""}`,onClick:()=>a(p.id),children:[f.jsx("div",{className:r.chevron,children:h?f.jsx(io,{}):f.jsx(so,{})}),f.jsxs("div",{className:r.nameColumn,children:[f.jsx(E,{weight:"semibold",className:r.wrapText,children:p.name}),p.description&&f.jsx(E,{className:`${r.wrapText} ${r.codeText}`,children:p.description})]}),!t&&f.jsx(E,{className:`${r.wrapText} ${r.codeText}`,children:p.entity}),f.jsx(Q,{appearance:"tint",color:c(p.scope),size:"small",children:p.scopeName}),f.jsx(Q,{...m,children:p.state}),f.jsxs(E,{style:{fontSize:w.fontSizeBase200,color:w.colorNeutralForeground3},children:[g," cond",g!==1?"s":"",", ",y," action",y!==1?"s":""]})]}),h&&d(p)]},p.id)})})}const uZ=bt({container:{display:"flex",flexDirection:"column",gap:w.spacingVerticalS},header:{display:"flex",justifyContent:"space-between",alignItems:"center"},codeContainer:{backgroundColor:w.colorNeutralBackground4,borderRadius:w.borderRadiusMedium,border:`1px solid ${w.colorNeutralStroke1}`,maxHeight:"400px",overflowY:"auto",fontFamily:"Consolas, Monaco, monospace",fontSize:w.fontSizeBase200},codeContainerExpanded:{maxHeight:"none"},lineNumber:{display:"inline-block",width:"40px",textAlign:"right",paddingRight:w.spacingHorizontalS,color:w.colorNeutralForeground4,userSelect:"none"},codeLine:{padding:`2px ${w.spacingHorizontalM}`,whiteSpace:"pre",overflowX:"auto",":hover":{backgroundColor:w.colorNeutralBackground5}}});function dZ({content:e,language:t="javascript",maxLines:r=50}){const n=uZ(),[o,i]=B.useState(!1),[s,a]=B.useState(!1),l=e.split(`
148
+ `),c=o?l:l.slice(0,r),u=l.length>r,d=async()=>{try{await navigator.clipboard.writeText(e),a(!0),setTimeout(()=>a(!1),2e3)}catch{}};return f.jsxs("div",{className:n.container,children:[f.jsxs("div",{className:n.header,children:[f.jsxs(E,{weight:"semibold",children:[t.toUpperCase()," (",l.length," lines)"]}),f.jsxs("div",{style:{display:"flex",gap:w.spacingHorizontalS},children:[u&&f.jsx(st,{appearance:"subtle",icon:o?f.jsx(io,{}):f.jsx(so,{}),onClick:()=>i(!o),children:o?"Collapse":`Show all ${l.length} lines`}),f.jsx(st,{appearance:"subtle",icon:f.jsx(y0,{}),onClick:d,children:s?"Copied!":"Copy"})]})]}),f.jsx("div",{className:`${n.codeContainer} ${o?n.codeContainerExpanded:""}`,children:c.map((p,h)=>f.jsxs("div",{className:n.codeLine,children:[f.jsx("span",{className:n.lineNumber,children:h+1}),f.jsx("span",{children:p})]},h))}),!o&&u&&f.jsxs(E,{style:{color:w.colorNeutralForeground3,textAlign:"center"},children:["... ",l.length-r," more lines"]})]})}const fZ=bt({container:{display:"flex",flexDirection:"column",gap:w.spacingVerticalM},filters:{display:"flex",gap:w.spacingHorizontalM,flexWrap:"wrap",alignItems:"center",padding:w.spacingVerticalM,backgroundColor:w.colorNeutralBackground2,borderRadius:w.borderRadiusMedium},searchBox:{minWidth:"300px"},listContainer:{display:"flex",flexDirection:"column",gap:w.spacingVerticalS},emptyState:{padding:w.spacingVerticalXXXL,textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",gap:w.spacingVerticalL,color:w.colorNeutralForeground3},resourceRow:{display:"grid",gridTemplateColumns:"24px minmax(200px, 2fr) minmax(100px, 1fr) auto auto auto auto",gap:w.spacingHorizontalM,alignItems:"start",padding:w.spacingVerticalM,backgroundColor:w.colorNeutralBackground1,border:`1px solid ${w.colorNeutralStroke1}`,borderRadius:w.borderRadiusMedium,cursor:"pointer",transition:"all 0.2s ease",":hover":{backgroundColor:w.colorNeutralBackground1Hover,boxShadow:w.shadow4}},resourceRowExpanded:{backgroundColor:w.colorBrandBackground2},chevron:{display:"flex",alignItems:"center",color:w.colorNeutralForeground3},nameColumn:{display:"flex",flexDirection:"column",gap:"2px",minWidth:0,wordBreak:"break-word"},wrapText:{wordBreak:"break-word",overflowWrap:"break-word",hyphens:"auto"},codeText:{fontFamily:"Consolas, Monaco, monospace",fontSize:w.fontSizeBase200,color:w.colorNeutralForeground3},badgeGroup:{display:"flex",gap:w.spacingHorizontalS,alignItems:"center",flexWrap:"wrap"},expandedDetails:{backgroundColor:w.colorNeutralBackground2,padding:w.spacingVerticalL,border:`1px solid ${w.colorNeutralStroke1}`,borderTop:"none",borderRadius:`0 0 ${w.borderRadiusMedium} ${w.borderRadiusMedium}`,marginTop:"-4px"},detailsGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(250px, 1fr))",gap:w.spacingHorizontalM},detailItem:{display:"flex",flexDirection:"column",gap:w.spacingVerticalXXS},detailLabel:{fontSize:w.fontSizeBase200,color:w.colorNeutralForeground3},detailValue:{fontWeight:w.fontWeightSemibold},section:{marginTop:w.spacingVerticalM},warningBox:{padding:w.spacingVerticalM,backgroundColor:w.colorPaletteYellowBackground2,borderRadius:w.borderRadiusMedium,display:"flex",alignItems:"center",gap:w.spacingHorizontalM},externalCallItem:{padding:w.spacingVerticalS,backgroundColor:w.colorNeutralBackground3,borderRadius:w.borderRadiusMedium,marginBottom:w.spacingVerticalS,display:"flex",flexDirection:"column",gap:w.spacingVerticalXXS}});function hZ({webResources:e}){const t=fZ(),[r,n]=B.useState(null),[o,i]=B.useState(""),[s,a]=B.useState("All"),[l,c]=B.useState(!1),[u,d]=B.useState(!1),p=B.useMemo(()=>{const x=new Set(e.map(k=>k.typeName));return["All",...Array.from(x).sort()]},[e]),h=B.useMemo(()=>{const x=o.toLowerCase().trim();let k=e;return s!=="All"&&(k=k.filter(S=>S.typeName===s)),l&&(k=k.filter(S=>S.hasExternalCalls)),u&&(k=k.filter(S=>S.isDeprecated)),x&&(k=k.filter(S=>S.name.toLowerCase().includes(x)||S.displayName.toLowerCase().includes(x)||S.description&&S.description.toLowerCase().includes(x))),k.sort((S,_)=>S.typeName!==_.typeName?S.typeName.localeCompare(_.typeName):S.name.localeCompare(_.name))},[e,o,s,l,u]),m=x=>{n(r===x?null:x)},g=x=>x==="JavaScript"?"brand":x==="HTML"?"success":x==="CSS"?"warning":"important",y=x=>x==="Low"?"success":x==="Medium"?"warning":"danger",v=x=>x<1024?`${x} B`:x<1024*1024?`${(x/1024).toFixed(1)} KB`:`${(x/(1024*1024)).toFixed(1)} MB`,b=x=>f.jsx("div",{className:t.expandedDetails,children:f.jsxs(Pe,{children:[f.jsx(Ze,{children:x.displayName}),f.jsxs("div",{className:t.detailsGrid,children:[f.jsxs("div",{className:t.detailItem,children:[f.jsx(E,{className:t.detailLabel,children:"Unique Name"}),f.jsx(E,{className:`${t.detailValue} ${t.codeText}`,children:x.name})]}),f.jsxs("div",{className:t.detailItem,children:[f.jsx(E,{className:t.detailLabel,children:"Type"}),f.jsx(Q,{appearance:"tint",color:g(x.typeName),children:x.typeName})]}),f.jsxs("div",{className:t.detailItem,children:[f.jsx(E,{className:t.detailLabel,children:"Size"}),f.jsx(E,{className:t.detailValue,children:v(x.contentSize)})]}),f.jsxs("div",{className:t.detailItem,children:[f.jsx(E,{className:t.detailLabel,children:"Last Modified"}),f.jsx(E,{className:t.detailValue,children:new Date(x.modifiedOn).toLocaleString()})]}),f.jsxs("div",{className:t.detailItem,children:[f.jsx(E,{className:t.detailLabel,children:"Modified By"}),f.jsx(E,{className:t.detailValue,children:x.modifiedBy})]})]}),x.description&&f.jsxs("div",{className:t.section,children:[f.jsx(E,{className:t.detailLabel,children:"Description"}),f.jsx(E,{className:t.wrapText,children:x.description})]}),x.analysis&&f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:t.section,children:[f.jsx(Ze,{children:"JavaScript Analysis"}),f.jsxs("div",{className:t.detailsGrid,children:[f.jsxs("div",{className:t.detailItem,children:[f.jsx(E,{className:t.detailLabel,children:"Lines of Code"}),f.jsx(E,{className:t.detailValue,children:x.analysis.linesOfCode})]}),f.jsxs("div",{className:t.detailItem,children:[f.jsx(E,{className:t.detailLabel,children:"Complexity"}),f.jsx(Q,{appearance:"filled",color:y(x.analysis.complexity),children:x.analysis.complexity})]}),f.jsxs("div",{className:t.detailItem,children:[f.jsx(E,{className:t.detailLabel,children:"Uses Xrm API"}),f.jsx(E,{className:t.detailValue,children:x.analysis.usesXrm?"Yes":"No"})]})]}),x.analysis.frameworks.length>0&&f.jsxs("div",{style:{marginTop:w.spacingVerticalM},children:[f.jsx(E,{className:t.detailLabel,children:"Frameworks Used"}),f.jsx("div",{className:t.badgeGroup,style:{marginTop:w.spacingVerticalXS},children:x.analysis.frameworks.map((k,S)=>f.jsx(Q,{appearance:"tint",color:"brand",children:k},S))})]})]}),x.isDeprecated&&f.jsx("div",{className:t.section,children:f.jsxs("div",{className:t.warningBox,children:[f.jsx(E,{style:{fontSize:"24px"},children:"⚠️"}),f.jsxs("div",{children:[f.jsx(E,{weight:"semibold",children:"Deprecated Code Detected"}),f.jsx(E,{children:"This script uses deprecated Xrm.Page API. Should migrate to formContext."})]})]})}),x.analysis.externalCalls.length>0&&f.jsxs("div",{className:t.section,children:[f.jsxs(Ze,{children:["External API Calls (",x.analysis.externalCalls.length,")"]}),f.jsxs("div",{className:t.warningBox,style:{marginBottom:w.spacingVerticalM},children:[f.jsx(E,{style:{fontSize:"24px"},children:"🌐"}),f.jsx(E,{weight:"semibold",children:"This script calls external endpoints"})]}),x.analysis.externalCalls.map((k,S)=>f.jsxs("div",{className:t.externalCallItem,children:[f.jsxs("div",{style:{display:"flex",gap:w.spacingHorizontalS,alignItems:"center",flexWrap:"wrap"},children:[f.jsx(E,{weight:"semibold",children:k.actionName}),k.method&&f.jsx(Q,{appearance:"outline",size:"small",children:k.method}),f.jsx(Q,{appearance:"tint",color:k.confidence==="High"?"success":k.confidence==="Medium"?"warning":"subtle",size:"small",children:k.confidence})]}),f.jsx(E,{className:t.codeText,style:{wordBreak:"break-all"},children:k.url}),f.jsxs(E,{style:{fontSize:w.fontSizeBase200,color:w.colorNeutralForeground3},children:["Domain: ",k.domain]})]},S))]})]}),x.content&&f.jsxs("div",{className:t.section,children:[f.jsx(Ze,{children:"Content Preview"}),f.jsx(dZ,{content:x.content,language:x.typeName.toLowerCase()})]})]})});return e.length===0?f.jsxs("div",{className:t.emptyState,children:[f.jsx(E,{style:{fontSize:"48px"},children:"📦"}),f.jsx(E,{size:500,weight:"semibold",children:"No Web Resources Found"}),f.jsx(E,{children:"No web resources were found in the selected solution(s)."})]}):f.jsxs("div",{className:t.container,children:[f.jsxs("div",{className:t.filters,children:[f.jsx(Zi,{className:t.searchBox,placeholder:"Search web resources...",value:o,onChange:(x,k)=>i(k.value||"")}),f.jsx(Zo,{placeholder:"Filter by type",value:s,onOptionSelect:(x,k)=>a(k.optionValue||"All"),children:p.map(x=>f.jsx(Wt,{value:x,children:x},x))}),f.jsx(ro,{label:"External calls only",checked:l,onChange:(x,k)=>c(k.checked===!0)}),f.jsx(ro,{label:"Deprecated code only",checked:u,onChange:(x,k)=>d(k.checked===!0)}),f.jsxs(E,{style:{marginLeft:"auto",color:w.colorNeutralForeground3},children:[h.length," of ",e.length," resources"]})]}),f.jsx("div",{className:t.listContainer,children:h.length===0?f.jsx("div",{className:t.emptyState,children:f.jsx(E,{children:"No web resources match your filters."})}):h.map(x=>{const k=r===x.id;return f.jsxs("div",{children:[f.jsxs("div",{className:`${t.resourceRow} ${k?t.resourceRowExpanded:""}`,onClick:()=>m(x.id),children:[f.jsx("div",{className:t.chevron,children:k?f.jsx(io,{}):f.jsx(so,{})}),f.jsxs("div",{className:t.nameColumn,children:[f.jsx(E,{weight:"semibold",className:t.wrapText,children:x.displayName}),f.jsx(E,{className:`${t.wrapText} ${t.codeText}`,children:x.name})]}),f.jsx(Q,{appearance:"tint",color:g(x.typeName),size:"small",children:x.typeName}),f.jsx(E,{style:{fontSize:w.fontSizeBase200,color:w.colorNeutralForeground3},children:v(x.contentSize)}),x.hasExternalCalls&&f.jsx(E,{style:{fontSize:"18px"},title:"Has external calls",children:"🌐"}),x.isDeprecated&&f.jsx(E,{style:{fontSize:"18px"},title:"Uses deprecated Xrm.Page",children:"⚠️"}),x.analysis&&f.jsx(Q,{appearance:"filled",color:y(x.analysis.complexity),size:"small",children:x.analysis.complexity})]}),k&&b(x)]},x.id)})})]})}function pZ({workflows:e,onSelectWorkflow:t}){const[r,n]=B.useState(null),o=B.useMemo(()=>{const u={Critical:0,High:1,Medium:2,Low:3};return[...e].sort((d,p)=>{var g,y;const h=((g=d.migrationRecommendation)==null?void 0:g.complexity)||"Low",m=((y=p.migrationRecommendation)==null?void 0:y.complexity)||"Low";return u[h]-u[m]})},[e]),i=u=>{n(u.id),t(u)},s=u=>{switch(u){case"Critical":return"severe";case"High":return"danger";case"Medium":return"warning";case"Low":default:return"success"}},a=u=>u===1?"warning":"informative",l=u=>{const d=[];return u.triggerOnCreate&&d.push("Create"),u.triggerOnUpdate&&d.push("Update"),u.triggerOnDelete&&d.push("Delete"),u.onDemand&&d.push("On-Demand"),d.join(", ")||"None"},c=[Ne({columnId:"migration",compare:(u,d)=>{var m,g;const p=((m=u.migrationRecommendation)==null?void 0:m.complexity)||"Low",h=((g=d.migrationRecommendation)==null?void 0:g.complexity)||"Low";return p.localeCompare(h)},renderHeaderCell:()=>f.jsx(zo,{content:"Migration complexity assessment",relationship:"label",children:f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[f.jsx(Yo,{}),f.jsx("span",{children:"Migration"})]})}),renderCell:u=>{var h,m;const d=((h=u.migrationRecommendation)==null?void 0:h.complexity)||"Low",p=((m=u.migrationRecommendation)==null?void 0:m.effort)||"Unknown";return f.jsx(Qe,{children:f.jsx(zo,{content:`Migration Complexity: ${d} - Estimated Effort: ${p}`,relationship:"description",children:f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[f.jsx(Yo,{style:{color:w.colorPaletteRedForeground1}}),f.jsx(Q,{appearance:"filled",color:s(d),size:"large",children:d})]})})})}}),Ne({columnId:"name",compare:(u,d)=>u.name.localeCompare(d.name),renderHeaderCell:()=>"Workflow Name",renderCell:u=>f.jsxs(Qe,{children:[f.jsx("div",{style:{fontWeight:500},children:u.name}),u.description&&f.jsx("div",{style:{fontSize:"12px",color:w.colorNeutralForeground3},children:u.description})]})}),Ne({columnId:"entity",compare:(u,d)=>(u.entityDisplayName||u.entity).localeCompare(d.entityDisplayName||d.entity),renderHeaderCell:()=>"Entity",renderCell:u=>f.jsx(Qe,{children:u.entityDisplayName||u.entity})}),Ne({columnId:"mode",compare:(u,d)=>u.mode-d.mode,renderHeaderCell:()=>"Mode",renderCell:u=>f.jsx(Qe,{children:f.jsx(Q,{appearance:"filled",color:a(u.mode),children:u.mode===1?f.jsxs(f.Fragment,{children:[f.jsx(eB,{})," RealTime"]}):f.jsxs(f.Fragment,{children:[f.jsx(J5,{})," Background"]})})})}),Ne({columnId:"triggers",renderHeaderCell:()=>"Triggers",renderCell:u=>f.jsx(Qe,{children:l(u)})}),Ne({columnId:"state",compare:(u,d)=>u.state.localeCompare(d.state),renderHeaderCell:()=>"State",renderCell:u=>f.jsx(Qe,{children:f.jsx(Q,{appearance:"filled",color:u.state==="Active"?"success":u.state==="Draft"?"warning":"danger",children:u.state})})})];return e.length===0?f.jsx("div",{style:{padding:"20px",textAlign:"center",color:w.colorNeutralForeground3},children:"No classic workflows found."}):f.jsxs("div",{style:{marginTop:"16px"},children:[f.jsxs("div",{style:{padding:"12px",backgroundColor:w.colorPaletteYellowBackground1,borderLeft:`4px solid ${w.colorPaletteYellowForeground1}`,marginBottom:"16px",borderRadius:"4px"},children:[f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"4px"},children:[f.jsx(Yo,{style:{color:w.colorPaletteYellowForeground1}}),f.jsx("strong",{children:"Classic Workflows Detected"})]}),f.jsx("div",{style:{fontSize:"13px",color:w.colorNeutralForeground2},children:"Classic workflows are deprecated and will be removed in a future update. Migration to Power Automate cloud flows is recommended. Click on a workflow below to see detailed migration guidance."})]}),f.jsxs(on,{items:o,columns:c,sortable:!0,selectionMode:"single",selectedItems:r?[r]:[],getRowId:u=>u.id,focusMode:"composite",style:{minWidth:"100%"},children:[f.jsx(sn,{children:f.jsx(vt,{children:({renderHeaderCell:u})=>f.jsx(an,{children:u()})})}),f.jsx(nn,{children:({item:u,rowId:d})=>f.jsx(vt,{style:{cursor:"pointer",backgroundColor:r===u.id?w.colorNeutralBackground1Selected:void 0},onClick:()=>i(u),children:({renderCell:p})=>f.jsx(rn,{children:p(u)})},d)})]})]})}function gZ({workflow:e}){const t=e.migrationRecommendation,r=o=>{switch(o){case"Critical":return w.colorPaletteRedBackground3;case"High":return w.colorPaletteDarkOrangeBackground3;case"Medium":return w.colorPaletteYellowBackground3;case"Low":default:return w.colorPaletteGreenBackground3}},n=o=>{switch(o){case"Critical":return w.colorPaletteRedBorder2;case"High":return w.colorPaletteDarkOrangeBorder2;case"Medium":return w.colorPaletteYellowBorder2;case"Low":default:return w.colorPaletteGreenBorder2}};return f.jsxs("div",{style:{padding:"20px",maxWidth:"1000px"},children:[f.jsxs("div",{style:{marginBottom:"24px"},children:[f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",marginBottom:"12px"},children:[f.jsx(Yo,{style:{fontSize:"24px",color:w.colorPaletteRedForeground1}}),f.jsx(Ze,{children:e.name})]}),e.description&&f.jsx(Ve,{style:{color:w.colorNeutralForeground3,marginBottom:"12px"},children:e.description}),f.jsxs("div",{style:{display:"flex",gap:"8px",flexWrap:"wrap"},children:[f.jsx(Q,{appearance:"filled",color:e.state==="Active"?"success":e.state==="Draft"?"warning":"danger",children:e.state}),f.jsx(Q,{appearance:"filled",color:e.mode===1?"warning":"informative",children:e.mode===1?f.jsxs(f.Fragment,{children:[f.jsx(eB,{})," RealTime"]}):f.jsxs(f.Fragment,{children:[f.jsx(J5,{})," Background"]})}),f.jsx(Q,{appearance:"outline",children:e.scopeName}),f.jsx(Q,{appearance:"outline",children:e.entityDisplayName||e.entity})]})]}),f.jsx($s,{style:{marginBottom:"24px"}}),t&&f.jsx(Pe,{style:{marginBottom:"24px",backgroundColor:r(t.complexity),borderLeft:`4px solid ${n(t.complexity)}`},children:f.jsx(At,{header:f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[f.jsx(Yo,{}),f.jsxs("strong",{children:["Migration Complexity: ",t.complexity]})]}),description:f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginTop:"4px"},children:[f.jsx(AL,{}),f.jsxs("span",{children:["Estimated Effort: ",t.effort]})]})})}),f.jsxs(Pe,{style:{marginBottom:"24px"},children:[f.jsx(At,{header:f.jsx("strong",{children:"Workflow Configuration"})}),f.jsxs("div",{style:{padding:"16px",display:"grid",gridTemplateColumns:"1fr 1fr",gap:"16px"},children:[f.jsxs("div",{children:[f.jsx(at,{style:{color:w.colorNeutralForeground3},children:"Type"}),f.jsx(Ve,{children:e.typeName})]}),f.jsxs("div",{children:[f.jsx(at,{style:{color:w.colorNeutralForeground3},children:"Mode"}),f.jsx(Ve,{children:e.modeName})]}),f.jsxs("div",{children:[f.jsx(at,{style:{color:w.colorNeutralForeground3},children:"Triggers"}),f.jsx(Ve,{children:[e.triggerOnCreate&&"Create",e.triggerOnUpdate&&"Update",e.triggerOnDelete&&"Delete",e.onDemand&&"On-Demand"].filter(Boolean).join(", ")||"None"})]}),f.jsxs("div",{children:[f.jsx(at,{style:{color:w.colorNeutralForeground3},children:"Scope"}),f.jsx(Ve,{children:e.scopeName})]}),f.jsxs("div",{children:[f.jsx(at,{style:{color:w.colorNeutralForeground3},children:"Owner"}),f.jsx(Ve,{children:e.owner})]}),f.jsxs("div",{children:[f.jsx(at,{style:{color:w.colorNeutralForeground3},children:"Last Modified"}),f.jsxs(Ve,{children:[Hs(e.modifiedOn)," by ",e.modifiedBy]})]})]})]}),t&&f.jsxs(f.Fragment,{children:[f.jsxs(Pe,{style:{marginBottom:"24px"},children:[f.jsx(At,{header:f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[f.jsx(_L,{}),f.jsx("strong",{children:"Migration Approach"})]})}),f.jsx("div",{style:{padding:"16px"},children:f.jsx(Ve,{style:{whiteSpace:"pre-line",fontFamily:"monospace",fontSize:"13px"},children:t.approach})})]}),f.jsxs(Pe,{style:{marginBottom:"24px"},children:[f.jsx(At,{header:f.jsx("strong",{children:"Detected Features & Migration Path"})}),f.jsx("div",{style:{padding:"16px"},children:t.features.map((o,i)=>f.jsxs("div",{style:{marginBottom:"16px",paddingBottom:"16px",borderBottom:i<t.features.length-1?`1px solid ${w.colorNeutralStroke2}`:void 0},children:[f.jsx("div",{style:{fontWeight:600,marginBottom:"4px"},children:o.feature}),f.jsxs("div",{style:{fontSize:"13px",color:w.colorNeutralForeground2,marginBottom:"4px"},children:[f.jsx("strong",{children:"Recommendation:"})," ",o.recommendation]}),f.jsxs("div",{style:{fontSize:"13px",color:w.colorNeutralForeground3},children:[f.jsx("strong",{children:"Migration Path:"})," ",o.migrationPath]})]},i))})]}),t.challenges.length>0&&f.jsxs(Pe,{style:{marginBottom:"24px"},children:[f.jsx(At,{header:f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[f.jsx(Yo,{}),f.jsx("strong",{children:"Migration Challenges"})]})}),f.jsx("div",{style:{padding:"16px"},children:f.jsx("ul",{style:{margin:0,paddingLeft:"20px"},children:t.challenges.map((o,i)=>f.jsx("li",{style:{marginBottom:"8px"},children:f.jsx(Ve,{children:o})},i))})})]}),f.jsxs(Pe,{children:[f.jsx(At,{header:f.jsx("strong",{children:"Migration Resources"})}),f.jsxs("div",{style:{padding:"16px"},children:[f.jsx(Ve,{style:{marginBottom:"12px"},children:"For detailed guidance on migrating from classic workflows to Power Automate cloud flows:"}),f.jsx(st,{appearance:"primary",icon:f.jsx(Y5,{}),iconPosition:"after",onClick:()=>window.open(t.documentationLink,"_blank"),children:"View Migration Documentation"})]})]})]})]})}function mZ({businessProcessFlows:e,onSelectBPF:t}){const[r,n]=B.useState(null),o=B.useMemo(()=>[...e].sort((l,c)=>l.name.localeCompare(c.name)),[e]),i=l=>{n(l.id),t(l)},s=l=>l==="Active"?"success":"warning",a=[Ne({columnId:"name",compare:(l,c)=>l.name.localeCompare(c.name),renderHeaderCell:()=>"Business Process Flow Name",renderCell:l=>f.jsxs(Qe,{media:f.jsx(b0,{}),children:[f.jsx("div",{style:{fontWeight:500},children:l.name}),l.description&&f.jsx("div",{style:{fontSize:"12px",color:w.colorNeutralForeground3},children:l.description})]})}),Ne({columnId:"primaryEntity",compare:(l,c)=>(l.primaryEntityDisplayName||l.primaryEntity).localeCompare(c.primaryEntityDisplayName||c.primaryEntity),renderHeaderCell:()=>"Primary Entity",renderCell:l=>f.jsx(Qe,{children:l.primaryEntityDisplayName||l.primaryEntity})}),Ne({columnId:"stages",compare:(l,c)=>l.definition.stages.length-c.definition.stages.length,renderHeaderCell:()=>f.jsx(zo,{content:"Number of stages in this BPF",relationship:"label",children:f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[f.jsx(x0,{}),f.jsx("span",{children:"Stages"})]})}),renderCell:l=>f.jsx(Qe,{children:f.jsxs(Q,{appearance:"tint",color:"brand",children:[l.definition.stages.length," stages"]})})}),Ne({columnId:"entities",renderHeaderCell:()=>"Entities Involved",renderCell:l=>f.jsx(Qe,{children:f.jsx("div",{style:{display:"flex",gap:"4px",flexWrap:"wrap"},children:l.definition.entities.length>0?l.definition.entities.map(c=>f.jsx(Q,{appearance:"outline",size:"small",children:c},c)):f.jsx("span",{style:{color:w.colorNeutralForeground3},children:l.primaryEntity})})})}),Ne({columnId:"crossEntity",compare:(l,c)=>Number(l.definition.crossEntityFlow)-Number(c.definition.crossEntityFlow),renderHeaderCell:()=>"Cross-Entity",renderCell:l=>f.jsx(Qe,{children:l.definition.crossEntityFlow?f.jsx(Q,{appearance:"filled",color:"important",children:"Yes"}):f.jsx(Q,{appearance:"outline",color:"subtle",children:"No"})})}),Ne({columnId:"state",compare:(l,c)=>l.state.localeCompare(c.state),renderHeaderCell:()=>"State",renderCell:l=>f.jsx(Qe,{children:f.jsx(Q,{appearance:"filled",color:s(l.state),children:l.state})})})];return e.length===0?f.jsx("div",{style:{padding:"20px",textAlign:"center",color:w.colorNeutralForeground3},children:"No Business Process Flows found."}):f.jsxs("div",{style:{marginTop:"16px"},children:[f.jsxs("div",{style:{padding:"12px",backgroundColor:w.colorNeutralBackground2,borderRadius:"4px",marginBottom:"16px"},children:[f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"4px"},children:[f.jsx(b0,{}),f.jsx("strong",{children:"About Business Process Flows"})]}),f.jsx("div",{style:{fontSize:"13px",color:w.colorNeutralForeground2},children:"Business Process Flows guide users through defined business processes with a series of stages and steps. They can span single or multiple entities (cross-entity flows)."})]}),f.jsxs(on,{items:o,columns:a,sortable:!0,selectionMode:"single",selectedItems:r?[r]:[],getRowId:l=>l.id,focusMode:"composite",style:{minWidth:"100%"},children:[f.jsx(sn,{children:f.jsx(vt,{children:({renderHeaderCell:l})=>f.jsx(an,{children:l()})})}),f.jsx(nn,{children:({item:l,rowId:c})=>f.jsx(vt,{style:{cursor:"pointer",backgroundColor:r===l.id?w.colorNeutralBackground1Selected:void 0},onClick:()=>i(l),children:({renderCell:u})=>f.jsx(rn,{children:u(l)})},c)})]})]})}function vZ({bpf:e}){return f.jsxs("div",{style:{padding:"20px",maxWidth:"1200px"},children:[f.jsxs("div",{style:{marginBottom:"24px"},children:[f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",marginBottom:"12px"},children:[f.jsx(b0,{style:{fontSize:"24px",color:w.colorBrandForeground1}}),f.jsx(Ze,{children:e.name})]}),e.description&&f.jsx(Ve,{style:{color:w.colorNeutralForeground3,marginBottom:"12px"},children:e.description}),f.jsxs("div",{style:{display:"flex",gap:"8px",flexWrap:"wrap"},children:[f.jsx(Q,{appearance:"filled",color:e.state==="Active"?"success":"warning",children:e.state}),e.isManaged&&f.jsx(Q,{appearance:"filled",color:"warning",children:"🔒 Managed"}),e.definition.crossEntityFlow&&f.jsx(Q,{appearance:"filled",color:"important",children:"Cross-Entity Flow"}),f.jsx(Q,{appearance:"outline",children:e.primaryEntityDisplayName||e.primaryEntity})]})]}),f.jsx($s,{style:{marginBottom:"24px"}}),f.jsxs(Pe,{style:{marginBottom:"24px"},children:[f.jsx(At,{header:f.jsx("strong",{children:"Process Summary"})}),f.jsxs("div",{style:{padding:"16px",display:"grid",gridTemplateColumns:"1fr 1fr",gap:"16px"},children:[f.jsxs("div",{children:[f.jsx(at,{style:{color:w.colorNeutralForeground3},children:"Primary Entity"}),f.jsx(Ve,{children:e.primaryEntityDisplayName||e.primaryEntity})]}),f.jsxs("div",{children:[f.jsx(at,{style:{color:w.colorNeutralForeground3},children:"Unique Name"}),f.jsx(Ve,{style:{fontFamily:"monospace",fontSize:"13px"},children:e.uniqueName})]}),f.jsxs("div",{children:[f.jsx(at,{style:{color:w.colorNeutralForeground3},children:"Total Stages"}),f.jsx(Ve,{children:e.definition.stages.length})]}),f.jsxs("div",{children:[f.jsx(at,{style:{color:w.colorNeutralForeground3},children:"Total Steps"}),f.jsx(Ve,{children:e.definition.totalSteps})]}),f.jsxs("div",{children:[f.jsx(at,{style:{color:w.colorNeutralForeground3},children:"Owner"}),f.jsx(Ve,{children:e.owner})]}),f.jsxs("div",{children:[f.jsx(at,{style:{color:w.colorNeutralForeground3},children:"Last Modified"}),f.jsxs(Ve,{children:[Hs(e.modifiedOn)," by ",e.modifiedBy]})]})]})]}),e.definition.entities.length>0&&f.jsxs(Pe,{style:{marginBottom:"24px"},children:[f.jsx(At,{header:f.jsx("strong",{children:"Entities Involved"})}),f.jsxs("div",{style:{padding:"16px"},children:[f.jsx("div",{style:{display:"flex",gap:"8px",flexWrap:"wrap"},children:e.definition.entities.map(t=>f.jsx(Q,{appearance:"outline",size:"large",children:t},t))}),e.definition.crossEntityFlow&&f.jsxs("div",{style:{marginTop:"12px",padding:"8px",backgroundColor:w.colorPaletteYellowBackground1,borderRadius:"4px",fontSize:"13px"},children:["This is a ",f.jsx("strong",{children:"cross-entity Business Process Flow"})," that spans multiple entities. Users will move between different entity forms as they progress through stages."]})]})]}),e.definition.stages.length>0&&f.jsxs(Pe,{style:{marginBottom:"24px"},children:[f.jsx(At,{header:f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[f.jsx(x0,{}),f.jsx("strong",{children:"Process Stages"})]})}),f.jsx("div",{style:{padding:"16px"},children:f.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:e.definition.stages.map((t,r)=>f.jsxs("div",{children:[f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"16px",backgroundColor:w.colorNeutralBackground2,borderRadius:"8px",border:`2px solid ${w.colorBrandBackground}`},children:[f.jsx("div",{style:{minWidth:"40px",height:"40px",borderRadius:"50%",backgroundColor:w.colorBrandBackground,color:w.colorNeutralForegroundOnBrand,display:"flex",alignItems:"center",justifyContent:"center",fontWeight:600,fontSize:"16px"},children:t.order+1}),f.jsxs("div",{style:{flex:1},children:[f.jsx("div",{style:{fontWeight:600,marginBottom:"4px"},children:t.name}),f.jsxs("div",{style:{fontSize:"13px",color:w.colorNeutralForeground3},children:["Entity: ",f.jsx("strong",{children:t.entity}),t.steps.length>0&&f.jsxs(f.Fragment,{children:[" • ",t.steps.length," steps"]})]})]})]}),r<e.definition.stages.length-1&&f.jsx("div",{style:{display:"flex",justifyContent:"center",padding:"8px 0"},children:f.jsx(Na,{style:{transform:"rotate(90deg)",color:w.colorNeutralForeground3}})})]},t.id))})})]}),e.definition.parseError&&f.jsxs(Pe,{style:{marginBottom:"24px",borderColor:w.colorPaletteRedBorder1},children:[f.jsx(At,{header:f.jsx("strong",{children:"Parse Warning"})}),f.jsx("div",{style:{padding:"16px"},children:f.jsxs(Ve,{style:{color:w.colorPaletteRedForeground1},children:["Unable to fully parse BPF definition: ",e.definition.parseError]})})]}),e.definition.stages.length===0&&!e.definition.parseError&&f.jsx(Pe,{style:{marginBottom:"24px"},children:f.jsxs("div",{style:{padding:"40px",textAlign:"center",color:w.colorNeutralForeground3},children:[f.jsx(x0,{style:{fontSize:"48px",marginBottom:"16px"}}),f.jsx(Ve,{children:"No stages defined for this Business Process Flow"})]})})]})}function yZ({customAPIs:e,onSelectAPI:t}){const[r,n]=B.useState(null),o=B.useMemo(()=>[...e].sort((l,c)=>l.uniqueName.localeCompare(c.uniqueName)),[e]),i=l=>{n(l.id),t(l)},s=l=>{switch(l){case"Global":return"brand";case"Entity":return"success";case"EntityCollection":return"danger"}},a=[Ne({columnId:"uniqueName",compare:(l,c)=>l.uniqueName.localeCompare(c.uniqueName),renderHeaderCell:()=>"Unique Name",renderCell:l=>f.jsxs(Qe,{media:f.jsx(m0,{}),children:[f.jsx("div",{style:{fontWeight:500,fontFamily:"monospace",wordWrap:"break-word",overflowWrap:"break-word"},children:l.uniqueName}),l.description&&f.jsx("div",{style:{fontSize:"12px",color:w.colorNeutralForeground3,wordWrap:"break-word",overflowWrap:"break-word"},children:l.description})]})}),Ne({columnId:"type",compare:(l,c)=>Number(l.isFunction)-Number(c.isFunction),renderHeaderCell:()=>"Type",renderCell:l=>f.jsx(Qe,{children:f.jsx(Q,{appearance:"filled",color:l.isFunction?"brand":"danger",children:l.isFunction?f.jsxs(f.Fragment,{children:[f.jsx(Na,{})," Function"]}):f.jsxs(f.Fragment,{children:[f.jsx(rB,{})," Action"]})})})}),Ne({columnId:"binding",compare:(l,c)=>l.bindingType.localeCompare(c.bindingType),renderHeaderCell:()=>"Binding",renderCell:l=>f.jsx(Qe,{children:f.jsx(zo,{content:l.boundEntityLogicalName?`Bound to entity: ${l.boundEntityLogicalName}`:"Not bound to a specific entity",relationship:"description",children:f.jsx(Q,{appearance:"filled",color:s(l.bindingType),children:l.bindingType})})})}),Ne({columnId:"entity",renderHeaderCell:()=>"Bound Entity",renderCell:l=>f.jsx(Qe,{children:l.boundEntityLogicalName?f.jsx("span",{style:{fontFamily:"monospace",fontSize:"13px"},children:l.boundEntityLogicalName}):f.jsx("span",{style:{color:w.colorNeutralForeground3},children:"-"})})}),Ne({columnId:"params",compare:(l,c)=>l.requestParameters.length-c.requestParameters.length,renderHeaderCell:()=>"Parameters",renderCell:l=>f.jsx(Qe,{children:f.jsxs("div",{style:{display:"flex",gap:"8px"},children:[f.jsxs(Q,{appearance:"tint",size:"small",children:[l.requestParameters.length," in"]}),f.jsxs(Q,{appearance:"tint",size:"small",color:"success",children:[l.responseProperties.length," out"]})]})})}),Ne({columnId:"privilege",renderHeaderCell:()=>"Execution Privilege",renderCell:l=>f.jsx(Qe,{children:f.jsx(Q,{appearance:"outline",size:"small",children:l.executionPrivilege})})}),Ne({columnId:"flags",renderHeaderCell:()=>"Flags",renderCell:l=>f.jsx(Qe,{children:f.jsxs("div",{style:{display:"flex",gap:"4px",flexWrap:"wrap"},children:[l.isPrivate&&f.jsx(Q,{appearance:"outline",size:"small",color:"danger",children:"Private"}),l.isManaged&&f.jsx(Q,{appearance:"outline",size:"small",color:"warning",children:"Managed"})]})})})];return e.length===0?f.jsx("div",{style:{padding:"20px",textAlign:"center",color:w.colorNeutralForeground3},children:"No Custom APIs found."}):f.jsxs("div",{style:{marginTop:"16px"},children:[f.jsxs("div",{style:{padding:"12px",backgroundColor:w.colorNeutralBackground2,borderRadius:"4px",marginBottom:"16px"},children:[f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"4px"},children:[f.jsx(m0,{}),f.jsx("strong",{children:"About Custom APIs"})]}),f.jsx("div",{style:{fontSize:"13px",color:w.colorNeutralForeground2},children:"Custom APIs extend Dataverse functionality with custom actions and functions. Functions are read-only (GET requests), while Actions can modify data (POST requests). They can be global or bound to specific entities."})]}),f.jsxs(on,{items:o,columns:a,sortable:!0,selectionMode:"single",selectedItems:r?[r]:[],getRowId:l=>l.id,focusMode:"composite",style:{minWidth:"100%"},children:[f.jsx(sn,{children:f.jsx(vt,{children:({renderHeaderCell:l})=>f.jsx(an,{children:l()})})}),f.jsx(nn,{children:({item:l,rowId:c})=>f.jsx(vt,{style:{cursor:"pointer",backgroundColor:r===l.id?w.colorNeutralBackground1Selected:void 0},onClick:()=>i(l),children:({renderCell:u})=>f.jsx(rn,{children:u(l)})},c)})]})]})}function bZ({api:e}){const t=(r,n,o)=>r.length===0?f.jsx("div",{style:{padding:"20px",textAlign:"center",color:w.colorNeutralForeground3},children:o}):f.jsxs(g1,{"aria-label":n,size:"small",children:[f.jsx(m1,{children:f.jsxs(lu,{children:[f.jsx(ko,{children:"Name"}),f.jsx(ko,{children:"Type"}),f.jsx(ko,{children:"Required"}),f.jsx(ko,{children:"Entity"}),f.jsx(ko,{children:"Description"})]})}),f.jsx(p1,{children:r.map(i=>f.jsxs(lu,{children:[f.jsx(wo,{children:f.jsx(Qe,{children:f.jsx("span",{style:{fontFamily:"monospace",fontWeight:500},children:i.uniqueName})})}),f.jsx(wo,{children:f.jsx(Qe,{children:f.jsx(Q,{appearance:"tint",size:"small",children:i.typeName})})}),f.jsx(wo,{children:f.jsx(Qe,{children:i.isOptional?f.jsx(Q,{appearance:"outline",size:"small",color:"subtle",children:"Optional"}):f.jsx(Q,{appearance:"filled",size:"small",color:"danger",children:"Required"})})}),f.jsx(wo,{children:f.jsx(Qe,{children:i.logicalEntityName?f.jsx("span",{style:{fontFamily:"monospace",fontSize:"12px"},children:i.logicalEntityName}):f.jsx("span",{style:{color:w.colorNeutralForeground3},children:"-"})})}),f.jsx(wo,{children:f.jsx(Qe,{children:i.description||f.jsx("span",{style:{color:w.colorNeutralForeground3},children:"No description"})})})]},i.id))})]});return f.jsxs("div",{style:{padding:"20px",maxWidth:"1400px"},children:[f.jsxs("div",{style:{marginBottom:"24px"},children:[f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",marginBottom:"12px"},children:[f.jsx(m0,{style:{fontSize:"24px",color:w.colorBrandForeground1}}),f.jsx(Ze,{style:{fontFamily:"monospace"},children:e.uniqueName})]}),e.description&&f.jsx(Ve,{style:{color:w.colorNeutralForeground3,marginBottom:"12px"},children:e.description}),f.jsxs("div",{style:{display:"flex",gap:"8px",flexWrap:"wrap"},children:[f.jsx(Q,{appearance:"filled",color:e.isFunction?"brand":"danger",size:"large",children:e.isFunction?f.jsxs(f.Fragment,{children:[f.jsx(Na,{})," Function (Read-Only)"]}):f.jsxs(f.Fragment,{children:[f.jsx(rB,{})," Action (Can Modify Data)"]})}),f.jsxs(Q,{appearance:"filled",color:e.bindingType==="Global"?"brand":"success",size:"large",children:[e.bindingType," Binding"]}),e.isPrivate&&f.jsxs(Q,{appearance:"filled",color:"danger",size:"large",children:[f.jsx(FL,{})," Private"]}),e.isManaged&&f.jsx(Q,{appearance:"filled",color:"warning",size:"large",children:"🔒 Managed"})]})]}),f.jsx($s,{style:{marginBottom:"24px"}}),f.jsxs(Pe,{style:{marginBottom:"24px"},children:[f.jsx(At,{header:f.jsx("strong",{children:"Configuration"})}),f.jsxs("div",{style:{padding:"16px",display:"grid",gridTemplateColumns:"1fr 1fr",gap:"16px"},children:[f.jsxs("div",{children:[f.jsx(at,{style:{color:w.colorNeutralForeground3},children:"Unique Name"}),f.jsx(Ve,{style:{fontFamily:"monospace",fontSize:"13px"},children:e.uniqueName})]}),f.jsxs("div",{children:[f.jsx(at,{style:{color:w.colorNeutralForeground3},children:"Display Name"}),f.jsx(Ve,{children:e.displayName})]}),f.jsxs("div",{children:[f.jsx(at,{style:{color:w.colorNeutralForeground3},children:"Binding Type"}),f.jsx(Ve,{children:e.bindingType})]}),f.jsxs("div",{children:[f.jsx(at,{style:{color:w.colorNeutralForeground3},children:"Bound Entity"}),f.jsx(Ve,{children:e.boundEntityLogicalName?f.jsx("span",{style:{fontFamily:"monospace"},children:e.boundEntityLogicalName}):f.jsx("span",{style:{color:w.colorNeutralForeground3},children:"None"})})]}),f.jsxs("div",{children:[f.jsx(at,{style:{color:w.colorNeutralForeground3},children:"Execution Privilege"}),f.jsx(Ve,{children:e.executionPrivilege})]}),f.jsxs("div",{children:[f.jsx(at,{style:{color:w.colorNeutralForeground3},children:"Plugin Step Type"}),f.jsx(Ve,{children:e.allowedCustomProcessingStepType})]}),f.jsxs("div",{children:[f.jsx(at,{style:{color:w.colorNeutralForeground3},children:"Owner"}),f.jsx(Ve,{children:e.owner})]}),f.jsxs("div",{children:[f.jsx(at,{style:{color:w.colorNeutralForeground3},children:"Last Modified"}),f.jsxs(Ve,{children:[Hs(e.modifiedOn)," by ",e.modifiedBy]})]})]})]}),f.jsxs(Pe,{style:{marginBottom:"24px"},children:[f.jsx(At,{header:f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[f.jsx("strong",{children:"Request Parameters (Input)"}),f.jsx(Q,{appearance:"tint",size:"small",children:e.requestParameters.length})]})}),f.jsx("div",{style:{padding:"16px"},children:t(e.requestParameters,"Request Parameters","No input parameters defined")})]}),f.jsxs(Pe,{style:{marginBottom:"24px"},children:[f.jsx(At,{header:f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[f.jsx("strong",{children:"Response Properties (Output)"}),f.jsx(Q,{appearance:"tint",size:"small",color:"success",children:e.responseProperties.length})]})}),f.jsx("div",{style:{padding:"16px"},children:t(e.responseProperties,"Response Properties","No output properties defined")})]}),f.jsxs(Pe,{children:[f.jsx(At,{header:f.jsx("strong",{children:"Usage Information"})}),f.jsxs("div",{style:{padding:"16px"},children:[f.jsxs("div",{style:{marginBottom:"16px"},children:[f.jsx("strong",{style:{display:"block",marginBottom:"8px"},children:"Endpoint Pattern:"}),f.jsxs("code",{style:{display:"block",padding:"12px",backgroundColor:w.colorNeutralBackground2,borderRadius:"4px",fontFamily:"monospace",fontSize:"13px"},children:[e.isFunction?"GET ":"POST ",e.bindingType==="Global"?`/api/data/v9.2/${e.uniqueName}`:e.bindingType==="Entity"?`/api/data/v9.2/${e.boundEntityLogicalName}(id)/${e.uniqueName}`:`/api/data/v9.2/${e.boundEntityLogicalName}/${e.uniqueName}`]})]}),f.jsxs("div",{style:{fontSize:"13px",color:w.colorNeutralForeground2},children:[f.jsx("strong",{children:"Type: "}),e.isFunction?f.jsxs(f.Fragment,{children:["This is a ",f.jsx("strong",{children:"Function"})," (read-only operation). Use GET requests to invoke it. Functions cannot modify data."]}):f.jsxs(f.Fragment,{children:["This is an ",f.jsx("strong",{children:"Action"})," (can modify data). Use POST requests to invoke it. Actions can create, update, or delete data."]})]})]})]})]})}function xZ({environmentVariables:e,onSelectVariable:t}){const[r,n]=B.useState(null),o=B.useMemo(()=>[...e].sort((l,c)=>l.schemaName.localeCompare(c.schemaName)),[e]),i=l=>{n(l.id),t(l)},s=l=>{switch(l){case"String":return"brand";case"Number":return"success";case"Boolean":return"danger";case"JSON":return"warning";case"DataSource":return"severe";default:return"brand"}},a=[Ne({columnId:"name",compare:(l,c)=>l.schemaName.localeCompare(c.schemaName),renderHeaderCell:()=>"Name",renderCell:l=>f.jsxs(Qe,{media:f.jsx(X5,{}),children:[f.jsx("div",{style:{fontWeight:500,wordWrap:"break-word",overflowWrap:"break-word"},children:l.displayName}),f.jsx("div",{style:{fontSize:"12px",color:w.colorNeutralForeground3,fontFamily:"monospace",wordWrap:"break-word",overflowWrap:"break-word"},children:l.schemaName})]})}),Ne({columnId:"type",renderHeaderCell:()=>"Type",renderCell:l=>f.jsx(Qe,{children:f.jsx(Q,{appearance:"filled",color:s(l.typeName),children:l.typeName})})}),Ne({columnId:"currentValue",renderHeaderCell:()=>"Current Value",renderCell:l=>f.jsx(Qe,{children:f.jsx("span",{style:{fontFamily:"monospace",fontSize:"13px",wordWrap:"break-word",overflowWrap:"break-word",display:"block"},children:l.currentValue||f.jsx("span",{style:{color:w.colorNeutralForeground3},children:"Not set"})})})}),Ne({columnId:"defaultValue",renderHeaderCell:()=>"Default Value",renderCell:l=>f.jsx(Qe,{children:f.jsx("span",{style:{fontFamily:"monospace",fontSize:"13px",wordWrap:"break-word",overflowWrap:"break-word",display:"block"},children:l.defaultValue||f.jsx("span",{style:{color:w.colorNeutralForeground3},children:"None"})})})}),Ne({columnId:"flags",renderHeaderCell:()=>"Flags",renderCell:l=>f.jsx(Qe,{children:f.jsxs("div",{style:{display:"flex",gap:"4px"},children:[l.isRequired&&f.jsx(Q,{appearance:"filled",color:"danger",size:"small",children:"Required"}),l.isManaged&&f.jsx(Q,{appearance:"outline",size:"small",children:"Managed"})]})})})];return e.length===0?f.jsx("div",{style:{padding:"20px",textAlign:"center",color:w.colorNeutralForeground3},children:"No Environment Variables found."}):f.jsx("div",{style:{marginTop:"16px"},children:f.jsxs(on,{items:o,columns:a,sortable:!0,selectionMode:"single",selectedItems:r?[r]:[],getRowId:l=>l.id,focusMode:"composite",children:[f.jsx(sn,{children:f.jsx(vt,{children:({renderHeaderCell:l})=>f.jsx(an,{children:l()})})}),f.jsx(nn,{children:({item:l,rowId:c})=>f.jsx(vt,{style:{cursor:"pointer",backgroundColor:r===l.id?w.colorNeutralBackground1Selected:void 0},onClick:()=>i(l),children:({renderCell:u})=>f.jsx(rn,{children:u(l)})},c)})]})})}function wZ({envVar:e}){const t=r=>{switch(r){case"String":return w.colorPaletteBlueForeground2;case"Number":return w.colorPaletteGreenForeground2;case"Boolean":return w.colorPaletteRedForeground2;case"JSON":return w.colorPaletteYellowForeground2;case"DataSource":return w.colorPalettePurpleForeground2;default:return w.colorBrandForeground1}};return f.jsxs("div",{style:{padding:"20px",maxWidth:"1000px"},children:[f.jsxs("div",{style:{marginBottom:"24px"},children:[f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",marginBottom:"12px"},children:[f.jsx(X5,{style:{fontSize:"24px",color:w.colorBrandForeground1}}),f.jsx(Ze,{children:e.displayName})]}),f.jsx(Ve,{style:{fontFamily:"monospace",color:w.colorNeutralForeground3,marginBottom:"12px"},children:e.schemaName}),e.description&&f.jsx(Ve,{style:{color:w.colorNeutralForeground2,marginBottom:"12px"},children:e.description}),f.jsxs("div",{style:{display:"flex",gap:"8px",flexWrap:"wrap"},children:[f.jsx(Q,{appearance:"filled",size:"large",style:{backgroundColor:t(e.typeName)},children:e.typeName}),e.isRequired&&f.jsx(Q,{appearance:"filled",color:"danger",size:"large",children:"Required"}),e.isManaged&&f.jsx(Q,{appearance:"filled",color:"warning",size:"large",children:"Managed"})]})]}),f.jsx($s,{style:{marginBottom:"24px"}}),f.jsxs(Pe,{style:{marginBottom:"24px"},children:[f.jsx(At,{header:f.jsx("strong",{children:"Values"})}),f.jsxs("div",{style:{padding:"16px"},children:[f.jsxs("div",{style:{marginBottom:"16px"},children:[f.jsx(at,{style:{color:w.colorNeutralForeground3},children:"Current Value"}),f.jsx(Ve,{style:{fontFamily:"monospace",fontSize:"14px",padding:"8px",backgroundColor:w.colorNeutralBackground2,borderRadius:"4px",marginTop:"4px"},children:e.currentValue||f.jsx("span",{style:{color:w.colorNeutralForeground3},children:"Not set"})})]}),f.jsxs("div",{children:[f.jsx(at,{style:{color:w.colorNeutralForeground3},children:"Default Value"}),f.jsx(Ve,{style:{fontFamily:"monospace",fontSize:"14px",padding:"8px",backgroundColor:w.colorNeutralBackground2,borderRadius:"4px",marginTop:"4px"},children:e.defaultValue||f.jsx("span",{style:{color:w.colorNeutralForeground3},children:"None"})})]})]})]}),f.jsxs(Pe,{style:{marginBottom:"24px"},children:[f.jsx(At,{header:f.jsx("strong",{children:"Configuration"})}),f.jsxs("div",{style:{padding:"16px",display:"grid",gridTemplateColumns:"1fr 1fr",gap:"16px"},children:[f.jsxs("div",{children:[f.jsx(at,{style:{color:w.colorNeutralForeground3},children:"Type"}),f.jsx(Ve,{children:e.typeName})]}),f.jsxs("div",{children:[f.jsx(at,{style:{color:w.colorNeutralForeground3},children:"Required"}),f.jsx(Ve,{children:e.isRequired?"Yes":"No"})]}),f.jsxs("div",{children:[f.jsx(at,{style:{color:w.colorNeutralForeground3},children:"Customizable"}),f.jsx(Ve,{children:e.isCustomizable?"Yes":"No"})]}),f.jsxs("div",{children:[f.jsx(at,{style:{color:w.colorNeutralForeground3},children:"Owner"}),f.jsx(Ve,{children:e.owner})]})]})]}),e.hint&&f.jsxs(Pe,{children:[f.jsx(At,{header:f.jsx("strong",{children:"Hint"})}),f.jsx("div",{style:{padding:"16px"},children:f.jsx(Ve,{children:e.hint})})]})]})}function kZ({connectionReferences:e,onSelectReference:t}){const[r,n]=B.useState(null),o=B.useMemo(()=>[...e].sort((s,a)=>s.name.localeCompare(a.name)),[e]),i=[Ne({columnId:"name",renderHeaderCell:()=>"Name",renderCell:s=>f.jsxs(Qe,{media:f.jsx(Z5,{}),children:[f.jsx("div",{style:{fontWeight:500},children:s.displayName}),f.jsx("div",{style:{fontSize:"12px",color:w.colorNeutralForeground3,fontFamily:"monospace"},children:s.name})]})}),Ne({columnId:"connector",renderHeaderCell:()=>"Connector",renderCell:s=>f.jsx(Qe,{children:s.connectorDisplayName||"Unknown"})}),Ne({columnId:"status",renderHeaderCell:()=>"Status",renderCell:s=>f.jsx(Qe,{children:f.jsx(Q,{appearance:"filled",color:s.connectionId?"success":"danger",children:s.connectionId?"Connected":"Not Connected"})})})];return e.length===0?f.jsx("div",{style:{padding:"20px",textAlign:"center",color:w.colorNeutralForeground3},children:"No Connection References found."}):f.jsx("div",{style:{marginTop:"16px"},children:f.jsxs(on,{items:o,columns:i,sortable:!0,selectionMode:"single",selectedItems:r?[r]:[],getRowId:s=>s.id,focusMode:"composite",children:[f.jsx(sn,{children:f.jsx(vt,{children:({renderHeaderCell:s})=>f.jsx(an,{children:s()})})}),f.jsx(nn,{children:({item:s,rowId:a})=>f.jsx(vt,{style:{cursor:"pointer",backgroundColor:r===s.id?w.colorNeutralBackground1Selected:void 0},onClick:()=>{n(s.id),t(s)},children:({renderCell:l})=>f.jsx(rn,{children:l(s)})},a)})]})})}function SZ({connectionRef:e}){return f.jsxs("div",{style:{padding:"20px",maxWidth:"1000px"},children:[f.jsxs("div",{style:{marginBottom:"24px"},children:[f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",marginBottom:"12px"},children:[f.jsx(Z5,{style:{fontSize:"24px",color:w.colorBrandForeground1}}),f.jsx(Ze,{children:e.displayName})]}),e.description&&f.jsx(Ve,{style:{color:w.colorNeutralForeground2,marginBottom:"12px"},children:e.description}),f.jsxs("div",{style:{display:"flex",gap:"8px",flexWrap:"wrap"},children:[f.jsx(Q,{appearance:"filled",color:e.connectionId?"success":"danger",size:"large",children:e.connectionId?"✓ Connected":"✗ Not Connected"}),e.isManaged&&f.jsx(Q,{appearance:"filled",color:"warning",size:"large",children:"Managed"})]})]}),f.jsx($s,{style:{marginBottom:"24px"}}),f.jsxs(Pe,{children:[f.jsx(At,{header:f.jsx("strong",{children:"Details"})}),f.jsxs("div",{style:{padding:"16px",display:"grid",gridTemplateColumns:"1fr 1fr",gap:"16px"},children:[f.jsxs("div",{children:[f.jsx(at,{style:{color:w.colorNeutralForeground3},children:"Logical Name"}),f.jsx(Ve,{style:{fontFamily:"monospace"},children:e.name})]}),f.jsxs("div",{children:[f.jsx(at,{style:{color:w.colorNeutralForeground3},children:"Connector"}),f.jsx(Ve,{children:e.connectorDisplayName||"Unknown"})]}),f.jsxs("div",{children:[f.jsx(at,{style:{color:w.colorNeutralForeground3},children:"Connection ID"}),f.jsx(Ve,{style:{fontFamily:"monospace",fontSize:"12px",wordBreak:"break-all"},children:e.connectionId||f.jsx("span",{style:{color:w.colorNeutralForeground3},children:"Not set"})})]}),f.jsxs("div",{children:[f.jsx(at,{style:{color:w.colorNeutralForeground3},children:"Owner"}),f.jsx(Ve,{children:e.owner})]})]})]})]})}const CZ=bt({container:{display:"flex",flexDirection:"column",gap:w.spacingVerticalM},filters:{display:"flex",gap:w.spacingHorizontalM,flexWrap:"wrap",alignItems:"center",padding:w.spacingVerticalM,backgroundColor:w.colorNeutralBackground2,borderRadius:w.borderRadiusMedium},searchBox:{minWidth:"300px"},listContainer:{display:"flex",flexDirection:"column",gap:w.spacingVerticalS},emptyState:{padding:w.spacingVerticalXXXL,textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",gap:w.spacingVerticalL,color:w.colorNeutralForeground3},choiceRow:{display:"grid",gridTemplateColumns:"24px minmax(200px, 2fr) minmax(100px, 1fr) auto auto",gap:w.spacingHorizontalM,alignItems:"center",padding:w.spacingVerticalM,backgroundColor:w.colorNeutralBackground1,border:`1px solid ${w.colorNeutralStroke1}`,borderRadius:w.borderRadiusMedium,cursor:"pointer",transition:"all 0.2s ease",":hover":{backgroundColor:w.colorNeutralBackground1Hover,boxShadow:w.shadow4}},choiceRowExpanded:{backgroundColor:w.colorBrandBackground2},chevron:{display:"flex",alignItems:"center",color:w.colorNeutralForeground3},nameColumn:{display:"flex",flexDirection:"column",gap:"2px",minWidth:0,wordBreak:"break-word"},wrapText:{wordBreak:"break-word",overflowWrap:"break-word",hyphens:"auto"},codeText:{fontFamily:"Consolas, Monaco, monospace",fontSize:w.fontSizeBase200,color:w.colorNeutralForeground3},expandedDetails:{backgroundColor:w.colorNeutralBackground2,padding:w.spacingVerticalL,border:`1px solid ${w.colorNeutralStroke1}`,borderTop:"none",borderRadius:`0 0 ${w.borderRadiusMedium} ${w.borderRadiusMedium}`,marginTop:"-4px"},detailsGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(250px, 1fr))",gap:w.spacingHorizontalM,marginBottom:w.spacingVerticalM},detailItem:{display:"flex",flexDirection:"column",gap:w.spacingVerticalXXS},detailLabel:{fontSize:w.fontSizeBase200,color:w.colorNeutralForeground3},detailValue:{fontWeight:w.fontWeightSemibold},section:{marginTop:w.spacingVerticalM}});function _Z({globalChoices:e}){const t=CZ(),[r,n]=B.useState(null),[o,i]=B.useState(""),[s,a]=B.useState(!1),l=B.useMemo(()=>{const d=o.toLowerCase().trim();let p=e;return s&&(p=p.filter(h=>h.isManaged)),d&&(p=p.filter(h=>h.name.toLowerCase().includes(d)||h.displayName.toLowerCase().includes(d)||h.description&&h.description.toLowerCase().includes(d))),p.sort((h,m)=>h.displayName.localeCompare(m.displayName))},[e,o,s]),c=d=>{n(r===d?null:d)},u=d=>f.jsx("div",{className:t.expandedDetails,children:f.jsxs(Pe,{children:[f.jsx(Ze,{children:d.displayName}),f.jsxs("div",{className:t.detailsGrid,children:[f.jsxs("div",{className:t.detailItem,children:[f.jsx(E,{className:t.detailLabel,children:"Logical Name"}),f.jsx(E,{className:`${t.detailValue} ${t.codeText}`,children:d.name})]}),f.jsxs("div",{className:t.detailItem,children:[f.jsx(E,{className:t.detailLabel,children:"Options"}),f.jsxs(E,{className:t.detailValue,children:[d.totalOptions," options"]})]}),f.jsxs("div",{className:t.detailItem,children:[f.jsx(E,{className:t.detailLabel,children:"Status"}),f.jsx(Q,{appearance:"filled",color:d.isManaged?"warning":"success",children:d.isManaged?"Managed":"Unmanaged"})]}),f.jsxs("div",{className:t.detailItem,children:[f.jsx(E,{className:t.detailLabel,children:"Customizable"}),f.jsx(E,{className:t.detailValue,children:d.isCustomizable?"Yes":"No"})]}),f.jsxs("div",{className:t.detailItem,children:[f.jsx(E,{className:t.detailLabel,children:"Last Modified"}),f.jsx(E,{className:t.detailValue,children:new Date(d.modifiedOn).toLocaleString()})]}),f.jsxs("div",{className:t.detailItem,children:[f.jsx(E,{className:t.detailLabel,children:"Modified By"}),f.jsx(E,{className:t.detailValue,children:d.modifiedBy})]})]}),d.description&&f.jsxs("div",{className:t.section,children:[f.jsx(E,{className:t.detailLabel,children:"Description"}),f.jsx(E,{className:t.wrapText,children:d.description})]}),d.options.length>0&&f.jsxs("div",{className:t.section,children:[f.jsxs(Ze,{children:["Options (",d.options.length,")"]}),f.jsxs(g1,{"aria-label":"Global Choice Options",size:"small",style:{marginTop:w.spacingVerticalM},children:[f.jsx(m1,{children:f.jsxs(lu,{children:[f.jsx(ko,{children:"Value"}),f.jsx(ko,{children:"Label"}),f.jsx(ko,{children:"Description"}),f.jsx(ko,{children:"Color"})]})}),f.jsx(p1,{children:d.options.map(p=>f.jsxs(lu,{children:[f.jsx(wo,{children:f.jsx(Qe,{children:f.jsx(Q,{appearance:"tint",size:"small",children:p.value})})}),f.jsx(wo,{children:f.jsx(Qe,{children:f.jsx("span",{style:{fontWeight:500},children:p.label})})}),f.jsx(wo,{children:f.jsx(Qe,{children:p.description||f.jsx("span",{style:{color:w.colorNeutralForeground3},children:"-"})})}),f.jsx(wo,{children:f.jsx(Qe,{children:p.color?f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[f.jsx("div",{style:{width:"16px",height:"16px",backgroundColor:p.color,border:"1px solid "+w.colorNeutralStroke1,borderRadius:"4px"}}),f.jsx("span",{style:{fontFamily:"monospace",fontSize:"12px"},children:p.color})]}):f.jsx("span",{style:{color:w.colorNeutralForeground3},children:"-"})})})]},p.value))})]})]})]})});return e.length===0?f.jsxs("div",{className:t.emptyState,children:[f.jsx(E,{style:{fontSize:"48px"},children:"🎯"}),f.jsx(E,{size:500,weight:"semibold",children:"No Global Choices Found"}),f.jsx(E,{children:"No global choices were found in the selected solution(s)."})]}):f.jsxs("div",{className:t.container,children:[f.jsxs("div",{className:t.filters,children:[f.jsx(Zi,{className:t.searchBox,placeholder:"Search global choices...",value:o,onChange:(d,p)=>i(p.value||"")}),f.jsx(ro,{label:"Managed only",checked:s,onChange:(d,p)=>a(p.checked===!0)}),f.jsxs(E,{style:{marginLeft:"auto",color:w.colorNeutralForeground3},children:[l.length," of ",e.length," global choices"]})]}),f.jsx("div",{className:t.listContainer,children:l.length===0?f.jsx("div",{className:t.emptyState,children:f.jsx(E,{children:"No global choices match your filters."})}):l.map(d=>{const p=r===d.id;return f.jsxs("div",{children:[f.jsxs("div",{className:`${t.choiceRow} ${p?t.choiceRowExpanded:""}`,onClick:()=>c(d.id),children:[f.jsx("div",{className:t.chevron,children:p?f.jsx(io,{}):f.jsx(so,{})}),f.jsxs("div",{className:t.nameColumn,children:[f.jsx(E,{weight:"semibold",className:t.wrapText,children:d.displayName}),f.jsx(E,{className:`${t.wrapText} ${t.codeText}`,children:d.name})]}),f.jsxs(E,{style:{fontSize:w.fontSizeBase200,color:w.colorNeutralForeground3},children:[d.totalOptions," options"]}),f.jsx(Q,{appearance:"filled",color:d.isManaged?"warning":"success",size:"small",children:d.isManaged?"Managed":"Unmanaged"}),!d.isCustomizable&&f.jsx(Q,{appearance:"outline",color:"danger",size:"small",children:"Not Customizable"})]}),p&&u(d)]},d.id)})})]})}function BZ({customConnectors:e,onSelectConnector:t}){const[r,n]=B.useState(null),o=B.useMemo(()=>[...e].sort((s,a)=>s.name.localeCompare(a.name)),[e]),i=[Ne({columnId:"name",renderHeaderCell:()=>"Name",renderCell:s=>f.jsxs(Qe,{media:f.jsx(K5,{}),children:[f.jsx("div",{style:{fontWeight:500},children:s.displayName}),f.jsx("div",{style:{fontSize:"12px",color:w.colorNeutralForeground3,fontFamily:"monospace"},children:s.name})]})}),Ne({columnId:"type",renderHeaderCell:()=>"Type",renderCell:s=>f.jsx(Qe,{children:f.jsx(Q,{appearance:"tint",children:s.connectorType})})}),Ne({columnId:"status",renderHeaderCell:()=>"Status",renderCell:s=>f.jsx(Qe,{children:f.jsxs("div",{style:{display:"flex",gap:"8px",alignItems:"center"},children:[f.jsx(Q,{appearance:"filled",color:s.isManaged?"warning":"success",children:s.isManaged?"Managed":"Unmanaged"}),!s.isCustomizable&&f.jsx(Q,{appearance:"outline",color:"danger",size:"small",children:"Not Customizable"})]})})})];return e.length===0?f.jsx("div",{style:{padding:"20px",textAlign:"center",color:w.colorNeutralForeground3},children:"No Custom Connectors found."}):f.jsx("div",{style:{marginTop:"16px"},children:f.jsxs(on,{items:o,columns:i,sortable:!0,selectionMode:"single",selectedItems:r?[r]:[],getRowId:s=>s.id,focusMode:"composite",children:[f.jsx(sn,{children:f.jsx(vt,{children:({renderHeaderCell:s})=>f.jsx(an,{children:s()})})}),f.jsx(nn,{children:({item:s,rowId:a})=>f.jsx(vt,{style:{cursor:"pointer",backgroundColor:r===s.id?w.colorNeutralBackground1Selected:void 0},onClick:()=>{n(s.id),t(s)},children:({renderCell:l})=>f.jsx(rn,{children:l(s)})},a)})]})})}function TZ({customConnector:e}){return f.jsxs("div",{style:{padding:"20px",maxWidth:"1200px"},children:[f.jsxs("div",{style:{marginBottom:"24px"},children:[f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",marginBottom:"12px"},children:[f.jsx(K5,{style:{fontSize:"24px",color:w.colorBrandForeground1}}),f.jsx(Ze,{children:e.displayName})]}),e.description&&f.jsx(Ve,{style:{color:w.colorNeutralForeground3,marginBottom:"12px"},children:e.description}),f.jsxs("div",{style:{display:"flex",gap:"8px",flexWrap:"wrap"},children:[f.jsx(Q,{appearance:"filled",color:e.isManaged?"warning":"success",size:"large",children:e.isManaged?"🔒 Managed":"✓ Unmanaged"}),f.jsx(Q,{appearance:"tint",color:"brand",size:"large",children:e.connectorType}),!e.isCustomizable&&f.jsx(Q,{appearance:"filled",color:"danger",size:"large",children:"Not Customizable"})]})]}),f.jsx($s,{style:{marginBottom:"24px"}}),f.jsxs(Pe,{style:{marginBottom:"24px"},children:[f.jsx(At,{header:f.jsx("strong",{children:"Details"})}),f.jsxs("div",{style:{padding:"16px",display:"grid",gridTemplateColumns:"1fr 1fr",gap:"16px"},children:[f.jsxs("div",{children:[f.jsx(at,{style:{color:w.colorNeutralForeground3},children:"Logical Name"}),f.jsx(Ve,{style:{fontFamily:"monospace"},children:e.name})]}),f.jsxs("div",{children:[f.jsx(at,{style:{color:w.colorNeutralForeground3},children:"Display Name"}),f.jsx(Ve,{children:e.displayName})]}),f.jsxs("div",{children:[f.jsx(at,{style:{color:w.colorNeutralForeground3},children:"Owner"}),f.jsx(Ve,{children:e.owner})]}),f.jsxs("div",{children:[f.jsx(at,{style:{color:w.colorNeutralForeground3},children:"Last Modified"}),f.jsxs(Ve,{children:[Hs(e.modifiedOn)," by ",e.modifiedBy]})]})]})]}),e.capabilities.length>0&&f.jsxs(Pe,{style:{marginBottom:"24px"},children:[f.jsx(At,{header:f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[f.jsx("strong",{children:"Capabilities"}),f.jsx(Q,{appearance:"tint",size:"small",children:e.capabilities.length})]})}),f.jsx("div",{style:{padding:"16px"},children:f.jsx("div",{style:{display:"flex",gap:"8px",flexWrap:"wrap"},children:e.capabilities.map((t,r)=>f.jsx(Q,{appearance:"outline",size:"large",children:t},r))})})]}),e.connectionParameters.length>0&&f.jsxs(Pe,{style:{marginBottom:"24px"},children:[f.jsx(At,{header:f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[f.jsx("strong",{children:"Connection Parameters"}),f.jsx(Q,{appearance:"tint",size:"small",children:e.connectionParameters.length})]})}),f.jsx("div",{style:{padding:"16px"},children:f.jsx("div",{style:{display:"flex",gap:"8px",flexWrap:"wrap"},children:e.connectionParameters.map((t,r)=>f.jsx(Q,{appearance:"tint",size:"large",children:t},r))})})]}),e.iconUri&&f.jsxs(Pe,{children:[f.jsx(At,{header:f.jsx("strong",{children:"Icon"})}),f.jsx("div",{style:{padding:"16px"},children:f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[f.jsx("img",{src:e.iconUri,alt:`${e.displayName} icon`,style:{width:"48px",height:"48px",objectFit:"contain"},onError:t=>{t.target.style.display="none"}}),f.jsx(Ve,{style:{fontFamily:"monospace",fontSize:"12px",wordBreak:"break-all"},children:e.iconUri})]})})]})]})}var g2={name:"mermaid",version:"11.12.2",description:"Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.",type:"module",module:"./dist/mermaid.core.mjs",types:"./dist/mermaid.d.ts",exports:{".":{types:"./dist/mermaid.d.ts",import:"./dist/mermaid.core.mjs",default:"./dist/mermaid.core.mjs"},"./*":"./*"},keywords:["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph","mindmap","packet diagram","c4 diagram","er diagram","pie chart","pie diagram","quadrant chart","requirement diagram","graph"],scripts:{clean:"rimraf dist",dev:"pnpm -w dev","docs:code":"typedoc src/defaultConfig.ts src/config.ts src/mermaid.ts && prettier --write ./src/docs/config/setup","docs:build":"rimraf ../../docs && pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts","docs:verify":"pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts --verify","docs:pre:vitepress":"pnpm --filter ./src/docs prefetch && rimraf src/vitepress && pnpm docs:code && tsx scripts/docs.cli.mts --vitepress && pnpm --filter ./src/vitepress install --no-frozen-lockfile --ignore-scripts","docs:build:vitepress":"pnpm docs:pre:vitepress && (cd src/vitepress && pnpm run build) && cpy --flat src/docs/landing/ ./src/vitepress/.vitepress/dist/landing","docs:dev":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:dev:docker":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev:docker" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:serve":"pnpm docs:build:vitepress && vitepress serve src/vitepress","docs:spellcheck":'cspell "src/docs/**/*.md"',"docs:release-version":"tsx scripts/update-release-version.mts","docs:verify-version":"tsx scripts/update-release-version.mts --verify","types:build-config":"tsx scripts/create-types-from-json-schema.mts","types:verify-config":"tsx scripts/create-types-from-json-schema.mts --verify",checkCircle:"npx madge --circular ./src",prepublishOnly:"pnpm docs:verify-version"},repository:{type:"git",url:"https://github.com/mermaid-js/mermaid"},author:"Knut Sveidqvist",license:"MIT",standard:{ignore:["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],globals:["page"]},dependencies:{"@braintree/sanitize-url":"^7.1.1","@iconify/utils":"^3.0.1","@mermaid-js/parser":"workspace:^","@types/d3":"^7.4.3",cytoscape:"^3.29.3","cytoscape-cose-bilkent":"^4.1.0","cytoscape-fcose":"^2.2.0",d3:"^7.9.0","d3-sankey":"^0.12.3","dagre-d3-es":"7.0.13",dayjs:"^1.11.18",dompurify:"^3.2.5",katex:"^0.16.22",khroma:"^2.1.0","lodash-es":"^4.17.21",marked:"^16.2.1",roughjs:"^4.6.6",stylis:"^4.3.6","ts-dedent":"^2.2.0",uuid:"^11.1.0"},devDependencies:{"@adobe/jsonschema2md":"^8.0.5","@iconify/types":"^2.0.0","@types/cytoscape":"^3.21.9","@types/cytoscape-fcose":"^2.2.4","@types/d3-sankey":"^0.12.4","@types/d3-scale":"^4.0.9","@types/d3-scale-chromatic":"^3.1.0","@types/d3-selection":"^3.0.11","@types/d3-shape":"^3.1.7","@types/jsdom":"^21.1.7","@types/katex":"^0.16.7","@types/lodash-es":"^4.17.12","@types/micromatch":"^4.0.9","@types/stylis":"^4.2.7","@types/uuid":"^10.0.0",ajv:"^8.17.1",canvas:"^3.1.2",chokidar:"3.6.0",concurrently:"^9.1.2","csstree-validator":"^4.0.1",globby:"^14.1.0",jison:"^0.4.18","js-base64":"^3.7.8",jsdom:"^26.1.0","json-schema-to-typescript":"^15.0.4",micromatch:"^4.0.8","path-browserify":"^1.0.1",prettier:"^3.5.3",remark:"^15.0.1","remark-frontmatter":"^5.0.0","remark-gfm":"^4.0.1",rimraf:"^6.0.1","start-server-and-test":"^2.0.13","type-fest":"^4.35.0",typedoc:"^0.28.12","typedoc-plugin-markdown":"^4.8.1",typescript:"~5.7.3","unist-util-flatmap":"^1.0.0","unist-util-visit":"^5.0.0",vitepress:"^1.6.4","vitepress-plugin-search":"1.0.4-alpha.22"},files:["dist/","README.md"],publishConfig:{access:"public"}},K3={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(nc,function(){var r=1e3,n=6e4,o=36e5,i="millisecond",s="second",a="minute",l="hour",c="day",u="week",d="month",p="quarter",h="year",m="date",g="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(C){var R=["th","st","nd","rd"],O=C%100;return"["+C+(R[(O-20)%10]||R[O]||R[0])+"]"}},x=function(C,R,O){var D=String(C);return!D||D.length>=R?C:""+Array(R+1-D.length).join(O)+C},k={s:x,z:function(C){var R=-C.utcOffset(),O=Math.abs(R),D=Math.floor(O/60),M=O%60;return(R<=0?"+":"-")+x(D,2,"0")+":"+x(M,2,"0")},m:function C(R,O){if(R.date()<O.date())return-C(O,R);var D=12*(O.year()-R.year())+(O.month()-R.month()),M=R.clone().add(D,d),$=O-M<0,X=R.clone().add(D+($?-1:1),d);return+(-(D+(O-M)/($?M-X:X-M))||0)},a:function(C){return C<0?Math.ceil(C)||0:Math.floor(C)},p:function(C){return{M:d,y:h,w:u,d:c,D:m,h:l,m:a,s,ms:i,Q:p}[C]||String(C||"").toLowerCase().replace(/s$/,"")},u:function(C){return C===void 0}},S="en",_={};_[S]=b;var N="$isDayjsObject",z=function(C){return C instanceof A||!(!C||!C[N])},F=function C(R,O,D){var M;if(!R)return S;if(typeof R=="string"){var $=R.toLowerCase();_[$]&&(M=$),O&&(_[$]=O,M=$);var X=R.split("-");if(!M&&X.length>1)return C(X[0])}else{var V=R.name;_[V]=R,M=V}return!D&&M&&(S=M),M||!D&&S},I=function(C,R){if(z(C))return C.clone();var O=typeof R=="object"?R:{};return O.date=C,O.args=arguments,new A(O)},H=k;H.l=F,H.i=z,H.w=function(C,R){return I(C,{locale:R.$L,utc:R.$u,x:R.$x,$offset:R.$offset})};var A=function(){function C(O){this.$L=F(O.locale,null,!0),this.parse(O),this.$x=this.$x||O.x||{},this[N]=!0}var R=C.prototype;return R.parse=function(O){this.$d=function(D){var M=D.date,$=D.utc;if(M===null)return new Date(NaN);if(H.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var X=M.match(y);if(X){var V=X[2]-1||0,L=(X[7]||"0").substring(0,3);return $?new Date(Date.UTC(X[1],V,X[3]||1,X[4]||0,X[5]||0,X[6]||0,L)):new Date(X[1],V,X[3]||1,X[4]||0,X[5]||0,X[6]||0,L)}}return new Date(M)}(O),this.init()},R.init=function(){var O=this.$d;this.$y=O.getFullYear(),this.$M=O.getMonth(),this.$D=O.getDate(),this.$W=O.getDay(),this.$H=O.getHours(),this.$m=O.getMinutes(),this.$s=O.getSeconds(),this.$ms=O.getMilliseconds()},R.$utils=function(){return H},R.isValid=function(){return this.$d.toString()!==g},R.isSame=function(O,D){var M=I(O);return this.startOf(D)<=M&&M<=this.endOf(D)},R.isAfter=function(O,D){return I(O)<this.startOf(D)},R.isBefore=function(O,D){return this.endOf(D)<I(O)},R.$g=function(O,D,M){return H.u(O)?this[D]:this.set(M,O)},R.unix=function(){return Math.floor(this.valueOf()/1e3)},R.valueOf=function(){return this.$d.getTime()},R.startOf=function(O,D){var M=this,$=!!H.u(D)||D,X=H.p(O),V=function(Ie,Xe){var Ye=H.w(M.$u?Date.UTC(M.$y,Xe,Ie):new Date(M.$y,Xe,Ie),M);return $?Ye:Ye.endOf(c)},L=function(Ie,Xe){return H.w(M.toDate()[Ie].apply(M.toDate("s"),($?[0,0,0,0]:[23,59,59,999]).slice(Xe)),M)},Y=this.$W,ee=this.$M,te=this.$D,ge="set"+(this.$u?"UTC":"");switch(X){case h:return $?V(1,0):V(31,11);case d:return $?V(1,ee):V(0,ee+1);case u:var _e=this.$locale().weekStart||0,we=(Y<_e?Y+7:Y)-_e;return V($?te-we:te+(6-we),ee);case c:case m:return L(ge+"Hours",0);case l:return L(ge+"Minutes",1);case a:return L(ge+"Seconds",2);case s:return L(ge+"Milliseconds",3);default:return this.clone()}},R.endOf=function(O){return this.startOf(O,!1)},R.$set=function(O,D){var M,$=H.p(O),X="set"+(this.$u?"UTC":""),V=(M={},M[c]=X+"Date",M[m]=X+"Date",M[d]=X+"Month",M[h]=X+"FullYear",M[l]=X+"Hours",M[a]=X+"Minutes",M[s]=X+"Seconds",M[i]=X+"Milliseconds",M)[$],L=$===c?this.$D+(D-this.$W):D;if($===d||$===h){var Y=this.clone().set(m,1);Y.$d[V](L),Y.init(),this.$d=Y.set(m,Math.min(this.$D,Y.daysInMonth())).$d}else V&&this.$d[V](L);return this.init(),this},R.set=function(O,D){return this.clone().$set(O,D)},R.get=function(O){return this[H.p(O)]()},R.add=function(O,D){var M,$=this;O=Number(O);var X=H.p(D),V=function(ee){var te=I($);return H.w(te.date(te.date()+Math.round(ee*O)),$)};if(X===d)return this.set(d,this.$M+O);if(X===h)return this.set(h,this.$y+O);if(X===c)return V(1);if(X===u)return V(7);var L=(M={},M[a]=n,M[l]=o,M[s]=r,M)[X]||1,Y=this.$d.getTime()+O*L;return H.w(Y,this)},R.subtract=function(O,D){return this.add(-1*O,D)},R.format=function(O){var D=this,M=this.$locale();if(!this.isValid())return M.invalidDate||g;var $=O||"YYYY-MM-DDTHH:mm:ssZ",X=H.z(this),V=this.$H,L=this.$m,Y=this.$M,ee=M.weekdays,te=M.months,ge=M.meridiem,_e=function(Xe,Ye,Lt,Nt){return Xe&&(Xe[Ye]||Xe(D,$))||Lt[Ye].slice(0,Nt)},we=function(Xe){return H.s(V%12||12,Xe,"0")},Ie=ge||function(Xe,Ye,Lt){var Nt=Xe<12?"AM":"PM";return Lt?Nt.toLowerCase():Nt};return $.replace(v,function(Xe,Ye){return Ye||function(Lt){switch(Lt){case"YY":return String(D.$y).slice(-2);case"YYYY":return H.s(D.$y,4,"0");case"M":return Y+1;case"MM":return H.s(Y+1,2,"0");case"MMM":return _e(M.monthsShort,Y,te,3);case"MMMM":return _e(te,Y);case"D":return D.$D;case"DD":return H.s(D.$D,2,"0");case"d":return String(D.$W);case"dd":return _e(M.weekdaysMin,D.$W,ee,2);case"ddd":return _e(M.weekdaysShort,D.$W,ee,3);case"dddd":return ee[D.$W];case"H":return String(V);case"HH":return H.s(V,2,"0");case"h":return we(1);case"hh":return we(2);case"a":return Ie(V,L,!0);case"A":return Ie(V,L,!1);case"m":return String(L);case"mm":return H.s(L,2,"0");case"s":return String(D.$s);case"ss":return H.s(D.$s,2,"0");case"SSS":return H.s(D.$ms,3,"0");case"Z":return X}return null}(Xe)||X.replace(":","")})},R.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},R.diff=function(O,D,M){var $,X=this,V=H.p(D),L=I(O),Y=(L.utcOffset()-this.utcOffset())*n,ee=this-L,te=function(){return H.m(X,L)};switch(V){case h:$=te()/12;break;case d:$=te();break;case p:$=te()/3;break;case u:$=(ee-Y)/6048e5;break;case c:$=(ee-Y)/864e5;break;case l:$=ee/o;break;case a:$=ee/n;break;case s:$=ee/r;break;default:$=ee}return M?$:H.a($)},R.daysInMonth=function(){return this.endOf(d).$D},R.$locale=function(){return _[this.$L]},R.locale=function(O,D){if(!O)return this.$L;var M=this.clone(),$=F(O,D,!0);return $&&(M.$L=$),M},R.clone=function(){return H.w(this.$d,this)},R.toDate=function(){return new Date(this.valueOf())},R.toJSON=function(){return this.isValid()?this.toISOString():null},R.toISOString=function(){return this.$d.toISOString()},R.toString=function(){return this.$d.toUTCString()},C}(),P=A.prototype;return I.prototype=P,[["$ms",i],["$s",s],["$m",a],["$H",l],["$W",c],["$M",d],["$y",h],["$D",m]].forEach(function(C){P[C[1]]=function(R){return this.$g(R,C[0],C[1])}}),I.extend=function(C,R){return C.$i||(C(R,A,I),C.$i=!0),I},I.locale=F,I.isDayjs=z,I.unix=function(C){return I(1e3*C)},I.en=_[S],I.Ls=_,I.p={},I})})(K3);var NZ=K3.exports;const jZ=Rh(NZ);var Q3=Object.defineProperty,T=(e,t)=>Q3(e,"name",{value:t,configurable:!0}),zZ=(e,t)=>{for(var r in t)Q3(e,r,{get:t[r],enumerable:!0})},Do={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},ie={trace:T((...e)=>{},"trace"),debug:T((...e)=>{},"debug"),info:T((...e)=>{},"info"),warn:T((...e)=>{},"warn"),error:T((...e)=>{},"error"),fatal:T((...e)=>{},"fatal")},y1=T(function(e="fatal"){let t=Do.fatal;typeof e=="string"?e.toLowerCase()in Do&&(t=Do[e]):typeof e=="number"&&(t=e),ie.trace=()=>{},ie.debug=()=>{},ie.info=()=>{},ie.warn=()=>{},ie.error=()=>{},ie.fatal=()=>{},t<=Do.fatal&&(ie.fatal=console.error?console.error.bind(console,_n("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",_n("FATAL"))),t<=Do.error&&(ie.error=console.error?console.error.bind(console,_n("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",_n("ERROR"))),t<=Do.warn&&(ie.warn=console.warn?console.warn.bind(console,_n("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",_n("WARN"))),t<=Do.info&&(ie.info=console.info?console.info.bind(console,_n("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",_n("INFO"))),t<=Do.debug&&(ie.debug=console.debug?console.debug.bind(console,_n("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",_n("DEBUG"))),t<=Do.trace&&(ie.trace=console.debug?console.debug.bind(console,_n("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",_n("TRACE")))},"setLogLevel"),_n=T(e=>`%c${jZ().format("ss.SSS")} : ${e} : `,"format");const tf={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{const t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:(e,t,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e),hsl2rgb:({h:e,s:t,l:r},n)=>{if(!t)return r*2.55;e/=360,t/=100,r/=100;const o=r<.5?r*(1+t):r+t-r*t,i=2*r-o;switch(n){case"r":return tf.hue2rgb(i,o,e+1/3)*255;case"g":return tf.hue2rgb(i,o,e)*255;case"b":return tf.hue2rgb(i,o,e-1/3)*255}},rgb2hsl:({r:e,g:t,b:r},n)=>{e/=255,t/=255,r/=255;const o=Math.max(e,t,r),i=Math.min(e,t,r),s=(o+i)/2;if(n==="l")return s*100;if(o===i)return 0;const a=o-i,l=s>.5?a/(2-o-i):a/(o+i);if(n==="s")return l*100;switch(o){case e:return((t-r)/a+(t<r?6:0))*60;case t:return((r-e)/a+2)*60;case r:return((e-t)/a+4)*60;default:return-1}}},EZ={clamp:(e,t,r)=>t>r?Math.min(t,Math.max(r,e)):Math.min(r,Math.max(t,e)),round:e=>Math.round(e*1e10)/1e10},RZ={dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}},Ue={channel:tf,lang:EZ,unit:RZ},bi={};for(let e=0;e<=255;e++)bi[e]=Ue.unit.dec2hex(e);const wr={ALL:0,RGB:1,HSL:2};class AZ{constructor(){this.type=wr.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=wr.ALL}is(t){return this.type===t}}class FZ{constructor(t,r){this.color=r,this.changed=!1,this.data=t,this.type=new AZ}set(t,r){return this.color=r,this.changed=!1,this.data=t,this.type.type=wr.ALL,this}_ensureHSL(){const t=this.data,{h:r,s:n,l:o}=t;r===void 0&&(t.h=Ue.channel.rgb2hsl(t,"h")),n===void 0&&(t.s=Ue.channel.rgb2hsl(t,"s")),o===void 0&&(t.l=Ue.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r,g:n,b:o}=t;r===void 0&&(t.r=Ue.channel.hsl2rgb(t,"r")),n===void 0&&(t.g=Ue.channel.hsl2rgb(t,"g")),o===void 0&&(t.b=Ue.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,r=t.r;return!this.type.is(wr.HSL)&&r!==void 0?r:(this._ensureHSL(),Ue.channel.hsl2rgb(t,"r"))}get g(){const t=this.data,r=t.g;return!this.type.is(wr.HSL)&&r!==void 0?r:(this._ensureHSL(),Ue.channel.hsl2rgb(t,"g"))}get b(){const t=this.data,r=t.b;return!this.type.is(wr.HSL)&&r!==void 0?r:(this._ensureHSL(),Ue.channel.hsl2rgb(t,"b"))}get h(){const t=this.data,r=t.h;return!this.type.is(wr.RGB)&&r!==void 0?r:(this._ensureRGB(),Ue.channel.rgb2hsl(t,"h"))}get s(){const t=this.data,r=t.s;return!this.type.is(wr.RGB)&&r!==void 0?r:(this._ensureRGB(),Ue.channel.rgb2hsl(t,"s"))}get l(){const t=this.data,r=t.l;return!this.type.is(wr.RGB)&&r!==void 0?r:(this._ensureRGB(),Ue.channel.rgb2hsl(t,"l"))}get a(){return this.data.a}set r(t){this.type.set(wr.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(wr.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(wr.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(wr.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(wr.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(wr.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}const pp=new FZ({r:0,g:0,b:0,a:0},"transparent"),za={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const t=e.match(za.re);if(!t)return;const r=t[1],n=parseInt(r,16),o=r.length,i=o%4===0,s=o>4,a=s?1:17,l=s?8:4,c=i?0:-1,u=s?255:15;return pp.set({r:(n>>l*(c+3)&u)*a,g:(n>>l*(c+2)&u)*a,b:(n>>l*(c+1)&u)*a,a:i?(n&u)*a/255:1},e)},stringify:e=>{const{r:t,g:r,b:n,a:o}=e;return o<1?`#${bi[Math.round(t)]}${bi[Math.round(r)]}${bi[Math.round(n)]}${bi[Math.round(o*255)]}`:`#${bi[Math.round(t)]}${bi[Math.round(r)]}${bi[Math.round(n)]}`}},gs={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{const t=e.match(gs.hueRe);if(t){const[,r,n]=t;switch(n){case"grad":return Ue.channel.clamp.h(parseFloat(r)*.9);case"rad":return Ue.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return Ue.channel.clamp.h(parseFloat(r)*360)}}return Ue.channel.clamp.h(parseFloat(e))},parse:e=>{const t=e.charCodeAt(0);if(t!==104&&t!==72)return;const r=e.match(gs.re);if(!r)return;const[,n,o,i,s,a]=r;return pp.set({h:gs._hue2deg(n),s:Ue.channel.clamp.s(parseFloat(o)),l:Ue.channel.clamp.l(parseFloat(i)),a:s?Ue.channel.clamp.a(a?parseFloat(s)/100:parseFloat(s)):1},e)},stringify:e=>{const{h:t,s:r,l:n,a:o}=e;return o<1?`hsla(${Ue.lang.round(t)}, ${Ue.lang.round(r)}%, ${Ue.lang.round(n)}%, ${o})`:`hsl(${Ue.lang.round(t)}, ${Ue.lang.round(r)}%, ${Ue.lang.round(n)}%)`}},Rc={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:e=>{e=e.toLowerCase();const t=Rc.colors[e];if(t)return za.parse(t)},stringify:e=>{const t=za.stringify(e);for(const r in Rc.colors)if(Rc.colors[r]===t)return r}},uc={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{const t=e.charCodeAt(0);if(t!==114&&t!==82)return;const r=e.match(uc.re);if(!r)return;const[,n,o,i,s,a,l,c,u]=r;return pp.set({r:Ue.channel.clamp.r(o?parseFloat(n)*2.55:parseFloat(n)),g:Ue.channel.clamp.g(s?parseFloat(i)*2.55:parseFloat(i)),b:Ue.channel.clamp.b(l?parseFloat(a)*2.55:parseFloat(a)),a:c?Ue.channel.clamp.a(u?parseFloat(c)/100:parseFloat(c)):1},e)},stringify:e=>{const{r:t,g:r,b:n,a:o}=e;return o<1?`rgba(${Ue.lang.round(t)}, ${Ue.lang.round(r)}, ${Ue.lang.round(n)}, ${Ue.lang.round(o)})`:`rgb(${Ue.lang.round(t)}, ${Ue.lang.round(r)}, ${Ue.lang.round(n)})`}},Eo={format:{keyword:Rc,hex:za,rgb:uc,rgba:uc,hsl:gs,hsla:gs},parse:e=>{if(typeof e!="string")return e;const t=za.parse(e)||uc.parse(e)||gs.parse(e)||Rc.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(wr.HSL)||e.data.r===void 0?gs.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?uc.stringify(e):za.stringify(e)},J3=(e,t)=>{const r=Eo.parse(e);for(const n in t)r[n]=Ue.channel.clamp[n](t[n]);return Eo.stringify(r)},Ac=(e,t,r=0,n=1)=>{if(typeof e!="number")return J3(e,{a:t});const o=pp.set({r:Ue.channel.clamp.r(e),g:Ue.channel.clamp.g(t),b:Ue.channel.clamp.b(r),a:Ue.channel.clamp.a(n)});return Eo.stringify(o)},PZ=e=>{const{r:t,g:r,b:n}=Eo.parse(e),o=.2126*Ue.channel.toLinear(t)+.7152*Ue.channel.toLinear(r)+.0722*Ue.channel.toLinear(n);return Ue.lang.round(o)},IZ=e=>PZ(e)>=.5,Iu=e=>!IZ(e),eT=(e,t,r)=>{const n=Eo.parse(e),o=n[t],i=Ue.channel.clamp[t](o+r);return o!==i&&(n[t]=i),Eo.stringify(n)},Be=(e,t)=>eT(e,"l",t),De=(e,t)=>eT(e,"l",-t),Z=(e,t)=>{const r=Eo.parse(e),n={};for(const o in t)t[o]&&(n[o]=r[o]+t[o]);return J3(e,n)},MZ=(e,t,r=50)=>{const{r:n,g:o,b:i,a:s}=Eo.parse(e),{r:a,g:l,b:c,a:u}=Eo.parse(t),d=r/100,p=d*2-1,h=s-u,g=((p*h===-1?p:(p+h)/(1+p*h))+1)/2,y=1-g,v=n*g+a*y,b=o*g+l*y,x=i*g+c*y,k=s*d+u*(1-d);return Ac(v,b,x,k)},me=(e,t=100)=>{const r=Eo.parse(e);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,MZ(r,e,t)};/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */const{entries:tT,setPrototypeOf:m2,isFrozen:DZ,getPrototypeOf:LZ,getOwnPropertyDescriptor:OZ}=Object;let{freeze:Lr,seal:In,create:I0}=Object,{apply:M0,construct:D0}=typeof Reflect<"u"&&Reflect;Lr||(Lr=function(t){return t});In||(In=function(t){return t});M0||(M0=function(t,r){for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];return t.apply(r,o)});D0||(D0=function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return new t(...n)});const Sd=Or(Array.prototype.forEach),qZ=Or(Array.prototype.lastIndexOf),v2=Or(Array.prototype.pop),Ul=Or(Array.prototype.push),$Z=Or(Array.prototype.splice),rf=Or(String.prototype.toLowerCase),$g=Or(String.prototype.toString),Hg=Or(String.prototype.match),Gl=Or(String.prototype.replace),HZ=Or(String.prototype.indexOf),WZ=Or(String.prototype.trim),On=Or(Object.prototype.hasOwnProperty),Rr=Or(RegExp.prototype.test),Xl=VZ(TypeError);function Or(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return M0(e,t,n)}}function VZ(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return D0(e,r)}}function tt(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:rf;m2&&m2(e,null);let n=t.length;for(;n--;){let o=t[n];if(typeof o=="string"){const i=r(o);i!==o&&(DZ(t)||(t[n]=i),o=i)}e[o]=!0}return e}function UZ(e){for(let t=0;t<e.length;t++)On(e,t)||(e[t]=null);return e}function mo(e){const t=I0(null);for(const[r,n]of tT(e))On(e,r)&&(Array.isArray(n)?t[r]=UZ(n):n&&typeof n=="object"&&n.constructor===Object?t[r]=mo(n):t[r]=n);return t}function Yl(e,t){for(;e!==null;){const n=OZ(e,t);if(n){if(n.get)return Or(n.get);if(typeof n.value=="function")return Or(n.value)}e=LZ(e)}function r(){return null}return r}const y2=Lr(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Wg=Lr(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Vg=Lr(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),GZ=Lr(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Ug=Lr(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),XZ=Lr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),b2=Lr(["#text"]),x2=Lr(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Gg=Lr(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),w2=Lr(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Cd=Lr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),YZ=In(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ZZ=In(/<%[\w\W]*|[\w\W]*%>/gm),KZ=In(/\$\{[\w\W]*/gm),QZ=In(/^data-[\-\w.\u00B7-\uFFFF]+$/),JZ=In(/^aria-[\-\w]+$/),rT=In(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),eK=In(/^(?:\w+script|data):/i),tK=In(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),nT=In(/^html$/i),rK=In(/^[a-z][.\w]*(-[.\w]+)+$/i);var k2=Object.freeze({__proto__:null,ARIA_ATTR:JZ,ATTR_WHITESPACE:tK,CUSTOM_ELEMENT:rK,DATA_ATTR:QZ,DOCTYPE_NAME:nT,ERB_EXPR:ZZ,IS_ALLOWED_URI:rT,IS_SCRIPT_OR_DATA:eK,MUSTACHE_EXPR:YZ,TMPLIT_EXPR:KZ});const Zl={element:1,text:3,progressingInstruction:7,comment:8,document:9},nK=function(){return typeof window>"u"?null:window},oK=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;const o="data-tt-policy-suffix";r&&r.hasAttribute(o)&&(n=r.getAttribute(o));const i="dompurify"+(n?"#"+n:"");try{return t.createPolicy(i,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},S2=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function oT(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:nK();const t=Me=>oT(Me);if(t.version="3.3.1",t.removed=[],!e||!e.document||e.document.nodeType!==Zl.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e;const n=r,o=n.currentScript,{DocumentFragment:i,HTMLTemplateElement:s,Node:a,Element:l,NodeFilter:c,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:p,trustedTypes:h}=e,m=l.prototype,g=Yl(m,"cloneNode"),y=Yl(m,"remove"),v=Yl(m,"nextSibling"),b=Yl(m,"childNodes"),x=Yl(m,"parentNode");if(typeof s=="function"){const Me=r.createElement("template");Me.content&&Me.content.ownerDocument&&(r=Me.content.ownerDocument)}let k,S="";const{implementation:_,createNodeIterator:N,createDocumentFragment:z,getElementsByTagName:F}=r,{importNode:I}=n;let H=S2();t.isSupported=typeof tT=="function"&&typeof x=="function"&&_&&_.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:A,ERB_EXPR:P,TMPLIT_EXPR:C,DATA_ATTR:R,ARIA_ATTR:O,IS_SCRIPT_OR_DATA:D,ATTR_WHITESPACE:M,CUSTOM_ELEMENT:$}=k2;let{IS_ALLOWED_URI:X}=k2,V=null;const L=tt({},[...y2,...Wg,...Vg,...Ug,...b2]);let Y=null;const ee=tt({},[...x2,...Gg,...w2,...Cd]);let te=Object.seal(I0(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ge=null,_e=null;const we=Object.seal(I0(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ie=!0,Xe=!0,Ye=!1,Lt=!0,Nt=!1,j=!0,oe=!1,re=!1,W=!1,q=!1,G=!1,ae=!1,ce=!0,K=!1;const pe="user-content-";let xe=!0,he=!1,Ae={},nt=null;const et=tt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Er=null;const hi=tt({},["audio","video","img","source","image","track"]);let Hr=null;const pi=tt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),xt="http://www.w3.org/1998/Math/MathML",Po="http://www.w3.org/2000/svg",ln="http://www.w3.org/1999/xhtml";let mr=ln,Ys=!1,Rl=null;const Lp=tt({},[xt,Po,ln],$g);let Zs=tt({},["mi","mo","mn","ms","mtext"]),ts=tt({},["annotation-xml"]);const rs=tt({},["title","style","font","a","script"]);let fo=null;const h6=["application/xhtml+xml","text/html"],p6="text/html";let Qt=null,Ks=null;const g6=r.createElement("form"),yb=function(U){return U instanceof RegExp||U instanceof Function},Op=function(){let U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ks&&Ks===U)){if((!U||typeof U!="object")&&(U={}),U=mo(U),fo=h6.indexOf(U.PARSER_MEDIA_TYPE)===-1?p6:U.PARSER_MEDIA_TYPE,Qt=fo==="application/xhtml+xml"?$g:rf,V=On(U,"ALLOWED_TAGS")?tt({},U.ALLOWED_TAGS,Qt):L,Y=On(U,"ALLOWED_ATTR")?tt({},U.ALLOWED_ATTR,Qt):ee,Rl=On(U,"ALLOWED_NAMESPACES")?tt({},U.ALLOWED_NAMESPACES,$g):Lp,Hr=On(U,"ADD_URI_SAFE_ATTR")?tt(mo(pi),U.ADD_URI_SAFE_ATTR,Qt):pi,Er=On(U,"ADD_DATA_URI_TAGS")?tt(mo(hi),U.ADD_DATA_URI_TAGS,Qt):hi,nt=On(U,"FORBID_CONTENTS")?tt({},U.FORBID_CONTENTS,Qt):et,ge=On(U,"FORBID_TAGS")?tt({},U.FORBID_TAGS,Qt):mo({}),_e=On(U,"FORBID_ATTR")?tt({},U.FORBID_ATTR,Qt):mo({}),Ae=On(U,"USE_PROFILES")?U.USE_PROFILES:!1,Ie=U.ALLOW_ARIA_ATTR!==!1,Xe=U.ALLOW_DATA_ATTR!==!1,Ye=U.ALLOW_UNKNOWN_PROTOCOLS||!1,Lt=U.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Nt=U.SAFE_FOR_TEMPLATES||!1,j=U.SAFE_FOR_XML!==!1,oe=U.WHOLE_DOCUMENT||!1,q=U.RETURN_DOM||!1,G=U.RETURN_DOM_FRAGMENT||!1,ae=U.RETURN_TRUSTED_TYPE||!1,W=U.FORCE_BODY||!1,ce=U.SANITIZE_DOM!==!1,K=U.SANITIZE_NAMED_PROPS||!1,xe=U.KEEP_CONTENT!==!1,he=U.IN_PLACE||!1,X=U.ALLOWED_URI_REGEXP||rT,mr=U.NAMESPACE||ln,Zs=U.MATHML_TEXT_INTEGRATION_POINTS||Zs,ts=U.HTML_INTEGRATION_POINTS||ts,te=U.CUSTOM_ELEMENT_HANDLING||{},U.CUSTOM_ELEMENT_HANDLING&&yb(U.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(te.tagNameCheck=U.CUSTOM_ELEMENT_HANDLING.tagNameCheck),U.CUSTOM_ELEMENT_HANDLING&&yb(U.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(te.attributeNameCheck=U.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),U.CUSTOM_ELEMENT_HANDLING&&typeof U.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(te.allowCustomizedBuiltInElements=U.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Nt&&(Xe=!1),G&&(q=!0),Ae&&(V=tt({},b2),Y=[],Ae.html===!0&&(tt(V,y2),tt(Y,x2)),Ae.svg===!0&&(tt(V,Wg),tt(Y,Gg),tt(Y,Cd)),Ae.svgFilters===!0&&(tt(V,Vg),tt(Y,Gg),tt(Y,Cd)),Ae.mathMl===!0&&(tt(V,Ug),tt(Y,w2),tt(Y,Cd))),U.ADD_TAGS&&(typeof U.ADD_TAGS=="function"?we.tagCheck=U.ADD_TAGS:(V===L&&(V=mo(V)),tt(V,U.ADD_TAGS,Qt))),U.ADD_ATTR&&(typeof U.ADD_ATTR=="function"?we.attributeCheck=U.ADD_ATTR:(Y===ee&&(Y=mo(Y)),tt(Y,U.ADD_ATTR,Qt))),U.ADD_URI_SAFE_ATTR&&tt(Hr,U.ADD_URI_SAFE_ATTR,Qt),U.FORBID_CONTENTS&&(nt===et&&(nt=mo(nt)),tt(nt,U.FORBID_CONTENTS,Qt)),U.ADD_FORBID_CONTENTS&&(nt===et&&(nt=mo(nt)),tt(nt,U.ADD_FORBID_CONTENTS,Qt)),xe&&(V["#text"]=!0),oe&&tt(V,["html","head","body"]),V.table&&(tt(V,["tbody"]),delete ge.tbody),U.TRUSTED_TYPES_POLICY){if(typeof U.TRUSTED_TYPES_POLICY.createHTML!="function")throw Xl('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof U.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Xl('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');k=U.TRUSTED_TYPES_POLICY,S=k.createHTML("")}else k===void 0&&(k=oK(h,o)),k!==null&&typeof S=="string"&&(S=k.createHTML(""));Lr&&Lr(U),Ks=U}},bb=tt({},[...Wg,...Vg,...GZ]),xb=tt({},[...Ug,...XZ]),m6=function(U){let fe=x(U);(!fe||!fe.tagName)&&(fe={namespaceURI:mr,tagName:"template"});const Re=rf(U.tagName),jt=rf(fe.tagName);return Rl[U.namespaceURI]?U.namespaceURI===Po?fe.namespaceURI===ln?Re==="svg":fe.namespaceURI===xt?Re==="svg"&&(jt==="annotation-xml"||Zs[jt]):!!bb[Re]:U.namespaceURI===xt?fe.namespaceURI===ln?Re==="math":fe.namespaceURI===Po?Re==="math"&&ts[jt]:!!xb[Re]:U.namespaceURI===ln?fe.namespaceURI===Po&&!ts[jt]||fe.namespaceURI===xt&&!Zs[jt]?!1:!xb[Re]&&(rs[Re]||!bb[Re]):!!(fo==="application/xhtml+xml"&&Rl[U.namespaceURI]):!1},ho=function(U){Ul(t.removed,{element:U});try{x(U).removeChild(U)}catch{y(U)}},ns=function(U,fe){try{Ul(t.removed,{attribute:fe.getAttributeNode(U),from:fe})}catch{Ul(t.removed,{attribute:null,from:fe})}if(fe.removeAttribute(U),U==="is")if(q||G)try{ho(fe)}catch{}else try{fe.setAttribute(U,"")}catch{}},wb=function(U){let fe=null,Re=null;if(W)U="<remove></remove>"+U;else{const Yt=Hg(U,/^[\r\n\t ]+/);Re=Yt&&Yt[0]}fo==="application/xhtml+xml"&&mr===ln&&(U='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+U+"</body></html>");const jt=k?k.createHTML(U):U;if(mr===ln)try{fe=new p().parseFromString(jt,fo)}catch{}if(!fe||!fe.documentElement){fe=_.createDocument(mr,"template",null);try{fe.documentElement.innerHTML=Ys?S:jt}catch{}}const vr=fe.body||fe.documentElement;return U&&Re&&vr.insertBefore(r.createTextNode(Re),vr.childNodes[0]||null),mr===ln?F.call(fe,oe?"html":"body")[0]:oe?fe.documentElement:vr},kb=function(U){return N.call(U.ownerDocument||U,U,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},qp=function(U){return U instanceof d&&(typeof U.nodeName!="string"||typeof U.textContent!="string"||typeof U.removeChild!="function"||!(U.attributes instanceof u)||typeof U.removeAttribute!="function"||typeof U.setAttribute!="function"||typeof U.namespaceURI!="string"||typeof U.insertBefore!="function"||typeof U.hasChildNodes!="function")},Sb=function(U){return typeof a=="function"&&U instanceof a};function Io(Me,U,fe){Sd(Me,Re=>{Re.call(t,U,fe,Ks)})}const Cb=function(U){let fe=null;if(Io(H.beforeSanitizeElements,U,null),qp(U))return ho(U),!0;const Re=Qt(U.nodeName);if(Io(H.uponSanitizeElement,U,{tagName:Re,allowedTags:V}),j&&U.hasChildNodes()&&!Sb(U.firstElementChild)&&Rr(/<[/\w!]/g,U.innerHTML)&&Rr(/<[/\w!]/g,U.textContent)||U.nodeType===Zl.progressingInstruction||j&&U.nodeType===Zl.comment&&Rr(/<[/\w]/g,U.data))return ho(U),!0;if(!(we.tagCheck instanceof Function&&we.tagCheck(Re))&&(!V[Re]||ge[Re])){if(!ge[Re]&&Bb(Re)&&(te.tagNameCheck instanceof RegExp&&Rr(te.tagNameCheck,Re)||te.tagNameCheck instanceof Function&&te.tagNameCheck(Re)))return!1;if(xe&&!nt[Re]){const jt=x(U)||U.parentNode,vr=b(U)||U.childNodes;if(vr&&jt){const Yt=vr.length;for(let Wr=Yt-1;Wr>=0;--Wr){const Mo=g(vr[Wr],!0);Mo.__removalCount=(U.__removalCount||0)+1,jt.insertBefore(Mo,v(U))}}}return ho(U),!0}return U instanceof l&&!m6(U)||(Re==="noscript"||Re==="noembed"||Re==="noframes")&&Rr(/<\/no(script|embed|frames)/i,U.innerHTML)?(ho(U),!0):(Nt&&U.nodeType===Zl.text&&(fe=U.textContent,Sd([A,P,C],jt=>{fe=Gl(fe,jt," ")}),U.textContent!==fe&&(Ul(t.removed,{element:U.cloneNode()}),U.textContent=fe)),Io(H.afterSanitizeElements,U,null),!1)},_b=function(U,fe,Re){if(ce&&(fe==="id"||fe==="name")&&(Re in r||Re in g6))return!1;if(!(Xe&&!_e[fe]&&Rr(R,fe))){if(!(Ie&&Rr(O,fe))){if(!(we.attributeCheck instanceof Function&&we.attributeCheck(fe,U))){if(!Y[fe]||_e[fe]){if(!(Bb(U)&&(te.tagNameCheck instanceof RegExp&&Rr(te.tagNameCheck,U)||te.tagNameCheck instanceof Function&&te.tagNameCheck(U))&&(te.attributeNameCheck instanceof RegExp&&Rr(te.attributeNameCheck,fe)||te.attributeNameCheck instanceof Function&&te.attributeNameCheck(fe,U))||fe==="is"&&te.allowCustomizedBuiltInElements&&(te.tagNameCheck instanceof RegExp&&Rr(te.tagNameCheck,Re)||te.tagNameCheck instanceof Function&&te.tagNameCheck(Re))))return!1}else if(!Hr[fe]){if(!Rr(X,Gl(Re,M,""))){if(!((fe==="src"||fe==="xlink:href"||fe==="href")&&U!=="script"&&HZ(Re,"data:")===0&&Er[U])){if(!(Ye&&!Rr(D,Gl(Re,M,"")))){if(Re)return!1}}}}}}}return!0},Bb=function(U){return U!=="annotation-xml"&&Hg(U,$)},Tb=function(U){Io(H.beforeSanitizeAttributes,U,null);const{attributes:fe}=U;if(!fe||qp(U))return;const Re={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Y,forceKeepAttr:void 0};let jt=fe.length;for(;jt--;){const vr=fe[jt],{name:Yt,namespaceURI:Wr,value:Mo}=vr,Qs=Qt(Yt),$p=Mo;let cr=Yt==="value"?$p:WZ($p);if(Re.attrName=Qs,Re.attrValue=cr,Re.keepAttr=!0,Re.forceKeepAttr=void 0,Io(H.uponSanitizeAttribute,U,Re),cr=Re.attrValue,K&&(Qs==="id"||Qs==="name")&&(ns(Yt,U),cr=pe+cr),j&&Rr(/((--!?|])>)|<\/(style|title|textarea)/i,cr)){ns(Yt,U);continue}if(Qs==="attributename"&&Hg(cr,"href")){ns(Yt,U);continue}if(Re.forceKeepAttr)continue;if(!Re.keepAttr){ns(Yt,U);continue}if(!Lt&&Rr(/\/>/i,cr)){ns(Yt,U);continue}Nt&&Sd([A,P,C],jb=>{cr=Gl(cr,jb," ")});const Nb=Qt(U.nodeName);if(!_b(Nb,Qs,cr)){ns(Yt,U);continue}if(k&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!Wr)switch(h.getAttributeType(Nb,Qs)){case"TrustedHTML":{cr=k.createHTML(cr);break}case"TrustedScriptURL":{cr=k.createScriptURL(cr);break}}if(cr!==$p)try{Wr?U.setAttributeNS(Wr,Yt,cr):U.setAttribute(Yt,cr),qp(U)?ho(U):v2(t.removed)}catch{ns(Yt,U)}}Io(H.afterSanitizeAttributes,U,null)},v6=function Me(U){let fe=null;const Re=kb(U);for(Io(H.beforeSanitizeShadowDOM,U,null);fe=Re.nextNode();)Io(H.uponSanitizeShadowNode,fe,null),Cb(fe),Tb(fe),fe.content instanceof i&&Me(fe.content);Io(H.afterSanitizeShadowDOM,U,null)};return t.sanitize=function(Me){let U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},fe=null,Re=null,jt=null,vr=null;if(Ys=!Me,Ys&&(Me="<!-->"),typeof Me!="string"&&!Sb(Me))if(typeof Me.toString=="function"){if(Me=Me.toString(),typeof Me!="string")throw Xl("dirty is not a string, aborting")}else throw Xl("toString is not a function");if(!t.isSupported)return Me;if(re||Op(U),t.removed=[],typeof Me=="string"&&(he=!1),he){if(Me.nodeName){const Mo=Qt(Me.nodeName);if(!V[Mo]||ge[Mo])throw Xl("root node is forbidden and cannot be sanitized in-place")}}else if(Me instanceof a)fe=wb("<!---->"),Re=fe.ownerDocument.importNode(Me,!0),Re.nodeType===Zl.element&&Re.nodeName==="BODY"||Re.nodeName==="HTML"?fe=Re:fe.appendChild(Re);else{if(!q&&!Nt&&!oe&&Me.indexOf("<")===-1)return k&&ae?k.createHTML(Me):Me;if(fe=wb(Me),!fe)return q?null:ae?S:""}fe&&W&&ho(fe.firstChild);const Yt=kb(he?Me:fe);for(;jt=Yt.nextNode();)Cb(jt),Tb(jt),jt.content instanceof i&&v6(jt.content);if(he)return Me;if(q){if(G)for(vr=z.call(fe.ownerDocument);fe.firstChild;)vr.appendChild(fe.firstChild);else vr=fe;return(Y.shadowroot||Y.shadowrootmode)&&(vr=I.call(n,vr,!0)),vr}let Wr=oe?fe.outerHTML:fe.innerHTML;return oe&&V["!doctype"]&&fe.ownerDocument&&fe.ownerDocument.doctype&&fe.ownerDocument.doctype.name&&Rr(nT,fe.ownerDocument.doctype.name)&&(Wr="<!DOCTYPE "+fe.ownerDocument.doctype.name+`>
149
+ `+Wr),Nt&&Sd([A,P,C],Mo=>{Wr=Gl(Wr,Mo," ")}),k&&ae?k.createHTML(Wr):Wr},t.setConfig=function(){let Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Op(Me),re=!0},t.clearConfig=function(){Ks=null,re=!1},t.isValidAttribute=function(Me,U,fe){Ks||Op({});const Re=Qt(Me),jt=Qt(U);return _b(Re,jt,fe)},t.addHook=function(Me,U){typeof U=="function"&&Ul(H[Me],U)},t.removeHook=function(Me,U){if(U!==void 0){const fe=qZ(H[Me],U);return fe===-1?void 0:$Z(H[Me],fe,1)[0]}return v2(H[Me])},t.removeHooks=function(Me){H[Me]=[]},t.removeAllHooks=function(){H=S2()},t}var nl=oT(),iT=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,Fc=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,iK=/\s*%%.*\n/gm,Ra,sT=(Ra=class extends Error{constructor(t){super(t),this.name="UnknownDiagramError"}},T(Ra,"UnknownDiagramError"),Ra),As={},b1=T(function(e,t){e=e.replace(iT,"").replace(Fc,"").replace(iK,`
150
+ `);for(const[r,{detector:n}]of Object.entries(As))if(n(e,t))return r;throw new sT(`No diagram type detected matching given configuration for text: ${e}`)},"detectType"),L0=T((...e)=>{for(const{id:t,detector:r,loader:n}of e)aT(t,r,n)},"registerLazyLoadedDiagrams"),aT=T((e,t,r)=>{As[e]&&ie.warn(`Detector with key ${e} already exists. Overwriting.`),As[e]={detector:t,loader:r},ie.debug(`Detector with key ${e} added${r?" with loader":""}`)},"addDetector"),sK=T(e=>As[e].loader,"getDiagramLoader"),O0=T((e,t,{depth:r=2,clobber:n=!1}={})=>{const o={depth:r,clobber:n};return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(i=>O0(e,i,o)),e):Array.isArray(t)&&Array.isArray(e)?(t.forEach(i=>{e.includes(i)||e.push(i)}),e):e===void 0||r<=0?e!=null&&typeof e=="object"&&typeof t=="object"?Object.assign(e,t):t:(t!==void 0&&typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(i=>{typeof t[i]=="object"&&(e[i]===void 0||typeof e[i]=="object")?(e[i]===void 0&&(e[i]=Array.isArray(t[i])?[]:{}),e[i]=O0(e[i],t[i],{depth:r-1,clobber:n})):(n||typeof e[i]!="object"&&typeof t[i]!="object")&&(e[i]=t[i])}),e)},"assignWithDepth"),er=O0,gp="#ffffff",mp="#f2f2f2",Pr=T((e,t)=>t?Z(e,{s:-40,l:10}):Z(e,{s:-40,l:-10}),"mkBorder"),Aa,aK=(Aa=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var r,n,o,i,s,a,l,c,u,d,p,h,m,g,y,v,b,x,k,S,_;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||Z(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||Z(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Pr(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Pr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Pr(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Pr(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||me(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||me(this.tertiaryColor),this.lineColor=this.lineColor||me(this.background),this.arrowheadColor=this.arrowheadColor||me(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?De(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||De(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||me(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||Be(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||"navy",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||De(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||De(this.mainBkg,10)):(this.rowOdd=this.rowOdd||Be(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||Be(this.mainBkg,5)),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Z(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Z(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Z(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Z(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Z(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Z(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||Z(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Z(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Z(this.primaryColor,{h:330}),this.darkMode)for(let N=0;N<this.THEME_COLOR_LIMIT;N++)this["cScale"+N]=De(this["cScale"+N],75);else for(let N=0;N<this.THEME_COLOR_LIMIT;N++)this["cScale"+N]=De(this["cScale"+N],25);for(let N=0;N<this.THEME_COLOR_LIMIT;N++)this["cScaleInv"+N]=this["cScaleInv"+N]||me(this["cScale"+N]);for(let N=0;N<this.THEME_COLOR_LIMIT;N++)this.darkMode?this["cScalePeer"+N]=this["cScalePeer"+N]||Be(this["cScale"+N],10):this["cScalePeer"+N]=this["cScalePeer"+N]||De(this["cScale"+N],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let N=0;N<this.THEME_COLOR_LIMIT;N++)this["cScaleLabel"+N]=this["cScaleLabel"+N]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let N=0;N<5;N++)this["surface"+N]=this["surface"+N]||Z(this.mainBkg,{h:180,s:-15,l:t*(5+N*3)}),this["surfacePeer"+N]=this["surfacePeer"+N]||Z(this.mainBkg,{h:180,s:-15,l:t*(8+N*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||Z(this.primaryColor,{h:64}),this.fillType3=this.fillType3||Z(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||Z(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||Z(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||Z(this.primaryColor,{h:128}),this.fillType7=this.fillType7||Z(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||Z(this.primaryColor,{l:-10}),this.pie5=this.pie5||Z(this.secondaryColor,{l:-10}),this.pie6=this.pie6||Z(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||Z(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||Z(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||Z(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||Z(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||Z(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||Z(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.radar={axisColor:((r=this.radar)==null?void 0:r.axisColor)||this.lineColor,axisStrokeWidth:((n=this.radar)==null?void 0:n.axisStrokeWidth)||2,axisLabelFontSize:((o=this.radar)==null?void 0:o.axisLabelFontSize)||12,curveOpacity:((i=this.radar)==null?void 0:i.curveOpacity)||.5,curveStrokeWidth:((s=this.radar)==null?void 0:s.curveStrokeWidth)||2,graticuleColor:((a=this.radar)==null?void 0:a.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((l=this.radar)==null?void 0:l.graticuleStrokeWidth)||1,graticuleOpacity:((c=this.radar)==null?void 0:c.graticuleOpacity)||.3,legendBoxSize:((u=this.radar)==null?void 0:u.legendBoxSize)||12,legendFontSize:((d=this.radar)==null?void 0:d.legendFontSize)||12},this.archEdgeColor=this.archEdgeColor||"#777",this.archEdgeArrowColor=this.archEdgeArrowColor||"#777",this.archEdgeWidth=this.archEdgeWidth||"3",this.archGroupBorderColor=this.archGroupBorderColor||"#000",this.archGroupBorderWidth=this.archGroupBorderWidth||"2px",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Z(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Z(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Z(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Z(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Z(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Z(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Iu(this.quadrant1Fill)?Be(this.quadrant1Fill):De(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((p=this.xyChart)==null?void 0:p.backgroundColor)||this.background,titleColor:((h=this.xyChart)==null?void 0:h.titleColor)||this.primaryTextColor,xAxisTitleColor:((m=this.xyChart)==null?void 0:m.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((g=this.xyChart)==null?void 0:g.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((y=this.xyChart)==null?void 0:y.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((v=this.xyChart)==null?void 0:v.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((b=this.xyChart)==null?void 0:b.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((x=this.xyChart)==null?void 0:x.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((k=this.xyChart)==null?void 0:k.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((S=this.xyChart)==null?void 0:S.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((_=this.xyChart)==null?void 0:_.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?De(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||Z(this.primaryColor,{h:-30}),this.git4=this.git4||Z(this.primaryColor,{h:-60}),this.git5=this.git5||Z(this.primaryColor,{h:-90}),this.git6=this.git6||Z(this.primaryColor,{h:60}),this.git7=this.git7||Z(this.primaryColor,{h:120}),this.darkMode?(this.git0=Be(this.git0,25),this.git1=Be(this.git1,25),this.git2=Be(this.git2,25),this.git3=Be(this.git3,25),this.git4=Be(this.git4,25),this.git5=Be(this.git5,25),this.git6=Be(this.git6,25),this.git7=Be(this.git7,25)):(this.git0=De(this.git0,25),this.git1=De(this.git1,25),this.git2=De(this.git2,25),this.git3=De(this.git3,25),this.git4=De(this.git4,25),this.git5=De(this.git5,25),this.git6=De(this.git6,25),this.git7=De(this.git7,25)),this.gitInv0=this.gitInv0||me(this.git0),this.gitInv1=this.gitInv1||me(this.git1),this.gitInv2=this.gitInv2||me(this.git2),this.gitInv3=this.gitInv3||me(this.git3),this.gitInv4=this.gitInv4||me(this.git4),this.gitInv5=this.gitInv5||me(this.git5),this.gitInv6=this.gitInv6||me(this.git6),this.gitInv7=this.gitInv7||me(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||gp,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||mp}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(n=>{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},T(Aa,"Theme"),Aa),lK=T(e=>{const t=new aK;return t.calculate(e),t},"getThemeVariables"),Fa,cK=(Fa=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Be(this.primaryColor,16),this.tertiaryColor=Z(this.primaryColor,{h:-160}),this.primaryBorderColor=me(this.background),this.secondaryBorderColor=Pr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Pr(this.tertiaryColor,this.darkMode),this.primaryTextColor=me(this.primaryColor),this.secondaryTextColor=me(this.secondaryColor),this.tertiaryTextColor=me(this.tertiaryColor),this.lineColor=me(this.background),this.textColor=me(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Be(me("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=Ac(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=De("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=De(this.sectionBkgColor,10),this.taskBorderColor=Ac(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Ac(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||Be(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||De(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var t,r,n,o,i,s,a,l,c,u,d,p,h,m,g,y,v,b,x,k,S;this.secondBkg=Be(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=Be(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=Be(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Z(this.primaryColor,{h:64}),this.fillType3=Z(this.secondaryColor,{h:64}),this.fillType4=Z(this.primaryColor,{h:-64}),this.fillType5=Z(this.secondaryColor,{h:-64}),this.fillType6=Z(this.primaryColor,{h:128}),this.fillType7=Z(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Z(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Z(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Z(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Z(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Z(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Z(this.primaryColor,{h:210}),this.cScale9=this.cScale9||Z(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Z(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Z(this.primaryColor,{h:330});for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this["cScaleInv"+_]=this["cScaleInv"+_]||me(this["cScale"+_]);for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this["cScalePeer"+_]=this["cScalePeer"+_]||Be(this["cScale"+_],10);for(let _=0;_<5;_++)this["surface"+_]=this["surface"+_]||Z(this.mainBkg,{h:30,s:-30,l:-(-10+_*4)}),this["surfacePeer"+_]=this["surfacePeer"+_]||Z(this.mainBkg,{h:30,s:-30,l:-(-7+_*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this["cScaleLabel"+_]=this["cScaleLabel"+_]||this.scaleLabelColor;for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this["pie"+_]=this["cScale"+_];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Z(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Z(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Z(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Z(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Z(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Z(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Iu(this.quadrant1Fill)?Be(this.quadrant1Fill):De(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((n=this.xyChart)==null?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((i=this.xyChart)==null?void 0:i.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((d=this.xyChart)==null?void 0:d.plotColorPalette)||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.background},this.radar={axisColor:((p=this.radar)==null?void 0:p.axisColor)||this.lineColor,axisStrokeWidth:((h=this.radar)==null?void 0:h.axisStrokeWidth)||2,axisLabelFontSize:((m=this.radar)==null?void 0:m.axisLabelFontSize)||12,curveOpacity:((g=this.radar)==null?void 0:g.curveOpacity)||.5,curveStrokeWidth:((y=this.radar)==null?void 0:y.curveStrokeWidth)||2,graticuleColor:((v=this.radar)==null?void 0:v.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((b=this.radar)==null?void 0:b.graticuleStrokeWidth)||1,graticuleOpacity:((x=this.radar)==null?void 0:x.graticuleOpacity)||.3,legendBoxSize:((k=this.radar)==null?void 0:k.legendBoxSize)||12,legendFontSize:((S=this.radar)==null?void 0:S.legendFontSize)||12},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?De(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=Be(this.secondaryColor,20),this.git1=Be(this.pie2||this.secondaryColor,20),this.git2=Be(this.pie3||this.tertiaryColor,20),this.git3=Be(this.pie4||Z(this.primaryColor,{h:-30}),20),this.git4=Be(this.pie5||Z(this.primaryColor,{h:-60}),20),this.git5=Be(this.pie6||Z(this.primaryColor,{h:-90}),10),this.git6=Be(this.pie7||Z(this.primaryColor,{h:60}),10),this.git7=Be(this.pie8||Z(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||me(this.git0),this.gitInv1=this.gitInv1||me(this.git1),this.gitInv2=this.gitInv2||me(this.git2),this.gitInv3=this.gitInv3||me(this.git3),this.gitInv4=this.gitInv4||me(this.git4),this.gitInv5=this.gitInv5||me(this.git5),this.gitInv6=this.gitInv6||me(this.git6),this.gitInv7=this.gitInv7||me(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||me(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||me(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Be(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Be(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(n=>{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},T(Fa,"Theme"),Fa),uK=T(e=>{const t=new cK;return t.calculate(e),t},"getThemeVariables"),Pa,dK=(Pa=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=Z(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=Z(this.primaryColor,{h:-160}),this.primaryBorderColor=Pr(this.primaryColor,this.darkMode),this.secondaryBorderColor=Pr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Pr(this.tertiaryColor,this.darkMode),this.primaryTextColor=me(this.primaryColor),this.secondaryTextColor=me(this.secondaryColor),this.tertiaryTextColor=me(this.tertiaryColor),this.lineColor=me(this.background),this.textColor=me(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.sectionBkgColor=Ac(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="navy",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var t,r,n,o,i,s,a,l,c,u,d,p,h,m,g,y,v,b,x,k,S;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Z(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Z(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Z(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Z(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Z(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Z(this.primaryColor,{h:210}),this.cScale9=this.cScale9||Z(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Z(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Z(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||De(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||De(this.tertiaryColor,40);for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this["cScale"+_]=De(this["cScale"+_],10),this["cScalePeer"+_]=this["cScalePeer"+_]||De(this["cScale"+_],25);for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this["cScaleInv"+_]=this["cScaleInv"+_]||Z(this["cScale"+_],{h:180});for(let _=0;_<5;_++)this["surface"+_]=this["surface"+_]||Z(this.mainBkg,{h:30,l:-(5+_*5)}),this["surfacePeer"+_]=this["surfacePeer"+_]||Z(this.mainBkg,{h:30,l:-(7+_*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||me(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||me(this.labelTextColor);for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this["cScaleLabel"+_]=this["cScaleLabel"+_]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=Be(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||Be(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||Be(this.primaryColor,1),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Z(this.primaryColor,{h:64}),this.fillType3=Z(this.secondaryColor,{h:64}),this.fillType4=Z(this.primaryColor,{h:-64}),this.fillType5=Z(this.secondaryColor,{h:-64}),this.fillType6=Z(this.primaryColor,{h:128}),this.fillType7=Z(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||Z(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||Z(this.primaryColor,{l:-10}),this.pie5=this.pie5||Z(this.secondaryColor,{l:-30}),this.pie6=this.pie6||Z(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||Z(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||Z(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||Z(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||Z(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||Z(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||Z(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Z(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Z(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Z(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Z(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Z(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Z(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Iu(this.quadrant1Fill)?Be(this.quadrant1Fill):De(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.radar={axisColor:((t=this.radar)==null?void 0:t.axisColor)||this.lineColor,axisStrokeWidth:((r=this.radar)==null?void 0:r.axisStrokeWidth)||2,axisLabelFontSize:((n=this.radar)==null?void 0:n.axisLabelFontSize)||12,curveOpacity:((o=this.radar)==null?void 0:o.curveOpacity)||.5,curveStrokeWidth:((i=this.radar)==null?void 0:i.curveStrokeWidth)||2,graticuleColor:((s=this.radar)==null?void 0:s.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((a=this.radar)==null?void 0:a.graticuleStrokeWidth)||1,graticuleOpacity:((l=this.radar)==null?void 0:l.graticuleOpacity)||.3,legendBoxSize:((c=this.radar)==null?void 0:c.legendBoxSize)||12,legendFontSize:((u=this.radar)==null?void 0:u.legendFontSize)||12},this.xyChart={backgroundColor:((d=this.xyChart)==null?void 0:d.backgroundColor)||this.background,titleColor:((p=this.xyChart)==null?void 0:p.titleColor)||this.primaryTextColor,xAxisTitleColor:((h=this.xyChart)==null?void 0:h.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((m=this.xyChart)==null?void 0:m.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((g=this.xyChart)==null?void 0:g.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((y=this.xyChart)==null?void 0:y.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((v=this.xyChart)==null?void 0:v.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((b=this.xyChart)==null?void 0:b.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((x=this.xyChart)==null?void 0:x.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((k=this.xyChart)==null?void 0:k.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((S=this.xyChart)==null?void 0:S.plotColorPalette)||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||Z(this.primaryColor,{h:-30}),this.git4=this.git4||Z(this.primaryColor,{h:-60}),this.git5=this.git5||Z(this.primaryColor,{h:-90}),this.git6=this.git6||Z(this.primaryColor,{h:60}),this.git7=this.git7||Z(this.primaryColor,{h:120}),this.darkMode?(this.git0=Be(this.git0,25),this.git1=Be(this.git1,25),this.git2=Be(this.git2,25),this.git3=Be(this.git3,25),this.git4=Be(this.git4,25),this.git5=Be(this.git5,25),this.git6=Be(this.git6,25),this.git7=Be(this.git7,25)):(this.git0=De(this.git0,25),this.git1=De(this.git1,25),this.git2=De(this.git2,25),this.git3=De(this.git3,25),this.git4=De(this.git4,25),this.git5=De(this.git5,25),this.git6=De(this.git6,25),this.git7=De(this.git7,25)),this.gitInv0=this.gitInv0||De(me(this.git0),25),this.gitInv1=this.gitInv1||me(this.git1),this.gitInv2=this.gitInv2||me(this.git2),this.gitInv3=this.gitInv3||me(this.git3),this.gitInv4=this.gitInv4||me(this.git4),this.gitInv5=this.gitInv5||me(this.git5),this.gitInv6=this.gitInv6||me(this.git6),this.gitInv7=this.gitInv7||me(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||me(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||me(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||gp,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||mp}calculate(t){if(Object.keys(this).forEach(n=>{this[n]==="calculated"&&(this[n]=void 0)}),typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(n=>{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},T(Pa,"Theme"),Pa),fK=T(e=>{const t=new dK;return t.calculate(e),t},"getThemeVariables"),Ia,hK=(Ia=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=Be("#cde498",10),this.primaryBorderColor=Pr(this.primaryColor,this.darkMode),this.secondaryBorderColor=Pr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Pr(this.tertiaryColor,this.darkMode),this.primaryTextColor=me(this.primaryColor),this.secondaryTextColor=me(this.secondaryColor),this.tertiaryTextColor=me(this.primaryColor),this.lineColor=me(this.background),this.textColor=me(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var t,r,n,o,i,s,a,l,c,u,d,p,h,m,g,y,v,b,x,k,S;this.actorBorder=De(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Z(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Z(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Z(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Z(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Z(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Z(this.primaryColor,{h:210}),this.cScale9=this.cScale9||Z(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Z(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Z(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||De(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||De(this.tertiaryColor,40);for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this["cScale"+_]=De(this["cScale"+_],10),this["cScalePeer"+_]=this["cScalePeer"+_]||De(this["cScale"+_],25);for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this["cScaleInv"+_]=this["cScaleInv"+_]||Z(this["cScale"+_],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this["cScaleLabel"+_]=this["cScaleLabel"+_]||this.scaleLabelColor;for(let _=0;_<5;_++)this["surface"+_]=this["surface"+_]||Z(this.mainBkg,{h:30,s:-30,l:-(5+_*5)}),this["surfacePeer"+_]=this["surfacePeer"+_]||Z(this.mainBkg,{h:30,s:-30,l:-(8+_*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||Be(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||Be(this.mainBkg,20),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Z(this.primaryColor,{h:64}),this.fillType3=Z(this.secondaryColor,{h:64}),this.fillType4=Z(this.primaryColor,{h:-64}),this.fillType5=Z(this.secondaryColor,{h:-64}),this.fillType6=Z(this.primaryColor,{h:128}),this.fillType7=Z(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||Z(this.primaryColor,{l:-30}),this.pie5=this.pie5||Z(this.secondaryColor,{l:-30}),this.pie6=this.pie6||Z(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||Z(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||Z(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||Z(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||Z(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||Z(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||Z(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Z(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Z(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Z(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Z(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Z(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Z(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Iu(this.quadrant1Fill)?Be(this.quadrant1Fill):De(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.mainBkg},this.radar={axisColor:((t=this.radar)==null?void 0:t.axisColor)||this.lineColor,axisStrokeWidth:((r=this.radar)==null?void 0:r.axisStrokeWidth)||2,axisLabelFontSize:((n=this.radar)==null?void 0:n.axisLabelFontSize)||12,curveOpacity:((o=this.radar)==null?void 0:o.curveOpacity)||.5,curveStrokeWidth:((i=this.radar)==null?void 0:i.curveStrokeWidth)||2,graticuleColor:((s=this.radar)==null?void 0:s.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((a=this.radar)==null?void 0:a.graticuleStrokeWidth)||1,graticuleOpacity:((l=this.radar)==null?void 0:l.graticuleOpacity)||.3,legendBoxSize:((c=this.radar)==null?void 0:c.legendBoxSize)||12,legendFontSize:((u=this.radar)==null?void 0:u.legendFontSize)||12},this.xyChart={backgroundColor:((d=this.xyChart)==null?void 0:d.backgroundColor)||this.background,titleColor:((p=this.xyChart)==null?void 0:p.titleColor)||this.primaryTextColor,xAxisTitleColor:((h=this.xyChart)==null?void 0:h.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((m=this.xyChart)==null?void 0:m.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((g=this.xyChart)==null?void 0:g.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((y=this.xyChart)==null?void 0:y.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((v=this.xyChart)==null?void 0:v.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((b=this.xyChart)==null?void 0:b.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((x=this.xyChart)==null?void 0:x.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((k=this.xyChart)==null?void 0:k.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((S=this.xyChart)==null?void 0:S.plotColorPalette)||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||Z(this.primaryColor,{h:-30}),this.git4=this.git4||Z(this.primaryColor,{h:-60}),this.git5=this.git5||Z(this.primaryColor,{h:-90}),this.git6=this.git6||Z(this.primaryColor,{h:60}),this.git7=this.git7||Z(this.primaryColor,{h:120}),this.darkMode?(this.git0=Be(this.git0,25),this.git1=Be(this.git1,25),this.git2=Be(this.git2,25),this.git3=Be(this.git3,25),this.git4=Be(this.git4,25),this.git5=Be(this.git5,25),this.git6=Be(this.git6,25),this.git7=Be(this.git7,25)):(this.git0=De(this.git0,25),this.git1=De(this.git1,25),this.git2=De(this.git2,25),this.git3=De(this.git3,25),this.git4=De(this.git4,25),this.git5=De(this.git5,25),this.git6=De(this.git6,25),this.git7=De(this.git7,25)),this.gitInv0=this.gitInv0||me(this.git0),this.gitInv1=this.gitInv1||me(this.git1),this.gitInv2=this.gitInv2||me(this.git2),this.gitInv3=this.gitInv3||me(this.git3),this.gitInv4=this.gitInv4||me(this.git4),this.gitInv5=this.gitInv5||me(this.git5),this.gitInv6=this.gitInv6||me(this.git6),this.gitInv7=this.gitInv7||me(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||me(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||me(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||gp,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||mp}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(n=>{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},T(Ia,"Theme"),Ia),pK=T(e=>{const t=new hK;return t.calculate(e),t},"getThemeVariables"),Ma,gK=(Ma=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=Be(this.contrast,55),this.background="#ffffff",this.tertiaryColor=Z(this.primaryColor,{h:-160}),this.primaryBorderColor=Pr(this.primaryColor,this.darkMode),this.secondaryBorderColor=Pr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Pr(this.tertiaryColor,this.darkMode),this.primaryTextColor=me(this.primaryColor),this.secondaryTextColor=me(this.secondaryColor),this.tertiaryTextColor=me(this.tertiaryColor),this.lineColor=me(this.background),this.textColor=me(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||Be(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var t,r,n,o,i,s,a,l,c,u,d,p,h,m,g,y,v,b,x,k,S;this.secondBkg=Be(this.contrast,55),this.border2=this.contrast,this.actorBorder=Be(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this["cScaleInv"+_]=this["cScaleInv"+_]||me(this["cScale"+_]);for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this.darkMode?this["cScalePeer"+_]=this["cScalePeer"+_]||Be(this["cScale"+_],10):this["cScalePeer"+_]=this["cScalePeer"+_]||De(this["cScale"+_],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this["cScaleLabel"+_]=this["cScaleLabel"+_]||this.scaleLabelColor;for(let _=0;_<5;_++)this["surface"+_]=this["surface"+_]||Z(this.mainBkg,{l:-(5+_*5)}),this["surfacePeer"+_]=this["surfacePeer"+_]||Z(this.mainBkg,{l:-(8+_*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=Be(this.contrast,30),this.sectionBkgColor2=Be(this.contrast,30),this.taskBorderColor=De(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=Be(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=De(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.vertLineColor=this.critBkgColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Z(this.primaryColor,{h:64}),this.fillType3=Z(this.secondaryColor,{h:64}),this.fillType4=Z(this.primaryColor,{h:-64}),this.fillType5=Z(this.secondaryColor,{h:-64}),this.fillType6=Z(this.primaryColor,{h:128}),this.fillType7=Z(this.secondaryColor,{h:128});for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this["pie"+_]=this["cScale"+_];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Z(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Z(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Z(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Z(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Z(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Z(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Iu(this.quadrant1Fill)?Be(this.quadrant1Fill):De(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((n=this.xyChart)==null?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((i=this.xyChart)==null?void 0:i.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((d=this.xyChart)==null?void 0:d.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:((p=this.radar)==null?void 0:p.axisColor)||this.lineColor,axisStrokeWidth:((h=this.radar)==null?void 0:h.axisStrokeWidth)||2,axisLabelFontSize:((m=this.radar)==null?void 0:m.axisLabelFontSize)||12,curveOpacity:((g=this.radar)==null?void 0:g.curveOpacity)||.5,curveStrokeWidth:((y=this.radar)==null?void 0:y.curveStrokeWidth)||2,graticuleColor:((v=this.radar)==null?void 0:v.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((b=this.radar)==null?void 0:b.graticuleStrokeWidth)||1,graticuleOpacity:((x=this.radar)==null?void 0:x.graticuleOpacity)||.3,legendBoxSize:((k=this.radar)==null?void 0:k.legendBoxSize)||12,legendFontSize:((S=this.radar)==null?void 0:S.legendFontSize)||12},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=De(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||Z(this.primaryColor,{h:-30}),this.git4=this.pie5||Z(this.primaryColor,{h:-60}),this.git5=this.pie6||Z(this.primaryColor,{h:-90}),this.git6=this.pie7||Z(this.primaryColor,{h:60}),this.git7=this.pie8||Z(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||me(this.git0),this.gitInv1=this.gitInv1||me(this.git1),this.gitInv2=this.gitInv2||me(this.git2),this.gitInv3=this.gitInv3||me(this.git3),this.gitInv4=this.gitInv4||me(this.git4),this.gitInv5=this.gitInv5||me(this.git5),this.gitInv6=this.gitInv6||me(this.git6),this.gitInv7=this.gitInv7||me(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||gp,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||mp}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(n=>{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},T(Ma,"Theme"),Ma),mK=T(e=>{const t=new gK;return t.calculate(e),t},"getThemeVariables"),Ko={base:{getThemeVariables:lK},dark:{getThemeVariables:uK},default:{getThemeVariables:fK},forest:{getThemeVariables:pK},neutral:{getThemeVariables:mK}},go={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,inheritDir:!1},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200,layoutAlgorithm:"cose-bilkent"},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},lT={...go,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES"},themeCSS:void 0,themeVariables:Ko.default.getThemeVariables(),sequence:{...go.sequence,messageFont:T(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:T(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:T(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...go.gantt,tickInterval:void 0,useWidth:void 0},c4:{...go.c4,useWidth:void 0,personFont:T(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...go.flowchart,inheritDir:!1},external_personFont:T(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:T(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:T(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:T(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:T(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:T(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:T(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:T(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:T(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:T(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:T(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:T(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:T(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:T(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:T(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:T(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:T(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:T(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:T(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:T(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:T(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...go.pie,useWidth:984},xyChart:{...go.xyChart,useWidth:void 0},requirement:{...go.requirement,useWidth:void 0},packet:{...go.packet},radar:{...go.radar},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","}},cT=T((e,t="")=>Object.keys(e).reduce((r,n)=>Array.isArray(e[n])?r:typeof e[n]=="object"&&e[n]!==null?[...r,t+n,...cT(e[n],"")]:[...r,t+n],[]),"keyify"),vK=new Set(cT(lT,"")),uT=lT,Zf=T(e=>{if(ie.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(t=>Zf(t));return}for(const t of Object.keys(e)){if(ie.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!vK.has(t)||e[t]==null){ie.debug("sanitize deleting key: ",t),delete e[t];continue}if(typeof e[t]=="object"){ie.debug("sanitizing object",t),Zf(e[t]);continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const n of r)t.includes(n)&&(ie.debug("sanitizing css option",t),e[t]=yK(e[t]))}if(e.themeVariables)for(const t of Object.keys(e.themeVariables)){const r=e.themeVariables[t];r!=null&&r.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]="")}ie.debug("After sanitization",e)}},"sanitizeDirective"),yK=T(e=>{let t=0,r=0;for(const n of e){if(t<r)return"{ /* ERROR: Unbalanced CSS */ }";n==="{"?t++:n==="}"&&r++}return t!==r?"{ /* ERROR: Unbalanced CSS */ }":e},"sanitizeCss"),ol=Object.freeze(uT),Yr=er({},ol),Kf,Fs=[],Pc=er({},ol),vp=T((e,t)=>{let r=er({},e),n={};for(const o of t)hT(o),n=er(n,o);if(r=er(r,n),n.theme&&n.theme in Ko){const o=er({},Kf),i=er(o.themeVariables||{},n.themeVariables);r.theme&&r.theme in Ko&&(r.themeVariables=Ko[r.theme].getThemeVariables(i))}return Pc=r,pT(Pc),Pc},"updateCurrentConfig"),bK=T(e=>(Yr=er({},ol),Yr=er(Yr,e),e.theme&&Ko[e.theme]&&(Yr.themeVariables=Ko[e.theme].getThemeVariables(e.themeVariables)),vp(Yr,Fs),Yr),"setSiteConfig"),xK=T(e=>{Kf=er({},e)},"saveConfigFromInitialize"),wK=T(e=>(Yr=er(Yr,e),vp(Yr,Fs),Yr),"updateSiteConfig"),dT=T(()=>er({},Yr),"getSiteConfig"),fT=T(e=>(pT(e),er(Pc,e),Br()),"setConfig"),Br=T(()=>er({},Pc),"getConfig"),hT=T(e=>{e&&(["secure",...Yr.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(ie.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])}),Object.keys(e).forEach(t=>{t.startsWith("__")&&delete e[t]}),Object.keys(e).forEach(t=>{typeof e[t]=="string"&&(e[t].includes("<")||e[t].includes(">")||e[t].includes("url(data:"))&&delete e[t],typeof e[t]=="object"&&hT(e[t])}))},"sanitize"),kK=T(e=>{var t;Zf(e),e.fontFamily&&!((t=e.themeVariables)!=null&&t.fontFamily)&&(e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily}),Fs.push(e),vp(Yr,Fs)},"addDirective"),Qf=T((e=Yr)=>{Fs=[],vp(e,Fs)},"reset"),SK={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},C2={},CK=T(e=>{C2[e]||(ie.warn(SK[e]),C2[e]=!0)},"issueWarning"),pT=T(e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&CK("LAZY_LOAD_DEPRECATED")},"checkConfig"),Ide=T(()=>{let e={};Kf&&(e=er(e,Kf));for(const t of Fs)e=er(e,t);return e},"getUserDefinedConfig"),Mu=/<br\s*\/?>/gi,_K=T(e=>e?vT(e).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),BK=(()=>{let e=!1;return()=>{e||(gT(),e=!0)}})();function gT(){const e="data-temp-href-target";nl.addHook("beforeSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")??"")}),nl.addHook("afterSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute(e)&&(t.setAttribute("target",t.getAttribute(e)??""),t.removeAttribute(e),t.getAttribute("target")==="_blank"&&t.setAttribute("rel","noopener"))})}T(gT,"setupDompurifyHooks");var mT=T(e=>(BK(),nl.sanitize(e)),"removeScript"),_2=T((e,t)=>{var r;if(((r=t.flowchart)==null?void 0:r.htmlLabels)!==!1){const n=t.securityLevel;n==="antiscript"||n==="strict"?e=mT(e):n!=="loose"&&(e=vT(e),e=e.replace(/</g,"&lt;").replace(/>/g,"&gt;"),e=e.replace(/=/g,"&equals;"),e=zK(e))}return e},"sanitizeMore"),Mn=T((e,t)=>e&&(t.dompurifyConfig?e=nl.sanitize(_2(e,t),t.dompurifyConfig).toString():e=nl.sanitize(_2(e,t),{FORBID_TAGS:["style"]}).toString(),e),"sanitizeText"),TK=T((e,t)=>typeof e=="string"?Mn(e,t):e.flat().map(r=>Mn(r,t)),"sanitizeTextOrArray"),NK=T(e=>Mu.test(e),"hasBreaks"),jK=T(e=>e.split(Mu),"splitBreaks"),zK=T(e=>e.replace(/#br#/g,"<br/>"),"placeholderToBreak"),vT=T(e=>e.replace(Mu,"#br#"),"breakToPlaceholder"),EK=T(e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=CSS.escape(t)),t},"getUrl"),ir=T(e=>!(e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())),"evaluate"),RK=T(function(...e){const t=e.filter(r=>!isNaN(r));return Math.max(...t)},"getMax"),AK=T(function(...e){const t=e.filter(r=>!isNaN(r));return Math.min(...t)},"getMin"),B2=T(function(e){const t=e.split(/(,)/),r=[];for(let n=0;n<t.length;n++){let o=t[n];if(o===","&&n>0&&n+1<t.length){const i=t[n-1],s=t[n+1];FK(i,s)&&(o=i+","+s,n++,r.pop())}r.push(PK(o))}return r.join("")},"parseGenericTypes"),q0=T((e,t)=>Math.max(0,e.split(t).length-1),"countOccurrence"),FK=T((e,t)=>{const r=q0(e,"~"),n=q0(t,"~");return r===1&&n===1},"shouldCombineSets"),PK=T(e=>{const t=q0(e,"~");let r=!1;if(t<=1)return e;t%2!==0&&e.startsWith("~")&&(e=e.substring(1),r=!0);const n=[...e];let o=n.indexOf("~"),i=n.lastIndexOf("~");for(;o!==-1&&i!==-1&&o!==i;)n[o]="<",n[i]=">",o=n.indexOf("~"),i=n.lastIndexOf("~");return r&&n.unshift("~"),n.join("")},"processSet"),T2=T(()=>window.MathMLElement!==void 0,"isMathMLSupported"),$0=/\$\$(.*)\$\$/g,il=T(e=>{var t;return(((t=e.match($0))==null?void 0:t.length)??0)>0},"hasKatex"),Mde=T(async(e,t)=>{const r=document.createElement("div");r.innerHTML=await x1(e,t),r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0";const n=document.querySelector("body");n==null||n.insertAdjacentElement("beforeend",r);const o={width:r.clientWidth,height:r.clientHeight};return r.remove(),o},"calculateMathMLDimensions"),IK=T(async(e,t)=>{if(!il(e))return e;if(!(T2()||t.legacyMathML||t.forceLegacyMathML))return e.replace($0,"MathML is unsupported in this environment.");{const{default:r}=await Ke(async()=>{const{default:o}=await import("./katex-CBSAILhF.js");return{default:o}},[],import.meta.url),n=t.forceLegacyMathML||!T2()&&t.legacyMathML?"htmlAndMathml":"mathml";return e.split(Mu).map(o=>il(o)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${o}</div>`:`<div>${o}</div>`).join("").replace($0,(o,i)=>r.renderToString(i,{throwOnError:!0,displayMode:!0,output:n}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}},"renderKatexUnsanitized"),x1=T(async(e,t)=>Mn(await IK(e,t),t),"renderKatexSanitized"),Tl={getRows:_K,sanitizeText:Mn,sanitizeTextOrArray:TK,hasBreaks:NK,splitBreaks:jK,lineBreakRegex:Mu,removeScript:mT,getUrl:EK,evaluate:ir,getMax:RK,getMin:AK},MK=T(function(e,t){for(let r of t)e.attr(r[0],r[1])},"d3Attrs"),DK=T(function(e,t,r){let n=new Map;return r?(n.set("width","100%"),n.set("style",`max-width: ${t}px;`)):(n.set("height",e),n.set("width",t)),n},"calculateSvgSizeAttrs"),yT=T(function(e,t,r,n){const o=DK(t,r,n);MK(e,o)},"configureSvgSize"),LK=T(function(e,t,r,n){const o=t.node().getBBox(),i=o.width,s=o.height;ie.info(`SVG bounds: ${i}x${s}`,o);let a=0,l=0;ie.info(`Graph bounds: ${a}x${l}`,e),a=i+r*2,l=s+r*2,ie.info(`Calculated bounds: ${a}x${l}`),yT(t,l,a,n);const c=`${o.x-r} ${o.y-r} ${o.width+2*r} ${o.height+2*r}`;t.attr("viewBox",c)},"setupGraphViewbox"),nf={},OK=T((e,t,r)=>{let n="";return e in nf&&nf[e]?n=nf[e](r):ie.warn(`No theme found for ${e}`),` & {
151
+ font-family: ${r.fontFamily};
152
+ font-size: ${r.fontSize};
153
+ fill: ${r.textColor}
154
+ }
155
+ @keyframes edge-animation-frame {
156
+ from {
157
+ stroke-dashoffset: 0;
158
+ }
159
+ }
160
+ @keyframes dash {
161
+ to {
162
+ stroke-dashoffset: 0;
163
+ }
164
+ }
165
+ & .edge-animation-slow {
166
+ stroke-dasharray: 9,5 !important;
167
+ stroke-dashoffset: 900;
168
+ animation: dash 50s linear infinite;
169
+ stroke-linecap: round;
170
+ }
171
+ & .edge-animation-fast {
172
+ stroke-dasharray: 9,5 !important;
173
+ stroke-dashoffset: 900;
174
+ animation: dash 20s linear infinite;
175
+ stroke-linecap: round;
176
+ }
177
+ /* Classes common for multiple diagrams */
178
+
179
+ & .error-icon {
180
+ fill: ${r.errorBkgColor};
181
+ }
182
+ & .error-text {
183
+ fill: ${r.errorTextColor};
184
+ stroke: ${r.errorTextColor};
185
+ }
186
+
187
+ & .edge-thickness-normal {
188
+ stroke-width: 1px;
189
+ }
190
+ & .edge-thickness-thick {
191
+ stroke-width: 3.5px
192
+ }
193
+ & .edge-pattern-solid {
194
+ stroke-dasharray: 0;
195
+ }
196
+ & .edge-thickness-invisible {
197
+ stroke-width: 0;
198
+ fill: none;
199
+ }
200
+ & .edge-pattern-dashed{
201
+ stroke-dasharray: 3;
202
+ }
203
+ .edge-pattern-dotted {
204
+ stroke-dasharray: 2;
205
+ }
206
+
207
+ & .marker {
208
+ fill: ${r.lineColor};
209
+ stroke: ${r.lineColor};
210
+ }
211
+ & .marker.cross {
212
+ stroke: ${r.lineColor};
213
+ }
214
+
215
+ & svg {
216
+ font-family: ${r.fontFamily};
217
+ font-size: ${r.fontSize};
218
+ }
219
+ & p {
220
+ margin: 0
221
+ }
222
+
223
+ ${n}
224
+
225
+ ${t}
226
+ `},"getStyles"),qK=T((e,t)=>{t!==void 0&&(nf[e]=t)},"addStylesForDiagram"),$K=OK,bT={};zZ(bT,{clear:()=>HK,getAccDescription:()=>GK,getAccTitle:()=>VK,getDiagramTitle:()=>YK,setAccDescription:()=>UK,setAccTitle:()=>WK,setDiagramTitle:()=>XK});var w1="",k1="",S1="",C1=T(e=>Mn(e,Br()),"sanitizeText"),HK=T(()=>{w1="",S1="",k1=""},"clear"),WK=T(e=>{w1=C1(e).replace(/^\s+/g,"")},"setAccTitle"),VK=T(()=>w1,"getAccTitle"),UK=T(e=>{S1=C1(e).replace(/\n\s+/g,`
227
+ `)},"setAccDescription"),GK=T(()=>S1,"getAccDescription"),XK=T(e=>{k1=C1(e)},"setDiagramTitle"),YK=T(()=>k1,"getDiagramTitle"),N2=ie,ZK=y1,ft=Br,Dde=fT,Lde=ol,_1=T(e=>Mn(e,ft()),"sanitizeText"),KK=LK,QK=T(()=>bT,"getCommonDb"),Jf={},eh=T((e,t,r)=>{var n;Jf[e]&&N2.warn(`Diagram with id ${e} already registered. Overwriting.`),Jf[e]=t,r&&aT(e,r),qK(e,t.styles),(n=t.injectUtils)==null||n.call(t,N2,ZK,ft,_1,KK,QK(),()=>{})},"registerDiagram"),H0=T(e=>{if(e in Jf)return Jf[e];throw new JK(e)},"getDiagram"),Da,JK=(Da=class extends Error{constructor(t){super(`Diagram ${t} not found.`)}},T(Da,"DiagramNotFoundError"),Da),eQ={value:()=>{}};function xT(){for(var e=0,t=arguments.length,r={},n;e<t;++e){if(!(n=arguments[e]+"")||n in r||/[\s.]/.test(n))throw new Error("illegal type: "+n);r[n]=[]}return new of(r)}function of(e){this._=e}function tQ(e,t){return e.trim().split(/^|\s+/).map(function(r){var n="",o=r.indexOf(".");if(o>=0&&(n=r.slice(o+1),r=r.slice(0,o)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:n}})}of.prototype=xT.prototype={constructor:of,on:function(e,t){var r=this._,n=tQ(e+"",r),o,i=-1,s=n.length;if(arguments.length<2){for(;++i<s;)if((o=(e=n[i]).type)&&(o=rQ(r[o],e.name)))return o;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++i<s;)if(o=(e=n[i]).type)r[o]=j2(r[o],e.name,t);else if(t==null)for(o in r)r[o]=j2(r[o],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new of(e)},call:function(e,t){if((o=arguments.length-2)>0)for(var r=new Array(o),n=0,o,i;n<o;++n)r[n]=arguments[n+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(i=this._[e],n=0,o=i.length;n<o;++n)i[n].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var n=this._[e],o=0,i=n.length;o<i;++o)n[o].value.apply(t,r)}};function rQ(e,t){for(var r=0,n=e.length,o;r<n;++r)if((o=e[r]).name===t)return o.value}function j2(e,t,r){for(var n=0,o=e.length;n<o;++n)if(e[n].name===t){e[n]=eQ,e=e.slice(0,n).concat(e.slice(n+1));break}return r!=null&&e.push({name:t,value:r}),e}var W0="http://www.w3.org/1999/xhtml";const z2={svg:"http://www.w3.org/2000/svg",xhtml:W0,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function yp(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),z2.hasOwnProperty(t)?{space:z2[t],local:e}:e}function nQ(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===W0&&t.documentElement.namespaceURI===W0?t.createElement(e):t.createElementNS(r,e)}}function oQ(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function wT(e){var t=yp(e);return(t.local?oQ:nQ)(t)}function iQ(){}function B1(e){return e==null?iQ:function(){return this.querySelector(e)}}function sQ(e){typeof e!="function"&&(e=B1(e));for(var t=this._groups,r=t.length,n=new Array(r),o=0;o<r;++o)for(var i=t[o],s=i.length,a=n[o]=new Array(s),l,c,u=0;u<s;++u)(l=i[u])&&(c=e.call(l,l.__data__,u,i))&&("__data__"in l&&(c.__data__=l.__data__),a[u]=c);return new kn(n,this._parents)}function aQ(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function lQ(){return[]}function kT(e){return e==null?lQ:function(){return this.querySelectorAll(e)}}function cQ(e){return function(){return aQ(e.apply(this,arguments))}}function uQ(e){typeof e=="function"?e=cQ(e):e=kT(e);for(var t=this._groups,r=t.length,n=[],o=[],i=0;i<r;++i)for(var s=t[i],a=s.length,l,c=0;c<a;++c)(l=s[c])&&(n.push(e.call(l,l.__data__,c,s)),o.push(l));return new kn(n,o)}function ST(e){return function(){return this.matches(e)}}function CT(e){return function(t){return t.matches(e)}}var dQ=Array.prototype.find;function fQ(e){return function(){return dQ.call(this.children,e)}}function hQ(){return this.firstElementChild}function pQ(e){return this.select(e==null?hQ:fQ(typeof e=="function"?e:CT(e)))}var gQ=Array.prototype.filter;function mQ(){return Array.from(this.children)}function vQ(e){return function(){return gQ.call(this.children,e)}}function yQ(e){return this.selectAll(e==null?mQ:vQ(typeof e=="function"?e:CT(e)))}function bQ(e){typeof e!="function"&&(e=ST(e));for(var t=this._groups,r=t.length,n=new Array(r),o=0;o<r;++o)for(var i=t[o],s=i.length,a=n[o]=[],l,c=0;c<s;++c)(l=i[c])&&e.call(l,l.__data__,c,i)&&a.push(l);return new kn(n,this._parents)}function _T(e){return new Array(e.length)}function xQ(){return new kn(this._enter||this._groups.map(_T),this._parents)}function th(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}th.prototype={constructor:th,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function wQ(e){return function(){return e}}function kQ(e,t,r,n,o,i){for(var s=0,a,l=t.length,c=i.length;s<c;++s)(a=t[s])?(a.__data__=i[s],n[s]=a):r[s]=new th(e,i[s]);for(;s<l;++s)(a=t[s])&&(o[s]=a)}function SQ(e,t,r,n,o,i,s){var a,l,c=new Map,u=t.length,d=i.length,p=new Array(u),h;for(a=0;a<u;++a)(l=t[a])&&(p[a]=h=s.call(l,l.__data__,a,t)+"",c.has(h)?o[a]=l:c.set(h,l));for(a=0;a<d;++a)h=s.call(e,i[a],a,i)+"",(l=c.get(h))?(n[a]=l,l.__data__=i[a],c.delete(h)):r[a]=new th(e,i[a]);for(a=0;a<u;++a)(l=t[a])&&c.get(p[a])===l&&(o[a]=l)}function CQ(e){return e.__data__}function _Q(e,t){if(!arguments.length)return Array.from(this,CQ);var r=t?SQ:kQ,n=this._parents,o=this._groups;typeof e!="function"&&(e=wQ(e));for(var i=o.length,s=new Array(i),a=new Array(i),l=new Array(i),c=0;c<i;++c){var u=n[c],d=o[c],p=d.length,h=BQ(e.call(u,u&&u.__data__,c,n)),m=h.length,g=a[c]=new Array(m),y=s[c]=new Array(m),v=l[c]=new Array(p);r(u,d,g,y,v,h,t);for(var b=0,x=0,k,S;b<m;++b)if(k=g[b]){for(b>=x&&(x=b+1);!(S=y[x])&&++x<m;);k._next=S||null}}return s=new kn(s,n),s._enter=a,s._exit=l,s}function BQ(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function TQ(){return new kn(this._exit||this._groups.map(_T),this._parents)}function NQ(e,t,r){var n=this.enter(),o=this,i=this.exit();return typeof e=="function"?(n=e(n),n&&(n=n.selection())):n=n.append(e+""),t!=null&&(o=t(o),o&&(o=o.selection())),r==null?i.remove():r(i),n&&o?n.merge(o).order():o}function jQ(e){for(var t=e.selection?e.selection():e,r=this._groups,n=t._groups,o=r.length,i=n.length,s=Math.min(o,i),a=new Array(o),l=0;l<s;++l)for(var c=r[l],u=n[l],d=c.length,p=a[l]=new Array(d),h,m=0;m<d;++m)(h=c[m]||u[m])&&(p[m]=h);for(;l<o;++l)a[l]=r[l];return new kn(a,this._parents)}function zQ(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var n=e[t],o=n.length-1,i=n[o],s;--o>=0;)(s=n[o])&&(i&&s.compareDocumentPosition(i)^4&&i.parentNode.insertBefore(s,i),i=s);return this}function EQ(e){e||(e=RQ);function t(d,p){return d&&p?e(d.__data__,p.__data__):!d-!p}for(var r=this._groups,n=r.length,o=new Array(n),i=0;i<n;++i){for(var s=r[i],a=s.length,l=o[i]=new Array(a),c,u=0;u<a;++u)(c=s[u])&&(l[u]=c);l.sort(t)}return new kn(o,this._parents).order()}function RQ(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function AQ(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function FQ(){return Array.from(this)}function PQ(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var n=e[t],o=0,i=n.length;o<i;++o){var s=n[o];if(s)return s}return null}function IQ(){let e=0;for(const t of this)++e;return e}function MQ(){return!this.node()}function DQ(e){for(var t=this._groups,r=0,n=t.length;r<n;++r)for(var o=t[r],i=0,s=o.length,a;i<s;++i)(a=o[i])&&e.call(a,a.__data__,i,o);return this}function LQ(e){return function(){this.removeAttribute(e)}}function OQ(e){return function(){this.removeAttributeNS(e.space,e.local)}}function qQ(e,t){return function(){this.setAttribute(e,t)}}function $Q(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function HQ(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function WQ(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function VQ(e,t){var r=yp(e);if(arguments.length<2){var n=this.node();return r.local?n.getAttributeNS(r.space,r.local):n.getAttribute(r)}return this.each((t==null?r.local?OQ:LQ:typeof t=="function"?r.local?WQ:HQ:r.local?$Q:qQ)(r,t))}function BT(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function UQ(e){return function(){this.style.removeProperty(e)}}function GQ(e,t,r){return function(){this.style.setProperty(e,t,r)}}function XQ(e,t,r){return function(){var n=t.apply(this,arguments);n==null?this.style.removeProperty(e):this.style.setProperty(e,n,r)}}function YQ(e,t,r){return arguments.length>1?this.each((t==null?UQ:typeof t=="function"?XQ:GQ)(e,t,r??"")):sl(this.node(),e)}function sl(e,t){return e.style.getPropertyValue(t)||BT(e).getComputedStyle(e,null).getPropertyValue(t)}function ZQ(e){return function(){delete this[e]}}function KQ(e,t){return function(){this[e]=t}}function QQ(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function JQ(e,t){return arguments.length>1?this.each((t==null?ZQ:typeof t=="function"?QQ:KQ)(e,t)):this.node()[e]}function TT(e){return e.trim().split(/^|\s+/)}function T1(e){return e.classList||new NT(e)}function NT(e){this._node=e,this._names=TT(e.getAttribute("class")||"")}NT.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function jT(e,t){for(var r=T1(e),n=-1,o=t.length;++n<o;)r.add(t[n])}function zT(e,t){for(var r=T1(e),n=-1,o=t.length;++n<o;)r.remove(t[n])}function eJ(e){return function(){jT(this,e)}}function tJ(e){return function(){zT(this,e)}}function rJ(e,t){return function(){(t.apply(this,arguments)?jT:zT)(this,e)}}function nJ(e,t){var r=TT(e+"");if(arguments.length<2){for(var n=T1(this.node()),o=-1,i=r.length;++o<i;)if(!n.contains(r[o]))return!1;return!0}return this.each((typeof t=="function"?rJ:t?eJ:tJ)(r,t))}function oJ(){this.textContent=""}function iJ(e){return function(){this.textContent=e}}function sJ(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function aJ(e){return arguments.length?this.each(e==null?oJ:(typeof e=="function"?sJ:iJ)(e)):this.node().textContent}function lJ(){this.innerHTML=""}function cJ(e){return function(){this.innerHTML=e}}function uJ(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function dJ(e){return arguments.length?this.each(e==null?lJ:(typeof e=="function"?uJ:cJ)(e)):this.node().innerHTML}function fJ(){this.nextSibling&&this.parentNode.appendChild(this)}function hJ(){return this.each(fJ)}function pJ(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function gJ(){return this.each(pJ)}function mJ(e){var t=typeof e=="function"?e:wT(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function vJ(){return null}function yJ(e,t){var r=typeof e=="function"?e:wT(e),n=t==null?vJ:typeof t=="function"?t:B1(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),n.apply(this,arguments)||null)})}function bJ(){var e=this.parentNode;e&&e.removeChild(this)}function xJ(){return this.each(bJ)}function wJ(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function kJ(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function SJ(e){return this.select(e?kJ:wJ)}function CJ(e){return arguments.length?this.property("__data__",e):this.node().__data__}function _J(e){return function(t){e.call(this,t,this.__data__)}}function BJ(e){return e.trim().split(/^|\s+/).map(function(t){var r="",n=t.indexOf(".");return n>=0&&(r=t.slice(n+1),t=t.slice(0,n)),{type:t,name:r}})}function TJ(e){return function(){var t=this.__on;if(t){for(var r=0,n=-1,o=t.length,i;r<o;++r)i=t[r],(!e.type||i.type===e.type)&&i.name===e.name?this.removeEventListener(i.type,i.listener,i.options):t[++n]=i;++n?t.length=n:delete this.__on}}}function NJ(e,t,r){return function(){var n=this.__on,o,i=_J(t);if(n){for(var s=0,a=n.length;s<a;++s)if((o=n[s]).type===e.type&&o.name===e.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=i,o.options=r),o.value=t;return}}this.addEventListener(e.type,i,r),o={type:e.type,name:e.name,value:t,listener:i,options:r},n?n.push(o):this.__on=[o]}}function jJ(e,t,r){var n=BJ(e+""),o,i=n.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,c=a.length,u;l<c;++l)for(o=0,u=a[l];o<i;++o)if((s=n[o]).type===u.type&&s.name===u.name)return u.value}return}for(a=t?NJ:TJ,o=0;o<i;++o)this.each(a(n[o],t,r));return this}function ET(e,t,r){var n=BT(e),o=n.CustomEvent;typeof o=="function"?o=new o(t,r):(o=n.document.createEvent("Event"),r?(o.initEvent(t,r.bubbles,r.cancelable),o.detail=r.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function zJ(e,t){return function(){return ET(this,e,t)}}function EJ(e,t){return function(){return ET(this,e,t.apply(this,arguments))}}function RJ(e,t){return this.each((typeof t=="function"?EJ:zJ)(e,t))}function*AJ(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var n=e[t],o=0,i=n.length,s;o<i;++o)(s=n[o])&&(yield s)}var RT=[null];function kn(e,t){this._groups=e,this._parents=t}function Du(){return new kn([[document.documentElement]],RT)}function FJ(){return this}kn.prototype=Du.prototype={constructor:kn,select:sQ,selectAll:uQ,selectChild:pQ,selectChildren:yQ,filter:bQ,data:_Q,enter:xQ,exit:TQ,join:NQ,merge:jQ,selection:FJ,order:zQ,sort:EQ,call:AQ,nodes:FQ,node:PQ,size:IQ,empty:MQ,each:DQ,attr:VQ,style:YQ,property:JQ,classed:nJ,text:aJ,html:dJ,raise:hJ,lower:gJ,append:mJ,insert:yJ,remove:xJ,clone:SJ,datum:CJ,on:jJ,dispatch:RJ,[Symbol.iterator]:AJ};function lt(e){return typeof e=="string"?new kn([[document.querySelector(e)]],[document.documentElement]):new kn([[e]],RT)}function N1(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function AT(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Lu(){}var uu=.7,rh=1/uu,Ea="\\s*([+-]?\\d+)\\s*",du="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",To="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",PJ=/^#([0-9a-f]{3,8})$/,IJ=new RegExp(`^rgb\\(${Ea},${Ea},${Ea}\\)$`),MJ=new RegExp(`^rgb\\(${To},${To},${To}\\)$`),DJ=new RegExp(`^rgba\\(${Ea},${Ea},${Ea},${du}\\)$`),LJ=new RegExp(`^rgba\\(${To},${To},${To},${du}\\)$`),OJ=new RegExp(`^hsl\\(${du},${To},${To}\\)$`),qJ=new RegExp(`^hsla\\(${du},${To},${To},${du}\\)$`),E2={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};N1(Lu,fu,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:R2,formatHex:R2,formatHex8:$J,formatHsl:HJ,formatRgb:A2,toString:A2});function R2(){return this.rgb().formatHex()}function $J(){return this.rgb().formatHex8()}function HJ(){return FT(this).formatHsl()}function A2(){return this.rgb().formatRgb()}function fu(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=PJ.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?F2(t):r===3?new Qr(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?_d(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?_d(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=IJ.exec(e))?new Qr(t[1],t[2],t[3],1):(t=MJ.exec(e))?new Qr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=DJ.exec(e))?_d(t[1],t[2],t[3],t[4]):(t=LJ.exec(e))?_d(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=OJ.exec(e))?M2(t[1],t[2]/100,t[3]/100,1):(t=qJ.exec(e))?M2(t[1],t[2]/100,t[3]/100,t[4]):E2.hasOwnProperty(e)?F2(E2[e]):e==="transparent"?new Qr(NaN,NaN,NaN,0):null}function F2(e){return new Qr(e>>16&255,e>>8&255,e&255,1)}function _d(e,t,r,n){return n<=0&&(e=t=r=NaN),new Qr(e,t,r,n)}function WJ(e){return e instanceof Lu||(e=fu(e)),e?(e=e.rgb(),new Qr(e.r,e.g,e.b,e.opacity)):new Qr}function V0(e,t,r,n){return arguments.length===1?WJ(e):new Qr(e,t,r,n??1)}function Qr(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}N1(Qr,V0,AT(Lu,{brighter(e){return e=e==null?rh:Math.pow(rh,e),new Qr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?uu:Math.pow(uu,e),new Qr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Qr(Ss(this.r),Ss(this.g),Ss(this.b),nh(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:P2,formatHex:P2,formatHex8:VJ,formatRgb:I2,toString:I2}));function P2(){return`#${ms(this.r)}${ms(this.g)}${ms(this.b)}`}function VJ(){return`#${ms(this.r)}${ms(this.g)}${ms(this.b)}${ms((isNaN(this.opacity)?1:this.opacity)*255)}`}function I2(){const e=nh(this.opacity);return`${e===1?"rgb(":"rgba("}${Ss(this.r)}, ${Ss(this.g)}, ${Ss(this.b)}${e===1?")":`, ${e})`}`}function nh(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ss(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ms(e){return e=Ss(e),(e<16?"0":"")+e.toString(16)}function M2(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Zn(e,t,r,n)}function FT(e){if(e instanceof Zn)return new Zn(e.h,e.s,e.l,e.opacity);if(e instanceof Lu||(e=fu(e)),!e)return new Zn;if(e instanceof Zn)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),s=NaN,a=i-o,l=(i+o)/2;return a?(t===i?s=(r-n)/a+(r<n)*6:r===i?s=(n-t)/a+2:s=(t-r)/a+4,a/=l<.5?i+o:2-i-o,s*=60):a=l>0&&l<1?0:s,new Zn(s,a,l,e.opacity)}function UJ(e,t,r,n){return arguments.length===1?FT(e):new Zn(e,t,r,n??1)}function Zn(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}N1(Zn,UJ,AT(Lu,{brighter(e){return e=e==null?rh:Math.pow(rh,e),new Zn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?uu:Math.pow(uu,e),new Zn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new Qr(Xg(e>=240?e-240:e+120,o,n),Xg(e,o,n),Xg(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Zn(D2(this.h),Bd(this.s),Bd(this.l),nh(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=nh(this.opacity);return`${e===1?"hsl(":"hsla("}${D2(this.h)}, ${Bd(this.s)*100}%, ${Bd(this.l)*100}%${e===1?")":`, ${e})`}`}}));function D2(e){return e=(e||0)%360,e<0?e+360:e}function Bd(e){return Math.max(0,Math.min(1,e||0))}function Xg(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const j1=e=>()=>e;function PT(e,t){return function(r){return e+r*t}}function GJ(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function Ode(e,t){var r=t-e;return r?PT(e,r>180||r<-180?r-360*Math.round(r/360):r):j1(isNaN(e)?t:e)}function XJ(e){return(e=+e)==1?IT:function(t,r){return r-t?GJ(t,r,e):j1(isNaN(t)?r:t)}}function IT(e,t){var r=t-e;return r?PT(e,r):j1(isNaN(e)?t:e)}const L2=function e(t){var r=XJ(t);function n(o,i){var s=r((o=V0(o)).r,(i=V0(i)).r),a=r(o.g,i.g),l=r(o.b,i.b),c=IT(o.opacity,i.opacity);return function(u){return o.r=s(u),o.g=a(u),o.b=l(u),o.opacity=c(u),o+""}}return n.gamma=e,n}(1);function ki(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var U0=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Yg=new RegExp(U0.source,"g");function YJ(e){return function(){return e}}function ZJ(e){return function(t){return e(t)+""}}function KJ(e,t){var r=U0.lastIndex=Yg.lastIndex=0,n,o,i,s=-1,a=[],l=[];for(e=e+"",t=t+"";(n=U0.exec(e))&&(o=Yg.exec(t));)(i=o.index)>r&&(i=t.slice(r,i),a[s]?a[s]+=i:a[++s]=i),(n=n[0])===(o=o[0])?a[s]?a[s]+=o:a[++s]=o:(a[++s]=null,l.push({i:s,x:ki(n,o)})),r=Yg.lastIndex;return r<t.length&&(i=t.slice(r),a[s]?a[s]+=i:a[++s]=i),a.length<2?l[0]?ZJ(l[0].x):YJ(t):(t=l.length,function(c){for(var u=0,d;u<t;++u)a[(d=l[u]).i]=d.x(c);return a.join("")})}var O2=180/Math.PI,G0={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function MT(e,t,r,n,o,i){var s,a,l;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(l=e*r+t*n)&&(r-=e*l,n-=t*l),(a=Math.sqrt(r*r+n*n))&&(r/=a,n/=a,l/=a),e*n<t*r&&(e=-e,t=-t,l=-l,s=-s),{translateX:o,translateY:i,rotate:Math.atan2(t,e)*O2,skewX:Math.atan(l)*O2,scaleX:s,scaleY:a}}var Td;function QJ(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?G0:MT(t.a,t.b,t.c,t.d,t.e,t.f)}function JJ(e){return e==null||(Td||(Td=document.createElementNS("http://www.w3.org/2000/svg","g")),Td.setAttribute("transform",e),!(e=Td.transform.baseVal.consolidate()))?G0:(e=e.matrix,MT(e.a,e.b,e.c,e.d,e.e,e.f))}function DT(e,t,r,n){function o(c){return c.length?c.pop()+" ":""}function i(c,u,d,p,h,m){if(c!==d||u!==p){var g=h.push("translate(",null,t,null,r);m.push({i:g-4,x:ki(c,d)},{i:g-2,x:ki(u,p)})}else(d||p)&&h.push("translate("+d+t+p+r)}function s(c,u,d,p){c!==u?(c-u>180?u+=360:u-c>180&&(c+=360),p.push({i:d.push(o(d)+"rotate(",null,n)-2,x:ki(c,u)})):u&&d.push(o(d)+"rotate("+u+n)}function a(c,u,d,p){c!==u?p.push({i:d.push(o(d)+"skewX(",null,n)-2,x:ki(c,u)}):u&&d.push(o(d)+"skewX("+u+n)}function l(c,u,d,p,h,m){if(c!==d||u!==p){var g=h.push(o(h)+"scale(",null,",",null,")");m.push({i:g-4,x:ki(c,d)},{i:g-2,x:ki(u,p)})}else(d!==1||p!==1)&&h.push(o(h)+"scale("+d+","+p+")")}return function(c,u){var d=[],p=[];return c=e(c),u=e(u),i(c.translateX,c.translateY,u.translateX,u.translateY,d,p),s(c.rotate,u.rotate,d,p),a(c.skewX,u.skewX,d,p),l(c.scaleX,c.scaleY,u.scaleX,u.scaleY,d,p),c=u=null,function(h){for(var m=-1,g=p.length,y;++m<g;)d[(y=p[m]).i]=y.x(h);return d.join("")}}}var eee=DT(QJ,"px, ","px)","deg)"),tee=DT(JJ,", ",")",")"),al=0,dc=0,Kl=0,LT=1e3,oh,fc,ih=0,Ps=0,bp=0,hu=typeof performance=="object"&&performance.now?performance:Date,OT=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function z1(){return Ps||(OT(ree),Ps=hu.now()+bp)}function ree(){Ps=0}function sh(){this._call=this._time=this._next=null}sh.prototype=qT.prototype={constructor:sh,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?z1():+r)+(t==null?0:+t),!this._next&&fc!==this&&(fc?fc._next=this:oh=this,fc=this),this._call=e,this._time=r,X0()},stop:function(){this._call&&(this._call=null,this._time=1/0,X0())}};function qT(e,t,r){var n=new sh;return n.restart(e,t,r),n}function nee(){z1(),++al;for(var e=oh,t;e;)(t=Ps-e._time)>=0&&e._call.call(void 0,t),e=e._next;--al}function q2(){Ps=(ih=hu.now())+bp,al=dc=0;try{nee()}finally{al=0,iee(),Ps=0}}function oee(){var e=hu.now(),t=e-ih;t>LT&&(bp-=t,ih=e)}function iee(){for(var e,t=oh,r,n=1/0;t;)t._call?(n>t._time&&(n=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:oh=r);fc=e,X0(n)}function X0(e){if(!al){dc&&(dc=clearTimeout(dc));var t=e-Ps;t>24?(e<1/0&&(dc=setTimeout(q2,e-hu.now()-bp)),Kl&&(Kl=clearInterval(Kl))):(Kl||(ih=hu.now(),Kl=setInterval(oee,LT)),al=1,OT(q2))}}function $2(e,t,r){var n=new sh;return t=t==null?0:+t,n.restart(o=>{n.stop(),e(o+t)},t,r),n}var see=xT("start","end","cancel","interrupt"),aee=[],$T=0,H2=1,Y0=2,sf=3,W2=4,Z0=5,af=6;function xp(e,t,r,n,o,i){var s=e.__transition;if(!s)e.__transition={};else if(r in s)return;lee(e,r,{name:t,index:n,group:o,on:see,tween:aee,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:$T})}function E1(e,t){var r=uo(e,t);if(r.state>$T)throw new Error("too late; already scheduled");return r}function Ao(e,t){var r=uo(e,t);if(r.state>sf)throw new Error("too late; already running");return r}function uo(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function lee(e,t,r){var n=e.__transition,o;n[t]=r,r.timer=qT(i,0,r.time);function i(c){r.state=H2,r.timer.restart(s,r.delay,r.time),r.delay<=c&&s(c-r.delay)}function s(c){var u,d,p,h;if(r.state!==H2)return l();for(u in n)if(h=n[u],h.name===r.name){if(h.state===sf)return $2(s);h.state===W2?(h.state=af,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete n[u]):+u<t&&(h.state=af,h.timer.stop(),h.on.call("cancel",e,e.__data__,h.index,h.group),delete n[u])}if($2(function(){r.state===sf&&(r.state=W2,r.timer.restart(a,r.delay,r.time),a(c))}),r.state=Y0,r.on.call("start",e,e.__data__,r.index,r.group),r.state===Y0){for(r.state=sf,o=new Array(p=r.tween.length),u=0,d=-1;u<p;++u)(h=r.tween[u].value.call(e,e.__data__,r.index,r.group))&&(o[++d]=h);o.length=d+1}}function a(c){for(var u=c<r.duration?r.ease.call(null,c/r.duration):(r.timer.restart(l),r.state=Z0,1),d=-1,p=o.length;++d<p;)o[d].call(e,u);r.state===Z0&&(r.on.call("end",e,e.__data__,r.index,r.group),l())}function l(){r.state=af,r.timer.stop(),delete n[t];for(var c in n)return;delete e.__transition}}function cee(e,t){var r=e.__transition,n,o,i=!0,s;if(r){t=t==null?null:t+"";for(s in r){if((n=r[s]).name!==t){i=!1;continue}o=n.state>Y0&&n.state<Z0,n.state=af,n.timer.stop(),n.on.call(o?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete r[s]}i&&delete e.__transition}}function uee(e){return this.each(function(){cee(this,e)})}function dee(e,t){var r,n;return function(){var o=Ao(this,e),i=o.tween;if(i!==r){n=r=i;for(var s=0,a=n.length;s<a;++s)if(n[s].name===t){n=n.slice(),n.splice(s,1);break}}o.tween=n}}function fee(e,t,r){var n,o;if(typeof r!="function")throw new Error;return function(){var i=Ao(this,e),s=i.tween;if(s!==n){o=(n=s).slice();for(var a={name:t,value:r},l=0,c=o.length;l<c;++l)if(o[l].name===t){o[l]=a;break}l===c&&o.push(a)}i.tween=o}}function hee(e,t){var r=this._id;if(e+="",arguments.length<2){for(var n=uo(this.node(),r).tween,o=0,i=n.length,s;o<i;++o)if((s=n[o]).name===e)return s.value;return null}return this.each((t==null?dee:fee)(r,e,t))}function R1(e,t,r){var n=e._id;return e.each(function(){var o=Ao(this,n);(o.value||(o.value={}))[t]=r.apply(this,arguments)}),function(o){return uo(o,n).value[t]}}function HT(e,t){var r;return(typeof t=="number"?ki:t instanceof fu?L2:(r=fu(t))?(t=r,L2):KJ)(e,t)}function pee(e){return function(){this.removeAttribute(e)}}function gee(e){return function(){this.removeAttributeNS(e.space,e.local)}}function mee(e,t,r){var n,o=r+"",i;return function(){var s=this.getAttribute(e);return s===o?null:s===n?i:i=t(n=s,r)}}function vee(e,t,r){var n,o=r+"",i;return function(){var s=this.getAttributeNS(e.space,e.local);return s===o?null:s===n?i:i=t(n=s,r)}}function yee(e,t,r){var n,o,i;return function(){var s,a=r(this),l;return a==null?void this.removeAttribute(e):(s=this.getAttribute(e),l=a+"",s===l?null:s===n&&l===o?i:(o=l,i=t(n=s,a)))}}function bee(e,t,r){var n,o,i;return function(){var s,a=r(this),l;return a==null?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local),l=a+"",s===l?null:s===n&&l===o?i:(o=l,i=t(n=s,a)))}}function xee(e,t){var r=yp(e),n=r==="transform"?tee:HT;return this.attrTween(e,typeof t=="function"?(r.local?bee:yee)(r,n,R1(this,"attr."+e,t)):t==null?(r.local?gee:pee)(r):(r.local?vee:mee)(r,n,t))}function wee(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function kee(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function See(e,t){var r,n;function o(){var i=t.apply(this,arguments);return i!==n&&(r=(n=i)&&kee(e,i)),r}return o._value=t,o}function Cee(e,t){var r,n;function o(){var i=t.apply(this,arguments);return i!==n&&(r=(n=i)&&wee(e,i)),r}return o._value=t,o}function _ee(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var n=yp(e);return this.tween(r,(n.local?See:Cee)(n,t))}function Bee(e,t){return function(){E1(this,e).delay=+t.apply(this,arguments)}}function Tee(e,t){return t=+t,function(){E1(this,e).delay=t}}function Nee(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Bee:Tee)(t,e)):uo(this.node(),t).delay}function jee(e,t){return function(){Ao(this,e).duration=+t.apply(this,arguments)}}function zee(e,t){return t=+t,function(){Ao(this,e).duration=t}}function Eee(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?jee:zee)(t,e)):uo(this.node(),t).duration}function Ree(e,t){if(typeof t!="function")throw new Error;return function(){Ao(this,e).ease=t}}function Aee(e){var t=this._id;return arguments.length?this.each(Ree(t,e)):uo(this.node(),t).ease}function Fee(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;Ao(this,e).ease=r}}function Pee(e){if(typeof e!="function")throw new Error;return this.each(Fee(this._id,e))}function Iee(e){typeof e!="function"&&(e=ST(e));for(var t=this._groups,r=t.length,n=new Array(r),o=0;o<r;++o)for(var i=t[o],s=i.length,a=n[o]=[],l,c=0;c<s;++c)(l=i[c])&&e.call(l,l.__data__,c,i)&&a.push(l);return new si(n,this._parents,this._name,this._id)}function Mee(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,n=t.length,o=r.length,i=Math.min(n,o),s=new Array(n),a=0;a<i;++a)for(var l=t[a],c=r[a],u=l.length,d=s[a]=new Array(u),p,h=0;h<u;++h)(p=l[h]||c[h])&&(d[h]=p);for(;a<n;++a)s[a]=t[a];return new si(s,this._parents,this._name,this._id)}function Dee(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function Lee(e,t,r){var n,o,i=Dee(t)?E1:Ao;return function(){var s=i(this,e),a=s.on;a!==n&&(o=(n=a).copy()).on(t,r),s.on=o}}function Oee(e,t){var r=this._id;return arguments.length<2?uo(this.node(),r).on.on(e):this.each(Lee(r,e,t))}function qee(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function $ee(){return this.on("end.remove",qee(this._id))}function Hee(e){var t=this._name,r=this._id;typeof e!="function"&&(e=B1(e));for(var n=this._groups,o=n.length,i=new Array(o),s=0;s<o;++s)for(var a=n[s],l=a.length,c=i[s]=new Array(l),u,d,p=0;p<l;++p)(u=a[p])&&(d=e.call(u,u.__data__,p,a))&&("__data__"in u&&(d.__data__=u.__data__),c[p]=d,xp(c[p],t,r,p,c,uo(u,r)));return new si(i,this._parents,t,r)}function Wee(e){var t=this._name,r=this._id;typeof e!="function"&&(e=kT(e));for(var n=this._groups,o=n.length,i=[],s=[],a=0;a<o;++a)for(var l=n[a],c=l.length,u,d=0;d<c;++d)if(u=l[d]){for(var p=e.call(u,u.__data__,d,l),h,m=uo(u,r),g=0,y=p.length;g<y;++g)(h=p[g])&&xp(h,t,r,g,p,m);i.push(p),s.push(u)}return new si(i,s,t,r)}var Vee=Du.prototype.constructor;function Uee(){return new Vee(this._groups,this._parents)}function Gee(e,t){var r,n,o;return function(){var i=sl(this,e),s=(this.style.removeProperty(e),sl(this,e));return i===s?null:i===r&&s===n?o:o=t(r=i,n=s)}}function WT(e){return function(){this.style.removeProperty(e)}}function Xee(e,t,r){var n,o=r+"",i;return function(){var s=sl(this,e);return s===o?null:s===n?i:i=t(n=s,r)}}function Yee(e,t,r){var n,o,i;return function(){var s=sl(this,e),a=r(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(e),sl(this,e))),s===l?null:s===n&&l===o?i:(o=l,i=t(n=s,a))}}function Zee(e,t){var r,n,o,i="style."+t,s="end."+i,a;return function(){var l=Ao(this,e),c=l.on,u=l.value[i]==null?a||(a=WT(t)):void 0;(c!==r||o!==u)&&(n=(r=c).copy()).on(s,o=u),l.on=n}}function Kee(e,t,r){var n=(e+="")=="transform"?eee:HT;return t==null?this.styleTween(e,Gee(e,n)).on("end.style."+e,WT(e)):typeof t=="function"?this.styleTween(e,Yee(e,n,R1(this,"style."+e,t))).each(Zee(this._id,e)):this.styleTween(e,Xee(e,n,t),r).on("end.style."+e,null)}function Qee(e,t,r){return function(n){this.style.setProperty(e,t.call(this,n),r)}}function Jee(e,t,r){var n,o;function i(){var s=t.apply(this,arguments);return s!==o&&(n=(o=s)&&Qee(e,s,r)),n}return i._value=t,i}function ete(e,t,r){var n="style."+(e+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;return this.tween(n,Jee(e,t,r??""))}function tte(e){return function(){this.textContent=e}}function rte(e){return function(){var t=e(this);this.textContent=t??""}}function nte(e){return this.tween("text",typeof e=="function"?rte(R1(this,"text",e)):tte(e==null?"":e+""))}function ote(e){return function(t){this.textContent=e.call(this,t)}}function ite(e){var t,r;function n(){var o=e.apply(this,arguments);return o!==r&&(t=(r=o)&&ote(o)),t}return n._value=e,n}function ste(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,ite(e))}function ate(){for(var e=this._name,t=this._id,r=VT(),n=this._groups,o=n.length,i=0;i<o;++i)for(var s=n[i],a=s.length,l,c=0;c<a;++c)if(l=s[c]){var u=uo(l,t);xp(l,e,r,c,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new si(n,this._parents,e,r)}function lte(){var e,t,r=this,n=r._id,o=r.size();return new Promise(function(i,s){var a={value:s},l={value:function(){--o===0&&i()}};r.each(function(){var c=Ao(this,n),u=c.on;u!==e&&(t=(e=u).copy(),t._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),c.on=t}),o===0&&i()})}var cte=0;function si(e,t,r,n){this._groups=e,this._parents=t,this._name=r,this._id=n}function VT(){return++cte}var Lo=Du.prototype;si.prototype={constructor:si,select:Hee,selectAll:Wee,selectChild:Lo.selectChild,selectChildren:Lo.selectChildren,filter:Iee,merge:Mee,selection:Uee,transition:ate,call:Lo.call,nodes:Lo.nodes,node:Lo.node,size:Lo.size,empty:Lo.empty,each:Lo.each,on:Oee,attr:xee,attrTween:_ee,style:Kee,styleTween:ete,text:nte,textTween:ste,remove:$ee,tween:hee,delay:Nee,duration:Eee,ease:Aee,easeVarying:Pee,end:lte,[Symbol.iterator]:Lo[Symbol.iterator]};function ute(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var dte={time:null,delay:0,duration:250,ease:ute};function fte(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function hte(e){var t,r;e instanceof si?(t=e._id,e=e._name):(t=VT(),(r=dte).time=z1(),e=e==null?null:e+"");for(var n=this._groups,o=n.length,i=0;i<o;++i)for(var s=n[i],a=s.length,l,c=0;c<a;++c)(l=s[c])&&xp(l,e,t,c,s,r||fte(l,t));return new si(n,this._parents,e,t)}Du.prototype.interrupt=uee;Du.prototype.transition=hte;const K0=Math.PI,Q0=2*K0,as=1e-6,pte=Q0-as;function UT(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function gte(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return UT;const r=10**t;return function(n){this._+=n[0];for(let o=1,i=n.length;o<i;++o)this._+=Math.round(arguments[o]*r)/r+n[o]}}class mte{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?UT:gte(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,o){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+o}`}bezierCurveTo(t,r,n,o,i,s){this._append`C${+t},${+r},${+n},${+o},${this._x1=+i},${this._y1=+s}`}arcTo(t,r,n,o,i){if(t=+t,r=+r,n=+n,o=+o,i=+i,i<0)throw new Error(`negative radius: ${i}`);let s=this._x1,a=this._y1,l=n-t,c=o-r,u=s-t,d=a-r,p=u*u+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(p>as)if(!(Math.abs(d*l-c*u)>as)||!i)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-s,m=o-a,g=l*l+c*c,y=h*h+m*m,v=Math.sqrt(g),b=Math.sqrt(p),x=i*Math.tan((K0-Math.acos((g+p-y)/(2*v*b)))/2),k=x/b,S=x/v;Math.abs(k-1)>as&&this._append`L${t+k*u},${r+k*d}`,this._append`A${i},${i},0,0,${+(d*h>u*m)},${this._x1=t+S*l},${this._y1=r+S*c}`}}arc(t,r,n,o,i,s){if(t=+t,r=+r,n=+n,s=!!s,n<0)throw new Error(`negative radius: ${n}`);let a=n*Math.cos(o),l=n*Math.sin(o),c=t+a,u=r+l,d=1^s,p=s?o-i:i-o;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>as||Math.abs(this._y1-u)>as)&&this._append`L${c},${u}`,n&&(p<0&&(p=p%Q0+Q0),p>pte?this._append`A${n},${n},0,1,${d},${t-a},${r-l}A${n},${n},0,1,${d},${this._x1=c},${this._y1=u}`:p>as&&this._append`A${n},${n},0,${+(p>=K0)},${d},${this._x1=t+n*Math.cos(i)},${this._y1=r+n*Math.sin(i)}`)}rect(t,r,n,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+o}h${-n}Z`}toString(){return this._}}function oa(e){return function(){return e}}const qde=Math.abs,$de=Math.atan2,Hde=Math.cos,Wde=Math.max,Vde=Math.min,Ude=Math.sin,Gde=Math.sqrt,V2=1e-12,A1=Math.PI,U2=A1/2,Xde=2*A1;function Yde(e){return e>1?0:e<-1?A1:Math.acos(e)}function Zde(e){return e>=1?U2:e<=-1?-U2:Math.asin(e)}function vte(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new mte(t)}function yte(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function GT(e){this._context=e}GT.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function ah(e){return new GT(e)}function bte(e){return e[0]}function xte(e){return e[1]}function wte(e,t){var r=oa(!0),n=null,o=ah,i=null,s=vte(a);e=typeof e=="function"?e:e===void 0?bte:oa(e),t=typeof t=="function"?t:t===void 0?xte:oa(t);function a(l){var c,u=(l=yte(l)).length,d,p=!1,h;for(n==null&&(i=o(h=s())),c=0;c<=u;++c)!(c<u&&r(d=l[c],c,l))===p&&((p=!p)?i.lineStart():i.lineEnd()),p&&i.point(+e(d,c,l),+t(d,c,l));if(h)return i=null,h+""||null}return a.x=function(l){return arguments.length?(e=typeof l=="function"?l:oa(+l),a):e},a.y=function(l){return arguments.length?(t=typeof l=="function"?l:oa(+l),a):t},a.defined=function(l){return arguments.length?(r=typeof l=="function"?l:oa(!!l),a):r},a.curve=function(l){return arguments.length?(o=l,n!=null&&(i=o(n)),a):o},a.context=function(l){return arguments.length?(l==null?n=i=null:i=o(n=l),a):n},a}class XT{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function YT(e){return new XT(e,!0)}function ZT(e){return new XT(e,!1)}function $i(){}function lh(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function wp(e){this._context=e}wp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:lh(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:lh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function lf(e){return new wp(e)}function KT(e){this._context=e}KT.prototype={areaStart:$i,areaEnd:$i,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:lh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function kte(e){return new KT(e)}function QT(e){this._context=e}QT.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:lh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ste(e){return new QT(e)}function JT(e,t){this._basis=new wp(e),this._beta=t}JT.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,r=e.length-1;if(r>0)for(var n=e[0],o=t[0],i=e[r]-n,s=t[r]-o,a=-1,l;++a<=r;)l=a/r,this._basis.point(this._beta*e[a]+(1-this._beta)*(n+l*i),this._beta*t[a]+(1-this._beta)*(o+l*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const Cte=function e(t){function r(n){return t===1?new wp(n):new JT(n,t)}return r.beta=function(n){return e(+n)},r}(.85);function ch(e,t,r){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-r),e._x2,e._y2)}function F1(e,t){this._context=e,this._k=(1-t)/6}F1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:ch(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:ch(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const eN=function e(t){function r(n){return new F1(n,t)}return r.tension=function(n){return e(+n)},r}(0);function P1(e,t){this._context=e,this._k=(1-t)/6}P1.prototype={areaStart:$i,areaEnd:$i,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:ch(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const _te=function e(t){function r(n){return new P1(n,t)}return r.tension=function(n){return e(+n)},r}(0);function I1(e,t){this._context=e,this._k=(1-t)/6}I1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ch(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Bte=function e(t){function r(n){return new I1(n,t)}return r.tension=function(n){return e(+n)},r}(0);function M1(e,t,r){var n=e._x1,o=e._y1,i=e._x2,s=e._y2;if(e._l01_a>V2){var a=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);n=(n*a-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,o=(o*a-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>V2){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*c+e._x1*e._l23_2a-t*e._l12_2a)/u,s=(s*c+e._y1*e._l23_2a-r*e._l12_2a)/u}e._context.bezierCurveTo(n,o,i,s,e._x2,e._y2)}function tN(e,t){this._context=e,this._alpha=t}tN.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:M1(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const rN=function e(t){function r(n){return t?new tN(n,t):new F1(n,0)}return r.alpha=function(n){return e(+n)},r}(.5);function nN(e,t){this._context=e,this._alpha=t}nN.prototype={areaStart:$i,areaEnd:$i,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:M1(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Tte=function e(t){function r(n){return t?new nN(n,t):new P1(n,0)}return r.alpha=function(n){return e(+n)},r}(.5);function oN(e,t){this._context=e,this._alpha=t}oN.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:M1(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Nte=function e(t){function r(n){return t?new oN(n,t):new I1(n,0)}return r.alpha=function(n){return e(+n)},r}(.5);function iN(e){this._context=e}iN.prototype={areaStart:$i,areaEnd:$i,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function jte(e){return new iN(e)}function G2(e){return e<0?-1:1}function X2(e,t,r){var n=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(n||o<0&&-0),s=(r-e._y1)/(o||n<0&&-0),a=(i*o+s*n)/(n+o);return(G2(i)+G2(s))*Math.min(Math.abs(i),Math.abs(s),.5*Math.abs(a))||0}function Y2(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Zg(e,t,r){var n=e._x0,o=e._y0,i=e._x1,s=e._y1,a=(i-n)/3;e._context.bezierCurveTo(n+a,o+a*t,i-a,s-a*r,i,s)}function uh(e){this._context=e}uh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Zg(this,this._t0,Y2(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Zg(this,Y2(this,r=X2(this,e,t)),r);break;default:Zg(this,this._t0,r=X2(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function sN(e){this._context=new aN(e)}(sN.prototype=Object.create(uh.prototype)).point=function(e,t){uh.prototype.point.call(this,t,e)};function aN(e){this._context=e}aN.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,o,i){this._context.bezierCurveTo(t,e,n,r,i,o)}};function lN(e){return new uh(e)}function cN(e){return new sN(e)}function uN(e){this._context=e}uN.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=Z2(e),o=Z2(t),i=0,s=1;s<r;++i,++s)this._context.bezierCurveTo(n[0][i],o[0][i],n[1][i],o[1][i],e[s],t[s]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Z2(e){var t,r=e.length-1,n,o=new Array(r),i=new Array(r),s=new Array(r);for(o[0]=0,i[0]=2,s[0]=e[0]+2*e[1],t=1;t<r-1;++t)o[t]=1,i[t]=4,s[t]=4*e[t]+2*e[t+1];for(o[r-1]=2,i[r-1]=7,s[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=o[t]/i[t-1],i[t]-=n,s[t]-=n*s[t-1];for(o[r-1]=s[r-1]/i[r-1],t=r-2;t>=0;--t)o[t]=(s[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;t<r-1;++t)i[t]=2*e[t+1]-o[t+1];return[o,i]}function dN(e){return new uN(e)}function kp(e,t){this._context=e,this._t=t}kp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function fN(e){return new kp(e,.5)}function hN(e){return new kp(e,0)}function pN(e){return new kp(e,1)}function hc(e,t,r){this.k=e,this.x=t,this.y=r}hc.prototype={constructor:hc,scale:function(e){return e===1?this:new hc(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new hc(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};hc.prototype;var zte=T(e=>{var o;const{securityLevel:t}=ft();let r=lt("body");if(t==="sandbox"){const s=((o=lt(`#i${e}`).node())==null?void 0:o.contentDocument)??document;r=lt(s.body)}return r.select(`#${e}`)},"selectSvgElement");function D1(e){return typeof e>"u"||e===null}T(D1,"isNothing");function gN(e){return typeof e=="object"&&e!==null}T(gN,"isObject");function mN(e){return Array.isArray(e)?e:D1(e)?[]:[e]}T(mN,"toArray");function vN(e,t){var r,n,o,i;if(t)for(i=Object.keys(t),r=0,n=i.length;r<n;r+=1)o=i[r],e[o]=t[o];return e}T(vN,"extend");function yN(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}T(yN,"repeat");function bN(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}T(bN,"isNegativeZero");var Ete=D1,Rte=gN,Ate=mN,Fte=yN,Pte=bN,Ite=vN,tr={isNothing:Ete,isObject:Rte,toArray:Ate,repeat:Fte,isNegativeZero:Pte,extend:Ite};function L1(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
228
+
229
+ `+e.mark.snippet),n+" "+r):n}T(L1,"formatError");function ll(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=L1(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}T(ll,"YAMLException$1");ll.prototype=Object.create(Error.prototype);ll.prototype.constructor=ll;ll.prototype.toString=T(function(t){return this.name+": "+L1(this,t)},"toString");var Zr=ll;function cf(e,t,r,n,o){var i="",s="",a=Math.floor(o/2)-1;return n-t>a&&(i=" ... ",t=n-a+i.length),r-n>a&&(s=" ...",r=n+a-s.length),{str:i+e.slice(t,r).replace(/\t/g,"→")+s,pos:n-t+i.length}}T(cf,"getLine");function uf(e,t){return tr.repeat(" ",t-e.length)+e}T(uf,"padStart");function xN(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],o=[],i,s=-1;i=r.exec(e.buffer);)o.push(i.index),n.push(i.index+i[0].length),e.position<=i.index&&s<0&&(s=n.length-2);s<0&&(s=n.length-1);var a="",l,c,u=Math.min(e.line+t.linesAfter,o.length).toString().length,d=t.maxLength-(t.indent+u+3);for(l=1;l<=t.linesBefore&&!(s-l<0);l++)c=cf(e.buffer,n[s-l],o[s-l],e.position-(n[s]-n[s-l]),d),a=tr.repeat(" ",t.indent)+uf((e.line-l+1).toString(),u)+" | "+c.str+`
230
+ `+a;for(c=cf(e.buffer,n[s],o[s],e.position,d),a+=tr.repeat(" ",t.indent)+uf((e.line+1).toString(),u)+" | "+c.str+`
231
+ `,a+=tr.repeat("-",t.indent+u+3+c.pos)+`^
232
+ `,l=1;l<=t.linesAfter&&!(s+l>=o.length);l++)c=cf(e.buffer,n[s+l],o[s+l],e.position-(n[s]-n[s+l]),d),a+=tr.repeat(" ",t.indent)+uf((e.line+l+1).toString(),u)+" | "+c.str+`
233
+ `;return a.replace(/\n$/,"")}T(xN,"makeSnippet");var Mte=xN,Dte=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Lte=["scalar","sequence","mapping"];function wN(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}T(wN,"compileStyleAliases");function kN(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(Dte.indexOf(r)===-1)throw new Zr('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=wN(t.styleAliases||null),Lte.indexOf(this.kind)===-1)throw new Zr('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}T(kN,"Type$1");var Tr=kN;function J0(e,t){var r=[];return e[t].forEach(function(n){var o=r.length;r.forEach(function(i,s){i.tag===n.tag&&i.kind===n.kind&&i.multi===n.multi&&(o=s)}),r[o]=n}),r}T(J0,"compileList");function SN(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function n(o){o.multi?(e.multi[o.kind].push(o),e.multi.fallback.push(o)):e[o.kind][o.tag]=e.fallback[o.tag]=o}for(T(n,"collectType"),t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}T(SN,"compileMap");function dh(e){return this.extend(e)}T(dh,"Schema$1");dh.prototype.extend=T(function(t){var r=[],n=[];if(t instanceof Tr)n.push(t);else if(Array.isArray(t))n=n.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit));else throw new Zr("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(i){if(!(i instanceof Tr))throw new Zr("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(i.loadKind&&i.loadKind!=="scalar")throw new Zr("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(i.multi)throw new Zr("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(i){if(!(i instanceof Tr))throw new Zr("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var o=Object.create(dh.prototype);return o.implicit=(this.implicit||[]).concat(r),o.explicit=(this.explicit||[]).concat(n),o.compiledImplicit=J0(o,"implicit"),o.compiledExplicit=J0(o,"explicit"),o.compiledTypeMap=SN(o.compiledImplicit,o.compiledExplicit),o},"extend");var Ote=dh,qte=new Tr("tag:yaml.org,2002:str",{kind:"scalar",construct:T(function(e){return e!==null?e:""},"construct")}),$te=new Tr("tag:yaml.org,2002:seq",{kind:"sequence",construct:T(function(e){return e!==null?e:[]},"construct")}),Hte=new Tr("tag:yaml.org,2002:map",{kind:"mapping",construct:T(function(e){return e!==null?e:{}},"construct")}),Wte=new Ote({explicit:[qte,$te,Hte]});function CN(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}T(CN,"resolveYamlNull");function _N(){return null}T(_N,"constructYamlNull");function BN(e){return e===null}T(BN,"isNull");var Vte=new Tr("tag:yaml.org,2002:null",{kind:"scalar",resolve:CN,construct:_N,predicate:BN,represent:{canonical:T(function(){return"~"},"canonical"),lowercase:T(function(){return"null"},"lowercase"),uppercase:T(function(){return"NULL"},"uppercase"),camelcase:T(function(){return"Null"},"camelcase"),empty:T(function(){return""},"empty")},defaultStyle:"lowercase"});function TN(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}T(TN,"resolveYamlBoolean");function NN(e){return e==="true"||e==="True"||e==="TRUE"}T(NN,"constructYamlBoolean");function jN(e){return Object.prototype.toString.call(e)==="[object Boolean]"}T(jN,"isBoolean");var Ute=new Tr("tag:yaml.org,2002:bool",{kind:"scalar",resolve:TN,construct:NN,predicate:jN,represent:{lowercase:T(function(e){return e?"true":"false"},"lowercase"),uppercase:T(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:T(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"});function zN(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}T(zN,"isHexCode");function EN(e){return 48<=e&&e<=55}T(EN,"isOctCode");function RN(e){return 48<=e&&e<=57}T(RN,"isDecCode");function AN(e){if(e===null)return!1;var t=e.length,r=0,n=!1,o;if(!t)return!1;if(o=e[r],(o==="-"||o==="+")&&(o=e[++r]),o==="0"){if(r+1===t)return!0;if(o=e[++r],o==="b"){for(r++;r<t;r++)if(o=e[r],o!=="_"){if(o!=="0"&&o!=="1")return!1;n=!0}return n&&o!=="_"}if(o==="x"){for(r++;r<t;r++)if(o=e[r],o!=="_"){if(!zN(e.charCodeAt(r)))return!1;n=!0}return n&&o!=="_"}if(o==="o"){for(r++;r<t;r++)if(o=e[r],o!=="_"){if(!EN(e.charCodeAt(r)))return!1;n=!0}return n&&o!=="_"}}if(o==="_")return!1;for(;r<t;r++)if(o=e[r],o!=="_"){if(!RN(e.charCodeAt(r)))return!1;n=!0}return!(!n||o==="_")}T(AN,"resolveYamlInteger");function FN(e){var t=e,r=1,n;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0")return 0;if(n==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}T(FN,"constructYamlInteger");function PN(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!tr.isNegativeZero(e)}T(PN,"isInteger");var Gte=new Tr("tag:yaml.org,2002:int",{kind:"scalar",resolve:AN,construct:FN,predicate:PN,represent:{binary:T(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:T(function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},"octal"),decimal:T(function(e){return e.toString(10)},"decimal"),hexadecimal:T(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Xte=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function IN(e){return!(e===null||!Xte.test(e)||e[e.length-1]==="_")}T(IN,"resolveYamlFloat");function MN(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}T(MN,"constructYamlFloat");var Yte=/^[-+]?[0-9]+e/;function DN(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(tr.isNegativeZero(e))return"-0.0";return r=e.toString(10),Yte.test(r)?r.replace("e",".e"):r}T(DN,"representYamlFloat");function LN(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||tr.isNegativeZero(e))}T(LN,"isFloat");var Zte=new Tr("tag:yaml.org,2002:float",{kind:"scalar",resolve:IN,construct:MN,predicate:LN,represent:DN,defaultStyle:"lowercase"}),ON=Wte.extend({implicit:[Vte,Ute,Gte,Zte]}),Kte=ON,qN=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),$N=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function HN(e){return e===null?!1:qN.exec(e)!==null||$N.exec(e)!==null}T(HN,"resolveYamlTimestamp");function WN(e){var t,r,n,o,i,s,a,l=0,c=null,u,d,p;if(t=qN.exec(e),t===null&&(t=$N.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,o=+t[3],!t[4])return new Date(Date.UTC(r,n,o));if(i=+t[4],s=+t[5],a=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(u=+t[10],d=+(t[11]||0),c=(u*60+d)*6e4,t[9]==="-"&&(c=-c)),p=new Date(Date.UTC(r,n,o,i,s,a,l)),c&&p.setTime(p.getTime()-c),p}T(WN,"constructYamlTimestamp");function VN(e){return e.toISOString()}T(VN,"representYamlTimestamp");var Qte=new Tr("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:HN,construct:WN,instanceOf:Date,represent:VN});function UN(e){return e==="<<"||e===null}T(UN,"resolveYamlMerge");var Jte=new Tr("tag:yaml.org,2002:merge",{kind:"scalar",resolve:UN}),O1=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
234
+ \r`;function GN(e){if(e===null)return!1;var t,r,n=0,o=e.length,i=O1;for(r=0;r<o;r++)if(t=i.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}T(GN,"resolveYamlBinary");function XN(e){var t,r,n=e.replace(/[\r\n=]/g,""),o=n.length,i=O1,s=0,a=[];for(t=0;t<o;t++)t%4===0&&t&&(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)),s=s<<6|i.indexOf(n.charAt(t));return r=o%4*6,r===0?(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)):r===18?(a.push(s>>10&255),a.push(s>>2&255)):r===12&&a.push(s>>4&255),new Uint8Array(a)}T(XN,"constructYamlBinary");function YN(e){var t="",r=0,n,o,i=e.length,s=O1;for(n=0;n<i;n++)n%3===0&&n&&(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]),r=(r<<8)+e[n];return o=i%3,o===0?(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]):o===2?(t+=s[r>>10&63],t+=s[r>>4&63],t+=s[r<<2&63],t+=s[64]):o===1&&(t+=s[r>>2&63],t+=s[r<<4&63],t+=s[64],t+=s[64]),t}T(YN,"representYamlBinary");function ZN(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}T(ZN,"isBinary");var ere=new Tr("tag:yaml.org,2002:binary",{kind:"scalar",resolve:GN,construct:XN,predicate:ZN,represent:YN}),tre=Object.prototype.hasOwnProperty,rre=Object.prototype.toString;function KN(e){if(e===null)return!0;var t=[],r,n,o,i,s,a=e;for(r=0,n=a.length;r<n;r+=1){if(o=a[r],s=!1,rre.call(o)!=="[object Object]")return!1;for(i in o)if(tre.call(o,i))if(!s)s=!0;else return!1;if(!s)return!1;if(t.indexOf(i)===-1)t.push(i);else return!1}return!0}T(KN,"resolveYamlOmap");function QN(e){return e!==null?e:[]}T(QN,"constructYamlOmap");var nre=new Tr("tag:yaml.org,2002:omap",{kind:"sequence",resolve:KN,construct:QN}),ore=Object.prototype.toString;function JN(e){if(e===null)return!0;var t,r,n,o,i,s=e;for(i=new Array(s.length),t=0,r=s.length;t<r;t+=1){if(n=s[t],ore.call(n)!=="[object Object]"||(o=Object.keys(n),o.length!==1))return!1;i[t]=[o[0],n[o[0]]]}return!0}T(JN,"resolveYamlPairs");function ej(e){if(e===null)return[];var t,r,n,o,i,s=e;for(i=new Array(s.length),t=0,r=s.length;t<r;t+=1)n=s[t],o=Object.keys(n),i[t]=[o[0],n[o[0]]];return i}T(ej,"constructYamlPairs");var ire=new Tr("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:JN,construct:ej}),sre=Object.prototype.hasOwnProperty;function tj(e){if(e===null)return!0;var t,r=e;for(t in r)if(sre.call(r,t)&&r[t]!==null)return!1;return!0}T(tj,"resolveYamlSet");function rj(e){return e!==null?e:{}}T(rj,"constructYamlSet");var are=new Tr("tag:yaml.org,2002:set",{kind:"mapping",resolve:tj,construct:rj}),nj=Kte.extend({implicit:[Qte,Jte],explicit:[ere,nre,ire,are]}),Hi=Object.prototype.hasOwnProperty,fh=1,oj=2,ij=3,hh=4,Kg=1,lre=2,K2=3,cre=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ure=/[\x85\u2028\u2029]/,dre=/[,\[\]\{\}]/,sj=/^(?:!|!!|![a-z\-]+!)$/i,aj=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function ev(e){return Object.prototype.toString.call(e)}T(ev,"_class");function no(e){return e===10||e===13}T(no,"is_EOL");function Di(e){return e===9||e===32}T(Di,"is_WHITE_SPACE");function Ir(e){return e===9||e===32||e===10||e===13}T(Ir,"is_WS_OR_EOL");function vs(e){return e===44||e===91||e===93||e===123||e===125}T(vs,"is_FLOW_INDICATOR");function lj(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}T(lj,"fromHexCode");function cj(e){return e===120?2:e===117?4:e===85?8:0}T(cj,"escapedHexLen");function uj(e){return 48<=e&&e<=57?e-48:-1}T(uj,"fromDecimalCode");function tv(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
235
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}T(tv,"simpleEscapeSequence");function dj(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}T(dj,"charFromCodepoint");var fj=new Array(256),hj=new Array(256);for(os=0;os<256;os++)fj[os]=tv(os)?1:0,hj[os]=tv(os);var os;function pj(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||nj,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}T(pj,"State$1");function q1(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=Mte(r),new Zr(t,r)}T(q1,"generateError");function Fe(e,t){throw q1(e,t)}T(Fe,"throwError");function pu(e,t){e.onWarning&&e.onWarning.call(null,q1(e,t))}T(pu,"throwWarning");var Q2={YAML:T(function(t,r,n){var o,i,s;t.version!==null&&Fe(t,"duplication of %YAML directive"),n.length!==1&&Fe(t,"YAML directive accepts exactly one argument"),o=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),o===null&&Fe(t,"ill-formed argument of the YAML directive"),i=parseInt(o[1],10),s=parseInt(o[2],10),i!==1&&Fe(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=s<2,s!==1&&s!==2&&pu(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:T(function(t,r,n){var o,i;n.length!==2&&Fe(t,"TAG directive accepts exactly two arguments"),o=n[0],i=n[1],sj.test(o)||Fe(t,"ill-formed tag handle (first argument) of the TAG directive"),Hi.call(t.tagMap,o)&&Fe(t,'there is a previously declared suffix for "'+o+'" tag handle'),aj.test(i)||Fe(t,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch{Fe(t,"tag prefix is malformed: "+i)}t.tagMap[o]=i},"handleTagDirective")};function Qo(e,t,r,n){var o,i,s,a;if(t<r){if(a=e.input.slice(t,r),n)for(o=0,i=a.length;o<i;o+=1)s=a.charCodeAt(o),s===9||32<=s&&s<=1114111||Fe(e,"expected valid JSON character");else cre.test(a)&&Fe(e,"the stream contains non-printable characters");e.result+=a}}T(Qo,"captureSegment");function rv(e,t,r,n){var o,i,s,a;for(tr.isObject(r)||Fe(e,"cannot merge mappings; the provided source object is unacceptable"),o=Object.keys(r),s=0,a=o.length;s<a;s+=1)i=o[s],Hi.call(t,i)||(t[i]=r[i],n[i]=!0)}T(rv,"mergeMappings");function ys(e,t,r,n,o,i,s,a,l){var c,u;if(Array.isArray(o))for(o=Array.prototype.slice.call(o),c=0,u=o.length;c<u;c+=1)Array.isArray(o[c])&&Fe(e,"nested arrays are not supported inside keys"),typeof o=="object"&&ev(o[c])==="[object Object]"&&(o[c]="[object Object]");if(typeof o=="object"&&ev(o)==="[object Object]"&&(o="[object Object]"),o=String(o),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(i))for(c=0,u=i.length;c<u;c+=1)rv(e,t,i[c],r);else rv(e,t,i,r);else!e.json&&!Hi.call(r,o)&&Hi.call(t,o)&&(e.line=s||e.line,e.lineStart=a||e.lineStart,e.position=l||e.position,Fe(e,"duplicated mapping key")),o==="__proto__"?Object.defineProperty(t,o,{configurable:!0,enumerable:!0,writable:!0,value:i}):t[o]=i,delete r[o];return t}T(ys,"storeMappingPair");function Sp(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):Fe(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}T(Sp,"readLineBreak");function Xt(e,t,r){for(var n=0,o=e.input.charCodeAt(e.position);o!==0;){for(;Di(o);)o===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),o=e.input.charCodeAt(++e.position);if(t&&o===35)do o=e.input.charCodeAt(++e.position);while(o!==10&&o!==13&&o!==0);if(no(o))for(Sp(e),o=e.input.charCodeAt(e.position),n++,e.lineIndent=0;o===32;)e.lineIndent++,o=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&pu(e,"deficient indentation"),n}T(Xt,"skipSeparationSpace");function Ou(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||Ir(r)))}T(Ou,"testDocumentSeparator");function Cp(e,t){t===1?e.result+=" ":t>1&&(e.result+=tr.repeat(`
236
+ `,t-1))}T(Cp,"writeFoldedLines");function gj(e,t,r){var n,o,i,s,a,l,c,u,d=e.kind,p=e.result,h;if(h=e.input.charCodeAt(e.position),Ir(h)||vs(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96||(h===63||h===45)&&(o=e.input.charCodeAt(e.position+1),Ir(o)||r&&vs(o)))return!1;for(e.kind="scalar",e.result="",i=s=e.position,a=!1;h!==0;){if(h===58){if(o=e.input.charCodeAt(e.position+1),Ir(o)||r&&vs(o))break}else if(h===35){if(n=e.input.charCodeAt(e.position-1),Ir(n))break}else{if(e.position===e.lineStart&&Ou(e)||r&&vs(h))break;if(no(h))if(l=e.line,c=e.lineStart,u=e.lineIndent,Xt(e,!1,-1),e.lineIndent>=t){a=!0,h=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=l,e.lineStart=c,e.lineIndent=u;break}}a&&(Qo(e,i,s,!1),Cp(e,e.line-l),i=s=e.position,a=!1),Di(h)||(s=e.position+1),h=e.input.charCodeAt(++e.position)}return Qo(e,i,s,!1),e.result?!0:(e.kind=d,e.result=p,!1)}T(gj,"readPlainScalar");function mj(e,t){var r,n,o;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=o=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Qo(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,o=e.position;else return!0;else no(r)?(Qo(e,n,o,!0),Cp(e,Xt(e,!1,t)),n=o=e.position):e.position===e.lineStart&&Ou(e)?Fe(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position);Fe(e,"unexpected end of the stream within a single quoted scalar")}T(mj,"readSingleQuotedScalar");function vj(e,t){var r,n,o,i,s,a;if(a=e.input.charCodeAt(e.position),a!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(a=e.input.charCodeAt(e.position))!==0;){if(a===34)return Qo(e,r,e.position,!0),e.position++,!0;if(a===92){if(Qo(e,r,e.position,!0),a=e.input.charCodeAt(++e.position),no(a))Xt(e,!1,t);else if(a<256&&fj[a])e.result+=hj[a],e.position++;else if((s=cj(a))>0){for(o=s,i=0;o>0;o--)a=e.input.charCodeAt(++e.position),(s=lj(a))>=0?i=(i<<4)+s:Fe(e,"expected hexadecimal character");e.result+=dj(i),e.position++}else Fe(e,"unknown escape sequence");r=n=e.position}else no(a)?(Qo(e,r,n,!0),Cp(e,Xt(e,!1,t)),r=n=e.position):e.position===e.lineStart&&Ou(e)?Fe(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}Fe(e,"unexpected end of the stream within a double quoted scalar")}T(vj,"readDoubleQuotedScalar");function yj(e,t){var r=!0,n,o,i,s=e.tag,a,l=e.anchor,c,u,d,p,h,m=Object.create(null),g,y,v,b;if(b=e.input.charCodeAt(e.position),b===91)u=93,h=!1,a=[];else if(b===123)u=125,h=!0,a={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),b=e.input.charCodeAt(++e.position);b!==0;){if(Xt(e,!0,t),b=e.input.charCodeAt(e.position),b===u)return e.position++,e.tag=s,e.anchor=l,e.kind=h?"mapping":"sequence",e.result=a,!0;r?b===44&&Fe(e,"expected the node content, but found ','"):Fe(e,"missed comma between flow collection entries"),y=g=v=null,d=p=!1,b===63&&(c=e.input.charCodeAt(e.position+1),Ir(c)&&(d=p=!0,e.position++,Xt(e,!0,t))),n=e.line,o=e.lineStart,i=e.position,Is(e,t,fh,!1,!0),y=e.tag,g=e.result,Xt(e,!0,t),b=e.input.charCodeAt(e.position),(p||e.line===n)&&b===58&&(d=!0,b=e.input.charCodeAt(++e.position),Xt(e,!0,t),Is(e,t,fh,!1,!0),v=e.result),h?ys(e,a,m,y,g,v,n,o,i):d?a.push(ys(e,null,m,y,g,v,n,o,i)):a.push(g),Xt(e,!0,t),b=e.input.charCodeAt(e.position),b===44?(r=!0,b=e.input.charCodeAt(++e.position)):r=!1}Fe(e,"unexpected end of the stream within a flow collection")}T(yj,"readFlowCollection");function bj(e,t){var r,n,o=Kg,i=!1,s=!1,a=t,l=0,c=!1,u,d;if(d=e.input.charCodeAt(e.position),d===124)n=!1;else if(d===62)n=!0;else return!1;for(e.kind="scalar",e.result="";d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)Kg===o?o=d===43?K2:lre:Fe(e,"repeat of a chomping mode identifier");else if((u=uj(d))>=0)u===0?Fe(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?Fe(e,"repeat of an indentation width identifier"):(a=t+u-1,s=!0);else break;if(Di(d)){do d=e.input.charCodeAt(++e.position);while(Di(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!no(d)&&d!==0)}for(;d!==0;){for(Sp(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!s||e.lineIndent<a)&&d===32;)e.lineIndent++,d=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>a&&(a=e.lineIndent),no(d)){l++;continue}if(e.lineIndent<a){o===K2?e.result+=tr.repeat(`
237
+ `,i?1+l:l):o===Kg&&i&&(e.result+=`
238
+ `);break}for(n?Di(d)?(c=!0,e.result+=tr.repeat(`
239
+ `,i?1+l:l)):c?(c=!1,e.result+=tr.repeat(`
240
+ `,l+1)):l===0?i&&(e.result+=" "):e.result+=tr.repeat(`
241
+ `,l):e.result+=tr.repeat(`
242
+ `,i?1+l:l),i=!0,s=!0,l=0,r=e.position;!no(d)&&d!==0;)d=e.input.charCodeAt(++e.position);Qo(e,r,e.position,!1)}return!0}T(bj,"readBlockScalar");function nv(e,t){var r,n=e.tag,o=e.anchor,i=[],s,a=!1,l;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=i),l=e.input.charCodeAt(e.position);l!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Fe(e,"tab characters must not be used in indentation")),!(l!==45||(s=e.input.charCodeAt(e.position+1),!Ir(s))));){if(a=!0,e.position++,Xt(e,!0,-1)&&e.lineIndent<=t){i.push(null),l=e.input.charCodeAt(e.position);continue}if(r=e.line,Is(e,t,ij,!1,!0),i.push(e.result),Xt(e,!0,-1),l=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&l!==0)Fe(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return a?(e.tag=n,e.anchor=o,e.kind="sequence",e.result=i,!0):!1}T(nv,"readBlockSequence");function xj(e,t,r){var n,o,i,s,a,l,c=e.tag,u=e.anchor,d={},p=Object.create(null),h=null,m=null,g=null,y=!1,v=!1,b;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=d),b=e.input.charCodeAt(e.position);b!==0;){if(!y&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Fe(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),i=e.line,(b===63||b===58)&&Ir(n))b===63?(y&&(ys(e,d,p,h,m,null,s,a,l),h=m=g=null),v=!0,y=!0,o=!0):y?(y=!1,o=!0):Fe(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,b=n;else{if(s=e.line,a=e.lineStart,l=e.position,!Is(e,r,oj,!1,!0))break;if(e.line===i){for(b=e.input.charCodeAt(e.position);Di(b);)b=e.input.charCodeAt(++e.position);if(b===58)b=e.input.charCodeAt(++e.position),Ir(b)||Fe(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(ys(e,d,p,h,m,null,s,a,l),h=m=g=null),v=!0,y=!1,o=!1,h=e.tag,m=e.result;else if(v)Fe(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=u,!0}else if(v)Fe(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=u,!0}if((e.line===i||e.lineIndent>t)&&(y&&(s=e.line,a=e.lineStart,l=e.position),Is(e,t,hh,!0,o)&&(y?m=e.result:g=e.result),y||(ys(e,d,p,h,m,g,s,a,l),h=m=g=null),Xt(e,!0,-1),b=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&b!==0)Fe(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&ys(e,d,p,h,m,null,s,a,l),v&&(e.tag=c,e.anchor=u,e.kind="mapping",e.result=d),v}T(xj,"readBlockMapping");function wj(e){var t,r=!1,n=!1,o,i,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&Fe(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(r=!0,s=e.input.charCodeAt(++e.position)):s===33?(n=!0,o="!!",s=e.input.charCodeAt(++e.position)):o="!",t=e.position,r){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(i=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):Fe(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!Ir(s);)s===33&&(n?Fe(e,"tag suffix cannot contain exclamation marks"):(o=e.input.slice(t-1,e.position+1),sj.test(o)||Fe(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);i=e.input.slice(t,e.position),dre.test(i)&&Fe(e,"tag suffix cannot contain flow indicator characters")}i&&!aj.test(i)&&Fe(e,"tag name cannot contain such characters: "+i);try{i=decodeURIComponent(i)}catch{Fe(e,"tag name is malformed: "+i)}return r?e.tag=i:Hi.call(e.tagMap,o)?e.tag=e.tagMap[o]+i:o==="!"?e.tag="!"+i:o==="!!"?e.tag="tag:yaml.org,2002:"+i:Fe(e,'undeclared tag handle "'+o+'"'),!0}T(wj,"readTagProperty");function kj(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&Fe(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Ir(r)&&!vs(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&Fe(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}T(kj,"readAnchorProperty");function Sj(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!Ir(n)&&!vs(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&Fe(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Hi.call(e.anchorMap,r)||Fe(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Xt(e,!0,-1),!0}T(Sj,"readAlias");function Is(e,t,r,n,o){var i,s,a,l=1,c=!1,u=!1,d,p,h,m,g,y;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,i=s=a=hh===r||ij===r,n&&Xt(e,!0,-1)&&(c=!0,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)),l===1)for(;wj(e)||kj(e);)Xt(e,!0,-1)?(c=!0,a=i,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)):a=!1;if(a&&(a=c||o),(l===1||hh===r)&&(fh===r||oj===r?g=t:g=t+1,y=e.position-e.lineStart,l===1?a&&(nv(e,y)||xj(e,y,g))||yj(e,g)?u=!0:(s&&bj(e,g)||mj(e,g)||vj(e,g)?u=!0:Sj(e)?(u=!0,(e.tag!==null||e.anchor!==null)&&Fe(e,"alias node should not have any properties")):gj(e,g,fh===r)&&(u=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):l===0&&(u=a&&nv(e,y))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&Fe(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),d=0,p=e.implicitTypes.length;d<p;d+=1)if(m=e.implicitTypes[d],m.resolve(e.result)){e.result=m.construct(e.result),e.tag=m.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(Hi.call(e.typeMap[e.kind||"fallback"],e.tag))m=e.typeMap[e.kind||"fallback"][e.tag];else for(m=null,h=e.typeMap.multi[e.kind||"fallback"],d=0,p=h.length;d<p;d+=1)if(e.tag.slice(0,h[d].tag.length)===h[d].tag){m=h[d];break}m||Fe(e,"unknown tag !<"+e.tag+">"),e.result!==null&&m.kind!==e.kind&&Fe(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+m.kind+'", not "'+e.kind+'"'),m.resolve(e.result,e.tag)?(e.result=m.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):Fe(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||u}T(Is,"composeNode");function Cj(e){var t=e.position,r,n,o,i=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(s=e.input.charCodeAt(e.position))!==0&&(Xt(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(i=!0,s=e.input.charCodeAt(++e.position),r=e.position;s!==0&&!Ir(s);)s=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),o=[],n.length<1&&Fe(e,"directive name must not be less than one character in length");s!==0;){for(;Di(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!no(s));break}if(no(s))break;for(r=e.position;s!==0&&!Ir(s);)s=e.input.charCodeAt(++e.position);o.push(e.input.slice(r,e.position))}s!==0&&Sp(e),Hi.call(Q2,n)?Q2[n](e,n,o):pu(e,'unknown document directive "'+n+'"')}if(Xt(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Xt(e,!0,-1)):i&&Fe(e,"directives end mark is expected"),Is(e,e.lineIndent-1,hh,!1,!0),Xt(e,!0,-1),e.checkLineBreaks&&ure.test(e.input.slice(t,e.position))&&pu(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Ou(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Xt(e,!0,-1));return}if(e.position<e.length-1)Fe(e,"end of the stream or a document separator is expected");else return}T(Cj,"readDocument");function $1(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
243
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new pj(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,Fe(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)Cj(r);return r.documents}T($1,"loadDocuments");function fre(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=$1(e,r);if(typeof t!="function")return n;for(var o=0,i=n.length;o<i;o+=1)t(n[o])}T(fre,"loadAll$1");function _j(e,t){var r=$1(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new Zr("expected a single document in the stream, but found more")}}T(_j,"load$1");var hre=_j,pre={load:hre},Bj=Object.prototype.toString,Tj=Object.prototype.hasOwnProperty,H1=65279,gre=9,gu=10,mre=13,vre=32,yre=33,bre=34,ov=35,xre=37,wre=38,kre=39,Sre=42,Nj=44,Cre=45,ph=58,_re=61,Bre=62,Tre=63,Nre=64,jj=91,zj=93,jre=96,Ej=123,zre=124,Rj=125,zr={};zr[0]="\\0";zr[7]="\\a";zr[8]="\\b";zr[9]="\\t";zr[10]="\\n";zr[11]="\\v";zr[12]="\\f";zr[13]="\\r";zr[27]="\\e";zr[34]='\\"';zr[92]="\\\\";zr[133]="\\N";zr[160]="\\_";zr[8232]="\\L";zr[8233]="\\P";var Ere=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Rre=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Aj(e,t){var r,n,o,i,s,a,l;if(t===null)return{};for(r={},n=Object.keys(t),o=0,i=n.length;o<i;o+=1)s=n[o],a=String(t[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),l=e.compiledTypeMap.fallback[s],l&&Tj.call(l.styleAliases,a)&&(a=l.styleAliases[a]),r[s]=a;return r}T(Aj,"compileStyleMap");function Fj(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new Zr("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+tr.repeat("0",n-t.length)+t}T(Fj,"encodeHex");var Are=1,mu=2;function Pj(e){this.schema=e.schema||nj,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=tr.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Aj(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?mu:Are,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}T(Pj,"State");function iv(e,t){for(var r=tr.repeat(" ",t),n=0,o=-1,i="",s,a=e.length;n<a;)o=e.indexOf(`
244
+ `,n),o===-1?(s=e.slice(n),n=a):(s=e.slice(n,o+1),n=o+1),s.length&&s!==`
245
+ `&&(i+=r),i+=s;return i}T(iv,"indentString");function gh(e,t){return`
246
+ `+tr.repeat(" ",e.indent*t)}T(gh,"generateNextLine");function Ij(e,t){var r,n,o;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(o=e.implicitTypes[r],o.resolve(t))return!0;return!1}T(Ij,"testImplicitResolving");function vu(e){return e===vre||e===gre}T(vu,"isWhitespace");function cl(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==H1||65536<=e&&e<=1114111}T(cl,"isPrintable");function sv(e){return cl(e)&&e!==H1&&e!==mre&&e!==gu}T(sv,"isNsCharOrWhitespace");function av(e,t,r){var n=sv(e),o=n&&!vu(e);return(r?n:n&&e!==Nj&&e!==jj&&e!==zj&&e!==Ej&&e!==Rj)&&e!==ov&&!(t===ph&&!o)||sv(t)&&!vu(t)&&e===ov||t===ph&&o}T(av,"isPlainSafe");function Mj(e){return cl(e)&&e!==H1&&!vu(e)&&e!==Cre&&e!==Tre&&e!==ph&&e!==Nj&&e!==jj&&e!==zj&&e!==Ej&&e!==Rj&&e!==ov&&e!==wre&&e!==Sre&&e!==yre&&e!==zre&&e!==_re&&e!==Bre&&e!==kre&&e!==bre&&e!==xre&&e!==Nre&&e!==jre}T(Mj,"isPlainSafeFirst");function Dj(e){return!vu(e)&&e!==ph}T(Dj,"isPlainSafeLast");function wa(e,t){var r=e.charCodeAt(t),n;return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}T(wa,"codePointAt");function W1(e){var t=/^\n* /;return t.test(e)}T(W1,"needIndentIndicator");var Lj=1,lv=2,Oj=3,qj=4,sa=5;function $j(e,t,r,n,o,i,s,a){var l,c=0,u=null,d=!1,p=!1,h=n!==-1,m=-1,g=Mj(wa(e,0))&&Dj(wa(e,e.length-1));if(t||s)for(l=0;l<e.length;c>=65536?l+=2:l++){if(c=wa(e,l),!cl(c))return sa;g=g&&av(c,u,a),u=c}else{for(l=0;l<e.length;c>=65536?l+=2:l++){if(c=wa(e,l),c===gu)d=!0,h&&(p=p||l-m-1>n&&e[m+1]!==" ",m=l);else if(!cl(c))return sa;g=g&&av(c,u,a),u=c}p=p||h&&l-m-1>n&&e[m+1]!==" "}return!d&&!p?g&&!s&&!o(e)?Lj:i===mu?sa:lv:r>9&&W1(e)?sa:s?i===mu?sa:lv:p?qj:Oj}T($j,"chooseScalarStyle");function Hj(e,t,r,n,o){e.dump=function(){if(t.length===0)return e.quotingType===mu?'""':"''";if(!e.noCompatMode&&(Ere.indexOf(t)!==-1||Rre.test(t)))return e.quotingType===mu?'"'+t+'"':"'"+t+"'";var i=e.indent*Math.max(1,r),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),a=n||e.flowLevel>-1&&r>=e.flowLevel;function l(c){return Ij(e,c)}switch(T(l,"testAmbiguity"),$j(t,a,e.indent,s,l,e.quotingType,e.forceQuotes&&!n,o)){case Lj:return t;case lv:return"'"+t.replace(/'/g,"''")+"'";case Oj:return"|"+cv(t,e.indent)+uv(iv(t,i));case qj:return">"+cv(t,e.indent)+uv(iv(Wj(t,s),i));case sa:return'"'+Vj(t)+'"';default:throw new Zr("impossible error: invalid scalar style")}}()}T(Hj,"writeScalar");function cv(e,t){var r=W1(e)?String(t):"",n=e[e.length-1]===`
247
+ `,o=n&&(e[e.length-2]===`
248
+ `||e===`
249
+ `),i=o?"+":n?"":"-";return r+i+`
250
+ `}T(cv,"blockHeader");function uv(e){return e[e.length-1]===`
251
+ `?e.slice(0,-1):e}T(uv,"dropEndingNewline");function Wj(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var c=e.indexOf(`
252
+ `);return c=c!==-1?c:e.length,r.lastIndex=c,dv(e.slice(0,c),t)}(),o=e[0]===`
253
+ `||e[0]===" ",i,s;s=r.exec(e);){var a=s[1],l=s[2];i=l[0]===" ",n+=a+(!o&&!i&&l!==""?`
254
+ `:"")+dv(l,t),o=i}return n}T(Wj,"foldString");function dv(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,o=0,i,s=0,a=0,l="";n=r.exec(e);)a=n.index,a-o>t&&(i=s>o?s:a,l+=`
255
+ `+e.slice(o,i),o=i+1),s=a;return l+=`
256
+ `,e.length-o>t&&s>o?l+=e.slice(o,s)+`
257
+ `+e.slice(s+1):l+=e.slice(o),l.slice(1)}T(dv,"foldLine");function Vj(e){for(var t="",r=0,n,o=0;o<e.length;r>=65536?o+=2:o++)r=wa(e,o),n=zr[r],!n&&cl(r)?(t+=e[o],r>=65536&&(t+=e[o+1])):t+=n||Fj(r);return t}T(Vj,"escapeString");function Uj(e,t,r){var n="",o=e.tag,i,s,a;for(i=0,s=r.length;i<s;i+=1)a=r[i],e.replacer&&(a=e.replacer.call(r,String(i),a)),(Ro(e,t,a,!1,!1)||typeof a>"u"&&Ro(e,t,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=o,e.dump="["+n+"]"}T(Uj,"writeFlowSequence");function fv(e,t,r,n){var o="",i=e.tag,s,a,l;for(s=0,a=r.length;s<a;s+=1)l=r[s],e.replacer&&(l=e.replacer.call(r,String(s),l)),(Ro(e,t+1,l,!0,!0,!1,!0)||typeof l>"u"&&Ro(e,t+1,null,!0,!0,!1,!0))&&((!n||o!=="")&&(o+=gh(e,t)),e.dump&&gu===e.dump.charCodeAt(0)?o+="-":o+="- ",o+=e.dump);e.tag=i,e.dump=o||"[]"}T(fv,"writeBlockSequence");function Gj(e,t,r){var n="",o=e.tag,i=Object.keys(r),s,a,l,c,u;for(s=0,a=i.length;s<a;s+=1)u="",n!==""&&(u+=", "),e.condenseFlow&&(u+='"'),l=i[s],c=r[l],e.replacer&&(c=e.replacer.call(r,l,c)),Ro(e,t,l,!1,!1)&&(e.dump.length>1024&&(u+="? "),u+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Ro(e,t,c,!1,!1)&&(u+=e.dump,n+=u));e.tag=o,e.dump="{"+n+"}"}T(Gj,"writeFlowMapping");function Xj(e,t,r,n){var o="",i=e.tag,s=Object.keys(r),a,l,c,u,d,p;if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys=="function")s.sort(e.sortKeys);else if(e.sortKeys)throw new Zr("sortKeys must be a boolean or a function");for(a=0,l=s.length;a<l;a+=1)p="",(!n||o!=="")&&(p+=gh(e,t)),c=s[a],u=r[c],e.replacer&&(u=e.replacer.call(r,c,u)),Ro(e,t+1,c,!0,!0,!0)&&(d=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,d&&(e.dump&&gu===e.dump.charCodeAt(0)?p+="?":p+="? "),p+=e.dump,d&&(p+=gh(e,t)),Ro(e,t+1,u,!0,d)&&(e.dump&&gu===e.dump.charCodeAt(0)?p+=":":p+=": ",p+=e.dump,o+=p));e.tag=i,e.dump=o||"{}"}T(Xj,"writeBlockMapping");function hv(e,t,r){var n,o,i,s,a,l;for(o=r?e.explicitTypes:e.implicitTypes,i=0,s=o.length;i<s;i+=1)if(a=o[i],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof t=="object"&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(r?a.multi&&a.representName?e.tag=a.representName(t):e.tag=a.tag:e.tag="?",a.represent){if(l=e.styleMap[a.tag]||a.defaultStyle,Bj.call(a.represent)==="[object Function]")n=a.represent(t,l);else if(Tj.call(a.represent,l))n=a.represent[l](t,l);else throw new Zr("!<"+a.tag+'> tag resolver accepts not "'+l+'" style');e.dump=n}return!0}return!1}T(hv,"detectType");function Ro(e,t,r,n,o,i,s){e.tag=null,e.dump=r,hv(e,r,!1)||hv(e,r,!0);var a=Bj.call(e.dump),l=n,c;n&&(n=e.flowLevel<0||e.flowLevel>t);var u=a==="[object Object]"||a==="[object Array]",d,p;if(u&&(d=e.duplicates.indexOf(r),p=d!==-1),(e.tag!==null&&e.tag!=="?"||p||e.indent!==2&&t>0)&&(o=!1),p&&e.usedDuplicates[d])e.dump="*ref_"+d;else{if(u&&p&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),a==="[object Object]")n&&Object.keys(e.dump).length!==0?(Xj(e,t,e.dump,o),p&&(e.dump="&ref_"+d+e.dump)):(Gj(e,t,e.dump),p&&(e.dump="&ref_"+d+" "+e.dump));else if(a==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!s&&t>0?fv(e,t-1,e.dump,o):fv(e,t,e.dump,o),p&&(e.dump="&ref_"+d+e.dump)):(Uj(e,t,e.dump),p&&(e.dump="&ref_"+d+" "+e.dump));else if(a==="[object String]")e.tag!=="?"&&Hj(e,e.dump,t,i,l);else{if(a==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Zr("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}T(Ro,"writeNode");function Yj(e,t){var r=[],n=[],o,i;for(mh(e,r,n),o=0,i=n.length;o<i;o+=1)t.duplicates.push(r[n[o]]);t.usedDuplicates=new Array(i)}T(Yj,"getDuplicateReferences");function mh(e,t,r){var n,o,i;if(e!==null&&typeof e=="object")if(o=t.indexOf(e),o!==-1)r.indexOf(o)===-1&&r.push(o);else if(t.push(e),Array.isArray(e))for(o=0,i=e.length;o<i;o+=1)mh(e[o],t,r);else for(n=Object.keys(e),o=0,i=n.length;o<i;o+=1)mh(e[n[o]],t,r)}T(mh,"inspectNode");function Fre(e,t){t=t||{};var r=new Pj(t);r.noRefs||Yj(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),Ro(r,0,n,!0,!0)?r.dump+`
258
+ `:""}T(Fre,"dump$1");function Pre(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}T(Pre,"renamed");var Ire=ON,Mre=pre.load;/*! Bundled license information:
259
+
260
+ js-yaml/dist/js-yaml.mjs:
261
+ (*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *)
262
+ */var Sr={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4},J2={arrow_point:9,arrow_cross:12.5,arrow_circle:12.5};function pc(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=zt(e),t=zt(t);const[r,n]=[e.x,e.y],[o,i]=[t.x,t.y],s=o-r,a=i-n;return{angle:Math.atan(a/s),deltaX:s,deltaY:a}}T(pc,"calculateDeltaAndAngle");var zt=T(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,"pointTransformer"),Dre=T(e=>({x:T(function(t,r,n){let o=0;const i=zt(n[0]).x<zt(n[n.length-1]).x?"left":"right";if(r===0&&Object.hasOwn(Sr,e.arrowTypeStart)){const{angle:h,deltaX:m}=pc(n[0],n[1]);o=Sr[e.arrowTypeStart]*Math.cos(h)*(m>=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(Sr,e.arrowTypeEnd)){const{angle:h,deltaX:m}=pc(n[n.length-1],n[n.length-2]);o=Sr[e.arrowTypeEnd]*Math.cos(h)*(m>=0?1:-1)}const s=Math.abs(zt(t).x-zt(n[n.length-1]).x),a=Math.abs(zt(t).y-zt(n[n.length-1]).y),l=Math.abs(zt(t).x-zt(n[0]).x),c=Math.abs(zt(t).y-zt(n[0]).y),u=Sr[e.arrowTypeStart],d=Sr[e.arrowTypeEnd],p=1;if(s<d&&s>0&&a<d){let h=d+p-s;h*=i==="right"?-1:1,o-=h}if(l<u&&l>0&&c<u){let h=u+p-l;h*=i==="right"?-1:1,o+=h}return zt(t).x+o},"x"),y:T(function(t,r,n){let o=0;const i=zt(n[0]).y<zt(n[n.length-1]).y?"down":"up";if(r===0&&Object.hasOwn(Sr,e.arrowTypeStart)){const{angle:h,deltaY:m}=pc(n[0],n[1]);o=Sr[e.arrowTypeStart]*Math.abs(Math.sin(h))*(m>=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(Sr,e.arrowTypeEnd)){const{angle:h,deltaY:m}=pc(n[n.length-1],n[n.length-2]);o=Sr[e.arrowTypeEnd]*Math.abs(Math.sin(h))*(m>=0?1:-1)}const s=Math.abs(zt(t).y-zt(n[n.length-1]).y),a=Math.abs(zt(t).x-zt(n[n.length-1]).x),l=Math.abs(zt(t).y-zt(n[0]).y),c=Math.abs(zt(t).x-zt(n[0]).x),u=Sr[e.arrowTypeStart],d=Sr[e.arrowTypeEnd],p=1;if(s<d&&s>0&&a<d){let h=d+p-s;h*=i==="up"?-1:1,o-=h}if(l<u&&l>0&&c<u){let h=u+p-l;h*=i==="up"?-1:1,o+=h}return zt(t).y+o},"y")}),"getLineFunctionsWithOffset"),V1=T(({flowchart:e})=>{var o,i;const t=((o=e==null?void 0:e.subGraphTitleMargin)==null?void 0:o.top)??0,r=((i=e==null?void 0:e.subGraphTitleMargin)==null?void 0:i.bottom)??0,n=t+r;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:n}},"getSubGraphTitleMargins"),Lre=T(e=>{const{handDrawnSeed:t}=ft();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}},"solidStateFill"),Nl=T(e=>{const t=Ore([...e.cssCompiledStyles||[],...e.cssStyles||[],...e.labelStyle||[]]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),Ore=T(e=>{const t=new Map;return e.forEach(r=>{const[n,o]=r.split(":");t.set(n.trim(),o==null?void 0:o.trim())}),t},"styles2Map"),Zj=T(e=>e==="color"||e==="font-size"||e==="font-family"||e==="font-weight"||e==="font-style"||e==="text-decoration"||e==="text-align"||e==="text-transform"||e==="line-height"||e==="letter-spacing"||e==="word-spacing"||e==="text-shadow"||e==="text-overflow"||e==="white-space"||e==="word-wrap"||e==="word-break"||e==="overflow-wrap"||e==="hyphens","isLabelStyle"),ze=T(e=>{const{stylesArray:t}=Nl(e),r=[],n=[],o=[],i=[];return t.forEach(s=>{const a=s[0];Zj(a)?r.push(s.join(":")+" !important"):(n.push(s.join(":")+" !important"),a.includes("stroke")&&o.push(s.join(":")+" !important"),a==="fill"&&i.push(s.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:n.join(";"),stylesArray:t,borderStyles:o,backgroundStyles:i}},"styles2String"),je=T((e,t)=>{var l;const{themeVariables:r,handDrawnSeed:n}=ft(),{nodeBorder:o,mainBkg:i}=r,{stylesMap:s}=Nl(e);return Object.assign({roughness:.7,fill:s.get("fill")||i,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:s.get("stroke")||o,seed:n,strokeWidth:((l=s.get("stroke-width"))==null?void 0:l.replace("px",""))||1.3,fillLineDash:[0,0],strokeLineDash:qre(s.get("stroke-dasharray"))},t)},"userNodeOverrides"),qre=T(e=>{if(!e)return[0,0];const t=e.trim().split(/\s+/).map(Number);if(t.length===1){const o=isNaN(t[0])?0:t[0];return[o,o]}const r=isNaN(t[0])?0:t[0],n=isNaN(t[1])?0:t[1];return[r,n]},"getStrokeDashArray"),Kj={},ar={};Object.defineProperty(ar,"__esModule",{value:!0});ar.BLANK_URL=ar.relativeFirstCharacters=ar.whitespaceEscapeCharsRegex=ar.urlSchemeRegex=ar.ctrlCharactersRegex=ar.htmlCtrlEntityRegex=ar.htmlEntitiesRegex=ar.invalidProtocolRegex=void 0;ar.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im;ar.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g;ar.htmlCtrlEntityRegex=/&(newline|tab);/gi;ar.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;ar.urlSchemeRegex=/^.+(:|&colon;)/gim;ar.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g;ar.relativeFirstCharacters=[".","/"];ar.BLANK_URL="about:blank";Object.defineProperty(Kj,"__esModule",{value:!0});var $re=Kj.sanitizeUrl=Ure,kr=ar;function Hre(e){return kr.relativeFirstCharacters.indexOf(e[0])>-1}function Wre(e){var t=e.replace(kr.ctrlCharactersRegex,"");return t.replace(kr.htmlEntitiesRegex,function(r,n){return String.fromCharCode(n)})}function Vre(e){return URL.canParse(e)}function ek(e){try{return decodeURIComponent(e)}catch{return e}}function Ure(e){if(!e)return kr.BLANK_URL;var t,r=ek(e.trim());do r=Wre(r).replace(kr.htmlCtrlEntityRegex,"").replace(kr.ctrlCharactersRegex,"").replace(kr.whitespaceEscapeCharsRegex,"").trim(),r=ek(r),t=r.match(kr.ctrlCharactersRegex)||r.match(kr.htmlEntitiesRegex)||r.match(kr.htmlCtrlEntityRegex)||r.match(kr.whitespaceEscapeCharsRegex);while(t&&t.length>0);var n=r;if(!n)return kr.BLANK_URL;if(Hre(n))return n;var o=n.trimStart(),i=o.match(kr.urlSchemeRegex);if(!i)return n;var s=i[0].toLowerCase().trim();if(kr.invalidProtocolRegex.test(s))return kr.BLANK_URL;var a=o.replace(/\\/g,"/");if(s==="mailto:"||s.includes("://"))return a;if(s==="http:"||s==="https:"){if(!Vre(a))return kr.BLANK_URL;var l=new URL(a);return l.protocol=l.protocol.toLowerCase(),l.hostname=l.hostname.toLowerCase(),l.toString()}return a}var Qj=typeof global=="object"&&global&&global.Object===Object&&global,Gre=typeof self=="object"&&self&&self.Object===Object&&self,Fo=Qj||Gre||Function("return this")(),vh=Fo.Symbol,Jj=Object.prototype,Xre=Jj.hasOwnProperty,Yre=Jj.toString,Ql=vh?vh.toStringTag:void 0;function Zre(e){var t=Xre.call(e,Ql),r=e[Ql];try{e[Ql]=void 0;var n=!0}catch{}var o=Yre.call(e);return n&&(t?e[Ql]=r:delete e[Ql]),o}var Kre=Object.prototype,Qre=Kre.toString;function Jre(e){return Qre.call(e)}var ene="[object Null]",tne="[object Undefined]",tk=vh?vh.toStringTag:void 0;function jl(e){return e==null?e===void 0?tne:ene:tk&&tk in Object(e)?Zre(e):Jre(e)}function Ws(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var rne="[object AsyncFunction]",nne="[object Function]",one="[object GeneratorFunction]",ine="[object Proxy]";function U1(e){if(!Ws(e))return!1;var t=jl(e);return t==nne||t==one||t==rne||t==ine}var Qg=Fo["__core-js_shared__"],rk=function(){var e=/[^.]+$/.exec(Qg&&Qg.keys&&Qg.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function sne(e){return!!rk&&rk in e}var ane=Function.prototype,lne=ane.toString;function Vs(e){if(e!=null){try{return lne.call(e)}catch{}try{return e+""}catch{}}return""}var cne=/[\\^$.*+?()[\]{}|]/g,une=/^\[object .+?Constructor\]$/,dne=Function.prototype,fne=Object.prototype,hne=dne.toString,pne=fne.hasOwnProperty,gne=RegExp("^"+hne.call(pne).replace(cne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function mne(e){if(!Ws(e)||sne(e))return!1;var t=U1(e)?gne:une;return t.test(Vs(e))}function vne(e,t){return e==null?void 0:e[t]}function Us(e,t){var r=vne(e,t);return mne(r)?r:void 0}var yu=Us(Object,"create");function yne(){this.__data__=yu?yu(null):{},this.size=0}function bne(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var xne="__lodash_hash_undefined__",wne=Object.prototype,kne=wne.hasOwnProperty;function Sne(e){var t=this.__data__;if(yu){var r=t[e];return r===xne?void 0:r}return kne.call(t,e)?t[e]:void 0}var Cne=Object.prototype,_ne=Cne.hasOwnProperty;function Bne(e){var t=this.__data__;return yu?t[e]!==void 0:_ne.call(t,e)}var Tne="__lodash_hash_undefined__";function Nne(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=yu&&t===void 0?Tne:t,this}function Ms(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ms.prototype.clear=yne;Ms.prototype.delete=bne;Ms.prototype.get=Sne;Ms.prototype.has=Bne;Ms.prototype.set=Nne;function jne(){this.__data__=[],this.size=0}function _p(e,t){return e===t||e!==e&&t!==t}function Bp(e,t){for(var r=e.length;r--;)if(_p(e[r][0],t))return r;return-1}var zne=Array.prototype,Ene=zne.splice;function Rne(e){var t=this.__data__,r=Bp(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Ene.call(t,r,1),--this.size,!0}function Ane(e){var t=this.__data__,r=Bp(t,e);return r<0?void 0:t[r][1]}function Fne(e){return Bp(this.__data__,e)>-1}function Pne(e,t){var r=this.__data__,n=Bp(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function fi(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}fi.prototype.clear=jne;fi.prototype.delete=Rne;fi.prototype.get=Ane;fi.prototype.has=Fne;fi.prototype.set=Pne;var bu=Us(Fo,"Map");function Ine(){this.size=0,this.__data__={hash:new Ms,map:new(bu||fi),string:new Ms}}function Mne(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Tp(e,t){var r=e.__data__;return Mne(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Dne(e){var t=Tp(this,e).delete(e);return this.size-=t?1:0,t}function Lne(e){return Tp(this,e).get(e)}function One(e){return Tp(this,e).has(e)}function qne(e,t){var r=Tp(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Ki(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ki.prototype.clear=Ine;Ki.prototype.delete=Dne;Ki.prototype.get=Lne;Ki.prototype.has=One;Ki.prototype.set=qne;var $ne="Expected a function";function qu(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError($ne);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var s=e.apply(this,n);return r.cache=i.set(o,s)||i,s};return r.cache=new(qu.Cache||Ki),r}qu.Cache=Ki;function Hne(){this.__data__=new fi,this.size=0}function Wne(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Vne(e){return this.__data__.get(e)}function Une(e){return this.__data__.has(e)}var Gne=200;function Xne(e,t){var r=this.__data__;if(r instanceof fi){var n=r.__data__;if(!bu||n.length<Gne-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ki(n)}return r.set(e,t),this.size=r.size,this}function zl(e){var t=this.__data__=new fi(e);this.size=t.size}zl.prototype.clear=Hne;zl.prototype.delete=Wne;zl.prototype.get=Vne;zl.prototype.has=Une;zl.prototype.set=Xne;var yh=function(){try{var e=Us(Object,"defineProperty");return e({},"",{}),e}catch{}}();function G1(e,t,r){t=="__proto__"&&yh?yh(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function pv(e,t,r){(r!==void 0&&!_p(e[t],r)||r===void 0&&!(t in e))&&G1(e,t,r)}function Yne(e){return function(t,r,n){for(var o=-1,i=Object(t),s=n(t),a=s.length;a--;){var l=s[++o];if(r(i[l],l,i)===!1)break}return t}}var Zne=Yne(),ez=typeof exports=="object"&&exports&&!exports.nodeType&&exports,nk=ez&&typeof module=="object"&&module&&!module.nodeType&&module,Kne=nk&&nk.exports===ez,ok=Kne?Fo.Buffer:void 0,ik=ok?ok.allocUnsafe:void 0;function Qne(e,t){if(t)return e.slice();var r=e.length,n=ik?ik(r):new e.constructor(r);return e.copy(n),n}var sk=Fo.Uint8Array;function Jne(e){var t=new e.constructor(e.byteLength);return new sk(t).set(new sk(e)),t}function eoe(e,t){var r=t?Jne(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function toe(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var ak=Object.create,roe=function(){function e(){}return function(t){if(!Ws(t))return{};if(ak)return ak(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function tz(e,t){return function(r){return e(t(r))}}var rz=tz(Object.getPrototypeOf,Object),noe=Object.prototype;function Np(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||noe;return e===r}function ooe(e){return typeof e.constructor=="function"&&!Np(e)?roe(rz(e)):{}}function $u(e){return e!=null&&typeof e=="object"}var ioe="[object Arguments]";function lk(e){return $u(e)&&jl(e)==ioe}var nz=Object.prototype,soe=nz.hasOwnProperty,aoe=nz.propertyIsEnumerable,bh=lk(function(){return arguments}())?lk:function(e){return $u(e)&&soe.call(e,"callee")&&!aoe.call(e,"callee")},xh=Array.isArray,loe=9007199254740991;function oz(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=loe}function jp(e){return e!=null&&oz(e.length)&&!U1(e)}function coe(e){return $u(e)&&jp(e)}function uoe(){return!1}var iz=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ck=iz&&typeof module=="object"&&module&&!module.nodeType&&module,doe=ck&&ck.exports===iz,uk=doe?Fo.Buffer:void 0,foe=uk?uk.isBuffer:void 0,X1=foe||uoe,hoe="[object Object]",poe=Function.prototype,goe=Object.prototype,sz=poe.toString,moe=goe.hasOwnProperty,voe=sz.call(Object);function yoe(e){if(!$u(e)||jl(e)!=hoe)return!1;var t=rz(e);if(t===null)return!0;var r=moe.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&sz.call(r)==voe}var boe="[object Arguments]",xoe="[object Array]",woe="[object Boolean]",koe="[object Date]",Soe="[object Error]",Coe="[object Function]",_oe="[object Map]",Boe="[object Number]",Toe="[object Object]",Noe="[object RegExp]",joe="[object Set]",zoe="[object String]",Eoe="[object WeakMap]",Roe="[object ArrayBuffer]",Aoe="[object DataView]",Foe="[object Float32Array]",Poe="[object Float64Array]",Ioe="[object Int8Array]",Moe="[object Int16Array]",Doe="[object Int32Array]",Loe="[object Uint8Array]",Ooe="[object Uint8ClampedArray]",qoe="[object Uint16Array]",$oe="[object Uint32Array]",Bt={};Bt[Foe]=Bt[Poe]=Bt[Ioe]=Bt[Moe]=Bt[Doe]=Bt[Loe]=Bt[Ooe]=Bt[qoe]=Bt[$oe]=!0;Bt[boe]=Bt[xoe]=Bt[Roe]=Bt[woe]=Bt[Aoe]=Bt[koe]=Bt[Soe]=Bt[Coe]=Bt[_oe]=Bt[Boe]=Bt[Toe]=Bt[Noe]=Bt[joe]=Bt[zoe]=Bt[Eoe]=!1;function Hoe(e){return $u(e)&&oz(e.length)&&!!Bt[jl(e)]}function Woe(e){return function(t){return e(t)}}var az=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ic=az&&typeof module=="object"&&module&&!module.nodeType&&module,Voe=Ic&&Ic.exports===az,Jg=Voe&&Qj.process,dk=function(){try{var e=Ic&&Ic.require&&Ic.require("util").types;return e||Jg&&Jg.binding&&Jg.binding("util")}catch{}}(),fk=dk&&dk.isTypedArray,Y1=fk?Woe(fk):Hoe;function gv(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Uoe=Object.prototype,Goe=Uoe.hasOwnProperty;function Xoe(e,t,r){var n=e[t];(!(Goe.call(e,t)&&_p(n,r))||r===void 0&&!(t in e))&&G1(e,t,r)}function Yoe(e,t,r,n){var o=!r;r||(r={});for(var i=-1,s=t.length;++i<s;){var a=t[i],l=void 0;l===void 0&&(l=e[a]),o?G1(r,a,l):Xoe(r,a,l)}return r}function Zoe(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Koe=9007199254740991,Qoe=/^(?:0|[1-9]\d*)$/;function lz(e,t){var r=typeof e;return t=t??Koe,!!t&&(r=="number"||r!="symbol"&&Qoe.test(e))&&e>-1&&e%1==0&&e<t}var Joe=Object.prototype,eie=Joe.hasOwnProperty;function tie(e,t){var r=xh(e),n=!r&&bh(e),o=!r&&!n&&X1(e),i=!r&&!n&&!o&&Y1(e),s=r||n||o||i,a=s?Zoe(e.length,String):[],l=a.length;for(var c in e)(t||eie.call(e,c))&&!(s&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||lz(c,l)))&&a.push(c);return a}function rie(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var nie=Object.prototype,oie=nie.hasOwnProperty;function iie(e){if(!Ws(e))return rie(e);var t=Np(e),r=[];for(var n in e)n=="constructor"&&(t||!oie.call(e,n))||r.push(n);return r}function cz(e){return jp(e)?tie(e,!0):iie(e)}function sie(e){return Yoe(e,cz(e))}function aie(e,t,r,n,o,i,s){var a=gv(e,r),l=gv(t,r),c=s.get(l);if(c){pv(e,r,c);return}var u=i?i(a,l,r+"",e,t,s):void 0,d=u===void 0;if(d){var p=xh(l),h=!p&&X1(l),m=!p&&!h&&Y1(l);u=l,p||h||m?xh(a)?u=a:coe(a)?u=toe(a):h?(d=!1,u=Qne(l,!0)):m?(d=!1,u=eoe(l,!0)):u=[]:yoe(l)||bh(l)?(u=a,bh(a)?u=sie(a):(!Ws(a)||U1(a))&&(u=ooe(l))):d=!1}d&&(s.set(l,u),o(u,l,n,i,s),s.delete(l)),pv(e,r,u)}function uz(e,t,r,n,o){e!==t&&Zne(t,function(i,s){if(o||(o=new zl),Ws(i))aie(e,t,s,r,uz,n,o);else{var a=n?n(gv(e,s),i,s+"",e,t,o):void 0;a===void 0&&(a=i),pv(e,s,a)}},cz)}function dz(e){return e}function lie(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var hk=Math.max;function cie(e,t,r){return t=hk(t===void 0?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=hk(n.length-t,0),s=Array(i);++o<i;)s[o]=n[t+o];o=-1;for(var a=Array(t+1);++o<t;)a[o]=n[o];return a[t]=r(s),lie(e,this,a)}}function uie(e){return function(){return e}}var die=yh?function(e,t){return yh(e,"toString",{configurable:!0,enumerable:!1,value:uie(t),writable:!0})}:dz,fie=800,hie=16,pie=Date.now;function gie(e){var t=0,r=0;return function(){var n=pie(),o=hie-(n-r);if(r=n,o>0){if(++t>=fie)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var mie=gie(die);function vie(e,t){return mie(cie(e,t,dz),e+"")}function yie(e,t,r){if(!Ws(r))return!1;var n=typeof t;return(n=="number"?jp(r)&&lz(t,r.length):n=="string"&&t in r)?_p(r[t],e):!1}function bie(e){return vie(function(t,r){var n=-1,o=r.length,i=o>1?r[o-1]:void 0,s=o>2?r[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,s&&yie(r[0],r[1],s)&&(i=o<3?void 0:i,o=1),t=Object(t);++n<o;){var a=r[n];a&&e(t,a,n,i)}return t})}var xie=bie(function(e,t,r){uz(e,t,r)}),wie="​",kie={curveBasis:lf,curveBasisClosed:kte,curveBasisOpen:Ste,curveBumpX:YT,curveBumpY:ZT,curveBundle:Cte,curveCardinalClosed:_te,curveCardinalOpen:Bte,curveCardinal:eN,curveCatmullRomClosed:Tte,curveCatmullRomOpen:Nte,curveCatmullRom:rN,curveLinear:ah,curveLinearClosed:jte,curveMonotoneX:lN,curveMonotoneY:cN,curveNatural:dN,curveStep:fN,curveStepAfter:pN,curveStepBefore:hN},Sie=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Cie=T(function(e,t){const r=fz(e,/(?:init\b)|(?:initialize\b)/);let n={};if(Array.isArray(r)){const s=r.map(a=>a.args);Zf(s),n=er(n,[...s])}else n=r.args;if(!n)return;let o=b1(e,t);const i="config";return n[i]!==void 0&&(o==="flowchart-v2"&&(o="flowchart"),n[o]=n[i],delete n[i]),n},"detectInit"),fz=T(function(e,t=null){var r,n;try{const o=new RegExp(`[%]{2}(?![{]${Sie.source})(?=[}][%]{2}).*
263
+ `,"ig");e=e.trim().replace(o,"").replace(/'/gm,'"'),ie.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${e}`);let i;const s=[];for(;(i=Fc.exec(e))!==null;)if(i.index===Fc.lastIndex&&Fc.lastIndex++,i&&!t||t&&((r=i[1])!=null&&r.match(t))||t&&((n=i[2])!=null&&n.match(t))){const a=i[1]?i[1]:i[2],l=i[3]?i[3].trim():i[4]?JSON.parse(i[4].trim()):null;s.push({type:a,args:l})}return s.length===0?{type:e,args:null}:s.length===1?s[0]:s}catch(o){return ie.error(`ERROR: ${o.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),_ie=T(function(e){return e.replace(Fc,"")},"removeDirectives"),Bie=T(function(e,t){for(const[r,n]of t.entries())if(n.match(e))return r;return-1},"isSubstringInArray");function Z1(e,t){if(!e)return t;const r=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return kie[r]??t}T(Z1,"interpolateToCurve");function hz(e,t){const r=e.trim();if(r)return t.securityLevel!=="loose"?$re(r):r}T(hz,"formatUrl");var Tie=T((e,...t)=>{const r=e.split("."),n=r.length-1,o=r[n];let i=window;for(let s=0;s<n;s++)if(i=i[r[s]],!i){ie.error(`Function name: ${e} not found in window`);return}i[o](...t)},"runFunc");function K1(e,t){return!e||!t?0:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}T(K1,"distance");function pz(e){let t,r=0;e.forEach(o=>{r+=K1(o,t),t=o});const n=r/2;return Q1(e,n)}T(pz,"traverseEdge");function gz(e){return e.length===1?e[0]:pz(e)}T(gz,"calcLabelPosition");var pk=T((e,t=2)=>{const r=Math.pow(10,t);return Math.round(e*r)/r},"roundNumber"),Q1=T((e,t)=>{let r,n=t;for(const o of e){if(r){const i=K1(o,r);if(i===0)return r;if(i<n)n-=i;else{const s=n/i;if(s<=0)return r;if(s>=1)return{x:o.x,y:o.y};if(s>0&&s<1)return{x:pk((1-s)*r.x+s*o.x,5),y:pk((1-s)*r.y+s*o.y,5)}}}r=o}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),Nie=T((e,t,r)=>{ie.info(`our points ${JSON.stringify(t)}`),t[0]!==r&&(t=t.reverse());const o=Q1(t,25),i=e?10:5,s=Math.atan2(t[0].y-o.y,t[0].x-o.x),a={x:0,y:0};return a.x=Math.sin(s)*i+(t[0].x+o.x)/2,a.y=-Math.cos(s)*i+(t[0].y+o.y)/2,a},"calcCardinalityPosition");function mz(e,t,r){const n=structuredClone(r);ie.info("our points",n),t!=="start_left"&&t!=="start_right"&&n.reverse();const o=25+e,i=Q1(n,o),s=10+e*.5,a=Math.atan2(n[0].y-i.y,n[0].x-i.x),l={x:0,y:0};return t==="start_left"?(l.x=Math.sin(a+Math.PI)*s+(n[0].x+i.x)/2,l.y=-Math.cos(a+Math.PI)*s+(n[0].y+i.y)/2):t==="end_right"?(l.x=Math.sin(a-Math.PI)*s+(n[0].x+i.x)/2-5,l.y=-Math.cos(a-Math.PI)*s+(n[0].y+i.y)/2-5):t==="end_left"?(l.x=Math.sin(a)*s+(n[0].x+i.x)/2-5,l.y=-Math.cos(a)*s+(n[0].y+i.y)/2-5):(l.x=Math.sin(a)*s+(n[0].x+i.x)/2,l.y=-Math.cos(a)*s+(n[0].y+i.y)/2),l}T(mz,"calcTerminalLabelPosition");function vz(e){let t="",r="";for(const n of e)n!==void 0&&(n.startsWith("color:")||n.startsWith("text-align:")?r=r+n+";":t=t+n+";");return{style:t,labelStyle:r}}T(vz,"getStylesFromArray");var gk=0,jie=T(()=>(gk++,"id-"+Math.random().toString(36).substr(2,12)+"-"+gk),"generateId");function yz(e){let t="";const r="0123456789abcdef",n=r.length;for(let o=0;o<e;o++)t+=r.charAt(Math.floor(Math.random()*n));return t}T(yz,"makeRandomHex");var zie=T(e=>yz(e.length),"random"),Eie=T(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),Rie=T(function(e,t){const r=t.text.replace(Tl.lineBreakRegex," "),[,n]=zp(t.fontSize),o=e.append("text");o.attr("x",t.x),o.attr("y",t.y),o.style("text-anchor",t.anchor),o.style("font-family",t.fontFamily),o.style("font-size",n),o.style("font-weight",t.fontWeight),o.attr("fill",t.fill),t.class!==void 0&&o.attr("class",t.class);const i=o.append("tspan");return i.attr("x",t.x+t.textMargin*2),i.attr("fill",t.fill),i.text(r),o},"drawSimpleText"),Aie=qu((e,t,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),Tl.lineBreakRegex.test(e)))return e;const n=e.split(" ").filter(Boolean),o=[];let i="";return n.forEach((s,a)=>{const l=ai(`${s} `,r),c=ai(i,r);if(l>t){const{hyphenatedStrings:p,remainingWord:h}=Fie(s,t,"-",r);o.push(i,...p),i=h}else c+l>=t?(o.push(i),i=s):i=[i,s].filter(Boolean).join(" ");a+1===n.length&&o.push(i)}),o.filter(s=>s!=="").join(r.joinWith)},(e,t,r)=>`${e}${t}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),Fie=qu((e,t,r="-",n)=>{n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},n);const o=[...e],i=[];let s="";return o.forEach((a,l)=>{const c=`${s}${a}`;if(ai(c,n)>=t){const d=l+1,p=o.length===d,h=`${c}${r}`;i.push(p?c:h),s=""}else s=c}),{hyphenatedStrings:i,remainingWord:s}},(e,t,r="-",n)=>`${e}${t}${r}${n.fontSize}${n.fontWeight}${n.fontFamily}`);function bz(e,t){return J1(e,t).height}T(bz,"calculateTextHeight");function ai(e,t){return J1(e,t).width}T(ai,"calculateTextWidth");var J1=qu((e,t)=>{const{fontSize:r=12,fontFamily:n="Arial",fontWeight:o=400}=t;if(!e)return{width:0,height:0};const[,i]=zp(r),s=["sans-serif",n],a=e.split(Tl.lineBreakRegex),l=[],c=lt("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const u=c.append("svg");for(const p of s){let h=0;const m={width:0,height:0,lineHeight:0};for(const g of a){const y=Eie();y.text=g||wie;const v=Rie(u,y).style("font-size",i).style("font-weight",o).style("font-family",p),b=(v._groups||v)[0][0].getBBox();if(b.width===0&&b.height===0)throw new Error("svg element not in render tree");m.width=Math.round(Math.max(m.width,b.width)),h=Math.round(b.height),m.height+=h,m.lineHeight=Math.round(Math.max(m.lineHeight,h))}l.push(m)}u.remove();const d=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[d]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),La,Pie=(La=class{constructor(t=!1,r){this.count=0,this.count=r?r.length:0,this.next=t?()=>this.count++:()=>Date.now()}},T(La,"InitIDGenerator"),La),Nd,Iie=T(function(e){return Nd=Nd||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Nd.innerHTML=e,unescape(Nd.textContent)},"entityDecode");function eb(e){return"str"in e}T(eb,"isDetailedError");var Mie=T((e,t,r,n)=>{var i;if(!n)return;const o=(i=e.node())==null?void 0:i.getBBox();o&&e.append("text").text(n).attr("text-anchor","middle").attr("x",o.x+o.width/2).attr("y",-r).attr("class",t)},"insertTitle"),zp=T(e=>{if(typeof e=="number")return[e,e+"px"];const t=parseInt(e??"",10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]},"parseFontSize");function tb(e,t){return xie({},e,t)}T(tb,"cleanAndMerge");var Kn={assignWithDepth:er,wrapLabel:Aie,calculateTextHeight:bz,calculateTextWidth:ai,calculateTextDimensions:J1,cleanAndMerge:tb,detectInit:Cie,detectDirective:fz,isSubstringInArray:Bie,interpolateToCurve:Z1,calcLabelPosition:gz,calcCardinalityPosition:Nie,calcTerminalLabelPosition:mz,formatUrl:hz,getStylesFromArray:vz,generateId:jie,random:zie,runFunc:Tie,entityDecode:Iie,insertTitle:Mie,isLabelCoordinateInPath:xz,parseFontSize:zp,InitIDGenerator:Pie},Die=T(function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/#\w+;/g,function(r){const n=r.substring(1,r.length-1);return/^\+?\d+$/.test(n)?"fl°°"+n+"¶ß":"fl°"+n+"¶ß"}),t},"encodeEntities"),Gs=T(function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),Kde=T((e,t,{counter:r=0,prefix:n,suffix:o},i)=>i||`${n?`${n}_`:""}${e}_${t}_${r}${o?`_${o}`:""}`,"getEdgeId");function Nr(e){return e??null}T(Nr,"handleUndefinedAttr");function xz(e,t){const r=Math.round(e.x),n=Math.round(e.y),o=t.replace(/(\d+\.\d+)/g,i=>Math.round(parseFloat(i)).toString());return o.includes(r.toString())||o.includes(n.toString())}T(xz,"isLabelCoordinateInPath");const Lie=Object.freeze({left:0,top:0,width:16,height:16}),wh=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),wz=Object.freeze({...Lie,...wh}),Oie=Object.freeze({...wz,body:"",hidden:!1}),qie=Object.freeze({width:null,height:null}),$ie=Object.freeze({...qie,...wh}),Hie=(e,t,r,n="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;n=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const a=o.pop(),l=o.pop(),c={provider:o.length>0?o[0]:n,prefix:l,name:a};return em(c)?c:null}const i=o[0],s=i.split("-");if(s.length>1){const a={provider:n,prefix:s.shift(),name:s.join("-")};return em(a)?a:null}if(r&&n===""){const a={provider:n,prefix:"",name:i};return em(a,r)?a:null}return null},em=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1;function Wie(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const n=((e.rotate||0)+(t.rotate||0))%4;return n&&(r.rotate=n),r}function mk(e,t){const r=Wie(e,t);for(const n in Oie)n in wh?n in e&&!(n in r)&&(r[n]=wh[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function Vie(e,t){const r=e.icons,n=e.aliases||Object.create(null),o=Object.create(null);function i(s){if(r[s])return o[s]=[];if(!(s in o)){o[s]=null;const a=n[s]&&n[s].parent,l=a&&i(a);l&&(o[s]=[a].concat(l))}return o[s]}return(t||Object.keys(r).concat(Object.keys(n))).forEach(i),o}function vk(e,t,r){const n=e.icons,o=e.aliases||Object.create(null);let i={};function s(a){i=mk(n[a]||o[a],i)}return s(t),r.forEach(s),mk(e,i)}function Uie(e,t){if(e.icons[t])return vk(e,t,[]);const r=Vie(e,[t])[t];return r?vk(e,t,r):null}const Gie=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Xie=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function yk(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const n=e.split(Gie);if(n===null||!n.length)return e;const o=[];let i=n.shift(),s=Xie.test(i);for(;;){if(s){const a=parseFloat(i);isNaN(a)?o.push(i):o.push(Math.ceil(a*t*r)/r)}else o.push(i);if(i=n.shift(),i===void 0)return o.join("");s=!s}}function Yie(e,t="defs"){let r="";const n=e.indexOf("<"+t);for(;n>=0;){const o=e.indexOf(">",n),i=e.indexOf("</"+t);if(o===-1||i===-1)break;const s=e.indexOf(">",i);if(s===-1)break;r+=e.slice(o+1,i).trim(),e=e.slice(0,n).trim()+e.slice(s+1)}return{defs:r,content:e}}function Zie(e,t){return e?"<defs>"+e+"</defs>"+t:t}function Kie(e,t,r){const n=Yie(e);return Zie(n.defs,t+n.content+r)}const Qie=e=>e==="unset"||e==="undefined"||e==="none";function Jie(e,t){const r={...wz,...e},n={...$ie,...t},o={left:r.left,top:r.top,width:r.width,height:r.height};let i=r.body;[r,n].forEach(g=>{const y=[],v=g.hFlip,b=g.vFlip;let x=g.rotate;v?b?x+=2:(y.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),y.push("scale(-1 1)"),o.top=o.left=0):b&&(y.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),y.push("scale(1 -1)"),o.top=o.left=0);let k;switch(x<0&&(x-=Math.floor(x/4)*4),x=x%4,x){case 1:k=o.height/2+o.top,y.unshift("rotate(90 "+k.toString()+" "+k.toString()+")");break;case 2:y.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:k=o.width/2+o.left,y.unshift("rotate(-90 "+k.toString()+" "+k.toString()+")");break}x%2===1&&(o.left!==o.top&&(k=o.left,o.left=o.top,o.top=k),o.width!==o.height&&(k=o.width,o.width=o.height,o.height=k)),y.length&&(i=Kie(i,'<g transform="'+y.join(" ")+'">',"</g>"))});const s=n.width,a=n.height,l=o.width,c=o.height;let u,d;s===null?(d=a===null?"1em":a==="auto"?c:a,u=yk(d,l/c)):(u=s==="auto"?l:s,d=a===null?yk(u,c/l):a==="auto"?c:a);const p={},h=(g,y)=>{Qie(y)||(p[g]=y.toString())};h("width",u),h("height",d);const m=[o.left,o.top,l,c];return p.viewBox=m.join(" "),{attributes:p,viewBox:m,body:i}}const ese=/\sid="(\S+)"/g,bk=new Map;function tse(e){e=e.replace(/[0-9]+$/,"")||"a";const t=bk.get(e)||0;return bk.set(e,t+1),t?`${e}${t}`:e}function rse(e){const t=[];let r;for(;r=ese.exec(e);)t.push(r[1]);if(!t.length)return e;const n="suffix"+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(o=>{const i=tse(o),s=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+i+n+"$3")}),e=e.replace(new RegExp(n,"g"),""),e}function nse(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in t)r+=" "+n+'="'+t[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}function rb(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Xs=rb();function kz(e){Xs=e}var Mc={exec:()=>null};function ut(e,t=""){let r=typeof e=="string"?e:e.source,n={replace:(o,i)=>{let s=typeof i=="string"?i:i.source;return s=s.replace(Mr.caret,"$1"),r=r.replace(o,s),n},getRegex:()=>new RegExp(r,t)};return n}var ose=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),Mr={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+));?/ig,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})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\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")},ise=/^(?:[ \t]*(?:\n|$))+/,sse=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ase=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Hu=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,lse=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,nb=/(?:[*+-]|\d{1,9}[.)])/,Sz=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Cz=ut(Sz).replace(/bull/g,nb).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(),cse=ut(Sz).replace(/bull/g,nb).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(),ob=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,use=/^[^\n]+/,ib=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,dse=ut(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",ib).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),fse=ut(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,nb).getRegex(),Ep="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",sb=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,hse=ut("^ {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[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",sb).replace("tag",Ep).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),_z=ut(ob).replace("hr",Hu).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",Ep).getRegex(),pse=ut(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",_z).getRegex(),ab={blockquote:pse,code:sse,def:dse,fences:ase,heading:lse,hr:Hu,html:hse,lheading:Cz,list:fse,newline:ise,paragraph:_z,table:Mc,text:use},xk=ut("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Hu).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\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",Ep).getRegex(),gse={...ab,lheading:cse,table:xk,paragraph:ut(ob).replace("hr",Hu).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",xk).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",Ep).getRegex()},mse={...ab,html:ut(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",sb).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:Mc,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ut(ob).replace("hr",Hu).replace("heading",` *#{1,6} *[^
264
+ ]`).replace("lheading",Cz).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},vse=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,yse=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Bz=/^( {2,}|\\)\n(?!\s*$)/,bse=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Rp=/[\p{P}\p{S}]/u,lb=/[\s\p{P}\p{S}]/u,Tz=/[^\s\p{P}\p{S}]/u,xse=ut(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,lb).getRegex(),Nz=/(?!~)[\p{P}\p{S}]/u,wse=/(?!~)[\s\p{P}\p{S}]/u,kse=/(?:[^\s\p{P}\p{S}]|~)/u,Sse=ut(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",ose?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),jz=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Cse=ut(jz,"u").replace(/punct/g,Rp).getRegex(),_se=ut(jz,"u").replace(/punct/g,Nz).getRegex(),zz="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Bse=ut(zz,"gu").replace(/notPunctSpace/g,Tz).replace(/punctSpace/g,lb).replace(/punct/g,Rp).getRegex(),Tse=ut(zz,"gu").replace(/notPunctSpace/g,kse).replace(/punctSpace/g,wse).replace(/punct/g,Nz).getRegex(),Nse=ut("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Tz).replace(/punctSpace/g,lb).replace(/punct/g,Rp).getRegex(),jse=ut(/\\(punct)/,"gu").replace(/punct/g,Rp).getRegex(),zse=ut(/^<(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(),Ese=ut(sb).replace("(?:-->|$)","-->").getRegex(),Rse=ut("^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",Ese).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),kh=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Ase=ut(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",kh).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Ez=ut(/^!?\[(label)\]\[(ref)\]/).replace("label",kh).replace("ref",ib).getRegex(),Rz=ut(/^!?\[(ref)\](?:\[\])?/).replace("ref",ib).getRegex(),Fse=ut("reflink|nolink(?!\\()","g").replace("reflink",Ez).replace("nolink",Rz).getRegex(),wk=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,cb={_backpedal:Mc,anyPunctuation:jse,autolink:zse,blockSkip:Sse,br:Bz,code:yse,del:Mc,emStrongLDelim:Cse,emStrongRDelimAst:Bse,emStrongRDelimUnd:Nse,escape:vse,link:Ase,nolink:Rz,punctuation:xse,reflink:Ez,reflinkSearch:Fse,tag:Rse,text:bse,url:Mc},Pse={...cb,link:ut(/^!?\[(label)\]\((.*?)\)/).replace("label",kh).getRegex(),reflink:ut(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",kh).getRegex()},mv={...cb,emStrongRDelimAst:Tse,emStrongLDelim:_se,url:ut(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",wk).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\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:ut(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",wk).getRegex()},Ise={...mv,br:ut(Bz).replace("{2,}","*").getRegex(),text:ut(mv.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},jd={normal:ab,gfm:gse,pedantic:mse},Jl={normal:cb,gfm:mv,breaks:Ise,pedantic:Pse},Mse={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},kk=e=>Mse[e];function vo(e,t){if(t){if(Mr.escapeTest.test(e))return e.replace(Mr.escapeReplace,kk)}else if(Mr.escapeTestNoEncode.test(e))return e.replace(Mr.escapeReplaceNoEncode,kk);return e}function Sk(e){try{e=encodeURI(e).replace(Mr.percentDecode,"%")}catch{return null}return e}function Ck(e,t){var i;let r=e.replace(Mr.findPipe,(s,a,l)=>{let c=!1,u=a;for(;--u>=0&&l[u]==="\\";)c=!c;return c?"|":" |"}),n=r.split(Mr.splitPipe),o=0;if(n[0].trim()||n.shift(),n.length>0&&!((i=n.at(-1))!=null&&i.trim())&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;o<n.length;o++)n[o]=n[o].trim().replace(Mr.slashPipe,"|");return n}function ec(e,t,r){let n=e.length;if(n===0)return"";let o=0;for(;o<n&&e.charAt(n-o-1)===t;)o++;return e.slice(0,n-o)}function Dse(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let n=0;n<e.length;n++)if(e[n]==="\\")n++;else if(e[n]===t[0])r++;else if(e[n]===t[1]&&(r--,r<0))return n;return r>0?-2:-1}function _k(e,t,r,n,o){let i=t.href,s=t.title||null,a=e[1].replace(o.other.outputLinkReplace,"$1");n.state.inLink=!0;let l={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:i,title:s,text:a,tokens:n.inlineTokens(a)};return n.state.inLink=!1,l}function Lse(e,t,r){let n=e.match(r.other.indentCodeCompensation);if(n===null)return t;let o=n[1];return t.split(`
265
+ `).map(i=>{let s=i.match(r.other.beginningSpace);if(s===null)return i;let[a]=s;return a.length>=o.length?i.slice(o.length):i}).join(`
266
+ `)}var Sh=class{constructor(t){Oe(this,"options");Oe(this,"rules");Oe(this,"lexer");this.options=t||Xs}space(t){let r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){let r=this.rules.block.code.exec(t);if(r){let n=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?n:ec(n,`
267
+ `)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let n=r[0],o=Lse(n,r[3]||"",this.rules);return{type:"code",raw:n,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:o}}}heading(t){let r=this.rules.block.heading.exec(t);if(r){let n=r[2].trim();if(this.rules.other.endingHash.test(n)){let o=ec(n,"#");(this.options.pedantic||!o||this.rules.other.endingSpaceChar.test(o))&&(n=o.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(t){let r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:ec(r[0],`
268
+ `)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let n=ec(r[0],`
269
+ `).split(`
270
+ `),o="",i="",s=[];for(;n.length>0;){let a=!1,l=[],c;for(c=0;c<n.length;c++)if(this.rules.other.blockquoteStart.test(n[c]))l.push(n[c]),a=!0;else if(!a)l.push(n[c]);else break;n=n.slice(c);let u=l.join(`
271
+ `),d=u.replace(this.rules.other.blockquoteSetextReplace,`
272
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");o=o?`${o}
273
+ ${u}`:u,i=i?`${i}
274
+ ${d}`:d;let p=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(d,s,!0),this.lexer.state.top=p,n.length===0)break;let h=s.at(-1);if((h==null?void 0:h.type)==="code")break;if((h==null?void 0:h.type)==="blockquote"){let m=h,g=m.raw+`
275
+ `+n.join(`
276
+ `),y=this.blockquote(g);s[s.length-1]=y,o=o.substring(0,o.length-m.raw.length)+y.raw,i=i.substring(0,i.length-m.text.length)+y.text;break}else if((h==null?void 0:h.type)==="list"){let m=h,g=m.raw+`
277
+ `+n.join(`
278
+ `),y=this.list(g);s[s.length-1]=y,o=o.substring(0,o.length-h.raw.length)+y.raw,i=i.substring(0,i.length-m.raw.length)+y.raw,n=g.substring(s.at(-1).raw.length).split(`
279
+ `);continue}}return{type:"blockquote",raw:o,tokens:s,text:i}}}list(t){let r=this.rules.block.list.exec(t);if(r){let n=r[1].trim(),o=n.length>1,i={type:"list",raw:"",ordered:o,start:o?+n.slice(0,-1):"",loose:!1,items:[]};n=o?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=o?n:"[*+-]");let s=this.rules.other.listItemRegex(n),a=!1;for(;t;){let c=!1,u="",d="";if(!(r=s.exec(t))||this.rules.block.hr.test(t))break;u=r[0],t=t.substring(u.length);let p=r[2].split(`
280
+ `,1)[0].replace(this.rules.other.listReplaceTabs,b=>" ".repeat(3*b.length)),h=t.split(`
281
+ `,1)[0],m=!p.trim(),g=0;if(this.options.pedantic?(g=2,d=p.trimStart()):m?g=r[1].length+1:(g=r[2].search(this.rules.other.nonSpaceChar),g=g>4?1:g,d=p.slice(g),g+=r[1].length),m&&this.rules.other.blankLine.test(h)&&(u+=h+`
282
+ `,t=t.substring(h.length+1),c=!0),!c){let b=this.rules.other.nextBulletRegex(g),x=this.rules.other.hrRegex(g),k=this.rules.other.fencesBeginRegex(g),S=this.rules.other.headingBeginRegex(g),_=this.rules.other.htmlBeginRegex(g);for(;t;){let N=t.split(`
283
+ `,1)[0],z;if(h=N,this.options.pedantic?(h=h.replace(this.rules.other.listReplaceNesting," "),z=h):z=h.replace(this.rules.other.tabCharGlobal," "),k.test(h)||S.test(h)||_.test(h)||b.test(h)||x.test(h))break;if(z.search(this.rules.other.nonSpaceChar)>=g||!h.trim())d+=`
284
+ `+z.slice(g);else{if(m||p.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||k.test(p)||S.test(p)||x.test(p))break;d+=`
285
+ `+h}!m&&!h.trim()&&(m=!0),u+=N+`
286
+ `,t=t.substring(N.length+1),p=z.slice(g)}}i.loose||(a?i.loose=!0:this.rules.other.doubleBlankLine.test(u)&&(a=!0));let y=null,v;this.options.gfm&&(y=this.rules.other.listIsTask.exec(d),y&&(v=y[0]!=="[ ] ",d=d.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:u,task:!!y,checked:v,loose:!1,text:d,tokens:[]}),i.raw+=u}let l=i.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let c=0;c<i.items.length;c++)if(this.lexer.state.top=!1,i.items[c].tokens=this.lexer.blockTokens(i.items[c].text,[]),!i.loose){let u=i.items[c].tokens.filter(p=>p.type==="space"),d=u.length>0&&u.some(p=>this.rules.other.anyLine.test(p.raw));i.loose=d}if(i.loose)for(let c=0;c<i.items.length;c++)i.items[c].loose=!0;return i}}html(t){let r=this.rules.block.html.exec(t);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(t){let r=this.rules.block.def.exec(t);if(r){let n=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),o=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:n,raw:r[0],href:o,title:i}}}table(t){var a;let r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let n=Ck(r[1]),o=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=(a=r[3])!=null&&a.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
287
+ `):[],s={type:"table",raw:r[0],header:[],align:[],rows:[]};if(n.length===o.length){for(let l of o)this.rules.other.tableAlignRight.test(l)?s.align.push("right"):this.rules.other.tableAlignCenter.test(l)?s.align.push("center"):this.rules.other.tableAlignLeft.test(l)?s.align.push("left"):s.align.push(null);for(let l=0;l<n.length;l++)s.header.push({text:n[l],tokens:this.lexer.inline(n[l]),header:!0,align:s.align[l]});for(let l of i)s.rows.push(Ck(l,s.header.length).map((c,u)=>({text:c,tokens:this.lexer.inline(c),header:!1,align:s.align[u]})));return s}}lheading(t){let r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){let r=this.rules.block.paragraph.exec(t);if(r){let n=r[1].charAt(r[1].length-1)===`
288
+ `?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:n,tokens:this.lexer.inline(n)}}}text(t){let r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){let r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(t){let r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){let r=this.rules.inline.link.exec(t);if(r){let n=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let s=ec(n.slice(0,-1),"\\");if((n.length-s.length)%2===0)return}else{let s=Dse(r[2],"()");if(s===-2)return;if(s>-1){let a=(r[0].indexOf("!")===0?5:4)+r[1].length+s;r[2]=r[2].substring(0,s),r[0]=r[0].substring(0,a).trim(),r[3]=""}}let o=r[2],i="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(o);s&&(o=s[1],i=s[3])}else i=r[3]?r[3].slice(1,-1):"";return o=o.trim(),this.rules.other.startAngleBracket.test(o)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?o=o.slice(1):o=o.slice(1,-1)),_k(r,{href:o&&o.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(t,r){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let o=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=r[o.toLowerCase()];if(!i){let s=n[0].charAt(0);return{type:"text",raw:s,text:s}}return _k(n,i,n[0],this.lexer,this.rules)}}emStrong(t,r,n=""){let o=this.rules.inline.emStrongLDelim.exec(t);if(!(!o||o[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(o[1]||o[2])||!n||this.rules.inline.punctuation.exec(n))){let i=[...o[0]].length-1,s,a,l=i,c=0,u=o[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,r=r.slice(-1*t.length+i);(o=u.exec(r))!=null;){if(s=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!s)continue;if(a=[...s].length,o[3]||o[4]){l+=a;continue}else if((o[5]||o[6])&&i%3&&!((i+a)%3)){c+=a;continue}if(l-=a,l>0)continue;a=Math.min(a,a+l+c);let d=[...o[0]][0].length,p=t.slice(0,i+o.index+d+a);if(Math.min(i,a)%2){let m=p.slice(1,-1);return{type:"em",raw:p,text:m,tokens:this.lexer.inlineTokens(m)}}let h=p.slice(2,-2);return{type:"strong",raw:p,text:h,tokens:this.lexer.inlineTokens(h)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let n=r[2].replace(this.rules.other.newLineCharGlobal," "),o=this.rules.other.nonSpaceChar.test(n),i=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return o&&i&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:r[0],text:n}}}br(t){let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){let r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t){let r=this.rules.inline.autolink.exec(t);if(r){let n,o;return r[2]==="@"?(n=r[1],o="mailto:"+n):(n=r[1],o=n),{type:"link",raw:r[0],text:n,href:o,tokens:[{type:"text",raw:n,text:n}]}}}url(t){var n;let r;if(r=this.rules.inline.url.exec(t)){let o,i;if(r[2]==="@")o=r[0],i="mailto:"+o;else{let s;do s=r[0],r[0]=((n=this.rules.inline._backpedal.exec(r[0]))==null?void 0:n[0])??"";while(s!==r[0]);o=r[0],r[1]==="www."?i="http://"+r[0]:i=r[0]}return{type:"link",raw:r[0],text:o,href:i,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(t){let r=this.rules.inline.text.exec(t);if(r){let n=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:n}}}},Xn=class vv{constructor(t){Oe(this,"tokens");Oe(this,"options");Oe(this,"state");Oe(this,"tokenizer");Oe(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Xs,this.options.tokenizer=this.options.tokenizer||new Sh,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:Mr,block:jd.normal,inline:Jl.normal};this.options.pedantic?(r.block=jd.pedantic,r.inline=Jl.pedantic):this.options.gfm&&(r.block=jd.gfm,this.options.breaks?r.inline=Jl.breaks:r.inline=Jl.gfm),this.tokenizer.rules=r}static get rules(){return{block:jd,inline:Jl}}static lex(t,r){return new vv(r).lex(t)}static lexInline(t,r){return new vv(r).inlineTokens(t)}lex(t){t=t.replace(Mr.carriageReturn,`
289
+ `),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let n=this.inlineQueue[r];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],n=!1){var o,i,s;for(this.options.pedantic&&(t=t.replace(Mr.tabCharGlobal," ").replace(Mr.spaceLine,""));t;){let a;if((i=(o=this.options.extensions)==null?void 0:o.block)!=null&&i.some(c=>(a=c.call({lexer:this},t,r))?(t=t.substring(a.raw.length),r.push(a),!0):!1))continue;if(a=this.tokenizer.space(t)){t=t.substring(a.raw.length);let c=r.at(-1);a.raw.length===1&&c!==void 0?c.raw+=`
290
+ `:r.push(a);continue}if(a=this.tokenizer.code(t)){t=t.substring(a.raw.length);let c=r.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(`
291
+ `)?"":`
292
+ `)+a.raw,c.text+=`
293
+ `+a.text,this.inlineQueue.at(-1).src=c.text):r.push(a);continue}if(a=this.tokenizer.fences(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.heading(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.hr(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.blockquote(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.list(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.html(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.def(t)){t=t.substring(a.raw.length);let c=r.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(`
294
+ `)?"":`
295
+ `)+a.raw,c.text+=`
296
+ `+a.raw,this.inlineQueue.at(-1).src=c.text):this.tokens.links[a.tag]||(this.tokens.links[a.tag]={href:a.href,title:a.title},r.push(a));continue}if(a=this.tokenizer.table(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.lheading(t)){t=t.substring(a.raw.length),r.push(a);continue}let l=t;if((s=this.options.extensions)!=null&&s.startBlock){let c=1/0,u=t.slice(1),d;this.options.extensions.startBlock.forEach(p=>{d=p.call({lexer:this},u),typeof d=="number"&&d>=0&&(c=Math.min(c,d))}),c<1/0&&c>=0&&(l=t.substring(0,c+1))}if(this.state.top&&(a=this.tokenizer.paragraph(l))){let c=r.at(-1);n&&(c==null?void 0:c.type)==="paragraph"?(c.raw+=(c.raw.endsWith(`
297
+ `)?"":`
298
+ `)+a.raw,c.text+=`
299
+ `+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):r.push(a),n=l.length!==t.length,t=t.substring(a.raw.length);continue}if(a=this.tokenizer.text(t)){t=t.substring(a.raw.length);let c=r.at(-1);(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(`
300
+ `)?"":`
301
+ `)+a.raw,c.text+=`
302
+ `+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):r.push(a);continue}if(t){let c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var l,c,u,d,p;let n=t,o=null;if(this.tokens.links){let h=Object.keys(this.tokens.links);if(h.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)h.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,o.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i;for(;(o=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)i=o[2]?o[2].length:0,n=n.slice(0,o.index+i)+"["+"a".repeat(o[0].length-i-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=((c=(l=this.options.hooks)==null?void 0:l.emStrongMask)==null?void 0:c.call({lexer:this},n))??n;let s=!1,a="";for(;t;){s||(a=""),s=!1;let h;if((d=(u=this.options.extensions)==null?void 0:u.inline)!=null&&d.some(g=>(h=g.call({lexer:this},t,r))?(t=t.substring(h.raw.length),r.push(h),!0):!1))continue;if(h=this.tokenizer.escape(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.tag(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.link(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(h.raw.length);let g=r.at(-1);h.type==="text"&&(g==null?void 0:g.type)==="text"?(g.raw+=h.raw,g.text+=h.text):r.push(h);continue}if(h=this.tokenizer.emStrong(t,n,a)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.codespan(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.br(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.del(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.autolink(t)){t=t.substring(h.raw.length),r.push(h);continue}if(!this.state.inLink&&(h=this.tokenizer.url(t))){t=t.substring(h.raw.length),r.push(h);continue}let m=t;if((p=this.options.extensions)!=null&&p.startInline){let g=1/0,y=t.slice(1),v;this.options.extensions.startInline.forEach(b=>{v=b.call({lexer:this},y),typeof v=="number"&&v>=0&&(g=Math.min(g,v))}),g<1/0&&g>=0&&(m=t.substring(0,g+1))}if(h=this.tokenizer.inlineText(m)){t=t.substring(h.raw.length),h.raw.slice(-1)!=="_"&&(a=h.raw.slice(-1)),s=!0;let g=r.at(-1);(g==null?void 0:g.type)==="text"?(g.raw+=h.raw,g.text+=h.text):r.push(h);continue}if(t){let g="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(g);break}else throw new Error(g)}}return r}},Ch=class{constructor(t){Oe(this,"options");Oe(this,"parser");this.options=t||Xs}space(t){return""}code({text:t,lang:r,escaped:n}){var s;let o=(s=(r||"").match(Mr.notSpaceStart))==null?void 0:s[0],i=t.replace(Mr.endingNewline,"")+`
303
+ `;return o?'<pre><code class="language-'+vo(o)+'">'+(n?i:vo(i,!0))+`</code></pre>
304
+ `:"<pre><code>"+(n?i:vo(i,!0))+`</code></pre>
305
+ `}blockquote({tokens:t}){return`<blockquote>
306
+ ${this.parser.parse(t)}</blockquote>
307
+ `}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:r}){return`<h${r}>${this.parser.parseInline(t)}</h${r}>
308
+ `}hr(t){return`<hr>
309
+ `}list(t){let r=t.ordered,n=t.start,o="";for(let a=0;a<t.items.length;a++){let l=t.items[a];o+=this.listitem(l)}let i=r?"ol":"ul",s=r&&n!==1?' start="'+n+'"':"";return"<"+i+s+`>
310
+ `+o+"</"+i+`>
311
+ `}listitem(t){var n;let r="";if(t.task){let o=this.checkbox({checked:!!t.checked});t.loose?((n=t.tokens[0])==null?void 0:n.type)==="paragraph"?(t.tokens[0].text=o+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=o+" "+vo(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:o+" ",text:o+" ",escaped:!0}):r+=o+" "}return r+=this.parser.parse(t.tokens,!!t.loose),`<li>${r}</li>
312
+ `}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
313
+ `}table(t){let r="",n="";for(let i=0;i<t.header.length;i++)n+=this.tablecell(t.header[i]);r+=this.tablerow({text:n});let o="";for(let i=0;i<t.rows.length;i++){let s=t.rows[i];n="";for(let a=0;a<s.length;a++)n+=this.tablecell(s[a]);o+=this.tablerow({text:n})}return o&&(o=`<tbody>${o}</tbody>`),`<table>
314
+ <thead>
315
+ `+r+`</thead>
316
+ `+o+`</table>
317
+ `}tablerow({text:t}){return`<tr>
318
+ ${t}</tr>
319
+ `}tablecell(t){let r=this.parser.parseInline(t.tokens),n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+r+`</${n}>
320
+ `}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${vo(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:r,tokens:n}){let o=this.parser.parseInline(n),i=Sk(t);if(i===null)return o;t=i;let s='<a href="'+t+'"';return r&&(s+=' title="'+vo(r)+'"'),s+=">"+o+"</a>",s}image({href:t,title:r,text:n,tokens:o}){o&&(n=this.parser.parseInline(o,this.parser.textRenderer));let i=Sk(t);if(i===null)return vo(n);t=i;let s=`<img src="${t}" alt="${n}"`;return r&&(s+=` title="${vo(r)}"`),s+=">",s}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:vo(t.text)}},ub=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}},Yn=class yv{constructor(t){Oe(this,"options");Oe(this,"renderer");Oe(this,"textRenderer");this.options=t||Xs,this.options.renderer=this.options.renderer||new Ch,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ub}static parse(t,r){return new yv(r).parse(t)}static parseInline(t,r){return new yv(r).parseInline(t)}parse(t,r=!0){var o,i;let n="";for(let s=0;s<t.length;s++){let a=t[s];if((i=(o=this.options.extensions)==null?void 0:o.renderers)!=null&&i[a.type]){let c=a,u=this.options.extensions.renderers[c.type].call({parser:this},c);if(u!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(c.type)){n+=u||"";continue}}let l=a;switch(l.type){case"space":{n+=this.renderer.space(l);continue}case"hr":{n+=this.renderer.hr(l);continue}case"heading":{n+=this.renderer.heading(l);continue}case"code":{n+=this.renderer.code(l);continue}case"table":{n+=this.renderer.table(l);continue}case"blockquote":{n+=this.renderer.blockquote(l);continue}case"list":{n+=this.renderer.list(l);continue}case"html":{n+=this.renderer.html(l);continue}case"def":{n+=this.renderer.def(l);continue}case"paragraph":{n+=this.renderer.paragraph(l);continue}case"text":{let c=l,u=this.renderer.text(c);for(;s+1<t.length&&t[s+1].type==="text";)c=t[++s],u+=`
321
+ `+this.renderer.text(c);r?n+=this.renderer.paragraph({type:"paragraph",raw:u,text:u,tokens:[{type:"text",raw:u,text:u,escaped:!0}]}):n+=u;continue}default:{let c='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return n}parseInline(t,r=this.renderer){var o,i;let n="";for(let s=0;s<t.length;s++){let a=t[s];if((i=(o=this.options.extensions)==null?void 0:o.renderers)!=null&&i[a.type]){let c=this.options.extensions.renderers[a.type].call({parser:this},a);if(c!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){n+=c||"";continue}}let l=a;switch(l.type){case"escape":{n+=r.text(l);break}case"html":{n+=r.html(l);break}case"link":{n+=r.link(l);break}case"image":{n+=r.image(l);break}case"strong":{n+=r.strong(l);break}case"em":{n+=r.em(l);break}case"codespan":{n+=r.codespan(l);break}case"br":{n+=r.br(l);break}case"del":{n+=r.del(l);break}case"text":{n+=r.text(l);break}default:{let c='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return n}},Fd,gc=(Fd=class{constructor(t){Oe(this,"options");Oe(this,"block");this.options=t||Xs}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?Xn.lex:Xn.lexInline}provideParser(){return this.block?Yn.parse:Yn.parseInline}},Oe(Fd,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Oe(Fd,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Fd),Ose=class{constructor(...t){Oe(this,"defaults",rb());Oe(this,"options",this.setOptions);Oe(this,"parse",this.parseMarkdown(!0));Oe(this,"parseInline",this.parseMarkdown(!1));Oe(this,"Parser",Yn);Oe(this,"Renderer",Ch);Oe(this,"TextRenderer",ub);Oe(this,"Lexer",Xn);Oe(this,"Tokenizer",Sh);Oe(this,"Hooks",gc);this.use(...t)}walkTokens(t,r){var o,i;let n=[];for(let s of t)switch(n=n.concat(r.call(this,s)),s.type){case"table":{let a=s;for(let l of a.header)n=n.concat(this.walkTokens(l.tokens,r));for(let l of a.rows)for(let c of l)n=n.concat(this.walkTokens(c.tokens,r));break}case"list":{let a=s;n=n.concat(this.walkTokens(a.items,r));break}default:{let a=s;(i=(o=this.defaults.extensions)==null?void 0:o.childTokens)!=null&&i[a.type]?this.defaults.extensions.childTokens[a.type].forEach(l=>{let c=a[l].flat(1/0);n=n.concat(this.walkTokens(c,r))}):a.tokens&&(n=n.concat(this.walkTokens(a.tokens,r)))}}return n}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(n=>{let o={...n};if(o.async=this.defaults.async||o.async||!1,n.extensions&&(n.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){let s=r.renderers[i.name];s?r.renderers[i.name]=function(...a){let l=i.renderer.apply(this,a);return l===!1&&(l=s.apply(this,a)),l}:r.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=r[i.level];s?s.unshift(i.tokenizer):r[i.level]=[i.tokenizer],i.start&&(i.level==="block"?r.startBlock?r.startBlock.push(i.start):r.startBlock=[i.start]:i.level==="inline"&&(r.startInline?r.startInline.push(i.start):r.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(r.childTokens[i.name]=i.childTokens)}),o.extensions=r),n.renderer){let i=this.defaults.renderer||new Ch(this.defaults);for(let s in n.renderer){if(!(s in i))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let a=s,l=n.renderer[a],c=i[a];i[a]=(...u)=>{let d=l.apply(i,u);return d===!1&&(d=c.apply(i,u)),d||""}}o.renderer=i}if(n.tokenizer){let i=this.defaults.tokenizer||new Sh(this.defaults);for(let s in n.tokenizer){if(!(s in i))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let a=s,l=n.tokenizer[a],c=i[a];i[a]=(...u)=>{let d=l.apply(i,u);return d===!1&&(d=c.apply(i,u)),d}}o.tokenizer=i}if(n.hooks){let i=this.defaults.hooks||new gc;for(let s in n.hooks){if(!(s in i))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let a=s,l=n.hooks[a],c=i[a];gc.passThroughHooks.has(s)?i[a]=u=>{if(this.defaults.async&&gc.passThroughHooksRespectAsync.has(s))return(async()=>{let p=await l.call(i,u);return c.call(i,p)})();let d=l.call(i,u);return c.call(i,d)}:i[a]=(...u)=>{if(this.defaults.async)return(async()=>{let p=await l.apply(i,u);return p===!1&&(p=await c.apply(i,u)),p})();let d=l.apply(i,u);return d===!1&&(d=c.apply(i,u)),d}}o.hooks=i}if(n.walkTokens){let i=this.defaults.walkTokens,s=n.walkTokens;o.walkTokens=function(a){let l=[];return l.push(s.call(this,a)),i&&(l=l.concat(i.call(this,a))),l}}this.defaults={...this.defaults,...o}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return Xn.lex(t,r??this.defaults)}parser(t,r){return Yn.parse(t,r??this.defaults)}parseMarkdown(t){return(r,n)=>{let o={...n},i={...this.defaults,...o},s=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&o.async===!1)return s(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(typeof r>"u"||r===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=t),i.async)return(async()=>{let a=i.hooks?await i.hooks.preprocess(r):r,l=await(i.hooks?await i.hooks.provideLexer():t?Xn.lex:Xn.lexInline)(a,i),c=i.hooks?await i.hooks.processAllTokens(l):l;i.walkTokens&&await Promise.all(this.walkTokens(c,i.walkTokens));let u=await(i.hooks?await i.hooks.provideParser():t?Yn.parse:Yn.parseInline)(c,i);return i.hooks?await i.hooks.postprocess(u):u})().catch(s);try{i.hooks&&(r=i.hooks.preprocess(r));let a=(i.hooks?i.hooks.provideLexer():t?Xn.lex:Xn.lexInline)(r,i);i.hooks&&(a=i.hooks.processAllTokens(a)),i.walkTokens&&this.walkTokens(a,i.walkTokens);let l=(i.hooks?i.hooks.provideParser():t?Yn.parse:Yn.parseInline)(a,i);return i.hooks&&(l=i.hooks.postprocess(l)),l}catch(a){return s(a)}}}onError(t,r){return n=>{if(n.message+=`
322
+ Please report this to https://github.com/markedjs/marked.`,t){let o="<p>An error occurred:</p><pre>"+vo(n.message+"",!0)+"</pre>";return r?Promise.resolve(o):o}if(r)return Promise.reject(n);throw n}}},Ds=new Ose;function ht(e,t){return Ds.parse(e,t)}ht.options=ht.setOptions=function(e){return Ds.setOptions(e),ht.defaults=Ds.defaults,kz(ht.defaults),ht};ht.getDefaults=rb;ht.defaults=Xs;ht.use=function(...e){return Ds.use(...e),ht.defaults=Ds.defaults,kz(ht.defaults),ht};ht.walkTokens=function(e,t){return Ds.walkTokens(e,t)};ht.parseInline=Ds.parseInline;ht.Parser=Yn;ht.parser=Yn.parse;ht.Renderer=Ch;ht.TextRenderer=ub;ht.Lexer=Xn;ht.lexer=Xn.lex;ht.Tokenizer=Sh;ht.Hooks=gc;ht.parse=ht;ht.options;ht.setOptions;ht.use;ht.walkTokens;ht.parseInline;Yn.parse;Xn.lex;function Az(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Array.from(typeof e=="string"?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var o=n.reduce(function(a,l){var c=l.match(/\n([\t ]+|(?!\s).)/g);return c?a.concat(c.map(function(u){var d,p;return(p=(d=u.match(/[\t ]/g))===null||d===void 0?void 0:d.length)!==null&&p!==void 0?p:0})):a},[]);if(o.length){var i=new RegExp(`
323
+ [ ]{`+Math.min.apply(Math,o)+"}","g");n=n.map(function(a){return a.replace(i,`
324
+ `)})}n[0]=n[0].replace(/^\r?\n/,"");var s=n[0];return t.forEach(function(a,l){var c=s.match(/(?:^|\n)( *)$/),u=c?c[1]:"",d=a;typeof a=="string"&&a.includes(`
325
+ `)&&(d=String(a).split(`
326
+ `).map(function(p,h){return h===0?p:""+u+p}).join(`
327
+ `)),s+=d+n[l+1]}),s}var qse={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},bv=new Map,Fz=new Map,$se=T(e=>{for(const t of e){if(!t.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(ie.debug("Registering icon pack:",t.name),"loader"in t)Fz.set(t.name,t.loader);else if("icons"in t)bv.set(t.name,t.icons);else throw ie.error("Invalid icon loader:",t),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),Pz=T(async(e,t)=>{const r=Hie(e,!0,t!==void 0);if(!r)throw new Error(`Invalid icon name: ${e}`);const n=r.prefix||t;if(!n)throw new Error(`Icon name must contain a prefix: ${e}`);let o=bv.get(n);if(!o){const s=Fz.get(n);if(!s)throw new Error(`Icon set not found: ${r.prefix}`);try{o={...await s(),prefix:n},bv.set(n,o)}catch(a){throw ie.error(a),new Error(`Failed to load icon set: ${r.prefix}`)}}const i=Uie(o,r.name);if(!i)throw new Error(`Icon not found: ${e}`);return i},"getRegisteredIconData"),Hse=T(async e=>{try{return await Pz(e),!0}catch{return!1}},"isIconAvailable"),Wu=T(async(e,t,r)=>{let n;try{n=await Pz(e,t==null?void 0:t.fallbackPrefix)}catch(s){ie.error(s),n=qse}const o=Jie(n,t),i=nse(rse(o.body),{...o.attributes,...r});return Mn(i,Br())},"getIconSVG");function Iz(e,{markdownAutoWrap:t}){const n=e.replace(/<br\/>/g,`
328
+ `).replace(/\n{2,}/g,`
329
+ `),o=Az(n);return t===!1?o.replace(/ /g,"&nbsp;"):o}T(Iz,"preprocessMarkdown");function Mz(e,t={}){const r=Iz(e,t),n=ht.lexer(r),o=[[]];let i=0;function s(a,l="normal"){a.type==="text"?a.text.split(`
330
+ `).forEach((u,d)=>{d!==0&&(i++,o.push([])),u.split(" ").forEach(p=>{p=p.replace(/&#39;/g,"'"),p&&o[i].push({content:p,type:l})})}):a.type==="strong"||a.type==="em"?a.tokens.forEach(c=>{s(c,a.type)}):a.type==="html"&&o[i].push({content:a.text,type:"normal"})}return T(s,"processNode"),n.forEach(a=>{var l;a.type==="paragraph"?(l=a.tokens)==null||l.forEach(c=>{s(c)}):a.type==="html"?o[i].push({content:a.text,type:"normal"}):o[i].push({content:a.raw,type:"normal"})}),o}T(Mz,"markdownToLines");function Dz(e,{markdownAutoWrap:t}={}){const r=ht.lexer(e);function n(o){var i,s,a;return o.type==="text"?t===!1?o.text.replace(/\n */g,"<br/>").replace(/ /g,"&nbsp;"):o.text.replace(/\n */g,"<br/>"):o.type==="strong"?`<strong>${(i=o.tokens)==null?void 0:i.map(n).join("")}</strong>`:o.type==="em"?`<em>${(s=o.tokens)==null?void 0:s.map(n).join("")}</em>`:o.type==="paragraph"?`<p>${(a=o.tokens)==null?void 0:a.map(n).join("")}</p>`:o.type==="space"?"":o.type==="html"?`${o.text}`:o.type==="escape"?o.text:(ie.warn(`Unsupported markdown: ${o.type}`),o.raw)}return T(n,"output"),r.map(n).join("")}T(Dz,"markdownToHTML");function Lz(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(t=>t.segment):[...e]}T(Lz,"splitTextToChars");function Oz(e,t){const r=Lz(t.content);return db(e,[],r,t.type)}T(Oz,"splitWordToFitWidth");function db(e,t,r,n){if(r.length===0)return[{content:t.join(""),type:n},{content:"",type:n}];const[o,...i]=r,s=[...t,o];return e([{content:s.join(""),type:n}])?db(e,s,i,n):(t.length===0&&o&&(t.push(o),r.shift()),[{content:t.join(""),type:n},{content:r.join(""),type:n}])}T(db,"splitWordToFitWidthRecursion");function qz(e,t){if(e.some(({content:r})=>r.includes(`
331
+ `)))throw new Error("splitLineToFitWidth does not support newlines in the line");return _h(e,t)}T(qz,"splitLineToFitWidth");function _h(e,t,r=[],n=[]){if(e.length===0)return n.length>0&&r.push(n),r.length>0?r:[];let o="";e[0].content===" "&&(o=" ",e.shift());const i=e.shift()??{content:" ",type:"normal"},s=[...n];if(o!==""&&s.push({content:o,type:"normal"}),s.push(i),t(s))return _h(e,t,r,s);if(n.length>0)r.push(n),e.unshift(i);else if(i.content){const[a,l]=Oz(t,i);r.push([a]),l.content&&e.unshift(l)}return _h(e,t,r)}T(_h,"splitLineToFitWidthRecursion");function xv(e,t){t&&e.attr("style",t)}T(xv,"applyStyle");async function $z(e,t,r,n,o=!1,i=Br()){const s=e.append("foreignObject");s.attr("width",`${10*r}px`),s.attr("height",`${10*r}px`);const a=s.append("xhtml:div"),l=il(t.label)?await x1(t.label.replace(Tl.lineBreakRegex,`
332
+ `),i):Mn(t.label,i),c=t.isNode?"nodeLabel":"edgeLabel",u=a.append("span");u.html(l),xv(u,t.labelStyle),u.attr("class",`${c} ${n}`),xv(a,t.labelStyle),a.style("display","table-cell"),a.style("white-space","nowrap"),a.style("line-height","1.5"),a.style("max-width",r+"px"),a.style("text-align","center"),a.attr("xmlns","http://www.w3.org/1999/xhtml"),o&&a.attr("class","labelBkg");let d=a.node().getBoundingClientRect();return d.width===r&&(a.style("display","table"),a.style("white-space","break-spaces"),a.style("width",r+"px"),d=a.node().getBoundingClientRect()),s.node()}T($z,"addHtmlSpan");function Ap(e,t,r){return e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*r-.1+"em").attr("dy",r+"em")}T(Ap,"createTspan");function Hz(e,t,r){const n=e.append("text"),o=Ap(n,1,t);Fp(o,r);const i=o.node().getComputedTextLength();return n.remove(),i}T(Hz,"computeWidthOfText");function Wse(e,t,r){var s;const n=e.append("text"),o=Ap(n,1,t);Fp(o,[{content:r,type:"normal"}]);const i=(s=o.node())==null?void 0:s.getBoundingClientRect();return i&&n.remove(),i}T(Wse,"computeDimensionOfText");function Wz(e,t,r,n=!1){const i=t.append("g"),s=i.insert("rect").attr("class","background").attr("style","stroke: none"),a=i.append("text").attr("y","-10.1");let l=0;for(const c of r){const u=T(p=>Hz(i,1.1,p)<=e,"checkWidth"),d=u(c)?[c]:qz(c,u);for(const p of d){const h=Ap(a,l,1.1);Fp(h,p),l++}}if(n){const c=a.node().getBBox(),u=2;return s.attr("x",c.x-u).attr("y",c.y-u).attr("width",c.width+2*u).attr("height",c.height+2*u),i.node()}else return a.node()}T(Wz,"createFormattedText");function Fp(e,t){e.text(""),t.forEach((r,n)=>{const o=e.append("tspan").attr("font-style",r.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",r.type==="strong"?"bold":"normal");n===0?o.text(r.content):o.text(" "+r.content)})}T(Fp,"updateTextContentAndStyles");async function Vz(e,t={}){const r=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(o,i,s)=>(r.push((async()=>{const a=`${i}:${s}`;return await Hse(a)?await Wu(a,void 0,{class:"label-icon"}):`<i class='${Mn(o,t).replace(":"," ")}'></i>`})()),o));const n=await Promise.all(r);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>n.shift()??"")}T(Vz,"replaceIconSubstring");var Qi=T(async(e,t="",{style:r="",isTitle:n=!1,classes:o="",useHtmlLabels:i=!0,isNode:s=!0,width:a=200,addSvgBackground:l=!1}={},c)=>{if(ie.debug("XYZ createText",t,r,n,o,i,s,"addSvgBackground: ",l),i){const u=Dz(t,c),d=await Vz(Gs(u),c),p=t.replace(/\\\\/g,"\\"),h={isNode:s,label:il(t)?p:d,labelStyle:r.replace("fill:","color:")};return await $z(e,h,a,o,l,c)}else{const u=t.replace(/<br\s*\/?>/g,"<br/>"),d=Mz(u.replace("<br>","<br/>"),c),p=Wz(a,e,d,t?l:!1);if(s){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));const h=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");lt(p).attr("style",h)}else{const h=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");lt(p).select("rect").attr("style",h.replace(/background:/g,"fill:"));const m=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");lt(p).select("text").attr("style",m)}return p}},"createText");function tm(e,t,r){if(e&&e.length){const[n,o]=t,i=Math.PI/180*r,s=Math.cos(i),a=Math.sin(i);for(const l of e){const[c,u]=l;l[0]=(c-n)*s-(u-o)*a+n,l[1]=(c-n)*a+(u-o)*s+o}}}function Vse(e,t){return e[0]===t[0]&&e[1]===t[1]}function Use(e,t,r,n=1){const o=r,i=Math.max(t,.1),s=e[0]&&e[0][0]&&typeof e[0][0]=="number"?[e]:e,a=[0,0];if(o)for(const c of s)tm(c,a,o);const l=function(c,u,d){const p=[];for(const b of c){const x=[...b];Vse(x[0],x[x.length-1])||x.push([x[0][0],x[0][1]]),x.length>2&&p.push(x)}const h=[];u=Math.max(u,.1);const m=[];for(const b of p)for(let x=0;x<b.length-1;x++){const k=b[x],S=b[x+1];if(k[1]!==S[1]){const _=Math.min(k[1],S[1]);m.push({ymin:_,ymax:Math.max(k[1],S[1]),x:_===k[1]?k[0]:S[0],islope:(S[0]-k[0])/(S[1]-k[1])})}}if(m.sort((b,x)=>b.ymin<x.ymin?-1:b.ymin>x.ymin?1:b.x<x.x?-1:b.x>x.x?1:b.ymax===x.ymax?0:(b.ymax-x.ymax)/Math.abs(b.ymax-x.ymax)),!m.length)return h;let g=[],y=m[0].ymin,v=0;for(;g.length||m.length;){if(m.length){let b=-1;for(let x=0;x<m.length&&!(m[x].ymin>y);x++)b=x;m.splice(0,b+1).forEach(x=>{g.push({s:y,edge:x})})}if(g=g.filter(b=>!(b.edge.ymax<=y)),g.sort((b,x)=>b.edge.x===x.edge.x?0:(b.edge.x-x.edge.x)/Math.abs(b.edge.x-x.edge.x)),(d!==1||v%u==0)&&g.length>1)for(let b=0;b<g.length;b+=2){const x=b+1;if(x>=g.length)break;const k=g[b].edge,S=g[x].edge;h.push([[Math.round(k.x),y],[Math.round(S.x),y]])}y+=d,g.forEach(b=>{b.edge.x=b.edge.x+d*b.edge.islope}),v++}return h}(s,i,n);if(o){for(const c of s)tm(c,a,-o);(function(c,u,d){const p=[];c.forEach(h=>p.push(...h)),tm(p,u,d)})(l,a,-o)}return l}function Vu(e,t){var r;const n=t.hachureAngle+90;let o=t.hachureGap;o<0&&(o=4*t.strokeWidth),o=Math.round(Math.max(o,.1));let i=1;return t.roughness>=1&&(((r=t.randomizer)===null||r===void 0?void 0:r.next())||Math.random())>.7&&(i=o),Use(e,o,n,i||1)}class fb{constructor(t){this.helper=t}fillPolygons(t,r){return this._fillPolygons(t,r)}_fillPolygons(t,r){const n=Vu(t,r);return{type:"fillSketch",ops:this.renderLines(n,r)}}renderLines(t,r){const n=[];for(const o of t)n.push(...this.helper.doubleLineOps(o[0][0],o[0][1],o[1][0],o[1][1],r));return n}}function Pp(e){const t=e[0],r=e[1];return Math.sqrt(Math.pow(t[0]-r[0],2)+Math.pow(t[1]-r[1],2))}class Gse extends fb{fillPolygons(t,r){let n=r.hachureGap;n<0&&(n=4*r.strokeWidth),n=Math.max(n,.1);const o=Vu(t,Object.assign({},r,{hachureGap:n})),i=Math.PI/180*r.hachureAngle,s=[],a=.5*n*Math.cos(i),l=.5*n*Math.sin(i);for(const[c,u]of o)Pp([c,u])&&s.push([[c[0]-a,c[1]+l],[...u]],[[c[0]+a,c[1]-l],[...u]]);return{type:"fillSketch",ops:this.renderLines(s,r)}}}class Xse extends fb{fillPolygons(t,r){const n=this._fillPolygons(t,r),o=Object.assign({},r,{hachureAngle:r.hachureAngle+90}),i=this._fillPolygons(t,o);return n.ops=n.ops.concat(i.ops),n}}class Yse{constructor(t){this.helper=t}fillPolygons(t,r){const n=Vu(t,r=Object.assign({},r,{hachureAngle:0}));return this.dotsOnLines(n,r)}dotsOnLines(t,r){const n=[];let o=r.hachureGap;o<0&&(o=4*r.strokeWidth),o=Math.max(o,.1);let i=r.fillWeight;i<0&&(i=r.strokeWidth/2);const s=o/4;for(const a of t){const l=Pp(a),c=l/o,u=Math.ceil(c)-1,d=l-u*o,p=(a[0][0]+a[1][0])/2-o/4,h=Math.min(a[0][1],a[1][1]);for(let m=0;m<u;m++){const g=h+d+m*o,y=p-s+2*Math.random()*s,v=g-s+2*Math.random()*s,b=this.helper.ellipse(y,v,i,i,r);n.push(...b.ops)}}return{type:"fillSketch",ops:n}}}class Zse{constructor(t){this.helper=t}fillPolygons(t,r){const n=Vu(t,r);return{type:"fillSketch",ops:this.dashedLine(n,r)}}dashedLine(t,r){const n=r.dashOffset<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashOffset,o=r.dashGap<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashGap,i=[];return t.forEach(s=>{const a=Pp(s),l=Math.floor(a/(n+o)),c=(a+o-l*(n+o))/2;let u=s[0],d=s[1];u[0]>d[0]&&(u=s[1],d=s[0]);const p=Math.atan((d[1]-u[1])/(d[0]-u[0]));for(let h=0;h<l;h++){const m=h*(n+o),g=m+n,y=[u[0]+m*Math.cos(p)+c*Math.cos(p),u[1]+m*Math.sin(p)+c*Math.sin(p)],v=[u[0]+g*Math.cos(p)+c*Math.cos(p),u[1]+g*Math.sin(p)+c*Math.sin(p)];i.push(...this.helper.doubleLineOps(y[0],y[1],v[0],v[1],r))}}),i}}class Kse{constructor(t){this.helper=t}fillPolygons(t,r){const n=r.hachureGap<0?4*r.strokeWidth:r.hachureGap,o=r.zigzagOffset<0?n:r.zigzagOffset,i=Vu(t,r=Object.assign({},r,{hachureGap:n+o}));return{type:"fillSketch",ops:this.zigzagLines(i,o,r)}}zigzagLines(t,r,n){const o=[];return t.forEach(i=>{const s=Pp(i),a=Math.round(s/(2*r));let l=i[0],c=i[1];l[0]>c[0]&&(l=i[1],c=i[0]);const u=Math.atan((c[1]-l[1])/(c[0]-l[0]));for(let d=0;d<a;d++){const p=2*d*r,h=2*(d+1)*r,m=Math.sqrt(2*Math.pow(r,2)),g=[l[0]+p*Math.cos(u),l[1]+p*Math.sin(u)],y=[l[0]+h*Math.cos(u),l[1]+h*Math.sin(u)],v=[g[0]+m*Math.cos(u+Math.PI/4),g[1]+m*Math.sin(u+Math.PI/4)];o.push(...this.helper.doubleLineOps(g[0],g[1],v[0],v[1],n),...this.helper.doubleLineOps(v[0],v[1],y[0],y[1],n))}}),o}}const Ur={};class Qse{constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}const Jse=0,rm=1,Bk=2,zd={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function nm(e,t){return e.type===t}function hb(e){const t=[],r=function(s){const a=new Array;for(;s!=="";)if(s.match(/^([ \t\r\n,]+)/))s=s.substr(RegExp.$1.length);else if(s.match(/^([aAcChHlLmMqQsStTvVzZ])/))a[a.length]={type:Jse,text:RegExp.$1},s=s.substr(RegExp.$1.length);else{if(!s.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];a[a.length]={type:rm,text:`${parseFloat(RegExp.$1)}`},s=s.substr(RegExp.$1.length)}return a[a.length]={type:Bk,text:""},a}(e);let n="BOD",o=0,i=r[o];for(;!nm(i,Bk);){let s=0;const a=[];if(n==="BOD"){if(i.text!=="M"&&i.text!=="m")return hb("M0,0"+e);o++,s=zd[i.text],n=i.text}else nm(i,rm)?s=zd[n]:(o++,s=zd[i.text],n=i.text);if(!(o+s<r.length))throw new Error("Path data ended short");for(let l=o;l<o+s;l++){const c=r[l];if(!nm(c,rm))throw new Error("Param not a number: "+n+","+c.text);a[a.length]=+c.text}if(typeof zd[n]!="number")throw new Error("Bad segment: "+n);{const l={key:n,data:a};t.push(l),o+=s,i=r[o],n==="M"&&(n="L"),n==="m"&&(n="l")}}return t}function Uz(e){let t=0,r=0,n=0,o=0;const i=[];for(const{key:s,data:a}of e)switch(s){case"M":i.push({key:"M",data:[...a]}),[t,r]=a,[n,o]=a;break;case"m":t+=a[0],r+=a[1],i.push({key:"M",data:[t,r]}),n=t,o=r;break;case"L":i.push({key:"L",data:[...a]}),[t,r]=a;break;case"l":t+=a[0],r+=a[1],i.push({key:"L",data:[t,r]});break;case"C":i.push({key:"C",data:[...a]}),t=a[4],r=a[5];break;case"c":{const l=a.map((c,u)=>u%2?c+r:c+t);i.push({key:"C",data:l}),t=l[4],r=l[5];break}case"Q":i.push({key:"Q",data:[...a]}),t=a[2],r=a[3];break;case"q":{const l=a.map((c,u)=>u%2?c+r:c+t);i.push({key:"Q",data:l}),t=l[2],r=l[3];break}case"A":i.push({key:"A",data:[...a]}),t=a[5],r=a[6];break;case"a":t+=a[5],r+=a[6],i.push({key:"A",data:[a[0],a[1],a[2],a[3],a[4],t,r]});break;case"H":i.push({key:"H",data:[...a]}),t=a[0];break;case"h":t+=a[0],i.push({key:"H",data:[t]});break;case"V":i.push({key:"V",data:[...a]}),r=a[0];break;case"v":r+=a[0],i.push({key:"V",data:[r]});break;case"S":i.push({key:"S",data:[...a]}),t=a[2],r=a[3];break;case"s":{const l=a.map((c,u)=>u%2?c+r:c+t);i.push({key:"S",data:l}),t=l[2],r=l[3];break}case"T":i.push({key:"T",data:[...a]}),t=a[0],r=a[1];break;case"t":t+=a[0],r+=a[1],i.push({key:"T",data:[t,r]});break;case"Z":case"z":i.push({key:"Z",data:[]}),t=n,r=o}return i}function Gz(e){const t=[];let r="",n=0,o=0,i=0,s=0,a=0,l=0;for(const{key:c,data:u}of e){switch(c){case"M":t.push({key:"M",data:[...u]}),[n,o]=u,[i,s]=u;break;case"C":t.push({key:"C",data:[...u]}),n=u[4],o=u[5],a=u[2],l=u[3];break;case"L":t.push({key:"L",data:[...u]}),[n,o]=u;break;case"H":n=u[0],t.push({key:"L",data:[n,o]});break;case"V":o=u[0],t.push({key:"L",data:[n,o]});break;case"S":{let d=0,p=0;r==="C"||r==="S"?(d=n+(n-a),p=o+(o-l)):(d=n,p=o),t.push({key:"C",data:[d,p,...u]}),a=u[0],l=u[1],n=u[2],o=u[3];break}case"T":{const[d,p]=u;let h=0,m=0;r==="Q"||r==="T"?(h=n+(n-a),m=o+(o-l)):(h=n,m=o);const g=n+2*(h-n)/3,y=o+2*(m-o)/3,v=d+2*(h-d)/3,b=p+2*(m-p)/3;t.push({key:"C",data:[g,y,v,b,d,p]}),a=h,l=m,n=d,o=p;break}case"Q":{const[d,p,h,m]=u,g=n+2*(d-n)/3,y=o+2*(p-o)/3,v=h+2*(d-h)/3,b=m+2*(p-m)/3;t.push({key:"C",data:[g,y,v,b,h,m]}),a=d,l=p,n=h,o=m;break}case"A":{const d=Math.abs(u[0]),p=Math.abs(u[1]),h=u[2],m=u[3],g=u[4],y=u[5],v=u[6];d===0||p===0?(t.push({key:"C",data:[n,o,y,v,y,v]}),n=y,o=v):(n!==y||o!==v)&&(Xz(n,o,y,v,d,p,h,m,g).forEach(function(b){t.push({key:"C",data:b})}),n=y,o=v);break}case"Z":t.push({key:"Z",data:[]}),n=i,o=s}r=c}return t}function tc(e,t,r){return[e*Math.cos(r)-t*Math.sin(r),e*Math.sin(r)+t*Math.cos(r)]}function Xz(e,t,r,n,o,i,s,a,l,c){const u=(d=s,Math.PI*d/180);var d;let p=[],h=0,m=0,g=0,y=0;if(c)[h,m,g,y]=c;else{[e,t]=tc(e,t,-u),[r,n]=tc(r,n,-u);const P=(e-r)/2,C=(t-n)/2;let R=P*P/(o*o)+C*C/(i*i);R>1&&(R=Math.sqrt(R),o*=R,i*=R);const O=o*o,D=i*i,M=O*D-O*C*C-D*P*P,$=O*C*C+D*P*P,X=(a===l?-1:1)*Math.sqrt(Math.abs(M/$));g=X*o*C/i+(e+r)/2,y=X*-i*P/o+(t+n)/2,h=Math.asin(parseFloat(((t-y)/i).toFixed(9))),m=Math.asin(parseFloat(((n-y)/i).toFixed(9))),e<g&&(h=Math.PI-h),r<g&&(m=Math.PI-m),h<0&&(h=2*Math.PI+h),m<0&&(m=2*Math.PI+m),l&&h>m&&(h-=2*Math.PI),!l&&m>h&&(m-=2*Math.PI)}let v=m-h;if(Math.abs(v)>120*Math.PI/180){const P=m,C=r,R=n;m=l&&m>h?h+120*Math.PI/180*1:h+120*Math.PI/180*-1,p=Xz(r=g+o*Math.cos(m),n=y+i*Math.sin(m),C,R,o,i,s,0,l,[m,P,g,y])}v=m-h;const b=Math.cos(h),x=Math.sin(h),k=Math.cos(m),S=Math.sin(m),_=Math.tan(v/4),N=4/3*o*_,z=4/3*i*_,F=[e,t],I=[e+N*x,t-z*b],H=[r+N*S,n-z*k],A=[r,n];if(I[0]=2*F[0]-I[0],I[1]=2*F[1]-I[1],c)return[I,H,A].concat(p);{p=[I,H,A].concat(p);const P=[];for(let C=0;C<p.length;C+=3){const R=tc(p[C][0],p[C][1],u),O=tc(p[C+1][0],p[C+1][1],u),D=tc(p[C+2][0],p[C+2][1],u);P.push([R[0],R[1],O[0],O[1],D[0],D[1]])}return P}}const eae={randOffset:function(e,t){return We(e,t)},randOffsetWithRange:function(e,t,r){return Bh(e,t,r)},ellipse:function(e,t,r,n,o){const i=Zz(r,n,o);return wv(e,t,o,i).opset},doubleLineOps:function(e,t,r,n,o){return Wi(e,t,r,n,o,!0)}};function Yz(e,t,r,n,o){return{type:"path",ops:Wi(e,t,r,n,o)}}function df(e,t,r){const n=(e||[]).length;if(n>2){const o=[];for(let i=0;i<n-1;i++)o.push(...Wi(e[i][0],e[i][1],e[i+1][0],e[i+1][1],r));return t&&o.push(...Wi(e[n-1][0],e[n-1][1],e[0][0],e[0][1],r)),{type:"path",ops:o}}return n===2?Yz(e[0][0],e[0][1],e[1][0],e[1][1],r):{type:"path",ops:[]}}function tae(e,t,r,n,o){return function(i,s){return df(i,!0,s)}([[e,t],[e+r,t],[e+r,t+n],[e,t+n]],o)}function Tk(e,t){if(e.length){const r=typeof e[0][0]=="number"?[e]:e,n=Ed(r[0],1*(1+.2*t.roughness),t),o=t.disableMultiStroke?[]:Ed(r[0],1.5*(1+.22*t.roughness),zk(t));for(let i=1;i<r.length;i++){const s=r[i];if(s.length){const a=Ed(s,1*(1+.2*t.roughness),t),l=t.disableMultiStroke?[]:Ed(s,1.5*(1+.22*t.roughness),zk(t));for(const c of a)c.op!=="move"&&n.push(c);for(const c of l)c.op!=="move"&&o.push(c)}}return{type:"path",ops:n.concat(o)}}return{type:"path",ops:[]}}function Zz(e,t,r){const n=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(e/2,2)+Math.pow(t/2,2))/2)),o=Math.ceil(Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*n)),i=2*Math.PI/o;let s=Math.abs(e/2),a=Math.abs(t/2);const l=1-r.curveFitting;return s+=We(s*l,r),a+=We(a*l,r),{increment:i,rx:s,ry:a}}function wv(e,t,r,n){const[o,i]=Ek(n.increment,e,t,n.rx,n.ry,1,n.increment*Bh(.1,Bh(.4,1,r),r),r);let s=Th(o,null,r);if(!r.disableMultiStroke&&r.roughness!==0){const[a]=Ek(n.increment,e,t,n.rx,n.ry,1.5,0,r),l=Th(a,null,r);s=s.concat(l)}return{estimatedPoints:i,opset:{type:"path",ops:s}}}function Nk(e,t,r,n,o,i,s,a,l){const c=e,u=t;let d=Math.abs(r/2),p=Math.abs(n/2);d+=We(.01*d,l),p+=We(.01*p,l);let h=o,m=i;for(;h<0;)h+=2*Math.PI,m+=2*Math.PI;m-h>2*Math.PI&&(h=0,m=2*Math.PI);const g=2*Math.PI/l.curveStepCount,y=Math.min(g/2,(m-h)/2),v=Rk(y,c,u,d,p,h,m,1,l);if(!l.disableMultiStroke){const b=Rk(y,c,u,d,p,h,m,1.5,l);v.push(...b)}return s&&(a?v.push(...Wi(c,u,c+d*Math.cos(h),u+p*Math.sin(h),l),...Wi(c,u,c+d*Math.cos(m),u+p*Math.sin(m),l)):v.push({op:"lineTo",data:[c,u]},{op:"lineTo",data:[c+d*Math.cos(h),u+p*Math.sin(h)]})),{type:"path",ops:v}}function jk(e,t){const r=Gz(Uz(hb(e))),n=[];let o=[0,0],i=[0,0];for(const{key:s,data:a}of r)switch(s){case"M":i=[a[0],a[1]],o=[a[0],a[1]];break;case"L":n.push(...Wi(i[0],i[1],a[0],a[1],t)),i=[a[0],a[1]];break;case"C":{const[l,c,u,d,p,h]=a;n.push(...rae(l,c,u,d,p,h,i,t)),i=[p,h];break}case"Z":n.push(...Wi(i[0],i[1],o[0],o[1],t)),i=[o[0],o[1]]}return{type:"path",ops:n}}function om(e,t){const r=[];for(const n of e)if(n.length){const o=t.maxRandomnessOffset||0,i=n.length;if(i>2){r.push({op:"move",data:[n[0][0]+We(o,t),n[0][1]+We(o,t)]});for(let s=1;s<i;s++)r.push({op:"lineTo",data:[n[s][0]+We(o,t),n[s][1]+We(o,t)]})}}return{type:"fillPath",ops:r}}function ia(e,t){return function(r,n){let o=r.fillStyle||"hachure";if(!Ur[o])switch(o){case"zigzag":Ur[o]||(Ur[o]=new Gse(n));break;case"cross-hatch":Ur[o]||(Ur[o]=new Xse(n));break;case"dots":Ur[o]||(Ur[o]=new Yse(n));break;case"dashed":Ur[o]||(Ur[o]=new Zse(n));break;case"zigzag-line":Ur[o]||(Ur[o]=new Kse(n));break;default:o="hachure",Ur[o]||(Ur[o]=new fb(n))}return Ur[o]}(t,eae).fillPolygons(e,t)}function zk(e){const t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function Kz(e){return e.randomizer||(e.randomizer=new Qse(e.seed||0)),e.randomizer.next()}function Bh(e,t,r,n=1){return r.roughness*n*(Kz(r)*(t-e)+e)}function We(e,t,r=1){return Bh(-e,e,t,r)}function Wi(e,t,r,n,o,i=!1){const s=i?o.disableMultiStrokeFill:o.disableMultiStroke,a=kv(e,t,r,n,o,!0,!1);if(s)return a;const l=kv(e,t,r,n,o,!0,!0);return a.concat(l)}function kv(e,t,r,n,o,i,s){const a=Math.pow(e-r,2)+Math.pow(t-n,2),l=Math.sqrt(a);let c=1;c=l<200?1:l>500?.4:-.0016668*l+1.233334;let u=o.maxRandomnessOffset||0;u*u*100>a&&(u=l/10);const d=u/2,p=.2+.2*Kz(o);let h=o.bowing*o.maxRandomnessOffset*(n-t)/200,m=o.bowing*o.maxRandomnessOffset*(e-r)/200;h=We(h,o,c),m=We(m,o,c);const g=[],y=()=>We(d,o,c),v=()=>We(u,o,c),b=o.preserveVertices;return s?g.push({op:"move",data:[e+(b?0:y()),t+(b?0:y())]}):g.push({op:"move",data:[e+(b?0:We(u,o,c)),t+(b?0:We(u,o,c))]}),s?g.push({op:"bcurveTo",data:[h+e+(r-e)*p+y(),m+t+(n-t)*p+y(),h+e+2*(r-e)*p+y(),m+t+2*(n-t)*p+y(),r+(b?0:y()),n+(b?0:y())]}):g.push({op:"bcurveTo",data:[h+e+(r-e)*p+v(),m+t+(n-t)*p+v(),h+e+2*(r-e)*p+v(),m+t+2*(n-t)*p+v(),r+(b?0:v()),n+(b?0:v())]}),g}function Ed(e,t,r){if(!e.length)return[];const n=[];n.push([e[0][0]+We(t,r),e[0][1]+We(t,r)]),n.push([e[0][0]+We(t,r),e[0][1]+We(t,r)]);for(let o=1;o<e.length;o++)n.push([e[o][0]+We(t,r),e[o][1]+We(t,r)]),o===e.length-1&&n.push([e[o][0]+We(t,r),e[o][1]+We(t,r)]);return Th(n,null,r)}function Th(e,t,r){const n=e.length,o=[];if(n>3){const i=[],s=1-r.curveTightness;o.push({op:"move",data:[e[1][0],e[1][1]]});for(let a=1;a+2<n;a++){const l=e[a];i[0]=[l[0],l[1]],i[1]=[l[0]+(s*e[a+1][0]-s*e[a-1][0])/6,l[1]+(s*e[a+1][1]-s*e[a-1][1])/6],i[2]=[e[a+1][0]+(s*e[a][0]-s*e[a+2][0])/6,e[a+1][1]+(s*e[a][1]-s*e[a+2][1])/6],i[3]=[e[a+1][0],e[a+1][1]],o.push({op:"bcurveTo",data:[i[1][0],i[1][1],i[2][0],i[2][1],i[3][0],i[3][1]]})}}else n===3?(o.push({op:"move",data:[e[1][0],e[1][1]]}),o.push({op:"bcurveTo",data:[e[1][0],e[1][1],e[2][0],e[2][1],e[2][0],e[2][1]]})):n===2&&o.push(...kv(e[0][0],e[0][1],e[1][0],e[1][1],r,!0,!0));return o}function Ek(e,t,r,n,o,i,s,a){const l=[],c=[];if(a.roughness===0){e/=4,c.push([t+n*Math.cos(-e),r+o*Math.sin(-e)]);for(let u=0;u<=2*Math.PI;u+=e){const d=[t+n*Math.cos(u),r+o*Math.sin(u)];l.push(d),c.push(d)}c.push([t+n*Math.cos(0),r+o*Math.sin(0)]),c.push([t+n*Math.cos(e),r+o*Math.sin(e)])}else{const u=We(.5,a)-Math.PI/2;c.push([We(i,a)+t+.9*n*Math.cos(u-e),We(i,a)+r+.9*o*Math.sin(u-e)]);const d=2*Math.PI+u-.01;for(let p=u;p<d;p+=e){const h=[We(i,a)+t+n*Math.cos(p),We(i,a)+r+o*Math.sin(p)];l.push(h),c.push(h)}c.push([We(i,a)+t+n*Math.cos(u+2*Math.PI+.5*s),We(i,a)+r+o*Math.sin(u+2*Math.PI+.5*s)]),c.push([We(i,a)+t+.98*n*Math.cos(u+s),We(i,a)+r+.98*o*Math.sin(u+s)]),c.push([We(i,a)+t+.9*n*Math.cos(u+.5*s),We(i,a)+r+.9*o*Math.sin(u+.5*s)])}return[c,l]}function Rk(e,t,r,n,o,i,s,a,l){const c=i+We(.1,l),u=[];u.push([We(a,l)+t+.9*n*Math.cos(c-e),We(a,l)+r+.9*o*Math.sin(c-e)]);for(let d=c;d<=s;d+=e)u.push([We(a,l)+t+n*Math.cos(d),We(a,l)+r+o*Math.sin(d)]);return u.push([t+n*Math.cos(s),r+o*Math.sin(s)]),u.push([t+n*Math.cos(s),r+o*Math.sin(s)]),Th(u,null,l)}function rae(e,t,r,n,o,i,s,a){const l=[],c=[a.maxRandomnessOffset||1,(a.maxRandomnessOffset||1)+.3];let u=[0,0];const d=a.disableMultiStroke?1:2,p=a.preserveVertices;for(let h=0;h<d;h++)h===0?l.push({op:"move",data:[s[0],s[1]]}):l.push({op:"move",data:[s[0]+(p?0:We(c[0],a)),s[1]+(p?0:We(c[0],a))]}),u=p?[o,i]:[o+We(c[h],a),i+We(c[h],a)],l.push({op:"bcurveTo",data:[e+We(c[h],a),t+We(c[h],a),r+We(c[h],a),n+We(c[h],a),u[0],u[1]]});return l}function rc(e){return[...e]}function Ak(e,t=0){const r=e.length;if(r<3)throw new Error("A curve must have at least three points.");const n=[];if(r===3)n.push(rc(e[0]),rc(e[1]),rc(e[2]),rc(e[2]));else{const o=[];o.push(e[0],e[0]);for(let a=1;a<e.length;a++)o.push(e[a]),a===e.length-1&&o.push(e[a]);const i=[],s=1-t;n.push(rc(o[0]));for(let a=1;a+2<o.length;a++){const l=o[a];i[0]=[l[0],l[1]],i[1]=[l[0]+(s*o[a+1][0]-s*o[a-1][0])/6,l[1]+(s*o[a+1][1]-s*o[a-1][1])/6],i[2]=[o[a+1][0]+(s*o[a][0]-s*o[a+2][0])/6,o[a+1][1]+(s*o[a][1]-s*o[a+2][1])/6],i[3]=[o[a+1][0],o[a+1][1]],n.push(i[1],i[2],i[3])}}return n}function ff(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}function nae(e,t,r){const n=ff(t,r);if(n===0)return ff(e,t);let o=((e[0]-t[0])*(r[0]-t[0])+(e[1]-t[1])*(r[1]-t[1]))/n;return o=Math.max(0,Math.min(1,o)),ff(e,ls(t,r,o))}function ls(e,t,r){return[e[0]+(t[0]-e[0])*r,e[1]+(t[1]-e[1])*r]}function Sv(e,t,r,n){const o=n||[];if(function(a,l){const c=a[l+0],u=a[l+1],d=a[l+2],p=a[l+3];let h=3*u[0]-2*c[0]-p[0];h*=h;let m=3*u[1]-2*c[1]-p[1];m*=m;let g=3*d[0]-2*p[0]-c[0];g*=g;let y=3*d[1]-2*p[1]-c[1];return y*=y,h<g&&(h=g),m<y&&(m=y),h+m}(e,t)<r){const a=e[t+0];o.length?(i=o[o.length-1],s=a,Math.sqrt(ff(i,s))>1&&o.push(a)):o.push(a),o.push(e[t+3])}else{const l=e[t+0],c=e[t+1],u=e[t+2],d=e[t+3],p=ls(l,c,.5),h=ls(c,u,.5),m=ls(u,d,.5),g=ls(p,h,.5),y=ls(h,m,.5),v=ls(g,y,.5);Sv([l,p,g,v],0,r,o),Sv([v,y,m,d],0,r,o)}var i,s;return o}function oae(e,t){return Nh(e,0,e.length,t)}function Nh(e,t,r,n,o){const i=o||[],s=e[t],a=e[r-1];let l=0,c=1;for(let u=t+1;u<r-1;++u){const d=nae(e[u],s,a);d>l&&(l=d,c=u)}return Math.sqrt(l)>n?(Nh(e,t,c+1,n,i),Nh(e,c,r,n,i)):(i.length||i.push(s),i.push(a)),i}function im(e,t=.15,r){const n=[],o=(e.length-1)/3;for(let i=0;i<o;i++)Sv(e,3*i,t,n);return r&&r>0?Nh(n,0,n.length,r):n}const cn="none";class jh{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,r,n){return{shape:t,sets:r||[],options:n||this.defaultOptions}}line(t,r,n,o,i){const s=this._o(i);return this._d("line",[Yz(t,r,n,o,s)],s)}rectangle(t,r,n,o,i){const s=this._o(i),a=[],l=tae(t,r,n,o,s);if(s.fill){const c=[[t,r],[t+n,r],[t+n,r+o],[t,r+o]];s.fillStyle==="solid"?a.push(om([c],s)):a.push(ia([c],s))}return s.stroke!==cn&&a.push(l),this._d("rectangle",a,s)}ellipse(t,r,n,o,i){const s=this._o(i),a=[],l=Zz(n,o,s),c=wv(t,r,s,l);if(s.fill)if(s.fillStyle==="solid"){const u=wv(t,r,s,l).opset;u.type="fillPath",a.push(u)}else a.push(ia([c.estimatedPoints],s));return s.stroke!==cn&&a.push(c.opset),this._d("ellipse",a,s)}circle(t,r,n,o){const i=this.ellipse(t,r,n,n,o);return i.shape="circle",i}linearPath(t,r){const n=this._o(r);return this._d("linearPath",[df(t,!1,n)],n)}arc(t,r,n,o,i,s,a=!1,l){const c=this._o(l),u=[],d=Nk(t,r,n,o,i,s,a,!0,c);if(a&&c.fill)if(c.fillStyle==="solid"){const p=Object.assign({},c);p.disableMultiStroke=!0;const h=Nk(t,r,n,o,i,s,!0,!1,p);h.type="fillPath",u.push(h)}else u.push(function(p,h,m,g,y,v,b){const x=p,k=h;let S=Math.abs(m/2),_=Math.abs(g/2);S+=We(.01*S,b),_+=We(.01*_,b);let N=y,z=v;for(;N<0;)N+=2*Math.PI,z+=2*Math.PI;z-N>2*Math.PI&&(N=0,z=2*Math.PI);const F=(z-N)/b.curveStepCount,I=[];for(let H=N;H<=z;H+=F)I.push([x+S*Math.cos(H),k+_*Math.sin(H)]);return I.push([x+S*Math.cos(z),k+_*Math.sin(z)]),I.push([x,k]),ia([I],b)}(t,r,n,o,i,s,c));return c.stroke!==cn&&u.push(d),this._d("arc",u,c)}curve(t,r){const n=this._o(r),o=[],i=Tk(t,n);if(n.fill&&n.fill!==cn)if(n.fillStyle==="solid"){const s=Tk(t,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));o.push({type:"fillPath",ops:this._mergedShape(s.ops)})}else{const s=[],a=t;if(a.length){const l=typeof a[0][0]=="number"?[a]:a;for(const c of l)c.length<3?s.push(...c):c.length===3?s.push(...im(Ak([c[0],c[0],c[1],c[2]]),10,(1+n.roughness)/2)):s.push(...im(Ak(c),10,(1+n.roughness)/2))}s.length&&o.push(ia([s],n))}return n.stroke!==cn&&o.push(i),this._d("curve",o,n)}polygon(t,r){const n=this._o(r),o=[],i=df(t,!0,n);return n.fill&&(n.fillStyle==="solid"?o.push(om([t],n)):o.push(ia([t],n))),n.stroke!==cn&&o.push(i),this._d("polygon",o,n)}path(t,r){const n=this._o(r),o=[];if(!t)return this._d("path",o,n);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const i=n.fill&&n.fill!=="transparent"&&n.fill!==cn,s=n.stroke!==cn,a=!!(n.simplification&&n.simplification<1),l=function(u,d,p){const h=Gz(Uz(hb(u))),m=[];let g=[],y=[0,0],v=[];const b=()=>{v.length>=4&&g.push(...im(v,d)),v=[]},x=()=>{b(),g.length&&(m.push(g),g=[])};for(const{key:S,data:_}of h)switch(S){case"M":x(),y=[_[0],_[1]],g.push(y);break;case"L":b(),g.push([_[0],_[1]]);break;case"C":if(!v.length){const N=g.length?g[g.length-1]:y;v.push([N[0],N[1]])}v.push([_[0],_[1]]),v.push([_[2],_[3]]),v.push([_[4],_[5]]);break;case"Z":b(),g.push([y[0],y[1]])}if(x(),!p)return m;const k=[];for(const S of m){const _=oae(S,p);_.length&&k.push(_)}return k}(t,1,a?4-4*(n.simplification||1):(1+n.roughness)/2),c=jk(t,n);if(i)if(n.fillStyle==="solid")if(l.length===1){const u=jk(t,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));o.push({type:"fillPath",ops:this._mergedShape(u.ops)})}else o.push(om(l,n));else o.push(ia(l,n));return s&&(a?l.forEach(u=>{o.push(df(u,!1,n))}):o.push(c)),this._d("path",o,n)}opsToPath(t,r){let n="";for(const o of t.ops){const i=typeof r=="number"&&r>=0?o.data.map(s=>+s.toFixed(r)):o.data;switch(o.op){case"move":n+=`M${i[0]} ${i[1]} `;break;case"bcurveTo":n+=`C${i[0]} ${i[1]}, ${i[2]} ${i[3]}, ${i[4]} ${i[5]} `;break;case"lineTo":n+=`L${i[0]} ${i[1]} `}}return n.trim()}toPaths(t){const r=t.sets||[],n=t.options||this.defaultOptions,o=[];for(const i of r){let s=null;switch(i.type){case"path":s={d:this.opsToPath(i),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:cn};break;case"fillPath":s={d:this.opsToPath(i),stroke:cn,strokeWidth:0,fill:n.fill||cn};break;case"fillSketch":s=this.fillSketch(i,n)}s&&o.push(s)}return o}fillSketch(t,r){let n=r.fillWeight;return n<0&&(n=r.strokeWidth/2),{d:this.opsToPath(t),stroke:r.fill||cn,strokeWidth:n,fill:cn}}_mergedShape(t){return t.filter((r,n)=>n===0||r.op!=="move")}}class iae{constructor(t,r){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new jh(r)}draw(t){const r=t.sets||[],n=t.options||this.getDefaultOptions(),o=this.ctx,i=t.options.fixedDecimalPlaceDigits;for(const s of r)switch(s.type){case"path":o.save(),o.strokeStyle=n.stroke==="none"?"transparent":n.stroke,o.lineWidth=n.strokeWidth,n.strokeLineDash&&o.setLineDash(n.strokeLineDash),n.strokeLineDashOffset&&(o.lineDashOffset=n.strokeLineDashOffset),this._drawToContext(o,s,i),o.restore();break;case"fillPath":{o.save(),o.fillStyle=n.fill||"";const a=t.shape==="curve"||t.shape==="polygon"||t.shape==="path"?"evenodd":"nonzero";this._drawToContext(o,s,i,a),o.restore();break}case"fillSketch":this.fillSketch(o,s,n)}}fillSketch(t,r,n){let o=n.fillWeight;o<0&&(o=n.strokeWidth/2),t.save(),n.fillLineDash&&t.setLineDash(n.fillLineDash),n.fillLineDashOffset&&(t.lineDashOffset=n.fillLineDashOffset),t.strokeStyle=n.fill||"",t.lineWidth=o,this._drawToContext(t,r,n.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,r,n,o="nonzero"){t.beginPath();for(const i of r.ops){const s=typeof n=="number"&&n>=0?i.data.map(a=>+a.toFixed(n)):i.data;switch(i.op){case"move":t.moveTo(s[0],s[1]);break;case"bcurveTo":t.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5]);break;case"lineTo":t.lineTo(s[0],s[1])}}r.type==="fillPath"?t.fill(o):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,r,n,o,i){const s=this.gen.line(t,r,n,o,i);return this.draw(s),s}rectangle(t,r,n,o,i){const s=this.gen.rectangle(t,r,n,o,i);return this.draw(s),s}ellipse(t,r,n,o,i){const s=this.gen.ellipse(t,r,n,o,i);return this.draw(s),s}circle(t,r,n,o){const i=this.gen.circle(t,r,n,o);return this.draw(i),i}linearPath(t,r){const n=this.gen.linearPath(t,r);return this.draw(n),n}polygon(t,r){const n=this.gen.polygon(t,r);return this.draw(n),n}arc(t,r,n,o,i,s,a=!1,l){const c=this.gen.arc(t,r,n,o,i,s,a,l);return this.draw(c),c}curve(t,r){const n=this.gen.curve(t,r);return this.draw(n),n}path(t,r){const n=this.gen.path(t,r);return this.draw(n),n}}const Rd="http://www.w3.org/2000/svg";class sae{constructor(t,r){this.svg=t,this.gen=new jh(r)}draw(t){const r=t.sets||[],n=t.options||this.getDefaultOptions(),o=this.svg.ownerDocument||window.document,i=o.createElementNS(Rd,"g"),s=t.options.fixedDecimalPlaceDigits;for(const a of r){let l=null;switch(a.type){case"path":l=o.createElementNS(Rd,"path"),l.setAttribute("d",this.opsToPath(a,s)),l.setAttribute("stroke",n.stroke),l.setAttribute("stroke-width",n.strokeWidth+""),l.setAttribute("fill","none"),n.strokeLineDash&&l.setAttribute("stroke-dasharray",n.strokeLineDash.join(" ").trim()),n.strokeLineDashOffset&&l.setAttribute("stroke-dashoffset",`${n.strokeLineDashOffset}`);break;case"fillPath":l=o.createElementNS(Rd,"path"),l.setAttribute("d",this.opsToPath(a,s)),l.setAttribute("stroke","none"),l.setAttribute("stroke-width","0"),l.setAttribute("fill",n.fill||""),t.shape!=="curve"&&t.shape!=="polygon"||l.setAttribute("fill-rule","evenodd");break;case"fillSketch":l=this.fillSketch(o,a,n)}l&&i.appendChild(l)}return i}fillSketch(t,r,n){let o=n.fillWeight;o<0&&(o=n.strokeWidth/2);const i=t.createElementNS(Rd,"path");return i.setAttribute("d",this.opsToPath(r,n.fixedDecimalPlaceDigits)),i.setAttribute("stroke",n.fill||""),i.setAttribute("stroke-width",o+""),i.setAttribute("fill","none"),n.fillLineDash&&i.setAttribute("stroke-dasharray",n.fillLineDash.join(" ").trim()),n.fillLineDashOffset&&i.setAttribute("stroke-dashoffset",`${n.fillLineDashOffset}`),i}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,r){return this.gen.opsToPath(t,r)}line(t,r,n,o,i){const s=this.gen.line(t,r,n,o,i);return this.draw(s)}rectangle(t,r,n,o,i){const s=this.gen.rectangle(t,r,n,o,i);return this.draw(s)}ellipse(t,r,n,o,i){const s=this.gen.ellipse(t,r,n,o,i);return this.draw(s)}circle(t,r,n,o){const i=this.gen.circle(t,r,n,o);return this.draw(i)}linearPath(t,r){const n=this.gen.linearPath(t,r);return this.draw(n)}polygon(t,r){const n=this.gen.polygon(t,r);return this.draw(n)}arc(t,r,n,o,i,s,a=!1,l){const c=this.gen.arc(t,r,n,o,i,s,a,l);return this.draw(c)}curve(t,r){const n=this.gen.curve(t,r);return this.draw(n)}path(t,r){const n=this.gen.path(t,r);return this.draw(n)}}var Te={canvas:(e,t)=>new iae(e,t),svg:(e,t)=>new sae(e,t),generator:e=>new jh(e),newSeed:()=>jh.newSeed()},He=T(async(e,t,r)=>{var d,p;let n;const o=t.useHtmlLabels||ir((d=ft())==null?void 0:d.htmlLabels);r?n=r:n="node default";const i=e.insert("g").attr("class",n).attr("id",t.domId||t.id),s=i.insert("g").attr("class","label").attr("style",Nr(t.labelStyle));let a;t.label===void 0?a="":a=typeof t.label=="string"?t.label:t.label[0];const l=await Qi(s,Mn(Gs(a),ft()),{useHtmlLabels:o,width:t.width||((p=ft().flowchart)==null?void 0:p.wrappingWidth),cssClasses:"markdown-node-label",style:t.labelStyle,addSvgBackground:!!t.icon||!!t.img});let c=l.getBBox();const u=((t==null?void 0:t.padding)??0)/2;if(o){const h=l.children[0],m=lt(l),g=h.getElementsByTagName("img");if(g){const y=a.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...g].map(v=>new Promise(b=>{function x(){if(v.style.display="flex",v.style.flexDirection="column",y){const k=ft().fontSize?ft().fontSize:window.getComputedStyle(document.body).fontSize,S=5,[_=uT.fontSize]=zp(k),N=_*S+"px";v.style.minWidth=N,v.style.maxWidth=N}else v.style.width="100%";b(v)}T(x,"setupImage"),setTimeout(()=>{v.complete&&x()}),v.addEventListener("error",x),v.addEventListener("load",x)})))}c=h.getBoundingClientRect(),m.attr("width",c.width),m.attr("height",c.height)}return o?s.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"):s.attr("transform","translate(0, "+-c.height/2+")"),t.centerLabel&&s.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),s.insert("rect",":first-child"),{shapeSvg:i,bbox:c,halfPadding:u,label:s}},"labelHelper"),sm=T(async(e,t,r)=>{var l,c,u,d,p,h;const n=r.useHtmlLabels||ir((c=(l=ft())==null?void 0:l.flowchart)==null?void 0:c.htmlLabels),o=e.insert("g").attr("class","label").attr("style",r.labelStyle||""),i=await Qi(o,Mn(Gs(t),ft()),{useHtmlLabels:n,width:r.width||((d=(u=ft())==null?void 0:u.flowchart)==null?void 0:d.wrappingWidth),style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img});let s=i.getBBox();const a=r.padding/2;if(ir((h=(p=ft())==null?void 0:p.flowchart)==null?void 0:h.htmlLabels)){const m=i.children[0],g=lt(i);s=m.getBoundingClientRect(),g.attr("width",s.width),g.attr("height",s.height)}return n?o.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"):o.attr("transform","translate(0, "+-s.height/2+")"),r.centerLabel&&o.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),o.insert("rect",":first-child"),{shapeSvg:e,bbox:s,halfPadding:a,label:o}},"insertLabel"),Ee=T((e,t)=>{const r=t.node().getBBox();e.width=r.width,e.height=r.height},"updateNodeBounds"),$e=T((e,t)=>(e.look==="handDrawn"?"rough-node":"node")+" "+e.cssClasses+" "+(t||""),"getNodeClasses");function ot(e){const t=e.map((r,n)=>`${n===0?"M":"L"}${r.x},${r.y}`);return t.push("Z"),t.join(" ")}T(ot,"createPathFromPoints");function Vi(e,t,r,n,o,i){const s=[],l=r-e,c=n-t,u=l/i,d=2*Math.PI/u,p=t+c/2;for(let h=0;h<=50;h++){const m=h/50,g=e+m*l,y=p+o*Math.sin(d*(g-e));s.push({x:g,y})}return s}T(Vi,"generateFullSineWavePoints");function xu(e,t,r,n,o,i){const s=[],a=o*Math.PI/180,u=(i*Math.PI/180-a)/(n-1);for(let d=0;d<n;d++){const p=a+d*u,h=e+r*Math.cos(p),m=t+r*Math.sin(p);s.push({x:-h,y:-m})}return s}T(xu,"generateCirclePoints");var aae=T((e,t)=>{var r=e.x,n=e.y,o=t.x-r,i=t.y-n,s=e.width/2,a=e.height/2,l,c;return Math.abs(i)*s>Math.abs(o)*a?(i<0&&(a=-a),l=i===0?0:a*o/i,c=a):(o<0&&(s=-s),l=s,c=o===0?0:s*i/o),{x:r+l,y:n+c}},"intersectRect"),El=aae;function Qz(e,t){t&&e.attr("style",t)}T(Qz,"applyStyle");async function Jz(e){const t=lt(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),r=t.append("xhtml:div"),n=ft();let o=e.label;e.label&&il(e.label)&&(o=await x1(e.label.replace(Tl.lineBreakRegex,`
333
+ `),n));const s='<span class="'+(e.isNode?"nodeLabel":"edgeLabel")+'" '+(e.labelStyle?'style="'+e.labelStyle+'"':"")+">"+o+"</span>";return r.html(Mn(s,n)),Qz(r,e.labelStyle),r.style("display","inline-block"),r.style("padding-right","1px"),r.style("white-space","nowrap"),r.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}T(Jz,"addHtmlLabel");var lae=T(async(e,t,r,n)=>{let o=e||"";if(typeof o=="object"&&(o=o[0]),ir(ft().flowchart.htmlLabels)){o=o.replace(/\\n|\n/g,"<br />"),ie.info("vertexText"+o);const i={isNode:n,label:Gs(o).replace(/fa[blrs]?:fa-[\w-]+/g,a=>`<i class='${a.replace(":"," ")}'></i>`),labelStyle:t&&t.replace("fill:","color:")};return await Jz(i)}else{const i=document.createElementNS("http://www.w3.org/2000/svg","text");i.setAttribute("style",t.replace("color:","fill:"));let s=[];typeof o=="string"?s=o.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(o)?s=o:s=[];for(const a of s){const l=document.createElementNS("http://www.w3.org/2000/svg","tspan");l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),l.setAttribute("dy","1em"),l.setAttribute("x","0"),r?l.setAttribute("class","title-row"):l.setAttribute("class","row"),l.textContent=a.trim(),i.appendChild(l)}return i}},"createLabel"),bs=lae,Ji=T((e,t,r,n,o)=>["M",e+o,t,"H",e+r-o,"A",o,o,0,0,1,e+r,t+o,"V",t+n-o,"A",o,o,0,0,1,e+r-o,t+n,"H",e+o,"A",o,o,0,0,1,e,t+n-o,"V",t+o,"A",o,o,0,0,1,e+o,t,"Z"].join(" "),"createRoundedRectPathD"),e4=T(async(e,t)=>{ie.info("Creating subgraph rect for ",t.id,t);const r=ft(),{themeVariables:n,handDrawnSeed:o}=r,{clusterBkg:i,clusterBorder:s}=n,{labelStyles:a,nodeStyles:l,borderStyles:c,backgroundStyles:u}=ze(t),d=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.id).attr("data-look",t.look),p=ir(r.flowchart.htmlLabels),h=d.insert("g").attr("class","cluster-label "),m=await Qi(h,t.label,{style:t.labelStyle,useHtmlLabels:p,isNode:!0});let g=m.getBBox();if(ir(r.flowchart.htmlLabels)){const N=m.children[0],z=lt(m);g=N.getBoundingClientRect(),z.attr("width",g.width),z.attr("height",g.height)}const y=t.width<=g.width+t.padding?g.width+t.padding:t.width;t.width<=g.width+t.padding?t.diff=(y-t.width)/2-t.padding:t.diff=-t.padding;const v=t.height,b=t.x-y/2,x=t.y-v/2;ie.trace("Data ",t,JSON.stringify(t));let k;if(t.look==="handDrawn"){const N=Te.svg(d),z=je(t,{roughness:.7,fill:i,stroke:s,fillWeight:3,seed:o}),F=N.path(Ji(b,x,y,v,0),z);k=d.insert(()=>(ie.debug("Rough node insert CXC",F),F),":first-child"),k.select("path:nth-child(2)").attr("style",c.join(";")),k.select("path").attr("style",u.join(";").replace("fill","stroke"))}else k=d.insert("rect",":first-child"),k.attr("style",l).attr("rx",t.rx).attr("ry",t.ry).attr("x",b).attr("y",x).attr("width",y).attr("height",v);const{subGraphTitleTopMargin:S}=V1(r);if(h.attr("transform",`translate(${t.x-g.width/2}, ${t.y-t.height/2+S})`),a){const N=h.select("span");N&&N.attr("style",a)}const _=k.node().getBBox();return t.offsetX=0,t.width=_.width,t.height=_.height,t.offsetY=g.height-t.padding/2,t.intersect=function(N){return El(t,N)},{cluster:d,labelBBox:g}},"rect"),cae=T((e,t)=>{const r=e.insert("g").attr("class","note-cluster").attr("id",t.id),n=r.insert("rect",":first-child"),o=0*t.padding,i=o/2;n.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-i).attr("y",t.y-t.height/2-i).attr("width",t.width+o).attr("height",t.height+o).attr("fill","none");const s=n.node().getBBox();return t.width=s.width,t.height=s.height,t.intersect=function(a){return El(t,a)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),uae=T(async(e,t)=>{const r=ft(),{themeVariables:n,handDrawnSeed:o}=r,{altBackground:i,compositeBackground:s,compositeTitleBackground:a,nodeBorder:l}=n,c=e.insert("g").attr("class",t.cssClasses).attr("id",t.id).attr("data-id",t.id).attr("data-look",t.look),u=c.insert("g",":first-child"),d=c.insert("g").attr("class","cluster-label");let p=c.append("rect");const h=d.node().appendChild(await bs(t.label,t.labelStyle,void 0,!0));let m=h.getBBox();if(ir(r.flowchart.htmlLabels)){const F=h.children[0],I=lt(h);m=F.getBoundingClientRect(),I.attr("width",m.width),I.attr("height",m.height)}const g=0*t.padding,y=g/2,v=(t.width<=m.width+t.padding?m.width+t.padding:t.width)+g;t.width<=m.width+t.padding?t.diff=(v-t.width)/2-t.padding:t.diff=-t.padding;const b=t.height+g,x=t.height+g-m.height-6,k=t.x-v/2,S=t.y-b/2;t.width=v;const _=t.y-t.height/2-y+m.height+2;let N;if(t.look==="handDrawn"){const F=t.cssClasses.includes("statediagram-cluster-alt"),I=Te.svg(c),H=t.rx||t.ry?I.path(Ji(k,S,v,b,10),{roughness:.7,fill:a,fillStyle:"solid",stroke:l,seed:o}):I.rectangle(k,S,v,b,{seed:o});N=c.insert(()=>H,":first-child");const A=I.rectangle(k,_,v,x,{fill:F?i:s,fillStyle:F?"hachure":"solid",stroke:l,seed:o});N=c.insert(()=>H,":first-child"),p=c.insert(()=>A)}else N=u.insert("rect",":first-child"),N.attr("class","outer").attr("x",k).attr("y",S).attr("width",v).attr("height",b).attr("data-look",t.look),p.attr("class","inner").attr("x",k).attr("y",_).attr("width",v).attr("height",x);d.attr("transform",`translate(${t.x-m.width/2}, ${S+1-(ir(r.flowchart.htmlLabels)?0:3)})`);const z=N.node().getBBox();return t.height=z.height,t.offsetX=0,t.offsetY=m.height-t.padding/2,t.labelBBox=m,t.intersect=function(F){return El(t,F)},{cluster:c,labelBBox:m}},"roundedWithTitle"),dae=T(async(e,t)=>{ie.info("Creating subgraph rect for ",t.id,t);const r=ft(),{themeVariables:n,handDrawnSeed:o}=r,{clusterBkg:i,clusterBorder:s}=n,{labelStyles:a,nodeStyles:l,borderStyles:c,backgroundStyles:u}=ze(t),d=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.id).attr("data-look",t.look),p=ir(r.flowchart.htmlLabels),h=d.insert("g").attr("class","cluster-label "),m=await Qi(h,t.label,{style:t.labelStyle,useHtmlLabels:p,isNode:!0,width:t.width});let g=m.getBBox();if(ir(r.flowchart.htmlLabels)){const N=m.children[0],z=lt(m);g=N.getBoundingClientRect(),z.attr("width",g.width),z.attr("height",g.height)}const y=t.width<=g.width+t.padding?g.width+t.padding:t.width;t.width<=g.width+t.padding?t.diff=(y-t.width)/2-t.padding:t.diff=-t.padding;const v=t.height,b=t.x-y/2,x=t.y-v/2;ie.trace("Data ",t,JSON.stringify(t));let k;if(t.look==="handDrawn"){const N=Te.svg(d),z=je(t,{roughness:.7,fill:i,stroke:s,fillWeight:4,seed:o}),F=N.path(Ji(b,x,y,v,t.rx),z);k=d.insert(()=>(ie.debug("Rough node insert CXC",F),F),":first-child"),k.select("path:nth-child(2)").attr("style",c.join(";")),k.select("path").attr("style",u.join(";").replace("fill","stroke"))}else k=d.insert("rect",":first-child"),k.attr("style",l).attr("rx",t.rx).attr("ry",t.ry).attr("x",b).attr("y",x).attr("width",y).attr("height",v);const{subGraphTitleTopMargin:S}=V1(r);if(h.attr("transform",`translate(${t.x-g.width/2}, ${t.y-t.height/2+S})`),a){const N=h.select("span");N&&N.attr("style",a)}const _=k.node().getBBox();return t.offsetX=0,t.width=_.width,t.height=_.height,t.offsetY=g.height-t.padding/2,t.intersect=function(N){return El(t,N)},{cluster:d,labelBBox:g}},"kanbanSection"),fae=T((e,t)=>{const r=ft(),{themeVariables:n,handDrawnSeed:o}=r,{nodeBorder:i}=n,s=e.insert("g").attr("class",t.cssClasses).attr("id",t.id).attr("data-look",t.look),a=s.insert("g",":first-child"),l=0*t.padding,c=t.width+l;t.diff=-t.padding;const u=t.height+l,d=t.x-c/2,p=t.y-u/2;t.width=c;let h;if(t.look==="handDrawn"){const y=Te.svg(s).rectangle(d,p,c,u,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:i,seed:o});h=s.insert(()=>y,":first-child")}else h=a.insert("rect",":first-child"),h.attr("class","divider").attr("x",d).attr("y",p).attr("width",c).attr("height",u).attr("data-look",t.look);const m=h.node().getBBox();return t.height=m.height,t.offsetX=0,t.offsetY=0,t.intersect=function(g){return El(t,g)},{cluster:s,labelBBox:{}}},"divider"),hae=e4,pae={rect:e4,squareRect:hae,roundedWithTitle:uae,noteGroup:cae,divider:fae,kanbanSection:dae},t4=new Map,gae=T(async(e,t)=>{const r=t.shape||"rect",n=await pae[r](e,t);return t4.set(t.id,n),n},"insertCluster"),nfe=T(()=>{t4=new Map},"clear");function r4(e,t){return e.intersect(t)}T(r4,"intersectNode");var mae=r4;function n4(e,t,r,n){var o=e.x,i=e.y,s=o-n.x,a=i-n.y,l=Math.sqrt(t*t*a*a+r*r*s*s),c=Math.abs(t*r*s/l);n.x<o&&(c=-c);var u=Math.abs(t*r*a/l);return n.y<i&&(u=-u),{x:o+c,y:i+u}}T(n4,"intersectEllipse");var o4=n4;function i4(e,t,r){return o4(e,t,t,r)}T(i4,"intersectCircle");var vae=i4;function s4(e,t,r,n){{const o=t.y-e.y,i=e.x-t.x,s=t.x*e.y-e.x*t.y,a=o*r.x+i*r.y+s,l=o*n.x+i*n.y+s,c=1e-6;if(a!==0&&l!==0&&Cv(a,l))return;const u=n.y-r.y,d=r.x-n.x,p=n.x*r.y-r.x*n.y,h=u*e.x+d*e.y+p,m=u*t.x+d*t.y+p;if(Math.abs(h)<c&&Math.abs(m)<c&&Cv(h,m))return;const g=o*d-u*i;if(g===0)return;const y=Math.abs(g/2);let v=i*p-d*s;const b=v<0?(v-y)/g:(v+y)/g;v=u*s-o*p;const x=v<0?(v-y)/g:(v+y)/g;return{x:b,y:x}}}T(s4,"intersectLine");function Cv(e,t){return e*t>0}T(Cv,"sameSign");var yae=s4;function a4(e,t,r){let n=e.x,o=e.y,i=[],s=Number.POSITIVE_INFINITY,a=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(u){s=Math.min(s,u.x),a=Math.min(a,u.y)}):(s=Math.min(s,t.x),a=Math.min(a,t.y));let l=n-e.width/2-s,c=o-e.height/2-a;for(let u=0;u<t.length;u++){let d=t[u],p=t[u<t.length-1?u+1:0],h=yae(e,r,{x:l+d.x,y:c+d.y},{x:l+p.x,y:c+p.y});h&&i.push(h)}return i.length?(i.length>1&&i.sort(function(u,d){let p=u.x-r.x,h=u.y-r.y,m=Math.sqrt(p*p+h*h),g=d.x-r.x,y=d.y-r.y,v=Math.sqrt(g*g+y*y);return m<v?-1:m===v?0:1}),i[0]):e}T(a4,"intersectPolygon");var bae=a4,be={node:mae,circle:vae,ellipse:o4,polygon:bae,rect:El};function l4(e,t){const{labelStyles:r}=ze(t);t.labelStyle=r;const n=$e(t);let o=n;n||(o="anchor");const i=e.insert("g").attr("class",o).attr("id",t.domId||t.id),s=1,{cssStyles:a}=t,l=Te.svg(i),c=je(t,{fill:"black",stroke:"none",fillStyle:"solid"});t.look!=="handDrawn"&&(c.roughness=0);const u=l.circle(0,0,s*2,c),d=i.insert(()=>u,":first-child");return d.attr("class","anchor").attr("style",Nr(a)),Ee(t,d),t.intersect=function(p){return ie.info("Circle intersect",t,s,p),be.circle(t,s,p)},i}T(l4,"anchor");function _v(e,t,r,n,o,i,s){const l=(e+r)/2,c=(t+n)/2,u=Math.atan2(n-t,r-e),d=(r-e)/2,p=(n-t)/2,h=d/o,m=p/i,g=Math.sqrt(h**2+m**2);if(g>1)throw new Error("The given radii are too small to create an arc between the points.");const y=Math.sqrt(1-g**2),v=l+y*i*Math.sin(u)*(s?-1:1),b=c-y*o*Math.cos(u)*(s?-1:1),x=Math.atan2((t-b)/i,(e-v)/o);let S=Math.atan2((n-b)/i,(r-v)/o)-x;s&&S<0&&(S+=2*Math.PI),!s&&S>0&&(S-=2*Math.PI);const _=[];for(let N=0;N<20;N++){const z=N/19,F=x+z*S,I=v+o*Math.cos(F),H=b+i*Math.sin(F);_.push({x:I,y:H})}return _}T(_v,"generateArcPoints");async function c4(e,t){const{labelStyles:r,nodeStyles:n}=ze(t);t.labelStyle=r;const{shapeSvg:o,bbox:i}=await He(e,t,$e(t)),s=i.width+t.padding+20,a=i.height+t.padding,l=a/2,c=l/(2.5+a/50),{cssStyles:u}=t,d=[{x:s/2,y:-a/2},{x:-s/2,y:-a/2},..._v(-s/2,-a/2,-s/2,a/2,c,l,!1),{x:s/2,y:a/2},..._v(s/2,a/2,s/2,-a/2,c,l,!0)],p=Te.svg(o),h=je(t,{});t.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");const m=ot(d),g=p.path(m,h),y=o.insert(()=>g,":first-child");return y.attr("class","basic label-container"),u&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",u),n&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",n),y.attr("transform",`translate(${c/2}, 0)`),Ee(t,y),t.intersect=function(v){return be.polygon(t,d,v)},o}T(c4,"bowTieRect");function es(e,t,r,n){return e.insert("polygon",":first-child").attr("points",n.map(function(o){return o.x+","+o.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+r/2+")")}T(es,"insertPolygonShape");async function u4(e,t){const{labelStyles:r,nodeStyles:n}=ze(t);t.labelStyle=r;const{shapeSvg:o,bbox:i}=await He(e,t,$e(t)),s=i.height+t.padding,a=12,l=i.width+t.padding+a,c=0,u=l,d=-s,p=0,h=[{x:c+a,y:d},{x:u,y:d},{x:u,y:p},{x:c,y:p},{x:c,y:d+a},{x:c+a,y:d}];let m;const{cssStyles:g}=t;if(t.look==="handDrawn"){const y=Te.svg(o),v=je(t,{}),b=ot(h),x=y.path(b,v);m=o.insert(()=>x,":first-child").attr("transform",`translate(${-l/2}, ${s/2})`),g&&m.attr("style",g)}else m=es(o,l,s,h);return n&&m.attr("style",n),Ee(t,m),t.intersect=function(y){return be.polygon(t,h,y)},o}T(u4,"card");function d4(e,t){const{nodeStyles:r}=ze(t);t.label="";const n=e.insert("g").attr("class",$e(t)).attr("id",t.domId??t.id),{cssStyles:o}=t,i=Math.max(28,t.width??0),s=[{x:0,y:i/2},{x:i/2,y:0},{x:0,y:-i/2},{x:-i/2,y:0}],a=Te.svg(n),l=je(t,{});t.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const c=ot(s),u=a.path(c,l),d=n.insert(()=>u,":first-child");return o&&t.look!=="handDrawn"&&d.selectAll("path").attr("style",o),r&&t.look!=="handDrawn"&&d.selectAll("path").attr("style",r),t.width=28,t.height=28,t.intersect=function(p){return be.polygon(t,s,p)},n}T(d4,"choice");async function pb(e,t,r){const{labelStyles:n,nodeStyles:o}=ze(t);t.labelStyle=n;const{shapeSvg:i,bbox:s,halfPadding:a}=await He(e,t,$e(t)),l=(r==null?void 0:r.padding)??a,c=s.width/2+l;let u;const{cssStyles:d}=t;if(t.look==="handDrawn"){const p=Te.svg(i),h=je(t,{}),m=p.circle(0,0,c*2,h);u=i.insert(()=>m,":first-child"),u.attr("class","basic label-container").attr("style",Nr(d))}else u=i.insert("circle",":first-child").attr("class","basic label-container").attr("style",o).attr("r",c).attr("cx",0).attr("cy",0);return Ee(t,u),t.calcIntersect=function(p,h){const m=p.width/2;return be.circle(p,m,h)},t.intersect=function(p){return ie.info("Circle intersect",t,c,p),be.circle(t,c,p)},i}T(pb,"circle");function f4(e){const t=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),n=e*2,o={x:n/2*t,y:n/2*r},i={x:-(n/2)*t,y:n/2*r},s={x:-(n/2)*t,y:-(n/2)*r},a={x:n/2*t,y:-(n/2)*r};return`M ${i.x},${i.y} L ${a.x},${a.y}
334
+ M ${o.x},${o.y} L ${s.x},${s.y}`}T(f4,"createLine");function h4(e,t){const{labelStyles:r,nodeStyles:n}=ze(t);t.labelStyle=r,t.label="";const o=e.insert("g").attr("class",$e(t)).attr("id",t.domId??t.id),i=Math.max(30,(t==null?void 0:t.width)??0),{cssStyles:s}=t,a=Te.svg(o),l=je(t,{});t.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const c=a.circle(0,0,i*2,l),u=f4(i),d=a.path(u,l),p=o.insert(()=>c,":first-child");return p.insert(()=>d),s&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",s),n&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",n),Ee(t,p),t.intersect=function(h){return ie.info("crossedCircle intersect",t,{radius:i,point:h}),be.circle(t,i,h)},o}T(h4,"crossedCircle");function qo(e,t,r,n=100,o=0,i=180){const s=[],a=o*Math.PI/180,u=(i*Math.PI/180-a)/(n-1);for(let d=0;d<n;d++){const p=a+d*u,h=e+r*Math.cos(p),m=t+r*Math.sin(p);s.push({x:-h,y:-m})}return s}T(qo,"generateCirclePoints");async function p4(e,t){const{labelStyles:r,nodeStyles:n}=ze(t);t.labelStyle=r;const{shapeSvg:o,bbox:i,label:s}=await He(e,t,$e(t)),a=i.width+(t.padding??0),l=i.height+(t.padding??0),c=Math.max(5,l*.1),{cssStyles:u}=t,d=[...qo(a/2,-l/2,c,30,-90,0),{x:-a/2-c,y:c},...qo(a/2+c*2,-c,c,20,-180,-270),...qo(a/2+c*2,c,c,20,-90,-180),{x:-a/2-c,y:-l/2},...qo(a/2,l/2,c,20,0,90)],p=[{x:a/2,y:-l/2-c},{x:-a/2,y:-l/2-c},...qo(a/2,-l/2,c,20,-90,0),{x:-a/2-c,y:-c},...qo(a/2+a*.1,-c,c,20,-180,-270),...qo(a/2+a*.1,c,c,20,-90,-180),{x:-a/2-c,y:l/2},...qo(a/2,l/2,c,20,0,90),{x:-a/2,y:l/2+c},{x:a/2,y:l/2+c}],h=Te.svg(o),m=je(t,{fill:"none"});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const y=ot(d).replace("Z",""),v=h.path(y,m),b=ot(p),x=h.path(b,{...m}),k=o.insert("g",":first-child");return k.insert(()=>x,":first-child").attr("stroke-opacity",0),k.insert(()=>v,":first-child"),k.attr("class","text"),u&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",u),n&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",n),k.attr("transform",`translate(${c}, 0)`),s.attr("transform",`translate(${-a/2+c-(i.x-(i.left??0))},${-l/2+(t.padding??0)/2-(i.y-(i.top??0))})`),Ee(t,k),t.intersect=function(S){return be.polygon(t,p,S)},o}T(p4,"curlyBraceLeft");function $o(e,t,r,n=100,o=0,i=180){const s=[],a=o*Math.PI/180,u=(i*Math.PI/180-a)/(n-1);for(let d=0;d<n;d++){const p=a+d*u,h=e+r*Math.cos(p),m=t+r*Math.sin(p);s.push({x:h,y:m})}return s}T($o,"generateCirclePoints");async function g4(e,t){const{labelStyles:r,nodeStyles:n}=ze(t);t.labelStyle=r;const{shapeSvg:o,bbox:i,label:s}=await He(e,t,$e(t)),a=i.width+(t.padding??0),l=i.height+(t.padding??0),c=Math.max(5,l*.1),{cssStyles:u}=t,d=[...$o(a/2,-l/2,c,20,-90,0),{x:a/2+c,y:-c},...$o(a/2+c*2,-c,c,20,-180,-270),...$o(a/2+c*2,c,c,20,-90,-180),{x:a/2+c,y:l/2},...$o(a/2,l/2,c,20,0,90)],p=[{x:-a/2,y:-l/2-c},{x:a/2,y:-l/2-c},...$o(a/2,-l/2,c,20,-90,0),{x:a/2+c,y:-c},...$o(a/2+c*2,-c,c,20,-180,-270),...$o(a/2+c*2,c,c,20,-90,-180),{x:a/2+c,y:l/2},...$o(a/2,l/2,c,20,0,90),{x:a/2,y:l/2+c},{x:-a/2,y:l/2+c}],h=Te.svg(o),m=je(t,{fill:"none"});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const y=ot(d).replace("Z",""),v=h.path(y,m),b=ot(p),x=h.path(b,{...m}),k=o.insert("g",":first-child");return k.insert(()=>x,":first-child").attr("stroke-opacity",0),k.insert(()=>v,":first-child"),k.attr("class","text"),u&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",u),n&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",n),k.attr("transform",`translate(${-c}, 0)`),s.attr("transform",`translate(${-a/2+(t.padding??0)/2-(i.x-(i.left??0))},${-l/2+(t.padding??0)/2-(i.y-(i.top??0))})`),Ee(t,k),t.intersect=function(S){return be.polygon(t,p,S)},o}T(g4,"curlyBraceRight");function ur(e,t,r,n=100,o=0,i=180){const s=[],a=o*Math.PI/180,u=(i*Math.PI/180-a)/(n-1);for(let d=0;d<n;d++){const p=a+d*u,h=e+r*Math.cos(p),m=t+r*Math.sin(p);s.push({x:-h,y:-m})}return s}T(ur,"generateCirclePoints");async function m4(e,t){const{labelStyles:r,nodeStyles:n}=ze(t);t.labelStyle=r;const{shapeSvg:o,bbox:i,label:s}=await He(e,t,$e(t)),a=i.width+(t.padding??0),l=i.height+(t.padding??0),c=Math.max(5,l*.1),{cssStyles:u}=t,d=[...ur(a/2,-l/2,c,30,-90,0),{x:-a/2-c,y:c},...ur(a/2+c*2,-c,c,20,-180,-270),...ur(a/2+c*2,c,c,20,-90,-180),{x:-a/2-c,y:-l/2},...ur(a/2,l/2,c,20,0,90)],p=[...ur(-a/2+c+c/2,-l/2,c,20,-90,-180),{x:a/2-c/2,y:c},...ur(-a/2-c/2,-c,c,20,0,90),...ur(-a/2-c/2,c,c,20,-90,0),{x:a/2-c/2,y:-c},...ur(-a/2+c+c/2,l/2,c,30,-180,-270)],h=[{x:a/2,y:-l/2-c},{x:-a/2,y:-l/2-c},...ur(a/2,-l/2,c,20,-90,0),{x:-a/2-c,y:-c},...ur(a/2+c*2,-c,c,20,-180,-270),...ur(a/2+c*2,c,c,20,-90,-180),{x:-a/2-c,y:l/2},...ur(a/2,l/2,c,20,0,90),{x:-a/2,y:l/2+c},{x:a/2-c-c/2,y:l/2+c},...ur(-a/2+c+c/2,-l/2,c,20,-90,-180),{x:a/2-c/2,y:c},...ur(-a/2-c/2,-c,c,20,0,90),...ur(-a/2-c/2,c,c,20,-90,0),{x:a/2-c/2,y:-c},...ur(-a/2+c+c/2,l/2,c,30,-180,-270)],m=Te.svg(o),g=je(t,{fill:"none"});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const v=ot(d).replace("Z",""),b=m.path(v,g),k=ot(p).replace("Z",""),S=m.path(k,g),_=ot(h),N=m.path(_,{...g}),z=o.insert("g",":first-child");return z.insert(()=>N,":first-child").attr("stroke-opacity",0),z.insert(()=>b,":first-child"),z.insert(()=>S,":first-child"),z.attr("class","text"),u&&t.look!=="handDrawn"&&z.selectAll("path").attr("style",u),n&&t.look!=="handDrawn"&&z.selectAll("path").attr("style",n),z.attr("transform",`translate(${c-c/4}, 0)`),s.attr("transform",`translate(${-a/2+(t.padding??0)/2-(i.x-(i.left??0))},${-l/2+(t.padding??0)/2-(i.y-(i.top??0))})`),Ee(t,z),t.intersect=function(F){return be.polygon(t,h,F)},o}T(m4,"curlyBraces");async function v4(e,t){const{labelStyles:r,nodeStyles:n}=ze(t);t.labelStyle=r;const{shapeSvg:o,bbox:i}=await He(e,t,$e(t)),s=80,a=20,l=Math.max(s,(i.width+(t.padding??0)*2)*1.25,(t==null?void 0:t.width)??0),c=Math.max(a,i.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),u=c/2,{cssStyles:d}=t,p=Te.svg(o),h=je(t,{});t.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");const m=l,g=c,y=m-u,v=g/4,b=[{x:y,y:0},{x:v,y:0},{x:0,y:g/2},{x:v,y:g},{x:y,y:g},...xu(-y,-g/2,u,50,270,90)],x=ot(b),k=p.path(x,h),S=o.insert(()=>k,":first-child");return S.attr("class","basic label-container"),d&&t.look!=="handDrawn"&&S.selectChildren("path").attr("style",d),n&&t.look!=="handDrawn"&&S.selectChildren("path").attr("style",n),S.attr("transform",`translate(${-l/2}, ${-c/2})`),Ee(t,S),t.intersect=function(_){return be.polygon(t,b,_)},o}T(v4,"curvedTrapezoid");var xae=T((e,t,r,n,o,i)=>[`M${e},${t+i}`,`a${o},${i} 0,0,0 ${r},0`,`a${o},${i} 0,0,0 ${-r},0`,`l0,${n}`,`a${o},${i} 0,0,0 ${r},0`,`l0,${-n}`].join(" "),"createCylinderPathD"),wae=T((e,t,r,n,o,i)=>[`M${e},${t+i}`,`M${e+r},${t+i}`,`a${o},${i} 0,0,0 ${-r},0`,`l0,${n}`,`a${o},${i} 0,0,0 ${r},0`,`l0,${-n}`].join(" "),"createOuterCylinderPathD"),kae=T((e,t,r,n,o,i)=>[`M${e-r/2},${-n/2}`,`a${o},${i} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD");async function y4(e,t){const{labelStyles:r,nodeStyles:n}=ze(t);t.labelStyle=r;const{shapeSvg:o,bbox:i,label:s}=await He(e,t,$e(t)),a=Math.max(i.width+t.padding,t.width??0),l=a/2,c=l/(2.5+a/50),u=Math.max(i.height+c+t.padding,t.height??0);let d;const{cssStyles:p}=t;if(t.look==="handDrawn"){const h=Te.svg(o),m=wae(0,0,a,u,l,c),g=kae(0,c,a,u,l,c),y=h.path(m,je(t,{})),v=h.path(g,je(t,{fill:"none"}));d=o.insert(()=>v,":first-child"),d=o.insert(()=>y,":first-child"),d.attr("class","basic label-container"),p&&d.attr("style",p)}else{const h=xae(0,0,a,u,l,c);d=o.insert("path",":first-child").attr("d",h).attr("class","basic label-container").attr("style",Nr(p)).attr("style",n)}return d.attr("label-offset-y",c),d.attr("transform",`translate(${-a/2}, ${-(u/2+c)})`),Ee(t,d),s.attr("transform",`translate(${-(i.width/2)-(i.x-(i.left??0))}, ${-(i.height/2)+(t.padding??0)/1.5-(i.y-(i.top??0))})`),t.intersect=function(h){const m=be.rect(t,h),g=m.x-(t.x??0);if(l!=0&&(Math.abs(g)<(t.width??0)/2||Math.abs(g)==(t.width??0)/2&&Math.abs(m.y-(t.y??0))>(t.height??0)/2-c)){let y=c*c*(1-g*g/(l*l));y>0&&(y=Math.sqrt(y)),y=c-y,h.y-(t.y??0)>0&&(y=-y),m.y+=y}return m},o}T(y4,"cylinder");async function b4(e,t){const{labelStyles:r,nodeStyles:n}=ze(t);t.labelStyle=r;const{shapeSvg:o,bbox:i,label:s}=await He(e,t,$e(t)),a=i.width+t.padding,l=i.height+t.padding,c=l*.2,u=-a/2,d=-l/2-c/2,{cssStyles:p}=t,h=Te.svg(o),m=je(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const g=[{x:u,y:d+c},{x:-u,y:d+c},{x:-u,y:-d},{x:u,y:-d},{x:u,y:d},{x:-u,y:d},{x:-u,y:d+c}],y=h.polygon(g.map(b=>[b.x,b.y]),m),v=o.insert(()=>y,":first-child");return v.attr("class","basic label-container"),p&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",p),n&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",n),s.attr("transform",`translate(${u+(t.padding??0)/2-(i.x-(i.left??0))}, ${d+c+(t.padding??0)/2-(i.y-(i.top??0))})`),Ee(t,v),t.intersect=function(b){return be.rect(t,b)},o}T(b4,"dividedRectangle");async function x4(e,t){var p,h;const{labelStyles:r,nodeStyles:n}=ze(t);t.labelStyle=r;const{shapeSvg:o,bbox:i,halfPadding:s}=await He(e,t,$e(t)),l=i.width/2+s+5,c=i.width/2+s;let u;const{cssStyles:d}=t;if(t.look==="handDrawn"){const m=Te.svg(o),g=je(t,{roughness:.2,strokeWidth:2.5}),y=je(t,{roughness:.2,strokeWidth:1.5}),v=m.circle(0,0,l*2,g),b=m.circle(0,0,c*2,y);u=o.insert("g",":first-child"),u.attr("class",Nr(t.cssClasses)).attr("style",Nr(d)),(p=u.node())==null||p.appendChild(v),(h=u.node())==null||h.appendChild(b)}else{u=o.insert("g",":first-child");const m=u.insert("circle",":first-child"),g=u.insert("circle");u.attr("class","basic label-container").attr("style",n),m.attr("class","outer-circle").attr("style",n).attr("r",l).attr("cx",0).attr("cy",0),g.attr("class","inner-circle").attr("style",n).attr("r",c).attr("cx",0).attr("cy",0)}return Ee(t,u),t.intersect=function(m){return ie.info("DoubleCircle intersect",t,l,m),be.circle(t,l,m)},o}T(x4,"doublecircle");function w4(e,t,{config:{themeVariables:r}}){const{labelStyles:n,nodeStyles:o}=ze(t);t.label="",t.labelStyle=n;const i=e.insert("g").attr("class",$e(t)).attr("id",t.domId??t.id),s=7,{cssStyles:a}=t,l=Te.svg(i),{nodeBorder:c}=r,u=je(t,{fillStyle:"solid"});t.look!=="handDrawn"&&(u.roughness=0);const d=l.circle(0,0,s*2,u),p=i.insert(()=>d,":first-child");return p.selectAll("path").attr("style",`fill: ${c} !important;`),a&&a.length>0&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",a),o&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",o),Ee(t,p),t.intersect=function(h){return ie.info("filledCircle intersect",t,{radius:s,point:h}),be.circle(t,s,h)},i}T(w4,"filledCircle");async function k4(e,t){const{labelStyles:r,nodeStyles:n}=ze(t);t.labelStyle=r;const{shapeSvg:o,bbox:i,label:s}=await He(e,t,$e(t)),a=i.width+(t.padding??0),l=a+i.height,c=a+i.height,u=[{x:0,y:-l},{x:c,y:-l},{x:c/2,y:0}],{cssStyles:d}=t,p=Te.svg(o),h=je(t,{});t.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");const m=ot(u),g=p.path(m,h),y=o.insert(()=>g,":first-child").attr("transform",`translate(${-l/2}, ${l/2})`);return d&&t.look!=="handDrawn"&&y.selectChildren("path").attr("style",d),n&&t.look!=="handDrawn"&&y.selectChildren("path").attr("style",n),t.width=a,t.height=l,Ee(t,y),s.attr("transform",`translate(${-i.width/2-(i.x-(i.left??0))}, ${-l/2+(t.padding??0)/2+(i.y-(i.top??0))})`),t.intersect=function(v){return ie.info("Triangle intersect",t,u,v),be.polygon(t,u,v)},o}T(k4,"flippedTriangle");function S4(e,t,{dir:r,config:{state:n,themeVariables:o}}){const{nodeStyles:i}=ze(t);t.label="";const s=e.insert("g").attr("class",$e(t)).attr("id",t.domId??t.id),{cssStyles:a}=t;let l=Math.max(70,(t==null?void 0:t.width)??0),c=Math.max(10,(t==null?void 0:t.height)??0);r==="LR"&&(l=Math.max(10,(t==null?void 0:t.width)??0),c=Math.max(70,(t==null?void 0:t.height)??0));const u=-1*l/2,d=-1*c/2,p=Te.svg(s),h=je(t,{stroke:o.lineColor,fill:o.lineColor});t.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");const m=p.rectangle(u,d,l,c,h),g=s.insert(()=>m,":first-child");a&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",a),i&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",i),Ee(t,g);const y=(n==null?void 0:n.padding)??0;return t.width&&t.height&&(t.width+=y/2||0,t.height+=y/2||0),t.intersect=function(v){return be.rect(t,v)},s}T(S4,"forkJoin");async function C4(e,t){const{labelStyles:r,nodeStyles:n}=ze(t);t.labelStyle=r;const o=80,i=50,{shapeSvg:s,bbox:a}=await He(e,t,$e(t)),l=Math.max(o,a.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),c=Math.max(i,a.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),u=c/2,{cssStyles:d}=t,p=Te.svg(s),h=je(t,{});t.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");const m=[{x:-l/2,y:-c/2},{x:l/2-u,y:-c/2},...xu(-l/2+u,0,u,50,90,270),{x:l/2-u,y:c/2},{x:-l/2,y:c/2}],g=ot(m),y=p.path(g,h),v=s.insert(()=>y,":first-child");return v.attr("class","basic label-container"),d&&t.look!=="handDrawn"&&v.selectChildren("path").attr("style",d),n&&t.look!=="handDrawn"&&v.selectChildren("path").attr("style",n),Ee(t,v),t.intersect=function(b){return ie.info("Pill intersect",t,{radius:u,point:b}),be.polygon(t,m,b)},s}T(C4,"halfRoundedRectangle");async function _4(e,t){const{labelStyles:r,nodeStyles:n}=ze(t);t.labelStyle=r;const{shapeSvg:o,bbox:i}=await He(e,t,$e(t)),s=i.height+(t.padding??0),a=i.width+(t.padding??0)*2.5,{cssStyles:l}=t,c=Te.svg(o),u=je(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let d=a/2;const p=d/6;d=d+p;const h=s/2,m=h/2,g=d-m,y=[{x:-g,y:-h},{x:0,y:-h},{x:g,y:-h},{x:d,y:0},{x:g,y:h},{x:0,y:h},{x:-g,y:h},{x:-d,y:0}],v=ot(y),b=c.path(v,u),x=o.insert(()=>b,":first-child");return x.attr("class","basic label-container"),l&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",l),n&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",n),t.width=a,t.height=s,Ee(t,x),t.intersect=function(k){return be.polygon(t,y,k)},o}T(_4,"hexagon");async function B4(e,t){const{labelStyles:r,nodeStyles:n}=ze(t);t.label="",t.labelStyle=r;const{shapeSvg:o}=await He(e,t,$e(t)),i=Math.max(30,(t==null?void 0:t.width)??0),s=Math.max(30,(t==null?void 0:t.height)??0),{cssStyles:a}=t,l=Te.svg(o),c=je(t,{});t.look!=="handDrawn"&&(c.roughness=0,c.fillStyle="solid");const u=[{x:0,y:0},{x:i,y:0},{x:0,y:s},{x:i,y:s}],d=ot(u),p=l.path(d,c),h=o.insert(()=>p,":first-child");return h.attr("class","basic label-container"),a&&t.look!=="handDrawn"&&h.selectChildren("path").attr("style",a),n&&t.look!=="handDrawn"&&h.selectChildren("path").attr("style",n),h.attr("transform",`translate(${-i/2}, ${-s/2})`),Ee(t,h),t.intersect=function(m){return ie.info("Pill intersect",t,{points:u}),be.polygon(t,u,m)},o}T(B4,"hourglass");async function T4(e,t,{config:{themeVariables:r,flowchart:n}}){const{labelStyles:o}=ze(t);t.labelStyle=o;const i=t.assetHeight??48,s=t.assetWidth??48,a=Math.max(i,s),l=n==null?void 0:n.wrappingWidth;t.width=Math.max(a,l??0);const{shapeSvg:c,bbox:u,label:d}=await He(e,t,"icon-shape default"),p=t.pos==="t",h=a,m=a,{nodeBorder:g}=r,{stylesMap:y}=Nl(t),v=-m/2,b=-h/2,x=t.label?8:0,k=Te.svg(c),S=je(t,{stroke:"none",fill:"none"});t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const _=k.rectangle(v,b,m,h,S),N=Math.max(m,u.width),z=h+u.height+x,F=k.rectangle(-N/2,-z/2,N,z,{...S,fill:"transparent",stroke:"none"}),I=c.insert(()=>_,":first-child"),H=c.insert(()=>F);if(t.icon){const A=c.append("g");A.html(`<g>${await Wu(t.icon,{height:a,width:a,fallbackPrefix:""})}</g>`);const P=A.node().getBBox(),C=P.width,R=P.height,O=P.x,D=P.y;A.attr("transform",`translate(${-C/2-O},${p?u.height/2+x/2-R/2-D:-u.height/2-x/2-R/2-D})`),A.attr("style",`color: ${y.get("stroke")??g};`)}return d.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))},${p?-z/2:z/2-u.height})`),I.attr("transform",`translate(0,${p?u.height/2+x/2:-u.height/2-x/2})`),Ee(t,H),t.intersect=function(A){if(ie.info("iconSquare intersect",t,A),!t.label)return be.rect(t,A);const P=t.x??0,C=t.y??0,R=t.height??0;let O=[];return p?O=[{x:P-u.width/2,y:C-R/2},{x:P+u.width/2,y:C-R/2},{x:P+u.width/2,y:C-R/2+u.height+x},{x:P+m/2,y:C-R/2+u.height+x},{x:P+m/2,y:C+R/2},{x:P-m/2,y:C+R/2},{x:P-m/2,y:C-R/2+u.height+x},{x:P-u.width/2,y:C-R/2+u.height+x}]:O=[{x:P-m/2,y:C-R/2},{x:P+m/2,y:C-R/2},{x:P+m/2,y:C-R/2+h},{x:P+u.width/2,y:C-R/2+h},{x:P+u.width/2/2,y:C+R/2},{x:P-u.width/2,y:C+R/2},{x:P-u.width/2,y:C-R/2+h},{x:P-m/2,y:C-R/2+h}],be.polygon(t,O,A)},c}T(T4,"icon");async function N4(e,t,{config:{themeVariables:r,flowchart:n}}){const{labelStyles:o}=ze(t);t.labelStyle=o;const i=t.assetHeight??48,s=t.assetWidth??48,a=Math.max(i,s),l=n==null?void 0:n.wrappingWidth;t.width=Math.max(a,l??0);const{shapeSvg:c,bbox:u,label:d}=await He(e,t,"icon-shape default"),p=20,h=t.label?8:0,m=t.pos==="t",{nodeBorder:g,mainBkg:y}=r,{stylesMap:v}=Nl(t),b=Te.svg(c),x=je(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const k=v.get("fill");x.stroke=k??y;const S=c.append("g");t.icon&&S.html(`<g>${await Wu(t.icon,{height:a,width:a,fallbackPrefix:""})}</g>`);const _=S.node().getBBox(),N=_.width,z=_.height,F=_.x,I=_.y,H=Math.max(N,z)*Math.SQRT2+p*2,A=b.circle(0,0,H,x),P=Math.max(H,u.width),C=H+u.height+h,R=b.rectangle(-P/2,-C/2,P,C,{...x,fill:"transparent",stroke:"none"}),O=c.insert(()=>A,":first-child"),D=c.insert(()=>R);return S.attr("transform",`translate(${-N/2-F},${m?u.height/2+h/2-z/2-I:-u.height/2-h/2-z/2-I})`),S.attr("style",`color: ${v.get("stroke")??g};`),d.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))},${m?-C/2:C/2-u.height})`),O.attr("transform",`translate(0,${m?u.height/2+h/2:-u.height/2-h/2})`),Ee(t,D),t.intersect=function(M){return ie.info("iconSquare intersect",t,M),be.rect(t,M)},c}T(N4,"iconCircle");async function j4(e,t,{config:{themeVariables:r,flowchart:n}}){const{labelStyles:o}=ze(t);t.labelStyle=o;const i=t.assetHeight??48,s=t.assetWidth??48,a=Math.max(i,s),l=n==null?void 0:n.wrappingWidth;t.width=Math.max(a,l??0);const{shapeSvg:c,bbox:u,halfPadding:d,label:p}=await He(e,t,"icon-shape default"),h=t.pos==="t",m=a+d*2,g=a+d*2,{nodeBorder:y,mainBkg:v}=r,{stylesMap:b}=Nl(t),x=-g/2,k=-m/2,S=t.label?8:0,_=Te.svg(c),N=je(t,{});t.look!=="handDrawn"&&(N.roughness=0,N.fillStyle="solid");const z=b.get("fill");N.stroke=z??v;const F=_.path(Ji(x,k,g,m,5),N),I=Math.max(g,u.width),H=m+u.height+S,A=_.rectangle(-I/2,-H/2,I,H,{...N,fill:"transparent",stroke:"none"}),P=c.insert(()=>F,":first-child").attr("class","icon-shape2"),C=c.insert(()=>A);if(t.icon){const R=c.append("g");R.html(`<g>${await Wu(t.icon,{height:a,width:a,fallbackPrefix:""})}</g>`);const O=R.node().getBBox(),D=O.width,M=O.height,$=O.x,X=O.y;R.attr("transform",`translate(${-D/2-$},${h?u.height/2+S/2-M/2-X:-u.height/2-S/2-M/2-X})`),R.attr("style",`color: ${b.get("stroke")??y};`)}return p.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))},${h?-H/2:H/2-u.height})`),P.attr("transform",`translate(0,${h?u.height/2+S/2:-u.height/2-S/2})`),Ee(t,C),t.intersect=function(R){if(ie.info("iconSquare intersect",t,R),!t.label)return be.rect(t,R);const O=t.x??0,D=t.y??0,M=t.height??0;let $=[];return h?$=[{x:O-u.width/2,y:D-M/2},{x:O+u.width/2,y:D-M/2},{x:O+u.width/2,y:D-M/2+u.height+S},{x:O+g/2,y:D-M/2+u.height+S},{x:O+g/2,y:D+M/2},{x:O-g/2,y:D+M/2},{x:O-g/2,y:D-M/2+u.height+S},{x:O-u.width/2,y:D-M/2+u.height+S}]:$=[{x:O-g/2,y:D-M/2},{x:O+g/2,y:D-M/2},{x:O+g/2,y:D-M/2+m},{x:O+u.width/2,y:D-M/2+m},{x:O+u.width/2/2,y:D+M/2},{x:O-u.width/2,y:D+M/2},{x:O-u.width/2,y:D-M/2+m},{x:O-g/2,y:D-M/2+m}],be.polygon(t,$,R)},c}T(j4,"iconRounded");async function z4(e,t,{config:{themeVariables:r,flowchart:n}}){const{labelStyles:o}=ze(t);t.labelStyle=o;const i=t.assetHeight??48,s=t.assetWidth??48,a=Math.max(i,s),l=n==null?void 0:n.wrappingWidth;t.width=Math.max(a,l??0);const{shapeSvg:c,bbox:u,halfPadding:d,label:p}=await He(e,t,"icon-shape default"),h=t.pos==="t",m=a+d*2,g=a+d*2,{nodeBorder:y,mainBkg:v}=r,{stylesMap:b}=Nl(t),x=-g/2,k=-m/2,S=t.label?8:0,_=Te.svg(c),N=je(t,{});t.look!=="handDrawn"&&(N.roughness=0,N.fillStyle="solid");const z=b.get("fill");N.stroke=z??v;const F=_.path(Ji(x,k,g,m,.1),N),I=Math.max(g,u.width),H=m+u.height+S,A=_.rectangle(-I/2,-H/2,I,H,{...N,fill:"transparent",stroke:"none"}),P=c.insert(()=>F,":first-child"),C=c.insert(()=>A);if(t.icon){const R=c.append("g");R.html(`<g>${await Wu(t.icon,{height:a,width:a,fallbackPrefix:""})}</g>`);const O=R.node().getBBox(),D=O.width,M=O.height,$=O.x,X=O.y;R.attr("transform",`translate(${-D/2-$},${h?u.height/2+S/2-M/2-X:-u.height/2-S/2-M/2-X})`),R.attr("style",`color: ${b.get("stroke")??y};`)}return p.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))},${h?-H/2:H/2-u.height})`),P.attr("transform",`translate(0,${h?u.height/2+S/2:-u.height/2-S/2})`),Ee(t,C),t.intersect=function(R){if(ie.info("iconSquare intersect",t,R),!t.label)return be.rect(t,R);const O=t.x??0,D=t.y??0,M=t.height??0;let $=[];return h?$=[{x:O-u.width/2,y:D-M/2},{x:O+u.width/2,y:D-M/2},{x:O+u.width/2,y:D-M/2+u.height+S},{x:O+g/2,y:D-M/2+u.height+S},{x:O+g/2,y:D+M/2},{x:O-g/2,y:D+M/2},{x:O-g/2,y:D-M/2+u.height+S},{x:O-u.width/2,y:D-M/2+u.height+S}]:$=[{x:O-g/2,y:D-M/2},{x:O+g/2,y:D-M/2},{x:O+g/2,y:D-M/2+m},{x:O+u.width/2,y:D-M/2+m},{x:O+u.width/2/2,y:D+M/2},{x:O-u.width/2,y:D+M/2},{x:O-u.width/2,y:D-M/2+m},{x:O-g/2,y:D-M/2+m}],be.polygon(t,$,R)},c}T(z4,"iconSquare");async function E4(e,t,{config:{flowchart:r}}){const n=new Image;n.src=(t==null?void 0:t.img)??"",await n.decode();const o=Number(n.naturalWidth.toString().replace("px","")),i=Number(n.naturalHeight.toString().replace("px",""));t.imageAspectRatio=o/i;const{labelStyles:s}=ze(t);t.labelStyle=s;const a=r==null?void 0:r.wrappingWidth;t.defaultWidth=r==null?void 0:r.wrappingWidth;const l=Math.max(t.label?a??0:0,(t==null?void 0:t.assetWidth)??o),c=t.constraint==="on"&&t!=null&&t.assetHeight?t.assetHeight*t.imageAspectRatio:l,u=t.constraint==="on"?c/t.imageAspectRatio:(t==null?void 0:t.assetHeight)??i;t.width=Math.max(c,a??0);const{shapeSvg:d,bbox:p,label:h}=await He(e,t,"image-shape default"),m=t.pos==="t",g=-c/2,y=-u/2,v=t.label?8:0,b=Te.svg(d),x=je(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const k=b.rectangle(g,y,c,u,x),S=Math.max(c,p.width),_=u+p.height+v,N=b.rectangle(-S/2,-_/2,S,_,{...x,fill:"none",stroke:"none"}),z=d.insert(()=>k,":first-child"),F=d.insert(()=>N);if(t.img){const I=d.append("image");I.attr("href",t.img),I.attr("width",c),I.attr("height",u),I.attr("preserveAspectRatio","none"),I.attr("transform",`translate(${-c/2},${m?_/2-u:-_/2})`)}return h.attr("transform",`translate(${-p.width/2-(p.x-(p.left??0))},${m?-u/2-p.height/2-v/2:u/2-p.height/2+v/2})`),z.attr("transform",`translate(0,${m?p.height/2+v/2:-p.height/2-v/2})`),Ee(t,F),t.intersect=function(I){if(ie.info("iconSquare intersect",t,I),!t.label)return be.rect(t,I);const H=t.x??0,A=t.y??0,P=t.height??0;let C=[];return m?C=[{x:H-p.width/2,y:A-P/2},{x:H+p.width/2,y:A-P/2},{x:H+p.width/2,y:A-P/2+p.height+v},{x:H+c/2,y:A-P/2+p.height+v},{x:H+c/2,y:A+P/2},{x:H-c/2,y:A+P/2},{x:H-c/2,y:A-P/2+p.height+v},{x:H-p.width/2,y:A-P/2+p.height+v}]:C=[{x:H-c/2,y:A-P/2},{x:H+c/2,y:A-P/2},{x:H+c/2,y:A-P/2+u},{x:H+p.width/2,y:A-P/2+u},{x:H+p.width/2/2,y:A+P/2},{x:H-p.width/2,y:A+P/2},{x:H-p.width/2,y:A-P/2+u},{x:H-c/2,y:A-P/2+u}],be.polygon(t,C,I)},d}T(E4,"imageSquare");async function R4(e,t){const{labelStyles:r,nodeStyles:n}=ze(t);t.labelStyle=r;const{shapeSvg:o,bbox:i}=await He(e,t,$e(t)),s=Math.max(i.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),a=Math.max(i.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),l=[{x:0,y:0},{x:s,y:0},{x:s+3*a/6,y:-a},{x:-3*a/6,y:-a}];let c;const{cssStyles:u}=t;if(t.look==="handDrawn"){const d=Te.svg(o),p=je(t,{}),h=ot(l),m=d.path(h,p);c=o.insert(()=>m,":first-child").attr("transform",`translate(${-s/2}, ${a/2})`),u&&c.attr("style",u)}else c=es(o,s,a,l);return n&&c.attr("style",n),t.width=s,t.height=a,Ee(t,c),t.intersect=function(d){return be.polygon(t,l,d)},o}T(R4,"inv_trapezoid");async function Ip(e,t,r){const{labelStyles:n,nodeStyles:o}=ze(t);t.labelStyle=n;const{shapeSvg:i,bbox:s}=await He(e,t,$e(t)),a=Math.max(s.width+r.labelPaddingX*2,(t==null?void 0:t.width)||0),l=Math.max(s.height+r.labelPaddingY*2,(t==null?void 0:t.height)||0),c=-a/2,u=-l/2;let d,{rx:p,ry:h}=t;const{cssStyles:m}=t;if(r!=null&&r.rx&&r.ry&&(p=r.rx,h=r.ry),t.look==="handDrawn"){const g=Te.svg(i),y=je(t,{}),v=p||h?g.path(Ji(c,u,a,l,p||0),y):g.rectangle(c,u,a,l,y);d=i.insert(()=>v,":first-child"),d.attr("class","basic label-container").attr("style",Nr(m))}else d=i.insert("rect",":first-child"),d.attr("class","basic label-container").attr("style",o).attr("rx",Nr(p)).attr("ry",Nr(h)).attr("x",c).attr("y",u).attr("width",a).attr("height",l);return Ee(t,d),t.calcIntersect=function(g,y){return be.rect(g,y)},t.intersect=function(g){return be.rect(t,g)},i}T(Ip,"drawRect");async function A4(e,t){const{shapeSvg:r,bbox:n,label:o}=await He(e,t,"label"),i=r.insert("rect",":first-child");return i.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),o.attr("transform",`translate(${-(n.width/2)-(n.x-(n.left??0))}, ${-(n.height/2)-(n.y-(n.top??0))})`),Ee(t,i),t.intersect=function(l){return be.rect(t,l)},r}T(A4,"labelRect");async function F4(e,t){const{labelStyles:r,nodeStyles:n}=ze(t);t.labelStyle=r;const{shapeSvg:o,bbox:i}=await He(e,t,$e(t)),s=Math.max(i.width+(t.padding??0),(t==null?void 0:t.width)??0),a=Math.max(i.height+(t.padding??0),(t==null?void 0:t.height)??0),l=[{x:0,y:0},{x:s+3*a/6,y:0},{x:s,y:-a},{x:-(3*a)/6,y:-a}];let c;const{cssStyles:u}=t;if(t.look==="handDrawn"){const d=Te.svg(o),p=je(t,{}),h=ot(l),m=d.path(h,p);c=o.insert(()=>m,":first-child").attr("transform",`translate(${-s/2}, ${a/2})`),u&&c.attr("style",u)}else c=es(o,s,a,l);return n&&c.attr("style",n),t.width=s,t.height=a,Ee(t,c),t.intersect=function(d){return be.polygon(t,l,d)},o}T(F4,"lean_left");async function P4(e,t){const{labelStyles:r,nodeStyles:n}=ze(t);t.labelStyle=r;const{shapeSvg:o,bbox:i}=await He(e,t,$e(t)),s=Math.max(i.width+(t.padding??0),(t==null?void 0:t.width)??0),a=Math.max(i.height+(t.padding??0),(t==null?void 0:t.height)??0),l=[{x:-3*a/6,y:0},{x:s,y:0},{x:s+3*a/6,y:-a},{x:0,y:-a}];let c;const{cssStyles:u}=t;if(t.look==="handDrawn"){const d=Te.svg(o),p=je(t,{}),h=ot(l),m=d.path(h,p);c=o.insert(()=>m,":first-child").attr("transform",`translate(${-s/2}, ${a/2})`),u&&c.attr("style",u)}else c=es(o,s,a,l);return n&&c.attr("style",n),t.width=s,t.height=a,Ee(t,c),t.intersect=function(d){return be.polygon(t,l,d)},o}T(P4,"lean_right");function I4(e,t){const{labelStyles:r,nodeStyles:n}=ze(t);t.label="",t.labelStyle=r;const o=e.insert("g").attr("class",$e(t)).attr("id",t.domId??t.id),{cssStyles:i}=t,s=Math.max(35,(t==null?void 0:t.width)??0),a=Math.max(35,(t==null?void 0:t.height)??0),l=7,c=[{x:s,y:0},{x:0,y:a+l/2},{x:s-2*l,y:a+l/2},{x:0,y:2*a},{x:s,y:a-l/2},{x:2*l,y:a-l/2}],u=Te.svg(o),d=je(t,{});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const p=ot(c),h=u.path(p,d),m=o.insert(()=>h,":first-child");return i&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",i),n&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",n),m.attr("transform",`translate(-${s/2},${-a})`),Ee(t,m),t.intersect=function(g){return ie.info("lightningBolt intersect",t,g),be.polygon(t,c,g)},o}T(I4,"lightningBolt");var Sae=T((e,t,r,n,o,i,s)=>[`M${e},${t+i}`,`a${o},${i} 0,0,0 ${r},0`,`a${o},${i} 0,0,0 ${-r},0`,`l0,${n}`,`a${o},${i} 0,0,0 ${r},0`,`l0,${-n}`,`M${e},${t+i+s}`,`a${o},${i} 0,0,0 ${r},0`].join(" "),"createCylinderPathD"),Cae=T((e,t,r,n,o,i,s)=>[`M${e},${t+i}`,`M${e+r},${t+i}`,`a${o},${i} 0,0,0 ${-r},0`,`l0,${n}`,`a${o},${i} 0,0,0 ${r},0`,`l0,${-n}`,`M${e},${t+i+s}`,`a${o},${i} 0,0,0 ${r},0`].join(" "),"createOuterCylinderPathD"),_ae=T((e,t,r,n,o,i)=>[`M${e-r/2},${-n/2}`,`a${o},${i} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD");async function M4(e,t){const{labelStyles:r,nodeStyles:n}=ze(t);t.labelStyle=r;const{shapeSvg:o,bbox:i,label:s}=await He(e,t,$e(t)),a=Math.max(i.width+(t.padding??0),t.width??0),l=a/2,c=l/(2.5+a/50),u=Math.max(i.height+c+(t.padding??0),t.height??0),d=u*.1;let p;const{cssStyles:h}=t;if(t.look==="handDrawn"){const m=Te.svg(o),g=Cae(0,0,a,u,l,c,d),y=_ae(0,c,a,u,l,c),v=je(t,{}),b=m.path(g,v),x=m.path(y,v);o.insert(()=>x,":first-child").attr("class","line"),p=o.insert(()=>b,":first-child"),p.attr("class","basic label-container"),h&&p.attr("style",h)}else{const m=Sae(0,0,a,u,l,c,d);p=o.insert("path",":first-child").attr("d",m).attr("class","basic label-container").attr("style",Nr(h)).attr("style",n)}return p.attr("label-offset-y",c),p.attr("transform",`translate(${-a/2}, ${-(u/2+c)})`),Ee(t,p),s.attr("transform",`translate(${-(i.width/2)-(i.x-(i.left??0))}, ${-(i.height/2)+c-(i.y-(i.top??0))})`),t.intersect=function(m){const g=be.rect(t,m),y=g.x-(t.x??0);if(l!=0&&(Math.abs(y)<(t.width??0)/2||Math.abs(y)==(t.width??0)/2&&Math.abs(g.y-(t.y??0))>(t.height??0)/2-c)){let v=c*c*(1-y*y/(l*l));v>0&&(v=Math.sqrt(v)),v=c-v,m.y-(t.y??0)>0&&(v=-v),g.y+=v}return g},o}T(M4,"linedCylinder");async function D4(e,t){const{labelStyles:r,nodeStyles:n}=ze(t);t.labelStyle=r;const{shapeSvg:o,bbox:i,label:s}=await He(e,t,$e(t)),a=Math.max(i.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),l=Math.max(i.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),c=l/4,u=l+c,{cssStyles:d}=t,p=Te.svg(o),h=je(t,{});t.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");const m=[{x:-a/2-a/2*.1,y:-u/2},{x:-a/2-a/2*.1,y:u/2},...Vi(-a/2-a/2*.1,u/2,a/2+a/2*.1,u/2,c,.8),{x:a/2+a/2*.1,y:-u/2},{x:-a/2-a/2*.1,y:-u/2},{x:-a/2,y:-u/2},{x:-a/2,y:u/2*1.1},{x:-a/2,y:-u/2}],g=p.polygon(m.map(v=>[v.x,v.y]),h),y=o.insert(()=>g,":first-child");return y.attr("class","basic label-container"),d&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",d),n&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",n),y.attr("transform",`translate(0,${-c/2})`),s.attr("transform",`translate(${-a/2+(t.padding??0)+a/2*.1/2-(i.x-(i.left??0))},${-l/2+(t.padding??0)-c/2-(i.y-(i.top??0))})`),Ee(t,y),t.intersect=function(v){return be.polygon(t,m,v)},o}T(D4,"linedWaveEdgedRect");async function L4(e,t){const{labelStyles:r,nodeStyles:n}=ze(t);t.labelStyle=r;const{shapeSvg:o,bbox:i,label:s}=await He(e,t,$e(t)),a=Math.max(i.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),l=Math.max(i.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),c=5,u=-a/2,d=-l/2,{cssStyles:p}=t,h=Te.svg(o),m=je(t,{}),g=[{x:u-c,y:d+c},{x:u-c,y:d+l+c},{x:u+a-c,y:d+l+c},{x:u+a-c,y:d+l},{x:u+a,y:d+l},{x:u+a,y:d+l-c},{x:u+a+c,y:d+l-c},{x:u+a+c,y:d-c},{x:u+c,y:d-c},{x:u+c,y:d},{x:u,y:d},{x:u,y:d+c}],y=[{x:u,y:d+c},{x:u+a-c,y:d+c},{x:u+a-c,y:d+l},{x:u+a,y:d+l},{x:u+a,y:d},{x:u,y:d}];t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const v=ot(g),b=h.path(v,m),x=ot(y),k=h.path(x,{...m,fill:"none"}),S=o.insert(()=>k,":first-child");return S.insert(()=>b,":first-child"),S.attr("class","basic label-container"),p&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",p),n&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",n),s.attr("transform",`translate(${-(i.width/2)-c-(i.x-(i.left??0))}, ${-(i.height/2)+c-(i.y-(i.top??0))})`),Ee(t,S),t.intersect=function(_){return be.polygon(t,g,_)},o}T(L4,"multiRect");async function O4(e,t){const{labelStyles:r,nodeStyles:n}=ze(t);t.labelStyle=r;const{shapeSvg:o,bbox:i,label:s}=await He(e,t,$e(t)),a=Math.max(i.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),l=Math.max(i.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),c=l/4,u=l+c,d=-a/2,p=-u/2,h=5,{cssStyles:m}=t,g=Vi(d-h,p+u+h,d+a-h,p+u+h,c,.8),y=g==null?void 0:g[g.length-1],v=[{x:d-h,y:p+h},{x:d-h,y:p+u+h},...g,{x:d+a-h,y:y.y-h},{x:d+a,y:y.y-h},{x:d+a,y:y.y-2*h},{x:d+a+h,y:y.y-2*h},{x:d+a+h,y:p-h},{x:d+h,y:p-h},{x:d+h,y:p},{x:d,y:p},{x:d,y:p+h}],b=[{x:d,y:p+h},{x:d+a-h,y:p+h},{x:d+a-h,y:y.y-h},{x:d+a,y:y.y-h},{x:d+a,y:p},{x:d,y:p}],x=Te.svg(o),k=je(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const S=ot(v),_=x.path(S,k),N=ot(b),z=x.path(N,k),F=o.insert(()=>_,":first-child");return F.insert(()=>z),F.attr("class","basic label-container"),m&&t.look!=="handDrawn"&&F.selectAll("path").attr("style",m),n&&t.look!=="handDrawn"&&F.selectAll("path").attr("style",n),F.attr("transform",`translate(0,${-c/2})`),s.attr("transform",`translate(${-(i.width/2)-h-(i.x-(i.left??0))}, ${-(i.height/2)+h-c/2-(i.y-(i.top??0))})`),Ee(t,F),t.intersect=function(I){return be.polygon(t,v,I)},o}T(O4,"multiWaveEdgedRectangle");async function q4(e,t,{config:{themeVariables:r}}){var b;const{labelStyles:n,nodeStyles:o}=ze(t);t.labelStyle=n,t.useHtmlLabels||((b=Br().flowchart)==null?void 0:b.htmlLabels)!==!1||(t.centerLabel=!0);const{shapeSvg:s,bbox:a,label:l}=await He(e,t,$e(t)),c=Math.max(a.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),u=Math.max(a.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),d=-c/2,p=-u/2,{cssStyles:h}=t,m=Te.svg(s),g=je(t,{fill:r.noteBkgColor,stroke:r.noteBorderColor});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const y=m.rectangle(d,p,c,u,g),v=s.insert(()=>y,":first-child");return v.attr("class","basic label-container"),h&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",h),o&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",o),l.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))}, ${-(a.height/2)-(a.y-(a.top??0))})`),Ee(t,v),t.intersect=function(x){return be.rect(t,x)},s}T(q4,"note");var Bae=T((e,t,r)=>[`M${e+r/2},${t}`,`L${e+r},${t-r/2}`,`L${e+r/2},${t-r}`,`L${e},${t-r/2}`,"Z"].join(" "),"createDecisionBoxPathD");async function $4(e,t){const{labelStyles:r,nodeStyles:n}=ze(t);t.labelStyle=r;const{shapeSvg:o,bbox:i}=await He(e,t,$e(t)),s=i.width+t.padding,a=i.height+t.padding,l=s+a,c=.5,u=[{x:l/2,y:0},{x:l,y:-l/2},{x:l/2,y:-l},{x:0,y:-l/2}];let d;const{cssStyles:p}=t;if(t.look==="handDrawn"){const h=Te.svg(o),m=je(t,{}),g=Bae(0,0,l),y=h.path(g,m);d=o.insert(()=>y,":first-child").attr("transform",`translate(${-l/2+c}, ${l/2})`),p&&d.attr("style",p)}else d=es(o,l,l,u),d.attr("transform",`translate(${-l/2+c}, ${l/2})`);return n&&d.attr("style",n),Ee(t,d),t.calcIntersect=function(h,m){const g=h.width,y=[{x:g/2,y:0},{x:g,y:-g/2},{x:g/2,y:-g},{x:0,y:-g/2}],v=be.polygon(h,y,m);return{x:v.x-.5,y:v.y-.5}},t.intersect=function(h){return this.calcIntersect(t,h)},o}T($4,"question");async function H4(e,t){const{labelStyles:r,nodeStyles:n}=ze(t);t.labelStyle=r;const{shapeSvg:o,bbox:i,label:s}=await He(e,t,$e(t)),a=Math.max(i.width+(t.padding??0),(t==null?void 0:t.width)??0),l=Math.max(i.height+(t.padding??0),(t==null?void 0:t.height)??0),c=-a/2,u=-l/2,d=u/2,p=[{x:c+d,y:u},{x:c,y:0},{x:c+d,y:-u},{x:-c,y:-u},{x:-c,y:u}],{cssStyles:h}=t,m=Te.svg(o),g=je(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const y=ot(p),v=m.path(y,g),b=o.insert(()=>v,":first-child");return b.attr("class","basic label-container"),h&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",h),n&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",n),b.attr("transform",`translate(${-d/2},0)`),s.attr("transform",`translate(${-d/2-i.width/2-(i.x-(i.left??0))}, ${-(i.height/2)-(i.y-(i.top??0))})`),Ee(t,b),t.intersect=function(x){return be.polygon(t,p,x)},o}T(H4,"rect_left_inv_arrow");async function W4(e,t){var z,F;const{labelStyles:r,nodeStyles:n}=ze(t);t.labelStyle=r;let o;t.cssClasses?o="node "+t.cssClasses:o="node default";const i=e.insert("g").attr("class",o).attr("id",t.domId||t.id),s=i.insert("g"),a=i.insert("g").attr("class","label").attr("style",n),l=t.description,c=t.label,u=a.node().appendChild(await bs(c,t.labelStyle,!0,!0));let d={width:0,height:0};if(ir((F=(z=ft())==null?void 0:z.flowchart)==null?void 0:F.htmlLabels)){const I=u.children[0],H=lt(u);d=I.getBoundingClientRect(),H.attr("width",d.width),H.attr("height",d.height)}ie.info("Text 2",l);const p=l||[],h=u.getBBox(),m=a.node().appendChild(await bs(p.join?p.join("<br/>"):p,t.labelStyle,!0,!0)),g=m.children[0],y=lt(m);d=g.getBoundingClientRect(),y.attr("width",d.width),y.attr("height",d.height);const v=(t.padding||0)/2;lt(m).attr("transform","translate( "+(d.width>h.width?0:(h.width-d.width)/2)+", "+(h.height+v+5)+")"),lt(u).attr("transform","translate( "+(d.width<h.width?0:-(h.width-d.width)/2)+", 0)"),d=a.node().getBBox(),a.attr("transform","translate("+-d.width/2+", "+(-d.height/2-v+3)+")");const b=d.width+(t.padding||0),x=d.height+(t.padding||0),k=-d.width/2-v,S=-d.height/2-v;let _,N;if(t.look==="handDrawn"){const I=Te.svg(i),H=je(t,{}),A=I.path(Ji(k,S,b,x,t.rx||0),H),P=I.line(-d.width/2-v,-d.height/2-v+h.height+v,d.width/2+v,-d.height/2-v+h.height+v,H);N=i.insert(()=>(ie.debug("Rough node insert CXC",A),P),":first-child"),_=i.insert(()=>(ie.debug("Rough node insert CXC",A),A),":first-child")}else _=s.insert("rect",":first-child"),N=s.insert("line"),_.attr("class","outer title-state").attr("style",n).attr("x",-d.width/2-v).attr("y",-d.height/2-v).attr("width",d.width+(t.padding||0)).attr("height",d.height+(t.padding||0)),N.attr("class","divider").attr("x1",-d.width/2-v).attr("x2",d.width/2+v).attr("y1",-d.height/2-v+h.height+v).attr("y2",-d.height/2-v+h.height+v);return Ee(t,_),t.intersect=function(I){return be.rect(t,I)},i}T(W4,"rectWithTitle");function mc(e,t,r,n,o,i,s){const l=(e+r)/2,c=(t+n)/2,u=Math.atan2(n-t,r-e),d=(r-e)/2,p=(n-t)/2,h=d/o,m=p/i,g=Math.sqrt(h**2+m**2);if(g>1)throw new Error("The given radii are too small to create an arc between the points.");const y=Math.sqrt(1-g**2),v=l+y*i*Math.sin(u)*(s?-1:1),b=c-y*o*Math.cos(u)*(s?-1:1),x=Math.atan2((t-b)/i,(e-v)/o);let S=Math.atan2((n-b)/i,(r-v)/o)-x;s&&S<0&&(S+=2*Math.PI),!s&&S>0&&(S-=2*Math.PI);const _=[];for(let N=0;N<20;N++){const z=N/19,F=x+z*S,I=v+o*Math.cos(F),H=b+i*Math.sin(F);_.push({x:I,y:H})}return _}T(mc,"generateArcPoints");async function V4(e,t){const{labelStyles:r,nodeStyles:n}=ze(t);t.labelStyle=r;const{shapeSvg:o,bbox:i}=await He(e,t,$e(t)),s=(t==null?void 0:t.padding)??0,a=(t==null?void 0:t.padding)??0,l=(t!=null&&t.width?t==null?void 0:t.width:i.width)+s*2,c=(t!=null&&t.height?t==null?void 0:t.height:i.height)+a*2,u=t.radius||5,d=t.taper||5,{cssStyles:p}=t,h=Te.svg(o),m=je(t,{});t.stroke&&(m.stroke=t.stroke),t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const g=[{x:-l/2+d,y:-c/2},{x:l/2-d,y:-c/2},...mc(l/2-d,-c/2,l/2,-c/2+d,u,u,!0),{x:l/2,y:-c/2+d},{x:l/2,y:c/2-d},...mc(l/2,c/2-d,l/2-d,c/2,u,u,!0),{x:l/2-d,y:c/2},{x:-l/2+d,y:c/2},...mc(-l/2+d,c/2,-l/2,c/2-d,u,u,!0),{x:-l/2,y:c/2-d},{x:-l/2,y:-c/2+d},...mc(-l/2,-c/2+d,-l/2+d,-c/2,u,u,!0)],y=ot(g),v=h.path(y,m),b=o.insert(()=>v,":first-child");return b.attr("class","basic label-container outer-path"),p&&t.look!=="handDrawn"&&b.selectChildren("path").attr("style",p),n&&t.look!=="handDrawn"&&b.selectChildren("path").attr("style",n),Ee(t,b),t.intersect=function(x){return be.polygon(t,g,x)},o}T(V4,"roundedRect");async function U4(e,t){const{labelStyles:r,nodeStyles:n}=ze(t);t.labelStyle=r;const{shapeSvg:o,bbox:i,label:s}=await He(e,t,$e(t)),a=(t==null?void 0:t.padding)??0,l=Math.max(i.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),c=Math.max(i.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),u=-i.width/2-a,d=-i.height/2-a,{cssStyles:p}=t,h=Te.svg(o),m=je(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const g=[{x:u,y:d},{x:u+l+8,y:d},{x:u+l+8,y:d+c},{x:u-8,y:d+c},{x:u-8,y:d},{x:u,y:d},{x:u,y:d+c}],y=h.polygon(g.map(b=>[b.x,b.y]),m),v=o.insert(()=>y,":first-child");return v.attr("class","basic label-container").attr("style",Nr(p)),n&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",n),p&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",n),s.attr("transform",`translate(${-l/2+4+(t.padding??0)-(i.x-(i.left??0))},${-c/2+(t.padding??0)-(i.y-(i.top??0))})`),Ee(t,v),t.intersect=function(b){return be.rect(t,b)},o}T(U4,"shadedProcess");async function G4(e,t){const{labelStyles:r,nodeStyles:n}=ze(t);t.labelStyle=r;const{shapeSvg:o,bbox:i,label:s}=await He(e,t,$e(t)),a=Math.max(i.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),l=Math.max(i.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),c=-a/2,u=-l/2,{cssStyles:d}=t,p=Te.svg(o),h=je(t,{});t.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");const m=[{x:c,y:u},{x:c,y:u+l},{x:c+a,y:u+l},{x:c+a,y:u-l/2}],g=ot(m),y=p.path(g,h),v=o.insert(()=>y,":first-child");return v.attr("class","basic label-container"),d&&t.look!=="handDrawn"&&v.selectChildren("path").attr("style",d),n&&t.look!=="handDrawn"&&v.selectChildren("path").attr("style",n),v.attr("transform",`translate(0, ${l/4})`),s.attr("transform",`translate(${-a/2+(t.padding??0)-(i.x-(i.left??0))}, ${-l/4+(t.padding??0)-(i.y-(i.top??0))})`),Ee(t,v),t.intersect=function(b){return be.polygon(t,m,b)},o}T(G4,"slopedRect");async function X4(e,t){const r={rx:0,ry:0,labelPaddingX:t.labelPaddingX??((t==null?void 0:t.padding)||0)*2,labelPaddingY:((t==null?void 0:t.padding)||0)*1};return Ip(e,t,r)}T(X4,"squareRect");async function Y4(e,t){const{labelStyles:r,nodeStyles:n}=ze(t);t.labelStyle=r;const{shapeSvg:o,bbox:i}=await He(e,t,$e(t)),s=i.height+t.padding,a=i.width+s/4+t.padding,l=s/2,{cssStyles:c}=t,u=Te.svg(o),d=je(t,{});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const p=[{x:-a/2+l,y:-s/2},{x:a/2-l,y:-s/2},...xu(-a/2+l,0,l,50,90,270),{x:a/2-l,y:s/2},...xu(a/2-l,0,l,50,270,450)],h=ot(p),m=u.path(h,d),g=o.insert(()=>m,":first-child");return g.attr("class","basic label-container outer-path"),c&&t.look!=="handDrawn"&&g.selectChildren("path").attr("style",c),n&&t.look!=="handDrawn"&&g.selectChildren("path").attr("style",n),Ee(t,g),t.intersect=function(y){return be.polygon(t,p,y)},o}T(Y4,"stadium");async function Z4(e,t){return Ip(e,t,{rx:5,ry:5})}T(Z4,"state");function K4(e,t,{config:{themeVariables:r}}){const{labelStyles:n,nodeStyles:o}=ze(t);t.labelStyle=n;const{cssStyles:i}=t,{lineColor:s,stateBorder:a,nodeBorder:l}=r,c=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),u=Te.svg(c),d=je(t,{});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const p=u.circle(0,0,14,{...d,stroke:s,strokeWidth:2}),h=a??l,m=u.circle(0,0,5,{...d,fill:h,stroke:h,strokeWidth:2,fillStyle:"solid"}),g=c.insert(()=>p,":first-child");return g.insert(()=>m),i&&g.selectAll("path").attr("style",i),o&&g.selectAll("path").attr("style",o),Ee(t,g),t.intersect=function(y){return be.circle(t,7,y)},c}T(K4,"stateEnd");function Q4(e,t,{config:{themeVariables:r}}){const{lineColor:n}=r,o=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let i;if(t.look==="handDrawn"){const a=Te.svg(o).circle(0,0,14,Lre(n));i=o.insert(()=>a),i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14)}else i=o.insert("circle",":first-child"),i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14);return Ee(t,i),t.intersect=function(s){return be.circle(t,7,s)},o}T(Q4,"stateStart");async function J4(e,t){const{labelStyles:r,nodeStyles:n}=ze(t);t.labelStyle=r;const{shapeSvg:o,bbox:i}=await He(e,t,$e(t)),s=((t==null?void 0:t.padding)||0)/2,a=i.width+t.padding,l=i.height+t.padding,c=-i.width/2-s,u=-i.height/2-s,d=[{x:0,y:0},{x:a,y:0},{x:a,y:-l},{x:0,y:-l},{x:0,y:0},{x:-8,y:0},{x:a+8,y:0},{x:a+8,y:-l},{x:-8,y:-l},{x:-8,y:0}];if(t.look==="handDrawn"){const p=Te.svg(o),h=je(t,{}),m=p.rectangle(c-8,u,a+16,l,h),g=p.line(c,u,c,u+l,h),y=p.line(c+a,u,c+a,u+l,h);o.insert(()=>g,":first-child"),o.insert(()=>y,":first-child");const v=o.insert(()=>m,":first-child"),{cssStyles:b}=t;v.attr("class","basic label-container").attr("style",Nr(b)),Ee(t,v)}else{const p=es(o,a,l,d);n&&p.attr("style",n),Ee(t,p)}return t.intersect=function(p){return be.polygon(t,d,p)},o}T(J4,"subroutine");async function eE(e,t){const{labelStyles:r,nodeStyles:n}=ze(t);t.labelStyle=r;const{shapeSvg:o,bbox:i}=await He(e,t,$e(t)),s=Math.max(i.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),a=Math.max(i.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),l=-s/2,c=-a/2,u=.2*a,d=.2*a,{cssStyles:p}=t,h=Te.svg(o),m=je(t,{}),g=[{x:l-u/2,y:c},{x:l+s+u/2,y:c},{x:l+s+u/2,y:c+a},{x:l-u/2,y:c+a}],y=[{x:l+s-u/2,y:c+a},{x:l+s+u/2,y:c+a},{x:l+s+u/2,y:c+a-d}];t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const v=ot(g),b=h.path(v,m),x=ot(y),k=h.path(x,{...m,fillStyle:"solid"}),S=o.insert(()=>k,":first-child");return S.insert(()=>b,":first-child"),S.attr("class","basic label-container"),p&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",p),n&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",n),Ee(t,S),t.intersect=function(_){return be.polygon(t,g,_)},o}T(eE,"taggedRect");async function tE(e,t){const{labelStyles:r,nodeStyles:n}=ze(t);t.labelStyle=r;const{shapeSvg:o,bbox:i,label:s}=await He(e,t,$e(t)),a=Math.max(i.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),l=Math.max(i.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),c=l/4,u=.2*a,d=.2*l,p=l+c,{cssStyles:h}=t,m=Te.svg(o),g=je(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const y=[{x:-a/2-a/2*.1,y:p/2},...Vi(-a/2-a/2*.1,p/2,a/2+a/2*.1,p/2,c,.8),{x:a/2+a/2*.1,y:-p/2},{x:-a/2-a/2*.1,y:-p/2}],v=-a/2+a/2*.1,b=-p/2-d*.4,x=[{x:v+a-u,y:(b+l)*1.4},{x:v+a,y:b+l-d},{x:v+a,y:(b+l)*.9},...Vi(v+a,(b+l)*1.3,v+a-u,(b+l)*1.5,-l*.03,.5)],k=ot(y),S=m.path(k,g),_=ot(x),N=m.path(_,{...g,fillStyle:"solid"}),z=o.insert(()=>N,":first-child");return z.insert(()=>S,":first-child"),z.attr("class","basic label-container"),h&&t.look!=="handDrawn"&&z.selectAll("path").attr("style",h),n&&t.look!=="handDrawn"&&z.selectAll("path").attr("style",n),z.attr("transform",`translate(0,${-c/2})`),s.attr("transform",`translate(${-a/2+(t.padding??0)-(i.x-(i.left??0))},${-l/2+(t.padding??0)-c/2-(i.y-(i.top??0))})`),Ee(t,z),t.intersect=function(F){return be.polygon(t,y,F)},o}T(tE,"taggedWaveEdgedRectangle");async function rE(e,t){const{labelStyles:r,nodeStyles:n}=ze(t);t.labelStyle=r;const{shapeSvg:o,bbox:i}=await He(e,t,$e(t)),s=Math.max(i.width+t.padding,(t==null?void 0:t.width)||0),a=Math.max(i.height+t.padding,(t==null?void 0:t.height)||0),l=-s/2,c=-a/2,u=o.insert("rect",":first-child");return u.attr("class","text").attr("style",n).attr("rx",0).attr("ry",0).attr("x",l).attr("y",c).attr("width",s).attr("height",a),Ee(t,u),t.intersect=function(d){return be.rect(t,d)},o}T(rE,"text");var Tae=T((e,t,r,n,o,i)=>`M${e},${t}
335
+ a${o},${i} 0,0,1 0,${-n}
336
+ l${r},0
337
+ a${o},${i} 0,0,1 0,${n}
338
+ M${r},${-n}
339
+ a${o},${i} 0,0,0 0,${n}
340
+ l${-r},0`,"createCylinderPathD"),Nae=T((e,t,r,n,o,i)=>[`M${e},${t}`,`M${e+r},${t}`,`a${o},${i} 0,0,0 0,${-n}`,`l${-r},0`,`a${o},${i} 0,0,0 0,${n}`,`l${r},0`].join(" "),"createOuterCylinderPathD"),jae=T((e,t,r,n,o,i)=>[`M${e+r/2},${-n/2}`,`a${o},${i} 0,0,0 0,${n}`].join(" "),"createInnerCylinderPathD");async function nE(e,t){const{labelStyles:r,nodeStyles:n}=ze(t);t.labelStyle=r;const{shapeSvg:o,bbox:i,label:s,halfPadding:a}=await He(e,t,$e(t)),l=t.look==="neo"?a*2:a,c=i.height+l,u=c/2,d=u/(2.5+c/50),p=i.width+d+l,{cssStyles:h}=t;let m;if(t.look==="handDrawn"){const g=Te.svg(o),y=Nae(0,0,p,c,d,u),v=jae(0,0,p,c,d,u),b=g.path(y,je(t,{})),x=g.path(v,je(t,{fill:"none"}));m=o.insert(()=>x,":first-child"),m=o.insert(()=>b,":first-child"),m.attr("class","basic label-container"),h&&m.attr("style",h)}else{const g=Tae(0,0,p,c,d,u);m=o.insert("path",":first-child").attr("d",g).attr("class","basic label-container").attr("style",Nr(h)).attr("style",n),m.attr("class","basic label-container"),h&&m.selectAll("path").attr("style",h),n&&m.selectAll("path").attr("style",n)}return m.attr("label-offset-x",d),m.attr("transform",`translate(${-p/2}, ${c/2} )`),s.attr("transform",`translate(${-(i.width/2)-d-(i.x-(i.left??0))}, ${-(i.height/2)-(i.y-(i.top??0))})`),Ee(t,m),t.intersect=function(g){const y=be.rect(t,g),v=y.y-(t.y??0);if(u!=0&&(Math.abs(v)<(t.height??0)/2||Math.abs(v)==(t.height??0)/2&&Math.abs(y.x-(t.x??0))>(t.width??0)/2-d)){let b=d*d*(1-v*v/(u*u));b!=0&&(b=Math.sqrt(Math.abs(b))),b=d-b,g.x-(t.x??0)>0&&(b=-b),y.x+=b}return y},o}T(nE,"tiltedCylinder");async function oE(e,t){const{labelStyles:r,nodeStyles:n}=ze(t);t.labelStyle=r;const{shapeSvg:o,bbox:i}=await He(e,t,$e(t)),s=i.width+t.padding,a=i.height+t.padding,l=[{x:-3*a/6,y:0},{x:s+3*a/6,y:0},{x:s,y:-a},{x:0,y:-a}];let c;const{cssStyles:u}=t;if(t.look==="handDrawn"){const d=Te.svg(o),p=je(t,{}),h=ot(l),m=d.path(h,p);c=o.insert(()=>m,":first-child").attr("transform",`translate(${-s/2}, ${a/2})`),u&&c.attr("style",u)}else c=es(o,s,a,l);return n&&c.attr("style",n),t.width=s,t.height=a,Ee(t,c),t.intersect=function(d){return be.polygon(t,l,d)},o}T(oE,"trapezoid");async function iE(e,t){const{labelStyles:r,nodeStyles:n}=ze(t);t.labelStyle=r;const{shapeSvg:o,bbox:i}=await He(e,t,$e(t)),s=60,a=20,l=Math.max(s,i.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),c=Math.max(a,i.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),{cssStyles:u}=t,d=Te.svg(o),p=je(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const h=[{x:-l/2*.8,y:-c/2},{x:l/2*.8,y:-c/2},{x:l/2,y:-c/2*.6},{x:l/2,y:c/2},{x:-l/2,y:c/2},{x:-l/2,y:-c/2*.6}],m=ot(h),g=d.path(m,p),y=o.insert(()=>g,":first-child");return y.attr("class","basic label-container"),u&&t.look!=="handDrawn"&&y.selectChildren("path").attr("style",u),n&&t.look!=="handDrawn"&&y.selectChildren("path").attr("style",n),Ee(t,y),t.intersect=function(v){return be.polygon(t,h,v)},o}T(iE,"trapezoidalPentagon");async function sE(e,t){var b;const{labelStyles:r,nodeStyles:n}=ze(t);t.labelStyle=r;const{shapeSvg:o,bbox:i,label:s}=await He(e,t,$e(t)),a=ir((b=ft().flowchart)==null?void 0:b.htmlLabels),l=i.width+(t.padding??0),c=l+i.height,u=l+i.height,d=[{x:0,y:0},{x:u,y:0},{x:u/2,y:-c}],{cssStyles:p}=t,h=Te.svg(o),m=je(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const g=ot(d),y=h.path(g,m),v=o.insert(()=>y,":first-child").attr("transform",`translate(${-c/2}, ${c/2})`);return p&&t.look!=="handDrawn"&&v.selectChildren("path").attr("style",p),n&&t.look!=="handDrawn"&&v.selectChildren("path").attr("style",n),t.width=l,t.height=c,Ee(t,v),s.attr("transform",`translate(${-i.width/2-(i.x-(i.left??0))}, ${c/2-(i.height+(t.padding??0)/(a?2:1)-(i.y-(i.top??0)))})`),t.intersect=function(x){return ie.info("Triangle intersect",t,d,x),be.polygon(t,d,x)},o}T(sE,"triangle");async function aE(e,t){const{labelStyles:r,nodeStyles:n}=ze(t);t.labelStyle=r;const{shapeSvg:o,bbox:i,label:s}=await He(e,t,$e(t)),a=Math.max(i.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),l=Math.max(i.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),c=l/8,u=l+c,{cssStyles:d}=t,h=70-a,m=h>0?h/2:0,g=Te.svg(o),y=je(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const v=[{x:-a/2-m,y:u/2},...Vi(-a/2-m,u/2,a/2+m,u/2,c,.8),{x:a/2+m,y:-u/2},{x:-a/2-m,y:-u/2}],b=ot(v),x=g.path(b,y),k=o.insert(()=>x,":first-child");return k.attr("class","basic label-container"),d&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",d),n&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",n),k.attr("transform",`translate(0,${-c/2})`),s.attr("transform",`translate(${-a/2+(t.padding??0)-(i.x-(i.left??0))},${-l/2+(t.padding??0)-c-(i.y-(i.top??0))})`),Ee(t,k),t.intersect=function(S){return be.polygon(t,v,S)},o}T(aE,"waveEdgedRectangle");async function lE(e,t){const{labelStyles:r,nodeStyles:n}=ze(t);t.labelStyle=r;const{shapeSvg:o,bbox:i}=await He(e,t,$e(t)),s=100,a=50,l=Math.max(i.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),c=Math.max(i.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),u=l/c;let d=l,p=c;d>p*u?p=d/u:d=p*u,d=Math.max(d,s),p=Math.max(p,a);const h=Math.min(p*.2,p/4),m=p+h*2,{cssStyles:g}=t,y=Te.svg(o),v=je(t,{});t.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const b=[{x:-d/2,y:m/2},...Vi(-d/2,m/2,d/2,m/2,h,1),{x:d/2,y:-m/2},...Vi(d/2,-m/2,-d/2,-m/2,h,-1)],x=ot(b),k=y.path(x,v),S=o.insert(()=>k,":first-child");return S.attr("class","basic label-container"),g&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",g),n&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",n),Ee(t,S),t.intersect=function(_){return be.polygon(t,b,_)},o}T(lE,"waveRectangle");async function cE(e,t){const{labelStyles:r,nodeStyles:n}=ze(t);t.labelStyle=r;const{shapeSvg:o,bbox:i,label:s}=await He(e,t,$e(t)),a=Math.max(i.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),l=Math.max(i.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),c=5,u=-a/2,d=-l/2,{cssStyles:p}=t,h=Te.svg(o),m=je(t,{}),g=[{x:u-c,y:d-c},{x:u-c,y:d+l},{x:u+a,y:d+l},{x:u+a,y:d-c}],y=`M${u-c},${d-c} L${u+a},${d-c} L${u+a},${d+l} L${u-c},${d+l} L${u-c},${d-c}
341
+ M${u-c},${d} L${u+a},${d}
342
+ M${u},${d-c} L${u},${d+l}`;t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const v=h.path(y,m),b=o.insert(()=>v,":first-child");return b.attr("transform",`translate(${c/2}, ${c/2})`),b.attr("class","basic label-container"),p&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",p),n&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",n),s.attr("transform",`translate(${-(i.width/2)+c/2-(i.x-(i.left??0))}, ${-(i.height/2)+c/2-(i.y-(i.top??0))})`),Ee(t,b),t.intersect=function(x){return be.polygon(t,g,x)},o}T(cE,"windowPane");async function gb(e,t){var L,Y,ee,te;const r=t;if(r.alias&&(t.label=r.alias),t.look==="handDrawn"){const{themeVariables:ge}=Br(),{background:_e}=ge,we={...t,id:t.id+"-background",look:"default",cssStyles:["stroke: none",`fill: ${_e}`]};await gb(e,we)}const n=Br();t.useHtmlLabels=n.htmlLabels;let o=((L=n.er)==null?void 0:L.diagramPadding)??10,i=((Y=n.er)==null?void 0:Y.entityPadding)??6;const{cssStyles:s}=t,{labelStyles:a,nodeStyles:l}=ze(t);if(r.attributes.length===0&&t.label){const ge={rx:0,ry:0,labelPaddingX:o,labelPaddingY:o*1.5};ai(t.label,n)+ge.labelPaddingX*2<n.er.minEntityWidth&&(t.width=n.er.minEntityWidth);const _e=await Ip(e,t,ge);if(!ir(n.htmlLabels)){const we=_e.select("text"),Ie=(ee=we.node())==null?void 0:ee.getBBox();we.attr("transform",`translate(${-Ie.width/2}, 0)`)}return _e}n.htmlLabels||(o*=1.25,i*=1.25);let c=$e(t);c||(c="node default");const u=e.insert("g").attr("class",c).attr("id",t.domId||t.id),d=await aa(u,t.label??"",n,0,0,["name"],a);d.height+=i;let p=0;const h=[],m=[];let g=0,y=0,v=0,b=0,x=!0,k=!0;for(const ge of r.attributes){const _e=await aa(u,ge.type,n,0,p,["attribute-type"],a);g=Math.max(g,_e.width+o);const we=await aa(u,ge.name,n,0,p,["attribute-name"],a);y=Math.max(y,we.width+o);const Ie=await aa(u,ge.keys.join(),n,0,p,["attribute-keys"],a);v=Math.max(v,Ie.width+o);const Xe=await aa(u,ge.comment,n,0,p,["attribute-comment"],a);b=Math.max(b,Xe.width+o);const Ye=Math.max(_e.height,we.height,Ie.height,Xe.height)+i;m.push({yOffset:p,rowHeight:Ye}),p+=Ye}let S=4;v<=o&&(x=!1,v=0,S--),b<=o&&(k=!1,b=0,S--);const _=u.node().getBBox();if(d.width+o*2-(g+y+v+b)>0){const ge=d.width+o*2-(g+y+v+b);g+=ge/S,y+=ge/S,v>0&&(v+=ge/S),b>0&&(b+=ge/S)}const N=g+y+v+b,z=Te.svg(u),F=je(t,{});t.look!=="handDrawn"&&(F.roughness=0,F.fillStyle="solid");let I=0;m.length>0&&(I=m.reduce((ge,_e)=>ge+((_e==null?void 0:_e.rowHeight)??0),0));const H=Math.max(_.width+o*2,(t==null?void 0:t.width)||0,N),A=Math.max((I??0)+d.height,(t==null?void 0:t.height)||0),P=-H/2,C=-A/2;u.selectAll("g:not(:first-child)").each((ge,_e,we)=>{const Ie=lt(we[_e]),Xe=Ie.attr("transform");let Ye=0,Lt=0;if(Xe){const j=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(Xe);j&&(Ye=parseFloat(j[1]),Lt=parseFloat(j[2]),Ie.attr("class").includes("attribute-name")?Ye+=g:Ie.attr("class").includes("attribute-keys")?Ye+=g+y:Ie.attr("class").includes("attribute-comment")&&(Ye+=g+y+v))}Ie.attr("transform",`translate(${P+o/2+Ye}, ${Lt+C+d.height+i/2})`)}),u.select(".name").attr("transform","translate("+-d.width/2+", "+(C+i/2)+")");const R=z.rectangle(P,C,H,A,F),O=u.insert(()=>R,":first-child").attr("style",s.join("")),{themeVariables:D}=Br(),{rowEven:M,rowOdd:$,nodeBorder:X}=D;h.push(0);for(const[ge,_e]of m.entries()){const Ie=(ge+1)%2===0&&_e.yOffset!==0,Xe=z.rectangle(P,d.height+C+(_e==null?void 0:_e.yOffset),H,_e==null?void 0:_e.rowHeight,{...F,fill:Ie?M:$,stroke:X});u.insert(()=>Xe,"g.label").attr("style",s.join("")).attr("class",`row-rect-${Ie?"even":"odd"}`)}let V=z.line(P,d.height+C,H+P,d.height+C,F);u.insert(()=>V).attr("class","divider"),V=z.line(g+P,d.height+C,g+P,A+C,F),u.insert(()=>V).attr("class","divider"),x&&(V=z.line(g+y+P,d.height+C,g+y+P,A+C,F),u.insert(()=>V).attr("class","divider")),k&&(V=z.line(g+y+v+P,d.height+C,g+y+v+P,A+C,F),u.insert(()=>V).attr("class","divider"));for(const ge of h)V=z.line(P,d.height+C+ge,H+P,d.height+C+ge,F),u.insert(()=>V).attr("class","divider");if(Ee(t,O),l&&t.look!=="handDrawn"){const ge=l.split(";"),_e=(te=ge==null?void 0:ge.filter(we=>we.includes("stroke")))==null?void 0:te.map(we=>`${we}`).join("; ");u.selectAll("path").attr("style",_e??""),u.selectAll(".row-rect-even path").attr("style",l)}return t.intersect=function(ge){return be.rect(t,ge)},u}T(gb,"erBox");async function aa(e,t,r,n=0,o=0,i=[],s=""){const a=e.insert("g").attr("class",`label ${i.join(" ")}`).attr("transform",`translate(${n}, ${o})`).attr("style",s);t!==B2(t)&&(t=B2(t),t=t.replaceAll("<","&lt;").replaceAll(">","&gt;"));const l=a.node().appendChild(await Qi(a,t,{width:ai(t,r)+100,style:s,useHtmlLabels:r.htmlLabels},r));if(t.includes("&lt;")||t.includes("&gt;")){let u=l.children[0];for(u.textContent=u.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">");u.childNodes[0];)u=u.childNodes[0],u.textContent=u.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">")}let c=l.getBBox();if(ir(r.htmlLabels)){const u=l.children[0];u.style.textAlign="start";const d=lt(l);c=u.getBoundingClientRect(),d.attr("width",c.width),d.attr("height",c.height)}return c}T(aa,"addText");async function uE(e,t,r,n,o=r.class.padding??12){const i=n?0:3,s=e.insert("g").attr("class",$e(t)).attr("id",t.domId||t.id);let a=null,l=null,c=null,u=null,d=0,p=0,h=0;if(a=s.insert("g").attr("class","annotation-group text"),t.annotations.length>0){const b=t.annotations[0];await vc(a,{text:`«${b}»`},0),d=a.node().getBBox().height}l=s.insert("g").attr("class","label-group text"),await vc(l,t,0,["font-weight: bolder"]);const m=l.node().getBBox();p=m.height,c=s.insert("g").attr("class","members-group text");let g=0;for(const b of t.members){const x=await vc(c,b,g,[b.parseClassifier()]);g+=x+i}h=c.node().getBBox().height,h<=0&&(h=o/2),u=s.insert("g").attr("class","methods-group text");let y=0;for(const b of t.methods){const x=await vc(u,b,y,[b.parseClassifier()]);y+=x+i}let v=s.node().getBBox();if(a!==null){const b=a.node().getBBox();a.attr("transform",`translate(${-b.width/2})`)}return l.attr("transform",`translate(${-m.width/2}, ${d})`),v=s.node().getBBox(),c.attr("transform",`translate(0, ${d+p+o*2})`),v=s.node().getBBox(),u.attr("transform",`translate(0, ${d+p+(h?h+o*4:o*2)})`),v=s.node().getBBox(),{shapeSvg:s,bbox:v}}T(uE,"textHelper");async function vc(e,t,r,n=[]){const o=e.insert("g").attr("class","label").attr("style",n.join("; ")),i=Br();let s="useHtmlLabels"in t?t.useHtmlLabels:ir(i.htmlLabels)??!0,a="";"text"in t?a=t.text:a=t.label,!s&&a.startsWith("\\")&&(a=a.substring(1)),il(a)&&(s=!0);const l=await Qi(o,_1(Gs(a)),{width:ai(a,i)+50,classes:"markdown-node-label",useHtmlLabels:s},i);let c,u=1;if(s){const d=l.children[0],p=lt(l);u=d.innerHTML.split("<br>").length,d.innerHTML.includes("</math>")&&(u+=d.innerHTML.split("<mrow>").length-1);const h=d.getElementsByTagName("img");if(h){const m=a.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...h].map(g=>new Promise(y=>{function v(){var b;if(g.style.display="flex",g.style.flexDirection="column",m){const x=((b=i.fontSize)==null?void 0:b.toString())??window.getComputedStyle(document.body).fontSize,S=parseInt(x,10)*5+"px";g.style.minWidth=S,g.style.maxWidth=S}else g.style.width="100%";y(g)}T(v,"setupImage"),setTimeout(()=>{g.complete&&v()}),g.addEventListener("error",v),g.addEventListener("load",v)})))}c=d.getBoundingClientRect(),p.attr("width",c.width),p.attr("height",c.height)}else{n.includes("font-weight: bolder")&&lt(l).selectAll("tspan").attr("font-weight",""),u=l.children.length;const d=l.children[0];(l.textContent===""||l.textContent.includes("&gt"))&&(d.textContent=a[0]+a.substring(1).replaceAll("&gt;",">").replaceAll("&lt;","<").trim(),a[1]===" "&&(d.textContent=d.textContent[0]+" "+d.textContent.substring(1))),d.textContent==="undefined"&&(d.textContent=""),c=l.getBBox()}return o.attr("transform","translate(0,"+(-c.height/(2*u)+r)+")"),c.height}T(vc,"addText");async function dE(e,t){var F,I;const r=ft(),n=r.class.padding??12,o=n,i=t.useHtmlLabels??ir(r.htmlLabels)??!0,s=t;s.annotations=s.annotations??[],s.members=s.members??[],s.methods=s.methods??[];const{shapeSvg:a,bbox:l}=await uE(e,t,r,i,o),{labelStyles:c,nodeStyles:u}=ze(t);t.labelStyle=c,t.cssStyles=s.styles||"";const d=((F=s.styles)==null?void 0:F.join(";"))||u||"";t.cssStyles||(t.cssStyles=d.replaceAll("!important","").split(";"));const p=s.members.length===0&&s.methods.length===0&&!((I=r.class)!=null&&I.hideEmptyMembersBox),h=Te.svg(a),m=je(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const g=l.width;let y=l.height;s.members.length===0&&s.methods.length===0?y+=o:s.members.length>0&&s.methods.length===0&&(y+=o*2);const v=-g/2,b=-y/2,x=h.rectangle(v-n,b-n-(p?n:s.members.length===0&&s.methods.length===0?-n/2:0),g+2*n,y+2*n+(p?n*2:s.members.length===0&&s.methods.length===0?-n:0),m),k=a.insert(()=>x,":first-child");k.attr("class","basic label-container");const S=k.node().getBBox();a.selectAll(".text").each((H,A,P)=>{var $;const C=lt(P[A]),R=C.attr("transform");let O=0;if(R){const V=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(R);V&&(O=parseFloat(V[2]))}let D=O+b+n-(p?n:s.members.length===0&&s.methods.length===0?-n/2:0);i||(D-=4);let M=v;(C.attr("class").includes("label-group")||C.attr("class").includes("annotation-group"))&&(M=-(($=C.node())==null?void 0:$.getBBox().width)/2||0,a.selectAll("text").each(function(X,V,L){window.getComputedStyle(L[V]).textAnchor==="middle"&&(M=0)})),C.attr("transform",`translate(${M}, ${D})`)});const _=a.select(".annotation-group").node().getBBox().height-(p?n/2:0)||0,N=a.select(".label-group").node().getBBox().height-(p?n/2:0)||0,z=a.select(".members-group").node().getBBox().height-(p?n/2:0)||0;if(s.members.length>0||s.methods.length>0||p){const H=h.line(S.x,_+N+b+n,S.x+S.width,_+N+b+n,m);a.insert(()=>H).attr("class","divider").attr("style",d)}if(p||s.members.length>0||s.methods.length>0){const H=h.line(S.x,_+N+z+b+o*2+n,S.x+S.width,_+N+z+b+n+o*2,m);a.insert(()=>H).attr("class","divider").attr("style",d)}if(s.look!=="handDrawn"&&a.selectAll("path").attr("style",d),k.select(":nth-child(2)").attr("style",d),a.selectAll(".divider").select("path").attr("style",d),t.labelStyle?a.selectAll("span").attr("style",t.labelStyle):a.selectAll("span").attr("style",d),!i){const H=RegExp(/color\s*:\s*([^;]*)/),A=H.exec(d);if(A){const P=A[0].replace("color","fill");a.selectAll("tspan").attr("style",P)}else if(c){const P=H.exec(c);if(P){const C=P[0].replace("color","fill");a.selectAll("tspan").attr("style",C)}}}return Ee(t,k),t.intersect=function(H){return be.rect(t,H)},a}T(dE,"classBox");async function fE(e,t){var _,N;const{labelStyles:r,nodeStyles:n}=ze(t);t.labelStyle=r;const o=t,i=t,s=20,a=20,l="verifyMethod"in t,c=$e(t),u=e.insert("g").attr("class",c).attr("id",t.domId??t.id);let d;l?d=await yo(u,`&lt;&lt;${o.type}&gt;&gt;`,0,t.labelStyle):d=await yo(u,"&lt;&lt;Element&gt;&gt;",0,t.labelStyle);let p=d;const h=await yo(u,o.name,p,t.labelStyle+"; font-weight: bold;");if(p+=h+a,l){const z=await yo(u,`${o.requirementId?`ID: ${o.requirementId}`:""}`,p,t.labelStyle);p+=z;const F=await yo(u,`${o.text?`Text: ${o.text}`:""}`,p,t.labelStyle);p+=F;const I=await yo(u,`${o.risk?`Risk: ${o.risk}`:""}`,p,t.labelStyle);p+=I,await yo(u,`${o.verifyMethod?`Verification: ${o.verifyMethod}`:""}`,p,t.labelStyle)}else{const z=await yo(u,`${i.type?`Type: ${i.type}`:""}`,p,t.labelStyle);p+=z,await yo(u,`${i.docRef?`Doc Ref: ${i.docRef}`:""}`,p,t.labelStyle)}const m=(((_=u.node())==null?void 0:_.getBBox().width)??200)+s,g=(((N=u.node())==null?void 0:N.getBBox().height)??200)+s,y=-m/2,v=-g/2,b=Te.svg(u),x=je(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const k=b.rectangle(y,v,m,g,x),S=u.insert(()=>k,":first-child");if(S.attr("class","basic label-container").attr("style",n),u.selectAll(".label").each((z,F,I)=>{const H=lt(I[F]),A=H.attr("transform");let P=0,C=0;if(A){const M=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(A);M&&(P=parseFloat(M[1]),C=parseFloat(M[2]))}const R=C-g/2;let O=y+s/2;(F===0||F===1)&&(O=P),H.attr("transform",`translate(${O}, ${R+s})`)}),p>d+h+a){const z=b.line(y,v+d+h+a,y+m,v+d+h+a,x);u.insert(()=>z).attr("style",n)}return Ee(t,S),t.intersect=function(z){return be.rect(t,z)},u}T(fE,"requirementBox");async function yo(e,t,r,n=""){if(t==="")return 0;const o=e.insert("g").attr("class","label").attr("style",n),i=ft(),s=i.htmlLabels??!0,a=await Qi(o,_1(Gs(t)),{width:ai(t,i)+50,classes:"markdown-node-label",useHtmlLabels:s,style:n},i);let l;if(s){const c=a.children[0],u=lt(a);l=c.getBoundingClientRect(),u.attr("width",l.width),u.attr("height",l.height)}else{const c=a.children[0];for(const u of c.children)u.textContent=u.textContent.replaceAll("&gt;",">").replaceAll("&lt;","<"),n&&u.setAttribute("style",n);l=a.getBBox(),l.height+=6}return o.attr("transform",`translate(${-l.width/2},${-l.height/2+r})`),l.height}T(yo,"addText");var zae=T(e=>{switch(e){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");async function hE(e,t,{config:r}){var A,P;const{labelStyles:n,nodeStyles:o}=ze(t);t.labelStyle=n||"";const i=10,s=t.width;t.width=(t.width??200)-10;const{shapeSvg:a,bbox:l,label:c}=await He(e,t,$e(t)),u=t.padding||10;let d="",p;"ticket"in t&&t.ticket&&((A=r==null?void 0:r.kanban)!=null&&A.ticketBaseUrl)&&(d=(P=r==null?void 0:r.kanban)==null?void 0:P.ticketBaseUrl.replace("#TICKET#",t.ticket),p=a.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",d).attr("target","_blank"));const h={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||"",width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1};let m,g;p?{label:m,bbox:g}=await sm(p,"ticket"in t&&t.ticket||"",h):{label:m,bbox:g}=await sm(a,"ticket"in t&&t.ticket||"",h);const{label:y,bbox:v}=await sm(a,"assigned"in t&&t.assigned||"",h);t.width=s;const b=10,x=(t==null?void 0:t.width)||0,k=Math.max(g.height,v.height)/2,S=Math.max(l.height+b*2,(t==null?void 0:t.height)||0)+k,_=-x/2,N=-S/2;c.attr("transform","translate("+(u-x/2)+", "+(-k-l.height/2)+")"),m.attr("transform","translate("+(u-x/2)+", "+(-k+l.height/2)+")"),y.attr("transform","translate("+(u+x/2-v.width-2*i)+", "+(-k+l.height/2)+")");let z;const{rx:F,ry:I}=t,{cssStyles:H}=t;if(t.look==="handDrawn"){const C=Te.svg(a),R=je(t,{}),O=F||I?C.path(Ji(_,N,x,S,F||0),R):C.rectangle(_,N,x,S,R);z=a.insert(()=>O,":first-child"),z.attr("class","basic label-container").attr("style",H||null)}else{z=a.insert("rect",":first-child"),z.attr("class","basic label-container __APA__").attr("style",o).attr("rx",F??5).attr("ry",I??5).attr("x",_).attr("y",N).attr("width",x).attr("height",S);const C="priority"in t&&t.priority;if(C){const R=a.append("line"),O=_+2,D=N+Math.floor((F??0)/2),M=N+S-Math.floor((F??0)/2);R.attr("x1",O).attr("y1",D).attr("x2",O).attr("y2",M).attr("stroke-width","4").attr("stroke",zae(C))}}return Ee(t,z),t.height=S,t.intersect=function(C){return be.rect(t,C)},a}T(hE,"kanbanItem");async function pE(e,t){const{labelStyles:r,nodeStyles:n}=ze(t);t.labelStyle=r;const{shapeSvg:o,bbox:i,halfPadding:s,label:a}=await He(e,t,$e(t)),l=i.width+10*s,c=i.height+8*s,u=.15*l,{cssStyles:d}=t,p=i.width+20,h=i.height+20,m=Math.max(l,p),g=Math.max(c,h);a.attr("transform",`translate(${-i.width/2}, ${-i.height/2})`);let y;const v=`M0 0
343
+ a${u},${u} 1 0,0 ${m*.25},${-1*g*.1}
344
+ a${u},${u} 1 0,0 ${m*.25},0
345
+ a${u},${u} 1 0,0 ${m*.25},0
346
+ a${u},${u} 1 0,0 ${m*.25},${g*.1}
347
+
348
+ a${u},${u} 1 0,0 ${m*.15},${g*.33}
349
+ a${u*.8},${u*.8} 1 0,0 0,${g*.34}
350
+ a${u},${u} 1 0,0 ${-1*m*.15},${g*.33}
351
+
352
+ a${u},${u} 1 0,0 ${-1*m*.25},${g*.15}
353
+ a${u},${u} 1 0,0 ${-1*m*.25},0
354
+ a${u},${u} 1 0,0 ${-1*m*.25},0
355
+ a${u},${u} 1 0,0 ${-1*m*.25},${-1*g*.15}
356
+
357
+ a${u},${u} 1 0,0 ${-1*m*.1},${-1*g*.33}
358
+ a${u*.8},${u*.8} 1 0,0 0,${-1*g*.34}
359
+ a${u},${u} 1 0,0 ${m*.1},${-1*g*.33}
360
+ H0 V0 Z`;if(t.look==="handDrawn"){const b=Te.svg(o),x=je(t,{}),k=b.path(v,x);y=o.insert(()=>k,":first-child"),y.attr("class","basic label-container").attr("style",Nr(d))}else y=o.insert("path",":first-child").attr("class","basic label-container").attr("style",n).attr("d",v);return y.attr("transform",`translate(${-m/2}, ${-g/2})`),Ee(t,y),t.calcIntersect=function(b,x){return be.rect(b,x)},t.intersect=function(b){return ie.info("Bang intersect",t,b),be.rect(t,b)},o}T(pE,"bang");async function gE(e,t){const{labelStyles:r,nodeStyles:n}=ze(t);t.labelStyle=r;const{shapeSvg:o,bbox:i,halfPadding:s,label:a}=await He(e,t,$e(t)),l=i.width+2*s,c=i.height+2*s,u=.15*l,d=.25*l,p=.35*l,h=.2*l,{cssStyles:m}=t;let g;const y=`M0 0
361
+ a${u},${u} 0 0,1 ${l*.25},${-1*l*.1}
362
+ a${p},${p} 1 0,1 ${l*.4},${-1*l*.1}
363
+ a${d},${d} 1 0,1 ${l*.35},${l*.2}
364
+
365
+ a${u},${u} 1 0,1 ${l*.15},${c*.35}
366
+ a${h},${h} 1 0,1 ${-1*l*.15},${c*.65}
367
+
368
+ a${d},${u} 1 0,1 ${-1*l*.25},${l*.15}
369
+ a${p},${p} 1 0,1 ${-1*l*.5},0
370
+ a${u},${u} 1 0,1 ${-1*l*.25},${-1*l*.15}
371
+
372
+ a${u},${u} 1 0,1 ${-1*l*.1},${-1*c*.35}
373
+ a${h},${h} 1 0,1 ${l*.1},${-1*c*.65}
374
+ H0 V0 Z`;if(t.look==="handDrawn"){const v=Te.svg(o),b=je(t,{}),x=v.path(y,b);g=o.insert(()=>x,":first-child"),g.attr("class","basic label-container").attr("style",Nr(m))}else g=o.insert("path",":first-child").attr("class","basic label-container").attr("style",n).attr("d",y);return a.attr("transform",`translate(${-i.width/2}, ${-i.height/2})`),g.attr("transform",`translate(${-l/2}, ${-c/2})`),Ee(t,g),t.calcIntersect=function(v,b){return be.rect(v,b)},t.intersect=function(v){return ie.info("Cloud intersect",t,v),be.rect(t,v)},o}T(gE,"cloud");async function mE(e,t){const{labelStyles:r,nodeStyles:n}=ze(t);t.labelStyle=r;const{shapeSvg:o,bbox:i,halfPadding:s,label:a}=await He(e,t,$e(t)),l=i.width+8*s,c=i.height+2*s,u=5,d=`
375
+ M${-l/2} ${c/2-u}
376
+ v${-c+2*u}
377
+ q0,-${u} ${u},-${u}
378
+ h${l-2*u}
379
+ q${u},0 ${u},${u}
380
+ v${c-2*u}
381
+ q0,${u} -${u},${u}
382
+ h${-l+2*u}
383
+ q-${u},0 -${u},-${u}
384
+ Z
385
+ `,p=o.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+t.type).attr("style",n).attr("d",d);return o.append("line").attr("class","node-line-").attr("x1",-l/2).attr("y1",c/2).attr("x2",l/2).attr("y2",c/2),a.attr("transform",`translate(${-i.width/2}, ${-i.height/2})`),o.append(()=>a.node()),Ee(t,p),t.calcIntersect=function(h,m){return be.rect(h,m)},t.intersect=function(h){return be.rect(t,h)},o}T(mE,"defaultMindmapNode");async function vE(e,t){const r={padding:t.padding??0};return pb(e,t,r)}T(vE,"mindmapCircle");var Eae=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:X4},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:V4},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:Y4},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:J4},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:y4},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:pb},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:pE},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:gE},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:$4},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:_4},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:P4},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:F4},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:oE},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:R4},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:x4},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:rE},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:u4},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:U4},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:Q4},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:K4},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:S4},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:B4},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:p4},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:g4},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:m4},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:I4},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:aE},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:C4},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:nE},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:M4},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:v4},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:b4},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:sE},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:cE},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:w4},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:iE},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:k4},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:G4},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:O4},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:L4},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:c4},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:h4},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:tE},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:eE},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:lE},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:H4},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:D4}],Rae=T(()=>{const t=[...Object.entries({state:Z4,choice:d4,note:q4,rectWithTitle:W4,labelRect:A4,iconSquare:z4,iconCircle:N4,icon:T4,iconRounded:j4,imageSquare:E4,anchor:l4,kanbanItem:hE,mindmapCircle:vE,defaultMindmapNode:mE,classBox:dE,erBox:gb,requirementBox:fE}),...Eae.flatMap(r=>[r.shortName,..."aliases"in r?r.aliases:[],..."internalAliases"in r?r.internalAliases:[]].map(o=>[o,r.handler]))];return Object.fromEntries(t)},"generateShapeMap"),yE=Rae();function Aae(e){return e in yE}T(Aae,"isValidShape");var Mp=new Map;async function bE(e,t,r){let n,o;t.shape==="rect"&&(t.rx&&t.ry?t.shape="roundedRect":t.shape="squareRect");const i=t.shape?yE[t.shape]:void 0;if(!i)throw new Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let s;r.config.securityLevel==="sandbox"?s="_top":t.linkTarget&&(s=t.linkTarget||"_blank"),n=e.insert("svg:a").attr("xlink:href",t.link).attr("target",s??null),o=await i(n,t,r)}else o=await i(e,t,r),n=o;return t.tooltip&&o.attr("title",t.tooltip),Mp.set(t.id,n),t.haveCallback&&n.attr("class",n.attr("class")+" clickable"),n}T(bE,"insertNode");var ofe=T((e,t)=>{Mp.set(t.id,e)},"setNodeElem"),ife=T(()=>{Mp.clear()},"clear"),sfe=T(e=>{const t=Mp.get(e.id);ie.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const r=8,n=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+n-e.width/2)+", "+(e.y-e.height/2-r)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),n},"positionNode"),Fae=T((e,t,r,n,o,i)=>{t.arrowTypeStart&&Fk(e,"start",t.arrowTypeStart,r,n,o,i),t.arrowTypeEnd&&Fk(e,"end",t.arrowTypeEnd,r,n,o,i)},"addEdgeMarkers"),Pae={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},Fk=T((e,t,r,n,o,i,s)=>{var d;const a=Pae[r];if(!a){ie.warn(`Unknown arrow type: ${r}`);return}const l=a.type,u=`${o}_${i}-${l}${t==="start"?"Start":"End"}`;if(s&&s.trim()!==""){const p=s.replace(/[^\dA-Za-z]/g,"_"),h=`${u}_${p}`;if(!document.getElementById(h)){const m=document.getElementById(u);if(m){const g=m.cloneNode(!0);g.id=h,g.querySelectorAll("path, circle, line").forEach(v=>{v.setAttribute("stroke",s),a.fill&&v.setAttribute("fill",s)}),(d=m.parentNode)==null||d.appendChild(g)}}e.attr(`marker-${t}`,`url(${n}#${h})`)}else e.attr(`marker-${t}`,`url(${n}#${u})`)},"addEdgeMarker"),zh=new Map,fr=new Map,afe=T(()=>{zh.clear(),fr.clear()},"clear"),Ad=T(e=>e?e.reduce((r,n)=>r+";"+n,""):"","getLabelStyles"),Iae=T(async(e,t)=>{let r=ir(ft().flowchart.htmlLabels);const{labelStyles:n}=ze(t);t.labelStyle=n;const o=await Qi(e,t.label,{style:t.labelStyle,useHtmlLabels:r,addSvgBackground:!0,isNode:!1});ie.info("abc82",t,t.labelType);const i=e.insert("g").attr("class","edgeLabel"),s=i.insert("g").attr("class","label").attr("data-id",t.id);s.node().appendChild(o);let a=o.getBBox();if(r){const c=o.children[0],u=lt(o);a=c.getBoundingClientRect(),u.attr("width",a.width),u.attr("height",a.height)}s.attr("transform","translate("+-a.width/2+", "+-a.height/2+")"),zh.set(t.id,i),t.width=a.width,t.height=a.height;let l;if(t.startLabelLeft){const c=await bs(t.startLabelLeft,Ad(t.labelStyle)),u=e.insert("g").attr("class","edgeTerminals"),d=u.insert("g").attr("class","inner");l=d.node().appendChild(c);const p=c.getBBox();d.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),fr.get(t.id)||fr.set(t.id,{}),fr.get(t.id).startLeft=u,yc(l,t.startLabelLeft)}if(t.startLabelRight){const c=await bs(t.startLabelRight,Ad(t.labelStyle)),u=e.insert("g").attr("class","edgeTerminals"),d=u.insert("g").attr("class","inner");l=u.node().appendChild(c),d.node().appendChild(c);const p=c.getBBox();d.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),fr.get(t.id)||fr.set(t.id,{}),fr.get(t.id).startRight=u,yc(l,t.startLabelRight)}if(t.endLabelLeft){const c=await bs(t.endLabelLeft,Ad(t.labelStyle)),u=e.insert("g").attr("class","edgeTerminals"),d=u.insert("g").attr("class","inner");l=d.node().appendChild(c);const p=c.getBBox();d.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),u.node().appendChild(c),fr.get(t.id)||fr.set(t.id,{}),fr.get(t.id).endLeft=u,yc(l,t.endLabelLeft)}if(t.endLabelRight){const c=await bs(t.endLabelRight,Ad(t.labelStyle)),u=e.insert("g").attr("class","edgeTerminals"),d=u.insert("g").attr("class","inner");l=d.node().appendChild(c);const p=c.getBBox();d.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),u.node().appendChild(c),fr.get(t.id)||fr.set(t.id,{}),fr.get(t.id).endRight=u,yc(l,t.endLabelRight)}return o},"insertEdgeLabel");function yc(e,t){ft().flowchart.htmlLabels&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}T(yc,"setTerminalWidth");var Mae=T((e,t)=>{ie.debug("Moving label abc88 ",e.id,e.label,zh.get(e.id),t);let r=t.updatedPath?t.updatedPath:t.originalPath;const n=ft(),{subGraphTitleTotalMargin:o}=V1(n);if(e.label){const i=zh.get(e.id);let s=e.x,a=e.y;if(r){const l=Kn.calcLabelPosition(r);ie.debug("Moving label "+e.label+" from (",s,",",a,") to (",l.x,",",l.y,") abc88"),t.updatedPath&&(s=l.x,a=l.y)}i.attr("transform",`translate(${s}, ${a+o/2})`)}if(e.startLabelLeft){const i=fr.get(e.id).startLeft;let s=e.x,a=e.y;if(r){const l=Kn.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",r);s=l.x,a=l.y}i.attr("transform",`translate(${s}, ${a})`)}if(e.startLabelRight){const i=fr.get(e.id).startRight;let s=e.x,a=e.y;if(r){const l=Kn.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",r);s=l.x,a=l.y}i.attr("transform",`translate(${s}, ${a})`)}if(e.endLabelLeft){const i=fr.get(e.id).endLeft;let s=e.x,a=e.y;if(r){const l=Kn.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",r);s=l.x,a=l.y}i.attr("transform",`translate(${s}, ${a})`)}if(e.endLabelRight){const i=fr.get(e.id).endRight;let s=e.x,a=e.y;if(r){const l=Kn.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",r);s=l.x,a=l.y}i.attr("transform",`translate(${s}, ${a})`)}},"positionEdgeLabel"),Dae=T((e,t)=>{const r=e.x,n=e.y,o=Math.abs(t.x-r),i=Math.abs(t.y-n),s=e.width/2,a=e.height/2;return o>=s||i>=a},"outsideNode"),Lae=T((e,t,r)=>{ie.debug(`intersection calc abc89:
386
+ outsidePoint: ${JSON.stringify(t)}
387
+ insidePoint : ${JSON.stringify(r)}
388
+ node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const n=e.x,o=e.y,i=Math.abs(n-r.x),s=e.width/2;let a=r.x<t.x?s-i:s+i;const l=e.height/2,c=Math.abs(t.y-r.y),u=Math.abs(t.x-r.x);if(Math.abs(o-t.y)*s>Math.abs(n-t.x)*l){let d=r.y<t.y?t.y-l-o:o-l-t.y;a=u*d/c;const p={x:r.x<t.x?r.x+a:r.x-u+a,y:r.y<t.y?r.y+c-d:r.y-c+d};return a===0&&(p.x=t.x,p.y=t.y),u===0&&(p.x=t.x),c===0&&(p.y=t.y),ie.debug(`abc89 top/bottom calc, Q ${c}, q ${d}, R ${u}, r ${a}`,p),p}else{r.x<t.x?a=t.x-s-n:a=n-s-t.x;let d=c*a/u,p=r.x<t.x?r.x+u-a:r.x-u+a,h=r.y<t.y?r.y+d:r.y-d;return ie.debug(`sides calc abc89, Q ${c}, q ${d}, R ${u}, r ${a}`,{_x:p,_y:h}),a===0&&(p=t.x,h=t.y),u===0&&(p=t.x),c===0&&(h=t.y),{x:p,y:h}}},"intersection"),Pk=T((e,t)=>{ie.warn("abc88 cutPathAtIntersect",e,t);let r=[],n=e[0],o=!1;return e.forEach(i=>{if(ie.info("abc88 checking point",i,t),!Dae(t,i)&&!o){const s=Lae(t,n,i);ie.debug("abc88 inside",i,n,s),ie.debug("abc88 intersection",s,t);let a=!1;r.forEach(l=>{a=a||l.x===s.x&&l.y===s.y}),r.some(l=>l.x===s.x&&l.y===s.y)?ie.warn("abc88 no intersect",s,r):r.push(s),o=!0}else ie.warn("abc88 outside",i,n),n=i,o||r.push(i)}),ie.debug("returning points",r),r},"cutPathAtIntersect");function xE(e){const t=[],r=[];for(let n=1;n<e.length-1;n++){const o=e[n-1],i=e[n],s=e[n+1];(o.x===i.x&&i.y===s.y&&Math.abs(i.x-s.x)>5&&Math.abs(i.y-o.y)>5||o.y===i.y&&i.x===s.x&&Math.abs(i.x-o.x)>5&&Math.abs(i.y-s.y)>5)&&(t.push(i),r.push(n))}return{cornerPoints:t,cornerPointPositions:r}}T(xE,"extractCornerPoints");var Ik=T(function(e,t,r){const n=t.x-e.x,o=t.y-e.y,i=Math.sqrt(n*n+o*o),s=r/i;return{x:t.x-s*n,y:t.y-s*o}},"findAdjacentPoint"),Oae=T(function(e){const{cornerPointPositions:t}=xE(e),r=[];for(let n=0;n<e.length;n++)if(t.includes(n)){const o=e[n-1],i=e[n+1],s=e[n],a=Ik(o,s,5),l=Ik(i,s,5),c=l.x-a.x,u=l.y-a.y;r.push(a);const d=Math.sqrt(2)*2;let p={x:s.x,y:s.y};if(Math.abs(i.x-o.x)>10&&Math.abs(i.y-o.y)>=10){ie.debug("Corner point fixing",Math.abs(i.x-o.x),Math.abs(i.y-o.y));const h=5;s.x===a.x?p={x:c<0?a.x-h+d:a.x+h-d,y:u<0?a.y-d:a.y+d}:p={x:c<0?a.x-d:a.x+d,y:u<0?a.y-h+d:a.y+h-d}}else ie.debug("Corner point skipping fixing",Math.abs(i.x-o.x),Math.abs(i.y-o.y));r.push(p,l)}else r.push(e[n]);return r},"fixCorners"),qae=T((e,t,r)=>{const n=e-t-r,o=2,i=2,s=o+i,a=Math.floor(n/s),l=Array(a).fill(`${o} ${i}`).join(" ");return`0 ${t} ${l} ${r}`},"generateDashArray"),$ae=T(function(e,t,r,n,o,i,s,a=!1){var C;const{handDrawnSeed:l}=ft();let c=t.points,u=!1;const d=o;var p=i;const h=[];for(const R in t.cssCompiledStyles)Zj(R)||h.push(t.cssCompiledStyles[R]);ie.debug("UIO intersect check",t.points,p.x,d.x),p.intersect&&d.intersect&&!a&&(c=c.slice(1,t.points.length-1),c.unshift(d.intersect(c[0])),ie.debug("Last point UIO",t.start,"-->",t.end,c[c.length-1],p,p.intersect(c[c.length-1])),c.push(p.intersect(c[c.length-1])));const m=btoa(JSON.stringify(c));t.toCluster&&(ie.info("to cluster abc88",r.get(t.toCluster)),c=Pk(t.points,r.get(t.toCluster).node),u=!0),t.fromCluster&&(ie.debug("from cluster abc88",r.get(t.fromCluster),JSON.stringify(c,null,2)),c=Pk(c.reverse(),r.get(t.fromCluster).node).reverse(),u=!0);let g=c.filter(R=>!Number.isNaN(R.y));g=Oae(g);let y=lf;switch(y=ah,t.curve){case"linear":y=ah;break;case"basis":y=lf;break;case"cardinal":y=eN;break;case"bumpX":y=YT;break;case"bumpY":y=ZT;break;case"catmullRom":y=rN;break;case"monotoneX":y=lN;break;case"monotoneY":y=cN;break;case"natural":y=dN;break;case"step":y=fN;break;case"stepAfter":y=pN;break;case"stepBefore":y=hN;break;default:y=lf}const{x:v,y:b}=Dre(t),x=wte().x(v).y(b).curve(y);let k;switch(t.thickness){case"normal":k="edge-thickness-normal";break;case"thick":k="edge-thickness-thick";break;case"invisible":k="edge-thickness-invisible";break;default:k="edge-thickness-normal"}switch(t.pattern){case"solid":k+=" edge-pattern-solid";break;case"dotted":k+=" edge-pattern-dotted";break;case"dashed":k+=" edge-pattern-dashed";break;default:k+=" edge-pattern-solid"}let S,_=t.curve==="rounded"?wE(kE(g,t),5):x(g);const N=Array.isArray(t.style)?t.style:[t.style];let z=N.find(R=>R==null?void 0:R.startsWith("stroke:")),F=!1;if(t.look==="handDrawn"){const R=Te.svg(e);Object.assign([],g);const O=R.path(_,{roughness:.3,seed:l});k+=" transition",S=lt(O).select("path").attr("id",t.id).attr("class"," "+k+(t.classes?" "+t.classes:"")).attr("style",N?N.reduce((M,$)=>M+";"+$,""):"");let D=S.attr("d");S.attr("d",D),e.node().appendChild(S.node())}else{const R=h.join(";"),O=N?N.reduce((Y,ee)=>Y+ee+";",""):"";let D="";t.animate&&(D=" edge-animation-fast"),t.animation&&(D=" edge-animation-"+t.animation);const M=(R?R+";"+O+";":O)+";"+(N?N.reduce((Y,ee)=>Y+";"+ee,""):"");S=e.append("path").attr("d",_).attr("id",t.id).attr("class"," "+k+(t.classes?" "+t.classes:"")+(D??"")).attr("style",M),z=(C=M.match(/stroke:([^;]+)/))==null?void 0:C[1],F=t.animate===!0||!!t.animation||R.includes("animation");const $=S.node(),X=typeof $.getTotalLength=="function"?$.getTotalLength():0,V=J2[t.arrowTypeStart]||0,L=J2[t.arrowTypeEnd]||0;if(t.look==="neo"&&!F){const ee=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?qae(X,V,L):`0 ${V} ${X-V-L} ${L}`}; stroke-dashoffset: 0;`;S.attr("style",ee+S.attr("style"))}}S.attr("data-edge",!0),S.attr("data-et","edge"),S.attr("data-id",t.id),S.attr("data-points",m),t.showPoints&&g.forEach(R=>{e.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",R.x).attr("cy",R.y)});let I="";(ft().flowchart.arrowMarkerAbsolute||ft().state.arrowMarkerAbsolute)&&(I=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,I=I.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),ie.info("arrowTypeStart",t.arrowTypeStart),ie.info("arrowTypeEnd",t.arrowTypeEnd),Fae(S,t,I,s,n,z);const H=Math.floor(c.length/2),A=c[H];Kn.isLabelCoordinateInPath(A,S.attr("d"))||(u=!0);let P={};return u&&(P.updatedPath=c),P.originalPath=t.points,P},"insertEdge");function wE(e,t){if(e.length<2)return"";let r="";const n=e.length,o=1e-5;for(let i=0;i<n;i++){const s=e[i],a=e[i-1],l=e[i+1];if(i===0)r+=`M${s.x},${s.y}`;else if(i===n-1)r+=`L${s.x},${s.y}`;else{const c=s.x-a.x,u=s.y-a.y,d=l.x-s.x,p=l.y-s.y,h=Math.hypot(c,u),m=Math.hypot(d,p);if(h<o||m<o){r+=`L${s.x},${s.y}`;continue}const g=c/h,y=u/h,v=d/m,b=p/m,x=g*v+y*b,k=Math.max(-1,Math.min(1,x)),S=Math.acos(k);if(S<o||Math.abs(Math.PI-S)<o){r+=`L${s.x},${s.y}`;continue}const _=Math.min(t/Math.sin(S/2),h/2,m/2),N=s.x-g*_,z=s.y-y*_,F=s.x+v*_,I=s.y+b*_;r+=`L${N},${z}`,r+=`Q${s.x},${s.y} ${F},${I}`}}return r}T(wE,"generateRoundedPath");function Bv(e,t){if(!e||!t)return{angle:0,deltaX:0,deltaY:0};const r=t.x-e.x,n=t.y-e.y;return{angle:Math.atan2(n,r),deltaX:r,deltaY:n}}T(Bv,"calculateDeltaAndAngle");function kE(e,t){const r=e.map(o=>({...o}));if(e.length>=2&&Sr[t.arrowTypeStart]){const o=Sr[t.arrowTypeStart],i=e[0],s=e[1],{angle:a}=Bv(i,s),l=o*Math.cos(a),c=o*Math.sin(a);r[0].x=i.x+l,r[0].y=i.y+c}const n=e.length;if(n>=2&&Sr[t.arrowTypeEnd]){const o=Sr[t.arrowTypeEnd],i=e[n-1],s=e[n-2],{angle:a}=Bv(s,i),l=o*Math.cos(a),c=o*Math.sin(a);r[n-1].x=i.x-l,r[n-1].y=i.y-c}return r}T(kE,"applyMarkerOffsetsToPoints");var Hae=T((e,t,r,n)=>{t.forEach(o=>{ile[o](e,r,n)})},"insertMarkers"),Wae=T((e,t,r)=>{ie.trace("Making markers for ",r),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),Vae=T((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),Uae=T((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),Gae=T((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),Xae=T((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),Yae=T((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),Zae=T((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),Kae=T((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),Qae=T((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),Jae=T((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),ele=T((e,t,r)=>{const n=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),n.append("path").attr("d","M9,0 L9,18");const o=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");o.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),o.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),tle=T((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),rle=T((e,t,r)=>{const n=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),n.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");const o=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");o.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),o.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),nle=T((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
389
+ L20,10
390
+ M20,10
391
+ L0,20`)},"requirement_arrow"),ole=T((e,t,r)=>{const n=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");n.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),n.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),n.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),ile={extension:Wae,composition:Vae,aggregation:Uae,dependency:Gae,lollipop:Xae,point:Yae,circle:Zae,cross:Kae,barb:Qae,only_one:Jae,zero_or_one:ele,one_or_more:tle,zero_or_more:rle,requirement_arrow:nle,requirement_contains:ole},sle=Hae,ale={common:Tl,getConfig:Br,insertCluster:gae,insertEdge:$ae,insertEdgeLabel:Iae,insertMarkers:sle,insertNode:bE,interpolateToCurve:Z1,labelHelper:He,log:ie,positionEdgeLabel:Mae},wu={},SE=T(e=>{for(const t of e)wu[t.name]=t},"registerLayoutLoaders"),lle=T(()=>{SE([{name:"dagre",loader:T(async()=>await Ke(()=>import("./dagre-6UL2VRFP-B9xCTGce.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url),"loader")},{name:"cose-bilkent",loader:T(async()=>await Ke(()=>import("./cose-bilkent-S5V4N54A-BFz6nI_Q.js"),__vite__mapDeps([6,7]),import.meta.url),"loader")}])},"registerDefaultLayoutLoaders");lle();var lfe=T(async(e,t)=>{if(!(e.layoutAlgorithm in wu))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);const r=wu[e.layoutAlgorithm];return(await r.loader()).render(e,t,ale,{algorithm:r.algorithm})},"render"),cfe=T((e="",{fallback:t="dagre"}={})=>{if(e in wu)return e;if(t in wu)return ie.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw new Error(`Both layout algorithms ${e} and ${t} are not registered.`)},"getRegisteredLayoutAlgorithm"),cle=tz(Object.keys,Object),ule=Object.prototype,dle=ule.hasOwnProperty;function fle(e){if(!Np(e))return cle(e);var t=[];for(var r in Object(e))dle.call(e,r)&&r!="constructor"&&t.push(r);return t}var Tv=Us(Fo,"DataView"),Nv=Us(Fo,"Promise"),jv=Us(Fo,"Set"),zv=Us(Fo,"WeakMap"),Mk="[object Map]",hle="[object Object]",Dk="[object Promise]",Lk="[object Set]",Ok="[object WeakMap]",qk="[object DataView]",ple=Vs(Tv),gle=Vs(bu),mle=Vs(Nv),vle=Vs(jv),yle=Vs(zv),cs=jl;(Tv&&cs(new Tv(new ArrayBuffer(1)))!=qk||bu&&cs(new bu)!=Mk||Nv&&cs(Nv.resolve())!=Dk||jv&&cs(new jv)!=Lk||zv&&cs(new zv)!=Ok)&&(cs=function(e){var t=jl(e),r=t==hle?e.constructor:void 0,n=r?Vs(r):"";if(n)switch(n){case ple:return qk;case gle:return Mk;case mle:return Dk;case vle:return Lk;case yle:return Ok}return t});var ble="[object Map]",xle="[object Set]",wle=Object.prototype,kle=wle.hasOwnProperty;function $k(e){if(e==null)return!0;if(jp(e)&&(xh(e)||typeof e=="string"||typeof e.splice=="function"||X1(e)||Y1(e)||bh(e)))return!e.length;var t=cs(e);if(t==ble||t==xle)return!e.size;if(Np(e))return!fle(e).length;for(var r in e)if(kle.call(e,r))return!1;return!0}var CE="c4",Sle=T(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),Cle=T(async()=>{const{diagram:e}=await Ke(async()=>{const{diagram:t}=await import("./c4Diagram-YG6GDRKO-BJxhcb17.js");return{diagram:t}},__vite__mapDeps([8,9]),import.meta.url);return{id:CE,diagram:e}},"loader"),_le={id:CE,detector:Sle,loader:Cle},Ble=_le,_E="flowchart",Tle=T((e,t)=>{var r,n;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"||((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)},"detector"),Nle=T(async()=>{const{diagram:e}=await Ke(async()=>{const{diagram:t}=await import("./flowDiagram-NV44I4VS-DcFzPV5l.js");return{diagram:t}},__vite__mapDeps([10,11,12,13,14]),import.meta.url);return{id:_E,diagram:e}},"loader"),jle={id:_E,detector:Tle,loader:Nle},zle=jle,BE="flowchart-v2",Ele=T((e,t)=>{var r,n,o;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-d3"?!1:(((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="elk"&&(t.layout="elk"),/^\s*graph/.test(e)&&((o=t==null?void 0:t.flowchart)==null?void 0:o.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(e))},"detector"),Rle=T(async()=>{const{diagram:e}=await Ke(async()=>{const{diagram:t}=await import("./flowDiagram-NV44I4VS-DcFzPV5l.js");return{diagram:t}},__vite__mapDeps([10,11,12,13,14]),import.meta.url);return{id:BE,diagram:e}},"loader"),Ale={id:BE,detector:Ele,loader:Rle},Fle=Ale,TE="er",Ple=T(e=>/^\s*erDiagram/.test(e),"detector"),Ile=T(async()=>{const{diagram:e}=await Ke(async()=>{const{diagram:t}=await import("./erDiagram-Q2GNP2WA-HJD-sygr.js");return{diagram:t}},__vite__mapDeps([15,12,13,14]),import.meta.url);return{id:TE,diagram:e}},"loader"),Mle={id:TE,detector:Ple,loader:Ile},Dle=Mle,NE="gitGraph",Lle=T(e=>/^\s*gitGraph/.test(e),"detector"),Ole=T(async()=>{const{diagram:e}=await Ke(async()=>{const{diagram:t}=await import("./gitGraphDiagram-NY62KEGX-BJoaRoQP.js");return{diagram:t}},__vite__mapDeps([16,17,18,19,4,2]),import.meta.url);return{id:NE,diagram:e}},"loader"),qle={id:NE,detector:Lle,loader:Ole},$le=qle,jE="gantt",Hle=T(e=>/^\s*gantt/.test(e),"detector"),Wle=T(async()=>{const{diagram:e}=await Ke(async()=>{const{diagram:t}=await import("./ganttDiagram-JELNMOA3-5hzmn_YM.js");return{diagram:t}},__vite__mapDeps([20,21,22,23]),import.meta.url);return{id:jE,diagram:e}},"loader"),Vle={id:jE,detector:Hle,loader:Wle},Ule=Vle,zE="info",Gle=T(e=>/^\s*info/.test(e),"detector"),Xle=T(async()=>{const{diagram:e}=await Ke(async()=>{const{diagram:t}=await import("./infoDiagram-WHAUD3N6-Dm-9Locf.js");return{diagram:t}},__vite__mapDeps([24,19,4,2]),import.meta.url);return{id:zE,diagram:e}},"loader"),Yle={id:zE,detector:Gle,loader:Xle},EE="pie",Zle=T(e=>/^\s*pie/.test(e),"detector"),Kle=T(async()=>{const{diagram:e}=await Ke(async()=>{const{diagram:t}=await import("./pieDiagram-ADFJNKIX-COl1BPcc.js");return{diagram:t}},__vite__mapDeps([25,17,19,4,2,26,27,22]),import.meta.url);return{id:EE,diagram:e}},"loader"),Qle={id:EE,detector:Zle,loader:Kle},RE="quadrantChart",Jle=T(e=>/^\s*quadrantChart/.test(e),"detector"),ece=T(async()=>{const{diagram:e}=await Ke(async()=>{const{diagram:t}=await import("./quadrantDiagram-AYHSOK5B-C-fSINkS.js");return{diagram:t}},__vite__mapDeps([28,21,22,23]),import.meta.url);return{id:RE,diagram:e}},"loader"),tce={id:RE,detector:Jle,loader:ece},rce=tce,AE="xychart",nce=T(e=>/^\s*xychart(-beta)?/.test(e),"detector"),oce=T(async()=>{const{diagram:e}=await Ke(async()=>{const{diagram:t}=await import("./xychartDiagram-PRI3JC2R-CUzWjNyv.js");return{diagram:t}},__vite__mapDeps([29,22,27,21,23]),import.meta.url);return{id:AE,diagram:e}},"loader"),ice={id:AE,detector:nce,loader:oce},sce=ice,FE="requirement",ace=T(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),lce=T(async()=>{const{diagram:e}=await Ke(async()=>{const{diagram:t}=await import("./requirementDiagram-UZGBJVZJ-DSag9Z4m.js");return{diagram:t}},__vite__mapDeps([30,12,13]),import.meta.url);return{id:FE,diagram:e}},"loader"),cce={id:FE,detector:ace,loader:lce},uce=cce,PE="sequence",dce=T(e=>/^\s*sequenceDiagram/.test(e),"detector"),fce=T(async()=>{const{diagram:e}=await Ke(async()=>{const{diagram:t}=await import("./sequenceDiagram-WL72ISMW-GkUPZQOc.js");return{diagram:t}},__vite__mapDeps([31,9,18]),import.meta.url);return{id:PE,diagram:e}},"loader"),hce={id:PE,detector:dce,loader:fce},pce=hce,IE="class",gce=T((e,t)=>{var r;return((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e)},"detector"),mce=T(async()=>{const{diagram:e}=await Ke(async()=>{const{diagram:t}=await import("./classDiagram-2ON5EDUG-CEjpoRuI.js");return{diagram:t}},__vite__mapDeps([32,33,11,12,13]),import.meta.url);return{id:IE,diagram:e}},"loader"),vce={id:IE,detector:gce,loader:mce},yce=vce,ME="classDiagram",bce=T((e,t)=>{var r;return/^\s*classDiagram/.test(e)&&((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e)},"detector"),xce=T(async()=>{const{diagram:e}=await Ke(async()=>{const{diagram:t}=await import("./classDiagram-v2-WZHVMYZB-CEjpoRuI.js");return{diagram:t}},__vite__mapDeps([34,33,11,12,13]),import.meta.url);return{id:ME,diagram:e}},"loader"),wce={id:ME,detector:bce,loader:xce},kce=wce,DE="state",Sce=T((e,t)=>{var r;return((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e)},"detector"),Cce=T(async()=>{const{diagram:e}=await Ke(async()=>{const{diagram:t}=await import("./stateDiagram-FKZM4ZOC-DiJHFrza.js");return{diagram:t}},__vite__mapDeps([35,36,12,13,1,2,3,4]),import.meta.url);return{id:DE,diagram:e}},"loader"),_ce={id:DE,detector:Sce,loader:Cce},Bce=_ce,LE="stateDiagram",Tce=T((e,t)=>{var r;return!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper")},"detector"),Nce=T(async()=>{const{diagram:e}=await Ke(async()=>{const{diagram:t}=await import("./stateDiagram-v2-4FDKWEC3-BgdSYitm.js");return{diagram:t}},__vite__mapDeps([37,36,12,13]),import.meta.url);return{id:LE,diagram:e}},"loader"),jce={id:LE,detector:Tce,loader:Nce},zce=jce,OE="journey",Ece=T(e=>/^\s*journey/.test(e),"detector"),Rce=T(async()=>{const{diagram:e}=await Ke(async()=>{const{diagram:t}=await import("./journeyDiagram-XKPGCS4Q-Cn4q49x5.js");return{diagram:t}},__vite__mapDeps([38,9,11,26]),import.meta.url);return{id:OE,diagram:e}},"loader"),Ace={id:OE,detector:Ece,loader:Rce},Fce=Ace,Pce=T((e,t,r)=>{ie.debug(`rendering svg for syntax error
392
+ `);const n=zte(t),o=n.append("g");n.attr("viewBox","0 0 2412 512"),yT(n,100,512,!0),o.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),o.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),o.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),o.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),o.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),o.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),o.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),o.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},"draw"),qE={draw:Pce},Ice=qE,Mce={db:{},renderer:qE,parser:{parse:T(()=>{},"parse")}},Dce=Mce,$E="flowchart-elk",Lce=T((e,t={})=>{var r;return/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="elk"?(t.layout="elk",!0):!1},"detector"),Oce=T(async()=>{const{diagram:e}=await Ke(async()=>{const{diagram:t}=await import("./flowDiagram-NV44I4VS-DcFzPV5l.js");return{diagram:t}},__vite__mapDeps([10,11,12,13,14]),import.meta.url);return{id:$E,diagram:e}},"loader"),qce={id:$E,detector:Lce,loader:Oce},$ce=qce,HE="timeline",Hce=T(e=>/^\s*timeline/.test(e),"detector"),Wce=T(async()=>{const{diagram:e}=await Ke(async()=>{const{diagram:t}=await import("./timeline-definition-IT6M3QCI-BIeoFfU5.js");return{diagram:t}},__vite__mapDeps([39,26]),import.meta.url);return{id:HE,diagram:e}},"loader"),Vce={id:HE,detector:Hce,loader:Wce},Uce=Vce,WE="mindmap",Gce=T(e=>/^\s*mindmap/.test(e),"detector"),Xce=T(async()=>{const{diagram:e}=await Ke(async()=>{const{diagram:t}=await import("./mindmap-definition-VGOIOE7T-C43AGCOz.js");return{diagram:t}},__vite__mapDeps([40,12,13]),import.meta.url);return{id:WE,diagram:e}},"loader"),Yce={id:WE,detector:Gce,loader:Xce},Zce=Yce,VE="kanban",Kce=T(e=>/^\s*kanban/.test(e),"detector"),Qce=T(async()=>{const{diagram:e}=await Ke(async()=>{const{diagram:t}=await import("./kanban-definition-3W4ZIXB7-lUx8-faE.js");return{diagram:t}},__vite__mapDeps([41,11]),import.meta.url);return{id:VE,diagram:e}},"loader"),Jce={id:VE,detector:Kce,loader:Qce},eue=Jce,UE="sankey",tue=T(e=>/^\s*sankey(-beta)?/.test(e),"detector"),rue=T(async()=>{const{diagram:e}=await Ke(async()=>{const{diagram:t}=await import("./sankeyDiagram-TZEHDZUN-JyvYJ7BV.js");return{diagram:t}},__vite__mapDeps([42,27,22]),import.meta.url);return{id:UE,diagram:e}},"loader"),nue={id:UE,detector:tue,loader:rue},oue=nue,GE="packet",iue=T(e=>/^\s*packet(-beta)?/.test(e),"detector"),sue=T(async()=>{const{diagram:e}=await Ke(async()=>{const{diagram:t}=await import("./diagram-S2PKOQOG-Qhy7nrMX.js");return{diagram:t}},__vite__mapDeps([43,17,19,4,2]),import.meta.url);return{id:GE,diagram:e}},"loader"),aue={id:GE,detector:iue,loader:sue},XE="radar",lue=T(e=>/^\s*radar-beta/.test(e),"detector"),cue=T(async()=>{const{diagram:e}=await Ke(async()=>{const{diagram:t}=await import("./diagram-QEK2KX5R-BAd41szY.js");return{diagram:t}},__vite__mapDeps([44,17,19,4,2]),import.meta.url);return{id:XE,diagram:e}},"loader"),uue={id:XE,detector:lue,loader:cue},YE="block",due=T(e=>/^\s*block(-beta)?/.test(e),"detector"),fue=T(async()=>{const{diagram:e}=await Ke(async()=>{const{diagram:t}=await import("./blockDiagram-VD42YOAC-B4incSX8.js");return{diagram:t}},__vite__mapDeps([45,11,5,1,2,14]),import.meta.url);return{id:YE,diagram:e}},"loader"),hue={id:YE,detector:due,loader:fue},pue=hue,ZE="architecture",gue=T(e=>/^\s*architecture/.test(e),"detector"),mue=T(async()=>{const{diagram:e}=await Ke(async()=>{const{diagram:t}=await import("./architectureDiagram-VXUJARFQ-C-olLUHb.js");return{diagram:t}},__vite__mapDeps([46,17,19,4,2,7]),import.meta.url);return{id:ZE,diagram:e}},"loader"),vue={id:ZE,detector:gue,loader:mue},yue=vue,KE="treemap",bue=T(e=>/^\s*treemap/.test(e),"detector"),xue=T(async()=>{const{diagram:e}=await Ke(async()=>{const{diagram:t}=await import("./diagram-PSM6KHXK-BG-mPBdn.js");return{diagram:t}},__vite__mapDeps([47,13,17,19,4,2,23,27,22]),import.meta.url);return{id:KE,diagram:e}},"loader"),wue={id:KE,detector:bue,loader:xue},Hk=!1,Dp=T(()=>{Hk||(Hk=!0,eh("error",Dce,e=>e.toLowerCase().trim()==="error"),eh("---",{db:{clear:T(()=>{},"clear")},styles:{},renderer:{draw:T(()=>{},"draw")},parser:{parse:T(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:T(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),L0($ce,Zce,yue),L0(Ble,eue,kce,yce,Dle,Ule,Yle,Qle,uce,pce,Fle,zle,Uce,$le,zce,Bce,Fce,rce,oue,aue,sce,pue,uue,wue))},"addDiagrams"),kue=T(async()=>{ie.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(As).map(async([r,{detector:n,loader:o}])=>{if(o)try{H0(r)}catch{try{const{diagram:i,id:s}=await o();eh(s,i,n)}catch(i){throw ie.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete As[r],i}}}))).filter(r=>r.status==="rejected");if(t.length>0){ie.error(`Failed to load ${t.length} external diagrams`);for(const r of t)ie.error(r);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams"),Sue="graphics-document document";function QE(e,t){e.attr("role",Sue),t!==""&&e.attr("aria-roledescription",t)}T(QE,"setA11yDiagramInfo");function JE(e,t,r,n){if(e.insert!==void 0){if(r){const o=`chart-desc-${n}`;e.attr("aria-describedby",o),e.insert("desc",":first-child").attr("id",o).text(r)}if(t){const o=`chart-title-${n}`;e.attr("aria-labelledby",o),e.insert("title",":first-child").attr("id",o).text(t)}}}T(JE,"addSVGa11yTitleDescription");var Cs,Ev=(Cs=class{constructor(t,r,n,o,i){this.type=t,this.text=r,this.db=n,this.parser=o,this.renderer=i}static async fromText(t,r={}){var c,u;const n=Br(),o=b1(t,n);t=Die(t)+`
393
+ `;try{H0(o)}catch{const d=sK(o);if(!d)throw new sT(`Diagram ${o} not found.`);const{id:p,diagram:h}=await d();eh(p,h)}const{db:i,parser:s,renderer:a,init:l}=H0(o);return s.parser&&(s.parser.yy=i),(c=i.clear)==null||c.call(i),l==null||l(n),r.title&&((u=i.setDiagramTitle)==null||u.call(i,r.title)),await s.parse(t),new Cs(o,t,i,s,a)}async render(t,r){await this.renderer.draw(this.text,t,r,this)}getParser(){return this.parser}getType(){return this.type}},T(Cs,"Diagram"),Cs),Wk=[],Cue=T(()=>{Wk.forEach(e=>{e()}),Wk=[]},"attachFunctions"),_ue=T(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function e6(e){const t=e.match(iT);if(!t)return{text:e,metadata:{}};let r=Mre(t[1],{schema:Ire})??{};r=typeof r=="object"&&!Array.isArray(r)?r:{};const n={};return r.displayMode&&(n.displayMode=r.displayMode.toString()),r.title&&(n.title=r.title.toString()),r.config&&(n.config=r.config),{text:e.slice(t[0].length),metadata:n}}T(e6,"extractFrontMatter");var Bue=T(e=>e.replace(/\r\n?/g,`
394
+ `).replace(/<(\w+)([^>]*)>/g,(t,r,n)=>"<"+r+n.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),Tue=T(e=>{const{text:t,metadata:r}=e6(e),{displayMode:n,title:o,config:i={}}=r;return n&&(i.gantt||(i.gantt={}),i.gantt.displayMode=n),{title:o,config:i,text:t}},"processFrontmatter"),Nue=T(e=>{const t=Kn.detectInit(e)??{},r=Kn.detectDirective(e,"wrap");return Array.isArray(r)?t.wrap=r.some(({type:n})=>n==="wrap"):(r==null?void 0:r.type)==="wrap"&&(t.wrap=!0),{text:_ie(e),directive:t}},"processDirectives");function mb(e){const t=Bue(e),r=Tue(t),n=Nue(r.text),o=tb(r.config,n.directive);return e=_ue(n.text),{code:e,title:r.title,config:o}}T(mb,"preprocessDiagram");function t6(e){const t=new TextEncoder().encode(e),r=Array.from(t,n=>String.fromCodePoint(n)).join("");return btoa(r)}T(t6,"toBase64");var jue=5e4,zue="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",Eue="sandbox",Rue="loose",Aue="http://www.w3.org/2000/svg",Fue="http://www.w3.org/1999/xlink",Pue="http://www.w3.org/1999/xhtml",Iue="100%",Mue="100%",Due="border:0;margin:0;",Lue="margin:0",Oue="allow-top-navigation-by-user-activation allow-popups",que='The "iframe" tag is not supported by your browser.',$ue=["foreignobject"],Hue=["dominant-baseline"];function vb(e){const t=mb(e);return Qf(),kK(t.config??{}),t}T(vb,"processAndSetConfigs");async function r6(e,t){Dp();try{const{code:r,config:n}=vb(e);return{diagramType:(await o6(r)).type,config:n}}catch(r){if(t!=null&&t.suppressErrors)return!1;throw r}}T(r6,"parse");var Vk=T((e,t,r=[])=>`
395
+ .${e} ${t} { ${r.join(" !important; ")} !important; }`,"cssImportantStyles"),Wue=T((e,t=new Map)=>{var n;let r="";if(e.themeCSS!==void 0&&(r+=`
396
+ ${e.themeCSS}`),e.fontFamily!==void 0&&(r+=`
397
+ :root { --mermaid-font-family: ${e.fontFamily}}`),e.altFontFamily!==void 0&&(r+=`
398
+ :root { --mermaid-alt-font-family: ${e.altFontFamily}}`),t instanceof Map){const a=e.htmlLabels??((n=e.flowchart)==null?void 0:n.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(l=>{$k(l.styles)||a.forEach(c=>{r+=Vk(l.id,c,l.styles)}),$k(l.textStyles)||(r+=Vk(l.id,"tspan",((l==null?void 0:l.textStyles)||[]).map(c=>c.replace("color","fill"))))})}return r},"createCssStyles"),Vue=T((e,t,r,n)=>{const o=Wue(e,r),i=$K(t,o,e.themeVariables);return zs(zy(`${n}{${i}}`),Ey)},"createUserStyles"),Uue=T((e="",t,r)=>{let n=e;return!r&&!t&&(n=n.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),n=Gs(n),n=n.replace(/<br>/g,"<br/>"),n},"cleanUpSvgCode"),Gue=T((e="",t)=>{var o,i;const r=(i=(o=t==null?void 0:t.viewBox)==null?void 0:o.baseVal)!=null&&i.height?t.viewBox.baseVal.height+"px":Mue,n=t6(`<body style="${Lue}">${e}</body>`);return`<iframe style="width:${Iue};height:${r};${Due}" src="data:text/html;charset=UTF-8;base64,${n}" sandbox="${Oue}">
399
+ ${que}
400
+ </iframe>`},"putIntoIFrame"),Uk=T((e,t,r,n,o)=>{const i=e.append("div");i.attr("id",r),n&&i.attr("style",n);const s=i.append("svg").attr("id",t).attr("width","100%").attr("xmlns",Aue);return o&&s.attr("xmlns:xlink",o),s.append("g"),e},"appendDivSvgG");function Rv(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}T(Rv,"sandboxedIframe");var Xue=T((e,t,r,n)=>{var o,i,s;(o=e.getElementById(t))==null||o.remove(),(i=e.getElementById(r))==null||i.remove(),(s=e.getElementById(n))==null||s.remove()},"removeExistingElements"),Yue=T(async function(e,t,r){var A,P,C,R,O,D;Dp();const n=vb(t);t=n.code;const o=Br();ie.debug(o),t.length>((o==null?void 0:o.maxTextSize)??jue)&&(t=zue);const i="#"+e,s="i"+e,a="#"+s,l="d"+e,c="#"+l,u=T(()=>{const $=lt(p?a:c).node();$&&"remove"in $&&$.remove()},"removeTempElements");let d=lt("body");const p=o.securityLevel===Eue,h=o.securityLevel===Rue,m=o.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),p){const M=Rv(lt(r),s);d=lt(M.nodes()[0].contentDocument.body),d.node().style.margin=0}else d=lt(r);Uk(d,e,l,`font-family: ${m}`,Fue)}else{if(Xue(document,e,l,s),p){const M=Rv(lt("body"),s);d=lt(M.nodes()[0].contentDocument.body),d.node().style.margin=0}else d=lt("body");Uk(d,e,l)}let g,y;try{g=await Ev.fromText(t,{title:n.title})}catch(M){if(o.suppressErrorRendering)throw u(),M;g=await Ev.fromText("error"),y=M}const v=d.select(c).node(),b=g.type,x=v.firstChild,k=x.firstChild,S=(P=(A=g.renderer).getClasses)==null?void 0:P.call(A,t,g),_=Vue(o,b,S,i),N=document.createElement("style");N.innerHTML=_,x.insertBefore(N,k);try{await g.renderer.draw(t,e,g2.version,g)}catch(M){throw o.suppressErrorRendering?u():Ice.draw(t,e,g2.version),M}const z=d.select(`${c} svg`),F=(R=(C=g.db).getAccTitle)==null?void 0:R.call(C),I=(D=(O=g.db).getAccDescription)==null?void 0:D.call(O);i6(b,z,F,I),d.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",Pue);let H=d.select(c).node().innerHTML;if(ie.debug("config.arrowMarkerAbsolute",o.arrowMarkerAbsolute),H=Uue(H,p,ir(o.arrowMarkerAbsolute)),p){const M=d.select(c+" svg").node();H=Gue(H,M)}else h||(H=nl.sanitize(H,{ADD_TAGS:$ue,ADD_ATTR:Hue,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(Cue(),y)throw y;return u(),{diagramType:b,svg:H,bindFunctions:g.db.bindFunctions}},"render");function n6(e={}){var n;const t=er({},e);t!=null&&t.fontFamily&&!((n=t.themeVariables)!=null&&n.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),xK(t),t!=null&&t.theme&&t.theme in Ko?t.themeVariables=Ko[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=Ko.default.getThemeVariables(t.themeVariables));const r=typeof t=="object"?bK(t):dT();y1(r.logLevel),Dp()}T(n6,"initialize");var o6=T((e,t={})=>{const{code:r}=mb(e);return Ev.fromText(r,t)},"getDiagramFromText");function i6(e,t,r,n){QE(t,e),JE(t,r,n,t.attr("id"))}T(i6,"addA11yInfo");var Ls=Object.freeze({render:Yue,parse:r6,getDiagramFromText:o6,initialize:n6,getConfig:Br,setConfig:fT,getSiteConfig:dT,updateSiteConfig:wK,reset:T(()=>{Qf()},"reset"),globalReset:T(()=>{Qf(ol)},"globalReset"),defaultConfig:ol});y1(Br().logLevel);Qf(Br());var Zue=T((e,t,r)=>{ie.warn(e),eb(e)?(r&&r(e.str,e.hash),t.push({...e,message:e.str,error:e})):(r&&r(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError"),s6=T(async function(e={querySelector:".mermaid"}){try{await Kue(e)}catch(t){if(eb(t)&&ie.error(t.str),vn.parseError&&vn.parseError(t),!e.suppressErrors)throw ie.error("Use the suppressErrors option to suppress these errors"),t}},"run"),Kue=T(async function({postRenderCallback:e,querySelector:t,nodes:r}={querySelector:".mermaid"}){const n=Ls.getConfig();ie.debug(`${e?"":"No "}Callback function found`);let o;if(r)o=r;else if(t)o=document.querySelectorAll(t);else throw new Error("Nodes and querySelector are both undefined");ie.debug(`Found ${o.length} diagrams`),(n==null?void 0:n.startOnLoad)!==void 0&&(ie.debug("Start On Load: "+(n==null?void 0:n.startOnLoad)),Ls.updateSiteConfig({startOnLoad:n==null?void 0:n.startOnLoad}));const i=new Kn.InitIDGenerator(n.deterministicIds,n.deterministicIDSeed);let s;const a=[];for(const l of Array.from(o)){if(ie.info("Rendering diagram: "+l.id),l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const c=`mermaid-${i.next()}`;s=l.innerHTML,s=Az(Kn.entityDecode(s)).trim().replace(/<br\s*\/?>/gi,"<br/>");const u=Kn.detectInit(s);u&&ie.debug("Detected early reinit: ",u);try{const{svg:d,bindFunctions:p}=await u6(c,s,l);l.innerHTML=d,e&&await e(c),p&&p(l)}catch(d){Zue(d,a,vn.parseError)}}if(a.length>0)throw a[0]},"runThrowsErrors"),a6=T(function(e){Ls.initialize(e)},"initialize"),Que=T(async function(e,t,r){ie.warn("mermaid.init is deprecated. Please use run instead."),e&&a6(e);const n={postRenderCallback:r,querySelector:".mermaid"};typeof t=="string"?n.querySelector=t:t&&(t instanceof HTMLElement?n.nodes=[t]:n.nodes=t),await s6(n)},"init"),Jue=T(async(e,{lazyLoad:t=!0}={})=>{Dp(),L0(...e),t===!1&&await kue()},"registerExternalDiagrams"),l6=T(function(){if(vn.startOnLoad){const{startOnLoad:e}=Ls.getConfig();e&&vn.run().catch(t=>ie.error("Mermaid failed to initialize",t))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",l6,!1);var ede=T(function(e){vn.parseError=e},"setParseErrorHandler"),Eh=[],am=!1,c6=T(async()=>{if(!am){for(am=!0;Eh.length>0;){const e=Eh.shift();if(e)try{await e()}catch(t){ie.error("Error executing queue",t)}}am=!1}},"executeQueue"),tde=T(async(e,t)=>new Promise((r,n)=>{const o=T(()=>new Promise((i,s)=>{Ls.parse(e,t).then(a=>{i(a),r(a)},a=>{var l;ie.error("Error parsing",a),(l=vn.parseError)==null||l.call(vn,a),s(a),n(a)})}),"performCall");Eh.push(o),c6().catch(n)}),"parse"),u6=T((e,t,r)=>new Promise((n,o)=>{const i=T(()=>new Promise((s,a)=>{Ls.render(e,t,r).then(l=>{s(l),n(l)},l=>{var c;ie.error("Error parsing",l),(c=vn.parseError)==null||c.call(vn,l),a(l),o(l)})}),"performCall");Eh.push(i),c6().catch(o)}),"render"),rde=T(()=>Object.keys(As).map(e=>({id:e})),"getRegisteredDiagramsMetadata"),vn={startOnLoad:!0,mermaidAPI:Ls,parse:tde,render:u6,init:Que,run:s6,registerExternalDiagrams:Jue,registerLayoutLoaders:SE,initialize:a6,parseError:void 0,contentLoaded:l6,setParseErrorHandler:ede,detectType:b1,registerIconPacks:$se,getRegisteredDiagramsMetadata:rde},hf=vn;/*! Check if previously processed *//*!
401
+ * Wait for document loaded before starting the execution
402
+ */function d6(){hf.initialize({startOnLoad:!1,theme:"default",securityLevel:"loose",er:{useMaxWidth:!0,fontSize:14,layoutDirection:"TB"},flowchart:{useMaxWidth:!0}})}async function nde(e,t){try{const r=e.trim();d6();const{svg:n}=await hf.render(t,r);return n}catch(r){try{hf.initialize({startOnLoad:!1,theme:"default",securityLevel:"loose",maxTextSize:9e5,er:{useMaxWidth:!0,fontSize:12,layoutDirection:"TB"}});const{svg:n}=await hf.render(t+"-retry",e.trim());return n}catch{throw new Error(`Mermaid rendering failed: ${r instanceof Error?r.message:"Unknown error"}`)}}}function ode(e){var n,o,i,s,a,l;const t=[];t.push("// Generated by Power Platform Solution Blueprint (PPSB)"),t.push(`// ${e.metadata.generatedAt}`),t.push("// Paste this code at https://dbdiagram.io/d to visualize"),t.push("");const r=new Set;for(const c of e.entities){const u=c.entity,d=u.LogicalName;t.push(`Table ${d} {`);const p=((o=(n=u.DisplayName)==null?void 0:n.UserLocalizedLabel)==null?void 0:o.Label)||d;t.push(` Note: '${p}'`),t.push("");const h=u.Attributes||[];for(const m of h){const g=m.LogicalName,y=ide(m.AttributeType),v=[];m.IsPrimaryId&&v.push("pk"),(((i=m.RequiredLevel)==null?void 0:i.Value)==="ApplicationRequired"||((s=m.RequiredLevel)==null?void 0:s.Value)==="SystemRequired")&&v.push("not null");const b=(l=(a=m.DisplayName)==null?void 0:a.UserLocalizedLabel)==null?void 0:l.Label;b&&b!==g&&v.push(`note: '${b.replace(/'/g,"\\'")}'`);const x=v.length>0?` [${v.join(", ")}]`:"";t.push(` ${g} ${y}${x}`)}t.push("}"),t.push("")}t.push("// Relationships"),t.push("");for(const c of e.entities){const u=c.entity,d=u.ManyToOneRelationships||[];for(const h of d){const m=`${h.ReferencingEntity}.${h.ReferencingAttribute}->${h.ReferencedEntity}.${h.ReferencedAttribute}`;r.has(m)||(r.add(m),t.push(`Ref: ${h.ReferencingEntity}.${h.ReferencingAttribute} > ${h.ReferencedEntity}.${h.ReferencedAttribute}`))}const p=u.ManyToManyRelationships||[];for(const h of p){const m=[h.Entity1LogicalName,h.Entity2LogicalName].sort(),g=`${m[0]}<>${m[1]}:${h.IntersectEntityName}`;r.has(g)||(r.add(g),t.push(`Ref: ${h.Entity1LogicalName}.${u.PrimaryIdAttribute} <> ${h.Entity2LogicalName}.${u.PrimaryIdAttribute} [note: 'via ${h.IntersectEntityName}']`))}}return t.join(`
403
+ `)}function ide(e){return{String:"nvarchar",Memo:"nvarchar(max)",Integer:"int",BigInt:"bigint",Decimal:"decimal",Double:"float",Money:"money",Boolean:"bit",DateTime:"datetime",Lookup:"uniqueidentifier",Customer:"uniqueidentifier",Owner:"uniqueidentifier",Uniqueidentifier:"uniqueidentifier",Picklist:"int",State:"int",Status:"int",Virtual:"nvarchar",EntityName:"nvarchar",ManagedProperty:"bit"}[e]||"nvarchar"}const sde=bt({container:{display:"flex",flexDirection:"column",gap:w.spacingVerticalL},diagramSection:{display:"flex",flexDirection:"column",gap:w.spacingVerticalM},diagramCard:{padding:w.spacingVerticalL,overflowX:"auto"},diagramControls:{display:"flex",gap:w.spacingHorizontalM,flexWrap:"wrap"},diagramContainer:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"400px",padding:w.spacingVerticalL},legendSection:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(250px, 1fr))",gap:w.spacingHorizontalM},legendCard:{padding:w.spacingVerticalM},legendHeader:{display:"flex",alignItems:"center",gap:w.spacingHorizontalS,marginBottom:w.spacingVerticalS},legendColor:{width:"16px",height:"16px",borderRadius:w.borderRadiusSmall,border:`1px solid ${w.colorNeutralStroke1}`},legendEntities:{fontSize:w.fontSizeBase200,color:w.colorNeutralForeground3,marginTop:w.spacingVerticalXS},quickLinksSection:{display:"flex",flexDirection:"column",gap:w.spacingVerticalM},searchBox:{minWidth:"300px"},tableContainer:{maxHeight:"500px",overflowY:"auto"},complexityBadge:{minWidth:"60px"}});function ade({erd:e,blueprintResult:t}){const r=sde(),[n,o]=B.useState(""),[i,s]=B.useState(!0),[a,l]=B.useState(null),[c,u]=B.useState(""),[d,p]=B.useState(100),h=or("toaster"),{dispatchToast:m}=mG(h),g=e.diagrams[0];B.useEffect(()=>{d6()},[]),B.useEffect(()=>{(async()=>{if(g)try{s(!0),l(null);const z=await nde(g.mermaidDiagram,`erd-diagram-${g.id}`);o(z)}catch(z){l(z instanceof Error?z.message:"Failed to render ERD")}finally{s(!1)}})()},[g]);const y=B.useMemo(()=>{if(!c)return e.entityQuickLinks;const N=c.toLowerCase();return e.entityQuickLinks.filter(z=>z.logicalName.toLowerCase().includes(N)||z.displayName.toLowerCase().includes(N)||z.publisherPrefix.toLowerCase().includes(N))},[e.entityQuickLinks,c]),v=[Ne({columnId:"displayName",renderHeaderCell:()=>"Entity Name",renderCell:N=>f.jsx(E,{weight:"semibold",children:N.displayName}),compare:(N,z)=>N.displayName.localeCompare(z.displayName)}),Ne({columnId:"logicalName",renderHeaderCell:()=>"Logical Name",renderCell:N=>f.jsx(E,{style:{fontFamily:"Consolas, Monaco, monospace",fontSize:w.fontSizeBase200},children:N.logicalName})}),Ne({columnId:"publisher",renderHeaderCell:()=>"Publisher",renderCell:N=>f.jsx(Q,{appearance:"outline",color:"brand",children:N.publisherPrefix})}),Ne({columnId:"fields",renderHeaderCell:()=>"Fields",renderCell:N=>f.jsx(E,{children:N.fieldCount}),compare:(N,z)=>N.fieldCount-z.fieldCount}),Ne({columnId:"plugins",renderHeaderCell:()=>"Plugins",renderCell:N=>f.jsx(E,{children:N.pluginCount}),compare:(N,z)=>N.pluginCount-z.pluginCount}),Ne({columnId:"flows",renderHeaderCell:()=>"Flows",renderCell:N=>f.jsx(E,{children:N.flowCount}),compare:(N,z)=>N.flowCount-z.flowCount}),Ne({columnId:"businessRules",renderHeaderCell:()=>"Business Rules",renderCell:N=>f.jsx(E,{children:N.businessRuleCount}),compare:(N,z)=>N.businessRuleCount-z.businessRuleCount}),Ne({columnId:"complexity",renderHeaderCell:()=>"Complexity",renderCell:N=>f.jsx(Q,{className:r.complexityBadge,appearance:"filled",color:N.complexity==="High"?"danger":N.complexity==="Medium"?"warning":"success",children:N.complexity}),compare:(N,z)=>{const F={High:0,Medium:1,Low:2};return F[N.complexity]-F[z.complexity]}})],b=()=>{const N=new Blob([n],{type:"image/svg+xml"}),z=URL.createObjectURL(N),F=document.createElement("a");F.href=z,F.download=`entity-relationship-diagram-${(g==null?void 0:g.id)||"diagram"}.svg`,F.click(),URL.revokeObjectURL(z)},x=()=>{g&&(navigator.clipboard.writeText(g.mermaidDiagram),m(f.jsx(F0,{children:f.jsx(P0,{action:f.jsx(Tw,{}),children:"Mermaid code copied to clipboard"})}),{intent:"success",timeout:2e3}))},k=()=>{const N=ode(t);navigator.clipboard.writeText(N),m(f.jsx(F0,{children:f.jsx(P0,{action:f.jsx(Tw,{}),children:"dbdiagram.io code copied! Paste it at https://dbdiagram.io/d"})}),{intent:"success",timeout:3e3})},S=()=>{p(N=>Math.min(N+10,200))},_=()=>{p(N=>Math.max(N-10,50))};return f.jsxs("div",{className:r.container,children:[f.jsx(q3,{toasterId:h}),f.jsxs("div",{className:r.diagramSection,children:[f.jsx(Ze,{children:"Entity Relationship Diagram"}),f.jsxs(E,{children:[e.totalEntities," total entities, ",e.totalRelationships," total relationships"]}),e.warnings&&e.warnings.length>0&&f.jsx(_l,{intent:"info",icon:f.jsx(zL,{}),children:f.jsx(Bl,{children:e.warnings.map((N,z)=>f.jsx("div",{children:N},z))})}),g&&f.jsx(E,{style:{marginTop:w.spacingVerticalS,color:w.colorNeutralForeground3},children:g.description}),f.jsxs("div",{className:r.diagramControls,children:[f.jsx(st,{icon:f.jsx(tB,{}),onClick:b,disabled:!n,children:"Download SVG"}),f.jsx(st,{icon:f.jsx(y0,{}),onClick:x,children:"Copy Mermaid Code"}),f.jsx(st,{icon:f.jsx(y0,{}),onClick:k,children:"Copy dbdiagram.io Code"}),f.jsx(st,{icon:f.jsx(IL,{}),onClick:S,disabled:d>=200,children:"Zoom In"}),f.jsx(st,{icon:f.jsx(ML,{}),onClick:_,disabled:d<=50,children:"Zoom Out"}),f.jsxs(E,{children:[d,"%"]})]}),f.jsxs(Pe,{className:r.diagramCard,children:[i&&f.jsx(E,{children:"Rendering diagram..."}),a&&f.jsx("div",{style:{padding:w.spacingVerticalL,textAlign:"center",color:w.colorNeutralForeground3},children:f.jsx(E,{children:"Diagram preview unavailable. Use the export options to generate the full ERD."})}),n&&!i&&!a&&f.jsx("div",{className:r.diagramContainer,style:{transform:`scale(${d/100})`,transformOrigin:"top center"},dangerouslySetInnerHTML:{__html:n}})]})]}),f.jsxs("div",{className:r.diagramSection,children:[f.jsx(Ze,{children:"Publisher Color Legend"}),f.jsx("div",{className:r.legendSection,children:e.legend.map(N=>f.jsxs(Pe,{className:r.legendCard,children:[f.jsxs("div",{className:r.legendHeader,children:[f.jsx("div",{className:r.legendColor,style:{backgroundColor:N.color}}),f.jsx(E,{weight:"semibold",children:N.publisherName}),f.jsx(Q,{appearance:"outline",children:N.entityCount})]}),f.jsxs("div",{className:r.legendEntities,children:[N.entities.slice(0,5).join(", "),N.entities.length>5&&` +${N.entities.length-5} more`]})]},N.publisherPrefix))})]}),f.jsxs("div",{className:r.quickLinksSection,children:[f.jsx(Ze,{children:"Entity Quick Links"}),f.jsx(Zi,{className:r.searchBox,placeholder:"Search entities...",value:c,onChange:(N,z)=>u(z.value)}),f.jsxs(E,{children:["Showing ",y.length," of ",e.entityQuickLinks.length," entities"]}),f.jsx("div",{className:r.tableContainer,children:f.jsxs(on,{items:y,columns:v,sortable:!0,resizableColumns:!0,children:[f.jsx(sn,{children:f.jsx(vt,{children:({renderHeaderCell:N})=>f.jsx(an,{children:N()})})}),f.jsx(nn,{children:({item:N,rowId:z})=>f.jsx(vt,{children:({renderCell:F})=>f.jsx(rn,{children:F(N)})},z)})]})})]})]})}const lde=bt({container:{display:"flex",flexDirection:"column",gap:w.spacingVerticalL},controls:{display:"flex",gap:w.spacingHorizontalM,flexWrap:"wrap",alignItems:"center"},searchBox:{minWidth:"300px"},dropdown:{minWidth:"200px"},tableContainer:{maxHeight:"700px",overflowY:"auto"},entityCell:{display:"flex",flexDirection:"column",gap:w.spacingVerticalXXS},entityName:{fontWeight:w.fontWeightSemibold},entityLogical:{fontSize:w.fontSizeBase200,color:w.colorNeutralForeground3,fontFamily:"Consolas, Monaco, monospace"},descriptionCell:{maxWidth:"400px",wordBreak:"break-word"},warningIcon:{color:w.colorPaletteRedForeground1},statsCard:{padding:w.spacingVerticalM,display:"flex",flexDirection:"column",gap:w.spacingVerticalXS},statsGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(200px, 1fr))",gap:w.spacingHorizontalM,marginBottom:w.spacingVerticalL}});function cde({links:e}){const t=lde(),[r,n]=B.useState(""),[o,i]=B.useState("all"),[s,a]=B.useState("all"),[l,c]=B.useState("all"),u=B.useMemo(()=>{const h=e.filter(b=>!b.isAsynchronous),m=e.filter(b=>b.isAsynchronous),g=new Set(e.map(b=>b.sourceEntity)).size,y=new Set(e.map(b=>b.targetEntity)).size,v=e.reduce((b,x)=>(b[x.automationType]=(b[x.automationType]||0)+1,b),{});return{total:e.length,synchronous:h.length,asynchronous:m.length,uniqueSourceEntities:g,uniqueTargetEntities:y,byAutomationType:v}},[e]),d=B.useMemo(()=>e.filter(h=>{if(r){const m=r.toLowerCase();if(!(h.sourceEntity.toLowerCase().includes(m)||h.sourceEntityDisplayName.toLowerCase().includes(m)||h.targetEntity.toLowerCase().includes(m)||h.targetEntityDisplayName.toLowerCase().includes(m)||h.automationName.toLowerCase().includes(m)))return!1}return!(o!=="all"&&h.automationType!==o||s!=="all"&&h.operation!==s||l==="sync"&&h.isAsynchronous||l==="async"&&!h.isAsynchronous)}),[e,r,o,s,l]),p=[Ne({columnId:"source",renderHeaderCell:()=>"Source Entity",renderCell:h=>f.jsxs("div",{className:t.entityCell,children:[f.jsx(E,{className:t.entityName,children:h.sourceEntityDisplayName}),f.jsx(E,{className:t.entityLogical,children:h.sourceEntity})]}),compare:(h,m)=>h.sourceEntity.localeCompare(m.sourceEntity)}),Ne({columnId:"arrow",renderHeaderCell:()=>"",renderCell:()=>f.jsx(OL,{})}),Ne({columnId:"target",renderHeaderCell:()=>"Target Entity",renderCell:h=>f.jsxs("div",{className:t.entityCell,children:[f.jsx(E,{className:t.entityName,children:h.targetEntityDisplayName}),f.jsx(E,{className:t.entityLogical,children:h.targetEntity})]}),compare:(h,m)=>h.targetEntity.localeCompare(m.targetEntity)}),Ne({columnId:"automationType",renderHeaderCell:()=>"Type",renderCell:h=>f.jsx(Q,{appearance:"outline",color:h.automationType==="Plugin"?"brand":h.automationType==="Flow"?"success":"important",children:h.automationType})}),Ne({columnId:"automationName",renderHeaderCell:()=>"Automation Name",renderCell:h=>f.jsx(E,{weight:"semibold",children:h.automationName})}),Ne({columnId:"operation",renderHeaderCell:()=>"Operation",renderCell:h=>f.jsx(Q,{appearance:"filled",color:h.operation==="Create"?"success":h.operation==="Update"?"warning":h.operation==="Delete"?"danger":"informative",children:h.operation})}),Ne({columnId:"mode",renderHeaderCell:()=>"Mode",renderCell:h=>f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:w.spacingHorizontalXS},children:[f.jsx(Q,{appearance:"tint",color:h.isAsynchronous?"success":"warning",children:h.isAsynchronous?"Async":"Sync"}),!h.isAsynchronous&&f.jsx(Q5,{className:t.warningIcon,title:"Synchronous cross-entity operation may impact performance"})]})}),Ne({columnId:"description",renderHeaderCell:()=>"Description",renderCell:h=>f.jsx(E,{className:t.descriptionCell,children:h.description})})];return f.jsxs("div",{className:t.container,children:[f.jsxs("div",{className:t.statsGrid,children:[f.jsxs(Pe,{className:t.statsCard,children:[f.jsx(E,{weight:"semibold",children:"Total Cross-Entity Links"}),f.jsx(E,{style:{fontSize:w.fontSizeHero700},children:u.total})]}),f.jsxs(Pe,{className:t.statsCard,children:[f.jsx(E,{weight:"semibold",children:"Synchronous Operations"}),f.jsx(E,{style:{fontSize:w.fontSizeHero700,color:w.colorPaletteRedForeground1},children:u.synchronous}),f.jsx(E,{style:{fontSize:w.fontSizeBase200,color:w.colorNeutralForeground3},children:"May impact performance"})]}),f.jsxs(Pe,{className:t.statsCard,children:[f.jsx(E,{weight:"semibold",children:"Asynchronous Operations"}),f.jsx(E,{style:{fontSize:w.fontSizeHero700,color:w.colorPaletteGreenForeground1},children:u.asynchronous})]}),f.jsxs(Pe,{className:t.statsCard,children:[f.jsx(E,{weight:"semibold",children:"Entities Affected"}),f.jsxs(E,{style:{fontSize:w.fontSizeHero700},children:[u.uniqueSourceEntities," → ",u.uniqueTargetEntities]}),f.jsx(E,{style:{fontSize:w.fontSizeBase200,color:w.colorNeutralForeground3},children:"Source → Target"})]})]}),f.jsx(Ze,{children:"Cross-Entity Automation Links"}),f.jsxs("div",{className:t.controls,children:[f.jsx(Zi,{className:t.searchBox,placeholder:"Search entities or automation...",value:r,onChange:(h,m)=>n(m.value)}),f.jsxs(Zo,{className:t.dropdown,placeholder:"Automation Type",value:o==="all"?"All Types":o,onOptionSelect:(h,m)=>i(m.optionValue||"all"),children:[f.jsx(Wt,{value:"all",children:"All Types"}),f.jsx(Wt,{value:"Flow",children:"Flow"}),f.jsx(Wt,{value:"Plugin",children:"Plugin"}),f.jsx(Wt,{value:"BusinessRule",children:"Business Rule"}),f.jsx(Wt,{value:"ClassicWorkflow",children:"Classic Workflow"})]}),f.jsxs(Zo,{className:t.dropdown,placeholder:"Operation",value:s==="all"?"All Operations":s,onOptionSelect:(h,m)=>a(m.optionValue||"all"),children:[f.jsx(Wt,{value:"all",children:"All Operations"}),f.jsx(Wt,{value:"Create",children:"Create"}),f.jsx(Wt,{value:"Update",children:"Update"}),f.jsx(Wt,{value:"Delete",children:"Delete"}),f.jsx(Wt,{value:"Read",children:"Read"})]}),f.jsxs(Zo,{className:t.dropdown,placeholder:"Mode",value:l==="all"?"All Modes":l==="sync"?"Synchronous":"Asynchronous",onOptionSelect:(h,m)=>c(m.optionValue||"all"),children:[f.jsx(Wt,{value:"all",children:"All Modes"}),f.jsx(Wt,{value:"sync",children:"Synchronous"}),f.jsx(Wt,{value:"async",children:"Asynchronous"})]})]}),f.jsxs(E,{children:["Showing ",d.length," of ",e.length," cross-entity links"]}),f.jsx("div",{className:t.tableContainer,children:f.jsxs(on,{items:d,columns:p,sortable:!0,resizableColumns:!0,children:[f.jsx(sn,{children:f.jsx(vt,{children:({renderHeaderCell:h})=>f.jsx(an,{children:h()})})}),f.jsx(nn,{children:({item:h,rowId:m})=>f.jsx(vt,{children:({renderCell:g})=>f.jsx(rn,{children:g(h)})},m)})]})})]})}const ude=bt({container:{display:"flex",flexDirection:"column",gap:w.spacingVerticalL},summaryGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(200px, 1fr))",gap:w.spacingHorizontalM,marginBottom:w.spacingVerticalL},summaryCard:{padding:w.spacingVerticalM,display:"flex",flexDirection:"column",gap:w.spacingVerticalXS},controls:{display:"flex",gap:w.spacingHorizontalM,flexWrap:"wrap",alignItems:"center"},searchBox:{minWidth:"300px"},dropdown:{minWidth:"200px"},tableContainer:{maxHeight:"600px",overflowY:"auto"},expandedRow:{backgroundColor:w.colorNeutralBackground2,padding:w.spacingVerticalL},riskFactorsSection:{marginTop:w.spacingVerticalM,display:"flex",flexDirection:"column",gap:w.spacingVerticalS},riskFactorCard:{padding:w.spacingVerticalS,borderLeft:`4px solid ${w.colorNeutralStroke1}`},riskFactorCritical:{borderLeftColor:w.colorPaletteRedBorder1},riskFactorHigh:{borderLeftColor:w.colorPaletteDarkOrangeBorder1},riskFactorMedium:{borderLeftColor:w.colorPaletteYellowBorder1},riskFactorLow:{borderLeftColor:w.colorPaletteGreenBorder1},sourcesGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(300px, 1fr))",gap:w.spacingHorizontalM,marginTop:w.spacingVerticalM},sourceCard:{padding:w.spacingVerticalS},domainCell:{fontFamily:"Consolas, Monaco, monospace",fontSize:w.fontSizeBase200,maxWidth:"250px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},wrapText:{wordBreak:"break-word",overflowWrap:"break-word"},rowContainer:{borderBottom:`1px solid ${w.colorNeutralStroke2}`,marginBottom:w.spacingVerticalS},mainRow:{display:"grid",gridTemplateColumns:"40px minmax(250px, 1fr) 150px 200px 120px",alignItems:"center",gap:w.spacingHorizontalM,padding:w.spacingVerticalS,cursor:"pointer",":hover":{backgroundColor:w.colorNeutralBackground1Hover}},cellContent:{overflow:"hidden"}});function dde({endpoints:e}){const t=ude(),[r,n]=B.useState(""),[o,i]=B.useState("all"),[s,a]=B.useState(new Set),l=B.useMemo(()=>{const d=e.filter(g=>g.riskLevel==="Trusted").length,p=e.filter(g=>g.riskLevel==="Known").length,h=e.filter(g=>g.riskLevel==="Unknown").length,m=e.filter(g=>g.riskFactors.some(y=>y.severity==="Critical")).length;return{total:e.length,trusted:d,known:p,unknown:h,criticalRisks:m}},[e]),c=B.useMemo(()=>e.filter(d=>{if(r){const p=r.toLowerCase();if(!(d.domain.toLowerCase().includes(p)||d.url.toLowerCase().includes(p)))return!1}return!(o!=="all"&&d.riskLevel!==o)}),[e,r,o]),u=d=>{a(p=>{const h=new Set(p);return h.has(d)?h.delete(d):h.add(d),h})};return f.jsxs("div",{className:t.container,children:[f.jsxs("div",{className:t.summaryGrid,children:[f.jsxs(Pe,{className:t.summaryCard,children:[f.jsx(E,{weight:"semibold",children:"Total Endpoints"}),f.jsx(E,{style:{fontSize:w.fontSizeHero700},children:l.total})]}),f.jsxs(Pe,{className:t.summaryCard,children:[f.jsx(E,{weight:"semibold",children:"Trusted"}),f.jsx(E,{style:{fontSize:w.fontSizeHero700,color:w.colorPaletteGreenForeground1},children:l.trusted}),f.jsx(E,{style:{fontSize:w.fontSizeBase200,color:w.colorNeutralForeground3},children:"Microsoft domains"})]}),f.jsxs(Pe,{className:t.summaryCard,children:[f.jsx(E,{weight:"semibold",children:"Known"}),f.jsx(E,{style:{fontSize:w.fontSizeHero700,color:w.colorPaletteBlueForeground2},children:l.known}),f.jsx(E,{style:{fontSize:w.fontSizeBase200,color:w.colorNeutralForeground3},children:"Whitelisted services"})]}),f.jsxs(Pe,{className:t.summaryCard,children:[f.jsx(E,{weight:"semibold",children:"Unknown"}),f.jsx(E,{style:{fontSize:w.fontSizeHero700,color:w.colorPaletteRedForeground1},children:l.unknown}),f.jsx(E,{style:{fontSize:w.fontSizeBase200,color:w.colorNeutralForeground3},children:"Review required"})]}),f.jsxs(Pe,{className:t.summaryCard,children:[f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:w.spacingHorizontalXS},children:[f.jsx(Q5,{style:{color:w.colorPaletteRedForeground1}}),f.jsx(E,{weight:"semibold",children:"Critical Risks"})]}),f.jsx(E,{style:{fontSize:w.fontSizeHero700,color:w.colorPaletteRedForeground1},children:l.criticalRisks})]})]}),f.jsx(Ze,{children:"External API Dependencies"}),f.jsxs("div",{className:t.controls,children:[f.jsx(Zi,{className:t.searchBox,placeholder:"Search domains or URLs...",value:r,onChange:(d,p)=>n(p.value)}),f.jsxs(Zo,{className:t.dropdown,placeholder:"Risk Level",value:o==="all"?"All Risk Levels":o,onOptionSelect:(d,p)=>i(p.optionValue||"all"),children:[f.jsx(Wt,{value:"all",children:"All Risk Levels"}),f.jsx(Wt,{value:"Unknown",children:"Unknown"}),f.jsx(Wt,{value:"Known",children:"Known"}),f.jsx(Wt,{value:"Trusted",children:"Trusted"})]})]}),f.jsxs(E,{children:["Showing ",c.length," of ",e.length," endpoints"]}),f.jsxs(Pe,{children:[f.jsxs("div",{className:t.mainRow,style:{backgroundColor:w.colorNeutralBackground3,cursor:"default",fontWeight:600},children:[f.jsx("div",{}),f.jsx("div",{children:"Domain"}),f.jsx("div",{children:"Risk Level"}),f.jsx("div",{children:"Risk Factors"}),f.jsx("div",{children:"Called From"})]}),c.map(d=>f.jsxs("div",{className:t.rowContainer,children:[f.jsxs("div",{className:t.mainRow,onClick:()=>u(d.domain),children:[f.jsx(st,{appearance:"subtle",size:"small",icon:s.has(d.domain)?f.jsx(io,{}):f.jsx(so,{}),onClick:p=>{p.stopPropagation(),u(d.domain)}}),f.jsxs("div",{className:t.cellContent,title:`${d.protocol}://${d.domain}`,children:[f.jsx(E,{weight:"semibold",className:t.domainCell,children:d.domain}),f.jsx("div",{children:f.jsxs(E,{style:{fontSize:w.fontSizeBase100,color:w.colorNeutralForeground3},children:[d.protocol,"://"]})})]}),f.jsx("div",{className:t.cellContent,children:f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:w.spacingHorizontalXS},children:[d.riskLevel==="Trusted"?f.jsx($L,{style:{color:w.colorPaletteGreenForeground1}}):d.riskLevel==="Known"?f.jsx(qL,{style:{color:w.colorPaletteBlueForeground2}}):f.jsx(HL,{style:{color:w.colorPaletteRedForeground1}}),f.jsx(Q,{appearance:"filled",color:d.riskLevel==="Trusted"?"success":d.riskLevel==="Known"?"informative":"danger",children:d.riskLevel})]})}),f.jsx("div",{className:t.cellContent,children:(()=>{const p=d.riskFactors.filter(m=>m.severity==="Critical").length,h=d.riskFactors.filter(m=>m.severity==="High").length;return f.jsxs("div",{style:{display:"flex",gap:w.spacingHorizontalXS,flexWrap:"wrap"},children:[p>0&&f.jsxs(Q,{appearance:"filled",color:"danger",children:[p," Critical"]}),h>0&&f.jsxs(Q,{appearance:"filled",color:"warning",children:[h," High"]}),p===0&&h===0&&d.riskFactors.length>0&&f.jsxs(Q,{appearance:"outline",children:[d.riskFactors.length," factors"]})]})})()}),f.jsx("div",{className:t.cellContent,children:f.jsx(Q,{appearance:"tint",color:"brand",children:d.callCount})})]}),s.has(d.domain)&&f.jsxs("div",{className:t.expandedRow,children:[f.jsxs("div",{style:{marginBottom:w.spacingVerticalM},children:[f.jsx(E,{weight:"semibold",children:"Full URL"}),f.jsx(E,{className:t.wrapText,style:{fontFamily:"Consolas, Monaco, monospace",fontSize:w.fontSizeBase200,marginTop:w.spacingVerticalXXS},children:d.url})]}),d.riskFactors.length>0&&f.jsxs("div",{className:t.riskFactorsSection,children:[f.jsx(E,{weight:"semibold",children:"Risk Factors"}),d.riskFactors.map((p,h)=>f.jsxs(Pe,{className:`${t.riskFactorCard} ${p.severity==="Critical"?t.riskFactorCritical:p.severity==="High"?t.riskFactorHigh:p.severity==="Medium"?t.riskFactorMedium:t.riskFactorLow}`,children:[f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:w.spacingHorizontalS},children:[f.jsx(Q,{appearance:"filled",color:p.severity==="Critical"||p.severity==="High"?"danger":p.severity==="Medium"?"warning":"success",children:p.severity}),f.jsx(E,{weight:"semibold",className:t.wrapText,children:p.factor})]}),f.jsx(E,{className:t.wrapText,style:{marginTop:w.spacingVerticalXS},children:p.description}),f.jsxs(E,{className:t.wrapText,style:{marginTop:w.spacingVerticalXS,fontSize:w.fontSizeBase200,color:w.colorNeutralForeground3},children:["💡 ",p.recommendation]})]},h))]}),f.jsxs("div",{style:{marginTop:w.spacingVerticalL},children:[f.jsxs(E,{weight:"semibold",children:["Called From (",d.detectedIn.length,")"]}),f.jsx("div",{className:t.sourcesGrid,children:d.detectedIn.map((p,h)=>f.jsxs(Pe,{className:t.sourceCard,children:[f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:w.spacingHorizontalS,marginBottom:w.spacingVerticalXXS},children:[f.jsx(Q,{appearance:"outline",color:"brand",children:p.type}),f.jsx(Q,{appearance:"tint",color:p.mode==="Sync"?"warning":"success",children:p.mode})]}),f.jsx(E,{weight:"semibold",className:t.wrapText,style:{fontSize:w.fontSizeBase200},children:p.name}),p.entity&&f.jsxs(E,{className:t.wrapText,style:{fontSize:w.fontSizeBase200,color:w.colorNeutralForeground3},children:["Entity: ",p.entity]}),f.jsxs(E,{className:t.wrapText,style:{fontSize:w.fontSizeBase200,color:w.colorNeutralForeground3},children:["Confidence: ",p.confidence]})]},h))})]})]})]},d.domain))]})]})}const fde=bt({container:{display:"flex",flexDirection:"column",gap:w.spacingVerticalL},overviewGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(300px, 1fr))",gap:w.spacingHorizontalM},solutionCard:{padding:w.spacingVerticalL,display:"flex",flexDirection:"column",gap:w.spacingVerticalS},solutionHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:w.spacingVerticalS},solutionTitle:{display:"flex",alignItems:"center",gap:w.spacingHorizontalS},componentCount:{fontSize:w.fontSizeHero700,color:w.colorBrandForeground1},barChart:{display:"flex",height:"20px",borderRadius:w.borderRadiusMedium,overflow:"hidden",marginTop:w.spacingVerticalS},barSegment:{height:"100%",transition:"width 0.3s ease"},countsGrid:{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:w.spacingVerticalXS,marginTop:w.spacingVerticalS},countItem:{display:"flex",justifyContent:"space-between",fontSize:w.fontSizeBase200},detailsSection:{marginTop:w.spacingVerticalL},description:{color:w.colorNeutralForeground3,display:"block"}});function hde({distributions:e}){const t=fde(),r={entities:w.colorPaletteBlueForeground2,plugins:w.colorPalettePurpleForeground2,flows:w.colorPaletteGreenForeground1,businessRules:w.colorPaletteDarkOrangeForeground1,classicWorkflows:w.colorPaletteRedForeground1,bpfs:w.colorPaletteTealForeground2,webResources:w.colorPaletteYellowForeground1,customAPIs:w.colorPalettePinkForeground2},n=o=>{const i=o.total;return i===0?{}:{entities:o.entities/i*100,plugins:o.plugins/i*100,flows:o.flows/i*100,businessRules:o.businessRules/i*100,webResources:o.webResources/i*100,customAPIs:o.customAPIs/i*100}};return f.jsxs("div",{className:t.container,children:[f.jsxs("div",{style:{marginBottom:w.spacingVerticalM},children:[f.jsx(Ze,{style:{marginBottom:w.spacingVerticalXS},children:"Solution Distribution Analysis"}),f.jsxs(E,{children:["Analyzing ",e.length," solution",e.length!==1?"s":""]})]}),f.jsx("div",{className:t.overviewGrid,children:e.map(o=>{const i=n(o.componentCounts);return f.jsxs(Pe,{className:t.solutionCard,children:[f.jsx("div",{className:t.solutionHeader,children:f.jsxs("div",{className:t.solutionTitle,children:[f.jsx(E,{weight:"bold",style:{fontSize:w.fontSizeBase400},children:o.solutionName}),o.isManaged&&f.jsx(Q,{appearance:"filled",color:"informative",children:"Managed"})]})}),f.jsx("div",{children:f.jsxs(E,{style:{fontSize:w.fontSizeBase200,color:w.colorNeutralForeground3},children:["Publisher: ",o.publisher]})}),f.jsx("div",{children:f.jsxs(E,{style:{fontSize:w.fontSizeBase200,color:w.colorNeutralForeground3},children:["Version: ",o.version]})}),f.jsx("div",{className:t.componentCount,children:o.componentCounts.total}),f.jsx(E,{style:{fontSize:w.fontSizeBase200},children:"Total Components"}),f.jsx("div",{className:t.barChart,children:Object.entries(i).map(([s,a])=>a===0?null:f.jsx("div",{className:t.barSegment,style:{width:`${a}%`,backgroundColor:r[s]||w.colorNeutralBackground3},title:`${s}: ${a.toFixed(1)}%`},s))}),f.jsxs("div",{className:t.countsGrid,children:[o.componentCounts.entities>0&&f.jsxs("div",{className:t.countItem,children:[f.jsx(E,{children:"Entities"}),f.jsx(E,{weight:"semibold",children:o.componentCounts.entities})]}),o.componentCounts.plugins>0&&f.jsxs("div",{className:t.countItem,children:[f.jsx(E,{children:"Plugins"}),f.jsx(E,{weight:"semibold",children:o.componentCounts.plugins})]}),o.componentCounts.flows>0&&f.jsxs("div",{className:t.countItem,children:[f.jsx(E,{children:"Flows"}),f.jsx(E,{weight:"semibold",children:o.componentCounts.flows})]}),o.componentCounts.businessRules>0&&f.jsxs("div",{className:t.countItem,children:[f.jsx(E,{children:"Business Rules"}),f.jsx(E,{weight:"semibold",children:o.componentCounts.businessRules})]}),o.componentCounts.webResources>0&&f.jsxs("div",{className:t.countItem,children:[f.jsx(E,{children:"Web Resources"}),f.jsx(E,{weight:"semibold",children:o.componentCounts.webResources})]}),o.componentCounts.customAPIs>0&&f.jsxs("div",{className:t.countItem,children:[f.jsx(E,{children:"Custom APIs"}),f.jsx(E,{weight:"semibold",children:o.componentCounts.customAPIs})]})]})]},o.solutionId)})}),!e.every(o=>o.dependencies.length===0&&o.sharedComponents.length===0)&&f.jsxs("div",{className:t.detailsSection,children:[f.jsxs("div",{style:{marginBottom:w.spacingVerticalM},children:[f.jsx(Ze,{style:{marginBottom:w.spacingVerticalXS},children:"Solution Dependencies & Shared Components"}),f.jsx(E,{className:t.description,children:"View dependencies between solutions and components shared across multiple solutions"})]}),f.jsx(Vy,{multiple:!0,collapsible:!0,style:{marginTop:w.spacingVerticalM},children:e.map(o=>{const i=o.dependencies.length>0,s=o.sharedComponents.length>0;return!i&&!s?null:f.jsxs(Uy,{value:o.solutionId,children:[f.jsx(Zy,{children:f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:w.spacingHorizontalS},children:[f.jsx(E,{weight:"semibold",children:o.solutionName}),i&&f.jsxs(Q,{appearance:"outline",color:"warning",children:[o.dependencies.length," dependencies"]}),s&&f.jsxs(Q,{appearance:"outline",color:"informative",children:[o.sharedComponents.length," shared"]})]})}),f.jsx(Qy,{children:f.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:w.spacingVerticalL},children:[o.dependencies.length>0&&f.jsxs("div",{children:[f.jsx(E,{weight:"semibold",children:"Dependencies"}),o.dependencies.map((a,l)=>f.jsxs(Pe,{style:{marginTop:w.spacingVerticalS,padding:w.spacingVerticalS},children:[f.jsx(E,{weight:"semibold",children:a.dependsOnSolution}),f.jsx(E,{style:{fontSize:w.fontSizeBase200,color:w.colorNeutralForeground3},children:a.reason}),f.jsxs(E,{style:{fontSize:w.fontSizeBase200,marginTop:w.spacingVerticalXXS},children:["References: ",a.componentReferences.join(", ")]})]},l))]}),o.sharedComponents.length>0&&f.jsxs("div",{children:[f.jsx(E,{weight:"semibold",children:"Shared Components"}),f.jsx(E,{style:{fontSize:w.fontSizeBase200,color:w.colorNeutralForeground3},children:"Components that appear in multiple solutions"}),o.sharedComponents.map((a,l)=>f.jsxs(Pe,{style:{marginTop:w.spacingVerticalS,padding:w.spacingVerticalS},children:[f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:w.spacingHorizontalS},children:[f.jsx(Q,{appearance:"outline",children:a.componentType}),f.jsx(E,{weight:"semibold",children:a.componentName})]}),f.jsxs(E,{style:{fontSize:w.fontSizeBase200,marginTop:w.spacingVerticalXXS},children:["Also in: ",a.alsoInSolutions.join(", ")]})]},l))]})]})})]},o.solutionId)})})]})]})}function pde(e){let t=5e4;t+=6e4;const r=e.entities.length;t+=r*12e3;const n=e.summary.totalAttributes;return t+=n*100,t+=e.summary.totalPlugins*500,t+=e.summary.totalFlows*400,t+=e.summary.totalBusinessRules*300,t+=e.summary.totalWebResources*200,t+=3e4,e.erd&&(t+=e.erd.diagrams.reduce((o,i)=>o+i.mermaidDiagram.length,0)),t}function gde(e){let t=500;return t+=1e3,t+=500,t+=e.entities.length*5e3,t+=e.summary.totalPlugins*800,t+=e.summary.totalFlows*1e3,t+=e.summary.totalBusinessRules*600,t+=e.summary.totalClassicWorkflows*800,t+=e.summary.totalWebResources*500,t+=e.summary.totalCustomAPIs*400,t+=e.summary.totalEnvironmentVariables*300,t+=e.summary.totalConnectionReferences*300,e.erd&&(t+=JSON.stringify(e.erd).length),e.crossEntityLinks&&(t+=e.crossEntityLinks.length*200),e.externalEndpoints&&(t+=e.externalEndpoints.length*400),t}function mde(e){let t=1e5;return t+=2e4,t+=e.entities.length*3e3,t+=e.summary.totalPlugins*400,t+=e.summary.totalFlows*350,t+=e.summary.totalBusinessRules*300,t+=e.summary.totalWebResources*250,e.erd&&(t+=e.erd.diagrams.reduce((r,n)=>r+n.mermaidDiagram.length,0)),t}function lm(e){if(e===0)return"0 Bytes";const t=1024,r=1,n=["Bytes","KB","MB","GB"],o=Math.floor(Math.log(e)/Math.log(t));return`${(e/Math.pow(t,o)).toFixed(r)} ${n[o]}`}const vde=bt({overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1e4},card:{backgroundColor:w.colorNeutralBackground1,padding:w.spacingVerticalXXL,borderRadius:w.borderRadiusMedium,boxShadow:w.shadow64,minWidth:"400px",textAlign:"center"},title:{fontSize:w.fontSizeHero700,fontWeight:w.fontWeightSemibold,marginBottom:w.spacingVerticalL,color:w.colorNeutralForeground1},spinnerContainer:{marginBottom:w.spacingVerticalL},phase:{fontSize:w.fontSizeBase400,fontWeight:w.fontWeightSemibold,color:w.colorBrandForeground1,marginBottom:w.spacingVerticalS},progressBar:{width:"100%",height:"8px",backgroundColor:w.colorNeutralBackground3,borderRadius:w.borderRadiusSmall,overflow:"hidden",marginBottom:w.spacingVerticalM},progressFill:{height:"100%",backgroundColor:w.colorBrandBackground,transition:"width 0.3s ease"},message:{fontSize:w.fontSizeBase300,color:w.colorNeutralForeground2},progressText:{fontSize:w.fontSizeBase200,color:w.colorNeutralForeground3,marginTop:w.spacingVerticalXS}});function yde({progress:e,onCancel:t}){const r=vde(),n=e.total>0?e.current/e.total*100:0;return f.jsx("div",{className:r.overlay,children:f.jsxs("div",{className:r.card,children:[f.jsx("div",{className:r.title,children:"Exporting Solution Blueprint"}),f.jsx("div",{className:r.spinnerContainer,children:f.jsx(rl,{size:"extra-large"})}),f.jsx("div",{className:r.phase,children:e.phase}),f.jsx("div",{className:r.progressBar,children:f.jsx("div",{className:r.progressFill,style:{width:`${n}%`}})}),f.jsx("div",{className:r.message,children:e.message}),e.total>0&&f.jsxs("div",{className:r.progressText,children:[e.current," of ",e.total]}),t&&f.jsx("button",{onClick:t,style:{marginTop:w.spacingVerticalL,padding:`${w.spacingVerticalS} ${w.spacingHorizontalM}`,backgroundColor:"transparent",border:`1px solid ${w.colorNeutralStroke1}`,borderRadius:w.borderRadiusMedium,color:w.colorNeutralForeground1,cursor:"pointer"},children:"Cancel"})]})})}function bde(e){const[t,r]=B.useState(!1),[n,o]=B.useState(null),[i,s]=B.useState(null),a=(g,y)=>{const v=URL.createObjectURL(g),b=document.createElement("a");b.href=v,b.download=y,document.body.appendChild(b),b.click(),document.body.removeChild(b),URL.revokeObjectURL(v)},l=async()=>{try{r(!0),s(null),o({phase:"Generating JSON export",current:0,total:1,message:"Serializing blueprint data..."});const g=await e.exportAsJson(),y=new Blob([g],{type:"application/json"}),v=new Date().toISOString().replace(/[:.]/g,"-").slice(0,-5);a(y,`blueprint-${v}.json`),o({phase:"Complete",current:1,total:1,message:"JSON export downloaded"})}catch(g){s(g instanceof Error?g:new Error("Export failed"))}finally{r(!1),setTimeout(()=>o(null),2e3)}},c=async()=>{try{r(!0),s(null),o({phase:"Generating Markdown export",current:0,total:3,message:"Generating documentation files..."});const g=await e.exportAsZip(["markdown"]),y=new Date().toISOString().replace(/[:.]/g,"-").slice(0,-5);a(g,`blueprint-markdown-${y}.zip`),o({phase:"Complete",current:3,total:3,message:"Markdown export downloaded"})}catch(g){s(g instanceof Error?g:new Error("Export failed"))}finally{r(!1),setTimeout(()=>o(null),2e3)}},u=async()=>{try{r(!0),s(null),o({phase:"Generating HTML export",current:0,total:1,message:"Creating interactive document..."});const g=await e.exportAsHtml(),y=new Blob([g],{type:"text/html"}),v=new Date().toISOString().replace(/[:.]/g,"-").slice(0,-5);a(y,`blueprint-${v}.html`),o({phase:"Complete",current:1,total:1,message:"HTML export downloaded"})}catch(g){s(g instanceof Error?g:new Error("Export failed"))}finally{r(!1),setTimeout(()=>o(null),2e3)}},d=async()=>{try{r(!0),s(null),o({phase:"Generating HTML export",current:0,total:1,message:"Creating interactive document..."});const g=await e.exportAsZip(["html"]),y=new Date().toISOString().replace(/[:.]/g,"-").slice(0,-5);a(g,`blueprint-${y}.html.zip`),o({phase:"Complete",current:1,total:1,message:"HTML export downloaded"})}catch(g){s(g instanceof Error?g:new Error("Export failed"))}finally{r(!1),setTimeout(()=>o(null),2e3)}},p=async g=>{try{if(r(!0),s(null),g.length===1){if(g[0]==="html"){await u();return}else if(g[0]==="json"){await l();return}}const y=g.length+1;let v=0;o({phase:"Generating exports",current:0,total:y,message:`Generating ${g.length} format(s)...`});for(const k of g)v++,o({phase:`Generating ${k}`,current:v,total:y,message:`Generating ${k} export...`}),await new Promise(S=>setTimeout(S,100));o({phase:"Packaging",current:g.length,total:y,message:"Creating ZIP archive..."});const b=await e.exportAsZip(g),x=new Date().toISOString().replace(/[:.]/g,"-").slice(0,-5);a(b,`blueprint-${x}.zip`),o({phase:"Complete",current:y,total:y,message:"Export downloaded successfully"})}catch(y){s(y instanceof Error?y:new Error("Export failed"))}finally{r(!1),setTimeout(()=>o(null),2e3)}};return{exportMarkdown:c,exportJson:l,exportHtml:d,exportZip:p,exportAll:async()=>{await p(["markdown","json","html"])},isExporting:t,progress:n,error:i,clearError:()=>{s(null)}}}const xde=bt({section:{marginBottom:w.spacingVerticalL},sectionTitle:{fontSize:w.fontSizeBase400,fontWeight:w.fontWeightSemibold,marginBottom:w.spacingVerticalM,color:w.colorNeutralForeground1},formatOption:{display:"flex",flexDirection:"column",gap:w.spacingVerticalXS,padding:w.spacingVerticalM,border:`1px solid ${w.colorNeutralStroke1}`,borderRadius:w.borderRadiusMedium,marginBottom:w.spacingVerticalS},formatHeader:{display:"flex",alignItems:"center",gap:w.spacingHorizontalS},formatTitle:{fontWeight:w.fontWeightSemibold},formatDescription:{fontSize:w.fontSizeBase200,color:w.colorNeutralForeground2,marginLeft:"24px"},formatPreview:{fontSize:w.fontSizeBase100,color:w.colorNeutralForeground3,marginLeft:"24px"},quickSelect:{display:"flex",gap:w.spacingHorizontalS,marginBottom:w.spacingVerticalM}});function wde({isOpen:e,result:t,blueprintGenerator:r,onClose:n}){const o=xde(),[i,s]=B.useState(["html"]),{exportZip:a,isExporting:l,progress:c,error:u,clearError:d}=bde(r),p=B.useMemo(()=>({markdown:pde(t),json:gde(t),html:mde(t)}),[t]),h=B.useMemo(()=>{const x=t.entities.length*4;return 1+12+x+3},[t]),m=(x,k)=>{s(k?[...i,x]:i.filter(S=>S!==x))},g=()=>{s(["markdown","json","html"])},y=()=>{s([])},v=async()=>{await a(i)},b=()=>{l||(d(),n())};return f.jsxs(f.Fragment,{children:[f.jsx(JB,{open:e,onOpenChange:(x,k)=>!k.open&&b(),children:f.jsx(n3,{children:f.jsxs(t3,{children:[f.jsx(r3,{action:f.jsx(st,{appearance:"subtle","aria-label":"close",icon:f.jsx(n7,{}),onClick:b,disabled:l}),children:"Export Solution Blueprint"}),f.jsxs(o3,{children:[u&&f.jsx(_l,{intent:"error",style:{marginBottom:w.spacingVerticalM},children:f.jsxs(Bl,{children:[f.jsx("strong",{children:"Export Failed:"})," ",u.message]})}),f.jsxs("div",{className:o.section,children:[f.jsx("div",{className:o.sectionTitle,children:"Select Export Formats"}),f.jsxs("div",{className:o.quickSelect,children:[f.jsx(st,{size:"small",onClick:g,children:"Select All"}),f.jsx(st,{size:"small",onClick:y,children:"Deselect All"})]}),f.jsxs("div",{className:o.formatOption,children:[f.jsx("div",{className:o.formatHeader,children:f.jsx(ro,{checked:i.includes("markdown"),onChange:(x,k)=>m("markdown",k.checked),label:f.jsx("span",{className:o.formatTitle,children:"Markdown"})})}),f.jsx("div",{className:o.formatDescription,children:"Complete file structure - ideal for Azure DevOps Wiki"}),f.jsxs("div",{className:o.formatPreview,children:["~",h," files, ",lm(p.markdown)]})]}),f.jsxs("div",{className:o.formatOption,children:[f.jsx("div",{className:o.formatHeader,children:f.jsx(ro,{checked:i.includes("json"),onChange:(x,k)=>m("json",k.checked),label:f.jsx("span",{className:o.formatTitle,children:"JSON"})})}),f.jsx("div",{className:o.formatDescription,children:"Full blueprint data - use for baselines and automation"}),f.jsxs("div",{className:o.formatPreview,children:["~",lm(p.json)]})]}),f.jsxs("div",{className:o.formatOption,children:[f.jsx("div",{className:o.formatHeader,children:f.jsx(ro,{checked:i.includes("html"),onChange:(x,k)=>m("html",k.checked),label:f.jsx("span",{className:o.formatTitle,children:"HTML"})})}),f.jsx("div",{className:o.formatDescription,children:"Self-contained document - open in any browser"}),f.jsxs("div",{className:o.formatPreview,children:["~",lm(p.html)]})]})]}),f.jsx("div",{className:o.section,children:f.jsxs(E,{size:200,style:{color:w.colorNeutralForeground3},children:[i.length===0&&"Select at least one format to export",i.length===1&&i[0]==="markdown"&&"Export will download as ZIP archive (Markdown contains multiple files)",i.length===1&&i[0]!=="markdown"&&`Export will download as single ${i[0].toUpperCase()} file`,i.length>1&&`Export will download as ZIP archive with ${i.length} formats`]})})]}),f.jsxs(e3,{children:[f.jsx(st,{appearance:"secondary",onClick:b,disabled:l,children:"Cancel"}),f.jsx(st,{appearance:"primary",onClick:v,disabled:i.length===0||l,children:l?"Exporting...":"Export"})]})]})})}),l&&c&&f.jsx(yde,{progress:c})]})}const kde=bt({container:{display:"flex",flexDirection:"column",gap:w.spacingVerticalL},section:{display:"flex",flexDirection:"column",gap:w.spacingVerticalM},description:{color:w.colorNeutralForeground3,display:"block"},permissionsTable:{overflowX:"auto"},badge:{marginLeft:w.spacingHorizontalXS},legend:{padding:w.spacingVerticalS,backgroundColor:w.colorNeutralBackground2,borderRadius:w.borderRadiusMedium,fontSize:"12px",color:w.colorNeutralForeground3},entityPermissionsTable:{marginTop:w.spacingVerticalM,maxHeight:"400px",overflowY:"auto"}});function Sde({securityRoles:e}){const t=kde(),r=[{key:"documentGeneration",label:"Document Generation"},{key:"dynamics365ForMobile",label:"Dynamics 365 for mobile"},{key:"exportToExcel",label:"Export to Excel"},{key:"goOfflineInOutlook",label:"Go Offline in Outlook"},{key:"mailMerge",label:"Mail Merge"},{key:"print",label:"Print"},{key:"syncToOutlook",label:"Sync to Outlook"},{key:"useDynamics365AppForOutlook",label:"Use Dynamics 365 App for Outlook"},{key:"activateRealtimeProcesses",label:"Activate Real-time Processes"},{key:"executeWorkflowJob",label:"Execute Workflow Job"},{key:"runFlows",label:"Run Flows"}],n=B.useMemo(()=>[Ne({columnId:"name",renderHeaderCell:()=>"Role Name",renderCell:i=>i.name}),Ne({columnId:"businessUnit",renderHeaderCell:()=>"Business Unit",renderCell:i=>i.businessunitname||"N/A"}),Ne({columnId:"entities",renderHeaderCell:()=>"Entity Permissions",renderCell:i=>i.entityPermissions.length})],[]),o=i=>{const s=["Create","Read","Write","Delete","Append","AppendTo","Assign","Share"],a={0:"None",1:"Basic",2:"Local",4:"Deep",8:"Global"},l=c=>{switch(c){case 0:return w.colorPaletteRedBackground3;case 1:return w.colorPaletteYellowBackground3;case 2:return w.colorPaletteLightGreenBackground3;case 4:return w.colorPaletteGreenBackground3;case 8:return w.colorPaletteDarkGreenBackground2;default:return w.colorNeutralBackground3}};return f.jsxs("div",{className:t.entityPermissionsTable,children:[f.jsxs(E,{weight:"semibold",style:{marginBottom:w.spacingVerticalS},children:["Entity-Level Permissions (",i.entityPermissions.filter(c=>c.privileges.length>0).length," entities)"]}),f.jsxs("div",{className:t.legend,children:[f.jsx("strong",{children:"Legend:"})," None (0) | Basic (1) = User | Local (2) = Business Unit | Deep (4) = Parent+Child BUs | Global (8) = Organization"]}),f.jsxs("table",{style:{width:"100%",marginTop:w.spacingVerticalM,borderCollapse:"collapse"},children:[f.jsx("thead",{children:f.jsxs("tr",{style:{backgroundColor:w.colorNeutralBackground2},children:[f.jsx("th",{style:{padding:w.spacingVerticalS,textAlign:"left",borderBottom:`1px solid ${w.colorNeutralStroke2}`},children:"Entity"}),s.map(c=>f.jsx("th",{style:{padding:w.spacingVerticalS,textAlign:"center",borderBottom:`1px solid ${w.colorNeutralStroke2}`,minWidth:"80px"},children:c},c))]})}),f.jsx("tbody",{children:i.entityPermissions.filter(c=>c.privileges.length>0).map(c=>{const u=new Map(c.privileges.map(d=>[d.type,d]));return f.jsxs("tr",{style:{borderBottom:`1px solid ${w.colorNeutralStroke2}`},children:[f.jsx("td",{style:{padding:w.spacingVerticalS},children:f.jsx(E,{weight:"semibold",children:c.entityLogicalName})}),s.map(d=>{const p=u.get(d);if(!p)return f.jsx("td",{style:{padding:w.spacingVerticalS,textAlign:"center",backgroundColor:w.colorNeutralBackground3},children:f.jsx(E,{size:200,children:"—"})},d);const h=p.depthValue??0,m=l(h),g=a[h]||`Unknown (${h})`;return f.jsx("td",{style:{padding:w.spacingVerticalS,textAlign:"center",backgroundColor:m},children:f.jsx(E,{size:200,children:g})},d)})]},c.entityLogicalName)})})]})]})};return f.jsx("div",{className:t.container,children:e.length===0?f.jsx("div",{style:{textAlign:"center",padding:w.spacingVerticalXXL},children:f.jsx(E,{children:"No security roles found in the selected solution(s)."})}):f.jsxs(f.Fragment,{children:[f.jsx("div",{className:t.section,children:f.jsxs(on,{items:e,columns:n,sortable:!0,style:{minWidth:"500px"},children:[f.jsx(sn,{children:f.jsx(vt,{children:({renderHeaderCell:i})=>f.jsx(an,{children:i()})})}),f.jsx(nn,{children:({item:i,rowId:s})=>f.jsx(vt,{children:({renderCell:a})=>f.jsx(rn,{children:a(i)})},s)})]})}),f.jsxs("div",{className:t.section,children:[f.jsxs("div",{style:{marginBottom:w.spacingVerticalS},children:[f.jsx(Ze,{style:{marginBottom:w.spacingVerticalXS},children:"Special Permission Matrix"}),f.jsx(E,{className:t.description,children:"Matrix showing which roles have which special permissions."})]}),f.jsx("div",{style:{overflowX:"auto"},children:f.jsxs("table",{style:{width:"100%",borderCollapse:"collapse"},children:[f.jsx("thead",{children:f.jsxs("tr",{style:{backgroundColor:w.colorNeutralBackground2},children:[f.jsx("th",{style:{padding:w.spacingVerticalS,textAlign:"left",borderBottom:`1px solid ${w.colorNeutralStroke2}`,minWidth:"200px",position:"sticky",left:0,backgroundColor:w.colorNeutralBackground2,zIndex:1},children:"Security Role"}),r.map(i=>f.jsx("th",{style:{padding:w.spacingVerticalS,textAlign:"center",borderBottom:`1px solid ${w.colorNeutralStroke2}`,minWidth:"120px",fontSize:w.fontSizeBase100},children:i.label},i.key))]})}),f.jsx("tbody",{children:e.map(i=>f.jsxs("tr",{style:{borderBottom:`1px solid ${w.colorNeutralStroke2}`},children:[f.jsxs("td",{style:{padding:w.spacingVerticalS,position:"sticky",left:0,backgroundColor:w.colorNeutralBackground1},children:[f.jsx("div",{style:{fontWeight:w.fontWeightSemibold},children:i.name}),f.jsx("div",{style:{fontSize:w.fontSizeBase100,color:w.colorNeutralForeground3},children:i.businessunitname})]}),r.map(s=>{var c;const l=((c=i.specialPermissions)==null?void 0:c[s.key])===!0;return f.jsx("td",{style:{padding:w.spacingVerticalS,textAlign:"center",backgroundColor:l?w.colorPaletteGreenBackground3:w.colorNeutralBackground3},children:f.jsx(E,{size:300,weight:"semibold",children:l?"✓":"—"})},s.key)})]},i.roleid))})]})})]}),f.jsxs("div",{className:t.section,children:[f.jsxs("div",{style:{marginBottom:w.spacingVerticalS},children:[f.jsx(Ze,{style:{marginBottom:w.spacingVerticalXS},children:"Role Details"}),f.jsx(E,{className:t.description,children:"Expand each role to view detailed entity-level permissions."})]}),f.jsx(Vy,{multiple:!0,collapsible:!0,children:e.map(i=>f.jsxs(Uy,{value:i.roleid,children:[f.jsxs(Zy,{children:[i.name,f.jsx(Q,{appearance:"filled",className:t.badge,children:i.businessunitname})]}),f.jsx(Qy,{children:o(i)})]},i.roleid))})]})]})})}const Cde=B.memo(Sde),_de=bt({container:{display:"flex",flexDirection:"column",gap:w.spacingVerticalL},section:{display:"flex",flexDirection:"column",gap:w.spacingVerticalM},description:{color:w.colorNeutralForeground3,display:"block"},legend:{padding:w.spacingVerticalS,backgroundColor:w.colorNeutralBackground2,borderRadius:w.borderRadiusMedium,fontSize:"12px",color:w.colorNeutralForeground3,marginTop:w.spacingVerticalM}});function Bde({profiles:e,attributeMaskingRules:t=[],columnSecurityProfiles:r=[]}){const n=_de(),o=B.useMemo(()=>[Ne({columnId:"name",renderHeaderCell:()=>"Profile Name",renderCell:a=>f.jsx(E,{weight:"semibold",children:a.name})}),Ne({columnId:"description",renderHeaderCell:()=>"Description",renderCell:a=>a.description||f.jsx(E,{italic:!0,children:"No description"})})],[]),i=B.useMemo(()=>[Ne({columnId:"entity",renderHeaderCell:()=>"Entity",renderCell:a=>f.jsx(E,{weight:"semibold",children:a.entitylogicalname})}),Ne({columnId:"attribute",renderHeaderCell:()=>"Attribute",renderCell:a=>f.jsx(E,{children:a.attributelogicalname})}),Ne({columnId:"maskingType",renderHeaderCell:()=>"Masking Type",renderCell:a=>{const l=a.maskingtype===1?"Full":a.maskingtype===2?"Partial":a.maskingtype===3?"Email":"Custom";return f.jsx(Q,{appearance:"outline",children:l})}}),Ne({columnId:"managed",renderHeaderCell:()=>"Managed",renderCell:a=>a.ismanaged?f.jsx(Q,{appearance:"outline",children:"Managed"}):""})],[]),s=B.useMemo(()=>[Ne({columnId:"name",renderHeaderCell:()=>"Profile Name",renderCell:a=>f.jsx(E,{weight:"semibold",children:a.name})}),Ne({columnId:"description",renderHeaderCell:()=>"Description",renderCell:a=>a.description||f.jsx(E,{italic:!0,children:"No description"})}),Ne({columnId:"managed",renderHeaderCell:()=>"Managed",renderCell:a=>a.ismanaged?f.jsx(Q,{appearance:"outline",children:"Managed"}):""})],[]);return f.jsxs("div",{className:n.container,children:[e.length>0&&f.jsxs("div",{className:n.section,children:[f.jsxs(on,{items:e,columns:o,sortable:!0,size:"small",children:[f.jsx(sn,{children:f.jsx(vt,{children:({renderHeaderCell:a})=>f.jsx(an,{children:a()})})}),f.jsx(nn,{children:({item:a,rowId:l})=>f.jsx(vt,{children:({renderCell:c})=>f.jsx(rn,{children:c(a)})},l)})]}),f.jsxs("div",{className:n.legend,children:[f.jsx("strong",{children:"Note:"})," Field-level permissions for specific entities are documented in each entity's schema tab."]})]}),t.length>0&&f.jsxs("div",{className:n.section,children:[f.jsxs("div",{style:{marginBottom:w.spacingVerticalS},children:[f.jsx(Ze,{style:{marginBottom:w.spacingVerticalXS},children:"Attribute Masking Rules"}),f.jsx(E,{className:n.description,children:"Attribute masking rules control how sensitive data is masked when displayed to users without appropriate permissions."})]}),f.jsxs(on,{items:t,columns:i,sortable:!0,size:"small",children:[f.jsx(sn,{children:f.jsx(vt,{children:({renderHeaderCell:a})=>f.jsx(an,{children:a()})})}),f.jsx(nn,{children:({item:a,rowId:l})=>f.jsx(vt,{children:({renderCell:c})=>f.jsx(rn,{children:c(a)})},l)})]}),f.jsxs("div",{className:n.legend,children:[f.jsx("strong",{children:"Masking Types:"})," Full = Entire value masked, Partial = Part of value shown, Email = Email format preserved, Custom = Custom masking format"]})]}),r.length>0&&f.jsxs("div",{className:n.section,children:[f.jsxs("div",{style:{marginBottom:w.spacingVerticalS},children:[f.jsx(Ze,{style:{marginBottom:w.spacingVerticalXS},children:"Column Security Profiles"}),f.jsx(E,{className:n.description,children:"Column security profiles define which users can access specific secured columns across entities."})]}),f.jsxs(on,{items:r,columns:s,sortable:!0,size:"small",children:[f.jsx(sn,{children:f.jsx(vt,{children:({renderHeaderCell:a})=>f.jsx(an,{children:a()})})}),f.jsx(nn,{children:({item:a,rowId:l})=>f.jsx(vt,{children:({renderCell:c})=>f.jsx(rn,{children:c(a)})},l)})]}),f.jsxs("div",{className:n.legend,children:[f.jsx("strong",{children:"Note:"})," Column-level permissions control create, read, and update access to secured fields."]})]}),e.length===0&&t.length===0&&r.length===0&&f.jsx("div",{style:{textAlign:"center",padding:w.spacingVerticalXXL},children:f.jsx(E,{children:"No field security profiles found in the selected solution(s)."})})]})}const Tde=B.memo(Bde),Nde=bt({container:{padding:w.spacingVerticalXXL,maxWidth:"1400px",margin:"0 auto"},backButton:{marginBottom:w.spacingVerticalL},header:{marginBottom:w.spacingVerticalL,display:"flex",flexDirection:"column",gap:w.spacingVerticalS},titleRow:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:w.spacingHorizontalM},titleContent:{display:"flex",alignItems:"center",gap:w.spacingHorizontalM},checkIcon:{color:w.colorPaletteGreenForeground1},metadata:{display:"flex",flexDirection:"column",gap:w.spacingVerticalXS,color:w.colorNeutralForeground3},mainTabsSection:{marginTop:w.spacingVerticalXL},tabContent:{marginTop:w.spacingVerticalL},section:{marginBottom:w.spacingVerticalL},summaryGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(120px, 1fr))",gap:w.spacingHorizontalXS,marginTop:w.spacingVerticalS},summaryCard:{padding:w.spacingVerticalS},summaryCardDisabled:{padding:w.spacingVerticalS,opacity:.5,cursor:"default"},summaryCardContent:{display:"flex",flexDirection:"column",gap:w.spacingVerticalXXS,alignItems:"center",textAlign:"center"},summaryCount:{fontSize:w.fontSizeHero800,fontWeight:w.fontWeightSemibold,lineHeight:w.lineHeightHero800},summaryLabel:{fontSize:w.fontSizeBase100,color:w.colorNeutralForeground2},warningsContainer:{display:"flex",flexDirection:"column",gap:w.spacingVerticalM},browserSection:{marginTop:w.spacingVerticalXL},emptyState:{padding:w.spacingVerticalXXXL,textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",gap:w.spacingVerticalL,color:w.colorNeutralForeground3}});function jde({result:e,scope:t,blueprintGenerator:r,onStartOver:n}){const o=Nde(),[i,s]=B.useState("dashboard"),[a,l]=B.useState(!1),[c,u]=B.useState("entities"),[d,p]=B.useState(null),[h,m]=B.useState(null),[g,y]=B.useState(null),[v,b]=B.useState(null),[x,k]=B.useState(null),[S,_]=B.useState(null),N=!!e.erd,z=!!(e.crossEntityLinks&&e.crossEntityLinks.length>0),F=!!(e.externalEndpoints&&e.externalEndpoints.length>0),I=!!(e.solutionDistribution&&e.solutionDistribution.length>0),H=Hs(e.metadata.generatedAt),A=Z3(e.metadata.generatedAt).split(" ")[1],P=()=>{if(t.type==="publisher"){const D=t.publisherPrefixes.join(", ");return`Publishers: ${t.publisherNames.join(", ")} (${D})`}else{const D=t.solutionNames.length;return`Solutions: ${t.solutionNames.join(", ")} (${D} solution${D>1?"s":""})`}},C=D=>{var M,$;switch(D){case"entities":return e.summary.totalEntities>0;case"plugins":return e.summary.totalPlugins>0;case"pluginPackages":return e.summary.totalPluginPackages>0;case"flows":return e.summary.totalFlows>0;case"businessRules":return e.summary.totalBusinessRules>0;case"classicWorkflows":return e.summary.totalClassicWorkflows>0;case"businessProcessFlows":return e.summary.totalBusinessProcessFlows>0;case"customAPIs":return e.summary.totalCustomAPIs>0;case"environmentVariables":return e.summary.totalEnvironmentVariables>0;case"connectionReferences":return e.summary.totalConnectionReferences>0;case"globalChoices":return e.summary.totalGlobalChoices>0;case"customConnectors":return e.summary.totalCustomConnectors>0;case"webResources":return e.summary.totalWebResources>0;case"securityRoles":return(((M=e.securityRoles)==null?void 0:M.length)??0)>0;case"fieldSecurityProfiles":return((($=e.fieldSecurityProfiles)==null?void 0:$.length)??0)>0;case"customPages":return e.summary.totalCustomPages>0;default:return!1}},R=D=>{var M,$;switch(D){case"entities":return e.summary.totalEntities;case"plugins":return e.summary.totalPlugins;case"pluginPackages":return e.summary.totalPluginPackages;case"flows":return e.summary.totalFlows;case"businessRules":return e.summary.totalBusinessRules;case"classicWorkflows":return e.summary.totalClassicWorkflows;case"businessProcessFlows":return e.summary.totalBusinessProcessFlows;case"customAPIs":return e.summary.totalCustomAPIs;case"environmentVariables":return e.summary.totalEnvironmentVariables;case"connectionReferences":return e.summary.totalConnectionReferences;case"globalChoices":return e.summary.totalGlobalChoices;case"customConnectors":return e.summary.totalCustomConnectors;case"webResources":return e.summary.totalWebResources;case"securityRoles":return((M=e.securityRoles)==null?void 0:M.length)??0;case"fieldSecurityProfiles":return(($=e.fieldSecurityProfiles)==null?void 0:$.length)??0;case"customPages":return e.summary.totalCustomPages;default:return 0}},O=[{key:"entities",label:"Entities",icon:"📊"},{key:"plugins",label:"Plugins",icon:"🔌"},{key:"pluginPackages",label:"Plugin Packages",icon:"📦"},{key:"flows",label:"Flows",icon:"🌊"},{key:"businessRules",label:"Business Rules",icon:"📋"},{key:"classicWorkflows",label:"Classic Workflows",icon:"⚠️"},{key:"businessProcessFlows",label:"Business Process Flows",icon:"🔄"},{key:"customAPIs",label:"Custom APIs",icon:"🔧"},{key:"environmentVariables",label:"Environment Variables",icon:"⚙️"},{key:"connectionReferences",label:"Connection References",icon:"🔗"},{key:"globalChoices",label:"Global Choices",icon:"🎯"},{key:"customConnectors",label:"Custom Connectors",icon:"🔀"},{key:"webResources",label:"Web Resources",icon:"🌐"},{key:"securityRoles",label:"Security Roles",icon:"🔒"},{key:"fieldSecurityProfiles",label:"Field Security Profiles",icon:"🛡️"},{key:"customPages",label:"Custom Pages",icon:"📄"}];return f.jsxs("div",{className:o.container,children:[f.jsx(st,{className:o.backButton,appearance:"subtle",icon:f.jsx(LL,{}),onClick:n,children:"Generate New Blueprint"}),f.jsxs("div",{className:o.header,children:[f.jsxs("div",{className:o.titleRow,children:[f.jsxs("div",{className:o.titleContent,children:[f.jsx(ZL,{className:o.checkIcon}),f.jsx(c1,{children:"Solution Blueprint Generated"})]}),f.jsx(st,{appearance:"primary",icon:f.jsx(tB,{}),onClick:()=>l(!0),children:"Export"})]}),f.jsx("div",{className:o.metadata,children:f.jsxs(E,{style:{fontSize:w.fontSizeBase200},children:[H," at ",A," • ",P()]})})]}),f.jsx("div",{className:o.mainTabsSection,children:f.jsxs(Yf,{selectedValue:i,onTabSelect:(D,M)=>{s(M.value)},children:[f.jsx(_t,{value:"dashboard",children:"📊 Dashboard"}),N&&f.jsx(_t,{value:"erd",children:"📐 Entity Relationship Diagram"}),z&&f.jsx(_t,{value:"crossEntity",children:"🔗 Cross-Entity Automation"}),F&&f.jsx(_t,{value:"externalDeps",children:"🌐 External Dependencies"}),I&&f.jsx(_t,{value:"solutionDist",children:"📦 Solution Distribution"})]})}),i==="dashboard"&&f.jsxs(f.Fragment,{children:[f.jsx("div",{className:o.section,children:f.jsxs(Pe,{children:[f.jsx(Ze,{children:"Component Summary"}),f.jsx("div",{className:o.summaryGrid,children:O.map(D=>{const M=R(D.key),$=M>0;return f.jsx(Pe,{className:$?o.summaryCard:o.summaryCardDisabled,appearance:$?"filled":"outline",children:f.jsxs("div",{className:o.summaryCardContent,children:[f.jsx(E,{style:{fontSize:"18px"},children:D.icon}),f.jsx(E,{className:o.summaryCount,children:M}),f.jsx(E,{className:o.summaryLabel,children:D.label})]})},D.key)})})]})}),f.jsx("div",{className:o.browserSection,children:f.jsxs(Pe,{children:[f.jsx(Ze,{children:"Component Browser"}),f.jsxs(Yf,{selectedValue:c,onTabSelect:(D,M)=>{u(M.value)},size:"small",style:{flexWrap:"wrap",gap:w.spacingHorizontalS},children:[f.jsx(_t,{value:"entities",children:`📊 Entities (${e.summary.totalEntities})`}),C("plugins")&&f.jsx(_t,{value:"plugins",children:`🔌 Plugins (${e.summary.totalPlugins})`}),C("flows")&&f.jsx(_t,{value:"flows",children:`🌊 Flows (${e.summary.totalFlows})`}),C("businessRules")&&f.jsx(_t,{value:"businessRules",children:`📋 Business Rules (${e.summary.totalBusinessRules})`}),C("classicWorkflows")&&f.jsx(_t,{value:"classicWorkflows",children:`⚠️ Classic Workflows (${e.summary.totalClassicWorkflows})`}),C("businessProcessFlows")&&f.jsx(_t,{value:"businessProcessFlows",children:`🔄 Business Process Flows (${e.summary.totalBusinessProcessFlows})`}),C("customAPIs")&&f.jsx(_t,{value:"customAPIs",children:`🔧 Custom APIs (${e.summary.totalCustomAPIs})`}),C("environmentVariables")&&f.jsx(_t,{value:"environmentVariables",children:`⚙️ Environment Variables (${e.summary.totalEnvironmentVariables})`}),C("connectionReferences")&&f.jsx(_t,{value:"connectionReferences",children:`🔗 Connection References (${e.summary.totalConnectionReferences})`}),C("globalChoices")&&f.jsx(_t,{value:"globalChoices",children:`🎯 Global Choices (${e.summary.totalGlobalChoices})`}),C("customConnectors")&&f.jsx(_t,{value:"customConnectors",children:`🔀 Custom Connectors (${e.summary.totalCustomConnectors})`}),C("webResources")&&f.jsx(_t,{value:"webResources",children:`🌐 Web Resources (${e.summary.totalWebResources})`}),C("securityRoles")&&f.jsx(_t,{value:"securityRoles",children:`🔒 Security Roles (${R("securityRoles")})`}),C("fieldSecurityProfiles")&&f.jsx(_t,{value:"fieldSecurityProfiles",children:`🛡️ Field Security Profiles (${R("fieldSecurityProfiles")})`}),C("customPages")&&f.jsx(_t,{value:"customPages",children:`📄 Custom Pages (${e.summary.totalCustomPages})`})]}),f.jsxs("div",{style:{marginTop:w.spacingVerticalL},children:[c==="entities"&&f.jsx("div",{style:{display:"flex",width:"100%",height:"600px"},children:f.jsx(iZ,{blueprints:e.entities,classicWorkflows:e.classicWorkflows})}),c==="plugins"&&C("plugins")&&f.jsx(qY,{plugins:e.plugins}),c==="flows"&&C("flows")&&f.jsx(aZ,{flows:e.flows}),c==="businessRules"&&C("businessRules")&&f.jsx(cZ,{businessRules:e.businessRules}),c==="classicWorkflows"&&C("classicWorkflows")&&f.jsx("div",{children:d?f.jsxs("div",{children:[f.jsx(st,{appearance:"secondary",onClick:()=>p(null),style:{marginBottom:"16px"},children:"← Back to List"}),f.jsx(gZ,{workflow:d})]}):f.jsx(pZ,{workflows:e.classicWorkflows,onSelectWorkflow:p})}),c==="businessProcessFlows"&&C("businessProcessFlows")&&f.jsx("div",{children:h?f.jsxs("div",{children:[f.jsx(st,{appearance:"secondary",onClick:()=>m(null),style:{marginBottom:"16px"},children:"← Back to List"}),f.jsx(vZ,{bpf:h})]}):f.jsx(mZ,{businessProcessFlows:e.businessProcessFlows,onSelectBPF:m})}),c==="customAPIs"&&C("customAPIs")&&f.jsx("div",{children:g?f.jsxs("div",{children:[f.jsx(st,{appearance:"secondary",onClick:()=>y(null),style:{marginBottom:"16px"},children:"← Back to List"}),f.jsx(bZ,{api:g})]}):f.jsx(yZ,{customAPIs:e.customAPIs,onSelectAPI:y})}),c==="environmentVariables"&&C("environmentVariables")&&f.jsx("div",{children:v?f.jsxs("div",{children:[f.jsx(st,{appearance:"secondary",onClick:()=>b(null),style:{marginBottom:"16px"},children:"← Back to List"}),f.jsx(wZ,{envVar:v})]}):f.jsx(xZ,{environmentVariables:e.environmentVariables,onSelectVariable:b})}),c==="connectionReferences"&&C("connectionReferences")&&f.jsx("div",{children:x?f.jsxs("div",{children:[f.jsx(st,{appearance:"secondary",onClick:()=>k(null),style:{marginBottom:"16px"},children:"← Back to List"}),f.jsx(SZ,{connectionRef:x})]}):f.jsx(kZ,{connectionReferences:e.connectionReferences,onSelectReference:k})}),c==="globalChoices"&&C("globalChoices")&&f.jsx(_Z,{globalChoices:e.globalChoices,onSelectChoice:()=>{}}),c==="customConnectors"&&C("customConnectors")&&f.jsx("div",{children:S?f.jsxs("div",{children:[f.jsx(st,{appearance:"secondary",onClick:()=>_(null),style:{marginBottom:"16px"},children:"← Back to List"}),f.jsx(TZ,{customConnector:S})]}):f.jsx(BZ,{customConnectors:e.customConnectors,onSelectConnector:_})}),c==="webResources"&&C("webResources")&&f.jsx(hZ,{webResources:e.webResources}),c==="securityRoles"&&C("securityRoles")&&f.jsx(Cde,{securityRoles:e.securityRoles||[]}),c==="fieldSecurityProfiles"&&C("fieldSecurityProfiles")&&f.jsx(Tde,{profiles:e.fieldSecurityProfiles||[],attributeMaskingRules:e.attributeMaskingRules,columnSecurityProfiles:e.columnSecurityProfiles}),c==="customPages"&&C("customPages")&&f.jsxs("div",{className:o.emptyState,children:[f.jsx(E,{style:{fontSize:"48px"},children:"📄"}),f.jsx(Ze,{children:"Custom Pages"}),f.jsx(E,{children:"Custom pages browser coming soon..."})]})]})]})})]}),i==="erd"&&N&&f.jsx("div",{className:o.tabContent,children:f.jsx(ade,{erd:e.erd,blueprintResult:e})}),i==="crossEntity"&&z&&f.jsx("div",{className:o.tabContent,children:f.jsx(cde,{links:e.crossEntityLinks})}),i==="externalDeps"&&F&&f.jsx("div",{className:o.tabContent,children:f.jsx(dde,{endpoints:e.externalEndpoints})}),i==="solutionDist"&&I&&f.jsx("div",{className:o.tabContent,children:f.jsx(hde,{distributions:e.solutionDistribution})}),f.jsx(wde,{isOpen:a,result:e,blueprintGenerator:r,onClose:()=>l(!1)}),f.jsx(cu,{})]})}function zde(e){return e.type==="publisher"?{type:"publisher",publisherPrefixes:e.publisherPrefixes,includeSystem:e.includeSystem,excludeSystemFields:e.excludeSystemFields}:{type:"solution",solutionIds:e.solutionIds,includeSystem:e.includeSystem,excludeSystemFields:e.excludeSystemFields}}function Ede(e){const[t,r]=B.useState(null),[n,o]=B.useState(null),[i,s]=B.useState(!1),[a,l]=B.useState(null),c=B.useRef(null),u=B.useRef(null);B.useEffect(()=>{r(null),l(null),o(null)},[e]);const d=B.useCallback(async()=>{try{if(s(!0),l(null),r(null),o(null),!window.toolboxAPI)throw new Error("PPTB Desktop API not available.");const h=new AbortController;c.current=h;const m=new U3(window.dataverseAPI),g=zde(e),y=new RY(m,g,{includeSystemEntities:e.includeSystem,onProgress:b=>{o(b)},signal:h.signal});u.current=y;const v=await y.generate();r(v),o(null)}catch(h){if(h instanceof Error&&h.message.includes("cancelled"))l(null);else{const m=h instanceof Error?h:new Error("Failed to generate blueprint");l(m)}}finally{s(!1),c.current=null}},[e]),p=B.useCallback(()=>{c.current&&(c.current.abort(),c.current=null)},[]);return{generate:d,result:t,progress:n,isGenerating:i,error:a,cancel:p,blueprintGenerator:u.current}}const Rde=bt({container:{padding:w.spacingVerticalXXL,maxWidth:"1200px",margin:"0 auto",minHeight:"100vh",display:"flex",flexDirection:"column"},header:{marginBottom:w.spacingVerticalL,display:"flex",flexDirection:"column",gap:w.spacingVerticalS},subtitle:{color:w.colorNeutralForeground3},confirmationCard:{marginBottom:w.spacingVerticalL},scopeDetails:{padding:w.spacingVerticalM,display:"flex",flexDirection:"column",gap:w.spacingVerticalS},label:{fontWeight:w.fontWeightSemibold},value:{color:w.colorNeutralForeground2},readyCard:{marginBottom:w.spacingVerticalL,textAlign:"center",padding:w.spacingVerticalXXL},buttonGroup:{display:"flex",justifyContent:"center",gap:w.spacingHorizontalM,marginTop:w.spacingVerticalL},successCard:{marginBottom:w.spacingVerticalL},summaryGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(150px, 1fr))",gap:w.spacingHorizontalM,marginTop:w.spacingVerticalM},summaryItem:{textAlign:"center",padding:w.spacingVerticalM,backgroundColor:w.colorNeutralBackground2,borderRadius:w.borderRadiusMedium},summaryValue:{fontSize:w.fontSizeHero900,fontWeight:w.fontWeightSemibold,color:w.colorBrandForeground1},summaryLabel:{fontSize:w.fontSizeBase200,color:w.colorNeutralForeground3,marginTop:w.spacingVerticalXS},errorContainer:{marginBottom:w.spacingVerticalL}});function Ade(){const e=Rde(),[t,r]=B.useState(null),[n,o]=B.useState(!1),{generate:i,result:s,progress:a,isGenerating:l,error:c,cancel:u,blueprintGenerator:d}=Ede(t),p=v=>{r(v),o(!0)},h=()=>{r(null),o(!1)},m=async()=>{await i()},g=()=>{u(),o(!0)},y=v=>v.type==="publisher"?f.jsxs("div",{className:e.scopeDetails,children:[f.jsxs("div",{children:[f.jsx(E,{className:e.label,children:"Scope: "}),f.jsx(E,{className:e.value,children:v.mode==="all-solutions"?`All solutions from ${v.publisherNames.join(", ")}`:`Specific solutions from ${v.publisherNames.join(", ")}`})]}),v.mode==="specific-solutions"&&v.solutionNames&&f.jsxs("div",{children:[f.jsx(E,{className:e.label,children:"Solutions: "}),f.jsx(E,{className:e.value,children:v.solutionNames.join(", ")})]}),f.jsxs("div",{children:[f.jsx(E,{className:e.label,children:"Include System Entities: "}),f.jsx(E,{className:e.value,children:v.includeSystem?"Yes":"No"})]})]}):v.type==="solution"?f.jsxs("div",{className:e.scopeDetails,children:[f.jsxs("div",{children:[f.jsx(E,{className:e.label,children:"Scope: "}),f.jsx(E,{className:e.value,children:"Selected Solutions"})]}),f.jsxs("div",{children:[f.jsx(E,{className:e.label,children:"Solutions: "}),f.jsx(E,{className:e.value,children:v.solutionNames.join(", ")})]}),f.jsxs("div",{children:[f.jsx(E,{className:e.label,children:"Include System Entities: "}),f.jsx(E,{className:e.value,children:v.includeSystem?"Yes":"No"})]})]}):null;return!t||!n?f.jsx(MY,{onScopeSelected:p}):l&&a?f.jsx(LY,{progress:a,onCancel:g}):s&&t?f.jsx(jde,{result:s,scope:t,onStartOver:h,blueprintGenerator:d}):f.jsxs("main",{id:"main-content",className:e.container,role:"main","aria-label":"Power Platform Solution Blueprint",children:[f.jsxs("header",{className:e.header,children:[f.jsx(YB,{children:"Power Platform Solution Blueprint"}),f.jsx(XB,{className:e.subtitle,children:"Complete architectural blueprints for your Power Platform systems"})]}),c&&f.jsx("div",{className:e.errorContainer,children:f.jsx(_l,{intent:"error",children:f.jsxs(Bl,{children:[f.jsx(v1,{children:"Generation Failed"}),c.message,f.jsx("br",{}),f.jsx(st,{appearance:"secondary",size:"small",onClick:m,style:{marginTop:"8px"},children:"Retry"})]})})}),f.jsxs(Pe,{className:e.confirmationCard,children:[f.jsx(At,{header:f.jsx(E,{weight:"semibold",children:"Selected Scope"})}),y(t)]}),f.jsxs(Pe,{className:e.readyCard,children:[f.jsx(E,{size:500,weight:"semibold",children:"Ready to generate blueprint"}),f.jsx(E,{style:{marginTop:w.spacingVerticalM},children:"This will process all entities in your selected scope and generate a complete system blueprint."})]}),f.jsxs("div",{className:e.buttonGroup,children:[f.jsx(st,{appearance:"secondary",onClick:h,children:"Change Selection"}),f.jsx(st,{appearance:"primary",onClick:m,"aria-label":"Generate system blueprint",children:"Generate Blueprint"})]}),f.jsx(cu,{})]})}window.addEventListener("keydown",e=>{e.key==="Tab"&&document.body.classList.add("keyboard-nav")});window.addEventListener("mousedown",()=>{document.body.classList.remove("keyboard-nav")});const f6=document.getElementById("root");if(!f6)throw new Error("Root element not found");cm.createRoot(f6).render(f.jsx(oS.StrictMode,{children:f.jsx(N5,{theme:TD,children:f.jsx(Ade,{})})}));export{De as $,Lde as A,Ac as B,zZ as C,KK as D,tb as E,uT as F,Br as G,zie as H,zte as I,Pde as J,g2 as K,fK as L,il as M,Mde as N,zp as O,EK as P,x1 as Q,B2 as R,wte as S,lf as T,jie as U,Mu as V,LK as W,Iu as X,Be as Y,wie as Z,T as _,VK as a,Ws as a$,bT as a0,vte as a1,U2 as a2,V2 as a3,Xde as a4,Hde as a5,Ude as a6,Vde as a7,qde as a8,A1 as a9,Iae as aA,Wse as aB,yte as aC,Ide as aD,jp as aE,xh as aF,dz as aG,nc as aH,Rh as aI,Wu as aJ,$se as aK,qse as aL,j1 as aM,ki as aN,fu as aO,L2 as aP,KJ as aQ,Yoe as aR,cz as aS,rz as aT,Jne as aU,vh as aV,eoe as aW,$u as aX,cs as aY,Woe as aZ,dk as a_,Gde as aa,$de as ab,oa as ac,Zde as ad,Yde as ae,Wde as af,gae as ag,bE as ah,sfe as ai,Ue as aj,Eo as ak,Dre as al,ir as am,Qi as an,V1 as ao,Vz as ap,Gs as aq,vz as ar,sle as as,ife as at,afe as au,nfe as av,Ee as aw,ofe as ax,$ae as ay,Mae as az,WK as b,toe as b0,X1 as b1,Qne as b2,ooe as b3,zl as b4,Xoe as b5,vie as b6,coe as b7,uie as b8,U1 as b9,yie as bA,G1 as bB,xie as bC,Ke as bD,$k as ba,ze as bb,Zj as bc,Qr as bd,WJ as be,N1 as bf,AT as bg,Lu as bh,IT as bi,Ode as bj,jZ as bk,jl as bl,tie as bm,fle as bn,qu as bo,bh as bp,Ki as bq,_p as br,sk as bs,Y1 as bt,oz as bu,lz as bv,Zne as bw,jv as bx,mie as by,cie as bz,ft as c,lt as d,yT as e,er as f,GK as g,ai as h,Mn as i,$re as j,Tl as k,ie as l,bz as m,Dde as n,cfe as o,XK as p,YK as q,lfe as r,UK as s,Mre as t,Kn as u,Ire as v,Aie as w,Aae as x,Kde as y,HK as z};
404
+ //# sourceMappingURL=index-C0N3Q-wf.js.map