@launchsecure/launch-kit 0.0.39 → 0.0.41
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.
- package/dist/chart-client/assets/index-Dd6IotOZ.css +1 -0
- package/dist/chart-client/index.html +2 -2
- package/dist/client/assets/index-DE0uje6k.css +32 -0
- package/dist/client/index.html +2 -2
- package/dist/council-client/assets/index-CGYusOCK.css +1 -0
- package/dist/council-client/assets/{index-jjBWyhry.js → index-DkTFX53U.js} +1 -1
- package/dist/council-client/index.html +2 -2
- package/dist/deck-client/assets/_baseUniq-mvYvzeEJ.js +1 -0
- package/dist/deck-client/assets/arc-CX4ylnp2.js +1 -0
- package/dist/deck-client/assets/architectureDiagram-Q4EWVU46-BkR-5IRK.js +36 -0
- package/dist/deck-client/assets/{blockDiagram-DXYQGD6D-CwAGy9lU.js → blockDiagram-DXYQGD6D-DVNQht7c.js} +2 -2
- package/dist/deck-client/assets/{c4Diagram-AHTNJAMY-L_g_SS21.js → c4Diagram-AHTNJAMY-Cbq1rlG8.js} +2 -2
- package/dist/deck-client/assets/channel-B9GC-CLn.js +1 -0
- package/dist/deck-client/assets/chunk-4BX2VUAB-D58Co4lU.js +1 -0
- package/dist/deck-client/assets/{chunk-4TB4RGXK-Bk0FUbxU.js → chunk-4TB4RGXK-BYvhTm3d.js} +1 -1
- package/dist/deck-client/assets/chunk-55IACEB6-oWukUhYg.js +1 -0
- package/dist/deck-client/assets/chunk-EDXVE4YY-Cm58kVnZ.js +1 -0
- package/dist/deck-client/assets/{chunk-FMBD7UC4-DqOvWr1k.js → chunk-FMBD7UC4-Dg-i7kzi.js} +1 -1
- package/dist/deck-client/assets/{chunk-OYMX7WX6-1Kd7yK5u.js → chunk-OYMX7WX6-C72wigPl.js} +1 -1
- package/dist/deck-client/assets/chunk-QZHKN3VN-CLgeuAKw.js +1 -0
- package/dist/deck-client/assets/chunk-YZCP3GAM-HDDlJ5oI.js +1 -0
- package/dist/deck-client/assets/classDiagram-6PBFFD2Q-CFBvYQ9j.js +1 -0
- package/dist/deck-client/assets/classDiagram-v2-HSJHXN6E-CFBvYQ9j.js +1 -0
- package/dist/deck-client/assets/clone-n-WQlAGe.js +1 -0
- package/dist/deck-client/assets/cose-bilkent-S5V4N54A-CUXQKg2M.js +1 -0
- package/dist/deck-client/assets/dagre-KV5264BT-C5M-fVDc.js +4 -0
- package/dist/deck-client/assets/diagram-5BDNPKRD-CcVsQ0S8.js +10 -0
- package/dist/deck-client/assets/diagram-G4DWMVQ6-DJswXyep.js +24 -0
- package/dist/deck-client/assets/diagram-MMDJMWI5-CGT76fm1.js +43 -0
- package/dist/deck-client/assets/diagram-TYMM5635-BBsYUNN6.js +24 -0
- package/dist/deck-client/assets/{erDiagram-SMLLAGMA-aiv9GZnL.js → erDiagram-SMLLAGMA-DKWYEHQS.js} +2 -2
- package/dist/deck-client/assets/{flowDiagram-DWJPFMVM-C6Fhvtsy.js → flowDiagram-DWJPFMVM-DLuDYIKT.js} +2 -2
- package/dist/deck-client/assets/ganttDiagram-T4ZO3ILL-B19b6Qtj.js +292 -0
- package/dist/deck-client/assets/gitGraphDiagram-UUTBAWPF-BYLAfYVS.js +106 -0
- package/dist/deck-client/assets/graph-CfzQUfPh.js +1 -0
- package/dist/deck-client/assets/index-DlwdTgE_.js +892 -0
- package/dist/deck-client/assets/index-evAPhGvM.css +1 -0
- package/dist/deck-client/assets/infoDiagram-42DDH7IO-Dp3mUA9c.js +2 -0
- package/dist/deck-client/assets/{ishikawaDiagram-UXIWVN3A-BwCUmUVt.js → ishikawaDiagram-UXIWVN3A-BhrNX_jI.js} +5 -5
- package/dist/deck-client/assets/{journeyDiagram-VCZTEJTY-C6qoqJmJ.js → journeyDiagram-VCZTEJTY-B5lJI492.js} +2 -2
- package/dist/deck-client/assets/{kanban-definition-6JOO6SKY-Dz1Tt3sA.js → kanban-definition-6JOO6SKY-D9-lmhQf.js} +2 -2
- package/dist/deck-client/assets/layout-CfIe_Su8.js +1 -0
- package/dist/deck-client/assets/linear-09ZFRoh_.js +1 -0
- package/dist/deck-client/assets/mermaid.core-BaQyIOvj.js +309 -0
- package/dist/deck-client/assets/min-CYwCzYaL.js +1 -0
- package/dist/deck-client/assets/{mindmap-definition-QFDTVHPH-CfXcK1qH.js → mindmap-definition-QFDTVHPH-CouFxf6C.js} +2 -2
- package/dist/deck-client/assets/pieDiagram-DEJITSTG-DMB1ufC0.js +30 -0
- package/dist/deck-client/assets/{quadrantDiagram-34T5L4WZ-CXwvZ1i1.js → quadrantDiagram-34T5L4WZ-CBiOKudN.js} +2 -2
- package/dist/deck-client/assets/{requirementDiagram-MS252O5E-Cl6xm0fR.js → requirementDiagram-MS252O5E-BMc3GJkx.js} +2 -2
- package/dist/deck-client/assets/sankeyDiagram-XADWPNL6-CxACUncm.js +10 -0
- package/dist/deck-client/assets/{sequenceDiagram-FGHM5R23-BC1MYBn6.js → sequenceDiagram-FGHM5R23-Ch-P3Mzc.js} +2 -2
- package/dist/deck-client/assets/stateDiagram-FHFEXIEX-Cy8n7Yzk.js +1 -0
- package/dist/deck-client/assets/stateDiagram-v2-QKLJ7IA2-C14VKCzi.js +1 -0
- package/dist/deck-client/assets/{timeline-definition-GMOUNBTQ-DKnITsD4.js → timeline-definition-GMOUNBTQ-C2V4sSkm.js} +2 -2
- package/dist/deck-client/assets/{vennDiagram-DHZGUBPP-BdajXRrh.js → vennDiagram-DHZGUBPP-YOqt4VbE.js} +2 -2
- package/dist/deck-client/assets/wardley-RL74JXVD-Bxo5x40D.js +162 -0
- package/dist/deck-client/assets/{wardleyDiagram-NUSXRM2D-B2hDCDl2.js → wardleyDiagram-NUSXRM2D-DW9SOqbx.js} +2 -2
- package/dist/deck-client/assets/{xychartDiagram-5P7HB3ND-CvnYFs51.js → xychartDiagram-5P7HB3ND-D-rZvZOL.js} +2 -2
- package/dist/deck-client/index.html +2 -2
- package/dist/server/beacon-monitor-entry.js +106 -24
- package/dist/server/chart-serve.js +544 -247
- package/dist/server/cli.js +1016 -324
- package/dist/server/council-entry.js +23 -4
- package/dist/server/council-serve.js +22 -3
- package/dist/server/deck-mcp-entry.js +523 -125
- package/dist/server/deck-serve.js +326 -40
- package/dist/server/graph-mcp-entry.js +1160 -357
- package/dist/server/init-entry.js +17 -7
- package/dist/server/orbit-entry.js +91 -7
- package/dist/server/recall-entry.js +94 -12
- package/dist/server/rover-entry.js +1 -1
- package/package.json +1 -1
- package/scaffolds/ls-marketplace/plugins/kit/skills/comms/SKILL.md +34 -1
- package/scaffolds/ls-marketplace/plugins/kit/skills/gen-test/SKILL.md +126 -0
- package/scaffolds/statusline/statusline-mcp.sh +68 -19
- package/scaffolds/statusline/statusline-wrapper.sh +12 -9
- package/dist/chart-client/assets/index-ysGpLeOW.css +0 -1
- package/dist/client/assets/index-CMN3tlGP.css +0 -32
- package/dist/council-client/assets/index-ChmNX6bZ.css +0 -1
- package/dist/deck-client/assets/_baseUniq-DOrnEQMI.js +0 -1
- package/dist/deck-client/assets/arc-DOWK7V3m.js +0 -1
- package/dist/deck-client/assets/architectureDiagram-Q4EWVU46-DPhzvk7q.js +0 -36
- package/dist/deck-client/assets/channel-DqiACUUq.js +0 -1
- package/dist/deck-client/assets/chunk-4BX2VUAB-RKm0LXpu.js +0 -1
- package/dist/deck-client/assets/chunk-55IACEB6-Cl3hja-M.js +0 -1
- package/dist/deck-client/assets/chunk-EDXVE4YY-CNIMQCV2.js +0 -1
- package/dist/deck-client/assets/chunk-QZHKN3VN-6_kraYpP.js +0 -1
- package/dist/deck-client/assets/chunk-YZCP3GAM-FgAwIWlo.js +0 -1
- package/dist/deck-client/assets/classDiagram-6PBFFD2Q-D23cq2C3.js +0 -1
- package/dist/deck-client/assets/classDiagram-v2-HSJHXN6E-D23cq2C3.js +0 -1
- package/dist/deck-client/assets/clone-C7jSigGq.js +0 -1
- package/dist/deck-client/assets/cose-bilkent-S5V4N54A-CigVnnPr.js +0 -1
- package/dist/deck-client/assets/dagre-KV5264BT-DHZXTktX.js +0 -4
- package/dist/deck-client/assets/diagram-5BDNPKRD-H5k0eauU.js +0 -10
- package/dist/deck-client/assets/diagram-G4DWMVQ6-Bg3dFhSY.js +0 -24
- package/dist/deck-client/assets/diagram-MMDJMWI5-CQLC410N.js +0 -43
- package/dist/deck-client/assets/diagram-TYMM5635-DFTCHVkP.js +0 -24
- package/dist/deck-client/assets/ganttDiagram-T4ZO3ILL-DSaGMPM4.js +0 -292
- package/dist/deck-client/assets/gitGraphDiagram-UUTBAWPF-DMjL2Vix.js +0 -106
- package/dist/deck-client/assets/graph-B7Vn5lkK.js +0 -1
- package/dist/deck-client/assets/index-BD36e-tD.js +0 -1196
- package/dist/deck-client/assets/index-CGbNOpk9.css +0 -1
- package/dist/deck-client/assets/infoDiagram-42DDH7IO-mNi4iygG.js +0 -2
- package/dist/deck-client/assets/layout-CZTyRhOG.js +0 -1
- package/dist/deck-client/assets/linear--7n7iEvd.js +0 -1
- package/dist/deck-client/assets/min-Bh130DN8.js +0 -1
- package/dist/deck-client/assets/pieDiagram-DEJITSTG-DjVHLAVw.js +0 -30
- package/dist/deck-client/assets/sankeyDiagram-XADWPNL6-BOH9sLyh.js +0 -10
- package/dist/deck-client/assets/stateDiagram-FHFEXIEX-kNp9bv8K.js +0 -1
- package/dist/deck-client/assets/stateDiagram-v2-QKLJ7IA2-hRsAFc2t.js +0 -1
- package/dist/deck-client/assets/wardley-RL74JXVD-BL802-su.js +0 -162
- /package/dist/chart-client/assets/{index-BlsuXuQ1.js → index-CrYM1-ac.js} +0 -0
- /package/dist/client/assets/{index-BA7BHBWT.js → index-BoIjawzY.js} +0 -0
|
@@ -0,0 +1,892 @@
|
|
|
1
|
+
var af=Object.defineProperty;var uf=(e,t,n)=>t in e?af(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Q=(e,t,n)=>uf(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const i of l.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();var Tv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function cf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Rv(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var ku={exports:{}},Fo={},bu={exports:{}},B={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Nr=Symbol.for("react.element"),df=Symbol.for("react.portal"),ff=Symbol.for("react.fragment"),pf=Symbol.for("react.strict_mode"),hf=Symbol.for("react.profiler"),mf=Symbol.for("react.provider"),gf=Symbol.for("react.context"),vf=Symbol.for("react.forward_ref"),yf=Symbol.for("react.suspense"),xf=Symbol.for("react.memo"),wf=Symbol.for("react.lazy"),Ws=Symbol.iterator;function kf(e){return e===null||typeof e!="object"?null:(e=Ws&&e[Ws]||e["@@iterator"],typeof e=="function"?e:null)}var Su={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Eu=Object.assign,Cu={};function zn(e,t,n){this.props=e,this.context=t,this.refs=Cu,this.updater=n||Su}zn.prototype.isReactComponent={};zn.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")};zn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Nu(){}Nu.prototype=zn.prototype;function Ii(e,t,n){this.props=e,this.context=t,this.refs=Cu,this.updater=n||Su}var Di=Ii.prototype=new Nu;Di.constructor=Ii;Eu(Di,zn.prototype);Di.isPureReactComponent=!0;var Hs=Array.isArray,ju=Object.prototype.hasOwnProperty,Oi={current:null},Lu={key:!0,ref:!0,__self:!0,__source:!0};function _u(e,t,n){var r,o={},l=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(l=""+t.key),t)ju.call(t,r)&&!Lu.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var a=Array(s),u=0;u<s;u++)a[u]=arguments[u+2];o.children=a}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return{$$typeof:Nr,type:e,key:l,ref:i,props:o,_owner:Oi.current}}function bf(e,t){return{$$typeof:Nr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Bi(e){return typeof e=="object"&&e!==null&&e.$$typeof===Nr}function Sf(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Vs=/\/+/g;function ll(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Sf(""+e.key):t.toString(36)}function Gr(e,t,n,r,o){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(l){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Nr:case df:i=!0}}if(i)return i=e,o=o(i),e=r===""?"."+ll(i,0):r,Hs(o)?(n="",e!=null&&(n=e.replace(Vs,"$&/")+"/"),Gr(o,t,n,"",function(u){return u})):o!=null&&(Bi(o)&&(o=bf(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(Vs,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=r===""?".":r+":",Hs(e))for(var s=0;s<e.length;s++){l=e[s];var a=r+ll(l,s);i+=Gr(l,t,n,a,o)}else if(a=kf(e),typeof a=="function")for(e=a.call(e),s=0;!(l=e.next()).done;)l=l.value,a=r+ll(l,s++),i+=Gr(l,t,n,a,o);else if(l==="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 i}function Pr(e,t,n){if(e==null)return e;var r=[],o=0;return Gr(e,r,"","",function(l){return t.call(n,l,o++)}),r}function Ef(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Se={current:null},Xr={transition:null},Cf={ReactCurrentDispatcher:Se,ReactCurrentBatchConfig:Xr,ReactCurrentOwner:Oi};function Tu(){throw Error("act(...) is not supported in production builds of React.")}B.Children={map:Pr,forEach:function(e,t,n){Pr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Pr(e,function(){t++}),t},toArray:function(e){return Pr(e,function(t){return t})||[]},only:function(e){if(!Bi(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};B.Component=zn;B.Fragment=ff;B.Profiler=hf;B.PureComponent=Ii;B.StrictMode=pf;B.Suspense=yf;B.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Cf;B.act=Tu;B.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Eu({},e.props),o=e.key,l=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,i=Oi.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(a in t)ju.call(t,a)&&!Lu.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&s!==void 0?s[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){s=Array(a);for(var u=0;u<a;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:Nr,type:e.type,key:o,ref:l,props:r,_owner:i}};B.createContext=function(e){return e={$$typeof:gf,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:mf,_context:e},e.Consumer=e};B.createElement=_u;B.createFactory=function(e){var t=_u.bind(null,e);return t.type=e,t};B.createRef=function(){return{current:null}};B.forwardRef=function(e){return{$$typeof:vf,render:e}};B.isValidElement=Bi;B.lazy=function(e){return{$$typeof:wf,_payload:{_status:-1,_result:e},_init:Ef}};B.memo=function(e,t){return{$$typeof:xf,type:e,compare:t===void 0?null:t}};B.startTransition=function(e){var t=Xr.transition;Xr.transition={};try{e()}finally{Xr.transition=t}};B.unstable_act=Tu;B.useCallback=function(e,t){return Se.current.useCallback(e,t)};B.useContext=function(e){return Se.current.useContext(e)};B.useDebugValue=function(){};B.useDeferredValue=function(e){return Se.current.useDeferredValue(e)};B.useEffect=function(e,t){return Se.current.useEffect(e,t)};B.useId=function(){return Se.current.useId()};B.useImperativeHandle=function(e,t,n){return Se.current.useImperativeHandle(e,t,n)};B.useInsertionEffect=function(e,t){return Se.current.useInsertionEffect(e,t)};B.useLayoutEffect=function(e,t){return Se.current.useLayoutEffect(e,t)};B.useMemo=function(e,t){return Se.current.useMemo(e,t)};B.useReducer=function(e,t,n){return Se.current.useReducer(e,t,n)};B.useRef=function(e){return Se.current.useRef(e)};B.useState=function(e){return Se.current.useState(e)};B.useSyncExternalStore=function(e,t,n){return Se.current.useSyncExternalStore(e,t,n)};B.useTransition=function(){return Se.current.useTransition()};B.version="18.3.1";bu.exports=B;var C=bu.exports;const Zr=cf(C);/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var Nf=C,jf=Symbol.for("react.element"),Lf=Symbol.for("react.fragment"),_f=Object.prototype.hasOwnProperty,Tf=Nf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Rf={key:!0,ref:!0,__self:!0,__source:!0};function Ru(e,t,n){var r,o={},l=null,i=null;n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)_f.call(t,r)&&!Rf.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:jf,type:e,key:l,ref:i,props:o,_owner:Tf.current}}Fo.Fragment=Lf;Fo.jsx=Ru;Fo.jsxs=Ru;ku.exports=Fo;var d=ku.exports,Ol={},Pu={exports:{}},Oe={},zu={exports:{}},Au={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/(function(e){function t(j,A){var M=j.length;j.push(A);e:for(;0<M;){var D=M-1>>>1,Z=j[D];if(0<o(Z,A))j[D]=A,j[M]=Z,M=D;else break e}}function n(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var A=j[0],M=j.pop();if(M!==A){j[0]=M;e:for(var D=0,Z=j.length,Ke=Z>>>1;D<Ke;){var Ce=2*(D+1)-1,bt=j[Ce],Ye=Ce+1,rt=j[Ye];if(0>o(bt,M))Ye<Z&&0>o(rt,bt)?(j[D]=rt,j[Ye]=M,D=Ye):(j[D]=bt,j[Ce]=M,D=Ce);else if(Ye<Z&&0>o(rt,M))j[D]=rt,j[Ye]=M,D=Ye;else break e}}return A}function o(j,A){var M=j.sortIndex-A.sortIndex;return M!==0?M:j.id-A.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var a=[],u=[],p=1,v=null,h=3,x=!1,y=!1,k=!1,_=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(j){for(var A=n(u);A!==null;){if(A.callback===null)r(u);else if(A.startTime<=j)r(u),A.sortIndex=A.expirationTime,t(a,A);else break;A=n(u)}}function g(j){if(k=!1,m(j),!y)if(n(a)!==null)y=!0,U(w);else{var A=n(u);A!==null&&de(g,A.startTime-j)}}function w(j,A){y=!1,k&&(k=!1,f(N),N=-1),x=!0;var M=h;try{for(m(A),v=n(a);v!==null&&(!(v.expirationTime>A)||j&&!K());){var D=v.callback;if(typeof D=="function"){v.callback=null,h=v.priorityLevel;var Z=D(v.expirationTime<=A);A=e.unstable_now(),typeof Z=="function"?v.callback=Z:v===n(a)&&r(a),m(A)}else r(a);v=n(a)}if(v!==null)var Ke=!0;else{var Ce=n(u);Ce!==null&&de(g,Ce.startTime-A),Ke=!1}return Ke}finally{v=null,h=M,x=!1}}var S=!1,b=null,N=-1,L=5,R=-1;function K(){return!(e.unstable_now()-R<L)}function me(){if(b!==null){var j=e.unstable_now();R=j;var A=!0;try{A=b(!0,j)}finally{A?ae():(S=!1,b=null)}}else S=!1}var ae;if(typeof c=="function")ae=function(){c(me)};else if(typeof MessageChannel<"u"){var Fe=new MessageChannel,I=Fe.port2;Fe.port1.onmessage=me,ae=function(){I.postMessage(null)}}else ae=function(){_(me,0)};function U(j){b=j,S||(S=!0,ae())}function de(j,A){N=_(function(){j(e.unstable_now())},A)}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(j){j.callback=null},e.unstable_continueExecution=function(){y||x||(y=!0,U(w))},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(j){switch(h){case 1:case 2:case 3:var A=3;break;default:A=h}var M=h;h=A;try{return j()}finally{h=M}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(j,A){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var M=h;h=j;try{return A()}finally{h=M}},e.unstable_scheduleCallback=function(j,A,M){var D=e.unstable_now();switch(typeof M=="object"&&M!==null?(M=M.delay,M=typeof M=="number"&&0<M?D+M:D):M=D,j){case 1:var Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=M+Z,j={id:p++,callback:A,priorityLevel:j,startTime:M,expirationTime:Z,sortIndex:-1},M>D?(j.sortIndex=M,t(u,j),n(a)===null&&j===n(u)&&(k?(f(N),N=-1):k=!0,de(g,M-D))):(j.sortIndex=Z,t(a,j),y||x||(y=!0,U(w))),j},e.unstable_shouldYield=K,e.unstable_wrapCallback=function(j){var A=h;return function(){var M=h;h=A;try{return j.apply(this,arguments)}finally{h=M}}}})(Au);zu.exports=Au;var Pf=zu.exports;/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.min.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var zf=C,De=Pf;function E(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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 Mu=new Set,ar={};function nn(e,t){Nn(e,t),Nn(e+"Capture",t)}function Nn(e,t){for(ar[e]=t,e=0;e<t.length;e++)Mu.add(t[e])}var vt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bl=Object.prototype.hasOwnProperty,Af=/^[: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]*$/,Qs={},qs={};function Mf(e){return Bl.call(qs,e)?!0:Bl.call(Qs,e)?!1:Af.test(e)?qs[e]=!0:(Qs[e]=!0,!1)}function $f(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function If(e,t,n,r){if(t===null||typeof t>"u"||$f(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.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 Ee(e,t,n,r,o,l,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=i}var he={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){he[e]=new Ee(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];he[t]=new Ee(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){he[e]=new Ee(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){he[e]=new Ee(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){he[e]=new Ee(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){he[e]=new Ee(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){he[e]=new Ee(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){he[e]=new Ee(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){he[e]=new Ee(e,5,!1,e.toLowerCase(),null,!1,!1)});var Fi=/[\-:]([a-z])/g;function Ui(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(Fi,Ui);he[t]=new Ee(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(Fi,Ui);he[t]=new Ee(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(Fi,Ui);he[t]=new Ee(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){he[e]=new Ee(e,1,!1,e.toLowerCase(),null,!1,!1)});he.xlinkHref=new Ee("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){he[e]=new Ee(e,1,!1,e.toLowerCase(),null,!0,!0)});function Wi(e,t,n,r){var o=he.hasOwnProperty(t)?he[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(If(t,n,o,r)&&(n=null),r||o===null?Mf(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var kt=zf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,zr=Symbol.for("react.element"),an=Symbol.for("react.portal"),un=Symbol.for("react.fragment"),Hi=Symbol.for("react.strict_mode"),Fl=Symbol.for("react.profiler"),$u=Symbol.for("react.provider"),Iu=Symbol.for("react.context"),Vi=Symbol.for("react.forward_ref"),Ul=Symbol.for("react.suspense"),Wl=Symbol.for("react.suspense_list"),Qi=Symbol.for("react.memo"),Et=Symbol.for("react.lazy"),Du=Symbol.for("react.offscreen"),Ks=Symbol.iterator;function $n(e){return e===null||typeof e!="object"?null:(e=Ks&&e[Ks]||e["@@iterator"],typeof e=="function"?e:null)}var te=Object.assign,il;function qn(e){if(il===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);il=t&&t[1]||""}return`
|
|
34
|
+
`+il+e}var sl=!1;function al(e,t){if(!e||sl)return"";sl=!0;var n=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(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
|
|
35
|
+
`),l=r.stack.split(`
|
|
36
|
+
`),i=o.length-1,s=l.length-1;1<=i&&0<=s&&o[i]!==l[s];)s--;for(;1<=i&&0<=s;i--,s--)if(o[i]!==l[s]){if(i!==1||s!==1)do if(i--,s--,0>s||o[i]!==l[s]){var a=`
|
|
37
|
+
`+o[i].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=i&&0<=s);break}}}finally{sl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?qn(e):""}function Df(e){switch(e.tag){case 5:return qn(e.type);case 16:return qn("Lazy");case 13:return qn("Suspense");case 19:return qn("SuspenseList");case 0:case 2:case 15:return e=al(e.type,!1),e;case 11:return e=al(e.type.render,!1),e;case 1:return e=al(e.type,!0),e;default:return""}}function Hl(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 un:return"Fragment";case an:return"Portal";case Fl:return"Profiler";case Hi:return"StrictMode";case Ul:return"Suspense";case Wl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Iu:return(e.displayName||"Context")+".Consumer";case $u:return(e._context.displayName||"Context")+".Provider";case Vi:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Qi:return t=e.displayName||null,t!==null?t:Hl(e.type)||"Memo";case Et:t=e._payload,e=e._init;try{return Hl(e(t))}catch{}}return null}function Of(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 Hl(t);case 8:return t===Hi?"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 Dt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ou(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Bf(e){var t=Ou(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,l.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ar(e){e._valueTracker||(e._valueTracker=Bf(e))}function Bu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ou(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function po(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 Vl(e,t){var n=t.checked;return te({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ys(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Dt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Fu(e,t){t=t.checked,t!=null&&Wi(e,"checked",t,!1)}function Ql(e,t){Fu(e,t);var n=Dt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ql(e,t.type,n):t.hasOwnProperty("defaultValue")&&ql(e,t.type,Dt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Gs(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ql(e,t,n){(t!=="number"||po(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Kn=Array.isArray;function wn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Dt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Kl(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(E(91));return te({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Xs(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(E(92));if(Kn(n)){if(1<n.length)throw Error(E(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Dt(n)}}function Uu(e,t){var n=Dt(t.value),r=Dt(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Zs(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Wu(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 Yl(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Wu(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Mr,Hu=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Mr=Mr||document.createElement("div"),Mr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Mr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ur(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Xn={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},Ff=["Webkit","ms","Moz","O"];Object.keys(Xn).forEach(function(e){Ff.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Xn[t]=Xn[e]})});function Vu(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Xn.hasOwnProperty(e)&&Xn[e]?(""+t).trim():t+"px"}function Qu(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Vu(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Uf=te({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 Gl(e,t){if(t){if(Uf[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(E(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(E(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(E(61))}if(t.style!=null&&typeof t.style!="object")throw Error(E(62))}}function Xl(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 Zl=null;function qi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Jl=null,kn=null,bn=null;function Js(e){if(e=_r(e)){if(typeof Jl!="function")throw Error(E(280));var t=e.stateNode;t&&(t=Qo(t),Jl(e.stateNode,e.type,t))}}function qu(e){kn?bn?bn.push(e):bn=[e]:kn=e}function Ku(){if(kn){var e=kn,t=bn;if(bn=kn=null,Js(e),t)for(e=0;e<t.length;e++)Js(t[e])}}function Yu(e,t){return e(t)}function Gu(){}var ul=!1;function Xu(e,t,n){if(ul)return e(t,n);ul=!0;try{return Yu(e,t,n)}finally{ul=!1,(kn!==null||bn!==null)&&(Gu(),Ku())}}function cr(e,t){var n=e.stateNode;if(n===null)return null;var r=Qo(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(E(231,t,typeof n));return n}var ei=!1;if(vt)try{var In={};Object.defineProperty(In,"passive",{get:function(){ei=!0}}),window.addEventListener("test",In,In),window.removeEventListener("test",In,In)}catch{ei=!1}function Wf(e,t,n,r,o,l,i,s,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(p){this.onError(p)}}var Zn=!1,ho=null,mo=!1,ti=null,Hf={onError:function(e){Zn=!0,ho=e}};function Vf(e,t,n,r,o,l,i,s,a){Zn=!1,ho=null,Wf.apply(Hf,arguments)}function Qf(e,t,n,r,o,l,i,s,a){if(Vf.apply(this,arguments),Zn){if(Zn){var u=ho;Zn=!1,ho=null}else throw Error(E(198));mo||(mo=!0,ti=u)}}function rn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Zu(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 ea(e){if(rn(e)!==e)throw Error(E(188))}function qf(e){var t=e.alternate;if(!t){if(t=rn(e),t===null)throw Error(E(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var l=o.alternate;if(l===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===l.child){for(l=o.child;l;){if(l===n)return ea(o),e;if(l===r)return ea(o),t;l=l.sibling}throw Error(E(188))}if(n.return!==r.return)n=o,r=l;else{for(var i=!1,s=o.child;s;){if(s===n){i=!0,n=o,r=l;break}if(s===r){i=!0,r=o,n=l;break}s=s.sibling}if(!i){for(s=l.child;s;){if(s===n){i=!0,n=l,r=o;break}if(s===r){i=!0,r=l,n=o;break}s=s.sibling}if(!i)throw Error(E(189))}}if(n.alternate!==r)throw Error(E(190))}if(n.tag!==3)throw Error(E(188));return n.stateNode.current===n?e:t}function Ju(e){return e=qf(e),e!==null?ec(e):null}function ec(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ec(e);if(t!==null)return t;e=e.sibling}return null}var tc=De.unstable_scheduleCallback,ta=De.unstable_cancelCallback,Kf=De.unstable_shouldYield,Yf=De.unstable_requestPaint,oe=De.unstable_now,Gf=De.unstable_getCurrentPriorityLevel,Ki=De.unstable_ImmediatePriority,nc=De.unstable_UserBlockingPriority,go=De.unstable_NormalPriority,Xf=De.unstable_LowPriority,rc=De.unstable_IdlePriority,Uo=null,at=null;function Zf(e){if(at&&typeof at.onCommitFiberRoot=="function")try{at.onCommitFiberRoot(Uo,e,void 0,(e.current.flags&128)===128)}catch{}}var et=Math.clz32?Math.clz32:tp,Jf=Math.log,ep=Math.LN2;function tp(e){return e>>>=0,e===0?32:31-(Jf(e)/ep|0)|0}var $r=64,Ir=4194304;function Yn(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 vo(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,l=e.pingedLanes,i=n&268435455;if(i!==0){var s=i&~o;s!==0?r=Yn(s):(l&=i,l!==0&&(r=Yn(l)))}else i=n&~o,i!==0?r=Yn(i):l!==0&&(r=Yn(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,l=t&-t,o>=l||o===16&&(l&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-et(t),o=1<<n,r|=e[n],t&=~o;return r}function np(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 rp(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,l=e.pendingLanes;0<l;){var i=31-et(l),s=1<<i,a=o[i];a===-1?(!(s&n)||s&r)&&(o[i]=np(s,t)):a<=t&&(e.expiredLanes|=s),l&=~s}}function ni(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function oc(){var e=$r;return $r<<=1,!($r&4194240)&&($r=64),e}function cl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function jr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-et(t),e[t]=n}function op(e,t){var n=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 r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-et(n),l=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~l}}function Yi(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-et(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var V=0;function lc(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var ic,Gi,sc,ac,uc,ri=!1,Dr=[],Tt=null,Rt=null,Pt=null,dr=new Map,fr=new Map,Nt=[],lp="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 na(e,t){switch(e){case"focusin":case"focusout":Tt=null;break;case"dragenter":case"dragleave":Rt=null;break;case"mouseover":case"mouseout":Pt=null;break;case"pointerover":case"pointerout":dr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":fr.delete(t.pointerId)}}function Dn(e,t,n,r,o,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:l,targetContainers:[o]},t!==null&&(t=_r(t),t!==null&&Gi(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function ip(e,t,n,r,o){switch(t){case"focusin":return Tt=Dn(Tt,e,t,n,r,o),!0;case"dragenter":return Rt=Dn(Rt,e,t,n,r,o),!0;case"mouseover":return Pt=Dn(Pt,e,t,n,r,o),!0;case"pointerover":var l=o.pointerId;return dr.set(l,Dn(dr.get(l)||null,e,t,n,r,o)),!0;case"gotpointercapture":return l=o.pointerId,fr.set(l,Dn(fr.get(l)||null,e,t,n,r,o)),!0}return!1}function cc(e){var t=Vt(e.target);if(t!==null){var n=rn(t);if(n!==null){if(t=n.tag,t===13){if(t=Zu(n),t!==null){e.blockedOn=t,uc(e.priority,function(){sc(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Jr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=oi(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Zl=r,n.target.dispatchEvent(r),Zl=null}else return t=_r(n),t!==null&&Gi(t),e.blockedOn=n,!1;t.shift()}return!0}function ra(e,t,n){Jr(e)&&n.delete(t)}function sp(){ri=!1,Tt!==null&&Jr(Tt)&&(Tt=null),Rt!==null&&Jr(Rt)&&(Rt=null),Pt!==null&&Jr(Pt)&&(Pt=null),dr.forEach(ra),fr.forEach(ra)}function On(e,t){e.blockedOn===t&&(e.blockedOn=null,ri||(ri=!0,De.unstable_scheduleCallback(De.unstable_NormalPriority,sp)))}function pr(e){function t(o){return On(o,e)}if(0<Dr.length){On(Dr[0],e);for(var n=1;n<Dr.length;n++){var r=Dr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Tt!==null&&On(Tt,e),Rt!==null&&On(Rt,e),Pt!==null&&On(Pt,e),dr.forEach(t),fr.forEach(t),n=0;n<Nt.length;n++)r=Nt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Nt.length&&(n=Nt[0],n.blockedOn===null);)cc(n),n.blockedOn===null&&Nt.shift()}var Sn=kt.ReactCurrentBatchConfig,yo=!0;function ap(e,t,n,r){var o=V,l=Sn.transition;Sn.transition=null;try{V=1,Xi(e,t,n,r)}finally{V=o,Sn.transition=l}}function up(e,t,n,r){var o=V,l=Sn.transition;Sn.transition=null;try{V=4,Xi(e,t,n,r)}finally{V=o,Sn.transition=l}}function Xi(e,t,n,r){if(yo){var o=oi(e,t,n,r);if(o===null)wl(e,t,r,xo,n),na(e,r);else if(ip(o,e,t,n,r))r.stopPropagation();else if(na(e,r),t&4&&-1<lp.indexOf(e)){for(;o!==null;){var l=_r(o);if(l!==null&&ic(l),l=oi(e,t,n,r),l===null&&wl(e,t,r,xo,n),l===o)break;o=l}o!==null&&r.stopPropagation()}else wl(e,t,r,null,n)}}var xo=null;function oi(e,t,n,r){if(xo=null,e=qi(r),e=Vt(e),e!==null)if(t=rn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Zu(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return xo=e,null}function dc(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(Gf()){case Ki:return 1;case nc:return 4;case go:case Xf:return 16;case rc:return 536870912;default:return 16}default:return 16}}var Lt=null,Zi=null,eo=null;function fc(){if(eo)return eo;var e,t=Zi,n=t.length,r,o="value"in Lt?Lt.value:Lt.textContent,l=o.length;for(e=0;e<n&&t[e]===o[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===o[l-r];r++);return eo=o.slice(e,1<r?1-r:void 0)}function to(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 Or(){return!0}function oa(){return!1}function Be(e){function t(n,r,o,l,i){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=l,this.target=i,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(l):l[s]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?Or:oa,this.isPropagationStopped=oa,this}return te(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Or)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Or)},persist:function(){},isPersistent:Or}),t}var An={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ji=Be(An),Lr=te({},An,{view:0,detail:0}),cp=Be(Lr),dl,fl,Bn,Wo=te({},Lr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:es,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!==Bn&&(Bn&&e.type==="mousemove"?(dl=e.screenX-Bn.screenX,fl=e.screenY-Bn.screenY):fl=dl=0,Bn=e),dl)},movementY:function(e){return"movementY"in e?e.movementY:fl}}),la=Be(Wo),dp=te({},Wo,{dataTransfer:0}),fp=Be(dp),pp=te({},Lr,{relatedTarget:0}),pl=Be(pp),hp=te({},An,{animationName:0,elapsedTime:0,pseudoElement:0}),mp=Be(hp),gp=te({},An,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vp=Be(gp),yp=te({},An,{data:0}),ia=Be(yp),xp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wp={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"},kp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function bp(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=kp[e])?!!t[e]:!1}function es(){return bp}var Sp=te({},Lr,{key:function(e){if(e.key){var t=xp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=to(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?wp[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:es,charCode:function(e){return e.type==="keypress"?to(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?to(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Ep=Be(Sp),Cp=te({},Wo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),sa=Be(Cp),Np=te({},Lr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:es}),jp=Be(Np),Lp=te({},An,{propertyName:0,elapsedTime:0,pseudoElement:0}),_p=Be(Lp),Tp=te({},Wo,{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}),Rp=Be(Tp),Pp=[9,13,27,32],ts=vt&&"CompositionEvent"in window,Jn=null;vt&&"documentMode"in document&&(Jn=document.documentMode);var zp=vt&&"TextEvent"in window&&!Jn,pc=vt&&(!ts||Jn&&8<Jn&&11>=Jn),aa=" ",ua=!1;function hc(e,t){switch(e){case"keyup":return Pp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function mc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var cn=!1;function Ap(e,t){switch(e){case"compositionend":return mc(t);case"keypress":return t.which!==32?null:(ua=!0,aa);case"textInput":return e=t.data,e===aa&&ua?null:e;default:return null}}function Mp(e,t){if(cn)return e==="compositionend"||!ts&&hc(e,t)?(e=fc(),eo=Zi=Lt=null,cn=!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 pc&&t.locale!=="ko"?null:t.data;default:return null}}var $p={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 ca(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!$p[e.type]:t==="textarea"}function gc(e,t,n,r){qu(r),t=wo(t,"onChange"),0<t.length&&(n=new Ji("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var er=null,hr=null;function Ip(e){jc(e,0)}function Ho(e){var t=pn(e);if(Bu(t))return e}function Dp(e,t){if(e==="change")return t}var vc=!1;if(vt){var hl;if(vt){var ml="oninput"in document;if(!ml){var da=document.createElement("div");da.setAttribute("oninput","return;"),ml=typeof da.oninput=="function"}hl=ml}else hl=!1;vc=hl&&(!document.documentMode||9<document.documentMode)}function fa(){er&&(er.detachEvent("onpropertychange",yc),hr=er=null)}function yc(e){if(e.propertyName==="value"&&Ho(hr)){var t=[];gc(t,hr,e,qi(e)),Xu(Ip,t)}}function Op(e,t,n){e==="focusin"?(fa(),er=t,hr=n,er.attachEvent("onpropertychange",yc)):e==="focusout"&&fa()}function Bp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ho(hr)}function Fp(e,t){if(e==="click")return Ho(t)}function Up(e,t){if(e==="input"||e==="change")return Ho(t)}function Wp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var nt=typeof Object.is=="function"?Object.is:Wp;function mr(e,t){if(nt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Bl.call(t,o)||!nt(e[o],t[o]))return!1}return!0}function pa(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ha(e,t){var n=pa(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=pa(n)}}function xc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wc(){for(var e=window,t=po();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=po(e.document)}return t}function ns(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 Hp(e){var t=wc(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&xc(n.ownerDocument.documentElement,n)){if(r!==null&&ns(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,l=Math.min(r.start,o);r=r.end===void 0?l:Math.min(r.end,o),!e.extend&&l>r&&(o=r,r=l,l=o),o=ha(n,l);var i=ha(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Vp=vt&&"documentMode"in document&&11>=document.documentMode,dn=null,li=null,tr=null,ii=!1;function ma(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ii||dn==null||dn!==po(r)||(r=dn,"selectionStart"in r&&ns(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),tr&&mr(tr,r)||(tr=r,r=wo(li,"onSelect"),0<r.length&&(t=new Ji("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=dn)))}function Br(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var fn={animationend:Br("Animation","AnimationEnd"),animationiteration:Br("Animation","AnimationIteration"),animationstart:Br("Animation","AnimationStart"),transitionend:Br("Transition","TransitionEnd")},gl={},kc={};vt&&(kc=document.createElement("div").style,"AnimationEvent"in window||(delete fn.animationend.animation,delete fn.animationiteration.animation,delete fn.animationstart.animation),"TransitionEvent"in window||delete fn.transitionend.transition);function Vo(e){if(gl[e])return gl[e];if(!fn[e])return e;var t=fn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in kc)return gl[e]=t[n];return e}var bc=Vo("animationend"),Sc=Vo("animationiteration"),Ec=Vo("animationstart"),Cc=Vo("transitionend"),Nc=new Map,ga="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 Bt(e,t){Nc.set(e,t),nn(t,[e])}for(var vl=0;vl<ga.length;vl++){var yl=ga[vl],Qp=yl.toLowerCase(),qp=yl[0].toUpperCase()+yl.slice(1);Bt(Qp,"on"+qp)}Bt(bc,"onAnimationEnd");Bt(Sc,"onAnimationIteration");Bt(Ec,"onAnimationStart");Bt("dblclick","onDoubleClick");Bt("focusin","onFocus");Bt("focusout","onBlur");Bt(Cc,"onTransitionEnd");Nn("onMouseEnter",["mouseout","mouseover"]);Nn("onMouseLeave",["mouseout","mouseover"]);Nn("onPointerEnter",["pointerout","pointerover"]);Nn("onPointerLeave",["pointerout","pointerover"]);nn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));nn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));nn("onBeforeInput",["compositionend","keypress","textInput","paste"]);nn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));nn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));nn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Gn="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(" "),Kp=new Set("cancel close invalid load scroll toggle".split(" ").concat(Gn));function va(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Qf(r,t,void 0,e),e.currentTarget=null}function jc(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var l=void 0;if(t)for(var i=r.length-1;0<=i;i--){var s=r[i],a=s.instance,u=s.currentTarget;if(s=s.listener,a!==l&&o.isPropagationStopped())break e;va(o,s,u),l=a}else for(i=0;i<r.length;i++){if(s=r[i],a=s.instance,u=s.currentTarget,s=s.listener,a!==l&&o.isPropagationStopped())break e;va(o,s,u),l=a}}}if(mo)throw e=ti,mo=!1,ti=null,e}function Y(e,t){var n=t[di];n===void 0&&(n=t[di]=new Set);var r=e+"__bubble";n.has(r)||(Lc(t,e,2,!1),n.add(r))}function xl(e,t,n){var r=0;t&&(r|=4),Lc(n,e,r,t)}var Fr="_reactListening"+Math.random().toString(36).slice(2);function gr(e){if(!e[Fr]){e[Fr]=!0,Mu.forEach(function(n){n!=="selectionchange"&&(Kp.has(n)||xl(n,!1,e),xl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Fr]||(t[Fr]=!0,xl("selectionchange",!1,t))}}function Lc(e,t,n,r){switch(dc(t)){case 1:var o=ap;break;case 4:o=up;break;default:o=Xi}n=o.bind(null,t,n,e),o=void 0,!ei||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function wl(e,t,n,r,o){var l=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var s=r.stateNode.containerInfo;if(s===o||s.nodeType===8&&s.parentNode===o)break;if(i===4)for(i=r.return;i!==null;){var a=i.tag;if((a===3||a===4)&&(a=i.stateNode.containerInfo,a===o||a.nodeType===8&&a.parentNode===o))return;i=i.return}for(;s!==null;){if(i=Vt(s),i===null)return;if(a=i.tag,a===5||a===6){r=l=i;continue e}s=s.parentNode}}r=r.return}Xu(function(){var u=l,p=qi(n),v=[];e:{var h=Nc.get(e);if(h!==void 0){var x=Ji,y=e;switch(e){case"keypress":if(to(n)===0)break e;case"keydown":case"keyup":x=Ep;break;case"focusin":y="focus",x=pl;break;case"focusout":y="blur",x=pl;break;case"beforeblur":case"afterblur":x=pl;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":x=la;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":x=fp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":x=jp;break;case bc:case Sc:case Ec:x=mp;break;case Cc:x=_p;break;case"scroll":x=cp;break;case"wheel":x=Rp;break;case"copy":case"cut":case"paste":x=vp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":x=sa}var k=(t&4)!==0,_=!k&&e==="scroll",f=k?h!==null?h+"Capture":null:h;k=[];for(var c=u,m;c!==null;){m=c;var g=m.stateNode;if(m.tag===5&&g!==null&&(m=g,f!==null&&(g=cr(c,f),g!=null&&k.push(vr(c,g,m)))),_)break;c=c.return}0<k.length&&(h=new x(h,y,null,n,p),v.push({event:h,listeners:k}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",x=e==="mouseout"||e==="pointerout",h&&n!==Zl&&(y=n.relatedTarget||n.fromElement)&&(Vt(y)||y[yt]))break e;if((x||h)&&(h=p.window===p?p:(h=p.ownerDocument)?h.defaultView||h.parentWindow:window,x?(y=n.relatedTarget||n.toElement,x=u,y=y?Vt(y):null,y!==null&&(_=rn(y),y!==_||y.tag!==5&&y.tag!==6)&&(y=null)):(x=null,y=u),x!==y)){if(k=la,g="onMouseLeave",f="onMouseEnter",c="mouse",(e==="pointerout"||e==="pointerover")&&(k=sa,g="onPointerLeave",f="onPointerEnter",c="pointer"),_=x==null?h:pn(x),m=y==null?h:pn(y),h=new k(g,c+"leave",x,n,p),h.target=_,h.relatedTarget=m,g=null,Vt(p)===u&&(k=new k(f,c+"enter",y,n,p),k.target=m,k.relatedTarget=_,g=k),_=g,x&&y)t:{for(k=x,f=y,c=0,m=k;m;m=ln(m))c++;for(m=0,g=f;g;g=ln(g))m++;for(;0<c-m;)k=ln(k),c--;for(;0<m-c;)f=ln(f),m--;for(;c--;){if(k===f||f!==null&&k===f.alternate)break t;k=ln(k),f=ln(f)}k=null}else k=null;x!==null&&ya(v,h,x,k,!1),y!==null&&_!==null&&ya(v,_,y,k,!0)}}e:{if(h=u?pn(u):window,x=h.nodeName&&h.nodeName.toLowerCase(),x==="select"||x==="input"&&h.type==="file")var w=Dp;else if(ca(h))if(vc)w=Up;else{w=Bp;var S=Op}else(x=h.nodeName)&&x.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(w=Fp);if(w&&(w=w(e,u))){gc(v,w,n,p);break e}S&&S(e,h,u),e==="focusout"&&(S=h._wrapperState)&&S.controlled&&h.type==="number"&&ql(h,"number",h.value)}switch(S=u?pn(u):window,e){case"focusin":(ca(S)||S.contentEditable==="true")&&(dn=S,li=u,tr=null);break;case"focusout":tr=li=dn=null;break;case"mousedown":ii=!0;break;case"contextmenu":case"mouseup":case"dragend":ii=!1,ma(v,n,p);break;case"selectionchange":if(Vp)break;case"keydown":case"keyup":ma(v,n,p)}var b;if(ts)e:{switch(e){case"compositionstart":var N="onCompositionStart";break e;case"compositionend":N="onCompositionEnd";break e;case"compositionupdate":N="onCompositionUpdate";break e}N=void 0}else cn?hc(e,n)&&(N="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(N="onCompositionStart");N&&(pc&&n.locale!=="ko"&&(cn||N!=="onCompositionStart"?N==="onCompositionEnd"&&cn&&(b=fc()):(Lt=p,Zi="value"in Lt?Lt.value:Lt.textContent,cn=!0)),S=wo(u,N),0<S.length&&(N=new ia(N,e,null,n,p),v.push({event:N,listeners:S}),b?N.data=b:(b=mc(n),b!==null&&(N.data=b)))),(b=zp?Ap(e,n):Mp(e,n))&&(u=wo(u,"onBeforeInput"),0<u.length&&(p=new ia("onBeforeInput","beforeinput",null,n,p),v.push({event:p,listeners:u}),p.data=b))}jc(v,t)})}function vr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function wo(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,l=o.stateNode;o.tag===5&&l!==null&&(o=l,l=cr(e,n),l!=null&&r.unshift(vr(e,l,o)),l=cr(e,t),l!=null&&r.push(vr(e,l,o))),e=e.return}return r}function ln(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ya(e,t,n,r,o){for(var l=t._reactName,i=[];n!==null&&n!==r;){var s=n,a=s.alternate,u=s.stateNode;if(a!==null&&a===r)break;s.tag===5&&u!==null&&(s=u,o?(a=cr(n,l),a!=null&&i.unshift(vr(n,a,s))):o||(a=cr(n,l),a!=null&&i.push(vr(n,a,s)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var Yp=/\r\n?/g,Gp=/\u0000|\uFFFD/g;function xa(e){return(typeof e=="string"?e:""+e).replace(Yp,`
|
|
38
|
+
`).replace(Gp,"")}function Ur(e,t,n){if(t=xa(t),xa(e)!==t&&n)throw Error(E(425))}function ko(){}var si=null,ai=null;function ui(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 ci=typeof setTimeout=="function"?setTimeout:void 0,Xp=typeof clearTimeout=="function"?clearTimeout:void 0,wa=typeof Promise=="function"?Promise:void 0,Zp=typeof queueMicrotask=="function"?queueMicrotask:typeof wa<"u"?function(e){return wa.resolve(null).then(e).catch(Jp)}:ci;function Jp(e){setTimeout(function(){throw e})}function kl(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),pr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);pr(t)}function zt(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 ka(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Mn=Math.random().toString(36).slice(2),st="__reactFiber$"+Mn,yr="__reactProps$"+Mn,yt="__reactContainer$"+Mn,di="__reactEvents$"+Mn,eh="__reactListeners$"+Mn,th="__reactHandles$"+Mn;function Vt(e){var t=e[st];if(t)return t;for(var n=e.parentNode;n;){if(t=n[yt]||n[st]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ka(e);e!==null;){if(n=e[st])return n;e=ka(e)}return t}e=n,n=e.parentNode}return null}function _r(e){return e=e[st]||e[yt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function pn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(E(33))}function Qo(e){return e[yr]||null}var fi=[],hn=-1;function Ft(e){return{current:e}}function G(e){0>hn||(e.current=fi[hn],fi[hn]=null,hn--)}function q(e,t){hn++,fi[hn]=e.current,e.current=t}var Ot={},xe=Ft(Ot),Re=Ft(!1),Gt=Ot;function jn(e,t){var n=e.type.contextTypes;if(!n)return Ot;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},l;for(l in n)o[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Pe(e){return e=e.childContextTypes,e!=null}function bo(){G(Re),G(xe)}function ba(e,t,n){if(xe.current!==Ot)throw Error(E(168));q(xe,t),q(Re,n)}function _c(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(E(108,Of(e)||"Unknown",o));return te({},n,r)}function So(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ot,Gt=xe.current,q(xe,e),q(Re,Re.current),!0}function Sa(e,t,n){var r=e.stateNode;if(!r)throw Error(E(169));n?(e=_c(e,t,Gt),r.__reactInternalMemoizedMergedChildContext=e,G(Re),G(xe),q(xe,e)):G(Re),q(Re,n)}var dt=null,qo=!1,bl=!1;function Tc(e){dt===null?dt=[e]:dt.push(e)}function nh(e){qo=!0,Tc(e)}function Ut(){if(!bl&&dt!==null){bl=!0;var e=0,t=V;try{var n=dt;for(V=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}dt=null,qo=!1}catch(o){throw dt!==null&&(dt=dt.slice(e+1)),tc(Ki,Ut),o}finally{V=t,bl=!1}}return null}var mn=[],gn=0,Eo=null,Co=0,Ue=[],We=0,Xt=null,ft=1,pt="";function Wt(e,t){mn[gn++]=Co,mn[gn++]=Eo,Eo=e,Co=t}function Rc(e,t,n){Ue[We++]=ft,Ue[We++]=pt,Ue[We++]=Xt,Xt=e;var r=ft;e=pt;var o=32-et(r)-1;r&=~(1<<o),n+=1;var l=32-et(t)+o;if(30<l){var i=o-o%5;l=(r&(1<<i)-1).toString(32),r>>=i,o-=i,ft=1<<32-et(t)+o|n<<o|r,pt=l+e}else ft=1<<l|n<<o|r,pt=e}function rs(e){e.return!==null&&(Wt(e,1),Rc(e,1,0))}function os(e){for(;e===Eo;)Eo=mn[--gn],mn[gn]=null,Co=mn[--gn],mn[gn]=null;for(;e===Xt;)Xt=Ue[--We],Ue[We]=null,pt=Ue[--We],Ue[We]=null,ft=Ue[--We],Ue[We]=null}var $e=null,Me=null,X=!1,Je=null;function Pc(e,t){var n=He(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Ea(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,$e=e,Me=zt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,$e=e,Me=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Xt!==null?{id:ft,overflow:pt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=He(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,$e=e,Me=null,!0):!1;default:return!1}}function pi(e){return(e.mode&1)!==0&&(e.flags&128)===0}function hi(e){if(X){var t=Me;if(t){var n=t;if(!Ea(e,t)){if(pi(e))throw Error(E(418));t=zt(n.nextSibling);var r=$e;t&&Ea(e,t)?Pc(r,n):(e.flags=e.flags&-4097|2,X=!1,$e=e)}}else{if(pi(e))throw Error(E(418));e.flags=e.flags&-4097|2,X=!1,$e=e}}}function Ca(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;$e=e}function Wr(e){if(e!==$e)return!1;if(!X)return Ca(e),X=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ui(e.type,e.memoizedProps)),t&&(t=Me)){if(pi(e))throw zc(),Error(E(418));for(;t;)Pc(e,t),t=zt(t.nextSibling)}if(Ca(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(E(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Me=zt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Me=null}}else Me=$e?zt(e.stateNode.nextSibling):null;return!0}function zc(){for(var e=Me;e;)e=zt(e.nextSibling)}function Ln(){Me=$e=null,X=!1}function ls(e){Je===null?Je=[e]:Je.push(e)}var rh=kt.ReactCurrentBatchConfig;function Fn(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(E(309));var r=n.stateNode}if(!r)throw Error(E(147,e));var o=r,l=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===l?t.ref:(t=function(i){var s=o.refs;i===null?delete s[l]:s[l]=i},t._stringRef=l,t)}if(typeof e!="string")throw Error(E(284));if(!n._owner)throw Error(E(290,e))}return e}function Hr(e,t){throw e=Object.prototype.toString.call(t),Error(E(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Na(e){var t=e._init;return t(e._payload)}function Ac(e){function t(f,c){if(e){var m=f.deletions;m===null?(f.deletions=[c],f.flags|=16):m.push(c)}}function n(f,c){if(!e)return null;for(;c!==null;)t(f,c),c=c.sibling;return null}function r(f,c){for(f=new Map;c!==null;)c.key!==null?f.set(c.key,c):f.set(c.index,c),c=c.sibling;return f}function o(f,c){return f=It(f,c),f.index=0,f.sibling=null,f}function l(f,c,m){return f.index=m,e?(m=f.alternate,m!==null?(m=m.index,m<c?(f.flags|=2,c):m):(f.flags|=2,c)):(f.flags|=1048576,c)}function i(f){return e&&f.alternate===null&&(f.flags|=2),f}function s(f,c,m,g){return c===null||c.tag!==6?(c=_l(m,f.mode,g),c.return=f,c):(c=o(c,m),c.return=f,c)}function a(f,c,m,g){var w=m.type;return w===un?p(f,c,m.props.children,g,m.key):c!==null&&(c.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Et&&Na(w)===c.type)?(g=o(c,m.props),g.ref=Fn(f,c,m),g.return=f,g):(g=ao(m.type,m.key,m.props,null,f.mode,g),g.ref=Fn(f,c,m),g.return=f,g)}function u(f,c,m,g){return c===null||c.tag!==4||c.stateNode.containerInfo!==m.containerInfo||c.stateNode.implementation!==m.implementation?(c=Tl(m,f.mode,g),c.return=f,c):(c=o(c,m.children||[]),c.return=f,c)}function p(f,c,m,g,w){return c===null||c.tag!==7?(c=Yt(m,f.mode,g,w),c.return=f,c):(c=o(c,m),c.return=f,c)}function v(f,c,m){if(typeof c=="string"&&c!==""||typeof c=="number")return c=_l(""+c,f.mode,m),c.return=f,c;if(typeof c=="object"&&c!==null){switch(c.$$typeof){case zr:return m=ao(c.type,c.key,c.props,null,f.mode,m),m.ref=Fn(f,null,c),m.return=f,m;case an:return c=Tl(c,f.mode,m),c.return=f,c;case Et:var g=c._init;return v(f,g(c._payload),m)}if(Kn(c)||$n(c))return c=Yt(c,f.mode,m,null),c.return=f,c;Hr(f,c)}return null}function h(f,c,m,g){var w=c!==null?c.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return w!==null?null:s(f,c,""+m,g);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case zr:return m.key===w?a(f,c,m,g):null;case an:return m.key===w?u(f,c,m,g):null;case Et:return w=m._init,h(f,c,w(m._payload),g)}if(Kn(m)||$n(m))return w!==null?null:p(f,c,m,g,null);Hr(f,m)}return null}function x(f,c,m,g,w){if(typeof g=="string"&&g!==""||typeof g=="number")return f=f.get(m)||null,s(c,f,""+g,w);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case zr:return f=f.get(g.key===null?m:g.key)||null,a(c,f,g,w);case an:return f=f.get(g.key===null?m:g.key)||null,u(c,f,g,w);case Et:var S=g._init;return x(f,c,m,S(g._payload),w)}if(Kn(g)||$n(g))return f=f.get(m)||null,p(c,f,g,w,null);Hr(c,g)}return null}function y(f,c,m,g){for(var w=null,S=null,b=c,N=c=0,L=null;b!==null&&N<m.length;N++){b.index>N?(L=b,b=null):L=b.sibling;var R=h(f,b,m[N],g);if(R===null){b===null&&(b=L);break}e&&b&&R.alternate===null&&t(f,b),c=l(R,c,N),S===null?w=R:S.sibling=R,S=R,b=L}if(N===m.length)return n(f,b),X&&Wt(f,N),w;if(b===null){for(;N<m.length;N++)b=v(f,m[N],g),b!==null&&(c=l(b,c,N),S===null?w=b:S.sibling=b,S=b);return X&&Wt(f,N),w}for(b=r(f,b);N<m.length;N++)L=x(b,f,N,m[N],g),L!==null&&(e&&L.alternate!==null&&b.delete(L.key===null?N:L.key),c=l(L,c,N),S===null?w=L:S.sibling=L,S=L);return e&&b.forEach(function(K){return t(f,K)}),X&&Wt(f,N),w}function k(f,c,m,g){var w=$n(m);if(typeof w!="function")throw Error(E(150));if(m=w.call(m),m==null)throw Error(E(151));for(var S=w=null,b=c,N=c=0,L=null,R=m.next();b!==null&&!R.done;N++,R=m.next()){b.index>N?(L=b,b=null):L=b.sibling;var K=h(f,b,R.value,g);if(K===null){b===null&&(b=L);break}e&&b&&K.alternate===null&&t(f,b),c=l(K,c,N),S===null?w=K:S.sibling=K,S=K,b=L}if(R.done)return n(f,b),X&&Wt(f,N),w;if(b===null){for(;!R.done;N++,R=m.next())R=v(f,R.value,g),R!==null&&(c=l(R,c,N),S===null?w=R:S.sibling=R,S=R);return X&&Wt(f,N),w}for(b=r(f,b);!R.done;N++,R=m.next())R=x(b,f,N,R.value,g),R!==null&&(e&&R.alternate!==null&&b.delete(R.key===null?N:R.key),c=l(R,c,N),S===null?w=R:S.sibling=R,S=R);return e&&b.forEach(function(me){return t(f,me)}),X&&Wt(f,N),w}function _(f,c,m,g){if(typeof m=="object"&&m!==null&&m.type===un&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case zr:e:{for(var w=m.key,S=c;S!==null;){if(S.key===w){if(w=m.type,w===un){if(S.tag===7){n(f,S.sibling),c=o(S,m.props.children),c.return=f,f=c;break e}}else if(S.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Et&&Na(w)===S.type){n(f,S.sibling),c=o(S,m.props),c.ref=Fn(f,S,m),c.return=f,f=c;break e}n(f,S);break}else t(f,S);S=S.sibling}m.type===un?(c=Yt(m.props.children,f.mode,g,m.key),c.return=f,f=c):(g=ao(m.type,m.key,m.props,null,f.mode,g),g.ref=Fn(f,c,m),g.return=f,f=g)}return i(f);case an:e:{for(S=m.key;c!==null;){if(c.key===S)if(c.tag===4&&c.stateNode.containerInfo===m.containerInfo&&c.stateNode.implementation===m.implementation){n(f,c.sibling),c=o(c,m.children||[]),c.return=f,f=c;break e}else{n(f,c);break}else t(f,c);c=c.sibling}c=Tl(m,f.mode,g),c.return=f,f=c}return i(f);case Et:return S=m._init,_(f,c,S(m._payload),g)}if(Kn(m))return y(f,c,m,g);if($n(m))return k(f,c,m,g);Hr(f,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,c!==null&&c.tag===6?(n(f,c.sibling),c=o(c,m),c.return=f,f=c):(n(f,c),c=_l(m,f.mode,g),c.return=f,f=c),i(f)):n(f,c)}return _}var _n=Ac(!0),Mc=Ac(!1),No=Ft(null),jo=null,vn=null,is=null;function ss(){is=vn=jo=null}function as(e){var t=No.current;G(No),e._currentValue=t}function mi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function En(e,t){jo=e,is=vn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Te=!0),e.firstContext=null)}function Qe(e){var t=e._currentValue;if(is!==e)if(e={context:e,memoizedValue:t,next:null},vn===null){if(jo===null)throw Error(E(308));vn=e,jo.dependencies={lanes:0,firstContext:e}}else vn=vn.next=e;return t}var Qt=null;function us(e){Qt===null?Qt=[e]:Qt.push(e)}function $c(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,us(t)):(n.next=o.next,o.next=n),t.interleaved=n,xt(e,r)}function xt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Ct=!1;function cs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ic(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 gt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function At(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,F&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,xt(e,n)}return o=r.interleaved,o===null?(t.next=t,us(r)):(t.next=o.next,o.next=t),r.interleaved=t,xt(e,n)}function no(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Yi(e,n)}}function ja(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?o=l=i:l=l.next=i,n=n.next}while(n!==null);l===null?o=l=t:l=l.next=t}else o=l=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:l,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Lo(e,t,n,r){var o=e.updateQueue;Ct=!1;var l=o.firstBaseUpdate,i=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var a=s,u=a.next;a.next=null,i===null?l=u:i.next=u,i=a;var p=e.alternate;p!==null&&(p=p.updateQueue,s=p.lastBaseUpdate,s!==i&&(s===null?p.firstBaseUpdate=u:s.next=u,p.lastBaseUpdate=a))}if(l!==null){var v=o.baseState;i=0,p=u=a=null,s=l;do{var h=s.lane,x=s.eventTime;if((r&h)===h){p!==null&&(p=p.next={eventTime:x,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var y=e,k=s;switch(h=t,x=n,k.tag){case 1:if(y=k.payload,typeof y=="function"){v=y.call(x,v,h);break e}v=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=k.payload,h=typeof y=="function"?y.call(x,v,h):y,h==null)break e;v=te({},v,h);break e;case 2:Ct=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,h=o.effects,h===null?o.effects=[s]:h.push(s))}else x={eventTime:x,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},p===null?(u=p=x,a=v):p=p.next=x,i|=h;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;h=s,s=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(!0);if(p===null&&(a=v),o.baseState=a,o.firstBaseUpdate=u,o.lastBaseUpdate=p,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else l===null&&(o.shared.lanes=0);Jt|=i,e.lanes=i,e.memoizedState=v}}function La(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(E(191,o));o.call(r)}}}var Tr={},ut=Ft(Tr),xr=Ft(Tr),wr=Ft(Tr);function qt(e){if(e===Tr)throw Error(E(174));return e}function ds(e,t){switch(q(wr,t),q(xr,e),q(ut,Tr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Yl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Yl(t,e)}G(ut),q(ut,t)}function Tn(){G(ut),G(xr),G(wr)}function Dc(e){qt(wr.current);var t=qt(ut.current),n=Yl(t,e.type);t!==n&&(q(xr,e),q(ut,n))}function fs(e){xr.current===e&&(G(ut),G(xr))}var J=Ft(0);function _o(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.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 Sl=[];function ps(){for(var e=0;e<Sl.length;e++)Sl[e]._workInProgressVersionPrimary=null;Sl.length=0}var ro=kt.ReactCurrentDispatcher,El=kt.ReactCurrentBatchConfig,Zt=0,ee=null,ie=null,ue=null,To=!1,nr=!1,kr=0,oh=0;function ge(){throw Error(E(321))}function hs(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!nt(e[n],t[n]))return!1;return!0}function ms(e,t,n,r,o,l){if(Zt=l,ee=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ro.current=e===null||e.memoizedState===null?ah:uh,e=n(r,o),nr){l=0;do{if(nr=!1,kr=0,25<=l)throw Error(E(301));l+=1,ue=ie=null,t.updateQueue=null,ro.current=ch,e=n(r,o)}while(nr)}if(ro.current=Ro,t=ie!==null&&ie.next!==null,Zt=0,ue=ie=ee=null,To=!1,t)throw Error(E(300));return e}function gs(){var e=kr!==0;return kr=0,e}function it(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ue===null?ee.memoizedState=ue=e:ue=ue.next=e,ue}function qe(){if(ie===null){var e=ee.alternate;e=e!==null?e.memoizedState:null}else e=ie.next;var t=ue===null?ee.memoizedState:ue.next;if(t!==null)ue=t,ie=e;else{if(e===null)throw Error(E(310));ie=e,e={memoizedState:ie.memoizedState,baseState:ie.baseState,baseQueue:ie.baseQueue,queue:ie.queue,next:null},ue===null?ee.memoizedState=ue=e:ue=ue.next=e}return ue}function br(e,t){return typeof t=="function"?t(e):t}function Cl(e){var t=qe(),n=t.queue;if(n===null)throw Error(E(311));n.lastRenderedReducer=e;var r=ie,o=r.baseQueue,l=n.pending;if(l!==null){if(o!==null){var i=o.next;o.next=l.next,l.next=i}r.baseQueue=o=l,n.pending=null}if(o!==null){l=o.next,r=r.baseState;var s=i=null,a=null,u=l;do{var p=u.lane;if((Zt&p)===p)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var v={lane:p,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(s=a=v,i=r):a=a.next=v,ee.lanes|=p,Jt|=p}u=u.next}while(u!==null&&u!==l);a===null?i=r:a.next=s,nt(r,t.memoizedState)||(Te=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do l=o.lane,ee.lanes|=l,Jt|=l,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Nl(e){var t=qe(),n=t.queue;if(n===null)throw Error(E(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,l=t.memoizedState;if(o!==null){n.pending=null;var i=o=o.next;do l=e(l,i.action),i=i.next;while(i!==o);nt(l,t.memoizedState)||(Te=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function Oc(){}function Bc(e,t){var n=ee,r=qe(),o=t(),l=!nt(r.memoizedState,o);if(l&&(r.memoizedState=o,Te=!0),r=r.queue,vs(Wc.bind(null,n,r,e),[e]),r.getSnapshot!==t||l||ue!==null&&ue.memoizedState.tag&1){if(n.flags|=2048,Sr(9,Uc.bind(null,n,r,o,t),void 0,null),ce===null)throw Error(E(349));Zt&30||Fc(n,t,o)}return o}function Fc(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ee.updateQueue,t===null?(t={lastEffect:null,stores:null},ee.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Uc(e,t,n,r){t.value=n,t.getSnapshot=r,Hc(t)&&Vc(e)}function Wc(e,t,n){return n(function(){Hc(t)&&Vc(e)})}function Hc(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!nt(e,n)}catch{return!0}}function Vc(e){var t=xt(e,1);t!==null&&tt(t,e,1,-1)}function _a(e){var t=it();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:br,lastRenderedState:e},t.queue=e,e=e.dispatch=sh.bind(null,ee,e),[t.memoizedState,e]}function Sr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ee.updateQueue,t===null?(t={lastEffect:null,stores:null},ee.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Qc(){return qe().memoizedState}function oo(e,t,n,r){var o=it();ee.flags|=e,o.memoizedState=Sr(1|t,n,void 0,r===void 0?null:r)}function Ko(e,t,n,r){var o=qe();r=r===void 0?null:r;var l=void 0;if(ie!==null){var i=ie.memoizedState;if(l=i.destroy,r!==null&&hs(r,i.deps)){o.memoizedState=Sr(t,n,l,r);return}}ee.flags|=e,o.memoizedState=Sr(1|t,n,l,r)}function Ta(e,t){return oo(8390656,8,e,t)}function vs(e,t){return Ko(2048,8,e,t)}function qc(e,t){return Ko(4,2,e,t)}function Kc(e,t){return Ko(4,4,e,t)}function Yc(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 Gc(e,t,n){return n=n!=null?n.concat([e]):null,Ko(4,4,Yc.bind(null,t,e),n)}function ys(){}function Xc(e,t){var n=qe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&hs(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Zc(e,t){var n=qe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&hs(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Jc(e,t,n){return Zt&21?(nt(n,t)||(n=oc(),ee.lanes|=n,Jt|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Te=!0),e.memoizedState=n)}function lh(e,t){var n=V;V=n!==0&&4>n?n:4,e(!0);var r=El.transition;El.transition={};try{e(!1),t()}finally{V=n,El.transition=r}}function ed(){return qe().memoizedState}function ih(e,t,n){var r=$t(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},td(e))nd(t,n);else if(n=$c(e,t,n,r),n!==null){var o=be();tt(n,e,r,o),rd(n,t,r)}}function sh(e,t,n){var r=$t(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(td(e))nd(t,o);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var i=t.lastRenderedState,s=l(i,n);if(o.hasEagerState=!0,o.eagerState=s,nt(s,i)){var a=t.interleaved;a===null?(o.next=o,us(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=$c(e,t,o,r),n!==null&&(o=be(),tt(n,e,r,o),rd(n,t,r))}}function td(e){var t=e.alternate;return e===ee||t!==null&&t===ee}function nd(e,t){nr=To=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function rd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Yi(e,n)}}var Ro={readContext:Qe,useCallback:ge,useContext:ge,useEffect:ge,useImperativeHandle:ge,useInsertionEffect:ge,useLayoutEffect:ge,useMemo:ge,useReducer:ge,useRef:ge,useState:ge,useDebugValue:ge,useDeferredValue:ge,useTransition:ge,useMutableSource:ge,useSyncExternalStore:ge,useId:ge,unstable_isNewReconciler:!1},ah={readContext:Qe,useCallback:function(e,t){return it().memoizedState=[e,t===void 0?null:t],e},useContext:Qe,useEffect:Ta,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,oo(4194308,4,Yc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return oo(4194308,4,e,t)},useInsertionEffect:function(e,t){return oo(4,2,e,t)},useMemo:function(e,t){var n=it();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=it();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ih.bind(null,ee,e),[r.memoizedState,e]},useRef:function(e){var t=it();return e={current:e},t.memoizedState=e},useState:_a,useDebugValue:ys,useDeferredValue:function(e){return it().memoizedState=e},useTransition:function(){var e=_a(!1),t=e[0];return e=lh.bind(null,e[1]),it().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ee,o=it();if(X){if(n===void 0)throw Error(E(407));n=n()}else{if(n=t(),ce===null)throw Error(E(349));Zt&30||Fc(r,t,n)}o.memoizedState=n;var l={value:n,getSnapshot:t};return o.queue=l,Ta(Wc.bind(null,r,l,e),[e]),r.flags|=2048,Sr(9,Uc.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=it(),t=ce.identifierPrefix;if(X){var n=pt,r=ft;n=(r&~(1<<32-et(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=kr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=oh++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},uh={readContext:Qe,useCallback:Xc,useContext:Qe,useEffect:vs,useImperativeHandle:Gc,useInsertionEffect:qc,useLayoutEffect:Kc,useMemo:Zc,useReducer:Cl,useRef:Qc,useState:function(){return Cl(br)},useDebugValue:ys,useDeferredValue:function(e){var t=qe();return Jc(t,ie.memoizedState,e)},useTransition:function(){var e=Cl(br)[0],t=qe().memoizedState;return[e,t]},useMutableSource:Oc,useSyncExternalStore:Bc,useId:ed,unstable_isNewReconciler:!1},ch={readContext:Qe,useCallback:Xc,useContext:Qe,useEffect:vs,useImperativeHandle:Gc,useInsertionEffect:qc,useLayoutEffect:Kc,useMemo:Zc,useReducer:Nl,useRef:Qc,useState:function(){return Nl(br)},useDebugValue:ys,useDeferredValue:function(e){var t=qe();return ie===null?t.memoizedState=e:Jc(t,ie.memoizedState,e)},useTransition:function(){var e=Nl(br)[0],t=qe().memoizedState;return[e,t]},useMutableSource:Oc,useSyncExternalStore:Bc,useId:ed,unstable_isNewReconciler:!1};function Xe(e,t){if(e&&e.defaultProps){t=te({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function gi(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:te({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Yo={isMounted:function(e){return(e=e._reactInternals)?rn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=be(),o=$t(e),l=gt(r,o);l.payload=t,n!=null&&(l.callback=n),t=At(e,l,o),t!==null&&(tt(t,e,o,r),no(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=be(),o=$t(e),l=gt(r,o);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=At(e,l,o),t!==null&&(tt(t,e,o,r),no(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=be(),r=$t(e),o=gt(n,r);o.tag=2,t!=null&&(o.callback=t),t=At(e,o,r),t!==null&&(tt(t,e,r,n),no(t,e,r))}};function Ra(e,t,n,r,o,l,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,i):t.prototype&&t.prototype.isPureReactComponent?!mr(n,r)||!mr(o,l):!0}function od(e,t,n){var r=!1,o=Ot,l=t.contextType;return typeof l=="object"&&l!==null?l=Qe(l):(o=Pe(t)?Gt:xe.current,r=t.contextTypes,l=(r=r!=null)?jn(e,o):Ot),t=new t(n,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Yo,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=l),t}function Pa(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Yo.enqueueReplaceState(t,t.state,null)}function vi(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},cs(e);var l=t.contextType;typeof l=="object"&&l!==null?o.context=Qe(l):(l=Pe(t)?Gt:xe.current,o.context=jn(e,l)),o.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(gi(e,t,l,n),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&&Yo.enqueueReplaceState(o,o.state,null),Lo(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Rn(e,t){try{var n="",r=t;do n+=Df(r),r=r.return;while(r);var o=n}catch(l){o=`
|
|
39
|
+
Error generating stack: `+l.message+`
|
|
40
|
+
`+l.stack}return{value:e,source:t,stack:o,digest:null}}function jl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function yi(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var dh=typeof WeakMap=="function"?WeakMap:Map;function ld(e,t,n){n=gt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){zo||(zo=!0,Li=r),yi(e,t)},n}function id(e,t,n){n=gt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){yi(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){yi(e,t),typeof r!="function"&&(Mt===null?Mt=new Set([this]):Mt.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function za(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new dh;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Ch.bind(null,e,t,n),t.then(e,e))}function Aa(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 Ma(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=gt(-1,1),t.tag=2,At(n,t,1))),n.lanes|=1),e)}var fh=kt.ReactCurrentOwner,Te=!1;function we(e,t,n,r){t.child=e===null?Mc(t,null,n,r):_n(t,e.child,n,r)}function $a(e,t,n,r,o){n=n.render;var l=t.ref;return En(t,o),r=ms(e,t,n,r,l,o),n=gs(),e!==null&&!Te?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,wt(e,t,o)):(X&&n&&rs(t),t.flags|=1,we(e,t,r,o),t.child)}function Ia(e,t,n,r,o){if(e===null){var l=n.type;return typeof l=="function"&&!Ns(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,sd(e,t,l,r,o)):(e=ao(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!(e.lanes&o)){var i=l.memoizedProps;if(n=n.compare,n=n!==null?n:mr,n(i,r)&&e.ref===t.ref)return wt(e,t,o)}return t.flags|=1,e=It(l,r),e.ref=t.ref,e.return=t,t.child=e}function sd(e,t,n,r,o){if(e!==null){var l=e.memoizedProps;if(mr(l,r)&&e.ref===t.ref)if(Te=!1,t.pendingProps=r=l,(e.lanes&o)!==0)e.flags&131072&&(Te=!0);else return t.lanes=e.lanes,wt(e,t,o)}return xi(e,t,n,r,o)}function ad(e,t,n){var r=t.pendingProps,o=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},q(xn,Ae),Ae|=n;else{if(!(n&1073741824))return e=l!==null?l.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,q(xn,Ae),Ae|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,q(xn,Ae),Ae|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,q(xn,Ae),Ae|=r;return we(e,t,o,n),t.child}function ud(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function xi(e,t,n,r,o){var l=Pe(n)?Gt:xe.current;return l=jn(t,l),En(t,o),n=ms(e,t,n,r,l,o),r=gs(),e!==null&&!Te?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,wt(e,t,o)):(X&&r&&rs(t),t.flags|=1,we(e,t,n,o),t.child)}function Da(e,t,n,r,o){if(Pe(n)){var l=!0;So(t)}else l=!1;if(En(t,o),t.stateNode===null)lo(e,t),od(t,n,r),vi(t,n,r,o),r=!0;else if(e===null){var i=t.stateNode,s=t.memoizedProps;i.props=s;var a=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=Qe(u):(u=Pe(n)?Gt:xe.current,u=jn(t,u));var p=n.getDerivedStateFromProps,v=typeof p=="function"||typeof i.getSnapshotBeforeUpdate=="function";v||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==r||a!==u)&&Pa(t,i,r,u),Ct=!1;var h=t.memoizedState;i.state=h,Lo(t,r,i,o),a=t.memoizedState,s!==r||h!==a||Re.current||Ct?(typeof p=="function"&&(gi(t,n,p,r),a=t.memoizedState),(s=Ct||Ra(t,n,s,r,h,a,u))?(v||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),i.props=r,i.state=a,i.context=u,r=s):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Ic(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Xe(t.type,s),i.props=u,v=t.pendingProps,h=i.context,a=n.contextType,typeof a=="object"&&a!==null?a=Qe(a):(a=Pe(n)?Gt:xe.current,a=jn(t,a));var x=n.getDerivedStateFromProps;(p=typeof x=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==v||h!==a)&&Pa(t,i,r,a),Ct=!1,h=t.memoizedState,i.state=h,Lo(t,r,i,o);var y=t.memoizedState;s!==v||h!==y||Re.current||Ct?(typeof x=="function"&&(gi(t,n,x,r),y=t.memoizedState),(u=Ct||Ra(t,n,u,r,h,y,a)||!1)?(p||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,y,a),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,y,a)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),i.props=r,i.state=y,i.context=a,r=u):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return wi(e,t,n,r,l,o)}function wi(e,t,n,r,o,l){ud(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return o&&Sa(t,n,!1),wt(e,t,l);r=t.stateNode,fh.current=t;var s=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=_n(t,e.child,null,l),t.child=_n(t,null,s,l)):we(e,t,s,l),t.memoizedState=r.state,o&&Sa(t,n,!0),t.child}function cd(e){var t=e.stateNode;t.pendingContext?ba(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ba(e,t.context,!1),ds(e,t.containerInfo)}function Oa(e,t,n,r,o){return Ln(),ls(o),t.flags|=256,we(e,t,n,r),t.child}var ki={dehydrated:null,treeContext:null,retryLane:0};function bi(e){return{baseLanes:e,cachePool:null,transitions:null}}function dd(e,t,n){var r=t.pendingProps,o=J.current,l=!1,i=(t.flags&128)!==0,s;if((s=i)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(l=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),q(J,o&1),e===null)return hi(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):(i=r.children,e=r.fallback,l?(r=t.mode,l=t.child,i={mode:"hidden",children:i},!(r&1)&&l!==null?(l.childLanes=0,l.pendingProps=i):l=Zo(i,r,0,null),e=Yt(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=bi(n),t.memoizedState=ki,e):xs(t,i));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return ph(e,t,i,r,s,o,n);if(l){l=r.fallback,i=t.mode,o=e.child,s=o.sibling;var a={mode:"hidden",children:r.children};return!(i&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=It(o,a),r.subtreeFlags=o.subtreeFlags&14680064),s!==null?l=It(s,l):(l=Yt(l,i,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,i=e.child.memoizedState,i=i===null?bi(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},l.memoizedState=i,l.childLanes=e.childLanes&~n,t.memoizedState=ki,r}return l=e.child,e=l.sibling,r=It(l,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function xs(e,t){return t=Zo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Vr(e,t,n,r){return r!==null&&ls(r),_n(t,e.child,null,n),e=xs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ph(e,t,n,r,o,l,i){if(n)return t.flags&256?(t.flags&=-257,r=jl(Error(E(422))),Vr(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,o=t.mode,r=Zo({mode:"visible",children:r.children},o,0,null),l=Yt(l,o,i,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&_n(t,e.child,null,i),t.child.memoizedState=bi(i),t.memoizedState=ki,l);if(!(t.mode&1))return Vr(e,t,i,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var s=r.dgst;return r=s,l=Error(E(419)),r=jl(l,r,void 0),Vr(e,t,i,r)}if(s=(i&e.childLanes)!==0,Te||s){if(r=ce,r!==null){switch(i&-i){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&(r.suspendedLanes|i)?0:o,o!==0&&o!==l.retryLane&&(l.retryLane=o,xt(e,o),tt(r,e,o,-1))}return Cs(),r=jl(Error(E(421))),Vr(e,t,i,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Nh.bind(null,e),o._reactRetry=t,null):(e=l.treeContext,Me=zt(o.nextSibling),$e=t,X=!0,Je=null,e!==null&&(Ue[We++]=ft,Ue[We++]=pt,Ue[We++]=Xt,ft=e.id,pt=e.overflow,Xt=t),t=xs(t,r.children),t.flags|=4096,t)}function Ba(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),mi(e.return,t,n)}function Ll(e,t,n,r,o){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=o)}function fd(e,t,n){var r=t.pendingProps,o=r.revealOrder,l=r.tail;if(we(e,t,r.children,n),r=J.current,r&2)r=r&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&&Ba(e,n,t);else if(e.tag===19)Ba(e,n,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}r&=1}if(q(J,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&_o(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ll(t,!1,o,n,l);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&_o(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ll(t,!0,n,null,l);break;case"together":Ll(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function lo(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function wt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Jt|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(E(153));if(t.child!==null){for(e=t.child,n=It(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=It(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function hh(e,t,n){switch(t.tag){case 3:cd(t),Ln();break;case 5:Dc(t);break;case 1:Pe(t.type)&&So(t);break;case 4:ds(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;q(No,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(q(J,J.current&1),t.flags|=128,null):n&t.child.childLanes?dd(e,t,n):(q(J,J.current&1),e=wt(e,t,n),e!==null?e.sibling:null);q(J,J.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return fd(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),q(J,J.current),r)break;return null;case 22:case 23:return t.lanes=0,ad(e,t,n)}return wt(e,t,n)}var pd,Si,hd,md;pd=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Si=function(){};hd=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,qt(ut.current);var l=null;switch(n){case"input":o=Vl(e,o),r=Vl(e,r),l=[];break;case"select":o=te({},o,{value:void 0}),r=te({},r,{value:void 0}),l=[];break;case"textarea":o=Kl(e,o),r=Kl(e,r),l=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ko)}Gl(n,r);var i;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var s=o[u];for(i in s)s.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(ar.hasOwnProperty(u)?l||(l=[]):(l=l||[]).push(u,null));for(u in r){var a=r[u];if(s=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&a!==s&&(a!=null||s!=null))if(u==="style")if(s){for(i in s)!s.hasOwnProperty(i)||a&&a.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in a)a.hasOwnProperty(i)&&s[i]!==a[i]&&(n||(n={}),n[i]=a[i])}else n||(l||(l=[]),l.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,s=s?s.__html:void 0,a!=null&&s!==a&&(l=l||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(l=l||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(ar.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&Y("scroll",e),l||s===a||(l=[])):(l=l||[]).push(u,a))}n&&(l=l||[]).push("style",n);var u=l;(t.updateQueue=u)&&(t.flags|=4)}};md=function(e,t,n,r){n!==r&&(t.flags|=4)};function Un(e,t){if(!X)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ve(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function mh(e,t,n){var r=t.pendingProps;switch(os(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ve(t),null;case 1:return Pe(t.type)&&bo(),ve(t),null;case 3:return r=t.stateNode,Tn(),G(Re),G(xe),ps(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Wr(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Je!==null&&(Ri(Je),Je=null))),Si(e,t),ve(t),null;case 5:fs(t);var o=qt(wr.current);if(n=t.type,e!==null&&t.stateNode!=null)hd(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(E(166));return ve(t),null}if(e=qt(ut.current),Wr(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[st]=t,r[yr]=l,e=(t.mode&1)!==0,n){case"dialog":Y("cancel",r),Y("close",r);break;case"iframe":case"object":case"embed":Y("load",r);break;case"video":case"audio":for(o=0;o<Gn.length;o++)Y(Gn[o],r);break;case"source":Y("error",r);break;case"img":case"image":case"link":Y("error",r),Y("load",r);break;case"details":Y("toggle",r);break;case"input":Ys(r,l),Y("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},Y("invalid",r);break;case"textarea":Xs(r,l),Y("invalid",r)}Gl(n,l),o=null;for(var i in l)if(l.hasOwnProperty(i)){var s=l[i];i==="children"?typeof s=="string"?r.textContent!==s&&(l.suppressHydrationWarning!==!0&&Ur(r.textContent,s,e),o=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(l.suppressHydrationWarning!==!0&&Ur(r.textContent,s,e),o=["children",""+s]):ar.hasOwnProperty(i)&&s!=null&&i==="onScroll"&&Y("scroll",r)}switch(n){case"input":Ar(r),Gs(r,l,!0);break;case"textarea":Ar(r),Zs(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=ko)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Wu(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[st]=t,e[yr]=r,pd(e,t,!1,!1),t.stateNode=e;e:{switch(i=Xl(n,r),n){case"dialog":Y("cancel",e),Y("close",e),o=r;break;case"iframe":case"object":case"embed":Y("load",e),o=r;break;case"video":case"audio":for(o=0;o<Gn.length;o++)Y(Gn[o],e);o=r;break;case"source":Y("error",e),o=r;break;case"img":case"image":case"link":Y("error",e),Y("load",e),o=r;break;case"details":Y("toggle",e),o=r;break;case"input":Ys(e,r),o=Vl(e,r),Y("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=te({},r,{value:void 0}),Y("invalid",e);break;case"textarea":Xs(e,r),o=Kl(e,r),Y("invalid",e);break;default:o=r}Gl(n,o),s=o;for(l in s)if(s.hasOwnProperty(l)){var a=s[l];l==="style"?Qu(e,a):l==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Hu(e,a)):l==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&ur(e,a):typeof a=="number"&&ur(e,""+a):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(ar.hasOwnProperty(l)?a!=null&&l==="onScroll"&&Y("scroll",e):a!=null&&Wi(e,l,a,i))}switch(n){case"input":Ar(e),Gs(e,r,!1);break;case"textarea":Ar(e),Zs(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Dt(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?wn(e,!!r.multiple,l,!1):r.defaultValue!=null&&wn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=ko)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ve(t),null;case 6:if(e&&t.stateNode!=null)md(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(E(166));if(n=qt(wr.current),qt(ut.current),Wr(t)){if(r=t.stateNode,n=t.memoizedProps,r[st]=t,(l=r.nodeValue!==n)&&(e=$e,e!==null))switch(e.tag){case 3:Ur(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ur(r.nodeValue,n,(e.mode&1)!==0)}l&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[st]=t,t.stateNode=r}return ve(t),null;case 13:if(G(J),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(X&&Me!==null&&t.mode&1&&!(t.flags&128))zc(),Ln(),t.flags|=98560,l=!1;else if(l=Wr(t),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(E(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(E(317));l[st]=t}else Ln(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ve(t),l=!1}else Je!==null&&(Ri(Je),Je=null),l=!0;if(!l)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||J.current&1?se===0&&(se=3):Cs())),t.updateQueue!==null&&(t.flags|=4),ve(t),null);case 4:return Tn(),Si(e,t),e===null&&gr(t.stateNode.containerInfo),ve(t),null;case 10:return as(t.type._context),ve(t),null;case 17:return Pe(t.type)&&bo(),ve(t),null;case 19:if(G(J),l=t.memoizedState,l===null)return ve(t),null;if(r=(t.flags&128)!==0,i=l.rendering,i===null)if(r)Un(l,!1);else{if(se!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=_o(e),i!==null){for(t.flags|=128,Un(l,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)l=n,e=r,l.flags&=14680066,i=l.alternate,i===null?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=i.childLanes,l.lanes=i.lanes,l.child=i.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=i.memoizedProps,l.memoizedState=i.memoizedState,l.updateQueue=i.updateQueue,l.type=i.type,e=i.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return q(J,J.current&1|2),t.child}e=e.sibling}l.tail!==null&&oe()>Pn&&(t.flags|=128,r=!0,Un(l,!1),t.lanes=4194304)}else{if(!r)if(e=_o(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Un(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!X)return ve(t),null}else 2*oe()-l.renderingStartTime>Pn&&n!==1073741824&&(t.flags|=128,r=!0,Un(l,!1),t.lanes=4194304);l.isBackwards?(i.sibling=t.child,t.child=i):(n=l.last,n!==null?n.sibling=i:t.child=i,l.last=i)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=oe(),t.sibling=null,n=J.current,q(J,r?n&1|2:n&1),t):(ve(t),null);case 22:case 23:return Es(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ae&1073741824&&(ve(t),t.subtreeFlags&6&&(t.flags|=8192)):ve(t),null;case 24:return null;case 25:return null}throw Error(E(156,t.tag))}function gh(e,t){switch(os(t),t.tag){case 1:return Pe(t.type)&&bo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Tn(),G(Re),G(xe),ps(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return fs(t),null;case 13:if(G(J),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(E(340));Ln()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(J),null;case 4:return Tn(),null;case 10:return as(t.type._context),null;case 22:case 23:return Es(),null;case 24:return null;default:return null}}var Qr=!1,ye=!1,vh=typeof WeakSet=="function"?WeakSet:Set,z=null;function yn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){re(e,t,r)}else n.current=null}function Ei(e,t,n){try{n()}catch(r){re(e,t,r)}}var Fa=!1;function yh(e,t){if(si=yo,e=wc(),ns(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var i=0,s=-1,a=-1,u=0,p=0,v=e,h=null;t:for(;;){for(var x;v!==n||o!==0&&v.nodeType!==3||(s=i+o),v!==l||r!==0&&v.nodeType!==3||(a=i+r),v.nodeType===3&&(i+=v.nodeValue.length),(x=v.firstChild)!==null;)h=v,v=x;for(;;){if(v===e)break t;if(h===n&&++u===o&&(s=i),h===l&&++p===r&&(a=i),(x=v.nextSibling)!==null)break;v=h,h=v.parentNode}v=x}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(ai={focusedElem:e,selectionRange:n},yo=!1,z=t;z!==null;)if(t=z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,z=e;else for(;z!==null;){t=z;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var k=y.memoizedProps,_=y.memoizedState,f=t.stateNode,c=f.getSnapshotBeforeUpdate(t.elementType===t.type?k:Xe(t.type,k),_);f.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(E(163))}}catch(g){re(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,z=e;break}z=t.return}return y=Fa,Fa=!1,y}function rr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var l=o.destroy;o.destroy=void 0,l!==void 0&&Ei(t,n,l)}o=o.next}while(o!==r)}}function Go(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ci(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function gd(e){var t=e.alternate;t!==null&&(e.alternate=null,gd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[st],delete t[yr],delete t[di],delete t[eh],delete t[th])),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 vd(e){return e.tag===5||e.tag===3||e.tag===4}function Ua(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||vd(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 Ni(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ko));else if(r!==4&&(e=e.child,e!==null))for(Ni(e,t,n),e=e.sibling;e!==null;)Ni(e,t,n),e=e.sibling}function ji(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ji(e,t,n),e=e.sibling;e!==null;)ji(e,t,n),e=e.sibling}var fe=null,Ze=!1;function St(e,t,n){for(n=n.child;n!==null;)yd(e,t,n),n=n.sibling}function yd(e,t,n){if(at&&typeof at.onCommitFiberUnmount=="function")try{at.onCommitFiberUnmount(Uo,n)}catch{}switch(n.tag){case 5:ye||yn(n,t);case 6:var r=fe,o=Ze;fe=null,St(e,t,n),fe=r,Ze=o,fe!==null&&(Ze?(e=fe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):fe.removeChild(n.stateNode));break;case 18:fe!==null&&(Ze?(e=fe,n=n.stateNode,e.nodeType===8?kl(e.parentNode,n):e.nodeType===1&&kl(e,n),pr(e)):kl(fe,n.stateNode));break;case 4:r=fe,o=Ze,fe=n.stateNode.containerInfo,Ze=!0,St(e,t,n),fe=r,Ze=o;break;case 0:case 11:case 14:case 15:if(!ye&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var l=o,i=l.destroy;l=l.tag,i!==void 0&&(l&2||l&4)&&Ei(n,t,i),o=o.next}while(o!==r)}St(e,t,n);break;case 1:if(!ye&&(yn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){re(n,t,s)}St(e,t,n);break;case 21:St(e,t,n);break;case 22:n.mode&1?(ye=(r=ye)||n.memoizedState!==null,St(e,t,n),ye=r):St(e,t,n);break;default:St(e,t,n)}}function Wa(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new vh),t.forEach(function(r){var o=jh.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ge(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var l=e,i=t,s=i;e:for(;s!==null;){switch(s.tag){case 5:fe=s.stateNode,Ze=!1;break e;case 3:fe=s.stateNode.containerInfo,Ze=!0;break e;case 4:fe=s.stateNode.containerInfo,Ze=!0;break e}s=s.return}if(fe===null)throw Error(E(160));yd(l,i,o),fe=null,Ze=!1;var a=o.alternate;a!==null&&(a.return=null),o.return=null}catch(u){re(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)xd(t,e),t=t.sibling}function xd(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ge(t,e),ot(e),r&4){try{rr(3,e,e.return),Go(3,e)}catch(k){re(e,e.return,k)}try{rr(5,e,e.return)}catch(k){re(e,e.return,k)}}break;case 1:Ge(t,e),ot(e),r&512&&n!==null&&yn(n,n.return);break;case 5:if(Ge(t,e),ot(e),r&512&&n!==null&&yn(n,n.return),e.flags&32){var o=e.stateNode;try{ur(o,"")}catch(k){re(e,e.return,k)}}if(r&4&&(o=e.stateNode,o!=null)){var l=e.memoizedProps,i=n!==null?n.memoizedProps:l,s=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{s==="input"&&l.type==="radio"&&l.name!=null&&Fu(o,l),Xl(s,i);var u=Xl(s,l);for(i=0;i<a.length;i+=2){var p=a[i],v=a[i+1];p==="style"?Qu(o,v):p==="dangerouslySetInnerHTML"?Hu(o,v):p==="children"?ur(o,v):Wi(o,p,v,u)}switch(s){case"input":Ql(o,l);break;case"textarea":Uu(o,l);break;case"select":var h=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!l.multiple;var x=l.value;x!=null?wn(o,!!l.multiple,x,!1):h!==!!l.multiple&&(l.defaultValue!=null?wn(o,!!l.multiple,l.defaultValue,!0):wn(o,!!l.multiple,l.multiple?[]:"",!1))}o[yr]=l}catch(k){re(e,e.return,k)}}break;case 6:if(Ge(t,e),ot(e),r&4){if(e.stateNode===null)throw Error(E(162));o=e.stateNode,l=e.memoizedProps;try{o.nodeValue=l}catch(k){re(e,e.return,k)}}break;case 3:if(Ge(t,e),ot(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{pr(t.containerInfo)}catch(k){re(e,e.return,k)}break;case 4:Ge(t,e),ot(e);break;case 13:Ge(t,e),ot(e),o=e.child,o.flags&8192&&(l=o.memoizedState!==null,o.stateNode.isHidden=l,!l||o.alternate!==null&&o.alternate.memoizedState!==null||(bs=oe())),r&4&&Wa(e);break;case 22:if(p=n!==null&&n.memoizedState!==null,e.mode&1?(ye=(u=ye)||p,Ge(t,e),ye=u):Ge(t,e),ot(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!p&&e.mode&1)for(z=e,p=e.child;p!==null;){for(v=z=p;z!==null;){switch(h=z,x=h.child,h.tag){case 0:case 11:case 14:case 15:rr(4,h,h.return);break;case 1:yn(h,h.return);var y=h.stateNode;if(typeof y.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(k){re(r,n,k)}}break;case 5:yn(h,h.return);break;case 22:if(h.memoizedState!==null){Va(v);continue}}x!==null?(x.return=h,z=x):Va(v)}p=p.sibling}e:for(p=null,v=e;;){if(v.tag===5){if(p===null){p=v;try{o=v.stateNode,u?(l=o.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(s=v.stateNode,a=v.memoizedProps.style,i=a!=null&&a.hasOwnProperty("display")?a.display:null,s.style.display=Vu("display",i))}catch(k){re(e,e.return,k)}}}else if(v.tag===6){if(p===null)try{v.stateNode.nodeValue=u?"":v.memoizedProps}catch(k){re(e,e.return,k)}}else if((v.tag!==22&&v.tag!==23||v.memoizedState===null||v===e)&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===e)break e;for(;v.sibling===null;){if(v.return===null||v.return===e)break e;p===v&&(p=null),v=v.return}p===v&&(p=null),v.sibling.return=v.return,v=v.sibling}}break;case 19:Ge(t,e),ot(e),r&4&&Wa(e);break;case 21:break;default:Ge(t,e),ot(e)}}function ot(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(vd(n)){var r=n;break e}n=n.return}throw Error(E(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(ur(o,""),r.flags&=-33);var l=Ua(e);ji(e,l,o);break;case 3:case 4:var i=r.stateNode.containerInfo,s=Ua(e);Ni(e,s,i);break;default:throw Error(E(161))}}catch(a){re(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function xh(e,t,n){z=e,wd(e)}function wd(e,t,n){for(var r=(e.mode&1)!==0;z!==null;){var o=z,l=o.child;if(o.tag===22&&r){var i=o.memoizedState!==null||Qr;if(!i){var s=o.alternate,a=s!==null&&s.memoizedState!==null||ye;s=Qr;var u=ye;if(Qr=i,(ye=a)&&!u)for(z=o;z!==null;)i=z,a=i.child,i.tag===22&&i.memoizedState!==null?Qa(o):a!==null?(a.return=i,z=a):Qa(o);for(;l!==null;)z=l,wd(l),l=l.sibling;z=o,Qr=s,ye=u}Ha(e)}else o.subtreeFlags&8772&&l!==null?(l.return=o,z=l):Ha(e)}}function Ha(e){for(;z!==null;){var t=z;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ye||Go(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ye)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Xe(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;l!==null&&La(t,l,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}La(t,i,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var p=u.memoizedState;if(p!==null){var v=p.dehydrated;v!==null&&pr(v)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(E(163))}ye||t.flags&512&&Ci(t)}catch(h){re(t,t.return,h)}}if(t===e){z=null;break}if(n=t.sibling,n!==null){n.return=t.return,z=n;break}z=t.return}}function Va(e){for(;z!==null;){var t=z;if(t===e){z=null;break}var n=t.sibling;if(n!==null){n.return=t.return,z=n;break}z=t.return}}function Qa(e){for(;z!==null;){var t=z;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Go(4,t)}catch(a){re(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(a){re(t,o,a)}}var l=t.return;try{Ci(t)}catch(a){re(t,l,a)}break;case 5:var i=t.return;try{Ci(t)}catch(a){re(t,i,a)}}}catch(a){re(t,t.return,a)}if(t===e){z=null;break}var s=t.sibling;if(s!==null){s.return=t.return,z=s;break}z=t.return}}var wh=Math.ceil,Po=kt.ReactCurrentDispatcher,ws=kt.ReactCurrentOwner,Ve=kt.ReactCurrentBatchConfig,F=0,ce=null,le=null,pe=0,Ae=0,xn=Ft(0),se=0,Er=null,Jt=0,Xo=0,ks=0,or=null,_e=null,bs=0,Pn=1/0,ct=null,zo=!1,Li=null,Mt=null,qr=!1,_t=null,Ao=0,lr=0,_i=null,io=-1,so=0;function be(){return F&6?oe():io!==-1?io:io=oe()}function $t(e){return e.mode&1?F&2&&pe!==0?pe&-pe:rh.transition!==null?(so===0&&(so=oc()),so):(e=V,e!==0||(e=window.event,e=e===void 0?16:dc(e.type)),e):1}function tt(e,t,n,r){if(50<lr)throw lr=0,_i=null,Error(E(185));jr(e,n,r),(!(F&2)||e!==ce)&&(e===ce&&(!(F&2)&&(Xo|=n),se===4&&jt(e,pe)),ze(e,r),n===1&&F===0&&!(t.mode&1)&&(Pn=oe()+500,qo&&Ut()))}function ze(e,t){var n=e.callbackNode;rp(e,t);var r=vo(e,e===ce?pe:0);if(r===0)n!==null&&ta(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&ta(n),t===1)e.tag===0?nh(qa.bind(null,e)):Tc(qa.bind(null,e)),Zp(function(){!(F&6)&&Ut()}),n=null;else{switch(lc(r)){case 1:n=Ki;break;case 4:n=nc;break;case 16:n=go;break;case 536870912:n=rc;break;default:n=go}n=Ld(n,kd.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function kd(e,t){if(io=-1,so=0,F&6)throw Error(E(327));var n=e.callbackNode;if(Cn()&&e.callbackNode!==n)return null;var r=vo(e,e===ce?pe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Mo(e,r);else{t=r;var o=F;F|=2;var l=Sd();(ce!==e||pe!==t)&&(ct=null,Pn=oe()+500,Kt(e,t));do try{Sh();break}catch(s){bd(e,s)}while(!0);ss(),Po.current=l,F=o,le!==null?t=0:(ce=null,pe=0,t=se)}if(t!==0){if(t===2&&(o=ni(e),o!==0&&(r=o,t=Ti(e,o))),t===1)throw n=Er,Kt(e,0),jt(e,r),ze(e,oe()),n;if(t===6)jt(e,r);else{if(o=e.current.alternate,!(r&30)&&!kh(o)&&(t=Mo(e,r),t===2&&(l=ni(e),l!==0&&(r=l,t=Ti(e,l))),t===1))throw n=Er,Kt(e,0),jt(e,r),ze(e,oe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(E(345));case 2:Ht(e,_e,ct);break;case 3:if(jt(e,r),(r&130023424)===r&&(t=bs+500-oe(),10<t)){if(vo(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){be(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ci(Ht.bind(null,e,_e,ct),t);break}Ht(e,_e,ct);break;case 4:if(jt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-et(r);l=1<<i,i=t[i],i>o&&(o=i),r&=~l}if(r=o,r=oe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*wh(r/1960))-r,10<r){e.timeoutHandle=ci(Ht.bind(null,e,_e,ct),r);break}Ht(e,_e,ct);break;case 5:Ht(e,_e,ct);break;default:throw Error(E(329))}}}return ze(e,oe()),e.callbackNode===n?kd.bind(null,e):null}function Ti(e,t){var n=or;return e.current.memoizedState.isDehydrated&&(Kt(e,t).flags|=256),e=Mo(e,t),e!==2&&(t=_e,_e=n,t!==null&&Ri(t)),e}function Ri(e){_e===null?_e=e:_e.push.apply(_e,e)}function kh(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],l=o.getSnapshot;o=o.value;try{if(!nt(l(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 jt(e,t){for(t&=~ks,t&=~Xo,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-et(t),r=1<<n;e[n]=-1,t&=~r}}function qa(e){if(F&6)throw Error(E(327));Cn();var t=vo(e,0);if(!(t&1))return ze(e,oe()),null;var n=Mo(e,t);if(e.tag!==0&&n===2){var r=ni(e);r!==0&&(t=r,n=Ti(e,r))}if(n===1)throw n=Er,Kt(e,0),jt(e,t),ze(e,oe()),n;if(n===6)throw Error(E(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ht(e,_e,ct),ze(e,oe()),null}function Ss(e,t){var n=F;F|=1;try{return e(t)}finally{F=n,F===0&&(Pn=oe()+500,qo&&Ut())}}function en(e){_t!==null&&_t.tag===0&&!(F&6)&&Cn();var t=F;F|=1;var n=Ve.transition,r=V;try{if(Ve.transition=null,V=1,e)return e()}finally{V=r,Ve.transition=n,F=t,!(F&6)&&Ut()}}function Es(){Ae=xn.current,G(xn)}function Kt(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Xp(n)),le!==null)for(n=le.return;n!==null;){var r=n;switch(os(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&bo();break;case 3:Tn(),G(Re),G(xe),ps();break;case 5:fs(r);break;case 4:Tn();break;case 13:G(J);break;case 19:G(J);break;case 10:as(r.type._context);break;case 22:case 23:Es()}n=n.return}if(ce=e,le=e=It(e.current,null),pe=Ae=t,se=0,Er=null,ks=Xo=Jt=0,_e=or=null,Qt!==null){for(t=0;t<Qt.length;t++)if(n=Qt[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,l=n.pending;if(l!==null){var i=l.next;l.next=o,r.next=i}n.pending=r}Qt=null}return e}function bd(e,t){do{var n=le;try{if(ss(),ro.current=Ro,To){for(var r=ee.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}To=!1}if(Zt=0,ue=ie=ee=null,nr=!1,kr=0,ws.current=null,n===null||n.return===null){se=1,Er=t,le=null;break}e:{var l=e,i=n.return,s=n,a=t;if(t=pe,s.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,p=s,v=p.tag;if(!(p.mode&1)&&(v===0||v===11||v===15)){var h=p.alternate;h?(p.updateQueue=h.updateQueue,p.memoizedState=h.memoizedState,p.lanes=h.lanes):(p.updateQueue=null,p.memoizedState=null)}var x=Aa(i);if(x!==null){x.flags&=-257,Ma(x,i,s,l,t),x.mode&1&&za(l,u,t),t=x,a=u;var y=t.updateQueue;if(y===null){var k=new Set;k.add(a),t.updateQueue=k}else y.add(a);break e}else{if(!(t&1)){za(l,u,t),Cs();break e}a=Error(E(426))}}else if(X&&s.mode&1){var _=Aa(i);if(_!==null){!(_.flags&65536)&&(_.flags|=256),Ma(_,i,s,l,t),ls(Rn(a,s));break e}}l=a=Rn(a,s),se!==4&&(se=2),or===null?or=[l]:or.push(l),l=i;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var f=ld(l,a,t);ja(l,f);break e;case 1:s=a;var c=l.type,m=l.stateNode;if(!(l.flags&128)&&(typeof c.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Mt===null||!Mt.has(m)))){l.flags|=65536,t&=-t,l.lanes|=t;var g=id(l,s,t);ja(l,g);break e}}l=l.return}while(l!==null)}Cd(n)}catch(w){t=w,le===n&&n!==null&&(le=n=n.return);continue}break}while(!0)}function Sd(){var e=Po.current;return Po.current=Ro,e===null?Ro:e}function Cs(){(se===0||se===3||se===2)&&(se=4),ce===null||!(Jt&268435455)&&!(Xo&268435455)||jt(ce,pe)}function Mo(e,t){var n=F;F|=2;var r=Sd();(ce!==e||pe!==t)&&(ct=null,Kt(e,t));do try{bh();break}catch(o){bd(e,o)}while(!0);if(ss(),F=n,Po.current=r,le!==null)throw Error(E(261));return ce=null,pe=0,se}function bh(){for(;le!==null;)Ed(le)}function Sh(){for(;le!==null&&!Kf();)Ed(le)}function Ed(e){var t=jd(e.alternate,e,Ae);e.memoizedProps=e.pendingProps,t===null?Cd(e):le=t,ws.current=null}function Cd(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=gh(n,t),n!==null){n.flags&=32767,le=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{se=6,le=null;return}}else if(n=mh(n,t,Ae),n!==null){le=n;return}if(t=t.sibling,t!==null){le=t;return}le=t=e}while(t!==null);se===0&&(se=5)}function Ht(e,t,n){var r=V,o=Ve.transition;try{Ve.transition=null,V=1,Eh(e,t,n,r)}finally{Ve.transition=o,V=r}return null}function Eh(e,t,n,r){do Cn();while(_t!==null);if(F&6)throw Error(E(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(E(177));e.callbackNode=null,e.callbackPriority=0;var l=n.lanes|n.childLanes;if(op(e,l),e===ce&&(le=ce=null,pe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||qr||(qr=!0,Ld(go,function(){return Cn(),null})),l=(n.flags&15990)!==0,n.subtreeFlags&15990||l){l=Ve.transition,Ve.transition=null;var i=V;V=1;var s=F;F|=4,ws.current=null,yh(e,n),xd(n,e),Hp(ai),yo=!!si,ai=si=null,e.current=n,xh(n),Yf(),F=s,V=i,Ve.transition=l}else e.current=n;if(qr&&(qr=!1,_t=e,Ao=o),l=e.pendingLanes,l===0&&(Mt=null),Zf(n.stateNode),ze(e,oe()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(zo)throw zo=!1,e=Li,Li=null,e;return Ao&1&&e.tag!==0&&Cn(),l=e.pendingLanes,l&1?e===_i?lr++:(lr=0,_i=e):lr=0,Ut(),null}function Cn(){if(_t!==null){var e=lc(Ao),t=Ve.transition,n=V;try{if(Ve.transition=null,V=16>e?16:e,_t===null)var r=!1;else{if(e=_t,_t=null,Ao=0,F&6)throw Error(E(331));var o=F;for(F|=4,z=e.current;z!==null;){var l=z,i=l.child;if(z.flags&16){var s=l.deletions;if(s!==null){for(var a=0;a<s.length;a++){var u=s[a];for(z=u;z!==null;){var p=z;switch(p.tag){case 0:case 11:case 15:rr(8,p,l)}var v=p.child;if(v!==null)v.return=p,z=v;else for(;z!==null;){p=z;var h=p.sibling,x=p.return;if(gd(p),p===u){z=null;break}if(h!==null){h.return=x,z=h;break}z=x}}}var y=l.alternate;if(y!==null){var k=y.child;if(k!==null){y.child=null;do{var _=k.sibling;k.sibling=null,k=_}while(k!==null)}}z=l}}if(l.subtreeFlags&2064&&i!==null)i.return=l,z=i;else e:for(;z!==null;){if(l=z,l.flags&2048)switch(l.tag){case 0:case 11:case 15:rr(9,l,l.return)}var f=l.sibling;if(f!==null){f.return=l.return,z=f;break e}z=l.return}}var c=e.current;for(z=c;z!==null;){i=z;var m=i.child;if(i.subtreeFlags&2064&&m!==null)m.return=i,z=m;else e:for(i=c;z!==null;){if(s=z,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Go(9,s)}}catch(w){re(s,s.return,w)}if(s===i){z=null;break e}var g=s.sibling;if(g!==null){g.return=s.return,z=g;break e}z=s.return}}if(F=o,Ut(),at&&typeof at.onPostCommitFiberRoot=="function")try{at.onPostCommitFiberRoot(Uo,e)}catch{}r=!0}return r}finally{V=n,Ve.transition=t}}return!1}function Ka(e,t,n){t=Rn(n,t),t=ld(e,t,1),e=At(e,t,1),t=be(),e!==null&&(jr(e,1,t),ze(e,t))}function re(e,t,n){if(e.tag===3)Ka(e,e,n);else for(;t!==null;){if(t.tag===3){Ka(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Mt===null||!Mt.has(r))){e=Rn(n,e),e=id(t,e,1),t=At(t,e,1),e=be(),t!==null&&(jr(t,1,e),ze(t,e));break}}t=t.return}}function Ch(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=be(),e.pingedLanes|=e.suspendedLanes&n,ce===e&&(pe&n)===n&&(se===4||se===3&&(pe&130023424)===pe&&500>oe()-bs?Kt(e,0):ks|=n),ze(e,t)}function Nd(e,t){t===0&&(e.mode&1?(t=Ir,Ir<<=1,!(Ir&130023424)&&(Ir=4194304)):t=1);var n=be();e=xt(e,t),e!==null&&(jr(e,t,n),ze(e,n))}function Nh(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Nd(e,n)}function jh(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(E(314))}r!==null&&r.delete(t),Nd(e,n)}var jd;jd=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Re.current)Te=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Te=!1,hh(e,t,n);Te=!!(e.flags&131072)}else Te=!1,X&&t.flags&1048576&&Rc(t,Co,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;lo(e,t),e=t.pendingProps;var o=jn(t,xe.current);En(t,n),o=ms(null,t,r,e,o,n);var l=gs();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,Pe(r)?(l=!0,So(t)):l=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,cs(t),o.updater=Yo,t.stateNode=o,o._reactInternals=t,vi(t,r,e,n),t=wi(null,t,r,!0,l,n)):(t.tag=0,X&&l&&rs(t),we(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(lo(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=_h(r),e=Xe(r,e),o){case 0:t=xi(null,t,r,e,n);break e;case 1:t=Da(null,t,r,e,n);break e;case 11:t=$a(null,t,r,e,n);break e;case 14:t=Ia(null,t,r,Xe(r.type,e),n);break e}throw Error(E(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xe(r,o),xi(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xe(r,o),Da(e,t,r,o,n);case 3:e:{if(cd(t),e===null)throw Error(E(387));r=t.pendingProps,l=t.memoizedState,o=l.element,Ic(e,t),Lo(t,r,null,n);var i=t.memoizedState;if(r=i.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){o=Rn(Error(E(423)),t),t=Oa(e,t,r,n,o);break e}else if(r!==o){o=Rn(Error(E(424)),t),t=Oa(e,t,r,n,o);break e}else for(Me=zt(t.stateNode.containerInfo.firstChild),$e=t,X=!0,Je=null,n=Mc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ln(),r===o){t=wt(e,t,n);break e}we(e,t,r,n)}t=t.child}return t;case 5:return Dc(t),e===null&&hi(t),r=t.type,o=t.pendingProps,l=e!==null?e.memoizedProps:null,i=o.children,ui(r,o)?i=null:l!==null&&ui(r,l)&&(t.flags|=32),ud(e,t),we(e,t,i,n),t.child;case 6:return e===null&&hi(t),null;case 13:return dd(e,t,n);case 4:return ds(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=_n(t,null,r,n):we(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xe(r,o),$a(e,t,r,o,n);case 7:return we(e,t,t.pendingProps,n),t.child;case 8:return we(e,t,t.pendingProps.children,n),t.child;case 12:return we(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,l=t.memoizedProps,i=o.value,q(No,r._currentValue),r._currentValue=i,l!==null)if(nt(l.value,i)){if(l.children===o.children&&!Re.current){t=wt(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var s=l.dependencies;if(s!==null){i=l.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(l.tag===1){a=gt(-1,n&-n),a.tag=2;var u=l.updateQueue;if(u!==null){u=u.shared;var p=u.pending;p===null?a.next=a:(a.next=p.next,p.next=a),u.pending=a}}l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),mi(l.return,n,t),s.lanes|=n;break}a=a.next}}else if(l.tag===10)i=l.type===t.type?null:l.child;else if(l.tag===18){if(i=l.return,i===null)throw Error(E(341));i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),mi(i,n,t),i=l.sibling}else i=l.child;if(i!==null)i.return=l;else for(i=l;i!==null;){if(i===t){i=null;break}if(l=i.sibling,l!==null){l.return=i.return,i=l;break}i=i.return}l=i}we(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,En(t,n),o=Qe(o),r=r(o),t.flags|=1,we(e,t,r,n),t.child;case 14:return r=t.type,o=Xe(r,t.pendingProps),o=Xe(r.type,o),Ia(e,t,r,o,n);case 15:return sd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xe(r,o),lo(e,t),t.tag=1,Pe(r)?(e=!0,So(t)):e=!1,En(t,n),od(t,r,o),vi(t,r,o,n),wi(null,t,r,!0,e,n);case 19:return fd(e,t,n);case 22:return ad(e,t,n)}throw Error(E(156,t.tag))};function Ld(e,t){return tc(e,t)}function Lh(e,t,n,r){this.tag=e,this.key=n,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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function He(e,t,n,r){return new Lh(e,t,n,r)}function Ns(e){return e=e.prototype,!(!e||!e.isReactComponent)}function _h(e){if(typeof e=="function")return Ns(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Vi)return 11;if(e===Qi)return 14}return 2}function It(e,t){var n=e.alternate;return n===null?(n=He(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ao(e,t,n,r,o,l){var i=2;if(r=e,typeof e=="function")Ns(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case un:return Yt(n.children,o,l,t);case Hi:i=8,o|=8;break;case Fl:return e=He(12,n,t,o|2),e.elementType=Fl,e.lanes=l,e;case Ul:return e=He(13,n,t,o),e.elementType=Ul,e.lanes=l,e;case Wl:return e=He(19,n,t,o),e.elementType=Wl,e.lanes=l,e;case Du:return Zo(n,o,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case $u:i=10;break e;case Iu:i=9;break e;case Vi:i=11;break e;case Qi:i=14;break e;case Et:i=16,r=null;break e}throw Error(E(130,e==null?e:typeof e,""))}return t=He(i,n,t,o),t.elementType=e,t.type=r,t.lanes=l,t}function Yt(e,t,n,r){return e=He(7,e,r,t),e.lanes=n,e}function Zo(e,t,n,r){return e=He(22,e,r,t),e.elementType=Du,e.lanes=n,e.stateNode={isHidden:!1},e}function _l(e,t,n){return e=He(6,e,null,t),e.lanes=n,e}function Tl(e,t,n){return t=He(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Th(e,t,n,r,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=cl(0),this.expirationTimes=cl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=cl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function js(e,t,n,r,o,l,i,s,a){return e=new Th(e,t,n,s,a),t===1?(t=1,l===!0&&(t|=8)):t=0,l=He(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},cs(l),e}function Rh(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:an,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function _d(e){if(!e)return Ot;e=e._reactInternals;e:{if(rn(e)!==e||e.tag!==1)throw Error(E(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Pe(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(E(171))}if(e.tag===1){var n=e.type;if(Pe(n))return _c(e,n,t)}return t}function Td(e,t,n,r,o,l,i,s,a){return e=js(n,r,!0,e,o,l,i,s,a),e.context=_d(null),n=e.current,r=be(),o=$t(n),l=gt(r,o),l.callback=t??null,At(n,l,o),e.current.lanes=o,jr(e,o,r),ze(e,r),e}function Jo(e,t,n,r){var o=t.current,l=be(),i=$t(o);return n=_d(n),t.context===null?t.context=n:t.pendingContext=n,t=gt(l,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=At(o,t,i),e!==null&&(tt(e,o,i,l),no(e,o,i)),i}function $o(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 Ya(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ls(e,t){Ya(e,t),(e=e.alternate)&&Ya(e,t)}function Ph(){return null}var Rd=typeof reportError=="function"?reportError:function(e){console.error(e)};function _s(e){this._internalRoot=e}el.prototype.render=_s.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(E(409));Jo(e,t,null,null)};el.prototype.unmount=_s.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;en(function(){Jo(null,e,null,null)}),t[yt]=null}};function el(e){this._internalRoot=e}el.prototype.unstable_scheduleHydration=function(e){if(e){var t=ac();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Nt.length&&t!==0&&t<Nt[n].priority;n++);Nt.splice(n,0,e),n===0&&cc(e)}};function Ts(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function tl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Ga(){}function zh(e,t,n,r,o){if(o){if(typeof r=="function"){var l=r;r=function(){var u=$o(i);l.call(u)}}var i=Td(t,r,e,0,null,!1,!1,"",Ga);return e._reactRootContainer=i,e[yt]=i.current,gr(e.nodeType===8?e.parentNode:e),en(),i}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var s=r;r=function(){var u=$o(a);s.call(u)}}var a=js(e,0,!1,null,null,!1,!1,"",Ga);return e._reactRootContainer=a,e[yt]=a.current,gr(e.nodeType===8?e.parentNode:e),en(function(){Jo(t,a,n,r)}),a}function nl(e,t,n,r,o){var l=n._reactRootContainer;if(l){var i=l;if(typeof o=="function"){var s=o;o=function(){var a=$o(i);s.call(a)}}Jo(t,i,e,o)}else i=zh(n,t,e,o,r);return $o(i)}ic=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Yn(t.pendingLanes);n!==0&&(Yi(t,n|1),ze(t,oe()),!(F&6)&&(Pn=oe()+500,Ut()))}break;case 13:en(function(){var r=xt(e,1);if(r!==null){var o=be();tt(r,e,1,o)}}),Ls(e,1)}};Gi=function(e){if(e.tag===13){var t=xt(e,134217728);if(t!==null){var n=be();tt(t,e,134217728,n)}Ls(e,134217728)}};sc=function(e){if(e.tag===13){var t=$t(e),n=xt(e,t);if(n!==null){var r=be();tt(n,e,t,r)}Ls(e,t)}};ac=function(){return V};uc=function(e,t){var n=V;try{return V=e,t()}finally{V=n}};Jl=function(e,t,n){switch(t){case"input":if(Ql(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Qo(r);if(!o)throw Error(E(90));Bu(r),Ql(r,o)}}}break;case"textarea":Uu(e,n);break;case"select":t=n.value,t!=null&&wn(e,!!n.multiple,t,!1)}};Yu=Ss;Gu=en;var Ah={usingClientEntryPoint:!1,Events:[_r,pn,Qo,qu,Ku,Ss]},Wn={findFiberByHostInstance:Vt,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Mh={bundleType:Wn.bundleType,version:Wn.version,rendererPackageName:Wn.rendererPackageName,rendererConfig:Wn.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:kt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ju(e),e===null?null:e.stateNode},findFiberByHostInstance:Wn.findFiberByHostInstance||Ph,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 Kr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Kr.isDisabled&&Kr.supportsFiber)try{Uo=Kr.inject(Mh),at=Kr}catch{}}Oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ah;Oe.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ts(t))throw Error(E(200));return Rh(e,t,null,n)};Oe.createRoot=function(e,t){if(!Ts(e))throw Error(E(299));var n=!1,r="",o=Rd;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=js(e,1,!1,null,null,n,!1,r,o),e[yt]=t.current,gr(e.nodeType===8?e.parentNode:e),new _s(t)};Oe.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(E(188)):(e=Object.keys(e).join(","),Error(E(268,e)));return e=Ju(t),e=e===null?null:e.stateNode,e};Oe.flushSync=function(e){return en(e)};Oe.hydrate=function(e,t,n){if(!tl(t))throw Error(E(200));return nl(null,e,t,!0,n)};Oe.hydrateRoot=function(e,t,n){if(!Ts(e))throw Error(E(405));var r=n!=null&&n.hydratedSources||null,o=!1,l="",i=Rd;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=Td(t,null,e,1,n??null,o,!1,l,i),e[yt]=t.current,gr(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new el(t)};Oe.render=function(e,t,n){if(!tl(t))throw Error(E(200));return nl(null,e,t,!1,n)};Oe.unmountComponentAtNode=function(e){if(!tl(e))throw Error(E(40));return e._reactRootContainer?(en(function(){nl(null,null,e,!1,function(){e._reactRootContainer=null,e[yt]=null})}),!0):!1};Oe.unstable_batchedUpdates=Ss;Oe.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!tl(n))throw Error(E(200));if(e==null||e._reactInternals===void 0)throw Error(E(38));return nl(e,t,n,!1,r)};Oe.version="18.3.1-next-f1338f8080-20240426";function Pd(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Pd)}catch(e){console.error(e)}}Pd(),Pu.exports=Oe;var $h=Pu.exports,Xa=$h;Ol.createRoot=Xa.createRoot,Ol.hydrateRoot=Xa.hydrateRoot;function Ih(e){const t=Date.now()-new Date(e).getTime(),n=Math.floor(t/6e4);if(n<1)return"just now";if(n<60)return`${n}m ago`;const r=Math.floor(n/60);return r<24?`${r}h ago`:`${Math.floor(r/24)}d ago`}function Dh({sessions:e,onOpen:t}){const[n,r]=C.useState(!1),[o,l]=C.useState("");C.useEffect(()=>{if(!n)return;const a=u=>{u.key==="Escape"&&r(!1)};return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)},[n]),C.useEffect(()=>{n||l("")},[n]);const i=o.trim().toLowerCase(),s=i?e.filter(a=>a.id.toLowerCase().includes(i)):e;return d.jsxs(d.Fragment,{children:[d.jsxs("button",{onClick:()=>r(!0),className:"flex h-8 items-center gap-1.5 rounded-md px-2.5 text-xs text-muted-foreground transition-colors hover:bg-accent hover:text-foreground","aria-label":"Sessions",title:"Sessions",children:[d.jsxs("svg",{className:"h-4 w-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:[d.jsx("rect",{x:"3",y:"3",width:"7",height:"7",rx:"1"}),d.jsx("rect",{x:"14",y:"3",width:"7",height:"7",rx:"1"}),d.jsx("rect",{x:"3",y:"14",width:"7",height:"7",rx:"1"}),d.jsx("rect",{x:"14",y:"14",width:"7",height:"7",rx:"1"})]}),d.jsx("span",{className:"hidden sm:inline",children:"Sessions"}),d.jsx("span",{className:"rounded bg-muted px-1.5 text-[10px] leading-4",children:e.length})]}),d.jsx("div",{className:`fixed inset-0 z-50 bg-black/40 transition-opacity duration-200 ${n?"opacity-100":"pointer-events-none opacity-0"}`,onClick:()=>r(!1),"aria-hidden":"true"}),d.jsxs("aside",{className:`fixed right-0 top-0 z-50 flex h-full w-80 max-w-[85vw] flex-col border-l bg-background shadow-xl transition-transform duration-200 ease-out ${n?"translate-x-0":"translate-x-full"}`,role:"dialog","aria-modal":"true","aria-label":"Sessions",children:[d.jsxs("header",{className:"flex h-14 shrink-0 items-center justify-between border-b px-4",children:[d.jsxs("span",{className:"flex items-center gap-2 text-sm font-semibold",children:["Sessions",d.jsx("span",{className:"rounded bg-muted px-1.5 text-[10px] leading-4 font-normal text-muted-foreground",children:e.length})]}),d.jsx("button",{onClick:()=>r(!1),className:"flex h-7 w-7 items-center justify-center rounded text-muted-foreground transition-colors hover:bg-accent hover:text-foreground","aria-label":"Close sessions",children:d.jsx("svg",{className:"h-4 w-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:d.jsx("path",{d:"M18 6L6 18M6 6l12 12"})})})]}),d.jsx("div",{className:"shrink-0 border-b px-3 py-2",children:d.jsxs("div",{className:"relative",children:[d.jsxs("svg",{className:"pointer-events-none absolute left-2.5 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:[d.jsx("circle",{cx:"11",cy:"11",r:"8"}),d.jsx("path",{d:"M21 21l-4.35-4.35"})]}),d.jsx("input",{type:"text",value:o,onChange:a=>l(a.target.value),placeholder:"Search sessions…","aria-label":"Search sessions",className:"h-8 w-full rounded-md border bg-background pl-8 pr-7 text-xs outline-none placeholder:text-muted-foreground focus:border-primary"}),o&&d.jsx("button",{onClick:()=>l(""),className:"absolute right-1.5 top-1/2 flex h-5 w-5 -translate-y-1/2 items-center justify-center rounded text-muted-foreground hover:bg-accent hover:text-foreground","aria-label":"Clear search",children:d.jsx("svg",{className:"h-3 w-3",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:d.jsx("path",{d:"M18 6L6 18M6 6l12 12"})})})]})}),d.jsx("div",{className:"flex-1 overflow-auto",children:e.length===0?d.jsx("div",{className:"p-4 text-xs text-muted-foreground",children:"No saved sessions."}):s.length===0?d.jsxs("div",{className:"p-4 text-xs text-muted-foreground",children:['No sessions match "',o,'".']}):d.jsx("ul",{className:"py-1",children:s.map(a=>d.jsx("li",{className:"px-2",children:d.jsxs("button",{className:"w-full min-w-0 flex flex-col items-start rounded px-2 py-2 text-left hover:bg-accent",onClick:()=>{t(a.id),r(!1)},children:[d.jsx("span",{className:"w-full truncate text-sm font-medium",children:a.id}),d.jsxs("span",{className:"flex items-center gap-1.5 text-[10px] text-muted-foreground",children:[a.blockCount," block",a.blockCount===1?"":"s"," · v",a.version," · ",Ih(a.updatedAt),a.shared&&d.jsxs("span",{className:"inline-flex items-center gap-0.5 text-emerald-500",title:"Shared to cloud LaunchSecure",children:[d.jsx("svg",{className:"h-2.5 w-2.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:3,children:d.jsx("path",{d:"M20 6L9 17l-5-5"})}),"shared"]})]})]})},a.id))})})]})]})}function Oh(){return d.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[d.jsx("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2"}),d.jsx("path",{d:"M8 21h8"}),d.jsx("path",{d:"M12 17v4"}),d.jsx("path",{d:"M9.5 7.5 15 10l-5.5 2.5z",fill:"currentColor",stroke:"none"})]})}function zd(e,t){return e.find(n=>n.name===t)??e.find(n=>n.active)??e[0]}function Ad({org:e,project:t}){return d.jsxs(d.Fragment,{children:[d.jsxs("svg",{className:"h-3.5 w-3.5 shrink-0 text-[hsl(var(--primary))]",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,"aria-hidden":"true",children:[d.jsx("circle",{cx:"12",cy:"12",r:"10"}),d.jsx("path",{d:"M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"})]}),d.jsx("span",{className:"truncate font-medium text-[hsl(var(--primary))]",children:e||"—"}),d.jsx("span",{className:"shrink-0 opacity-40",children:"/"}),d.jsx("span",{className:"max-w-[14rem] truncate font-medium",children:t||"—"})]})}function Bh({courses:e,selected:t,onSelect:n}){const r=zd(e,t);return d.jsxs("div",{className:"flex h-8 min-w-0 items-center gap-2 rounded-md border px-2.5 text-xs",title:`${(r==null?void 0:r.org)||"—"} / ${(r==null?void 0:r.project)||"—"} · Course: ${(r==null?void 0:r.name)??"—"} — the Launch Course this deck shares to (does not change your active course)`,children:[d.jsxs("span",{className:"hidden min-w-0 items-center gap-2 md:flex",children:[d.jsx(Ad,{org:r==null?void 0:r.org,project:r==null?void 0:r.project}),d.jsx("span",{className:"mx-0.5 h-4 w-px shrink-0 bg-border","aria-hidden":"true"})]}),d.jsx("span",{className:"hidden shrink-0 font-semibold uppercase tracking-wide text-muted-foreground sm:inline",children:"Course"}),d.jsx("select",{value:(r==null?void 0:r.name)??"",onChange:o=>n(o.target.value),className:"cursor-pointer bg-transparent font-medium text-[hsl(var(--primary))] outline-none","aria-label":"Share target course",children:e.map(o=>d.jsxs("option",{value:o.name,disabled:!o.usable,children:[o.name,o.active?" (active)":"",o.usable?"":" — incomplete"]},o.name))})]})}const Fh={idle:{label:"Connected",dotClass:"connected"},delivered:{label:"Content delivered",dotClass:"connected"},feedback:{label:"Feedback needed",dotClass:"feedback"}};function Uh({connected:e,theme:t,setTheme:n,status:r,availableSessions:o,onOpenSession:l,courses:i,selectedCourse:s,onSelectCourse:a,pinnedSessionIds:u,onOpenAllPinned:p,onClearPins:v}){const h=t==="dark"?"light":"dark",x=e?Fh[r]:{label:"Disconnected",dotClass:"disconnected"},y=zd(i,s);return d.jsxs("header",{className:"sticky top-0 z-40 flex flex-col border-b bg-background shadow-sm",children:[d.jsxs("div",{className:"flex h-14 items-center gap-2 px-4",children:[d.jsxs("span",{className:"flex min-w-0 flex-1 items-center gap-2.5",children:[d.jsx("span",{className:"h-6 w-6 shrink-0 text-[hsl(var(--primary))]",children:d.jsx(Oh,{})}),d.jsx("span",{className:"hidden truncate text-base font-semibold tracking-tight sm:inline",children:"LaunchDeck"})]}),i.length>0&&d.jsx(Bh,{courses:i,selected:s,onSelect:a}),d.jsxs("div",{className:"flex min-w-0 flex-1 items-center justify-end gap-2 sm:gap-3",children:[u.length>0&&d.jsxs("div",{className:"flex items-center gap-1",children:[d.jsxs("button",{onClick:p,className:"flex h-8 items-center gap-1.5 rounded-md px-2.5 text-xs text-primary transition-colors hover:bg-accent",title:`Open all ${u.length} watched deck${u.length===1?"":"s"}:
|
|
41
|
+
${u.map((k,_)=>`${_+1}. ${k}`).join(`
|
|
42
|
+
`)}`,"aria-label":"Open all watched decks",children:[d.jsxs("svg",{className:"h-4 w-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[d.jsx("path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"}),d.jsx("circle",{cx:"12",cy:"12",r:"3",fill:"currentColor",stroke:"none"})]}),d.jsx("span",{className:"hidden md:inline",children:"Watching"}),d.jsx("span",{className:"rounded bg-primary px-1.5 text-[10px] leading-4 text-primary-foreground",children:u.length})]}),d.jsx("button",{onClick:v,className:"flex h-8 w-8 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-destructive hover:text-destructive-foreground",title:"Stop watching all decks","aria-label":"Stop watching all decks",children:d.jsx("svg",{className:"h-4 w-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:d.jsx("path",{d:"M18 6L6 18M6 6l12 12"})})})]}),d.jsx(Dh,{sessions:o,onOpen:l}),d.jsxs("span",{className:"flex shrink-0 items-center gap-1.5 text-xs text-muted-foreground",title:x.label,children:[d.jsx("span",{className:`deck-status-dot ${x.dotClass}`}),d.jsx("span",{className:"hidden lg:inline",children:x.label})]}),d.jsx("button",{onClick:()=>n(h),className:"flex h-8 w-8 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-foreground","aria-label":`Switch to ${h} mode`,children:t==="dark"?d.jsxs("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:[d.jsx("circle",{cx:"12",cy:"12",r:"5"}),d.jsx("path",{d:"M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42"})]}):d.jsx("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:d.jsx("path",{d:"M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"})})})]})]}),i.length>0&&d.jsx("div",{className:"flex items-center gap-2 border-t px-4 py-1.5 text-xs md:hidden",title:"Org / project this deck targets",children:d.jsx(Ad,{org:y==null?void 0:y.org,project:y==null?void 0:y.project})})]})}function Wh({content:e,theme:t}){const n=C.useRef(null);return C.useEffect(()=>{const r=n.current;if(!r)return;const o=r.contentDocument;if(!o)return;const l=t?t==="dark":document.documentElement.classList.contains("dark"),i=l?"#0b0e14":"#ffffff";o.open(),o.write(`
|
|
43
|
+
<!DOCTYPE html>
|
|
44
|
+
<html>
|
|
45
|
+
<head>
|
|
46
|
+
<meta charset="UTF-8">
|
|
47
|
+
<meta name="color-scheme" content="${l?"dark":"light"}">
|
|
48
|
+
<style>
|
|
49
|
+
*, *::before, *::after { box-sizing: border-box; }
|
|
50
|
+
html, body {
|
|
51
|
+
margin: 0; padding: 0; height: 100%;
|
|
52
|
+
color: ${l?"#e4e4e7":"#18181b"};
|
|
53
|
+
background: ${i};
|
|
54
|
+
}
|
|
55
|
+
</style>
|
|
56
|
+
</head>
|
|
57
|
+
<body>${e}</body>
|
|
58
|
+
</html>
|
|
59
|
+
`),o.close()},[e,t]),d.jsx("iframe",{ref:n,sandbox:"allow-same-origin",className:"w-full h-full border-0",title:"HTML Preview"})}const Hh="modulepreload",Vh=function(e){return"/"+e},Za={},Md=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),s=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));o=Promise.allSettled(n.map(a=>{if(a=Vh(a),a in Za)return;Za[a]=!0;const u=a.endsWith(".css"),p=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${a}"]${p}`))return;const v=document.createElement("link");if(v.rel=u?"stylesheet":Hh,u||(v.as="script"),v.crossOrigin="",v.href=a,s&&v.setAttribute("nonce",s),document.head.appendChild(v),u)return new Promise((h,x)=>{v.addEventListener("load",h),v.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${a}`)))})}))}function l(i){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i}return o.then(i=>{for(const s of i||[])s.status==="rejected"&&l(s.reason);return t().catch(l)})},Ja=.1,eu=8,tu=32,Qh="'DM Sans', system-ui, sans-serif";function nu(e,t,n){return Math.min(n,Math.max(t,e))}let Pi=null,Rl=null;async function qh(){Rl||(Rl=Md(()=>import("./mermaid.core-BaQyIOvj.js").then(r=>r.bD),[]).then(r=>r.default));const e=await Rl,n=document.documentElement.classList.contains("dark")?"dark":"default";return Pi!==n&&(e.initialize({startOnLoad:!1,theme:n,securityLevel:"loose",fontFamily:Qh,suppressErrorRendering:!0}),Pi=n),e}function Kh({content:e,renderedSvg:t,onError:n,theme:r,version:o}){const l=C.useRef(null),i=C.useRef(null),s=C.useRef(null),[a,u]=C.useState(null),p=C.useRef({scale:1,tx:0,ty:0}),v=C.useRef({w:0,h:0}),h=C.useCallback(()=>{const f=s.current;if(!f)return;const{scale:c,tx:m,ty:g}=p.current;f.style.transform=`translate(${m}px, ${g}px) scale(${c})`},[]),x=C.useCallback(()=>{const f=i.current,{w:c,h:m}=v.current;if(!f||!c||!m)return;const g=nu(Math.min((f.clientWidth-tu)/c,(f.clientHeight-tu)/m,1),Ja,eu);p.current={scale:g,tx:(f.clientWidth-c*g)/2,ty:(f.clientHeight-m*g)/2},h()},[h]),y=C.useCallback((f,c,m)=>{const g=nu(f,Ja,eu),{scale:w,tx:S,ty:b}=p.current,N=(c-S)/w,L=(m-b)/w;p.current={scale:g,tx:c-N*g,ty:m-L*g},h()},[h]),k=C.useCallback(f=>{const c=i.current;c&&y(p.current.scale*f,c.clientWidth/2,c.clientHeight/2)},[y]);C.useEffect(()=>{u(null)},[e,t,o]),C.useEffect(()=>{Pi=null},[r]);const _=C.useCallback(()=>{const f=l.current;if(!f)return;const c=f.querySelector("svg");if(!c)return;const m=(c.getAttribute("viewBox")||"").split(/[\s,]+/).map(Number);let g=m[2],w=m[3];if(!g||!w){const S=c.getBoundingClientRect();g=S.width,w=S.height}v.current={w:g,h:w},c.style.maxWidth="none",c.style.width=`${g}px`,c.style.height=`${w}px`,x()},[x]);return C.useEffect(()=>{const f=l.current;if(!f)return;if(t&&t.trim()){f.innerHTML=t,_();return}if(!e.trim())return;let c=!1;const m=`mermaid-${Date.now()}-${Math.random().toString(36).slice(2,8)}`;return qh().then(g=>g.parse(e.trim()).then(()=>g.render(m,e.trim()))).then(({svg:g})=>{if(c)return;const w=l.current;w&&(w.innerHTML=g,_())}).catch(g=>{var S;if(c)return;const w=String(g);u(w),l.current&&(l.current.innerHTML=""),(S=document.getElementById(m))==null||S.remove(),n==null||n(w,e.trim())}),()=>{c=!0}},[e,t,r,o,_,n]),C.useEffect(()=>{const f=i.current;if(!f)return;const c=R=>{R.preventDefault();const K=f.getBoundingClientRect(),me=R.deltaY<0?1.1:1/1.1;y(p.current.scale*me,R.clientX-K.left,R.clientY-K.top)};let m=!1,g=-1,w=0,S=0;const b=R=>{m=!0,g=R.pointerId,w=R.clientX,S=R.clientY;try{f.setPointerCapture(R.pointerId)}catch{}f.style.cursor="grabbing"},N=R=>{!m||R.pointerId!==g||(p.current.tx+=R.clientX-w,p.current.ty+=R.clientY-S,w=R.clientX,S=R.clientY,h())},L=R=>{if(!(R.pointerId!==g&&g!==-1)){m=!1,g=-1,f.style.cursor="grab";try{f.releasePointerCapture(R.pointerId)}catch{}}};return f.addEventListener("wheel",c,{passive:!1}),f.addEventListener("pointerdown",b),f.addEventListener("pointermove",N),f.addEventListener("pointerup",L),f.addEventListener("pointerleave",L),()=>{f.removeEventListener("wheel",c),f.removeEventListener("pointerdown",b),f.removeEventListener("pointermove",N),f.removeEventListener("pointerup",L),f.removeEventListener("pointerleave",L)}},[y,h]),C.useEffect(()=>{const f=i.current;if(!f||typeof ResizeObserver>"u")return;const c=new ResizeObserver(()=>x());return c.observe(f),()=>c.disconnect()},[x]),d.jsxs("div",{className:"relative h-full w-full min-h-0 flex-1",children:[d.jsx("div",{ref:i,className:`mermaid-viewport absolute inset-0 overflow-hidden ${a?"hidden":""}`,style:{cursor:"grab",touchAction:"none"},children:d.jsx("div",{ref:s,className:"mermaid-pan",style:{transformOrigin:"0 0",willChange:"transform"},children:d.jsx("div",{ref:l,className:"mermaid-container"})})}),!a&&d.jsx(Yh,{onIn:()=>k(1.2),onOut:()=>k(1/1.2),onReset:x}),a&&d.jsx("div",{className:"flex h-full items-center justify-center",children:d.jsxs("div",{className:"text-center text-muted-foreground",children:[d.jsx("p",{className:"text-sm font-medium",children:"Diagram syntax error"}),d.jsx("p",{className:"mt-1 text-xs",children:a})]})})]})}function Yh({onIn:e,onOut:t,onReset:n}){const r="flex h-9 w-9 items-center justify-center border border-border bg-background/80 text-muted-foreground shadow-sm backdrop-blur transition-colors hover:border-primary hover:text-foreground";return d.jsxs("div",{className:"absolute right-3 top-3 z-10 flex flex-col overflow-hidden rounded-lg shadow-lg",children:[d.jsx("button",{onClick:e,className:`${r} rounded-t-lg border-b-0`,"aria-label":"Zoom in",title:"Zoom in",children:d.jsxs("svg",{className:"h-4 w-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",children:[d.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),d.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})}),d.jsx("button",{onClick:t,className:r,"aria-label":"Zoom out",title:"Zoom out",children:d.jsx("svg",{className:"h-4 w-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",children:d.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})})}),d.jsx("button",{onClick:n,className:`${r} rounded-b-lg border-t-0`,"aria-label":"Reset zoom (fit)",title:"Fit to screen",children:d.jsxs("svg",{className:"h-4 w-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[d.jsx("path",{d:"M8 3H5a2 2 0 0 0-2 2v3"}),d.jsx("path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"}),d.jsx("path",{d:"M3 16v3a2 2 0 0 0 2 2h3"}),d.jsx("path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"})]})})]})}function Rs(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var on=Rs();function $d(e){on=e}var ir={exec:()=>null};function W(e,t=""){let n=typeof e=="string"?e:e.source;const r={replace:(o,l)=>{let i=typeof l=="string"?l:l.source;return i=i.replace(ke.caret,"$1"),n=n.replace(o,i),r},getRegex:()=>new RegExp(n,t)};return r}var ke={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")},Gh=/^(?:[ \t]*(?:\n|$))+/,Xh=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Zh=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Rr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Jh=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ps=/(?:[*+-]|\d{1,9}[.)])/,Id=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Dd=W(Id).replace(/bull/g,Ps).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(),em=W(Id).replace(/bull/g,Ps).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(),zs=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,tm=/^[^\n]+/,As=/(?!\s*\])(?:\\.|[^\[\]\\])+/,nm=W(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",As).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),rm=W(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Ps).getRegex(),rl="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",Ms=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,om=W("^ {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",Ms).replace("tag",rl).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Od=W(zs).replace("hr",Rr).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",rl).getRegex(),lm=W(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Od).getRegex(),$s={blockquote:lm,code:Xh,def:nm,fences:Zh,heading:Jh,hr:Rr,html:om,lheading:Dd,list:rm,newline:Gh,paragraph:Od,table:ir,text:tm},ru=W("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Rr).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",rl).getRegex(),im={...$s,lheading:em,table:ru,paragraph:W(zs).replace("hr",Rr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ru).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",rl).getRegex()},sm={...$s,html:W(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ms).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:ir,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:W(zs).replace("hr",Rr).replace("heading",` *#{1,6} *[^
|
|
60
|
+
]`).replace("lheading",Dd).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},am=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,um=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Bd=/^( {2,}|\\)\n(?!\s*$)/,cm=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ol=/[\p{P}\p{S}]/u,Is=/[\s\p{P}\p{S}]/u,Fd=/[^\s\p{P}\p{S}]/u,dm=W(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Is).getRegex(),Ud=/(?!~)[\p{P}\p{S}]/u,fm=/(?!~)[\s\p{P}\p{S}]/u,pm=/(?:[^\s\p{P}\p{S}]|~)/u,hm=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,Wd=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,mm=W(Wd,"u").replace(/punct/g,ol).getRegex(),gm=W(Wd,"u").replace(/punct/g,Ud).getRegex(),Hd="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",vm=W(Hd,"gu").replace(/notPunctSpace/g,Fd).replace(/punctSpace/g,Is).replace(/punct/g,ol).getRegex(),ym=W(Hd,"gu").replace(/notPunctSpace/g,pm).replace(/punctSpace/g,fm).replace(/punct/g,Ud).getRegex(),xm=W("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Fd).replace(/punctSpace/g,Is).replace(/punct/g,ol).getRegex(),wm=W(/\\(punct)/,"gu").replace(/punct/g,ol).getRegex(),km=W(/^<(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(),bm=W(Ms).replace("(?:-->|$)","-->").getRegex(),Sm=W("^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",bm).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Io=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Em=W(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Io).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Vd=W(/^!?\[(label)\]\[(ref)\]/).replace("label",Io).replace("ref",As).getRegex(),Qd=W(/^!?\[(ref)\](?:\[\])?/).replace("ref",As).getRegex(),Cm=W("reflink|nolink(?!\\()","g").replace("reflink",Vd).replace("nolink",Qd).getRegex(),Ds={_backpedal:ir,anyPunctuation:wm,autolink:km,blockSkip:hm,br:Bd,code:um,del:ir,emStrongLDelim:mm,emStrongRDelimAst:vm,emStrongRDelimUnd:xm,escape:am,link:Em,nolink:Qd,punctuation:dm,reflink:Vd,reflinkSearch:Cm,tag:Sm,text:cm,url:ir},Nm={...Ds,link:W(/^!?\[(label)\]\((.*?)\)/).replace("label",Io).getRegex(),reflink:W(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Io).getRegex()},zi={...Ds,emStrongRDelimAst:ym,emStrongLDelim:gm,url:W(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},jm={...zi,br:W(Bd).replace("{2,}","*").getRegex(),text:W(zi.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Yr={normal:$s,gfm:im,pedantic:sm},Hn={normal:Ds,gfm:zi,breaks:jm,pedantic:Nm},Lm={"&":"&","<":"<",">":">",'"':""","'":"'"},ou=e=>Lm[e];function lt(e,t){if(t){if(ke.escapeTest.test(e))return e.replace(ke.escapeReplace,ou)}else if(ke.escapeTestNoEncode.test(e))return e.replace(ke.escapeReplaceNoEncode,ou);return e}function lu(e){try{e=encodeURI(e).replace(ke.percentDecode,"%")}catch{return null}return e}function iu(e,t){var l;const n=e.replace(ke.findPipe,(i,s,a)=>{let u=!1,p=s;for(;--p>=0&&a[p]==="\\";)u=!u;return u?"|":" |"}),r=n.split(ke.splitPipe);let o=0;if(r[0].trim()||r.shift(),r.length>0&&!((l=r.at(-1))!=null&&l.trim())&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;o<r.length;o++)r[o]=r[o].trim().replace(ke.slashPipe,"|");return r}function Vn(e,t,n){const r=e.length;if(r===0)return"";let o=0;for(;o<r&&e.charAt(r-o-1)===t;)o++;return e.slice(0,r-o)}function _m(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function su(e,t,n,r,o){const l=t.href,i=t.title||null,s=e[1].replace(o.other.outputLinkReplace,"$1");r.state.inLink=!0;const a={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:l,title:i,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,a}function Tm(e,t,n){const r=e.match(n.other.indentCodeCompensation);if(r===null)return t;const o=r[1];return t.split(`
|
|
61
|
+
`).map(l=>{const i=l.match(n.other.beginningSpace);if(i===null)return l;const[s]=i;return s.length>=o.length?l.slice(o.length):l}).join(`
|
|
62
|
+
`)}var Do=class{constructor(e){Q(this,"options");Q(this,"rules");Q(this,"lexer");this.options=e||on}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Vn(n,`
|
|
63
|
+
`)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const n=t[0],r=Tm(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){const r=Vn(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Vn(t[0],`
|
|
64
|
+
`)}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let n=Vn(t[0],`
|
|
65
|
+
`).split(`
|
|
66
|
+
`),r="",o="";const l=[];for(;n.length>0;){let i=!1;const s=[];let a;for(a=0;a<n.length;a++)if(this.rules.other.blockquoteStart.test(n[a]))s.push(n[a]),i=!0;else if(!i)s.push(n[a]);else break;n=n.slice(a);const u=s.join(`
|
|
67
|
+
`),p=u.replace(this.rules.other.blockquoteSetextReplace,`
|
|
68
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
|
|
69
|
+
${u}`:u,o=o?`${o}
|
|
70
|
+
${p}`:p;const v=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(p,l,!0),this.lexer.state.top=v,n.length===0)break;const h=l.at(-1);if((h==null?void 0:h.type)==="code")break;if((h==null?void 0:h.type)==="blockquote"){const x=h,y=x.raw+`
|
|
71
|
+
`+n.join(`
|
|
72
|
+
`),k=this.blockquote(y);l[l.length-1]=k,r=r.substring(0,r.length-x.raw.length)+k.raw,o=o.substring(0,o.length-x.text.length)+k.text;break}else if((h==null?void 0:h.type)==="list"){const x=h,y=x.raw+`
|
|
73
|
+
`+n.join(`
|
|
74
|
+
`),k=this.list(y);l[l.length-1]=k,r=r.substring(0,r.length-h.raw.length)+k.raw,o=o.substring(0,o.length-x.raw.length)+k.raw,n=y.substring(l.at(-1).raw.length).split(`
|
|
75
|
+
`);continue}}return{type:"blockquote",raw:r,tokens:l,text:o}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim();const r=n.length>1,o={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");const l=this.rules.other.listItemRegex(n);let i=!1;for(;e;){let a=!1,u="",p="";if(!(t=l.exec(e))||this.rules.block.hr.test(e))break;u=t[0],e=e.substring(u.length);let v=t[2].split(`
|
|
76
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,f=>" ".repeat(3*f.length)),h=e.split(`
|
|
77
|
+
`,1)[0],x=!v.trim(),y=0;if(this.options.pedantic?(y=2,p=v.trimStart()):x?y=t[1].length+1:(y=t[2].search(this.rules.other.nonSpaceChar),y=y>4?1:y,p=v.slice(y),y+=t[1].length),x&&this.rules.other.blankLine.test(h)&&(u+=h+`
|
|
78
|
+
`,e=e.substring(h.length+1),a=!0),!a){const f=this.rules.other.nextBulletRegex(y),c=this.rules.other.hrRegex(y),m=this.rules.other.fencesBeginRegex(y),g=this.rules.other.headingBeginRegex(y),w=this.rules.other.htmlBeginRegex(y);for(;e;){const S=e.split(`
|
|
79
|
+
`,1)[0];let b;if(h=S,this.options.pedantic?(h=h.replace(this.rules.other.listReplaceNesting," "),b=h):b=h.replace(this.rules.other.tabCharGlobal," "),m.test(h)||g.test(h)||w.test(h)||f.test(h)||c.test(h))break;if(b.search(this.rules.other.nonSpaceChar)>=y||!h.trim())p+=`
|
|
80
|
+
`+b.slice(y);else{if(x||v.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||m.test(v)||g.test(v)||c.test(v))break;p+=`
|
|
81
|
+
`+h}!x&&!h.trim()&&(x=!0),u+=S+`
|
|
82
|
+
`,e=e.substring(S.length+1),v=b.slice(y)}}o.loose||(i?o.loose=!0:this.rules.other.doubleBlankLine.test(u)&&(i=!0));let k=null,_;this.options.gfm&&(k=this.rules.other.listIsTask.exec(p),k&&(_=k[0]!=="[ ] ",p=p.replace(this.rules.other.listReplaceTask,""))),o.items.push({type:"list_item",raw:u,task:!!k,checked:_,loose:!1,text:p,tokens:[]}),o.raw+=u}const s=o.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;o.raw=o.raw.trimEnd();for(let a=0;a<o.items.length;a++)if(this.lexer.state.top=!1,o.items[a].tokens=this.lexer.blockTokens(o.items[a].text,[]),!o.loose){const u=o.items[a].tokens.filter(v=>v.type==="space"),p=u.length>0&&u.some(v=>this.rules.other.anyLine.test(v.raw));o.loose=p}if(o.loose)for(let a=0;a<o.items.length;a++)o.items[a].loose=!0;return o}}html(e){const t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){const t=this.rules.block.def.exec(e);if(t){const n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:r,title:o}}}table(e){var i;const t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;const n=iu(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=(i=t[3])!=null&&i.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
83
|
+
`):[],l={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(const s of r)this.rules.other.tableAlignRight.test(s)?l.align.push("right"):this.rules.other.tableAlignCenter.test(s)?l.align.push("center"):this.rules.other.tableAlignLeft.test(s)?l.align.push("left"):l.align.push(null);for(let s=0;s<n.length;s++)l.header.push({text:n[s],tokens:this.lexer.inline(n[s]),header:!0,align:l.align[s]});for(const s of o)l.rows.push(iu(s,l.header.length).map((a,u)=>({text:a,tokens:this.lexer.inline(a),header:!1,align:l.align[u]})));return l}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const n=t[1].charAt(t[1].length-1)===`
|
|
84
|
+
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;const l=Vn(n.slice(0,-1),"\\");if((n.length-l.length)%2===0)return}else{const l=_m(t[2],"()");if(l===-2)return;if(l>-1){const s=(t[0].indexOf("!")===0?5:4)+t[1].length+l;t[2]=t[2].substring(0,l),t[0]=t[0].substring(0,s).trim(),t[3]=""}}let r=t[2],o="";if(this.options.pedantic){const l=this.rules.other.pedanticHrefTitle.exec(r);l&&(r=l[1],o=l[3])}else o=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?r=r.slice(1):r=r.slice(1,-1)),su(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){const r=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=t[r.toLowerCase()];if(!o){const l=n[0].charAt(0);return{type:"text",raw:l,text:l}}return su(n,o,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))return;if(!(r[1]||r[2]||"")||!n||this.rules.inline.punctuation.exec(n)){const l=[...r[0]].length-1;let i,s,a=l,u=0;const p=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(p.lastIndex=0,t=t.slice(-1*e.length+l);(r=p.exec(t))!=null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(s=[...i].length,r[3]||r[4]){a+=s;continue}else if((r[5]||r[6])&&l%3&&!((l+s)%3)){u+=s;continue}if(a-=s,a>0)continue;s=Math.min(s,s+a+u);const v=[...r[0]][0].length,h=e.slice(0,l+r.index+v+s);if(Math.min(l,s)%2){const y=h.slice(1,-1);return{type:"em",raw:h,text:y,tokens:this.lexer.inlineTokens(y)}}const x=h.slice(2,-2);return{type:"strong",raw:h,text:x,tokens:this.lexer.inlineTokens(x)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," ");const r=this.rules.other.nonSpaceChar.test(n),o=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&o&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let n,r;return t[2]==="@"?(n=t[1],r="mailto:"+n):(n=t[1],r=n),{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(e){var n;let t;if(t=this.rules.inline.url.exec(e)){let r,o;if(t[2]==="@")r=t[0],o="mailto:"+r;else{let l;do l=t[0],t[0]=((n=this.rules.inline._backpedal.exec(t[0]))==null?void 0:n[0])??"";while(l!==t[0]);r=t[0],t[1]==="www."?o="http://"+t[0]:o=t[0]}return{type:"link",raw:t[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){const n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},ht=class Ai{constructor(t){Q(this,"tokens");Q(this,"options");Q(this,"state");Q(this,"tokenizer");Q(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||on,this.options.tokenizer=this.options.tokenizer||new Do,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const n={other:ke,block:Yr.normal,inline:Hn.normal};this.options.pedantic?(n.block=Yr.pedantic,n.inline=Hn.pedantic):this.options.gfm&&(n.block=Yr.gfm,this.options.breaks?n.inline=Hn.breaks:n.inline=Hn.gfm),this.tokenizer.rules=n}static get rules(){return{block:Yr,inline:Hn}}static lex(t,n){return new Ai(n).lex(t)}static lexInline(t,n){return new Ai(n).inlineTokens(t)}lex(t){t=t.replace(ke.carriageReturn,`
|
|
85
|
+
`),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){const r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){var o,l,i;for(this.options.pedantic&&(t=t.replace(ke.tabCharGlobal," ").replace(ke.spaceLine,""));t;){let s;if((l=(o=this.options.extensions)==null?void 0:o.block)!=null&&l.some(u=>(s=u.call({lexer:this},t,n))?(t=t.substring(s.raw.length),n.push(s),!0):!1))continue;if(s=this.tokenizer.space(t)){t=t.substring(s.raw.length);const u=n.at(-1);s.raw.length===1&&u!==void 0?u.raw+=`
|
|
86
|
+
`:n.push(s);continue}if(s=this.tokenizer.code(t)){t=t.substring(s.raw.length);const u=n.at(-1);(u==null?void 0:u.type)==="paragraph"||(u==null?void 0:u.type)==="text"?(u.raw+=`
|
|
87
|
+
`+s.raw,u.text+=`
|
|
88
|
+
`+s.text,this.inlineQueue.at(-1).src=u.text):n.push(s);continue}if(s=this.tokenizer.fences(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.heading(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.hr(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.blockquote(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.list(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.html(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.def(t)){t=t.substring(s.raw.length);const u=n.at(-1);(u==null?void 0:u.type)==="paragraph"||(u==null?void 0:u.type)==="text"?(u.raw+=`
|
|
89
|
+
`+s.raw,u.text+=`
|
|
90
|
+
`+s.raw,this.inlineQueue.at(-1).src=u.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title});continue}if(s=this.tokenizer.table(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.lheading(t)){t=t.substring(s.raw.length),n.push(s);continue}let a=t;if((i=this.options.extensions)!=null&&i.startBlock){let u=1/0;const p=t.slice(1);let v;this.options.extensions.startBlock.forEach(h=>{v=h.call({lexer:this},p),typeof v=="number"&&v>=0&&(u=Math.min(u,v))}),u<1/0&&u>=0&&(a=t.substring(0,u+1))}if(this.state.top&&(s=this.tokenizer.paragraph(a))){const u=n.at(-1);r&&(u==null?void 0:u.type)==="paragraph"?(u.raw+=`
|
|
91
|
+
`+s.raw,u.text+=`
|
|
92
|
+
`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=u.text):n.push(s),r=a.length!==t.length,t=t.substring(s.raw.length);continue}if(s=this.tokenizer.text(t)){t=t.substring(s.raw.length);const u=n.at(-1);(u==null?void 0:u.type)==="text"?(u.raw+=`
|
|
93
|
+
`+s.raw,u.text+=`
|
|
94
|
+
`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=u.text):n.push(s);continue}if(t){const u="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){var s,a,u;let r=t,o=null;if(this.tokens.links){const p=Object.keys(this.tokens.links);if(p.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)p.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,o.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(o=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)r=r.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let l=!1,i="";for(;t;){l||(i=""),l=!1;let p;if((a=(s=this.options.extensions)==null?void 0:s.inline)!=null&&a.some(h=>(p=h.call({lexer:this},t,n))?(t=t.substring(p.raw.length),n.push(p),!0):!1))continue;if(p=this.tokenizer.escape(t)){t=t.substring(p.raw.length),n.push(p);continue}if(p=this.tokenizer.tag(t)){t=t.substring(p.raw.length),n.push(p);continue}if(p=this.tokenizer.link(t)){t=t.substring(p.raw.length),n.push(p);continue}if(p=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(p.raw.length);const h=n.at(-1);p.type==="text"&&(h==null?void 0:h.type)==="text"?(h.raw+=p.raw,h.text+=p.text):n.push(p);continue}if(p=this.tokenizer.emStrong(t,r,i)){t=t.substring(p.raw.length),n.push(p);continue}if(p=this.tokenizer.codespan(t)){t=t.substring(p.raw.length),n.push(p);continue}if(p=this.tokenizer.br(t)){t=t.substring(p.raw.length),n.push(p);continue}if(p=this.tokenizer.del(t)){t=t.substring(p.raw.length),n.push(p);continue}if(p=this.tokenizer.autolink(t)){t=t.substring(p.raw.length),n.push(p);continue}if(!this.state.inLink&&(p=this.tokenizer.url(t))){t=t.substring(p.raw.length),n.push(p);continue}let v=t;if((u=this.options.extensions)!=null&&u.startInline){let h=1/0;const x=t.slice(1);let y;this.options.extensions.startInline.forEach(k=>{y=k.call({lexer:this},x),typeof y=="number"&&y>=0&&(h=Math.min(h,y))}),h<1/0&&h>=0&&(v=t.substring(0,h+1))}if(p=this.tokenizer.inlineText(v)){t=t.substring(p.raw.length),p.raw.slice(-1)!=="_"&&(i=p.raw.slice(-1)),l=!0;const h=n.at(-1);(h==null?void 0:h.type)==="text"?(h.raw+=p.raw,h.text+=p.text):n.push(p);continue}if(t){const h="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return n}},Oo=class{constructor(e){Q(this,"options");Q(this,"parser");this.options=e||on}space(e){return""}code({text:e,lang:t,escaped:n}){var l;const r=(l=(t||"").match(ke.notSpaceStart))==null?void 0:l[0],o=e.replace(ke.endingNewline,"")+`
|
|
95
|
+
`;return r?'<pre><code class="language-'+lt(r)+'">'+(n?o:lt(o,!0))+`</code></pre>
|
|
96
|
+
`:"<pre><code>"+(n?o:lt(o,!0))+`</code></pre>
|
|
97
|
+
`}blockquote({tokens:e}){return`<blockquote>
|
|
98
|
+
${this.parser.parse(e)}</blockquote>
|
|
99
|
+
`}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
100
|
+
`}hr(e){return`<hr>
|
|
101
|
+
`}list(e){const t=e.ordered,n=e.start;let r="";for(let i=0;i<e.items.length;i++){const s=e.items[i];r+=this.listitem(s)}const o=t?"ol":"ul",l=t&&n!==1?' start="'+n+'"':"";return"<"+o+l+`>
|
|
102
|
+
`+r+"</"+o+`>
|
|
103
|
+
`}listitem(e){var n;let t="";if(e.task){const r=this.checkbox({checked:!!e.checked});e.loose?((n=e.tokens[0])==null?void 0:n.type)==="paragraph"?(e.tokens[0].text=r+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=r+" "+lt(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:r+" ",text:r+" ",escaped:!0}):t+=r+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>
|
|
104
|
+
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|
105
|
+
`}table(e){let t="",n="";for(let o=0;o<e.header.length;o++)n+=this.tablecell(e.header[o]);t+=this.tablerow({text:n});let r="";for(let o=0;o<e.rows.length;o++){const l=e.rows[o];n="";for(let i=0;i<l.length;i++)n+=this.tablecell(l[i]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
|
|
106
|
+
<thead>
|
|
107
|
+
`+t+`</thead>
|
|
108
|
+
`+r+`</table>
|
|
109
|
+
`}tablerow({text:e}){return`<tr>
|
|
110
|
+
${e}</tr>
|
|
111
|
+
`}tablecell(e){const t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|
112
|
+
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${lt(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){const r=this.parser.parseInline(n),o=lu(e);if(o===null)return r;e=o;let l='<a href="'+e+'"';return t&&(l+=' title="'+lt(t)+'"'),l+=">"+r+"</a>",l}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));const o=lu(e);if(o===null)return lt(n);e=o;let l=`<img src="${e}" alt="${n}"`;return t&&(l+=` title="${lt(t)}"`),l+=">",l}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:lt(e.text)}},Os=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},mt=class Mi{constructor(t){Q(this,"options");Q(this,"renderer");Q(this,"textRenderer");this.options=t||on,this.options.renderer=this.options.renderer||new Oo,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Os}static parse(t,n){return new Mi(n).parse(t)}static parseInline(t,n){return new Mi(n).parseInline(t)}parse(t,n=!0){var o,l;let r="";for(let i=0;i<t.length;i++){const s=t[i];if((l=(o=this.options.extensions)==null?void 0:o.renderers)!=null&&l[s.type]){const u=s,p=this.options.extensions.renderers[u.type].call({parser:this},u);if(p!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(u.type)){r+=p||"";continue}}const a=s;switch(a.type){case"space":{r+=this.renderer.space(a);continue}case"hr":{r+=this.renderer.hr(a);continue}case"heading":{r+=this.renderer.heading(a);continue}case"code":{r+=this.renderer.code(a);continue}case"table":{r+=this.renderer.table(a);continue}case"blockquote":{r+=this.renderer.blockquote(a);continue}case"list":{r+=this.renderer.list(a);continue}case"html":{r+=this.renderer.html(a);continue}case"paragraph":{r+=this.renderer.paragraph(a);continue}case"text":{let u=a,p=this.renderer.text(u);for(;i+1<t.length&&t[i+1].type==="text";)u=t[++i],p+=`
|
|
113
|
+
`+this.renderer.text(u);n?r+=this.renderer.paragraph({type:"paragraph",raw:p,text:p,tokens:[{type:"text",raw:p,text:p,escaped:!0}]}):r+=p;continue}default:{const u='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return r}parseInline(t,n=this.renderer){var o,l;let r="";for(let i=0;i<t.length;i++){const s=t[i];if((l=(o=this.options.extensions)==null?void 0:o.renderers)!=null&&l[s.type]){const u=this.options.extensions.renderers[s.type].call({parser:this},s);if(u!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){r+=u||"";continue}}const a=s;switch(a.type){case"escape":{r+=n.text(a);break}case"html":{r+=n.html(a);break}case"link":{r+=n.link(a);break}case"image":{r+=n.image(a);break}case"strong":{r+=n.strong(a);break}case"em":{r+=n.em(a);break}case"codespan":{r+=n.codespan(a);break}case"br":{r+=n.br(a);break}case"del":{r+=n.del(a);break}case"text":{r+=n.text(a);break}default:{const u='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return r}},Dl,uo=(Dl=class{constructor(e){Q(this,"options");Q(this,"block");this.options=e||on}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?ht.lex:ht.lexInline}provideParser(){return this.block?mt.parse:mt.parseInline}},Q(Dl,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),Dl),Rm=class{constructor(...e){Q(this,"defaults",Rs());Q(this,"options",this.setOptions);Q(this,"parse",this.parseMarkdown(!0));Q(this,"parseInline",this.parseMarkdown(!1));Q(this,"Parser",mt);Q(this,"Renderer",Oo);Q(this,"TextRenderer",Os);Q(this,"Lexer",ht);Q(this,"Tokenizer",Do);Q(this,"Hooks",uo);this.use(...e)}walkTokens(e,t){var r,o;let n=[];for(const l of e)switch(n=n.concat(t.call(this,l)),l.type){case"table":{const i=l;for(const s of i.header)n=n.concat(this.walkTokens(s.tokens,t));for(const s of i.rows)for(const a of s)n=n.concat(this.walkTokens(a.tokens,t));break}case"list":{const i=l;n=n.concat(this.walkTokens(i.items,t));break}default:{const i=l;(o=(r=this.defaults.extensions)==null?void 0:r.childTokens)!=null&&o[i.type]?this.defaults.extensions.childTokens[i.type].forEach(s=>{const a=i[s].flat(1/0);n=n.concat(this.walkTokens(a,t))}):i.tokens&&(n=n.concat(this.walkTokens(i.tokens,t)))}}return n}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{const r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){const l=t.renderers[o.name];l?t.renderers[o.name]=function(...i){let s=o.renderer.apply(this,i);return s===!1&&(s=l.apply(this,i)),s}:t.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const l=t[o.level];l?l.unshift(o.tokenizer):t[o.level]=[o.tokenizer],o.start&&(o.level==="block"?t.startBlock?t.startBlock.push(o.start):t.startBlock=[o.start]:o.level==="inline"&&(t.startInline?t.startInline.push(o.start):t.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(t.childTokens[o.name]=o.childTokens)}),r.extensions=t),n.renderer){const o=this.defaults.renderer||new Oo(this.defaults);for(const l in n.renderer){if(!(l in o))throw new Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;const i=l,s=n.renderer[i],a=o[i];o[i]=(...u)=>{let p=s.apply(o,u);return p===!1&&(p=a.apply(o,u)),p||""}}r.renderer=o}if(n.tokenizer){const o=this.defaults.tokenizer||new Do(this.defaults);for(const l in n.tokenizer){if(!(l in o))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;const i=l,s=n.tokenizer[i],a=o[i];o[i]=(...u)=>{let p=s.apply(o,u);return p===!1&&(p=a.apply(o,u)),p}}r.tokenizer=o}if(n.hooks){const o=this.defaults.hooks||new uo;for(const l in n.hooks){if(!(l in o))throw new Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;const i=l,s=n.hooks[i],a=o[i];uo.passThroughHooks.has(l)?o[i]=u=>{if(this.defaults.async)return Promise.resolve(s.call(o,u)).then(v=>a.call(o,v));const p=s.call(o,u);return a.call(o,p)}:o[i]=(...u)=>{let p=s.apply(o,u);return p===!1&&(p=a.apply(o,u)),p}}r.hooks=o}if(n.walkTokens){const o=this.defaults.walkTokens,l=n.walkTokens;r.walkTokens=function(i){let s=[];return s.push(l.call(this,i)),o&&(s=s.concat(o.call(this,i))),s}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return ht.lex(e,t??this.defaults)}parser(e,t){return mt.parse(e,t??this.defaults)}parseMarkdown(e){return(n,r)=>{const o={...r},l={...this.defaults,...o},i=this.onError(!!l.silent,!!l.async);if(this.defaults.async===!0&&o.async===!1)return i(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof n>"u"||n===null)return i(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));l.hooks&&(l.hooks.options=l,l.hooks.block=e);const s=l.hooks?l.hooks.provideLexer():e?ht.lex:ht.lexInline,a=l.hooks?l.hooks.provideParser():e?mt.parse:mt.parseInline;if(l.async)return Promise.resolve(l.hooks?l.hooks.preprocess(n):n).then(u=>s(u,l)).then(u=>l.hooks?l.hooks.processAllTokens(u):u).then(u=>l.walkTokens?Promise.all(this.walkTokens(u,l.walkTokens)).then(()=>u):u).then(u=>a(u,l)).then(u=>l.hooks?l.hooks.postprocess(u):u).catch(i);try{l.hooks&&(n=l.hooks.preprocess(n));let u=s(n,l);l.hooks&&(u=l.hooks.processAllTokens(u)),l.walkTokens&&this.walkTokens(u,l.walkTokens);let p=a(u,l);return l.hooks&&(p=l.hooks.postprocess(p)),p}catch(u){return i(u)}}}onError(e,t){return n=>{if(n.message+=`
|
|
114
|
+
Please report this to https://github.com/markedjs/marked.`,e){const r="<p>An error occurred:</p><pre>"+lt(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}},tn=new Rm;function H(e,t){return tn.parse(e,t)}H.options=H.setOptions=function(e){return tn.setOptions(e),H.defaults=tn.defaults,$d(H.defaults),H};H.getDefaults=Rs;H.defaults=on;H.use=function(...e){return tn.use(...e),H.defaults=tn.defaults,$d(H.defaults),H};H.walkTokens=function(e,t){return tn.walkTokens(e,t)};H.parseInline=tn.parseInline;H.Parser=mt;H.parser=mt.parse;H.Renderer=Oo;H.TextRenderer=Os;H.Lexer=ht;H.lexer=ht.lex;H.Tokenizer=Do;H.Hooks=uo;H.parse=H;H.options;H.setOptions;H.use;H.walkTokens;H.parseInline;mt.parse;ht.lex;function Pm({content:e,theme:t}){const n=C.useRef(null),r=C.useMemo(()=>H.parse(e,{async:!1}),[e]);return C.useEffect(()=>{const o=n.current;if(!o)return;const l=o.contentDocument;if(!l)return;const i=t?t==="dark":document.documentElement.classList.contains("dark"),s=i?"#0b0e14":"#ffffff";l.open(),l.write(`
|
|
115
|
+
<!DOCTYPE html>
|
|
116
|
+
<html>
|
|
117
|
+
<head>
|
|
118
|
+
<meta charset="UTF-8">
|
|
119
|
+
<meta name="color-scheme" content="${i?"dark":"light"}">
|
|
120
|
+
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,100..1000&display=swap" rel="stylesheet">
|
|
121
|
+
<style>
|
|
122
|
+
*, *::before, *::after { box-sizing: border-box; }
|
|
123
|
+
html, body {
|
|
124
|
+
margin: 0;
|
|
125
|
+
padding: 1rem;
|
|
126
|
+
font-family: 'DM Sans', system-ui, sans-serif;
|
|
127
|
+
font-size: 14px;
|
|
128
|
+
line-height: 1.7;
|
|
129
|
+
color: ${i?"#e4e4e7":"#18181b"};
|
|
130
|
+
background: ${s};
|
|
131
|
+
}
|
|
132
|
+
h1, h2, h3, h4, h5, h6 { margin: 1em 0 0.5em; font-weight: 700; }
|
|
133
|
+
h1 { font-size: 1.75em; }
|
|
134
|
+
h2 { font-size: 1.4em; }
|
|
135
|
+
h3 { font-size: 1.15em; }
|
|
136
|
+
p { margin: 0.5em 0; }
|
|
137
|
+
ul, ol { padding-left: 1.5em; margin: 0.5em 0; }
|
|
138
|
+
code {
|
|
139
|
+
font-family: ui-monospace, monospace;
|
|
140
|
+
font-size: 0.85em;
|
|
141
|
+
background: ${i?"rgba(255,255,255,0.08)":"rgba(0,0,0,0.06)"};
|
|
142
|
+
padding: 0.15em 0.35em;
|
|
143
|
+
border-radius: 4px;
|
|
144
|
+
}
|
|
145
|
+
pre {
|
|
146
|
+
background: ${i?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.04)"};
|
|
147
|
+
padding: 0.75em 1em;
|
|
148
|
+
border-radius: 6px;
|
|
149
|
+
overflow-x: auto;
|
|
150
|
+
margin: 0.75em 0;
|
|
151
|
+
}
|
|
152
|
+
pre code { background: none; padding: 0; }
|
|
153
|
+
a { color: ${i?"#a78bfa":"#7c3aed"}; }
|
|
154
|
+
blockquote {
|
|
155
|
+
border-left: 3px solid ${i?"rgba(255,255,255,0.15)":"rgba(0,0,0,0.15)"};
|
|
156
|
+
padding-left: 1em;
|
|
157
|
+
margin: 0.75em 0;
|
|
158
|
+
color: ${i?"#a1a1aa":"#71717a"};
|
|
159
|
+
}
|
|
160
|
+
table { border-collapse: collapse; width: 100%; margin: 0.75em 0; }
|
|
161
|
+
th, td {
|
|
162
|
+
border: 1px solid ${i?"rgba(255,255,255,0.1)":"rgba(0,0,0,0.1)"};
|
|
163
|
+
padding: 0.4em 0.75em;
|
|
164
|
+
text-align: left;
|
|
165
|
+
}
|
|
166
|
+
th { font-weight: 600; background: ${i?"rgba(255,255,255,0.04)":"rgba(0,0,0,0.03)"}; }
|
|
167
|
+
hr { border: none; border-top: 1px solid ${i?"rgba(255,255,255,0.1)":"rgba(0,0,0,0.1)"}; margin: 1.5em 0; }
|
|
168
|
+
</style>
|
|
169
|
+
</head>
|
|
170
|
+
<body>${r}</body>
|
|
171
|
+
</html>
|
|
172
|
+
`),l.close()},[r,t]),d.jsx("iframe",{ref:n,sandbox:"allow-same-origin",className:"w-full h-full border-0",title:"Markdown Preview"})}const zm="block w-full rounded-lg border-2 border-border p-4 text-left transition-colors",Am="cursor-pointer hover:border-primary/50 hover:bg-accent",Mm="border-primary bg-primary/[0.08]";function $m({options:e,selections:t={},onToggle:n}){if(e.length===0)return d.jsx("p",{className:"text-sm text-muted-foreground",children:"No options provided."});const r=typeof n=="function";return d.jsx("div",{className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-3",children:e.map(o=>{const l=!!t[o.id],i=r?"ml-6":"",s=`${zm} ${l?Mm:""} ${r?Am:""}`,a=d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[r&&d.jsx("span",{className:`flex h-4 w-4 shrink-0 items-center justify-center rounded border text-xs transition-colors ${l?"border-primary bg-primary text-primary-foreground":"border-muted-foreground/30"}`,children:l&&d.jsx("svg",{className:"h-3 w-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:3,children:d.jsx("path",{d:"M5 13l4 4L19 7"})})}),d.jsx("span",{className:"text-sm font-medium",children:o.label})]}),o.description&&d.jsx("p",{className:`${i} text-xs text-muted-foreground`,children:o.description}),o.preview&&d.jsx("pre",{className:`${i} mt-2 overflow-auto rounded bg-muted p-2 text-xs`,children:o.preview})]});return r?d.jsx("button",{className:s,onClick:()=>n(o.id),children:a},o.id):d.jsx("div",{className:s,children:a},o.id)})})}function au({src:e,srcDoc:t,version:n}){return t?d.jsx("iframe",{srcDoc:t,className:"w-full h-full border-0 bg-white",sandbox:"allow-scripts allow-popups",title:"Generated Visualization"},n??0):d.jsx("iframe",{src:e,className:"w-full h-full border-0",title:"Generated Visualization"},n??0)}const Im="https://unpkg.com/wired-elements?module";let Pl=!1;function Dm(){if(Pl)return;if(document.querySelector("script[data-wired-cdn]")){Pl=!0;return}const e=document.createElement("script");e.type="module",e.src=Im,e.dataset.wiredCdn="1",document.head.appendChild(e),Pl=!0}function Om({content:e,theme:t,version:n}){const r=C.useRef(null);return C.useEffect(()=>{Dm()},[]),C.useEffect(()=>{if(!r.current)return;const o=r.current,l=o.shadowRoot??o.attachShadow({mode:"open"});l.innerHTML=e;const i=t==="dark"||document.documentElement.classList.contains("dark");o.style.setProperty("--page-fg",i?"#e4e4e7":"#18181b"),o.style.setProperty("--page-accent",i?"#a78bfa":"#7c3aed")},[e,t,n]),d.jsx("div",{ref:r,className:"wired-block-host w-full block",style:{display:"block",minHeight:120}})}function Bm({block:e,theme:t,version:n,selections:r,onToggle:o,onMermaidError:l}){switch(e.type){case"html":return d.jsx(Wh,{content:e.content??"",theme:t});case"mermaid":return d.jsx(Kh,{content:e.content??"",renderedSvg:e.renderedSvg,onError:l,theme:t,version:n});case"markdown":return d.jsx(Pm,{content:e.content??"",theme:t});case"iframe":return e.content?d.jsx(au,{srcDoc:e.content,version:n}):d.jsx(au,{src:e.src??"",version:n});case"rich-html":return e.framework==="wired"?d.jsx(Om,{content:e.content??"",theme:t,version:n}):d.jsxs("div",{className:"p-4 text-muted-foreground",children:['rich-html framework "',e.framework??"?",'" not handled inline — expected server to rewrite to iframe.']});case"options":return d.jsx($m,{options:e.options??[],selections:r,onToggle:o});default:return d.jsxs("div",{className:"p-4 text-muted-foreground",children:["Unknown block type: ",e.type]})}}function zl(e,t,n){const r=new Blob([t],{type:n}),o=URL.createObjectURL(r),l=document.createElement("a");l.href=o,l.download=e,l.click(),URL.revokeObjectURL(o)}function Fm(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")||"download"}function uu(){return document.fullscreenElement??document.webkitFullscreenElement??null}function Um(e){const t=e.requestFullscreen??e.webkitRequestFullscreen;return t==null?void 0:t.call(e)}function Wm(){const e=document.exitFullscreen??document.webkitExitFullscreen;return e==null?void 0:e.call(document)}function Hm(){return d.jsx("div",{className:"flex h-full items-center justify-center",children:d.jsx("div",{className:"text-center text-muted-foreground/20",children:d.jsx("svg",{className:"mx-auto h-12 w-12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:d.jsx("path",{d:"M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"})})})})}function Vm({sessions:e,activeSessionIndex:t,onSessionChange:n,onCloseSession:r,onToggleSelection:o,onMermaidError:l,theme:i,onRespond:s,onShareSession:a,isActiveSessionShared:u,isActiveSessionStale:p,activeSessionShareUrl:v,onMintPublicLink:h,onRevokePublicLink:x,onDeleteSession:y,onDeleteRemote:k,immersive:_,onToggleImmersive:f,discussSessionIds:c,onToggleDiscuss:m}){const[g,w]=C.useState(0),S=C.useRef(null),[b,N]=C.useState(!1),L=e[t]??null,R=L?((c==null?void 0:c.indexOf(L.id))??-1)+1:0,K=C.useCallback(async()=>{if(!L)return;const I=L.id;if(confirm(`Delete session "${I}"?`)){if(u&&k&&confirm(`Also delete the shared cloud copy of "${I}"?`))try{await k(I)}catch{if(!confirm("Couldn't delete the cloud copy. Delete the local session anyway?"))return}y==null||y(I)}},[L,u,k,y]),me=C.useCallback(()=>{if(!L)return;const I=L.blocks[g]??L.blocks[0];if(!I)return;const U=Fm(I.label||L.id);switch(I.type){case"html":zl(`${U}.html`,I.content??"","text/html");break;case"mermaid":{const de=document.querySelector(`[data-block-index="${g}"] .mermaid-container svg`);if(de){const A=new XMLSerializer().serializeToString(de),M="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(A),D=new Image;D.onload=()=>{const Ke=document.createElement("canvas");Ke.width=D.width*2,Ke.height=D.height*2;const Ce=Ke.getContext("2d");Ce.scale(2,2);const bt=document.querySelector(".deck-canvas");bt&&(Ce.fillStyle=getComputedStyle(bt).backgroundColor,Ce.fillRect(0,0,D.width,D.height)),Ce.drawImage(D,0,0);const Ye=Ke.toDataURL("image/png"),rt=document.createElement("a");rt.href=Ye,rt.download=`${U}.png`,rt.click()},D.src=M}break}case"markdown":zl(`${U}.md`,I.content??"","text/markdown");break;case"options":{const de={options:I.options??[],selections:Object.fromEntries(Object.entries(L.selections).filter(([,j])=>j))};zl(`${U}.json`,JSON.stringify(de,null,2),"application/json");break}}},[L,g]),ae=C.useCallback(()=>{const I=S.current;if(I)if(uu())Wm();else{const U=Um(I);U&&typeof U.catch=="function"&&U.catch(()=>{})}},[]);if(C.useEffect(()=>{const I=()=>N(uu()===S.current);return document.addEventListener("fullscreenchange",I),document.addEventListener("webkitfullscreenchange",I),I(),()=>{document.removeEventListener("fullscreenchange",I),document.removeEventListener("webkitfullscreenchange",I)}},[]),C.useEffect(()=>{if(!_||!f)return;const I=j=>{j.key==="Escape"&&f()};window.addEventListener("keydown",I);const U=[],de=Array.from(document.querySelectorAll(".deck-canvas iframe"));for(const j of de){const A=()=>{try{const M=j.contentDocument;if(!M)return;M.addEventListener("keydown",I),U.push(()=>M.removeEventListener("keydown",I))}catch{}};A(),j.addEventListener("load",A),U.push(()=>j.removeEventListener("load",A))}return()=>{window.removeEventListener("keydown",I),U.forEach(j=>j())}},[_,f]),e.length===0)return d.jsx("div",{className:"deck-canvas flex-1 min-h-0",children:d.jsx(Hm,{})});const Fe=L?L.blocks[g]??L.blocks[0]:null;return d.jsxs("div",{ref:S,className:"deck-canvas flex flex-1 min-h-0 flex-col",children:[!_&&d.jsx("div",{className:"flex items-center gap-0 border-b border-border px-2 overflow-x-auto",children:e.map((I,U)=>{const de=((c==null?void 0:c.indexOf(I.id))??-1)+1,j=de>0;return d.jsxs("div",{className:"flex items-center group",children:[d.jsxs("button",{className:`deck-tab flex items-center gap-1.5 ${U===t?"active":""}`,onClick:()=>{n(U),w(0)},children:[I.mode==="feedback"&&d.jsx("span",{className:"deck-status-dot feedback"}),I.id]}),m&&j&&d.jsx("button",{className:"h-4 w-4 flex items-center justify-center rounded opacity-100 -ml-0.5",onClick:A=>{A.stopPropagation(),m(I.id)},"aria-label":`Stop watching ${I.id} (watching #${de})`,"aria-pressed":!0,title:`Watching #${de}. Click to stop watching.`,children:d.jsx("span",{className:"flex h-4 w-4 items-center justify-center rounded-full bg-primary text-[9px] font-bold leading-none text-primary-foreground",children:de})}),d.jsx("button",{className:"h-4 w-4 flex items-center justify-center rounded text-muted-foreground/50 hover:text-foreground hover:bg-accent opacity-0 group-hover:opacity-100 transition-opacity -ml-1 mr-1",onClick:A=>{A.stopPropagation(),r(I.id)},"aria-label":`Close ${I.id}`,children:d.jsx("svg",{className:"h-3 w-3",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:d.jsx("path",{d:"M18 6L6 18M6 6l12 12"})})})]},I.id)})}),!_&&L&&L.blocks.length>1&&d.jsx("div",{className:"flex gap-1 border-b border-border/50 px-4 bg-muted/20",children:L.blocks.map((I,U)=>d.jsx("button",{className:`deck-tab text-xs ${U===g?"active":""}`,onClick:()=>w(U),children:I.label},U))}),L&&d.jsx("div",{className:"flex flex-1 min-h-0 flex-col overflow-auto p-6",children:L.blocks.map((I,U)=>d.jsx("div",{"data-block-index":U,className:`flex-1 min-h-0 ${U===g?"":"hidden"}`,children:d.jsx(Bm,{block:I,selections:L.selections,onToggle:o,onMermaidError:l,theme:i,version:L.version})},U))}),L&&!_&&d.jsxs("div",{className:"flex shrink-0 items-center justify-between gap-3 border-t border-border/50 bg-muted/20 px-6 py-3",children:[L.mode==="feedback"&&L.prompt?d.jsx("div",{className:"min-w-0 flex-1 truncate text-xs font-medium text-primary",title:L.prompt,children:L.prompt}):d.jsx("div",{className:"flex-1"}),d.jsxs("div",{className:"flex items-center gap-3",children:[f&&d.jsx(Jm,{immersive:!!_,onToggle:f}),d.jsx(eg,{fullscreen:b,onToggle:ae}),m&&d.jsx(Zm,{watchNumber:R,onToggle:()=>m(L.id)}),L.mode==="feedback"&&s&&d.jsxs("button",{onClick:s,className:"inline-flex h-12 items-center gap-2 rounded-full bg-primary px-5 text-sm font-medium text-primary-foreground shadow-lg transition-transform hover:scale-105",title:"Respond — pick an element, comment, or attach a screenshot",children:[d.jsx("svg",{className:"h-4 w-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:d.jsx("path",{d:"M21 11.5a8.38 8.38 0 01-.9 3.8 8.5 8.5 0 01-7.6 4.7 8.38 8.38 0 01-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 01-.9-3.8 8.5 8.5 0 014.7-7.6 8.38 8.38 0 013.8-.9h.5a8.48 8.48 0 018 8v.5z"})}),"Respond"]}),y&&d.jsx(tg,{shared:!!u,onDelete:K}),u&&k&&d.jsx(Xm,{onTakeDown:()=>k(L.id)}),a&&d.jsx(qm,{shared:!!u,stale:!!p,onShare:I=>a(L.id,I)}),u&&h&&x&&d.jsx(Ym,{sessionId:L.id,shareUrl:v,onMint:h,onRevoke:x}),Fe&&d.jsx(ng,{block:Fe,onDownload:me})]})]}),L&&_&&f&&d.jsx("button",{onClick:f,className:"fixed bottom-4 right-4 z-30 flex h-11 w-11 items-center justify-center rounded-full border border-foreground/25 bg-background/50 text-foreground/80 shadow-lg backdrop-blur-sm transition-colors hover:border-primary hover:bg-background/70 hover:text-foreground","aria-label":"Exit focus mode",title:"Exit focus mode (Esc)",children:d.jsxs("svg",{className:"h-5 w-5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:[d.jsx("polyline",{points:"4 14 10 14 10 20"}),d.jsx("polyline",{points:"20 10 14 10 14 4"}),d.jsx("line",{x1:"14",y1:"10",x2:"21",y2:"3"}),d.jsx("line",{x1:"3",y1:"21",x2:"10",y2:"14"})]})})]})}const Qm=d.jsxs("svg",{className:"h-5 w-5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[d.jsx("path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242"}),d.jsx("path",{d:"M12 12v9"}),d.jsx("path",{d:"m16 16-4-4-4 4"})]}),qd=d.jsx("svg",{className:"h-5 w-5 animate-spin",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:d.jsx("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})});function qm({shared:e,stale:t,onShare:n}){const[r,o]=C.useState(!1),[l,i]=C.useState(!1),[s,a]=C.useState(null),[u,p]=C.useState(!1),v=async()=>{a(null),i(!0);try{const x=await n({publicLink:u});p(!1),o(!1),x.linkWarning&&a(`Deck shared, but the public link failed: ${x.linkWarning}`)}catch(x){a(x instanceof Error?x.message:String(x))}finally{i(!1)}},h=s?"bg-destructive text-destructive-foreground":t?"bg-amber-500 text-white":e?"bg-emerald-600 text-white":"bg-primary text-primary-foreground";return d.jsxs("div",{className:"group relative flex",children:[d.jsxs("button",{onClick:()=>o(x=>!x),disabled:l,className:`relative flex h-12 w-12 items-center justify-center rounded-full shadow-lg transition-transform hover:scale-110 disabled:opacity-70 ${h}`,"aria-label":t?"Update shared copy":e?"Re-share with team":"Share with team",title:t?"Cloud copy is out of date — click to update it":e?"Re-share — update the cloud copy":"Share with team (upload to cloud LaunchSecure)",children:[l?qd:Qm,t&&!l&&d.jsx("span",{className:"absolute -right-0.5 -top-0.5 flex h-4 w-4 items-center justify-center rounded-full bg-background text-[10px] font-bold leading-none text-amber-500 shadow","aria-hidden":!0,children:"!"})]}),r&&d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>!l&&o(!1)}),d.jsxs("div",{className:"absolute bottom-full right-0 z-50 mb-2 w-64 rounded-lg border border-border bg-popover p-3 text-left shadow-xl",children:[d.jsx("p",{className:"text-sm font-medium text-foreground",children:t?"Update shared copy":e?"Re-share deck":"Share deck to LaunchSecure"}),d.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:e?"Updates the cloud copy your team sees.":"Uploads this deck so your team can view it in the Communication Center."}),!e&&d.jsxs("label",{className:"mt-3 flex cursor-pointer items-start gap-2 text-xs text-foreground",children:[d.jsx("input",{type:"checkbox",checked:u,onChange:x=>p(x.target.checked),className:"mt-0.5"}),d.jsxs("span",{children:["Also create a ",d.jsx("span",{className:"font-medium",children:"public link"}),d.jsx("span",{className:"mt-0.5 block text-muted-foreground",children:"Anyone with the URL can view it — no login."})]})]}),d.jsx("button",{onClick:v,disabled:l,className:"mt-3 w-full rounded-md bg-primary px-3 py-1.5 text-xs font-medium text-primary-foreground transition-colors hover:bg-primary/90 disabled:opacity-60",children:l?"Sharing…":t?"Update":e?"Re-share":"Upload"})]})]}),s&&!r&&d.jsx(Kd,{title:"Share issue",detail:s})]})}const Km=d.jsxs("svg",{className:"h-5 w-5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[d.jsx("path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}),d.jsx("path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"})]});function Ym({sessionId:e,shareUrl:t,onMint:n,onRevoke:r}){const[o,l]=C.useState(!1),[i,s]=C.useState(!1),[a,u]=C.useState(!1),[p,v]=C.useState(null),h=!!t,x=async()=>{v(null),s(!0);try{await n(e)}catch(_){v(_ instanceof Error?_.message:String(_))}finally{s(!1)}},y=async()=>{v(null),s(!0);try{await r(e),l(!1)}catch(_){v(_ instanceof Error?_.message:String(_))}finally{s(!1)}},k=async()=>{if(t)try{await navigator.clipboard.writeText(t),u(!0),setTimeout(()=>u(!1),1500)}catch{}};return d.jsxs("div",{className:"group relative flex",children:[d.jsx("button",{onClick:()=>l(_=>!_),disabled:i,className:`relative flex h-12 w-12 items-center justify-center rounded-full shadow-lg transition-transform hover:scale-110 disabled:opacity-70 ${h?"bg-cyan-600 text-white":"bg-muted text-muted-foreground"}`,"aria-label":h?"Public link":"Create public link",title:h?"Public link — anyone with the URL can view":"Create a public link (no login needed to view)",children:i?qd:Km}),o&&d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>!i&&l(!1)}),d.jsxs("div",{className:"absolute bottom-full right-0 z-50 mb-2 w-72 rounded-lg border border-border bg-popover p-3 text-left shadow-xl",children:[d.jsx("p",{className:"text-sm font-medium text-foreground",children:"Public link"}),h?d.jsxs(d.Fragment,{children:[d.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:"Anyone with this URL can view the deck — no login."}),d.jsx("div",{className:"mt-2 rounded-md border border-border bg-background px-2 py-1",children:d.jsx("input",{readOnly:!0,value:t,onFocus:_=>_.currentTarget.select(),className:"w-full bg-transparent text-xs text-foreground outline-none"})}),d.jsxs("div",{className:"mt-2 flex gap-2",children:[d.jsx("button",{onClick:k,className:"flex-1 rounded-md bg-primary px-3 py-1.5 text-xs font-medium text-primary-foreground hover:bg-primary/90",children:a?"Copied!":"Copy"}),d.jsx("a",{href:t,target:"_blank",rel:"noreferrer",className:"rounded-md border border-border px-3 py-1.5 text-xs font-medium text-foreground hover:bg-muted",children:"Open"}),d.jsx("button",{onClick:y,disabled:i,className:"rounded-md border border-destructive/40 px-3 py-1.5 text-xs font-medium text-destructive hover:bg-destructive/10 disabled:opacity-60",children:"Revoke"})]})]}):d.jsxs(d.Fragment,{children:[d.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:"Create a no-login link so anyone with the URL can view this deck."}),d.jsx("button",{onClick:x,disabled:i,className:"mt-3 w-full rounded-md bg-primary px-3 py-1.5 text-xs font-medium text-primary-foreground hover:bg-primary/90 disabled:opacity-60",children:i?"Creating…":"Create public link"})]}),p&&d.jsx("p",{className:"mt-2 text-xs text-destructive",children:p})]})]})]})}function Kd({title:e,detail:t}){return d.jsxs("div",{role:"tooltip",className:"pointer-events-none absolute bottom-full right-0 z-50 mb-2 hidden w-72 max-w-[18rem] rounded-md border border-destructive/40 bg-popover px-3 py-2 text-left text-xs shadow-xl group-hover:block",children:[d.jsx("span",{className:"block font-medium text-destructive",children:e}),d.jsx("span",{className:"mt-1 block max-h-40 overflow-y-auto whitespace-pre-wrap break-words text-muted-foreground",children:t})]})}const Gm=d.jsxs("svg",{className:"h-5 w-5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[d.jsx("path",{d:"M20 16.2A4.5 4.5 0 0 0 17.5 8h-1.8A7 7 0 1 0 4 14.9"}),d.jsx("path",{d:"M12 12v9"}),d.jsx("path",{d:"m8 17 4 4 4-4"})]});function Xm({onTakeDown:e}){const[t,n]=C.useState(!1),[r,o]=C.useState(null),l=async()=>{if(confirm(`Remove this deck's shared cloud copy?
|
|
173
|
+
The local deck stays — you can re-share anytime.`)){o(null),n(!0);try{await e()}catch(i){o(i instanceof Error?i.message:String(i))}finally{n(!1)}}};return d.jsxs("div",{className:"group relative flex",children:[d.jsx("button",{onClick:l,disabled:t,className:`flex h-12 w-12 items-center justify-center rounded-full shadow-lg transition-transform hover:scale-110 disabled:opacity-70 ${r?"bg-destructive text-destructive-foreground":"border border-border bg-background/80 text-muted-foreground backdrop-blur hover:border-amber-500 hover:text-amber-500"}`,"aria-label":"Take down — remove the shared cloud copy",title:"Take down — remove the shared cloud copy (keeps the local deck)",children:t?d.jsx("svg",{className:"h-5 w-5 animate-spin",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:d.jsx("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})}):Gm}),r&&d.jsx(Kd,{title:"Take-down failed — click to retry",detail:r})]})}function Zm({watchNumber:e,onToggle:t}){const n=e>0;return d.jsxs("button",{onClick:t,className:`relative flex h-12 w-12 items-center justify-center rounded-full shadow-lg transition-transform hover:scale-110 ${n?"bg-primary text-primary-foreground":"border border-border bg-background/80 text-muted-foreground backdrop-blur hover:border-primary hover:text-foreground"}`,"aria-label":n?`Stop watching this deck (watching #${e})`:"Watch this deck so Claude knows you mean it","aria-pressed":n,title:n?`Watching #${e} — click to stop watching`:"Watch this deck so Claude knows you mean it",children:[n?d.jsxs("svg",{className:"h-5 w-5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[d.jsx("path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"}),d.jsx("circle",{cx:"12",cy:"12",r:"3",fill:"currentColor",stroke:"none"})]}):d.jsxs("svg",{className:"h-5 w-5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[d.jsx("path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"}),d.jsx("circle",{cx:"12",cy:"12",r:"3"})]}),n&&d.jsx("span",{className:"absolute -right-0.5 -top-0.5 flex h-4 w-4 items-center justify-center rounded-full bg-background text-[10px] font-bold leading-none text-primary shadow","aria-hidden":!0,children:e})]})}function Jm({immersive:e,onToggle:t}){return d.jsx("button",{onClick:t,className:"flex h-12 w-12 items-center justify-center rounded-full border border-border bg-background/80 text-muted-foreground shadow-lg backdrop-blur transition-transform hover:scale-110 hover:border-primary hover:text-foreground","aria-label":e?"Show header and tabs":"Hide header and tabs","aria-pressed":e,title:e?"Exit focus mode — show header & tabs":"Focus mode — hide header & tabs",children:e?d.jsxs("svg",{className:"h-5 w-5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:[d.jsx("polyline",{points:"4 14 10 14 10 20"}),d.jsx("polyline",{points:"20 10 14 10 14 4"}),d.jsx("line",{x1:"14",y1:"10",x2:"21",y2:"3"}),d.jsx("line",{x1:"3",y1:"21",x2:"10",y2:"14"})]}):d.jsxs("svg",{className:"h-5 w-5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:[d.jsx("polyline",{points:"15 3 21 3 21 9"}),d.jsx("polyline",{points:"9 21 3 21 3 15"}),d.jsx("line",{x1:"21",y1:"3",x2:"14",y2:"10"}),d.jsx("line",{x1:"3",y1:"21",x2:"10",y2:"14"})]})})}function eg({fullscreen:e,onToggle:t}){return d.jsx("button",{onClick:t,className:"flex h-12 w-12 items-center justify-center rounded-full border border-border bg-background/80 text-muted-foreground shadow-lg backdrop-blur transition-transform hover:scale-110 hover:border-primary hover:text-foreground","aria-label":e?"Exit fullscreen":"Enter fullscreen","aria-pressed":e,title:e?"Exit fullscreen (Esc)":"Fullscreen — fill the whole screen",children:e?d.jsxs("svg",{className:"h-5 w-5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[d.jsx("path",{d:"M8 3v3a2 2 0 0 1-2 2H3"}),d.jsx("path",{d:"M21 8h-3a2 2 0 0 1-2-2V3"}),d.jsx("path",{d:"M3 16h3a2 2 0 0 1 2 2v3"}),d.jsx("path",{d:"M16 21v-3a2 2 0 0 1 2-2h3"})]}):d.jsxs("svg",{className:"h-5 w-5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[d.jsx("path",{d:"M8 3H5a2 2 0 0 0-2 2v3"}),d.jsx("path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"}),d.jsx("path",{d:"M3 16v3a2 2 0 0 0 2 2h3"}),d.jsx("path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"})]})})}function tg({shared:e,onDelete:t}){return d.jsx("button",{onClick:t,className:"flex h-12 w-12 items-center justify-center rounded-full border border-border bg-background/80 text-muted-foreground shadow-lg backdrop-blur transition-transform hover:scale-110 hover:border-destructive hover:bg-destructive hover:text-destructive-foreground","aria-label":"Delete session",title:e?"Delete session (offers to remove the cloud copy too)":"Delete session",children:d.jsx("svg",{className:"h-5 w-5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:d.jsx("path",{d:"M3 6h18M8 6V4a2 2 0 012-2h4a2 2 0 012 2v2M19 6l-1 14a2 2 0 01-2 2H8a2 2 0 01-2-2L5 6"})})})}const Al=d.jsxs("svg",{className:"h-5 w-5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:[d.jsx("path",{d:"M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4"}),d.jsx("polyline",{points:"7 10 12 15 17 10"}),d.jsx("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]});function ng({block:e,onDownload:t}){const[n,r]=C.useState(!1);if(e.type==="iframe"&&e.src){const o=e.src.replace("/deck-files/","/deck-download/");if(!e.src.includes("blast-radius.html")){const p=e.src.split("/").pop()??"download.html";return d.jsx("a",{href:o,download:p,className:"flex h-12 w-12 items-center justify-center rounded-full bg-primary text-primary-foreground shadow-lg transition-transform hover:scale-110","aria-label":"Download HTML",title:"Download HTML",children:Al})}const i=o,s=o.replace("blast-radius.html","blast-radius-report.md"),a=o.replace("blast-radius.html","contract.md"),u=o.replace("blast-radius.html","contract.json");return d.jsxs("div",{className:"relative",children:[n&&d.jsxs("div",{className:"absolute bottom-full left-1/2 mb-3 flex -translate-x-1/2 flex-col items-center gap-3",children:[d.jsx("a",{href:u,download:"contract.json",className:"flex h-10 w-10 items-center justify-center rounded-full bg-emerald-600 text-white shadow-lg transition-transform hover:scale-110 text-[8px] font-bold leading-none text-center",title:"Download Contract (JSON)",onClick:()=>r(!1),children:"CTR"}),d.jsx("a",{href:a,download:"contract.md",className:"flex h-10 w-10 items-center justify-center rounded-full bg-emerald-600 text-white shadow-lg transition-transform hover:scale-110 text-[10px] font-bold leading-none",title:"Download Contract (Markdown)",onClick:()=>r(!1),children:".md"}),d.jsx("a",{href:s,download:"blast-radius-report.md",className:"flex h-10 w-10 items-center justify-center rounded-full bg-primary text-primary-foreground shadow-lg transition-transform hover:scale-110 text-[10px] font-bold leading-none",title:"Download Report",onClick:()=>r(!1),children:".md"}),d.jsx("a",{href:i,download:"blast-radius.html",className:"flex h-10 w-10 items-center justify-center rounded-full bg-primary text-primary-foreground shadow-lg transition-transform hover:scale-110 text-[10px] font-bold leading-none",title:"Download HTML",onClick:()=>r(!1),children:".html"})]}),d.jsx("button",{onClick:()=>r(!n),className:"flex h-12 w-12 items-center justify-center rounded-full bg-primary text-primary-foreground shadow-lg transition-transform hover:scale-110","aria-label":"Download options",title:"Download",children:Al})]})}return d.jsx("button",{onClick:t,className:"flex h-12 w-12 items-center justify-center rounded-full bg-primary text-primary-foreground shadow-lg transition-transform hover:scale-110","aria-label":"Download",title:"Download",children:Al})}const Yd=String.raw`
|
|
174
|
+
:host {
|
|
175
|
+
--beacon-accent: #0ea5e9;
|
|
176
|
+
--beacon-bg: #ffffff;
|
|
177
|
+
--beacon-fg: #0f172a;
|
|
178
|
+
--beacon-muted: #64748b;
|
|
179
|
+
--beacon-border: #e2e8f0;
|
|
180
|
+
--beacon-radius: 10px;
|
|
181
|
+
--beacon-z-index: 2147483645;
|
|
182
|
+
--beacon-shadow: 0 10px 30px hsl(0 0% 0% / 0.15), 0 2px 6px hsl(0 0% 0% / 0.08);
|
|
183
|
+
--beacon-font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
184
|
+
--beacon-color-scheme: light dark;
|
|
185
|
+
|
|
186
|
+
--beacon-bug: #ef4444;
|
|
187
|
+
--beacon-idea: #22c55e;
|
|
188
|
+
--beacon-ux: #a855f7;
|
|
189
|
+
--beacon-a11y: #06b6d4;
|
|
190
|
+
|
|
191
|
+
position: fixed;
|
|
192
|
+
z-index: var(--beacon-z-index);
|
|
193
|
+
font-family: var(--beacon-font-family);
|
|
194
|
+
font-size: 14px;
|
|
195
|
+
color: var(--beacon-fg);
|
|
196
|
+
line-height: 1.5;
|
|
197
|
+
color-scheme: var(--beacon-color-scheme);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
:host([theme='dark']) {
|
|
201
|
+
--beacon-bg: #0f172a;
|
|
202
|
+
--beacon-fg: #f1f5f9;
|
|
203
|
+
--beacon-muted: #94a3b8;
|
|
204
|
+
--beacon-border: #334155;
|
|
205
|
+
--beacon-color-scheme: dark;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
@media (prefers-color-scheme: dark) {
|
|
209
|
+
:host([theme='auto']) {
|
|
210
|
+
--beacon-bg: #0f172a;
|
|
211
|
+
--beacon-fg: #f1f5f9;
|
|
212
|
+
--beacon-muted: #94a3b8;
|
|
213
|
+
--beacon-border: #334155;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
:host([position='bottom-right']) { right: 20px; bottom: 20px; left: auto; top: auto; }
|
|
218
|
+
:host([position='bottom-left']) { left: 20px; bottom: 20px; right: auto; top: auto; }
|
|
219
|
+
|
|
220
|
+
:host([position='hidden']) {
|
|
221
|
+
position: static;
|
|
222
|
+
display: contents;
|
|
223
|
+
}
|
|
224
|
+
:host([position='hidden']) .beacon-default-trigger { display: none; }
|
|
225
|
+
|
|
226
|
+
.beacon-default-trigger {
|
|
227
|
+
display: inline-flex;
|
|
228
|
+
align-items: center;
|
|
229
|
+
gap: 6px;
|
|
230
|
+
background: var(--beacon-accent);
|
|
231
|
+
color: white;
|
|
232
|
+
border: 0;
|
|
233
|
+
border-radius: 999px;
|
|
234
|
+
padding: 10px 16px;
|
|
235
|
+
font: inherit;
|
|
236
|
+
font-weight: 500;
|
|
237
|
+
cursor: pointer;
|
|
238
|
+
box-shadow: var(--beacon-shadow);
|
|
239
|
+
transition: transform 0.15s ease, box-shadow 0.15s ease;
|
|
240
|
+
}
|
|
241
|
+
.beacon-default-trigger:hover { transform: translateY(-1px); }
|
|
242
|
+
.beacon-default-trigger svg { width: 18px; height: 18px; }
|
|
243
|
+
|
|
244
|
+
.beacon-health-dot {
|
|
245
|
+
display: none;
|
|
246
|
+
width: 8px;
|
|
247
|
+
height: 8px;
|
|
248
|
+
border-radius: 50%;
|
|
249
|
+
background: var(--beacon-bug);
|
|
250
|
+
margin-left: 2px;
|
|
251
|
+
}
|
|
252
|
+
.beacon-health-dot.visible { display: inline-block; }
|
|
253
|
+
|
|
254
|
+
dialog.beacon-dialog {
|
|
255
|
+
width: 380px;
|
|
256
|
+
max-width: calc(100vw - 24px);
|
|
257
|
+
max-height: calc(100vh - 24px);
|
|
258
|
+
padding: 0;
|
|
259
|
+
background: var(--beacon-bg);
|
|
260
|
+
color: var(--beacon-fg);
|
|
261
|
+
border: 1px solid var(--beacon-border);
|
|
262
|
+
border-radius: var(--beacon-radius);
|
|
263
|
+
box-shadow: var(--beacon-shadow);
|
|
264
|
+
font-family: var(--beacon-font-family);
|
|
265
|
+
font-size: 14px;
|
|
266
|
+
line-height: 1.5;
|
|
267
|
+
}
|
|
268
|
+
dialog.beacon-dialog::backdrop {
|
|
269
|
+
background: hsl(0 0% 0% / 0.8);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.beacon-dialog-inner {
|
|
273
|
+
display: flex;
|
|
274
|
+
flex-direction: column;
|
|
275
|
+
max-height: calc(100vh - 24px);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.beacon-drawer-header {
|
|
279
|
+
display: flex;
|
|
280
|
+
align-items: center;
|
|
281
|
+
justify-content: space-between;
|
|
282
|
+
padding: 12px 16px;
|
|
283
|
+
border-bottom: 1px solid var(--beacon-border);
|
|
284
|
+
}
|
|
285
|
+
.beacon-drawer-title { font-weight: 600; }
|
|
286
|
+
.beacon-icon-btn {
|
|
287
|
+
background: transparent;
|
|
288
|
+
border: 0;
|
|
289
|
+
color: var(--beacon-muted);
|
|
290
|
+
cursor: pointer;
|
|
291
|
+
padding: 4px;
|
|
292
|
+
border-radius: 4px;
|
|
293
|
+
display: inline-flex;
|
|
294
|
+
}
|
|
295
|
+
.beacon-icon-btn:hover { background: var(--beacon-border); color: var(--beacon-fg); }
|
|
296
|
+
.beacon-icon-btn svg { width: 16px; height: 16px; }
|
|
297
|
+
|
|
298
|
+
.beacon-drawer-body {
|
|
299
|
+
padding: 16px;
|
|
300
|
+
overflow-y: auto;
|
|
301
|
+
display: flex;
|
|
302
|
+
flex-direction: column;
|
|
303
|
+
gap: 14px;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
/* Plugin panels share the same vertical rhythm as the drawer body so sibling
|
|
307
|
+
panels (annotate, monitor, etc.) don't visually collide. Without this, every
|
|
308
|
+
plugin panel renders flush against the previous one. */
|
|
309
|
+
.beacon-plugin-panels {
|
|
310
|
+
display: flex;
|
|
311
|
+
flex-direction: column;
|
|
312
|
+
gap: 14px;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.beacon-field { display: flex; flex-direction: column; gap: 6px; }
|
|
316
|
+
.beacon-label { font-size: 12px; color: var(--beacon-muted); font-weight: 500; }
|
|
317
|
+
.beacon-description { font-size: 12px; color: var(--beacon-muted); }
|
|
318
|
+
|
|
319
|
+
.beacon-input,
|
|
320
|
+
.beacon-textarea,
|
|
321
|
+
.beacon-select {
|
|
322
|
+
width: 100%;
|
|
323
|
+
padding: 8px 10px;
|
|
324
|
+
background: var(--beacon-bg);
|
|
325
|
+
color: var(--beacon-fg);
|
|
326
|
+
border: 1px solid var(--beacon-border);
|
|
327
|
+
border-radius: 6px;
|
|
328
|
+
font: inherit;
|
|
329
|
+
box-sizing: border-box;
|
|
330
|
+
}
|
|
331
|
+
.beacon-textarea { min-height: 80px; resize: vertical; }
|
|
332
|
+
.beacon-input:focus,
|
|
333
|
+
.beacon-textarea:focus,
|
|
334
|
+
.beacon-select:focus { outline: 2px solid var(--beacon-accent); outline-offset: -1px; border-color: var(--beacon-accent); }
|
|
335
|
+
|
|
336
|
+
.beacon-toggle {
|
|
337
|
+
display: inline-flex;
|
|
338
|
+
align-items: center;
|
|
339
|
+
gap: 8px;
|
|
340
|
+
cursor: pointer;
|
|
341
|
+
user-select: none;
|
|
342
|
+
}
|
|
343
|
+
.beacon-toggle input { margin: 0; }
|
|
344
|
+
|
|
345
|
+
.beacon-radio-group { display: flex; flex-direction: column; gap: 4px; }
|
|
346
|
+
.beacon-radio-opt { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
|
|
347
|
+
|
|
348
|
+
.beacon-severity {
|
|
349
|
+
display: grid;
|
|
350
|
+
grid-template-columns: repeat(4, 1fr);
|
|
351
|
+
gap: 6px;
|
|
352
|
+
}
|
|
353
|
+
.beacon-severity-opt {
|
|
354
|
+
position: relative;
|
|
355
|
+
display: flex;
|
|
356
|
+
align-items: center;
|
|
357
|
+
justify-content: center;
|
|
358
|
+
padding: 6px 4px;
|
|
359
|
+
background: transparent;
|
|
360
|
+
border: 1px solid var(--beacon-border);
|
|
361
|
+
border-radius: 6px;
|
|
362
|
+
cursor: pointer;
|
|
363
|
+
font-size: 12px;
|
|
364
|
+
font-weight: 500;
|
|
365
|
+
color: var(--beacon-fg);
|
|
366
|
+
text-transform: capitalize;
|
|
367
|
+
}
|
|
368
|
+
.beacon-severity-opt input { position: absolute; opacity: 0; pointer-events: none; }
|
|
369
|
+
.beacon-severity-opt:hover { background: var(--beacon-border); }
|
|
370
|
+
.beacon-severity-opt.selected[data-sev='bug'] { border-color: var(--beacon-bug); color: var(--beacon-bug); }
|
|
371
|
+
.beacon-severity-opt.selected[data-sev='idea'] { border-color: var(--beacon-idea); color: var(--beacon-idea); }
|
|
372
|
+
.beacon-severity-opt.selected[data-sev='ux'] { border-color: var(--beacon-ux); color: var(--beacon-ux); }
|
|
373
|
+
.beacon-severity-opt.selected[data-sev='a11y'] { border-color: var(--beacon-a11y); color: var(--beacon-a11y); }
|
|
374
|
+
|
|
375
|
+
.beacon-actions {
|
|
376
|
+
display: flex;
|
|
377
|
+
gap: 8px;
|
|
378
|
+
align-items: center;
|
|
379
|
+
}
|
|
380
|
+
.beacon-btn {
|
|
381
|
+
display: inline-flex;
|
|
382
|
+
align-items: center;
|
|
383
|
+
gap: 6px;
|
|
384
|
+
padding: 8px 14px;
|
|
385
|
+
border-radius: 6px;
|
|
386
|
+
border: 0;
|
|
387
|
+
cursor: pointer;
|
|
388
|
+
font: inherit;
|
|
389
|
+
font-weight: 500;
|
|
390
|
+
font-size: 13px;
|
|
391
|
+
transition: opacity 0.15s ease;
|
|
392
|
+
}
|
|
393
|
+
.beacon-btn[disabled] { opacity: 0.5; cursor: not-allowed; }
|
|
394
|
+
.beacon-btn svg { width: 14px; height: 14px; }
|
|
395
|
+
.beacon-btn.primary { background: var(--beacon-accent); color: white; }
|
|
396
|
+
.beacon-btn.secondary {
|
|
397
|
+
background: transparent;
|
|
398
|
+
color: var(--beacon-fg);
|
|
399
|
+
border: 1px solid var(--beacon-border);
|
|
400
|
+
}
|
|
401
|
+
.beacon-btn.secondary:hover { background: var(--beacon-border); }
|
|
402
|
+
|
|
403
|
+
.beacon-status {
|
|
404
|
+
font-size: 12px;
|
|
405
|
+
color: var(--beacon-muted);
|
|
406
|
+
text-align: center;
|
|
407
|
+
padding: 4px;
|
|
408
|
+
}
|
|
409
|
+
.beacon-status.error { color: var(--beacon-bug); }
|
|
410
|
+
.beacon-status.success { color: var(--beacon-idea); }
|
|
411
|
+
|
|
412
|
+
.beacon-plugin-panel {
|
|
413
|
+
display: flex;
|
|
414
|
+
flex-direction: column;
|
|
415
|
+
gap: 10px;
|
|
416
|
+
padding: 12px;
|
|
417
|
+
border: 1px solid var(--beacon-border);
|
|
418
|
+
border-radius: 6px;
|
|
419
|
+
}
|
|
420
|
+
.beacon-plugin-panel-title {
|
|
421
|
+
font-size: 12px;
|
|
422
|
+
text-transform: uppercase;
|
|
423
|
+
letter-spacing: 0.04em;
|
|
424
|
+
color: var(--beacon-muted);
|
|
425
|
+
font-weight: 600;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
/* ── Pin list (domEle plugin) ─────────────────────────────── */
|
|
429
|
+
.beacon-pin-list-header {
|
|
430
|
+
font-size: 12px;
|
|
431
|
+
color: var(--beacon-muted);
|
|
432
|
+
font-weight: 500;
|
|
433
|
+
}
|
|
434
|
+
.beacon-pin-list {
|
|
435
|
+
display: flex;
|
|
436
|
+
flex-direction: column;
|
|
437
|
+
gap: 6px;
|
|
438
|
+
max-height: 200px;
|
|
439
|
+
overflow-y: auto;
|
|
440
|
+
}
|
|
441
|
+
.beacon-pin-item {
|
|
442
|
+
display: flex;
|
|
443
|
+
align-items: flex-start;
|
|
444
|
+
gap: 8px;
|
|
445
|
+
padding: 8px;
|
|
446
|
+
background: var(--beacon-border);
|
|
447
|
+
border-radius: 6px;
|
|
448
|
+
}
|
|
449
|
+
.beacon-pin-num {
|
|
450
|
+
display: inline-flex;
|
|
451
|
+
align-items: center;
|
|
452
|
+
justify-content: center;
|
|
453
|
+
width: 20px;
|
|
454
|
+
height: 20px;
|
|
455
|
+
border-radius: 50%;
|
|
456
|
+
background: var(--beacon-accent);
|
|
457
|
+
color: white;
|
|
458
|
+
font-size: 11px;
|
|
459
|
+
font-weight: 600;
|
|
460
|
+
flex-shrink: 0;
|
|
461
|
+
}
|
|
462
|
+
.beacon-pin-meta { flex: 1; min-width: 0; }
|
|
463
|
+
.beacon-pin-selector {
|
|
464
|
+
font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
465
|
+
color: var(--beacon-muted);
|
|
466
|
+
white-space: nowrap;
|
|
467
|
+
overflow: hidden;
|
|
468
|
+
text-overflow: ellipsis;
|
|
469
|
+
}
|
|
470
|
+
.beacon-pin-note-input {
|
|
471
|
+
margin-top: 4px;
|
|
472
|
+
width: 100%;
|
|
473
|
+
padding: 4px 6px;
|
|
474
|
+
background: var(--beacon-bg);
|
|
475
|
+
color: var(--beacon-fg);
|
|
476
|
+
border: 1px solid var(--beacon-border);
|
|
477
|
+
border-radius: 4px;
|
|
478
|
+
font: inherit;
|
|
479
|
+
font-size: 12px;
|
|
480
|
+
box-sizing: border-box;
|
|
481
|
+
}
|
|
482
|
+
.beacon-pin-annotate { align-self: flex-start; }
|
|
483
|
+
.beacon-thumb {
|
|
484
|
+
width: 100%;
|
|
485
|
+
border: 1px solid var(--beacon-border);
|
|
486
|
+
border-radius: 6px;
|
|
487
|
+
display: block;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
/* ── Captured runtime events chip (errors plugin form panel) ─── */
|
|
491
|
+
.beacon-events {
|
|
492
|
+
font-size: 12px;
|
|
493
|
+
border: 1px solid var(--beacon-border);
|
|
494
|
+
border-radius: 6px;
|
|
495
|
+
padding: 6px 8px;
|
|
496
|
+
}
|
|
497
|
+
.beacon-events-summary {
|
|
498
|
+
cursor: pointer;
|
|
499
|
+
list-style: none;
|
|
500
|
+
display: flex;
|
|
501
|
+
align-items: center;
|
|
502
|
+
gap: 6px;
|
|
503
|
+
color: var(--beacon-muted);
|
|
504
|
+
user-select: none;
|
|
505
|
+
}
|
|
506
|
+
.beacon-events-summary::-webkit-details-marker { display: none; }
|
|
507
|
+
.beacon-events-dot {
|
|
508
|
+
color: var(--beacon-bug);
|
|
509
|
+
font-size: 10px;
|
|
510
|
+
line-height: 1;
|
|
511
|
+
}
|
|
512
|
+
.beacon-events-list {
|
|
513
|
+
list-style: none;
|
|
514
|
+
margin: 8px 0 0;
|
|
515
|
+
padding: 0;
|
|
516
|
+
display: flex;
|
|
517
|
+
flex-direction: column;
|
|
518
|
+
gap: 4px;
|
|
519
|
+
max-height: 160px;
|
|
520
|
+
overflow-y: auto;
|
|
521
|
+
}
|
|
522
|
+
.beacon-events-item {
|
|
523
|
+
display: flex;
|
|
524
|
+
align-items: flex-start;
|
|
525
|
+
gap: 6px;
|
|
526
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
527
|
+
font-size: 11px;
|
|
528
|
+
line-height: 1.4;
|
|
529
|
+
}
|
|
530
|
+
.beacon-events-kind {
|
|
531
|
+
flex-shrink: 0;
|
|
532
|
+
padding: 1px 5px;
|
|
533
|
+
border-radius: 3px;
|
|
534
|
+
font-size: 10px;
|
|
535
|
+
text-transform: uppercase;
|
|
536
|
+
letter-spacing: 0.04em;
|
|
537
|
+
}
|
|
538
|
+
.beacon-events-kind.error { background: hsl(0 84% 50% / 0.15); color: var(--beacon-bug); }
|
|
539
|
+
.beacon-events-kind.rejection { background: hsl(38 92% 50% / 0.15); color: hsl(38 92% 50%); }
|
|
540
|
+
.beacon-events-msg {
|
|
541
|
+
word-break: break-word;
|
|
542
|
+
color: var(--beacon-fg);
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
/* ── liveMonitor plugin panel ─────────────────────────────── */
|
|
546
|
+
.beacon-monitor {
|
|
547
|
+
padding: 0 0 4px;
|
|
548
|
+
font-size: 12px;
|
|
549
|
+
color: var(--beacon-fg);
|
|
550
|
+
display: flex;
|
|
551
|
+
flex-direction: column;
|
|
552
|
+
gap: 6px;
|
|
553
|
+
}
|
|
554
|
+
.beacon-monitor-title {
|
|
555
|
+
display: flex;
|
|
556
|
+
align-items: center;
|
|
557
|
+
gap: 8px;
|
|
558
|
+
font-weight: 600;
|
|
559
|
+
text-transform: uppercase;
|
|
560
|
+
letter-spacing: 0.04em;
|
|
561
|
+
color: var(--beacon-muted);
|
|
562
|
+
font-size: 11px;
|
|
563
|
+
}
|
|
564
|
+
.beacon-monitor-rec {
|
|
565
|
+
width: 8px;
|
|
566
|
+
height: 8px;
|
|
567
|
+
border-radius: 50%;
|
|
568
|
+
background: var(--beacon-bug);
|
|
569
|
+
animation: beacon-rec-pulse 1.4s ease-in-out infinite;
|
|
570
|
+
}
|
|
571
|
+
@keyframes beacon-rec-pulse {
|
|
572
|
+
0%, 100% { opacity: 1; }
|
|
573
|
+
50% { opacity: 0.35; }
|
|
574
|
+
}
|
|
575
|
+
.beacon-monitor-row {
|
|
576
|
+
display: flex;
|
|
577
|
+
gap: 6px;
|
|
578
|
+
align-items: center;
|
|
579
|
+
}
|
|
580
|
+
.beacon-monitor-input {
|
|
581
|
+
flex: 1;
|
|
582
|
+
font: inherit;
|
|
583
|
+
padding: 6px 8px;
|
|
584
|
+
background: var(--beacon-bg);
|
|
585
|
+
color: var(--beacon-fg);
|
|
586
|
+
border: 1px solid var(--beacon-border);
|
|
587
|
+
border-radius: 6px;
|
|
588
|
+
min-width: 0;
|
|
589
|
+
box-sizing: border-box;
|
|
590
|
+
}
|
|
591
|
+
.beacon-monitor-input::placeholder { color: var(--beacon-muted); opacity: 0.7; }
|
|
592
|
+
.beacon-monitor-input:focus {
|
|
593
|
+
outline: 2px solid var(--beacon-accent);
|
|
594
|
+
outline-offset: -1px;
|
|
595
|
+
border-color: var(--beacon-accent);
|
|
596
|
+
}
|
|
597
|
+
.beacon-monitor-btn {
|
|
598
|
+
font: inherit;
|
|
599
|
+
padding: 6px 10px;
|
|
600
|
+
border-radius: 6px;
|
|
601
|
+
border: 1px solid var(--beacon-accent);
|
|
602
|
+
background: var(--beacon-accent);
|
|
603
|
+
color: white;
|
|
604
|
+
cursor: pointer;
|
|
605
|
+
font-weight: 500;
|
|
606
|
+
}
|
|
607
|
+
.beacon-monitor-btn:disabled { opacity: 0.4; cursor: not-allowed; }
|
|
608
|
+
.beacon-monitor-btn.stop {
|
|
609
|
+
background: transparent;
|
|
610
|
+
color: var(--beacon-accent);
|
|
611
|
+
}
|
|
612
|
+
.beacon-monitor-help {
|
|
613
|
+
color: var(--beacon-muted);
|
|
614
|
+
font-size: 11px;
|
|
615
|
+
}
|
|
616
|
+
.beacon-monitor-active-url {
|
|
617
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
618
|
+
font-size: 11px;
|
|
619
|
+
color: var(--beacon-muted);
|
|
620
|
+
word-break: break-all;
|
|
621
|
+
background: hsl(0 0% 0% / 0.18);
|
|
622
|
+
border-radius: 4px;
|
|
623
|
+
padding: 4px 6px;
|
|
624
|
+
}
|
|
625
|
+
.beacon-monitor-verbose {
|
|
626
|
+
display: inline-flex;
|
|
627
|
+
align-items: center;
|
|
628
|
+
gap: 6px;
|
|
629
|
+
color: var(--beacon-muted);
|
|
630
|
+
font-size: 11px;
|
|
631
|
+
cursor: pointer;
|
|
632
|
+
user-select: none;
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
.beacon-overlay-layer {
|
|
636
|
+
position: fixed;
|
|
637
|
+
inset: 0;
|
|
638
|
+
pointer-events: none;
|
|
639
|
+
z-index: calc(var(--beacon-z-index) + 1);
|
|
640
|
+
}
|
|
641
|
+
.beacon-overlay-layer > * { pointer-events: auto; }
|
|
642
|
+
|
|
643
|
+
/* ── Body-mounted UI ──────────────────────────────────────
|
|
644
|
+
Pin-popover and other overlays mount on document.body to escape transformed
|
|
645
|
+
ancestors. Shadow DOM :host vars don't reach them, so we re-declare the
|
|
646
|
+
variables here on each body-mounted root. */
|
|
647
|
+
|
|
648
|
+
.beacon-pin-popover {
|
|
649
|
+
--beacon-accent: #0ea5e9;
|
|
650
|
+
--beacon-bg: #ffffff;
|
|
651
|
+
--beacon-fg: #0f172a;
|
|
652
|
+
--beacon-muted: #64748b;
|
|
653
|
+
--beacon-border: #e2e8f0;
|
|
654
|
+
--beacon-radius: 10px;
|
|
655
|
+
--beacon-shadow: 0 10px 30px hsl(0 0% 0% / 0.15), 0 2px 6px hsl(0 0% 0% / 0.08);
|
|
656
|
+
--beacon-bug: #ef4444;
|
|
657
|
+
--beacon-idea: #22c55e;
|
|
658
|
+
--beacon-ux: #a855f7;
|
|
659
|
+
--beacon-a11y: #06b6d4;
|
|
660
|
+
|
|
661
|
+
position: fixed;
|
|
662
|
+
z-index: 2147483647;
|
|
663
|
+
width: 240px;
|
|
664
|
+
background: var(--beacon-bg);
|
|
665
|
+
color: var(--beacon-fg);
|
|
666
|
+
border: 1px solid var(--beacon-border);
|
|
667
|
+
border-radius: 6px;
|
|
668
|
+
box-shadow: var(--beacon-shadow);
|
|
669
|
+
padding: 10px;
|
|
670
|
+
display: none;
|
|
671
|
+
flex-direction: column;
|
|
672
|
+
gap: 8px;
|
|
673
|
+
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
674
|
+
font-size: 14px;
|
|
675
|
+
line-height: 1.5;
|
|
676
|
+
}
|
|
677
|
+
.beacon-pin-popover.open { display: flex; }
|
|
678
|
+
.beacon-pin-popover.beacon-theme-dark {
|
|
679
|
+
--beacon-bg: #0f172a;
|
|
680
|
+
--beacon-fg: #f1f5f9;
|
|
681
|
+
--beacon-muted: #94a3b8;
|
|
682
|
+
--beacon-border: #334155;
|
|
683
|
+
}
|
|
684
|
+
@media (prefers-color-scheme: dark) {
|
|
685
|
+
.beacon-pin-popover.beacon-theme-auto {
|
|
686
|
+
--beacon-bg: #0f172a;
|
|
687
|
+
--beacon-fg: #f1f5f9;
|
|
688
|
+
--beacon-muted: #94a3b8;
|
|
689
|
+
--beacon-border: #334155;
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
.beacon-pin-popover .beacon-pin-popover-header {
|
|
694
|
+
display: flex;
|
|
695
|
+
align-items: center;
|
|
696
|
+
justify-content: space-between;
|
|
697
|
+
gap: 6px;
|
|
698
|
+
}
|
|
699
|
+
.beacon-pin-popover .beacon-pin-popover-actions {
|
|
700
|
+
display: flex;
|
|
701
|
+
gap: 6px;
|
|
702
|
+
justify-content: flex-end;
|
|
703
|
+
}
|
|
704
|
+
.beacon-pin-popover .beacon-pin-num {
|
|
705
|
+
display: inline-flex;
|
|
706
|
+
align-items: center;
|
|
707
|
+
justify-content: center;
|
|
708
|
+
width: 20px;
|
|
709
|
+
height: 20px;
|
|
710
|
+
border-radius: 50%;
|
|
711
|
+
background: var(--beacon-accent);
|
|
712
|
+
color: white;
|
|
713
|
+
font-size: 11px;
|
|
714
|
+
font-weight: 600;
|
|
715
|
+
flex-shrink: 0;
|
|
716
|
+
}
|
|
717
|
+
.beacon-pin-popover .beacon-icon-btn {
|
|
718
|
+
background: transparent;
|
|
719
|
+
border: 0;
|
|
720
|
+
color: var(--beacon-muted);
|
|
721
|
+
cursor: pointer;
|
|
722
|
+
padding: 4px;
|
|
723
|
+
border-radius: 4px;
|
|
724
|
+
display: inline-flex;
|
|
725
|
+
}
|
|
726
|
+
.beacon-pin-popover .beacon-icon-btn:hover { background: var(--beacon-border); color: var(--beacon-fg); }
|
|
727
|
+
.beacon-pin-popover .beacon-icon-btn svg { width: 16px; height: 16px; }
|
|
728
|
+
.beacon-pin-popover .beacon-textarea {
|
|
729
|
+
width: 100%;
|
|
730
|
+
min-height: 48px;
|
|
731
|
+
padding: 6px 8px;
|
|
732
|
+
background: var(--beacon-bg);
|
|
733
|
+
color: var(--beacon-fg);
|
|
734
|
+
border: 1px solid var(--beacon-border);
|
|
735
|
+
border-radius: 6px;
|
|
736
|
+
font: inherit;
|
|
737
|
+
resize: vertical;
|
|
738
|
+
box-sizing: border-box;
|
|
739
|
+
}
|
|
740
|
+
.beacon-pin-popover .beacon-textarea:focus {
|
|
741
|
+
outline: 2px solid var(--beacon-accent);
|
|
742
|
+
outline-offset: -1px;
|
|
743
|
+
border-color: var(--beacon-accent);
|
|
744
|
+
}
|
|
745
|
+
.beacon-pin-popover .beacon-btn {
|
|
746
|
+
display: inline-flex;
|
|
747
|
+
align-items: center;
|
|
748
|
+
gap: 6px;
|
|
749
|
+
padding: 6px 12px;
|
|
750
|
+
border-radius: 6px;
|
|
751
|
+
border: 0;
|
|
752
|
+
cursor: pointer;
|
|
753
|
+
font: inherit;
|
|
754
|
+
font-weight: 500;
|
|
755
|
+
font-size: 13px;
|
|
756
|
+
}
|
|
757
|
+
.beacon-pin-popover .beacon-btn.primary { background: var(--beacon-accent); color: white; }
|
|
758
|
+
.beacon-pin-popover .beacon-btn svg { width: 14px; height: 14px; }
|
|
759
|
+
|
|
760
|
+
/* ── liveMonitor body-portal overlay ───────────────────────
|
|
761
|
+
Dashed viewport frame + draggable status chip. Body-mounted (same reason as
|
|
762
|
+
pick-mode-overlay), so the CSS var --beacon-monitor-accent is set inline on
|
|
763
|
+
the frame and chip elements by the plugin — the shadow root's :host vars
|
|
764
|
+
don't reach here. */
|
|
765
|
+
|
|
766
|
+
@keyframes beacon-monitor-frame-pulse {
|
|
767
|
+
0%, 100% { opacity: 0.55; }
|
|
768
|
+
50% { opacity: 1; }
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
.beacon-monitor-overlay-frame {
|
|
772
|
+
--beacon-monitor-accent: #10b981;
|
|
773
|
+
position: fixed;
|
|
774
|
+
inset: 0;
|
|
775
|
+
pointer-events: none;
|
|
776
|
+
z-index: 2147483646;
|
|
777
|
+
border: 2px dashed var(--beacon-monitor-accent);
|
|
778
|
+
border-radius: 4px;
|
|
779
|
+
box-shadow: inset 0 0 56px color-mix(in srgb, var(--beacon-monitor-accent) 18%, transparent);
|
|
780
|
+
box-sizing: border-box;
|
|
781
|
+
animation: beacon-monitor-frame-pulse 2.4s ease-in-out infinite;
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
.beacon-monitor-overlay-chip {
|
|
785
|
+
--beacon-monitor-accent: #10b981;
|
|
786
|
+
position: fixed;
|
|
787
|
+
z-index: 2147483647;
|
|
788
|
+
pointer-events: auto;
|
|
789
|
+
cursor: grab;
|
|
790
|
+
user-select: none;
|
|
791
|
+
background: #0f172a;
|
|
792
|
+
color: #f1f5f9;
|
|
793
|
+
border: 1px solid color-mix(in srgb, var(--beacon-monitor-accent) 50%, transparent);
|
|
794
|
+
border-radius: 999px;
|
|
795
|
+
padding: 6px 6px 6px 12px;
|
|
796
|
+
box-shadow: 0 6px 20px hsl(0 0% 0% / 0.3);
|
|
797
|
+
font: 500 12px/1.2 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
798
|
+
letter-spacing: 0.01em;
|
|
799
|
+
display: flex;
|
|
800
|
+
flex-direction: column;
|
|
801
|
+
gap: 4px;
|
|
802
|
+
min-width: 140px;
|
|
803
|
+
max-width: min(360px, calc(100vw - 32px));
|
|
804
|
+
touch-action: none;
|
|
805
|
+
}
|
|
806
|
+
.beacon-monitor-overlay-chip[data-dragging] { cursor: grabbing; }
|
|
807
|
+
|
|
808
|
+
.beacon-monitor-overlay-chip-row {
|
|
809
|
+
display: flex;
|
|
810
|
+
align-items: center;
|
|
811
|
+
gap: 6px;
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
.beacon-monitor-overlay-rec-dot {
|
|
815
|
+
width: 8px;
|
|
816
|
+
height: 8px;
|
|
817
|
+
border-radius: 50%;
|
|
818
|
+
background: #ef4444;
|
|
819
|
+
flex-shrink: 0;
|
|
820
|
+
animation: beacon-rec-pulse 1.4s ease-in-out infinite;
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
.beacon-monitor-overlay-rec-label {
|
|
824
|
+
font-weight: 700;
|
|
825
|
+
letter-spacing: 0.06em;
|
|
826
|
+
color: #ef4444;
|
|
827
|
+
font-size: 11px;
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
.beacon-monitor-overlay-sep {
|
|
831
|
+
color: #64748b;
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
.beacon-monitor-overlay-timer {
|
|
835
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
836
|
+
font-variant-numeric: tabular-nums;
|
|
837
|
+
font-size: 12px;
|
|
838
|
+
flex: 1;
|
|
839
|
+
min-width: 48px;
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
.beacon-monitor-overlay-stop {
|
|
843
|
+
font: inherit;
|
|
844
|
+
font-weight: 500;
|
|
845
|
+
font-size: 11px;
|
|
846
|
+
padding: 3px 10px;
|
|
847
|
+
border-radius: 999px;
|
|
848
|
+
background: var(--beacon-monitor-accent);
|
|
849
|
+
color: #ffffff;
|
|
850
|
+
border: 0;
|
|
851
|
+
cursor: pointer;
|
|
852
|
+
flex-shrink: 0;
|
|
853
|
+
}
|
|
854
|
+
.beacon-monitor-overlay-stop:hover {
|
|
855
|
+
background: color-mix(in srgb, var(--beacon-monitor-accent) 85%, white);
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
.beacon-monitor-overlay-url {
|
|
859
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
860
|
+
font-size: 10px;
|
|
861
|
+
color: #94a3b8;
|
|
862
|
+
padding: 0 6px;
|
|
863
|
+
white-space: nowrap;
|
|
864
|
+
overflow: hidden;
|
|
865
|
+
text-overflow: ellipsis;
|
|
866
|
+
max-width: 100%;
|
|
867
|
+
}
|
|
868
|
+
`,cu="launch-kit-beacon-portal-styles";function rg(){if(typeof document>"u"||!document.head||document.getElementById(cu))return;const e=document.createElement("style");e.id=cu,e.textContent=Yd,document.head.appendChild(e)}const Ml="http://www.w3.org/2000/svg";function og(){const e=document.createElementNS(Ml,"svg");e.setAttribute("viewBox","0 0 24 24"),e.setAttribute("fill","none"),e.setAttribute("stroke","currentColor"),e.setAttribute("stroke-width","2"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-linejoin","round");const t=document.createElementNS(Ml,"path");t.setAttribute("d","M3 11l18-5v12L3 14v-3z");const n=document.createElementNS(Ml,"path");return n.setAttribute("d","M11.6 16.8a3 3 0 1 1-5.8-1.6"),e.appendChild(t),e.appendChild(n),e}const Cr="launch-kit-beacon",lg=typeof HTMLElement<"u"?HTMLElement:class{};class ig extends lg{constructor(){super(...arguments),this.onTriggerClick=null}connectedCallback(){if(this.shadow)return;this.shadow=this.attachShadow({mode:"open"});const t=document.createElement("style");t.textContent=Yd,this.shadow.appendChild(t),this.triggerSlot=document.createElement("slot"),this.triggerSlot.name="trigger",this.shadow.appendChild(this.triggerSlot),this.defaultTrigger=document.createElement("button"),this.defaultTrigger.type="button",this.defaultTrigger.className="beacon-default-trigger",this.defaultTrigger.appendChild(og());const n=document.createElement("span");n.textContent="Feedback",this.defaultTrigger.appendChild(n),this.healthDot=document.createElement("span"),this.healthDot.className="beacon-health-dot",this.defaultTrigger.appendChild(this.healthDot),this.shadow.appendChild(this.defaultTrigger),this.defaultTrigger.addEventListener("click",()=>{var r;return(r=this.onTriggerClick)==null?void 0:r.call(this)}),this.triggerSlot.addEventListener("slotchange",()=>{const r=this.triggerSlot.assignedElements();if(r.length>0){this.defaultTrigger.style.display="none";for(const o of r)o.addEventListener("click",()=>{var l;return(l=this.onTriggerClick)==null?void 0:l.call(this)})}else this.defaultTrigger.style.display=""}),this.hasAttribute("position")||this.setAttribute("position","bottom-right"),this.hasAttribute("theme")||this.setAttribute("theme","auto")}setTriggerLabel(t){if(!this.defaultTrigger)return;const n=this.defaultTrigger.querySelector("span");n&&(n.textContent=t)}setHealthIndicator(t){var n;(n=this.healthDot)==null||n.classList.toggle("visible",t)}}function Gd(){typeof window>"u"||typeof customElements>"u"||customElements.get(Cr)||customElements.define(Cr,ig)}function sg(e,t){return{pluginName:e,captured:n=>t.getCaptured(n),get formValues(){return t.getFormValues(e)},requestMode:n=>t.requestMode(n),overlay:n=>t.overlay(n),on:(n,r)=>t.onLifecycle(n,r),get signal(){return t.getInitSignal()},captureSignal:()=>t.getCaptureSignal()}}class ag extends Error{constructor(t){super(`Duplicate plugin name: "${t}"`),this.name="DuplicatePluginNameError"}}function ug(e){const t=new Set;for(const r of e){if(t.has(r.name))throw new ag(r.name);t.add(r.name)}const n=e.map(r=>({plugin:r,ctx:null,status:{state:"active",failures:0}}));return{entries:n,install(r,o){for(const l of n)if(l.ctx=r(l.plugin.name),!!l.plugin.setupOnce)try{const i=l.plugin.setupOnce(l.ctx);typeof i=="function"&&(l.teardown=i)}catch(i){const s=i instanceof Error?i:new Error(String(i));l.status={state:"failed",failures:l.status.failures+1,error:{message:s.message,...s.stack?{stack:s.stack}:{},at:"setupOnce"}},o({plugin:l.plugin.name,error:s,at:"setupOnce"})}},destroy(){var r;for(const o of n){try{(r=o.teardown)==null||r.call(o)}catch{}o.teardown=void 0}},async capture(r,o){const l={};for(const i of n)if(i.plugin.capture)try{const s=await i.plugin.capture(i.ctx),a=cg(s,i.plugin.version);a!==null&&(l[i.plugin.name]=a)}catch(s){const a=s instanceof Error?s:new Error(String(s));l[i.plugin.name]=dg(a),i.status={state:"failed",failures:i.status.failures+1,error:{message:a.message,...a.stack?{stack:a.stack}:{},at:"capture"}},o({plugin:i.plugin.name,error:a,at:"capture"})}return l},status(){const r={};for(const o of n)r[o.plugin.name]=o.status;return r}}}function cg(e,t){if(e==null)return null;const n=t??1;return Array.isArray(e)||typeof e!="object"?{v:n,value:e}:{...e,v:n}}function dg(e){return{error:e.message,...e.stack?{stack:e.stack}:{}}}async function fg(e,t,n,r,o="omit"){const l=await pg(n),i=await fetch(e,{method:"POST",credentials:o,headers:{"Content-Type":"application/json",...l},body:JSON.stringify(t),signal:r}),a=(i.headers.get("content-type")??"").includes("application/json")?await i.json().catch(()=>null):await i.text();return{ok:i.ok,status:i.status,body:a}}async function pg(e){return e?typeof e=="function"?await e()??{}:e:{}}function hg(e,t,n){for(const r of t){const o=document.createElement("div");if(o.className="beacon-field",r.label){const i=document.createElement("label");i.className="beacon-label",i.textContent=r.label,o.appendChild(i)}if(r.description){const i=document.createElement("div");i.className="beacon-description",i.textContent=r.description,o.appendChild(i)}const l=mg(r,n);o.appendChild(l),e.appendChild(o)}}function mg(e,t){var r,o;const n=t.get(e.name);switch(e.type){case"toggle":{const l=document.createElement("label");l.className="beacon-toggle";const i=document.createElement("input");return i.type="checkbox",i.checked=n??e.defaultValue??!1,i.addEventListener("change",()=>t.set(e.name,i.checked)),l.appendChild(i),t.set(e.name,i.checked),l}case"text":{const l=document.createElement("input");l.type="text",l.className="beacon-input";const i=n??e.defaultValue??"";return l.value=i,e.placeholder&&(l.placeholder=e.placeholder),l.addEventListener("input",()=>t.set(e.name,l.value)),t.set(e.name,i),l}case"textarea":{const l=document.createElement("textarea");l.className="beacon-textarea";const i=n??e.defaultValue??"";return l.value=i,e.placeholder&&(l.placeholder=e.placeholder),e.rows&&(l.rows=e.rows),l.addEventListener("input",()=>t.set(e.name,l.value)),t.set(e.name,i),l}case"select":{const l=document.createElement("select");l.className="beacon-select";const i=n??e.defaultValue??((r=e.options[0])==null?void 0:r.value)??"";for(const s of e.options){const a=document.createElement("option");a.value=s.value,a.textContent=s.label??s.value,s.value===i&&(a.selected=!0),l.appendChild(a)}return l.addEventListener("change",()=>t.set(e.name,l.value)),t.set(e.name,i),l}case"radio":{const l=document.createElement("div");l.className="beacon-radio-group";const i=n??e.defaultValue??((o=e.options[0])==null?void 0:o.value)??"";for(const s of e.options){const a=document.createElement("label");a.className="beacon-radio-opt";const u=document.createElement("input");u.type="radio",u.name=e.name,u.value=s.value,s.value===i&&(u.checked=!0),u.addEventListener("change",()=>t.set(e.name,s.value));const p=document.createElement("span");p.textContent=s.label??s.value,a.appendChild(u),a.appendChild(p),l.appendChild(a)}return t.set(e.name,i),l}case"number":{const l=document.createElement("input");l.type="number",l.className="beacon-input";const i=n??e.defaultValue;return i!==void 0&&(l.value=String(i)),e.min!==void 0&&(l.min=String(e.min)),e.max!==void 0&&(l.max=String(e.max)),e.step!==void 0&&(l.step=String(e.step)),l.addEventListener("input",()=>{const s=l.value===""?void 0:Number(l.value);t.set(e.name,s)}),i!==void 0&&t.set(e.name,i),l}}}const $l="http://www.w3.org/2000/svg";function gg(){const e=document.createElementNS($l,"svg");e.setAttribute("viewBox","0 0 24 24"),e.setAttribute("fill","none"),e.setAttribute("stroke","currentColor"),e.setAttribute("stroke-width","2"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-linejoin","round");const t=document.createElementNS($l,"line");t.setAttribute("x1","18"),t.setAttribute("y1","6"),t.setAttribute("x2","6"),t.setAttribute("y2","18");const n=document.createElementNS($l,"line");return n.setAttribute("x1","6"),n.setAttribute("y1","6"),n.setAttribute("x2","18"),n.setAttribute("y2","18"),e.appendChild(t),e.appendChild(n),e}class vg{constructor(t,n,r){this.labels=t,this.severities=n,this.callbacks=r,this.severitySelected="bug",this.modeCounts={minimize:0,hide:0,pickElement:0},this.pluginCleanups=[],this.lastActive=null,this.submitSucceeded=!1,this.expectedSuppressedCloses=0,this.root=document.createElement("dialog"),this.root.className="beacon-dialog",this.inner=document.createElement("div"),this.inner.className="beacon-dialog-inner",this.root.appendChild(this.inner);const o=document.createElement("div");o.className="beacon-drawer-header";const l=document.createElement("div");l.className="beacon-drawer-title",l.textContent=t.drawerTitle,o.appendChild(l);const i=document.createElement("button");i.type="button",i.className="beacon-icon-btn",i.setAttribute("aria-label",t.closeButton),i.appendChild(gg()),i.addEventListener("click",()=>this.userCloseAttempt()),o.appendChild(i),this.inner.appendChild(o),this.root.addEventListener("cancel",x=>{this.submitSucceeded||this.hasUnsavedInput()&&(x.preventDefault(),window.confirm("You have unsaved feedback. Discard?")&&this.root.close())});const s=document.createElement("div");s.className="beacon-drawer-body",this.inner.appendChild(s);const a=document.createElement("div");a.className="beacon-field";const u=document.createElement("label");u.className="beacon-label",u.textContent=t.descriptionLabel,this.descTextarea=document.createElement("textarea"),this.descTextarea.className="beacon-textarea",this.descTextarea.placeholder=t.descriptionPlaceholder,this.descTextarea.rows=4,a.appendChild(u),a.appendChild(this.descTextarea),s.appendChild(a);const p=document.createElement("div");p.className="beacon-field";const v=document.createElement("label");v.className="beacon-label",v.textContent=t.severityLabel,this.severitiesContainer=document.createElement("div"),this.severitiesContainer.className="beacon-severity";for(const x of n){const y=document.createElement("label");y.className="beacon-severity-opt",y.dataset.sev=x;const k=document.createElement("input");k.type="radio",k.name="beacon-severity",k.value=x,x===this.severitySelected&&(k.checked=!0,y.classList.add("selected")),k.addEventListener("change",()=>this.setSeverity(x)),y.appendChild(k),y.appendChild(document.createTextNode(this.severityLabel(x))),this.severitiesContainer.appendChild(y)}p.appendChild(v),p.appendChild(this.severitiesContainer),s.appendChild(p),this.pluginSlot=document.createElement("div"),this.pluginSlot.className="beacon-plugin-panels",s.appendChild(this.pluginSlot),this.statusEl=document.createElement("div"),this.statusEl.className="beacon-status",s.appendChild(this.statusEl);const h=document.createElement("div");h.className="beacon-actions",this.submitBtn=document.createElement("button"),this.submitBtn.type="button",this.submitBtn.className="beacon-btn primary",this.submitBtn.textContent=t.send,this.submitBtn.addEventListener("click",()=>this.callbacks.onSubmit()),h.appendChild(this.submitBtn),s.appendChild(h),this.root.addEventListener("close",()=>{if(this.expectedSuppressedCloses>0){this.expectedSuppressedCloses-=1;return}this.callbacks.onClose("user")})}async requestMode(t){this.modeCounts[t]+=1,this.modeCounts[t]===1&&this.applyMode(t,!0);let n=!1;return()=>{n||(n=!0,this.modeCounts[t]-=1,this.modeCounts[t]===0&&this.applyMode(t,!1))}}applyMode(t,n){var r,o;switch(t){case"pickElement":{n?(this.lastActive=document.activeElement instanceof HTMLElement?document.activeElement:null,this.root.open&&(this.expectedSuppressedCloses+=1,this.root.close())):(this.root.open||this.tryShowModal(),(o=(r=this.lastActive)==null?void 0:r.focus)==null||o.call(r));break}case"hide":{this.inner.style.visibility=n?"hidden":"",this.root.style.opacity=n?"0":"";break}case"minimize":{const l=this.inner.querySelector(".beacon-drawer-body");l&&(l.style.display=n?"none":"");break}}}open(){this.root.open||this.tryShowModal()}close(t="user"){this.root.open&&this.root.close(),t==="submitted"&&(this.statusEl.textContent="")}userCloseAttempt(){!this.submitSucceeded&&this.hasUnsavedInput()&&!window.confirm("You have unsaved feedback. Discard?")||this.root.open&&this.root.close()}hasUnsavedInput(){return this.descTextarea.value.trim().length>0}setSubmitSucceeded(t){this.submitSucceeded=t}getDescription(){return this.descTextarea.value}setDescription(t){this.descTextarea.value=t}getSeverity(){return this.severitySelected}setSeverity(t){this.severitySelected=t;for(const n of Array.from(this.severitiesContainer.children)){n.classList.toggle("selected",n.dataset.sev===t);const r=n.querySelector("input");r&&(r.checked=n.dataset.sev===t)}}setStatus(t,n="idle"){this.statusEl.textContent=t,this.statusEl.classList.remove("error","success"),n!=="idle"&&this.statusEl.classList.add(n)}setSubmitting(t){this.submitBtn.disabled=t,this.submitBtn.textContent=t?this.labels.sending:this.labels.send}resetState(){this.descTextarea.value="",this.setStatus("","idle"),this.setSubmitting(!1),this.submitSucceeded=!1,this.severities[0]&&this.setSeverity(this.severities[0])}installPluginPanels(t,n){this.clearPluginPanels();for(const r of t){const o=document.createElement("div");if(o.className="beacon-plugin-panel",r.form.title){const l=document.createElement("div");l.className="beacon-plugin-panel-title",l.textContent=r.form.title,o.appendChild(l)}if("fields"in r.form)hg(o,r.form.fields,{get:l=>n.get(r.name,l),set:(l,i)=>n.set(r.name,l,i)});else{const l=r.form.render(o,r.ctx);typeof l=="function"&&this.pluginCleanups.push(l)}this.pluginSlot.appendChild(o)}}clearPluginPanels(){for(const t of this.pluginCleanups)try{t()}catch{}this.pluginCleanups=[],this.pluginSlot.innerHTML=""}severityLabel(t){switch(t){case"bug":return this.labels.severityBug;case"idea":return this.labels.severityIdea;case"ux":return this.labels.severityUx;case"a11y":return this.labels.severityA11y}}tryShowModal(){try{this.root.showModal()}catch{this.root.show()}}}function yg(){return{triggerButton:"Feedback",drawerTitle:"Send feedback",closeButton:"Close",send:"Send",sending:"Sending…",sentSuccess:"Sent — thanks!",descriptionLabel:"Description",descriptionPlaceholder:"What happened?",severityLabel:"Severity",severityBug:"bug",severityIdea:"idea",severityUx:"ux",severityA11y:"a11y"}}function xg(e){const t=document.createElement("div");return t.className="beacon-overlay-layer",e.appendChild(t),{layer:t}}function wg(e,t){const n=document.createElement("div");e.layer.appendChild(n);let r;try{r=t(n)}catch(o){throw n.remove(),o}return()=>{try{r==null||r()}catch{}n.parentNode&&n.parentNode.removeChild(n)}}function kg(){var n,r;const e=navigator;return e.userAgentData?{brand:((n=e.userAgentData.brands.find(o=>!/Not[.\-]?A.?Brand/i.test(o.brand)))==null?void 0:n.brand)??((r=e.userAgentData.brands[0])==null?void 0:r.brand)??"unknown",mobile:e.userAgentData.mobile,platform:e.userAgentData.platform}:void 0}function bg(){return{name:"metadata",capture(){const e=kg();return e?{uaData:e}:null}}}const Sg=8,Eg=" >> ";function du(e,t=document){if(!e)return!1;try{return t.querySelectorAll(`#${CSS.escape(e)}`).length===1}catch{return!1}}function Cg(e){const t=e.tagName.toLowerCase(),n=Array.from(e.classList).filter(r=>r.length>0&&r.length<40).slice(0,3).map(r=>`.${CSS.escape(r)}`).join("");return t+n}function Ng(e){const t=e.parentElement;return t?Array.from(t.children).filter(r=>r.tagName===e.tagName).indexOf(e)+1:1}function jg(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return"";if(e.id&&du(e.id))return`#${CSS.escape(e.id)}`;const t=[],n=[];let r=e,o=0;for(;r&&r.tagName.toLowerCase()!=="body"&&o<Sg;){const i=r;if(i.id&&du(i.id)){t.unshift(`#${CSS.escape(i.id)}`);break}const s=Cg(i),a=i.parentElement;let u=s;if(a)try{const p=Array.from(i.classList).join(" ");Array.from(a.children).filter(h=>h.tagName===i.tagName&&Array.from(h.classList).join(" ")===p).length>1&&(u=`${i.tagName.toLowerCase()}:nth-of-type(${Ng(i)})`)}catch{}if(t.unshift(u),t.length>1&&n.unshift(" > "),a)r=a;else{const p=i.getRootNode();p instanceof ShadowRoot?(r=p.host,t.length>0&&(n[0]=Eg)):r=null}o++}let l=t[0]??"";for(let i=1;i<t.length;i++)l+=(n[i-1]??" > ")+t[i];return l}function Lg(e){const t=Object.keys(e).filter(r=>r.startsWith("__reactFiber$")||r.startsWith("__reactInternalInstance$"));if(t.length===0)return null;let n=e[t[0]];for(let r=0;r<10&&n;r++){const o=n,l=o.type;if(typeof l=="function"){const i=l.displayName??l.name;if(i&&i!=="_default")return{lib:"react",name:i}}if(typeof l=="object"&&l!==null){const i=l.displayName??l.name;if(i)return{lib:"react",name:i}}n=o.return}return{lib:"react"}}function _g(e){var r,o;const t=e,n=t.__vueParentComponent;if(n){const l=((r=n.type)==null?void 0:r.name)??((o=n.type)==null?void 0:o.__name);return{lib:"vue",...l?{name:l}:{}}}return t.__vue__?{lib:"vue"}:null}function Tg(e){const t=window.ng;if(!(t!=null&&t.getComponent))return null;try{const n=t.getComponent(e);if(!n)return null;const r=n.constructor;return{lib:"angular",...r!=null&&r.name?{name:r.name}:{}}}catch{return null}}function Rg(e){return"__svelte_meta"in e?{lib:"svelte"}:null}function Pg(e){return Lg(e)??_g(e)??Tg(e)??Rg(e)??void 0}const zg=5e3,Ag=1e3,fu=1e3,pu=200,Mg=50,hu=200,$g=500,Ig=["display","position","top","right","bottom","left","width","height","min-width","min-height","max-width","max-height","margin","padding","font-family","font-size","font-weight","line-height","text-align","color","background-color","background-image","border","border-radius","opacity","visibility","overflow","z-index","transform","transition","flex","flex-direction","justify-content","align-items","gap","grid-template-columns","grid-template-rows"];function mu(e,t){return e.length<=t?e:e.slice(0,t)+`
|
|
869
|
+
|
|
870
|
+
/* … truncated, original was ${e.length} chars */`}function Dg(e){const t=getComputedStyle(e),n={};for(const r of Ig){const o=t.getPropertyValue(r);o&&o!=="normal"&&o!=="none"&&o!=="auto"&&o!=="0px"&&(n[r]=o.trim().slice(0,$g))}return n}function Og(e){return Array.from(e.classList).slice(0,Mg).map(t=>t.length>hu?t.slice(0,hu):t)}function Bg(e){const t=e.getBoundingClientRect(),n=jg(e),r=e.id||null,o=Pg(e);return{selector:n.length>fu?n.slice(0,fu):n,tagName:e.tagName.toLowerCase(),id:r&&r.length>pu?r.slice(0,pu):r,classList:Og(e),outerHTML:mu(e.outerHTML,zg),...e.parentElement?{parentOuterHTML:mu(e.parentElement.outerHTML,Ag)}:{},computedStyles:Dg(e),boundingRect:{x:Math.round(t.x),y:Math.round(t.y),w:Math.round(t.width),h:Math.round(t.height)},...o?{framework:o}:{}}}const Fg=14,Ug="#ffffff",Wg="#ffffff",Hg=3,Vg="#0ea5e9";async function Xd(e,t,n,r=Vg){const o=await qg(e),l=document.createElement("canvas");l.width=o.naturalWidth,l.height=o.naturalHeight;const i=l.getContext("2d");if(!i)throw new Error("Could not get 2D canvas context");i.drawImage(o,0,0);const s=l.width/n.w,a=l.height/n.h;for(const u of t){const p=Qg(u);if(!p)continue;const v=p.x*s,h=p.y*a,x=p.w*s,y=p.h*a;i.lineWidth=Hg,i.strokeStyle=r,i.strokeRect(v,h,x,y);const k=v+x,_=h;i.beginPath(),i.fillStyle=r,i.arc(k,_,Fg,0,Math.PI*2),i.fill(),i.lineWidth=3,i.strokeStyle=Ug,i.stroke(),i.fillStyle=Wg,i.font="bold 16px system-ui, -apple-system, sans-serif",i.textAlign="center",i.textBaseline="middle",i.fillText(String(u.number),k,_+1)}return l.toDataURL("image/jpeg",.85)}function Qg(e){if(e.liveElement&&document.contains(e.liveElement)){const t=e.liveElement.getBoundingClientRect();if(t.width>0||t.height>0)return{x:t.left,y:t.top,w:t.width,h:t.height}}if(e.selector)try{const t=document.querySelector(e.selector);if(t){const n=t.getBoundingClientRect();if(n.width>0||n.height>0)return{x:n.left,y:n.top,w:n.width,h:n.height}}}catch{}return e.boundingRect}function qg(e){return new Promise((t,n)=>{const r=new Image;r.onload=()=>t(r),r.onerror=o=>n(o),r.src=e})}const Qn="beacon-no-capture",Kg="#0ea5e9",gu="Click any element to pin it · Press Esc to finish";function vu(e,t){return/^#[0-9a-fA-F]{6}$/.test(e)?`${e}${t}`:e}function Yg(e={}){const t=e.accent??Kg,n=vu(t,"b3"),r=vu(t,"2e"),o=document.createElement("style");o.className=Qn,o.textContent="@keyframes beacon-spin { to { transform: rotate(360deg); } }",document.head.appendChild(o);const l=document.createElement("div");l.className=Qn,l.setAttribute("aria-hidden","true"),l.style.cssText=["position: fixed","inset: 0","pointer-events: none","z-index: 2147483646",`border: 2px dashed ${n}`,"border-radius: 4px",`box-shadow: inset 0 0 56px ${r}`,"box-sizing: border-box"].join("; ");const i=document.createElement("div");i.className=Qn,i.setAttribute("role","status"),i.style.cssText=["position: fixed","top: 16px","left: 50%","transform: translateX(-50%)",`background: ${t}`,"color: #fff","padding: 6px 14px","border-radius: 999px","font: 500 12px/1.4 system-ui, -apple-system, sans-serif","letter-spacing: 0.01em","box-shadow: 0 4px 12px hsl(0 0% 0% / 0.3)","pointer-events: none","white-space: nowrap","z-index: 2147483646"].join("; "),i.textContent=gu;const s=`<span style="
|
|
871
|
+
display: inline-block;
|
|
872
|
+
width: 12px;
|
|
873
|
+
height: 12px;
|
|
874
|
+
border: 2px solid #fff;
|
|
875
|
+
border-top-color: transparent;
|
|
876
|
+
border-radius: 50%;
|
|
877
|
+
animation: beacon-spin 800ms linear infinite;
|
|
878
|
+
vertical-align: middle;
|
|
879
|
+
margin-right: 8px;
|
|
880
|
+
"></span>`;function a(f){return f.replace(/[<>&]/g,c=>({"<":"<",">":">","&":"&"})[c])}document.body.appendChild(l),document.body.appendChild(i);const u=new Map;function p(f){const c=document.createElement("div");return c.className=Qn,c.setAttribute("aria-hidden","true"),c.style.cssText=["position: fixed","width: 24px","height: 24px","border-radius: 999px",`background: ${t}`,"color: #fff","display: flex","align-items: center","justify-content: center","font: 700 12px/1 system-ui, -apple-system, sans-serif","border: 2px solid #fff","box-shadow: 0 2px 8px hsl(0 0% 0% / 0.4)","pointer-events: none","z-index: 2147483646"].join("; "),c.textContent=String(f),document.body.appendChild(c),c}function v(){const f=document.createElement("div");return f.className=Qn,f.setAttribute("aria-hidden","true"),f.style.cssText=["position: fixed","pointer-events: none",`border: 2px solid ${t}`,"border-radius: 2px","box-sizing: border-box","z-index: 2147483645"].join("; "),document.body.appendChild(f),f}function h(f,c,m){const g=m?"0.5":"1";f.outline.style.display="block",f.outline.style.opacity=g,f.outline.style.left=`${c.x}px`,f.outline.style.top=`${c.y}px`,f.outline.style.width=`${c.w}px`,f.outline.style.height=`${c.h}px`,f.marker.style.display="flex",f.marker.style.opacity=g,f.marker.style.left=`${c.x+c.w-12}px`,f.marker.style.top=`${Math.max(2,c.y-12)}px`}function x(f){f.marker.style.display="none",f.outline.style.display="none"}function y(){u.forEach(f=>{let c=f.anchor.target;if(c&&!c.isConnected&&(c=null),!c&&f.anchor.selector){try{c=document.querySelector(f.anchor.selector)}catch{c=null}c&&(f.anchor.target=c)}if(c){const g=c.getBoundingClientRect();if(g.width>0||g.height>0){h(f,{x:g.left,y:g.top,w:g.width,h:g.height},!1);return}}const m=f.anchor.fallbackRect;if(m&&(m.w>0||m.h>0)){h(f,m,!0);return}x(f)})}let k=null;function _(){k===null&&(k=requestAnimationFrame(()=>{k=null,y()}))}return window.addEventListener("scroll",_,!0),window.addEventListener("resize",_),{addPin(f,c){const m=p(f),g=v();u.set(f,{anchor:c,marker:m,outline:g}),y()},setLoading(f){f?i.innerHTML=s+a(f):i.textContent=gu},destroy(){window.removeEventListener("scroll",_,!0),window.removeEventListener("resize",_),k!==null&&cancelAnimationFrame(k),l.remove(),i.remove(),o.remove(),u.forEach(({marker:f,outline:c})=>{f.remove(),c.remove()}),u.clear()}}}const Gg='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>',Xg='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>';function Zg(e){return new Promise(t=>{const n=document.createElement("div");n.className="beacon-pin-popover open beacon-no-capture beacon-theme-auto",n.innerHTML=`
|
|
881
|
+
<div class="beacon-pin-popover-header">
|
|
882
|
+
<div style="display:flex;align-items:center;gap:6px;font-weight:600;font-size:13px;">
|
|
883
|
+
<span class="beacon-pin-num">${e.pinNumber}</span>
|
|
884
|
+
<span>Note for this pin</span>
|
|
885
|
+
</div>
|
|
886
|
+
<button type="button" class="beacon-icon-btn" data-action="cancel" aria-label="Discard this pin">${Gg}</button>
|
|
887
|
+
</div>
|
|
888
|
+
<textarea class="beacon-textarea" rows="2" placeholder="Optional — describe what's wrong here…" style="min-height:48px;"></textarea>
|
|
889
|
+
<div class="beacon-pin-popover-actions">
|
|
890
|
+
<button type="button" class="beacon-btn primary" data-action="save">${Xg} Save</button>
|
|
891
|
+
</div>
|
|
892
|
+
`;const r=240,o=160,l=Math.min(Math.max(8,e.anchor.x),window.innerWidth-r-8),i=Math.min(Math.max(8,e.anchor.y+12),window.innerHeight-o-8);n.style.left=`${l}px`,n.style.top=`${i}px`,document.body.appendChild(n);const s=n.querySelector("textarea");s.focus();function a(p){document.removeEventListener("keydown",u,!0),n.remove(),t(p)}function u(p){p.key==="Escape"&&(p.preventDefault(),p.stopPropagation(),a({cancelled:"all"}))}document.addEventListener("keydown",u,!0),n.addEventListener("click",p=>{var x;const h=(x=p.target.closest("[data-action]"))==null?void 0:x.getAttribute("data-action");if(h&&(p.stopPropagation(),h==="cancel"&&a({cancelled:"pin"}),h==="save")){const y=s.value.trim();a({...y?{note:y}:{},cancelled:!1})}}),s.addEventListener("keydown",p=>{if(p.key==="Enter"&&(p.metaKey||p.ctrlKey)){p.preventDefault();const v=s.value.trim();a({...v?{note:v}:{},cancelled:!1})}})})}const Jg="#0ea5e9";function ev(e,t){return/^#[0-9a-fA-F]{6}$/.test(e)?`${e}${t}`:e}function tv(e){const{shadowRoot:t,onHover:n}=e,r=e.accent??Jg,o=ev(r,"14"),l=document.createElement("div");l.style.cssText=["position: fixed","pointer-events: none","z-index: 2147483646",`border: 2px solid ${r}`,`background: ${o}`,"transition: all 60ms ease-out","box-sizing: border-box","border-radius: 2px"].join("; "),document.body.appendChild(l);const i=document.createElement("div");i.style.cssText=["position: fixed","pointer-events: none","z-index: 2147483647","background: #0f172a","color: #fff","font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace","padding: 3px 6px","border-radius: 3px","max-width: 280px","overflow: hidden","text-overflow: ellipsis","white-space: nowrap"].join("; "),document.body.appendChild(i);const s=document.body.style.cursor;document.body.style.cursor="crosshair";let a=!1,u=()=>{};const p=new Promise(g=>{u=g});function v(g){if(!g||!(g instanceof Node))return!1;let w=g;for(;w;){if(w===t||w===t.host)return!0;w=w.parentNode??w.host??null}return!1}function h(g){return g.tagName.includes("-")}function x(g,w){var b,N;l.style.display="none",i.style.display="none";const S=document.elementsFromPoint(g,w);l.style.display="block",i.style.display="block";for(const L of S){if(v(L))continue;let R=L,K=16;for(;R.shadowRoot&&!h(R)&&K-- >0;){const ae=(((N=(b=R.shadowRoot).elementsFromPoint)==null?void 0:N.call(b,g,w))??[]).find(Fe=>!v(Fe)&&Fe!==R);if(!ae)break;R=ae}return R}return null}function y(g){const w=g.getBoundingClientRect();l.style.left=`${w.left}px`,l.style.top=`${w.top}px`,l.style.width=`${w.width}px`,l.style.height=`${w.height}px`;const S=g.tagName.toLowerCase(),b=g.classList.length>0?"."+Array.from(g.classList).slice(0,2).join("."):"";i.textContent=S+b;const N=w.top-22;i.style.left=`${w.left}px`,i.style.top=`${N>=0?N:w.bottom+4}px`}function k(g){const w=x(g.clientX,g.clientY);w?(y(w),n==null||n(w)):(l.style.display="none",i.style.display="none",n==null||n(null))}function _(g){if(g.button!==0)return;g.preventDefault(),g.stopPropagation();const w=x(g.clientX,g.clientY);w&&m(w)}function f(g){g.preventDefault(),g.stopPropagation()}function c(g){g.key==="Escape"&&(g.preventDefault(),m(null))}function m(g){a||(a=!0,document.removeEventListener("mousemove",k,!0),document.removeEventListener("pointerdown",_,!0),document.removeEventListener("click",f,!0),document.removeEventListener("mouseup",f,!0),document.removeEventListener("keydown",c,!0),l.remove(),i.remove(),document.body.style.cursor=s,u(g))}return document.addEventListener("mousemove",k,!0),document.addEventListener("pointerdown",_,!0),document.addEventListener("click",f,!0),document.addEventListener("mouseup",f,!0),document.addEventListener("keydown",c,!0),{cancel:()=>m(null),promise:p}}let Il=null;async function nv(){return Il||(Il=await Md(()=>import("./index-6sdqbm2o.js"),[])),Il}const co="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkAAIAAAoAAv/lxKUAAAAASUVORK5CYII=";function yu(e,t){if(!e||e.startsWith("data:")||e.startsWith("blob:")||e.startsWith("/")||e.startsWith("#"))return!0;try{if(new URL(e,window.location.href).origin===window.location.origin)return!0}catch{return!1}return t==="anonymous"||t==="use-credentials"}function rv(){const e=[],t=[];return document.querySelectorAll("img").forEach(n=>{yu(n.src,n.crossOrigin)||(e.push({el:n,src:n.src}),n.src=co)}),document.querySelectorAll("image").forEach(n=>{const r=n,o=r.getAttribute("href"),l=r.getAttributeNS("http://www.w3.org/1999/xlink","href"),i=o||l||"";i&&!yu(i)&&(t.push({el:r,href:o,xlink:l}),o!==null&&r.setAttribute("href",co),l!==null&&r.setAttributeNS("http://www.w3.org/1999/xlink","href",co))}),()=>{for(const{el:n,src:r}of e)n.src=r;for(const{el:n,href:r,xlink:o}of t)r!==null&&n.setAttribute("href",r),o!==null&&n.setAttributeNS("http://www.w3.org/1999/xlink","href",o)}}function ov(){const e=[];document.querySelectorAll("*").forEach(l=>{const i=getComputedStyle(l),s=(i.overflowY==="auto"||i.overflowY==="scroll")&&l.scrollHeight>l.clientHeight,a=(i.overflowX==="auto"||i.overflowX==="scroll")&&l.scrollWidth>l.clientWidth;(s||a)&&e.push(l)});const t=window.scrollX,n=window.scrollY,r=e.map(l=>({el:l,scrollLeft:l.scrollLeft,scrollTop:l.scrollTop})),o=new Map;for(const l of e){let i=l;for(;i&&i!==document.documentElement.parentElement;)o.has(i)||o.set(i,i.style.cssText),i=i.parentElement}for(const l of o.keys())l.style.setProperty("overflow","visible","important"),l.style.setProperty("overflow-x","visible","important"),l.style.setProperty("overflow-y","visible","important"),l.style.setProperty("max-height","none","important"),l.style.setProperty("height","auto","important"),l.style.setProperty("min-height","0","important");return()=>{for(const[l,i]of o)l.style.cssText=i;for(const{el:l,scrollLeft:i,scrollTop:s}of r)l.scrollLeft=i,l.scrollTop=s;window.scrollTo(t,n)}}function lv(){const e=document.createElement("style");return e.setAttribute("data-beacon-capture",""),e.textContent="*,*::before,*::after{animation:none !important;transition:none !important;}",(document.head??document.documentElement).appendChild(e),()=>{e.remove()}}let xu=Promise.resolve();async function Zd(e={}){const t=xu;let n;xu=new Promise(r=>{n=r});try{return await t,await iv(e,n)}catch(r){throw n(),r}}async function iv(e,t){const{quality:n=.7,pixelRatio:r=Math.min(window.devicePixelRatio||1,2),excludeShadowRoot:o,excludeHosts:l,fullPage:i=!0}=e,s=await nv(),a=o||l!=null&&l.length?y=>{let k=y;for(;k;){if(o&&k===o.host||l&&k instanceof Element&&l.includes(k)||k instanceof Element&&k.classList.contains("beacon-no-capture"))return!1;k=k.parentNode}return!0}:void 0,u=rv(),p=i?ov():()=>{},v=lv();let h=!1;const x=()=>{if(!h){h=!0;try{v()}finally{try{p()}finally{try{u()}finally{t()}}}}};try{i&&await new Promise(c=>requestAnimationFrame(()=>c()));const y=document.documentElement,k=i?Math.max(y.scrollWidth,window.innerWidth):window.innerWidth,_=i?Math.max(y.scrollHeight,window.innerHeight):window.innerHeight;return{dataUrl:await s.toJpeg(y,{quality:n,pixelRatio:r,cacheBust:!0,...a?{filter:a}:{},imagePlaceholder:co,width:k,height:_,style:{transform:"none"}}),width:k,height:_,pixelRatio:r,dispose:x}}catch(y){throw x(),y}}let Bs=null;function sv(e){Bs=e}function av(){return Bs}function sn(){Bs=null}const wu="http://www.w3.org/2000/svg";function uv(){const e=document.createElementNS(wu,"svg");e.setAttribute("viewBox","0 0 24 24"),e.setAttribute("fill","none"),e.setAttribute("stroke","currentColor"),e.setAttribute("stroke-width","2"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-linejoin","round"),e.setAttribute("aria-hidden","true");const t=["M3 6h18","M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6","M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"];for(const n of t){const r=document.createElementNS(wu,"path");r.setAttribute("d",n),e.appendChild(r)}return e}function cv(e={}){const t=e.maxPins??20;let n=[],r=new WeakMap,o=null,l=0,i=null,s=null,a=null,u=null;function p(){n=[],r=new WeakMap,o=null,l+=1,sn(),_(),f()}function v(){const c=document.querySelector("launch-kit-beacon");return(c==null?void 0:c.shadowRoot)??null}function h(){if(typeof window>"u")return e.accent??"#0ea5e9";if(e.accent)return e.accent;const c=document.querySelector("launch-kit-beacon");return c&&getComputedStyle(c).getPropertyValue("--beacon-accent").trim()||"#0ea5e9"}async function x(c){const m=v();if(!m)return;const g=h(),w=await c.requestMode("pickElement"),S=Yg({accent:g});for(const b of n){const N=r.get(b);N&&S.addPin(b.number,{target:N,selector:b.selector,fallbackRect:b.boundingRect})}try{let b=!0;for(;b&&!(n.length>=t);){const L=await tv({shadowRoot:m,accent:g}).promise;if(!L)break;const R=L.getBoundingClientRect(),K=await Zg({anchor:{x:R.left,y:R.bottom},pinNumber:n.length+1});if(K.cancelled==="all"){b=!1;break}if(K.cancelled==="pin")continue;const me=Bg(L),ae={number:n.length+1,...me,...K.note?{note:K.note}:{}};n.push(ae),r.set(ae,L),S.addPin(ae.number,{target:L,selector:me.selector,fallbackRect:me.boundingRect})}n.length>0?(S.setLoading("Capturing screenshot…"),await new Promise(N=>requestAnimationFrame(()=>N())),await y()):(o=null,sn())}finally{S.destroy(),w()}_(),f()}async function y(){const c=++l;if(n.length===0){o=null,sn(),f();return}const m=h();try{const g=Array.from(document.querySelectorAll("launch-kit-beacon")),w=await Zd({excludeHosts:g});try{if(c!==l)return;const S=n.map(L=>({number:L.number,selector:L.selector,boundingRect:L.boundingRect,...r.get(L)?{liveElement:r.get(L)}:{}})),b={w:w.width,h:w.height,dpr:w.pixelRatio},N=await Xd(w.dataUrl,S,b,m);if(c!==l)return;o=N,sv({dataUrl:N,mime:"image/jpeg"})}finally{w.dispose()}}catch{if(c!==l)return;o=null,sn()}c===l&&f()}function k(c){const m=n.findIndex(g=>g.number===c);m!==-1&&(n.splice(m,1),n.forEach((g,w)=>{g.number=w+1}),o=null,sn(),_(),f(),y())}function _(){if(i&&(i.textContent=`Pins (${n.length})`,i.style.display=n.length===0?"none":""),u&&(u.textContent=n.length===0?"Annotate elements":"Add another pin"),!!s){s.innerHTML="",s.style.display=n.length===0?"none":"";for(const c of n){const m=document.createElement("div");m.className="beacon-pin-item",m.dataset.pin=String(c.number);const g=document.createElement("span");g.className="beacon-pin-num",g.textContent=String(c.number);const w=document.createElement("div");w.className="beacon-pin-meta";const S=document.createElement("div");S.className="beacon-pin-selector",S.title=c.selector,S.textContent=c.selector||c.tagName;const b=document.createElement("input");b.type="text",b.className="beacon-pin-note-input",b.placeholder="Add a note (optional)",b.value=c.note??"",b.addEventListener("input",()=>{b.value.trim()?c.note=b.value:delete c.note}),w.appendChild(S),w.appendChild(b);const N=document.createElement("button");N.type="button",N.className="beacon-icon-btn",N.setAttribute("aria-label",`Remove pin ${c.number}`),N.appendChild(uv()),N.addEventListener("click",()=>k(c.number)),m.appendChild(g),m.appendChild(w),m.appendChild(N),s.appendChild(m)}}}function f(){a&&(o?(a.src=o,a.style.display="block"):(a.removeAttribute("src"),a.style.display="none"))}return{name:"domEle",setupOnce(c){return c.on("close",()=>p())},form(c){return{render:m=>(i=document.createElement("div"),i.className="beacon-pin-list-header",m.appendChild(i),s=document.createElement("div"),s.className="beacon-pin-list",m.appendChild(s),u=document.createElement("button"),u.type="button",u.className="beacon-btn secondary beacon-pin-annotate",u.addEventListener("click",()=>{x(c)}),m.appendChild(u),a=document.createElement("img"),a.className="beacon-thumb",a.alt="Annotated screenshot preview",a.style.display="none",m.appendChild(a),_(),f(),()=>{i=null,s=null,a=null,u=null})}},capture(){return n.length===0?null:{pins:n}}}}function dv(e){return!!e&&typeof e=="object"&&!("v"in e)&&"error"in e}function fv(e={}){return{name:"domSS",async capture(t){const n=av();if(n)return{dataUrl:n.dataUrl,mime:n.mime};const r=await t.requestMode("hide");try{await new Promise(i=>requestAnimationFrame(()=>i()));const o=Array.from(document.querySelectorAll("launch-kit-beacon")),l=await Zd({quality:e.quality,pixelRatio:e.pixelRatio,excludeHosts:o});try{const i=t.captured("domEle"),s=pv(i),a={w:l.width,h:l.height,dpr:l.pixelRatio},u=e.accent??hv();return{dataUrl:s.length>0?await Xd(l.dataUrl,s,a,u):l.dataUrl,mime:"image/jpeg"}}finally{l.dispose()}}finally{r()}}}}function pv(e){if(!e||dv(e))return[];const t=e.pins;return Array.isArray(t)?t.filter(n=>!!n&&typeof n=="object").map(n=>({number:Number(n.number)||0,selector:typeof n.selector=="string"?n.selector:void 0,boundingRect:n.boundingRect??{x:0,y:0,w:0,h:0}})):[]}function hv(){if(typeof window>"u")return"#0ea5e9";const e=document.querySelector("launch-kit-beacon");return e&&getComputedStyle(e).getPropertyValue("--beacon-accent").trim()||"#0ea5e9"}let Ie=null;const Fs={"plugin:error":new Set,"submit:success":new Set,"submit:error":new Set,ready:new Set};function mv(e){if(typeof window>"u")return;if(!e.endpoint)throw new Error("init: endpoint is required");Gd(),ef();const t={...yg(),...e.labels??{}},n=new AbortController,r=xv(e),o=e.position??"bottom-right",l=e.theme??"auto";rg(),yv(e,o,l);const i=document.querySelector(Cr);if(!i)throw new Error("init: failed to acquire <launch-kit-beacon> host");if(!i.shadow)throw new Error("init: host element shadow root not initialized");const s=xg(i.shadow),a=new vg(t,["bug","idea","ux","a11y"],{onSubmit:()=>{kv()},onClose:v=>{Bo("close",{}),v==="user"&&nf()}});i.shadow.appendChild(a.root),i.classList.add("beacon-no-capture");const u=ug(r),p={endpoint:e.endpoint,headers:e.headers,context:e.context,credentials:e.credentials??"omit",plugins:r,registry:u,dialog:a,overlayHost:s,hostElement:i,initAbort:n,labels:t,debug:!!e.debug||wv(),healthIndicator:e.healthIndicator??"never",position:o,theme:l,currentSubmit:null,capturedEntries:{},formValues:{},lifecycleHandlers:{open:new Set,close:new Set,beforeSubmit:new Set,afterSubmit:new Set},panelSources:[]};Ie=p,i.onTriggerClick=()=>Jd(),u.install(v=>tf(v),v=>Us(v)),sr("ready",{ready:!0}),p.debug&&console.info("[beacon] ready",p.endpoint)}function Jd(){const e=Ie;e&&(e.currentSubmit||(e.panelSources=e.plugins.map(t=>{if(!t.form)return null;const n=tf(t.name);let r;try{r=t.form(n)}catch(o){return Us({plugin:t.name,error:o instanceof Error?o:new Error(String(o)),at:"form"}),null}return{name:t.name,form:r,ctx:n}}).filter(t=>t!==null),e.dialog.installPluginPanels(e.panelSources,{get:(t,n)=>{var r;return(r=e.formValues[t])==null?void 0:r[n]},set:(t,n,r)=>{var l;const o=(l=e.formValues)[t]??(l[t]={});o[n]=r}}),e.dialog.open(),Bo("open",{})))}function ef(){var t;const e=Ie;if(e){e.initAbort.abort(),(t=e.currentSubmit)==null||t.abort(),e.registry.destroy(),sn();try{e.dialog.root.remove(),e.overlayHost.layer.remove()}catch{}e.hostElement.onTriggerClick=null,Ie=null}}function gv(e,t){return Fs[e].add(t),()=>vv(e,t)}function vv(e,t){Fs[e].delete(t)}function yv(e,t,n){let r=document.querySelector(Cr);if(!r){r=document.createElement(Cr),r.setAttribute("position",t),r.setAttribute("theme",n),t==="hidden"&&(r.style.position="absolute",r.style.left="-9999px"),(document.body??document.documentElement).appendChild(r);return}e.position!==void 0&&r.setAttribute("position",t),e.theme!==void 0&&r.setAttribute("theme",n)}function xv(e){return e.plugins?e.plugins:[]}function wv(){if(typeof window>"u")return!1;try{return new URLSearchParams(window.location.search).has("lsbeacon-debug")}catch{return!1}}function tf(e){const t=Ie;return sg(e,{getCaptured:r=>t==null?void 0:t.capturedEntries[r],getFormValues:r=>{var o;return t?(o=t.formValues)[r]??(o[r]={}):{}},getCaptureSignal:()=>{var r;return(r=t==null?void 0:t.currentSubmit)==null?void 0:r.signal},getInitSignal:()=>t.initAbort.signal,requestMode:async r=>t?t.dialog.requestMode(r):()=>{},overlay:r=>t?wg(t.overlayHost,r.render):()=>{},onLifecycle:(r,o)=>{if(!t)return()=>{};const l=t.lifecycleHandlers[r];return l.add(o),()=>l.delete(o)}})}function Bo(e,t){const n=Ie;if(n)for(const r of n.lifecycleHandlers[e])try{r(t)}catch(o){n.debug&&console.error("[beacon] lifecycle handler threw:",o)}}function sr(e,t){for(const n of Fs[e])try{n(t)}catch(r){Ie!=null&&Ie.debug&&console.error("[beacon] system handler threw:",r)}}function Us(e){sr("plugin:error",{plugin:e.plugin,error:e.error,at:e.at});const t=Ie;t&&((t.healthIndicator==="always"||t.healthIndicator==="dev"&&t.debug)&&t.hostElement.setHealthIndicator(!0),t.debug&&console.warn(`[beacon] plugin "${e.plugin}" ${e.at} failed:`,e.error))}function nf(){const e=Ie;e&&(e.dialog.resetState(),e.dialog.clearPluginPanels(),e.formValues={})}async function kv(){const e=Ie;if(!e||e.currentSubmit)return;const t=e.dialog.getDescription().trim();if(!t){e.dialog.setStatus("Description is required","error");return}e.currentSubmit=new AbortController,e.capturedEntries={},e.dialog.setSubmitting(!0),e.dialog.setStatus("Capturing…");let n=null;try{const r=await e.registry.capture(s=>e.capturedEntries[s],s=>Us(s));e.capturedEntries=r,n=bv(e,t,r);let o=null;if(Bo("beforeSubmit",{payload:n,cancel:s=>{o===null&&(o=s)}}),o!==null){e.dialog.setSubmitting(!1),e.dialog.setStatus(`Cancelled: ${o}`,"error");return}e.dialog.setStatus("Sending…");const i=await fg(e.endpoint,n,e.headers,e.currentSubmit.signal,e.credentials);Bo("afterSubmit",{payload:n,response:i}),e.dialog.setSubmitting(!1),i.ok?(sr("submit:success",{payload:n,response:i}),e.dialog.setSubmitSucceeded(!0),e.dialog.setStatus(e.labels.sentSuccess,"success"),window.setTimeout(()=>{Ie===e&&e.dialog.close("submitted"),nf()},1500)):(sr("submit:error",{payload:n,error:new Error(`HTTP ${i.status}`)}),e.dialog.setStatus(`Failed (${i.status})`,"error"))}catch(r){e.dialog.setSubmitting(!1);const o=r instanceof Error?r:new Error(String(r));n&&sr("submit:error",{payload:n,error:o}),e.dialog.setStatus(`Failed: ${o.message}`,"error")}finally{e.currentSubmit=null}}function bv(e,t,n){var l;const r=Sv(),o=(l=e.context)==null?void 0:l.call(e);return{description:t,severity:e.dialog.getSeverity(),metadata:r,...o?{context:o}:{},plugins:n}}function Sv(){const e=window.location.href,t=document.referrer,n=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";return{url:e,...t?{referrer:t}:{},userAgent:navigator.userAgent,viewport:{w:window.innerWidth,h:window.innerHeight,dpr:window.devicePixelRatio||1},screen:{w:window.screen.width,h:window.screen.height},timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,locale:navigator.language,theme:n,capturedAt:new Date().toISOString()}}Gd();const rf="LaunchDeck";let fo=null;function Ev(){"Notification"in window&&Notification.permission==="default"&&Notification.requestPermission()}function Cv(e,t){if("Notification"in window&&Notification.permission==="granted"&&document.hidden){const n=e==="feedback"?t||"Claude is waiting for your feedback":"Claude sent new content";new Notification("LaunchDeck",{body:n,icon:"/favicon.ico"})}document.hidden&&Nv(e==="feedback")}function Nv(e){$i();let t=!0;const n=e?"● LaunchDeck — Feedback needed":"● LaunchDeck — New content";fo=setInterval(()=>{document.title=t?n:rf,t=!t},1e3)}function $i(){fo&&(clearInterval(fo),fo=null),document.title=rf}function jv({theme:e,setTheme:t}){const[n,r]=C.useState(!1),[o,l]=C.useState([]),[i,s]=C.useState(0),[a,u]=C.useState([]),[p,v]=C.useState(!1),[h,x]=C.useState([]),[y,k]=C.useState(null),[_,f]=C.useState([]),c=C.useRef(null),m=C.useRef(),g=C.useRef(e);g.current=e;const w=C.useCallback(async()=>{try{const T=await(await fetch("/api/sessions")).json();u(T.sessions)}catch{}},[]),S=C.useCallback(async()=>{try{const T=await(await fetch("/api/deck/courses")).json();x(T.courses),k($=>{var O;return $??((O=T.courses.find(ne=>ne.active))==null?void 0:O.name)??null})}catch{}},[]),b=C.useCallback(async P=>{l(T=>{const $=T.findIndex(O=>O.id===P);return $>=0&&s($),T});try{const T=await fetch(`/api/sessions/${encodeURIComponent(P)}`);if(!T.ok)return;const $=await T.json();l(O=>{var je;const ne=O.findIndex(Le=>Le.id===$.id),Ne={id:$.id,mode:$.mode,blocks:$.blocks,prompt:$.prompt,selections:((je=O[ne])==null?void 0:je.selections)??{},version:$.version};if(ne>=0){const Le=[...O];return Le[ne]=Ne,s(ne),Le}return s(O.length),[...O,Ne]})}catch{}},[]),N=C.useCallback(async P=>{try{await fetch(`/api/sessions/${encodeURIComponent(P)}`,{method:"DELETE"}),await w()}catch{}},[w]),L=C.useCallback(async(P,T)=>{const $={};document.querySelectorAll("[data-block-index]").forEach(Ne=>{const je=Number(Ne.getAttribute("data-block-index"));if(!Number.isFinite(je))return;const Le=Ne.querySelector(".mermaid-container svg");Le&&($[je]=Le.outerHTML)});const O=await fetch(`/api/sessions/${encodeURIComponent(P)}/share`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...y?{course:y}:{},...Object.keys($).length?{svgByIndex:$}:{},...T!=null&&T.publicLink?{publicLink:!0}:{}})}),ne=await O.json().catch(()=>({}));if(!O.ok||!ne.ok)throw new Error(ne.error||`Share failed (${O.status})`);return await w(),{shareUrl:ne.shareUrl??void 0,linkWarning:ne.linkWarning}},[w,y]),R=C.useCallback(async P=>{const T=await fetch(`/api/sessions/${encodeURIComponent(P)}/public-link`,{method:"POST"}),$=await T.json().catch(()=>({}));if(!T.ok||!$.ok||!$.shareUrl)throw new Error($.error||`Couldn't create public link (${T.status})`);return await w(),$.shareUrl},[w]),K=C.useCallback(async P=>{const T=await fetch(`/api/sessions/${encodeURIComponent(P)}/public-link`,{method:"DELETE"}),$=await T.json().catch(()=>({}));if(!T.ok||!$.ok)throw new Error($.error||`Couldn't revoke public link (${T.status})`);await w()},[w]),me=C.useCallback(async P=>{const T=await fetch(`/api/sessions/${encodeURIComponent(P)}/remote`,{method:"DELETE"}),$=await T.json().catch(()=>({}));if(!T.ok||!$.ok)throw new Error($.error||`Cloud delete failed (${T.status})`);await w()},[w]);C.useEffect(()=>{Ev()},[]);const ae=C.useRef(null),Fe=C.useRef(null);C.useEffect(()=>{mv({endpoint:"/api/feedback",position:"hidden",plugins:[bg(),cv(),fv()],context:()=>{const T=Fe.current;return T?{sessionId:T.id,...Object.keys(T.selections).length>0?{selections:T.selections}:{}}:{}},labels:{triggerButton:"Respond",drawerTitle:"Your response",send:"Submit",sending:"Submitting…",sentSuccess:"Sent",descriptionLabel:"Comment",descriptionPlaceholder:"Type your response, or use the picker to annotate…",severityLabel:"Verdict",severityBug:"Blocker",severityIdea:"Iterate",severityUx:"Note",severityA11y:"Approve"}});const P=gv("submit:success",()=>{var $;const T=($=Fe.current)==null?void 0:$.id;T&&(l(O=>O.map(ne=>ne.id===T?{...ne,mode:"show"}:ne)),$i())});return()=>{P(),ef()}},[]),C.useEffect(()=>{w(),S();const P=window.location.hash.replace(/^#/,"");P&&b(decodeURIComponent(P))},[w,S,b]),C.useEffect(()=>{const P=()=>{const T=window.location.hash.replace(/^#/,"");if(!T)return;const $=decodeURIComponent(T);ae.current!==$&&b($)};return window.addEventListener("hashchange",P),()=>window.removeEventListener("hashchange",P)},[b]);const I=C.useCallback(()=>{const P=c.current;!P||P.readyState!==WebSocket.OPEN||P.send(JSON.stringify({type:"active_session",session:ae.current,focused:!document.hidden}))},[]);C.useEffect(()=>{const P=o[i]??null;Fe.current=P,ae.current=(P==null?void 0:P.id)??null;const T=P?`#${encodeURIComponent(P.id)}`:"";if(window.location.hash!==T){const $=`${window.location.pathname}${window.location.search}${T}`;window.history.replaceState(null,"",$)}I()},[i,o,I]),C.useEffect(()=>{document.querySelectorAll("iframe").forEach(P=>{var T;try{(T=P.contentWindow)==null||T.postMessage({type:"deck-theme",theme:e},"*")}catch{}})},[e]),C.useEffect(()=>{const P=T=>{var $;if((($=T.data)==null?void 0:$.type)==="deck-iframe-ready"&&T.source)try{T.source.postMessage({type:"deck-theme",theme:g.current},"*")}catch{}};return window.addEventListener("message",P),()=>window.removeEventListener("message",P)},[]),C.useEffect(()=>{const P=()=>{$i(),I()},T=()=>I(),$=()=>{document.documentElement.classList.toggle("deck-hidden-tab",document.hidden),I()};return window.addEventListener("focus",P),window.addEventListener("blur",T),document.addEventListener("visibilitychange",$),()=>{window.removeEventListener("focus",P),window.removeEventListener("blur",T),document.removeEventListener("visibilitychange",$)}},[I]);const U=C.useCallback(()=>{const P=window.location.protocol==="https:"?"wss:":"ws:",T=new WebSocket(`${P}//${window.location.host}`);T.onopen=()=>{r(!0),I(),fetch("/api/active-session").then($=>$.json()).then($=>f($.discuss??[])).catch(()=>{})},T.onclose=()=>{r(!1),c.current=null,m.current=setTimeout(U,2e3)},T.onerror=()=>T.close(),T.onmessage=$=>{try{const O=JSON.parse($.data);if(O.type==="session"&&O.session){const ne={id:O.session,mode:O.mode??"show",blocks:O.blocks??[],prompt:O.prompt,selections:{},version:O.version??1};l(Ne=>{const je=Ne.findIndex(Le=>Le.id===O.session);if(je>=0){const Le=[...Ne];return Le[je]={...ne,version:O.version??Ne[je].version+1},Le}return[...Ne,ne]}),l(Ne=>{const je=Ne.findIndex(Le=>Le.id===O.session);return je>=0&&s(je),Ne}),Cv(O.mode??"show",O.prompt),w()}O.type==="clear_session"&&O.session&&(l(ne=>ne.filter(je=>je.id!==O.session)),s(ne=>Math.min(ne,Math.max(0,o.length-2))),w()),O.type==="clear_all"&&(l([]),s(0),w()),O.type==="discuss_session"&&f(O.sessions??[])}catch{}},c.current=T},[w,I]),de=C.useCallback(P=>{const T=c.current;!T||T.readyState!==WebSocket.OPEN||T.send(JSON.stringify({type:"discuss_session",session:P}))},[]),j=C.useCallback(()=>{const P=c.current;!P||P.readyState!==WebSocket.OPEN||P.send(JSON.stringify({type:"discuss_clear_all"}))},[]),A=C.useCallback(()=>{_.forEach(P=>b(P))},[_,b]);C.useEffect(()=>(U(),()=>{var P;clearTimeout(m.current),(P=c.current)==null||P.close()}),[U]);const M=o[i]??null,D=M?a.find(P=>P.id===M.id):void 0,Z=((D==null?void 0:D.shared)??!1)&&((D==null?void 0:D.course)==null||D.course===y),Ke=Z,Ce=Z&&((D==null?void 0:D.stale)??!1),bt=Z?D==null?void 0:D.shareUrl:void 0,Ye=C.useCallback(P=>{M&&l(T=>T.map($=>$.id===M.id?{...$,selections:{...$.selections,[P]:!$.selections[P]}}:$))},[M]),rt=C.useCallback(P=>{c.current&&c.current.send(JSON.stringify({type:"session_closed",session:P})),l(T=>T.filter(O=>O.id!==P)),s(T=>Math.min(T,Math.max(0,o.length-2)))},[o.length]),of=C.useCallback((P,T)=>{c.current&&c.current.send(JSON.stringify({type:"render_error",error:P,source:T}))},[]),lf=M?M.mode==="feedback"?"feedback":"delivered":"idle",sf=!p||!M;return d.jsxs("div",{className:"flex h-screen flex-col overflow-hidden bg-background text-foreground",children:[sf&&d.jsx(Uh,{connected:n,theme:e,setTheme:t,status:lf,availableSessions:a,onOpenSession:b,courses:h,selectedCourse:y,onSelectCourse:k,pinnedSessionIds:_,onOpenAllPinned:A,onClearPins:j}),d.jsx("div",{className:"flex flex-1 min-h-0 flex-col",children:d.jsx(Vm,{sessions:o,activeSessionIndex:i,onSessionChange:s,onCloseSession:rt,onToggleSelection:Ye,onMermaidError:of,theme:e,onRespond:Jd,onShareSession:L,isActiveSessionShared:Ke,isActiveSessionStale:Ce,activeSessionShareUrl:bt,onMintPublicLink:R,onRevokePublicLink:K,onDeleteSession:N,onDeleteRemote:me,immersive:p,onToggleImmersive:()=>v(P=>!P),discussSessionIds:_,onToggleDiscuss:de})})]})}function Lv({children:e}){const[t,n]=Zr.useState(()=>localStorage.getItem("launchdeck-theme")||"dark"),r=Zr.useCallback(o=>{n(o),localStorage.setItem("launchdeck-theme",o);const l=o==="system"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":o;document.documentElement.classList.toggle("dark",l==="dark")},[]);return Zr.useEffect(()=>{const o=t==="system"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":t;document.documentElement.classList.toggle("dark",o==="dark")},[t]),d.jsx(jv,{theme:t,setTheme:r})}Ol.createRoot(document.getElementById("root")).render(d.jsx(Zr.StrictMode,{children:d.jsx(Lv,{})}));export{Md as _,Rv as a,Tv as c,cf as g};
|