@loicngr/kobo 2.1.1 → 2.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/server/routes/workspaces.js +39 -0
  3. package/dist/server/services/agent/engines/claude-code/engine.js +116 -29
  4. package/dist/server/services/agent/engines/claude-code/event-mapper.js +88 -22
  5. package/dist/server/services/agent/engines/claude-code/options-builder.js +1 -0
  6. package/dist/server/services/agent/engines/codex/engine.js +28 -5
  7. package/dist/server/services/agent/engines/codex/options-builder.js +7 -1
  8. package/dist/server/services/agent/orchestrator.js +40 -1
  9. package/dist/server/services/agent/session-controller.js +12 -0
  10. package/dist/server/services/review-service.js +6 -2
  11. package/package.json +13 -13
  12. package/src/client/dist/pwa/assets/{ActivityFeed-BYR5x7aa.css → ActivityFeed-DCmiJP-z.css} +1 -1
  13. package/src/client/dist/pwa/assets/ActivityFeed-DdGARu8o.js +8 -0
  14. package/src/client/dist/pwa/assets/{ChangelogPage-OoOnn4q9.js → ChangelogPage-CGenjiI5.js} +1 -1
  15. package/src/client/dist/pwa/assets/{ClosePopup-CWjIRHxu.js → ClosePopup-C1a82pL9.js} +1 -1
  16. package/src/client/dist/pwa/assets/{ComparisonPanel-BYpe6Nch.js → ComparisonPanel-aXgjEulK.js} +2 -2
  17. package/src/client/dist/pwa/assets/{CreatePage-COQwHyqL.js → CreatePage-BaB_30xJ.js} +2 -2
  18. package/src/client/dist/pwa/assets/{DashboardPage-CZ2036MC.js → DashboardPage-DsbwmO2W.js} +1 -1
  19. package/src/client/dist/pwa/assets/{DiffViewer-CXBmMV9R.js → DiffViewer--dUMf7b3.js} +4 -4
  20. package/src/client/dist/pwa/assets/{DocumentsPanel-mLGU5aTb.js → DocumentsPanel-DTjEUYUd.js} +1 -1
  21. package/src/client/dist/pwa/assets/{DrawerToggleButton-C39pfWBD.js → DrawerToggleButton-Bh4FXdtJ.js} +1 -1
  22. package/src/client/dist/pwa/assets/GitPanel-PUPLj0M8.js +3 -0
  23. package/src/client/dist/pwa/assets/{HealthPage-CnJWXfa8.js → HealthPage-BHgucifz.js} +1 -1
  24. package/src/client/dist/pwa/assets/{MainLayout-Cc4XzCAy.css → MainLayout-CNmwCnDD.css} +1 -1
  25. package/src/client/dist/pwa/assets/MainLayout-CQVLnTX3.js +2 -0
  26. package/src/client/dist/pwa/assets/QBadge-rGILsUYl.js +1 -0
  27. package/src/client/dist/pwa/assets/QBanner-XE0EMe9L.js +1 -0
  28. package/src/client/dist/pwa/assets/QBtn-b_baQtAt.js +1 -0
  29. package/src/client/dist/pwa/assets/QBtnDropdown-DVbxGTNb.js +1 -0
  30. package/src/client/dist/pwa/assets/QBtnGroup-CUmAgBV8.js +1 -0
  31. package/src/client/dist/pwa/assets/QBtnToggle-COL46j6W.js +1 -0
  32. package/src/client/dist/pwa/assets/QChip-Bt_JvnHb.js +1 -0
  33. package/src/client/dist/pwa/assets/QExpansionItem-CxEBY3jY.js +1 -0
  34. package/src/client/dist/pwa/assets/QItemSection-Cf6OZEH4.js +1 -0
  35. package/src/client/dist/pwa/assets/QList-Z90BspT4.js +1 -0
  36. package/src/client/dist/pwa/assets/QMarkupTable-Bwjknbmw.js +1 -0
  37. package/src/client/dist/pwa/assets/QPage-BCDXjfVj.js +1 -0
  38. package/src/client/dist/pwa/assets/QSelect-CMzJDhi-.js +1 -0
  39. package/src/client/dist/pwa/assets/QSpinnerDots-BsKmccpX.js +1 -0
  40. package/src/client/dist/pwa/assets/QTooltip-BLhkNT4s.js +1 -0
  41. package/src/client/dist/pwa/assets/{SchedulePanel-DIMzNIO3.js → SchedulePanel-DTVwe7sX.js} +1 -1
  42. package/src/client/dist/pwa/assets/{SearchPage-COWnMxRZ.js → SearchPage-CtrR7dNr.js} +1 -1
  43. package/src/client/dist/pwa/assets/SettingsPage-Bl_RNTGi.js +9 -0
  44. package/src/client/dist/pwa/assets/SplitWorkspacePage-Bac_Pzmm.js +1 -0
  45. package/src/client/dist/pwa/assets/{TerminalPanel-C_HNpN1X.js → TerminalPanel-D2j5AA8S.js} +1 -1
  46. package/src/client/dist/pwa/assets/TouchPan-C0EqFcrr.js +1 -0
  47. package/src/client/dist/pwa/assets/{TourReplayButton-Cp2UnxWa.js → TourReplayButton-DlMvPblb.js} +1 -1
  48. package/src/client/dist/pwa/assets/WorkspaceAttentionLabels-BAk5l4Ik.js +1 -0
  49. package/src/client/dist/pwa/assets/WorkspacePage-FScR5YAD.js +4 -0
  50. package/src/client/dist/pwa/assets/{browser-uy3hmwKo.js → browser-DNEbLF-4.js} +1 -1
  51. package/src/client/dist/pwa/assets/build-path-tree-C0b61nxI.js +1 -0
  52. package/src/client/dist/pwa/assets/{codicon-Brq4_Ui5.ttf → codicon-DF1abBS2.ttf} +0 -0
  53. package/src/client/dist/pwa/assets/custom-sounds-DE4JLdGG.js +1 -0
  54. package/src/client/dist/pwa/assets/{de-CTE3Xb7Z.js → de-DgZ9jKq_.js} +2 -2
  55. package/src/client/dist/pwa/assets/documents-CALwmao-.js +1 -0
  56. package/src/client/dist/pwa/assets/editor-CmVjQp1O.css +1 -0
  57. package/src/client/dist/pwa/assets/editor.api-PENN0io6.js +420 -0
  58. package/src/client/dist/pwa/assets/editor.worker-BLJF_oQx.js +33 -0
  59. package/src/client/dist/pwa/assets/efforts-Detdm-FH.js +9 -0
  60. package/src/client/dist/pwa/assets/{es-CZxg1xjh.js → es-zvlgzw9H.js} +2 -2
  61. package/src/client/dist/pwa/assets/expand-template-ZIVLPdW2.js +1 -0
  62. package/src/client/dist/pwa/assets/format-CVI7mr7G.js +489 -0
  63. package/src/client/dist/pwa/assets/format-DoyK4IAn.css +1 -0
  64. package/src/client/dist/pwa/assets/{formatters-BtG6lb4d.js → formatters-C_zcfJBt.js} +1 -1
  65. package/src/client/dist/pwa/assets/{fr-C7HCclxj.js → fr-BICzq59I.js} +2 -2
  66. package/src/client/dist/pwa/assets/{freemarker2-CDYXi2tK.js → freemarker2-BxN_Aq6C.js} +1 -1
  67. package/src/client/dist/pwa/assets/{handlebars-AVkJuN-_.js → handlebars-C9UHXtO1.js} +1 -1
  68. package/src/client/dist/pwa/assets/{html-CpvEZlmO.js → html-CTH9wSJr.js} +1 -1
  69. package/src/client/dist/pwa/assets/i18n-DG_vChZ3.js +1 -0
  70. package/src/client/dist/pwa/assets/index-C8zAZ-k-.css +1 -0
  71. package/src/client/dist/pwa/assets/index-fuLr-ZVa.js +20 -0
  72. package/src/client/dist/pwa/assets/{it-DoOWwqZz.js → it-BIGArQrS.js} +2 -2
  73. package/src/client/dist/pwa/assets/{javascript-BYnnBLH9.js → javascript-WT4BS8p4.js} +1 -1
  74. package/src/client/dist/pwa/assets/{liquid-CzqlB3Um.js → liquid-D6dfe-gU.js} +1 -1
  75. package/src/client/dist/pwa/assets/{mdx-hrYFnJVZ.js → mdx-B8pNXNeC.js} +1 -1
  76. package/src/client/dist/pwa/assets/monaco-contributions-COLfslyi.js +53 -0
  77. package/src/client/dist/pwa/assets/monaco-contributions-DvnCTJI2.css +1 -0
  78. package/src/client/dist/pwa/assets/{monaco.contribution-Dl22KqTL.js → monaco.contribution-CDhuQbzi.js} +2 -2
  79. package/src/client/dist/pwa/assets/{network-auth-Dq0I5kjv.js → network-auth-QouPCx6A.js} +1 -1
  80. package/src/client/dist/pwa/assets/{notify-theme-vV3Rm4_v.js → notify-theme-7MsG-MyN.js} +1 -1
  81. package/src/client/dist/pwa/assets/pending-diff-open-CX24u9gW.js +1 -0
  82. package/src/client/dist/pwa/assets/{pinia-CTJ3OfP3.js → pinia-BdFjQEqa.js} +1 -1
  83. package/src/client/dist/pwa/assets/{private.use-form-Bk8ti264.js → private.use-form-vxvbh_VN.js} +1 -1
  84. package/src/client/dist/pwa/assets/{project-color-W5mMgIKK.js → project-color-Bo6iEcqN.js} +1 -1
  85. package/src/client/dist/pwa/assets/{python-DafgCozG.js → python-D2gb6Jjz.js} +1 -1
  86. package/src/client/dist/pwa/assets/{razor-CWYrTLCm.js → razor-dksrCQF2.js} +1 -1
  87. package/src/client/dist/pwa/assets/{reactivity.esm-bundler-Bo9anJjg.js → reactivity.esm-bundler-tuEvQ47f.js} +1 -1
  88. package/src/client/dist/pwa/assets/render-chat-markdown-px_6WDIX.js +69 -0
  89. package/src/client/dist/pwa/assets/runtime-core.esm-bundler-DOiZcasU.js +1 -0
  90. package/src/client/dist/pwa/assets/{typescript-DLSIuW9u.js → typescript-DTPyRTrW.js} +1 -1
  91. package/src/client/dist/pwa/assets/{use-checkbox-CnvHBhSK.js → use-checkbox-Bh9EQhkV.js} +1 -1
  92. package/src/client/dist/pwa/assets/use-id-b4A2I8LB.js +1 -0
  93. package/src/client/dist/pwa/assets/use-is-mobile-DLIZxEo9.js +1 -0
  94. package/src/client/dist/pwa/assets/{use-search-index-status-Bluf9L99.js → use-search-index-status-_nCyACc7.js} +1 -1
  95. package/src/client/dist/pwa/assets/{use-slide-transition-CiaDm-tR.js → use-slide-transition-C5eDGOmu.js} +1 -1
  96. package/src/client/dist/pwa/assets/{use-tours-CDdnvIaG.js → use-tours-b00RruX_.js} +1 -1
  97. package/src/client/dist/pwa/assets/use-worktree-restore-BDOZc9fk.js +1 -0
  98. package/src/client/dist/pwa/assets/{workspace-templates-C88VmFdQ.js → workspace-templates-DV9Njz0T.js} +1 -1
  99. package/src/client/dist/pwa/assets/{xml-BAmdYarn.js → xml-mxUZCM4r.js} +1 -1
  100. package/src/client/dist/pwa/assets/{yaml-RQqNMXWh.js → yaml-BuN8sUWC.js} +1 -1
  101. package/src/client/dist/pwa/index.html +9 -9
  102. package/src/client/dist/pwa/sw.js +1 -1
  103. package/src/client/dist/pwa/assets/ActivityFeed-DeJ0V6CW.js +0 -8
  104. package/src/client/dist/pwa/assets/GitPanel-BQk7kJO-.js +0 -3
  105. package/src/client/dist/pwa/assets/MainLayout-D3zfT61Y.js +0 -2
  106. package/src/client/dist/pwa/assets/QBadge-FWC1zDCq.js +0 -1
  107. package/src/client/dist/pwa/assets/QBanner-CcRI_QIy.js +0 -1
  108. package/src/client/dist/pwa/assets/QBtn-DEdx_Y1V.js +0 -1
  109. package/src/client/dist/pwa/assets/QBtnDropdown-DGLLlBf3.js +0 -1
  110. package/src/client/dist/pwa/assets/QBtnGroup-CAoD6G0Q.js +0 -1
  111. package/src/client/dist/pwa/assets/QBtnToggle-C_hQ2UCQ.js +0 -1
  112. package/src/client/dist/pwa/assets/QChip-DCPUhqXX.js +0 -1
  113. package/src/client/dist/pwa/assets/QExpansionItem-CQ2LzM8P.js +0 -1
  114. package/src/client/dist/pwa/assets/QItemSection-BhqphaH6.js +0 -1
  115. package/src/client/dist/pwa/assets/QList-CHm4JNP0.js +0 -1
  116. package/src/client/dist/pwa/assets/QMarkupTable-CNpiA9oq.js +0 -1
  117. package/src/client/dist/pwa/assets/QPage-BXBw2Alx.js +0 -1
  118. package/src/client/dist/pwa/assets/QSelect-DoTWgQAO.js +0 -1
  119. package/src/client/dist/pwa/assets/QSpinnerDots-BkFiCsH3.js +0 -1
  120. package/src/client/dist/pwa/assets/QTooltip-DKvUeiR_.js +0 -1
  121. package/src/client/dist/pwa/assets/SettingsPage-B9cLhFnO.js +0 -9
  122. package/src/client/dist/pwa/assets/SplitWorkspacePage-BJKssJyI.js +0 -1
  123. package/src/client/dist/pwa/assets/TouchPan-CCllyaAF.js +0 -1
  124. package/src/client/dist/pwa/assets/WorkspaceAttentionLabels-B-SuQuS_.js +0 -1
  125. package/src/client/dist/pwa/assets/WorkspacePage-6lN4iF5W.js +0 -4
  126. package/src/client/dist/pwa/assets/build-path-tree-DZrp6Aji.js +0 -1
  127. package/src/client/dist/pwa/assets/custom-sounds-Du8ReMlU.js +0 -1
  128. package/src/client/dist/pwa/assets/documents-BtNrB6d0.js +0 -1
  129. package/src/client/dist/pwa/assets/editor-BJU3Xb3h.css +0 -1
  130. package/src/client/dist/pwa/assets/editor.api-P-eJRcVK.js +0 -413
  131. package/src/client/dist/pwa/assets/editor.worker-iO5iN0DB.js +0 -33
  132. package/src/client/dist/pwa/assets/efforts-ChUC4xtk.js +0 -9
  133. package/src/client/dist/pwa/assets/engineFeatures-D-0NPZBE.js +0 -1
  134. package/src/client/dist/pwa/assets/expand-template-ByoC_kxX.js +0 -1
  135. package/src/client/dist/pwa/assets/format-CX6Cv1cD.css +0 -1
  136. package/src/client/dist/pwa/assets/format-CeidAPFn.js +0 -435
  137. package/src/client/dist/pwa/assets/i18n-KVkTJG-4.js +0 -1
  138. package/src/client/dist/pwa/assets/index-0wtBh1Xt.css +0 -1
  139. package/src/client/dist/pwa/assets/index-DsaWUT_Z.js +0 -20
  140. package/src/client/dist/pwa/assets/monaco-contributions-Cb0afGfW.css +0 -1
  141. package/src/client/dist/pwa/assets/monaco-contributions-D2YXqNaH.js +0 -51
  142. package/src/client/dist/pwa/assets/pending-diff-open-BJYqBOUG.js +0 -1
  143. package/src/client/dist/pwa/assets/render-chat-markdown-CE5RIL0s.js +0 -69
  144. package/src/client/dist/pwa/assets/runtime-core.esm-bundler-CNFKm4ij.js +0 -1
  145. package/src/client/dist/pwa/assets/use-id-wXd4c8FA.js +0 -1
  146. package/src/client/dist/pwa/assets/use-is-mobile-DpKI3XMy.js +0 -1
  147. /package/src/client/dist/pwa/assets/{engineFeatures-B-9jHocY.css → use-worktree-restore-B-9jHocY.css} +0 -0
@@ -0,0 +1,69 @@
1
+ import{zt as e}from"./index-fuLr-ZVa.js";var t;function n(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var r=n();function i(e){r=e}var a={exec:()=>null};function o(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),i=t[r];return i||(i=e(r),t[r]=i),i}}function s(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(l.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var c=((e=``)=>{try{return!!RegExp(`(?<=1)(?<!1)`+e)}catch{return!1}})(),l={codeRemoveIndent:/^(?: {0,3}\t| {1,4})/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,endingSpaceTabChar:/[ \t]$/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,leadingSpaceTab:/^[ \t]+/,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ 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,numericCharacterReference:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));/g,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,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:o(e=>RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:o(e=>RegExp(`^ {0,${e}}((?:-[ ]*){3,}|(?:_[ ]*){3,}|(?:\\*[ ]*){3,})(?:\\n+|$)`)),fencesBeginRegex:o(e=>RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:o(e=>RegExp(`^ {0,${e}}#`)),htmlBeginRegex:o(e=>RegExp(`^ {0,${e}}(?:</?(?:${g})(?: +|$|/?>)|<(?:script|pre|style|textarea|!--))`,`i`)),blockquoteBeginRegex:o(e=>RegExp(`^ {0,${e}}>`))},u=/^(?:[ \t]*(?:\n|$))+/,d=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,f=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,p=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,m=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,ee=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,te=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |fences|blockquote|heading|hr|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ne=s(te).replace(/bull/g,ee).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}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),re=s(te).replace(/bull/g,ee).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}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),ie=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,ae=/^[^\n]+/,h=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,oe=s(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,h).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),se=s(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,ee).getRegex(),g=`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`,_=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,v=s(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,_).replace(`tag`,g).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ce=e=>s(ie).replace(`hr`,p).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace(`list`,e).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,g).getRegex(),le=ce(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),ue=ce(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),de={blockquote:s(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,ue).getRegex(),code:d,def:oe,fences:f,heading:m,hr:p,html:v,lheading:ne,list:se,newline:u,paragraph:le,table:a,text:ae},y=s(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,p).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,g).getRegex(),fe={...de,lheading:re,table:y,paragraph:s(ie).replace(`hr`,p).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,y).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,g).getRegex()},pe={...de,html:s(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,_).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:a,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:s(ie).replace(`hr`,p).replace(`heading`,` *#{1,6} *[^
2
+ ]`).replace(`lheading`,ne).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},me=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,he=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ge=/^( {2,}|\\)\n(?!\s*$)[ \t]*/,_e=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,b=/[\p{P}\p{S}]/u,ve=/[\s\p{P}\p{S}]/u,x=/[^\s\p{P}\p{S}]/u,ye=s(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,ve).getRegex(),be=/[\p{Pi}\p{Ps}"']/u,xe=/(?!~)[\p{P}\p{S}]/u,Se=/(?!~)[\s\p{P}\p{S}]/u,Ce=/(?:[^\s\p{P}\p{S}]|~)/u,we=s(/link|precode-code|html/,`g`).replace(`link`,/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,c?"(?<!`)()":"(^^|[^`])").replace(`code`,/(?<b>`+)[^`]+\k<b>(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),Te=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Ee=s(Te,`u`).replace(/punct/g,b).getRegex(),De=s(Te,`u`).replace(/punct/g,xe).getRegex(),S=s(/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,`u`).replace(/openQuote/g,be).replace(/punct/g,b).getRegex(),Oe=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,C=s(Oe,`gu`).replace(/notPunctSpace/g,x).replace(/punctSpace/g,ve).replace(/punct/g,b).getRegex(),ke=s(Oe,`gu`).replace(/notPunctSpace/g,Ce).replace(/punctSpace/g,Se).replace(/punct/g,xe).getRegex(),w=s(`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,x).replace(/punctSpace/g,ve).replace(/punct/g,b).getRegex(),Ae=s(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,x).replace(/punctSpace/g,ve).replace(/punct/g,b).getRegex(),je=s(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,x).replace(/punctSpace/g,ve).replace(/punct/g,b).getRegex(),T=s(/^~~?(?:((?!~)punct)|[^\s~])/,`u`).replace(/punct/g,b).getRegex(),Me=s(`^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,x).replace(/punctSpace/g,ve).replace(/punct/g,b).getRegex(),Ne=s(/\\(punct)/,`gu`).replace(/punct/g,b).getRegex(),Pe=s(/^<(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(),Fe=s(_).replace(`(?:-->|$)`,`-->`).getRegex(),E=s(`^comment|^</[a-zA-Z][a-zA-Z0-9-]*\\s*>|^<[a-zA-Z][a-zA-Z0-9-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>`).replace(`comment`,Fe).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),D=/\[(?:\\[\s\S]|[^\[\]\\])*\]/,O=s(/(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/).replace(`brackets`,D).getRegex(),Ie=s(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace(`label`,O).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Le=s(/^!?\[(label)\]\[(ref)\]/).replace(`label`,O).replace(`ref`,h).getRegex(),Re=s(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,h).getRegex(),ze=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\]){1,999}/,Be=s(/(?:[^\[\]\\`]*(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\]))){0,999}?[^\[\]\\`]*?/).replace(`brackets`,D).getRegex(),Ve=s(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,s(/^!?\[(label)\]\[(ref)\]/).replace(`label`,Be).replace(`ref`,ze).getRegex()).replace(`nolink`,s(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,ze).getRegex()).getRegex(),He=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Ue=s(/(?:mailto:email|xmpp:email(?:\/[A-Za-z0-9@.]+)?)/).replace(/email/g,/[A-Za-z0-9._+-]+@[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),We={_backpedal:a,anyPunctuation:Ne,autolink:Pe,blockSkip:we,br:ge,code:he,del:a,delLDelim:a,delRDelim:a,emStrongLDelim:Ee,emStrongRDelimAst:C,emStrongRDelimUnd:Ae,escape:me,link:Ie,nolink:Re,punctuation:ye,reflink:Le,reflinkSearch:Ve,tag:E,text:_e,url:a},Ge={...We,emStrongLDelim:S,emStrongRDelimAst:w,emStrongRDelimUnd:je,link:s(/^!?\[(label)\]\((.*?)\)/).replace(`label`,O).getRegex(),reflink:s(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,O).getRegex()},Ke={...We,emStrongRDelimAst:ke,emStrongLDelim:De,delLDelim:T,delRDelim:Me,url:s(/^emailProtocol|^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`emailProtocol`,Ue).replace(`protocol`,He).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:s(/^(?:[^a-zA-Z0-9](?=emailProtocol)|(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9](?=emailProtocol)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))))/).replace(`protocol`,He).replace(/emailProtocol/g,/(?:mailto|xmpp):/).getRegex()},qe={...Ke,br:s(ge).replace(`{2,}`,`*`).getRegex(),text:s(Ke.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},k={normal:de,gfm:fe,pedantic:pe},A={normal:We,gfm:Ke,breaks:qe,pedantic:Ge},Je={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},Ye=e=>Je[e];function j(e,t){if(t){if(l.escapeTest.test(e))return e.replace(l.escapeReplace,Ye)}else if(l.escapeTestNoEncode.test(e))return e.replace(l.escapeReplaceNoEncode,Ye);return e}function Xe(e){return e.replace(l.numericCharacterReference,(e,t,n)=>{let r=t===void 0?Number.parseInt(n,16):Number.parseInt(t,10);return r===0||r>1114111||r>=55296&&r<=57343?`�`:String.fromCodePoint(r)})}function Ze(e){try{e=encodeURI(e).replace(l.percentDecode,`%`)}catch{return null}return e}function Qe(e,t){let n=e.replace(l.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(l.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t){if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``)}for(;r<n.length;r++)n[r]=n[r].trim().replace(l.slashPipe,`|`);return n}function M(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function N(e){let t=e.split(`
3
+ `),n=t.length-1;for(;n>=0&&l.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join(`
4
+ `)}function P(e){return e.trim().toLowerCase().toUpperCase().toLowerCase()}function $e(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 et(e,t=0){let n=t,r=``;for(let t of e)if(t===` `){let e=4-n%4;r+=` `.repeat(e),n+=e}else r+=t,n++;return r}function tt(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`),c=e[0].charAt(0)===`!`;r.state.inLink=!0;let l=r.state.linkEmitted,u=r.state.inRawBlock;r.state.linkEmitted=!1;let d=r.inlineTokens(s),f=r.state.linkEmitted;if(r.state.linkEmitted=l,r.state.inLink=!1,!c){if(f){r.state.inRawBlock=u;return}r.state.linkEmitted=!0}return{type:c?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:d}}function nt(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
5
+ `).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return e.slice(Math.min(r.length,i.length))}).join(`
6
+ `)}function rt(e,t,n,r){if(!t.includes(`<`))return!1;for(let i=0;i<t.length;i++){if(t[i]===`\\`){i++;continue}if(t[i]==="`"){let e=r.inline.code.exec(t.slice(i));if(e){i+=e[0].length-1;continue}}if(t[i]!==`<`)continue;let a=e.slice(n+i),o=r.inline.tag.exec(a)||r.inline.autolink.exec(a);if(o){if(o[0].length>t.length-i)return!0;i+=o[0].length-1}}return!1}var it=class{constructor(t){e(this,`options`,void 0),e(this,`rules`,void 0),e(this,`lexer`,void 0),this.options=t||r}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=this.options.pedantic?t[0]:N(t[0]);return{type:`code`,raw:e,codeBlockStyle:`indented`,text:e.replace(this.rules.other.codeRemoveIndent,``)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=nt(e,t[3]||``,this.rules);return{type:`code`,raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,`$1`):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=M(e,`#`);(this.options.pedantic||!t||this.rules.other.endingSpaceTabChar.test(t))&&(e=t.trim())}return{type:`heading`,raw:M(t[0],`
7
+ `),depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:`hr`,raw:M(t[0],`
8
+ `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=M(t[0],`
9
+ `).split(`
10
+ `),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o=0;for(;o<e.length;o++)if(this.rules.other.blockquoteStart.test(e[o]))a.push(e[o]),t=!0;else if(!t)a.push(e[o]);else break;e=e.slice(o);let s=a.join(`
11
+ `),c=s.replace(this.rules.other.blockquoteSetextReplace,`
12
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,``);n=n?`${n}
13
+ ${s}`:s,r=r?`${r}
14
+ ${c}`:c;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,i,!0),this.lexer.state.top=l,e.length===0)break;let u=i.at(-1);if(u?.type===`code`)break;if(u?.type===`blockquote`){let t=u,a=e.join(`
15
+ `),o=t.raw+`
16
+ `+a.replace(this.rules.other.blockquoteSetextReplace2,``),s=this.blockquote(o);i[i.length-1]=s;let c=o.substring(s.raw.length).replace(/^\n/,``),l=c?c.split(`
17
+ `).length:0,d=l?e.slice(0,-l):e;d.length>0&&(n=`${n}
18
+ ${d.join(`
19
+ `)}`),r=r.substring(0,r.length-t.text.length)+s.text;break}if(u?.type===`list`){let t=u,a=t.raw+`
20
+ `+e.join(`
21
+ `),o=this.list(a);i[i.length-1]=o,n=n.substring(0,n.length-u.raw.length)+o.raw,r=r.substring(0,r.length-t.raw.length)+o.raw,e=a.substring(i.at(-1).raw.length).split(`
22
+ `);continue}}return{type:`blockquote`,raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={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:`[*+-]`);let a=this.rules.other.listItemRegex(n),o=!1;for(;e;){let n=!1,r=``,s=``;if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let c=t[2].split(`
23
+ `,1)[0],l=t[1].length,u=this.options.pedantic?et(c,l):c.replace(this.rules.other.leadingSpaceTab,e=>et(e,l)),d=e.split(`
24
+ `,1)[0],f=!u.trim(),p=0;if(this.options.pedantic?(p=2,s=u.trimStart()):f?p=l+1:(p=u.search(this.rules.other.nonSpaceChar),p=p>4?1:p,s=u.slice(p),p+=l),f&&this.rules.other.blankLine.test(d)&&(r+=d+`
25
+ `,e=e.substring(d.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(p),n=this.rules.other.hrRegex(p),i=this.rules.other.fencesBeginRegex(p),a=this.rules.other.headingBeginRegex(p),o=this.rules.other.htmlBeginRegex(p),c=this.rules.other.blockquoteBeginRegex(p);for(;e;){let l=e.split(`
26
+ `,1)[0],m;if(d=l,this.options.pedantic?(d=d.replace(this.rules.other.listReplaceNesting,` `),m=d):m=d.replace(this.rules.other.leadingSpaceTab,e=>e.replace(this.rules.other.tabCharGlobal,` `)),i.test(d)||a.test(d)||o.test(d)||c.test(d)||t.test(d)||n.test(d))break;if(m.search(this.rules.other.nonSpaceChar)>=p||!d.trim())s+=`
27
+ `+m.slice(p);else{if(f||u.replace(this.rules.other.tabCharGlobal,` `).search(this.rules.other.nonSpaceChar)>=4||i.test(u)||a.test(u)||n.test(u))break;s+=`
28
+ `+d}f=!d.trim(),r+=l+`
29
+ `,e=e.substring(l.length+1),u=m.slice(p)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0)),i.items.push({type:`list_item`,raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(s),loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let e of i.items)if(this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]),!i.loose){let t=e.tokens.filter(e=>e.type===`space`);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}for(let e of i.items){let t=e.tokens[0];if(e.task&&(t?.type===`text`||t?.type===`paragraph`)){e.text=e.text.replace(this.rules.other.listReplaceTask,``),t.raw=t.raw.replace(this.rules.other.listReplaceTask,``),t.text=t.text.replace(this.rules.other.listReplaceTask,``);for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,``);break}let n=this.rules.other.listTaskCheckbox.exec(e.raw);if(n){let t={type:`checkbox`,raw:n[0]+` `,checked:n[0]!==`[ ]`};e.checked=t.checked,i.loose?e.tokens[0]&&[`paragraph`,`text`].includes(e.tokens[0].type)&&`tokens`in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=t.raw+e.tokens[0].raw,e.tokens[0].text=t.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(t)):e.tokens.unshift({type:`paragraph`,raw:t.raw,text:t.raw,tokens:[t]}):e.tokens.unshift(t)}}else e.task&&=!1}if(i.loose)for(let e of i.items){e.loose=!0;for(let t of e.tokens)t.type===`text`&&(t.type=`paragraph`)}return i}}html(e){let t=this.rules.block.html.exec(e);if(t){let e=N(t[0]);return{type:`html`,block:!0,raw:e,pre:t[1]===`pre`||t[1]===`script`||t[1]===`style`,text:e}}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=P(t[1]).replace(this.rules.other.multipleSpaceGlobal,` `),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,`$1`).replace(this.rules.inline.anyPunctuation,`$1`):``,r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,`$1`):t[3];return{type:`def`,tag:e,raw:M(t[0],`
30
+ `),href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=Qe(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,``).split(`|`),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,``).split(`
31
+ `):[],a={type:`table`,raw:M(t[0],`
32
+ `),header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push(`right`):this.rules.other.tableAlignCenter.test(e)?a.align.push(`center`):this.rules.other.tableAlignLeft.test(e)?a.align.push(`left`):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(Qe(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:`heading`,raw:M(t[0],`
33
+ `),depth:t[2].charAt(0)===`=`?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
34
+ `?t[1].slice(0,-1):t[1];return{type:`paragraph`,raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let 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){let t=this.rules.inline.escape.exec(e);if(t)return{type:`escape`,raw:t[0],text:t[1]}}tag(e){let 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){let t=this.rules.inline.link.exec(e);if(t){let n=t[0].charAt(0)===`!`?2:1;if(!this.options.pedantic&&rt(e,t[1],n,this.rules))return;let r=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let e=M(r.slice(0,-1),`\\`);if((r.length-e.length)%2==0)return}else{let e=$e(t[2],`()`);if(e===-2)return;if(e>-1){let n=(t[0].indexOf(`!`)===0?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=``}}let i=t[2],a=``;if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(i);e&&(i=e[1],a=e[3])}else a=t[3]?t[3].slice(1,-1):``;return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(i=this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?i.slice(1):i.slice(1,-1)),tt(t,{href:i&&i.replace(this.rules.inline.anyPunctuation,`$1`),title:a&&a.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))){let r=n[0].charAt(0)===`!`?2:1;if(!this.options.pedantic&&rt(e,n[1],r,this.rules))return;let i=t[P((n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal,` `))];if(!i){let e=n[0].charAt(0);return{type:`text`,raw:e,text:e}}return tt(n,i,n[0],this.lexer,this.rules)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let i=[...r[0]].length-1,a,o,s=i,c=0,l=r[0][0],u=n===l,d=l===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,t=t.slice(-1*e.length+i);(r=d.exec(t))!==null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(o=[...a].length,r[3]||r[4]){s+=o;continue}if(r[5]||r[6]){if(i%3&&!((i+o)%3)){c+=o;continue}if(u)break}if(s-=o,s>0)continue;o=Math.min(o,o+s+c);let t=[...r[0]][0].length,n=e.slice(0,i+r.index+t+o);if(Math.min(i,o)%2){let e=n.slice(1,-1);return{type:`em`,raw:n,text:e,tokens:this.lexer.inlineTokens(e)}}let l=n.slice(2,-2);return{type:`strong`,raw:n,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal,` `),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:`codespan`,raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:`br`,raw:t[0]}}del(e,t,n=``){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=this.rules.inline.delRDelim;for(s.lastIndex=0,t=t.slice(-1*e.length+n);(r=s.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i||(a=[...i].length,a!==n))continue;if(r[3]||r[4]){o+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o);let t=[...r[0]][0].length,s=e.slice(0,n+r.index+t+a),c=s.slice(n,-n);return{type:`del`,raw:s,text:c,tokens:this.lexer.inlineTokens(c)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=t[1],n=`mailto:`+e):(e=t[1],n=e),{type:`link`,raw:t[0],text:e,href:n,autolink:!0,tokens:[{type:`text`,raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if(t[2]===`@`)e=t[0],n=`mailto:`+e;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??``;while(r!==t[0]);e=t[0],n=t[1]===`www.`?`http://`+t[0]:t[0]}return{type:`link`,raw:t[0],text:e,href:n,autolink:!0,tokens:[{type:`text`,raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:`text`,raw:t[0],text:e?t[0]:Xe(t[0]),escaped:e}}}},F=class t{constructor(t){e(this,`tokens`,void 0),e(this,`options`,void 0),e(this,`state`,void 0),e(this,`inlineQueue`,void 0),e(this,`tokenizer`,void 0),this.tokens=[],this.tokens.links=Object.create(null),this.options=t||r,this.options.tokenizer=this.options.tokenizer||new it,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,linkEmitted:!1,top:!0};let n={other:l,block:k.normal,inline:A.normal};this.options.pedantic?(n.block=k.pedantic,n.inline=A.pedantic):this.options.gfm&&(n.block=k.gfm,n.inline=this.options.breaks?A.breaks:A.gfm),this.tokenizer.rules=n}static get rules(){return{block:k,inline:A}}static lex(e,n){return new t(n).lex(e)}static lexInline(e,n){return new t(n).inlineTokens(e)}lex(e){e=e.replace(l.carriageReturn,`
35
+ `),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(l.tabCharGlobal,` `).replace(l.spaceLine,``));let r=1/0;for(;e;){if(e.length<r)r=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}let i;if(this.options.extensions?.block?.some(n=>(i=n.call({lexer:this},e,t))?(e=e.substring(i.raw.length),t.push(i),!0):!1))continue;if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length);let n=t.at(-1);i.raw.length===1&&n!==void 0?n.raw+=`
36
+ `:t.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
37
+ `)?``:`
38
+ `)+i.raw,n.text+=`
39
+ `+i.text,this.inlineQueue.at(-1).src=n.text):t.push(i);continue}if(i=this.tokenizer.fences(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.heading(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.hr(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.blockquote(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.list(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.html(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.def(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
40
+ `)?``:`
41
+ `)+i.raw,n.text+=`
42
+ `+i.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title},t.push(i));continue}if(i=this.tokenizer.table(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.lheading(e)){e=e.substring(i.raw.length),t.push(i);continue}let a=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(a=e.substring(0,t+1))}if(this.state.top&&(i=this.tokenizer.paragraph(a))){let r=t.at(-1);n&&r?.type===`paragraph`?(r.raw+=(r.raw.endsWith(`
43
+ `)?``:`
44
+ `)+i.raw,r.text+=`
45
+ `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(i),n=a.length!==e.length,e=e.substring(i.raw.length);continue}if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`text`?(n.raw+=(n.raw.endsWith(`
46
+ `)?``:`
47
+ `)+i.raw,n.text+=`
48
+ `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(i);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}linkInText(e){if(!e.includes(`[`))return!1;let t=this.tokenizer.rules.inline.link;for(let n of e.matchAll(this.tokenizer.rules.inline.blockSkip))if(t.test(n[0])&&e.charAt(n.index-1)!==`!`)return!0;for(let t of e.matchAll(this.tokenizer.rules.inline.reflinkSearch)){let e=t[0],n=e.lastIndexOf(`[`);if(e.charAt(0)!==`!`&&Object.hasOwn(this.tokens.links,P(e.slice(n+1,-1)))&&!(n>1&&this.linkInText(e.slice(1,n-1))))return!0}return!1}inlineTokens(e,t=[]){this.tokenizer.lexer=this;let n=e;if(this.tokens.links&&e.includes(`[`)){let e=this.tokenizer.rules.inline.reflinkSearch,t=n=>{let r=n.lastIndexOf(`[`);if(!Object.hasOwn(this.tokens.links,P(n.slice(r+1,-1))))return n;if(r>1&&n.charAt(0)!==`!`){let i=n.slice(1,r-1);if(this.linkInText(i))return`[`+i.replace(e,t)+`][`+`a`.repeat(n.length-r-2)+`]`}return`[`+`a`.repeat(n.length-2)+`]`};n=n.replace(e,t)}n=n.replace(this.tokenizer.rules.inline.anyPunctuation,e=>`+`.repeat(e.length)),n=n.replace(this.tokenizer.rules.inline.blockSkip,(e,t,n)=>{let r=n?n.length:0;return e.slice(0,r)+`[`+`a`.repeat(e.length-r-2)+`]`}),n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let r=!1,i=``,a=1/0;for(;e;){if(e.length<a)a=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}r||(i=``),r=!1;let o;if(this.options.extensions?.inline?.some(n=>(o=n.call({lexer:this},e,t))?(e=e.substring(o.raw.length),t.push(o),!0):!1))continue;if(o=this.tokenizer.escape(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.tag(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.link(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(o.raw.length);let n=t.at(-1);o.type===`text`&&n?.type===`text`?(n.raw+=o.raw,n.text+=o.text):t.push(o);continue}if(o=this.tokenizer.emStrong(e,n,i)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.codespan(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.br(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.del(e,n,i)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.autolink(e)){e=e.substring(o.raw.length),t.push(o);continue}if(!this.state.inLink&&(o=this.tokenizer.url(e))){e=e.substring(o.raw.length),t.push(o);continue}let s=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(s=e.substring(0,t+1))}if(o=this.tokenizer.inlineText(s)){e=e.substring(o.raw.length),o.raw.slice(-1)!==`_`&&(i=o.raw.slice(-1)),r=!0;let n=t.at(-1);n?.type===`text`?(n.raw+=o.raw,n.text+=o.text):t.push(o);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return t}infiniteLoopError(e){let t=`Infinite loop on byte: `+e;if(this.options.silent)console.error(t);else throw Error(t)}},at=class{constructor(t){e(this,`options`,void 0),e(this,`parser`,void 0),this.options=t||r}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(l.notSpaceStart)?.[0],i=e?e.replace(l.endingNewline,``)+`
49
+ `:``;return r?`<pre><code class="language-`+j(r)+`">`+(n?i:j(i,!0))+`</code></pre>
50
+ `:`<pre><code>`+(n?i:j(i,!0))+`</code></pre>
51
+ `}blockquote({tokens:e}){return`<blockquote>
52
+ ${this.parser.parse(e)}</blockquote>
53
+ `}html({text:e}){return e}def(e){return``}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
54
+ `}hr(e){return`<hr>
55
+ `}list(e){let t=e.ordered,n=e.start,r=``;for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?`ol`:`ul`,a=t&&n!==1?` start="`+n+`"`:``;return`<`+i+a+`>
56
+ `+r+`</`+i+`>
57
+ `}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
58
+ `}checkbox({checked:e}){return`<input `+(e?`checked="" `:``)+`disabled="" type="checkbox"> `}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
59
+ `}table(e){let t=``,n=``;for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r=``;for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n=``;for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&=`<tbody>${r}</tbody>`,`<table>
60
+ <thead>
61
+ `+t+`</thead>
62
+ `+r+`</table>
63
+ `}tablerow({text:e}){return`<tr>
64
+ ${e}</tr>
65
+ `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
66
+ `}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>${j(e,!0)}</code>`}br(e){return`<br>`}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,text:n,tokens:r,autolink:i}){let a=i?j(n,!0):this.parser.parseInline(r),o=Ze(e);if(o===null)return a;e=j(o,i);let s=`<a href="`+e+`"`;return t&&(s+=` title="`+j(t)+`"`),s+=`>`+a+`</a>`,s}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=Ze(e);if(i===null)return j(n);e=i;let a=`<img src="${j(e)}" alt="${j(n)}"`;return t&&(a+=` title="${j(t)}"`),a+=`>`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:j(e.text)}},I=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``}checkbox({raw:e}){return e}},L=class t{constructor(t){e(this,`options`,void 0),e(this,`renderer`,void 0),e(this,`textRenderer`,void 0),this.options=t||r,this.options.renderer=this.options.renderer||new at,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new I}static parse(e,n){return new t(n).parse(e)}static parseInline(e,n){return new t(n).parseInline(e)}parse(e){this.renderer.parser=this;let t=``;for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=r,n=this.options.extensions.renderers[e.type].call({parser:this},e);if(n!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`checkbox`,`html`,`def`,`paragraph`,`text`].includes(e.type)){t+=n||``;continue}}let i=r;switch(i.type){case`space`:t+=this.renderer.space(i);break;case`hr`:t+=this.renderer.hr(i);break;case`heading`:t+=this.renderer.heading(i);break;case`code`:t+=this.renderer.code(i);break;case`table`:t+=this.renderer.table(i);break;case`blockquote`:t+=this.renderer.blockquote(i);break;case`list`:t+=this.renderer.list(i);break;case`checkbox`:t+=this.renderer.checkbox(i);break;case`html`:t+=this.renderer.html(i);break;case`def`:t+=this.renderer.def(i);break;case`paragraph`:t+=this.renderer.paragraph(i);break;case`text`:t+=this.renderer.text(i);break;default:{let e=`Token with "`+i.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return t}parseInline(e,t=this.renderer){this.renderer.parser=this;let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(e!==!1||![`escape`,`html`,`link`,`image`,`checkbox`,`strong`,`em`,`codespan`,`br`,`del`,`text`].includes(i.type)){n+=e||``;continue}}let a=i;switch(a.type){case`escape`:n+=t.text(a);break;case`html`:n+=t.html(a);break;case`link`:n+=t.link(a);break;case`image`:n+=t.image(a);break;case`checkbox`:n+=t.checkbox(a);break;case`strong`:n+=t.strong(a);break;case`em`:n+=t.em(a);break;case`codespan`:n+=t.codespan(a);break;case`br`:n+=t.br(a);break;case`del`:n+=t.del(a);break;case`text`:n+=t.text(a);break;default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}},R=(t=class{constructor(t){e(this,`options`,void 0),e(this,`block`,void 0),this.options=t||r}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?F.lex:F.lexInline}provideParser(e=this.block){return e?L.parse:L.parseInline}},e(t,`passThroughHooks`,new Set([`preprocess`,`postprocess`,`processAllTokens`,`emStrongMask`])),e(t,`passThroughHooksRespectAsync`,new Set([`preprocess`,`postprocess`,`processAllTokens`])),t),z=new class{constructor(...t){e(this,`defaults`,n()),e(this,`options`,this.setOptions),e(this,`parse`,this.parseMarkdown(!0)),e(this,`parseInline`,this.parseMarkdown(!1)),e(this,`Parser`,L),e(this,`Renderer`,at),e(this,`TextRenderer`,I),e(this,`Lexer`,F),e(this,`Tokenizer`,it),e(this,`Hooks`,R),this.use(...t)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case`table`:{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case`list`:{let e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new at(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new it(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new R;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];t[r]=R.passThroughHooks.has(n)?e=>{if(this.defaults.async&&R.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return a.call(t,n)})();let r=i.call(t,e);return a.call(t,r)}:(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return n===!1&&(n=await a.apply(t,e)),n})();let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return F.lex(e,t??this.defaults)}parser(e,t){return L.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(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 t>`u`||t===null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer(e):e?F.lex:F.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await(i.hooks?await i.hooks.provideParser(e):e?L.parse:L.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer(e):e?F.lex:F.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser(e):e?L.parse:L.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
67
+ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+j(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function B(e,t){return z.parse(e,t)}B.options=B.setOptions=function(e){return z.setOptions(e),B.defaults=z.defaults,i(B.defaults),B},B.getDefaults=n,B.defaults=r;function ot(...e){return z.use(...e),B.defaults=z.defaults,i(B.defaults),B}B.use=ot,B.walkTokens=function(e,t){return z.walkTokens(e,t)},B.parseInline=z.parseInline,B.Parser=L,B.parser=L.parse,B.Renderer=at,B.TextRenderer=I,B.Lexer=F,B.lexer=F.lex,B.Tokenizer=it,B.Hooks=R,B.parse=B,B.options,B.setOptions,B.walkTokens,B.parseInline,L.parse,F.lex;function st(e,t){this.v=e,this.k=t}function ct(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function lt(e){if(Array.isArray(e))return e}function ut(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function dt(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
68
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ft(e,t){return lt(e)||ut(e,t)||pt(e,t)||dt()}function pt(e,t){if(e){if(typeof e==`string`)return ct(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ct(e,t):void 0}}function V(e){var t,n;function r(t,n){try{var a=e[t](n),o=a.value,s=o instanceof st;Promise.resolve(s?o.v:o).then(function(n){if(s){var c=t===`return`&&o.k?t:`next`;if(!o.k||n.done)return r(c,n);n=e[c](n).value}i(!!a.done,n)},function(e){r(`throw`,e)})}catch(e){i(2,e)}}function i(e,i){e===2?t.reject(i):t.resolve({value:i,done:e}),(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,i){return new Promise(function(a,o){var s={key:e,arg:i,resolve:a,reject:o,next:null};n?n=n.next=s:(t=n=s,r(e,i))})},typeof e.return!=`function`&&(this.return=void 0)}V.prototype[typeof Symbol==`function`&&Symbol.asyncIterator||`@@asyncIterator`]=function(){return this},V.prototype.next=function(e){return this._invoke(`next`,e)},V.prototype.throw=function(e){return this._invoke(`throw`,e)},V.prototype.return=function(e){return this._invoke(`return`,e)};var mt=Object.entries,ht=Object.setPrototypeOf,gt=Object.isFrozen,H=Object.getPrototypeOf,_t=Object.getOwnPropertyDescriptor,U=Object.freeze,W=Object.seal,vt=Object.create,yt=typeof Reflect<`u`&&Reflect,bt=yt.apply,xt=yt.construct;U||=function(e){return e},W||=function(e){return e},bt||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},xt||=function(e){return new e(...[...arguments].slice(1))};var St=J(Array.prototype.forEach);Array.prototype.indexOf;var Ct=J(Array.prototype.lastIndexOf),wt=J(Array.prototype.pop),Tt=J(Array.prototype.push);Array.prototype.slice;var Et=J(Array.prototype.splice),Dt=Array.isArray,Ot=J(String.prototype.toLowerCase),kt=J(String.prototype.toString),At=J(String.prototype.match),jt=J(String.prototype.replace),Mt=J(String.prototype.indexOf),Nt=J(String.prototype.trim),Pt=J(Number.prototype.toString),Ft=J(Boolean.prototype.toString),It=typeof BigInt>`u`?null:J(BigInt.prototype.toString),Lt=typeof Symbol>`u`?null:J(Symbol.prototype.toString),G=J(Object.prototype.hasOwnProperty),K=J(Object.prototype.toString),q=J(RegExp.prototype.test),Rt=zt(TypeError);function J(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return bt(e,t,n)}}function zt(e){return function(){return xt(e,[...arguments])}}function Y(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ot;if(ht&&ht(e,null),!Dt(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(gt(t)||(t[r]=e),i=e)}e[i]=!0}return e}function X(e){for(let t=0;t<e.length;t++)G(e,t)||(e[t]=null);return e}function Z(e){let t=vt(null);for(let r of mt(e)){var n=ft(r,2);let i=n[0],a=n[1];G(e,i)&&(t[i]=Dt(a)?X(a):a&&typeof a==`object`&&a.constructor===Object?Z(a):a)}return t}function Bt(e){switch(typeof e){case`string`:return e;case`number`:return Pt(e);case`boolean`:return Ft(e);case`bigint`:return It?It(e):`0`;case`symbol`:return Lt?Lt(e):`Symbol()`;case`undefined`:return K(e);case`function`:case`object`:{if(e===null)return K(e);let t=e,n=Q(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:K(e)}return K(e)}default:return K(e)}}function Q(e,t){for(;e!==null;){let n=_t(e,t);if(n){if(n.get)return J(n.get);if(typeof n.value==`function`)return J(n.value)}e=H(e)}function n(){return null}return n}function Vt(e){try{return q(e,``),!0}catch{return!1}}var Ht=U(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),Ut=U(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),Wt=U([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),Gt=U([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),Kt=U(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),qt=U([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),Jt=U([`#text`]),Yt=U(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),Xt=U(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),Zt=U(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),Qt=U([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),$t=W(/{{[\w\W]*|^[\w\W]*}}/g),en=W(/<%[\w\W]*|^[\w\W]*%>/g),tn=W(/\${[\w\W]*/g),nn=W(/^data-[\-\w.\u00B7-\uFFFF]+$/),rn=W(/^aria-[\-\w]+$/),an=W(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),on=W(/^(?:\w+script|data):/i),sn=W(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),cn=W(/^html$/i),ln=W(/^[a-z][.\w]*(-[.\w]+)+$/i),un=W(/<[/\w!]/g),dn=W(/<[/\w]/g),fn=W(/<\/no(script|embed|frames)/i),pn=W(/\/>/i),$={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},mn=[`style`,`script`,`xmp`,`iframe`,`noembed`,`noframes`,`plaintext`,`noscript`],hn=U(Y({},mn)),gn=function(){let e={};return St(mn,t=>{e[t]=W(RegExp(`</`+t+`(?=[\\t\\n\\f\\r />])`,`i`))}),U(e)}(),_n=function(){return typeof window>`u`?null:window},vn=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},yn=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},bn=function(e,t,n,r){return G(e,t)&&Dt(e[t])?Y(r.base?Z(r.base):{},e[t],r.transform):n},xn=function(e,t,n){let r=G(e,t)?e[t]:void 0;return r&&typeof r==`object`?Z(r):n()};function Sn(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_n(),t=e=>Sn(e);if(t.version=`3.4.16`,t.removed=[],!e||!e.document||e.document.nodeType!==$.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=Q(d,`cloneNode`),p=Q(d,`remove`),m=Q(d,`removeAttributeNode`),ee=Q(d,`nextSibling`),te=Q(d,`childNodes`),ne=Q(d,`parentNode`),re=Q(d,`shadowRoot`),ie=Q(d,`attributes`),ae=o&&o.prototype?Q(o.prototype,`nodeType`):null,h=o&&o.prototype?Q(o.prototype,`nodeName`):null,oe=o&&o.prototype?Q(o.prototype,`ownerDocument`):null,se=function(e){return ae?ae(e):e.nodeType},g=function(e){return h?h(e):e.nodeName};if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let _,v=``,ce,le=!1,ue=0,de=function(){if(ue>0)throw Rt(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},y=function(e){de(),ue++;try{return _.createHTML(e)}finally{ue--}},fe=function(e){de(),ue++;try{return _.createScriptURL(e)}finally{ue--}},pe=function(){return le||=(ce=vn(u,i),!0),ce},me=n,he=me.implementation,ge=me.createNodeIterator,_e=me.createDocumentFragment,b=me.getElementsByTagName,ve=r.importNode,x=yn();t.isSupported=typeof mt==`function`&&typeof ne==`function`&&he&&he.createHTMLDocument!==void 0;let ye=$t,be=en,xe=tn,Se=nn,Ce=rn,we=on,Te=sn,Ee=ln,De=an,S=null,Oe=Y({},[...Ht,...Ut,...Wt,...Kt,...Jt]),C=null,ke=Y({},[...Yt,...Xt,...Zt,...Qt]),w=Object.seal(vt(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ae=null,je=null,T=Object.seal(vt(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Me=!0,Ne=!0,Pe=!1,Fe=!0,E=!1,D=!0,O=!1,Ie=!1,Le=null,Re=null,ze=!1,Be=!1,Ve=!1,He=!1,Ue=!0,We=!1,Ge=`user-content-`,Ke=!0,qe=!1,k={},A=null,Je=Y({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),Ye=null,j=Y({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Xe=null,Ze=Y({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),Qe=`http://www.w3.org/1998/Math/MathML`,M=`http://www.w3.org/2000/svg`,N=`http://www.w3.org/1999/xhtml`,P=N,$e=!1,et=null,tt=Y({},[Qe,M,N],kt),nt=U([`mi`,`mo`,`mn`,`ms`,`mtext`]),rt=Y({},nt),it=U([`annotation-xml`]),F=Y({},it),at=Y({},[`title`,`style`,`font`,`a`,`script`]),I=null,L=[`application/xhtml+xml`,`text/html`],R=null,z=null,B=n.createElement(`form`),ot=function(e){return e instanceof RegExp||e instanceof Function},st=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(z&&z===e)return;(!e||typeof e!=`object`)&&(e={}),e=Z(e),I=L.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,R=I===`application/xhtml+xml`?kt:Ot,S=bn(e,`ALLOWED_TAGS`,Oe,{transform:R}),C=bn(e,`ALLOWED_ATTR`,ke,{transform:R}),et=bn(e,`ALLOWED_NAMESPACES`,tt,{transform:kt}),Xe=bn(e,`ADD_URI_SAFE_ATTR`,Ze,{transform:R,base:Ze}),Ye=bn(e,`ADD_DATA_URI_TAGS`,j,{transform:R,base:j}),A=bn(e,`FORBID_CONTENTS`,Je,{transform:R}),Ae=bn(e,`FORBID_TAGS`,Z({}),{transform:R}),je=bn(e,`FORBID_ATTR`,Z({}),{transform:R}),k=G(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?Z(e.USE_PROFILES):e.USE_PROFILES:!1,Me=e.ALLOW_ARIA_ATTR!==!1,Ne=e.ALLOW_DATA_ATTR!==!1,Pe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Fe=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,E=e.SAFE_FOR_TEMPLATES||!1,D=e.SAFE_FOR_XML!==!1,O=e.WHOLE_DOCUMENT||!1,Be=e.RETURN_DOM||!1,Ve=e.RETURN_DOM_FRAGMENT||!1,He=e.RETURN_TRUSTED_TYPE||!1,ze=e.FORCE_BODY||!1,Ue=e.SANITIZE_DOM!==!1,We=e.SANITIZE_NAMED_PROPS||!1,Ke=e.KEEP_CONTENT!==!1,qe=e.IN_PLACE||!1,De=Vt(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:an,P=typeof e.NAMESPACE==`string`?e.NAMESPACE:N,rt=xn(e,`MATHML_TEXT_INTEGRATION_POINTS`,()=>Y({},nt)),F=xn(e,`HTML_INTEGRATION_POINTS`,()=>Y({},it));let t=xn(e,`CUSTOM_ELEMENT_HANDLING`,()=>vt(null));if(w=vt(null),G(t,`tagNameCheck`)&&ot(t.tagNameCheck)&&(w.tagNameCheck=t.tagNameCheck),G(t,`attributeNameCheck`)&&ot(t.attributeNameCheck)&&(w.attributeNameCheck=t.attributeNameCheck),G(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(w.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),W(w),E&&(Ne=!1),Ve&&(Be=!0),k&&(S=Y({},Jt),C=vt(null),k.html===!0&&(Y(S,Ht),Y(C,Yt)),k.svg===!0&&(Y(S,Ut),Y(C,Xt),Y(C,Qt)),k.svgFilters===!0&&(Y(S,Wt),Y(C,Xt),Y(C,Qt)),k.mathMl===!0&&(Y(S,Kt),Y(C,Zt),Y(C,Qt))),T.tagCheck=null,T.attributeCheck=null,G(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?T.tagCheck=e.ADD_TAGS:Dt(e.ADD_TAGS)&&(S===Oe&&(S=Z(S)),Y(S,e.ADD_TAGS,R))),G(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?T.attributeCheck=e.ADD_ATTR:Dt(e.ADD_ATTR)&&(C===ke&&(C=Z(C)),Y(C,e.ADD_ATTR,R))),G(e,`ADD_FORBID_CONTENTS`)&&Dt(e.ADD_FORBID_CONTENTS)&&(A===Je&&(A=Z(A)),Y(A,e.ADD_FORBID_CONTENTS,R)),Ke&&(S[`#text`]=!0),O&&Y(S,[`html`,`head`,`body`]),S.table&&(Y(S,[`tbody`]),delete Ae.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw Rt(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw Rt(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=_;_=e.TRUSTED_TYPES_POLICY;try{v=y(``)}catch(e){throw _=t,e}}else e.TRUSTED_TYPES_POLICY===null?(_=void 0,v=``):(_===void 0&&(_=pe()),_&&typeof v==`string`&&(v=y(``)));U&&U(e),z=e},ct=Y({},[...Ut,...Wt,...Gt]),lt=Y({},[...Kt,...qt]),ut=function(e,t,n){return t.namespaceURI===N?e===`svg`:t.namespaceURI===Qe?e===`svg`&&(n===`annotation-xml`||rt[n]):!!ct[e]},dt=function(e,t,n){return t.namespaceURI===N?e===`math`:t.namespaceURI===M?e===`math`&&F[n]:!!lt[e]},ft=function(e,t,n){return t.namespaceURI===M&&!F[n]||t.namespaceURI===Qe&&!rt[n]?!1:!lt[e]&&(at[e]||!ct[e])},pt=function(e){let t=ne(e);(!t||!t.tagName)&&(t={namespaceURI:P,tagName:`template`});let n=Ot(e.tagName),r=Ot(t.tagName);return et[e.namespaceURI]?e.namespaceURI===M?ut(n,t,r):e.namespaceURI===Qe?dt(n,t,r):e.namespaceURI===N?ft(n,t,r):!!(I===`application/xhtml+xml`&&et[e.namespaceURI]):!1},V=function(e){Tt(t.removed,{element:e});try{ne(e).removeChild(e)}catch{if(p(e),!ne(e))throw Rt(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},ht=function(e,t,n){try{m(e,t)}catch{try{e.removeAttribute(n)}catch{}}},gt=function(e){yt(e);let t=te(e);if(t){let e=[];St(t,t=>{Tt(e,t)}),St(e,e=>{try{p(e)}catch{}})}let n=ie(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;typeof i==`string`&&ht(e,r,i)}},H=function(e,n,r){if(!r)try{r=n.getAttributeNode(e)}catch{r=null}Tt(t.removed,{attribute:r||null,from:n});try{r?m(n,r):n.removeAttribute(e)}catch{try{n.removeAttribute(e)}catch{}}if(e===`is`){if(Be||Ve)try{V(n)}catch{}else try{n.setAttribute(e,``)}catch{}}},_t=function(e){let t=ie(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;typeof i!=`string`||C[R(i)]||ht(e,r,i)}},yt=function(e){let t=[e];for(;t.length>0;){let e=t.pop();se(e)===$.element&&_t(e);let n=te(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},bt=function(e,t){return D?e===`patchsrc`||e===`for`&&t!==`label`&&t!==`output`:!1},xt=function(e){if(!D)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=se(e);if(n===$.processingInstruction||n===$.comment&&q(dn,e.data)){try{p(e)}catch{}continue}if(n===$.element){let t=e,n=R(g(e));try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&bt(`for`,n)&&t.removeAttribute(`for`)}catch{}}let r=te(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},Pt=function(e){let t=null,r=null;if(ze)e=`<remove></remove>`+e;else{let t=At(e,/^[\r\n\t ]+/);r=t&&t[0]}I===`application/xhtml+xml`&&P===N&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=_?y(e):e;if(P===N)try{t=new l().parseFromString(i,I)}catch{}if(!t||!t.documentElement){t=he.createDocument(P,`template`,null);try{t.documentElement.innerHTML=$e?v:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),P===N?b.call(t,O?`html`:`body`)[0]:O?t.documentElement:a},Ft=function(e){let t=oe?oe(e):e.ownerDocument;return ge.call(t||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},It=function(e){return e=jt(e,ye,` `),e=jt(e,be,` `),e=jt(e,xe,` `),e},Lt=function(e){e.normalize();let t=oe?oe(e):e.ownerDocument,n=ge.call(t||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=It(r.data),r=n.nextNode();let i=e.querySelectorAll?.call(e,`template`);i&&St(i,e=>{J(e.content)&&Lt(e.content)})},K=function(e){let t=h?h(e):null;return typeof t!=`string`||R(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==ie(e)||typeof e.removeAttribute!=`function`||typeof e.removeAttributeNode!=`function`||typeof e.getAttributeNode!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==ae(e)||e.childNodes!==te(e)},J=function(e){if(!ae||typeof e!=`object`||!e)return!1;try{return ae(e)===$.documentFragment}catch{return!1}},zt=function(e){if(!ae||typeof e!=`object`||!e)return!1;try{return typeof ae(e)==`number`}catch{return!1}};function X(e,n,r){e.length!==0&&St(e,e=>{e.call(t,n,r,z)})}let mn=function(e,t){return!!(D&&e.hasChildNodes()&&!zt(e.firstElementChild)&&q(un,e.textContent)&&q(un,e.innerHTML)||D&&e.namespaceURI===N&&hn[t]&&(zt(e.firstElementChild)||typeof e.textContent==`string`&&q(gn[t],e.textContent))||e.nodeType===$.processingInstruction||D&&e.nodeType===$.comment&&q(dn,e.data))},Cn=function(e,t){return e instanceof RegExp?q(e,t):e instanceof Function&&!!e(t,...[...arguments].slice(2))},wn=function(e,t,n){if(!Ae[t]&&An(t)&&Cn(w.tagNameCheck,t))return!1;if(Ke&&!A[t]){let t=ne(e),r=te(e);if(r&&t){let i=r.length;for(let a=i-1;a>=0;--a){let i=e===n?f(r[a],!0):r[a];t.insertBefore(i,ee(e))}}}return V(e),!0},Tn=function(e,t,n,r){return e.length===0?t:t===n||t===r?Z(t):t},En=function(e,t){return e===t||ne(e)!==null?!1:(qe&&yt(e),!0)},Dn=function(e,n){if(X(x.beforeSanitizeElements,e,null),En(e,n))return!0;if(K(e))return V(e),!0;let r=R(g(e));if(S=Tn(x.uponSanitizeElement,S,Oe,Le),X(x.uponSanitizeElement,e,{tagName:r,allowedTags:S}),En(e,n))return!0;if(mn(e,r))return V(e),!0;if(Ae[r]||!(T.tagCheck instanceof Function&&T.tagCheck(r))&&!S[r]){let t=wn(e,r,n);return t===!1&&(X(x.afterSanitizeElements,e,null),En(e,n))?!0:t}if(se(e)===$.element&&!pt(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&q(fn,e.innerHTML))return V(e),!0;if(E&&e.nodeType===$.text){let n=It(e.textContent);e.textContent!==n&&(Tt(t.removed,{element:e.cloneNode()}),e.textContent=n)}return X(x.afterSanitizeElements,e,null),En(e,n)},On=function(e,t,r){if(je[t]||bt(t,e)||Ue&&(t===`id`||t===`name`)&&(r in n||r in B))return!1;let i=C[t]||T.attributeCheck instanceof Function&&T.attributeCheck(t,e);return Ne&&q(Se,t)||Me&&q(Ce,t)?!0:i?Xe[t]||q(De,jt(r,Te,``))||(t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&Mt(r,`data:`)===0&&Ye[e]||Pe&&!q(we,jt(r,Te,``))?!0:!r:An(e)&&Cn(w.tagNameCheck,e)&&Cn(w.attributeNameCheck,t,e)||t===`is`&&w.allowCustomizedBuiltInElements&&Cn(w.tagNameCheck,r)},kn=Y({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),An=function(e){return!kn[Ot(e)]&&q(Ee,e)},jn=function(e,t,n,r){if(_&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!n)switch(u.getAttributeType(e,t)){case`TrustedHTML`:return y(r);case`TrustedScriptURL`:return fe(r)}return r},Mn=function(e,t,n,r){try{return n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),!K(e)||(V(e),!1)}catch{return H(t,e),!1}},Nn=function(e,n){if(X(x.beforeSanitizeAttributes,e,null),En(e,n))return;let r=e.attributes;if(!r||K(e))return;C=Tn(x.uponSanitizeAttribute,C,ke,Re);let i={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:C,forceKeepAttr:void 0},a=r.length,o=R(e.nodeName);for(;a--;){let n=r[a],s=n.name,c=n.namespaceURI,l=n.value,u=R(s),d=l,f=s===`value`?d:Nt(d),p=!1;if(i.attrName=u,i.attrValue=f,i.keepAttr=!0,i.forceKeepAttr=void 0,X(x.uponSanitizeAttribute,e,i),f=i.attrValue,We&&(u===`id`||u===`name`)&&Mt(f,Ge)!==0&&(H(s,e,n),f=Ge+f,p=!0),D&&q(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)){H(s,e,n);continue}if(u===`attributename`&&At(f,`href`)){H(s,e,n);continue}if(!i.forceKeepAttr){if(!i.keepAttr){H(s,e,n);continue}if(!Fe&&q(pn,f)){H(s,e,n);continue}if(E&&(f=It(f)),!On(o,u,f)){H(s,e,n);continue}f=jn(o,u,c,f),f!==d&&Mn(e,s,c,f)&&p&&wt(t.removed)}}X(x.afterSanitizeAttributes,e,null),En(e,n)},Pn=function(e){let t=null,n=Ft(e);for(X(x.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(X(x.uponSanitizeShadowNode,t,null),Dn(t,e),Nn(t,e),J(t.content)&&Pn(t.content),se(t)===$.element){let e=re(t);J(e)&&(Fn(e),Pn(e))}X(x.afterSanitizeShadowDOM,e,null)},Fn=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){Pn(e.shadow);continue}let n=e.node,r=se(n)===$.element,i=te(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=h?h(n):null;if(typeof e==`string`&&R(e)===`template`){let e=n.content;J(e)&&t.push({node:e,shadow:null})}}if(r){let e=re(n);J(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if($e=!e,$e&&(e=`<!-->`),typeof e!=`string`&&!zt(e)&&(e=Bt(e),typeof e!=`string`))throw Rt(`dirty is not a string, aborting`);if(!t.isSupported)return e;Ie?(S=Le,C=Re):st(n),(x.uponSanitizeElement.length>0||x.uponSanitizeAttribute.length>0)&&(S=Z(S)),x.uponSanitizeAttribute.length>0&&(C=Z(C)),t.removed=[];let c=qe&&typeof e!=`string`&&zt(e);if(c){xt(e);let t=g(e);if(typeof t==`string`){let n=R(t);if(!S[n]||Ae[n])throw gt(e),Rt(`root node is forbidden and cannot be sanitized in-place`)}if(K(e))throw gt(e),Rt(`root node is clobbered and cannot be sanitized in-place`);try{Fn(e)}catch(t){throw gt(e),t}}else if(zt(e))i=Pt(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===$.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),Fn(i);else{if(!Be&&!E&&!O&&e.indexOf(`<`)===-1)return _&&He?y(e):e;if(i=Pt(e),!i)return Be?null:He?v:``}i&&ze&&V(i.firstChild);let l=c?e:i;try{let e=Ft(l);for(;o=e.nextNode();)Dn(o,l),Nn(o,l),J(o.content)&&Pn(o.content)}catch(n){throw c&&(gt(e),St(t.removed,e=>{e.element&&yt(e.element)})),n}if(c){let n=!1;if(St(t.removed,t=>{t.element&&(t.element===e&&(n=!0),yt(t.element))}),n)throw Rt(`a node selected for removal could not be safely returned; refusing to sanitize in place`);return E&&Lt(e),e}if(Be){if(E&&Lt(i),Ve)for(s=_e.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(C.shadowroot||C.shadowrootmode)&&(s=ve.call(r,s,!0)),s}let u=O?i.outerHTML:i.innerHTML;return O&&S[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&q(cn,i.ownerDocument.doctype.name)&&(u=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
69
+ `+u),E&&(u=It(u)),_&&He?y(u):u},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};st(e),Ie=!0,Le=S,Re=C},t.clearConfig=function(){z=null,Ie=!1,Le=null,Re=null,_=ce,v=``},t.isValidAttribute=function(e,t,n){z||st({});let r=R(e),i=R(t);return On(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&G(x,e)&&Tt(x[e],t)},t.removeHook=function(e,t){if(G(x,e)){if(t!==void 0){let n=Ct(x[e],t);return n===-1?void 0:Et(x[e],n,1)[0]}return wt(x[e])}},t.removeHooks=function(e){G(x,e)&&(x[e]=[])},t.removeAllHooks=function(){x=yn()},t}var Cn=Sn(),wn=!1;function Tn(){wn||=(Cn.addHook(`afterSanitizeAttributes`,e=>{if(e.nodeName===`A`){let t=e.getAttribute(`href`)??``;/^https?:\/\//i.test(t)&&(e.setAttribute(`target`,`_blank`),e.setAttribute(`rel`,`noopener noreferrer nofollow`))}}),!0)}Tn();function En(e,t={}){Tn();let n=B.parse(e,{async:!1,breaks:!0,gfm:!0});return Cn.sanitize(n,t.addAttr?{ADD_ATTR:t.addAttr}:void 0)}function Dn(e,t={}){return Tn(),Cn.sanitize(e,t.addAttr?{ADD_ATTR:t.addAttr}:void 0)}var On=new Map;function kn(e,t,n=e=>En(e)){let r=`${e}::${t.length}`,i=On.get(r);if(i!==void 0)return i;let a=n(t);if(On.set(r,a),On.size>400){let e=On.keys().next().value;e!==void 0&&On.delete(e)}return a}function An(e){return e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/\n/g,`<br>`)}export{Cn as a,Dn as i,En as n,B as o,kn as r,An as t};
@@ -0,0 +1 @@
1
+ import{$ as e,A as t,B as n,C as r,F as i,G as a,H as o,I as s,J as c,L as l,N as u,P as d,Q as f,R as p,T as m,U as h,V as g,W as _,X as v,Y as y,Z as b,at as x,b as S,c as C,d as ee,et as te,f as ne,ft as re,h as ie,i as ae,it as oe,j as se,k as ce,l as le,lt as ue,m as de,n as fe,ot as pe,pt as me,q as he,r as ge,rt as w,s as _e,st as ve,t as ye,tt as be,u as T,ut as xe,v as Se,w as Ce,x as we,y as Te,z as Ee}from"./reactivity.esm-bundler-tuEvQ47f.js";function De(e,t,n,r){try{return r?e(...r):e()}catch(e){D(e,t,n)}}function E(t,n,r,i){if(y(t)){let a=De(t,n,r,i);return a&&e(a)&&a.catch(e=>{D(e,n,r)}),a}if(c(t)){let e=[];for(let a=0;a<t.length;a++)e.push(E(t[a],n,r,i));return e}}function D(e,t,n,r=!0){let a=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:s}=t&&t.appContext.config||i;if(t){let r=t.parent,i=t.proxy,a=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){let t=r.ec;if(t){for(let n=0;n<t.length;n++)if(t[n](e,i,a)===!1)return}r=r.parent}if(o){de(),De(o,null,10,[e,i,a]),Te();return}}Oe(e,n,a,r,s)}function Oe(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}var O=[],k=-1,ke=[],A=null,Ae=0,je=Promise.resolve(),Me=null;function Ne(e){let t=Me||je;return e?t.then(this?e.bind(this):e):t}function Pe(e){let t=k+1,n=O.length;for(;t<n;){let r=t+n>>>1,i=O[r],a=Be(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function Fe(e){if(!(e.flags&1)){let t=Be(e),n=O[O.length-1];!n||!(e.flags&2)&&t>=Be(n)?O.push(e):O.splice(Pe(t),0,e),e.flags|=1,Ie()}}function Ie(){Me||=je.then(Ve)}function Le(e){if(!c(e))A&&e.id===-1?A.splice(Ae+1,0,e):e.flags&1||(ke.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)ke.push(e[t]);Ie()}function Re(e,t,n=k+1){for(;n<O.length;n++){let t=O[n];if(t&&t.flags&2){if(e&&t.id!==e.uid)continue;O.splice(n,1),n--,t.flags&4&&(t.flags&=-2),t(),t.flags&4||(t.flags&=-2)}}}function ze(e){if(ke.length){let e=[...new Set(ke)].sort((e,t)=>Be(e)-Be(t));if(ke.length=0,A){for(let t=0;t<e.length;t++)A.push(e[t]);return}for(A=e,Ae=0;Ae<A.length;Ae++){let e=A[Ae];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}A=null,Ae=0}}var Be=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Ve(e){try{for(k=0;k<O.length;k++){let e=O[k];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),De(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;k<O.length;k++){let e=O[k];e&&(e.flags&=-2)}k=-1,O.length=0,ze(e),Me=null,(O.length||ke.length)&&Ve(e)}}var j=null,He=null;function Ue(e){let t=j;return j=e,He=e&&e.type.__scopeId||null,t}function We(e,t=j,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&xr(-1);let i=Ue(t),a=W.length,o;try{o=e(...n)}finally{for(let e=W.length;e>a;e--)yr();Ue(i),r._d&&xr(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Ge(e,n){if(j===null)return e;let r=Xr(j),a=e.dirs||=[];for(let e=0;e<n.length;e++){let[o,s,c,l=i]=n[e];o&&(y(o)&&(o={mounted:o,updated:o}),o.deep&&t(s),a.push({dir:o,instance:r,value:s,oldValue:void 0,arg:c,modifiers:l}))}return e}function M(e,t,n,r){let i=e.dirs,a=t&&t.dirs;for(let o=0;o<i.length;o++){let s=i[o];a&&(s.oldValue=a[o].value);let c=s.dir[r];c&&(de(),E(c,n,8,[e.el,s,e,t]),Te())}}function Ke(e,t){if($){let n=$.provides,r=$.parent&&$.parent.provides;r===n&&(n=$.provides=Object.create(r)),n[e]=t}}function qe(e,t,n=!1){let r=Lr();if(r||z){let i=z?z._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&y(t)?t.call(r&&r.proxy):t}}function Je(){return!!(Lr()||z)}var Ye=Symbol.for(`v-scx`),Xe=()=>qe(Ye);function Ze(e,t){return $e(e,null,{flush:`sync`})}function Qe(e,t,n){return $e(e,t,n)}function $e(e,t,n=i){let{immediate:r,deep:a,flush:o,once:s}=n,c=g({},n),d=t&&r||!t&&o!==`post`,f;if(Ur){if(o===`sync`){let e=Xe();f=e.__watcherHandles||=[]}else if(!d){let e=()=>{};return e.stop=l,e.resume=l,e.pause=l,e}}let p=$;c.call=(e,t,n)=>E(e,p,t,n);let m=!1;o===`post`?c.scheduler=e=>{B(e,p&&p.suspense)}:o!==`sync`&&(m=!0,c.scheduler=(e,t)=>{t?e():Fe(e)}),c.augmentJob=e=>{t&&(e.flags|=4),m&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};let h=u(e,t,c);return Ur&&(f?f.push(h):d&&h()),h}var N=new WeakMap,et=Symbol(`_vte`),tt=e=>e.__isTeleport,P=e=>e&&(e.disabled||e.disabled===``),nt=e=>e&&(e.defer||e.defer===``),rt=e=>typeof SVGElement<`u`&&e instanceof SVGElement,it=e=>typeof MathMLElement==`function`&&e instanceof MathMLElement,at=(e,t)=>{let n=e&&e.to;return w(n)?t?t(n):null:n},ot={name:`Teleport`,__isTeleport:!0,process(e,t,n,r,i,a,o,s,c,l){let{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:m,createText:h,createComment:g,parentNode:_}}=l,v=P(t.props),{dynamicChildren:y}=t,b=(e,t,n)=>{e.shapeFlag&16&&u(e.children,t,n,i,a,o,s,c)},x=(e=t)=>{let n=P(e.props),r=e.target=at(e.props,m),a=dt(r,e,h,p);r&&(o!==`svg`&&rt(r)?o=`svg`:o!==`mathml`&&it(r)&&(o=`mathml`),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(r),n||(b(e,r,a),ut(e,!1)))},S=e=>{let t=()=>{if(N.get(e)===t){if(N.delete(e),P(e.props)){let t=_(e.el)||n;b(e,t,e.anchor),ut(e,!0)}x(e)}};N.set(e,t),B(t,a)};if(e==null){let e=t.el=h(``),i=t.anchor=h(``);if(p(e,n,r),p(i,n,r),nt(t.props)||a&&a.pendingBranch){S(t);return}v&&(b(t,n,i),ut(t,!0)),x()}else{t.el=e.el;let r=t.anchor=e.anchor,u=N.get(e);if(u){u.flags|=8,N.delete(e),S(t);return}t.targetStart=e.targetStart;let p=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=P(e.props),_=g?n:p,b=g?r:h;if(o===`svg`||rt(p)?o=`svg`:(o===`mathml`||it(p))&&(o=`mathml`),y?(f(e.dynamicChildren,y,_,i,a,o,s),Qn(e,t,!0)):c||d(e,t,_,b,i,a,o,s,!1),v)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):st(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=at(t.props,m);e&&(t.target=e,st(t,e,null,l,0))}else g&&st(t,p,h,l,1);ut(t,v)}},remove(e,t,n,{um:r,o:{remove:i}},a){let{shapeFlag:o,children:s,anchor:c,targetStart:l,targetAnchor:u,target:d,props:f}=e,p=P(f),m=a||!p,h=N.get(e);if(h&&(h.flags|=8,N.delete(e)),d&&(i(l),i(u)),a&&i(c),!h&&(p||d)&&o&16)for(let e=0;e<s.length;e++){let i=s[e];r(i,t,n,m,!!i.dynamicChildren)}},move:st,hydrate:ct};function st(e,t,n,{o:{insert:r},m:i},a=2){a===0&&r(e.targetAnchor,t,n);let{el:o,anchor:s,shapeFlag:c,children:l,props:u}=e,d=a===2;if(d&&r(o,t,n),!N.has(e)&&(!d||P(u))&&c&16)for(let e=0;e<l.length;e++)i(l[e],t,n,2);d&&r(s,t,n)}function ct(e,t,n,r,i,a,{o:{nextSibling:o,parentNode:s,querySelector:c,insert:l,createText:u}},d){function f(e,n){let r=n;for(;r;){if(r&&r.nodeType===8){if(r.data===`teleport start anchor`)t.targetStart=r;else if(r.data===`teleport anchor`){t.targetAnchor=r,e._lpa=t.targetAnchor&&o(t.targetAnchor);break}}r=o(r)}}function p(e,t){t.anchor=d(o(e),t,s(e),n,r,i,a)}let m=t.target=at(t.props,c),h=P(t.props);if(m){let c=m._lpa||m.firstChild;t.shapeFlag&16&&(h?(p(e,t),f(m,c),t.targetAnchor||dt(m,t,u,l,s(e)===m?e:null)):(t.anchor=o(e),f(m,c),t.targetAnchor||dt(m,t,u,l),d(c&&o(c),t,m,n,r,i,a))),ut(t,h)}else h&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}var lt=ot;function ut(e,t){let n=e.ctx;if(n&&n.ut){let r,i;for(t?(r=e.el,i=e.anchor):(r=e.targetStart,i=e.targetAnchor);r&&r!==i;)r.nodeType===1&&r.setAttribute(`data-v-owner`,n.uid),r=r.nextSibling;n.ut()}}function dt(e,t,n,r,i=null){let a=t.targetStart=n(``),o=t.targetAnchor=n(``);return a[et]=o,e&&(r(a,e,i),r(o,e,i)),o}var F=Symbol(`_leaveCb`),ft=Symbol(`_enterCb`);function pt(){let e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return qt(()=>{e.isMounted=!0}),Xt(()=>{e.isUnmounting=!0}),e}var I=[Function,Array],mt={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:I,onEnter:I,onAfterEnter:I,onEnterCancelled:I,onBeforeLeave:I,onLeave:I,onAfterLeave:I,onLeaveCancelled:I,onBeforeAppear:I,onAppear:I,onAfterAppear:I,onAppearCancelled:I},ht=e=>{let t=e.subTree;return t.component?ht(t.component):t},gt={name:`BaseTransition`,props:mt,setup(e,{slots:t}){let n=Lr(),i=pt();return()=>{let a=t.default&&Ct(t.default(),!0),o=a&&a.length?_t(a):n.subTree?jr():void 0;if(!o)return;let s=r(e),{mode:c}=s;if(i.isLeaving)return xt(o);let l=St(o);if(!l)return xt(o);let u=bt(l,s,i,n,e=>u=e);l.type!==U&&L(l,u);let d=n.subTree&&St(n.subTree);if(d&&d.type!==U&&!q(d,l)&&ht(n).type!==U){let e=bt(d,s,i,n);if(L(d,e),c===`out-in`&&l.type!==U)return i.isLeaving=!0,e.afterLeave=()=>{i.isLeaving=!1,n.job.flags&8||n.update(),delete e.afterLeave,d=void 0},xt(o);c===`in-out`&&l.type!==U?e.delayLeave=(e,t,n)=>{let r=yt(i,d);r[String(d.key)]=d,e[F]=()=>{t(),e[F]=void 0,delete u.delayedLeave,d=void 0},u.delayedLeave=()=>{n(),delete u.delayedLeave,d=void 0}}:d=void 0}else d&&=void 0;return o}}};function _t(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==U){t=n;break}}return t}var vt=gt;function yt(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function bt(e,t,n,r,i){let{appear:a,mode:o,persisted:s=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:d,onEnterCancelled:f,onBeforeLeave:p,onLeave:m,onAfterLeave:h,onLeaveCancelled:g,onBeforeAppear:_,onAppear:v,onAfterAppear:y,onAppearCancelled:b}=t,x=String(e.key),S=yt(n,e),C=(e,t)=>{e&&E(e,r,9,t)},ee=(e,t)=>{let n=t[1];C(e,t),c(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},te={mode:o,persisted:s,beforeEnter(t){let r=l;if(!n.isMounted){if(a)r=_||l;else return}t[F]&&t[F](!0);let i=S[x];i&&q(e,i)&&i.el[F]&&i.el[F](),C(r,[t])},enter(t){if(S[x]===e)return;let r=u,i=d,o=f;if(!n.isMounted){if(a)r=v||u,i=y||d,o=b||f;else return}let s=!1;t[ft]=e=>{s||(s=!0,C(e?o:i,[t]),te.delayedLeave&&te.delayedLeave(),t[ft]=void 0)};let c=t[ft].bind(null,!1);r?ee(r,[t,c]):c()},leave(t,r){let i=String(e.key);if(t[ft]&&t[ft](!0),n.isUnmounting)return r();C(p,[t]);let a=!1;t[F]=n=>{a||(a=!0,r(),C(n?g:h,[t]),t[F]=void 0,S[i]===e&&delete S[i])};let o=t[F].bind(null,!1);S[i]=e,m?ee(m,[t,o]):o()},clone(e){let a=bt(e,t,n,r,i);return i&&i(a),a}};return te}function xt(e){if(Ft(e))return e=Y(e),e.children=null,e}function St(e){if(!Ft(e))return tt(e.type)&&e.children?_t(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&y(n.default))return n.default()}}function L(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let n=e.component.subTree;L(tt(n.type)&&St(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ct(e,t=!1,n){let r=[],i=0;for(let a=0;a<e.length;a++){let o=e[a],s=n==null?o.key:String(n)+String(o.key==null?a:o.key);o.type===H?(o.patchFlag&128&&i++,r=r.concat(Ct(o.children,t,s))):(t||o.type!==U)&&r.push(s==null?o:Y(o,{key:s}))}if(i>1)for(let e=0;e<r.length;e++)r[e].patchFlag=-2;return r}function wt(e,t){return y(e)?g({name:e.name},t,{setup:e}):e}function Tt(){let e=Lr();return e?(e.appContext.config.idPrefix||`v`)+`-`+e.ids[0]+e.ids[1]++:``}function Et(e){e.ids=[e.ids[0]+e.ids[2]+++`-`,0,0]}function Dt(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var Ot=new WeakMap;function kt(e,t,n,a,o=!1){if(c(e)){e.forEach((e,r)=>kt(e,t&&(c(t)?t[r]:t),n,a,o));return}if(R(a)&&!o){a.shapeFlag&512&&a.type.__asyncResolved&&a.component.subTree.component&&kt(e,t,n,a.component.subTree);return}let l=a.shapeFlag&4?Xr(a.component):a.el,u=o?null:l,{i:d,r:f}=e,p=t&&t.r,m=d.refs===i?d.refs={}:d.refs,h=d.setupState,g=r(h),v=h===i?s:e=>!Dt(m,e)&&_(g,e),b=(e,t)=>!(t&&Dt(m,t));if(p!=null&&p!==f){if(At(t),w(p))m[p]=null,v(p)&&(h[p]=null);else if(T(p)){let e=t;b(p,e.k)&&(p.value=null),e.k&&(m[e.k]=null)}}if(y(f))De(f,d,12,[u,m]);else{let t=w(f),r=T(f);if(t||r){let i=()=>{if(e.f){let n=t?v(f)?h[f]:m[f]:b(f)||!e.k?f.value:m[e.k];if(o)c(n)&&xe(n,l);else if(c(n))n.includes(l)||n.push(l);else if(t)m[f]=[l],v(f)&&(h[f]=m[f]);else{let t=[l];b(f,e.k)&&(f.value=t),e.k&&(m[e.k]=t)}}else t?(m[f]=u,v(f)&&(h[f]=u)):r&&(b(f,e.k)&&(f.value=u),e.k&&(m[e.k]=u))};if(u){let t=()=>{i(),Ot.delete(e)};t.id=-1,Ot.set(e,t),B(t,n)}else At(e),i()}}}function At(e){let t=Ot.get(e);t&&(t.flags|=8,Ot.delete(e))}var jt=e=>e.nodeType===8;o().requestIdleCallback,o().cancelIdleCallback;function Mt(e,t){if(jt(e)&&e.data===`[`){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(jt(r)){if(r.data===`]`){if(--n===0)break}else r.data===`[`&&n++}r=r.nextSibling}}else t(e)}var R=e=>!!e.type.__asyncLoader;function Nt(e){y(e)&&(e={loader:e});let{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:a,timeout:o,suspensible:s=!0,onError:c}=e,l=null,u,d=0,f=()=>(d++,l=null,p()),p=()=>{let e;return l||(e=l=t().catch(e=>{if(e=e instanceof Error?e:Error(String(e)),c)return new Promise((t,n)=>{c(e,()=>t(f()),()=>n(e),d+1)});throw e}).then(t=>e!==l&&l?l:(t&&(t.__esModule||t[Symbol.toStringTag]===`Module`)&&(t=t.default),u=t,t)))};return wt({name:`AsyncComponentWrapper`,__asyncLoader:p,__asyncHydrate(e,t,n){let r=e.isConnected,i=!1;(t.bu||=[]).push(()=>i=!0);let o=()=>{i||!e.parentNode||r&&!e.isConnected||n()},s=a?()=>{let n=a(o,t=>Mt(e,t));n&&(t.bum||=[]).push(n)}:o;u?s():p().then(()=>!t.isUnmounted&&s())},get __asyncResolved(){return u},setup(){let e=$;if(Et(e),u)return()=>Pt(u,e);let t=t=>{l=null,D(t,e,13,!r)};if(s&&e.suspense||Ur)return p().then(t=>()=>Pt(t,e)).catch(e=>(t(e),()=>r?J(r,{error:e}):null));let a=Se(!1),c=Se(),d=Se(!!i),f,m;return Zt(()=>{f!=null&&clearTimeout(f),m!=null&&clearTimeout(m)}),i&&(m=setTimeout(()=>{e.isUnmounted||(d.value=!1)},i)),o!=null&&(f=setTimeout(()=>{if(!e.isUnmounted&&!a.value&&!c.value){let e=Error(`Async component timed out after ${o}ms.`);t(e),c.value=e}},o)),p().then(()=>{e.isUnmounted||(a.value=!0,e.parent&&Ft(e.parent.vnode)&&e.parent.update())}).catch(n=>{if(e.isUnmounted){l=null;return}t(n),c.value=n}),()=>{if(a.value&&u)return Pt(u,e);if(c.value&&r)return J(r,{error:c.value});if(n&&!d.value)return Pt(n,e)}}})}function Pt(e,t){let{ref:n,props:r,children:i,ce:a}=t.vnode,o=J(e,r,i);return o.ref=n,o.ce=a,delete t.vnode.ce,o}var Ft=e=>e.type.__isKeepAlive,It={name:`KeepAlive`,__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){let n=Lr(),r=n.ctx;if(!r.renderer)return()=>{let e=t.default&&t.default();return e&&e.length===1?e[0]:e};let i=new Map,a=new Set,o=null,s=n.suspense,{renderer:{p:c,m:l,um:u,o:{createElement:d}}}=r,f=d(`div`);r.activate=(e,t,n,r,i)=>{let a=e.component;l(e,t,n,0,s),c(a.vnode,e,t,n,a,s,r,e.slotScopeIds,i),B(()=>{a.isDeactivated=!1,a.a&&he(a.a);let t=e.props&&e.props.onVnodeMounted;t&&Q(t,a.parent,e)},s)},r.deactivate=e=>{let t=e.component;tr(t.m),tr(t.a),l(e,f,null,1,s),B(()=>{t.da&&he(t.da);let n=e.props&&e.props.onVnodeUnmounted;n&&Q(n,t.parent,e),t.isDeactivated=!0},s)};function p(e){Ht(e),u(e,n,s,!0)}function m(e){i.forEach((t,n)=>{let r=Zr(R(t)?t.type.__asyncResolved||{}:t.type);r&&!e(r)&&h(n)})}function h(e){let t=i.get(e);t&&(!o||!q(t,o))?p(t):o&&Ht(o),i.delete(e),a.delete(e)}Qe(()=>[e.include,e.exclude],([e,t])=>{e&&m(t=>Lt(e,t)),t&&m(e=>!Lt(t,e))},{flush:`post`,deep:!0});let g=null,_=()=>{g!=null&&(rr(n.subTree.type)?B(()=>{let e=Ut(n.subTree);e.component&&i.set(g,e)},n.subTree.suspense):i.set(g,Ut(n.subTree)))};return qt(_),Yt(_),Xt(()=>{i.forEach(e=>{let{subTree:t,suspense:r}=n,i=Ut(t);if(e.type===i.type&&e.key===i.key){Ht(i);let e=i.component.da;e&&B(e,r);return}p(e)})}),()=>{if(g=null,!t.default)return o=null;let n=t.default(),r=n[0];if(n.length>1)return o=null,n;if(!K(r)||!(r.shapeFlag&4)&&!(r.shapeFlag&128))return o=null,r;let s=Ut(r);if(s.type===U)return o=null,s;let c=s.type,l=Zr(R(s)?s.type.__asyncResolved||{}:c),{include:u,exclude:d,max:f}=e;if(u&&(!l||!Lt(u,l))||d&&l&&Lt(d,l))return s.shapeFlag&=-257,o=s,r;let p=s.key==null?c:s.key,m=i.get(p);return s.el&&(s=Y(s),r.shapeFlag&128&&(r.ssContent=s)),g=p,m?(s.el=m.el,s.component=m.component,s.transition&&L(s,s.transition),s.shapeFlag|=512,a.delete(p),a.add(p)):(a.add(p),f&&a.size>parseInt(f,10)&&h(a.values().next().value)),s.shapeFlag|=256,o=s,rr(r.type)?r:s}}};function Lt(e,t){return c(e)?e.some(e=>Lt(e,t)):w(e)?e.split(`,`).includes(t):te(e)?(e.lastIndex=0,e.test(t)):!1}function Rt(e,t){Bt(e,`a`,t)}function zt(e,t){Bt(e,`da`,t)}function Bt(e,t,n=$){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(Wt(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Ft(e.parent.vnode)&&Vt(r,t,n,e),e=e.parent}}function Vt(e,t,n,r){let i=Wt(t,e,r,!0);Zt(()=>{xe(r[t],i)},n)}function Ht(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Ut(e){return e.shapeFlag&128?e.ssContent:e}function Wt(e,t,n=$,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{de();let i=Br(n),a=E(t,n,e,r);return i(),Te(),a};return r?i.unshift(a):i.push(a),a}}var Gt=e=>(t,n=$)=>{(!Ur||e===`sp`)&&Wt(e,(...e)=>t(...e),n)},Kt=Gt(`bm`),qt=Gt(`m`),Jt=Gt(`bu`),Yt=Gt(`u`),Xt=Gt(`bum`),Zt=Gt(`um`),Qt=`components`;function $t(e,t){return nn(Qt,e,!0,t)||e}var en=Symbol.for(`v-ndc`);function tn(e){return w(e)?nn(Qt,e,!1)||e:e||en}function nn(e,t,n=!0,r=!1){let i=j||$;if(i){let n=i.type;if(e===Qt){let e=Zr(n,!1);if(e&&(e===t||e===p(t)||e===Ee(p(t))))return n}let a=rn(i[e]||n[e],t)||rn(i.appContext[e],t);return!a&&r?n:a}}function rn(e,t){return e&&(e[t]||e[p(t)]||e[Ee(p(t))])}function an(e,t,n,r){let i,a=n&&n[r],o=c(e);if(o||w(e)){let n=o&&C(e),r=!1,s=!1;n&&(r=!ee(e),s=le(e),e=we(e)),i=Array(e.length);for(let n=0,o=e.length;n<o;n++)i[n]=t(r?s?m(Ce(e[n])):Ce(e[n]):e[n],n,void 0,a&&a[n])}else if(typeof e==`number`){i=Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,a&&a[n])}else if(b(e)){if(e[Symbol.iterator])i=Array.from(e,(e,n)=>t(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;r<o;r++){let o=n[r];i[r]=t(e[o],o,r,a&&a[r])}}}else i=[];return n&&(n[r]=i),i}function on(e,t){for(let n=0;n<t.length;n++){let r=t[n];if(c(r))for(let t=0;t<r.length;t++)e[r[t].name]=r[t].fn;else r&&(e[r.name]=r.key?(...e)=>{let t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function sn(e,t,n,r,i,a){if(n??={},j.ce||j.parent&&R(j.parent)&&j.parent.ce){let e=a!=null&&n.key==null?g({},n,{key:a}):n,i=Object.keys(e).length>0;return t!=="default"&&(e.name=t),vr(),wr(H,null,[J(`slot`,e,r&&r())],i?-2:64)}let o=e[t];o&&o._c&&(o._d=!1);let s=W.length;vr();let c;try{let i=o&&cn(o(n)),s=n.key||a||i&&i.key;c=wr(H,{key:(s&&!oe(s)?s:`_${t}`)+(!i&&r?`_fb`:``)},i||(r?r():[]),i&&e._===1?64:-2)}catch(e){for(let e=W.length;e>s;e--)yr();throw e}finally{o&&o._c&&(o._d=!0)}return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+`-s`]),c}function cn(e){return e.some(e=>!K(e)||!(e.type===U||e.type===H&&!cn(e.children)))?e:null}var ln=e=>e?Hr(e)?Xr(e):ln(e.parent):null,un=g(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ln(e.parent),$root:e=>ln(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||=()=>{Fe(e.update)},$nextTick:e=>e.n||=Ne.bind(e.proxy),$watch:e=>l}),dn=(e,t)=>e!==i&&!e.__isScriptSetup&&_(e,t),fn={get({_:e},t){if(t===`__v_skip`)return!0;let{ctx:n,setupState:r,data:a,props:o,accessCache:s,type:c,appContext:l}=e;if(t[0]!==`$`){let e=s[t];if(e!==void 0)switch(e){case 1:return r[t];case 2:return a[t];case 4:return n[t];case 3:return o[t]}else if(dn(r,t))return s[t]=1,r[t];else if(_(o,t))return s[t]=3,o[t];else if(n!==i&&_(n,t))return s[t]=4,n[t];else s[t]=0}let u=un[t],d,f;if(u)return t===`$attrs`&&ce(e.attrs,`get`,``),u(e);if((d=c.__cssModules)&&(d=d[t]))return d;if(n!==i&&_(n,t))return s[t]=4,n[t];if(f=l.config.globalProperties,_(f,t))return f[t]},set({_:e},t,n){let{data:r,setupState:i,ctx:a}=e;return dn(i,t)?(i[t]=n,!0):_(e.props,t)||t[0]===`$`&&t.slice(1)in e?!1:(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,props:a,type:o}},s){let c;return!!(n[s]||dn(t,s)||_(a,s)||_(r,s)||_(un,s)||_(i.config.globalProperties,s)||(c=o.__cssModules)&&c[s])},defineProperty(e,t,n){return n.get==null?_(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}};function pn(e){return c(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function mn(e,t){return!e||!t?e||t:c(e)&&c(t)?e.concat(t):g({},pn(e),pn(t))}function hn(){return{app:null,config:{isNativeTag:s,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var gn=0;function _n(e,t){return function(n,r=null){y(n)||(n=g({},n)),r!=null&&!b(r)&&(r=null);let i=hn(),a=new WeakSet,o=[],s=!1,c=i.app={_uid:gn++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:ti,get config(){return i.config},set config(e){},use(e,...t){return a.has(e)||(e&&y(e.install)?(a.add(e),e.install(c,...t)):y(e)&&(a.add(e),e(c,...t))),c},mixin(e){return c},component(e,t){return t?(i.components[e]=t,c):i.components[e]},directive(e,t){return t?(i.directives[e]=t,c):i.directives[e]},mount(a,o,l){if(!s){let u=c._ceVNode||J(n,r);return u.appContext=i,l===!0?l=`svg`:l===!1&&(l=void 0),o&&t?t(u,a):e(u,a,l),s=!0,c._container=a,a.__vue_app__=c,Xr(u.component)}},onUnmount(e){o.push(e)},unmount(){s&&(E(o,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(e,t){return i.provides[e]=t,c},runWithContext(e){let t=z;z=c;try{return e()}finally{z=t}}};return c}}var z=null;function vn(e,t,n=i){let r=Lr(),o=p(t),s=a(t),c=yn(e,o),l=ae((a,c)=>{let l,u=i,d;return Ze(()=>{let t=e[o];h(l,t)&&(l=t,c())}),{get(){return a(),n.get?n.get(l):l},set(e){let a=n.set?n.set(e):e;if(!h(a,l)&&!(u!==i&&h(e,u)))return;let f=r.vnode.props,p=!!(f&&(t in f||o in f||s in f)&&(`onUpdate:${t}`in f||`onUpdate:${o}`in f||`onUpdate:${s}`in f));p||(l=e,c()),r.emit(`update:${t}`,a),h(e,u)&&(h(e,a)&&!h(a,d)||p&&u!==i&&!h(a,l))&&c(),u=e,d=a}}});return l[Symbol.iterator]=()=>{let e=0;return{next(){return e<2?{value:e++?c||i:l,done:!1}:{done:!0}}}},l}var yn=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${p(t)}Modifiers`]||e[`${a(t)}Modifiers`];function bn(e,t,...n){if(e.isUnmounted)return;let r=e.vnode.props||i,o=n,s=t.startsWith(`update:`),c=s&&yn(r,t.slice(7));c&&(c.trim&&(o=n.map(e=>w(e)?e.trim():e)),c.number&&(o=o.map(pe)));let l,u=r[l=re(t)]||r[l=re(p(t))];!u&&s&&(u=r[l=re(a(t))]),u&&E(u,e,6,o);let d=r[l+`Once`];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,E(d,e,6,o)}}function xn(e,t,n=!1){let r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={};return a?(c(a)?a.forEach(e=>o[e]=null):g(o,a),b(e)&&r.set(e,o),o):(b(e)&&r.set(e,null),null)}function Sn(e,t){return!e||!f(t)?!1:(t=t.slice(2),t=t===`Once`?t:t.replace(/Once$/,``),_(e,t[0].toLowerCase()+t.slice(1))||_(e,a(t))||_(e,t))}function Cn(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:o,attrs:s,emit:c,render:l,renderCache:u,props:d,data:f,setupState:p,ctx:m,inheritAttrs:h}=e,g=Ue(e),_,y;try{if(n.shapeFlag&4){let e=i||r,t=e;_=X(l.call(t,e,u,d,p,f,m)),y=s}else{let e=t;_=X(e.length>1?e(d,{attrs:s,slots:o,emit:c}):e(d,null)),y=t.props?s:Tn(s)}}catch(t){W.length=0,D(t,e,1),_=J(U)}let b=_;if(y&&h!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(v)&&(y=En(y,a)),b=Y(b,y,!1,!0))}return n.dirs&&(b=Y(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&L(tt(b.type)&&St(b)||b,n.transition),_=b,Ue(g),_}function wn(e,t=!0){let n;for(let t=0;t<e.length;t++){let r=e[t];if(K(r)){if(r.type!==U||r.children===`v-if`){if(n)return;n=r}}else return}return n}var Tn=e=>{let t;for(let n in e)(n===`class`||n===`style`||f(n))&&((t||={})[n]=e[n]);return t},En=(e,t)=>{let n={};for(let r in e)(!v(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Dn(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?On(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(kn(o,r,n)&&!Sn(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?!o||On(r,o,l):!!o;return!1}function On(e,t,n){let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){let a=r[i];if(kn(t,e,a)&&!Sn(n,a))return!0}return!1}function kn(e,t,n){let r=e[n],i=t[n];return n===`style`&&b(r)&&b(i)?!x(r,i):r!==i}function An({vnode:e,parent:t,suspense:n},r){for(;t;){let n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.suspense.vnode.el=n.el=r,e=n),n===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}var jn={},Mn=()=>Object.create(jn),Nn=e=>Object.getPrototypeOf(e)===jn;function Pn(e,t,n,r=!1){let i={},a=Mn();e.propsDefaults=Object.create(null),In(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);e.props=n?r?i:S(i):e.type.props?i:a,e.attrs=a}function Fn(e,t,n,i){let{props:o,attrs:s,vnode:{patchFlag:c}}=e,l=r(o),[u]=e.propsOptions,d=!1;if((i||c>0)&&!(c&16)){if(c&8){let n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let i=n[r];if(Sn(e.emitsOptions,i))continue;let a=t[i];if(u){if(_(s,i))a!==s[i]&&(s[i]=a,d=!0);else{let t=p(i);o[t]=Ln(u,l,t,a,e,!1)}}else a!==s[i]&&(s[i]=a,d=!0)}}}else{In(e,t,o,s)&&(d=!0);let r;for(let i in l)(!t||!_(t,i)&&((r=a(i))===i||!_(t,r)))&&(u?n&&(n[i]!==void 0||n[r]!==void 0)&&(o[i]=Ln(u,l,i,void 0,e,!0)):delete o[i]);if(s!==l)for(let e in s)(!t||!_(t,e))&&(delete s[e],d=!0)}d&&se(e.attrs,`set`,``)}function In(e,t,n,a){let[o,s]=e.propsOptions,c=!1,l;if(t)for(let r in t){if(be(r))continue;let i=t[r],u;o&&_(o,u=p(r))?!s||!s.includes(u)?n[u]=i:(l||={})[u]=i:Sn(e.emitsOptions,r)||(!(r in a)||i!==a[r])&&(a[r]=i,c=!0)}if(s){let t=r(n),a=l||i;for(let r=0;r<s.length;r++){let i=s[r];n[i]=Ln(o,t,i,a[i],e,!_(a,i))}}return c}function Ln(e,t,n,r,i,o){let s=e[n];if(s!=null){let e=_(s,`default`);if(e&&r===void 0){let e=s.default;if(s.type!==Function&&!s.skipFactory&&y(e)){let{propsDefaults:a}=i;if(n in a)r=a[n];else{let o=Br(i);r=a[n]=e.call(null,t),o()}}else r=e;i.ce&&i.ce._setProp(n,r)}s[0]&&(o&&!e?r=!1:s[1]&&(r===``||r===a(n))&&(r=!0))}return r}function Rn(e,t,n=!1){let r=t.propsCache,a=r.get(e);if(a)return a;let o=e.props,s={},l=[];if(!o)return b(e)&&r.set(e,d),d;if(c(o))for(let e=0;e<o.length;e++){let t=p(o[e]);zn(t)&&(s[t]=i)}else if(o)for(let e in o){let t=p(e);if(zn(t)){let n=o[e],r=s[t]=c(n)||y(n)?{type:n}:g({},n),i=r.type,a=!1,u=!0;if(c(i))for(let e=0;e<i.length;++e){let t=i[e],n=y(t)&&t.name;if(n===`Boolean`){a=!0;break}n===`String`&&(u=!1)}else a=y(i)&&i.name===`Boolean`;r[0]=a,r[1]=u,(a||_(r,`default`))&&l.push(t)}}let u=[s,l];return b(e)&&r.set(e,u),u}function zn(e){return e[0]!==`$`&&!be(e)}var Bn=e=>e===`_`||e===`_ctx`||e===`$stable`,Vn=e=>c(e)?e.map(X):[X(e)],Hn=(e,t,n)=>{if(t._n)return t;let r=We((...e)=>Vn(t(...e)),n);return r._c=!1,r},Un=(e,t,n)=>{let r=e._ctx;for(let n in e){if(Bn(n))continue;let i=e[n];if(y(i))t[n]=Hn(n,i,r);else if(i!=null){let e=Vn(i);t[n]=()=>e}}},Wn=(e,t)=>{let n=Vn(t);e.slots.default=()=>n},Gn=(e,t,n)=>{for(let r in t)(n||!Bn(r))&&(e[r]=t[r])},Kn=(e,t,r)=>{let i=e.slots=Mn();if(e.vnode.shapeFlag&32){let e=t._;e?(Gn(i,t,r),r&&n(i,`_`,e,!0)):Un(t,i)}else t&&Wn(e,t)},qn=(e,t,n)=>{let{vnode:r,slots:a}=e,o=!0,s=i;if(r.shapeFlag&32){let e=t._;e?n&&e===1?o=!1:Gn(a,t,n):(o=!t.$stable,Un(t,a)),s=t}else t&&(Wn(e,t),s={default:1});if(o)for(let e in a)!Bn(e)&&s[e]==null&&delete a[e]},B=pr;function Jn(e){return Yn(e)}function Yn(e,t){let n=o();n.__VUE__=!0;let{insert:r,remove:a,patchProp:s,createElement:c,createText:u,createComment:f,setText:p,setElementText:m,parentNode:h,nextSibling:g,setScopeId:_=l,insertStaticContent:v}=e,y=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!q(e,t)&&(r=Ee(e),T(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null),t.dynamicChildren&&e&&e.dynamicChildren&&e.dynamicChildren.hasOnce&&(t.dynamicChildren===d&&(t.dynamicChildren=[]),t.dynamicChildren.hasOnce=!0);let{type:l,ref:u,shapeFlag:f}=t;switch(l){case gr:b(e,t,n,r);break;case U:x(e,t,n,r);break;case _r:e??S(t,n,r,o);break;case H:ce(e,t,n,r,i,a,o,s,c);break;default:f&1?te(e,t,n,r,i,a,o,s,c):f&6?le(e,t,n,r,i,a,o,s,c):(f&64||f&128)&&l.process(e,t,n,r,i,a,o,s,c,D)}u!=null&&i?kt(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&kt(e.ref,null,a,e,!0)},b=(e,t,n,i)=>{if(e==null)r(t.el=u(t.children),n,i);else{let n=t.el=e.el;t.children!==e.children&&p(n,t.children)}},x=(e,t,n,i)=>{e==null?r(t.el=f(t.children||``),n,i):t.el=e.el},S=(e,t,n,r)=>{[e.el,e.anchor]=v(e.children,t,n,r,e.el,e.anchor)},C=({el:e,anchor:t},n,i)=>{let a;for(;e&&e!==t;)a=g(e),r(e,n,i),e=a;r(t,n,i)},ee=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=g(e),a(e),e=n;a(t)},te=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)ne(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),ae(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},ne=(e,t,n,i,a,o,l,u)=>{let d,f,{props:p,shapeFlag:h,transition:g,dirs:_}=e;if(d=e.el=c(e.type,o,p&&p.is,p),h&8?m(d,e.children):h&16&&ie(e.children,d,null,i,a,Xn(e,o),l,u),_&&M(e,null,i,`created`),re(d,e,e.scopeId,l,i),p){for(let e in p)e!==`value`&&!be(e)&&s(d,e,null,p[e],o,i);`value`in p&&s(d,`value`,null,p.value,o),(f=p.onVnodeBeforeMount)&&Q(f,i,e)}_&&M(e,null,i,`beforeMount`);let v=Zn(a,g);v&&g.beforeEnter(d),r(d,t,n),((f=p&&p.onVnodeMounted)||v||_)&&B(()=>{try{f&&Q(f,i,e),v&&g.enter(d),_&&M(e,null,i,`mounted`)}finally{}},a)},re=(e,t,n,r,i)=>{if(n&&_(e,n),r)for(let t=0;t<r.length;t++)_(e,r[t]);if(i){let n=i.subTree;if(t===n||rr(n.type)&&(n.ssContent===t||n.ssFallback===t)){let t=i.vnode;re(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},ie=(e,t,n,r,i,a,o,s,c=0)=>{for(let l=c;l<e.length;l++){let c=e[l]=s?Z(e[l]):X(e[l]);y(null,c,t,n,r,i,a,o,s)}},ae=(e,t,n,r,a,o,c)=>{let l=t.el=e.el,{patchFlag:u,dynamicChildren:d,dirs:f}=t;u|=e.patchFlag&16;let p=e.props||i,h=t.props||i,g;if(n&&V(n,!1),(g=h.onVnodeBeforeUpdate)&&Q(g,n,t,e),f&&M(t,e,n,`beforeUpdate`),n&&V(n,!0),d&&(!e.dynamicChildren||e.dynamicChildren.length!==d.length)&&(u=0,c=!1,d=null),(p.innerHTML&&h.innerHTML==null||p.textContent&&h.textContent==null)&&m(l,``),d?oe(e.dynamicChildren,d,l,n,r,Xn(t,a),o):c||w(e,t,l,null,n,r,Xn(t,a),o,!1),u>0){if(u&16)se(l,p,h,n,a);else if(u&2&&p.class!==h.class&&s(l,`class`,null,h.class,a),u&4&&s(l,`style`,p.style,h.style,a),u&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let r=e[t],i=p[r],o=h[r];(o!==i||r===`value`)&&s(l,r,i,o,a,n)}}u&1&&e.children!==t.children&&m(l,t.children)}else!c&&d==null&&se(l,p,h,n,a);((g=h.onVnodeUpdated)||f)&&B(()=>{g&&Q(g,n,t,e),f&&M(t,e,n,`updated`)},r)},oe=(e,t,n,r,i,a,o)=>{for(let s=0;s<t.length;s++){let c=e[s],l=t[s],u=c.el&&(c.type===H||!q(c,l)||c.shapeFlag&198)?h(c.el):n;y(c,l,u,null,r,i,a,o,!0)}},se=(e,t,n,r,a)=>{if(t!==n){if(t!==i)for(let i in t)!be(i)&&!(i in n)&&s(e,i,t[i],null,a,r);for(let i in n){if(be(i))continue;let o=n[i],c=t[i];o!==c&&i!==`value`&&s(e,i,c,o,a,r)}`value`in n&&s(e,`value`,t.value,n.value,a)}},ce=(e,t,n,i,a,o,s,c,l)=>{let d=t.el=e?e.el:u(``),f=t.anchor=e?e.anchor:u(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(c=c?c.concat(h):h),e==null?(r(d,n,i),r(f,n,i),ie(t.children||[],n,f,a,o,s,c,l)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(oe(e.dynamicChildren,m,n,a,o,s,c),(t.key!=null||a&&t===a.subTree)&&Qn(e,t,!0)):w(e,t,n,f,a,o,s,c,l)},le=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):ue(t,n,r,i,a,o,c):pe(e,t,c)},ue=(e,t,n,r,i,a,o)=>{let s=e.component=Ir(e,r,i);if(Ft(e)&&(s.ctx.renderer=D),Wr(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,me,o),!e.el){let r=s.subTree=J(U);x(null,r,t,n),e.placeholder=r.el}}else me(s,e,t,n,i,a,o)},pe=(e,t,n)=>{let r=t.component=e.component;if(Dn(e,t,n)){if(r.asyncDep&&!r.asyncResolved){t.el=e.el,ge(r,t,n);return}r.next=t,r.update()}else t.el=e.el,r.vnode=t},me=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{let n=er(e);if(n){t&&(t.el=c.el,ge(e,t,o)),n.asyncDep.then(()=>{B(()=>{e.isUnmounted||l()},i)});return}}let u=t,d;V(e,!1),t?(t.el=c.el,ge(e,t,o)):t=c,n&&he(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&Q(d,s,t,c),V(e,!0);let f=Cn(e),p=e.subTree;e.subTree=f,y(p,f,h(p.el),Ee(p),e,i,a),t.el=f.el,u===null&&An(e,f.el),r&&B(r,i),(d=t.props&&t.props.onVnodeUpdated)&&B(()=>Q(d,s,t,c),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=R(t);if(V(e,!1),l&&he(l),!m&&(o=c&&c.onVnodeBeforeMount)&&Q(o,d,t),V(e,!0),s&&O){let t=()=>{e.subTree=Cn(e),O(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);let o=e.subTree=Cn(e);y(null,o,n,r,e,i,a),t.el=o.el}if(u&&B(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;B(()=>Q(o,d,e),i)}(t.shapeFlag&256||d&&R(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&B(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new fe(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>Fe(u),V(e,!0),l()},ge=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,Fn(e,t.props,r,n),qn(e,t.children,n),de(),Re(e),Te()},w=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:p}=t;if(f>0){if(f&128){ve(l,d,n,r,i,a,o,s,c);return}if(f&256){_e(l,d,n,r,i,a,o,s,c);return}}p&8?(u&16&&we(l,i,a),d!==l&&m(n,d)):u&16?p&16?ve(l,d,n,r,i,a,o,s,c):we(l,i,a,!0):(u&8&&m(n,``),p&16&&ie(d,n,r,i,a,o,s,c))},_e=(e,t,n,r,i,a,o,s,c)=>{e||=d,t||=d;let l=e.length,u=t.length,f=Math.min(l,u),p=0;for(;p<f;p++){let r=t[p]=c?Z(t[p]):X(t[p]);y(e[p],r,n,null,i,a,o,s,c)}l>u?we(e,i,a,!0,!1,f):ie(t,n,r,i,a,o,s,c,f)},ve=(e,t,n,r,i,a,o,s,c)=>{let l=0,u=t.length,f=e.length-1,p=u-1;for(;l<=f&&l<=p;){let r=e[l],u=t[l]=c?Z(t[l]):X(t[l]);if(q(r,u))y(r,u,n,null,i,a,o,s,c);else break;l++}for(;l<=f&&l<=p;){let r=e[f],l=t[p]=c?Z(t[p]):X(t[p]);if(q(r,l))y(r,l,n,null,i,a,o,s,c);else break;f--,p--}if(l>f){if(l<=p){let e=p+1,d=e<u?t[e].el:r;for(;l<=p;)y(null,t[l]=c?Z(t[l]):X(t[l]),n,d,i,a,o,s,c),l++}}else if(l>p)for(;l<=f;)T(e[l],i,a,!0),l++;else{let m=l,h=l,g=new Map;for(l=h;l<=p;l++){let e=t[l]=c?Z(t[l]):X(t[l]);e.key!=null&&g.set(e.key,l)}let _,v=0,b=p-h+1,x=!1,S=0,C=Array(b);for(l=0;l<b;l++)C[l]=0;for(l=m;l<=f;l++){let r=e[l];if(v>=b){T(r,i,a,!0);continue}let u;if(r.key!=null)u=g.get(r.key);else for(_=h;_<=p;_++)if(C[_-h]===0&&q(r,t[_])){u=_;break}u===void 0?T(r,i,a,!0):(C[u-h]=l+1,u>=S?S=u:x=!0,y(r,t[u],n,null,i,a,o,s,c),v++)}let ee=x?$n(C):d;for(_=ee.length-1,l=b-1;l>=0;l--){let e=h+l,d=t[e],f=t[e+1],p=e+1<u?f.el||nr(f):r;C[l]===0?y(null,d,n,p,i,a,o,s,c):x&&(_<0||l!==ee[_]?ye(d,n,p,2):_--)}}},ye=(e,t,n,i,o=null)=>{let{el:s,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){ye(e.component.subTree,t,n,i);return}if(d&128){e.suspense.move(t,n,i);return}if(d&64){c.move(e,t,n,D);return}if(c===H){r(s,t,n);for(let e=0;e<u.length;e++)ye(u[e],t,n,i);r(e.anchor,t,n);return}if(c===_r){C(e,t,n);return}if(i!==2&&d&1&&l){if(i===0)l.persisted&&!s[F]?r(s,t,n):(l.beforeEnter(s),r(s,t,n),B(()=>l.enter(s),o));else{let{leave:i,delayLeave:o,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?a(s):r(s,t,n)},d=()=>{let e=s._isLeaving||!!s[F];s._isLeaving&&s[F](!0),l.persisted&&!e?u():i(s,()=>{u(),c&&c()})};o?o(s,u,d):d()}}else r(s,t,n)},T=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:m}=e;if((d===-2||l&&l.hasOnce)&&(i=!1),s!=null&&(de(),kt(s,null,n,e,!0),Te()),p!=null&&(!e.ctx||e.ctx===t)&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!R(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&Q(_,t,e),u&6)Ce(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&M(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,D,r):l&&!l.hasOnce&&(a!==H||d>0&&d&64)?we(l,t,n,!1,!0):(a===H&&d&384||!i&&u&16)&&we(c,t,n),r&&xe(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&B(()=>{_&&Q(_,t,e),h&&M(e,null,t,`unmounted`),v&&(e.el=null)},n)},xe=e=>{let{type:t,el:n,anchor:r,transition:i}=e;if(t===H){Se(n,r);return}if(t===_r){ee(e),i&&!i.persisted&&i.afterLeave&&i.afterLeave();return}let o=()=>{a(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(e.shapeFlag&1&&i&&!i.persisted){let{leave:t,delayLeave:r}=i,a=()=>t(n,o);r?r(e.el,o,a):a()}else o()},Se=(e,t)=>{let n;for(;e!==t;)n=g(e),a(e),e=n;a(t)},Ce=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;tr(c),tr(l),r&&he(r),i.stop(),a?(a.flags|=8,T(o,e,t,n)):e.vnode.el&&o&&(o.transition=e.vnode.transition,T(o,e,t,n)),s&&B(s,t),B(()=>{e.isUnmounted=!0},t)},we=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)T(e[o],t,n,r,i)},Ee=e=>{if(e.shapeFlag&6)return Ee(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=g(e.anchor||e.el),n=t&&t[et];return n?g(n):t},De=!1,E=(e,t,n)=>{let r;e==null?t._vnode&&(T(t._vnode,null,null,!0),r=t._vnode.component):y(t._vnode||null,e,t,null,null,null,n),t._vnode=e,De||=(De=!0,Re(r),ze(),!1)},D={p:y,um:T,m:ye,r:xe,mt:ue,mc:ie,pc:w,pbc:oe,n:Ee,o:e},Oe,O;return t&&([Oe,O]=t(D)),{render:E,hydrate:Oe,createApp:_n(E,Oe)}}function Xn({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function V({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Zn(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Qn(e,t,n=!1){let r=e.children,i=t.children;if(c(r)&&c(i))for(let e=0;e<r.length;e++){let t=r[e],a=i[e];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[e]=Z(i[e]),a.el=t.el),!n&&a.patchFlag!==-2&&Qn(t,a)),a.type===gr&&(a.patchFlag===-1&&(a=i[e]=Z(a)),a.el=t.el),a.type===U&&!a.el&&(a.el=t.el)}}function $n(e){let t=e.slice(),n=[0],r,i,a,o,s,c=e.length;for(r=0;r<c;r++){let c=e[r];if(c!==0){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(a=0,o=n.length-1;a<o;)s=a+o>>1,e[n[s]]<c?a=s+1:o=s;c<e[n[a]]&&(a>0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-->0;)n[a]=o,o=t[o];return n}function er(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:er(t)}function tr(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function nr(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?nr(t.subTree):null}var rr=e=>e.__isSuspense,ir=0,ar={name:`Suspense`,__isSuspense:!0,process(e,t,n,r,i,a,o,s,c,l){if(e==null)sr(t,n,r,i,a,o,s,c,l);else{if(a&&a.deps>0&&!e.suspense.isInFallback&&!a.isHydrating){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}cr(e,t,n,r,i,o,s,c,l)}},hydrate:ur,normalize:dr};function or(e,t){let n=e.props&&e.props[t];y(n)&&n()}function sr(e,t,n,r,i,a,o,s,c){let{p:l,o:{createElement:u}}=c,d=u(`div`),f=e.suspense=lr(e,i,r,t,d,n,a,o,s,c);l(null,f.pendingBranch=e.ssContent,d,null,r,f,a,o),f.deps>0?(or(e,`onPending`),or(e,`onFallback`),l(null,e.ssFallback,t,n,r,null,a,o),mr(f,e.ssFallback)):f.resolve(!1,!0)}function cr(e,t,n,r,i,a,o,s,{p:c,um:l,o:{createElement:u}}){let d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;let f=t.ssContent,p=t.ssFallback,{activeBranch:m,pendingBranch:h,isInFallback:g,isHydrating:_}=d;if(h)d.pendingBranch=f,q(h,f)?(d.deps++,c(h,f,_?n:d.hiddenContainer,null,i,d,a,o,s),d.deps--,d.deps<=0?d.resolve():g&&!_&&!d.isFallbackMountPending&&(c(m,p,n,r,i,null,a,o,s),mr(d,p))):(d.pendingId=ir++,_?(d.isHydrating=!1,d.activeBranch=h):l(h,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u(`div`),g?(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():d.isFallbackMountPending||(c(m,p,n,r,i,null,a,o,s),mr(d,p))):m&&q(m,f)?(c(m,f,n,r,i,d,a,o,s),d.resolve(!0)):(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0&&d.resolve()));else if(m&&q(m,f))c(m,f,n,r,i,d,a,o,s),mr(d,f);else if(or(t,`onPending`),d.pendingBranch=f,d.pendingId=f.shapeFlag&512?f.component.suspenseId:ir++,c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0)d.resolve();else{let{timeout:e,pendingId:t}=d;e>0?setTimeout(()=>{d.pendingId===t&&d.fallback(p)},e):e===0&&d.fallback(p)}}function lr(e,t,n,r,i,a,o,s,c,l,u=!1){let{p:d,m:f,um:p,n:m,o:{parentNode:h,remove:g}}=l,_,v=hr(e);v&&t&&t.pendingBranch&&(_=t.pendingId,t.deps++);let y=e.props?me(e.props.timeout):void 0,b=a,x={vnode:e,parent:t,parentComponent:n,namespace:o,container:r,hiddenContainer:i,deps:0,pendingId:ir++,timeout:typeof y==`number`?y:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){let{vnode:r,activeBranch:i,pendingBranch:o,pendingId:s,effects:c,parentComponent:l,container:u,isInFallback:d}=x,g=!1;if(x.isHydrating)x.isHydrating=!1;else if(!e){g=i&&o.transition&&o.transition.mode===`out-in`;let e=!1;g&&(i.transition.afterLeave=()=>{s===x.pendingId&&(f(o,u,a===b&&!e?m(i):a,0),Le(c),d&&r.ssFallback&&(r.ssFallback.el=null))}),i&&!x.isFallbackMountPending&&(h(i.el)===u&&(a=m(i),e=!0),p(i,l,x,!0),!g&&d&&r.ssFallback&&B(()=>r.ssFallback.el=null,x)),g||f(o,u,a,0)}x.isFallbackMountPending=!1,mr(x,o),x.pendingBranch=null,x.isInFallback=!1;let y=x.parent,S=!1;for(;y;){if(y.pendingBranch){for(let e=0;e<c.length;e++)y.effects.push(c[e]);S=!0;break}y=y.parent}!S&&!g&&Le(c),x.effects=[],v&&t&&t.pendingBranch&&_===t.pendingId&&(_=void 0,t.deps--,t.deps===0&&!n&&t.resolve()),or(r,`onResolve`)},fallback(e){if(!x.pendingBranch)return;let{vnode:t,activeBranch:n,parentComponent:r,container:i,namespace:a}=x;or(t,`onFallback`);let o=m(n),l=()=>{if(x.isFallbackMountPending=!1,!x.isInFallback)return;let e=x.vnode.ssFallback;d(null,e,i,o,r,null,a,s,c),mr(x,e)},u=e.transition&&e.transition.mode===`out-in`;u&&(x.isFallbackMountPending=!0,n.transition.afterLeave=l),x.isInFallback=!0,p(n,r,null,!0),u||l()},move(e,t,n){x.activeBranch&&f(x.activeBranch,e,t,n),x.container=e},next(){return x.activeBranch&&m(x.activeBranch)},registerDep(e,t,n){let r=!!x.pendingBranch;r&&x.deps++;let i=e.vnode.el;e.asyncDep.catch(t=>{D(t,e,0)}).then(a=>{if(e.isUnmounted||x.isUnmounted||x.pendingId!==e.suspenseId)return;if(Vr(),i&&!e.scope.active){r&&--x.deps===0&&x.resolve();return}e.asyncResolved=!0;let{vnode:s}=e;Kr(e,a,!1),i&&(s.el=i);let c=!i&&e.subTree.el;t(e,s,h(i||e.subTree.el),i?null:m(e.subTree),x,o,n),c&&(s.placeholder=null,g(c)),An(e,s.el),r&&--x.deps===0&&x.resolve()})},unmount(e,t){x.isUnmounted=!0,x.activeBranch&&p(x.activeBranch,n,e,t),x.pendingBranch&&p(x.pendingBranch,n,e,t)}};return x}function ur(e,t,n,r,i,a,o,s,c){let l=t.suspense=lr(t,r,n,e.parentNode,document.createElement(`div`),null,i,a,o,s,!0),u=c(e,l.pendingBranch=t.ssContent,n,l,a,o);return l.deps===0&&l.resolve(!1,!0),u}function dr(e){let{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=fr(r?n.default:n),e.ssFallback=r?fr(n.fallback):J(U)}function fr(e){let t;if(y(e)){let n=br&&e._c;n&&(e._d=!1,vr()),e=e(),n&&(e._d=!0,t=G,yr())}return c(e)&&(e=wn(e)),e=X(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function pr(e,t){t&&t.pendingBranch?c(e)?t.effects.push(...e):t.effects.push(e):Le(e)}function mr(e,t){e.activeBranch=t;let{vnode:n,parentComponent:r}=e,i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,An(r,i))}function hr(e){let t=e.props&&e.props.suspensible;return t!=null&&t!==!1}var H=Symbol.for(`v-fgt`),gr=Symbol.for(`v-txt`),U=Symbol.for(`v-cmt`),_r=Symbol.for(`v-stc`),W=[],G=null;function vr(e=!1){W.push(G=e?null:[])}function yr(){W.pop(),G=W[W.length-1]||null}var br=1;function xr(e,t=!1){br+=e,e<0&&G&&t&&(G.hasOnce=!0)}function Sr(e){return e.dynamicChildren=br>0?G||d:null,yr(),br>0&&G&&G.push(e),e}function Cr(e,t,n,r,i,a){return Sr(Dr(e,t,n,r,i,a,!0))}function wr(e,t,n,r,i){return Sr(J(e,t,n,r,i,!0))}function K(e){return e?e.__v_isVNode===!0:!1}function q(e,t){return e.type===t.type&&e.key===t.key}var Tr=({key:e})=>e??null,Er=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:w(e)||T(e)||y(e)?{i:j,r:e,k:t,f:!!n}:e);function Dr(e,t=null,n=null,r=0,i=null,a=e===H?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Tr(t),ref:t&&Er(t),scopeId:He,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:j};return s?(Mr(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=w(n)?8:16),br>0&&!o&&G&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&G.push(c),c}var J=Or;function Or(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===en)&&(e=U),K(e)){let r=Y(e,t,!0);return n&&Mr(r,n),br>0&&!a&&G&&(r.shapeFlag&6?G[G.indexOf(e)]=r:G.push(r)),r.patchFlag=-2,r}if(Qr(e)&&(e=e.__vccOpts),t){t=kr(t);let{class:e,style:n}=t;e&&!w(e)&&(t.class=ve(e)),b(n)&&(_e(n)&&!c(n)&&(n=g({},n)),t.style=ue(n))}let o=w(e)?1:rr(e)?128:tt(e)?64:b(e)?4:y(e)?2:0;return Dr(e,t,n,r,i,o,a,!0)}function kr(e){return e?_e(e)||Nn(e)?g({},e):e:null}function Y(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:l}=e,u=t?Nr(i||{},t):i,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Tr(u),ref:t&&t.ref?n&&a?c(a)?a.concat(Er(t)):[a,Er(t)]:Er(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==H?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Y(e.ssContent),ssFallback:e.ssFallback&&Y(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return l&&r&&L(d,l.clone(d)),d}function Ar(e=` `,t=0){return J(gr,null,e,t)}function jr(e=``,t=!1){return t?(vr(),wr(U,null,e)):J(U,null,e)}function X(e){return e==null||typeof e==`boolean`?J(U):c(e)?J(H,null,e.slice()):K(e)?Z(e):J(gr,null,String(e))}function Z(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Y(e)}function Mr(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(c(t))n=16;else if(typeof t==`object`){if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),Mr(e,n()),n._c&&(n._d=!0));return}{n=32;let r=t._;!r&&!Nn(t)?t._ctx=j:r===3&&j&&(j.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}}else if(y(t)){if(r&65){Mr(e,{default:t});return}t={default:t,_ctx:j},n=32}else t=String(t),r&64?(n=16,t=[Ar(t)]):n=8;e.children=t,e.shapeFlag|=n}function Nr(...e){let t={};for(let n=0;n<e.length;n++){let r=e[n];for(let e in r)if(e===`class`)t.class!==r.class&&(t.class=ve([t.class,r.class]));else if(e===`style`)t.style=ue([t.style,r.style]);else if(f(e)){let n=t[e],i=r[e];i&&n!==i&&!(c(n)&&n.includes(i))?t[e]=n?[].concat(n,i):i:i==null&&n==null&&!v(e)&&(t[e]=i)}else e!==``&&(t[e]=r[e])}return t}function Q(e,t,n,r=null){E(e,t,7,[n,r])}var Pr=hn(),Fr=0;function Ir(e,t,n){let r=e.type,a=(t?t.appContext:e.appContext)||Pr,o={uid:Fr++,vnode:e,type:r,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ye(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),ids:t?t.ids:[``,0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Rn(r,a),emitsOptions:xn(r,a),emit:null,emitted:null,propsDefaults:i,inheritAttrs:r.inheritAttrs,ctx:i,data:i,props:i,attrs:i,slots:i,refs:i,setupState:i,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=bn.bind(null,o),e.ce&&e.ce(o),o}var $=null,Lr=()=>$||j,Rr,zr;{let e=o(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};Rr=t(`__VUE_INSTANCE_SETTERS__`,e=>$=e),zr=t(`__VUE_SSR_SETTERS__`,e=>Ur=e)}var Br=e=>{let t=$;return Rr(e),e.scope.on(),()=>{e.scope.off(),Rr(t)}},Vr=()=>{$&&$.scope.off(),Rr(null)};function Hr(e){return e.vnode.shapeFlag&4}var Ur=!1;function Wr(e,t=!1,n=!1){t&&zr(t);let{props:r,children:i}=e.vnode,a=Hr(e);Pn(e,r,a,t),Kn(e,i,n||t);let o=a?Gr(e,t):void 0;return t&&zr(!1),o}function Gr(t,n){let r=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,fn);let{setup:i}=r;if(i){de();let r=t.setupContext=i.length>1?Yr(t):null,a=Br(t),o=De(i,t,0,[t.props,r]),s=e(o);if(Te(),a(),(s||t.sp)&&!R(t)&&Et(t),s){if(o.then(Vr,Vr),n)return o.then(e=>{zr(!0);try{Kr(t,e,n)}finally{zr(!1)}}).catch(e=>{D(e,t,0)});t.asyncDep=o}else Kr(t,o,n)}else qr(t,n)}function Kr(e,t,n){y(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:b(t)&&(e.setupState=ie(t)),qr(e,n)}function qr(e,t,n){let r=e.type;e.render||=r.render||l}var Jr={get(e,t){return ce(e,`get`,``),e[t]}};function Yr(e){return{attrs:new Proxy(e.attrs,Jr),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function Xr(e){return e.exposed?e.exposeProxy||=new Proxy(ie(ne(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in un)return un[n](e)},has(e,t){return t in e||t in un}}):e.proxy}function Zr(e,t=!0){return y(e)?e.displayName||e.name:e.name||t&&e.__name}function Qr(e){return y(e)&&`__vccOpts`in e}var $r=(e,t)=>ge(e,t,Ur);function ei(e,t,n){try{xr(-1);let r=arguments.length;return r===2?b(t)&&!c(t)?K(t)?J(e,null,[t]):J(e,t):J(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&K(n)&&(n=[n]),J(e,t,n))}finally{xr(1)}}var ti=`3.5.43`;export{Kt as A,sn as B,ei as C,Nr as D,mn as E,Zt as F,Tt as G,tn as H,Yt as I,Qe as J,vn as K,vr as L,Jt as M,zt as N,Ne as O,qt as P,Ke as R,kr as S,qe as T,bt as U,$t as V,L as W,Ge as X,We as Y,J as _,ar as a,Lr as b,E as c,wr as d,jr as f,Ar as g,on as h,It as i,Xt as j,Rt as k,$r as l,Jn as m,mt as n,lt as o,Cr as p,pt as q,H as r,gr as s,vt as t,Dr as u,Nt as v,Je as w,Ct as x,wt as y,an as z};
@@ -1 +1 @@
1
- import{n as e}from"./editor.api-P-eJRcVK.js";var t={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:`//`,blockComment:[`/*`,`*/`]},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:e.IndentAction.IndentOutdent,appendText:` * `}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:e.IndentAction.None,appendText:` * `}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:e.IndentAction.None,appendText:`* `}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:e.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`,notIn:[`string`]},{open:`'`,close:`'`,notIn:[`string`,`comment`]},{open:"`",close:"`",notIn:[`string`,`comment`]},{open:`/**`,close:` */`,notIn:[`string`]}],folding:{markers:{start:RegExp(`^\\s*//\\s*#?region\\b`),end:RegExp(`^\\s*//\\s*#?endregion\\b`)}}},n={defaultToken:`invalid`,tokenPostfix:`.ts`,keywords:`abstract.any.as.asserts.bigint.boolean.break.case.catch.class.continue.const.constructor.debugger.declare.default.delete.do.else.enum.export.extends.false.finally.for.from.function.get.if.implements.import.in.infer.instanceof.interface.is.keyof.let.module.namespace.never.new.null.number.object.out.package.private.protected.public.override.readonly.require.global.return.satisfies.set.static.string.super.switch.symbol.this.throw.true.try.type.typeof.undefined.unique.unknown.var.void.while.with.yield.async.await.of`.split(`.`),operators:`<=.>=.==.!=.===.!==.=>.+.-.**.*./.%.++.--.<<.</.>>.>>>.&.|.^.!.~.&&.||.??.?.:.=.+=.-=.*=.**=./=.%=.<<=.>>=.>>>=.&=.|=.^=.@`.split(`.`),symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,tokenizer:{root:[[/[{}]/,`delimiter.bracket`],{include:`common`}],common:[[/#?[a-z_$][\w$]*/,{cases:{"@keywords":`keyword`,"@default":`identifier`}}],[/[A-Z][\w\$]*/,`type.identifier`],{include:`@whitespace`},[/\/(?=([^\\\/]|\\.)+\/([dgimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,{token:`regexp`,bracket:`@open`,next:`@regexp`}],[/[()\[\]]/,`@brackets`],[/[<>](?!@symbols)/,`@brackets`],[/!(?=([^=]|$))/,`delimiter`],[/@symbols/,{cases:{"@operators":`delimiter`,"@default":``}}],[/(@digits)[eE]([\-+]?(@digits))?/,`number.float`],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,`number.float`],[/0[xX](@hexdigits)n?/,`number.hex`],[/0[oO]?(@octaldigits)n?/,`number.octal`],[/0[bB](@binarydigits)n?/,`number.binary`],[/(@digits)n?/,`number`],[/[;,.]/,`delimiter`],[/"([^"\\]|\\.)*$/,`string.invalid`],[/'([^'\\]|\\.)*$/,`string.invalid`],[/"/,`string`,`@string_double`],[/'/,`string`,`@string_single`],[/`/,`string`,`@string_backtick`]],whitespace:[[/[ \t\r\n]+/,``],[/\/\*\*(?!\/)/,`comment.doc`,`@jsdoc`],[/\/\*/,`comment`,`@comment`],[/\/\/.*$/,`comment`]],comment:[[/[^\/*]+/,`comment`],[/\*\//,`comment`,`@pop`],[/[\/*]/,`comment`]],jsdoc:[[/[^\/*]+/,`comment.doc`],[/\*\//,`comment.doc`,`@pop`],[/[\/*]/,`comment.doc`]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,[`regexp.escape.control`,`regexp.escape.control`,`regexp.escape.control`]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,[`regexp.escape.control`,{token:`regexp.escape.control`,next:`@regexrange`}]],[/(\()(\?:|\?=|\?!)/,[`regexp.escape.control`,`regexp.escape.control`]],[/[()]/,`regexp.escape.control`],[/@regexpctl/,`regexp.escape.control`],[/[^\\\/]/,`regexp`],[/@regexpesc/,`regexp.escape`],[/\\\./,`regexp.invalid`],[/(\/)([dgimsuy]*)/,[{token:`regexp`,bracket:`@close`,next:`@pop`},`keyword.other`]]],regexrange:[[/-/,`regexp.escape.control`],[/\^/,`regexp.invalid`],[/@regexpesc/,`regexp.escape`],[/[^\]]/,`regexp`],[/\]/,{token:`regexp.escape.control`,next:`@pop`,bracket:`@close`}]],string_double:[[/[^\\"]+/,`string`],[/@escapes/,`string.escape`],[/\\./,`string.escape.invalid`],[/"/,`string`,`@pop`]],string_single:[[/[^\\']+/,`string`],[/@escapes/,`string.escape`],[/\\./,`string.escape.invalid`],[/'/,`string`,`@pop`]],string_backtick:[[/\$\{/,{token:`delimiter.bracket`,next:`@bracketCounting`}],[/[^\\`$]+/,`string`],[/@escapes/,`string.escape`],[/\\./,`string.escape.invalid`],[/`/,`string`,`@pop`]],bracketCounting:[[/\{/,`delimiter.bracket`,`@bracketCounting`],[/\}/,`delimiter.bracket`,`@pop`],{include:`common`}]}};export{t as conf,n as language};
1
+ import{n as e}from"./editor.api-PENN0io6.js";var t={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:`//`,blockComment:[`/*`,`*/`]},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:e.IndentAction.IndentOutdent,appendText:` * `}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:e.IndentAction.None,appendText:` * `}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:e.IndentAction.None,appendText:`* `}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:e.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`,notIn:[`string`]},{open:`'`,close:`'`,notIn:[`string`,`comment`]},{open:"`",close:"`",notIn:[`string`,`comment`]},{open:`/**`,close:` */`,notIn:[`string`]}],folding:{markers:{start:RegExp(`^\\s*//\\s*#?region\\b`),end:RegExp(`^\\s*//\\s*#?endregion\\b`)}}},n={defaultToken:`invalid`,tokenPostfix:`.ts`,keywords:`abstract.any.as.asserts.bigint.boolean.break.case.catch.class.continue.const.constructor.debugger.declare.default.delete.do.else.enum.export.extends.false.finally.for.from.function.get.if.implements.import.in.infer.instanceof.interface.is.keyof.let.module.namespace.never.new.null.number.object.out.package.private.protected.public.override.readonly.require.global.return.satisfies.set.static.string.super.switch.symbol.this.throw.true.try.type.typeof.undefined.unique.unknown.var.void.while.with.yield.async.await.of`.split(`.`),operators:`<=.>=.==.!=.===.!==.=>.+.-.**.*./.%.++.--.<<.</.>>.>>>.&.|.^.!.~.&&.||.??.?.:.=.+=.-=.*=.**=./=.%=.<<=.>>=.>>>=.&=.|=.^=.@`.split(`.`),symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,tokenizer:{root:[[/[{}]/,`delimiter.bracket`],{include:`common`}],common:[[/#?[a-z_$][\w$]*/,{cases:{"@keywords":`keyword`,"@default":`identifier`}}],[/[A-Z][\w\$]*/,`type.identifier`],{include:`@whitespace`},[/\/(?=([^\\\/]|\\.)+\/([dgimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,{token:`regexp`,bracket:`@open`,next:`@regexp`}],[/[()\[\]]/,`@brackets`],[/[<>](?!@symbols)/,`@brackets`],[/!(?=([^=]|$))/,`delimiter`],[/@symbols/,{cases:{"@operators":`delimiter`,"@default":``}}],[/(@digits)[eE]([\-+]?(@digits))?/,`number.float`],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,`number.float`],[/0[xX](@hexdigits)n?/,`number.hex`],[/0[oO]?(@octaldigits)n?/,`number.octal`],[/0[bB](@binarydigits)n?/,`number.binary`],[/(@digits)n?/,`number`],[/[;,.]/,`delimiter`],[/"([^"\\]|\\.)*$/,`string.invalid`],[/'([^'\\]|\\.)*$/,`string.invalid`],[/"/,`string`,`@string_double`],[/'/,`string`,`@string_single`],[/`/,`string`,`@string_backtick`]],whitespace:[[/[ \t\r\n]+/,``],[/\/\*\*(?!\/)/,`comment.doc`,`@jsdoc`],[/\/\*/,`comment`,`@comment`],[/\/\/.*$/,`comment`]],comment:[[/[^\/*]+/,`comment`],[/\*\//,`comment`,`@pop`],[/[\/*]/,`comment`]],jsdoc:[[/[^\/*]+/,`comment.doc`],[/\*\//,`comment.doc`,`@pop`],[/[\/*]/,`comment.doc`]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,[`regexp.escape.control`,`regexp.escape.control`,`regexp.escape.control`]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,[`regexp.escape.control`,{token:`regexp.escape.control`,next:`@regexrange`}]],[/(\()(\?:|\?=|\?!)/,[`regexp.escape.control`,`regexp.escape.control`]],[/[()]/,`regexp.escape.control`],[/@regexpctl/,`regexp.escape.control`],[/[^\\\/]/,`regexp`],[/@regexpesc/,`regexp.escape`],[/\\\./,`regexp.invalid`],[/(\/)([dgimsuy]*)/,[{token:`regexp`,bracket:`@close`,next:`@pop`},`keyword.other`]]],regexrange:[[/-/,`regexp.escape.control`],[/\^/,`regexp.invalid`],[/@regexpesc/,`regexp.escape`],[/[^\]]/,`regexp`],[/\]/,{token:`regexp.escape.control`,next:`@pop`,bracket:`@close`}]],string_double:[[/[^\\"]+/,`string`],[/@escapes/,`string.escape`],[/\\./,`string.escape.invalid`],[/"/,`string`,`@pop`]],string_single:[[/[^\\']+/,`string`],[/@escapes/,`string.escape`],[/\\./,`string.escape.invalid`],[/'/,`string`,`@pop`]],string_backtick:[[/\$\{/,{token:`delimiter.bracket`,next:`@bracketCounting`}],[/[^\\`$]+/,`string`],[/@escapes/,`string.escape`],[/\\./,`string.escape.invalid`],[/`/,`string`,`@pop`]],bracketCounting:[[/\{/,`delimiter.bracket`,`@bracketCounting`],[/\}/,`delimiter.bracket`,`@pop`],{include:`common`}]}};export{t as conf,n as language};
@@ -1 +1 @@
1
- import{C as e,S as t}from"./reactivity.esm-bundler-Bo9anJjg.js";import{C as n,b as r,l as i}from"./runtime-core.esm-bundler-CNFKm4ij.js";import{A as a,O as o,S as s,b as c,et as l,y as u}from"./QBtn-DEdx_Y1V.js";import{a as d,i as f}from"./pinia-CTJ3OfP3.js";import{i as p,n as m}from"./private.use-form-Bk8ti264.js";function h(e,r){let a=t(null),o=i(()=>e.disable?null:n(`span`,{ref:a,class:`no-outline`,tabindex:-1}));function s(e){let t=r.value;e?.qAvoidFocus!==!0&&t?.getAttribute(`aria-hidden`)!==`true`&&(e?.type.indexOf(`key`)===0?document.activeElement!==t&&t?.contains(document.activeElement)===!0&&t.focus({preventScroll:!0}):a.value!==null&&(e===void 0||t?.contains(e.target)===!0)&&a.value.focus({preventScroll:!0}))}return{refocusTargetEl:o,refocusTarget:s}}var g=o({xs:30,sm:35,md:40,lg:50,xl:60}),_={...d,...a,...p,modelValue:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,toggleOrder:{type:String,validator:e=>e===`tf`||e===`ft`},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},v=[`update:modelValue`];function y(e){(e.keyCode===13||e.keyCode===32)&&l(e)}function b(a,o){let{props:d,slots:p,emit:_,proxy:v}=r(),b=u(),x=f(d,b),S=t(null),{refocusTargetEl:C,refocusTarget:w}=h(d,S),T=i(()=>d.val!==void 0&&Array.isArray(d.modelValue)),E=i(()=>{let t=e(d.val);return T.value?d.modelValue.findIndex(n=>e(n)===t):-1}),D=i(()=>T.value?E.value!==-1:e(d.modelValue)===e(d.trueValue)),O=i(()=>T.value?E.value===-1:e(d.modelValue)===e(d.falseValue)),k=i(()=>!D.value&&!O.value),A=i(()=>d.disable?-1:d.tabindex||0),j=i(()=>`q-${a} cursor-pointer no-outline row inline no-wrap items-center`+(d.disable?` disabled`:``)+(x()?` q-${a}--dark`:``)+(d.dense?` q-${a}--dense`:``)+(d.leftLabel?` reverse`:``)),M=i(()=>`q-${a}__inner relative-position non-selectable q-${a}__inner--${D.value?`truthy`:O.value?`falsy`:`indet`}${d.color!==void 0&&(d.keepColor||(a===`toggle`?D.value:!O.value))?` text-${d.color}`:``}`),N=m(()=>{let e={type:`checkbox`};return d.name!==void 0&&Object.assign(e,{".checked":D.value,"^checked":D.value?`checked`:void 0,name:d.name,value:T.value?d.val:d.trueValue}),e}),P=i(()=>{let e={tabindex:A.value,role:a===`toggle`?`switch`:`checkbox`,"aria-label":d.label,"aria-checked":k.value?a===`toggle`?`false`:`mixed`:D.value?`true`:`false`};return d.disable&&(e[`aria-disabled`]=`true`),e});function F(e){e!==void 0&&(l(e),w(e)),d.disable||_(`update:modelValue`,I(),e)}function I(){if(T.value){if(D.value){let e=[...d.modelValue];return e.splice(E.value,1),e}return[...d.modelValue,d.val]}if(D.value){if(d.toggleOrder!==`ft`||!d.toggleIndeterminate)return d.falseValue}else if(O.value){if(d.toggleOrder===`ft`||!d.toggleIndeterminate)return d.trueValue}else return d.toggleOrder===`ft`?d.falseValue:d.trueValue;return d.indeterminateValue}function L(e){(e.keyCode===13||e.keyCode===32)&&F(e)}let R=o(D,k);return Object.assign(v,{toggle:F}),()=>{let e=R();d.disable||N(e,`unshift`,` q-${a}__native absolute q-ma-none q-pa-none`);let t=[n(`div`,{class:M.value,style:g(d.size),"aria-hidden":`true`},e)];C.value!==null&&t.push(C.value);let r=d.label===void 0?s(p.default):c(p.default,[d.label]);return r!==void 0&&t.push(n(`div`,{class:`q-${a}__label q-anchor--skip`},r)),n(`div`,{ref:S,class:j.value,...P.value,onClick:F,onKeydown:y,onKeyup:L},t)}}export{h as a,g as i,v as n,_ as r,b as t};
1
+ import{C as e,S as t}from"./reactivity.esm-bundler-tuEvQ47f.js";import{C as n,b as r,l as i}from"./runtime-core.esm-bundler-DOiZcasU.js";import{C as a,b as o,j as s,k as c,tt as l,x as u}from"./QBtn-b_baQtAt.js";import{a as d,i as f}from"./pinia-BdFjQEqa.js";import{i as p,n as m}from"./private.use-form-vxvbh_VN.js";function h(e,r){let a=t(null),o=i(()=>e.disable?null:n(`span`,{ref:a,class:`no-outline`,tabindex:-1}));function s(e){let t=r.value;e?.qAvoidFocus!==!0&&t?.getAttribute(`aria-hidden`)!==`true`&&(e?.type.indexOf(`key`)===0?document.activeElement!==t&&t?.contains(document.activeElement)===!0&&t.focus({preventScroll:!0}):a.value!==null&&(e===void 0||t?.contains(e.target)===!0)&&a.value.focus({preventScroll:!0}))}return{refocusTargetEl:o,refocusTarget:s}}var g=c({xs:30,sm:35,md:40,lg:50,xl:60}),_={...d,...s,...p,modelValue:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,toggleOrder:{type:String,validator:e=>e===`tf`||e===`ft`},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},v=[`update:modelValue`];function y(e){(e.keyCode===13||e.keyCode===32)&&l(e)}function b(s,c){let{props:d,slots:p,emit:_,proxy:v}=r(),b=o(),x=f(d,b),S=t(null),{refocusTargetEl:C,refocusTarget:w}=h(d,S),T=i(()=>d.val!==void 0&&Array.isArray(d.modelValue)),E=i(()=>{let t=e(d.val);return T.value?d.modelValue.findIndex(n=>e(n)===t):-1}),D=i(()=>T.value?E.value!==-1:e(d.modelValue)===e(d.trueValue)),O=i(()=>T.value?E.value===-1:e(d.modelValue)===e(d.falseValue)),k=i(()=>!D.value&&!O.value),A=i(()=>d.disable?-1:d.tabindex||0),j=i(()=>`q-${s} cursor-pointer no-outline row inline no-wrap items-center`+(d.disable?` disabled`:``)+(x()?` q-${s}--dark`:``)+(d.dense?` q-${s}--dense`:``)+(d.leftLabel?` reverse`:``)),M=i(()=>`q-${s}__inner relative-position non-selectable q-${s}__inner--${D.value?`truthy`:O.value?`falsy`:`indet`}${d.color!==void 0&&(d.keepColor||(s===`toggle`?D.value:!O.value))?` text-${d.color}`:``}`),N=m(()=>{let e={type:`checkbox`};return d.name!==void 0&&Object.assign(e,{".checked":D.value,"^checked":D.value?`checked`:void 0,name:d.name,value:T.value?d.val:d.trueValue}),e}),P=i(()=>{let e={tabindex:A.value,role:s===`toggle`?`switch`:`checkbox`,"aria-label":d.label,"aria-checked":k.value?s===`toggle`?`false`:`mixed`:D.value?`true`:`false`};return d.disable&&(e[`aria-disabled`]=`true`),e});function F(e){e!==void 0&&(l(e),w(e)),d.disable||_(`update:modelValue`,I(),e)}function I(){if(T.value){if(D.value){let e=[...d.modelValue];return e.splice(E.value,1),e}return[...d.modelValue,d.val]}if(D.value){if(d.toggleOrder!==`ft`||!d.toggleIndeterminate)return d.falseValue}else if(O.value){if(d.toggleOrder===`ft`||!d.toggleIndeterminate)return d.trueValue}else return d.toggleOrder===`ft`?d.falseValue:d.trueValue;return d.indeterminateValue}function L(e){(e.keyCode===13||e.keyCode===32)&&F(e)}let R=c(D,k);return Object.assign(v,{toggle:F}),()=>{let e=R();d.disable||N(e,`unshift`,` q-${s}__native absolute q-ma-none q-pa-none`);let t=[n(`div`,{class:M.value,style:g(d.size),"aria-hidden":`true`},e)];C.value!==null&&t.push(C.value);let r=d.label===void 0?a(p.default):u(p.default,[d.label]);return r!==void 0&&t.push(n(`div`,{class:`q-${s}__label q-anchor--skip`},r)),n(`div`,{ref:S,class:j.value,...P.value,onClick:F,onKeydown:y,onKeyup:L},t)}}export{h as a,g as i,v as n,_ as r,b as t};
@@ -0,0 +1 @@
1
+ import{v as e}from"./reactivity.esm-bundler-tuEvQ47f.js";import{C as t,F as n,J as r,N as i,O as a,P as o,b as s,j as c,l,o as u}from"./runtime-core.esm-bundler-DOiZcasU.js";import{H as d,ct as f,g as p,m,nt as h,p as g,st as _,u as v,v as y,y as b}from"./QBtn-b_baQtAt.js";function x(){let t=e(!1),n=null,r=s();function a(){n!==null&&(clearTimeout(n),n=null,t.value=!1)}return r!==null&&(i(a),c(a)),{isTimeoutPending:t,removeTimeout:a,registerTimeout(e,i){r!==null&&b(r)||(a(),t.value=!0,n=setTimeout(()=>{n=null,t.value=!1,e()},i))}}}function S(e){let{registerTimeout:t,removeTimeout:n}=x(),r=null;return i(()=>{r?.()}),{registerTimeout:t,removeTimeout:n,registerTransitionEnd(n){r=()=>{r=null,n()},t(r,e.transitionDuration)}}}function C(){let e,t=s();function n(){e=void 0}return t!==null&&(i(n),c(n)),{removeTick:n,registerTick(n){e=n,a(()=>{e===n&&((t===null||!b(t))&&e(),e=void 0)})}}}var w={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},T=[`beforeShow`,`show`,`beforeHide`,`hide`];function E({showing:e,canShow:t,canHide:n,hideOnRouteChange:i,handleShow:c,handleHide:l,handleRouteChange:u,processOnMount:d}){let f=s(),{props:p,emit:m,proxy:h}=f,g;function _(t){e.value?x(t):v(t)}function v(e){if(p.disable||e?.qAnchorHandled===!0||t!==void 0&&!t(e))return;let n=p[`onUpdate:modelValue`]!==void 0;n&&(m(`update:modelValue`,!0),g=e,a(()=>{g===e&&(g=void 0)})),(p.modelValue===null||!n)&&b(e)}function b(t){e.value||(e.value=!0,m(`beforeShow`,t),c===void 0?m(`show`,t):c(t))}function x(e){if(p.disable||n!==void 0&&!n(e))return;let t=p[`onUpdate:modelValue`]!==void 0;t&&(m(`update:modelValue`,!1),g=e,a(()=>{g===e&&(g=void 0)})),(p.modelValue===null||!t)&&S(e)}function S(t){e.value&&(e.value=!1,m(`beforeHide`,t),l===void 0?m(`hide`,t):l(t))}function C(t){p.disable&&t?p[`onUpdate:modelValue`]!==void 0&&m(`update:modelValue`,!1):t===!0!==e.value&&(t?b:S)(g)}r(()=>p.modelValue,C),i!==void 0&&y(f)&&r(()=>h.$route.fullPath,()=>{i.value&&e.value&&(u?.(),x())}),d&&o(()=>{C(p.modelValue)});let w={show:v,hide:x,toggle:_};return Object.assign(h,w),w}var D={transitionShow:{type:String,default:`fade`},transitionHide:{type:String,default:`fade`},transitionDuration:{type:[String,Number],default:300}},O=new Map;function ee(e,t=()=>{},n=()=>{}){return{transitionProps:()=>{let r=e.transitionShow||t(),i=e.transitionHide||n(),a=`${r}|${i}`,o=O.get(a);if(o===void 0){O.size>200&&O.clear();let e=`q-transition--${r}`,t=`q-transition--${i}`;o={appear:!0,enterFromClass:`${e}-enter-from`,enterActiveClass:`${e}-enter-active`,enterToClass:`${e}-enter-to`,leaveFromClass:`${t}-leave-from`,leaveActiveClass:`${t}-leave-active`,leaveToClass:`${t}-leave-to`},O.set(a,o)}return o},transitionStyle:()=>`--q-transition-duration: ${e.transitionDuration}ms`}}var k=[];function A(e){return k.find(t=>t.contentEl!==null&&t.contentEl.contains(e))}function j(e,t){do{if(e.$options.name===`QMenu`){if(e.hide(t),e.$props.separateClosePopup)return p(e)}else if(e.__qPortal){let n=p(e);return n?.$options.name===`QPopupProxy`?(e.hide(t),n):e}e=p(e)}while(e!=null)}function te(e,t,n){for(;n!==0&&e!=null;){if(e.__qPortal){if(n--,e.$options.name===`QMenu`){e=j(e,t);continue}e.hide(t)}e=p(e)}}var M=[],N=[],P=!1;function ne(e){P=!0,e.focus({preventScroll:!0}),P=!1}function F(){return P}function I(e){N=N.filter(t=>t!==e)}function re(e){I(e),N.push(e)}function L(e){I(e),N.length===0&&M.length!==0&&(M.at(-1)(),M=[])}function ie(e){N.length===0?e():M.push(e)}function R(e){M=M.filter(t=>t!==e)}var z=h({name:`QPortal`,setup(e,{slots:t}){return()=>t.default()}});function B(e){for(e=e.parent;e!=null;){if(e.type.name===`QGlobalDialog`)return!0;if(e.type.name===`QDialog`||e.type.name===`QMenu`)return!1;e=e.parent}return!1}function V(e){let t=e.parent;for(;t!=null;){if(t.type.name===`QDialog`){let e=t.proxy?.__getAriaModalEl?.();if(e!=null)return e}t=t.parent}return null}function H(r,i,a,o){let s=e(!1),l=!1,d=null,p={},h=o===`dialog`&&B(r),_=o!==`tooltip`,v=!1;function y(e){r.vnode.el?.dispatchEvent(new CustomEvent(e,{bubbles:!0}))}function b(){v&&(v=!1,y(`popup-hide`))}function x(e,t){if(e){L(p),l=!1;return}if(l=!0,!s.value){if(!h&&d===null){let e=o===`menu`?V(r):null;d=g(!1,o,e),e!==null&&d.classList.add(`all-pointer-events`)}s.value=!0,k.push(r.proxy),re(p),_&&!t&&(v=!0,y(`popup-show`))}}function S(e){if(l=!1,b(),!e)return;L(p),s.value=!1;let t=k.indexOf(r.proxy);t!==-1&&k.splice(t,1),d!==null&&(m(d),d=null)}return c(b),n(()=>{S(!0)}),r.proxy.__qPortal=!0,f(r.proxy,`contentEl`,()=>i.value),{showPortal:x,hidePortal:S,portalIsActive:s,portalIsOpening:()=>l,renderPortal:()=>h?a():s.value?[t(u,{to:d},t(z,a))]:void 0}}var U=[],W;function G(e){e.keyCode===27&&(W=!0)}function K(){W&&=!1}function q(e){W&&d(e,27)&&(W=!1,U.at(-1)(e))}function J(e){window[e](`keydown`,G),window[e](`blur`,K),window[e](`keyup`,q),W=!1}function ae(e){U.push(e),U.length===1&&J(`addEventListener`)}function oe(e){let t=U.indexOf(e);t!==-1&&(U.splice(t,1),U.length===0&&J(`removeEventListener`))}var se=new Map,Y=[];function ce(e){Y.push(e)}function le(e){let t=Y.indexOf(e);t!==-1&&Y.splice(t,1)}function X(e){for(let[t,n]of se)if(n().contains(e)===!0)return t}function Z(e,t,n){if(e==null)return!1;let r=new Set;for(let i=X(t);i!==void 0&&!r.has(i);i=X(i)){if(n(e,i)===!0)return!0;r.add(i)}return!1}function ue(e,t){return Z(e,t,v)}function de(e,t){return e.contains(t)}function fe(e,t){return Z(e,t,de)}function pe(){if(typeof crypto>`u`)return()=>{throw Error(`[Quasar uid()] Secure RNG not available. Cannot generate collision-resistant UUID.`)};if(crypto.randomUUID)return()=>crypto.randomUUID();let e=Array.from({length:256},(e,t)=>(t+256).toString(16).slice(1)),t,n;return()=>{(t===void 0||n+16>4096)&&(n=0,t=new Uint8Array(4096),crypto.getRandomValues(t));let r=n;return n+=16,t[r+6]=t[r+6]&15|64,t[r+8]=t[r+8]&63|128,e[t[r]]+e[t[r+1]]+e[t[r+2]]+e[t[r+3]]+`-`+e[t[r+4]]+e[t[r+5]]+`-`+e[t[r+6]]+e[t[r+7]]+`-`+e[t[r+8]]+e[t[r+9]]+`-`+e[t[r+10]]+e[t[r+11]]+e[t[r+12]]+e[t[r+13]]+e[t[r+14]]+e[t[r+15]]}}var Q=pe();function me(e){return e??null}function $(e,t){return e??(t?`f_${Q()}`:null)}function he({getValue:t,required:n=!0}={}){if(_.value){let i=e(t===void 0?null:me(t()));return n&&i.value===null&&o(()=>{i.value=`f_${Q()}`}),t!==void 0&&r(t,e=>{i.value=$(e,n)}),i}return t===void 0?e(`f_${Q()}`):l(()=>$(t(),n))}export{C,w as S,x as T,k as _,ue as a,E as b,oe as c,F as d,ne as f,A as g,te as h,fe as i,H as l,j as m,Q as n,le as o,R as p,ce as r,ae as s,he as t,ie as u,ee as v,S as w,T as x,D as y};
@@ -0,0 +1 @@
1
+ import{l as e}from"./runtime-core.esm-bundler-DOiZcasU.js";import{b as t}from"./QBtn-b_baQtAt.js";function n(){let n=t();return{isMobile:e(()=>n.screen.lt.sm),isDrawerCollapsed:e(()=>n.screen.lt.md)}}export{n as t};
@@ -1 +1 @@
1
- import{F as e,P as t}from"./runtime-core.esm-bundler-CNFKm4ij.js";import{n}from"./pinia-CTJ3OfP3.js";var r=n(`search`,{state:()=>({query:``,includeArchived:!1,results:[],loading:!1,error:``,indexStatus:{state:`building`,processed:0,total:0},partial:!1,_abortController:null,_statusRequestToken:0,_requestToken:0}),actions:{async refreshIndexStatus(e){let t=++this._statusRequestToken;try{let n=await fetch(`/api/search/status`,{signal:e});if(!n.ok)throw Error(`HTTP ${n.status}`);let r=await n.json();if(e?.aborted||t!==this._statusRequestToken)return!1;let i=r.state!==this.indexStatus.state||r.processed!==this.indexStatus.processed;return this.indexStatus=r,i}catch(n){return!e?.aborted&&t===this._statusRequestToken&&(this.indexStatus={...this.indexStatus,state:`error`,error:n instanceof Error?n.message:String(n)}),!1}},async search(e=!1){this._abortController?.abort();let t=this.query.trim();if(!t){this._requestToken++,this.results=[],this.error=``,this.loading=!1;return}let n=++this._requestToken;this.loading=!e,this._abortController=new AbortController,this.error=``;try{let e=new URLSearchParams({q:t});this.includeArchived&&e.set(`includeArchived`,`true`);let r=await fetch(`/api/search?${e.toString()}`,{signal:this._abortController.signal});if(!r.ok){let e=`HTTP ${r.status}`;try{let t=await r.json();t?.error&&(e=t.error)}catch{}throw Error(e)}let i=await r.json();if(n!==this._requestToken)return;this.results=i,this.partial=r.headers.get(`X-Kobo-Search-Partial`)===`true`}catch(e){if(n!==this._requestToken)return;this.error=e instanceof Error?e.message:String(e),this.results=[]}finally{n===this._requestToken&&(this.loading=!1)}},cancel(){this._requestToken++,this._abortController?.abort(),this._abortController=null,this.loading=!1},clear(){this._abortController?.abort(),this.partial=!1,this._requestToken++,this.query=``,this.results=[],this.error=``,this.loading=!1}}});function i(n){let i=r(),a=new AbortController,o,s=!1,c=``;async function l(){if(await i.refreshIndexStatus(a.signal),s)return;let e=`${i.indexStatus.state}:${i.indexStatus.processed}`;e!==c&&(c=e,await n()),!s&&i.indexStatus.state===`building`&&(o=setTimeout(()=>void l(),1e3))}return t(()=>void l()),e(()=>{s=!0,a.abort(),clearTimeout(o)}),i}export{r as n,i as t};
1
+ import{F as e,P as t}from"./runtime-core.esm-bundler-DOiZcasU.js";import{n}from"./pinia-BdFjQEqa.js";var r=n(`search`,{state:()=>({query:``,includeArchived:!1,results:[],loading:!1,error:``,indexStatus:{state:`building`,processed:0,total:0},partial:!1,_abortController:null,_statusRequestToken:0,_requestToken:0}),actions:{async refreshIndexStatus(e){let t=++this._statusRequestToken;try{let n=await fetch(`/api/search/status`,{signal:e});if(!n.ok)throw Error(`HTTP ${n.status}`);let r=await n.json();if(e?.aborted||t!==this._statusRequestToken)return!1;let i=r.state!==this.indexStatus.state||r.processed!==this.indexStatus.processed;return this.indexStatus=r,i}catch(n){return!e?.aborted&&t===this._statusRequestToken&&(this.indexStatus={...this.indexStatus,state:`error`,error:n instanceof Error?n.message:String(n)}),!1}},async search(e=!1){this._abortController?.abort();let t=this.query.trim();if(!t){this._requestToken++,this.results=[],this.error=``,this.loading=!1;return}let n=++this._requestToken;this.loading=!e,this._abortController=new AbortController,this.error=``;try{let e=new URLSearchParams({q:t});this.includeArchived&&e.set(`includeArchived`,`true`);let r=await fetch(`/api/search?${e.toString()}`,{signal:this._abortController.signal});if(!r.ok){let e=`HTTP ${r.status}`;try{let t=await r.json();t?.error&&(e=t.error)}catch{}throw Error(e)}let i=await r.json();if(n!==this._requestToken)return;this.results=i,this.partial=r.headers.get(`X-Kobo-Search-Partial`)===`true`}catch(e){if(n!==this._requestToken)return;this.error=e instanceof Error?e.message:String(e),this.results=[]}finally{n===this._requestToken&&(this.loading=!1)}},cancel(){this._requestToken++,this._abortController?.abort(),this._abortController=null,this.loading=!1},clear(){this._abortController?.abort(),this.partial=!1,this._requestToken++,this.query=``,this.results=[],this.error=``,this.loading=!1}}});function i(n){let i=r(),a=new AbortController,o,s=!1,c=``;async function l(){if(await i.refreshIndexStatus(a.signal),s)return;let e=`${i.indexStatus.state}:${i.indexStatus.processed}`;e!==c&&(c=e,await n()),!s&&i.indexStatus.state===`building`&&(o=setTimeout(()=>void l(),1e3))}return t(()=>void l()),e(()=>{s=!0,a.abort(),clearTimeout(o)}),i}export{r as n,i as t};
@@ -1 +1 @@
1
- import{j as e}from"./runtime-core.esm-bundler-CNFKm4ij.js";var t=()=>{},n=`cubic-bezier(.25, .8, .50, 1)`,r=`calc-size(auto, size)`,i=[{height:`0px`},{height:r}],a=[{height:r},{height:`0px`}],o=typeof CSS<`u`&&CSS.supports(`height`,r)?s:c;function s(r,o=t){let s=null,c,l,u=null;function d(){u!==null&&(clearTimeout(u),u=null),s?.cancel(),s=null}function f(){d(),c?.(),c=null}function p(e,t){e.style.overflowY=null,f(),t!==l&&o(t)}function m(e,t,i,a){let o=r(),d=s!==null&&s.effect.target===e;if(s===null?l=i===`show`?`hide`:`show`:(d||c?.(),clearTimeout(u)),c=t,o<=0){p(e,i);return}d?s.reverse():(s?.cancel(),e.style.overflowY=`hidden`,s=e.animate(a,{duration:o,easing:n,fill:`forwards`})),s.onfinish=()=>{p(e,i)},u=setTimeout(s.onfinish,o*1.1)}function h(e,t){m(e,t,`show`,i)}function g(e,t){m(e,t,`hide`,a)}return e(()=>{s!==null&&f()}),{onEnter:h,onLeave:g}}function c(r,i=t){let a=!1,o,s,c=null,l,u;function d(){a=!1,c!==null&&(clearTimeout(c),c=null),s?.removeEventListener(`transitionend`,l),l=null}function f(){d(),o?.(),o=null}function p(e){s!==e&&o?.(),o=null,d()}function m(e,t,i){return t!==void 0&&(e.style.height=`${t}px`),e.style.transition=`height ${r()}ms ${n}`,a=!0,o=i,e.scrollHeight}function h(e,t){e.style.overflowY=null,e.style.height=null,e.style.transition=null,f(),t!==u&&i(t)}function g(e,t){let n=0,i=a,d=r();if(i?p(e):u=`hide`,s=e,d<=0){o=t,h(e,`show`);return}i?n=e.offsetHeight===e.scrollHeight?0:void 0:e.style.overflowY=`hidden`;let f=m(e,n,t);e.style.height=`${f}px`,l=t=>{(Object(t)!==t||t.target===e)&&h(e,`show`)},e.addEventListener(`transitionend`,l),c=setTimeout(l,d*1.1)}function _(e,t){let n,i=a,d=r();if(i?p(e):u=`show`,s=e,d<=0){o=t,h(e,`hide`);return}i===!1&&(e.style.overflowY=`hidden`,n=e.scrollHeight),m(e,n,t),e.style.height=0,l=t=>{(Object(t)!==t||t.target===e)&&h(e,`hide`)},e.addEventListener(`transitionend`,l),c=setTimeout(l,d*1.1)}return e(()=>{a&&f()}),{onEnter:g,onLeave:_}}export{o as t};
1
+ import{j as e}from"./runtime-core.esm-bundler-DOiZcasU.js";var t=()=>{},n=`cubic-bezier(.25, .8, .50, 1)`,r=`calc-size(auto, size)`,i=[{height:`0px`},{height:r}],a=[{height:r},{height:`0px`}],o=typeof CSS<`u`&&CSS.supports(`height`,r)?s:c;function s(r,o=t){let s=null,c,l,u=null;function d(){u!==null&&(clearTimeout(u),u=null),s?.cancel(),s=null}function f(){d(),c?.(),c=null}function p(e,t){e.style.overflowY=null,f(),t!==l&&o(t)}function m(e,t,i,a){let o=r(),d=s!==null&&s.effect.target===e;if(s===null?l=i===`show`?`hide`:`show`:(d||c?.(),clearTimeout(u)),c=t,o<=0){p(e,i);return}d?s.reverse():(s?.cancel(),e.style.overflowY=`hidden`,s=e.animate(a,{duration:o,easing:n,fill:`forwards`})),s.onfinish=()=>{p(e,i)},u=setTimeout(s.onfinish,o*1.1)}function h(e,t){m(e,t,`show`,i)}function g(e,t){m(e,t,`hide`,a)}return e(()=>{s!==null&&f()}),{onEnter:h,onLeave:g}}function c(r,i=t){let a=!1,o,s,c=null,l,u;function d(){a=!1,c!==null&&(clearTimeout(c),c=null),s?.removeEventListener(`transitionend`,l),l=null}function f(){d(),o?.(),o=null}function p(e){s!==e&&o?.(),o=null,d()}function m(e,t,i){return t!==void 0&&(e.style.height=`${t}px`),e.style.transition=`height ${r()}ms ${n}`,a=!0,o=i,e.scrollHeight}function h(e,t){e.style.overflowY=null,e.style.height=null,e.style.transition=null,f(),t!==u&&i(t)}function g(e,t){let n=0,i=a,d=r();if(i?p(e):u=`hide`,s=e,d<=0){o=t,h(e,`show`);return}i?n=e.offsetHeight===e.scrollHeight?0:void 0:e.style.overflowY=`hidden`;let f=m(e,n,t);e.style.height=`${f}px`,l=t=>{(Object(t)!==t||t.target===e)&&h(e,`show`)},e.addEventListener(`transitionend`,l),c=setTimeout(l,d*1.1)}function _(e,t){let n,i=a,d=r();if(i?p(e):u=`show`,s=e,d<=0){o=t,h(e,`hide`);return}i===!1&&(e.style.overflowY=`hidden`,n=e.scrollHeight),m(e,n,t),e.style.height=0,l=t=>{(Object(t)!==t||t.target===e)&&h(e,`hide`)},e.addEventListener(`transitionend`,l),c=setTimeout(l,d*1.1)}return e(()=>{a&&f()}),{onEnter:g,onLeave:_}}export{o as t};