ronin-skillforce 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/LICENSE +21 -0
- package/README.md +225 -2
- package/bin/cli.js +811 -0
- package/bin/commands/check.js +298 -0
- package/bin/commands/create.js +169 -0
- package/bin/commands/doctor.js +392 -0
- package/bin/commands/import.js +557 -0
- package/bin/commands/next.js +125 -0
- package/bin/commands/review.js +207 -0
- package/bin/commands/status.js +114 -0
- package/bin/commands/studio.js +497 -0
- package/bin/commands/trail.js +211 -0
- package/bin/commands/web.js +350 -0
- package/bin/course-reader.js +611 -0
- package/bin/node-version.js +60 -0
- package/bin/platforms/_shared.js +211 -0
- package/bin/platforms/claude.js +104 -0
- package/bin/platforms/cursor.js +49 -0
- package/bin/platforms/gemini.js +65 -0
- package/bin/platforms/opencode.js +95 -0
- package/bin/registry-helpers.js +504 -0
- package/bin/static-server.js +153 -0
- package/bin/studio-store.js +94 -0
- package/bin/sync-shared.sh +5 -0
- package/package.json +91 -4
- package/plugin.json +139 -0
- package/shared/SKILL.md +568 -0
- package/shared/agents/coach.md +225 -0
- package/shared/agents/navigator.md +215 -0
- package/shared/agents/professor.md +372 -0
- package/shared/agents/researcher.md +181 -0
- package/shared/agents/spotter.md +129 -0
- package/shared/commands/professor/archive.md +103 -0
- package/shared/commands/professor/capstone-review.md +79 -0
- package/shared/commands/professor/capstone.md +34 -0
- package/shared/commands/professor/discuss.md +18 -0
- package/shared/commands/professor/done.md +44 -0
- package/shared/commands/professor/export.md +69 -0
- package/shared/commands/professor/hint.md +108 -0
- package/shared/commands/professor/navigator.md +67 -0
- package/shared/commands/professor/new-topic.md +73 -0
- package/shared/commands/professor/next.md +174 -0
- package/shared/commands/professor/note.md +63 -0
- package/shared/commands/professor/onboard.md +95 -0
- package/shared/commands/professor/progress.md +46 -0
- package/shared/commands/professor/publish.md +93 -0
- package/shared/commands/professor/quiz.md +27 -0
- package/shared/commands/professor/recall.md +74 -0
- package/shared/commands/professor/review.md +43 -0
- package/shared/commands/professor/schedule.md +75 -0
- package/shared/commands/professor/skill-export.md +87 -0
- package/shared/commands/professor/spotter.md +76 -0
- package/shared/commands/professor/stuck.md +27 -0
- package/shared/commands/professor/switch.md +50 -0
- package/shared/commands/professor/syllabus.md +9 -0
- package/shared/commands/professor/template-export.md +91 -0
- package/shared/commands/professor/template-import.md +111 -0
- package/shared/commands/professor/worktrees.md +58 -0
- package/shared/hooks/pre-compact.js +232 -0
- package/studio/README.md +313 -0
- package/studio/dist/assets/BetaReportPanel-8NrDLiPm.js +1 -0
- package/studio/dist/assets/Capstone-Cv9kH6LY.js +6 -0
- package/studio/dist/assets/CodeWorkspace-BwCEINWo.js +2 -0
- package/studio/dist/assets/Course-BJ_hafUP.js +1 -0
- package/studio/dist/assets/Editor-CV0mNhlz.js +53 -0
- package/studio/dist/assets/Home-C1ry89ak.js +1 -0
- package/studio/dist/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/studio/dist/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/studio/dist/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/studio/dist/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/studio/dist/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/studio/dist/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/studio/dist/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/studio/dist/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/studio/dist/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/studio/dist/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/studio/dist/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/studio/dist/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/studio/dist/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/studio/dist/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/studio/dist/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/studio/dist/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/studio/dist/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/studio/dist/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/studio/dist/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/studio/dist/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/studio/dist/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/studio/dist/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/studio/dist/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/studio/dist/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/studio/dist/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/studio/dist/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/studio/dist/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/studio/dist/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/studio/dist/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/studio/dist/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/studio/dist/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/studio/dist/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/studio/dist/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/studio/dist/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/studio/dist/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/studio/dist/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/studio/dist/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/studio/dist/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/studio/dist/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/studio/dist/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/studio/dist/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/studio/dist/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/studio/dist/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/studio/dist/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/studio/dist/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/studio/dist/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/studio/dist/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/studio/dist/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/studio/dist/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/studio/dist/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/studio/dist/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/studio/dist/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/studio/dist/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/studio/dist/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/studio/dist/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/studio/dist/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/studio/dist/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/studio/dist/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/studio/dist/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/studio/dist/assets/Lesson-2e9TD9yL.js +2 -0
- package/studio/dist/assets/NewCourse-BZeOg2xn.js +952 -0
- package/studio/dist/assets/Progress-CRc_xEWC.js +1 -0
- package/studio/dist/assets/Review-6QEbHEfk.js +1 -0
- package/studio/dist/assets/Settings-NFnqVQui.js +1 -0
- package/studio/dist/assets/TutorPanel-DXQ6Z3BY.js +123 -0
- package/studio/dist/assets/abnfDiagram-WEYOIA3C-qeSjKlGM.js +1 -0
- package/studio/dist/assets/anthropic-D7NiQCUH.js +15 -0
- package/studio/dist/assets/arc-Y1ARJVZ4.js +1 -0
- package/studio/dist/assets/architecture-WOLXFQ4H-COG-m35l.js +1 -0
- package/studio/dist/assets/architectureDiagram-ZHVYKT53-VO7uKoeD.js +36 -0
- package/studio/dist/assets/array-BifhSqXX.js +1 -0
- package/studio/dist/assets/blockDiagram-RJAE7QA3-BGJF_qiL.js +140 -0
- package/studio/dist/assets/bridge-BTh0AeNX.js +1 -0
- package/studio/dist/assets/c4Diagram-XDPPPE54-C-S10RgU.js +38 -0
- package/studio/dist/assets/capstone-Amn6Hztq.js +135 -0
- package/studio/dist/assets/card-store-BrbrtX9w.js +1 -0
- package/studio/dist/assets/channel-SJiUQu_N.js +1 -0
- package/studio/dist/assets/chunk-2E7WHVMD-fv-iqTyC.js +88 -0
- package/studio/dist/assets/chunk-2Q5K7J3B-C1jixKkw.js +1 -0
- package/studio/dist/assets/chunk-4EMNKR2T-CY9IZrgv.js +1 -0
- package/studio/dist/assets/chunk-55XCU76K-DyTZz7v_.js +1 -0
- package/studio/dist/assets/chunk-5VM5RSS4-ZNzvKenW.js +15 -0
- package/studio/dist/assets/chunk-7S6XSTFO-BNMzTLRW.js +2 -0
- package/studio/dist/assets/chunk-AQDTSKZB-CEYANohH.js +72 -0
- package/studio/dist/assets/chunk-DSNLSHJZ-CDk5EXjH.js +129 -0
- package/studio/dist/assets/chunk-DUW6YSOI-Dgx8z5s3.js +1 -0
- package/studio/dist/assets/chunk-HAGFOTED-hNAi1zh_.js +62 -0
- package/studio/dist/assets/chunk-HNE4Q36P-COJnSYoZ.js +1 -0
- package/studio/dist/assets/chunk-J5ZVWO5B-oDCd-gWO.js +1 -0
- package/studio/dist/assets/chunk-JWPE2WC7-DVXcaiue.js +1 -0
- package/studio/dist/assets/chunk-NGNAAXSQ-C2Wy9Xmz.js +136 -0
- package/studio/dist/assets/chunk-NQOKRVIF-BU6KVxRr.js +213 -0
- package/studio/dist/assets/chunk-UHW7PFBP-DYvxL9JG.js +1 -0
- package/studio/dist/assets/chunk-VQ5W62QI-CuRfk65j.js +1 -0
- package/studio/dist/assets/chunk-WQQL4CDK-KaG7x-Mb.js +10 -0
- package/studio/dist/assets/chunk-XXDRQBXY-CnbRkih_.js +1 -0
- package/studio/dist/assets/chunk-Y2CYZVJY-DsF7k-Jl.js +1 -0
- package/studio/dist/assets/chunk-YZO67HFG-DbuqIZmk.js +1 -0
- package/studio/dist/assets/chunk-ZAUX2LTX-bk4ivUmc.js +1 -0
- package/studio/dist/assets/chunk-ZCHMQSOR-B_LElfwh.js +2 -0
- package/studio/dist/assets/classDiagram-v2-4MYWR3UA-DtCJ6H_X.js +217 -0
- package/studio/dist/assets/cose-bilkent-JH36ORCC-DMBAZFnj.js +1 -0
- package/studio/dist/assets/course-export-DpaOTT3a.js +1 -0
- package/studio/dist/assets/cynefin-EF2NZ3EQ-D9btHJvU.js +1 -0
- package/studio/dist/assets/cynefinDiagram-WF24UDRP-CsFJuv27.js +62 -0
- package/studio/dist/assets/cytoscape.esm-CHBj4VkZ.js +321 -0
- package/studio/dist/assets/dagre-NK4GIZVX-Cg1Duec7.js +4 -0
- package/studio/dist/assets/defaultLocale-BFoDCU3G.js +1 -0
- package/studio/dist/assets/diagram-CBK3MWTC-_KU2m5gd.js +24 -0
- package/studio/dist/assets/diagram-I5XIIV2D-5RaBrwUA.js +24 -0
- package/studio/dist/assets/diagram-ODIL2UCW-C0VKxoD3.js +30 -0
- package/studio/dist/assets/diagram-PFBEJUXE-BaHcZEP2.js +3 -0
- package/studio/dist/assets/diagram-RJA3I4VV-cwSAZ90p.js +41 -0
- package/studio/dist/assets/diagram-TYUNFSNR-BJImxCEN.js +200 -0
- package/studio/dist/assets/dist-CumnGVmJ.js +1 -0
- package/studio/dist/assets/ebnfDiagram-V4P3TTPT-OQQLRXcm.js +1 -0
- package/studio/dist/assets/elk-QONTBCTQ-BJGhQHxQ.js +27 -0
- package/studio/dist/assets/erDiagram-KYQIGQAA-D91EKSep.js +99 -0
- package/studio/dist/assets/error-BTdmRKoB.js +1 -0
- package/studio/dist/assets/errors-BZa_CNHL.js +1 -0
- package/studio/dist/assets/eventmodeling-K75KTNOO-DgdTRgnw.js +1 -0
- package/studio/dist/assets/fetch-local-DG3O3hmQ.js +4 -0
- package/studio/dist/assets/flowDiagram-IUGLLWBU-CVnJYMum.js +1 -0
- package/studio/dist/assets/ganttDiagram-R7GPNTJY-CSYLPWEI.js +292 -0
- package/studio/dist/assets/gitGraph-VSP46ZUC-D6GWaV9y.js +1 -0
- package/studio/dist/assets/gitGraphDiagram-PDYL7XHY-CaV31bvT.js +106 -0
- package/studio/dist/assets/graphlib-DS17s2tU.js +1 -0
- package/studio/dist/assets/index-CVenTTOY.css +2 -0
- package/studio/dist/assets/index-DioXTZVc.js +313 -0
- package/studio/dist/assets/info-OHQRW6UA-BN-x8GoN.js +1 -0
- package/studio/dist/assets/infoDiagram-MVDRKAX5-CIose_cy.js +2 -0
- package/studio/dist/assets/init-C-OQMol4.js +1 -0
- package/studio/dist/assets/ishikawaDiagram-HPEHV2GE-DCihSNBw.js +70 -0
- package/studio/dist/assets/journeyDiagram-BOSHW7O7-Bz3o3RIX.js +139 -0
- package/studio/dist/assets/js.worker-AD7DjksO.js +4 -0
- package/studio/dist/assets/kanban-definition-FNSA4HC5-BUyqvlFE.js +89 -0
- package/studio/dist/assets/katex-B_JcIwqj.js +257 -0
- package/studio/dist/assets/katex-BgsA2lO1.css +1 -0
- package/studio/dist/assets/line-B08T8KlK.js +1 -0
- package/studio/dist/assets/linear-C9iwaMOi.js +1 -0
- package/studio/dist/assets/mermaid-parser.core-BYwreSUy.js +7 -0
- package/studio/dist/assets/mermaid.core-DTO1oDmq.js +44 -0
- package/studio/dist/assets/mindmap-definition-6OY57UG3-BGLwKheY.js +98 -0
- package/studio/dist/assets/node.browser-BISniYn8.js +1 -0
- package/studio/dist/assets/node.browser-HQ5SKBOf.js +1 -0
- package/studio/dist/assets/ollama-De5w84tG.js +1 -0
- package/studio/dist/assets/openai-compatible-Joy1oK3L.js +1 -0
- package/studio/dist/assets/ordinal-BDEzSJ7C.js +1 -0
- package/studio/dist/assets/packet-JDAUHWVQ-CDIMjHS_.js +1 -0
- package/studio/dist/assets/path-fybaL0A-.js +1 -0
- package/studio/dist/assets/pegDiagram-ECIUJNBX-DWXm4mwS.js +1 -0
- package/studio/dist/assets/pie-XZMESJXO-CY3QQiKZ.js +1 -0
- package/studio/dist/assets/pieDiagram-GNMPY74T-M1aCnI7W.js +39 -0
- package/studio/dist/assets/python.worker-CzTrFdd9.js +24 -0
- package/studio/dist/assets/quadrantDiagram-D57K4MC3-BFFtO7U5.js +7 -0
- package/studio/dist/assets/radar-ABXABTNO-DT0W4_Xn.js +1 -0
- package/studio/dist/assets/railroad-I3PHUGI6-_VCpgZR5.js +1 -0
- package/studio/dist/assets/railroad-abnf-LNEFI6M7-DkSpQ5YY.js +1 -0
- package/studio/dist/assets/railroad-ebnf-DWYD2UWJ-BqWILdGb.js +1 -0
- package/studio/dist/assets/railroad-peg-JR7BVNR7-BB0bQL-Z.js +1 -0
- package/studio/dist/assets/railroadDiagram-Y72NRBL7-CjLKjIdJ.js +1 -0
- package/studio/dist/assets/react-B8SKf8RM.js +1 -0
- package/studio/dist/assets/rehype-katex-C-sKddsH.js +259 -0
- package/studio/dist/assets/remark-math-C-ox67hE.js +5 -0
- package/studio/dist/assets/requirementDiagram-EQYSW5RA-CnwzZqR8.js +84 -0
- package/studio/dist/assets/rolldown-runtime-COiEfhsA.js +1 -0
- package/studio/dist/assets/rough.esm-Dy-Kn_BL.js +1 -0
- package/studio/dist/assets/sankeyDiagram-SY24JHO5-CPDugTUl.js +40 -0
- package/studio/dist/assets/schemas-BOc2YsOP.js +55 -0
- package/studio/dist/assets/sequenceDiagram-BLEHNHQU-1dLfeU9Y.js +169 -0
- package/studio/dist/assets/settings-DhwuyNPU.js +1 -0
- package/studio/dist/assets/sizeCapture-INFHLROL-3uHXrFqA.js +1 -0
- package/studio/dist/assets/spec-nAnsSMkw.js +1 -0
- package/studio/dist/assets/sql-wasm-C1D_RJuy.wasm +0 -0
- package/studio/dist/assets/sql.worker-D7pBHOrq.js +4 -0
- package/studio/dist/assets/src-BWF7jMDv.js +1 -0
- package/studio/dist/assets/stateDiagram-v2-A6IESKWZ-DR7CmEjj.js +291 -0
- package/studio/dist/assets/swimlanes-B3ENRKFQ-BAWB9omQ.js +1 -0
- package/studio/dist/assets/swimlanesDiagram-AYQRV4AK-qeuHru16.js +8 -0
- package/studio/dist/assets/timeline-definition-JXYKGLGB-DNkj8z77.js +120 -0
- package/studio/dist/assets/treeView-D4JQ5SDB-BA-ouhMb.js +1 -0
- package/studio/dist/assets/treemap-SAJKECNS-BrrGxsAb.js +1 -0
- package/studio/dist/assets/useStream-rdsR6A7P.js +1 -0
- package/studio/dist/assets/usecaseDiagram-WPOLBNNX-BB3D0Dt_.js +328 -0
- package/studio/dist/assets/vennDiagram-Q3Y3IDCW-BrtqtKTE.js +34 -0
- package/studio/dist/assets/wardley-7MLQ67FV-BKkemDql.js +1 -0
- package/studio/dist/assets/wardleyDiagram-IVAIDKWA-DFnI3P5z.js +78 -0
- package/studio/dist/assets/xychartDiagram-4URNHDU4-Da0DZG_q.js +7 -0
- package/studio/dist/index.html +20 -0
- package/studio/dist/preview.html +22 -0
- package/studio/migrations/0001_init.sql +188 -0
- package/studio/migrations/0002_external_ids.sql +20 -0
- package/studio/migrations/0003_course_language.sql +12 -0
- package/studio/migrations/0004_capstone.sql +51 -0
- package/studio/migrations/0005_beta_loop.sql +73 -0
- package/studio/migrations/0006_interactive_exercises.sql +49 -0
- package/studio/src/lib/activity.js +92 -0
- package/studio/src/lib/ai/anthropic.js +109 -0
- package/studio/src/lib/ai/bridge.js +126 -0
- package/studio/src/lib/ai/catalog.js +160 -0
- package/studio/src/lib/ai/config.js +70 -0
- package/studio/src/lib/ai/errors.js +95 -0
- package/studio/src/lib/ai/fetch-local.js +104 -0
- package/studio/src/lib/ai/index.js +194 -0
- package/studio/src/lib/ai/ollama.js +136 -0
- package/studio/src/lib/ai/openai-compatible.js +101 -0
- package/studio/src/lib/ai/provider-utils.js +107 -0
- package/studio/src/lib/ai/sse.js +99 -0
- package/studio/src/lib/ai/status.js +92 -0
- package/studio/src/lib/ai/useStream.js +109 -0
- package/studio/src/lib/beta/metrics.js +147 -0
- package/studio/src/lib/beta/report.js +134 -0
- package/studio/src/lib/capstone-evidence.js +758 -0
- package/studio/src/lib/capstone.js +663 -0
- package/studio/src/lib/chat-store.js +128 -0
- package/studio/src/lib/course-export.js +38 -0
- package/studio/src/lib/course.js +187 -0
- package/studio/src/lib/exercises/journal-entry.js +259 -0
- package/studio/src/lib/exercises/placement.js +31 -0
- package/studio/src/lib/exercises/registry.js +19 -0
- package/studio/src/lib/exercises/spec.js +129 -0
- package/studio/src/lib/i18n/detect.js +162 -0
- package/studio/src/lib/i18n/en/app.json +23 -0
- package/studio/src/lib/i18n/en/betaReport.json +55 -0
- package/studio/src/lib/i18n/en/capstone.json +57 -0
- package/studio/src/lib/i18n/en/common.json +25 -0
- package/studio/src/lib/i18n/en/course.json +27 -0
- package/studio/src/lib/i18n/en/data.json +35 -0
- package/studio/src/lib/i18n/en/durability.json +5 -0
- package/studio/src/lib/i18n/en/errors.json +20 -0
- package/studio/src/lib/i18n/en/exercises.json +55 -0
- package/studio/src/lib/i18n/en/externalEvidence.json +76 -0
- package/studio/src/lib/i18n/en/home.json +18 -0
- package/studio/src/lib/i18n/en/lesson.json +33 -0
- package/studio/src/lib/i18n/en/nav.json +8 -0
- package/studio/src/lib/i18n/en/newCourse.json +51 -0
- package/studio/src/lib/i18n/en/onboarding.json +35 -0
- package/studio/src/lib/i18n/en/playwrightTemplate.json +20 -0
- package/studio/src/lib/i18n/en/practice.json +79 -0
- package/studio/src/lib/i18n/en/provider.json +27 -0
- package/studio/src/lib/i18n/en/providerMeta.json +26 -0
- package/studio/src/lib/i18n/en/reflection.json +17 -0
- package/studio/src/lib/i18n/en/revision.json +52 -0
- package/studio/src/lib/i18n/en/runnerNotice.json +14 -0
- package/studio/src/lib/i18n/en/settings.json +12 -0
- package/studio/src/lib/i18n/en/storage.json +49 -0
- package/studio/src/lib/i18n/en/tutor.json +39 -0
- package/studio/src/lib/i18n/en/workspace.json +50 -0
- package/studio/src/lib/i18n/index.js +144 -0
- package/studio/src/lib/i18n/languages.js +93 -0
- package/studio/src/lib/i18n/vi/app.json +23 -0
- package/studio/src/lib/i18n/vi/betaReport.json +55 -0
- package/studio/src/lib/i18n/vi/capstone.json +57 -0
- package/studio/src/lib/i18n/vi/common.json +25 -0
- package/studio/src/lib/i18n/vi/course.json +27 -0
- package/studio/src/lib/i18n/vi/data.json +35 -0
- package/studio/src/lib/i18n/vi/durability.json +5 -0
- package/studio/src/lib/i18n/vi/errors.json +20 -0
- package/studio/src/lib/i18n/vi/exercises.json +55 -0
- package/studio/src/lib/i18n/vi/externalEvidence.json +76 -0
- package/studio/src/lib/i18n/vi/home.json +18 -0
- package/studio/src/lib/i18n/vi/lesson.json +33 -0
- package/studio/src/lib/i18n/vi/nav.json +8 -0
- package/studio/src/lib/i18n/vi/newCourse.json +51 -0
- package/studio/src/lib/i18n/vi/onboarding.json +35 -0
- package/studio/src/lib/i18n/vi/playwrightTemplate.json +20 -0
- package/studio/src/lib/i18n/vi/practice.json +79 -0
- package/studio/src/lib/i18n/vi/provider.json +27 -0
- package/studio/src/lib/i18n/vi/providerMeta.json +26 -0
- package/studio/src/lib/i18n/vi/reflection.json +17 -0
- package/studio/src/lib/i18n/vi/revision.json +52 -0
- package/studio/src/lib/i18n/vi/runnerNotice.json +14 -0
- package/studio/src/lib/i18n/vi/settings.json +12 -0
- package/studio/src/lib/i18n/vi/storage.json +49 -0
- package/studio/src/lib/i18n/vi/tutor.json +39 -0
- package/studio/src/lib/i18n/vi/workspace.json +50 -0
- package/studio/src/lib/ids.js +10 -0
- package/studio/src/lib/json.js +26 -0
- package/studio/src/lib/markdown.js +74 -0
- package/studio/src/lib/prompts/base.js +139 -0
- package/studio/src/lib/prompts/capstone.js +777 -0
- package/studio/src/lib/prompts/course.js +150 -0
- package/studio/src/lib/prompts/lesson.js +275 -0
- package/studio/src/lib/prompts/practice.js +511 -0
- package/studio/src/lib/prompts/tutor.js +509 -0
- package/studio/src/lib/repo/blocked-adapter.js +69 -0
- package/studio/src/lib/repo/events.js +239 -0
- package/studio/src/lib/repo/idb-adapter.js +226 -0
- package/studio/src/lib/repo/index.js +1315 -0
- package/studio/src/lib/repo/memory-adapter.js +115 -0
- package/studio/src/lib/repo/remote-adapter.js +158 -0
- package/studio/src/lib/repo/schema.js +143 -0
- package/studio/src/lib/repo/select-adapter.js +345 -0
- package/studio/src/lib/router.js +71 -0
- package/studio/src/lib/runner/browser.js +244 -0
- package/studio/src/lib/runner/checks.js +248 -0
- package/studio/src/lib/runner/current-code.js +98 -0
- package/studio/src/lib/runner/esm-cjs.js +109 -0
- package/studio/src/lib/runner/hash.js +34 -0
- package/studio/src/lib/runner/history.js +48 -0
- package/studio/src/lib/runner/index.js +168 -0
- package/studio/src/lib/runner/languages.js +258 -0
- package/studio/src/lib/runner/local.js +139 -0
- package/studio/src/lib/runner/path.js +104 -0
- package/studio/src/lib/runner/skeleton.js +315 -0
- package/studio/src/lib/runner/strip-types.js +134 -0
- package/studio/src/lib/settings.js +399 -0
- package/studio/src/lib/srs.js +39 -0
- package/templates/agent/settings.json +6 -0
- package/templates/claude/plugin.json +139 -0
- package/templates/claude/settings.json +15 -0
- package/templates/cursor/professor.mdc +4 -0
- package/templates/cursor/settings.json +18 -0
- package/templates/gemini/GEMINI.md +28 -0
- package/templates/gemini/settings.json +5 -0
- package/templates/opencode/opencode.json +3 -0
- package/templates/researcher/README.md +61 -0
- package/templates/researcher/settings.json +18 -0
- package/web/client/components.json +15 -0
- package/web/client/index.html +12 -0
- package/web/client/package-lock.json +8732 -0
- package/web/client/package.json +39 -0
- package/web/client/postcss.config.js +6 -0
- package/web/client/src/App.jsx +140 -0
- package/web/client/src/api/client.js +357 -0
- package/web/client/src/components/ChatPanel.jsx +417 -0
- package/web/client/src/components/CommandPills.jsx +50 -0
- package/web/client/src/components/DeprecationBanner.jsx +21 -0
- package/web/client/src/components/ExerciseEditor.jsx +164 -0
- package/web/client/src/components/Header.jsx +119 -0
- package/web/client/src/components/LecturePanel.jsx +342 -0
- package/web/client/src/components/MobileTabSwitcher.jsx +51 -0
- package/web/client/src/components/SplitPane.jsx +42 -0
- package/web/client/src/components/ui/alert.jsx +38 -0
- package/web/client/src/components/ui/badge.jsx +24 -0
- package/web/client/src/components/ui/button.jsx +23 -0
- package/web/client/src/components/ui/select.jsx +74 -0
- package/web/client/src/hooks/useSSE.js +152 -0
- package/web/client/src/hooks/useWebSocket.js +98 -0
- package/web/client/src/index.css +23 -0
- package/web/client/src/lib/utils.js +6 -0
- package/web/client/src/main.jsx +12 -0
- package/web/client/src/utils/markdown.js +50 -0
- package/web/client/tailwind.config.js +8 -0
- package/web/client/vite.config.js +21 -0
- package/web/dist/assets/index-C1W0eXIQ.js +294 -0
- package/web/dist/assets/index-C3OUx70T.css +1 -0
- package/web/dist/index.html +13 -0
- package/web/lecture-archive.js +172 -0
- package/web/legacy-server.js +1277 -0
- package/web/package-lock.json +855 -0
- package/web/package.json +10 -0
- package/web/security.js +1016 -0
- package/web/server.js +390 -0
- package/web/studio-api/agents.js +580 -0
- package/web/studio-api/bridge.js +199 -0
- package/web/studio-api/db.js +66 -0
- package/web/studio-api/guards.js +201 -0
- package/web/studio-api/health.js +538 -0
- package/web/studio-api.js +214 -0
- package/web/studio-db.js +380 -0
- package/web/studio-runner.js +568 -0
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
function oz(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();function Xu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var xg={exports:{}},Xl={};var yR;function sz(){if(yR)return Xl;yR=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,a){var s=null;if(a!==void 0&&(s=""+a),i.key!==void 0&&(s=""+i.key),"key"in i){a={};for(var u in i)u!=="key"&&(a[u]=i[u])}else a=i;return i=a.ref,{$$typeof:e,type:r,key:s,ref:i!==void 0?i:null,props:a}}return Xl.Fragment=t,Xl.jsx=n,Xl.jsxs=n,Xl}var ER;function lz(){return ER||(ER=1,xg.exports=sz()),xg.exports}var B=lz(),Ag={exports:{}},_e={};var SR;function uz(){if(SR)return _e;SR=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),g=Symbol.iterator;function b(z){return z===null||typeof z!="object"?null:(z=g&&z[g]||z["@@iterator"],typeof z=="function"?z:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,v={};function w(z,H,_){this.props=z,this.context=H,this.refs=v,this.updater=_||S}w.prototype.isReactComponent={},w.prototype.setState=function(z,H){if(typeof z!="object"&&typeof z!="function"&&z!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,z,H,"setState")},w.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function x(){}x.prototype=w.prototype;function A(z,H,_){this.props=z,this.context=H,this.refs=v,this.updater=_||S}var D=A.prototype=new x;D.constructor=A,k(D,w.prototype),D.isPureReactComponent=!0;var O=Array.isArray;function R(){}var M={H:null,A:null,T:null,S:null},U=Object.prototype.hasOwnProperty;function G(z,H,_){var oe=_.ref;return{$$typeof:e,type:z,key:H,ref:oe!==void 0?oe:null,props:_}}function F(z,H){return G(z.type,H,z.props)}function Q(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function q(z){var H={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(_){return H[_]})}var te=/\/+/g;function J(z,H){return typeof z=="object"&&z!==null&&z.key!=null?q(""+z.key):H.toString(36)}function Z(z){switch(z.status){case"fulfilled":return z.value;case"rejected":throw z.reason;default:switch(typeof z.status=="string"?z.then(R,R):(z.status="pending",z.then(function(H){z.status==="pending"&&(z.status="fulfilled",z.value=H)},function(H){z.status==="pending"&&(z.status="rejected",z.reason=H)})),z.status){case"fulfilled":return z.value;case"rejected":throw z.reason}}throw z}function $(z,H,_,oe,de){var fe=typeof z;(fe==="undefined"||fe==="boolean")&&(z=null);var le=!1;if(z===null)le=!0;else switch(fe){case"bigint":case"string":case"number":le=!0;break;case"object":switch(z.$$typeof){case e:case t:le=!0;break;case f:return le=z._init,$(le(z._payload),H,_,oe,de)}}if(le)return de=de(z),le=oe===""?"."+J(z,0):oe,O(de)?(_="",le!=null&&(_=le.replace(te,"$&/")+"/"),$(de,H,_,"",function(Oe){return Oe})):de!=null&&(Q(de)&&(de=F(de,_+(de.key==null||z&&z.key===de.key?"":(""+de.key).replace(te,"$&/")+"/")+le)),H.push(de)),1;le=0;var Te=oe===""?".":oe+":";if(O(z))for(var be=0;be<z.length;be++)oe=z[be],fe=Te+J(oe,be),le+=$(oe,H,_,fe,de);else if(be=b(z),typeof be=="function")for(z=be.call(z),be=0;!(oe=z.next()).done;)oe=oe.value,fe=Te+J(oe,be++),le+=$(oe,H,_,fe,de);else if(fe==="object"){if(typeof z.then=="function")return $(Z(z),H,_,oe,de);throw H=String(z),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return le}function W(z,H,_){if(z==null)return z;var oe=[],de=0;return $(z,oe,"","",function(fe){return H.call(_,fe,de++)}),oe}function re(z){if(z._status===-1){var H=z._result;H=H(),H.then(function(_){(z._status===0||z._status===-1)&&(z._status=1,z._result=_)},function(_){(z._status===0||z._status===-1)&&(z._status=2,z._result=_)}),z._status===-1&&(z._status=0,z._result=H)}if(z._status===1)return z._result.default;throw z._result}var he=typeof reportError=="function"?reportError:function(z){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof z=="object"&&z!==null&&typeof z.message=="string"?String(z.message):String(z),error:z});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",z);return}console.error(z)},N={map:W,forEach:function(z,H,_){W(z,function(){H.apply(this,arguments)},_)},count:function(z){var H=0;return W(z,function(){H++}),H},toArray:function(z){return W(z,function(H){return H})||[]},only:function(z){if(!Q(z))throw Error("React.Children.only expected to receive a single React element child.");return z}};return _e.Activity=m,_e.Children=N,_e.Component=w,_e.Fragment=n,_e.Profiler=i,_e.PureComponent=A,_e.StrictMode=r,_e.Suspense=c,_e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,_e.__COMPILER_RUNTIME={__proto__:null,c:function(z){return M.H.useMemoCache(z)}},_e.cache=function(z){return function(){return z.apply(null,arguments)}},_e.cacheSignal=function(){return null},_e.cloneElement=function(z,H,_){if(z==null)throw Error("The argument must be a React element, but you passed "+z+".");var oe=k({},z.props),de=z.key;if(H!=null)for(fe in H.key!==void 0&&(de=""+H.key),H)!U.call(H,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&H.ref===void 0||(oe[fe]=H[fe]);var fe=arguments.length-2;if(fe===1)oe.children=_;else if(1<fe){for(var le=Array(fe),Te=0;Te<fe;Te++)le[Te]=arguments[Te+2];oe.children=le}return G(z.type,de,oe)},_e.createContext=function(z){return z={$$typeof:s,_currentValue:z,_currentValue2:z,_threadCount:0,Provider:null,Consumer:null},z.Provider=z,z.Consumer={$$typeof:a,_context:z},z},_e.createElement=function(z,H,_){var oe,de={},fe=null;if(H!=null)for(oe in H.key!==void 0&&(fe=""+H.key),H)U.call(H,oe)&&oe!=="key"&&oe!=="__self"&&oe!=="__source"&&(de[oe]=H[oe]);var le=arguments.length-2;if(le===1)de.children=_;else if(1<le){for(var Te=Array(le),be=0;be<le;be++)Te[be]=arguments[be+2];de.children=Te}if(z&&z.defaultProps)for(oe in le=z.defaultProps,le)de[oe]===void 0&&(de[oe]=le[oe]);return G(z,fe,de)},_e.createRef=function(){return{current:null}},_e.forwardRef=function(z){return{$$typeof:u,render:z}},_e.isValidElement=Q,_e.lazy=function(z){return{$$typeof:f,_payload:{_status:-1,_result:z},_init:re}},_e.memo=function(z,H){return{$$typeof:p,type:z,compare:H===void 0?null:H}},_e.startTransition=function(z){var H=M.T,_={};M.T=_;try{var oe=z(),de=M.S;de!==null&&de(_,oe),typeof oe=="object"&&oe!==null&&typeof oe.then=="function"&&oe.then(R,he)}catch(fe){he(fe)}finally{H!==null&&_.types!==null&&(H.types=_.types),M.T=H}},_e.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},_e.use=function(z){return M.H.use(z)},_e.useActionState=function(z,H,_){return M.H.useActionState(z,H,_)},_e.useCallback=function(z,H){return M.H.useCallback(z,H)},_e.useContext=function(z){return M.H.useContext(z)},_e.useDebugValue=function(){},_e.useDeferredValue=function(z,H){return M.H.useDeferredValue(z,H)},_e.useEffect=function(z,H){return M.H.useEffect(z,H)},_e.useEffectEvent=function(z){return M.H.useEffectEvent(z)},_e.useId=function(){return M.H.useId()},_e.useImperativeHandle=function(z,H,_){return M.H.useImperativeHandle(z,H,_)},_e.useInsertionEffect=function(z,H){return M.H.useInsertionEffect(z,H)},_e.useLayoutEffect=function(z,H){return M.H.useLayoutEffect(z,H)},_e.useMemo=function(z,H){return M.H.useMemo(z,H)},_e.useOptimistic=function(z,H){return M.H.useOptimistic(z,H)},_e.useReducer=function(z,H,_){return M.H.useReducer(z,H,_)},_e.useRef=function(z){return M.H.useRef(z)},_e.useState=function(z){return M.H.useState(z)},_e.useSyncExternalStore=function(z,H,_){return M.H.useSyncExternalStore(z,H,_)},_e.useTransition=function(){return M.H.useTransition()},_e.version="19.2.4",_e}var kR;function Zu(){return kR||(kR=1,Ag.exports=uz()),Ag.exports}var L=Zu();const gt=Xu(L),nI=oz({__proto__:null,default:gt},[L]);var Cg={exports:{}},Zl={},Rg={exports:{}},Ng={};var vR;function cz(){return vR||(vR=1,(function(e){function t($,W){var re=$.length;$.push(W);e:for(;0<re;){var he=re-1>>>1,N=$[he];if(0<i(N,W))$[he]=W,$[re]=N,re=he;else break e}}function n($){return $.length===0?null:$[0]}function r($){if($.length===0)return null;var W=$[0],re=$.pop();if(re!==W){$[0]=re;e:for(var he=0,N=$.length,z=N>>>1;he<z;){var H=2*(he+1)-1,_=$[H],oe=H+1,de=$[oe];if(0>i(_,re))oe<N&&0>i(de,_)?($[he]=de,$[oe]=re,he=oe):($[he]=_,$[H]=re,he=H);else if(oe<N&&0>i(de,re))$[he]=de,$[oe]=re,he=oe;else break e}}return W}function i($,W){var re=$.sortIndex-W.sortIndex;return re!==0?re:$.id-W.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,u=s.now();e.unstable_now=function(){return s.now()-u}}var c=[],p=[],f=1,m=null,g=3,b=!1,S=!1,k=!1,v=!1,w=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;function D($){for(var W=n(p);W!==null;){if(W.callback===null)r(p);else if(W.startTime<=$)r(p),W.sortIndex=W.expirationTime,t(c,W);else break;W=n(p)}}function O($){if(k=!1,D($),!S)if(n(c)!==null)S=!0,R||(R=!0,q());else{var W=n(p);W!==null&&Z(O,W.startTime-$)}}var R=!1,M=-1,U=5,G=-1;function F(){return v?!0:!(e.unstable_now()-G<U)}function Q(){if(v=!1,R){var $=e.unstable_now();G=$;var W=!0;try{e:{S=!1,k&&(k=!1,x(M),M=-1),b=!0;var re=g;try{t:{for(D($),m=n(c);m!==null&&!(m.expirationTime>$&&F());){var he=m.callback;if(typeof he=="function"){m.callback=null,g=m.priorityLevel;var N=he(m.expirationTime<=$);if($=e.unstable_now(),typeof N=="function"){m.callback=N,D($),W=!0;break t}m===n(c)&&r(c),D($)}else r(c);m=n(c)}if(m!==null)W=!0;else{var z=n(p);z!==null&&Z(O,z.startTime-$),W=!1}}break e}finally{m=null,g=re,b=!1}W=void 0}}finally{W?q():R=!1}}}var q;if(typeof A=="function")q=function(){A(Q)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,J=te.port2;te.port1.onmessage=Q,q=function(){J.postMessage(null)}}else q=function(){w(Q,0)};function Z($,W){M=w(function(){$(e.unstable_now())},W)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function($){$.callback=null},e.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function($){switch(g){case 1:case 2:case 3:var W=3;break;default:W=g}var re=g;g=W;try{return $()}finally{g=re}},e.unstable_requestPaint=function(){v=!0},e.unstable_runWithPriority=function($,W){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var re=g;g=$;try{return W()}finally{g=re}},e.unstable_scheduleCallback=function($,W,re){var he=e.unstable_now();switch(typeof re=="object"&&re!==null?(re=re.delay,re=typeof re=="number"&&0<re?he+re:he):re=he,$){case 1:var N=-1;break;case 2:N=250;break;case 5:N=1073741823;break;case 4:N=1e4;break;default:N=5e3}return N=re+N,$={id:f++,callback:W,priorityLevel:$,startTime:re,expirationTime:N,sortIndex:-1},re>he?($.sortIndex=re,t(p,$),n(c)===null&&$===n(p)&&(k?(x(M),M=-1):k=!0,Z(O,re-he))):($.sortIndex=N,t(c,$),S||b||(S=!0,R||(R=!0,q()))),$},e.unstable_shouldYield=F,e.unstable_wrapCallback=function($){var W=g;return function(){var re=g;g=W;try{return $.apply(this,arguments)}finally{g=re}}}})(Ng)),Ng}var wR;function dz(){return wR||(wR=1,Rg.exports=cz()),Rg.exports}var _g={exports:{}},on={};var TR;function pz(){if(TR)return on;TR=1;var e=Zu();function t(c){var p="https://react.dev/errors/"+c;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var f=2;f<arguments.length;f++)p+="&args[]="+encodeURIComponent(arguments[f])}return"Minified React error #"+c+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function a(c,p,f){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:m==null?null:""+m,children:c,containerInfo:p,implementation:f}}var s=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(c,p){if(c==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return on.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,on.createPortal=function(c,p){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(t(299));return a(c,p,null,f)},on.flushSync=function(c){var p=s.T,f=r.p;try{if(s.T=null,r.p=2,c)return c()}finally{s.T=p,r.p=f,r.d.f()}},on.preconnect=function(c,p){typeof c=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(c,p))},on.prefetchDNS=function(c){typeof c=="string"&&r.d.D(c)},on.preinit=function(c,p){if(typeof c=="string"&&p&&typeof p.as=="string"){var f=p.as,m=u(f,p.crossOrigin),g=typeof p.integrity=="string"?p.integrity:void 0,b=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;f==="style"?r.d.S(c,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:m,integrity:g,fetchPriority:b}):f==="script"&&r.d.X(c,{crossOrigin:m,integrity:g,fetchPriority:b,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},on.preinitModule=function(c,p){if(typeof c=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var f=u(p.as,p.crossOrigin);r.d.M(c,{crossOrigin:f,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&r.d.M(c)},on.preload=function(c,p){if(typeof c=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var f=p.as,m=u(f,p.crossOrigin);r.d.L(c,f,{crossOrigin:m,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},on.preloadModule=function(c,p){if(typeof c=="string")if(p){var f=u(p.as,p.crossOrigin);r.d.m(c,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:f,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else r.d.m(c)},on.requestFormReset=function(c){r.d.r(c)},on.unstable_batchedUpdates=function(c,p){return c(p)},on.useFormState=function(c,p,f){return s.H.useFormState(c,p,f)},on.useFormStatus=function(){return s.H.useHostTransitionStatus()},on.version="19.2.4",on}var xR;function rI(){if(xR)return _g.exports;xR=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),_g.exports=pz(),_g.exports}var AR;function fz(){if(AR)return Zl;AR=1;var e=dz(),t=Zu(),n=rI();function r(o){var l="https://react.dev/errors/"+o;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)l+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+o+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function a(o){var l=o,d=o;if(o.alternate)for(;l.return;)l=l.return;else{o=l;do l=o,(l.flags&4098)!==0&&(d=l.return),o=l.return;while(o)}return l.tag===3?d:null}function s(o){if(o.tag===13){var l=o.memoizedState;if(l===null&&(o=o.alternate,o!==null&&(l=o.memoizedState)),l!==null)return l.dehydrated}return null}function u(o){if(o.tag===31){var l=o.memoizedState;if(l===null&&(o=o.alternate,o!==null&&(l=o.memoizedState)),l!==null)return l.dehydrated}return null}function c(o){if(a(o)!==o)throw Error(r(188))}function p(o){var l=o.alternate;if(!l){if(l=a(o),l===null)throw Error(r(188));return l!==o?null:o}for(var d=o,h=l;;){var y=d.return;if(y===null)break;var E=y.alternate;if(E===null){if(h=y.return,h!==null){d=h;continue}break}if(y.child===E.child){for(E=y.child;E;){if(E===d)return c(y),o;if(E===h)return c(y),l;E=E.sibling}throw Error(r(188))}if(d.return!==h.return)d=y,h=E;else{for(var T=!1,C=y.child;C;){if(C===d){T=!0,d=y,h=E;break}if(C===h){T=!0,h=y,d=E;break}C=C.sibling}if(!T){for(C=E.child;C;){if(C===d){T=!0,d=E,h=y;break}if(C===h){T=!0,h=E,d=y;break}C=C.sibling}if(!T)throw Error(r(189))}}if(d.alternate!==h)throw Error(r(190))}if(d.tag!==3)throw Error(r(188));return d.stateNode.current===d?o:l}function f(o){var l=o.tag;if(l===5||l===26||l===27||l===6)return o;for(o=o.child;o!==null;){if(l=f(o),l!==null)return l;o=o.sibling}return null}var m=Object.assign,g=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),A=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),G=Symbol.for("react.activity"),F=Symbol.for("react.memo_cache_sentinel"),Q=Symbol.iterator;function q(o){return o===null||typeof o!="object"?null:(o=Q&&o[Q]||o["@@iterator"],typeof o=="function"?o:null)}var te=Symbol.for("react.client.reference");function J(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===te?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case k:return"Fragment";case w:return"Profiler";case v:return"StrictMode";case O:return"Suspense";case R:return"SuspenseList";case G:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case S:return"Portal";case A:return o.displayName||"Context";case x:return(o._context.displayName||"Context")+".Consumer";case D:var l=o.render;return o=o.displayName,o||(o=l.displayName||l.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case M:return l=o.displayName||null,l!==null?l:J(o.type)||"Memo";case U:l=o._payload,o=o._init;try{return J(o(l))}catch{}}return null}var Z=Array.isArray,$=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re={pending:!1,data:null,method:null,action:null},he=[],N=-1;function z(o){return{current:o}}function H(o){0>N||(o.current=he[N],he[N]=null,N--)}function _(o,l){N++,he[N]=o.current,o.current=l}var oe=z(null),de=z(null),fe=z(null),le=z(null);function Te(o,l){switch(_(fe,l),_(de,o),_(oe,null),l.nodeType){case 9:case 11:o=(o=l.documentElement)&&(o=o.namespaceURI)?$C(o):0;break;default:if(o=l.tagName,l=l.namespaceURI)l=$C(l),o=HC(l,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}H(oe),_(oe,o)}function be(){H(oe),H(de),H(fe)}function Oe(o){o.memoizedState!==null&&_(le,o);var l=oe.current,d=HC(l,o.type);l!==d&&(_(de,o),_(oe,d))}function De(o){de.current===o&&(H(oe),H(de)),le.current===o&&(H(le),ql._currentValue=re)}var Ze,xt;function Et(o){if(Ze===void 0)try{throw Error()}catch(d){var l=d.stack.trim().match(/\n( *(at )?)/);Ze=l&&l[1]||"",xt=-1<d.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<d.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+Ze+o+xt}var Rr=!1;function Nr(o,l){if(!o||Rr)return"";Rr=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var h={DetermineComponentFrameRoot:function(){try{if(l){var se=function(){throw Error()};if(Object.defineProperty(se.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(se,[])}catch(ee){var X=ee}Reflect.construct(o,[],se)}else{try{se.call()}catch(ee){X=ee}o.call(se.prototype)}}else{try{throw Error()}catch(ee){X=ee}(se=o())&&typeof se.catch=="function"&&se.catch(function(){})}}catch(ee){if(ee&&X&&typeof ee.stack=="string")return[ee.stack,X.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var y=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");y&&y.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var E=h.DetermineComponentFrameRoot(),T=E[0],C=E[1];if(T&&C){var P=T.split(`
|
|
4
|
+
`),K=C.split(`
|
|
5
|
+
`);for(y=h=0;h<P.length&&!P[h].includes("DetermineComponentFrameRoot");)h++;for(;y<K.length&&!K[y].includes("DetermineComponentFrameRoot");)y++;if(h===P.length||y===K.length)for(h=P.length-1,y=K.length-1;1<=h&&0<=y&&P[h]!==K[y];)y--;for(;1<=h&&0<=y;h--,y--)if(P[h]!==K[y]){if(h!==1||y!==1)do if(h--,y--,0>y||P[h]!==K[y]){var ne=`
|
|
6
|
+
`+P[h].replace(" at new "," at ");return o.displayName&&ne.includes("<anonymous>")&&(ne=ne.replace("<anonymous>",o.displayName)),ne}while(1<=h&&0<=y);break}}}finally{Rr=!1,Error.prepareStackTrace=d}return(d=o?o.displayName||o.name:"")?Et(d):""}function Ri(o,l){switch(o.tag){case 26:case 27:case 5:return Et(o.type);case 16:return Et("Lazy");case 13:return o.child!==l&&l!==null?Et("Suspense Fallback"):Et("Suspense");case 19:return Et("SuspenseList");case 0:case 15:return Nr(o.type,!1);case 11:return Nr(o.type.render,!1);case 1:return Nr(o.type,!0);case 31:return Et("Activity");default:return""}}function gc(o){try{var l="",d=null;do l+=Ri(o,d),d=o,o=o.return;while(o);return l}catch(h){return`
|
|
7
|
+
Error generating stack: `+h.message+`
|
|
8
|
+
`+h.stack}}var Oo=Object.prototype.hasOwnProperty,Io=e.unstable_scheduleCallback,il=e.unstable_cancelCallback,ch=e.unstable_shouldYield,dh=e.unstable_requestPaint,hn=e.unstable_now,ph=e.unstable_getCurrentPriorityLevel,ie=e.unstable_ImmediatePriority,me=e.unstable_UserBlockingPriority,Re=e.unstable_NormalPriority,Ue=e.unstable_LowPriority,Je=e.unstable_IdlePriority,Mn=e.log,Wr=e.unstable_setDisableYieldValue,mn=null,zt=null;function vn(o){if(typeof Mn=="function"&&Wr(o),zt&&typeof zt.setStrictMode=="function")try{zt.setStrictMode(mn,o)}catch{}}var st=Math.clz32?Math.clz32:q2,Ni=Math.log,fr=Math.LN2;function q2(o){return o>>>=0,o===0?32:31-(Ni(o)/fr|0)|0}var bc=256,yc=262144,Ec=4194304;function Da(o){var l=o&42;if(l!==0)return l;switch(o&-o){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return o&261888;case 262144:case 524288:case 1048576:case 2097152:return o&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return o&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return o}}function Sc(o,l,d){var h=o.pendingLanes;if(h===0)return 0;var y=0,E=o.suspendedLanes,T=o.pingedLanes;o=o.warmLanes;var C=h&134217727;return C!==0?(h=C&~E,h!==0?y=Da(h):(T&=C,T!==0?y=Da(T):d||(d=C&~o,d!==0&&(y=Da(d))))):(C=h&~E,C!==0?y=Da(C):T!==0?y=Da(T):d||(d=h&~o,d!==0&&(y=Da(d)))),y===0?0:l!==0&&l!==y&&(l&E)===0&&(E=y&-y,d=l&-l,E>=d||E===32&&(d&4194048)!==0)?l:y}function al(o,l){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&l)===0}function W2(o,l){switch(o){case 1:case 2:case 4:case 8:case 64:return l+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return l+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function vx(){var o=Ec;return Ec<<=1,(Ec&62914560)===0&&(Ec=4194304),o}function fh(o){for(var l=[],d=0;31>d;d++)l.push(o);return l}function ol(o,l){o.pendingLanes|=l,l!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function Y2(o,l,d,h,y,E){var T=o.pendingLanes;o.pendingLanes=d,o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0,o.expiredLanes&=d,o.entangledLanes&=d,o.errorRecoveryDisabledLanes&=d,o.shellSuspendCounter=0;var C=o.entanglements,P=o.expirationTimes,K=o.hiddenUpdates;for(d=T&~d;0<d;){var ne=31-st(d),se=1<<ne;C[ne]=0,P[ne]=-1;var X=K[ne];if(X!==null)for(K[ne]=null,ne=0;ne<X.length;ne++){var ee=X[ne];ee!==null&&(ee.lane&=-536870913)}d&=~se}h!==0&&wx(o,h,0),E!==0&&y===0&&o.tag!==0&&(o.suspendedLanes|=E&~(T&~l))}function wx(o,l,d){o.pendingLanes|=l,o.suspendedLanes&=~l;var h=31-st(l);o.entangledLanes|=l,o.entanglements[h]=o.entanglements[h]|1073741824|d&261930}function Tx(o,l){var d=o.entangledLanes|=l;for(o=o.entanglements;d;){var h=31-st(d),y=1<<h;y&l|o[h]&l&&(o[h]|=l),d&=~y}}function xx(o,l){var d=l&-l;return d=(d&42)!==0?1:hh(d),(d&(o.suspendedLanes|l))!==0?0:d}function hh(o){switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:o=128;break;case 268435456:o=134217728;break;default:o=0}return o}function mh(o){return o&=-o,2<o?8<o?(o&134217727)!==0?32:268435456:8:2}function Ax(){var o=W.p;return o!==0?o:(o=window.event,o===void 0?32:dR(o.type))}function Cx(o,l){var d=W.p;try{return W.p=o,l()}finally{W.p=d}}var _i=Math.random().toString(36).slice(2),Yt="__reactFiber$"+_i,wn="__reactProps$"+_i,Do="__reactContainer$"+_i,gh="__reactEvents$"+_i,K2="__reactListeners$"+_i,X2="__reactHandles$"+_i,Rx="__reactResources$"+_i,sl="__reactMarker$"+_i;function bh(o){delete o[Yt],delete o[wn],delete o[gh],delete o[K2],delete o[X2]}function Lo(o){var l=o[Yt];if(l)return l;for(var d=o.parentNode;d;){if(l=d[Do]||d[Yt]){if(d=l.alternate,l.child!==null||d!==null&&d.child!==null)for(o=KC(o);o!==null;){if(d=o[Yt])return d;o=KC(o)}return l}o=d,d=o.parentNode}return null}function Mo(o){if(o=o[Yt]||o[Do]){var l=o.tag;if(l===5||l===6||l===13||l===31||l===26||l===27||l===3)return o}return null}function ll(o){var l=o.tag;if(l===5||l===26||l===27||l===6)return o.stateNode;throw Error(r(33))}function Bo(o){var l=o[Rx];return l||(l=o[Rx]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function Ht(o){o[sl]=!0}var Nx=new Set,_x={};function La(o,l){Fo(o,l),Fo(o+"Capture",l)}function Fo(o,l){for(_x[o]=l,o=0;o<l.length;o++)Nx.add(l[o])}var Z2=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Ox={},Ix={};function Q2(o){return Oo.call(Ix,o)?!0:Oo.call(Ox,o)?!1:Z2.test(o)?Ix[o]=!0:(Ox[o]=!0,!1)}function kc(o,l,d){if(Q2(l))if(d===null)o.removeAttribute(l);else{switch(typeof d){case"undefined":case"function":case"symbol":o.removeAttribute(l);return;case"boolean":var h=l.toLowerCase().slice(0,5);if(h!=="data-"&&h!=="aria-"){o.removeAttribute(l);return}}o.setAttribute(l,""+d)}}function vc(o,l,d){if(d===null)o.removeAttribute(l);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(l);return}o.setAttribute(l,""+d)}}function Yr(o,l,d,h){if(h===null)o.removeAttribute(d);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(d);return}o.setAttributeNS(l,d,""+h)}}function Xn(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function Dx(o){var l=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function J2(o,l,d){var h=Object.getOwnPropertyDescriptor(o.constructor.prototype,l);if(!o.hasOwnProperty(l)&&typeof h<"u"&&typeof h.get=="function"&&typeof h.set=="function"){var y=h.get,E=h.set;return Object.defineProperty(o,l,{configurable:!0,get:function(){return y.call(this)},set:function(T){d=""+T,E.call(this,T)}}),Object.defineProperty(o,l,{enumerable:h.enumerable}),{getValue:function(){return d},setValue:function(T){d=""+T},stopTracking:function(){o._valueTracker=null,delete o[l]}}}}function yh(o){if(!o._valueTracker){var l=Dx(o)?"checked":"value";o._valueTracker=J2(o,l,""+o[l])}}function Lx(o){if(!o)return!1;var l=o._valueTracker;if(!l)return!0;var d=l.getValue(),h="";return o&&(h=Dx(o)?o.checked?"true":"false":o.value),o=h,o!==d?(l.setValue(o),!0):!1}function wc(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}var eB=/[\n"\\]/g;function Zn(o){return o.replace(eB,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function Eh(o,l,d,h,y,E,T,C){o.name="",T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?o.type=T:o.removeAttribute("type"),l!=null?T==="number"?(l===0&&o.value===""||o.value!=l)&&(o.value=""+Xn(l)):o.value!==""+Xn(l)&&(o.value=""+Xn(l)):T!=="submit"&&T!=="reset"||o.removeAttribute("value"),l!=null?Sh(o,T,Xn(l)):d!=null?Sh(o,T,Xn(d)):h!=null&&o.removeAttribute("value"),y==null&&E!=null&&(o.defaultChecked=!!E),y!=null&&(o.checked=y&&typeof y!="function"&&typeof y!="symbol"),C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?o.name=""+Xn(C):o.removeAttribute("name")}function Mx(o,l,d,h,y,E,T,C){if(E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"&&(o.type=E),l!=null||d!=null){if(!(E!=="submit"&&E!=="reset"||l!=null)){yh(o);return}d=d!=null?""+Xn(d):"",l=l!=null?""+Xn(l):d,C||l===o.value||(o.value=l),o.defaultValue=l}h=h??y,h=typeof h!="function"&&typeof h!="symbol"&&!!h,o.checked=C?o.checked:!!h,o.defaultChecked=!!h,T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"&&(o.name=T),yh(o)}function Sh(o,l,d){l==="number"&&wc(o.ownerDocument)===o||o.defaultValue===""+d||(o.defaultValue=""+d)}function zo(o,l,d,h){if(o=o.options,l){l={};for(var y=0;y<d.length;y++)l["$"+d[y]]=!0;for(d=0;d<o.length;d++)y=l.hasOwnProperty("$"+o[d].value),o[d].selected!==y&&(o[d].selected=y),y&&h&&(o[d].defaultSelected=!0)}else{for(d=""+Xn(d),l=null,y=0;y<o.length;y++){if(o[y].value===d){o[y].selected=!0,h&&(o[y].defaultSelected=!0);return}l!==null||o[y].disabled||(l=o[y])}l!==null&&(l.selected=!0)}}function Bx(o,l,d){if(l!=null&&(l=""+Xn(l),l!==o.value&&(o.value=l),d==null)){o.defaultValue!==l&&(o.defaultValue=l);return}o.defaultValue=d!=null?""+Xn(d):""}function Fx(o,l,d,h){if(l==null){if(h!=null){if(d!=null)throw Error(r(92));if(Z(h)){if(1<h.length)throw Error(r(93));h=h[0]}d=h}d==null&&(d=""),l=d}d=Xn(l),o.defaultValue=d,h=o.textContent,h===d&&h!==""&&h!==null&&(o.value=h),yh(o)}function Uo(o,l){if(l){var d=o.firstChild;if(d&&d===o.lastChild&&d.nodeType===3){d.nodeValue=l;return}}o.textContent=l}var tB=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function zx(o,l,d){var h=l.indexOf("--")===0;d==null||typeof d=="boolean"||d===""?h?o.setProperty(l,""):l==="float"?o.cssFloat="":o[l]="":h?o.setProperty(l,d):typeof d!="number"||d===0||tB.has(l)?l==="float"?o.cssFloat=d:o[l]=(""+d).trim():o[l]=d+"px"}function Ux(o,l,d){if(l!=null&&typeof l!="object")throw Error(r(62));if(o=o.style,d!=null){for(var h in d)!d.hasOwnProperty(h)||l!=null&&l.hasOwnProperty(h)||(h.indexOf("--")===0?o.setProperty(h,""):h==="float"?o.cssFloat="":o[h]="");for(var y in l)h=l[y],l.hasOwnProperty(y)&&d[y]!==h&&zx(o,y,h)}else for(var E in l)l.hasOwnProperty(E)&&zx(o,E,l[E])}function kh(o){if(o.indexOf("-")===-1)return!1;switch(o){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var nB=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),rB=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Tc(o){return rB.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}function Kr(){}var vh=null;function wh(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var Po=null,$o=null;function Px(o){var l=Mo(o);if(l&&(o=l.stateNode)){var d=o[wn]||null;e:switch(o=l.stateNode,l.type){case"input":if(Eh(o,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name),l=d.name,d.type==="radio"&&l!=null){for(d=o;d.parentNode;)d=d.parentNode;for(d=d.querySelectorAll('input[name="'+Zn(""+l)+'"][type="radio"]'),l=0;l<d.length;l++){var h=d[l];if(h!==o&&h.form===o.form){var y=h[wn]||null;if(!y)throw Error(r(90));Eh(h,y.value,y.defaultValue,y.defaultValue,y.checked,y.defaultChecked,y.type,y.name)}}for(l=0;l<d.length;l++)h=d[l],h.form===o.form&&Lx(h)}break e;case"textarea":Bx(o,d.value,d.defaultValue);break e;case"select":l=d.value,l!=null&&zo(o,!!d.multiple,l,!1)}}}var Th=!1;function $x(o,l,d){if(Th)return o(l,d);Th=!0;try{var h=o(l);return h}finally{if(Th=!1,(Po!==null||$o!==null)&&(dd(),Po&&(l=Po,o=$o,$o=Po=null,Px(l),o)))for(l=0;l<o.length;l++)Px(o[l])}}function ul(o,l){var d=o.stateNode;if(d===null)return null;var h=d[wn]||null;if(h===null)return null;d=h[l];e:switch(l){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(o=o.type,h=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!h;break e;default:o=!1}if(o)return null;if(d&&typeof d!="function")throw Error(r(231,l,typeof d));return d}var Xr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xh=!1;if(Xr)try{var cl={};Object.defineProperty(cl,"passive",{get:function(){xh=!0}}),window.addEventListener("test",cl,cl),window.removeEventListener("test",cl,cl)}catch{xh=!1}var Oi=null,Ah=null,xc=null;function Hx(){if(xc)return xc;var o,l=Ah,d=l.length,h,y="value"in Oi?Oi.value:Oi.textContent,E=y.length;for(o=0;o<d&&l[o]===y[o];o++);var T=d-o;for(h=1;h<=T&&l[d-h]===y[E-h];h++);return xc=y.slice(o,1<h?1-h:void 0)}function Ac(o){var l=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&l===13&&(o=13)):o=l,o===10&&(o=13),32<=o||o===13?o:0}function Cc(){return!0}function jx(){return!1}function Tn(o){function l(d,h,y,E,T){this._reactName=d,this._targetInst=y,this.type=h,this.nativeEvent=E,this.target=T,this.currentTarget=null;for(var C in o)o.hasOwnProperty(C)&&(d=o[C],this[C]=d?d(E):E[C]);return this.isDefaultPrevented=(E.defaultPrevented!=null?E.defaultPrevented:E.returnValue===!1)?Cc:jx,this.isPropagationStopped=jx,this}return m(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var d=this.nativeEvent;d&&(d.preventDefault?d.preventDefault():typeof d.returnValue!="unknown"&&(d.returnValue=!1),this.isDefaultPrevented=Cc)},stopPropagation:function(){var d=this.nativeEvent;d&&(d.stopPropagation?d.stopPropagation():typeof d.cancelBubble!="unknown"&&(d.cancelBubble=!0),this.isPropagationStopped=Cc)},persist:function(){},isPersistent:Cc}),l}var Ma={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Rc=Tn(Ma),dl=m({},Ma,{view:0,detail:0}),iB=Tn(dl),Ch,Rh,pl,Nc=m({},dl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_h,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==pl&&(pl&&o.type==="mousemove"?(Ch=o.screenX-pl.screenX,Rh=o.screenY-pl.screenY):Rh=Ch=0,pl=o),Ch)},movementY:function(o){return"movementY"in o?o.movementY:Rh}}),Gx=Tn(Nc),aB=m({},Nc,{dataTransfer:0}),oB=Tn(aB),sB=m({},dl,{relatedTarget:0}),Nh=Tn(sB),lB=m({},Ma,{animationName:0,elapsedTime:0,pseudoElement:0}),uB=Tn(lB),cB=m({},Ma,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),dB=Tn(cB),pB=m({},Ma,{data:0}),Vx=Tn(pB),fB={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hB={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},mB={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gB(o){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(o):(o=mB[o])?!!l[o]:!1}function _h(){return gB}var bB=m({},dl,{key:function(o){if(o.key){var l=fB[o.key]||o.key;if(l!=="Unidentified")return l}return o.type==="keypress"?(o=Ac(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?hB[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_h,charCode:function(o){return o.type==="keypress"?Ac(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?Ac(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),yB=Tn(bB),EB=m({},Nc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),qx=Tn(EB),SB=m({},dl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_h}),kB=Tn(SB),vB=m({},Ma,{propertyName:0,elapsedTime:0,pseudoElement:0}),wB=Tn(vB),TB=m({},Nc,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),xB=Tn(TB),AB=m({},Ma,{newState:0,oldState:0}),CB=Tn(AB),RB=[9,13,27,32],Oh=Xr&&"CompositionEvent"in window,fl=null;Xr&&"documentMode"in document&&(fl=document.documentMode);var NB=Xr&&"TextEvent"in window&&!fl,Wx=Xr&&(!Oh||fl&&8<fl&&11>=fl),Yx=" ",Kx=!1;function Xx(o,l){switch(o){case"keyup":return RB.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Zx(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var Ho=!1;function _B(o,l){switch(o){case"compositionend":return Zx(l);case"keypress":return l.which!==32?null:(Kx=!0,Yx);case"textInput":return o=l.data,o===Yx&&Kx?null:o;default:return null}}function OB(o,l){if(Ho)return o==="compositionend"||!Oh&&Xx(o,l)?(o=Hx(),xc=Ah=Oi=null,Ho=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return Wx&&l.locale!=="ko"?null:l.data;default:return null}}var IB={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Qx(o){var l=o&&o.nodeName&&o.nodeName.toLowerCase();return l==="input"?!!IB[o.type]:l==="textarea"}function Jx(o,l,d,h){Po?$o?$o.push(h):$o=[h]:Po=h,l=yd(l,"onChange"),0<l.length&&(d=new Rc("onChange","change",null,d,h),o.push({event:d,listeners:l}))}var hl=null,ml=null;function DB(o){MC(o,0)}function _c(o){var l=ll(o);if(Lx(l))return o}function eA(o,l){if(o==="change")return l}var tA=!1;if(Xr){var Ih;if(Xr){var Dh="oninput"in document;if(!Dh){var nA=document.createElement("div");nA.setAttribute("oninput","return;"),Dh=typeof nA.oninput=="function"}Ih=Dh}else Ih=!1;tA=Ih&&(!document.documentMode||9<document.documentMode)}function rA(){hl&&(hl.detachEvent("onpropertychange",iA),ml=hl=null)}function iA(o){if(o.propertyName==="value"&&_c(ml)){var l=[];Jx(l,ml,o,wh(o)),$x(DB,l)}}function LB(o,l,d){o==="focusin"?(rA(),hl=l,ml=d,hl.attachEvent("onpropertychange",iA)):o==="focusout"&&rA()}function MB(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return _c(ml)}function BB(o,l){if(o==="click")return _c(l)}function FB(o,l){if(o==="input"||o==="change")return _c(l)}function zB(o,l){return o===l&&(o!==0||1/o===1/l)||o!==o&&l!==l}var Bn=typeof Object.is=="function"?Object.is:zB;function gl(o,l){if(Bn(o,l))return!0;if(typeof o!="object"||o===null||typeof l!="object"||l===null)return!1;var d=Object.keys(o),h=Object.keys(l);if(d.length!==h.length)return!1;for(h=0;h<d.length;h++){var y=d[h];if(!Oo.call(l,y)||!Bn(o[y],l[y]))return!1}return!0}function aA(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function oA(o,l){var d=aA(o);o=0;for(var h;d;){if(d.nodeType===3){if(h=o+d.textContent.length,o<=l&&h>=l)return{node:d,offset:l-o};o=h}e:{for(;d;){if(d.nextSibling){d=d.nextSibling;break e}d=d.parentNode}d=void 0}d=aA(d)}}function sA(o,l){return o&&l?o===l?!0:o&&o.nodeType===3?!1:l&&l.nodeType===3?sA(o,l.parentNode):"contains"in o?o.contains(l):o.compareDocumentPosition?!!(o.compareDocumentPosition(l)&16):!1:!1}function lA(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var l=wc(o.document);l instanceof o.HTMLIFrameElement;){try{var d=typeof l.contentWindow.location.href=="string"}catch{d=!1}if(d)o=l.contentWindow;else break;l=wc(o.document)}return l}function Lh(o){var l=o&&o.nodeName&&o.nodeName.toLowerCase();return l&&(l==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||l==="textarea"||o.contentEditable==="true")}var UB=Xr&&"documentMode"in document&&11>=document.documentMode,jo=null,Mh=null,bl=null,Bh=!1;function uA(o,l,d){var h=d.window===d?d.document:d.nodeType===9?d:d.ownerDocument;Bh||jo==null||jo!==wc(h)||(h=jo,"selectionStart"in h&&Lh(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),bl&&gl(bl,h)||(bl=h,h=yd(Mh,"onSelect"),0<h.length&&(l=new Rc("onSelect","select",null,l,d),o.push({event:l,listeners:h}),l.target=jo)))}function Ba(o,l){var d={};return d[o.toLowerCase()]=l.toLowerCase(),d["Webkit"+o]="webkit"+l,d["Moz"+o]="moz"+l,d}var Go={animationend:Ba("Animation","AnimationEnd"),animationiteration:Ba("Animation","AnimationIteration"),animationstart:Ba("Animation","AnimationStart"),transitionrun:Ba("Transition","TransitionRun"),transitionstart:Ba("Transition","TransitionStart"),transitioncancel:Ba("Transition","TransitionCancel"),transitionend:Ba("Transition","TransitionEnd")},Fh={},cA={};Xr&&(cA=document.createElement("div").style,"AnimationEvent"in window||(delete Go.animationend.animation,delete Go.animationiteration.animation,delete Go.animationstart.animation),"TransitionEvent"in window||delete Go.transitionend.transition);function Fa(o){if(Fh[o])return Fh[o];if(!Go[o])return o;var l=Go[o],d;for(d in l)if(l.hasOwnProperty(d)&&d in cA)return Fh[o]=l[d];return o}var dA=Fa("animationend"),pA=Fa("animationiteration"),fA=Fa("animationstart"),PB=Fa("transitionrun"),$B=Fa("transitionstart"),HB=Fa("transitioncancel"),hA=Fa("transitionend"),mA=new Map,zh="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");zh.push("scrollEnd");function hr(o,l){mA.set(o,l),La(l,[o])}var Oc=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)},Qn=[],Vo=0,Uh=0;function Ic(){for(var o=Vo,l=Uh=Vo=0;l<o;){var d=Qn[l];Qn[l++]=null;var h=Qn[l];Qn[l++]=null;var y=Qn[l];Qn[l++]=null;var E=Qn[l];if(Qn[l++]=null,h!==null&&y!==null){var T=h.pending;T===null?y.next=y:(y.next=T.next,T.next=y),h.pending=y}E!==0&&gA(d,y,E)}}function Dc(o,l,d,h){Qn[Vo++]=o,Qn[Vo++]=l,Qn[Vo++]=d,Qn[Vo++]=h,Uh|=h,o.lanes|=h,o=o.alternate,o!==null&&(o.lanes|=h)}function Ph(o,l,d,h){return Dc(o,l,d,h),Lc(o)}function za(o,l){return Dc(o,null,null,l),Lc(o)}function gA(o,l,d){o.lanes|=d;var h=o.alternate;h!==null&&(h.lanes|=d);for(var y=!1,E=o.return;E!==null;)E.childLanes|=d,h=E.alternate,h!==null&&(h.childLanes|=d),E.tag===22&&(o=E.stateNode,o===null||o._visibility&1||(y=!0)),o=E,E=E.return;return o.tag===3?(E=o.stateNode,y&&l!==null&&(y=31-st(d),o=E.hiddenUpdates,h=o[y],h===null?o[y]=[l]:h.push(l),l.lane=d|536870912),E):null}function Lc(o){if(50<Ul)throw Ul=0,Km=null,Error(r(185));for(var l=o.return;l!==null;)o=l,l=o.return;return o.tag===3?o.stateNode:null}var qo={};function jB(o,l,d,h){this.tag=o,this.key=d,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Fn(o,l,d,h){return new jB(o,l,d,h)}function $h(o){return o=o.prototype,!(!o||!o.isReactComponent)}function Zr(o,l){var d=o.alternate;return d===null?(d=Fn(o.tag,l,o.key,o.mode),d.elementType=o.elementType,d.type=o.type,d.stateNode=o.stateNode,d.alternate=o,o.alternate=d):(d.pendingProps=l,d.type=o.type,d.flags=0,d.subtreeFlags=0,d.deletions=null),d.flags=o.flags&65011712,d.childLanes=o.childLanes,d.lanes=o.lanes,d.child=o.child,d.memoizedProps=o.memoizedProps,d.memoizedState=o.memoizedState,d.updateQueue=o.updateQueue,l=o.dependencies,d.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},d.sibling=o.sibling,d.index=o.index,d.ref=o.ref,d.refCleanup=o.refCleanup,d}function bA(o,l){o.flags&=65011714;var d=o.alternate;return d===null?(o.childLanes=0,o.lanes=l,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=d.childLanes,o.lanes=d.lanes,o.child=d.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=d.memoizedProps,o.memoizedState=d.memoizedState,o.updateQueue=d.updateQueue,o.type=d.type,l=d.dependencies,o.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),o}function Mc(o,l,d,h,y,E){var T=0;if(h=o,typeof o=="function")$h(o)&&(T=1);else if(typeof o=="string")T=YF(o,d,oe.current)?26:o==="html"||o==="head"||o==="body"?27:5;else e:switch(o){case G:return o=Fn(31,d,l,y),o.elementType=G,o.lanes=E,o;case k:return Ua(d.children,y,E,l);case v:T=8,y|=24;break;case w:return o=Fn(12,d,l,y|2),o.elementType=w,o.lanes=E,o;case O:return o=Fn(13,d,l,y),o.elementType=O,o.lanes=E,o;case R:return o=Fn(19,d,l,y),o.elementType=R,o.lanes=E,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case A:T=10;break e;case x:T=9;break e;case D:T=11;break e;case M:T=14;break e;case U:T=16,h=null;break e}T=29,d=Error(r(130,o===null?"null":typeof o,"")),h=null}return l=Fn(T,d,l,y),l.elementType=o,l.type=h,l.lanes=E,l}function Ua(o,l,d,h){return o=Fn(7,o,h,l),o.lanes=d,o}function Hh(o,l,d){return o=Fn(6,o,null,l),o.lanes=d,o}function yA(o){var l=Fn(18,null,null,0);return l.stateNode=o,l}function jh(o,l,d){return l=Fn(4,o.children!==null?o.children:[],o.key,l),l.lanes=d,l.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},l}var EA=new WeakMap;function Jn(o,l){if(typeof o=="object"&&o!==null){var d=EA.get(o);return d!==void 0?d:(l={value:o,source:l,stack:gc(l)},EA.set(o,l),l)}return{value:o,source:l,stack:gc(l)}}var Wo=[],Yo=0,Bc=null,yl=0,er=[],tr=0,Ii=null,_r=1,Or="";function Qr(o,l){Wo[Yo++]=yl,Wo[Yo++]=Bc,Bc=o,yl=l}function SA(o,l,d){er[tr++]=_r,er[tr++]=Or,er[tr++]=Ii,Ii=o;var h=_r;o=Or;var y=32-st(h)-1;h&=~(1<<y),d+=1;var E=32-st(l)+y;if(30<E){var T=y-y%5;E=(h&(1<<T)-1).toString(32),h>>=T,y-=T,_r=1<<32-st(l)+y|d<<y|h,Or=E+o}else _r=1<<E|d<<y|h,Or=o}function Gh(o){o.return!==null&&(Qr(o,1),SA(o,1,0))}function Vh(o){for(;o===Bc;)Bc=Wo[--Yo],Wo[Yo]=null,yl=Wo[--Yo],Wo[Yo]=null;for(;o===Ii;)Ii=er[--tr],er[tr]=null,Or=er[--tr],er[tr]=null,_r=er[--tr],er[tr]=null}function kA(o,l){er[tr++]=_r,er[tr++]=Or,er[tr++]=Ii,_r=l.id,Or=l.overflow,Ii=o}var Kt=null,pt=null,qe=!1,Di=null,nr=!1,qh=Error(r(519));function Li(o){var l=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw El(Jn(l,o)),qh}function vA(o){var l=o.stateNode,d=o.type,h=o.memoizedProps;switch(l[Yt]=o,l[wn]=h,d){case"dialog":$e("cancel",l),$e("close",l);break;case"iframe":case"object":case"embed":$e("load",l);break;case"video":case"audio":for(d=0;d<$l.length;d++)$e($l[d],l);break;case"source":$e("error",l);break;case"img":case"image":case"link":$e("error",l),$e("load",l);break;case"details":$e("toggle",l);break;case"input":$e("invalid",l),Mx(l,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0);break;case"select":$e("invalid",l);break;case"textarea":$e("invalid",l),Fx(l,h.value,h.defaultValue,h.children)}d=h.children,typeof d!="string"&&typeof d!="number"&&typeof d!="bigint"||l.textContent===""+d||h.suppressHydrationWarning===!0||UC(l.textContent,d)?(h.popover!=null&&($e("beforetoggle",l),$e("toggle",l)),h.onScroll!=null&&$e("scroll",l),h.onScrollEnd!=null&&$e("scrollend",l),h.onClick!=null&&(l.onclick=Kr),l=!0):l=!1,l||Li(o,!0)}function wA(o){for(Kt=o.return;Kt;)switch(Kt.tag){case 5:case 31:case 13:nr=!1;return;case 27:case 3:nr=!0;return;default:Kt=Kt.return}}function Ko(o){if(o!==Kt)return!1;if(!qe)return wA(o),qe=!0,!1;var l=o.tag,d;if((d=l!==3&&l!==27)&&((d=l===5)&&(d=o.type,d=!(d!=="form"&&d!=="button")||cg(o.type,o.memoizedProps)),d=!d),d&&pt&&Li(o),wA(o),l===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));pt=YC(o)}else if(l===31){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));pt=YC(o)}else l===27?(l=pt,Yi(o.type)?(o=mg,mg=null,pt=o):pt=l):pt=Kt?ir(o.stateNode.nextSibling):null;return!0}function Pa(){pt=Kt=null,qe=!1}function Wh(){var o=Di;return o!==null&&(Rn===null?Rn=o:Rn.push.apply(Rn,o),Di=null),o}function El(o){Di===null?Di=[o]:Di.push(o)}var Yh=z(null),$a=null,Jr=null;function Mi(o,l,d){_(Yh,l._currentValue),l._currentValue=d}function ei(o){o._currentValue=Yh.current,H(Yh)}function Kh(o,l,d){for(;o!==null;){var h=o.alternate;if((o.childLanes&l)!==l?(o.childLanes|=l,h!==null&&(h.childLanes|=l)):h!==null&&(h.childLanes&l)!==l&&(h.childLanes|=l),o===d)break;o=o.return}}function Xh(o,l,d,h){var y=o.child;for(y!==null&&(y.return=o);y!==null;){var E=y.dependencies;if(E!==null){var T=y.child;E=E.firstContext;e:for(;E!==null;){var C=E;E=y;for(var P=0;P<l.length;P++)if(C.context===l[P]){E.lanes|=d,C=E.alternate,C!==null&&(C.lanes|=d),Kh(E.return,d,o),h||(T=null);break e}E=C.next}}else if(y.tag===18){if(T=y.return,T===null)throw Error(r(341));T.lanes|=d,E=T.alternate,E!==null&&(E.lanes|=d),Kh(T,d,o),T=null}else T=y.child;if(T!==null)T.return=y;else for(T=y;T!==null;){if(T===o){T=null;break}if(y=T.sibling,y!==null){y.return=T.return,T=y;break}T=T.return}y=T}}function Xo(o,l,d,h){o=null;for(var y=l,E=!1;y!==null;){if(!E){if((y.flags&524288)!==0)E=!0;else if((y.flags&262144)!==0)break}if(y.tag===10){var T=y.alternate;if(T===null)throw Error(r(387));if(T=T.memoizedProps,T!==null){var C=y.type;Bn(y.pendingProps.value,T.value)||(o!==null?o.push(C):o=[C])}}else if(y===le.current){if(T=y.alternate,T===null)throw Error(r(387));T.memoizedState.memoizedState!==y.memoizedState.memoizedState&&(o!==null?o.push(ql):o=[ql])}y=y.return}o!==null&&Xh(l,o,d,h),l.flags|=262144}function Fc(o){for(o=o.firstContext;o!==null;){if(!Bn(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function Ha(o){$a=o,Jr=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function Xt(o){return TA($a,o)}function zc(o,l){return $a===null&&Ha(o),TA(o,l)}function TA(o,l){var d=l._currentValue;if(l={context:l,memoizedValue:d,next:null},Jr===null){if(o===null)throw Error(r(308));Jr=l,o.dependencies={lanes:0,firstContext:l},o.flags|=524288}else Jr=Jr.next=l;return d}var GB=typeof AbortController<"u"?AbortController:function(){var o=[],l=this.signal={aborted:!1,addEventListener:function(d,h){o.push(h)}};this.abort=function(){l.aborted=!0,o.forEach(function(d){return d()})}},VB=e.unstable_scheduleCallback,qB=e.unstable_NormalPriority,Nt={$$typeof:A,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Zh(){return{controller:new GB,data:new Map,refCount:0}}function Sl(o){o.refCount--,o.refCount===0&&VB(qB,function(){o.controller.abort()})}var kl=null,Qh=0,Zo=0,Qo=null;function WB(o,l){if(kl===null){var d=kl=[];Qh=0,Zo=tg(),Qo={status:"pending",value:void 0,then:function(h){d.push(h)}}}return Qh++,l.then(xA,xA),l}function xA(){if(--Qh===0&&kl!==null){Qo!==null&&(Qo.status="fulfilled");var o=kl;kl=null,Zo=0,Qo=null;for(var l=0;l<o.length;l++)(0,o[l])()}}function YB(o,l){var d=[],h={status:"pending",value:null,reason:null,then:function(y){d.push(y)}};return o.then(function(){h.status="fulfilled",h.value=l;for(var y=0;y<d.length;y++)(0,d[y])(l)},function(y){for(h.status="rejected",h.reason=y,y=0;y<d.length;y++)(0,d[y])(void 0)}),h}var AA=$.S;$.S=function(o,l){uC=hn(),typeof l=="object"&&l!==null&&typeof l.then=="function"&&WB(o,l),AA!==null&&AA(o,l)};var ja=z(null);function Jh(){var o=ja.current;return o!==null?o:lt.pooledCache}function Uc(o,l){l===null?_(ja,ja.current):_(ja,l.pool)}function CA(){var o=Jh();return o===null?null:{parent:Nt._currentValue,pool:o}}var Jo=Error(r(460)),em=Error(r(474)),Pc=Error(r(542)),$c={then:function(){}};function RA(o){return o=o.status,o==="fulfilled"||o==="rejected"}function NA(o,l,d){switch(d=o[d],d===void 0?o.push(l):d!==l&&(l.then(Kr,Kr),l=d),l.status){case"fulfilled":return l.value;case"rejected":throw o=l.reason,OA(o),o;default:if(typeof l.status=="string")l.then(Kr,Kr);else{if(o=lt,o!==null&&100<o.shellSuspendCounter)throw Error(r(482));o=l,o.status="pending",o.then(function(h){if(l.status==="pending"){var y=l;y.status="fulfilled",y.value=h}},function(h){if(l.status==="pending"){var y=l;y.status="rejected",y.reason=h}})}switch(l.status){case"fulfilled":return l.value;case"rejected":throw o=l.reason,OA(o),o}throw Va=l,Jo}}function Ga(o){try{var l=o._init;return l(o._payload)}catch(d){throw d!==null&&typeof d=="object"&&typeof d.then=="function"?(Va=d,Jo):d}}var Va=null;function _A(){if(Va===null)throw Error(r(459));var o=Va;return Va=null,o}function OA(o){if(o===Jo||o===Pc)throw Error(r(483))}var es=null,vl=0;function Hc(o){var l=vl;return vl+=1,es===null&&(es=[]),NA(es,o,l)}function wl(o,l){l=l.props.ref,o.ref=l!==void 0?l:null}function jc(o,l){throw l.$$typeof===g?Error(r(525)):(o=Object.prototype.toString.call(l),Error(r(31,o==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":o)))}function IA(o){function l(V,j){if(o){var Y=V.deletions;Y===null?(V.deletions=[j],V.flags|=16):Y.push(j)}}function d(V,j){if(!o)return null;for(;j!==null;)l(V,j),j=j.sibling;return null}function h(V){for(var j=new Map;V!==null;)V.key!==null?j.set(V.key,V):j.set(V.index,V),V=V.sibling;return j}function y(V,j){return V=Zr(V,j),V.index=0,V.sibling=null,V}function E(V,j,Y){return V.index=Y,o?(Y=V.alternate,Y!==null?(Y=Y.index,Y<j?(V.flags|=67108866,j):Y):(V.flags|=67108866,j)):(V.flags|=1048576,j)}function T(V){return o&&V.alternate===null&&(V.flags|=67108866),V}function C(V,j,Y,ae){return j===null||j.tag!==6?(j=Hh(Y,V.mode,ae),j.return=V,j):(j=y(j,Y),j.return=V,j)}function P(V,j,Y,ae){var we=Y.type;return we===k?ne(V,j,Y.props.children,ae,Y.key):j!==null&&(j.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===U&&Ga(we)===j.type)?(j=y(j,Y.props),wl(j,Y),j.return=V,j):(j=Mc(Y.type,Y.key,Y.props,null,V.mode,ae),wl(j,Y),j.return=V,j)}function K(V,j,Y,ae){return j===null||j.tag!==4||j.stateNode.containerInfo!==Y.containerInfo||j.stateNode.implementation!==Y.implementation?(j=jh(Y,V.mode,ae),j.return=V,j):(j=y(j,Y.children||[]),j.return=V,j)}function ne(V,j,Y,ae,we){return j===null||j.tag!==7?(j=Ua(Y,V.mode,ae,we),j.return=V,j):(j=y(j,Y),j.return=V,j)}function se(V,j,Y){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=Hh(""+j,V.mode,Y),j.return=V,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case b:return Y=Mc(j.type,j.key,j.props,null,V.mode,Y),wl(Y,j),Y.return=V,Y;case S:return j=jh(j,V.mode,Y),j.return=V,j;case U:return j=Ga(j),se(V,j,Y)}if(Z(j)||q(j))return j=Ua(j,V.mode,Y,null),j.return=V,j;if(typeof j.then=="function")return se(V,Hc(j),Y);if(j.$$typeof===A)return se(V,zc(V,j),Y);jc(V,j)}return null}function X(V,j,Y,ae){var we=j!==null?j.key:null;if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return we!==null?null:C(V,j,""+Y,ae);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case b:return Y.key===we?P(V,j,Y,ae):null;case S:return Y.key===we?K(V,j,Y,ae):null;case U:return Y=Ga(Y),X(V,j,Y,ae)}if(Z(Y)||q(Y))return we!==null?null:ne(V,j,Y,ae,null);if(typeof Y.then=="function")return X(V,j,Hc(Y),ae);if(Y.$$typeof===A)return X(V,j,zc(V,Y),ae);jc(V,Y)}return null}function ee(V,j,Y,ae,we){if(typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint")return V=V.get(Y)||null,C(j,V,""+ae,we);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case b:return V=V.get(ae.key===null?Y:ae.key)||null,P(j,V,ae,we);case S:return V=V.get(ae.key===null?Y:ae.key)||null,K(j,V,ae,we);case U:return ae=Ga(ae),ee(V,j,Y,ae,we)}if(Z(ae)||q(ae))return V=V.get(Y)||null,ne(j,V,ae,we,null);if(typeof ae.then=="function")return ee(V,j,Y,Hc(ae),we);if(ae.$$typeof===A)return ee(V,j,Y,zc(j,ae),we);jc(j,ae)}return null}function ye(V,j,Y,ae){for(var we=null,Ke=null,ve=j,Le=j=0,Ge=null;ve!==null&&Le<Y.length;Le++){ve.index>Le?(Ge=ve,ve=null):Ge=ve.sibling;var Xe=X(V,ve,Y[Le],ae);if(Xe===null){ve===null&&(ve=Ge);break}o&&ve&&Xe.alternate===null&&l(V,ve),j=E(Xe,j,Le),Ke===null?we=Xe:Ke.sibling=Xe,Ke=Xe,ve=Ge}if(Le===Y.length)return d(V,ve),qe&&Qr(V,Le),we;if(ve===null){for(;Le<Y.length;Le++)ve=se(V,Y[Le],ae),ve!==null&&(j=E(ve,j,Le),Ke===null?we=ve:Ke.sibling=ve,Ke=ve);return qe&&Qr(V,Le),we}for(ve=h(ve);Le<Y.length;Le++)Ge=ee(ve,V,Le,Y[Le],ae),Ge!==null&&(o&&Ge.alternate!==null&&ve.delete(Ge.key===null?Le:Ge.key),j=E(Ge,j,Le),Ke===null?we=Ge:Ke.sibling=Ge,Ke=Ge);return o&&ve.forEach(function(Ji){return l(V,Ji)}),qe&&Qr(V,Le),we}function Ce(V,j,Y,ae){if(Y==null)throw Error(r(151));for(var we=null,Ke=null,ve=j,Le=j=0,Ge=null,Xe=Y.next();ve!==null&&!Xe.done;Le++,Xe=Y.next()){ve.index>Le?(Ge=ve,ve=null):Ge=ve.sibling;var Ji=X(V,ve,Xe.value,ae);if(Ji===null){ve===null&&(ve=Ge);break}o&&ve&&Ji.alternate===null&&l(V,ve),j=E(Ji,j,Le),Ke===null?we=Ji:Ke.sibling=Ji,Ke=Ji,ve=Ge}if(Xe.done)return d(V,ve),qe&&Qr(V,Le),we;if(ve===null){for(;!Xe.done;Le++,Xe=Y.next())Xe=se(V,Xe.value,ae),Xe!==null&&(j=E(Xe,j,Le),Ke===null?we=Xe:Ke.sibling=Xe,Ke=Xe);return qe&&Qr(V,Le),we}for(ve=h(ve);!Xe.done;Le++,Xe=Y.next())Xe=ee(ve,V,Le,Xe.value,ae),Xe!==null&&(o&&Xe.alternate!==null&&ve.delete(Xe.key===null?Le:Xe.key),j=E(Xe,j,Le),Ke===null?we=Xe:Ke.sibling=Xe,Ke=Xe);return o&&ve.forEach(function(az){return l(V,az)}),qe&&Qr(V,Le),we}function ot(V,j,Y,ae){if(typeof Y=="object"&&Y!==null&&Y.type===k&&Y.key===null&&(Y=Y.props.children),typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case b:e:{for(var we=Y.key;j!==null;){if(j.key===we){if(we=Y.type,we===k){if(j.tag===7){d(V,j.sibling),ae=y(j,Y.props.children),ae.return=V,V=ae;break e}}else if(j.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===U&&Ga(we)===j.type){d(V,j.sibling),ae=y(j,Y.props),wl(ae,Y),ae.return=V,V=ae;break e}d(V,j);break}else l(V,j);j=j.sibling}Y.type===k?(ae=Ua(Y.props.children,V.mode,ae,Y.key),ae.return=V,V=ae):(ae=Mc(Y.type,Y.key,Y.props,null,V.mode,ae),wl(ae,Y),ae.return=V,V=ae)}return T(V);case S:e:{for(we=Y.key;j!==null;){if(j.key===we)if(j.tag===4&&j.stateNode.containerInfo===Y.containerInfo&&j.stateNode.implementation===Y.implementation){d(V,j.sibling),ae=y(j,Y.children||[]),ae.return=V,V=ae;break e}else{d(V,j);break}else l(V,j);j=j.sibling}ae=jh(Y,V.mode,ae),ae.return=V,V=ae}return T(V);case U:return Y=Ga(Y),ot(V,j,Y,ae)}if(Z(Y))return ye(V,j,Y,ae);if(q(Y)){if(we=q(Y),typeof we!="function")throw Error(r(150));return Y=we.call(Y),Ce(V,j,Y,ae)}if(typeof Y.then=="function")return ot(V,j,Hc(Y),ae);if(Y.$$typeof===A)return ot(V,j,zc(V,Y),ae);jc(V,Y)}return typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint"?(Y=""+Y,j!==null&&j.tag===6?(d(V,j.sibling),ae=y(j,Y),ae.return=V,V=ae):(d(V,j),ae=Hh(Y,V.mode,ae),ae.return=V,V=ae),T(V)):d(V,j)}return function(V,j,Y,ae){try{vl=0;var we=ot(V,j,Y,ae);return es=null,we}catch(ve){if(ve===Jo||ve===Pc)throw ve;var Ke=Fn(29,ve,null,V.mode);return Ke.lanes=ae,Ke.return=V,Ke}}}var qa=IA(!0),DA=IA(!1),Bi=!1;function tm(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function nm(o,l){o=o.updateQueue,l.updateQueue===o&&(l.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,callbacks:null})}function Fi(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function zi(o,l,d){var h=o.updateQueue;if(h===null)return null;if(h=h.shared,(Qe&2)!==0){var y=h.pending;return y===null?l.next=l:(l.next=y.next,y.next=l),h.pending=l,l=Lc(o),gA(o,null,d),l}return Dc(o,h,l,d),Lc(o)}function Tl(o,l,d){if(l=l.updateQueue,l!==null&&(l=l.shared,(d&4194048)!==0)){var h=l.lanes;h&=o.pendingLanes,d|=h,l.lanes=d,Tx(o,d)}}function rm(o,l){var d=o.updateQueue,h=o.alternate;if(h!==null&&(h=h.updateQueue,d===h)){var y=null,E=null;if(d=d.firstBaseUpdate,d!==null){do{var T={lane:d.lane,tag:d.tag,payload:d.payload,callback:null,next:null};E===null?y=E=T:E=E.next=T,d=d.next}while(d!==null);E===null?y=E=l:E=E.next=l}else y=E=l;d={baseState:h.baseState,firstBaseUpdate:y,lastBaseUpdate:E,shared:h.shared,callbacks:h.callbacks},o.updateQueue=d;return}o=d.lastBaseUpdate,o===null?d.firstBaseUpdate=l:o.next=l,d.lastBaseUpdate=l}var im=!1;function xl(){if(im){var o=Qo;if(o!==null)throw o}}function Al(o,l,d,h){im=!1;var y=o.updateQueue;Bi=!1;var E=y.firstBaseUpdate,T=y.lastBaseUpdate,C=y.shared.pending;if(C!==null){y.shared.pending=null;var P=C,K=P.next;P.next=null,T===null?E=K:T.next=K,T=P;var ne=o.alternate;ne!==null&&(ne=ne.updateQueue,C=ne.lastBaseUpdate,C!==T&&(C===null?ne.firstBaseUpdate=K:C.next=K,ne.lastBaseUpdate=P))}if(E!==null){var se=y.baseState;T=0,ne=K=P=null,C=E;do{var X=C.lane&-536870913,ee=X!==C.lane;if(ee?(je&X)===X:(h&X)===X){X!==0&&X===Zo&&(im=!0),ne!==null&&(ne=ne.next={lane:0,tag:C.tag,payload:C.payload,callback:null,next:null});e:{var ye=o,Ce=C;X=l;var ot=d;switch(Ce.tag){case 1:if(ye=Ce.payload,typeof ye=="function"){se=ye.call(ot,se,X);break e}se=ye;break e;case 3:ye.flags=ye.flags&-65537|128;case 0:if(ye=Ce.payload,X=typeof ye=="function"?ye.call(ot,se,X):ye,X==null)break e;se=m({},se,X);break e;case 2:Bi=!0}}X=C.callback,X!==null&&(o.flags|=64,ee&&(o.flags|=8192),ee=y.callbacks,ee===null?y.callbacks=[X]:ee.push(X))}else ee={lane:X,tag:C.tag,payload:C.payload,callback:C.callback,next:null},ne===null?(K=ne=ee,P=se):ne=ne.next=ee,T|=X;if(C=C.next,C===null){if(C=y.shared.pending,C===null)break;ee=C,C=ee.next,ee.next=null,y.lastBaseUpdate=ee,y.shared.pending=null}}while(!0);ne===null&&(P=se),y.baseState=P,y.firstBaseUpdate=K,y.lastBaseUpdate=ne,E===null&&(y.shared.lanes=0),ji|=T,o.lanes=T,o.memoizedState=se}}function LA(o,l){if(typeof o!="function")throw Error(r(191,o));o.call(l)}function MA(o,l){var d=o.callbacks;if(d!==null)for(o.callbacks=null,o=0;o<d.length;o++)LA(d[o],l)}var ts=z(null),Gc=z(0);function BA(o,l){o=ui,_(Gc,o),_(ts,l),ui=o|l.baseLanes}function am(){_(Gc,ui),_(ts,ts.current)}function om(){ui=Gc.current,H(ts),H(Gc)}var zn=z(null),rr=null;function Ui(o){var l=o.alternate;_(At,At.current&1),_(zn,o),rr===null&&(l===null||ts.current!==null||l.memoizedState!==null)&&(rr=o)}function sm(o){_(At,At.current),_(zn,o),rr===null&&(rr=o)}function FA(o){o.tag===22?(_(At,At.current),_(zn,o),rr===null&&(rr=o)):Pi()}function Pi(){_(At,At.current),_(zn,zn.current)}function Un(o){H(zn),rr===o&&(rr=null),H(At)}var At=z(0);function Vc(o){for(var l=o;l!==null;){if(l.tag===13){var d=l.memoizedState;if(d!==null&&(d=d.dehydrated,d===null||fg(d)||hg(d)))return l}else if(l.tag===19&&(l.memoizedProps.revealOrder==="forwards"||l.memoizedProps.revealOrder==="backwards"||l.memoizedProps.revealOrder==="unstable_legacy-backwards"||l.memoizedProps.revealOrder==="together")){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var ti=0,Ie=null,it=null,_t=null,qc=!1,ns=!1,Wa=!1,Wc=0,Cl=0,rs=null,KB=0;function St(){throw Error(r(321))}function lm(o,l){if(l===null)return!1;for(var d=0;d<l.length&&d<o.length;d++)if(!Bn(o[d],l[d]))return!1;return!0}function um(o,l,d,h,y,E){return ti=E,Ie=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,$.H=o===null||o.memoizedState===null?S0:Tm,Wa=!1,E=d(h,y),Wa=!1,ns&&(E=UA(l,d,h,y)),zA(o),E}function zA(o){$.H=_l;var l=it!==null&&it.next!==null;if(ti=0,_t=it=Ie=null,qc=!1,Cl=0,rs=null,l)throw Error(r(300));o===null||Ot||(o=o.dependencies,o!==null&&Fc(o)&&(Ot=!0))}function UA(o,l,d,h){Ie=o;var y=0;do{if(ns&&(rs=null),Cl=0,ns=!1,25<=y)throw Error(r(301));if(y+=1,_t=it=null,o.updateQueue!=null){var E=o.updateQueue;E.lastEffect=null,E.events=null,E.stores=null,E.memoCache!=null&&(E.memoCache.index=0)}$.H=k0,E=l(d,h)}while(ns);return E}function XB(){var o=$.H,l=o.useState()[0];return l=typeof l.then=="function"?Rl(l):l,o=o.useState()[0],(it!==null?it.memoizedState:null)!==o&&(Ie.flags|=1024),l}function cm(){var o=Wc!==0;return Wc=0,o}function dm(o,l,d){l.updateQueue=o.updateQueue,l.flags&=-2053,o.lanes&=~d}function pm(o){if(qc){for(o=o.memoizedState;o!==null;){var l=o.queue;l!==null&&(l.pending=null),o=o.next}qc=!1}ti=0,_t=it=Ie=null,ns=!1,Cl=Wc=0,rs=null}function gn(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return _t===null?Ie.memoizedState=_t=o:_t=_t.next=o,_t}function Ct(){if(it===null){var o=Ie.alternate;o=o!==null?o.memoizedState:null}else o=it.next;var l=_t===null?Ie.memoizedState:_t.next;if(l!==null)_t=l,it=o;else{if(o===null)throw Ie.alternate===null?Error(r(467)):Error(r(310));it=o,o={memoizedState:it.memoizedState,baseState:it.baseState,baseQueue:it.baseQueue,queue:it.queue,next:null},_t===null?Ie.memoizedState=_t=o:_t=_t.next=o}return _t}function Yc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Rl(o){var l=Cl;return Cl+=1,rs===null&&(rs=[]),o=NA(rs,o,l),l=Ie,(_t===null?l.memoizedState:_t.next)===null&&(l=l.alternate,$.H=l===null||l.memoizedState===null?S0:Tm),o}function Kc(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return Rl(o);if(o.$$typeof===A)return Xt(o)}throw Error(r(438,String(o)))}function fm(o){var l=null,d=Ie.updateQueue;if(d!==null&&(l=d.memoCache),l==null){var h=Ie.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(l={data:h.data.map(function(y){return y.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),d===null&&(d=Yc(),Ie.updateQueue=d),d.memoCache=l,d=l.data[l.index],d===void 0)for(d=l.data[l.index]=Array(o),h=0;h<o;h++)d[h]=F;return l.index++,d}function ni(o,l){return typeof l=="function"?l(o):l}function Xc(o){var l=Ct();return hm(l,it,o)}function hm(o,l,d){var h=o.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=d;var y=o.baseQueue,E=h.pending;if(E!==null){if(y!==null){var T=y.next;y.next=E.next,E.next=T}l.baseQueue=y=E,h.pending=null}if(E=o.baseState,y===null)o.memoizedState=E;else{l=y.next;var C=T=null,P=null,K=l,ne=!1;do{var se=K.lane&-536870913;if(se!==K.lane?(je&se)===se:(ti&se)===se){var X=K.revertLane;if(X===0)P!==null&&(P=P.next={lane:0,revertLane:0,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null}),se===Zo&&(ne=!0);else if((ti&X)===X){K=K.next,X===Zo&&(ne=!0);continue}else se={lane:0,revertLane:K.revertLane,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},P===null?(C=P=se,T=E):P=P.next=se,Ie.lanes|=X,ji|=X;se=K.action,Wa&&d(E,se),E=K.hasEagerState?K.eagerState:d(E,se)}else X={lane:se,revertLane:K.revertLane,gesture:K.gesture,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},P===null?(C=P=X,T=E):P=P.next=X,Ie.lanes|=se,ji|=se;K=K.next}while(K!==null&&K!==l);if(P===null?T=E:P.next=C,!Bn(E,o.memoizedState)&&(Ot=!0,ne&&(d=Qo,d!==null)))throw d;o.memoizedState=E,o.baseState=T,o.baseQueue=P,h.lastRenderedState=E}return y===null&&(h.lanes=0),[o.memoizedState,h.dispatch]}function mm(o){var l=Ct(),d=l.queue;if(d===null)throw Error(r(311));d.lastRenderedReducer=o;var h=d.dispatch,y=d.pending,E=l.memoizedState;if(y!==null){d.pending=null;var T=y=y.next;do E=o(E,T.action),T=T.next;while(T!==y);Bn(E,l.memoizedState)||(Ot=!0),l.memoizedState=E,l.baseQueue===null&&(l.baseState=E),d.lastRenderedState=E}return[E,h]}function PA(o,l,d){var h=Ie,y=Ct(),E=qe;if(E){if(d===void 0)throw Error(r(407));d=d()}else d=l();var T=!Bn((it||y).memoizedState,d);if(T&&(y.memoizedState=d,Ot=!0),y=y.queue,ym(jA.bind(null,h,y,o),[o]),y.getSnapshot!==l||T||_t!==null&&_t.memoizedState.tag&1){if(h.flags|=2048,is(9,{destroy:void 0},HA.bind(null,h,y,d,l),null),lt===null)throw Error(r(349));E||(ti&127)!==0||$A(h,l,d)}return d}function $A(o,l,d){o.flags|=16384,o={getSnapshot:l,value:d},l=Ie.updateQueue,l===null?(l=Yc(),Ie.updateQueue=l,l.stores=[o]):(d=l.stores,d===null?l.stores=[o]:d.push(o))}function HA(o,l,d,h){l.value=d,l.getSnapshot=h,GA(l)&&VA(o)}function jA(o,l,d){return d(function(){GA(l)&&VA(o)})}function GA(o){var l=o.getSnapshot;o=o.value;try{var d=l();return!Bn(o,d)}catch{return!0}}function VA(o){var l=za(o,2);l!==null&&Nn(l,o,2)}function gm(o){var l=gn();if(typeof o=="function"){var d=o;if(o=d(),Wa){vn(!0);try{d()}finally{vn(!1)}}}return l.memoizedState=l.baseState=o,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ni,lastRenderedState:o},l}function qA(o,l,d,h){return o.baseState=d,hm(o,it,typeof h=="function"?h:ni)}function ZB(o,l,d,h,y){if(Jc(o))throw Error(r(485));if(o=l.action,o!==null){var E={payload:y,action:o,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(T){E.listeners.push(T)}};$.T!==null?d(!0):E.isTransition=!1,h(E),d=l.pending,d===null?(E.next=l.pending=E,WA(l,E)):(E.next=d.next,l.pending=d.next=E)}}function WA(o,l){var d=l.action,h=l.payload,y=o.state;if(l.isTransition){var E=$.T,T={};$.T=T;try{var C=d(y,h),P=$.S;P!==null&&P(T,C),YA(o,l,C)}catch(K){bm(o,l,K)}finally{E!==null&&T.types!==null&&(E.types=T.types),$.T=E}}else try{E=d(y,h),YA(o,l,E)}catch(K){bm(o,l,K)}}function YA(o,l,d){d!==null&&typeof d=="object"&&typeof d.then=="function"?d.then(function(h){KA(o,l,h)},function(h){return bm(o,l,h)}):KA(o,l,d)}function KA(o,l,d){l.status="fulfilled",l.value=d,XA(l),o.state=d,l=o.pending,l!==null&&(d=l.next,d===l?o.pending=null:(d=d.next,l.next=d,WA(o,d)))}function bm(o,l,d){var h=o.pending;if(o.pending=null,h!==null){h=h.next;do l.status="rejected",l.reason=d,XA(l),l=l.next;while(l!==h)}o.action=null}function XA(o){o=o.listeners;for(var l=0;l<o.length;l++)(0,o[l])()}function ZA(o,l){return l}function QA(o,l){if(qe){var d=lt.formState;if(d!==null){e:{var h=Ie;if(qe){if(pt){t:{for(var y=pt,E=nr;y.nodeType!==8;){if(!E){y=null;break t}if(y=ir(y.nextSibling),y===null){y=null;break t}}E=y.data,y=E==="F!"||E==="F"?y:null}if(y){pt=ir(y.nextSibling),h=y.data==="F!";break e}}Li(h)}h=!1}h&&(l=d[0])}}return d=gn(),d.memoizedState=d.baseState=l,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ZA,lastRenderedState:l},d.queue=h,d=b0.bind(null,Ie,h),h.dispatch=d,h=gm(!1),E=wm.bind(null,Ie,!1,h.queue),h=gn(),y={state:l,dispatch:null,action:o,pending:null},h.queue=y,d=ZB.bind(null,Ie,y,E,d),y.dispatch=d,h.memoizedState=o,[l,d,!1]}function JA(o){var l=Ct();return e0(l,it,o)}function e0(o,l,d){if(l=hm(o,l,ZA)[0],o=Xc(ni)[0],typeof l=="object"&&l!==null&&typeof l.then=="function")try{var h=Rl(l)}catch(T){throw T===Jo?Pc:T}else h=l;l=Ct();var y=l.queue,E=y.dispatch;return d!==l.memoizedState&&(Ie.flags|=2048,is(9,{destroy:void 0},QB.bind(null,y,d),null)),[h,E,o]}function QB(o,l){o.action=l}function t0(o){var l=Ct(),d=it;if(d!==null)return e0(l,d,o);Ct(),l=l.memoizedState,d=Ct();var h=d.queue.dispatch;return d.memoizedState=o,[l,h,!1]}function is(o,l,d,h){return o={tag:o,create:d,deps:h,inst:l,next:null},l=Ie.updateQueue,l===null&&(l=Yc(),Ie.updateQueue=l),d=l.lastEffect,d===null?l.lastEffect=o.next=o:(h=d.next,d.next=o,o.next=h,l.lastEffect=o),o}function n0(){return Ct().memoizedState}function Zc(o,l,d,h){var y=gn();Ie.flags|=o,y.memoizedState=is(1|l,{destroy:void 0},d,h===void 0?null:h)}function Qc(o,l,d,h){var y=Ct();h=h===void 0?null:h;var E=y.memoizedState.inst;it!==null&&h!==null&&lm(h,it.memoizedState.deps)?y.memoizedState=is(l,E,d,h):(Ie.flags|=o,y.memoizedState=is(1|l,E,d,h))}function r0(o,l){Zc(8390656,8,o,l)}function ym(o,l){Qc(2048,8,o,l)}function JB(o){Ie.flags|=4;var l=Ie.updateQueue;if(l===null)l=Yc(),Ie.updateQueue=l,l.events=[o];else{var d=l.events;d===null?l.events=[o]:d.push(o)}}function i0(o){var l=Ct().memoizedState;return JB({ref:l,nextImpl:o}),function(){if((Qe&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}function a0(o,l){return Qc(4,2,o,l)}function o0(o,l){return Qc(4,4,o,l)}function s0(o,l){if(typeof l=="function"){o=o();var d=l(o);return function(){typeof d=="function"?d():l(null)}}if(l!=null)return o=o(),l.current=o,function(){l.current=null}}function l0(o,l,d){d=d!=null?d.concat([o]):null,Qc(4,4,s0.bind(null,l,o),d)}function Em(){}function u0(o,l){var d=Ct();l=l===void 0?null:l;var h=d.memoizedState;return l!==null&&lm(l,h[1])?h[0]:(d.memoizedState=[o,l],o)}function c0(o,l){var d=Ct();l=l===void 0?null:l;var h=d.memoizedState;if(l!==null&&lm(l,h[1]))return h[0];if(h=o(),Wa){vn(!0);try{o()}finally{vn(!1)}}return d.memoizedState=[h,l],h}function Sm(o,l,d){return d===void 0||(ti&1073741824)!==0&&(je&261930)===0?o.memoizedState=l:(o.memoizedState=d,o=dC(),Ie.lanes|=o,ji|=o,d)}function d0(o,l,d,h){return Bn(d,l)?d:ts.current!==null?(o=Sm(o,d,h),Bn(o,l)||(Ot=!0),o):(ti&42)===0||(ti&1073741824)!==0&&(je&261930)===0?(Ot=!0,o.memoizedState=d):(o=dC(),Ie.lanes|=o,ji|=o,l)}function p0(o,l,d,h,y){var E=W.p;W.p=E!==0&&8>E?E:8;var T=$.T,C={};$.T=C,wm(o,!1,l,d);try{var P=y(),K=$.S;if(K!==null&&K(C,P),P!==null&&typeof P=="object"&&typeof P.then=="function"){var ne=YB(P,h);Nl(o,l,ne,Hn(o))}else Nl(o,l,h,Hn(o))}catch(se){Nl(o,l,{then:function(){},status:"rejected",reason:se},Hn())}finally{W.p=E,T!==null&&C.types!==null&&(T.types=C.types),$.T=T}}function eF(){}function km(o,l,d,h){if(o.tag!==5)throw Error(r(476));var y=f0(o).queue;p0(o,y,l,re,d===null?eF:function(){return h0(o),d(h)})}function f0(o){var l=o.memoizedState;if(l!==null)return l;l={memoizedState:re,baseState:re,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ni,lastRenderedState:re},next:null};var d={};return l.next={memoizedState:d,baseState:d,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ni,lastRenderedState:d},next:null},o.memoizedState=l,o=o.alternate,o!==null&&(o.memoizedState=l),l}function h0(o){var l=f0(o);l.next===null&&(l=o.alternate.memoizedState),Nl(o,l.next.queue,{},Hn())}function vm(){return Xt(ql)}function m0(){return Ct().memoizedState}function g0(){return Ct().memoizedState}function tF(o){for(var l=o.return;l!==null;){switch(l.tag){case 24:case 3:var d=Hn();o=Fi(d);var h=zi(l,o,d);h!==null&&(Nn(h,l,d),Tl(h,l,d)),l={cache:Zh()},o.payload=l;return}l=l.return}}function nF(o,l,d){var h=Hn();d={lane:h,revertLane:0,gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},Jc(o)?y0(l,d):(d=Ph(o,l,d,h),d!==null&&(Nn(d,o,h),E0(d,l,h)))}function b0(o,l,d){var h=Hn();Nl(o,l,d,h)}function Nl(o,l,d,h){var y={lane:h,revertLane:0,gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null};if(Jc(o))y0(l,y);else{var E=o.alternate;if(o.lanes===0&&(E===null||E.lanes===0)&&(E=l.lastRenderedReducer,E!==null))try{var T=l.lastRenderedState,C=E(T,d);if(y.hasEagerState=!0,y.eagerState=C,Bn(C,T))return Dc(o,l,y,0),lt===null&&Ic(),!1}catch{}if(d=Ph(o,l,y,h),d!==null)return Nn(d,o,h),E0(d,l,h),!0}return!1}function wm(o,l,d,h){if(h={lane:2,revertLane:tg(),gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null},Jc(o)){if(l)throw Error(r(479))}else l=Ph(o,d,h,2),l!==null&&Nn(l,o,2)}function Jc(o){var l=o.alternate;return o===Ie||l!==null&&l===Ie}function y0(o,l){ns=qc=!0;var d=o.pending;d===null?l.next=l:(l.next=d.next,d.next=l),o.pending=l}function E0(o,l,d){if((d&4194048)!==0){var h=l.lanes;h&=o.pendingLanes,d|=h,l.lanes=d,Tx(o,d)}}var _l={readContext:Xt,use:Kc,useCallback:St,useContext:St,useEffect:St,useImperativeHandle:St,useLayoutEffect:St,useInsertionEffect:St,useMemo:St,useReducer:St,useRef:St,useState:St,useDebugValue:St,useDeferredValue:St,useTransition:St,useSyncExternalStore:St,useId:St,useHostTransitionStatus:St,useFormState:St,useActionState:St,useOptimistic:St,useMemoCache:St,useCacheRefresh:St};_l.useEffectEvent=St;var S0={readContext:Xt,use:Kc,useCallback:function(o,l){return gn().memoizedState=[o,l===void 0?null:l],o},useContext:Xt,useEffect:r0,useImperativeHandle:function(o,l,d){d=d!=null?d.concat([o]):null,Zc(4194308,4,s0.bind(null,l,o),d)},useLayoutEffect:function(o,l){return Zc(4194308,4,o,l)},useInsertionEffect:function(o,l){Zc(4,2,o,l)},useMemo:function(o,l){var d=gn();l=l===void 0?null:l;var h=o();if(Wa){vn(!0);try{o()}finally{vn(!1)}}return d.memoizedState=[h,l],h},useReducer:function(o,l,d){var h=gn();if(d!==void 0){var y=d(l);if(Wa){vn(!0);try{d(l)}finally{vn(!1)}}}else y=l;return h.memoizedState=h.baseState=y,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:y},h.queue=o,o=o.dispatch=nF.bind(null,Ie,o),[h.memoizedState,o]},useRef:function(o){var l=gn();return o={current:o},l.memoizedState=o},useState:function(o){o=gm(o);var l=o.queue,d=b0.bind(null,Ie,l);return l.dispatch=d,[o.memoizedState,d]},useDebugValue:Em,useDeferredValue:function(o,l){var d=gn();return Sm(d,o,l)},useTransition:function(){var o=gm(!1);return o=p0.bind(null,Ie,o.queue,!0,!1),gn().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,l,d){var h=Ie,y=gn();if(qe){if(d===void 0)throw Error(r(407));d=d()}else{if(d=l(),lt===null)throw Error(r(349));(je&127)!==0||$A(h,l,d)}y.memoizedState=d;var E={value:d,getSnapshot:l};return y.queue=E,r0(jA.bind(null,h,E,o),[o]),h.flags|=2048,is(9,{destroy:void 0},HA.bind(null,h,E,d,l),null),d},useId:function(){var o=gn(),l=lt.identifierPrefix;if(qe){var d=Or,h=_r;d=(h&~(1<<32-st(h)-1)).toString(32)+d,l="_"+l+"R_"+d,d=Wc++,0<d&&(l+="H"+d.toString(32)),l+="_"}else d=KB++,l="_"+l+"r_"+d.toString(32)+"_";return o.memoizedState=l},useHostTransitionStatus:vm,useFormState:QA,useActionState:QA,useOptimistic:function(o){var l=gn();l.memoizedState=l.baseState=o;var d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=d,l=wm.bind(null,Ie,!0,d),d.dispatch=l,[o,l]},useMemoCache:fm,useCacheRefresh:function(){return gn().memoizedState=tF.bind(null,Ie)},useEffectEvent:function(o){var l=gn(),d={impl:o};return l.memoizedState=d,function(){if((Qe&2)!==0)throw Error(r(440));return d.impl.apply(void 0,arguments)}}},Tm={readContext:Xt,use:Kc,useCallback:u0,useContext:Xt,useEffect:ym,useImperativeHandle:l0,useInsertionEffect:a0,useLayoutEffect:o0,useMemo:c0,useReducer:Xc,useRef:n0,useState:function(){return Xc(ni)},useDebugValue:Em,useDeferredValue:function(o,l){var d=Ct();return d0(d,it.memoizedState,o,l)},useTransition:function(){var o=Xc(ni)[0],l=Ct().memoizedState;return[typeof o=="boolean"?o:Rl(o),l]},useSyncExternalStore:PA,useId:m0,useHostTransitionStatus:vm,useFormState:JA,useActionState:JA,useOptimistic:function(o,l){var d=Ct();return qA(d,it,o,l)},useMemoCache:fm,useCacheRefresh:g0};Tm.useEffectEvent=i0;var k0={readContext:Xt,use:Kc,useCallback:u0,useContext:Xt,useEffect:ym,useImperativeHandle:l0,useInsertionEffect:a0,useLayoutEffect:o0,useMemo:c0,useReducer:mm,useRef:n0,useState:function(){return mm(ni)},useDebugValue:Em,useDeferredValue:function(o,l){var d=Ct();return it===null?Sm(d,o,l):d0(d,it.memoizedState,o,l)},useTransition:function(){var o=mm(ni)[0],l=Ct().memoizedState;return[typeof o=="boolean"?o:Rl(o),l]},useSyncExternalStore:PA,useId:m0,useHostTransitionStatus:vm,useFormState:t0,useActionState:t0,useOptimistic:function(o,l){var d=Ct();return it!==null?qA(d,it,o,l):(d.baseState=o,[o,d.queue.dispatch])},useMemoCache:fm,useCacheRefresh:g0};k0.useEffectEvent=i0;function xm(o,l,d,h){l=o.memoizedState,d=d(h,l),d=d==null?l:m({},l,d),o.memoizedState=d,o.lanes===0&&(o.updateQueue.baseState=d)}var Am={enqueueSetState:function(o,l,d){o=o._reactInternals;var h=Hn(),y=Fi(h);y.payload=l,d!=null&&(y.callback=d),l=zi(o,y,h),l!==null&&(Nn(l,o,h),Tl(l,o,h))},enqueueReplaceState:function(o,l,d){o=o._reactInternals;var h=Hn(),y=Fi(h);y.tag=1,y.payload=l,d!=null&&(y.callback=d),l=zi(o,y,h),l!==null&&(Nn(l,o,h),Tl(l,o,h))},enqueueForceUpdate:function(o,l){o=o._reactInternals;var d=Hn(),h=Fi(d);h.tag=2,l!=null&&(h.callback=l),l=zi(o,h,d),l!==null&&(Nn(l,o,d),Tl(l,o,d))}};function v0(o,l,d,h,y,E,T){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(h,E,T):l.prototype&&l.prototype.isPureReactComponent?!gl(d,h)||!gl(y,E):!0}function w0(o,l,d,h){o=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(d,h),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(d,h),l.state!==o&&Am.enqueueReplaceState(l,l.state,null)}function Ya(o,l){var d=l;if("ref"in l){d={};for(var h in l)h!=="ref"&&(d[h]=l[h])}if(o=o.defaultProps){d===l&&(d=m({},d));for(var y in o)d[y]===void 0&&(d[y]=o[y])}return d}function T0(o){Oc(o)}function x0(o){console.error(o)}function A0(o){Oc(o)}function ed(o,l){try{var d=o.onUncaughtError;d(l.value,{componentStack:l.stack})}catch(h){setTimeout(function(){throw h})}}function C0(o,l,d){try{var h=o.onCaughtError;h(d.value,{componentStack:d.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(y){setTimeout(function(){throw y})}}function Cm(o,l,d){return d=Fi(d),d.tag=3,d.payload={element:null},d.callback=function(){ed(o,l)},d}function R0(o){return o=Fi(o),o.tag=3,o}function N0(o,l,d,h){var y=d.type.getDerivedStateFromError;if(typeof y=="function"){var E=h.value;o.payload=function(){return y(E)},o.callback=function(){C0(l,d,h)}}var T=d.stateNode;T!==null&&typeof T.componentDidCatch=="function"&&(o.callback=function(){C0(l,d,h),typeof y!="function"&&(Gi===null?Gi=new Set([this]):Gi.add(this));var C=h.stack;this.componentDidCatch(h.value,{componentStack:C!==null?C:""})})}function rF(o,l,d,h,y){if(d.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){if(l=d.alternate,l!==null&&Xo(l,d,y,!0),d=zn.current,d!==null){switch(d.tag){case 31:case 13:return rr===null?pd():d.alternate===null&&kt===0&&(kt=3),d.flags&=-257,d.flags|=65536,d.lanes=y,h===$c?d.flags|=16384:(l=d.updateQueue,l===null?d.updateQueue=new Set([h]):l.add(h),Qm(o,h,y)),!1;case 22:return d.flags|=65536,h===$c?d.flags|=16384:(l=d.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([h])},d.updateQueue=l):(d=l.retryQueue,d===null?l.retryQueue=new Set([h]):d.add(h)),Qm(o,h,y)),!1}throw Error(r(435,d.tag))}return Qm(o,h,y),pd(),!1}if(qe)return l=zn.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=y,h!==qh&&(o=Error(r(422),{cause:h}),El(Jn(o,d)))):(h!==qh&&(l=Error(r(423),{cause:h}),El(Jn(l,d))),o=o.current.alternate,o.flags|=65536,y&=-y,o.lanes|=y,h=Jn(h,d),y=Cm(o.stateNode,h,y),rm(o,y),kt!==4&&(kt=2)),!1;var E=Error(r(520),{cause:h});if(E=Jn(E,d),zl===null?zl=[E]:zl.push(E),kt!==4&&(kt=2),l===null)return!0;h=Jn(h,d),d=l;do{switch(d.tag){case 3:return d.flags|=65536,o=y&-y,d.lanes|=o,o=Cm(d.stateNode,h,o),rm(d,o),!1;case 1:if(l=d.type,E=d.stateNode,(d.flags&128)===0&&(typeof l.getDerivedStateFromError=="function"||E!==null&&typeof E.componentDidCatch=="function"&&(Gi===null||!Gi.has(E))))return d.flags|=65536,y&=-y,d.lanes|=y,y=R0(y),N0(y,o,d,h),rm(d,y),!1}d=d.return}while(d!==null);return!1}var Rm=Error(r(461)),Ot=!1;function Zt(o,l,d,h){l.child=o===null?DA(l,null,d,h):qa(l,o.child,d,h)}function _0(o,l,d,h,y){d=d.render;var E=l.ref;if("ref"in h){var T={};for(var C in h)C!=="ref"&&(T[C]=h[C])}else T=h;return Ha(l),h=um(o,l,d,T,E,y),C=cm(),o!==null&&!Ot?(dm(o,l,y),ri(o,l,y)):(qe&&C&&Gh(l),l.flags|=1,Zt(o,l,h,y),l.child)}function O0(o,l,d,h,y){if(o===null){var E=d.type;return typeof E=="function"&&!$h(E)&&E.defaultProps===void 0&&d.compare===null?(l.tag=15,l.type=E,I0(o,l,E,h,y)):(o=Mc(d.type,null,h,l,l.mode,y),o.ref=l.ref,o.return=l,l.child=o)}if(E=o.child,!Bm(o,y)){var T=E.memoizedProps;if(d=d.compare,d=d!==null?d:gl,d(T,h)&&o.ref===l.ref)return ri(o,l,y)}return l.flags|=1,o=Zr(E,h),o.ref=l.ref,o.return=l,l.child=o}function I0(o,l,d,h,y){if(o!==null){var E=o.memoizedProps;if(gl(E,h)&&o.ref===l.ref)if(Ot=!1,l.pendingProps=h=E,Bm(o,y))(o.flags&131072)!==0&&(Ot=!0);else return l.lanes=o.lanes,ri(o,l,y)}return Nm(o,l,d,h,y)}function D0(o,l,d,h){var y=h.children,E=o!==null?o.memoizedState:null;if(o===null&&l.stateNode===null&&(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),h.mode==="hidden"){if((l.flags&128)!==0){if(E=E!==null?E.baseLanes|d:d,o!==null){for(h=l.child=o.child,y=0;h!==null;)y=y|h.lanes|h.childLanes,h=h.sibling;h=y&~E}else h=0,l.child=null;return L0(o,l,E,d,h)}if((d&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},o!==null&&Uc(l,E!==null?E.cachePool:null),E!==null?BA(l,E):am(),FA(l);else return h=l.lanes=536870912,L0(o,l,E!==null?E.baseLanes|d:d,d,h)}else E!==null?(Uc(l,E.cachePool),BA(l,E),Pi(),l.memoizedState=null):(o!==null&&Uc(l,null),am(),Pi());return Zt(o,l,y,d),l.child}function Ol(o,l){return o!==null&&o.tag===22||l.stateNode!==null||(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.sibling}function L0(o,l,d,h,y){var E=Jh();return E=E===null?null:{parent:Nt._currentValue,pool:E},l.memoizedState={baseLanes:d,cachePool:E},o!==null&&Uc(l,null),am(),FA(l),o!==null&&Xo(o,l,h,!0),l.childLanes=y,null}function td(o,l){return l=rd({mode:l.mode,children:l.children},o.mode),l.ref=o.ref,o.child=l,l.return=o,l}function M0(o,l,d){return qa(l,o.child,null,d),o=td(l,l.pendingProps),o.flags|=2,Un(l),l.memoizedState=null,o}function iF(o,l,d){var h=l.pendingProps,y=(l.flags&128)!==0;if(l.flags&=-129,o===null){if(qe){if(h.mode==="hidden")return o=td(l,h),l.lanes=536870912,Ol(null,o);if(sm(l),(o=pt)?(o=WC(o,nr),o=o!==null&&o.data==="&"?o:null,o!==null&&(l.memoizedState={dehydrated:o,treeContext:Ii!==null?{id:_r,overflow:Or}:null,retryLane:536870912,hydrationErrors:null},d=yA(o),d.return=l,l.child=d,Kt=l,pt=null)):o=null,o===null)throw Li(l);return l.lanes=536870912,null}return td(l,h)}var E=o.memoizedState;if(E!==null){var T=E.dehydrated;if(sm(l),y)if(l.flags&256)l.flags&=-257,l=M0(o,l,d);else if(l.memoizedState!==null)l.child=o.child,l.flags|=128,l=null;else throw Error(r(558));else if(Ot||Xo(o,l,d,!1),y=(d&o.childLanes)!==0,Ot||y){if(h=lt,h!==null&&(T=xx(h,d),T!==0&&T!==E.retryLane))throw E.retryLane=T,za(o,T),Nn(h,o,T),Rm;pd(),l=M0(o,l,d)}else o=E.treeContext,pt=ir(T.nextSibling),Kt=l,qe=!0,Di=null,nr=!1,o!==null&&kA(l,o),l=td(l,h),l.flags|=4096;return l}return o=Zr(o.child,{mode:h.mode,children:h.children}),o.ref=l.ref,l.child=o,o.return=l,o}function nd(o,l){var d=l.ref;if(d===null)o!==null&&o.ref!==null&&(l.flags|=4194816);else{if(typeof d!="function"&&typeof d!="object")throw Error(r(284));(o===null||o.ref!==d)&&(l.flags|=4194816)}}function Nm(o,l,d,h,y){return Ha(l),d=um(o,l,d,h,void 0,y),h=cm(),o!==null&&!Ot?(dm(o,l,y),ri(o,l,y)):(qe&&h&&Gh(l),l.flags|=1,Zt(o,l,d,y),l.child)}function B0(o,l,d,h,y,E){return Ha(l),l.updateQueue=null,d=UA(l,h,d,y),zA(o),h=cm(),o!==null&&!Ot?(dm(o,l,E),ri(o,l,E)):(qe&&h&&Gh(l),l.flags|=1,Zt(o,l,d,E),l.child)}function F0(o,l,d,h,y){if(Ha(l),l.stateNode===null){var E=qo,T=d.contextType;typeof T=="object"&&T!==null&&(E=Xt(T)),E=new d(h,E),l.memoizedState=E.state!==null&&E.state!==void 0?E.state:null,E.updater=Am,l.stateNode=E,E._reactInternals=l,E=l.stateNode,E.props=h,E.state=l.memoizedState,E.refs={},tm(l),T=d.contextType,E.context=typeof T=="object"&&T!==null?Xt(T):qo,E.state=l.memoizedState,T=d.getDerivedStateFromProps,typeof T=="function"&&(xm(l,d,T,h),E.state=l.memoizedState),typeof d.getDerivedStateFromProps=="function"||typeof E.getSnapshotBeforeUpdate=="function"||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(T=E.state,typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount(),T!==E.state&&Am.enqueueReplaceState(E,E.state,null),Al(l,h,E,y),xl(),E.state=l.memoizedState),typeof E.componentDidMount=="function"&&(l.flags|=4194308),h=!0}else if(o===null){E=l.stateNode;var C=l.memoizedProps,P=Ya(d,C);E.props=P;var K=E.context,ne=d.contextType;T=qo,typeof ne=="object"&&ne!==null&&(T=Xt(ne));var se=d.getDerivedStateFromProps;ne=typeof se=="function"||typeof E.getSnapshotBeforeUpdate=="function",C=l.pendingProps!==C,ne||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(C||K!==T)&&w0(l,E,h,T),Bi=!1;var X=l.memoizedState;E.state=X,Al(l,h,E,y),xl(),K=l.memoizedState,C||X!==K||Bi?(typeof se=="function"&&(xm(l,d,se,h),K=l.memoizedState),(P=Bi||v0(l,d,P,h,X,K,T))?(ne||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount()),typeof E.componentDidMount=="function"&&(l.flags|=4194308)):(typeof E.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=h,l.memoizedState=K),E.props=h,E.state=K,E.context=T,h=P):(typeof E.componentDidMount=="function"&&(l.flags|=4194308),h=!1)}else{E=l.stateNode,nm(o,l),T=l.memoizedProps,ne=Ya(d,T),E.props=ne,se=l.pendingProps,X=E.context,K=d.contextType,P=qo,typeof K=="object"&&K!==null&&(P=Xt(K)),C=d.getDerivedStateFromProps,(K=typeof C=="function"||typeof E.getSnapshotBeforeUpdate=="function")||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(T!==se||X!==P)&&w0(l,E,h,P),Bi=!1,X=l.memoizedState,E.state=X,Al(l,h,E,y),xl();var ee=l.memoizedState;T!==se||X!==ee||Bi||o!==null&&o.dependencies!==null&&Fc(o.dependencies)?(typeof C=="function"&&(xm(l,d,C,h),ee=l.memoizedState),(ne=Bi||v0(l,d,ne,h,X,ee,P)||o!==null&&o.dependencies!==null&&Fc(o.dependencies))?(K||typeof E.UNSAFE_componentWillUpdate!="function"&&typeof E.componentWillUpdate!="function"||(typeof E.componentWillUpdate=="function"&&E.componentWillUpdate(h,ee,P),typeof E.UNSAFE_componentWillUpdate=="function"&&E.UNSAFE_componentWillUpdate(h,ee,P)),typeof E.componentDidUpdate=="function"&&(l.flags|=4),typeof E.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof E.componentDidUpdate!="function"||T===o.memoizedProps&&X===o.memoizedState||(l.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||T===o.memoizedProps&&X===o.memoizedState||(l.flags|=1024),l.memoizedProps=h,l.memoizedState=ee),E.props=h,E.state=ee,E.context=P,h=ne):(typeof E.componentDidUpdate!="function"||T===o.memoizedProps&&X===o.memoizedState||(l.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||T===o.memoizedProps&&X===o.memoizedState||(l.flags|=1024),h=!1)}return E=h,nd(o,l),h=(l.flags&128)!==0,E||h?(E=l.stateNode,d=h&&typeof d.getDerivedStateFromError!="function"?null:E.render(),l.flags|=1,o!==null&&h?(l.child=qa(l,o.child,null,y),l.child=qa(l,null,d,y)):Zt(o,l,d,y),l.memoizedState=E.state,o=l.child):o=ri(o,l,y),o}function z0(o,l,d,h){return Pa(),l.flags|=256,Zt(o,l,d,h),l.child}var _m={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Om(o){return{baseLanes:o,cachePool:CA()}}function Im(o,l,d){return o=o!==null?o.childLanes&~d:0,l&&(o|=$n),o}function U0(o,l,d){var h=l.pendingProps,y=!1,E=(l.flags&128)!==0,T;if((T=E)||(T=o!==null&&o.memoizedState===null?!1:(At.current&2)!==0),T&&(y=!0,l.flags&=-129),T=(l.flags&32)!==0,l.flags&=-33,o===null){if(qe){if(y?Ui(l):Pi(),(o=pt)?(o=WC(o,nr),o=o!==null&&o.data!=="&"?o:null,o!==null&&(l.memoizedState={dehydrated:o,treeContext:Ii!==null?{id:_r,overflow:Or}:null,retryLane:536870912,hydrationErrors:null},d=yA(o),d.return=l,l.child=d,Kt=l,pt=null)):o=null,o===null)throw Li(l);return hg(o)?l.lanes=32:l.lanes=536870912,null}var C=h.children;return h=h.fallback,y?(Pi(),y=l.mode,C=rd({mode:"hidden",children:C},y),h=Ua(h,y,d,null),C.return=l,h.return=l,C.sibling=h,l.child=C,h=l.child,h.memoizedState=Om(d),h.childLanes=Im(o,T,d),l.memoizedState=_m,Ol(null,h)):(Ui(l),Dm(l,C))}var P=o.memoizedState;if(P!==null&&(C=P.dehydrated,C!==null)){if(E)l.flags&256?(Ui(l),l.flags&=-257,l=Lm(o,l,d)):l.memoizedState!==null?(Pi(),l.child=o.child,l.flags|=128,l=null):(Pi(),C=h.fallback,y=l.mode,h=rd({mode:"visible",children:h.children},y),C=Ua(C,y,d,null),C.flags|=2,h.return=l,C.return=l,h.sibling=C,l.child=h,qa(l,o.child,null,d),h=l.child,h.memoizedState=Om(d),h.childLanes=Im(o,T,d),l.memoizedState=_m,l=Ol(null,h));else if(Ui(l),hg(C)){if(T=C.nextSibling&&C.nextSibling.dataset,T)var K=T.dgst;T=K,h=Error(r(419)),h.stack="",h.digest=T,El({value:h,source:null,stack:null}),l=Lm(o,l,d)}else if(Ot||Xo(o,l,d,!1),T=(d&o.childLanes)!==0,Ot||T){if(T=lt,T!==null&&(h=xx(T,d),h!==0&&h!==P.retryLane))throw P.retryLane=h,za(o,h),Nn(T,o,h),Rm;fg(C)||pd(),l=Lm(o,l,d)}else fg(C)?(l.flags|=192,l.child=o.child,l=null):(o=P.treeContext,pt=ir(C.nextSibling),Kt=l,qe=!0,Di=null,nr=!1,o!==null&&kA(l,o),l=Dm(l,h.children),l.flags|=4096);return l}return y?(Pi(),C=h.fallback,y=l.mode,P=o.child,K=P.sibling,h=Zr(P,{mode:"hidden",children:h.children}),h.subtreeFlags=P.subtreeFlags&65011712,K!==null?C=Zr(K,C):(C=Ua(C,y,d,null),C.flags|=2),C.return=l,h.return=l,h.sibling=C,l.child=h,Ol(null,h),h=l.child,C=o.child.memoizedState,C===null?C=Om(d):(y=C.cachePool,y!==null?(P=Nt._currentValue,y=y.parent!==P?{parent:P,pool:P}:y):y=CA(),C={baseLanes:C.baseLanes|d,cachePool:y}),h.memoizedState=C,h.childLanes=Im(o,T,d),l.memoizedState=_m,Ol(o.child,h)):(Ui(l),d=o.child,o=d.sibling,d=Zr(d,{mode:"visible",children:h.children}),d.return=l,d.sibling=null,o!==null&&(T=l.deletions,T===null?(l.deletions=[o],l.flags|=16):T.push(o)),l.child=d,l.memoizedState=null,d)}function Dm(o,l){return l=rd({mode:"visible",children:l},o.mode),l.return=o,o.child=l}function rd(o,l){return o=Fn(22,o,null,l),o.lanes=0,o}function Lm(o,l,d){return qa(l,o.child,null,d),o=Dm(l,l.pendingProps.children),o.flags|=2,l.memoizedState=null,o}function P0(o,l,d){o.lanes|=l;var h=o.alternate;h!==null&&(h.lanes|=l),Kh(o.return,l,d)}function Mm(o,l,d,h,y,E){var T=o.memoizedState;T===null?o.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:h,tail:d,tailMode:y,treeForkCount:E}:(T.isBackwards=l,T.rendering=null,T.renderingStartTime=0,T.last=h,T.tail=d,T.tailMode=y,T.treeForkCount=E)}function $0(o,l,d){var h=l.pendingProps,y=h.revealOrder,E=h.tail;h=h.children;var T=At.current,C=(T&2)!==0;if(C?(T=T&1|2,l.flags|=128):T&=1,_(At,T),Zt(o,l,h,d),h=qe?yl:0,!C&&o!==null&&(o.flags&128)!==0)e:for(o=l.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&P0(o,d,l);else if(o.tag===19)P0(o,d,l);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===l)break e;for(;o.sibling===null;){if(o.return===null||o.return===l)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}switch(y){case"forwards":for(d=l.child,y=null;d!==null;)o=d.alternate,o!==null&&Vc(o)===null&&(y=d),d=d.sibling;d=y,d===null?(y=l.child,l.child=null):(y=d.sibling,d.sibling=null),Mm(l,!1,y,d,E,h);break;case"backwards":case"unstable_legacy-backwards":for(d=null,y=l.child,l.child=null;y!==null;){if(o=y.alternate,o!==null&&Vc(o)===null){l.child=y;break}o=y.sibling,y.sibling=d,d=y,y=o}Mm(l,!0,d,null,E,h);break;case"together":Mm(l,!1,null,null,void 0,h);break;default:l.memoizedState=null}return l.child}function ri(o,l,d){if(o!==null&&(l.dependencies=o.dependencies),ji|=l.lanes,(d&l.childLanes)===0)if(o!==null){if(Xo(o,l,d,!1),(d&l.childLanes)===0)return null}else return null;if(o!==null&&l.child!==o.child)throw Error(r(153));if(l.child!==null){for(o=l.child,d=Zr(o,o.pendingProps),l.child=d,d.return=l;o.sibling!==null;)o=o.sibling,d=d.sibling=Zr(o,o.pendingProps),d.return=l;d.sibling=null}return l.child}function Bm(o,l){return(o.lanes&l)!==0?!0:(o=o.dependencies,!!(o!==null&&Fc(o)))}function aF(o,l,d){switch(l.tag){case 3:Te(l,l.stateNode.containerInfo),Mi(l,Nt,o.memoizedState.cache),Pa();break;case 27:case 5:Oe(l);break;case 4:Te(l,l.stateNode.containerInfo);break;case 10:Mi(l,l.type,l.memoizedProps.value);break;case 31:if(l.memoizedState!==null)return l.flags|=128,sm(l),null;break;case 13:var h=l.memoizedState;if(h!==null)return h.dehydrated!==null?(Ui(l),l.flags|=128,null):(d&l.child.childLanes)!==0?U0(o,l,d):(Ui(l),o=ri(o,l,d),o!==null?o.sibling:null);Ui(l);break;case 19:var y=(o.flags&128)!==0;if(h=(d&l.childLanes)!==0,h||(Xo(o,l,d,!1),h=(d&l.childLanes)!==0),y){if(h)return $0(o,l,d);l.flags|=128}if(y=l.memoizedState,y!==null&&(y.rendering=null,y.tail=null,y.lastEffect=null),_(At,At.current),h)break;return null;case 22:return l.lanes=0,D0(o,l,d,l.pendingProps);case 24:Mi(l,Nt,o.memoizedState.cache)}return ri(o,l,d)}function H0(o,l,d){if(o!==null)if(o.memoizedProps!==l.pendingProps)Ot=!0;else{if(!Bm(o,d)&&(l.flags&128)===0)return Ot=!1,aF(o,l,d);Ot=(o.flags&131072)!==0}else Ot=!1,qe&&(l.flags&1048576)!==0&&SA(l,yl,l.index);switch(l.lanes=0,l.tag){case 16:e:{var h=l.pendingProps;if(o=Ga(l.elementType),l.type=o,typeof o=="function")$h(o)?(h=Ya(o,h),l.tag=1,l=F0(null,l,o,h,d)):(l.tag=0,l=Nm(null,l,o,h,d));else{if(o!=null){var y=o.$$typeof;if(y===D){l.tag=11,l=_0(null,l,o,h,d);break e}else if(y===M){l.tag=14,l=O0(null,l,o,h,d);break e}}throw l=J(o)||o,Error(r(306,l,""))}}return l;case 0:return Nm(o,l,l.type,l.pendingProps,d);case 1:return h=l.type,y=Ya(h,l.pendingProps),F0(o,l,h,y,d);case 3:e:{if(Te(l,l.stateNode.containerInfo),o===null)throw Error(r(387));h=l.pendingProps;var E=l.memoizedState;y=E.element,nm(o,l),Al(l,h,null,d);var T=l.memoizedState;if(h=T.cache,Mi(l,Nt,h),h!==E.cache&&Xh(l,[Nt],d,!0),xl(),h=T.element,E.isDehydrated)if(E={element:h,isDehydrated:!1,cache:T.cache},l.updateQueue.baseState=E,l.memoizedState=E,l.flags&256){l=z0(o,l,h,d);break e}else if(h!==y){y=Jn(Error(r(424)),l),El(y),l=z0(o,l,h,d);break e}else for(o=l.stateNode.containerInfo,o.nodeType===9?o=o.body:o=o.nodeName==="HTML"?o.ownerDocument.body:o,pt=ir(o.firstChild),Kt=l,qe=!0,Di=null,nr=!0,d=DA(l,null,h,d),l.child=d;d;)d.flags=d.flags&-3|4096,d=d.sibling;else{if(Pa(),h===y){l=ri(o,l,d);break e}Zt(o,l,h,d)}l=l.child}return l;case 26:return nd(o,l),o===null?(d=JC(l.type,null,l.pendingProps,null))?l.memoizedState=d:qe||(d=l.type,o=l.pendingProps,h=Ed(fe.current).createElement(d),h[Yt]=l,h[wn]=o,Qt(h,d,o),Ht(h),l.stateNode=h):l.memoizedState=JC(l.type,o.memoizedProps,l.pendingProps,o.memoizedState),null;case 27:return Oe(l),o===null&&qe&&(h=l.stateNode=XC(l.type,l.pendingProps,fe.current),Kt=l,nr=!0,y=pt,Yi(l.type)?(mg=y,pt=ir(h.firstChild)):pt=y),Zt(o,l,l.pendingProps.children,d),nd(o,l),o===null&&(l.flags|=4194304),l.child;case 5:return o===null&&qe&&((y=h=pt)&&(h=MF(h,l.type,l.pendingProps,nr),h!==null?(l.stateNode=h,Kt=l,pt=ir(h.firstChild),nr=!1,y=!0):y=!1),y||Li(l)),Oe(l),y=l.type,E=l.pendingProps,T=o!==null?o.memoizedProps:null,h=E.children,cg(y,E)?h=null:T!==null&&cg(y,T)&&(l.flags|=32),l.memoizedState!==null&&(y=um(o,l,XB,null,null,d),ql._currentValue=y),nd(o,l),Zt(o,l,h,d),l.child;case 6:return o===null&&qe&&((o=d=pt)&&(d=BF(d,l.pendingProps,nr),d!==null?(l.stateNode=d,Kt=l,pt=null,o=!0):o=!1),o||Li(l)),null;case 13:return U0(o,l,d);case 4:return Te(l,l.stateNode.containerInfo),h=l.pendingProps,o===null?l.child=qa(l,null,h,d):Zt(o,l,h,d),l.child;case 11:return _0(o,l,l.type,l.pendingProps,d);case 7:return Zt(o,l,l.pendingProps,d),l.child;case 8:return Zt(o,l,l.pendingProps.children,d),l.child;case 12:return Zt(o,l,l.pendingProps.children,d),l.child;case 10:return h=l.pendingProps,Mi(l,l.type,h.value),Zt(o,l,h.children,d),l.child;case 9:return y=l.type._context,h=l.pendingProps.children,Ha(l),y=Xt(y),h=h(y),l.flags|=1,Zt(o,l,h,d),l.child;case 14:return O0(o,l,l.type,l.pendingProps,d);case 15:return I0(o,l,l.type,l.pendingProps,d);case 19:return $0(o,l,d);case 31:return iF(o,l,d);case 22:return D0(o,l,d,l.pendingProps);case 24:return Ha(l),h=Xt(Nt),o===null?(y=Jh(),y===null&&(y=lt,E=Zh(),y.pooledCache=E,E.refCount++,E!==null&&(y.pooledCacheLanes|=d),y=E),l.memoizedState={parent:h,cache:y},tm(l),Mi(l,Nt,y)):((o.lanes&d)!==0&&(nm(o,l),Al(l,null,null,d),xl()),y=o.memoizedState,E=l.memoizedState,y.parent!==h?(y={parent:h,cache:h},l.memoizedState=y,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=y),Mi(l,Nt,h)):(h=E.cache,Mi(l,Nt,h),h!==y.cache&&Xh(l,[Nt],d,!0))),Zt(o,l,l.pendingProps.children,d),l.child;case 29:throw l.pendingProps}throw Error(r(156,l.tag))}function ii(o){o.flags|=4}function Fm(o,l,d,h,y){if((l=(o.mode&32)!==0)&&(l=!1),l){if(o.flags|=16777216,(y&335544128)===y)if(o.stateNode.complete)o.flags|=8192;else if(mC())o.flags|=8192;else throw Va=$c,em}else o.flags&=-16777217}function j0(o,l){if(l.type!=="stylesheet"||(l.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!iR(l))if(mC())o.flags|=8192;else throw Va=$c,em}function id(o,l){l!==null&&(o.flags|=4),o.flags&16384&&(l=o.tag!==22?vx():536870912,o.lanes|=l,us|=l)}function Il(o,l){if(!qe)switch(o.tailMode){case"hidden":l=o.tail;for(var d=null;l!==null;)l.alternate!==null&&(d=l),l=l.sibling;d===null?o.tail=null:d.sibling=null;break;case"collapsed":d=o.tail;for(var h=null;d!==null;)d.alternate!==null&&(h=d),d=d.sibling;h===null?l||o.tail===null?o.tail=null:o.tail.sibling=null:h.sibling=null}}function ft(o){var l=o.alternate!==null&&o.alternate.child===o.child,d=0,h=0;if(l)for(var y=o.child;y!==null;)d|=y.lanes|y.childLanes,h|=y.subtreeFlags&65011712,h|=y.flags&65011712,y.return=o,y=y.sibling;else for(y=o.child;y!==null;)d|=y.lanes|y.childLanes,h|=y.subtreeFlags,h|=y.flags,y.return=o,y=y.sibling;return o.subtreeFlags|=h,o.childLanes=d,l}function oF(o,l,d){var h=l.pendingProps;switch(Vh(l),l.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ft(l),null;case 1:return ft(l),null;case 3:return d=l.stateNode,h=null,o!==null&&(h=o.memoizedState.cache),l.memoizedState.cache!==h&&(l.flags|=2048),ei(Nt),be(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(o===null||o.child===null)&&(Ko(l)?ii(l):o===null||o.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,Wh())),ft(l),null;case 26:var y=l.type,E=l.memoizedState;return o===null?(ii(l),E!==null?(ft(l),j0(l,E)):(ft(l),Fm(l,y,null,h,d))):E?E!==o.memoizedState?(ii(l),ft(l),j0(l,E)):(ft(l),l.flags&=-16777217):(o=o.memoizedProps,o!==h&&ii(l),ft(l),Fm(l,y,o,h,d)),null;case 27:if(De(l),d=fe.current,y=l.type,o!==null&&l.stateNode!=null)o.memoizedProps!==h&&ii(l);else{if(!h){if(l.stateNode===null)throw Error(r(166));return ft(l),null}o=oe.current,Ko(l)?vA(l):(o=XC(y,h,d),l.stateNode=o,ii(l))}return ft(l),null;case 5:if(De(l),y=l.type,o!==null&&l.stateNode!=null)o.memoizedProps!==h&&ii(l);else{if(!h){if(l.stateNode===null)throw Error(r(166));return ft(l),null}if(E=oe.current,Ko(l))vA(l);else{var T=Ed(fe.current);switch(E){case 1:E=T.createElementNS("http://www.w3.org/2000/svg",y);break;case 2:E=T.createElementNS("http://www.w3.org/1998/Math/MathML",y);break;default:switch(y){case"svg":E=T.createElementNS("http://www.w3.org/2000/svg",y);break;case"math":E=T.createElementNS("http://www.w3.org/1998/Math/MathML",y);break;case"script":E=T.createElement("div"),E.innerHTML="<script><\/script>",E=E.removeChild(E.firstChild);break;case"select":E=typeof h.is=="string"?T.createElement("select",{is:h.is}):T.createElement("select"),h.multiple?E.multiple=!0:h.size&&(E.size=h.size);break;default:E=typeof h.is=="string"?T.createElement(y,{is:h.is}):T.createElement(y)}}E[Yt]=l,E[wn]=h;e:for(T=l.child;T!==null;){if(T.tag===5||T.tag===6)E.appendChild(T.stateNode);else if(T.tag!==4&&T.tag!==27&&T.child!==null){T.child.return=T,T=T.child;continue}if(T===l)break e;for(;T.sibling===null;){if(T.return===null||T.return===l)break e;T=T.return}T.sibling.return=T.return,T=T.sibling}l.stateNode=E;e:switch(Qt(E,y,h),y){case"button":case"input":case"select":case"textarea":h=!!h.autoFocus;break e;case"img":h=!0;break e;default:h=!1}h&&ii(l)}}return ft(l),Fm(l,l.type,o===null?null:o.memoizedProps,l.pendingProps,d),null;case 6:if(o&&l.stateNode!=null)o.memoizedProps!==h&&ii(l);else{if(typeof h!="string"&&l.stateNode===null)throw Error(r(166));if(o=fe.current,Ko(l)){if(o=l.stateNode,d=l.memoizedProps,h=null,y=Kt,y!==null)switch(y.tag){case 27:case 5:h=y.memoizedProps}o[Yt]=l,o=!!(o.nodeValue===d||h!==null&&h.suppressHydrationWarning===!0||UC(o.nodeValue,d)),o||Li(l,!0)}else o=Ed(o).createTextNode(h),o[Yt]=l,l.stateNode=o}return ft(l),null;case 31:if(d=l.memoizedState,o===null||o.memoizedState!==null){if(h=Ko(l),d!==null){if(o===null){if(!h)throw Error(r(318));if(o=l.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(557));o[Yt]=l}else Pa(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;ft(l),o=!1}else d=Wh(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=d),o=!0;if(!o)return l.flags&256?(Un(l),l):(Un(l),null);if((l.flags&128)!==0)throw Error(r(558))}return ft(l),null;case 13:if(h=l.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(y=Ko(l),h!==null&&h.dehydrated!==null){if(o===null){if(!y)throw Error(r(318));if(y=l.memoizedState,y=y!==null?y.dehydrated:null,!y)throw Error(r(317));y[Yt]=l}else Pa(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;ft(l),y=!1}else y=Wh(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=y),y=!0;if(!y)return l.flags&256?(Un(l),l):(Un(l),null)}return Un(l),(l.flags&128)!==0?(l.lanes=d,l):(d=h!==null,o=o!==null&&o.memoizedState!==null,d&&(h=l.child,y=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(y=h.alternate.memoizedState.cachePool.pool),E=null,h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(E=h.memoizedState.cachePool.pool),E!==y&&(h.flags|=2048)),d!==o&&d&&(l.child.flags|=8192),id(l,l.updateQueue),ft(l),null);case 4:return be(),o===null&&ag(l.stateNode.containerInfo),ft(l),null;case 10:return ei(l.type),ft(l),null;case 19:if(H(At),h=l.memoizedState,h===null)return ft(l),null;if(y=(l.flags&128)!==0,E=h.rendering,E===null)if(y)Il(h,!1);else{if(kt!==0||o!==null&&(o.flags&128)!==0)for(o=l.child;o!==null;){if(E=Vc(o),E!==null){for(l.flags|=128,Il(h,!1),o=E.updateQueue,l.updateQueue=o,id(l,o),l.subtreeFlags=0,o=d,d=l.child;d!==null;)bA(d,o),d=d.sibling;return _(At,At.current&1|2),qe&&Qr(l,h.treeForkCount),l.child}o=o.sibling}h.tail!==null&&hn()>ud&&(l.flags|=128,y=!0,Il(h,!1),l.lanes=4194304)}else{if(!y)if(o=Vc(E),o!==null){if(l.flags|=128,y=!0,o=o.updateQueue,l.updateQueue=o,id(l,o),Il(h,!0),h.tail===null&&h.tailMode==="hidden"&&!E.alternate&&!qe)return ft(l),null}else 2*hn()-h.renderingStartTime>ud&&d!==536870912&&(l.flags|=128,y=!0,Il(h,!1),l.lanes=4194304);h.isBackwards?(E.sibling=l.child,l.child=E):(o=h.last,o!==null?o.sibling=E:l.child=E,h.last=E)}return h.tail!==null?(o=h.tail,h.rendering=o,h.tail=o.sibling,h.renderingStartTime=hn(),o.sibling=null,d=At.current,_(At,y?d&1|2:d&1),qe&&Qr(l,h.treeForkCount),o):(ft(l),null);case 22:case 23:return Un(l),om(),h=l.memoizedState!==null,o!==null?o.memoizedState!==null!==h&&(l.flags|=8192):h&&(l.flags|=8192),h?(d&536870912)!==0&&(l.flags&128)===0&&(ft(l),l.subtreeFlags&6&&(l.flags|=8192)):ft(l),d=l.updateQueue,d!==null&&id(l,d.retryQueue),d=null,o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(d=o.memoizedState.cachePool.pool),h=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(h=l.memoizedState.cachePool.pool),h!==d&&(l.flags|=2048),o!==null&&H(ja),null;case 24:return d=null,o!==null&&(d=o.memoizedState.cache),l.memoizedState.cache!==d&&(l.flags|=2048),ei(Nt),ft(l),null;case 25:return null;case 30:return null}throw Error(r(156,l.tag))}function sF(o,l){switch(Vh(l),l.tag){case 1:return o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 3:return ei(Nt),be(),o=l.flags,(o&65536)!==0&&(o&128)===0?(l.flags=o&-65537|128,l):null;case 26:case 27:case 5:return De(l),null;case 31:if(l.memoizedState!==null){if(Un(l),l.alternate===null)throw Error(r(340));Pa()}return o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 13:if(Un(l),o=l.memoizedState,o!==null&&o.dehydrated!==null){if(l.alternate===null)throw Error(r(340));Pa()}return o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 19:return H(At),null;case 4:return be(),null;case 10:return ei(l.type),null;case 22:case 23:return Un(l),om(),o!==null&&H(ja),o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 24:return ei(Nt),null;case 25:return null;default:return null}}function G0(o,l){switch(Vh(l),l.tag){case 3:ei(Nt),be();break;case 26:case 27:case 5:De(l);break;case 4:be();break;case 31:l.memoizedState!==null&&Un(l);break;case 13:Un(l);break;case 19:H(At);break;case 10:ei(l.type);break;case 22:case 23:Un(l),om(),o!==null&&H(ja);break;case 24:ei(Nt)}}function Dl(o,l){try{var d=l.updateQueue,h=d!==null?d.lastEffect:null;if(h!==null){var y=h.next;d=y;do{if((d.tag&o)===o){h=void 0;var E=d.create,T=d.inst;h=E(),T.destroy=h}d=d.next}while(d!==y)}}catch(C){tt(l,l.return,C)}}function $i(o,l,d){try{var h=l.updateQueue,y=h!==null?h.lastEffect:null;if(y!==null){var E=y.next;h=E;do{if((h.tag&o)===o){var T=h.inst,C=T.destroy;if(C!==void 0){T.destroy=void 0,y=l;var P=d,K=C;try{K()}catch(ne){tt(y,P,ne)}}}h=h.next}while(h!==E)}}catch(ne){tt(l,l.return,ne)}}function V0(o){var l=o.updateQueue;if(l!==null){var d=o.stateNode;try{MA(l,d)}catch(h){tt(o,o.return,h)}}}function q0(o,l,d){d.props=Ya(o.type,o.memoizedProps),d.state=o.memoizedState;try{d.componentWillUnmount()}catch(h){tt(o,l,h)}}function Ll(o,l){try{var d=o.ref;if(d!==null){switch(o.tag){case 26:case 27:case 5:var h=o.stateNode;break;case 30:h=o.stateNode;break;default:h=o.stateNode}typeof d=="function"?o.refCleanup=d(h):d.current=h}}catch(y){tt(o,l,y)}}function Ir(o,l){var d=o.ref,h=o.refCleanup;if(d!==null)if(typeof h=="function")try{h()}catch(y){tt(o,l,y)}finally{o.refCleanup=null,o=o.alternate,o!=null&&(o.refCleanup=null)}else if(typeof d=="function")try{d(null)}catch(y){tt(o,l,y)}else d.current=null}function W0(o){var l=o.type,d=o.memoizedProps,h=o.stateNode;try{e:switch(l){case"button":case"input":case"select":case"textarea":d.autoFocus&&h.focus();break e;case"img":d.src?h.src=d.src:d.srcSet&&(h.srcset=d.srcSet)}}catch(y){tt(o,o.return,y)}}function zm(o,l,d){try{var h=o.stateNode;NF(h,o.type,d,l),h[wn]=l}catch(y){tt(o,o.return,y)}}function Y0(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&Yi(o.type)||o.tag===4}function Um(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||Y0(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.tag===27&&Yi(o.type)||o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function Pm(o,l,d){var h=o.tag;if(h===5||h===6)o=o.stateNode,l?(d.nodeType===9?d.body:d.nodeName==="HTML"?d.ownerDocument.body:d).insertBefore(o,l):(l=d.nodeType===9?d.body:d.nodeName==="HTML"?d.ownerDocument.body:d,l.appendChild(o),d=d._reactRootContainer,d!=null||l.onclick!==null||(l.onclick=Kr));else if(h!==4&&(h===27&&Yi(o.type)&&(d=o.stateNode,l=null),o=o.child,o!==null))for(Pm(o,l,d),o=o.sibling;o!==null;)Pm(o,l,d),o=o.sibling}function ad(o,l,d){var h=o.tag;if(h===5||h===6)o=o.stateNode,l?d.insertBefore(o,l):d.appendChild(o);else if(h!==4&&(h===27&&Yi(o.type)&&(d=o.stateNode),o=o.child,o!==null))for(ad(o,l,d),o=o.sibling;o!==null;)ad(o,l,d),o=o.sibling}function K0(o){var l=o.stateNode,d=o.memoizedProps;try{for(var h=o.type,y=l.attributes;y.length;)l.removeAttributeNode(y[0]);Qt(l,h,d),l[Yt]=o,l[wn]=d}catch(E){tt(o,o.return,E)}}var ai=!1,It=!1,$m=!1,X0=typeof WeakSet=="function"?WeakSet:Set,jt=null;function lF(o,l){if(o=o.containerInfo,lg=Ad,o=lA(o),Lh(o)){if("selectionStart"in o)var d={start:o.selectionStart,end:o.selectionEnd};else e:{d=(d=o.ownerDocument)&&d.defaultView||window;var h=d.getSelection&&d.getSelection();if(h&&h.rangeCount!==0){d=h.anchorNode;var y=h.anchorOffset,E=h.focusNode;h=h.focusOffset;try{d.nodeType,E.nodeType}catch{d=null;break e}var T=0,C=-1,P=-1,K=0,ne=0,se=o,X=null;t:for(;;){for(var ee;se!==d||y!==0&&se.nodeType!==3||(C=T+y),se!==E||h!==0&&se.nodeType!==3||(P=T+h),se.nodeType===3&&(T+=se.nodeValue.length),(ee=se.firstChild)!==null;)X=se,se=ee;for(;;){if(se===o)break t;if(X===d&&++K===y&&(C=T),X===E&&++ne===h&&(P=T),(ee=se.nextSibling)!==null)break;se=X,X=se.parentNode}se=ee}d=C===-1||P===-1?null:{start:C,end:P}}else d=null}d=d||{start:0,end:0}}else d=null;for(ug={focusedElem:o,selectionRange:d},Ad=!1,jt=l;jt!==null;)if(l=jt,o=l.child,(l.subtreeFlags&1028)!==0&&o!==null)o.return=l,jt=o;else for(;jt!==null;){switch(l=jt,E=l.alternate,o=l.flags,l.tag){case 0:if((o&4)!==0&&(o=l.updateQueue,o=o!==null?o.events:null,o!==null))for(d=0;d<o.length;d++)y=o[d],y.ref.impl=y.nextImpl;break;case 11:case 15:break;case 1:if((o&1024)!==0&&E!==null){o=void 0,d=l,y=E.memoizedProps,E=E.memoizedState,h=d.stateNode;try{var ye=Ya(d.type,y);o=h.getSnapshotBeforeUpdate(ye,E),h.__reactInternalSnapshotBeforeUpdate=o}catch(Ce){tt(d,d.return,Ce)}}break;case 3:if((o&1024)!==0){if(o=l.stateNode.containerInfo,d=o.nodeType,d===9)pg(o);else if(d===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":pg(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((o&1024)!==0)throw Error(r(163))}if(o=l.sibling,o!==null){o.return=l.return,jt=o;break}jt=l.return}}function Z0(o,l,d){var h=d.flags;switch(d.tag){case 0:case 11:case 15:si(o,d),h&4&&Dl(5,d);break;case 1:if(si(o,d),h&4)if(o=d.stateNode,l===null)try{o.componentDidMount()}catch(T){tt(d,d.return,T)}else{var y=Ya(d.type,l.memoizedProps);l=l.memoizedState;try{o.componentDidUpdate(y,l,o.__reactInternalSnapshotBeforeUpdate)}catch(T){tt(d,d.return,T)}}h&64&&V0(d),h&512&&Ll(d,d.return);break;case 3:if(si(o,d),h&64&&(o=d.updateQueue,o!==null)){if(l=null,d.child!==null)switch(d.child.tag){case 27:case 5:l=d.child.stateNode;break;case 1:l=d.child.stateNode}try{MA(o,l)}catch(T){tt(d,d.return,T)}}break;case 27:l===null&&h&4&&K0(d);case 26:case 5:si(o,d),l===null&&h&4&&W0(d),h&512&&Ll(d,d.return);break;case 12:si(o,d);break;case 31:si(o,d),h&4&&eC(o,d);break;case 13:si(o,d),h&4&&tC(o,d),h&64&&(o=d.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(d=bF.bind(null,d),FF(o,d))));break;case 22:if(h=d.memoizedState!==null||ai,!h){l=l!==null&&l.memoizedState!==null||It,y=ai;var E=It;ai=h,(It=l)&&!E?li(o,d,(d.subtreeFlags&8772)!==0):si(o,d),ai=y,It=E}break;case 30:break;default:si(o,d)}}function Q0(o){var l=o.alternate;l!==null&&(o.alternate=null,Q0(l)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(l=o.stateNode,l!==null&&bh(l)),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}var mt=null,xn=!1;function oi(o,l,d){for(d=d.child;d!==null;)J0(o,l,d),d=d.sibling}function J0(o,l,d){if(zt&&typeof zt.onCommitFiberUnmount=="function")try{zt.onCommitFiberUnmount(mn,d)}catch{}switch(d.tag){case 26:It||Ir(d,l),oi(o,l,d),d.memoizedState?d.memoizedState.count--:d.stateNode&&(d=d.stateNode,d.parentNode.removeChild(d));break;case 27:It||Ir(d,l);var h=mt,y=xn;Yi(d.type)&&(mt=d.stateNode,xn=!1),oi(o,l,d),jl(d.stateNode),mt=h,xn=y;break;case 5:It||Ir(d,l);case 6:if(h=mt,y=xn,mt=null,oi(o,l,d),mt=h,xn=y,mt!==null)if(xn)try{(mt.nodeType===9?mt.body:mt.nodeName==="HTML"?mt.ownerDocument.body:mt).removeChild(d.stateNode)}catch(E){tt(d,l,E)}else try{mt.removeChild(d.stateNode)}catch(E){tt(d,l,E)}break;case 18:mt!==null&&(xn?(o=mt,VC(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,d.stateNode),bs(o)):VC(mt,d.stateNode));break;case 4:h=mt,y=xn,mt=d.stateNode.containerInfo,xn=!0,oi(o,l,d),mt=h,xn=y;break;case 0:case 11:case 14:case 15:$i(2,d,l),It||$i(4,d,l),oi(o,l,d);break;case 1:It||(Ir(d,l),h=d.stateNode,typeof h.componentWillUnmount=="function"&&q0(d,l,h)),oi(o,l,d);break;case 21:oi(o,l,d);break;case 22:It=(h=It)||d.memoizedState!==null,oi(o,l,d),It=h;break;default:oi(o,l,d)}}function eC(o,l){if(l.memoizedState===null&&(o=l.alternate,o!==null&&(o=o.memoizedState,o!==null))){o=o.dehydrated;try{bs(o)}catch(d){tt(l,l.return,d)}}}function tC(o,l){if(l.memoizedState===null&&(o=l.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{bs(o)}catch(d){tt(l,l.return,d)}}function uF(o){switch(o.tag){case 31:case 13:case 19:var l=o.stateNode;return l===null&&(l=o.stateNode=new X0),l;case 22:return o=o.stateNode,l=o._retryCache,l===null&&(l=o._retryCache=new X0),l;default:throw Error(r(435,o.tag))}}function od(o,l){var d=uF(o);l.forEach(function(h){if(!d.has(h)){d.add(h);var y=yF.bind(null,o,h);h.then(y,y)}})}function An(o,l){var d=l.deletions;if(d!==null)for(var h=0;h<d.length;h++){var y=d[h],E=o,T=l,C=T;e:for(;C!==null;){switch(C.tag){case 27:if(Yi(C.type)){mt=C.stateNode,xn=!1;break e}break;case 5:mt=C.stateNode,xn=!1;break e;case 3:case 4:mt=C.stateNode.containerInfo,xn=!0;break e}C=C.return}if(mt===null)throw Error(r(160));J0(E,T,y),mt=null,xn=!1,E=y.alternate,E!==null&&(E.return=null),y.return=null}if(l.subtreeFlags&13886)for(l=l.child;l!==null;)nC(l,o),l=l.sibling}var mr=null;function nC(o,l){var d=o.alternate,h=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:An(l,o),Cn(o),h&4&&($i(3,o,o.return),Dl(3,o),$i(5,o,o.return));break;case 1:An(l,o),Cn(o),h&512&&(It||d===null||Ir(d,d.return)),h&64&&ai&&(o=o.updateQueue,o!==null&&(h=o.callbacks,h!==null&&(d=o.shared.hiddenCallbacks,o.shared.hiddenCallbacks=d===null?h:d.concat(h))));break;case 26:var y=mr;if(An(l,o),Cn(o),h&512&&(It||d===null||Ir(d,d.return)),h&4){var E=d!==null?d.memoizedState:null;if(h=o.memoizedState,d===null)if(h===null)if(o.stateNode===null){e:{h=o.type,d=o.memoizedProps,y=y.ownerDocument||y;t:switch(h){case"title":E=y.getElementsByTagName("title")[0],(!E||E[sl]||E[Yt]||E.namespaceURI==="http://www.w3.org/2000/svg"||E.hasAttribute("itemprop"))&&(E=y.createElement(h),y.head.insertBefore(E,y.querySelector("head > title"))),Qt(E,h,d),E[Yt]=o,Ht(E),h=E;break e;case"link":var T=nR("link","href",y).get(h+(d.href||""));if(T){for(var C=0;C<T.length;C++)if(E=T[C],E.getAttribute("href")===(d.href==null||d.href===""?null:d.href)&&E.getAttribute("rel")===(d.rel==null?null:d.rel)&&E.getAttribute("title")===(d.title==null?null:d.title)&&E.getAttribute("crossorigin")===(d.crossOrigin==null?null:d.crossOrigin)){T.splice(C,1);break t}}E=y.createElement(h),Qt(E,h,d),y.head.appendChild(E);break;case"meta":if(T=nR("meta","content",y).get(h+(d.content||""))){for(C=0;C<T.length;C++)if(E=T[C],E.getAttribute("content")===(d.content==null?null:""+d.content)&&E.getAttribute("name")===(d.name==null?null:d.name)&&E.getAttribute("property")===(d.property==null?null:d.property)&&E.getAttribute("http-equiv")===(d.httpEquiv==null?null:d.httpEquiv)&&E.getAttribute("charset")===(d.charSet==null?null:d.charSet)){T.splice(C,1);break t}}E=y.createElement(h),Qt(E,h,d),y.head.appendChild(E);break;default:throw Error(r(468,h))}E[Yt]=o,Ht(E),h=E}o.stateNode=h}else rR(y,o.type,o.stateNode);else o.stateNode=tR(y,h,o.memoizedProps);else E!==h?(E===null?d.stateNode!==null&&(d=d.stateNode,d.parentNode.removeChild(d)):E.count--,h===null?rR(y,o.type,o.stateNode):tR(y,h,o.memoizedProps)):h===null&&o.stateNode!==null&&zm(o,o.memoizedProps,d.memoizedProps)}break;case 27:An(l,o),Cn(o),h&512&&(It||d===null||Ir(d,d.return)),d!==null&&h&4&&zm(o,o.memoizedProps,d.memoizedProps);break;case 5:if(An(l,o),Cn(o),h&512&&(It||d===null||Ir(d,d.return)),o.flags&32){y=o.stateNode;try{Uo(y,"")}catch(ye){tt(o,o.return,ye)}}h&4&&o.stateNode!=null&&(y=o.memoizedProps,zm(o,y,d!==null?d.memoizedProps:y)),h&1024&&($m=!0);break;case 6:if(An(l,o),Cn(o),h&4){if(o.stateNode===null)throw Error(r(162));h=o.memoizedProps,d=o.stateNode;try{d.nodeValue=h}catch(ye){tt(o,o.return,ye)}}break;case 3:if(vd=null,y=mr,mr=Sd(l.containerInfo),An(l,o),mr=y,Cn(o),h&4&&d!==null&&d.memoizedState.isDehydrated)try{bs(l.containerInfo)}catch(ye){tt(o,o.return,ye)}$m&&($m=!1,rC(o));break;case 4:h=mr,mr=Sd(o.stateNode.containerInfo),An(l,o),Cn(o),mr=h;break;case 12:An(l,o),Cn(o);break;case 31:An(l,o),Cn(o),h&4&&(h=o.updateQueue,h!==null&&(o.updateQueue=null,od(o,h)));break;case 13:An(l,o),Cn(o),o.child.flags&8192&&o.memoizedState!==null!=(d!==null&&d.memoizedState!==null)&&(ld=hn()),h&4&&(h=o.updateQueue,h!==null&&(o.updateQueue=null,od(o,h)));break;case 22:y=o.memoizedState!==null;var P=d!==null&&d.memoizedState!==null,K=ai,ne=It;if(ai=K||y,It=ne||P,An(l,o),It=ne,ai=K,Cn(o),h&8192)e:for(l=o.stateNode,l._visibility=y?l._visibility&-2:l._visibility|1,y&&(d===null||P||ai||It||Ka(o)),d=null,l=o;;){if(l.tag===5||l.tag===26){if(d===null){P=d=l;try{if(E=P.stateNode,y)T=E.style,typeof T.setProperty=="function"?T.setProperty("display","none","important"):T.display="none";else{C=P.stateNode;var se=P.memoizedProps.style,X=se!=null&&se.hasOwnProperty("display")?se.display:null;C.style.display=X==null||typeof X=="boolean"?"":(""+X).trim()}}catch(ye){tt(P,P.return,ye)}}}else if(l.tag===6){if(d===null){P=l;try{P.stateNode.nodeValue=y?"":P.memoizedProps}catch(ye){tt(P,P.return,ye)}}}else if(l.tag===18){if(d===null){P=l;try{var ee=P.stateNode;y?qC(ee,!0):qC(P.stateNode,!1)}catch(ye){tt(P,P.return,ye)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===o)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break e;for(;l.sibling===null;){if(l.return===null||l.return===o)break e;d===l&&(d=null),l=l.return}d===l&&(d=null),l.sibling.return=l.return,l=l.sibling}h&4&&(h=o.updateQueue,h!==null&&(d=h.retryQueue,d!==null&&(h.retryQueue=null,od(o,d))));break;case 19:An(l,o),Cn(o),h&4&&(h=o.updateQueue,h!==null&&(o.updateQueue=null,od(o,h)));break;case 30:break;case 21:break;default:An(l,o),Cn(o)}}function Cn(o){var l=o.flags;if(l&2){try{for(var d,h=o.return;h!==null;){if(Y0(h)){d=h;break}h=h.return}if(d==null)throw Error(r(160));switch(d.tag){case 27:var y=d.stateNode,E=Um(o);ad(o,E,y);break;case 5:var T=d.stateNode;d.flags&32&&(Uo(T,""),d.flags&=-33);var C=Um(o);ad(o,C,T);break;case 3:case 4:var P=d.stateNode.containerInfo,K=Um(o);Pm(o,K,P);break;default:throw Error(r(161))}}catch(ne){tt(o,o.return,ne)}o.flags&=-3}l&4096&&(o.flags&=-4097)}function rC(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var l=o;rC(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),o=o.sibling}}function si(o,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)Z0(o,l.alternate,l),l=l.sibling}function Ka(o){for(o=o.child;o!==null;){var l=o;switch(l.tag){case 0:case 11:case 14:case 15:$i(4,l,l.return),Ka(l);break;case 1:Ir(l,l.return);var d=l.stateNode;typeof d.componentWillUnmount=="function"&&q0(l,l.return,d),Ka(l);break;case 27:jl(l.stateNode);case 26:case 5:Ir(l,l.return),Ka(l);break;case 22:l.memoizedState===null&&Ka(l);break;case 30:Ka(l);break;default:Ka(l)}o=o.sibling}}function li(o,l,d){for(d=d&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var h=l.alternate,y=o,E=l,T=E.flags;switch(E.tag){case 0:case 11:case 15:li(y,E,d),Dl(4,E);break;case 1:if(li(y,E,d),h=E,y=h.stateNode,typeof y.componentDidMount=="function")try{y.componentDidMount()}catch(K){tt(h,h.return,K)}if(h=E,y=h.updateQueue,y!==null){var C=h.stateNode;try{var P=y.shared.hiddenCallbacks;if(P!==null)for(y.shared.hiddenCallbacks=null,y=0;y<P.length;y++)LA(P[y],C)}catch(K){tt(h,h.return,K)}}d&&T&64&&V0(E),Ll(E,E.return);break;case 27:K0(E);case 26:case 5:li(y,E,d),d&&h===null&&T&4&&W0(E),Ll(E,E.return);break;case 12:li(y,E,d);break;case 31:li(y,E,d),d&&T&4&&eC(y,E);break;case 13:li(y,E,d),d&&T&4&&tC(y,E);break;case 22:E.memoizedState===null&&li(y,E,d),Ll(E,E.return);break;case 30:break;default:li(y,E,d)}l=l.sibling}}function Hm(o,l){var d=null;o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(d=o.memoizedState.cachePool.pool),o=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(o=l.memoizedState.cachePool.pool),o!==d&&(o!=null&&o.refCount++,d!=null&&Sl(d))}function jm(o,l){o=null,l.alternate!==null&&(o=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==o&&(l.refCount++,o!=null&&Sl(o))}function gr(o,l,d,h){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)iC(o,l,d,h),l=l.sibling}function iC(o,l,d,h){var y=l.flags;switch(l.tag){case 0:case 11:case 15:gr(o,l,d,h),y&2048&&Dl(9,l);break;case 1:gr(o,l,d,h);break;case 3:gr(o,l,d,h),y&2048&&(o=null,l.alternate!==null&&(o=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==o&&(l.refCount++,o!=null&&Sl(o)));break;case 12:if(y&2048){gr(o,l,d,h),o=l.stateNode;try{var E=l.memoizedProps,T=E.id,C=E.onPostCommit;typeof C=="function"&&C(T,l.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(P){tt(l,l.return,P)}}else gr(o,l,d,h);break;case 31:gr(o,l,d,h);break;case 13:gr(o,l,d,h);break;case 23:break;case 22:E=l.stateNode,T=l.alternate,l.memoizedState!==null?E._visibility&2?gr(o,l,d,h):Ml(o,l):E._visibility&2?gr(o,l,d,h):(E._visibility|=2,as(o,l,d,h,(l.subtreeFlags&10256)!==0||!1)),y&2048&&Hm(T,l);break;case 24:gr(o,l,d,h),y&2048&&jm(l.alternate,l);break;default:gr(o,l,d,h)}}function as(o,l,d,h,y){for(y=y&&((l.subtreeFlags&10256)!==0||!1),l=l.child;l!==null;){var E=o,T=l,C=d,P=h,K=T.flags;switch(T.tag){case 0:case 11:case 15:as(E,T,C,P,y),Dl(8,T);break;case 23:break;case 22:var ne=T.stateNode;T.memoizedState!==null?ne._visibility&2?as(E,T,C,P,y):Ml(E,T):(ne._visibility|=2,as(E,T,C,P,y)),y&&K&2048&&Hm(T.alternate,T);break;case 24:as(E,T,C,P,y),y&&K&2048&&jm(T.alternate,T);break;default:as(E,T,C,P,y)}l=l.sibling}}function Ml(o,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var d=o,h=l,y=h.flags;switch(h.tag){case 22:Ml(d,h),y&2048&&Hm(h.alternate,h);break;case 24:Ml(d,h),y&2048&&jm(h.alternate,h);break;default:Ml(d,h)}l=l.sibling}}var Bl=8192;function ss(o,l,d){if(o.subtreeFlags&Bl)for(o=o.child;o!==null;)aC(o,l,d),o=o.sibling}function aC(o,l,d){switch(o.tag){case 26:ss(o,l,d),o.flags&Bl&&o.memoizedState!==null&&KF(d,mr,o.memoizedState,o.memoizedProps);break;case 5:ss(o,l,d);break;case 3:case 4:var h=mr;mr=Sd(o.stateNode.containerInfo),ss(o,l,d),mr=h;break;case 22:o.memoizedState===null&&(h=o.alternate,h!==null&&h.memoizedState!==null?(h=Bl,Bl=16777216,ss(o,l,d),Bl=h):ss(o,l,d));break;default:ss(o,l,d)}}function oC(o){var l=o.alternate;if(l!==null&&(o=l.child,o!==null)){l.child=null;do l=o.sibling,o.sibling=null,o=l;while(o!==null)}}function Fl(o){var l=o.deletions;if((o.flags&16)!==0){if(l!==null)for(var d=0;d<l.length;d++){var h=l[d];jt=h,lC(h,o)}oC(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)sC(o),o=o.sibling}function sC(o){switch(o.tag){case 0:case 11:case 15:Fl(o),o.flags&2048&&$i(9,o,o.return);break;case 3:Fl(o);break;case 12:Fl(o);break;case 22:var l=o.stateNode;o.memoizedState!==null&&l._visibility&2&&(o.return===null||o.return.tag!==13)?(l._visibility&=-3,sd(o)):Fl(o);break;default:Fl(o)}}function sd(o){var l=o.deletions;if((o.flags&16)!==0){if(l!==null)for(var d=0;d<l.length;d++){var h=l[d];jt=h,lC(h,o)}oC(o)}for(o=o.child;o!==null;){switch(l=o,l.tag){case 0:case 11:case 15:$i(8,l,l.return),sd(l);break;case 22:d=l.stateNode,d._visibility&2&&(d._visibility&=-3,sd(l));break;default:sd(l)}o=o.sibling}}function lC(o,l){for(;jt!==null;){var d=jt;switch(d.tag){case 0:case 11:case 15:$i(8,d,l);break;case 23:case 22:if(d.memoizedState!==null&&d.memoizedState.cachePool!==null){var h=d.memoizedState.cachePool.pool;h!=null&&h.refCount++}break;case 24:Sl(d.memoizedState.cache)}if(h=d.child,h!==null)h.return=d,jt=h;else e:for(d=o;jt!==null;){h=jt;var y=h.sibling,E=h.return;if(Q0(h),h===d){jt=null;break e}if(y!==null){y.return=E,jt=y;break e}jt=E}}}var cF={getCacheForType:function(o){var l=Xt(Nt),d=l.data.get(o);return d===void 0&&(d=o(),l.data.set(o,d)),d},cacheSignal:function(){return Xt(Nt).controller.signal}},dF=typeof WeakMap=="function"?WeakMap:Map,Qe=0,lt=null,Pe=null,je=0,et=0,Pn=null,Hi=!1,ls=!1,Gm=!1,ui=0,kt=0,ji=0,Xa=0,Vm=0,$n=0,us=0,zl=null,Rn=null,qm=!1,ld=0,uC=0,ud=1/0,cd=null,Gi=null,Ut=0,Vi=null,cs=null,ci=0,Wm=0,Ym=null,cC=null,Ul=0,Km=null;function Hn(){return(Qe&2)!==0&&je!==0?je&-je:$.T!==null?tg():Ax()}function dC(){if($n===0)if((je&536870912)===0||qe){var o=yc;yc<<=1,(yc&3932160)===0&&(yc=262144),$n=o}else $n=536870912;return o=zn.current,o!==null&&(o.flags|=32),$n}function Nn(o,l,d){(o===lt&&(et===2||et===9)||o.cancelPendingCommit!==null)&&(ds(o,0),qi(o,je,$n,!1)),ol(o,d),((Qe&2)===0||o!==lt)&&(o===lt&&((Qe&2)===0&&(Xa|=d),kt===4&&qi(o,je,$n,!1)),Dr(o))}function pC(o,l,d){if((Qe&6)!==0)throw Error(r(327));var h=!d&&(l&127)===0&&(l&o.expiredLanes)===0||al(o,l),y=h?hF(o,l):Zm(o,l,!0),E=h;do{if(y===0){ls&&!h&&qi(o,l,0,!1);break}else{if(d=o.current.alternate,E&&!pF(d)){y=Zm(o,l,!1),E=!1;continue}if(y===2){if(E=l,o.errorRecoveryDisabledLanes&E)var T=0;else T=o.pendingLanes&-536870913,T=T!==0?T:T&536870912?536870912:0;if(T!==0){l=T;e:{var C=o;y=zl;var P=C.current.memoizedState.isDehydrated;if(P&&(ds(C,T).flags|=256),T=Zm(C,T,!1),T!==2){if(Gm&&!P){C.errorRecoveryDisabledLanes|=E,Xa|=E,y=4;break e}E=Rn,Rn=y,E!==null&&(Rn===null?Rn=E:Rn.push.apply(Rn,E))}y=T}if(E=!1,y!==2)continue}}if(y===1){ds(o,0),qi(o,l,0,!0);break}e:{switch(h=o,E=y,E){case 0:case 1:throw Error(r(345));case 4:if((l&4194048)!==l)break;case 6:qi(h,l,$n,!Hi);break e;case 2:Rn=null;break;case 3:case 5:break;default:throw Error(r(329))}if((l&62914560)===l&&(y=ld+300-hn(),10<y)){if(qi(h,l,$n,!Hi),Sc(h,0,!0)!==0)break e;ci=l,h.timeoutHandle=jC(fC.bind(null,h,d,Rn,cd,qm,l,$n,Xa,us,Hi,E,"Throttled",-0,0),y);break e}fC(h,d,Rn,cd,qm,l,$n,Xa,us,Hi,E,null,-0,0)}}break}while(!0);Dr(o)}function fC(o,l,d,h,y,E,T,C,P,K,ne,se,X,ee){if(o.timeoutHandle=-1,se=l.subtreeFlags,se&8192||(se&16785408)===16785408){se={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Kr},aC(l,E,se);var ye=(E&62914560)===E?ld-hn():(E&4194048)===E?uC-hn():0;if(ye=XF(se,ye),ye!==null){ci=E,o.cancelPendingCommit=ye(kC.bind(null,o,l,E,d,h,y,T,C,P,ne,se,null,X,ee)),qi(o,E,T,!K);return}}kC(o,l,E,d,h,y,T,C,P)}function pF(o){for(var l=o;;){var d=l.tag;if((d===0||d===11||d===15)&&l.flags&16384&&(d=l.updateQueue,d!==null&&(d=d.stores,d!==null)))for(var h=0;h<d.length;h++){var y=d[h],E=y.getSnapshot;y=y.value;try{if(!Bn(E(),y))return!1}catch{return!1}}if(d=l.child,l.subtreeFlags&16384&&d!==null)d.return=l,l=d;else{if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function qi(o,l,d,h){l&=~Vm,l&=~Xa,o.suspendedLanes|=l,o.pingedLanes&=~l,h&&(o.warmLanes|=l),h=o.expirationTimes;for(var y=l;0<y;){var E=31-st(y),T=1<<E;h[E]=-1,y&=~T}d!==0&&wx(o,d,l)}function dd(){return(Qe&6)===0?(Pl(0),!1):!0}function Xm(){if(Pe!==null){if(et===0)var o=Pe.return;else o=Pe,Jr=$a=null,pm(o),es=null,vl=0,o=Pe;for(;o!==null;)G0(o.alternate,o),o=o.return;Pe=null}}function ds(o,l){var d=o.timeoutHandle;d!==-1&&(o.timeoutHandle=-1,IF(d)),d=o.cancelPendingCommit,d!==null&&(o.cancelPendingCommit=null,d()),ci=0,Xm(),lt=o,Pe=d=Zr(o.current,null),je=l,et=0,Pn=null,Hi=!1,ls=al(o,l),Gm=!1,us=$n=Vm=Xa=ji=kt=0,Rn=zl=null,qm=!1,(l&8)!==0&&(l|=l&32);var h=o.entangledLanes;if(h!==0)for(o=o.entanglements,h&=l;0<h;){var y=31-st(h),E=1<<y;l|=o[y],h&=~E}return ui=l,Ic(),d}function hC(o,l){Ie=null,$.H=_l,l===Jo||l===Pc?(l=_A(),et=3):l===em?(l=_A(),et=4):et=l===Rm?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,Pn=l,Pe===null&&(kt=1,ed(o,Jn(l,o.current)))}function mC(){var o=zn.current;return o===null?!0:(je&4194048)===je?rr===null:(je&62914560)===je||(je&536870912)!==0?o===rr:!1}function gC(){var o=$.H;return $.H=_l,o===null?_l:o}function bC(){var o=$.A;return $.A=cF,o}function pd(){kt=4,Hi||(je&4194048)!==je&&zn.current!==null||(ls=!0),(ji&134217727)===0&&(Xa&134217727)===0||lt===null||qi(lt,je,$n,!1)}function Zm(o,l,d){var h=Qe;Qe|=2;var y=gC(),E=bC();(lt!==o||je!==l)&&(cd=null,ds(o,l)),l=!1;var T=kt;e:do try{if(et!==0&&Pe!==null){var C=Pe,P=Pn;switch(et){case 8:Xm(),T=6;break e;case 3:case 2:case 9:case 6:zn.current===null&&(l=!0);var K=et;if(et=0,Pn=null,ps(o,C,P,K),d&&ls){T=0;break e}break;default:K=et,et=0,Pn=null,ps(o,C,P,K)}}fF(),T=kt;break}catch(ne){hC(o,ne)}while(!0);return l&&o.shellSuspendCounter++,Jr=$a=null,Qe=h,$.H=y,$.A=E,Pe===null&&(lt=null,je=0,Ic()),T}function fF(){for(;Pe!==null;)yC(Pe)}function hF(o,l){var d=Qe;Qe|=2;var h=gC(),y=bC();lt!==o||je!==l?(cd=null,ud=hn()+500,ds(o,l)):ls=al(o,l);e:do try{if(et!==0&&Pe!==null){l=Pe;var E=Pn;t:switch(et){case 1:et=0,Pn=null,ps(o,l,E,1);break;case 2:case 9:if(RA(E)){et=0,Pn=null,EC(l);break}l=function(){et!==2&&et!==9||lt!==o||(et=7),Dr(o)},E.then(l,l);break e;case 3:et=7;break e;case 4:et=5;break e;case 7:RA(E)?(et=0,Pn=null,EC(l)):(et=0,Pn=null,ps(o,l,E,7));break;case 5:var T=null;switch(Pe.tag){case 26:T=Pe.memoizedState;case 5:case 27:var C=Pe;if(T?iR(T):C.stateNode.complete){et=0,Pn=null;var P=C.sibling;if(P!==null)Pe=P;else{var K=C.return;K!==null?(Pe=K,fd(K)):Pe=null}break t}}et=0,Pn=null,ps(o,l,E,5);break;case 6:et=0,Pn=null,ps(o,l,E,6);break;case 8:Xm(),kt=6;break e;default:throw Error(r(462))}}mF();break}catch(ne){hC(o,ne)}while(!0);return Jr=$a=null,$.H=h,$.A=y,Qe=d,Pe!==null?0:(lt=null,je=0,Ic(),kt)}function mF(){for(;Pe!==null&&!ch();)yC(Pe)}function yC(o){var l=H0(o.alternate,o,ui);o.memoizedProps=o.pendingProps,l===null?fd(o):Pe=l}function EC(o){var l=o,d=l.alternate;switch(l.tag){case 15:case 0:l=B0(d,l,l.pendingProps,l.type,void 0,je);break;case 11:l=B0(d,l,l.pendingProps,l.type.render,l.ref,je);break;case 5:pm(l);default:G0(d,l),l=Pe=bA(l,ui),l=H0(d,l,ui)}o.memoizedProps=o.pendingProps,l===null?fd(o):Pe=l}function ps(o,l,d,h){Jr=$a=null,pm(l),es=null,vl=0;var y=l.return;try{if(rF(o,y,l,d,je)){kt=1,ed(o,Jn(d,o.current)),Pe=null;return}}catch(E){if(y!==null)throw Pe=y,E;kt=1,ed(o,Jn(d,o.current)),Pe=null;return}l.flags&32768?(qe||h===1?o=!0:ls||(je&536870912)!==0?o=!1:(Hi=o=!0,(h===2||h===9||h===3||h===6)&&(h=zn.current,h!==null&&h.tag===13&&(h.flags|=16384))),SC(l,o)):fd(l)}function fd(o){var l=o;do{if((l.flags&32768)!==0){SC(l,Hi);return}o=l.return;var d=oF(l.alternate,l,ui);if(d!==null){Pe=d;return}if(l=l.sibling,l!==null){Pe=l;return}Pe=l=o}while(l!==null);kt===0&&(kt=5)}function SC(o,l){do{var d=sF(o.alternate,o);if(d!==null){d.flags&=32767,Pe=d;return}if(d=o.return,d!==null&&(d.flags|=32768,d.subtreeFlags=0,d.deletions=null),!l&&(o=o.sibling,o!==null)){Pe=o;return}Pe=o=d}while(o!==null);kt=6,Pe=null}function kC(o,l,d,h,y,E,T,C,P){o.cancelPendingCommit=null;do hd();while(Ut!==0);if((Qe&6)!==0)throw Error(r(327));if(l!==null){if(l===o.current)throw Error(r(177));if(E=l.lanes|l.childLanes,E|=Uh,Y2(o,d,E,T,C,P),o===lt&&(Pe=lt=null,je=0),cs=l,Vi=o,ci=d,Wm=E,Ym=y,cC=h,(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,EF(Re,function(){return AC(),null})):(o.callbackNode=null,o.callbackPriority=0),h=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||h){h=$.T,$.T=null,y=W.p,W.p=2,T=Qe,Qe|=4;try{lF(o,l,d)}finally{Qe=T,W.p=y,$.T=h}}Ut=1,vC(),wC(),TC()}}function vC(){if(Ut===1){Ut=0;var o=Vi,l=cs,d=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||d){d=$.T,$.T=null;var h=W.p;W.p=2;var y=Qe;Qe|=4;try{nC(l,o);var E=ug,T=lA(o.containerInfo),C=E.focusedElem,P=E.selectionRange;if(T!==C&&C&&C.ownerDocument&&sA(C.ownerDocument.documentElement,C)){if(P!==null&&Lh(C)){var K=P.start,ne=P.end;if(ne===void 0&&(ne=K),"selectionStart"in C)C.selectionStart=K,C.selectionEnd=Math.min(ne,C.value.length);else{var se=C.ownerDocument||document,X=se&&se.defaultView||window;if(X.getSelection){var ee=X.getSelection(),ye=C.textContent.length,Ce=Math.min(P.start,ye),ot=P.end===void 0?Ce:Math.min(P.end,ye);!ee.extend&&Ce>ot&&(T=ot,ot=Ce,Ce=T);var V=oA(C,Ce),j=oA(C,ot);if(V&&j&&(ee.rangeCount!==1||ee.anchorNode!==V.node||ee.anchorOffset!==V.offset||ee.focusNode!==j.node||ee.focusOffset!==j.offset)){var Y=se.createRange();Y.setStart(V.node,V.offset),ee.removeAllRanges(),Ce>ot?(ee.addRange(Y),ee.extend(j.node,j.offset)):(Y.setEnd(j.node,j.offset),ee.addRange(Y))}}}}for(se=[],ee=C;ee=ee.parentNode;)ee.nodeType===1&&se.push({element:ee,left:ee.scrollLeft,top:ee.scrollTop});for(typeof C.focus=="function"&&C.focus(),C=0;C<se.length;C++){var ae=se[C];ae.element.scrollLeft=ae.left,ae.element.scrollTop=ae.top}}Ad=!!lg,ug=lg=null}finally{Qe=y,W.p=h,$.T=d}}o.current=l,Ut=2}}function wC(){if(Ut===2){Ut=0;var o=Vi,l=cs,d=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||d){d=$.T,$.T=null;var h=W.p;W.p=2;var y=Qe;Qe|=4;try{Z0(o,l.alternate,l)}finally{Qe=y,W.p=h,$.T=d}}Ut=3}}function TC(){if(Ut===4||Ut===3){Ut=0,dh();var o=Vi,l=cs,d=ci,h=cC;(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?Ut=5:(Ut=0,cs=Vi=null,xC(o,o.pendingLanes));var y=o.pendingLanes;if(y===0&&(Gi=null),mh(d),l=l.stateNode,zt&&typeof zt.onCommitFiberRoot=="function")try{zt.onCommitFiberRoot(mn,l,void 0,(l.current.flags&128)===128)}catch{}if(h!==null){l=$.T,y=W.p,W.p=2,$.T=null;try{for(var E=o.onRecoverableError,T=0;T<h.length;T++){var C=h[T];E(C.value,{componentStack:C.stack})}}finally{$.T=l,W.p=y}}(ci&3)!==0&&hd(),Dr(o),y=o.pendingLanes,(d&261930)!==0&&(y&42)!==0?o===Km?Ul++:(Ul=0,Km=o):Ul=0,Pl(0)}}function xC(o,l){(o.pooledCacheLanes&=l)===0&&(l=o.pooledCache,l!=null&&(o.pooledCache=null,Sl(l)))}function hd(){return vC(),wC(),TC(),AC()}function AC(){if(Ut!==5)return!1;var o=Vi,l=Wm;Wm=0;var d=mh(ci),h=$.T,y=W.p;try{W.p=32>d?32:d,$.T=null,d=Ym,Ym=null;var E=Vi,T=ci;if(Ut=0,cs=Vi=null,ci=0,(Qe&6)!==0)throw Error(r(331));var C=Qe;if(Qe|=4,sC(E.current),iC(E,E.current,T,d),Qe=C,Pl(0,!1),zt&&typeof zt.onPostCommitFiberRoot=="function")try{zt.onPostCommitFiberRoot(mn,E)}catch{}return!0}finally{W.p=y,$.T=h,xC(o,l)}}function CC(o,l,d){l=Jn(d,l),l=Cm(o.stateNode,l,2),o=zi(o,l,2),o!==null&&(ol(o,2),Dr(o))}function tt(o,l,d){if(o.tag===3)CC(o,o,d);else for(;l!==null;){if(l.tag===3){CC(l,o,d);break}else if(l.tag===1){var h=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(Gi===null||!Gi.has(h))){o=Jn(d,o),d=R0(2),h=zi(l,d,2),h!==null&&(N0(d,h,l,o),ol(h,2),Dr(h));break}}l=l.return}}function Qm(o,l,d){var h=o.pingCache;if(h===null){h=o.pingCache=new dF;var y=new Set;h.set(l,y)}else y=h.get(l),y===void 0&&(y=new Set,h.set(l,y));y.has(d)||(Gm=!0,y.add(d),o=gF.bind(null,o,l,d),l.then(o,o))}function gF(o,l,d){var h=o.pingCache;h!==null&&h.delete(l),o.pingedLanes|=o.suspendedLanes&d,o.warmLanes&=~d,lt===o&&(je&d)===d&&(kt===4||kt===3&&(je&62914560)===je&&300>hn()-ld?(Qe&2)===0&&ds(o,0):Vm|=d,us===je&&(us=0)),Dr(o)}function RC(o,l){l===0&&(l=vx()),o=za(o,l),o!==null&&(ol(o,l),Dr(o))}function bF(o){var l=o.memoizedState,d=0;l!==null&&(d=l.retryLane),RC(o,d)}function yF(o,l){var d=0;switch(o.tag){case 31:case 13:var h=o.stateNode,y=o.memoizedState;y!==null&&(d=y.retryLane);break;case 19:h=o.stateNode;break;case 22:h=o.stateNode._retryCache;break;default:throw Error(r(314))}h!==null&&h.delete(l),RC(o,d)}function EF(o,l){return Io(o,l)}var md=null,fs=null,Jm=!1,gd=!1,eg=!1,Wi=0;function Dr(o){o!==fs&&o.next===null&&(fs===null?md=fs=o:fs=fs.next=o),gd=!0,Jm||(Jm=!0,kF())}function Pl(o,l){if(!eg&&gd){eg=!0;do for(var d=!1,h=md;h!==null;){if(o!==0){var y=h.pendingLanes;if(y===0)var E=0;else{var T=h.suspendedLanes,C=h.pingedLanes;E=(1<<31-st(42|o)+1)-1,E&=y&~(T&~C),E=E&201326741?E&201326741|1:E?E|2:0}E!==0&&(d=!0,IC(h,E))}else E=je,E=Sc(h,h===lt?E:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),(E&3)===0||al(h,E)||(d=!0,IC(h,E));h=h.next}while(d);eg=!1}}function SF(){NC()}function NC(){gd=Jm=!1;var o=0;Wi!==0&&OF()&&(o=Wi);for(var l=hn(),d=null,h=md;h!==null;){var y=h.next,E=_C(h,l);E===0?(h.next=null,d===null?md=y:d.next=y,y===null&&(fs=d)):(d=h,(o!==0||(E&3)!==0)&&(gd=!0)),h=y}Ut!==0&&Ut!==5||Pl(o),Wi!==0&&(Wi=0)}function _C(o,l){for(var d=o.suspendedLanes,h=o.pingedLanes,y=o.expirationTimes,E=o.pendingLanes&-62914561;0<E;){var T=31-st(E),C=1<<T,P=y[T];P===-1?((C&d)===0||(C&h)!==0)&&(y[T]=W2(C,l)):P<=l&&(o.expiredLanes|=C),E&=~C}if(l=lt,d=je,d=Sc(o,o===l?d:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),h=o.callbackNode,d===0||o===l&&(et===2||et===9)||o.cancelPendingCommit!==null)return h!==null&&h!==null&&il(h),o.callbackNode=null,o.callbackPriority=0;if((d&3)===0||al(o,d)){if(l=d&-d,l===o.callbackPriority)return l;switch(h!==null&&il(h),mh(d)){case 2:case 8:d=me;break;case 32:d=Re;break;case 268435456:d=Je;break;default:d=Re}return h=OC.bind(null,o),d=Io(d,h),o.callbackPriority=l,o.callbackNode=d,l}return h!==null&&h!==null&&il(h),o.callbackPriority=2,o.callbackNode=null,2}function OC(o,l){if(Ut!==0&&Ut!==5)return o.callbackNode=null,o.callbackPriority=0,null;var d=o.callbackNode;if(hd()&&o.callbackNode!==d)return null;var h=je;return h=Sc(o,o===lt?h:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),h===0?null:(pC(o,h,l),_C(o,hn()),o.callbackNode!=null&&o.callbackNode===d?OC.bind(null,o):null)}function IC(o,l){if(hd())return null;pC(o,l,!0)}function kF(){DF(function(){(Qe&6)!==0?Io(ie,SF):NC()})}function tg(){if(Wi===0){var o=Zo;o===0&&(o=bc,bc<<=1,(bc&261888)===0&&(bc=256)),Wi=o}return Wi}function DC(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:Tc(""+o)}function LC(o,l){var d=l.ownerDocument.createElement("input");return d.name=l.name,d.value=l.value,o.id&&d.setAttribute("form",o.id),l.parentNode.insertBefore(d,l),o=new FormData(o),d.parentNode.removeChild(d),o}function vF(o,l,d,h,y){if(l==="submit"&&d&&d.stateNode===y){var E=DC((y[wn]||null).action),T=h.submitter;T&&(l=(l=T[wn]||null)?DC(l.formAction):T.getAttribute("formAction"),l!==null&&(E=l,T=null));var C=new Rc("action","action",null,h,y);o.push({event:C,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(Wi!==0){var P=T?LC(y,T):new FormData(y);km(d,{pending:!0,data:P,method:y.method,action:E},null,P)}}else typeof E=="function"&&(C.preventDefault(),P=T?LC(y,T):new FormData(y),km(d,{pending:!0,data:P,method:y.method,action:E},E,P))},currentTarget:y}]})}}for(var ng=0;ng<zh.length;ng++){var rg=zh[ng],wF=rg.toLowerCase(),TF=rg[0].toUpperCase()+rg.slice(1);hr(wF,"on"+TF)}hr(dA,"onAnimationEnd"),hr(pA,"onAnimationIteration"),hr(fA,"onAnimationStart"),hr("dblclick","onDoubleClick"),hr("focusin","onFocus"),hr("focusout","onBlur"),hr(PB,"onTransitionRun"),hr($B,"onTransitionStart"),hr(HB,"onTransitionCancel"),hr(hA,"onTransitionEnd"),Fo("onMouseEnter",["mouseout","mouseover"]),Fo("onMouseLeave",["mouseout","mouseover"]),Fo("onPointerEnter",["pointerout","pointerover"]),Fo("onPointerLeave",["pointerout","pointerover"]),La("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),La("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),La("onBeforeInput",["compositionend","keypress","textInput","paste"]),La("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),La("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),La("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $l="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),xF=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat($l));function MC(o,l){l=(l&4)!==0;for(var d=0;d<o.length;d++){var h=o[d],y=h.event;h=h.listeners;e:{var E=void 0;if(l)for(var T=h.length-1;0<=T;T--){var C=h[T],P=C.instance,K=C.currentTarget;if(C=C.listener,P!==E&&y.isPropagationStopped())break e;E=C,y.currentTarget=K;try{E(y)}catch(ne){Oc(ne)}y.currentTarget=null,E=P}else for(T=0;T<h.length;T++){if(C=h[T],P=C.instance,K=C.currentTarget,C=C.listener,P!==E&&y.isPropagationStopped())break e;E=C,y.currentTarget=K;try{E(y)}catch(ne){Oc(ne)}y.currentTarget=null,E=P}}}}function $e(o,l){var d=l[gh];d===void 0&&(d=l[gh]=new Set);var h=o+"__bubble";d.has(h)||(BC(l,o,2,!1),d.add(h))}function ig(o,l,d){var h=0;l&&(h|=4),BC(d,o,h,l)}var bd="_reactListening"+Math.random().toString(36).slice(2);function ag(o){if(!o[bd]){o[bd]=!0,Nx.forEach(function(d){d!=="selectionchange"&&(xF.has(d)||ig(d,!1,o),ig(d,!0,o))});var l=o.nodeType===9?o:o.ownerDocument;l===null||l[bd]||(l[bd]=!0,ig("selectionchange",!1,l))}}function BC(o,l,d,h){switch(dR(l)){case 2:var y=JF;break;case 8:y=ez;break;default:y=Sg}d=y.bind(null,l,d,o),y=void 0,!xh||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(y=!0),h?y!==void 0?o.addEventListener(l,d,{capture:!0,passive:y}):o.addEventListener(l,d,!0):y!==void 0?o.addEventListener(l,d,{passive:y}):o.addEventListener(l,d,!1)}function og(o,l,d,h,y){var E=h;if((l&1)===0&&(l&2)===0&&h!==null)e:for(;;){if(h===null)return;var T=h.tag;if(T===3||T===4){var C=h.stateNode.containerInfo;if(C===y)break;if(T===4)for(T=h.return;T!==null;){var P=T.tag;if((P===3||P===4)&&T.stateNode.containerInfo===y)return;T=T.return}for(;C!==null;){if(T=Lo(C),T===null)return;if(P=T.tag,P===5||P===6||P===26||P===27){h=E=T;continue e}C=C.parentNode}}h=h.return}$x(function(){var K=E,ne=wh(d),se=[];e:{var X=mA.get(o);if(X!==void 0){var ee=Rc,ye=o;switch(o){case"keypress":if(Ac(d)===0)break e;case"keydown":case"keyup":ee=yB;break;case"focusin":ye="focus",ee=Nh;break;case"focusout":ye="blur",ee=Nh;break;case"beforeblur":case"afterblur":ee=Nh;break;case"click":if(d.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ee=Gx;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ee=oB;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ee=kB;break;case dA:case pA:case fA:ee=uB;break;case hA:ee=wB;break;case"scroll":case"scrollend":ee=iB;break;case"wheel":ee=xB;break;case"copy":case"cut":case"paste":ee=dB;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ee=qx;break;case"toggle":case"beforetoggle":ee=CB}var Ce=(l&4)!==0,ot=!Ce&&(o==="scroll"||o==="scrollend"),V=Ce?X!==null?X+"Capture":null:X;Ce=[];for(var j=K,Y;j!==null;){var ae=j;if(Y=ae.stateNode,ae=ae.tag,ae!==5&&ae!==26&&ae!==27||Y===null||V===null||(ae=ul(j,V),ae!=null&&Ce.push(Hl(j,ae,Y))),ot)break;j=j.return}0<Ce.length&&(X=new ee(X,ye,null,d,ne),se.push({event:X,listeners:Ce}))}}if((l&7)===0){e:{if(X=o==="mouseover"||o==="pointerover",ee=o==="mouseout"||o==="pointerout",X&&d!==vh&&(ye=d.relatedTarget||d.fromElement)&&(Lo(ye)||ye[Do]))break e;if((ee||X)&&(X=ne.window===ne?ne:(X=ne.ownerDocument)?X.defaultView||X.parentWindow:window,ee?(ye=d.relatedTarget||d.toElement,ee=K,ye=ye?Lo(ye):null,ye!==null&&(ot=a(ye),Ce=ye.tag,ye!==ot||Ce!==5&&Ce!==27&&Ce!==6)&&(ye=null)):(ee=null,ye=K),ee!==ye)){if(Ce=Gx,ae="onMouseLeave",V="onMouseEnter",j="mouse",(o==="pointerout"||o==="pointerover")&&(Ce=qx,ae="onPointerLeave",V="onPointerEnter",j="pointer"),ot=ee==null?X:ll(ee),Y=ye==null?X:ll(ye),X=new Ce(ae,j+"leave",ee,d,ne),X.target=ot,X.relatedTarget=Y,ae=null,Lo(ne)===K&&(Ce=new Ce(V,j+"enter",ye,d,ne),Ce.target=Y,Ce.relatedTarget=ot,ae=Ce),ot=ae,ee&&ye)t:{for(Ce=AF,V=ee,j=ye,Y=0,ae=V;ae;ae=Ce(ae))Y++;ae=0;for(var we=j;we;we=Ce(we))ae++;for(;0<Y-ae;)V=Ce(V),Y--;for(;0<ae-Y;)j=Ce(j),ae--;for(;Y--;){if(V===j||j!==null&&V===j.alternate){Ce=V;break t}V=Ce(V),j=Ce(j)}Ce=null}else Ce=null;ee!==null&&FC(se,X,ee,Ce,!1),ye!==null&&ot!==null&&FC(se,ot,ye,Ce,!0)}}e:{if(X=K?ll(K):window,ee=X.nodeName&&X.nodeName.toLowerCase(),ee==="select"||ee==="input"&&X.type==="file")var Ke=eA;else if(Qx(X))if(tA)Ke=FB;else{Ke=MB;var ve=LB}else ee=X.nodeName,!ee||ee.toLowerCase()!=="input"||X.type!=="checkbox"&&X.type!=="radio"?K&&kh(K.elementType)&&(Ke=eA):Ke=BB;if(Ke&&(Ke=Ke(o,K))){Jx(se,Ke,d,ne);break e}ve&&ve(o,X,K),o==="focusout"&&K&&X.type==="number"&&K.memoizedProps.value!=null&&Sh(X,"number",X.value)}switch(ve=K?ll(K):window,o){case"focusin":(Qx(ve)||ve.contentEditable==="true")&&(jo=ve,Mh=K,bl=null);break;case"focusout":bl=Mh=jo=null;break;case"mousedown":Bh=!0;break;case"contextmenu":case"mouseup":case"dragend":Bh=!1,uA(se,d,ne);break;case"selectionchange":if(UB)break;case"keydown":case"keyup":uA(se,d,ne)}var Le;if(Oh)e:{switch(o){case"compositionstart":var Ge="onCompositionStart";break e;case"compositionend":Ge="onCompositionEnd";break e;case"compositionupdate":Ge="onCompositionUpdate";break e}Ge=void 0}else Ho?Xx(o,d)&&(Ge="onCompositionEnd"):o==="keydown"&&d.keyCode===229&&(Ge="onCompositionStart");Ge&&(Wx&&d.locale!=="ko"&&(Ho||Ge!=="onCompositionStart"?Ge==="onCompositionEnd"&&Ho&&(Le=Hx()):(Oi=ne,Ah="value"in Oi?Oi.value:Oi.textContent,Ho=!0)),ve=yd(K,Ge),0<ve.length&&(Ge=new Vx(Ge,o,null,d,ne),se.push({event:Ge,listeners:ve}),Le?Ge.data=Le:(Le=Zx(d),Le!==null&&(Ge.data=Le)))),(Le=NB?_B(o,d):OB(o,d))&&(Ge=yd(K,"onBeforeInput"),0<Ge.length&&(ve=new Vx("onBeforeInput","beforeinput",null,d,ne),se.push({event:ve,listeners:Ge}),ve.data=Le)),vF(se,o,K,d,ne)}MC(se,l)})}function Hl(o,l,d){return{instance:o,listener:l,currentTarget:d}}function yd(o,l){for(var d=l+"Capture",h=[];o!==null;){var y=o,E=y.stateNode;if(y=y.tag,y!==5&&y!==26&&y!==27||E===null||(y=ul(o,d),y!=null&&h.unshift(Hl(o,y,E)),y=ul(o,l),y!=null&&h.push(Hl(o,y,E))),o.tag===3)return h;o=o.return}return[]}function AF(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function FC(o,l,d,h,y){for(var E=l._reactName,T=[];d!==null&&d!==h;){var C=d,P=C.alternate,K=C.stateNode;if(C=C.tag,P!==null&&P===h)break;C!==5&&C!==26&&C!==27||K===null||(P=K,y?(K=ul(d,E),K!=null&&T.unshift(Hl(d,K,P))):y||(K=ul(d,E),K!=null&&T.push(Hl(d,K,P)))),d=d.return}T.length!==0&&o.push({event:l,listeners:T})}var CF=/\r\n?/g,RF=/\u0000|\uFFFD/g;function zC(o){return(typeof o=="string"?o:""+o).replace(CF,`
|
|
9
|
+
`).replace(RF,"")}function UC(o,l){return l=zC(l),zC(o)===l}function at(o,l,d,h,y,E){switch(d){case"children":typeof h=="string"?l==="body"||l==="textarea"&&h===""||Uo(o,h):(typeof h=="number"||typeof h=="bigint")&&l!=="body"&&Uo(o,""+h);break;case"className":vc(o,"class",h);break;case"tabIndex":vc(o,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":vc(o,d,h);break;case"style":Ux(o,h,E);break;case"data":if(l!=="object"){vc(o,"data",h);break}case"src":case"href":if(h===""&&(l!=="a"||d!=="href")){o.removeAttribute(d);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){o.removeAttribute(d);break}h=Tc(""+h),o.setAttribute(d,h);break;case"action":case"formAction":if(typeof h=="function"){o.setAttribute(d,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof E=="function"&&(d==="formAction"?(l!=="input"&&at(o,l,"name",y.name,y,null),at(o,l,"formEncType",y.formEncType,y,null),at(o,l,"formMethod",y.formMethod,y,null),at(o,l,"formTarget",y.formTarget,y,null)):(at(o,l,"encType",y.encType,y,null),at(o,l,"method",y.method,y,null),at(o,l,"target",y.target,y,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){o.removeAttribute(d);break}h=Tc(""+h),o.setAttribute(d,h);break;case"onClick":h!=null&&(o.onclick=Kr);break;case"onScroll":h!=null&&$e("scroll",o);break;case"onScrollEnd":h!=null&&$e("scrollend",o);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(d=h.__html,d!=null){if(y.children!=null)throw Error(r(60));o.innerHTML=d}}break;case"multiple":o.multiple=h&&typeof h!="function"&&typeof h!="symbol";break;case"muted":o.muted=h&&typeof h!="function"&&typeof h!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(h==null||typeof h=="function"||typeof h=="boolean"||typeof h=="symbol"){o.removeAttribute("xlink:href");break}d=Tc(""+h),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",d);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":h!=null&&typeof h!="function"&&typeof h!="symbol"?o.setAttribute(d,""+h):o.removeAttribute(d);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":h&&typeof h!="function"&&typeof h!="symbol"?o.setAttribute(d,""):o.removeAttribute(d);break;case"capture":case"download":h===!0?o.setAttribute(d,""):h!==!1&&h!=null&&typeof h!="function"&&typeof h!="symbol"?o.setAttribute(d,h):o.removeAttribute(d);break;case"cols":case"rows":case"size":case"span":h!=null&&typeof h!="function"&&typeof h!="symbol"&&!isNaN(h)&&1<=h?o.setAttribute(d,h):o.removeAttribute(d);break;case"rowSpan":case"start":h==null||typeof h=="function"||typeof h=="symbol"||isNaN(h)?o.removeAttribute(d):o.setAttribute(d,h);break;case"popover":$e("beforetoggle",o),$e("toggle",o),kc(o,"popover",h);break;case"xlinkActuate":Yr(o,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":Yr(o,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":Yr(o,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":Yr(o,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":Yr(o,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":Yr(o,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":Yr(o,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":Yr(o,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":Yr(o,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":kc(o,"is",h);break;case"innerText":case"textContent":break;default:(!(2<d.length)||d[0]!=="o"&&d[0]!=="O"||d[1]!=="n"&&d[1]!=="N")&&(d=nB.get(d)||d,kc(o,d,h))}}function sg(o,l,d,h,y,E){switch(d){case"style":Ux(o,h,E);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(d=h.__html,d!=null){if(y.children!=null)throw Error(r(60));o.innerHTML=d}}break;case"children":typeof h=="string"?Uo(o,h):(typeof h=="number"||typeof h=="bigint")&&Uo(o,""+h);break;case"onScroll":h!=null&&$e("scroll",o);break;case"onScrollEnd":h!=null&&$e("scrollend",o);break;case"onClick":h!=null&&(o.onclick=Kr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!_x.hasOwnProperty(d))e:{if(d[0]==="o"&&d[1]==="n"&&(y=d.endsWith("Capture"),l=d.slice(2,y?d.length-7:void 0),E=o[wn]||null,E=E!=null?E[d]:null,typeof E=="function"&&o.removeEventListener(l,E,y),typeof h=="function")){typeof E!="function"&&E!==null&&(d in o?o[d]=null:o.hasAttribute(d)&&o.removeAttribute(d)),o.addEventListener(l,h,y);break e}d in o?o[d]=h:h===!0?o.setAttribute(d,""):kc(o,d,h)}}}function Qt(o,l,d){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":$e("error",o),$e("load",o);var h=!1,y=!1,E;for(E in d)if(d.hasOwnProperty(E)){var T=d[E];if(T!=null)switch(E){case"src":h=!0;break;case"srcSet":y=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,l));default:at(o,l,E,T,d,null)}}y&&at(o,l,"srcSet",d.srcSet,d,null),h&&at(o,l,"src",d.src,d,null);return;case"input":$e("invalid",o);var C=E=T=y=null,P=null,K=null;for(h in d)if(d.hasOwnProperty(h)){var ne=d[h];if(ne!=null)switch(h){case"name":y=ne;break;case"type":T=ne;break;case"checked":P=ne;break;case"defaultChecked":K=ne;break;case"value":E=ne;break;case"defaultValue":C=ne;break;case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(r(137,l));break;default:at(o,l,h,ne,d,null)}}Mx(o,E,C,P,K,T,y,!1);return;case"select":$e("invalid",o),h=T=E=null;for(y in d)if(d.hasOwnProperty(y)&&(C=d[y],C!=null))switch(y){case"value":E=C;break;case"defaultValue":T=C;break;case"multiple":h=C;default:at(o,l,y,C,d,null)}l=E,d=T,o.multiple=!!h,l!=null?zo(o,!!h,l,!1):d!=null&&zo(o,!!h,d,!0);return;case"textarea":$e("invalid",o),E=y=h=null;for(T in d)if(d.hasOwnProperty(T)&&(C=d[T],C!=null))switch(T){case"value":h=C;break;case"defaultValue":y=C;break;case"children":E=C;break;case"dangerouslySetInnerHTML":if(C!=null)throw Error(r(91));break;default:at(o,l,T,C,d,null)}Fx(o,h,y,E);return;case"option":for(P in d)d.hasOwnProperty(P)&&(h=d[P],h!=null)&&(P==="selected"?o.selected=h&&typeof h!="function"&&typeof h!="symbol":at(o,l,P,h,d,null));return;case"dialog":$e("beforetoggle",o),$e("toggle",o),$e("cancel",o),$e("close",o);break;case"iframe":case"object":$e("load",o);break;case"video":case"audio":for(h=0;h<$l.length;h++)$e($l[h],o);break;case"image":$e("error",o),$e("load",o);break;case"details":$e("toggle",o);break;case"embed":case"source":case"link":$e("error",o),$e("load",o);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(K in d)if(d.hasOwnProperty(K)&&(h=d[K],h!=null))switch(K){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,l));default:at(o,l,K,h,d,null)}return;default:if(kh(l)){for(ne in d)d.hasOwnProperty(ne)&&(h=d[ne],h!==void 0&&sg(o,l,ne,h,d,void 0));return}}for(C in d)d.hasOwnProperty(C)&&(h=d[C],h!=null&&at(o,l,C,h,d,null))}function NF(o,l,d,h){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var y=null,E=null,T=null,C=null,P=null,K=null,ne=null;for(ee in d){var se=d[ee];if(d.hasOwnProperty(ee)&&se!=null)switch(ee){case"checked":break;case"value":break;case"defaultValue":P=se;default:h.hasOwnProperty(ee)||at(o,l,ee,null,h,se)}}for(var X in h){var ee=h[X];if(se=d[X],h.hasOwnProperty(X)&&(ee!=null||se!=null))switch(X){case"type":E=ee;break;case"name":y=ee;break;case"checked":K=ee;break;case"defaultChecked":ne=ee;break;case"value":T=ee;break;case"defaultValue":C=ee;break;case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(r(137,l));break;default:ee!==se&&at(o,l,X,ee,h,se)}}Eh(o,T,C,P,K,ne,E,y);return;case"select":ee=T=C=X=null;for(E in d)if(P=d[E],d.hasOwnProperty(E)&&P!=null)switch(E){case"value":break;case"multiple":ee=P;default:h.hasOwnProperty(E)||at(o,l,E,null,h,P)}for(y in h)if(E=h[y],P=d[y],h.hasOwnProperty(y)&&(E!=null||P!=null))switch(y){case"value":X=E;break;case"defaultValue":C=E;break;case"multiple":T=E;default:E!==P&&at(o,l,y,E,h,P)}l=C,d=T,h=ee,X!=null?zo(o,!!d,X,!1):!!h!=!!d&&(l!=null?zo(o,!!d,l,!0):zo(o,!!d,d?[]:"",!1));return;case"textarea":ee=X=null;for(C in d)if(y=d[C],d.hasOwnProperty(C)&&y!=null&&!h.hasOwnProperty(C))switch(C){case"value":break;case"children":break;default:at(o,l,C,null,h,y)}for(T in h)if(y=h[T],E=d[T],h.hasOwnProperty(T)&&(y!=null||E!=null))switch(T){case"value":X=y;break;case"defaultValue":ee=y;break;case"children":break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(r(91));break;default:y!==E&&at(o,l,T,y,h,E)}Bx(o,X,ee);return;case"option":for(var ye in d)X=d[ye],d.hasOwnProperty(ye)&&X!=null&&!h.hasOwnProperty(ye)&&(ye==="selected"?o.selected=!1:at(o,l,ye,null,h,X));for(P in h)X=h[P],ee=d[P],h.hasOwnProperty(P)&&X!==ee&&(X!=null||ee!=null)&&(P==="selected"?o.selected=X&&typeof X!="function"&&typeof X!="symbol":at(o,l,P,X,h,ee));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ce in d)X=d[Ce],d.hasOwnProperty(Ce)&&X!=null&&!h.hasOwnProperty(Ce)&&at(o,l,Ce,null,h,X);for(K in h)if(X=h[K],ee=d[K],h.hasOwnProperty(K)&&X!==ee&&(X!=null||ee!=null))switch(K){case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(r(137,l));break;default:at(o,l,K,X,h,ee)}return;default:if(kh(l)){for(var ot in d)X=d[ot],d.hasOwnProperty(ot)&&X!==void 0&&!h.hasOwnProperty(ot)&&sg(o,l,ot,void 0,h,X);for(ne in h)X=h[ne],ee=d[ne],!h.hasOwnProperty(ne)||X===ee||X===void 0&&ee===void 0||sg(o,l,ne,X,h,ee);return}}for(var V in d)X=d[V],d.hasOwnProperty(V)&&X!=null&&!h.hasOwnProperty(V)&&at(o,l,V,null,h,X);for(se in h)X=h[se],ee=d[se],!h.hasOwnProperty(se)||X===ee||X==null&&ee==null||at(o,l,se,X,h,ee)}function PC(o){switch(o){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function _F(){if(typeof performance.getEntriesByType=="function"){for(var o=0,l=0,d=performance.getEntriesByType("resource"),h=0;h<d.length;h++){var y=d[h],E=y.transferSize,T=y.initiatorType,C=y.duration;if(E&&C&&PC(T)){for(T=0,C=y.responseEnd,h+=1;h<d.length;h++){var P=d[h],K=P.startTime;if(K>C)break;var ne=P.transferSize,se=P.initiatorType;ne&&PC(se)&&(P=P.responseEnd,T+=ne*(P<C?1:(C-K)/(P-K)))}if(--h,l+=8*(E+T)/(y.duration/1e3),o++,10<o)break}}if(0<o)return l/o/1e6}return navigator.connection&&(o=navigator.connection.downlink,typeof o=="number")?o:5}var lg=null,ug=null;function Ed(o){return o.nodeType===9?o:o.ownerDocument}function $C(o){switch(o){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function HC(o,l){if(o===0)switch(l){case"svg":return 1;case"math":return 2;default:return 0}return o===1&&l==="foreignObject"?0:o}function cg(o,l){return o==="textarea"||o==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.children=="bigint"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var dg=null;function OF(){var o=window.event;return o&&o.type==="popstate"?o===dg?!1:(dg=o,!0):(dg=null,!1)}var jC=typeof setTimeout=="function"?setTimeout:void 0,IF=typeof clearTimeout=="function"?clearTimeout:void 0,GC=typeof Promise=="function"?Promise:void 0,DF=typeof queueMicrotask=="function"?queueMicrotask:typeof GC<"u"?function(o){return GC.resolve(null).then(o).catch(LF)}:jC;function LF(o){setTimeout(function(){throw o})}function Yi(o){return o==="head"}function VC(o,l){var d=l,h=0;do{var y=d.nextSibling;if(o.removeChild(d),y&&y.nodeType===8)if(d=y.data,d==="/$"||d==="/&"){if(h===0){o.removeChild(y),bs(l);return}h--}else if(d==="$"||d==="$?"||d==="$~"||d==="$!"||d==="&")h++;else if(d==="html")jl(o.ownerDocument.documentElement);else if(d==="head"){d=o.ownerDocument.head,jl(d);for(var E=d.firstChild;E;){var T=E.nextSibling,C=E.nodeName;E[sl]||C==="SCRIPT"||C==="STYLE"||C==="LINK"&&E.rel.toLowerCase()==="stylesheet"||d.removeChild(E),E=T}}else d==="body"&&jl(o.ownerDocument.body);d=y}while(d);bs(l)}function qC(o,l){var d=o;o=0;do{var h=d.nextSibling;if(d.nodeType===1?l?(d._stashedDisplay=d.style.display,d.style.display="none"):(d.style.display=d._stashedDisplay||"",d.getAttribute("style")===""&&d.removeAttribute("style")):d.nodeType===3&&(l?(d._stashedText=d.nodeValue,d.nodeValue=""):d.nodeValue=d._stashedText||""),h&&h.nodeType===8)if(d=h.data,d==="/$"){if(o===0)break;o--}else d!=="$"&&d!=="$?"&&d!=="$~"&&d!=="$!"||o++;d=h}while(d)}function pg(o){var l=o.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var d=l;switch(l=l.nextSibling,d.nodeName){case"HTML":case"HEAD":case"BODY":pg(d),bh(d);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(d.rel.toLowerCase()==="stylesheet")continue}o.removeChild(d)}}function MF(o,l,d,h){for(;o.nodeType===1;){var y=d;if(o.nodeName.toLowerCase()!==l.toLowerCase()){if(!h&&(o.nodeName!=="INPUT"||o.type!=="hidden"))break}else if(h){if(!o[sl])switch(l){case"meta":if(!o.hasAttribute("itemprop"))break;return o;case"link":if(E=o.getAttribute("rel"),E==="stylesheet"&&o.hasAttribute("data-precedence"))break;if(E!==y.rel||o.getAttribute("href")!==(y.href==null||y.href===""?null:y.href)||o.getAttribute("crossorigin")!==(y.crossOrigin==null?null:y.crossOrigin)||o.getAttribute("title")!==(y.title==null?null:y.title))break;return o;case"style":if(o.hasAttribute("data-precedence"))break;return o;case"script":if(E=o.getAttribute("src"),(E!==(y.src==null?null:y.src)||o.getAttribute("type")!==(y.type==null?null:y.type)||o.getAttribute("crossorigin")!==(y.crossOrigin==null?null:y.crossOrigin))&&E&&o.hasAttribute("async")&&!o.hasAttribute("itemprop"))break;return o;default:return o}}else if(l==="input"&&o.type==="hidden"){var E=y.name==null?null:""+y.name;if(y.type==="hidden"&&o.getAttribute("name")===E)return o}else return o;if(o=ir(o.nextSibling),o===null)break}return null}function BF(o,l,d){if(l==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!d||(o=ir(o.nextSibling),o===null))return null;return o}function WC(o,l){for(;o.nodeType!==8;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!l||(o=ir(o.nextSibling),o===null))return null;return o}function fg(o){return o.data==="$?"||o.data==="$~"}function hg(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState!=="loading"}function FF(o,l){var d=o.ownerDocument;if(o.data==="$~")o._reactRetry=l;else if(o.data!=="$?"||d.readyState!=="loading")l();else{var h=function(){l(),d.removeEventListener("DOMContentLoaded",h)};d.addEventListener("DOMContentLoaded",h),o._reactRetry=h}}function ir(o){for(;o!=null;o=o.nextSibling){var l=o.nodeType;if(l===1||l===3)break;if(l===8){if(l=o.data,l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"||l==="F!"||l==="F")break;if(l==="/$"||l==="/&")return null}}return o}var mg=null;function YC(o){o=o.nextSibling;for(var l=0;o;){if(o.nodeType===8){var d=o.data;if(d==="/$"||d==="/&"){if(l===0)return ir(o.nextSibling);l--}else d!=="$"&&d!=="$!"&&d!=="$?"&&d!=="$~"&&d!=="&"||l++}o=o.nextSibling}return null}function KC(o){o=o.previousSibling;for(var l=0;o;){if(o.nodeType===8){var d=o.data;if(d==="$"||d==="$!"||d==="$?"||d==="$~"||d==="&"){if(l===0)return o;l--}else d!=="/$"&&d!=="/&"||l++}o=o.previousSibling}return null}function XC(o,l,d){switch(l=Ed(d),o){case"html":if(o=l.documentElement,!o)throw Error(r(452));return o;case"head":if(o=l.head,!o)throw Error(r(453));return o;case"body":if(o=l.body,!o)throw Error(r(454));return o;default:throw Error(r(451))}}function jl(o){for(var l=o.attributes;l.length;)o.removeAttributeNode(l[0]);bh(o)}var ar=new Map,ZC=new Set;function Sd(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var di=W.d;W.d={f:zF,r:UF,D:PF,C:$F,L:HF,m:jF,X:VF,S:GF,M:qF};function zF(){var o=di.f(),l=dd();return o||l}function UF(o){var l=Mo(o);l!==null&&l.tag===5&&l.type==="form"?h0(l):di.r(o)}var hs=typeof document>"u"?null:document;function QC(o,l,d){var h=hs;if(h&&typeof l=="string"&&l){var y=Zn(l);y='link[rel="'+o+'"][href="'+y+'"]',typeof d=="string"&&(y+='[crossorigin="'+d+'"]'),ZC.has(y)||(ZC.add(y),o={rel:o,crossOrigin:d,href:l},h.querySelector(y)===null&&(l=h.createElement("link"),Qt(l,"link",o),Ht(l),h.head.appendChild(l)))}}function PF(o){di.D(o),QC("dns-prefetch",o,null)}function $F(o,l){di.C(o,l),QC("preconnect",o,l)}function HF(o,l,d){di.L(o,l,d);var h=hs;if(h&&o&&l){var y='link[rel="preload"][as="'+Zn(l)+'"]';l==="image"&&d&&d.imageSrcSet?(y+='[imagesrcset="'+Zn(d.imageSrcSet)+'"]',typeof d.imageSizes=="string"&&(y+='[imagesizes="'+Zn(d.imageSizes)+'"]')):y+='[href="'+Zn(o)+'"]';var E=y;switch(l){case"style":E=ms(o);break;case"script":E=gs(o)}ar.has(E)||(o=m({rel:"preload",href:l==="image"&&d&&d.imageSrcSet?void 0:o,as:l},d),ar.set(E,o),h.querySelector(y)!==null||l==="style"&&h.querySelector(Gl(E))||l==="script"&&h.querySelector(Vl(E))||(l=h.createElement("link"),Qt(l,"link",o),Ht(l),h.head.appendChild(l)))}}function jF(o,l){di.m(o,l);var d=hs;if(d&&o){var h=l&&typeof l.as=="string"?l.as:"script",y='link[rel="modulepreload"][as="'+Zn(h)+'"][href="'+Zn(o)+'"]',E=y;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":E=gs(o)}if(!ar.has(E)&&(o=m({rel:"modulepreload",href:o},l),ar.set(E,o),d.querySelector(y)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(d.querySelector(Vl(E)))return}h=d.createElement("link"),Qt(h,"link",o),Ht(h),d.head.appendChild(h)}}}function GF(o,l,d){di.S(o,l,d);var h=hs;if(h&&o){var y=Bo(h).hoistableStyles,E=ms(o);l=l||"default";var T=y.get(E);if(!T){var C={loading:0,preload:null};if(T=h.querySelector(Gl(E)))C.loading=5;else{o=m({rel:"stylesheet",href:o,"data-precedence":l},d),(d=ar.get(E))&&gg(o,d);var P=T=h.createElement("link");Ht(P),Qt(P,"link",o),P._p=new Promise(function(K,ne){P.onload=K,P.onerror=ne}),P.addEventListener("load",function(){C.loading|=1}),P.addEventListener("error",function(){C.loading|=2}),C.loading|=4,kd(T,l,h)}T={type:"stylesheet",instance:T,count:1,state:C},y.set(E,T)}}}function VF(o,l){di.X(o,l);var d=hs;if(d&&o){var h=Bo(d).hoistableScripts,y=gs(o),E=h.get(y);E||(E=d.querySelector(Vl(y)),E||(o=m({src:o,async:!0},l),(l=ar.get(y))&&bg(o,l),E=d.createElement("script"),Ht(E),Qt(E,"link",o),d.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},h.set(y,E))}}function qF(o,l){di.M(o,l);var d=hs;if(d&&o){var h=Bo(d).hoistableScripts,y=gs(o),E=h.get(y);E||(E=d.querySelector(Vl(y)),E||(o=m({src:o,async:!0,type:"module"},l),(l=ar.get(y))&&bg(o,l),E=d.createElement("script"),Ht(E),Qt(E,"link",o),d.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},h.set(y,E))}}function JC(o,l,d,h){var y=(y=fe.current)?Sd(y):null;if(!y)throw Error(r(446));switch(o){case"meta":case"title":return null;case"style":return typeof d.precedence=="string"&&typeof d.href=="string"?(l=ms(d.href),d=Bo(y).hoistableStyles,h=d.get(l),h||(h={type:"style",instance:null,count:0,state:null},d.set(l,h)),h):{type:"void",instance:null,count:0,state:null};case"link":if(d.rel==="stylesheet"&&typeof d.href=="string"&&typeof d.precedence=="string"){o=ms(d.href);var E=Bo(y).hoistableStyles,T=E.get(o);if(T||(y=y.ownerDocument||y,T={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},E.set(o,T),(E=y.querySelector(Gl(o)))&&!E._p&&(T.instance=E,T.state.loading=5),ar.has(o)||(d={rel:"preload",as:"style",href:d.href,crossOrigin:d.crossOrigin,integrity:d.integrity,media:d.media,hrefLang:d.hrefLang,referrerPolicy:d.referrerPolicy},ar.set(o,d),E||WF(y,o,d,T.state))),l&&h===null)throw Error(r(528,""));return T}if(l&&h!==null)throw Error(r(529,""));return null;case"script":return l=d.async,d=d.src,typeof d=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=gs(d),d=Bo(y).hoistableScripts,h=d.get(l),h||(h={type:"script",instance:null,count:0,state:null},d.set(l,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,o))}}function ms(o){return'href="'+Zn(o)+'"'}function Gl(o){return'link[rel="stylesheet"]['+o+"]"}function eR(o){return m({},o,{"data-precedence":o.precedence,precedence:null})}function WF(o,l,d,h){o.querySelector('link[rel="preload"][as="style"]['+l+"]")?h.loading=1:(l=o.createElement("link"),h.preload=l,l.addEventListener("load",function(){return h.loading|=1}),l.addEventListener("error",function(){return h.loading|=2}),Qt(l,"link",d),Ht(l),o.head.appendChild(l))}function gs(o){return'[src="'+Zn(o)+'"]'}function Vl(o){return"script[async]"+o}function tR(o,l,d){if(l.count++,l.instance===null)switch(l.type){case"style":var h=o.querySelector('style[data-href~="'+Zn(d.href)+'"]');if(h)return l.instance=h,Ht(h),h;var y=m({},d,{"data-href":d.href,"data-precedence":d.precedence,href:null,precedence:null});return h=(o.ownerDocument||o).createElement("style"),Ht(h),Qt(h,"style",y),kd(h,d.precedence,o),l.instance=h;case"stylesheet":y=ms(d.href);var E=o.querySelector(Gl(y));if(E)return l.state.loading|=4,l.instance=E,Ht(E),E;h=eR(d),(y=ar.get(y))&&gg(h,y),E=(o.ownerDocument||o).createElement("link"),Ht(E);var T=E;return T._p=new Promise(function(C,P){T.onload=C,T.onerror=P}),Qt(E,"link",h),l.state.loading|=4,kd(E,d.precedence,o),l.instance=E;case"script":return E=gs(d.src),(y=o.querySelector(Vl(E)))?(l.instance=y,Ht(y),y):(h=d,(y=ar.get(E))&&(h=m({},d),bg(h,y)),o=o.ownerDocument||o,y=o.createElement("script"),Ht(y),Qt(y,"link",h),o.head.appendChild(y),l.instance=y);case"void":return null;default:throw Error(r(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(h=l.instance,l.state.loading|=4,kd(h,d.precedence,o));return l.instance}function kd(o,l,d){for(var h=d.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),y=h.length?h[h.length-1]:null,E=y,T=0;T<h.length;T++){var C=h[T];if(C.dataset.precedence===l)E=C;else if(E!==y)break}E?E.parentNode.insertBefore(o,E.nextSibling):(l=d.nodeType===9?d.head:d,l.insertBefore(o,l.firstChild))}function gg(o,l){o.crossOrigin==null&&(o.crossOrigin=l.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=l.referrerPolicy),o.title==null&&(o.title=l.title)}function bg(o,l){o.crossOrigin==null&&(o.crossOrigin=l.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=l.referrerPolicy),o.integrity==null&&(o.integrity=l.integrity)}var vd=null;function nR(o,l,d){if(vd===null){var h=new Map,y=vd=new Map;y.set(d,h)}else y=vd,h=y.get(d),h||(h=new Map,y.set(d,h));if(h.has(o))return h;for(h.set(o,null),d=d.getElementsByTagName(o),y=0;y<d.length;y++){var E=d[y];if(!(E[sl]||E[Yt]||o==="link"&&E.getAttribute("rel")==="stylesheet")&&E.namespaceURI!=="http://www.w3.org/2000/svg"){var T=E.getAttribute(l)||"";T=o+T;var C=h.get(T);C?C.push(E):h.set(T,[E])}}return h}function rR(o,l,d){o=o.ownerDocument||o,o.head.insertBefore(d,l==="title"?o.querySelector("head > title"):null)}function YF(o,l,d){if(d===1||l.itemProp!=null)return!1;switch(o){case"meta":case"title":return!0;case"style":if(typeof l.precedence!="string"||typeof l.href!="string"||l.href==="")break;return!0;case"link":if(typeof l.rel!="string"||typeof l.href!="string"||l.href===""||l.onLoad||l.onError)break;return l.rel==="stylesheet"?(o=l.disabled,typeof l.precedence=="string"&&o==null):!0;case"script":if(l.async&&typeof l.async!="function"&&typeof l.async!="symbol"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src=="string")return!0}return!1}function iR(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}function KF(o,l,d,h){if(d.type==="stylesheet"&&(typeof h.media!="string"||matchMedia(h.media).matches!==!1)&&(d.state.loading&4)===0){if(d.instance===null){var y=ms(h.href),E=l.querySelector(Gl(y));if(E){l=E._p,l!==null&&typeof l=="object"&&typeof l.then=="function"&&(o.count++,o=wd.bind(o),l.then(o,o)),d.state.loading|=4,d.instance=E,Ht(E);return}E=l.ownerDocument||l,h=eR(h),(y=ar.get(y))&&gg(h,y),E=E.createElement("link"),Ht(E);var T=E;T._p=new Promise(function(C,P){T.onload=C,T.onerror=P}),Qt(E,"link",h),d.instance=E}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(d,l),(l=d.state.preload)&&(d.state.loading&3)===0&&(o.count++,d=wd.bind(o),l.addEventListener("load",d),l.addEventListener("error",d))}}var yg=0;function XF(o,l){return o.stylesheets&&o.count===0&&xd(o,o.stylesheets),0<o.count||0<o.imgCount?function(d){var h=setTimeout(function(){if(o.stylesheets&&xd(o,o.stylesheets),o.unsuspend){var E=o.unsuspend;o.unsuspend=null,E()}},6e4+l);0<o.imgBytes&&yg===0&&(yg=62500*_F());var y=setTimeout(function(){if(o.waitingForImages=!1,o.count===0&&(o.stylesheets&&xd(o,o.stylesheets),o.unsuspend)){var E=o.unsuspend;o.unsuspend=null,E()}},(o.imgBytes>yg?50:800)+l);return o.unsuspend=d,function(){o.unsuspend=null,clearTimeout(h),clearTimeout(y)}}:null}function wd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)xd(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var Td=null;function xd(o,l){o.stylesheets=null,o.unsuspend!==null&&(o.count++,Td=new Map,l.forEach(ZF,o),Td=null,wd.call(o))}function ZF(o,l){if(!(l.state.loading&4)){var d=Td.get(o);if(d)var h=d.get(null);else{d=new Map,Td.set(o,d);for(var y=o.querySelectorAll("link[data-precedence],style[data-precedence]"),E=0;E<y.length;E++){var T=y[E];(T.nodeName==="LINK"||T.getAttribute("media")!=="not all")&&(d.set(T.dataset.precedence,T),h=T)}h&&d.set(null,h)}y=l.instance,T=y.getAttribute("data-precedence"),E=d.get(T)||h,E===h&&d.set(null,y),d.set(T,y),this.count++,h=wd.bind(this),y.addEventListener("load",h),y.addEventListener("error",h),E?E.parentNode.insertBefore(y,E.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore(y,o.firstChild)),l.state.loading|=4}}var ql={$$typeof:A,Provider:null,Consumer:null,_currentValue:re,_currentValue2:re,_threadCount:0};function QF(o,l,d,h,y,E,T,C,P){this.tag=1,this.containerInfo=o,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=fh(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fh(0),this.hiddenUpdates=fh(null),this.identifierPrefix=h,this.onUncaughtError=y,this.onCaughtError=E,this.onRecoverableError=T,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=P,this.incompleteTransitions=new Map}function aR(o,l,d,h,y,E,T,C,P,K,ne,se){return o=new QF(o,l,d,T,P,K,ne,se,C),l=1,E===!0&&(l|=24),E=Fn(3,null,null,l),o.current=E,E.stateNode=o,l=Zh(),l.refCount++,o.pooledCache=l,l.refCount++,E.memoizedState={element:h,isDehydrated:d,cache:l},tm(E),o}function oR(o){return o?(o=qo,o):qo}function sR(o,l,d,h,y,E){y=oR(y),h.context===null?h.context=y:h.pendingContext=y,h=Fi(l),h.payload={element:d},E=E===void 0?null:E,E!==null&&(h.callback=E),d=zi(o,h,l),d!==null&&(Nn(d,o,l),Tl(d,o,l))}function lR(o,l){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var d=o.retryLane;o.retryLane=d!==0&&d<l?d:l}}function Eg(o,l){lR(o,l),(o=o.alternate)&&lR(o,l)}function uR(o){if(o.tag===13||o.tag===31){var l=za(o,67108864);l!==null&&Nn(l,o,67108864),Eg(o,67108864)}}function cR(o){if(o.tag===13||o.tag===31){var l=Hn();l=hh(l);var d=za(o,l);d!==null&&Nn(d,o,l),Eg(o,l)}}var Ad=!0;function JF(o,l,d,h){var y=$.T;$.T=null;var E=W.p;try{W.p=2,Sg(o,l,d,h)}finally{W.p=E,$.T=y}}function ez(o,l,d,h){var y=$.T;$.T=null;var E=W.p;try{W.p=8,Sg(o,l,d,h)}finally{W.p=E,$.T=y}}function Sg(o,l,d,h){if(Ad){var y=kg(h);if(y===null)og(o,l,h,Cd,d),pR(o,h);else if(nz(y,o,l,d,h))h.stopPropagation();else if(pR(o,h),l&4&&-1<tz.indexOf(o)){for(;y!==null;){var E=Mo(y);if(E!==null)switch(E.tag){case 3:if(E=E.stateNode,E.current.memoizedState.isDehydrated){var T=Da(E.pendingLanes);if(T!==0){var C=E;for(C.pendingLanes|=2,C.entangledLanes|=2;T;){var P=1<<31-st(T);C.entanglements[1]|=P,T&=~P}Dr(E),(Qe&6)===0&&(ud=hn()+500,Pl(0))}}break;case 31:case 13:C=za(E,2),C!==null&&Nn(C,E,2),dd(),Eg(E,2)}if(E=kg(h),E===null&&og(o,l,h,Cd,d),E===y)break;y=E}y!==null&&h.stopPropagation()}else og(o,l,h,null,d)}}function kg(o){return o=wh(o),vg(o)}var Cd=null;function vg(o){if(Cd=null,o=Lo(o),o!==null){var l=a(o);if(l===null)o=null;else{var d=l.tag;if(d===13){if(o=s(l),o!==null)return o;o=null}else if(d===31){if(o=u(l),o!==null)return o;o=null}else if(d===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;o=null}else l!==o&&(o=null)}}return Cd=o,null}function dR(o){switch(o){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ph()){case ie:return 2;case me:return 8;case Re:case Ue:return 32;case Je:return 268435456;default:return 32}default:return 32}}var wg=!1,Ki=null,Xi=null,Zi=null,Wl=new Map,Yl=new Map,Qi=[],tz="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function pR(o,l){switch(o){case"focusin":case"focusout":Ki=null;break;case"dragenter":case"dragleave":Xi=null;break;case"mouseover":case"mouseout":Zi=null;break;case"pointerover":case"pointerout":Wl.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":Yl.delete(l.pointerId)}}function Kl(o,l,d,h,y,E){return o===null||o.nativeEvent!==E?(o={blockedOn:l,domEventName:d,eventSystemFlags:h,nativeEvent:E,targetContainers:[y]},l!==null&&(l=Mo(l),l!==null&&uR(l)),o):(o.eventSystemFlags|=h,l=o.targetContainers,y!==null&&l.indexOf(y)===-1&&l.push(y),o)}function nz(o,l,d,h,y){switch(l){case"focusin":return Ki=Kl(Ki,o,l,d,h,y),!0;case"dragenter":return Xi=Kl(Xi,o,l,d,h,y),!0;case"mouseover":return Zi=Kl(Zi,o,l,d,h,y),!0;case"pointerover":var E=y.pointerId;return Wl.set(E,Kl(Wl.get(E)||null,o,l,d,h,y)),!0;case"gotpointercapture":return E=y.pointerId,Yl.set(E,Kl(Yl.get(E)||null,o,l,d,h,y)),!0}return!1}function fR(o){var l=Lo(o.target);if(l!==null){var d=a(l);if(d!==null){if(l=d.tag,l===13){if(l=s(d),l!==null){o.blockedOn=l,Cx(o.priority,function(){cR(d)});return}}else if(l===31){if(l=u(d),l!==null){o.blockedOn=l,Cx(o.priority,function(){cR(d)});return}}else if(l===3&&d.stateNode.current.memoizedState.isDehydrated){o.blockedOn=d.tag===3?d.stateNode.containerInfo:null;return}}}o.blockedOn=null}function Rd(o){if(o.blockedOn!==null)return!1;for(var l=o.targetContainers;0<l.length;){var d=kg(o.nativeEvent);if(d===null){d=o.nativeEvent;var h=new d.constructor(d.type,d);vh=h,d.target.dispatchEvent(h),vh=null}else return l=Mo(d),l!==null&&uR(l),o.blockedOn=d,!1;l.shift()}return!0}function hR(o,l,d){Rd(o)&&d.delete(l)}function rz(){wg=!1,Ki!==null&&Rd(Ki)&&(Ki=null),Xi!==null&&Rd(Xi)&&(Xi=null),Zi!==null&&Rd(Zi)&&(Zi=null),Wl.forEach(hR),Yl.forEach(hR)}function Nd(o,l){o.blockedOn===l&&(o.blockedOn=null,wg||(wg=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,rz)))}var _d=null;function mR(o){_d!==o&&(_d=o,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){_d===o&&(_d=null);for(var l=0;l<o.length;l+=3){var d=o[l],h=o[l+1],y=o[l+2];if(typeof h!="function"){if(vg(h||d)===null)continue;break}var E=Mo(d);E!==null&&(o.splice(l,3),l-=3,km(E,{pending:!0,data:y,method:d.method,action:h},h,y))}}))}function bs(o){function l(P){return Nd(P,o)}Ki!==null&&Nd(Ki,o),Xi!==null&&Nd(Xi,o),Zi!==null&&Nd(Zi,o),Wl.forEach(l),Yl.forEach(l);for(var d=0;d<Qi.length;d++){var h=Qi[d];h.blockedOn===o&&(h.blockedOn=null)}for(;0<Qi.length&&(d=Qi[0],d.blockedOn===null);)fR(d),d.blockedOn===null&&Qi.shift();if(d=(o.ownerDocument||o).$$reactFormReplay,d!=null)for(h=0;h<d.length;h+=3){var y=d[h],E=d[h+1],T=y[wn]||null;if(typeof E=="function")T||mR(d);else if(T){var C=null;if(E&&E.hasAttribute("formAction")){if(y=E,T=E[wn]||null)C=T.formAction;else if(vg(y)!==null)continue}else C=T.action;typeof C=="function"?d[h+1]=C:(d.splice(h,3),h-=3),mR(d)}}}function gR(){function o(E){E.canIntercept&&E.info==="react-transition"&&E.intercept({handler:function(){return new Promise(function(T){return y=T})},focusReset:"manual",scroll:"manual"})}function l(){y!==null&&(y(),y=null),h||setTimeout(d,20)}function d(){if(!h&&!navigation.transition){var E=navigation.currentEntry;E&&E.url!=null&&navigation.navigate(E.url,{state:E.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var h=!1,y=null;return navigation.addEventListener("navigate",o),navigation.addEventListener("navigatesuccess",l),navigation.addEventListener("navigateerror",l),setTimeout(d,100),function(){h=!0,navigation.removeEventListener("navigate",o),navigation.removeEventListener("navigatesuccess",l),navigation.removeEventListener("navigateerror",l),y!==null&&(y(),y=null)}}}function Tg(o){this._internalRoot=o}Od.prototype.render=Tg.prototype.render=function(o){var l=this._internalRoot;if(l===null)throw Error(r(409));var d=l.current,h=Hn();sR(d,h,o,l,null,null)},Od.prototype.unmount=Tg.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var l=o.containerInfo;sR(o.current,2,null,o,null,null),dd(),l[Do]=null}};function Od(o){this._internalRoot=o}Od.prototype.unstable_scheduleHydration=function(o){if(o){var l=Ax();o={blockedOn:null,target:o,priority:l};for(var d=0;d<Qi.length&&l!==0&&l<Qi[d].priority;d++);Qi.splice(d,0,o),d===0&&fR(o)}};var bR=t.version;if(bR!=="19.2.4")throw Error(r(527,bR,"19.2.4"));W.findDOMNode=function(o){var l=o._reactInternals;if(l===void 0)throw typeof o.render=="function"?Error(r(188)):(o=Object.keys(o).join(","),Error(r(268,o)));return o=p(l),o=o!==null?f(o):null,o=o===null?null:o.stateNode,o};var iz={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:$,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Id=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Id.isDisabled&&Id.supportsFiber)try{mn=Id.inject(iz),zt=Id}catch{}}return Zl.createRoot=function(o,l){if(!i(o))throw Error(r(299));var d=!1,h="",y=T0,E=x0,T=A0;return l!=null&&(l.unstable_strictMode===!0&&(d=!0),l.identifierPrefix!==void 0&&(h=l.identifierPrefix),l.onUncaughtError!==void 0&&(y=l.onUncaughtError),l.onCaughtError!==void 0&&(E=l.onCaughtError),l.onRecoverableError!==void 0&&(T=l.onRecoverableError)),l=aR(o,1,!1,null,null,d,h,null,y,E,T,gR),o[Do]=l.current,ag(o),new Tg(l)},Zl.hydrateRoot=function(o,l,d){if(!i(o))throw Error(r(299));var h=!1,y="",E=T0,T=x0,C=A0,P=null;return d!=null&&(d.unstable_strictMode===!0&&(h=!0),d.identifierPrefix!==void 0&&(y=d.identifierPrefix),d.onUncaughtError!==void 0&&(E=d.onUncaughtError),d.onCaughtError!==void 0&&(T=d.onCaughtError),d.onRecoverableError!==void 0&&(C=d.onRecoverableError),d.formState!==void 0&&(P=d.formState)),l=aR(o,1,!0,l,d??null,h,y,P,E,T,C,gR),l.context=oR(null),d=l.current,h=Hn(),h=hh(h),y=Fi(h),y.callback=null,zi(d,y,h),d=h,l.current.lanes=d,ol(l,d),Dr(l),o[Do]=l.current,ag(o),new Od(l)},Zl.version="19.2.4",Zl}var CR;function hz(){if(CR)return Cg.exports;CR=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Cg.exports=fz(),Cg.exports}var mz=hz();const gz=Xu(mz),kf="professor.bridgeToken",mp="professor.bridgeBase",bz="Bridge URL must be loopback";let RR=!1,Qu=null;function yz(){return typeof window>"u"?null:window}function Xy(){try{return typeof sessionStorage>"u"?null:sessionStorage}catch{return null}}function Iu(e){try{return Xy()?.getItem(e)||null}catch{return null}}function NR(e,t){try{Xy()?.setItem(e,t)}catch{}}function Ez(e){try{Xy()?.removeItem(e)}catch{}}function Sz(e){if(typeof e!="string"||!e)return null;let t;try{t=new URL(e)}catch{return null}if(t.protocol!=="http:"&&t.protocol!=="https:")return null;const n=String(t.hostname||"").toLowerCase();return n==="localhost"||n==="127.0.0.1"||n==="[::1]"||n==="::1"||n.startsWith("127.")?t.origin:null}function kz(){const e=yz();if(!e||RR)return Og();RR=!0;const t=typeof e.location?.hash=="string"?e.location.hash:"";if(!t)return Og();const n=new URLSearchParams(t.replace(/^#/,"")),r=n.get("token"),i=n.get("bridge");let a=!1;if(r&&(NR(kf,r),a=!0),i){const s=Sz(i);s?NR(mp,s):(Ez(mp),Qu=bz),a=!0}if(a)try{e.history?.replaceState(null,"",`${e.location.pathname}${e.location.search}`)}catch{}return Og()}function Og(){return{token:Iu(kf),bridge:Iu(mp),error:Qu}}function vz(){return Qu}function ma(){return!!Iu(kf)&&!Qu}function Sa(){return wz(Iu(mp))}function wz(e){return e?`${e}/api`:"/api"}function Tz(e){return typeof e=="string"&&e.startsWith("/api")?`${Sa()}${e.slice(4)}`:e}function gp(){const e=Iu(kf);return!e||Qu?{}:{"X-Studio-Token":e}}function Ju(e={}){return{...gp(),...e}}function vf(){const e=new Error("Pair this browser to use the legacy UI.");return e.code="pairing_required",e}async function iI(){if(!ma())return[];const e=await fetch(`${Sa()}/courses`,{headers:Ju()});if(!e.ok)throw new Error(`Failed to fetch courses: ${e.statusText}`);return e.json()}async function xz(e,t){if(!ma())throw vf();const n=await fetch(`${Sa()}/courses/${e}/${t}`,{headers:Ju()});if(!n.ok)throw new Error(`Failed to fetch course file: ${n.statusText}`);return n.json()}async function Az(e){if(!ma())throw vf();const t=await fetch(`${Sa()}/courses/${e}/exercises`,{headers:Ju()});if(!t.ok)throw new Error(`Failed to fetch exercises: ${t.statusText}`);return t.json()}async function _R(e,t){if(!ma())throw vf();const n=await fetch(`${Sa()}/courses/${e}/exercises/${t}`,{headers:Ju()});if(!n.ok)throw new Error(`Failed to fetch exercise: ${n.statusText}`);return n.json()}async function Cz(e,t,n){if(!ma())throw vf();const r=await fetch(`${Sa()}/courses/${e}/exercises/${t}`,{method:"POST",headers:Ju({"Content-Type":"application/json"}),body:JSON.stringify({content:n})});if(!r.ok)throw new Error(`Failed to save exercise: ${r.statusText}`);return r.json()}var ec=rI();const aI=Xu(ec);function OR(e,[t,n]){return Math.min(n,Math.max(t,e))}function Lt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e?.(i),n===!1||!i.defaultPrevented)return t?.(i)}}function Zy(e,t=[]){let n=[];function r(a,s){const u=L.createContext(s),c=n.length;n=[...n,s];const p=m=>{const{scope:g,children:b,...S}=m,k=g?.[e]?.[c]||u,v=L.useMemo(()=>S,Object.values(S));return B.jsx(k.Provider,{value:v,children:b})};p.displayName=a+"Provider";function f(m,g){const b=g?.[e]?.[c]||u,S=L.useContext(b);if(S)return S;if(s!==void 0)return s;throw new Error(`\`${m}\` must be used within \`${a}\``)}return[p,f]}const i=()=>{const a=n.map(s=>L.createContext(s));return function(u){const c=u?.[e]||a;return L.useMemo(()=>({[`__scope${e}`]:{...u,[e]:c}}),[u,c])}};return i.scopeName=e,[r,Rz(i,...t)]}function Rz(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(a){const s=r.reduce((u,{useScope:c,scopeName:p})=>{const m=c(a)[`__scope${p}`];return{...u,...m}},{});return L.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function IR(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function oI(...e){return t=>{let n=!1;const r=e.map(i=>{const a=IR(i,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let i=0;i<r.length;i++){const a=r[i];typeof a=="function"?a():IR(e[i],null)}}}}function rn(...e){return L.useCallback(oI(...e),e)}function bp(e){const t=Nz(e),n=L.forwardRef((r,i)=>{const{children:a,...s}=r,u=L.Children.toArray(a),c=u.find(Oz);if(c){const p=c.props.children,f=u.map(m=>m===c?L.Children.count(p)>1?L.Children.only(null):L.isValidElement(p)?p.props.children:null:m);return B.jsx(t,{...s,ref:i,children:L.isValidElement(p)?L.cloneElement(p,void 0,f):null})}return B.jsx(t,{...s,ref:i,children:a})});return n.displayName=`${e}.Slot`,n}function Nz(e){const t=L.forwardRef((n,r)=>{const{children:i,...a}=n;if(L.isValidElement(i)){const s=Dz(i),u=Iz(a,i.props);return i.type!==L.Fragment&&(u.ref=r?oI(r,s):s),L.cloneElement(i,u)}return L.Children.count(i)>1?L.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var _z=Symbol("radix.slottable");function Oz(e){return L.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===_z}function Iz(e,t){const n={...t};for(const r in t){const i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...u)=>{const c=a(...u);return i(...u),c}:i&&(n[r]=i):r==="style"?n[r]={...i,...a}:r==="className"&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}function Dz(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Lz(e){const t=e+"CollectionProvider",[n,r]=Zy(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=k=>{const{scope:v,children:w}=k,x=gt.useRef(null),A=gt.useRef(new Map).current;return B.jsx(i,{scope:v,itemMap:A,collectionRef:x,children:w})};s.displayName=t;const u=e+"CollectionSlot",c=bp(u),p=gt.forwardRef((k,v)=>{const{scope:w,children:x}=k,A=a(u,w),D=rn(v,A.collectionRef);return B.jsx(c,{ref:D,children:x})});p.displayName=u;const f=e+"CollectionItemSlot",m="data-radix-collection-item",g=bp(f),b=gt.forwardRef((k,v)=>{const{scope:w,children:x,...A}=k,D=gt.useRef(null),O=rn(v,D),R=a(f,w);return gt.useEffect(()=>(R.itemMap.set(D,{ref:D,...A}),()=>{R.itemMap.delete(D)})),B.jsx(g,{[m]:"",ref:O,children:x})});b.displayName=f;function S(k){const v=a(e+"CollectionConsumer",k);return gt.useCallback(()=>{const x=v.collectionRef.current;if(!x)return[];const A=Array.from(x.querySelectorAll(`[${m}]`));return Array.from(v.itemMap.values()).sort((R,M)=>A.indexOf(R.ref.current)-A.indexOf(M.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:s,Slot:p,ItemSlot:b},S,r]}var Mz=L.createContext(void 0);function Bz(e){const t=L.useContext(Mz);return e||t||"ltr"}var Fz=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Rt=Fz.reduce((e,t)=>{const n=bp(`Primitive.${t}`),r=L.forwardRef((i,a)=>{const{asChild:s,...u}=i,c=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),B.jsx(c,{...u,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function zz(e,t){e&&ec.flushSync(()=>e.dispatchEvent(t))}function fo(e){const t=L.useRef(e);return L.useEffect(()=>{t.current=e}),L.useMemo(()=>(...n)=>t.current?.(...n),[])}function Uz(e,t=globalThis?.document){const n=fo(e);L.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Pz="DismissableLayer",Pb="dismissableLayer.update",$z="dismissableLayer.pointerDownOutside",Hz="dismissableLayer.focusOutside",DR,sI=L.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),lI=L.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:u,...c}=e,p=L.useContext(sI),[f,m]=L.useState(null),g=f?.ownerDocument??globalThis?.document,[,b]=L.useState({}),S=rn(t,M=>m(M)),k=Array.from(p.layers),[v]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),w=k.indexOf(v),x=f?k.indexOf(f):-1,A=p.layersWithOutsidePointerEventsDisabled.size>0,D=x>=w,O=Vz(M=>{const U=M.target,G=[...p.branches].some(F=>F.contains(U));!D||G||(i?.(M),s?.(M),M.defaultPrevented||u?.())},g),R=qz(M=>{const U=M.target;[...p.branches].some(F=>F.contains(U))||(a?.(M),s?.(M),M.defaultPrevented||u?.())},g);return Uz(M=>{x===p.layers.size-1&&(r?.(M),!M.defaultPrevented&&u&&(M.preventDefault(),u()))},g),L.useEffect(()=>{if(f)return n&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(DR=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(f)),p.layers.add(f),LR(),()=>{n&&p.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=DR)}},[f,g,n,p]),L.useEffect(()=>()=>{f&&(p.layers.delete(f),p.layersWithOutsidePointerEventsDisabled.delete(f),LR())},[f,p]),L.useEffect(()=>{const M=()=>b({});return document.addEventListener(Pb,M),()=>document.removeEventListener(Pb,M)},[]),B.jsx(Rt.div,{...c,ref:S,style:{pointerEvents:A?D?"auto":"none":void 0,...e.style},onFocusCapture:Lt(e.onFocusCapture,R.onFocusCapture),onBlurCapture:Lt(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:Lt(e.onPointerDownCapture,O.onPointerDownCapture)})});lI.displayName=Pz;var jz="DismissableLayerBranch",Gz=L.forwardRef((e,t)=>{const n=L.useContext(sI),r=L.useRef(null),i=rn(t,r);return L.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),B.jsx(Rt.div,{...e,ref:i})});Gz.displayName=jz;function Vz(e,t=globalThis?.document){const n=fo(e),r=L.useRef(!1),i=L.useRef(()=>{});return L.useEffect(()=>{const a=u=>{if(u.target&&!r.current){let c=function(){uI($z,n,p,{discrete:!0})};const p={originalEvent:u};u.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=c,t.addEventListener("click",i.current,{once:!0})):c()}else t.removeEventListener("click",i.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function qz(e,t=globalThis?.document){const n=fo(e),r=L.useRef(!1);return L.useEffect(()=>{const i=a=>{a.target&&!r.current&&uI(Hz,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function LR(){const e=new CustomEvent(Pb);document.dispatchEvent(e)}function uI(e,t,n,{discrete:r}){const i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?zz(i,a):i.dispatchEvent(a)}var Ig=0;function Wz(){L.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??MR()),document.body.insertAdjacentElement("beforeend",e[1]??MR()),Ig++,()=>{Ig===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ig--}},[])}function MR(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Dg="focusScope.autoFocusOnMount",Lg="focusScope.autoFocusOnUnmount",BR={bubbles:!1,cancelable:!0},Yz="FocusScope",cI=L.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...s}=e,[u,c]=L.useState(null),p=fo(i),f=fo(a),m=L.useRef(null),g=rn(t,k=>c(k)),b=L.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;L.useEffect(()=>{if(r){let k=function(A){if(b.paused||!u)return;const D=A.target;u.contains(D)?m.current=D:ia(m.current,{select:!0})},v=function(A){if(b.paused||!u)return;const D=A.relatedTarget;D!==null&&(u.contains(D)||ia(m.current,{select:!0}))},w=function(A){if(document.activeElement===document.body)for(const O of A)O.removedNodes.length>0&&ia(u)};document.addEventListener("focusin",k),document.addEventListener("focusout",v);const x=new MutationObserver(w);return u&&x.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",k),document.removeEventListener("focusout",v),x.disconnect()}}},[r,u,b.paused]),L.useEffect(()=>{if(u){zR.add(b);const k=document.activeElement;if(!u.contains(k)){const w=new CustomEvent(Dg,BR);u.addEventListener(Dg,p),u.dispatchEvent(w),w.defaultPrevented||(Kz(eU(dI(u)),{select:!0}),document.activeElement===k&&ia(u))}return()=>{u.removeEventListener(Dg,p),setTimeout(()=>{const w=new CustomEvent(Lg,BR);u.addEventListener(Lg,f),u.dispatchEvent(w),w.defaultPrevented||ia(k??document.body,{select:!0}),u.removeEventListener(Lg,f),zR.remove(b)},0)}}},[u,p,f,b]);const S=L.useCallback(k=>{if(!n&&!r||b.paused)return;const v=k.key==="Tab"&&!k.altKey&&!k.ctrlKey&&!k.metaKey,w=document.activeElement;if(v&&w){const x=k.currentTarget,[A,D]=Xz(x);A&&D?!k.shiftKey&&w===D?(k.preventDefault(),n&&ia(A,{select:!0})):k.shiftKey&&w===A&&(k.preventDefault(),n&&ia(D,{select:!0})):w===x&&k.preventDefault()}},[n,r,b.paused]);return B.jsx(Rt.div,{tabIndex:-1,...s,ref:g,onKeyDown:S})});cI.displayName=Yz;function Kz(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ia(r,{select:t}),document.activeElement!==n)return}function Xz(e){const t=dI(e),n=FR(t,e),r=FR(t.reverse(),e);return[n,r]}function dI(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function FR(e,t){for(const n of e)if(!Zz(n,{upTo:t}))return n}function Zz(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Qz(e){return e instanceof HTMLInputElement&&"select"in e}function ia(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Qz(e)&&t&&e.select()}}var zR=Jz();function Jz(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=UR(e,t),e.unshift(t)},remove(t){e=UR(e,t),e[0]?.resume()}}}function UR(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function eU(e){return e.filter(t=>t.tagName!=="A")}var Dn=globalThis?.document?L.useLayoutEffect:()=>{},tU=nI[" useId ".trim().toString()]||(()=>{}),nU=0;function Qy(e){const[t,n]=L.useState(tU());return Dn(()=>{n(r=>r??String(nU++))},[e]),e||(t?`radix-${t}`:"")}const rU=["top","right","bottom","left"],ka=Math.min,Gn=Math.max,yp=Math.round,Dd=Math.floor,$r=e=>({x:e,y:e}),iU={left:"right",right:"left",bottom:"top",top:"bottom"};function $b(e,t,n){return Gn(e,ka(t,n))}function wi(e,t){return typeof e=="function"?e(t):e}function Ti(e){return e.split("-")[0]}function Vs(e){return e.split("-")[1]}function Jy(e){return e==="x"?"y":"x"}function eE(e){return e==="y"?"height":"width"}function Pr(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function tE(e){return Jy(Pr(e))}function aU(e,t,n){n===void 0&&(n=!1);const r=Vs(e),i=tE(e),a=eE(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Ep(s)),[s,Ep(s)]}function oU(e){const t=Ep(e);return[Hb(e),t,Hb(t)]}function Hb(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const PR=["left","right"],$R=["right","left"],sU=["top","bottom"],lU=["bottom","top"];function uU(e,t,n){switch(e){case"top":case"bottom":return n?t?$R:PR:t?PR:$R;case"left":case"right":return t?sU:lU;default:return[]}}function cU(e,t,n,r){const i=Vs(e);let a=uU(Ti(e),n==="start",r);return i&&(a=a.map(s=>s+"-"+i),t&&(a=a.concat(a.map(Hb)))),a}function Ep(e){const t=Ti(e);return iU[t]+e.slice(t.length)}function dU(e){return{top:0,right:0,bottom:0,left:0,...e}}function pI(e){return typeof e!="number"?dU(e):{top:e,right:e,bottom:e,left:e}}function Sp(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function HR(e,t,n){let{reference:r,floating:i}=e;const a=Pr(t),s=tE(t),u=eE(s),c=Ti(t),p=a==="y",f=r.x+r.width/2-i.width/2,m=r.y+r.height/2-i.height/2,g=r[u]/2-i[u]/2;let b;switch(c){case"top":b={x:f,y:r.y-i.height};break;case"bottom":b={x:f,y:r.y+r.height};break;case"right":b={x:r.x+r.width,y:m};break;case"left":b={x:r.x-i.width,y:m};break;default:b={x:r.x,y:r.y}}switch(Vs(t)){case"start":b[s]-=g*(n&&p?-1:1);break;case"end":b[s]+=g*(n&&p?-1:1);break}return b}async function pU(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:a,rects:s,elements:u,strategy:c}=e,{boundary:p="clippingAncestors",rootBoundary:f="viewport",elementContext:m="floating",altBoundary:g=!1,padding:b=0}=wi(t,e),S=pI(b),v=u[g?m==="floating"?"reference":"floating":m],w=Sp(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(v)))==null||n?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(u.floating)),boundary:p,rootBoundary:f,strategy:c})),x=m==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,A=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u.floating)),D=await(a.isElement==null?void 0:a.isElement(A))?await(a.getScale==null?void 0:a.getScale(A))||{x:1,y:1}:{x:1,y:1},O=Sp(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:x,offsetParent:A,strategy:c}):x);return{top:(w.top-O.top+S.top)/D.y,bottom:(O.bottom-w.bottom+S.bottom)/D.y,left:(w.left-O.left+S.left)/D.x,right:(O.right-w.right+S.right)/D.x}}const fU=50,hU=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:s}=n,u=s.detectOverflow?s:{...s,detectOverflow:pU},c=await(s.isRTL==null?void 0:s.isRTL(t));let p=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:m}=HR(p,r,c),g=r,b=0;const S={};for(let k=0;k<a.length;k++){const v=a[k];if(!v)continue;const{name:w,fn:x}=v,{x:A,y:D,data:O,reset:R}=await x({x:f,y:m,initialPlacement:r,placement:g,strategy:i,middlewareData:S,rects:p,platform:u,elements:{reference:e,floating:t}});f=A??f,m=D??m,S[w]={...S[w],...O},R&&b<fU&&(b++,typeof R=="object"&&(R.placement&&(g=R.placement),R.rects&&(p=R.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):R.rects),{x:f,y:m}=HR(p,g,c)),k=-1)}return{x:f,y:m,placement:g,strategy:i,middlewareData:S}},mU=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:a,platform:s,elements:u,middlewareData:c}=t,{element:p,padding:f=0}=wi(e,t)||{};if(p==null)return{};const m=pI(f),g={x:n,y:r},b=tE(i),S=eE(b),k=await s.getDimensions(p),v=b==="y",w=v?"top":"left",x=v?"bottom":"right",A=v?"clientHeight":"clientWidth",D=a.reference[S]+a.reference[b]-g[b]-a.floating[S],O=g[b]-a.reference[b],R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(p));let M=R?R[A]:0;(!M||!await(s.isElement==null?void 0:s.isElement(R)))&&(M=u.floating[A]||a.floating[S]);const U=D/2-O/2,G=M/2-k[S]/2-1,F=ka(m[w],G),Q=ka(m[x],G),q=F,te=M-k[S]-Q,J=M/2-k[S]/2+U,Z=$b(q,J,te),$=!c.arrow&&Vs(i)!=null&&J!==Z&&a.reference[S]/2-(J<q?F:Q)-k[S]/2<0,W=$?J<q?J-q:J-te:0;return{[b]:g[b]+W,data:{[b]:Z,centerOffset:J-Z-W,...$&&{alignmentOffset:W}},reset:$}}}),gU=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:a,rects:s,initialPlacement:u,platform:c,elements:p}=t,{mainAxis:f=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:k=!0,...v}=wi(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const w=Ti(i),x=Pr(u),A=Ti(u)===u,D=await(c.isRTL==null?void 0:c.isRTL(p.floating)),O=g||(A||!k?[Ep(u)]:oU(u)),R=S!=="none";!g&&R&&O.push(...cU(u,k,S,D));const M=[u,...O],U=await c.detectOverflow(t,v),G=[];let F=((r=a.flip)==null?void 0:r.overflows)||[];if(f&&G.push(U[w]),m){const J=aU(i,s,D);G.push(U[J[0]],U[J[1]])}if(F=[...F,{placement:i,overflows:G}],!G.every(J=>J<=0)){var Q,q;const J=(((Q=a.flip)==null?void 0:Q.index)||0)+1,Z=M[J];if(Z&&(!(m==="alignment"?x!==Pr(Z):!1)||F.every(re=>Pr(re.placement)===x?re.overflows[0]>0:!0)))return{data:{index:J,overflows:F},reset:{placement:Z}};let $=(q=F.filter(W=>W.overflows[0]<=0).sort((W,re)=>W.overflows[1]-re.overflows[1])[0])==null?void 0:q.placement;if(!$)switch(b){case"bestFit":{var te;const W=(te=F.filter(re=>{if(R){const he=Pr(re.placement);return he===x||he==="y"}return!0}).map(re=>[re.placement,re.overflows.filter(he=>he>0).reduce((he,N)=>he+N,0)]).sort((re,he)=>re[1]-he[1])[0])==null?void 0:te[0];W&&($=W);break}case"initialPlacement":$=u;break}if(i!==$)return{reset:{placement:$}}}return{}}}};function jR(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function GR(e){return rU.some(t=>e[t]>=0)}const bU=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:i="referenceHidden",...a}=wi(e,t);switch(i){case"referenceHidden":{const s=await r.detectOverflow(t,{...a,elementContext:"reference"}),u=jR(s,n.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:GR(u)}}}case"escaped":{const s=await r.detectOverflow(t,{...a,altBoundary:!0}),u=jR(s,n.floating);return{data:{escapedOffsets:u,escaped:GR(u)}}}default:return{}}}}},fI=new Set(["left","top"]);async function yU(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=Ti(n),u=Vs(n),c=Pr(n)==="y",p=fI.has(s)?-1:1,f=a&&c?-1:1,m=wi(t,e);let{mainAxis:g,crossAxis:b,alignmentAxis:S}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return u&&typeof S=="number"&&(b=u==="end"?S*-1:S),c?{x:b*f,y:g*p}:{x:g*p,y:b*f}}const EU=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:a,placement:s,middlewareData:u}=t,c=await yU(t,e);return s===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:i+c.x,y:a+c.y,data:{...c,placement:s}}}}},SU=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i,platform:a}=t,{mainAxis:s=!0,crossAxis:u=!1,limiter:c={fn:w=>{let{x,y:A}=w;return{x,y:A}}},...p}=wi(e,t),f={x:n,y:r},m=await a.detectOverflow(t,p),g=Pr(Ti(i)),b=Jy(g);let S=f[b],k=f[g];if(s){const w=b==="y"?"top":"left",x=b==="y"?"bottom":"right",A=S+m[w],D=S-m[x];S=$b(A,S,D)}if(u){const w=g==="y"?"top":"left",x=g==="y"?"bottom":"right",A=k+m[w],D=k-m[x];k=$b(A,k,D)}const v=c.fn({...t,[b]:S,[g]:k});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[b]:s,[g]:u}}}}}},kU=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:a,middlewareData:s}=t,{offset:u=0,mainAxis:c=!0,crossAxis:p=!0}=wi(e,t),f={x:n,y:r},m=Pr(i),g=Jy(m);let b=f[g],S=f[m];const k=wi(u,t),v=typeof k=="number"?{mainAxis:k,crossAxis:0}:{mainAxis:0,crossAxis:0,...k};if(c){const A=g==="y"?"height":"width",D=a.reference[g]-a.floating[A]+v.mainAxis,O=a.reference[g]+a.reference[A]-v.mainAxis;b<D?b=D:b>O&&(b=O)}if(p){var w,x;const A=g==="y"?"width":"height",D=fI.has(Ti(i)),O=a.reference[m]-a.floating[A]+(D&&((w=s.offset)==null?void 0:w[m])||0)+(D?0:v.crossAxis),R=a.reference[m]+a.reference[A]+(D?0:((x=s.offset)==null?void 0:x[m])||0)-(D?v.crossAxis:0);S<O?S=O:S>R&&(S=R)}return{[g]:b,[m]:S}}}},vU=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:a,platform:s,elements:u}=t,{apply:c=()=>{},...p}=wi(e,t),f=await s.detectOverflow(t,p),m=Ti(i),g=Vs(i),b=Pr(i)==="y",{width:S,height:k}=a.floating;let v,w;m==="top"||m==="bottom"?(v=m,w=g===(await(s.isRTL==null?void 0:s.isRTL(u.floating))?"start":"end")?"left":"right"):(w=m,v=g==="end"?"top":"bottom");const x=k-f.top-f.bottom,A=S-f.left-f.right,D=ka(k-f[v],x),O=ka(S-f[w],A),R=!t.middlewareData.shift;let M=D,U=O;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(U=A),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(M=x),R&&!g){const F=Gn(f.left,0),Q=Gn(f.right,0),q=Gn(f.top,0),te=Gn(f.bottom,0);b?U=S-2*(F!==0||Q!==0?F+Q:Gn(f.left,f.right)):M=k-2*(q!==0||te!==0?q+te:Gn(f.top,f.bottom))}await c({...t,availableWidth:U,availableHeight:M});const G=await s.getDimensions(u.floating);return S!==G.width||k!==G.height?{reset:{rects:!0}}:{}}}};function wf(){return typeof window<"u"}function qs(e){return hI(e)?(e.nodeName||"").toLowerCase():"#document"}function qn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Gr(e){var t;return(t=(hI(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function hI(e){return wf()?e instanceof Node||e instanceof qn(e).Node:!1}function Ar(e){return wf()?e instanceof Element||e instanceof qn(e).Element:!1}function xi(e){return wf()?e instanceof HTMLElement||e instanceof qn(e).HTMLElement:!1}function VR(e){return!wf()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof qn(e).ShadowRoot}function tc(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Cr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!=="inline"&&i!=="contents"}function wU(e){return/^(table|td|th)$/.test(qs(e))}function Tf(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const TU=/transform|translate|scale|rotate|perspective|filter/,xU=/paint|layout|strict|content/,Za=e=>!!e&&e!=="none";let Mg;function nE(e){const t=Ar(e)?Cr(e):e;return Za(t.transform)||Za(t.translate)||Za(t.scale)||Za(t.rotate)||Za(t.perspective)||!rE()&&(Za(t.backdropFilter)||Za(t.filter))||TU.test(t.willChange||"")||xU.test(t.contain||"")}function AU(e){let t=va(e);for(;xi(t)&&!Bs(t);){if(nE(t))return t;if(Tf(t))return null;t=va(t)}return null}function rE(){return Mg==null&&(Mg=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Mg}function Bs(e){return/^(html|body|#document)$/.test(qs(e))}function Cr(e){return qn(e).getComputedStyle(e)}function xf(e){return Ar(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function va(e){if(qs(e)==="html")return e;const t=e.assignedSlot||e.parentNode||VR(e)&&e.host||Gr(e);return VR(t)?t.host:t}function mI(e){const t=va(e);return Bs(t)?e.ownerDocument?e.ownerDocument.body:e.body:xi(t)&&tc(t)?t:mI(t)}function Du(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=mI(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),s=qn(i);if(a){const u=jb(s);return t.concat(s,s.visualViewport||[],tc(i)?i:[],u&&n?Du(u):[])}else return t.concat(i,Du(i,[],n))}function jb(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function gI(e){const t=Cr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=xi(e),a=i?e.offsetWidth:n,s=i?e.offsetHeight:r,u=yp(n)!==a||yp(r)!==s;return u&&(n=a,r=s),{width:n,height:r,$:u}}function iE(e){return Ar(e)?e:e.contextElement}function Os(e){const t=iE(e);if(!xi(t))return $r(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=gI(t);let s=(a?yp(n.width):n.width)/r,u=(a?yp(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!u||!Number.isFinite(u))&&(u=1),{x:s,y:u}}const CU=$r(0);function bI(e){const t=qn(e);return!rE()||!t.visualViewport?CU:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function RU(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==qn(e)?!1:t}function ho(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=iE(e);let s=$r(1);t&&(r?Ar(r)&&(s=Os(r)):s=Os(e));const u=RU(a,n,r)?bI(a):$r(0);let c=(i.left+u.x)/s.x,p=(i.top+u.y)/s.y,f=i.width/s.x,m=i.height/s.y;if(a){const g=qn(a),b=r&&Ar(r)?qn(r):r;let S=g,k=jb(S);for(;k&&r&&b!==S;){const v=Os(k),w=k.getBoundingClientRect(),x=Cr(k),A=w.left+(k.clientLeft+parseFloat(x.paddingLeft))*v.x,D=w.top+(k.clientTop+parseFloat(x.paddingTop))*v.y;c*=v.x,p*=v.y,f*=v.x,m*=v.y,c+=A,p+=D,S=qn(k),k=jb(S)}}return Sp({width:f,height:m,x:c,y:p})}function Af(e,t){const n=xf(e).scrollLeft;return t?t.left+n:ho(Gr(e)).left+n}function yI(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Af(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function NU(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const a=i==="fixed",s=Gr(r),u=t?Tf(t.floating):!1;if(r===s||u&&a)return n;let c={scrollLeft:0,scrollTop:0},p=$r(1);const f=$r(0),m=xi(r);if((m||!m&&!a)&&((qs(r)!=="body"||tc(s))&&(c=xf(r)),m)){const b=ho(r);p=Os(r),f.x=b.x+r.clientLeft,f.y=b.y+r.clientTop}const g=s&&!m&&!a?yI(s,c):$r(0);return{width:n.width*p.x,height:n.height*p.y,x:n.x*p.x-c.scrollLeft*p.x+f.x+g.x,y:n.y*p.y-c.scrollTop*p.y+f.y+g.y}}function _U(e){return Array.from(e.getClientRects())}function OU(e){const t=Gr(e),n=xf(e),r=e.ownerDocument.body,i=Gn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Gn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Af(e);const u=-n.scrollTop;return Cr(r).direction==="rtl"&&(s+=Gn(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:s,y:u}}const qR=25;function IU(e,t){const n=qn(e),r=Gr(e),i=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,u=0,c=0;if(i){a=i.width,s=i.height;const f=rE();(!f||f&&t==="fixed")&&(u=i.offsetLeft,c=i.offsetTop)}const p=Af(r);if(p<=0){const f=r.ownerDocument,m=f.body,g=getComputedStyle(m),b=f.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,S=Math.abs(r.clientWidth-m.clientWidth-b);S<=qR&&(a-=S)}else p<=qR&&(a+=p);return{width:a,height:s,x:u,y:c}}function DU(e,t){const n=ho(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=xi(e)?Os(e):$r(1),s=e.clientWidth*a.x,u=e.clientHeight*a.y,c=i*a.x,p=r*a.y;return{width:s,height:u,x:c,y:p}}function WR(e,t,n){let r;if(t==="viewport")r=IU(e,n);else if(t==="document")r=OU(Gr(e));else if(Ar(t))r=DU(t,n);else{const i=bI(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Sp(r)}function EI(e,t){const n=va(e);return n===t||!Ar(n)||Bs(n)?!1:Cr(n).position==="fixed"||EI(n,t)}function LU(e,t){const n=t.get(e);if(n)return n;let r=Du(e,[],!1).filter(u=>Ar(u)&&qs(u)!=="body"),i=null;const a=Cr(e).position==="fixed";let s=a?va(e):e;for(;Ar(s)&&!Bs(s);){const u=Cr(s),c=nE(s);!c&&u.position==="fixed"&&(i=null),(a?!c&&!i:!c&&u.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||tc(s)&&!c&&EI(e,s))?r=r.filter(f=>f!==s):i=u,s=va(s)}return t.set(e,r),r}function MU(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?Tf(t)?[]:LU(t,this._c):[].concat(n),r],u=WR(t,s[0],i);let c=u.top,p=u.right,f=u.bottom,m=u.left;for(let g=1;g<s.length;g++){const b=WR(t,s[g],i);c=Gn(b.top,c),p=ka(b.right,p),f=ka(b.bottom,f),m=Gn(b.left,m)}return{width:p-m,height:f-c,x:m,y:c}}function BU(e){const{width:t,height:n}=gI(e);return{width:t,height:n}}function FU(e,t,n){const r=xi(t),i=Gr(t),a=n==="fixed",s=ho(e,!0,a,t);let u={scrollLeft:0,scrollTop:0};const c=$r(0);function p(){c.x=Af(i)}if(r||!r&&!a)if((qs(t)!=="body"||tc(i))&&(u=xf(t)),r){const b=ho(t,!0,a,t);c.x=b.x+t.clientLeft,c.y=b.y+t.clientTop}else i&&p();a&&!r&&i&&p();const f=i&&!r&&!a?yI(i,u):$r(0),m=s.left+u.scrollLeft-c.x-f.x,g=s.top+u.scrollTop-c.y-f.y;return{x:m,y:g,width:s.width,height:s.height}}function Bg(e){return Cr(e).position==="static"}function YR(e,t){if(!xi(e)||Cr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Gr(e)===n&&(n=n.ownerDocument.body),n}function SI(e,t){const n=qn(e);if(Tf(e))return n;if(!xi(e)){let i=va(e);for(;i&&!Bs(i);){if(Ar(i)&&!Bg(i))return i;i=va(i)}return n}let r=YR(e,t);for(;r&&wU(r)&&Bg(r);)r=YR(r,t);return r&&Bs(r)&&Bg(r)&&!nE(r)?n:r||AU(e)||n}const zU=async function(e){const t=this.getOffsetParent||SI,n=this.getDimensions,r=await n(e.floating);return{reference:FU(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function UU(e){return Cr(e).direction==="rtl"}const PU={convertOffsetParentRelativeRectToViewportRelativeRect:NU,getDocumentElement:Gr,getClippingRect:MU,getOffsetParent:SI,getElementRects:zU,getClientRects:_U,getDimensions:BU,getScale:Os,isElement:Ar,isRTL:UU};function kI(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function $U(e,t){let n=null,r;const i=Gr(e);function a(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function s(u,c){u===void 0&&(u=!1),c===void 0&&(c=1),a();const p=e.getBoundingClientRect(),{left:f,top:m,width:g,height:b}=p;if(u||t(),!g||!b)return;const S=Dd(m),k=Dd(i.clientWidth-(f+g)),v=Dd(i.clientHeight-(m+b)),w=Dd(f),A={rootMargin:-S+"px "+-k+"px "+-v+"px "+-w+"px",threshold:Gn(0,ka(1,c))||1};let D=!0;function O(R){const M=R[0].intersectionRatio;if(M!==c){if(!D)return s();M?s(!1,M):r=setTimeout(()=>{s(!1,1e-7)},1e3)}M===1&&!kI(p,e.getBoundingClientRect())&&s(),D=!1}try{n=new IntersectionObserver(O,{...A,root:i.ownerDocument})}catch{n=new IntersectionObserver(O,A)}n.observe(e)}return s(!0),a}function HU(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,p=iE(e),f=i||a?[...p?Du(p):[],...t?Du(t):[]]:[];f.forEach(w=>{i&&w.addEventListener("scroll",n,{passive:!0}),a&&w.addEventListener("resize",n)});const m=p&&u?$U(p,n):null;let g=-1,b=null;s&&(b=new ResizeObserver(w=>{let[x]=w;x&&x.target===p&&b&&t&&(b.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var A;(A=b)==null||A.observe(t)})),n()}),p&&!c&&b.observe(p),t&&b.observe(t));let S,k=c?ho(e):null;c&&v();function v(){const w=ho(e);k&&!kI(k,w)&&n(),k=w,S=requestAnimationFrame(v)}return n(),()=>{var w;f.forEach(x=>{i&&x.removeEventListener("scroll",n),a&&x.removeEventListener("resize",n)}),m?.(),(w=b)==null||w.disconnect(),b=null,c&&cancelAnimationFrame(S)}}const jU=EU,GU=SU,VU=gU,qU=vU,WU=bU,KR=mU,YU=kU,KU=(e,t,n)=>{const r=new Map,i={platform:PU,...n},a={...i.platform,_c:r};return hU(e,t,{...i,platform:a})};var XU=typeof document<"u",ZU=function(){},ip=XU?L.useLayoutEffect:ZU;function kp(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!kp(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const a=i[r];if(!(a==="_owner"&&e.$$typeof)&&!kp(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function vI(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function XR(e,t){const n=vI(e);return Math.round(t*n)/n}function Fg(e){const t=L.useRef(e);return ip(()=>{t.current=e}),t}function QU(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:s}={},transform:u=!0,whileElementsMounted:c,open:p}=e,[f,m]=L.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,b]=L.useState(r);kp(g,r)||b(r);const[S,k]=L.useState(null),[v,w]=L.useState(null),x=L.useCallback(re=>{re!==R.current&&(R.current=re,k(re))},[]),A=L.useCallback(re=>{re!==M.current&&(M.current=re,w(re))},[]),D=a||S,O=s||v,R=L.useRef(null),M=L.useRef(null),U=L.useRef(f),G=c!=null,F=Fg(c),Q=Fg(i),q=Fg(p),te=L.useCallback(()=>{if(!R.current||!M.current)return;const re={placement:t,strategy:n,middleware:g};Q.current&&(re.platform=Q.current),KU(R.current,M.current,re).then(he=>{const N={...he,isPositioned:q.current!==!1};J.current&&!kp(U.current,N)&&(U.current=N,ec.flushSync(()=>{m(N)}))})},[g,t,n,Q,q]);ip(()=>{p===!1&&U.current.isPositioned&&(U.current.isPositioned=!1,m(re=>({...re,isPositioned:!1})))},[p]);const J=L.useRef(!1);ip(()=>(J.current=!0,()=>{J.current=!1}),[]),ip(()=>{if(D&&(R.current=D),O&&(M.current=O),D&&O){if(F.current)return F.current(D,O,te);te()}},[D,O,te,F,G]);const Z=L.useMemo(()=>({reference:R,floating:M,setReference:x,setFloating:A}),[x,A]),$=L.useMemo(()=>({reference:D,floating:O}),[D,O]),W=L.useMemo(()=>{const re={position:n,left:0,top:0};if(!$.floating)return re;const he=XR($.floating,f.x),N=XR($.floating,f.y);return u?{...re,transform:"translate("+he+"px, "+N+"px)",...vI($.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:he,top:N}},[n,u,$.floating,f.x,f.y]);return L.useMemo(()=>({...f,update:te,refs:Z,elements:$,floatingStyles:W}),[f,te,Z,$,W])}const JU=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?KR({element:r.current,padding:i}).fn(n):{}:r?KR({element:r,padding:i}).fn(n):{}}}},eP=(e,t)=>{const n=jU(e);return{name:n.name,fn:n.fn,options:[e,t]}},tP=(e,t)=>{const n=GU(e);return{name:n.name,fn:n.fn,options:[e,t]}},nP=(e,t)=>({fn:YU(e).fn,options:[e,t]}),rP=(e,t)=>{const n=VU(e);return{name:n.name,fn:n.fn,options:[e,t]}},iP=(e,t)=>{const n=qU(e);return{name:n.name,fn:n.fn,options:[e,t]}},aP=(e,t)=>{const n=WU(e);return{name:n.name,fn:n.fn,options:[e,t]}},oP=(e,t)=>{const n=JU(e);return{name:n.name,fn:n.fn,options:[e,t]}};var sP="Arrow",wI=L.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...a}=e;return B.jsx(Rt.svg,{...a,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:B.jsx("polygon",{points:"0,0 30,0 15,10"})})});wI.displayName=sP;var lP=wI;function uP(e){const[t,n]=L.useState(void 0);return Dn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const a=i[0];let s,u;if("borderBoxSize"in a){const c=a.borderBoxSize,p=Array.isArray(c)?c[0]:c;s=p.inlineSize,u=p.blockSize}else s=e.offsetWidth,u=e.offsetHeight;n({width:s,height:u})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var aE="Popper",[TI,xI]=Zy(aE),[cP,AI]=TI(aE),CI=e=>{const{__scopePopper:t,children:n}=e,[r,i]=L.useState(null);return B.jsx(cP,{scope:t,anchor:r,onAnchorChange:i,children:n})};CI.displayName=aE;var RI="PopperAnchor",NI=L.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,a=AI(RI,n),s=L.useRef(null),u=rn(t,s),c=L.useRef(null);return L.useEffect(()=>{const p=c.current;c.current=r?.current||s.current,p!==c.current&&a.onAnchorChange(c.current)}),r?null:B.jsx(Rt.div,{...i,ref:u})});NI.displayName=RI;var oE="PopperContent",[dP,pP]=TI(oE),_I=L.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:a="center",alignOffset:s=0,arrowPadding:u=0,avoidCollisions:c=!0,collisionBoundary:p=[],collisionPadding:f=0,sticky:m="partial",hideWhenDetached:g=!1,updatePositionStrategy:b="optimized",onPlaced:S,...k}=e,v=AI(oE,n),[w,x]=L.useState(null),A=rn(t,le=>x(le)),[D,O]=L.useState(null),R=uP(D),M=R?.width??0,U=R?.height??0,G=r+(a!=="center"?"-"+a:""),F=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},Q=Array.isArray(p)?p:[p],q=Q.length>0,te={padding:F,boundary:Q.filter(hP),altBoundary:q},{refs:J,floatingStyles:Z,placement:$,isPositioned:W,middlewareData:re}=QU({strategy:"fixed",placement:G,whileElementsMounted:(...le)=>HU(...le,{animationFrame:b==="always"}),elements:{reference:v.anchor},middleware:[eP({mainAxis:i+U,alignmentAxis:s}),c&&tP({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?nP():void 0,...te}),c&&rP({...te}),iP({...te,apply:({elements:le,rects:Te,availableWidth:be,availableHeight:Oe})=>{const{width:De,height:Ze}=Te.reference,xt=le.floating.style;xt.setProperty("--radix-popper-available-width",`${be}px`),xt.setProperty("--radix-popper-available-height",`${Oe}px`),xt.setProperty("--radix-popper-anchor-width",`${De}px`),xt.setProperty("--radix-popper-anchor-height",`${Ze}px`)}}),D&&oP({element:D,padding:u}),mP({arrowWidth:M,arrowHeight:U}),g&&aP({strategy:"referenceHidden",...te})]}),[he,N]=DI($),z=fo(S);Dn(()=>{W&&z?.()},[W,z]);const H=re.arrow?.x,_=re.arrow?.y,oe=re.arrow?.centerOffset!==0,[de,fe]=L.useState();return Dn(()=>{w&&fe(window.getComputedStyle(w).zIndex)},[w]),B.jsx("div",{ref:J.setFloating,"data-radix-popper-content-wrapper":"",style:{...Z,transform:W?Z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:de,"--radix-popper-transform-origin":[re.transformOrigin?.x,re.transformOrigin?.y].join(" "),...re.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:B.jsx(dP,{scope:n,placedSide:he,onArrowChange:O,arrowX:H,arrowY:_,shouldHideArrow:oe,children:B.jsx(Rt.div,{"data-side":he,"data-align":N,...k,ref:A,style:{...k.style,animation:W?void 0:"none"}})})})});_I.displayName=oE;var OI="PopperArrow",fP={top:"bottom",right:"left",bottom:"top",left:"right"},II=L.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,a=pP(OI,r),s=fP[a.placedSide];return B.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:B.jsx(lP,{...i,ref:n,style:{...i.style,display:"block"}})})});II.displayName=OI;function hP(e){return e!==null}var mP=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:i}=t,s=i.arrow?.centerOffset!==0,u=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[p,f]=DI(n),m={start:"0%",center:"50%",end:"100%"}[f],g=(i.arrow?.x??0)+u/2,b=(i.arrow?.y??0)+c/2;let S="",k="";return p==="bottom"?(S=s?m:`${g}px`,k=`${-c}px`):p==="top"?(S=s?m:`${g}px`,k=`${r.floating.height+c}px`):p==="right"?(S=`${-c}px`,k=s?m:`${b}px`):p==="left"&&(S=`${r.floating.width+c}px`,k=s?m:`${b}px`),{data:{x:S,y:k}}}});function DI(e){const[t,n="center"]=e.split("-");return[t,n]}var gP=CI,bP=NI,yP=_I,EP=II,SP="Portal",LI=L.forwardRef((e,t)=>{const{container:n,...r}=e,[i,a]=L.useState(!1);Dn(()=>a(!0),[]);const s=n||i&&globalThis?.document?.body;return s?aI.createPortal(B.jsx(Rt.div,{...r,ref:t}),s):null});LI.displayName=SP;var kP=nI[" useInsertionEffect ".trim().toString()]||Dn;function ZR({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,a,s]=vP({defaultProp:t,onChange:n}),u=e!==void 0,c=u?e:i;{const f=L.useRef(e!==void 0);L.useEffect(()=>{const m=f.current;m!==u&&console.warn(`${r} is changing from ${m?"controlled":"uncontrolled"} to ${u?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=u},[u,r])}const p=L.useCallback(f=>{if(u){const m=wP(f)?f(e):f;m!==e&&s.current?.(m)}else a(f)},[u,e,a,s]);return[c,p]}function vP({defaultProp:e,onChange:t}){const[n,r]=L.useState(e),i=L.useRef(n),a=L.useRef(t);return kP(()=>{a.current=t},[t]),L.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}function wP(e){return typeof e=="function"}function TP(e){const t=L.useRef({value:e,previous:e});return L.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var MI=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),xP="VisuallyHidden",AP=L.forwardRef((e,t)=>B.jsx(Rt.span,{...e,ref:t,style:{...MI,...e.style}}));AP.displayName=xP;var CP=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ys=new WeakMap,Ld=new WeakMap,Md={},zg=0,BI=function(e){return e&&(e.host||BI(e.parentNode))},RP=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=BI(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},NP=function(e,t,n,r){var i=RP(t,Array.isArray(e)?e:[e]);Md[n]||(Md[n]=new WeakMap);var a=Md[n],s=[],u=new Set,c=new Set(i),p=function(m){!m||u.has(m)||(u.add(m),p(m.parentNode))};i.forEach(p);var f=function(m){!m||c.has(m)||Array.prototype.forEach.call(m.children,function(g){if(u.has(g))f(g);else try{var b=g.getAttribute(r),S=b!==null&&b!=="false",k=(ys.get(g)||0)+1,v=(a.get(g)||0)+1;ys.set(g,k),a.set(g,v),s.push(g),k===1&&S&&Ld.set(g,!0),v===1&&g.setAttribute(n,"true"),S||g.setAttribute(r,"true")}catch(w){console.error("aria-hidden: cannot operate on ",g,w)}})};return f(t),u.clear(),zg++,function(){s.forEach(function(m){var g=ys.get(m)-1,b=a.get(m)-1;ys.set(m,g),a.set(m,b),g||(Ld.has(m)||m.removeAttribute(r),Ld.delete(m)),b||m.removeAttribute(n)}),zg--,zg||(ys=new WeakMap,ys=new WeakMap,Ld=new WeakMap,Md={})}},_P=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=CP(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),NP(r,i,n,"aria-hidden")):function(){return null}},Ur=function(){return Ur=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Ur.apply(this,arguments)};function FI(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function OP(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var ap="right-scroll-bar-position",op="width-before-scroll-bar",IP="with-scroll-bars-hidden",DP="--removed-body-scroll-bar-size";function Ug(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function LP(e,t){var n=L.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var MP=typeof window<"u"?L.useLayoutEffect:L.useEffect,QR=new WeakMap;function BP(e,t){var n=LP(null,function(r){return e.forEach(function(i){return Ug(i,r)})});return MP(function(){var r=QR.get(n);if(r){var i=new Set(r),a=new Set(e),s=n.current;i.forEach(function(u){a.has(u)||Ug(u,null)}),a.forEach(function(u){i.has(u)||Ug(u,s)})}QR.set(n,e)},[e]),n}function FP(e){return e}function zP(e,t){t===void 0&&(t=FP);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var s=t(a,r);return n.push(s),function(){n=n.filter(function(u){return u!==s})}},assignSyncMedium:function(a){for(r=!0;n.length;){var s=n;n=[],s.forEach(a)}n={push:function(u){return a(u)},filter:function(){return n}}},assignMedium:function(a){r=!0;var s=[];if(n.length){var u=n;n=[],u.forEach(a),s=n}var c=function(){var f=s;s=[],f.forEach(a)},p=function(){return Promise.resolve().then(c)};p(),n={push:function(f){s.push(f),p()},filter:function(f){return s=s.filter(f),n}}}};return i}function UP(e){e===void 0&&(e={});var t=zP(null);return t.options=Ur({async:!0,ssr:!1},e),t}var zI=function(e){var t=e.sideCar,n=FI(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return L.createElement(r,Ur({},n))};zI.isSideCarExport=!0;function PP(e,t){return e.useMedium(t),zI}var UI=UP(),Pg=function(){},Cf=L.forwardRef(function(e,t){var n=L.useRef(null),r=L.useState({onScrollCapture:Pg,onWheelCapture:Pg,onTouchMoveCapture:Pg}),i=r[0],a=r[1],s=e.forwardProps,u=e.children,c=e.className,p=e.removeScrollBar,f=e.enabled,m=e.shards,g=e.sideCar,b=e.noRelative,S=e.noIsolation,k=e.inert,v=e.allowPinchZoom,w=e.as,x=w===void 0?"div":w,A=e.gapMode,D=FI(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=g,R=BP([n,t]),M=Ur(Ur({},D),i);return L.createElement(L.Fragment,null,f&&L.createElement(O,{sideCar:UI,removeScrollBar:p,shards:m,noRelative:b,noIsolation:S,inert:k,setCallbacks:a,allowPinchZoom:!!v,lockRef:n,gapMode:A}),s?L.cloneElement(L.Children.only(u),Ur(Ur({},M),{ref:R})):L.createElement(x,Ur({},M,{className:c,ref:R}),u))});Cf.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Cf.classNames={fullWidth:op,zeroRight:ap};var $P=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function HP(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=$P();return t&&e.setAttribute("nonce",t),e}function jP(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function GP(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var VP=function(){var e=0,t=null;return{add:function(n){e==0&&(t=HP())&&(jP(t,n),GP(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},qP=function(){var e=VP();return function(t,n){L.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},PI=function(){var e=qP(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},WP={left:0,top:0,right:0,gap:0},$g=function(e){return parseInt(e||"",10)||0},YP=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[$g(n),$g(r),$g(i)]},KP=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return WP;var t=YP(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},XP=PI(),Is="data-scroll-locked",ZP=function(e,t,n,r){var i=e.left,a=e.top,s=e.right,u=e.gap;return n===void 0&&(n="margin"),`
|
|
10
|
+
.`.concat(IP,` {
|
|
11
|
+
overflow: hidden `).concat(r,`;
|
|
12
|
+
padding-right: `).concat(u,"px ").concat(r,`;
|
|
13
|
+
}
|
|
14
|
+
body[`).concat(Is,`] {
|
|
15
|
+
overflow: hidden `).concat(r,`;
|
|
16
|
+
overscroll-behavior: contain;
|
|
17
|
+
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
18
|
+
padding-left: `.concat(i,`px;
|
|
19
|
+
padding-top: `).concat(a,`px;
|
|
20
|
+
padding-right: `).concat(s,`px;
|
|
21
|
+
margin-left:0;
|
|
22
|
+
margin-top:0;
|
|
23
|
+
margin-right: `).concat(u,"px ").concat(r,`;
|
|
24
|
+
`),n==="padding"&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.`).concat(ap,` {
|
|
28
|
+
right: `).concat(u,"px ").concat(r,`;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.`).concat(op,` {
|
|
32
|
+
margin-right: `).concat(u,"px ").concat(r,`;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.`).concat(ap," .").concat(ap,` {
|
|
36
|
+
right: 0 `).concat(r,`;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.`).concat(op," .").concat(op,` {
|
|
40
|
+
margin-right: 0 `).concat(r,`;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
body[`).concat(Is,`] {
|
|
44
|
+
`).concat(DP,": ").concat(u,`px;
|
|
45
|
+
}
|
|
46
|
+
`)},JR=function(){var e=parseInt(document.body.getAttribute(Is)||"0",10);return isFinite(e)?e:0},QP=function(){L.useEffect(function(){return document.body.setAttribute(Is,(JR()+1).toString()),function(){var e=JR()-1;e<=0?document.body.removeAttribute(Is):document.body.setAttribute(Is,e.toString())}},[])},JP=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;QP();var a=L.useMemo(function(){return KP(i)},[i]);return L.createElement(XP,{styles:ZP(a,!t,i,n?"":"!important")})},Gb=!1;if(typeof window<"u")try{var Bd=Object.defineProperty({},"passive",{get:function(){return Gb=!0,!0}});window.addEventListener("test",Bd,Bd),window.removeEventListener("test",Bd,Bd)}catch{Gb=!1}var Es=Gb?{passive:!1}:!1,e$=function(e){return e.tagName==="TEXTAREA"},$I=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!e$(e)&&n[t]==="visible")},t$=function(e){return $I(e,"overflowY")},n$=function(e){return $I(e,"overflowX")},eN=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=HI(e,r);if(i){var a=jI(e,r),s=a[1],u=a[2];if(s>u)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},r$=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},i$=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},HI=function(e,t){return e==="v"?t$(t):n$(t)},jI=function(e,t){return e==="v"?r$(t):i$(t)},a$=function(e,t){return e==="h"&&t==="rtl"?-1:1},o$=function(e,t,n,r,i){var a=a$(e,window.getComputedStyle(t).direction),s=a*r,u=n.target,c=t.contains(u),p=!1,f=s>0,m=0,g=0;do{if(!u)break;var b=jI(e,u),S=b[0],k=b[1],v=b[2],w=k-v-a*S;(S||w)&&HI(e,u)&&(m+=w,g+=S);var x=u.parentNode;u=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!c&&u!==document.body||c&&(t.contains(u)||t===u));return(f&&Math.abs(m)<1||!f&&Math.abs(g)<1)&&(p=!0),p},Fd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},tN=function(e){return[e.deltaX,e.deltaY]},nN=function(e){return e&&"current"in e?e.current:e},s$=function(e,t){return e[0]===t[0]&&e[1]===t[1]},l$=function(e){return`
|
|
47
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
48
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
49
|
+
`)},u$=0,Ss=[];function c$(e){var t=L.useRef([]),n=L.useRef([0,0]),r=L.useRef(),i=L.useState(u$++)[0],a=L.useState(PI)[0],s=L.useRef(e);L.useEffect(function(){s.current=e},[e]),L.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var k=OP([e.lockRef.current],(e.shards||[]).map(nN),!0).filter(Boolean);return k.forEach(function(v){return v.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),k.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var u=L.useCallback(function(k,v){if("touches"in k&&k.touches.length===2||k.type==="wheel"&&k.ctrlKey)return!s.current.allowPinchZoom;var w=Fd(k),x=n.current,A="deltaX"in k?k.deltaX:x[0]-w[0],D="deltaY"in k?k.deltaY:x[1]-w[1],O,R=k.target,M=Math.abs(A)>Math.abs(D)?"h":"v";if("touches"in k&&M==="h"&&R.type==="range")return!1;var U=window.getSelection(),G=U&&U.anchorNode,F=G?G===R||G.contains(R):!1;if(F)return!1;var Q=eN(M,R);if(!Q)return!0;if(Q?O=M:(O=M==="v"?"h":"v",Q=eN(M,R)),!Q)return!1;if(!r.current&&"changedTouches"in k&&(A||D)&&(r.current=O),!O)return!0;var q=r.current||O;return o$(q,v,k,q==="h"?A:D)},[]),c=L.useCallback(function(k){var v=k;if(!(!Ss.length||Ss[Ss.length-1]!==a)){var w="deltaY"in v?tN(v):Fd(v),x=t.current.filter(function(O){return O.name===v.type&&(O.target===v.target||v.target===O.shadowParent)&&s$(O.delta,w)})[0];if(x&&x.should){v.cancelable&&v.preventDefault();return}if(!x){var A=(s.current.shards||[]).map(nN).filter(Boolean).filter(function(O){return O.contains(v.target)}),D=A.length>0?u(v,A[0]):!s.current.noIsolation;D&&v.cancelable&&v.preventDefault()}}},[]),p=L.useCallback(function(k,v,w,x){var A={name:k,delta:v,target:w,should:x,shadowParent:d$(w)};t.current.push(A),setTimeout(function(){t.current=t.current.filter(function(D){return D!==A})},1)},[]),f=L.useCallback(function(k){n.current=Fd(k),r.current=void 0},[]),m=L.useCallback(function(k){p(k.type,tN(k),k.target,u(k,e.lockRef.current))},[]),g=L.useCallback(function(k){p(k.type,Fd(k),k.target,u(k,e.lockRef.current))},[]);L.useEffect(function(){return Ss.push(a),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:g}),document.addEventListener("wheel",c,Es),document.addEventListener("touchmove",c,Es),document.addEventListener("touchstart",f,Es),function(){Ss=Ss.filter(function(k){return k!==a}),document.removeEventListener("wheel",c,Es),document.removeEventListener("touchmove",c,Es),document.removeEventListener("touchstart",f,Es)}},[]);var b=e.removeScrollBar,S=e.inert;return L.createElement(L.Fragment,null,S?L.createElement(a,{styles:l$(i)}):null,b?L.createElement(JP,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function d$(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const p$=PP(UI,c$);var GI=L.forwardRef(function(e,t){return L.createElement(Cf,Ur({},e,{ref:t,sideCar:p$}))});GI.classNames=Cf.classNames;var f$=[" ","Enter","ArrowUp","ArrowDown"],h$=[" ","Enter"],mo="Select",[Rf,Nf,m$]=Lz(mo),[Ws]=Zy(mo,[m$,xI]),_f=xI(),[g$,xa]=Ws(mo),[b$,y$]=Ws(mo),VI=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:s,defaultValue:u,onValueChange:c,dir:p,name:f,autoComplete:m,disabled:g,required:b,form:S}=e,k=_f(t),[v,w]=L.useState(null),[x,A]=L.useState(null),[D,O]=L.useState(!1),R=Bz(p),[M,U]=ZR({prop:r,defaultProp:i??!1,onChange:a,caller:mo}),[G,F]=ZR({prop:s,defaultProp:u,onChange:c,caller:mo}),Q=L.useRef(null),q=v?S||!!v.closest("form"):!0,[te,J]=L.useState(new Set),Z=Array.from(te).map($=>$.props.value).join(";");return B.jsx(gP,{...k,children:B.jsxs(g$,{required:b,scope:t,trigger:v,onTriggerChange:w,valueNode:x,onValueNodeChange:A,valueNodeHasChildren:D,onValueNodeHasChildrenChange:O,contentId:Qy(),value:G,onValueChange:F,open:M,onOpenChange:U,dir:R,triggerPointerDownPosRef:Q,disabled:g,children:[B.jsx(Rf.Provider,{scope:t,children:B.jsx(b$,{scope:e.__scopeSelect,onNativeOptionAdd:L.useCallback($=>{J(W=>new Set(W).add($))},[]),onNativeOptionRemove:L.useCallback($=>{J(W=>{const re=new Set(W);return re.delete($),re})},[]),children:n})}),q?B.jsxs(f1,{"aria-hidden":!0,required:b,tabIndex:-1,name:f,autoComplete:m,value:G,onChange:$=>F($.target.value),disabled:g,form:S,children:[G===void 0?B.jsx("option",{value:""}):null,Array.from(te)]},Z):null]})})};VI.displayName=mo;var qI="SelectTrigger",WI=L.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...i}=e,a=_f(n),s=xa(qI,n),u=s.disabled||r,c=rn(t,s.onTriggerChange),p=Nf(n),f=L.useRef("touch"),[m,g,b]=m1(k=>{const v=p().filter(A=>!A.disabled),w=v.find(A=>A.value===s.value),x=g1(v,k,w);x!==void 0&&s.onValueChange(x.value)}),S=k=>{u||(s.onOpenChange(!0),b()),k&&(s.triggerPointerDownPosRef.current={x:Math.round(k.pageX),y:Math.round(k.pageY)})};return B.jsx(bP,{asChild:!0,...a,children:B.jsx(Rt.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":h1(s.value)?"":void 0,...i,ref:c,onClick:Lt(i.onClick,k=>{k.currentTarget.focus(),f.current!=="mouse"&&S(k)}),onPointerDown:Lt(i.onPointerDown,k=>{f.current=k.pointerType;const v=k.target;v.hasPointerCapture(k.pointerId)&&v.releasePointerCapture(k.pointerId),k.button===0&&k.ctrlKey===!1&&k.pointerType==="mouse"&&(S(k),k.preventDefault())}),onKeyDown:Lt(i.onKeyDown,k=>{const v=m.current!=="";!(k.ctrlKey||k.altKey||k.metaKey)&&k.key.length===1&&g(k.key),!(v&&k.key===" ")&&f$.includes(k.key)&&(S(),k.preventDefault())})})})});WI.displayName=qI;var YI="SelectValue",KI=L.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,children:a,placeholder:s="",...u}=e,c=xa(YI,n),{onValueNodeHasChildrenChange:p}=c,f=a!==void 0,m=rn(t,c.onValueNodeChange);return Dn(()=>{p(f)},[p,f]),B.jsx(Rt.span,{...u,ref:m,style:{pointerEvents:"none"},children:h1(c.value)?B.jsx(B.Fragment,{children:s}):a})});KI.displayName=YI;var E$="SelectIcon",XI=L.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...i}=e;return B.jsx(Rt.span,{"aria-hidden":!0,...i,ref:t,children:r||"▼"})});XI.displayName=E$;var S$="SelectPortal",ZI=e=>B.jsx(LI,{asChild:!0,...e});ZI.displayName=S$;var go="SelectContent",QI=L.forwardRef((e,t)=>{const n=xa(go,e.__scopeSelect),[r,i]=L.useState();if(Dn(()=>{i(new DocumentFragment)},[]),!n.open){const a=r;return a?ec.createPortal(B.jsx(JI,{scope:e.__scopeSelect,children:B.jsx(Rf.Slot,{scope:e.__scopeSelect,children:B.jsx("div",{children:e.children})})}),a):null}return B.jsx(e1,{...e,ref:t})});QI.displayName=go;var yr=10,[JI,Aa]=Ws(go),k$="SelectContentImpl",v$=bp("SelectContent.RemoveScroll"),e1=L.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:s,side:u,sideOffset:c,align:p,alignOffset:f,arrowPadding:m,collisionBoundary:g,collisionPadding:b,sticky:S,hideWhenDetached:k,avoidCollisions:v,...w}=e,x=xa(go,n),[A,D]=L.useState(null),[O,R]=L.useState(null),M=rn(t,le=>D(le)),[U,G]=L.useState(null),[F,Q]=L.useState(null),q=Nf(n),[te,J]=L.useState(!1),Z=L.useRef(!1);L.useEffect(()=>{if(A)return _P(A)},[A]),Wz();const $=L.useCallback(le=>{const[Te,...be]=q().map(Ze=>Ze.ref.current),[Oe]=be.slice(-1),De=document.activeElement;for(const Ze of le)if(Ze===De||(Ze?.scrollIntoView({block:"nearest"}),Ze===Te&&O&&(O.scrollTop=0),Ze===Oe&&O&&(O.scrollTop=O.scrollHeight),Ze?.focus(),document.activeElement!==De))return},[q,O]),W=L.useCallback(()=>$([U,A]),[$,U,A]);L.useEffect(()=>{te&&W()},[te,W]);const{onOpenChange:re,triggerPointerDownPosRef:he}=x;L.useEffect(()=>{if(A){let le={x:0,y:0};const Te=Oe=>{le={x:Math.abs(Math.round(Oe.pageX)-(he.current?.x??0)),y:Math.abs(Math.round(Oe.pageY)-(he.current?.y??0))}},be=Oe=>{le.x<=10&&le.y<=10?Oe.preventDefault():A.contains(Oe.target)||re(!1),document.removeEventListener("pointermove",Te),he.current=null};return he.current!==null&&(document.addEventListener("pointermove",Te),document.addEventListener("pointerup",be,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Te),document.removeEventListener("pointerup",be,{capture:!0})}}},[A,re,he]),L.useEffect(()=>{const le=()=>re(!1);return window.addEventListener("blur",le),window.addEventListener("resize",le),()=>{window.removeEventListener("blur",le),window.removeEventListener("resize",le)}},[re]);const[N,z]=m1(le=>{const Te=q().filter(De=>!De.disabled),be=Te.find(De=>De.ref.current===document.activeElement),Oe=g1(Te,le,be);Oe&&setTimeout(()=>Oe.ref.current.focus())}),H=L.useCallback((le,Te,be)=>{const Oe=!Z.current&&!be;(x.value!==void 0&&x.value===Te||Oe)&&(G(le),Oe&&(Z.current=!0))},[x.value]),_=L.useCallback(()=>A?.focus(),[A]),oe=L.useCallback((le,Te,be)=>{const Oe=!Z.current&&!be;(x.value!==void 0&&x.value===Te||Oe)&&Q(le)},[x.value]),de=r==="popper"?Vb:t1,fe=de===Vb?{side:u,sideOffset:c,align:p,alignOffset:f,arrowPadding:m,collisionBoundary:g,collisionPadding:b,sticky:S,hideWhenDetached:k,avoidCollisions:v}:{};return B.jsx(JI,{scope:n,content:A,viewport:O,onViewportChange:R,itemRefCallback:H,selectedItem:U,onItemLeave:_,itemTextRefCallback:oe,focusSelectedItem:W,selectedItemText:F,position:r,isPositioned:te,searchRef:N,children:B.jsx(GI,{as:v$,allowPinchZoom:!0,children:B.jsx(cI,{asChild:!0,trapped:x.open,onMountAutoFocus:le=>{le.preventDefault()},onUnmountAutoFocus:Lt(i,le=>{x.trigger?.focus({preventScroll:!0}),le.preventDefault()}),children:B.jsx(lI,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:le=>le.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:B.jsx(de,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:le=>le.preventDefault(),...w,...fe,onPlaced:()=>J(!0),ref:M,style:{display:"flex",flexDirection:"column",outline:"none",...w.style},onKeyDown:Lt(w.onKeyDown,le=>{const Te=le.ctrlKey||le.altKey||le.metaKey;if(le.key==="Tab"&&le.preventDefault(),!Te&&le.key.length===1&&z(le.key),["ArrowUp","ArrowDown","Home","End"].includes(le.key)){let Oe=q().filter(De=>!De.disabled).map(De=>De.ref.current);if(["ArrowUp","End"].includes(le.key)&&(Oe=Oe.slice().reverse()),["ArrowUp","ArrowDown"].includes(le.key)){const De=le.target,Ze=Oe.indexOf(De);Oe=Oe.slice(Ze+1)}setTimeout(()=>$(Oe)),le.preventDefault()}})})})})})})});e1.displayName=k$;var w$="SelectItemAlignedPosition",t1=L.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...i}=e,a=xa(go,n),s=Aa(go,n),[u,c]=L.useState(null),[p,f]=L.useState(null),m=rn(t,M=>f(M)),g=Nf(n),b=L.useRef(!1),S=L.useRef(!0),{viewport:k,selectedItem:v,selectedItemText:w,focusSelectedItem:x}=s,A=L.useCallback(()=>{if(a.trigger&&a.valueNode&&u&&p&&k&&v&&w){const M=a.trigger.getBoundingClientRect(),U=p.getBoundingClientRect(),G=a.valueNode.getBoundingClientRect(),F=w.getBoundingClientRect();if(a.dir!=="rtl"){const De=F.left-U.left,Ze=G.left-De,xt=M.left-Ze,Et=M.width+xt,Rr=Math.max(Et,U.width),Nr=window.innerWidth-yr,Ri=OR(Ze,[yr,Math.max(yr,Nr-Rr)]);u.style.minWidth=Et+"px",u.style.left=Ri+"px"}else{const De=U.right-F.right,Ze=window.innerWidth-G.right-De,xt=window.innerWidth-M.right-Ze,Et=M.width+xt,Rr=Math.max(Et,U.width),Nr=window.innerWidth-yr,Ri=OR(Ze,[yr,Math.max(yr,Nr-Rr)]);u.style.minWidth=Et+"px",u.style.right=Ri+"px"}const Q=g(),q=window.innerHeight-yr*2,te=k.scrollHeight,J=window.getComputedStyle(p),Z=parseInt(J.borderTopWidth,10),$=parseInt(J.paddingTop,10),W=parseInt(J.borderBottomWidth,10),re=parseInt(J.paddingBottom,10),he=Z+$+te+re+W,N=Math.min(v.offsetHeight*5,he),z=window.getComputedStyle(k),H=parseInt(z.paddingTop,10),_=parseInt(z.paddingBottom,10),oe=M.top+M.height/2-yr,de=q-oe,fe=v.offsetHeight/2,le=v.offsetTop+fe,Te=Z+$+le,be=he-Te;if(Te<=oe){const De=Q.length>0&&v===Q[Q.length-1].ref.current;u.style.bottom="0px";const Ze=p.clientHeight-k.offsetTop-k.offsetHeight,xt=Math.max(de,fe+(De?_:0)+Ze+W),Et=Te+xt;u.style.height=Et+"px"}else{const De=Q.length>0&&v===Q[0].ref.current;u.style.top="0px";const xt=Math.max(oe,Z+k.offsetTop+(De?H:0)+fe)+be;u.style.height=xt+"px",k.scrollTop=Te-oe+k.offsetTop}u.style.margin=`${yr}px 0`,u.style.minHeight=N+"px",u.style.maxHeight=q+"px",r?.(),requestAnimationFrame(()=>b.current=!0)}},[g,a.trigger,a.valueNode,u,p,k,v,w,a.dir,r]);Dn(()=>A(),[A]);const[D,O]=L.useState();Dn(()=>{p&&O(window.getComputedStyle(p).zIndex)},[p]);const R=L.useCallback(M=>{M&&S.current===!0&&(A(),x?.(),S.current=!1)},[A,x]);return B.jsx(x$,{scope:n,contentWrapper:u,shouldExpandOnScrollRef:b,onScrollButtonChange:R,children:B.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:D},children:B.jsx(Rt.div,{...i,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});t1.displayName=w$;var T$="SelectPopperPosition",Vb=L.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:i=yr,...a}=e,s=_f(n);return B.jsx(yP,{...s,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Vb.displayName=T$;var[x$,sE]=Ws(go,{}),qb="SelectViewport",n1=L.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...i}=e,a=Aa(qb,n),s=sE(qb,n),u=rn(t,a.onViewportChange),c=L.useRef(0);return B.jsxs(B.Fragment,{children:[B.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),B.jsx(Rf.Slot,{scope:n,children:B.jsx(Rt.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:Lt(i.onScroll,p=>{const f=p.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:g}=s;if(g?.current&&m){const b=Math.abs(c.current-f.scrollTop);if(b>0){const S=window.innerHeight-yr*2,k=parseFloat(m.style.minHeight),v=parseFloat(m.style.height),w=Math.max(k,v);if(w<S){const x=w+b,A=Math.min(S,x),D=x-A;m.style.height=A+"px",m.style.bottom==="0px"&&(f.scrollTop=D>0?D:0,m.style.justifyContent="flex-end")}}}c.current=f.scrollTop})})})]})});n1.displayName=qb;var r1="SelectGroup",[A$,C$]=Ws(r1),R$=L.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=Qy();return B.jsx(A$,{scope:n,id:i,children:B.jsx(Rt.div,{role:"group","aria-labelledby":i,...r,ref:t})})});R$.displayName=r1;var i1="SelectLabel",N$=L.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=C$(i1,n);return B.jsx(Rt.div,{id:i.id,...r,ref:t})});N$.displayName=i1;var vp="SelectItem",[_$,a1]=Ws(vp),o1=L.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...s}=e,u=xa(vp,n),c=Aa(vp,n),p=u.value===r,[f,m]=L.useState(a??""),[g,b]=L.useState(!1),S=rn(t,x=>c.itemRefCallback?.(x,r,i)),k=Qy(),v=L.useRef("touch"),w=()=>{i||(u.onValueChange(r),u.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return B.jsx(_$,{scope:n,value:r,disabled:i,textId:k,isSelected:p,onItemTextChange:L.useCallback(x=>{m(A=>A||(x?.textContent??"").trim())},[]),children:B.jsx(Rf.ItemSlot,{scope:n,value:r,disabled:i,textValue:f,children:B.jsx(Rt.div,{role:"option","aria-labelledby":k,"data-highlighted":g?"":void 0,"aria-selected":p&&g,"data-state":p?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...s,ref:S,onFocus:Lt(s.onFocus,()=>b(!0)),onBlur:Lt(s.onBlur,()=>b(!1)),onClick:Lt(s.onClick,()=>{v.current!=="mouse"&&w()}),onPointerUp:Lt(s.onPointerUp,()=>{v.current==="mouse"&&w()}),onPointerDown:Lt(s.onPointerDown,x=>{v.current=x.pointerType}),onPointerMove:Lt(s.onPointerMove,x=>{v.current=x.pointerType,i?c.onItemLeave?.():v.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Lt(s.onPointerLeave,x=>{x.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:Lt(s.onKeyDown,x=>{c.searchRef?.current!==""&&x.key===" "||(h$.includes(x.key)&&w(),x.key===" "&&x.preventDefault())})})})})});o1.displayName=vp;var uu="SelectItemText",s1=L.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,...a}=e,s=xa(uu,n),u=Aa(uu,n),c=a1(uu,n),p=y$(uu,n),[f,m]=L.useState(null),g=rn(t,w=>m(w),c.onItemTextChange,w=>u.itemTextRefCallback?.(w,c.value,c.disabled)),b=f?.textContent,S=L.useMemo(()=>B.jsx("option",{value:c.value,disabled:c.disabled,children:b},c.value),[c.disabled,c.value,b]),{onNativeOptionAdd:k,onNativeOptionRemove:v}=p;return Dn(()=>(k(S),()=>v(S)),[k,v,S]),B.jsxs(B.Fragment,{children:[B.jsx(Rt.span,{id:c.textId,...a,ref:g}),c.isSelected&&s.valueNode&&!s.valueNodeHasChildren?ec.createPortal(a.children,s.valueNode):null]})});s1.displayName=uu;var l1="SelectItemIndicator",u1=L.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return a1(l1,n).isSelected?B.jsx(Rt.span,{"aria-hidden":!0,...r,ref:t}):null});u1.displayName=l1;var Wb="SelectScrollUpButton",c1=L.forwardRef((e,t)=>{const n=Aa(Wb,e.__scopeSelect),r=sE(Wb,e.__scopeSelect),[i,a]=L.useState(!1),s=rn(t,r.onScrollButtonChange);return Dn(()=>{if(n.viewport&&n.isPositioned){let u=function(){const p=c.scrollTop>0;a(p)};const c=n.viewport;return u(),c.addEventListener("scroll",u),()=>c.removeEventListener("scroll",u)}},[n.viewport,n.isPositioned]),i?B.jsx(p1,{...e,ref:s,onAutoScroll:()=>{const{viewport:u,selectedItem:c}=n;u&&c&&(u.scrollTop=u.scrollTop-c.offsetHeight)}}):null});c1.displayName=Wb;var Yb="SelectScrollDownButton",d1=L.forwardRef((e,t)=>{const n=Aa(Yb,e.__scopeSelect),r=sE(Yb,e.__scopeSelect),[i,a]=L.useState(!1),s=rn(t,r.onScrollButtonChange);return Dn(()=>{if(n.viewport&&n.isPositioned){let u=function(){const p=c.scrollHeight-c.clientHeight,f=Math.ceil(c.scrollTop)<p;a(f)};const c=n.viewport;return u(),c.addEventListener("scroll",u),()=>c.removeEventListener("scroll",u)}},[n.viewport,n.isPositioned]),i?B.jsx(p1,{...e,ref:s,onAutoScroll:()=>{const{viewport:u,selectedItem:c}=n;u&&c&&(u.scrollTop=u.scrollTop+c.offsetHeight)}}):null});d1.displayName=Yb;var p1=L.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...i}=e,a=Aa("SelectScrollButton",n),s=L.useRef(null),u=Nf(n),c=L.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return L.useEffect(()=>()=>c(),[c]),Dn(()=>{u().find(f=>f.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[u]),B.jsx(Rt.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:Lt(i.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:Lt(i.onPointerMove,()=>{a.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:Lt(i.onPointerLeave,()=>{c()})})}),O$="SelectSeparator",I$=L.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return B.jsx(Rt.div,{"aria-hidden":!0,...r,ref:t})});I$.displayName=O$;var Kb="SelectArrow",D$=L.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=_f(n),a=xa(Kb,n),s=Aa(Kb,n);return a.open&&s.position==="popper"?B.jsx(EP,{...i,...r,ref:t}):null});D$.displayName=Kb;var L$="SelectBubbleInput",f1=L.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const i=L.useRef(null),a=rn(r,i),s=TP(t);return L.useEffect(()=>{const u=i.current;if(!u)return;const c=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(c,"value").set;if(s!==t&&f){const m=new Event("change",{bubbles:!0});f.call(u,t),u.dispatchEvent(m)}},[s,t]),B.jsx(Rt.select,{...n,style:{...MI,...n.style},ref:a,defaultValue:t})});f1.displayName=L$;function h1(e){return e===""||e===void 0}function m1(e){const t=fo(e),n=L.useRef(""),r=L.useRef(0),i=L.useCallback(s=>{const u=n.current+s;t(u),(function c(p){n.current=p,window.clearTimeout(r.current),p!==""&&(r.current=window.setTimeout(()=>c(""),1e3))})(u)},[t]),a=L.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return L.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}function g1(e,t,n){const i=t.length>1&&Array.from(t).every(p=>p===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=M$(e,Math.max(a,0));i.length===1&&(s=s.filter(p=>p!==n));const c=s.find(p=>p.textValue.toLowerCase().startsWith(i.toLowerCase()));return c!==n?c:void 0}function M$(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var B$=VI,F$=WI,z$=KI,U$=XI,P$=ZI,$$=QI,H$=n1,j$=o1,G$=s1,V$=u1,q$=c1,W$=d1;const b1=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();const Y$=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const K$=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());const rN=e=>{const t=K$(e);return t.charAt(0).toUpperCase()+t.slice(1)};var Hg={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const X$=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},Z$=L.createContext({}),Q$=()=>L.useContext(Z$),J$=L.forwardRef(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i="",children:a,iconNode:s,...u},c)=>{const{size:p=24,strokeWidth:f=2,absoluteStrokeWidth:m=!1,color:g="currentColor",className:b=""}=Q$()??{},S=r??m?Number(n??f)*24/Number(t??p):n??f;return L.createElement("svg",{ref:c,...Hg,width:t??p??Hg.width,height:t??p??Hg.height,stroke:e??g,strokeWidth:S,className:b1("lucide",b,i),...!a&&!X$(u)&&{"aria-hidden":"true"},...u},[...s.map(([k,v])=>L.createElement(k,v)),...Array.isArray(a)?a:[a]])});const lE=(e,t)=>{const n=L.forwardRef(({className:r,...i},a)=>L.createElement(J$,{ref:a,iconNode:t,className:b1(`lucide-${Y$(rN(e))}`,`lucide-${e}`,r),...i}));return n.displayName=rN(e),n};const e3=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],t3=lE("check",e3);const n3=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],y1=lE("chevron-down",n3);const r3=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],i3=lE("chevron-up",r3);function E1(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=E1(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function a3(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=E1(e))&&(r&&(r+=" "),r+=t);return r}const o3=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},s3=(e,t)=>({classGroupId:e,validator:t}),S1=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),wp="-",iN=[],l3="arbitrary..",u3=e=>{const t=d3(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return c3(s);const u=s.split(wp),c=u[0]===""&&u.length>1?1:0;return k1(u,c,t)},getConflictingClassGroupIds:(s,u)=>{if(u){const c=r[s],p=n[s];return c?p?o3(p,c):c:p||iN}return n[s]||iN}}},k1=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],a=n.nextPart.get(i);if(a){const p=k1(e,t+1,a);if(p)return p}const s=n.validators;if(s===null)return;const u=t===0?e.join(wp):e.slice(t).join(wp),c=s.length;for(let p=0;p<c;p++){const f=s[p];if(f.validator(u))return f.classGroupId}},c3=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?l3+r:void 0})(),d3=e=>{const{theme:t,classGroups:n}=e;return p3(n,t)},p3=(e,t)=>{const n=S1();for(const r in e){const i=e[r];uE(i,n,r,t)}return n},uE=(e,t,n,r)=>{const i=e.length;for(let a=0;a<i;a++){const s=e[a];f3(s,t,n,r)}},f3=(e,t,n,r)=>{if(typeof e=="string"){h3(e,t,n);return}if(typeof e=="function"){m3(e,t,n,r);return}g3(e,t,n,r)},h3=(e,t,n)=>{const r=e===""?t:v1(t,e);r.classGroupId=n},m3=(e,t,n,r)=>{if(b3(e)){uE(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(s3(n,e))},g3=(e,t,n,r)=>{const i=Object.entries(e),a=i.length;for(let s=0;s<a;s++){const[u,c]=i[s];uE(c,v1(t,u),n,r)}},v1=(e,t)=>{let n=e;const r=t.split(wp),i=r.length;for(let a=0;a<i;a++){const s=r[a];let u=n.nextPart.get(s);u||(u=S1(),n.nextPart.set(s,u)),n=u}return n},b3=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,y3=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(a,s)=>{n[a]=s,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(a){let s=n[a];if(s!==void 0)return s;if((s=r[a])!==void 0)return i(a,s),s},set(a,s){a in n?n[a]=s:i(a,s)}}},Xb="!",aN=":",E3=[],oN=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),S3=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const a=[];let s=0,u=0,c=0,p;const f=i.length;for(let k=0;k<f;k++){const v=i[k];if(s===0&&u===0){if(v===aN){a.push(i.slice(c,k)),c=k+1;continue}if(v==="/"){p=k;continue}}v==="["?s++:v==="]"?s--:v==="("?u++:v===")"&&u--}const m=a.length===0?i:i.slice(c);let g=m,b=!1;m.endsWith(Xb)?(g=m.slice(0,-1),b=!0):m.startsWith(Xb)&&(g=m.slice(1),b=!0);const S=p&&p>c?p-c:void 0;return oN(a,b,g,S)};if(t){const i=t+aN,a=r;r=s=>s.startsWith(i)?a(s.slice(i.length)):oN(E3,!1,s,void 0,!0)}if(n){const i=r;r=a=>n({className:a,parseClassName:i})}return r},k3=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let a=0;a<n.length;a++){const s=n[a],u=s[0]==="[",c=t.has(s);u||c?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(s)):i.push(s)}return i.length>0&&(i.sort(),r.push(...i)),r}},v3=e=>({cache:y3(e.cacheSize),parseClassName:S3(e),sortModifiers:k3(e),...u3(e)}),w3=/\s+/,T3=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,s=[],u=e.trim().split(w3);let c="";for(let p=u.length-1;p>=0;p-=1){const f=u[p],{isExternal:m,modifiers:g,hasImportantModifier:b,baseClassName:S,maybePostfixModifierPosition:k}=n(f);if(m){c=f+(c.length>0?" "+c:c);continue}let v=!!k,w=r(v?S.substring(0,k):S);if(!w){if(!v){c=f+(c.length>0?" "+c:c);continue}if(w=r(S),!w){c=f+(c.length>0?" "+c:c);continue}v=!1}const x=g.length===0?"":g.length===1?g[0]:a(g).join(":"),A=b?x+Xb:x,D=A+w;if(s.indexOf(D)>-1)continue;s.push(D);const O=i(w,v);for(let R=0;R<O.length;++R){const M=O[R];s.push(A+M)}c=f+(c.length>0?" "+c:c)}return c},x3=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=w1(n))&&(i&&(i+=" "),i+=r);return i},w1=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=w1(e[r]))&&(n&&(n+=" "),n+=t);return n},A3=(e,...t)=>{let n,r,i,a;const s=c=>{const p=t.reduce((f,m)=>m(f),e());return n=v3(p),r=n.cache.get,i=n.cache.set,a=u,u(c)},u=c=>{const p=r(c);if(p)return p;const f=T3(c,n);return i(c,f),f};return a=s,(...c)=>a(x3(...c))},C3=[],Pt=e=>{const t=n=>n[e]||C3;return t.isThemeGetter=!0,t},T1=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,x1=/^\((?:(\w[\w-]*):)?(.+)\)$/i,R3=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,N3=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,_3=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,O3=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,I3=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,D3=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ea=e=>R3.test(e),ze=e=>!!e&&!Number.isNaN(Number(e)),ta=e=>!!e&&Number.isInteger(Number(e)),jg=e=>e.endsWith("%")&&ze(e.slice(0,-1)),pi=e=>N3.test(e),A1=()=>!0,L3=e=>_3.test(e)&&!O3.test(e),cE=()=>!1,M3=e=>I3.test(e),B3=e=>D3.test(e),F3=e=>!Ee(e)&&!Se(e),z3=e=>Ca(e,N1,cE),Ee=e=>T1.test(e),Qa=e=>Ca(e,_1,L3),sN=e=>Ca(e,q3,ze),U3=e=>Ca(e,I1,A1),P3=e=>Ca(e,O1,cE),lN=e=>Ca(e,C1,cE),$3=e=>Ca(e,R1,B3),zd=e=>Ca(e,D1,M3),Se=e=>x1.test(e),Ql=e=>To(e,_1),H3=e=>To(e,O1),uN=e=>To(e,C1),j3=e=>To(e,N1),G3=e=>To(e,R1),Ud=e=>To(e,D1,!0),V3=e=>To(e,I1,!0),Ca=(e,t,n)=>{const r=T1.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},To=(e,t,n=!1)=>{const r=x1.exec(e);return r?r[1]?t(r[1]):n:!1},C1=e=>e==="position"||e==="percentage",R1=e=>e==="image"||e==="url",N1=e=>e==="length"||e==="size"||e==="bg-size",_1=e=>e==="length",q3=e=>e==="number",O1=e=>e==="family-name",I1=e=>e==="number"||e==="weight",D1=e=>e==="shadow",W3=()=>{const e=Pt("color"),t=Pt("font"),n=Pt("text"),r=Pt("font-weight"),i=Pt("tracking"),a=Pt("leading"),s=Pt("breakpoint"),u=Pt("container"),c=Pt("spacing"),p=Pt("radius"),f=Pt("shadow"),m=Pt("inset-shadow"),g=Pt("text-shadow"),b=Pt("drop-shadow"),S=Pt("blur"),k=Pt("perspective"),v=Pt("aspect"),w=Pt("ease"),x=Pt("animate"),A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],O=()=>[...D(),Se,Ee],R=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],U=()=>[Se,Ee,c],G=()=>[ea,"full","auto",...U()],F=()=>[ta,"none","subgrid",Se,Ee],Q=()=>["auto",{span:["full",ta,Se,Ee]},ta,Se,Ee],q=()=>[ta,"auto",Se,Ee],te=()=>["auto","min","max","fr",Se,Ee],J=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Z=()=>["start","end","center","stretch","center-safe","end-safe"],$=()=>["auto",...U()],W=()=>[ea,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...U()],re=()=>[ea,"screen","full","dvw","lvw","svw","min","max","fit",...U()],he=()=>[ea,"screen","full","lh","dvh","lvh","svh","min","max","fit",...U()],N=()=>[e,Se,Ee],z=()=>[...D(),uN,lN,{position:[Se,Ee]}],H=()=>["no-repeat",{repeat:["","x","y","space","round"]}],_=()=>["auto","cover","contain",j3,z3,{size:[Se,Ee]}],oe=()=>[jg,Ql,Qa],de=()=>["","none","full",p,Se,Ee],fe=()=>["",ze,Ql,Qa],le=()=>["solid","dashed","dotted","double"],Te=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],be=()=>[ze,jg,uN,lN],Oe=()=>["","none",S,Se,Ee],De=()=>["none",ze,Se,Ee],Ze=()=>["none",ze,Se,Ee],xt=()=>[ze,Se,Ee],Et=()=>[ea,"full",...U()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[pi],breakpoint:[pi],color:[A1],container:[pi],"drop-shadow":[pi],ease:["in","out","in-out"],font:[F3],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[pi],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[pi],shadow:[pi],spacing:["px",ze],text:[pi],"text-shadow":[pi],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ea,Ee,Se,v]}],container:["container"],columns:[{columns:[ze,Ee,Se,u]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:O()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:G()}],"inset-x":[{"inset-x":G()}],"inset-y":[{"inset-y":G()}],start:[{"inset-s":G(),start:G()}],end:[{"inset-e":G(),end:G()}],"inset-bs":[{"inset-bs":G()}],"inset-be":[{"inset-be":G()}],top:[{top:G()}],right:[{right:G()}],bottom:[{bottom:G()}],left:[{left:G()}],visibility:["visible","invisible","collapse"],z:[{z:[ta,"auto",Se,Ee]}],basis:[{basis:[ea,"full","auto",u,...U()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ze,ea,"auto","initial","none",Ee]}],grow:[{grow:["",ze,Se,Ee]}],shrink:[{shrink:["",ze,Se,Ee]}],order:[{order:[ta,"first","last","none",Se,Ee]}],"grid-cols":[{"grid-cols":F()}],"col-start-end":[{col:Q()}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":F()}],"row-start-end":[{row:Q()}],"row-start":[{"row-start":q()}],"row-end":[{"row-end":q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":te()}],"auto-rows":[{"auto-rows":te()}],gap:[{gap:U()}],"gap-x":[{"gap-x":U()}],"gap-y":[{"gap-y":U()}],"justify-content":[{justify:[...J(),"normal"]}],"justify-items":[{"justify-items":[...Z(),"normal"]}],"justify-self":[{"justify-self":["auto",...Z()]}],"align-content":[{content:["normal",...J()]}],"align-items":[{items:[...Z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Z(),{baseline:["","last"]}]}],"place-content":[{"place-content":J()}],"place-items":[{"place-items":[...Z(),"baseline"]}],"place-self":[{"place-self":["auto",...Z()]}],p:[{p:U()}],px:[{px:U()}],py:[{py:U()}],ps:[{ps:U()}],pe:[{pe:U()}],pbs:[{pbs:U()}],pbe:[{pbe:U()}],pt:[{pt:U()}],pr:[{pr:U()}],pb:[{pb:U()}],pl:[{pl:U()}],m:[{m:$()}],mx:[{mx:$()}],my:[{my:$()}],ms:[{ms:$()}],me:[{me:$()}],mbs:[{mbs:$()}],mbe:[{mbe:$()}],mt:[{mt:$()}],mr:[{mr:$()}],mb:[{mb:$()}],ml:[{ml:$()}],"space-x":[{"space-x":U()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":U()}],"space-y-reverse":["space-y-reverse"],size:[{size:W()}],"inline-size":[{inline:["auto",...re()]}],"min-inline-size":[{"min-inline":["auto",...re()]}],"max-inline-size":[{"max-inline":["none",...re()]}],"block-size":[{block:["auto",...he()]}],"min-block-size":[{"min-block":["auto",...he()]}],"max-block-size":[{"max-block":["none",...he()]}],w:[{w:[u,"screen",...W()]}],"min-w":[{"min-w":[u,"screen","none",...W()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[s]},...W()]}],h:[{h:["screen","lh",...W()]}],"min-h":[{"min-h":["screen","lh","none",...W()]}],"max-h":[{"max-h":["screen","lh",...W()]}],"font-size":[{text:["base",n,Ql,Qa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,V3,U3]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",jg,Ee]}],"font-family":[{font:[H3,P3,t]}],"font-features":[{"font-features":[Ee]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,Se,Ee]}],"line-clamp":[{"line-clamp":[ze,"none",Se,sN]}],leading:[{leading:[a,...U()]}],"list-image":[{"list-image":["none",Se,Ee]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Se,Ee]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:N()}],"text-color":[{text:N()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...le(),"wavy"]}],"text-decoration-thickness":[{decoration:[ze,"from-font","auto",Se,Qa]}],"text-decoration-color":[{decoration:N()}],"underline-offset":[{"underline-offset":[ze,"auto",Se,Ee]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Se,Ee]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Se,Ee]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:z()}],"bg-repeat":[{bg:H()}],"bg-size":[{bg:_()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ta,Se,Ee],radial:["",Se,Ee],conic:[ta,Se,Ee]},G3,$3]}],"bg-color":[{bg:N()}],"gradient-from-pos":[{from:oe()}],"gradient-via-pos":[{via:oe()}],"gradient-to-pos":[{to:oe()}],"gradient-from":[{from:N()}],"gradient-via":[{via:N()}],"gradient-to":[{to:N()}],rounded:[{rounded:de()}],"rounded-s":[{"rounded-s":de()}],"rounded-e":[{"rounded-e":de()}],"rounded-t":[{"rounded-t":de()}],"rounded-r":[{"rounded-r":de()}],"rounded-b":[{"rounded-b":de()}],"rounded-l":[{"rounded-l":de()}],"rounded-ss":[{"rounded-ss":de()}],"rounded-se":[{"rounded-se":de()}],"rounded-ee":[{"rounded-ee":de()}],"rounded-es":[{"rounded-es":de()}],"rounded-tl":[{"rounded-tl":de()}],"rounded-tr":[{"rounded-tr":de()}],"rounded-br":[{"rounded-br":de()}],"rounded-bl":[{"rounded-bl":de()}],"border-w":[{border:fe()}],"border-w-x":[{"border-x":fe()}],"border-w-y":[{"border-y":fe()}],"border-w-s":[{"border-s":fe()}],"border-w-e":[{"border-e":fe()}],"border-w-bs":[{"border-bs":fe()}],"border-w-be":[{"border-be":fe()}],"border-w-t":[{"border-t":fe()}],"border-w-r":[{"border-r":fe()}],"border-w-b":[{"border-b":fe()}],"border-w-l":[{"border-l":fe()}],"divide-x":[{"divide-x":fe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":fe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...le(),"hidden","none"]}],"divide-style":[{divide:[...le(),"hidden","none"]}],"border-color":[{border:N()}],"border-color-x":[{"border-x":N()}],"border-color-y":[{"border-y":N()}],"border-color-s":[{"border-s":N()}],"border-color-e":[{"border-e":N()}],"border-color-bs":[{"border-bs":N()}],"border-color-be":[{"border-be":N()}],"border-color-t":[{"border-t":N()}],"border-color-r":[{"border-r":N()}],"border-color-b":[{"border-b":N()}],"border-color-l":[{"border-l":N()}],"divide-color":[{divide:N()}],"outline-style":[{outline:[...le(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ze,Se,Ee]}],"outline-w":[{outline:["",ze,Ql,Qa]}],"outline-color":[{outline:N()}],shadow:[{shadow:["","none",f,Ud,zd]}],"shadow-color":[{shadow:N()}],"inset-shadow":[{"inset-shadow":["none",m,Ud,zd]}],"inset-shadow-color":[{"inset-shadow":N()}],"ring-w":[{ring:fe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:N()}],"ring-offset-w":[{"ring-offset":[ze,Qa]}],"ring-offset-color":[{"ring-offset":N()}],"inset-ring-w":[{"inset-ring":fe()}],"inset-ring-color":[{"inset-ring":N()}],"text-shadow":[{"text-shadow":["none",g,Ud,zd]}],"text-shadow-color":[{"text-shadow":N()}],opacity:[{opacity:[ze,Se,Ee]}],"mix-blend":[{"mix-blend":[...Te(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Te()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ze]}],"mask-image-linear-from-pos":[{"mask-linear-from":be()}],"mask-image-linear-to-pos":[{"mask-linear-to":be()}],"mask-image-linear-from-color":[{"mask-linear-from":N()}],"mask-image-linear-to-color":[{"mask-linear-to":N()}],"mask-image-t-from-pos":[{"mask-t-from":be()}],"mask-image-t-to-pos":[{"mask-t-to":be()}],"mask-image-t-from-color":[{"mask-t-from":N()}],"mask-image-t-to-color":[{"mask-t-to":N()}],"mask-image-r-from-pos":[{"mask-r-from":be()}],"mask-image-r-to-pos":[{"mask-r-to":be()}],"mask-image-r-from-color":[{"mask-r-from":N()}],"mask-image-r-to-color":[{"mask-r-to":N()}],"mask-image-b-from-pos":[{"mask-b-from":be()}],"mask-image-b-to-pos":[{"mask-b-to":be()}],"mask-image-b-from-color":[{"mask-b-from":N()}],"mask-image-b-to-color":[{"mask-b-to":N()}],"mask-image-l-from-pos":[{"mask-l-from":be()}],"mask-image-l-to-pos":[{"mask-l-to":be()}],"mask-image-l-from-color":[{"mask-l-from":N()}],"mask-image-l-to-color":[{"mask-l-to":N()}],"mask-image-x-from-pos":[{"mask-x-from":be()}],"mask-image-x-to-pos":[{"mask-x-to":be()}],"mask-image-x-from-color":[{"mask-x-from":N()}],"mask-image-x-to-color":[{"mask-x-to":N()}],"mask-image-y-from-pos":[{"mask-y-from":be()}],"mask-image-y-to-pos":[{"mask-y-to":be()}],"mask-image-y-from-color":[{"mask-y-from":N()}],"mask-image-y-to-color":[{"mask-y-to":N()}],"mask-image-radial":[{"mask-radial":[Se,Ee]}],"mask-image-radial-from-pos":[{"mask-radial-from":be()}],"mask-image-radial-to-pos":[{"mask-radial-to":be()}],"mask-image-radial-from-color":[{"mask-radial-from":N()}],"mask-image-radial-to-color":[{"mask-radial-to":N()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":D()}],"mask-image-conic-pos":[{"mask-conic":[ze]}],"mask-image-conic-from-pos":[{"mask-conic-from":be()}],"mask-image-conic-to-pos":[{"mask-conic-to":be()}],"mask-image-conic-from-color":[{"mask-conic-from":N()}],"mask-image-conic-to-color":[{"mask-conic-to":N()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:z()}],"mask-repeat":[{mask:H()}],"mask-size":[{mask:_()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Se,Ee]}],filter:[{filter:["","none",Se,Ee]}],blur:[{blur:Oe()}],brightness:[{brightness:[ze,Se,Ee]}],contrast:[{contrast:[ze,Se,Ee]}],"drop-shadow":[{"drop-shadow":["","none",b,Ud,zd]}],"drop-shadow-color":[{"drop-shadow":N()}],grayscale:[{grayscale:["",ze,Se,Ee]}],"hue-rotate":[{"hue-rotate":[ze,Se,Ee]}],invert:[{invert:["",ze,Se,Ee]}],saturate:[{saturate:[ze,Se,Ee]}],sepia:[{sepia:["",ze,Se,Ee]}],"backdrop-filter":[{"backdrop-filter":["","none",Se,Ee]}],"backdrop-blur":[{"backdrop-blur":Oe()}],"backdrop-brightness":[{"backdrop-brightness":[ze,Se,Ee]}],"backdrop-contrast":[{"backdrop-contrast":[ze,Se,Ee]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ze,Se,Ee]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ze,Se,Ee]}],"backdrop-invert":[{"backdrop-invert":["",ze,Se,Ee]}],"backdrop-opacity":[{"backdrop-opacity":[ze,Se,Ee]}],"backdrop-saturate":[{"backdrop-saturate":[ze,Se,Ee]}],"backdrop-sepia":[{"backdrop-sepia":["",ze,Se,Ee]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":U()}],"border-spacing-x":[{"border-spacing-x":U()}],"border-spacing-y":[{"border-spacing-y":U()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Se,Ee]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ze,"initial",Se,Ee]}],ease:[{ease:["linear","initial",w,Se,Ee]}],delay:[{delay:[ze,Se,Ee]}],animate:[{animate:["none",x,Se,Ee]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,Se,Ee]}],"perspective-origin":[{"perspective-origin":O()}],rotate:[{rotate:De()}],"rotate-x":[{"rotate-x":De()}],"rotate-y":[{"rotate-y":De()}],"rotate-z":[{"rotate-z":De()}],scale:[{scale:Ze()}],"scale-x":[{"scale-x":Ze()}],"scale-y":[{"scale-y":Ze()}],"scale-z":[{"scale-z":Ze()}],"scale-3d":["scale-3d"],skew:[{skew:xt()}],"skew-x":[{"skew-x":xt()}],"skew-y":[{"skew-y":xt()}],transform:[{transform:[Se,Ee,"","none","gpu","cpu"]}],"transform-origin":[{origin:O()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Et()}],"translate-x":[{"translate-x":Et()}],"translate-y":[{"translate-y":Et()}],"translate-z":[{"translate-z":Et()}],"translate-none":["translate-none"],accent:[{accent:N()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:N()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Se,Ee]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mbs":[{"scroll-mbs":U()}],"scroll-mbe":[{"scroll-mbe":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pbs":[{"scroll-pbs":U()}],"scroll-pbe":[{"scroll-pbe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Se,Ee]}],fill:[{fill:["none",...N()]}],"stroke-w":[{stroke:[ze,Ql,Qa,sN]}],stroke:[{stroke:["none",...N()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Y3=A3(W3);function Ra(...e){return Y3(a3(e))}function Zb(e){return B.jsx(B$,{...e})}function Qb(e){return B.jsx(z$,{...e})}function Jb({className:e,children:t,...n}){return B.jsxs(F$,{className:Ra("flex h-9 w-full items-center justify-between rounded-md border border-slate-700 bg-slate-950 px-3 py-2 text-sm text-slate-100 shadow-sm outline-none ring-offset-slate-950 placeholder:text-slate-500 focus:ring-2 focus:ring-indigo-500 disabled:cursor-not-allowed disabled:opacity-50",e),...n,children:[t,B.jsx(U$,{asChild:!0,children:B.jsx(y1,{className:"h-4 w-4 opacity-60"})})]})}function ey({className:e,children:t,position:n="popper",...r}){return B.jsx(P$,{children:B.jsxs($$,{className:Ra("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-slate-700 bg-slate-950 text-slate-100 shadow-md",n==="popper"&&"translate-y-1",e),position:n,...r,children:[B.jsx(q$,{className:"flex cursor-default items-center justify-center py-1",children:B.jsx(i3,{className:"h-4 w-4"})}),B.jsx(H$,{className:"p-1",children:t}),B.jsx(W$,{className:"flex cursor-default items-center justify-center py-1",children:B.jsx(y1,{className:"h-4 w-4"})})]})})}function bi({className:e,children:t,...n}){return B.jsxs(j$,{className:Ra("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[highlighted]:bg-slate-800 data-[disabled]:opacity-50",e),...n,children:[B.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:B.jsx(V$,{children:B.jsx(t3,{className:"h-4 w-4"})})}),B.jsx(G$,{children:t})]})}function K3({selectedCourse:e,onCourseSelect:t}){const[n,r]=L.useState([]),[i,a]=L.useState(!0),[s,u]=L.useState(null);L.useEffect(()=>{c()},[]);async function c(){a(!0),u(null);try{const m=await iI();r(m||[])}catch(m){console.error("Failed to load courses:",m),u("Failed to load courses"),r([])}finally{a(!1)}}function p(m){const g=m==="__none__"?"":m,b=g?n.find(S=>S.slug===g):null;t?.(b)}function f(m){if(!m||m==="Unknown")return"";try{const g=new Date(m);if(isNaN(g.getTime()))return m;const S=new Date-g,k=Math.floor(S/6e4),v=Math.floor(S/36e5),w=Math.floor(S/864e5);return k<1?"Just now":k<60?`${k}m ago`:v<24?`${v}h ago`:w<7?`${w}d ago`:g.toLocaleDateString()}catch{return m}}return i?B.jsx("header",{className:"flex shrink-0 items-center border-b border-slate-800 bg-slate-900 px-4 py-3 md:px-5",children:B.jsx("div",{className:"text-sm text-slate-400",children:"Loading courses..."})}):B.jsxs("header",{className:"flex shrink-0 flex-wrap items-center gap-3 border-b border-slate-800 bg-slate-900 px-3 py-3 md:px-5",children:[B.jsxs("div",{className:"flex items-center gap-2",children:[B.jsx("span",{className:"text-lg",children:"📚"}),B.jsx("span",{className:"text-lg font-semibold",children:"Professor"})]}),B.jsx("div",{className:"w-full md:w-auto",children:B.jsxs(Zb,{value:e?.slug||"__none__",onValueChange:p,disabled:i,children:[B.jsx(Jb,{className:"h-9 w-full min-w-[180px] md:w-[220px]",children:B.jsx(Qb,{placeholder:"Select course..."})}),B.jsxs(ey,{children:[B.jsx(bi,{value:"__none__",children:"Select course..."}),n.map(m=>B.jsx(bi,{value:m.slug,children:m.name},m.slug))]})]})}),e&&B.jsxs("div",{className:"ml-0 flex w-full items-center gap-3 text-sm md:ml-auto md:w-auto",children:[B.jsx("span",{className:"font-medium text-slate-100",children:e.name}),e.lastActive&&B.jsx("span",{className:"text-xs text-slate-400",children:f(e.lastActive)})]}),s&&B.jsx("div",{className:"text-xs text-red-400",children:s})]})}function X3({lecturePanel:e,chatPanel:t,activeTab:n="both",mobileTab:r="lecture"}){const i=n==="both"||r==="lecture",a=n==="both"||r==="chat";return B.jsxs("div",{className:"flex h-full min-h-0 w-full flex-1 flex-col overflow-hidden md:flex-row",children:[i&&B.jsx("div",{className:"flex min-h-0 w-full flex-1 flex-col overflow-hidden md:w-1/2",children:e}),n==="both"&&i&&a&&B.jsx("div",{className:"hidden w-px shrink-0 bg-border md:block"}),a&&B.jsx("div",{className:"flex min-h-0 w-full flex-1 flex-col overflow-hidden md:w-1/2",children:t})]})}function cN(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const s=n.slice(i,r).trim();(s||!a)&&t.push(s),i=r+1,r=n.indexOf(",",i)}return t}function Z3(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Q3=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,J3=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,eH={};function dN(e,t){return(eH.jsx?J3:Q3).test(e)}const tH=/[ \t\n\f\r]/g;function nH(e){return typeof e=="object"?e.type==="text"?pN(e.value):!1:pN(e)}function pN(e){return e.replace(tH,"")===""}let nc=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};nc.prototype.normal={};nc.prototype.property={};nc.prototype.space=void 0;function L1(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new nc(n,r,t)}function Lu(e){return e.toLowerCase()}class Ln{constructor(t,n){this.attribute=n,this.property=t}}Ln.prototype.attribute="";Ln.prototype.booleanish=!1;Ln.prototype.boolean=!1;Ln.prototype.commaOrSpaceSeparated=!1;Ln.prototype.commaSeparated=!1;Ln.prototype.defined=!1;Ln.prototype.mustUseProperty=!1;Ln.prototype.number=!1;Ln.prototype.overloadedBoolean=!1;Ln.prototype.property="";Ln.prototype.spaceSeparated=!1;Ln.prototype.space=void 0;let rH=0;const Me=xo(),Dt=xo(),ty=xo(),pe=xo(),dt=xo(),Ds=xo(),jn=xo();function xo(){return 2**++rH}const ny=Object.freeze(Object.defineProperty({__proto__:null,boolean:Me,booleanish:Dt,commaOrSpaceSeparated:jn,commaSeparated:Ds,number:pe,overloadedBoolean:ty,spaceSeparated:dt},Symbol.toStringTag,{value:"Module"})),Gg=Object.keys(ny);class dE extends Ln{constructor(t,n,r,i){let a=-1;if(super(t,n),fN(this,"space",i),typeof r=="number")for(;++a<Gg.length;){const s=Gg[a];fN(this,Gg[a],(r&ny[s])===ny[s])}}}dE.prototype.defined=!0;function fN(e,t,n){n&&(e[t]=n)}function Ys(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const a=new dE(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Lu(r)]=r,n[Lu(a.attribute)]=r}return new nc(t,n,e.space)}const M1=Ys({properties:{ariaActiveDescendant:null,ariaAtomic:Dt,ariaAutoComplete:null,ariaBusy:Dt,ariaChecked:Dt,ariaColCount:pe,ariaColIndex:pe,ariaColSpan:pe,ariaControls:dt,ariaCurrent:null,ariaDescribedBy:dt,ariaDetails:null,ariaDisabled:Dt,ariaDropEffect:dt,ariaErrorMessage:null,ariaExpanded:Dt,ariaFlowTo:dt,ariaGrabbed:Dt,ariaHasPopup:null,ariaHidden:Dt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:dt,ariaLevel:pe,ariaLive:null,ariaModal:Dt,ariaMultiLine:Dt,ariaMultiSelectable:Dt,ariaOrientation:null,ariaOwns:dt,ariaPlaceholder:null,ariaPosInSet:pe,ariaPressed:Dt,ariaReadOnly:Dt,ariaRelevant:null,ariaRequired:Dt,ariaRoleDescription:dt,ariaRowCount:pe,ariaRowIndex:pe,ariaRowSpan:pe,ariaSelected:Dt,ariaSetSize:pe,ariaSort:null,ariaValueMax:pe,ariaValueMin:pe,ariaValueNow:pe,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function B1(e,t){return t in e?e[t]:t}function F1(e,t){return B1(e,t.toLowerCase())}const iH=Ys({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ds,acceptCharset:dt,accessKey:dt,action:null,allow:null,allowFullScreen:Me,allowPaymentRequest:Me,allowUserMedia:Me,alt:null,as:null,async:Me,autoCapitalize:null,autoComplete:dt,autoFocus:Me,autoPlay:Me,blocking:dt,capture:null,charSet:null,checked:Me,cite:null,className:dt,cols:pe,colSpan:null,content:null,contentEditable:Dt,controls:Me,controlsList:dt,coords:pe|Ds,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Me,defer:Me,dir:null,dirName:null,disabled:Me,download:ty,draggable:Dt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Me,formTarget:null,headers:dt,height:pe,hidden:ty,high:pe,href:null,hrefLang:null,htmlFor:dt,httpEquiv:dt,id:null,imageSizes:null,imageSrcSet:null,inert:Me,inputMode:null,integrity:null,is:null,isMap:Me,itemId:null,itemProp:dt,itemRef:dt,itemScope:Me,itemType:dt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Me,low:pe,manifest:null,max:null,maxLength:pe,media:null,method:null,min:null,minLength:pe,multiple:Me,muted:Me,name:null,nonce:null,noModule:Me,noValidate:Me,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Me,optimum:pe,pattern:null,ping:dt,placeholder:null,playsInline:Me,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Me,referrerPolicy:null,rel:dt,required:Me,reversed:Me,rows:pe,rowSpan:pe,sandbox:dt,scope:null,scoped:Me,seamless:Me,selected:Me,shadowRootClonable:Me,shadowRootDelegatesFocus:Me,shadowRootMode:null,shape:null,size:pe,sizes:null,slot:null,span:pe,spellCheck:Dt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:pe,step:null,style:null,tabIndex:pe,target:null,title:null,translate:null,type:null,typeMustMatch:Me,useMap:null,value:Dt,width:pe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:dt,axis:null,background:null,bgColor:null,border:pe,borderColor:null,bottomMargin:pe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Me,declare:Me,event:null,face:null,frame:null,frameBorder:null,hSpace:pe,leftMargin:pe,link:null,longDesc:null,lowSrc:null,marginHeight:pe,marginWidth:pe,noResize:Me,noHref:Me,noShade:Me,noWrap:Me,object:null,profile:null,prompt:null,rev:null,rightMargin:pe,rules:null,scheme:null,scrolling:Dt,standby:null,summary:null,text:null,topMargin:pe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:pe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Me,disableRemotePlayback:Me,prefix:null,property:null,results:pe,security:null,unselectable:null},space:"html",transform:F1}),aH=Ys({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:jn,accentHeight:pe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:pe,amplitude:pe,arabicForm:null,ascent:pe,attributeName:null,attributeType:null,azimuth:pe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:pe,by:null,calcMode:null,capHeight:pe,className:dt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:pe,diffuseConstant:pe,direction:null,display:null,dur:null,divisor:pe,dominantBaseline:null,download:Me,dx:null,dy:null,edgeMode:null,editable:null,elevation:pe,enableBackground:null,end:null,event:null,exponent:pe,externalResourcesRequired:null,fill:null,fillOpacity:pe,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ds,g2:Ds,glyphName:Ds,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:pe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:pe,horizOriginX:pe,horizOriginY:pe,id:null,ideographic:pe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:pe,k:pe,k1:pe,k2:pe,k3:pe,k4:pe,kernelMatrix:jn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:pe,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:pe,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:pe,overlineThickness:pe,paintOrder:null,panose1:null,path:null,pathLength:pe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:dt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:pe,pointsAtY:pe,pointsAtZ:pe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:jn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:jn,rev:jn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:jn,requiredFeatures:jn,requiredFonts:jn,requiredFormats:jn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:pe,specularExponent:pe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:pe,strikethroughThickness:pe,string:null,stroke:null,strokeDashArray:jn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:pe,strokeOpacity:pe,strokeWidth:null,style:null,surfaceScale:pe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:jn,tabIndex:pe,tableValues:null,target:null,targetX:pe,targetY:pe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:jn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:pe,underlineThickness:pe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:pe,values:null,vAlphabetic:pe,vMathematical:pe,vectorEffect:null,vHanging:pe,vIdeographic:pe,version:null,vertAdvY:pe,vertOriginX:pe,vertOriginY:pe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:pe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:B1}),z1=Ys({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),U1=Ys({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:F1}),P1=Ys({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),oH={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},sH=/[A-Z]/g,hN=/-[a-z]/g,lH=/^data[-\w.:]+$/i;function $1(e,t){const n=Lu(t);let r=t,i=Ln;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&lH.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(hN,cH);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!hN.test(a)){let s=a.replace(sH,uH);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=dE}return new i(r,t)}function uH(e){return"-"+e.toLowerCase()}function cH(e){return e.charAt(1).toUpperCase()}const H1=L1([M1,iH,z1,U1,P1],"html"),Of=L1([M1,aH,z1,U1,P1],"svg");function mN(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function dH(e){return e.join(" ").trim()}var ks={},Vg,gN;function pH(){if(gN)return Vg;gN=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,u=/^\s+|\s+$/g,c=`
|
|
50
|
+
`,p="/",f="*",m="",g="comment",b="declaration";function S(v,w){if(typeof v!="string")throw new TypeError("First argument must be a string");if(!v)return[];w=w||{};var x=1,A=1;function D(J){var Z=J.match(t);Z&&(x+=Z.length);var $=J.lastIndexOf(c);A=~$?J.length-$:A+J.length}function O(){var J={line:x,column:A};return function(Z){return Z.position=new R(J),G(),Z}}function R(J){this.start=J,this.end={line:x,column:A},this.source=w.source}R.prototype.content=v;function M(J){var Z=new Error(w.source+":"+x+":"+A+": "+J);if(Z.reason=J,Z.filename=w.source,Z.line=x,Z.column=A,Z.source=v,!w.silent)throw Z}function U(J){var Z=J.exec(v);if(Z){var $=Z[0];return D($),v=v.slice($.length),Z}}function G(){U(n)}function F(J){var Z;for(J=J||[];Z=Q();)Z!==!1&&J.push(Z);return J}function Q(){var J=O();if(!(p!=v.charAt(0)||f!=v.charAt(1))){for(var Z=2;m!=v.charAt(Z)&&(f!=v.charAt(Z)||p!=v.charAt(Z+1));)++Z;if(Z+=2,m===v.charAt(Z-1))return M("End of comment missing");var $=v.slice(2,Z-2);return A+=2,D($),v=v.slice(Z),A+=2,J({type:g,comment:$})}}function q(){var J=O(),Z=U(r);if(Z){if(Q(),!U(i))return M("property missing ':'");var $=U(a),W=J({type:b,property:k(Z[0].replace(e,m)),value:$?k($[0].replace(e,m)):m});return U(s),W}}function te(){var J=[];F(J);for(var Z;Z=q();)Z!==!1&&(J.push(Z),F(J));return J}return G(),te()}function k(v){return v?v.replace(u,m):m}return Vg=S,Vg}var bN;function fH(){if(bN)return ks;bN=1;var e=ks&&ks.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ks,"__esModule",{value:!0}),ks.default=n;const t=e(pH());function n(r,i){let a=null;if(!r||typeof r!="string")return a;const s=(0,t.default)(r),u=typeof i=="function";return s.forEach(c=>{if(c.type!=="declaration")return;const{property:p,value:f}=c;u?i(p,f,c):f&&(a=a||{},a[p]=f)}),a}return ks}var Jl={},yN;function hH(){if(yN)return Jl;yN=1,Object.defineProperty(Jl,"__esModule",{value:!0}),Jl.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,a=function(p){return!p||n.test(p)||e.test(p)},s=function(p,f){return f.toUpperCase()},u=function(p,f){return"".concat(f,"-")},c=function(p,f){return f===void 0&&(f={}),a(p)?p:(p=p.toLowerCase(),f.reactCompat?p=p.replace(i,u):p=p.replace(r,u),p.replace(t,s))};return Jl.camelCase=c,Jl}var eu,EN;function mH(){if(EN)return eu;EN=1;var e=eu&&eu.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(fH()),n=hH();function r(i,a){var s={};return!i||typeof i!="string"||(0,t.default)(i,function(u,c){u&&c&&(s[(0,n.camelCase)(u,a)]=c)}),s}return r.default=r,eu=r,eu}var gH=mH();const bH=Xu(gH),j1=G1("end"),pE=G1("start");function G1(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function yH(e){const t=pE(e),n=j1(e);if(t&&n)return{start:t,end:n}}function bu(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?SN(e.position):"start"in e||"end"in e?SN(e):"line"in e||"column"in e?ry(e):""}function ry(e){return kN(e&&e.line)+":"+kN(e&&e.column)}function SN(e){return ry(e&&e.start)+"-"+ry(e&&e.end)}function kN(e){return e&&typeof e=="number"?e:1}class cn extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},s=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(s=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const c=r.indexOf(":");c===-1?a.ruleId=r:(a.source=r.slice(0,c),a.ruleId=r.slice(c+1))}if(!a.place&&a.ancestors&&a.ancestors){const c=a.ancestors[a.ancestors.length-1];c&&(a.place=c.position)}const u=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=u?u.line:void 0,this.name=bu(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}cn.prototype.file="";cn.prototype.name="";cn.prototype.reason="";cn.prototype.message="";cn.prototype.stack="";cn.prototype.column=void 0;cn.prototype.line=void 0;cn.prototype.ancestors=void 0;cn.prototype.cause=void 0;cn.prototype.fatal=void 0;cn.prototype.place=void 0;cn.prototype.ruleId=void 0;cn.prototype.source=void 0;const fE={}.hasOwnProperty,EH=new Map,SH=/[A-Z]/g,kH=new Set(["table","tbody","thead","tfoot","tr"]),vH=new Set(["td","th"]),V1="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function wH(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=OH(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=_H(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Of:H1,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=q1(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function q1(e,t,n){if(t.type==="element")return TH(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return xH(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return CH(e,t,n);if(t.type==="mdxjsEsm")return AH(e,t);if(t.type==="root")return RH(e,t,n);if(t.type==="text")return NH(e,t)}function TH(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Of,e.schema=i),e.ancestors.push(t);const a=Y1(e,t.tagName,!1),s=IH(e,t);let u=mE(e,t);return kH.has(t.tagName)&&(u=u.filter(function(c){return typeof c=="string"?!nH(c):!0})),W1(e,s,a,t),hE(s,u),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function xH(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Mu(e,t.position)}function AH(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Mu(e,t.position)}function CH(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Of,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:Y1(e,t.name,!0),s=DH(e,t),u=mE(e,t);return W1(e,s,a,t),hE(s,u),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function RH(e,t,n){const r={};return hE(r,mE(e,t)),e.create(t,e.Fragment,r,n)}function NH(e,t){return t.value}function W1(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function hE(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function _H(e,t,n){return r;function r(i,a,s,u){const p=Array.isArray(s.children)?n:t;return u?p(a,s,u):p(a,s)}}function OH(e,t){return n;function n(r,i,a,s){const u=Array.isArray(a.children),c=pE(r);return t(i,a,s,u,{columnNumber:c?c.column-1:void 0,fileName:e,lineNumber:c?c.line:void 0},void 0)}}function IH(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&fE.call(t.properties,i)){const a=LH(e,i,t.properties[i]);if(a){const[s,u]=a;e.tableCellAlignToStyle&&s==="align"&&typeof u=="string"&&vH.has(t.tagName)?r=u:n[s]=u}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function DH(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const s=a.expression;s.type;const u=s.properties[0];u.type,Object.assign(n,e.evaluater.evaluateExpression(u.argument))}else Mu(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const u=r.value.data.estree.body[0];u.type,a=e.evaluater.evaluateExpression(u.expression)}else Mu(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function mE(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:EH;for(;++r<t.children.length;){const a=t.children[r];let s;if(e.passKeys){const c=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(c){const p=i.get(c)||0;s=c+"-"+p,i.set(c,p+1)}}const u=q1(e,a,s);u!==void 0&&n.push(u)}return n}function LH(e,t,n){const r=$1(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Z3(n):dH(n)),r.property==="style"){let i=typeof n=="object"?n:MH(e,String(n));return e.stylePropertyNameCase==="css"&&(i=BH(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?oH[r.property]||r.property:r.attribute,n]}}function MH(e,t){try{return bH(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new cn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=V1+"#cannot-parse-style-attribute",i}}function Y1(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let a=-1,s;for(;++a<i.length;){const u=dN(i[a])?{type:"Identifier",name:i[a]}:{type:"Literal",value:i[a]};s=s?{type:"MemberExpression",object:s,property:u,computed:!!(a&&u.type==="Literal"),optional:!1}:u}r=s}else r=dN(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return fE.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Mu(e)}function Mu(e,t){const n=new cn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=V1+"#cannot-handle-mdx-estrees-without-createevaluater",n}function BH(e){const t={};let n;for(n in e)fE.call(e,n)&&(t[FH(n)]=e[n]);return t}function FH(e){let t=e.replace(SH,zH);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function zH(e){return"-"+e.toLowerCase()}const qg={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},UH={};function gE(e,t){const n=UH,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return K1(e,r,i)}function K1(e,t,n){if(PH(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return vN(e.children,t,n)}return Array.isArray(e)?vN(e,t,n):""}function vN(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=K1(e[i],t,n);return r.join("")}function PH(e){return!!(e&&typeof e=="object")}const wN=document.createElement("i");function Bu(e){const t="&"+e+";";wN.innerHTML=t;const n=wN.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Wn(e,t,n,r){const i=e.length;let a=0,s;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);a<r.length;)s=r.slice(a,a+1e4),s.unshift(t,0),e.splice(...s),a+=1e4,t+=1e4}function ur(e,t){return e.length>0?(Wn(e,e.length,0,t),e):t}const TN={}.hasOwnProperty;function X1(e){const t={};let n=-1;for(;++n<e.length;)$H(t,e[n]);return t}function $H(e,t){let n;for(n in t){const i=(TN.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let s;if(a)for(s in a){TN.call(i,s)||(i[s]=[]);const u=a[s];HH(i[s],Array.isArray(u)?u:u?[u]:[])}}}function HH(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Wn(e,0,0,r)}function Z1(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function xr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const bn=Na(/[A-Za-z]/),ln=Na(/[\dA-Za-z]/),jH=Na(/[#-'*+\--9=?A-Z^-~]/);function Tp(e){return e!==null&&(e<32||e===127)}const iy=Na(/\d/),GH=Na(/[\dA-Fa-f]/),VH=Na(/[!-/:-@[-`{-~]/);function Ae(e){return e!==null&&e<-2}function ct(e){return e!==null&&(e<0||e===32)}function He(e){return e===-2||e===-1||e===32}const If=Na(new RegExp("\\p{P}|\\p{S}","u")),bo=Na(/\s/);function Na(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Ks(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const a=e.charCodeAt(n);let s="";if(a===37&&ln(e.charCodeAt(n+1))&&ln(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(s=String.fromCharCode(a));else if(a>55295&&a<57344){const u=e.charCodeAt(n+1);a<56320&&u>56319&&u<57344?(s=String.fromCharCode(a,u),i=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function We(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(c){return He(c)?(e.enter(n),u(c)):t(c)}function u(c){return He(c)&&a++<i?(e.consume(c),u):(e.exit(n),t(c))}}const qH={tokenize:WH};function WH(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),We(e,t,"linePrefix")}function i(u){return e.enter("paragraph"),a(u)}function a(u){const c=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=c),n=c,s(u)}function s(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return Ae(u)?(e.consume(u),e.exit("chunkText"),a):(e.consume(u),s)}}const YH={tokenize:KH},xN={tokenize:XH};function KH(e){const t=this,n=[];let r=0,i,a,s;return u;function u(A){if(r<n.length){const D=n[r];return t.containerState=D[1],e.attempt(D[0].continuation,c,p)(A)}return p(A)}function c(A){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&x();const D=t.events.length;let O=D,R;for(;O--;)if(t.events[O][0]==="exit"&&t.events[O][1].type==="chunkFlow"){R=t.events[O][1].end;break}w(r);let M=D;for(;M<t.events.length;)t.events[M][1].end={...R},M++;return Wn(t.events,O+1,0,t.events.slice(D)),t.events.length=M,p(A)}return u(A)}function p(A){if(r===n.length){if(!i)return g(A);if(i.currentConstruct&&i.currentConstruct.concrete)return S(A);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(xN,f,m)(A)}function f(A){return i&&x(),w(r),g(A)}function m(A){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,S(A)}function g(A){return t.containerState={},e.attempt(xN,b,S)(A)}function b(A){return r++,n.push([t.currentConstruct,t.containerState]),g(A)}function S(A){if(A===null){i&&x(),w(0),e.consume(A);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:a}),k(A)}function k(A){if(A===null){v(e.exit("chunkFlow"),!0),w(0),e.consume(A);return}return Ae(A)?(e.consume(A),v(e.exit("chunkFlow")),r=0,t.interrupt=void 0,u):(e.consume(A),k)}function v(A,D){const O=t.sliceStream(A);if(D&&O.push(null),A.previous=a,a&&(a.next=A),a=A,i.defineSkip(A.start),i.write(O),t.parser.lazy[A.start.line]){let R=i.events.length;for(;R--;)if(i.events[R][1].start.offset<s&&(!i.events[R][1].end||i.events[R][1].end.offset>s))return;const M=t.events.length;let U=M,G,F;for(;U--;)if(t.events[U][0]==="exit"&&t.events[U][1].type==="chunkFlow"){if(G){F=t.events[U][1].end;break}G=!0}for(w(r),R=M;R<t.events.length;)t.events[R][1].end={...F},R++;Wn(t.events,U+1,0,t.events.slice(M)),t.events.length=R}}function w(A){let D=n.length;for(;D-- >A;){const O=n[D];t.containerState=O[1],O[0].exit.call(t,e)}n.length=A}function x(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function XH(e,t,n){return We(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Fs(e){if(e===null||ct(e)||bo(e))return 1;if(If(e))return 2}function Df(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}const ay={name:"attention",resolveAll:ZH,tokenize:QH};function ZH(e,t){let n=-1,r,i,a,s,u,c,p,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const m={...e[r][1].end},g={...e[n][1].start};AN(m,-c),AN(g,c),s={type:c>1?"strongSequence":"emphasisSequence",start:m,end:{...e[r][1].end}},u={type:c>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:g},a={type:c>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?"strong":"emphasis",start:{...s.start},end:{...u.end}},e[r][1].end={...s.start},e[n][1].start={...u.end},p=[],e[r][1].end.offset-e[r][1].start.offset&&(p=ur(p,[["enter",e[r][1],t],["exit",e[r][1],t]])),p=ur(p,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",a,t]]),p=ur(p,Df(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),p=ur(p,[["exit",a,t],["enter",u,t],["exit",u,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,p=ur(p,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,Wn(e,r-1,n-r+3,p),n=r+p.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function QH(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Fs(r);let a;return s;function s(c){return a=c,e.enter("attentionSequence"),u(c)}function u(c){if(c===a)return e.consume(c),u;const p=e.exit("attentionSequence"),f=Fs(c),m=!f||f===2&&i||n.includes(c),g=!i||i===2&&f||n.includes(r);return p._open=!!(a===42?m:m&&(i||!g)),p._close=!!(a===42?g:g&&(f||!m)),t(c)}}function AN(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const JH={name:"autolink",tokenize:ej};function ej(e,t,n){let r=0;return i;function i(b){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(b){return bn(b)?(e.consume(b),s):b===64?n(b):p(b)}function s(b){return b===43||b===45||b===46||ln(b)?(r=1,u(b)):p(b)}function u(b){return b===58?(e.consume(b),r=0,c):(b===43||b===45||b===46||ln(b))&&r++<32?(e.consume(b),u):(r=0,p(b))}function c(b){return b===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),t):b===null||b===32||b===60||Tp(b)?n(b):(e.consume(b),c)}function p(b){return b===64?(e.consume(b),f):jH(b)?(e.consume(b),p):n(b)}function f(b){return ln(b)?m(b):n(b)}function m(b){return b===46?(e.consume(b),r=0,f):b===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),t):g(b)}function g(b){if((b===45||ln(b))&&r++<63){const S=b===45?g:m;return e.consume(b),S}return n(b)}}const rc={partial:!0,tokenize:tj};function tj(e,t,n){return r;function r(a){return He(a)?We(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||Ae(a)?t(a):n(a)}}const Q1={continuation:{tokenize:rj},exit:ij,name:"blockQuote",tokenize:nj};function nj(e,t,n){const r=this;return i;function i(s){if(s===62){const u=r.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),a}return n(s)}function a(s){return He(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function rj(e,t,n){const r=this;return i;function i(s){return He(s)?We(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):a(s)}function a(s){return e.attempt(Q1,t,n)(s)}}function ij(e){e.exit("blockQuote")}const J1={name:"characterEscape",tokenize:aj};function aj(e,t,n){return r;function r(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return VH(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const eD={name:"characterReference",tokenize:oj};function oj(e,t,n){const r=this;let i=0,a,s;return u;function u(m){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),c}function c(m){return m===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(m),e.exit("characterReferenceMarkerNumeric"),p):(e.enter("characterReferenceValue"),a=31,s=ln,f(m))}function p(m){return m===88||m===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(m),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,s=GH,f):(e.enter("characterReferenceValue"),a=7,s=iy,f(m))}function f(m){if(m===59&&i){const g=e.exit("characterReferenceValue");return s===ln&&!Bu(r.sliceSerialize(g))?n(m):(e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(m)&&i++<a?(e.consume(m),f):n(m)}}const CN={partial:!0,tokenize:lj},RN={concrete:!0,name:"codeFenced",tokenize:sj};function sj(e,t,n){const r=this,i={partial:!0,tokenize:O};let a=0,s=0,u;return c;function c(R){return p(R)}function p(R){const M=r.events[r.events.length-1];return a=M&&M[1].type==="linePrefix"?M[2].sliceSerialize(M[1],!0).length:0,u=R,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(R)}function f(R){return R===u?(s++,e.consume(R),f):s<3?n(R):(e.exit("codeFencedFenceSequence"),He(R)?We(e,m,"whitespace")(R):m(R))}function m(R){return R===null||Ae(R)?(e.exit("codeFencedFence"),r.interrupt?t(R):e.check(CN,k,D)(R)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),g(R))}function g(R){return R===null||Ae(R)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),m(R)):He(R)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),We(e,b,"whitespace")(R)):R===96&&R===u?n(R):(e.consume(R),g)}function b(R){return R===null||Ae(R)?m(R):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),S(R))}function S(R){return R===null||Ae(R)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),m(R)):R===96&&R===u?n(R):(e.consume(R),S)}function k(R){return e.attempt(i,D,v)(R)}function v(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),w}function w(R){return a>0&&He(R)?We(e,x,"linePrefix",a+1)(R):x(R)}function x(R){return R===null||Ae(R)?e.check(CN,k,D)(R):(e.enter("codeFlowValue"),A(R))}function A(R){return R===null||Ae(R)?(e.exit("codeFlowValue"),x(R)):(e.consume(R),A)}function D(R){return e.exit("codeFenced"),t(R)}function O(R,M,U){let G=0;return F;function F(Z){return R.enter("lineEnding"),R.consume(Z),R.exit("lineEnding"),Q}function Q(Z){return R.enter("codeFencedFence"),He(Z)?We(R,q,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Z):q(Z)}function q(Z){return Z===u?(R.enter("codeFencedFenceSequence"),te(Z)):U(Z)}function te(Z){return Z===u?(G++,R.consume(Z),te):G>=s?(R.exit("codeFencedFenceSequence"),He(Z)?We(R,J,"whitespace")(Z):J(Z)):U(Z)}function J(Z){return Z===null||Ae(Z)?(R.exit("codeFencedFence"),M(Z)):U(Z)}}}function lj(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const Wg={name:"codeIndented",tokenize:cj},uj={partial:!0,tokenize:dj};function cj(e,t,n){const r=this;return i;function i(p){return e.enter("codeIndented"),We(e,a,"linePrefix",5)(p)}function a(p){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?s(p):n(p)}function s(p){return p===null?c(p):Ae(p)?e.attempt(uj,s,c)(p):(e.enter("codeFlowValue"),u(p))}function u(p){return p===null||Ae(p)?(e.exit("codeFlowValue"),s(p)):(e.consume(p),u)}function c(p){return e.exit("codeIndented"),t(p)}}function dj(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):Ae(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):We(e,a,"linePrefix",5)(s)}function a(s){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(s):Ae(s)?i(s):n(s)}}const pj={name:"codeText",previous:hj,resolve:fj,tokenize:mj};function fj(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function hj(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function mj(e,t,n){let r=0,i,a;return s;function s(m){return e.enter("codeText"),e.enter("codeTextSequence"),u(m)}function u(m){return m===96?(e.consume(m),r++,u):(e.exit("codeTextSequence"),c(m))}function c(m){return m===null?n(m):m===32?(e.enter("space"),e.consume(m),e.exit("space"),c):m===96?(a=e.enter("codeTextSequence"),i=0,f(m)):Ae(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),c):(e.enter("codeTextData"),p(m))}function p(m){return m===null||m===32||m===96||Ae(m)?(e.exit("codeTextData"),c(m)):(e.consume(m),p)}function f(m){return m===96?(e.consume(m),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(m)):(a.type="codeTextData",p(m))}}class gj{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&tu(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),tu(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),tu(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);tu(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);tu(this.left,n.reverse())}}}function tu(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function tD(e){const t={};let n=-1,r,i,a,s,u,c,p;const f=new gj(e);for(;++n<f.length;){for(;n in t;)n=t[n];if(r=f.get(n),n&&r[1].type==="chunkFlow"&&f.get(n-1)[1].type==="listItemPrefix"&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type==="lineEndingBlank"&&(a+=2),a<c.length&&c[a][1].type==="content"))for(;++a<c.length&&c[a][1].type!=="content";)c[a][1].type==="chunkText"&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,bj(f,n)),n=t[n],p=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(s=f.get(a),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=a);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},u=f.slice(i,n),u.unshift(r),f.splice(i,n-i+1,u))}}return Wn(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!p}function bj(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const a=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const u=s.events,c=[],p={};let f,m,g=-1,b=n,S=0,k=0;const v=[k];for(;b;){for(;e.get(++i)[1]!==b;);a.push(i),b._tokenizer||(f=r.sliceStream(b),b.next||f.push(null),m&&s.defineSkip(b.start),b._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(f),b._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),m=b,b=b.next}for(b=n;++g<u.length;)u[g][0]==="exit"&&u[g-1][0]==="enter"&&u[g][1].type===u[g-1][1].type&&u[g][1].start.line!==u[g][1].end.line&&(k=g+1,v.push(k),b._tokenizer=void 0,b.previous=void 0,b=b.next);for(s.events=[],b?(b._tokenizer=void 0,b.previous=void 0):v.pop(),g=v.length;g--;){const w=u.slice(v[g],v[g+1]),x=a.pop();c.push([x,x+w.length-1]),e.splice(x,2,w)}for(c.reverse(),g=-1;++g<c.length;)p[S+c[g][0]]=S+c[g][1],S+=c[g][1]-c[g][0]-1;return p}const yj={resolve:Sj,tokenize:kj},Ej={partial:!0,tokenize:vj};function Sj(e){return tD(e),e}function kj(e,t){let n;return r;function r(u){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(u)}function i(u){return u===null?a(u):Ae(u)?e.check(Ej,s,a)(u):(e.consume(u),i)}function a(u){return e.exit("chunkContent"),e.exit("content"),t(u)}function s(u){return e.consume(u),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function vj(e,t,n){const r=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),We(e,a,"linePrefix")}function a(s){if(s===null||Ae(s))return n(s);const u=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function nD(e,t,n,r,i,a,s,u,c){const p=c||Number.POSITIVE_INFINITY;let f=0;return m;function m(w){return w===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(w),e.exit(a),g):w===null||w===32||w===41||Tp(w)?n(w):(e.enter(r),e.enter(s),e.enter(u),e.enter("chunkString",{contentType:"string"}),k(w))}function g(w){return w===62?(e.enter(a),e.consume(w),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),b(w))}function b(w){return w===62?(e.exit("chunkString"),e.exit(u),g(w)):w===null||w===60||Ae(w)?n(w):(e.consume(w),w===92?S:b)}function S(w){return w===60||w===62||w===92?(e.consume(w),b):b(w)}function k(w){return!f&&(w===null||w===41||ct(w))?(e.exit("chunkString"),e.exit(u),e.exit(s),e.exit(r),t(w)):f<p&&w===40?(e.consume(w),f++,k):w===41?(e.consume(w),f--,k):w===null||w===32||w===40||Tp(w)?n(w):(e.consume(w),w===92?v:k)}function v(w){return w===40||w===41||w===92?(e.consume(w),k):k(w)}}function rD(e,t,n,r,i,a){const s=this;let u=0,c;return p;function p(b){return e.enter(r),e.enter(i),e.consume(b),e.exit(i),e.enter(a),f}function f(b){return u>999||b===null||b===91||b===93&&!c||b===94&&!u&&"_hiddenFootnoteSupport"in s.parser.constructs?n(b):b===93?(e.exit(a),e.enter(i),e.consume(b),e.exit(i),e.exit(r),t):Ae(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),m(b))}function m(b){return b===null||b===91||b===93||Ae(b)||u++>999?(e.exit("chunkString"),f(b)):(e.consume(b),c||(c=!He(b)),b===92?g:m)}function g(b){return b===91||b===92||b===93?(e.consume(b),u++,m):m(b)}}function iD(e,t,n,r,i,a){let s;return u;function u(g){return g===34||g===39||g===40?(e.enter(r),e.enter(i),e.consume(g),e.exit(i),s=g===40?41:g,c):n(g)}function c(g){return g===s?(e.enter(i),e.consume(g),e.exit(i),e.exit(r),t):(e.enter(a),p(g))}function p(g){return g===s?(e.exit(a),c(s)):g===null?n(g):Ae(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),We(e,p,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(g))}function f(g){return g===s||g===null||Ae(g)?(e.exit("chunkString"),p(g)):(e.consume(g),g===92?m:f)}function m(g){return g===s||g===92?(e.consume(g),f):f(g)}}function yu(e,t){let n;return r;function r(i){return Ae(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):He(i)?We(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const wj={name:"definition",tokenize:xj},Tj={partial:!0,tokenize:Aj};function xj(e,t,n){const r=this;let i;return a;function a(b){return e.enter("definition"),s(b)}function s(b){return rD.call(r,e,u,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(b)}function u(b){return i=xr(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),c):n(b)}function c(b){return ct(b)?yu(e,p)(b):p(b)}function p(b){return nD(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(b)}function f(b){return e.attempt(Tj,m,m)(b)}function m(b){return He(b)?We(e,g,"whitespace")(b):g(b)}function g(b){return b===null||Ae(b)?(e.exit("definition"),r.parser.defined.push(i),t(b)):n(b)}}function Aj(e,t,n){return r;function r(u){return ct(u)?yu(e,i)(u):n(u)}function i(u){return iD(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function a(u){return He(u)?We(e,s,"whitespace")(u):s(u)}function s(u){return u===null||Ae(u)?t(u):n(u)}}const Cj={name:"hardBreakEscape",tokenize:Rj};function Rj(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return Ae(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const Nj={name:"headingAtx",resolve:_j,tokenize:Oj};function _j(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Wn(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function Oj(e,t,n){let r=0;return i;function i(f){return e.enter("atxHeading"),a(f)}function a(f){return e.enter("atxHeadingSequence"),s(f)}function s(f){return f===35&&r++<6?(e.consume(f),s):f===null||ct(f)?(e.exit("atxHeadingSequence"),u(f)):n(f)}function u(f){return f===35?(e.enter("atxHeadingSequence"),c(f)):f===null||Ae(f)?(e.exit("atxHeading"),t(f)):He(f)?We(e,u,"whitespace")(f):(e.enter("atxHeadingText"),p(f))}function c(f){return f===35?(e.consume(f),c):(e.exit("atxHeadingSequence"),u(f))}function p(f){return f===null||f===35||ct(f)?(e.exit("atxHeadingText"),u(f)):(e.consume(f),p)}}const Ij=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],NN=["pre","script","style","textarea"],Dj={concrete:!0,name:"htmlFlow",resolveTo:Bj,tokenize:Fj},Lj={partial:!0,tokenize:Uj},Mj={partial:!0,tokenize:zj};function Bj(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Fj(e,t,n){const r=this;let i,a,s,u,c;return p;function p(_){return f(_)}function f(_){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(_),m}function m(_){return _===33?(e.consume(_),g):_===47?(e.consume(_),a=!0,k):_===63?(e.consume(_),i=3,r.interrupt?t:N):bn(_)?(e.consume(_),s=String.fromCharCode(_),v):n(_)}function g(_){return _===45?(e.consume(_),i=2,b):_===91?(e.consume(_),i=5,u=0,S):bn(_)?(e.consume(_),i=4,r.interrupt?t:N):n(_)}function b(_){return _===45?(e.consume(_),r.interrupt?t:N):n(_)}function S(_){const oe="CDATA[";return _===oe.charCodeAt(u++)?(e.consume(_),u===oe.length?r.interrupt?t:q:S):n(_)}function k(_){return bn(_)?(e.consume(_),s=String.fromCharCode(_),v):n(_)}function v(_){if(_===null||_===47||_===62||ct(_)){const oe=_===47,de=s.toLowerCase();return!oe&&!a&&NN.includes(de)?(i=1,r.interrupt?t(_):q(_)):Ij.includes(s.toLowerCase())?(i=6,oe?(e.consume(_),w):r.interrupt?t(_):q(_)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(_):a?x(_):A(_))}return _===45||ln(_)?(e.consume(_),s+=String.fromCharCode(_),v):n(_)}function w(_){return _===62?(e.consume(_),r.interrupt?t:q):n(_)}function x(_){return He(_)?(e.consume(_),x):F(_)}function A(_){return _===47?(e.consume(_),F):_===58||_===95||bn(_)?(e.consume(_),D):He(_)?(e.consume(_),A):F(_)}function D(_){return _===45||_===46||_===58||_===95||ln(_)?(e.consume(_),D):O(_)}function O(_){return _===61?(e.consume(_),R):He(_)?(e.consume(_),O):A(_)}function R(_){return _===null||_===60||_===61||_===62||_===96?n(_):_===34||_===39?(e.consume(_),c=_,M):He(_)?(e.consume(_),R):U(_)}function M(_){return _===c?(e.consume(_),c=null,G):_===null||Ae(_)?n(_):(e.consume(_),M)}function U(_){return _===null||_===34||_===39||_===47||_===60||_===61||_===62||_===96||ct(_)?O(_):(e.consume(_),U)}function G(_){return _===47||_===62||He(_)?A(_):n(_)}function F(_){return _===62?(e.consume(_),Q):n(_)}function Q(_){return _===null||Ae(_)?q(_):He(_)?(e.consume(_),Q):n(_)}function q(_){return _===45&&i===2?(e.consume(_),$):_===60&&i===1?(e.consume(_),W):_===62&&i===4?(e.consume(_),z):_===63&&i===3?(e.consume(_),N):_===93&&i===5?(e.consume(_),he):Ae(_)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Lj,H,te)(_)):_===null||Ae(_)?(e.exit("htmlFlowData"),te(_)):(e.consume(_),q)}function te(_){return e.check(Mj,J,H)(_)}function J(_){return e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),Z}function Z(_){return _===null||Ae(_)?te(_):(e.enter("htmlFlowData"),q(_))}function $(_){return _===45?(e.consume(_),N):q(_)}function W(_){return _===47?(e.consume(_),s="",re):q(_)}function re(_){if(_===62){const oe=s.toLowerCase();return NN.includes(oe)?(e.consume(_),z):q(_)}return bn(_)&&s.length<8?(e.consume(_),s+=String.fromCharCode(_),re):q(_)}function he(_){return _===93?(e.consume(_),N):q(_)}function N(_){return _===62?(e.consume(_),z):_===45&&i===2?(e.consume(_),N):q(_)}function z(_){return _===null||Ae(_)?(e.exit("htmlFlowData"),H(_)):(e.consume(_),z)}function H(_){return e.exit("htmlFlow"),t(_)}}function zj(e,t,n){const r=this;return i;function i(s){return Ae(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):n(s)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function Uj(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(rc,t,n)}}const Pj={name:"htmlText",tokenize:$j};function $j(e,t,n){const r=this;let i,a,s;return u;function u(N){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(N),c}function c(N){return N===33?(e.consume(N),p):N===47?(e.consume(N),O):N===63?(e.consume(N),A):bn(N)?(e.consume(N),U):n(N)}function p(N){return N===45?(e.consume(N),f):N===91?(e.consume(N),a=0,S):bn(N)?(e.consume(N),x):n(N)}function f(N){return N===45?(e.consume(N),b):n(N)}function m(N){return N===null?n(N):N===45?(e.consume(N),g):Ae(N)?(s=m,W(N)):(e.consume(N),m)}function g(N){return N===45?(e.consume(N),b):m(N)}function b(N){return N===62?$(N):N===45?g(N):m(N)}function S(N){const z="CDATA[";return N===z.charCodeAt(a++)?(e.consume(N),a===z.length?k:S):n(N)}function k(N){return N===null?n(N):N===93?(e.consume(N),v):Ae(N)?(s=k,W(N)):(e.consume(N),k)}function v(N){return N===93?(e.consume(N),w):k(N)}function w(N){return N===62?$(N):N===93?(e.consume(N),w):k(N)}function x(N){return N===null||N===62?$(N):Ae(N)?(s=x,W(N)):(e.consume(N),x)}function A(N){return N===null?n(N):N===63?(e.consume(N),D):Ae(N)?(s=A,W(N)):(e.consume(N),A)}function D(N){return N===62?$(N):A(N)}function O(N){return bn(N)?(e.consume(N),R):n(N)}function R(N){return N===45||ln(N)?(e.consume(N),R):M(N)}function M(N){return Ae(N)?(s=M,W(N)):He(N)?(e.consume(N),M):$(N)}function U(N){return N===45||ln(N)?(e.consume(N),U):N===47||N===62||ct(N)?G(N):n(N)}function G(N){return N===47?(e.consume(N),$):N===58||N===95||bn(N)?(e.consume(N),F):Ae(N)?(s=G,W(N)):He(N)?(e.consume(N),G):$(N)}function F(N){return N===45||N===46||N===58||N===95||ln(N)?(e.consume(N),F):Q(N)}function Q(N){return N===61?(e.consume(N),q):Ae(N)?(s=Q,W(N)):He(N)?(e.consume(N),Q):G(N)}function q(N){return N===null||N===60||N===61||N===62||N===96?n(N):N===34||N===39?(e.consume(N),i=N,te):Ae(N)?(s=q,W(N)):He(N)?(e.consume(N),q):(e.consume(N),J)}function te(N){return N===i?(e.consume(N),i=void 0,Z):N===null?n(N):Ae(N)?(s=te,W(N)):(e.consume(N),te)}function J(N){return N===null||N===34||N===39||N===60||N===61||N===96?n(N):N===47||N===62||ct(N)?G(N):(e.consume(N),J)}function Z(N){return N===47||N===62||ct(N)?G(N):n(N)}function $(N){return N===62?(e.consume(N),e.exit("htmlTextData"),e.exit("htmlText"),t):n(N)}function W(N){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),re}function re(N){return He(N)?We(e,he,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):he(N)}function he(N){return e.enter("htmlTextData"),s(N)}}const bE={name:"labelEnd",resolveAll:Vj,resolveTo:qj,tokenize:Wj},Hj={tokenize:Yj},jj={tokenize:Kj},Gj={tokenize:Xj};function Vj(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&Wn(e,0,e.length,n),e}function qj(e,t){let n=e.length,r=0,i,a,s,u;for(;n--;)if(i=e[n][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(s=n);const c={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},p={type:"label",start:{...e[a][1].start},end:{...e[s][1].end}},f={type:"labelText",start:{...e[a+r+2][1].end},end:{...e[s-2][1].start}};return u=[["enter",c,t],["enter",p,t]],u=ur(u,e.slice(a+1,a+r+3)),u=ur(u,[["enter",f,t]]),u=ur(u,Df(t.parser.constructs.insideSpan.null,e.slice(a+r+4,s-3),t)),u=ur(u,[["exit",f,t],e[s-2],e[s-1],["exit",p,t]]),u=ur(u,e.slice(s+1)),u=ur(u,[["exit",c,t]]),Wn(e,a,e.length,u),e}function Wj(e,t,n){const r=this;let i=r.events.length,a,s;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){a=r.events[i][1];break}return u;function u(g){return a?a._inactive?m(g):(s=r.parser.defined.includes(xr(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(g),e.exit("labelMarker"),e.exit("labelEnd"),c):n(g)}function c(g){return g===40?e.attempt(Hj,f,s?f:m)(g):g===91?e.attempt(jj,f,s?p:m)(g):s?f(g):m(g)}function p(g){return e.attempt(Gj,f,m)(g)}function f(g){return t(g)}function m(g){return a._balanced=!0,n(g)}}function Yj(e,t,n){return r;function r(m){return e.enter("resource"),e.enter("resourceMarker"),e.consume(m),e.exit("resourceMarker"),i}function i(m){return ct(m)?yu(e,a)(m):a(m)}function a(m){return m===41?f(m):nD(e,s,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(m)}function s(m){return ct(m)?yu(e,c)(m):f(m)}function u(m){return n(m)}function c(m){return m===34||m===39||m===40?iD(e,p,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(m):f(m)}function p(m){return ct(m)?yu(e,f)(m):f(m)}function f(m){return m===41?(e.enter("resourceMarker"),e.consume(m),e.exit("resourceMarker"),e.exit("resource"),t):n(m)}}function Kj(e,t,n){const r=this;return i;function i(u){return rD.call(r,e,a,s,"reference","referenceMarker","referenceString")(u)}function a(u){return r.parser.defined.includes(xr(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(u):n(u)}function s(u){return n(u)}}function Xj(e,t,n){return r;function r(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}const Zj={name:"labelStartImage",resolveAll:bE.resolveAll,tokenize:Qj};function Qj(e,t,n){const r=this;return i;function i(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),a}function a(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),s):n(u)}function s(u){return u===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(u):t(u)}}const Jj={name:"labelStartLink",resolveAll:bE.resolveAll,tokenize:eG};function eG(e,t,n){const r=this;return i;function i(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),a}function a(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const Yg={name:"lineEnding",tokenize:tG};function tG(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),We(e,t,"linePrefix")}}const sp={name:"thematicBreak",tokenize:nG};function nG(e,t,n){let r=0,i;return a;function a(p){return e.enter("thematicBreak"),s(p)}function s(p){return i=p,u(p)}function u(p){return p===i?(e.enter("thematicBreakSequence"),c(p)):r>=3&&(p===null||Ae(p))?(e.exit("thematicBreak"),t(p)):n(p)}function c(p){return p===i?(e.consume(p),r++,c):(e.exit("thematicBreakSequence"),He(p)?We(e,u,"whitespace")(p):u(p))}}const _n={continuation:{tokenize:oG},exit:lG,name:"list",tokenize:aG},rG={partial:!0,tokenize:uG},iG={partial:!0,tokenize:sG};function aG(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return u;function u(b){const S=r.containerState.type||(b===42||b===43||b===45?"listUnordered":"listOrdered");if(S==="listUnordered"?!r.containerState.marker||b===r.containerState.marker:iy(b)){if(r.containerState.type||(r.containerState.type=S,e.enter(S,{_container:!0})),S==="listUnordered")return e.enter("listItemPrefix"),b===42||b===45?e.check(sp,n,p)(b):p(b);if(!r.interrupt||b===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(b)}return n(b)}function c(b){return iy(b)&&++s<10?(e.consume(b),c):(!r.interrupt||s<2)&&(r.containerState.marker?b===r.containerState.marker:b===41||b===46)?(e.exit("listItemValue"),p(b)):n(b)}function p(b){return e.enter("listItemMarker"),e.consume(b),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||b,e.check(rc,r.interrupt?n:f,e.attempt(rG,g,m))}function f(b){return r.containerState.initialBlankLine=!0,a++,g(b)}function m(b){return He(b)?(e.enter("listItemPrefixWhitespace"),e.consume(b),e.exit("listItemPrefixWhitespace"),g):n(b)}function g(b){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(b)}}function oG(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(rc,i,a);function i(u){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,We(e,t,"listItemIndent",r.containerState.size+1)(u)}function a(u){return r.containerState.furtherBlankLines||!He(u)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(u)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(iG,t,s)(u))}function s(u){return r.containerState._closeFlow=!0,r.interrupt=void 0,We(e,e.attempt(_n,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function sG(e,t,n){const r=this;return We(e,i,"listItemIndent",r.containerState.size+1);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(a):n(a)}}function lG(e){e.exit(this.containerState.type)}function uG(e,t,n){const r=this;return We(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const s=r.events[r.events.length-1];return!He(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const _N={name:"setextUnderline",resolveTo:cG,tokenize:dG};function cG(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",s,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function dG(e,t,n){const r=this;let i;return a;function a(p){let f=r.events.length,m;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){m=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||m)?(e.enter("setextHeadingLine"),i=p,s(p)):n(p)}function s(p){return e.enter("setextHeadingLineSequence"),u(p)}function u(p){return p===i?(e.consume(p),u):(e.exit("setextHeadingLineSequence"),He(p)?We(e,c,"lineSuffix")(p):c(p))}function c(p){return p===null||Ae(p)?(e.exit("setextHeadingLine"),t(p)):n(p)}}const pG={tokenize:fG};function fG(e){const t=this,n=e.attempt(rc,r,e.attempt(this.parser.constructs.flowInitial,i,We(e,e.attempt(this.parser.constructs.flow,i,e.attempt(yj,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const hG={resolveAll:oD()},mG=aD("string"),gG=aD("text");function aD(e){return{resolveAll:oD(e==="text"?bG:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,s,u);return s;function s(f){return p(f)?a(f):u(f)}function u(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),c}function c(f){return p(f)?(n.exit("data"),a(f)):(n.consume(f),c)}function p(f){if(f===null)return!0;const m=i[f];let g=-1;if(m)for(;++g<m.length;){const b=m[g];if(!b.previous||b.previous.call(r,r.previous))return!0}return!1}}}function oD(e){return t;function t(n,r){let i=-1,a;for(;++i<=n.length;)a===void 0?n[i]&&n[i][1].type==="data"&&(a=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==a+2&&(n[a][1].end=n[i-1][1].end,n.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(n,r):n}}function bG(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let a=i.length,s=-1,u=0,c;for(;a--;){const p=i[a];if(typeof p=="string"){for(s=p.length;p.charCodeAt(s-1)===32;)u++,s--;if(s)break;s=-1}else if(p===-2)c=!0,u++;else if(p!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(u=0),u){const p={type:n===e.length||c||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:r.start._bufferIndex+s,_index:r.start._index+a,line:r.end.line,column:r.end.column-u,offset:r.end.offset-u},end:{...r.end}};r.end={...p.start},r.start.offset===r.end.offset?Object.assign(r,p):(e.splice(n,0,["enter",p,t],["exit",p,t]),n+=2)}n++}return e}const yG={42:_n,43:_n,45:_n,48:_n,49:_n,50:_n,51:_n,52:_n,53:_n,54:_n,55:_n,56:_n,57:_n,62:Q1},EG={91:wj},SG={[-2]:Wg,[-1]:Wg,32:Wg},kG={35:Nj,42:sp,45:[_N,sp],60:Dj,61:_N,95:sp,96:RN,126:RN},vG={38:eD,92:J1},wG={[-5]:Yg,[-4]:Yg,[-3]:Yg,33:Zj,38:eD,42:ay,60:[JH,Pj],91:Jj,92:[Cj,J1],93:bE,95:ay,96:pj},TG={null:[ay,hG]},xG={null:[42,95]},AG={null:[]},CG=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:xG,contentInitial:EG,disable:AG,document:yG,flow:kG,flowInitial:SG,insideSpan:TG,string:vG,text:wG},Symbol.toStringTag,{value:"Module"}));function RG(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},a=[];let s=[],u=[];const c={attempt:M(O),check:M(R),consume:x,enter:A,exit:D,interrupt:M(R,{interrupt:!0})},p={code:null,containerState:{},defineSkip:k,events:[],now:S,parser:e,previous:null,sliceSerialize:g,sliceStream:b,write:m};let f=t.tokenize.call(p,c);return t.resolveAll&&a.push(t),p;function m(Q){return s=ur(s,Q),v(),s[s.length-1]!==null?[]:(U(t,0),p.events=Df(a,p.events,p),p.events)}function g(Q,q){return _G(b(Q),q)}function b(Q){return NG(s,Q)}function S(){const{_bufferIndex:Q,_index:q,line:te,column:J,offset:Z}=r;return{_bufferIndex:Q,_index:q,line:te,column:J,offset:Z}}function k(Q){i[Q.line]=Q.column,F()}function v(){let Q;for(;r._index<s.length;){const q=s[r._index];if(typeof q=="string")for(Q=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===Q&&r._bufferIndex<q.length;)w(q.charCodeAt(r._bufferIndex));else w(q)}}function w(Q){f=f(Q)}function x(Q){Ae(Q)?(r.line++,r.column=1,r.offset+=Q===-3?2:1,F()):Q!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),p.previous=Q}function A(Q,q){const te=q||{};return te.type=Q,te.start=S(),p.events.push(["enter",te,p]),u.push(te),te}function D(Q){const q=u.pop();return q.end=S(),p.events.push(["exit",q,p]),q}function O(Q,q){U(Q,q.from)}function R(Q,q){q.restore()}function M(Q,q){return te;function te(J,Z,$){let W,re,he,N;return Array.isArray(J)?H(J):"tokenize"in J?H([J]):z(J);function z(fe){return le;function le(Te){const be=Te!==null&&fe[Te],Oe=Te!==null&&fe.null,De=[...Array.isArray(be)?be:be?[be]:[],...Array.isArray(Oe)?Oe:Oe?[Oe]:[]];return H(De)(Te)}}function H(fe){return W=fe,re=0,fe.length===0?$:_(fe[re])}function _(fe){return le;function le(Te){return N=G(),he=fe,fe.partial||(p.currentConstruct=fe),fe.name&&p.parser.constructs.disable.null.includes(fe.name)?de():fe.tokenize.call(q?Object.assign(Object.create(p),q):p,c,oe,de)(Te)}}function oe(fe){return Q(he,N),Z}function de(fe){return N.restore(),++re<W.length?_(W[re]):$}}}function U(Q,q){Q.resolveAll&&!a.includes(Q)&&a.push(Q),Q.resolve&&Wn(p.events,q,p.events.length-q,Q.resolve(p.events.slice(q),p)),Q.resolveTo&&(p.events=Q.resolveTo(p.events,p))}function G(){const Q=S(),q=p.previous,te=p.currentConstruct,J=p.events.length,Z=Array.from(u);return{from:J,restore:$};function $(){r=Q,p.previous=q,p.currentConstruct=te,p.events.length=J,u=Z,F()}}function F(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function NG(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let s;if(n===i)s=[e[n].slice(r,a)];else{if(s=e.slice(n,i),r>-1){const u=s[0];typeof u=="string"?s[0]=u.slice(r):s.shift()}a>0&&s.push(e[i].slice(0,a))}return s}function _G(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const a=e[n];let s;if(typeof a=="string")s=a;else switch(a){case-5:{s="\r";break}case-4:{s=`
|
|
51
|
+
`;break}case-3:{s=`\r
|
|
52
|
+
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&i)continue;s=" ";break}default:s=String.fromCharCode(a)}i=a===-2,r.push(s)}return r.join("")}function OG(e){const r={constructs:X1([CG,...(e||{}).extensions||[]]),content:i(qH),defined:[],document:i(YH),flow:i(pG),lazy:{},string:i(mG),text:i(gG)};return r;function i(a){return s;function s(u){return RG(r,a,u)}}}function IG(e){for(;!tD(e););return e}const ON=/[\0\t\n\r]/g;function DG(){let e=1,t="",n=!0,r;return i;function i(a,s,u){const c=[];let p,f,m,g,b;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(s||void 0).decode(a)),m=0,t="",n&&(a.charCodeAt(0)===65279&&m++,n=void 0);m<a.length;){if(ON.lastIndex=m,p=ON.exec(a),g=p&&p.index!==void 0?p.index:a.length,b=a.charCodeAt(g),!p){t=a.slice(m);break}if(b===10&&m===g&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),m<g&&(c.push(a.slice(m,g)),e+=g-m),b){case 0:{c.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,c.push(-2);e++<f;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:r=!0,e=1}m=g+1}return u&&(r&&c.push(-5),t&&c.push(t),c.push(null)),c}}const LG=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function MG(e){return e.replace(LG,BG)}function BG(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),a=i===120||i===88;return Z1(n.slice(a?2:1),a?16:10)}return Bu(n)||e}const sD={}.hasOwnProperty;function FG(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),zG(n)(IG(OG(n).document().write(DG()(e,t,!0))))}function zG(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Oo),autolinkProtocol:G,autolinkEmail:G,atxHeading:a(Rr),blockQuote:a(Oe),characterEscape:G,characterReference:G,codeFenced:a(De),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:a(De,s),codeText:a(Ze,s),codeTextData:G,data:G,codeFlowValue:G,definition:a(xt),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:a(Et),hardBreakEscape:a(Nr),hardBreakTrailing:a(Nr),htmlFlow:a(Ri,s),htmlFlowData:G,htmlText:a(Ri,s),htmlTextData:G,image:a(gc),label:s,link:a(Oo),listItem:a(il),listItemValue:g,listOrdered:a(Io,m),listUnordered:a(Io),paragraph:a(ch),reference:_,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:a(Rr),strong:a(dh),thematicBreak:a(ph)},exit:{atxHeading:c(),atxHeadingSequence:O,autolink:c(),autolinkEmail:be,autolinkProtocol:Te,blockQuote:c(),characterEscapeValue:F,characterReferenceMarkerHexadecimal:de,characterReferenceMarkerNumeric:de,characterReferenceValue:fe,characterReference:le,codeFenced:c(v),codeFencedFence:k,codeFencedFenceInfo:b,codeFencedFenceMeta:S,codeFlowValue:F,codeIndented:c(w),codeText:c(Z),codeTextData:F,data:F,definition:c(),definitionDestinationString:D,definitionLabelString:x,definitionTitleString:A,emphasis:c(),hardBreakEscape:c(q),hardBreakTrailing:c(q),htmlFlow:c(te),htmlFlowData:F,htmlText:c(J),htmlTextData:F,image:c(W),label:he,labelText:re,lineEnding:Q,link:c($),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:oe,resourceDestinationString:N,resourceTitleString:z,resource:H,setextHeading:c(U),setextHeadingLineSequence:M,setextHeadingText:R,strong:c(),thematicBreak:c()}};lD(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(ie){let me={type:"root",children:[]};const Re={stack:[me],tokenStack:[],config:t,enter:u,exit:p,buffer:s,resume:f,data:n},Ue=[];let Je=-1;for(;++Je<ie.length;)if(ie[Je][1].type==="listOrdered"||ie[Je][1].type==="listUnordered")if(ie[Je][0]==="enter")Ue.push(Je);else{const Mn=Ue.pop();Je=i(ie,Mn,Je)}for(Je=-1;++Je<ie.length;){const Mn=t[ie[Je][0]];sD.call(Mn,ie[Je][1].type)&&Mn[ie[Je][1].type].call(Object.assign({sliceSerialize:ie[Je][2].sliceSerialize},Re),ie[Je][1])}if(Re.tokenStack.length>0){const Mn=Re.tokenStack[Re.tokenStack.length-1];(Mn[1]||IN).call(Re,void 0,Mn[0])}for(me.position={start:na(ie.length>0?ie[0][1].start:{line:1,column:1,offset:0}),end:na(ie.length>0?ie[ie.length-2][1].end:{line:1,column:1,offset:0})},Je=-1;++Je<t.transforms.length;)me=t.transforms[Je](me)||me;return me}function i(ie,me,Re){let Ue=me-1,Je=-1,Mn=!1,Wr,mn,zt,vn;for(;++Ue<=Re;){const st=ie[Ue];switch(st[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{st[0]==="enter"?Je++:Je--,vn=void 0;break}case"lineEndingBlank":{st[0]==="enter"&&(Wr&&!vn&&!Je&&!zt&&(zt=Ue),vn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:vn=void 0}if(!Je&&st[0]==="enter"&&st[1].type==="listItemPrefix"||Je===-1&&st[0]==="exit"&&(st[1].type==="listUnordered"||st[1].type==="listOrdered")){if(Wr){let Ni=Ue;for(mn=void 0;Ni--;){const fr=ie[Ni];if(fr[1].type==="lineEnding"||fr[1].type==="lineEndingBlank"){if(fr[0]==="exit")continue;mn&&(ie[mn][1].type="lineEndingBlank",Mn=!0),fr[1].type="lineEnding",mn=Ni}else if(!(fr[1].type==="linePrefix"||fr[1].type==="blockQuotePrefix"||fr[1].type==="blockQuotePrefixWhitespace"||fr[1].type==="blockQuoteMarker"||fr[1].type==="listItemIndent"))break}zt&&(!mn||zt<mn)&&(Wr._spread=!0),Wr.end=Object.assign({},mn?ie[mn][1].start:st[1].end),ie.splice(mn||Ue,0,["exit",Wr,st[2]]),Ue++,Re++}if(st[1].type==="listItemPrefix"){const Ni={type:"listItem",_spread:!1,start:Object.assign({},st[1].start),end:void 0};Wr=Ni,ie.splice(Ue,0,["enter",Ni,st[2]]),Ue++,Re++,zt=void 0,vn=!0}}}return ie[me][1]._spread=Mn,Re}function a(ie,me){return Re;function Re(Ue){u.call(this,ie(Ue),Ue),me&&me.call(this,Ue)}}function s(){this.stack.push({type:"fragment",children:[]})}function u(ie,me,Re){this.stack[this.stack.length-1].children.push(ie),this.stack.push(ie),this.tokenStack.push([me,Re||void 0]),ie.position={start:na(me.start),end:void 0}}function c(ie){return me;function me(Re){ie&&ie.call(this,Re),p.call(this,Re)}}function p(ie,me){const Re=this.stack.pop(),Ue=this.tokenStack.pop();if(Ue)Ue[0].type!==ie.type&&(me?me.call(this,ie,Ue[0]):(Ue[1]||IN).call(this,ie,Ue[0]));else throw new Error("Cannot close `"+ie.type+"` ("+bu({start:ie.start,end:ie.end})+"): it’s not open");Re.position.end=na(ie.end)}function f(){return gE(this.stack.pop())}function m(){this.data.expectingFirstListItemValue=!0}function g(ie){if(this.data.expectingFirstListItemValue){const me=this.stack[this.stack.length-2];me.start=Number.parseInt(this.sliceSerialize(ie),10),this.data.expectingFirstListItemValue=void 0}}function b(){const ie=this.resume(),me=this.stack[this.stack.length-1];me.lang=ie}function S(){const ie=this.resume(),me=this.stack[this.stack.length-1];me.meta=ie}function k(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const ie=this.resume(),me=this.stack[this.stack.length-1];me.value=ie.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function w(){const ie=this.resume(),me=this.stack[this.stack.length-1];me.value=ie.replace(/(\r?\n|\r)$/g,"")}function x(ie){const me=this.resume(),Re=this.stack[this.stack.length-1];Re.label=me,Re.identifier=xr(this.sliceSerialize(ie)).toLowerCase()}function A(){const ie=this.resume(),me=this.stack[this.stack.length-1];me.title=ie}function D(){const ie=this.resume(),me=this.stack[this.stack.length-1];me.url=ie}function O(ie){const me=this.stack[this.stack.length-1];if(!me.depth){const Re=this.sliceSerialize(ie).length;me.depth=Re}}function R(){this.data.setextHeadingSlurpLineEnding=!0}function M(ie){const me=this.stack[this.stack.length-1];me.depth=this.sliceSerialize(ie).codePointAt(0)===61?1:2}function U(){this.data.setextHeadingSlurpLineEnding=void 0}function G(ie){const Re=this.stack[this.stack.length-1].children;let Ue=Re[Re.length-1];(!Ue||Ue.type!=="text")&&(Ue=hn(),Ue.position={start:na(ie.start),end:void 0},Re.push(Ue)),this.stack.push(Ue)}function F(ie){const me=this.stack.pop();me.value+=this.sliceSerialize(ie),me.position.end=na(ie.end)}function Q(ie){const me=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Re=me.children[me.children.length-1];Re.position.end=na(ie.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(me.type)&&(G.call(this,ie),F.call(this,ie))}function q(){this.data.atHardBreak=!0}function te(){const ie=this.resume(),me=this.stack[this.stack.length-1];me.value=ie}function J(){const ie=this.resume(),me=this.stack[this.stack.length-1];me.value=ie}function Z(){const ie=this.resume(),me=this.stack[this.stack.length-1];me.value=ie}function $(){const ie=this.stack[this.stack.length-1];if(this.data.inReference){const me=this.data.referenceType||"shortcut";ie.type+="Reference",ie.referenceType=me,delete ie.url,delete ie.title}else delete ie.identifier,delete ie.label;this.data.referenceType=void 0}function W(){const ie=this.stack[this.stack.length-1];if(this.data.inReference){const me=this.data.referenceType||"shortcut";ie.type+="Reference",ie.referenceType=me,delete ie.url,delete ie.title}else delete ie.identifier,delete ie.label;this.data.referenceType=void 0}function re(ie){const me=this.sliceSerialize(ie),Re=this.stack[this.stack.length-2];Re.label=MG(me),Re.identifier=xr(me).toLowerCase()}function he(){const ie=this.stack[this.stack.length-1],me=this.resume(),Re=this.stack[this.stack.length-1];if(this.data.inReference=!0,Re.type==="link"){const Ue=ie.children;Re.children=Ue}else Re.alt=me}function N(){const ie=this.resume(),me=this.stack[this.stack.length-1];me.url=ie}function z(){const ie=this.resume(),me=this.stack[this.stack.length-1];me.title=ie}function H(){this.data.inReference=void 0}function _(){this.data.referenceType="collapsed"}function oe(ie){const me=this.resume(),Re=this.stack[this.stack.length-1];Re.label=me,Re.identifier=xr(this.sliceSerialize(ie)).toLowerCase(),this.data.referenceType="full"}function de(ie){this.data.characterReferenceType=ie.type}function fe(ie){const me=this.sliceSerialize(ie),Re=this.data.characterReferenceType;let Ue;Re?(Ue=Z1(me,Re==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ue=Bu(me);const Je=this.stack[this.stack.length-1];Je.value+=Ue}function le(ie){const me=this.stack.pop();me.position.end=na(ie.end)}function Te(ie){F.call(this,ie);const me=this.stack[this.stack.length-1];me.url=this.sliceSerialize(ie)}function be(ie){F.call(this,ie);const me=this.stack[this.stack.length-1];me.url="mailto:"+this.sliceSerialize(ie)}function Oe(){return{type:"blockquote",children:[]}}function De(){return{type:"code",lang:null,meta:null,value:""}}function Ze(){return{type:"inlineCode",value:""}}function xt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Et(){return{type:"emphasis",children:[]}}function Rr(){return{type:"heading",depth:0,children:[]}}function Nr(){return{type:"break"}}function Ri(){return{type:"html",value:""}}function gc(){return{type:"image",title:null,url:"",alt:null}}function Oo(){return{type:"link",title:null,url:"",children:[]}}function Io(ie){return{type:"list",ordered:ie.type==="listOrdered",start:null,spread:ie._spread,children:[]}}function il(ie){return{type:"listItem",spread:ie._spread,checked:null,children:[]}}function ch(){return{type:"paragraph",children:[]}}function dh(){return{type:"strong",children:[]}}function hn(){return{type:"text",value:""}}function ph(){return{type:"thematicBreak"}}}function na(e){return{line:e.line,column:e.column,offset:e.offset}}function lD(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?lD(e,r):UG(e,r)}}function UG(e,t){let n;for(n in t)if(sD.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function IN(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+bu({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+bu({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+bu({start:t.start,end:t.end})+") is still open")}function PG(e){const t=this;t.parser=n;function n(r){return FG(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function $G(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function HG(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
53
|
+
`}]}function jG(e,t){const n=t.value?t.value+`
|
|
54
|
+
`:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function GG(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function VG(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function qG(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Ks(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let s,u=e.footnoteCounts.get(r);u===void 0?(u=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=a+1,u+=1,e.footnoteCounts.set(r,u);const c={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(u>1?"-"+u:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,c);const p={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(t,p),e.applyData(t,p)}function WG(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function YG(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function uD(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=r:i.push({type:"text",value:r}),i}function KG(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return uD(e,t);const i={src:Ks(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function XG(e,t){const n={src:Ks(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function ZG(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function QG(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return uD(e,t);const i={href:Ks(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function JG(e,t){const n={href:Ks(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function e4(e,t,n){const r=e.all(t),i=n?t4(n):cD(t),a={},s=[];if(typeof t.checked=="boolean"){const f=r[0];let m;f&&f.type==="element"&&f.tagName==="p"?m=f:(m={type:"element",tagName:"p",properties:{},children:[]},r.unshift(m)),m.children.length>0&&m.children.unshift({type:"text",value:" "}),m.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let u=-1;for(;++u<r.length;){const f=r[u];(i||u!==0||f.type!=="element"||f.tagName!=="p")&&s.push({type:"text",value:`
|
|
55
|
+
`}),f.type==="element"&&f.tagName==="p"&&!i?s.push(...f.children):s.push(f)}const c=r[r.length-1];c&&(i||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:`
|
|
56
|
+
`});const p={type:"element",tagName:"li",properties:a,children:s};return e.patch(t,p),e.applyData(t,p)}function t4(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=cD(n[r])}return t}function cD(e){const t=e.spread;return t??e.children.length>1}function n4(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const s=r[i];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function r4(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function i4(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function a4(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function o4(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],s),i.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},u=pE(t.children[1]),c=j1(t.children[t.children.length-1]);u&&c&&(s.position={start:u,end:c}),i.push(s)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function s4(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,u=s?s.length:t.children.length;let c=-1;const p=[];for(;++c<u;){const m=t.children[c],g={},b=s?s[c]:void 0;b&&(g.align=b);let S={type:"element",tagName:a,properties:g,children:[]};m&&(S.children=e.all(m),e.patch(m,S),S=e.applyData(m,S)),p.push(S)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(p,!0)};return e.patch(t,f),e.applyData(t,f)}function l4(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const DN=9,LN=32;function u4(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const a=[];for(;r;)a.push(MN(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(MN(t.slice(i),i>0,!1)),a.join("")}function MN(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===DN||a===LN;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===DN||a===LN;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function c4(e,t){const n={type:"text",value:u4(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function d4(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const p4={blockquote:$G,break:HG,code:jG,delete:GG,emphasis:VG,footnoteReference:qG,heading:WG,html:YG,imageReference:KG,image:XG,inlineCode:ZG,linkReference:QG,link:JG,listItem:e4,list:n4,paragraph:r4,root:i4,strong:a4,table:o4,tableCell:l4,tableRow:s4,text:c4,thematicBreak:d4,toml:Pd,yaml:Pd,definition:Pd,footnoteDefinition:Pd};function Pd(){}const dD=-1,Lf=0,Eu=1,xp=2,yE=3,EE=4,SE=5,kE=6,pD=7,fD=8,BN=typeof self=="object"?self:globalThis,f4=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,s]=t[i];switch(a){case Lf:case dD:return n(s,i);case Eu:{const u=n([],i);for(const c of s)u.push(r(c));return u}case xp:{const u=n({},i);for(const[c,p]of s)u[r(c)]=r(p);return u}case yE:return n(new Date(s),i);case EE:{const{source:u,flags:c}=s;return n(new RegExp(u,c),i)}case SE:{const u=n(new Map,i);for(const[c,p]of s)u.set(r(c),r(p));return u}case kE:{const u=n(new Set,i);for(const c of s)u.add(r(c));return u}case pD:{const{name:u,message:c}=s;return n(new BN[u](c),i)}case fD:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:u}=new Uint8Array(s);return n(new DataView(u),s)}}return n(new BN[a](s),i)};return r},FN=e=>f4(new Map,e)(0),vs="",{toString:h4}={},{keys:m4}=Object,nu=e=>{const t=typeof e;if(t!=="object"||!e)return[Lf,t];const n=h4.call(e).slice(8,-1);switch(n){case"Array":return[Eu,vs];case"Object":return[xp,vs];case"Date":return[yE,vs];case"RegExp":return[EE,vs];case"Map":return[SE,vs];case"Set":return[kE,vs];case"DataView":return[Eu,n]}return n.includes("Array")?[Eu,n]:n.includes("Error")?[pD,n]:[xp,n]},$d=([e,t])=>e===Lf&&(t==="function"||t==="symbol"),g4=(e,t,n,r)=>{const i=(s,u)=>{const c=r.push(s)-1;return n.set(u,c),c},a=s=>{if(n.has(s))return n.get(s);let[u,c]=nu(s);switch(u){case Lf:{let f=s;switch(c){case"bigint":u=fD,f=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);f=null;break;case"undefined":return i([dD],s)}return i([u,f],s)}case Eu:{if(c){let g=s;return c==="DataView"?g=new Uint8Array(s.buffer):c==="ArrayBuffer"&&(g=new Uint8Array(s)),i([c,[...g]],s)}const f=[],m=i([u,f],s);for(const g of s)f.push(a(g));return m}case xp:{if(c)switch(c){case"BigInt":return i([c,s.toString()],s);case"Boolean":case"Number":case"String":return i([c,s.valueOf()],s)}if(t&&"toJSON"in s)return a(s.toJSON());const f=[],m=i([u,f],s);for(const g of m4(s))(e||!$d(nu(s[g])))&&f.push([a(g),a(s[g])]);return m}case yE:return i([u,s.toISOString()],s);case EE:{const{source:f,flags:m}=s;return i([u,{source:f,flags:m}],s)}case SE:{const f=[],m=i([u,f],s);for(const[g,b]of s)(e||!($d(nu(g))||$d(nu(b))))&&f.push([a(g),a(b)]);return m}case kE:{const f=[],m=i([u,f],s);for(const g of s)(e||!$d(nu(g)))&&f.push(a(g));return m}}const{message:p}=s;return i([u,{name:c,message:p}],s)};return a},zN=(e,{json:t,lossy:n}={})=>{const r=[];return g4(!(t||n),!!t,new Map,r)(e),r},Ap=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?FN(zN(e,t)):structuredClone(e):(e,t)=>FN(zN(e,t));function b4(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function y4(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function E4(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||b4,r=e.options.footnoteBackLabel||y4,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},u=[];let c=-1;for(;++c<e.footnoteOrder.length;){const p=e.footnoteById.get(e.footnoteOrder[c]);if(!p)continue;const f=e.all(p),m=String(p.identifier).toUpperCase(),g=Ks(m.toLowerCase());let b=0;const S=[],k=e.footnoteCounts.get(m);for(;k!==void 0&&++b<=k;){S.length>0&&S.push({type:"text",value:" "});let x=typeof n=="string"?n:n(c,b);typeof x=="string"&&(x={type:"text",value:x}),S.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+g+(b>1?"-"+b:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(c,b),className:["data-footnote-backref"]},children:Array.isArray(x)?x:[x]})}const v=f[f.length-1];if(v&&v.type==="element"&&v.tagName==="p"){const x=v.children[v.children.length-1];x&&x.type==="text"?x.value+=" ":v.children.push({type:"text",value:" "}),v.children.push(...S)}else f.push(...S);const w={type:"element",tagName:"li",properties:{id:t+"fn-"+g},children:e.wrap(f,!0)};e.patch(p,w),u.push(w)}if(u.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Ap(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
|
57
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(u,!0)},{type:"text",value:`
|
|
58
|
+
`}]}}const Mf=(function(e){if(e==null)return w4;if(typeof e=="function")return Bf(e);if(typeof e=="object")return Array.isArray(e)?S4(e):k4(e);if(typeof e=="string")return v4(e);throw new Error("Expected function, string, or object as test")});function S4(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Mf(e[n]);return Bf(r);function r(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function k4(e){const t=e;return Bf(n);function n(r){const i=r;let a;for(a in e)if(i[a]!==t[a])return!1;return!0}}function v4(e){return Bf(t);function t(n){return n&&n.type===e}}function Bf(e){return t;function t(n,r,i){return!!(T4(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function w4(){return!0}function T4(e){return e!==null&&typeof e=="object"&&"type"in e}const hD=[],x4=!0,oy=!1,A4="skip";function mD(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const a=Mf(i),s=r?-1:1;u(e,void 0,[])();function u(c,p,f){const m=c&&typeof c=="object"?c:{};if(typeof m.type=="string"){const b=typeof m.tagName=="string"?m.tagName:typeof m.name=="string"?m.name:void 0;Object.defineProperty(g,"name",{value:"node ("+(c.type+(b?"<"+b+">":""))+")"})}return g;function g(){let b=hD,S,k,v;if((!t||a(c,p,f[f.length-1]||void 0))&&(b=C4(n(c,f)),b[0]===oy))return b;if("children"in c&&c.children){const w=c;if(w.children&&b[0]!==A4)for(k=(r?w.children.length:-1)+s,v=f.concat(w);k>-1&&k<w.children.length;){const x=w.children[k];if(S=u(x,k,v)(),S[0]===oy)return S;k=typeof S[1]=="number"?S[1]:k+s}}return b}}}function C4(e){return Array.isArray(e)?e:typeof e=="number"?[x4,e]:e==null?hD:[e]}function vE(e,t,n,r){let i,a,s;typeof t=="function"&&typeof n!="function"?(a=void 0,s=t,i=n):(a=t,s=n,i=r),mD(e,a,u,i);function u(c,p){const f=p[p.length-1],m=f?f.children.indexOf(c):void 0;return s(c,m,f)}}const sy={}.hasOwnProperty,R4={};function N4(e,t){const n=t||R4,r=new Map,i=new Map,a=new Map,s={...p4,...n.handlers},u={all:p,applyData:O4,definitionById:r,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:s,one:c,options:n,patch:_4,wrap:D4};return vE(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const m=f.type==="definition"?r:i,g=String(f.identifier).toUpperCase();m.has(g)||m.set(g,f)}}),u;function c(f,m){const g=f.type,b=u.handlers[g];if(sy.call(u.handlers,g)&&b)return b(u,f,m);if(u.options.passThrough&&u.options.passThrough.includes(g)){if("children"in f){const{children:k,...v}=f,w=Ap(v);return w.children=u.all(f),w}return Ap(f)}return(u.options.unknownHandler||I4)(u,f,m)}function p(f){const m=[];if("children"in f){const g=f.children;let b=-1;for(;++b<g.length;){const S=u.one(g[b],f);if(S){if(b&&g[b-1].type==="break"&&(!Array.isArray(S)&&S.type==="text"&&(S.value=UN(S.value)),!Array.isArray(S)&&S.type==="element")){const k=S.children[0];k&&k.type==="text"&&(k.value=UN(k.value))}Array.isArray(S)?m.push(...S):m.push(S)}}}return m}}function _4(e,t){e.position&&(t.position=yH(e))}function O4(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const s="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:s}}n.type==="element"&&a&&Object.assign(n.properties,Ap(a)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function I4(e,t){const n=t.data||{},r="value"in t&&!(sy.call(n,"hProperties")||sy.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function D4(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
59
|
+
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
60
|
+
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
61
|
+
`}),n}function UN(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function PN(e,t){const n=N4(e,t),r=n.one(e,void 0),i=E4(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:`
|
|
62
|
+
`},i),a}function L4(e,t){return e&&"run"in e?async function(n,r){const i=PN(n,{file:r,...t});await e.run(i,r)}:function(n,r){return PN(n,{file:r,...e||t})}}function $N(e){if(e)throw e}var Kg,HN;function M4(){if(HN)return Kg;HN=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(p){return typeof Array.isArray=="function"?Array.isArray(p):t.call(p)==="[object Array]"},a=function(p){if(!p||t.call(p)!=="[object Object]")return!1;var f=e.call(p,"constructor"),m=p.constructor&&p.constructor.prototype&&e.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!f&&!m)return!1;var g;for(g in p);return typeof g>"u"||e.call(p,g)},s=function(p,f){n&&f.name==="__proto__"?n(p,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):p[f.name]=f.newValue},u=function(p,f){if(f==="__proto__")if(e.call(p,f)){if(r)return r(p,f).value}else return;return p[f]};return Kg=function c(){var p,f,m,g,b,S,k=arguments[0],v=1,w=arguments.length,x=!1;for(typeof k=="boolean"&&(x=k,k=arguments[1]||{},v=2),(k==null||typeof k!="object"&&typeof k!="function")&&(k={});v<w;++v)if(p=arguments[v],p!=null)for(f in p)m=u(k,f),g=u(p,f),k!==g&&(x&&g&&(a(g)||(b=i(g)))?(b?(b=!1,S=m&&i(m)?m:[]):S=m&&a(m)?m:{},s(k,{name:f,newValue:c(x,S,g)})):typeof g<"u"&&s(k,{name:f,newValue:g}));return k},Kg}var B4=M4();const Xg=Xu(B4);function ly(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function F4(){const e=[],t={run:n,use:r};return t;function n(...i){let a=-1;const s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);u(null,...i);function u(c,...p){const f=e[++a];let m=-1;if(c){s(c);return}for(;++m<i.length;)(p[m]===null||p[m]===void 0)&&(p[m]=i[m]);i=p,f?z4(f,u)(...p):s(null,...p)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function z4(e,t){let n;return r;function r(...s){const u=e.length>s.length;let c;u&&s.push(i);try{c=e.apply(this,s)}catch(p){const f=p;if(u&&n)throw f;return i(f)}u||(c&&c.then&&typeof c.then=="function"?c.then(a,i):c instanceof Error?i(c):a(c))}function i(s,...u){n||(n=!0,t(s,...u))}function a(s){i(null,s)}}const Mr={basename:U4,dirname:P4,extname:$4,join:H4,sep:"/"};function U4(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');ic(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,u=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else s<0&&(a=!0,s=i+1),u>-1&&(e.codePointAt(i)===t.codePointAt(u--)?u<0&&(r=i):(u=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function P4(e){if(ic(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function $4(e){ic(e);let t=e.length,n=-1,r=0,i=-1,a=0,s;for(;t--;){const u=e.codePointAt(t);if(u===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),u===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function H4(...e){let t=-1,n;for(;++t<e.length;)ic(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":j4(n)}function j4(e){ic(e);const t=e.codePointAt(0)===47;let n=G4(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function G4(e,t){let n="",r=0,i=-1,a=0,s=-1,u,c;for(;++s<=e.length;){if(s<e.length)u=e.codePointAt(s);else{if(u===47)break;u=47}if(u===47){if(!(i===s-1||a===1))if(i!==s-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf("/"),c!==n.length-1){c<0?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),i=s,a=0;continue}}else if(n.length>0){n="",r=0,i=s,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else u===46&&a>-1?a++:a=-1}return n}function ic(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const V4={cwd:q4};function q4(){return"/"}function uy(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function W4(e){if(typeof e=="string")e=new URL(e);else if(!uy(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Y4(e)}function Y4(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Zg=["history","path","basename","stem","extname","dirname"];class gD{constructor(t){let n;t?uy(t)?n={path:t}:typeof t=="string"||K4(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":V4.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Zg.length;){const a=Zg[r];a in n&&n[a]!==void 0&&n[a]!==null&&(this[a]=a==="history"?[...n[a]]:n[a])}let i;for(i in n)Zg.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Mr.basename(this.path):void 0}set basename(t){Jg(t,"basename"),Qg(t,"basename"),this.path=Mr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Mr.dirname(this.path):void 0}set dirname(t){jN(this.basename,"dirname"),this.path=Mr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Mr.extname(this.path):void 0}set extname(t){if(Qg(t,"extname"),jN(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Mr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){uy(t)&&(t=W4(t)),Jg(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Mr.basename(this.path,this.extname):void 0}set stem(t){Jg(t,"stem"),Qg(t,"stem"),this.path=Mr.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new cn(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Qg(e,t){if(e&&e.includes(Mr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Mr.sep+"`")}function Jg(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function jN(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function K4(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const X4=(function(e){const r=this.constructor.prototype,i=r[e],a=function(){return i.apply(a,arguments)};return Object.setPrototypeOf(a,r),a}),Z4={}.hasOwnProperty;class wE extends X4{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=F4()}copy(){const t=new wE;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Xg(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(nb("data",this.frozen),this.namespace[t]=n,this):Z4.call(this.namespace,t)&&this.namespace[t]||void 0:t?(nb("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Hd(t),r=this.parser||this.Parser;return eb("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),eb("process",this.parser||this.Parser),tb("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(a,s){const u=Hd(t),c=r.parse(u);r.run(c,u,function(f,m,g){if(f||!m||!g)return p(f);const b=m,S=r.stringify(b,g);eV(S)?g.value=S:g.result=S,p(f,g)});function p(f,m){f||!m?s(f):a?a(m):n(void 0,m)}}}processSync(t){let n=!1,r;return this.freeze(),eb("processSync",this.parser||this.Parser),tb("processSync",this.compiler||this.Compiler),this.process(t,i),VN("processSync","process",n),r;function i(a,s){n=!0,$N(a),r=s}}run(t,n,r){GN(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?a(void 0,r):new Promise(a);function a(s,u){const c=Hd(n);i.run(t,c,p);function p(f,m,g){const b=m||t;f?u(f):s?s(b):r(void 0,b,g)}}}runSync(t,n){let r=!1,i;return this.run(t,n,a),VN("runSync","run",r),i;function a(s,u){$N(s),i=u,r=!0}}stringify(t,n){this.freeze();const r=Hd(n),i=this.compiler||this.Compiler;return tb("stringify",i),GN(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(nb("use",this.frozen),t!=null)if(typeof t=="function")c(t,n);else if(typeof t=="object")Array.isArray(t)?u(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(p){if(typeof p=="function")c(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[f,...m]=p;c(f,m)}else s(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function s(p){if(!("plugins"in p)&&!("settings"in p))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");u(p.plugins),p.settings&&(i.settings=Xg(!0,i.settings,p.settings))}function u(p){let f=-1;if(p!=null)if(Array.isArray(p))for(;++f<p.length;){const m=p[f];a(m)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function c(p,f){let m=-1,g=-1;for(;++m<r.length;)if(r[m][0]===p){g=m;break}if(g===-1)r.push([p,...f]);else if(f.length>0){let[b,...S]=f;const k=r[g][1];ly(k)&&ly(b)&&(b=Xg(!0,k,b)),r[g]=[p,b,...S]}}}}const Q4=new wE().freeze();function eb(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function tb(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function nb(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function GN(e){if(!ly(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function VN(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Hd(e){return J4(e)?e:new gD(e)}function J4(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function eV(e){return typeof e=="string"||tV(e)}function tV(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const nV="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",qN=[],WN={allowDangerousHtml:!0},rV=/^(https?|ircs?|mailto|xmpp)$/i,iV=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function aV(e){const t=oV(e),n=sV(e);return lV(t.runSync(t.parse(n),n),e)}function oV(e){const t=e.rehypePlugins||qN,n=e.remarkPlugins||qN,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...WN}:WN;return Q4().use(PG).use(n).use(L4,r).use(t)}function sV(e){const t=e.children||"",n=new gD;return typeof t=="string"&&(n.value=t),n}function lV(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,s=t.skipHtml,u=t.unwrapDisallowed,c=t.urlTransform||uV;for(const f of iV)Object.hasOwn(t,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+nV+f.id,void 0);return vE(e,p),wH(e,{Fragment:B.Fragment,components:i,ignoreInvalidStyle:!0,jsx:B.jsx,jsxs:B.jsxs,passKeys:!0,passNode:!0});function p(f,m,g){if(f.type==="raw"&&g&&typeof m=="number")return s?g.children.splice(m,1):g.children[m]={type:"text",value:f.value},m;if(f.type==="element"){let b;for(b in qg)if(Object.hasOwn(qg,b)&&Object.hasOwn(f.properties,b)){const S=f.properties[b],k=qg[b];(k===null||k.includes(f.tagName))&&(f.properties[b]=c(String(S||""),b,f))}}if(f.type==="element"){let b=n?!n.includes(f.tagName):a?a.includes(f.tagName):!1;if(!b&&r&&typeof m=="number"&&(b=!r(f,m,g)),b&&g&&typeof m=="number")return u&&f.children?g.children.splice(m,1,...f.children):g.children.splice(m,1),m}}}function uV(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||rV.test(e.slice(0,t))?e:""}function YN(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function cV(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function dV(e,t,n){const i=Mf((n||{}).ignore||[]),a=pV(t);let s=-1;for(;++s<a.length;)mD(e,"text",u);function u(p,f){let m=-1,g;for(;++m<f.length;){const b=f[m],S=g?g.children:void 0;if(i(b,S?S.indexOf(b):void 0,g))return;g=b}if(g)return c(p,f)}function c(p,f){const m=f[f.length-1],g=a[s][0],b=a[s][1];let S=0;const v=m.children.indexOf(p);let w=!1,x=[];g.lastIndex=0;let A=g.exec(p.value);for(;A;){const D=A.index,O={index:A.index,input:A.input,stack:[...f,p]};let R=b(...A,O);if(typeof R=="string"&&(R=R.length>0?{type:"text",value:R}:void 0),R===!1?g.lastIndex=D+1:(S!==D&&x.push({type:"text",value:p.value.slice(S,D)}),Array.isArray(R)?x.push(...R):R&&x.push(R),S=D+A[0].length,w=!0),!g.global)break;A=g.exec(p.value)}return w?(S<p.value.length&&x.push({type:"text",value:p.value.slice(S)}),m.children.splice(v,1,...x)):x=[p],v+x.length}}function pV(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([fV(i[0]),hV(i[1])])}return t}function fV(e){return typeof e=="string"?new RegExp(cV(e),"g"):e}function hV(e){return typeof e=="function"?e:function(){return e}}const rb="phrasing",ib=["autolink","link","image","label"];function mV(){return{transforms:[vV],enter:{literalAutolink:bV,literalAutolinkEmail:ab,literalAutolinkHttp:ab,literalAutolinkWww:ab},exit:{literalAutolink:kV,literalAutolinkEmail:SV,literalAutolinkHttp:yV,literalAutolinkWww:EV}}}function gV(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:rb,notInConstruct:ib},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:rb,notInConstruct:ib},{character:":",before:"[ps]",after:"\\/",inConstruct:rb,notInConstruct:ib}]}}function bV(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function ab(e){this.config.enter.autolinkProtocol.call(this,e)}function yV(e){this.config.exit.autolinkProtocol.call(this,e)}function EV(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function SV(e){this.config.exit.autolinkEmail.call(this,e)}function kV(e){this.exit(e)}function vV(e){dV(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,wV],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),TV]],{ignore:["link","linkReference"]})}function wV(e,t,n,r,i){let a="";if(!bD(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!xV(n)))return!1;const s=AV(n+r);if(!s[0])return!1;const u={type:"link",title:null,url:a+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[u,{type:"text",value:s[1]}]:u}function TV(e,t,n,r){return!bD(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function xV(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function AV(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=YN(e,"(");let a=YN(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function bD(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||bo(n)||If(n))&&(!t||n!==47)}yD.peek=MV;function CV(){this.buffer()}function RV(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function NV(){this.buffer()}function _V(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function OV(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=xr(this.sliceSerialize(e)).toLowerCase(),n.label=t}function IV(e){this.exit(e)}function DV(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=xr(this.sliceSerialize(e)).toLowerCase(),n.label=t}function LV(e){this.exit(e)}function MV(){return"["}function yD(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const s=n.enter("footnoteReference"),u=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),u(),s(),a+=i.move("]"),a}function BV(){return{enter:{gfmFootnoteCallString:CV,gfmFootnoteCall:RV,gfmFootnoteDefinitionLabelString:NV,gfmFootnoteDefinition:_V},exit:{gfmFootnoteCallString:OV,gfmFootnoteCall:IV,gfmFootnoteDefinitionLabelString:DV,gfmFootnoteDefinition:LV}}}function FV(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:yD},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,a,s){const u=a.createTracker(s);let c=u.move("[^");const p=a.enter("footnoteDefinition"),f=a.enter("label");return c+=u.move(a.safe(a.associationId(r),{before:c,after:"]"})),f(),c+=u.move("]:"),r.children&&r.children.length>0&&(u.shift(4),c+=u.move((t?`
|
|
63
|
+
`:" ")+a.indentLines(a.containerFlow(r,u.current()),t?ED:zV))),p(),c}}function zV(e,t,n){return t===0?e:ED(e,t,n)}function ED(e,t,n){return(n?"":" ")+e}const UV=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];SD.peek=GV;function PV(){return{canContainEols:["delete"],enter:{strikethrough:HV},exit:{strikethrough:jV}}}function $V(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:UV}],handlers:{delete:SD}}}function HV(e){this.enter({type:"delete",children:[]},e)}function jV(e){this.exit(e)}function SD(e,t,n,r){const i=n.createTracker(r),a=n.enter("strikethrough");let s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),a(),s}function GV(){return"~"}function VV(e){return e.length}function qV(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||VV,a=[],s=[],u=[],c=[];let p=0,f=-1;for(;++f<e.length;){const k=[],v=[];let w=-1;for(e[f].length>p&&(p=e[f].length);++w<e[f].length;){const x=WV(e[f][w]);if(n.alignDelimiters!==!1){const A=i(x);v[w]=A,(c[w]===void 0||A>c[w])&&(c[w]=A)}k.push(x)}s[f]=k,u[f]=v}let m=-1;if(typeof r=="object"&&"length"in r)for(;++m<p;)a[m]=KN(r[m]);else{const k=KN(r);for(;++m<p;)a[m]=k}m=-1;const g=[],b=[];for(;++m<p;){const k=a[m];let v="",w="";k===99?(v=":",w=":"):k===108?v=":":k===114&&(w=":");let x=n.alignDelimiters===!1?1:Math.max(1,c[m]-v.length-w.length);const A=v+"-".repeat(x)+w;n.alignDelimiters!==!1&&(x=v.length+x+w.length,x>c[m]&&(c[m]=x),b[m]=x),g[m]=A}s.splice(1,0,g),u.splice(1,0,b),f=-1;const S=[];for(;++f<s.length;){const k=s[f],v=u[f];m=-1;const w=[];for(;++m<p;){const x=k[m]||"";let A="",D="";if(n.alignDelimiters!==!1){const O=c[m]-(v[m]||0),R=a[m];R===114?A=" ".repeat(O):R===99?O%2?(A=" ".repeat(O/2+.5),D=" ".repeat(O/2-.5)):(A=" ".repeat(O/2),D=A):D=" ".repeat(O)}n.delimiterStart!==!1&&!m&&w.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&x==="")&&(n.delimiterStart!==!1||m)&&w.push(" "),n.alignDelimiters!==!1&&w.push(A),w.push(x),n.alignDelimiters!==!1&&w.push(D),n.padding!==!1&&w.push(" "),(n.delimiterEnd!==!1||m!==p-1)&&w.push("|")}S.push(n.delimiterEnd===!1?w.join("").replace(/ +$/,""):w.join(""))}return S.join(`
|
|
64
|
+
`)}function WV(e){return e==null?"":String(e)}function KN(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function YV(e,t,n,r){const i=n.enter("blockquote"),a=n.createTracker(r);a.move("> "),a.shift(2);const s=n.indentLines(n.containerFlow(e,a.current()),KV);return i(),s}function KV(e,t,n){return">"+(n?"":" ")+e}function XV(e,t){return XN(e,t.inConstruct,!0)&&!XN(e,t.notInConstruct,!1)}function XN(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function ZN(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
|
|
65
|
+
`&&XV(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
66
|
+
`}function ZV(e,t){const n=String(e);let r=n.indexOf(t),i=r,a=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++a>s&&(s=a):a=1,i=r+t.length,r=n.indexOf(t,i);return s}function QV(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function JV(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function eq(e,t,n,r){const i=JV(n),a=e.value||"",s=i==="`"?"GraveAccent":"Tilde";if(QV(e,n)){const m=n.enter("codeIndented"),g=n.indentLines(a,tq);return m(),g}const u=n.createTracker(r),c=i.repeat(Math.max(ZV(a,i)+1,3)),p=n.enter("codeFenced");let f=u.move(c);if(e.lang){const m=n.enter(`codeFencedLang${s}`);f+=u.move(n.safe(e.lang,{before:f,after:" ",encode:["`"],...u.current()})),m()}if(e.lang&&e.meta){const m=n.enter(`codeFencedMeta${s}`);f+=u.move(" "),f+=u.move(n.safe(e.meta,{before:f,after:`
|
|
67
|
+
`,encode:["`"],...u.current()})),m()}return f+=u.move(`
|
|
68
|
+
`),a&&(f+=u.move(a+`
|
|
69
|
+
`)),f+=u.move(c),p(),f}function tq(e,t,n){return(n?"":" ")+e}function TE(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function nq(e,t,n,r){const i=TE(n),a=i==='"'?"Quote":"Apostrophe",s=n.enter("definition");let u=n.enter("label");const c=n.createTracker(r);let p=c.move("[");return p+=c.move(n.safe(n.associationId(e),{before:p,after:"]",...c.current()})),p+=c.move("]: "),u(),!e.url||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),p+=c.move("<"),p+=c.move(n.safe(e.url,{before:p,after:">",...c.current()})),p+=c.move(">")):(u=n.enter("destinationRaw"),p+=c.move(n.safe(e.url,{before:p,after:e.title?" ":`
|
|
70
|
+
`,...c.current()}))),u(),e.title&&(u=n.enter(`title${a}`),p+=c.move(" "+i),p+=c.move(n.safe(e.title,{before:p,after:i,...c.current()})),p+=c.move(i),u()),s(),p}function rq(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Fu(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Cp(e,t,n){const r=Fs(e),i=Fs(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}kD.peek=iq;function kD(e,t,n,r){const i=rq(n),a=n.enter("emphasis"),s=n.createTracker(r),u=s.move(i);let c=s.move(n.containerPhrasing(e,{after:i,before:u,...s.current()}));const p=c.charCodeAt(0),f=Cp(r.before.charCodeAt(r.before.length-1),p,i);f.inside&&(c=Fu(p)+c.slice(1));const m=c.charCodeAt(c.length-1),g=Cp(r.after.charCodeAt(0),m,i);g.inside&&(c=c.slice(0,-1)+Fu(m));const b=s.move(i);return a(),n.attentionEncodeSurroundingInfo={after:g.outside,before:f.outside},u+c+b}function iq(e,t,n){return n.options.emphasis||"*"}function aq(e,t){let n=!1;return vE(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,oy}),!!((!e.depth||e.depth<3)&&gE(e)&&(t.options.setext||n))}function oq(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(aq(e,n)){const f=n.enter("headingSetext"),m=n.enter("phrasing"),g=n.containerPhrasing(e,{...a.current(),before:`
|
|
71
|
+
`,after:`
|
|
72
|
+
`});return m(),f(),g+`
|
|
73
|
+
`+(i===1?"=":"-").repeat(g.length-(Math.max(g.lastIndexOf("\r"),g.lastIndexOf(`
|
|
74
|
+
`))+1))}const s="#".repeat(i),u=n.enter("headingAtx"),c=n.enter("phrasing");a.move(s+" ");let p=n.containerPhrasing(e,{before:"# ",after:`
|
|
75
|
+
`,...a.current()});return/^[\t ]/.test(p)&&(p=Fu(p.charCodeAt(0))+p.slice(1)),p=p?s+" "+p:s,n.options.closeAtx&&(p+=" "+s),c(),u(),p}vD.peek=sq;function vD(e){return e.value||""}function sq(){return"<"}wD.peek=lq;function wD(e,t,n,r){const i=TE(n),a=i==='"'?"Quote":"Apostrophe",s=n.enter("image");let u=n.enter("label");const c=n.createTracker(r);let p=c.move("![");return p+=c.move(n.safe(e.alt,{before:p,after:"]",...c.current()})),p+=c.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),p+=c.move("<"),p+=c.move(n.safe(e.url,{before:p,after:">",...c.current()})),p+=c.move(">")):(u=n.enter("destinationRaw"),p+=c.move(n.safe(e.url,{before:p,after:e.title?" ":")",...c.current()}))),u(),e.title&&(u=n.enter(`title${a}`),p+=c.move(" "+i),p+=c.move(n.safe(e.title,{before:p,after:i,...c.current()})),p+=c.move(i),u()),p+=c.move(")"),s(),p}function lq(){return"!"}TD.peek=uq;function TD(e,t,n,r){const i=e.referenceType,a=n.enter("imageReference");let s=n.enter("label");const u=n.createTracker(r);let c=u.move("![");const p=n.safe(e.alt,{before:c,after:"]",...u.current()});c+=u.move(p+"]["),s();const f=n.stack;n.stack=[],s=n.enter("reference");const m=n.safe(n.associationId(e),{before:c,after:"]",...u.current()});return s(),n.stack=f,a(),i==="full"||!p||p!==m?c+=u.move(m+"]"):i==="shortcut"?c=c.slice(0,-1):c+=u.move("]"),c}function uq(){return"!"}xD.peek=cq;function xD(e,t,n){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<n.unsafe.length;){const s=n.unsafe[a],u=n.compilePattern(s);let c;if(s.atBreak)for(;c=u.exec(r);){let p=c.index;r.charCodeAt(p)===10&&r.charCodeAt(p-1)===13&&p--,r=r.slice(0,p)+" "+r.slice(c.index+1)}}return i+r+i}function cq(){return"`"}function AD(e,t){const n=gE(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}CD.peek=dq;function CD(e,t,n,r){const i=TE(n),a=i==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let u,c;if(AD(e,n)){const f=n.stack;n.stack=[],u=n.enter("autolink");let m=s.move("<");return m+=s.move(n.containerPhrasing(e,{before:m,after:">",...s.current()})),m+=s.move(">"),u(),n.stack=f,m}u=n.enter("link"),c=n.enter("label");let p=s.move("[");return p+=s.move(n.containerPhrasing(e,{before:p,after:"](",...s.current()})),p+=s.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),p+=s.move("<"),p+=s.move(n.safe(e.url,{before:p,after:">",...s.current()})),p+=s.move(">")):(c=n.enter("destinationRaw"),p+=s.move(n.safe(e.url,{before:p,after:e.title?" ":")",...s.current()}))),c(),e.title&&(c=n.enter(`title${a}`),p+=s.move(" "+i),p+=s.move(n.safe(e.title,{before:p,after:i,...s.current()})),p+=s.move(i),c()),p+=s.move(")"),u(),p}function dq(e,t,n){return AD(e,n)?"<":"["}RD.peek=pq;function RD(e,t,n,r){const i=e.referenceType,a=n.enter("linkReference");let s=n.enter("label");const u=n.createTracker(r);let c=u.move("[");const p=n.containerPhrasing(e,{before:c,after:"]",...u.current()});c+=u.move(p+"]["),s();const f=n.stack;n.stack=[],s=n.enter("reference");const m=n.safe(n.associationId(e),{before:c,after:"]",...u.current()});return s(),n.stack=f,a(),i==="full"||!p||p!==m?c+=u.move(m+"]"):i==="shortcut"?c=c.slice(0,-1):c+=u.move("]"),c}function pq(){return"["}function xE(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function fq(e){const t=xE(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function hq(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function ND(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function mq(e,t,n,r){const i=n.enter("list"),a=n.bulletCurrent;let s=e.ordered?hq(n):xE(n);const u=e.ordered?s==="."?")":".":fq(n);let c=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&f&&(!f.children||!f.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),ND(n)===s&&f){let m=-1;for(;++m<e.children.length;){const g=e.children[m];if(g&&g.type==="listItem"&&g.children&&g.children[0]&&g.children[0].type==="thematicBreak"){c=!0;break}}}}c&&(s=u),n.bulletCurrent=s;const p=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=a,i(),p}function gq(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function bq(e,t,n,r){const i=gq(n);let a=n.bulletCurrent||xE(n);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let s=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const u=n.createTracker(r);u.move(a+" ".repeat(s-a.length)),u.shift(s);const c=n.enter("listItem"),p=n.indentLines(n.containerFlow(e,u.current()),f);return c(),p;function f(m,g,b){return g?(b?"":" ".repeat(s))+m:(b?a:a+" ".repeat(s-a.length))+m}}function yq(e,t,n,r){const i=n.enter("paragraph"),a=n.enter("phrasing"),s=n.containerPhrasing(e,r);return a(),i(),s}const Eq=Mf(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Sq(e,t,n,r){return(e.children.some(function(s){return Eq(s)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function kq(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}_D.peek=vq;function _D(e,t,n,r){const i=kq(n),a=n.enter("strong"),s=n.createTracker(r),u=s.move(i+i);let c=s.move(n.containerPhrasing(e,{after:i,before:u,...s.current()}));const p=c.charCodeAt(0),f=Cp(r.before.charCodeAt(r.before.length-1),p,i);f.inside&&(c=Fu(p)+c.slice(1));const m=c.charCodeAt(c.length-1),g=Cp(r.after.charCodeAt(0),m,i);g.inside&&(c=c.slice(0,-1)+Fu(m));const b=s.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:g.outside,before:f.outside},u+c+b}function vq(e,t,n){return n.options.strong||"*"}function wq(e,t,n,r){return n.safe(e.value,r)}function Tq(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function xq(e,t,n){const r=(ND(n)+(n.options.ruleSpaces?" ":"")).repeat(Tq(n));return n.options.ruleSpaces?r.slice(0,-1):r}const OD={blockquote:YV,break:ZN,code:eq,definition:nq,emphasis:kD,hardBreak:ZN,heading:oq,html:vD,image:wD,imageReference:TD,inlineCode:xD,link:CD,linkReference:RD,list:mq,listItem:bq,paragraph:yq,root:Sq,strong:_D,text:wq,thematicBreak:xq};function Aq(){return{enter:{table:Cq,tableData:QN,tableHeader:QN,tableRow:Nq},exit:{codeText:_q,table:Rq,tableData:ob,tableHeader:ob,tableRow:ob}}}function Cq(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function Rq(e){this.exit(e),this.data.inTable=void 0}function Nq(e){this.enter({type:"tableRow",children:[]},e)}function ob(e){this.exit(e)}function QN(e){this.enter({type:"tableCell",children:[]},e)}function _q(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Oq));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Oq(e,t){return t==="|"?t:e}function Iq(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
76
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:g,table:s,tableCell:c,tableRow:u}};function s(b,S,k,v){return p(f(b,k,v),b.align)}function u(b,S,k,v){const w=m(b,k,v),x=p([w]);return x.slice(0,x.indexOf(`
|
|
77
|
+
`))}function c(b,S,k,v){const w=k.enter("tableCell"),x=k.enter("phrasing"),A=k.containerPhrasing(b,{...v,before:a,after:a});return x(),w(),A}function p(b,S){return qV(b,{align:S,alignDelimiters:r,padding:n,stringLength:i})}function f(b,S,k){const v=b.children;let w=-1;const x=[],A=S.enter("table");for(;++w<v.length;)x[w]=m(v[w],S,k);return A(),x}function m(b,S,k){const v=b.children;let w=-1;const x=[],A=S.enter("tableRow");for(;++w<v.length;)x[w]=c(v[w],b,S,k);return A(),x}function g(b,S,k){let v=OD.inlineCode(b,S,k);return k.stack.includes("tableCell")&&(v=v.replace(/\|/g,"\\$&")),v}}function Dq(){return{exit:{taskListCheckValueChecked:JN,taskListCheckValueUnchecked:JN,paragraph:Mq}}}function Lq(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Bq}}}function JN(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function Mq(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let a=-1,s;for(;++a<i.length;){const u=i[a];if(u.type==="paragraph"){s=u;break}}s===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Bq(e,t,n,r){const i=e.children[0],a=typeof e.checked=="boolean"&&i&&i.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",u=n.createTracker(r);a&&u.move(s);let c=OD.listItem(e,t,n,{...r,...u.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,p)),c;function p(f){return f+s}}function Fq(){return[mV(),BV(),PV(),Aq(),Dq()]}function zq(e){return{extensions:[gV(),FV(e),$V(),Iq(e),Lq()]}}const Uq={tokenize:Vq,partial:!0},ID={tokenize:qq,partial:!0},DD={tokenize:Wq,partial:!0},LD={tokenize:Yq,partial:!0},Pq={tokenize:Kq,partial:!0},MD={name:"wwwAutolink",tokenize:jq,previous:FD},BD={name:"protocolAutolink",tokenize:Gq,previous:zD},Ai={name:"emailAutolink",tokenize:Hq,previous:UD},Vr={};function $q(){return{text:Vr}}let Ja=48;for(;Ja<123;)Vr[Ja]=Ai,Ja++,Ja===58?Ja=65:Ja===91&&(Ja=97);Vr[43]=Ai;Vr[45]=Ai;Vr[46]=Ai;Vr[95]=Ai;Vr[72]=[Ai,BD];Vr[104]=[Ai,BD];Vr[87]=[Ai,MD];Vr[119]=[Ai,MD];function Hq(e,t,n){const r=this;let i,a;return s;function s(m){return!cy(m)||!UD.call(r,r.previous)||AE(r.events)?n(m):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),u(m))}function u(m){return cy(m)?(e.consume(m),u):m===64?(e.consume(m),c):n(m)}function c(m){return m===46?e.check(Pq,f,p)(m):m===45||m===95||ln(m)?(a=!0,e.consume(m),c):f(m)}function p(m){return e.consume(m),i=!0,c}function f(m){return a&&i&&bn(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(m)):n(m)}}function jq(e,t,n){const r=this;return i;function i(s){return s!==87&&s!==119||!FD.call(r,r.previous)||AE(r.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Uq,e.attempt(ID,e.attempt(DD,a),n),n)(s))}function a(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function Gq(e,t,n){const r=this;let i="",a=!1;return s;function s(m){return(m===72||m===104)&&zD.call(r,r.previous)&&!AE(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(m),e.consume(m),u):n(m)}function u(m){if(bn(m)&&i.length<5)return i+=String.fromCodePoint(m),e.consume(m),u;if(m===58){const g=i.toLowerCase();if(g==="http"||g==="https")return e.consume(m),c}return n(m)}function c(m){return m===47?(e.consume(m),a?p:(a=!0,c)):n(m)}function p(m){return m===null||Tp(m)||ct(m)||bo(m)||If(m)?n(m):e.attempt(ID,e.attempt(DD,f),n)(m)}function f(m){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(m)}}function Vq(e,t,n){let r=0;return i;function i(s){return(s===87||s===119)&&r<3?(r++,e.consume(s),i):s===46&&r===3?(e.consume(s),a):n(s)}function a(s){return s===null?n(s):t(s)}}function qq(e,t,n){let r,i,a;return s;function s(p){return p===46||p===95?e.check(LD,c,u)(p):p===null||ct(p)||bo(p)||p!==45&&If(p)?c(p):(a=!0,e.consume(p),s)}function u(p){return p===95?r=!0:(i=r,r=void 0),e.consume(p),s}function c(p){return i||r||!a?n(p):t(p)}}function Wq(e,t){let n=0,r=0;return i;function i(s){return s===40?(n++,e.consume(s),i):s===41&&r<n?a(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(LD,t,a)(s):s===null||ct(s)||bo(s)?t(s):(e.consume(s),i)}function a(s){return s===41&&r++,e.consume(s),i}}function Yq(e,t,n){return r;function r(u){return u===33||u===34||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===63||u===95||u===126?(e.consume(u),r):u===38?(e.consume(u),a):u===93?(e.consume(u),i):u===60||u===null||ct(u)||bo(u)?t(u):n(u)}function i(u){return u===null||u===40||u===91||ct(u)||bo(u)?t(u):r(u)}function a(u){return bn(u)?s(u):n(u)}function s(u){return u===59?(e.consume(u),r):bn(u)?(e.consume(u),s):n(u)}}function Kq(e,t,n){return r;function r(a){return e.consume(a),i}function i(a){return ln(a)?n(a):t(a)}}function FD(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ct(e)}function zD(e){return!bn(e)}function UD(e){return!(e===47||cy(e))}function cy(e){return e===43||e===45||e===46||e===95||ln(e)}function AE(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Xq={tokenize:i6,partial:!0};function Zq(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:t6,continuation:{tokenize:n6},exit:r6}},text:{91:{name:"gfmFootnoteCall",tokenize:e6},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Qq,resolveTo:Jq}}}}function Qq(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const c=r.events[i][1];if(c.type==="labelImage"){s=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return u;function u(c){if(!s||!s._balanced)return n(c);const p=xr(r.sliceSerialize({start:s.end,end:r.now()}));return p.codePointAt(0)!==94||!a.includes(p.slice(1))?n(c):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),t(c))}}function Jq(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},u=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...u),e}function e6(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,s;return u;function u(m){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),c}function c(m){return m!==94?n(m):(e.enter("gfmFootnoteCallMarker"),e.consume(m),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",p)}function p(m){if(a>999||m===93&&!s||m===null||m===91||ct(m))return n(m);if(m===93){e.exit("chunkString");const g=e.exit("gfmFootnoteCallString");return i.includes(xr(r.sliceSerialize(g)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(m)}return ct(m)||(s=!0),a++,e.consume(m),m===92?f:p}function f(m){return m===91||m===92||m===93?(e.consume(m),a++,p):p(m)}}function t6(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,s=0,u;return c;function c(S){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionLabelMarker"),p}function p(S){return S===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(S)}function f(S){if(s>999||S===93&&!u||S===null||S===91||ct(S))return n(S);if(S===93){e.exit("chunkString");const k=e.exit("gfmFootnoteDefinitionLabelString");return a=xr(r.sliceSerialize(k)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),g}return ct(S)||(u=!0),s++,e.consume(S),S===92?m:f}function m(S){return S===91||S===92||S===93?(e.consume(S),s++,f):f(S)}function g(S){return S===58?(e.enter("definitionMarker"),e.consume(S),e.exit("definitionMarker"),i.includes(a)||i.push(a),We(e,b,"gfmFootnoteDefinitionWhitespace")):n(S)}function b(S){return t(S)}}function n6(e,t,n){return e.check(rc,t,e.attempt(Xq,t,n))}function r6(e){e.exit("gfmFootnoteDefinition")}function i6(e,t,n){const r=this;return We(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(a):n(a)}}function a6(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(s,u){let c=-1;for(;++c<s.length;)if(s[c][0]==="enter"&&s[c][1].type==="strikethroughSequenceTemporary"&&s[c][1]._close){let p=c;for(;p--;)if(s[p][0]==="exit"&&s[p][1].type==="strikethroughSequenceTemporary"&&s[p][1]._open&&s[c][1].end.offset-s[c][1].start.offset===s[p][1].end.offset-s[p][1].start.offset){s[c][1].type="strikethroughSequence",s[p][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},s[p][1].start),end:Object.assign({},s[c][1].end)},m={type:"strikethroughText",start:Object.assign({},s[p][1].end),end:Object.assign({},s[c][1].start)},g=[["enter",f,u],["enter",s[p][1],u],["exit",s[p][1],u],["enter",m,u]],b=u.parser.constructs.insideSpan.null;b&&Wn(g,g.length,0,Df(b,s.slice(p+1,c),u)),Wn(g,g.length,0,[["exit",m,u],["enter",s[c][1],u],["exit",s[c][1],u],["exit",f,u]]),Wn(s,p-1,c-p+3,g),c=p+g.length-2;break}}for(c=-1;++c<s.length;)s[c][1].type==="strikethroughSequenceTemporary"&&(s[c][1].type="data");return s}function a(s,u,c){const p=this.previous,f=this.events;let m=0;return g;function g(S){return p===126&&f[f.length-1][1].type!=="characterEscape"?c(S):(s.enter("strikethroughSequenceTemporary"),b(S))}function b(S){const k=Fs(p);if(S===126)return m>1?c(S):(s.consume(S),m++,b);if(m<2&&!n)return c(S);const v=s.exit("strikethroughSequenceTemporary"),w=Fs(S);return v._open=!w||w===2&&!!k,v._close=!k||k===2&&!!w,u(S)}}}class o6{constructor(){this.map=[]}add(t,n,r){s6(this,t,n,r)}consume(t){if(this.map.sort(function(a,s){return a[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const a of i)t.push(a);i=r.pop()}this.map.length=0}}function s6(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function l6(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=r.length-1;r[a]=r[a]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function u6(){return{flow:{null:{name:"table",tokenize:c6,resolveAll:d6}}}}function c6(e,t,n){const r=this;let i=0,a=0,s;return u;function u(F){let Q=r.events.length-1;for(;Q>-1;){const J=r.events[Q][1].type;if(J==="lineEnding"||J==="linePrefix")Q--;else break}const q=Q>-1?r.events[Q][1].type:null,te=q==="tableHead"||q==="tableRow"?R:c;return te===R&&r.parser.lazy[r.now().line]?n(F):te(F)}function c(F){return e.enter("tableHead"),e.enter("tableRow"),p(F)}function p(F){return F===124||(s=!0,a+=1),f(F)}function f(F){return F===null?n(F):Ae(F)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),b):n(F):He(F)?We(e,f,"whitespace")(F):(a+=1,s&&(s=!1,i+=1),F===124?(e.enter("tableCellDivider"),e.consume(F),e.exit("tableCellDivider"),s=!0,f):(e.enter("data"),m(F)))}function m(F){return F===null||F===124||ct(F)?(e.exit("data"),f(F)):(e.consume(F),F===92?g:m)}function g(F){return F===92||F===124?(e.consume(F),m):m(F)}function b(F){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(F):(e.enter("tableDelimiterRow"),s=!1,He(F)?We(e,S,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):S(F))}function S(F){return F===45||F===58?v(F):F===124?(s=!0,e.enter("tableCellDivider"),e.consume(F),e.exit("tableCellDivider"),k):O(F)}function k(F){return He(F)?We(e,v,"whitespace")(F):v(F)}function v(F){return F===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(F),e.exit("tableDelimiterMarker"),w):F===45?(a+=1,w(F)):F===null||Ae(F)?D(F):O(F)}function w(F){return F===45?(e.enter("tableDelimiterFiller"),x(F)):O(F)}function x(F){return F===45?(e.consume(F),x):F===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(F),e.exit("tableDelimiterMarker"),A):(e.exit("tableDelimiterFiller"),A(F))}function A(F){return He(F)?We(e,D,"whitespace")(F):D(F)}function D(F){return F===124?S(F):F===null||Ae(F)?!s||i!==a?O(F):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(F)):O(F)}function O(F){return n(F)}function R(F){return e.enter("tableRow"),M(F)}function M(F){return F===124?(e.enter("tableCellDivider"),e.consume(F),e.exit("tableCellDivider"),M):F===null||Ae(F)?(e.exit("tableRow"),t(F)):He(F)?We(e,M,"whitespace")(F):(e.enter("data"),U(F))}function U(F){return F===null||F===124||ct(F)?(e.exit("data"),M(F)):(e.consume(F),F===92?G:U)}function G(F){return F===92||F===124?(e.consume(F),U):U(F)}}function d6(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],s=[0,0,0,0],u=!1,c=0,p,f,m;const g=new o6;for(;++n<e.length;){const b=e[n],S=b[1];b[0]==="enter"?S.type==="tableHead"?(u=!1,c!==0&&(e_(g,t,c,p,f),f=void 0,c=0),p={type:"table",start:Object.assign({},S.start),end:Object.assign({},S.end)},g.add(n,0,[["enter",p,t]])):S.type==="tableRow"||S.type==="tableDelimiterRow"?(r=!0,m=void 0,a=[0,0,0,0],s=[0,n+1,0,0],u&&(u=!1,f={type:"tableBody",start:Object.assign({},S.start),end:Object.assign({},S.end)},g.add(n,0,[["enter",f,t]])),i=S.type==="tableDelimiterRow"?2:f?3:1):i&&(S.type==="data"||S.type==="tableDelimiterMarker"||S.type==="tableDelimiterFiller")?(r=!1,s[2]===0&&(a[1]!==0&&(s[0]=s[1],m=jd(g,t,a,i,void 0,m),a=[0,0,0,0]),s[2]=n)):S.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(s[0]=s[1],m=jd(g,t,a,i,void 0,m)),a=s,s=[a[1],n,0,0])):S.type==="tableHead"?(u=!0,c=n):S.type==="tableRow"||S.type==="tableDelimiterRow"?(c=n,a[1]!==0?(s[0]=s[1],m=jd(g,t,a,i,n,m)):s[1]!==0&&(m=jd(g,t,s,i,n,m)),i=0):i&&(S.type==="data"||S.type==="tableDelimiterMarker"||S.type==="tableDelimiterFiller")&&(s[3]=n)}for(c!==0&&e_(g,t,c,p,f),g.consume(t.events),n=-1;++n<t.events.length;){const b=t.events[n];b[0]==="enter"&&b[1].type==="table"&&(b[1]._align=l6(t.events,n))}return e}function jd(e,t,n,r,i,a){const s=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",u="tableContent";n[0]!==0&&(a.end=Object.assign({},xs(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const c=xs(t.events,n[1]);if(a={type:s,start:Object.assign({},c),end:Object.assign({},c)},e.add(n[1],0,[["enter",a,t]]),n[2]!==0){const p=xs(t.events,n[2]),f=xs(t.events,n[3]),m={type:u,start:Object.assign({},p),end:Object.assign({},f)};if(e.add(n[2],0,[["enter",m,t]]),r!==2){const g=t.events[n[2]],b=t.events[n[3]];if(g[1].end=Object.assign({},b[1].end),g[1].type="chunkText",g[1].contentType="text",n[3]>n[2]+1){const S=n[2]+1,k=n[3]-n[2]-1;e.add(S,k,[])}}e.add(n[3]+1,0,[["exit",m,t]])}return i!==void 0&&(a.end=Object.assign({},xs(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function e_(e,t,n,r,i){const a=[],s=xs(t.events,n);i&&(i.end=Object.assign({},s),a.push(["exit",i,t])),r.end=Object.assign({},s),a.push(["exit",r,t]),e.add(n+1,0,a)}function xs(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const p6={name:"tasklistCheck",tokenize:h6};function f6(){return{text:{91:p6}}}function h6(e,t,n){const r=this;return i;function i(c){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(c):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),a)}function a(c){return ct(c)?(e.enter("taskListCheckValueUnchecked"),e.consume(c),e.exit("taskListCheckValueUnchecked"),s):c===88||c===120?(e.enter("taskListCheckValueChecked"),e.consume(c),e.exit("taskListCheckValueChecked"),s):n(c)}function s(c){return c===93?(e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),u):n(c)}function u(c){return Ae(c)?t(c):He(c)?e.check({tokenize:m6},t,n)(c):n(c)}}function m6(e,t,n){return We(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function g6(e){return X1([$q(),Zq(),a6(e),u6(),f6()])}const b6={};function y6(e){const t=this,n=e||b6,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(g6(n)),a.push(Fq()),s.push(zq(n))}function E6(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function S6(e,t){if(e==null)return{};var n,r,i=E6(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function dy(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 k6(e){if(Array.isArray(e))return dy(e)}function v6(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function w6(e,t){if(e){if(typeof e=="string")return dy(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)?dy(e,t):void 0}}function T6(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
78
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function py(e){return k6(e)||v6(e)||w6(e)||T6()}function zu(e){"@babel/helpers - typeof";return zu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zu(e)}function x6(e,t){if(zu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(zu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function A6(e){var t=x6(e,"string");return zu(t)=="symbol"?t:t+""}function PD(e,t,n){return(t=A6(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fy(){return fy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fy.apply(null,arguments)}function t_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ns(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?t_(Object(n),!0).forEach(function(r){PD(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function C6(e){var t=e.length;if(t===0||t===1)return e;if(t===2)return[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])];if(t===3)return[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])];if(t>=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}var sb={};function R6(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return sb[t]||(sb[t]=C6(e)),sb[t]}function N6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=e.filter(function(a){return a!=="token"}),i=R6(r);return i.reduce(function(a,s){return Ns(Ns({},a),n[s])},t)}function n_(e){return e.join(" ")}function _6(e,t){var n=0;return function(r){return n+=1,r.map(function(i,a){return $D({node:i,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(a)})})}}function $D(e){var t=e.node,n=e.stylesheet,r=e.style,i=r===void 0?{}:r,a=e.useInlineStyles,s=e.key,u=t.properties,c=t.type,p=t.tagName,f=t.value;if(c==="text")return f;if(p){var m=_6(n,a),g;if(!a)g=Ns(Ns({},u),{},{className:n_(u.className)});else{var b=Object.keys(n).reduce(function(w,x){return x.split(".").forEach(function(A){w.includes(A)||w.push(A)}),w},[]),S=u.className&&u.className.includes("token")?["token"]:[],k=u.className&&S.concat(u.className.filter(function(w){return!b.includes(w)}));g=Ns(Ns({},u),{},{className:n_(k)||void 0,style:N6(u.className,Object.assign({},u.style,i),n)})}var v=m(t.children);return gt.createElement(p,fy({key:s},g),v)}}const O6=(function(e,t){var n=e.listLanguages();return n.indexOf(t)!==-1});var I6=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function r_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function da(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?r_(Object(n),!0).forEach(function(r){PD(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var D6=/\n/g;function L6(e){return e.match(D6)}function M6(e){var t=e.lines,n=e.startingLineNumber,r=e.style;return t.map(function(i,a){var s=a+n;return gt.createElement("span",{key:"line-".concat(a),className:"react-syntax-highlighter-line-number",style:typeof r=="function"?r(s):r},"".concat(s,`
|
|
79
|
+
`))})}function B6(e){var t=e.codeString,n=e.codeStyle,r=e.containerStyle,i=r===void 0?{float:"left",paddingRight:"10px"}:r,a=e.numberStyle,s=a===void 0?{}:a,u=e.startingLineNumber;return gt.createElement("code",{style:Object.assign({},n,i)},M6({lines:t.replace(/\n$/,"").split(`
|
|
80
|
+
`),style:s,startingLineNumber:u}))}function F6(e){return"".concat(e.toString().length,".25em")}function HD(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function jD(e,t,n){var r={display:"inline-block",minWidth:F6(n),paddingRight:"1em",textAlign:"right",userSelect:"none"},i=typeof e=="function"?e(t):e,a=da(da({},r),i);return a}function lp(e){var t=e.children,n=e.lineNumber,r=e.lineNumberStyle,i=e.largestLineNumber,a=e.showInlineLineNumbers,s=e.lineProps,u=s===void 0?{}:s,c=e.className,p=c===void 0?[]:c,f=e.showLineNumbers,m=e.wrapLongLines,g=e.wrapLines,b=g===void 0?!1:g,S=b?da({},typeof u=="function"?u(n):u):{};if(S.className=S.className?[].concat(py(S.className.trim().split(/\s+/)),py(p)):p,n&&a){var k=jD(r,n,i);t.unshift(HD(n,k))}return m&f&&(S.style=da({display:"flex"},S.style)),{type:"element",tagName:"span",properties:S,children:t}}function GD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];e.length===void 0&&(e=[e]);for(var r=0;r<e.length;r++){var i=e[r];if(i.type==="text")n.push(lp({children:[i],className:py(new Set(t))}));else if(i.children){var a,s=t.concat(((a=i.properties)===null||a===void 0?void 0:a.className)||[]);GD(i.children,s).forEach(function(u){return n.push(u)})}}return n}function z6(e,t,n,r,i,a,s,u,c){var p,f=GD(e.value),m=[],g=-1,b=0;function S(O,R){var M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return lp({children:O,lineNumber:R,lineNumberStyle:u,largestLineNumber:s,showInlineLineNumbers:i,lineProps:n,className:M,showLineNumbers:r,wrapLongLines:c,wrapLines:t})}function k(O,R){if(r&&R&&i){var M=jD(u,R,s);O.unshift(HD(R,M))}return O}function v(O,R){var M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||M.length>0?S(O,R,M):k(O,R)}for(var w=function(){var R=f[b],M=R.children[0].value,U=L6(M);if(U){var G=M.split(`
|
|
81
|
+
`);G.forEach(function(F,Q){var q=r&&m.length+a,te={type:"text",value:"".concat(F,`
|
|
82
|
+
`)};if(Q===0){var J=f.slice(g+1,b).concat(lp({children:[te],className:R.properties.className})),Z=v(J,q);m.push(Z)}else if(Q===G.length-1){var $=f[b+1]&&f[b+1].children&&f[b+1].children[0],W={type:"text",value:"".concat(F)};if($){var re=lp({children:[W],className:R.properties.className});f.splice(b+1,0,re)}else{var he=[W],N=v(he,q,R.properties.className);m.push(N)}}else{var z=[te],H=v(z,q,R.properties.className);m.push(H)}}),g=b}b++};b<f.length;)w();if(g!==f.length-1){var x=f.slice(g+1,f.length);if(x&&x.length){var A=r&&m.length+a,D=v(x,A);m.push(D)}}return t?m:(p=[]).concat.apply(p,m)}function U6(e){var t=e.rows,n=e.stylesheet,r=e.useInlineStyles;return t.map(function(i,a){return $D({node:i,stylesheet:n,useInlineStyles:r,key:"code-segment-".concat(a)})})}function VD(e){return e&&typeof e.highlightAuto<"u"}function P6(e){var t=e.astGenerator,n=e.language,r=e.code,i=e.defaultCodeValue;if(VD(t)){var a=O6(t,n);return n==="text"?{value:i,language:"text"}:a?t.highlight(n,r):t.highlightAuto(r)}try{return n&&n!=="text"?{value:t.highlight(r,n)}:{value:i}}catch{return{value:i}}}function $6(e,t){return function(r){var i,a,s=r.language,u=r.children,c=r.style,p=c===void 0?t:c,f=r.customStyle,m=f===void 0?{}:f,g=r.codeTagProps,b=g===void 0?{className:s?"language-".concat(s):void 0,style:da(da({},p['code[class*="language-"]']),p['code[class*="language-'.concat(s,'"]')])}:g,S=r.useInlineStyles,k=S===void 0?!0:S,v=r.showLineNumbers,w=v===void 0?!1:v,x=r.showInlineLineNumbers,A=x===void 0?!0:x,D=r.startingLineNumber,O=D===void 0?1:D,R=r.lineNumberContainerStyle,M=r.lineNumberStyle,U=M===void 0?{}:M,G=r.wrapLines,F=r.wrapLongLines,Q=F===void 0?!1:F,q=r.lineProps,te=q===void 0?{}:q,J=r.renderer,Z=r.PreTag,$=Z===void 0?"pre":Z,W=r.CodeTag,re=W===void 0?"code":W,he=r.code,N=he===void 0?(Array.isArray(u)?u[0]:u)||"":he,z=r.astGenerator,H=S6(r,I6);z=z||e;var _=w?gt.createElement(B6,{containerStyle:R,codeStyle:b.style||{},numberStyle:U,startingLineNumber:O,codeString:N}):null,oe=p.hljs||p['pre[class*="language-"]']||{backgroundColor:"#fff"},de=VD(z)?"hljs":"prismjs",fe=k?Object.assign({},H,{style:Object.assign({},oe,m)}):Object.assign({},H,{className:H.className?"".concat(de," ").concat(H.className):de,style:Object.assign({},m)});if(Q?b.style=da({whiteSpace:"pre-wrap"},b.style):b.style=da({whiteSpace:"pre"},b.style),!z)return gt.createElement($,fe,_,gt.createElement(re,b,N));(G===void 0&&J||Q)&&(G=!0),J=J||U6;var le=[{type:"text",value:N}],Te=P6({astGenerator:z,language:s,code:N,defaultCodeValue:le});Te.language===null&&(Te.value=le);var be=(i=(a=N.match(/\n/g))===null||a===void 0?void 0:a.length)!==null&&i!==void 0?i:0,Oe=O+be,De=z6(Te,G,te,w,A,O,Oe,U,Q);return gt.createElement($,fe,gt.createElement(re,b,!A&&_,J({rows:De,stylesheet:p,useInlineStyles:k})))}}const H6=["abap","abnf","actionscript","ada","agda","al","antlr4","apacheconf","apex","apl","applescript","aql","arduino","arff","armasm","arturo","asciidoc","asm6502","asmatmel","aspnet","autohotkey","autoit","avisynth","avro-idl","awk","bash","basic","batch","bbcode","bbj","bicep","birb","bison","bnf","bqn","brainfuck","brightscript","bro","bsl","c","cfscript","chaiscript","cil","cilkc","cilkcpp","clike","clojure","cmake","cobol","coffeescript","concurnas","cooklang","coq","cpp","crystal","csharp","cshtml","csp","css-extras","css","csv","cue","cypher","d","dart","dataweave","dax","dhall","diff","django","dns-zone-file","docker","dot","ebnf","editorconfig","eiffel","ejs","elixir","elm","erb","erlang","etlua","excel-formula","factor","false","firestore-security-rules","flow","fortran","fsharp","ftl","gap","gcode","gdscript","gedcom","gettext","gherkin","git","glsl","gml","gn","go-module","go","gradle","graphql","groovy","haml","handlebars","haskell","haxe","hcl","hlsl","hoon","hpkp","hsts","http","ichigojam","icon","icu-message-format","idris","iecst","ignore","inform7","ini","io","j","java","javadoc","javadoclike","javascript","javastacktrace","jexl","jolie","jq","js-extras","js-templates","jsdoc","json","json5","jsonp","jsstacktrace","jsx","julia","keepalived","keyman","kotlin","kumir","kusto","latex","latte","less","lilypond","linker-script","liquid","lisp","livescript","llvm","log","lolcode","lua","magma","makefile","markdown","markup-templating","markup","mata","matlab","maxscript","mel","mermaid","metafont","mizar","mongodb","monkey","moonscript","n1ql","n4js","nand2tetris-hdl","naniscript","nasm","neon","nevod","nginx","nim","nix","nsis","objectivec","ocaml","odin","opencl","openqasm","oz","parigp","parser","pascal","pascaligo","pcaxis","peoplecode","perl","php-extras","php","phpdoc","plant-uml","plsql","powerquery","powershell","processing","prolog","promql","properties","protobuf","psl","pug","puppet","pure","purebasic","purescript","python","q","qml","qore","qsharp","r","racket","reason","regex","rego","renpy","rescript","rest","rip","roboconf","robotframework","ruby","rust","sas","sass","scala","scheme","scss","shell-session","smali","smalltalk","smarty","sml","solidity","solution-file","soy","sparql","splunk-spl","sqf","sql","squirrel","stan","stata","stylus","supercollider","swift","systemd","t4-cs","t4-templating","t4-vb","tap","tcl","textile","toml","tremor","tsx","tt2","turtle","twig","typescript","typoscript","unrealscript","uorazor","uri","v","vala","vbnet","velocity","verilog","vhdl","vim","visual-basic","warpscript","wasm","web-idl","wgsl","wiki","wolfram","wren","xeora","xml-doc","xojo","xquery","yaml","yang","zig"],i_=/[#.]/g;function j6(e,t){const n=e||"",r={};let i=0,a,s;for(;i<n.length;){i_.lastIndex=i;const u=i_.exec(n),c=n.slice(i,u?u.index:n.length);c&&(a?a==="#"?r.id=c:Array.isArray(r.className)?r.className.push(c):r.className=[c]:s=c,i+=c.length),u&&(a=u[0],i++)}return{type:"element",tagName:s||t||"div",properties:r,children:[]}}function qD(e,t,n){const r=n?W6(n):void 0;function i(a,s,...u){let c;if(a==null){c={type:"root",children:[]};const p=s;u.unshift(p)}else{c=j6(a,t);const p=c.tagName.toLowerCase(),f=r?r.get(p):void 0;if(c.tagName=f||p,G6(s))u.unshift(s);else for(const[m,g]of Object.entries(s))V6(e,c.properties,m,g)}for(const p of u)hy(c.children,p);return c.type==="element"&&c.tagName==="template"&&(c.content={type:"root",children:c.children},c.children=[]),c}return i}function G6(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const i=t[r];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const a=i;for(const s of a)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function V6(e,t,n,r){const i=$1(e,n);let a;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;a=r}else typeof r=="boolean"?a=r:typeof r=="string"?i.spaceSeparated?a=mN(r):i.commaSeparated?a=cN(r):i.commaOrSpaceSeparated?a=mN(cN(r).join(" ")):a=a_(i,i.property,r):Array.isArray(r)?a=[...r]:a=i.property==="style"?q6(r):String(r);if(Array.isArray(a)){const s=[];for(const u of a)s.push(a_(i,i.property,u));a=s}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function hy(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)hy(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?hy(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function a_(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Lu(n)===Lu(t)))return!0}return n}function q6(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function W6(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const Y6=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","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","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],K6=qD(H1,"div");qD(Of,"g",Y6);const X6=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],o_={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function WD(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}function Z6(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Q6(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function s_(e){return Q6(e)||WD(e)}const J6=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function e5(e,t){const n={},r=typeof n.additional=="string"?n.additional.charCodeAt(0):n.additional,i=[];let a=0,s=-1,u="",c,p;n.position&&("start"in n.position||"indent"in n.position?(p=n.position.indent,c=n.position.start):c=n.position);let f=(c?c.line:0)||1,m=(c?c.column:0)||1,g=S(),b;for(a--;++a<=e.length;)if(b===10&&(m=(p?p[s]:0)||1),b=e.charCodeAt(a),b===38){const w=e.charCodeAt(a+1);if(w===9||w===10||w===12||w===32||w===38||w===60||Number.isNaN(w)||r&&w===r){u+=String.fromCharCode(b),m++;continue}const x=a+1;let A=x,D=x,O;if(w===35){D=++A;const te=e.charCodeAt(D);te===88||te===120?(O="hexadecimal",D=++A):O="decimal"}else O="named";let R="",M="",U="";const G=O==="named"?s_:O==="decimal"?WD:Z6;for(D--;++D<=e.length;){const te=e.charCodeAt(D);if(!G(te))break;U+=String.fromCharCode(te),O==="named"&&X6.includes(U)&&(R=U,M=Bu(U))}let F=e.charCodeAt(D)===59;if(F){D++;const te=O==="named"?Bu(U):!1;te&&(R=U,M=te)}let Q=1+D-x,q="";if(!(!F&&n.nonTerminated===!1))if(!U)O!=="named"&&k(4,Q);else if(O==="named"){if(F&&!M)k(5,1);else if(R!==U&&(D=A+R.length,Q=1+D-A,F=!1),!F){const te=R?1:3;if(n.attribute){const J=e.charCodeAt(D);J===61?(k(te,Q),M=""):s_(J)?M="":k(te,Q)}else k(te,Q)}q=M}else{F||k(2,Q);let te=Number.parseInt(U,O==="hexadecimal"?16:10);if(t5(te))k(7,Q),q="�";else if(te in o_)k(6,Q),q=o_[te];else{let J="";n5(te)&&k(6,Q),te>65535&&(te-=65536,J+=String.fromCharCode(te>>>10|55296),te=56320|te&1023),q=J+String.fromCharCode(te)}}if(q){v(),g=S(),a=D-1,m+=D-x+1,i.push(q);const te=S();te.offset++,n.reference&&n.reference.call(n.referenceContext||void 0,q,{start:g,end:te},e.slice(x-1,D)),g=te}else U=e.slice(x-1,D),u+=U,m+=U.length,a=D-1}else b===10&&(f++,s++,m=0),Number.isNaN(b)?v():(u+=String.fromCharCode(b),m++);return i.join("");function S(){return{line:f,column:m,offset:a+((c?c.offset:0)||0)}}function k(w,x){let A;n.warning&&(A=S(),A.column+=x,A.offset+=x,n.warning.call(n.warningContext||void 0,J6[w],A,w))}function v(){u&&(i.push(u),n.text&&n.text.call(n.textContext||void 0,u,{start:g,end:S()}),u="")}}function t5(e){return e>=55296&&e<=57343||e>1114111}function n5(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}var r5=0,Gd={},Gt={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++r5}),e.__id},clone:function e(t,n){n=n||{};var r,i;switch(Gt.util.type(t)){case"Object":if(i=Gt.util.objId(t),n[i])return n[i];r={},n[i]=r;for(var a in t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=Gt.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach(function(s,u){r[u]=e(s,n)}),r);default:return t}}},languages:{plain:Gd,plaintext:Gd,text:Gd,txt:Gd,extend:function(e,t){var n=Gt.util.clone(Gt.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r=r||Gt.languages;var i=r[e],a={};for(var s in i)if(i.hasOwnProperty(s)){if(s==t)for(var u in n)n.hasOwnProperty(u)&&(a[u]=n[u]);n.hasOwnProperty(s)||(a[s]=i[s])}var c=r[e];return r[e]=a,Gt.languages.DFS(Gt.languages,function(p,f){f===c&&p!=e&&(this[p]=a)}),a},DFS:function e(t,n,r,i){i=i||{};var a=Gt.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var u=t[s],c=Gt.util.type(u);c==="Object"&&!i[a(u)]?(i[a(u)]=!0,e(u,n,null,i)):c==="Array"&&!i[a(u)]&&(i[a(u)]=!0,e(u,n,s,i))}}},plugins:{},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(Gt.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=Gt.tokenize(r.code,r.grammar),Gt.hooks.run("after-tokenize",r),Su.stringify(Gt.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new i5;return up(i,i.head,e),YD(e,i,t,i.head,0),o5(i)},hooks:{all:{},add:function(e,t){var n=Gt.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=Gt.hooks.all[e];if(!(!n||!n.length))for(var r=0,i;i=n[r++];)i(t)}},Token:Su};function Su(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||"").length|0}function l_(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function YD(e,t,n,r,i,a){for(var s in n)if(!(!n.hasOwnProperty(s)||!n[s])){var u=n[s];u=Array.isArray(u)?u:[u];for(var c=0;c<u.length;++c){if(a&&a.cause==s+","+c)return;var p=u[c],f=p.inside,m=!!p.lookbehind,g=!!p.greedy,b=p.alias;if(g&&!p.pattern.global){var S=p.pattern.toString().match(/[imsuy]*$/)[0];p.pattern=RegExp(p.pattern.source,S+"g")}for(var k=p.pattern||p,v=r.next,w=i;v!==t.tail&&!(a&&w>=a.reach);w+=v.value.length,v=v.next){var x=v.value;if(t.length>e.length)return;if(!(x instanceof Su)){var A=1,D;if(g){if(D=l_(k,w,e,m),!D||D.index>=e.length)break;var U=D.index,O=D.index+D[0].length,R=w;for(R+=v.value.length;U>=R;)v=v.next,R+=v.value.length;if(R-=v.value.length,w=R,v.value instanceof Su)continue;for(var M=v;M!==t.tail&&(R<O||typeof M.value=="string");M=M.next)A++,R+=M.value.length;A--,x=e.slice(w,R),D.index-=w}else if(D=l_(k,0,x,m),!D)continue;var U=D.index,G=D[0],F=x.slice(0,U),Q=x.slice(U+G.length),q=w+x.length;a&&q>a.reach&&(a.reach=q);var te=v.prev;F&&(te=up(t,te,F),w+=F.length),a5(t,te,A);var J=new Su(s,f?Gt.tokenize(G,f):G,b,G);if(v=up(t,te,J),Q&&up(t,v,Q),A>1){var Z={cause:s+","+c,reach:q};YD(e,t,n,v.prev,w,Z),a&&Z.reach>a.reach&&(a.reach=Z.reach)}}}}}}function i5(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function up(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function a5(e,t,n){for(var r=t.next,i=0;i<n&&r!==e.tail;i++)r=r.next;t.next=r,r.prev=t,e.length-=i}function o5(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}const KD=Gt;function XD(){}XD.prototype=KD;const I=new XD;I.highlight=s5;I.register=l5;I.alias=u5;I.registered=c5;I.listLanguages=d5;I.util.encode=p5;I.Token.stringify=my;function s5(e,t){if(typeof e!="string")throw new TypeError("Expected `string` for `value`, got `"+e+"`");let n,r;if(t&&typeof t=="object")n=t;else{if(r=t,typeof r!="string")throw new TypeError("Expected `string` for `name`, got `"+r+"`");if(Object.hasOwn(I.languages,r))n=I.languages[r];else throw new Error("Unknown language: `"+r+"` is not registered")}return{type:"root",children:KD.highlight.call(I,e,n,r)}}function l5(e){if(typeof e!="function"||!e.displayName)throw new Error("Expected `function` for `syntax`, got `"+e+"`");Object.hasOwn(I.languages,e.displayName)||e(I)}function u5(e,t){const n=I.languages;let r={};typeof e=="string"?t&&(r[e]=t):r=e;let i;for(i in r)if(Object.hasOwn(r,i)){const a=r[i],s=typeof a=="string"?[a]:a;let u=-1;for(;++u<s.length;)n[s[u]]=n[i]}}function c5(e){if(typeof e!="string")throw new TypeError("Expected `string` for `aliasOrLanguage`, got `"+e+"`");return Object.hasOwn(I.languages,e)}function d5(){const e=I.languages,t=[];let n;for(n in e)Object.hasOwn(e,n)&&typeof e[n]=="object"&&t.push(n);return t}function my(e,t){if(typeof e=="string")return{type:"text",value:e};if(Array.isArray(e)){const r=[];let i=-1;for(;++i<e.length;)e[i]!==null&&e[i]!==void 0&&e[i]!==""&&r.push(my(e[i],t));return r}const n={attributes:{},classes:["token",e.type],content:my(e.content,t),language:t,tag:"span",type:e.type};return e.alias&&n.classes.push(...typeof e.alias=="string"?[e.alias]:e.alias),I.hooks.run("wrap",n),K6(n.tag+"."+n.classes.join("."),f5(n.attributes),n.content)}function p5(e){return e}function f5(e){let t;for(t in e)Object.hasOwn(e,t)&&(e[t]=e5(e[t]));return e}const h5={'code[class*="language-"]':{color:"black",background:"none",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"black",background:"#f5f2f0",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},':not(pre) > code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}};an.displayName="markup";an.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function an(e){e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var i={};i["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[r]},i.cdata=/^<!\[CDATA\[|\]\]>$/i;var a={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:i}};a["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var s={};s[n]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:a},e.languages.insertBefore("markup","cdata",s)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}Ao.displayName="css";Ao.aliases=[];function Ao(e){(function(t){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+n.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var r=t.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(e)}Ve.displayName="clike";Ve.aliases=[];function Ve(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}CE.displayName="regex";CE.aliases=[];function CE(e){(function(t){var n={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},r=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,i={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},a={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},s="(?:[^\\\\-]|"+r.source+")",u=RegExp(s+"-"+s),c={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};t.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:u,inside:{escape:r,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":n,"char-set":a,escape:r}},"special-escape":n,"char-set":i,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":c}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:r,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":c}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(e)}dn.displayName="javascript";dn.aliases=["js"];function dn(e){e.register(Ve),e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}RE.displayName="abap";RE.aliases=[];function RE(e){e.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:\*-INPUT|\?TO|ABAP-SOURCE|ABBREVIATED|ABS|ABSTRACT|ACCEPT|ACCEPTING|ACCESSPOLICY|ACCORDING|ACOS|ACTIVATION|ACTUAL|ADD|ADD-CORRESPONDING|ADJACENT|AFTER|ALIAS|ALIASES|ALIGN|ALL|ALLOCATE|ALPHA|ANALYSIS|ANALYZER|AND|ANY|APPEND|APPENDAGE|APPENDING|APPLICATION|ARCHIVE|AREA|ARITHMETIC|AS|ASCENDING|ASIN|ASPECT|ASSERT|ASSIGN|ASSIGNED|ASSIGNING|ASSOCIATION|ASYNCHRONOUS|AT|ATAN|ATTRIBUTES|AUTHORITY|AUTHORITY-CHECK|AVG|BACK|BACKGROUND|BACKUP|BACKWARD|BADI|BASE|BEFORE|BEGIN|BETWEEN|BIG|BINARY|BINDING|BIT|BIT-AND|BIT-NOT|BIT-OR|BIT-XOR|BLACK|BLANK|BLANKS|BLOB|BLOCK|BLOCKS|BLUE|BOUND|BOUNDARIES|BOUNDS|BOXED|BREAK-POINT|BT|BUFFER|BY|BYPASSING|BYTE|BYTE-CA|BYTE-CN|BYTE-CO|BYTE-CS|BYTE-NA|BYTE-NS|BYTE-ORDER|C|CA|CALL|CALLING|CASE|CAST|CASTING|CATCH|CEIL|CENTER|CENTERED|CHAIN|CHAIN-INPUT|CHAIN-REQUEST|CHANGE|CHANGING|CHANNELS|CHAR-TO-HEX|CHARACTER|CHARLEN|CHECK|CHECKBOX|CIRCULAR|CI_|CLASS|CLASS-CODING|CLASS-DATA|CLASS-EVENTS|CLASS-METHODS|CLASS-POOL|CLEANUP|CLEAR|CLIENT|CLOB|CLOCK|CLOSE|CN|CNT|CO|COALESCE|CODE|CODING|COLLECT|COLOR|COLUMN|COLUMNS|COL_BACKGROUND|COL_GROUP|COL_HEADING|COL_KEY|COL_NEGATIVE|COL_NORMAL|COL_POSITIVE|COL_TOTAL|COMMENT|COMMENTS|COMMIT|COMMON|COMMUNICATION|COMPARING|COMPONENT|COMPONENTS|COMPRESSION|COMPUTE|CONCAT|CONCATENATE|COND|CONDENSE|CONDITION|CONNECT|CONNECTION|CONSTANTS|CONTEXT|CONTEXTS|CONTINUE|CONTROL|CONTROLS|CONV|CONVERSION|CONVERT|COPIES|COPY|CORRESPONDING|COS|COSH|COUNT|COUNTRY|COVER|CP|CPI|CREATE|CREATING|CRITICAL|CS|CURRENCY|CURRENCY_CONVERSION|CURRENT|CURSOR|CURSOR-SELECTION|CUSTOMER|CUSTOMER-FUNCTION|DANGEROUS|DATA|DATABASE|DATAINFO|DATASET|DATE|DAYLIGHT|DBMAXLEN|DD\/MM\/YY|DD\/MM\/YYYY|DDMMYY|DEALLOCATE|DECIMALS|DECIMAL_SHIFT|DECLARATIONS|DEEP|DEFAULT|DEFERRED|DEFINE|DEFINING|DEFINITION|DELETE|DELETING|DEMAND|DEPARTMENT|DESCENDING|DESCRIBE|DESTINATION|DETAIL|DIALOG|DIRECTORY|DISCONNECT|DISPLAY|DISPLAY-MODE|DISTANCE|DISTINCT|DIV|DIVIDE|DIVIDE-CORRESPONDING|DIVISION|DO|DUMMY|DUPLICATE|DUPLICATES|DURATION|DURING|DYNAMIC|DYNPRO|E|EACH|EDIT|EDITOR-CALL|ELSE|ELSEIF|EMPTY|ENABLED|ENABLING|ENCODING|END|END-ENHANCEMENT-SECTION|END-LINES|END-OF-DEFINITION|END-OF-FILE|END-OF-PAGE|END-OF-SELECTION|ENDAT|ENDCASE|ENDCATCH|ENDCHAIN|ENDCLASS|ENDDO|ENDENHANCEMENT|ENDEXEC|ENDFOR|ENDFORM|ENDFUNCTION|ENDIAN|ENDIF|ENDING|ENDINTERFACE|ENDLOOP|ENDMETHOD|ENDMODULE|ENDON|ENDPROVIDE|ENDSELECT|ENDTRY|ENDWHILE|ENGINEERING|ENHANCEMENT|ENHANCEMENT-POINT|ENHANCEMENT-SECTION|ENHANCEMENTS|ENTRIES|ENTRY|ENVIRONMENT|EQ|EQUAL|EQUIV|ERRORMESSAGE|ERRORS|ESCAPE|ESCAPING|EVENT|EVENTS|EXACT|EXCEPT|EXCEPTION|EXCEPTION-TABLE|EXCEPTIONS|EXCLUDE|EXCLUDING|EXEC|EXECUTE|EXISTS|EXIT|EXIT-COMMAND|EXP|EXPAND|EXPANDING|EXPIRATION|EXPLICIT|EXPONENT|EXPORT|EXPORTING|EXTEND|EXTENDED|EXTENSION|EXTRACT|FAIL|FETCH|FIELD|FIELD-GROUPS|FIELD-SYMBOL|FIELD-SYMBOLS|FIELDS|FILE|FILTER|FILTER-TABLE|FILTERS|FINAL|FIND|FIRST|FIRST-LINE|FIXED-POINT|FKEQ|FKGE|FLOOR|FLUSH|FONT|FOR|FORM|FORMAT|FORWARD|FOUND|FRAC|FRAME|FRAMES|FREE|FRIENDS|FROM|FUNCTION|FUNCTION-POOL|FUNCTIONALITY|FURTHER|GAPS|GE|GENERATE|GET|GIVING|GKEQ|GKGE|GLOBAL|GRANT|GREATER|GREEN|GROUP|GROUPS|GT|HANDLE|HANDLER|HARMLESS|HASHED|HAVING|HDB|HEAD-LINES|HEADER|HEADERS|HEADING|HELP-ID|HELP-REQUEST|HIDE|HIGH|HINT|HOLD|HOTSPOT|I|ICON|ID|IDENTIFICATION|IDENTIFIER|IDS|IF|IGNORE|IGNORING|IMMEDIATELY|IMPLEMENTATION|IMPLEMENTATIONS|IMPLEMENTED|IMPLICIT|IMPORT|IMPORTING|IN|INACTIVE|INCL|INCLUDE|INCLUDES|INCLUDING|INCREMENT|INDEX|INDEX-LINE|INFOTYPES|INHERITING|INIT|INITIAL|INITIALIZATION|INNER|INOUT|INPUT|INSERT|INSTANCES|INTENSIFIED|INTERFACE|INTERFACE-POOL|INTERFACES|INTERNAL|INTERVALS|INTO|INVERSE|INVERTED-DATE|IS|ISO|ITERATOR|ITNO|JOB|JOIN|KEEP|KEEPING|KERNEL|KEY|KEYS|KEYWORDS|KIND|LANGUAGE|LAST|LATE|LAYOUT|LE|LEADING|LEAVE|LEFT|LEFT-JUSTIFIED|LEFTPLUS|LEFTSPACE|LEGACY|LENGTH|LESS|LET|LEVEL|LEVELS|LIKE|LINE|LINE-COUNT|LINE-SELECTION|LINE-SIZE|LINEFEED|LINES|LIST|LIST-PROCESSING|LISTBOX|LITTLE|LLANG|LOAD|LOAD-OF-PROGRAM|LOB|LOCAL|LOCALE|LOCATOR|LOG|LOG-POINT|LOG10|LOGFILE|LOGICAL|LONG|LOOP|LOW|LOWER|LPAD|LPI|LT|M|MAIL|MAIN|MAJOR-ID|MAPPING|MARGIN|MARK|MASK|MATCH|MATCHCODE|MAX|MAXIMUM|MEDIUM|MEMBERS|MEMORY|MESH|MESSAGE|MESSAGE-ID|MESSAGES|MESSAGING|METHOD|METHODS|MIN|MINIMUM|MINOR-ID|MM\/DD\/YY|MM\/DD\/YYYY|MMDDYY|MOD|MODE|MODIF|MODIFIER|MODIFY|MODULE|MOVE|MOVE-CORRESPONDING|MULTIPLY|MULTIPLY-CORRESPONDING|NA|NAME|NAMETAB|NATIVE|NB|NE|NESTED|NESTING|NEW|NEW-LINE|NEW-PAGE|NEW-SECTION|NEXT|NO|NO-DISPLAY|NO-EXTENSION|NO-GAP|NO-GAPS|NO-GROUPING|NO-HEADING|NO-SCROLLING|NO-SIGN|NO-TITLE|NO-TOPOFPAGE|NO-ZERO|NODE|NODES|NON-UNICODE|NON-UNIQUE|NOT|NP|NS|NULL|NUMBER|NUMOFCHAR|O|OBJECT|OBJECTS|OBLIGATORY|OCCURRENCE|OCCURRENCES|OCCURS|OF|OFF|OFFSET|OLE|ON|ONLY|OPEN|OPTION|OPTIONAL|OPTIONS|OR|ORDER|OTHER|OTHERS|OUT|OUTER|OUTPUT|OUTPUT-LENGTH|OVERFLOW|OVERLAY|PACK|PACKAGE|PAD|PADDING|PAGE|PAGES|PARAMETER|PARAMETER-TABLE|PARAMETERS|PART|PARTIALLY|PATTERN|PERCENTAGE|PERFORM|PERFORMING|PERSON|PF|PF-STATUS|PINK|PLACES|POOL|POSITION|POS_HIGH|POS_LOW|PRAGMAS|PRECOMPILED|PREFERRED|PRESERVING|PRIMARY|PRINT|PRINT-CONTROL|PRIORITY|PRIVATE|PROCEDURE|PROCESS|PROGRAM|PROPERTY|PROTECTED|PROVIDE|PUBLIC|PUSHBUTTON|PUT|QUEUE-ONLY|QUICKINFO|RADIOBUTTON|RAISE|RAISING|RANGE|RANGES|RAW|READ|READ-ONLY|READER|RECEIVE|RECEIVED|RECEIVER|RECEIVING|RED|REDEFINITION|REDUCE|REDUCED|REF|REFERENCE|REFRESH|REGEX|REJECT|REMOTE|RENAMING|REPLACE|REPLACEMENT|REPLACING|REPORT|REQUEST|REQUESTED|RESERVE|RESET|RESOLUTION|RESPECTING|RESPONSIBLE|RESULT|RESULTS|RESUMABLE|RESUME|RETRY|RETURN|RETURNCODE|RETURNING|RIGHT|RIGHT-JUSTIFIED|RIGHTPLUS|RIGHTSPACE|RISK|RMC_COMMUNICATION_FAILURE|RMC_INVALID_STATUS|RMC_SYSTEM_FAILURE|ROLE|ROLLBACK|ROUND|ROWS|RTTI|RUN|SAP|SAP-SPOOL|SAVING|SCALE_PRESERVING|SCALE_PRESERVING_SCIENTIFIC|SCAN|SCIENTIFIC|SCIENTIFIC_WITH_LEADING_ZERO|SCREEN|SCROLL|SCROLL-BOUNDARY|SCROLLING|SEARCH|SECONDARY|SECONDS|SECTION|SELECT|SELECT-OPTIONS|SELECTION|SELECTION-SCREEN|SELECTION-SET|SELECTION-SETS|SELECTION-TABLE|SELECTIONS|SELECTOR|SEND|SEPARATE|SEPARATED|SET|SHARED|SHIFT|SHORT|SHORTDUMP-ID|SIGN|SIGN_AS_POSTFIX|SIMPLE|SIN|SINGLE|SINH|SIZE|SKIP|SKIPPING|SMART|SOME|SORT|SORTABLE|SORTED|SOURCE|SPACE|SPECIFIED|SPLIT|SPOOL|SPOTS|SQL|SQLSCRIPT|SQRT|STABLE|STAMP|STANDARD|START-OF-SELECTION|STARTING|STATE|STATEMENT|STATEMENTS|STATIC|STATICS|STATUSINFO|STEP-LOOP|STOP|STRLEN|STRUCTURE|STRUCTURES|STYLE|SUBKEY|SUBMATCHES|SUBMIT|SUBROUTINE|SUBSCREEN|SUBSTRING|SUBTRACT|SUBTRACT-CORRESPONDING|SUFFIX|SUM|SUMMARY|SUMMING|SUPPLIED|SUPPLY|SUPPRESS|SWITCH|SWITCHSTATES|SYMBOL|SYNCPOINTS|SYNTAX|SYNTAX-CHECK|SYNTAX-TRACE|SYSTEM-CALL|SYSTEM-EXCEPTIONS|SYSTEM-EXIT|TAB|TABBED|TABLE|TABLES|TABLEVIEW|TABSTRIP|TAN|TANH|TARGET|TASK|TASKS|TEST|TESTING|TEXT|TEXTPOOL|THEN|THROW|TIME|TIMES|TIMESTAMP|TIMEZONE|TITLE|TITLE-LINES|TITLEBAR|TO|TOKENIZATION|TOKENS|TOP-LINES|TOP-OF-PAGE|TRACE-FILE|TRACE-TABLE|TRAILING|TRANSACTION|TRANSFER|TRANSFORMATION|TRANSLATE|TRANSPORTING|TRMAC|TRUNC|TRUNCATE|TRUNCATION|TRY|TYPE|TYPE-POOL|TYPE-POOLS|TYPES|ULINE|UNASSIGN|UNDER|UNICODE|UNION|UNIQUE|UNIT|UNIT_CONVERSION|UNIX|UNPACK|UNTIL|UNWIND|UP|UPDATE|UPPER|USER|USER-COMMAND|USING|UTF-8|VALID|VALUE|VALUE-REQUEST|VALUES|VARY|VARYING|VERIFICATION-MESSAGE|VERSION|VIA|VIEW|VISIBLE|WAIT|WARNING|WHEN|WHENEVER|WHERE|WHILE|WIDTH|WINDOW|WINDOWS|WITH|WITH-HEADING|WITH-TITLE|WITHOUT|WORD|WORK|WRITE|WRITER|X|XML|XOR|XSD|XSTRLEN|YELLOW|YES|YYMMDD|Z|ZERO|ZONE)(?![\w-])/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}NE.displayName="abnf";NE.aliases=[];function NE(e){(function(t){var n="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";t.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+n+"|<"+n+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(e)}_E.displayName="actionscript";_E.aliases=[];function _E(e){e.register(dn),e.languages.actionscript=e.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),e.languages.actionscript["class-name"].alias="function",delete e.languages.actionscript.parameter,delete e.languages.actionscript["literal-property"],e.languages.markup&&e.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:e.languages.markup}})}OE.displayName="ada";OE.aliases=[];function OE(e){e.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|or|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}IE.displayName="agda";IE.aliases=[];function IE(e){(function(t){t.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(e)}DE.displayName="al";DE.aliases=[];function DE(e){e.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}LE.displayName="antlr4";LE.aliases=["g4"];function LE(e){e.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},e.languages.g4=e.languages.antlr4}ME.displayName="apacheconf";ME.aliases=[];function ME(e){e.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}ac.displayName="sql";ac.aliases=[];function ac(e){e.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}BE.displayName="apex";BE.aliases=[];function BE(e){e.register(Ve),e.register(ac),(function(t){var n=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,r=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!<keyword>))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(/<keyword>/g,function(){return n.source});function i(s){return RegExp(s.replace(/<CLASS-NAME>/g,function(){return r}),"i")}var a={keyword:n,punctuation:/[()\[\]{};,:.<>]/};t.languages.apex={comment:t.languages.clike.comment,string:t.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:t.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:i(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)<CLASS-NAME>/.source),lookbehind:!0,inside:a},{pattern:i(/(\(\s*)<CLASS-NAME>(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:a},{pattern:i(/<CLASS-NAME>(?=\s*\w+\s*[;=,(){:])/.source),inside:a}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:n,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<<?=?|>{1,3}=?/,punctuation:/[()\[\]{};,.]/}})(e)}FE.displayName="apl";FE.aliases=[];function FE(e){e.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}zE.displayName="applescript";zE.aliases=[];function zE(e){e.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}UE.displayName="aql";UE.aliases=[];function UE(e){e.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}qr.displayName="c";qr.aliases=[];function qr(e){e.register(Ve),e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}Xs.displayName="cpp";Xs.aliases=[];function Xs(e){e.register(qr),(function(t){var n=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,r=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return n.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return n.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:n,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return r})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])})(e)}PE.displayName="arduino";PE.aliases=["ino"];function PE(e){e.register(Xs),e.languages.arduino=e.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),e.languages.ino=e.languages.arduino}$E.displayName="arff";$E.aliases=[];function $E(e){e.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}HE.displayName="armasm";HE.aliases=["arm-asm"];function HE(e){e.languages.armasm={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"/,greedy:!0,inside:{variable:{pattern:/((?:^|[^$])(?:\${2})*)\$\w+/,lookbehind:!0}}},char:{pattern:/'(?:[^'\r\n]{0,4}|'')'/,greedy:!0},"version-symbol":{pattern:/\|[\w@]+\|/,greedy:!0,alias:"property"},boolean:/\b(?:FALSE|TRUE)\b/,directive:{pattern:/\b(?:ALIAS|ALIGN|AREA|ARM|ASSERT|ATTR|CN|CODE|CODE16|CODE32|COMMON|CP|DATA|DCB|DCD|DCDO|DCDU|DCFD|DCFDU|DCI|DCQ|DCQU|DCW|DCWU|DN|ELIF|ELSE|END|ENDFUNC|ENDIF|ENDP|ENTRY|EQU|EXPORT|EXPORTAS|EXTERN|FIELD|FILL|FN|FUNCTION|GBLA|GBLL|GBLS|GET|GLOBAL|IF|IMPORT|INCBIN|INCLUDE|INFO|KEEP|LCLA|LCLL|LCLS|LTORG|MACRO|MAP|MEND|MEXIT|NOFP|OPT|PRESERVE8|PROC|QN|READONLY|RELOC|REQUIRE|REQUIRE8|RLIST|ROUT|SETA|SETL|SETS|SN|SPACE|SUBT|THUMB|THUMBX|TTL|WEND|WHILE)\b/,alias:"property"},instruction:{pattern:/((?:^|(?:^|[^\\])(?:\r\n?|\n))[ \t]*(?:(?:[A-Z][A-Z0-9_]*[a-z]\w*|[a-z]\w*|\d+)[ \t]+)?)\b[A-Z.]+\b/,lookbehind:!0,alias:"keyword"},variable:/\$\w+/,number:/(?:\b[2-9]_\d+|(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e-?\d+)?|\b0(?:[fd]_|x)[0-9a-f]+|&[0-9a-f]+)\b/i,register:{pattern:/\b(?:r\d|lr)\b/,alias:"symbol"},operator:/<>|<<|>>|&&|\|\||[=!<>/]=?|[+\-*%#?&|^]|:[A-Z]+:/,punctuation:/[()[\],]/},e.languages["arm-asm"]=e.languages.armasm}Ff.displayName="bash";Ff.aliases=["sh","shell"];function Ff(e){(function(t){var n="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},i={bash:r,environment:{pattern:RegExp("\\$"+n),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+n),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};t.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+n),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:i},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:i},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:i.entity}}],environment:{pattern:RegExp("\\$?"+n),alias:"constant"},variable:i.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},r.inside=t.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],s=i.variable[1].inside,u=0;u<a.length;u++)s[a[u]]=t.languages.bash[a[u]];t.languages.sh=t.languages.bash,t.languages.shell=t.languages.bash})(e)}zf.displayName="yaml";zf.aliases=["yml"];function zf(e){(function(t){var n=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+r.source+"(?:[ ]+"+n.source+")?|"+n.source+"(?:[ ]+"+r.source+")?)",a=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),s=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function u(c,p){p=(p||"").replace(/m/g,"")+"m";var f=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return i}).replace(/<<value>>/g,function(){return c});return RegExp(f,p)}t.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return i})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return i}).replace(/<<key>>/g,function(){return"(?:"+a+"|"+s+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:u(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:u(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:u(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:u(s),lookbehind:!0,greedy:!0},number:{pattern:u(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:r,important:n,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},t.languages.yml=t.languages.yaml})(e)}jE.displayName="markdown";jE.aliases=["md"];function jE(e){e.register(an),(function(t){var n=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(u){return u=u.replace(/<inner>/g,function(){return n}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+u+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,a=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return i}),s=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+a+s+"(?:"+a+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+a+s+")(?:"+a+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+a+")"+s+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+a+"$"),inside:{"table-header":{pattern:RegExp(i),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:r(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:r(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(u){["url","bold","italic","strike","code-snippet"].forEach(function(c){u!==c&&(t.languages.markdown[u].inside.content.inside[c]=t.languages.markdown[c])})}),t.hooks.add("after-tokenize",function(u){if(u.language!=="markdown"&&u.language!=="md")return;function c(p){if(!(!p||typeof p=="string"))for(var f=0,m=p.length;f<m;f++){var g=p[f];if(g.type!=="code"){c(g.content);continue}var b=g.content[1],S=g.content[3];if(b&&S&&b.type==="code-language"&&S.type==="code-block"&&typeof b.content=="string"){var k=b.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");k=(/[a-z][\w-]*/i.exec(k)||[""])[0].toLowerCase();var v="language-"+k;S.alias?typeof S.alias=="string"?S.alias=[S.alias,v]:S.alias.push(v):S.alias=[v]}}}c(u.tokens)}),t.hooks.add("wrap",function(u){if(u.type==="code-block"){for(var c="",p=0,f=u.classes.length;p<f;p++){var m=u.classes[p],g=/language-(.+)/.exec(m);if(g){c=g[1];break}}var b=t.languages[c];if(b)u.content=t.highlight(u.content.value,b,c);else if(c&&c!=="none"&&t.plugins.autoloader){var S="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);u.attributes.id=S,t.plugins.autoloader.loadLanguages(c,function(){var k=document.getElementById(S);k&&(k.innerHTML=t.highlight(k.textContent,t.languages[c],c))})}}}),RegExp(t.languages.markup.tag.pattern.source,"gi"),t.languages.md=t.languages.markdown})(e)}GE.displayName="arturo";GE.aliases=["art"];function GE(e){(function(t){var n=function(r,i){return{pattern:RegExp(/\{!/.source+"(?:"+(i||r)+")"+/$[\s\S]*\}/.source,"m"),greedy:!0,inside:{embedded:{pattern:/(^\{!\w+\b)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-"+r,inside:t.languages[r]},string:/[\s\S]+/}}};t.languages.arturo={comment:{pattern:/;.*/,greedy:!0},character:{pattern:/`.`/,alias:"char",greedy:!0},number:{pattern:/\b\d+(?:\.\d+(?:\.\d+(?:-[\w+-]+)?)?)?\b/},string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},regex:{pattern:/\{\/.*?\/\}/,greedy:!0},"html-string":n("html"),"css-string":n("css"),"js-string":n("js"),"md-string":n("md"),"sql-string":n("sql"),"sh-string":n("shell","sh"),multistring:{pattern:/».*|\{:[\s\S]*?:\}|\{[\s\S]*?\}|^-{6}$[\s\S]*/m,alias:"string",greedy:!0},label:{pattern:/\w+\b\??:/,alias:"property"},literal:{pattern:/'(?:\w+\b\??:?)/,alias:"constant"},type:{pattern:/:(?:\w+\b\??:?)/,alias:"class-name"},color:/#\w+/,predicate:{pattern:/\b(?:all|and|any|ascii|attr|attribute|attributeLabel|binary|block|char|contains|database|date|dictionary|empty|equal|even|every|exists|false|floating|function|greater|greaterOrEqual|if|in|inline|integer|is|key|label|leap|less|lessOrEqual|literal|logical|lower|nand|negative|nor|not|notEqual|null|numeric|odd|or|path|pathLabel|positive|prefix|prime|regex|same|set|some|sorted|standalone|string|subset|suffix|superset|symbol|symbolLiteral|true|try|type|unless|upper|when|whitespace|word|xnor|xor|zero)\?/,alias:"keyword"},"builtin-function":{pattern:/\b(?:abs|acos|acosh|acsec|acsech|actan|actanh|add|after|alert|alias|and|angle|append|arg|args|arity|array|as|asec|asech|asin|asinh|atan|atan2|atanh|attr|attrs|average|before|benchmark|blend|break|call|capitalize|case|ceil|chop|clear|clip|close|color|combine|conj|continue|copy|cos|cosh|crc|csec|csech|ctan|ctanh|cursor|darken|dec|decode|define|delete|desaturate|deviation|dialog|dictionary|difference|digest|digits|div|do|download|drop|dup|e|else|empty|encode|ensure|env|escape|execute|exit|exp|extend|extract|factors|fdiv|filter|first|flatten|floor|fold|from|function|gamma|gcd|get|goto|hash|hypot|if|inc|indent|index|infinity|info|input|insert|inspect|intersection|invert|jaro|join|keys|kurtosis|last|let|levenshtein|lighten|list|ln|log|loop|lower|mail|map|match|max|median|min|mod|module|mul|nand|neg|new|nor|normalize|not|now|null|open|or|outdent|pad|palette|panic|path|pause|permissions|permutate|pi|pop|popup|pow|powerset|powmod|prefix|print|prints|process|product|query|random|range|read|relative|remove|rename|render|repeat|replace|request|return|reverse|round|sample|saturate|script|sec|sech|select|serve|set|shl|shr|shuffle|sin|sinh|size|skewness|slice|sort|spin|split|sqrt|squeeze|stack|strip|sub|suffix|sum|switch|symbols|symlink|sys|take|tan|tanh|terminal|terminate|to|truncate|try|type|unclip|union|unique|unless|until|unzip|upper|values|var|variance|volume|webview|while|with|wordwrap|write|xnor|xor|zip)\b/,alias:"keyword"},sugar:{pattern:/->|=>|\||::/,alias:"operator"},punctuation:/[()[\],]/,symbol:{pattern:/<:|-:|ø|@|#|\+|\||\*|\$|---|-|%|\/|\.\.|\^|~|=|<|>|\\/},boolean:{pattern:/\b(?:false|maybe|true)\b/}},t.languages.art=t.languages.arturo})(e)}VE.displayName="asciidoc";VE.aliases=["adoc"];function VE(e){(function(t){var n={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},r=t.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})$[\s\S]*?^\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:n,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)<?\d*>/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:n.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:n,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function i(a){a=a.split(" ");for(var s={},u=0,c=a.length;u<c;u++)s[a[u]]=r[a[u]];return s}n.inside.interpreted.inside.rest=i("macro inline replacement entity"),r["passthrough-block"].inside.rest=i("macro"),r["literal-block"].inside.rest=i("callout"),r.table.inside.rest=i("comment-block passthrough-block literal-block other-block list-punctuation indented-block comment title attribute-entry attributes hr page-break admonition list-label callout macro inline replacement entity line-continuation"),r["other-block"].inside.rest=i("table list-punctuation indented-block comment attribute-entry attributes hr page-break admonition list-label macro inline replacement entity line-continuation"),r.title.inside.rest=i("macro inline replacement entity"),t.hooks.add("wrap",function(a){a.type==="entity"&&(a.attributes.title=a.content.value.replace(/&/,"&"))}),t.languages.adoc=t.languages.asciidoc})(e)}Zs.displayName="csharp";Zs.aliases=["cs","dotnet"];function Zs(e){e.register(Ve),(function(t){function n(N,z){return N.replace(/<<(\d+)>>/g,function(H,_){return"(?:"+z[+_]+")"})}function r(N,z,H){return RegExp(n(N,z),"")}function i(N,z){for(var H=0;H<z;H++)N=N.replace(/<<self>>/g,function(){return"(?:"+N+")"});return N.replace(/<<self>>/g,"[^\\s\\S]")}var a={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function s(N){return"\\b(?:"+N.trim().replace(/ /g,"|")+")\\b"}var u=s(a.typeDeclaration),c=RegExp(s(a.type+" "+a.typeDeclaration+" "+a.contextual+" "+a.other)),p=s(a.typeDeclaration+" "+a.contextual+" "+a.other),f=s(a.type+" "+a.typeDeclaration+" "+a.other),m=i(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),g=i(/\((?:[^()]|<<self>>)*\)/.source,2),b=/@?\b[A-Za-z_]\w*\b/.source,S=n(/<<0>>(?:\s*<<1>>)?/.source,[b,m]),k=n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[p,S]),v=/\[\s*(?:,\s*)*\]/.source,w=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[k,v]),x=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[m,g,v]),A=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[x]),D=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[A,k,v]),O={keyword:c,punctuation:/[<>()?,.:[\]]/},R=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,M=/"(?:\\.|[^\\"\r\n])*"/.source,U=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[U]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[M]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[k]),lookbehind:!0,inside:O},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[b,D]),lookbehind:!0,inside:O},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[b]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[u,S]),lookbehind:!0,inside:O},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[k]),lookbehind:!0,inside:O},{pattern:r(/(\bwhere\s+)<<0>>/.source,[b]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[w]),lookbehind:!0,inside:O},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[D,f,b]),inside:O}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[b]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[b]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[g]),lookbehind:!0,alias:"class-name",inside:O},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[D,k]),inside:O,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[D]),lookbehind:!0,inside:O,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[b,m]),inside:{function:r(/^<<0>>/.source,[b]),generic:{pattern:RegExp(m),alias:"class-name",inside:O}}},"type-list":{pattern:r(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[u,S,b,D,c.source,g,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[S,g]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:c,"class-name":{pattern:RegExp(D),greedy:!0,inside:O},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var G=M+"|"+R,F=n(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[G]),Q=i(n(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[F]),2),q=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,te=n(/<<0>>(?:\s*\(<<1>>*\))?/.source,[k,Q]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[q,te]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[q]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[Q]),inside:t.languages.csharp},"class-name":{pattern:RegExp(k),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var J=/:[^}\r\n]+/.source,Z=i(n(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[F]),2),$=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[Z,J]),W=i(n(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[G]),2),re=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[W,J]);function he(N,z){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[N]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[z,J]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:t.languages.csharp}}},string:/[\s\S]+/}}t.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[$]),lookbehind:!0,greedy:!0,inside:he($,Z)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[re]),lookbehind:!0,greedy:!0,inside:he(re,W)}],char:{pattern:RegExp(R),greedy:!0}}),t.languages.dotnet=t.languages.cs=t.languages.csharp})(e)}qE.displayName="aspnet";qE.aliases=[];function qE(e){e.register(Zs),e.register(an),e.languages.aspnet=e.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:e.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:e.languages.csharp}}}),e.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,e.languages.insertBefore("inside","punctuation",{directive:e.languages.aspnet.directive},e.languages.aspnet.tag.inside["attr-value"]),e.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),e.languages.insertBefore("aspnet",e.languages.javascript?"script":"tag",{"asp-script":{pattern:/(<script(?=.*runat=['"]?server\b)[^>]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:e.languages.csharp||{}}})}WE.displayName="asm6502";WE.aliases=[];function WE(e){e.languages.asm6502={comment:/;.*/,directive:{pattern:/\.\w+(?= )/,alias:"property"},string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,"op-code":{pattern:/\b(?:ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA|adc|and|asl|bcc|bcs|beq|bit|bmi|bne|bpl|brk|bvc|bvs|clc|cld|cli|clv|cmp|cpx|cpy|dec|dex|dey|eor|inc|inx|iny|jmp|jsr|lda|ldx|ldy|lsr|nop|ora|pha|php|pla|plp|rol|ror|rti|rts|sbc|sec|sed|sei|sta|stx|sty|tax|tay|tsx|txa|txs|tya)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{1,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[xya]\b/i,alias:"variable"},punctuation:/[(),:]/}}YE.displayName="asmatmel";YE.aliases=[];function YE(e){e.languages.asmatmel={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},constant:/\b(?:PORT[A-Z]|DDR[A-Z]|(?:DD|P)[A-Z](?:\d|[0-2]\d|3[01]))\b/,directive:{pattern:/\.\w+(?= )/,alias:"property"},"r-register":{pattern:/\br(?:\d|[12]\d|3[01])\b/,alias:"variable"},"op-code":{pattern:/\b(?:ADC|ADD|ADIW|AND|ANDI|ASR|BCLR|BLD|BRBC|BRBS|BRCC|BRCS|BREAK|BREQ|BRGE|BRHC|BRHS|BRID|BRIE|BRLO|BRLT|BRMI|BRNE|BRPL|BRSH|BRTC|BRTS|BRVC|BRVS|BSET|BST|CALL|CBI|CBR|CLC|CLH|CLI|CLN|CLR|CLS|CLT|CLV|CLZ|COM|CP|CPC|CPI|CPSE|DEC|DES|EICALL|EIJMP|ELPM|EOR|FMUL|FMULS|FMULSU|ICALL|IJMP|IN|INC|JMP|LAC|LAS|LAT|LD|LD[A-Za-z0-9]|LPM|LSL|LSR|MOV|MOVW|MUL|MULS|MULSU|NEG|NOP|OR|ORI|OUT|POP|PUSH|RCALL|RET|RETI|RJMP|ROL|ROR|SBC|SBCI|SBI|SBIC|SBIS|SBIW|SBR|SBRC|SBRS|SEC|SEH|SEI|SEN|SER|SES|SET|SEV|SEZ|SLEEP|SPM|ST|ST[A-Z0-9]|SUB|SUBI|SWAP|TST|WDR|XCH|adc|add|adiw|and|andi|asr|bclr|bld|brbc|brbs|brcc|brcs|break|breq|brge|brhc|brhs|brid|brie|brlo|brlt|brmi|brne|brpl|brsh|brtc|brts|brvc|brvs|bset|bst|call|cbi|cbr|clc|clh|cli|cln|clr|cls|clt|clv|clz|com|cp|cpc|cpi|cpse|dec|des|eicall|eijmp|elpm|eor|fmul|fmuls|fmulsu|icall|ijmp|in|inc|jmp|lac|las|lat|ld|ld[a-z0-9]|lpm|lsl|lsr|mov|movw|mul|muls|mulsu|neg|nop|or|ori|out|pop|push|rcall|ret|reti|rjmp|rol|ror|sbc|sbci|sbi|sbic|sbis|sbiw|sbr|sbrc|sbrs|sec|seh|sei|sen|ser|ses|set|sev|sez|sleep|spm|st|st[a-zA-Z0-9]|sub|subi|swap|tst|wdr|xch)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{2,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[acznvshtixy]\b/i,alias:"variable"},operator:/>>=?|<<=?|&[&=]?|\|[\|=]?|[-+*/%^!=<>?]=?/,punctuation:/[(),:]/}}KE.displayName="autohotkey";KE.aliases=[];function KE(e){e.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,command:{pattern:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,alias:"selector"},constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,directive:{pattern:/#[a-z]+\b/i,alias:"important"},keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}XE.displayName="autoit";XE.aliases=[];function XE(e){e.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}ZE.displayName="avisynth";ZE.aliases=["avs"];function ZE(e){(function(t){function n(p,f){return p.replace(/<<(\d+)>>/g,function(m,g){return f[+g]})}function r(p,f,m){return RegExp(n(p,f),m)}var i=/bool|clip|float|int|string|val/.source,a=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),s=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),u=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),c=[a,s,u].join("|");t.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:r(/\b(?:<<0>>)\s+("?)\w+\1/.source,[i],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:r(/\b(?:<<0>>)\b/.source,[c],"i"),alias:"function"},"type-cast":{pattern:r(/\b(?:<<0>>)(?=\s*\()/.source,[i],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},t.languages.avs=t.languages.avisynth})(e)}QE.displayName="avro-idl";QE.aliases=["avdl"];function QE(e){e.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},e.languages.avdl=e.languages["avro-idl"]}JE.displayName="awk";JE.aliases=["gawk"];function JE(e){e.languages.awk={hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\\"\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},regex:{pattern:/((?:^|[^\w\s)])\s*)\/(?:[^\/\\\r\n]|\\.)*\//,lookbehind:!0,greedy:!0},variable:/\$\w+/,keyword:/\b(?:BEGIN|BEGINFILE|END|ENDFILE|break|case|continue|default|delete|do|else|exit|for|function|getline|if|in|next|nextfile|printf?|return|switch|while)\b|@(?:include|load)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[a-fA-F0-9]+)\b/,operator:/--|\+\+|!?~|>&|>>|<<|(?:\*\*|[<>!=+\-*/%^])=?|&&|\|[|&]|[?:]/,punctuation:/[()[\]{},;]/},e.languages.gawk=e.languages.awk}Uf.displayName="basic";Uf.aliases=[];function Uf(e){e.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}eS.displayName="batch";eS.aliases=[];function eS(e){(function(t){var n=/%%?[~:\w]+%?|!\S+!/,r={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},i=/"(?:[\\"]"|[^"])*"(?!")/,a=/(?:\b|-)\d+\b/;t.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:i,parameter:r,variable:n,number:a,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:i,parameter:r,variable:n,number:a,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:i,parameter:r,variable:[n,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:a,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:i,parameter:r,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:n,number:a,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(e)}tS.displayName="bbcode";tS.aliases=["shortcode"];function tS(e){e.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},e.languages.shortcode=e.languages.bbcode}nS.displayName="bbj";nS.aliases=[];function nS(e){(function(t){t.languages.bbj={comment:{pattern:/(^|[^\\:])rem\s+.*/i,lookbehind:!0,greedy:!0},string:{pattern:/(['"])(?:(?!\1|\\).|\\.)*\1/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:abstract|all|argc|begin|bye|callback|case|chn|class|classend|ctl|day|declare|delete|dim|dom|dread|dsz|else|end|endif|err|exitto|extends|fi|field|for|from|gosub|goto|if|implements|interface|interfaceend|iol|iolist|let|list|load|method|methodend|methodret|on|opts|pfx|print|private|process_events|protected|psz|public|read|read_resource|release|remove_callback|repeat|restore|return|rev|seterr|setesc|sqlchn|sqlunt|ssn|start|static|swend|switch|sys|then|tim|unt|until|use|void|wend|where|while)\b/i,function:/\b\w+(?=\()/,boolean:/\b(?:BBjAPI\.TRUE|BBjAPI\.FALSE)\b/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:and|not|or|xor)\b/i,punctuation:/[.,;:()]/}})(e)}rS.displayName="bicep";rS.aliases=[];function rS(e){e.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},e.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=e.languages.bicep}iS.displayName="birb";iS.aliases=[];function iS(e){e.register(Ve),e.languages.birb=e.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),e.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}aS.displayName="bison";aS.aliases=[];function aS(e){e.register(qr),e.languages.bison=e.languages.extend("c",{}),e.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:e.languages.c}},comment:e.languages.c.comment,string:e.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}oS.displayName="bnf";oS.aliases=["rbnf"];function oS(e){e.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},e.languages.rbnf=e.languages.bnf}sS.displayName="bqn";sS.aliases=[];function sS(e){e.languages.bqn={shebang:{pattern:/^#![ \t]*\/.*/,alias:"important",greedy:!0},comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/"(?:[^"]|"")*"/,greedy:!0,alias:"string"},"character-literal":{pattern:/'(?:[\s\S]|[\uD800-\uDBFF][\uDC00-\uDFFF])'/,greedy:!0,alias:"char"},function:/•[\w¯.∞π]+[\w¯.∞π]*/,"dot-notation-on-brackets":{pattern:/\{(?=.*\}\.)|\}\./,alias:"namespace"},"special-name":{pattern:/(?:𝕨|𝕩|𝕗|𝕘|𝕤|𝕣|𝕎|𝕏|𝔽|𝔾|𝕊|_𝕣_|_𝕣)/,alias:"keyword"},"dot-notation-on-name":{pattern:/[A-Za-z_][\w¯∞π]*\./,alias:"namespace"},"word-number-scientific":{pattern:/\d+(?:\.\d+)?[eE]¯?\d+/,alias:"number"},"word-name":{pattern:/[A-Za-z_][\w¯∞π]*/,alias:"symbol"},"word-number":{pattern:/[¯∞π]?(?:\d*\.?\b\d+(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π))?/,alias:"number"},"null-literal":{pattern:/@/,alias:"char"},"primitive-functions":{pattern:/[-+×÷⋆√⌊⌈|¬∧∨<>≠=≤≥≡≢⊣⊢⥊∾≍⋈↑↓↕«»⌽⍉/⍋⍒⊏⊑⊐⊒∊⍷⊔!]/,alias:"operator"},"primitive-1-operators":{pattern:/[`˜˘¨⁼⌜´˝˙]/,alias:"operator"},"primitive-2-operators":{pattern:/[∘⊸⟜○⌾⎉⚇⍟⊘◶⎊]/,alias:"operator"},punctuation:/[←⇐↩(){}⟨⟩[\]‿·⋄,.;:?]/}}lS.displayName="brainfuck";lS.aliases=[];function lS(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}uS.displayName="brightscript";uS.aliases=[];function uS(e){e.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},e.languages.brightscript["directive-statement"].inside.expression.inside=e.languages.brightscript}cS.displayName="bro";cS.aliases=[];function cS(e){e.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}dS.displayName="bsl";dS.aliases=["oscript"];function dS(e){e.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},e.languages.oscript=e.languages.bsl}pS.displayName="cfscript";pS.aliases=["cfc"];function pS(e){e.register(Ve),e.languages.cfscript=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|:/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),e.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete e.languages.cfscript["class-name"],e.languages.cfc=e.languages.cfscript}fS.displayName="chaiscript";fS.aliases=[];function fS(e){e.register(Ve),e.register(Xs),e.languages.chaiscript=e.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[e.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),e.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),e.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}hS.displayName="cil";hS.aliases=[];function hS(e){e.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}mS.displayName="cilkc";mS.aliases=["cilk-c"];function mS(e){e.register(qr),e.languages.cilkc=e.languages.insertBefore("c","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),e.languages["cilk-c"]=e.languages.cilkc}gS.displayName="cilkcpp";gS.aliases=["cilk","cilk-cpp"];function gS(e){e.register(Xs),e.languages.cilkcpp=e.languages.insertBefore("cpp","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),e.languages["cilk-cpp"]=e.languages.cilkcpp,e.languages.cilk=e.languages.cilkcpp}bS.displayName="clojure";bS.aliases=[];function bS(e){e.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}yS.displayName="cmake";yS.aliases=[];function yS(e){e.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_NAME|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}ES.displayName="cobol";ES.aliases=[];function ES(e){e.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}SS.displayName="coffeescript";SS.aliases=["coffee"];function SS(e){e.register(dn),(function(t){var n=/#(?!\{).+/,r={pattern:/#\{[^}]+\}/,alias:"variable"};t.languages.coffeescript=t.languages.extend("javascript",{comment:n,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:r}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),t.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:n,interpolation:r}}}),t.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:t.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:r}}]}),t.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete t.languages.coffeescript["template-string"],t.languages.coffee=t.languages.coffeescript})(e)}kS.displayName="concurnas";kS.aliases=["conc"];function kS(e){e.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},e.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},string:/[\s\S]+/}}}),e.languages.conc=e.languages.concurnas}vS.displayName="csp";vS.aliases=[];function vS(e){(function(t){function n(r){return RegExp(/([ \t])/.source+"(?:"+r+")"+/(?=[\s;]|$)/.source,"i")}t.languages.csp={directive:{pattern:/(^|[\s;])(?:base-uri|block-all-mixed-content|(?:child|connect|default|font|frame|img|manifest|media|object|prefetch|script|style|worker)-src|disown-opener|form-action|frame-(?:ancestors|options)|input-protection(?:-(?:clip|selectors))?|navigate-to|plugin-types|policy-uri|referrer|reflected-xss|report-(?:to|uri)|require-sri-for|sandbox|(?:script|style)-src-(?:attr|elem)|upgrade-insecure-requests)(?=[\s;]|$)/i,lookbehind:!0,alias:"property"},scheme:{pattern:n(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:n(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:n(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:n(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:n(/[a-z][a-z0-9.+-]*:\/\/[^\s;,']*/.source+"|"+/\*[^\s;,']*/.source+"|"+/[a-z0-9-]+(?:\.[a-z0-9-]+)+(?::[\d*]+)?(?:\/[^\s;,']*)?/.source),lookbehind:!0,alias:"url",inside:{important:/\*/}},keyword:[{pattern:n(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:n(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}})(e)}wS.displayName="cooklang";wS.aliases=[];function wS(e){(function(t){var n=/(?:(?!\s)[\d$+<=a-zA-Z\x80-\uFFFF])+/.source,r=/[^{}@#]+/.source,i=/\{[^}#@]*\}/.source,a=r+i,s=/(?:h|hours|hrs|m|min|minutes)/.source,u={pattern:/\{[^{}]*\}/,inside:{amount:{pattern:/([\{|])[^{}|*%]+/,lookbehind:!0,alias:"number"},unit:{pattern:/(%)[^}]+/,lookbehind:!0,alias:"symbol"},"servings-scaler":{pattern:/\*/,alias:"operator"},"servings-alternative-separator":{pattern:/\|/,alias:"operator"},"unit-separator":{pattern:/(?:%|(\*)%)/,lookbehind:!0,alias:"operator"},punctuation:/[{}]/}};t.languages.cooklang={comment:{pattern:/\[-[\s\S]*?-\]|--.*/,greedy:!0},meta:{pattern:/>>.*:.*/,inside:{property:{pattern:/(>>\s*)[^\s:](?:[^:]*[^\s:])?/,lookbehind:!0}}},"cookware-group":{pattern:new RegExp("#(?:"+a+"|"+n+")"),inside:{cookware:{pattern:new RegExp("(^#)(?:"+r+")"),lookbehind:!0,alias:"variable"},"cookware-keyword":{pattern:/^#/,alias:"keyword"},"quantity-group":{pattern:new RegExp(/\{[^{}@#]*\}/),inside:{quantity:{pattern:new RegExp(/(^\{)/.source+r),lookbehind:!0,alias:"number"},punctuation:/[{}]/}}}},"ingredient-group":{pattern:new RegExp("@(?:"+a+"|"+n+")"),inside:{ingredient:{pattern:new RegExp("(^@)(?:"+r+")"),lookbehind:!0,alias:"variable"},"ingredient-keyword":{pattern:/^@/,alias:"keyword"},"amount-group":u}},"timer-group":{pattern:/~(?!\s)[^@#~{}]*\{[^{}]*\}/,inside:{timer:{pattern:/(^~)[^{]+/,lookbehind:!0,alias:"variable"},"duration-group":{pattern:/\{[^{}]*\}/,inside:{punctuation:/[{}]/,unit:{pattern:new RegExp(/(%\s*)/.source+s+/\b/.source),lookbehind:!0,alias:"symbol"},operator:/%/,duration:{pattern:/\d+/,alias:"number"}}},"timer-keyword":{pattern:/^~/,alias:"keyword"}}}}})(e)}TS.displayName="coq";TS.aliases=[];function TS(e){(function(t){for(var n=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|<self>)*\*\)/.source,r=0;r<2;r++)n=n.replace(/<self>/g,function(){return n});n=n.replace(/<self>/g,"[]"),t.languages.coq={comment:RegExp(n),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|<comment>)*\]/.source.replace(/<comment>/g,function(){return n})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(n),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(e)}Qs.displayName="ruby";Qs.aliases=["rb"];function Qs(e){e.register(Ve),(function(t){t.languages.ruby=t.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),t.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var n={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:t.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete t.languages.ruby.function;var r="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",i=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;t.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+r+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+i),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+i+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),t.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+r),greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+r),greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete t.languages.ruby.string,t.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),t.languages.rb=t.languages.ruby})(e)}xS.displayName="crystal";xS.aliases=[];function xS(e){e.register(Qs),(function(t){t.languages.crystal=t.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,t.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),t.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:t.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:t.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})})(e)}AS.displayName="css-extras";AS.aliases=[];function AS(e){e.register(Ao),(function(t){var n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r;t.languages.css.selector={pattern:t.languages.css.selector.pattern,lookbehind:!0,inside:r={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},t.languages.css.atrule.inside["selector-function-argument"].inside=r,t.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var i={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},a={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};t.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:i,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:i,number:a})})(e)}CS.displayName="csv";CS.aliases=[];function CS(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}RS.displayName="cue";RS.aliases=[];function RS(e){(function(t){var n=/\\(?:(?!\2)|\2(?:[^()\r\n]|\([^()]*\)))/.source,r=/"""(?:[^\\"]|"(?!""\2)|<esc>)*"""/.source+"|"+/'''(?:[^\\']|'(?!''\2)|<esc>)*'''/.source+"|"+/"(?:[^\\\r\n"]|"(?!\2)|<esc>)*"/.source+"|"+/'(?:[^\\\r\n']|'(?!\2)|<esc>)*'/.source,i="(?:"+r.replace(/<esc>/g,n)+")";t.languages.cue={comment:{pattern:/\/\/.*/,greedy:!0},"string-literal":{pattern:RegExp(/(^|[^#"'\\])(#*)/.source+i+/(?!["'])\2/.source),lookbehind:!0,greedy:!0,inside:{escape:{pattern:/(?=[\s\S]*["'](#*)$)\\\1(?:U[a-fA-F0-9]{1,8}|u[a-fA-F0-9]{1,4}|x[a-fA-F0-9]{1,2}|\d{2,3}|[^(])/,greedy:!0,alias:"string"},interpolation:{pattern:/(?=[\s\S]*["'](#*)$)\\\1\([^()]*\)/,greedy:!0,inside:{punctuation:/^\\#*\(|\)$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:{pattern:/(^|[^\w$])(?:for|if|import|in|let|null|package)(?![\w$])/,lookbehind:!0},boolean:{pattern:/(^|[^\w$])(?:false|true)(?![\w$])/,lookbehind:!0},builtin:{pattern:/(^|[^\w$])(?:bool|bytes|float|float(?:32|64)|u?int(?:8|16|32|64|128)?|number|rune|string)(?![\w$])/,lookbehind:!0},attribute:{pattern:/@[\w$]+(?=\s*\()/,alias:"function"},function:{pattern:/(^|[^\w$])[a-z_$][\w$]*(?=\s*\()/i,lookbehind:!0},number:{pattern:/(^|[^\w$.])(?:0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|0[xX][0-9A-Fa-f]+(?:_[0-9A-Fa-f]+)*|(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[eE][+-]?\d+(?:_\d+)*)?(?:[KMGTP]i?)?)(?![\w$])/,lookbehind:!0},operator:/\.{3}|_\|_|&&?|\|\|?|[=!]~|[<>=!]=?|[+\-*/?]/,punctuation:/[()[\]{},.:]/},t.languages.cue["string-literal"].inside.interpolation.inside.expression.inside=t.languages.cue})(e)}NS.displayName="cypher";NS.aliases=[];function NS(e){e.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}_S.displayName="d";_S.aliases=[];function _S(e){e.register(Ve),e.languages.d=e.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),e.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),e.languages.insertBefore("d","keyword",{property:/\B@\w*/}),e.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}OS.displayName="dart";OS.aliases=[];function OS(e){e.register(Ve),(function(t){var n=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],r=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};t.languages.dart=t.languages.extend("clike",{"class-name":[i,{pattern:RegExp(r+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:n,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),t.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.dart}}},string:/[\s\S]+/}},string:void 0}),t.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),t.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(e)}IS.displayName="dataweave";IS.aliases=[];function IS(e){(function(t){t.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(e)}DS.displayName="dax";DS.aliases=[];function DS(e){e.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}LS.displayName="dhall";LS.aliases=[];function LS(e){e.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},e.languages.dhall.string.inside.interpolation.inside.expression.inside=e.languages.dhall}MS.displayName="diff";MS.aliases=[];function MS(e){(function(t){t.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var n={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(n).forEach(function(r){var i=n[r],a=[];/^\w+$/.test(r)||a.push(/\w+/.exec(r)[0]),r==="diff"&&a.push("bold"),t.languages.diff[r]={pattern:RegExp("^(?:["+i+`].*(?:\r
|
|
83
|
+
?|
|
|
84
|
+
|(?![\\s\\S])))+`,"m"),alias:a,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(r)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:n})})(e)}pn.displayName="markup-templating";pn.aliases=[];function pn(e){e.register(an),(function(t){function n(r,i){return"___"+r.toUpperCase()+i+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(r,i,a,s){if(r.language===i){var u=r.tokenStack=[];r.code=r.code.replace(a,function(c){if(typeof s=="function"&&!s(c))return c;for(var p=u.length,f;r.code.indexOf(f=n(i,p))!==-1;)++p;return u[p]=c,f}),r.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(r,i){if(r.language!==i||!r.tokenStack)return;r.grammar=t.languages[i];var a=0,s=Object.keys(r.tokenStack);function u(c){for(var p=0;p<c.length&&!(a>=s.length);p++){var f=c[p];if(typeof f=="string"||f.content&&typeof f.content=="string"){var m=s[a],g=r.tokenStack[m],b=typeof f=="string"?f:f.content,S=n(i,m),k=b.indexOf(S);if(k>-1){++a;var v=b.substring(0,k),w=new t.Token(i,t.tokenize(g,r.grammar),"language-"+i,g),x=b.substring(k+S.length),A=[];v&&A.push.apply(A,u([v])),A.push(w),x&&A.push.apply(A,u([x])),typeof f=="string"?c.splice.apply(c,[p,1].concat(A)):f.content=A}}else f.content&&u(f.content)}return c}u(r.tokens)}}})})(e)}BS.displayName="django";BS.aliases=["jinja2"];function BS(e){e.register(pn),(function(t){t.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var n=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,r=t.languages["markup-templating"];t.hooks.add("before-tokenize",function(i){r.buildPlaceholders(i,"django",n)}),t.hooks.add("after-tokenize",function(i){r.tokenizePlaceholders(i,"django")}),t.languages.jinja2=t.languages.django,t.hooks.add("before-tokenize",function(i){r.buildPlaceholders(i,"jinja2",n)}),t.hooks.add("after-tokenize",function(i){r.tokenizePlaceholders(i,"jinja2")})})(e)}FS.displayName="dns-zone-file";FS.aliases=["dns-zone"];function FS(e){e.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},e.languages["dns-zone"]=e.languages["dns-zone-file"]}zS.displayName="docker";zS.aliases=["dockerfile"];function zS(e){(function(t){var n=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,r=/(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,function(){return n}),i=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,a=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,function(){return i}),s={pattern:RegExp(i),greedy:!0},u={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function c(p,f){return p=p.replace(/<OPT>/g,function(){return a}).replace(/<SP>/g,function(){return r}),RegExp(p,f)}t.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:c(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[s,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:c(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:c(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:c(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:u,string:s,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:u},t.languages.dockerfile=t.languages.docker})(e)}US.displayName="dot";US.aliases=["gv"];function US(e){(function(t){var n="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!<!--)<(?:[^<>"']|"[^"]*"|'[^']*')+>|<!--(?:[^-]|-(?!->))*-->)*>/.source].join("|")+")",r={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:t.languages.markup}};function i(a,s){return RegExp(a.replace(/<ID>/g,function(){return n}),s)}t.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:i(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)<ID>/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:r},"attr-value":{pattern:i(/(=[ \t\r\n]*)<ID>/.source),lookbehind:!0,greedy:!0,inside:r},"attr-name":{pattern:i(/([\[;, \t\r\n])<ID>(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:r},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:i(/(^|[^-.\w\x80-\uFFFF\\])<ID>/.source),lookbehind:!0,greedy:!0,inside:r},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},t.languages.gv=t.languages.dot})(e)}PS.displayName="ebnf";PS.aliases=[];function PS(e){e.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}$S.displayName="editorconfig";$S.aliases=[];function $S(e){e.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}HS.displayName="eiffel";HS.aliases=[];function HS(e){e.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}jS.displayName="ejs";jS.aliases=["eta"];function jS(e){e.register(dn),e.register(pn),(function(t){t.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:t.languages.javascript}},t.hooks.add("before-tokenize",function(n){var r=/<%(?!%)[\s\S]+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"ejs",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"ejs")}),t.languages.eta=t.languages.ejs})(e)}GS.displayName="elixir";GS.aliases=[];function GS(e){e.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},e.languages.elixir.string.forEach(function(t){t.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:e.languages.elixir}}}})}VS.displayName="elm";VS.aliases=[];function VS(e){e.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}Pf.displayName="lua";Pf.aliases=[];function Pf(e){e.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}qS.displayName="etlua";qS.aliases=[];function qS(e){e.register(Pf),e.register(pn),(function(t){t.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:t.languages.lua}},t.hooks.add("before-tokenize",function(n){var r=/<%[\s\S]+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"etlua",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"etlua")})})(e)}WS.displayName="erb";WS.aliases=[];function WS(e){e.register(pn),e.register(Qs),(function(t){t.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:t.languages.ruby}},t.hooks.add("before-tokenize",function(n){var r=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"erb",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"erb")})})(e)}YS.displayName="erlang";YS.aliases=[];function YS(e){e.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|begin|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}KS.displayName="excel-formula";KS.aliases=["xls","xlsx"];function KS(e){e.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"builtin"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"selector",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"selector"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},e.languages.xlsx=e.languages.xls=e.languages["excel-formula"]}XS.displayName="fsharp";XS.aliases=[];function XS(e){e.register(Ve),e.languages.fsharp=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|<?\|{1,3}>?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),e.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),e.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),e.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:e.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}ZS.displayName="factor";ZS.aliases=[];function ZS(e){(function(t){var n={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},r={number:/\\[^\s']|%\w/},i={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:n},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:n}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:r.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:r}},a=function(p){return(p+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},s=function(p){return new RegExp("(^|\\s)(?:"+p.map(a).join("|")+")(?=\\s|$)")},u={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","<wrapper>","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated","<PRIVATE",">>>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","<slice>","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","<iota>","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","<reversed>","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","<repetition>","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","<fp-nan>","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(u).forEach(function(p){i[p].pattern=s(u[p])});var c=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","input<sequence","append-outputs","drop-inputs","inputs","smart-2reduce","drop-outputs","smart-reduce","preserving","smart-when","outputs","append-outputs-as","smart-unless","smart-if*","sum-outputs","input<sequence-unsafe","output>sequence"];i.combinators.pattern=s(c),t.languages.factor=i})(e)}QS.displayName="false";QS.aliases=[];function QS(e){(function(t){t.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()<BDO®]/,alias:"bold"}}})(e)}JS.displayName="firestore-security-rules";JS.aliases=[];function JS(e){e.register(Ve),e.languages["firestore-security-rules"]=e.languages.extend("clike",{comment:/\/\/.*/,keyword:/\b(?:allow|function|if|match|null|return|rules_version|service)\b/,operator:/&&|\|\||[<>!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete e.languages["firestore-security-rules"]["class-name"],e.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}ek.displayName="flow";ek.aliases=[];function ek(e){e.register(dn),(function(t){t.languages.flow=t.languages.extend("javascript",{}),t.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),t.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete t.languages.flow.parameter,t.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(t.languages.flow.keyword)||(t.languages.flow.keyword=[t.languages.flow.keyword]),t.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(e)}tk.displayName="fortran";tk.aliases=[];function tk(e){e.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}nk.displayName="ftl";nk.aliases=[];function nk(e){e.register(pn),(function(t){for(var n=/[^<()"']|\((?:<expr>)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,r=0;r<2;r++)n=n.replace(/<expr>/g,function(){return n});n=n.replace(/<expr>/g,/[^\s\S]/.source);var i={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:<expr>))*\})*\1/.source.replace(/<expr>/g,function(){return n})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:<expr>))*\}/.source.replace(/<expr>/g,function(){return n})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};i.string[1].inside.interpolation.inside.rest=i,t.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}}},t.hooks.add("before-tokenize",function(a){var s=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(/<expr>/g,function(){return n}),"gi");t.languages["markup-templating"].buildPlaceholders(a,"ftl",s)}),t.hooks.add("after-tokenize",function(a){t.languages["markup-templating"].tokenizePlaceholders(a,"ftl")})})(e)}rk.displayName="gml";rk.aliases=["gamemakerlanguage"];function rk(e){e.register(Ve),e.languages.gamemakerlanguage=e.languages.gml=e.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}ik.displayName="gap";ik.aliases=[];function ik(e){e.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},e.languages.gap.shell.inside.gap.inside=e.languages.gap}ak.displayName="gcode";ak.aliases=[];function ak(e){e.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}ok.displayName="gdscript";ok.aliases=[];function ok(e){e.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}sk.displayName="gedcom";sk.aliases=[];function sk(e){e.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},record:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"tag"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}lk.displayName="gettext";lk.aliases=["po"];function lk(e){e.languages.gettext={comment:[{pattern:/# .*/,greedy:!0,alias:"translator-comment"},{pattern:/#\..*/,greedy:!0,alias:"extracted-comment"},{pattern:/#:.*/,greedy:!0,alias:"reference-comment"},{pattern:/#,.*/,greedy:!0,alias:"flag-comment"},{pattern:/#\|.*/,greedy:!0,alias:"previously-untranslated-comment"},{pattern:/#.*/,greedy:!0}],string:{pattern:/(^|[^\\])"(?:[^"\\]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/^msg(?:ctxt|id|id_plural|str)\b/m,number:/\b\d+\b/,punctuation:/[\[\]]/},e.languages.po=e.languages.gettext}uk.displayName="gherkin";uk.aliases=[];function uk(e){(function(t){var n=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;t.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+n+")(?:"+n+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(n),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(e)}ck.displayName="git";ck.aliases=[];function ck(e){e.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}dk.displayName="glsl";dk.aliases=[];function dk(e){e.register(qr),e.languages.glsl=e.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}pk.displayName="gn";pk.aliases=["gni"];function pk(e){e.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},e.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=e.languages.gn,e.languages.gni=e.languages.gn}fk.displayName="linker-script";fk.aliases=["ld"];function fk(e){e.languages["linker-script"]={comment:{pattern:/(^|\s)\/\*[\s\S]*?(?:$|\*\/)/,lookbehind:!0,greedy:!0},identifier:{pattern:/"[^"\r\n]*"/,greedy:!0},"location-counter":{pattern:/\B\.\B/,alias:"important"},section:{pattern:/(^|[^\w*])\.\w+\b/,lookbehind:!0,alias:"keyword"},function:/\b[A-Z][A-Z_]*(?=\s*\()/,number:/\b(?:0[xX][a-fA-F0-9]+|\d+)[KM]?\b/,operator:/>>=?|<<=?|->|\+\+|--|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?/,punctuation:/[(){},;]/},e.languages.ld=e.languages["linker-script"]}hk.displayName="go";hk.aliases=[];function hk(e){e.register(Ve),e.languages.go=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),e.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete e.languages.go["class-name"]}mk.displayName="go-module";mk.aliases=["go-mod"];function mk(e){e.languages["go-mod"]=e.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}gk.displayName="gradle";gk.aliases=[];function gk(e){e.register(Ve),(function(t){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.gradle=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:apply|def|dependencies|else|if|implementation|import|plugin|plugins|project|repositories|repository|sourceSets|tasks|val)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("gradle","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),t.languages.insertBefore("gradle","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("gradle","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=t.languages.gradle})(e)}bk.displayName="graphql";bk.aliases=[];function bk(e){e.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:e.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},e.hooks.add("after-tokenize",function(n){if(n.language!=="graphql")return;var r=n.tokens.filter(function(v){return typeof v!="string"&&v.type!=="comment"&&v.type!=="scalar"}),i=0;function a(v){return r[i+v]}function s(v,w){w=w||0;for(var x=0;x<v.length;x++){var A=a(x+w);if(!A||A.type!==v[x])return!1}return!0}function u(v,w){for(var x=1,A=i;A<r.length;A++){var D=r[A],O=D.content;if(D.type==="punctuation"&&typeof O=="string"){if(v.test(O))x++;else if(w.test(O)&&(x--,x===0))return A}}return-1}function c(v,w){var x=v.alias;x?Array.isArray(x)||(v.alias=x=[x]):v.alias=x=[],x.push(w)}for(;i<r.length;){var p=r[i++];if(p.type==="keyword"&&p.content==="mutation"){var f=[];if(s(["definition-mutation","punctuation"])&&a(1).content==="("){i+=2;var m=u(/^\($/,/^\)$/);if(m===-1)continue;for(;i<m;i++){var g=a(0);g.type==="variable"&&(c(g,"variable-input"),f.push(g.content))}i=m+1}if(s(["punctuation","property-query"])&&a(0).content==="{"&&(i++,c(a(0),"property-mutation"),f.length>0)){var b=u(/^\{$/,/^\}$/);if(b===-1)continue;for(var S=i;S<b;S++){var k=r[S];k.type==="variable"&&f.indexOf(k.content)>=0&&c(k,"variable-input")}}}}})}yk.displayName="groovy";yk.aliases=[];function yk(e){e.register(Ve),(function(t){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.groovy=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),t.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=t.languages.groovy})(e)}Ek.displayName="less";Ek.aliases=[];function Ek(e){e.register(Ao),e.languages.less=e.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),e.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}Sk.displayName="scss";Sk.aliases=[];function Sk(e){e.register(Ao),e.languages.scss=e.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),e.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),e.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),e.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),e.languages.scss.atrule.inside.rest=e.languages.scss}kk.displayName="textile";kk.aliases=[];function kk(e){e.register(an),(function(t){var n=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,r=/\)|\((?![^|()\n]+\))/.source;function i(m,g){return RegExp(m.replace(/<MOD>/g,function(){return"(?:"+n+")"}).replace(/<PAR>/g,function(){return"(?:"+r+")"}),g||"")}var a={css:{pattern:/\{[^{}]+\}/,inside:{rest:t.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},s=t.languages.textile=t.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:i(/^[a-z]\w*(?:<MOD>|<PAR>|[<>=])*\./.source),inside:{modifier:{pattern:i(/(^[a-z]\w*)(?:<MOD>|<PAR>|[<>=])+(?=\.)/.source),lookbehind:!0,inside:a},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:i(/^[*#]+<MOD>*\s+\S.*/.source,"m"),inside:{modifier:{pattern:i(/(^[*#]+)<MOD>+/.source),lookbehind:!0,inside:a},punctuation:/^[*#]+/}},table:{pattern:i(/^(?:(?:<MOD>|<PAR>|[<>=^~])+\.\s*)?(?:\|(?:(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.|(?!(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:i(/(^|\|(?:\r?\n|\r)?)(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:a},punctuation:/\||^\./}},inline:{pattern:i(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])<MOD>*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:i(/(^(\*\*?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:i(/(^(__?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:i(/(^\?\?<MOD>*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:i(/(^@<MOD>*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:i(/(^\+<MOD>*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:i(/(^-<MOD>*).+?(?=-)/.source),lookbehind:!0},span:{pattern:i(/(^%<MOD>*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:i(/(^\*\*|__|\?\?|[*_%@+\-^~])<MOD>+/.source),lookbehind:!0,inside:a},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:i(/"<MOD>*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:i(/(^"<MOD>*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:i(/(^")<MOD>+/.source),lookbehind:!0,inside:a},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:i(/!(?:<MOD>|<PAR>|[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:i(/(^!(?:<MOD>|<PAR>|[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:i(/(^!)(?:<MOD>|<PAR>|[<>=])+/.source),lookbehind:!0,inside:a},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),u=s.phrase.inside,c={inline:u.inline,link:u.link,image:u.image,footnote:u.footnote,acronym:u.acronym,mark:u.mark};s.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var p=u.inline.inside;p.bold.inside=c,p.italic.inside=c,p.inserted.inside=c,p.deleted.inside=c,p.span.inside=c;var f=u.table.inside;f.inline=c.inline,f.link=c.link,f.image=c.image,f.footnote=c.footnote,f.acronym=c.acronym,f.mark=c.mark})(e)}vk.displayName="haml";vk.aliases=[];function vk(e){e.register(Qs),(function(t){t.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:t.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:t.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:t.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:t.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:t.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:t.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var n="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",r=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],i={},a=0,s=r.length;a<s;a++){var u=r[a];u=typeof u=="string"?{filter:u,language:u}:u,t.languages[u.language]&&(i["filter-"+u.filter]={pattern:RegExp(n.replace("{{filter_name}}",function(){return u.filter})),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"},text:{pattern:/[\s\S]+/,alias:[u.language,"language-"+u.language],inside:t.languages[u.language]}}})}t.languages.insertBefore("haml","filter",i)})(e)}wk.displayName="handlebars";wk.aliases=["hbs","mustache"];function wk(e){e.register(pn),(function(t){t.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},t.hooks.add("before-tokenize",function(n){var r=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;t.languages["markup-templating"].buildPlaceholders(n,"handlebars",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"handlebars")}),t.languages.hbs=t.languages.handlebars,t.languages.mustache=t.languages.handlebars})(e)}oc.displayName="haskell";oc.aliases=["hs"];function oc(e){e.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},e.languages.hs=e.languages.haskell}Tk.displayName="haxe";Tk.aliases=[];function Tk(e){e.register(Ve),e.languages.haxe=e.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<<?|>{1,3}|[-+*/%!=&|^])=?|[?:~]/}),e.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.haxe}}},string:/[\s\S]+/}}}),e.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),e.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}xk.displayName="hcl";xk.aliases=[];function xk(e){e.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}Ak.displayName="hlsl";Ak.aliases=[];function Ak(e){e.register(qr),e.languages.hlsl=e.languages.extend("c",{"class-name":[e.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}Ck.displayName="hoon";Ck.aliases=[];function Ck(e){e.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}Rk.displayName="hpkp";Rk.aliases=[];function Rk(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}Nk.displayName="hsts";Nk.aliases=[];function Nk(e){e.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}sc.displayName="json";sc.aliases=["webmanifest"];function sc(e){e.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},e.languages.webmanifest=e.languages.json}_k.displayName="uri";_k.aliases=["url"];function _k(e){e.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},e.languages.url=e.languages.uri}Ok.displayName="http";Ok.aliases=[];function Ok(e){(function(t){function n(f){return RegExp("(^(?:"+f+"):[ ]*(?![ ]))[^]+","i")}t.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:t.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:n(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:t.languages.csp},{pattern:n(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:t.languages.hpkp},{pattern:n(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:t.languages.hsts},{pattern:n(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var r=t.languages,i={"application/javascript":r.javascript,"application/json":r.json||r.javascript,"application/xml":r.xml,"text/xml":r.xml,"text/html":r.html,"text/css":r.css,"text/plain":r.plain},a={"application/json":!0,"application/xml":!0};function s(f){var m=f.replace(/^[a-z]+\//,""),g="\\w+/(?:[\\w.-]+\\+)+"+m+"(?![+\\w.-])";return"(?:"+f+"|"+g+")"}var u;for(var c in i)if(i[c]){u=u||{};var p=a[c]?s(c):c;u[c.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+p+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:i[c]}}u&&t.languages.insertBefore("http","header",u)})(e)}Ik.displayName="ichigojam";Ik.aliases=[];function Ik(e){e.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}Dk.displayName="icon";Dk.aliases=[];function Dk(e){e.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|<?=?)|>>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}Lk.displayName="icu-message-format";Lk.aliases=[];function Lk(e){(function(t){function n(c,p){return p<=0?/[]/.source:c.replace(/<SELF>/g,function(){return n(c,p-1)})}var r=/'[{}:=,](?:[^']|'')*'(?!')/,i={pattern:/''/,greedy:!0,alias:"operator"},a={pattern:r,greedy:!0,inside:{escape:i}},s=n(/\{(?:[^{}']|'(?![{},'])|''|<STR>|<SELF>)*\}/.source.replace(/<STR>/g,function(){return r.source}),8),u={pattern:RegExp(s),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};t.languages["icu-message-format"]={argument:{pattern:RegExp(s),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":u,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":u,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+n(/(?:[^{}']|'[^']*'|\{(?:<SELF>)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:i,string:a},u.inside.message.inside=t.languages["icu-message-format"],t.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=t.languages["icu-message-format"]})(e)}Mk.displayName="idris";Mk.aliases=["idr"];function Mk(e){e.register(oc),e.languages.idris=e.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),e.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.idr=e.languages.idris}Bk.displayName="ignore";Bk.aliases=["gitignore","hgignore","npmignore"];function Bk(e){(function(t){t.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},t.languages.gitignore=t.languages.ignore,t.languages.hgignore=t.languages.ignore,t.languages.npmignore=t.languages.ignore})(e)}Fk.displayName="inform7";Fk.aliases=[];function Fk(e){e.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},e.languages.inform7.string.inside.substitution.inside.rest=e.languages.inform7,e.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}zk.displayName="ini";zk.aliases=[];function zk(e){e.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}Uk.displayName="io";Uk.aliases=[];function Uk(e){e.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<<?=?|:?:?=|\+\+?|--?|\*\*?|\/\/?|%|\|\|?|&&?|\b(?:and|not|or|return)\b|@@?|\?\??|\.\./,punctuation:/[{}[\];(),.:]/}}Pk.displayName="j";Pk.aliases=[];function Pk(e){e.languages.j={comment:{pattern:/\bNB\..*/,greedy:!0},string:{pattern:/'(?:''|[^'\r\n])*'/,greedy:!0},keyword:/\b(?:(?:CR|LF|adverb|conjunction|def|define|dyad|monad|noun|verb)\b|(?:assert|break|case|catch[dt]?|continue|do|else|elseif|end|fcase|for|for_\w+|goto_\w+|if|label_\w+|return|select|throw|try|while|whilst)\.)/,verb:{pattern:/(?!\^:|;\.|[=!][.:])(?:\{(?:\.|::?)?|p(?:\.\.?|:)|[=!\]]|[<>+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}Js.displayName="java";Js.aliases=[];function Js(e){e.register(Ve),(function(t){var n=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,r=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[i,{pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:i.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+r+/[A-Z]\w*\b/.source),lookbehind:!0,inside:i.inside}],keyword:n,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+r+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:i.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+r+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:i.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return n.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(e)}el.displayName="php";el.aliases=[];function el(e){e.register(pn),(function(t){var n=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,r=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],i=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,a=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,s=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:n,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:i,operator:a,punctuation:s};var u={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},c=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:u}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:u}}];t.languages.insertBefore("php","variable",{string:c,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:n,string:c,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,number:i,operator:a,punctuation:s}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",function(p){if(/<\?/.test(p.code)){var f=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;t.languages["markup-templating"].buildPlaceholders(p,"php",f)}}),t.hooks.add("after-tokenize",function(p){t.languages["markup-templating"].tokenizePlaceholders(p,"php")})})(e)}tl.displayName="javadoclike";tl.aliases=[];function tl(e){(function(t){var n=t.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function r(a,s){var u="doc-comment",c=t.languages[a];if(c){var p=c[u];if(!p){var f={};f[u]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},c=t.languages.insertBefore(a,"comment",f),p=c[u]}if(p instanceof RegExp&&(p=c[u]={pattern:p}),Array.isArray(p))for(var m=0,g=p.length;m<g;m++)p[m]instanceof RegExp&&(p[m]={pattern:p[m]}),s(p[m]);else s(p)}}function i(a,s){typeof a=="string"&&(a=[a]),a.forEach(function(u){r(u,function(c){c.inside||(c.inside={}),c.inside.rest=s})})}Object.defineProperty(n,"addSupport",{value:i}),n.addSupport(["java","javascript","php"],n)})(e)}$k.displayName="scala";$k.aliases=[];function $k(e){e.register(Js),e.languages.scala=e.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|derives|do|else|enum|extends|extension|final|finally|for|forSome|given|if|implicit|import|infix|inline|lazy|match|new|null|object|opaque|open|override|package|private|protected|return|sealed|self|super|this|throw|trait|transparent|try|type|using|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),e.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.scala}}},string:/[\s\S]+/}}}),delete e.languages.scala["class-name"],delete e.languages.scala.function,delete e.languages.scala.constant}Hk.displayName="javadoc";Hk.aliases=[];function Hk(e){e.register(Js),e.register(tl),e.register(an),(function(t){var n=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,r=/#\s*\w+(?:\s*\([^()]*\))?/.source,i=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*<mem>)?|<mem>/.source.replace(/<mem>/g,function(){return r});t.languages.javadoc=t.languages.extend("javadoclike",{}),t.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+i+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:t.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:n,lookbehind:!0,inside:t.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!<code>)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:n,lookbehind:!0,inside:{tag:t.languages.markup.tag,entity:t.languages.markup.entity,code:{pattern:/.+/,inside:t.languages.java,alias:"language-java"}}}}}],tag:t.languages.markup.tag,entity:t.languages.markup.entity}),t.languages.javadoclike.addSupport("java",t.languages.javadoc)})(e)}jk.displayName="javastacktrace";jk.aliases=[];function jk(e){e.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:<init>)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:<init>|[\w$]+)\()/,function:/(?:<init>|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}Gk.displayName="jexl";Gk.aliases=[];function Gk(e){e.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}Vk.displayName="jolie";Vk.aliases=[];function Vk(e){e.register(Ve),e.languages.jolie=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),e.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}qk.displayName="jq";qk.aliases=[];function qk(e){(function(t){var n=/\\\((?:[^()]|\([^()]*\))*\)/.source,r=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return n})),i={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+n),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},a=t.languages.jq={comment:/#.*/,property:{pattern:RegExp(r.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:i},string:{pattern:r,lookbehind:!0,greedy:!0,inside:i},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};i.interpolation.inside.content.inside=a})(e)}Wk.displayName="js-templates";Wk.aliases=[];function Wk(e){e.register(dn),(function(t){var n=t.languages.javascript["template-string"],r=n.pattern.source,i=n.inside.interpolation,a=i.inside["interpolation-punctuation"],s=i.pattern.source;function u(S,k){if(t.languages[S])return{pattern:RegExp("((?:"+k+")\\s*)"+r),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:S}}}}t.languages.javascript["template-string"]=[u("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),u("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),u("svg",/\bsvg/.source),u("markdown",/\b(?:markdown|md)/.source),u("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),u("sql",/\bsql/.source),n].filter(Boolean);function c(S,k){return"___"+k.toUpperCase()+"_"+S+"___"}function p(S,k,v){var w={code:S,grammar:k,language:v};return t.hooks.run("before-tokenize",w),w.tokens=t.tokenize(w.code,w.grammar),t.hooks.run("after-tokenize",w),w.tokens}function f(S){var k={};k["interpolation-punctuation"]=a;var v=t.tokenize(S,k);if(v.length===3){var w=[1,1];w.push.apply(w,p(v[1],t.languages.javascript,"javascript")),v.splice.apply(v,w)}return new t.Token("interpolation",v,i.alias,S)}function m(S,k,v){var w=t.tokenize(S,{interpolation:{pattern:RegExp(s),lookbehind:!0}}),x=0,A={},D=w.map(function(U){if(typeof U=="string")return U;for(var G=U.content,F;S.indexOf(F=c(x++,v))!==-1;);return A[F]=G,F}).join(""),O=p(D,k,v),R=Object.keys(A);x=0;function M(U){for(var G=0;G<U.length;G++){if(x>=R.length)return;var F=U[G];if(typeof F=="string"||typeof F.content=="string"){var Q=R[x],q=typeof F=="string"?F:F.content,te=q.indexOf(Q);if(te!==-1){++x;var J=q.substring(0,te),Z=f(A[Q]),$=q.substring(te+Q.length),W=[];if(J&&W.push(J),W.push(Z),$){var re=[$];M(re),W.push.apply(W,re)}typeof F=="string"?(U.splice.apply(U,[G,1].concat(W)),G+=W.length-1):F.content=W}}else{var he=F.content;Array.isArray(he)?M(he):M([he])}}}return M(O),new t.Token(v,O,"language-"+v,S)}var g={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};t.hooks.add("after-tokenize",function(S){if(!(S.language in g))return;function k(v){for(var w=0,x=v.length;w<x;w++){var A=v[w];if(typeof A!="string"){var D=A.content;if(!Array.isArray(D)){typeof D!="string"&&k([D]);continue}if(A.type==="template-string"){var O=D[1];if(D.length===3&&typeof O!="string"&&O.type==="embedded-code"){var R=b(O),M=O.alias,U=Array.isArray(M)?M[0]:M,G=t.languages[U];if(!G)continue;D[1]=m(R,G,U)}}else k(D)}}}k(S.tokens)});function b(S){return typeof S=="string"?S:Array.isArray(S)?S.map(b).join(""):b(S.content)}})(e)}lc.displayName="typescript";lc.aliases=["ts"];function lc(e){e.register(dn),(function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var n=t.languages.extend("typescript",{});delete n["class-name"],t.languages.typescript["class-name"].inside=n,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:n}}}}),t.languages.ts=t.languages.typescript})(e)}Yk.displayName="jsdoc";Yk.aliases=[];function Yk(e){e.register(tl),e.register(dn),e.register(lc),(function(t){var n=t.languages.javascript,r=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,i="(@(?:arg|argument|param|property)\\s+(?:"+r+"\\s+)?)";t.languages.jsdoc=t.languages.extend("javadoclike",{parameter:{pattern:RegExp(i+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),t.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(i+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:n,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,function(){return r})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+r),lookbehind:!0,inside:{string:n.string,number:n.number,boolean:n.boolean,keyword:t.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:n,alias:"language-javascript"}}}}),t.languages.javadoclike.addSupport("javascript",t.languages.jsdoc)})(e)}Kk.displayName="n4js";Kk.aliases=["n4jsd"];function Kk(e){e.register(dn),e.languages.n4js=e.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),e.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),e.languages.n4jsd=e.languages.n4js}Xk.displayName="js-extras";Xk.aliases=[];function Xk(e){e.register(dn),(function(t){t.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+t.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),t.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+t.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),t.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function n(c,p){return RegExp(c.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),p)}t.languages.insertBefore("javascript","keyword",{imports:{pattern:n(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:t.languages.javascript},exports:{pattern:n(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:t.languages.javascript}}),t.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),t.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),t.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:n(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var r=["function","function-variable","method","method-variable","property-access"],i=0;i<r.length;i++){var a=r[i],s=t.languages.javascript[a];t.util.type(s)==="RegExp"&&(s=t.languages.javascript[a]={pattern:s});var u=s.inside||{};s.inside=u,u["maybe-class-name"]=/^[A-Z][\s\S]*/}})(e)}Zk.displayName="json5";Zk.aliases=[];function Zk(e){e.register(sc),(function(t){var n=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;t.languages.json5=t.languages.extend("json",{property:[{pattern:RegExp(n.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:n,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})})(e)}Qk.displayName="jsonp";Qk.aliases=[];function Qk(e){e.register(sc),e.languages.jsonp=e.languages.extend("json",{punctuation:/[{}[\]();,.]/}),e.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}Jk.displayName="jsstacktrace";Jk.aliases=[];function Jk(e){e.languages.jsstacktrace={"error-message":{pattern:/^\S.*/m,alias:"string"},"stack-frame":{pattern:/(^[ \t]+)at[ \t].*/m,lookbehind:!0,inside:{"not-my-code":{pattern:/^at[ \t]+(?!\s)(?:node\.js|<unknown>|.*(?:node_modules|\(<anonymous>\)|\(<unknown>|<anonymous>$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}ev.displayName="julia";ev.aliases=[];function ev(e){e.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}tv.displayName="keepalived";tv.aliases=[];function tv(e){e.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}<ipv4>|(?:[\da-f]{1,4}:){0,5}:<ipv4>|::(?:[\da-f]{1,4}:){0,5}<ipv4>|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|<ipv4>(?:\/\d{1,2})?)\b/.source.replace(/<ipv4>/g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}nv.displayName="keyman";nv.aliases=[];function nv(e){e.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|newcontext|nomatch|postkeystroke|readonly|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}rv.displayName="kotlin";rv.aliases=["kt","kts"];function rv(e){e.register(Ve),(function(t){t.languages.kotlin=t.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete t.languages.kotlin["class-name"];var n={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.kotlin}};t.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:n},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:n},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete t.languages.kotlin.string,t.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),t.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),t.languages.kt=t.languages.kotlin,t.languages.kts=t.languages.kotlin})(e)}iv.displayName="kumir";iv.aliases=["kum"];function iv(e){(function(t){var n=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function r(i,a){return RegExp(i.replace(/<nonId>/g,n),a)}t.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:r(/(^|[<nonId>])(?:да|нет)(?=[<nonId>]|$)/.source),lookbehind:!0},"operator-word":{pattern:r(/(^|[<nonId>])(?:и|или|не)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:r(/(^|[<nonId>])знач(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:r(/(^|[<nonId>])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:r(/(^|[<nonId>])(?:компл|сканкод|файл|цвет)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:r(/(^|[<nonId>])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[<nonId>]|$)/.source),lookbehind:!0},name:{pattern:r(/(^|[<nonId>])[^\d<nonId>][^<nonId>]*(?:\x20+[^<nonId>]+)*(?=[<nonId>]|$)/.source),lookbehind:!0},number:{pattern:r(/(^|[<nonId>])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[<nonId>]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},t.languages.kum=t.languages.kumir})(e)}av.displayName="kusto";av.aliases=[];function av(e){e.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}ov.displayName="latex";ov.aliases=["context","tex"];function ov(e){(function(t){var n=/\\(?:[^a-z()[\]]|[a-z*]+)/i,r={"equation-command":{pattern:n,alias:"regex"}};t.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:r,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:r,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:n,alias:"selector"},punctuation:/[[\]{}&]/},t.languages.tex=t.languages.latex,t.languages.context=t.languages.latex})(e)}sv.displayName="latte";sv.aliases=[];function sv(e){e.register(Ve),e.register(pn),e.register(el),(function(t){t.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:t.languages.php}};var n=t.languages.extend("markup",{});t.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:t.languages.php}}}}}},n.tag),t.hooks.add("before-tokenize",function(r){if(r.language==="latte"){var i=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;t.languages["markup-templating"].buildPlaceholders(r,"latte",i),r.grammar=n}}),t.hooks.add("after-tokenize",function(r){t.languages["markup-templating"].tokenizePlaceholders(r,"latte")})})(e)}uc.displayName="scheme";uc.aliases=[];function uc(e){(function(t){t.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(n({"<ureal dec>":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"<real dec>":/[+-]?<ureal dec>|[+-](?:inf|nan)\.0/.source,"<imaginary dec>":/[+-](?:<ureal dec>|(?:inf|nan)\.0)?i/.source,"<complex dec>":/<real dec>(?:@<real dec>|<imaginary dec>)?|<imaginary dec>/.source,"<num dec>":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?<complex dec>/.source,"<ureal box>":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"<real box>":/[+-]?<ureal box>|[+-](?:inf|nan)\.0/.source,"<imaginary box>":/[+-](?:<ureal box>|(?:inf|nan)\.0)?i/.source,"<complex box>":/<real box>(?:@<real box>|<imaginary box>)?|<imaginary box>/.source,"<num box>":/#[box](?:#[ei])?|(?:#[ei])?#[box]<complex box>/.source,"<number>":/(^|[()\[\]\s])(?:<num dec>|<num box>)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function n(r){for(var i in r)r[i]=r[i].replace(/<[\w\s]+>/g,function(a){return"(?:"+r[a].trim()+")"});return r[i]}})(e)}lv.displayName="lilypond";lv.aliases=["ly"];function lv(e){e.register(uc),(function(t){for(var n=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|<expr>)*\)/.source,r=5,i=0;i<r;i++)n=n.replace(/<expr>/g,function(){return n});n=n.replace(/<expr>/g,/[^\s\S]/.source);var a=t.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|<expr>))/.source.replace(/<expr>/g,function(){return n}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:t.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};a["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=a,t.languages.ly=a})(e)}uv.displayName="liquid";uv.aliases=[];function uv(e){e.register(pn),e.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},e.hooks.add("before-tokenize",function(t){var n=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,r=!1;e.languages["markup-templating"].buildPlaceholders(t,"liquid",n,function(i){var a=/^\{%-?\s*(\w+)/.exec(i);if(a){var s=a[1];if(s==="raw"&&!r)return r=!0,!0;if(s==="endraw")return r=!1,!0}return!r})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"liquid")})}cv.displayName="lisp";cv.aliases=["elisp","emacs","emacs-lisp"];function cv(e){(function(t){function n(S){return RegExp(/(\()/.source+"(?:"+S+")"+/(?=[\s\)])/.source)}function r(S){return RegExp(/([\s([])/.source+"(?:"+S+")"+/(?=[\s)])/.source)}var i=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,a="&"+i,s="(\\()",u="(?=\\))",c="(?=\\s)",p=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,f={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+i+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+i),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+i),alias:"property"},splice:{pattern:RegExp(",@?"+i),alias:["symbol","variable"]},keyword:[{pattern:RegExp(s+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+c),lookbehind:!0},{pattern:RegExp(s+"(?:append|by|collect|concat|do|finally|for|in|return)"+c),lookbehind:!0}],declare:{pattern:n(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:n(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:r(/nil|t/.source),lookbehind:!0},number:{pattern:r(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(s+"def(?:const|custom|group|var)\\s+"+i),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(i)}},defun:{pattern:RegExp(s+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+i+/\s+\(/.source+p+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+i),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(s+"lambda\\s+\\(\\s*(?:&?"+i+"(?:\\s+&?"+i+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(s+i),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},m={"lisp-marker":RegExp(a),varform:{pattern:RegExp(/\(/.source+i+/\s+(?=\S)/.source+p+/\)/.source),inside:f},argument:{pattern:RegExp(/(^|[\s(])/.source+i),lookbehind:!0,alias:"variable"},rest:f},g="\\S+(?:\\s+\\S+)*",b={pattern:RegExp(s+p+u),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+g),inside:m},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+g),inside:m},keys:{pattern:RegExp("&key\\s+"+g+"(?:\\s+&allow-other-keys)?"),inside:m},argument:{pattern:RegExp(i),alias:"variable"},punctuation:/[()]/}};f.lambda.inside.arguments=b,f.defun.inside.arguments=t.util.clone(b),f.defun.inside.arguments.inside.sublist=b,t.languages.lisp=f,t.languages.elisp=f,t.languages.emacs=f,t.languages["emacs-lisp"]=f})(e)}dv.displayName="livescript";dv.aliases=[];function dv(e){e.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<<?<?|--?!?|~~?!?|[|=?])?|>[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},e.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=e.languages.livescript}pv.displayName="llvm";pv.aliases=[];function pv(e){(function(t){t.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(e)}fv.displayName="log";fv.aliases=[];function fv(e){e.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:e.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}hv.displayName="lolcode";hv.aliases=[];function hv(e){e.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}mv.displayName="magma";mv.aliases=[];function mv(e){e.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}gv.displayName="makefile";gv.aliases=[];function gv(e){e.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}$f.displayName="mata";$f.aliases=[];function $f(e){(function(t){var n=/\b(?:(?:col|row)?vector|matrix|scalar)\b/.source,r=/\bvoid\b|<org>|\b(?:complex|numeric|pointer(?:\s*\([^()]*\))?|real|string|(?:class|struct)\s+\w+|transmorphic)(?:\s*<org>)?/.source.replace(/<org>/g,n);t.languages.mata={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|struct)\s+)\w+(?=\s*(?:\{|\bextends\b))/,lookbehind:!0},type:{pattern:RegExp(r),alias:"class-name",inside:{punctuation:/[()]/,keyword:/\b(?:class|function|struct|void)\b/}},keyword:/\b(?:break|class|continue|do|else|end|extends|external|final|for|function|goto|if|pragma|private|protected|public|return|static|struct|unset|unused|version|virtual|while)\b/,constant:/\bNULL\b/,number:{pattern:/(^|[^\w.])(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|\d[a-f0-9]*(?:\.[a-f0-9]+)?x[+-]?\d+)i?(?![\w.])/i,lookbehind:!0},missing:{pattern:/(^|[^\w.])(?:\.[a-z]?)(?![\w.])/,lookbehind:!0,alias:"symbol"},function:/\b[a-z_]\w*(?=\s*\()/i,operator:/\.\.|\+\+|--|&&|\|\||:?(?:[!=<>]=|[+\-*/^<>&|:])|[!?=\\#’`']/,punctuation:/[()[\]{},;.]/}})(e)}bv.displayName="matlab";bv.aliases=[];function bv(e){e.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}yv.displayName="maxscript";yv.aliases=[];function yv(e){(function(t){var n=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;t.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+n.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+n.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:n,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(e)}Ev.displayName="mel";Ev.aliases=[];function Ev(e){e.languages.mel={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},code:{pattern:/`(?:\\.|[^\\`])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},statement:{pattern:/[\s\S]+/,inside:null}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:{pattern:/((?:^|[{;])[ \t]*)[a-z_]\w*\b(?!\s*(?:\.(?!\.)|[[{=]))|\b[a-z_]\w*(?=[ \t]*\()/im,lookbehind:!0,greedy:!0},"tensor-punctuation":{pattern:/<<|>>/,alias:"punctuation"},operator:/\+[+=]?|-[-=]?|&&|\|\||[<>]=?|[*\/!=]=?|[%^]/,punctuation:/[.,:;?\[\](){}]/},e.languages.mel.code.inside.statement.inside=e.languages.mel}Sv.displayName="mermaid";Sv.aliases=[];function Sv(e){e.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[<ox](?:==+|--+|-\.*-)[>ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}kv.displayName="metafont";kv.aliases=[];function kv(e){e.languages.metafont={comment:{pattern:/%.*/,greedy:!0},string:{pattern:/"[^\r\n"]*"/,greedy:!0},number:/\d*\.?\d+/,boolean:/\b(?:false|true)\b/,punctuation:[/[,;()]/,{pattern:/(^|[^{}])(?:\{|\})(?![{}])/,lookbehind:!0},{pattern:/(^|[^[])\[(?!\[)/,lookbehind:!0},{pattern:/(^|[^\]])\](?!\])/,lookbehind:!0}],constant:[{pattern:/(^|[^!?])\?\?\?(?![!?])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\\|\\\\)(?![/*\\])/,lookbehind:!0},/\b(?:_|blankpicture|bp|cc|cm|dd|ditto|down|eps|epsilon|fullcircle|halfcircle|identity|in|infinity|left|mm|nullpen|nullpicture|origin|pc|penrazor|penspeck|pensquare|penstroke|proof|pt|quartercircle|relax|right|smoke|unitpixel|unitsquare|up)\b/],quantity:{pattern:/\b(?:autorounding|blacker|boundarychar|charcode|chardp|chardx|chardy|charext|charht|charic|charwd|currentwindow|day|designsize|displaying|fillin|fontmaking|granularity|hppp|join_radius|month|o_correction|pausing|pen_(?:bot|lft|rt|top)|pixels_per_inch|proofing|showstopping|smoothing|time|tolerance|tracingcapsules|tracingchoices|tracingcommands|tracingedges|tracingequations|tracingmacros|tracingonline|tracingoutput|tracingpens|tracingrestores|tracingspecs|tracingstats|tracingtitles|turningcheck|vppp|warningcheck|xoffset|year|yoffset)\b/,alias:"keyword"},command:{pattern:/\b(?:addto|batchmode|charlist|cull|display|errhelp|errmessage|errorstopmode|everyjob|extensible|fontdimen|headerbyte|inner|interim|let|ligtable|message|newinternal|nonstopmode|numspecial|openwindow|outer|randomseed|save|scrollmode|shipout|show|showdependencies|showstats|showtoken|showvariable|special)\b/,alias:"builtin"},operator:[{pattern:/(^|[^>=<:|])(?:<|<=|=|=:|\|=:|\|=:>|=:\|>|=:\||\|=:\||\|=:\|>|\|=:\|>>|>|>=|:|:=|<>|::|\|\|:)(?![>=<:|])/,lookbehind:!0},{pattern:/(^|[^+-])(?:\+|\+\+|-{1,3}|\+-\+)(?![+-])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\*|\*\*|\/)(?![/*\\])/,lookbehind:!0},{pattern:/(^|[^.])(?:\.{2,3})(?!\.)/,lookbehind:!0},{pattern:/(^|[^@#&$])&(?![@#&$])/,lookbehind:!0},/\b(?:and|not|or)\b/],macro:{pattern:/\b(?:abs|beginchar|bot|byte|capsule_def|ceiling|change_width|clear_pen_memory|clearit|clearpen|clearxy|counterclockwise|cullit|cutdraw|cutoff|decr|define_blacker_pixels|define_corrected_pixels|define_good_x_pixels|define_good_y_pixels|define_horizontal_corrected_pixels|define_pixels|define_whole_blacker_pixels|define_whole_pixels|define_whole_vertical_blacker_pixels|define_whole_vertical_pixels|dir|direction|directionpoint|div|dotprod|downto|draw|drawdot|endchar|erase|fill|filldraw|fix_units|flex|font_coding_scheme|font_extra_space|font_identifier|font_normal_shrink|font_normal_space|font_normal_stretch|font_quad|font_size|font_slant|font_x_height|gfcorners|gobble|gobbled|good\.(?:bot|lft|rt|top|x|y)|grayfont|hide|hround|imagerules|incr|interact|interpath|intersectionpoint|inverse|italcorr|killtext|labelfont|labels|lft|loggingall|lowres_fix|makegrid|makelabel(?:\.(?:bot|lft|rt|top)(?:\.nodot)?)?|max|min|mod|mode_def|mode_setup|nodisplays|notransforms|numtok|openit|penlabels|penpos|pickup|proofoffset|proofrule|proofrulethickness|range|reflectedabout|rotatedabout|rotatedaround|round|rt|savepen|screenchars|screenrule|screenstrokes|shipit|showit|slantfont|softjoin|solve|stop|superellipse|tensepath|thru|titlefont|top|tracingall|tracingnone|undraw|undrawdot|unfill|unfilldraw|upto|vround)\b/,alias:"function"},builtin:/\b(?:ASCII|angle|char|cosd|decimal|directiontime|floor|hex|intersectiontimes|jobname|known|length|makepath|makepen|mexp|mlog|normaldeviate|oct|odd|pencircle|penoffset|point|postcontrol|precontrol|reverse|rotated|sind|sqrt|str|subpath|substring|totalweight|turningnumber|uniformdeviate|unknown|xpart|xxpart|xypart|ypart|yxpart|yypart)\b/,keyword:/\b(?:also|at|atleast|begingroup|charexists|contour|controls|curl|cycle|def|delimiters|doublepath|dropping|dump|else|elseif|end|enddef|endfor|endgroup|endinput|exitif|exitunless|expandafter|fi|for|forever|forsuffixes|from|if|input|inwindow|keeping|kern|of|primarydef|quote|readstring|scaled|scantokens|secondarydef|shifted|skipto|slanted|step|tension|tertiarydef|to|transformed|until|vardef|withpen|withweight|xscaled|yscaled|zscaled)\b/,type:{pattern:/\b(?:boolean|expr|numeric|pair|path|pen|picture|primary|secondary|string|suffix|tertiary|text|transform)\b/,alias:"property"},variable:{pattern:/(^|[^@#&$])(?:@#|#@|#|@)(?![@#&$])|\b(?:aspect_ratio|currentpen|currentpicture|currenttransform|d|extra_beginchar|extra_endchar|extra_setup|h|localfont|mag|mode|screen_cols|screen_rows|w|whatever|x|y|z)\b/,lookbehind:!0}}}vv.displayName="mizar";vv.aliases=[];function vv(e){e.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}wv.displayName="mongodb";wv.aliases=[];function wv(e){e.register(dn),(function(t){var n=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],r=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];n=n.map(function(a){return a.replace("$","\\$")});var i="(?:"+n.join("|")+")\\b";t.languages.mongodb=t.languages.extend("javascript",{}),t.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+i+"(?:\\1)?$")}}}),t.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},t.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+r.join("|")+")\\b"),alias:"keyword"}})})(e)}Tv.displayName="monkey";Tv.aliases=[];function Tv(e){e.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}xv.displayName="moonscript";xv.aliases=["moon"];function xv(e){e.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},e.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=e.languages.moonscript,e.languages.moon=e.languages.moonscript}Av.displayName="n1ql";Av.aliases=[];function Av(e){e.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}Cv.displayName="nand2tetris-hdl";Cv.aliases=[];function Cv(e){e.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}Rv.displayName="naniscript";Rv.aliases=["nani"];function Rv(e){(function(t){var n=/\{[^\r\n\[\]{}]*\}/,r={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:n,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};t.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:n,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:r}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:n,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:r},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},t.languages.nani=t.languages.naniscript,t.hooks.add("after-tokenize",function(s){var u=s.tokens;u.forEach(function(c){if(typeof c!="string"&&c.type==="generic-text"){var p=a(c);i(p)||(c.type="bad-line",c.content=p)}})});function i(s){for(var u="[]{}",c=[],p=0;p<s.length;p++){var f=s[p],m=u.indexOf(f);if(m!==-1){if(m%2===0)c.push(m+1);else if(c.pop()!==m)return!1}}return c.length===0}function a(s){return typeof s=="string"?s:Array.isArray(s)?s.map(a).join(""):a(s.content)}})(e)}Nv.displayName="nasm";Nv.aliases=[];function Nv(e){e.languages.nasm={comment:/;.*$/m,string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,label:{pattern:/(^\s*)[A-Za-z._?$][\w.?$@~#]*:/m,lookbehind:!0,alias:"function"},keyword:[/\[?BITS (?:16|32|64)\]?/,{pattern:/(^\s*)section\s*[a-z.]+:?/im,lookbehind:!0},/(?:extern|global)[^;\r\n]*/i,/(?:CPU|DEFAULT|FLOAT).*$/m],register:{pattern:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s)\b/i,alias:"variable"},number:/(?:\b|(?=\$))(?:0[hx](?:\.[\da-f]+|[\da-f]+(?:\.[\da-f]+)?)(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-\/%<>=&|$!]/}}_v.displayName="neon";_v.aliases=[];function _v(e){e.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"property"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}Ov.displayName="nevod";Ov.aliases=[];function Ov(e){e.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}Iv.displayName="nginx";Iv.aliases=[];function Iv(e){(function(t){var n=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;t.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:n}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:n}},punctuation:/[{};]/}})(e)}Dv.displayName="nim";Dv.aliases=[];function Dv(e){e.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}Lv.displayName="nix";Lv.aliases=[];function Lv(e){e.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},e.languages.nix.string.inside.interpolation.inside=e.languages.nix}Mv.displayName="nsis";Mv.aliases=[];function Mv(e){e.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|KnownFolderPath|LabelAddress|TempFileName|WinVer)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|RtlLanguage|ShellVarContextAll|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|Target|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}Bv.displayName="objectivec";Bv.aliases=["objc"];function Bv(e){e.register(qr),e.languages.objectivec=e.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete e.languages.objectivec["class-name"],e.languages.objc=e.languages.objectivec}Fv.displayName="ocaml";Fv.aliases=[];function Fv(e){e.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}zv.displayName="odin";zv.aliases=[];function zv(e){(function(t){var n=/\\(?:["'\\abefnrtv]|0[0-7]{2}|U[\dA-Fa-f]{6}|u[\dA-Fa-f]{4}|x[\dA-Fa-f]{2})/;t.languages.odin={comment:[{pattern:/\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:\*(?!\/)|[^*])*(?:\*\/|$))*(?:\*\/|$)/,greedy:!0},{pattern:/#![^\n\r]*/,greedy:!0},{pattern:/\/\/[^\n\r]*/,greedy:!0}],char:{pattern:/'(?:\\(?:.|[0Uux][0-9A-Fa-f]{1,6})|[^\n\r'\\])'/,greedy:!0,inside:{symbol:n}},string:[{pattern:/`[^`]*`/,greedy:!0},{pattern:/"(?:\\.|[^\n\r"\\])*"/,greedy:!0,inside:{symbol:n}}],directive:{pattern:/#\w+/,alias:"property"},number:/\b0(?:b[01_]+|d[\d_]+|h_*(?:(?:(?:[\dA-Fa-f]_*){8}){1,2}|(?:[\dA-Fa-f]_*){4})|o[0-7_]+|x[\dA-F_a-f]+|z[\dAB_ab]+)\b|(?:\b\d+(?:\.(?!\.)\d*)?|\B\.\d+)(?:[Ee][+-]?\d*)?[ijk]?(?!\w)/,discard:{pattern:/\b_\b/,alias:"keyword"},"procedure-definition":{pattern:/\b\w+(?=[ \t]*(?::\s*){2}proc\b)/,alias:"function"},keyword:/\b(?:asm|auto_cast|bit_set|break|case|cast|context|continue|defer|distinct|do|dynamic|else|enum|fallthrough|for|foreign|if|import|in|map|matrix|not_in|or_else|or_return|package|proc|return|struct|switch|transmute|typeid|union|using|when|where)\b/,"procedure-name":{pattern:/\b\w+(?=[ \t]*\()/,alias:"function"},boolean:/\b(?:false|nil|true)\b/,"constant-parameter-sign":{pattern:/\$/,alias:"important"},undefined:{pattern:/---/,alias:"operator"},arrow:{pattern:/->/,alias:"punctuation"},operator:/\+\+|--|\.\.[<=]?|(?:&~|[-!*+/=~]|[%&<>|]{1,2})=?|[?^]/,punctuation:/[(),.:;@\[\]{}]/}})(e)}Uv.displayName="opencl";Uv.aliases=[];function Uv(e){e.register(qr),(function(t){t.languages.opencl=t.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),t.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var n={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};t.languages.insertBefore("c","keyword",n),t.languages.cpp&&(n["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},t.languages.insertBefore("cpp","keyword",n))})(e)}Pv.displayName="openqasm";Pv.aliases=["qasm"];function Pv(e){e.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},e.languages.qasm=e.languages.openqasm}$v.displayName="oz";$v.aliases=[];function $v(e){e.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|<?:?)|>=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}Hv.displayName="parigp";Hv.aliases=[];function Hv(e){e.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:(function(){var t=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return t=t.map(function(n){return n.split("").join(" *")}).join("|"),RegExp("\\b(?:"+t+")\\b")})(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}jv.displayName="parser";jv.aliases=[];function jv(e){e.register(an),(function(t){var n=t.languages.parser=t.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});n=t.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:n.keyword,variable:n.variable,function:n.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:n.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:n.punctuation}}}),t.languages.insertBefore("inside","punctuation",{expression:n.expression,keyword:n.keyword,variable:n.variable,function:n.function,escape:n.escape,"parser-punctuation":{pattern:n.punctuation,alias:"punctuation"}},n.tag.inside["attr-value"])})(e)}Gv.displayName="pascal";Gv.aliases=["objectpascal"];function Gv(e){e.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},e.languages.pascal.asm.inside=e.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),e.languages.objectpascal=e.languages.pascal}Vv.displayName="pascaligo";Vv.aliases=[];function Vv(e){(function(t){var n=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,r=/(?:\b\w+(?:<braces>)?|<braces>)/.source.replace(/<braces>/g,function(){return n}),i=t.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)<type>/.source.replace(/<type>/g,function(){return r}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/<type>(?=\s+is\b)/.source.replace(/<type>/g,function(){return r}),"i"),inside:null},{pattern:RegExp(/(:\s*)<type>/.source.replace(/<type>/g,function(){return r})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},a=["comment","keyword","builtin","operator","punctuation"].reduce(function(s,u){return s[u]=i[u],s},{});i["class-name"].forEach(function(s){s.inside=a})})(e)}qv.displayName="psl";qv.aliases=[];function qv(e){e.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}Wv.displayName="pcaxis";Wv.aliases=["px"];function Wv(e){e.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},e.languages.px=e.languages.pcaxis}Yv.displayName="peoplecode";Yv.aliases=["pcode"];function Yv(e){e.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},e.languages.pcode=e.languages.peoplecode}Kv.displayName="perl";Kv.aliases=[];function Kv(e){(function(t){var n=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;t.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,n+/\s*/.source+n].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(e)}Xv.displayName="phpdoc";Xv.aliases=[];function Xv(e){e.register(tl),e.register(el),(function(t){var n=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;t.languages.phpdoc=t.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+n+"\\s+)?)\\$\\w+"),lookbehind:!0}}),t.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+n),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),t.languages.javadoclike.addSupport("php",t.languages.phpdoc)})(e)}Zv.displayName="php-extras";Zv.aliases=[];function Zv(e){e.register(el),e.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}Qv.displayName="plant-uml";Qv.aliases=["plantuml"];function Qv(e){(function(t){var n=/\$\w+|%[a-z]+%/,r=/\[[^[\]]*\]/.source,i=/(?:[drlu]|do|down|le|left|ri|right|up)/.source,a="(?:-+"+i+"-+|\\.+"+i+"\\.+|-+(?:"+r+"-*)?|"+r+"-+|\\.+(?:"+r+"\\.*)?|"+r+"\\.+)",s=/(?:<{1,2}|\/{1,2}|\\{1,2}|<\||[#*^+}xo])/.source,u=/(?:>{1,2}|\/{1,2}|\\{1,2}|\|>|[#*^+{xo])/.source,c=/[[?]?[ox]?/.source,p=/[ox]?[\]?]?/.source,f=c+"(?:"+a+u+"|"+s+a+"(?:"+u+")?)"+p;t.languages["plant-uml"]={comment:{pattern:/(^[ \t]*)(?:'.*|\/'[\s\S]*?'\/)/m,lookbehind:!0,greedy:!0},preprocessor:{pattern:/(^[ \t]*)!.*/m,lookbehind:!0,greedy:!0,alias:"property",inside:{variable:n}},delimiter:{pattern:/(^[ \t]*)@(?:end|start)uml\b/m,lookbehind:!0,greedy:!0,alias:"punctuation"},arrow:{pattern:RegExp(/(^|[^-.<>?|\\[\]ox])/.source+f+/(?![-.<>?|\\\]ox])/.source),lookbehind:!0,greedy:!0,alias:"operator",inside:{expression:{pattern:/(\[)[^[\]]+(?=\])/,lookbehind:!0,inside:null},punctuation:/\[(?=$|\])|^\]/}},string:{pattern:/"[^"]*"/,greedy:!0},text:{pattern:/(\[[ \t]*[\r\n]+(?![\r\n]))[^\]]*(?=\])/,lookbehind:!0,greedy:!0,alias:"string"},keyword:[{pattern:/^([ \t]*)(?:abstract\s+class|end\s+(?:box|fork|group|merge|note|ref|split|title)|(?:fork|split)(?:\s+again)?|activate|actor|agent|alt|annotation|artifact|autoactivate|autonumber|backward|binary|boundary|box|break|caption|card|case|circle|class|clock|cloud|collections|component|concise|control|create|critical|database|deactivate|destroy|detach|diamond|else|elseif|end|end[hr]note|endif|endswitch|endwhile|entity|enum|file|folder|footer|frame|group|[hr]?note|header|hexagon|hide|if|interface|label|legend|loop|map|namespace|network|newpage|node|nwdiag|object|opt|package|page|par|participant|person|queue|rectangle|ref|remove|repeat|restore|return|robust|scale|set|show|skinparam|stack|start|state|stop|storage|switch|title|together|usecase|usecase\/|while)(?=\s|$)/m,lookbehind:!0,greedy:!0},/\b(?:elseif|equals|not|while)(?=\s*\()/,/\b(?:as|is|then)\b/],divider:{pattern:/^==.+==$/m,greedy:!0,alias:"important"},time:{pattern:/@(?:\d+(?:[:/]\d+){2}|[+-]?\d+|:[a-z]\w*(?:[+-]\d+)?)\b/i,greedy:!0,alias:"number"},color:{pattern:/#(?:[a-z_]+|[a-fA-F0-9]+)\b/,alias:"symbol"},variable:n,punctuation:/[:,;()[\]{}]|\.{3}/},t.languages["plant-uml"].arrow.inside.expression.inside=t.languages["plant-uml"],t.languages.plantuml=t.languages["plant-uml"]})(e)}Jv.displayName="plsql";Jv.aliases=[];function Jv(e){e.register(ac),e.languages.plsql=e.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),e.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}ew.displayName="powerquery";ew.aliases=["mscript","pq"];function ew(e){e.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},e.languages.pq=e.languages.powerquery,e.languages.mscript=e.languages.powerquery}tw.displayName="powershell";tw.aliases=[];function tw(e){(function(t){var n=t.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};n.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:n},boolean:n.boolean,variable:n.variable}})(e)}nw.displayName="processing";nw.aliases=[];function nw(e){e.register(Ve),e.languages.processing=e.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),e.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}rw.displayName="prolog";rw.aliases=[];function rw(e){e.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}iw.displayName="promql";iw.aliases=[];function iw(e){(function(t){var n=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],r=["on","ignoring","group_right","group_left","by","without"],i=["offset"],a=n.concat(r,i);t.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+r.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+a.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(e)}aw.displayName="properties";aw.aliases=[];function aw(e){e.languages.properties={comment:/^[ \t]*[#!].*$/m,value:{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0,alias:"attr-value"},key:{pattern:/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,alias:"attr-name"},punctuation:/[=:]/}}ow.displayName="protobuf";ow.aliases=[];function ow(e){e.register(Ve),(function(t){var n=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;t.languages.protobuf=t.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),t.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:n}},builtin:n,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})})(e)}sw.displayName="stylus";sw.aliases=[];function sw(e){(function(t){var n={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},r={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},i={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:n,number:r,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:n,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:r,punctuation:/[{}()\[\];:,]/};i.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:i}},i.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:i}},t.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:i}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:i}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:i}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:i.interpolation}},rest:i}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:i.interpolation,comment:i.comment,punctuation:/[{},]/}},func:i.func,string:i.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:i.interpolation,punctuation:/[{}()\[\];:.]/}})(e)}lw.displayName="twig";lw.aliases=[];function lw(e){e.register(pn),e.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},e.hooks.add("before-tokenize",function(t){if(t.language==="twig"){var n=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;e.languages["markup-templating"].buildPlaceholders(t,"twig",n)}}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"twig")})}uw.displayName="pug";uw.aliases=[];function uw(e){e.register(dn),e.register(an),(function(t){t.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:t.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:t.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:t.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:t.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:t.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:t.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:t.languages.javascript}],punctuation:/[.\-!=|]+/};for(var n=/(^([\t ]*)):<filter_name>(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,r=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],i={},a=0,s=r.length;a<s;a++){var u=r[a];u=typeof u=="string"?{filter:u,language:u}:u,t.languages[u.language]&&(i["filter-"+u.filter]={pattern:RegExp(n.replace("<filter_name>",function(){return u.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[u.language,"language-"+u.language],inside:t.languages[u.language]}}})}t.languages.insertBefore("pug","filter",i)})(e)}cw.displayName="puppet";cw.aliases=[];function cw(e){(function(t){t.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var n=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:t.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];t.languages.puppet.heredoc[0].inside.interpolation=n,t.languages.puppet.string.inside["double-quoted"].inside.interpolation=n})(e)}dw.displayName="pure";dw.aliases=[];function dw(e){(function(t){t.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var n=["c",{lang:"c++",alias:"cpp"},"fortran"],r=/%< *-\*- *<lang>\d* *-\*-[\s\S]+?%>/.source;n.forEach(function(i){var a=i;if(typeof i!="string"&&(a=i.alias,i=i.lang),t.languages[a]){var s={};s["inline-lang-"+a]={pattern:RegExp(r.replace("<lang>",i.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:t.util.clone(t.languages.pure["inline-lang"].inside)},s["inline-lang-"+a].inside.rest=t.util.clone(t.languages[a]),t.languages.insertBefore("pure","inline-lang",s)}}),t.languages.c&&(t.languages.pure["inline-lang"].inside.rest=t.util.clone(t.languages.c))})(e)}pw.displayName="purebasic";pw.aliases=["pbfasm"];function pw(e){e.register(Ve),e.languages.purebasic=e.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+\$?|-[>-]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|?\||[~^%?*/@]/}),e.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete e.languages.purebasic["class-name"],delete e.languages.purebasic.boolean,e.languages.pbfasm=e.languages.purebasic}fw.displayName="purescript";fw.aliases=["purs"];function fw(e){e.register(oc),e.languages.purescript=e.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[e.languages.haskell.operator[0],e.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),e.languages.purs=e.languages.purescript}Hf.displayName="python";Hf.aliases=["py"];function Hf(e){e.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.python["string-interpolation"].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}hw.displayName="qsharp";hw.aliases=["qs"];function hw(e){e.register(Ve),(function(t){function n(b,S){return b.replace(/<<(\d+)>>/g,function(k,v){return"(?:"+S[+v]+")"})}function r(b,S,k){return RegExp(n(b,S),"")}function i(b,S){for(var k=0;k<S;k++)b=b.replace(/<<self>>/g,function(){return"(?:"+b+")"});return b.replace(/<<self>>/g,"[^\\s\\S]")}var a={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function s(b){return"\\b(?:"+b.trim().replace(/ /g,"|")+")\\b"}var u=RegExp(s(a.type+" "+a.other)),c=/\b[A-Za-z_]\w*\b/.source,p=n(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[c]),f={keyword:u,punctuation:/[<>()?,.:[\]]/},m=/"(?:\\.|[^\\"])*"/.source;t.languages.qsharp=t.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[m]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[p]),lookbehind:!0,inside:f},{pattern:r(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[p]),lookbehind:!0,inside:f}],keyword:u,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),t.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var g=i(n(/\{(?:[^"{}]|<<0>>|<<self>>)*\}/.source,[m]),2);t.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:r(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[g]),greedy:!0,inside:{interpolation:{pattern:r(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[g]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:t.languages.qsharp}}},string:/[\s\S]+/}}})})(e),e.languages.qs=e.languages.qsharp}mw.displayName="q";mw.aliases=[];function mw(e){e.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}gw.displayName="qml";gw.aliases=[];function gw(e){e.register(dn),(function(t){for(var n=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,r=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,i=/(?:[^\\()[\]{}"'/]|<string>|\/(?![*/])|<comment>|\(<expr>*\)|\[<expr>*\]|\{<expr>*\}|\\[\s\S])/.source.replace(/<string>/g,function(){return n}).replace(/<comment>/g,function(){return r}),a=0;a<2;a++)i=i.replace(/<expr>/g,function(){return i});i=i.replace(/<expr>/g,"[^\\s\\S]"),t.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(<js>*\)\s*\{<js>*\}/.source.replace(/<js>/g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}])<js>)+/.source.replace(/<js>/g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(e)}bw.displayName="qore";bw.aliases=[];function bw(e){e.register(Ve),e.languages.qore=e.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}yw.displayName="r";yw.aliases=[];function yw(e){e.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}Ew.displayName="racket";Ew.aliases=["rkt"];function Ew(e){e.register(uc),e.languages.racket=e.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),e.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),e.languages.rkt=e.languages.racket}Sw.displayName="cshtml";Sw.aliases=["razor"];function Sw(e){e.register(Zs),e.register(an),(function(t){var n=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,r=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function i(x,A){for(var D=0;D<A;D++)x=x.replace(/<self>/g,function(){return"(?:"+x+")"});return x.replace(/<self>/g,"[^\\s\\S]").replace(/<str>/g,"(?:"+r+")").replace(/<comment>/g,"(?:"+n+")")}var a=i(/\((?:[^()'"@/]|<str>|<comment>|<self>)*\)/.source,2),s=i(/\[(?:[^\[\]'"@/]|<str>|<comment>|<self>)*\]/.source,1),u=i(/\{(?:[^{}'"@/]|<str>|<comment>|<self>)*\}/.source,2),c=i(/<(?:[^<>'"@/]|<comment>|<self>)*>/.source,1),p=/@/.source+/(?:await\b\s*)?/.source+"(?:"+/(?!await\b)\w+\b/.source+"|"+a+")(?:"+/[?!]?\.\w+\b/.source+"|(?:"+c+")?"+a+"|"+s+")*"+/(?![?!\.(\[]|<(?!\/))/.source,f=/@(?![\w()])/.source+"|"+p,m="(?:"+/"[^"@]*"|'[^'@]*'|[^\s'"@>=]+(?=[\s>])/.source+`|["'][^"'@]*(?:(?:`+f+`)[^"'@]*)+["'])`,g=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*<tagAttrValue>|(?=[\s/>])))+)?/.source.replace(/<tagAttrValue>/,m),b=/(?!\d)[^\s>\/=$<%]+/.source+g+/\s*\/?>/.source,S=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+g+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+b+"|"+i(/<\1/.source+g+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+b+"|<self>")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/</.source+b+")";t.languages.cshtml=t.languages.extend("markup",{});var k=t.languages.insertBefore("csharp","string",{html:{pattern:RegExp(S),greedy:!0,inside:t.languages.cshtml}},{csharp:t.languages.extend("csharp",{})}),v={pattern:/\S[\s\S]*/,alias:"language-csharp",inside:k},w={pattern:RegExp(/(^|[^@])/.source+p),lookbehind:!0,greedy:!0,alias:"variable",inside:{keyword:/^@/,csharp:v}};t.languages.cshtml.tag.pattern=RegExp(/<\/?/.source+b),t.languages.cshtml.tag.inside["attr-value"].pattern=RegExp(/=\s*/.source+m),t.languages.insertBefore("inside","punctuation",{value:w},t.languages.cshtml.tag.inside["attr-value"]),t.languages.insertBefore("cshtml","prolog",{"razor-comment":{pattern:/@\*[\s\S]*?\*@/,greedy:!0,alias:"comment"},block:{pattern:RegExp(/(^|[^@])@/.source+"(?:"+[u,/(?:code|functions)\s*/.source+u,/(?:for|foreach|lock|switch|using|while)\s*/.source+a+/\s*/.source+u,/do\s*/.source+u+/\s*while\s*/.source+a+/(?:\s*;)?/.source,/try\s*/.source+u+/\s*catch\s*/.source+a+/\s*/.source+u+/\s*finally\s*/.source+u,/if\s*/.source+a+/\s*/.source+u+"(?:"+/\s*else/.source+"(?:"+/\s+if\s*/.source+a+")?"+/\s*/.source+u+")*",/helper\s+\w+\s*/.source+a+/\s*/.source+u].join("|")+")"),lookbehind:!0,greedy:!0,inside:{keyword:/^@\w*/,csharp:v}},directive:{pattern:/^([ \t]*)@(?:addTagHelper|attribute|implements|inherits|inject|layout|model|namespace|page|preservewhitespace|removeTagHelper|section|tagHelperPrefix|using)(?=\s).*/m,lookbehind:!0,greedy:!0,inside:{keyword:/^@\w+/,csharp:v}},value:w,"delegate-operator":{pattern:/(^|[^@])@(?=<)/,lookbehind:!0,alias:"operator"}}),t.languages.razor=t.languages.cshtml})(e)}jf.displayName="jsx";jf.aliases=[];function jf(e){e.register(dn),e.register(an),(function(t){var n=t.util.clone(t.languages.javascript),r=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,i=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,a=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function s(p,f){return p=p.replace(/<S>/g,function(){return r}).replace(/<BRACES>/g,function(){return i}).replace(/<SPREAD>/g,function(){return a}),RegExp(p,f)}a=s(a).source,t.languages.jsx=t.languages.extend("markup",n),t.languages.jsx.tag.pattern=s(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=n.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:s(/<SPREAD>/.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:s(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var u=function(p){return p?typeof p=="string"?p:typeof p.content=="string"?p.content:p.content.map(u).join(""):""},c=function(p){for(var f=[],m=0;m<p.length;m++){var g=p[m],b=!1;if(typeof g!="string"&&(g.type==="tag"&&g.content[0]&&g.content[0].type==="tag"?g.content[0].content[0].content==="</"?f.length>0&&f[f.length-1].tagName===u(g.content[0].content[1])&&f.pop():g.content[g.content.length-1].content==="/>"||f.push({tagName:u(g.content[0].content[1]),openedBraces:0}):f.length>0&&g.type==="punctuation"&&g.content==="{"?f[f.length-1].openedBraces++:f.length>0&&f[f.length-1].openedBraces>0&&g.type==="punctuation"&&g.content==="}"?f[f.length-1].openedBraces--:b=!0),(b||typeof g=="string")&&f.length>0&&f[f.length-1].openedBraces===0){var S=u(g);m<p.length-1&&(typeof p[m+1]=="string"||p[m+1].type==="plain-text")&&(S+=u(p[m+1]),p.splice(m+1,1)),m>0&&(typeof p[m-1]=="string"||p[m-1].type==="plain-text")&&(S=u(p[m-1])+S,p.splice(m-1,1),m--),p[m]=new t.Token("plain-text",S,null,S)}g.content&&typeof g.content!="string"&&c(g.content)}};t.hooks.add("after-tokenize",function(p){p.language!=="jsx"&&p.language!=="tsx"||c(p.tokens)})})(e)}kw.displayName="tsx";kw.aliases=[];function kw(e){e.register(jf),e.register(lc),(function(t){var n=t.util.clone(t.languages.typescript);t.languages.tsx=t.languages.extend("jsx",n),delete t.languages.tsx.parameter,delete t.languages.tsx["literal-property"];var r=t.languages.tsx.tag;r.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+r.pattern.source+")",r.pattern.flags),r.lookbehind=!0})(e)}vw.displayName="reason";vw.aliases=[];function vw(e){e.register(Ve),e.languages.reason=e.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),e.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete e.languages.reason.function}ww.displayName="rego";ww.aliases=[];function ww(e){e.languages.rego={comment:/#.*/,property:{pattern:/(^|[^\\.])(?:"(?:\\.|[^\\"\r\n])*"|`[^`]*`|\b[a-z_]\w*\b)(?=\s*:(?!=))/i,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:as|default|else|import|not|null|package|set(?=\s*\()|some|with)\b/,boolean:/\b(?:false|true)\b/,function:{pattern:/\b[a-z_]\w*\b(?:\s*\.\s*\b[a-z_]\w*\b)*(?=\s*\()/i,inside:{namespace:/\b\w+\b(?=\s*\.)/,punctuation:/\./}},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,operator:/[-+*/%|&]|[<>:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}Tw.displayName="renpy";Tw.aliases=["rpy"];function Tw(e){e.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},e.languages.rpy=e.languages.renpy}xw.displayName="rescript";xw.aliases=["res"];function xw(e){e.languages.rescript={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},char:{pattern:/'(?:[^\r\n\\]|\\(?:.|\w+))'/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*|@[a-z.]*|#[A-Za-z]\w*|#\d/,function:{pattern:/[a-zA-Z]\w*(?=\()|(\.)[a-z]\w*/,lookbehind:!0},number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,boolean:/\b(?:false|true)\b/,"attr-value":/[A-Za-z]\w*(?==)/,constant:{pattern:/(\btype\s+)[a-z]\w*/,lookbehind:!0},tag:{pattern:/(<)[a-z]\w*|(?:<\/)[a-z]\w*/,lookbehind:!0,inside:{operator:/<|>|\//}},keyword:/\b(?:and|as|assert|begin|bool|class|constraint|do|done|downto|else|end|exception|external|float|for|fun|function|if|in|include|inherit|initializer|int|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|string|switch|then|to|try|type|when|while|with)\b/,operator:/\.{3}|:[:=]?|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/,punctuation:/[(){}[\],;.]/},e.languages.insertBefore("rescript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"tag"},rest:e.languages.rescript}},string:/[\s\S]+/}}}),e.languages.res=e.languages.rescript}Aw.displayName="rest";Aw.aliases=[];function Aw(e){e.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}Cw.displayName="rip";Cw.aliases=[];function Cw(e){e.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}Rw.displayName="roboconf";Rw.aliases=[];function Rw(e){e.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}Nw.displayName="robotframework";Nw.aliases=["robot"];function Nw(e){(function(t){var n={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},r={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function i(c,p){var f={};f["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var m in p)f[m]=p[m];return f.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},f.variable=r,f.comment=n,{pattern:RegExp(/^ ?\*{3}[ \t]*<name>[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(/<name>/g,function(){return c}),"im"),alias:"section",inside:f}}var a={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},s={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:r}},u={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:r}};t.languages.robotframework={settings:i("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:i("Variables"),"test-cases":i("Test Cases",{"test-name":s,documentation:a,property:u}),keywords:i("Keywords",{"keyword-name":s,documentation:a,property:u}),tasks:i("Tasks",{"task-name":s,documentation:a,property:u}),comment:n},t.languages.robot=t.languages.robotframework})(e)}_w.displayName="rust";_w.aliases=[];function _w(e){(function(t){for(var n=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,r=0;r<2;r++)n=n.replace(/<self>/g,function(){return n});n=n.replace(/<self>/g,function(){return/[^\s\S]/.source}),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+n),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string})(e)}Ow.displayName="sas";Ow.aliases=[];function Ow(e){(function(t){var n=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,r=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,i={pattern:RegExp(n+"[bx]"),alias:"number"},a={pattern:/&[a-z_]\w*/i},s={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},u={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},c=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],p={pattern:RegExp(n),greedy:!0},f=/[$%@.(){}\[\];,\\]/,m={pattern:/%?\b\w+(?=\()/,alias:"keyword"},g={function:m,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":a,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:r,"numeric-constant":i,punctuation:f,string:p},b={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},S={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},k={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},v={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},w=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,x={pattern:RegExp(/(^|\s)(?:action\s+)?(?:<act>)\.[a-z]+\b[^;]+/.source.replace(/<act>/g,function(){return w}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:<act>)\.[a-z]+\b/.source.replace(/<act>/g,function(){return w}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:c,function:m,"arg-value":g["arg-value"],operator:g.operator,argument:g.arg,number:r,"numeric-constant":i,punctuation:f,string:p}},A={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};t.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:<str>|[^;"'])+;/.source.replace(/<str>/g,function(){return n}),"im"),alias:"language-sql",inside:t.languages.sql},"global-statements":k,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:r,"numeric-constant":i,punctuation:f,string:p}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:c,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return n}),"im"),lookbehind:!0,alias:"language-groovy",inside:t.languages.groovy},keyword:A,"submit-statement":v,"global-statements":k,number:r,"numeric-constant":i,punctuation:f,string:p}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:c,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return n}),"im"),lookbehind:!0,alias:"language-lua",inside:t.languages.lua},keyword:A,"submit-statement":v,"global-statements":k,number:r,"numeric-constant":i,punctuation:f,string:p}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:c,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:g}},"cas-actions":x,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:g},step:u,keyword:A,function:m,format:b,altformat:S,"global-statements":k,number:r,"numeric-constant":i,punctuation:f,string:p}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|<str>)+;/.source.replace(/<str>/g,function(){return n}),"im"),lookbehind:!0,inside:g},"macro-keyword":s,"macro-variable":a,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":s,"macro-variable":a,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:f}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:c,number:r,"numeric-constant":i}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:g},"cas-actions":x,comment:c,function:m,format:b,altformat:S,"numeric-constant":i,datetime:{pattern:RegExp(n+"(?:dt?|t)"),alias:"number"},string:p,step:u,keyword:A,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:r,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:f}})(e)}Iw.displayName="sass";Iw.aliases=[];function Iw(e){e.register(Ao),(function(t){t.languages.sass=t.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),t.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete t.languages.sass.atrule;var n=/\$[-\w]+|#\{\$[-\w]+\}/,r=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];t.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:n,operator:r}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:n,operator:r,important:t.languages.sass.important}}}),delete t.languages.sass.property,delete t.languages.sass.important,t.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})})(e)}Dw.displayName="shell-session";Dw.aliases=["sh-session","shellsession"];function Dw(e){e.register(Ff),(function(t){var n=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");t.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<<str>>)+/.source.replace(/<<str>>/g,function(){return n}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:t.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},t.languages["sh-session"]=t.languages.shellsession=t.languages["shell-session"]})(e)}Lw.displayName="smali";Lw.aliases=[];function Lw(e){e.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}Mw.displayName="smalltalk";Mw.aliases=[];function Mw(e){e.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}Bw.displayName="smarty";Bw.aliases=[];function Bw(e){e.register(pn),(function(t){t.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:t.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},t.languages.smarty["embedded-php"].inside.smarty.inside=t.languages.smarty,t.languages.smarty.string[0].inside.interpolation.inside.expression.inside=t.languages.smarty;var n=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,r=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>)*\})*\})*\}/.source.replace(/<str>/g,function(){return n.source}),"g");t.hooks.add("before-tokenize",function(i){var a="{literal}",s="{/literal}",u=!1;t.languages["markup-templating"].buildPlaceholders(i,"smarty",r,function(c){return c===s&&(u=!1),u?!1:(c===a&&(u=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"smarty")})})(e)}Fw.displayName="sml";Fw.aliases=["smlnj"];function Fw(e){(function(t){var n=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;t.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)<TERMINAL>(?:\s*(?:(?:\*|->)\s*<TERMINAL>|,\s*<TERMINAL>(?:(?=<NOT-LAST>)|(?!<NOT-LAST>)\s+<LONG-ID>)))*/.source.replace(/<NOT-LAST>/g,function(){return/\s*(?:[*,]|->)/.source}).replace(/<TERMINAL>/g,function(){return/(?:'[\w']*|<LONG-ID>|\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+<LONG-ID>)*/.source}).replace(/<LONG-ID>/g,function(){return/(?!<KEYWORD>)[a-z\d_][\w'.]*/.source}).replace(/<KEYWORD>/g,function(){return n.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:n,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},t.languages.sml["class-name"][0].inside=t.languages.sml,t.languages.smlnj=t.languages.sml})(e)}zw.displayName="solidity";zw.aliases=["sol"];function zw(e){e.register(Ve),e.languages.solidity=e.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),e.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),e.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),e.languages.sol=e.languages.solidity}Uw.displayName="solution-file";Uw.aliases=["sln"];function Uw(e){(function(t){var n={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};t.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:n}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:n}},guid:n,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},t.languages.sln=t.languages["solution-file"]})(e)}Pw.displayName="soy";Pw.aliases=[];function Pw(e){e.register(pn),(function(t){var n=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;t.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:n,greedy:!0},number:r,punctuation:/[\[\].?]/}},string:{pattern:n,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:r,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},t.hooks.add("before-tokenize",function(i){var a=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,s="{literal}",u="{/literal}",c=!1;t.languages["markup-templating"].buildPlaceholders(i,"soy",a,function(p){return p===u&&(c=!1),c?!1:(p===s&&(c=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"soy")})})(e)}Gf.displayName="turtle";Gf.aliases=["trig"];function Gf(e){e.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},e.languages.trig=e.languages.turtle}$w.displayName="sparql";$w.aliases=["rq"];function $w(e){e.register(Gf),e.languages.sparql=e.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),e.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),e.languages.rq=e.languages.sparql}Hw.displayName="splunk-spl";Hw.aliases=[];function Hw(e){e.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}jw.displayName="sqf";jw.aliases=[];function jw(e){e.register(Ve),e.languages.sqf=e.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),e.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:e.languages.sqf.comment}}}),delete e.languages.sqf["class-name"]}Gw.displayName="squirrel";Gw.aliases=[];function Gw(e){e.register(Ve),e.languages.squirrel=e.languages.extend("clike",{comment:[e.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),e.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}Vw.displayName="stan";Vw.aliases=[];function Vw(e){(function(t){var n=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;t.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+n.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,n],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},t.languages.stan.constraint.inside.expression.inside=t.languages.stan})(e)}qw.displayName="stata";qw.aliases=[];function qw(e){e.register(Js),e.register($f),e.register(Hf),e.languages.stata={comment:[{pattern:/(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|\s)\/\/.*|\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0}],"string-literal":{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}|[‘`']\w[^’`'\r\n]*[’`']/,inside:{punctuation:/^\$\{|\}$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},mata:{pattern:/(^[ \t]*mata[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-mata",inside:e.languages.mata},java:{pattern:/(^[ \t]*java[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-java",inside:e.languages.java},python:{pattern:/(^[ \t]*python[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-python",inside:e.languages.python},command:{pattern:/(^[ \t]*(?:\.[ \t]+)?(?:(?:bayes|bootstrap|by|bysort|capture|collect|fmm|fp|frame|jackknife|mfp|mi|nestreg|noisily|permute|quietly|rolling|simulate|statsby|stepwise|svy|version|xi)\b[^:\r\n]*:[ \t]*|(?:capture|noisily|quietly|version)[ \t]+)?)[a-zA-Z]\w*/m,lookbehind:!0,greedy:!0,alias:"keyword"},variable:/\$\w+|[‘`']\w[^’`'\r\n]*[’`']/,keyword:/\b(?:bayes|bootstrap|by|bysort|capture|clear|collect|fmm|fp|frame|if|in|jackknife|mi[ \t]+estimate|mfp|nestreg|noisily|of|permute|quietly|rolling|simulate|sort|statsby|stepwise|svy|varlist|version|xi)\b/,boolean:/\b(?:off|on)\b/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+/,function:/\b[a-z_]\w*(?=\()/i,operator:/\+\+|--|##?|[<>!=~]=?|[+\-*^&|/]/,punctuation:/[(){}[\],:]/},e.languages.stata["string-literal"].inside.interpolation.inside.expression.inside=e.languages.stata}Ww.displayName="iecst";Ww.aliases=[];function Ww(e){e.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}Yw.displayName="supercollider";Yw.aliases=["sclang"];function Yw(e){e.languages.supercollider={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^"\\]|\\[\s\S])*"/,lookbehind:!0,greedy:!0},char:{pattern:/\$(?:[^\\\r\n]|\\.)/,greedy:!0},symbol:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'|\\\w+/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|arg|classvar|const|nil|var|while)\b/,boolean:/\b(?:false|true)\b/,label:{pattern:/\b[a-z_]\w*(?=\s*:)/,alias:"property"},number:/\b(?:inf|pi|0x[0-9a-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(?:pi)?|\d+r[0-9a-zA-Z]+(?:\.[0-9a-zA-Z]+)?|\d+[sb]{1,4}\d*)\b/,"class-name":/\b[A-Z]\w*\b/,operator:/\.{2,3}|#(?![[{])|&&|[!=]==?|\+>>|\+{1,3}|-[->]|=>|>>|\?\?|@\|?@|\|(?:@|[!=]=)?\||!\?|<[!=>]|\*{1,2}|<{2,3}\*?|[-!%&/<>?@|=`]/,punctuation:/[{}()[\].:,;]|#[[{]/},e.languages.sclang=e.languages.supercollider}Kw.displayName="swift";Kw.aliases=[];function Kw(e){e.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},e.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=e.languages.swift})}Xw.displayName="systemd";Xw.aliases=[];function Xw(e){(function(t){var n={pattern:/^[;#].*/m,greedy:!0},r=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;t.languages.systemd={comment:n,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+r+`|(?=[^"\r
|
|
85
|
+
]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+r+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:n,quoted:{pattern:RegExp(/(^|\s)/.source+r),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(e)}cc.displayName="t4-templating";cc.aliases=[];function cc(e){(function(t){function n(i,a,s){return{pattern:RegExp("<#"+i+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+i+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:a,alias:s}}}}function r(i){var a=t.languages[i],s="language-"+i;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:n("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:n("=",a,s),"class-feature":n("\\+",a,s),standard:n("",a,s)}}}}t.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:r})})(e)}Zw.displayName="t4-cs";Zw.aliases=["t4"];function Zw(e){e.register(Zs),e.register(cc),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}Vf.displayName="vbnet";Vf.aliases=[];function Vf(e){e.register(Uf),e.languages.vbnet=e.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}Qw.displayName="t4-vb";Qw.aliases=[];function Qw(e){e.register(cc),e.register(Vf),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}Jw.displayName="tap";Jw.aliases=[];function Jw(e){e.register(zf),e.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:e.languages.yaml,alias:"language-yaml"}}}eT.displayName="tcl";eT.aliases=[];function eT(e){e.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}tT.displayName="tt2";tT.aliases=[];function tT(e){e.register(Ve),e.register(pn),(function(t){t.languages.tt2=t.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),t.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),t.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),t.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete t.languages.tt2.string,t.hooks.add("before-tokenize",function(n){var r=/\[%[\s\S]+?%\]/g;t.languages["markup-templating"].buildPlaceholders(n,"tt2",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"tt2")})})(e)}nT.displayName="toml";nT.aliases=[];function nT(e){(function(t){var n=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function r(i){return i.replace(/__/g,function(){return n})}t.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(r(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(r(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(e)}rT.displayName="tremor";rT.aliases=["trickle","troy"];function rT(e){(function(t){t.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var n=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;t.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+n+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+n+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(n),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.tremor}}},string:/[\s\S]+/}},t.languages.troy=t.languages.tremor,t.languages.trickle=t.languages.tremor})(e)}iT.displayName="typoscript";iT.aliases=["tsconfig"];function iT(e){(function(t){var n=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;t.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern:/<INCLUDE_TYPOSCRIPT:\s*source\s*=\s*(?:"[^"\r\n]*"|'[^'\r\n]*')\s*>/,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:n}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:n,number:/^\d+$/,punctuation:/[,|:]/}},keyword:n,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},t.languages.tsconfig=t.languages.typoscript})(e)}aT.displayName="unrealscript";aT.aliases=["uc","uscript"];function aT(e){e.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},e.languages.uc=e.languages.uscript=e.languages.unrealscript}oT.displayName="uorazor";oT.aliases=[];function oT(e){e.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}sT.displayName="v";sT.aliases=[];function sT(e){e.register(Ve),(function(t){var n={pattern:/[\s\S]+/,inside:null};t.languages.v=t.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":n}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),n.inside=t.languages.v,t.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),t.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),t.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:t.languages.v.generic.inside}}}})})(e)}lT.displayName="vala";lT.aliases=[];function lT(e){e.register(Ve),e.languages.vala=e.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),e.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:e.languages.vala}},string:/[\s\S]+/}}}),e.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}uT.displayName="velocity";uT.aliases=[];function uT(e){e.register(an),(function(t){t.languages.velocity=t.languages.extend("markup",{});var n={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};n.variable.inside={string:n.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:n.number,boolean:n.boolean,punctuation:n.punctuation},t.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:n}},variable:n.variable}),t.languages.velocity.tag.inside["attr-value"].inside.rest=t.languages.velocity})(e)}cT.displayName="verilog";cT.aliases=[];function cT(e){e.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}dT.displayName="vhdl";dT.aliases=[];function dT(e){e.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|private|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|view|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}pT.displayName="vim";pT.aliases=[];function pT(e){e.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}fT.displayName="visual-basic";fT.aliases=["vb","vba"];function fT(e){e.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},e.languages.vb=e.languages["visual-basic"],e.languages.vba=e.languages["visual-basic"]}hT.displayName="warpscript";hT.aliases=[];function hT(e){e.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}mT.displayName="wasm";mT.aliases=[];function mT(e){e.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}gT.displayName="web-idl";gT.aliases=["webidl"];function gT(e){(function(t){var n=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,r="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+n+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,i={};t.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+n),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+r),lookbehind:!0,inside:i},{pattern:RegExp("("+/\bcallback\s+/.source+n+/\s*=\s*/.source+")"+r),lookbehind:!0,inside:i},{pattern:RegExp(/(\btypedef\b\s*)/.source+r),lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+n),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+n),lookbehind:!0},RegExp(n+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+n),lookbehind:!0},{pattern:RegExp(r+"(?="+/\s*(?:\.{3}\s*)?/.source+n+/\s*[(),;=]/.source+")"),inside:i}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var a in t.languages["web-idl"])a!=="class-name"&&(i[a]=t.languages["web-idl"][a]);t.languages.webidl=t.languages["web-idl"]})(e)}bT.displayName="wgsl";bT.aliases=[];function bT(e){e.languages.wgsl={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"builtin-attribute":{pattern:/(@)builtin\(.*?\)/,lookbehind:!0,inside:{attribute:{pattern:/^builtin/,alias:"attr-name"},punctuation:/[(),]/,"built-in-values":{pattern:/\b(?:frag_depth|front_facing|global_invocation_id|instance_index|local_invocation_id|local_invocation_index|num_workgroups|position|sample_index|sample_mask|vertex_index|workgroup_id)\b/,alias:"attr-value"}}},attributes:{pattern:/(@)(?:align|binding|compute|const|fragment|group|id|interpolate|invariant|location|size|vertex|workgroup_size)/i,lookbehind:!0,alias:"attr-name"},functions:{pattern:/\b(fn\s+)[_a-zA-Z]\w*(?=[(<])/,lookbehind:!0,alias:"function"},keyword:/\b(?:bitcast|break|case|const|continue|continuing|default|discard|else|enable|fallthrough|fn|for|function|if|let|loop|private|return|storage|struct|switch|type|uniform|var|while|workgroup)\b/,builtin:/\b(?:abs|acos|acosh|all|any|array|asin|asinh|atan|atan2|atanh|atomic|atomicAdd|atomicAnd|atomicCompareExchangeWeak|atomicExchange|atomicLoad|atomicMax|atomicMin|atomicOr|atomicStore|atomicSub|atomicXor|bool|ceil|clamp|cos|cosh|countLeadingZeros|countOneBits|countTrailingZeros|cross|degrees|determinant|distance|dot|dpdx|dpdxCoarse|dpdxFine|dpdy|dpdyCoarse|dpdyFine|exp|exp2|extractBits|f32|f64|faceForward|firstLeadingBit|floor|fma|fract|frexp|fwidth|fwidthCoarse|fwidthFine|i32|i64|insertBits|inverseSqrt|ldexp|length|log|log2|mat[2-4]x[2-4]|max|min|mix|modf|normalize|override|pack2x16float|pack2x16snorm|pack2x16unorm|pack4x8snorm|pack4x8unorm|pow|ptr|quantizeToF16|radians|reflect|refract|reverseBits|round|sampler|sampler_comparison|select|shiftLeft|shiftRight|sign|sin|sinh|smoothstep|sqrt|staticAssert|step|storageBarrier|tan|tanh|textureDimensions|textureGather|textureGatherCompare|textureLoad|textureNumLayers|textureNumLevels|textureNumSamples|textureSample|textureSampleBias|textureSampleCompare|textureSampleCompareLevel|textureSampleGrad|textureSampleLevel|textureStore|texture_1d|texture_2d|texture_2d_array|texture_3d|texture_cube|texture_cube_array|texture_depth_2d|texture_depth_2d_array|texture_depth_cube|texture_depth_cube_array|texture_depth_multisampled_2d|texture_multisampled_2d|texture_storage_1d|texture_storage_2d|texture_storage_2d_array|texture_storage_3d|transpose|trunc|u32|u64|unpack2x16float|unpack2x16snorm|unpack2x16unorm|unpack4x8snorm|unpack4x8unorm|vec[2-4]|workgroupBarrier)\b/,"function-calls":{pattern:/\b[_a-z]\w*(?=\()/i,alias:"function"},"class-name":/\b(?:[A-Z][A-Za-z0-9]*)\b/,"bool-literal":{pattern:/\b(?:false|true)\b/,alias:"boolean"},"hex-int-literal":{pattern:/\b0[xX][0-9a-fA-F]+[iu]?\b(?![.pP])/,alias:"number"},"hex-float-literal":{pattern:/\b0[xX][0-9a-fA-F]*(?:\.[0-9a-fA-F]*)?(?:[pP][+-]?\d+[fh]?)?/,alias:"number"},"decimal-float-literal":[{pattern:/\d*\.\d+(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+\.\d*(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+[eE](?:\+|-)?\d+[fh]?/,alias:"number"},{pattern:/\b\d+[fh]\b/,alias:"number"}],"int-literal":{pattern:/\b\d+[iu]?\b/,alias:"number"},operator:[{pattern:/(?:\^|~|\|(?!\|)|\|\||&&|<<|>>|!)(?!=)/},{pattern:/&(?![&=])/},{pattern:/(?:\+=|-=|\*=|\/=|%=|\^=|&=|\|=|<<=|>>=)/},{pattern:/(^|[^<>=!])=(?![=>])/,lookbehind:!0},{pattern:/(?:==|!=|<=|\+\+|--|(^|[^=])>=)/,lookbehind:!0},{pattern:/(?:(?:[+%]|(?:\*(?!\w)))(?!=))|(?:-(?!>))|(?:\/(?!\/))/},{pattern:/->/}],punctuation:/[@(){}[\],;<>:.]/}}yT.displayName="wiki";yT.aliases=[];function yT(e){e.register(an),e.languages.wiki=e.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:e.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),e.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:e.languages.markup.tag.inside}}}})}ET.displayName="wolfram";ET.aliases=["mathematica","nb","wl"];function ET(e){e.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.mathematica=e.languages.wolfram,e.languages.wl=e.languages.wolfram,e.languages.nb=e.languages.wolfram}ST.displayName="wren";ST.aliases=[];function ST(e){e.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},e.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:e.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}kT.displayName="xeora";kT.aliases=["xeoracube"];function kT(e){e.register(an),(function(t){t.languages.xeora=t.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),t.languages.insertBefore("inside","punctuation",{variable:t.languages.xeora["function-inline"].inside.variable},t.languages.xeora["function-block"]),t.languages.xeoracube=t.languages.xeora})(e)}vT.displayName="xml-doc";vT.aliases=[];function vT(e){e.register(an),(function(t){function n(s,u){t.languages[s]&&t.languages.insertBefore(s,"comment",{"doc-comment":u})}var r=t.languages.markup.tag,i={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:r}},a={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:r}};n("csharp",i),n("fsharp",i),n("vbnet",a)})(e)}wT.displayName="xojo";wT.aliases=[];function wT(e){e.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}TT.displayName="xquery";TT.aliases=[];function TT(e){e.register(an),(function(t){t.languages.xquery=t.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),t.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,t.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,t.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,t.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:t.languages.xquery,alias:"language-xquery"};var n=function(i){return typeof i=="string"?i:typeof i.content=="string"?i.content:i.content.map(n).join("")},r=function(i){for(var a=[],s=0;s<i.length;s++){var u=i[s],c=!1;if(typeof u!="string"&&(u.type==="tag"&&u.content[0]&&u.content[0].type==="tag"?u.content[0].content[0].content==="</"?a.length>0&&a[a.length-1].tagName===n(u.content[0].content[1])&&a.pop():u.content[u.content.length-1].content==="/>"||a.push({tagName:n(u.content[0].content[1]),openedBraces:0}):a.length>0&&u.type==="punctuation"&&u.content==="{"&&(!i[s+1]||i[s+1].type!=="punctuation"||i[s+1].content!=="{")&&(!i[s-1]||i[s-1].type!=="plain-text"||i[s-1].content!=="{")?a[a.length-1].openedBraces++:a.length>0&&a[a.length-1].openedBraces>0&&u.type==="punctuation"&&u.content==="}"?a[a.length-1].openedBraces--:u.type!=="comment"&&(c=!0)),(c||typeof u=="string")&&a.length>0&&a[a.length-1].openedBraces===0){var p=n(u);s<i.length-1&&(typeof i[s+1]=="string"||i[s+1].type==="plain-text")&&(p+=n(i[s+1]),i.splice(s+1,1)),s>0&&(typeof i[s-1]=="string"||i[s-1].type==="plain-text")&&(p=n(i[s-1])+p,i.splice(s-1,1),s--),/^\s+$/.test(p)?i[s]=p:i[s]=new t.Token("plain-text",p,null,p)}u.content&&typeof u.content!="string"&&r(u.content)}};t.hooks.add("after-tokenize",function(i){i.language==="xquery"&&r(i.tokens)})})(e)}xT.displayName="yang";xT.aliases=[];function xT(e){e.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}AT.displayName="zig";AT.aliases=[];function AT(e){(function(t){function n(p){return function(){return p}}var r=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,i="\\b(?!"+r.source+")(?!\\d)\\w+\\b",a=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,s=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*<ALIGN>|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(/<ALIGN>/g,n(a)),u=/(?:\bpromise\b|(?:\berror\.)?<ID>(?:\.<ID>)*(?!\s+<ID>))/.source.replace(/<ID>/g,n(i)),c="(?!\\s)(?:!?\\s*(?:"+s+"\\s*)*"+u+")+";t.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?[=;,)])|<TYPE>(?=\s*(?:<ALIGN>\s*)?\{)/.source.replace(/<TYPE>/g,n(c)).replace(/<ALIGN>/g,n(a))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?;)/.source.replace(/<TYPE>/g,n(c)).replace(/<ALIGN>/g,n(a))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:r,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},t.languages.zig["class-name"].forEach(function(p){p.inside===null&&(p.inside=t.languages.zig)})})(e)}I.register(an);I.register(Ao);I.register(Ve);I.register(CE);I.register(dn);I.register(RE);I.register(NE);I.register(_E);I.register(OE);I.register(IE);I.register(DE);I.register(LE);I.register(ME);I.register(ac);I.register(BE);I.register(FE);I.register(zE);I.register(UE);I.register(qr);I.register(Xs);I.register(PE);I.register($E);I.register(HE);I.register(Ff);I.register(zf);I.register(jE);I.register(GE);I.register(VE);I.register(Zs);I.register(qE);I.register(WE);I.register(YE);I.register(KE);I.register(XE);I.register(ZE);I.register(QE);I.register(JE);I.register(Uf);I.register(eS);I.register(tS);I.register(nS);I.register(rS);I.register(iS);I.register(aS);I.register(oS);I.register(sS);I.register(lS);I.register(uS);I.register(cS);I.register(dS);I.register(pS);I.register(fS);I.register(hS);I.register(mS);I.register(gS);I.register(bS);I.register(yS);I.register(ES);I.register(SS);I.register(kS);I.register(vS);I.register(wS);I.register(TS);I.register(Qs);I.register(xS);I.register(AS);I.register(CS);I.register(RS);I.register(NS);I.register(_S);I.register(OS);I.register(IS);I.register(DS);I.register(LS);I.register(MS);I.register(pn);I.register(BS);I.register(FS);I.register(zS);I.register(US);I.register(PS);I.register($S);I.register(HS);I.register(jS);I.register(GS);I.register(VS);I.register(Pf);I.register(qS);I.register(WS);I.register(YS);I.register(KS);I.register(XS);I.register(ZS);I.register(QS);I.register(JS);I.register(ek);I.register(tk);I.register(nk);I.register(rk);I.register(ik);I.register(ak);I.register(ok);I.register(sk);I.register(lk);I.register(uk);I.register(ck);I.register(dk);I.register(pk);I.register(fk);I.register(hk);I.register(mk);I.register(gk);I.register(bk);I.register(yk);I.register(Ek);I.register(Sk);I.register(kk);I.register(vk);I.register(wk);I.register(oc);I.register(Tk);I.register(xk);I.register(Ak);I.register(Ck);I.register(Rk);I.register(Nk);I.register(sc);I.register(_k);I.register(Ok);I.register(Ik);I.register(Dk);I.register(Lk);I.register(Mk);I.register(Bk);I.register(Fk);I.register(zk);I.register(Uk);I.register(Pk);I.register(Js);I.register(el);I.register(tl);I.register($k);I.register(Hk);I.register(jk);I.register(Gk);I.register(Vk);I.register(qk);I.register(Wk);I.register(lc);I.register(Yk);I.register(Kk);I.register(Xk);I.register(Zk);I.register(Qk);I.register(Jk);I.register(ev);I.register(tv);I.register(nv);I.register(rv);I.register(iv);I.register(av);I.register(ov);I.register(sv);I.register(uc);I.register(lv);I.register(uv);I.register(cv);I.register(dv);I.register(pv);I.register(fv);I.register(hv);I.register(mv);I.register(gv);I.register($f);I.register(bv);I.register(yv);I.register(Ev);I.register(Sv);I.register(kv);I.register(vv);I.register(wv);I.register(Tv);I.register(xv);I.register(Av);I.register(Cv);I.register(Rv);I.register(Nv);I.register(_v);I.register(Ov);I.register(Iv);I.register(Dv);I.register(Lv);I.register(Mv);I.register(Bv);I.register(Fv);I.register(zv);I.register(Uv);I.register(Pv);I.register($v);I.register(Hv);I.register(jv);I.register(Gv);I.register(Vv);I.register(qv);I.register(Wv);I.register(Yv);I.register(Kv);I.register(Xv);I.register(Zv);I.register(Qv);I.register(Jv);I.register(ew);I.register(tw);I.register(nw);I.register(rw);I.register(iw);I.register(aw);I.register(ow);I.register(sw);I.register(lw);I.register(uw);I.register(cw);I.register(dw);I.register(pw);I.register(fw);I.register(Hf);I.register(hw);I.register(mw);I.register(gw);I.register(bw);I.register(yw);I.register(Ew);I.register(Sw);I.register(jf);I.register(kw);I.register(vw);I.register(ww);I.register(Tw);I.register(xw);I.register(Aw);I.register(Cw);I.register(Rw);I.register(Nw);I.register(_w);I.register(Ow);I.register(Iw);I.register(Dw);I.register(Lw);I.register(Mw);I.register(Bw);I.register(Fw);I.register(zw);I.register(Uw);I.register(Pw);I.register(Gf);I.register($w);I.register(Hw);I.register(jw);I.register(Gw);I.register(Vw);I.register(qw);I.register(Ww);I.register(Yw);I.register(Kw);I.register(Xw);I.register(cc);I.register(Zw);I.register(Vf);I.register(Qw);I.register(Jw);I.register(eT);I.register(tT);I.register(nT);I.register(rT);I.register(iT);I.register(aT);I.register(oT);I.register(sT);I.register(lT);I.register(uT);I.register(cT);I.register(dT);I.register(pT);I.register(fT);I.register(hT);I.register(mT);I.register(gT);I.register(bT);I.register(yT);I.register(ET);I.register(ST);I.register(kT);I.register(vT);I.register(wT);I.register(TT);I.register(xT);I.register(AT);var ZD=$6(I,h5);ZD.supportedLanguages=H6;const m5={'code[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"]::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},prolog:{color:"hsl(220, 10%, 40%)"},cdata:{color:"hsl(220, 10%, 40%)"},doctype:{color:"hsl(220, 14%, 71%)"},punctuation:{color:"hsl(220, 14%, 71%)"},entity:{color:"hsl(220, 14%, 71%)",cursor:"help"},"attr-name":{color:"hsl(29, 54%, 61%)"},"class-name":{color:"hsl(29, 54%, 61%)"},boolean:{color:"hsl(29, 54%, 61%)"},constant:{color:"hsl(29, 54%, 61%)"},number:{color:"hsl(29, 54%, 61%)"},atrule:{color:"hsl(29, 54%, 61%)"},keyword:{color:"hsl(286, 60%, 67%)"},property:{color:"hsl(355, 65%, 65%)"},tag:{color:"hsl(355, 65%, 65%)"},symbol:{color:"hsl(355, 65%, 65%)"},deleted:{color:"hsl(355, 65%, 65%)"},important:{color:"hsl(355, 65%, 65%)"},selector:{color:"hsl(95, 38%, 62%)"},string:{color:"hsl(95, 38%, 62%)"},char:{color:"hsl(95, 38%, 62%)"},builtin:{color:"hsl(95, 38%, 62%)"},inserted:{color:"hsl(95, 38%, 62%)"},regex:{color:"hsl(95, 38%, 62%)"},"attr-value":{color:"hsl(95, 38%, 62%)"},"attr-value > .token.punctuation":{color:"hsl(95, 38%, 62%)"},variable:{color:"hsl(207, 82%, 66%)"},operator:{color:"hsl(207, 82%, 66%)"},function:{color:"hsl(207, 82%, 66%)"},url:{color:"hsl(187, 47%, 55%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(220, 14%, 71%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(220, 14%, 71%)"},".language-css .token.selector":{color:"hsl(355, 65%, 65%)"},".language-css .token.property":{color:"hsl(220, 14%, 71%)"},".language-css .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.string.url":{color:"hsl(95, 38%, 62%)"},".language-css .token.important":{color:"hsl(286, 60%, 67%)"},".language-css .token.atrule .token.rule":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.operator":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(5, 48%, 51%)"},".language-json .token.operator":{color:"hsl(220, 14%, 71%)"},".language-json .token.null.keyword":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.url":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.operator":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.content":{color:"hsl(207, 82%, 66%)"},".language-markdown .token.url > .token.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.url-reference.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(95, 38%, 62%)"},".language-markdown .token.bold .token.content":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.italic .token.content":{color:"hsl(286, 60%, 67%)"},".language-markdown .token.strike .token.content":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.list.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(355, 65%, 65%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.cr:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.lf:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.space:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},".line-highlight.line-highlight":{background:"hsla(220, 100%, 80%, 0.04)"},".line-highlight.line-highlight:before":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(220, 100%, 80%, 0.04)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".command-line .command-line-prompt":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(220, 14%, 45%)"},".command-line .command-line-prompt > span:before":{color:"hsl(220, 14%, 45%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(286, 60%, 67%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(224, 13%, 17%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(224, 13%, 17%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(224, 13%, 17%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(224, 13%, 17%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(219, 13%, 22%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(220, 14%, 71%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(220, 14%, 71%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(220, 14%, 71%)"}};function Sr({className:e,variant:t="default",children:n,...r}){const i={default:"bg-indigo-600 text-white hover:bg-indigo-700 disabled:opacity-40",secondary:"bg-slate-800 text-slate-100 border border-slate-700 hover:bg-slate-700"};return B.jsx("button",{className:Ra("inline-flex items-center justify-center rounded-md px-3 py-2 text-sm font-medium transition-colors",i[t]||i.default,e),...r,children:n})}var lb={exports:{}},ub={};var u_;function g5(){if(u_)return ub;u_=1;var e=Zu();function t(m,g){return m===g&&(m!==0||1/m===1/g)||m!==m&&g!==g}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,a=e.useLayoutEffect,s=e.useDebugValue;function u(m,g){var b=g(),S=r({inst:{value:b,getSnapshot:g}}),k=S[0].inst,v=S[1];return a(function(){k.value=b,k.getSnapshot=g,c(k)&&v({inst:k})},[m,b,g]),i(function(){return c(k)&&v({inst:k}),m(function(){c(k)&&v({inst:k})})},[m]),s(b),b}function c(m){var g=m.getSnapshot;m=m.value;try{var b=g();return!n(m,b)}catch{return!0}}function p(m,g){return g()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:u;return ub.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,ub}var c_;function QD(){return c_||(c_=1,lb.exports=g5()),lb.exports}var JD=QD();function Jt(e){this.content=e}Jt.prototype={constructor:Jt,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return t==-1?void 0:this.content[t+1]},update:function(e,t,n){var r=n&&n!=e?this.remove(n):this,i=r.find(e),a=r.content.slice();return i==-1?a.push(n||e,t):(a[i+1]=t,n&&(a[i]=n)),new Jt(a)},remove:function(e){var t=this.find(e);if(t==-1)return this;var n=this.content.slice();return n.splice(t,2),new Jt(n)},addToStart:function(e,t){return new Jt([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new Jt(n)},addBefore:function(e,t,n){var r=this.remove(t),i=r.content.slice(),a=r.find(e);return i.splice(a==-1?i.length:a,0,t,n),new Jt(i)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return e=Jt.from(e),e.size?new Jt(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=Jt.from(e),e.size?new Jt(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=Jt.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}};Jt.from=function(e){if(e instanceof Jt)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new Jt(t)};function eL(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),a=t.child(r);if(i==a){n+=i.nodeSize;continue}if(!i.sameMarkup(a))return n;if(i.isText&&i.text!=a.text){for(let s=0;i.text[s]==a.text[s];s++)n++;return n}if(i.content.size||a.content.size){let s=eL(i.content,a.content,n+1);if(s!=null)return s}n+=i.nodeSize}}function tL(e,t,n,r){for(let i=e.childCount,a=t.childCount;;){if(i==0||a==0)return i==a?null:{a:n,b:r};let s=e.child(--i),u=t.child(--a),c=s.nodeSize;if(s==u){n-=c,r-=c;continue}if(!s.sameMarkup(u))return{a:n,b:r};if(s.isText&&s.text!=u.text){let p=0,f=Math.min(s.text.length,u.text.length);for(;p<f&&s.text[s.text.length-p-1]==u.text[u.text.length-p-1];)p++,n--,r--;return{a:n,b:r}}if(s.content.size||u.content.size){let p=tL(s.content,u.content,n-1,r-1);if(p)return p}n-=c,r-=c}}class ue{constructor(t,n){if(this.content=t,this.size=n||0,n==null)for(let r=0;r<t.length;r++)this.size+=t[r].nodeSize}nodesBetween(t,n,r,i=0,a){for(let s=0,u=0;u<n;s++){let c=this.content[s],p=u+c.nodeSize;if(p>t&&r(c,i+u,a||null,s)!==!1&&c.content.size){let f=u+1;c.nodesBetween(Math.max(0,t-f),Math.min(c.content.size,n-f),r,i+f)}u=p}}descendants(t){this.nodesBetween(0,this.size,t)}textBetween(t,n,r,i){let a="",s=!0;return this.nodesBetween(t,n,(u,c)=>{let p=u.isText?u.text.slice(Math.max(t,c)-c,n-c):u.isLeaf?i?typeof i=="function"?i(u):i:u.type.spec.leafText?u.type.spec.leafText(u):"":"";u.isBlock&&(u.isLeaf&&p||u.isTextblock)&&r&&(s?s=!1:a+=r),a+=p},0),a}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,i=this.content.slice(),a=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),a=1);a<t.content.length;a++)i.push(t.content[a]);return new ue(i,this.size+t.size)}cut(t,n=this.size){if(t==0&&n==this.size)return this;let r=[],i=0;if(n>t)for(let a=0,s=0;s<n;a++){let u=this.content[a],c=s+u.nodeSize;c>t&&((s<t||c>n)&&(u.isText?u=u.cut(Math.max(0,t-s),Math.min(u.text.length,n-s)):u=u.cut(Math.max(0,t-s-1),Math.min(u.content.size,n-s-1))),r.push(u),i+=u.nodeSize),s=c}return new ue(r,i)}cutByIndex(t,n){return t==n?ue.empty:t==0&&n==this.content.length?this:new ue(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let i=this.content.slice(),a=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new ue(i,a)}addToStart(t){return new ue([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new ue(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(t.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(t){let n=this.content[t];if(!n)throw new RangeError("Index "+t+" out of range for "+this);return n}maybeChild(t){return this.content[t]||null}forEach(t){for(let n=0,r=0;n<this.content.length;n++){let i=this.content[n];t(i,r,n),r+=i.nodeSize}}findDiffStart(t,n=0){return eL(this,t,n)}findDiffEnd(t,n=this.size,r=t.size){return tL(this,t,n,r)}findIndex(t){if(t==0)return Vd(0,t);if(t==this.size)return Vd(this.content.length,t);if(t>this.size||t<0)throw new RangeError(`Position ${t} outside of fragment (${this})`);for(let n=0,r=0;;n++){let i=this.child(n),a=r+i.nodeSize;if(a>=t)return a==t?Vd(n+1,a):Vd(n,r);r=a}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(t=>t.toJSON()):null}static fromJSON(t,n){if(!n)return ue.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new ue(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return ue.empty;let n,r=0;for(let i=0;i<t.length;i++){let a=t[i];r+=a.nodeSize,i&&a.isText&&t[i-1].sameMarkup(a)?(n||(n=t.slice(0,i)),n[n.length-1]=a.withText(n[n.length-1].text+a.text)):n&&n.push(a)}return new ue(n||t,r)}static from(t){if(!t)return ue.empty;if(t instanceof ue)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new ue([t],t.nodeSize);throw new RangeError("Can not convert "+t+" to a Fragment"+(t.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}ue.empty=new ue([],0);const cb={index:0,offset:0};function Vd(e,t){return cb.index=e,cb.offset=t,cb}function Rp(e,t){if(e===t)return!0;if(!(e&&typeof e=="object")||!(t&&typeof t=="object"))return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!Rp(e[r],t[r]))return!1}else{for(let r in e)if(!(r in t)||!Rp(e[r],t[r]))return!1;for(let r in t)if(!(r in e))return!1}return!0}let ut=class gy{constructor(t,n){this.type=t,this.attrs=n}addToSet(t){let n,r=!1;for(let i=0;i<t.length;i++){let a=t[i];if(this.eq(a))return t;if(this.type.excludes(a.type))n||(n=t.slice(0,i));else{if(a.type.excludes(this.type))return t;!r&&a.type.rank>this.type.rank&&(n||(n=t.slice(0,i)),n.push(this),r=!0),n&&n.push(a)}}return n||(n=t.slice()),r||n.push(this),n}removeFromSet(t){for(let n=0;n<t.length;n++)if(this.eq(t[n]))return t.slice(0,n).concat(t.slice(n+1));return t}isInSet(t){for(let n=0;n<t.length;n++)if(this.eq(t[n]))return!0;return!1}eq(t){return this==t||this.type==t.type&&Rp(this.attrs,t.attrs)}toJSON(){let t={type:this.type.name};for(let n in this.attrs){t.attrs=this.attrs;break}return t}static fromJSON(t,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let r=t.marks[n.type];if(!r)throw new RangeError(`There is no mark type ${n.type} in this schema`);let i=r.create(n.attrs);return r.checkAttrs(i.attrs),i}static sameSet(t,n){if(t==n)return!0;if(t.length!=n.length)return!1;for(let r=0;r<t.length;r++)if(!t[r].eq(n[r]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&t.length==0)return gy.none;if(t instanceof gy)return[t];let n=t.slice();return n.sort((r,i)=>r.type.rank-i.type.rank),n}};ut.none=[];class Np extends Error{}class ge{constructor(t,n,r){this.content=t,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=rL(this.content,t+this.openStart,n);return r&&new ge(r,this.openStart,this.openEnd)}removeBetween(t,n){return new ge(nL(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,n){if(!n)return ge.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new ge(ue.fromJSON(t,n.content),r,i)}static maxOpen(t,n=!0){let r=0,i=0;for(let a=t.firstChild;a&&!a.isLeaf&&(n||!a.type.spec.isolating);a=a.firstChild)r++;for(let a=t.lastChild;a&&!a.isLeaf&&(n||!a.type.spec.isolating);a=a.lastChild)i++;return new ge(t,r,i)}}ge.empty=new ge(ue.empty,0,0);function nL(e,t,n){let{index:r,offset:i}=e.findIndex(t),a=e.maybeChild(r),{index:s,offset:u}=e.findIndex(n);if(i==t||a.isText){if(u!=n&&!e.child(s).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(r!=s)throw new RangeError("Removing non-flat range");return e.replaceChild(r,a.copy(nL(a.content,t-i-1,n-i-1)))}function rL(e,t,n,r){let{index:i,offset:a}=e.findIndex(t),s=e.maybeChild(i);if(a==t||s.isText)return r&&!r.canReplace(i,i,n)?null:e.cut(0,t).append(n).append(e.cut(t));let u=rL(s.content,t-a-1,n,s);return u&&e.replaceChild(i,s.copy(u))}function b5(e,t,n){if(n.openStart>e.depth)throw new Np("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new Np("Inconsistent open depths");return iL(e,t,n,0)}function iL(e,t,n,r){let i=e.index(r),a=e.node(r);if(i==t.index(r)&&r<e.depth-n.openStart){let s=iL(e,t,n,r+1);return a.copy(a.content.replaceChild(i,s))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&e.depth==r&&t.depth==r){let s=e.parent,u=s.content;return lo(s,u.cut(0,e.parentOffset).append(n.content).append(u.cut(t.parentOffset)))}else{let{start:s,end:u}=y5(n,e);return lo(a,oL(e,s,u,t,r))}else return lo(a,_p(e,t,r))}function aL(e,t){if(!t.type.compatibleContent(e.type))throw new Np("Cannot join "+t.type.name+" onto "+e.type.name)}function by(e,t,n){let r=e.node(n);return aL(r,t.node(n)),r}function so(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function ku(e,t,n,r){let i=(t||e).node(n),a=0,s=t?t.index(n):i.childCount;e&&(a=e.index(n),e.depth>n?a++:e.textOffset&&(so(e.nodeAfter,r),a++));for(let u=a;u<s;u++)so(i.child(u),r);t&&t.depth==n&&t.textOffset&&so(t.nodeBefore,r)}function lo(e,t){return e.type.checkContent(t),e.copy(t)}function oL(e,t,n,r,i){let a=e.depth>i&&by(e,t,i+1),s=r.depth>i&&by(n,r,i+1),u=[];return ku(null,e,i,u),a&&s&&t.index(i)==n.index(i)?(aL(a,s),so(lo(a,oL(e,t,n,r,i+1)),u)):(a&&so(lo(a,_p(e,t,i+1)),u),ku(t,n,i,u),s&&so(lo(s,_p(n,r,i+1)),u)),ku(r,null,i,u),new ue(u)}function _p(e,t,n){let r=[];if(ku(null,e,n,r),e.depth>n){let i=by(e,t,n+1);so(lo(i,_p(e,t,n+1)),r)}return ku(t,null,n,r),new ue(r)}function y5(e,t){let n=t.depth-e.openStart,i=t.node(n).copy(e.content);for(let a=n-1;a>=0;a--)i=t.node(a).copy(ue.from(i));return{start:i.resolveNoCache(e.openStart+n),end:i.resolveNoCache(i.content.size-e.openEnd-n)}}class Uu{constructor(t,n,r){this.pos=t,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(t){return t==null?this.depth:t<0?this.depth+t:t}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(t){return this.path[this.resolveDepth(t)*3]}index(t){return this.path[this.resolveDepth(t)*3+1]}indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t==this.depth&&!this.textOffset?0:1)}start(t){return t=this.resolveDepth(t),t==0?0:this.path[t*3-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size}before(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]}after(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]+this.path[t*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let t=this.parent,n=this.index(this.depth);if(n==t.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=t.child(n);return r?t.child(n).cut(r):i}get nodeBefore(){let t=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(t).cut(0,n):t==0?null:this.parent.child(t-1)}posAtIndex(t,n){n=this.resolveDepth(n);let r=this.path[n*3],i=n==0?0:this.path[n*3-1]+1;for(let a=0;a<t;a++)i+=r.child(a).nodeSize;return i}marks(){let t=this.parent,n=this.index();if(t.content.size==0)return ut.none;if(this.textOffset)return t.child(n).marks;let r=t.maybeChild(n-1),i=t.maybeChild(n);if(!r){let u=r;r=i,i=u}let a=r.marks;for(var s=0;s<a.length;s++)a[s].type.spec.inclusive===!1&&(!i||!a[s].isInSet(i.marks))&&(a=a[s--].removeFromSet(a));return a}marksAcross(t){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let r=n.marks,i=t.parent.maybeChild(t.index());for(var a=0;a<r.length;a++)r[a].type.spec.inclusive===!1&&(!i||!r[a].isInSet(i.marks))&&(r=r[a--].removeFromSet(r));return r}sharedDepth(t){for(let n=this.depth;n>0;n--)if(this.start(n)<=t&&this.end(n)>=t)return n;return 0}blockRange(t=this,n){if(t.pos<this.pos)return t.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==t.pos?1:0);r>=0;r--)if(t.pos<=this.end(r)&&(!n||n(this.node(r))))return new Op(this,t,r);return null}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}max(t){return t.pos>this.pos?t:this}min(t){return t.pos<this.pos?t:this}toString(){let t="";for(let n=1;n<=this.depth;n++)t+=(t?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return t+":"+this.parentOffset}static resolve(t,n){if(!(n>=0&&n<=t.content.size))throw new RangeError("Position "+n+" out of range");let r=[],i=0,a=n;for(let s=t;;){let{index:u,offset:c}=s.content.findIndex(a),p=a-c;if(r.push(s,u,i+c),!p||(s=s.child(u),s.isText))break;a=p-1,i+=c+1}return new Uu(n,r,a)}static resolveCached(t,n){let r=d_.get(t);if(r)for(let a=0;a<r.elts.length;a++){let s=r.elts[a];if(s.pos==n)return s}else d_.set(t,r=new E5);let i=r.elts[r.i]=Uu.resolve(t,n);return r.i=(r.i+1)%S5,i}}class E5{constructor(){this.elts=[],this.i=0}}const S5=12,d_=new WeakMap;class Op{constructor(t,n,r){this.$from=t,this.$to=n,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const k5=Object.create(null);let ga=class yy{constructor(t,n,r,i=ut.none){this.type=t,this.attrs=n,this.marks=i,this.content=r||ue.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(t){return this.content.child(t)}maybeChild(t){return this.content.maybeChild(t)}forEach(t){this.content.forEach(t)}nodesBetween(t,n,r,i=0){this.content.nodesBetween(t,n,r,i,this)}descendants(t){this.nodesBetween(0,this.content.size,t)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(t,n,r,i){return this.content.textBetween(t,n,r,i)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(t){return this==t||this.sameMarkup(t)&&this.content.eq(t.content)}sameMarkup(t){return this.hasMarkup(t.type,t.attrs,t.marks)}hasMarkup(t,n,r){return this.type==t&&Rp(this.attrs,n||t.defaultAttrs||k5)&&ut.sameSet(this.marks,r||ut.none)}copy(t=null){return t==this.content?this:new yy(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new yy(this.type,this.attrs,this.content,t)}cut(t,n=this.content.size){return t==0&&n==this.content.size?this:this.copy(this.content.cut(t,n))}slice(t,n=this.content.size,r=!1){if(t==n)return ge.empty;let i=this.resolve(t),a=this.resolve(n),s=r?0:i.sharedDepth(n),u=i.start(s),p=i.node(s).content.cut(i.pos-u,a.pos-u);return new ge(p,i.depth-s,a.depth-s)}replace(t,n,r){return b5(this.resolve(t),this.resolve(n),r)}nodeAt(t){for(let n=this;;){let{index:r,offset:i}=n.content.findIndex(t);if(n=n.maybeChild(r),!n)return null;if(i==t||n.isText)return n;t-=i+1}}childAfter(t){let{index:n,offset:r}=this.content.findIndex(t);return{node:this.content.maybeChild(n),index:n,offset:r}}childBefore(t){if(t==0)return{node:null,index:0,offset:0};let{index:n,offset:r}=this.content.findIndex(t);if(r<t)return{node:this.content.child(n),index:n,offset:r};let i=this.content.child(n-1);return{node:i,index:n-1,offset:r-i.nodeSize}}resolve(t){return Uu.resolveCached(this,t)}resolveNoCache(t){return Uu.resolve(this,t)}rangeHasMark(t,n,r){let i=!1;return n>t&&this.nodesBetween(t,n,a=>(r.isInSet(a.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),sL(this.marks,t)}contentMatchAt(t){let n=this.type.contentMatch.matchFragment(this.content,0,t);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(t,n,r=ue.empty,i=0,a=r.childCount){let s=this.contentMatchAt(t).matchFragment(r,i,a),u=s&&s.matchFragment(this.content,n);if(!u||!u.validEnd)return!1;for(let c=i;c<a;c++)if(!this.type.allowsMarks(r.child(c).marks))return!1;return!0}canReplaceWith(t,n,r,i){if(i&&!this.type.allowsMarks(i))return!1;let a=this.contentMatchAt(t).matchType(r),s=a&&a.matchFragment(this.content,n);return s?s.validEnd:!1}canAppend(t){return t.content.size?this.canReplace(this.childCount,this.childCount,t.content):this.type.compatibleContent(t.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let t=ut.none;for(let n=0;n<this.marks.length;n++){let r=this.marks[n];r.type.checkAttrs(r.attrs),t=r.addToSet(t)}if(!ut.sameSet(t,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let t={type:this.type.name};for(let n in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map(n=>n.toJSON())),t}static fromJSON(t,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(t.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return t.text(n.text,r)}let i=ue.fromJSON(t,n.content),a=t.nodeType(n.type).create(n.attrs,i,r);return a.type.checkAttrs(a.attrs),a}};ga.prototype.text=void 0;class Ip extends ga{constructor(t,n,r,i){if(super(t,n,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):sL(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(t,n){return this.text.slice(t,n)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new Ip(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new Ip(this.type,this.attrs,t,this.marks)}cut(t=0,n=this.text.length){return t==0&&n==this.text.length?this:this.withText(this.text.slice(t,n))}eq(t){return this.sameMarkup(t)&&this.text==t.text}toJSON(){let t=super.toJSON();return t.text=this.text,t}}function sL(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}class yo{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new v5(t,n);if(r.next==null)return yo.empty;let i=lL(r);r.next&&r.err("Unexpected trailing text");let a=N5(R5(i));return _5(a,r),a}matchType(t){for(let n=0;n<this.next.length;n++)if(this.next[n].type==t)return this.next[n].next;return null}matchFragment(t,n=0,r=t.childCount){let i=this;for(let a=n;i&&a<r;a++)i=i.matchType(t.child(a).type);return i}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let t=0;t<this.next.length;t++){let{type:n}=this.next[t];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(t){for(let n=0;n<this.next.length;n++)for(let r=0;r<t.next.length;r++)if(this.next[n].type==t.next[r].type)return!0;return!1}fillBefore(t,n=!1,r=0){let i=[this];function a(s,u){let c=s.matchFragment(t,r);if(c&&(!n||c.validEnd))return ue.from(u.map(p=>p.createAndFill()));for(let p=0;p<s.next.length;p++){let{type:f,next:m}=s.next[p];if(!(f.isText||f.hasRequiredAttrs())&&i.indexOf(m)==-1){i.push(m);let g=a(m,u.concat(f));if(g)return g}}return null}return a(this,[])}findWrapping(t){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==t)return this.wrapCache[r+1];let n=this.computeWrapping(t);return this.wrapCache.push(t,n),n}computeWrapping(t){let n=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let i=r.shift(),a=i.match;if(a.matchType(t)){let s=[];for(let u=i;u.type;u=u.via)s.push(u.type);return s.reverse()}for(let s=0;s<a.next.length;s++){let{type:u,next:c}=a.next[s];!u.isLeaf&&!u.hasRequiredAttrs()&&!(u.name in n)&&(!i.type||c.validEnd)&&(r.push({match:u.contentMatch,type:u,via:i}),n[u.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(t){if(t>=this.next.length)throw new RangeError(`There's no ${t}th edge in this content match`);return this.next[t]}toString(){let t=[];function n(r){t.push(r);for(let i=0;i<r.next.length;i++)t.indexOf(r.next[i].next)==-1&&n(r.next[i].next)}return n(this),t.map((r,i)=>{let a=i+(r.validEnd?"*":" ")+" ";for(let s=0;s<r.next.length;s++)a+=(s?", ":"")+r.next[s].type.name+"->"+t.indexOf(r.next[s].next);return a}).join(`
|
|
86
|
+
`)}}yo.empty=new yo(!0);class v5{constructor(t,n){this.string=t,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=t.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(t){return this.next==t&&(this.pos++||!0)}err(t){throw new SyntaxError(t+" (in content expression '"+this.string+"')")}}function lL(e){let t=[];do t.push(w5(e));while(e.eat("|"));return t.length==1?t[0]:{type:"choice",exprs:t}}function w5(e){let t=[];do t.push(T5(e));while(e.next&&e.next!=")"&&e.next!="|");return t.length==1?t[0]:{type:"seq",exprs:t}}function T5(e){let t=C5(e);for(;;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else if(e.eat("{"))t=x5(e,t);else break;return t}function p_(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function x5(e,t){let n=p_(e),r=n;return e.eat(",")&&(e.next!="}"?r=p_(e):r=-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}function A5(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let i=[];for(let a in n){let s=n[a];s.isInGroup(t)&&i.push(s)}return i.length==0&&e.err("No node type or group '"+t+"' found"),i}function C5(e){if(e.eat("(")){let t=lL(e);return e.eat(")")||e.err("Missing closing paren"),t}else if(/\W/.test(e.next))e.err("Unexpected token '"+e.next+"'");else{let t=A5(e,e.next).map(n=>(e.inline==null?e.inline=n.isInline:e.inline!=n.isInline&&e.err("Mixing inline and block content"),{type:"name",value:n}));return e.pos++,t.length==1?t[0]:{type:"choice",exprs:t}}}function R5(e){let t=[[]];return i(a(e,0),n()),t;function n(){return t.push([])-1}function r(s,u,c){let p={term:c,to:u};return t[s].push(p),p}function i(s,u){s.forEach(c=>c.to=u)}function a(s,u){if(s.type=="choice")return s.exprs.reduce((c,p)=>c.concat(a(p,u)),[]);if(s.type=="seq")for(let c=0;;c++){let p=a(s.exprs[c],u);if(c==s.exprs.length-1)return p;i(p,u=n())}else if(s.type=="star"){let c=n();return r(u,c),i(a(s.expr,c),c),[r(c)]}else if(s.type=="plus"){let c=n();return i(a(s.expr,u),c),i(a(s.expr,c),c),[r(c)]}else{if(s.type=="opt")return[r(u)].concat(a(s.expr,u));if(s.type=="range"){let c=u;for(let p=0;p<s.min;p++){let f=n();i(a(s.expr,c),f),c=f}if(s.max==-1)i(a(s.expr,c),c);else for(let p=s.min;p<s.max;p++){let f=n();r(c,f),i(a(s.expr,c),f),c=f}return[r(c)]}else{if(s.type=="name")return[r(u,void 0,s.value)];throw new Error("Unknown expr type")}}}}function uL(e,t){return t-e}function f_(e,t){let n=[];return r(t),n.sort(uL);function r(i){let a=e[i];if(a.length==1&&!a[0].term)return r(a[0].to);n.push(i);for(let s=0;s<a.length;s++){let{term:u,to:c}=a[s];!u&&n.indexOf(c)==-1&&r(c)}}}function N5(e){let t=Object.create(null);return n(f_(e,0));function n(r){let i=[];r.forEach(s=>{e[s].forEach(({term:u,to:c})=>{if(!u)return;let p;for(let f=0;f<i.length;f++)i[f][0]==u&&(p=i[f][1]);f_(e,c).forEach(f=>{p||i.push([u,p=[]]),p.indexOf(f)==-1&&p.push(f)})})});let a=t[r.join(",")]=new yo(r.indexOf(e.length-1)>-1);for(let s=0;s<i.length;s++){let u=i[s][1].sort(uL);a.next.push({type:i[s][0],next:t[u.join(",")]||n(u)})}return a}}function _5(e,t){for(let n=0,r=[e];n<r.length;n++){let i=r[n],a=!i.validEnd,s=[];for(let u=0;u<i.next.length;u++){let{type:c,next:p}=i.next[u];s.push(c.name),a&&!(c.isText||c.hasRequiredAttrs())&&(a=!1),r.indexOf(p)==-1&&r.push(p)}a&&t.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function cL(e){let t=Object.create(null);for(let n in e){let r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function dL(e,t){let n=Object.create(null);for(let r in e){let i=t&&t[r];if(i===void 0){let a=e[r];if(a.hasDefault)i=a.default;else throw new RangeError("No value supplied for attribute "+r)}n[r]=i}return n}function pL(e,t,n,r){for(let i in t)if(!(i in e))throw new RangeError(`Unsupported attribute ${i} for ${n} of type ${i}`);for(let i in e){let a=e[i];a.validate&&a.validate(t[i])}}function fL(e,t){let n=Object.create(null);if(t)for(let r in t)n[r]=new I5(e,r,t[r]);return n}let h_=class hL{constructor(t,n,r){this.name=t,this.schema=n,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=fL(t,r.attrs),this.defaultAttrs=cL(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||t=="text"),this.isText=t=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==yo.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(t){return this.groups.indexOf(t)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let t in this.attrs)if(this.attrs[t].isRequired)return!0;return!1}compatibleContent(t){return this==t||this.contentMatch.compatible(t.contentMatch)}computeAttrs(t){return!t&&this.defaultAttrs?this.defaultAttrs:dL(this.attrs,t)}create(t=null,n,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new ga(this,this.computeAttrs(t),ue.from(n),ut.setFrom(r))}createChecked(t=null,n,r){return n=ue.from(n),this.checkContent(n),new ga(this,this.computeAttrs(t),n,ut.setFrom(r))}createAndFill(t=null,n,r){if(t=this.computeAttrs(t),n=ue.from(n),n.size){let s=this.contentMatch.fillBefore(n);if(!s)return null;n=s.append(n)}let i=this.contentMatch.matchFragment(n),a=i&&i.fillBefore(ue.empty,!0);return a?new ga(this,t,n.append(a),ut.setFrom(r)):null}validContent(t){let n=this.contentMatch.matchFragment(t);if(!n||!n.validEnd)return!1;for(let r=0;r<t.childCount;r++)if(!this.allowsMarks(t.child(r).marks))return!1;return!0}checkContent(t){if(!this.validContent(t))throw new RangeError(`Invalid content for node ${this.name}: ${t.toString().slice(0,50)}`)}checkAttrs(t){pL(this.attrs,t,"node",this.name)}allowsMarkType(t){return this.markSet==null||this.markSet.indexOf(t)>-1}allowsMarks(t){if(this.markSet==null)return!0;for(let n=0;n<t.length;n++)if(!this.allowsMarkType(t[n].type))return!1;return!0}allowedMarks(t){if(this.markSet==null)return t;let n;for(let r=0;r<t.length;r++)this.allowsMarkType(t[r].type)?n&&n.push(t[r]):n||(n=t.slice(0,r));return n?n.length?n:ut.none:t}static compile(t,n){let r=Object.create(null);t.forEach((a,s)=>r[a]=new hL(a,n,s));let i=n.spec.topNode||"doc";if(!r[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let a in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};function O5(e,t,n){let r=n.split("|");return i=>{let a=i===null?"null":typeof i;if(r.indexOf(a)<0)throw new RangeError(`Expected value of type ${r} for attribute ${t} on type ${e}, got ${a}`)}}class I5{constructor(t,n,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?O5(t,n,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class qf{constructor(t,n,r,i){this.name=t,this.rank=n,this.schema=r,this.spec=i,this.attrs=fL(t,i.attrs),this.excluded=null;let a=cL(this.attrs);this.instance=a?new ut(this,a):null}create(t=null){return!t&&this.instance?this.instance:new ut(this,dL(this.attrs,t))}static compile(t,n){let r=Object.create(null),i=0;return t.forEach((a,s)=>r[a]=new qf(a,i++,n,s)),r}removeFromSet(t){for(var n=0;n<t.length;n++)t[n].type==this&&(t=t.slice(0,n).concat(t.slice(n+1)),n--);return t}isInSet(t){for(let n=0;n<t.length;n++)if(t[n].type==this)return t[n]}checkAttrs(t){pL(this.attrs,t,"mark",this.name)}excludes(t){return this.excluded.indexOf(t)>-1}}class mL{constructor(t){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let i in t)n[i]=t[i];n.nodes=Jt.from(t.nodes),n.marks=Jt.from(t.marks||{}),this.nodes=h_.compile(this.spec.nodes,this),this.marks=qf.compile(this.spec.marks,this);let r=Object.create(null);for(let i in this.nodes){if(i in this.marks)throw new RangeError(i+" can not be both a node and a mark");let a=this.nodes[i],s=a.spec.content||"",u=a.spec.marks;if(a.contentMatch=r[s]||(r[s]=yo.parse(s,this.nodes)),a.inlineContent=a.contentMatch.inlineContent,a.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!a.isInline||!a.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=a}a.markSet=u=="_"?null:u?m_(this,u.split(" ")):u==""||!a.inlineContent?[]:null}for(let i in this.marks){let a=this.marks[i],s=a.spec.excludes;a.excluded=s==null?[a]:s==""?[]:m_(this,s.split(" "))}this.nodeFromJSON=i=>ga.fromJSON(this,i),this.markFromJSON=i=>ut.fromJSON(this,i),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(t,n=null,r,i){if(typeof t=="string")t=this.nodeType(t);else if(t instanceof h_){if(t.schema!=this)throw new RangeError("Node type from different schema used ("+t.name+")")}else throw new RangeError("Invalid node type: "+t);return t.createChecked(n,r,i)}text(t,n){let r=this.nodes.text;return new Ip(r,r.defaultAttrs,t,ut.setFrom(n))}mark(t,n){return typeof t=="string"&&(t=this.marks[t]),t.create(n)}nodeType(t){let n=this.nodes[t];if(!n)throw new RangeError("Unknown node type: "+t);return n}}function m_(e,t){let n=[];for(let r=0;r<t.length;r++){let i=t[r],a=e.marks[i],s=a;if(a)n.push(a);else for(let u in e.marks){let c=e.marks[u];(i=="_"||c.spec.group&&c.spec.group.split(" ").indexOf(i)>-1)&&n.push(s=c)}if(!s)throw new SyntaxError("Unknown mark type: '"+t[r]+"'")}return n}function D5(e){return e.tag!=null}function L5(e){return e.style!=null}class Si{constructor(t,n){this.schema=t,this.rules=n,this.tags=[],this.styles=[];let r=this.matchedStyles=[];n.forEach(i=>{if(D5(i))this.tags.push(i);else if(L5(i)){let a=/[^=]*/.exec(i.style)[0];r.indexOf(a)<0&&r.push(a),this.styles.push(i)}}),this.normalizeLists=!this.tags.some(i=>{if(!/^(ul|ol)\b/.test(i.tag)||!i.node)return!1;let a=t.nodes[i.node];return a.contentMatch.matchType(a)})}parse(t,n={}){let r=new b_(this,n,!1);return r.addAll(t,ut.none,n.from,n.to),r.finish()}parseSlice(t,n={}){let r=new b_(this,n,!0);return r.addAll(t,ut.none,n.from,n.to),ge.maxOpen(r.finish())}matchTag(t,n,r){for(let i=r?this.tags.indexOf(r)+1:0;i<this.tags.length;i++){let a=this.tags[i];if(F5(t,a.tag)&&(a.namespace===void 0||t.namespaceURI==a.namespace)&&(!a.context||n.matchesContext(a.context))){if(a.getAttrs){let s=a.getAttrs(t);if(s===!1)continue;a.attrs=s||void 0}return a}}}matchStyle(t,n,r,i){for(let a=i?this.styles.indexOf(i)+1:0;a<this.styles.length;a++){let s=this.styles[a],u=s.style;if(!(u.indexOf(t)!=0||s.context&&!r.matchesContext(s.context)||u.length>t.length&&(u.charCodeAt(t.length)!=61||u.slice(t.length+1)!=n))){if(s.getAttrs){let c=s.getAttrs(n);if(c===!1)continue;s.attrs=c||void 0}return s}}}static schemaRules(t){let n=[];function r(i){let a=i.priority==null?50:i.priority,s=0;for(;s<n.length;s++){let u=n[s];if((u.priority==null?50:u.priority)<a)break}n.splice(s,0,i)}for(let i in t.marks){let a=t.marks[i].spec.parseDOM;a&&a.forEach(s=>{r(s=y_(s)),s.mark||s.ignore||s.clearMark||(s.mark=i)})}for(let i in t.nodes){let a=t.nodes[i].spec.parseDOM;a&&a.forEach(s=>{r(s=y_(s)),s.node||s.ignore||s.mark||(s.node=i)})}return n}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new Si(t,Si.schemaRules(t)))}}const gL={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},M5={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},bL={ol:!0,ul:!0},Pu=1,Ey=2,vu=4;function g_(e,t,n){return t!=null?(t?Pu:0)|(t==="full"?Ey:0):e&&e.whitespace=="pre"?Pu|Ey:n&~vu}class qd{constructor(t,n,r,i,a,s){this.type=t,this.attrs=n,this.marks=r,this.solid=i,this.options=s,this.content=[],this.activeMarks=ut.none,this.match=a||(s&vu?null:t.contentMatch)}findWrapping(t){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(ue.from(t));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,i;return(i=r.findWrapping(t.type))?(this.match=r,i):null}}return this.match.findWrapping(t.type)}finish(t){if(!(this.options&Pu)){let r=this.content[this.content.length-1],i;if(r&&r.isText&&(i=/[ \t\r\n\u000c]+$/.exec(r.text))){let a=r;r.text.length==i[0].length?this.content.pop():this.content[this.content.length-1]=a.withText(a.text.slice(0,a.text.length-i[0].length))}}let n=ue.from(this.content);return!t&&this.match&&(n=n.append(this.match.fillBefore(ue.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(t){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:t.parentNode&&!gL.hasOwnProperty(t.parentNode.nodeName.toLowerCase())}}class b_{constructor(t,n,r){this.parser=t,this.options=n,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let i=n.topNode,a,s=g_(null,n.preserveWhitespace,0)|(r?vu:0);i?a=new qd(i.type,i.attrs,ut.none,!0,n.topMatch||i.type.contentMatch,s):r?a=new qd(null,null,ut.none,!0,null,s):a=new qd(t.schema.topNodeType,null,ut.none,!0,null,s),this.nodes=[a],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(t,n){t.nodeType==3?this.addTextNode(t,n):t.nodeType==1&&this.addElement(t,n)}addTextNode(t,n){let r=t.nodeValue,i=this.top,a=i.options&Ey?"full":this.localPreserveWS||(i.options&Pu)>0,{schema:s}=this.parser;if(a==="full"||i.inlineContext(t)||/[^ \t\r\n\u000c]/.test(r)){if(a)if(a==="full")r=r.replace(/\r\n?/g,`
|
|
87
|
+
`);else if(s.linebreakReplacement&&/[\r\n]/.test(r)&&this.top.findWrapping(s.linebreakReplacement.create())){let u=r.split(/\r?\n|\r/);for(let c=0;c<u.length;c++)c&&this.insertNode(s.linebreakReplacement.create(),n,!0),u[c]&&this.insertNode(s.text(u[c]),n,!/\S/.test(u[c]));r=""}else r=r.replace(/\r?\n|\r/g," ");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let u=i.content[i.content.length-1],c=t.previousSibling;(!u||c&&c.nodeName=="BR"||u.isText&&/[ \t\r\n\u000c]$/.test(u.text))&&(r=r.slice(1))}r&&this.insertNode(s.text(r),n,!/\S/.test(r)),this.findInText(t)}else this.findInside(t)}addElement(t,n,r){let i=this.localPreserveWS,a=this.top;(t.tagName=="PRE"||/pre/.test(t.style&&t.style.whiteSpace))&&(this.localPreserveWS=!0);let s=t.nodeName.toLowerCase(),u;bL.hasOwnProperty(s)&&this.parser.normalizeLists&&B5(t);let c=this.options.ruleFromNode&&this.options.ruleFromNode(t)||(u=this.parser.matchTag(t,this,r));e:if(c?c.ignore:M5.hasOwnProperty(s))this.findInside(t),this.ignoreFallback(t,n);else if(!c||c.skip||c.closeParent){c&&c.closeParent?this.open=Math.max(0,this.open-1):c&&c.skip.nodeType&&(t=c.skip);let p,f=this.needsBlock;if(gL.hasOwnProperty(s))a.content.length&&a.content[0].isInline&&this.open&&(this.open--,a=this.top),p=!0,a.type||(this.needsBlock=!0);else if(!t.firstChild){this.leafFallback(t,n);break e}let m=c&&c.skip?n:this.readStyles(t,n);m&&this.addAll(t,m),p&&this.sync(a),this.needsBlock=f}else{let p=this.readStyles(t,n);p&&this.addElementByRule(t,c,p,c.consuming===!1?u:void 0)}this.localPreserveWS=i}leafFallback(t,n){t.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(t.ownerDocument.createTextNode(`
|
|
88
|
+
`),n)}ignoreFallback(t,n){t.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n,!0)}readStyles(t,n){let r=t.style;if(r&&r.length)for(let i=0;i<this.parser.matchedStyles.length;i++){let a=this.parser.matchedStyles[i],s=r.getPropertyValue(a);if(s)for(let u=void 0;;){let c=this.parser.matchStyle(a,s,this,u);if(!c)break;if(c.ignore)return null;if(c.clearMark?n=n.filter(p=>!c.clearMark(p)):n=n.concat(this.parser.schema.marks[c.mark].create(c.attrs)),c.consuming===!1)u=c;else break}}return n}addElementByRule(t,n,r,i){let a,s;if(n.node)if(s=this.parser.schema.nodes[n.node],s.isLeaf)this.insertNode(s.create(n.attrs),r,t.nodeName=="BR")||this.leafFallback(t,r);else{let c=this.enter(s,n.attrs||null,r,n.preserveWhitespace);c&&(a=!0,r=c)}else{let c=this.parser.schema.marks[n.mark];r=r.concat(c.create(n.attrs))}let u=this.top;if(s&&s.isLeaf)this.findInside(t);else if(i)this.addElement(t,r,i);else if(n.getContent)this.findInside(t),n.getContent(t,this.parser.schema).forEach(c=>this.insertNode(c,r,!1));else{let c=t;typeof n.contentElement=="string"?c=t.querySelector(n.contentElement):typeof n.contentElement=="function"?c=n.contentElement(t):n.contentElement&&(c=n.contentElement),this.findAround(t,c,!0),this.addAll(c,r),this.findAround(t,c,!1)}a&&this.sync(u)&&this.open--}addAll(t,n,r,i){let a=r||0;for(let s=r?t.childNodes[r]:t.firstChild,u=i==null?null:t.childNodes[i];s!=u;s=s.nextSibling,++a)this.findAtPoint(t,a),this.addDOM(s,n);this.findAtPoint(t,a)}findPlace(t,n,r){let i,a;for(let s=this.open,u=0;s>=0;s--){let c=this.nodes[s],p=c.findWrapping(t);if(p&&(!i||i.length>p.length+u)&&(i=p,a=c,!p.length))break;if(c.solid){if(r)break;u+=2}}if(!i)return null;this.sync(a);for(let s=0;s<i.length;s++)n=this.enterInner(i[s],null,n,!1);return n}insertNode(t,n,r){if(t.isInline&&this.needsBlock&&!this.top.type){let a=this.textblockFromContext();a&&(n=this.enterInner(a,null,n))}let i=this.findPlace(t,n,r);if(i){this.closeExtra();let a=this.top;a.match&&(a.match=a.match.matchType(t.type));let s=ut.none;for(let u of i.concat(t.marks))(a.type?a.type.allowsMarkType(u.type):E_(u.type,t.type))&&(s=u.addToSet(s));return a.content.push(t.mark(s)),!0}return!1}enter(t,n,r,i){let a=this.findPlace(t.create(n),r,!1);return a&&(a=this.enterInner(t,n,r,!0,i)),a}enterInner(t,n,r,i=!1,a){this.closeExtra();let s=this.top;s.match=s.match&&s.match.matchType(t);let u=g_(t,a,s.options);s.options&vu&&s.content.length==0&&(u|=vu);let c=ut.none;return r=r.filter(p=>(s.type?s.type.allowsMarkType(p.type):E_(p.type,t))?(c=p.addToSet(c),!1):!0),this.nodes.push(new qd(t,n,c,i,null,u)),this.open++,r}closeExtra(t=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(t));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(t){for(let n=this.open;n>=0;n--){if(this.nodes[n]==t)return this.open=n,!0;this.localPreserveWS&&(this.nodes[n].options|=Pu)}return!1}get currentPos(){this.closeExtra();let t=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let i=r.length-1;i>=0;i--)t+=r[i].nodeSize;n&&t++}return t}findAtPoint(t,n){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==t&&this.find[r].offset==n&&(this.find[r].pos=this.currentPos)}findInside(t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&t.nodeType==1&&t.contains(this.find[n].node)&&(this.find[n].pos=this.currentPos)}findAround(t,n,r){if(t!=n&&this.find)for(let i=0;i<this.find.length;i++)this.find[i].pos==null&&t.nodeType==1&&t.contains(this.find[i].node)&&n.compareDocumentPosition(this.find[i].node)&(r?2:4)&&(this.find[i].pos=this.currentPos)}findInText(t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==t&&(this.find[n].pos=this.currentPos-(t.nodeValue.length-this.find[n].offset))}matchesContext(t){if(t.indexOf("|")>-1)return t.split(/\s*\|\s*/).some(this.matchesContext,this);let n=t.split("/"),r=this.options.context,i=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),a=-(r?r.depth+1:0)+(i?0:1),s=(u,c)=>{for(;u>=0;u--){let p=n[u];if(p==""){if(u==n.length-1||u==0)continue;for(;c>=a;c--)if(s(u-1,c))return!0;return!1}else{let f=c>0||c==0&&i?this.nodes[c].type:r&&c>=a?r.node(c-a).type:null;if(!f||f.name!=p&&!f.isInGroup(p))return!1;c--}}return!0};return s(n.length-1,this.open)}textblockFromContext(){let t=this.options.context;if(t)for(let n=t.depth;n>=0;n--){let r=t.node(n).contentMatchAt(t.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}}function B5(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let r=t.nodeType==1?t.nodeName.toLowerCase():null;r&&bL.hasOwnProperty(r)&&n?(n.appendChild(t),t=n):r=="li"?n=t:r&&(n=null)}}function F5(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function y_(e){let t={};for(let n in e)t[n]=e[n];return t}function E_(e,t){let n=t.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(e))continue;let a=[],s=u=>{a.push(u);for(let c=0;c<u.edgeCount;c++){let{type:p,next:f}=u.edge(c);if(p==t||a.indexOf(f)<0&&s(f))return!0}};if(s(i.contentMatch))return!0}}class Co{constructor(t,n){this.nodes=t,this.marks=n}serializeFragment(t,n={},r){r||(r=db(n).createDocumentFragment());let i=r,a=[];return t.forEach(s=>{if(a.length||s.marks.length){let u=0,c=0;for(;u<a.length&&c<s.marks.length;){let p=s.marks[c];if(!this.marks[p.type.name]){c++;continue}if(!p.eq(a[u][0])||p.type.spec.spanning===!1)break;u++,c++}for(;u<a.length;)i=a.pop()[1];for(;c<s.marks.length;){let p=s.marks[c++],f=this.serializeMark(p,s.isInline,n);f&&(a.push([p,i]),i.appendChild(f.dom),i=f.contentDOM||f.dom)}}i.appendChild(this.serializeNodeInner(s,n))}),r}serializeNodeInner(t,n){let{dom:r,contentDOM:i}=cp(db(n),this.nodes[t.type.name](t),null,t.attrs);if(i){if(t.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(t.content,n,i)}return r}serializeNode(t,n={}){let r=this.serializeNodeInner(t,n);for(let i=t.marks.length-1;i>=0;i--){let a=this.serializeMark(t.marks[i],t.isInline,n);a&&((a.contentDOM||a.dom).appendChild(r),r=a.dom)}return r}serializeMark(t,n,r={}){let i=this.marks[t.type.name];return i&&cp(db(r),i(t,n),null,t.attrs)}static renderSpec(t,n,r=null,i){return cp(t,n,r,i)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new Co(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(t){let n=S_(t.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(t){return S_(t.marks)}}function S_(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function db(e){return e.document||window.document}const k_=new WeakMap;function z5(e){let t=k_.get(e);return t===void 0&&k_.set(e,t=U5(e)),t}function U5(e){let t=null;function n(r){if(r&&typeof r=="object")if(Array.isArray(r))if(typeof r[0]=="string")t||(t=[]),t.push(r);else for(let i=0;i<r.length;i++)n(r[i]);else for(let i in r)n(r[i])}return n(e),t}function cp(e,t,n,r){if(typeof t=="string")return{dom:e.createTextNode(t)};if(t.nodeType!=null)return{dom:t};if(t.dom&&t.dom.nodeType!=null)return t;let i=t[0],a;if(typeof i!="string")throw new RangeError("Invalid array passed to renderSpec");if(r&&(a=z5(r))&&a.indexOf(t)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let s=i.indexOf(" ");s>0&&(n=i.slice(0,s),i=i.slice(s+1));let u,c=n?e.createElementNS(n,i):e.createElement(i),p=t[1],f=1;if(p&&typeof p=="object"&&p.nodeType==null&&!Array.isArray(p)){f=2;for(let m in p)if(p[m]!=null){let g=m.indexOf(" ");g>0?c.setAttributeNS(m.slice(0,g),m.slice(g+1),p[m]):m=="style"&&c.style?c.style.cssText=p[m]:c.setAttribute(m,p[m])}}for(let m=f;m<t.length;m++){let g=t[m];if(g===0){if(m<t.length-1||m>f)throw new RangeError("Content hole must be the only child of its parent node");return{dom:c,contentDOM:c}}else{let{dom:b,contentDOM:S}=cp(e,g,n,r);if(c.appendChild(b),S){if(u)throw new RangeError("Multiple content holes");u=S}}}return{dom:c,contentDOM:u}}const yL=65535,EL=Math.pow(2,16);function P5(e,t){return e+t*EL}function v_(e){return e&yL}function $5(e){return(e-(e&yL))/EL}const SL=1,kL=2,dp=4,vL=8;class Sy{constructor(t,n,r){this.pos=t,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&vL)>0}get deletedBefore(){return(this.delInfo&(SL|dp))>0}get deletedAfter(){return(this.delInfo&(kL|dp))>0}get deletedAcross(){return(this.delInfo&dp)>0}}class Vn{constructor(t,n=!1){if(this.ranges=t,this.inverted=n,!t.length&&Vn.empty)return Vn.empty}recover(t){let n=0,r=v_(t);if(!this.inverted)for(let i=0;i<r;i++)n+=this.ranges[i*3+2]-this.ranges[i*3+1];return this.ranges[r*3]+n+$5(t)}mapResult(t,n=1){return this._map(t,n,!1)}map(t,n=1){return this._map(t,n,!0)}_map(t,n,r){let i=0,a=this.inverted?2:1,s=this.inverted?1:2;for(let u=0;u<this.ranges.length;u+=3){let c=this.ranges[u]-(this.inverted?i:0);if(c>t)break;let p=this.ranges[u+a],f=this.ranges[u+s],m=c+p;if(t<=m){let g=p?t==c?-1:t==m?1:n:n,b=c+i+(g<0?0:f);if(r)return b;let S=t==(n<0?c:m)?null:P5(u/3,t-c),k=t==c?kL:t==m?SL:dp;return(n<0?t!=c:t!=m)&&(k|=vL),new Sy(b,k,S)}i+=f-p}return r?t+i:new Sy(t+i,0,null)}touches(t,n){let r=0,i=v_(n),a=this.inverted?2:1,s=this.inverted?1:2;for(let u=0;u<this.ranges.length;u+=3){let c=this.ranges[u]-(this.inverted?r:0);if(c>t)break;let p=this.ranges[u+a],f=c+p;if(t<=f&&u==i*3)return!0;r+=this.ranges[u+s]-p}return!1}forEach(t){let n=this.inverted?2:1,r=this.inverted?1:2;for(let i=0,a=0;i<this.ranges.length;i+=3){let s=this.ranges[i],u=s-(this.inverted?a:0),c=s+(this.inverted?0:a),p=this.ranges[i+n],f=this.ranges[i+r];t(u,u+p,c,c+f),a+=f-p}}invert(){return new Vn(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(t){return t==0?Vn.empty:new Vn(t<0?[0,-t,0]:[0,0,t])}}Vn.empty=new Vn([]);class $u{constructor(t,n,r=0,i=t?t.length:0){this.mirror=n,this.from=r,this.to=i,this._maps=t||[],this.ownData=!(t||n)}get maps(){return this._maps}slice(t=0,n=this.maps.length){return new $u(this._maps,this.mirror,t,n)}appendMap(t,n){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(t),n!=null&&this.setMirror(this._maps.length-1,n)}appendMapping(t){for(let n=0,r=this._maps.length;n<t._maps.length;n++){let i=t.getMirror(n);this.appendMap(t._maps[n],i!=null&&i<n?r+i:void 0)}}getMirror(t){if(this.mirror){for(let n=0;n<this.mirror.length;n++)if(this.mirror[n]==t)return this.mirror[n+(n%2?-1:1)]}}setMirror(t,n){this.mirror||(this.mirror=[]),this.mirror.push(t,n)}appendMappingInverted(t){for(let n=t.maps.length-1,r=this._maps.length+t._maps.length;n>=0;n--){let i=t.getMirror(n);this.appendMap(t._maps[n].invert(),i!=null&&i>n?r-i-1:void 0)}}invert(){let t=new $u;return t.appendMappingInverted(this),t}map(t,n=1){if(this.mirror)return this._map(t,n,!0);for(let r=this.from;r<this.to;r++)t=this._maps[r].map(t,n);return t}mapResult(t,n=1){return this._map(t,n,!1)}_map(t,n,r){let i=0;for(let a=this.from;a<this.to;a++){let s=this._maps[a],u=s.mapResult(t,n);if(u.recover!=null){let c=this.getMirror(a);if(c!=null&&c>a&&c<this.to){a=c,t=this._maps[c].recover(u.recover);continue}}i|=u.delInfo,t=u.pos}return r?t:new Sy(t,i,null)}}const pb=Object.create(null);class fn{getMap(){return Vn.empty}merge(t){return null}static fromJSON(t,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=pb[n.stepType];if(!r)throw new RangeError(`No step type ${n.stepType} defined`);return r.fromJSON(t,n)}static jsonID(t,n){if(t in pb)throw new RangeError("Duplicate use of step JSON ID "+t);return pb[t]=n,n.prototype.jsonID=t,n}}class Mt{constructor(t,n){this.doc=t,this.failed=n}static ok(t){return new Mt(t,null)}static fail(t){return new Mt(null,t)}static fromReplace(t,n,r,i){try{return Mt.ok(t.replace(n,r,i))}catch(a){if(a instanceof Np)return Mt.fail(a.message);throw a}}}function CT(e,t,n){let r=[];for(let i=0;i<e.childCount;i++){let a=e.child(i);a.content.size&&(a=a.copy(CT(a.content,t,a))),a.isInline&&(a=t(a,n,i)),r.push(a)}return ue.fromArray(r)}class pa extends fn{constructor(t,n,r){super(),this.from=t,this.to=n,this.mark=r}apply(t){let n=t.slice(this.from,this.to),r=t.resolve(this.from),i=r.node(r.sharedDepth(this.to)),a=new ge(CT(n.content,(s,u)=>!s.isAtom||!u.type.allowsMarkType(this.mark.type)?s:s.mark(this.mark.addToSet(s.marks)),i),n.openStart,n.openEnd);return Mt.fromReplace(t,this.from,this.to,a)}invert(){return new Tr(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new pa(n.pos,r.pos,this.mark)}merge(t){return t instanceof pa&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new pa(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new pa(n.from,n.to,t.markFromJSON(n.mark))}}fn.jsonID("addMark",pa);class Tr extends fn{constructor(t,n,r){super(),this.from=t,this.to=n,this.mark=r}apply(t){let n=t.slice(this.from,this.to),r=new ge(CT(n.content,i=>i.mark(this.mark.removeFromSet(i.marks)),t),n.openStart,n.openEnd);return Mt.fromReplace(t,this.from,this.to,r)}invert(){return new pa(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new Tr(n.pos,r.pos,this.mark)}merge(t){return t instanceof Tr&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new Tr(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Tr(n.from,n.to,t.markFromJSON(n.mark))}}fn.jsonID("removeMark",Tr);class fa extends fn{constructor(t,n){super(),this.pos=t,this.mark=n}apply(t){let n=t.nodeAt(this.pos);if(!n)return Mt.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return Mt.fromReplace(t,this.pos,this.pos+1,new ge(ue.from(r),0,n.isLeaf?0:1))}invert(t){let n=t.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let i=0;i<n.marks.length;i++)if(!n.marks[i].isInSet(r))return new fa(this.pos,n.marks[i]);return new fa(this.pos,this.mark)}}return new Eo(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new fa(n.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new fa(n.pos,t.markFromJSON(n.mark))}}fn.jsonID("addNodeMark",fa);class Eo extends fn{constructor(t,n){super(),this.pos=t,this.mark=n}apply(t){let n=t.nodeAt(this.pos);if(!n)return Mt.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return Mt.fromReplace(t,this.pos,this.pos+1,new ge(ue.from(r),0,n.isLeaf?0:1))}invert(t){let n=t.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new fa(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new Eo(n.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new Eo(n.pos,t.markFromJSON(n.mark))}}fn.jsonID("removeNodeMark",Eo);class Vt extends fn{constructor(t,n,r,i=!1){super(),this.from=t,this.to=n,this.slice=r,this.structure=i}apply(t){return this.structure&&ky(t,this.from,this.to)?Mt.fail("Structure replace would overwrite content"):Mt.fromReplace(t,this.from,this.to,this.slice)}getMap(){return new Vn([this.from,this.to-this.from,this.slice.size])}invert(t){return new Vt(this.from,this.from+this.slice.size,t.slice(this.from,this.to))}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deletedAcross&&r.deletedAcross?null:new Vt(n.pos,Math.max(n.pos,r.pos),this.slice,this.structure)}merge(t){if(!(t instanceof Vt)||t.structure||this.structure)return null;if(this.from+this.slice.size==t.from&&!this.slice.openEnd&&!t.slice.openStart){let n=this.slice.size+t.slice.size==0?ge.empty:new ge(this.slice.content.append(t.slice.content),this.slice.openStart,t.slice.openEnd);return new Vt(this.from,this.to+(t.to-t.from),n,this.structure)}else if(t.to==this.from&&!this.slice.openStart&&!t.slice.openEnd){let n=this.slice.size+t.slice.size==0?ge.empty:new ge(t.slice.content.append(this.slice.content),t.slice.openStart,this.slice.openEnd);return new Vt(t.from,this.to,n,this.structure)}else return null}toJSON(){let t={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new Vt(n.from,n.to,ge.fromJSON(t,n.slice),!!n.structure)}}fn.jsonID("replace",Vt);class qt extends fn{constructor(t,n,r,i,a,s,u=!1){super(),this.from=t,this.to=n,this.gapFrom=r,this.gapTo=i,this.slice=a,this.insert=s,this.structure=u}apply(t){if(this.structure&&(ky(t,this.from,this.gapFrom)||ky(t,this.gapTo,this.to)))return Mt.fail("Structure gap-replace would overwrite content");let n=t.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return Mt.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,n.content);return r?Mt.fromReplace(t,this.from,this.to,r):Mt.fail("Content does not fit in gap")}getMap(){return new Vn([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(t){let n=this.gapTo-this.gapFrom;return new qt(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,t.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1),i=this.from==this.gapFrom?n.pos:t.map(this.gapFrom,-1),a=this.to==this.gapTo?r.pos:t.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||i<n.pos||a>r.pos?null:new qt(n.pos,r.pos,i,a,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new qt(n.from,n.to,n.gapFrom,n.gapTo,ge.fromJSON(t,n.slice),n.insert,!!n.structure)}}fn.jsonID("replaceAround",qt);function ky(e,t,n){let r=e.resolve(t),i=n-t,a=r.depth;for(;i>0&&a>0&&r.indexAfter(a)==r.node(a).childCount;)a--,i--;if(i>0){let s=r.node(a).maybeChild(r.indexAfter(a));for(;i>0;){if(!s||s.isLeaf)return!0;s=s.firstChild,i--}}return!1}function H5(e,t,n,r){let i=[],a=[],s,u;e.doc.nodesBetween(t,n,(c,p,f)=>{if(!c.isInline)return;let m=c.marks;if(!r.isInSet(m)&&f.type.allowsMarkType(r.type)){let g=Math.max(p,t),b=Math.min(p+c.nodeSize,n),S=r.addToSet(m);for(let k=0;k<m.length;k++)m[k].isInSet(S)||(s&&s.to==g&&s.mark.eq(m[k])?s.to=b:i.push(s=new Tr(g,b,m[k])));u&&u.to==g?u.to=b:a.push(u=new pa(g,b,r))}}),i.forEach(c=>e.step(c)),a.forEach(c=>e.step(c))}function j5(e,t,n,r){let i=[],a=0;e.doc.nodesBetween(t,n,(s,u)=>{if(!s.isInline)return;a++;let c=null;if(r instanceof qf){let p=s.marks,f;for(;f=r.isInSet(p);)(c||(c=[])).push(f),p=f.removeFromSet(p)}else r?r.isInSet(s.marks)&&(c=[r]):c=s.marks;if(c&&c.length){let p=Math.min(u+s.nodeSize,n);for(let f=0;f<c.length;f++){let m=c[f],g;for(let b=0;b<i.length;b++){let S=i[b];S.step==a-1&&m.eq(i[b].style)&&(g=S)}g?(g.to=p,g.step=a):i.push({style:m,from:Math.max(u,t),to:p,step:a})}}}),i.forEach(s=>e.step(new Tr(s.from,s.to,s.style)))}function RT(e,t,n,r=n.contentMatch,i=!0){let a=e.doc.nodeAt(t),s=[],u=t+1;for(let c=0;c<a.childCount;c++){let p=a.child(c),f=u+p.nodeSize,m=r.matchType(p.type);if(!m)s.push(new Vt(u,f,ge.empty));else{r=m;for(let g=0;g<p.marks.length;g++)n.allowsMarkType(p.marks[g].type)||e.step(new Tr(u,f,p.marks[g]));if(i&&p.isText&&n.whitespace!="pre"){let g,b=/\r?\n|\r/g,S;for(;g=b.exec(p.text);)S||(S=new ge(ue.from(n.schema.text(" ",n.allowedMarks(p.marks))),0,0)),s.push(new Vt(u+g.index,u+g.index+g[0].length,S))}}u=f}if(!r.validEnd){let c=r.fillBefore(ue.empty,!0);e.replace(u,u,new ge(c,0,0))}for(let c=s.length-1;c>=0;c--)e.step(s[c])}function G5(e,t,n){return(t==0||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function nl(e){let n=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let r=e.depth,i=0,a=0;;--r){let s=e.$from.node(r),u=e.$from.index(r)+i,c=e.$to.indexAfter(r)-a;if(r<e.depth&&s.canReplace(u,c,n))return r;if(r==0||s.type.spec.isolating||!G5(s,u,c))break;u&&(i=1),c<s.childCount&&(a=1)}return null}function V5(e,t,n){let{$from:r,$to:i,depth:a}=t,s=r.before(a+1),u=i.after(a+1),c=s,p=u,f=ue.empty,m=0;for(let S=a,k=!1;S>n;S--)k||r.index(S)>0?(k=!0,f=ue.from(r.node(S).copy(f)),m++):c--;let g=ue.empty,b=0;for(let S=a,k=!1;S>n;S--)k||i.after(S+1)<i.end(S)?(k=!0,g=ue.from(i.node(S).copy(g)),b++):p++;e.step(new qt(c,p,s,u,new ge(f.append(g),m,b),f.size-m,!0))}function NT(e,t,n=null,r=e){let i=q5(e,t),a=i&&W5(r,t);return a?i.map(w_).concat({type:t,attrs:n}).concat(a.map(w_)):null}function w_(e){return{type:e,attrs:null}}function q5(e,t){let{parent:n,startIndex:r,endIndex:i}=e,a=n.contentMatchAt(r).findWrapping(t);if(!a)return null;let s=a.length?a[0]:t;return n.canReplaceWith(r,i,s)?a:null}function W5(e,t){let{parent:n,startIndex:r,endIndex:i}=e,a=n.child(r),s=t.contentMatch.findWrapping(a.type);if(!s)return null;let c=(s.length?s[s.length-1]:t).contentMatch;for(let p=r;c&&p<i;p++)c=c.matchType(n.child(p).type);return!c||!c.validEnd?null:s}function Y5(e,t,n){let r=ue.empty;for(let s=n.length-1;s>=0;s--){if(r.size){let u=n[s].type.contentMatch.matchFragment(r);if(!u||!u.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=ue.from(n[s].type.create(n[s].attrs,r))}let i=t.start,a=t.end;e.step(new qt(i,a,i,a,new ge(r,0,0),n.length,!0))}function K5(e,t,n,r,i){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let a=e.steps.length;e.doc.nodesBetween(t,n,(s,u)=>{let c=typeof i=="function"?i(s):i;if(s.isTextblock&&!s.hasMarkup(r,c)&&X5(e.doc,e.mapping.slice(a).map(u),r)){let p=null;if(r.schema.linebreakReplacement){let b=r.whitespace=="pre",S=!!r.contentMatch.matchType(r.schema.linebreakReplacement);b&&!S?p=!1:!b&&S&&(p=!0)}p===!1&&TL(e,s,u,a),RT(e,e.mapping.slice(a).map(u,1),r,void 0,p===null);let f=e.mapping.slice(a),m=f.map(u,1),g=f.map(u+s.nodeSize,1);return e.step(new qt(m,g,m+1,g-1,new ge(ue.from(r.create(c,null,s.marks)),0,0),1,!0)),p===!0&&wL(e,s,u,a),!1}})}function wL(e,t,n,r){t.forEach((i,a)=>{if(i.isText){let s,u=/\r?\n|\r/g;for(;s=u.exec(i.text);){let c=e.mapping.slice(r).map(n+1+a+s.index);e.replaceWith(c,c+1,t.type.schema.linebreakReplacement.create())}}})}function TL(e,t,n,r){t.forEach((i,a)=>{if(i.type==i.type.schema.linebreakReplacement){let s=e.mapping.slice(r).map(n+1+a);e.replaceWith(s,s+1,t.type.schema.text(`
|
|
89
|
+
`))}})}function X5(e,t,n){let r=e.resolve(t),i=r.index();return r.parent.canReplaceWith(i,i+1,n)}function Z5(e,t,n,r,i){let a=e.doc.nodeAt(t);if(!a)throw new RangeError("No node at given position");n||(n=a.type);let s=n.create(r,null,i||a.marks);if(a.isLeaf)return e.replaceWith(t,t+a.nodeSize,s);if(!n.validContent(a.content))throw new RangeError("Invalid content for node type "+n.name);e.step(new qt(t,t+a.nodeSize,t+1,t+a.nodeSize-1,new ge(ue.from(s),0,0),1,!0))}function ki(e,t,n=1,r){let i=e.resolve(t),a=i.depth-n,s=r&&r[r.length-1]||i.parent;if(a<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!s.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let p=i.depth-1,f=n-2;p>a;p--,f--){let m=i.node(p),g=i.index(p);if(m.type.spec.isolating)return!1;let b=m.content.cutByIndex(g,m.childCount),S=r&&r[f+1];S&&(b=b.replaceChild(0,S.type.create(S.attrs)));let k=r&&r[f]||m;if(!m.canReplace(g+1,m.childCount)||!k.type.validContent(b))return!1}let u=i.indexAfter(a),c=r&&r[0];return i.node(a).canReplaceWith(u,u,c?c.type:i.node(a+1).type)}function Q5(e,t,n=1,r){let i=e.doc.resolve(t),a=ue.empty,s=ue.empty;for(let u=i.depth,c=i.depth-n,p=n-1;u>c;u--,p--){a=ue.from(i.node(u).copy(a));let f=r&&r[p];s=ue.from(f?f.type.create(f.attrs,s):i.node(u).copy(s))}e.step(new Vt(t,t,new ge(a.append(s),n,n),!0))}function _a(e,t){let n=e.resolve(t),r=n.index();return xL(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function J5(e,t){t.content.size||e.type.compatibleContent(t.type);let n=e.contentMatchAt(e.childCount),{linebreakReplacement:r}=e.type.schema;for(let i=0;i<t.childCount;i++){let a=t.child(i),s=a.type==r?e.type.schema.nodes.text:a.type;if(n=n.matchType(s),!n||!e.type.allowsMarks(a.marks))return!1}return n.validEnd}function xL(e,t){return!!(e&&t&&!e.isLeaf&&J5(e,t))}function Wf(e,t,n=-1){let r=e.resolve(t);for(let i=r.depth;;i--){let a,s,u=r.index(i);if(i==r.depth?(a=r.nodeBefore,s=r.nodeAfter):n>0?(a=r.node(i+1),u++,s=r.node(i).maybeChild(u)):(a=r.node(i).maybeChild(u-1),s=r.node(i+1)),a&&!a.isTextblock&&xL(a,s)&&r.node(i).canReplace(u,u+1))return t;if(i==0)break;t=n<0?r.before(i):r.after(i)}}function eW(e,t,n){let r=null,{linebreakReplacement:i}=e.doc.type.schema,a=e.doc.resolve(t-n),s=a.node().type;if(i&&s.inlineContent){let f=s.whitespace=="pre",m=!!s.contentMatch.matchType(i);f&&!m?r=!1:!f&&m&&(r=!0)}let u=e.steps.length;if(r===!1){let f=e.doc.resolve(t+n);TL(e,f.node(),f.before(),u)}s.inlineContent&&RT(e,t+n-1,s,a.node().contentMatchAt(a.index()),r==null);let c=e.mapping.slice(u),p=c.map(t-n);if(e.step(new Vt(p,c.map(t+n,-1),ge.empty,!0)),r===!0){let f=e.doc.resolve(p);wL(e,f.node(),f.before(),e.steps.length)}return e}function tW(e,t,n){let r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(r.parentOffset==0)for(let i=r.depth-1;i>=0;i--){let a=r.index(i);if(r.node(i).canReplaceWith(a,a,n))return r.before(i+1);if(a>0)return null}if(r.parentOffset==r.parent.content.size)for(let i=r.depth-1;i>=0;i--){let a=r.indexAfter(i);if(r.node(i).canReplaceWith(a,a,n))return r.after(i+1);if(a<r.node(i).childCount)return null}return null}function AL(e,t,n){let r=e.resolve(t);if(!n.content.size)return t;let i=n.content;for(let a=0;a<n.openStart;a++)i=i.firstChild.content;for(let a=1;a<=(n.openStart==0&&n.size?2:1);a++)for(let s=r.depth;s>=0;s--){let u=s==r.depth?0:r.pos<=(r.start(s+1)+r.end(s+1))/2?-1:1,c=r.index(s)+(u>0?1:0),p=r.node(s),f=!1;if(a==1)f=p.canReplace(c,c,i);else{let m=p.contentMatchAt(c).findWrapping(i.firstChild.type);f=m&&p.canReplaceWith(c,c,m[0])}if(f)return u==0?r.pos:u<0?r.before(s+1):r.after(s+1)}return null}function Yf(e,t,n=t,r=ge.empty){if(t==n&&!r.size)return null;let i=e.resolve(t),a=e.resolve(n);return CL(i,a,r)?new Vt(t,n,r):new nW(i,a,r).fit()}function CL(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}class nW{constructor(t,n,r){this.$from=t,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=ue.empty;for(let i=0;i<=t.depth;i++){let a=t.node(i);this.frontier.push({type:a.type,match:a.contentMatchAt(t.indexAfter(i))})}for(let i=t.depth;i>0;i--)this.placed=ue.from(t.node(i).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let p=this.findFittable();p?this.placeNodes(p):this.openMore()||this.dropNode()}let t=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,i=this.close(t<0?this.$to:r.doc.resolve(t));if(!i)return null;let a=this.placed,s=r.depth,u=i.depth;for(;s&&u&&a.childCount==1;)a=a.firstChild.content,s--,u--;let c=new ge(a,s,u);return t>-1?new qt(r.pos,t,this.$to.pos,this.$to.end(),c,n):c.size||r.pos!=this.$to.pos?new Vt(r.pos,i.pos,c):null}findFittable(){let t=this.unplaced.openStart;for(let n=this.unplaced.content,r=0,i=this.unplaced.openEnd;r<t;r++){let a=n.firstChild;if(n.childCount>1&&(i=0),a.type.spec.isolating&&i<=r){t=r;break}n=a.content}for(let n=1;n<=2;n++)for(let r=n==1?t:this.unplaced.openStart;r>=0;r--){let i,a=null;r?(a=fb(this.unplaced.content,r-1).firstChild,i=a.content):i=this.unplaced.content;let s=i.firstChild;for(let u=this.depth;u>=0;u--){let{type:c,match:p}=this.frontier[u],f,m=null;if(n==1&&(s?p.matchType(s.type)||(m=p.fillBefore(ue.from(s),!1)):a&&c.compatibleContent(a.type)))return{sliceDepth:r,frontierDepth:u,parent:a,inject:m};if(n==2&&s&&(f=p.findWrapping(s.type)))return{sliceDepth:r,frontierDepth:u,parent:a,wrap:f};if(a&&p.matchType(a.type))break}}}openMore(){let{content:t,openStart:n,openEnd:r}=this.unplaced,i=fb(t,n);return!i.childCount||i.firstChild.isLeaf?!1:(this.unplaced=new ge(t,n+1,Math.max(r,i.size+n>=t.size-r?n+1:0)),!0)}dropNode(){let{content:t,openStart:n,openEnd:r}=this.unplaced,i=fb(t,n);if(i.childCount<=1&&n>0){let a=t.size-n<=n+i.size;this.unplaced=new ge(cu(t,n-1,1),n-1,a?n-1:r)}else this.unplaced=new ge(cu(t,n,1),n,r)}placeNodes({sliceDepth:t,frontierDepth:n,parent:r,inject:i,wrap:a}){for(;this.depth>n;)this.closeFrontierNode();if(a)for(let k=0;k<a.length;k++)this.openFrontierNode(a[k]);let s=this.unplaced,u=r?r.content:s.content,c=s.openStart-t,p=0,f=[],{match:m,type:g}=this.frontier[n];if(i){for(let k=0;k<i.childCount;k++)f.push(i.child(k));m=m.matchFragment(i)}let b=u.size+t-(s.content.size-s.openEnd);for(;p<u.childCount;){let k=u.child(p),v=m.matchType(k.type);if(!v)break;p++,(p>1||c==0||k.content.size)&&(m=v,f.push(RL(k.mark(g.allowedMarks(k.marks)),p==1?c:0,p==u.childCount?b:-1)))}let S=p==u.childCount;S||(b=-1),this.placed=du(this.placed,n,ue.from(f)),this.frontier[n].match=m,S&&b<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let k=0,v=u;k<b;k++){let w=v.lastChild;this.frontier.push({type:w.type,match:w.contentMatchAt(w.childCount)}),v=w.content}this.unplaced=S?t==0?ge.empty:new ge(cu(s.content,t-1,1),t-1,b<0?s.openEnd:t-1):new ge(cu(s.content,t,p),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let t=this.frontier[this.depth],n;if(!t.type.isTextblock||!hb(this.$to,this.$to.depth,t.type,t.match,!1)||this.$to.depth==this.depth&&(n=this.findCloseLevel(this.$to))&&n.depth==this.depth)return-1;let{depth:r}=this.$to,i=this.$to.after(r);for(;r>1&&i==this.$to.end(--r);)++i;return i}findCloseLevel(t){e:for(let n=Math.min(this.depth,t.depth);n>=0;n--){let{match:r,type:i}=this.frontier[n],a=n<t.depth&&t.end(n+1)==t.pos+(t.depth-(n+1)),s=hb(t,n,i,r,a);if(s){for(let u=n-1;u>=0;u--){let{match:c,type:p}=this.frontier[u],f=hb(t,u,p,c,!0);if(!f||f.childCount)continue e}return{depth:n,fit:s,move:a?t.doc.resolve(t.after(n+1)):t}}}}close(t){let n=this.findCloseLevel(t);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=du(this.placed,n.depth,n.fit)),t=n.move;for(let r=n.depth+1;r<=t.depth;r++){let i=t.node(r),a=i.type.contentMatch.fillBefore(i.content,!0,t.index(r));this.openFrontierNode(i.type,i.attrs,a)}return t}openFrontierNode(t,n=null,r){let i=this.frontier[this.depth];i.match=i.match.matchType(t),this.placed=du(this.placed,this.depth,ue.from(t.create(n,r))),this.frontier.push({type:t,match:t.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(ue.empty,!0);n.childCount&&(this.placed=du(this.placed,this.frontier.length,n))}}function cu(e,t,n){return t==0?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(cu(e.firstChild.content,t-1,n)))}function du(e,t,n){return t==0?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(du(e.lastChild.content,t-1,n)))}function fb(e,t){for(let n=0;n<t;n++)e=e.firstChild.content;return e}function RL(e,t,n){if(t<=0)return e;let r=e.content;return t>1&&(r=r.replaceChild(0,RL(r.firstChild,t-1,r.childCount==1?n-1:0))),t>0&&(r=e.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(e.type.contentMatch.matchFragment(r).fillBefore(ue.empty,!0)))),e.copy(r)}function hb(e,t,n,r,i){let a=e.node(t),s=i?e.indexAfter(t):e.index(t);if(s==a.childCount&&!n.compatibleContent(a.type))return null;let u=r.fillBefore(a.content,!0,s);return u&&!rW(n,a.content,s)?u:null}function rW(e,t,n){for(let r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}function iW(e){return e.spec.defining||e.spec.definingForContent}function aW(e,t,n,r){if(!r.size)return e.deleteRange(t,n);let i=e.doc.resolve(t),a=e.doc.resolve(n);if(CL(i,a,r))return e.step(new Vt(t,n,r));let s=_L(i,a);s[s.length-1]==0&&s.pop();let u=-(i.depth+1);s.unshift(u);for(let g=i.depth,b=i.pos-1;g>0;g--,b--){let S=i.node(g).type.spec;if(S.defining||S.definingAsContext||S.isolating)break;s.indexOf(g)>-1?u=g:i.before(g)==b&&s.splice(1,0,-g)}let c=s.indexOf(u),p=[],f=r.openStart;for(let g=r.content,b=0;;b++){let S=g.firstChild;if(p.push(S),b==r.openStart)break;g=S.content}for(let g=f-1;g>=0;g--){let b=p[g],S=iW(b.type);if(S&&!b.sameMarkup(i.node(Math.abs(u)-1)))f=g;else if(S||!b.type.isTextblock)break}for(let g=r.openStart;g>=0;g--){let b=(g+f+1)%(r.openStart+1),S=p[b];if(S)for(let k=0;k<s.length;k++){let v=s[(k+c)%s.length],w=!0;v<0&&(w=!1,v=-v);let x=i.node(v-1),A=i.index(v-1);if(x.canReplaceWith(A,A,S.type,S.marks))return e.replace(i.before(v),w?a.after(v):n,new ge(NL(r.content,0,r.openStart,b),b,r.openEnd))}}let m=e.steps.length;for(let g=s.length-1;g>=0&&(e.replace(t,n,r),!(e.steps.length>m));g--){let b=s[g];b<0||(t=i.before(b),n=a.after(b))}}function NL(e,t,n,r,i){if(t<n){let a=e.firstChild;e=e.replaceChild(0,a.copy(NL(a.content,t+1,n,r,a)))}if(t>r){let a=i.contentMatchAt(0),s=a.fillBefore(e).append(e);e=s.append(a.matchFragment(s).fillBefore(ue.empty,!0))}return e}function oW(e,t,n,r){if(!r.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let i=tW(e.doc,t,r.type);i!=null&&(t=n=i)}e.replaceRange(t,n,new ge(ue.from(r),0,0))}function sW(e,t,n){let r=e.doc.resolve(t),i=e.doc.resolve(n),a=_L(r,i);for(let s=0;s<a.length;s++){let u=a[s],c=s==a.length-1;if(c&&u==0||r.node(u).type.contentMatch.validEnd)return e.delete(r.start(u),i.end(u));if(u>0&&(c||r.node(u-1).canReplace(r.index(u-1),i.indexAfter(u-1))))return e.delete(r.before(u),i.after(u))}for(let s=1;s<=r.depth&&s<=i.depth;s++)if(t-r.start(s)==r.depth-s&&n>r.end(s)&&i.end(s)-n!=i.depth-s&&r.start(s-1)==i.start(s-1)&&r.node(s-1).canReplace(r.index(s-1),i.index(s-1)))return e.delete(r.before(s),n);e.delete(t,n)}function _L(e,t){let n=[],r=Math.min(e.depth,t.depth);for(let i=r;i>=0;i--){let a=e.start(i);if(a<e.pos-(e.depth-i)||t.end(i)>t.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(a==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==a-1)&&n.push(i)}return n}class Ls extends fn{constructor(t,n,r){super(),this.pos=t,this.attr=n,this.value=r}apply(t){let n=t.nodeAt(this.pos);if(!n)return Mt.fail("No node at attribute step's position");let r=Object.create(null);for(let a in n.attrs)r[a]=n.attrs[a];r[this.attr]=this.value;let i=n.type.create(r,null,n.marks);return Mt.fromReplace(t,this.pos,this.pos+1,new ge(ue.from(i),0,n.isLeaf?0:1))}getMap(){return Vn.empty}invert(t){return new Ls(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new Ls(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new Ls(n.pos,n.attr,n.value)}}fn.jsonID("attr",Ls);class Hu extends fn{constructor(t,n){super(),this.attr=t,this.value=n}apply(t){let n=Object.create(null);for(let i in t.attrs)n[i]=t.attrs[i];n[this.attr]=this.value;let r=t.type.create(n,t.content,t.marks);return Mt.ok(r)}getMap(){return Vn.empty}invert(t){return new Hu(this.attr,t.attrs[this.attr])}map(t){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new Hu(n.attr,n.value)}}fn.jsonID("docAttr",Hu);let zs=class extends Error{};zs=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n};zs.prototype=Object.create(Error.prototype);zs.prototype.constructor=zs;zs.prototype.name="TransformError";class OL{constructor(t){this.doc=t,this.steps=[],this.docs=[],this.mapping=new $u}get before(){return this.docs.length?this.docs[0]:this.doc}step(t){let n=this.maybeStep(t);if(n.failed)throw new zs(n.failed);return this}maybeStep(t){let n=t.apply(this.doc);return n.failed||this.addStep(t,n.doc),n}get docChanged(){return this.steps.length>0}changedRange(){let t=1e9,n=-1e9;for(let r=0;r<this.mapping.maps.length;r++){let i=this.mapping.maps[r];r&&(t=i.map(t,1),n=i.map(n,-1)),i.forEach((a,s,u,c)=>{t=Math.min(t,u),n=Math.max(n,c)})}return t==1e9?null:{from:t,to:n}}addStep(t,n){this.docs.push(this.doc),this.steps.push(t),this.mapping.appendMap(t.getMap()),this.doc=n}replace(t,n=t,r=ge.empty){let i=Yf(this.doc,t,n,r);return i&&this.step(i),this}replaceWith(t,n,r){return this.replace(t,n,new ge(ue.from(r),0,0))}delete(t,n){return this.replace(t,n,ge.empty)}insert(t,n){return this.replaceWith(t,t,n)}replaceRange(t,n,r){return aW(this,t,n,r),this}replaceRangeWith(t,n,r){return oW(this,t,n,r),this}deleteRange(t,n){return sW(this,t,n),this}lift(t,n){return V5(this,t,n),this}join(t,n=1){return eW(this,t,n),this}wrap(t,n){return Y5(this,t,n),this}setBlockType(t,n=t,r,i=null){return K5(this,t,n,r,i),this}setNodeMarkup(t,n,r=null,i){return Z5(this,t,n,r,i),this}setNodeAttribute(t,n,r){return this.step(new Ls(t,n,r)),this}setDocAttribute(t,n){return this.step(new Hu(t,n)),this}addNodeMark(t,n){return this.step(new fa(t,n)),this}removeNodeMark(t,n){let r=this.doc.nodeAt(t);if(!r)throw new RangeError("No node at position "+t);if(n instanceof ut)n.isInSet(r.marks)&&this.step(new Eo(t,n));else{let i=r.marks,a,s=[];for(;a=n.isInSet(i);)s.push(new Eo(t,a)),i=a.removeFromSet(i);for(let u=s.length-1;u>=0;u--)this.step(s[u])}return this}split(t,n=1,r){return Q5(this,t,n,r),this}addMark(t,n,r){return H5(this,t,n,r),this}removeMark(t,n,r){return j5(this,t,n,r),this}clearIncompatible(t,n,r){return RT(this,t,n,r),this}}const mb=Object.create(null);class Fe{constructor(t,n,r){this.$anchor=t,this.$head=n,this.ranges=r||[new lW(t.min(n),t.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let t=this.ranges;for(let n=0;n<t.length;n++)if(t[n].$from.pos!=t[n].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(t,n=ge.empty){let r=n.content.lastChild,i=null;for(let u=0;u<n.openEnd;u++)i=r,r=r.lastChild;let a=t.steps.length,s=this.ranges;for(let u=0;u<s.length;u++){let{$from:c,$to:p}=s[u],f=t.mapping.slice(a);t.replaceRange(f.map(c.pos),f.map(p.pos),u?ge.empty:n),u==0&&A_(t,a,(r?r.isInline:i&&i.isTextblock)?-1:1)}}replaceWith(t,n){let r=t.steps.length,i=this.ranges;for(let a=0;a<i.length;a++){let{$from:s,$to:u}=i[a],c=t.mapping.slice(r),p=c.map(s.pos),f=c.map(u.pos);a?t.deleteRange(p,f):(t.replaceRangeWith(p,f,n),A_(t,r,n.isInline?-1:1))}}static findFrom(t,n,r=!1){let i=t.parent.inlineContent?new Ne(t):As(t.node(0),t.parent,t.pos,t.index(),n,r);if(i)return i;for(let a=t.depth-1;a>=0;a--){let s=n<0?As(t.node(0),t.node(a),t.before(a+1),t.index(a),n,r):As(t.node(0),t.node(a),t.after(a+1),t.index(a)+1,n,r);if(s)return s}return null}static near(t,n=1){return this.findFrom(t,n)||this.findFrom(t,-n)||new Yn(t.node(0))}static atStart(t){return As(t,t,0,0,1)||new Yn(t)}static atEnd(t){return As(t,t,t.content.size,t.childCount,-1)||new Yn(t)}static fromJSON(t,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=mb[n.type];if(!r)throw new RangeError(`No selection type ${n.type} defined`);return r.fromJSON(t,n)}static jsonID(t,n){if(t in mb)throw new RangeError("Duplicate use of selection JSON ID "+t);return mb[t]=n,n.prototype.jsonID=t,n}getBookmark(){return Ne.between(this.$anchor,this.$head).getBookmark()}}Fe.prototype.visible=!0;class lW{constructor(t,n){this.$from=t,this.$to=n}}let T_=!1;function x_(e){!T_&&!e.parent.inlineContent&&(T_=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class Ne extends Fe{constructor(t,n=t){x_(t),x_(n),super(t,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,n){let r=t.resolve(n.map(this.head));if(!r.parent.inlineContent)return Fe.near(r);let i=t.resolve(n.map(this.anchor));return new Ne(i.parent.inlineContent?i:r,r)}replace(t,n=ge.empty){if(super.replace(t,n),n==ge.empty){let r=this.$from.marksAcross(this.$to);r&&t.ensureMarks(r)}}eq(t){return t instanceof Ne&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new Kf(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(t,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new Ne(t.resolve(n.anchor),t.resolve(n.head))}static create(t,n,r=n){let i=t.resolve(n);return new this(i,r==n?i:t.resolve(r))}static between(t,n,r){let i=t.pos-n.pos;if((!r||i)&&(r=i>=0?1:-1),!n.parent.inlineContent){let a=Fe.findFrom(n,r,!0)||Fe.findFrom(n,-r,!0);if(a)n=a.$head;else return Fe.near(n,r)}return t.parent.inlineContent||(i==0?t=n:(t=(Fe.findFrom(t,-r,!0)||Fe.findFrom(t,r,!0)).$anchor,t.pos<n.pos!=i<0&&(t=n))),new Ne(t,n)}}Fe.jsonID("text",Ne);class Kf{constructor(t,n){this.anchor=t,this.head=n}map(t){return new Kf(t.map(this.anchor),t.map(this.head))}resolve(t){return Ne.between(t.resolve(this.anchor),t.resolve(this.head))}}class xe extends Fe{constructor(t){let n=t.nodeAfter,r=t.node(0).resolve(t.pos+n.nodeSize);super(t,r),this.node=n}map(t,n){let{deleted:r,pos:i}=n.mapResult(this.anchor),a=t.resolve(i);return r?Fe.near(a):new xe(a)}content(){return new ge(ue.from(this.node),0,0)}eq(t){return t instanceof xe&&t.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new _T(this.anchor)}static fromJSON(t,n){if(typeof n.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new xe(t.resolve(n.anchor))}static create(t,n){return new xe(t.resolve(n))}static isSelectable(t){return!t.isText&&t.type.spec.selectable!==!1}}xe.prototype.visible=!1;Fe.jsonID("node",xe);class _T{constructor(t){this.anchor=t}map(t){let{deleted:n,pos:r}=t.mapResult(this.anchor);return n?new Kf(r,r):new _T(r)}resolve(t){let n=t.resolve(this.anchor),r=n.nodeAfter;return r&&xe.isSelectable(r)?new xe(n):Fe.near(n)}}class Yn extends Fe{constructor(t){super(t.resolve(0),t.resolve(t.content.size))}replace(t,n=ge.empty){if(n==ge.empty){t.delete(0,t.doc.content.size);let r=Fe.atStart(t.doc);r.eq(t.selection)||t.setSelection(r)}else super.replace(t,n)}toJSON(){return{type:"all"}}static fromJSON(t){return new Yn(t)}map(t){return new Yn(t)}eq(t){return t instanceof Yn}getBookmark(){return uW}}Fe.jsonID("all",Yn);const uW={map(){return this},resolve(e){return new Yn(e)}};function As(e,t,n,r,i,a=!1){if(t.inlineContent)return Ne.create(e,n);for(let s=r-(i>0?0:1);i>0?s<t.childCount:s>=0;s+=i){let u=t.child(s);if(u.isAtom){if(!a&&xe.isSelectable(u))return xe.create(e,n-(i<0?u.nodeSize:0))}else{let c=As(e,u,n+i,i<0?u.childCount:0,i,a);if(c)return c}n+=u.nodeSize*i}return null}function A_(e,t,n){let r=e.steps.length-1;if(r<t)return;let i=e.steps[r];if(!(i instanceof Vt||i instanceof qt))return;let a=e.mapping.maps[r],s;a.forEach((u,c,p,f)=>{s==null&&(s=f)}),e.setSelection(Fe.near(e.doc.resolve(s),n))}const C_=1,Wd=2,R_=4;class cW extends OL{constructor(t){super(t.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=t.selection,this.storedMarks=t.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(t){if(t.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=t,this.curSelectionFor=this.steps.length,this.updated=(this.updated|C_)&~Wd,this.storedMarks=null,this}get selectionSet(){return(this.updated&C_)>0}setStoredMarks(t){return this.storedMarks=t,this.updated|=Wd,this}ensureMarks(t){return ut.sameSet(this.storedMarks||this.selection.$from.marks(),t)||this.setStoredMarks(t),this}addStoredMark(t){return this.ensureMarks(t.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(t){return this.ensureMarks(t.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&Wd)>0}addStep(t,n){super.addStep(t,n),this.updated=this.updated&~Wd,this.storedMarks=null}setTime(t){return this.time=t,this}replaceSelection(t){return this.selection.replace(this,t),this}replaceSelectionWith(t,n=!0){let r=this.selection;return n&&(t=t.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||ut.none))),r.replaceWith(this,t),this}deleteSelection(){return this.selection.replace(this),this}insertText(t,n,r){let i=this.doc.type.schema;if(n==null)return t?this.replaceSelectionWith(i.text(t),!0):this.deleteSelection();{if(r==null&&(r=n),!t)return this.deleteRange(n,r);let a=this.storedMarks;if(!a){let s=this.doc.resolve(n);a=r==n?s.marks():s.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(n,r,i.text(t,a)),!this.selection.empty&&this.selection.to==n+t.length&&this.setSelection(Fe.near(this.selection.$to)),this}}setMeta(t,n){return this.meta[typeof t=="string"?t:t.key]=n,this}getMeta(t){return this.meta[typeof t=="string"?t:t.key]}get isGeneric(){for(let t in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=R_,this}get scrolledIntoView(){return(this.updated&R_)>0}}function N_(e,t){return!t||!e?e:e.bind(t)}class pu{constructor(t,n,r){this.name=t,this.init=N_(n.init,r),this.apply=N_(n.apply,r)}}const dW=[new pu("doc",{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new pu("selection",{init(e,t){return e.selection||Fe.atStart(t.doc)},apply(e){return e.selection}}),new pu("storedMarks",{init(e){return e.storedMarks||null},apply(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new pu("scrollToSelection",{init(){return 0},apply(e,t){return e.scrolledIntoView?t+1:t}})];class gb{constructor(t,n){this.schema=t,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=dW.slice(),n&&n.forEach(r=>{if(this.pluginsByKey[r.key])throw new RangeError("Adding different instances of a keyed plugin ("+r.key+")");this.plugins.push(r),this.pluginsByKey[r.key]=r,r.spec.state&&this.fields.push(new pu(r.key,r.spec.state,r))})}}class _s{constructor(t){this.config=t}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(t){return this.applyTransaction(t).state}filterTransaction(t,n=-1){for(let r=0;r<this.config.plugins.length;r++)if(r!=n){let i=this.config.plugins[r];if(i.spec.filterTransaction&&!i.spec.filterTransaction.call(i,t,this))return!1}return!0}applyTransaction(t){if(!this.filterTransaction(t))return{state:this,transactions:[]};let n=[t],r=this.applyInner(t),i=null;for(;;){let a=!1;for(let s=0;s<this.config.plugins.length;s++){let u=this.config.plugins[s];if(u.spec.appendTransaction){let c=i?i[s].n:0,p=i?i[s].state:this,f=c<n.length&&u.spec.appendTransaction.call(u,c?n.slice(c):n,p,r);if(f&&r.filterTransaction(f,s)){if(f.setMeta("appendedTransaction",t),!i){i=[];for(let m=0;m<this.config.plugins.length;m++)i.push(m<s?{state:r,n:n.length}:{state:this,n:0})}n.push(f),r=r.applyInner(f),a=!0}i&&(i[s]={state:r,n:n.length})}}if(!a)return{state:r,transactions:n}}}applyInner(t){if(!t.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let n=new _s(this.config),r=this.config.fields;for(let i=0;i<r.length;i++){let a=r[i];n[a.name]=a.apply(t,this[a.name],this,n)}return n}get tr(){return new cW(this)}static create(t){let n=new gb(t.doc?t.doc.type.schema:t.schema,t.plugins),r=new _s(n);for(let i=0;i<n.fields.length;i++)r[n.fields[i].name]=n.fields[i].init(t,r);return r}reconfigure(t){let n=new gb(this.schema,t.plugins),r=n.fields,i=new _s(n);for(let a=0;a<r.length;a++){let s=r[a].name;i[s]=this.hasOwnProperty(s)?this[s]:r[a].init(t,i)}return i}toJSON(t){let n={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(n.storedMarks=this.storedMarks.map(r=>r.toJSON())),t&&typeof t=="object")for(let r in t){if(r=="doc"||r=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let i=t[r],a=i.spec.state;a&&a.toJSON&&(n[r]=a.toJSON.call(i,this[i.key]))}return n}static fromJSON(t,n,r){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!t.schema)throw new RangeError("Required config field 'schema' missing");let i=new gb(t.schema,t.plugins),a=new _s(i);return i.fields.forEach(s=>{if(s.name=="doc")a.doc=ga.fromJSON(t.schema,n.doc);else if(s.name=="selection")a.selection=Fe.fromJSON(a.doc,n.selection);else if(s.name=="storedMarks")n.storedMarks&&(a.storedMarks=n.storedMarks.map(t.schema.markFromJSON));else{if(r)for(let u in r){let c=r[u],p=c.spec.state;if(c.key==s.name&&p&&p.fromJSON&&Object.prototype.hasOwnProperty.call(n,u)){a[s.name]=p.fromJSON.call(c,t,n[u],a);return}}a[s.name]=s.init(t,a)}}),a}}function IL(e,t,n){for(let r in e){let i=e[r];i instanceof Function?i=i.bind(t):r=="handleDOMEvents"&&(i=IL(i,t,{})),n[r]=i}return n}class yt{constructor(t){this.spec=t,this.props={},t.props&&IL(t.props,this,this.props),this.key=t.key?t.key.key:DL("plugin")}getState(t){return t[this.key]}}const bb=Object.create(null);function DL(e){return e in bb?e+"$"+ ++bb[e]:(bb[e]=0,e+"$")}class $t{constructor(t="key"){this.key=DL(t)}get(t){return t.config.pluginsByKey[this.key]}getState(t){return t[this.key]}}const OT=(e,t)=>e.selection.empty?!1:(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function LL(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("backward",e):n.parentOffset>0)?null:n}const ML=(e,t,n)=>{let r=LL(e,n);if(!r)return!1;let i=IT(r);if(!i){let s=r.blockRange(),u=s&&nl(s);return u==null?!1:(t&&t(e.tr.lift(s,u).scrollIntoView()),!0)}let a=i.nodeBefore;if(GL(e,i,t,-1))return!0;if(r.parent.content.size==0&&(Us(a,"end")||xe.isSelectable(a)))for(let s=r.depth;;s--){let u=Yf(e.doc,r.before(s),r.after(s),ge.empty);if(u&&u.slice.size<u.to-u.from){if(t){let c=e.tr.step(u);c.setSelection(Us(a,"end")?Fe.findFrom(c.doc.resolve(c.mapping.map(i.pos,-1)),-1):xe.create(c.doc,i.pos-a.nodeSize)),t(c.scrollIntoView())}return!0}if(s==1||r.node(s-1).childCount>1)break}return a.isAtom&&i.depth==r.depth-1?(t&&t(e.tr.delete(i.pos-a.nodeSize,i.pos).scrollIntoView()),!0):!1},pW=(e,t,n)=>{let r=LL(e,n);if(!r)return!1;let i=IT(r);return i?BL(e,i,t):!1},fW=(e,t,n)=>{let r=zL(e,n);if(!r)return!1;let i=DT(r);return i?BL(e,i,t):!1};function BL(e,t,n){let r=t.nodeBefore,i=r,a=t.pos-1;for(;!i.isTextblock;a--){if(i.type.spec.isolating)return!1;let f=i.lastChild;if(!f)return!1;i=f}let s=t.nodeAfter,u=s,c=t.pos+1;for(;!u.isTextblock;c++){if(u.type.spec.isolating)return!1;let f=u.firstChild;if(!f)return!1;u=f}let p=Yf(e.doc,a,c,ge.empty);if(!p||p.from!=a||p instanceof Vt&&p.slice.size>=c-a)return!1;if(n){let f=e.tr.step(p);f.setSelection(Ne.create(f.doc,a)),n(f.scrollIntoView())}return!0}function Us(e,t,n=!1){for(let r=e;r;r=t=="start"?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&r.childCount!=1)return!1}return!1}const FL=(e,t,n)=>{let{$head:r,empty:i}=e.selection,a=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):r.parentOffset>0)return!1;a=IT(r)}let s=a&&a.nodeBefore;return!s||!xe.isSelectable(s)?!1:(t&&t(e.tr.setSelection(xe.create(e.doc,a.pos-s.nodeSize)).scrollIntoView()),!0)};function IT(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function zL(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("forward",e):n.parentOffset<n.parent.content.size)?null:n}const UL=(e,t,n)=>{let r=zL(e,n);if(!r)return!1;let i=DT(r);if(!i)return!1;let a=i.nodeAfter;if(GL(e,i,t,1))return!0;if(r.parent.content.size==0&&(Us(a,"start")||xe.isSelectable(a))){let s=Yf(e.doc,r.before(),r.after(),ge.empty);if(s&&s.slice.size<s.to-s.from){if(t){let u=e.tr.step(s);u.setSelection(Us(a,"start")?Fe.findFrom(u.doc.resolve(u.mapping.map(i.pos)),1):xe.create(u.doc,u.mapping.map(i.pos))),t(u.scrollIntoView())}return!0}}return a.isAtom&&i.depth==r.depth-1?(t&&t(e.tr.delete(i.pos,i.pos+a.nodeSize).scrollIntoView()),!0):!1},PL=(e,t,n)=>{let{$head:r,empty:i}=e.selection,a=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):r.parentOffset<r.parent.content.size)return!1;a=DT(r)}let s=a&&a.nodeAfter;return!s||!xe.isSelectable(s)?!1:(t&&t(e.tr.setSelection(xe.create(e.doc,a.pos)).scrollIntoView()),!0)};function DT(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}const hW=(e,t)=>{let n=e.selection,r=n instanceof xe,i;if(r){if(n.node.isTextblock||!_a(e.doc,n.from))return!1;i=n.from}else if(i=Wf(e.doc,n.from,-1),i==null)return!1;if(t){let a=e.tr.join(i);r&&a.setSelection(xe.create(a.doc,i-e.doc.resolve(i).nodeBefore.nodeSize)),t(a.scrollIntoView())}return!0},mW=(e,t)=>{let n=e.selection,r;if(n instanceof xe){if(n.node.isTextblock||!_a(e.doc,n.to))return!1;r=n.to}else if(r=Wf(e.doc,n.to,1),r==null)return!1;return t&&t(e.tr.join(r).scrollIntoView()),!0},gW=(e,t)=>{let{$from:n,$to:r}=e.selection,i=n.blockRange(r),a=i&&nl(i);return a==null?!1:(t&&t(e.tr.lift(i,a).scrollIntoView()),!0)},$L=(e,t)=>{let{$head:n,$anchor:r}=e.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(t&&t(e.tr.insertText(`
|
|
90
|
+
`).scrollIntoView()),!0)};function LT(e){for(let t=0;t<e.edgeCount;t++){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}const bW=(e,t)=>{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),a=n.indexAfter(-1),s=LT(i.contentMatchAt(a));if(!s||!i.canReplaceWith(a,a,s))return!1;if(t){let u=n.after(),c=e.tr.replaceWith(u,u,s.createAndFill());c.setSelection(Fe.near(c.doc.resolve(u),1)),t(c.scrollIntoView())}return!0},HL=(e,t)=>{let n=e.selection,{$from:r,$to:i}=n;if(n instanceof Yn||r.parent.inlineContent||i.parent.inlineContent)return!1;let a=LT(i.parent.contentMatchAt(i.indexAfter()));if(!a||!a.isTextblock)return!1;if(t){let s=(!r.parentOffset&&i.index()<i.parent.childCount?r:i).pos,u=e.tr.insert(s,a.createAndFill());u.setSelection(Ne.create(u.doc,s+1)),t(u.scrollIntoView())}return!0},jL=(e,t)=>{let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let a=n.before();if(ki(e.doc,a))return t&&t(e.tr.split(a).scrollIntoView()),!0}let r=n.blockRange(),i=r&&nl(r);return i==null?!1:(t&&t(e.tr.lift(r,i).scrollIntoView()),!0)};function yW(e){return(t,n)=>{let{$from:r,$to:i}=t.selection;if(t.selection instanceof xe&&t.selection.node.isBlock)return!r.parentOffset||!ki(t.doc,r.pos)?!1:(n&&n(t.tr.split(r.pos).scrollIntoView()),!0);if(!r.depth)return!1;let a=[],s,u,c=!1,p=!1;for(let b=r.depth;;b--)if(r.node(b).isBlock){c=r.end(b)==r.pos+(r.depth-b),p=r.start(b)==r.pos-(r.depth-b),u=LT(r.node(b-1).contentMatchAt(r.indexAfter(b-1))),a.unshift(c&&u?{type:u}:null),s=b;break}else{if(b==1)return!1;a.unshift(null)}let f=t.tr;(t.selection instanceof Ne||t.selection instanceof Yn)&&f.deleteSelection();let m=f.mapping.map(r.pos),g=ki(f.doc,m,a.length,a);if(g||(a[0]=u?{type:u}:null,g=ki(f.doc,m,a.length,a)),!g)return!1;if(f.split(m,a.length,a),!c&&p&&r.node(s).type!=u){let b=f.mapping.map(r.before(s)),S=f.doc.resolve(b);u&&r.node(s-1).canReplaceWith(S.index(),S.index()+1,u)&&f.setNodeMarkup(f.mapping.map(r.before(s)),u)}return n&&n(f.scrollIntoView()),!0}}const EW=yW(),SW=(e,t)=>{let{$from:n,to:r}=e.selection,i,a=n.sharedDepth(r);return a==0?!1:(i=n.before(a),t&&t(e.tr.setSelection(xe.create(e.doc,i))),!0)};function kW(e,t,n){let r=t.nodeBefore,i=t.nodeAfter,a=t.index();return!r||!i||!r.type.compatibleContent(i.type)?!1:!r.content.size&&t.parent.canReplace(a-1,a)?(n&&n(e.tr.delete(t.pos-r.nodeSize,t.pos).scrollIntoView()),!0):!t.parent.canReplace(a,a+1)||!(i.isTextblock||_a(e.doc,t.pos))?!1:(n&&n(e.tr.join(t.pos).scrollIntoView()),!0)}function GL(e,t,n,r){let i=t.nodeBefore,a=t.nodeAfter,s,u,c=i.type.spec.isolating||a.type.spec.isolating;if(!c&&kW(e,t,n))return!0;let p=!c&&t.parent.canReplace(t.index(),t.index()+1);if(p&&(s=(u=i.contentMatchAt(i.childCount)).findWrapping(a.type))&&u.matchType(s[0]||a.type).validEnd){if(n){let b=t.pos+a.nodeSize,S=ue.empty;for(let w=s.length-1;w>=0;w--)S=ue.from(s[w].create(null,S));S=ue.from(i.copy(S));let k=e.tr.step(new qt(t.pos-1,b,t.pos,b,new ge(S,1,0),s.length,!0)),v=k.doc.resolve(b+2*s.length);v.nodeAfter&&v.nodeAfter.type==i.type&&_a(k.doc,v.pos)&&k.join(v.pos),n(k.scrollIntoView())}return!0}let f=a.type.spec.isolating||r>0&&c?null:Fe.findFrom(t,1),m=f&&f.$from.blockRange(f.$to),g=m&&nl(m);if(g!=null&&g>=t.depth)return n&&n(e.tr.lift(m,g).scrollIntoView()),!0;if(p&&Us(a,"start",!0)&&Us(i,"end")){let b=i,S=[];for(;S.push(b),!b.isTextblock;)b=b.lastChild;let k=a,v=1;for(;!k.isTextblock;k=k.firstChild)v++;if(b.canReplace(b.childCount,b.childCount,k.content)){if(n){let w=ue.empty;for(let A=S.length-1;A>=0;A--)w=ue.from(S[A].copy(w));let x=e.tr.step(new qt(t.pos-S.length,t.pos+a.nodeSize,t.pos+v,t.pos+a.nodeSize-v,new ge(w,S.length,0),0,!0));n(x.scrollIntoView())}return!0}}return!1}function VL(e){return function(t,n){let r=t.selection,i=e<0?r.$from:r.$to,a=i.depth;for(;i.node(a).isInline;){if(!a)return!1;a--}return i.node(a).isTextblock?(n&&n(t.tr.setSelection(Ne.create(t.doc,e<0?i.start(a):i.end(a)))),!0):!1}}const vW=VL(-1),wW=VL(1);function TW(e,t=null){return function(n,r){let{$from:i,$to:a}=n.selection,s=i.blockRange(a),u=s&&NT(s,e,t);return u?(r&&r(n.tr.wrap(s,u).scrollIntoView()),!0):!1}}function __(e,t=null){return function(n,r){let i=!1;for(let a=0;a<n.selection.ranges.length&&!i;a++){let{$from:{pos:s},$to:{pos:u}}=n.selection.ranges[a];n.doc.nodesBetween(s,u,(c,p)=>{if(i)return!1;if(!(!c.isTextblock||c.hasMarkup(e,t)))if(c.type==e)i=!0;else{let f=n.doc.resolve(p),m=f.index();i=f.parent.canReplaceWith(m,m+1,e)}})}if(!i)return!1;if(r){let a=n.tr;for(let s=0;s<n.selection.ranges.length;s++){let{$from:{pos:u},$to:{pos:c}}=n.selection.ranges[s];a.setBlockType(u,c,e,t)}r(a.scrollIntoView())}return!0}}function MT(...e){return function(t,n,r){for(let i=0;i<e.length;i++)if(e[i](t,n,r))return!0;return!1}}MT(OT,ML,FL);MT(OT,UL,PL);MT($L,HL,jL,EW);typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function xW(e,t=null){return function(n,r){let{$from:i,$to:a}=n.selection,s=i.blockRange(a);if(!s)return!1;let u=r?n.tr:null;return AW(u,s,e,t)?(r&&r(u.scrollIntoView()),!0):!1}}function AW(e,t,n,r=null){let i=!1,a=t,s=t.$from.doc;if(t.depth>=2&&t.$from.node(t.depth-1).type.compatibleContent(n)&&t.startIndex==0){if(t.$from.index(t.depth-1)==0)return!1;let c=s.resolve(t.start-2);a=new Op(c,c,t.depth),t.endIndex<t.parent.childCount&&(t=new Op(t.$from,s.resolve(t.$to.end(t.depth)),t.depth)),i=!0}let u=NT(a,n,r,t);return u?(e&&CW(e,t,u,i,n),!0):!1}function CW(e,t,n,r,i){let a=ue.empty;for(let f=n.length-1;f>=0;f--)a=ue.from(n[f].type.create(n[f].attrs,a));e.step(new qt(t.start-(r?2:0),t.end,t.start,t.end,new ge(a,0,0),n.length,!0));let s=0;for(let f=0;f<n.length;f++)n[f].type==i&&(s=f+1);let u=n.length-s,c=t.start+n.length-(r?2:0),p=t.parent;for(let f=t.startIndex,m=t.endIndex,g=!0;f<m;f++,g=!1)!g&&ki(e.doc,c,u)&&(e.split(c,u),c+=2*u),c+=p.child(f).nodeSize;return e}function RW(e){return function(t,n){let{$from:r,$to:i}=t.selection,a=r.blockRange(i,s=>s.childCount>0&&s.firstChild.type==e);return a?n?r.node(a.depth-1).type==e?NW(t,n,e,a):_W(t,n,a):!0:!1}}function NW(e,t,n,r){let i=e.tr,a=r.end,s=r.$to.end(r.depth);a<s&&(i.step(new qt(a-1,s,a,s,new ge(ue.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new Op(i.doc.resolve(r.$from.pos),i.doc.resolve(s),r.depth));const u=nl(r);if(u==null)return!1;i.lift(r,u);let c=i.doc.resolve(i.mapping.map(a,-1)-1);return _a(i.doc,c.pos)&&c.nodeBefore.type==c.nodeAfter.type&&i.join(c.pos),t(i.scrollIntoView()),!0}function _W(e,t,n){let r=e.tr,i=n.parent;for(let b=n.end,S=n.endIndex-1,k=n.startIndex;S>k;S--)b-=i.child(S).nodeSize,r.delete(b-1,b+1);let a=r.doc.resolve(n.start),s=a.nodeAfter;if(r.mapping.map(n.end)!=n.start+a.nodeAfter.nodeSize)return!1;let u=n.startIndex==0,c=n.endIndex==i.childCount,p=a.node(-1),f=a.index(-1);if(!p.canReplace(f+(u?0:1),f+1,s.content.append(c?ue.empty:ue.from(i))))return!1;let m=a.pos,g=m+s.nodeSize;return r.step(new qt(m-(u?1:0),g+(c?1:0),m+1,g-1,new ge((u?ue.empty:ue.from(i.copy(ue.empty))).append(c?ue.empty:ue.from(i.copy(ue.empty))),u?0:1,c?0:1),u?0:1)),t(r.scrollIntoView()),!0}function OW(e){return function(t,n){let{$from:r,$to:i}=t.selection,a=r.blockRange(i,p=>p.childCount>0&&p.firstChild.type==e);if(!a)return!1;let s=a.startIndex;if(s==0)return!1;let u=a.parent,c=u.child(s-1);if(c.type!=e)return!1;if(n){let p=c.lastChild&&c.lastChild.type==u.type,f=ue.from(p?e.create():null),m=new ge(ue.from(e.create(null,ue.from(u.type.create(null,f)))),p?3:1,0),g=a.start,b=a.end;n(t.tr.step(new qt(g-(p?3:1),b,g,b,m,1,!0)).scrollIntoView())}return!0}}const en=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},Ps=function(e){let t=e.assignedSlot||e.parentNode;return t&&t.nodeType==11?t.host:t};let vy=null;const yi=function(e,t,n){let r=vy||(vy=document.createRange());return r.setEnd(e,n??e.nodeValue.length),r.setStart(e,t||0),r},IW=function(){vy=null},So=function(e,t,n,r){return n&&(O_(e,t,n,r,-1)||O_(e,t,n,r,1))},DW=/^(img|br|input|textarea|hr)$/i;function O_(e,t,n,r,i){for(var a;;){if(e==n&&t==r)return!0;if(t==(i<0?0:cr(e))){let s=e.parentNode;if(!s||s.nodeType!=1||dc(e)||DW.test(e.nodeName)||e.contentEditable=="false")return!1;t=en(e)+(i<0?0:1),e=s}else if(e.nodeType==1){let s=e.childNodes[t+(i<0?-1:0)];if(s.nodeType==1&&s.contentEditable=="false")if(!((a=s.pmViewDesc)===null||a===void 0)&&a.ignoreForSelection)t+=i;else return!1;else e=s,t=i<0?cr(e):0}else return!1}}function cr(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function LW(e,t){for(;;){if(e.nodeType==3&&t)return e;if(e.nodeType==1&&t>0){if(e.contentEditable=="false")return null;e=e.childNodes[t-1],t=cr(e)}else if(e.parentNode&&!dc(e))t=en(e),e=e.parentNode;else return null}}function MW(e,t){for(;;){if(e.nodeType==3&&t<e.nodeValue.length)return e;if(e.nodeType==1&&t<e.childNodes.length){if(e.contentEditable=="false")return null;e=e.childNodes[t],t=0}else if(e.parentNode&&!dc(e))t=en(e)+1,e=e.parentNode;else return null}}function BW(e,t,n){for(let r=t==0,i=t==cr(e);r||i;){if(e==n)return!0;let a=en(e);if(e=e.parentNode,!e)return!1;r=r&&a==0,i=i&&a==cr(e)}}function dc(e){let t;for(let n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}const Xf=function(e){return e.focusNode&&So(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function to(e,t){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}function FW(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function zW(e,t,n){if(e.caretPositionFromPoint)try{let r=e.caretPositionFromPoint(t,n);if(r)return{node:r.offsetNode,offset:Math.min(cr(r.offsetNode),r.offset)}}catch{}if(e.caretRangeFromPoint){let r=e.caretRangeFromPoint(t,n);if(r)return{node:r.startContainer,offset:Math.min(cr(r.startContainer),r.startOffset)}}}const Hr=typeof navigator<"u"?navigator:null,I_=typeof document<"u"?document:null,Oa=Hr&&Hr.userAgent||"",wy=/Edge\/(\d+)/.exec(Oa),qL=/MSIE \d/.exec(Oa),Ty=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Oa),In=!!(qL||Ty||wy),ba=qL?document.documentMode:Ty?+Ty[1]:wy?+wy[1]:0,dr=!In&&/gecko\/(\d+)/i.test(Oa);dr&&+(/Firefox\/(\d+)/.exec(Oa)||[0,0])[1];const xy=!In&&/Chrome\/(\d+)/.exec(Oa),nn=!!xy,WL=xy?+xy[1]:0,un=!In&&!!Hr&&/Apple Computer/.test(Hr.vendor),$s=un&&(/Mobile\/\w+/.test(Oa)||!!Hr&&Hr.maxTouchPoints>2),lr=$s||(Hr?/Mac/.test(Hr.platform):!1),YL=Hr?/Win/.test(Hr.platform):!1,Ei=/Android \d/.test(Oa),pc=!!I_&&"webkitFontSmoothing"in I_.documentElement.style,UW=pc?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function PW(e){let t=e.defaultView&&e.defaultView.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function fi(e,t){return typeof e=="number"?e:e[t]}function $W(e){let t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*r}}function D_(e,t,n){let r=e.someProp("scrollThreshold")||0,i=e.someProp("scrollMargin")||5,a=e.dom.ownerDocument;for(let s=n||e.dom;s;){if(s.nodeType!=1){s=Ps(s);continue}let u=s,c=u==a.body,p=c?PW(a):$W(u),f=0,m=0;if(t.top<p.top+fi(r,"top")?m=-(p.top-t.top+fi(i,"top")):t.bottom>p.bottom-fi(r,"bottom")&&(m=t.bottom-t.top>p.bottom-p.top?t.top+fi(i,"top")-p.top:t.bottom-p.bottom+fi(i,"bottom")),t.left<p.left+fi(r,"left")?f=-(p.left-t.left+fi(i,"left")):t.right>p.right-fi(r,"right")&&(f=t.right-p.right+fi(i,"right")),f||m)if(c)a.defaultView.scrollBy(f,m);else{let b=u.scrollLeft,S=u.scrollTop;m&&(u.scrollTop+=m),f&&(u.scrollLeft+=f);let k=u.scrollLeft-b,v=u.scrollTop-S;t={left:t.left-k,top:t.top-v,right:t.right-k,bottom:t.bottom-v}}let g=c?"fixed":getComputedStyle(s).position;if(/^(fixed|sticky)$/.test(g))break;s=g=="absolute"?s.offsetParent:Ps(s)}}function HW(e){let t=e.dom.getBoundingClientRect(),n=Math.max(0,t.top),r,i;for(let a=(t.left+t.right)/2,s=n+1;s<Math.min(innerHeight,t.bottom);s+=5){let u=e.root.elementFromPoint(a,s);if(!u||u==e.dom||!e.dom.contains(u))continue;let c=u.getBoundingClientRect();if(c.top>=n-20){r=u,i=c.top;break}}return{refDOM:r,refTop:i,stack:KL(e.dom)}}function KL(e){let t=[],n=e.ownerDocument;for(let r=e;r&&(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e!=n);r=Ps(r));return t}function jW({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;XL(n,r==0?0:r-t)}function XL(e,t){for(let n=0;n<e.length;n++){let{dom:r,top:i,left:a}=e[n];r.scrollTop!=i+t&&(r.scrollTop=i+t),r.scrollLeft!=a&&(r.scrollLeft=a)}}let ws=null;function GW(e){if(e.setActive)return e.setActive();if(ws)return e.focus(ws);let t=KL(e);e.focus(ws==null?{get preventScroll(){return ws={preventScroll:!0},!0}}:void 0),ws||(ws=!1,XL(t,0))}function ZL(e,t){let n,r=2e8,i,a=0,s=t.top,u=t.top,c,p;for(let f=e.firstChild,m=0;f;f=f.nextSibling,m++){let g;if(f.nodeType==1)g=f.getClientRects();else if(f.nodeType==3)g=yi(f).getClientRects();else continue;for(let b=0;b<g.length;b++){let S=g[b];if(S.top<=s&&S.bottom>=u){s=Math.max(S.bottom,s),u=Math.min(S.top,u);let k=S.left>t.left?S.left-t.left:S.right<t.left?t.left-S.right:0;if(k<r){n=f,r=k,i=k&&n.nodeType==3?{left:S.right<t.left?S.right:S.left,top:t.top}:t,f.nodeType==1&&k&&(a=m+(t.left>=(S.left+S.right)/2?1:0));continue}}else S.top>t.top&&!c&&S.left<=t.left&&S.right>=t.left&&(c=f,p={left:Math.max(S.left,Math.min(S.right,t.left)),top:S.top});!n&&(t.left>=S.right&&t.top>=S.top||t.left>=S.left&&t.top>=S.bottom)&&(a=m+1)}}return!n&&c&&(n=c,i=p,r=0),n&&n.nodeType==3?VW(n,i):!n||r&&n.nodeType==1?{node:e,offset:a}:ZL(n,i)}function VW(e,t){let n=e.nodeValue.length,r=document.createRange(),i;for(let a=0;a<n;a++){r.setEnd(e,a+1),r.setStart(e,a);let s=aa(r,1);if(s.top!=s.bottom&&BT(t,s)){i={node:e,offset:a+(t.left>=(s.left+s.right)/2?1:0)};break}}return r.detach(),i||{node:e,offset:0}}function BT(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function qW(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}function WW(e,t,n){let{node:r,offset:i}=ZL(t,n),a=-1;if(r.nodeType==1&&!r.firstChild){let s=r.getBoundingClientRect();a=s.left!=s.right&&n.left>(s.left+s.right)/2?1:-1}return e.docView.posFromDOM(r,i,a)}function YW(e,t,n,r){let i=-1;for(let a=t,s=!1;a!=e.dom;){let u=e.docView.nearestDesc(a,!0),c;if(!u)return null;if(u.dom.nodeType==1&&(u.node.isBlock&&u.parent||!u.contentDOM)&&((c=u.dom.getBoundingClientRect()).width||c.height)&&(u.node.isBlock&&u.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(u.dom.nodeName)&&(!s&&c.left>r.left||c.top>r.top?i=u.posBefore:(!s&&c.right<r.left||c.bottom<r.top)&&(i=u.posAfter),s=!0),!u.contentDOM&&i<0&&!u.node.isText))return(u.node.isBlock?r.top<(c.top+c.bottom)/2:r.left<(c.left+c.right)/2)?u.posBefore:u.posAfter;a=u.dom.parentNode}return i>-1?i:e.docView.posFromDOM(t,n,-1)}function QL(e,t,n){let r=e.childNodes.length;if(r&&n.top<n.bottom)for(let i=Math.max(0,Math.min(r-1,Math.floor(r*(t.top-n.top)/(n.bottom-n.top))-2)),a=i;;){let s=e.childNodes[a];if(s.nodeType==1){let u=s.getClientRects();for(let c=0;c<u.length;c++){let p=u[c];if(BT(t,p))return QL(s,t,p)}}if((a=(a+1)%r)==i)break}return e}function KW(e,t){let n=e.dom.ownerDocument,r,i=0,a=zW(n,t.left,t.top);a&&({node:r,offset:i}=a);let s=(e.root.elementFromPoint?e.root:n).elementFromPoint(t.left,t.top),u;if(!s||!e.dom.contains(s.nodeType!=1?s.parentNode:s)){let p=e.dom.getBoundingClientRect();if(!BT(t,p)||(s=QL(e.dom,t,p),!s))return null}if(un)for(let p=s;r&&p;p=Ps(p))p.draggable&&(r=void 0);if(s=qW(s,t),r){if(dr&&r.nodeType==1&&(i=Math.min(i,r.childNodes.length),i<r.childNodes.length)){let f=r.childNodes[i],m;f.nodeName=="IMG"&&(m=f.getBoundingClientRect()).right<=t.left&&m.bottom>t.top&&i++}let p;pc&&i&&r.nodeType==1&&(p=r.childNodes[i-1]).nodeType==1&&p.contentEditable=="false"&&p.getBoundingClientRect().top>=t.top&&i--,r==e.dom&&i==r.childNodes.length-1&&r.lastChild.nodeType==1&&t.top>r.lastChild.getBoundingClientRect().bottom?u=e.state.doc.content.size:(i==0||r.nodeType!=1||r.childNodes[i-1].nodeName!="BR")&&(u=YW(e,r,i,t))}u==null&&(u=WW(e,s,t));let c=e.docView.nearestDesc(s,!0);return{pos:u,inside:c?c.posAtStart-c.border:-1}}function L_(e){return e.top<e.bottom||e.left<e.right}function aa(e,t){let n=e.getClientRects();if(n.length){let r=n[t<0?0:n.length-1];if(L_(r))return r}return Array.prototype.find.call(n,L_)||e.getBoundingClientRect()}const XW=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function JL(e,t,n){let{node:r,offset:i,atom:a}=e.docView.domFromPos(t,n<0?-1:1),s=pc||dr;if(r.nodeType==3)if(s&&(XW.test(r.nodeValue)||(n<0?!i:i==r.nodeValue.length))){let c=aa(yi(r,i,i),n);if(dr&&i&&/\s/.test(r.nodeValue[i-1])&&i<r.nodeValue.length){let p=aa(yi(r,i-1,i-1),-1);if(p.top==c.top){let f=aa(yi(r,i,i+1),-1);if(f.top!=c.top)return ru(f,f.left<p.left)}}return c}else{let c=i,p=i,f=n<0?1:-1;return n<0&&!i?(p++,f=-1):n>=0&&i==r.nodeValue.length?(c--,f=1):n<0?c--:p++,ru(aa(yi(r,c,p),f),f<0)}if(!e.state.doc.resolve(t-(a||0)).parent.inlineContent){if(a==null&&i&&(n<0||i==cr(r))){let c=r.childNodes[i-1];if(c.nodeType==1)return yb(c.getBoundingClientRect(),!1)}if(a==null&&i<cr(r)){let c=r.childNodes[i];if(c.nodeType==1)return yb(c.getBoundingClientRect(),!0)}return yb(r.getBoundingClientRect(),n>=0)}if(a==null&&i&&(n<0||i==cr(r))){let c=r.childNodes[i-1],p=c.nodeType==3?yi(c,cr(c)-(s?0:1)):c.nodeType==1&&(c.nodeName!="BR"||!c.nextSibling)?c:null;if(p)return ru(aa(p,1),!1)}if(a==null&&i<cr(r)){let c=r.childNodes[i];for(;c.pmViewDesc&&c.pmViewDesc.ignoreForCoords;)c=c.nextSibling;let p=c?c.nodeType==3?yi(c,0,s?0:1):c.nodeType==1?c:null:null;if(p)return ru(aa(p,-1),!0)}return ru(aa(r.nodeType==3?yi(r):r,-n),n>=0)}function ru(e,t){if(e.width==0)return e;let n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function yb(e,t){if(e.height==0)return e;let n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function eM(e,t,n){let r=e.state,i=e.root.activeElement;r!=t&&e.updateState(t),i!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),i!=e.dom&&i&&i.focus()}}function ZW(e,t,n){let r=t.selection,i=n=="up"?r.$from:r.$to;return eM(e,t,()=>{let{node:a}=e.docView.domFromPos(i.pos,n=="up"?-1:1);for(;;){let u=e.docView.nearestDesc(a,!0);if(!u)break;if(u.node.isBlock){a=u.contentDOM||u.dom;break}a=u.dom.parentNode}let s=JL(e,i.pos,1);for(let u=a.firstChild;u;u=u.nextSibling){let c;if(u.nodeType==1)c=u.getClientRects();else if(u.nodeType==3)c=yi(u,0,u.nodeValue.length).getClientRects();else continue;for(let p=0;p<c.length;p++){let f=c[p];if(f.bottom>f.top+1&&(n=="up"?s.top-f.top>(f.bottom-s.top)*2:f.bottom-s.bottom>(s.bottom-f.top)*2))return!1}}return!0})}const QW=/[\u0590-\u08ac]/;function JW(e,t,n){let{$head:r}=t.selection;if(!r.parent.isTextblock)return!1;let i=r.parentOffset,a=!i,s=i==r.parent.content.size,u=e.domSelection();return u?!QW.test(r.parent.textContent)||!u.modify?n=="left"||n=="backward"?a:s:eM(e,t,()=>{let{focusNode:c,focusOffset:p,anchorNode:f,anchorOffset:m}=e.domSelectionRange(),g=u.caretBidiLevel;u.modify("move",n,"character");let b=r.depth?e.docView.domAfterPos(r.before()):e.dom,{focusNode:S,focusOffset:k}=e.domSelectionRange(),v=S&&!b.contains(S.nodeType==1?S:S.parentNode)||c==S&&p==k;try{u.collapse(f,m),c&&(c!=f||p!=m)&&u.extend&&u.extend(c,p)}catch{}return g!=null&&(u.caretBidiLevel=g),v}):r.pos==r.start()||r.pos==r.end()}let M_=null,B_=null,F_=!1;function e9(e,t,n){return M_==t&&B_==n?F_:(M_=t,B_=n,F_=n=="up"||n=="down"?ZW(e,t,n):JW(e,t,n))}const pr=0,z_=1,ro=2,jr=3;class fc{constructor(t,n,r,i){this.parent=t,this.children=n,this.dom=r,this.contentDOM=i,this.dirty=pr,r.pmViewDesc=this}matchesWidget(t){return!1}matchesMark(t){return!1}matchesNode(t,n,r){return!1}matchesHack(t){return!1}parseRule(){return null}stopEvent(t){return!1}get size(){let t=0;for(let n=0;n<this.children.length;n++)t+=this.children[n].size;return t}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let t=0;t<this.children.length;t++)this.children[t].destroy()}posBeforeChild(t){for(let n=0,r=this.posAtStart;;n++){let i=this.children[n];if(i==t)return r;r+=i.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(t,n,r){if(this.contentDOM&&this.contentDOM.contains(t.nodeType==1?t:t.parentNode))if(r<0){let a,s;if(t==this.contentDOM)a=t.childNodes[n-1];else{for(;t.parentNode!=this.contentDOM;)t=t.parentNode;a=t.previousSibling}for(;a&&!((s=a.pmViewDesc)&&s.parent==this);)a=a.previousSibling;return a?this.posBeforeChild(s)+s.size:this.posAtStart}else{let a,s;if(t==this.contentDOM)a=t.childNodes[n];else{for(;t.parentNode!=this.contentDOM;)t=t.parentNode;a=t.nextSibling}for(;a&&!((s=a.pmViewDesc)&&s.parent==this);)a=a.nextSibling;return a?this.posBeforeChild(s):this.posAtEnd}let i;if(t==this.dom&&this.contentDOM)i=n>en(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))i=t.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let a=t;;a=a.parentNode){if(a==this.dom){i=!1;break}if(a.previousSibling)break}if(i==null&&n==t.childNodes.length)for(let a=t;;a=a.parentNode){if(a==this.dom){i=!0;break}if(a.nextSibling)break}}return i??r>0?this.posAtEnd:this.posAtStart}nearestDesc(t,n=!1){for(let r=!0,i=t;i;i=i.parentNode){let a=this.getDesc(i),s;if(a&&(!n||a.node))if(r&&(s=a.nodeDOM)&&!(s.nodeType==1?s.contains(t.nodeType==1?t:t.parentNode):s==t))r=!1;else return a}}getDesc(t){let n=t.pmViewDesc;for(let r=n;r;r=r.parent)if(r==this)return n}posFromDOM(t,n,r){for(let i=t;i;i=i.parentNode){let a=this.getDesc(i);if(a)return a.localPosFromDOM(t,n,r)}return-1}descAt(t){for(let n=0,r=0;n<this.children.length;n++){let i=this.children[n],a=r+i.size;if(r==t&&a!=r){for(;!i.border&&i.children.length;)for(let s=0;s<i.children.length;s++){let u=i.children[s];if(u.size){i=u;break}}return i}if(t<a)return i.descAt(t-r-i.border);r=a}}domFromPos(t,n){if(!this.contentDOM)return{node:this.dom,offset:0,atom:t+1};let r=0,i=0;for(let a=0;r<this.children.length;r++){let s=this.children[r],u=a+s.size;if(u>t||s instanceof nM){i=t-a;break}a=u}if(i)return this.children[r].domFromPos(i-this.children[r].border,n);for(let a;r&&!(a=this.children[r-1]).size&&a instanceof tM&&a.side>=0;r--);if(n<=0){let a,s=!0;for(;a=r?this.children[r-1]:null,!(!a||a.dom.parentNode==this.contentDOM);r--,s=!1);return a&&n&&s&&!a.border&&!a.domAtom?a.domFromPos(a.size,n):{node:this.contentDOM,offset:a?en(a.dom)+1:0}}else{let a,s=!0;for(;a=r<this.children.length?this.children[r]:null,!(!a||a.dom.parentNode==this.contentDOM);r++,s=!1);return a&&s&&!a.border&&!a.domAtom?a.domFromPos(0,n):{node:this.contentDOM,offset:a?en(a.dom):this.contentDOM.childNodes.length}}}parseRange(t,n,r=0){if(this.children.length==0)return{node:this.contentDOM,from:t,to:n,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let i=-1,a=-1;for(let s=r,u=0;;u++){let c=this.children[u],p=s+c.size;if(i==-1&&t<=p){let f=s+c.border;if(t>=f&&n<=p-c.border&&c.node&&c.contentDOM&&this.contentDOM.contains(c.contentDOM))return c.parseRange(t,n,f);t=s;for(let m=u;m>0;m--){let g=this.children[m-1];if(g.size&&g.dom.parentNode==this.contentDOM&&!g.emptyChildAt(1)){i=en(g.dom)+1;break}t-=g.size}i==-1&&(i=0)}if(i>-1&&(p>n||u==this.children.length-1)){n=p;for(let f=u+1;f<this.children.length;f++){let m=this.children[f];if(m.size&&m.dom.parentNode==this.contentDOM&&!m.emptyChildAt(-1)){a=en(m.dom);break}n+=m.size}a==-1&&(a=this.contentDOM.childNodes.length);break}s=p}return{node:this.contentDOM,from:t,to:n,fromOffset:i,toOffset:a}}emptyChildAt(t){if(this.border||!this.contentDOM||!this.children.length)return!1;let n=this.children[t<0?0:this.children.length-1];return n.size==0||n.emptyChildAt(t)}domAfterPos(t){let{node:n,offset:r}=this.domFromPos(t,0);if(n.nodeType!=1||r==n.childNodes.length)throw new RangeError("No node after pos "+t);return n.childNodes[r]}setSelection(t,n,r,i=!1){let a=Math.min(t,n),s=Math.max(t,n);for(let b=0,S=0;b<this.children.length;b++){let k=this.children[b],v=S+k.size;if(a>S&&s<v)return k.setSelection(t-S-k.border,n-S-k.border,r,i);S=v}let u=this.domFromPos(t,t?-1:1),c=n==t?u:this.domFromPos(n,n?-1:1),p=r.root.getSelection(),f=r.domSelectionRange(),m=!1;if((dr||un)&&t==n){let{node:b,offset:S}=u;if(b.nodeType==3){if(m=!!(S&&b.nodeValue[S-1]==`
|
|
91
|
+
`),m&&S==b.nodeValue.length)for(let k=b,v;k;k=k.parentNode){if(v=k.nextSibling){v.nodeName=="BR"&&(u=c={node:v.parentNode,offset:en(v)+1});break}let w=k.pmViewDesc;if(w&&w.node&&w.node.isBlock)break}}else{let k=b.childNodes[S-1];m=k&&(k.nodeName=="BR"||k.contentEditable=="false")}}if(dr&&f.focusNode&&f.focusNode!=c.node&&f.focusNode.nodeType==1){let b=f.focusNode.childNodes[f.focusOffset];b&&b.contentEditable=="false"&&(i=!0)}if(!(i||m&&un)&&So(u.node,u.offset,f.anchorNode,f.anchorOffset)&&So(c.node,c.offset,f.focusNode,f.focusOffset))return;let g=!1;if((p.extend||t==n)&&!(m&&dr)){p.collapse(u.node,u.offset);try{t!=n&&p.extend(c.node,c.offset),g=!0}catch{}}if(!g){if(t>n){let S=u;u=c,c=S}let b=document.createRange();b.setEnd(c.node,c.offset),b.setStart(u.node,u.offset),p.removeAllRanges(),p.addRange(b)}}ignoreMutation(t){return!this.contentDOM&&t.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(t,n){for(let r=0,i=0;i<this.children.length;i++){let a=this.children[i],s=r+a.size;if(r==s?t<=s&&n>=r:t<s&&n>r){let u=r+a.border,c=s-a.border;if(t>=u&&n<=c){this.dirty=t==r||n==s?ro:z_,t==u&&n==c&&(a.contentLost||a.dom.parentNode!=this.contentDOM)?a.dirty=jr:a.markDirty(t-u,n-u);return}else a.dirty=a.dom==a.contentDOM&&a.dom.parentNode==this.contentDOM&&!a.children.length?ro:jr}r=s}this.dirty=ro}markParentsDirty(){let t=1;for(let n=this.parent;n;n=n.parent,t++){let r=t==1?ro:z_;n.dirty<r&&(n.dirty=r)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(t){return!1}}class tM extends fc{constructor(t,n,r,i){let a,s=n.type.toDOM;if(typeof s=="function"&&(s=s(r,()=>{if(!a)return i;if(a.parent)return a.parent.posBeforeChild(a)})),!n.type.spec.raw){if(s.nodeType!=1){let u=document.createElement("span");u.appendChild(s),s=u}s.contentEditable="false",s.classList.add("ProseMirror-widget")}super(t,[],s,null),this.widget=n,this.widget=n,a=this}matchesWidget(t){return this.dirty==pr&&t.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(t){let n=this.widget.spec.stopEvent;return n?n(t):!1}ignoreMutation(t){return t.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}}class t9 extends fc{constructor(t,n,r,i){super(t,[],n,null),this.textDOM=r,this.text=i}get size(){return this.text.length}localPosFromDOM(t,n){return t!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(t){return{node:this.textDOM,offset:t}}ignoreMutation(t){return t.type==="characterData"&&t.target.nodeValue==t.oldValue}}class ko extends fc{constructor(t,n,r,i,a){super(t,[],r,i),this.mark=n,this.spec=a}static create(t,n,r,i){let a=i.nodeViews[n.type.name],s=a&&a(n,i,r);return(!s||!s.dom)&&(s=Co.renderSpec(document,n.type.spec.toDOM(n,r),null,n.attrs)),new ko(t,n,s.dom,s.contentDOM||s.dom,s)}parseRule(){return this.dirty&jr||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(t){return this.dirty!=jr&&this.mark.eq(t)}markDirty(t,n){if(super.markDirty(t,n),this.dirty!=pr){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty<this.dirty&&(r.dirty=this.dirty),this.dirty=pr}}slice(t,n,r){let i=ko.create(this.parent,this.mark,!0,r),a=this.children,s=this.size;n<s&&(a=Cy(a,n,s,r)),t>0&&(a=Cy(a,0,t,r));for(let u=0;u<a.length;u++)a[u].parent=i;return i.children=a,i}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class ya extends fc{constructor(t,n,r,i,a,s,u,c,p){super(t,[],a,s),this.node=n,this.outerDeco=r,this.innerDeco=i,this.nodeDOM=u}static create(t,n,r,i,a,s){let u=a.nodeViews[n.type.name],c,p=u&&u(n,a,()=>{if(!c)return s;if(c.parent)return c.parent.posBeforeChild(c)},r,i),f=p&&p.dom,m=p&&p.contentDOM;if(n.isText){if(!f)f=document.createTextNode(n.text);else if(f.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else f||({dom:f,contentDOM:m}=Co.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!m&&!n.isText&&f.nodeName!="BR"&&(f.hasAttribute("contenteditable")||(f.contentEditable="false"),n.type.spec.draggable&&(f.draggable=!0));let g=f;return f=aM(f,r,n),p?c=new n9(t,n,r,i,f,m||null,g,p,a,s+1):n.isText?new Zf(t,n,r,i,f,g,a):new ya(t,n,r,i,f,m||null,g,a,s+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let t={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(t.preserveWhitespace="full"),!this.contentDOM)t.getContent=()=>this.node.content;else if(!this.contentLost)t.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let r=this.children[n];if(this.dom.contains(r.dom.parentNode)){t.contentElement=r.dom.parentNode;break}}t.contentElement||(t.getContent=()=>ue.empty)}return t}matchesNode(t,n,r){return this.dirty==pr&&t.eq(this.node)&&Dp(n,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(t,n){let r=this.node.inlineContent,i=n,a=t.composing?this.localCompositionInfo(t,n):null,s=a&&a.pos>-1?a:null,u=a&&a.pos<0,c=new i9(this,s&&s.node,t);s9(this.node,this.innerDeco,(p,f,m)=>{p.spec.marks?c.syncToMarks(p.spec.marks,r,t,f):p.type.side>=0&&!m&&c.syncToMarks(f==this.node.childCount?ut.none:this.node.child(f).marks,r,t,f),c.placeWidget(p,t,i)},(p,f,m,g)=>{c.syncToMarks(p.marks,r,t,g);let b;c.findNodeMatch(p,f,m,g)||u&&t.state.selection.from>i&&t.state.selection.to<i+p.nodeSize&&(b=c.findIndexWithChild(a.node))>-1&&c.updateNodeAt(p,f,m,b,t)||c.updateNextNode(p,f,m,t,g,i)||c.addNode(p,f,m,t,i),i+=p.nodeSize}),c.syncToMarks([],r,t,0),this.node.isTextblock&&c.addTextblockHacks(),c.destroyRest(),(c.changed||this.dirty==ro)&&(s&&this.protectLocalComposition(t,s),rM(this.contentDOM,this.children,t),$s&&l9(this.dom))}localCompositionInfo(t,n){let{from:r,to:i}=t.state.selection;if(!(t.state.selection instanceof Ne)||r<n||i>n+this.node.content.size)return null;let a=t.input.compositionNode;if(!a||!this.dom.contains(a.parentNode))return null;if(this.node.inlineContent){let s=a.nodeValue,u=u9(this.node.content,s,r-n,i-n);return u<0?null:{node:a,pos:u,text:s}}else return{node:a,pos:-1,text:""}}protectLocalComposition(t,{node:n,pos:r,text:i}){if(this.getDesc(n))return;let a=n;for(;a.parentNode!=this.contentDOM;a=a.parentNode){for(;a.previousSibling;)a.parentNode.removeChild(a.previousSibling);for(;a.nextSibling;)a.parentNode.removeChild(a.nextSibling);a.pmViewDesc&&(a.pmViewDesc=void 0)}let s=new t9(this,a,n,i);t.input.compositionNodes.push(s),this.children=Cy(this.children,r,r+i.length,t,s)}update(t,n,r,i){return this.dirty==jr||!t.sameMarkup(this.node)?!1:(this.updateInner(t,n,r,i),!0)}updateInner(t,n,r,i){this.updateOuterDeco(n),this.node=t,this.innerDeco=r,this.contentDOM&&this.updateChildren(i,this.posAtStart),this.dirty=pr}updateOuterDeco(t){if(Dp(t,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=iM(this.dom,this.nodeDOM,Ay(this.outerDeco,this.node,n),Ay(t,this.node,n)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=t}selectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.nodeDOM.draggable=!0))}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.nodeDOM.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function U_(e,t,n,r,i){aM(r,t,e);let a=new ya(void 0,e,t,n,r,r,r,i,0);return a.contentDOM&&a.updateChildren(i,0),a}class Zf extends ya{constructor(t,n,r,i,a,s,u){super(t,n,r,i,a,null,s,u,0)}parseRule(){let t=this.nodeDOM.parentNode;for(;t&&t!=this.dom&&!t.pmIsDeco;)t=t.parentNode;return{skip:t||!0}}update(t,n,r,i){return this.dirty==jr||this.dirty!=pr&&!this.inParent()||!t.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=pr||t.text!=this.node.text)&&t.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=t.text,i.trackWrites==this.nodeDOM&&(i.trackWrites=null)),this.node=t,this.dirty=pr,!0)}inParent(){let t=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==t)return!0;return!1}domFromPos(t){return{node:this.nodeDOM,offset:t}}localPosFromDOM(t,n,r){return t==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(t,n,r)}ignoreMutation(t){return t.type!="characterData"&&t.type!="selection"}slice(t,n,r){let i=this.node.cut(t,n),a=document.createTextNode(i.text);return new Zf(this.parent,i,this.outerDeco,this.innerDeco,a,a,r)}markDirty(t,n){super.markDirty(t,n),this.dom!=this.nodeDOM&&(t==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=jr)}get domAtom(){return!1}isText(t){return this.node.text==t}}class nM extends fc{parseRule(){return{ignore:!0}}matchesHack(t){return this.dirty==pr&&this.dom.nodeName==t}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class n9 extends ya{constructor(t,n,r,i,a,s,u,c,p,f){super(t,n,r,i,a,s,u,p,f),this.spec=c}update(t,n,r,i){if(this.dirty==jr)return!1;if(this.spec.update&&(this.node.type==t.type||this.spec.multiType)){let a=this.spec.update(t,n,r);return a&&this.updateInner(t,n,r,i),a}else return!this.contentDOM&&!t.isLeaf?!1:super.update(t,n,r,i)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(t,n,r,i){this.spec.setSelection?this.spec.setSelection(t,n,r.root):super.setSelection(t,n,r,i)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(t){return this.spec.stopEvent?this.spec.stopEvent(t):!1}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}}function rM(e,t,n){let r=e.firstChild,i=!1;for(let a=0;a<t.length;a++){let s=t[a],u=s.dom;if(u.parentNode==e){for(;u!=r;)r=P_(r),i=!0;r=r.nextSibling}else i=!0,e.insertBefore(u,r);if(s instanceof ko){let c=r?r.previousSibling:e.lastChild;rM(s.contentDOM,s.children,n),r=c?c.nextSibling:e.firstChild}}for(;r;)r=P_(r),i=!0;i&&n.trackWrites==e&&(n.trackWrites=null)}const wu=function(e){e&&(this.nodeName=e)};wu.prototype=Object.create(null);const io=[new wu];function Ay(e,t,n){if(e.length==0)return io;let r=n?io[0]:new wu,i=[r];for(let a=0;a<e.length;a++){let s=e[a].type.attrs;if(s){s.nodeName&&i.push(r=new wu(s.nodeName));for(let u in s){let c=s[u];c!=null&&(n&&i.length==1&&i.push(r=new wu(t.isInline?"span":"div")),u=="class"?r.class=(r.class?r.class+" ":"")+c:u=="style"?r.style=(r.style?r.style+";":"")+c:u!="nodeName"&&(r[u]=c))}}}return i}function iM(e,t,n,r){if(n==io&&r==io)return t;let i=t;for(let a=0;a<r.length;a++){let s=r[a],u=n[a];if(a){let c;u&&u.nodeName==s.nodeName&&i!=e&&(c=i.parentNode)&&c.nodeName.toLowerCase()==s.nodeName||(c=document.createElement(s.nodeName),c.pmIsDeco=!0,c.appendChild(i),u=io[0]),i=c}r9(i,u||io[0],s)}return i}function r9(e,t,n){for(let r in t)r!="class"&&r!="style"&&r!="nodeName"&&!(r in n)&&e.removeAttribute(r);for(let r in n)r!="class"&&r!="style"&&r!="nodeName"&&n[r]!=t[r]&&e.setAttribute(r,n[r]);if(t.class!=n.class){let r=t.class?t.class.split(" ").filter(Boolean):[],i=n.class?n.class.split(" ").filter(Boolean):[];for(let a=0;a<r.length;a++)i.indexOf(r[a])==-1&&e.classList.remove(r[a]);for(let a=0;a<i.length;a++)r.indexOf(i[a])==-1&&e.classList.add(i[a]);e.classList.length==0&&e.removeAttribute("class")}if(t.style!=n.style){if(t.style){let r=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,i;for(;i=r.exec(t.style);)e.style.removeProperty(i[1])}n.style&&(e.style.cssText+=n.style)}}function aM(e,t,n){return iM(e,e,io,Ay(t,n,e.nodeType!=1))}function Dp(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].type.eq(t[n].type))return!1;return!0}function P_(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}class i9{constructor(t,n,r){this.lock=n,this.view=r,this.index=0,this.stack=[],this.changed=!1,this.top=t,this.preMatch=a9(t.node.content,t)}destroyBetween(t,n){if(t!=n){for(let r=t;r<n;r++)this.top.children[r].destroy();this.top.children.splice(t,n-t),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(t,n,r,i){let a=0,s=this.stack.length>>1,u=Math.min(s,t.length);for(;a<u&&(a==s-1?this.top:this.stack[a+1<<1]).matchesMark(t[a])&&t[a].type.spec.spanning!==!1;)a++;for(;a<s;)this.destroyRest(),this.top.dirty=pr,this.index=this.stack.pop(),this.top=this.stack.pop(),s--;for(;s<t.length;){this.stack.push(this.top,this.index+1);let c=-1,p=this.top.children.length;i<this.preMatch.index&&(p=Math.min(this.index+3,p));for(let f=this.index;f<p;f++){let m=this.top.children[f];if(m.matchesMark(t[s])&&!this.isLocked(m.dom)){c=f;break}}if(c>-1)c>this.index&&(this.changed=!0,this.destroyBetween(this.index,c)),this.top=this.top.children[this.index];else{let f=ko.create(this.top,t[s],n,r);this.top.children.splice(this.index,0,f),this.top=f,this.changed=!0}this.index=0,s++}}findNodeMatch(t,n,r,i){let a=-1,s;if(i>=this.preMatch.index&&(s=this.preMatch.matches[i-this.preMatch.index]).parent==this.top&&s.matchesNode(t,n,r))a=this.top.children.indexOf(s,this.index);else for(let u=this.index,c=Math.min(this.top.children.length,u+5);u<c;u++){let p=this.top.children[u];if(p.matchesNode(t,n,r)&&!this.preMatch.matched.has(p)){a=u;break}}return a<0?!1:(this.destroyBetween(this.index,a),this.index++,!0)}updateNodeAt(t,n,r,i,a){let s=this.top.children[i];return s.dirty==jr&&s.dom==s.contentDOM&&(s.dirty=ro),s.update(t,n,r,a)?(this.destroyBetween(this.index,i),this.index++,!0):!1}findIndexWithChild(t){for(;;){let n=t.parentNode;if(!n)return-1;if(n==this.top.contentDOM){let r=t.pmViewDesc;if(r){for(let i=this.index;i<this.top.children.length;i++)if(this.top.children[i]==r)return i}return-1}t=n}}updateNextNode(t,n,r,i,a,s){for(let u=this.index;u<this.top.children.length;u++){let c=this.top.children[u];if(c instanceof ya){let p=this.preMatch.matched.get(c);if(p!=null&&p!=a)return!1;let f=c.dom,m,g=this.isLocked(f)&&!(t.isText&&c.node&&c.node.isText&&c.nodeDOM.nodeValue==t.text&&c.dirty!=jr&&Dp(n,c.outerDeco));if(!g&&c.update(t,n,r,i))return this.destroyBetween(this.index,u),c.dom!=f&&(this.changed=!0),this.index++,!0;if(!g&&(m=this.recreateWrapper(c,t,n,r,i,s)))return this.destroyBetween(this.index,u),this.top.children[this.index]=m,m.contentDOM&&(m.dirty=ro,m.updateChildren(i,s+1),m.dirty=pr),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(t,n,r,i,a,s){if(t.dirty||n.isAtom||!t.children.length||!t.node.content.eq(n.content)||!Dp(r,t.outerDeco)||!i.eq(t.innerDeco))return null;let u=ya.create(this.top,n,r,i,a,s);if(u.contentDOM){u.children=t.children,t.children=[];for(let c of u.children)c.parent=u}return t.destroy(),u}addNode(t,n,r,i,a){let s=ya.create(this.top,t,n,r,i,a);s.contentDOM&&s.updateChildren(i,a+1),this.top.children.splice(this.index++,0,s),this.changed=!0}placeWidget(t,n,r){let i=this.index<this.top.children.length?this.top.children[this.index]:null;if(i&&i.matchesWidget(t)&&(t==i.widget||!i.widget.type.toDOM.parentNode))this.index++;else{let a=new tM(this.top,t,n,r);this.top.children.splice(this.index++,0,a),this.changed=!0}}addTextblockHacks(){let t=this.top.children[this.index-1],n=this.top;for(;t instanceof ko;)n=t,t=n.children[n.children.length-1];(!t||!(t instanceof Zf)||/\n$/.test(t.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(t.node.text))&&((un||nn)&&t&&t.dom.contentEditable=="false"&&this.addHackNode("IMG",n),this.addHackNode("BR",this.top))}addHackNode(t,n){if(n==this.top&&this.index<n.children.length&&n.children[this.index].matchesHack(t))this.index++;else{let r=document.createElement(t);t=="IMG"&&(r.className="ProseMirror-separator",r.alt=""),t=="BR"&&(r.className="ProseMirror-trailingBreak");let i=new nM(this.top,[],r,null);n!=this.top?n.children.push(i):n.children.splice(this.index++,0,i),this.changed=!0}}isLocked(t){return this.lock&&(t==this.lock||t.nodeType==1&&t.contains(this.lock.parentNode))}}function a9(e,t){let n=t,r=n.children.length,i=e.childCount,a=new Map,s=[];e:for(;i>0;){let u;for(;;)if(r){let p=n.children[r-1];if(p instanceof ko)n=p,r=p.children.length;else{u=p,r--;break}}else{if(n==t)break e;r=n.parent.children.indexOf(n),n=n.parent}let c=u.node;if(c){if(c!=e.child(i-1))break;--i,a.set(u,i),s.push(u)}}return{index:i,matched:a,matches:s.reverse()}}function o9(e,t){return e.type.side-t.type.side}function s9(e,t,n,r){let i=t.locals(e),a=0;if(i.length==0){for(let p=0;p<e.childCount;p++){let f=e.child(p);r(f,i,t.forChild(a,f),p),a+=f.nodeSize}return}let s=0,u=[],c=null;for(let p=0;;){let f,m;for(;s<i.length&&i[s].to==a;){let v=i[s++];v.widget&&(f?(m||(m=[f])).push(v):f=v)}if(f)if(m){m.sort(o9);for(let v=0;v<m.length;v++)n(m[v],p,!!c)}else n(f,p,!!c);let g,b;if(c)b=-1,g=c,c=null;else if(p<e.childCount)b=p,g=e.child(p++);else break;for(let v=0;v<u.length;v++)u[v].to<=a&&u.splice(v--,1);for(;s<i.length&&i[s].from<=a&&i[s].to>a;)u.push(i[s++]);let S=a+g.nodeSize;if(g.isText){let v=S;s<i.length&&i[s].from<v&&(v=i[s].from);for(let w=0;w<u.length;w++)u[w].to<v&&(v=u[w].to);v<S&&(c=g.cut(v-a),g=g.cut(0,v-a),S=v,b=-1)}else for(;s<i.length&&i[s].to<S;)s++;let k=g.isInline&&!g.isLeaf?u.filter(v=>!v.inline):u.slice();r(g,k,t.forChild(a,g),b),a=S}}function l9(e){if(e.nodeName=="UL"||e.nodeName=="OL"){let t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}function u9(e,t,n,r){for(let i=0,a=0;i<e.childCount&&a<=r;){let s=e.child(i++),u=a;if(a+=s.nodeSize,!s.isText)continue;let c=s.text;for(;i<e.childCount;){let p=e.child(i++);if(a+=p.nodeSize,!p.isText)break;c+=p.text}if(a>=n){if(a>=r&&c.slice(r-t.length-u,r-u)==t)return r-t.length;let p=u<r?c.lastIndexOf(t,r-u-1):-1;if(p>=0&&p+t.length+u>=n)return u+p;if(n==r&&c.length>=r+t.length-u&&c.slice(r-u,r-u+t.length)==t)return r}}return-1}function Cy(e,t,n,r,i){let a=[];for(let s=0,u=0;s<e.length;s++){let c=e[s],p=u,f=u+=c.size;p>=n||f<=t?a.push(c):(p<t&&a.push(c.slice(0,t-p,r)),i&&(a.push(i),i=void 0),f>n&&a.push(c.slice(n-p,c.size,r)))}return a}function FT(e,t=null){let n=e.domSelectionRange(),r=e.state.doc;if(!n.focusNode)return null;let i=e.docView.nearestDesc(n.focusNode),a=i&&i.size==0,s=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(s<0)return null;let u=r.resolve(s),c,p;if(Xf(n)){for(c=s;i&&!i.node;)i=i.parent;let m=i.node;if(i&&m.isAtom&&xe.isSelectable(m)&&i.parent&&!(m.isInline&&BW(n.focusNode,n.focusOffset,i.dom))){let g=i.posBefore;p=new xe(s==g?u:r.resolve(g))}}else{if(n instanceof e.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let m=s,g=s;for(let b=0;b<n.rangeCount;b++){let S=n.getRangeAt(b);m=Math.min(m,e.docView.posFromDOM(S.startContainer,S.startOffset,1)),g=Math.max(g,e.docView.posFromDOM(S.endContainer,S.endOffset,-1))}if(m<0)return null;[c,s]=g==e.state.selection.anchor?[g,m]:[m,g],u=r.resolve(s)}else c=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(c<0)return null}let f=r.resolve(c);if(!p){let m=t=="pointer"||e.state.selection.head<u.pos&&!a?1:-1;p=zT(e,f,u,m)}return p}function oM(e){return e.editable?e.hasFocus():lM(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function vi(e,t=!1){let n=e.state.selection;if(sM(e,n),!!oM(e)){if(!t&&e.input.mouseDown&&e.input.mouseDown.allowDefault&&nn){let r=e.domSelectionRange(),i=e.domObserver.currentSelection;if(r.anchorNode&&i.anchorNode&&So(r.anchorNode,r.anchorOffset,i.anchorNode,i.anchorOffset)){e.input.mouseDown.delayedSelectionSync=!0,e.domObserver.setCurSelection();return}}if(e.domObserver.disconnectSelection(),e.cursorWrapper)d9(e);else{let{anchor:r,head:i}=n,a,s;$_&&!(n instanceof Ne)&&(n.$from.parent.inlineContent||(a=H_(e,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(s=H_(e,n.to))),e.docView.setSelection(r,i,e,t),$_&&(a&&j_(a),s&&j_(s)),n.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&c9(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}const $_=un||nn&&WL<63;function H_(e,t){let{node:n,offset:r}=e.docView.domFromPos(t,0),i=r<n.childNodes.length?n.childNodes[r]:null,a=r?n.childNodes[r-1]:null;if(un&&i&&i.contentEditable=="false")return Eb(i);if((!i||i.contentEditable=="false")&&(!a||a.contentEditable=="false")){if(i)return Eb(i);if(a)return Eb(a)}}function Eb(e){return e.contentEditable="true",un&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function j_(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function c9(e){let t=e.dom.ownerDocument;t.removeEventListener("selectionchange",e.input.hideSelectionGuard);let n=e.domSelectionRange(),r=n.anchorNode,i=n.anchorOffset;t.addEventListener("selectionchange",e.input.hideSelectionGuard=()=>{(n.anchorNode!=r||n.anchorOffset!=i)&&(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout(()=>{(!oM(e)||e.state.selection.visible)&&e.dom.classList.remove("ProseMirror-hideselection")},20))})}function d9(e){let t=e.domSelection();if(!t)return;let n=e.cursorWrapper.dom,r=n.nodeName=="IMG";r?t.collapse(n.parentNode,en(n)+1):t.collapse(n,0),!r&&!e.state.selection.visible&&In&&ba<=11&&(n.disabled=!0,n.disabled=!1)}function sM(e,t){if(t instanceof xe){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(G_(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else G_(e)}function G_(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function zT(e,t,n,r){return e.someProp("createSelectionBetween",i=>i(e,t,n))||Ne.between(t,n,r)}function V_(e){return e.editable&&!e.hasFocus()?!1:lM(e)}function lM(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(t.anchorNode.nodeType==3?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(t.focusNode.nodeType==3?t.focusNode.parentNode:t.focusNode))}catch{return!1}}function p9(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return So(t.node,t.offset,n.anchorNode,n.anchorOffset)}function Ry(e,t){let{$anchor:n,$head:r}=e.selection,i=t>0?n.max(r):n.min(r),a=i.parent.inlineContent?i.depth?e.doc.resolve(t>0?i.after():i.before()):null:i;return a&&Fe.findFrom(a,t)}function oa(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function q_(e,t,n){let r=e.state.selection;if(r instanceof Ne)if(n.indexOf("s")>-1){let{$head:i}=r,a=i.textOffset?null:t<0?i.nodeBefore:i.nodeAfter;if(!a||a.isText||!a.isLeaf)return!1;let s=e.state.doc.resolve(i.pos+a.nodeSize*(t<0?-1:1));return oa(e,new Ne(r.$anchor,s))}else if(r.empty){if(e.endOfTextblock(t>0?"forward":"backward")){let i=Ry(e.state,t);return i&&i instanceof xe?oa(e,i):!1}else if(!(lr&&n.indexOf("m")>-1)){let i=r.$head,a=i.textOffset?null:t<0?i.nodeBefore:i.nodeAfter,s;if(!a||a.isText)return!1;let u=t<0?i.pos-a.nodeSize:i.pos;return a.isAtom||(s=e.docView.descAt(u))&&!s.contentDOM?xe.isSelectable(a)?oa(e,new xe(t<0?e.state.doc.resolve(i.pos-a.nodeSize):i)):pc?oa(e,new Ne(e.state.doc.resolve(t<0?u:u+a.nodeSize))):!1:!1}}else return!1;else{if(r instanceof xe&&r.node.isInline)return oa(e,new Ne(t>0?r.$to:r.$from));{let i=Ry(e.state,t);return i?oa(e,i):!1}}}function Lp(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function Tu(e,t){let n=e.pmViewDesc;return n&&n.size==0&&(t<0||e.nextSibling||e.nodeName!="BR")}function Ts(e,t){return t<0?f9(e):h9(e)}function f9(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i,a,s=!1;for(dr&&n.nodeType==1&&r<Lp(n)&&Tu(n.childNodes[r],-1)&&(s=!0);;)if(r>0){if(n.nodeType!=1)break;{let u=n.childNodes[r-1];if(Tu(u,-1))i=n,a=--r;else if(u.nodeType==3)n=u,r=n.nodeValue.length;else break}}else{if(uM(n))break;{let u=n.previousSibling;for(;u&&Tu(u,-1);)i=n.parentNode,a=en(u),u=u.previousSibling;if(u)n=u,r=Lp(n);else{if(n=n.parentNode,n==e.dom)break;r=0}}}s?Ny(e,n,r):i&&Ny(e,i,a)}function h9(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i=Lp(n),a,s;for(;;)if(r<i){if(n.nodeType!=1)break;let u=n.childNodes[r];if(Tu(u,1))a=n,s=++r;else break}else{if(uM(n))break;{let u=n.nextSibling;for(;u&&Tu(u,1);)a=u.parentNode,s=en(u)+1,u=u.nextSibling;if(u)n=u,r=0,i=Lp(n);else{if(n=n.parentNode,n==e.dom)break;r=i=0}}}a&&Ny(e,a,s)}function uM(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function m9(e,t){for(;e&&t==e.childNodes.length&&!dc(e);)t=en(e)+1,e=e.parentNode;for(;e&&t<e.childNodes.length;){let n=e.childNodes[t];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;e=n,t=0}}function g9(e,t){for(;e&&!t&&!dc(e);)t=en(e),e=e.parentNode;for(;e&&t;){let n=e.childNodes[t-1];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;e=n,t=e.childNodes.length}}function Ny(e,t,n){if(t.nodeType!=3){let a,s;(s=m9(t,n))?(t=s,n=0):(a=g9(t,n))&&(t=a,n=a.nodeValue.length)}let r=e.domSelection();if(!r)return;if(Xf(r)){let a=document.createRange();a.setEnd(t,n),a.setStart(t,n),r.removeAllRanges(),r.addRange(a)}else r.extend&&r.extend(t,n);e.domObserver.setCurSelection();let{state:i}=e;setTimeout(()=>{e.state==i&&vi(e)},50)}function W_(e,t){let n=e.state.doc.resolve(t);if(!(nn||YL)&&n.parent.inlineContent){let i=e.coordsAtPos(t);if(t>n.start()){let a=e.coordsAtPos(t-1),s=(a.top+a.bottom)/2;if(s>i.top&&s<i.bottom&&Math.abs(a.left-i.left)>1)return a.left<i.left?"ltr":"rtl"}if(t<n.end()){let a=e.coordsAtPos(t+1),s=(a.top+a.bottom)/2;if(s>i.top&&s<i.bottom&&Math.abs(a.left-i.left)>1)return a.left>i.left?"ltr":"rtl"}}return getComputedStyle(e.dom).direction=="rtl"?"rtl":"ltr"}function Y_(e,t,n){let r=e.state.selection;if(r instanceof Ne&&!r.empty||n.indexOf("s")>-1||lr&&n.indexOf("m")>-1)return!1;let{$from:i,$to:a}=r;if(!i.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let s=Ry(e.state,t);if(s&&s instanceof xe)return oa(e,s)}if(!i.parent.inlineContent){let s=t<0?i:a,u=r instanceof Yn?Fe.near(s,t):Fe.findFrom(s,t);return u?oa(e,u):!1}return!1}function K_(e,t){if(!(e.state.selection instanceof Ne))return!0;let{$head:n,$anchor:r,empty:i}=e.state.selection;if(!n.sameParent(r))return!0;if(!i)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let a=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(a&&!a.isText){let s=e.state.tr;return t<0?s.delete(n.pos-a.nodeSize,n.pos):s.delete(n.pos,n.pos+a.nodeSize),e.dispatch(s),!0}return!1}function X_(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function b9(e){if(!un||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&t.nodeType==1&&n==0&&t.firstChild&&t.firstChild.contentEditable=="false"){let r=t.firstChild;X_(e,r,"true"),setTimeout(()=>X_(e,r,"false"),20)}return!1}function y9(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}function E9(e,t){let n=t.keyCode,r=y9(t);if(n==8||lr&&n==72&&r=="c")return K_(e,-1)||Ts(e,-1);if(n==46&&!t.shiftKey||lr&&n==68&&r=="c")return K_(e,1)||Ts(e,1);if(n==13||n==27)return!0;if(n==37||lr&&n==66&&r=="c"){let i=n==37?W_(e,e.state.selection.from)=="ltr"?-1:1:-1;return q_(e,i,r)||Ts(e,i)}else if(n==39||lr&&n==70&&r=="c"){let i=n==39?W_(e,e.state.selection.from)=="ltr"?1:-1:1;return q_(e,i,r)||Ts(e,i)}else{if(n==38||lr&&n==80&&r=="c")return Y_(e,-1,r)||Ts(e,-1);if(n==40||lr&&n==78&&r=="c")return b9(e)||Y_(e,1,r)||Ts(e,1);if(r==(lr?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function UT(e,t){e.someProp("transformCopied",b=>{t=b(t,e)});let n=[],{content:r,openStart:i,openEnd:a}=t;for(;i>1&&a>1&&r.childCount==1&&r.firstChild.childCount==1;){i--,a--;let b=r.firstChild;n.push(b.type.name,b.attrs!=b.type.defaultAttrs?b.attrs:null),r=b.content}let s=e.someProp("clipboardSerializer")||Co.fromSchema(e.state.schema),u=mM(),c=u.createElement("div");c.appendChild(s.serializeFragment(r,{document:u}));let p=c.firstChild,f,m=0;for(;p&&p.nodeType==1&&(f=hM[p.nodeName.toLowerCase()]);){for(let b=f.length-1;b>=0;b--){let S=u.createElement(f[b]);for(;c.firstChild;)S.appendChild(c.firstChild);c.appendChild(S),m++}p=c.firstChild}p&&p.nodeType==1&&p.setAttribute("data-pm-slice",`${i} ${a}${m?` -${m}`:""} ${JSON.stringify(n)}`);let g=e.someProp("clipboardTextSerializer",b=>b(t,e))||t.content.textBetween(0,t.content.size,`
|
|
92
|
+
|
|
93
|
+
`);return{dom:c,text:g,slice:t}}function cM(e,t,n,r,i){let a=i.parent.type.spec.code,s,u;if(!n&&!t)return null;let c=!!t&&(r||a||!n);if(c){if(e.someProp("transformPastedText",g=>{t=g(t,a||r,e)}),a)return u=new ge(ue.from(e.state.schema.text(t.replace(/\r\n?/g,`
|
|
94
|
+
`))),0,0),e.someProp("transformPasted",g=>{u=g(u,e,!0)}),u;let m=e.someProp("clipboardTextParser",g=>g(t,i,r,e));if(m)u=m;else{let g=i.marks(),{schema:b}=e.state,S=Co.fromSchema(b);s=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(k=>{let v=s.appendChild(document.createElement("p"));k&&v.appendChild(S.serializeNode(b.text(k,g)))})}}else e.someProp("transformPastedHTML",m=>{n=m(n,e)}),s=w9(n),pc&&T9(s);let p=s&&s.querySelector("[data-pm-slice]"),f=p&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(p.getAttribute("data-pm-slice")||"");if(f&&f[3])for(let m=+f[3];m>0;m--){let g=s.firstChild;for(;g&&g.nodeType!=1;)g=g.nextSibling;if(!g)break;s=g}if(u||(u=(e.someProp("clipboardParser")||e.someProp("domParser")||Si.fromSchema(e.state.schema)).parseSlice(s,{preserveWhitespace:!!(c||f),context:i,ruleFromNode(g){return g.nodeName=="BR"&&!g.nextSibling&&g.parentNode&&!S9.test(g.parentNode.nodeName)?{ignore:!0}:null}})),f)u=x9(Z_(u,+f[1],+f[2]),f[4]);else if(u=ge.maxOpen(k9(u.content,i),!0),u.openStart||u.openEnd){let m=0,g=0;for(let b=u.content.firstChild;m<u.openStart&&!b.type.spec.isolating;m++,b=b.firstChild);for(let b=u.content.lastChild;g<u.openEnd&&!b.type.spec.isolating;g++,b=b.lastChild);u=Z_(u,m,g)}return e.someProp("transformPasted",m=>{u=m(u,e,c)}),u}const S9=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function k9(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let i=t.node(n).contentMatchAt(t.index(n)),a,s=[];if(e.forEach(u=>{if(!s)return;let c=i.findWrapping(u.type),p;if(!c)return s=null;if(p=s.length&&a.length&&pM(c,a,u,s[s.length-1],0))s[s.length-1]=p;else{s.length&&(s[s.length-1]=fM(s[s.length-1],a.length));let f=dM(u,c);s.push(f),i=i.matchType(f.type),a=c}}),s)return ue.from(s)}return e}function dM(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,ue.from(e));return e}function pM(e,t,n,r,i){if(i<e.length&&i<t.length&&e[i]==t[i]){let a=pM(e,t,n,r.lastChild,i+1);if(a)return r.copy(r.content.replaceChild(r.childCount-1,a));if(r.contentMatchAt(r.childCount).matchType(i==e.length-1?n.type:e[i+1]))return r.copy(r.content.append(ue.from(dM(n,e,i+1))))}}function fM(e,t){if(t==0)return e;let n=e.content.replaceChild(e.childCount-1,fM(e.lastChild,t-1)),r=e.contentMatchAt(e.childCount).fillBefore(ue.empty,!0);return e.copy(n.append(r))}function _y(e,t,n,r,i,a){let s=t<0?e.firstChild:e.lastChild,u=s.content;return e.childCount>1&&(a=0),i<r-1&&(u=_y(u,t,n,r,i+1,a)),i>=n&&(u=t<0?s.contentMatchAt(0).fillBefore(u,a<=i).append(u):u.append(s.contentMatchAt(s.childCount).fillBefore(ue.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,s.copy(u))}function Z_(e,t,n){return t<e.openStart&&(e=new ge(_y(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new ge(_y(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}const hM={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let Q_=null;function mM(){return Q_||(Q_=document.implementation.createHTMLDocument("title"))}let Sb=null;function v9(e){let t=window.trustedTypes;return t?(Sb||(Sb=t.defaultPolicy||t.createPolicy("ProseMirrorClipboard",{createHTML:n=>n})),Sb.createHTML(e)):e}function w9(e){let t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=mM().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(e),i;if((i=r&&hM[r[1].toLowerCase()])&&(e=i.map(a=>"<"+a+">").join("")+e+i.map(a=>"</"+a+">").reverse().join("")),n.innerHTML=v9(e),i)for(let a=0;a<i.length;a++)n=n.querySelector(i[a])||n;return n}function T9(e){let t=e.querySelectorAll(nn?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<t.length;n++){let r=t[n];r.childNodes.length==1&&r.textContent==" "&&r.parentNode&&r.parentNode.replaceChild(e.ownerDocument.createTextNode(" "),r)}}function x9(e,t){if(!e.size)return e;let n=e.content.firstChild.type.schema,r;try{r=JSON.parse(t)}catch{return e}let{content:i,openStart:a,openEnd:s}=e;for(let u=r.length-2;u>=0;u-=2){let c=n.nodes[r[u]];if(!c||c.hasRequiredAttrs())break;i=ue.from(c.create(r[u+1],i)),a++,s++}return new ge(i,a,s)}const Sn={},kn={},A9={touchstart:!0,touchmove:!0};class C9{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.badSafariComposition=!1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function R9(e){for(let t in Sn){let n=Sn[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=r=>{_9(e,r)&&!PT(e,r)&&(e.editable||!(r.type in kn))&&n(e,r)},A9[t]?{passive:!0}:void 0)}un&&e.dom.addEventListener("input",()=>null),Oy(e)}function ha(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function N9(e){e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}function Oy(e){e.someProp("handleDOMEvents",t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=r=>PT(e,r))})}function PT(e,t){return e.someProp("handleDOMEvents",n=>{let r=n[t.type];return r?r(e,t)||t.defaultPrevented:!1})}function _9(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function O9(e,t){!PT(e,t)&&Sn[t.type]&&(e.editable||!(t.type in kn))&&Sn[t.type](e,t)}kn.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!bM(e,n)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(Ei&&nn&&n.keyCode==13)))if(n.keyCode!=229&&e.domObserver.forceFlush(),$s&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let r=Date.now();e.input.lastIOSEnter=r,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==r&&(e.someProp("handleKeyDown",i=>i(e,to(13,"Enter"))),e.input.lastIOSEnter=0)},200)}else e.someProp("handleKeyDown",r=>r(e,n))||E9(e,n)?n.preventDefault():ha(e,"key")};kn.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)};kn.keypress=(e,t)=>{let n=t;if(bM(e,n)||!n.charCode||n.ctrlKey&&!n.altKey||lr&&n.metaKey)return;if(e.someProp("handleKeyPress",i=>i(e,n))){n.preventDefault();return}let r=e.state.selection;if(!(r instanceof Ne)||!r.$from.sameParent(r.$to)){let i=String.fromCharCode(n.charCode),a=()=>e.state.tr.insertText(i).scrollIntoView();!/[\r\n]/.test(i)&&!e.someProp("handleTextInput",s=>s(e,r.$from.pos,r.$to.pos,i,a))&&e.dispatch(a()),n.preventDefault()}};function Qf(e){return{left:e.clientX,top:e.clientY}}function I9(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}function $T(e,t,n,r,i){if(r==-1)return!1;let a=e.state.doc.resolve(r);for(let s=a.depth+1;s>0;s--)if(e.someProp(t,u=>s>a.depth?u(e,n,a.nodeAfter,a.before(s),i,!0):u(e,n,a.node(s),a.before(s),i,!1)))return!0;return!1}function Ms(e,t,n){if(e.focused||e.focus(),e.state.selection.eq(t))return;let r=e.state.tr.setSelection(t);r.setMeta("pointer",!0),e.dispatch(r)}function D9(e,t){if(t==-1)return!1;let n=e.state.doc.resolve(t),r=n.nodeAfter;return r&&r.isAtom&&xe.isSelectable(r)?(Ms(e,new xe(n)),!0):!1}function L9(e,t){if(t==-1)return!1;let n=e.state.selection,r,i;n instanceof xe&&(r=n.node);let a=e.state.doc.resolve(t);for(let s=a.depth+1;s>0;s--){let u=s>a.depth?a.nodeAfter:a.node(s);if(xe.isSelectable(u)){r&&n.$from.depth>0&&s>=n.$from.depth&&a.before(n.$from.depth+1)==n.$from.pos?i=a.before(n.$from.depth):i=a.before(s);break}}return i!=null?(Ms(e,xe.create(e.state.doc,i)),!0):!1}function M9(e,t,n,r,i){return $T(e,"handleClickOn",t,n,r)||e.someProp("handleClick",a=>a(e,t,r))||(i?L9(e,n):D9(e,n))}function B9(e,t,n,r){return $T(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",i=>i(e,t,r))}function F9(e,t,n,r){return $T(e,"handleTripleClickOn",t,n,r)||e.someProp("handleTripleClick",i=>i(e,t,r))||z9(e,n,r)}function z9(e,t,n){if(n.button!=0)return!1;let r=e.state.doc;if(t==-1)return r.inlineContent?(Ms(e,Ne.create(r,0,r.content.size)),!0):!1;let i=r.resolve(t);for(let a=i.depth+1;a>0;a--){let s=a>i.depth?i.nodeAfter:i.node(a),u=i.before(a);if(s.inlineContent)Ms(e,Ne.create(r,u+1,u+1+s.content.size));else if(xe.isSelectable(s))Ms(e,xe.create(r,u));else continue;return!0}}function HT(e){return Mp(e)}const gM=lr?"metaKey":"ctrlKey";Sn.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=HT(e),i=Date.now(),a="singleClick";i-e.input.lastClick.time<500&&I9(n,e.input.lastClick)&&!n[gM]&&e.input.lastClick.button==n.button&&(e.input.lastClick.type=="singleClick"?a="doubleClick":e.input.lastClick.type=="doubleClick"&&(a="tripleClick")),e.input.lastClick={time:i,x:n.clientX,y:n.clientY,type:a,button:n.button};let s=e.posAtCoords(Qf(n));s&&(a=="singleClick"?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new U9(e,s,n,!!r)):(a=="doubleClick"?B9:F9)(e,s.pos,s.inside,n)?n.preventDefault():ha(e,"pointer"))};class U9{constructor(t,n,r,i){this.view=t,this.pos=n,this.event=r,this.flushed=i,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=t.state.doc,this.selectNode=!!r[gM],this.allowDefault=r.shiftKey;let a,s;if(n.inside>-1)a=t.state.doc.nodeAt(n.inside),s=n.inside;else{let f=t.state.doc.resolve(n.pos);a=f.parent,s=f.depth?f.before():0}const u=i?null:r.target,c=u?t.docView.nearestDesc(u,!0):null;this.target=c&&c.nodeDOM.nodeType==1?c.nodeDOM:null;let{selection:p}=t.state;(r.button==0&&a.type.spec.draggable&&a.type.spec.selectable!==!1||p instanceof xe&&p.from<=s&&p.to>s)&&(this.mightDrag={node:a,pos:s,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&dr&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this)),ha(t,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>vi(this.view)),this.view.input.mouseDown=null}up(t){if(this.done(),!this.view.dom.contains(t.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(Qf(t))),this.updateAllowDefault(t),this.allowDefault||!n?ha(this.view,"pointer"):M9(this.view,n.pos,n.inside,t,this.selectNode)?t.preventDefault():t.button==0&&(this.flushed||un&&this.mightDrag&&!this.mightDrag.node.isAtom||nn&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(Ms(this.view,Fe.near(this.view.state.doc.resolve(n.pos))),t.preventDefault()):ha(this.view,"pointer")}move(t){this.updateAllowDefault(t),ha(this.view,"pointer"),t.buttons==0&&this.done()}updateAllowDefault(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=!0)}}Sn.touchstart=e=>{e.input.lastTouch=Date.now(),HT(e),ha(e,"pointer")};Sn.touchmove=e=>{e.input.lastTouch=Date.now(),ha(e,"pointer")};Sn.contextmenu=e=>HT(e);function bM(e,t){return e.composing?!0:un&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}const P9=Ei?5e3:-1;kn.compositionstart=kn.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$to;if(t.selection instanceof Ne&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)||nn&&YL&&$9(e)))e.markCursor=e.state.storedMarks||n.marks(),Mp(e,!0),e.markCursor=null;else if(Mp(e,!t.selection.empty),dr&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=e.domSelectionRange();for(let i=r.focusNode,a=r.focusOffset;i&&i.nodeType==1&&a!=0;){let s=a<0?i.lastChild:i.childNodes[a-1];if(!s)break;if(s.nodeType==3){let u=e.domSelection();u&&u.collapse(s,s.nodeValue.length);break}else i=s,a=-1}}e.input.composing=!0}yM(e,P9)};function $9(e){let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(!t||t.nodeType!=1||n>=t.childNodes.length)return!1;let r=t.childNodes[n];return r.nodeType==1&&r.contentEditable=="false"}kn.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionNode=null,e.input.badSafariComposition?e.domObserver.forceFlush():e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,yM(e,20))};function yM(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>Mp(e),t))}function EM(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=j9());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function H9(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let n=LW(t.focusNode,t.focusOffset),r=MW(t.focusNode,t.focusOffset);if(n&&r&&n!=r){let i=r.pmViewDesc,a=e.domObserver.lastChangedTextNode;if(n==a||r==a)return a;if(!i||!i.isText(r.nodeValue))return r;if(e.input.compositionNode==r){let s=n.pmViewDesc;if(!(!s||!s.isText(n.nodeValue)))return r}}return n||r}function j9(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}function Mp(e,t=!1){if(!(Ei&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),EM(e),t||e.docView&&e.docView.dirty){let n=FT(e),r=e.state.selection;return n&&!n.eq(r)?e.dispatch(e.state.tr.setSelection(n)):(e.markCursor||t)&&!r.$from.node(r.$from.sharedDepth(r.to)).inlineContent?e.dispatch(e.state.tr.deleteSelection()):e.updateState(e.state),!0}return!1}}function G9(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),i=document.createRange();i.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(i),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}const ju=In&&ba<15||$s&&UW<604;Sn.copy=kn.cut=(e,t)=>{let n=t,r=e.state.selection,i=n.type=="cut";if(r.empty)return;let a=ju?null:n.clipboardData,s=r.content(),{dom:u,text:c}=UT(e,s);a?(n.preventDefault(),a.clearData(),a.setData("text/html",u.innerHTML),a.setData("text/plain",c)):G9(e,u),i&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function V9(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function q9(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let i=e.input.shiftKey&&e.input.lastKeyCode!=45;setTimeout(()=>{e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?Gu(e,r.value,null,i,t):Gu(e,r.textContent,r.innerHTML,i,t)},50)}function Gu(e,t,n,r,i){let a=cM(e,t,n,r,e.state.selection.$from);if(e.someProp("handlePaste",c=>c(e,i,a||ge.empty)))return!0;if(!a)return!1;let s=V9(a),u=s?e.state.tr.replaceSelectionWith(s,r):e.state.tr.replaceSelection(a);return e.dispatch(u.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function SM(e){let t=e.getData("text/plain")||e.getData("Text");if(t)return t;let n=e.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}kn.paste=(e,t)=>{let n=t;if(e.composing&&!Ei)return;let r=ju?null:n.clipboardData,i=e.input.shiftKey&&e.input.lastKeyCode!=45;r&&Gu(e,SM(r),r.getData("text/html"),i,n)?n.preventDefault():q9(e,n)};class kM{constructor(t,n,r){this.slice=t,this.move=n,this.node=r}}const W9=lr?"altKey":"ctrlKey";function vM(e,t){let n=e.someProp("dragCopies",r=>!r(t));return n??!t[W9]}Sn.dragstart=(e,t)=>{let n=t,r=e.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let i=e.state.selection,a=i.empty?null:e.posAtCoords(Qf(n)),s;if(!(a&&a.pos>=i.from&&a.pos<=(i instanceof xe?i.to-1:i.to))){if(r&&r.mightDrag)s=xe.create(e.state.doc,r.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let m=e.docView.nearestDesc(n.target,!0);m&&m.node.type.spec.draggable&&m!=e.docView&&(s=xe.create(e.state.doc,m.posBefore))}}let u=(s||e.state.selection).content(),{dom:c,text:p,slice:f}=UT(e,u);(!n.dataTransfer.files.length||!nn||WL>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(ju?"Text":"text/html",c.innerHTML),n.dataTransfer.effectAllowed="copyMove",ju||n.dataTransfer.setData("text/plain",p),e.dragging=new kM(f,vM(e,n),s)};Sn.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)};kn.dragover=kn.dragenter=(e,t)=>t.preventDefault();kn.drop=(e,t)=>{try{Y9(e,t,e.dragging)}finally{e.dragging=null}};function Y9(e,t,n){if(!t.dataTransfer)return;let r=e.posAtCoords(Qf(t));if(!r)return;let i=e.state.doc.resolve(r.pos),a=n&&n.slice;a?e.someProp("transformPasted",b=>{a=b(a,e,!1)}):a=cM(e,SM(t.dataTransfer),ju?null:t.dataTransfer.getData("text/html"),!1,i);let s=!!(n&&vM(e,t));if(e.someProp("handleDrop",b=>b(e,t,a||ge.empty,s))){t.preventDefault();return}if(!a)return;t.preventDefault();let u=a?AL(e.state.doc,i.pos,a):i.pos;u==null&&(u=i.pos);let c=e.state.tr;if(s){let{node:b}=n;b?b.replace(c):c.deleteSelection()}let p=c.mapping.map(u),f=a.openStart==0&&a.openEnd==0&&a.content.childCount==1,m=c.doc;if(f?c.replaceRangeWith(p,p,a.content.firstChild):c.replaceRange(p,p,a),c.doc.eq(m))return;let g=c.doc.resolve(p);if(f&&xe.isSelectable(a.content.firstChild)&&g.nodeAfter&&g.nodeAfter.sameMarkup(a.content.firstChild))c.setSelection(new xe(g));else{let b=c.mapping.map(u);c.mapping.maps[c.mapping.maps.length-1].forEach((S,k,v,w)=>b=w),c.setSelection(zT(e,g,c.doc.resolve(b)))}e.focus(),e.dispatch(c.setMeta("uiEvent","drop"))}Sn.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&vi(e)},20))};Sn.blur=(e,t)=>{let n=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)};Sn.beforeinput=(e,t)=>{if(nn&&Ei&&t.inputType=="deleteContentBackward"){e.domObserver.flushSoon();let{domChangeCount:r}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=r||(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",a=>a(e,to(8,"Backspace")))))return;let{$cursor:i}=e.state.selection;i&&i.pos>0&&e.dispatch(e.state.tr.delete(i.pos-1,i.pos).scrollIntoView())},50)}};for(let e in kn)Sn[e]=kn[e];function Vu(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}class Bp{constructor(t,n){this.toDOM=t,this.spec=n||uo,this.side=this.spec.side||0}map(t,n,r,i){let{pos:a,deleted:s}=t.mapResult(n.from+i,this.side<0?-1:1);return s?null:new yn(a-r,a-r,this)}valid(){return!0}eq(t){return this==t||t instanceof Bp&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&Vu(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class Ea{constructor(t,n){this.attrs=t,this.spec=n||uo}map(t,n,r,i){let a=t.map(n.from+i,this.spec.inclusiveStart?-1:1)-r,s=t.map(n.to+i,this.spec.inclusiveEnd?1:-1)-r;return a>=s?null:new yn(a,s,this)}valid(t,n){return n.from<n.to}eq(t){return this==t||t instanceof Ea&&Vu(this.attrs,t.attrs)&&Vu(this.spec,t.spec)}static is(t){return t.type instanceof Ea}destroy(){}}class jT{constructor(t,n){this.attrs=t,this.spec=n||uo}map(t,n,r,i){let a=t.mapResult(n.from+i,1);if(a.deleted)return null;let s=t.mapResult(n.to+i,-1);return s.deleted||s.pos<=a.pos?null:new yn(a.pos-r,s.pos-r,this)}valid(t,n){let{index:r,offset:i}=t.content.findIndex(n.from),a;return i==n.from&&!(a=t.child(r)).isText&&i+a.nodeSize==n.to}eq(t){return this==t||t instanceof jT&&Vu(this.attrs,t.attrs)&&Vu(this.spec,t.spec)}destroy(){}}class yn{constructor(t,n,r){this.from=t,this.to=n,this.type=r}copy(t,n){return new yn(t,n,this.type)}eq(t,n=0){return this.type.eq(t.type)&&this.from+n==t.from&&this.to+n==t.to}map(t,n,r){return this.type.map(t,this,n,r)}static widget(t,n,r){return new yn(t,t,new Bp(n,r))}static inline(t,n,r,i){return new yn(t,n,new Ea(r,i))}static node(t,n,r,i){return new yn(t,n,new jT(r,i))}get spec(){return this.type.spec}get inline(){return this.type instanceof Ea}get widget(){return this.type instanceof Bp}}const Cs=[],uo={};class bt{constructor(t,n){this.local=t.length?t:Cs,this.children=n.length?n:Cs}static create(t,n){return n.length?Fp(n,t,0,uo):sn}find(t,n,r){let i=[];return this.findInner(t??0,n??1e9,i,0,r),i}findInner(t,n,r,i,a){for(let s=0;s<this.local.length;s++){let u=this.local[s];u.from<=n&&u.to>=t&&(!a||a(u.spec))&&r.push(u.copy(u.from+i,u.to+i))}for(let s=0;s<this.children.length;s+=3)if(this.children[s]<n&&this.children[s+1]>t){let u=this.children[s]+1;this.children[s+2].findInner(t-u,n-u,r,i+u,a)}}map(t,n,r){return this==sn||t.maps.length==0?this:this.mapInner(t,n,0,0,r||uo)}mapInner(t,n,r,i,a){let s;for(let u=0;u<this.local.length;u++){let c=this.local[u].map(t,r,i);c&&c.type.valid(n,c)?(s||(s=[])).push(c):a.onRemove&&a.onRemove(this.local[u].spec)}return this.children.length?K9(this.children,s||[],t,n,r,i,a):s?new bt(s.sort(co),Cs):sn}add(t,n){return n.length?this==sn?bt.create(t,n):this.addInner(t,n,0):this}addInner(t,n,r){let i,a=0;t.forEach((u,c)=>{let p=c+r,f;if(f=TM(n,u,p)){for(i||(i=this.children.slice());a<i.length&&i[a]<c;)a+=3;i[a]==c?i[a+2]=i[a+2].addInner(u,f,p+1):i.splice(a,0,c,c+u.nodeSize,Fp(f,u,p+1,uo)),a+=3}});let s=wM(a?xM(n):n,-r);for(let u=0;u<s.length;u++)s[u].type.valid(t,s[u])||s.splice(u--,1);return new bt(s.length?this.local.concat(s).sort(co):this.local,i||this.children)}remove(t){return t.length==0||this==sn?this:this.removeInner(t,0)}removeInner(t,n){let r=this.children,i=this.local;for(let a=0;a<r.length;a+=3){let s,u=r[a]+n,c=r[a+1]+n;for(let f=0,m;f<t.length;f++)(m=t[f])&&m.from>u&&m.to<c&&(t[f]=null,(s||(s=[])).push(m));if(!s)continue;r==this.children&&(r=this.children.slice());let p=r[a+2].removeInner(s,u+1);p!=sn?r[a+2]=p:(r.splice(a,3),a-=3)}if(i.length){for(let a=0,s;a<t.length;a++)if(s=t[a])for(let u=0;u<i.length;u++)i[u].eq(s,n)&&(i==this.local&&(i=this.local.slice()),i.splice(u--,1))}return r==this.children&&i==this.local?this:i.length||r.length?new bt(i,r):sn}forChild(t,n){if(this==sn)return this;if(n.isLeaf)return bt.empty;let r,i;for(let u=0;u<this.children.length;u+=3)if(this.children[u]>=t){this.children[u]==t&&(r=this.children[u+2]);break}let a=t+1,s=a+n.content.size;for(let u=0;u<this.local.length;u++){let c=this.local[u];if(c.from<s&&c.to>a&&c.type instanceof Ea){let p=Math.max(a,c.from)-a,f=Math.min(s,c.to)-a;p<f&&(i||(i=[])).push(c.copy(p,f))}}if(i){let u=new bt(i.sort(co),Cs);return r?new ua([u,r]):u}return r||sn}eq(t){if(this==t)return!0;if(!(t instanceof bt)||this.local.length!=t.local.length||this.children.length!=t.children.length)return!1;for(let n=0;n<this.local.length;n++)if(!this.local[n].eq(t.local[n]))return!1;for(let n=0;n<this.children.length;n+=3)if(this.children[n]!=t.children[n]||this.children[n+1]!=t.children[n+1]||!this.children[n+2].eq(t.children[n+2]))return!1;return!0}locals(t){return GT(this.localsInner(t))}localsInner(t){if(this==sn)return Cs;if(t.inlineContent||!this.local.some(Ea.is))return this.local;let n=[];for(let r=0;r<this.local.length;r++)this.local[r].type instanceof Ea||n.push(this.local[r]);return n}forEachSet(t){t(this)}}bt.empty=new bt([],[]);bt.removeOverlap=GT;const sn=bt.empty;class ua{constructor(t){this.members=t}map(t,n){const r=this.members.map(i=>i.map(t,n,uo));return ua.from(r)}forChild(t,n){if(n.isLeaf)return bt.empty;let r=[];for(let i=0;i<this.members.length;i++){let a=this.members[i].forChild(t,n);a!=sn&&(a instanceof ua?r=r.concat(a.members):r.push(a))}return ua.from(r)}eq(t){if(!(t instanceof ua)||t.members.length!=this.members.length)return!1;for(let n=0;n<this.members.length;n++)if(!this.members[n].eq(t.members[n]))return!1;return!0}locals(t){let n,r=!0;for(let i=0;i<this.members.length;i++){let a=this.members[i].localsInner(t);if(a.length)if(!n)n=a;else{r&&(n=n.slice(),r=!1);for(let s=0;s<a.length;s++)n.push(a[s])}}return n?GT(r?n:n.sort(co)):Cs}static from(t){switch(t.length){case 0:return sn;case 1:return t[0];default:return new ua(t.every(n=>n instanceof bt)?t:t.reduce((n,r)=>n.concat(r instanceof bt?r:r.members),[]))}}forEachSet(t){for(let n=0;n<this.members.length;n++)this.members[n].forEachSet(t)}}function K9(e,t,n,r,i,a,s){let u=e.slice();for(let p=0,f=a;p<n.maps.length;p++){let m=0;n.maps[p].forEach((g,b,S,k)=>{let v=k-S-(b-g);for(let w=0;w<u.length;w+=3){let x=u[w+1];if(x<0||g>x+f-m)continue;let A=u[w]+f-m;b>=A?u[w+1]=g<=A?-2:-1:g>=f&&v&&(u[w]+=v,u[w+1]+=v)}m+=v}),f=n.maps[p].map(f,-1)}let c=!1;for(let p=0;p<u.length;p+=3)if(u[p+1]<0){if(u[p+1]==-2){c=!0,u[p+1]=-1;continue}let f=n.map(e[p]+a),m=f-i;if(m<0||m>=r.content.size){c=!0;continue}let g=n.map(e[p+1]+a,-1),b=g-i,{index:S,offset:k}=r.content.findIndex(m),v=r.maybeChild(S);if(v&&k==m&&k+v.nodeSize==b){let w=u[p+2].mapInner(n,v,f+1,e[p]+a+1,s);w!=sn?(u[p]=m,u[p+1]=b,u[p+2]=w):(u[p+1]=-2,c=!0)}else c=!0}if(c){let p=X9(u,e,t,n,i,a,s),f=Fp(p,r,0,s);t=f.local;for(let m=0;m<u.length;m+=3)u[m+1]<0&&(u.splice(m,3),m-=3);for(let m=0,g=0;m<f.children.length;m+=3){let b=f.children[m];for(;g<u.length&&u[g]<b;)g+=3;u.splice(g,0,f.children[m],f.children[m+1],f.children[m+2])}}return new bt(t.sort(co),u)}function wM(e,t){if(!t||!e.length)return e;let n=[];for(let r=0;r<e.length;r++){let i=e[r];n.push(new yn(i.from+t,i.to+t,i.type))}return n}function X9(e,t,n,r,i,a,s){function u(c,p){for(let f=0;f<c.local.length;f++){let m=c.local[f].map(r,i,p);m?n.push(m):s.onRemove&&s.onRemove(c.local[f].spec)}for(let f=0;f<c.children.length;f+=3)u(c.children[f+2],c.children[f]+p+1)}for(let c=0;c<e.length;c+=3)e[c+1]==-1&&u(e[c+2],t[c]+a+1);return n}function TM(e,t,n){if(t.isLeaf)return null;let r=n+t.nodeSize,i=null;for(let a=0,s;a<e.length;a++)(s=e[a])&&s.from>n&&s.to<r&&((i||(i=[])).push(s),e[a]=null);return i}function xM(e){let t=[];for(let n=0;n<e.length;n++)e[n]!=null&&t.push(e[n]);return t}function Fp(e,t,n,r){let i=[],a=!1;t.forEach((u,c)=>{let p=TM(e,u,c+n);if(p){a=!0;let f=Fp(p,u,n+c+1,r);f!=sn&&i.push(c,c+u.nodeSize,f)}});let s=wM(a?xM(e):e,-n).sort(co);for(let u=0;u<s.length;u++)s[u].type.valid(t,s[u])||(r.onRemove&&r.onRemove(s[u].spec),s.splice(u--,1));return s.length||i.length?new bt(s,i):sn}function co(e,t){return e.from-t.from||e.to-t.to}function GT(e){let t=e;for(let n=0;n<t.length-1;n++){let r=t[n];if(r.from!=r.to)for(let i=n+1;i<t.length;i++){let a=t[i];if(a.from==r.from){a.to!=r.to&&(t==e&&(t=e.slice()),t[i]=a.copy(a.from,r.to),J_(t,i+1,a.copy(r.to,a.to)));continue}else{a.from<r.to&&(t==e&&(t=e.slice()),t[n]=r.copy(r.from,a.from),J_(t,i,r.copy(a.from,r.to)));break}}}return t}function J_(e,t,n){for(;t<e.length&&co(n,e[t])>0;)t++;e.splice(t,0,n)}function kb(e){let t=[];return e.someProp("decorations",n=>{let r=n(e.state);r&&r!=sn&&t.push(r)}),e.cursorWrapper&&t.push(bt.create(e.state.doc,[e.cursorWrapper.deco])),ua.from(t)}const Z9={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},Q9=In&&ba<=11;class J9{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(t){this.anchorNode=t.anchorNode,this.anchorOffset=t.anchorOffset,this.focusNode=t.focusNode,this.focusOffset=t.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(t){return t.anchorNode==this.anchorNode&&t.anchorOffset==this.anchorOffset&&t.focusNode==this.focusNode&&t.focusOffset==this.focusOffset}}class eY{constructor(t,n){this.view=t,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new J9,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let i=0;i<r.length;i++)this.queue.push(r[i]);In&&ba<=11&&r.some(i=>i.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():un&&t.composing&&r.some(i=>i.type=="childList"&&i.target.nodeName=="TR")?(t.input.badSafariComposition=!0,this.flushSoon()):this.flush()}),Q9&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,Z9)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let t=this.observer.takeRecords();if(t.length){for(let n=0;n<t.length;n++)this.queue.push(t[n]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(V_(this.view)){if(this.suppressingSelectionUpdates)return vi(this.view);if(In&&ba<=11&&!this.view.state.selection.empty){let t=this.view.domSelectionRange();if(t.focusNode&&So(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(t){if(!t.focusNode)return!0;let n=new Set,r;for(let a=t.focusNode;a;a=Ps(a))n.add(a);for(let a=t.anchorNode;a;a=Ps(a))if(n.has(a)){r=a;break}let i=r&&this.view.docView.nearestDesc(r);if(i&&i.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}flush(){let{view:t}=this;if(!t.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let r=t.domSelectionRange(),i=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&V_(t)&&!this.ignoreSelectionChange(r),a=-1,s=-1,u=!1,c=[];if(t.editable)for(let f=0;f<n.length;f++){let m=this.registerMutation(n[f],c);m&&(a=a<0?m.from:Math.min(m.from,a),s=s<0?m.to:Math.max(m.to,s),m.typeOver&&(u=!0))}if(c.some(f=>f.nodeName=="BR")&&(t.input.lastKeyCode==8||t.input.lastKeyCode==46)){for(let f of c)if(f.nodeName=="BR"&&f.parentNode){let m=f.nextSibling;for(;m&&m.nodeType==1;){if(m.contentEditable=="false"){f.parentNode.removeChild(f);break}m=m.firstChild}}}else if(dr&&c.length){let f=c.filter(m=>m.nodeName=="BR");if(f.length==2){let[m,g]=f;m.parentNode&&m.parentNode.parentNode==g.parentNode?g.remove():m.remove()}else{let{focusNode:m}=this.currentSelection;for(let g of f){let b=g.parentNode;b&&b.nodeName=="LI"&&(!m||rY(t,m)!=b)&&g.remove()}}}let p=null;a<0&&i&&t.input.lastFocus>Date.now()-200&&Math.max(t.input.lastTouch,t.input.lastClick.time)<Date.now()-300&&Xf(r)&&(p=FT(t))&&p.eq(Fe.near(t.state.doc.resolve(0),1))?(t.input.lastFocus=0,vi(t),this.currentSelection.set(r),t.scrollToSelection()):(a>-1||i)&&(a>-1&&(t.docView.markDirty(a,s),tY(t)),t.input.badSafariComposition&&(t.input.badSafariComposition=!1,iY(t,c)),this.handleDOMChange(a,s,u,c),t.docView&&t.docView.dirty?t.updateState(t.state):this.currentSelection.eq(r)||vi(t),this.currentSelection.set(r))}registerMutation(t,n){if(n.indexOf(t.target)>-1)return null;let r=this.view.docView.nearestDesc(t.target);if(t.type=="attributes"&&(r==this.view.docView||t.attributeName=="contenteditable"||t.attributeName=="style"&&!t.oldValue&&!t.target.getAttribute("style"))||!r||r.ignoreMutation(t))return null;if(t.type=="childList"){for(let f=0;f<t.addedNodes.length;f++){let m=t.addedNodes[f];n.push(m),m.nodeType==3&&(this.lastChangedTextNode=m)}if(r.contentDOM&&r.contentDOM!=r.dom&&!r.contentDOM.contains(t.target))return{from:r.posBefore,to:r.posAfter};let i=t.previousSibling,a=t.nextSibling;if(In&&ba<=11&&t.addedNodes.length)for(let f=0;f<t.addedNodes.length;f++){let{previousSibling:m,nextSibling:g}=t.addedNodes[f];(!m||Array.prototype.indexOf.call(t.addedNodes,m)<0)&&(i=m),(!g||Array.prototype.indexOf.call(t.addedNodes,g)<0)&&(a=g)}let s=i&&i.parentNode==t.target?en(i)+1:0,u=r.localPosFromDOM(t.target,s,-1),c=a&&a.parentNode==t.target?en(a):t.target.childNodes.length,p=r.localPosFromDOM(t.target,c,1);return{from:u,to:p}}else return t.type=="attributes"?{from:r.posAtStart-r.border,to:r.posAtEnd+r.border}:(this.lastChangedTextNode=t.target,{from:r.posAtStart,to:r.posAtEnd,typeOver:t.target.nodeValue==t.oldValue})}}let eO=new WeakMap,tO=!1;function tY(e){if(!eO.has(e)&&(eO.set(e,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(e.dom).whiteSpace)!==-1)){if(e.requiresGeckoHackNode=dr,tO)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),tO=!0}}function nO(e,t){let n=t.startContainer,r=t.startOffset,i=t.endContainer,a=t.endOffset,s=e.domAtPos(e.state.selection.anchor);return So(s.node,s.offset,i,a)&&([n,r,i,a]=[i,a,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:a}}function nY(e,t){if(t.getComposedRanges){let i=t.getComposedRanges(e.root)[0];if(i)return nO(e,i)}let n;function r(i){i.preventDefault(),i.stopImmediatePropagation(),n=i.getTargetRanges()[0]}return e.dom.addEventListener("beforeinput",r,!0),document.execCommand("indent"),e.dom.removeEventListener("beforeinput",r,!0),n?nO(e,n):null}function rY(e,t){for(let n=t.parentNode;n&&n!=e.dom;n=n.parentNode){let r=e.docView.nearestDesc(n,!0);if(r&&r.node.isBlock)return n}return null}function iY(e,t){var n;let{focusNode:r,focusOffset:i}=e.domSelectionRange();for(let a of t)if(((n=a.parentNode)===null||n===void 0?void 0:n.nodeName)=="TR"){let s=a.nextSibling;for(;s&&s.nodeName!="TD"&&s.nodeName!="TH";)s=s.nextSibling;if(s){let u=s;for(;;){let c=u.firstChild;if(!c||c.nodeType!=1||c.contentEditable=="false"||/^(BR|IMG)$/.test(c.nodeName))break;u=c}u.insertBefore(a,u.firstChild),r==a&&e.domSelection().collapse(a,i)}else a.parentNode.removeChild(a)}}function aY(e,t,n){let{node:r,fromOffset:i,toOffset:a,from:s,to:u}=e.docView.parseRange(t,n),c=e.domSelectionRange(),p,f=c.anchorNode;if(f&&e.dom.contains(f.nodeType==1?f:f.parentNode)&&(p=[{node:f,offset:c.anchorOffset}],Xf(c)||p.push({node:c.focusNode,offset:c.focusOffset})),nn&&e.input.lastKeyCode===8)for(let v=a;v>i;v--){let w=r.childNodes[v-1],x=w.pmViewDesc;if(w.nodeName=="BR"&&!x){a=v;break}if(!x||x.size)break}let m=e.state.doc,g=e.someProp("domParser")||Si.fromSchema(e.state.schema),b=m.resolve(s),S=null,k=g.parse(r,{topNode:b.parent,topMatch:b.parent.contentMatchAt(b.index()),topOpen:!0,from:i,to:a,preserveWhitespace:b.parent.type.whitespace=="pre"?"full":!0,findPositions:p,ruleFromNode:oY,context:b});if(p&&p[0].pos!=null){let v=p[0].pos,w=p[1]&&p[1].pos;w==null&&(w=v),S={anchor:v+s,head:w+s}}return{doc:k,sel:S,from:s,to:u}}function oY(e){let t=e.pmViewDesc;if(t)return t.parseRule();if(e.nodeName=="BR"&&e.parentNode){if(un&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(e.parentNode.lastChild==e||un&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if(e.nodeName=="IMG"&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null}const sY=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function lY(e,t,n,r,i){let a=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let M=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,U=FT(e,M);if(U&&!e.state.selection.eq(U)){if(nn&&Ei&&e.input.lastKeyCode===13&&Date.now()-100<e.input.lastKeyCodeTime&&e.someProp("handleKeyDown",F=>F(e,to(13,"Enter"))))return;let G=e.state.tr.setSelection(U);M=="pointer"?G.setMeta("pointer",!0):M=="key"&&G.scrollIntoView(),a&&G.setMeta("composition",a),e.dispatch(G)}return}let s=e.state.doc.resolve(t),u=s.sharedDepth(n);t=s.before(u+1),n=e.state.doc.resolve(n).after(u+1);let c=e.state.selection,p=aY(e,t,n),f=e.state.doc,m=f.slice(p.from,p.to),g,b;e.input.lastKeyCode===8&&Date.now()-100<e.input.lastKeyCodeTime?(g=e.state.selection.to,b="end"):(g=e.state.selection.from,b="start"),e.input.lastKeyCode=null;let S=dY(m.content,p.doc.content,p.from,g,b);if(S&&e.input.domChangeCount++,($s&&e.input.lastIOSEnter>Date.now()-225||Ei)&&i.some(M=>M.nodeType==1&&!sY.test(M.nodeName))&&(!S||S.endA>=S.endB)&&e.someProp("handleKeyDown",M=>M(e,to(13,"Enter")))){e.input.lastIOSEnter=0;return}if(!S)if(r&&c instanceof Ne&&!c.empty&&c.$head.sameParent(c.$anchor)&&!e.composing&&!(p.sel&&p.sel.anchor!=p.sel.head))S={start:c.from,endA:c.to,endB:c.to};else{if(p.sel){let M=rO(e,e.state.doc,p.sel);if(M&&!M.eq(e.state.selection)){let U=e.state.tr.setSelection(M);a&&U.setMeta("composition",a),e.dispatch(U)}}return}e.state.selection.from<e.state.selection.to&&S.start==S.endB&&e.state.selection instanceof Ne&&(S.start>e.state.selection.from&&S.start<=e.state.selection.from+2&&e.state.selection.from>=p.from?S.start=e.state.selection.from:S.endA<e.state.selection.to&&S.endA>=e.state.selection.to-2&&e.state.selection.to<=p.to&&(S.endB+=e.state.selection.to-S.endA,S.endA=e.state.selection.to)),In&&ba<=11&&S.endB==S.start+1&&S.endA==S.start&&S.start>p.from&&p.doc.textBetween(S.start-p.from-1,S.start-p.from+1)==" "&&(S.start--,S.endA--,S.endB--);let k=p.doc.resolveNoCache(S.start-p.from),v=p.doc.resolveNoCache(S.endB-p.from),w=f.resolve(S.start),x=k.sameParent(v)&&k.parent.inlineContent&&w.end()>=S.endA;if(($s&&e.input.lastIOSEnter>Date.now()-225&&(!x||i.some(M=>M.nodeName=="DIV"||M.nodeName=="P"))||!x&&k.pos<p.doc.content.size&&(!k.sameParent(v)||!k.parent.inlineContent)&&k.pos<v.pos&&!/\S/.test(p.doc.textBetween(k.pos,v.pos,"","")))&&e.someProp("handleKeyDown",M=>M(e,to(13,"Enter")))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>S.start&&cY(f,S.start,S.endA,k,v)&&e.someProp("handleKeyDown",M=>M(e,to(8,"Backspace")))){Ei&&nn&&e.domObserver.suppressSelectionUpdates();return}nn&&S.endB==S.start&&(e.input.lastChromeDelete=Date.now()),Ei&&!x&&k.start()!=v.start()&&v.parentOffset==0&&k.depth==v.depth&&p.sel&&p.sel.anchor==p.sel.head&&p.sel.head==S.endA&&(S.endB-=2,v=p.doc.resolveNoCache(S.endB-p.from),setTimeout(()=>{e.someProp("handleKeyDown",function(M){return M(e,to(13,"Enter"))})},20));let A=S.start,D=S.endA,O=M=>{let U=M||e.state.tr.replace(A,D,p.doc.slice(S.start-p.from,S.endB-p.from));if(p.sel){let G=rO(e,U.doc,p.sel);G&&!(nn&&e.composing&&G.empty&&(S.start!=S.endB||e.input.lastChromeDelete<Date.now()-100)&&(G.head==A||G.head==U.mapping.map(D)-1)||In&&G.empty&&G.head==A)&&U.setSelection(G)}return a&&U.setMeta("composition",a),U.scrollIntoView()},R;if(x)if(k.pos==v.pos){In&&ba<=11&&k.parentOffset==0&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>vi(e),20));let M=O(e.state.tr.delete(A,D)),U=f.resolve(S.start).marksAcross(f.resolve(S.endA));U&&M.ensureMarks(U),e.dispatch(M)}else if(S.endA==S.endB&&(R=uY(k.parent.content.cut(k.parentOffset,v.parentOffset),w.parent.content.cut(w.parentOffset,S.endA-w.start())))){let M=O(e.state.tr);R.type=="add"?M.addMark(A,D,R.mark):M.removeMark(A,D,R.mark),e.dispatch(M)}else if(k.parent.child(k.index()).isText&&k.index()==v.index()-(v.textOffset?0:1)){let M=k.parent.textBetween(k.parentOffset,v.parentOffset),U=()=>O(e.state.tr.insertText(M,A,D));e.someProp("handleTextInput",G=>G(e,A,D,M,U))||e.dispatch(U())}else e.dispatch(O());else e.dispatch(O())}function rO(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:zT(e,t.resolve(n.anchor),t.resolve(n.head))}function uY(e,t){let n=e.firstChild.marks,r=t.firstChild.marks,i=n,a=r,s,u,c;for(let f=0;f<r.length;f++)i=r[f].removeFromSet(i);for(let f=0;f<n.length;f++)a=n[f].removeFromSet(a);if(i.length==1&&a.length==0)u=i[0],s="add",c=f=>f.mark(u.addToSet(f.marks));else if(i.length==0&&a.length==1)u=a[0],s="remove",c=f=>f.mark(u.removeFromSet(f.marks));else return null;let p=[];for(let f=0;f<t.childCount;f++)p.push(c(t.child(f)));if(ue.from(p).eq(e))return{mark:u,type:s}}function cY(e,t,n,r,i){if(n-t<=i.pos-r.pos||vb(r,!0,!1)<i.pos)return!1;let a=e.resolve(t);if(!r.parent.isTextblock){let u=a.nodeAfter;return u!=null&&n==t+u.nodeSize}if(a.parentOffset<a.parent.content.size||!a.parent.isTextblock)return!1;let s=e.resolve(vb(a,!0,!0));return!s.parent.isTextblock||s.pos>n||vb(s,!0,!1)<n?!1:r.parent.content.cut(r.parentOffset).eq(s.parent.content)}function vb(e,t,n){let r=e.depth,i=t?e.end():e.pos;for(;r>0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,i++,t=!1;if(n){let a=e.node(r).maybeChild(e.indexAfter(r));for(;a&&!a.isLeaf;)a=a.firstChild,i++}return i}function dY(e,t,n,r,i){let a=e.findDiffStart(t,n);if(a==null)return null;let{a:s,b:u}=e.findDiffEnd(t,n+e.size,n+t.size);if(i=="end"){let c=Math.max(0,a-Math.min(s,u));r-=s+c-a}if(s<a&&e.size<t.size){let c=r<=a&&r>=s?a-r:0;a-=c,a&&a<t.size&&iO(t.textBetween(a-1,a+1))&&(a+=c?1:-1),u=a+(u-s),s=a}else if(u<a){let c=r<=a&&r>=u?a-r:0;a-=c,a&&a<e.size&&iO(e.textBetween(a-1,a+1))&&(a+=c?1:-1),s=a+(s-u),u=a}return{start:a,endA:s,endB:u}}function iO(e){if(e.length!=2)return!1;let t=e.charCodeAt(0),n=e.charCodeAt(1);return t>=56320&&t<=57343&&n>=55296&&n<=56319}class AM{constructor(t,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new C9,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(uO),this.dispatch=this.dispatch.bind(this),this.dom=t&&t.mount||document.createElement("div"),t&&(t.appendChild?t.appendChild(this.dom):typeof t=="function"?t(this.dom):t.mount&&(this.mounted=!0)),this.editable=sO(this),oO(this),this.nodeViews=lO(this),this.docView=U_(this.state.doc,aO(this),kb(this),this.dom,this),this.domObserver=new eY(this,(r,i,a,s)=>lY(this,r,i,a,s)),this.domObserver.start(),R9(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let t=this._props;this._props={};for(let n in t)this._props[n]=t[n];this._props.state=this.state}return this._props}update(t){t.handleDOMEvents!=this._props.handleDOMEvents&&Oy(this);let n=this._props;this._props=t,t.plugins&&(t.plugins.forEach(uO),this.directPlugins=t.plugins),this.updateStateInner(t.state,n)}setProps(t){let n={};for(let r in this._props)n[r]=this._props[r];n.state=this.state;for(let r in t)n[r]=t[r];this.update(n)}updateState(t){this.updateStateInner(t,this._props)}updateStateInner(t,n){var r;let i=this.state,a=!1,s=!1;t.storedMarks&&this.composing&&(EM(this),s=!0),this.state=t;let u=i.plugins!=t.plugins||this._props.plugins!=n.plugins;if(u||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let b=lO(this);fY(b,this.nodeViews)&&(this.nodeViews=b,a=!0)}(u||n.handleDOMEvents!=this._props.handleDOMEvents)&&Oy(this),this.editable=sO(this),oO(this);let c=kb(this),p=aO(this),f=i.plugins!=t.plugins&&!i.doc.eq(t.doc)?"reset":t.scrollToSelection>i.scrollToSelection?"to selection":"preserve",m=a||!this.docView.matchesNode(t.doc,p,c);(m||!t.selection.eq(i.selection))&&(s=!0);let g=f=="preserve"&&s&&this.dom.style.overflowAnchor==null&&HW(this);if(s){this.domObserver.stop();let b=m&&(In||nn)&&!this.composing&&!i.selection.empty&&!t.selection.empty&&pY(i.selection,t.selection);if(m){let S=nn?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=H9(this)),(a||!this.docView.update(t.doc,p,c,this))&&(this.docView.updateOuterDeco(p),this.docView.destroy(),this.docView=U_(t.doc,p,c,this.dom,this)),S&&(!this.trackWrites||!this.dom.contains(this.trackWrites))&&(b=!0)}b||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&p9(this))?vi(this,b):(sM(this,t.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(i),!((r=this.dragging)===null||r===void 0)&&r.node&&!i.doc.eq(t.doc)&&this.updateDraggedNode(this.dragging,i),f=="reset"?this.dom.scrollTop=0:f=="to selection"?this.scrollToSelection():g&&jW(g)}scrollToSelection(){let t=this.domSelectionRange().focusNode;if(!(!t||!this.dom.contains(t.nodeType==1?t:t.parentNode))){if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof xe){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&D_(this,n.getBoundingClientRect(),t)}else D_(this,this.coordsAtPos(this.state.selection.head,1),t)}}destroyPluginViews(){let t;for(;t=this.pluginViews.pop();)t.destroy&&t.destroy()}updatePluginViews(t){if(!t||t.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n<this.directPlugins.length;n++){let r=this.directPlugins[n];r.spec.view&&this.pluginViews.push(r.spec.view(this))}for(let n=0;n<this.state.plugins.length;n++){let r=this.state.plugins[n];r.spec.view&&this.pluginViews.push(r.spec.view(this))}}else for(let n=0;n<this.pluginViews.length;n++){let r=this.pluginViews[n];r.update&&r.update(this,t)}}updateDraggedNode(t,n){let r=t.node,i=-1;if(r.from<this.state.doc.content.size&&this.state.doc.nodeAt(r.from)==r.node)i=r.from;else{let a=r.from+(this.state.doc.content.size-n.doc.content.size);(a>0&&a<this.state.doc.content.size&&this.state.doc.nodeAt(a))==r.node&&(i=a)}this.dragging=new kM(t.slice,t.move,i<0?void 0:xe.create(this.state.doc,i))}someProp(t,n){let r=this._props&&this._props[t],i;if(r!=null&&(i=n?n(r):r))return i;for(let s=0;s<this.directPlugins.length;s++){let u=this.directPlugins[s].props[t];if(u!=null&&(i=n?n(u):u))return i}let a=this.state.plugins;if(a)for(let s=0;s<a.length;s++){let u=a[s].props[t];if(u!=null&&(i=n?n(u):u))return i}}hasFocus(){if(In){let t=this.root.activeElement;if(t==this.dom)return!0;if(!t||!this.dom.contains(t))return!1;for(;t&&this.dom!=t&&this.dom.contains(t);){if(t.contentEditable=="false")return!1;t=t.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&GW(this.dom),vi(this),this.domObserver.start()}get root(){let t=this._root;if(t==null){for(let n=this.dom.parentNode;n;n=n.parentNode)if(n.nodeType==9||n.nodeType==11&&n.host)return n.getSelection||(Object.getPrototypeOf(n).getSelection=()=>n.ownerDocument.getSelection()),this._root=n}return t||document}updateRoot(){this._root=null}posAtCoords(t){return KW(this,t)}coordsAtPos(t,n=1){return JL(this,t,n)}domAtPos(t,n=0){return this.docView.domFromPos(t,n)}nodeDOM(t){let n=this.docView.descAt(t);return n?n.nodeDOM:null}posAtDOM(t,n,r=-1){let i=this.docView.posFromDOM(t,n,r);if(i==null)throw new RangeError("DOM position not inside the editor");return i}endOfTextblock(t,n){return e9(this,n||this.state,t)}pasteHTML(t,n){return Gu(this,"",t,!1,n||new ClipboardEvent("paste"))}pasteText(t,n){return Gu(this,t,null,!0,n||new ClipboardEvent("paste"))}serializeForClipboard(t){return UT(this,t)}destroy(){this.docView&&(N9(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],kb(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,IW())}get isDestroyed(){return this.docView==null}dispatchEvent(t){return O9(this,t)}domSelectionRange(){let t=this.domSelection();return t?un&&this.root.nodeType===11&&FW(this.dom.ownerDocument)==this.dom&&nY(this,t)||t:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}AM.prototype.dispatch=function(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))};function aO(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(e.state)),n)for(let r in n)r=="class"?t.class+=" "+n[r]:r=="style"?t.style=(t.style?t.style+";":"")+n[r]:!t[r]&&r!="contenteditable"&&r!="nodeName"&&(t[r]=String(n[r]))}),t.translate||(t.translate="no"),[yn.node(0,e.state.doc.content.size,t)]}function oO(e){if(e.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:yn.widget(e.state.selection.from,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function sO(e){return!e.someProp("editable",t=>t(e.state)===!1)}function pY(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}function lO(e){let t=Object.create(null);function n(r){for(let i in r)Object.prototype.hasOwnProperty.call(t,i)||(t[i]=r[i])}return e.someProp("nodeViews",n),e.someProp("markViews",n),t}function fY(e,t){let n=0,r=0;for(let i in e){if(e[i]!=t[i])return!0;n++}for(let i in t)r++;return n!=r}function uO(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}var wa={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},zp={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},hY=typeof navigator<"u"&&/Mac/.test(navigator.platform),mY=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var tn=0;tn<10;tn++)wa[48+tn]=wa[96+tn]=String(tn);for(var tn=1;tn<=24;tn++)wa[tn+111]="F"+tn;for(var tn=65;tn<=90;tn++)wa[tn]=String.fromCharCode(tn+32),zp[tn]=String.fromCharCode(tn);for(var wb in wa)zp.hasOwnProperty(wb)||(zp[wb]=wa[wb]);function gY(e){var t=hY&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||mY&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?zp:wa)[e.keyCode]||e.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const bY=typeof navigator<"u"&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),yY=typeof navigator<"u"&&/Win/.test(navigator.platform);function EY(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n=="Space"&&(n=" ");let r,i,a,s;for(let u=0;u<t.length-1;u++){let c=t[u];if(/^(cmd|meta|m)$/i.test(c))s=!0;else if(/^a(lt)?$/i.test(c))r=!0;else if(/^(c|ctrl|control)$/i.test(c))i=!0;else if(/^s(hift)?$/i.test(c))a=!0;else if(/^mod$/i.test(c))bY?s=!0:i=!0;else throw new Error("Unrecognized modifier name: "+c)}return r&&(n="Alt-"+n),i&&(n="Ctrl-"+n),s&&(n="Meta-"+n),a&&(n="Shift-"+n),n}function SY(e){let t=Object.create(null);for(let n in e)t[EY(n)]=e[n];return t}function Tb(e,t,n=!0){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),n&&t.shiftKey&&(e="Shift-"+e),e}function kY(e){return new yt({props:{handleKeyDown:CM(e)}})}function CM(e){let t=SY(e);return function(n,r){let i=gY(r),a,s=t[Tb(i,r)];if(s&&s(n.state,n.dispatch,n))return!0;if(i.length==1&&i!=" "){if(r.shiftKey){let u=t[Tb(i,r,!1)];if(u&&u(n.state,n.dispatch,n))return!0}if((r.altKey||r.metaKey||r.ctrlKey)&&!(yY&&r.ctrlKey&&r.altKey)&&(a=wa[r.keyCode])&&a!=i){let u=t[Tb(a,r)];if(u&&u(n.state,n.dispatch,n))return!0}}return!1}}var vY=Object.defineProperty,VT=(e,t)=>{for(var n in t)vY(e,n,{get:t[n],enumerable:!0})};function Jf(e){const{state:t,transaction:n}=e;let{selection:r}=n,{doc:i}=n,{storedMarks:a}=n;return{...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return a},get selection(){return r},get doc(){return i},get tr(){return r=n.selection,i=n.doc,a=n.storedMarks,n}}}var eh=class{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:t,state:n}=this,{view:r}=t,{tr:i}=n,a=this.buildProps(i);return Object.fromEntries(Object.entries(e).map(([s,u])=>[s,(...p)=>{const f=u(...p)(a);return!i.getMeta("preventDispatch")&&!this.hasCustomState&&r.dispatch(i),f}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,t=!0){const{rawCommands:n,editor:r,state:i}=this,{view:a}=r,s=[],u=!!e,c=e||i.tr,p=()=>(!u&&t&&!c.getMeta("preventDispatch")&&!this.hasCustomState&&a.dispatch(c),s.every(m=>m===!0)),f={...Object.fromEntries(Object.entries(n).map(([m,g])=>[m,(...S)=>{const k=this.buildProps(c,t),v=g(...S)(k);return s.push(v),f}])),run:p};return f}createCan(e){const{rawCommands:t,state:n}=this,r=!1,i=e||n.tr,a=this.buildProps(i,r);return{...Object.fromEntries(Object.entries(t).map(([u,c])=>[u,(...p)=>c(...p)({...a,dispatch:void 0})])),chain:()=>this.createChain(i,r)}}buildProps(e,t=!0){const{rawCommands:n,editor:r,state:i}=this,{view:a}=r,s={tr:e,editor:r,view:a,state:Jf({state:i,transaction:e}),dispatch:t?()=>{}:void 0,chain:()=>this.createChain(e,t),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(n).map(([u,c])=>[u,(...p)=>c(...p)(s)]))}};return s}},Er={};VT(Er,{blur:()=>wY,clearContent:()=>TY,clearNodes:()=>xY,command:()=>AY,createParagraphNear:()=>CY,cut:()=>RY,deleteCurrentNode:()=>NY,deleteNode:()=>_Y,deleteRange:()=>OY,deleteSelection:()=>IY,enter:()=>DY,exitCode:()=>LY,extendMarkRange:()=>MY,first:()=>BY,focus:()=>zY,forEach:()=>UY,insertContent:()=>PY,insertContentAt:()=>jY,joinBackward:()=>qY,joinDown:()=>VY,joinForward:()=>WY,joinItemBackward:()=>YY,joinItemForward:()=>KY,joinTextblockBackward:()=>XY,joinTextblockForward:()=>ZY,joinUp:()=>GY,keyboardShortcut:()=>JY,lift:()=>e8,liftEmptyBlock:()=>t8,liftListItem:()=>n8,newlineInCode:()=>r8,resetAttributes:()=>i8,scrollIntoView:()=>a8,selectAll:()=>o8,selectNodeBackward:()=>s8,selectNodeForward:()=>l8,selectParentNode:()=>u8,selectTextblockEnd:()=>c8,selectTextblockStart:()=>d8,setContent:()=>p8,setMark:()=>L8,setMeta:()=>M8,setNode:()=>B8,setNodeSelection:()=>F8,setTextDirection:()=>z8,setTextSelection:()=>U8,sinkListItem:()=>P8,splitBlock:()=>$8,splitListItem:()=>H8,toggleList:()=>j8,toggleMark:()=>G8,toggleNode:()=>V8,toggleWrap:()=>q8,undoInputRule:()=>W8,unsetAllMarks:()=>Y8,unsetMark:()=>K8,unsetTextDirection:()=>X8,updateAttributes:()=>Z8,wrapIn:()=>Q8,wrapInList:()=>J8});var wY=()=>({editor:e,view:t})=>(requestAnimationFrame(()=>{var n;e.isDestroyed||(t.dom.blur(),(n=window?.getSelection())==null||n.removeAllRanges())}),!0),TY=(e=!0)=>({commands:t})=>t.setContent("",{emitUpdate:e}),xY=()=>({state:e,tr:t,dispatch:n})=>{const{selection:r}=t,{ranges:i}=r;return n&&i.forEach(({$from:a,$to:s})=>{e.doc.nodesBetween(a.pos,s.pos,(u,c)=>{if(u.type.isText)return;const{doc:p,mapping:f}=t,m=p.resolve(f.map(c)),g=p.resolve(f.map(c+u.nodeSize)),b=m.blockRange(g);if(!b)return;const S=nl(b);if(u.type.isTextblock){const{defaultType:k}=m.parent.contentMatchAt(m.index());t.setNodeMarkup(b.start,k)}(S||S===0)&&t.lift(b,S)})}),!0},AY=e=>t=>e(t),CY=()=>({state:e,dispatch:t})=>HL(e,t),RY=(e,t)=>({editor:n,tr:r})=>{const{state:i}=n,a=i.doc.slice(e.from,e.to);r.deleteRange(e.from,e.to);const s=r.mapping.map(t);return r.insert(s,a.content),r.setSelection(new Ne(r.doc.resolve(Math.max(s-1,0)))),!0},NY=()=>({tr:e,dispatch:t})=>{const{selection:n}=e,r=n.$anchor.node();if(r.content.size>0)return!1;const i=e.selection.$anchor;for(let a=i.depth;a>0;a-=1)if(i.node(a).type===r.type){if(t){const u=i.before(a),c=i.after(a);e.delete(u,c).scrollIntoView()}return!0}return!1};function Bt(e,t){if(typeof e=="string"){if(!t.nodes[e])throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);return t.nodes[e]}return e}var _Y=e=>({tr:t,state:n,dispatch:r})=>{const i=Bt(e,n.schema),a=t.selection.$anchor;for(let s=a.depth;s>0;s-=1)if(a.node(s).type===i){if(r){const c=a.before(s),p=a.after(s);t.delete(c,p).scrollIntoView()}return!0}return!1},OY=e=>({tr:t,dispatch:n})=>{const{from:r,to:i}=e;return n&&t.delete(r,i),!0},IY=()=>({state:e,dispatch:t})=>OT(e,t),DY=()=>({commands:e})=>e.keyboardShortcut("Enter"),LY=()=>({state:e,dispatch:t})=>bW(e,t);function qT(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function Up(e,t,n={strict:!0}){const r=Object.keys(t);return r.length?r.every(i=>n.strict?t[i]===e[i]:qT(t[i])?t[i].test(e[i]):t[i]===e[i]):!0}function RM(e,t,n={}){return e.find(r=>r.type===t&&Up(Object.fromEntries(Object.keys(n).map(i=>[i,r.attrs[i]])),n))}function cO(e,t,n={}){return!!RM(e,t,n)}function WT(e,t,n){var r;if(!e||!t)return;let i=e.parent.childAfter(e.parentOffset);if((!i.node||!i.node.marks.some(f=>f.type===t))&&(i=e.parent.childBefore(e.parentOffset)),!i.node||!i.node.marks.some(f=>f.type===t)||(n=n||((r=i.node.marks[0])==null?void 0:r.attrs),!RM([...i.node.marks],t,n)))return;let s=i.index,u=e.start()+i.offset,c=s+1,p=u+i.node.nodeSize;for(;s>0&&cO([...e.parent.child(s-1).marks],t,n);)s-=1,u-=e.parent.child(s).nodeSize;for(;c<e.parent.childCount&&cO([...e.parent.child(c).marks],t,n);)p+=e.parent.child(c).nodeSize,c+=1;return{from:u,to:p}}function Ci(e,t){if(typeof e=="string"){if(!t.marks[e])throw Error(`There is no mark type named '${e}'. Maybe you forgot to add the extension?`);return t.marks[e]}return e}var MY=(e,t={})=>({tr:n,state:r,dispatch:i})=>{const a=Ci(e,r.schema),{doc:s,selection:u}=n,{$from:c,from:p,to:f}=u;if(i){const m=WT(c,a,t);if(m&&m.from<=p&&m.to>=f){const g=Ne.create(s,m.from,m.to);n.setSelection(g)}}return!0},BY=e=>t=>{const n=typeof e=="function"?e(t):e;for(let r=0;r<n.length;r+=1)if(n[r](t))return!0;return!1};function NM(e){return e instanceof Ne}function ao(e=0,t=0,n=0){return Math.min(Math.max(e,t),n)}function _M(e,t=null){if(!t)return null;const n=Fe.atStart(e),r=Fe.atEnd(e);if(t==="start"||t===!0)return n;if(t==="end")return r;const i=n.from,a=r.to;return t==="all"?Ne.create(e,ao(0,i,a),ao(e.content.size,i,a)):Ne.create(e,ao(t,i,a),ao(t,i,a))}function dO(){return navigator.platform==="Android"||/android/i.test(navigator.userAgent)}function Pp(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}function FY(){return typeof navigator<"u"?/^((?!chrome|android).)*safari/i.test(navigator.userAgent):!1}var zY=(e=null,t={})=>({editor:n,view:r,tr:i,dispatch:a})=>{t={scrollIntoView:!0,...t};const s=()=>{(Pp()||dO())&&r.dom.focus(),FY()&&!Pp()&&!dO()&&r.dom.focus({preventScroll:!0}),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),t?.scrollIntoView&&n.commands.scrollIntoView())})};try{if(r.hasFocus()&&e===null||e===!1)return!0}catch{return!1}if(a&&e===null&&!NM(n.state.selection))return s(),!0;const u=_M(i.doc,e)||n.state.selection,c=n.state.selection.eq(u);return a&&(c||i.setSelection(u),c&&i.storedMarks&&i.setStoredMarks(i.storedMarks),s()),!0},UY=(e,t)=>n=>e.every((r,i)=>t(r,{...n,index:i})),PY=(e,t)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},e,t),OM=e=>{const t=e.childNodes;for(let n=t.length-1;n>=0;n-=1){const r=t[n];r.nodeType===3&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?e.removeChild(r):r.nodeType===1&&OM(r)}return e};function fu(e){if(typeof window>"u")throw new Error("[tiptap error]: there is no window object available, so this function cannot be used");const t=`<body>${e}</body>`,n=new window.DOMParser().parseFromString(t,"text/html").body;return OM(n)}function qu(e,t,n){if(e instanceof ga||e instanceof ue)return e;n={slice:!0,parseOptions:{},...n};const r=typeof e=="object"&&e!==null,i=typeof e=="string";if(r)try{if(Array.isArray(e)&&e.length>0)return ue.fromArray(e.map(u=>t.nodeFromJSON(u)));const s=t.nodeFromJSON(e);return n.errorOnInvalidContent&&s.check(),s}catch(a){if(n.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:a});return console.warn("[tiptap warn]: Invalid content.","Passed value:",e,"Error:",a),qu("",t,n)}if(i){if(n.errorOnInvalidContent){let s=!1,u="";const c=new mL({topNode:t.spec.topNode,marks:t.spec.marks,nodes:t.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:p=>(s=!0,u=typeof p=="string"?p:p.outerHTML,null)}]}})});if(n.slice?Si.fromSchema(c).parseSlice(fu(e),n.parseOptions):Si.fromSchema(c).parse(fu(e),n.parseOptions),n.errorOnInvalidContent&&s)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${u}`)})}const a=Si.fromSchema(t);return n.slice?a.parseSlice(fu(e),n.parseOptions).content:a.parse(fu(e),n.parseOptions)}return qu("",t,n)}function $Y(e,t,n){const r=e.steps.length-1;if(r<t)return;const i=e.steps[r];if(!(i instanceof Vt||i instanceof qt))return;const a=e.mapping.maps[r];let s=0;a.forEach((u,c,p,f)=>{s===0&&(s=f)}),e.setSelection(Fe.near(e.doc.resolve(s),n))}var HY=e=>!("type"in e),jY=(e,t,n)=>({tr:r,dispatch:i,editor:a})=>{var s;if(i){n={parseOptions:a.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let u;const c=v=>{a.emit("contentError",{editor:a,error:v,disableCollaboration:()=>{"collaboration"in a.storage&&typeof a.storage.collaboration=="object"&&a.storage.collaboration&&(a.storage.collaboration.isDisabled=!0)}})},p={preserveWhitespace:"full",...n.parseOptions};if(!n.errorOnInvalidContent&&!a.options.enableContentCheck&&a.options.emitContentError)try{qu(t,a.schema,{parseOptions:p,errorOnInvalidContent:!0})}catch(v){c(v)}try{u=qu(t,a.schema,{parseOptions:p,errorOnInvalidContent:(s=n.errorOnInvalidContent)!=null?s:a.options.enableContentCheck})}catch(v){return c(v),!1}let{from:f,to:m}=typeof e=="number"?{from:e,to:e}:{from:e.from,to:e.to},g=!0,b=!0;if((HY(u)?u:[u]).forEach(v=>{v.check(),g=g?v.isText&&v.marks.length===0:!1,b=b?v.isBlock:!1}),f===m&&b){const{parent:v}=r.doc.resolve(f);v.isTextblock&&!v.type.spec.code&&!v.childCount&&(f-=1,m+=1)}let k;if(g){if(Array.isArray(t))k=t.map(v=>v.text||"").join("");else if(t instanceof ue){let v="";t.forEach(w=>{w.text&&(v+=w.text)}),k=v}else typeof t=="object"&&t&&t.text?k=t.text:k=t;r.insertText(k,f,m)}else{k=u;const v=r.doc.resolve(f),w=v.node(),x=v.parentOffset===0,A=w.isText||w.isTextblock,D=w.content.size>0;x&&A&&D&&(f=Math.max(0,f-1)),r.replaceWith(f,m,k)}n.updateSelection&&$Y(r,r.steps.length-1,-1),n.applyInputRules&&r.setMeta("applyInputRules",{from:f,text:k}),n.applyPasteRules&&r.setMeta("applyPasteRules",{from:f,text:k})}return!0},GY=()=>({state:e,dispatch:t})=>hW(e,t),VY=()=>({state:e,dispatch:t})=>mW(e,t),qY=()=>({state:e,dispatch:t})=>ML(e,t),WY=()=>({state:e,dispatch:t})=>UL(e,t),YY=()=>({state:e,dispatch:t,tr:n})=>{try{const r=Wf(e.doc,e.selection.$from.pos,-1);return r==null?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},KY=()=>({state:e,dispatch:t,tr:n})=>{try{const r=Wf(e.doc,e.selection.$from.pos,1);return r==null?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},XY=()=>({state:e,dispatch:t})=>pW(e,t),ZY=()=>({state:e,dispatch:t})=>fW(e,t);function IM(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function QY(e){const t=e.split(/-(?!$)/);let n=t[t.length-1];n==="Space"&&(n=" ");let r,i,a,s;for(let u=0;u<t.length-1;u+=1){const c=t[u];if(/^(cmd|meta|m)$/i.test(c))s=!0;else if(/^a(lt)?$/i.test(c))r=!0;else if(/^(c|ctrl|control)$/i.test(c))i=!0;else if(/^s(hift)?$/i.test(c))a=!0;else if(/^mod$/i.test(c))Pp()||IM()?s=!0:i=!0;else throw new Error(`Unrecognized modifier name: ${c}`)}return r&&(n=`Alt-${n}`),i&&(n=`Ctrl-${n}`),s&&(n=`Meta-${n}`),a&&(n=`Shift-${n}`),n}var JY=e=>({editor:t,view:n,tr:r,dispatch:i})=>{const a=QY(e).split(/-(?!$)/),s=a.find(p=>!["Alt","Ctrl","Meta","Shift"].includes(p)),u=new KeyboardEvent("keydown",{key:s==="Space"?" ":s,altKey:a.includes("Alt"),ctrlKey:a.includes("Ctrl"),metaKey:a.includes("Meta"),shiftKey:a.includes("Shift"),bubbles:!0,cancelable:!0}),c=t.captureTransaction(()=>{n.someProp("handleKeyDown",p=>p(n,u))});return c?.steps.forEach(p=>{const f=p.map(r.mapping);f&&i&&r.maybeStep(f)}),!0};function Ta(e,t,n={}){const{from:r,to:i,empty:a}=e.selection,s=t?Bt(t,e.schema):null,u=[];e.doc.nodesBetween(r,i,(m,g)=>{if(m.isText)return;const b=Math.max(r,g),S=Math.min(i,g+m.nodeSize);u.push({node:m,from:b,to:S})});const c=i-r,p=u.filter(m=>s?s.name===m.node.type.name:!0).filter(m=>Up(m.node.attrs,n,{strict:!1}));return a?!!p.length:p.reduce((m,g)=>m+g.to-g.from,0)>=c}var e8=(e,t={})=>({state:n,dispatch:r})=>{const i=Bt(e,n.schema);return Ta(n,i,t)?gW(n,r):!1},t8=()=>({state:e,dispatch:t})=>jL(e,t),n8=e=>({state:t,dispatch:n})=>{const r=Bt(e,t.schema);return RW(r)(t,n)},r8=()=>({state:e,dispatch:t})=>$L(e,t);function th(e,t){return t.nodes[e]?"node":t.marks[e]?"mark":null}function pO(e,t){const n=typeof t=="string"?[t]:t;return Object.keys(e).reduce((r,i)=>(n.includes(i)||(r[i]=e[i]),r),{})}var i8=(e,t)=>({tr:n,state:r,dispatch:i})=>{let a=null,s=null;const u=th(typeof e=="string"?e:e.name,r.schema);if(!u)return!1;u==="node"&&(a=Bt(e,r.schema)),u==="mark"&&(s=Ci(e,r.schema));let c=!1;return n.selection.ranges.forEach(p=>{r.doc.nodesBetween(p.$from.pos,p.$to.pos,(f,m)=>{a&&a===f.type&&(c=!0,i&&n.setNodeMarkup(m,void 0,pO(f.attrs,t))),s&&f.marks.length&&f.marks.forEach(g=>{s===g.type&&(c=!0,i&&n.addMark(m,m+f.nodeSize,s.create(pO(g.attrs,t))))})})}),c},a8=()=>({tr:e,dispatch:t})=>(t&&e.scrollIntoView(),!0),o8=()=>({tr:e,dispatch:t})=>{if(t){const n=new Yn(e.doc);e.setSelection(n)}return!0},s8=()=>({state:e,dispatch:t})=>FL(e,t),l8=()=>({state:e,dispatch:t})=>PL(e,t),u8=()=>({state:e,dispatch:t})=>SW(e,t),c8=()=>({state:e,dispatch:t})=>wW(e,t),d8=()=>({state:e,dispatch:t})=>vW(e,t);function Iy(e,t,n={},r={}){return qu(e,t,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}var p8=(e,{errorOnInvalidContent:t,emitUpdate:n=!0,parseOptions:r={}}={})=>({editor:i,tr:a,dispatch:s,commands:u})=>{const{doc:c}=a;if(r.preserveWhitespace!=="full"){const p=Iy(e,i.schema,r,{errorOnInvalidContent:t??i.options.enableContentCheck});return s&&a.replaceWith(0,c.content.size,p).setMeta("preventUpdate",!n),!0}return s&&a.setMeta("preventUpdate",!n),u.insertContentAt({from:0,to:c.content.size},e,{parseOptions:r,errorOnInvalidContent:t??i.options.enableContentCheck})};function DM(e,t){const n=Ci(t,e.schema),{from:r,to:i,empty:a}=e.selection,s=[];a?(e.storedMarks&&s.push(...e.storedMarks),s.push(...e.selection.$head.marks())):e.doc.nodesBetween(r,i,c=>{s.push(...c.marks)});const u=s.find(c=>c.type.name===n.name);return u?{...u.attrs}:{}}function LM(e,t){const n=new OL(e);return t.forEach(r=>{r.steps.forEach(i=>{n.step(i)})}),n}function f8(e){for(let t=0;t<e.edgeCount;t+=1){const{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}function h8(e,t,n){const r=[];return e.nodesBetween(t.from,t.to,(i,a)=>{n(i)&&r.push({node:i,pos:a})}),r}function m8(e,t){for(let n=e.depth;n>0;n-=1){const r=e.node(n);if(t(r))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:r}}}function nh(e){return t=>m8(t.$from,e)}function ke(e,t,n){return e.config[t]===void 0&&e.parent?ke(e.parent,t,n):typeof e.config[t]=="function"?e.config[t].bind({...n,parent:e.parent?ke(e.parent,t,n):null}):e.config[t]}function rh(e){return e.map(t=>{const n={name:t.name,options:t.options,storage:t.storage},r=ke(t,"addExtensions",n);return r?[t,...rh(r())]:t}).flat(10)}function YT(e,t){const n=Co.fromSchema(t).serializeFragment(e),i=document.implementation.createHTMLDocument().createElement("div");return i.appendChild(n),i.innerHTML}function MM(e){return typeof e=="function"}function nt(e,t=void 0,...n){return MM(e)?t?e.bind(t)(...n):e(...n):e}function g8(e={}){return Object.keys(e).length===0&&e.constructor===Object}function Hs(e){const t=e.filter(i=>i.type==="extension"),n=e.filter(i=>i.type==="node"),r=e.filter(i=>i.type==="mark");return{baseExtensions:t,nodeExtensions:n,markExtensions:r}}function BM(e){const t=[],{nodeExtensions:n,markExtensions:r}=Hs(e),i=[...n,...r],a={default:null,validate:void 0,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1},s=n.filter(p=>p.name!=="text").map(p=>p.name),u=r.map(p=>p.name),c=[...s,...u];return e.forEach(p=>{const f={name:p.name,options:p.options,storage:p.storage,extensions:i},m=ke(p,"addGlobalAttributes",f);if(!m)return;m().forEach(b=>{let S;Array.isArray(b.types)?S=b.types:b.types==="*"?S=c:b.types==="nodes"?S=s:b.types==="marks"?S=u:S=[],S.forEach(k=>{Object.entries(b.attributes).forEach(([v,w])=>{t.push({type:k,name:v,attribute:{...a,...w}})})})})}),i.forEach(p=>{const f={name:p.name,options:p.options,storage:p.storage},m=ke(p,"addAttributes",f);if(!m)return;const g=m();Object.entries(g).forEach(([b,S])=>{const k={...a,...S};typeof k?.default=="function"&&(k.default=k.default()),k?.isRequired&&k?.default===void 0&&delete k.default,t.push({type:p.name,name:b,attribute:k})})}),t}function b8(e){const t=[];let n="",r=!1,i=!1,a=0;const s=e.length;for(let u=0;u<s;u+=1){const c=e[u];if(c==="'"&&!i){r=!r,n+=c;continue}if(c==='"'&&!r){i=!i,n+=c;continue}if(!r&&!i){if(c==="("){a+=1,n+=c;continue}if(c===")"&&a>0){a-=1,n+=c;continue}if(c===";"&&a===0){t.push(n),n="";continue}}n+=c}return n&&t.push(n),t}function fO(e){const t=[],n=b8(e||""),r=n.length;for(let i=0;i<r;i+=1){const a=n[i],s=a.indexOf(":");if(s===-1)continue;const u=a.slice(0,s).trim(),c=a.slice(s+1).trim();u&&c&&t.push([u,c])}return t}function Ft(...e){return e.filter(t=>!!t).reduce((t,n)=>{const r={...t};return Object.entries(n).forEach(([i,a])=>{if(!r[i]){r[i]=a;return}if(i==="class"){const u=a?String(a).split(" "):[],c=r[i]?r[i].split(" "):[],p=u.filter(f=>!c.includes(f));r[i]=[...c,...p].join(" ")}else if(i==="style"){const u=new Map([...fO(r[i]),...fO(a)]);r[i]=Array.from(u.entries()).map(([c,p])=>`${c}: ${p}`).join("; ")}else r[i]=a}),r},{})}function Wu(e,t){return t.filter(n=>n.type===e.type.name).filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(e.attrs)||{}:{[n.name]:e.attrs[n.name]}).reduce((n,r)=>Ft(n,r),{})}function y8(e){return typeof e!="string"?e:e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):e==="true"?!0:e==="false"?!1:e}function hO(e,t){return"style"in e?e:{...e,getAttrs:n=>{const r=e.getAttrs?e.getAttrs(n):e.attrs;if(r===!1)return!1;const i=t.reduce((a,s)=>{const u=s.attribute.parseHTML?s.attribute.parseHTML(n):y8(n.getAttribute(s.name));return u==null?a:{...a,[s.name]:u}},{});return{...r,...i}}}}function mO(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>t==="attrs"&&g8(n)?!1:n!=null))}function gO(e){var t,n;const r={};return!((t=e?.attribute)!=null&&t.isRequired)&&"default"in(e?.attribute||{})&&(r.default=e.attribute.default),((n=e?.attribute)==null?void 0:n.validate)!==void 0&&(r.validate=e.attribute.validate),[e.name,r]}function FM(e,t){var n;const r=BM(e),{nodeExtensions:i,markExtensions:a}=Hs(e),s=(n=i.find(p=>ke(p,"topNode")))==null?void 0:n.name,u=Object.fromEntries(i.map(p=>{const f=r.filter(w=>w.type===p.name),m={name:p.name,options:p.options,storage:p.storage,editor:t},g=e.reduce((w,x)=>{const A=ke(x,"extendNodeSchema",m);return{...w,...A?A(p):{}}},{}),b=mO({...g,content:nt(ke(p,"content",m)),marks:nt(ke(p,"marks",m)),group:nt(ke(p,"group",m)),inline:nt(ke(p,"inline",m)),atom:nt(ke(p,"atom",m)),selectable:nt(ke(p,"selectable",m)),draggable:nt(ke(p,"draggable",m)),code:nt(ke(p,"code",m)),whitespace:nt(ke(p,"whitespace",m)),linebreakReplacement:nt(ke(p,"linebreakReplacement",m)),defining:nt(ke(p,"defining",m)),isolating:nt(ke(p,"isolating",m)),attrs:Object.fromEntries(f.map(gO))}),S=nt(ke(p,"parseHTML",m));S&&(b.parseDOM=S.map(w=>hO(w,f)));const k=ke(p,"renderHTML",m);k&&(b.toDOM=w=>k({node:w,HTMLAttributes:Wu(w,f)}));const v=ke(p,"renderText",m);return v&&(b.toText=v),[p.name,b]})),c=Object.fromEntries(a.map(p=>{const f=r.filter(v=>v.type===p.name),m={name:p.name,options:p.options,storage:p.storage,editor:t},g=e.reduce((v,w)=>{const x=ke(w,"extendMarkSchema",m);return{...v,...x?x(p):{}}},{}),b=mO({...g,inclusive:nt(ke(p,"inclusive",m)),excludes:nt(ke(p,"excludes",m)),group:nt(ke(p,"group",m)),spanning:nt(ke(p,"spanning",m)),code:nt(ke(p,"code",m)),attrs:Object.fromEntries(f.map(gO))}),S=nt(ke(p,"parseHTML",m));S&&(b.parseDOM=S.map(v=>hO(v,f)));const k=ke(p,"renderHTML",m);return k&&(b.toDOM=v=>k({mark:v,HTMLAttributes:Wu(v,f)})),[p.name,b]}));return new mL({topNode:s,nodes:u,marks:c})}function E8(e){const t=e.filter((n,r)=>e.indexOf(n)!==r);return Array.from(new Set(t))}function xu(e){return e.sort((n,r)=>{const i=ke(n,"priority")||100,a=ke(r,"priority")||100;return i>a?-1:i<a?1:0})}function KT(e){const t=xu(rh(e)),n=E8(t.map(r=>r.name));return n.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map(r=>`'${r}'`).join(", ")}]. This can lead to issues.`),t}function S8(e,t){const n=KT(e);return FM(n,t)}function k8(e,t){const n=S8(t),r=fu(e);return Si.fromSchema(n).parse(r).toJSON()}function zM(e,t,n){const{from:r,to:i}=t,{blockSeparator:a=`
|
|
95
|
+
|
|
96
|
+
`,textSerializers:s={}}=n||{};let u="";return e.nodesBetween(r,i,(c,p,f,m)=>{var g;c.isBlock&&p>r&&(u+=a);const b=s?.[c.type.name];if(b)return f&&(u+=b({node:c,pos:p,parent:f,index:m,range:t})),!1;c.isText&&(u+=(g=c?.text)==null?void 0:g.slice(Math.max(r,p)-p,i-p))}),u}function v8(e,t){const n={from:0,to:e.content.size};return zM(e,n,t)}function UM(e){return Object.fromEntries(Object.entries(e.nodes).filter(([,t])=>t.spec.toText).map(([t,n])=>[t,n.spec.toText]))}function w8(e,t){const n=Bt(t,e.schema),{from:r,to:i}=e.selection,a=[];e.doc.nodesBetween(r,i,u=>{a.push(u)});const s=a.reverse().find(u=>u.type.name===n.name);return s?{...s.attrs}:{}}function PM(e,t){const n=th(typeof t=="string"?t:t.name,e.schema);return n==="node"?w8(e,t):n==="mark"?DM(e,t):{}}function T8(e,t=JSON.stringify){const n={};return e.filter(r=>{const i=t(r);return Object.prototype.hasOwnProperty.call(n,i)?!1:n[i]=!0})}function x8(e){const t=T8(e);return t.length===1?t:t.filter((n,r)=>!t.filter((a,s)=>s!==r).some(a=>n.oldRange.from>=a.oldRange.from&&n.oldRange.to<=a.oldRange.to&&n.newRange.from>=a.newRange.from&&n.newRange.to<=a.newRange.to))}function $M(e){const{mapping:t,steps:n}=e,r=[];return t.maps.forEach((i,a)=>{const s=[];if(i.ranges.length)i.forEach((u,c)=>{s.push({from:u,to:c})});else{const{from:u,to:c}=n[a];if(u===void 0||c===void 0)return;s.push({from:u,to:c})}s.forEach(({from:u,to:c})=>{const p=t.slice(a).map(u,-1),f=t.slice(a).map(c),m=t.invert().map(p,-1),g=t.invert().map(f);r.push({oldRange:{from:m,to:g},newRange:{from:p,to:f}})})}),x8(r)}function XT(e,t,n){const r=[];return e===t?n.resolve(e).marks().forEach(i=>{const a=n.resolve(e),s=WT(a,i.type);s&&r.push({mark:i,...s})}):n.nodesBetween(e,t,(i,a)=>{!i||i?.nodeSize===void 0||r.push(...i.marks.map(s=>({from:a,to:a+i.nodeSize,mark:s})))}),r}var A8=(e,t,n,r=20)=>{const i=e.doc.resolve(n);let a=r,s=null;for(;a>0&&s===null;){const u=i.node(a);u?.type.name===t?s=u:a-=1}return[s,a]};function iu(e,t){return t.nodes[e]||t.marks[e]||null}function pp(e,t,n){return Object.fromEntries(Object.entries(n).filter(([r])=>{const i=e.find(a=>a.type===t&&a.name===r);return i?i.attribute.keepOnSplit:!1}))}var C8=(e,t=500)=>{let n="";const r=e.parentOffset;return e.parent.nodesBetween(Math.max(0,r-t),r,(i,a,s,u)=>{var c,p;const f=((p=(c=i.type.spec).toText)==null?void 0:p.call(c,{node:i,pos:a,parent:s,index:u}))||i.textContent||"%leaf%";n+=i.isAtom&&!i.isText?f:f.slice(0,Math.max(0,r-a))}),n};function Dy(e,t,n={}){const{empty:r,ranges:i}=e.selection,a=t?Ci(t,e.schema):null;if(r)return!!(e.storedMarks||e.selection.$from.marks()).filter(m=>a?a.name===m.type.name:!0).find(m=>Up(m.attrs,n,{strict:!1}));let s=0;const u=[];if(i.forEach(({$from:m,$to:g})=>{const b=m.pos,S=g.pos;e.doc.nodesBetween(b,S,(k,v)=>{if(a&&k.inlineContent&&!k.type.allowsMarkType(a))return!1;if(!k.isText&&!k.marks.length)return;const w=Math.max(b,v),x=Math.min(S,v+k.nodeSize),A=x-w;s+=A,u.push(...k.marks.map(D=>({mark:D,from:w,to:x})))})}),s===0)return!1;const c=u.filter(m=>a?a.name===m.mark.type.name:!0).filter(m=>Up(m.mark.attrs,n,{strict:!1})).reduce((m,g)=>m+g.to-g.from,0),p=u.filter(m=>a?m.mark.type!==a&&m.mark.type.excludes(a):!0).reduce((m,g)=>m+g.to-g.from,0);return(c>0?c+p:c)>=s}function R8(e,t,n={}){if(!t)return Ta(e,null,n)||Dy(e,null,n);const r=th(t,e.schema);return r==="node"?Ta(e,t,n):r==="mark"?Dy(e,t,n):!1}var N8=(e,t)=>{const{$from:n,$to:r,$anchor:i}=e.selection;if(t){const a=nh(u=>u.type.name===t)(e.selection);if(!a)return!1;const s=e.doc.resolve(a.pos+1);return i.pos+1===s.end()}return!(r.parentOffset<r.parent.nodeSize-2||n.pos!==r.pos)},_8=e=>{const{$from:t,$to:n}=e.selection;return!(t.parentOffset>0||t.pos!==n.pos)};function bO(e,t){return Array.isArray(t)?t.some(n=>(typeof n=="string"?n:n.name)===e.name):t}function yO(e,t){const{nodeExtensions:n}=Hs(t),r=n.find(s=>s.name===e);if(!r)return!1;const i={name:r.name,options:r.options,storage:r.storage},a=nt(ke(r,"group",i));return typeof a!="string"?!1:a.split(" ").includes("list")}function ih(e,{checkChildren:t=!0,ignoreWhitespace:n=!1}={}){var r;if(n){if(e.type.name==="hardBreak")return!0;if(e.isText)return!/\S/.test((r=e.text)!=null?r:"")}if(e.isText)return!e.text;if(e.isAtom||e.isLeaf)return!1;if(e.content.childCount===0)return!0;if(t){let i=!0;return e.content.forEach(a=>{i!==!1&&(ih(a,{ignoreWhitespace:n,checkChildren:t})||(i=!1))}),i}return!1}function HM(e){return e instanceof xe}var jM=class GM{constructor(t){this.position=t}static fromJSON(t){return new GM(t.position)}toJSON(){return{position:this.position}}};function O8(e,t){const n=t.mapping.mapResult(e.position);return{position:new jM(n.pos),mapResult:n}}function I8(e){return new jM(e)}function D8(e,t,n){var r;const{selection:i}=t;let a=null;if(NM(i)&&(a=i.$cursor),a){const u=(r=e.storedMarks)!=null?r:a.marks();return a.parent.type.allowsMarkType(n)&&(!!n.isInSet(u)||!u.some(p=>p.type.excludes(n)))}const{ranges:s}=i;return s.some(({$from:u,$to:c})=>{let p=u.depth===0?e.doc.inlineContent&&e.doc.type.allowsMarkType(n):!1;return e.doc.nodesBetween(u.pos,c.pos,(f,m,g)=>{if(p)return!1;if(f.isInline){const b=!g||g.type.allowsMarkType(n),S=!!n.isInSet(f.marks)||!f.marks.some(k=>k.type.excludes(n));p=b&&S}return!p}),p})}var L8=(e,t={})=>({tr:n,state:r,dispatch:i})=>{const{selection:a}=n,{empty:s,ranges:u}=a,c=Ci(e,r.schema);if(i)if(s){const p=DM(r,c);n.addStoredMark(c.create({...p,...t}))}else u.forEach(p=>{const f=p.$from.pos,m=p.$to.pos;r.doc.nodesBetween(f,m,(g,b)=>{const S=Math.max(b,f),k=Math.min(b+g.nodeSize,m);g.marks.find(w=>w.type===c)?g.marks.forEach(w=>{c===w.type&&n.addMark(S,k,c.create({...w.attrs,...t}))}):n.addMark(S,k,c.create(t))})});return D8(r,n,c)},M8=(e,t)=>({tr:n})=>(n.setMeta(e,t),!0),B8=(e,t={})=>({state:n,dispatch:r,chain:i})=>{const a=Bt(e,n.schema);let s;return n.selection.$anchor.sameParent(n.selection.$head)&&(s=n.selection.$anchor.parent.attrs),a.isTextblock?i().command(({commands:u})=>__(a,{...s,...t})(n)?!0:u.clearNodes()).command(({state:u})=>__(a,{...s,...t})(u,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},F8=e=>({tr:t,dispatch:n})=>{if(n){const{doc:r}=t,i=ao(e,0,r.content.size),a=xe.create(r,i);t.setSelection(a)}return!0},z8=(e,t)=>({tr:n,state:r,dispatch:i})=>{const{selection:a}=r;let s,u;return typeof t=="number"?(s=t,u=t):t&&"from"in t&&"to"in t?(s=t.from,u=t.to):(s=a.from,u=a.to),i&&n.doc.nodesBetween(s,u,(c,p)=>{c.isText||n.setNodeMarkup(p,void 0,{...c.attrs,dir:e})}),!0},U8=e=>({tr:t,dispatch:n})=>{if(n){const{doc:r}=t,{from:i,to:a}=typeof e=="number"?{from:e,to:e}:e,s=Ne.atStart(r).from,u=Ne.atEnd(r).to,c=ao(i,s,u),p=ao(a,s,u),f=Ne.create(r,c,p);t.setSelection(f)}return!0},P8=e=>({state:t,dispatch:n})=>{const r=Bt(e,t.schema);return OW(r)(t,n)};function EO(e,t){const n=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(n){const r=n.filter(i=>t?.includes(i.type.name));e.tr.ensureMarks(r)}}var $8=({keepMarks:e=!0}={})=>({tr:t,state:n,dispatch:r,editor:i})=>{const{selection:a,doc:s}=t,{$from:u,$to:c}=a,p=i.extensionManager.attributes,f=pp(p,u.node().type.name,u.node().attrs);if(a instanceof xe&&a.node.isBlock)return!u.parentOffset||!ki(s,u.pos)?!1:(r&&(e&&EO(n,i.extensionManager.splittableMarks),t.split(u.pos).scrollIntoView()),!0);if(!u.parent.isBlock)return!1;const m=c.parentOffset===c.parent.content.size,g=u.depth===0?void 0:f8(u.node(-1).contentMatchAt(u.indexAfter(-1)));let b=m&&g?[{type:g,attrs:f}]:void 0,S=ki(t.doc,t.mapping.map(u.pos),1,b);if(!b&&!S&&ki(t.doc,t.mapping.map(u.pos),1,g?[{type:g}]:void 0)&&(S=!0,b=g?[{type:g,attrs:f}]:void 0),r){if(S&&(a instanceof Ne&&t.deleteSelection(),t.split(t.mapping.map(u.pos),1,b),g&&!m&&!u.parentOffset&&u.parent.type!==g)){const k=t.mapping.map(u.before()),v=t.doc.resolve(k);u.node(-1).canReplaceWith(v.index(),v.index()+1,g)&&t.setNodeMarkup(t.mapping.map(u.before()),g)}e&&EO(n,i.extensionManager.splittableMarks),t.scrollIntoView()}return S},H8=(e,t={})=>({tr:n,state:r,dispatch:i,editor:a})=>{var s;const u=Bt(e,r.schema),{$from:c,$to:p}=r.selection,f=r.selection.node;if(f&&f.isBlock||c.depth<2||!c.sameParent(p))return!1;const m=c.node(-1);if(m.type!==u)return!1;const g=a.extensionManager.attributes;if(c.parent.content.size===0&&c.node(-1).childCount===c.indexAfter(-1)){if(c.depth===2||c.node(-3).type!==u||c.index(-2)!==c.node(-2).childCount-1)return!1;if(i){let w=ue.empty;const x=c.index(-1)?1:c.index(-2)?2:3;for(let U=c.depth-x;U>=c.depth-3;U-=1)w=ue.from(c.node(U).copy(w));const A=c.indexAfter(-1)<c.node(-2).childCount?1:c.indexAfter(-2)<c.node(-3).childCount?2:3,D={...pp(g,c.node().type.name,c.node().attrs),...t},O=((s=u.contentMatch.defaultType)==null?void 0:s.createAndFill(D))||void 0;w=w.append(ue.from(u.createAndFill(null,O)||void 0));const R=c.before(c.depth-(x-1));n.replace(R,c.after(-A),new ge(w,4-x,0));let M=-1;n.doc.nodesBetween(R,n.doc.content.size,(U,G)=>{if(M>-1)return!1;U.isTextblock&&U.content.size===0&&(M=G+1)}),M>-1&&n.setSelection(Ne.near(n.doc.resolve(M))),n.scrollIntoView()}return!0}const b=p.pos===c.end()?m.contentMatchAt(0).defaultType:null,S={...pp(g,m.type.name,m.attrs),...t},k={...pp(g,c.node().type.name,c.node().attrs),...t};n.delete(c.pos,p.pos);const v=b?[{type:u,attrs:S},{type:b,attrs:k}]:[{type:u,attrs:S}];if(!ki(n.doc,c.pos,2))return!1;if(i){const{selection:w,storedMarks:x}=r,{splittableMarks:A}=a.extensionManager,D=x||w.$to.parentOffset&&w.$from.marks();if(n.split(c.pos,2,v).scrollIntoView(),!D||!i)return!0;const O=D.filter(R=>A.includes(R.type.name));n.ensureMarks(O)}return!0},xb=(e,t)=>{const n=nh(s=>s.type===t)(e.selection);if(!n)return!0;const r=e.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(r===void 0)return!0;const i=e.doc.nodeAt(r);return n.node.type===i?.type&&_a(e.doc,n.pos)&&e.join(n.pos),!0},Ab=(e,t)=>{const n=nh(s=>s.type===t)(e.selection);if(!n)return!0;const r=e.doc.resolve(n.start).after(n.depth);if(r===void 0)return!0;const i=e.doc.nodeAt(r);return n.node.type===i?.type&&_a(e.doc,r)&&e.join(r),!0},j8=(e,t,n,r={})=>({editor:i,tr:a,state:s,dispatch:u,chain:c,commands:p,can:f})=>{const{extensions:m,splittableMarks:g}=i.extensionManager,b=Bt(e,s.schema),S=Bt(t,s.schema),{selection:k,storedMarks:v}=s,{$from:w,$to:x}=k,A=w.blockRange(x),D=v||k.$to.parentOffset&&k.$from.marks();if(!A)return!1;const O=nh(R=>yO(R.type.name,m))(k);if(A.depth>=1&&O&&A.depth-O.depth<=1){if(O.node.type===b)return p.liftListItem(S);if(yO(O.node.type.name,m)&&b.validContent(O.node.content)&&u)return c().command(()=>(a.setNodeMarkup(O.pos,b),!0)).command(()=>xb(a,b)).command(()=>Ab(a,b)).run()}return!n||!D||!u?c().command(()=>f().wrapInList(b,r)?!0:p.clearNodes()).wrapInList(b,r).command(()=>xb(a,b)).command(()=>Ab(a,b)).run():c().command(()=>{const R=f().wrapInList(b,r),M=D.filter(U=>g.includes(U.type.name));return a.ensureMarks(M),R?!0:p.clearNodes()}).wrapInList(b,r).command(()=>xb(a,b)).command(()=>Ab(a,b)).run()},G8=(e,t={},n={})=>({state:r,commands:i})=>{const{extendEmptyMarkRange:a=!1}=n,s=Ci(e,r.schema);return Dy(r,s,t)?i.unsetMark(s,{extendEmptyMarkRange:a}):i.setMark(s,t)},V8=(e,t,n={})=>({state:r,commands:i})=>{const a=Bt(e,r.schema),s=Bt(t,r.schema),u=Ta(r,a,n);let c;return r.selection.$anchor.sameParent(r.selection.$head)&&(c=r.selection.$anchor.parent.attrs),u?i.setNode(s,c):i.setNode(a,{...c,...n})},q8=(e,t={})=>({state:n,commands:r})=>{const i=Bt(e,n.schema);return Ta(n,i,t)?r.lift(i):r.wrapIn(i,t)},W8=()=>({state:e,dispatch:t})=>{const n=e.plugins;for(let r=0;r<n.length;r+=1){const i=n[r];let a;if(i.spec.isInputRules&&(a=i.getState(e))){if(t){const s=e.tr,u=a.transform;for(let c=u.steps.length-1;c>=0;c-=1)s.step(u.steps[c].invert(u.docs[c]));if(a.text){const c=s.doc.resolve(a.from).marks();s.replaceWith(a.from,a.to,e.schema.text(a.text,c))}else s.delete(a.from,a.to)}return!0}}return!1},Y8=()=>({tr:e,dispatch:t})=>{const{selection:n}=e,{empty:r,ranges:i}=n;return r||t&&i.forEach(a=>{e.removeMark(a.$from.pos,a.$to.pos)}),!0},K8=(e,t={})=>({tr:n,state:r,dispatch:i})=>{var a;const{extendEmptyMarkRange:s=!1}=t,{selection:u}=n,c=Ci(e,r.schema),{$from:p,empty:f,ranges:m}=u;if(!i)return!0;if(f&&s){let{from:g,to:b}=u;const S=(a=p.marks().find(v=>v.type===c))==null?void 0:a.attrs,k=WT(p,c,S);k&&(g=k.from,b=k.to),n.removeMark(g,b,c)}else m.forEach(g=>{n.removeMark(g.$from.pos,g.$to.pos,c)});return n.removeStoredMark(c),!0},X8=e=>({tr:t,state:n,dispatch:r})=>{const{selection:i}=n;let a,s;return typeof e=="number"?(a=e,s=e):e&&"from"in e&&"to"in e?(a=e.from,s=e.to):(a=i.from,s=i.to),r&&t.doc.nodesBetween(a,s,(u,c)=>{if(u.isText)return;const p={...u.attrs};delete p.dir,t.setNodeMarkup(c,void 0,p)}),!0},Z8=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let a=null,s=null;const u=th(typeof e=="string"?e:e.name,r.schema);if(!u)return!1;u==="node"&&(a=Bt(e,r.schema)),u==="mark"&&(s=Ci(e,r.schema));let c=!1;return n.selection.ranges.forEach(p=>{const f=p.$from.pos,m=p.$to.pos;let g,b,S,k;n.selection.empty?r.doc.nodesBetween(f,m,(v,w)=>{a&&a===v.type&&(c=!0,S=Math.max(w,f),k=Math.min(w+v.nodeSize,m),g=w,b=v)}):r.doc.nodesBetween(f,m,(v,w)=>{w<f&&a&&a===v.type&&(c=!0,S=Math.max(w,f),k=Math.min(w+v.nodeSize,m),g=w,b=v),w>=f&&w<=m&&(a&&a===v.type&&(c=!0,i&&n.setNodeMarkup(w,void 0,{...v.attrs,...t})),s&&v.marks.length&&v.marks.forEach(x=>{if(s===x.type&&(c=!0,i)){const A=Math.max(w,f),D=Math.min(w+v.nodeSize,m);n.addMark(A,D,s.create({...x.attrs,...t}))}}))}),b&&(g!==void 0&&i&&n.setNodeMarkup(g,void 0,{...b.attrs,...t}),s&&b.marks.length&&b.marks.forEach(v=>{s===v.type&&i&&n.addMark(S,k,s.create({...v.attrs,...t}))}))}),c},Q8=(e,t={})=>({state:n,dispatch:r})=>{const i=Bt(e,n.schema);return TW(i,t)(n,r)},J8=(e,t={})=>({state:n,dispatch:r})=>{const i=Bt(e,n.schema);return xW(i,t)(n,r)},eK=class{constructor(){this.callbacks={}}on(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),this}emit(e,...t){const n=this.callbacks[e];return n&&n.forEach(r=>r.apply(this,t)),this}off(e,t){const n=this.callbacks[e];return n&&(t?this.callbacks[e]=n.filter(r=>r!==t):delete this.callbacks[e]),this}once(e,t){const n=(...r)=>{this.off(e,n),t.apply(this,r)};return this.on(e,n)}removeAllListeners(){this.callbacks={}}},ah=class{constructor(e){var t;this.find=e.find,this.handler=e.handler,this.undoable=(t=e.undoable)!=null?t:!0}},tK=(e,t)=>{if(qT(t))return t.exec(e);const n=t(e);if(!n)return null;const r=[n.text];return r.index=n.index,r.input=e,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),r.push(n.replaceWith)),r};function Yd(e){var t;const{editor:n,from:r,to:i,text:a,rules:s,plugin:u}=e,{view:c}=n;if(c.composing)return!1;const p=c.state.doc.resolve(r);if(p.parent.type.spec.code||(t=p.nodeBefore||p.nodeAfter)!=null&&t.marks.find(g=>g.type.spec.code))return!1;let f=!1;const m=C8(p)+a;return s.forEach(g=>{if(f)return;const b=tK(m,g.find);if(!b)return;const S=c.state.tr,k=Jf({state:c.state,transaction:S}),v={from:r-(b[0].length-a.length),to:i},{commands:w,chain:x,can:A}=new eh({editor:n,state:k});g.handler({state:k,range:v,match:b,commands:w,chain:x,can:A})===null||!S.steps.length||(g.undoable&&S.setMeta(u,{transform:S,from:r,to:i,text:a}),c.dispatch(S),f=!0)}),f}function nK(e){const{editor:t,rules:n}=e,r=new yt({state:{init(){return null},apply(i,a,s){const u=i.getMeta(r);if(u)return u;const c=i.getMeta("applyInputRules");return c&&setTimeout(()=>{let{text:f}=c;typeof f=="string"?f=f:f=YT(ue.from(f),s.schema);const{from:m}=c,g=m+f.length;Yd({editor:t,from:m,to:g,text:f,rules:n,plugin:r})}),i.selectionSet||i.docChanged?null:a}},props:{handleTextInput(i,a,s,u){return Yd({editor:t,from:a,to:s,text:u,rules:n,plugin:r})},handleDOMEvents:{compositionend:i=>(setTimeout(()=>{const{$cursor:a}=i.state.selection;a&&Yd({editor:t,from:a.pos,to:a.pos,text:"",rules:n,plugin:r})}),!1)},handleKeyDown(i,a){if(a.key!=="Enter")return!1;const{$cursor:s}=i.state.selection;return s?Yd({editor:t,from:s.pos,to:s.pos,text:`
|
|
97
|
+
`,rules:n,plugin:r}):!1}},isInputRules:!0});return r}function rK(e){return Object.prototype.toString.call(e).slice(8,-1)}function Kd(e){return rK(e)!=="Object"?!1:e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype}function VM(e,t){const n={...e};return Kd(e)&&Kd(t)&&Object.keys(t).forEach(r=>{Kd(t[r])&&Kd(e[r])?n[r]=VM(e[r],t[r]):n[r]=t[r]}),n}var ZT=class{constructor(e={}){this.type="extendable",this.parent=null,this.child=null,this.name="",this.config={name:this.name},this.config={...this.config,...e},this.name=this.config.name}get options(){return{...nt(ke(this,"addOptions",{name:this.name}))||{}}}get storage(){return{...nt(ke(this,"addStorage",{name:this.name,options:this.options}))||{}}}configure(e={}){const t=this.extend({...this.config,addOptions:()=>VM(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(e={}){const t=new this.constructor({...this.config,...e});return t.parent=this,this.child=t,t.name="name"in e?e.name:t.parent.name,t}},Ro=class qM extends ZT{constructor(){super(...arguments),this.type="mark"}static create(t={}){const n=typeof t=="function"?t():t;return new qM(n)}static handleExit({editor:t,mark:n}){const{tr:r}=t.state,i=t.state.selection.$from;if(i.pos===i.end()){const s=i.marks();if(!!!s.find(p=>p?.type.name===n.name))return!1;const c=s.find(p=>p?.type.name===n.name);return c&&r.removeStoredMark(c),r.insertText(" ",i.pos),t.view.dispatch(r),!0}return!1}configure(t){return super.configure(t)}extend(t){const n=typeof t=="function"?t():t;return super.extend(n)}};function iK(e){return typeof e=="number"}var aK=class{constructor(e){this.find=e.find,this.handler=e.handler}},oK=(e,t,n)=>{if(qT(t))return[...e.matchAll(t)];const r=t(e,n);return r?r.map(i=>{const a=[i.text];return a.index=i.index,a.input=e,a.data=i.data,i.replaceWith&&(i.text.includes(i.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),a.push(i.replaceWith)),a}):[]};function sK(e){const{editor:t,state:n,from:r,to:i,rule:a,pasteEvent:s,dropEvent:u}=e,{commands:c,chain:p,can:f}=new eh({editor:t,state:n}),m=[];return n.doc.nodesBetween(r,i,(b,S)=>{var k,v,w,x,A;if((v=(k=b.type)==null?void 0:k.spec)!=null&&v.code||!(b.isText||b.isTextblock||b.isInline))return;const D=(A=(x=(w=b.content)==null?void 0:w.size)!=null?x:b.nodeSize)!=null?A:0,O=Math.max(r,S),R=Math.min(i,S+D);if(O>=R)return;const M=b.isText?b.text||"":b.textBetween(O-S,R-S,void 0,"");oK(M,a.find,s).forEach(G=>{if(G.index===void 0)return;const F=O+G.index+1,Q=F+G[0].length,q={from:n.tr.mapping.map(F),to:n.tr.mapping.map(Q)},te=a.handler({state:n,range:q,match:G,commands:c,chain:p,can:f,pasteEvent:s,dropEvent:u});m.push(te)})}),m.every(b=>b!==null)}var Xd=null,lK=e=>{var t;const n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(t=n.clipboardData)==null||t.setData("text/html",e),n};function uK(e){const{editor:t,rules:n}=e;let r=null,i=!1,a=!1,s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,u;try{u=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{u=null}const c=({state:f,from:m,to:g,rule:b,pasteEvt:S})=>{const k=f.tr,v=Jf({state:f,transaction:k});if(!(!sK({editor:t,state:v,from:Math.max(m-1,0),to:g.b-1,rule:b,pasteEvent:S,dropEvent:u})||!k.steps.length)){try{u=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{u=null}return s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,k}};return n.map(f=>new yt({view(m){const g=S=>{var k;r=(k=m.dom.parentElement)!=null&&k.contains(S.target)?m.dom.parentElement:null,r&&(Xd=t)},b=()=>{Xd&&(Xd=null)};return window.addEventListener("dragstart",g),window.addEventListener("dragend",b),{destroy(){window.removeEventListener("dragstart",g),window.removeEventListener("dragend",b)}}},props:{handleDOMEvents:{drop:(m,g)=>{if(a=r===m.dom.parentElement,u=g,!a){const b=Xd;b?.isEditable&&setTimeout(()=>{const S=b.state.selection;S&&b.commands.deleteRange({from:S.from,to:S.to})},10)}return!1},paste:(m,g)=>{var b;const S=(b=g.clipboardData)==null?void 0:b.getData("text/html");return s=g,i=!!S?.includes("data-pm-slice"),!1}}},appendTransaction:(m,g,b)=>{const S=m[0],k=S.getMeta("uiEvent")==="paste"&&!i,v=S.getMeta("uiEvent")==="drop"&&!a,w=S.getMeta("applyPasteRules"),x=!!w;if(!k&&!v&&!x)return;if(x){let{text:O}=w;typeof O=="string"?O=O:O=YT(ue.from(O),b.schema);const{from:R}=w,M=R+O.length,U=lK(O);return c({rule:f,state:b,from:R,to:{b:M},pasteEvt:U})}const A=g.doc.content.findDiffStart(b.doc.content),D=g.doc.content.findDiffEnd(b.doc.content);if(!(!iK(A)||!D||A===D.b))return c({rule:f,state:b,from:A,to:D,pasteEvt:s})}}))}var oh=class{constructor(e,t){this.splittableMarks=[],this.editor=t,this.baseExtensions=e,this.extensions=KT(e),this.schema=FM(this.extensions,t),this.setupExtensions()}get commands(){return this.extensions.reduce((e,t)=>{const n={name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:this.editor,type:iu(t.name,this.schema)},r=ke(t,"addCommands",n);return r?{...e,...r()}:e},{})}get plugins(){const{editor:e}=this;return xu([...this.extensions].reverse()).flatMap(r=>{const i={name:r.name,options:r.options,storage:this.editor.extensionStorage[r.name],editor:e,type:iu(r.name,this.schema)},a=[],s=ke(r,"addKeyboardShortcuts",i);let u={};if(r.type==="mark"&&ke(r,"exitable",i)&&(u.ArrowRight=()=>Ro.handleExit({editor:e,mark:r})),s){const g=Object.fromEntries(Object.entries(s()).map(([b,S])=>[b,()=>S({editor:e})]));u={...u,...g}}const c=kY(u);a.push(c);const p=ke(r,"addInputRules",i);if(bO(r,e.options.enableInputRules)&&p){const g=p();if(g&&g.length){const b=nK({editor:e,rules:g}),S=Array.isArray(b)?b:[b];a.push(...S)}}const f=ke(r,"addPasteRules",i);if(bO(r,e.options.enablePasteRules)&&f){const g=f();if(g&&g.length){const b=uK({editor:e,rules:g});a.push(...b)}}const m=ke(r,"addProseMirrorPlugins",i);if(m){const g=m();a.push(...g)}return a})}get attributes(){return BM(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:t}=Hs(this.extensions);return Object.fromEntries(t.filter(n=>!!ke(n,"addNodeView")).map(n=>{const r=this.attributes.filter(c=>c.type===n.name),i={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:e,type:Bt(n.name,this.schema)},a=ke(n,"addNodeView",i);if(!a)return[];const s=a();if(!s)return[];const u=(c,p,f,m,g)=>{const b=Wu(c,r);return s({node:c,view:p,getPos:f,decorations:m,innerDecorations:g,editor:e,extension:n,HTMLAttributes:b})};return[n.name,u]}))}dispatchTransaction(e){const{editor:t}=this;return xu([...this.extensions].reverse()).reduceRight((r,i)=>{const a={name:i.name,options:i.options,storage:this.editor.extensionStorage[i.name],editor:t,type:iu(i.name,this.schema)},s=ke(i,"dispatchTransaction",a);return s?u=>{s.call(a,{transaction:u,next:r})}:r},e)}transformPastedHTML(e){const{editor:t}=this;return xu([...this.extensions]).reduce((r,i)=>{const a={name:i.name,options:i.options,storage:this.editor.extensionStorage[i.name],editor:t,type:iu(i.name,this.schema)},s=ke(i,"transformPastedHTML",a);return s?(u,c)=>{const p=r(u,c);return s.call(a,p)}:r},e||(r=>r))}get markViews(){const{editor:e}=this,{markExtensions:t}=Hs(this.extensions);return Object.fromEntries(t.filter(n=>!!ke(n,"addMarkView")).map(n=>{const r=this.attributes.filter(u=>u.type===n.name),i={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:e,type:Ci(n.name,this.schema)},a=ke(n,"addMarkView",i);if(!a)return[];const s=(u,c,p)=>{const f=Wu(u,r);return a()({mark:u,view:c,inline:p,editor:e,extension:n,HTMLAttributes:f,updateAttributes:m=>{wK(u,e,m)}})};return[n.name,s]}))}setupExtensions(){const e=this.extensions;this.editor.extensionStorage=Object.fromEntries(e.map(t=>[t.name,t.storage])),e.forEach(t=>{var n;const r={name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:this.editor,type:iu(t.name,this.schema)};t.type==="mark"&&((n=nt(ke(t,"keepOnSplit",r)))==null||n)&&this.splittableMarks.push(t.name);const i=ke(t,"onBeforeCreate",r),a=ke(t,"onCreate",r),s=ke(t,"onUpdate",r),u=ke(t,"onSelectionUpdate",r),c=ke(t,"onTransaction",r),p=ke(t,"onFocus",r),f=ke(t,"onBlur",r),m=ke(t,"onDestroy",r);i&&this.editor.on("beforeCreate",i),a&&this.editor.on("create",a),s&&this.editor.on("update",s),u&&this.editor.on("selectionUpdate",u),c&&this.editor.on("transaction",c),p&&this.editor.on("focus",p),f&&this.editor.on("blur",f),m&&this.editor.on("destroy",m)})}};oh.resolve=KT;oh.sort=xu;oh.flatten=rh;var cK={};VT(cK,{ClipboardTextSerializer:()=>YM,Commands:()=>KM,Delete:()=>XM,Drop:()=>ZM,Editable:()=>QM,FocusEvents:()=>e2,Keymap:()=>t2,Paste:()=>n2,Tabindex:()=>r2,TextDirection:()=>i2,focusEventsPluginKey:()=>JM});var Tt=class WM extends ZT{constructor(){super(...arguments),this.type="extension"}static create(t={}){const n=typeof t=="function"?t():t;return new WM(n)}configure(t){return super.configure(t)}extend(t){const n=typeof t=="function"?t():t;return super.extend(n)}},YM=Tt.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new yt({key:new $t("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:e}=this,{state:t,schema:n}=e,{doc:r,selection:i}=t,{ranges:a}=i,s=Math.min(...a.map(f=>f.$from.pos)),u=Math.max(...a.map(f=>f.$to.pos)),c=UM(n);return zM(r,{from:s,to:u},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:c})}}})]}}),KM=Tt.create({name:"commands",addCommands(){return{...Er}}}),XM=Tt.create({name:"delete",onUpdate({transaction:e,appendedTransactions:t}){var n,r,i;const a=()=>{var s,u,c,p;if((p=(c=(u=(s=this.editor.options.coreExtensionOptions)==null?void 0:s.delete)==null?void 0:u.filterTransaction)==null?void 0:c.call(u,e))!=null?p:e.getMeta("y-sync$"))return;const f=LM(e.before,[e,...t]);$M(f).forEach(b=>{f.mapping.mapResult(b.oldRange.from).deletedAfter&&f.mapping.mapResult(b.oldRange.to).deletedBefore&&f.before.nodesBetween(b.oldRange.from,b.oldRange.to,(S,k)=>{const v=k+S.nodeSize-2,w=b.oldRange.from<=k&&v<=b.oldRange.to;this.editor.emit("delete",{type:"node",node:S,from:k,to:v,newFrom:f.mapping.map(k),newTo:f.mapping.map(v),deletedRange:b.oldRange,newRange:b.newRange,partial:!w,editor:this.editor,transaction:e,combinedTransform:f})})});const g=f.mapping;f.steps.forEach((b,S)=>{var k,v;if(b instanceof Tr){const w=g.slice(S).map(b.from,-1),x=g.slice(S).map(b.to),A=g.invert().map(w,-1),D=g.invert().map(x),O=(k=f.doc.nodeAt(w-1))==null?void 0:k.marks.some(M=>M.eq(b.mark)),R=(v=f.doc.nodeAt(x))==null?void 0:v.marks.some(M=>M.eq(b.mark));this.editor.emit("delete",{type:"mark",mark:b.mark,from:b.from,to:b.to,deletedRange:{from:A,to:D},newRange:{from:w,to:x},partial:!!(R||O),editor:this.editor,transaction:e,combinedTransform:f})}})};(i=(r=(n=this.editor.options.coreExtensionOptions)==null?void 0:n.delete)==null?void 0:r.async)==null||i?setTimeout(a,0):a()}}),ZM=Tt.create({name:"drop",addProseMirrorPlugins(){return[new yt({key:new $t("tiptapDrop"),props:{handleDrop:(e,t,n,r)=>{this.editor.emit("drop",{editor:this.editor,event:t,slice:n,moved:r})}}})]}}),QM=Tt.create({name:"editable",addProseMirrorPlugins(){return[new yt({key:new $t("editable"),props:{editable:()=>this.editor.options.editable}})]}}),JM=new $t("focusEvents"),e2=Tt.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:e}=this;return[new yt({key:JM,props:{handleDOMEvents:{focus:(t,n)=>{e.isFocused=!0;const r=e.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1},blur:(t,n)=>{e.isFocused=!1;const r=e.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1}}}})]}}),t2=Tt.create({name:"keymap",addKeyboardShortcuts(){const e=()=>this.editor.commands.first(({commands:s})=>[()=>s.undoInputRule(),()=>s.command(({tr:u})=>{const{selection:c,doc:p}=u,{empty:f,$anchor:m}=c,{pos:g,parent:b}=m,S=m.parent.isTextblock&&g>0?u.doc.resolve(g-1):m,k=S.parent.type.spec.isolating,v=m.pos-m.parentOffset,w=k&&S.parent.childCount===1?v===m.pos:Fe.atStart(p).from===g;return!f||!b.type.isTextblock||b.textContent.length||!w||w&&m.parent.type.name==="paragraph"?!1:s.clearNodes()}),()=>s.deleteSelection(),()=>s.joinBackward(),()=>s.selectNodeBackward()]),t=()=>this.editor.commands.first(({commands:s})=>[()=>s.deleteSelection(),()=>s.deleteCurrentNode(),()=>s.joinForward(),()=>s.selectNodeForward()]),r={Enter:()=>this.editor.commands.first(({commands:s})=>[()=>s.newlineInCode(),()=>s.createParagraphNear(),()=>s.liftEmptyBlock(),()=>s.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:e,"Mod-Backspace":e,"Shift-Backspace":e,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},i={...r},a={...r,"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return Pp()||IM()?a:i},addProseMirrorPlugins(){return[new yt({key:new $t("clearDocument"),appendTransaction:(e,t,n)=>{if(e.some(k=>k.getMeta("composition")))return;const r=e.some(k=>k.docChanged)&&!t.doc.eq(n.doc),i=e.some(k=>k.getMeta("preventClearDocument"));if(!r||i)return;const{empty:a,from:s,to:u}=t.selection,c=Fe.atStart(t.doc).from,p=Fe.atEnd(t.doc).to;if(a||!(s===c&&u===p)||!ih(n.doc))return;const g=n.tr,b=Jf({state:n,transaction:g}),{commands:S}=new eh({editor:this.editor,state:b});if(S.clearNodes(),!!g.steps.length)return g}})]}}),n2=Tt.create({name:"paste",addProseMirrorPlugins(){return[new yt({key:new $t("tiptapPaste"),props:{handlePaste:(e,t,n)=>{this.editor.emit("paste",{editor:this.editor,event:t,slice:n})}}})]}}),r2=Tt.create({name:"tabindex",addProseMirrorPlugins(){return[new yt({key:new $t("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}}),i2=Tt.create({name:"textDirection",addOptions(){return{direction:void 0}},addGlobalAttributes(){if(!this.options.direction)return[];const{nodeExtensions:e}=Hs(this.extensions);return[{types:e.filter(t=>t.name!=="text").map(t=>t.name),attributes:{dir:{default:this.options.direction,parseHTML:t=>{const n=t.getAttribute("dir");return n&&(n==="ltr"||n==="rtl"||n==="auto")?n:this.options.direction},renderHTML:t=>t.dir?{dir:t.dir}:{}}}}]},addProseMirrorPlugins(){return[new yt({key:new $t("textDirection"),props:{attributes:()=>{const e=this.options.direction;return e?{dir:e}:{}}}})]}}),dK=class hu{constructor(t,n,r=!1,i=null){this.currentNode=null,this.actualDepth=null,this.isBlock=r,this.resolvedPos=t,this.editor=n,this.currentNode=i}get name(){return this.node.type.name}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var t;return(t=this.actualDepth)!=null?t:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(t){let n=this.from,r=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You can’t set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}n=this.from+1,r=this.to-1}this.editor.commands.insertContentAt({from:n,to:r},t)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;const t=this.resolvedPos.start(this.resolvedPos.depth-1),n=this.resolvedPos.doc.resolve(t);return new hu(n,this.editor)}get before(){let t=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.from-3)),new hu(t,this.editor)}get after(){let t=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.to+3)),new hu(t,this.editor)}get children(){const t=[];return this.node.content.forEach((n,r)=>{const i=n.isBlock&&!n.isTextblock,a=n.isAtom&&!n.isText,s=n.isInline,u=this.pos+r+(a?0:1);if(u<0||u>this.resolvedPos.doc.nodeSize-2)return;const c=this.resolvedPos.doc.resolve(u);if(!i&&!s&&c.depth<=this.depth)return;const p=new hu(c,this.editor,i,i||s?n:null);i&&(p.actualDepth=this.depth+1),t.push(p)}),t}get firstChild(){return this.children[0]||null}get lastChild(){const t=this.children;return t[t.length-1]||null}closest(t,n={}){let r=null,i=this.parent;for(;i&&!r;){if(i.node.type.name===t)if(Object.keys(n).length>0){const a=i.node.attrs,s=Object.keys(n);for(let u=0;u<s.length;u+=1){const c=s[u];if(a[c]!==n[c])break}}else r=i;i=i.parent}return r}querySelector(t,n={}){return this.querySelectorAll(t,n,!0)[0]||null}querySelectorAll(t,n={},r=!1){let i=[];if(!this.children||this.children.length===0)return i;const a=Object.keys(n);return this.children.forEach(s=>{r&&i.length>0||(s.node.type.name===t&&a.every(c=>n[c]===s.node.attrs[c])&&i.push(s),!(r&&i.length>0)&&(i=i.concat(s.querySelectorAll(t,n,r))))}),i}setAttribute(t){const{tr:n}=this.editor.state;n.setNodeMarkup(this.from,void 0,{...this.node.attrs,...t}),this.editor.view.dispatch(n)}},pK=`.ProseMirror {
|
|
98
|
+
position: relative;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.ProseMirror {
|
|
102
|
+
word-wrap: break-word;
|
|
103
|
+
white-space: pre-wrap;
|
|
104
|
+
white-space: break-spaces;
|
|
105
|
+
-webkit-font-variant-ligatures: none;
|
|
106
|
+
font-variant-ligatures: none;
|
|
107
|
+
font-feature-settings: "liga" 0; /* the above doesn't seem to work in Edge */
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.ProseMirror [contenteditable="false"] {
|
|
111
|
+
white-space: normal;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.ProseMirror [contenteditable="false"] [contenteditable="true"] {
|
|
115
|
+
white-space: pre-wrap;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.ProseMirror pre {
|
|
119
|
+
white-space: pre-wrap;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
img.ProseMirror-separator {
|
|
123
|
+
display: inline !important;
|
|
124
|
+
border: none !important;
|
|
125
|
+
margin: 0 !important;
|
|
126
|
+
width: 0 !important;
|
|
127
|
+
height: 0 !important;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.ProseMirror-gapcursor {
|
|
131
|
+
display: none;
|
|
132
|
+
pointer-events: none;
|
|
133
|
+
position: absolute;
|
|
134
|
+
margin: 0;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.ProseMirror-gapcursor:after {
|
|
138
|
+
content: "";
|
|
139
|
+
display: block;
|
|
140
|
+
position: absolute;
|
|
141
|
+
top: -2px;
|
|
142
|
+
width: 20px;
|
|
143
|
+
border-top: 1px solid black;
|
|
144
|
+
animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
@keyframes ProseMirror-cursor-blink {
|
|
148
|
+
to {
|
|
149
|
+
visibility: hidden;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.ProseMirror-hideselection *::selection {
|
|
154
|
+
background: transparent;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.ProseMirror-hideselection *::-moz-selection {
|
|
158
|
+
background: transparent;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.ProseMirror-hideselection * {
|
|
162
|
+
caret-color: transparent;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.ProseMirror-focused .ProseMirror-gapcursor {
|
|
166
|
+
display: block;
|
|
167
|
+
}`;function fK(e,t,n){const r=document.querySelector("style[data-tiptap-style]");if(r!==null)return r;const i=document.createElement("style");return t&&i.setAttribute("nonce",t),i.setAttribute("data-tiptap-style",""),i.innerHTML=e,document.getElementsByTagName("head")[0].appendChild(i),i}var hK=class extends eK{constructor(e={}){super(),this.css=null,this.className="tiptap",this.editorView=null,this.isFocused=!1,this.isInitialized=!1,this.extensionStorage={},this.instanceId=Math.random().toString(36).slice(2,9),this.options={element:typeof document<"u"?document.createElement("div"):null,content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,textDirection:void 0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,emitContentError:!1,onBeforeCreate:()=>null,onCreate:()=>null,onMount:()=>null,onUnmount:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:r})=>{throw r},onPaste:()=>null,onDrop:()=>null,onDelete:()=>null,enableExtensionDispatchTransaction:!0},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.utils={getUpdatedPosition:O8,createMappablePosition:I8},this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("mount",this.options.onMount),this.on("unmount",this.options.onUnmount),this.on("contentError",this.options.onContentError),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),this.on("drop",({event:r,slice:i,moved:a})=>this.options.onDrop(r,i,a)),this.on("paste",({event:r,slice:i})=>this.options.onPaste(r,i)),this.on("delete",this.options.onDelete);const t=this.createDoc(),n=_M(t,this.options.autofocus);this.editorState=_s.create({doc:t,schema:this.schema,selection:n||void 0}),this.options.element&&this.mount(this.options.element)}mount(e){if(typeof document>"u")throw new Error("[tiptap error]: The editor cannot be mounted because there is no 'document' defined in this environment.");this.createView(e),this.emit("mount",{editor:this}),this.css&&!document.head.contains(this.css)&&document.head.appendChild(this.css),window.setTimeout(()=>{this.isDestroyed||(this.options.autofocus!==!1&&this.options.autofocus!==null&&this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)},0)}unmount(){if(this.editorView){const e=this.editorView.dom;e?.editor&&delete e.editor,this.editorView.destroy()}if(this.editorView=null,this.isInitialized=!1,this.css&&!document.querySelectorAll(`.${this.className}`).length)try{typeof this.css.remove=="function"?this.css.remove():this.css.parentNode&&this.css.parentNode.removeChild(this.css)}catch(e){console.warn("Failed to remove CSS element:",e)}this.css=null,this.emit("unmount",{editor:this})}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&typeof document<"u"&&(this.css=fK(pK,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},!(!this.editorView||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,t=!0){this.setOptions({editable:e}),t&&this.emit("update",{editor:this,transaction:this.state.tr,appendedTransactions:[]})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get view(){return this.editorView?this.editorView:new Proxy({state:this.editorState,updateState:e=>{this.editorState=e},dispatch:e=>{this.dispatchTransaction(e)},composing:!1,dragging:null,editable:!0,isDestroyed:!1},{get:(e,t)=>{if(this.editorView)return this.editorView[t];if(t==="state")return this.editorState;if(t in e)return Reflect.get(e,t);throw new Error(`[tiptap error]: The editor view is not available. Cannot access view['${t}']. The editor may not be mounted yet.`)}})}get state(){return this.editorView&&(this.editorState=this.view.state),this.editorState}registerPlugin(e,t){const n=MM(t)?t(e,[...this.state.plugins]):[...this.state.plugins,e],r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}unregisterPlugin(e){if(this.isDestroyed)return;const t=this.state.plugins;let n=t;if([].concat(e).forEach(i=>{const a=typeof i=="string"?`${i}$`:i.key;n=n.filter(s=>!s.key.startsWith(a))}),t.length===n.length)return;const r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}createExtensionManager(){var e,t;const r=[...this.options.enableCoreExtensions?[QM,YM.configure({blockSeparator:(t=(e=this.options.coreExtensionOptions)==null?void 0:e.clipboardTextSerializer)==null?void 0:t.blockSeparator}),KM,e2,t2,r2,ZM,n2,XM,i2.configure({direction:this.options.textDirection})].filter(i=>typeof this.options.enableCoreExtensions=="object"?this.options.enableCoreExtensions[i.name]!==!1:!0):[],...this.options.extensions].filter(i=>["extension","node","mark"].includes(i?.type));this.extensionManager=new oh(r,this)}createCommandManager(){this.commandManager=new eh({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createDoc(){let e;try{e=Iy(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(t){if(!(t instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(t.message))throw t;this.emit("contentError",{editor:this,error:t,disableCollaboration:()=>{"collaboration"in this.storage&&typeof this.storage.collaboration=="object"&&this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(n=>n.name!=="collaboration"),this.createExtensionManager()}}),e=Iy(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}return e}createView(e){const{editorProps:t,enableExtensionDispatchTransaction:n}=this.options,r=t.dispatchTransaction||this.dispatchTransaction.bind(this),i=n?this.extensionManager.dispatchTransaction(r):r,a=t.transformPastedHTML,s=this.extensionManager.transformPastedHTML(a);this.editorView=new AM(e,{...t,attributes:{role:"textbox",...t?.attributes},dispatchTransaction:i,transformPastedHTML:s,state:this.editorState,markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews});const u=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(u),this.prependClass(),this.injectCSS();const c=this.view.dom;c.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`${this.className} ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const t=this.capturedTransaction;return this.capturedTransaction=null,t}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=e;return}e.steps.forEach(p=>{var f;return(f=this.capturedTransaction)==null?void 0:f.step(p)});return}const{state:t,transactions:n}=this.state.applyTransaction(e),r=!this.state.selection.eq(t.selection),i=n.includes(e),a=this.state;if(this.emit("beforeTransaction",{editor:this,transaction:e,nextState:t}),!i)return;this.view.updateState(t),this.emit("transaction",{editor:this,transaction:e,appendedTransactions:n.slice(1)}),r&&this.emit("selectionUpdate",{editor:this,transaction:e});const s=n.findLast(p=>p.getMeta("focus")||p.getMeta("blur")),u=s?.getMeta("focus"),c=s?.getMeta("blur");u&&this.emit("focus",{editor:this,event:u.event,transaction:s}),c&&this.emit("blur",{editor:this,event:c.event,transaction:s}),!(e.getMeta("preventUpdate")||!n.some(p=>p.docChanged)||a.doc.eq(t.doc))&&this.emit("update",{editor:this,transaction:e,appendedTransactions:n.slice(1)})}getAttributes(e){return PM(this.state,e)}isActive(e,t){const n=typeof e=="string"?e:null,r=typeof e=="string"?t:e;return R8(this.state,n,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return YT(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:t=`
|
|
168
|
+
|
|
169
|
+
`,textSerializers:n={}}=e||{};return v8(this.state.doc,{blockSeparator:t,textSerializers:{...UM(this.schema),...n}})}get isEmpty(){return ih(this.state.doc)}destroy(){this.emit("destroy"),this.unmount(),this.removeAllListeners()}get isDestroyed(){var e,t;return(t=(e=this.editorView)==null?void 0:e.isDestroyed)!=null?t:!0}$node(e,t){var n;return((n=this.$doc)==null?void 0:n.querySelector(e,t))||null}$nodes(e,t){var n;return((n=this.$doc)==null?void 0:n.querySelectorAll(e,t))||null}$pos(e){const t=this.state.doc.resolve(e);return new dK(t,this)}get $doc(){return this.$pos(0)}};function js(e){return new ah({find:e.find,handler:({state:t,range:n,match:r})=>{const i=nt(e.getAttributes,void 0,r);if(i===!1||i===null)return null;const{tr:a}=t,s=r[r.length-1],u=r[0];if(s){const c=u.search(/\S/),p=n.from+u.indexOf(s),f=p+s.length;if(XT(n.from,n.to,t.doc).filter(b=>b.mark.type.excluded.find(k=>k===e.type&&k!==b.mark.type)).filter(b=>b.to>p).length)return null;f<n.to&&a.delete(f,n.to),p>n.from&&a.delete(n.from+c,p);const g=n.from+c+s.length;a.addMark(n.from+c,g,e.type.create(i||{})),a.removeStoredMark(e.type)}},undoable:e.undoable})}function mK(e){return new ah({find:e.find,handler:({state:t,range:n,match:r})=>{const i=nt(e.getAttributes,void 0,r)||{},{tr:a}=t,s=n.from;let u=n.to;const c=e.type.create(i);if(r[1]){const p=r[0].lastIndexOf(r[1]);let f=s+p;f>u?f=u:u=f+r[1].length;const m=r[0][r[0].length-1];a.insertText(m,s+r[0].length-1),a.replaceWith(f,u,c)}else if(r[0]){const p=e.type.isInline?s:s-1;a.insert(p,e.type.create(i)).delete(a.mapping.map(s),a.mapping.map(u))}a.scrollIntoView()},undoable:e.undoable})}function Ly(e){return new ah({find:e.find,handler:({state:t,range:n,match:r})=>{const i=t.doc.resolve(n.from),a=nt(e.getAttributes,void 0,r)||{};if(!i.node(-1).canReplaceWith(i.index(-1),i.indexAfter(-1),e.type))return null;t.tr.delete(n.from,n.to).setBlockType(n.from,n.from,e.type,a)},undoable:e.undoable})}function Gs(e){return new ah({find:e.find,handler:({state:t,range:n,match:r,chain:i})=>{const a=nt(e.getAttributes,void 0,r)||{},s=t.tr.delete(n.from,n.to),c=s.doc.resolve(n.from).blockRange(),p=c&&NT(c,e.type,a);if(!p)return null;if(s.wrap(c,p),e.keepMarks&&e.editor){const{selection:m,storedMarks:g}=t,{splittableMarks:b}=e.editor.extensionManager,S=g||m.$to.parentOffset&&m.$from.marks();if(S){const k=S.filter(v=>b.includes(v.type.name));s.ensureMarks(k)}}if(e.keepAttributes){const m=e.type.name==="bulletList"||e.type.name==="orderedList"?"listItem":"taskList";i().updateAttributes(m,a).run()}const f=s.doc.resolve(n.from-1).nodeBefore;f&&f.type===e.type&&_a(s.doc,n.from-1)&&(!e.joinPredicate||e.joinPredicate(r,f))&&s.join(n.from-1)},undoable:e.undoable})}function gK(e,t){const{selection:n}=e,{$from:r}=n;if(n instanceof xe){const a=r.index();return r.parent.canReplaceWith(a,a+1,t)}let i=r.depth;for(;i>=0;){const a=r.index(i);if(r.node(i).contentMatchAt(a).matchType(t))return!0;i-=1}return!1}var bK={};VT(bK,{createAtomBlockMarkdownSpec:()=>yK,createBlockMarkdownSpec:()=>EK,createInlineMarkdownSpec:()=>vK,parseAttributes:()=>QT,parseIndentedBlocks:()=>My,renderNestedMarkdownContent:()=>ex,serializeAttributes:()=>JT});function QT(e){if(!e?.trim())return{};const t={},n=[],r=e.replace(/["']([^"']*)["']/g,p=>(n.push(p),`__QUOTED_${n.length-1}__`)),i=r.match(/(?:^|\s)\.([a-zA-Z][\w-]*)/g);if(i){const p=i.map(f=>f.trim().slice(1));t.class=p.join(" ")}const a=r.match(/(?:^|\s)#([a-zA-Z][\w-]*)/);a&&(t.id=a[1]);const s=/([a-zA-Z][\w-]*)\s*=\s*(__QUOTED_\d+__)/g;Array.from(r.matchAll(s)).forEach(([,p,f])=>{var m;const g=parseInt(((m=f.match(/__QUOTED_(\d+)__/))==null?void 0:m[1])||"0",10),b=n[g];b&&(t[p]=b.slice(1,-1))});const c=r.replace(/(?:^|\s)\.([a-zA-Z][\w-]*)/g,"").replace(/(?:^|\s)#([a-zA-Z][\w-]*)/g,"").replace(/([a-zA-Z][\w-]*)\s*=\s*__QUOTED_\d+__/g,"").trim();return c&&c.split(/\s+/).filter(Boolean).forEach(f=>{f.match(/^[a-zA-Z][\w-]*$/)&&(t[f]=!0)}),t}function JT(e){if(!e||Object.keys(e).length===0)return"";const t=[];return e.class&&String(e.class).split(/\s+/).filter(Boolean).forEach(r=>t.push(`.${r}`)),e.id&&t.push(`#${e.id}`),Object.entries(e).forEach(([n,r])=>{n==="class"||n==="id"||(r===!0?t.push(n):r!==!1&&r!=null&&t.push(`${n}="${String(r)}"`))}),t.join(" ")}function yK(e){const{nodeName:t,name:n,parseAttributes:r=QT,serializeAttributes:i=JT,defaultAttributes:a={},requiredAttributes:s=[],allowedAttributes:u}=e,c=n||t,p=f=>{if(!u)return f;const m={};return u.forEach(g=>{g in f&&(m[g]=f[g])}),m};return{parseMarkdown:(f,m)=>{const g={...a,...f.attributes};return m.createNode(t,g,[])},markdownTokenizer:{name:t,level:"block",start(f){var m;const g=new RegExp(`^:::${c}(?:\\s|$)`,"m"),b=(m=f.match(g))==null?void 0:m.index;return b!==void 0?b:-1},tokenize(f,m,g){const b=new RegExp(`^:::${c}(?:\\s+\\{([^}]*)\\})?\\s*:::(?:\\n|$)`),S=f.match(b);if(!S)return;const k=S[1]||"",v=r(k);if(!s.find(x=>!(x in v)))return{type:t,raw:S[0],attributes:v}}},renderMarkdown:f=>{const m=p(f.attrs||{}),g=i(m),b=g?` {${g}}`:"";return`:::${c}${b} :::`}}}function EK(e){const{nodeName:t,name:n,getContent:r,parseAttributes:i=QT,serializeAttributes:a=JT,defaultAttributes:s={},content:u="block",allowedAttributes:c}=e,p=n||t,f=m=>{if(!c)return m;const g={};return c.forEach(b=>{b in m&&(g[b]=m[b])}),g};return{parseMarkdown:(m,g)=>{let b;if(r){const k=r(m);b=typeof k=="string"?[{type:"text",text:k}]:k}else u==="block"?b=g.parseChildren(m.tokens||[]):b=g.parseInline(m.tokens||[]);const S={...s,...m.attributes};return g.createNode(t,S,b)},markdownTokenizer:{name:t,level:"block",start(m){var g;const b=new RegExp(`^:::${p}`,"m"),S=(g=m.match(b))==null?void 0:g.index;return S!==void 0?S:-1},tokenize(m,g,b){var S;const k=new RegExp(`^:::${p}(?:\\s+\\{([^}]*)\\})?\\s*\\n`),v=m.match(k);if(!v)return;const[w,x=""]=v,A=i(x);let D=1;const O=w.length;let R="";const M=/^:::([\w-]*)(\s.*)?/gm,U=m.slice(O);for(M.lastIndex=0;;){const G=M.exec(U);if(G===null)break;const F=G.index,Q=G[1];if(!((S=G[2])!=null&&S.endsWith(":::"))){if(Q)D+=1;else if(D-=1,D===0){const q=U.slice(0,F);R=q.trim();const te=m.slice(0,O+F+G[0].length);let J=[];if(R)if(u==="block")for(J=b.blockTokens(q),J.forEach(Z=>{Z.text&&(!Z.tokens||Z.tokens.length===0)&&(Z.tokens=b.inlineTokens(Z.text))});J.length>0;){const Z=J[J.length-1];if(Z.type==="paragraph"&&(!Z.text||Z.text.trim()===""))J.pop();else break}else J=b.inlineTokens(R);return{type:t,raw:te,attributes:A,content:R,tokens:J}}}}}},renderMarkdown:(m,g)=>{const b=f(m.attrs||{}),S=a(b),k=S?` {${S}}`:"",v=g.renderChildren(m.content||[],`
|
|
170
|
+
|
|
171
|
+
`);return`:::${p}${k}
|
|
172
|
+
|
|
173
|
+
${v}
|
|
174
|
+
|
|
175
|
+
:::`}}}function SK(e){if(!e.trim())return{};const t={},n=/(\w+)=(?:"([^"]*)"|'([^']*)')/g;let r=n.exec(e);for(;r!==null;){const[,i,a,s]=r;t[i]=a||s,r=n.exec(e)}return t}function kK(e){return Object.entries(e).filter(([,t])=>t!=null).map(([t,n])=>`${t}="${n}"`).join(" ")}function vK(e){const{nodeName:t,name:n,getContent:r,parseAttributes:i=SK,serializeAttributes:a=kK,defaultAttributes:s={},selfClosing:u=!1,allowedAttributes:c}=e,p=n||t,f=g=>{if(!c)return g;const b={};return c.forEach(S=>{const k=typeof S=="string"?S:S.name,v=typeof S=="string"?void 0:S.skipIfDefault;if(k in g){const w=g[k];if(v!==void 0&&w===v)return;b[k]=w}}),b},m=p.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return{parseMarkdown:(g,b)=>{const S={...s,...g.attributes};if(u)return b.createNode(t,S);const k=r?r(g):g.content||"";return k?b.createNode(t,S,[b.createTextNode(k)]):b.createNode(t,S,[])},markdownTokenizer:{name:t,level:"inline",start(g){const b=u?new RegExp(`\\[${m}\\s*[^\\]]*\\]`):new RegExp(`\\[${m}\\s*[^\\]]*\\][\\s\\S]*?\\[\\/${m}\\]`),S=g.match(b),k=S?.index;return k!==void 0?k:-1},tokenize(g,b,S){const k=u?new RegExp(`^\\[${m}\\s*([^\\]]*)\\]`):new RegExp(`^\\[${m}\\s*([^\\]]*)\\]([\\s\\S]*?)\\[\\/${m}\\]`),v=g.match(k);if(!v)return;let w="",x="";if(u){const[,D]=v;x=D}else{const[,D,O]=v;x=D,w=O||""}const A=i(x.trim());return{type:t,raw:v[0],content:w.trim(),attributes:A}}},renderMarkdown:g=>{let b="";r?b=r(g):g.content&&g.content.length>0&&(b=g.content.filter(w=>w.type==="text").map(w=>w.text).join(""));const S=f(g.attrs||{}),k=a(S),v=k?` ${k}`:"";return u?`[${p}${v}]`:`[${p}${v}]${b}[/${p}]`}}}function My(e,t,n){var r,i,a,s;const u=e.split(`
|
|
176
|
+
`),c=[];let p="",f=0;const m=t.baseIndentSize||2;for(;f<u.length;){const g=u[f],b=g.match(t.itemPattern);if(!b){if(c.length>0)break;if(g.trim()===""){f+=1,p=`${p}${g}
|
|
177
|
+
`;continue}else return}const S=t.extractItemData(b),{indentLevel:k,mainContent:v}=S;p=`${p}${g}
|
|
178
|
+
`;const w=[v];for(f+=1;f<u.length;){const O=u[f];if(O.trim()===""){const M=u.slice(f+1).findIndex(F=>F.trim()!=="");if(M===-1)break;if((((i=(r=u[f+1+M].match(/^(\s*)/))==null?void 0:r[1])==null?void 0:i.length)||0)>k){w.push(O),p=`${p}${O}
|
|
179
|
+
`,f+=1;continue}else break}if((((s=(a=O.match(/^(\s*)/))==null?void 0:a[1])==null?void 0:s.length)||0)>k)w.push(O),p=`${p}${O}
|
|
180
|
+
`,f+=1;else break}let x;const A=w.slice(1);if(A.length>0){const O=A.map(R=>R.slice(k+m)).join(`
|
|
181
|
+
`);O.trim()&&(t.customNestedParser?x=t.customNestedParser(O):x=n.blockTokens(O))}const D=t.createToken(S,x);c.push(D)}if(c.length!==0)return{items:c,raw:p}}function ex(e,t,n,r){if(!e||!Array.isArray(e.content))return"";const i=typeof n=="function"?n(r):n,[a,...s]=e.content,u=t.renderChildren([a]);let c=`${i}${u}`;return s&&s.length>0&&s.forEach((p,f)=>{var m,g;const b=(g=(m=t.renderChild)==null?void 0:m.call(t,p,f+1))!=null?g:t.renderChildren([p]);if(b!=null){const S=b.split(`
|
|
182
|
+
`).map(k=>k?t.indent(k):t.indent("")).join(`
|
|
183
|
+
`);c+=p.type==="paragraph"?`
|
|
184
|
+
|
|
185
|
+
${S}`:`
|
|
186
|
+
${S}`}}),c}function wK(e,t,n={}){const{state:r}=t,{doc:i,tr:a}=r,s=e;i.descendants((u,c)=>{const p=a.mapping.map(c),f=a.mapping.map(c)+u.nodeSize;let m=null;if(u.marks.forEach(b=>{if(b!==s)return!1;m=b}),!m)return;let g=!1;if(Object.keys(n).forEach(b=>{n[b]!==m.attrs[b]&&(g=!0)}),g){const b=e.type.create({...e.attrs,...n});a.removeMark(p,f,e.type),a.addMark(p,f,b)}}),a.docChanged&&t.view.dispatch(a)}var Kn=class a2 extends ZT{constructor(){super(...arguments),this.type="node"}static create(t={}){const n=typeof t=="function"?t():t;return new a2(n)}configure(t){return super.configure(t)}extend(t){const n=typeof t=="function"?t():t;return super.extend(n)}};function vo(e){return new aK({find:e.find,handler:({state:t,range:n,match:r,pasteEvent:i})=>{const a=nt(e.getAttributes,void 0,r,i);if(a===!1||a===null)return null;const{tr:s}=t,u=r[r.length-1],c=r[0];let p=n.to;if(u){const f=c.search(/\S/),m=n.from+c.indexOf(u),g=m+u.length;if(XT(n.from,n.to,t.doc).filter(S=>S.mark.type.excluded.find(v=>v===e.type&&v!==S.mark.type)).filter(S=>S.to>m).length)return null;g<n.to&&s.delete(g,n.to),m>n.from&&s.delete(n.from+f,m),p=n.from+f+u.length,s.addMark(n.from+f,p,e.type.create(a||{})),s.removeStoredMark(e.type)}}})}const{getOwnPropertyNames:TK,getOwnPropertySymbols:xK}=Object,{hasOwnProperty:AK}=Object.prototype;function Cb(e,t){return function(r,i,a){return e(r,i,a)&&t(r,i,a)}}function Zd(e){return function(n,r,i){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,i);const{cache:a}=i,s=a.get(n),u=a.get(r);if(s&&u)return s===r&&u===n;a.set(n,r),a.set(r,n);const c=e(n,r,i);return a.delete(n),a.delete(r),c}}function CK(e){return e?.[Symbol.toStringTag]}function SO(e){return TK(e).concat(xK(e))}const RK=Object.hasOwn||((e,t)=>AK.call(e,t));function No(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const NK="__v",_K="__o",OK="_owner",{getOwnPropertyDescriptor:kO,keys:vO}=Object;function IK(e,t){return e.byteLength===t.byteLength&&$p(new Uint8Array(e),new Uint8Array(t))}function DK(e,t,n){let r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function LK(e,t){return e.byteLength===t.byteLength&&$p(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function MK(e,t){return No(e.getTime(),t.getTime())}function BK(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function FK(e,t){return e===t}function wO(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const i=new Array(r),a=e.entries();let s,u,c=0;for(;(s=a.next())&&!s.done;){const p=t.entries();let f=!1,m=0;for(;(u=p.next())&&!u.done;){if(i[m]){m++;continue}const g=s.value,b=u.value;if(n.equals(g[0],b[0],c,m,e,t,n)&&n.equals(g[1],b[1],g[0],b[0],e,t,n)){f=i[m]=!0;break}m++}if(!f)return!1;c++}return!0}const zK=No;function UK(e,t,n){const r=vO(e);let i=r.length;if(vO(t).length!==i)return!1;for(;i-- >0;)if(!o2(e,t,n,r[i]))return!1;return!0}function au(e,t,n){const r=SO(e);let i=r.length;if(SO(t).length!==i)return!1;let a,s,u;for(;i-- >0;)if(a=r[i],!o2(e,t,n,a)||(s=kO(e,a),u=kO(t,a),(s||u)&&(!s||!u||s.configurable!==u.configurable||s.enumerable!==u.enumerable||s.writable!==u.writable)))return!1;return!0}function PK(e,t){return No(e.valueOf(),t.valueOf())}function $K(e,t){return e.source===t.source&&e.flags===t.flags}function TO(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const i=new Array(r),a=e.values();let s,u;for(;(s=a.next())&&!s.done;){const c=t.values();let p=!1,f=0;for(;(u=c.next())&&!u.done;){if(!i[f]&&n.equals(s.value,u.value,s.value,u.value,e,t,n)){p=i[f]=!0;break}f++}if(!p)return!1}return!0}function $p(e,t){let n=e.byteLength;if(t.byteLength!==n||e.byteOffset!==t.byteOffset)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function HK(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function o2(e,t,n,r){return(r===OK||r===_K||r===NK)&&(e.$$typeof||t.$$typeof)?!0:RK(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const jK="[object ArrayBuffer]",GK="[object Arguments]",VK="[object Boolean]",qK="[object DataView]",WK="[object Date]",YK="[object Error]",KK="[object Map]",XK="[object Number]",ZK="[object Object]",QK="[object RegExp]",JK="[object Set]",e7="[object String]",t7={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},n7="[object URL]",r7=Object.prototype.toString;function i7({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:s,areNumbersEqual:u,areObjectsEqual:c,arePrimitiveWrappersEqual:p,areRegExpsEqual:f,areSetsEqual:m,areTypedArraysEqual:g,areUrlsEqual:b,unknownTagComparators:S}){return function(v,w,x){if(v===w)return!0;if(v==null||w==null)return!1;const A=typeof v;if(A!==typeof w)return!1;if(A!=="object")return A==="number"?u(v,w,x):A==="function"?a(v,w,x):!1;const D=v.constructor;if(D!==w.constructor)return!1;if(D===Object)return c(v,w,x);if(Array.isArray(v))return t(v,w,x);if(D===Date)return r(v,w,x);if(D===RegExp)return f(v,w,x);if(D===Map)return s(v,w,x);if(D===Set)return m(v,w,x);const O=r7.call(v);if(O===WK)return r(v,w,x);if(O===QK)return f(v,w,x);if(O===KK)return s(v,w,x);if(O===JK)return m(v,w,x);if(O===ZK)return typeof v.then!="function"&&typeof w.then!="function"&&c(v,w,x);if(O===n7)return b(v,w,x);if(O===YK)return i(v,w,x);if(O===GK)return c(v,w,x);if(t7[O])return g(v,w,x);if(O===jK)return e(v,w,x);if(O===qK)return n(v,w,x);if(O===VK||O===XK||O===e7)return p(v,w,x);if(S){let R=S[O];if(!R){const M=CK(v);M&&(R=S[M])}if(R)return R(v,w,x)}return!1}}function a7({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:IK,areArraysEqual:n?au:DK,areDataViewsEqual:LK,areDatesEqual:MK,areErrorsEqual:BK,areFunctionsEqual:FK,areMapsEqual:n?Cb(wO,au):wO,areNumbersEqual:zK,areObjectsEqual:n?au:UK,arePrimitiveWrappersEqual:PK,areRegExpsEqual:$K,areSetsEqual:n?Cb(TO,au):TO,areTypedArraysEqual:n?Cb($p,au):$p,areUrlsEqual:HK,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const i=Zd(r.areArraysEqual),a=Zd(r.areMapsEqual),s=Zd(r.areObjectsEqual),u=Zd(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:s,areSetsEqual:u})}return r}function o7(e){return function(t,n,r,i,a,s,u){return e(t,n,u)}}function s7({circular:e,comparator:t,createState:n,equals:r,strict:i}){if(n)return function(u,c){const{cache:p=e?new WeakMap:void 0,meta:f}=n();return t(u,c,{cache:p,equals:r,meta:f,strict:i})};if(e)return function(u,c){return t(u,c,{cache:new WeakMap,equals:r,meta:void 0,strict:i})};const a={cache:void 0,equals:r,meta:void 0,strict:i};return function(u,c){return t(u,c,a)}}const l7=Ia();Ia({strict:!0});Ia({circular:!0});Ia({circular:!0,strict:!0});Ia({createInternalComparator:()=>No});Ia({strict:!0,createInternalComparator:()=>No});Ia({circular:!0,createInternalComparator:()=>No});Ia({circular:!0,createInternalComparator:()=>No,strict:!0});function Ia(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:i=!1}=e,a=a7(e),s=i7(a),u=n?n(s):o7(s);return s7({circular:t,comparator:s,createState:r,equals:u,strict:i})}var Rb={exports:{}},Nb={};var xO;function u7(){if(xO)return Nb;xO=1;var e=Zu(),t=QD();function n(p,f){return p===f&&(p!==0||1/p===1/f)||p!==p&&f!==f}var r=typeof Object.is=="function"?Object.is:n,i=t.useSyncExternalStore,a=e.useRef,s=e.useEffect,u=e.useMemo,c=e.useDebugValue;return Nb.useSyncExternalStoreWithSelector=function(p,f,m,g,b){var S=a(null);if(S.current===null){var k={hasValue:!1,value:null};S.current=k}else k=S.current;S=u(function(){function w(R){if(!x){if(x=!0,A=R,R=g(R),b!==void 0&&k.hasValue){var M=k.value;if(b(M,R))return D=M}return D=R}if(M=D,r(A,R))return M;var U=g(R);return b!==void 0&&b(M,U)?(A=R,M):(A=R,D=U)}var x=!1,A,D,O=m===void 0?null:m;return[function(){return w(f())},O===null?void 0:function(){return w(O())}]},[f,m,g,b]);var v=i(p,S[0],S[1]);return s(function(){k.hasValue=!0,k.value=v},[v]),c(v),v},Nb}var AO;function c7(){return AO||(AO=1,Rb.exports=u7()),Rb.exports}var d7=c7(),p7=(...e)=>t=>{e.forEach(n=>{typeof n=="function"?n(t):n&&(n.current=t)})},f7=({contentComponent:e})=>{const t=JD.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getServerSnapshot);return B.jsx(B.Fragment,{children:Object.values(t)})};function h7(){const e=new Set;let t={};return{subscribe(n){return e.add(n),()=>{e.delete(n)}},getSnapshot(){return t},getServerSnapshot(){return t},setRenderer(n,r){t={...t,[n]:aI.createPortal(r.reactElement,r.element,n)},e.forEach(i=>i())},removeRenderer(n){const r={...t};delete r[n],t=r,e.forEach(i=>i())}}}var m7=class extends gt.Component{constructor(e){var t;super(e),this.editorContentRef=gt.createRef(),this.initialized=!1,this.state={hasContentComponentInitialized:!!((t=e.editor)!=null&&t.contentComponent)}}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){var e;const t=this.props.editor;if(t&&!t.isDestroyed&&((e=t.view.dom)!=null&&e.parentNode)){if(t.contentComponent)return;const n=this.editorContentRef.current;n.append(...t.view.dom.parentNode.childNodes),t.setOptions({element:n}),t.contentComponent=h7(),this.state.hasContentComponentInitialized||(this.unsubscribeToContentComponent=t.contentComponent.subscribe(()=>{this.setState(r=>r.hasContentComponentInitialized?r:{hasContentComponentInitialized:!0}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent()})),t.createNodeViews(),this.initialized=!0}}componentWillUnmount(){var e;const t=this.props.editor;if(t){this.initialized=!1,t.isDestroyed||t.view.setProps({nodeViews:{}}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent(),t.contentComponent=null;try{if(!((e=t.view.dom)!=null&&e.parentNode))return;const n=document.createElement("div");n.append(...t.view.dom.parentNode.childNodes),t.setOptions({element:n})}catch{}}}render(){const{editor:e,innerRef:t,...n}=this.props;return B.jsxs(B.Fragment,{children:[B.jsx("div",{ref:p7(t,this.editorContentRef),...n}),e?.contentComponent&&B.jsx(f7,{contentComponent:e.contentComponent})]})}},g7=L.forwardRef((e,t)=>{const n=gt.useMemo(()=>Math.floor(Math.random()*4294967295).toString(),[e.editor]);return gt.createElement(m7,{key:n,innerRef:t,...e})}),s2=gt.memo(g7),b7=typeof window<"u"?L.useLayoutEffect:L.useEffect,y7=class{constructor(e){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=e,this.lastSnapshot={editor:e,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber?this.lastSnapshot:(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber},this.lastSnapshot)}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}watch(e){if(this.editor=e,this.editor){const t=()=>{this.transactionNumber+=1,this.subscribers.forEach(r=>r())},n=this.editor;return n.on("transaction",t),()=>{n.off("transaction",t)}}}};function E7(e){var t;const[n]=L.useState(()=>new y7(e.editor)),r=d7.useSyncExternalStoreWithSelector(n.subscribe,n.getSnapshot,n.getServerSnapshot,e.selector,(t=e.equalityFn)!=null?t:l7);return b7(()=>n.watch(e.editor),[e.editor,n]),L.useDebugValue(r),r}var S7=!1,By=typeof window>"u",k7=By||!!(typeof window<"u"&&window.next),v7=class l2{constructor(t){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId="",this.options=t,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(t){this.editor=t,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(n=>n())}getInitialEditor(){return this.options.current.immediatelyRender===void 0?By||k7?null:this.createEditor():(this.options.current.immediatelyRender,this.options.current.immediatelyRender?this.createEditor():null)}createEditor(){const t={...this.options.current,onBeforeCreate:(...r)=>{var i,a;return(a=(i=this.options.current).onBeforeCreate)==null?void 0:a.call(i,...r)},onBlur:(...r)=>{var i,a;return(a=(i=this.options.current).onBlur)==null?void 0:a.call(i,...r)},onCreate:(...r)=>{var i,a;return(a=(i=this.options.current).onCreate)==null?void 0:a.call(i,...r)},onDestroy:(...r)=>{var i,a;return(a=(i=this.options.current).onDestroy)==null?void 0:a.call(i,...r)},onFocus:(...r)=>{var i,a;return(a=(i=this.options.current).onFocus)==null?void 0:a.call(i,...r)},onSelectionUpdate:(...r)=>{var i,a;return(a=(i=this.options.current).onSelectionUpdate)==null?void 0:a.call(i,...r)},onTransaction:(...r)=>{var i,a;return(a=(i=this.options.current).onTransaction)==null?void 0:a.call(i,...r)},onUpdate:(...r)=>{var i,a;return(a=(i=this.options.current).onUpdate)==null?void 0:a.call(i,...r)},onContentError:(...r)=>{var i,a;return(a=(i=this.options.current).onContentError)==null?void 0:a.call(i,...r)},onDrop:(...r)=>{var i,a;return(a=(i=this.options.current).onDrop)==null?void 0:a.call(i,...r)},onPaste:(...r)=>{var i,a;return(a=(i=this.options.current).onPaste)==null?void 0:a.call(i,...r)},onDelete:(...r)=>{var i,a;return(a=(i=this.options.current).onDelete)==null?void 0:a.call(i,...r)}};return new hK(t)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(t){return this.subscriptions.add(t),()=>{this.subscriptions.delete(t)}}static compareOptions(t,n){return Object.keys(t).every(r=>["onCreate","onBeforeCreate","onDestroy","onUpdate","onTransaction","onFocus","onBlur","onSelectionUpdate","onContentError","onDrop","onPaste"].includes(r)?!0:r==="extensions"&&t.extensions&&n.extensions?t.extensions.length!==n.extensions.length?!1:t.extensions.every((i,a)=>{var s;return i===((s=n.extensions)==null?void 0:s[a])}):t[r]===n[r])}onRender(t){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&t.length===0?l2.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}):this.refreshEditorInstance(t),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(t){if(this.editor&&!this.editor.isDestroyed){if(this.previousDeps===null){this.previousDeps=t;return}if(this.previousDeps.length===t.length&&this.previousDeps.every((r,i)=>r===t[i]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=t}scheduleDestroy(){const t=this.instanceId,n=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===t){n&&n.setOptions(this.options.current);return}n&&!n.isDestroyed&&(n.destroy(),this.instanceId===t&&this.setEditor(null))},1)}};function w7(e={},t=[]){const n=L.useRef(e);n.current=e;const[r]=L.useState(()=>new v7(n)),i=JD.useSyncExternalStore(r.subscribe,r.getEditor,r.getServerSnapshot);return L.useDebugValue(i),L.useEffect(r.onRender(t)),E7({editor:i,selector:({transactionNumber:a})=>e.shouldRerenderOnTransaction===!1||e.shouldRerenderOnTransaction===void 0?null:e.immediatelyRender&&a===0?0:a+1}),i}var u2=L.createContext({editor:null});u2.Consumer;var T7=L.createContext({onDragStart:()=>{},nodeViewContentChildren:void 0,nodeViewContentRef:()=>{}}),x7=()=>L.useContext(T7);gt.forwardRef((e,t)=>{const{onDragStart:n}=x7(),r=e.as||"div";return B.jsx(r,{...e,ref:t,"data-node-view-wrapper":"",onDragStart:n,style:{whiteSpace:"normal",...e.style}})});gt.createContext({markViewContentRef:()=>{}});var tx=L.createContext({get editor(){throw new Error("useTiptap must be used within a <Tiptap> provider")}});tx.displayName="TiptapContext";var A7=()=>L.useContext(tx);function c2({editor:e,instance:t,children:n}){const r=e??t;if(!r)throw new Error("Tiptap: An editor instance is required. Pass a non-null `editor` prop.");const i=L.useMemo(()=>({editor:r}),[r]),a=L.useMemo(()=>({editor:r}),[r]);return B.jsx(u2.Provider,{value:a,children:B.jsx(tx.Provider,{value:i,children:n})})}c2.displayName="Tiptap";function d2({...e}){const{editor:t}=A7();return B.jsx(s2,{editor:t,...e})}d2.displayName="Tiptap.Content";Object.assign(c2,{Content:d2});var Hp=(e,t)=>{if(e==="slot")return 0;if(e instanceof Function)return e(t);const{children:n,...r}=t??{};if(e==="svg")throw new Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");return[e,r,n]},C7=/^\s*>\s$/,R7=Kn.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:e}){return Hp("blockquote",{...Ft(this.options.HTMLAttributes,e),children:Hp("slot",{})})},parseMarkdown:(e,t)=>{var n;const r=(n=t.parseBlockChildren)!=null?n:t.parseChildren;return t.createNode("blockquote",void 0,r(e.tokens||[]))},renderMarkdown:(e,t)=>{if(!e.content)return"";const n=">",r=[];return e.content.forEach((i,a)=>{var s,u;const f=((u=(s=t.renderChild)==null?void 0:s.call(t,i,a))!=null?u:t.renderChildren([i])).split(`
|
|
187
|
+
`).map(m=>m.trim()===""?n:`${n} ${m}`);r.push(f.join(`
|
|
188
|
+
`))}),r.join(`
|
|
189
|
+
${n}
|
|
190
|
+
`)},addCommands(){return{setBlockquote:()=>({commands:e})=>e.wrapIn(this.name),toggleBlockquote:()=>({commands:e})=>e.toggleWrap(this.name),unsetBlockquote:()=>({commands:e})=>e.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[Gs({find:C7,type:this.type})]}}),N7=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,_7=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,O7=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,I7=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,D7=Ro.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:e=>e.style.fontWeight!=="normal"&&null},{style:"font-weight=400",clearMark:e=>e.type.name===this.name},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}]},renderHTML({HTMLAttributes:e}){return Hp("strong",{...Ft(this.options.HTMLAttributes,e),children:Hp("slot",{})})},markdownTokenName:"strong",parseMarkdown:(e,t)=>t.applyMark("bold",t.parseInline(e.tokens||[])),markdownOptions:{htmlReopen:{open:"<strong>",close:"</strong>"}},renderMarkdown:(e,t)=>`**${t.renderChildren(e)}**`,addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[js({find:N7,type:this.type}),js({find:O7,type:this.type})]},addPasteRules(){return[vo({find:_7,type:this.type}),vo({find:I7,type:this.type})]}}),L7=/(^|[^`])`([^`]+)`(?!`)$/,M7=/(^|[^`])`([^`]+)`(?!`)/g,B7=Ro.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:e}){return["code",Ft(this.options.HTMLAttributes,e),0]},markdownTokenName:"codespan",parseMarkdown:(e,t)=>t.applyMark("code",[{type:"text",text:e.text||""}]),renderMarkdown:(e,t)=>e.content?`\`${t.renderChildren(e.content)}\``:"",addCommands(){return{setCode:()=>({commands:e})=>e.setMark(this.name),toggleCode:()=>({commands:e})=>e.toggleMark(this.name),unsetCode:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[js({find:L7,type:this.type})]},addPasteRules(){return[vo({find:M7,type:this.type})]}}),_b=4,F7=/^```([a-z]+)?[\s\n]$/,z7=/^~~~([a-z]+)?[\s\n]$/,U7=Kn.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,enableTabIndentation:!1,tabSize:_b,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:e=>{var t;const{languageClassPrefix:n}=this.options;if(!n)return null;const a=[...((t=e.firstElementChild)==null?void 0:t.classList)||[]].filter(s=>s.startsWith(n)).map(s=>s.replace(n,""))[0];return a||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:e,HTMLAttributes:t}){return["pre",Ft(this.options.HTMLAttributes,t),["code",{class:e.attrs.language?this.options.languageClassPrefix+e.attrs.language:null},0]]},markdownTokenName:"code",parseMarkdown:(e,t)=>{var n,r;return((n=e.raw)==null?void 0:n.startsWith("```"))===!1&&((r=e.raw)==null?void 0:r.startsWith("~~~"))===!1&&e.codeBlockStyle!=="indented"?[]:t.createNode("codeBlock",{language:e.lang||null},e.text?[t.createTextNode(e.text)]:[])},renderMarkdown:(e,t)=>{var n;let r="";const i=((n=e.attrs)==null?void 0:n.language)||"";return e.content?r=[`\`\`\`${i}`,t.renderChildren(e.content),"```"].join(`
|
|
191
|
+
`):r=`\`\`\`${i}
|
|
192
|
+
|
|
193
|
+
\`\`\``,r},addCommands(){return{setCodeBlock:e=>({commands:t})=>t.setNode(this.name,e),toggleCodeBlock:e=>({commands:t})=>t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:e,$anchor:t}=this.editor.state.selection,n=t.pos===1;return!e||t.parent.type.name!==this.name?!1:n||!t.parent.textContent.length?this.editor.commands.clearNodes():!1},Tab:({editor:e})=>{var t;if(!this.options.enableTabIndentation)return!1;const n=(t=this.options.tabSize)!=null?t:_b,{state:r}=e,{selection:i}=r,{$from:a,empty:s}=i;if(a.parent.type!==this.type)return!1;const u=" ".repeat(n);return s?e.commands.insertContent(u):e.commands.command(({tr:c})=>{const{from:p,to:f}=i,b=r.doc.textBetween(p,f,`
|
|
194
|
+
`,`
|
|
195
|
+
`).split(`
|
|
196
|
+
`).map(S=>u+S).join(`
|
|
197
|
+
`);return c.replaceWith(p,f,r.schema.text(b)),!0})},"Shift-Tab":({editor:e})=>{var t;if(!this.options.enableTabIndentation)return!1;const n=(t=this.options.tabSize)!=null?t:_b,{state:r}=e,{selection:i}=r,{$from:a,empty:s}=i;return a.parent.type!==this.type?!1:s?e.commands.command(({tr:u})=>{var c;const{pos:p}=a,f=a.start(),m=a.end(),b=r.doc.textBetween(f,m,`
|
|
198
|
+
`,`
|
|
199
|
+
`).split(`
|
|
200
|
+
`);let S=0,k=0;const v=p-f;for(let R=0;R<b.length;R+=1){if(k+b[R].length>=v){S=R;break}k+=b[R].length+1}const x=((c=b[S].match(/^ */))==null?void 0:c[0])||"",A=Math.min(x.length,n);if(A===0)return!0;let D=f;for(let R=0;R<S;R+=1)D+=b[R].length+1;return u.delete(D,D+A),p-D<=A&&u.setSelection(Ne.create(u.doc,D)),!0}):e.commands.command(({tr:u})=>{const{from:c,to:p}=i,g=r.doc.textBetween(c,p,`
|
|
201
|
+
`,`
|
|
202
|
+
`).split(`
|
|
203
|
+
`).map(b=>{var S;const k=((S=b.match(/^ */))==null?void 0:S[0])||"",v=Math.min(k.length,n);return b.slice(v)}).join(`
|
|
204
|
+
`);return u.replaceWith(c,p,r.schema.text(g)),!0})},Enter:({editor:e})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:t}=e,{selection:n}=t,{$from:r,empty:i}=n;if(!i||r.parent.type!==this.type)return!1;const a=r.parentOffset===r.parent.nodeSize-2,s=r.parent.textContent.endsWith(`
|
|
205
|
+
|
|
206
|
+
`);return!a||!s?!1:e.chain().command(({tr:u})=>(u.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowDown:({editor:e})=>{if(!this.options.exitOnArrowDown)return!1;const{state:t}=e,{selection:n,doc:r}=t,{$from:i,empty:a}=n;if(!a||i.parent.type!==this.type||!(i.parentOffset===i.parent.nodeSize-2))return!1;const u=i.after();return u===void 0?!1:r.nodeAt(u)?e.commands.command(({tr:p})=>(p.setSelection(Fe.near(r.resolve(u))),!0)):e.commands.exitCode()}}},addInputRules(){return[Ly({find:F7,type:this.type,getAttributes:e=>({language:e[1]})}),Ly({find:z7,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new yt({key:new $t("codeBlockVSCodeHandler"),props:{handlePaste:(e,t)=>{if(!t.clipboardData||this.editor.isActive(this.type.name))return!1;const n=t.clipboardData.getData("text/plain"),r=t.clipboardData.getData("vscode-editor-data"),i=r?JSON.parse(r):void 0,a=i?.mode;if(!n||!a)return!1;const{tr:s,schema:u}=e.state,c=u.text(n.replace(/\r\n?/g,`
|
|
207
|
+
`));return s.replaceSelectionWith(this.type.create({language:a},c)),s.selection.$from.parent.type!==this.type&&s.setSelection(Ne.near(s.doc.resolve(Math.max(0,s.selection.from-2)))),s.setMeta("paste",!0),e.dispatch(s),!0}}})]}}),P7=Kn.create({name:"doc",topNode:!0,content:"block+",renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,`
|
|
208
|
+
|
|
209
|
+
`):""}),$7=Kn.create({name:"hardBreak",markdownTokenName:"br",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:e}){return["br",Ft(this.options.HTMLAttributes,e)]},renderText(){return`
|
|
210
|
+
`},renderMarkdown:()=>`
|
|
211
|
+
`,parseMarkdown:()=>({type:"hardBreak"}),addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:n,editor:r})=>e.first([()=>e.exitCode(),()=>e.command(()=>{const{selection:i,storedMarks:a}=n;if(i.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:u}=r.extensionManager,c=a||i.$to.parentOffset&&i.$from.marks();return t().insertContent({type:this.name}).command(({tr:p,dispatch:f})=>{if(f&&c&&s){const m=c.filter(g=>u.includes(g.type.name));p.ensureMarks(m)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),H7=Kn.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(e=>({tag:`h${e}`,attrs:{level:e}}))},renderHTML({node:e,HTMLAttributes:t}){return[`h${this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0]}`,Ft(this.options.HTMLAttributes,t),0]},parseMarkdown:(e,t)=>t.createNode("heading",{level:e.depth||1},t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>{var n;const r=(n=e.attrs)!=null&&n.level?parseInt(e.attrs.level,10):1,i="#".repeat(r);return e.content?`${i} ${t.renderChildren(e.content)}`:""},addCommands(){return{setHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.setNode(this.name,e):!1,toggleHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.toggleNode(this.name,"paragraph",e):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((e,t)=>({...e,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}),{})},addInputRules(){return this.options.levels.map(e=>Ly({find:new RegExp(`^(#{${Math.min(...this.options.levels)},${e}})\\s$`),type:this.type,getAttributes:{level:e}}))}}),j7=Kn.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{},nextNodeType:"paragraph"}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:e}){return["hr",Ft(this.options.HTMLAttributes,e)]},markdownTokenName:"hr",parseMarkdown:(e,t)=>t.createNode("horizontalRule"),renderMarkdown:()=>"---",addCommands(){return{setHorizontalRule:()=>({chain:e,state:t})=>{if(!gK(t,t.schema.nodes[this.name]))return!1;const{selection:n}=t,{$to:r}=n,i=e();return HM(n)?i.insertContentAt(r.pos,{type:this.name}):i.insertContent({type:this.name}),i.command(({state:a,tr:s,dispatch:u})=>{if(u){const{$to:c}=s.selection,p=c.end();if(c.nodeAfter)c.nodeAfter.isTextblock?s.setSelection(Ne.create(s.doc,c.pos+1)):c.nodeAfter.isBlock?s.setSelection(xe.create(s.doc,c.pos)):s.setSelection(Ne.create(s.doc,c.pos));else{const f=a.schema.nodes[this.options.nextNodeType]||c.parent.type.contentMatch.defaultType,m=f?.create();m&&(s.insert(p,m),s.setSelection(Ne.create(s.doc,p+1)))}s.scrollIntoView()}return!0}).run()}}},addInputRules(){return[mK({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),G7=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,V7=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,q7=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,W7=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,Y7=Ro.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:e=>e.style.fontStyle!=="normal"&&null},{style:"font-style=normal",clearMark:e=>e.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:e}){return["em",Ft(this.options.HTMLAttributes,e),0]},addCommands(){return{setItalic:()=>({commands:e})=>e.setMark(this.name),toggleItalic:()=>({commands:e})=>e.toggleMark(this.name),unsetItalic:()=>({commands:e})=>e.unsetMark(this.name)}},markdownTokenName:"em",parseMarkdown:(e,t)=>t.applyMark("italic",t.parseInline(e.tokens||[])),markdownOptions:{htmlReopen:{open:"<em>",close:"</em>"}},renderMarkdown:(e,t)=>`*${t.renderChildren(e)}*`,addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[js({find:G7,type:this.type}),js({find:q7,type:this.type})]},addPasteRules(){return[vo({find:V7,type:this.type}),vo({find:W7,type:this.type})]}});const K7="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",X7="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",Fy="numeric",zy="ascii",Uy="alpha",Au="asciinumeric",mu="alphanumeric",Py="domain",p2="emoji",Z7="scheme",Q7="slashscheme",Ob="whitespace";function J7(e,t){return e in t||(t[e]=[]),t[e]}function oo(e,t,n){t[Fy]&&(t[Au]=!0,t[mu]=!0),t[zy]&&(t[Au]=!0,t[Uy]=!0),t[Au]&&(t[mu]=!0),t[Uy]&&(t[mu]=!0),t[mu]&&(t[Py]=!0),t[p2]&&(t[Py]=!0);for(const r in t){const i=J7(r,n);i.indexOf(e)<0&&i.push(e)}}function eX(e,t){const n={};for(const r in t)t[r].indexOf(e)>=0&&(n[r]=!0);return n}function On(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}On.groups={};On.prototype={accepts(){return!!this.t},go(e){const t=this,n=t.j[e];if(n)return n;for(let r=0;r<t.jr.length;r++){const i=t.jr[r][0],a=t.jr[r][1];if(a&&i.test(e))return a}return t.jd},has(e,t=!1){return t?e in this.j:!!this.go(e)},ta(e,t,n,r){for(let i=0;i<e.length;i++)this.tt(e[i],t,n,r)},tr(e,t,n,r){r=r||On.groups;let i;return t&&t.j?i=t:(i=new On(t),n&&r&&oo(t,n,r)),this.jr.push([e,i]),i},ts(e,t,n,r){let i=this;const a=e.length;if(!a)return i;for(let s=0;s<a-1;s++)i=i.tt(e[s]);return i.tt(e[a-1],t,n,r)},tt(e,t,n,r){r=r||On.groups;const i=this;if(t&&t.j)return i.j[e]=t,t;const a=t;let s,u=i.go(e);if(u?(s=new On,Object.assign(s.j,u.j),s.jr.push.apply(s.jr,u.jr),s.jd=u.jd,s.t=u.t):s=new On,a){if(r)if(s.t&&typeof s.t=="string"){const c=Object.assign(eX(s.t,r),n);oo(a,c,r)}else n&&oo(a,n,r);s.t=a}return i.j[e]=s,s}};const Be=(e,t,n,r,i)=>e.ta(t,n,r,i),vt=(e,t,n,r,i)=>e.tr(t,n,r,i),CO=(e,t,n,r,i)=>e.ts(t,n,r,i),ce=(e,t,n,r,i)=>e.tt(t,n,r,i),gi="WORD",$y="UWORD",f2="ASCIINUMERICAL",h2="ALPHANUMERICAL",Yu="LOCALHOST",Hy="TLD",jy="UTLD",fp="SCHEME",Rs="SLASH_SCHEME",nx="NUM",Gy="WS",rx="NL",Cu="OPENBRACE",Ru="CLOSEBRACE",jp="OPENBRACKET",Gp="CLOSEBRACKET",Vp="OPENPAREN",qp="CLOSEPAREN",Wp="OPENANGLEBRACKET",Yp="CLOSEANGLEBRACKET",Kp="FULLWIDTHLEFTPAREN",Xp="FULLWIDTHRIGHTPAREN",Zp="LEFTCORNERBRACKET",Qp="RIGHTCORNERBRACKET",Jp="LEFTWHITECORNERBRACKET",ef="RIGHTWHITECORNERBRACKET",tf="FULLWIDTHLESSTHAN",nf="FULLWIDTHGREATERTHAN",rf="AMPERSAND",af="APOSTROPHE",of="ASTERISK",sa="AT",sf="BACKSLASH",lf="BACKTICK",uf="CARET",ca="COLON",ix="COMMA",cf="DOLLAR",Br="DOT",df="EQUALS",ax="EXCLAMATION",sr="HYPHEN",Nu="PERCENT",pf="PIPE",ff="PLUS",hf="POUND",_u="QUERY",ox="QUOTE",m2="FULLWIDTHMIDDLEDOT",sx="SEMI",Fr="SLASH",Ou="TILDE",mf="UNDERSCORE",g2="EMOJI",gf="SYM";var b2=Object.freeze({__proto__:null,ALPHANUMERICAL:h2,AMPERSAND:rf,APOSTROPHE:af,ASCIINUMERICAL:f2,ASTERISK:of,AT:sa,BACKSLASH:sf,BACKTICK:lf,CARET:uf,CLOSEANGLEBRACKET:Yp,CLOSEBRACE:Ru,CLOSEBRACKET:Gp,CLOSEPAREN:qp,COLON:ca,COMMA:ix,DOLLAR:cf,DOT:Br,EMOJI:g2,EQUALS:df,EXCLAMATION:ax,FULLWIDTHGREATERTHAN:nf,FULLWIDTHLEFTPAREN:Kp,FULLWIDTHLESSTHAN:tf,FULLWIDTHMIDDLEDOT:m2,FULLWIDTHRIGHTPAREN:Xp,HYPHEN:sr,LEFTCORNERBRACKET:Zp,LEFTWHITECORNERBRACKET:Jp,LOCALHOST:Yu,NL:rx,NUM:nx,OPENANGLEBRACKET:Wp,OPENBRACE:Cu,OPENBRACKET:jp,OPENPAREN:Vp,PERCENT:Nu,PIPE:pf,PLUS:ff,POUND:hf,QUERY:_u,QUOTE:ox,RIGHTCORNERBRACKET:Qp,RIGHTWHITECORNERBRACKET:ef,SCHEME:fp,SEMI:sx,SLASH:Fr,SLASH_SCHEME:Rs,SYM:gf,TILDE:Ou,TLD:Hy,UNDERSCORE:mf,UTLD:jy,UWORD:$y,WORD:gi,WS:Gy});const hi=/[a-z]/,ou=new RegExp("\\p{L}","u"),Ib=new RegExp("\\p{Emoji}","u"),mi=/\d/,Db=/\s/,RO="\r",Lb=`
|
|
212
|
+
`,tX="️",nX="",Mb="";let Qd=null,Jd=null;function rX(e=[]){const t={};On.groups=t;const n=new On;Qd==null&&(Qd=NO(K7)),Jd==null&&(Jd=NO(X7)),ce(n,"'",af),ce(n,"{",Cu),ce(n,"}",Ru),ce(n,"[",jp),ce(n,"]",Gp),ce(n,"(",Vp),ce(n,")",qp),ce(n,"<",Wp),ce(n,">",Yp),ce(n,"(",Kp),ce(n,")",Xp),ce(n,"「",Zp),ce(n,"」",Qp),ce(n,"『",Jp),ce(n,"』",ef),ce(n,"<",tf),ce(n,">",nf),ce(n,"&",rf),ce(n,"*",of),ce(n,"@",sa),ce(n,"`",lf),ce(n,"^",uf),ce(n,":",ca),ce(n,",",ix),ce(n,"$",cf),ce(n,".",Br),ce(n,"=",df),ce(n,"!",ax),ce(n,"-",sr),ce(n,"%",Nu),ce(n,"|",pf),ce(n,"+",ff),ce(n,"#",hf),ce(n,"?",_u),ce(n,'"',ox),ce(n,"/",Fr),ce(n,";",sx),ce(n,"~",Ou),ce(n,"_",mf),ce(n,"\\",sf),ce(n,"・",m2);const r=vt(n,mi,nx,{[Fy]:!0});vt(r,mi,r);const i=vt(r,hi,f2,{[Au]:!0}),a=vt(r,ou,h2,{[mu]:!0}),s=vt(n,hi,gi,{[zy]:!0});vt(s,mi,i),vt(s,hi,s),vt(i,mi,i),vt(i,hi,i);const u=vt(n,ou,$y,{[Uy]:!0});vt(u,hi),vt(u,mi,a),vt(u,ou,u),vt(a,mi,a),vt(a,hi),vt(a,ou,a);const c=ce(n,Lb,rx,{[Ob]:!0}),p=ce(n,RO,Gy,{[Ob]:!0}),f=vt(n,Db,Gy,{[Ob]:!0});ce(n,Mb,f),ce(p,Lb,c),ce(p,Mb,f),vt(p,Db,f),ce(f,RO),ce(f,Lb),vt(f,Db,f),ce(f,Mb,f);const m=vt(n,Ib,g2,{[p2]:!0});ce(m,"#"),vt(m,Ib,m),ce(m,tX,m);const g=ce(m,nX);ce(g,"#"),vt(g,Ib,m);const b=[[hi,s],[mi,i]],S=[[hi,null],[ou,u],[mi,a]];for(let k=0;k<Qd.length;k++)ra(n,Qd[k],Hy,gi,b);for(let k=0;k<Jd.length;k++)ra(n,Jd[k],jy,$y,S);oo(Hy,{tld:!0,ascii:!0},t),oo(jy,{utld:!0,alpha:!0},t),ra(n,"file",fp,gi,b),ra(n,"mailto",fp,gi,b),ra(n,"http",Rs,gi,b),ra(n,"https",Rs,gi,b),ra(n,"ftp",Rs,gi,b),ra(n,"ftps",Rs,gi,b),oo(fp,{scheme:!0,ascii:!0},t),oo(Rs,{slashscheme:!0,ascii:!0},t),e=e.sort((k,v)=>k[0]>v[0]?1:-1);for(let k=0;k<e.length;k++){const v=e[k][0],x=e[k][1]?{[Z7]:!0}:{[Q7]:!0};v.indexOf("-")>=0?x[Py]=!0:hi.test(v)?mi.test(v)?x[Au]=!0:x[zy]=!0:x[Fy]=!0,CO(n,v,v,x)}return CO(n,"localhost",Yu,{ascii:!0}),n.jd=new On(gf),{start:n,tokens:Object.assign({groups:t},b2)}}function y2(e,t){const n=iX(t.replace(/[A-Z]/g,u=>u.toLowerCase())),r=n.length,i=[];let a=0,s=0;for(;s<r;){let u=e,c=null,p=0,f=null,m=-1,g=-1;for(;s<r&&(c=u.go(n[s]));)u=c,u.accepts()?(m=0,g=0,f=u):m>=0&&(m+=n[s].length,g++),p+=n[s].length,a+=n[s].length,s++;a-=m,s-=g,p-=m,i.push({t:f.t,v:t.slice(a-p,a),s:a-p,e:a})}return i}function iX(e){const t=[],n=e.length;let r=0;for(;r<n;){let i=e.charCodeAt(r),a,s=i<55296||i>56319||r+1===n||(a=e.charCodeAt(r+1))<56320||a>57343?e[r]:e.slice(r,r+2);t.push(s),r+=s.length}return t}function ra(e,t,n,r,i){let a;const s=t.length;for(let u=0;u<s-1;u++){const c=t[u];e.j[c]?a=e.j[c]:(a=new On(r),a.jr=i.slice(),e.j[c]=a),e=a}return a=new On(n),a.jr=i.slice(),e.j[t[s-1]]=a,a}function NO(e){const t=[],n=[];let r=0,i="0123456789";for(;r<e.length;){let a=0;for(;i.indexOf(e[r+a])>=0;)a++;if(a>0){t.push(n.join(""));for(let s=parseInt(e.substring(r,r+a),10);s>0;s--)n.pop();r+=a}else n.push(e[r]),r++}return t}const Ku={defaultProtocol:"http",events:null,format:_O,formatHref:_O,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function lx(e,t=null){let n=Object.assign({},Ku);e&&(n=Object.assign(n,e instanceof lx?e.o:e));const r=n.ignoreTags,i=[];for(let a=0;a<r.length;a++)i.push(r[a].toUpperCase());this.o=n,t&&(this.defaultRender=t),this.ignoreTags=i}lx.prototype={o:Ku,ignoreTags:[],defaultRender(e){return e},check(e){return this.get("validate",e.toString(),e)},get(e,t,n){const r=t!=null;let i=this.o[e];return i&&(typeof i=="object"?(i=n.t in i?i[n.t]:Ku[e],typeof i=="function"&&r&&(i=i(t,n))):typeof i=="function"&&r&&(i=i(t,n.t,n)),i)},getObj(e,t,n){let r=this.o[e];return typeof r=="function"&&t!=null&&(r=r(t,n.t,n)),r},render(e){const t=e.render(this);return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}};function _O(e){return e}function E2(e,t){this.t="token",this.v=e,this.tk=t}E2.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){const t=this.toString(),n=e.get("truncate",t,this),r=e.get("format",t,this);return n&&r.length>n?r.substring(0,n)+"…":r},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e=Ku.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){const t=this,n=this.toHref(e.get("defaultProtocol")),r=e.get("formatHref",n,this),i=e.get("tagName",n,t),a=this.toFormattedString(e),s={},u=e.get("className",n,t),c=e.get("target",n,t),p=e.get("rel",n,t),f=e.getObj("attributes",n,t),m=e.getObj("events",n,t);return s.href=r,u&&(s.class=u),c&&(s.target=c),p&&(s.rel=p),f&&Object.assign(s,f),{tagName:i,attributes:s,content:a,eventListeners:m}}};function sh(e,t){class n extends E2{constructor(i,a){super(i,a),this.t=e}}for(const r in t)n.prototype[r]=t[r];return n.t=e,n}const OO=sh("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),IO=sh("text"),aX=sh("nl"),ep=sh("url",{isLink:!0,toHref(e=Ku.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){const e=this.tk;return e.length>=2&&e[0].t!==Yu&&e[1].t===ca}}),or=e=>new On(e);function oX({groups:e}){const t=e.domain.concat([rf,of,sa,sf,lf,uf,cf,df,sr,nx,Nu,pf,ff,hf,Fr,gf,Ou,mf]),n=[af,ca,ix,Br,ax,Nu,_u,ox,sx,Wp,Yp,Cu,Ru,Gp,jp,Vp,qp,Kp,Xp,Zp,Qp,Jp,ef,tf,nf],r=[rf,af,of,sf,lf,uf,cf,df,sr,Cu,Ru,Nu,pf,ff,hf,_u,Fr,gf,Ou,mf],i=or(),a=ce(i,Ou);Be(a,r,a),Be(a,e.domain,a);const s=or(),u=or(),c=or();Be(i,e.domain,s),Be(i,e.scheme,u),Be(i,e.slashscheme,c),Be(s,r,a),Be(s,e.domain,s);const p=ce(s,sa);ce(a,sa,p),ce(u,sa,p),ce(c,sa,p);const f=ce(a,Br);Be(f,r,a),Be(f,e.domain,a);const m=or();Be(p,e.domain,m),Be(m,e.domain,m);const g=ce(m,Br);Be(g,e.domain,m);const b=or(OO);Be(g,e.tld,b),Be(g,e.utld,b),ce(p,Yu,b);const S=ce(m,sr);ce(S,sr,S),Be(S,e.domain,m),Be(b,e.domain,m),ce(b,Br,g),ce(b,sr,S);const k=ce(b,ca);Be(k,e.numeric,OO);const v=ce(s,sr),w=ce(s,Br);ce(v,sr,v),Be(v,e.domain,s),Be(w,r,a),Be(w,e.domain,s);const x=or(ep);Be(w,e.tld,x),Be(w,e.utld,x),Be(x,e.domain,s),Be(x,r,a),ce(x,Br,w),ce(x,sr,v),ce(x,sa,p);const A=ce(x,ca),D=or(ep);Be(A,e.numeric,D);const O=or(ep),R=or();Be(O,t,O),Be(O,n,R),Be(R,t,O),Be(R,n,R),ce(x,Fr,O),ce(D,Fr,O);const M=ce(u,ca),U=ce(c,ca),G=ce(U,Fr),F=ce(G,Fr);Be(u,e.domain,s),ce(u,Br,w),ce(u,sr,v),Be(c,e.domain,s),ce(c,Br,w),ce(c,sr,v),Be(M,e.domain,O),ce(M,Fr,O),ce(M,_u,O),Be(F,e.domain,O),Be(F,t,O),ce(F,Fr,O);const Q=[[Cu,Ru],[jp,Gp],[Vp,qp],[Wp,Yp],[Kp,Xp],[Zp,Qp],[Jp,ef],[tf,nf]];for(let q=0;q<Q.length;q++){const[te,J]=Q[q],Z=ce(O,te);ce(R,te,Z),ce(Z,J,O);const $=or(ep);Be(Z,t,$);const W=or();Be(Z,n),Be($,t,$),Be($,n,W),Be(W,t,$),Be(W,n,W),ce($,J,O),ce(W,J,O)}return ce(i,Yu,x),ce(i,rx,aX),{start:i,tokens:b2}}function sX(e,t,n){let r=n.length,i=0,a=[],s=[];for(;i<r;){let u=e,c=null,p=null,f=0,m=null,g=-1;for(;i<r&&!(c=u.go(n[i].t));)s.push(n[i++]);for(;i<r&&(p=c||u.go(n[i].t));)c=null,u=p,u.accepts()?(g=0,m=u):g>=0&&g++,i++,f++;if(g<0)i-=f,i<r&&(s.push(n[i]),i++);else{s.length>0&&(a.push(Bb(IO,t,s)),s=[]),i-=g,f-=g;const b=m.t,S=n.slice(i-f,i);a.push(Bb(b,t,S))}}return s.length>0&&a.push(Bb(IO,t,s)),a}function Bb(e,t,n){const r=n[0].s,i=n[n.length-1].e,a=t.slice(r,i);return new e(a,n)}const lX=typeof console<"u"&&console&&console.warn||(()=>{}),uX="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",ht={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function cX(){return On.groups={},ht.scanner=null,ht.parser=null,ht.tokenQueue=[],ht.pluginQueue=[],ht.customSchemes=[],ht.initialized=!1,ht}function DO(e,t=!1){if(ht.initialized&&lX(`linkifyjs: already initialized - will not register custom scheme "${e}" ${uX}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw new Error(`linkifyjs: incorrect scheme format.
|
|
213
|
+
1. Must only contain digits, lowercase ASCII letters or "-"
|
|
214
|
+
2. Cannot start or end with "-"
|
|
215
|
+
3. "-" cannot repeat`);ht.customSchemes.push([e,t])}function dX(){ht.scanner=rX(ht.customSchemes);for(let e=0;e<ht.tokenQueue.length;e++)ht.tokenQueue[e][1]({scanner:ht.scanner});ht.parser=oX(ht.scanner.tokens);for(let e=0;e<ht.pluginQueue.length;e++)ht.pluginQueue[e][1]({scanner:ht.scanner,parser:ht.parser});return ht.initialized=!0,ht}function ux(e){return ht.initialized||dX(),sX(ht.parser.start,e,y2(ht.scanner.start,e))}ux.scan=y2;function S2(e,t=null,n=null){if(t&&typeof t=="object"){if(n)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);n=t,t=null}const r=new lx(n),i=ux(e),a=[];for(let s=0;s<i.length;s++){const u=i[s];u.isLink&&(!t||u.t===t)&&r.check(u)&&a.push(u.toFormattedObject(r))}return a}var cx="[\0- -\u2029 ]",pX=new RegExp(cx),fX=new RegExp(`${cx}$`),hX=new RegExp(cx,"g");function mX(e){return e.length===1?e[0].isLink:e.length===3&&e[1].isLink?["()","[]"].includes(e[0].value+e[2].value):!1}function gX(e){return new yt({key:new $t("autolink"),appendTransaction:(t,n,r)=>{const i=t.some(p=>p.docChanged)&&!n.doc.eq(r.doc),a=t.some(p=>p.getMeta("preventAutolink"));if(!i||a)return;const{tr:s}=r,u=LM(n.doc,[...t]);if($M(u).forEach(({newRange:p})=>{const f=h8(r.doc,p,b=>b.isTextblock);let m,g;if(f.length>1)m=f[0],g=r.doc.textBetween(m.pos,m.pos+m.node.nodeSize,void 0," ");else if(f.length){const b=r.doc.textBetween(p.from,p.to," "," ");if(!fX.test(b))return;m=f[0],g=r.doc.textBetween(m.pos,p.to,void 0," ")}if(m&&g){const b=g.split(pX).filter(Boolean);if(b.length<=0)return!1;const S=b[b.length-1],k=m.pos+g.lastIndexOf(S);if(!S)return!1;const v=ux(S).map(w=>w.toObject(e.defaultProtocol));if(!mX(v))return!1;v.filter(w=>w.isLink).map(w=>({...w,from:k+w.start+1,to:k+w.end+1})).filter(w=>r.schema.marks.code?!r.doc.rangeHasMark(w.from,w.to,r.schema.marks.code):!0).filter(w=>e.validate(w.value)).filter(w=>e.shouldAutoLink(w.value)).forEach(w=>{XT(w.from,w.to,r.doc).some(x=>x.mark.type===e.type)||s.addMark(w.from,w.to,e.type.create({href:w.href}))})}}),!!s.steps.length)return s}})}function bX(e){return new yt({key:new $t("handleClickLink"),props:{handleClick:(t,n,r)=>{var i,a;if(r.button!==0||!t.editable)return!1;let s=null;if(r.target instanceof HTMLAnchorElement)s=r.target;else{const c=r.target;if(!c)return!1;const p=e.editor.view.dom;s=c.closest("a"),s&&!p.contains(s)&&(s=null)}if(!s)return!1;let u=!1;if(e.enableClickSelection&&(u=e.editor.commands.extendMarkRange(e.type.name)),e.openOnClick){const c=PM(t.state,e.type.name),p=(i=s.href)!=null?i:c.href,f=(a=s.target)!=null?a:c.target;p&&(window.open(p,f),u=!0)}return u}}})}function yX(e){return new yt({key:new $t("handlePasteLink"),props:{handlePaste:(t,n,r)=>{const{shouldAutoLink:i}=e,{state:a}=t,{selection:s}=a,{empty:u}=s;if(u)return!1;let c="";r.content.forEach(f=>{c+=f.textContent});const p=S2(c,{defaultProtocol:e.defaultProtocol}).find(f=>f.isLink&&f.value===c);return!c||!p||i!==void 0&&!i(p.value)?!1:e.editor.commands.setMark(e.type,{href:p.href})}}})}function eo(e,t){const n=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return t&&t.forEach(r=>{const i=typeof r=="string"?r:r.scheme;i&&n.push(i)}),!e||e.replace(hX,"").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}var EX=Ro.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(e=>{if(typeof e=="string"){DO(e);return}DO(e.scheme,e.optionalSlashes)})},onDestroy(){cX()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,enableClickSelection:!1,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(e,t)=>!!eo(e,t.protocols),validate:e=>!!e,shouldAutoLink:e=>{const t=/^[a-z][a-z0-9+.-]*:\/\//i.test(e),n=/^[a-z][a-z0-9+.-]*:/i.test(e);if(t||n&&!e.includes("@"))return!0;const i=(e.includes("@")?e.split("@").pop():e).split(/[/?#:]/)[0];return!(/^\d{1,3}(\.\d{1,3}){3}$/.test(i)||!/\./.test(i))}}},addAttributes(){return{href:{default:null,parseHTML(e){return e.getAttribute("href")}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class},title:{default:null}}},parseHTML(){return[{tag:"a[href]",getAttrs:e=>{const t=e.getAttribute("href");return!t||!this.options.isAllowedUri(t,{defaultValidate:n=>!!eo(n,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:e}){return this.options.isAllowedUri(e.href,{defaultValidate:t=>!!eo(t,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",Ft(this.options.HTMLAttributes,e),0]:["a",Ft(this.options.HTMLAttributes,{...e,href:""}),0]},markdownTokenName:"link",parseMarkdown:(e,t)=>t.applyMark("link",t.parseInline(e.tokens||[]),{href:e.href,title:e.title||null}),renderMarkdown:(e,t)=>{var n,r,i,a;const s=(r=(n=e.attrs)==null?void 0:n.href)!=null?r:"",u=(a=(i=e.attrs)==null?void 0:i.title)!=null?a:"",c=t.renderChildren(e);return u?`[${c}](${s} "${u}")`:`[${c}](${s})`},addCommands(){return{setLink:e=>({chain:t})=>{const{href:n}=e;return this.options.isAllowedUri(n,{defaultValidate:r=>!!eo(r,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?t().setMark(this.name,e).setMeta("preventAutolink",!0).run():!1},toggleLink:e=>({chain:t})=>{const{href:n}=e||{};return n&&!this.options.isAllowedUri(n,{defaultValidate:r=>!!eo(r,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:t().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()},unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[vo({find:e=>{const t=[];if(e){const{protocols:n,defaultProtocol:r}=this.options,i=S2(e).filter(a=>a.isLink&&this.options.isAllowedUri(a.value,{defaultValidate:s=>!!eo(s,n),protocols:n,defaultProtocol:r}));i.length&&i.forEach(a=>{this.options.shouldAutoLink(a.value)&&t.push({text:a.value,data:{href:a.href},index:a.start})})}return t},type:this.type,getAttributes:e=>{var t;return{href:(t=e.data)==null?void 0:t.href}}})]},addProseMirrorPlugins(){const e=[],{protocols:t,defaultProtocol:n}=this.options;return this.options.autolink&&e.push(gX({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:r=>this.options.isAllowedUri(r,{defaultValidate:i=>!!eo(i,t),protocols:t,defaultProtocol:n}),shouldAutoLink:this.options.shouldAutoLink})),e.push(bX({type:this.type,editor:this.editor,openOnClick:this.options.openOnClick==="whenNotEditable"?!0:this.options.openOnClick,enableClickSelection:this.options.enableClickSelection})),this.options.linkOnPaste&&e.push(yX({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type,shouldAutoLink:this.options.shouldAutoLink})),e}}),SX=Object.defineProperty,kX=(e,t)=>{for(var n in t)SX(e,n,{get:t[n],enumerable:!0})},vX="listItem",LO="textStyle",MO=/^\s*([-+*])\s$/,k2=Kn.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:e}){return["ul",Ft(this.options.HTMLAttributes,e),0]},markdownTokenName:"list",parseMarkdown:(e,t)=>e.type!=="list"||e.ordered?[]:{type:"bulletList",content:e.items?t.parseChildren(e.items):[]},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,`
|
|
216
|
+
`):"",markdownOptions:{indentsContent:!0},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(vX,this.editor.getAttributes(LO)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=Gs({find:MO,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=Gs({find:MO,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(LO),editor:this.editor})),[e]}}),v2=Kn.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:e}){return["li",Ft(this.options.HTMLAttributes,e),0]},markdownTokenName:"list_item",parseMarkdown:(e,t)=>{var n;if(e.type!=="list_item")return[];const r=(n=t.parseBlockChildren)!=null?n:t.parseChildren;let i=[];if(e.tokens&&e.tokens.length>0)if(e.tokens.some(s=>s.type==="paragraph"))i=r(e.tokens);else{const s=e.tokens[0];if(s&&s.type==="text"&&s.tokens&&s.tokens.length>0){if(i=[{type:"paragraph",content:t.parseInline(s.tokens)}],e.tokens.length>1){const c=e.tokens.slice(1),p=r(c);i.push(...p)}}else i=r(e.tokens)}return i.length===0&&(i=[{type:"paragraph",content:[]}]),{type:"listItem",content:i}},renderMarkdown:(e,t,n)=>ex(e,t,r=>{var i,a;return r.parentType==="bulletList"?"- ":r.parentType==="orderedList"?`${(((a=(i=r.meta)==null?void 0:i.parentAttrs)==null?void 0:a.start)||1)+r.index}. `:"- "},n),addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),wX={};kX(wX,{findListItemPos:()=>hc,getNextListDepth:()=>dx,handleBackspace:()=>Vy,handleDelete:()=>qy,hasListBefore:()=>w2,hasListItemAfter:()=>TX,hasListItemBefore:()=>T2,listItemHasSubList:()=>x2,nextListIsDeeper:()=>A2,nextListIsHigher:()=>C2});var hc=(e,t)=>{const{$from:n}=t.selection,r=Bt(e,t.schema);let i=null,a=n.depth,s=n.pos,u=null;for(;a>0&&u===null;)i=n.node(a),i.type===r?u=a:(a-=1,s-=1);return u===null?null:{$pos:t.doc.resolve(s),depth:u}},dx=(e,t)=>{const n=hc(e,t);if(!n)return!1;const[,r]=A8(t,e,n.$pos.pos+4);return r},w2=(e,t,n)=>{const{$anchor:r}=e.selection,i=Math.max(0,r.pos-2),a=e.doc.resolve(i).node();return!(!a||!n.includes(a.type.name))},T2=(e,t)=>{var n;const{$anchor:r}=t.selection,i=t.doc.resolve(r.pos-2);return!(i.index()===0||((n=i.nodeBefore)==null?void 0:n.type.name)!==e)},x2=(e,t,n)=>{if(!n)return!1;const r=Bt(e,t.schema);let i=!1;return n.descendants(a=>{a.type===r&&(i=!0)}),i},Vy=(e,t,n)=>{if(e.commands.undoInputRule())return!0;if(e.state.selection.from!==e.state.selection.to)return!1;if(!Ta(e.state,t)&&w2(e.state,t,n)){const{$anchor:u}=e.state.selection,c=e.state.doc.resolve(u.before()-1),p=[];c.node().descendants((g,b)=>{g.type.name===t&&p.push({node:g,pos:b})});const f=p.at(-1);if(!f)return!1;const m=e.state.doc.resolve(c.start()+f.pos+1);return e.chain().cut({from:u.start()-1,to:u.end()+1},m.end()).joinForward().run()}if(!Ta(e.state,t)||!_8(e.state))return!1;const r=hc(t,e.state);if(!r)return!1;const a=e.state.doc.resolve(r.$pos.pos-2).node(r.depth),s=x2(t,e.state,a);return T2(t,e.state)&&!s?e.commands.joinItemBackward():e.chain().liftListItem(t).run()},A2=(e,t)=>{const n=dx(e,t),r=hc(e,t);return!r||!n?!1:n>r.depth},C2=(e,t)=>{const n=dx(e,t),r=hc(e,t);return!r||!n?!1:n<r.depth},qy=(e,t)=>{if(!Ta(e.state,t)||!N8(e.state,t))return!1;const{selection:n}=e.state,{$from:r,$to:i}=n;return!n.empty&&r.sameParent(i)?!1:A2(t,e.state)?e.chain().focus(e.state.selection.from+4).lift(t).joinBackward().run():C2(t,e.state)?e.chain().joinForward().joinBackward().run():e.commands.joinItemForward()},TX=(e,t)=>{var n;const{$anchor:r}=t.selection,i=t.doc.resolve(r.pos-r.parentOffset-2);return!(i.index()===i.parent.childCount-1||((n=i.nodeAfter)==null?void 0:n.type.name)!==e)},R2=Tt.create({name:"listKeymap",addOptions(){return{listTypes:[{itemName:"listItem",wrapperNames:["bulletList","orderedList"]},{itemName:"taskItem",wrapperNames:["taskList"]}]}},addKeyboardShortcuts(){return{Delete:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n})=>{e.state.schema.nodes[n]!==void 0&&qy(e,n)&&(t=!0)}),t},"Mod-Delete":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n})=>{e.state.schema.nodes[n]!==void 0&&qy(e,n)&&(t=!0)}),t},Backspace:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:r})=>{e.state.schema.nodes[n]!==void 0&&Vy(e,n,r)&&(t=!0)}),t},"Mod-Backspace":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:r})=>{e.state.schema.nodes[n]!==void 0&&Vy(e,n,r)&&(t=!0)}),t}}}}),BO=/^(\s*)(\d+)\.\s+(.*)$/,xX=/^\s/;function AX(e){const t=[];let n=0,r=0;for(;n<e.length;){const i=e[n],a=i.match(BO);if(!a)break;const[,s,u,c]=a,p=s.length;let f=c,m=n+1;const g=[i];for(;m<e.length;){const b=e[m];if(b.match(BO))break;if(b.trim()==="")g.push(b),f+=`
|
|
217
|
+
`,m+=1;else if(b.match(xX))g.push(b),f+=`
|
|
218
|
+
${b.slice(p+2)}`,m+=1;else break}t.push({indent:p,number:parseInt(u,10),content:f.trim(),raw:g.join(`
|
|
219
|
+
`)}),r=m,n=m}return[t,r]}function N2(e,t,n){var r;const i=[];let a=0;for(;a<e.length;){const s=e[a];if(s.indent===t){const u=s.content.split(`
|
|
220
|
+
`),c=((r=u[0])==null?void 0:r.trim())||"",p=[];c&&p.push({type:"paragraph",raw:c,tokens:n.inlineTokens(c)});const f=u.slice(1).join(`
|
|
221
|
+
`).trim();if(f){const b=n.blockTokens(f);p.push(...b)}let m=a+1;const g=[];for(;m<e.length&&e[m].indent>t;)g.push(e[m]),m+=1;if(g.length>0){const b=Math.min(...g.map(k=>k.indent)),S=N2(g,b,n);p.push({type:"list",ordered:!0,start:g[0].number,items:S,raw:g.map(k=>k.raw).join(`
|
|
222
|
+
`)})}i.push({type:"list_item",raw:s.raw,tokens:p}),a=m}else a+=1}return i}function CX(e,t){return e.map(n=>{if(n.type!=="list_item")return t.parseChildren([n])[0];const r=[];return n.tokens&&n.tokens.length>0&&n.tokens.forEach(i=>{if(i.type==="paragraph"||i.type==="list"||i.type==="blockquote"||i.type==="code")r.push(...t.parseChildren([i]));else if(i.type==="text"&&i.tokens){const a=t.parseChildren([i]);r.push({type:"paragraph",content:a})}else{const a=t.parseChildren([i]);a.length>0&&r.push(...a)}}),{type:"listItem",content:r}})}var RX="listItem",FO="textStyle",zO=/^(\d+)\.\s$/,_2=Kn.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:e=>e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1},type:{default:null,parseHTML:e=>e.getAttribute("type")}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:e}){const{start:t,...n}=e;return t===1?["ol",Ft(this.options.HTMLAttributes,n),0]:["ol",Ft(this.options.HTMLAttributes,e),0]},markdownTokenName:"list",parseMarkdown:(e,t)=>{if(e.type!=="list"||!e.ordered)return[];const n=e.start||1,r=e.items?CX(e.items,t):[];return n!==1?{type:"orderedList",attrs:{start:n},content:r}:{type:"orderedList",content:r}},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,`
|
|
223
|
+
`):"",markdownTokenizer:{name:"orderedList",level:"block",start:e=>{const t=e.match(/^(\s*)(\d+)\.\s+/),n=t?.index;return n!==void 0?n:-1},tokenize:(e,t,n)=>{var r;const i=e.split(`
|
|
224
|
+
`),[a,s]=AX(i);if(a.length===0)return;const u=N2(a,0,n);return u.length===0?void 0:{type:"list",ordered:!0,start:((r=a[0])==null?void 0:r.number)||1,items:u,raw:i.slice(0,s).join(`
|
|
225
|
+
`)}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(RX,this.editor.getAttributes(FO)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let e=Gs({find:zO,type:this.type,getAttributes:t=>({start:+t[1]}),joinPredicate:(t,n)=>n.childCount+n.attrs.start===+t[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(e=Gs({find:zO,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:t=>({start:+t[1],...this.editor.getAttributes(FO)}),joinPredicate:(t,n)=>n.childCount+n.attrs.start===+t[1],editor:this.editor})),[e]}}),NX=/^\s*(\[([( |x])?\])\s$/,_X=Kn.create({name:"taskItem",addOptions(){return{nested:!1,HTMLAttributes:{},taskListTypeName:"taskList",a11y:void 0}},content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes(){return{checked:{default:!1,keepOnSplit:!1,parseHTML:e=>{const t=e.getAttribute("data-checked");return t===""||t==="true"},renderHTML:e=>({"data-checked":e.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:e,HTMLAttributes:t}){return["li",Ft(this.options.HTMLAttributes,t,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:e.attrs.checked?"checked":null}],["span"]],["div",0]]},parseMarkdown:(e,t)=>{const n=[];if(e.tokens&&e.tokens.length>0?n.push(t.createNode("paragraph",{},t.parseInline(e.tokens))):e.text?n.push(t.createNode("paragraph",{},[t.createNode("text",{text:e.text})])):n.push(t.createNode("paragraph",{},[])),e.nestedTokens&&e.nestedTokens.length>0){const r=t.parseChildren(e.nestedTokens);n.push(...r)}return t.createNode("taskItem",{checked:e.checked||!1},n)},renderMarkdown:(e,t)=>{var n;const i=`- [${(n=e.attrs)!=null&&n.checked?"x":" "}] `;return ex(e,t,i)},addKeyboardShortcuts(){const e={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...e,Tab:()=>this.editor.commands.sinkListItem(this.name)}:e},addNodeView(){return({node:e,HTMLAttributes:t,getPos:n,editor:r})=>{const i=document.createElement("li"),a=document.createElement("label"),s=document.createElement("span"),u=document.createElement("input"),c=document.createElement("div"),p=m=>{var g,b;u.ariaLabel=((b=(g=this.options.a11y)==null?void 0:g.checkboxLabel)==null?void 0:b.call(g,m,u.checked))||`Task item checkbox for ${m.textContent||"empty task item"}`};p(e),a.contentEditable="false",u.type="checkbox",u.addEventListener("mousedown",m=>m.preventDefault()),u.addEventListener("change",m=>{if(!r.isEditable&&!this.options.onReadOnlyChecked){u.checked=!u.checked;return}const{checked:g}=m.target;r.isEditable&&typeof n=="function"&&r.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:b})=>{const S=n();if(typeof S!="number")return!1;const k=b.doc.nodeAt(S);return b.setNodeMarkup(S,void 0,{...k?.attrs,checked:g}),!0}).run(),!r.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(e,g)||(u.checked=!u.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([m,g])=>{i.setAttribute(m,g)}),i.dataset.checked=e.attrs.checked,u.checked=e.attrs.checked,a.append(u,s),i.append(a,c),Object.entries(t).forEach(([m,g])=>{i.setAttribute(m,g)});let f=new Set(Object.keys(t));return{dom:i,contentDOM:c,update:m=>{if(m.type!==this.type)return!1;i.dataset.checked=m.attrs.checked,u.checked=m.attrs.checked,p(m);const g=r.extensionManager.attributes,b=Wu(m,g),S=new Set(Object.keys(b)),k=this.options.HTMLAttributes;return f.forEach(v=>{S.has(v)||(v in k?i.setAttribute(v,k[v]):i.removeAttribute(v))}),Object.entries(b).forEach(([v,w])=>{w==null?v in k?i.setAttribute(v,k[v]):i.removeAttribute(v):i.setAttribute(v,w)}),f=S,!0}}}},addInputRules(){return[Gs({find:NX,type:this.type,getAttributes:e=>({checked:e[e.length-1]==="x"})})]}}),OX=Kn.create({name:"taskList",addOptions(){return{itemTypeName:"taskItem",HTMLAttributes:{}}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:e}){return["ul",Ft(this.options.HTMLAttributes,e,{"data-type":this.name}),0]},parseMarkdown:(e,t)=>t.createNode("taskList",{},t.parseChildren(e.items||[])),renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,`
|
|
226
|
+
`):"",markdownTokenizer:{name:"taskList",level:"block",start(e){var t;const n=(t=e.match(/^\s*[-+*]\s+\[([ xX])\]\s+/))==null?void 0:t.index;return n!==void 0?n:-1},tokenize(e,t,n){const r=a=>{const s=My(a,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:u=>({indentLevel:u[1].length,mainContent:u[4],checked:u[3].toLowerCase()==="x"}),createToken:(u,c)=>({type:"taskItem",raw:"",mainContent:u.mainContent,indentLevel:u.indentLevel,checked:u.checked,text:u.mainContent,tokens:n.inlineTokens(u.mainContent),nestedTokens:c}),customNestedParser:r},n);return s?[{type:"taskList",raw:s.raw,items:s.items}]:n.blockTokens(a)},i=My(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:a=>({indentLevel:a[1].length,mainContent:a[4],checked:a[3].toLowerCase()==="x"}),createToken:(a,s)=>({type:"taskItem",raw:"",mainContent:a.mainContent,indentLevel:a.indentLevel,checked:a.checked,text:a.mainContent,tokens:n.inlineTokens(a.mainContent),nestedTokens:s}),customNestedParser:r},n);if(i)return{type:"taskList",raw:i.raw,items:i.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:e})=>e.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});Tt.create({name:"listKit",addExtensions(){const e=[];return this.options.bulletList!==!1&&e.push(k2.configure(this.options.bulletList)),this.options.listItem!==!1&&e.push(v2.configure(this.options.listItem)),this.options.listKeymap!==!1&&e.push(R2.configure(this.options.listKeymap)),this.options.orderedList!==!1&&e.push(_2.configure(this.options.orderedList)),this.options.taskItem!==!1&&e.push(_X.configure(this.options.taskItem)),this.options.taskList!==!1&&e.push(OX.configure(this.options.taskList)),e}});var UO=" ",IX=" ",DX=Kn.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:e}){return["p",Ft(this.options.HTMLAttributes,e),0]},parseMarkdown:(e,t)=>{const n=e.tokens||[];if(n.length===1&&n[0].type==="image")return t.parseChildren([n[0]]);const r=t.parseInline(n);return r.length===1&&r[0].type==="text"&&(r[0].text===UO||r[0].text===IX)?t.createNode("paragraph",void 0,[]):t.createNode("paragraph",void 0,r)},renderMarkdown:(e,t,n)=>{var r,i;if(!e)return"";const a=Array.isArray(e.content)?e.content:[];if(a.length===0){const s=Array.isArray((r=n?.previousNode)==null?void 0:r.content)?n.previousNode.content:[];return((i=n?.previousNode)==null?void 0:i.type)==="paragraph"&&s.length===0?UO:""}return t.renderChildren(a)},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),LX=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,MX=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,BX=Ro.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:e=>e.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:e}){return["s",Ft(this.options.HTMLAttributes,e),0]},markdownTokenName:"del",parseMarkdown:(e,t)=>t.applyMark("strike",t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>`~~${t.renderChildren(e)}~~`,addCommands(){return{setStrike:()=>({commands:e})=>e.setMark(this.name),toggleStrike:()=>({commands:e})=>e.toggleMark(this.name),unsetStrike:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[js({find:LX,type:this.type})]},addPasteRules(){return[vo({find:MX,type:this.type})]}}),FX=Kn.create({name:"text",group:"inline",parseMarkdown:e=>({type:"text",text:e.text||""}),renderMarkdown:e=>e.text||""}),zX=Ro.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:e=>e.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:e}){return["u",Ft(this.options.HTMLAttributes,e),0]},parseMarkdown(e,t){return t.applyMark(this.name||"underline",t.parseInline(e.tokens||[]))},renderMarkdown(e,t){return`++${t.renderChildren(e)}++`},markdownTokenizer:{name:"underline",level:"inline",start(e){return e.indexOf("++")},tokenize(e,t,n){const i=/^(\+\+)([\s\S]+?)(\+\+)/.exec(e);if(!i)return;const a=i[2].trim();return{type:"underline",raw:i[0],text:a,tokens:n.inlineTokens(a)}}},addCommands(){return{setUnderline:()=>({commands:e})=>e.setMark(this.name),toggleUnderline:()=>({commands:e})=>e.toggleMark(this.name),unsetUnderline:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}});function UX(e={}){return new yt({view(t){return new PX(t,e)}})}class PX{constructor(t,n){var r;this.editorView=t,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(r=n.width)!==null&&r!==void 0?r:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(i=>{let a=s=>{this[i](s)};return t.dom.addEventListener(i,a),{name:i,handler:a}})}destroy(){this.handlers.forEach(({name:t,handler:n})=>this.editorView.dom.removeEventListener(t,n))}update(t,n){this.cursorPos!=null&&n.doc!=t.state.doc&&(this.cursorPos>t.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(t){t!=this.cursorPos&&(this.cursorPos=t,t==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let t=this.editorView.state.doc.resolve(this.cursorPos),n=!t.parent.inlineContent,r,i=this.editorView.dom,a=i.getBoundingClientRect(),s=a.width/i.offsetWidth,u=a.height/i.offsetHeight;if(n){let m=t.nodeBefore,g=t.nodeAfter;if(m||g){let b=this.editorView.nodeDOM(this.cursorPos-(m?m.nodeSize:0));if(b){let S=b.getBoundingClientRect(),k=m?S.bottom:S.top;m&&g&&(k=(k+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let v=this.width/2*u;r={left:S.left,right:S.right,top:k-v,bottom:k+v}}}}if(!r){let m=this.editorView.coordsAtPos(this.cursorPos),g=this.width/2*s;r={left:m.left-g,right:m.left+g,top:m.top,bottom:m.bottom}}let c=this.editorView.dom.offsetParent;this.element||(this.element=c.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let p,f;if(!c||c==document.body&&getComputedStyle(c).position=="static")p=-pageXOffset,f=-pageYOffset;else{let m=c.getBoundingClientRect(),g=m.width/c.offsetWidth,b=m.height/c.offsetHeight;p=m.left-c.scrollLeft*g,f=m.top-c.scrollTop*b}this.element.style.left=(r.left-p)/s+"px",this.element.style.top=(r.top-f)/u+"px",this.element.style.width=(r.right-r.left)/s+"px",this.element.style.height=(r.bottom-r.top)/u+"px"}scheduleRemoval(t){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),t)}dragover(t){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:t.clientX,top:t.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),i=r&&r.type.spec.disableDropCursor,a=typeof i=="function"?i(this.editorView,n,t):i;if(n&&!a){let s=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let u=AL(this.editorView.state.doc,s,this.editorView.dragging.slice);u!=null&&(s=u)}this.setCursor(s),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(t){this.editorView.dom.contains(t.relatedTarget)||this.setCursor(null)}}class wt extends Fe{constructor(t){super(t,t)}map(t,n){let r=t.resolve(n.map(this.head));return wt.valid(r)?new wt(r):Fe.near(r)}content(){return ge.empty}eq(t){return t instanceof wt&&t.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(t,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new wt(t.resolve(n.pos))}getBookmark(){return new px(this.anchor)}static valid(t){let n=t.parent;if(n.inlineContent||!$X(t)||!HX(t))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let i=n.contentMatchAt(t.index()).defaultType;return i&&i.isTextblock}static findGapCursorFrom(t,n,r=!1){e:for(;;){if(!r&&wt.valid(t))return t;let i=t.pos,a=null;for(let s=t.depth;;s--){let u=t.node(s);if(n>0?t.indexAfter(s)<u.childCount:t.index(s)>0){a=u.child(n>0?t.indexAfter(s):t.index(s)-1);break}else if(s==0)return null;i+=n;let c=t.doc.resolve(i);if(wt.valid(c))return c}for(;;){let s=n>0?a.firstChild:a.lastChild;if(!s){if(a.isAtom&&!a.isText&&!xe.isSelectable(a)){t=t.doc.resolve(i+a.nodeSize*n),r=!1;continue e}break}a=s,i+=n;let u=t.doc.resolve(i);if(wt.valid(u))return u}return null}}}wt.prototype.visible=!1;wt.findFrom=wt.findGapCursorFrom;Fe.jsonID("gapcursor",wt);class px{constructor(t){this.pos=t}map(t){return new px(t.map(this.pos))}resolve(t){let n=t.resolve(this.pos);return wt.valid(n)?new wt(n):Fe.near(n)}}function O2(e){return e.isAtom||e.spec.isolating||e.spec.createGapCursor}function $X(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),r=e.node(t);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let i=r.child(n-1);;i=i.lastChild){if(i.childCount==0&&!i.inlineContent||O2(i.type))return!0;if(i.inlineContent)return!1}}return!0}function HX(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),r=e.node(t);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let i=r.child(n);;i=i.firstChild){if(i.childCount==0&&!i.inlineContent||O2(i.type))return!0;if(i.inlineContent)return!1}}return!0}function jX(){return new yt({props:{decorations:WX,createSelectionBetween(e,t,n){return t.pos==n.pos&&wt.valid(n)?new wt(n):null},handleClick:VX,handleKeyDown:GX,handleDOMEvents:{beforeinput:qX}}})}const GX=CM({ArrowLeft:tp("horiz",-1),ArrowRight:tp("horiz",1),ArrowUp:tp("vert",-1),ArrowDown:tp("vert",1)});function tp(e,t){const n=e=="vert"?t>0?"down":"up":t>0?"right":"left";return function(r,i,a){let s=r.selection,u=t>0?s.$to:s.$from,c=s.empty;if(s instanceof Ne){if(!a.endOfTextblock(n)||u.depth==0)return!1;c=!1,u=r.doc.resolve(t>0?u.after():u.before())}let p=wt.findGapCursorFrom(u,t,c);return p?(i&&i(r.tr.setSelection(new wt(p))),!0):!1}}function VX(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!wt.valid(r))return!1;let i=e.posAtCoords({left:n.clientX,top:n.clientY});return i&&i.inside>-1&&xe.isSelectable(e.state.doc.nodeAt(i.inside))?!1:(e.dispatch(e.state.tr.setSelection(new wt(r))),!0)}function qX(e,t){if(t.inputType!="insertCompositionText"||!(e.state.selection instanceof wt))return!1;let{$from:n}=e.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!r)return!1;let i=ue.empty;for(let s=r.length-1;s>=0;s--)i=ue.from(r[s].createAndFill(null,i));let a=e.state.tr.replace(n.pos,n.pos,new ge(i,0,0));return a.setSelection(Ne.near(a.doc.resolve(n.pos+1))),e.dispatch(a),!1}function WX(e){if(!(e.selection instanceof wt))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",bt.create(e.doc,[yn.widget(e.selection.head,t,{key:"gapcursor"})])}var bf=200,Wt=function(){};Wt.prototype.append=function(t){return t.length?(t=Wt.from(t),!this.length&&t||t.length<bf&&this.leafAppend(t)||this.length<bf&&t.leafPrepend(this)||this.appendInner(t)):this};Wt.prototype.prepend=function(t){return t.length?Wt.from(t).append(this):this};Wt.prototype.appendInner=function(t){return new YX(this,t)};Wt.prototype.slice=function(t,n){return t===void 0&&(t=0),n===void 0&&(n=this.length),t>=n?Wt.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,n))};Wt.prototype.get=function(t){if(!(t<0||t>=this.length))return this.getInner(t)};Wt.prototype.forEach=function(t,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length),n<=r?this.forEachInner(t,n,r,0):this.forEachInvertedInner(t,n,r,0)};Wt.prototype.map=function(t,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var i=[];return this.forEach(function(a,s){return i.push(t(a,s))},n,r),i};Wt.from=function(t){return t instanceof Wt?t:t&&t.length?new I2(t):Wt.empty};var I2=(function(e){function t(r){e.call(this),this.values=r}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(i,a){return i==0&&a==this.length?this:new t(this.values.slice(i,a))},t.prototype.getInner=function(i){return this.values[i]},t.prototype.forEachInner=function(i,a,s,u){for(var c=a;c<s;c++)if(i(this.values[c],u+c)===!1)return!1},t.prototype.forEachInvertedInner=function(i,a,s,u){for(var c=a-1;c>=s;c--)if(i(this.values[c],u+c)===!1)return!1},t.prototype.leafAppend=function(i){if(this.length+i.length<=bf)return new t(this.values.concat(i.flatten()))},t.prototype.leafPrepend=function(i){if(this.length+i.length<=bf)return new t(i.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t})(Wt);Wt.empty=new I2([]);var YX=(function(e){function t(n,r){e.call(this),this.left=n,this.right=r,this.length=n.length+r.length,this.depth=Math.max(n.depth,r.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(r){return r<this.left.length?this.left.get(r):this.right.get(r-this.left.length)},t.prototype.forEachInner=function(r,i,a,s){var u=this.left.length;if(i<u&&this.left.forEachInner(r,i,Math.min(a,u),s)===!1||a>u&&this.right.forEachInner(r,Math.max(i-u,0),Math.min(this.length,a)-u,s+u)===!1)return!1},t.prototype.forEachInvertedInner=function(r,i,a,s){var u=this.left.length;if(i>u&&this.right.forEachInvertedInner(r,i-u,Math.max(a,u)-u,s+u)===!1||a<u&&this.left.forEachInvertedInner(r,Math.min(i,u),a,s)===!1)return!1},t.prototype.sliceInner=function(r,i){if(r==0&&i==this.length)return this;var a=this.left.length;return i<=a?this.left.slice(r,i):r>=a?this.right.slice(r-a,i-a):this.left.slice(r,a).append(this.right.slice(0,i-a))},t.prototype.leafAppend=function(r){var i=this.right.leafAppend(r);if(i)return new t(this.left,i)},t.prototype.leafPrepend=function(r){var i=this.left.leafPrepend(r);if(i)return new t(i,this.right)},t.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new t(this.left,new t(this.right,r)):new t(this,r)},t})(Wt);const KX=500;class wr{constructor(t,n){this.items=t,this.eventCount=n}popEvent(t,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let i,a;n&&(i=this.remapping(r,this.items.length),a=i.maps.length);let s=t.tr,u,c,p=[],f=[];return this.items.forEach((m,g)=>{if(!m.step){i||(i=this.remapping(r,g+1),a=i.maps.length),a--,f.push(m);return}if(i){f.push(new zr(m.map));let b=m.step.map(i.slice(a)),S;b&&s.maybeStep(b).doc&&(S=s.mapping.maps[s.mapping.maps.length-1],p.push(new zr(S,void 0,void 0,p.length+f.length))),a--,S&&i.appendMap(S,a)}else s.maybeStep(m.step);if(m.selection)return u=i?m.selection.map(i.slice(a)):m.selection,c=new wr(this.items.slice(0,r).append(f.reverse().concat(p)),this.eventCount-1),!1},this.items.length,0),{remaining:c,transform:s,selection:u}}addTransform(t,n,r,i){let a=[],s=this.eventCount,u=this.items,c=!i&&u.length?u.get(u.length-1):null;for(let f=0;f<t.steps.length;f++){let m=t.steps[f].invert(t.docs[f]),g=new zr(t.mapping.maps[f],m,n),b;(b=c&&c.merge(g))&&(g=b,f?a.pop():u=u.slice(0,u.length-1)),a.push(g),n&&(s++,n=void 0),i||(c=g)}let p=s-r.depth;return p>ZX&&(u=XX(u,p),s-=p),new wr(u.append(a),s)}remapping(t,n){let r=new $u;return this.items.forEach((i,a)=>{let s=i.mirrorOffset!=null&&a-i.mirrorOffset>=t?r.maps.length-i.mirrorOffset:void 0;r.appendMap(i.map,s)},t,n),r}addMaps(t){return this.eventCount==0?this:new wr(this.items.append(t.map(n=>new zr(n))),this.eventCount)}rebased(t,n){if(!this.eventCount)return this;let r=[],i=Math.max(0,this.items.length-n),a=t.mapping,s=t.steps.length,u=this.eventCount;this.items.forEach(g=>{g.selection&&u--},i);let c=n;this.items.forEach(g=>{let b=a.getMirror(--c);if(b==null)return;s=Math.min(s,b);let S=a.maps[b];if(g.step){let k=t.steps[b].invert(t.docs[b]),v=g.selection&&g.selection.map(a.slice(c+1,b));v&&u++,r.push(new zr(S,k,v))}else r.push(new zr(S))},i);let p=[];for(let g=n;g<s;g++)p.push(new zr(a.maps[g]));let f=this.items.slice(0,i).append(p).append(r),m=new wr(f,u);return m.emptyItemCount()>KX&&(m=m.compress(this.items.length-r.length)),m}emptyItemCount(){let t=0;return this.items.forEach(n=>{n.step||t++}),t}compress(t=this.items.length){let n=this.remapping(0,t),r=n.maps.length,i=[],a=0;return this.items.forEach((s,u)=>{if(u>=t)i.push(s),s.selection&&a++;else if(s.step){let c=s.step.map(n.slice(r)),p=c&&c.getMap();if(r--,p&&n.appendMap(p,r),c){let f=s.selection&&s.selection.map(n.slice(r));f&&a++;let m=new zr(p.invert(),c,f),g,b=i.length-1;(g=i.length&&i[b].merge(m))?i[b]=g:i.push(m)}}else s.map&&r--},this.items.length,0),new wr(Wt.from(i.reverse()),a)}}wr.empty=new wr(Wt.empty,0);function XX(e,t){let n;return e.forEach((r,i)=>{if(r.selection&&t--==0)return n=i,!1}),e.slice(n)}class zr{constructor(t,n,r,i){this.map=t,this.step=n,this.selection=r,this.mirrorOffset=i}merge(t){if(this.step&&t.step&&!t.selection){let n=t.step.merge(this.step);if(n)return new zr(n.getMap().invert(),n,this.selection)}}}class la{constructor(t,n,r,i,a){this.done=t,this.undone=n,this.prevRanges=r,this.prevTime=i,this.prevComposition=a}}const ZX=20;function QX(e,t,n,r){let i=n.getMeta(po),a;if(i)return i.historyState;n.getMeta(tZ)&&(e=new la(e.done,e.undone,null,0,-1));let s=n.getMeta("appendedTransaction");if(n.steps.length==0)return e;if(s&&s.getMeta(po))return s.getMeta(po).redo?new la(e.done.addTransform(n,void 0,r,hp(t)),e.undone,PO(n.mapping.maps),e.prevTime,e.prevComposition):new la(e.done,e.undone.addTransform(n,void 0,r,hp(t)),null,e.prevTime,e.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(s&&s.getMeta("addToHistory")===!1)){let u=n.getMeta("composition"),c=e.prevTime==0||!s&&e.prevComposition!=u&&(e.prevTime<(n.time||0)-r.newGroupDelay||!JX(n,e.prevRanges)),p=s?Fb(e.prevRanges,n.mapping):PO(n.mapping.maps);return new la(e.done.addTransform(n,c?t.selection.getBookmark():void 0,r,hp(t)),wr.empty,p,n.time,u??e.prevComposition)}else return(a=n.getMeta("rebased"))?new la(e.done.rebased(n,a),e.undone.rebased(n,a),Fb(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new la(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),Fb(e.prevRanges,n.mapping),e.prevTime,e.prevComposition)}function JX(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((r,i)=>{for(let a=0;a<t.length;a+=2)r<=t[a+1]&&i>=t[a]&&(n=!0)}),n}function PO(e){let t=[];for(let n=e.length-1;n>=0&&t.length==0;n--)e[n].forEach((r,i,a,s)=>t.push(a,s));return t}function Fb(e,t){if(!e)return null;let n=[];for(let r=0;r<e.length;r+=2){let i=t.map(e[r],1),a=t.map(e[r+1],-1);i<=a&&n.push(i,a)}return n}function eZ(e,t,n){let r=hp(t),i=po.get(t).spec.config,a=(n?e.undone:e.done).popEvent(t,r);if(!a)return null;let s=a.selection.resolve(a.transform.doc),u=(n?e.done:e.undone).addTransform(a.transform,t.selection.getBookmark(),i,r),c=new la(n?u:a.remaining,n?a.remaining:u,null,0,-1);return a.transform.setSelection(s).setMeta(po,{redo:n,historyState:c})}let zb=!1,$O=null;function hp(e){let t=e.plugins;if($O!=t){zb=!1,$O=t;for(let n=0;n<t.length;n++)if(t[n].spec.historyPreserveItems){zb=!0;break}}return zb}const po=new $t("history"),tZ=new $t("closeHistory");function nZ(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new yt({key:po,state:{init(){return new la(wr.empty,wr.empty,null,0,-1)},apply(t,n,r){return QX(n,r,t,e)}},config:e,props:{handleDOMEvents:{beforeinput(t,n){let r=n.inputType,i=r=="historyUndo"?L2:r=="historyRedo"?M2:null;return!i||!t.editable?!1:(n.preventDefault(),i(t.state,t.dispatch))}}}})}function D2(e,t){return(n,r)=>{let i=po.getState(n);if(!i||(e?i.undone:i.done).eventCount==0)return!1;if(r){let a=eZ(i,n,e);a&&r(t?a.scrollIntoView():a)}return!0}}const L2=D2(!1,!0),M2=D2(!0,!0);Tt.create({name:"characterCount",addOptions(){return{limit:null,mode:"textSize",textCounter:e=>e.length,wordCounter:e=>e.split(" ").filter(t=>t!=="").length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=e=>{const t=e?.node||this.editor.state.doc;if((e?.mode||this.options.mode)==="textSize"){const r=t.textBetween(0,t.content.size,void 0," ");return this.options.textCounter(r)}return t.nodeSize},this.storage.words=e=>{const t=e?.node||this.editor.state.doc,n=t.textBetween(0,t.content.size," "," ");return this.options.wordCounter(n)}},addProseMirrorPlugins(){let e=!1;return[new yt({key:new $t("characterCount"),appendTransaction:(t,n,r)=>{if(e)return;const i=this.options.limit;if(i==null||i===0){e=!0;return}const a=this.storage.characters({node:r.doc});if(a>i){const s=a-i,u=0,c=s;console.warn(`[CharacterCount] Initial content exceeded limit of ${i} characters. Content was automatically trimmed.`);const p=r.tr.deleteRange(u,c);return e=!0,p}e=!0},filterTransaction:(t,n)=>{const r=this.options.limit;if(!t.docChanged||r===0||r===null||r===void 0)return!0;const i=this.storage.characters({node:n.doc}),a=this.storage.characters({node:t.doc});if(a<=r||i>r&&a>r&&a<=i)return!0;if(i>r&&a>r&&a>i||!t.getMeta("paste"))return!1;const u=t.selection.$head.pos,c=a-r,p=u-c,f=u;return t.deleteRange(p,f),!(this.storage.characters({node:t.doc})>r)}})]}});var rZ=Tt.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[UX(this.options)]}});Tt.create({name:"focus",addOptions(){return{className:"has-focus",mode:"all"}},addProseMirrorPlugins(){return[new yt({key:new $t("focus"),props:{decorations:({doc:e,selection:t})=>{const{isEditable:n,isFocused:r}=this.editor,{anchor:i}=t,a=[];if(!n||!r)return bt.create(e,[]);let s=0;this.options.mode==="deepest"&&e.descendants((c,p)=>{if(c.isText)return;if(!(i>=p&&i<=p+c.nodeSize-1))return!1;s+=1});let u=0;return e.descendants((c,p)=>{if(c.isText||!(i>=p&&i<=p+c.nodeSize-1))return!1;if(u+=1,this.options.mode==="deepest"&&s-u>0||this.options.mode==="shallowest"&&u>1)return this.options.mode==="deepest";a.push(yn.node(p,p+c.nodeSize,{class:this.options.className}))}),bt.create(e,a)}}})]}});var iZ=Tt.create({name:"gapCursor",addProseMirrorPlugins(){return[jX()]},extendNodeSchema(e){var t;const n={name:e.name,options:e.options,storage:e.storage};return{allowGapCursor:(t=nt(ke(e,"allowGapCursor",n)))!=null?t:null}}}),HO="placeholder";function aZ(e){return e.replace(/\s+/g,"-").replace(/[^a-zA-Z0-9-]/g,"").replace(/^[0-9-]+/,"").replace(/^-+/,"").toLowerCase()}Tt.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",dataAttribute:HO,placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){const e=this.options.dataAttribute?`data-${aZ(this.options.dataAttribute)}`:`data-${HO}`;return[new yt({key:new $t("placeholder"),props:{decorations:({doc:t,selection:n})=>{const r=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:i}=n,a=[];if(!r)return null;const s=this.editor.isEmpty;return t.descendants((u,c)=>{const p=i>=c&&i<=c+u.nodeSize,f=!u.isLeaf&&ih(u);if(!u.type.isTextblock)return this.options.includeChildren;if((p||!this.options.showOnlyCurrent)&&f){const m=[this.options.emptyNodeClass];s&&m.push(this.options.emptyEditorClass);const g=yn.node(c,c+u.nodeSize,{class:m.join(" "),[e]:typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:u,pos:c,hasAnchor:p}):this.options.placeholder});a.push(g)}return this.options.includeChildren}),bt.create(t,a)}}})]}});Tt.create({name:"selection",addOptions(){return{className:"selection"}},addProseMirrorPlugins(){const{editor:e,options:t}=this;return[new yt({key:new $t("selection"),props:{decorations(n){return n.selection.empty||e.isFocused||!e.isEditable||HM(n.selection)||e.view.dragging?null:bt.create(n.doc,[yn.inline(n.selection.from,n.selection.to,{class:t.className})])}}})]}});var oZ="skipTrailingNode";function jO({types:e,node:t}){return t&&Array.isArray(e)&&e.includes(t.type)||t?.type===e}var sZ=Tt.create({name:"trailingNode",addOptions(){return{node:void 0,notAfter:[]}},addProseMirrorPlugins(){var e;const t=new $t(this.name),n=this.options.node||((e=this.editor.schema.topNodeType.contentMatch.defaultType)==null?void 0:e.name)||"paragraph",r=Object.entries(this.editor.schema.nodes).map(([,i])=>i).filter(i=>(this.options.notAfter||[]).concat(n).includes(i.name));return[new yt({key:t,appendTransaction:(i,a,s)=>{const{doc:u,tr:c,schema:p}=s,f=t.getState(s),m=u.content.size,g=p.nodes[n];if(!i.some(b=>b.getMeta(oZ))&&f)return c.insert(m,g.create())},state:{init:(i,a)=>{const s=a.tr.doc.lastChild;return!jO({node:s,types:r})},apply:(i,a)=>{if(!i.docChanged||i.getMeta("__uniqueIDTransaction"))return a;const s=i.doc.lastChild;return!jO({node:s,types:r})}}})]}}),lZ=Tt.create({name:"undoRedo",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:e,dispatch:t})=>L2(e,t),redo:()=>({state:e,dispatch:t})=>M2(e,t)}},addProseMirrorPlugins(){return[nZ(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),uZ=Tt.create({name:"starterKit",addExtensions(){var e,t,n,r;const i=[];return this.options.bold!==!1&&i.push(D7.configure(this.options.bold)),this.options.blockquote!==!1&&i.push(R7.configure(this.options.blockquote)),this.options.bulletList!==!1&&i.push(k2.configure(this.options.bulletList)),this.options.code!==!1&&i.push(B7.configure(this.options.code)),this.options.codeBlock!==!1&&i.push(U7.configure(this.options.codeBlock)),this.options.document!==!1&&i.push(P7.configure(this.options.document)),this.options.dropcursor!==!1&&i.push(rZ.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&i.push(iZ.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&i.push($7.configure(this.options.hardBreak)),this.options.heading!==!1&&i.push(H7.configure(this.options.heading)),this.options.undoRedo!==!1&&i.push(lZ.configure(this.options.undoRedo)),this.options.horizontalRule!==!1&&i.push(j7.configure(this.options.horizontalRule)),this.options.italic!==!1&&i.push(Y7.configure(this.options.italic)),this.options.listItem!==!1&&i.push(v2.configure(this.options.listItem)),this.options.listKeymap!==!1&&i.push(R2.configure((e=this.options)==null?void 0:e.listKeymap)),this.options.link!==!1&&i.push(EX.configure((t=this.options)==null?void 0:t.link)),this.options.orderedList!==!1&&i.push(_2.configure(this.options.orderedList)),this.options.paragraph!==!1&&i.push(DX.configure(this.options.paragraph)),this.options.strike!==!1&&i.push(BX.configure(this.options.strike)),this.options.text!==!1&&i.push(FX.configure(this.options.text)),this.options.underline!==!1&&i.push(zX.configure((n=this.options)==null?void 0:n.underline)),this.options.trailingNode!==!1&&i.push(sZ.configure((r=this.options)==null?void 0:r.trailingNode)),i}}),cZ=uZ;function fx(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var _o=fx();function B2(e){_o=e}var no={exec:()=>null};function Ye(e,t=""){let n=typeof e=="string"?e:e.source,r={replace:(i,a)=>{let s=typeof a=="string"?a:a.source;return s=s.replace(En.caret,"$1"),n=n.replace(i,s),r},getRegex:()=>new RegExp(n,t)};return r}var dZ=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),En={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,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,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=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}>`)},pZ=/^(?:[ \t]*(?:\n|$))+/,fZ=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,hZ=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,mc=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,mZ=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hx=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,F2=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,z2=Ye(F2).replace(/bull/g,hx).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),gZ=Ye(F2).replace(/bull/g,hx).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),mx=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,bZ=/^[^\n]+/,gx=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,yZ=Ye(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",gx).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),EZ=Ye(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,hx).getRegex(),lh="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",bx=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,SZ=Ye("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",bx).replace("tag",lh).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),U2=Ye(mx).replace("hr",mc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",lh).getRegex(),kZ=Ye(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",U2).getRegex(),yx={blockquote:kZ,code:fZ,def:yZ,fences:hZ,heading:mZ,hr:mc,html:SZ,lheading:z2,list:EZ,newline:pZ,paragraph:U2,table:no,text:bZ},GO=Ye("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",mc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",lh).getRegex(),vZ={...yx,lheading:gZ,table:GO,paragraph:Ye(mx).replace("hr",mc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",GO).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",lh).getRegex()},wZ={...yx,html:Ye(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",bx).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:no,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ye(mx).replace("hr",mc).replace("heading",` *#{1,6} *[^
|
|
227
|
+
]`).replace("lheading",z2).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},TZ=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,xZ=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,P2=/^( {2,}|\\)\n(?!\s*$)/,AZ=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,rl=/[\p{P}\p{S}]/u,uh=/[\s\p{P}\p{S}]/u,Ex=/[^\s\p{P}\p{S}]/u,CZ=Ye(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,uh).getRegex(),$2=/(?!~)[\p{P}\p{S}]/u,RZ=/(?!~)[\s\p{P}\p{S}]/u,NZ=/(?:[^\s\p{P}\p{S}]|~)/u,_Z=Ye(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",dZ?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),H2=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,OZ=Ye(H2,"u").replace(/punct/g,rl).getRegex(),IZ=Ye(H2,"u").replace(/punct/g,$2).getRegex(),j2="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",DZ=Ye(j2,"gu").replace(/notPunctSpace/g,Ex).replace(/punctSpace/g,uh).replace(/punct/g,rl).getRegex(),LZ=Ye(j2,"gu").replace(/notPunctSpace/g,NZ).replace(/punctSpace/g,RZ).replace(/punct/g,$2).getRegex(),MZ=Ye("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Ex).replace(/punctSpace/g,uh).replace(/punct/g,rl).getRegex(),BZ=Ye(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,rl).getRegex(),FZ="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",zZ=Ye(FZ,"gu").replace(/notPunctSpace/g,Ex).replace(/punctSpace/g,uh).replace(/punct/g,rl).getRegex(),UZ=Ye(/\\(punct)/,"gu").replace(/punct/g,rl).getRegex(),PZ=Ye(/^<(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(),$Z=Ye(bx).replace("(?:-->|$)","-->").getRegex(),HZ=Ye("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",$Z).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),yf=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,jZ=Ye(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",yf).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),G2=Ye(/^!?\[(label)\]\[(ref)\]/).replace("label",yf).replace("ref",gx).getRegex(),V2=Ye(/^!?\[(ref)\](?:\[\])?/).replace("ref",gx).getRegex(),GZ=Ye("reflink|nolink(?!\\()","g").replace("reflink",G2).replace("nolink",V2).getRegex(),VO=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Sx={_backpedal:no,anyPunctuation:UZ,autolink:PZ,blockSkip:_Z,br:P2,code:xZ,del:no,delLDelim:no,delRDelim:no,emStrongLDelim:OZ,emStrongRDelimAst:DZ,emStrongRDelimUnd:MZ,escape:TZ,link:jZ,nolink:V2,punctuation:CZ,reflink:G2,reflinkSearch:GZ,tag:HZ,text:AZ,url:no},VZ={...Sx,link:Ye(/^!?\[(label)\]\((.*?)\)/).replace("label",yf).getRegex(),reflink:Ye(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",yf).getRegex()},Wy={...Sx,emStrongRDelimAst:LZ,emStrongLDelim:IZ,delLDelim:BZ,delRDelim:zZ,url:Ye(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",VO).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Ye(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",VO).getRegex()},qZ={...Wy,br:Ye(P2).replace("{2,}","*").getRegex(),text:Ye(Wy.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},np={normal:yx,gfm:vZ,pedantic:wZ},su={normal:Sx,gfm:Wy,breaks:qZ,pedantic:VZ},WZ={"&":"&","<":"<",">":">",'"':""","'":"'"},qO=e=>WZ[e];function Lr(e,t){if(t){if(En.escapeTest.test(e))return e.replace(En.escapeReplace,qO)}else if(En.escapeTestNoEncode.test(e))return e.replace(En.escapeReplaceNoEncode,qO);return e}function WO(e){try{e=encodeURI(e).replace(En.percentDecode,"%")}catch{return null}return e}function YO(e,t){let n=e.replace(En.findPipe,(a,s,u)=>{let c=!1,p=s;for(;--p>=0&&u[p]==="\\";)c=!c;return c?"|":" |"}),r=n.split(En.splitPipe),i=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(En.slashPipe,"|");return r}function lu(e,t,n){let r=e.length;if(r===0)return"";let i=0;for(;i<r&&e.charAt(r-i-1)===t;)i++;return e.slice(0,r-i)}function YZ(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 KZ(e,t=0){let n=t,r="";for(let i of e)if(i===" "){let a=4-n%4;r+=" ".repeat(a),n+=a}else r+=i,n++;return r}function KO(e,t,n,r,i){let a=t.href,s=t.title||null,u=e[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;let c={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:a,title:s,text:u,tokens:r.inlineTokens(u)};return r.state.inLink=!1,c}function XZ(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
|
|
228
|
+
`).map(a=>{let s=a.match(n.other.beginningSpace);if(s===null)return a;let[u]=s;return u.length>=i.length?a.slice(i.length):a}).join(`
|
|
229
|
+
`)}var Ef=class{options;rules;lexer;constructor(e){this.options=e||_o}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 n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:lu(n,`
|
|
230
|
+
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],r=XZ(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let r=lu(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:lu(t[0],`
|
|
231
|
+
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=lu(t[0],`
|
|
232
|
+
`).split(`
|
|
233
|
+
`),r="",i="",a=[];for(;n.length>0;){let s=!1,u=[],c;for(c=0;c<n.length;c++)if(this.rules.other.blockquoteStart.test(n[c]))u.push(n[c]),s=!0;else if(!s)u.push(n[c]);else break;n=n.slice(c);let p=u.join(`
|
|
234
|
+
`),f=p.replace(this.rules.other.blockquoteSetextReplace,`
|
|
235
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
|
|
236
|
+
${p}`:p,i=i?`${i}
|
|
237
|
+
${f}`:f;let m=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(f,a,!0),this.lexer.state.top=m,n.length===0)break;let g=a.at(-1);if(g?.type==="code")break;if(g?.type==="blockquote"){let b=g,S=b.raw+`
|
|
238
|
+
`+n.join(`
|
|
239
|
+
`),k=this.blockquote(S);a[a.length-1]=k,r=r.substring(0,r.length-b.raw.length)+k.raw,i=i.substring(0,i.length-b.text.length)+k.text;break}else if(g?.type==="list"){let b=g,S=b.raw+`
|
|
240
|
+
`+n.join(`
|
|
241
|
+
`),k=this.list(S);a[a.length-1]=k,r=r.substring(0,r.length-g.raw.length)+k.raw,i=i.substring(0,i.length-b.raw.length)+k.raw,n=S.substring(a.at(-1).raw.length).split(`
|
|
242
|
+
`);continue}}return{type:"blockquote",raw:r,tokens:a,text:i}}}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),s=!1;for(;e;){let c=!1,p="",f="";if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;p=t[0],e=e.substring(p.length);let m=KZ(t[2].split(`
|
|
243
|
+
`,1)[0],t[1].length),g=e.split(`
|
|
244
|
+
`,1)[0],b=!m.trim(),S=0;if(this.options.pedantic?(S=2,f=m.trimStart()):b?S=t[1].length+1:(S=m.search(this.rules.other.nonSpaceChar),S=S>4?1:S,f=m.slice(S),S+=t[1].length),b&&this.rules.other.blankLine.test(g)&&(p+=g+`
|
|
245
|
+
`,e=e.substring(g.length+1),c=!0),!c){let k=this.rules.other.nextBulletRegex(S),v=this.rules.other.hrRegex(S),w=this.rules.other.fencesBeginRegex(S),x=this.rules.other.headingBeginRegex(S),A=this.rules.other.htmlBeginRegex(S),D=this.rules.other.blockquoteBeginRegex(S);for(;e;){let O=e.split(`
|
|
246
|
+
`,1)[0],R;if(g=O,this.options.pedantic?(g=g.replace(this.rules.other.listReplaceNesting," "),R=g):R=g.replace(this.rules.other.tabCharGlobal," "),w.test(g)||x.test(g)||A.test(g)||D.test(g)||k.test(g)||v.test(g))break;if(R.search(this.rules.other.nonSpaceChar)>=S||!g.trim())f+=`
|
|
247
|
+
`+R.slice(S);else{if(b||m.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||w.test(m)||x.test(m)||v.test(m))break;f+=`
|
|
248
|
+
`+g}b=!g.trim(),p+=O+`
|
|
249
|
+
`,e=e.substring(O.length+1),m=R.slice(S)}}i.loose||(s?i.loose=!0:this.rules.other.doubleBlankLine.test(p)&&(s=!0)),i.items.push({type:"list_item",raw:p,task:!!this.options.gfm&&this.rules.other.listIsTask.test(f),loose:!1,text:f,tokens:[]}),i.raw+=p}let u=i.items.at(-1);if(u)u.raw=u.raw.trimEnd(),u.text=u.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let c of i.items){if(this.lexer.state.top=!1,c.tokens=this.lexer.blockTokens(c.text,[]),c.task){if(c.text=c.text.replace(this.rules.other.listReplaceTask,""),c.tokens[0]?.type==="text"||c.tokens[0]?.type==="paragraph"){c.tokens[0].raw=c.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),c.tokens[0].text=c.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let f=this.lexer.inlineQueue.length-1;f>=0;f--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[f].src)){this.lexer.inlineQueue[f].src=this.lexer.inlineQueue[f].src.replace(this.rules.other.listReplaceTask,"");break}}let p=this.rules.other.listTaskCheckbox.exec(c.raw);if(p){let f={type:"checkbox",raw:p[0]+" ",checked:p[0]!=="[ ]"};c.checked=f.checked,i.loose?c.tokens[0]&&["paragraph","text"].includes(c.tokens[0].type)&&"tokens"in c.tokens[0]&&c.tokens[0].tokens?(c.tokens[0].raw=f.raw+c.tokens[0].raw,c.tokens[0].text=f.raw+c.tokens[0].text,c.tokens[0].tokens.unshift(f)):c.tokens.unshift({type:"paragraph",raw:f.raw,text:f.raw,tokens:[f]}):c.tokens.unshift(f)}}if(!i.loose){let p=c.tokens.filter(m=>m.type==="space"),f=p.length>0&&p.some(m=>this.rules.other.anyLine.test(m.raw));i.loose=f}}if(i.loose)for(let c of i.items){c.loose=!0;for(let p of c.tokens)p.type==="text"&&(p.type="paragraph")}return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:r,title:i}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=YO(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
250
|
+
`):[],a={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let s of r)this.rules.other.tableAlignRight.test(s)?a.align.push("right"):this.rules.other.tableAlignCenter.test(s)?a.align.push("center"):this.rules.other.tableAlignLeft.test(s)?a.align.push("left"):a.align.push(null);for(let s=0;s<n.length;s++)a.header.push({text:n[s],tokens:this.lexer.inline(n[s]),header:!0,align:a.align[s]});for(let s of i)a.rows.push(YO(s,a.header.length).map((u,c)=>({text:u,tokens:this.lexer.inline(u),header:!1,align:a.align[c]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let n=t[1].trim();return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:n,tokens:this.lexer.inline(n)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let n=t[1].charAt(t[1].length-1)===`
|
|
251
|
+
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}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[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let a=lu(n.slice(0,-1),"\\");if((n.length-a.length)%2===0)return}else{let a=YZ(t[2],"()");if(a===-2)return;if(a>-1){let s=(t[0].indexOf("!")===0?5:4)+t[1].length+a;t[2]=t[2].substring(0,a),t[0]=t[0].substring(0,s).trim(),t[3]=""}}let r=t[2],i="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(r);a&&(r=a[1],i=a[3])}else i=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?r=r.slice(1):r=r.slice(1,-1)),KO(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.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[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=t[r.toLowerCase()];if(!i){let a=n[0].charAt(0);return{type:"text",raw:a,text:a}}return KO(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,s,u=i,c=0,p=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(p.lastIndex=0,t=t.slice(-1*e.length+i);(r=p.exec(t))!=null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(s=[...a].length,r[3]||r[4]){u+=s;continue}else if((r[5]||r[6])&&i%3&&!((i+s)%3)){c+=s;continue}if(u-=s,u>0)continue;s=Math.min(s,s+u+c);let f=[...r[0]][0].length,m=e.slice(0,i+r.index+f+s);if(Math.min(i,s)%2){let b=m.slice(1,-1);return{type:"em",raw:m,text:b,tokens:this.lexer.inlineTokens(b)}}let g=m.slice(2,-2);return{type:"strong",raw:m,text:g,tokens:this.lexer.inlineTokens(g)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(n),i=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&i&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}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 i=[...r[0]].length-1,a,s,u=i,c=this.rules.inline.delRDelim;for(c.lastIndex=0,t=t.slice(-1*e.length+i);(r=c.exec(t))!=null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a||(s=[...a].length,s!==i))continue;if(r[3]||r[4]){u+=s;continue}if(u-=s,u>0)continue;s=Math.min(s,s+u);let p=[...r[0]][0].length,f=e.slice(0,i+r.index+p+s),m=f.slice(i,-i);return{type:"del",raw:f,text:m,tokens:this.lexer.inlineTokens(m)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,r;return t[2]==="@"?(n=t[1],r="mailto:"+n):(n=t[1],r=n),{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let n,r;if(t[2]==="@")n=t[0],r="mailto:"+n;else{let i;do i=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(i!==t[0]);n=t[0],t[1]==="www."?r="http://"+t[0]:r=t[0]}return{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},kr=class Yy{tokens;options;state;inlineQueue;tokenizer;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||_o,this.options.tokenizer=this.options.tokenizer||new Ef,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:En,block:np.normal,inline:su.normal};this.options.pedantic?(n.block=np.pedantic,n.inline=su.pedantic):this.options.gfm&&(n.block=np.gfm,this.options.breaks?n.inline=su.breaks:n.inline=su.gfm),this.tokenizer.rules=n}static get rules(){return{block:np,inline:su}}static lex(t,n){return new Yy(n).lex(t)}static lexInline(t,n){return new Yy(n).inlineTokens(t)}lex(t){t=t.replace(En.carriageReturn,`
|
|
252
|
+
`),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){for(this.tokenizer.lexer=this,this.options.pedantic&&(t=t.replace(En.tabCharGlobal," ").replace(En.spaceLine,""));t;){let i;if(this.options.extensions?.block?.some(s=>(i=s.call({lexer:this},t,n))?(t=t.substring(i.raw.length),n.push(i),!0):!1))continue;if(i=this.tokenizer.space(t)){t=t.substring(i.raw.length);let s=n.at(-1);i.raw.length===1&&s!==void 0?s.raw+=`
|
|
253
|
+
`:n.push(i);continue}if(i=this.tokenizer.code(t)){t=t.substring(i.raw.length);let s=n.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(`
|
|
254
|
+
`)?"":`
|
|
255
|
+
`)+i.raw,s.text+=`
|
|
256
|
+
`+i.text,this.inlineQueue.at(-1).src=s.text):n.push(i);continue}if(i=this.tokenizer.fences(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.heading(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.hr(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.blockquote(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.list(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.html(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.def(t)){t=t.substring(i.raw.length);let s=n.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(`
|
|
257
|
+
`)?"":`
|
|
258
|
+
`)+i.raw,s.text+=`
|
|
259
|
+
`+i.raw,this.inlineQueue.at(-1).src=s.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title},n.push(i));continue}if(i=this.tokenizer.table(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.lheading(t)){t=t.substring(i.raw.length),n.push(i);continue}let a=t;if(this.options.extensions?.startBlock){let s=1/0,u=t.slice(1),c;this.options.extensions.startBlock.forEach(p=>{c=p.call({lexer:this},u),typeof c=="number"&&c>=0&&(s=Math.min(s,c))}),s<1/0&&s>=0&&(a=t.substring(0,s+1))}if(this.state.top&&(i=this.tokenizer.paragraph(a))){let s=n.at(-1);r&&s?.type==="paragraph"?(s.raw+=(s.raw.endsWith(`
|
|
260
|
+
`)?"":`
|
|
261
|
+
`)+i.raw,s.text+=`
|
|
262
|
+
`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):n.push(i),r=a.length!==t.length,t=t.substring(i.raw.length);continue}if(i=this.tokenizer.text(t)){t=t.substring(i.raw.length);let s=n.at(-1);s?.type==="text"?(s.raw+=(s.raw.endsWith(`
|
|
263
|
+
`)?"":`
|
|
264
|
+
`)+i.raw,s.text+=`
|
|
265
|
+
`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):n.push(i);continue}if(t){let s="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(s);break}else throw new Error(s)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){this.tokenizer.lexer=this;let r=t,i=null;if(this.tokens.links){let c=Object.keys(this.tokens.links);if(c.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)c.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,i.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a;for(;(i=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)a=i[2]?i[2].length:0,r=r.slice(0,i.index+a)+"["+"a".repeat(i[0].length-a-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let s=!1,u="";for(;t;){s||(u=""),s=!1;let c;if(this.options.extensions?.inline?.some(f=>(c=f.call({lexer:this},t,n))?(t=t.substring(c.raw.length),n.push(c),!0):!1))continue;if(c=this.tokenizer.escape(t)){t=t.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.tag(t)){t=t.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.link(t)){t=t.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(c.raw.length);let f=n.at(-1);c.type==="text"&&f?.type==="text"?(f.raw+=c.raw,f.text+=c.text):n.push(c);continue}if(c=this.tokenizer.emStrong(t,r,u)){t=t.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.codespan(t)){t=t.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.br(t)){t=t.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.del(t,r,u)){t=t.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.autolink(t)){t=t.substring(c.raw.length),n.push(c);continue}if(!this.state.inLink&&(c=this.tokenizer.url(t))){t=t.substring(c.raw.length),n.push(c);continue}let p=t;if(this.options.extensions?.startInline){let f=1/0,m=t.slice(1),g;this.options.extensions.startInline.forEach(b=>{g=b.call({lexer:this},m),typeof g=="number"&&g>=0&&(f=Math.min(f,g))}),f<1/0&&f>=0&&(p=t.substring(0,f+1))}if(c=this.tokenizer.inlineText(p)){t=t.substring(c.raw.length),c.raw.slice(-1)!=="_"&&(u=c.raw.slice(-1)),s=!0;let f=n.at(-1);f?.type==="text"?(f.raw+=c.raw,f.text+=c.text):n.push(c);continue}if(t){let f="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(f);break}else throw new Error(f)}}return n}},Sf=class{options;parser;constructor(e){this.options=e||_o}space(e){return""}code({text:e,lang:t,escaped:n}){let r=(t||"").match(En.notSpaceStart)?.[0],i=e.replace(En.endingNewline,"")+`
|
|
266
|
+
`;return r?'<pre><code class="language-'+Lr(r)+'">'+(n?i:Lr(i,!0))+`</code></pre>
|
|
267
|
+
`:"<pre><code>"+(n?i:Lr(i,!0))+`</code></pre>
|
|
268
|
+
`}blockquote({tokens:e}){return`<blockquote>
|
|
269
|
+
${this.parser.parse(e)}</blockquote>
|
|
270
|
+
`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
271
|
+
`}hr(e){return`<hr>
|
|
272
|
+
`}list(e){let t=e.ordered,n=e.start,r="";for(let s=0;s<e.items.length;s++){let u=e.items[s];r+=this.listitem(u)}let i=t?"ol":"ul",a=t&&n!==1?' start="'+n+'"':"";return"<"+i+a+`>
|
|
273
|
+
`+r+"</"+i+`>
|
|
274
|
+
`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
|
|
275
|
+
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|
276
|
+
`}table(e){let t="",n="";for(let i=0;i<e.header.length;i++)n+=this.tablecell(e.header[i]);t+=this.tablerow({text:n});let r="";for(let i=0;i<e.rows.length;i++){let a=e.rows[i];n="";for(let s=0;s<a.length;s++)n+=this.tablecell(a[s]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
|
|
277
|
+
<thead>
|
|
278
|
+
`+t+`</thead>
|
|
279
|
+
`+r+`</table>
|
|
280
|
+
`}tablerow({text:e}){return`<tr>
|
|
281
|
+
${e}</tr>
|
|
282
|
+
`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|
283
|
+
`}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>${Lr(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=WO(e);if(i===null)return r;e=i;let a='<a href="'+e+'"';return t&&(a+=' title="'+Lr(t)+'"'),a+=">"+r+"</a>",a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=WO(e);if(i===null)return Lr(n);e=i;let a=`<img src="${e}" alt="${Lr(n)}"`;return t&&(a+=` title="${Lr(t)}"`),a+=">",a}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Lr(e.text)}},kx=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}},vr=class Ky{options;renderer;textRenderer;constructor(t){this.options=t||_o,this.options.renderer=this.options.renderer||new Sf,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new kx}static parse(t,n){return new Ky(n).parse(t)}static parseInline(t,n){return new Ky(n).parseInline(t)}parse(t){this.renderer.parser=this;let n="";for(let r=0;r<t.length;r++){let i=t[r];if(this.options.extensions?.renderers?.[i.type]){let s=i,u=this.options.extensions.renderers[s.type].call({parser:this},s);if(u!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(s.type)){n+=u||"";continue}}let a=i;switch(a.type){case"space":{n+=this.renderer.space(a);break}case"hr":{n+=this.renderer.hr(a);break}case"heading":{n+=this.renderer.heading(a);break}case"code":{n+=this.renderer.code(a);break}case"table":{n+=this.renderer.table(a);break}case"blockquote":{n+=this.renderer.blockquote(a);break}case"list":{n+=this.renderer.list(a);break}case"checkbox":{n+=this.renderer.checkbox(a);break}case"html":{n+=this.renderer.html(a);break}case"def":{n+=this.renderer.def(a);break}case"paragraph":{n+=this.renderer.paragraph(a);break}case"text":{n+=this.renderer.text(a);break}default:{let s='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return n}parseInline(t,n=this.renderer){this.renderer.parser=this;let r="";for(let i=0;i<t.length;i++){let a=t[i];if(this.options.extensions?.renderers?.[a.type]){let u=this.options.extensions.renderers[a.type].call({parser:this},a);if(u!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){r+=u||"";continue}}let s=a;switch(s.type){case"escape":{r+=n.text(s);break}case"html":{r+=n.html(s);break}case"link":{r+=n.link(s);break}case"image":{r+=n.image(s);break}case"checkbox":{r+=n.checkbox(s);break}case"strong":{r+=n.strong(s);break}case"em":{r+=n.em(s);break}case"codespan":{r+=n.codespan(s);break}case"br":{r+=n.br(s);break}case"del":{r+=n.del(s);break}case"text":{r+=n.text(s);break}default:{let u='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return r}},gu=class{options;block;constructor(e){this.options=e||_o}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?kr.lex:kr.lexInline}provideParser(){return this.block?vr.parse:vr.parseInline}},ZZ=class{defaults=fx();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=vr;Renderer=Sf;TextRenderer=kx;Lexer=kr;Tokenizer=Ef;Hooks=gu;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case"table":{let i=r;for(let a of i.header)n=n.concat(this.walkTokens(a.tokens,t));for(let a of i.rows)for(let s of a)n=n.concat(this.walkTokens(s.tokens,t));break}case"list":{let i=r;n=n.concat(this.walkTokens(i.items,t));break}default:{let i=r;this.defaults.extensions?.childTokens?.[i.type]?this.defaults.extensions.childTokens[i.type].forEach(a=>{let s=i[a].flat(1/0);n=n.concat(this.walkTokens(s,t))}):i.tokens&&(n=n.concat(this.walkTokens(i.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){let a=t.renderers[i.name];a?t.renderers[i.name]=function(...s){let u=i.renderer.apply(this,s);return u===!1&&(u=a.apply(this,s)),u}:t.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=t[i.level];a?a.unshift(i.tokenizer):t[i.level]=[i.tokenizer],i.start&&(i.level==="block"?t.startBlock?t.startBlock.push(i.start):t.startBlock=[i.start]:i.level==="inline"&&(t.startInline?t.startInline.push(i.start):t.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(t.childTokens[i.name]=i.childTokens)}),r.extensions=t),n.renderer){let i=this.defaults.renderer||new Sf(this.defaults);for(let a in n.renderer){if(!(a in i))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let s=a,u=n.renderer[s],c=i[s];i[s]=(...p)=>{let f=u.apply(i,p);return f===!1&&(f=c.apply(i,p)),f||""}}r.renderer=i}if(n.tokenizer){let i=this.defaults.tokenizer||new Ef(this.defaults);for(let a in n.tokenizer){if(!(a in i))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let s=a,u=n.tokenizer[s],c=i[s];i[s]=(...p)=>{let f=u.apply(i,p);return f===!1&&(f=c.apply(i,p)),f}}r.tokenizer=i}if(n.hooks){let i=this.defaults.hooks||new gu;for(let a in n.hooks){if(!(a in i))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let s=a,u=n.hooks[s],c=i[s];gu.passThroughHooks.has(a)?i[s]=p=>{if(this.defaults.async&&gu.passThroughHooksRespectAsync.has(a))return(async()=>{let m=await u.call(i,p);return c.call(i,m)})();let f=u.call(i,p);return c.call(i,f)}:i[s]=(...p)=>{if(this.defaults.async)return(async()=>{let m=await u.apply(i,p);return m===!1&&(m=await c.apply(i,p)),m})();let f=u.apply(i,p);return f===!1&&(f=c.apply(i,p)),f}}r.hooks=i}if(n.walkTokens){let i=this.defaults.walkTokens,a=n.walkTokens;r.walkTokens=function(s){let u=[];return u.push(a.call(this,s)),i&&(u=u.concat(i.call(this,s))),u}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return kr.lex(e,t??this.defaults)}parser(e,t){return vr.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(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return a(new 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 s=i.hooks?await i.hooks.preprocess(t):t,u=await(i.hooks?await i.hooks.provideLexer():e?kr.lex:kr.lexInline)(s,i),c=i.hooks?await i.hooks.processAllTokens(u):u;i.walkTokens&&await Promise.all(this.walkTokens(c,i.walkTokens));let p=await(i.hooks?await i.hooks.provideParser():e?vr.parse:vr.parseInline)(c,i);return i.hooks?await i.hooks.postprocess(p):p})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let s=(i.hooks?i.hooks.provideLexer():e?kr.lex:kr.lexInline)(t,i);i.hooks&&(s=i.hooks.processAllTokens(s)),i.walkTokens&&this.walkTokens(s,i.walkTokens);let u=(i.hooks?i.hooks.provideParser():e?vr.parse:vr.parseInline)(s,i);return i.hooks&&(u=i.hooks.postprocess(u)),u}catch(s){return a(s)}}}onError(e,t){return n=>{if(n.message+=`
|
|
284
|
+
Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+Lr(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}},wo=new ZZ;function rt(e,t){return wo.parse(e,t)}rt.options=rt.setOptions=function(e){return wo.setOptions(e),rt.defaults=wo.defaults,B2(rt.defaults),rt};rt.getDefaults=fx;rt.defaults=_o;rt.use=function(...e){return wo.use(...e),rt.defaults=wo.defaults,B2(rt.defaults),rt};rt.walkTokens=function(e,t){return wo.walkTokens(e,t)};rt.parseInline=wo.parseInline;rt.Parser=vr;rt.parser=vr.parse;rt.Renderer=Sf;rt.TextRenderer=kx;rt.Lexer=kr;rt.lexer=kr.lex;rt.Tokenizer=Ef;rt.Hooks=gu;rt.parse=rt;rt.options;rt.setOptions;rt.use;rt.walkTokens;rt.parseInline;vr.parse;kr.lex;function QZ(e,t){const r=t.split(`
|
|
285
|
+
`).flatMap(i=>[i,""]).map(i=>`${e}${i}`).join(`
|
|
286
|
+
`);return r.slice(0,r.length-1)}function JZ(e,t){const n=[];return Array.from(e.keys()).forEach(r=>{(!t||!t.marks||!t.marks.map(i=>i.type).includes(r))&&n.push(r)}),n}function eQ(e,t){const n=[];return Array.from(t.entries()).forEach(([r,i])=>{e.has(r)||n.push({type:r,mark:i})}),n}function tQ(e,t,n,r){const i=!n,a=n&&n.type==="text"&&(!n.marks||n.marks.length===0),s=n&&n.type==="text"&&n.marks&&!r(t,new Map(n.marks.map(c=>[c.type,c]))),u=[];if(i||a||s)if(n&&n.type==="text"&&n.marks){const c=new Map(n.marks.map(p=>[p.type,p]));Array.from(e.keys()).reverse().forEach(p=>{c.has(p)||u.push(p)})}else(i||a)&&u.push(...Array.from(e.keys()).reverse());return u}function nQ(e,t){let n="";return Array.from(e.keys()).reverse().forEach(r=>{const i=e.get(r),a=t(r,i);a&&(n=a+n)}),e.clear(),n}function rQ(e,t,n){let r="";return Array.from(e.entries()).forEach(([i,a])=>{const s=n(i,a);s&&(r+=s),t.set(i,a)}),r}function Ub(e){const n=(e.raw||e.text||"").match(/^(\s*)[-+*]\s+\[([ xX])\]\s+/);return n?{isTask:!0,checked:n[2].toLowerCase()==="x",indentLevel:n[1].length}:{isTask:!1,indentLevel:0}}function rp(e,t){return typeof e!="string"?"json":t}var iQ=class{constructor(e){this.baseExtensions=[],this.extensions=[],this.lastParseResult=null;var t,n,r,i,a;this.markedInstance=(t=e?.marked)!=null?t:rt,this.lexer=new this.markedInstance.Lexer,this.indentStyle=(r=(n=e?.indentation)==null?void 0:n.style)!=null?r:"space",this.indentSize=(a=(i=e?.indentation)==null?void 0:i.size)!=null?a:2,this.baseExtensions=e?.extensions||[],e?.markedOptions&&typeof this.markedInstance.setOptions=="function"&&this.markedInstance.setOptions(e.markedOptions),this.registry=new Map,this.nodeTypeRegistry=new Map,e?.extensions&&(this.baseExtensions=e.extensions,rh(e.extensions).forEach(u=>this.registerExtension(u,!1))),this.lexer=new this.markedInstance.Lexer}get instance(){return this.markedInstance}get indentCharacter(){return this.indentStyle==="space"?" ":" "}get indentString(){return this.indentCharacter.repeat(this.indentSize)}hasMarked(){return!!this.markedInstance}registerExtension(e,t=!0){var n,r;this.extensions.push(e);const i=e.name,a=ke(e,"markdownTokenName")||i,s=ke(e,"parseMarkdown"),u=ke(e,"renderMarkdown"),c=ke(e,"markdownTokenizer"),p=(n=ke(e,"markdownOptions"))!=null?n:null,f=(r=p?.indentsContent)!=null?r:!1,m=p?.htmlReopen,g={tokenName:a,nodeName:i,parseMarkdown:s,renderMarkdown:u,isIndenting:f,htmlReopen:m,tokenizer:c};if(a&&s){const b=this.registry.get(a)||[];b.push(g),this.registry.set(a,b)}if(u){const b=this.nodeTypeRegistry.get(i)||[];b.push(g),this.nodeTypeRegistry.set(i,b)}c&&this.hasMarked()&&(this.registerTokenizer(c),t&&(this.lexer=new this.markedInstance.Lexer))}registerTokenizer(e){if(!this.hasMarked())return;const{name:t,start:n,level:r="inline",tokenize:i}=e,u={inlineTokens:f=>this.lexer.inlineTokens(f),blockTokens:f=>this.lexer.blockTokens(f)};let c;n?c=typeof n=="function"?n:f=>f.indexOf(n):c=f=>{const m=i(f,[],u);return m&&m.raw?f.indexOf(m.raw):-1};const p={name:t,level:r,start:c,tokenizer:(f,m)=>{const g=i(f,m,u);if(g&&g.type)return{...g,type:g.type||t,raw:g.raw||"",tokens:g.tokens||[]}},childTokens:[]};this.markedInstance.use({extensions:[p]})}getHandlersForToken(e){try{return this.registry.get(e)||[]}catch{return[]}}getHandlerForToken(e){const t=this.getHandlersForToken(e);if(t.length>0)return t[0];const n=this.getHandlersForNodeType(e);return n.length>0?n[0]:void 0}getHandlersForNodeType(e){try{return this.nodeTypeRegistry.get(e)||[]}catch{return[]}}serialize(e){if(!e)return"";const t=this.renderNodes(e,e);return this.isEmptyOutput(t)?"":t}isEmptyOutput(e){return!e||e.trim()===""?!0:e.replace(/ /g,"").replace(/\u00A0/g,"").trim()===""}parse(e){if(!this.hasMarked())throw new Error("No marked instance available for parsing");const t=this.markedInstance.lexer(e);return{type:"doc",content:this.parseTokens(t,!0)}}parseTokens(e,t=!1){const n=e.reduce((a,s,u)=>(s.type!=="space"&&a.push(u),a),[]);let r=-1,i=0;return e.flatMap((a,s)=>{for(var u;i<n.length&&n[i]<s;)r=n[i],i+=1;if(t&&a.type==="space"){const p=(u=n[i])!=null?u:-1;return this.createImplicitEmptyParagraphsFromSpace(a,r,p)}const c=this.parseToken(a,t);return c===null?[]:Array.isArray(c)?c:[c]})}createImplicitEmptyParagraphsFromSpace(e,t,n){const r=this.countParagraphSeparators(e.raw||"");if(r===0)return[];const a=Math.max(r-(t===-1||n===-1?0:1),0);return Array.from({length:a},()=>({type:"paragraph",content:[]}))}countParagraphSeparators(e){return(e.replace(/\r\n/g,`
|
|
287
|
+
`).match(/\n\n/g)||[]).length}parseToken(e,t=!1){if(!e.type)return null;if(e.type==="list")return this.parseListToken(e);const n=this.getHandlersForToken(e.type),r=this.createParseHelpers();if(n.find(a=>{if(!a.parseMarkdown)return!1;const s=a.parseMarkdown(e,r),u=this.normalizeParseResult(s);return u&&(!Array.isArray(u)||u.length>0)?(this.lastParseResult=u,!0):!1})&&this.lastParseResult){const a=this.lastParseResult;return this.lastParseResult=null,a}return this.parseFallbackToken(e,t)}parseListToken(e){if(!e.items||e.items.length===0)return this.parseTokenWithHandlers(e);const t=e.items.some(u=>Ub(u).isTask),n=e.items.some(u=>!Ub(u).isTask);if(!t||!n||this.getHandlersForToken("taskList").length===0)return this.parseTokenWithHandlers(e);const r=[];let i=[],a=null;for(let u=0;u<e.items.length;u+=1){const c=e.items[u],{isTask:p,checked:f,indentLevel:m}=Ub(c);let g=c;if(p){const k=(c.raw||c.text||"").split(`
|
|
288
|
+
`),v=k[0].match(/^\s*[-+*]\s+\[([ xX])\]\s+(.*)$/),w=v?v[2]:"";let x=[];if(k.length>1&&k.slice(1).join(`
|
|
289
|
+
`).trim()){const D=k.slice(1),O=D.filter(R=>R.trim());if(O.length>0){const R=Math.min(...O.map(G=>G.length-G.trimStart().length)),U=D.map(G=>G.trim()?G.slice(R):"").join(`
|
|
290
|
+
`).trim();U&&(x=this.markedInstance.lexer(`${U}
|
|
291
|
+
`))}}g={type:"taskItem",raw:"",mainContent:w,indentLevel:m,checked:f??!1,text:w,tokens:this.lexer.inlineTokens(w),nestedTokens:x}}const b=p?"taskList":"list";a!==b?(i.length>0&&r.push({type:a,items:i}),i=[g],a=b):i.push(g)}i.length>0&&r.push({type:a,items:i});const s=[];for(let u=0;u<r.length;u+=1){const c=r[u],p={...e,type:c.type,items:c.items},f=this.parseToken(p);f&&(Array.isArray(f)?s.push(...f):s.push(f))}return s.length>0?s:null}parseTokenWithHandlers(e){if(!e.type)return null;const t=this.getHandlersForToken(e.type),n=this.createParseHelpers();if(t.find(i=>{if(!i.parseMarkdown)return!1;const a=i.parseMarkdown(e,n),s=this.normalizeParseResult(a);return s&&(!Array.isArray(s)||s.length>0)?(this.lastParseResult=s,!0):!1})&&this.lastParseResult){const i=this.lastParseResult;return this.lastParseResult=null,i}return this.parseFallbackToken(e)}createParseHelpers(){return{parseInline:e=>this.parseInlineTokens(e),parseChildren:e=>this.parseTokens(e),parseBlockChildren:e=>this.parseTokens(e,!0),createTextNode:(e,t)=>({type:"text",text:e,marks:t||void 0}),createNode:(e,t,n)=>{const r={type:e,attrs:t||void 0,content:n||void 0};return(!t||Object.keys(t).length===0)&&delete r.attrs,r},applyMark:(e,t,n)=>({mark:e,content:t,attrs:n&&Object.keys(n).length>0?n:void 0})}}escapeRegex(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}parseInlineTokens(e){var t,n,r,i;const a=[];for(let s=0;s<e.length;s+=1){const u=e[s];if(u.type==="text")a.push({type:"text",text:u.text||""});else if(u.type==="html"){const c=((n=(t=u.raw)!=null?t:u.text)!=null?n:"").toString(),p=/^<\/[\s]*[\w-]+/i.test(c),f=c.match(/^<[\s]*([\w-]+)(\s|>|\/|$)/i);if(!p&&f&&!/\/>$/.test(c)){const g=f[1],b=this.escapeRegex(g),S=new RegExp(`^<\\/\\s*${b}\\b`,"i");let k=-1;const v=[c];for(let w=s+1;w<e.length;w+=1){const x=e[w],A=((i=(r=x.raw)!=null?r:x.text)!=null?i:"").toString();if(v.push(A),x.type==="html"&&S.test(A)){k=w;break}}if(k!==-1){const w=v.join(""),x={type:"html",raw:w,text:w,block:!1},A=this.parseHTMLToken(x);if(A){const D=this.normalizeParseResult(A);Array.isArray(D)?a.push(...D):D&&a.push(D)}s=k;continue}}const m=this.parseHTMLToken(u);if(m){const g=this.normalizeParseResult(m);Array.isArray(g)?a.push(...g):g&&a.push(g)}}else if(u.type){const c=this.getHandlerForToken(u.type);if(c&&c.parseMarkdown){const p=this.createParseHelpers(),f=c.parseMarkdown(u,p);if(this.isMarkResult(f)){const m=this.applyMarkToContent(f.mark,f.content,f.attrs);a.push(...m)}else{const m=this.normalizeParseResult(f);Array.isArray(m)?a.push(...m):m&&a.push(m)}}else u.tokens&&a.push(...this.parseInlineTokens(u.tokens))}}return a}applyMarkToContent(e,t,n){return t.map(r=>{if(r.type==="text"){const i=r.marks||[],a=n?{type:e,attrs:n}:{type:e};return{...r,marks:[...i,a]}}return{...r,content:r.content?this.applyMarkToContent(e,r.content,n):void 0}})}isMarkResult(e){return e&&typeof e=="object"&&"mark"in e}normalizeParseResult(e){return e?this.isMarkResult(e)?e.content:e:null}parseFallbackToken(e,t=!1){switch(e.type){case"paragraph":return{type:"paragraph",content:e.tokens?this.parseInlineTokens(e.tokens):[]};case"heading":return{type:"heading",attrs:{level:e.depth||1},content:e.tokens?this.parseInlineTokens(e.tokens):[]};case"text":return{type:"text",text:e.text||""};case"html":return this.parseHTMLToken(e);case"space":return null;default:return e.tokens?this.parseTokens(e.tokens,t):null}}parseHTMLToken(e){const t=e.text||e.raw||"";if(!t.trim())return null;if(typeof window>"u")return e.block?{type:"paragraph",content:[{type:"text",text:t}]}:{type:"text",text:t};try{const n=k8(t,this.baseExtensions);return n.type==="doc"&&n.content?e.block?n.content:n.content.length===1&&n.content[0].type==="paragraph"&&n.content[0].content?n.content[0].content:n.content:n}catch(n){throw new Error(`Failed to parse HTML in markdown: ${n}`)}}renderNodeToMarkdown(e,t,n=0,r=0,i={}){var a;if(e.type==="text")return e.text||"";if(!e.type)return"";const s=this.getHandlerForToken(e.type);if(!s)return"";const u=Array.isArray(t?.content)&&n>0?t.content[n-1]:void 0,c={renderChildren:(m,g)=>{const b=s.isIndenting?r+1:r;return!Array.isArray(m)&&m.content?this.renderNodes(m.content,e,g||"",n,b):this.renderNodes(m,e,g||"",n,b)},renderChild:(m,g)=>{const b=s.isIndenting?r+1:r;return this.renderNodeToMarkdown(m,e,g,b)},indent:m=>this.indentString+m,wrapInBlock:QZ},p={index:n,level:r,parentType:t?.type,previousNode:u,meta:{parentAttrs:t?.attrs,...i}};return((a=s.renderMarkdown)==null?void 0:a.call(s,e,c,p))||""}renderNodes(e,t,n="",r=0,i=0){return Array.isArray(e)?this.renderNodesWithMarkBoundaries(e,t,n,i):e.type?this.renderNodeToMarkdown(e,t,r,i):""}renderNodesWithMarkBoundaries(e,t,n="",r=0){const i=[],a=new Map,s=new Set,u=new Map;return e.forEach((c,p)=>{const f=p<e.length-1?e[p+1]:null;if(c.type)if(c.type==="text"){let m=c.text||"";const g=new Map((c.marks||[]).map(O=>[O.type,O])),b=eQ(a,g),S=JZ(g,f),k=S.filter(O=>a.has(O)),v=k.length>0&&b.length>0;let w="";if(S.length>0&&!v){const O=m.match(/(\s+)$/);O&&(w=O[1],m=m.slice(0,-w.length))}v||S.forEach(O=>{if(!a.has(O))return;const R=g.get(O),M=this.getMarkClosing(O,R,u.get(O));M&&(m+=M),a.has(O)&&(a.delete(O),u.delete(O))});let x="";if(b.length>0){const O=m.match(/^(\s+)/);O&&(x=O[1],m=m.slice(x.length))}b.forEach(({type:O,mark:R})=>{const M=s.has(O)?"html":"markdown",U=this.getMarkOpening(O,R,M);U&&(m=U+m),u.set(O,M),s.delete(O)}),v||b.slice().reverse().forEach(({type:O,mark:R})=>{a.set(O,R)}),m=x+m;let A;if(v){const O=new Set((f?.marks||[]).map(R=>R.type));b.forEach(({type:R})=>{O.has(R)&&this.getHtmlReopenTags(R)&&s.add(R)}),A=[...b.map(R=>R.type),...k]}else A=tQ(a,g,f,this.markSetsEqual.bind(this));let D="";if(A.length>0){const O=m.match(/(\s+)$/);O&&(D=O[1],m=m.slice(0,-D.length))}A.forEach(O=>{var R;const M=(R=a.get(O))!=null?R:g.get(O),U=this.getMarkClosing(O,M,u.get(O));U&&(m+=U),a.delete(O),u.delete(O)}),m+=D,m+=w,i.push(m)}else{const m=new Map(a),g=new Map(u),b=nQ(a,(v,w)=>this.getMarkClosing(v,w,u.get(v)));u.clear();const S=this.renderNodeToMarkdown(c,t,p,r),k=c.type==="hardBreak"?"":rQ(m,a,(v,w)=>{var x;const A=(x=g.get(v))!=null?x:"markdown";return u.set(v,A),this.getMarkOpening(v,w,A)});i.push(b+S+k)}}),i.join(n)}getMarkOpening(e,t,n="markdown"){var r;if(n==="html")return((r=this.getHtmlReopenTags(e))==null?void 0:r.open)||"";const i=this.getHandlersForNodeType(e),a=i.length>0?i[0]:void 0;if(!a||!a.renderMarkdown)return"";const s="__TIPTAP_MARKDOWN_PLACEHOLDER__",u={type:e,attrs:t.attrs||{},content:[{type:"text",text:s}]};try{const c=a.renderMarkdown(u,{renderChildren:()=>s,renderChild:()=>s,indent:f=>f,wrapInBlock:(f,m)=>f+m},{index:0,level:0,parentType:"text",meta:{}}),p=c.indexOf(s);return p>=0?c.substring(0,p):""}catch(c){throw new Error(`Failed to get mark opening for ${e}: ${c}`)}}getMarkClosing(e,t,n="markdown"){var r;if(n==="html")return((r=this.getHtmlReopenTags(e))==null?void 0:r.close)||"";const i=this.getHandlersForNodeType(e),a=i.length>0?i[0]:void 0;if(!a||!a.renderMarkdown)return"";const s="__TIPTAP_MARKDOWN_PLACEHOLDER__",u={type:e,attrs:t.attrs||{},content:[{type:"text",text:s}]};try{const c=a.renderMarkdown(u,{renderChildren:()=>s,renderChild:()=>s,indent:m=>m,wrapInBlock:(m,g)=>m+g},{index:0,level:0,parentType:"text",meta:{}}),p=c.indexOf(s),f=p+s.length;return p>=0?c.substring(f):""}catch(c){throw new Error(`Failed to get mark closing for ${e}: ${c}`)}}getHtmlReopenTags(e){const t=this.getHandlersForNodeType(e),n=t.length>0?t[0]:void 0;return n?.htmlReopen}markSetsEqual(e,t){return e.size!==t.size?!1:Array.from(e.keys()).every(n=>t.has(n))}},XO=iQ,aQ=Tt.create({name:"markdown",addOptions(){return{indentation:{style:"space",size:2},marked:void 0,markedOptions:{}}},addCommands(){return{setContent:(e,t)=>{if(!t?.contentType||rp(e,t?.contentType)!=="markdown"||!this.editor.markdown)return Er.setContent(e,t);const r=this.editor.markdown.parse(e);return Er.setContent(r,t)},insertContent:(e,t)=>{if(!t?.contentType||rp(e,t?.contentType)!=="markdown"||!this.editor.markdown)return Er.insertContent(e,t);const r=this.editor.markdown.parse(e);return Er.insertContent(r,t)},insertContentAt:(e,t,n)=>{if(!n?.contentType||rp(t,n?.contentType)!=="markdown"||!this.editor.markdown)return Er.insertContentAt(e,t,n);const i=this.editor.markdown.parse(t);return Er.insertContentAt(e,i,n)}}},addStorage(){return{manager:new XO({indentation:this.options.indentation,marked:this.options.marked,markedOptions:this.options.markedOptions,extensions:[]})}},onBeforeCreate(){if(this.editor.markdown){console.error("[tiptap][markdown]: There is already a `markdown` property on the editor instance. This might lead to unexpected behavior.");return}if(this.storage.manager=new XO({indentation:this.options.indentation,marked:this.options.marked,markedOptions:this.options.markedOptions,extensions:this.editor.extensionManager.baseExtensions}),this.editor.markdown=this.storage.manager,this.editor.getMarkdown=()=>this.storage.manager.serialize(this.editor.getJSON()),!this.editor.options.contentType||rp(this.editor.options.content,this.editor.options.contentType)!=="markdown")return;if(!this.editor.markdown)throw new Error('[tiptap][markdown]: The `contentType` option is set to "markdown", but the Markdown extension is not added to the editor. Please add the Markdown extension to use this feature.');if(this.editor.options.content===void 0||typeof this.editor.options.content!="string")throw new Error('[tiptap][markdown]: The `contentType` option is set to "markdown", but the initial content is not a string. Please provide the initial content as a markdown string.');const t=this.editor.markdown.parse(this.editor.options.content);this.editor.options.content=t}});function br({onClick:e,active:t=!1,children:n,title:r}){return B.jsx(Sr,{type:"button",variant:t?"secondary":"ghost",className:"h-8 px-2 text-xs",onClick:e,title:r,children:n})}function oQ({value:e="",onChange:t,className:n=""}){const r=L.useRef(e||""),i=w7({extensions:[cZ.configure({codeBlock:!0}),aQ.configure({markedOptions:{gfm:!0,breaks:!0}})],content:e||"",contentType:"markdown",immediatelyRender:!0,editorProps:{attributes:{class:"h-full min-h-[320px] w-full overflow-y-auto p-5 text-sm leading-7 text-slate-100 outline-none [&_h1]:mb-3 [&_h1]:mt-6 [&_h1]:text-3xl [&_h1]:font-bold [&_h1]:text-white [&_h2]:mb-2 [&_h2]:mt-5 [&_h2]:text-2xl [&_h2]:font-semibold [&_h2]:text-slate-100 [&_h3]:mb-2 [&_h3]:mt-4 [&_h3]:text-xl [&_h3]:font-semibold [&_h3]:text-slate-200 [&_p]:my-2 [&_ul]:my-3 [&_ul]:list-disc [&_ul]:pl-6 [&_ol]:my-3 [&_ol]:list-decimal [&_ol]:pl-6 [&_li]:my-1.5 [&_blockquote]:my-4 [&_blockquote]:border-l-2 [&_blockquote]:border-indigo-400 [&_blockquote]:pl-4 [&_blockquote]:italic [&_blockquote]:text-slate-300 [&_a]:text-indigo-300 [&_a]:underline [&_code]:rounded [&_code]:bg-slate-800 [&_code]:px-1.5 [&_code]:py-0.5 [&_code]:text-xs [&_pre]:my-4 [&_pre]:overflow-x-auto [&_pre]:rounded-md [&_pre]:border [&_pre]:border-slate-700 [&_pre]:bg-slate-900 [&_pre]:p-4"}},onUpdate:({editor:a})=>{const s=a.getMarkdown();r.current=s,t?.(s)}});return L.useEffect(()=>{if(!i)return;const a=e||"";a!==r.current&&(i.commands.setContent(a,{contentType:"markdown"}),r.current=a)},[e,i]),i?B.jsxs("div",{className:`flex h-full min-h-0 flex-col ${n}`,children:[B.jsxs("div",{className:"flex flex-wrap gap-1 border-b border-slate-800 bg-slate-900/60 p-2",children:[B.jsx(br,{title:"Heading 1",active:i.isActive("heading",{level:1}),onClick:()=>i.chain().focus().toggleHeading({level:1}).run(),children:"H1"}),B.jsx(br,{title:"Heading 2",active:i.isActive("heading",{level:2}),onClick:()=>i.chain().focus().toggleHeading({level:2}).run(),children:"H2"}),B.jsx(br,{title:"Heading 3",active:i.isActive("heading",{level:3}),onClick:()=>i.chain().focus().toggleHeading({level:3}).run(),children:"H3"}),B.jsx(br,{title:"Bold",active:i.isActive("bold"),onClick:()=>i.chain().focus().toggleBold().run(),children:"Bold"}),B.jsx(br,{title:"Italic",active:i.isActive("italic"),onClick:()=>i.chain().focus().toggleItalic().run(),children:"Italic"}),B.jsx(br,{title:"Inline code",active:i.isActive("code"),onClick:()=>i.chain().focus().toggleCode().run(),children:"Code"}),B.jsx(br,{title:"Bullet list",active:i.isActive("bulletList"),onClick:()=>i.chain().focus().toggleBulletList().run(),children:"List"}),B.jsx(br,{title:"Numbered list",active:i.isActive("orderedList"),onClick:()=>i.chain().focus().toggleOrderedList().run(),children:"1."}),B.jsx(br,{title:"Blockquote",active:i.isActive("blockquote"),onClick:()=>i.chain().focus().toggleBlockquote().run(),children:"Quote"}),B.jsx(br,{title:"Code block",active:i.isActive("codeBlock"),onClick:()=>i.chain().focus().toggleCodeBlock().run(),children:"Block"}),B.jsx(br,{title:"Horizontal rule",onClick:()=>i.chain().focus().setHorizontalRule().run(),children:"---"})]}),B.jsx("div",{className:"min-h-0 flex-1 overflow-hidden bg-slate-950",children:B.jsx(s2,{editor:i,className:"h-full"})})]}):B.jsx("div",{className:"flex h-full items-center justify-center text-sm text-slate-400",children:"Loading editor..."})}const sQ={code({node:e,inline:t,className:n,children:r,...i}){const a=/language-(\w+)/.exec(n||"");return!t&&a?B.jsx(ZD,{style:m5,language:a[1],PreTag:"div",...i,children:String(r).replace(/\n$/,"")}):B.jsx("code",{className:n,...i,children:r})}};function lQ({courseSlug:e,content:t,onLectureUpdate:n}){const[r,i]=L.useState("lecture"),[a,s]=L.useState(t||""),[u,c]=L.useState(""),[p,f]=L.useState([]),[m,g]=L.useState(null),[b,S]=L.useState(""),[k,v]=L.useState(null),[w,x]=L.useState(!1),[A,D]=L.useState(null),[O,R]=L.useState(!1),M=r==="lecture"?a:r==="syllabus"?u:"",U=L.useCallback(async q=>{if(!e)return;const te=q==="lecture"?"LECTURE.md":"COURSE.md";x(!0),D(null);try{const Z=(await xz(e,te))?.content||"";q==="lecture"?s(Z):c(Z)}catch(J){console.error(`Failed to load ${te}:`,J),D(`Failed to load ${q}`)}finally{x(!1)}},[e]),G=L.useCallback(async()=>{if(e){x(!0),D(null);try{const q=await Az(e);f(q.exercises||[]),g(q.activeExercise);const te=q.activeExercise||q.exercises?.[0]?.filename;if(te){v(te);const J=await _R(e,te);S(J.content)}}catch(q){console.error("Failed to load exercises:",q),D("Failed to load exercises")}finally{x(!1)}}},[e]),F=async q=>{if(e){v(q);try{const te=await _R(e,q);S(te.content)}catch(te){console.error("Failed to load exercise:",te)}}},Q=async()=>{if(!(!e||!k)){R(!0);try{await Cz(e,k,b),alert("Exercise saved!")}catch(q){console.error("Failed to save exercise:",q),alert("Failed to save exercise")}finally{R(!1)}}};return L.useEffect(()=>{if(!e){s(""),c(""),f([]),v(null),S("");return}U("lecture"),U("syllabus"),r==="exercises"&&G()},[e,U,r,G]),L.useEffect(()=>{r==="exercises"&&e&&p.length===0&&G()},[r,e,p.length,G]),L.useEffect(()=>{const q=()=>U("lecture"),te=()=>U("syllabus");return window.addEventListener("refresh-lecture",q),window.addEventListener("refresh-syllabus",te),()=>{window.removeEventListener("refresh-lecture",q),window.removeEventListener("refresh-syllabus",te)}},[U]),L.useEffect(()=>{n&&n(a)},[a,n]),e?B.jsxs("div",{className:"flex h-full min-h-0 flex-col overflow-hidden",children:[B.jsxs("div",{className:"flex shrink-0 gap-2 border-b border-slate-800 bg-slate-900/70 px-3 pt-2 md:px-4",children:[B.jsx(Sr,{variant:"ghost",className:`h-9 rounded-b-none border-b-2 px-3 ${r==="lecture"?"border-indigo-400 text-indigo-300":"border-transparent text-slate-400"}`,onClick:()=>i("lecture"),children:"📝 Lecture"}),B.jsx(Sr,{variant:"ghost",className:`h-9 rounded-b-none border-b-2 px-3 ${r==="syllabus"?"border-indigo-400 text-indigo-300":"border-transparent text-slate-400"}`,onClick:()=>i("syllabus"),children:"📋 Syllabus"}),B.jsxs(Sr,{variant:"ghost",className:`h-9 rounded-b-none border-b-2 px-3 ${r==="exercises"?"border-indigo-400 text-indigo-300":"border-transparent text-slate-400"}`,onClick:()=>i("exercises"),children:["💪 Exercises",m&&B.jsx("span",{className:"ml-1 text-[10px] text-emerald-500",children:"●"})]})]}),w?B.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-3 px-6 text-center text-slate-400",children:[B.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-2 border-slate-700 border-t-indigo-400"}),B.jsx("p",{children:"Loading..."})]}):A?B.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-3 px-6 text-center text-slate-400",children:[B.jsx("p",{children:A}),B.jsx(Sr,{onClick:()=>U(r),children:"Retry"})]}):r==="exercises"?B.jsx("div",{className:"flex min-h-0 h-full overflow-hidden",children:p.length===0?B.jsx("div",{className:"flex h-full flex-1 flex-col items-center justify-center gap-3 px-6 text-center text-slate-400",children:B.jsxs("div",{className:"flex flex-col items-center gap-2",children:[B.jsx("span",{className:"text-5xl",children:"💪"}),B.jsx("p",{children:"No exercises yet."}),B.jsxs("p",{className:"text-sm",children:["Type ",B.jsx("code",{className:"rounded bg-slate-800 px-1.5 py-0.5 text-slate-200",children:"professor:next"})," in chat to create exercises."]})]})}):B.jsxs(B.Fragment,{children:[B.jsx("div",{className:"hidden w-48 shrink-0 border-r border-slate-800 bg-slate-900/40 md:block",children:B.jsxs("div",{className:"p-3",children:[B.jsx("h4",{className:"mb-2 text-xs font-semibold uppercase tracking-wide text-slate-400",children:"Exercises"}),p.map(q=>B.jsxs(Sr,{variant:k===q.filename?"secondary":"ghost",className:"mb-1 h-auto w-full justify-start px-2 py-2 text-left text-xs",onClick:()=>F(q.filename),children:[q.filename.replace(".md",""),m===q.filename&&B.jsx("span",{className:"ml-1 text-[10px] text-emerald-500",children:"●"})]},q.filename))]})}),B.jsxs("div",{className:"flex min-h-0 flex-1 flex-col overflow-hidden",children:[B.jsxs("div",{className:"flex items-center justify-between border-b border-slate-800 bg-slate-900/40 px-3 py-2 md:px-4",children:[B.jsx("h4",{className:"text-sm font-medium",children:k}),B.jsx(Sr,{size:"sm",onClick:Q,disabled:O,children:O?"Saving...":"💾 Save"})]}),B.jsx("div",{className:"border-b border-slate-800 bg-slate-900/40 p-2 md:hidden",children:B.jsx("select",{value:k||"",onChange:q=>F(q.target.value),className:"h-9 w-full rounded-md border border-slate-700 bg-slate-950 px-2 text-sm text-slate-100",children:p.map(q=>B.jsx("option",{value:q.filename,children:q.filename.replace(".md","")},q.filename))})}),B.jsx("div",{className:"min-h-0 flex-1 overflow-hidden",children:B.jsx(oQ,{value:b,onChange:S})})]})]})}):M?B.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto px-4 py-5 md:px-6",children:B.jsx("div",{className:"max-w-none text-sm leading-7 text-slate-200 [&_a]:text-indigo-300 [&_a:hover]:underline [&_blockquote]:my-4 [&_blockquote]:border-l-2 [&_blockquote]:border-indigo-400 [&_blockquote]:pl-4 [&_blockquote]:italic [&_code]:rounded [&_code]:bg-slate-800 [&_code]:px-1.5 [&_code]:py-0.5 [&_code]:text-xs [&_h1]:mt-6 [&_h1]:text-2xl [&_h1]:font-semibold [&_h2]:mt-5 [&_h2]:text-xl [&_h2]:font-semibold [&_h3]:mt-4 [&_h3]:text-lg [&_h3]:font-medium [&_hr]:my-6 [&_hr]:border-slate-700 [&_img]:my-3 [&_img]:max-w-full [&_img]:rounded-md [&_li]:my-1 [&_ol]:my-3 [&_ol]:pl-6 [&_p]:my-3 [&_pre]:my-4 [&_pre]:overflow-x-auto [&_pre]:rounded-md [&_pre]:border [&_pre]:border-slate-700 [&_pre]:bg-slate-900 [&_pre]:p-4 [&_table]:my-4 [&_table]:w-full [&_table]:border-collapse [&_td]:border [&_td]:border-slate-700 [&_td]:p-2 [&_th]:border [&_th]:border-slate-700 [&_th]:bg-slate-800 [&_th]:p-2 [&_th]:text-left [&_ul]:my-3 [&_ul]:pl-6",children:B.jsx(aV,{remarkPlugins:[y6],components:sQ,children:M})})}):B.jsx("div",{className:"flex h-full flex-col items-center justify-center gap-3 px-6 text-center text-slate-400",children:B.jsxs("div",{className:"flex flex-col items-center gap-2",children:[B.jsx("span",{className:"text-5xl",children:"✨"}),r==="lecture"?B.jsxs(B.Fragment,{children:[B.jsx("p",{children:"No lecture loaded yet."}),B.jsxs("p",{className:"text-sm",children:["Type ",B.jsx("code",{className:"rounded bg-slate-800 px-1.5 py-0.5 text-slate-200",children:"professor:next"})," in chat to start your first section."]})]}):B.jsxs(B.Fragment,{children:[B.jsx("p",{children:"No syllabus found."}),B.jsxs("p",{className:"text-sm",children:["Type ",B.jsx("code",{className:"rounded bg-slate-800 px-1.5 py-0.5 text-slate-200",children:"professor:new-topic"})," in chat to create a course."]})]})]})})]}):B.jsx("div",{className:"flex h-full flex-col items-center justify-center gap-3 px-6 text-center text-slate-400",children:B.jsxs("div",{className:"flex flex-col items-center gap-2",children:[B.jsx("span",{className:"text-5xl",children:"📖"}),B.jsx("p",{children:"Select a course to see the current lecture."})]})})}const ZO={idle:["professor:new-topic"],lecture:["professor:discuss","professor:hint","professor:review","professor:quiz"],exercise:["professor:hint","professor:review","professor:stuck"],review:["professor:done","professor:hint"]};function uQ({phase:e="idle",onCommandClick:t,disabled:n=!1}){const r=ZO[e]||ZO.idle;function i(a){n||t?.(a)}return B.jsx("div",{className:"flex flex-wrap gap-2 border-t border-slate-800 bg-slate-900 px-3 py-2 md:px-4",children:r.map(a=>B.jsx(Sr,{variant:"outline",size:"sm",className:"h-7 rounded-full px-3 font-mono text-xs",onClick:()=>i(a),disabled:n,title:`Send ${a} command`,children:a},a))})}function cQ(e,t={}){const[n,r]=L.useState(""),[i,a]=L.useState(!1),[s,u]=L.useState(null),c=L.useRef(null),p=L.useRef(t);L.useEffect(()=>{p.current=t},[t]);const f=L.useCallback(async(b,S=null)=>{c.current&&c.current.abort();const k=new AbortController;c.current=k,r(""),u(null),a(!0);try{const v=await fetch(Tz(b),{method:"POST",headers:{...gp(),"Content-Type":"application/json"},body:S?JSON.stringify(S):null,signal:k.signal});if(!v.ok)throw new Error(`HTTP ${v.status}: ${v.statusText}`);const w=v.body.getReader(),x=new TextDecoder;let A="";for(;;){const{done:D,value:O}=await w.read();if(D)break;A+=x.decode(O,{stream:!0});const R=A.split(`
|
|
292
|
+
`);A=R.pop();for(const M of R){if(!M.startsWith("data: "))continue;const U=M.slice(6);if(U==="[DONE]"){a(!1),p.current.onComplete?.();return}try{const G=JSON.parse(U);if(G.content){const F=G.content.replace(/<file path="[^"]*">[\s\S]*?<\/file>/g,"");F&&(r(Q=>Q+F),p.current.onMessage?.(G))}else if(G.sessionId)p.current.onSessionId?.(G.sessionId);else if(G.provider||G.model)p.current.onProviderMeta?.(G);else if(G.filesUpdated){const F=G.courseSlug;G.filesUpdated.forEach(Q=>{Q==="LECTURE.md"&&window.dispatchEvent(new CustomEvent("refresh-lecture",{detail:{slug:F}})),Q==="COURSE.md"&&window.dispatchEvent(new CustomEvent("refresh-syllabus",{detail:{slug:F}}))}),G.filesUpdated.includes("COURSE.md")&&window.dispatchEvent(new CustomEvent("refresh-courses",{detail:{slug:F}}))}else if(G.error){u(G.error),p.current.onError?.(new Error(G.error));return}}catch{}}}a(!1),p.current.onComplete?.()}catch(v){if(v.name==="AbortError")return;a(!1),u(v.message||"Connection error"),p.current.onError?.(v)}},[]),m=L.useCallback(()=>{c.current&&(c.current.abort(),c.current=null),a(!1)},[]),g=L.useCallback(()=>{r(""),u(null)},[]);return L.useEffect(()=>()=>{c.current?.abort()},[]),{data:n,isConnected:i,error:s,connect:f,disconnect:m,reset:g}}function QO({className:e,children:t,variant:n="default",...r}){const i={default:"border border-slate-600 bg-slate-800 text-slate-100",secondary:"border border-slate-700 bg-slate-900 text-slate-300",warning:"border border-amber-600/60 bg-amber-900/40 text-amber-200"};return B.jsx("span",{className:Ra("inline-flex items-center rounded-full px-2 py-0.5 text-[11px] font-medium",i[n]||i.default,e),...r,children:t})}function JO({className:e,children:t,variant:n="default",...r}){const i={default:"border-slate-700 bg-slate-900 text-slate-200",destructive:"border-red-700/60 bg-red-900/30 text-red-200"};return B.jsx("div",{role:"alert",className:Ra("rounded-md border px-3 py-2 text-sm",i[n]||i.default,e),...r,children:t})}function eI({className:e,children:t,...n}){return B.jsx("h5",{className:Ra("mb-1 text-sm font-semibold",e),...n,children:t})}function tI({className:e,children:t,...n}){return B.jsx("div",{className:Ra("text-xs leading-5",e),...n,children:t})}function dQ({courseSlug:e,currentPhase:t="idle",onSendMessage:n}){const r=L.useCallback(H=>H?"Course loaded. You can continue with `professor:next`, `professor:review`, or `professor:discuss`.":"Welcome to Professor! Select a course and type `professor:new-topic` to start your first course.",[]),[i,a]=L.useState(()=>localStorage.getItem("professor.provider")||"auto"),[s,u]=L.useState(()=>localStorage.getItem("professor.model")||""),[c,p]=L.useState(null),[f,m]=L.useState([]),[g,b]=L.useState(!1),[S,k]=L.useState(null),[v,w]=L.useState(null),[x,A]=L.useState(()=>[{role:"assistant",content:r(!!e)}]),[D,O]=L.useState(""),[R,M]=L.useState(!1),[U,G]=L.useState(t),F=!ma(),Q=vz(),q=L.useRef(null),te=L.useRef("");L.useEffect(()=>{G(t)},[t]),L.useEffect(()=>{G(e?"lecture":"idle"),w(null),A(H=>H.length===1&&H[0]?.role==="assistant"&&(H[0]?.content?.includes("Welcome to Professor!")||H[0]?.content?.includes("Course loaded."))?[{role:"assistant",content:r(!!e)}]:H)},[e,r]),L.useEffect(()=>{localStorage.setItem("professor.provider",i)},[i]),L.useEffect(()=>{s&&localStorage.setItem("professor.model",s)},[s]),L.useEffect(()=>{async function H(){if(ma())try{const _=await fetch(`${Sa()}/agents/capabilities`,{headers:gp()});if(!_.ok)return;const oe=await _.json();p(oe.capabilities||null)}catch{}}H()},[]),L.useEffect(()=>{async function H(){if(ma())try{const _=await fetch(`${Sa()}/agents/models?provider=${encodeURIComponent(i)}`,{headers:gp()});if(!_.ok)return;const oe=await _.json();k(oe.provider||i),m(oe.models||[]),b(!!oe.allowCustomModel),(oe.models||[]).length>0&&!s&&u(oe.models[0])}catch{m([]),b(!1)}}H()},[i]),L.useEffect(()=>{q.current?.scrollIntoView({behavior:"smooth"})},[x]);const{data:J,error:Z,connect:$,reset:W}=cQ("/api/chat",{onSessionId:H=>w(H),onProviderMeta:H=>{H.provider&&k(H.provider),H.model&&!s&&u(H.model)},onMessage:H=>{},onComplete:()=>{M(!1);const H=(te.current||"").toLowerCase();H.includes("professor:next")?(window.dispatchEvent(new CustomEvent("refresh-lecture")),G("lecture")):H.includes("professor:review")?G("review"):H.includes("professor:done")&&G("lecture")},onError:H=>{console.error("Stream error:",H),M(!1),A(_=>{const oe=[..._],de=oe.length-1;return de>=0&&oe[de].role==="assistant"&&!oe[de].content&&(oe[de]={...oe[de],content:`⚠️ ${H.message||"Connection failed"}`}),oe})}});L.useEffect(()=>{J&&R&&A(H=>{const _=[...H],oe=_.length-1;return oe>=0&&_[oe].role==="assistant"&&(_[oe]={..._[oe],content:J}),_})},[J,R]);const re=L.useCallback(async H=>{if(!H.trim()||R||F)return;te.current=H.trim();const _={role:"user",content:H},oe=[...x,_];if(A(oe),O(""),M(!0),A(de=>[...de,{role:"assistant",content:""}]),n){try{await n(H,e,oe),M(!1)}catch(de){A(fe=>{const le=[...fe];return le[le.length-1]={role:"assistant",content:`Error: ${de.message}`},le}),M(!1)}return}try{W(),$("/api/chat",{messages:oe.map(de=>({role:de.role,content:de.content})),courseSlug:e,sessionId:v,provider:i,model:s||void 0})}catch(de){A(fe=>{const le=[...fe];return le[le.length-1]={role:"assistant",content:`Error: ${de.message}`},le}),M(!1)}},[x,R,e,n,$,W,v,i,s,F]);function he(H){H.key==="Enter"&&!H.shiftKey&&(H.preventDefault(),re(D))}function N(H){re(H)}function z(H){return H?H.split(`
|
|
293
|
+
|
|
294
|
+
`).map((_,oe)=>_.startsWith("```")?B.jsx("pre",{children:B.jsx("code",{children:_.slice(3,-3)})},oe):(_=_.replace(/`([^`]+)`/g,"<code>$1</code>"),_=_.replace(/\*\*([^*]+)\*\*/g,"<strong>$1</strong>"),B.jsx("p",{dangerouslySetInnerHTML:{__html:_}},oe))):"▌"}return B.jsxs("div",{className:"flex h-full min-h-0 flex-col overflow-hidden",children:[B.jsx("div",{className:"border-b border-slate-800 bg-slate-900/70 px-3 py-3 md:px-4",children:B.jsxs("div",{className:"grid grid-cols-1 gap-2 md:grid-cols-2",children:[B.jsxs("label",{className:"flex flex-col gap-1.5",children:[B.jsx("span",{className:"text-[11px] font-semibold uppercase tracking-wider text-slate-400",children:"Provider"}),B.jsxs(Zb,{value:i,onValueChange:H=>a(H),disabled:R,children:[B.jsx(Jb,{className:"h-10",children:B.jsx(Qb,{placeholder:"Select provider"})}),B.jsxs(ey,{children:[B.jsx(bi,{value:"auto",children:"auto"}),B.jsx(bi,{value:"claude",children:"claude"}),B.jsx(bi,{value:"cursor",children:"cursor-agent"}),B.jsx(bi,{value:"opencode",children:"opencode"}),B.jsx(bi,{value:"ollama",children:"ollama"}),B.jsx(bi,{value:"cloud",children:"cloud"})]})]})]}),B.jsxs("label",{className:"flex flex-col gap-1.5",children:[B.jsx("span",{className:"text-[11px] font-semibold uppercase tracking-wider text-slate-400",children:"Model"}),f.length>0?B.jsxs(Zb,{value:s||f[0],onValueChange:H=>u(H),disabled:R,children:[B.jsx(Jb,{className:"h-10",children:B.jsx(Qb,{placeholder:"Select model"})}),B.jsx(ey,{children:f.map(H=>B.jsx(bi,{value:H,children:H},H))})]}):B.jsx("input",{value:s,onChange:H=>u(H.target.value),placeholder:g?"enter model name":"auto/default",disabled:R||!g,className:"h-10 w-full rounded-md border border-slate-700 bg-slate-950 px-3 text-sm text-slate-100"})]})]})}),B.jsxs("div",{className:"flex flex-wrap items-center gap-2 border-b border-slate-800 bg-slate-900/50 px-3 py-2 text-xs text-slate-300 md:px-4",children:[B.jsxs("span",{children:["Resolved: ",S||i]}),B.jsxs(QO,{variant:"secondary",children:["Model: ",s||"default"]}),c&&B.jsxs(QO,{variant:"secondary",children:["Local: ",Object.entries(c).filter(([H,_])=>H!=="cloud"&&_?.installed).map(([H])=>H).join(", ")||"none"]})]}),B.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-3 overflow-y-auto px-3 py-3 md:px-4 md:py-4",children:[F&&B.jsxs(JO,{variant:"destructive",className:"max-w-[92%]",children:[B.jsx(eI,{children:"Pair this browser"}),B.jsx(tI,{children:Q||"Open the pairing URL printed by `skillforce web` to load the token."})]}),x.map((H,_)=>B.jsx("div",{className:`max-w-[92%] rounded-xl px-4 py-3 text-sm leading-6 ${H.role==="user"?"self-end rounded-br-sm bg-indigo-600 text-white":"self-start rounded-bl-sm border border-slate-700 bg-slate-900 text-slate-200"}`,children:B.jsx("div",{className:"wrap-break-word [&_p]:my-1.5 [&_p:first-child]:mt-0 [&_p:last-child]:mb-0 [&_pre]:my-2 [&_pre]:overflow-x-auto [&_pre]:rounded-md [&_pre]:bg-slate-950 [&_pre]:p-3 [&_code]:rounded [&_code]:bg-slate-950 [&_code]:px-1 [&_code]:py-0.5 [&_code]:text-xs [&_strong]:font-semibold",children:z(H.content)})},_)),Z&&B.jsxs(JO,{variant:"destructive",className:"max-w-[90%]",children:[B.jsx(eI,{children:"Connection Error"}),B.jsx(tI,{children:Z})]}),B.jsx("div",{ref:q})]}),B.jsx(uQ,{phase:U,onCommandClick:N,disabled:R||F}),B.jsxs("div",{className:"flex gap-2 border-t border-slate-800 bg-slate-900 px-3 py-2 md:px-4 md:py-3",children:[B.jsx("textarea",{value:D,onChange:H=>O(H.target.value),onKeyDown:he,placeholder:F?"Pair this browser to chat":"Type a message or command... (Enter to send)",disabled:R||F,rows:2,className:"min-h-[44px] flex-1 resize-none rounded-md border border-slate-700 bg-slate-950 px-3 py-2 text-sm text-slate-100 outline-none placeholder:text-slate-500 focus-visible:ring-2 focus-visible:ring-indigo-500"}),B.jsx(Sr,{onClick:()=>re(D),disabled:R||F||!D.trim(),className:"h-auto min-w-11 px-3",title:"Send message",children:R?"...":"▶"})]})]})}function pQ({activeTab:e="lecture",onTabChange:t}){function n(){t?.("lecture")}function r(){t?.("chat")}return B.jsxs("div",{className:"flex shrink-0 border-b border-slate-800 bg-slate-900 md:hidden",children:[B.jsxs(Sr,{variant:"ghost",className:`h-11 flex-1 justify-center rounded-none border-b-2 ${e==="lecture"?"border-indigo-400 text-indigo-300":"border-transparent text-slate-400"}`,onClick:n,"aria-pressed":e==="lecture",children:[B.jsx("span",{children:"📖"}),B.jsx("span",{children:"Lecture"})]}),B.jsxs(Sr,{variant:"ghost",className:`h-11 flex-1 justify-center rounded-none border-b-2 ${e==="chat"?"border-indigo-400 text-indigo-300":"border-transparent text-slate-400"}`,onClick:r,"aria-pressed":e==="chat",children:[B.jsx("span",{children:"💬"}),B.jsx("span",{children:"Chat"})]})]})}function fQ(){return B.jsxs("div",{role:"status",className:"shrink-0 border-b border-amber-700/60 bg-amber-950/80 px-3 py-2 text-center text-xs leading-5 text-amber-100 md:px-5 md:text-sm",children:["This legacy web UI is deprecated. Use"," ",B.jsx("a",{href:"http://localhost:5180",className:"font-semibold text-amber-200 underline underline-offset-2 hover:text-white",children:"Professor Studio"})," ","instead."]})}kz();function hQ(){const[e,t]=L.useState([]),[n,r]=L.useState(null),[i,a]=L.useState("idle"),[s,u]=L.useState("both"),[c,p]=L.useState(""),[f,m]=L.useState(!1);L.useEffect(()=>{const v=()=>{m(window.innerWidth<768),window.innerWidth<768?u("lecture"):u("both")};return v(),window.addEventListener("resize",v),()=>window.removeEventListener("resize",v)},[]),L.useEffect(()=>{g(null);const v=w=>g(w.detail?.slug);return window.addEventListener("refresh-courses",v),()=>window.removeEventListener("refresh-courses",v)},[]);async function g(v=null){try{const w=await iI();if(t(w||[]),!w||w.length===0)return;r(x=>{if(v){const A=w.find(D=>D.slug===v);if(A)return A}return x?w.find(D=>D.slug===x.slug)||x:w[0]})}catch(w){console.error("Failed to load courses:",w)}}function b(v){r(v),a(v?"lecture":"idle")}L.useEffect(()=>{a(n?"lecture":"idle")},[n]);function S(v){u(v)}L.useCallback(v=>{v.courseSlug===n?.slug&&window.dispatchEvent(new CustomEvent("refresh-lecture"))},[n]);const k=s==="both"?"lecture":s;return B.jsxs("div",{className:"flex h-full min-h-0 flex-1 flex-col overflow-hidden bg-slate-950 text-slate-100",children:[B.jsx(fQ,{}),B.jsx(K3,{selectedCourse:n,onCourseSelect:b}),f&&B.jsx(pQ,{activeTab:s==="both"?"lecture":s,onTabChange:S}),B.jsx(X3,{activeTab:s,mobileTab:k,lecturePanel:B.jsx(lQ,{courseSlug:n?.slug,content:c,onLectureUpdate:p}),chatPanel:B.jsx(dQ,{courseSlug:n?.slug,currentPhase:i})})]})}const mQ=gz.createRoot(document.getElementById("root"));mQ.render(B.jsx(gt.StrictMode,{children:B.jsx(hQ,{})}));
|