diff --git a/404.html b/404.html index ceccd5c1..15195f8f 100644 --- a/404.html +++ b/404.html @@ -1,4 +1,4 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file +}

404

This page could not be found.

\ No newline at end of file diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/mississippi-queen/xml.json b/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/mississippi-queen/xml.json deleted file mode 100644 index 9064f94b..00000000 --- a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/mississippi-queen/xml.json +++ /dev/null @@ -1 +0,0 @@ -{"pageProps":{"locale":"de","markdown":"\n# XML-Elemente des Spiels Mississippi Queen\n\nDiese Dokumentation beschreibt die spielspezifischen Elemente des [XML-Protokolls](/xml/protokoll)\nfür das Spiel Mississippi Queen.\n\n## Spielstatus\n\nDie folgende XML-Struktur beschreibt den regelmäßig mitgeteilten Spielstatus,\nder ein Spielfeld aus hexagonalen Feldern mittels [kubischer Koordinaten](https://www.redblobgames.com/grids/hexagons/#coordinates-cube)\nsowie eine Liste der darauf verorteten Schiffe beschreibt.\nDas Spielfeld wird in Segmente unterteilt, wobei jedes Segment durch eine Richtung und ein Zentrum charakterisiert wird.\nDie Cube-Koordinaten ($q$, $r$ und $s$) ermöglichen die eindeutige Positionierung der Segmente im hexagonalen Raster\nund eine einfache Nutzung verschiedener Algorithmen innerhalb dieses Systems.\n\n\n```xml\n\n \n \n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n```\n\n- Die ````-Ebene gibt Auskunft über den aktuellen Spielzustand, einschließlich des Spielzugs (``turn``) und des Teams (``currentTeam``), das gerade am Zug ist.\n- Die ````-Ebene enthält Informationen über das Spielfeld, darunter die Richtung des nächsten Segments (``nextDirection``), um die Strömung zuverlässig zu kalkulieren.\n- Die ````-Ebene enthält eine Liste von Segmenten, die jeweils eine bestimmte Richtung und ein Zentrum haben.\n Jedes Segment enthält 4 Spalten zu je 5 Feldern aus den Feldtypen Wasser, Insel und Passagiere.\n Passagierfelder enhalten zusätzlich eine Richtung des Anliegers und eine Anzahl,\n letztere ändert sich durch Abholung vom Anlieger.\n Es gibt maximal ein Passagierfeld pro Segment.\n- Die ````-Ebene enthält Informationen über Schiffe im Spiel. Jedes Schiff wird durch Teamzugehörigkeit (``team``), Punktzahl (``points``), Blickrichtung (``direction``), Geschwindigkeit (``speed``), Kohlebestand (``coal``), Anzahl der Passagiere (``passengers``) und verbleibende Runden mit freier Bewegung (freeTurns) charakterisiert. Die Position des Schiffs wird durch Cube-Koordinaten ($q$, $r$ und $s$) angegeben.\n\n## Richtungen\n\nDa Mississippi-Queen auf einem hexagonalen Spielfeld gespielt wird,\ngibt es sechs Bewegungsrichtungen:\n\n| Direction | q | r | s |\n|-------------|-----|-----|-----|\n| RIGHT | q+1 | r+0 | s-1 |\n| DOWN_RIGHT | q+0 | r+1 | s-1 |\n| DOWN_LEFT | q-1 | r+1 | s+0 |\n| LEFT | q-1 | r+0 | s+1 |\n| UP_LEFT | q+0 | r-1 | s+1 |\n| UP_RIGHT | q+1 | r-1 | s+0 |\n\n## Spielzug\n\nEin Zug kann wie folgt aussehen:\n```xml\n\n \n \n \n \n \n \n \n \n\n```\n\nEin Zug besteht immer aus einer Liste aus Aktionen.\nDie Reihenfolge bestimmt, in welcher Reihenfolge die Aktionen ausgeführt werden.\nInsbesondere muss die Beschleunigungsaktion immer als **erstes** kommen.\n\n## Spielergebnis\n\n```xml\n\n \n \n SUM\n true\n \n \n AVERAGE\n true\n \n \n AVERAGE\n true\n \n \n \n \n \n \n 0\n 0\n 0\n \n \n \n \n \n 2\n 2\n 0\n \n \n \n \n\n```\n\nIn diesem Beispiel erhält Alice aufgrund der Regelverletzung keine Punkte und Bob (Team Zwei) gewinnt.\nDas Feld `winner.team` fehlt bei einem Unentschieden.\nEin nicht-Vorhandensein des `winner`-tags ist ebenfalls als Unentschieden zu werten.\n","data":{"name":"XML-Elemente","index":2},"navigation":{"next":{"name":"regeln","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/ostseeschach/regeln.md","href":"/spiele/ostseeschach/regeln"},"current":{"name":"XML-Elemente","index":2,"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/mississippi-queen/xml.md","href":"/spiele/mississippi-queen/xml"},"previous":{"name":"Spielregeln","index":1,"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/mississippi-queen/regeln.md","href":"/spiele/mississippi-queen/regeln"},"sections":[{"name":"Spiele","index":1,"virtual":true,"isEmpty":true,"pages":[],"sections":[{"name":"Blokus","hide":true,"isEmpty":false,"pages":[],"sections":[{"name":"Spielregeln","hide":true,"isEmpty":true,"pages":[{"name":"content","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/blokus/spielregeln/content.md","href":"/spiele/blokus/spielregeln/content"},{"name":"regeln","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/blokus/spielregeln/regeln.md","href":"/spiele/blokus/spielregeln/regeln"}],"sections":[],"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/blokus/spielregeln/index.md","href":"/spiele/blokus/spielregeln"},{"name":"XML-Dokumentation","hide":true,"isEmpty":true,"pages":[{"name":"einleitung-xml","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/blokus/xml-dokumentation/einleitung-xml.md","href":"/spiele/blokus/xml-dokumentation/einleitung-xml"},{"name":"spiel-betreten","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/blokus/xml-dokumentation/spiel-betreten.md","href":"/spiele/blokus/xml-dokumentation/spiel-betreten"},{"name":"spiel-verlassen","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/blokus/xml-dokumentation/spiel-verlassen.md","href":"/spiele/blokus/xml-dokumentation/spiel-verlassen"},{"name":"spielergebnis","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/blokus/xml-dokumentation/spielergebnis.md","href":"/spiele/blokus/xml-dokumentation/spielergebnis"},{"name":"spielstatus","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/blokus/xml-dokumentation/spielstatus.md","href":"/spiele/blokus/xml-dokumentation/spielstatus"},{"name":"spielsteine","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/blokus/xml-dokumentation/spielsteine.md","href":"/spiele/blokus/xml-dokumentation/spielsteine"},{"name":"spielverlauf","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/blokus/xml-dokumentation/spielverlauf.md","href":"/spiele/blokus/xml-dokumentation/spielverlauf"},{"name":"xml-dokumentation","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/blokus/xml-dokumentation/xml-dokumentation.md","href":"/spiele/blokus/xml-dokumentation/xml-dokumentation"},{"name":"zuege-senden","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/blokus/xml-dokumentation/zuege-senden.md","href":"/spiele/blokus/xml-dokumentation/zuege-senden"},{"name":"zug-anforderung","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/blokus/xml-dokumentation/zug-anforderung.md","href":"/spiele/blokus/xml-dokumentation/zug-anforderung"}],"sections":[],"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/blokus/xml-dokumentation/index.md","href":"/spiele/blokus/xml-dokumentation"}],"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/blokus/index.md","href":"/spiele/blokus"},{"name":"Hase und Igel","hide":true,"isEmpty":false,"pages":[],"sections":[{"name":"Spielregeln","hide":true,"isEmpty":true,"pages":[{"name":"beispiel","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/spielregeln/beispiel.md","href":"/spiele/hase-und-igel/spielregeln/beispiel"},{"name":"felder","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/spielregeln/felder.md","href":"/spiele/hase-und-igel/spielregeln/felder"},{"name":"regeln","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/spielregeln/regeln.md","href":"/spiele/hase-und-igel/spielregeln/regeln"},{"name":"spielbeginn","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/spielregeln/spielbeginn.md","href":"/spiele/hase-und-igel/spielregeln/spielbeginn"},{"name":"spielende","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/spielregeln/spielende.md","href":"/spiele/hase-und-igel/spielregeln/spielende"},{"name":"zuege","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/spielregeln/zuege.md","href":"/spiele/hase-und-igel/spielregeln/zuege"}],"sections":[],"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/spielregeln/index.md","href":"/spiele/hase-und-igel/spielregeln"},{"name":"Tutorial","hide":true,"isEmpty":true,"pages":[{"name":"board","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/tutorial/board.md","href":"/spiele/hase-und-igel/tutorial/board"},{"name":"game-rule-logic","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/tutorial/game-rule-logic.md","href":"/spiele/hase-und-igel/tutorial/game-rule-logic"},{"name":"player","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/tutorial/player.md","href":"/spiele/hase-und-igel/tutorial/player"},{"name":"start","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/tutorial/start.md","href":"/spiele/hase-und-igel/tutorial/start"},{"name":"tutorial","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/tutorial/tutorial.md","href":"/spiele/hase-und-igel/tutorial/tutorial"}],"sections":[],"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/tutorial/index.md","href":"/spiele/hase-und-igel/tutorial"},{"name":"XML-Dokumentation","hide":true,"isEmpty":true,"pages":[{"name":"einleitung-xml","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/xml-dokumentation/einleitung-xml.md","href":"/spiele/hase-und-igel/xml-dokumentation/einleitung-xml"},{"name":"fehler","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/xml-dokumentation/fehler.md","href":"/spiele/hase-und-igel/xml-dokumentation/fehler"},{"name":"spiel-betreten","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/xml-dokumentation/spiel-betreten.md","href":"/spiele/hase-und-igel/xml-dokumentation/spiel-betreten"},{"name":"spiel-verlassen","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/xml-dokumentation/spiel-verlassen.md","href":"/spiele/hase-und-igel/xml-dokumentation/spiel-verlassen"},{"name":"spielergebnis","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/xml-dokumentation/spielergebnis.md","href":"/spiele/hase-und-igel/xml-dokumentation/spielergebnis"},{"name":"spielstatus","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/xml-dokumentation/spielstatus.md","href":"/spiele/hase-und-igel/xml-dokumentation/spielstatus"},{"name":"spielverlauf","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/xml-dokumentation/spielverlauf.md","href":"/spiele/hase-und-igel/xml-dokumentation/spielverlauf"},{"name":"xml-dokumentation","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/xml-dokumentation/xml-dokumentation.md","href":"/spiele/hase-und-igel/xml-dokumentation/xml-dokumentation"},{"name":"zuege-senden","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/xml-dokumentation/zuege-senden.md","href":"/spiele/hase-und-igel/xml-dokumentation/zuege-senden"},{"name":"zug-anforderung","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/xml-dokumentation/zug-anforderung.md","href":"/spiele/hase-und-igel/xml-dokumentation/zug-anforderung"}],"sections":[],"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/xml-dokumentation/index.md","href":"/spiele/hase-und-igel/xml-dokumentation"}],"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/index.md","href":"/spiele/hase-und-igel"},{"name":"Hey, Danke für den Fisch!","hide":true,"expanded":true,"isEmpty":false,"pages":[{"name":"Spielregeln","index":1,"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/penguins/regeln.md","href":"/spiele/penguins/regeln"},{"name":"XML-Schnittstelle","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/penguins/xml.md","href":"/spiele/penguins/xml"}],"sections":[],"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/penguins/index.md","href":"/spiele/penguins"},{"name":"Hive","hide":true,"isEmpty":false,"pages":[],"sections":[{"name":"Spielregeln","hide":true,"isEmpty":true,"pages":[{"name":"regeln","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hive/spielregeln/regeln.md","href":"/spiele/hive/spielregeln/regeln"}],"sections":[],"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hive/spielregeln/index.md","href":"/spiele/hive/spielregeln"},{"name":"XML-Dokumention","hide":true,"isEmpty":true,"pages":[{"name":"einleitung-xml","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hive/xml-dokumentation/einleitung-xml.md","href":"/spiele/hive/xml-dokumentation/einleitung-xml"},{"name":"fehler","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hive/xml-dokumentation/fehler.md","href":"/spiele/hive/xml-dokumentation/fehler"},{"name":"spiel-betreten","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hive/xml-dokumentation/spiel-betreten.md","href":"/spiele/hive/xml-dokumentation/spiel-betreten"},{"name":"spiel-verlassen","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hive/xml-dokumentation/spiel-verlassen.md","href":"/spiele/hive/xml-dokumentation/spiel-verlassen"},{"name":"spielergebnis","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hive/xml-dokumentation/spielergebnis.md","href":"/spiele/hive/xml-dokumentation/spielergebnis"},{"name":"spielstatus","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hive/xml-dokumentation/spielstatus.md","href":"/spiele/hive/xml-dokumentation/spielstatus"},{"name":"spielverlauf","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hive/xml-dokumentation/spielverlauf.md","href":"/spiele/hive/xml-dokumentation/spielverlauf"},{"name":"xml-dokumentation","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hive/xml-dokumentation/xml-dokumentation.md","href":"/spiele/hive/xml-dokumentation/xml-dokumentation"},{"name":"zuege-senden","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hive/xml-dokumentation/zuege-senden.md","href":"/spiele/hive/xml-dokumentation/zuege-senden"},{"name":"zug-anforderung","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hive/xml-dokumentation/zug-anforderung.md","href":"/spiele/hive/xml-dokumentation/zug-anforderung"}],"sections":[],"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hive/xml-dokumentation/index.md","href":"/spiele/hive/xml-dokumentation"}],"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hive/index.md","href":"/spiele/hive"},{"name":"Mississippi Queen","expanded":true,"isEmpty":false,"pages":[{"name":"Spielregeln","index":1,"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/mississippi-queen/regeln.md","href":"/spiele/mississippi-queen/regeln"},{"name":"XML-Elemente","index":2,"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/mississippi-queen/xml.md","href":"/spiele/mississippi-queen/xml"}],"sections":[],"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/mississippi-queen/index.md","href":"/spiele/mississippi-queen"},{"name":"Ostseeschach","hide":true,"isEmpty":false,"pages":[{"name":"regeln","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/ostseeschach/regeln.md","href":"/spiele/ostseeschach/regeln"},{"name":"xml-dokumentation","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/ostseeschach/xml-dokumentation.md","href":"/spiele/ostseeschach/xml-dokumentation"}],"sections":[],"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/ostseeschach/index.md","href":"/spiele/ostseeschach"},{"name":"Piranhas","hide":true,"isEmpty":false,"pages":[],"sections":[{"name":"Spielregeln","hide":true,"isEmpty":true,"pages":[{"name":"regeln","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/piranhas/spielregeln/regeln.md","href":"/spiele/piranhas/spielregeln/regeln"}],"sections":[],"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/piranhas/spielregeln/index.md","href":"/spiele/piranhas/spielregeln"},{"name":"XML-Dokumentation","hide":true,"isEmpty":true,"pages":[{"name":"einleitung-xml","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/piranhas/xml-dokumentation/einleitung-xml.md","href":"/spiele/piranhas/xml-dokumentation/einleitung-xml"},{"name":"fehler","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/piranhas/xml-dokumentation/fehler.md","href":"/spiele/piranhas/xml-dokumentation/fehler"},{"name":"spiel-betreten","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/piranhas/xml-dokumentation/spiel-betreten.md","href":"/spiele/piranhas/xml-dokumentation/spiel-betreten"},{"name":"spiel-verlassen","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/piranhas/xml-dokumentation/spiel-verlassen.md","href":"/spiele/piranhas/xml-dokumentation/spiel-verlassen"},{"name":"spielergebnis","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/piranhas/xml-dokumentation/spielergebnis.md","href":"/spiele/piranhas/xml-dokumentation/spielergebnis"},{"name":"spielstatus","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/piranhas/xml-dokumentation/spielstatus.md","href":"/spiele/piranhas/xml-dokumentation/spielstatus"},{"name":"spielverlauf","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/piranhas/xml-dokumentation/spielverlauf.md","href":"/spiele/piranhas/xml-dokumentation/spielverlauf"},{"name":"xml-dokumentation","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/piranhas/xml-dokumentation/xml-dokumentation.md","href":"/spiele/piranhas/xml-dokumentation/xml-dokumentation"},{"name":"zuege-senden","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/piranhas/xml-dokumentation/zuege-senden.md","href":"/spiele/piranhas/xml-dokumentation/zuege-senden"},{"name":"zug-anforderung","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/piranhas/xml-dokumentation/zug-anforderung.md","href":"/spiele/piranhas/xml-dokumentation/zug-anforderung"}],"sections":[],"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/piranhas/xml-dokumentation/index.md","href":"/spiele/piranhas/xml-dokumentation"}],"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/piranhas/index.md","href":"/spiele/piranhas"}],"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/index.md","href":"/spiele"},{"name":"Entwicklung eines Computerspielers","index":2,"isEmpty":false,"pages":[{"name":"Das Spiel kennenlernen","index":1,"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/entwicklung/kennenlernen.md","href":"/entwicklung/kennenlernen"},{"name":"Objektorientierte Programmierung","index":3,"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/entwicklung/einfuehrung-oop.md","href":"/entwicklung/einfuehrung-oop"},{"name":"Sauberer Programmierstil","index":4,"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/entwicklung/sauberer-programmierstil.md","href":"/entwicklung/sauberer-programmierstil"},{"name":"Installation von Java","index":5,"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/entwicklung/installation-von-java.md","href":"/entwicklung/installation-von-java"},{"name":"Einrichtung der Entwicklungsumgebung","index":6,"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/entwicklung/einrichtung-der-entwicklungsumgebung.md","href":"/entwicklung/einrichtung-der-entwicklungsumgebung"},{"name":"Bedienung von Eclipse","index":7,"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/entwicklung/bedienung-von-eclipse.md","href":"/entwicklung/bedienung-von-eclipse"},{"name":"Spielervorlage erweitern","index":7,"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/entwicklung/simpleclient-erweitern.md","href":"/entwicklung/simpleclient-erweitern"},{"name":"Idee implementieren","index":8,"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/entwicklung/eine-idee-implementieren.md","href":"/entwicklung/eine-idee-implementieren"},{"name":"Computerspieler abgabefertig machen","index":9,"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/entwicklung/abgabe.md","href":"/entwicklung/abgabe"}],"sections":[],"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/entwicklung/index.md","href":"/entwicklung"},{"name":"Allgemeine XML-Dokumentation","index":4,"isEmpty":true,"pages":[{"name":"Einführung in XML","index":1,"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/xml/intro.md","href":"/xml/intro"},{"name":"XML-Protokoll","index":2,"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/xml/protokoll.md","href":"/xml/protokoll"},{"name":"Verwaltung von Spielen mittels authentifiziertem Client","index":3,"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/xml/administration.md","href":"/xml/administration"}],"sections":[],"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/xml/index.md","href":"/xml"}],"pages":[{"name":"Überblick","index":1,"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/index.md","href":"/"},{"name":"Technische Grundlagen","index":2,"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/glossar.md","href":"/glossar"},{"name":"Die Software-Challenge","index":3,"expanded":true,"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/wettbewerb.md","href":"/wettbewerb"},{"name":"F.A.Q.","index":4,"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/faq.md","href":"/faq"}]}},"__N_SSG":true} \ No newline at end of file diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/entwicklung.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/entwicklung.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/entwicklung.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/entwicklung.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/entwicklung/abgabe.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/entwicklung/abgabe.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/entwicklung/abgabe.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/entwicklung/abgabe.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/entwicklung/bedienung-von-eclipse.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/entwicklung/bedienung-von-eclipse.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/entwicklung/bedienung-von-eclipse.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/entwicklung/bedienung-von-eclipse.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/entwicklung/eine-idee-implementieren.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/entwicklung/eine-idee-implementieren.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/entwicklung/eine-idee-implementieren.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/entwicklung/eine-idee-implementieren.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/entwicklung/einfuehrung-oop.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/entwicklung/einfuehrung-oop.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/entwicklung/einfuehrung-oop.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/entwicklung/einfuehrung-oop.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/entwicklung/einrichtung-der-entwicklungsumgebung.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/entwicklung/einrichtung-der-entwicklungsumgebung.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/entwicklung/einrichtung-der-entwicklungsumgebung.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/entwicklung/einrichtung-der-entwicklungsumgebung.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/entwicklung/installation-von-java.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/entwicklung/installation-von-java.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/entwicklung/installation-von-java.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/entwicklung/installation-von-java.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/entwicklung/kennenlernen.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/entwicklung/kennenlernen.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/entwicklung/kennenlernen.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/entwicklung/kennenlernen.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/entwicklung/sauberer-programmierstil.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/entwicklung/sauberer-programmierstil.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/entwicklung/sauberer-programmierstil.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/entwicklung/sauberer-programmierstil.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/entwicklung/simpleclient-erweitern.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/entwicklung/simpleclient-erweitern.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/entwicklung/simpleclient-erweitern.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/entwicklung/simpleclient-erweitern.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/faq.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/faq.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/faq.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/faq.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/glossar.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/glossar.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/glossar.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/glossar.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/glossary.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/glossary.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/glossary.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/glossary.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/glossary/contest.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/glossary/contest.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/glossary/contest.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/glossary/contest.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/glossary/player.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/glossary/player.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/glossary/player.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/glossary/player.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/glossary/server.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/glossary/server.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/glossary/server.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/glossary/server.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/index.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/index.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/index.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/index.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/blokus.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/blokus.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/blokus.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/blokus.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/blokus/spielregeln.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/blokus/spielregeln.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/blokus/spielregeln.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/blokus/spielregeln.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/blokus/spielregeln/content.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/blokus/spielregeln/content.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/blokus/spielregeln/content.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/blokus/spielregeln/content.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/blokus/spielregeln/regeln.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/blokus/spielregeln/regeln.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/blokus/spielregeln/regeln.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/blokus/spielregeln/regeln.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/blokus/xml-dokumentation.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/blokus/xml-dokumentation.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/blokus/xml-dokumentation.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/blokus/xml-dokumentation.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/blokus/xml-dokumentation/einleitung-xml.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/blokus/xml-dokumentation/einleitung-xml.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/blokus/xml-dokumentation/einleitung-xml.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/blokus/xml-dokumentation/einleitung-xml.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/blokus/xml-dokumentation/spiel-betreten.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/blokus/xml-dokumentation/spiel-betreten.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/blokus/xml-dokumentation/spiel-betreten.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/blokus/xml-dokumentation/spiel-betreten.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/blokus/xml-dokumentation/spiel-verlassen.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/blokus/xml-dokumentation/spiel-verlassen.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/blokus/xml-dokumentation/spiel-verlassen.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/blokus/xml-dokumentation/spiel-verlassen.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/blokus/xml-dokumentation/spielergebnis.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/blokus/xml-dokumentation/spielergebnis.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/blokus/xml-dokumentation/spielergebnis.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/blokus/xml-dokumentation/spielergebnis.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/blokus/xml-dokumentation/spielstatus.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/blokus/xml-dokumentation/spielstatus.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/blokus/xml-dokumentation/spielstatus.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/blokus/xml-dokumentation/spielstatus.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/blokus/xml-dokumentation/spielsteine.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/blokus/xml-dokumentation/spielsteine.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/blokus/xml-dokumentation/spielsteine.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/blokus/xml-dokumentation/spielsteine.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/blokus/xml-dokumentation/spielverlauf.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/blokus/xml-dokumentation/spielverlauf.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/blokus/xml-dokumentation/spielverlauf.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/blokus/xml-dokumentation/spielverlauf.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/blokus/xml-dokumentation/xml-dokumentation.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/blokus/xml-dokumentation/xml-dokumentation.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/blokus/xml-dokumentation/xml-dokumentation.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/blokus/xml-dokumentation/xml-dokumentation.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/blokus/xml-dokumentation/zuege-senden.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/blokus/xml-dokumentation/zuege-senden.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/blokus/xml-dokumentation/zuege-senden.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/blokus/xml-dokumentation/zuege-senden.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/blokus/xml-dokumentation/zug-anforderung.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/blokus/xml-dokumentation/zug-anforderung.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/blokus/xml-dokumentation/zug-anforderung.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/blokus/xml-dokumentation/zug-anforderung.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel/spielregeln.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel/spielregeln.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel/spielregeln.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel/spielregeln.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel/spielregeln/beispiel.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel/spielregeln/beispiel.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel/spielregeln/beispiel.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel/spielregeln/beispiel.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel/spielregeln/felder.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel/spielregeln/felder.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel/spielregeln/felder.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel/spielregeln/felder.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel/spielregeln/regeln.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel/spielregeln/regeln.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel/spielregeln/regeln.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel/spielregeln/regeln.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel/spielregeln/spielbeginn.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel/spielregeln/spielbeginn.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel/spielregeln/spielbeginn.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel/spielregeln/spielbeginn.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel/spielregeln/spielende.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel/spielregeln/spielende.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel/spielregeln/spielende.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel/spielregeln/spielende.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel/spielregeln/zuege.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel/spielregeln/zuege.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel/spielregeln/zuege.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel/spielregeln/zuege.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel/tutorial.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel/tutorial.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel/tutorial.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel/tutorial.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel/tutorial/board.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel/tutorial/board.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel/tutorial/board.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel/tutorial/board.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel/tutorial/game-rule-logic.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel/tutorial/game-rule-logic.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel/tutorial/game-rule-logic.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel/tutorial/game-rule-logic.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel/tutorial/player.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel/tutorial/player.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel/tutorial/player.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel/tutorial/player.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel/tutorial/start.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel/tutorial/start.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel/tutorial/start.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel/tutorial/start.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel/tutorial/tutorial.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel/tutorial/tutorial.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel/tutorial/tutorial.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel/tutorial/tutorial.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel/xml-dokumentation.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel/xml-dokumentation.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel/xml-dokumentation.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel/xml-dokumentation.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel/xml-dokumentation/einleitung-xml.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel/xml-dokumentation/einleitung-xml.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel/xml-dokumentation/einleitung-xml.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel/xml-dokumentation/einleitung-xml.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel/xml-dokumentation/fehler.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel/xml-dokumentation/fehler.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel/xml-dokumentation/fehler.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel/xml-dokumentation/fehler.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel/xml-dokumentation/spiel-betreten.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel/xml-dokumentation/spiel-betreten.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel/xml-dokumentation/spiel-betreten.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel/xml-dokumentation/spiel-betreten.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel/xml-dokumentation/spiel-verlassen.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel/xml-dokumentation/spiel-verlassen.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel/xml-dokumentation/spiel-verlassen.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel/xml-dokumentation/spiel-verlassen.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel/xml-dokumentation/spielergebnis.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel/xml-dokumentation/spielergebnis.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel/xml-dokumentation/spielergebnis.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel/xml-dokumentation/spielergebnis.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel/xml-dokumentation/spielstatus.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel/xml-dokumentation/spielstatus.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel/xml-dokumentation/spielstatus.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel/xml-dokumentation/spielstatus.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel/xml-dokumentation/spielverlauf.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel/xml-dokumentation/spielverlauf.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel/xml-dokumentation/spielverlauf.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel/xml-dokumentation/spielverlauf.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel/xml-dokumentation/xml-dokumentation.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel/xml-dokumentation/xml-dokumentation.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel/xml-dokumentation/xml-dokumentation.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel/xml-dokumentation/xml-dokumentation.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel/xml-dokumentation/zuege-senden.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel/xml-dokumentation/zuege-senden.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel/xml-dokumentation/zuege-senden.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel/xml-dokumentation/zuege-senden.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel/xml-dokumentation/zug-anforderung.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel/xml-dokumentation/zug-anforderung.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hase-und-igel/xml-dokumentation/zug-anforderung.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hase-und-igel/xml-dokumentation/zug-anforderung.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hive.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hive.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hive.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hive.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hive/spielregeln.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hive/spielregeln.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hive/spielregeln.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hive/spielregeln.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hive/spielregeln/regeln.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hive/spielregeln/regeln.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hive/spielregeln/regeln.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hive/spielregeln/regeln.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hive/xml-dokumentation.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hive/xml-dokumentation.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hive/xml-dokumentation.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hive/xml-dokumentation.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hive/xml-dokumentation/einleitung-xml.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hive/xml-dokumentation/einleitung-xml.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hive/xml-dokumentation/einleitung-xml.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hive/xml-dokumentation/einleitung-xml.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hive/xml-dokumentation/fehler.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hive/xml-dokumentation/fehler.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hive/xml-dokumentation/fehler.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hive/xml-dokumentation/fehler.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hive/xml-dokumentation/spiel-betreten.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hive/xml-dokumentation/spiel-betreten.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hive/xml-dokumentation/spiel-betreten.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hive/xml-dokumentation/spiel-betreten.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hive/xml-dokumentation/spiel-verlassen.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hive/xml-dokumentation/spiel-verlassen.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hive/xml-dokumentation/spiel-verlassen.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hive/xml-dokumentation/spiel-verlassen.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hive/xml-dokumentation/spielergebnis.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hive/xml-dokumentation/spielergebnis.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hive/xml-dokumentation/spielergebnis.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hive/xml-dokumentation/spielergebnis.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hive/xml-dokumentation/spielstatus.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hive/xml-dokumentation/spielstatus.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hive/xml-dokumentation/spielstatus.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hive/xml-dokumentation/spielstatus.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hive/xml-dokumentation/spielverlauf.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hive/xml-dokumentation/spielverlauf.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hive/xml-dokumentation/spielverlauf.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hive/xml-dokumentation/spielverlauf.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hive/xml-dokumentation/xml-dokumentation.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hive/xml-dokumentation/xml-dokumentation.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hive/xml-dokumentation/xml-dokumentation.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hive/xml-dokumentation/xml-dokumentation.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hive/xml-dokumentation/zuege-senden.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hive/xml-dokumentation/zuege-senden.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hive/xml-dokumentation/zuege-senden.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hive/xml-dokumentation/zuege-senden.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hive/xml-dokumentation/zug-anforderung.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hive/xml-dokumentation/zug-anforderung.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/hive/xml-dokumentation/zug-anforderung.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/hive/xml-dokumentation/zug-anforderung.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/mississippi-queen.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/mississippi-queen.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/mississippi-queen.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/mississippi-queen.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/mississippi-queen/regeln.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/mississippi-queen/regeln.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/mississippi-queen/regeln.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/mississippi-queen/regeln.json diff --git a/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/mississippi-queen/xml.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/mississippi-queen/xml.json new file mode 100644 index 00000000..f80cd11c --- /dev/null +++ b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/mississippi-queen/xml.json @@ -0,0 +1 @@ +{"pageProps":{"locale":"de","markdown":"\n# XML-Elemente des Spiels Mississippi Queen\n\nDiese Dokumentation beschreibt die spielspezifischen Elemente des [XML-Protokolls](/xml/protokoll)\nfür das Spiel Mississippi Queen.\n\n## Spielstatus\n\nDie folgende XML-Struktur beschreibt den regelmäßig mitgeteilten Spielstatus,\nder ein Spielfeld aus hexagonalen Feldern mittels [kubischer Koordinaten](https://www.redblobgames.com/grids/hexagons/#coordinates-cube)\nsowie eine Liste der darauf verorteten Schiffe beschreibt.\nDas Spielfeld wird in Segmente unterteilt, wobei jedes Segment durch eine Richtung und ein Zentrum charakterisiert wird.\nDie Cube-Koordinaten ($q$, $r$ und $s$) ermöglichen die eindeutige Positionierung der Segmente im hexagonalen Raster\nund eine einfache Nutzung verschiedener Algorithmen innerhalb dieses Systems.\n\n\n```xml\n\n \n \n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n```\n\n- Die ````-Ebene gibt Auskunft über den aktuellen Spielzustand, einschließlich des Spielzugs (``turn``) und des Teams (``currentTeam``), das gerade am Zug ist.\n- Die ````-Ebene enthält Informationen über das Spielfeld, darunter die Richtung des nächsten Segments (``nextDirection``), um die Strömung zuverlässig zu kalkulieren.\n- Die ````-Ebene enthält eine Liste von Segmenten, die jeweils eine bestimmte Richtung und ein Zentrum haben.\n Jedes Segment enthält 4 Spalten zu je 5 Feldern aus den Feldtypen Wasser, Insel und Passagiere.\n Passagierfelder enhalten zusätzlich eine Richtung des Anliegers und eine Anzahl,\n letztere ändert sich durch Abholung vom Anlieger.\n Es gibt maximal ein Passagierfeld pro Segment.\n- Die ````-Ebene enthält Informationen über Schiffe im Spiel.\n Jedes Schiff wird durch Teamzugehörigkeit (``team``), Punktzahl (``points``), Blickrichtung (``direction``), Geschwindigkeit (``speed``), Kohlebestand (``coal``), Anzahl der Passagiere (``passengers``) und freie Derhungen im kommenden Zug (`freeTurns`) charakterisiert. Die Position des Schiffs wird durch Cube-Koordinaten ($q$, $r$ und $s$) angegeben. Der Wahrheitswert `stuck` gibt an, ob das Schiff festgefahren und damit ausgeschieden ist.\n\n## Richtungen\n\nDa Mississippi-Queen auf einem hexagonalen Spielfeld gespielt wird,\ngibt es sechs Bewegungsrichtungen:\n\n| Direction | q | r | s |\n|-------------|-----|-----|-----|\n| RIGHT | q+1 | r+0 | s-1 |\n| DOWN_RIGHT | q+0 | r+1 | s-1 |\n| DOWN_LEFT | q-1 | r+1 | s+0 |\n| LEFT | q-1 | r+0 | s+1 |\n| UP_LEFT | q+0 | r-1 | s+1 |\n| UP_RIGHT | q+1 | r-1 | s+0 |\n\n## Spielzug\n\nEin Zug kann wie folgt aussehen:\n```xml\n\n \n \n \n \n \n \n \n \n\n```\n\nEin Zug besteht immer aus einer Liste aus Aktionen.\nDie Reihenfolge bestimmt, in welcher Reihenfolge die Aktionen ausgeführt werden.\nInsbesondere muss die Beschleunigungsaktion immer als **erstes** kommen.\n\n## Spielergebnis\n\n```xml\n\n \n \n SUM\n true\n \n \n AVERAGE\n true\n \n \n AVERAGE\n true\n \n \n \n \n \n \n 0\n 0\n 0\n \n \n \n \n \n 2\n 2\n 0\n \n \n \n \n\n```\n\nIn diesem Beispiel erhält Alice aufgrund der Regelverletzung keine Punkte und Bob (Team Zwei) gewinnt.\nDas Feld `winner.team` fehlt bei einem Unentschieden.\nEin nicht-Vorhandensein des `winner`-tags ist ebenfalls als Unentschieden zu werten.\n","data":{"name":"XML-Elemente","index":2},"navigation":{"next":{"name":"regeln","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/ostseeschach/regeln.md","href":"/spiele/ostseeschach/regeln"},"current":{"name":"XML-Elemente","index":2,"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/mississippi-queen/xml.md","href":"/spiele/mississippi-queen/xml"},"previous":{"name":"Spielregeln","index":1,"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/mississippi-queen/regeln.md","href":"/spiele/mississippi-queen/regeln"},"sections":[{"name":"Spiele","index":1,"virtual":true,"isEmpty":true,"pages":[],"sections":[{"name":"Blokus","hide":true,"isEmpty":false,"pages":[],"sections":[{"name":"Spielregeln","hide":true,"isEmpty":true,"pages":[{"name":"content","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/blokus/spielregeln/content.md","href":"/spiele/blokus/spielregeln/content"},{"name":"regeln","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/blokus/spielregeln/regeln.md","href":"/spiele/blokus/spielregeln/regeln"}],"sections":[],"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/blokus/spielregeln/index.md","href":"/spiele/blokus/spielregeln"},{"name":"XML-Dokumentation","hide":true,"isEmpty":true,"pages":[{"name":"einleitung-xml","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/blokus/xml-dokumentation/einleitung-xml.md","href":"/spiele/blokus/xml-dokumentation/einleitung-xml"},{"name":"spiel-betreten","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/blokus/xml-dokumentation/spiel-betreten.md","href":"/spiele/blokus/xml-dokumentation/spiel-betreten"},{"name":"spiel-verlassen","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/blokus/xml-dokumentation/spiel-verlassen.md","href":"/spiele/blokus/xml-dokumentation/spiel-verlassen"},{"name":"spielergebnis","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/blokus/xml-dokumentation/spielergebnis.md","href":"/spiele/blokus/xml-dokumentation/spielergebnis"},{"name":"spielstatus","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/blokus/xml-dokumentation/spielstatus.md","href":"/spiele/blokus/xml-dokumentation/spielstatus"},{"name":"spielsteine","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/blokus/xml-dokumentation/spielsteine.md","href":"/spiele/blokus/xml-dokumentation/spielsteine"},{"name":"spielverlauf","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/blokus/xml-dokumentation/spielverlauf.md","href":"/spiele/blokus/xml-dokumentation/spielverlauf"},{"name":"xml-dokumentation","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/blokus/xml-dokumentation/xml-dokumentation.md","href":"/spiele/blokus/xml-dokumentation/xml-dokumentation"},{"name":"zuege-senden","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/blokus/xml-dokumentation/zuege-senden.md","href":"/spiele/blokus/xml-dokumentation/zuege-senden"},{"name":"zug-anforderung","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/blokus/xml-dokumentation/zug-anforderung.md","href":"/spiele/blokus/xml-dokumentation/zug-anforderung"}],"sections":[],"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/blokus/xml-dokumentation/index.md","href":"/spiele/blokus/xml-dokumentation"}],"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/blokus/index.md","href":"/spiele/blokus"},{"name":"Hase und Igel","hide":true,"isEmpty":false,"pages":[],"sections":[{"name":"Spielregeln","hide":true,"isEmpty":true,"pages":[{"name":"beispiel","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/spielregeln/beispiel.md","href":"/spiele/hase-und-igel/spielregeln/beispiel"},{"name":"felder","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/spielregeln/felder.md","href":"/spiele/hase-und-igel/spielregeln/felder"},{"name":"regeln","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/spielregeln/regeln.md","href":"/spiele/hase-und-igel/spielregeln/regeln"},{"name":"spielbeginn","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/spielregeln/spielbeginn.md","href":"/spiele/hase-und-igel/spielregeln/spielbeginn"},{"name":"spielende","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/spielregeln/spielende.md","href":"/spiele/hase-und-igel/spielregeln/spielende"},{"name":"zuege","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/spielregeln/zuege.md","href":"/spiele/hase-und-igel/spielregeln/zuege"}],"sections":[],"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/spielregeln/index.md","href":"/spiele/hase-und-igel/spielregeln"},{"name":"Tutorial","hide":true,"isEmpty":true,"pages":[{"name":"board","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/tutorial/board.md","href":"/spiele/hase-und-igel/tutorial/board"},{"name":"game-rule-logic","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/tutorial/game-rule-logic.md","href":"/spiele/hase-und-igel/tutorial/game-rule-logic"},{"name":"player","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/tutorial/player.md","href":"/spiele/hase-und-igel/tutorial/player"},{"name":"start","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/tutorial/start.md","href":"/spiele/hase-und-igel/tutorial/start"},{"name":"tutorial","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/tutorial/tutorial.md","href":"/spiele/hase-und-igel/tutorial/tutorial"}],"sections":[],"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/tutorial/index.md","href":"/spiele/hase-und-igel/tutorial"},{"name":"XML-Dokumentation","hide":true,"isEmpty":true,"pages":[{"name":"einleitung-xml","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/xml-dokumentation/einleitung-xml.md","href":"/spiele/hase-und-igel/xml-dokumentation/einleitung-xml"},{"name":"fehler","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/xml-dokumentation/fehler.md","href":"/spiele/hase-und-igel/xml-dokumentation/fehler"},{"name":"spiel-betreten","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/xml-dokumentation/spiel-betreten.md","href":"/spiele/hase-und-igel/xml-dokumentation/spiel-betreten"},{"name":"spiel-verlassen","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/xml-dokumentation/spiel-verlassen.md","href":"/spiele/hase-und-igel/xml-dokumentation/spiel-verlassen"},{"name":"spielergebnis","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/xml-dokumentation/spielergebnis.md","href":"/spiele/hase-und-igel/xml-dokumentation/spielergebnis"},{"name":"spielstatus","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/xml-dokumentation/spielstatus.md","href":"/spiele/hase-und-igel/xml-dokumentation/spielstatus"},{"name":"spielverlauf","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/xml-dokumentation/spielverlauf.md","href":"/spiele/hase-und-igel/xml-dokumentation/spielverlauf"},{"name":"xml-dokumentation","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/xml-dokumentation/xml-dokumentation.md","href":"/spiele/hase-und-igel/xml-dokumentation/xml-dokumentation"},{"name":"zuege-senden","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/xml-dokumentation/zuege-senden.md","href":"/spiele/hase-und-igel/xml-dokumentation/zuege-senden"},{"name":"zug-anforderung","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/xml-dokumentation/zug-anforderung.md","href":"/spiele/hase-und-igel/xml-dokumentation/zug-anforderung"}],"sections":[],"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/xml-dokumentation/index.md","href":"/spiele/hase-und-igel/xml-dokumentation"}],"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hase-und-igel/index.md","href":"/spiele/hase-und-igel"},{"name":"Hey, Danke für den Fisch!","hide":true,"expanded":true,"isEmpty":false,"pages":[{"name":"Spielregeln","index":1,"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/penguins/regeln.md","href":"/spiele/penguins/regeln"},{"name":"XML-Schnittstelle","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/penguins/xml.md","href":"/spiele/penguins/xml"}],"sections":[],"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/penguins/index.md","href":"/spiele/penguins"},{"name":"Hive","hide":true,"isEmpty":false,"pages":[],"sections":[{"name":"Spielregeln","hide":true,"isEmpty":true,"pages":[{"name":"regeln","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hive/spielregeln/regeln.md","href":"/spiele/hive/spielregeln/regeln"}],"sections":[],"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hive/spielregeln/index.md","href":"/spiele/hive/spielregeln"},{"name":"XML-Dokumention","hide":true,"isEmpty":true,"pages":[{"name":"einleitung-xml","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hive/xml-dokumentation/einleitung-xml.md","href":"/spiele/hive/xml-dokumentation/einleitung-xml"},{"name":"fehler","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hive/xml-dokumentation/fehler.md","href":"/spiele/hive/xml-dokumentation/fehler"},{"name":"spiel-betreten","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hive/xml-dokumentation/spiel-betreten.md","href":"/spiele/hive/xml-dokumentation/spiel-betreten"},{"name":"spiel-verlassen","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hive/xml-dokumentation/spiel-verlassen.md","href":"/spiele/hive/xml-dokumentation/spiel-verlassen"},{"name":"spielergebnis","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hive/xml-dokumentation/spielergebnis.md","href":"/spiele/hive/xml-dokumentation/spielergebnis"},{"name":"spielstatus","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hive/xml-dokumentation/spielstatus.md","href":"/spiele/hive/xml-dokumentation/spielstatus"},{"name":"spielverlauf","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hive/xml-dokumentation/spielverlauf.md","href":"/spiele/hive/xml-dokumentation/spielverlauf"},{"name":"xml-dokumentation","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hive/xml-dokumentation/xml-dokumentation.md","href":"/spiele/hive/xml-dokumentation/xml-dokumentation"},{"name":"zuege-senden","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hive/xml-dokumentation/zuege-senden.md","href":"/spiele/hive/xml-dokumentation/zuege-senden"},{"name":"zug-anforderung","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hive/xml-dokumentation/zug-anforderung.md","href":"/spiele/hive/xml-dokumentation/zug-anforderung"}],"sections":[],"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hive/xml-dokumentation/index.md","href":"/spiele/hive/xml-dokumentation"}],"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/hive/index.md","href":"/spiele/hive"},{"name":"Mississippi Queen","expanded":true,"isEmpty":false,"pages":[{"name":"Spielregeln","index":1,"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/mississippi-queen/regeln.md","href":"/spiele/mississippi-queen/regeln"},{"name":"XML-Elemente","index":2,"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/mississippi-queen/xml.md","href":"/spiele/mississippi-queen/xml"}],"sections":[],"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/mississippi-queen/index.md","href":"/spiele/mississippi-queen"},{"name":"Ostseeschach","hide":true,"isEmpty":false,"pages":[{"name":"regeln","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/ostseeschach/regeln.md","href":"/spiele/ostseeschach/regeln"},{"name":"xml-dokumentation","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/ostseeschach/xml-dokumentation.md","href":"/spiele/ostseeschach/xml-dokumentation"}],"sections":[],"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/ostseeschach/index.md","href":"/spiele/ostseeschach"},{"name":"Piranhas","hide":true,"isEmpty":false,"pages":[],"sections":[{"name":"Spielregeln","hide":true,"isEmpty":true,"pages":[{"name":"regeln","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/piranhas/spielregeln/regeln.md","href":"/spiele/piranhas/spielregeln/regeln"}],"sections":[],"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/piranhas/spielregeln/index.md","href":"/spiele/piranhas/spielregeln"},{"name":"XML-Dokumentation","hide":true,"isEmpty":true,"pages":[{"name":"einleitung-xml","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/piranhas/xml-dokumentation/einleitung-xml.md","href":"/spiele/piranhas/xml-dokumentation/einleitung-xml"},{"name":"fehler","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/piranhas/xml-dokumentation/fehler.md","href":"/spiele/piranhas/xml-dokumentation/fehler"},{"name":"spiel-betreten","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/piranhas/xml-dokumentation/spiel-betreten.md","href":"/spiele/piranhas/xml-dokumentation/spiel-betreten"},{"name":"spiel-verlassen","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/piranhas/xml-dokumentation/spiel-verlassen.md","href":"/spiele/piranhas/xml-dokumentation/spiel-verlassen"},{"name":"spielergebnis","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/piranhas/xml-dokumentation/spielergebnis.md","href":"/spiele/piranhas/xml-dokumentation/spielergebnis"},{"name":"spielstatus","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/piranhas/xml-dokumentation/spielstatus.md","href":"/spiele/piranhas/xml-dokumentation/spielstatus"},{"name":"spielverlauf","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/piranhas/xml-dokumentation/spielverlauf.md","href":"/spiele/piranhas/xml-dokumentation/spielverlauf"},{"name":"xml-dokumentation","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/piranhas/xml-dokumentation/xml-dokumentation.md","href":"/spiele/piranhas/xml-dokumentation/xml-dokumentation"},{"name":"zuege-senden","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/piranhas/xml-dokumentation/zuege-senden.md","href":"/spiele/piranhas/xml-dokumentation/zuege-senden"},{"name":"zug-anforderung","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/piranhas/xml-dokumentation/zug-anforderung.md","href":"/spiele/piranhas/xml-dokumentation/zug-anforderung"}],"sections":[],"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/piranhas/xml-dokumentation/index.md","href":"/spiele/piranhas/xml-dokumentation"}],"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/piranhas/index.md","href":"/spiele/piranhas"}],"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/spiele/index.md","href":"/spiele"},{"name":"Entwicklung eines Computerspielers","index":2,"isEmpty":false,"pages":[{"name":"Das Spiel kennenlernen","index":1,"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/entwicklung/kennenlernen.md","href":"/entwicklung/kennenlernen"},{"name":"Objektorientierte Programmierung","index":3,"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/entwicklung/einfuehrung-oop.md","href":"/entwicklung/einfuehrung-oop"},{"name":"Sauberer Programmierstil","index":4,"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/entwicklung/sauberer-programmierstil.md","href":"/entwicklung/sauberer-programmierstil"},{"name":"Installation von Java","index":5,"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/entwicklung/installation-von-java.md","href":"/entwicklung/installation-von-java"},{"name":"Einrichtung der Entwicklungsumgebung","index":6,"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/entwicklung/einrichtung-der-entwicklungsumgebung.md","href":"/entwicklung/einrichtung-der-entwicklungsumgebung"},{"name":"Bedienung von Eclipse","index":7,"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/entwicklung/bedienung-von-eclipse.md","href":"/entwicklung/bedienung-von-eclipse"},{"name":"Spielervorlage erweitern","index":7,"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/entwicklung/simpleclient-erweitern.md","href":"/entwicklung/simpleclient-erweitern"},{"name":"Idee implementieren","index":8,"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/entwicklung/eine-idee-implementieren.md","href":"/entwicklung/eine-idee-implementieren"},{"name":"Computerspieler abgabefertig machen","index":9,"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/entwicklung/abgabe.md","href":"/entwicklung/abgabe"}],"sections":[],"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/entwicklung/index.md","href":"/entwicklung"},{"name":"Allgemeine XML-Dokumentation","index":4,"isEmpty":true,"pages":[{"name":"Einführung in XML","index":1,"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/xml/intro.md","href":"/xml/intro"},{"name":"XML-Protokoll","index":2,"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/xml/protokoll.md","href":"/xml/protokoll"},{"name":"Verwaltung von Spielen mittels authentifiziertem Client","index":3,"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/xml/administration.md","href":"/xml/administration"}],"sections":[],"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/xml/index.md","href":"/xml"}],"pages":[{"name":"Überblick","index":1,"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/index.md","href":"/"},{"name":"Technische Grundlagen","index":2,"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/glossar.md","href":"/glossar"},{"name":"Die Software-Challenge","index":3,"expanded":true,"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/wettbewerb.md","href":"/wettbewerb"},{"name":"F.A.Q.","index":4,"repo":"https://github.com/software-challenge/docs/tree/main/hyperbook/book/faq.md","href":"/faq"}]}},"__N_SSG":true} \ No newline at end of file diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/ostseeschach.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/ostseeschach.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/ostseeschach.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/ostseeschach.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/ostseeschach/regeln.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/ostseeschach/regeln.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/ostseeschach/regeln.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/ostseeschach/regeln.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/ostseeschach/xml-dokumentation.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/ostseeschach/xml-dokumentation.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/ostseeschach/xml-dokumentation.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/ostseeschach/xml-dokumentation.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/penguins.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/penguins.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/penguins.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/penguins.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/penguins/regeln.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/penguins/regeln.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/penguins/regeln.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/penguins/regeln.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/penguins/xml.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/penguins/xml.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/penguins/xml.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/penguins/xml.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/piranhas.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/piranhas.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/piranhas.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/piranhas.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/piranhas/spielregeln.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/piranhas/spielregeln.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/piranhas/spielregeln.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/piranhas/spielregeln.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/piranhas/spielregeln/regeln.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/piranhas/spielregeln/regeln.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/piranhas/spielregeln/regeln.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/piranhas/spielregeln/regeln.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/piranhas/xml-dokumentation.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/piranhas/xml-dokumentation.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/piranhas/xml-dokumentation.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/piranhas/xml-dokumentation.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/piranhas/xml-dokumentation/einleitung-xml.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/piranhas/xml-dokumentation/einleitung-xml.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/piranhas/xml-dokumentation/einleitung-xml.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/piranhas/xml-dokumentation/einleitung-xml.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/piranhas/xml-dokumentation/fehler.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/piranhas/xml-dokumentation/fehler.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/piranhas/xml-dokumentation/fehler.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/piranhas/xml-dokumentation/fehler.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/piranhas/xml-dokumentation/spiel-betreten.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/piranhas/xml-dokumentation/spiel-betreten.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/piranhas/xml-dokumentation/spiel-betreten.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/piranhas/xml-dokumentation/spiel-betreten.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/piranhas/xml-dokumentation/spiel-verlassen.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/piranhas/xml-dokumentation/spiel-verlassen.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/piranhas/xml-dokumentation/spiel-verlassen.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/piranhas/xml-dokumentation/spiel-verlassen.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/piranhas/xml-dokumentation/spielergebnis.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/piranhas/xml-dokumentation/spielergebnis.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/piranhas/xml-dokumentation/spielergebnis.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/piranhas/xml-dokumentation/spielergebnis.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/piranhas/xml-dokumentation/spielstatus.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/piranhas/xml-dokumentation/spielstatus.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/piranhas/xml-dokumentation/spielstatus.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/piranhas/xml-dokumentation/spielstatus.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/piranhas/xml-dokumentation/spielverlauf.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/piranhas/xml-dokumentation/spielverlauf.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/piranhas/xml-dokumentation/spielverlauf.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/piranhas/xml-dokumentation/spielverlauf.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/piranhas/xml-dokumentation/xml-dokumentation.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/piranhas/xml-dokumentation/xml-dokumentation.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/piranhas/xml-dokumentation/xml-dokumentation.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/piranhas/xml-dokumentation/xml-dokumentation.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/piranhas/xml-dokumentation/zuege-senden.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/piranhas/xml-dokumentation/zuege-senden.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/piranhas/xml-dokumentation/zuege-senden.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/piranhas/xml-dokumentation/zuege-senden.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/spiele/piranhas/xml-dokumentation/zug-anforderung.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/spiele/piranhas/xml-dokumentation/zug-anforderung.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/spiele/piranhas/xml-dokumentation/zug-anforderung.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/spiele/piranhas/xml-dokumentation/zug-anforderung.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/wettbewerb.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/wettbewerb.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/wettbewerb.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/wettbewerb.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/xml.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/xml.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/xml.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/xml.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/xml/administration.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/xml/administration.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/xml/administration.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/xml/administration.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/xml/intro.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/xml/intro.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/xml/intro.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/xml/intro.json diff --git a/_next/data/DeKmLF4VMr8pdoLWN15mN/xml/protokoll.json b/_next/data/uhmuGpBRu1UFszH4j0ziD/xml/protokoll.json similarity index 100% rename from _next/data/DeKmLF4VMr8pdoLWN15mN/xml/protokoll.json rename to _next/data/uhmuGpBRu1UFszH4j0ziD/xml/protokoll.json diff --git a/_next/static/chunks/pages/_app-60ddf2035acbd7c9.js b/_next/static/chunks/pages/_app-bef85377da1d0be7.js similarity index 81% rename from _next/static/chunks/pages/_app-60ddf2035acbd7c9.js rename to _next/static/chunks/pages/_app-bef85377da1d0be7.js index 26938f7c..d24ae320 100644 --- a/_next/static/chunks/pages/_app-60ddf2035acbd7c9.js +++ b/_next/static/chunks/pages/_app-bef85377da1d0be7.js @@ -6,12 +6,12 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var n,r=Symbol.for("react.element"),i=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function O(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case a:case s:case o:case h:case p:return e;default:switch(e=e&&e.$$typeof){case c:case u:case d:case m:case f:case l:return e;default:return t}}case i:return t}}}n=Symbol.for("react.module.reference"),t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=d,t.Fragment=a,t.Lazy=m,t.Memo=f,t.Portal=i,t.Profiler=s,t.StrictMode=o,t.Suspense=h,t.SuspenseList=p,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return O(e)===u},t.isContextProvider=function(e){return O(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return O(e)===d},t.isFragment=function(e){return O(e)===a},t.isLazy=function(e){return O(e)===m},t.isMemo=function(e){return O(e)===f},t.isPortal=function(e){return O(e)===i},t.isProfiler=function(e){return O(e)===s},t.isStrictMode=function(e){return O(e)===o},t.isSuspense=function(e){return O(e)===h},t.isSuspenseList=function(e){return O(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===s||e===o||e===h||e===p||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===f||e.$$typeof===l||e.$$typeof===u||e.$$typeof===d||e.$$typeof===n||void 0!==e.getModuleId)},t.typeOf=O},97267:function(e,t,n){"use strict";e.exports=n(21448)},94827:function(e,t,n){var r=n(18139);function i(e,t){var n,i,a,o=null;if(!e||"string"!=typeof e)return o;for(var s=r(e),l="function"==typeof t,u=0,c=s.length;u=t?e:""+Array(t+1-r.length).join(n)+e},(m={})[f="en"]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||"th")+"]"}},g="$isDayjsObject",O=function(e){return e instanceof x||!(!e||!e[g])},b=function e(t,n,r){var i;if(!t)return f;if("string"==typeof t){var a=t.toLowerCase();m[a]&&(i=a),n&&(m[a]=n,i=a);var o=t.split("-");if(!i&&o.length>1)return e(o[0])}else{var s=t.name;m[s]=t,i=s}return!r&&i&&(f=i),i||!r&&f},y=function(e,t){if(O(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new x(n)},(v={s:p,z:function(e){var t=-e.utcOffset(),n=Math.abs(t);return(t<=0?"+":"-")+p(Math.floor(n/60),2,"0")+":"+p(n%60,2,"0")},m:function e(t,n){if(t.date()u)&&(h[o]=u,p.push(o,u),d[o]=a));if(void 0!==r&&void 0===h[r])throw Error(["Could not find a path from ",n," to ",r,"."].join(""));return d},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,n,r){var i=t.single_source_shortest_paths(e,n,r);return t.extract_shortest_path_from_predecessor_list(i,r)},PriorityQueue:{make:function(e){var n,r=t.PriorityQueue,i={};for(n in e=e||{},r)r.hasOwnProperty(n)&&(i[n]=r[n]);return i.queue=[],i.sorter=e.sorter||r.default_sorter,i},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){this.queue.push({value:e,cost:t}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t},27856:function(e){e.exports=function(){"use strict";let{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:i}=Object,{freeze:a,seal:o,create:s}=Object,{apply:l,construct:u}="undefined"!=typeof Reflect&&Reflect;a||(a=function(e){return e}),o||(o=function(e){return e}),l||(l=function(e,t,n){return e.apply(t,n)}),u||(u=function(e,t){return new e(...t)});let c=T(Array.prototype.forEach),d=T(Array.prototype.pop),h=T(Array.prototype.push),p=T(String.prototype.toLowerCase),f=T(String.prototype.toString),m=T(String.prototype.match),g=T(String.prototype.replace),O=T(String.prototype.indexOf),b=T(String.prototype.trim),y=T(Object.prototype.hasOwnProperty),v=T(RegExp.prototype.test),x=(q=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n1?n-1:0),i=1;i2&&void 0!==arguments[2]?arguments[2]:p;t&&t(e,null);let a=r.length;for(;a--;){let t=r[a];if("string"==typeof t){let e=i(t);e!==t&&(n(r)||(r[a]=e),t=e)}e[t]=!0}return e}function _(t){let n=s(null);for(let[r,i]of e(t)){let e=y(t,r);e&&(Array.isArray(i)?n[r]=function(e){for(let t=0;t/gm),F=o(/\${[\w\W]*}/gm),B=o(/^data-[\-\w.\u00B7-\uFFFF]/),U=o(/^aria-[\-\w]+$/),j=o(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),z=o(/^(?:\w+script|data):/i),W=o(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Z=o(/^html$/i);var q,G=Object.freeze({__proto__:null,MUSTACHE_EXPR:Q,ERB_EXPR:M,TMPLIT_EXPR:F,DATA_ATTR:B,ARIA_ATTR:U,IS_ALLOWED_URI:j,IS_SCRIPT_OR_DATA:z,ATTR_WHITESPACE:W,DOCTYPE_NAME:Z});let H=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};return function t(){let n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,i=e=>t(e);if(i.version="3.0.9",i.removed=[],!r||!r.document||9!==r.document.nodeType)return i.isSupported=!1,i;let{document:o}=r,l=o,u=l.currentScript,{DocumentFragment:T,HTMLTemplateElement:Q,Node:M,Element:F,NodeFilter:B,NamedNodeMap:U=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:z,DOMParser:W,trustedTypes:q}=r,Y=F.prototype,X=S(Y,"cloneNode"),V=S(Y,"nextSibling"),K=S(Y,"childNodes"),J=S(Y,"parentNode");if("function"==typeof Q){let e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let ee="",{implementation:et,createNodeIterator:en,createDocumentFragment:er,getElementsByTagName:ei}=o,{importNode:ea}=l,eo={};i.isSupported="function"==typeof e&&"function"==typeof J&&et&&void 0!==et.createHTMLDocument;let{MUSTACHE_EXPR:es,ERB_EXPR:el,TMPLIT_EXPR:eu,DATA_ATTR:ec,ARIA_ATTR:ed,IS_SCRIPT_OR_DATA:eh,ATTR_WHITESPACE:ep}=G,{IS_ALLOWED_URI:ef}=G,em=null,eg=k({},[...w,...E,...C,...R,...I]),eO=null,eb=k({},[...N,...$,...L,...D]),ey=Object.seal(s(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ev=null,ex=null,eT=!0,ek=!0,e_=!1,eS=!0,ew=!1,eE=!1,eC=!1,eA=!1,eR=!1,eP=!1,eI=!1,eN=!0,e$=!1,eL=!0,eD=!1,eQ={},eM=null,eF=k({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),eB=null,eU=k({},["audio","video","img","source","image","track"]),ej=null,ez=k({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),eW="http://www.w3.org/1998/Math/MathML",eZ="http://www.w3.org/2000/svg",eq="http://www.w3.org/1999/xhtml",eG=eq,eH=!1,eY=null,eX=k({},[eW,eZ,eq],f),eV=null,eK=["application/xhtml+xml","text/html"],eJ=null,e1=null,e0=o.createElement("form"),e2=function(e){return e instanceof RegExp||e instanceof Function},e5=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e1||e1!==e){if(e&&"object"==typeof e||(e={}),e=_(e),eJ="application/xhtml+xml"===(eV=-1===eK.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?f:p,em=y(e,"ALLOWED_TAGS")?k({},e.ALLOWED_TAGS,eJ):eg,eO=y(e,"ALLOWED_ATTR")?k({},e.ALLOWED_ATTR,eJ):eb,eY=y(e,"ALLOWED_NAMESPACES")?k({},e.ALLOWED_NAMESPACES,f):eX,ej=y(e,"ADD_URI_SAFE_ATTR")?k(_(ez),e.ADD_URI_SAFE_ATTR,eJ):ez,eB=y(e,"ADD_DATA_URI_TAGS")?k(_(eU),e.ADD_DATA_URI_TAGS,eJ):eU,eM=y(e,"FORBID_CONTENTS")?k({},e.FORBID_CONTENTS,eJ):eF,ev=y(e,"FORBID_TAGS")?k({},e.FORBID_TAGS,eJ):{},ex=y(e,"FORBID_ATTR")?k({},e.FORBID_ATTR,eJ):{},eQ=!!y(e,"USE_PROFILES")&&e.USE_PROFILES,eT=!1!==e.ALLOW_ARIA_ATTR,ek=!1!==e.ALLOW_DATA_ATTR,e_=e.ALLOW_UNKNOWN_PROTOCOLS||!1,eS=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,ew=e.SAFE_FOR_TEMPLATES||!1,eE=e.WHOLE_DOCUMENT||!1,eR=e.RETURN_DOM||!1,eP=e.RETURN_DOM_FRAGMENT||!1,eI=e.RETURN_TRUSTED_TYPE||!1,eA=e.FORCE_BODY||!1,eN=!1!==e.SANITIZE_DOM,e$=e.SANITIZE_NAMED_PROPS||!1,eL=!1!==e.KEEP_CONTENT,eD=e.IN_PLACE||!1,ef=e.ALLOWED_URI_REGEXP||j,eG=e.NAMESPACE||eq,ey=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&e2(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ey.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&e2(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ey.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ey.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ew&&(ek=!1),eP&&(eR=!0),eQ&&(em=k({},I),eO=[],!0===eQ.html&&(k(em,w),k(eO,N)),!0===eQ.svg&&(k(em,E),k(eO,$),k(eO,D)),!0===eQ.svgFilters&&(k(em,C),k(eO,$),k(eO,D)),!0===eQ.mathMl&&(k(em,R),k(eO,L),k(eO,D))),e.ADD_TAGS&&(em===eg&&(em=_(em)),k(em,e.ADD_TAGS,eJ)),e.ADD_ATTR&&(eO===eb&&(eO=_(eO)),k(eO,e.ADD_ATTR,eJ)),e.ADD_URI_SAFE_ATTR&&k(ej,e.ADD_URI_SAFE_ATTR,eJ),e.FORBID_CONTENTS&&(eM===eF&&(eM=_(eM)),k(eM,e.FORBID_CONTENTS,eJ)),eL&&(em["#text"]=!0),eE&&k(em,["html","head","body"]),em.table&&(k(em,["tbody"]),delete ev.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ee=(n=e.TRUSTED_TYPES_POLICY).createHTML("")}else void 0===n&&(n=H(q,u)),null!==n&&"string"==typeof ee&&(ee=n.createHTML(""));a&&a(e),e1=e}},e9=k({},["mi","mo","mn","ms","mtext"]),e4=k({},["foreignobject","desc","title","annotation-xml"]),e3=k({},["title","style","font","a","script"]),e8=k({},[...E,...C,...A]),e6=k({},[...R,...P]),e7=function(e){let t=J(e);t&&t.tagName||(t={namespaceURI:eG,tagName:"template"});let n=p(e.tagName),r=p(t.tagName);return!!eY[e.namespaceURI]&&(e.namespaceURI===eZ?t.namespaceURI===eq?"svg"===n:t.namespaceURI===eW?"svg"===n&&("annotation-xml"===r||e9[r]):!!e8[n]:e.namespaceURI===eW?t.namespaceURI===eq?"math"===n:t.namespaceURI===eZ?"math"===n&&e4[r]:!!e6[n]:e.namespaceURI===eq?(t.namespaceURI!==eZ||!!e4[r])&&(t.namespaceURI!==eW||!!e9[r])&&!e6[n]&&(e3[n]||!e8[n]):"application/xhtml+xml"===eV&&!!eY[e.namespaceURI])},te=function(e){h(i.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},tt=function(e,t){try{h(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){h(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!eO[e]){if(eR||eP)try{te(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}}},tn=function(e){let t=null,r=null;if(eA)e=""+e;else{let t=m(e,/^[\r\n\t ]+/);r=t&&t[0]}"application/xhtml+xml"===eV&&eG===eq&&(e=''+e+"");let i=n?n.createHTML(e):e;if(eG===eq)try{t=new W().parseFromString(i,eV)}catch(e){}if(!t||!t.documentElement){t=et.createDocument(eG,"template",null);try{t.documentElement.innerHTML=eH?ee:i}catch(e){}}let a=t.body||t.documentElement;return(e&&r&&a.insertBefore(o.createTextNode(r),a.childNodes[0]||null),eG===eq)?ei.call(t,eE?"html":"body")[0]:eE?t.documentElement:a},tr=function(e){return en.call(e.ownerDocument||e,e,B.SHOW_ELEMENT|B.SHOW_COMMENT|B.SHOW_TEXT,null)},ti=function(e){return"function"==typeof M&&e instanceof M},ta=function(e,t,n){eo[e]&&c(eo[e],e=>{e.call(i,t,n,e1)})},to=function(e){let t=null;if(ta("beforeSanitizeElements",e,null),e instanceof z&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof U)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes))return te(e),!0;let n=eJ(e.nodeName);if(ta("uponSanitizeElement",e,{tagName:n,allowedTags:em}),e.hasChildNodes()&&!ti(e.firstElementChild)&&v(/<[/\w]/g,e.innerHTML)&&v(/<[/\w]/g,e.textContent))return te(e),!0;if(!em[n]||ev[n]){if(!ev[n]&&tl(n)&&(ey.tagNameCheck instanceof RegExp&&v(ey.tagNameCheck,n)||ey.tagNameCheck instanceof Function&&ey.tagNameCheck(n)))return!1;if(eL&&!eM[n]){let t=J(e)||e.parentNode,n=K(e)||e.childNodes;if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i)t.insertBefore(X(n[i],!0),V(e))}}return te(e),!0}return e instanceof F&&!e7(e)||("noscript"===n||"noembed"===n||"noframes"===n)&&v(/<\/no(script|embed|frames)/i,e.innerHTML)?(te(e),!0):(ew&&3===e.nodeType&&(t=e.textContent,c([es,el,eu],e=>{t=g(t,e," ")}),e.textContent!==t&&(h(i.removed,{element:e.cloneNode()}),e.textContent=t)),ta("afterSanitizeElements",e,null),!1)},ts=function(e,t,n){if(eN&&("id"===t||"name"===t)&&(n in o||n in e0))return!1;if(ek&&!ex[t]&&v(ec,t));else if(eT&&v(ed,t));else if(!eO[t]||ex[t]){if(!(tl(e)&&(ey.tagNameCheck instanceof RegExp&&v(ey.tagNameCheck,e)||ey.tagNameCheck instanceof Function&&ey.tagNameCheck(e))&&(ey.attributeNameCheck instanceof RegExp&&v(ey.attributeNameCheck,t)||ey.attributeNameCheck instanceof Function&&ey.attributeNameCheck(t))||"is"===t&&ey.allowCustomizedBuiltInElements&&(ey.tagNameCheck instanceof RegExp&&v(ey.tagNameCheck,n)||ey.tagNameCheck instanceof Function&&ey.tagNameCheck(n))))return!1}else if(ej[t]);else if(v(ef,g(n,ep,"")));else if(("src"===t||"xlink:href"===t||"href"===t)&&"script"!==e&&0===O(n,"data:")&&eB[e]);else if(e_&&!v(eh,g(n,ep,"")));else if(n)return!1;return!0},tl=function(e){return"annotation-xml"!==e&&e.indexOf("-")>0},tu=function(e){ta("beforeSanitizeAttributes",e,null);let{attributes:t}=e;if(!t)return;let r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:eO},a=t.length;for(;a--;){let o=t[a],{name:s,namespaceURI:l,value:u}=o,h=eJ(s),p="value"===s?u:b(u);if(r.attrName=h,r.attrValue=p,r.keepAttr=!0,r.forceKeepAttr=void 0,ta("uponSanitizeAttribute",e,r),p=r.attrValue,r.forceKeepAttr||(tt(s,e),!r.keepAttr))continue;if(!eS&&v(/\/>/i,p)){tt(s,e);continue}ew&&c([es,el,eu],e=>{p=g(p,e," ")});let f=eJ(e.nodeName);if(ts(f,h,p)){if(e$&&("id"===h||"name"===h)&&(tt(s,e),p="user-content-"+p),n&&"object"==typeof q&&"function"==typeof q.getAttributeType){if(l);else switch(q.getAttributeType(f,h)){case"TrustedHTML":p=n.createHTML(p);break;case"TrustedScriptURL":p=n.createScriptURL(p)}}try{l?e.setAttributeNS(l,s,p):e.setAttribute(s,p),d(i.removed)}catch(e){}}}ta("afterSanitizeAttributes",e,null)},tc=function e(t){let n=null,r=tr(t);for(ta("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)ta("uponSanitizeShadowNode",n,null),to(n)||(n.content instanceof T&&e(n.content),tu(n));ta("afterSanitizeShadowDOM",t,null)};return i.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,a=null,o=null,s=null;if((eH=!e)&&(e=""),"string"!=typeof e&&!ti(e)){if("function"==typeof e.toString){if("string"!=typeof(e=e.toString()))throw x("dirty is not a string, aborting")}else throw x("toString is not a function")}if(!i.isSupported)return e;if(eC||e5(t),i.removed=[],"string"==typeof e&&(eD=!1),eD){if(e.nodeName){let t=eJ(e.nodeName);if(!em[t]||ev[t])throw x("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof M)1===(a=(r=tn("")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===a.nodeName?r=a:"HTML"===a.nodeName?r=a:r.appendChild(a);else{if(!eR&&!ew&&!eE&&-1===e.indexOf("<"))return n&&eI?n.createHTML(e):e;if(!(r=tn(e)))return eR?null:eI?ee:""}r&&eA&&te(r.firstChild);let u=tr(eD?e:r);for(;o=u.nextNode();)to(o)||(o.content instanceof T&&tc(o.content),tu(o));if(eD)return e;if(eR){if(eP)for(s=er.call(r.ownerDocument);r.firstChild;)s.appendChild(r.firstChild);else s=r;return(eO.shadowroot||eO.shadowrootmode)&&(s=ea.call(l,s,!0)),s}let d=eE?r.outerHTML:r.innerHTML;return eE&&em["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&v(Z,r.ownerDocument.doctype.name)&&(d="\n"+d),ew&&c([es,el,eu],e=>{d=g(d,e," ")}),n&&eI?n.createHTML(d):d},i.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e5(e),eC=!0},i.clearConfig=function(){e1=null,eC=!1},i.isValidAttribute=function(e,t,n){e1||e5({});let r=eJ(e),i=eJ(t);return ts(r,i,n)},i.addHook=function(e,t){"function"==typeof t&&(eo[e]=eo[e]||[],h(eo[e],t))},i.removeHook=function(e){if(eo[e])return d(eo[e])},i.removeHooks=function(e){eo[e]&&(eo[e]=[])},i.removeAllHooks=function(){eo={}},i}()}()},62378:function(e){"use strict";e.exports=function(e){for(var t=[],n=e.length,r=0;r=55296&&i<=56319&&n>r+1){var a=e.charCodeAt(r+1);a>=56320&&a<=57343&&(i=(i-55296)*1024+a-56320+65536,r+=1)}if(i<128){t.push(i);continue}if(i<2048){t.push(i>>6|192),t.push(63&i|128);continue}if(i<55296||i>=57344&&i<65536){t.push(i>>12|224),t.push(i>>6&63|128),t.push(63&i|128);continue}if(i>=65536&&i<=1114111){t.push(i>>18|240),t.push(i>>12&63|128),t.push(i>>6&63|128),t.push(63&i|128);continue}t.push(239,191,189)}return new Uint8Array(t).buffer}},63150:function(e){"use strict";e.exports=e=>{if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},58875:function(e,t,n){var r,i,a;a={canUseDOM:i=!!("undefined"!=typeof window&&window.document&&window.document.createElement),canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:i&&!!(window.addEventListener||window.attachEvent),canUseViewport:i&&!!window.screen},void 0!==(r=(function(){return a}).call(t,n,t,e))&&(e.exports=r)},94470:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},o=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),a=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!a)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,u,c,d=arguments[0],h=1,p=arguments.length,f=!1;for("boolean"==typeof d&&(f=d,d=arguments[1]||{},h=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});h-1)return r.QUIRKS;let e=null===t?o:a;if(d(n,e))return r.QUIRKS;if(d(n,e=null===t?l:u))return r.LIMITED_QUIRKS}return r.NO_QUIRKS},t.serializeContent=function(e,t,n){let r="!DOCTYPE ";return e&&(r+=e),t?r+=" PUBLIC "+c(t):n&&(r+=" SYSTEM"),null!==n&&(r+=" "+c(n)),r}},93107:function(e){"use strict";e.exports={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"}},16510:function(e,t,n){"use strict";let r=n(34752),i=n(27447),a=i.TAG_NAMES,o=i.NAMESPACES,s=i.ATTRS,l={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},u={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},c={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:o.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:o.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:o.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:o.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:o.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:o.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:o.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:o.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:o.XML},"xml:space":{prefix:"xml",name:"space",namespace:o.XML},xmlns:{prefix:"",name:"xmlns",namespace:o.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:o.XMLNS}},d=t.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},h={[a.B]:!0,[a.BIG]:!0,[a.BLOCKQUOTE]:!0,[a.BODY]:!0,[a.BR]:!0,[a.CENTER]:!0,[a.CODE]:!0,[a.DD]:!0,[a.DIV]:!0,[a.DL]:!0,[a.DT]:!0,[a.EM]:!0,[a.EMBED]:!0,[a.H1]:!0,[a.H2]:!0,[a.H3]:!0,[a.H4]:!0,[a.H5]:!0,[a.H6]:!0,[a.HEAD]:!0,[a.HR]:!0,[a.I]:!0,[a.IMG]:!0,[a.LI]:!0,[a.LISTING]:!0,[a.MENU]:!0,[a.META]:!0,[a.NOBR]:!0,[a.OL]:!0,[a.P]:!0,[a.PRE]:!0,[a.RUBY]:!0,[a.S]:!0,[a.SMALL]:!0,[a.SPAN]:!0,[a.STRONG]:!0,[a.STRIKE]:!0,[a.SUB]:!0,[a.SUP]:!0,[a.TABLE]:!0,[a.TT]:!0,[a.U]:!0,[a.UL]:!0,[a.VAR]:!0};t.causesExit=function(e){let t=e.tagName,n=t===a.FONT&&(null!==r.getTokenAttr(e,s.COLOR)||null!==r.getTokenAttr(e,s.SIZE)||null!==r.getTokenAttr(e,s.FACE));return!!n||h[t]},t.adjustTokenMathMLAttrs=function(e){for(let t=0;t=55296&&e<=57343},t.isSurrogatePair=function(e){return e>=56320&&e<=57343},t.getSurrogatePairCodePoint=function(e,t){return(e-55296)*1024+9216+t},t.isControlCodePoint=function(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159},t.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||n.indexOf(e)>-1}},74318:function(e,t,n){"use strict";let r=n(24748);e.exports=class extends r{constructor(e,t){super(e),this.posTracker=null,this.onParseError=t.onParseError}_setErrorLocation(e){e.startLine=e.endLine=this.posTracker.line,e.startCol=e.endCol=this.posTracker.col,e.startOffset=e.endOffset=this.posTracker.offset}_reportError(e){let t={code:e,startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1};this._setErrorLocation(t),this.onParseError(t)}_getOverriddenMethods(e){return{_err(t){e._reportError(t)}}}}},91870:function(e,t,n){"use strict";let r=n(74318),i=n(87834),a=n(98997),o=n(24748);e.exports=class extends r{constructor(e,t){super(e,t),this.opts=t,this.ctLoc=null,this.locBeforeToken=!1}_setErrorLocation(e){this.ctLoc&&(e.startLine=this.ctLoc.startLine,e.startCol=this.ctLoc.startCol,e.startOffset=this.ctLoc.startOffset,e.endLine=this.locBeforeToken?this.ctLoc.startLine:this.ctLoc.endLine,e.endCol=this.locBeforeToken?this.ctLoc.startCol:this.ctLoc.endCol,e.endOffset=this.locBeforeToken?this.ctLoc.startOffset:this.ctLoc.endOffset)}_getOverriddenMethods(e,t){return{_bootstrap(n,r){t._bootstrap.call(this,n,r),o.install(this.tokenizer,i,e.opts),o.install(this.tokenizer,a)},_processInputToken(n){e.ctLoc=n.location,t._processInputToken.call(this,n)},_err(t,n){e.locBeforeToken=n&&n.beforeToken,e._reportError(t)}}}}},86302:function(e,t,n){"use strict";let r=n(74318),i=n(66733),a=n(24748);e.exports=class extends r{constructor(e,t){super(e,t),this.posTracker=a.install(e,i),this.lastErrOffset=-1}_reportError(e){this.lastErrOffset!==this.posTracker.offset&&(this.lastErrOffset=this.posTracker.offset,super._reportError(e))}}},87834:function(e,t,n){"use strict";let r=n(74318),i=n(86302),a=n(24748);e.exports=class extends r{constructor(e,t){super(e,t);let n=a.install(e.preprocessor,i,t);this.posTracker=n.posTracker}}},14372:function(e,t,n){"use strict";let r=n(24748);e.exports=class extends r{constructor(e,t){super(e),this.onItemPop=t.onItemPop}_getOverriddenMethods(e,t){return{pop(){e.onItemPop(this.current),t.pop.call(this)},popAllUpToHtmlElement(){for(let t=this.stackTop;t>0;t--)e.onItemPop(this.items[t]);t.popAllUpToHtmlElement.call(this)},remove(n){e.onItemPop(this.current),t.remove.call(this,n)}}}}},90562:function(e,t,n){"use strict";let r=n(24748),i=n(34752),a=n(98997),o=n(14372),s=n(27447),l=s.TAG_NAMES;e.exports=class extends r{constructor(e){super(e),this.parser=e,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(e){let t=null;this.lastStartTagToken&&((t=Object.assign({},this.lastStartTagToken.location)).startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(e,t)}_setEndLocation(e,t){let n=this.treeAdapter.getNodeSourceCodeLocation(e);if(n&&t.location){let n=t.location,r=this.treeAdapter.getTagName(e),a=t.type===i.END_TAG_TOKEN&&r===t.tagName,o={};a?(o.endTag=Object.assign({},n),o.endLine=n.endLine,o.endCol=n.endCol,o.endOffset=n.endOffset):(o.endLine=n.startLine,o.endCol=n.startCol,o.endOffset=n.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(e,o)}}_getOverriddenMethods(e,t){return{_bootstrap(n,i){t._bootstrap.call(this,n,i),e.lastStartTagToken=null,e.lastFosterParentingLocation=null,e.currentToken=null;let s=r.install(this.tokenizer,a);e.posTracker=s.posTracker,r.install(this.openElements,o,{onItemPop:function(t){e._setEndLocation(t,e.currentToken)}})},_runParsingLoop(n){t._runParsingLoop.call(this,n);for(let t=this.openElements.stackTop;t>=0;t--)e._setEndLocation(this.openElements.items[t],e.currentToken)},_processTokenInForeignContent(n){e.currentToken=n,t._processTokenInForeignContent.call(this,n)},_processToken(n){e.currentToken=n,t._processToken.call(this,n);let r=n.type===i.END_TAG_TOKEN&&(n.tagName===l.HTML||n.tagName===l.BODY&&this.openElements.hasInScope(l.BODY));if(r)for(let t=this.openElements.stackTop;t>=0;t--){let r=this.openElements.items[t];if(this.treeAdapter.getTagName(r)===n.tagName){e._setEndLocation(r,n);break}}},_setDocumentType(e){t._setDocumentType.call(this,e);let n=this.treeAdapter.getChildNodes(this.document),r=n.length;for(let t=0;t{let a=i.MODE[r];n[a]=function(n){e.ctLoc=e._getCurrentLocation(),t[a].call(this,n)}}),n}}},66733:function(e,t,n){"use strict";let r=n(24748);e.exports=class extends r{constructor(e){super(e),this.preprocessor=e,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.offset=0,this.col=0,this.line=1}_getOverriddenMethods(e,t){return{advance(){let n=this.pos+1,r=this.html[n];return e.isEol&&(e.isEol=!1,e.line++,e.lineStartPos=n),("\n"===r||"\r"===r&&"\n"!==this.html[n+1])&&(e.isEol=!0),e.col=n-e.lineStartPos+1,e.offset=e.droppedBufferSize+n,t.advance.call(this)},retreat(){t.retreat.call(this),e.isEol=!1,e.col=this.pos-e.lineStartPos+1},dropParsedChunk(){let n=this.pos;t.dropParsedChunk.call(this);let r=n-this.pos;e.lineStartPos-=r,e.droppedBufferSize+=r,e.offset=e.droppedBufferSize+this.pos}}}}},4465:function(e){"use strict";class t{constructor(e){this.length=0,this.entries=[],this.treeAdapter=e,this.bookmark=null}_getNoahArkConditionCandidates(e){let n=[];if(this.length>=3){let r=this.treeAdapter.getAttrList(e).length,i=this.treeAdapter.getTagName(e),a=this.treeAdapter.getNamespaceURI(e);for(let e=this.length-1;e>=0;e--){let o=this.entries[e];if(o.type===t.MARKER_ENTRY)break;let s=o.element,l=this.treeAdapter.getAttrList(s),u=this.treeAdapter.getTagName(s)===i&&this.treeAdapter.getNamespaceURI(s)===a&&l.length===r;u&&n.push({idx:e,attrs:l})}}return n.length<3?[]:n}_ensureNoahArkCondition(e){let t=this._getNoahArkConditionCandidates(e),n=t.length;if(n){let r=this.treeAdapter.getAttrList(e),i=r.length,a=Object.create(null);for(let e=0;e=2;e--)this.entries.splice(t[e].idx,1),this.length--}}insertMarker(){this.entries.push({type:t.MARKER_ENTRY}),this.length++}pushElement(e,n){this._ensureNoahArkCondition(e),this.entries.push({type:t.ELEMENT_ENTRY,element:e,token:n}),this.length++}insertElementAfterBookmark(e,n){let r=this.length-1;for(;r>=0&&this.entries[r]!==this.bookmark;r--);this.entries.splice(r+1,0,{type:t.ELEMENT_ENTRY,element:e,token:n}),this.length++}removeEntry(e){for(let t=this.length-1;t>=0;t--)if(this.entries[t]===e){this.entries.splice(t,1),this.length--;break}}clearToLastMarker(){for(;this.length;){let e=this.entries.pop();if(this.length--,e.type===t.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(e){for(let n=this.length-1;n>=0;n--){let r=this.entries[n];if(r.type===t.MARKER_ENTRY)break;if(this.treeAdapter.getTagName(r.element)===e)return r}return null}getElementEntry(e){for(let n=this.length-1;n>=0;n--){let r=this.entries[n];if(r.type===t.ELEMENT_ENTRY&&r.element===e)return r}return null}}t.MARKER_ENTRY="MARKER_ENTRY",t.ELEMENT_ENTRY="ELEMENT_ENTRY",e.exports=t},82803:function(e,t,n){"use strict";let r=n(34752),i=n(84889),a=n(4465),o=n(90562),s=n(91870),l=n(24748),u=n(47971),c=n(30311),d=n(18652),h=n(16510),p=n(93107),f=n(2657),m=n(27447),g=m.TAG_NAMES,O=m.NAMESPACES,b=m.ATTRS,y={scriptingEnabled:!0,sourceCodeLocationInfo:!1,onParseError:null,treeAdapter:u},v="hidden",x="INITIAL_MODE",T="BEFORE_HTML_MODE",k="BEFORE_HEAD_MODE",_="IN_HEAD_MODE",S="IN_HEAD_NO_SCRIPT_MODE",w="AFTER_HEAD_MODE",E="IN_BODY_MODE",C="TEXT_MODE",A="IN_TABLE_MODE",R="IN_TABLE_TEXT_MODE",P="IN_CAPTION_MODE",I="IN_COLUMN_GROUP_MODE",N="IN_TABLE_BODY_MODE",$="IN_ROW_MODE",L="IN_CELL_MODE",D="IN_SELECT_MODE",Q="IN_SELECT_IN_TABLE_MODE",M="IN_TEMPLATE_MODE",F="AFTER_BODY_MODE",B="IN_FRAMESET_MODE",U="AFTER_FRAMESET_MODE",j="AFTER_AFTER_BODY_MODE",z="AFTER_AFTER_FRAMESET_MODE",W={[g.TR]:$,[g.TBODY]:N,[g.THEAD]:N,[g.TFOOT]:N,[g.CAPTION]:P,[g.COLGROUP]:I,[g.TABLE]:A,[g.BODY]:E,[g.FRAMESET]:B},Z={[g.CAPTION]:A,[g.COLGROUP]:A,[g.TBODY]:A,[g.TFOOT]:A,[g.THEAD]:A,[g.COL]:I,[g.TR]:N,[g.TD]:$,[g.TH]:$},q={[x]:{[r.CHARACTER_TOKEN]:ee,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:H,[r.COMMENT_TOKEN]:X,[r.DOCTYPE_TOKEN]:function(e,t){e._setDocumentType(t);let n=t.forceQuirks?m.DOCUMENT_MODE.QUIRKS:d.getDocumentMode(t);d.isConforming(t)||e._err(p.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=T},[r.START_TAG_TOKEN]:ee,[r.END_TAG_TOKEN]:ee,[r.EOF_TOKEN]:ee},[T]:{[r.CHARACTER_TOKEN]:et,[r.NULL_CHARACTER_TOKEN]:et,[r.WHITESPACE_CHARACTER_TOKEN]:H,[r.COMMENT_TOKEN]:X,[r.DOCTYPE_TOKEN]:H,[r.START_TAG_TOKEN]:function(e,t){t.tagName===g.HTML?(e._insertElement(t,O.HTML),e.insertionMode=k):et(e,t)},[r.END_TAG_TOKEN]:function(e,t){let n=t.tagName;(n===g.HTML||n===g.HEAD||n===g.BODY||n===g.BR)&&et(e,t)},[r.EOF_TOKEN]:et},[k]:{[r.CHARACTER_TOKEN]:en,[r.NULL_CHARACTER_TOKEN]:en,[r.WHITESPACE_CHARACTER_TOKEN]:H,[r.COMMENT_TOKEN]:X,[r.DOCTYPE_TOKEN]:Y,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;n===g.HTML?ev(e,t):n===g.HEAD?(e._insertElement(t,O.HTML),e.headElement=e.openElements.current,e.insertionMode=_):en(e,t)},[r.END_TAG_TOKEN]:function(e,t){let n=t.tagName;n===g.HEAD||n===g.BODY||n===g.HTML||n===g.BR?en(e,t):e._err(p.endTagWithoutMatchingOpenElement)},[r.EOF_TOKEN]:en},[_]:{[r.CHARACTER_TOKEN]:ea,[r.NULL_CHARACTER_TOKEN]:ea,[r.WHITESPACE_CHARACTER_TOKEN]:K,[r.COMMENT_TOKEN]:X,[r.DOCTYPE_TOKEN]:Y,[r.START_TAG_TOKEN]:er,[r.END_TAG_TOKEN]:ei,[r.EOF_TOKEN]:ea},[S]:{[r.CHARACTER_TOKEN]:eo,[r.NULL_CHARACTER_TOKEN]:eo,[r.WHITESPACE_CHARACTER_TOKEN]:K,[r.COMMENT_TOKEN]:X,[r.DOCTYPE_TOKEN]:Y,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;n===g.HTML?ev(e,t):n===g.BASEFONT||n===g.BGSOUND||n===g.HEAD||n===g.LINK||n===g.META||n===g.NOFRAMES||n===g.STYLE?er(e,t):n===g.NOSCRIPT?e._err(p.nestedNoscriptInHead):eo(e,t)},[r.END_TAG_TOKEN]:function(e,t){let n=t.tagName;n===g.NOSCRIPT?(e.openElements.pop(),e.insertionMode=_):n===g.BR?eo(e,t):e._err(p.endTagWithoutMatchingOpenElement)},[r.EOF_TOKEN]:eo},[w]:{[r.CHARACTER_TOKEN]:es,[r.NULL_CHARACTER_TOKEN]:es,[r.WHITESPACE_CHARACTER_TOKEN]:K,[r.COMMENT_TOKEN]:X,[r.DOCTYPE_TOKEN]:Y,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;n===g.HTML?ev(e,t):n===g.BODY?(e._insertElement(t,O.HTML),e.framesetOk=!1,e.insertionMode=E):n===g.FRAMESET?(e._insertElement(t,O.HTML),e.insertionMode=B):n===g.BASE||n===g.BASEFONT||n===g.BGSOUND||n===g.LINK||n===g.META||n===g.NOFRAMES||n===g.SCRIPT||n===g.STYLE||n===g.TEMPLATE||n===g.TITLE?(e._err(p.abandonedHeadElementChild),e.openElements.push(e.headElement),er(e,t),e.openElements.remove(e.headElement)):n===g.HEAD?e._err(p.misplacedStartTagForHeadElement):es(e,t)},[r.END_TAG_TOKEN]:function(e,t){let n=t.tagName;n===g.BODY||n===g.HTML||n===g.BR?es(e,t):n===g.TEMPLATE?ei(e,t):e._err(p.endTagWithoutMatchingOpenElement)},[r.EOF_TOKEN]:es},[E]:{[r.CHARACTER_TOKEN]:eu,[r.NULL_CHARACTER_TOKEN]:H,[r.WHITESPACE_CHARACTER_TOKEN]:el,[r.COMMENT_TOKEN]:X,[r.DOCTYPE_TOKEN]:H,[r.START_TAG_TOKEN]:ev,[r.END_TAG_TOKEN]:e_,[r.EOF_TOKEN]:eS},[C]:{[r.CHARACTER_TOKEN]:K,[r.NULL_CHARACTER_TOKEN]:K,[r.WHITESPACE_CHARACTER_TOKEN]:K,[r.COMMENT_TOKEN]:H,[r.DOCTYPE_TOKEN]:H,[r.START_TAG_TOKEN]:H,[r.END_TAG_TOKEN]:function(e,t){t.tagName===g.SCRIPT&&(e.pendingScript=e.openElements.current),e.openElements.pop(),e.insertionMode=e.originalInsertionMode},[r.EOF_TOKEN]:function(e,t){e._err(p.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}},[A]:{[r.CHARACTER_TOKEN]:ew,[r.NULL_CHARACTER_TOKEN]:ew,[r.WHITESPACE_CHARACTER_TOKEN]:ew,[r.COMMENT_TOKEN]:X,[r.DOCTYPE_TOKEN]:H,[r.START_TAG_TOKEN]:eE,[r.END_TAG_TOKEN]:eC,[r.EOF_TOKEN]:eS},[R]:{[r.CHARACTER_TOKEN]:function(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0},[r.NULL_CHARACTER_TOKEN]:H,[r.WHITESPACE_CHARACTER_TOKEN]:function(e,t){e.pendingCharacterTokens.push(t)},[r.COMMENT_TOKEN]:eR,[r.DOCTYPE_TOKEN]:eR,[r.START_TAG_TOKEN]:eR,[r.END_TAG_TOKEN]:eR,[r.EOF_TOKEN]:eR},[P]:{[r.CHARACTER_TOKEN]:eu,[r.NULL_CHARACTER_TOKEN]:H,[r.WHITESPACE_CHARACTER_TOKEN]:el,[r.COMMENT_TOKEN]:X,[r.DOCTYPE_TOKEN]:H,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;n===g.CAPTION||n===g.COL||n===g.COLGROUP||n===g.TBODY||n===g.TD||n===g.TFOOT||n===g.TH||n===g.THEAD||n===g.TR?e.openElements.hasInTableScope(g.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=A,e._processToken(t)):ev(e,t)},[r.END_TAG_TOKEN]:function(e,t){let n=t.tagName;n===g.CAPTION||n===g.TABLE?e.openElements.hasInTableScope(g.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=A,n===g.TABLE&&e._processToken(t)):n!==g.BODY&&n!==g.COL&&n!==g.COLGROUP&&n!==g.HTML&&n!==g.TBODY&&n!==g.TD&&n!==g.TFOOT&&n!==g.TH&&n!==g.THEAD&&n!==g.TR&&e_(e,t)},[r.EOF_TOKEN]:eS},[I]:{[r.CHARACTER_TOKEN]:eP,[r.NULL_CHARACTER_TOKEN]:eP,[r.WHITESPACE_CHARACTER_TOKEN]:K,[r.COMMENT_TOKEN]:X,[r.DOCTYPE_TOKEN]:H,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;n===g.HTML?ev(e,t):n===g.COL?(e._appendElement(t,O.HTML),t.ackSelfClosing=!0):n===g.TEMPLATE?er(e,t):eP(e,t)},[r.END_TAG_TOKEN]:function(e,t){let n=t.tagName;n===g.COLGROUP?e.openElements.currentTagName===g.COLGROUP&&(e.openElements.pop(),e.insertionMode=A):n===g.TEMPLATE?ei(e,t):n!==g.COL&&eP(e,t)},[r.EOF_TOKEN]:eS},[N]:{[r.CHARACTER_TOKEN]:ew,[r.NULL_CHARACTER_TOKEN]:ew,[r.WHITESPACE_CHARACTER_TOKEN]:ew,[r.COMMENT_TOKEN]:X,[r.DOCTYPE_TOKEN]:H,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;n===g.TR?(e.openElements.clearBackToTableBodyContext(),e._insertElement(t,O.HTML),e.insertionMode=$):n===g.TH||n===g.TD?(e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(g.TR),e.insertionMode=$,e._processToken(t)):n===g.CAPTION||n===g.COL||n===g.COLGROUP||n===g.TBODY||n===g.TFOOT||n===g.THEAD?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=A,e._processToken(t)):eE(e,t)},[r.END_TAG_TOKEN]:function(e,t){let n=t.tagName;n===g.TBODY||n===g.TFOOT||n===g.THEAD?e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=A):n===g.TABLE?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=A,e._processToken(t)):(n!==g.BODY&&n!==g.CAPTION&&n!==g.COL&&n!==g.COLGROUP||n!==g.HTML&&n!==g.TD&&n!==g.TH&&n!==g.TR)&&eC(e,t)},[r.EOF_TOKEN]:eS},[$]:{[r.CHARACTER_TOKEN]:ew,[r.NULL_CHARACTER_TOKEN]:ew,[r.WHITESPACE_CHARACTER_TOKEN]:ew,[r.COMMENT_TOKEN]:X,[r.DOCTYPE_TOKEN]:H,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;n===g.TH||n===g.TD?(e.openElements.clearBackToTableRowContext(),e._insertElement(t,O.HTML),e.insertionMode=L,e.activeFormattingElements.insertMarker()):n===g.CAPTION||n===g.COL||n===g.COLGROUP||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR?e.openElements.hasInTableScope(g.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=N,e._processToken(t)):eE(e,t)},[r.END_TAG_TOKEN]:function(e,t){let n=t.tagName;n===g.TR?e.openElements.hasInTableScope(g.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=N):n===g.TABLE?e.openElements.hasInTableScope(g.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=N,e._processToken(t)):n===g.TBODY||n===g.TFOOT||n===g.THEAD?(e.openElements.hasInTableScope(n)||e.openElements.hasInTableScope(g.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=N,e._processToken(t)):(n!==g.BODY&&n!==g.CAPTION&&n!==g.COL&&n!==g.COLGROUP||n!==g.HTML&&n!==g.TD&&n!==g.TH)&&eC(e,t)},[r.EOF_TOKEN]:eS},[L]:{[r.CHARACTER_TOKEN]:eu,[r.NULL_CHARACTER_TOKEN]:H,[r.WHITESPACE_CHARACTER_TOKEN]:el,[r.COMMENT_TOKEN]:X,[r.DOCTYPE_TOKEN]:H,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;n===g.CAPTION||n===g.COL||n===g.COLGROUP||n===g.TBODY||n===g.TD||n===g.TFOOT||n===g.TH||n===g.THEAD||n===g.TR?(e.openElements.hasInTableScope(g.TD)||e.openElements.hasInTableScope(g.TH))&&(e._closeTableCell(),e._processToken(t)):ev(e,t)},[r.END_TAG_TOKEN]:function(e,t){let n=t.tagName;n===g.TD||n===g.TH?e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=$):n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR?e.openElements.hasInTableScope(n)&&(e._closeTableCell(),e._processToken(t)):n!==g.BODY&&n!==g.CAPTION&&n!==g.COL&&n!==g.COLGROUP&&n!==g.HTML&&e_(e,t)},[r.EOF_TOKEN]:eS},[D]:{[r.CHARACTER_TOKEN]:K,[r.NULL_CHARACTER_TOKEN]:H,[r.WHITESPACE_CHARACTER_TOKEN]:K,[r.COMMENT_TOKEN]:X,[r.DOCTYPE_TOKEN]:H,[r.START_TAG_TOKEN]:eI,[r.END_TAG_TOKEN]:eN,[r.EOF_TOKEN]:eS},[Q]:{[r.CHARACTER_TOKEN]:K,[r.NULL_CHARACTER_TOKEN]:H,[r.WHITESPACE_CHARACTER_TOKEN]:K,[r.COMMENT_TOKEN]:X,[r.DOCTYPE_TOKEN]:H,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;n===g.CAPTION||n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR||n===g.TD||n===g.TH?(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),e._processToken(t)):eI(e,t)},[r.END_TAG_TOKEN]:function(e,t){let n=t.tagName;n===g.CAPTION||n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR||n===g.TD||n===g.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),e._processToken(t)):eN(e,t)},[r.EOF_TOKEN]:eS},[M]:{[r.CHARACTER_TOKEN]:eu,[r.NULL_CHARACTER_TOKEN]:H,[r.WHITESPACE_CHARACTER_TOKEN]:el,[r.COMMENT_TOKEN]:X,[r.DOCTYPE_TOKEN]:H,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;if(n===g.BASE||n===g.BASEFONT||n===g.BGSOUND||n===g.LINK||n===g.META||n===g.NOFRAMES||n===g.SCRIPT||n===g.STYLE||n===g.TEMPLATE||n===g.TITLE)er(e,t);else{let r=Z[n]||E;e._popTmplInsertionMode(),e._pushTmplInsertionMode(r),e.insertionMode=r,e._processToken(t)}},[r.END_TAG_TOKEN]:function(e,t){t.tagName===g.TEMPLATE&&ei(e,t)},[r.EOF_TOKEN]:e$},[F]:{[r.CHARACTER_TOKEN]:eL,[r.NULL_CHARACTER_TOKEN]:eL,[r.WHITESPACE_CHARACTER_TOKEN]:el,[r.COMMENT_TOKEN]:function(e,t){e._appendCommentNode(t,e.openElements.items[0])},[r.DOCTYPE_TOKEN]:H,[r.START_TAG_TOKEN]:function(e,t){t.tagName===g.HTML?ev(e,t):eL(e,t)},[r.END_TAG_TOKEN]:function(e,t){t.tagName===g.HTML?e.fragmentContext||(e.insertionMode=j):eL(e,t)},[r.EOF_TOKEN]:J},[B]:{[r.CHARACTER_TOKEN]:H,[r.NULL_CHARACTER_TOKEN]:H,[r.WHITESPACE_CHARACTER_TOKEN]:K,[r.COMMENT_TOKEN]:X,[r.DOCTYPE_TOKEN]:H,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;n===g.HTML?ev(e,t):n===g.FRAMESET?e._insertElement(t,O.HTML):n===g.FRAME?(e._appendElement(t,O.HTML),t.ackSelfClosing=!0):n===g.NOFRAMES&&er(e,t)},[r.END_TAG_TOKEN]:function(e,t){t.tagName!==g.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagName===g.FRAMESET||(e.insertionMode=U))},[r.EOF_TOKEN]:J},[U]:{[r.CHARACTER_TOKEN]:H,[r.NULL_CHARACTER_TOKEN]:H,[r.WHITESPACE_CHARACTER_TOKEN]:K,[r.COMMENT_TOKEN]:X,[r.DOCTYPE_TOKEN]:H,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;n===g.HTML?ev(e,t):n===g.NOFRAMES&&er(e,t)},[r.END_TAG_TOKEN]:function(e,t){t.tagName===g.HTML&&(e.insertionMode=z)},[r.EOF_TOKEN]:J},[j]:{[r.CHARACTER_TOKEN]:eD,[r.NULL_CHARACTER_TOKEN]:eD,[r.WHITESPACE_CHARACTER_TOKEN]:el,[r.COMMENT_TOKEN]:V,[r.DOCTYPE_TOKEN]:H,[r.START_TAG_TOKEN]:function(e,t){t.tagName===g.HTML?ev(e,t):eD(e,t)},[r.END_TAG_TOKEN]:eD,[r.EOF_TOKEN]:J},[z]:{[r.CHARACTER_TOKEN]:H,[r.NULL_CHARACTER_TOKEN]:H,[r.WHITESPACE_CHARACTER_TOKEN]:el,[r.COMMENT_TOKEN]:V,[r.DOCTYPE_TOKEN]:H,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;n===g.HTML?ev(e,t):n===g.NOFRAMES&&er(e,t)},[r.END_TAG_TOKEN]:H,[r.EOF_TOKEN]:J}};function G(e,t){let n,r;for(let i=0;i<8&&((r=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName))?e.openElements.contains(r.element)?e.openElements.hasInScope(t.tagName)||(r=null):(e.activeFormattingElements.removeEntry(r),r=null):ek(e,t),n=r);i++){let t=function(e,t){let n=null;for(let r=e.openElements.stackTop;r>=0;r--){let i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i)&&(n=i)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}(e,n);if(!t)break;e.activeFormattingElements.bookmark=n;let r=function(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,o=i;o!==n;a++,o=i){i=e.openElements.getCommonAncestor(o);let n=e.activeFormattingElements.getElementEntry(o),s=n&&a>=3,l=!n||s;l?(s&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(o)):(o=function(e,t){let n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}(e,t,n.element),i=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(r),function(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{let r=e.treeAdapter.getTagName(t),i=e.treeAdapter.getNamespaceURI(t);r===g.TEMPLATE&&i===O.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}(e,i,r),function(e,t,n){let r=e.treeAdapter.getNamespaceURI(n.element),i=n.token,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a)}(e,t,n)}}function H(){}function Y(e){e._err(p.misplacedDoctype)}function X(e,t){e._appendCommentNode(t,e.openElements.currentTmplContent||e.openElements.current)}function V(e,t){e._appendCommentNode(t,e.document)}function K(e,t){e._insertCharacters(t)}function J(e){e.stopped=!0}function ee(e,t){e._err(p.missingDoctype,{beforeToken:!0}),e.treeAdapter.setDocumentMode(e.document,m.DOCUMENT_MODE.QUIRKS),e.insertionMode=T,e._processToken(t)}function et(e,t){e._insertFakeRootElement(),e.insertionMode=k,e._processToken(t)}function en(e,t){e._insertFakeElement(g.HEAD),e.headElement=e.openElements.current,e.insertionMode=_,e._processToken(t)}function er(e,t){let n=t.tagName;n===g.HTML?ev(e,t):n===g.BASE||n===g.BASEFONT||n===g.BGSOUND||n===g.LINK||n===g.META?(e._appendElement(t,O.HTML),t.ackSelfClosing=!0):n===g.TITLE?e._switchToTextParsing(t,r.MODE.RCDATA):n===g.NOSCRIPT?e.options.scriptingEnabled?e._switchToTextParsing(t,r.MODE.RAWTEXT):(e._insertElement(t,O.HTML),e.insertionMode=S):n===g.NOFRAMES||n===g.STYLE?e._switchToTextParsing(t,r.MODE.RAWTEXT):n===g.SCRIPT?e._switchToTextParsing(t,r.MODE.SCRIPT_DATA):n===g.TEMPLATE?(e._insertTemplate(t,O.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=M,e._pushTmplInsertionMode(M)):n===g.HEAD?e._err(p.misplacedStartTagForHeadElement):ea(e,t)}function ei(e,t){let n=t.tagName;n===g.HEAD?(e.openElements.pop(),e.insertionMode=w):n===g.BODY||n===g.BR||n===g.HTML?ea(e,t):n===g.TEMPLATE&&e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==g.TEMPLATE&&e._err(p.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(g.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(p.endTagWithoutMatchingOpenElement)}function ea(e,t){e.openElements.pop(),e.insertionMode=w,e._processToken(t)}function eo(e,t){let n=t.type===r.EOF_TOKEN?p.openElementsLeftAfterEof:p.disallowedContentInNoscriptInHead;e._err(n),e.openElements.pop(),e.insertionMode=_,e._processToken(t)}function es(e,t){e._insertFakeElement(g.BODY),e.insertionMode=E,e._processToken(t)}function el(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function eu(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function ec(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,O.HTML)}function ed(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,O.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function eh(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function ep(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function ef(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,O.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function em(e,t){e._appendElement(t,O.HTML),t.ackSelfClosing=!0}function eg(e,t){e._switchToTextParsing(t,r.MODE.RAWTEXT)}function eO(e,t){e.openElements.currentTagName===g.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML)}function eb(e,t){e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,O.HTML)}function ey(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML)}function ev(e,t){let n=t.tagName;switch(n.length){case 1:n===g.I||n===g.S||n===g.B||n===g.U?eh(e,t):n===g.P?ec(e,t):n===g.A?function(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(g.A);n&&(G(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):ey(e,t);break;case 2:n===g.DL||n===g.OL||n===g.UL?ec(e,t):n===g.H1||n===g.H2||n===g.H3||n===g.H4||n===g.H5||n===g.H6?function(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement();let n=e.openElements.currentTagName;(n===g.H1||n===g.H2||n===g.H3||n===g.H4||n===g.H5||n===g.H6)&&e.openElements.pop(),e._insertElement(t,O.HTML)}(e,t):n===g.LI||n===g.DD||n===g.DT?function(e,t){e.framesetOk=!1;let n=t.tagName;for(let t=e.openElements.stackTop;t>=0;t--){let r=e.openElements.items[t],i=e.treeAdapter.getTagName(r),a=null;if(n===g.LI&&i===g.LI?a=g.LI:(n===g.DD||n===g.DT)&&(i===g.DD||i===g.DT)&&(a=i),a){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(i!==g.ADDRESS&&i!==g.DIV&&i!==g.P&&e._isSpecialElement(r))break}e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,O.HTML)}(e,t):n===g.EM||n===g.TT?eh(e,t):n===g.BR?ef(e,t):n===g.HR?(e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._appendElement(t,O.HTML),e.framesetOk=!1,t.ackSelfClosing=!0):n===g.RB?eb(e,t):n===g.RT||n===g.RP?(e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(g.RTC),e._insertElement(t,O.HTML)):n!==g.TH&&n!==g.TD&&n!==g.TR&&ey(e,t);break;case 3:n===g.DIV||n===g.DIR||n===g.NAV?ec(e,t):n===g.PRE?ed(e,t):n===g.BIG?eh(e,t):n===g.IMG||n===g.WBR?ef(e,t):n===g.XMP?(e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,r.MODE.RAWTEXT)):n===g.SVG?(e._reconstructActiveFormattingElements(),h.adjustTokenSVGAttrs(t),h.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,O.SVG):e._insertElement(t,O.SVG),t.ackSelfClosing=!0):n===g.RTC?eb(e,t):n!==g.COL&&ey(e,t);break;case 4:n===g.HTML?0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs):n===g.BASE||n===g.LINK||n===g.META?er(e,t):n===g.BODY?function(e,t){let n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t):n===g.MAIN||n===g.MENU?ec(e,t):n===g.FORM?function(e,t){let n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,O.HTML),n||(e.formElement=e.openElements.current))}(e,t):n===g.CODE||n===g.FONT?eh(e,t):n===g.NOBR?(e._reconstructActiveFormattingElements(),e.openElements.hasInScope(g.NOBR)&&(G(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,O.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)):n===g.AREA?ef(e,t):n===g.MATH?(e._reconstructActiveFormattingElements(),h.adjustTokenMathMLAttrs(t),h.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,O.MATHML):e._insertElement(t,O.MATHML),t.ackSelfClosing=!0):n===g.MENU?(e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,O.HTML)):n!==g.HEAD&&ey(e,t);break;case 5:n===g.STYLE||n===g.TITLE?er(e,t):n===g.ASIDE?ec(e,t):n===g.SMALL?eh(e,t):n===g.TABLE?(e.treeAdapter.getDocumentMode(e.document)!==m.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,O.HTML),e.framesetOk=!1,e.insertionMode=A):n===g.EMBED?ef(e,t):n===g.INPUT?function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,O.HTML);let n=r.getTokenAttr(t,b.TYPE);n&&n.toLowerCase()===v||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t):n===g.PARAM||n===g.TRACK?em(e,t):n===g.IMAGE?(t.tagName=g.IMG,ef(e,t)):n!==g.FRAME&&n!==g.TBODY&&n!==g.TFOOT&&n!==g.THEAD&&ey(e,t);break;case 6:n===g.SCRIPT?er(e,t):n===g.CENTER||n===g.FIGURE||n===g.FOOTER||n===g.HEADER||n===g.HGROUP||n===g.DIALOG?ec(e,t):n===g.BUTTON?(e.openElements.hasInScope(g.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML),e.framesetOk=!1):n===g.STRIKE||n===g.STRONG?eh(e,t):n===g.APPLET||n===g.OBJECT?ep(e,t):n===g.KEYGEN?ef(e,t):n===g.SOURCE?em(e,t):n===g.IFRAME?(e.framesetOk=!1,e._switchToTextParsing(t,r.MODE.RAWTEXT)):n===g.SELECT?(e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML),e.framesetOk=!1,e.insertionMode===A||e.insertionMode===P||e.insertionMode===N||e.insertionMode===$||e.insertionMode===L?e.insertionMode=Q:e.insertionMode=D):n===g.OPTION?eO(e,t):ey(e,t);break;case 7:n===g.BGSOUND?er(e,t):n===g.DETAILS||n===g.ADDRESS||n===g.ARTICLE||n===g.SECTION||n===g.SUMMARY?ec(e,t):n===g.LISTING?ed(e,t):n===g.MARQUEE?ep(e,t):n===g.NOEMBED?eg(e,t):n!==g.CAPTION&&ey(e,t);break;case 8:n===g.BASEFONT?er(e,t):n===g.FRAMESET?function(e,t){let n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,O.HTML),e.insertionMode=B)}(e,t):n===g.FIELDSET?ec(e,t):n===g.TEXTAREA?(e._insertElement(t,O.HTML),e.skipNextNewLine=!0,e.tokenizer.state=r.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=C):n===g.TEMPLATE?er(e,t):n===g.NOSCRIPT?e.options.scriptingEnabled?eg(e,t):ey(e,t):n===g.OPTGROUP?eO(e,t):n!==g.COLGROUP&&ey(e,t);break;case 9:n===g.PLAINTEXT?(e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,O.HTML),e.tokenizer.state=r.MODE.PLAINTEXT):ey(e,t);break;case 10:n===g.BLOCKQUOTE||n===g.FIGCAPTION?ec(e,t):ey(e,t);break;default:ey(e,t)}}function ex(e,t){let n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function eT(e,t){let n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function ek(e,t){let n=t.tagName;for(let t=e.openElements.stackTop;t>0;t--){let r=e.openElements.items[t];if(e.treeAdapter.getTagName(r)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(r);break}if(e._isSpecialElement(r))break}}function e_(e,t){let n=t.tagName;switch(n.length){case 1:n===g.A||n===g.B||n===g.I||n===g.S||n===g.U?G(e,t):n===g.P?(e.openElements.hasInButtonScope(g.P)||e._insertFakeElement(g.P),e._closePElement()):ek(e,t);break;case 2:n===g.DL||n===g.UL||n===g.OL?ex(e,t):n===g.LI?e.openElements.hasInListItemScope(g.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(g.LI),e.openElements.popUntilTagNamePopped(g.LI)):n===g.DD||n===g.DT?function(e,t){let n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t):n===g.H1||n===g.H2||n===g.H3||n===g.H4||n===g.H5||n===g.H6?e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped()):n===g.BR?(e._reconstructActiveFormattingElements(),e._insertFakeElement(g.BR),e.openElements.pop(),e.framesetOk=!1):n===g.EM||n===g.TT?G(e,t):ek(e,t);break;case 3:n===g.BIG?G(e,t):n===g.DIR||n===g.DIV||n===g.NAV||n===g.PRE?ex(e,t):ek(e,t);break;case 4:n===g.BODY?e.openElements.hasInScope(g.BODY)&&(e.insertionMode=F):n===g.HTML?e.openElements.hasInScope(g.BODY)&&(e.insertionMode=F,e._processToken(t)):n===g.FORM?function(e){let t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(g.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(g.FORM):e.openElements.remove(n))}(e,t):n===g.CODE||n===g.FONT||n===g.NOBR?G(e,t):n===g.MAIN||n===g.MENU?ex(e,t):ek(e,t);break;case 5:n===g.ASIDE?ex(e,t):n===g.SMALL?G(e,t):ek(e,t);break;case 6:n===g.CENTER||n===g.FIGURE||n===g.FOOTER||n===g.HEADER||n===g.HGROUP||n===g.DIALOG?ex(e,t):n===g.APPLET||n===g.OBJECT?eT(e,t):n===g.STRIKE||n===g.STRONG?G(e,t):ek(e,t);break;case 7:n===g.ADDRESS||n===g.ARTICLE||n===g.DETAILS||n===g.SECTION||n===g.SUMMARY||n===g.LISTING?ex(e,t):n===g.MARQUEE?eT(e,t):ek(e,t);break;case 8:n===g.FIELDSET?ex(e,t):n===g.TEMPLATE?ei(e,t):ek(e,t);break;case 10:n===g.BLOCKQUOTE||n===g.FIGCAPTION?ex(e,t):ek(e,t);break;default:ek(e,t)}}function eS(e,t){e.tmplInsertionModeStackTop>-1?e$(e,t):e.stopped=!0}function ew(e,t){let n=e.openElements.currentTagName;n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=R,e._processToken(t)):eA(e,t)}function eE(e,t){let n=t.tagName;switch(n.length){case 2:n===g.TD||n===g.TH||n===g.TR?(e.openElements.clearBackToTableContext(),e._insertFakeElement(g.TBODY),e.insertionMode=N,e._processToken(t)):eA(e,t);break;case 3:n===g.COL?(e.openElements.clearBackToTableContext(),e._insertFakeElement(g.COLGROUP),e.insertionMode=I,e._processToken(t)):eA(e,t);break;case 4:n===g.FORM?e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,O.HTML),e.formElement=e.openElements.current,e.openElements.pop()):eA(e,t);break;case 5:n===g.TABLE?e.openElements.hasInTableScope(g.TABLE)&&(e.openElements.popUntilTagNamePopped(g.TABLE),e._resetInsertionMode(),e._processToken(t)):n===g.STYLE?er(e,t):n===g.TBODY||n===g.TFOOT||n===g.THEAD?(e.openElements.clearBackToTableContext(),e._insertElement(t,O.HTML),e.insertionMode=N):n===g.INPUT?function(e,t){let n=r.getTokenAttr(t,b.TYPE);n&&n.toLowerCase()===v?e._appendElement(t,O.HTML):eA(e,t),t.ackSelfClosing=!0}(e,t):eA(e,t);break;case 6:n===g.SCRIPT?er(e,t):eA(e,t);break;case 7:n===g.CAPTION?(e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,O.HTML),e.insertionMode=P):eA(e,t);break;case 8:n===g.COLGROUP?(e.openElements.clearBackToTableContext(),e._insertElement(t,O.HTML),e.insertionMode=I):n===g.TEMPLATE?er(e,t):eA(e,t);break;default:eA(e,t)}}function eC(e,t){let n=t.tagName;n===g.TABLE?e.openElements.hasInTableScope(g.TABLE)&&(e.openElements.popUntilTagNamePopped(g.TABLE),e._resetInsertionMode()):n===g.TEMPLATE?ei(e,t):n!==g.BODY&&n!==g.CAPTION&&n!==g.COL&&n!==g.COLGROUP&&n!==g.HTML&&n!==g.TBODY&&n!==g.TD&&n!==g.TFOOT&&n!==g.TH&&n!==g.THEAD&&n!==g.TR&&eA(e,t)}function eA(e,t){let n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function eR(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0?(e.openElements.popUntilTagNamePopped(g.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function eL(e,t){e.insertionMode=E,e._processToken(t)}function eD(e,t){e.insertionMode=E,e._processToken(t)}e.exports=class{constructor(e){this.options=c(y,e),this.treeAdapter=this.options.treeAdapter,this.pendingScript=null,this.options.sourceCodeLocationInfo&&l.install(this,o),this.options.onParseError&&l.install(this,s,{onParseError:this.options.onParseError})}parse(e){let t=this.treeAdapter.createDocument();return this._bootstrap(t,null),this.tokenizer.write(e,!0),this._runParsingLoop(null),t}parseFragment(e,t){t||(t=this.treeAdapter.createElement(g.TEMPLATE,O.HTML,[]));let n=this.treeAdapter.createElement("documentmock",O.HTML,[]);this._bootstrap(n,t),this.treeAdapter.getTagName(t)===g.TEMPLATE&&this._pushTmplInsertionMode(M),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(e,!0),this._runParsingLoop(null);let r=this.treeAdapter.getFirstChild(n),i=this.treeAdapter.createDocumentFragment();return this._adoptNodes(r,i),i}_bootstrap(e,t){this.tokenizer=new r(this.options),this.stopped=!1,this.insertionMode=x,this.originalInsertionMode="",this.document=e,this.fragmentContext=t,this.headElement=null,this.formElement=null,this.openElements=new i(this.document,this.treeAdapter),this.activeFormattingElements=new a(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1}_err(){}_runParsingLoop(e){for(;!this.stopped;){this._setupTokenizerCDATAMode();let t=this.tokenizer.getNextToken();if(t.type===r.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.type===r.WHITESPACE_CHARACTER_TOKEN&&"\n"===t.chars[0])){if(1===t.chars.length)continue;t.chars=t.chars.substr(1)}if(this._processInputToken(t),e&&this.pendingScript)break}}runParsingLoopForCurrentChunk(e,t){if(this._runParsingLoop(t),t&&this.pendingScript){let e=this.pendingScript;this.pendingScript=null,t(e);return}e&&e()}_setupTokenizerCDATAMode(){let e=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=e&&e!==this.document&&this.treeAdapter.getNamespaceURI(e)!==O.HTML&&!this._isIntegrationPoint(e)}_switchToTextParsing(e,t){this._insertElement(e,O.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=C}switchToPlaintextParsing(){this.insertionMode=C,this.originalInsertionMode=E,this.tokenizer.state=r.MODE.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;do{if(this.treeAdapter.getTagName(e)===g.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}while(e)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===O.HTML){let e=this.treeAdapter.getTagName(this.fragmentContext);e===g.TITLE||e===g.TEXTAREA?this.tokenizer.state=r.MODE.RCDATA:e===g.STYLE||e===g.XMP||e===g.IFRAME||e===g.NOEMBED||e===g.NOFRAMES||e===g.NOSCRIPT?this.tokenizer.state=r.MODE.RAWTEXT:e===g.SCRIPT?this.tokenizer.state=r.MODE.SCRIPT_DATA:e===g.PLAINTEXT&&(this.tokenizer.state=r.MODE.PLAINTEXT)}}_setDocumentType(e){let t=e.name||"",n=e.publicId||"",r=e.systemId||"";this.treeAdapter.setDocumentType(this.document,t,n,r)}_attachElementToTree(e){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{let t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n)}_insertElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n),this.openElements.push(n)}_insertFakeElement(e){let t=this.treeAdapter.createElement(e,O.HTML,[]);this._attachElementToTree(t),this.openElements.push(t)}_insertTemplate(e){let t=this.treeAdapter.createElement(e.tagName,O.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t),this.openElements.push(t)}_insertFakeRootElement(){let e=this.treeAdapter.createElement(g.HTML,O.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e)}_appendCommentNode(e,t){let n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n)}_insertCharacters(e){if(this._shouldFosterParentOnInsertion())this._fosterParentText(e.chars);else{let t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(t,e.chars)}}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_shouldProcessTokenInForeignContent(e){let t=this._getAdjustedCurrentElement();if(!t||t===this.document)return!1;let n=this.treeAdapter.getNamespaceURI(t);if(n===O.HTML||this.treeAdapter.getTagName(t)===g.ANNOTATION_XML&&n===O.MATHML&&e.type===r.START_TAG_TOKEN&&e.tagName===g.SVG)return!1;let i=e.type===r.CHARACTER_TOKEN||e.type===r.NULL_CHARACTER_TOKEN||e.type===r.WHITESPACE_CHARACTER_TOKEN,a=e.type===r.START_TAG_TOKEN&&e.tagName!==g.MGLYPH&&e.tagName!==g.MALIGNMARK;return!((a||i)&&this._isIntegrationPoint(t,O.MATHML)||(e.type===r.START_TAG_TOKEN||i)&&this._isIntegrationPoint(t,O.HTML))&&e.type!==r.EOF_TOKEN}_processToken(e){q[this.insertionMode][e.type](this,e)}_processTokenInBodyMode(e){q[E][e.type](this,e)}_processTokenInForeignContent(e){e.type===r.CHARACTER_TOKEN?(this._insertCharacters(e),this.framesetOk=!1):e.type===r.NULL_CHARACTER_TOKEN?(e.chars=f.REPLACEMENT_CHARACTER,this._insertCharacters(e)):e.type===r.WHITESPACE_CHARACTER_TOKEN?K(this,e):e.type===r.COMMENT_TOKEN?X(this,e):e.type===r.START_TAG_TOKEN?function(e,t){if(h.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==O.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{let n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===O.MATHML?h.adjustTokenMathMLAttrs(t):r===O.SVG&&(h.adjustTokenSVGTagName(t),h.adjustTokenSVGAttrs(t)),h.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}(this,e):e.type===r.END_TAG_TOKEN&&function(e,t){for(let n=e.openElements.stackTop;n>0;n--){let r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===O.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}(this,e)}_processInputToken(e){this._shouldProcessTokenInForeignContent(e)?this._processTokenInForeignContent(e):this._processToken(e),e.type===r.START_TAG_TOKEN&&e.selfClosing&&!e.ackSelfClosing&&this._err(p.nonVoidHtmlElementStartTagWithTrailingSolidus)}_isIntegrationPoint(e,t){let n=this.treeAdapter.getTagName(e),r=this.treeAdapter.getNamespaceURI(e),i=this.treeAdapter.getAttrList(e);return h.isIntegrationPoint(n,r,i,t)}_reconstructActiveFormattingElements(){let e=this.activeFormattingElements.length;if(e){let t=e,n=null;do if(t--,(n=this.activeFormattingElements.entries[t]).type===a.MARKER_ENTRY||this.openElements.contains(n.element)){t++;break}while(t>0);for(let r=t;r=0;e--){let n=this.openElements.items[e];0===e&&(t=!0,this.fragmentContext&&(n=this.fragmentContext));let r=this.treeAdapter.getTagName(n),i=W[r];if(i){this.insertionMode=i;break}if(t||r!==g.TD&&r!==g.TH){if(t||r!==g.HEAD){if(r===g.SELECT){this._resetInsertionModeForSelect(e);break}if(r===g.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}if(r===g.HTML){this.insertionMode=this.headElement?w:k;break}else if(t){this.insertionMode=E;break}}else{this.insertionMode=_;break}}else{this.insertionMode=L;break}}}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){let e=this.openElements.items[t],n=this.treeAdapter.getTagName(e);if(n===g.TEMPLATE)break;if(n===g.TABLE){this.insertionMode=Q;return}}this.insertionMode=D}_pushTmplInsertionMode(e){this.tmplInsertionModeStack.push(e),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=e}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(e){let t=this.treeAdapter.getTagName(e);return t===g.TABLE||t===g.TBODY||t===g.TFOOT||t===g.THEAD||t===g.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){let e={parent:null,beforeElement:null};for(let t=this.openElements.stackTop;t>=0;t--){let n=this.openElements.items[t],r=this.treeAdapter.getTagName(n),i=this.treeAdapter.getNamespaceURI(n);if(r===g.TEMPLATE&&i===O.HTML){e.parent=this.treeAdapter.getTemplateContent(n);break}if(r===g.TABLE){e.parent=this.treeAdapter.getParentNode(n),e.parent?e.beforeElement=n:e.parent=this.openElements.items[t-1];break}}return e.parent||(e.parent=this.openElements.items[0]),e}_fosterParentElement(e){let t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_fosterParentText(e){let t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertTextBefore(t.parent,e,t.beforeElement):this.treeAdapter.insertText(t.parent,e)}_isSpecialElement(e){let t=this.treeAdapter.getTagName(e),n=this.treeAdapter.getNamespaceURI(e);return m.SPECIAL_ELEMENTS[n][t]}}},84889:function(e,t,n){"use strict";let r=n(27447),i=r.TAG_NAMES,a=r.NAMESPACES;function o(e){switch(e.length){case 1:return e===i.P;case 2:return e===i.RB||e===i.RP||e===i.RT||e===i.DD||e===i.DT||e===i.LI;case 3:return e===i.RTC;case 6:return e===i.OPTION;case 8:return e===i.OPTGROUP}return!1}function s(e,t){switch(e.length){case 2:if(e===i.TD||e===i.TH)return t===a.HTML;if(e===i.MI||e===i.MO||e===i.MN||e===i.MS)return t===a.MATHML;break;case 4:if(e===i.HTML)return t===a.HTML;if(e===i.DESC)return t===a.SVG;break;case 5:if(e===i.TABLE)return t===a.HTML;if(e===i.MTEXT)return t===a.MATHML;if(e===i.TITLE)return t===a.SVG;break;case 6:return(e===i.APPLET||e===i.OBJECT)&&t===a.HTML;case 7:return(e===i.CAPTION||e===i.MARQUEE)&&t===a.HTML;case 8:return e===i.TEMPLATE&&t===a.HTML;case 13:return e===i.FOREIGN_OBJECT&&t===a.SVG;case 14:return e===i.ANNOTATION_XML&&t===a.MATHML}return!1}e.exports=class{constructor(e,t){this.stackTop=-1,this.items=[],this.current=e,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=t}_indexOf(e){let t=-1;for(let n=this.stackTop;n>=0;n--)if(this.items[n]===e){t=n;break}return t}_isInTemplate(){return this.currentTagName===i.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===a.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(e){this.items[++this.stackTop]=e,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(e,t){let n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&this._updateCurrentElement()}insertAfter(e,t){let n=this._indexOf(e)+1;this.items.splice(n,0,t),n===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(e){for(;this.stackTop>-1;){let t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===e&&n===a.HTML)break}}popUntilElementPopped(e){for(;this.stackTop>-1;){let t=this.current;if(this.pop(),t===e)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){let e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===i.H1||e===i.H2||e===i.H3||e===i.H4||e===i.H5||e===i.H6&&t===a.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){let e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===i.TD||e===i.TH&&t===a.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==i.TABLE&&this.currentTagName!==i.TEMPLATE&&this.currentTagName!==i.HTML||this.treeAdapter.getNamespaceURI(this.current)!==a.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==i.TBODY&&this.currentTagName!==i.TFOOT&&this.currentTagName!==i.THEAD&&this.currentTagName!==i.TEMPLATE&&this.currentTagName!==i.HTML||this.treeAdapter.getNamespaceURI(this.current)!==a.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==i.TR&&this.currentTagName!==i.TEMPLATE&&this.currentTagName!==i.HTML||this.treeAdapter.getNamespaceURI(this.current)!==a.HTML;)this.pop()}remove(e){for(let t=this.stackTop;t>=0;t--)if(this.items[t]===e){this.items.splice(t,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){let e=this.items[1];return e&&this.treeAdapter.getTagName(e)===i.BODY?e:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e);return--t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.currentTagName===i.HTML}hasInScope(e){for(let t=this.stackTop;t>=0;t--){let n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===a.HTML)break;if(s(n,r))return!1}return!0}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){let t=this.treeAdapter.getTagName(this.items[e]),n=this.treeAdapter.getNamespaceURI(this.items[e]);if((t===i.H1||t===i.H2||t===i.H3||t===i.H4||t===i.H5||t===i.H6)&&n===a.HTML)break;if(s(t,n))return!1}return!0}hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){let n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===a.HTML)break;if((n===i.UL||n===i.OL)&&r===a.HTML||s(n,r))return!1}return!0}hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){let n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===a.HTML)break;if(n===i.BUTTON&&r===a.HTML||s(n,r))return!1}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){let n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===a.HTML){if(n===e)break;if(n===i.TABLE||n===i.TEMPLATE||n===i.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){let t=this.treeAdapter.getTagName(this.items[e]),n=this.treeAdapter.getNamespaceURI(this.items[e]);if(n===a.HTML){if(t===i.TBODY||t===i.THEAD||t===i.TFOOT)break;if(t===i.TABLE||t===i.HTML)return!1}}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){let n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===a.HTML){if(n===e)break;if(n!==i.OPTION&&n!==i.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;o(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;function(e){switch(e.length){case 1:return e===i.P;case 2:return e===i.RB||e===i.RP||e===i.RT||e===i.DD||e===i.DT||e===i.LI||e===i.TD||e===i.TH||e===i.TR;case 3:return e===i.RTC;case 5:return e===i.TBODY||e===i.TFOOT||e===i.THEAD;case 6:return e===i.OPTION;case 7:return e===i.CAPTION;case 8:return e===i.OPTGROUP||e===i.COLGROUP}return!1}(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;o(this.currentTagName)&&this.currentTagName!==e;)this.pop()}}},34752:function(e,t,n){"use strict";let r=n(49310),i=n(2657),a=n(78862),o=n(93107),s=i.CODE_POINTS,l=i.CODE_POINT_SEQUENCES,u={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},c="DATA_STATE",d="RCDATA_STATE",h="RAWTEXT_STATE",p="SCRIPT_DATA_STATE",f="PLAINTEXT_STATE",m="TAG_OPEN_STATE",g="END_TAG_OPEN_STATE",O="TAG_NAME_STATE",b="RCDATA_LESS_THAN_SIGN_STATE",y="RCDATA_END_TAG_OPEN_STATE",v="RCDATA_END_TAG_NAME_STATE",x="RAWTEXT_LESS_THAN_SIGN_STATE",T="RAWTEXT_END_TAG_OPEN_STATE",k="RAWTEXT_END_TAG_NAME_STATE",_="SCRIPT_DATA_LESS_THAN_SIGN_STATE",S="SCRIPT_DATA_END_TAG_OPEN_STATE",w="SCRIPT_DATA_END_TAG_NAME_STATE",E="SCRIPT_DATA_ESCAPE_START_STATE",C="SCRIPT_DATA_ESCAPE_START_DASH_STATE",A="SCRIPT_DATA_ESCAPED_STATE",R="SCRIPT_DATA_ESCAPED_DASH_STATE",P="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",I="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",N="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",$="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",L="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",D="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",Q="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",M="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",F="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",B="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",U="BEFORE_ATTRIBUTE_NAME_STATE",j="ATTRIBUTE_NAME_STATE",z="AFTER_ATTRIBUTE_NAME_STATE",W="BEFORE_ATTRIBUTE_VALUE_STATE",Z="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",q="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",G="ATTRIBUTE_VALUE_UNQUOTED_STATE",H="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",Y="SELF_CLOSING_START_TAG_STATE",X="BOGUS_COMMENT_STATE",V="MARKUP_DECLARATION_OPEN_STATE",K="COMMENT_START_STATE",J="COMMENT_START_DASH_STATE",ee="COMMENT_STATE",et="COMMENT_LESS_THAN_SIGN_STATE",en="COMMENT_LESS_THAN_SIGN_BANG_STATE",er="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",ei="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",ea="COMMENT_END_DASH_STATE",eo="COMMENT_END_STATE",es="COMMENT_END_BANG_STATE",el="DOCTYPE_STATE",eu="BEFORE_DOCTYPE_NAME_STATE",ec="DOCTYPE_NAME_STATE",ed="AFTER_DOCTYPE_NAME_STATE",eh="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",ep="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",ef="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",em="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",eg="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",eO="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",eb="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",ey="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",ev="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",ex="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",eT="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",ek="BOGUS_DOCTYPE_STATE",e_="CDATA_SECTION_STATE",eS="CDATA_SECTION_BRACKET_STATE",ew="CDATA_SECTION_END_STATE",eE="CHARACTER_REFERENCE_STATE",eC="NAMED_CHARACTER_REFERENCE_STATE",eA="AMBIGUOS_AMPERSAND_STATE",eR="NUMERIC_CHARACTER_REFERENCE_STATE",eP="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",eI="DECIMAL_CHARACTER_REFERENCE_START_STATE",eN="HEXADEMICAL_CHARACTER_REFERENCE_STATE",e$="DECIMAL_CHARACTER_REFERENCE_STATE",eL="NUMERIC_CHARACTER_REFERENCE_END_STATE";function eD(e){return e===s.SPACE||e===s.LINE_FEED||e===s.TABULATION||e===s.FORM_FEED}function eQ(e){return e>=s.DIGIT_0&&e<=s.DIGIT_9}function eM(e){return e>=s.LATIN_CAPITAL_A&&e<=s.LATIN_CAPITAL_Z}function eF(e){return e>=s.LATIN_SMALL_A&&e<=s.LATIN_SMALL_Z}function eB(e){return eF(e)||eM(e)}function eU(e){return eB(e)||eQ(e)}function ej(e){return e>=s.LATIN_CAPITAL_A&&e<=s.LATIN_CAPITAL_F}function ez(e){return e>=s.LATIN_SMALL_A&&e<=s.LATIN_SMALL_F}function eW(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-=65536)>>>10&1023|55296)+String.fromCharCode(56320|1023&e)}function eZ(e){return String.fromCharCode(e+32)}function eq(e,t){let n=a[++e],r=++e,i=r+n-1;for(;r<=i;){let e=r+i>>>1,o=a[e];if(ot))return a[e+n];i=e-1}}return -1}class eG{constructor(){this.preprocessor=new r,this.tokenQueue=[],this.allowCDATA=!1,this.state=c,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(e){this._consume(),this._err(e),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;let e=this._consume();this._ensureHibernation()||this[this.state](e)}return this.tokenQueue.shift()}write(e,t){this.active=!0,this.preprocessor.write(e,t)}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:eG.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(e){this.state=e,this._unconsume()}_consumeSequenceIfMatch(e,t,n){let r,i=0,a=!0,o=e.length,l=0,u=t;for(;l0&&(u=this._consume(),i++),u===s.EOF||u!==(r=e[l])&&(n||u!==r+32)){a=!1;break}if(!a)for(;i--;)this._unconsume();return a}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==l.SCRIPT_STRING.length)return!1;for(let e=0;e0&&this._err(o.endTagWithAttributes),e.selfClosing&&this._err(o.endTagWithTrailingSolidus)),this.tokenQueue.push(e)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(e,t){this.currentCharacterToken&&this.currentCharacterToken.type!==e&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=t:this._createCharacterToken(e,t)}_emitCodePoint(e){let t=eG.CHARACTER_TOKEN;eD(e)?t=eG.WHITESPACE_CHARACTER_TOKEN:e===s.NULL&&(t=eG.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(t,eW(e))}_emitSeveralCodePoints(e){for(let t=0;t-1;){let e=a[r],i=e<7,o=i&&1&e;o&&(t=2&e?[a[++r],a[++r]]:[a[++r]],n=0);let l=this._consume();if(this.tempBuff.push(l),n++,l===s.EOF)break;r=i?4&e?eq(r,l):-1:l===e?++r:-1}for(;n--;)this.tempBuff.pop(),this._unconsume();return t}_isCharacterReferenceInAttribute(){return this.returnState===Z||this.returnState===q||this.returnState===G}_isCharacterReferenceAttributeQuirk(e){if(!e&&this._isCharacterReferenceInAttribute()){let e=this._consume();return this._unconsume(),e===s.EQUALS_SIGN||eU(e)}return!1}_flushCodePointsConsumedAsCharacterReference(){if(this._isCharacterReferenceInAttribute())for(let e=0;e")):e===s.NULL?(this._err(o.unexpectedNullCharacter),this.state=A,this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(o.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=A,this._emitCodePoint(e))}[I](e){e===s.SOLIDUS?(this.tempBuff=[],this.state=N):eB(e)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(L)):(this._emitChars("<"),this._reconsumeInState(A))}[N](e){eB(e)?(this._createEndTagToken(),this._reconsumeInState($)):(this._emitChars("")):e===s.NULL?(this._err(o.unexpectedNullCharacter),this.state=D,this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(o.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=D,this._emitCodePoint(e))}[F](e){e===s.SOLIDUS?(this.tempBuff=[],this.state=B,this._emitChars("/")):this._reconsumeInState(D)}[B](e){eD(e)||e===s.SOLIDUS||e===s.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?A:D,this._emitCodePoint(e)):eM(e)?(this.tempBuff.push(e+32),this._emitCodePoint(e)):eF(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(D)}[U](e){eD(e)||(e===s.SOLIDUS||e===s.GREATER_THAN_SIGN||e===s.EOF?this._reconsumeInState(z):e===s.EQUALS_SIGN?(this._err(o.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=j):(this._createAttr(""),this._reconsumeInState(j)))}[j](e){eD(e)||e===s.SOLIDUS||e===s.GREATER_THAN_SIGN||e===s.EOF?(this._leaveAttrName(z),this._unconsume()):e===s.EQUALS_SIGN?this._leaveAttrName(W):eM(e)?this.currentAttr.name+=eZ(e):e===s.QUOTATION_MARK||e===s.APOSTROPHE||e===s.LESS_THAN_SIGN?(this._err(o.unexpectedCharacterInAttributeName),this.currentAttr.name+=eW(e)):e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentAttr.name+=i.REPLACEMENT_CHARACTER):this.currentAttr.name+=eW(e)}[z](e){eD(e)||(e===s.SOLIDUS?this.state=Y:e===s.EQUALS_SIGN?this.state=W:e===s.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(j)))}[W](e){eD(e)||(e===s.QUOTATION_MARK?this.state=Z:e===s.APOSTROPHE?this.state=q:e===s.GREATER_THAN_SIGN?(this._err(o.missingAttributeValue),this.state=c,this._emitCurrentToken()):this._reconsumeInState(G))}[Z](e){e===s.QUOTATION_MARK?this.state=H:e===s.AMPERSAND?(this.returnState=Z,this.state=eE):e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentAttr.value+=i.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(o.eofInTag),this._emitEOFToken()):this.currentAttr.value+=eW(e)}[q](e){e===s.APOSTROPHE?this.state=H:e===s.AMPERSAND?(this.returnState=q,this.state=eE):e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentAttr.value+=i.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(o.eofInTag),this._emitEOFToken()):this.currentAttr.value+=eW(e)}[G](e){eD(e)?this._leaveAttrValue(U):e===s.AMPERSAND?(this.returnState=G,this.state=eE):e===s.GREATER_THAN_SIGN?(this._leaveAttrValue(c),this._emitCurrentToken()):e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentAttr.value+=i.REPLACEMENT_CHARACTER):e===s.QUOTATION_MARK||e===s.APOSTROPHE||e===s.LESS_THAN_SIGN||e===s.EQUALS_SIGN||e===s.GRAVE_ACCENT?(this._err(o.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=eW(e)):e===s.EOF?(this._err(o.eofInTag),this._emitEOFToken()):this.currentAttr.value+=eW(e)}[H](e){eD(e)?this._leaveAttrValue(U):e===s.SOLIDUS?this._leaveAttrValue(Y):e===s.GREATER_THAN_SIGN?(this._leaveAttrValue(c),this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInTag),this._emitEOFToken()):(this._err(o.missingWhitespaceBetweenAttributes),this._reconsumeInState(U))}[Y](e){e===s.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInTag),this._emitEOFToken()):(this._err(o.unexpectedSolidusInTag),this._reconsumeInState(U))}[X](e){e===s.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):e===s.EOF?(this._emitCurrentToken(),this._emitEOFToken()):e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentToken.data+=i.REPLACEMENT_CHARACTER):this.currentToken.data+=eW(e)}[V](e){this._consumeSequenceIfMatch(l.DASH_DASH_STRING,e,!0)?(this._createCommentToken(),this.state=K):this._consumeSequenceIfMatch(l.DOCTYPE_STRING,e,!1)?this.state=el:this._consumeSequenceIfMatch(l.CDATA_START_STRING,e,!0)?this.allowCDATA?this.state=e_:(this._err(o.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=X):this._ensureHibernation()||(this._err(o.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(X))}[K](e){e===s.HYPHEN_MINUS?this.state=J:e===s.GREATER_THAN_SIGN?(this._err(o.abruptClosingOfEmptyComment),this.state=c,this._emitCurrentToken()):this._reconsumeInState(ee)}[J](e){e===s.HYPHEN_MINUS?this.state=eo:e===s.GREATER_THAN_SIGN?(this._err(o.abruptClosingOfEmptyComment),this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(ee))}[ee](e){e===s.HYPHEN_MINUS?this.state=ea:e===s.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=et):e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentToken.data+=i.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(o.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=eW(e)}[et](e){e===s.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=en):e===s.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(ee)}[en](e){e===s.HYPHEN_MINUS?this.state=er:this._reconsumeInState(ee)}[er](e){e===s.HYPHEN_MINUS?this.state=ei:this._reconsumeInState(ea)}[ei](e){e!==s.GREATER_THAN_SIGN&&e!==s.EOF&&this._err(o.nestedComment),this._reconsumeInState(eo)}[ea](e){e===s.HYPHEN_MINUS?this.state=eo:e===s.EOF?(this._err(o.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(ee))}[eo](e){e===s.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):e===s.EXCLAMATION_MARK?this.state=es:e===s.HYPHEN_MINUS?this.currentToken.data+="-":e===s.EOF?(this._err(o.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(ee))}[es](e){e===s.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=ea):e===s.GREATER_THAN_SIGN?(this._err(o.incorrectlyClosedComment),this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(ee))}[el](e){eD(e)?this.state=eu:e===s.GREATER_THAN_SIGN?this._reconsumeInState(eu):e===s.EOF?(this._err(o.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(o.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(eu))}[eu](e){eD(e)||(eM(e)?(this._createDoctypeToken(eZ(e)),this.state=ec):e===s.NULL?(this._err(o.unexpectedNullCharacter),this._createDoctypeToken(i.REPLACEMENT_CHARACTER),this.state=ec):e===s.GREATER_THAN_SIGN?(this._err(o.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=c):e===s.EOF?(this._err(o.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(eW(e)),this.state=ec))}[ec](e){eD(e)?this.state=ed:e===s.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):eM(e)?this.currentToken.name+=eZ(e):e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentToken.name+=i.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=eW(e)}[ed](e){!eD(e)&&(e===s.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(l.PUBLIC_STRING,e,!1)?this.state=eh:this._consumeSequenceIfMatch(l.SYSTEM_STRING,e,!1)?this.state=eb:this._ensureHibernation()||(this._err(o.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(ek)))}[eh](e){eD(e)?this.state=ep:e===s.QUOTATION_MARK?(this._err(o.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=ef):e===s.APOSTROPHE?(this._err(o.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=em):e===s.GREATER_THAN_SIGN?(this._err(o.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(o.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(ek))}[ep](e){eD(e)||(e===s.QUOTATION_MARK?(this.currentToken.publicId="",this.state=ef):e===s.APOSTROPHE?(this.currentToken.publicId="",this.state=em):e===s.GREATER_THAN_SIGN?(this._err(o.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(o.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(ek)))}[ef](e){e===s.QUOTATION_MARK?this.state=eg:e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentToken.publicId+=i.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(o.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=c):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=eW(e)}[em](e){e===s.APOSTROPHE?this.state=eg:e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentToken.publicId+=i.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(o.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=c):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=eW(e)}[eg](e){eD(e)?this.state=eO:e===s.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):e===s.QUOTATION_MARK?(this._err(o.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=ev):e===s.APOSTROPHE?(this._err(o.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=ex):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(o.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(ek))}[eO](e){eD(e)||(e===s.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=c):e===s.QUOTATION_MARK?(this.currentToken.systemId="",this.state=ev):e===s.APOSTROPHE?(this.currentToken.systemId="",this.state=ex):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(o.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(ek)))}[eb](e){eD(e)?this.state=ey:e===s.QUOTATION_MARK?(this._err(o.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=ev):e===s.APOSTROPHE?(this._err(o.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=ex):e===s.GREATER_THAN_SIGN?(this._err(o.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(o.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(ek))}[ey](e){eD(e)||(e===s.QUOTATION_MARK?(this.currentToken.systemId="",this.state=ev):e===s.APOSTROPHE?(this.currentToken.systemId="",this.state=ex):e===s.GREATER_THAN_SIGN?(this._err(o.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(o.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(ek)))}[ev](e){e===s.QUOTATION_MARK?this.state=eT:e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentToken.systemId+=i.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(o.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=c):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=eW(e)}[ex](e){e===s.APOSTROPHE?this.state=eT:e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentToken.systemId+=i.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(o.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=c):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=eW(e)}[eT](e){eD(e)||(e===s.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=c):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(o.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(ek)))}[ek](e){e===s.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=c):e===s.NULL?this._err(o.unexpectedNullCharacter):e===s.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[e_](e){e===s.RIGHT_SQUARE_BRACKET?this.state=eS:e===s.EOF?(this._err(o.eofInCdata),this._emitEOFToken()):this._emitCodePoint(e)}[eS](e){e===s.RIGHT_SQUARE_BRACKET?this.state=ew:(this._emitChars("]"),this._reconsumeInState(e_))}[ew](e){e===s.GREATER_THAN_SIGN?this.state=c:e===s.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(e_))}[eE](e){this.tempBuff=[s.AMPERSAND],e===s.NUMBER_SIGN?(this.tempBuff.push(e),this.state=eR):eU(e)?this._reconsumeInState(eC):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[eC](e){let t=this._matchNamedCharacterReference(e);if(this._ensureHibernation())this.tempBuff=[s.AMPERSAND];else if(t){let e=this.tempBuff[this.tempBuff.length-1]===s.SEMICOLON;this._isCharacterReferenceAttributeQuirk(e)||(e||this._errOnNextCodePoint(o.missingSemicolonAfterCharacterReference),this.tempBuff=t),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=eA}[eA](e){eU(e)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=eW(e):this._emitCodePoint(e):(e===s.SEMICOLON&&this._err(o.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[eR](e){this.charRefCode=0,e===s.LATIN_SMALL_X||e===s.LATIN_CAPITAL_X?(this.tempBuff.push(e),this.state=eP):this._reconsumeInState(eI)}[eP](e){eQ(e)||ej(e)||ez(e)?this._reconsumeInState(eN):(this._err(o.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[eI](e){eQ(e)?this._reconsumeInState(e$):(this._err(o.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[eN](e){ej(e)?this.charRefCode=16*this.charRefCode+e-55:ez(e)?this.charRefCode=16*this.charRefCode+e-87:eQ(e)?this.charRefCode=16*this.charRefCode+e-48:e===s.SEMICOLON?this.state=eL:(this._err(o.missingSemicolonAfterCharacterReference),this._reconsumeInState(eL))}[e$](e){eQ(e)?this.charRefCode=10*this.charRefCode+e-48:e===s.SEMICOLON?this.state=eL:(this._err(o.missingSemicolonAfterCharacterReference),this._reconsumeInState(eL))}[eL](){if(this.charRefCode===s.NULL)this._err(o.nullCharacterReference),this.charRefCode=s.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(o.characterReferenceOutsideUnicodeRange),this.charRefCode=s.REPLACEMENT_CHARACTER;else if(i.isSurrogate(this.charRefCode))this._err(o.surrogateCharacterReference),this.charRefCode=s.REPLACEMENT_CHARACTER;else if(i.isUndefinedCodePoint(this.charRefCode))this._err(o.noncharacterCharacterReference);else if(i.isControlCodePoint(this.charRefCode)||this.charRefCode===s.CARRIAGE_RETURN){this._err(o.controlCharacterReference);let e=u[this.charRefCode];e&&(this.charRefCode=e)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}}eG.CHARACTER_TOKEN="CHARACTER_TOKEN",eG.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN",eG.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN",eG.START_TAG_TOKEN="START_TAG_TOKEN",eG.END_TAG_TOKEN="END_TAG_TOKEN",eG.COMMENT_TOKEN="COMMENT_TOKEN",eG.DOCTYPE_TOKEN="DOCTYPE_TOKEN",eG.EOF_TOKEN="EOF_TOKEN",eG.HIBERNATION_TOKEN="HIBERNATION_TOKEN",eG.MODE={DATA:c,RCDATA:d,RAWTEXT:h,SCRIPT_DATA:p,PLAINTEXT:f},eG.getTokenAttr=function(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null},e.exports=eG},78862:function(e){"use strict";e.exports=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204])},49310:function(e,t,n){"use strict";let r=n(2657),i=n(93107),a=r.CODE_POINTS;e.exports=class{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.lastCharPos){let t=this.html.charCodeAt(this.pos+1);if(r.isSurrogatePair(t))return this.pos++,this._addGap(),r.getSurrogatePairCodePoint(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,a.EOF;return this._err(i.surrogateInInputStream),e}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(e,t){this.html?this.html+=e:this.html=e,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,a.EOF;let e=this.html.charCodeAt(this.pos);if(this.skipNextNewLine&&e===a.LINE_FEED)return this.skipNextNewLine=!1,this._addGap(),this.advance();if(e===a.CARRIAGE_RETURN)return this.skipNextNewLine=!0,a.LINE_FEED;this.skipNextNewLine=!1,r.isSurrogate(e)&&(e=this._processSurrogate(e));let t=e>31&&e<127||e===a.LINE_FEED||e===a.CARRIAGE_RETURN||e>159&&e<64976;return t||this._checkForProblematicCharacters(e),e}_checkForProblematicCharacters(e){r.isControlCodePoint(e)?this._err(i.controlCharacterInInputStream):r.isUndefinedCodePoint(e)&&this._err(i.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}}},47971:function(e,t,n){"use strict";let{DOCUMENT_MODE:r}=n(27447);t.createDocument=function(){return{nodeName:"#document",mode:r.NO_QUIRKS,childNodes:[]}},t.createDocumentFragment=function(){return{nodeName:"#document-fragment",childNodes:[]}},t.createElement=function(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},t.createCommentNode=function(e){return{nodeName:"#comment",data:e,parentNode:null}};let i=function(e){return{nodeName:"#text",value:e,parentNode:null}},a=t.appendChild=function(e,t){e.childNodes.push(t),t.parentNode=e},o=t.insertBefore=function(e,t,n){let r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e};t.setTemplateContent=function(e,t){e.content=t},t.getTemplateContent=function(e){return e.content},t.setDocumentType=function(e,t,n,r){let i=null;for(let t=0;t(Object.keys(t).forEach(n=>{e[n]=t[n]}),e),Object.create(null))}},24748:function(e){"use strict";class t{constructor(e){let t={},n=this._getOverriddenMethods(this,t);for(let r of Object.keys(n))"function"==typeof n[r]&&(t[r]=e[r],e[r]=n[r])}_getOverriddenMethods(){throw Error("Not implemented")}}t.install=function(e,t,n){e.__mixins||(e.__mixins=[]);for(let n=0;n=97&&t<=122||t>=65&&t<=90}},7961:function(e,t,n){"use strict";var r=n(46260),i=n(46195);e.exports=function(e){return r(e)||i(e)}},48738:function(e){/*! + */var n,r=Symbol.for("react.element"),i=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function O(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case a:case s:case o:case h:case p:return e;default:switch(e=e&&e.$$typeof){case c:case u:case d:case m:case f:case l:return e;default:return t}}case i:return t}}}n=Symbol.for("react.module.reference"),t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=d,t.Fragment=a,t.Lazy=m,t.Memo=f,t.Portal=i,t.Profiler=s,t.StrictMode=o,t.Suspense=h,t.SuspenseList=p,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return O(e)===u},t.isContextProvider=function(e){return O(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return O(e)===d},t.isFragment=function(e){return O(e)===a},t.isLazy=function(e){return O(e)===m},t.isMemo=function(e){return O(e)===f},t.isPortal=function(e){return O(e)===i},t.isProfiler=function(e){return O(e)===s},t.isStrictMode=function(e){return O(e)===o},t.isSuspense=function(e){return O(e)===h},t.isSuspenseList=function(e){return O(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===s||e===o||e===h||e===p||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===f||e.$$typeof===l||e.$$typeof===u||e.$$typeof===d||e.$$typeof===n||void 0!==e.getModuleId)},t.typeOf=O},97267:function(e,t,n){"use strict";e.exports=n(21448)},94827:function(e,t,n){var r=n(18139);function i(e,t){var n,i,a,o=null;if(!e||"string"!=typeof e)return o;for(var s=r(e),l="function"==typeof t,u=0,c=s.length;u=t?e:""+Array(t+1-r.length).join(n)+e},(m={})[f="en"]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||"th")+"]"}},g="$isDayjsObject",O=function(e){return e instanceof x||!(!e||!e[g])},b=function e(t,n,r){var i;if(!t)return f;if("string"==typeof t){var a=t.toLowerCase();m[a]&&(i=a),n&&(m[a]=n,i=a);var o=t.split("-");if(!i&&o.length>1)return e(o[0])}else{var s=t.name;m[s]=t,i=s}return!r&&i&&(f=i),i||!r&&f},y=function(e,t){if(O(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new x(n)},(v={s:p,z:function(e){var t=-e.utcOffset(),n=Math.abs(t);return(t<=0?"+":"-")+p(Math.floor(n/60),2,"0")+":"+p(n%60,2,"0")},m:function e(t,n){if(t.date()u)&&(h[o]=u,p.push(o,u),d[o]=a));if(void 0!==r&&void 0===h[r])throw Error(["Could not find a path from ",n," to ",r,"."].join(""));return d},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,n,r){var i=t.single_source_shortest_paths(e,n,r);return t.extract_shortest_path_from_predecessor_list(i,r)},PriorityQueue:{make:function(e){var n,r=t.PriorityQueue,i={};for(n in e=e||{},r)r.hasOwnProperty(n)&&(i[n]=r[n]);return i.queue=[],i.sorter=e.sorter||r.default_sorter,i},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){this.queue.push({value:e,cost:t}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t},27856:function(e){e.exports=function(){"use strict";let{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:i}=Object,{freeze:a,seal:o,create:s}=Object,{apply:l,construct:u}="undefined"!=typeof Reflect&&Reflect;a||(a=function(e){return e}),o||(o=function(e){return e}),l||(l=function(e,t,n){return e.apply(t,n)}),u||(u=function(e,t){return new e(...t)});let c=T(Array.prototype.forEach),d=T(Array.prototype.pop),h=T(Array.prototype.push),p=T(String.prototype.toLowerCase),f=T(String.prototype.toString),m=T(String.prototype.match),g=T(String.prototype.replace),O=T(String.prototype.indexOf),b=T(String.prototype.trim),y=T(Object.prototype.hasOwnProperty),v=T(RegExp.prototype.test),x=(G=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n1?n-1:0),i=1;i2&&void 0!==arguments[2]?arguments[2]:p;t&&t(e,null);let a=r.length;for(;a--;){let t=r[a];if("string"==typeof t){let e=i(t);e!==t&&(n(r)||(r[a]=e),t=e)}e[t]=!0}return e}function _(t){let n=s(null);for(let[r,i]of e(t)){let e=y(t,r);e&&(Array.isArray(i)?n[r]=function(e){for(let t=0;t/gm),F=o(/\${[\w\W]*}/gm),B=o(/^data-[\-\w.\u00B7-\uFFFF]/),U=o(/^aria-[\-\w]+$/),z=o(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),j=o(/^(?:\w+script|data):/i),W=o(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Z=o(/^html$/i),q=o(/^[a-z][a-z\d]*(-[a-z\d]+)+$/i);var G,H=Object.freeze({__proto__:null,MUSTACHE_EXPR:Q,ERB_EXPR:M,TMPLIT_EXPR:F,DATA_ATTR:B,ARIA_ATTR:U,IS_ALLOWED_URI:z,IS_SCRIPT_OR_DATA:j,ATTR_WHITESPACE:W,DOCTYPE_NAME:Z,CUSTOM_ELEMENT:q});let Y=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};return function t(){let n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,i=e=>t(e);if(i.version="3.0.10",i.removed=[],!r||!r.document||9!==r.document.nodeType)return i.isSupported=!1,i;let{document:o}=r,l=o,u=l.currentScript,{DocumentFragment:T,HTMLTemplateElement:Q,Node:M,Element:F,NodeFilter:B,NamedNodeMap:U=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:j,DOMParser:W,trustedTypes:q}=r,G=F.prototype,X=S(G,"cloneNode"),V=S(G,"nextSibling"),K=S(G,"childNodes"),J=S(G,"parentNode");if("function"==typeof Q){let e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let ee="",{implementation:et,createNodeIterator:en,createDocumentFragment:er,getElementsByTagName:ei}=o,{importNode:ea}=l,eo={};i.isSupported="function"==typeof e&&"function"==typeof J&&et&&void 0!==et.createHTMLDocument;let{MUSTACHE_EXPR:es,ERB_EXPR:el,TMPLIT_EXPR:eu,DATA_ATTR:ec,ARIA_ATTR:ed,IS_SCRIPT_OR_DATA:eh,ATTR_WHITESPACE:ep,CUSTOM_ELEMENT:ef}=H,{IS_ALLOWED_URI:em}=H,eg=null,eO=k({},[...w,...E,...C,...R,...I]),eb=null,ey=k({},[...N,...$,...L,...D]),ev=Object.seal(s(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ex=null,eT=null,ek=!0,e_=!0,eS=!1,ew=!0,eE=!1,eC=!1,eA=!1,eR=!1,eP=!1,eI=!1,eN=!1,e$=!0,eL=!1,eD=!0,eQ=!1,eM={},eF=null,eB=k({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),eU=null,ez=k({},["audio","video","img","source","image","track"]),ej=null,eW=k({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),eZ="http://www.w3.org/1998/Math/MathML",eq="http://www.w3.org/2000/svg",eG="http://www.w3.org/1999/xhtml",eH=eG,eY=!1,eX=null,eV=k({},[eZ,eq,eG],f),eK=null,eJ=["application/xhtml+xml","text/html"],e1=null,e0=null,e2=o.createElement("form"),e5=function(e){return e instanceof RegExp||e instanceof Function},e9=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e0||e0!==e){if(e&&"object"==typeof e||(e={}),e=_(e),e1="application/xhtml+xml"===(eK=-1===eJ.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?f:p,eg=y(e,"ALLOWED_TAGS")?k({},e.ALLOWED_TAGS,e1):eO,eb=y(e,"ALLOWED_ATTR")?k({},e.ALLOWED_ATTR,e1):ey,eX=y(e,"ALLOWED_NAMESPACES")?k({},e.ALLOWED_NAMESPACES,f):eV,ej=y(e,"ADD_URI_SAFE_ATTR")?k(_(eW),e.ADD_URI_SAFE_ATTR,e1):eW,eU=y(e,"ADD_DATA_URI_TAGS")?k(_(ez),e.ADD_DATA_URI_TAGS,e1):ez,eF=y(e,"FORBID_CONTENTS")?k({},e.FORBID_CONTENTS,e1):eB,ex=y(e,"FORBID_TAGS")?k({},e.FORBID_TAGS,e1):{},eT=y(e,"FORBID_ATTR")?k({},e.FORBID_ATTR,e1):{},eM=!!y(e,"USE_PROFILES")&&e.USE_PROFILES,ek=!1!==e.ALLOW_ARIA_ATTR,e_=!1!==e.ALLOW_DATA_ATTR,eS=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ew=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,eE=e.SAFE_FOR_TEMPLATES||!1,eC=e.WHOLE_DOCUMENT||!1,eP=e.RETURN_DOM||!1,eI=e.RETURN_DOM_FRAGMENT||!1,eN=e.RETURN_TRUSTED_TYPE||!1,eR=e.FORCE_BODY||!1,e$=!1!==e.SANITIZE_DOM,eL=e.SANITIZE_NAMED_PROPS||!1,eD=!1!==e.KEEP_CONTENT,eQ=e.IN_PLACE||!1,em=e.ALLOWED_URI_REGEXP||z,eH=e.NAMESPACE||eG,ev=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&e5(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ev.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&e5(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ev.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ev.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),eE&&(e_=!1),eI&&(eP=!0),eM&&(eg=k({},I),eb=[],!0===eM.html&&(k(eg,w),k(eb,N)),!0===eM.svg&&(k(eg,E),k(eb,$),k(eb,D)),!0===eM.svgFilters&&(k(eg,C),k(eb,$),k(eb,D)),!0===eM.mathMl&&(k(eg,R),k(eb,L),k(eb,D))),e.ADD_TAGS&&(eg===eO&&(eg=_(eg)),k(eg,e.ADD_TAGS,e1)),e.ADD_ATTR&&(eb===ey&&(eb=_(eb)),k(eb,e.ADD_ATTR,e1)),e.ADD_URI_SAFE_ATTR&&k(ej,e.ADD_URI_SAFE_ATTR,e1),e.FORBID_CONTENTS&&(eF===eB&&(eF=_(eF)),k(eF,e.FORBID_CONTENTS,e1)),eD&&(eg["#text"]=!0),eC&&k(eg,["html","head","body"]),eg.table&&(k(eg,["tbody"]),delete ex.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ee=(n=e.TRUSTED_TYPES_POLICY).createHTML("")}else void 0===n&&(n=Y(q,u)),null!==n&&"string"==typeof ee&&(ee=n.createHTML(""));a&&a(e),e0=e}},e4=k({},["mi","mo","mn","ms","mtext"]),e3=k({},["foreignobject","desc","title","annotation-xml"]),e8=k({},["title","style","font","a","script"]),e6=k({},[...E,...C,...A]),e7=k({},[...R,...P]),te=function(e){let t=J(e);t&&t.tagName||(t={namespaceURI:eH,tagName:"template"});let n=p(e.tagName),r=p(t.tagName);return!!eX[e.namespaceURI]&&(e.namespaceURI===eq?t.namespaceURI===eG?"svg"===n:t.namespaceURI===eZ?"svg"===n&&("annotation-xml"===r||e4[r]):!!e6[n]:e.namespaceURI===eZ?t.namespaceURI===eG?"math"===n:t.namespaceURI===eq?"math"===n&&e3[r]:!!e7[n]:e.namespaceURI===eG?(t.namespaceURI!==eq||!!e3[r])&&(t.namespaceURI!==eZ||!!e4[r])&&!e7[n]&&(e8[n]||!e6[n]):"application/xhtml+xml"===eK&&!!eX[e.namespaceURI])},tt=function(e){h(i.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},tn=function(e,t){try{h(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){h(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!eb[e]){if(eP||eI)try{tt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}}},tr=function(e){let t=null,r=null;if(eR)e=""+e;else{let t=m(e,/^[\r\n\t ]+/);r=t&&t[0]}"application/xhtml+xml"===eK&&eH===eG&&(e=''+e+"");let i=n?n.createHTML(e):e;if(eH===eG)try{t=new W().parseFromString(i,eK)}catch(e){}if(!t||!t.documentElement){t=et.createDocument(eH,"template",null);try{t.documentElement.innerHTML=eY?ee:i}catch(e){}}let a=t.body||t.documentElement;return(e&&r&&a.insertBefore(o.createTextNode(r),a.childNodes[0]||null),eH===eG)?ei.call(t,eC?"html":"body")[0]:eC?t.documentElement:a},ti=function(e){return en.call(e.ownerDocument||e,e,B.SHOW_ELEMENT|B.SHOW_COMMENT|B.SHOW_TEXT|B.SHOW_PROCESSING_INSTRUCTION,null)},ta=function(e){return"function"==typeof M&&e instanceof M},to=function(e,t,n){eo[e]&&c(eo[e],e=>{e.call(i,t,n,e0)})},ts=function(e){let t=null;if(to("beforeSanitizeElements",e,null),e instanceof j&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof U)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes))return tt(e),!0;let n=e1(e.nodeName);if(to("uponSanitizeElement",e,{tagName:n,allowedTags:eg}),e.hasChildNodes()&&!ta(e.firstElementChild)&&v(/<[/\w]/g,e.innerHTML)&&v(/<[/\w]/g,e.textContent))return tt(e),!0;if(!eg[n]||ex[n]){if(!ex[n]&&tu(n)&&(ev.tagNameCheck instanceof RegExp&&v(ev.tagNameCheck,n)||ev.tagNameCheck instanceof Function&&ev.tagNameCheck(n)))return!1;if(eD&&!eF[n]){let t=J(e)||e.parentNode,n=K(e)||e.childNodes;if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i)t.insertBefore(X(n[i],!0),V(e))}}return tt(e),!0}return e instanceof F&&!te(e)||("noscript"===n||"noembed"===n||"noframes"===n)&&v(/<\/no(script|embed|frames)/i,e.innerHTML)?(tt(e),!0):(eE&&3===e.nodeType&&(t=e.textContent,c([es,el,eu],e=>{t=g(t,e," ")}),e.textContent!==t&&(h(i.removed,{element:e.cloneNode()}),e.textContent=t)),to("afterSanitizeElements",e,null),!1)},tl=function(e,t,n){if(e$&&("id"===t||"name"===t)&&(n in o||n in e2))return!1;if(e_&&!eT[t]&&v(ec,t));else if(ek&&v(ed,t));else if(!eb[t]||eT[t]){if(!(tu(e)&&(ev.tagNameCheck instanceof RegExp&&v(ev.tagNameCheck,e)||ev.tagNameCheck instanceof Function&&ev.tagNameCheck(e))&&(ev.attributeNameCheck instanceof RegExp&&v(ev.attributeNameCheck,t)||ev.attributeNameCheck instanceof Function&&ev.attributeNameCheck(t))||"is"===t&&ev.allowCustomizedBuiltInElements&&(ev.tagNameCheck instanceof RegExp&&v(ev.tagNameCheck,n)||ev.tagNameCheck instanceof Function&&ev.tagNameCheck(n))))return!1}else if(ej[t]);else if(v(em,g(n,ep,"")));else if(("src"===t||"xlink:href"===t||"href"===t)&&"script"!==e&&0===O(n,"data:")&&eU[e]);else if(eS&&!v(eh,g(n,ep,"")));else if(n)return!1;return!0},tu=function(e){return"annotation-xml"!==e&&m(e,ef)},tc=function(e){to("beforeSanitizeAttributes",e,null);let{attributes:t}=e;if(!t)return;let r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:eb},a=t.length;for(;a--;){let o=t[a],{name:s,namespaceURI:l,value:u}=o,h=e1(s),p="value"===s?u:b(u);if(r.attrName=h,r.attrValue=p,r.keepAttr=!0,r.forceKeepAttr=void 0,to("uponSanitizeAttribute",e,r),p=r.attrValue,r.forceKeepAttr||(tn(s,e),!r.keepAttr))continue;if(!ew&&v(/\/>/i,p)){tn(s,e);continue}eE&&c([es,el,eu],e=>{p=g(p,e," ")});let f=e1(e.nodeName);if(tl(f,h,p)){if(eL&&("id"===h||"name"===h)&&(tn(s,e),p="user-content-"+p),n&&"object"==typeof q&&"function"==typeof q.getAttributeType){if(l);else switch(q.getAttributeType(f,h)){case"TrustedHTML":p=n.createHTML(p);break;case"TrustedScriptURL":p=n.createScriptURL(p)}}try{l?e.setAttributeNS(l,s,p):e.setAttribute(s,p),d(i.removed)}catch(e){}}}to("afterSanitizeAttributes",e,null)},td=function e(t){let n=null,r=ti(t);for(to("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)to("uponSanitizeShadowNode",n,null),ts(n)||(n.content instanceof T&&e(n.content),tc(n));to("afterSanitizeShadowDOM",t,null)};return i.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,a=null,o=null,s=null;if((eY=!e)&&(e=""),"string"!=typeof e&&!ta(e)){if("function"==typeof e.toString){if("string"!=typeof(e=e.toString()))throw x("dirty is not a string, aborting")}else throw x("toString is not a function")}if(!i.isSupported)return e;if(eA||e9(t),i.removed=[],"string"==typeof e&&(eQ=!1),eQ){if(e.nodeName){let t=e1(e.nodeName);if(!eg[t]||ex[t])throw x("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof M)1===(a=(r=tr("")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===a.nodeName?r=a:"HTML"===a.nodeName?r=a:r.appendChild(a);else{if(!eP&&!eE&&!eC&&-1===e.indexOf("<"))return n&&eN?n.createHTML(e):e;if(!(r=tr(e)))return eP?null:eN?ee:""}r&&eR&&tt(r.firstChild);let u=ti(eQ?e:r);for(;o=u.nextNode();)ts(o)||(o.content instanceof T&&td(o.content),tc(o));if(eQ)return e;if(eP){if(eI)for(s=er.call(r.ownerDocument);r.firstChild;)s.appendChild(r.firstChild);else s=r;return(eb.shadowroot||eb.shadowrootmode)&&(s=ea.call(l,s,!0)),s}let d=eC?r.outerHTML:r.innerHTML;return eC&&eg["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&v(Z,r.ownerDocument.doctype.name)&&(d="\n"+d),eE&&c([es,el,eu],e=>{d=g(d,e," ")}),n&&eN?n.createHTML(d):d},i.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e9(e),eA=!0},i.clearConfig=function(){e0=null,eA=!1},i.isValidAttribute=function(e,t,n){e0||e9({});let r=e1(e),i=e1(t);return tl(r,i,n)},i.addHook=function(e,t){"function"==typeof t&&(eo[e]=eo[e]||[],h(eo[e],t))},i.removeHook=function(e){if(eo[e])return d(eo[e])},i.removeHooks=function(e){eo[e]&&(eo[e]=[])},i.removeAllHooks=function(){eo={}},i}()}()},62378:function(e){"use strict";e.exports=function(e){for(var t=[],n=e.length,r=0;r=55296&&i<=56319&&n>r+1){var a=e.charCodeAt(r+1);a>=56320&&a<=57343&&(i=(i-55296)*1024+a-56320+65536,r+=1)}if(i<128){t.push(i);continue}if(i<2048){t.push(i>>6|192),t.push(63&i|128);continue}if(i<55296||i>=57344&&i<65536){t.push(i>>12|224),t.push(i>>6&63|128),t.push(63&i|128);continue}if(i>=65536&&i<=1114111){t.push(i>>18|240),t.push(i>>12&63|128),t.push(i>>6&63|128),t.push(63&i|128);continue}t.push(239,191,189)}return new Uint8Array(t).buffer}},63150:function(e){"use strict";e.exports=e=>{if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},58875:function(e,t,n){var r,i,a;a={canUseDOM:i=!!("undefined"!=typeof window&&window.document&&window.document.createElement),canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:i&&!!(window.addEventListener||window.attachEvent),canUseViewport:i&&!!window.screen},void 0!==(r=(function(){return a}).call(t,n,t,e))&&(e.exports=r)},94470:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},o=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),a=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!a)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,u,c,d=arguments[0],h=1,p=arguments.length,f=!1;for("boolean"==typeof d&&(f=d,d=arguments[1]||{},h=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});h-1)return r.QUIRKS;let e=null===t?o:a;if(d(n,e))return r.QUIRKS;if(d(n,e=null===t?l:u))return r.LIMITED_QUIRKS}return r.NO_QUIRKS},t.serializeContent=function(e,t,n){let r="!DOCTYPE ";return e&&(r+=e),t?r+=" PUBLIC "+c(t):n&&(r+=" SYSTEM"),null!==n&&(r+=" "+c(n)),r}},93107:function(e){"use strict";e.exports={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"}},16510:function(e,t,n){"use strict";let r=n(34752),i=n(27447),a=i.TAG_NAMES,o=i.NAMESPACES,s=i.ATTRS,l={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},u={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},c={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:o.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:o.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:o.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:o.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:o.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:o.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:o.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:o.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:o.XML},"xml:space":{prefix:"xml",name:"space",namespace:o.XML},xmlns:{prefix:"",name:"xmlns",namespace:o.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:o.XMLNS}},d=t.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},h={[a.B]:!0,[a.BIG]:!0,[a.BLOCKQUOTE]:!0,[a.BODY]:!0,[a.BR]:!0,[a.CENTER]:!0,[a.CODE]:!0,[a.DD]:!0,[a.DIV]:!0,[a.DL]:!0,[a.DT]:!0,[a.EM]:!0,[a.EMBED]:!0,[a.H1]:!0,[a.H2]:!0,[a.H3]:!0,[a.H4]:!0,[a.H5]:!0,[a.H6]:!0,[a.HEAD]:!0,[a.HR]:!0,[a.I]:!0,[a.IMG]:!0,[a.LI]:!0,[a.LISTING]:!0,[a.MENU]:!0,[a.META]:!0,[a.NOBR]:!0,[a.OL]:!0,[a.P]:!0,[a.PRE]:!0,[a.RUBY]:!0,[a.S]:!0,[a.SMALL]:!0,[a.SPAN]:!0,[a.STRONG]:!0,[a.STRIKE]:!0,[a.SUB]:!0,[a.SUP]:!0,[a.TABLE]:!0,[a.TT]:!0,[a.U]:!0,[a.UL]:!0,[a.VAR]:!0};t.causesExit=function(e){let t=e.tagName,n=t===a.FONT&&(null!==r.getTokenAttr(e,s.COLOR)||null!==r.getTokenAttr(e,s.SIZE)||null!==r.getTokenAttr(e,s.FACE));return!!n||h[t]},t.adjustTokenMathMLAttrs=function(e){for(let t=0;t=55296&&e<=57343},t.isSurrogatePair=function(e){return e>=56320&&e<=57343},t.getSurrogatePairCodePoint=function(e,t){return(e-55296)*1024+9216+t},t.isControlCodePoint=function(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159},t.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||n.indexOf(e)>-1}},74318:function(e,t,n){"use strict";let r=n(24748);e.exports=class extends r{constructor(e,t){super(e),this.posTracker=null,this.onParseError=t.onParseError}_setErrorLocation(e){e.startLine=e.endLine=this.posTracker.line,e.startCol=e.endCol=this.posTracker.col,e.startOffset=e.endOffset=this.posTracker.offset}_reportError(e){let t={code:e,startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1};this._setErrorLocation(t),this.onParseError(t)}_getOverriddenMethods(e){return{_err(t){e._reportError(t)}}}}},91870:function(e,t,n){"use strict";let r=n(74318),i=n(87834),a=n(98997),o=n(24748);e.exports=class extends r{constructor(e,t){super(e,t),this.opts=t,this.ctLoc=null,this.locBeforeToken=!1}_setErrorLocation(e){this.ctLoc&&(e.startLine=this.ctLoc.startLine,e.startCol=this.ctLoc.startCol,e.startOffset=this.ctLoc.startOffset,e.endLine=this.locBeforeToken?this.ctLoc.startLine:this.ctLoc.endLine,e.endCol=this.locBeforeToken?this.ctLoc.startCol:this.ctLoc.endCol,e.endOffset=this.locBeforeToken?this.ctLoc.startOffset:this.ctLoc.endOffset)}_getOverriddenMethods(e,t){return{_bootstrap(n,r){t._bootstrap.call(this,n,r),o.install(this.tokenizer,i,e.opts),o.install(this.tokenizer,a)},_processInputToken(n){e.ctLoc=n.location,t._processInputToken.call(this,n)},_err(t,n){e.locBeforeToken=n&&n.beforeToken,e._reportError(t)}}}}},86302:function(e,t,n){"use strict";let r=n(74318),i=n(66733),a=n(24748);e.exports=class extends r{constructor(e,t){super(e,t),this.posTracker=a.install(e,i),this.lastErrOffset=-1}_reportError(e){this.lastErrOffset!==this.posTracker.offset&&(this.lastErrOffset=this.posTracker.offset,super._reportError(e))}}},87834:function(e,t,n){"use strict";let r=n(74318),i=n(86302),a=n(24748);e.exports=class extends r{constructor(e,t){super(e,t);let n=a.install(e.preprocessor,i,t);this.posTracker=n.posTracker}}},14372:function(e,t,n){"use strict";let r=n(24748);e.exports=class extends r{constructor(e,t){super(e),this.onItemPop=t.onItemPop}_getOverriddenMethods(e,t){return{pop(){e.onItemPop(this.current),t.pop.call(this)},popAllUpToHtmlElement(){for(let t=this.stackTop;t>0;t--)e.onItemPop(this.items[t]);t.popAllUpToHtmlElement.call(this)},remove(n){e.onItemPop(this.current),t.remove.call(this,n)}}}}},90562:function(e,t,n){"use strict";let r=n(24748),i=n(34752),a=n(98997),o=n(14372),s=n(27447),l=s.TAG_NAMES;e.exports=class extends r{constructor(e){super(e),this.parser=e,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(e){let t=null;this.lastStartTagToken&&((t=Object.assign({},this.lastStartTagToken.location)).startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(e,t)}_setEndLocation(e,t){let n=this.treeAdapter.getNodeSourceCodeLocation(e);if(n&&t.location){let n=t.location,r=this.treeAdapter.getTagName(e),a=t.type===i.END_TAG_TOKEN&&r===t.tagName,o={};a?(o.endTag=Object.assign({},n),o.endLine=n.endLine,o.endCol=n.endCol,o.endOffset=n.endOffset):(o.endLine=n.startLine,o.endCol=n.startCol,o.endOffset=n.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(e,o)}}_getOverriddenMethods(e,t){return{_bootstrap(n,i){t._bootstrap.call(this,n,i),e.lastStartTagToken=null,e.lastFosterParentingLocation=null,e.currentToken=null;let s=r.install(this.tokenizer,a);e.posTracker=s.posTracker,r.install(this.openElements,o,{onItemPop:function(t){e._setEndLocation(t,e.currentToken)}})},_runParsingLoop(n){t._runParsingLoop.call(this,n);for(let t=this.openElements.stackTop;t>=0;t--)e._setEndLocation(this.openElements.items[t],e.currentToken)},_processTokenInForeignContent(n){e.currentToken=n,t._processTokenInForeignContent.call(this,n)},_processToken(n){e.currentToken=n,t._processToken.call(this,n);let r=n.type===i.END_TAG_TOKEN&&(n.tagName===l.HTML||n.tagName===l.BODY&&this.openElements.hasInScope(l.BODY));if(r)for(let t=this.openElements.stackTop;t>=0;t--){let r=this.openElements.items[t];if(this.treeAdapter.getTagName(r)===n.tagName){e._setEndLocation(r,n);break}}},_setDocumentType(e){t._setDocumentType.call(this,e);let n=this.treeAdapter.getChildNodes(this.document),r=n.length;for(let t=0;t{let a=i.MODE[r];n[a]=function(n){e.ctLoc=e._getCurrentLocation(),t[a].call(this,n)}}),n}}},66733:function(e,t,n){"use strict";let r=n(24748);e.exports=class extends r{constructor(e){super(e),this.preprocessor=e,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.offset=0,this.col=0,this.line=1}_getOverriddenMethods(e,t){return{advance(){let n=this.pos+1,r=this.html[n];return e.isEol&&(e.isEol=!1,e.line++,e.lineStartPos=n),("\n"===r||"\r"===r&&"\n"!==this.html[n+1])&&(e.isEol=!0),e.col=n-e.lineStartPos+1,e.offset=e.droppedBufferSize+n,t.advance.call(this)},retreat(){t.retreat.call(this),e.isEol=!1,e.col=this.pos-e.lineStartPos+1},dropParsedChunk(){let n=this.pos;t.dropParsedChunk.call(this);let r=n-this.pos;e.lineStartPos-=r,e.droppedBufferSize+=r,e.offset=e.droppedBufferSize+this.pos}}}}},4465:function(e){"use strict";class t{constructor(e){this.length=0,this.entries=[],this.treeAdapter=e,this.bookmark=null}_getNoahArkConditionCandidates(e){let n=[];if(this.length>=3){let r=this.treeAdapter.getAttrList(e).length,i=this.treeAdapter.getTagName(e),a=this.treeAdapter.getNamespaceURI(e);for(let e=this.length-1;e>=0;e--){let o=this.entries[e];if(o.type===t.MARKER_ENTRY)break;let s=o.element,l=this.treeAdapter.getAttrList(s),u=this.treeAdapter.getTagName(s)===i&&this.treeAdapter.getNamespaceURI(s)===a&&l.length===r;u&&n.push({idx:e,attrs:l})}}return n.length<3?[]:n}_ensureNoahArkCondition(e){let t=this._getNoahArkConditionCandidates(e),n=t.length;if(n){let r=this.treeAdapter.getAttrList(e),i=r.length,a=Object.create(null);for(let e=0;e=2;e--)this.entries.splice(t[e].idx,1),this.length--}}insertMarker(){this.entries.push({type:t.MARKER_ENTRY}),this.length++}pushElement(e,n){this._ensureNoahArkCondition(e),this.entries.push({type:t.ELEMENT_ENTRY,element:e,token:n}),this.length++}insertElementAfterBookmark(e,n){let r=this.length-1;for(;r>=0&&this.entries[r]!==this.bookmark;r--);this.entries.splice(r+1,0,{type:t.ELEMENT_ENTRY,element:e,token:n}),this.length++}removeEntry(e){for(let t=this.length-1;t>=0;t--)if(this.entries[t]===e){this.entries.splice(t,1),this.length--;break}}clearToLastMarker(){for(;this.length;){let e=this.entries.pop();if(this.length--,e.type===t.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(e){for(let n=this.length-1;n>=0;n--){let r=this.entries[n];if(r.type===t.MARKER_ENTRY)break;if(this.treeAdapter.getTagName(r.element)===e)return r}return null}getElementEntry(e){for(let n=this.length-1;n>=0;n--){let r=this.entries[n];if(r.type===t.ELEMENT_ENTRY&&r.element===e)return r}return null}}t.MARKER_ENTRY="MARKER_ENTRY",t.ELEMENT_ENTRY="ELEMENT_ENTRY",e.exports=t},82803:function(e,t,n){"use strict";let r=n(34752),i=n(84889),a=n(4465),o=n(90562),s=n(91870),l=n(24748),u=n(47971),c=n(30311),d=n(18652),h=n(16510),p=n(93107),f=n(2657),m=n(27447),g=m.TAG_NAMES,O=m.NAMESPACES,b=m.ATTRS,y={scriptingEnabled:!0,sourceCodeLocationInfo:!1,onParseError:null,treeAdapter:u},v="hidden",x="INITIAL_MODE",T="BEFORE_HTML_MODE",k="BEFORE_HEAD_MODE",_="IN_HEAD_MODE",S="IN_HEAD_NO_SCRIPT_MODE",w="AFTER_HEAD_MODE",E="IN_BODY_MODE",C="TEXT_MODE",A="IN_TABLE_MODE",R="IN_TABLE_TEXT_MODE",P="IN_CAPTION_MODE",I="IN_COLUMN_GROUP_MODE",N="IN_TABLE_BODY_MODE",$="IN_ROW_MODE",L="IN_CELL_MODE",D="IN_SELECT_MODE",Q="IN_SELECT_IN_TABLE_MODE",M="IN_TEMPLATE_MODE",F="AFTER_BODY_MODE",B="IN_FRAMESET_MODE",U="AFTER_FRAMESET_MODE",z="AFTER_AFTER_BODY_MODE",j="AFTER_AFTER_FRAMESET_MODE",W={[g.TR]:$,[g.TBODY]:N,[g.THEAD]:N,[g.TFOOT]:N,[g.CAPTION]:P,[g.COLGROUP]:I,[g.TABLE]:A,[g.BODY]:E,[g.FRAMESET]:B},Z={[g.CAPTION]:A,[g.COLGROUP]:A,[g.TBODY]:A,[g.TFOOT]:A,[g.THEAD]:A,[g.COL]:I,[g.TR]:N,[g.TD]:$,[g.TH]:$},q={[x]:{[r.CHARACTER_TOKEN]:ee,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:H,[r.COMMENT_TOKEN]:X,[r.DOCTYPE_TOKEN]:function(e,t){e._setDocumentType(t);let n=t.forceQuirks?m.DOCUMENT_MODE.QUIRKS:d.getDocumentMode(t);d.isConforming(t)||e._err(p.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=T},[r.START_TAG_TOKEN]:ee,[r.END_TAG_TOKEN]:ee,[r.EOF_TOKEN]:ee},[T]:{[r.CHARACTER_TOKEN]:et,[r.NULL_CHARACTER_TOKEN]:et,[r.WHITESPACE_CHARACTER_TOKEN]:H,[r.COMMENT_TOKEN]:X,[r.DOCTYPE_TOKEN]:H,[r.START_TAG_TOKEN]:function(e,t){t.tagName===g.HTML?(e._insertElement(t,O.HTML),e.insertionMode=k):et(e,t)},[r.END_TAG_TOKEN]:function(e,t){let n=t.tagName;(n===g.HTML||n===g.HEAD||n===g.BODY||n===g.BR)&&et(e,t)},[r.EOF_TOKEN]:et},[k]:{[r.CHARACTER_TOKEN]:en,[r.NULL_CHARACTER_TOKEN]:en,[r.WHITESPACE_CHARACTER_TOKEN]:H,[r.COMMENT_TOKEN]:X,[r.DOCTYPE_TOKEN]:Y,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;n===g.HTML?ev(e,t):n===g.HEAD?(e._insertElement(t,O.HTML),e.headElement=e.openElements.current,e.insertionMode=_):en(e,t)},[r.END_TAG_TOKEN]:function(e,t){let n=t.tagName;n===g.HEAD||n===g.BODY||n===g.HTML||n===g.BR?en(e,t):e._err(p.endTagWithoutMatchingOpenElement)},[r.EOF_TOKEN]:en},[_]:{[r.CHARACTER_TOKEN]:ea,[r.NULL_CHARACTER_TOKEN]:ea,[r.WHITESPACE_CHARACTER_TOKEN]:K,[r.COMMENT_TOKEN]:X,[r.DOCTYPE_TOKEN]:Y,[r.START_TAG_TOKEN]:er,[r.END_TAG_TOKEN]:ei,[r.EOF_TOKEN]:ea},[S]:{[r.CHARACTER_TOKEN]:eo,[r.NULL_CHARACTER_TOKEN]:eo,[r.WHITESPACE_CHARACTER_TOKEN]:K,[r.COMMENT_TOKEN]:X,[r.DOCTYPE_TOKEN]:Y,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;n===g.HTML?ev(e,t):n===g.BASEFONT||n===g.BGSOUND||n===g.HEAD||n===g.LINK||n===g.META||n===g.NOFRAMES||n===g.STYLE?er(e,t):n===g.NOSCRIPT?e._err(p.nestedNoscriptInHead):eo(e,t)},[r.END_TAG_TOKEN]:function(e,t){let n=t.tagName;n===g.NOSCRIPT?(e.openElements.pop(),e.insertionMode=_):n===g.BR?eo(e,t):e._err(p.endTagWithoutMatchingOpenElement)},[r.EOF_TOKEN]:eo},[w]:{[r.CHARACTER_TOKEN]:es,[r.NULL_CHARACTER_TOKEN]:es,[r.WHITESPACE_CHARACTER_TOKEN]:K,[r.COMMENT_TOKEN]:X,[r.DOCTYPE_TOKEN]:Y,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;n===g.HTML?ev(e,t):n===g.BODY?(e._insertElement(t,O.HTML),e.framesetOk=!1,e.insertionMode=E):n===g.FRAMESET?(e._insertElement(t,O.HTML),e.insertionMode=B):n===g.BASE||n===g.BASEFONT||n===g.BGSOUND||n===g.LINK||n===g.META||n===g.NOFRAMES||n===g.SCRIPT||n===g.STYLE||n===g.TEMPLATE||n===g.TITLE?(e._err(p.abandonedHeadElementChild),e.openElements.push(e.headElement),er(e,t),e.openElements.remove(e.headElement)):n===g.HEAD?e._err(p.misplacedStartTagForHeadElement):es(e,t)},[r.END_TAG_TOKEN]:function(e,t){let n=t.tagName;n===g.BODY||n===g.HTML||n===g.BR?es(e,t):n===g.TEMPLATE?ei(e,t):e._err(p.endTagWithoutMatchingOpenElement)},[r.EOF_TOKEN]:es},[E]:{[r.CHARACTER_TOKEN]:eu,[r.NULL_CHARACTER_TOKEN]:H,[r.WHITESPACE_CHARACTER_TOKEN]:el,[r.COMMENT_TOKEN]:X,[r.DOCTYPE_TOKEN]:H,[r.START_TAG_TOKEN]:ev,[r.END_TAG_TOKEN]:e_,[r.EOF_TOKEN]:eS},[C]:{[r.CHARACTER_TOKEN]:K,[r.NULL_CHARACTER_TOKEN]:K,[r.WHITESPACE_CHARACTER_TOKEN]:K,[r.COMMENT_TOKEN]:H,[r.DOCTYPE_TOKEN]:H,[r.START_TAG_TOKEN]:H,[r.END_TAG_TOKEN]:function(e,t){t.tagName===g.SCRIPT&&(e.pendingScript=e.openElements.current),e.openElements.pop(),e.insertionMode=e.originalInsertionMode},[r.EOF_TOKEN]:function(e,t){e._err(p.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}},[A]:{[r.CHARACTER_TOKEN]:ew,[r.NULL_CHARACTER_TOKEN]:ew,[r.WHITESPACE_CHARACTER_TOKEN]:ew,[r.COMMENT_TOKEN]:X,[r.DOCTYPE_TOKEN]:H,[r.START_TAG_TOKEN]:eE,[r.END_TAG_TOKEN]:eC,[r.EOF_TOKEN]:eS},[R]:{[r.CHARACTER_TOKEN]:function(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0},[r.NULL_CHARACTER_TOKEN]:H,[r.WHITESPACE_CHARACTER_TOKEN]:function(e,t){e.pendingCharacterTokens.push(t)},[r.COMMENT_TOKEN]:eR,[r.DOCTYPE_TOKEN]:eR,[r.START_TAG_TOKEN]:eR,[r.END_TAG_TOKEN]:eR,[r.EOF_TOKEN]:eR},[P]:{[r.CHARACTER_TOKEN]:eu,[r.NULL_CHARACTER_TOKEN]:H,[r.WHITESPACE_CHARACTER_TOKEN]:el,[r.COMMENT_TOKEN]:X,[r.DOCTYPE_TOKEN]:H,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;n===g.CAPTION||n===g.COL||n===g.COLGROUP||n===g.TBODY||n===g.TD||n===g.TFOOT||n===g.TH||n===g.THEAD||n===g.TR?e.openElements.hasInTableScope(g.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=A,e._processToken(t)):ev(e,t)},[r.END_TAG_TOKEN]:function(e,t){let n=t.tagName;n===g.CAPTION||n===g.TABLE?e.openElements.hasInTableScope(g.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=A,n===g.TABLE&&e._processToken(t)):n!==g.BODY&&n!==g.COL&&n!==g.COLGROUP&&n!==g.HTML&&n!==g.TBODY&&n!==g.TD&&n!==g.TFOOT&&n!==g.TH&&n!==g.THEAD&&n!==g.TR&&e_(e,t)},[r.EOF_TOKEN]:eS},[I]:{[r.CHARACTER_TOKEN]:eP,[r.NULL_CHARACTER_TOKEN]:eP,[r.WHITESPACE_CHARACTER_TOKEN]:K,[r.COMMENT_TOKEN]:X,[r.DOCTYPE_TOKEN]:H,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;n===g.HTML?ev(e,t):n===g.COL?(e._appendElement(t,O.HTML),t.ackSelfClosing=!0):n===g.TEMPLATE?er(e,t):eP(e,t)},[r.END_TAG_TOKEN]:function(e,t){let n=t.tagName;n===g.COLGROUP?e.openElements.currentTagName===g.COLGROUP&&(e.openElements.pop(),e.insertionMode=A):n===g.TEMPLATE?ei(e,t):n!==g.COL&&eP(e,t)},[r.EOF_TOKEN]:eS},[N]:{[r.CHARACTER_TOKEN]:ew,[r.NULL_CHARACTER_TOKEN]:ew,[r.WHITESPACE_CHARACTER_TOKEN]:ew,[r.COMMENT_TOKEN]:X,[r.DOCTYPE_TOKEN]:H,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;n===g.TR?(e.openElements.clearBackToTableBodyContext(),e._insertElement(t,O.HTML),e.insertionMode=$):n===g.TH||n===g.TD?(e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(g.TR),e.insertionMode=$,e._processToken(t)):n===g.CAPTION||n===g.COL||n===g.COLGROUP||n===g.TBODY||n===g.TFOOT||n===g.THEAD?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=A,e._processToken(t)):eE(e,t)},[r.END_TAG_TOKEN]:function(e,t){let n=t.tagName;n===g.TBODY||n===g.TFOOT||n===g.THEAD?e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=A):n===g.TABLE?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=A,e._processToken(t)):(n!==g.BODY&&n!==g.CAPTION&&n!==g.COL&&n!==g.COLGROUP||n!==g.HTML&&n!==g.TD&&n!==g.TH&&n!==g.TR)&&eC(e,t)},[r.EOF_TOKEN]:eS},[$]:{[r.CHARACTER_TOKEN]:ew,[r.NULL_CHARACTER_TOKEN]:ew,[r.WHITESPACE_CHARACTER_TOKEN]:ew,[r.COMMENT_TOKEN]:X,[r.DOCTYPE_TOKEN]:H,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;n===g.TH||n===g.TD?(e.openElements.clearBackToTableRowContext(),e._insertElement(t,O.HTML),e.insertionMode=L,e.activeFormattingElements.insertMarker()):n===g.CAPTION||n===g.COL||n===g.COLGROUP||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR?e.openElements.hasInTableScope(g.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=N,e._processToken(t)):eE(e,t)},[r.END_TAG_TOKEN]:function(e,t){let n=t.tagName;n===g.TR?e.openElements.hasInTableScope(g.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=N):n===g.TABLE?e.openElements.hasInTableScope(g.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=N,e._processToken(t)):n===g.TBODY||n===g.TFOOT||n===g.THEAD?(e.openElements.hasInTableScope(n)||e.openElements.hasInTableScope(g.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=N,e._processToken(t)):(n!==g.BODY&&n!==g.CAPTION&&n!==g.COL&&n!==g.COLGROUP||n!==g.HTML&&n!==g.TD&&n!==g.TH)&&eC(e,t)},[r.EOF_TOKEN]:eS},[L]:{[r.CHARACTER_TOKEN]:eu,[r.NULL_CHARACTER_TOKEN]:H,[r.WHITESPACE_CHARACTER_TOKEN]:el,[r.COMMENT_TOKEN]:X,[r.DOCTYPE_TOKEN]:H,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;n===g.CAPTION||n===g.COL||n===g.COLGROUP||n===g.TBODY||n===g.TD||n===g.TFOOT||n===g.TH||n===g.THEAD||n===g.TR?(e.openElements.hasInTableScope(g.TD)||e.openElements.hasInTableScope(g.TH))&&(e._closeTableCell(),e._processToken(t)):ev(e,t)},[r.END_TAG_TOKEN]:function(e,t){let n=t.tagName;n===g.TD||n===g.TH?e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=$):n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR?e.openElements.hasInTableScope(n)&&(e._closeTableCell(),e._processToken(t)):n!==g.BODY&&n!==g.CAPTION&&n!==g.COL&&n!==g.COLGROUP&&n!==g.HTML&&e_(e,t)},[r.EOF_TOKEN]:eS},[D]:{[r.CHARACTER_TOKEN]:K,[r.NULL_CHARACTER_TOKEN]:H,[r.WHITESPACE_CHARACTER_TOKEN]:K,[r.COMMENT_TOKEN]:X,[r.DOCTYPE_TOKEN]:H,[r.START_TAG_TOKEN]:eI,[r.END_TAG_TOKEN]:eN,[r.EOF_TOKEN]:eS},[Q]:{[r.CHARACTER_TOKEN]:K,[r.NULL_CHARACTER_TOKEN]:H,[r.WHITESPACE_CHARACTER_TOKEN]:K,[r.COMMENT_TOKEN]:X,[r.DOCTYPE_TOKEN]:H,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;n===g.CAPTION||n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR||n===g.TD||n===g.TH?(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),e._processToken(t)):eI(e,t)},[r.END_TAG_TOKEN]:function(e,t){let n=t.tagName;n===g.CAPTION||n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR||n===g.TD||n===g.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),e._processToken(t)):eN(e,t)},[r.EOF_TOKEN]:eS},[M]:{[r.CHARACTER_TOKEN]:eu,[r.NULL_CHARACTER_TOKEN]:H,[r.WHITESPACE_CHARACTER_TOKEN]:el,[r.COMMENT_TOKEN]:X,[r.DOCTYPE_TOKEN]:H,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;if(n===g.BASE||n===g.BASEFONT||n===g.BGSOUND||n===g.LINK||n===g.META||n===g.NOFRAMES||n===g.SCRIPT||n===g.STYLE||n===g.TEMPLATE||n===g.TITLE)er(e,t);else{let r=Z[n]||E;e._popTmplInsertionMode(),e._pushTmplInsertionMode(r),e.insertionMode=r,e._processToken(t)}},[r.END_TAG_TOKEN]:function(e,t){t.tagName===g.TEMPLATE&&ei(e,t)},[r.EOF_TOKEN]:e$},[F]:{[r.CHARACTER_TOKEN]:eL,[r.NULL_CHARACTER_TOKEN]:eL,[r.WHITESPACE_CHARACTER_TOKEN]:el,[r.COMMENT_TOKEN]:function(e,t){e._appendCommentNode(t,e.openElements.items[0])},[r.DOCTYPE_TOKEN]:H,[r.START_TAG_TOKEN]:function(e,t){t.tagName===g.HTML?ev(e,t):eL(e,t)},[r.END_TAG_TOKEN]:function(e,t){t.tagName===g.HTML?e.fragmentContext||(e.insertionMode=z):eL(e,t)},[r.EOF_TOKEN]:J},[B]:{[r.CHARACTER_TOKEN]:H,[r.NULL_CHARACTER_TOKEN]:H,[r.WHITESPACE_CHARACTER_TOKEN]:K,[r.COMMENT_TOKEN]:X,[r.DOCTYPE_TOKEN]:H,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;n===g.HTML?ev(e,t):n===g.FRAMESET?e._insertElement(t,O.HTML):n===g.FRAME?(e._appendElement(t,O.HTML),t.ackSelfClosing=!0):n===g.NOFRAMES&&er(e,t)},[r.END_TAG_TOKEN]:function(e,t){t.tagName!==g.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagName===g.FRAMESET||(e.insertionMode=U))},[r.EOF_TOKEN]:J},[U]:{[r.CHARACTER_TOKEN]:H,[r.NULL_CHARACTER_TOKEN]:H,[r.WHITESPACE_CHARACTER_TOKEN]:K,[r.COMMENT_TOKEN]:X,[r.DOCTYPE_TOKEN]:H,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;n===g.HTML?ev(e,t):n===g.NOFRAMES&&er(e,t)},[r.END_TAG_TOKEN]:function(e,t){t.tagName===g.HTML&&(e.insertionMode=j)},[r.EOF_TOKEN]:J},[z]:{[r.CHARACTER_TOKEN]:eD,[r.NULL_CHARACTER_TOKEN]:eD,[r.WHITESPACE_CHARACTER_TOKEN]:el,[r.COMMENT_TOKEN]:V,[r.DOCTYPE_TOKEN]:H,[r.START_TAG_TOKEN]:function(e,t){t.tagName===g.HTML?ev(e,t):eD(e,t)},[r.END_TAG_TOKEN]:eD,[r.EOF_TOKEN]:J},[j]:{[r.CHARACTER_TOKEN]:H,[r.NULL_CHARACTER_TOKEN]:H,[r.WHITESPACE_CHARACTER_TOKEN]:el,[r.COMMENT_TOKEN]:V,[r.DOCTYPE_TOKEN]:H,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;n===g.HTML?ev(e,t):n===g.NOFRAMES&&er(e,t)},[r.END_TAG_TOKEN]:H,[r.EOF_TOKEN]:J}};function G(e,t){let n,r;for(let i=0;i<8&&((r=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName))?e.openElements.contains(r.element)?e.openElements.hasInScope(t.tagName)||(r=null):(e.activeFormattingElements.removeEntry(r),r=null):ek(e,t),n=r);i++){let t=function(e,t){let n=null;for(let r=e.openElements.stackTop;r>=0;r--){let i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i)&&(n=i)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}(e,n);if(!t)break;e.activeFormattingElements.bookmark=n;let r=function(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,o=i;o!==n;a++,o=i){i=e.openElements.getCommonAncestor(o);let n=e.activeFormattingElements.getElementEntry(o),s=n&&a>=3,l=!n||s;l?(s&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(o)):(o=function(e,t){let n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}(e,t,n.element),i=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(r),function(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{let r=e.treeAdapter.getTagName(t),i=e.treeAdapter.getNamespaceURI(t);r===g.TEMPLATE&&i===O.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}(e,i,r),function(e,t,n){let r=e.treeAdapter.getNamespaceURI(n.element),i=n.token,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a)}(e,t,n)}}function H(){}function Y(e){e._err(p.misplacedDoctype)}function X(e,t){e._appendCommentNode(t,e.openElements.currentTmplContent||e.openElements.current)}function V(e,t){e._appendCommentNode(t,e.document)}function K(e,t){e._insertCharacters(t)}function J(e){e.stopped=!0}function ee(e,t){e._err(p.missingDoctype,{beforeToken:!0}),e.treeAdapter.setDocumentMode(e.document,m.DOCUMENT_MODE.QUIRKS),e.insertionMode=T,e._processToken(t)}function et(e,t){e._insertFakeRootElement(),e.insertionMode=k,e._processToken(t)}function en(e,t){e._insertFakeElement(g.HEAD),e.headElement=e.openElements.current,e.insertionMode=_,e._processToken(t)}function er(e,t){let n=t.tagName;n===g.HTML?ev(e,t):n===g.BASE||n===g.BASEFONT||n===g.BGSOUND||n===g.LINK||n===g.META?(e._appendElement(t,O.HTML),t.ackSelfClosing=!0):n===g.TITLE?e._switchToTextParsing(t,r.MODE.RCDATA):n===g.NOSCRIPT?e.options.scriptingEnabled?e._switchToTextParsing(t,r.MODE.RAWTEXT):(e._insertElement(t,O.HTML),e.insertionMode=S):n===g.NOFRAMES||n===g.STYLE?e._switchToTextParsing(t,r.MODE.RAWTEXT):n===g.SCRIPT?e._switchToTextParsing(t,r.MODE.SCRIPT_DATA):n===g.TEMPLATE?(e._insertTemplate(t,O.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=M,e._pushTmplInsertionMode(M)):n===g.HEAD?e._err(p.misplacedStartTagForHeadElement):ea(e,t)}function ei(e,t){let n=t.tagName;n===g.HEAD?(e.openElements.pop(),e.insertionMode=w):n===g.BODY||n===g.BR||n===g.HTML?ea(e,t):n===g.TEMPLATE&&e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==g.TEMPLATE&&e._err(p.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(g.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(p.endTagWithoutMatchingOpenElement)}function ea(e,t){e.openElements.pop(),e.insertionMode=w,e._processToken(t)}function eo(e,t){let n=t.type===r.EOF_TOKEN?p.openElementsLeftAfterEof:p.disallowedContentInNoscriptInHead;e._err(n),e.openElements.pop(),e.insertionMode=_,e._processToken(t)}function es(e,t){e._insertFakeElement(g.BODY),e.insertionMode=E,e._processToken(t)}function el(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function eu(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function ec(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,O.HTML)}function ed(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,O.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function eh(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function ep(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function ef(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,O.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function em(e,t){e._appendElement(t,O.HTML),t.ackSelfClosing=!0}function eg(e,t){e._switchToTextParsing(t,r.MODE.RAWTEXT)}function eO(e,t){e.openElements.currentTagName===g.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML)}function eb(e,t){e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,O.HTML)}function ey(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML)}function ev(e,t){let n=t.tagName;switch(n.length){case 1:n===g.I||n===g.S||n===g.B||n===g.U?eh(e,t):n===g.P?ec(e,t):n===g.A?function(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(g.A);n&&(G(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):ey(e,t);break;case 2:n===g.DL||n===g.OL||n===g.UL?ec(e,t):n===g.H1||n===g.H2||n===g.H3||n===g.H4||n===g.H5||n===g.H6?function(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement();let n=e.openElements.currentTagName;(n===g.H1||n===g.H2||n===g.H3||n===g.H4||n===g.H5||n===g.H6)&&e.openElements.pop(),e._insertElement(t,O.HTML)}(e,t):n===g.LI||n===g.DD||n===g.DT?function(e,t){e.framesetOk=!1;let n=t.tagName;for(let t=e.openElements.stackTop;t>=0;t--){let r=e.openElements.items[t],i=e.treeAdapter.getTagName(r),a=null;if(n===g.LI&&i===g.LI?a=g.LI:(n===g.DD||n===g.DT)&&(i===g.DD||i===g.DT)&&(a=i),a){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(i!==g.ADDRESS&&i!==g.DIV&&i!==g.P&&e._isSpecialElement(r))break}e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,O.HTML)}(e,t):n===g.EM||n===g.TT?eh(e,t):n===g.BR?ef(e,t):n===g.HR?(e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._appendElement(t,O.HTML),e.framesetOk=!1,t.ackSelfClosing=!0):n===g.RB?eb(e,t):n===g.RT||n===g.RP?(e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(g.RTC),e._insertElement(t,O.HTML)):n!==g.TH&&n!==g.TD&&n!==g.TR&&ey(e,t);break;case 3:n===g.DIV||n===g.DIR||n===g.NAV?ec(e,t):n===g.PRE?ed(e,t):n===g.BIG?eh(e,t):n===g.IMG||n===g.WBR?ef(e,t):n===g.XMP?(e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,r.MODE.RAWTEXT)):n===g.SVG?(e._reconstructActiveFormattingElements(),h.adjustTokenSVGAttrs(t),h.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,O.SVG):e._insertElement(t,O.SVG),t.ackSelfClosing=!0):n===g.RTC?eb(e,t):n!==g.COL&&ey(e,t);break;case 4:n===g.HTML?0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs):n===g.BASE||n===g.LINK||n===g.META?er(e,t):n===g.BODY?function(e,t){let n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t):n===g.MAIN||n===g.MENU?ec(e,t):n===g.FORM?function(e,t){let n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,O.HTML),n||(e.formElement=e.openElements.current))}(e,t):n===g.CODE||n===g.FONT?eh(e,t):n===g.NOBR?(e._reconstructActiveFormattingElements(),e.openElements.hasInScope(g.NOBR)&&(G(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,O.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)):n===g.AREA?ef(e,t):n===g.MATH?(e._reconstructActiveFormattingElements(),h.adjustTokenMathMLAttrs(t),h.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,O.MATHML):e._insertElement(t,O.MATHML),t.ackSelfClosing=!0):n===g.MENU?(e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,O.HTML)):n!==g.HEAD&&ey(e,t);break;case 5:n===g.STYLE||n===g.TITLE?er(e,t):n===g.ASIDE?ec(e,t):n===g.SMALL?eh(e,t):n===g.TABLE?(e.treeAdapter.getDocumentMode(e.document)!==m.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,O.HTML),e.framesetOk=!1,e.insertionMode=A):n===g.EMBED?ef(e,t):n===g.INPUT?function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,O.HTML);let n=r.getTokenAttr(t,b.TYPE);n&&n.toLowerCase()===v||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t):n===g.PARAM||n===g.TRACK?em(e,t):n===g.IMAGE?(t.tagName=g.IMG,ef(e,t)):n!==g.FRAME&&n!==g.TBODY&&n!==g.TFOOT&&n!==g.THEAD&&ey(e,t);break;case 6:n===g.SCRIPT?er(e,t):n===g.CENTER||n===g.FIGURE||n===g.FOOTER||n===g.HEADER||n===g.HGROUP||n===g.DIALOG?ec(e,t):n===g.BUTTON?(e.openElements.hasInScope(g.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML),e.framesetOk=!1):n===g.STRIKE||n===g.STRONG?eh(e,t):n===g.APPLET||n===g.OBJECT?ep(e,t):n===g.KEYGEN?ef(e,t):n===g.SOURCE?em(e,t):n===g.IFRAME?(e.framesetOk=!1,e._switchToTextParsing(t,r.MODE.RAWTEXT)):n===g.SELECT?(e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML),e.framesetOk=!1,e.insertionMode===A||e.insertionMode===P||e.insertionMode===N||e.insertionMode===$||e.insertionMode===L?e.insertionMode=Q:e.insertionMode=D):n===g.OPTION?eO(e,t):ey(e,t);break;case 7:n===g.BGSOUND?er(e,t):n===g.DETAILS||n===g.ADDRESS||n===g.ARTICLE||n===g.SECTION||n===g.SUMMARY?ec(e,t):n===g.LISTING?ed(e,t):n===g.MARQUEE?ep(e,t):n===g.NOEMBED?eg(e,t):n!==g.CAPTION&&ey(e,t);break;case 8:n===g.BASEFONT?er(e,t):n===g.FRAMESET?function(e,t){let n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,O.HTML),e.insertionMode=B)}(e,t):n===g.FIELDSET?ec(e,t):n===g.TEXTAREA?(e._insertElement(t,O.HTML),e.skipNextNewLine=!0,e.tokenizer.state=r.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=C):n===g.TEMPLATE?er(e,t):n===g.NOSCRIPT?e.options.scriptingEnabled?eg(e,t):ey(e,t):n===g.OPTGROUP?eO(e,t):n!==g.COLGROUP&&ey(e,t);break;case 9:n===g.PLAINTEXT?(e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,O.HTML),e.tokenizer.state=r.MODE.PLAINTEXT):ey(e,t);break;case 10:n===g.BLOCKQUOTE||n===g.FIGCAPTION?ec(e,t):ey(e,t);break;default:ey(e,t)}}function ex(e,t){let n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function eT(e,t){let n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function ek(e,t){let n=t.tagName;for(let t=e.openElements.stackTop;t>0;t--){let r=e.openElements.items[t];if(e.treeAdapter.getTagName(r)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(r);break}if(e._isSpecialElement(r))break}}function e_(e,t){let n=t.tagName;switch(n.length){case 1:n===g.A||n===g.B||n===g.I||n===g.S||n===g.U?G(e,t):n===g.P?(e.openElements.hasInButtonScope(g.P)||e._insertFakeElement(g.P),e._closePElement()):ek(e,t);break;case 2:n===g.DL||n===g.UL||n===g.OL?ex(e,t):n===g.LI?e.openElements.hasInListItemScope(g.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(g.LI),e.openElements.popUntilTagNamePopped(g.LI)):n===g.DD||n===g.DT?function(e,t){let n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t):n===g.H1||n===g.H2||n===g.H3||n===g.H4||n===g.H5||n===g.H6?e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped()):n===g.BR?(e._reconstructActiveFormattingElements(),e._insertFakeElement(g.BR),e.openElements.pop(),e.framesetOk=!1):n===g.EM||n===g.TT?G(e,t):ek(e,t);break;case 3:n===g.BIG?G(e,t):n===g.DIR||n===g.DIV||n===g.NAV||n===g.PRE?ex(e,t):ek(e,t);break;case 4:n===g.BODY?e.openElements.hasInScope(g.BODY)&&(e.insertionMode=F):n===g.HTML?e.openElements.hasInScope(g.BODY)&&(e.insertionMode=F,e._processToken(t)):n===g.FORM?function(e){let t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(g.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(g.FORM):e.openElements.remove(n))}(e,t):n===g.CODE||n===g.FONT||n===g.NOBR?G(e,t):n===g.MAIN||n===g.MENU?ex(e,t):ek(e,t);break;case 5:n===g.ASIDE?ex(e,t):n===g.SMALL?G(e,t):ek(e,t);break;case 6:n===g.CENTER||n===g.FIGURE||n===g.FOOTER||n===g.HEADER||n===g.HGROUP||n===g.DIALOG?ex(e,t):n===g.APPLET||n===g.OBJECT?eT(e,t):n===g.STRIKE||n===g.STRONG?G(e,t):ek(e,t);break;case 7:n===g.ADDRESS||n===g.ARTICLE||n===g.DETAILS||n===g.SECTION||n===g.SUMMARY||n===g.LISTING?ex(e,t):n===g.MARQUEE?eT(e,t):ek(e,t);break;case 8:n===g.FIELDSET?ex(e,t):n===g.TEMPLATE?ei(e,t):ek(e,t);break;case 10:n===g.BLOCKQUOTE||n===g.FIGCAPTION?ex(e,t):ek(e,t);break;default:ek(e,t)}}function eS(e,t){e.tmplInsertionModeStackTop>-1?e$(e,t):e.stopped=!0}function ew(e,t){let n=e.openElements.currentTagName;n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=R,e._processToken(t)):eA(e,t)}function eE(e,t){let n=t.tagName;switch(n.length){case 2:n===g.TD||n===g.TH||n===g.TR?(e.openElements.clearBackToTableContext(),e._insertFakeElement(g.TBODY),e.insertionMode=N,e._processToken(t)):eA(e,t);break;case 3:n===g.COL?(e.openElements.clearBackToTableContext(),e._insertFakeElement(g.COLGROUP),e.insertionMode=I,e._processToken(t)):eA(e,t);break;case 4:n===g.FORM?e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,O.HTML),e.formElement=e.openElements.current,e.openElements.pop()):eA(e,t);break;case 5:n===g.TABLE?e.openElements.hasInTableScope(g.TABLE)&&(e.openElements.popUntilTagNamePopped(g.TABLE),e._resetInsertionMode(),e._processToken(t)):n===g.STYLE?er(e,t):n===g.TBODY||n===g.TFOOT||n===g.THEAD?(e.openElements.clearBackToTableContext(),e._insertElement(t,O.HTML),e.insertionMode=N):n===g.INPUT?function(e,t){let n=r.getTokenAttr(t,b.TYPE);n&&n.toLowerCase()===v?e._appendElement(t,O.HTML):eA(e,t),t.ackSelfClosing=!0}(e,t):eA(e,t);break;case 6:n===g.SCRIPT?er(e,t):eA(e,t);break;case 7:n===g.CAPTION?(e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,O.HTML),e.insertionMode=P):eA(e,t);break;case 8:n===g.COLGROUP?(e.openElements.clearBackToTableContext(),e._insertElement(t,O.HTML),e.insertionMode=I):n===g.TEMPLATE?er(e,t):eA(e,t);break;default:eA(e,t)}}function eC(e,t){let n=t.tagName;n===g.TABLE?e.openElements.hasInTableScope(g.TABLE)&&(e.openElements.popUntilTagNamePopped(g.TABLE),e._resetInsertionMode()):n===g.TEMPLATE?ei(e,t):n!==g.BODY&&n!==g.CAPTION&&n!==g.COL&&n!==g.COLGROUP&&n!==g.HTML&&n!==g.TBODY&&n!==g.TD&&n!==g.TFOOT&&n!==g.TH&&n!==g.THEAD&&n!==g.TR&&eA(e,t)}function eA(e,t){let n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function eR(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0?(e.openElements.popUntilTagNamePopped(g.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function eL(e,t){e.insertionMode=E,e._processToken(t)}function eD(e,t){e.insertionMode=E,e._processToken(t)}e.exports=class{constructor(e){this.options=c(y,e),this.treeAdapter=this.options.treeAdapter,this.pendingScript=null,this.options.sourceCodeLocationInfo&&l.install(this,o),this.options.onParseError&&l.install(this,s,{onParseError:this.options.onParseError})}parse(e){let t=this.treeAdapter.createDocument();return this._bootstrap(t,null),this.tokenizer.write(e,!0),this._runParsingLoop(null),t}parseFragment(e,t){t||(t=this.treeAdapter.createElement(g.TEMPLATE,O.HTML,[]));let n=this.treeAdapter.createElement("documentmock",O.HTML,[]);this._bootstrap(n,t),this.treeAdapter.getTagName(t)===g.TEMPLATE&&this._pushTmplInsertionMode(M),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(e,!0),this._runParsingLoop(null);let r=this.treeAdapter.getFirstChild(n),i=this.treeAdapter.createDocumentFragment();return this._adoptNodes(r,i),i}_bootstrap(e,t){this.tokenizer=new r(this.options),this.stopped=!1,this.insertionMode=x,this.originalInsertionMode="",this.document=e,this.fragmentContext=t,this.headElement=null,this.formElement=null,this.openElements=new i(this.document,this.treeAdapter),this.activeFormattingElements=new a(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1}_err(){}_runParsingLoop(e){for(;!this.stopped;){this._setupTokenizerCDATAMode();let t=this.tokenizer.getNextToken();if(t.type===r.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.type===r.WHITESPACE_CHARACTER_TOKEN&&"\n"===t.chars[0])){if(1===t.chars.length)continue;t.chars=t.chars.substr(1)}if(this._processInputToken(t),e&&this.pendingScript)break}}runParsingLoopForCurrentChunk(e,t){if(this._runParsingLoop(t),t&&this.pendingScript){let e=this.pendingScript;this.pendingScript=null,t(e);return}e&&e()}_setupTokenizerCDATAMode(){let e=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=e&&e!==this.document&&this.treeAdapter.getNamespaceURI(e)!==O.HTML&&!this._isIntegrationPoint(e)}_switchToTextParsing(e,t){this._insertElement(e,O.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=C}switchToPlaintextParsing(){this.insertionMode=C,this.originalInsertionMode=E,this.tokenizer.state=r.MODE.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;do{if(this.treeAdapter.getTagName(e)===g.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}while(e)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===O.HTML){let e=this.treeAdapter.getTagName(this.fragmentContext);e===g.TITLE||e===g.TEXTAREA?this.tokenizer.state=r.MODE.RCDATA:e===g.STYLE||e===g.XMP||e===g.IFRAME||e===g.NOEMBED||e===g.NOFRAMES||e===g.NOSCRIPT?this.tokenizer.state=r.MODE.RAWTEXT:e===g.SCRIPT?this.tokenizer.state=r.MODE.SCRIPT_DATA:e===g.PLAINTEXT&&(this.tokenizer.state=r.MODE.PLAINTEXT)}}_setDocumentType(e){let t=e.name||"",n=e.publicId||"",r=e.systemId||"";this.treeAdapter.setDocumentType(this.document,t,n,r)}_attachElementToTree(e){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{let t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n)}_insertElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n),this.openElements.push(n)}_insertFakeElement(e){let t=this.treeAdapter.createElement(e,O.HTML,[]);this._attachElementToTree(t),this.openElements.push(t)}_insertTemplate(e){let t=this.treeAdapter.createElement(e.tagName,O.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t),this.openElements.push(t)}_insertFakeRootElement(){let e=this.treeAdapter.createElement(g.HTML,O.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e)}_appendCommentNode(e,t){let n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n)}_insertCharacters(e){if(this._shouldFosterParentOnInsertion())this._fosterParentText(e.chars);else{let t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(t,e.chars)}}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_shouldProcessTokenInForeignContent(e){let t=this._getAdjustedCurrentElement();if(!t||t===this.document)return!1;let n=this.treeAdapter.getNamespaceURI(t);if(n===O.HTML||this.treeAdapter.getTagName(t)===g.ANNOTATION_XML&&n===O.MATHML&&e.type===r.START_TAG_TOKEN&&e.tagName===g.SVG)return!1;let i=e.type===r.CHARACTER_TOKEN||e.type===r.NULL_CHARACTER_TOKEN||e.type===r.WHITESPACE_CHARACTER_TOKEN,a=e.type===r.START_TAG_TOKEN&&e.tagName!==g.MGLYPH&&e.tagName!==g.MALIGNMARK;return!((a||i)&&this._isIntegrationPoint(t,O.MATHML)||(e.type===r.START_TAG_TOKEN||i)&&this._isIntegrationPoint(t,O.HTML))&&e.type!==r.EOF_TOKEN}_processToken(e){q[this.insertionMode][e.type](this,e)}_processTokenInBodyMode(e){q[E][e.type](this,e)}_processTokenInForeignContent(e){e.type===r.CHARACTER_TOKEN?(this._insertCharacters(e),this.framesetOk=!1):e.type===r.NULL_CHARACTER_TOKEN?(e.chars=f.REPLACEMENT_CHARACTER,this._insertCharacters(e)):e.type===r.WHITESPACE_CHARACTER_TOKEN?K(this,e):e.type===r.COMMENT_TOKEN?X(this,e):e.type===r.START_TAG_TOKEN?function(e,t){if(h.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==O.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{let n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===O.MATHML?h.adjustTokenMathMLAttrs(t):r===O.SVG&&(h.adjustTokenSVGTagName(t),h.adjustTokenSVGAttrs(t)),h.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}(this,e):e.type===r.END_TAG_TOKEN&&function(e,t){for(let n=e.openElements.stackTop;n>0;n--){let r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===O.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}(this,e)}_processInputToken(e){this._shouldProcessTokenInForeignContent(e)?this._processTokenInForeignContent(e):this._processToken(e),e.type===r.START_TAG_TOKEN&&e.selfClosing&&!e.ackSelfClosing&&this._err(p.nonVoidHtmlElementStartTagWithTrailingSolidus)}_isIntegrationPoint(e,t){let n=this.treeAdapter.getTagName(e),r=this.treeAdapter.getNamespaceURI(e),i=this.treeAdapter.getAttrList(e);return h.isIntegrationPoint(n,r,i,t)}_reconstructActiveFormattingElements(){let e=this.activeFormattingElements.length;if(e){let t=e,n=null;do if(t--,(n=this.activeFormattingElements.entries[t]).type===a.MARKER_ENTRY||this.openElements.contains(n.element)){t++;break}while(t>0);for(let r=t;r=0;e--){let n=this.openElements.items[e];0===e&&(t=!0,this.fragmentContext&&(n=this.fragmentContext));let r=this.treeAdapter.getTagName(n),i=W[r];if(i){this.insertionMode=i;break}if(t||r!==g.TD&&r!==g.TH){if(t||r!==g.HEAD){if(r===g.SELECT){this._resetInsertionModeForSelect(e);break}if(r===g.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}if(r===g.HTML){this.insertionMode=this.headElement?w:k;break}else if(t){this.insertionMode=E;break}}else{this.insertionMode=_;break}}else{this.insertionMode=L;break}}}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){let e=this.openElements.items[t],n=this.treeAdapter.getTagName(e);if(n===g.TEMPLATE)break;if(n===g.TABLE){this.insertionMode=Q;return}}this.insertionMode=D}_pushTmplInsertionMode(e){this.tmplInsertionModeStack.push(e),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=e}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(e){let t=this.treeAdapter.getTagName(e);return t===g.TABLE||t===g.TBODY||t===g.TFOOT||t===g.THEAD||t===g.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){let e={parent:null,beforeElement:null};for(let t=this.openElements.stackTop;t>=0;t--){let n=this.openElements.items[t],r=this.treeAdapter.getTagName(n),i=this.treeAdapter.getNamespaceURI(n);if(r===g.TEMPLATE&&i===O.HTML){e.parent=this.treeAdapter.getTemplateContent(n);break}if(r===g.TABLE){e.parent=this.treeAdapter.getParentNode(n),e.parent?e.beforeElement=n:e.parent=this.openElements.items[t-1];break}}return e.parent||(e.parent=this.openElements.items[0]),e}_fosterParentElement(e){let t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_fosterParentText(e){let t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertTextBefore(t.parent,e,t.beforeElement):this.treeAdapter.insertText(t.parent,e)}_isSpecialElement(e){let t=this.treeAdapter.getTagName(e),n=this.treeAdapter.getNamespaceURI(e);return m.SPECIAL_ELEMENTS[n][t]}}},84889:function(e,t,n){"use strict";let r=n(27447),i=r.TAG_NAMES,a=r.NAMESPACES;function o(e){switch(e.length){case 1:return e===i.P;case 2:return e===i.RB||e===i.RP||e===i.RT||e===i.DD||e===i.DT||e===i.LI;case 3:return e===i.RTC;case 6:return e===i.OPTION;case 8:return e===i.OPTGROUP}return!1}function s(e,t){switch(e.length){case 2:if(e===i.TD||e===i.TH)return t===a.HTML;if(e===i.MI||e===i.MO||e===i.MN||e===i.MS)return t===a.MATHML;break;case 4:if(e===i.HTML)return t===a.HTML;if(e===i.DESC)return t===a.SVG;break;case 5:if(e===i.TABLE)return t===a.HTML;if(e===i.MTEXT)return t===a.MATHML;if(e===i.TITLE)return t===a.SVG;break;case 6:return(e===i.APPLET||e===i.OBJECT)&&t===a.HTML;case 7:return(e===i.CAPTION||e===i.MARQUEE)&&t===a.HTML;case 8:return e===i.TEMPLATE&&t===a.HTML;case 13:return e===i.FOREIGN_OBJECT&&t===a.SVG;case 14:return e===i.ANNOTATION_XML&&t===a.MATHML}return!1}e.exports=class{constructor(e,t){this.stackTop=-1,this.items=[],this.current=e,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=t}_indexOf(e){let t=-1;for(let n=this.stackTop;n>=0;n--)if(this.items[n]===e){t=n;break}return t}_isInTemplate(){return this.currentTagName===i.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===a.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(e){this.items[++this.stackTop]=e,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(e,t){let n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&this._updateCurrentElement()}insertAfter(e,t){let n=this._indexOf(e)+1;this.items.splice(n,0,t),n===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(e){for(;this.stackTop>-1;){let t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===e&&n===a.HTML)break}}popUntilElementPopped(e){for(;this.stackTop>-1;){let t=this.current;if(this.pop(),t===e)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){let e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===i.H1||e===i.H2||e===i.H3||e===i.H4||e===i.H5||e===i.H6&&t===a.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){let e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===i.TD||e===i.TH&&t===a.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==i.TABLE&&this.currentTagName!==i.TEMPLATE&&this.currentTagName!==i.HTML||this.treeAdapter.getNamespaceURI(this.current)!==a.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==i.TBODY&&this.currentTagName!==i.TFOOT&&this.currentTagName!==i.THEAD&&this.currentTagName!==i.TEMPLATE&&this.currentTagName!==i.HTML||this.treeAdapter.getNamespaceURI(this.current)!==a.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==i.TR&&this.currentTagName!==i.TEMPLATE&&this.currentTagName!==i.HTML||this.treeAdapter.getNamespaceURI(this.current)!==a.HTML;)this.pop()}remove(e){for(let t=this.stackTop;t>=0;t--)if(this.items[t]===e){this.items.splice(t,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){let e=this.items[1];return e&&this.treeAdapter.getTagName(e)===i.BODY?e:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e);return--t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.currentTagName===i.HTML}hasInScope(e){for(let t=this.stackTop;t>=0;t--){let n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===a.HTML)break;if(s(n,r))return!1}return!0}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){let t=this.treeAdapter.getTagName(this.items[e]),n=this.treeAdapter.getNamespaceURI(this.items[e]);if((t===i.H1||t===i.H2||t===i.H3||t===i.H4||t===i.H5||t===i.H6)&&n===a.HTML)break;if(s(t,n))return!1}return!0}hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){let n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===a.HTML)break;if((n===i.UL||n===i.OL)&&r===a.HTML||s(n,r))return!1}return!0}hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){let n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===a.HTML)break;if(n===i.BUTTON&&r===a.HTML||s(n,r))return!1}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){let n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===a.HTML){if(n===e)break;if(n===i.TABLE||n===i.TEMPLATE||n===i.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){let t=this.treeAdapter.getTagName(this.items[e]),n=this.treeAdapter.getNamespaceURI(this.items[e]);if(n===a.HTML){if(t===i.TBODY||t===i.THEAD||t===i.TFOOT)break;if(t===i.TABLE||t===i.HTML)return!1}}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){let n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===a.HTML){if(n===e)break;if(n!==i.OPTION&&n!==i.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;o(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;function(e){switch(e.length){case 1:return e===i.P;case 2:return e===i.RB||e===i.RP||e===i.RT||e===i.DD||e===i.DT||e===i.LI||e===i.TD||e===i.TH||e===i.TR;case 3:return e===i.RTC;case 5:return e===i.TBODY||e===i.TFOOT||e===i.THEAD;case 6:return e===i.OPTION;case 7:return e===i.CAPTION;case 8:return e===i.OPTGROUP||e===i.COLGROUP}return!1}(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;o(this.currentTagName)&&this.currentTagName!==e;)this.pop()}}},34752:function(e,t,n){"use strict";let r=n(49310),i=n(2657),a=n(78862),o=n(93107),s=i.CODE_POINTS,l=i.CODE_POINT_SEQUENCES,u={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},c="DATA_STATE",d="RCDATA_STATE",h="RAWTEXT_STATE",p="SCRIPT_DATA_STATE",f="PLAINTEXT_STATE",m="TAG_OPEN_STATE",g="END_TAG_OPEN_STATE",O="TAG_NAME_STATE",b="RCDATA_LESS_THAN_SIGN_STATE",y="RCDATA_END_TAG_OPEN_STATE",v="RCDATA_END_TAG_NAME_STATE",x="RAWTEXT_LESS_THAN_SIGN_STATE",T="RAWTEXT_END_TAG_OPEN_STATE",k="RAWTEXT_END_TAG_NAME_STATE",_="SCRIPT_DATA_LESS_THAN_SIGN_STATE",S="SCRIPT_DATA_END_TAG_OPEN_STATE",w="SCRIPT_DATA_END_TAG_NAME_STATE",E="SCRIPT_DATA_ESCAPE_START_STATE",C="SCRIPT_DATA_ESCAPE_START_DASH_STATE",A="SCRIPT_DATA_ESCAPED_STATE",R="SCRIPT_DATA_ESCAPED_DASH_STATE",P="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",I="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",N="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",$="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",L="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",D="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",Q="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",M="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",F="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",B="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",U="BEFORE_ATTRIBUTE_NAME_STATE",z="ATTRIBUTE_NAME_STATE",j="AFTER_ATTRIBUTE_NAME_STATE",W="BEFORE_ATTRIBUTE_VALUE_STATE",Z="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",q="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",G="ATTRIBUTE_VALUE_UNQUOTED_STATE",H="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",Y="SELF_CLOSING_START_TAG_STATE",X="BOGUS_COMMENT_STATE",V="MARKUP_DECLARATION_OPEN_STATE",K="COMMENT_START_STATE",J="COMMENT_START_DASH_STATE",ee="COMMENT_STATE",et="COMMENT_LESS_THAN_SIGN_STATE",en="COMMENT_LESS_THAN_SIGN_BANG_STATE",er="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",ei="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",ea="COMMENT_END_DASH_STATE",eo="COMMENT_END_STATE",es="COMMENT_END_BANG_STATE",el="DOCTYPE_STATE",eu="BEFORE_DOCTYPE_NAME_STATE",ec="DOCTYPE_NAME_STATE",ed="AFTER_DOCTYPE_NAME_STATE",eh="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",ep="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",ef="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",em="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",eg="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",eO="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",eb="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",ey="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",ev="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",ex="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",eT="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",ek="BOGUS_DOCTYPE_STATE",e_="CDATA_SECTION_STATE",eS="CDATA_SECTION_BRACKET_STATE",ew="CDATA_SECTION_END_STATE",eE="CHARACTER_REFERENCE_STATE",eC="NAMED_CHARACTER_REFERENCE_STATE",eA="AMBIGUOS_AMPERSAND_STATE",eR="NUMERIC_CHARACTER_REFERENCE_STATE",eP="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",eI="DECIMAL_CHARACTER_REFERENCE_START_STATE",eN="HEXADEMICAL_CHARACTER_REFERENCE_STATE",e$="DECIMAL_CHARACTER_REFERENCE_STATE",eL="NUMERIC_CHARACTER_REFERENCE_END_STATE";function eD(e){return e===s.SPACE||e===s.LINE_FEED||e===s.TABULATION||e===s.FORM_FEED}function eQ(e){return e>=s.DIGIT_0&&e<=s.DIGIT_9}function eM(e){return e>=s.LATIN_CAPITAL_A&&e<=s.LATIN_CAPITAL_Z}function eF(e){return e>=s.LATIN_SMALL_A&&e<=s.LATIN_SMALL_Z}function eB(e){return eF(e)||eM(e)}function eU(e){return eB(e)||eQ(e)}function ez(e){return e>=s.LATIN_CAPITAL_A&&e<=s.LATIN_CAPITAL_F}function ej(e){return e>=s.LATIN_SMALL_A&&e<=s.LATIN_SMALL_F}function eW(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-=65536)>>>10&1023|55296)+String.fromCharCode(56320|1023&e)}function eZ(e){return String.fromCharCode(e+32)}function eq(e,t){let n=a[++e],r=++e,i=r+n-1;for(;r<=i;){let e=r+i>>>1,o=a[e];if(ot))return a[e+n];i=e-1}}return -1}class eG{constructor(){this.preprocessor=new r,this.tokenQueue=[],this.allowCDATA=!1,this.state=c,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(e){this._consume(),this._err(e),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;let e=this._consume();this._ensureHibernation()||this[this.state](e)}return this.tokenQueue.shift()}write(e,t){this.active=!0,this.preprocessor.write(e,t)}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:eG.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(e){this.state=e,this._unconsume()}_consumeSequenceIfMatch(e,t,n){let r,i=0,a=!0,o=e.length,l=0,u=t;for(;l0&&(u=this._consume(),i++),u===s.EOF||u!==(r=e[l])&&(n||u!==r+32)){a=!1;break}if(!a)for(;i--;)this._unconsume();return a}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==l.SCRIPT_STRING.length)return!1;for(let e=0;e0&&this._err(o.endTagWithAttributes),e.selfClosing&&this._err(o.endTagWithTrailingSolidus)),this.tokenQueue.push(e)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(e,t){this.currentCharacterToken&&this.currentCharacterToken.type!==e&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=t:this._createCharacterToken(e,t)}_emitCodePoint(e){let t=eG.CHARACTER_TOKEN;eD(e)?t=eG.WHITESPACE_CHARACTER_TOKEN:e===s.NULL&&(t=eG.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(t,eW(e))}_emitSeveralCodePoints(e){for(let t=0;t-1;){let e=a[r],i=e<7,o=i&&1&e;o&&(t=2&e?[a[++r],a[++r]]:[a[++r]],n=0);let l=this._consume();if(this.tempBuff.push(l),n++,l===s.EOF)break;r=i?4&e?eq(r,l):-1:l===e?++r:-1}for(;n--;)this.tempBuff.pop(),this._unconsume();return t}_isCharacterReferenceInAttribute(){return this.returnState===Z||this.returnState===q||this.returnState===G}_isCharacterReferenceAttributeQuirk(e){if(!e&&this._isCharacterReferenceInAttribute()){let e=this._consume();return this._unconsume(),e===s.EQUALS_SIGN||eU(e)}return!1}_flushCodePointsConsumedAsCharacterReference(){if(this._isCharacterReferenceInAttribute())for(let e=0;e")):e===s.NULL?(this._err(o.unexpectedNullCharacter),this.state=A,this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(o.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=A,this._emitCodePoint(e))}[I](e){e===s.SOLIDUS?(this.tempBuff=[],this.state=N):eB(e)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(L)):(this._emitChars("<"),this._reconsumeInState(A))}[N](e){eB(e)?(this._createEndTagToken(),this._reconsumeInState($)):(this._emitChars("")):e===s.NULL?(this._err(o.unexpectedNullCharacter),this.state=D,this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(o.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=D,this._emitCodePoint(e))}[F](e){e===s.SOLIDUS?(this.tempBuff=[],this.state=B,this._emitChars("/")):this._reconsumeInState(D)}[B](e){eD(e)||e===s.SOLIDUS||e===s.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?A:D,this._emitCodePoint(e)):eM(e)?(this.tempBuff.push(e+32),this._emitCodePoint(e)):eF(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(D)}[U](e){eD(e)||(e===s.SOLIDUS||e===s.GREATER_THAN_SIGN||e===s.EOF?this._reconsumeInState(j):e===s.EQUALS_SIGN?(this._err(o.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=z):(this._createAttr(""),this._reconsumeInState(z)))}[z](e){eD(e)||e===s.SOLIDUS||e===s.GREATER_THAN_SIGN||e===s.EOF?(this._leaveAttrName(j),this._unconsume()):e===s.EQUALS_SIGN?this._leaveAttrName(W):eM(e)?this.currentAttr.name+=eZ(e):e===s.QUOTATION_MARK||e===s.APOSTROPHE||e===s.LESS_THAN_SIGN?(this._err(o.unexpectedCharacterInAttributeName),this.currentAttr.name+=eW(e)):e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentAttr.name+=i.REPLACEMENT_CHARACTER):this.currentAttr.name+=eW(e)}[j](e){eD(e)||(e===s.SOLIDUS?this.state=Y:e===s.EQUALS_SIGN?this.state=W:e===s.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(z)))}[W](e){eD(e)||(e===s.QUOTATION_MARK?this.state=Z:e===s.APOSTROPHE?this.state=q:e===s.GREATER_THAN_SIGN?(this._err(o.missingAttributeValue),this.state=c,this._emitCurrentToken()):this._reconsumeInState(G))}[Z](e){e===s.QUOTATION_MARK?this.state=H:e===s.AMPERSAND?(this.returnState=Z,this.state=eE):e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentAttr.value+=i.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(o.eofInTag),this._emitEOFToken()):this.currentAttr.value+=eW(e)}[q](e){e===s.APOSTROPHE?this.state=H:e===s.AMPERSAND?(this.returnState=q,this.state=eE):e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentAttr.value+=i.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(o.eofInTag),this._emitEOFToken()):this.currentAttr.value+=eW(e)}[G](e){eD(e)?this._leaveAttrValue(U):e===s.AMPERSAND?(this.returnState=G,this.state=eE):e===s.GREATER_THAN_SIGN?(this._leaveAttrValue(c),this._emitCurrentToken()):e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentAttr.value+=i.REPLACEMENT_CHARACTER):e===s.QUOTATION_MARK||e===s.APOSTROPHE||e===s.LESS_THAN_SIGN||e===s.EQUALS_SIGN||e===s.GRAVE_ACCENT?(this._err(o.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=eW(e)):e===s.EOF?(this._err(o.eofInTag),this._emitEOFToken()):this.currentAttr.value+=eW(e)}[H](e){eD(e)?this._leaveAttrValue(U):e===s.SOLIDUS?this._leaveAttrValue(Y):e===s.GREATER_THAN_SIGN?(this._leaveAttrValue(c),this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInTag),this._emitEOFToken()):(this._err(o.missingWhitespaceBetweenAttributes),this._reconsumeInState(U))}[Y](e){e===s.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInTag),this._emitEOFToken()):(this._err(o.unexpectedSolidusInTag),this._reconsumeInState(U))}[X](e){e===s.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):e===s.EOF?(this._emitCurrentToken(),this._emitEOFToken()):e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentToken.data+=i.REPLACEMENT_CHARACTER):this.currentToken.data+=eW(e)}[V](e){this._consumeSequenceIfMatch(l.DASH_DASH_STRING,e,!0)?(this._createCommentToken(),this.state=K):this._consumeSequenceIfMatch(l.DOCTYPE_STRING,e,!1)?this.state=el:this._consumeSequenceIfMatch(l.CDATA_START_STRING,e,!0)?this.allowCDATA?this.state=e_:(this._err(o.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=X):this._ensureHibernation()||(this._err(o.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(X))}[K](e){e===s.HYPHEN_MINUS?this.state=J:e===s.GREATER_THAN_SIGN?(this._err(o.abruptClosingOfEmptyComment),this.state=c,this._emitCurrentToken()):this._reconsumeInState(ee)}[J](e){e===s.HYPHEN_MINUS?this.state=eo:e===s.GREATER_THAN_SIGN?(this._err(o.abruptClosingOfEmptyComment),this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(ee))}[ee](e){e===s.HYPHEN_MINUS?this.state=ea:e===s.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=et):e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentToken.data+=i.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(o.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=eW(e)}[et](e){e===s.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=en):e===s.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(ee)}[en](e){e===s.HYPHEN_MINUS?this.state=er:this._reconsumeInState(ee)}[er](e){e===s.HYPHEN_MINUS?this.state=ei:this._reconsumeInState(ea)}[ei](e){e!==s.GREATER_THAN_SIGN&&e!==s.EOF&&this._err(o.nestedComment),this._reconsumeInState(eo)}[ea](e){e===s.HYPHEN_MINUS?this.state=eo:e===s.EOF?(this._err(o.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(ee))}[eo](e){e===s.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):e===s.EXCLAMATION_MARK?this.state=es:e===s.HYPHEN_MINUS?this.currentToken.data+="-":e===s.EOF?(this._err(o.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(ee))}[es](e){e===s.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=ea):e===s.GREATER_THAN_SIGN?(this._err(o.incorrectlyClosedComment),this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(ee))}[el](e){eD(e)?this.state=eu:e===s.GREATER_THAN_SIGN?this._reconsumeInState(eu):e===s.EOF?(this._err(o.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(o.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(eu))}[eu](e){eD(e)||(eM(e)?(this._createDoctypeToken(eZ(e)),this.state=ec):e===s.NULL?(this._err(o.unexpectedNullCharacter),this._createDoctypeToken(i.REPLACEMENT_CHARACTER),this.state=ec):e===s.GREATER_THAN_SIGN?(this._err(o.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=c):e===s.EOF?(this._err(o.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(eW(e)),this.state=ec))}[ec](e){eD(e)?this.state=ed:e===s.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):eM(e)?this.currentToken.name+=eZ(e):e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentToken.name+=i.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=eW(e)}[ed](e){!eD(e)&&(e===s.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(l.PUBLIC_STRING,e,!1)?this.state=eh:this._consumeSequenceIfMatch(l.SYSTEM_STRING,e,!1)?this.state=eb:this._ensureHibernation()||(this._err(o.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(ek)))}[eh](e){eD(e)?this.state=ep:e===s.QUOTATION_MARK?(this._err(o.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=ef):e===s.APOSTROPHE?(this._err(o.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=em):e===s.GREATER_THAN_SIGN?(this._err(o.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(o.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(ek))}[ep](e){eD(e)||(e===s.QUOTATION_MARK?(this.currentToken.publicId="",this.state=ef):e===s.APOSTROPHE?(this.currentToken.publicId="",this.state=em):e===s.GREATER_THAN_SIGN?(this._err(o.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(o.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(ek)))}[ef](e){e===s.QUOTATION_MARK?this.state=eg:e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentToken.publicId+=i.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(o.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=c):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=eW(e)}[em](e){e===s.APOSTROPHE?this.state=eg:e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentToken.publicId+=i.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(o.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=c):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=eW(e)}[eg](e){eD(e)?this.state=eO:e===s.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):e===s.QUOTATION_MARK?(this._err(o.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=ev):e===s.APOSTROPHE?(this._err(o.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=ex):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(o.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(ek))}[eO](e){eD(e)||(e===s.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=c):e===s.QUOTATION_MARK?(this.currentToken.systemId="",this.state=ev):e===s.APOSTROPHE?(this.currentToken.systemId="",this.state=ex):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(o.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(ek)))}[eb](e){eD(e)?this.state=ey:e===s.QUOTATION_MARK?(this._err(o.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=ev):e===s.APOSTROPHE?(this._err(o.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=ex):e===s.GREATER_THAN_SIGN?(this._err(o.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(o.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(ek))}[ey](e){eD(e)||(e===s.QUOTATION_MARK?(this.currentToken.systemId="",this.state=ev):e===s.APOSTROPHE?(this.currentToken.systemId="",this.state=ex):e===s.GREATER_THAN_SIGN?(this._err(o.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(o.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(ek)))}[ev](e){e===s.QUOTATION_MARK?this.state=eT:e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentToken.systemId+=i.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(o.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=c):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=eW(e)}[ex](e){e===s.APOSTROPHE?this.state=eT:e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentToken.systemId+=i.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(o.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=c):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=eW(e)}[eT](e){eD(e)||(e===s.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=c):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(o.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(ek)))}[ek](e){e===s.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=c):e===s.NULL?this._err(o.unexpectedNullCharacter):e===s.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[e_](e){e===s.RIGHT_SQUARE_BRACKET?this.state=eS:e===s.EOF?(this._err(o.eofInCdata),this._emitEOFToken()):this._emitCodePoint(e)}[eS](e){e===s.RIGHT_SQUARE_BRACKET?this.state=ew:(this._emitChars("]"),this._reconsumeInState(e_))}[ew](e){e===s.GREATER_THAN_SIGN?this.state=c:e===s.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(e_))}[eE](e){this.tempBuff=[s.AMPERSAND],e===s.NUMBER_SIGN?(this.tempBuff.push(e),this.state=eR):eU(e)?this._reconsumeInState(eC):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[eC](e){let t=this._matchNamedCharacterReference(e);if(this._ensureHibernation())this.tempBuff=[s.AMPERSAND];else if(t){let e=this.tempBuff[this.tempBuff.length-1]===s.SEMICOLON;this._isCharacterReferenceAttributeQuirk(e)||(e||this._errOnNextCodePoint(o.missingSemicolonAfterCharacterReference),this.tempBuff=t),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=eA}[eA](e){eU(e)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=eW(e):this._emitCodePoint(e):(e===s.SEMICOLON&&this._err(o.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[eR](e){this.charRefCode=0,e===s.LATIN_SMALL_X||e===s.LATIN_CAPITAL_X?(this.tempBuff.push(e),this.state=eP):this._reconsumeInState(eI)}[eP](e){eQ(e)||ez(e)||ej(e)?this._reconsumeInState(eN):(this._err(o.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[eI](e){eQ(e)?this._reconsumeInState(e$):(this._err(o.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[eN](e){ez(e)?this.charRefCode=16*this.charRefCode+e-55:ej(e)?this.charRefCode=16*this.charRefCode+e-87:eQ(e)?this.charRefCode=16*this.charRefCode+e-48:e===s.SEMICOLON?this.state=eL:(this._err(o.missingSemicolonAfterCharacterReference),this._reconsumeInState(eL))}[e$](e){eQ(e)?this.charRefCode=10*this.charRefCode+e-48:e===s.SEMICOLON?this.state=eL:(this._err(o.missingSemicolonAfterCharacterReference),this._reconsumeInState(eL))}[eL](){if(this.charRefCode===s.NULL)this._err(o.nullCharacterReference),this.charRefCode=s.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(o.characterReferenceOutsideUnicodeRange),this.charRefCode=s.REPLACEMENT_CHARACTER;else if(i.isSurrogate(this.charRefCode))this._err(o.surrogateCharacterReference),this.charRefCode=s.REPLACEMENT_CHARACTER;else if(i.isUndefinedCodePoint(this.charRefCode))this._err(o.noncharacterCharacterReference);else if(i.isControlCodePoint(this.charRefCode)||this.charRefCode===s.CARRIAGE_RETURN){this._err(o.controlCharacterReference);let e=u[this.charRefCode];e&&(this.charRefCode=e)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}}eG.CHARACTER_TOKEN="CHARACTER_TOKEN",eG.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN",eG.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN",eG.START_TAG_TOKEN="START_TAG_TOKEN",eG.END_TAG_TOKEN="END_TAG_TOKEN",eG.COMMENT_TOKEN="COMMENT_TOKEN",eG.DOCTYPE_TOKEN="DOCTYPE_TOKEN",eG.EOF_TOKEN="EOF_TOKEN",eG.HIBERNATION_TOKEN="HIBERNATION_TOKEN",eG.MODE={DATA:c,RCDATA:d,RAWTEXT:h,SCRIPT_DATA:p,PLAINTEXT:f},eG.getTokenAttr=function(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null},e.exports=eG},78862:function(e){"use strict";e.exports=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204])},49310:function(e,t,n){"use strict";let r=n(2657),i=n(93107),a=r.CODE_POINTS;e.exports=class{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.lastCharPos){let t=this.html.charCodeAt(this.pos+1);if(r.isSurrogatePair(t))return this.pos++,this._addGap(),r.getSurrogatePairCodePoint(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,a.EOF;return this._err(i.surrogateInInputStream),e}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(e,t){this.html?this.html+=e:this.html=e,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,a.EOF;let e=this.html.charCodeAt(this.pos);if(this.skipNextNewLine&&e===a.LINE_FEED)return this.skipNextNewLine=!1,this._addGap(),this.advance();if(e===a.CARRIAGE_RETURN)return this.skipNextNewLine=!0,a.LINE_FEED;this.skipNextNewLine=!1,r.isSurrogate(e)&&(e=this._processSurrogate(e));let t=e>31&&e<127||e===a.LINE_FEED||e===a.CARRIAGE_RETURN||e>159&&e<64976;return t||this._checkForProblematicCharacters(e),e}_checkForProblematicCharacters(e){r.isControlCodePoint(e)?this._err(i.controlCharacterInInputStream):r.isUndefinedCodePoint(e)&&this._err(i.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}}},47971:function(e,t,n){"use strict";let{DOCUMENT_MODE:r}=n(27447);t.createDocument=function(){return{nodeName:"#document",mode:r.NO_QUIRKS,childNodes:[]}},t.createDocumentFragment=function(){return{nodeName:"#document-fragment",childNodes:[]}},t.createElement=function(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},t.createCommentNode=function(e){return{nodeName:"#comment",data:e,parentNode:null}};let i=function(e){return{nodeName:"#text",value:e,parentNode:null}},a=t.appendChild=function(e,t){e.childNodes.push(t),t.parentNode=e},o=t.insertBefore=function(e,t,n){let r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e};t.setTemplateContent=function(e,t){e.content=t},t.getTemplateContent=function(e){return e.content},t.setDocumentType=function(e,t,n,r){let i=null;for(let t=0;t(Object.keys(t).forEach(n=>{e[n]=t[n]}),e),Object.create(null))}},24748:function(e){"use strict";class t{constructor(e){let t={},n=this._getOverriddenMethods(this,t);for(let r of Object.keys(n))"function"==typeof n[r]&&(t[r]=e[r],e[r]=n[r])}_getOverriddenMethods(){throw Error("Not implemented")}}t.install=function(e,t,n){e.__mixins||(e.__mixins=[]);for(let n=0;n=97&&t<=122||t>=65&&t<=90}},7961:function(e,t,n){"use strict";var r=n(46260),i=n(46195);e.exports=function(e){return r(e)||i(e)}},48738:function(e){/*! * Determine if an object is a Buffer * * @author Feross Aboukhadijeh * @license MIT - */e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},46195:function(e){"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}},79480:function(e){"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}},29208:function(e,t,n){var r,i="__lodash_hash_undefined__",a=1/0,o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/,l=/^\./,u=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,c=/\\(\\)?/g,d=/^\[object .+?Constructor\]$/,h="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,p="object"==typeof self&&self&&self.Object===Object&&self,f=h||p||Function("return this")(),m=Array.prototype,g=Function.prototype,O=Object.prototype,b=f["__core-js_shared__"],y=(r=/[^.]+$/.exec(b&&b.keys&&b.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",v=g.toString,x=O.hasOwnProperty,T=O.toString,k=RegExp("^"+v.call(x).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_=f.Symbol,S=m.splice,w=L(f,"Map"),E=L(Object,"create"),C=_?_.prototype:void 0,A=C?C.toString:void 0;function R(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1},P.prototype.set=function(e,t){var n=this.__data__,r=N(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},I.prototype.clear=function(){this.__data__={hash:new R,map:new(w||P),string:new R}},I.prototype.delete=function(e){return $(this,e).delete(e)},I.prototype.get=function(e){return $(this,e).get(e)},I.prototype.has=function(e){return $(this,e).has(e)},I.prototype.set=function(e,t){return $(this,e).set(e,t),this};var D=Q(function(e){e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(B(e))return A?A.call(e):"";var t=e+"";return"0"==t&&1/e==-a?"-0":t}(t);var t,n=[];return l.test(e)&&n.push(""),e.replace(u,function(e,t,r,i){n.push(r?i.replace(c,"$1"):t||e)}),n});function Q(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o),o};return n.cache=new(Q.Cache||I),n}Q.Cache=I;var M=Array.isArray;function F(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function B(e){return"symbol"==typeof e||!!e&&"object"==typeof e&&"[object Symbol]"==T.call(e)}e.exports=function(e,t,n){var r=null==e?void 0:function(e,t){var n;t=!function(e,t){if(M(e))return!1;var n=typeof e;return!!("number"==n||"symbol"==n||"boolean"==n||null==e||B(e))||s.test(e)||!o.test(e)||null!=t&&e in Object(t)}(t,e)?M(n=t)?n:D(n):[t];for(var r=0,i=t.length;null!=e&&r1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(a--,o):void 0,s&&i(n[0],n[1],s)&&(o=a<3?void 0:o,a=1),t=Object(t);++r-1&&e%1==0&&e-1}},54705:function(e,t,n){var r=n(18470);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},24785:function(e,t,n){var r=n(1989),i=n(38407),a=n(57071);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||i),string:new r}}},11285:function(e,t,n){var r=n(45050);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},96e3:function(e,t,n){var r=n(45050);e.exports=function(e){return r(this,e).get(e)}},49916:function(e,t,n){var r=n(45050);e.exports=function(e){return r(this,e).has(e)}},95265:function(e,t,n){var r=n(45050);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},94536:function(e,t,n){var r=n(10852)(Object,"create");e.exports=r},33498:function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},31167:function(e,t,n){e=n.nmd(e);var r=n(31957),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,o=a&&a.exports===i&&r.process,s=function(){try{var e=a&&a.require&&a.require("util").types;if(e)return e;return o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=s},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},45357:function(e,t,n){var r=n(96874),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var a=arguments,o=-1,s=i(a.length-t,0),l=Array(s);++o0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},37465:function(e,t,n){var r=n(38407);e.exports=function(){this.__data__=new r,this.size=0}},63779:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},67599:function(e){e.exports=function(e){return this.__data__.get(e)}},44758:function(e){e.exports=function(e){return this.__data__.has(e)}},34309:function(e,t,n){var r=n(38407),i=n(57071),a=n(83369);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!i||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(o)}return n.set(e,t),this.size=n.size,this}},80346:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},75703:function(e){e.exports=function(e){return function(){return e}}},77813:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},6557:function(e){e.exports=function(e){return e}},35694:function(e,t,n){var r=n(9454),i=n(37005),a=Object.prototype,o=a.hasOwnProperty,s=a.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},1469:function(e){var t=Array.isArray;e.exports=t},98612:function(e,t,n){var r=n(23560),i=n(41780);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},29246:function(e,t,n){var r=n(98612),i=n(37005);e.exports=function(e){return i(e)&&r(e)}},44144:function(e,t,n){e=n.nmd(e);var r=n(55639),i=n(95062),a=t&&!t.nodeType&&t,o=a&&e&&!e.nodeType&&e,s=o&&o.exports===a?r.Buffer:void 0,l=s?s.isBuffer:void 0;e.exports=l||i},23560:function(e,t,n){var r=n(44239),i=n(13218);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},41780:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},13218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},68630:function(e,t,n){var r=n(44239),i=n(85924),a=n(37005),o=Object.prototype,s=Function.prototype.toString,l=o.hasOwnProperty,u=s.call(Object);e.exports=function(e){if(!a(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==u}},36719:function(e,t,n){var r=n(38749),i=n(7518),a=n(31167),o=a&&a.isTypedArray,s=o?i(o):r;e.exports=s},81704:function(e,t,n){var r=n(14636),i=n(10313),a=n(98612);e.exports=function(e){return a(e)?r(e,!0):i(e)}},82492:function(e,t,n){var r=n(42980),i=n(21463)(function(e,t,n){r(e,t,n)});e.exports=i},95062:function(e){e.exports=function(){return!1}},59881:function(e,t,n){var r=n(98363),i=n(81704);e.exports=function(e){return r(e,i(e))}},78234:function(e,t,n){"use strict";var r=n(96464);e.exports=function(e,t){for(var n,s,l,u,c,d,h,p,f,m,g,O,b=t||{},y=!1!==b.padding,v=!1!==b.delimiterStart,x=!1!==b.delimiterEnd,T=(b.align||[]).concat(),k=!1!==b.alignDelimiters,_=[],S=b.stringLength||a,w=-1,E=e.length,C=[],A=[],R=[],P=[],I=[],N=0;++wN&&(N=u);++lc)&&(I[l]=d)),R.push(h);C[w]=R,A[w]=P}if(l=-1,u=N,"object"==typeof T&&"length"in T)for(;++lI[l]&&(I[l]=d),P[l]=d),R[l]=h;for(C.splice(1,0,R),A.splice(1,0,P),w=-1,E=C.length,p=[];++w0&&(d={type:"text",value:d}),d&&(f=[].concat(f,d)),m=l+u[0].length),h.global);)u=h.exec(r.value);if(void 0===l?(f=[r],g--):(m1)for(c=e(t.slice(1)),l=-1;++l":""))+")"),p;function p(){var i,d,h,p=c.concat(r),f=[];if((!t||l(r,u,c[c.length-1]||null))&&!1===(f=null!==(i=n(r,c))&&"object"==typeof i&&"length"in i?i:"number"==typeof i?[!0,i]:[i])[0])return f;if(r.children&&f[0]!==a)for(h=(o?r.children.length:-1)+s;h>-1&&h?\]}]+$/.exec(e);if(a)for(e=e.slice(0,a.index),t=(a=a[0]).indexOf(")"),n=r(e,"("),i=r(e,")");-1!==t&&n>i;)e+=a.slice(0,t+1),t=(a=a.slice(t+1)).indexOf(")"),i++;return[e,a]}(n+i))[0]&&(l={type:"link",title:null,url:u+t+s[0],children:[{type:"text",value:t+s[0]}]},s[1]&&(l=[l,{type:"text",value:s[1]}]),l))}function u(e,t,n,r){return!(!c(r,!0)||/[_-]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function c(e,t){var n=e.input.charCodeAt(e.index-1);return(n!=n||o(n)||a(n))&&(!t||47!==n)}t.transforms=[function(e){i(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/i,l],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/,u]],{ignore:["link","linkReference"]})}],t.enter={literalAutolink:function(e){this.enter({type:"link",title:null,url:"",children:[]},e)},literalAutolinkEmail:s,literalAutolinkHttp:s,literalAutolinkWww:s},t.exit={literalAutolink:function(e){this.exit(e)},literalAutolinkEmail:function(e){this.config.exit.autolinkEmail.call(this,e)},literalAutolinkHttp:function(e){this.config.exit.autolinkProtocol.call(this,e)},literalAutolinkWww:function(e){this.config.exit.data.call(this,e),this.stack[this.stack.length-1].url="http://"+this.sliceSerialize(e)}}},9769:function(e){"use strict";e.exports=function(e,t){var n,r=String(e),i=0;if("string"!=typeof t)throw Error("Expected character");for(n=r.indexOf(t);-1!==n;)i++,n=r.indexOf(t,n+t.length);return i}},27938:function(e,t,n){"use strict";var r=n(38412),i=n(31581)(r);e.exports=i},29925:function(e,t,n){"use strict";var r=n(31581)(/\s/);e.exports=r},66305:function(e){"use strict";var t=String.fromCharCode;e.exports=t},38412:function(e){"use strict";e.exports=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/},31581:function(e,t,n){"use strict";var r=n(66305);e.exports=function(e){return function(t){return e.test(r(t))}}},45574:function(e,t){var n="phrasing",r=["autolink","link","image","label"];t.unsafe=[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:n,notInConstruct:r},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:n,notInConstruct:r},{character:":",before:"[ps]",after:"\\/",inConstruct:n,notInConstruct:r}]},89828:function(e,t){t.canContainEols=["delete"],t.enter={strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},t.exit={strikethrough:function(e){this.exit(e)}}},38112:function(e){e.exports=function(e,t,n){for(var r,i,a,o=e.children||[],s=[],l=-1,u=n.before;++l0&&("\r"===u||"\n"===u)&&"html"===a.type&&(s[s.length-1]=s[s.length-1].replace(/(\r?\n|\r)$/," "),u=" "),s.push(t.handle(a,e,t,{before:u,after:r})),u=s[s.length-1].slice(-1);return s.join("")}},9888:function(e,t,n){var r=n(38112);function i(e,t,n){var i=n.enter("emphasis"),a=r(e,n,{before:"~",after:"~"});return i(),"~~"+a+"~~"}t.unsafe=[{character:"~",inConstruct:"phrasing"}],t.handlers={delete:i},i.peek=function(){return"~"}},4865:function(e,t){function n(e){this.exit(e)}function r(e){this.enter({type:"tableCell",children:[]},e)}function i(e,t){return"|"===t?t:e}t.enter={table:function(e){this.enter({type:"table",align:e._align,children:[]},e),this.setData("inTable",!0)},tableData:r,tableHeader:r,tableRow:function(e){this.enter({type:"tableRow",children:[]},e)}},t.exit={codeText:function(e){var t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,i)),this.stack[this.stack.length-1].value=t,this.exit(e)},table:function(e){this.exit(e),this.setData("inTable")},tableData:n,tableHeader:n,tableRow:n}},23806:function(e,t,n){e.exports=i,i.peek=function(){return"`"};var r=n(40830);function i(e,t,n){for(var i,a,o,s,l=e.value||"",u="`",c=-1;RegExp("(^|[^`])"+u+"([^`]|$)").test(l);)u+="`";for(/[^ \r\n]/.test(l)&&(/[ \r\n`]/.test(l.charAt(0))||/[ \r\n`]/.test(l.charAt(l.length-1)))&&(l=" "+l+" ");++c0&&("\r"===u||"\n"===u)&&"html"===a.type&&(s[s.length-1]=s[s.length-1].replace(/(\r?\n|\r)$/," "),u=" "),s.push(t.handle(a,e,t,{before:u,after:r})),u=s[s.length-1].slice(-1);return s.join("")}},40830:function(e){e.exports=function(e){var t,n;return e._compiled||(t=e.before?"(?:"+e.before+")":"",n=e.after?"(?:"+e.after+")":"",e.atBreak&&(t="[\\r\\n][\\t ]*"+t),e._compiled=RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(n||""),"g")),e._compiled}},63046:function(e,t,n){var r=n(33404),i=n(23806),a=n(78234);e.exports=function(e){var t=e||{},n=t.tableCellPadding,o=t.tablePipeAlign,s=t.stringLength,l=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:function(e,t,n){return c(function(e,t){for(var n=e.children,r=-1,i=n.length,a=[],o=t.enter("table");++r-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+"."),l=d.length+1,("tab"===h||"mixed"===h&&(t&&t.spread||e.spread))&&(l=4*Math.ceil(l/4)),c=n.enter("listItem"),u=s(o(e,n),function(e,t,n){return t?(n?"":r(" ",l))+e:(n?d:d+r(" ",l-d.length))+e}),c(),u};var r=n(96464),i=n(73931),a=n(93631),o=n(74768),s=n(72001)},73931:function(e){e.exports=function(e){var t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}},93631:function(e){e.exports=function(e){var t=e.options.listItemIndent||"tab";if(1===t||"1"===t)return"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}},74768:function(e,t,n){e.exports=function(e,t){for(var n,i=e.children||[],a=[],o=-1;++o\n\n"}return"\n\n"}(n,i[o+1]));return a.join("")};var r=n(96464)},72001:function(e){e.exports=function(e,n){for(var r,i=[],a=0,o=0;r=t.exec(e);)s(e.slice(a,r.index)),i.push(r[0]),a=r.index+r[0].length,o++;return s(e.slice(a)),i.join("");function s(e){i.push(n(e,o,!e))}};var t=/\r?\n|\r/g},94625:function(e,t,n){var r=n(78099);t.unsafe=[{atBreak:!0,character:"-",after:"[:|-]"}],t.handlers={listItem:function(e,t,n){var i=r(e,t,n),a=e.children[0];return"boolean"==typeof e.checked&&a&&"paragraph"===a.type&&(i=i.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(t){return t+"["+(e.checked?"x":" ")+"] "})),i}}},10438:function(e,t,n){var r=n(57824),i=n(89828),a=n(4865),o=n(29511),s={}.hasOwnProperty;e.exports=function(e){for(var t={transforms:[],canContainEols:[]},n=e.length,r=-1;++r=55296&&s<=57343){if(s>=55296&&s<=56319&&a+1=56320&&l<=57343){c+=encodeURIComponent(e[a]+e[a+1]),a++;continue}c+="%EF%BF%BD";continue}c+=encodeURIComponent(e[a])}return c}n.defaultChars=";/?:@&=+$,-_.!~*'()#",n.componentChars="-_.!~*'()",e.exports=n},57539:function(e,t,n){e.exports=n(62346)},51643:function(e,t,n){"use strict";var r=n(25446)(/[A-Za-z]/);e.exports=r},98968:function(e,t,n){"use strict";var r=n(25446)(/[\dA-Za-z]/);e.exports=r},23322:function(e){"use strict";e.exports=function(e){return e<32||127===e}},64155:function(e){"use strict";e.exports=function(e){return e<-2}},7824:function(e,t,n){"use strict";var r=n(23922),i=n(25446)(r);e.exports=i},87066:function(e,t,n){"use strict";var r=n(25446)(/\s/);e.exports=r},78105:function(e){"use strict";var t=String.fromCharCode;e.exports=t},23922:function(e){"use strict";e.exports=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/},25446:function(e,t,n){"use strict";var r=n(78105);e.exports=function(e){return function(t){return e.test(r(t))}}},62346:function(e,t,n){var r=n(51643),i=n(98968),a=n(23322),o=n(64155),s=n(7824),l=n(87066),u={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(t){return 87===t||t-32==87?(e.consume(t),i):n(t)}function i(t){return 87===t||t-32==87?(e.consume(t),a):n(t)}function a(t){return 46===t?(e.consume(t),s):n(t)}function s(e){return null===e||o(e)?n(e):t(e)}},partial:!0},c={tokenize:function(e,t,n){var r,i;return o;function o(t){return 38===t?e.check(p,c,u)(t):46===t||95===t?e.check(h,c,u)(t):a(t)||l(t)||45!==t&&s(t)?c(t):(e.consume(t),o)}function u(t){return 46===t?(i=r,r=void 0,e.consume(t),o):(95===t&&(r=!0),e.consume(t),o)}function c(e){return i||r?n(e):t(e)}},partial:!0},d={tokenize:function(e,t){var n=0;return r;function r(o){return 38===o?e.check(p,t,i)(o):(40===o&&n++,41===o)?e.check(h,a,i)(o):v(o)?t(o):y(o)?e.check(h,t,i)(o):(e.consume(o),r)}function i(t){return e.consume(t),r}function a(e){return--n<0?t(e):i(e)}},partial:!0},h={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(i){return y(i)?(e.consume(i),r):v(i)?t(i):n(i)}},partial:!0},p={tokenize:function(e,t,n){return function(t){return e.consume(t),i};function i(t){return r(t)?(e.consume(t),i):59===t?(e.consume(t),a):n(t)}function a(e){return v(e)?t(e):n(e)}},partial:!0},f={tokenize:function(e,t,n){var r=this;return function(t){return 87!==t&&t-32!=87||!T(r.previous)||S(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(u,e.attempt(c,e.attempt(d,i),n),n)(t))};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:T},m={tokenize:function(e,t,n){var r=this;return function(t){return 72!==t&&t-32!=72||!k(r.previous)||S(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),e.consume(t),i)};function i(t){return 84===t||t-32==84?(e.consume(t),o):n(t)}function o(t){return 84===t||t-32==84?(e.consume(t),u):n(t)}function u(t){return 80===t||t-32==80?(e.consume(t),h):n(t)}function h(t){return 83===t||t-32==83?(e.consume(t),p):p(t)}function p(t){return 58===t?(e.consume(t),f):n(t)}function f(t){return 47===t?(e.consume(t),m):n(t)}function m(t){return 47===t?(e.consume(t),g):n(t)}function g(t){return a(t)||l(t)||s(t)?n(t):e.attempt(c,e.attempt(d,O),n)(t)}function O(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:k},g={tokenize:function(e,t,n){var r,a=this;return function(t){return!x(t)||!_(a.previous)||S(a.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),function t(r){return x(r)?(e.consume(r),t):64===r?(e.consume(r),o):n(r)}(t))};function o(t){return 46===t?e.check(h,c,s)(t):45===t||95===t?e.check(h,n,l)(t):i(t)?(e.consume(t),o):c(t)}function s(t){return e.consume(t),r=!0,o}function l(t){return e.consume(t),u}function u(t){return 46===t?e.check(h,n,s)(t):o(t)}function c(i){return r?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(i)):n(i)}},previous:_},O={};t.text=O;for(var b=48;b<123;)O[b]=g,58==++b?b=65:91===b&&(b=97);function y(e){return 33===e||34===e||39===e||41===e||42===e||44===e||46===e||58===e||59===e||60===e||63===e||95===e||126===e}function v(e){return null===e||e<0||32===e||60===e}function x(e){return 43===e||45===e||46===e||95===e||i(e)}function T(e){return null===e||e<0||32===e||40===e||42===e||95===e||126===e}function k(e){return null===e||!r(e)}function _(e){return 47!==e&&k(e)}function S(e){for(var t=e.length;t--;)if(("labelLink"===e[t][1].type||"labelImage"===e[t][1].type)&&!e[t][1]._balanced)return!0}O[43]=g,O[45]=g,O[46]=g,O[95]=g,O[72]=[g,m],O[104]=[g,m],O[87]=[g,f],O[119]=[g,f]},3490:function(e,t,n){e.exports=function(e){var t=(e||{}).singleTilde,n={tokenize:function(e,n,i){var a=this.previous,o=this.events,s=0;return function(l){return 126!==l||126===a&&"characterEscape"!==o[o.length-1][1].type?i(l):(e.enter("strikethroughSequenceTemporary"),function o(l){var u,c,d=r(a);return 126===l?s>1?i(l):(e.consume(l),s++,o):s<2&&!t?i(l):(u=e.exit("strikethroughSequenceTemporary"),c=r(l),u._open=!c||2===c&&d,u._close=!d||2===d&&c,n(l))}(l))}},resolveAll:function(e,t){for(var n,r,s,l,u=-1;++uo?0:o+t:t>o?o:t,n=n>0?n:0,i.length<1e4)(a=Array.from(i)).unshift(t,n),r.apply(e,a);else for(n&&r.apply(e,[t,n]);si.indexOf(r)&&(t=r(t,n),i.push(r));return t}},35510:function(e,t,n){"use strict";var r=n(98529);e.exports=function(e){return r({},e)}},81286:function(e,t,n){e.exports=n(23993)},70562:function(e){"use strict";e.exports=function(e){return -2===e||-1===e||32===e}},95230:function(e,t,n){"use strict";var r=n(70562);e.exports=function(e,t,n,i){var a=i?i-1:1/0,o=0;return function(i){return r(i)?(e.enter(n),function i(s){return r(s)&&o++o?0:o+t:t>o?o:t,n=n>0?n:0,i.length<1e4)(a=Array.from(i)).unshift(t,n),r.apply(e,a);else for(n&&r.apply(e,[t,n]);s{})}function b(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}let y=i.default.forwardRef(function(e,t){let n,r;let{href:s,as:g,children:y,prefetch:v=null,passHref:x,replace:T,shallow:k,scroll:_,locale:S,onClick:w,onMouseEnter:E,onTouchStart:C,legacyBehavior:A=!1,...R}=e;n=y,A&&("string"==typeof n||"number"==typeof n)&&(n=i.default.createElement("a",null,n));let P=!1!==v,I=null===v?m.PrefetchKind.AUTO:m.PrefetchKind.FULL,N=i.default.useContext(c.RouterContext),$=i.default.useContext(d.AppRouterContext),L=null!=N?N:$,D=!N,{href:Q,as:M}=i.default.useMemo(()=>{if(!N){let e=b(s);return{href:e,as:g?b(g):e}}let[e,t]=(0,a.resolveHref)(N,s,!0);return{href:e,as:g?(0,a.resolveHref)(N,g):t||e}},[N,s,g]),F=i.default.useRef(Q),B=i.default.useRef(M);A&&(r=i.default.Children.only(n));let U=A?r&&"object"==typeof r&&r.ref:t,[j,z,W]=(0,h.useIntersection)({rootMargin:"200px"}),Z=i.default.useCallback(e=>{(B.current!==M||F.current!==Q)&&(W(),B.current=M,F.current=Q),j(e),U&&("function"==typeof U?U(e):"object"==typeof U&&(U.current=e))},[M,U,Q,W,j]);i.default.useEffect(()=>{L&&z&&P&&O(L,Q,M,{locale:S},{kind:I},D)},[M,Q,z,S,P,null==N?void 0:N.locale,L,D,I]);let q={ref:Z,onClick(e){A||"function"!=typeof w||w(e),A&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),L&&!e.defaultPrevented&&function(e,t,n,r,a,s,l,u,c,d){let{nodeName:h}=e.currentTarget,p="A"===h.toUpperCase();if(p&&(function(e){let t=e.currentTarget,n=t.getAttribute("target");return n&&"_self"!==n||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,o.isLocalURL)(n)))return;e.preventDefault();let f=()=>{"beforePopState"in t?t[a?"replace":"push"](n,r,{shallow:s,locale:u,scroll:l}):t[a?"replace":"push"](r||n,{forceOptimisticNavigation:!d})};c?i.default.startTransition(f):f()}(e,L,Q,M,T,k,_,S,D,P)},onMouseEnter(e){A||"function"!=typeof E||E(e),A&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),L&&(P||!D)&&O(L,Q,M,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:I},D)},onTouchStart(e){A||"function"!=typeof C||C(e),A&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),L&&(P||!D)&&O(L,Q,M,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:I},D)}};if((0,l.isAbsoluteUrl)(M))q.href=M;else if(!A||x||"a"===r.type&&!("href"in r.props)){let e=void 0!==S?S:null==N?void 0:N.locale,t=(null==N?void 0:N.isLocaleDomain)&&(0,p.getDomainLocale)(M,e,null==N?void 0:N.locales,null==N?void 0:N.domainLocales);q.href=t||(0,f.addBasePath)((0,u.addLocale)(M,e,null==N?void 0:N.defaultLocale))}return A?i.default.cloneElement(r,q):i.default.createElement("a",{...R,...q},n)}),v=y;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},80508:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let r=n(67294),i=n(10029),a="function"==typeof IntersectionObserver,o=new Map,s=[];function l(e){let{rootRef:t,rootMargin:n,disabled:l}=e,u=l||!a,[c,d]=(0,r.useState)(!1),h=(0,r.useRef)(null),p=(0,r.useCallback)(e=>{h.current=e},[]);(0,r.useEffect)(()=>{if(a){if(u||c)return;let e=h.current;if(e&&e.tagName){let r=function(e,t,n){let{id:r,observer:i,elements:a}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=s.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=o.get(r)))return t;let i=new Map,a=new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e);return t={id:n,observer:a,elements:i},s.push(n),o.set(n,t),t}(n);return a.set(e,t),i.observe(e),function(){if(a.delete(e),i.unobserve(e),0===a.size){i.disconnect(),o.delete(r);let e=s.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n});return r}}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,n,t,c,h.current]);let f=(0,r.useCallback)(()=>{d(!1)},[]);return[p,c,f]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},98836:function(e,t,n){"use strict";let r,i,a,o,s,l,u,c,d;n.r(t),n.d(t,{default:function(){return Mi}});var h,p,f,m,g,O,b,y,v,x,T,k,_,S,w,E,C,A={};n.r(A),n.d(A,{boolean:function(){return yi},booleanish:function(){return ya},commaOrSpaceSeparated:function(){return yc},commaSeparated:function(){return yu},number:function(){return ys},overloadedBoolean:function(){return yo},spaceSeparated:function(){return yl}});var R={};n.r(R),n.d(R,{boolean:function(){return vJ},booleanish:function(){return v1},commaOrSpaceSeparated:function(){return v4},commaSeparated:function(){return v9},number:function(){return v2},overloadedBoolean:function(){return v0},spaceSeparated:function(){return v5}});var P={};n.r(P),n.d(P,{boolean:function(){return xF},booleanish:function(){return xB},commaOrSpaceSeparated:function(){return xZ},commaSeparated:function(){return xW},number:function(){return xj},overloadedBoolean:function(){return xU},spaceSeparated:function(){return xz}});var I={};n.r(I),n.d(I,{Start:function(){return Rb},StartSchema:function(){return Rg},ViewForm:function(){return Ry},useInformation:function(){return RO}});var N={};n.r(N),n.d(N,{End:function(){return $g},EndSchema:function(){return $h},ViewForm:function(){return $O},useInformation:function(){return $p}});var $={};n.r($),n.d($,{AnswerSchema:function(){return $I},EvaluationForm:function(){return $M},FeedbackForm:function(){return $F},OptionsSchema:function(){return $A},ResultSchema:function(){return $P},Statistic:function(){return $B},StatisticSchema:function(){return $N},Task:function(){return $q},TaskSchema:function(){return $R},ViewForm:function(){return $Y},answerAction:function(){return $W},checkAction:function(){return $j},evaluate:function(){return $$},initialState:function(){return $U},options:function(){return $C},reducer:function(){return $Z},uncheckAction:function(){return $z},updateStatistic:function(){return $G},useInformation:function(){return $H}});var L={};n.r(L),n.d(L,{AnswerSchema:function(){return La},BlankFeedbackForm:function(){return Le},EvaluationForm:function(){return $6},FeedbackForm:function(){return Lt},ResultSchema:function(){return Li},Statistic:function(){return Ld},StatisticSchema:function(){return Lr},Task:function(){return Lv},TaskSchema:function(){return Ln},ViewForm:function(){return Lk},answerAction:function(){return Lm},changeBlankAction:function(){return Lf},evaluate:function(){return $4},initialState:function(){return Lp},reducer:function(){return Lg},updateStatistic:function(){return Lx},useInformation:function(){return LT}});var D={};n.r(D),n.d(D,{AnswerSchema:function(){return L1},EvaluationForm:function(){return LH},FeedbackForm:function(){return LY},ResultSchema:function(){return L0},Statistic:function(){return L2},StatisticSchema:function(){return LJ},Task:function(){return L9},TaskSchema:function(){return LK},ViewForm:function(){return L6},evaluate:function(){return LL},kappa:function(){return L$},updateStatistic:function(){return L3},useInformation:function(){return L8}});var Q={};n.r(Q),n.d(Q,{AnswerSchema:function(){return Dg},EvaluationForm:function(){return Dh},FeedbackForm:function(){return Dp},ResultSchema:function(){return DO},Statistic:function(){return Db},StatisticSchema:function(){return Dm},Task:function(){return D_},TaskSchema:function(){return Df},ViewForm:function(){return DE},answerAction:function(){return DT},changeAction:function(){return Dx},evaluate:function(){return Dc},initialState:function(){return Dv},reducer:function(){return Dk},updateStatistic:function(){return DS},useInformation:function(){return Dw}});var M={};n.r(M),n.d(M,{AnswerSchema:function(){return DW},EvaluationForm:function(){return DB},FeedbackForm:function(){return DU},ResultSchema:function(){return DZ},Statistic:function(){return Dq},StatisticSchema:function(){return Dz},Task:function(){return D1},TaskSchema:function(){return Dj},ViewForm:function(){return D5},evaluate:function(){return DM},updateStatistic:function(){return D0},useInformation:function(){return D2}});var F={};n.r(F),n.d(F,{Input:function(){return D8},InputSchema:function(){return D4},ViewForm:function(){return D6},useInformation:function(){return D3}});var B={};n.r(B),n.d(B,{Title:function(){return Qn},TitleSchema:function(){return Qe},ViewForm:function(){return Qr},useInformation:function(){return Qt}});var U=n(67294),j=n.t(U,2);n(16192),n(300),n(5239),n(69446),n(95829);var z=n(93226),W=n(55495),Z=n(40705),q=n(9473),G=n(85893),H=(0,W.oM)({name:"element.tabs",initialState:{},reducers:{setActive:(e,t)=>{e[t.payload.id]=t.payload.tab}}}),Y=e=>t=>{var n;return null==(n=null==t?void 0:t[H.name])?void 0:n[e]},X={directives:{tabs:({id:e,node:t,children:n})=>{var r,i;let[a]=(0,z.V0)();e||(e=Z(t)),e=a+"."+e;let o=(0,q.v9)(Y(e)),s=(0,q.I0)(),l=null==(r=t.children)?void 0:r.map((e,t)=>{var n,r,i;return{title:(null==(n=e.properties)?void 0:n.title)||"",id:(null==(r=e.properties)?void 0:r.id)||(null==(i=e.properties)?void 0:i.title),index:t}}),u=t=>{s(H.actions.setActive({id:e,tab:t}))};return null==o&&(o=null==(i=null==l?void 0:l[0])?void 0:i.id),(0,G.jsxs)("div",{className:"hyperbook element-tabs",children:[(0,G.jsx)("div",{className:"tabs",id:`tabs-${e}`,children:l.map(({title:e,id:t,index:n})=>(0,G.jsx)("button",{className:o===t?"tab active":"tab",onClick:()=>u(t),children:e},n+t))}),null==l?void 0:l.map(({id:e,index:t})=>o===e&&(0,G.jsx)("div",{className:"tabpanel",children:null==n?void 0:n[t]},t+e))]})},tab:({children:e})=>(0,G.jsx)(U.Fragment,{children:e})},slice:H};n(19673);var V=Object.defineProperty,K=Object.defineProperties,J=Object.getOwnPropertyDescriptors,ee=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,en=Object.prototype.propertyIsEnumerable,er=(e,t,n)=>t in e?V(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ei=(e,t)=>{for(var n in t||={})et.call(t,n)&&er(e,n,t[n]);if(ee)for(var n of ee(t))en.call(t,n)&&er(e,n,t[n]);return e},ea=(e,t)=>K(e,J(t)),eo=e=>(0,G.jsx)("svg",ea(ei({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 -960 960 960",fill:"currentColor"},e),{children:(0,G.jsx)("path",{d:"M320-203v-560l440 280-440 280Z"})})),es=e=>(0,G.jsx)("svg",ea(ei({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 -960 960 960",fill:"currentColor"},e),{children:(0,G.jsx)("path",{d:"M555-200v-560h175v560H555Zm-325 0v-560h175v560H230Z"})}));function el(e){var t=Math.floor((e=Math.floor(e))/3600),n=Math.floor((e-3600*t)/60),r=e-3600*t-60*n;let i=n<10?"0"+n:n,a=r<10?"0"+r:r;return t>0?(t<10?"0"+t:t)+":"+i+":"+a:i+":"+a}var eu={directives:{audio:({src:e,title:t,thumbnail:r,author:i,position:a="left"})=>{let o=(0,z.RI)();e=o(e,"public"),r=o(r,"public");let s=(0,U.useRef)(null),l=(0,U.useRef)(),[u,c]=(0,U.useState)(!1),[d,h]=(0,U.useState)(0),[p,f]=(0,U.useState)(0);(0,U.useEffect)(()=>(n.e(7033).then(n.t.bind(n,21796,19)).then(t=>{if(s.current){let n=t.default.create({container:s.current,cursorWidth:4,barWidth:4,barGap:5,barRadius:2,height:64,responsive:!0});n.load(e),n.on("ready",()=>{l.current=n,h(n.getDuration())}),n.on("audioprocess",()=>{f(Math.floor(n.getCurrentTime()))}),n.on("pause",()=>{c(!1)}),n.on("finish",()=>{c(!1)}),n.on("play",()=>{c(!0)}),n.on}}),()=>{var e;null==(e=l.current)||e.destroy()}),[e]);let m=()=>{l.current&&(l.current.playPause(),c(l.current.isPlaying()))};return(0,G.jsxs)("div",{className:"element-audio",children:[(0,G.jsxs)("div",{className:"player",children:["left"===a&&r&&(0,G.jsx)("div",{className:"thumbnail",style:{backgroundImage:`url(${r})`}}),"left"===a&&(0,G.jsx)("button",{className:"play",onClick:m,children:u?(0,G.jsx)(es,{}):(0,G.jsx)(eo,{})}),(0,G.jsx)("div",{className:"wave",ref:s}),"right"===a&&(0,G.jsx)("button",{className:"play right",onClick:m,children:u?(0,G.jsx)(es,{}):(0,G.jsx)(eo,{})}),"right"===a&&r&&(0,G.jsx)("div",{className:"thumbnail right",style:{backgroundImage:`url(${r})`}})]}),(0,G.jsxs)("div",{className:"information",children:[t&&(0,G.jsx)("span",{className:"title",children:t})," ",t&&i&&(0,G.jsx)("span",{className:"spacer",children:"-"})," ",i&&(0,G.jsx)("span",{className:"author",children:i})," ",(0,G.jsxs)("span",{className:"duration",children:[el(p),"/",el(d)]})]})]})}},slice:(0,W.oM)({name:"element.audio",initialState:{},reducers:{}})};n(55663);var ec={directives:{video:({src:e,title:t,author:n,poster:r})=>{let i=(0,z.RI)();return e=i(e,"public"),r=i(r,"public"),(0,G.jsxs)("div",{className:"element-video",children:[(0,G.jsx)("div",{className:"player",children:(0,G.jsx)("video",{controls:!0,src:e,poster:r,width:"100%",children:"Your browser does not support videos."})}),(0,G.jsxs)("div",{className:"information",children:[t&&(0,G.jsx)("span",{className:"title",children:t})," ",t&&n&&(0,G.jsx)("span",{className:"spacer",children:"-"})," ",n&&(0,G.jsx)("span",{className:"author",children:n})," "]})]})}},slice:(0,W.oM)({name:"element.video",initialState:{},reducers:{}})};n(1844);var ed=Object.getOwnPropertySymbols,eh=Object.prototype.hasOwnProperty,ep=Object.prototype.propertyIsEnumerable,ef=(e,t)=>{var n={};for(var r in e)eh.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&ed)for(var r of ed(e))0>t.indexOf(r)&&ep.call(e,r)&&(n[r]=e[r]);return n},em={directives:{alert:e=>{var{children:t,node:n}=e;let r=Object.keys(ef(e,["children","node"])).join(" ");return(0,G.jsx)("div",{className:`hyperbook element-alert ${r}`,children:t})}}};n(7889);var eg=({id:e,children:t,className:n})=>{let r=(0,z.nB)();e||(e=null==t?void 0:t[0].toLowerCase().replaceAll(" ","-"));let i=`/glossary/${e}`;return n&&"string"==typeof n[0]&&(i+=`#${n}`),(0,G.jsx)(r,{href:i,children:t})},eO={directives:{term:eg,t:eg}};n(30614);var eb={directives:{youtube:({children:e,id:t})=>(0,G.jsx)("div",{className:"hyperbook element-youtube",id:`video-${t}`,children:(0,G.jsx)("iframe",{src:"https://www.youtube.com/embed/"+t,frameBorder:"0",title:null==e?void 0:e.toString(),allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; fullscreen"})})}};function ey(e){let t=e.length;for(;--t>=0;)e[t]=0}n(63125);let ev=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),ex=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),eT=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),ek=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),e_=Array(576);ey(e_);let eS=Array(60);ey(eS);let ew=Array(512);ey(ew);let eE=Array(256);ey(eE);let eC=Array(29);ey(eC);let eA=Array(30);function eR(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function eP(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}ey(eA);let eI=e=>e<256?ew[e]:ew[256+(e>>>7)],eN=(e,t)=>{e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255},e$=(e,t,n)=>{e.bi_valid>16-n?(e.bi_buf|=t<>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<{e$(e,n[2*t],n[2*t+1])},eD=(e,t)=>{let n=0;do n|=1&e,e>>>=1,n<<=1;while(--t>0);return n>>>1},eQ=e=>{16===e.bi_valid?(eN(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)},eM=(e,t)=>{let n,r,i,a,o,s;let l=t.dyn_tree,u=t.max_code,c=t.stat_desc.static_tree,d=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,f=t.stat_desc.max_length,m=0;for(a=0;a<=15;a++)e.bl_count[a]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)(a=l[2*l[2*(r=e.heap[n])+1]+1]+1)>f&&(a=f,m++),l[2*r+1]=a,!(r>u)&&(e.bl_count[a]++,o=0,r>=p&&(o=h[r-p]),s=l[2*r],e.opt_len+=s*(a+o),d&&(e.static_len+=s*(c[2*r+1]+o)));if(0!==m){do{for(a=f-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[f]--,m-=2}while(m>0);for(a=f;0!==a;a--)for(r=e.bl_count[a];0!==r;)!((i=e.heap[--n])>u)&&(l[2*i+1]!==a&&(e.opt_len+=(a-l[2*i+1])*l[2*i],l[2*i+1]=a),r--)}},eF=(e,t,n)=>{let r,i;let a=Array(16),o=0;for(r=1;r<=15;r++)o=o+n[r-1]<<1,a[r]=o;for(i=0;i<=t;i++){let t=e[2*i+1];0!==t&&(e[2*i]=eD(a[t]++,t))}},eB=()=>{let e,t,n,o,s;let l=Array(16);for(o=0,n=0;o<28;o++)for(e=0,eC[o]=n;e<1<>=7;o<30;o++)for(e=0,eA[o]=s<<7;e<1<{let t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},ej=e=>{e.bi_valid>8?eN(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},ez=(e,t,n,r)=>{let i=2*t,a=2*n;return e[i]{let r=e.heap[n],i=n<<1;for(;i<=e.heap_len&&(i{let r,i,a,o;let s=0;if(0!==e.sym_next)do r=(255&e.pending_buf[e.sym_buf+s++])+((255&e.pending_buf[e.sym_buf+s++])<<8),i=e.pending_buf[e.sym_buf+s++],0===r?eL(e,i,t):(eL(e,(a=eE[i])+256+1,t),0!==(o=ev[a])&&e$(e,i-=eC[a],o),eL(e,a=eI(--r),n),0!==(o=ex[a])&&e$(e,r-=eA[a],o));while(s{let n,r,i;let a=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,u=-1;for(n=0,e.heap_len=0,e.heap_max=573;n>1;n>=1;n--)eW(e,a,n);i=l;do n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],eW(e,a,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,a[2*i]=a[2*n]+a[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,a[2*n+1]=a[2*r+1]=i,e.heap[1]=i++,eW(e,a,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],eM(e,t),eF(a,u,e.bl_count)},eG=(e,t,n)=>{let r,i;let a=-1,o=t[1],s=0,l=7,u=4;for(0===o&&(l=138,u=3),t[(n+1)*2+1]=65535,r=0;r<=n;r++)i=o,o=t[(r+1)*2+1],++s{let r,i;let a=-1,o=t[1],s=0,l=7,u=4;for(0===o&&(l=138,u=3),r=0;r<=n;r++)if(i=o,o=t[(r+1)*2+1],!(++s{let t;for(eG(e,e.dyn_ltree,e.l_desc.max_code),eG(e,e.dyn_dtree,e.d_desc.max_code),eq(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*ek[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t},eX=(e,t,n,r)=>{let i;for(e$(e,t-257,5),e$(e,n-1,5),e$(e,r-4,4),i=0;i{let t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0},eK=!1,eJ=(e,t,n,r)=>{e$(e,0+(r?1:0),3),ej(e),eN(e,n),eN(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n};var e1={_tr_init:e=>{eK||(eB(),eK=!0),e.l_desc=new eP(e.dyn_ltree,r),e.d_desc=new eP(e.dyn_dtree,i),e.bl_desc=new eP(e.bl_tree,a),e.bi_buf=0,e.bi_valid=0,eU(e)},_tr_stored_block:eJ,_tr_flush_block:(e,t,n,r)=>{let i,a;let o=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=eV(e)),eq(e,e.l_desc),eq(e,e.d_desc),o=eY(e),i=e.opt_len+3+7>>>3,(a=e.static_len+3+7>>>3)<=i&&(i=a)):i=a=n+5,n+4<=i&&-1!==t?eJ(e,t,n,r):4===e.strategy||a===i?(e$(e,2+(r?1:0),3),eZ(e,e_,eS)):(e$(e,4+(r?1:0),3),eX(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),eZ(e,e.dyn_ltree,e.dyn_dtree)),eU(e),r&&ej(e)},_tr_tally:(e,t,n)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=n,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[(eE[n]+256+1)*2]++,e.dyn_dtree[2*eI(t)]++),e.sym_next===e.sym_end),_tr_align:e=>{e$(e,2,3),eL(e,256,e_),eQ(e)}},e0=(e,t,n,r)=>{let i=65535&e|0,a=e>>>16&65535|0,o=0;for(;0!==n;){o=n>2e3?2e3:n,n-=o;do a=a+(i=i+t[r++]|0)|0;while(--o);i%=65521,a%=65521}return i|a<<16|0};let e2=new Uint32Array((()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t})());var e5=(e,t,n,r)=>{let i=r+n;e^=-1;for(let n=r;n>>8^e2[(e^t[n])&255];return -1^e},e9={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},e4={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};let{_tr_init:e3,_tr_stored_block:e8,_tr_flush_block:e6,_tr_tally:e7,_tr_align:te}=e1,{Z_NO_FLUSH:tt,Z_PARTIAL_FLUSH:tn,Z_FULL_FLUSH:tr,Z_FINISH:ti,Z_BLOCK:ta,Z_OK:to,Z_STREAM_END:ts,Z_STREAM_ERROR:tl,Z_DATA_ERROR:tu,Z_BUF_ERROR:tc,Z_DEFAULT_COMPRESSION:td,Z_FILTERED:th,Z_HUFFMAN_ONLY:tp,Z_RLE:tf,Z_FIXED:tm,Z_DEFAULT_STRATEGY:tg,Z_UNKNOWN:tO,Z_DEFLATED:tb}=e4,ty=(e,t)=>(e.msg=e9[t],t),tv=e=>2*e-(e>4?9:0),tx=e=>{let t=e.length;for(;--t>=0;)e[t]=0},tT=e=>{let t,n,r;let i=e.w_size;r=t=e.hash_size;do n=e.head[--r],e.head[r]=n>=i?n-i:0;while(--t);r=t=i;do n=e.prev[--r],e.prev[r]=n>=i?n-i:0;while(--t)},tk=(e,t,n)=>(t<{let t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))},tS=(e,t)=>{e6(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,t_(e.strm)},tw=(e,t)=>{e.pending_buf[e.pending++]=t},tE=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t},tC=(e,t,n,r)=>{let i=e.avail_in;return(i>r&&(i=r),0===i)?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),n),1===e.state.wrap?e.adler=e0(e.adler,t,i,n):2===e.state.wrap&&(e.adler=e5(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)},tA=(e,t)=>{let n,r,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-262?e.strstart-(e.w_size-262):0,u=e.window,c=e.w_mask,d=e.prev,h=e.strstart+258,p=u[a+o-1],f=u[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(u[(n=t)+o]!==f||u[n+o-1]!==p||u[n]!==u[a]||u[++n]!==u[a+1])continue;a+=2,n++;do;while(u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&ao){if(e.match_start=t,o=r,r>=s)break;p=u[a+o-1],f=u[a+o]}}while((t=d[t&c])>l&&0!=--i);return o<=e.lookahead?o:e.lookahead},tR=e=>{let t,n,r;let i=e.w_size;do{if(n=e.window_size-e.lookahead-e.strstart,e.strstart>=i+(i-262)&&(e.window.set(e.window.subarray(i,i+i-n),0),e.match_start-=i,e.strstart-=i,e.block_start-=i,e.insert>e.strstart&&(e.insert=e.strstart),tT(e),n+=i),0===e.strm.avail_in)break;if(t=tC(e.strm,e.window,e.strstart+e.lookahead,n),e.lookahead+=t,e.lookahead+e.insert>=3)for(r=e.strstart-e.insert,e.ins_h=e.window[r],e.ins_h=tk(e,e.ins_h,e.window[r+1]);e.insert&&(e.ins_h=tk(e,e.ins_h,e.window[r+3-1]),e.prev[r&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=r,r++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<262&&0!==e.strm.avail_in)},tP=(e,t)=>{let n=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,r,i,a,o=0,s=e.strm.avail_in;do{if(r=65535,a=e.bi_valid+42>>3,e.strm.avail_outi+e.strm.avail_in&&(r=i+e.strm.avail_in),r>a&&(r=a),r>8,e.pending_buf[e.pending-2]=~r,e.pending_buf[e.pending-1]=~r>>8,t_(e.strm),i&&(i>r&&(i=r),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+i),e.strm.next_out),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i,e.block_start+=i,r-=i),r&&(tC(e.strm,e.strm.output,e.strm.next_out,r),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r)}while(0===o);return((s-=e.strm.avail_in)&&(s>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=s&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-s,e.strm.next_in),e.strstart),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.block_start=e.strstart),e.high_watera&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,a+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),a>e.strm.avail_in&&(a=e.strm.avail_in),a&&(tC(e.strm,e.window,e.strstart,a),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.high_water>3,n=(a=e.pending_buf_size-a>65535?65535:e.pending_buf_size-a)>e.w_size?e.w_size:a,((i=e.strstart-e.block_start)>=n||(i||t===ti)&&t!==tt&&0===e.strm.avail_in&&i<=a)&&(r=i>a?a:i,o=t===ti&&0===e.strm.avail_in&&r===i?1:0,e8(e,e.block_start,r,o),e.block_start+=r,t_(e.strm)),o?3:1)},tI=(e,t)=>{let n,r;for(;;){if(e.lookahead<262){if(tR(e),e.lookahead<262&&t===tt)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=tk(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-262&&(e.match_length=tA(e,n)),e.match_length>=3){if(r=e7(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do e.strstart++,e.ins_h=tk(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=tk(e,e.ins_h,e.window[e.strstart+1])}else r=e7(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(tS(e,!1),0===e.strm.avail_out))return 1}return(e.insert=e.strstart<2?e.strstart:2,t===ti)?(tS(e,!0),0===e.strm.avail_out)?3:4:e.sym_next&&(tS(e,!1),0===e.strm.avail_out)?1:2},tN=(e,t)=>{let n,r,i;for(;;){if(e.lookahead<262){if(tR(e),e.lookahead<262&&t===tt)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=tk(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.prev_length4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-3,r=e7(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=tk(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(0!=--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(tS(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((r=e7(e,0,e.window[e.strstart-1]))&&tS(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return(e.match_available&&(r=e7(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,t===ti)?(tS(e,!0),0===e.strm.avail_out)?3:4:e.sym_next&&(tS(e,!1),0===e.strm.avail_out)?1:2},t$=(e,t)=>{let n,r,i,a;let o=e.window;for(;;){if(e.lookahead<=258){if(tR(e),e.lookahead<=258&&t===tt)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(r=o[i=e.strstart-1])===o[++i]&&r===o[++i]&&r===o[++i]){a=e.strstart+258;do;while(r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&ie.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=e7(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=e7(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(tS(e,!1),0===e.strm.avail_out))return 1}return(e.insert=0,t===ti)?(tS(e,!0),0===e.strm.avail_out)?3:4:e.sym_next&&(tS(e,!1),0===e.strm.avail_out)?1:2},tL=(e,t)=>{let n;for(;;){if(0===e.lookahead&&(tR(e),0===e.lookahead)){if(t===tt)return 1;break}if(e.match_length=0,n=e7(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(tS(e,!1),0===e.strm.avail_out))return 1}return(e.insert=0,t===ti)?(tS(e,!0),0===e.strm.avail_out)?3:4:e.sym_next&&(tS(e,!1),0===e.strm.avail_out)?1:2};function tD(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}let tQ=[new tD(0,0,0,0,tP),new tD(4,4,8,4,tI),new tD(4,5,16,8,tI),new tD(4,6,32,32,tI),new tD(4,4,16,16,tN),new tD(8,16,32,32,tN),new tD(8,16,128,128,tN),new tD(8,32,128,256,tN),new tD(32,128,258,1024,tN),new tD(32,258,258,4096,tN)],tM=e=>{e.window_size=2*e.w_size,tx(e.head),e.max_lazy_match=tQ[e.level].max_lazy,e.good_match=tQ[e.level].good_length,e.nice_match=tQ[e.level].nice_length,e.max_chain_length=tQ[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0};function tF(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=tb,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),tx(this.dyn_ltree),tx(this.dyn_dtree),tx(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),tx(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),tx(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}let tB=e=>{if(!e)return 1;let t=e.state;return t&&t.strm===e&&(42===t.status||57===t.status||69===t.status||73===t.status||91===t.status||103===t.status||113===t.status||666===t.status)?0:1},tU=e=>{if(tB(e))return ty(e,tl);e.total_in=e.total_out=0,e.data_type=tO;let t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=2===t.wrap?57:t.wrap?42:113,e.adler=2===t.wrap?0:1,t.last_flush=-2,e3(t),to},tj=e=>{let t=tU(e);return t===to&&tM(e.state),t},tz=(e,t,n,r,i,a)=>{if(!e)return tl;let o=1;if(t===td&&(t=6),r<0?(o=0,r=-r):r>15&&(o=2,r-=16),i<1||i>9||n!==tb||r<8||r>15||t<0||t>9||a<0||a>tm||8===r&&1!==o)return ty(e,tl);8===r&&(r=9);let s=new tF;return e.state=s,s.strm=e,s.status=42,s.wrap=o,s.gzhead=null,s.w_bits=r,s.w_size=1<tz(e,t,tb,15,8,tg),deflateInit2:tz,deflateReset:tj,deflateResetKeep:tU,deflateSetHeader:(e,t)=>tB(e)||2!==e.state.wrap?tl:(e.state.gzhead=t,to),deflate:(e,t)=>{if(tB(e)||t>ta||t<0)return e?ty(e,tl):tl;let n=e.state;if(!e.output||0!==e.avail_in&&!e.input||666===n.status&&t!==ti)return ty(e,0===e.avail_out?tc:tl);let r=n.last_flush;if(n.last_flush=t,0!==n.pending){if(t_(e),0===e.avail_out)return n.last_flush=-1,to}else if(0===e.avail_in&&tv(t)<=tv(r)&&t!==ti)return ty(e,tc);if(666===n.status&&0!==e.avail_in)return ty(e,tc);if(42===n.status&&0===n.wrap&&(n.status=113),42===n.status){let t=tb+(n.w_bits-8<<4)<<8;if(t|=(n.strategy>=tp||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(t|=32),tE(n,t+=31-t%31),0!==n.strstart&&(tE(n,e.adler>>>16),tE(n,65535&e.adler)),e.adler=1,n.status=113,t_(e),0!==n.pending)return n.last_flush=-1,to}if(57===n.status){if(e.adler=0,tw(n,31),tw(n,139),tw(n,8),n.gzhead)tw(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),tw(n,255&n.gzhead.time),tw(n,n.gzhead.time>>8&255),tw(n,n.gzhead.time>>16&255),tw(n,n.gzhead.time>>24&255),tw(n,9===n.level?2:n.strategy>=tp||n.level<2?4:0),tw(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(tw(n,255&n.gzhead.extra.length),tw(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=e5(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69;else if(tw(n,0),tw(n,0),tw(n,0),tw(n,0),tw(n,0),tw(n,9===n.level?2:n.strategy>=tp||n.level<2?4:0),tw(n,3),n.status=113,t_(e),0!==n.pending)return n.last_flush=-1,to}if(69===n.status){if(n.gzhead.extra){let t=n.pending,r=(65535&n.gzhead.extra.length)-n.gzindex;for(;n.pending+r>n.pending_buf_size;){let i=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+i),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>t&&(e.adler=e5(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex+=i,t_(e),0!==n.pending)return n.last_flush=-1,to;t=0,r-=i}let i=new Uint8Array(n.gzhead.extra);n.pending_buf.set(i.subarray(n.gzindex,n.gzindex+r),n.pending),n.pending+=r,n.gzhead.hcrc&&n.pending>t&&(e.adler=e5(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex=0}n.status=73}if(73===n.status){if(n.gzhead.name){let t,r=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>r&&(e.adler=e5(e.adler,n.pending_buf,n.pending-r,r)),t_(e),0!==n.pending)return n.last_flush=-1,to;r=0}t=n.gzindexr&&(e.adler=e5(e.adler,n.pending_buf,n.pending-r,r)),n.gzindex=0}n.status=91}if(91===n.status){if(n.gzhead.comment){let t,r=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>r&&(e.adler=e5(e.adler,n.pending_buf,n.pending-r,r)),t_(e),0!==n.pending)return n.last_flush=-1,to;r=0}t=n.gzindexr&&(e.adler=e5(e.adler,n.pending_buf,n.pending-r,r))}n.status=103}if(103===n.status){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(t_(e),0!==n.pending))return n.last_flush=-1,to;tw(n,255&e.adler),tw(n,e.adler>>8&255),e.adler=0}if(n.status=113,t_(e),0!==n.pending)return n.last_flush=-1,to}if(0!==e.avail_in||0!==n.lookahead||t!==tt&&666!==n.status){let r=0===n.level?tP(n,t):n.strategy===tp?tL(n,t):n.strategy===tf?t$(n,t):tQ[n.level].func(n,t);if((3===r||4===r)&&(n.status=666),1===r||3===r)return 0===e.avail_out&&(n.last_flush=-1),to;if(2===r&&(t===tn?te(n):t!==ta&&(e8(n,0,0,!1),t===tr&&(tx(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),t_(e),0===e.avail_out))return n.last_flush=-1,to}return t!==ti?to:n.wrap<=0?ts:(2===n.wrap?(tw(n,255&e.adler),tw(n,e.adler>>8&255),tw(n,e.adler>>16&255),tw(n,e.adler>>24&255),tw(n,255&e.total_in),tw(n,e.total_in>>8&255),tw(n,e.total_in>>16&255),tw(n,e.total_in>>24&255)):(tE(n,e.adler>>>16),tE(n,65535&e.adler)),t_(e),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?to:ts)},deflateEnd:e=>{if(tB(e))return tl;let t=e.state.status;return e.state=null,113===t?ty(e,tu):to},deflateSetDictionary:(e,t)=>{let n=t.length;if(tB(e))return tl;let r=e.state,i=r.wrap;if(2===i||1===i&&42!==r.status||r.lookahead)return tl;if(1===i&&(e.adler=e0(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){0===i&&(tx(r.head),r.strstart=0,r.block_start=0,r.insert=0);let e=new Uint8Array(r.w_size);e.set(t.subarray(n-r.w_size,n),0),t=e,n=r.w_size}let a=e.avail_in,o=e.next_in,s=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,tR(r);r.lookahead>=3;){let e=r.strstart,t=r.lookahead-2;do r.ins_h=tk(r,r.ins_h,r.window[e+3-1]),r.prev[e&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=e,e++;while(--t);r.strstart=e,r.lookahead=2,tR(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,e.next_in=o,e.input=s,e.avail_in=a,r.wrap=i,to},deflateInfo:"pako deflate (from Nodeca project)"};let tZ=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var tq={assign:function(e){let t=Array.prototype.slice.call(arguments,1);for(;t.length;){let n=t.shift();if(n){if("object"!=typeof n)throw TypeError(n+"must be non-object");for(let t in n)tZ(n,t)&&(e[t]=n[t])}}return e},flattenChunks:e=>{let t=0;for(let n=0,r=e.length;n=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;tH[254]=tH[254]=1;let tY=(e,t)=>{if(t<65534&&e.subarray&&tG)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let r=0;r{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,n,r,i,a,o=e.length,s=0;for(i=0;i>>6,t[a++]=128|63&n):n<65536?(t[a++]=224|n>>>12,t[a++]=128|n>>>6&63,t[a++]=128|63&n):(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63,t[a++]=128|n>>>6&63,t[a++]=128|63&n);return t},buf2string:(e,t)=>{let n,r;let i=t||e.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let a=Array(2*i);for(r=0,n=0;n4){a[r++]=65533,n+=o-1;continue}for(t&=2===o?31:3===o?15:7;o>1&&n1){a[r++]=65533;continue}t<65536?a[r++]=t:(t-=65536,a[r++]=55296|t>>10&1023,a[r++]=56320|1023&t)}return tY(a,r)},utf8border:(e,t)=>{(t=t||e.length)>e.length&&(t=e.length);let n=t-1;for(;n>=0&&(192&e[n])==128;)n--;return n<0||0===n?t:n+tH[e[n]]>t?n:t}},tV=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};let tK=Object.prototype.toString,{Z_NO_FLUSH:tJ,Z_SYNC_FLUSH:t1,Z_FULL_FLUSH:t0,Z_FINISH:t2,Z_OK:t5,Z_STREAM_END:t9,Z_DEFAULT_COMPRESSION:t4,Z_DEFAULT_STRATEGY:t3,Z_DEFLATED:t8}=e4;function t6(e){this.options=tq.assign({level:t4,method:t8,chunkSize:16384,windowBits:15,memLevel:8,strategy:t3},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new tV,this.strm.avail_out=0;let n=tW.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==t5)throw Error(e9[n]);if(t.header&&tW.deflateSetHeader(this.strm,t.header),t.dictionary){let e;if(e="string"==typeof t.dictionary?tX.string2buf(t.dictionary):"[object ArrayBuffer]"===tK.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(n=tW.deflateSetDictionary(this.strm,e))!==t5)throw Error(e9[n]);this._dict_set=!0}}function t7(e,t){let n=new t6(t);if(n.push(e,!0),n.err)throw n.msg||e9[n.err];return n.result}t6.prototype.push=function(e,t){let n,r;let i=this.strm,a=this.options.chunkSize;if(this.ended)return!1;for(r=t===~~t?t:!0===t?t2:tJ,"string"==typeof e?i.input=tX.string2buf(e):"[object ArrayBuffer]"===tK.call(e)?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;;){if(0===i.avail_out&&(i.output=new Uint8Array(a),i.next_out=0,i.avail_out=a),(r===t1||r===t0)&&i.avail_out<=6){this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;continue}if((n=tW.deflate(i,r))===t9)return i.next_out>0&&this.onData(i.output.subarray(0,i.next_out)),n=tW.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===t5;if(0===i.avail_out){this.onData(i.output);continue}if(r>0&&i.next_out>0){this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;continue}if(0===i.avail_in)break}return!0},t6.prototype.onData=function(e){this.chunks.push(e)},t6.prototype.onEnd=function(e){e===t5&&(this.result=tq.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var ne=function(e,t){let n,r,i,a,o,s,l,u,c,d,h,p,f,m,g,O,b,y,v,x,T,k,_,S;let w=e.state;n=e.next_in,_=e.input,r=n+(e.avail_in-5),i=e.next_out,S=e.output,a=i-(t-e.avail_out),o=i+(e.avail_out-257),s=w.dmax,l=w.wsize,u=w.whave,c=w.wnext,d=w.window,h=w.hold,p=w.bits,f=w.lencode,m=w.distcode,g=(1<>>=y=b>>>24,p-=y,0==(y=b>>>16&255))S[i++]=65535&b;else if(16&y){v=65535&b,(y&=15)&&(p>>=y,p-=y),p<15&&(h+=_[n++]<>>=y=b>>>24,p-=y,16&(y=b>>>16&255)){if(x=65535&b,p<(y&=15)&&(h+=_[n++]<s){e.msg="invalid distance too far back",w.mode=16209;break e}if(h>>>=y,p-=y,x>(y=i-a)){if((y=x-y)>u&&w.sane){e.msg="invalid distance too far back",w.mode=16209;break e}if(T=0,k=d,0===c){if(T+=l-y,y2;)S[i++]=k[T++],S[i++]=k[T++],S[i++]=k[T++],v-=3;v&&(S[i++]=k[T++],v>1&&(S[i++]=k[T++]))}else{T=i-x;do S[i++]=S[T++],S[i++]=S[T++],S[i++]=S[T++],v-=3;while(v>2);v&&(S[i++]=S[T++],v>1&&(S[i++]=S[T++]))}}else if((64&y)==0){b=m[(65535&b)+(h&(1<>3,p-=v<<3,h&=(1<{let l,u,c,d,h,p,f,m,g;let O=s.bits,b=0,y=0,v=0,x=0,T=0,k=0,_=0,S=0,w=0,E=0,C=null,A=new Uint16Array(16),R=new Uint16Array(16),P=null;for(b=0;b<=15;b++)A[b]=0;for(y=0;y=1&&0===A[x];x--);if(T>x&&(T=x),0===x)return i[a++]=20971520,i[a++]=20971520,s.bits=1,0;for(v=1;v0&&(0===e||1!==x))return -1;for(b=1,R[1]=0;b<15;b++)R[b+1]=R[b]+A[b];for(y=0;y852||2===e&&w>592)return 1;for(;;){f=b-_,o[y]+1=p?(m=P[o[y]-p],g=C[o[y]-p]):(m=96,g=0),l=1<>_)+(u-=l)]=f<<24|m<<16|g|0;while(0!==u);for(l=1<>=1;if(0!==l?(E&=l-1,E+=l):E=0,y++,0==--A[b]){if(b===x)break;b=t[n+o[y]]}if(b>T&&(E&d)!==c){for(0===_&&(_=T),h+=v,S=1<<(k=b-_);k+_852||2===e&&w>592)return 1;i[c=E&d]=T<<24|k<<16|h-a|0}}return 0!==E&&(i[h+E]=b-_<<24|4194304),s.bits=T,0};let{Z_FINISH:no,Z_BLOCK:ns,Z_TREES:nl,Z_OK:nu,Z_STREAM_END:nc,Z_NEED_DICT:nd,Z_STREAM_ERROR:nh,Z_DATA_ERROR:np,Z_MEM_ERROR:nf,Z_BUF_ERROR:nm,Z_DEFLATED:ng}=e4,nO=e=>(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24);function nb(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}let ny=e=>{if(!e)return 1;let t=e.state;return!t||t.strm!==e||t.mode<16180||t.mode>16211?1:0},nv=e=>{if(ny(e))return nh;let t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=16180,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(852),t.distcode=t.distdyn=new Int32Array(592),t.sane=1,t.back=-1,nu},nx=e=>{if(ny(e))return nh;let t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,nv(e)},nT=(e,t)=>{let n;if(ny(e))return nh;let r=e.state;return(t<0?(n=0,t=-t):(n=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15))?nh:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,nx(e))},nk=(e,t)=>{if(!e)return nh;let n=new nb;e.state=n,n.strm=e,n.window=null,n.mode=16180;let r=nT(e,t);return r!==nu&&(e.state=null),r},n_=!0,nS=e=>{if(n_){o=new Int32Array(512),s=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(na(1,e.lens,0,288,o,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;na(2,e.lens,0,32,s,0,e.work,{bits:5}),n_=!1}e.lencode=o,e.lenbits=9,e.distcode=s,e.distbits=5},nw=(e,t,n,r)=>{let i;let a=e.state;return null===a.window&&(a.wsize=1<=a.wsize?(a.window.set(t.subarray(n-a.wsize,n),0),a.wnext=0,a.whave=a.wsize):((i=a.wsize-a.wnext)>r&&(i=r),a.window.set(t.subarray(n-r,n-r+i),a.wnext),(r-=i)?(a.window.set(t.subarray(n-r,n),0),a.wnext=r,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whavenk(e,15),inflateInit2:nk,inflate:(e,t)=>{let n,r,i,a,o,s,l,u,c,d,h,p,f,m,g,O,b,y,v,x,T,k,_,S;let w=0,E=new Uint8Array(4),C=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(ny(e)||!e.output||!e.input&&0!==e.avail_in)return nh;16191===(n=e.state).mode&&(n.mode=16192),o=e.next_out,i=e.output,l=e.avail_out,a=e.next_in,r=e.input,s=e.avail_in,u=n.hold,c=n.bits,d=s,h=l,k=nu;r:for(;;)switch(n.mode){case 16180:if(0===n.wrap){n.mode=16192;break}for(;c<16;){if(0===s)break r;s--,u+=r[a++]<>>8&255,n.check=e5(n.check,E,2,0),u=0,c=0,n.mode=16181;break}if(n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&u)<<8)+(u>>8))%31){e.msg="incorrect header check",n.mode=16209;break}if((15&u)!==ng){e.msg="unknown compression method",n.mode=16209;break}if(u>>>=4,c-=4,T=(15&u)+8,0===n.wbits&&(n.wbits=T),T>15||T>n.wbits){e.msg="invalid window size",n.mode=16209;break}n.dmax=1<>8&1),512&n.flags&&4&n.wrap&&(E[0]=255&u,E[1]=u>>>8&255,n.check=e5(n.check,E,2,0)),u=0,c=0,n.mode=16182;case 16182:for(;c<32;){if(0===s)break r;s--,u+=r[a++]<>>8&255,E[2]=u>>>16&255,E[3]=u>>>24&255,n.check=e5(n.check,E,4,0)),u=0,c=0,n.mode=16183;case 16183:for(;c<16;){if(0===s)break r;s--,u+=r[a++]<>8),512&n.flags&&4&n.wrap&&(E[0]=255&u,E[1]=u>>>8&255,n.check=e5(n.check,E,2,0)),u=0,c=0,n.mode=16184;case 16184:if(1024&n.flags){for(;c<16;){if(0===s)break r;s--,u+=r[a++]<>>8&255,n.check=e5(n.check,E,2,0)),u=0,c=0}else n.head&&(n.head.extra=null);n.mode=16185;case 16185:if(1024&n.flags&&((p=n.length)>s&&(p=s),p&&(n.head&&(T=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(a,a+p),T)),512&n.flags&&4&n.wrap&&(n.check=e5(n.check,r,p,a)),s-=p,a+=p,n.length-=p),n.length))break r;n.length=0,n.mode=16186;case 16186:if(2048&n.flags){if(0===s)break r;p=0;do T=r[a+p++],n.head&&T&&n.length<65536&&(n.head.name+=String.fromCharCode(T));while(T&&p>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=16191;break;case 16189:for(;c<32;){if(0===s)break r;s--,u+=r[a++]<>>=7&c,c-=7&c,n.mode=16206;break}for(;c<3;){if(0===s)break r;s--,u+=r[a++]<>>=1)){case 0:n.mode=16193;break;case 1:if(nS(n),n.mode=16199,t===nl){u>>>=2,c-=2;break r}break;case 2:n.mode=16196;break;case 3:e.msg="invalid block type",n.mode=16209}u>>>=2,c-=2;break;case 16193:for(u>>>=7&c,c-=7&c;c<32;){if(0===s)break r;s--,u+=r[a++]<>>16^65535)){e.msg="invalid stored block lengths",n.mode=16209;break}if(n.length=65535&u,u=0,c=0,n.mode=16194,t===nl)break r;case 16194:n.mode=16195;case 16195:if(p=n.length){if(p>s&&(p=s),p>l&&(p=l),0===p)break r;i.set(r.subarray(a,a+p),o),s-=p,a+=p,l-=p,o+=p,n.length-=p;break}n.mode=16191;break;case 16196:for(;c<14;){if(0===s)break r;s--,u+=r[a++]<>>=5,c-=5,n.ndist=(31&u)+1,u>>>=5,c-=5,n.ncode=(15&u)+4,u>>>=4,c-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=16209;break}n.have=0,n.mode=16197;case 16197:for(;n.have>>=3,c-=3}for(;n.have<19;)n.lens[C[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,_={bits:n.lenbits},k=na(0,n.lens,0,19,n.lencode,0,n.work,_),n.lenbits=_.bits,k){e.msg="invalid code lengths set",n.mode=16209;break}n.have=0,n.mode=16198;case 16198:for(;n.have>>24,O=w>>>16&255,b=65535&w,!(g<=c);){if(0===s)break r;s--,u+=r[a++]<>>=g,c-=g,n.lens[n.have++]=b;else{if(16===b){for(S=g+2;c>>=g,c-=g,0===n.have){e.msg="invalid bit length repeat",n.mode=16209;break}T=n.lens[n.have-1],p=3+(3&u),u>>>=2,c-=2}else if(17===b){for(S=g+3;c>>=g,c-=g,T=0,p=3+(7&u),u>>>=3,c-=3}else{for(S=g+7;c>>=g,c-=g,T=0,p=11+(127&u),u>>>=7,c-=7}if(n.have+p>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=16209;break}for(;p--;)n.lens[n.have++]=T}}if(16209===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=16209;break}if(n.lenbits=9,_={bits:n.lenbits},k=na(1,n.lens,0,n.nlen,n.lencode,0,n.work,_),n.lenbits=_.bits,k){e.msg="invalid literal/lengths set",n.mode=16209;break}if(n.distbits=6,n.distcode=n.distdyn,_={bits:n.distbits},k=na(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,_),n.distbits=_.bits,k){e.msg="invalid distances set",n.mode=16209;break}if(n.mode=16199,t===nl)break r;case 16199:n.mode=16200;case 16200:if(s>=6&&l>=258){e.next_out=o,e.avail_out=l,e.next_in=a,e.avail_in=s,n.hold=u,n.bits=c,ne(e,h),o=e.next_out,i=e.output,l=e.avail_out,a=e.next_in,r=e.input,s=e.avail_in,u=n.hold,c=n.bits,16191===n.mode&&(n.back=-1);break}for(n.back=0;g=(w=n.lencode[u&(1<>>24,O=w>>>16&255,b=65535&w,!(g<=c);){if(0===s)break r;s--,u+=r[a++]<>y)])>>>24,O=w>>>16&255,b=65535&w,!(y+g<=c);){if(0===s)break r;s--,u+=r[a++]<>>=y,c-=y,n.back+=y}if(u>>>=g,c-=g,n.back+=g,n.length=b,0===O){n.mode=16205;break}if(32&O){n.back=-1,n.mode=16191;break}if(64&O){e.msg="invalid literal/length code",n.mode=16209;break}n.extra=15&O,n.mode=16201;case 16201:if(n.extra){for(S=n.extra;c>>=n.extra,c-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=16202;case 16202:for(;g=(w=n.distcode[u&(1<>>24,O=w>>>16&255,b=65535&w,!(g<=c);){if(0===s)break r;s--,u+=r[a++]<>y)])>>>24,O=w>>>16&255,b=65535&w,!(y+g<=c);){if(0===s)break r;s--,u+=r[a++]<>>=y,c-=y,n.back+=y}if(u>>>=g,c-=g,n.back+=g,64&O){e.msg="invalid distance code",n.mode=16209;break}n.offset=b,n.extra=15&O,n.mode=16203;case 16203:if(n.extra){for(S=n.extra;c>>=n.extra,c-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=16209;break}n.mode=16204;case 16204:if(0===l)break r;if(p=h-l,n.offset>p){if((p=n.offset-p)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=16209;break}p>n.wnext?(p-=n.wnext,f=n.wsize-p):f=n.wnext-p,p>n.length&&(p=n.length),m=n.window}else m=i,f=o-n.offset,p=n.length;p>l&&(p=l),l-=p,n.length-=p;do i[o++]=m[f++];while(--p);0===n.length&&(n.mode=16200);break;case 16205:if(0===l)break r;i[o++]=n.length,l--,n.mode=16200;break;case 16206:if(n.wrap){for(;c<32;){if(0===s)break r;s--,u|=r[a++]<{if(ny(e))return nh;let t=e.state;return t.window&&(t.window=null),e.state=null,nu},inflateGetHeader:(e,t)=>{if(ny(e))return nh;let n=e.state;return(2&n.wrap)==0?nh:(n.head=t,t.done=!1,nu)},inflateSetDictionary:(e,t)=>{let n;let r=t.length;return ny(e)||0!==(n=e.state).wrap&&16190!==n.mode?nh:16190===n.mode&&e0(1,t,r,0)!==n.check?np:nw(e,t,r,r)?(n.mode=16210,nf):(n.havedict=1,nu)},inflateInfo:"pako inflate (from Nodeca project)"},nC=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};let nA=Object.prototype.toString,{Z_NO_FLUSH:nR,Z_FINISH:nP,Z_OK:nI,Z_STREAM_END:nN,Z_NEED_DICT:n$,Z_STREAM_ERROR:nL,Z_DATA_ERROR:nD,Z_MEM_ERROR:nQ}=e4;function nM(e){this.options=tq.assign({chunkSize:65536,windowBits:15,to:""},e||{});let t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(15&t.windowBits)==0&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new tV,this.strm.avail_out=0;let n=nE.inflateInit2(this.strm,t.windowBits);if(n!==nI||(this.header=new nC,nE.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=tX.string2buf(t.dictionary):"[object ArrayBuffer]"===nA.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=nE.inflateSetDictionary(this.strm,t.dictionary))!==nI)))throw Error(e9[n])}function nF(e,t){let n=new nM(t);if(n.push(e),n.err)throw n.msg||e9[n.err];return n.result}nM.prototype.push=function(e,t){let n,r,i;let a=this.strm,o=this.options.chunkSize,s=this.options.dictionary;if(this.ended)return!1;for(r=t===~~t?t:!0===t?nP:nR,"[object ArrayBuffer]"===nA.call(e)?a.input=new Uint8Array(e):a.input=e,a.next_in=0,a.avail_in=a.input.length;;){for(0===a.avail_out&&(a.output=new Uint8Array(o),a.next_out=0,a.avail_out=o),(n=nE.inflate(a,r))===n$&&s&&((n=nE.inflateSetDictionary(a,s))===nI?n=nE.inflate(a,r):n===nD&&(n=n$));a.avail_in>0&&n===nN&&a.state.wrap>0&&0!==e[a.next_in];)nE.inflateReset(a),n=nE.inflate(a,r);switch(n){case nL:case nD:case n$:case nQ:return this.onEnd(n),this.ended=!0,!1}if(i=a.avail_out,a.next_out&&(0===a.avail_out||n===nN)){if("string"===this.options.to){let e=tX.utf8border(a.output,a.next_out),t=a.next_out-e,n=tX.buf2string(a.output,e);a.next_out=t,a.avail_out=o-t,t&&a.output.set(a.output.subarray(e,e+t),0),this.onData(n)}else this.onData(a.output.length===a.next_out?a.output:a.output.subarray(0,a.next_out))}if(n!==nI||0!==i){if(n===nN)return n=nE.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,!0;if(0===a.avail_in)break}}return!0},nM.prototype.onData=function(e){this.chunks.push(e)},nM.prototype.onEnd=function(e){e===nI&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=tq.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};let{Deflate:nB,deflate:nU,deflateRaw:nj,gzip:nz}={Deflate:t6,deflate:t7,deflateRaw:function(e,t){return(t=t||{}).raw=!0,t7(e,t)},gzip:function(e,t){return(t=t||{}).gzip=!0,t7(e,t)},constants:e4},{Inflate:nW,inflate:nZ,inflateRaw:nq,ungzip:nG}={Inflate:nM,inflate:nF,inflateRaw:function(e,t){return(t=t||{}).raw=!0,nF(e,t)},ungzip:nF,constants:e4};var nH={Deflate:nB,deflate:nU,deflateRaw:nj,gzip:nz,Inflate:nW,inflate:nZ,inflateRaw:nq,ungzip:nG,constants:e4},nY=n(21876).Buffer;let nX="3.7.7",nV="function"==typeof nY,nK="function"==typeof TextDecoder?new TextDecoder:void 0,nJ="function"==typeof TextEncoder?new TextEncoder:void 0,n1=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),n0=(c={},n1.forEach((e,t)=>c[e]=t),c),n2=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,n5=String.fromCharCode.bind(String),n9="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),n4=e=>e.replace(/=/g,"").replace(/[+\/]/g,e=>"+"==e?"-":"_"),n3=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),n8=e=>{let t,n,r,i,a="",o=e.length%3;for(let o=0;o255||(r=e.charCodeAt(o++))>255||(i=e.charCodeAt(o++))>255)throw TypeError("invalid character found");a+=n1[(t=n<<16|r<<8|i)>>18&63]+n1[t>>12&63]+n1[t>>6&63]+n1[63&t]}return o?a.slice(0,o-3)+"===".substring(o):a},n6="function"==typeof btoa?e=>btoa(e):nV?e=>nY.from(e,"binary").toString("base64"):n8,n7=nV?e=>nY.from(e).toString("base64"):e=>{let t=[];for(let n=0,r=e.length;nt?n4(n7(e)):n7(e),rt=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?n5(192|t>>>6)+n5(128|63&t):n5(224|t>>>12&15)+n5(128|t>>>6&63)+n5(128|63&t)}var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return n5(240|t>>>18&7)+n5(128|t>>>12&63)+n5(128|t>>>6&63)+n5(128|63&t)},rn=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,rr=e=>e.replace(rn,rt),ri=nV?e=>nY.from(e,"utf8").toString("base64"):nJ?e=>n7(nJ.encode(e)):e=>n6(rr(e)),ra=(e,t=!1)=>t?n4(ri(e)):ri(e),ro=e=>ra(e,!0),rs=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,rl=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return n5((t>>>10)+55296)+n5((1023&t)+56320);case 3:return n5((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return n5((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},ru=e=>e.replace(rs,rl),rc=e=>{if(e=e.replace(/\s+/g,""),!n2.test(e))throw TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,n="",r,i;for(let a=0;a>16&255):64===i?n5(t>>16&255,t>>8&255):n5(t>>16&255,t>>8&255,255&t);return n},rd="function"==typeof atob?e=>atob(n3(e)):nV?e=>nY.from(e,"base64").toString("binary"):rc,rh=nV?e=>n9(nY.from(e,"base64")):e=>n9(rd(e).split("").map(e=>e.charCodeAt(0))),rp=e=>rh(rm(e)),rf=nV?e=>nY.from(e,"base64").toString("utf8"):nK?e=>nK.decode(rh(e)):e=>ru(rd(e)),rm=e=>n3(e.replace(/[-_]/g,e=>"-"==e?"+":"/")),rg=e=>rf(rm(e)),rO=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),rb=function(){let e=(e,t)=>Object.defineProperty(String.prototype,e,rO(t));e("fromBase64",function(){return rg(this)}),e("toBase64",function(e){return ra(this,e)}),e("toBase64URI",function(){return ra(this,!0)}),e("toBase64URL",function(){return ra(this,!0)}),e("toUint8Array",function(){return rp(this)})},ry=function(){let e=(e,t)=>Object.defineProperty(Uint8Array.prototype,e,rO(t));e("toBase64",function(e){return re(this,e)}),e("toBase64URI",function(){return re(this,!0)}),e("toBase64URL",function(){return re(this,!0)})},rv={version:nX,VERSION:nX,atob:rd,atobPolyfill:rc,btoa:n6,btoaPolyfill:n8,fromBase64:rg,toBase64:ra,encode:ra,encodeURI:ro,encodeURL:ro,utob:rr,btou:ru,decode:rg,isValid:e=>{if("string"!=typeof e)return!1;let t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},fromUint8Array:re,toUint8Array:rp,extendString:rb,extendUint8Array:ry,extendBuiltins:()=>{rb(),ry()}};var rx=e=>["string","number"].includes(typeof e)?e:e instanceof Array?e.map(rx).join(""):"object"==typeof e&&e?rx(e.props.children):"",rT={directives:{plantuml:({children:e,alt:t,width:n})=>{var r,i;let a=rx(e),o=`https://kroki.io/plantuml/svg/${(r=new TextEncoder().encode(a),i=nH.deflate(r,{level:9}),rv.fromUint8Array(i,!0))}`;return(0,G.jsx)("div",{className:"element-plantuml",children:(0,G.jsx)("img",{alt:t,src:o,width:n})})}},slice:(0,W.oM)({name:"element.plantuml",initialState:{},reducers:{}})};n(52891);var rk=(0,W.oM)({name:"element.protect",initialState:{},reducers:{set:(e,t)=>{e[t.payload.id]=t.payload.value}}}),r_=e=>t=>t[rk.name][e]||"",rS={directives:{protect:({children:e,description:t,node:n,id:r,password:i})=>{let[a]=(0,z.V0)(),o=(0,q.I0)(),s=(0,z.kF)(),l=`${a}.${Z(n)}`;r&&(l=r);let u=(0,q.v9)(r_(l)),[c,d]=(0,U.useState)(!1),h=e=>{o(rk.actions.set({id:l,value:e}))};return(0,U.useEffect)(()=>{d(u===i)},[u,i]),(0,G.jsxs)(G.Fragment,{children:[c?(0,G.jsx)(G.Fragment,{children:e}):(0,G.jsxs)("div",{className:"element-protect",children:[(0,G.jsx)("span",{className:"description",children:t}),(0,G.jsx)("span",{className:"icon",children:"\uD83D\uDD12"}),(0,G.jsx)("input",{placeholder:"...",value:u,onChange:e=>h(e.target.value)})]}),"development"===s&&(0,G.jsx)("div",{className:"element-protect-dev",children:(0,G.jsx)("button",{className:"reveal",onClick:()=>d(e=>!e),children:"Toggle Reveal"})})]})}},slice:rk};n(62860);var rw=n(68003),rE=Object.defineProperty,rC=Object.defineProperties,rA=Object.getOwnPropertyDescriptors,rR=Object.getOwnPropertySymbols,rP=Object.prototype.hasOwnProperty,rI=Object.prototype.propertyIsEnumerable,rN=(e,t,n)=>t in e?rE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,r$=(e,t)=>{for(var n in t||={})rP.call(t,n)&&rN(e,n,t[n]);if(rR)for(var n of rR(t))rI.call(t,n)&&rN(e,n,t[n]);return e},rL=(e,t)=>rC(e,rA(t)),rD=(0,W.oM)({name:"element.collapsible",initialState:{},reducers:{toggleActive:(e,t)=>{e[t.payload.id]=!e[t.payload.id]}}}),rQ=e=>t=>t[rD.name][e],rM={directives:{collapsible:({children:e,id:t,title:n})=>{t||(t=n);let[r]=(0,z.V0)();t=r+"."+t;let i=(0,q.v9)(rQ(t)),{getCollapseProps:a,getToggleProps:o,isExpanded:s}=(0,rw.z)({isExpanded:!!i}),l=(0,q.I0)(),u=()=>{l(rD.actions.toggleActive({id:t}))};return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)("button",rL(r$({className:["element-collapsible","button",s?"active":""].join(" ")},o({onClick:()=>u()})),{children:n})),(0,G.jsx)("div",rL(r$({className:["element-collapsible","content",s?"active":""].join(" ")},a()),{children:(0,G.jsx)("div",{className:"inner",children:e})}))]})}},slice:rD};n(44138);var rF=({children:e,src:t})=>{let[n,r]=(0,U.useState)(!0),i=(0,z.RI)();return t=i(t,"public"),(0,U.useEffect)(()=>{let e=!1;return fetch(t,{method:"HEAD"}).then(t=>{t.ok||e||r(!1)}),()=>{e=!0}},[]),(0,G.jsxs)("a",{href:t,className:"element-download",target:"_blank",rel:"noopener noreferrer",children:[(0,G.jsx)("span",{className:"icon",children:"⏬"}),(0,G.jsxs)("span",{className:n?"label":"label offline",children:[e," ",!n&&"(Offline)"]})]})},rB={directives:{download:rF,archive:({name:e,children:t})=>(0,G.jsx)(rF,{children:t,src:`/archives/${e}.zip`})}};n(23221);var rU={directives:{bookmarks:({})=>{var e;let t=(0,z.nB)(),n=(0,z.S7)(),r=(0,z.ZR)(),i=null==(e=null==r?void 0:r.elements)?void 0:e.bookmarks;return!1===i?null:(0,G.jsx)("ul",{className:"element-bookmarks",children:n.map(e=>(0,G.jsx)("li",{children:(0,G.jsx)(t,{href:e.href,children:e.label})},e.href))})}}};n(15470);var rj=n(21876).Buffer;let rz="function"==typeof atob,rW="function"==typeof btoa,rZ="function"==typeof rj;"function"==typeof TextDecoder&&new TextDecoder,"function"==typeof TextEncoder&&new TextEncoder;let rq=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),rG=(d={},rq.forEach((e,t)=>d[e]=t),d),rH=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,rY=String.fromCharCode.bind(String),rX="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),rV=e=>e.replace(/=/g,"").replace(/[+\/]/g,e=>"+"==e?"-":"_"),rK=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),rJ=rW?e=>btoa(e):rZ?e=>rj.from(e,"binary").toString("base64"):e=>{let t,n,r,i,a="",o=e.length%3;for(let o=0;o255||(r=e.charCodeAt(o++))>255||(i=e.charCodeAt(o++))>255)throw TypeError("invalid character found");a+=rq[(t=n<<16|r<<8|i)>>18&63]+rq[t>>12&63]+rq[t>>6&63]+rq[63&t]}return o?a.slice(0,o-3)+"===".substring(o):a},r1=rZ?e=>rj.from(e).toString("base64"):e=>{let t=[];for(let n=0,r=e.length;nt?rV(r1(e)):r1(e),r2=rz?e=>atob(rK(e)):rZ?e=>rj.from(e,"base64").toString("binary"):e=>{if(e=e.replace(/\s+/g,""),!rH.test(e))throw TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,n="",r,i;for(let a=0;a>16&255):64===i?rY(t>>16&255,t>>8&255):rY(t>>16&255,t>>8&255,255&t);return n},r5=rZ?e=>rX(rj.from(e,"base64")):e=>rX(r2(e).split("").map(e=>e.charCodeAt(0))),r9=e=>r5(r4(e)),r4=e=>rK(e.replace(/[-_]/g,e=>"-"==e?"+":"/"));var r3=Object.defineProperty,r8=Object.getOwnPropertySymbols,r6=Object.prototype.hasOwnProperty,r7=Object.prototype.propertyIsEnumerable,ie=(e,t,n)=>t in e?r3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,it=(e,t)=>{for(var n in t||={})r6.call(t,n)&&ie(e,n,t[n]);if(r8)for(var n of r8(t))r7.call(t,n)&&ie(e,n,t[n]);return e},ir={serialize:e=>{let t=new TextEncoder().encode(e),n=nU(t,{level:9});return r0(n,!0)},deserialize:e=>{try{let t=r9(e);return nZ(t,{to:"string"})}catch(e){return"{}"}}},ii=e=>{let t;if(e.includes(":")){let n;if([n,t]=e.split(":"),"pako"!==n)throw Error(`Unknown serde type: ${n}`);let r=ir.deserialize(t);return JSON.parse(r)}},ia={InsertNode:{color:"rgb(255,255,243)"},Placeholder:{color:"rgb(255,255,243)"},InsertCase:{color:"rgb(250, 218, 209)"},InputNode:{color:"rgb(253, 237, 206)"},OutputNode:{color:"rgb(253, 237, 206)"},TaskNode:{color:"rgb(253, 237, 206)"},CountLoopNode:{color:"rgb(220, 239, 231)"},HeadLoopNode:{color:"rgb(220, 239, 231)"},FootLoopNode:{color:"rgb(220, 239, 231)"},BranchNode:{color:"rgb(250, 218, 209)"},CaseNode:{color:"rgb(250, 218, 209)"},FunctionNode:{color:"rgb(255, 255, 255)"},TryCatchNode:{color:"rgb(250, 218, 209)"}},io=({followElement:e})=>e&&(0,G.jsx)(iv,it({},e)),is=()=>(0,G.jsx)("div",{className:"vcontainer columnAuto frameTopLeft",style:{backgroundColor:ia.Placeholder.color},children:(0,G.jsx)("div",{className:"container fixedHeight",children:(0,G.jsx)("div",{className:"placeholder symbolHeight symbol"})})}),il=({text:e,followElement:t})=>(0,G.jsxs)(U.Fragment,{children:[(0,G.jsx)("div",{className:"vcontainer fixedHeight frameLeft",style:{backgroundColor:ia.InsertCase.color},children:(0,G.jsx)("div",{className:"fixedHeight container",children:(0,G.jsx)("div",{className:"columnAuto symbol text-center",children:(0,G.jsx)("div",{className:"padding fullHeight",children:(0,G.jsx)("span",{children:e})})})})}),t&&(0,G.jsx)(iv,it({},t))]}),iu=({text:e,followElement:t})=>(0,G.jsxs)(U.Fragment,{children:[(0,G.jsx)("div",{className:"vcontainer columnAuto frameTopLeft",style:{backgroundColor:ia.InputNode.color},children:(0,G.jsx)("div",{className:"fixedHeight container",children:(0,G.jsx)("div",{className:"columnAuto symbol",children:(0,G.jsx)("div",{className:"padding fullHeight",children:(0,G.jsxs)("span",{children:["E: ",e]})})})})}),t&&(0,G.jsx)(iv,it({},t))]}),ic=({text:e,followElement:t})=>(0,G.jsxs)(U.Fragment,{children:[(0,G.jsx)("div",{className:"vcontainer columnAuto frameTopLeft",style:{backgroundColor:ia.OutputNode.color},children:(0,G.jsx)("div",{className:"fixedHeight container",children:(0,G.jsx)("div",{className:"columnAuto symbol",children:(0,G.jsx)("div",{className:"padding fullHeight",children:(0,G.jsxs)("span",{children:["A: ",e]})})})})}),t&&(0,G.jsx)(iv,it({},t))]}),id=({followElement:e,text:t})=>(0,G.jsxs)(U.Fragment,{children:[(0,G.jsx)("div",{className:"vcontainer columnAuto frameTopLeft",style:{backgroundColor:ia.TaskNode.color},children:(0,G.jsx)("div",{className:"fixedHeight container",children:(0,G.jsx)("div",{className:"columnAuto symbol",children:(0,G.jsx)("div",{className:"padding fullHeight",children:(0,G.jsx)("span",{children:t})})})})}),e&&(0,G.jsx)(iv,it({},e))]}),ih=({text:e,followElement:t,falseChild:n,trueChild:r})=>(0,G.jsxs)(U.Fragment,{children:[(0,G.jsx)("div",{className:"vcontainer columnAuto frameTopLeft",style:{backgroundColor:ia.BranchNode.color},children:(0,G.jsxs)("div",{className:"columnAuto vcontainer",children:[(0,G.jsxs)("div",{className:"branchSplit vcontainer fixedDoubleHeight",children:[(0,G.jsx)("div",{className:"fixedHeight container",children:(0,G.jsx)("div",{className:"columnAuto symbol text-center",children:(0,G.jsx)("div",{className:"padding fullHeight",children:(0,G.jsx)("span",{children:e})})})}),(0,G.jsxs)("div",{className:"fixedHeight container padding",children:[(0,G.jsx)("div",{className:"columnAuto text-left bottomHeader",children:"Wahr"}),(0,G.jsx)("div",{className:"columnAuto text-right bottomHeader",children:"Falsch"})]})]}),(0,G.jsxs)("div",{className:"columnAuto branchCenter container",children:[(0,G.jsx)("div",{className:"columnAuto vcontainer ov-hidden",children:r&&(0,G.jsx)(iv,it({},r))}),(0,G.jsx)("div",{className:"columnAuto vcontainer ov-hidden",children:n&&(0,G.jsx)(iv,it({},n))})]})]})}),t&&(0,G.jsx)(iv,it({},t))]}),ip=({tryChild:e,catchChild:t,followElement:n,text:r})=>(0,G.jsxs)(U.Fragment,{children:[(0,G.jsxs)("div",{className:"vcontainer columnAuto frameTopLeft",style:{backgroundColor:ia.TryCatchNode.color},children:[(0,G.jsxs)("div",{className:"columnAuto vcontainer tryCatchNode",children:[(0,G.jsx)("div",{className:"container fixedHeight padding",children:(0,G.jsx)("div",{className:"symbol",children:"Try"})}),(0,G.jsx)("div",{className:"columnAuto container loopShift",children:(0,G.jsx)("div",{className:"loopWidth vcontainer",children:e&&(0,G.jsx)(iv,it({},e))})}),(0,G.jsx)("div",{className:"columnAuto container loopShift",children:(0,G.jsx)("div",{className:"loopWidth vcontainer",children:(0,G.jsx)("div",{className:"frameLeftBottom",style:{flex:"0 0 3px"}})})})]}),(0,G.jsxs)("div",{className:"container fixedHeight padding tryCatchNode",children:[(0,G.jsx)("div",{className:"symbol",children:"Catch"}),(0,G.jsx)("div",{className:"columnAuto symbol",children:(0,G.jsx)("div",{className:"padding fullHeight",children:(0,G.jsx)("span",{children:r})})})]}),(0,G.jsx)("div",{className:"columnAuto container loopShift",children:(0,G.jsx)("div",{className:"loopWidth vcontainer",children:t&&(0,G.jsx)(iv,it({},t))})})]}),n&&(0,G.jsx)(iv,it({},n))]}),im=({followElement:e,text:t,child:n})=>(0,G.jsx)("div",{className:"vcontainer columnAuto frameTopLeft",style:{backgroundColor:ia.CountLoopNode.color},children:(0,G.jsxs)("div",{className:"columnAuto vcontainer",children:[(0,G.jsx)("div",{className:"container fixedHeight",children:(0,G.jsx)("div",{className:"columnAuto symbol",children:(0,G.jsx)("div",{className:"padding fullHeight",children:(0,G.jsx)("span",{children:t})})})}),(0,G.jsx)("div",{className:"columnAuto container loopShift",children:(0,G.jsx)("div",{className:"loopWidth frameLeft vcontainer",children:n&&(0,G.jsx)(iv,it({},n))})}),e&&(0,G.jsx)(iv,it({},e))]})}),ig=({followElement:e,text:t,child:n})=>(0,G.jsx)("div",{className:"vcontainer columnAuto frameTopLeft",style:{backgroundColor:ia.CountLoopNode.color},children:(0,G.jsxs)("div",{className:"columnAuto vcontainer",children:[(0,G.jsx)("div",{className:"container fixedHeight",children:(0,G.jsx)("div",{className:"columnAuto symbol",children:(0,G.jsx)("div",{className:"padding fullHeight",children:(0,G.jsx)("span",{children:t})})})}),(0,G.jsx)("div",{className:"columnAuto container loopShift",children:(0,G.jsx)("div",{className:"loopWidth frameLeft vcontainer",children:n&&(0,G.jsx)(iv,it({},n))})}),e&&(0,G.jsx)(iv,it({},e))]})}),iO=({followElement:e,child:t,text:n,parameters:r})=>(0,G.jsxs)(U.Fragment,{children:[(0,G.jsx)("div",{className:"vcontainer columnAuto frameTopLeft",style:{backgroundColor:ia.FunctionNode.color},children:(0,G.jsxs)("div",{className:"columnAuto vcontainer",children:[(0,G.jsxs)("div",{className:"fixedHeight func-box-header padding",style:{display:"flex",flexDirection:"row",paddingTop:"6.5px"},children:["function",(0,G.jsx)("div",{style:{marginRight:"2ch"}}),(0,G.jsx)("div",{className:"function-elem",children:(0,G.jsxs)("div",{className:"func-header-text-div",children:[n," (",r.map(e=>e.parName).join(", "),") ","{"]})})]}),(0,G.jsx)("div",{className:"columnAuto container loopShift",children:(0,G.jsx)("div",{className:"loopWidth vcontainer",children:t&&(0,G.jsx)(iv,it({},t))})}),(0,G.jsx)("div",{className:"columnAuto container loopShift",children:(0,G.jsx)("div",{className:"loopWidth vcontainer",children:(0,G.jsx)("div",{className:"frameLeftBottom",style:{flex:"0 0 3px"}})})}),(0,G.jsx)("div",{className:"container fixedHeight padding",children:(0,G.jsx)("div",{className:"symbol",children:"}"})})]})}),e&&(0,G.jsx)(iv,it({},e))]}),ib=({child:e,followElement:t,text:n})=>(0,G.jsxs)(U.Fragment,{children:[(0,G.jsx)("div",{className:"vcontainer columnAuto frameTopLeft",style:{backgroundColor:ia.FootLoopNode.color},children:(0,G.jsxs)("div",{className:"columnAuto vcontainer",children:[(0,G.jsx)("div",{className:"columnAuto container loopShift",children:(0,G.jsxs)("div",{className:"loopWidth frameLeftBottom vcontainer",children:[e&&(0,G.jsx)(iv,it({},e)),(0,G.jsx)("div",{className:"borderHeight"})]})}),(0,G.jsx)("div",{className:"container fixedHeight",children:(0,G.jsx)("div",{className:"columnAuto symbol",children:(0,G.jsx)("div",{className:"padding fullHeight",children:(0,G.jsx)("span",{children:n})})})})]})}),t&&(0,G.jsx)(iv,it({},t))]}),iy=({defaultOn:e,cases:t,text:n,defaultNode:r,followElement:i})=>{let a=["vcontainer","fixedHeight"],o=["columnAuto","container"],s=t.length;return e?(a.push(`caseHead-${s}`),o.push(`caseBody-${s}`)):(a.push(`caseHead-noDefault-${s}`),o.push(`caseBody-${s-1}`),s+=2),(0,G.jsxs)(U.Fragment,{children:[(0,G.jsx)("div",{className:"vcontainer columnAuto frameTopLeft",style:{backgroundColor:ia.CaseNode.color},children:(0,G.jsxs)("div",{className:"columnAuto vcontainer",children:[(0,G.jsx)("div",{className:a.join(" "),style:{backgroundPosition:"1px 0px"},children:(0,G.jsx)("div",{className:"columnAuto symbol",children:(0,G.jsx)("div",{className:"padding fullHeight",children:(0,G.jsx)("span",{style:{marginLeft:`calc(${s/(s+1)*100}% - 2em)`},children:n})})})}),(0,G.jsxs)("div",{className:o.join(" "),children:[t.map((e,t)=>(0,G.jsx)("div",{className:"columnAuto vcontainer ov-hidden",children:(0,G.jsx)(iv,it({},e))},t)),(0,G.jsx)("div",{className:"columnAuto vcontainer ov-hidden",children:(0,G.jsx)(iv,it({},r))})]})]})}),i&&(0,G.jsx)(iv,it({},i))]})},iv=e=>{switch(e.type){case"FootLoopNode":return(0,G.jsx)(ib,it({},e));case"HeadLoopNode":return(0,G.jsx)(im,it({},e));case"InputNode":return(0,G.jsx)(iu,it({},e));case"InsertCase":return(0,G.jsx)(il,it({},e));case"CaseNode":return(0,G.jsx)(iy,it({},e));case"FunctionNode":return(0,G.jsx)(iO,it({},e));case"CountLoopNode":return(0,G.jsx)(ig,it({},e));case"TryCatchNode":return(0,G.jsx)(ip,it({},e));case"BranchNode":return(0,G.jsx)(ih,it({},e));case"TaskNode":return(0,G.jsx)(id,it({},e));case"Placeholder":return(0,G.jsx)(is,it({},e));case"OutputNode":return(0,G.jsx)(ic,it({},e));case"InsertNode":return(0,G.jsx)(io,it({},e))}},ix={directives:{struktog:({data:e})=>{try{e=e.replace(RegExp("https://struktog.openpatch.org/?#"),"");let t=ii(e);return(0,G.jsx)("div",{className:"element-struktog",children:(0,G.jsx)("a",{href:`https://struktog.openpatch.org/#${e}`,target:"_blank",children:(0,G.jsxs)("div",{className:"columnAuto container",children:[(0,G.jsxs)("div",{className:"columnAuto",children:[(null==t?void 0:t.model)&&(0,G.jsx)(iv,it({},t.model)),(0,G.jsx)("div",{className:"frameTop borderHeight"})]}),(0,G.jsx)("div",{className:"frameLeft borderWidth"})]})})})}catch(e){return(0,G.jsx)("div",{className:"element-struktog",children:(0,G.jsx)("div",{className:"error",children:"We can not parse the provided data. Please check if it is correct."})})}}}};n(48983);var iT=n(92592),ik={S:64,M:128,L:256,XL:512},i_={directives:{qr:({size:e="M",value:t,label:n})=>{let[r,i]=(0,U.useState)("");return(0,U.useEffect)(()=>{iT.toDataURL(t,{width:ik[e],errorCorrectionLevel:"Q",margin:0,color:{dark:"#000",light:"#FFF"}},(e,t)=>{e||i(t)})},[e,t]),(0,G.jsxs)("div",{className:"element-qr",children:[(0,G.jsx)("div",{className:["code",e].join(" "),children:(0,G.jsx)("img",{src:r})}),n&&(0,G.jsx)("div",{className:["label",e].join(" "),style:{maxWidth:ik[e]},children:n})]})}}};n(61658);var iS=n(87127),iw=e=>["string","number"].includes(typeof e)?e:e instanceof Array?e.map(iw).join(""):"object"==typeof e&&e?iw(e.props.children):"",iE=0,iC=()=>`mermaid-${(iE++).toString()}`,iA=async(e,t)=>{if(e)try{iS.L.mermaidAPI.initialize({theme:"dark"==t?"dark":"neutral"});let{svg:n}=await iS.L.render(iC(),e);return n}catch(e){console.error(e)}return""},iR={directives:{mermaid:({children:e})=>{let t=iw(e),[n]=(0,z.tv)(),[r,i]=(0,U.useState)("");return(0,U.useEffect)(()=>{iA(t,n).then(i)},[t,n]),t?(0,G.jsx)("div",{dangerouslySetInnerHTML:{__html:r}}):null}}};n(15887);var iP={directives:{excalidraw:({file:e,aspectRatio:t,autoZoom:r,edit:i,src:a})=>{a&&(e=a);let o=(0,z.ZR)(),s=o?.elements?.excalidraw,l=s?.autoZoom??!0,u=s?.edit??!1;"false"==r?l=!1:"true"==r&&(l=!0),"false"==i?u=!1:"true"==i&&(u=!0),t||(t=s?.aspectRation??"16/9");let c=(0,z.kF)(),[d,h]=(0,z.TR)(),p=(0,z.U)(),f=(0,z.RI)(),[m,g]=(0,U.useState)("development"==c),O=(0,U.useRef)(),b=(0,U.useRef)(null),[y,v]=(0,U.useState)("default"),[x,T]=(0,U.useState)(),[k]=(0,z.tv)(),_=(0,U.useRef)(),S=()=>{g(e=>!e)};(0,U.useEffect)(()=>{Promise.all([n.e(2738),n.e(7864)]).then(n.t.bind(n,74474,19)).then(e=>{T(e.Excalidraw)})},[]);let w=()=>{_.current&&_.current.refresh()},E=(e,t=300)=>{let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>{e.apply(void 0,r)},t)}},C=()=>{l&&_.current?.scrollToContent(void 0,{fitToViewport:!0,viewportZoomFactor:.9})};(0,U.useEffect)(()=>{let e=e=>{32===e.which&&e.target===document.body&&e.preventDefault()};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[]),(0,U.useEffect)(()=>(document.getElementsByTagName("main")?.[0]?.addEventListener("scroll",w),()=>{document.getElementsByTagName("main")?.[0]?.removeEventListener("scroll",w)}),[]),(0,U.useEffect)(()=>{let e=E(C,300);return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[l]),(0,U.useEffect)(()=>{_.current&&_.current.updateScene({appState:{theme:k}})},[k]),(0,U.useEffect)(()=>{l&&setTimeout(()=>{_.current?.scrollToContent(void 0,{fitToViewport:!0,viewportZoomFactor:.9})},2e3)},[_,l]);let A=async()=>{let t=f(e,"public");return d(t).then(e=>JSON.parse(e)).then(e=>(O.current=e,{...e,scrollToContent:l,appState:{...e?.appState,collaborators:[],theme:k}})).catch(()=>({}))},R=()=>{if(_.current){let t=_.current.getSceneElements(),n=_.current.getAppState(),r=_.current.getFiles();v("saving"),h(e,JSON.stringify({type:"excalidraw",version:2,source:"https://hyperbook.openpatch.org",elements:t,appState:n,files:r}),"public").then(()=>{v("default")}).catch(e=>{console.log(e),v("saving-failed")})}},P=(0,U.useCallback)((e,t)=>{let n=e.link,{nativeEvent:r}=t.detail,i=r.ctrlKey||r.metaKey,a=r.shiftKey,o=n?.startsWith("/")||n?.includes(window.location.origin);o&&!i&&!a&&n&&(t.preventDefault(),p.push(n))},[]);return(0,G.jsxs)("div",{className:"element-excalidraw",children:[(0,G.jsx)("div",{ref:b,className:[m||u?"edit":"view"].join(" "),style:{width:"100%",position:"relative",marginBottom:10,aspectRatio:t},children:x&&(0,G.jsx)(x,{langCode:o.language,onLinkOpen:P,ref:_,initialData:A(),viewModeEnabled:!m&&!u})}),"development"===c&&(0,G.jsx)("div",{className:"development",children:(0,G.jsxs)("div",{className:"toolbar",children:[(0,G.jsxs)("button",{className:"save",onClick:()=>R(),children:["default"===y&&`Save to file ${e}`,"saving"===y&&"Saving","saving-failed"===y&&"Failed. Try again."]}),(0,G.jsx)("button",{className:"preview",onClick:()=>S(),children:"Toggle Preview"})]})})]})}}};n(25628);var iI={directives:{embed:({src:e,width:t="100%",height:n="400px",title:r,allowFullScreen:i=!0,aspectRatio:a})=>(0,G.jsx)("div",{className:"element-embed",style:{aspectRatio:a,width:t,height:n},children:(0,G.jsx)("iframe",{src:e,title:r,allowFullScreen:i})})},slice:(0,W.oM)({name:"element.embed",initialState:{},reducers:{}})};n(18124);var iN=e=>e.children?.map(e=>e.value?e.value:iN(e)).join(" "),i$={directives:{onlineide:({node:e,url:t="https://onlineide.openpatch.org",height:n="600px",fileList:r=!0,console:i=!0,pCode:a=!1,bottomPanel:o=!0,errorList:s=!0,speed:l=1e3,id:u})=>{u||(u=Z(e));let c=(0,U.useRef)(null),d=(0,z.ZR)(),h=d?.elements?.onlineide;h?.url&&(t=h.url),h?.height&&(n=h.height);let p=e.children?.filter(e=>"pre"===e.tagName).flatMap(e=>e.children?.filter(e=>"code"===e.tagName).map(e=>({title:e.data?.meta||"",code:iN(e)||"",hint:e?.properties?.className?.[1]==="language-markdown"}))),f=p.map(e=>``),m=`{'id': '${u}', 'speed': ${l}, 'withBottomPanel': ${o},'withPCode': ${a},'withConsole': ${i},'withFileList': ${r},'withErrorList': ${s}}`;return m=m+"\n"+f.join("\n")+` `,(0,G.jsxs)("div",{className:"online-ide",children:[(0,G.jsx)("iframe",{height:n,ref:c,srcDoc:``,frameBorder:"0",dangerouslySetInnerHTML:{__html:m}}),(0,G.jsx)("div",{className:"menu",children:(0,G.jsx)("button",{onClick:()=>{c.current?.requestFullscreen&&c.current.requestFullscreen()},children:"Fullscreen"})})]})}}};n(7695);var iL=e=>e.children?.map(e=>e.value?e.value:iL(e)).join(" "),iD={directives:{sqlide:({node:e,url:t="https://sqlide.openpatch.org",height:n="600px",db:r="https://sqlide.openpatch.org/assets/databases/world1.sqLite",id:i})=>{i||(i=Z(e));let a=(0,U.useRef)(null),o=(0,z.RI)(),s=(0,z.ZR)(),l=s?.elements?.sqlide;l?.url&&(t=l.url),l?.height&&(n=l.height),l?.db&&(r=o(l.db,"public"));let u=e.children?.filter(e=>"pre"===e.tagName).flatMap(e=>e.children?.filter(e=>"code"===e.tagName).map(e=>({title:e.data?.meta||"",code:iL(e)||"",hint:e?.properties?.className?.[1]==="language-markdown"}))),c=u.map(e=>``,frameBorder:"0",dangerouslySetInnerHTML:{__html:m}}),(0,G.jsx)("div",{className:"menu",children:(0,G.jsx)("button",{onClick:()=>{c.current?.requestFullscreen&&c.current.requestFullscreen()},children:"Fullscreen"})})]})}}};n(7695);var iL=e=>e.children?.map(e=>e.value?e.value:iL(e)).join(" "),iD={directives:{sqlide:({node:e,url:t="https://sqlide.openpatch.org",height:n="600px",db:r="https://sqlide.openpatch.org/assets/databases/world1.sqLite",id:i})=>{i||(i=Z(e));let a=(0,U.useRef)(null),o=(0,j.RI)(),s=(0,j.ZR)(),l=s?.elements?.sqlide;l?.url&&(t=l.url),l?.height&&(n=l.height),l?.db&&(r=o(l.db,"public"));let u=e.children?.filter(e=>"pre"===e.tagName).flatMap(e=>e.children?.filter(e=>"code"===e.tagName).map(e=>({title:e.data?.meta||"",code:iL(e)||"",hint:e?.properties?.className?.[1]==="language-markdown"}))),c=u.map(e=>``),d=`{'id': '${i}', 'databaseURL': '${r}'}`;return d=d+"\n"+c.join("\n")+` `,(0,G.jsxs)("div",{className:"sql-ide",children:[(0,G.jsx)("iframe",{ref:a,srcDoc:``,height:n,frameBorder:"0",dangerouslySetInnerHTML:{__html:d}}),(0,G.jsx)("div",{className:"menu",children:(0,G.jsx)("button",{onClick:()=>{a.current?.requestFullscreen&&a.current.requestFullscreen()},children:"Fullscreen"})})]})}}};n(91169);var iQ=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t;this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t))}var n=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t-1&&!e.return)switch(e.type){case iB.h5:e.return=function e(t,n){switch((0,iF.vp)(t,n)){case 5103:return iB.G$+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return iB.G$+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return iB.G$+t+iB.uj+t+iB.MS+t+t;case 6828:case 4268:return iB.G$+t+iB.MS+t+t;case 6165:return iB.G$+t+iB.MS+"flex-"+t+t;case 5187:return iB.G$+t+(0,iF.gx)(t,/(\w+).+(:[^]+)/,iB.G$+"box-$1$2"+iB.MS+"flex-$1$2")+t;case 5443:return iB.G$+t+iB.MS+"flex-item-"+(0,iF.gx)(t,/flex-|-self/,"")+t;case 4675:return iB.G$+t+iB.MS+"flex-line-pack"+(0,iF.gx)(t,/align-content|flex-|-self/,"")+t;case 5548:return iB.G$+t+iB.MS+(0,iF.gx)(t,"shrink","negative")+t;case 5292:return iB.G$+t+iB.MS+(0,iF.gx)(t,"basis","preferred-size")+t;case 6060:return iB.G$+"box-"+(0,iF.gx)(t,"-grow","")+iB.G$+t+iB.MS+(0,iF.gx)(t,"grow","positive")+t;case 4554:return iB.G$+(0,iF.gx)(t,/([^-])(transform)/g,"$1"+iB.G$+"$2")+t;case 6187:return(0,iF.gx)((0,iF.gx)((0,iF.gx)(t,/(zoom-|grab)/,iB.G$+"$1"),/(image-set)/,iB.G$+"$1"),t,"")+t;case 5495:case 3959:return(0,iF.gx)(t,/(image-set\([^]*)/,iB.G$+"$1$`$1");case 4968:return(0,iF.gx)((0,iF.gx)(t,/(.+:)(flex-)?(.*)/,iB.G$+"box-pack:$3"+iB.MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+iB.G$+t+t;case 4095:case 3583:case 4068:case 2532:return(0,iF.gx)(t,/(.+)-inline(.+)/,iB.G$+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if((0,iF.to)(t)-1-n>6)switch((0,iF.uO)(t,n+1)){case 109:if(45!==(0,iF.uO)(t,n+4))break;case 102:return(0,iF.gx)(t,/(.+:)(.+)-([^]+)/,"$1"+iB.G$+"$2-$3$1"+iB.uj+(108==(0,iF.uO)(t,n+3)?"$3":"$2-$3"))+t;case 115:return~(0,iF.Cw)(t,"stretch")?e((0,iF.gx)(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(115!==(0,iF.uO)(t,n+1))break;case 6444:switch((0,iF.uO)(t,(0,iF.to)(t)-3-(~(0,iF.Cw)(t,"!important")&&10))){case 107:return(0,iF.gx)(t,":",":"+iB.G$)+t;case 101:return(0,iF.gx)(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+iB.G$+(45===(0,iF.uO)(t,14)?"inline-":"")+"box$3$1"+iB.G$+"$2$3$1"+iB.MS+"$2box$3")+t}break;case 5936:switch((0,iF.uO)(t,n+11)){case 114:return iB.G$+t+iB.MS+(0,iF.gx)(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return iB.G$+t+iB.MS+(0,iF.gx)(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return iB.G$+t+iB.MS+(0,iF.gx)(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return iB.G$+t+iB.MS+t+t}return t}(e.value,e.length);break;case iB.lK:return(0,iU.q)([(0,iM.JG)(e,{value:(0,iF.gx)(e.value,"@","@"+iB.G$)})],r);case iB.Fr:if(e.length)return(0,iF.$e)(e.props,function(t){switch((0,iF.EQ)(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return(0,iU.q)([(0,iM.JG)(e,{props:[(0,iF.gx)(t,/:(read-\w+)/,":"+iB.uj+"$1")]})],r);case"::placeholder":return(0,iU.q)([(0,iM.JG)(e,{props:[(0,iF.gx)(t,/:(plac\w+)/,":"+iB.G$+"input-$1")]}),(0,iM.JG)(e,{props:[(0,iF.gx)(t,/:(plac\w+)/,":"+iB.uj+"$1")]}),(0,iM.JG)(e,{props:[(0,iF.gx)(t,/:(plac\w+)/,iB.MS+"input-$1")]})],r)}return""})}}];function iY(){return(iY=Object.assign?Object.assign.bind():function(e){for(var t=1;t=4;++r,i-=4)t=(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&n)*1540483477+((n>>>16)*59797<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=(65535&n)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*1540483477+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)}(a)+l,styles:a,next:_F}},at=!!j.useInsertionEffect&&j.useInsertionEffect,an=at||function(e){return e()},ar=at||U.useLayoutEffect,ai={}.hasOwnProperty,aa=(0,U.createContext)("undefined"!=typeof HTMLElement?function(e){var t,n,r,i,a,o=e.key;if("css"===o){var s=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(s,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var l=e.stylisPlugins||iH,u={},c=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+o+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n1&&i.forEach(function(n){var i;r[n]=e(((i={})[n]=t[n],i))}),r},aw=function(e,t,n,r,i){var a={};return r.slice(0,e.length).forEach(function(r,o){var s,l=e[o],u=t(r,n,i);l?ab()(a,((s={})[l]=ab()({},a[l],u),s)):ab()(a,u)}),a},aE=function(e,t,n,r,i){var a={};for(var o in r){var s=e[o],l=t(r[o],n,i);if(s){var u,c=aT(s);ab()(a,((u={})[c]=ab()({},a[c],l),u))}else ab()(a,l)}return a},aC=function(e){var t=e.properties,n=e.property,r=e.scale,i=e.transform,a=void 0===i?ak:i,o=e.defaultScale;t=t||[n];var s=function(e,n,r){var i={},o=a(e,n,r);if(null!==o)return t.forEach(function(e){i[e]=o}),i};return s.scale=r,s.defaults=o,s},aA=function(e){void 0===e&&(e={});var t={};return Object.keys(e).forEach(function(n){var r=e[n];if(!0===r){t[n]=aC({property:n,scale:n});return}if("function"==typeof r){t[n]=r;return}t[n]=aC(r)}),aS(t)},aR=function(){for(var e={},t=arguments.length,n=Array(t),r=0;r1?e:100*e+"%")}},height:{property:"height",scale:"sizes"},minWidth:{property:"minWidth",scale:"sizes"},minHeight:{property:"minHeight",scale:"sizes"},maxWidth:{property:"maxWidth",scale:"sizes"},maxHeight:{property:"maxHeight",scale:"sizes"},size:{properties:["width","height"],scale:"sizes"},overflow:!0,overflowX:!0,overflowY:!0,display:!0,verticalAlign:!0}),aI={color:{property:"color",scale:"colors"},backgroundColor:{property:"backgroundColor",scale:"colors"},opacity:!0};aI.bg=aI.backgroundColor;var aN=aA(aI),a$=aA({fontFamily:{property:"fontFamily",scale:"fonts"},fontSize:{property:"fontSize",scale:"fontSizes",defaultScale:[12,14,16,20,24,32,48,64,72]},fontWeight:{property:"fontWeight",scale:"fontWeights"},lineHeight:{property:"lineHeight",scale:"lineHeights"},letterSpacing:{property:"letterSpacing",scale:"letterSpacings"},textAlign:!0,fontStyle:!0}),aL=aA({alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:!0,flex:!0,flexGrow:!0,flexShrink:!0,flexBasis:!0,justifySelf:!0,alignSelf:!0,order:!0}),aD={space:[0,4,8,16,32,64,128,256,512]},aQ=aA({gridGap:{property:"gridGap",scale:"space",defaultScale:aD.space},gridColumnGap:{property:"gridColumnGap",scale:"space",defaultScale:aD.space},gridRowGap:{property:"gridRowGap",scale:"space",defaultScale:aD.space},gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridAutoRows:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0}),aM={border:{property:"border",scale:"borders"},borderWidth:{property:"borderWidth",scale:"borderWidths"},borderStyle:{property:"borderStyle",scale:"borderStyles"},borderColor:{property:"borderColor",scale:"colors"},borderRadius:{property:"borderRadius",scale:"radii"},borderTop:{property:"borderTop",scale:"borders"},borderTopLeftRadius:{property:"borderTopLeftRadius",scale:"radii"},borderTopRightRadius:{property:"borderTopRightRadius",scale:"radii"},borderRight:{property:"borderRight",scale:"borders"},borderBottom:{property:"borderBottom",scale:"borders"},borderBottomLeftRadius:{property:"borderBottomLeftRadius",scale:"radii"},borderBottomRightRadius:{property:"borderBottomRightRadius",scale:"radii"},borderLeft:{property:"borderLeft",scale:"borders"},borderX:{properties:["borderLeft","borderRight"],scale:"borders"},borderY:{properties:["borderTop","borderBottom"],scale:"borders"}};aM.borderTopWidth={property:"borderTopWidth",scale:"borderWidths"},aM.borderTopColor={property:"borderTopColor",scale:"colors"},aM.borderTopStyle={property:"borderTopStyle",scale:"borderStyles"},aM.borderTopLeftRadius={property:"borderTopLeftRadius",scale:"radii"},aM.borderTopRightRadius={property:"borderTopRightRadius",scale:"radii"},aM.borderBottomWidth={property:"borderBottomWidth",scale:"borderWidths"},aM.borderBottomColor={property:"borderBottomColor",scale:"colors"},aM.borderBottomStyle={property:"borderBottomStyle",scale:"borderStyles"},aM.borderBottomLeftRadius={property:"borderBottomLeftRadius",scale:"radii"},aM.borderBottomRightRadius={property:"borderBottomRightRadius",scale:"radii"},aM.borderLeftWidth={property:"borderLeftWidth",scale:"borderWidths"},aM.borderLeftColor={property:"borderLeftColor",scale:"colors"},aM.borderLeftStyle={property:"borderLeftStyle",scale:"borderStyles"},aM.borderRightWidth={property:"borderRightWidth",scale:"borderWidths"},aM.borderRightColor={property:"borderRightColor",scale:"colors"},aM.borderRightStyle={property:"borderRightStyle",scale:"borderStyles"};var aF=aA(aM),aB={background:!0,backgroundImage:!0,backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0};aB.bgImage=aB.backgroundImage,aB.bgSize=aB.backgroundSize,aB.bgPosition=aB.backgroundPosition,aB.bgRepeat=aB.backgroundRepeat;var aU=aA(aB),aj={space:[0,4,8,16,32,64,128,256,512]},az=aA({position:!0,zIndex:{property:"zIndex",scale:"zIndices"},top:{property:"top",scale:"space",defaultScale:aj.space},right:{property:"right",scale:"space",defaultScale:aj.space},bottom:{property:"bottom",scale:"space",defaultScale:aj.space},left:{property:"left",scale:"space",defaultScale:aj.space}}),aW={space:[0,4,8,16,32,64,128,256,512]},aZ=function(e){return"number"==typeof e&&!isNaN(e)},aq=function(e,t){if(!aZ(e))return a_(t,e,e);var n=e<0,r=Math.abs(e),i=a_(t,r,r);return aZ(i)?i*(n?-1:1):n?"-"+i:i},aG={};aG.margin={margin:{property:"margin",scale:"space",transform:aq,defaultScale:aW.space},marginTop:{property:"marginTop",scale:"space",transform:aq,defaultScale:aW.space},marginRight:{property:"marginRight",scale:"space",transform:aq,defaultScale:aW.space},marginBottom:{property:"marginBottom",scale:"space",transform:aq,defaultScale:aW.space},marginLeft:{property:"marginLeft",scale:"space",transform:aq,defaultScale:aW.space},marginX:{properties:["marginLeft","marginRight"],scale:"space",transform:aq,defaultScale:aW.space},marginY:{properties:["marginTop","marginBottom"],scale:"space",transform:aq,defaultScale:aW.space}},aG.margin.m=aG.margin.margin,aG.margin.mt=aG.margin.marginTop,aG.margin.mr=aG.margin.marginRight,aG.margin.mb=aG.margin.marginBottom,aG.margin.ml=aG.margin.marginLeft,aG.margin.mx=aG.margin.marginX,aG.margin.my=aG.margin.marginY,aG.padding={padding:{property:"padding",scale:"space",defaultScale:aW.space},paddingTop:{property:"paddingTop",scale:"space",defaultScale:aW.space},paddingRight:{property:"paddingRight",scale:"space",defaultScale:aW.space},paddingBottom:{property:"paddingBottom",scale:"space",defaultScale:aW.space},paddingLeft:{property:"paddingLeft",scale:"space",defaultScale:aW.space},paddingX:{properties:["paddingLeft","paddingRight"],scale:"space",defaultScale:aW.space},paddingY:{properties:["paddingTop","paddingBottom"],scale:"space",defaultScale:aW.space}},aG.padding.p=aG.padding.padding,aG.padding.pt=aG.padding.paddingTop,aG.padding.pr=aG.padding.paddingRight,aG.padding.pb=aG.padding.paddingBottom,aG.padding.pl=aG.padding.paddingLeft,aG.padding.px=aG.padding.paddingX,aG.padding.py=aG.padding.paddingY;var aH=aR(aA(aG.margin),aA(aG.padding)),aY=aA({boxShadow:{property:"boxShadow",scale:"shadows"},textShadow:{property:"textShadow",scale:"shadows"}});function aX(){return(aX=Object.assign||function(e){for(var t=1;t=0)return aV(e,t,t);var n=Math.abs(t),r=aV(e,n,n);return"string"==typeof r?"-"+r:-1*r},a9=["margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","top","bottom","left","right"].reduce(function(e,t){var n;return aX({},e,((n={})[t]=a5,n))},{}),a4=function(e){var t,n,r=e.scale,i=e.prop,a=e.variants,o=void 0===a?{}:a,s=e.key;return(n=Object.keys(o).length?function(e,t,n){return(function e(t){return function(n){void 0===n&&(n={});var r,i=aX({},aJ,{},n.theme||n),a={},o=(r="function"==typeof t?t(i):t,function(e){var t={},n=[null].concat(aV(e,"breakpoints",aK).map(function(e){return"@media screen and (min-width: "+e+")"}));for(var i in r){var a="function"==typeof r[i]?r[i](e):r[i];if(null!=a){if(!Array.isArray(a)){t[i]=a;continue}for(var o=0;oe.charCodeAt(2)}),a7=function(e){return"theme"!==e},oe=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?a6:a7},ot=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},on=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return iK(t,n,r),an(function(){return iJ(t,n,r)}),null},or=(function e(t,n){var r,i,a=t.__emotion_real===t,o=a&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var s=ot(t,n,a),l=s||oe(o),u=!l("as");return function(){var c=arguments,d=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==c[0]||void 0===c[0].raw)d.push.apply(d,c);else{d.push(c[0][0]);for(var h=c.length,p=1;pe.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return(function(e){if(0===e.length||1===e.length)return e;var t,n=e.join(".");return ol[n]||(ol[n]=0===(t=e.length)||1===t?e:2===t?[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])]:3===t?[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])]:t>=4?[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])]:void 0),ol[n]})(e.filter(function(e){return"token"!==e})).reduce(function(e,t){return os(os({},e),n[t])},t)}(s.className,Object.assign({},s.style,void 0===i?{}:i),r)})}else h=os(os({},s),{},{className:s.className.join(" ")});var O=p(n.children);return U.createElement(u,iY({key:o},h),O)}}({node:e,stylesheet:n,useInlineStyles:r,key:"code-segement".concat(t)})})}function ob(e){return e&&void 0!==e.highlightAuto}var oy=n(98695),ov=(_E=n.n(oy)(),_C={'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"}},function(e){var t=e.language,n=e.children,r=e.style,i=void 0===r?_C:r,a=e.customStyle,o=void 0===a?{}:a,s=e.codeTagProps,l=void 0===s?{className:t?"language-".concat(t):void 0,style:od(od({},i['code[class*="language-"]']),i['code[class*="language-'.concat(t,'"]')])}:s,u=e.useInlineStyles,c=void 0===u||u,d=e.showLineNumbers,h=void 0!==d&&d,p=e.showInlineLineNumbers,f=void 0===p||p,m=e.startingLineNumber,g=void 0===m?1:m,O=e.lineNumberContainerStyle,b=e.lineNumberStyle,y=void 0===b?{}:b,v=e.wrapLines,x=e.wrapLongLines,T=void 0!==x&&x,k=e.lineProps,_=void 0===k?{}:k,S=e.renderer,w=e.PreTag,E=void 0===w?"pre":w,C=e.CodeTag,A=void 0===C?"code":C,R=e.code,P=void 0===R?(Array.isArray(n)?n[0]:n)||"":R,I=e.astGenerator,N=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,ou);I=I||_E;var $=h?U.createElement(op,{containerStyle:O,codeStyle:l.style||{},numberStyle:y,startingLineNumber:g,codeString:P}):null,L=i.hljs||i['pre[class*="language-"]']||{backgroundColor:"#fff"},D=ob(I)?"hljs":"prismjs",Q=c?Object.assign({},N,{style:Object.assign({},L,o)}):Object.assign({},N,{className:N.className?"".concat(D," ").concat(N.className):D,style:Object.assign({},o)});if(T?l.style=od(od({},l.style),{},{whiteSpace:"pre-wrap"}):l.style=od(od({},l.style),{},{whiteSpace:"pre"}),!I)return U.createElement(E,Q,$,U.createElement(A,l,P));(void 0===v&&S||T)&&(v=!0),S=S||oO;var M=[{type:"text",value:P}],F=function(e){var t=e.astGenerator,n=e.language,r=e.code,i=e.defaultCodeValue;if(ob(t)){var a=-1!==t.listLanguages().indexOf(n);return"text"===n?{value:i,language:"text"}:a?t.highlight(n,r):t.highlightAuto(r)}try{return n&&"text"!==n?{value:t.highlight(r,n)}:{value:i}}catch(e){return{value:i}}}({astGenerator:I,language:t,code:P,defaultCodeValue:M});null===F.language&&(F.value=M);var B=F.value.length+g,j=function(e,t,n,r,i,a,o,s,l){var u,c=function e(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=0;i2&&void 0!==arguments[2]?arguments[2]:[];return t||u.length>0?function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return og({children:e,lineNumber:t,lineNumberStyle:s,largestLineNumber:o,showInlineLineNumbers:i,lineProps:n,className:a,showLineNumbers:r,wrapLongLines:l})}(e,a,u):function(e,t){if(r&&t&&i){var n=om(s,t,o);e.unshift(of(t,n))}return e}(e,a)}for(;pthis.length)throw RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){let r=[];return this.decompose(0,e,r,2),n.length&&n.decompose(0,n.length,r,3),this.decompose(t,this.length,r,1),ok.from(r,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){let n=[];return this.decompose(e,t,n,0),ok.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),r=new oS(this),i=new oS(e);for(let e=t,a=t;;){if(r.next(e),i.next(e),e=0,r.lineBreak!=i.lineBreak||r.done!=i.done||r.value!=i.value)return!1;if(a+=r.value.length,r.done||a>=n)return!0}}iter(e=1){return new oS(this,e)}iterRange(e,t=this.length){return new ow(this,e,t)}iterLines(e,t){let n;if(null==e)n=this.iter();else{null==t&&(t=this.lines+1);let r=this.line(e).from;n=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new oE(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}static of(e){if(0==e.length)throw RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new oT(e):ok.from(oT.split(e,[])):ox.empty}}class oT extends ox{constructor(e,t=function(e){let t=-1;for(let n of e)t+=n.length+1;return t}(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,r){for(let i=0;;i++){let a=this.text[i],o=r+a.length;if((t?n:o)>=e)return new oC(r,o,n,a);r=o+1,n++}}decompose(e,t,n,r){let i=e<=0&&t>=this.length?this:new oT(o_(this.text,[""],e,t),Math.min(t,this.length)-Math.max(0,e));if(1&r){let e=n.pop(),t=o_(i.text,e.text.slice(),0,i.length);if(t.length<=32)n.push(new oT(t,e.length+i.length));else{let e=t.length>>1;n.push(new oT(t.slice(0,e)),new oT(t.slice(e)))}}else n.push(i)}replace(e,t,n){if(!(n instanceof oT))return super.replace(e,t,n);let r=o_(this.text,o_(n.text,o_(this.text,[""],0,e)),t),i=this.length+n.length-(t-e);return r.length<=32?new oT(r,i):ok.from(oT.split(r,[]),i)}sliceString(e,t=this.length,n="\n"){let r="";for(let i=0,a=0;i<=t&&ae&&a&&(r+=n),ei&&(r+=o.slice(Math.max(0,e-i),t-i)),i=s+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let n=[],r=-1;for(let i of e)n.push(i),r+=i.length+1,32==n.length&&(t.push(new oT(n,r)),n=[],r=-1);return r>-1&&t.push(new oT(n,r)),t}}class ok extends ox{constructor(e,t){for(let n of(super(),this.children=e,this.length=t,this.lines=0,e))this.lines+=n.lines}lineInner(e,t,n,r){for(let i=0;;i++){let a=this.children[i],o=r+a.length,s=n+a.lines-1;if((t?s:o)>=e)return a.lineInner(e,t,n,r);r=o+1,n=s+1}}decompose(e,t,n,r){for(let i=0,a=0;a<=t&&i=a){let i=r&((a<=e?1:0)|(s>=t?2:0));a>=e&&s<=t&&!i?n.push(o):o.decompose(e-a,t-a,n,i)}a=s+1}}replace(e,t,n){if(n.lines=i&&t<=o){let s=a.replace(e-i,t-i,n),l=this.lines-a.lines+s.lines;if(s.lines>4&&s.lines>l>>6){let i=this.children.slice();return i[r]=s,new ok(i,this.length-(t-e)+n.length)}return super.replace(i,o,s)}i=o+1}return super.replace(e,t,n)}sliceString(e,t=this.length,n="\n"){let r="";for(let i=0,a=0;ie&&i&&(r+=n),ea&&(r+=o.sliceString(e-a,t-a,n)),a=s+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof ok))return 0;let n=0,[r,i,a,o]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=t,i+=t){if(r==a||i==o)return n;let s=this.children[r],l=e.children[i];if(s!=l)return n+s.scanIdentical(l,t);n+=s.length+1}}static from(e,t=e.reduce((e,t)=>e+t.length+1,-1)){let n=0;for(let t of e)n+=t.lines;if(n<32){let n=[];for(let t of e)t.flatten(n);return new oT(n,t)}let r=Math.max(32,n>>5),i=r<<1,a=r>>1,o=[],s=0,l=-1,u=[];function c(){0!=s&&(o.push(1==u.length?u[0]:ok.from(u,l)),l=-1,s=u.length=0)}for(let t of e)!function e(t){let n;if(t.lines>i&&t instanceof ok)for(let n of t.children)e(n);else t.lines>a&&(s>a||!s)?(c(),o.push(t)):t instanceof oT&&s&&(n=u[u.length-1])instanceof oT&&t.lines+n.lines<=32?(s+=t.lines,l+=t.length+1,u[u.length-1]=new oT(n.text.concat(t.text),n.length+1+t.length)):(s+t.lines>r&&c(),s+=t.lines,l+=t.length+1,u.push(t))}(t);return c(),1==o.length?o[0]:new ok(o,t)}}function o_(e,t,n=0,r=1e9){for(let i=0,a=0,o=!0;a=n&&(l>r&&(s=s.slice(0,r-i)),i0?1:(e instanceof oT?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,r=this.nodes[n],i=this.offsets[n],a=i>>1,o=r instanceof oT?r.text.length:r.children.length;if(a==(t>0?o:0)){if(0==n)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&i)==(t>0?0:1)){if(this.offsets[n]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(r instanceof oT){let i=r.text[a+(t<0?-1:0)];if(this.offsets[n]+=t,i.length>Math.max(0,e))return this.value=0==e?i:t>0?i.slice(e):i.slice(0,i.length-e),this;e-=i.length}else{let i=r.children[a+(t<0?-1:0)];e>i.length?(e-=i.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(i),this.offsets.push(t>0?1:(i instanceof oT?i.text.length:i.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class ow{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new oS(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=n?r:t<0?r.slice(r.length-n):r.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class oE{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:n,value:r}=this.inner.next(e);return t?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(ox.prototype[Symbol.iterator]=function(){return this.iter()},oS.prototype[Symbol.iterator]=ow.prototype[Symbol.iterator]=oE.prototype[Symbol.iterator]=function(){return this});class oC{constructor(e,t,n,r){this.from=e,this.to=t,this.number=n,this.text=r}get length(){return this.to-this.from}}let oA="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=1;e=127462&&e<=127487}function oP(e,t,n=!0,r=!0){return(n?oI:oN)(e,t,r)}function oI(e,t,n){if(t==e.length)return t;t&&o$(e.charCodeAt(t))&&oL(e.charCodeAt(t-1))&&t--;let r=oD(e,t);for(t+=oM(r);te)return oA[t-1]<=e;return!1}(i))t+=oM(i),r=i;else if(oR(i)){let n=0,r=t-2;for(;r>=0&&oR(oD(e,r));)n++,r-=2;if(n%2==0)break;t+=2}else break}return t}function oN(e,t,n){for(;t>0;){let r=oI(e,t-2,n);if(r=56320&&e<57344}function oL(e){return e>=55296&&e<56320}function oD(e,t){let n=e.charCodeAt(t);if(!oL(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return o$(r)?(n-55296<<10)+(r-56320)+65536:n}function oQ(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10)+55296,(1023&e)+56320)}function oM(e){return e<65536?1:2}let oF=/\r\n?|\n/;var oB=((_A=oB||(oB={}))[_A.Simple=0]="Simple",_A[_A.TrackDel=1]="TrackDel",_A[_A.TrackBefore=2]="TrackBefore",_A[_A.TrackAfter=3]="TrackAfter",_A);class oU{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;te)return i+(e-r);i+=o}else{if(n!=oB.Simple&&l>=e&&(n==oB.TrackDel&&re||n==oB.TrackBefore&&re))return null;if(l>e||l==e&&t<0&&!o)return e==r||t<0?i:i+s;i+=s}r=l}if(e>r)throw RangeError(`Position ${e} is out of range for changeset of length ${r}`);return i}touchesRange(e,t=e){for(let n=0,r=0;n=0&&r<=t&&o>=e)return!(rt)||"cover";r=o}return!1}toString(){let e="";for(let t=0;t=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(e=>"number"!=typeof e))throw RangeError("Invalid JSON representation of ChangeDesc");return new oU(e)}static create(e){return new oU(e)}}class oj extends oU{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw RangeError("Applying change set to a document with the wrong length");return oZ(this,(t,n,r,i,a)=>e=e.replace(r,r+(n-t),a),!1),e}mapDesc(e,t=!1){return oq(this,e,t,!0)}invert(e){let t=this.sections.slice(),n=[];for(let r=0,i=0;r=0){t[r]=o,t[r+1]=a;let s=r>>1;for(;n.length0&&oW(n,t,i.text),i.forward(e),o+=e}let l=e[a++];for(;o>1].toJSON()))}return e}static of(e,t,n){let r=[],i=[],a=0,o=null;function s(e=!1){if(!e&&!r.length)return;ao||e<0||o>t)throw RangeError(`Invalid change range ${e} to ${o} (in doc of length ${t})`);let c=u?"string"==typeof u?ox.of(u.split(n||oF)):u:ox.empty,d=c.length;if(e==o&&0==d)return;ea&&oz(r,e-a,-1),oz(r,o-e,d),oW(i,r,c),a=o}}(e),s(!o),o}static empty(e){return new oj(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw RangeError("Invalid JSON representation of ChangeSet");let t=[],n=[];for(let r=0;rt&&"string"!=typeof e))throw RangeError("Invalid JSON representation of ChangeSet");else if(1==i.length)t.push(i[0],0);else{for(;n.length=0&&n<=0&&n==e[i+1]?e[i]+=t:0==t&&0==e[i]?e[i+1]+=n:r?(e[i]+=t,e[i+1]+=n):e.push(t,n)}function oW(e,t,n){if(0==n.length)return;let r=t.length-2>>1;if(r>1])),!n&&o!=e.sections.length&&!(e.sections[o+1]<0);)s=e.sections[o++],l=e.sections[o++];t(i,u,a,c,d),i=u,a=c}}}function oq(e,t,n,r=!1){let i=[],a=r?[]:null,o=new oH(e),s=new oH(t);for(let e=0,t=0;;)if(-1==o.ins)e+=o.len,o.next();else if(-1==s.ins&&t=0&&(o.done||tt&&!o.done&&e+o.len=0){let n=0,r=e+o.len;for(;;)if(s.ins>=0&&t>e&&t+s.lent||o.ins>=0&&o.len>t)&&(e||r.length>n),a.forward2(t),o.forward(t)}}else oz(r,0,o.ins,e),i&&oW(i,r,o.text),o.next()}}class oH{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return t>=e.length?ox.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?ox.empty:t[n].slice(this.off,null==e?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class oY{constructor(e,t,n){this.from=e,this.to=t,this.flags=n}get anchor(){return 16&this.flags?this.to:this.from}get head(){return 16&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 4&this.flags?-1:8&this.flags?1:0}get bidiLevel(){let e=3&this.flags;return 3==e?null:e}get goalColumn(){let e=this.flags>>5;return 33554431==e?void 0:e}map(e,t=-1){let n,r;return this.empty?n=r=e.mapPos(this.from,t):(n=e.mapPos(this.from,1),r=e.mapPos(this.to,-1)),n==this.from&&r==this.to?this:new oY(n,r,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return oX.range(e,t);let n=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return oX.range(this.anchor,n)}eq(e){return this.anchor==e.anchor&&this.head==e.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw RangeError("Invalid JSON representation for SelectionRange");return oX.range(e.anchor,e.head)}static create(e,t,n){return new oY(e,t,n)}}class oX{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:oX.create(this.ranges.map(n=>n.map(e,t)),this.mainIndex)}eq(e){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let t=0;te.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw RangeError("Invalid JSON representation for EditorSelection");return new oX(e.ranges.map(e=>oY.fromJSON(e)),e.main)}static single(e,t=e){return new oX([oX.range(e,t)],0)}static create(e,t=0){if(0==e.length)throw RangeError("A selection needs at least one range");for(let n=0,r=0;re?4:0))}static normalized(e,t=0){let n=e[t];e.sort((e,t)=>e.from-t.from),t=e.indexOf(n);for(let n=1;nr.head?oX.range(o,a):oX.range(a,o))}}return new oX(e,t)}}function oV(e,t){for(let n of e.ranges)if(n.to>t)throw RangeError("Selection points outside of document")}let oK=0;class oJ{constructor(e,t,n,r,i){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=r,this.extensions=i,this.id=oK++,this.default=e([])}static define(e={}){return new oJ(e.combine||(e=>e),e.compareInput||((e,t)=>e===t),e.compare||(e.combine?(e,t)=>e===t:o1),!!e.static,e.enables)}of(e){return new o0([],this,0,e)}compute(e,t){if(this.isStatic)throw Error("Can't compute a static facet");return new o0(e,this,1,t)}computeN(e,t){if(this.isStatic)throw Error("Can't compute a static facet");return new o0(e,this,2,t)}from(e,t){return t||(t=e=>e),this.compute([e],n=>t(n.field(e)))}}function o1(e,t){return e==t||e.length==t.length&&e.every((e,n)=>e===t[n])}class o0{constructor(e,t,n,r){this.dependencies=e,this.facet=t,this.type=n,this.value=r,this.id=oK++}dynamicSlot(e){var t;let n=this.value,r=this.facet.compareInput,i=this.id,a=e[i]>>1,o=2==this.type,s=!1,l=!1,u=[];for(let n of this.dependencies)"doc"==n?s=!0:"selection"==n?l=!0:((null!==(t=e[n.id])&&void 0!==t?t:1)&1)==0&&u.push(e[n.id]);return{create:e=>(e.values[a]=n(e),1),update(e,t){if(s&&t.docChanged||l&&(t.docChanged||t.selection)||o5(e,u)){let t=n(e);if(o?!o2(t,e.values[a],r):!r(t,e.values[a]))return e.values[a]=t,1}return 0},reconfigure:(e,t)=>{let s=n(e),l=t.config.address[i];if(null!=l){let n=si(t,l);if(this.dependencies.every(n=>n instanceof oJ?t.facet(n)===e.facet(n):!(n instanceof o4)||t.field(n,!1)==e.field(n,!1))||(o?o2(s,n,r):r(s,n)))return e.values[a]=n,0}return e.values[a]=s,1}}}}function o2(e,t,n){if(e.length!=t.length)return!1;for(let r=0;re===t),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(o9).find(e=>e.field==this);return((null==t?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,n)=>{let r=e.values[t],i=this.updateF(r,n);return this.compareF(r,i)?0:(e.values[t]=i,1)},reconfigure:(e,n)=>null!=n.config.address[this.id]?(e.values[t]=n.field(this),0):(e.values[t]=this.create(e),1)}}init(e){return[this,o9.of({field:this,create:e})]}get extension(){return this}}let o3={lowest:4,low:3,default:2,high:1,highest:0};function o8(e){return t=>new o7(t,e)}let o6={highest:o8(o3.highest),high:o8(o3.high),default:o8(o3.default),low:o8(o3.low),lowest:o8(o3.lowest)};class o7{constructor(e,t){this.inner=e,this.prec=t}}class se{of(e){return new st(this,e)}reconfigure(e){return se.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class st{constructor(e,t){this.compartment=e,this.inner=t}}class sn{constructor(e,t,n,r,i,a){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=r,this.staticValues=i,this.facets=a,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,t,n){let r,i,a=[],o=Object.create(null),s=new Map;for(let n of(r=[[],[],[],[],[]],i=new Map,!function e(n,a){let o=i.get(n);if(null!=o){if(o<=a)return;let e=r[o].indexOf(n);e>-1&&r[o].splice(e,1),n instanceof st&&s.delete(n.compartment)}if(i.set(n,a),Array.isArray(n))for(let t of n)e(t,a);else if(n instanceof st){if(s.has(n.compartment))throw RangeError("Duplicate use of compartment in extensions");let r=t.get(n.compartment)||n.inner;s.set(n.compartment,r),e(r,a)}else if(n instanceof o7)e(n.inner,n.prec);else if(n instanceof o4)r[a].push(n),n.provides&&e(n.provides,a);else if(n instanceof o0)r[a].push(n),n.facet.extensions&&e(n.facet.extensions,a);else{let t=n.extension;if(!t)throw Error(`Unrecognized extension value in extension set (${n}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);e(t,a)}}(e,o3.default),r.reduce((e,t)=>e.concat(t))))n instanceof o4?a.push(n):(o[n.facet.id]||(o[n.facet.id]=[])).push(n);let l=Object.create(null),u=[],c=[];for(let e of a)l[e.id]=c.length<<1,c.push(t=>e.slot(t));let d=null==n?void 0:n.config.facets;for(let e in o){let t=o[e],r=t[0].facet,i=d&&d[e]||[];if(t.every(e=>0==e.type)){if(l[r.id]=u.length<<1|1,o1(i,t))u.push(n.facet(r));else{let e=r.combine(t.map(e=>e.value));u.push(n&&r.compare(e,n.facet(r))?n.facet(r):e)}}else{for(let e of t)0==e.type?(l[e.id]=u.length<<1|1,u.push(e.value)):(l[e.id]=c.length<<1,c.push(t=>e.dynamicSlot(t)));l[r.id]=c.length<<1,c.push(e=>(function(e,t,n){let r=n.map(t=>e[t.id]),i=n.map(e=>e.type),a=r.filter(e=>!(1&e)),o=e[t.id]>>1;function s(e){let n=[];for(let t=0;te(l));return new sn(e,s,h,l,u,o)}}function sr(e,t){if(1&t)return 2;let n=t>>1,r=e.status[n];if(4==r)throw Error("Cyclic dependency between fields and/or facets");if(2&r)return r;e.status[n]=4;let i=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|i}function si(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}let sa=oJ.define(),so=oJ.define({combine:e=>e.some(e=>e),static:!0}),ss=oJ.define({combine:e=>e.length?e[0]:void 0,static:!0}),sl=oJ.define(),su=oJ.define(),sc=oJ.define(),sd=oJ.define({combine:e=>!!e.length&&e[0]});class sh{constructor(e,t){this.type=e,this.value=t}static define(){return new sp}}class sp{of(e){return new sh(this,e)}}class sf{constructor(e){this.map=e}of(e){return new sm(this,e)}}class sm{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return void 0===t?void 0:t==this.value?this:new sm(this.type,t)}is(e){return this.type==e}static define(e={}){return new sf(e.map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let r of e){let e=r.map(t);e&&n.push(e)}return n}}sm.reconfigure=sm.define(),sm.appendConfig=sm.define();class sg{constructor(e,t,n,r,i,a){this.startState=e,this.changes=t,this.selection=n,this.effects=r,this.annotations=i,this.scrollIntoView=a,this._doc=null,this._state=null,n&&oV(n,t.newLength),i.some(e=>e.type==sg.time)||(this.annotations=i.concat(sg.time.of(Date.now())))}static create(e,t,n,r,i,a){return new sg(e,t,n,r,i,a)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(sg.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&"."==t[e.length]))}}function sO(e,t,n){var r;let i,a,o;return n?(i=t.changes,a=oj.empty(t.changes.length),o=e.changes.compose(t.changes)):(i=t.changes.map(e.changes),a=e.changes.mapDesc(t.changes,!0),o=e.changes.compose(i)),{changes:o,selection:t.selection?t.selection.map(a):null===(r=e.selection)||void 0===r?void 0:r.map(i),effects:sm.mapEffects(e.effects,i).concat(sm.mapEffects(t.effects,a)),annotations:e.annotations.length?e.annotations.concat(t.annotations):t.annotations,scrollIntoView:e.scrollIntoView||t.scrollIntoView}}function sb(e,t,n){let r=t.selection,i=sv(t.annotations);return t.userEvent&&(i=i.concat(sg.userEvent.of(t.userEvent))),{changes:t.changes instanceof oj?t.changes:oj.of(t.changes||[],n,e.facet(ss)),selection:r&&(r instanceof oX?r:oX.single(r.anchor,r.head)),effects:sv(t.effects),annotations:i,scrollIntoView:!!t.scrollIntoView}}sg.time=sh.define(),sg.userEvent=sh.define(),sg.addToHistory=sh.define(),sg.remote=sh.define();let sy=[];function sv(e){return null==e?sy:Array.isArray(e)?e:[e]}var sx=((_R=sx||(sx={}))[_R.Word=0]="Word",_R[_R.Space=1]="Space",_R[_R.Other=2]="Other",_R);let sT=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;try{l=RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(e){}class sk{constructor(e,t,n,r,i,a){this.config=e,this.doc=t,this.selection=n,this.values=r,this.status=e.statusTemplate.slice(),this.computeSlot=i,a&&(a._state=this);for(let e=0;e=0;i--){let a=n[i](e);a&&Object.keys(a).length&&(r=sO(e,sb(t,a,e.changes.newLength),!0))}return r==e?e:sg.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}(r?function(t){let n=t.startState,r=!0;for(let e of n.facet(sl)){let n=e(t);if(!1===n){r=!1;break}Array.isArray(n)&&(r=!0===r?n:function(e,t){let n=[];for(let r=0,i=0;;){let a,o;if(r=e[r]))a=e[r++],o=e[r++];else{if(!(i=0;r--){let a=i[r](t);t=a instanceof sg?a:Array.isArray(a)&&1==a.length&&a[0]instanceof sg?a[0]:e(n,sv(a),!1)}return t}(a):a)}(this,e,!0)}applyTransaction(e){let t,n=this.config,{base:r,compartments:i}=n;for(let t of e.effects)t.is(se.reconfigure)?(n&&(i=new Map,n.compartments.forEach((e,t)=>i.set(t,e)),n=null),i.set(t.value.compartment,t.value.extension)):t.is(sm.reconfigure)?(n=null,r=t.value):t.is(sm.appendConfig)&&(n=null,r=sv(r).concat(t.value));n?t=e.startState.values.slice():(n=sn.resolve(r,i,this),t=new sk(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(e,t)=>t.reconfigure(e,this),null).values),new sk(n,e.newDoc,e.newSelection,t,(t,n)=>n.update(t,e),e)}replaceSelection(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:oX.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),r=this.changes(n.changes),i=[n.range],a=sv(n.effects);for(let n=1;ni.spec.fromJSON(a,e)))}return sk.create({doc:e.doc,selection:oX.fromJSON(e.selection),extensions:t.extensions?r.concat([t.extensions]):r})}static create(e={}){let t=sn.resolve(e.extensions||[],new Map),n=e.doc instanceof ox?e.doc:ox.of((e.doc||"").split(t.staticFacet(sk.lineSeparator)||oF)),r=e.selection?e.selection instanceof oX?e.selection:oX.single(e.selection.anchor,e.selection.head):oX.single(0);return oV(r,n.length),t.staticFacet(so)||(r=r.asSingle()),new sk(t,n,r,t.dynamicSlots.map(()=>null),(e,t)=>t.create(e),null)}get tabSize(){return this.facet(sk.tabSize)}get lineBreak(){return this.facet(sk.lineSeparator)||"\n"}get readOnly(){return this.facet(sd)}phrase(e,...t){for(let t of this.facet(sk.phrases))if(Object.prototype.hasOwnProperty.call(t,e)){e=t[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(e,n)=>{if("$"==n)return"$";let r=+(n||1);return r>t.length?e:t[r-1]})),e}languageDataAt(e,t,n=-1){let r=[];for(let i of this.facet(sa))for(let a of i(this,t,n))Object.prototype.hasOwnProperty.call(a,e)&&r.push(a[e]);return r}charCategorizer(e){var t;return t=this.languageDataAt("wordChars",e).join(""),e=>{if(!/\S/.test(e))return sx.Space;if(function(e){if(l)return l.test(e);for(let t=0;t"\x80"&&(n.toUpperCase()!=n.toLowerCase()||sT.test(n)))return!0}return!1}(e))return sx.Word;for(let n=0;n-1)return sx.Word;return sx.Other}}wordAt(e){let{text:t,from:n,length:r}=this.doc.lineAt(e),i=this.charCategorizer(e),a=e-n,o=e-n;for(;a>0;){let e=oP(t,a,!1);if(i(t.slice(e,a))!=sx.Word)break;a=e}for(;oe.length?e[0]:4}),sk.lineSeparator=ss,sk.readOnly=sd,sk.phrases=oJ.define({compare(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length==r.length&&n.every(n=>e[n]==t[n])}}),sk.languageData=sa,sk.changeFilter=sl,sk.transactionFilter=su,sk.transactionExtender=sc,se.reconfigure=sm.define();class sS{eq(e){return this==e}range(e,t=e){return sw.create(e,t,this)}}sS.prototype.startSide=sS.prototype.endSide=0,sS.prototype.point=!1,sS.prototype.mapMode=oB.TrackDel;class sw{constructor(e,t,n){this.from=e,this.to=t,this.value=n}static create(e,t,n){return new sw(e,t,n)}}function sE(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class sC{constructor(e,t,n,r){this.from=e,this.to=t,this.value=n,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(e,t,n,r=0){let i=n?this.to:this.from;for(let a=r,o=i.length;;){if(a==o)return a;let r=a+o>>1,s=i[r]-e||(n?this.value[r].endSide:this.value[r].startSide)-t;if(r==a)return s>=0?a:o;s>=0?o=r:a=r+1}}between(e,t,n,r){for(let i=this.findIndex(t,-1e9,!0),a=this.findIndex(n,1e9,!1,i);i(h=t.mapPos(c,l.endSide))||d==h&&l.startSide>0&&l.endSide<=0)continue;0>(h-d||l.endSide-l.startSide)||(a<0&&(a=d),l.point&&(o=Math.max(o,h-d)),n.push(l),r.push(d-a),i.push(h-a))}return{mapped:n.length?new sC(r,i,n,o):null,pos:a}}}class sA{constructor(e,t,n,r){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=r}static create(e,t,n,r){return new sA(e,t,n,r)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:n=!1,filterFrom:r=0,filterTo:i=this.length}=e,a=e.filter;if(0==t.length&&!a)return this;if(n&&(t=t.slice().sort(sE)),this.isEmpty)return t.length?sA.of(t):this;let o=new sI(this,null,-1).goto(0),s=0,l=[],u=new sR;for(;o.value||s=0){let e=t[s++];u.addInner(e.from,e.to,e.value)||l.push(e)}else 1==o.rangeIndex&&o.chunkIndexthis.chunkEnd(o.chunkIndex)||io.to||i=i&&e<=i+a.length&&!1===a.between(i,e-i,t-i,n))return}this.nextLayer.between(e,t,n)}}iter(e=0){return sN.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return sN.from(e).goto(t)}static compare(e,t,n,r,i=-1){let a=e.filter(e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i),o=t.filter(e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i),s=sP(a,o,n),l=new sL(a,s,i),u=new sL(o,s,i);n.iterGaps((e,t,n)=>sD(l,e,u,t,n,r)),n.empty&&0==n.length&&sD(l,0,u,0,0,r)}static eq(e,t,n=0,r){null==r&&(r=1e9);let i=e.filter(e=>!e.isEmpty&&0>t.indexOf(e)),a=t.filter(t=>!t.isEmpty&&0>e.indexOf(t));if(i.length!=a.length)return!1;if(!i.length)return!0;let o=sP(i,a),s=new sL(i,o,0).goto(n),l=new sL(a,o,0).goto(n);for(;;){if(s.to!=l.to||!sQ(s.active,l.active)||s.point&&(!l.point||!s.point.eq(l.point)))return!1;if(s.to>r)return!0;s.next(),l.next()}}static spans(e,t,n,r,i=-1){let a=new sL(e,null,i).goto(t),o=t,s=a.openStart;for(;;){let e=Math.min(a.to,n);if(a.point?(r.point(o,e,a.point,a.activeForPoint(a.to),s,a.pointRank),s=a.openEnd(e)+(a.to>e?1:0)):e>o&&(r.span(o,e,a.active,s),s=a.openEnd(e)),a.to>n)break;o=a.to,a.next()}return s}static of(e,t=!1){let n=new sR;for(let r of e instanceof sw?[e]:t?function(e){if(e.length>1)for(let t=e[0],n=1;n0)return e.slice().sort(sE);t=r}return e}(e):e)n.add(r.from,r.to,r.value);return n.finish()}}sA.empty=new sA([],[],null,-1),sA.empty.nextLayer=sA.empty;class sR{constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}finishChunk(e){this.chunks.push(new sC(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}add(e,t,n){this.addInner(e,t,n)||(this.nextLayer||(this.nextLayer=new sR)).add(e,t,n)}addInner(e,t,n){let r=e-this.lastTo||n.startSide-this.last.endSide;if(r<=0&&0>(e-this.lastFrom||n.startSide-this.last.startSide))throw Error("Ranges must be added sorted by `from` position and `startSide`");return!(r<0)&&(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=t,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if(0>(e-this.lastTo||t.value[0].startSide-this.last.endSide))return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,!0}finish(){return this.finishInner(sA.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;let t=sA.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function sP(e,t,n){let r=new Map;for(let t of e)for(let e=0;e(this.to-e||this.endSide-t)&&this.gotoInner(e,t,!0)}next(){for(;;){if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}{let e=this.layer.chunkPos[this.chunkIndex],t=this.layer.chunk[this.chunkIndex],n=e+t.from[this.rangeIndex];if(this.from=n,this.to=e+t.to[this.rangeIndex],this.value=t.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=n&&r.push(new sI(a,t,n,i));return 1==r.length?r[0]:new sN(r)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let n of this.heap)n.goto(e,t);for(let e=this.heap.length>>1;e>=0;e--)s$(this.heap,e);return this.next(),this}forward(e,t){for(let n of this.heap)n.forward(e,t);for(let e=this.heap.length>>1;e>=0;e--)s$(this.heap,e);0>(this.to-e||this.value.endSide-t)&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),s$(this.heap,0)}}}function s$(e,t){for(let n=e[t];;){let r=(t<<1)+1;if(r>=e.length)break;let i=e[r];if(r+1=0&&(i=e[r+1],r++),0>n.compare(i))break;e[r]=n,e[t]=i,t=r}}class sL{constructor(e,t,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=sN.from(e,t,n)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&0>(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t);)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){sM(this.active,e),sM(this.activeTo,e),sM(this.activeRank,e),this.minActive=sB(this.active,this.activeTo)}addActive(e){let t=0,{value:n,to:r,rank:i}=this.cursor;for(;t-1&&0>(this.activeTo[i]-this.cursor.from||this.active[i].endSide-this.cursor.startSide)){if(this.activeTo[i]>e){this.to=this.activeTo[i],this.endSide=this.active[i].endSide;break}this.removeActive(i),n&&sM(n,i)}else if(this.cursor.value){if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let i=this.cursor.value;if(i.point){if(t&&this.cursor.to==this.to&&this.cursor.from=0&&!(this.activeRank[n]e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&t.push(this.active[n]);return t.reverse()}openEnd(e){let t=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)t++;return t}}function sD(e,t,n,r,i,a){e.goto(t),n.goto(r);let o=r+i,s=r,l=r-t;for(;;){let t=e.to+l-n.to||e.endSide-n.endSide,r=t<0?e.to+l:n.to,i=Math.min(r,o);if(e.point||n.point?e.point&&n.point&&(e.point==n.point||e.point.eq(n.point))&&sQ(e.activeForPoint(e.to+l),n.activeForPoint(n.to))||a.comparePoint(s,i,e.point,n.point):i>s&&!sQ(e.active,n.active)&&a.compareRange(s,i,e.active,n.active),r>o)break;s=r,t<=0&&e.next(),t>=0&&n.next()}}function sQ(e,t){if(e.length!=t.length)return!1;for(let n=0;n=t;n--)e[n+1]=e[n];e[t]=n}function sB(e,t){let n=-1,r=1e9;for(let i=0;i(t[i]-r||e[i].endSide-e[n].endSide)&&(n=i,r=t[i]);return n}function sU(e,t,n=e.length){let r=0;for(let i=0;it.map(t=>e.replace(/&/,t))).reduce((e,t)=>e.concat(t)),o,a);else if(o&&"object"==typeof o){if(!l)throw RangeError("The value of a property ("+n+") should be a primitive value.");e(r(n),o,s,u)}else null!=o&&s.push(n.replace(/_.*/,"").replace(/[A-Z]/g,e=>"-"+e.toLowerCase())+": "+o+";")}(s.length||u)&&a.push((!n||l||o?t:t.map(n)).join(", ")+" {"+s.join(" ")+"}")}(r(t),e[t],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let e=sW[sj]||1;return sW[sj]=e+1,"ͼ"+e.toString(36)}static mount(e,t,n){let r=e[sz],i=n&&n.nonce;r?i&&r.setNonce(i):r=new sG(e,i),r.mount(Array.isArray(t)?t:[t],e)}}let sq=new Map;class sG{constructor(e,t){let n=e.ownerDocument||e,r=n.defaultView;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let t=sq.get(n);if(t)return e[sz]=t;this.sheet=new r.CSSStyleSheet,sq.set(n,this)}else this.styleTag=n.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[sz]=this}mount(e,t){let n=this.sheet,r=0,i=0;for(let t=0;t-1&&(this.modules.splice(o,1),i--,o=-1),-1==o){if(this.modules.splice(i++,0,a),n)for(let e=0;et.adoptedStyleSheets.indexOf(this.sheet)&&(t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets]);else{let e="";for(let t=0;t",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},sX="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),sV="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),sK=0;sK<10;sK++)sH[48+sK]=sH[96+sK]=String(sK);for(var sK=1;sK<=24;sK++)sH[sK+111]="F"+sK;for(var sK=65;sK<=90;sK++)sH[sK]=String.fromCharCode(sK+32),sY[sK]=String.fromCharCode(sK);for(var sJ in sH)sY.hasOwnProperty(sJ)||(sY[sJ]=sH[sJ]);function s1(e){return(11==e.nodeType?e.getSelection?e:e.ownerDocument:e).getSelection()}function s0(e,t){return!!t&&(e==t||e.contains(1!=t.nodeType?t.parentNode:t))}function s2(e,t){if(!t.anchorNode)return!1;try{return s0(e,t.anchorNode)}catch(e){return!1}}function s5(e){return 3==e.nodeType?lr(e,0,e.nodeValue.length).getClientRects():1==e.nodeType?e.getClientRects():[]}function s9(e,t,n,r){return!!n&&(s3(e,t,n,r,-1)||s3(e,t,n,r,1))}function s4(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t}function s3(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:s8(e))){if("DIV"==e.nodeName)return!1;let n=e.parentNode;if(!n||1!=n.nodeType)return!1;t=s4(e)+(i<0?0:1),e=n}else{if(1!=e.nodeType||1==(e=e.childNodes[t+(i<0?-1:0)]).nodeType&&"false"==e.contentEditable)return!1;t=i<0?s8(e):0}}}function s8(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}let s6={left:0,right:0,top:0,bottom:0};function s7(e,t){let n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}class le{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){this.set(e.anchorNode,e.anchorOffset,e.focusNode,e.focusOffset)}set(e,t,n,r){this.anchorNode=e,this.anchorOffset=t,this.focusNode=n,this.focusOffset=r}}let lt=null;function ln(e){if(e.setActive)return e.setActive();if(lt)return e.focus(lt);let t=[];for(let n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(null==lt?{get preventScroll(){return lt={preventScroll:!0},!0}}:void 0),!lt){lt=!1;for(let e=0;et)return n.domBoundsAround(e,t,l);if(c>=e&&-1==r&&(r=s,i=l),l>t&&n.dom.parentNode==this.dom){a=s,o=u;break}u=c,l=c+n.breakAfter}return{from:i,to:o<0?n+this.length:o,startDOM:(r?this.children[r-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:a=0?this.children[a].dom:null}}markDirty(e=!1){this.dirty|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.dirty|=2),1&t.dirty)return;t.dirty|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.dirty&&this.markParentsDirty(!0))}setDOM(e){this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t,n=ls){this.markDirty();for(let n=e;nthis.pos||e==this.pos&&(t>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let n=this.children[--this.i];this.pos-=n.length+n.breakAfter}}}function ld(e,t,n,r,i,a,o,s,l){let{children:u}=e,c=u.length?u[t]:null,d=a.length?a[a.length-1]:null,h=d?d.breakAfter:o;if(!(t==r&&c&&!o&&!h&&a.length<2&&c.merge(n,i,a.length?d:null,0==n,s,l))){if(r0&&(!o&&a.length&&c.merge(n,c.length,a[0],!1,s,0)?c.breakAfter=a.shift().breakAfter:(n2);var l_={mac:lk||/Mac/.test(lp.platform),windows:/Win/.test(lp.platform),linux:/Linux|X11/.test(lp.platform),ie:lb,ie_version:lg?lf.documentMode||6:lO?+lO[1]:lm?+lm[1]:0,gecko:ly,gecko_version:ly?+(/Firefox\/(\d+)/.exec(lp.userAgent)||[0,0])[1]:0,chrome:!!lv,chrome_version:lv?+lv[1]:0,ios:lk,android:/Android\b/.test(lp.userAgent),webkit:lx,safari:lT,webkit_version:lx?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=lf.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};class lS extends ll{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(e&&e.node==this.dom&&(e.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){3==e.nodeType&&this.createDOM(e)}merge(e,t,n){return(!n||n instanceof lS&&!(this.length-(t-e)+n.length>256))&&(this.text=this.text.slice(0,e)+(n?n.text:"")+this.text.slice(t),this.markDirty(),!0)}split(e){let t=new lS(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new lo(this.dom,e)}domBoundsAround(e,t,n){return{from:n,to:n+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return lE(this.dom,e,t)}}class lw extends ll{constructor(e,t=[],n=0){for(let r of(super(),this.mark=e,this.children=t,this.length=n,t))r.setParent(this)}setAttrs(e){if(la(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.dirty|=6)}sync(e){this.dom?4&this.dirty&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e)}merge(e,t,n,r,i,a){return(!n||!!(n instanceof lw&&n.mark.eq(this.mark))&&(!e||!(i<=0))&&(!(te&&t.push(n=e&&(r=i),n=o,i++}let a=this.length-e;return this.length=e,r>-1&&(this.children.length=r,this.markDirty()),new lw(this.mark,t,a)}domAtPos(e){return lI(this.dom,this.children,e)}coordsAt(e,t){return lN(this,e,t)}}function lE(e,t,n){let r=e.nodeValue.length;t>r&&(t=r);let i=t,a=t,o=0;0==t&&n<0||t==r&&n>=0?!(l_.chrome||l_.gecko)&&(t?(i--,o=1):a=0)?0:s.length-1];return l_.safari&&!o&&0==l.width&&(l=Array.prototype.find.call(s,e=>e.width)||l),o?s7(l,o<0):l||null}class lC extends ll{constructor(e,t,n){super(),this.widget=e,this.length=t,this.side=n,this.prevWidget=null}static create(e,t,n){return new(e.customView||lC)(e,t,n)}split(e){let t=lC.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(){this.dom&&this.widget.updateDOM(this.dom)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(this.editorView)),this.dom.contentEditable="false")}getSide(){return this.side}merge(e,t,n,r,i,a){return(!n||n instanceof lC&&!!this.widget.compare(n.widget)&&(!(e>0)||!(i<=0))&&(!(t0?n.length-1:0;r=n[t],e>0?0!=t:t!=n.length-1&&!(r.top0?-1:1);return 0==e&&t>0||e==this.length&&t<=0?r:s7(r,0==e)}get isEditable(){return!1}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class lA extends lC{domAtPos(e){let{topView:t,text:n}=this.widget;return t?lR(e,0,t,n,(e,t)=>e.domAtPos(t),e=>new lo(n,Math.min(e,n.nodeValue.length))):new lo(n,Math.min(e,n.nodeValue.length))}sync(){this.setDOM(this.widget.toDOM())}localPosFromDOM(e,t){let{topView:n,text:r}=this.widget;return n?function e(t,n,r,i){if(r instanceof lw)for(let a of r.children){let r=0,o=s0(a.dom,i);if(s0(a.dom,t))return r+(o?e(t,n,a,i):a.localPosFromDOM(t,n));r+=o?i.nodeValue.length:a.length}else if(r.dom==i)return Math.min(n,i.nodeValue.length);return r.localPosFromDOM(t,n)}(e,t,n,r):Math.min(t,this.length)}ignoreMutation(){return!1}get overrideDOMText(){return null}coordsAt(e,t){let{topView:n,text:r}=this.widget;return n?lR(e,t,n,r,(e,t,n)=>e.coordsAt(t,n),(e,t)=>lE(r,e,t)):lE(r,e,t)}destroy(){var e;super.destroy(),null===(e=this.widget.topView)||void 0===e||e.destroy()}get isEditable(){return!0}}function lR(e,t,n,r,i,a){if(n instanceof lw){for(let o of n.children){let n=s0(o.dom,r),s=n?r.nodeValue.length:o.length;if(e=o.getSide())return n?lR(e,t,o,r,i,a):i(o,e,t);e-=s}return i(n,n.length,-1)}return n.dom==r?a(e,t):i(n,e,t)}class lP extends ll{constructor(e){super(),this.side=e}get length(){return 0}merge(){return!1}become(e){return e instanceof lP&&e.side==this.side}split(){return new lP(this.side)}sync(){if(!this.dom){let e=document.createElement("img");e.className="cm-widgetBuffer",e.setAttribute("aria-hidden","true"),this.setDOM(e)}}getSide(){return this.side}domAtPos(e){return lo.before(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){let t=this.dom.getBoundingClientRect(),n=function(e,t){let n=e.parent,r=n?n.children.indexOf(e):-1;for(;n&&r>=0;)if(t<0?r>0:r0?-1:1);return n&&n.topt.top?{left:t.left,right:t.right,top:n.top,bottom:n.bottom}:t}get overrideDOMText(){return ox.empty}}function lI(e,t,n){let r=0;for(let i=0;r=a.getSide())){if(n>i&&n0;r--){let n=t[r-1].dom;if(n.parentNode==e)return lo.after(n)}return new lo(e,0)}function lN(e,t,n){for(let r=0,i=0;i0?o>=t:o>t)&&(t0)){let e=0;if(o==r){if(0>=a.getSide())continue;e=n=-a.getSide()}let i=a.coordsAt(Math.max(0,t-r),n);return e&&i?s7(i,n<0):i}r=o}let r=e.dom.lastChild;if(!r)return e.dom.getBoundingClientRect();let i=s5(r);return i[i.length-1]||null}function l$(e,t){for(let n in e)"class"==n&&t.class?t.class+=" "+e.class:"style"==n&&t.style?t.style+=";"+e.style:t[n]=e[n];return t}function lL(e,t){if(e==t)return!0;if(!e||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(let i of n)if(-1==r.indexOf(i)||e[i]!==t[i])return!1;return!0}function lD(e,t,n){let r=null;if(t)for(let i in t)n&&i in n||e.removeAttribute(r=i);if(n)for(let i in n)t&&t[i]==n[i]||e.setAttribute(r=i,n[i]);return!!r}lS.prototype.children=lC.prototype.children=lP.prototype.children=ls;class lQ{eq(e){return!1}updateDOM(e){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return -1}ignoreEvent(e){return!0}get customView(){return null}destroy(e){}}var lM=((_P=lM||(lM={}))[_P.Text=0]="Text",_P[_P.WidgetBefore=1]="WidgetBefore",_P[_P.WidgetAfter=2]="WidgetAfter",_P[_P.WidgetRange=3]="WidgetRange",_P);class lF extends sS{constructor(e,t,n,r){super(),this.startSide=e,this.endSide=t,this.widget=n,this.spec=r}get heightRelevant(){return!1}static mark(e){return new lB(e)}static widget(e){let t=e.side||0,n=!!e.block;return t+=n?t>0?3e8:-4e8:t>0?1e8:-1e8,new lj(e,t,t,n,e.widget||null,!1)}static replace(e){let t=!!e.block,n,r;if(e.isBlockGap)n=-5e8,r=4e8;else{let{start:i,end:a}=lz(e,t);n=(i?t?-3e8:-1:5e8)-1,r=(a?t?2e8:1:-6e8)+1}return new lj(e,n,r,t,e.widget||null,!0)}static line(e){return new lU(e)}static set(e,t=!1){return sA.of(e,t)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}lF.none=sA.empty;class lB extends lF{constructor(e){let{start:t,end:n}=lz(e);super(t?-1:5e8,n?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){return this==e||e instanceof lB&&this.tagName==e.tagName&&this.class==e.class&&lL(this.attrs,e.attrs)}range(e,t=e){if(e>=t)throw RangeError("Mark decorations may not be empty");return super.range(e,t)}}lB.prototype.point=!1;class lU extends lF{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof lU&&lL(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}lU.prototype.mapMode=oB.TrackBefore,lU.prototype.point=!0;class lj extends lF{constructor(e,t,n,r,i,a){super(t,n,i,e),this.block=r,this.isReplace=a,this.mapMode=r?t<=0?oB.TrackBefore:oB.TrackAfter:oB.TrackDel}get type(){return this.startSide=5}eq(e){var t,n;return e instanceof lj&&((t=this.widget)==(n=e.widget)||!!(t&&n&&t.compare(n)))&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}function lz(e,t=!1){let{inclusiveStart:n,inclusiveEnd:r}=e;return null==n&&(n=e.inclusive),null==r&&(r=e.inclusive),{start:null!=n?n:t,end:null!=r?r:t}}function lW(e,t,n,r=0){let i=n.length-1;i>=0&&n[i]+r>=e?n[i]=Math.max(n[i],t):n.push(e,t)}lj.prototype.point=!0;class lZ extends ll{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,t,n,r,i,a){if(n){if(!(n instanceof lZ))return!1;this.dom||n.transferDOM(this)}return r&&this.setDeco(n?n.attrs:null),lh(this,e,t,n?n.children:[],i,a),!0}split(e){let t=new lZ;if(t.breakAfter=this.breakAfter,0==this.length)return t;let{i:n,off:r}=this.childPos(e);r&&(t.append(this.children[n].split(r),0),this.children[n].merge(r,this.children[n].length,null,!1,0,0),n++);for(let e=n;e0&&0==this.children[n-1].length;)this.children[--n].destroy();return this.children.length=n,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){lL(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){!function e(t,n,r){let i,{children:a}=t;r>0&&n instanceof lw&&a.length&&(i=a[a.length-1])instanceof lw&&i.mark.eq(n.mark)?e(i,n.children[0],r-1):(a.push(n),n.setParent(t)),t.length+=n.length}(this,e,t)}addLineDeco(e){let t=e.spec.attributes,n=e.spec.class;t&&(this.attrs=l$(t,this.attrs||{})),n&&(this.attrs=l$({class:n},this.attrs||{}))}domAtPos(e){return lI(this.dom,this.children,e)}reuseDOM(e){"DIV"==e.nodeName&&(this.setDOM(e),this.dirty|=6)}sync(e){var t;this.dom?4&this.dirty&&(la(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(lD(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e);let n=this.dom.lastChild;for(;n&&ll.get(n) instanceof lw;)n=n.lastChild;if(!n||!this.length||"BR"!=n.nodeName&&(null===(t=ll.get(n))||void 0===t?void 0:t.isEditable)==!1&&(!l_.ios||!this.children.some(e=>e instanceof lS))){let e=document.createElement("BR");e.cmIgnore=!0,this.dom.appendChild(e)}}measureTextSize(){if(0==this.children.length||this.length>20)return null;let e=0;for(let t of this.children){if(!(t instanceof lS))return null;let n=s5(t.dom);if(1!=n.length)return null;e+=n[0].width}return{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length}}coordsAt(e,t){return lN(this,e,t)}become(e){return!1}get type(){return lM.Text}static find(e,t){for(let n=0,r=0;n=t){if(i instanceof lZ)return i;if(a>t)break}r=a+i.breakAfter}return null}}class lq extends ll{constructor(e,t,n){super(),this.widget=e,this.length=t,this.type=n,this.breakAfter=0,this.prevWidget=null}merge(e,t,n,r,i,a){return(!n||n instanceof lq&&!!this.widget.compare(n.widget)&&(!(e>0)||!(i<=0))&&(!(t0;){if(this.textOff==this.text.length){let{value:t,lineBreak:n,done:r}=this.cursor.next(this.skip);if(this.skip=0,r)throw Error("Ran out of text content when drawing inline views");if(n){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer([]),this.curLine=null,e--;continue}this.text=t,this.textOff=0}let r=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(0,n)),this.getLine().append(lH(new lS(this.text.slice(this.textOff,this.textOff+r)),t),n),this.atCursorPos=!0,this.textOff+=r,e-=r,n=0}}span(e,t,n,r){this.buildText(t-e,n,r),this.pos=t,this.openStart<0&&(this.openStart=r)}point(e,t,n,r,i,a){if(this.disallowBlockEffectsFor[a]&&n instanceof lj){if(n.block)throw RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw RangeError("Decorations that replace line breaks may not be specified via plugins")}let o=t-e;if(n instanceof lj){if(n.block){let{type:e}=n;e!=lM.WidgetAfter||this.posCovered()||this.getLine(),this.addBlockWidget(new lq(n.widget||new lY("div"),o,e))}else{let a=lC.create(n.widget||new lY("span"),o,n.startSide),s=this.atCursorPos&&!a.isEditable&&i<=r.length&&(e0),l=!a.isEditable&&(ee.some(e=>e)});class l5{constructor(e,t="nearest",n="nearest",r=5,i=5){this.range=e,this.y=t,this.x=n,this.yMargin=r,this.xMargin=i}map(e){return e.empty?this:new l5(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin)}}let l9=sm.define({map:(e,t)=>e.map(t)});function l4(e,t,n){let r=e.facet(lJ);r.length?r[0](t):window.onerror?window.onerror(String(t),n,void 0,void 0,t):n?console.error(n+":",t):console.error(t)}let l3=oJ.define({combine:e=>!e.length||e[0]}),l8=0,l6=oJ.define();class l7{constructor(e,t,n,r){this.id=e,this.create=t,this.domEventHandlers=n,this.extension=r(this)}static define(e,t){let{eventHandlers:n,provide:r,decorations:i}=t||{};return new l7(l8++,e,n,e=>{let t=[l6.of(e)];return i&&t.push(ur.of(t=>{let n=t.plugin(e);return n?i(n):lF.none})),r&&t.push(r(e)),t})}static fromClass(e,t){return l7.define(t=>new e(t),t)}}class ue{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(t){if(l4(e.state,t,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(e){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(t){l4(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(null===(t=this.value)||void 0===t?void 0:t.destroy)try{this.value.destroy()}catch(t){l4(e.state,t,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}let ut=oJ.define(),un=oJ.define(),ur=oJ.define(),ui=oJ.define(),ua=oJ.define(),uo=oJ.define();class us{constructor(e,t,n,r){this.fromA=e,this.toA=t,this.fromB=n,this.toB=r}join(e){return new us(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,n=this;for(;t>0;t--){let r=e[t-1];if(!(r.fromA>n.toA)){if(r.toAu)break;i+=2}if(!s)return n;new us(s.fromA,s.toA,s.fromB,s.toB).addToSet(n),a=s.toA,o=s.toB}}}class ul{constructor(e,t,n){for(let r of(this.view=e,this.state=t,this.transactions=n,this.flags=0,this.startState=e.state,this.changes=oj.empty(this.startState.doc.length),n))this.changes=this.changes.compose(r.changes);let r=[];this.changes.iterChangedRanges((e,t,n,i)=>r.push(new us(e,t,n,i))),this.changedRanges=r;let i=e.hasFocus;i!=e.inputState.notifiedFocused&&(e.inputState.notifiedFocused=i,this.flags|=1)}static create(e,t,n){return new ul(e,t,n)}get viewportChanged(){return(4&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(10&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return 0==this.flags&&0==this.transactions.length}}var uu=((_I=uu||(uu={}))[_I.LTR=0]="LTR",_I[_I.RTL=1]="RTL",_I);let uc=uu.LTR,ud=uu.RTL;function uh(e){let t=[];for(let n=0;n=t){if(o.level==n)return a;(i<0||(0!=r?r<0?o.fromt:e[i].level>o.level))&&(i=a)}}if(i<0)throw RangeError("Index out of range");return i}}let uy=[];function uv(e){return[new ub(0,e,0)]}let ux="";class uT{constructor(e,t){this.points=e,this.text="",this.lineSeparator=t.facet(sk.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+="￿"}readRange(e,t){if(!e)return this;let n=e.parentNode;for(let r=e;;){this.findPointBefore(n,r),this.readNode(r);let e=r.nextSibling;if(e==t)break;let i=ll.get(r),a=ll.get(e);(i&&a?i.breakAfter:(i?i.breakAfter:uk(r))||uk(e)&&("BR"!=r.nodeName||r.cmIgnore))&&this.lineBreak(),r=e}return this.findPointBefore(n,t),this}readTextNode(e){let t=e.nodeValue;for(let n of this.points)n.node==e&&(n.pos=this.text.length+Math.min(n.offset,t.length));for(let n=0,r=this.lineSeparator?null:/\r\n?|\n/g;;){let i=-1,a=1,o;if(this.lineSeparator?(i=t.indexOf(this.lineSeparator,n),a=this.lineSeparator.length):(o=r.exec(t))&&(i=o.index,a=o[0].length),this.append(t.slice(n,i<0?t.length:i)),i<0)break;if(this.lineBreak(),a>1)for(let t of this.points)t.node==e&&t.pos>this.text.length&&(t.pos-=a-1);n=i+a}}readNode(e){if(e.cmIgnore)return;let t=ll.get(e),n=t&&t.overrideDOMText;if(null!=n){this.findPointInside(e,n.length);for(let e=n.iter();!e.next().done;)e.lineBreak?this.lineBreak():this.append(e.value)}else 3==e.nodeType?this.readTextNode(e):"BR"==e.nodeName?e.nextSibling&&this.lineBreak():1==e.nodeType&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let n of this.points)n.node==e&&e.childNodes[n.offset]==t&&(n.pos=this.text.length)}findPointInside(e,t){for(let n of this.points)(3==e.nodeType?n.node==e:e.contains(n.node))&&(n.pos=this.text.length+Math.min(t,n.offset))}}function uk(e){return 1==e.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}class u_{constructor(e,t){this.node=e,this.offset=t,this.pos=-1}}class uS extends ll{constructor(e){super(),this.view=e,this.compositionDeco=lF.none,this.decorations=[],this.dynamicDecorationMap=[],this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new lZ],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new us(0,0,0,e.state.doc.length)],0)}get root(){return this.view.root}get editorView(){return this.view}get length(){return this.view.state.doc.length}update(e){var t,n,r;let i,a=e.changedRanges;this.minWidth>0&&a.length&&(a.every(({fromA:e,toA:t})=>tthis.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.view.inputState.composing<0?this.compositionDeco=lF.none:(e.transactions.length||this.dirty)&&(this.compositionDeco=function(e,t){let n=uE(e);if(!n)return lF.none;let{from:r,to:i,node:a,text:o}=n,s=t.mapPos(r,1),l=Math.max(s,t.mapPos(i,-1)),{state:u}=e,c=3==a.nodeType?a.nodeValue:new uT([],u).readRange(a.firstChild,null).text;if(l-s{this.dom.style.height=this.view.viewState.contentHeight+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let e=l_.chrome||l_.ios?{node:n.selectionRange.focusNode,written:!1}:void 0;this.sync(e),this.dirty=0,e&&(e.written||n.selectionRange.focusNode!=e.node)&&(this.forceSelection=!0),this.dom.style.height=""});let r=[];if(this.view.viewport.from||this.view.viewport.to=0?e[t]:null;if(!r)break;let{fromA:i,toA:a,fromB:o,toB:s}=r,{content:l,breakAtStart:u,openStart:c,openEnd:d}=lG.build(this.view.state.doc,o,s,this.decorations,this.dynamicDecorationMap),{i:h,off:p}=n.findPos(a,1),{i:f,off:m}=n.findPos(i,-1);ld(this,f,m,h,p,l,u,c,d)}}updateSelection(e=!1,t=!1){var n;if(e&&this.view.observer.readSelectionRange(),!(t||this.mayControlSelection())||l_.ios&&this.view.inputState.rapidCompositionStart)return;let r=this.forceSelection;this.forceSelection=!1;let i=this.view.state.selection.main,a=this.domAtPos(i.anchor),o=i.empty?a:this.domAtPos(i.head);if(l_.gecko&&i.empty&&1==(n=a).node.nodeType&&n.node.firstChild&&(0==n.offset||"false"==n.node.childNodes[n.offset-1].contentEditable)&&(n.offset==n.node.childNodes.length||"false"==n.node.childNodes[n.offset].contentEditable)){let e=document.createTextNode("");this.view.observer.ignore(()=>a.node.insertBefore(e,a.node.childNodes[a.offset]||null)),a=o=new lo(e,0),r=!0}let s=this.view.observer.selectionRange;!r&&s.focusNode&&s9(a.node,a.offset,s.anchorNode,s.anchorOffset)&&s9(o.node,o.offset,s.focusNode,s.focusOffset)||(this.view.observer.ignore(()=>{l_.android&&l_.chrome&&this.dom.contains(s.focusNode)&&function(e,t){for(let n=e;n&&n!=t;n=n.assignedSlot||n.parentNode)if(1==n.nodeType&&"false"==n.contentEditable)return!0;return!1}(s.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let e=s1(this.root);if(i.empty){if(l_.gecko){var t,n;let e=(t=a.node,n=a.offset,1!=t.nodeType?0:(n&&"false"==t.childNodes[n-1].contentEditable?1:0)|(ni.head&&([a,o]=[o,a]),t.setEnd(o.node,o.offset),t.setStart(a.node,a.offset),e.removeAllRanges(),e.addRange(t)}}),this.view.observer.setSelectionRange(a,o)),this.impreciseAnchor=a.precise?null:new lo(s.anchorNode,s.anchorOffset),this.impreciseHead=o.precise?null:new lo(s.focusNode,s.focusOffset)}enforceCursorAssoc(){if(this.compositionDeco.size)return;let e=this.view.state.selection.main,t=s1(this.root);if(!e.empty||!e.assoc||!t.modify)return;let n=lZ.find(this,e.head);if(!n)return;let r=n.posAtStart;if(e.head==r||e.head==r+n.length)return;let i=this.coordsAt(e.head,-1),a=this.coordsAt(e.head,1);if(!i||!a||i.bottom>a.top)return;let o=this.domAtPos(e.head+e.assoc);t.collapse(o.node,o.offset),t.modify("move",e.assoc<0?"forward":"backward","lineboundary")}mayControlSelection(){return this.view.state.facet(l3)?this.root.activeElement==this.dom:s2(this.dom,this.view.observer.selectionRange)}nearest(e){for(let t=e;t;){let e=ll.get(t);if(e&&e.rootView==this)return e;t=t.parentNode}return null}posFromDOM(e,t){let n=this.nearest(e);if(!n)throw RangeError("Trying to find position for a DOM position outside of the document");return n.localPosFromDOM(e,t)+n.posAtStart}domAtPos(e){let{i:t,off:n}=this.childCursor().findPos(e,-1);for(;ta||e==a&&i.type!=lM.WidgetBefore&&i.type!=lM.WidgetAfter&&(!r||2==t||this.children[r-1].breakAfter||this.children[r-1].type==lM.WidgetBefore&&t>-2))return i.coordsAt(e-a,t);n=a}}measureVisibleLineHeights(e){let t=[],{from:n,to:r}=e,i=this.view.contentDOM.clientWidth,a=i>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,o=-1,s=this.view.textDirection==uu.LTR;for(let e=0,l=0;lr)break;if(e>=n){let n=u.dom.getBoundingClientRect();if(t.push(n.height),a){let t=u.dom.lastChild,r=t?s5(t):[];if(r.length){let t=r[r.length-1],a=s?t.right-n.left:n.right-t.left;a>o&&(o=a,this.minWidth=i,this.minWidthFrom=e,this.minWidthTo=c)}}}e=c+u.breakAfter}return t}textDirectionAt(e){let{i:t}=this.childPos(e,1);return"rtl"==getComputedStyle(this.children[t].dom).direction?uu.RTL:uu.LTR}measureTextSize(){for(let e of this.children)if(e instanceof lZ){let t=e.measureTextSize();if(t)return t}let e=document.createElement("div"),t,n;return e.className="cm-line",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let r=s5(e.firstChild)[0];t=e.getBoundingClientRect().height,n=r?r.width/27:7,e.remove()}),{lineHeight:t,charWidth:n}}childCursor(e=this.length){let t=this.children.length;return t&&(e-=this.children[--t].length),new lc(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let n=0,r=0;;r++){let i=r==t.viewports.length?null:t.viewports[r],a=i?i.from-1:this.length;if(a>n){let r=t.lineBlockAt(a).bottom-t.lineBlockAt(n).top;e.push(lF.replace({widget:new uw(r),block:!0,inclusive:!0,isBlockGap:!0}).range(n,a))}if(!i)break;n=i.to+1}return lF.set(e)}updateDeco(){let e=this.view.state.facet(ur).map((e,t)=>(this.dynamicDecorationMap[t]="function"==typeof e)?e(this.view):e);for(let t=e.length;tt.anchor?-1:1),r;if(!n)return;!t.empty&&(r=this.coordsAt(t.anchor,t.anchor>t.head?-1:1))&&(n={left:Math.min(n.left,r.left),top:Math.min(n.top,r.top),right:Math.max(n.right,r.right),bottom:Math.max(n.bottom,r.bottom)});let i=0,a=0,o=0,s=0;for(let e of this.view.state.facet(ua).map(e=>e(this.view)))if(e){let{left:t,right:n,top:r,bottom:l}=e;null!=t&&(i=Math.max(i,t)),null!=n&&(a=Math.max(a,n)),null!=r&&(o=Math.max(o,r)),null!=l&&(s=Math.max(s,l))}let l={left:n.left-i,top:n.top-o,right:n.right+a,bottom:n.bottom+s};!function(e,t,n,r,i,a,o,s){let l=e.ownerDocument,u=l.defaultView;for(let c=e;c;)if(1==c.nodeType){let e,d=c==l.body;if(d)e={left:0,right:u.innerWidth,top:0,bottom:u.innerHeight};else{if(c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.parentNode;continue}let t=c.getBoundingClientRect();e={left:t.left,right:t.left+c.clientWidth,top:t.top,bottom:t.top+c.clientHeight}}let h=0,p=0;if("nearest"==i)t.top0&&t.bottom>e.bottom+p&&(p=t.bottom-e.bottom+p+o)):t.bottom>e.bottom&&(p=t.bottom-e.bottom+o,n<0&&t.top-p0&&t.right>e.right+h&&(h=t.right-e.right+h+a)):t.right>e.right&&(h=t.right-e.right+a,n<0&&t.left0&&n<=0)t=s8(e=e.childNodes[t-1]);else{if(1!=e.nodeType||!(t=0))return null;e=e.childNodes[t],t=0}}}class uR{constructor(){this.changes=[]}compareRange(e,t){lW(e,t,this.changes)}comparePoint(e,t){lW(e,t,this.changes)}}function uP(e,t){return e.topt.top+1}function uI(e,t){return te.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function u$(e,t,n){let r=e.nodeValue.length,i=-1,a=1e9,o=0;for(let s=0;sn?u.top-n:n-u.bottom)-1;if(u.left-1<=t&&u.right+1>=t&&c=(u.left+u.right)/2,r=n;if((l_.chrome||l_.gecko)&&lr(e,s).getBoundingClientRect().left==u.right&&(r=!n),c<=0)return{node:e,offset:s+(r?1:0)};i=s+(r?1:0),a=c}}}return{node:e,offset:i>-1?i:o>0?e.nodeValue.length:0}}function uL(e,{x:t,y:n},r,i=-1){var a;let o=e.contentDOM.getBoundingClientRect(),s=o.top+e.viewState.paddingTop,l,{docHeight:u}=e.viewState,c=n-s;if(c<0)return 0;if(c>u)return e.state.doc.length;for(let t=e.defaultLineHeight/2,n=!1;(l=e.elementAtHeight(c)).type!=lM.Text;)for(;!((c=i>0?l.bottom+t:l.top-t)>=0)||!(c<=u);){if(n)return r?null:0;n=!0,i=-i}n=s+c;let d=l.from;if(de.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:r?null:uD(e,o,l,t,n);let h=e.dom.ownerDocument,p=e.root.elementFromPoint?e.root:h,f=p.elementFromPoint(t,n);f&&!e.contentDOM.contains(f)&&(f=null),!f&&(t=Math.max(o.left+1,Math.min(o.right-1,t)),(f=p.elementFromPoint(t,n))&&!e.contentDOM.contains(f)&&(f=null));let m,g=-1;if(f&&(null===(a=e.docView.nearest(f))||void 0===a?void 0:a.isEditable)!=!1){if(h.caretPositionFromPoint){let e=h.caretPositionFromPoint(t,n);e&&({offsetNode:m,offset:g}=e)}else if(h.caretRangeFromPoint){let e=h.caretRangeFromPoint(t,n);e&&({startContainer:m,startOffset:g}=e,l_.safari&&function(e,t,n){let r;if(3!=e.nodeType||t!=(r=e.nodeValue.length))return!1;for(let t=e.nextSibling;t;t=t.nextSibling)if(1!=t.nodeType||"BR"!=t.nodeName)return!1;return lr(e,r-1,r).getBoundingClientRect().left>n}(m,g,t)&&(m=void 0))}}if(!m||!e.docView.dom.contains(m)){let r=lZ.find(e.docView,d);if(!r)return c>l.top+l.height/2?l.to:l.from;({node:m,offset:g}=function e(t,n,r){let i,a,o,s,l,u,c,d;for(let f=t.firstChild;f;f=f.nextSibling){let t=s5(f);for(let m=0;mn?h.left-n:Math.max(0,n-h.right),b=(p=g).top>r?p.top-r:Math.max(0,r-p.bottom);if(0==O&&0==b)return 3==f.nodeType?u$(f,n,r):e(f,n,r);(!i||s>b||s==b&&o>O)&&(i=f,a=g,o=O,s=b),0==O?r>g.bottom&&(!c||c.bottomg.top)&&(u=f,d=g):c&&uP(c,g)?c=uN(c,g.bottom):d&&uP(d,g)&&(d=uI(d,g.top))}}if(c&&c.bottom>=r?(i=l,a=c):d&&d.top<=r&&(i=u,a=d),!i)return{node:t,offset:0};let f=Math.max(a.left,Math.min(a.right,n));if(3==i.nodeType)return u$(i,f,r);if(!o&&"true"==i.contentEditable)return e(i,f,r);let m=Array.prototype.indexOf.call(t.childNodes,i)+(n>=(a.left+a.right)/2?1:0);return{node:t,offset:m}}(r.dom,t,n))}return e.docView.posFromDOM(m,g)}function uD(e,t,n,r,i){let a=Math.round((r-t.left)*e.defaultCharacterWidth);e.lineWrapping&&n.height>1.5*e.defaultLineHeight&&(a+=Math.floor((i-n.top)/e.defaultLineHeight)*e.viewState.heightOracle.lineLength);let o=e.state.sliceDoc(n.from,n.to);return n.from+function(e,t,n,r){for(let r=0,i=0;;){if(i>=t)return r;if(r==e.length)break;i+=9==e.charCodeAt(r)?n-i%n:1,r=oP(e,r)}return e.length}(o,a,e.state.tabSize)}function uQ(e,t,n,r){let i=e.state.doc.lineAt(t.head),a=e.bidiSpans(i),o=e.textDirectionAt(i.from);for(let s=t,l=null;;){let t=function(e,t,n,r,i){var a;let o=r.head-e.from,s=-1;if(0==o){if(!i||!e.length)return null;t[0].level!=n&&(o=t[0].side(!1,n),s=0)}else if(o==e.length){if(i)return null;let e=t[t.length-1];e.level!=n&&(o=e.side(!0,n),s=t.length-1)}s<0&&(s=ub.find(t,o,null!==(a=r.bidiLevel)&&void 0!==a?a:-1,r.assoc));let l=t[s];o==l.side(i,n)&&(o=(l=t[s+=i?1:-1]).side(!i,n));let u=i==(l.dir==n),c=oP(e.text,o,u);if(ux=e.text.slice(Math.min(o,c),Math.max(o,c)),c!=l.side(i,n))return oX.cursor(c+e.from,u?-1:1,l.level);let d=s==(i?t.length-1:0)?null:t[s+(i?1:-1)];return d||l.level==n?d&&d.levelt(e));for(;;){let e=!1;for(let i of r)i.between(n.from-1,n.from+1,(r,i,a)=>{n.from>r&&n.fromn.from?oX.cursor(r,1):oX.cursor(i,-1),e=!0)});if(!e)return n}}class uF{constructor(e){for(let t in this.lastKeyCode=0,this.lastKeyTime=0,this.chromeScrollHack=-1,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.registeredEvents=[],this.customHandlers=[],this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.rapidCompositionStart=!1,this.mouseSelection=null,uW){let n=uW[t];e.contentDOM.addEventListener(t,r=>{!(!uz(e,r)||this.ignoreDuringComposition(r))&&("keydown"==t&&this.keydown(e,r)||(this.mustFlushObserver(r)&&e.observer.forceFlush(),this.runCustomHandlers(t,e,r)?r.preventDefault():n(e,r)))}),this.registeredEvents.push(t)}l_.chrome&&l_.chrome_version>=102&&e.scrollDOM.addEventListener("wheel",()=>{this.chromeScrollHack<0?e.contentDOM.style.pointerEvents="none":window.clearTimeout(this.chromeScrollHack),this.chromeScrollHack=setTimeout(()=>{this.chromeScrollHack=-1,e.contentDOM.style.pointerEvents=""},100)},{passive:!0}),this.notifiedFocused=e.hasFocus,l_.safari&&e.contentDOM.addEventListener("input",()=>null)}setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}ensureHandlers(e,t){var n;let r;for(let i of(this.customHandlers=[],t))if(r=null===(n=i.update(e).spec)||void 0===n?void 0:n.domEventHandlers)for(let t in this.customHandlers.push({plugin:i.value,handlers:r}),r)0>this.registeredEvents.indexOf(t)&&"scroll"!=t&&(this.registeredEvents.push(t),e.contentDOM.addEventListener(t,n=>{uz(e,n)&&this.runCustomHandlers(t,e,n)&&n.preventDefault()}))}runCustomHandlers(e,t,n){for(let r of this.customHandlers){let i=r.handlers[e];if(i)try{if(i.call(r.plugin,n,t)||n.defaultPrevented)return!0}catch(e){l4(t.state,e)}}return!1}runScrollHandlers(e,t){for(let n of this.customHandlers){let r=n.handlers.scroll;if(r)try{r.call(n.plugin,t,e)}catch(t){l4(e.state,t)}}}keydown(e,t){let n;return this.lastKeyCode=t.keyCode,this.lastKeyTime=Date.now(),!!(9==t.keyCode&&Date.now()e.keyCode==t.keyCode)))&&!(t.ctrlKey||t.altKey||t.metaKey)&&!t.synthetic&&(this.pendingIOSKey=n,setTimeout(()=>this.flushIOSKey(e),250),!0))}flushIOSKey(e){let t=this.pendingIOSKey;return!!t&&(this.pendingIOSKey=void 0,li(e.contentDOM,t.key,t.keyCode))}ignoreDuringComposition(e){return!!/^key/.test(e.type)&&(this.composing>0||!!(l_.safari&&Date.now()-this.compositionEndedAt<100)&&(this.compositionEndedAt=0,!0))}mustFlushObserver(e){return"keydown"==e.type&&229!=e.keyCode||"compositionend"==e.type&&!l_.ios}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}let uB=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],uU=[16,17,18,20,91,92,224,225];class uj{constructor(e,t,n,r){let i,a;this.view=e,this.style=n,this.mustSelect=r,this.lastEvent=t;let o=e.contentDOM.ownerDocument;o.addEventListener("mousemove",this.move=this.move.bind(this)),o.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(sk.allowMultipleSelections)&&((i=e.state.facet(lX)).length?i[0](t):l_.mac?t.metaKey:t.ctrlKey),this.dragMove=(a=e.state.facet(lV)).length?a[0](t):l_.mac?!t.altKey:!t.ctrlKey,this.dragging=!!function(e,t){let{main:n}=e.state.selection;if(n.empty)return!1;let r=s1(e.root);if(0==r.rangeCount)return!0;let i=r.getRangeAt(0).getClientRects();for(let e=0;e=t.clientX&&n.top<=t.clientY&&n.bottom>=t.clientY)return!0}return!1}(e,t)&&1==u2(t)&&null,!1===this.dragging&&(t.preventDefault(),this.select(t))}move(e){if(0==e.buttons)return this.destroy();!1===this.dragging&&this.select(this.lastEvent=e)}up(e){null==this.dragging&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=null}select(e){let t=this.style.get(e,this.extend,this.multiple);(this.mustSelect||!t.eq(this.view.state.selection)||t.main.assoc!=this.view.state.selection.main.assoc)&&this.view.dispatch({selection:t,userEvent:"select.pointer",scrollIntoView:!0}),this.mustSelect=!1}update(e){e.docChanged&&this.dragging&&(this.dragging=this.dragging.map(e.changes)),this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}}function uz(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target,r;n!=e.contentDOM;n=n.parentNode)if(!n||11==n.nodeType||(r=ll.get(n))&&r.ignoreEvent(t))return!1;return!0}let uW=Object.create(null),uZ=l_.ie&&l_.ie_version<15||l_.ios&&l_.webkit_version<604;function uq(e,t){let{state:n}=e,r,i=1,a=n.toText(t),o=a.lines==n.selection.ranges.length;if(null!=u9&&n.selection.ranges.every(e=>e.empty)&&u9==a.toString()){let e=-1;r=n.changeByRange(r=>{let s=n.doc.lineAt(r.from);if(s.from==e)return{range:r};e=s.from;let l=n.toText((o?a.line(i++).text:t)+n.lineBreak);return{changes:{from:s.from,insert:l},range:oX.cursor(r.from+l.length)}})}else r=o?n.changeByRange(e=>{let t=a.line(i++);return{changes:{from:e.from,to:e.to,insert:t.text},range:oX.cursor(e.from+t.length)}}):n.replaceSelection(a);e.dispatch(r,{userEvent:"input.paste",scrollIntoView:!0})}uW.keydown=(e,t)=>{e.inputState.setSelectionOrigin("select"),27==t.keyCode?e.inputState.lastEscPress=Date.now():0>uU.indexOf(t.keyCode)&&(e.inputState.lastEscPress=0)};let uG=0;function uH(e,t,n,r){if(1==r)return oX.cursor(t,n);if(2==r)return function(e,t,n=1){let r=e.charCategorizer(t),i=e.doc.lineAt(t),a=t-i.from;if(0==i.length)return oX.cursor(t);0==a?n=1:a==i.length&&(n=-1);let o=a,s=a;n<0?o=oP(i.text,a,!1):s=oP(i.text,a);let l=r(i.text.slice(o,s));for(;o>0;){let e=oP(i.text,o,!1);if(r(i.text.slice(e,o))!=l)break;o=e}for(;s{uG=Date.now(),e.inputState.setSelectionOrigin("select.pointer")},uW.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")},uW.mousedown=(e,t)=>{let n,r,i,a,o;if(e.observer.flush(),uG>Date.now()-2e3&&1==u2(t))return;let s=null;for(let n of e.state.facet(lK))if(s=n(e,t))break;if(s||0!=t.button||(n=uV(e,t),r=u2(t),i=e.state.selection,a=n,o=t,s={update(e){e.docChanged&&(n&&(n.pos=e.changes.mapPos(n.pos)),i=i.map(e.changes),o=null)},get(t,s,l){let u;if(o&&t.clientX==o.clientX&&t.clientY==o.clientY?u=a:(u=a=uV(e,t),o=t),!u||!n)return i;let c=uH(e,u.pos,u.bias,r);if(n.pos!=u.pos&&!s){let t=uH(e,n.pos,n.bias,r),i=Math.min(t.from,c.from),a=Math.max(t.to,c.to);c=iln(e.contentDOM)),e.inputState.startMouseSelection(new uj(e,t,s,n))}};let uY=(e,t)=>e>=t.top&&e<=t.bottom,uX=(e,t,n)=>uY(t,n)&&e>=n.left&&e<=n.right;function uV(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:n,bias:function(e,t,n,r){let i=lZ.find(e.docView,t);if(!i)return 1;let a=t-i.posAtStart;if(0==a)return 1;if(a==i.length)return -1;let o=i.coordsAt(a,-1);if(o&&uX(n,r,o))return -1;let s=i.coordsAt(a,1);return s&&uX(n,r,s)?1:o&&uY(r,o)?-1:1}(e,n,t.clientX,t.clientY)}}let uK=l_.ie&&l_.ie_version<=11,uJ=null,u1=0,u0=0;function u2(e){if(!uK)return e.detail;let t=uJ,n=u0;return uJ=e,u0=Date.now(),u1=!t||n>Date.now()-400&&2>Math.abs(t.clientX-e.clientX)&&2>Math.abs(t.clientY-e.clientY)?(u1+1)%3:1}function u5(e,t,n,r){if(!n)return;let i=e.posAtCoords({x:t.clientX,y:t.clientY},!1);t.preventDefault();let{mouseSelection:a}=e.inputState,o=r&&a&&a.dragging&&a.dragMove?{from:a.dragging.from,to:a.dragging.to}:null,s={from:i,insert:n},l=e.state.changes(o?[o,s]:s);e.focus(),e.dispatch({changes:l,selection:{anchor:l.mapPos(i,-1),head:l.mapPos(i,1)},userEvent:o?"move.drop":"input.drop"})}uW.dragstart=(e,t)=>{let{selection:{main:n}}=e.state,{mouseSelection:r}=e.inputState;r&&(r.dragging=n),t.dataTransfer&&(t.dataTransfer.setData("Text",e.state.sliceDoc(n.from,n.to)),t.dataTransfer.effectAllowed="copyMove")},uW.drop=(e,t)=>{if(!t.dataTransfer)return;if(e.state.readOnly)return t.preventDefault();let n=t.dataTransfer.files;if(n&&n.length){t.preventDefault();let r=Array(n.length),i=0,a=()=>{++i==n.length&&u5(e,t,r.filter(e=>null!=e).join(e.state.lineBreak),!1)};for(let e=0;e{/[\x00-\x08\x0e-\x1f]{2}/.test(t.result)||(r[e]=t.result),a()},t.readAsText(n[e])}}else u5(e,t,t.dataTransfer.getData("Text"),!0)},uW.paste=(e,t)=>{if(e.state.readOnly)return t.preventDefault();e.observer.flush();let n=uZ?null:t.clipboardData;n?(uq(e,n.getData("text/plain")),t.preventDefault()):function(e){let t=e.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout(()=>{e.focus(),n.remove(),uq(e,n.value)},50)}(e)};let u9=null;function u4(e){setTimeout(()=>{e.hasFocus!=e.inputState.notifiedFocused&&e.update([])},10)}function u3(e,t){if(e.docView.compositionDeco.size){e.inputState.rapidCompositionStart=t;try{e.update([])}finally{e.inputState.rapidCompositionStart=!1}}}uW.copy=uW.cut=(e,t)=>{let{text:n,ranges:r,linewise:i}=function(e){let t=[],n=[],r=!1;for(let r of e.selection.ranges)r.empty||(t.push(e.sliceDoc(r.from,r.to)),n.push(r));if(!t.length){let i=-1;for(let{from:r}of e.selection.ranges){let a=e.doc.lineAt(r);a.number>i&&(t.push(a.text),n.push({from:a.from,to:Math.min(e.doc.length,a.to+1)})),i=a.number}r=!0}return{text:t.join(e.lineBreak),ranges:n,linewise:r}}(e.state);if(!n&&!i)return;u9=i?n:null;let a=uZ?null:t.clipboardData;a?(t.preventDefault(),a.clearData(),a.setData("text/plain",n)):function(e,t){let n=e.dom.parentNode;if(!n)return;let r=n.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.value=t,r.focus(),r.selectionEnd=t.length,r.selectionStart=0,setTimeout(()=>{r.remove(),e.focus()},50)}(e,n),"cut"!=t.type||e.state.readOnly||e.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"})},uW.focus=u4,uW.blur=e=>{e.observer.clearSelectionRange(),u4(e)},uW.compositionstart=uW.compositionupdate=e=>{null==e.inputState.compositionFirstChange&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0,e.docView.compositionDeco.size&&(e.observer.flush(),u3(e,!0)))},uW.compositionend=e=>{e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionFirstChange=null,setTimeout(()=>{e.inputState.composing<0&&u3(e,!1)},50)},uW.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()},uW.beforeinput=(e,t)=>{var n;let r;if(l_.chrome&&l_.android&&(r=uB.find(e=>e.inputType==t.inputType))&&(e.observer.delayAndroidKey(r.key,r.keyCode),"Backspace"==r.key||"Delete"==r.key)){let t=(null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0;setTimeout(()=>{var n;((null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0)>t+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())},100)}};let u8=["pre-wrap","normal","pre-line","break-spaces"];class u6{constructor(){this.doc=ox.empty,this.lineWrapping=!1,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.lineLength=30,this.heightChanged=!1}heightForGap(e,t){let n=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(n+=Math.ceil((t-e-n*this.lineLength*.5)/this.lineLength)),this.lineHeight*n}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return u8.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let n=0;n-1,o=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=a;if(this.lineWrapping=a,this.lineHeight=t,this.charWidth=n,this.lineLength=r,o){this.heightSamples={};for(let e=0;e0}set outdated(e){this.flags=(e?2:0)|-3&this.flags}setHeight(e,t){this.height!=t&&(Math.abs(this.height-t)>.001&&(e.heightChanged=!0),this.height=t)}replace(e,t,n){return cn.of(n)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,n,r){let i=this;for(let a=r.length-1;a>=0;a--){let{fromA:o,toA:s,fromB:l,toB:u}=r[a],c=i.lineAt(o,ct.ByPosNoHeight,t,0,0),d=c.to>=s?c:i.lineAt(s,ct.ByPosNoHeight,t,0,0);for(u+=d.to-s,s=d.to;a>0&&c.from<=r[a-1].toA;)o=r[a-1].fromA,l=r[a-1].fromB,a--,o2*i){let i=e[t-1];i.break?e.splice(--t,1,i.left,null,i.right):e.splice(--t,1,i.left,i.right),n+=1+i.break,r-=i.size}else if(i>2*r){let t=e[n];t.break?e.splice(n,1,t.left,null,t.right):e.splice(n,1,t.left,t.right),n+=2+t.break,i-=t.size}else break}else if(r=i&&a(this.blockAt(0,n,r,i))}updateHeight(e,t=0,n=!1,r){return r&&r.from<=t&&r.more&&this.setHeight(e,r.heights[r.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class ci extends cr{constructor(e,t){super(e,t,lM.Text),this.collapsed=0,this.widgetHeight=0}replace(e,t,n){let r=n[0];return 1==n.length&&(r instanceof ci||r instanceof ca&&4&r.flags)&&10>Math.abs(this.length-r.length)?(r instanceof ca?r=new ci(r.length,this.height):r.height=this.height,this.outdated||(r.outdated=!1),r):cn.of(n)}updateHeight(e,t=0,n=!1,r){return r&&r.from<=t&&r.more?this.setHeight(e,r.heights[r.index++]):(n||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class ca extends cn{constructor(e){super(e,0)}lines(e,t){let n=e.lineAt(t).number,r=e.lineAt(t+this.length).number;return{firstLine:n,lastLine:r,lineHeight:this.height/(r-n+1)}}blockAt(e,t,n,r){let{firstLine:i,lastLine:a,lineHeight:o}=this.lines(t,r),s=Math.max(0,Math.min(a-i,Math.floor((e-n)/o))),{from:l,length:u}=t.line(i+s);return new ce(l,u,n+o*s,o,lM.Text)}lineAt(e,t,n,r,i){if(t==ct.ByHeight)return this.blockAt(e,n,r,i);if(t==ct.ByPosNoHeight){let{from:t,to:r}=n.lineAt(e);return new ce(t,r-t,0,0,lM.Text)}let{firstLine:a,lineHeight:o}=this.lines(n,i),{from:s,length:l,number:u}=n.lineAt(e);return new ce(s,l,r+o*(u-a),o,lM.Text)}forEachLine(e,t,n,r,i,a){let{firstLine:o,lineHeight:s}=this.lines(n,i);for(let l=Math.max(e,i),u=Math.min(i+this.length,t);l<=u;){let t=n.lineAt(l);l==e&&(r+=s*(t.number-o)),a(new ce(t.from,t.length,r,s,lM.Text)),r+=s,l=t.to+1}}replace(e,t,n){let r=this.length-t;if(r>0){let e=n[n.length-1];e instanceof ca?n[n.length-1]=new ca(e.length+r):n.push(null,new ca(r-1))}if(e>0){let t=n[0];t instanceof ca?n[0]=new ca(e+t.length):n.unshift(new ca(e-1),null)}return cn.of(n)}decomposeLeft(e,t){t.push(new ca(e-1),null)}decomposeRight(e,t){t.push(null,new ca(this.length-e-1))}updateHeight(e,t=0,n=!1,r){let i=t+this.length;if(r&&r.from<=t+this.length&&r.more){let n=[],a=Math.max(t,r.from),o=-1,s=e.heightChanged;for(r.from>t&&n.push(new ca(r.from-t-1).updateHeight(e,t));a<=i&&r.more;){let t=e.doc.lineAt(a).length;n.length&&n.push(null);let i=r.heights[r.index++];-1==o?o=i:Math.abs(i-o)>=.001&&(o=-2);let s=new ci(t,i);s.outdated=!1,n.push(s),a+=t+1}a<=i&&n.push(null,new ca(i-a).updateHeight(e,a));let l=cn.of(n);return e.heightChanged=s||o<0||Math.abs(l.height-this.height)>=.001||Math.abs(o-this.lines(e.doc,t).lineHeight)>=.001,l}return(n||this.outdated)&&(this.setHeight(e,e.heightForGap(t,t+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}}class co extends cn{constructor(e,t,n){super(e.length+t+n.length,e.height+n.height,t|(e.outdated||n.outdated?2:0)),this.left=e,this.right=n,this.size=e.size+n.size}get break(){return 1&this.flags}blockAt(e,t,n,r){let i=n+this.left.height;return eo))return l;let u=t==ct.ByPosNoHeight?ct.ByPosNoHeight:ct.ByPos;return s?l.join(this.right.lineAt(o,u,n,a,o)):this.left.lineAt(o,u,n,r,i).join(l)}forEachLine(e,t,n,r,i,a){let o=r+this.left.height,s=i+this.left.length+this.break;if(this.break)e=s&&this.right.forEachLine(e,t,n,o,s,a);else{let l=this.lineAt(s,ct.ByPos,n,r,i);e=e&&l.from<=t&&a(l),t>l.to&&this.right.forEachLine(l.to+1,t,n,o,s,a)}}replace(e,t,n){let r=this.left.length+this.break;if(tthis.left.length)return this.balanced(this.left,this.right.replace(e-r,t-r,n));let i=[];e>0&&this.decomposeLeft(e,i);let a=i.length;for(let e of n)i.push(e);if(e>0&&cs(i,a-1),t=++n&&t.push(null),e>n&&this.right.decomposeLeft(e-n,t)}decomposeRight(e,t){let n=this.left.length,r=n+this.break;if(e>=r)return this.right.decomposeRight(e-r,t);e2*t.size||t.size>2*e.size?cn.of(this.break?[e,null,t]:[e,t]):(this.left=e,this.right=t,this.height=e.height+t.height,this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,n=!1,r){let{left:i,right:a}=this,o=t+i.length+this.break,s=null;return(r&&r.from<=t+i.length&&r.more?s=i=i.updateHeight(e,t,n,r):i.updateHeight(e,t,n),r&&r.from<=o+a.length&&r.more?s=a=a.updateHeight(e,o,n,r):a.updateHeight(e,o,n),s)?this.balanced(i,a):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function cs(e,t){let n,r;null==e[t]&&(n=e[t-1])instanceof ca&&(r=e[t+1])instanceof ca&&e.splice(t-1,3,new ca(n.length+1+r.length))}class cl{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let e=Math.min(t,this.lineEnd),n=this.nodes[this.nodes.length-1];n instanceof ci?n.length+=e-this.pos:(e>this.pos||!this.isCovered)&&this.nodes.push(new ci(e-this.pos,-1)),this.writtenTo=e,t>e&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,n){if(e=5)&&this.addLineDeco(r,i)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenToe&&this.nodes.push(new ci(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let n=new ca(t-e);return this.oracle.doc.lineAt(e).to==t&&(n.flags|=4),n}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof ci)return e;let t=new ci(0,-1);return this.nodes.push(t),t}addBlock(e){this.enterLine(),e.type!=lM.WidgetAfter||this.isCovered||this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,e.type!=lM.WidgetBefore&&(this.covering=e)}addLineDeco(e,t){let n=this.ensureLine();n.length+=t,n.collapsed+=t,n.widgetHeight=Math.max(n.widgetHeight,e),this.writtenTo=this.pos=this.pos+t}finish(e){let t=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||t instanceof ci||this.isCovered?(this.writtenToe.clientHeight||e.scrollWidth>e.clientWidth)&&"visible"!=n.overflow){let t=e.getBoundingClientRect();r=Math.max(r,t.left),i=Math.min(i,t.right),a=Math.max(a,t.top),o=Math.min(o,t.bottom)}t="absolute"==n.position||"fixed"==n.position?e.offsetParent:e.parentNode}else if(11==t.nodeType)t=t.host;else break;return{left:r-n.left,right:Math.max(r,i)-n.left,top:a-(n.top+t),bottom:Math.max(a,o)-(n.top+t)}}function cd(e,t){let n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}class ch{constructor(e,t,n){this.from=e,this.to=t,this.size=n}static same(e,t){if(e.length!=t.length)return!1;for(let n=0;n"function"!=typeof e),this.heightMap=cn.empty().applyChanges(this.stateDeco,ox.empty,this.heightOracle.setDoc(e.doc),[new us(0,0,0,e.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=lF.set(this.lineGaps.map(e=>e.draw(!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let n=0;n<=1;n++){let r=n?t.head:t.anchor;if(!e.some(({from:e,to:t})=>r>=e&&r<=t)){let{from:t,to:n}=this.lineBlockAt(r);e.push(new cm(t,n))}}this.viewports=e.sort((e,t)=>e.from-t.from),this.scaler=this.heightMap.height<=7e6?cy:new cv(this.heightOracle.doc,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.state.doc,0,0,e=>{this.viewportLines.push(1==this.scaler.scale?e:cx(e,this.scaler))})}update(e,t=null){var n,r;let i;this.state=e.state;let a=this.stateDeco;this.stateDeco=this.state.facet(ur).filter(e=>"function"!=typeof e);let o=e.changedRanges,s=us.extendWithRanges(o,(n=this.stateDeco,r=e?e.changes:oj.empty(this.state.doc.length),i=new cu,sA.compare(a,n,r,i,0),i.changes)),l=this.heightMap.height;this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),s),this.heightMap.height!=l&&(e.flags|=2);let u=s.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.headu.to)||!this.viewportIsAppropriate(u))&&(u=this.getViewport(0,t));let c=!e.changes.empty||2&e.flags||u.from!=this.viewport.from||u.to!=this.viewport.to;this.viewport=u,this.updateForViewport(),c&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,n=window.getComputedStyle(t),r=this.heightOracle,i=n.whiteSpace;this.defaultTextDirection="rtl"==n.direction?uu.RTL:uu.LTR;let a=this.heightOracle.mustRefreshForWrapping(i),o=a||this.mustMeasureContent||this.contentDOMHeight!=t.clientHeight;this.contentDOMHeight=t.clientHeight,this.mustMeasureContent=!1;let s=0,l=0,u=parseInt(n.paddingTop)||0,c=parseInt(n.paddingBottom)||0;(this.paddingTop!=u||this.paddingBottom!=c)&&(this.paddingTop=u,this.paddingBottom=c,s|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(r.lineWrapping&&(o=!0),this.editorWidth=e.scrollDOM.clientWidth,s|=8);let d=(this.printing?cd:cc)(t,this.paddingTop),h=d.top-this.pixelViewport.top,p=d.bottom-this.pixelViewport.bottom;this.pixelViewport=d;let f=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(f!=this.inView&&(this.inView=f,f&&(o=!0)),!this.inView)return 0;let m=t.clientWidth;if((this.contentDOMWidth!=m||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=m,this.editorHeight=e.scrollDOM.clientHeight,s|=8),o){let t=e.docView.measureVisibleLineHeights(this.viewport);if(r.mustRefreshForHeights(t)&&(a=!0),a||r.lineWrapping&&Math.abs(m-this.contentDOMWidth)>r.charWidth){let{lineHeight:n,charWidth:o}=e.docView.measureTextSize();(a=r.refresh(i,n,o,m/o,t))&&(e.docView.minWidth=0,s|=8)}for(let n of(h>0&&p>0?l=Math.max(h,p):h<0&&p<0&&(l=Math.min(h,p)),r.heightChanged=!1,this.viewports)){let i=n.from==this.viewport.from?t:e.docView.measureVisibleLineHeights(n);this.heightMap=this.heightMap.updateHeight(r,0,a,new u7(n.from,i))}r.heightChanged&&(s|=2)}let g=!this.viewportIsAppropriate(this.viewport,l)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return g&&(this.viewport=this.getViewport(l,this.scrollTarget)),this.updateForViewport(),(2&s||g)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(a?[]:this.lineGaps)),s|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),s}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let n=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),r=this.heightMap,i=this.state.doc,{visibleTop:a,visibleBottom:o}=this,s=new cm(r.lineAt(a-1e3*n,ct.ByHeight,i,0,0).from,r.lineAt(o+(1-n)*1e3,ct.ByHeight,i,0,0).to);if(t){let{head:e}=t.range;if(es.to){let n=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),a=r.lineAt(e,ct.ByPos,i,0,0),o;o="center"==t.y?(a.top+a.bottom)/2-n/2:"start"==t.y||"nearest"==t.y&&e=o+Math.max(10,Math.min(n,250)))&&r>a-2e3&&ii&&(r.push({from:i,to:e}),a+=e-i),i=t}},20),in.from&&o.push({from:n.from,to:r}),i=n.from&&s.from<=n.to&&cb(o,s.from-10,s.from+10),!s.empty&&s.to>=n.from&&s.to<=n.to&&cb(o,s.to-10,s.to+10),o))i-r>1e3&&t.push(function(e,t){for(let n of e)if(t(n))return n}(e,e=>e.from>=n.from&&e.to<=n.to&&1e3>Math.abs(e.from-r)&&1e3>Math.abs(e.to-i))||new ch(r,i,this.gapSize(n,r,i,a)))}return t}gapSize(e,t,n,r){let i=cO(r,n)-cO(r,t);return this.heightOracle.lineWrapping?e.height*i:r.total*this.heightOracle.charWidth*i}updateLineGaps(e){ch.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=lF.set(e.map(e=>e.draw(this.heightOracle.lineWrapping))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let t=[];sA.spans(e,this.viewport.from,this.viewport.to,{span(e,n){t.push({from:e,to:n})},point(){}},20);let n=t.length!=this.visibleRanges.length||this.visibleRanges.some((e,n)=>e.from!=t[n].from||e.to!=t[n].to);return this.visibleRanges=t,n?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(t=>t.from<=e&&t.to>=e)||cx(this.heightMap.lineAt(e,ct.ByPos,this.state.doc,0,0),this.scaler)}lineBlockAtHeight(e){return cx(this.heightMap.lineAt(this.scaler.fromDOM(e),ct.ByHeight,this.state.doc,0,0),this.scaler)}elementAtHeight(e){return cx(this.heightMap.blockAt(this.scaler.fromDOM(e),this.state.doc,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class cm{constructor(e,t){this.from=e,this.to=t}}function cg({total:e,ranges:t},n){if(n<=0)return t[0].from;if(n>=1)return t[t.length-1].to;let r=Math.floor(e*n);for(let e=0;;e++){let{from:n,to:i}=t[e],a=i-n;if(r<=a)return n+r;r-=a}}function cO(e,t){let n=0;for(let{from:r,to:i}of e.ranges){if(t<=i){n+=t-r;break}n+=i-r}return n/e.total}function cb(e,t,n){for(let r=0;rt){let a=[];i.fromn&&a.push({from:n,to:i.to}),e.splice(r,1,...a),r+=a.length-1}}}let cy={toDOM:e=>e,fromDOM:e=>e,scale:1};class cv{constructor(e,t,n){let r=0,i=0,a=0;for(let o of(this.viewports=n.map(({from:n,to:i})=>{let a=t.lineAt(n,ct.ByPos,e,0,0).top,o=t.lineAt(i,ct.ByPos,e,0,0).bottom;return r+=o-a,{from:n,to:i,top:a,bottom:o,domTop:0,domBottom:0}}),this.scale=(7e6-r)/(t.height-r),this.viewports))o.domTop=a+(o.top-i)*this.scale,a=o.domBottom=o.domTop+(o.bottom-o.top),i=o.bottom}toDOM(e){for(let t=0,n=0,r=0;;t++){let i=tcx(e,t)):e.type)}let cT=oJ.define({combine:e=>e.join(" ")}),ck=oJ.define({combine:e=>e.indexOf(!0)>-1}),c_=sZ.newName(),cS=sZ.newName(),cw=sZ.newName(),cE={"&light":"."+cS,"&dark":"."+cw};function cC(e,t,n){return new sZ(t,{finish:t=>/&/.test(t)?t.replace(/&\w*/,t=>{if("&"==t)return e;if(!n||!n[t])throw RangeError(`Unsupported selector: ${t}`);return n[t]}):e+" "+t})}let cA=cC("."+c_,{"&.cm-editor":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,minHeight:"100%",display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere"},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 4px"},".cm-selectionLayer":{zIndex:-1,contain:"size style"},".cm-selectionBackground":{position:"absolute"},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{zIndex:100,contain:"size style",pointerEvents:"none"},"&.cm-focused .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{visibility:"hidden"},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{visibility:"hidden"},"100%":{}},".cm-cursor, .cm-dropCursor":{position:"absolute",borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},"&.cm-focused .cm-cursor":{display:"block"},"&light .cm-activeLine":{backgroundColor:"#f3f9ff"},"&dark .cm-activeLine":{backgroundColor:"#223039"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{display:"flex",height:"100%",boxSizing:"border-box",left:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},cE),cR={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},cP=l_.ie&&l_.ie_version<=11;class cI{constructor(e,t,n){this.view=e,this.onChange=t,this.onScrollChanged=n,this.active=!1,this.selectionRange=new le,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.scrollTargets=[],this.intersection=null,this.resize=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(t=>{for(let e of t)this.queue.push(e);(l_.ie&&l_.ie_version<=11||l_.ios&&e.composing)&&t.some(e=>"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length)?this.flushSoon():this.flush()}),cP&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),window.addEventListener("resize",this.onResize=this.onResize.bind(this)),"function"==typeof ResizeObserver&&(this.resize=new ResizeObserver(()=>{this.view.docView.lastUpdate{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),e.length>0&&e[e.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(e=>{e.length>0&&e[e.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange(),this.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500)}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((t,n)=>t!=e[n]))){for(let t of(this.gapIntersection.disconnect(),e))this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:t}=this,n=this.selectionRange;if(t.state.facet(l3)?t.root.activeElement!=this.dom:!s2(t.dom,n))return;let r=n.anchorNode&&t.docView.nearest(n.anchorNode);r&&r.ignoreEvent(e)||((l_.ie&&l_.ie_version<=11||l_.android&&l_.chrome)&&!t.state.selection.main.empty&&n.focusNode&&s9(n.focusNode,n.focusOffset,n.anchorNode,n.anchorOffset)?this.flushSoon():this.flush(!1))}readSelectionRange(){let{root:e}=this.view,t=s1(e),n=l_.safari&&11==e.nodeType&&function(){let e=document.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}()==this.view.contentDOM&&function(e){let t=null;function n(e){e.preventDefault(),e.stopImmediatePropagation(),t=e.getTargetRanges()[0]}if(e.contentDOM.addEventListener("beforeinput",n,!0),document.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",n,!0),!t)return null;let r=t.startContainer,i=t.startOffset,a=t.endContainer,o=t.endOffset,s=e.docView.domAtPos(e.state.selection.main.anchor);return s9(s.node,s.offset,a,o)&&([r,i,a,o]=[a,o,r,i]),{anchorNode:r,anchorOffset:i,focusNode:a,focusOffset:o}}(this.view)||t;return!this.selectionRange.eq(n)&&(this.selectionRange.setRange(n),this.selectionChanged=!0)}setSelectionRange(e,t){this.selectionRange.set(e.node,e.offset,t.node,t.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,t=null;for(let n=this.dom;n;)if(1==n.nodeType)!t&&e{let e=this.delayedAndroidKey;this.delayedAndroidKey=null,this.delayedFlush=-1,this.flush()||li(this.view.contentDOM,e.key,e.keyCode)}),this.delayedAndroidKey&&"Enter"!=e||(this.delayedAndroidKey={key:e,keyCode:t})}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=window.setTimeout(()=>{this.delayedFlush=-1,this.flush()},20))}forceFlush(){this.delayedFlush>=0&&(window.clearTimeout(this.delayedFlush),this.delayedFlush=-1,this.flush())}processRecords(){let e=this.queue;for(let t of this.observer.takeRecords())e.push(t);e.length&&(this.queue=[]);let t=-1,n=-1,r=!1;for(let i of e){let e=this.readMutation(i);e&&(e.typeOver&&(r=!0),-1==t?{from:t,to:n}=e:(t=Math.min(e.from,t),n=Math.max(e.to,n)))}return{from:t,to:n,typeOver:r}}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return;e&&this.readSelectionRange();let{from:t,to:n,typeOver:r}=this.processRecords(),i=this.selectionChanged&&s2(this.dom,this.selectionRange);if(t<0&&!i)return;this.selectionChanged=!1;let a=this.view.state,o=this.onChange(t,n,r);return this.view.state==a&&this.view.update([]),o}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty("attributes"==e.type),"attributes"==e.type&&(t.dirty|=4),"childList"==e.type){let n=cN(t,e.previousSibling||e.target.previousSibling,-1),r=cN(t,e.nextSibling||e.target.nextSibling,1);return{from:n?t.posAfter(n):t.posAtStart,to:r?t.posBefore(r):t.posAtEnd,typeOver:!1}}return"characterData"==e.type?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}destroy(){var e,t,n;for(let r of(this.stop(),null===(e=this.intersection)||void 0===e||e.disconnect(),null===(t=this.gapIntersection)||void 0===t||t.disconnect(),null===(n=this.resize)||void 0===n||n.disconnect(),this.scrollTargets))r.removeEventListener("scroll",this.onScroll);window.removeEventListener("scroll",this.onScroll),window.removeEventListener("resize",this.onResize),window.removeEventListener("beforeprint",this.onPrint),this.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout)}}function cN(e,t,n){for(;t;){let r=ll.get(t);if(r&&r.parent==e)return r;let i=t.parentNode;t=i!=e.dom?i:n>0?t.nextSibling:t.previousSibling}return null}class c${constructor(e={}){for(let t of(this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.style.cssText="position: absolute; top: -10000px",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),this._dispatch=e.dispatch||(e=>this.update([e])),this.dispatch=this.dispatch.bind(this),this.root=e.root||function(e){for(;e;){if(e&&(9==e.nodeType||11==e.nodeType&&e.host))return e;e=e.assignedSlot||e.parentNode}return null}(e.parent)||document,this.viewState=new cf(e.state||sk.create()),this.plugins=this.state.facet(l6).map(e=>new ue(e)),this.plugins))t.update(this);this.observer=new cI(this,(e,t,n)=>(function(e,t,n,r){let i,a;let o=e.state.selection.main;if(t>-1){let r=e.docView.domBoundsAround(t,n,0);if(!r||e.state.readOnly)return!1;let{from:s,to:l}=r,u=e.docView.impreciseHead||e.docView.impreciseAnchor?[]:function(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:a}=e.observer.selectionRange;return n&&(t.push(new u_(n,r)),(i!=n||a!=r)&&t.push(new u_(i,a))),t}(e),c=new uT(u,e.state);c.readRange(r.startDOM,r.endDOM);let d=o.from,h=null;(8===e.inputState.lastKeyCode&&e.inputState.lastKeyTime>Date.now()-100||l_.android&&c.text.length0&&s>0&&e.charCodeAt(o-1)==t.charCodeAt(s-1);)o--,s--;if("end"==r){let e=Math.max(0,a-Math.min(o,s));n-=o+e-a}if(o=o?a-n:0;a-=e,s=a+(s-o),o=a}else if(s=s?a-n:0;a-=e,o=a+(o-s),s=a}return{from:a,toA:o,toB:s}}(e.state.doc.sliceString(s,l,"￿"),c.text,d-s,h);p&&(l_.chrome&&13==e.inputState.lastKeyCode&&p.toB==p.from+2&&"￿￿"==c.text.slice(p.from,p.toB)&&p.toB--,i={from:s+p.from,to:s+p.toA,insert:ox.of(c.text.slice(p.from,p.toB).split("￿"))}),a=function(e,t){if(0==e.length)return null;let n=e[0].pos,r=2==e.length?e[1].pos:n;return n>-1&&r>-1?oX.single(n+t,r+t):null}(u,s)}else if(e.hasFocus||!e.state.facet(l3)){let t=e.observer.selectionRange,{impreciseHead:n,impreciseAnchor:r}=e.docView,i=n&&n.node==t.focusNode&&n.offset==t.focusOffset||!s0(e.contentDOM,t.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(t.focusNode,t.focusOffset),s=r&&r.node==t.anchorNode&&r.offset==t.anchorOffset||!s0(e.contentDOM,t.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(t.anchorNode,t.anchorOffset);(i!=o.head||s!=o.anchor)&&(a=oX.single(s,i))}if(!i&&!a)return!1;if(!i&&r&&!o.empty&&a&&a.main.empty?i={from:o.from,to:o.to,insert:e.state.doc.slice(o.from,o.to)}:i&&i.from>=o.from&&i.to<=o.to&&(i.from!=o.from||i.to!=o.to)&&o.to-o.from-(i.to-i.from)<=4?i={from:o.from,to:o.to,insert:e.state.doc.slice(o.from,i.from).append(i.insert).append(e.state.doc.slice(i.to,o.to))}:(l_.mac||l_.android)&&i&&i.from==i.to&&i.from==o.head-1&&"."==i.insert.toString()&&(i={from:o.from,to:o.to,insert:ox.of([" "])}),i){let t,n=e.state;if(l_.ios&&e.inputState.flushIOSKey(e)||l_.android&&(i.from==o.from&&i.to==o.to&&1==i.insert.length&&2==i.insert.lines&&li(e.contentDOM,"Enter",13)||i.from==o.from-1&&i.to==o.to&&0==i.insert.length&&li(e.contentDOM,"Backspace",8)||i.from==o.from&&i.to==o.to+1&&0==i.insert.length&&li(e.contentDOM,"Delete",46)))return!0;let r=i.insert.toString();if(e.state.facet(l0).some(t=>t(e,i.from,i.to,r)))return!0;if(e.inputState.composing>=0&&e.inputState.composing++,i.from>=o.from&&i.to<=o.to&&i.to-i.from>=(o.to-o.from)/3&&(!a||a.main.empty&&a.main.from==i.from+i.insert.length)&&e.inputState.composing<0){let r=o.fromi.to?n.sliceDoc(i.to,o.to):"";t=n.replaceSelection(e.state.toText(r+i.insert.sliceString(0,void 0,e.state.lineBreak)+a))}else{let r=n.changes(i),s=a&&!n.selection.main.eq(a.main)&&a.main.to<=r.newLength?a.main:void 0;if(n.selection.ranges.length>1&&e.inputState.composing>=0&&i.to<=o.to&&i.to>=o.to-10){let a=e.state.sliceDoc(i.from,i.to),l=uE(e)||e.state.doc.lineAt(o.head),u=o.to-i.to,c=o.to-o.from;t=n.changeByRange(t=>{if(t.from==o.from&&t.to==o.to)return{changes:r,range:s||t.map(r)};let d=t.to-u,h=d-a.length;if(t.to-t.from!=c||e.state.sliceDoc(h,d)!=a||l&&t.to>=l.from&&t.from<=l.to)return{range:t};let p=n.changes({from:h,to:d,insert:i.insert}),f=t.to-o.to;return{changes:p,range:s?oX.range(Math.max(0,s.anchor+f),Math.max(0,s.head+f)):t.map(p)}})}else t={changes:r,selection:s&&n.selection.replaceRange(s)}}let s="input.type";return e.composing&&(s+=".compose",e.inputState.compositionFirstChange&&(s+=".start",e.inputState.compositionFirstChange=!1)),e.dispatch(t,{scrollIntoView:!0,userEvent:s}),!0}if(!a||a.main.eq(o))return!1;{let t=!1,n="select";return e.inputState.lastSelectionTime>Date.now()-50&&("select"==e.inputState.lastSelectionOrigin&&(t=!0),n=e.inputState.lastSelectionOrigin),e.dispatch({selection:a,scrollIntoView:t,userEvent:n}),!0}})(this,e,t,n),e=>{this.inputState.runScrollHandlers(this,e),this.observer.intersecting&&this.measure()}),this.inputState=new uF(this),this.inputState.ensureHandlers(this,this.plugins),this.docView=new uS(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),e.parent&&e.parent.appendChild(this.dom)}get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}dispatch(...e){this._dispatch(1==e.length&&e[0]instanceof sg?e[0]:this.state.update(...e))}update(e){if(0!=this.updateState)throw Error("Calls to EditorView.update are not allowed while an update is in progress");let t=!1,n=!1,r,i=this.state;for(let t of e){if(t.startState!=i)throw RangeError("Trying to update state with a transaction that doesn't start from the previous state.");i=t.state}if(this.destroyed){this.viewState.state=i;return}if(this.observer.clear(),i.facet(sk.phrases)!=this.state.facet(sk.phrases))return this.setState(i);r=ul.create(this,i,e);let a=this.viewState.scrollTarget;try{for(let t of(this.updateState=2,e)){if(a&&(a=a.map(t.changes)),t.scrollIntoView){let{main:e}=t.state.selection;a=new l5(e.empty?e:oX.cursor(e.head,e.head>e.anchor?-1:1))}for(let e of t.effects)e.is(l9)&&(a=e.value)}this.viewState.update(r,a),this.bidiCache=cQ.update(this.bidiCache,r.changes),r.empty||(this.updatePlugins(r),this.inputState.update(r)),t=this.docView.update(r),this.state.facet(uo)!=this.styleModules&&this.mountStyles(),n=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(t,e.some(e=>e.isUserEvent("select.pointer")))}finally{this.updateState=0}if(r.startState.facet(cT)!=r.state.facet(cT)&&(this.viewState.mustMeasureContent=!0),(t||n||a||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!r.empty)for(let e of this.state.facet(l1))e(r)}setState(e){if(0!=this.updateState)throw Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let t=this.hasFocus;try{for(let e of this.plugins)e.destroy(this);for(let t of(this.viewState=new cf(e),this.plugins=e.facet(l6).map(e=>new ue(e)),this.pluginMap.clear(),this.plugins))t.update(this);this.docView=new uS(this),this.inputState.ensureHandlers(this,this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(l6),n=e.state.facet(l6);if(t!=n){let r=[];for(let i of n){let n=t.indexOf(i);if(n<0)r.push(new ue(i));else{let t=this.plugins[n];t.mustUpdate=e,r.push(t)}}for(let t of this.plugins)t.mustUpdate!=e&&t.destroy(this);this.plugins=r,this.pluginMap.clear(),this.inputState.ensureHandlers(this,this.plugins)}else for(let t of this.plugins)t.mustUpdate=e;for(let e=0;e-1&&cancelAnimationFrame(this.measureScheduled),this.measureScheduled=0,e&&this.observer.flush();let t=null;try{for(let e=0;;e++){this.updateState=1;let n=this.viewport,r=this.viewState.measure(this);if(!r&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(e>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let i=[];4&r||([this.measureRequests,i]=[i,this.measureRequests]);let a=i.map(e=>{try{return e.read(this)}catch(e){return l4(this.state,e),cD}}),o=ul.create(this,this.state,[]),s=!1,l=!1;o.flags|=r,t?t.flags|=r:t=o,this.updateState=2,o.empty||(this.updatePlugins(o),this.inputState.update(o),this.updateAttrs(),s=this.docView.update(o));for(let e=0;e{let n=lD(this.contentDOM,this.contentAttrs,t),r=lD(this.dom,this.editorAttrs,e);return n||r});return this.editorAttrs=e,this.contentAttrs=t,n}showAnnouncements(e){let t=!0;for(let n of e)for(let e of n.effects)e.is(c$.announce)&&(t&&(this.announceDOM.textContent=""),t=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=e.value)}mountStyles(){this.styleModules=this.state.facet(uo),sZ.mount(this.root,this.styleModules.concat(cA).reverse())}readMeasured(){if(2==this.updateState)throw Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=requestAnimationFrame(()=>this.measure())),e){if(null!=e.key){for(let t=0;tt.spec==e)||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,n){return uM(this,e,uQ(this,e,t,n))}moveByGroup(e,t){return uM(this,e,uQ(this,e,t,t=>{var n;let r,i;return n=e.head,i=(r=this.state.charCategorizer(n))(t),e=>{let t=r(e);return i==sx.Space&&(i=t),i==t}}))}moveToLineBoundary(e,t,n=!0){return function(e,t,n,r){let i=e.state.doc.lineAt(t.head),a=r&&e.lineWrapping?e.coordsAtPos(t.assoc<0&&t.head>i.from?t.head-1:t.head):null;if(a){let t=e.dom.getBoundingClientRect(),r=e.textDirectionAt(i.from),o=e.posAtCoords({x:n==(r==uu.LTR)?t.right-1:t.left+1,y:(a.top+a.bottom)/2});if(null!=o)return oX.cursor(o,n?-1:1)}let o=lZ.find(e.docView,t.head),s=o?n?o.posAtEnd:o.posAtStart:n?i.to:i.from;return oX.cursor(s,n?-1:1)}(this,e,t,n)}moveVertically(e,t,n){return uM(this,e,function(e,t,n,r){let i=t.head,a=n?1:-1;if(i==(n?e.state.doc.length:0))return oX.cursor(i,t.assoc);let o=t.goalColumn,s,l=e.contentDOM.getBoundingClientRect(),u=e.coordsAtPos(i),c=e.documentTop;if(u)null==o&&(o=u.left-l.left),s=a<0?u.top:u.bottom;else{let t=e.viewState.lineBlockAt(i);null==o&&(o=Math.min(l.right-l.left,e.defaultCharacterWidth*(i-t.from))),s=(a<0?t.top:t.bottom)+c}let d=l.left+o,h=null!=r?r:e.defaultLineHeight>>1;for(let n=0;;n+=10){let r=s+(h+n)*a,u=uL(e,{x:d,y:r},!1,a);if(rl.bottom||(a<0?ui))return oX.cursor(u,t.assoc,void 0,o)}}(this,e,t,n))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){return this.readMeasured(),uL(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let n=this.docView.coordsAt(e,t);if(!n||n.left==n.right)return n;let r=this.state.doc.lineAt(e),i=this.bidiSpans(r);return s7(n,i[ub.find(i,e-r.from,-1,t)].dir==uu.LTR==t>0)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(l2)||ethis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>cL)return uv(e.length);let t=this.textDirectionAt(e.from);for(let n of this.bidiCache)if(n.from==e.from&&n.dir==t)return n.order;let n=function(e,t){let n=e.length,r=t==uc?1:2,i=t==uc?2:1;if(!e||1==r&&!uO.test(e))return uv(n);for(let t=0,i=r,o=r;t=0;e-=3)if(ug[e+1]==-l){let n=ug[e+2],o=2&n?r:4&n?1&n?i:r:0;o&&(uy[t]=uy[ug[e]]=o),a=e;break}}else if(189==ug.length)break;else ug[a++]=t,ug[a++]=s,ug[a++]=o}else if(2==(u=uy[t])||1==u){let e=u==r;o=e?0:1;for(let t=a-3;t>=0;t-=3){let n=ug[t+2];if(2&n)break;if(e)ug[t+2]|=2;else{if(4&n)break;ug[t+2]|=4}}}for(let e=0;et;){let e=n,r=2!=uy[--n];for(;n>t&&r==(2!=uy[n-1]);)n--;o.push(new ub(n,e,r?2:1))}else o.push(new ub(t,e,0))}else for(let e=0;eDate.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{ln(this.contentDOM),this.docView.updateSelection()})}destroy(){for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){return l9.of(new l5("number"==typeof e?oX.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}static domEventHandlers(e){return l7.define(()=>({}),{eventHandlers:e})}static theme(e,t){let n=sZ.newName(),r=[cT.of(n),uo.of(cC(`.${n}`,e))];return t&&t.dark&&r.push(ck.of(!0)),r}static baseTheme(e){return o6.lowest(uo.of(cC("."+c_,e,cE)))}}c$.styleModule=uo,c$.inputHandler=l0,c$.perLineTextDirection=l2,c$.exceptionSink=lJ,c$.updateListener=l1,c$.editable=l3,c$.mouseSelectionStyle=lK,c$.dragMovesSelection=lV,c$.clickAddsSelectionRange=lX,c$.decorations=ur,c$.atomicRanges=ui,c$.scrollMargins=ua,c$.darkTheme=ck,c$.contentAttributes=un,c$.editorAttributes=ut,c$.lineWrapping=c$.contentAttributes.of({class:"cm-lineWrapping"}),c$.announce=sm.define();let cL=4096,cD={};class cQ{constructor(e,t,n,r){this.from=e,this.to=t,this.dir=n,this.order=r}static update(e,t){if(t.empty)return e;let n=[],r=e.length?e[e.length-1].dir:uu.LTR;for(let i=Math.max(0,e.length-10);i=0;i--){let t=r[i],a="function"==typeof t?t(e):t;a&&l$(a,n)}return n}let cF=l_.mac?"mac":l_.windows?"win":l_.linux?"linux":"key";function cB(e,t,n){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),!1!==n&&t.shiftKey&&(e="Shift-"+e),e}let cU=c$.domEventHandlers({keydown:(e,t)=>{let n,r;return function(e,t,n,r){var i;let a=("Esc"==(i=!(sX&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||sV&&t.shiftKey&&t.key&&1==t.key.length||"Unidentified"==t.key)&&t.key||(t.shiftKey?sY:sH)[t.keyCode]||t.key||"Unidentified")&&(i="Escape"),"Del"==i&&(i="Delete"),"Left"==i&&(i="ArrowLeft"),"Up"==i&&(i="ArrowUp"),"Right"==i&&(i="ArrowRight"),"Down"==i&&(i="ArrowDown"),i),o=1==a.length&&" "!=a,s="",l=!1;cW&&cW.view==n&&cW.scope==r&&(s=cW.prefix+" ",(l=0>uU.indexOf(t.keyCode))&&(cW=null));let u=e=>{if(e){for(let t of e.commands)if(t(n))return!0;e.preventDefault&&(l=!0)}return!1},c=e[r],d;if(c){if(u(c[s+cB(a,t,!o)]))return!0;if(o&&(t.shiftKey||t.altKey||t.metaKey)&&(d=sH[t.keyCode])&&d!=a){if(u(c[s+cB(d,t,!0)]))return!0}else if(o&&t.shiftKey&&u(c[s+cB(a,t,!0)]))return!0}return l}((n=t.state.facet(cj),(r=cz.get(n))||cz.set(n,r=function(e,t=cF){let n=Object.create(null),r=Object.create(null),i=(e,t)=>{let n=r[e];if(null==n)r[e]=t;else if(n!=t)throw Error("Key binding "+e+" is used both as a regular binding and as a multi-stroke prefix")},a=(e,r,a,o)=>{let s=n[e]||(n[e]=Object.create(null)),l=r.split(/ (?!$)/).map(e=>(function(e,t){let n,r,i,a;let o=e.split(/-(?!$)/),s=o[o.length-1];"Space"==s&&(s=" ");for(let e=0;e{let r=cW={view:t,prefix:n,scope:e};return setTimeout(()=>{cW==r&&(cW=null)},4e3),!0}]})}let u=l.join(" ");i(u,!1);let c=s[u]||(s[u]={preventDefault:!1,commands:[]});c.commands.push(a),o&&(c.preventDefault=!0)};for(let n of e){let e=n[t]||n.key;if(e)for(let t of n.scope?n.scope.split(" "):["editor"])a(t,e,n.run,n.preventDefault),n.shift&&a(t,"Shift-"+e,n.shift,n.preventDefault)}return n}(n.reduce((e,t)=>e.concat(t),[]))),r),e,t,"editor")}}),cj=oJ.define({enables:cU}),cz=new WeakMap,cW=null,cZ=!l_.ios,cq=oJ.define({combine:e=>s_(e,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})});class cG{constructor(e,t,n,r,i){this.left=e,this.top=t,this.width=n,this.height=r,this.className=i}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",this.width>=0&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}}let cH=l7.fromClass(class{constructor(e){this.view=e,this.rangePieces=[],this.cursors=[],this.measureReq={read:this.readPos.bind(this),write:this.drawSel.bind(this)},this.selectionLayer=e.scrollDOM.appendChild(document.createElement("div")),this.selectionLayer.className="cm-selectionLayer",this.selectionLayer.setAttribute("aria-hidden","true"),this.cursorLayer=e.scrollDOM.appendChild(document.createElement("div")),this.cursorLayer.className="cm-cursorLayer",this.cursorLayer.setAttribute("aria-hidden","true"),e.requestMeasure(this.measureReq),this.setBlinkRate()}setBlinkRate(){this.cursorLayer.style.animationDuration=this.view.state.facet(cq).cursorBlinkRate+"ms"}update(e){let t=e.startState.facet(cq)!=e.state.facet(cq);(t||e.selectionSet||e.geometryChanged||e.viewportChanged)&&this.view.requestMeasure(this.measureReq),e.transactions.some(e=>e.scrollIntoView)&&(this.cursorLayer.style.animationName="cm-blink"==this.cursorLayer.style.animationName?"cm-blink2":"cm-blink"),t&&this.setBlinkRate()}readPos(){let{state:e}=this.view,t=e.facet(cq),n=e.selection.ranges.map(e=>e.empty?[]:function(e,t){if(t.to<=e.viewport.from||t.from>=e.viewport.to)return[];let n=Math.max(t.from,e.viewport.from),r=Math.min(t.to,e.viewport.to),i=e.textDirection==uu.LTR,a=e.contentDOM,o=a.getBoundingClientRect(),s=cV(e),l=window.getComputedStyle(a.firstChild),u=o.left+parseInt(l.paddingLeft)+Math.min(0,parseInt(l.textIndent)),c=o.right-parseInt(l.paddingRight),d=cJ(e,n),h=cJ(e,r),p=d.type==lM.Text?d:null,f=h.type==lM.Text?h:null;if(e.lineWrapping&&(p&&(p=cK(e,n,p)),f&&(f=cK(e,r,f))),p&&f&&p.from==f.from)return g(O(t.from,t.to,p));{let n=p?O(t.from,null,p):b(d,!1),r=f?O(null,t.to,f):b(h,!0),i=[];return(p||d).to<(f||h).from-1?i.push(m(u,n.bottom,c,r.top)):n.bottomd&&r.from=a)break;s>i&&l(Math.max(e,i),null==t&&e<=d,Math.min(s,a),null==n&&s>=h,o.dir)}if((i=r.to+1)>=a)break}return 0==s.length&&l(d,null==t,h,null==n,e.textDirection),{top:a,bottom:o,horizontal:s}}function b(e,t){let n=o.top+(t?e.top:e.bottom);return{top:n,bottom:n,horizontal:[]}}}(this.view,e)).reduce((e,t)=>e.concat(t)),r=[];for(let n of e.selection.ranges){let i=n==e.selection.main;if(n.empty?!i||cZ:t.drawRangeCursor){let e=function(e,t,n){let r=e.coordsAtPos(t.head,t.assoc||1);if(!r)return null;let i=cV(e);return new cG(r.left-i.left,r.top-i.top,-1,r.bottom-r.top,n?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary")}(this.view,n,i);e&&r.push(e)}}return{rangePieces:n,cursors:r}}drawSel({rangePieces:e,cursors:t}){if(e.length!=this.rangePieces.length||e.some((e,t)=>!e.eq(this.rangePieces[t]))){for(let t of(this.selectionLayer.textContent="",e))this.selectionLayer.appendChild(t.draw());this.rangePieces=e}if(t.length!=this.cursors.length||t.some((e,t)=>!e.eq(this.cursors[t]))){let e=this.cursorLayer.children;if(e.length!==t.length)for(let e of(this.cursorLayer.textContent="",t))this.cursorLayer.appendChild(e.draw());else t.forEach((t,n)=>t.adjust(e[n]));this.cursors=t}}destroy(){this.selectionLayer.remove(),this.cursorLayer.remove()}}),cY={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};cZ&&(cY[".cm-line"].caretColor="transparent !important");let cX=o6.highest(c$.theme(cY));function cV(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==uu.LTR?t.left:t.right-e.scrollDOM.clientWidth)-e.scrollDOM.scrollLeft,top:t.top-e.scrollDOM.scrollTop}}function cK(e,t,n){let r=oX.cursor(t);return{from:Math.max(n.from,e.moveToLineBoundary(r,!1,!0).from),to:Math.min(n.to,e.moveToLineBoundary(r,!0,!0).from),type:lM.Text}}function cJ(e,t){let n=e.lineBlockAt(t);if(Array.isArray(n.type)){for(let e of n.type)if(e.to>t||e.to==t&&(e.to==n.to||e.type==lM.Text))return e}return n}function c1(e,t,n,r,i){t.lastIndex=0;for(let a=e.iterRange(n,r),o=n,s;!a.next().done;o+=a.value.length)if(!a.lineBreak)for(;s=t.exec(a.value);)i(o+s.index,o+s.index+s[0].length,s)}class c0{constructor(e){let{regexp:t,decoration:n,boundary:r,maxLength:i=1e3}=e;if(!t.global)throw RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");this.regexp=t,this.getDeco="function"==typeof n?n:()=>n,this.boundary=r,this.maxLength=i}createDeco(e){let t=new sR;for(let{from:n,to:r}of function(e,t){let n=e.visibleRanges;if(1==n.length&&n[0].from==e.viewport.from&&n[0].to==e.viewport.to)return n;let r=[];for(let{from:i,to:a}of n)i=Math.max(e.state.doc.lineAt(i).from,i-t),a=Math.min(e.state.doc.lineAt(a).to,a+t),r.length&&r[r.length-1].to>=i?r[r.length-1].to=a:r.push({from:i,to:a});return r}(e,this.maxLength))c1(e.state.doc,this.regexp,n,r,(n,r,i)=>t.add(n,r,this.getDeco(i,e,n)));return t.finish()}updateDeco(e,t){let n=1e9,r=-1;return(e.docChanged&&e.changes.iterChanges((t,i,a,o)=>{o>e.view.viewport.from&&a1e3)?this.createDeco(e.view):r>-1?this.updateRange(e.view,t.map(e.changes),n,r):t}updateRange(e,t,n,r){for(let i of e.visibleRanges){let a=Math.max(i.from,n),o=Math.min(i.to,r);if(o>a){let n=e.state.doc.lineAt(a),r=n.ton.from;a--)if(this.boundary.test(n.text[a-1-n.from])){s=a;break}for(;ou.push(this.getDeco(r,e,t).range(t,n)));t=t.update({filterFrom:s,filterTo:l,filter:(e,t)=>el,add:u})}}return t}}let c2=null!=/x/.unicode?"gu":"g",c5=RegExp("[\x00-\b\n-\x1f\x7f-\x9f\xad؜​‎‏\u2028\u2029‭‮\uFEFF-]",c2),c9={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"},c4=null,c3=oJ.define({combine(e){let t=s_(e,{render:null,specialChars:c5,addSpecialChars:null});return(t.replaceTabs=!function(){var e;if(null==c4&&"undefined"!=typeof document&&document.body){let t=document.body.style;c4=(null!==(e=t.tabSize)&&void 0!==e?e:t.MozTabSize)!=null}return c4||!1}())&&(t.specialChars=RegExp(" |"+t.specialChars.source,c2)),t.addSpecialChars&&(t.specialChars=RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,c2)),t}}),c8=null;class c6 extends lQ{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){var t;let n=(t=this.code)>=32?"•":10==t?"␤":String.fromCharCode(9216+t),r=e.state.phrase("Control character")+" "+(c9[this.code]||"0x"+this.code.toString(16)),i=this.options.render&&this.options.render(this.code,r,n);if(i)return i;let a=document.createElement("span");return a.textContent=n,a.title=r,a.setAttribute("aria-label",r),a.className="cm-specialChar",a}ignoreEvent(){return!1}}class c7 extends lQ{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}let de="-10000px";class dt{constructor(e,t,n){this.facet=t,this.createTooltipView=n,this.input=e.state.facet(t),this.tooltips=this.input.filter(e=>e),this.tooltipViews=this.tooltips.map(n)}update(e){let t=e.state.facet(this.facet),n=t.filter(e=>e);if(t===this.input){for(let t of this.tooltipViews)t.update&&t.update(e);return!1}let r=[];for(let t=0;tr.indexOf(e)&&e.dom.remove();return this.input=t,this.tooltips=n,this.tooltipViews=r,!0}}function dn(){return{top:0,left:0,bottom:innerHeight,right:innerWidth}}let dr=oJ.define({combine:e=>{var t,n,r;return{position:l_.ios?"absolute":(null===(t=e.find(e=>e.position))||void 0===t?void 0:t.position)||"fixed",parent:(null===(n=e.find(e=>e.parent))||void 0===n?void 0:n.parent)||null,tooltipSpace:(null===(r=e.find(e=>e.tooltipSpace))||void 0===r?void 0:r.tooltipSpace)||dn}}}),di=l7.fromClass(class{constructor(e){var t;this.view=e,this.inView=!0,this.lastTransaction=0,this.measureTimeout=-1;let n=e.state.facet(dr);this.position=n.position,this.parent=n.parent,this.classes=e.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new dt(e,dl,e=>this.createTooltip(e)),this.intersectionObserver="function"==typeof IntersectionObserver?new IntersectionObserver(e=>{Date.now()>this.lastTransaction-50&&e.length>0&&e[e.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),null===(t=e.dom.ownerDocument.defaultView)||void 0===t||t.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver)for(let e of(this.intersectionObserver.disconnect(),this.manager.tooltipViews))this.intersectionObserver.observe(e.dom)}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(e){e.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(e);t&&this.observeIntersection();let n=t||e.geometryChanged,r=e.state.facet(dr);if(r.position!=this.position){for(let e of(this.position=r.position,this.manager.tooltipViews))e.dom.style.position=this.position;n=!0}if(r.parent!=this.parent){for(let e of(this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer(),this.manager.tooltipViews))this.container.appendChild(e.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(e){let t=e.create(this.view);if(t.dom.classList.add("cm-tooltip"),e.arrow&&!t.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let e=document.createElement("div");e.className="cm-tooltip-arrow",t.dom.appendChild(e)}return t.dom.style.position=this.position,t.dom.style.top=de,this.container.appendChild(t.dom),t.mount&&t.mount(this.view),t}destroy(){var e,t;for(let{dom:t}of(null===(e=this.view.dom.ownerDocument.defaultView)||void 0===e||e.removeEventListener("resize",this.measureSoon),this.manager.tooltipViews))t.remove();null===(t=this.intersectionObserver)||void 0===t||t.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let e=this.view.dom.getBoundingClientRect();return{editor:e,parent:this.parent?this.container.getBoundingClientRect():e,pos:this.manager.tooltips.map((e,t)=>{let n=this.manager.tooltipViews[t];return n.getCoords?n.getCoords(e.pos):this.view.coordsAtPos(e.pos)}),size:this.manager.tooltipViews.map(({dom:e})=>e.getBoundingClientRect()),space:this.view.state.facet(dr).tooltipSpace(this.view)}}writeMeasure(e){let{editor:t,space:n}=e,r=[];for(let i=0;i=Math.min(t.bottom,n.bottom)||l.rightMath.min(t.right,n.right)+.1){s.style.top=de;continue}let c=a.arrow?o.dom.querySelector(".cm-tooltip-arrow"):null,d=c?7:0,h=u.right-u.left,p=u.bottom-u.top,f=o.offset||ds,m=this.view.textDirection==uu.LTR,g=u.width>n.right-n.left?m?n.left:n.right-u.width:m?Math.min(l.left-(c?14:0)+f.x,n.right-h):Math.max(n.left,l.left-h+(c?14:0)-f.x),O=!!a.above;!a.strictSide&&(O?l.top-(u.bottom-u.top)-f.yn.bottom)&&O==n.bottom-l.bottom>l.top-n.top&&(O=!O);let b=O?l.top-p-d-f.y:l.bottom+d+f.y,y=g+h;if(!0!==o.overlap)for(let e of r)e.leftg&&e.topb&&(b=O?e.top-p-2-d:e.bottom+d+2);"absolute"==this.position?(s.style.top=b-e.parent.top+"px",s.style.left=g-e.parent.left+"px"):(s.style.top=b+"px",s.style.left=g+"px"),c&&(c.style.left=`${l.left+(m?f.x:-f.x)-(g+14-7)}px`),!0!==o.overlap&&r.push({left:g,top:b,right:y,bottom:b+p}),s.classList.toggle("cm-tooltip-above",O),s.classList.toggle("cm-tooltip-below",!O),o.positioned&&o.positioned()}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let e of this.manager.tooltipViews)e.dom.style.top=de}},{eventHandlers:{scroll(){this.maybeMeasure()}}}),da=c$.baseTheme({".cm-tooltip":{zIndex:100},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),ds={x:0,y:0},dl=oJ.define({enables:[di,da]}),du=oJ.define();class dc{constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new dt(e,du,e=>this.createHostedView(e))}static create(e){return new dc(e)}createHostedView(e){let t=e.create(this.view);return t.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(t.dom),this.mounted&&t.mount&&t.mount(this.view),t}mount(e){for(let t of this.manager.tooltipViews)t.mount&&t.mount(e);this.mounted=!0}positioned(){for(let e of this.manager.tooltipViews)e.positioned&&e.positioned()}update(e){this.manager.update(e)}}let dd=oJ.define({combine(e){let t,n;for(let r of e)t=t||r.topContainer,n=n||r.bottomContainer;return{topContainer:t,bottomContainer:n}}}),dh=l7.fromClass(class{constructor(e){this.input=e.state.facet(dm),this.specs=this.input.filter(e=>e),this.panels=this.specs.map(t=>t(e));let t=e.state.facet(dd);for(let n of(this.top=new dp(e,!0,t.topContainer),this.bottom=new dp(e,!1,t.bottomContainer),this.top.sync(this.panels.filter(e=>e.top)),this.bottom.sync(this.panels.filter(e=>!e.top)),this.panels))n.dom.classList.add("cm-panel"),n.mount&&n.mount()}update(e){let t=e.state.facet(dd);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new dp(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new dp(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=e.state.facet(dm);if(n!=this.input){let t=n.filter(e=>e),r=[],i=[],a=[],o=[];for(let n of t){let t=this.specs.indexOf(n),s;t<0?(s=n(e.view),o.push(s)):(s=this.panels[t]).update&&s.update(e),r.push(s),(s.top?i:a).push(s)}for(let e of(this.specs=t,this.panels=r,this.top.sync(i),this.bottom.sync(a),o))e.dom.classList.add("cm-panel"),e.mount&&e.mount()}else for(let t of this.panels)t.update&&t.update(e)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:e=>c$.scrollMargins.of(t=>{let n=t.plugin(e);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}})});class dp{constructor(e,t,n){this.view=e,this.top=t,this.container=n,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&0>e.indexOf(t)&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(0==this.panels.length){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let e=this.container||this.view.dom;e.insertBefore(this.dom,this.top?e.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=df(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=df(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(this.container&&this.classes!=this.view.themeClasses){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function df(e){let t=e.nextSibling;return e.remove(),t}let dm=oJ.define({enables:dh});class dg extends sS{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}dg.prototype.elementClass="",dg.prototype.toDOM=void 0,dg.prototype.mapMode=oB.TrackBefore,dg.prototype.startSide=dg.prototype.endSide=-1,dg.prototype.point=!0;let dO=oJ.define(),db=oJ.define(),dy=oJ.define({combine:e=>e.some(e=>e)}),dv=l7.fromClass(class{constructor(e){for(let t of(this.view=e,this.prevViewport=e.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight+"px",this.gutters=e.state.facet(db).map(t=>new d_(e,t)),this.gutters))this.dom.appendChild(t.dom);this.fixed=!e.state.facet(dy),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),e.scrollDOM.insertBefore(this.dom,e.contentDOM)}update(e){if(this.updateGutters(e)){let t=this.prevViewport,n=e.view.viewport,r=Math.min(t.to,n.to)-Math.max(t.from,n.from);this.syncGutters(r<(n.to-n.from)*.8)}e.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(dy)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=e.view.viewport}syncGutters(e){let t=this.dom.nextSibling;e&&this.dom.remove();let n=sA.iter(this.view.state.facet(dO),this.view.viewport.from),r=[],i=this.gutters.map(e=>new dk(e,this.view.viewport,-this.view.documentPadding.top));for(let e of this.view.viewportLineBlocks){let t;if(Array.isArray(e.type)){for(let n of e.type)if(n.type==lM.Text){t=n;break}}else t=e.type==lM.Text?e:void 0;if(t)for(let a of(r.length&&(r=[]),dT(n,r,e.from),i))a.line(this.view,t,r)}for(let e of i)e.finish();e&&this.view.scrollDOM.insertBefore(this.dom,t)}updateGutters(e){let t=e.startState.facet(db),n=e.state.facet(db),r=e.docChanged||e.heightChanged||e.viewportChanged||!sA.eq(e.startState.facet(dO),e.state.facet(dO),e.view.viewport.from,e.view.viewport.to);if(t==n)for(let t of this.gutters)t.update(e)&&(r=!0);else{r=!0;let i=[];for(let r of n){let n=t.indexOf(r);n<0?i.push(new d_(this.view,r)):(this.gutters[n].update(e),i.push(this.gutters[n]))}for(let e of this.gutters)e.dom.remove(),0>i.indexOf(e)&&e.destroy();for(let e of i)this.dom.appendChild(e.dom);this.gutters=i}return r}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove()}},{provide:e=>c$.scrollMargins.of(t=>{let n=t.plugin(e);return n&&0!=n.gutters.length&&n.fixed?t.textDirection==uu.LTR?{left:n.dom.offsetWidth}:{right:n.dom.offsetWidth}:null})});function dx(e){return Array.isArray(e)?e:[e]}function dT(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}class dk{constructor(e,t,n){this.gutter=e,this.height=n,this.localMarkers=[],this.i=0,this.cursor=sA.iter(e.markers,t.from)}line(e,t,n){this.localMarkers.length&&(this.localMarkers=[]),dT(this.cursor,this.localMarkers,t.from);let r=n.length?this.localMarkers.concat(n):this.localMarkers,i=this.gutter.config.lineMarker(e,t,r);i&&r.unshift(i);let a=this.gutter;if(0==r.length&&!a.config.renderEmptyElements)return;let o=t.top-this.height;if(this.i==a.elements.length){let n=new dS(e,t.height,o,r);a.elements.push(n),a.dom.appendChild(n.dom)}else a.elements[this.i].update(e,t.height,o,r);this.height=t.bottom,this.i++}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class d_{constructor(e,t){for(let n in this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:""),t.domEventHandlers)this.dom.addEventListener(n,r=>{let i=e.lineBlockAtHeight(r.clientY-e.documentTop);t.domEventHandlers[n](e,i,r)&&r.preventDefault()});this.markers=dx(t.markers(e)),t.initialSpacer&&(this.spacer=new dS(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=dx(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let t=this.config.updateSpacer(this.spacer.markers[0],e);t!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[t])}let n=e.view.viewport;return!sA.eq(this.markers,t,n.from,n.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(e)}destroy(){for(let e of this.elements)e.destroy()}}class dS{constructor(e,t,n,r){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,n,r)}update(e,t,n,r){this.height!=t&&(this.dom.style.height=(this.height=t)+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),!function(e,t){if(e.length!=t.length)return!1;for(let n=0;ns_(e,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let n=Object.assign({},e);for(let e in t){let r=n[e],i=t[e];n[e]=r?(e,t,n)=>r(e,t,n)||i(e,t,n):i}return n}})});class dC extends dg{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function dA(e,t){return e.state.facet(dE).formatNumber(t,e.state)}let dR=db.compute([dE],e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:e=>e.state.facet(dw),lineMarker:(e,t,n)=>n.some(e=>e.toDOM)?null:new dC(dA(e,e.state.doc.lineAt(t.from).number)),lineMarkerChange:e=>e.startState.facet(dE)!=e.state.facet(dE),initialSpacer:e=>new dC(dA(e,dP(e.state.doc.lines))),updateSpacer(e,t){let n=dA(t.view,dP(t.view.state.doc.lines));return n==e.number?e:new dC(n)},domEventHandlers:e.facet(dE).domEventHandlers}));function dP(e){let t=9;for(;t{let t=[],n=-1;for(let r of e.selection.ranges)if(r.empty){let i=e.doc.lineAt(r.head).from;i>n&&(n=i,t.push(dI.range(i)))}return sA.of(t)}),d$=0;class dL{constructor(e,t){this.from=e,this.to=t}}class dD{constructor(e={}){this.id=d$++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=dF.match(e)),t=>{let n=e(t);return void 0===n?null:[this,n]}}}dD.closedBy=new dD({deserialize:e=>e.split(" ")}),dD.openedBy=new dD({deserialize:e=>e.split(" ")}),dD.group=new dD({deserialize:e=>e.split(" ")}),dD.contextHash=new dD({perNode:!0}),dD.lookAhead=new dD({perNode:!0}),dD.mounted=new dD({perNode:!0});class dQ{constructor(e,t,n){this.tree=e,this.overlay=t,this.parser=n}}let dM=Object.create(null);class dF{constructor(e,t,n,r=0){this.name=e,this.props=t,this.id=n,this.flags=r}static define(e){let t=e.props&&e.props.length?Object.create(null):dM,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0),r=new dF(e.name||"",t,e.id,n);if(e.props){for(let n of e.props)if(Array.isArray(n)||(n=n(r)),n){if(n[0].perNode)throw RangeError("Can't store a per-node prop on a node type");t[n[0].id]=n[1]}}return r}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(dD.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let r of n.split(" "))t[r]=e[n];return e=>{for(let n=e.prop(dD.group),r=-1;r<(n?n.length:0);r++){let i=t[r<0?e.name:n[r]];if(i)return i}}}}dF.none=new dF("",Object.create(null),0,8);class dB{constructor(e){this.types=e;for(let t=0;t=r&&(a.type.isAnonymous||!1!==t(a))){if(a.firstChild())continue;e=!0}for(;e&&n&&!a.type.isAnonymous&&n(a),!a.nextSibling();){if(!a.parent())return;e=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:d9(dF.none,this.children,this.positions,0,this.children.length,0,this.length,(e,t,n)=>new dz(this.type,e,t,n,this.propValues),e.makeTree||((e,t,n)=>new dz(dF.none,e,t,n)))}static build(e){return function(e){var t;let{buffer:n,nodeSet:r,maxBufferLength:i=1024,reused:a=[],minRepeatType:o=r.types.length}=e,s=Array.isArray(n)?new dW(n,n.length):n,l=r.types,u=0,c=0;function d(e,t,n,i,a,o,s,l){let u=[],c=[];for(;e.length>i;)u.push(e.pop()),c.push(t.pop()+n-a);e.push(h(r.types[s],u,c,o-a,l-o)),t.push(a-n)}function h(e,t,n,r,i=0,a){if(u){let e=[dD.contextHash,u];a=a?[e].concat(a):[e]}if(i>25){let e=[dD.lookAhead,i];a=a?[e].concat(a):[e]}return new dz(e,t,n,r,a)}let p=[],f=[];for(;s.pos>0;)!function e(t,n,p,f,m){let{id:g,start:O,end:b,size:y}=s,v=c;for(;y<0;){if(s.next(),-1==y){let e=a[g];p.push(e),f.push(O-t);return}if(-3==y){u=g;return}if(-4==y){c=g;return}throw RangeError(`Unrecognized record size: ${y}`)}let x=l[g],T,k,_=O-t;if(b-O<=i&&(k=function(e,t){let n=s.fork(),r=0,a=0,l=0,u=n.end-i,c={size:0,start:0,skip:0};a:for(let i=n.pos-e;n.pos>i;){let e=n.size;if(n.id==t&&e>=0){c.size=r,c.start=a,c.skip=l,l+=4,r+=4,n.next();continue}let s=n.pos-e;if(e<0||s=o?4:0,h=n.start;for(n.next();n.pos>s;){if(n.size<0){if(-3==n.size)d+=4;else break a}else n.id>=o&&(d+=4);n.next()}a=h,r+=e,l+=d}return(t<0||r==e)&&(c.size=r,c.start=a,c.skip=l),c.size>4?c:void 0}(s.pos-n,m))){let e=new Uint16Array(k.size-k.skip),n=s.pos-k.size,i=e.length;for(;s.pos>n;)i=function e(t,n,r){let{id:i,start:a,end:l,size:d}=s;if(s.next(),d>=0&&i4){let i=s.pos-(d-4);for(;s.pos>i;)r=e(t,n,r)}n[--r]=o,n[--r]=l-t,n[--r]=a-t,n[--r]=i}else -3==d?u=i:-4==d&&(c=i);return r}(k.start,e,i);T=new dZ(e,b-k.start,r),_=k.start-t}else{let t=s.pos-y;s.next();let n=[],r=[],a=g>=o?g:-1,l=0,u=b;for(;s.pos>t;)a>=0&&s.id==a&&s.size>=0?(s.end<=u-i&&(d(n,r,O,l,s.end,u,a,v),l=n.length,u=s.end),s.next()):e(O,t,n,r,a);if(a>=0&&l>0&&l-1&&l>0){let e=function(e){return(t,n,r)=>{let i=0,a=t.length-1,o,s;if(a>=0&&(o=t[a])instanceof dz){if(!a&&o.type==e&&o.length==r)return o;(s=o.prop(dD.lookAhead))&&(i=n[a]+o.length+s)}return h(e,t,n,r,i)}}(x);T=d9(x,n,r,0,n.length,0,b-O,e,e)}else T=h(x,n,r,b-O,v-b)}p.push(T),f.push(_)}(e.start||0,e.bufferStart||0,p,f,-1);let m=null!==(t=e.length)&&void 0!==t?t:p.length?f[0]+p[0].length:0;return new dz(l[e.topID],p.reverse(),f.reverse(),m)}(e)}}dz.empty=new dz(dF.none,[],[],0);class dW{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new dW(this.buffer,this.index)}}class dZ{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return dF.none}toString(){let e=[];for(let t=0;t0)));s=a[s+3]);return o}slice(e,t,n,r){let i=this.buffer,a=new Uint16Array(t-e);for(let r=e,o=0;r=t&&nt;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function dG(e,t){let n=e.childBefore(t);for(;n;){let t=n.lastChild;if(!t||t.to!=n.to)break;t.type.isError&&t.from==t.to?(e=n,n=t.prevSibling):n=t}return e}function dH(e,t,n,r){for(var i;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to0?o.length:-1;e!=l;e+=t){let l=o[e],u=s[e]+a.from;if(dq(r,n,u,u+l.length)){if(l instanceof dZ){if(i&_B.ExcludeBuffers)continue;let o=l.findChild(0,l.buffer.length,t,n-u,r);if(o>-1)return new dJ(new dK(a,l,e,u),null,o)}else if(i&_B.IncludeAnonymous||!l.type.isAnonymous||d0(l)){let o;if(!(i&_B.IgnoreMounts)&&l.props&&(o=l.prop(dD.mounted))&&!o.overlay)return new dY(o.tree,u,e,a);let s=new dY(l,u,e,a);return i&_B.IncludeAnonymous||!s.type.isAnonymous?s:s.nextChild(t<0?l.children.length-1:0,t,n,r)}}}if(i&_B.IncludeAnonymous||!a.type.isAnonymous||(e=a.index>=0?a.index+t:t<0?-1:a._parent._tree.children.length,!(a=a._parent)))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,n=0){let r;if(!(n&_B.IgnoreOverlays)&&(r=this._tree.prop(dD.mounted))&&r.overlay){let n=e-this.from;for(let{from:e,to:i}of r.overlay)if((t>0?e<=n:e=n:i>n))return new dY(r.tree,r.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}cursor(e=0){return new d1(this,e)}get tree(){return this._tree}toTree(){return this._tree}resolve(e,t=0){return dH(this,e,t,!1)}resolveInner(e,t=0){return dH(this,e,t,!0)}enterUnfinishedNodesBefore(e){return dG(this,e)}getChild(e,t=null,n=null){let r=dX(this,e,t,n);return r.length?r[0]:null}getChildren(e,t=null,n=null){return dX(this,e,t,n)}toString(){return this._tree.toString()}get node(){return this}matchContext(e){return dV(this,e)}}function dX(e,t,n,r){let i=e.cursor(),a=[];if(!i.firstChild())return a;if(null!=n){for(;!i.type.is(n);)if(!i.nextSibling())return a}for(;;){if(null!=r&&i.type.is(r))return a;if(i.type.is(t)&&a.push(i.node),!i.nextSibling())return null==r?a:[]}}function dV(e,t,n=t.length-1){for(let r=e.parent;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(t[n]&&t[n]!=r.name)return!1;n--}}return!0}class dK{constructor(e,t,n,r){this.parent=e,this.buffer=t,this.index=n,this.start=r}}class dJ{constructor(e,t,n){this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}child(e,t,n){let{buffer:r}=this.context,i=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.context.start,n);return i<0?null:new dJ(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,n=0){if(n&_B.ExcludeBuffers)return null;let{buffer:r}=this.context,i=r.findChild(this.index+4,r.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return i<0?null:new dJ(this.context,this,i)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new dJ(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new dJ(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}cursor(e=0){return new d1(this,e)}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,r=this.index+4,i=n.buffer[this.index+3];if(i>r){let a=n.buffer[this.index+1],o=n.buffer[this.index+2];e.push(n.slice(r,i,a,o)),t.push(0)}return new dz(this.type,e,t,this.to-this.from)}resolve(e,t=0){return dH(this,e,t,!1)}resolveInner(e,t=0){return dH(this,e,t,!0)}enterUnfinishedNodesBefore(e){return dG(this,e)}toString(){return this.context.buffer.childString(this.index)}getChild(e,t=null,n=null){let r=dX(this,e,t,n);return r.length?r[0]:null}getChildren(e,t=null,n=null){return dX(this,e,t,n)}get node(){return this}matchContext(e){return dV(this,e)}}class d1{constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof dY)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let t=e._parent;t;t=t._parent)this.stack.unshift(t.index);this.bufferNode=e,this.yieldBuf(e.index)}}get name(){return this.type.name}yieldNode(e){return!!e&&(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0)}yieldBuf(e,t){this.index=e;let{start:n,buffer:r}=this.buffer;return this.type=t||r.set.types[r.buffer[e]],this.from=n+r.buffer[e+1],this.to=n+r.buffer[e+2],!0}yield(e){return!!e&&(e instanceof dY?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,n,this.mode));let{buffer:r}=this.buffer,i=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.buffer.start,n);return!(i<0)&&(this.stack.push(this.index),this.yieldBuf(i))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,n=this.mode){return this.buffer?!(n&_B.ExcludeBuffers)&&this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&_B.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&_B.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode));let{buffer:t}=this.buffer,n=this.stack.length-1;if(e<0){let e=n<0?0:this.stack[n]+4;if(this.index!=e)return this.yieldBuf(t.findChild(e,this.index,-1,0,4))}else{let e=t.buffer[this.index+3];if(e<(n<0?t.buffer.length:t.buffer[this.stack[n]+3]))return this.yieldBuf(e)}return n<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,n,{buffer:r}=this;if(r){if(e>0){if(this.index-1)for(let r=t+e,i=e<0?-1:n._tree.children.length;r!=i;r+=e){let e=n._tree.children[r];if(this.mode&_B.IncludeAnonymous||e instanceof dZ||!e.type.isAnonymous||d0(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to=0;){for(let a=e;a;a=a._parent)if(a.index==r){if(r==this.index)return a;t=a,n=i+1;break a}r=this.stack[--i]}for(let e=n;e=0;i--){if(i<0)return dV(this.node,e,r);let a=n[t.buffer[this.stack[i]]];if(!a.isAnonymous){if(e[r]&&e[r]!=a.name)return!1;r--}}return!0}}function d0(e){return e.children.some(e=>e instanceof dZ||!e.type.isAnonymous||d0(e))}let d2=new WeakMap;function d5(e,t){if(!e.isAnonymous||t instanceof dZ||t.type!=e)return 1;let n=d2.get(t);if(null==n){for(let r of(n=1,t.children)){if(r.type!=e||!(r instanceof dz)){n=1;break}n+=d5(e,r)}d2.set(t,n)}return n}function d9(e,t,n,r,i,a,o,s,l){let u=0;for(let n=r;n=c)break;f+=t}if(u==i+1){if(f>c){let e=n[i];t(e.children,e.positions,0,e.children.length,r[i]+s);continue}d.push(n[i])}else{let t=r[u-1]+n[u-1].length-p;d.push(d9(e,n,r,i,u,p,t,null,l))}h.push(p+s-a)}}(t,n,r,i,0),(s||l)(d,h,o)}class d4{constructor(e,t,n,r,i=!1,a=!1){this.from=e,this.to=t,this.tree=n,this.offset=r,this.open=(i?1:0)|(a?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,t=[],n=!1){let r=[new d4(0,e.length,e,0,!1,n)];for(let n of t)n.to>e.length&&r.push(n);return r}static applyChanges(e,t,n=128){if(!t.length)return e;let r=[],i=1,a=e.length?e[0]:null;for(let o=0,s=0,l=0;;o++){let u=o=n)for(;a&&a.from=t.from||c<=t.to||l){let e=Math.max(t.from,s)-l,n=Math.min(t.to,c)-l;t=e>=n?null:new d4(e,n,t.tree,t.offset+l,o>0,!!u)}if(t&&r.push(t),a.to>c)break;a=inew dL(e.from,e.to)):[new dL(0,0)]:[new dL(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let r=this.startParse(e,t,n);for(;;){let e=r.advance();if(e)return e}}}class d8{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}function d6(e){return(t,n,r,i)=>new hn(t,e,n,r,i)}class d7{constructor(e,t,n,r,i){this.parser=e,this.parse=t,this.overlay=n,this.target=r,this.ranges=i}}class he{constructor(e,t,n,r,i,a,o){this.parser=e,this.predicate=t,this.mounts=n,this.index=r,this.start=i,this.target=a,this.prev=o,this.depth=0,this.ranges=[]}}let ht=new dD({perNode:!0});class hn{constructor(e,t,n,r,i){this.nest=t,this.input=n,this.fragments=r,this.ranges=i,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let e=this.baseParse.advance();if(!e)return null;if(this.baseParse=null,this.baseTree=e,this.startInner(),null!=this.stoppedAt)for(let e of this.inner)e.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let e=this.baseTree;return null!=this.stoppedAt&&(e=new dz(e.type,e.children,e.positions,e.length,e.propValues.concat([[ht,this.stoppedAt]]))),e}let e=this.inner[this.innerDone],t=e.parse.advance();if(t){this.innerDone++;let n=Object.assign(Object.create(null),e.target.props);n[dD.mounted.id]=new dQ(t,e.overlay,e.parser),e.target.props=n}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let t=this.innerDone;te.frag.from<=r.from&&e.frag.to>=r.to&&e.mount.overlay);if(e)for(let n of e.mount.overlay){let i=n.from+e.pos,a=n.to+e.pos;i>=r.from&&a<=r.to&&!t.ranges.some(e=>e.fromi)&&t.ranges.push({from:i,to:a})}}o=!1}else if(n&&(a=function(e,t,n){for(let r of e){if(r.from>=n)break;if(r.to>t)return r.from<=t&&r.to>=n?2:1}return 0}(n.ranges,r.from,r.to)))o=2!=a;else if(!r.type.isAnonymous&&r.from=t.to);r++);let o=i.children[r],s=o.buffer;i.children[r]=function e(n,r,i,l,u){let c=n;for(;s[c+2]+a<=t.from;)c=s[c+3];let d=[],h=[];hr(o,n,c,d,h,l);let p=s[c+1],f=s[c+2],m=p+a==t.from&&f+a==t.to&&s[c]==t.type.id;return d.push(m?t.toTree():e(c+4,s[c+3],o.set.types[s[c]],p,f-p)),h.push(p-l),hr(o,s[c+3],r,d,h,l),new dz(i,d,h,u)}(0,s.length,dF.none,0,o.length);for(let r=0;r<=n;r++)e.childAfter(t.from)}(r);let a=e.findMounts(r.from,i.parser);if("function"==typeof i.overlay)t=new he(i.parser,i.overlay,a,this.inner.length,r.from,r.tree,t);else{let e=ho(this.ranges,i.overlay||[new dL(r.from,r.to)]);e.length&&this.inner.push(new d7(i.parser,i.parser.startParse(this.input,hs(a,e),e),i.overlay?i.overlay.map(e=>new dL(e.from-r.from,e.to-r.from)):null,r.tree,e)),i.overlay?e.length&&(n={ranges:e,depth:0,prev:n}):o=!1}}else t&&(s=t.predicate(r))&&(!0===s&&(s=new dL(r.from,r.to)),s.fromnew dL(e.from-t.start,e.to-t.start)),t.target,e)),t=t.prev}!n||--n.depth||(n=n.prev)}}}}function hr(e,t,n,r,i,a){if(t=e&&t.enter(n,1,_B.IgnoreOverlays|_B.ExcludeBuffers)||t.next(!1)||(this.done=!0)}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let t=this.cursor.tree;;){if(t==e.tree)return!0;if(t.children.length&&0==t.positions[0]&&t.children[0]instanceof dz)t=t.children[0];else break}return!1}}class ha{constructor(e){var t;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let n=this.curFrag=e[0];this.curTo=null!==(t=n.tree.prop(ht))&&void 0!==t?t:n.to,this.inner=new hi(n.tree,-n.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let t=this.curFrag=this.fragments[this.fragI];this.curTo=null!==(e=t.tree.prop(ht))&&void 0!==e?e:t.to,this.inner=new hi(t.tree,-t.offset)}}findMounts(e,t){var n;let r=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let e=this.inner.cursor.node;e;e=e.parent){let i=null===(n=e.tree)||void 0===n?void 0:n.prop(dD.mounted);if(i&&i.parser==t)for(let t=this.fragI;t=e.to)break;n.tree==this.curFrag.tree&&r.push({frag:n,pos:e.from-n.offset,mount:i})}}}return r}}function ho(e,t){let n=null,r=t;for(let i=1,a=0;i=s)break;!(e.to<=o)&&(n||(r=n=t.slice()),e.froms&&n.splice(a+1,0,new dL(s,e.to))):e.to>s?n[a--]=new dL(s,e.to):n.splice(a--,1))}}return r}function hs(e,t){let n=[];for(let{pos:r,mount:i,frag:a}of e){let e=r+(i.overlay?i.overlay[0].from:0),o=e+i.tree.length,s=Math.max(a.from,e),l=Math.min(a.to,o);if(i.overlay){let o=function(e,t,n,r){let i=0,a=0,o=!1,s=!1,l=-1e9,u=[];for(;;){let c=i==e.length?1e9:o?e[i].to:e[i].from,d=a==t.length?1e9:s?t[a].to:t[a].from;if(o!=s){let e=Math.max(l,n),t=Math.min(c,d,r);enew dL(e.from+r,e.to+r)),s,l);for(let t=0,r=s;;t++){let s=t==o.length,u=s?l:o[t].from;if(u>r&&n.push(new d4(r,u,i.tree,-e,a.from>=r,a.to<=u)),s)break;r=o[t].to}}else n.push(new d4(s,l,i.tree,-e,a.from>=e,a.to<=o))}return n}let hl=0;class hu{constructor(e,t,n){this.set=e,this.base=t,this.modified=n,this.id=hl++}static define(e){if(null==e?void 0:e.base)throw Error("Can not derive from a modified tag");let t=new hu([],null,[]);if(t.set.push(t),e)for(let n of e.set)t.set.push(n);return t}static defineModifier(){let e=new hd;return t=>t.modified.indexOf(e)>-1?t:hd.get(t.base||t,t.modified.concat(e).sort((e,t)=>e.id-t.id))}}let hc=0;class hd{constructor(){this.instances=[],this.id=hc++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find(n=>{var r;return n.base==e&&(r=n.modified,t.length==r.length&&t.every((e,t)=>e==r[t]))});if(n)return n;let r=[],i=new hu(r,e,t);for(let e of t)e.instances.push(i);let a=function e(t){let n=[t];for(let r=0;r0&&t+3==e.length){i=1;break}let r=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(a);if(!r)throw RangeError("Invalid path: "+e);if(n.push("*"==r[0]?"":'"'==r[0][0]?JSON.parse(r[0]):r[0]),(t+=r[0].length)==e.length)break;let o=e[t++];if(t==e.length&&"!"==o){i=0;break}if("/"!=o)throw RangeError("Invalid path: "+e);a=e.slice(t)}let o=n.length-1,s=n[o];if(!s)throw RangeError("Invalid path: "+e);let l=new hf(r,i,o>0?n.slice(0,o):null);t[s]=l.sort(t[s])}}return hp.add(t)}let hp=new dD;class hf{constructor(e,t,n,r){this.tags=e,this.mode=t,this.context=n,this.next=r}sort(e){return!e||e.depth{let t=i;for(let r of e)for(let e of r.set){let r=n[e.id];if(r){t=t?t+" "+r:r;break}}return t},scope:r}}class hg{constructor(e,t,n){this.at=e,this.highlighters=t,this.span=n,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,n,r,i){let{type:a,from:o,to:s}=e;if(o>=n||s<=t)return;a.isTop&&(i=this.highlighters.filter(e=>!e.scope||e.scope(a)));let l=r,u=a.prop(hp),c=!1;for(;u;){if(!u.context||e.matchContext(u.context)){let e=function(e,t){let n=null;for(let r of e){let e=r.style(t);e&&(n=n?n+" "+e:e)}return n}(i,u.tags);e&&(l&&(l+=" "),l+=e,1==u.mode?r+=(r?" ":"")+e:0==u.mode&&(c=!0));break}u=u.next}if(this.startSpan(e.from,l),c)return;let d=e.tree&&e.tree.prop(dD.mounted);if(d&&d.overlay){let a=e.node.enter(d.overlay[0].from+o,1),u=this.highlighters.filter(e=>!e.scope||e.scope(d.tree.type)),c=e.firstChild();for(let h=0,p=o;;h++){let f=h=m)&&e.nextSibling()););if(!f||m>n)break;(p=f.to+o)>t&&(this.highlightRange(a.cursor(),Math.max(t,f.from+o),Math.min(n,p),r,u),this.startSpan(p,l))}c&&e.parent()}else if(e.firstChild()){do{if(e.to<=t)continue;if(e.from>=n)break;this.highlightRange(e,t,n,r,i),this.startSpan(Math.min(n,e.to),l)}while(e.nextSibling());e.parent()}}}let hO=hu.define,hb=hO(),hy=hO(),hv=hO(hy),hx=hO(hy),hT=hO(),hk=hO(hT),h_=hO(hT),hS=hO(),hw=hO(hS),hE=hO(),hC=hO(),hA=hO(),hR=hO(hA),hP=hO(),hI={comment:hb,lineComment:hO(hb),blockComment:hO(hb),docComment:hO(hb),name:hy,variableName:hO(hy),typeName:hv,tagName:hO(hv),propertyName:hx,attributeName:hO(hx),className:hO(hy),labelName:hO(hy),namespace:hO(hy),macroName:hO(hy),literal:hT,string:hk,docString:hO(hk),character:hO(hk),attributeValue:hO(hk),number:h_,integer:hO(h_),float:hO(h_),bool:hO(hT),regexp:hO(hT),escape:hO(hT),color:hO(hT),url:hO(hT),keyword:hE,self:hO(hE),null:hO(hE),atom:hO(hE),unit:hO(hE),modifier:hO(hE),operatorKeyword:hO(hE),controlKeyword:hO(hE),definitionKeyword:hO(hE),moduleKeyword:hO(hE),operator:hC,derefOperator:hO(hC),arithmeticOperator:hO(hC),logicOperator:hO(hC),bitwiseOperator:hO(hC),compareOperator:hO(hC),updateOperator:hO(hC),definitionOperator:hO(hC),typeOperator:hO(hC),controlOperator:hO(hC),punctuation:hA,separator:hO(hA),bracket:hR,angleBracket:hO(hR),squareBracket:hO(hR),paren:hO(hR),brace:hO(hR),content:hS,heading:hw,heading1:hO(hw),heading2:hO(hw),heading3:hO(hw),heading4:hO(hw),heading5:hO(hw),heading6:hO(hw),contentSeparator:hO(hS),list:hO(hS),quote:hO(hS),emphasis:hO(hS),strong:hO(hS),link:hO(hS),monospace:hO(hS),strikethrough:hO(hS),inserted:hO(),deleted:hO(),changed:hO(),invalid:hO(),meta:hP,documentMeta:hO(hP),annotation:hO(hP),processingInstruction:hO(hP),definition:hu.defineModifier(),constant:hu.defineModifier(),function:hu.defineModifier(),standard:hu.defineModifier(),local:hu.defineModifier(),special:hu.defineModifier()};hm([{tag:hI.link,class:"tok-link"},{tag:hI.heading,class:"tok-heading"},{tag:hI.emphasis,class:"tok-emphasis"},{tag:hI.strong,class:"tok-strong"},{tag:hI.keyword,class:"tok-keyword"},{tag:hI.atom,class:"tok-atom"},{tag:hI.bool,class:"tok-bool"},{tag:hI.url,class:"tok-url"},{tag:hI.labelName,class:"tok-labelName"},{tag:hI.inserted,class:"tok-inserted"},{tag:hI.deleted,class:"tok-deleted"},{tag:hI.literal,class:"tok-literal"},{tag:hI.string,class:"tok-string"},{tag:hI.number,class:"tok-number"},{tag:[hI.regexp,hI.escape,hI.special(hI.string)],class:"tok-string2"},{tag:hI.variableName,class:"tok-variableName"},{tag:hI.local(hI.variableName),class:"tok-variableName tok-local"},{tag:hI.definition(hI.variableName),class:"tok-variableName tok-definition"},{tag:hI.special(hI.variableName),class:"tok-variableName2"},{tag:hI.definition(hI.propertyName),class:"tok-propertyName tok-definition"},{tag:hI.typeName,class:"tok-typeName"},{tag:hI.namespace,class:"tok-namespace"},{tag:hI.className,class:"tok-className"},{tag:hI.macroName,class:"tok-macroName"},{tag:hI.propertyName,class:"tok-propertyName"},{tag:hI.operator,class:"tok-operator"},{tag:hI.comment,class:"tok-comment"},{tag:hI.meta,class:"tok-meta"},{tag:hI.invalid,class:"tok-invalid"},{tag:hI.punctuation,class:"tok-punctuation"}]);let hN=new dD;function h$(e){return oJ.define({combine:e?t=>t.concat(e):void 0})}class hL{constructor(e,t,n=[]){this.data=e,sk.prototype.hasOwnProperty("tree")||Object.defineProperty(sk.prototype,"tree",{get(){return hM(this)}}),this.parser=t,this.extension=[hG.of(this),sk.languageData.of((e,t,n)=>e.facet(hD(e,t,n)))].concat(n)}isActiveAt(e,t,n=-1){return hD(e,t,n)==this.data}findRegions(e){let t=e.facet(hG);if((null==t?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let n=[],r=(e,t)=>{if(e.prop(hN)==this.data){n.push({from:t,to:t+e.length});return}let i=e.prop(dD.mounted);if(i){if(i.tree.prop(hN)==this.data){if(i.overlay)for(let e of i.overlay)n.push({from:e.from+t,to:e.to+t});else n.push({from:t,to:t+e.length});return}if(i.overlay){let e=n.length;if(r(i.tree,i.overlay[0].from+t),n.length>e)return}}for(let n=0;ne.isTop?t:void 0)]}))}configure(e){return new hQ(this.data,this.parser.configure(e))}get allowsNesting(){return this.parser.hasWrappers()}}function hM(e){let t=e.field(hL.state,!1);return t?t.tree:dz.empty}class hF{constructor(e,t=e.length){this.doc=e,this.length=t,this.cursorPos=0,this.string="",this.cursor=e.iter()}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let n=this.cursorPos-this.string.length;return e=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}}let hB=null;class hU{constructor(e,t,n=[],r,i,a,o,s){this.parser=e,this.state=t,this.fragments=n,this.tree=r,this.treeLen=i,this.viewport=a,this.skipped=o,this.scheduleOn=s,this.parse=null,this.tempSkipped=[]}static create(e,t,n){return new hU(e,t,[],dz.empty,0,n,[],null)}startParse(){return this.parser.startParse(new hF(this.state.doc),this.fragments)}work(e,t){return(null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=dz.empty&&this.isDone(null!=t?t:this.state.doc.length))?(this.takeTree(),!0):this.withContext(()=>{var n;if("number"==typeof e){let t=Date.now()+e;e=()=>Date.now()>t}for(this.parse||(this.parse=this.startParse()),null!=t&&(null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&t=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(d4.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=hB;hB=this;try{return e()}finally{hB=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=hj(e,t.from,t.to);return e}changes(e,t){let{fragments:n,tree:r,treeLen:i,viewport:a,skipped:o}=this;if(this.takeTree(),!e.empty){let t=[];if(e.iterChangedRanges((e,n,r,i)=>t.push({fromA:e,toA:n,fromB:r,toB:i})),n=d4.applyChanges(n,t),r=dz.empty,i=0,a={from:e.mapPos(a.from,-1),to:e.mapPos(a.to,1)},this.skipped.length)for(let t of(o=[],this.skipped)){let n=e.mapPos(t.from,1),r=e.mapPos(t.to,-1);ne.from&&(this.fragments=hj(this.fragments,n,r),this.skipped.splice(t--,1))}return!(this.skipped.length>=t)&&(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends d3{createParse(t,n,r){let i=r[0].from,a=r[r.length-1].to;return{parsedPos:i,advance(){let t=hB;if(t){for(let e of r)t.tempSkipped.push(e);e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}return this.parsedPos=a,new dz(dF.none,[],[],a-i)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}static get(){return hB}}function hj(e,t,n){return d4.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class hz{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,n)||t.takeTree(),new hz(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=hU.create(e.facet(hG).parser,e,{from:0,to:t});return n.work(20,t)||n.takeTree(),new hz(n)}}hL.state=o4.define({create:hz.init,update(e,t){for(let e of t.effects)if(e.is(hL.setState))return e.value;return t.startState.facet(hG)!=t.state.facet(hG)?hz.init(t.state):e.apply(t)}});let hW=e=>{let t=setTimeout(()=>e(),500);return()=>clearTimeout(t)};"undefined"!=typeof requestIdleCallback&&(hW=e=>{let t=-1,n=setTimeout(()=>{t=requestIdleCallback(e,{timeout:400})},100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});let hZ="undefined"!=typeof navigator&&(null===(_U=navigator.scheduling)||void 0===_U?void 0:_U.isInputPending)?()=>navigator.scheduling.isInputPending():null,hq=l7.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(hL.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),e.docChanged&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(hL.state);t.tree==t.context.tree&&t.context.isDone(e.doc.length)||(this.working=hW(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEndr+1e3,s=i.context.work(()=>hZ&&hZ()||Date.now()>a,r+(o?0:1e5));this.chunkBudget-=Date.now()-t,(s||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:hL.setState.of(new hz(i.context))})),this.chunkBudget>0&&!(s&&!o)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(e=>l4(this.view.state,e)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),hG=oJ.define({combine:e=>e.length?e[0]:null,enables:[hL.state,hq]});class hH{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}class hY{constructor(e,t,n,r,i,a){this.name=e,this.alias=t,this.extensions=n,this.filename=r,this.loadFunc=i,this.support=a,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(e=>this.support=e,e=>{throw this.loading=null,e}))}static of(e){let{load:t,support:n}=e;if(!t){if(!n)throw RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");t=()=>Promise.resolve(n)}return new hY(e.name,(e.alias||[]).concat(e.name).map(e=>e.toLowerCase()),e.extensions||[],e.filename,t,n)}static matchFilename(e,t){for(let n of e)if(n.filename&&n.filename.test(t))return n;let n=/\.([^.]+)$/.exec(t);if(n){for(let t of e)if(t.extensions.indexOf(n[1])>-1)return t}return null}static matchLanguageName(e,t,n=!0){for(let n of(t=t.toLowerCase(),e))if(n.alias.some(e=>e==t))return n;if(n)for(let n of e)for(let e of n.alias){let r=t.indexOf(e);if(r>-1&&(e.length>2||!/\w/.test(t[r-1])&&!/\w/.test(t[r+e.length])))return n}return null}}let hX=oJ.define(),hV=oJ.define({combine:e=>{if(!e.length)return" ";if(!/^(?: +|\t+)$/.test(e[0]))throw Error("Invalid indent unit: "+JSON.stringify(e[0]));return e[0]}});class hK{constructor(e,t={}){let n;this.state=e,this.options=t,this.unit=9==(n=e.facet(hV)).charCodeAt(0)?e.tabSize*n.length:n.length}lineAt(e,t=1){let n=this.state.doc.lineAt(e),{simulateBreak:r,simulateDoubleBreak:i}=this.options;return null!=r&&r>=n.from&&r<=n.to?i&&r==e?{text:"",from:e}:(t<0?r-1&&(i+=a-this.countColumn(n,n.search(/\S|$/))),i}countColumn(e,t=e.length){return sU(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:n,from:r}=this.lineAt(e,t),i=this.options.overrideIndentation;if(i){let e=i(r);if(e>-1)return e}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}let hJ=new dD;function h1(e,t,n){for(;e;e=e.parent){let r=function(e){let t=e.type.prop(hJ);if(t)return t;let n=e.firstChild,r;if(n&&(r=n.type.prop(dD.closedBy))){let t=e.lastChild,n=t&&r.indexOf(t.name)>-1;return e=>h9(e,!0,1,void 0,n&&!(e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak)?t.from:void 0)}return null==e.parent?h0:null}(e);if(r)return r(h2.create(n,t,e))}return null}function h0(){return 0}class h2 extends hK{constructor(e,t,n){super(e.state,e.options),this.base=e,this.pos=t,this.node=n}static create(e,t,n){return new h2(e,t,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){let e=this.state.doc.lineAt(this.node.from);for(;;){let t=this.node.resolve(e.from);for(;t.parent&&t.parent.from==t.from;)t=t.parent;if(function(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}(t,this.node))break;e=this.state.doc.lineAt(t.from)}return this.lineIndent(e.from)}continue(){let e=this.node.parent;return e?h1(e,this.pos,this.base):0}}function h5({closing:e,align:t=!0,units:n=1}){return r=>h9(r,t,n,e)}function h9(e,t,n,r,i){let a=e.textAfter,o=a.match(/^\s*/)[0].length,s=r&&a.slice(o,o+r.length)==r||i==e.pos+o,l=t?function(e){let t=e.node,n=t.childAfter(t.from),r=t.lastChild;if(!n)return null;let i=e.options.simulateBreak,a=e.state.doc.lineAt(n.from),o=null==i||i<=a.from?a.to:Math.min(a.to,i);for(let e=n.to;;){let i=t.childAfter(e);if(!i||i==r)return null;if(!i.type.isSkipped)return i.from{let r=e&&e.test(n.textAfter);return n.baseIndent+(r?0:t*n.unit)}}let h3=new dD;function h8(e){let t=e.firstChild,n=e.lastChild;return t&&t.to=r?void 0:{from:n,to:r}}let h7=sm.define({map:h6}),pe=sm.define({map:h6}),pt=o4.define({create:()=>lF.none,update(e,t){for(let n of(e=e.map(t.changes),t.effects))n.is(h7)&&!function(e,t,n){let r=!1;return e.between(t,t,(e,i)=>{e==t&&i==n&&(r=!0)}),r}(e,n.value.from,n.value.to)?e=e.update({add:[pi.range(n.value.from,n.value.to)]}):n.is(pe)&&(e=e.update({filter:(e,t)=>n.value.from!=e||n.value.to!=t,filterFrom:n.value.from,filterTo:n.value.to}));if(t.selection){let n=!1,{head:r}=t.selection.main;e.between(r,r,(e,t)=>{er&&(n=!0)}),n&&(e=e.update({filterFrom:r,filterTo:r,filter:(e,t)=>t<=r||e>=r}))}return e},provide:e=>c$.decorations.from(e)}),pn={placeholderDOM:null,placeholderText:"…"},pr=oJ.define({combine:e=>s_(e,pn)}),pi=lF.replace({widget:new class extends lQ{toDOM(e){let{state:t}=e,n=t.facet(pr),r=t=>{var n,r,i,a;let o,s=e.lineBlockAt(e.posAtDOM(t.target)),l=(n=e.state,r=s.from,i=s.to,o=null,null===(a=n.field(pt,!1))||void 0===a||a.between(r,i,(e,t)=>{(!o||o.from>e)&&(o={from:e,to:t})}),o);l&&e.dispatch({effects:pe.of(l)}),t.preventDefault()};if(n.placeholderDOM)return n.placeholderDOM(e,r);let i=document.createElement("span");return i.textContent=n.placeholderText,i.setAttribute("aria-label",t.phrase("folded code")),i.title=t.phrase("unfold"),i.className="cm-foldPlaceholder",i.onclick=r,i}}});class pa{constructor(e,t){let n;function r(e){let t=sZ.newName();return(n||(n=Object.create(null)))["."+t]=e,t}let i="string"==typeof t.all?t.all:t.all?r(t.all):void 0,a=t.scope;this.scope=a instanceof hL?e=>e.prop(hN)==a.data:a?e=>e==a:void 0,this.style=hm(e.map(e=>({tag:e.tag,class:e.class||r(Object.assign({},e,{tag:null}))})),{all:i}).style,this.module=n?new sZ(n):null,this.themeType=t.themeType}static define(e,t){return new pa(e,t||{})}}let po=oJ.define(),ps=oJ.define({combine:e=>e.length?[e[0]]:null});function pl(e){let t=e.facet(po);return t.length?t:e.facet(ps)}let pu=o6.high(l7.fromClass(class{constructor(e){this.markCache=Object.create(null),this.tree=hM(e.state),this.decorations=this.buildDeco(e,pl(e.state))}update(e){let t=hM(e.state),n=pl(e.state),r=n!=pl(e.startState);t.length{n.add(e,t,this.markCache[r]||(this.markCache[r]=lF.mark({class:r})))},r,i);return n.finish()}},{decorations:e=>e.decorations})),pc=pa.define([{tag:hI.meta,color:"#7a757a"},{tag:hI.link,textDecoration:"underline"},{tag:hI.heading,textDecoration:"underline",fontWeight:"bold"},{tag:hI.emphasis,fontStyle:"italic"},{tag:hI.strong,fontWeight:"bold"},{tag:hI.strikethrough,textDecoration:"line-through"},{tag:hI.keyword,color:"#708"},{tag:[hI.atom,hI.bool,hI.url,hI.contentSeparator,hI.labelName],color:"#219"},{tag:[hI.literal,hI.inserted],color:"#164"},{tag:[hI.string,hI.deleted],color:"#a11"},{tag:[hI.regexp,hI.escape,hI.special(hI.string)],color:"#e40"},{tag:hI.definition(hI.variableName),color:"#00f"},{tag:hI.local(hI.variableName),color:"#30a"},{tag:[hI.typeName,hI.namespace],color:"#085"},{tag:hI.className,color:"#167"},{tag:[hI.special(hI.variableName),hI.macroName],color:"#256"},{tag:hI.definition(hI.propertyName),color:"#00c"},{tag:hI.comment,color:"#940"},{tag:hI.invalid,color:"#f00"}]),pd=Object.create(null),ph=[dF.none],pp=[],pf=Object.create(null);for(let[e,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","typeName"],["attribute","propertyName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])pf[e]=function(e,t){let n=null;for(let r of t.split(".")){let t=e[r]||hI[r];t?"function"==typeof t?n?n=t(n):pm(r,`Modifier ${r} used at start of tag`):n?pm(r,`Tag ${r} used as modifier`):n=t:pm(r,`Unknown highlighting tag ${r}`)}if(!n)return 0;let r=t.replace(/ /g,"_"),i=dF.define({id:ph.length,name:r,props:[hh({[r]:n})]});return ph.push(i),i.id}(pd,t);function pm(e,t){pp.indexOf(e)>-1||(pp.push(e),console.warn(t))}class pg{constructor(e,t,n){this.state=e,this.pos=t,this.explicit=n,this.abortListeners=[]}tokenBefore(e){let t=hM(this.state).resolveInner(this.pos,-1);for(;t&&0>e.indexOf(t.name);)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),n=Math.max(t.from,this.pos-250),r=t.text.slice(n-t.from,this.pos-t.from),i=r.search(pT(e,!1));return i<0?null:{from:n+i,to:this.pos,text:r.slice(i)}}get aborted(){return null==this.abortListeners}addEventListener(e,t){"abort"==e&&this.abortListeners&&this.abortListeners.push(t)}}function pO(e){let t=Object.keys(e).join(""),n=/\w/.test(t);return n&&(t=t.replace(/\w/g,"")),`[${n?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}function pb(e){let t=e.map(e=>"string"==typeof e?{label:e}:e),[n,r]=t.every(e=>/^\w+$/.test(e.label))?[/\w*$/,/\w+$/]:function(e){let t=Object.create(null),n=Object.create(null);for(let{label:r}of e){t[r[0]]=!0;for(let e=1;e{let i=e.matchBefore(r);return i||e.explicit?{from:i?i.from:e.pos,options:t,validFor:n}:null}}function py(e,t){return n=>{for(let t=hM(n.state).resolveInner(n.pos,-1);t;t=t.parent)if(e.indexOf(t.name)>-1)return null;return t(n)}}class pv{constructor(e,t,n){this.completion=e,this.source=t,this.match=n}}function px(e){return e.selection.main.head}function pT(e,t){var n;let{source:r}=e,i=t&&"^"!=r[0],a="$"!=r[r.length-1];return i||a?RegExp(`${i?"^":""}(?:${r})${a?"$":""}`,null!==(n=e.flags)&&void 0!==n?n:e.ignoreCase?"i":""):e}function pk(e,t){let n=t.completion.apply||t.completion.label,r=t.source;if("string"==typeof n){var i,a,o;e.dispatch((i=e.state,a=r.from,o=r.to,Object.assign(Object.assign({},i.changeByRange(e=>{if(e==i.selection.main)return{changes:{from:a,to:o,insert:n},range:oX.cursor(a+n.length)};let t=o-a;return!e.empty||t&&i.sliceDoc(e.from-t,e.from)!=i.sliceDoc(a,o)?{range:e}:{changes:{from:e.from-t,to:e.from,insert:n},range:oX.cursor(e.from-t+n.length)}})),{userEvent:"input.complete"})))}else n(e,t.completion,r.from,r.to)}let p_=new WeakMap;function pS(e){if(!Array.isArray(e))return e;let t=p_.get(e);return t||p_.set(e,t=pb(e)),t}class pw{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[];for(let t=0;t=48&&l<=57||l>=97&&l<=122?2:l>=65&&l<=90?1:0:(b=oQ(l))!=b.toLowerCase()?1:b!=b.toUpperCase()?2:0;(!r||1==y&&m||0==O&&0!=y)&&(t[c]==l||n[c]==l&&(d=!0)?a[c++]=r:a.length&&(g=!1)),O=y,r+=oM(l)}return c==s&&0==a[0]&&g?this.result(-100+(d?-200:0),a,e):h==s&&0==p?[-200-e.length,0,f]:o>-1?[-700-e.length,o,o+this.pattern.length]:h==s?[-900-e.length,p,f]:c==s?this.result(-100+(d?-200:0)+-700+(g?0:-1100),a,e):2==t.length?null:this.result((r[0]?-700:0)+-200+-1100,r,e)}result(e,t,n){let r=[e-n.length],i=1;for(let e of t){let t=e+(this.astral?oM(oD(n,e)):1);i>1&&r[i-1]==e?r[i-1]=t:(r[i++]=e,r[i++]=t)}return r}}let pE=oJ.define({combine:e=>s_(e,{activateOnTyping:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[]},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,optionClass:(e,t)=>n=>{var r,i;return r=e(n),i=t(n),r?i?r+" "+i:r:i},addToOptions:(e,t)=>e.concat(t)})});function pC(e,t,n){if(e<=n)return{from:0,to:e};if(t<=e>>1){let e=Math.floor(t/n);return{from:e*n,to:(e+1)*n}}let r=Math.floor((e-t)/n);return{from:e-(r+1)*n,to:e-r*n}}class pA{constructor(e,t){let n;this.view=e,this.stateField=t,this.info=null,this.placeInfo={read:()=>this.measureInfo(),write:e=>this.positionInfo(e),key:this};let r=e.state.field(t),{options:i,selected:a}=r.open,o=e.state.facet(pE);this.optionContent=(n=o.addToOptions.slice(),o.icons&&n.push({render(e){let t=document.createElement("div");return t.classList.add("cm-completionIcon"),e.type&&t.classList.add(...e.type.split(/\s+/g).map(e=>"cm-completionIcon-"+e)),t.setAttribute("aria-hidden","true"),t},position:20}),n.push({render(e,t,n){let r=document.createElement("span");r.className="cm-completionLabel";let{label:i}=e,a=0;for(let e=1;ea&&r.appendChild(document.createTextNode(i.slice(a,t)));let s=r.appendChild(document.createElement("span"));s.appendChild(document.createTextNode(i.slice(t,o))),s.className="cm-completionMatchedText",a=o}return ae.position-t.position).map(e=>e.render)),this.optionClass=o.optionClass,this.range=pC(i.length,a,o.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.dom.addEventListener("mousedown",t=>{for(let n=t.target,r;n&&n!=this.dom;n=n.parentNode)if("LI"==n.nodeName&&(r=/-(\d+)$/.exec(n.id))&&+r[1]{this.info&&this.view.requestMeasure(this.placeInfo)})}mount(){this.updateSel()}update(e){e.state.field(this.stateField)!=e.startState.field(this.stateField)&&this.updateSel()}positioned(){this.info&&this.view.requestMeasure(this.placeInfo)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;if((t.selected=this.range.to)&&(this.range=pC(t.options.length,t.selected,this.view.state.facet(pE).maxRenderedOptions),this.list.remove(),this.list=this.dom.appendChild(this.createListBox(t.options,e.id,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfo)})),this.updateSelectedOption(t.selected)){this.info&&(this.info.remove(),this.info=null);let{completion:n}=t.options[t.selected],{info:r}=n;if(!r)return;let i="string"==typeof r?document.createTextNode(r):r(n);if(!i)return;"then"in i?i.then(t=>{t&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(t)}).catch(e=>l4(this.view.state,e,"completion info")):this.addInfoPane(i)}}addInfoPane(e){let t=this.info=document.createElement("div");t.className="cm-tooltip cm-completionInfo",t.appendChild(e),this.dom.appendChild(t),this.view.requestMeasure(this.placeInfo)}updateSelectedOption(e){var t,n;let r,i,a=null;for(let t=this.list.firstChild,n=this.range.from;t;t=t.nextSibling,n++)n==e?t.hasAttribute("aria-selected")||(t.setAttribute("aria-selected","true"),a=t):t.hasAttribute("aria-selected")&&t.removeAttribute("aria-selected");return a&&(t=this.list,n=a,r=t.getBoundingClientRect(),(i=n.getBoundingClientRect()).topr.bottom&&(t.scrollTop+=i.bottom-r.bottom)),a}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),r=e.getBoundingClientRect();if(r.top>Math.min(innerHeight,t.bottom)-10||r.bottom=this.options.length?this:new pP(this.options,p$(t,e),this.tooltip,this.timestamp,e)}static build(e,t,n,r,i){let a=function(e,t){let n=[],r=0;for(let i of e)if(i.hasResult()){if(!1===i.result.filter){let e=i.result.getMatch;for(let t of i.result.options){let a=[1e9-r++];if(e)for(let n of e(t))a.push(n);n.push(new pv(t,i,a))}}else{let e=new pw(t.sliceDoc(i.from,i.to)),r;for(let t of i.result.options)(r=e.match(t.label))&&(null!=t.boost&&(r[0]+=t.boost),n.push(new pv(t,i,r)))}}let i=[],a=null;for(let e of n.sort(pD))a&&a.label==e.completion.label&&a.detail==e.completion.detail&&(null==a.type||null==e.completion.type||a.type==e.completion.type)&&a.apply==e.completion.apply?pR(e.completion)>pR(a)&&(i[i.length-1]=e):i.push(e),a=e.completion;return i}(e,t);if(!a.length)return null;let o=0;if(r&&r.selected){let e=r.options[r.selected].completion;for(let t=0;tt.hasResult()?Math.min(e,t.from):e,1e8),create:e=>new pA(e,pz),above:i.aboveCursor},r?r.timestamp:Date.now(),o)}map(e){return new pP(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected)}}class pI{constructor(e,t,n){this.active=e,this.id=t,this.open=n}static start(){return new pI(pL,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(e){let{state:t}=e,n=t.facet(pE),r=(n.override||t.languageDataAt("autocomplete",px(t)).map(pS)).map(t=>(this.active.find(e=>e.source==t)||new pQ(t,this.active.some(e=>0!=e.state)?1:0)).update(e,n));r.length==this.active.length&&r.every((e,t)=>e==this.active[t])&&(r=this.active);let i=e.selection||r.some(t=>t.hasResult()&&e.changes.touchesRange(t.from,t.to))||!function(e,t){if(e==t)return!0;for(let n=0,r=0;;){for(;n1!=e.state)&&r.some(e=>e.hasResult())&&(r=r.map(e=>e.hasResult()?new pQ(e.source,0):e)),e.effects))t.is(pj)&&(i=i&&i.setSelected(t.value,this.id));return r==this.active&&i==this.open?this:new pI(r,this.id,i)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:pN}}let pN={"aria-autocomplete":"list"};function p$(e,t){return{"aria-autocomplete":"list","aria-haspopup":"listbox","aria-activedescendant":e+"-"+t,"aria-controls":e}}let pL=[];function pD(e,t){return t.match[0]-e.match[0]||e.completion.label.localeCompare(t.completion.label)}class pQ{constructor(e,t,n=-1){this.source=e,this.state=t,this.explicitPos=n}hasResult(){return!1}update(e,t){let n=e.isUserEvent("input.type")?"input":e.isUserEvent("delete.backward")?"delete":null,r=this;for(let i of(n?r=r.handleUserEvent(e,n,t):e.docChanged?r=r.handleChange(e):e.selection&&0!=r.state&&(r=new pQ(r.source,0)),e.effects))if(i.is(pF))r=new pQ(r.source,1,i.value?px(e.state):-1);else if(i.is(pB))r=new pQ(r.source,0);else if(i.is(pU))for(let e of i.value)e.source==r.source&&(r=e);return r}handleUserEvent(e,t,n){return"delete"!=t&&n.activateOnTyping?new pQ(this.source,1):this.map(e.changes)}handleChange(e){return e.changes.touchesRange(px(e.startState))?new pQ(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new pQ(this.source,this.state,e.mapPos(this.explicitPos))}}class pM extends pQ{constructor(e,t,n,r,i){super(e,2,t),this.result=n,this.from=r,this.to=i}hasResult(){return!0}handleUserEvent(e,t,n){var r;let i=e.changes.mapPos(this.from),a=e.changes.mapPos(this.to,1),o=px(e.state);if((this.explicitPos<0?o<=i:oa||"delete"==t&&px(e.startState)==this.from)return new pQ(this.source,"input"==t&&n.activateOnTyping?1:0);let s=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos),l;return!function(e,t,n,r){if(!e)return!1;let i=t.sliceDoc(n,r);return"function"==typeof e?e(i,n,r,t):pT(e,!0).test(i)}(this.result.validFor,e.state,i,a)?this.result.update&&(l=this.result.update(this.result,i,a,new pg(e.state,o,s>=0)))?new pM(this.source,s,l,l.from,null!==(r=l.to)&&void 0!==r?r:px(e.state)):new pQ(this.source,1,s):new pM(this.source,s,this.result,i,a)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new pQ(this.source,0):this.map(e.changes)}map(e){return e.empty?this:new pM(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1))}}let pF=sm.define(),pB=sm.define(),pU=sm.define({map:(e,t)=>e.map(e=>e.map(t))}),pj=sm.define(),pz=o4.define({create:()=>pI.start(),update:(e,t)=>e.update(t),provide:e=>[dl.from(e,e=>e.tooltip),c$.contentAttributes.from(e,e=>e.attrs)]}),pW=c$.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",listStyle:"none",margin:0,padding:0,"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer",padding:"1px 3px",lineHeight:1.2}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xb7\xb7\xb7"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"300px"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'\uD835\uDC65'"}},".cm-completionIcon-constant":{"&:after":{content:"'\uD835\uDC36'"}},".cm-completionIcon-type":{"&:after":{content:"'\uD835\uDC61'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\uD83D\uDD11︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class pZ{constructor(e,t,n,r){this.field=e,this.line=t,this.from=n,this.to=r}}class pq{constructor(e,t,n){this.field=e,this.from=t,this.to=n}map(e){let t=e.mapPos(this.from,-1,oB.TrackDel),n=e.mapPos(this.to,1,oB.TrackDel);return null==t||null==n?null:new pq(this.field,t,n)}}class pG{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let n=[],r=[t],i=e.doc.lineAt(t),a=/^\s*/.exec(i.text)[0];for(let i of this.lines){if(n.length){let n=a,o=/^\t*/.exec(i)[0].length;for(let t=0;tnew pq(e.field,r[e.line]+e.from,r[e.line]+e.to))}}static parse(e){let t=[],n=[],r=[],i;for(let a of e.split(/\r\n?|\n/)){for(;i=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(a);){let e=i[1]?+i[1]:null,o=i[2]||i[3]||"",s=-1;for(let n=0;n=s&&i.field++}r.push(new pZ(s,n.length,i.index,i.index+o.length)),a=a.slice(0,i.index)+o+a.slice(i.index+i[0].length)}n.push(a)}return new pG(n,r)}}let pH=lF.widget({widget:new class extends lQ{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),pY=lF.mark({class:"cm-snippetField"});class pX{constructor(e,t){this.ranges=e,this.active=t,this.deco=lF.set(e.map(e=>(e.from==e.to?pH:pY).range(e.from,e.to)))}map(e){let t=[];for(let n of this.ranges){let r=n.map(e);if(!r)return null;t.push(r)}return new pX(t,this.active)}selectionInsideField(e){return e.ranges.every(e=>this.ranges.some(t=>t.field==this.active&&t.from<=e.from&&t.to>=e.to))}}let pV=sm.define({map:(e,t)=>e&&e.map(t)}),pK=sm.define(),pJ=o4.define({create:()=>null,update(e,t){for(let n of t.effects){if(n.is(pV))return n.value;if(n.is(pK)&&e)return new pX(e.ranges,n.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>c$.decorations.from(e,e=>e?e.deco:lF.none)});function p1(e,t){return oX.create(e.filter(e=>e.field==t).map(e=>oX.range(e.from,e.to)))}function p0(e){return({state:t,dispatch:n})=>{let r=t.field(pJ,!1);if(!r||e<0&&0==r.active)return!1;let i=r.active+e,a=e>0&&!r.ranges.some(t=>t.field==i+e);return n(t.update({selection:p1(r.ranges,i),effects:pV.of(a?null:new pX(r.ranges,i))})),!0}}let p2=p0(1),p5=p0(-1),p9=[{key:"Tab",run:p2,shift:p5},{key:"Escape",run:({state:e,dispatch:t})=>!!e.field(pJ,!1)&&(t(e.update({effects:pV.of(null)})),!0)}],p4=oJ.define({combine:e=>e.length?e[0]:p9}),p3=o6.highest(cj.compute([p4],e=>e.facet(p4)));function p8(e,t){let n;return Object.assign(Object.assign({},t),{apply:(n=pG.parse(e),(e,t,r,i)=>{let{text:a,ranges:o}=n.instantiate(e.state,r),s={changes:{from:r,to:i,insert:ox.of(a)}};if(o.length&&(s.selection=p1(o,0)),o.length>1){let t=new pX(o,0),n=s.effects=[pV.of(t)];void 0===e.state.field(pJ,!1)&&n.push(sm.appendConfig.of([pJ,p3,p6,pW]))}e.dispatch(e.state.update(s))})})}let p6=c$.domEventHandlers({mousedown(e,t){let n=t.state.field(pJ,!1),r;if(!n||null==(r=t.posAtCoords({x:e.clientX,y:e.clientY})))return!1;let i=n.ranges.find(e=>e.from<=r&&e.to>=r);return!!i&&i.field!=n.active&&(t.dispatch({selection:p1(n.ranges,i.field),effects:pV.of(n.ranges.some(e=>e.field>i.field)?new pX(n.ranges,i.field):null)}),!0)}}),p7={brackets:["(","[","{","'",'"'],before:")]}:;>"},fe=sm.define({map(e,t){let n=t.mapPos(e,-1,oB.TrackAfter);return null==n?void 0:n}}),ft=sm.define({map:(e,t)=>t.mapPos(e)}),fn=new class extends sS{};fn.startSide=1,fn.endSide=-1;let fr=o4.define({create:()=>sA.empty,update(e,t){if(t.selection){let n=t.state.doc.lineAt(t.selection.main.head).from,r=t.startState.doc.lineAt(t.startState.selection.main.head).from;n!=t.changes.mapPos(r,-1)&&(e=sA.empty)}for(let n of(e=e.map(t.changes),t.effects))n.is(fe)?e=e.update({add:[fn.range(n.value,n.value+1)]}):n.is(ft)&&(e=e.update({filter:e=>e!=n.value}));return e}}),fi="()[]{}<>",fa="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),fo=c$.inputHandler.of((e,t,n,r)=>{if((fa?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let i=e.state.selection.main;if(r.length>2||2==r.length&&1==oM(oD(r,0))||t!=i.from||n!=i.to)return!1;let a=function(e,t){var n;let r=(n=e.selection.main.head,e.languageDataAt("closeBrackets",n)[0]||p7),i=r.brackets||p7.brackets;for(let n of i){let a=function(e){for(let t=0;t{if(!i.empty)return{changes:[{insert:t,from:i.from},{insert:t,from:i.to}],effects:fe.of(i.to+t.length),range:oX.range(i.anchor+t.length,i.head+t.length)};let a=i.head,o=fl(e.doc,a);if(o==t){if(fu(e,a))return{changes:{insert:t+t,from:a},effects:fe.of(a+t.length),range:oX.cursor(a+t.length)};if(fs(e,a)){let r=n&&e.sliceDoc(a,a+3*t.length)==t+t+t;return{range:oX.cursor(a+t.length*(r?3:1)),effects:ft.of(a)}}}else if(n&&e.sliceDoc(a-2*t.length,a)==t+t&&fu(e,a-2*t.length))return{changes:{insert:t+t+t+t,from:a},effects:fe.of(a+t.length),range:oX.cursor(a+t.length)};else if(e.charCategorizer(a)(o)!=sx.Word){let n=e.sliceDoc(a-1,a);if(n!=t&&e.charCategorizer(a)(n)!=sx.Word&&!function(e,t,n){let r=hM(e).resolveInner(t,-1);for(let i=0;i<5;i++){if(e.sliceDoc(r.from,r.from+n.length)==n)return!0;let i=r.to==t&&r.parent;if(!i)break;r=i}return!1}(e,a,t))return{changes:{insert:t+t,from:a},effects:fe.of(a+t.length),range:oX.cursor(a+t.length)}}return{range:r=i}});return r?null:e.update(i,{scrollIntoView:!0,userEvent:"input.type"})}(e,n,i.indexOf(n+n+n)>-1):function(e,t,n,r){let i=null,a=e.changeByRange(a=>{if(!a.empty)return{changes:[{insert:t,from:a.from},{insert:n,from:a.to}],effects:fe.of(a.to+t.length),range:oX.range(a.anchor+t.length,a.head+t.length)};let o=fl(e.doc,a.head);return!o||/\s/.test(o)||r.indexOf(o)>-1?{changes:{insert:t+n,from:a.head},effects:fe.of(a.head+t.length),range:oX.cursor(a.head+t.length)}:{range:i=a}});return i?null:e.update(a,{scrollIntoView:!0,userEvent:"input.type"})}(e,n,a,r.before||p7.before);if(t==a&&fs(e,e.selection.main.from))return function(e,t,n){let r=null,i=e.selection.ranges.map(t=>t.empty&&fl(e.doc,t.head)==n?oX.cursor(t.head+n.length):r=t);return r?null:e.update({selection:oX.create(i,e.selection.mainIndex),scrollIntoView:!0,effects:e.selection.ranges.map(({from:e})=>ft.of(e))})}(e,0,a)}return null}(e.state,r);return!!a&&(e.dispatch(a),!0)});function fs(e,t){let n=!1;return e.field(fr).between(0,e.doc.length,e=>{e==t&&(n=!0)}),n}function fl(e,t){let n=e.sliceString(t,t+2);return n.slice(0,oM(oD(n,0)))}function fu(e,t){let n=hM(e).resolveInner(t+1);return n.parent&&n.from==t}var fc=n(83454);class fd{constructor(e,t,n,r,i,a,o,s,l,u=0,c){this.p=e,this.stack=t,this.state=n,this.reducePos=r,this.pos=i,this.score=a,this.buffer=o,this.bufferBase=s,this.curContext=l,this.lookAhead=u,this.parent=c}toString(){return`[${this.stack.filter((e,t)=>t%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,n=0){let r=e.parser.context;return new fd(e,[],t,n,n,0,[],0,r?new fh(r,r.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){let t=e>>19,n=65535&e,{parser:r}=this.p,i=r.dynamicPrecedence(n);if(i&&(this.score+=i),0==t){this.pushState(r.getGoto(this.state,n,!0),this.reducePos),na;)this.stack.pop();this.reduceContext(n,o)}storeNode(e,t,n,r=4,i=!1){if(0==e&&(!this.stack.length||this.stack[this.stack.length-1]0&&0==e.buffer[r-4]&&e.buffer[r-1]>-1){if(t==n)return;if(e.buffer[r-2]>=t){e.buffer[r-2]=n;return}}}if(i&&this.pos!=n){let i=this.buffer.length;if(i>0&&0!=this.buffer[i-4])for(;i>0&&this.buffer[i-2]>n;)this.buffer[i]=this.buffer[i-4],this.buffer[i+1]=this.buffer[i-3],this.buffer[i+2]=this.buffer[i-2],this.buffer[i+3]=this.buffer[i-1],i-=4,r>4&&(r-=4);this.buffer[i]=e,this.buffer[i+1]=t,this.buffer[i+2]=n,this.buffer[i+3]=r}else this.buffer.push(e,t,n,r)}shift(e,t,n){let r=this.pos;if(131072&e)this.pushState(65535&e,this.pos);else if((262144&e)==0){let{parser:i}=this.p;(n>this.pos||t<=i.maxNode)&&(this.pos=n,i.stateFlag(e,1)||(this.reducePos=n)),this.pushState(e,r),this.shiftContext(t,r),t<=i.maxNode&&this.buffer.push(t,r,n,4)}else this.pos=n,this.shiftContext(t,r),t<=this.p.parser.maxNode&&this.buffer.push(t,r,n,4)}apply(e,t,n){65536&e?this.reduce(e):this.shift(e,t,n)}useNode(e,t){let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=e)&&(this.p.reused.push(e),n++);let r=this.pos;this.reducePos=this.pos=r+e.length,this.pushState(t,r),this.buffer.push(n,r,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let n=e.buffer.slice(t),r=e.bufferBase+t;for(;e&&r==e.bufferBase;)e=e.parent;return new fd(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,r,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,n?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new fp(this);;){let n=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if((65536&n)==0)return!0;if(0==n)return!1;t.reduce(n)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let n=[];for(let r=0,i;r1&t&&e==r)||n.push(t[e],r)}t=n}let n=[];for(let e=0;e>19,r=65535&e,i=this.stack.length-3*n;if(i<0||0>t.getGoto(this.stack[i],r,!1))return!1;this.storeNode(0,this.reducePos,this.reducePos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(e),!0}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:e}=this.p;return 65535==e.data[e.stateSlot(this.state,1)]&&!e.stateSlot(this.state,4)}restart(){this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;tthis.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class fh{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}(_L=_j||(_j={}))[_L.Insert=200]="Insert",_L[_L.Delete=190]="Delete",_L[_L.Reduce=100]="Reduce",_L[_L.MaxNext=4]="MaxNext",_L[_L.MaxInsertStackDepth=300]="MaxInsertStackDepth",_L[_L.DampenInsertStackDepth=120]="DampenInsertStackDepth";class fp{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=e>>19;0==t?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(t-1)*3;let n=this.start.p.parser.getGoto(this.stack[this.base-3],65535&e,!0);this.state=n}}class ff{constructor(e,t,n){this.stack=e,this.pos=t,this.index=n,this.buffer=e.buffer,0==this.index&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new ff(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;null!=e&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new ff(this.stack,this.pos,this.index)}}class fm{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}let fg=new fm;class fO{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=fg,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let n=this.range,r=this.rangeIndex,i=this.pos+e;for(;in.to:i>=n.to;){if(r==this.ranges.length-1)return null;let e=this.ranges[++r];i+=e.from-n.to,n=e}return i}peek(e){let t=this.chunkOff+e,n,r;if(t>=0&&t=this.chunk2Pos&&nt.to&&(this.chunk2=this.chunk2.slice(0,t.to-n)),r=this.chunk2.charCodeAt(0)}}return n>=this.token.lookAhead&&(this.token.lookAhead=n+1),r}acceptToken(e,t=0){let n=t?this.resolveOffset(t,-1):this.pos;if(null==n||n=this.chunk2Pos&&this.posthis.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=fg,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let n="";for(let r of this.ranges){if(r.from>=t)break;r.to>e&&(n+=this.input.read(Math.max(r.from,e),Math.min(r.to,t)))}return n}}class fb{constructor(e,t){this.data=e,this.id=t}token(e,t){!function(e,t,n,r){let i=0,a=1<0){let n=e[r];if(s.allows(n)&&(-1==t.token.value||t.token.value==n||o.overrides(n,t.token.value))){t.acceptToken(n);break}}for(let r=t.next,a=0,o=e[i+2];a>1,l=n+s+(s<<1),u=e[l],c=e[l+1];if(r=c)a=s+1;else{i=e[l+2],t.advance();continue a}}break}}(this.data,e,t,this.id)}}fb.prototype.contextual=fb.prototype.fallback=fb.prototype.extend=!1;class fy{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}}function fv(e,t=Uint16Array){if("string"!=typeof e)return e;let n=null;for(let r=0,i=0;r=92&&t--,t>=34&&t--;let i=t-32;if(i>=46&&(i-=46,n=!0),a+=i,n)break;a*=46}n?n[i++]=a:n=new t(a)}return n}let fx=void 0!==fc&&fc.env&&/\bparse\b/.test(fc.env.LOG),fT=null;function fk(e,t,n){let r=e.cursor(_B.IncludeAnonymous);for(r.moveTo(t);;)if(!(n<0?r.childBefore(t):r.childAfter(t)))for(;;){if((n<0?r.tot)&&!r.type.isError)return n<0?Math.max(0,Math.min(r.to-1,t-25)):Math.min(e.length,Math.max(r.from+1,t+25));if(n<0?r.prevSibling():r.nextSibling())break;if(!r.parent())return n<0?0:e.length}}(_D=_z||(_z={}))[_D.Margin=25]="Margin";class f_{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?fk(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?fk(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(ee)return this.nextStart=a,null;if(i instanceof dz){if(a==e){if(a=Math.max(this.safeFrom,e)&&(this.trees.push(i),this.start.push(a),this.index.push(0))}else this.index[t]++,this.nextStart=a+i.length}}}class fS{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(e=>new fm)}getActions(e){let t=0,n=null,{parser:r}=e.p,{tokenizers:i}=r,a=r.stateSlot(e.state,3),o=e.curContext?e.curContext.hash:0,s=0;for(let r=0;ru.end+25&&(s=Math.max(u.lookAhead,s)),0!=u.value)){let r=t;if(u.extended>-1&&(t=this.addActions(e,u.extended,u.end,t)),t=this.addActions(e,u.value,u.end,t),!l.extend&&(n=u,t>r))break}}for(;this.actions.length>t;)this.actions.pop();return s&&e.setLookAhead(s),n||e.pos!=this.stream.end||((n=new fm).value=e.p.parser.eofTerm,n.start=n.end=e.pos,t=this.addActions(e,n.value,n.end,t)),this.mainToken=n,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new fm,{pos:n,p:r}=e;return t.start=n,t.end=Math.min(n+1,r.stream.end),t.value=n==r.stream.end?r.parser.eofTerm:0,t}updateCachedToken(e,t,n){if(t.token(this.stream.reset(n.pos,e),n),e.value>-1){let{parser:t}=n.p;for(let r=0;r=0&&n.p.parser.dialect.allows(i>>1)){(1&i)==0?e.value=i>>1:e.extended=i>>1;break}}}else e.value=0,e.end=Math.min(n.p.stream.end,n.pos+1)}putAction(e,t,n,r){for(let t=0;t4*e.bufferLength?new f_(n,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e,t,n=this.stacks,r=this.minStackPos,i=this.stacks=[];for(let a=0;ar)i.push(o);else{if(this.advanceStack(o,i,n))continue;e||(e=[],t=[]),e.push(o);let r=this.tokens.getMainToken(o);t.push(r.value,r.end)}break}}if(!i.length){let t=e&&function(e){let t=null;for(let n of e){let e=n.p.stoppedAt;(n.pos==n.p.stream.end||null!=e&&n.pos>e)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.scorethis.stoppedAt?e[0]:this.runRecovery(e,t,i);if(n)return this.stackToTree(n.forceAll())}if(this.recovering){let e=1==this.recovering?1:3*this.recovering;if(i.length>e)for(i.sort((e,t)=>t.score-e.score);i.length>e;)i.pop();i.some(e=>e.reducePos>r)&&this.recovering--}else if(i.length>1)o:for(let e=0;e500&&r.buffer.length>500){if((t.score-r.score||t.buffer.length-r.buffer.length)>0)i.splice(n--,1);else{i.splice(e--,1);continue o}}}}this.minStackPos=i[0].pos;for(let e=1;e ":"";if(null!=this.stoppedAt&&r>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let t=e.curContext&&e.curContext.tracker.strict,n=t?e.curContext.hash:0;for(let o=this.fragments.nodeAt(r);o;){let r=this.parser.nodeSet.types[o.type.id]==o.type?i.getGoto(e.state,o.type.id):-1;if(r>-1&&o.length&&(!t||(o.prop(dD.contextHash)||0)==n))return e.useNode(o,r),fx&&console.log(a+this.stackID(e)+` (via reuse of ${i.getName(o.type.id)})`),!0;if(!(o instanceof dz)||0==o.children.length||o.positions[0]>0)break;let s=o.children[0];if(s instanceof dz&&0==o.positions[0])o=s;else break}}let o=i.stateSlot(e.state,4);if(o>0)return e.reduce(o),fx&&console.log(a+this.stackID(e)+` (via always-reduce ${i.getName(65535&o)})`),!0;if(e.stack.length>=15e3)for(;e.stack.length>9e3&&e.forceReduce(););let s=this.tokens.getActions(e);for(let o=0;or?t.push(h):n.push(h)}return!1}advanceFully(e,t){let n=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return fE(e,t),!0}}runRecovery(e,t,n){let r=null,i=!1;for(let a=0;a ":"";if(o.deadEnd&&(i||(i=!0,o.restart(),fx&&console.log(u+this.stackID(o)+" (restarted)"),this.advanceFully(o,n))))continue;let c=o.split(),d=u;for(let e=0;c.forceReduce()&&e<10&&(fx&&console.log(d+this.stackID(c)+" (via force-reduce)"),!this.advanceFully(c,n));e++)fx&&(d=this.stackID(c)+" -> ");for(let e of o.recoverByInsert(s))fx&&console.log(u+this.stackID(e)+" (via recover-insert)"),this.advanceFully(e,n);this.stream.end>o.pos?(l==o.pos&&(l++,s=0),o.recoverByDelete(s,l),fx&&console.log(u+this.stackID(o)+` (via recover-delete ${this.parser.getName(s)})`),fE(o,n)):(!r||r.scoree;class fR{constructor(e){this.start=e.start,this.shift=e.shift||fA,this.reduce=e.reduce||fA,this.reuse=e.reuse||fA,this.hash=e.hash||(()=>0),this.strict=!1!==e.strict}}class fP extends d3{constructor(e){if(super(),this.wrappers=[],14!=e.version)throw RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let n=0;ne.topRules[t][1]),r=[];for(let e=0;e=0)i(r,e,t[n++]);else{let a=t[n+-r];for(let o=-r;o>0;o--)i(t[n++],e,a);n++}}}this.nodeSet=new dB(t.map((t,i)=>dF.define({name:i>=this.minRepeatTerm?void 0:t,id:i,props:r[i],top:n.indexOf(i)>-1,error:0==i,skipped:e.skippedNodes&&e.skippedNodes.indexOf(i)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=1024;let a=fv(e.tokenData);if(this.context=e.context,this.specialized=new Uint16Array(e.specialized?e.specialized.length:0),this.specializers=[],e.specialized)for(let t=0;t"number"==typeof e?new fb(a,e):e),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,n){let r=new fw(this,e,t,n);for(let i of this.wrappers)r=i(r,e,t,n);return r}getGoto(e,t,n=!1){let r=this.goto;if(t>=r[0])return -1;for(let i=r[t+1];;){let t=r[i++],a=1&t,o=r[i++];if(a&&n)return o;for(let n=i+(t>>1);i0}validAction(e,t){if(t==this.stateSlot(e,4))return!0;for(let n=this.stateSlot(e,1);;n+=3){if(65535==this.data[n]){if(1!=this.data[n+1])return!1;n=fI(this.data,n+2)}if(t==fI(this.data,n+1))return!0}}nextStates(e){let t=[];for(let n=this.stateSlot(e,1);;n+=3){if(65535==this.data[n]){if(1==this.data[n+1])n=fI(this.data,n+2);else break}if((1&this.data[n+2])==0){let e=this.data[n+1];t.some((t,n)=>1&n&&t==e)||t.push(this.data[n],e)}}return t}overrides(e,t){let n=fN(this.data,this.tokenPrecTable,t);return n<0||fN(this.data,this.tokenPrecTable,e){let n=e.tokenizers.find(e=>e.from==t);return n?n.to:t})),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),null!=e.strict&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),null!=e.bufferLength&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return null==t?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),n=t.map(()=>!1);if(e)for(let r of e.split(" ")){let e=t.indexOf(r);e>=0&&(n[e]=!0)}let r=null;for(let e=0;e=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57}function fL(e,t,n){for(let r=!1;;){if(e.next<0)return;if(e.next==t&&!r){e.advance();return}r=n&&!r&&92==e.next,e.advance()}}function fD(e,t){for(;95==e.next||f$(e.next);)null!=t&&(t+=String.fromCharCode(e.next)),e.advance();return t}function fQ(e,t){for(;;){if(46==e.next){if(t)break;t=!0}else if(e.next<48||e.next>57)break;e.advance()}if(69==e.next||101==e.next)for(e.advance(),(43==e.next||45==e.next)&&e.advance();e.next>=48&&e.next<=57;)e.advance()}function fM(e){for(;!(e.next<0||10==e.next);)e.advance()}function fF(e,t){for(let n=0;n!=&|~^/",specialVar:"?",identifierQuotes:'"',words:fU("absolute action add after all allocate alter and any are as asc assertion at authorization before begin between both breadth by call cascade cascaded case cast catalog check close collate collation column commit condition connect connection constraint constraints constructor continue corresponding count create cross cube current current_date current_default_transform_group current_transform_group_for_type current_path current_role current_time current_timestamp current_user cursor cycle data day deallocate declare default deferrable deferred delete depth deref desc describe descriptor deterministic diagnostics disconnect distinct do domain drop dynamic each else elseif end end-exec equals escape except exception exec execute exists exit external fetch first for foreign found from free full function general get global go goto grant group grouping handle having hold hour identity if immediate in indicator initially inner inout input insert intersect into is isolation join key language last lateral leading leave left level like limit local localtime localtimestamp locator loop map match method minute modifies module month names natural nesting new next no none not of old on only open option or order ordinality out outer output overlaps pad parameter partial path prepare preserve primary prior privileges procedure public read reads recursive redo ref references referencing relative release repeat resignal restrict result return returns revoke right role rollback rollup routine row rows savepoint schema scroll search second section select session session_user set sets signal similar size some space specific specifictype sql sqlexception sqlstate sqlwarning start state static system_user table temporary then timezone_hour timezone_minute to trailing transaction translation treat trigger under undo union unique unnest until update usage user using value values view when whenever where while with without work write year zone ","array binary bit boolean char character clob date decimal double float int integer interval large national nchar nclob numeric object precision real smallint time timestamp varchar varying ")};function fz(e){return new fy(t=>{var n,r;let{next:i}=t;if(t.advance(),fF(i,fB)){for(;fF(t.next,fB);)t.advance();t.acceptToken(34)}else if(39==i||34==i&&e.doubleQuotedStrings)fL(t,i,e.backslashEscapes),t.acceptToken(3);else if(35==i&&e.hashComments||47==i&&47==t.next&&e.slashComments)fM(t),t.acceptToken(1);else if(45!=i||45!=t.next||e.spaceAfterDashes&&32!=t.peek(2)){if(47==i&&42==t.next){t.advance();for(let e=-1,n=1;!(t.next<0);)if(t.advance(),42==e&&47==t.next){if(!--n){t.advance();break}e=-1}else 47==e&&42==t.next?(n++,e=-1):e=t.next;t.acceptToken(2)}else if((101==i||69==i)&&39==t.next)t.advance(),fL(t,39,!0);else if((110==i||78==i)&&39==t.next&&e.charSetCasts)t.advance(),fL(t,39,e.backslashEscapes),t.acceptToken(3);else if(95==i&&e.charSetCasts)for(let n=0;;n++){if(39==t.next&&n>1){t.advance(),fL(t,39,e.backslashEscapes),t.acceptToken(3);break}if(!f$(t.next))break;t.advance()}else if(40==i)t.acceptToken(7);else if(41==i)t.acceptToken(8);else if(123==i)t.acceptToken(9);else if(125==i)t.acceptToken(10);else if(91==i)t.acceptToken(11);else if(93==i)t.acceptToken(12);else if(59==i)t.acceptToken(13);else if(48==i&&(98==t.next||66==t.next)||(98==i||66==i)&&39==t.next){let e=39==t.next;for(t.advance();48==t.next||49==t.next;)t.advance();e&&39==t.next&&t.advance(),t.acceptToken(4)}else if(48==i&&(120==t.next||88==t.next)||(120==i||88==i)&&39==t.next){let e=39==t.next;for(t.advance();(r=t.next)>=48&&r<=57||r>=97&&r<=102||r>=65&&r<=70;)t.advance();e&&39==t.next&&t.advance(),t.acceptToken(4)}else if(46==i&&t.next>=48&&t.next<=57)fQ(t,!0),t.acceptToken(4);else if(46==i)t.acceptToken(14);else if(i>=48&&i<=57)fQ(t,!1),t.acceptToken(4);else if(fF(i,e.operatorChars)){for(;fF(t.next,e.operatorChars);)t.advance();t.acceptToken(15)}else if(fF(i,e.specialVar))t.next==i&&t.advance(),function(e){if(39==e.next||34==e.next||96==e.next){let t=e.next;e.advance(),fL(e,t,!1)}else fD(e)}(t),t.acceptToken(17);else if(fF(i,e.identifierQuotes))fL(t,i,!1),t.acceptToken(19);else if(58==i||44==i)t.acceptToken(16);else if(f$(i)){let r=fD(t,String.fromCharCode(i));t.acceptToken(null!==(n=e.words[r.toLowerCase()])&&void 0!==n?n:18)}}else fM(t),t.acceptToken(1)})}let fW=fz(fj),fZ=fP.deserialize({version:14,states:"%dQ]QQOOO#kQRO'#DQO#rQQO'#CuO%RQQO'#CvO%YQQO'#CwO%aQQO'#CxOOQQ'#DQ'#DQOOQQ'#C{'#C{O&lQRO'#CyOOQQ'#Ct'#CtOOQQ'#Cz'#CzQ]QQOOQOQQOOO&vQQO,59aO'RQQO,59aO'WQQO'#DQOOQQ,59b,59bO'eQQO,59bOOQQ,59c,59cO'lQQO,59cOOQQ,59d,59dO'sQQO,59dOOQQ-E6y-E6yOOQQ,59`,59`OOQQ-E6x-E6xOOQQ'#C|'#C|OOQQ1G.{1G.{O&vQQO1G.{OOQQ1G.|1G.|OOQQ1G.}1G.}OOQQ1G/O1G/OP'zQQO'#C{POQQ-E6z-E6zOOQQ7+$g7+$g",stateData:"(R~OrOSPOSQOS~ORUOSUOTUOUUOVROXSOZTO]XO^QO_UO`UOaPObPOcPOdUOeUOfUO~O^]ORtXStXTtXUtXVtXXtXZtX]tX_tX`tXatXbtXctXdtXetXftX~OqtX~P!dOa^Ob^Oc^O~ORUOSUOTUOUUOVROXSOZTO^QO_UO`UOa_Ob_Oc_OdUOeUOfUO~OW`O~P#}OYbO~P#}O[dO~P#}ORUOSUOTUOUUOVROXSOZTO^QO_UO`UOaPObPOcPOdUOeUOfUO~O]gOqmX~P%hOaiObiOciO~O^kO~OWtXYtX[tX~P!dOWlO~P#}OYmO~P#}O[nO~P#}O]gO~P#}O",goto:"#YuPPPPPPPPPPPPPPPPPPPPPPPPvzzzz!W![!b!vPPP!|TYOZeUORSTWZaceoT[OZQZORhZSWOZQaRQcSQeTZfWaceoQj]RqkeVORSTWZaceo",nodeNames:"⚠ LineComment BlockComment String Number Bool Null ( ) [ ] { } ; . Operator Punctuation SpecialVar Identifier QuotedIdentifier Keyword Type Builtin Script Statement CompositeIdentifier Parens Braces Brackets Statement",maxTerm:36,skippedNodes:[0,1,2],repeatNodeCount:3,tokenData:"RORO",tokenizers:[0,fW],topRules:{Script:[0,23]},tokenPrec:0});function fq(e){let t=e.cursor().moveTo(e.from,-1);for(;/Comment/.test(t.name);)t.moveTo(t.from,-1);return t.node}function fG(e,t){for(let n=[];;){if(!t||"."!=t.name)return n;let r=fq(t);if(!r||!("Identifier"==r.name||"QuotedIdentifier"==r.name||"Keyword"==r.name&&/^public$/i.test(e.sliceDoc(r.from,r.to))))return n;n.unshift(function(e){let t=/^[`'"](.*)[`'"]$/.exec(e);return t?t[1]:e}(e.sliceDoc(r.from,r.to))),t=fq(r)}}let fH=/^\w*$/,fY=/^[`'"]?\w*[`'"]?$/;class fX{constructor(){this.list=[],this.children=void 0}child(e){let t=this.children||(this.children=Object.create(null));return t[e]||(t[e]=new fX)}childCompletions(e){return this.children?Object.keys(this.children).filter(e=>e).map(t=>({label:t,type:e})):[]}}let fV=fZ.configure({props:[hJ.add({Statement:h4()}),h3.add({Statement:e=>({from:e.firstChild.to,to:e.to}),BlockComment:e=>({from:e.from+2,to:e.to-2})}),hh({Keyword:hI.keyword,Type:hI.typeName,Builtin:hI.standard(hI.name),Bool:hI.bool,Null:hI.null,Number:hI.number,String:hI.string,Identifier:hI.name,QuotedIdentifier:hI.special(hI.string),SpecialVar:hI.special(hI.name),LineComment:hI.lineComment,BlockComment:hI.blockComment,Operator:hI.operator,"Semi Punctuation":hI.punctuation,"( )":hI.paren,"{ }":hI.brace,"[ ]":hI.squareBracket})]});class fK{constructor(e,t){this.dialect=e,this.language=t}get extension(){return this.language.extension}static define(e){let t=function(e,t,n,r){let i={};for(let t in fj)i[t]=(e.hasOwnProperty(t)?e:fj)[t];return t&&(i.words=fU(t,n||"",r)),i}(e,e.keywords,e.types,e.builtin),n=hQ.define({parser:fV.configure({tokenizers:[{from:fW,to:fz(t)}]}),languageData:{commentTokens:{line:"--",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]}}});return new fK(t,n)}}let fJ=fK.define({}),f1=hh({null:hI.null,instanceof:hI.operatorKeyword,this:hI.self,"new super assert open to with void":hI.keyword,"class interface extends implements enum":hI.definitionKeyword,"module package import":hI.moduleKeyword,"switch while for if else case default do break continue return try catch finally throw":hI.controlKeyword,"requires exports opens uses provides public private protected static transitive abstract final strictfp synchronized native transient volatile throws":hI.modifier,IntegerLiteral:hI.integer,FloatLiteral:hI.float,"StringLiteral TextBlock":hI.string,CharacterLiteral:hI.character,LineComment:hI.lineComment,BlockComment:hI.blockComment,BooleanLiteral:hI.bool,PrimitiveType:hI.standard(hI.typeName),TypeName:hI.typeName,Identifier:hI.variableName,"MethodName/Identifier":hI.function(hI.variableName),Definition:hI.definition(hI.variableName),ArithOp:hI.arithmeticOperator,LogicOp:hI.logicOperator,BitOp:hI.bitwiseOperator,CompareOp:hI.compareOperator,AssignOp:hI.definitionOperator,UpdateOp:hI.updateOperator,Asterisk:hI.punctuation,Label:hI.labelName,"( )":hI.paren,"[ ]":hI.squareBracket,"{ }":hI.brace,".":hI.derefOperator,", ;":hI.separator}),f0={__proto__:null,true:34,false:34,null:42,void:46,byte:48,short:48,int:48,long:48,char:48,float:48,double:48,boolean:48,extends:62,super:64,class:76,this:78,new:84,public:100,protected:102,private:104,abstract:106,static:108,final:110,strictfp:112,default:114,synchronized:116,native:118,transient:120,volatile:122,throws:150,implements:160,interface:166,enum:176,instanceof:236,open:265,module:267,requires:272,transitive:274,exports:276,to:278,opens:280,uses:282,provides:284,with:286,package:290,import:294,if:306,else:308,while:312,for:316,var:323,assert:330,switch:334,case:340,do:344,break:348,continue:352,return:356,throw:362,try:366,catch:370,finally:378},f2=fP.deserialize({version:14,states:"#!hQ]QPOOO&tQQO'#H[O(xQQO'#CbOOQO'#Cb'#CbO)PQPO'#CaO)XOSO'#CpOOQO'#Ha'#HaOOQO'#Cu'#CuO*tQPO'#D_O+_QQO'#HkOOQO'#Hk'#HkO-sQQO'#HfO-zQQO'#HfOOQO'#Hf'#HfOOQO'#He'#HeO0OQPO'#DUO0]QPO'#GlO3TQPO'#D_O3[QPO'#DzO)PQPO'#E[O3}QPO'#E[OOQO'#DV'#DVO5]QQO'#H_O7dQQO'#EeO7kQPO'#EdO7pQPO'#EfOOQO'#H`'#H`O5sQQO'#H`O8sQQO'#FgO8zQPO'#EwO9PQPO'#E|O9PQPO'#FOOOQO'#H_'#H_OOQO'#HW'#HWOOQO'#Gf'#GfOOQO'#HV'#HVO:aQPO'#FhOOQO'#HU'#HUOOQO'#Ge'#GeQ]QPOOOOQO'#Hq'#HqO:fQPO'#HqO:kQPO'#D{O:kQPO'#EVO:kQPO'#EQO:sQPO'#HnO;UQQO'#EfO)PQPO'#C`O;^QPO'#C`O)PQPO'#FbO;cQPO'#FdO;nQPO'#FjO;nQPO'#FmO:kQPO'#FrO;sQPO'#FoO9PQPO'#FvO;nQPO'#FxO]QPO'#F}O;xQPO'#GPOyOSO,59[OOQO,59[,59[OOQO'#Hg'#HgO?jQPO,59eO@lQPO,59yOOQO-E:d-E:dO)PQPO,58zOA`QPO,58zO)PQPO,5;|OAeQPO'#DQOAjQPO'#DQOOQO'#Gi'#GiOBjQQO,59jOOQO'#Dm'#DmODRQPO'#HsOD]QPO'#DlODkQPO'#HrODsQPO,5<^ODxQPO,59^OEcQPO'#CxOOQO,59c,59cOEjQPO,59bOGrQQO'#H[OJVQQO'#CbOJmQPO'#D_OKrQQO'#HkOLSQQO,59pOLZQPO'#DvOLiQPO'#HzOLqQPO,5:`OLvQPO,5:`OM^QPO,5;mOMiQPO'#IROMtQPO,5;dOMyQPO,5=WOOQO-E:j-E:jOOQO,5:f,5:fO! aQPO,5:fO! hQPO,5:vO! mQPO,5<^O)PQPO,5:vO:kQPO,5:gO:kQPO,5:qO:kQPO,5:lO:kQPO,5<^O!!^QPO,59qO9PQPO,5:}O!!eQPO,5;QO9PQPO,59TO!!sQPO'#DXOOQO,5;O,5;OOOQO'#El'#ElOOQO'#En'#EnO9PQPO,5;UO9PQPO,5;UO9PQPO,5;UO9PQPO,5;UO9PQPO,5;UO9PQPO,5;UO9PQPO,5;eOOQO,5;h,5;hOOQO,5],5>]O!%SQPO,5:gO!%bQPO,5:qO!%jQPO,5:lO!%uQPO,5>YOLZQPO,5>YO! {QPO,59UO!&QQQO,58zO!&YQQO,5;|O!&bQQO,5_O!.ZQPO,5:WO:kQPO'#GnO!.bQPO,5>^OOQO1G1x1G1xOOQO1G.x1G.xO!.{QPO'#CyO!/kQPO'#HkO!/uQPO'#CzO!0TQPO'#HjO!0]QPO,59dOOQO1G.|1G.|OEjQPO1G.|O!0sQPO,59eO!1QQQO'#H[O!1cQQO'#CbOOQO,5:b,5:bO:kQPO,5:cOOQO,5:a,5:aO!1tQQO,5:aOOQO1G/[1G/[O!1yQPO,5:bO!2[QPO'#GqO!2oQPO,5>fOOQO1G/z1G/zO!2wQPO'#DvO!3YQPO'#D_O!3aQPO1G/zO!!zQPO'#GoO!3fQPO1G1XO9PQPO1G1XO:kQPO'#GwO!3nQPO,5>mOOQO1G1O1G1OOOQO1G0Q1G0QO!3vQPO'#E]OOQO1G0b1G0bO!4gQPO1G1xO! hQPO1G0bO!%SQPO1G0RO!%bQPO1G0]O!%jQPO1G0WOOQO1G/]1G/]O!4lQQO1G.pO7kQPO1G0jO)PQPO1G0jO:sQPO'#HnO!6`QQO1G.pOOQO1G.p1G.pO!6eQQO1G0iOOQO1G0l1G0lO!6lQPO1G0lO!6wQQO1G.oO!7_QQO'#HoO!7lQPO,59sO!8{QQO1G0pO!:dQQO1G0pO!;rQQO1G0pO!UOOQO1G/O1G/OOOQO7+$h7+$hOOQO1G/{1G/{O#1TQQO1G/{OOQO1G/}1G/}O#1YQPO1G/{OOQO1G/|1G/|O:kQPO1G/}OOQO,5=],5=]OOQO-E:o-E:oOOQO7+%f7+%fOOQO,5=Z,5=ZOOQO-E:m-E:mO9PQPO7+&sOOQO7+&s7+&sOOQO,5=c,5=cOOQO-E:u-E:uO#1_QPO'#EUO#1mQPO'#EUOOQO'#Gu'#GuO#2UQPO,5:wOOQO,5:w,5:wOOQO7+'d7+'dOOQO7+%|7+%|OOQO7+%m7+%mO!AYQPO7+%mO!A_QPO7+%mO!AgQPO7+%mOOQO7+%w7+%wO!BVQPO7+%wOOQO7+%r7+%rO!CUQPO7+%rO!CZQPO7+%rOOQO7+&U7+&UOOQO'#Ee'#EeO7kQPO7+&UO7kQPO,5>YO#2uQPO7+$[OOQO7+&T7+&TOOQO7+&W7+&WO9PQPO'#GjO#3TQPO,5>ZOOQO1G/_1G/_O9PQPO7+&kO#3`QQO,59eO#4cQPO'#DrO! pQPO'#DrO#4nQPO'#HwO#4vQPO,5:]O#5aQQO'#HgO#5|QQO'#CuO! mQPO'#HvO#6lQPO'#DpO#6vQPO'#HvO#7XQPO'#DpO#7aQPO'#IPO#7fQPO'#E`OOQO'#Hp'#HpOOQO'#Gk'#GkO#7nQPO,59vOOQO,59v,59vO#7uQPO'#HqOOQO,5:h,5:hO#9]QPO'#H|OOQO'#EP'#EPOOQO,5:i,5:iO#9hQPO'#EYO:kQPO'#EYO#9yQPO'#H}O#:UQPO,5:sO! mQPO'#HvO!!zQPO'#HvO#:^QPO'#DpOOQO'#Gs'#GsO#:eQPO,5:oOOQO,5:o,5:oOOQO,5:n,5:nOOQO,5;S,5;SO#;_QQO,5;SO#;fQPO,5;SOOQO-E:t-E:tOOQO7+&X7+&XOOQO7+)`7+)`O#;mQQO7+)`OOQO'#Gz'#GzO#=ZQPO,5;rOOQO,5;r,5;rO#=bQPO'#FXO)PQPO'#FXO)PQPO'#FXO)PQPO'#FXO#=pQPO7+'UO#=uQPO7+'UOOQO7+'U7+'UO]QPO7+'[O#>QQPO1G1{O! mQPO1G1{O#>`QQO1G1wO!!sQPO1G1wO#>gQPO1G1wO#>nQQO7+'hOOQO'#G}'#G}O#>uQPO,5|QPO'#HqO9PQPO'#F{O#?UQPO7+'oO#?ZQPO,5=OO! mQPO,5=OO#?`QPO1G2iO#@iQPO1G2iOOQO1G2i1G2iOOQO-E:|-E:|OOQO7+'z7+'zO!2[QPO'#G^OpOOQO1G.n1G.nOOQO<X,5>XOOQO,5=S,5=SOOQO-E:f-E:fO#EjQPO7+%gOOQO7+%g7+%gOOQO7+%i7+%iOOQO<cOOQO1G/w1G/wO#IfQPO'#HsO#ImQPO,59xO#IrQPO,5>bO! mQPO,59xO#I}QPO,5:[O#7fQPO,5:zO! mQPO,5>bO!!zQPO,5>bO#7aQPO,5>kOOQO,5:[,5:[OLvQPO'#DtOOQO,5>k,5>kO#JVQPO'#EaOOQO,5:z,5:zO#MWQPO,5:zO!!zQPO'#DxOOQO-E:i-E:iOOQO1G/b1G/bOOQO,5:y,5:yO!!zQPO'#GrO#M]QPO,5>hOOQO,5:t,5:tO#MhQPO,5:tO#MvQPO,5:tO#NXQPO'#GtO#NoQPO,5>iO#NzQPO'#EZOOQO1G0_1G0_O$ RQPO1G0_O! mQPO,5:pOOQO-E:q-E:qOOQO1G0Z1G0ZOOQO1G0n1G0nO$ WQQO1G0nOOQO<oOOQO1G1Y1G1YO$%uQPO'#FTOOQO,5=e,5=eOOQO-E:w-E:wO$%zQPO'#GmO$&XQPO,5>aOOQO1G/u1G/uOOQO<sAN>sO!AYQPOAN>sOOQOAN>xAN>xOOQOAN?[AN?[O7kQPOAN?[O$&pQPO,5:_OOQO1G/x1G/xOOQO,5=[,5=[OOQO-E:n-E:nO$&{QPO,5>eOOQO1G/d1G/dOOQO1G3|1G3|O$'^QPO1G/dOOQO1G/v1G/vOOQO1G0f1G0fO#MWQPO1G0fO#7aQPO'#HyO$'cQPO1G3|O! mQPO1G3|OOQO1G4V1G4VOK^QPO'#DvOJmQPO'#D_OOQO,5:{,5:{O$'nQPO,5:{O$'nQPO,5:{O$'uQQO'#H_O$'|QQO'#H`O$(WQQO'#EbO$(cQPO'#EbOOQO,5:d,5:dOOQO,5=^,5=^OOQO-E:p-E:pOOQO1G0`1G0`O$(kQPO1G0`OOQO,5=`,5=`OOQO-E:r-E:rO$(yQPO,5:uOOQO7+%y7+%yOOQO7+&Y7+&YOOQO1G1_1G1_O$)QQQO1G1_OOQO-E:y-E:yO$)YQQO'#IWO$)TQPO1G1_O$ mQPO1G1_O)PQPO1G1_OOQOAN@[AN@[O$)eQQO<rO$,cQPO7+&yO$,hQQO'#IXOOQOAN@mAN@mO$,sQQOAN@mOOQOAN@iAN@iO$,zQPOAN@iO$-PQQO<sOOQOG26XG26XOOQOG26TG26TOOQO<bPPP>hP@|PPPAv2vPCoPPDjPEaEgPPPPPPPPPPPPFpGXPJ_JgJqKZKaKgMVMZMZMcPMrNx! k! uP!![NxP!!b!!l!!{!#TP!#r!#|!$SNx!$V!$]EaEa!$a!$k!$n2v!&Y2v2v!(RP.^P!(VP!(vPPPPPP.^P.^!)d.^PP.^P.^PP.^!*x!+SPP!+Y!+cPPPPPPPP&}P&}PP!+g!+g!+z!+gPP!+gP!+gP!,e!,hP!+g!-O!+gP!+gP!-R!-UP!+gP!+gP!+gP!+gP!+g!+gP!+gP!-YP!-`!-c!-iP!+g!-u!-x!.Q!.d!2a!2g!2m!3s!3y!4T!5X!5_!5e!5o!5u!5{!6R!6X!6_!6e!6k!6q!6w!6}!7T!7Z!7e!7k!7u!7{PPP!8R!+g!8vP!`!O!P?m!P!QFa!Q!RN]!R![!#w![!]!0a!]!^!1e!^!_!1{!_!`!3Y!`!a!3v!a!b!5W!b!c!5p!c!}!;^!}#O!O#p#q!>f#q#r!?r#r#s!@Y#s#y$z#y#z&j#z$f$z$f$g&j$g#BY$z#BY#BZ&j#BZ$IS$z$IS$I_&j$I_$I|$z$I|$JO&j$JO$JT$z$JT$JU&j$JU$KV$z$KV$KW&j$KW&FU$z&FU&FV&j&FV~$zS%PT&WSOY$zYZ%`Zr$zrs%es~$zS%eO&WSS%hTOY%wYZ%`Zr%wrs&Zs~%wS%zTOY$zYZ%`Zr$zrs%es~$zS&^SOY%wYZ%`Zr%ws~%w_&qi&WS%wZOX$zXY&jYZ(`Z^&j^p$zpq&jqr$zrs%es#y$z#y#z&j#z$f$z$f$g&j$g#BY$z#BY#BZ&j#BZ$IS$z$IS$I_&j$I_$I|$z$I|$JO&j$JO$JT$z$JT$JU&j$JU$KV$z$KV$KW&j$KW&FU$z&FU&FV&j&FV~$z_(gY&WS%wZX^)Vpq)V#y#z)V$f$g)V#BY#BZ)V$IS$I_)V$I|$JO)V$JT$JU)V$KV$KW)V&FU&FV)VZ)[Y%wZX^)Vpq)V#y#z)V$f$g)V#BY#BZ)V$IS$I_)V$I|$JO)V$JT$JU)V$KV$KW)V&FU&FV)VV*RV#sP&WSOY$zYZ%`Zr$zrs%es!_$z!_!`*h!`~$zU*oT#_Q&WSOY$zYZ%`Zr$zrs%es~$zT+RVOY+hYZ%`Zr+hrs0Ss#O+h#O#P/p#P~+hT+kVOY,QYZ%`Zr,Qrs,ls#O,Q#O#P-Q#P~,QT,VV&WSOY,QYZ%`Zr,Qrs,ls#O,Q#O#P-Q#P~,QT,qTcPOY%wYZ%`Zr%wrs&Zs~%wT-VT&WSOY,QYZ-fZr,Qrs.us~,QT-kU&WSOY-}Zr-}rs.ds#O-}#O#P.i#P~-}P.QUOY-}Zr-}rs.ds#O-}#O#P.i#P~-}P.iOcPP.lROY-}YZ-}Z~-}T.xVOY+hYZ%`Zr+hrs/_s#O+h#O#P/p#P~+hT/dScPOY%wYZ%`Zr%ws~%wT/sTOY,QYZ-fZr,Qrs.us~,QT0XTcPOY%wYZ%`Zr%wrs0hs~%wT0mR&USXY0vYZ1Spq0vP0yRXY0vYZ1Spq0vP1XO&VP_1`_%}Z&WSOY$zYZ%`Zr$zrs%est$ztu1Xu!Q$z!Q![1X![!c$z!c!}1X!}#R$z#R#S1X#S#T$z#T#o1X#o~$zU2fV#gQ&WSOY$zYZ%`Zr$zrs%es!_$z!_!`2{!`~$zU3ST#]Q&WSOY$zYZ%`Zr$zrs%es~$zV3jX&lR&WSOY$zYZ%`Zr$zrs%esv$zvw4Vw!_$z!_!`2{!`~$zU4^T#aQ&WSOY$zYZ%`Zr$zrs%es~$zT4rX&WSOY5_YZ%`Zr5_rs6Psw5_wx$zx#O5_#O#P7u#P~5_T5dX&WSOY5_YZ%`Zr5_rs6Psw5_wx7_x#O5_#O#P7u#P~5_T6SXOY6oYZ%`Zr6ors9jsw6owx:Yx#O6o#O#P:n#P~6oT6rXOY5_YZ%`Zr5_rs6Psw5_wx7_x#O5_#O#P7u#P~5_T7fTbP&WSOY$zYZ%`Zr$zrs%es~$zT7zT&WSOY5_YZ8ZZr5_rs6Ps~5_T8`U&WSOY8rZw8rwx9Xx#O8r#O#P9^#P~8rP8uUOY8rZw8rwx9Xx#O8r#O#P9^#P~8rP9^ObPP9aROY8rYZ8rZ~8rT9mXOY6oYZ%`Zr6ors8rsw6owx:Yx#O6o#O#P:n#P~6oT:_TbPOY$zYZ%`Zr$zrs%es~$zT:qTOY5_YZ8ZZr5_rs6Ps~5__;XTZZ&WSOY$zYZ%`Zr$zrs%es~$zV;oTYR&WSOY$zYZ%`Zr$zrs%es~$zVPTqR&WSOY$zYZ%`Zr$zrs%es~$zV>gY#eR&WSOY$zYZ%`Zr$zrs%es}$z}!O=b!O!_$z!_!`2{!`!a?V!a~$zV?^T&vR&WSOY$zYZ%`Zr$zrs%es~$z_?tXWY&WSOY$zYZ%`Zr$zrs%es!O$z!O!P@a!P!Q$z!Q![Ac![~$zV@fV&WSOY$zYZ%`Zr$zrs%es!O$z!O!P@{!P~$zVAST&oR&WSOY$zYZ%`Zr$zrs%es~$zTAja&WS`POY$zYZ%`Zr$zrs%es!Q$z!Q![Ac![!f$z!f!gBo!g!hCV!h!iBo!i#R$z#R#SEu#S#W$z#W#XBo#X#YCV#Y#ZBo#Z~$zTBvT&WS`POY$zYZ%`Zr$zrs%es~$zTC[Z&WSOY$zYZ%`Zr$zrs%es{$z{|C}|}$z}!OC}!O!Q$z!Q![Di![~$zTDSV&WSOY$zYZ%`Zr$zrs%es!Q$z!Q![Di![~$zTDpa&WS`POY$zYZ%`Zr$zrs%es!Q$z!Q![Di![!f$z!f!gBo!g!h$z!h!iBo!i#R$z#R#SC}#S#W$z#W#XBo#X#Y$z#Y#ZBo#Z~$zTEzV&WSOY$zYZ%`Zr$zrs%es!Q$z!Q![Ac![~$z_FhZ&WS#fQOY$zYZ%`Zr$zrs%esz$zz{GZ{!P$z!P!QL[!Q!_$z!_!`2{!`~$z_G`V&WSOYGZYZGuZrGZrsHxszGZz{Iz{~GZ_GzR&WSOzHTz{Ha{~HTZHWROzHTz{Ha{~HTZHdTOzHTz{Ha{!PHT!P!QHs!Q~HTZHxOQZ_H{VOYIbYZGuZrIbrsKSszIbz{Kl{~Ib_IeVOYGZYZGuZrGZrsHxszGZz{Iz{~GZ_JPX&WSOYGZYZGuZrGZrsHxszGZz{Iz{!PGZ!P!QJl!Q~GZ_JsT&WSQZOY$zYZ%`Zr$zrs%es~$z_KVVOYIbYZGuZrIbrsHTszIbz{Kl{~Ib_KoXOYGZYZGuZrGZrsHxszGZz{Iz{!PGZ!P!QJl!Q~GZ_LcT&WSPZOYL[YZ%`ZrL[rsLrs~L[_LwTPZOYMWYZ%`ZrMWrsMls~MW_M]TPZOYL[YZ%`ZrL[rsLrs~L[_MqTPZOYMWYZ%`ZrMWrsNQs~MWZNVQPZOYNQZ~NQTNds&WS_POY$zYZ%`Zr$zrs%es!O$z!O!P!!q!P!Q$z!Q![!#w![!d$z!d!e!&i!e!f$z!f!gBo!g!hCV!h!iBo!i!n$z!n!o!%g!o!q$z!q!r!(Z!r!z$z!z!{!)u!{#R$z#R#S!%}#S#U$z#U#V!&i#V#W$z#W#XBo#X#YCV#Y#ZBo#Z#`$z#`#a!%g#a#c$z#c#d!(Z#d#l$z#l#m!)u#m~$zT!!x_&WS`POY$zYZ%`Zr$zrs%es!Q$z!Q![Ac![!f$z!f!gBo!g!hCV!h!iBo!i#W$z#W#XBo#X#YCV#Y#ZBo#Z~$zT!$Og&WS_POY$zYZ%`Zr$zrs%es!O$z!O!P!!q!P!Q$z!Q![!#w![!f$z!f!gBo!g!hCV!h!iBo!i!n$z!n!o!%g!o#R$z#R#S!%}#S#W$z#W#XBo#X#YCV#Y#ZBo#Z#`$z#`#a!%g#a~$zT!%nT&WS_POY$zYZ%`Zr$zrs%es~$zT!&SV&WSOY$zYZ%`Zr$zrs%es!Q$z!Q![!#w![~$zT!&nW&WSOY$zYZ%`Zr$zrs%es!Q$z!Q!R!'W!R!S!'W!S~$zT!'_^&WS_POY$zYZ%`Zr$zrs%es!Q$z!Q!R!'W!R!S!'W!S!n$z!n!o!%g!o#R$z#R#S!&i#S#`$z#`#a!%g#a~$zT!(`V&WSOY$zYZ%`Zr$zrs%es!Q$z!Q!Y!(u!Y~$zT!(|]&WS_POY$zYZ%`Zr$zrs%es!Q$z!Q!Y!(u!Y!n$z!n!o!%g!o#R$z#R#S!(Z#S#`$z#`#a!%g#a~$zT!)z]&WSOY$zYZ%`Zr$zrs%es!O$z!O!P!*s!P!Q$z!Q![!,u![!c$z!c!i!,u!i#T$z#T#Z!,u#Z~$zT!*xZ&WSOY$zYZ%`Zr$zrs%es!Q$z!Q![!+k![!c$z!c!i!+k!i#T$z#T#Z!+k#Z~$zT!+pa&WSOY$zYZ%`Zr$zrs%es!Q$z!Q![!+k![!c$z!c!i!+k!i!r$z!r!sCV!s#R$z#R#S!*s#S#T$z#T#Z!+k#Z#d$z#d#eCV#e~$zT!,|g&WS_POY$zYZ%`Zr$zrs%es!O$z!O!P!.e!P!Q$z!Q![!,u![!c$z!c!i!,u!i!n$z!n!o!%g!o!r$z!r!sCV!s#R$z#R#S!/i#S#T$z#T#Z!,u#Z#`$z#`#a!%g#a#d$z#d#eCV#e~$zT!.j_&WSOY$zYZ%`Zr$zrs%es!Q$z!Q![!+k![!c$z!c!i!+k!i!r$z!r!sCV!s#T$z#T#Z!+k#Z#d$z#d#eCV#e~$zT!/nZ&WSOY$zYZ%`Zr$zrs%es!Q$z!Q![!,u![!c$z!c!i!,u!i#T$z#T#Z!,u#Z~$zV!0hV#oR&WSOY$zYZ%`Zr$zrs%es![$z![!]!0}!]~$zV!1UT&tR&WSOY$zYZ%`Zr$zrs%es~$zV!1lT!PR&WSOY$zYZ%`Zr$zrs%es~$z_!2SW&]Z&WSOY$zYZ%`Zr$zrs%es!^$z!^!_!2l!_!`*h!`~$zU!2sV#hQ&WSOY$zYZ%`Zr$zrs%es!_$z!_!`2{!`~$zV!3aV!bR&WSOY$zYZ%`Zr$zrs%es!_$z!_!`*h!`~$zV!3}W&[R&WSOY$zYZ%`Zr$zrs%es!_$z!_!`*h!`!a!4g!a~$zU!4nW#hQ&WSOY$zYZ%`Zr$zrs%es!_$z!_!`2{!`!a!2l!a~$z_!5aT&`X#nQ&WSOY$zYZ%`Zr$zrs%es~$z_!5wV%{Z&WSOY$zYZ%`Zr$zrs%es#]$z#]#^!6^#^~$zV!6cV&WSOY$zYZ%`Zr$zrs%es#b$z#b#c!6x#c~$zV!6}V&WSOY$zYZ%`Zr$zrs%es#h$z#h#i!7d#i~$zV!7iV&WSOY$zYZ%`Zr$zrs%es#X$z#X#Y!8O#Y~$zV!8TV&WSOY$zYZ%`Zr$zrs%es#f$z#f#g!8j#g~$zV!8oV&WSOY$zYZ%`Zr$zrs%es#Y$z#Y#Z!9U#Z~$zV!9ZV&WSOY$zYZ%`Zr$zrs%es#T$z#T#U!9p#U~$zV!9uV&WSOY$zYZ%`Zr$zrs%es#V$z#V#W!:[#W~$zV!:aV&WSOY$zYZ%`Zr$zrs%es#X$z#X#Y!:v#Y~$zV!:}T&rR&WSOY$zYZ%`Zr$zrs%es~$z_!;e_&PZ&WSOY$zYZ%`Zr$zrs%est$ztu!;^u!Q$z!Q![!;^![!c$z!c!}!;^!}#R$z#R#S!;^#S#T$z#T#o!;^#o~$z_!VT}R&WSOY$zYZ%`Zr$zrs%es~$z_!>oX&|X#cQ&WSOY$zYZ%`Zr$zrs%es!_$z!_!`2{!`#p$z#p#q!?[#q~$zU!?cT#dQ&WSOY$zYZ%`Zr$zrs%es~$zV!?yT|R&WSOY$zYZ%`Zr$zrs%es~$zT!@aT#tP&WSOY$zYZ%`Zr$zrs%es~$z",tokenizers:[0,1,2,3],topRules:{Program:[0,3]},dynamicPrecedences:{27:1,230:-1,241:-1},specialized:[{term:229,get:e=>f0[e]||-1}],tokenPrec:7067}),f5=hQ.define({parser:f2.configure({props:[hJ.add({IfStatement:h4({except:/^\s*({|else\b)/}),TryStatement:h4({except:/^\s*({|catch|finally)\b/}),LabeledStatement:e=>e.baseIndent,SwitchBlock:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),r=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:r?1:2)*e.unit},Block:h5({closing:"}"}),BlockComment:()=>-1,Statement:h4({except:/^{/})}),h3.add({"Block SwitchBlock ClassBody ElementValueArrayInitializer ModuleBody EnumBody ConstructorBody InterfaceBody ArrayInitializer":h8,BlockComment:e=>({from:e.from+2,to:e.to-2})})]}),languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\})$/}}),f9=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],f4=new fR({start:!1,shift:(e,t)=>5==t||6==t||286==t?e:287==t,strict:!1}),f3=new fy((e,t)=>{let{next:n}=e;(125==n||-1==n||t.context)&&t.canShift(284)&&e.acceptToken(284)},{contextual:!0,fallback:!0}),f8=new fy((e,t)=>{let{next:n}=e,r;!(f9.indexOf(n)>-1)&&(47!=n||47!=(r=e.peek(1))&&42!=r)&&125!=n&&59!=n&&-1!=n&&!t.context&&t.canShift(281)&&e.acceptToken(281)},{contextual:!0}),f6=new fy((e,t)=>{let{next:n}=e;if((43==n||45==n)&&(e.advance(),n==e.next)){e.advance();let n=!t.context&&t.canShift(1);e.acceptToken(n?1:2)}},{contextual:!0}),f7=new fy(e=>{for(let t=!1,n=0;;n++){let{next:r}=e;if(r<0){n&&e.acceptToken(282);break}if(96==r){n?e.acceptToken(282):e.acceptToken(283,1);break}if(123==r&&t){1==n?e.acceptToken(3,1):e.acceptToken(282,-1);break}if(10==r&&n){e.advance(),e.acceptToken(282);break}else 92==r&&e.advance();t=36==r,e.advance()}}),me=hh({"get set async static":hI.modifier,"for while do if else switch try catch finally return throw break continue default case":hI.controlKeyword,"in of await yield void typeof delete instanceof":hI.operatorKeyword,"let var const function class extends":hI.definitionKeyword,"import export from":hI.moduleKeyword,"with debugger as new":hI.keyword,TemplateString:hI.special(hI.string),Super:hI.atom,BooleanLiteral:hI.bool,this:hI.self,null:hI.null,Star:hI.modifier,VariableName:hI.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":hI.function(hI.variableName),VariableDefinition:hI.definition(hI.variableName),Label:hI.labelName,PropertyName:hI.propertyName,PrivatePropertyName:hI.special(hI.propertyName),"CallExpression/MemberExpression/PropertyName":hI.function(hI.propertyName),"FunctionDeclaration/VariableDefinition":hI.function(hI.definition(hI.variableName)),"ClassDeclaration/VariableDefinition":hI.definition(hI.className),PropertyDefinition:hI.definition(hI.propertyName),PrivatePropertyDefinition:hI.definition(hI.special(hI.propertyName)),UpdateOp:hI.updateOperator,LineComment:hI.lineComment,BlockComment:hI.blockComment,Number:hI.number,String:hI.string,ArithOp:hI.arithmeticOperator,LogicOp:hI.logicOperator,BitOp:hI.bitwiseOperator,CompareOp:hI.compareOperator,RegExp:hI.regexp,Equals:hI.definitionOperator,"Arrow : Spread":hI.punctuation,"( )":hI.paren,"[ ]":hI.squareBracket,"{ }":hI.brace,"InterpolationStart InterpolationEnd":hI.special(hI.brace),".":hI.derefOperator,", ;":hI.separator,TypeName:hI.typeName,TypeDefinition:hI.definition(hI.typeName),"type enum interface implements namespace module declare":hI.definitionKeyword,"abstract global Privacy readonly override":hI.modifier,"is keyof unique infer":hI.operatorKeyword,JSXAttributeValue:hI.attributeValue,JSXText:hI.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":hI.angleBracket,"JSXIdentifier JSXNameSpacedName":hI.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":hI.attributeName}),mt={__proto__:null,export:18,as:23,from:29,default:32,async:37,function:38,this:48,true:56,false:56,void:66,typeof:70,null:86,super:88,new:122,await:139,yield:141,delete:142,class:152,extends:154,public:197,private:197,protected:197,readonly:199,instanceof:220,in:222,const:224,import:256,keyof:307,unique:311,infer:317,is:351,abstract:371,implements:373,type:375,let:378,var:380,interface:387,enum:391,namespace:397,module:399,declare:403,global:407,for:428,of:437,while:440,with:444,do:448,if:452,else:454,switch:458,case:464,try:470,catch:474,finally:478,return:482,throw:486,break:490,continue:494,debugger:498},mn={__proto__:null,async:109,get:111,set:113,public:161,private:161,protected:161,static:163,abstract:165,override:167,readonly:173,new:355},mr={__proto__:null,"<":129},mi=fP.deserialize({version:14,states:"$4|O`QYOOO'QQ$IfO'#ChO'XOSO'#DVO)dQYO'#D]O)tQYO'#DhO){QYO'#DrO-xQYO'#DxOOQO'#E]'#E]O.]QWO'#E[O.bQWO'#E[OOQ$IU'#Ef'#EfO0aQ$IfO'#ItO2wQ$IfO'#IuO3eQWO'#EzO3jQpO'#FaOOQ$IU'#FS'#FSO3rO!bO'#FSO4QQWO'#FhO5_QWO'#FgOOQ$IU'#Iu'#IuOOQ$IS'#It'#ItOOQQ'#J^'#J^O5dQWO'#HpO5iQ$I[O'#HqOOQQ'#Ih'#IhOOQQ'#Hr'#HrQ`QYOOO){QYO'#DjO5qQWO'#G[O5vQ#tO'#CmO6UQWO'#EZO6aQWO'#EgO6fQ#tO'#FRO7QQWO'#G[O7VQWO'#G`O7bQWO'#G`O7pQWO'#GcO7pQWO'#GdO7pQWO'#GfO5qQWO'#GiO8aQWO'#GlO9oQWO'#CdO:PQWO'#GyO:XQWO'#HPO:XQWO'#HRO`QYO'#HTO:XQWO'#HVO:XQWO'#HYO:^QWO'#H`O:cQ$I]O'#HfO){QYO'#HhO:nQ$I]O'#HjO:yQ$I]O'#HlO5iQ$I[O'#HnO){QYO'#DWOOOS'#Ht'#HtO;UOSO,59qOOQ$IU,59q,59qO=gQbO'#ChO=qQYO'#HuO>UQWO'#IvO@TQbO'#IvO'dQYO'#IvO@[QWO,59wO@rQ&jO'#DbOAkQWO'#E]OAxQWO'#JROBTQWO'#JQOBTQWO'#JQOB]QWO,5:yOBbQWO'#JPOBiQWO'#DyO5vQ#tO'#EZOBwQWO'#EZOCSQ`O'#FROOQ$IU,5:S,5:SOC[QYO,5:SOEYQ$IfO,5:^OEvQWO,5:dOFaQ$I[O'#JOO7VQWO'#I}OFhQWO'#I}OFpQWO,5:xOFuQWO'#I}OGTQYO,5:vOITQWO'#EWOJ_QWO,5:vOKnQWO'#DlOKuQYO'#DqOLPQ&jO,5;PO){QYO,5;POOQQ'#Er'#ErOOQQ'#Et'#EtO){QYO,5;RO){QYO,5;RO){QYO,5;RO){QYO,5;RO){QYO,5;RO){QYO,5;RO){QYO,5;RO){QYO,5;RO){QYO,5;RO){QYO,5;RO){QYO,5;ROOQQ'#Ex'#ExOLXQYO,5;cOOQ$IU,5;h,5;hOOQ$IU,5;i,5;iONXQWO,5;iOOQ$IU,5;j,5;jO){QYO'#IPON^Q$I[O,5[OOQQ'#Ik'#IkOOQQ,5>],5>]OOQQ-E;p-E;pO!+VQ$IfO,5:UOOQ$IS'#Cp'#CpO!+vQ#tO,5Q,5>QO){QYO,5>QO5iQ$I[O,5>SOOQQ,5>U,5>UO!8VQWO,5>UOOQQ,5>W,5>WO!8VQWO,5>WOOQQ,5>Y,5>YO!8[Q`O,59rOOOS-E;r-E;rOOQ$IU1G/]1G/]O!8aQbO,5>aO'dQYO,5>aOOQO,5>f,5>fO!8kQYO'#HuOOQO-E;s-E;sO!8xQWO,5?bO!9QQbO,5?bO!9XQWO,5?lOOQ$IU1G/c1G/cO!9aQpO'#DTOOQO'#Ix'#IxO){QYO'#IxO!:OQpO'#IxO!:mQpO'#DcO!;OQ&jO'#DcO!=ZQYO'#DcO!=bQWO'#IwO!=jQWO,59|O!=oQWO'#EaO!=}QWO'#JSO!>VQWO,5:zO!>mQ&jO'#DcO){QYO,5?mO!>wQWO'#HzOOQO-E;x-E;xO!9XQWO,5?lOOQ$IS1G0e1G0eO!@TQ&jO'#D|OOQ$IU,5:e,5:eO){QYO,5:eOITQWO,5:eO!@[QWO,5:eO:^QWO,5:uO!,rQpO,5:uO!,zQ#tO,5:uO5vQ#tO,5:uOOQ$IU1G/n1G/nOOQ$IU1G0O1G0OOOQ$IS'#EV'#EVO){QYO,5?jO!@gQ$I[O,5?jO!@xQ$I[O,5?jO!APQWO,5?iO!AXQWO'#H|O!APQWO,5?iOOQ$IS1G0d1G0dO7VQWO,5?iOOQ$IU1G0b1G0bO!AsQ$IfO1G0bO!BdQ$IdO,5:rOOQ$IU'#Fq'#FqO!CQQ$IfO'#IqOGTQYO1G0bO!EPQ#tO'#IyO!EZQWO,5:WO!E`QbO'#IzO){QYO'#IzO!EjQWO,5:]OOQ$IU'#DT'#DTOOQ$IU1G0k1G0kO!EoQWO1G0kO!HQQ$IfO1G0mO!HXQ$IfO1G0mO!JlQ$IfO1G0mO!JsQ$IfO1G0mO!LzQ$IfO1G0mO!M_Q$IfO1G0mO#!OQ$IfO1G0mO#!VQ$IfO1G0mO#$jQ$IfO1G0mO#$qQ$IfO1G0mO#&fQ$IfO1G0mO#)`Q7^O'#ChO#+ZQ7^O1G0}O#-UQ7^O'#IuOOQ$IU1G1T1G1TO#-iQ$IfO,5>kOOQ$IS-E;}-E;}O#.YQ$IfO1G0mOOQ$IU1G0m1G0mO#0[Q$IfO1G1QO#0{QpO,5;sO#1QQpO,5;tO#1VQpO'#F[O#1kQWO'#FZOOQO'#JW'#JWOOQO'#H}'#H}O#1pQpO1G1]OOQ$IU1G1]1G1]OOOO1G1f1G1fO#2OQ7^O'#ItO#2YQWO,5;}OLXQYO,5;}OOOO-E;|-E;|OOQ$IU1G1Y1G1YOOQ$IU,5WQWO1G2iOOQQ1G2j1G2jOITQWO1G2jO#>]QWO1G2jO#>eQ&jO'#GhOOQQ1G2l1G2lO!&tQ&jO'#IYO!0OQ`O1G2oOOQQ1G2o1G2oOOQQ,5=Y,5=YO#>mQ#tO,5=[O5qQWO,5=[O#5YQWO,5=_O5_QWO,5=_O!,rQpO,5=_O!,zQ#tO,5=_O5vQ#tO,5=_O#?OQWO'#JaO#?ZQWO,5=`OOQQ1G.j1G.jO#?`Q$I[O1G.jO#?kQWO1G.jO#?pQWO1G.jO5iQ$I[O1G.jO#?xQbO,5@OO#@SQWO,5@OO#@_QYO,5=gO#@fQWO,5=gO7VQWO,5@OOOQQ1G3P1G3PO`QYO1G3POOQQ1G3V1G3VOOQQ1G3X1G3XO:XQWO1G3ZO#@kQYO1G3]O#DfQYO'#H[OOQQ1G3`1G3`O#DsQWO'#HbO:^QWO'#HdOOQQ1G3f1G3fO#D{QYO1G3fO5iQ$I[O1G3lOOQQ1G3n1G3nOOQ$IS'#Fx'#FxO5iQ$I[O1G3pO5iQ$I[O1G3rOOOS1G/^1G/^O#HyQ`O,5aO#I]QWO1G4|O#IeQWO1G5WO#ImQWO,5?dOLXQYO,5:{O7VQWO,5:{O:^QWO,59}OLXQYO,59}O!,rQpO,59}O#IrQ7^O,59}OOQO,5:{,5:{O#I|Q&jO'#HvO#JdQWO,5?cOOQ$IU1G/h1G/hO#JlQ&jO'#H{O#KQQWO,5?nOOQ$IS1G0f1G0fO!;OQ&jO,59}O#KYQbO1G5XO7VQWO,5>fOOQ$IS'#ES'#ESO#KdQ$ItO'#ETO!?{Q&jO'#D}OOQO'#Hy'#HyO#LOQ&jO,5:hOOQ$IU,5:h,5:hO#LVQ&jO'#D}O#LhQ&jO'#D}O#LoQ&jO'#EYO#LrQ&jO'#ETO#MPQ&jO'#ETO!?{Q&jO'#ETO#MdQWO1G0PO#MiQ`O1G0POOQ$IU1G0P1G0PO){QYO1G0POITQWO1G0POOQ$IU1G0a1G0aO:^QWO1G0aO!,rQpO1G0aO!,zQ#tO1G0aO#MpQ$IfO1G5UO){QYO1G5UO#NQQ$I[O1G5UO#NcQWO1G5TO7VQWO,5>hOOQO,5>h,5>hO#NkQWO,5>hOOQO-E;z-E;zO#NcQWO1G5TO#NyQ$IfO,59jO$!xQ$IfO,5m,5>mO$,iQWO,5>mOOQ$IU1G2P1G2PP$,nQWO'#IRPOQ$IU-Eo,5>oOOQO-Ep,5>pOOQO-Ex,5>xOOQO-E<[-E<[OOQ$IU7+&q7+&qO$4uQWO7+(iO5iQ$I[O7+(iO5qQWO7+(iO$4zQWO7+(iO$5PQWO7+'|OOQ$IS,5>r,5>rOOQ$IS-Et,5>tOOQO-EO,5>OOOQQ7+)Q7+)QOOQQ7+)W7+)WOOQQ7+)[7+)[OOQQ7+)^7+)^OOQO1G5O1G5OO$9eQ7^O1G0gO$9oQWO1G0gOOQO1G/i1G/iO$9zQ7^O1G/iO:^QWO1G/iOLXQYO'#DcOOQO,5>b,5>bOOQO-E;t-E;tOOQO,5>g,5>gOOQO-E;y-E;yO!,rQpO1G/iO:^QWO,5:iOOQO,5:o,5:oO){QYO,5:oO$:UQ$I[O,5:oO$:aQ$I[O,5:oO!,rQpO,5:iOOQO-E;w-E;wOOQ$IU1G0S1G0SO!?{Q&jO,5:iO$:oQ&jO,5:iO$;QQ$ItO,5:oO$;lQ&jO,5:iO!?{Q&jO,5:oOOQO,5:t,5:tO$;sQ&jO,5:oO$cOOQO-E;u-E;uO$CfQbO,5>dO){QYO,5>dOOQO-E;v-E;vO$CpQWO1G5QO$CxQ7^O1G0bO$FPQ7^O1G0mO$FWQ7^O1G0mO$HXQ7^O1G0mO$H`Q7^O1G0mO$JTQ7^O1G0mO$JhQ7^O1G0mO$LuQ7^O1G0mO$L|Q7^O1G0mO$N}Q7^O1G0mO% UQ7^O1G0mO%!yQ7^O1G0mO%#^Q$IfO<kOOOO7+'T7+'TOOOS1G/R1G/ROOQ$IU1G4X1G4XOJdQWO7+'zO%([QWO,5>lO5qQWO,5>lOOQO-EnO%)XQWO,5>nOITQWO,5>nOOQO-Ew,5>wO%,kQWO,5>wO%,pQWO,5>wOOQO-EvOOQO-EWQ7^O7+'WO%>eQ7^O7+'XO%>rQWO,5;xOOQO7+&{7+&{O%>wQ#tO<qOOQO-EsOOQO-E{AN>{OOQOAN>uAN>uO%1gQ$IfOAN>{O:^QWOAN>uO){QYOAN>{O!,rQpOAN>uO&%SQ$I[OAN>{O&%_Q7^O<^O!O&OO~Ox&RO!W&]O!X&UO!Y&UO'^$bO~O]&SOk&SO!Q&VO'g&PO!S'kP!S'vP~P@aO!O'sX!R'sX!]'sX!c'sX'p'sX~O!{'sX#W#PX!S'sX~PAYO!{&^O!O'uX!R'uX~O!R&_O!O'tX~O!O&bO~O!{#eO~PAYOS&fO!T&cO!o&eO']$`O~Oc&kO!d$XO']$`O~Ou$nO!d$mO~O!S&lO~P`Ou!{Ov!{Ox!|O!b!yO!d!zO'fQOP!faZ!faj!fa!R!fa!a!fa!j!fa#[!fa#]!fa#^!fa#_!fa#`!fa#a!fa#b!fa#c!fa#e!fa#g!fa#i!fa#j!fa'p!fa'w!fa'x!fa~O_!fa'W!fa!O!fa!c!fan!fa!T!fa%Q!fa!]!fa~PCcO!c&mO~O!]!wO!{&oO'p&nO!R'rX_'rX'W'rX~O!c'rX~PE{O!R&sO!c'qX~O!c&uO~Ox$tO!T$uO#V&vO']$`O~OPTOQTO]cOb!kOc!jOhcOjTOkcOlcOqTOsTOxRO{cO|cO}cO!TSO!_kO!dUO!gTO!hTO!iTO!jTO!kTO!n!iO#t!lO#x^O']9WO'fQO'oYO'|aO~O]#qOh$OOj#rOk#qOl#qOq$POs9kOx#xO!T#yO!_;RO!d#vO#V9tO#t$TO$_9nO$a9qO$d$UO']&zO'f#sO~O#W&|O~O]#qOh$OOj#rOk#qOl#qOq$POs$QOx#xO!T#yO!_$VO!d#vO#V$WO#t$TO$_$RO$a$SO$d$UO']&zO'f#sO~O'a'mP~PJdO!Q'QO!c'nP~P){O'g'SO'oYO~OP9TOQ9TO]cOb;POc!jOhcOj9TOkcOlcOq9TOs9TOxRO{cO|cO}cO!T!bO!_9VO!dUO!g9TO!h9TO!i9TO!j9TO!k9TO!n!iO#t!lO#x^O']'bO'fQO'oYO'|:}O~O!d!zO~O!R#bO_$]a'W$]a!c$]a!O$]a!T$]a%Q$]a!]$]a~O#d'iO~PITO!]'kO!T'yX#w'yX#z'yX$R'yX~Ou'lO~P! POu'lO!T'yX#w'yX#z'yX$R'yX~O!T'nO#w'rO#z'mO$R'sO~O!Q'vO~PLXO#z#fO$R'yO~Ou$eXx$eX!b$eX'p$eX'w$eX'x$eX~OSfX!RfX!{fX'afX'a$eX~P!!iOk'{O~OR'|O'U'}O'V(PO~Ou(ROx(SO'p#[O'w(UO'x(WO~O'a(QO~P!#rO'a(ZO~O]#qOh$OOj#rOk#qOl#qOq$POs9kOx#xO!T#yO!_;RO!d#vO#V9tO#t$TO$_9nO$a9qO$d$UO'f#sO~O!Q(_O']([O!c'}P~P!$aO#W(aO~O!Q(eO'](bO!O(OP~P!$aOj(sOx(kO!W(qO!X(jO!Y(jO!d(hO!x(rO$w(mO'^$bO'g(gO~O!S(pO~P!&XO!b!yOu'eXx'eX'p'eX'w'eX'x'eX!R'eX!{'eX~O'a'eX#m'eX~P!'QOS(vO!{(uO!R'dX'a'dX~O!R(wO'a'cX~O'](yO~O!d)OO~O']&zO~O!d(hO~Ox$tO!Q!rO!T$uO#U!uO#V!rO']$`O!c'qP~O!]!wO#W)SO~OP#^OZ#dOj#ROu!{Ov!{Ox!|O!a#TO!b!yO!d!zO!j#^O#[#PO#]#QO#^#QO#_#QO#`#SO#a#TO#b#TO#c#TO#e#UO#g#WO#i#YO#j#ZO'fQO'p#[O'w!}O'x#OO~O_!^a!R!^a'W!^a!O!^a!c!^an!^a!T!^a%Q!^a!]!^a~P!)cOS)[O!T&cO!o)ZO%Q)YO'b$cO~O']$zO'a'cP~O!])_O!T'`X_'`X!R'`X'W'`X~O!d$XO'b$cO~O!d$XO']$`O'b$cO~O!]!wO#W&|O~O])jO%R)kO'])gO!S(VP~O!R)lO^(UX~O'g'SO~OZ)pO~O^)qO~O!T$kO']$`O'^$bO^(UP~Ox$tO!Q)vO!R&_O!T$uO']$`O!O'tP~O]&YOk&YO!Q)wO'g'SO!S'vP~O!R)xO_(RX'W(RX~O!{)|O'b$cO~OS*PO!T#yO'b$cO~O!T*RO~Ou*TO!TSO~O!n*YO~Oc*_O~O'](yO!S(TP~Oc$iO~O%RtO']$zO~P8tOZ*eO^*dO~OPTOQTO]cObnOcmOhcOjTOkcOlcOqTOsTOxRO{cO|cO}cO!_kO!dUO!gTO!hTO!iTO!jTO!kTO!nlO#x^O%PqO'fQO'oYO'|aO~O!T!bO#t!lO']9WO~P!1RO^*dO_$[O'W$[O~O_*iO#d*kO%T*kO%U*kO~P){O!d%_O~O%t*pO~O!T*rO~O&V*tO&X*uOP&SaQ&SaX&Sa]&Sa_&Sab&Sac&Sah&Saj&Sak&Sal&Saq&Sas&Sax&Sa{&Sa|&Sa}&Sa!T&Sa!_&Sa!d&Sa!g&Sa!h&Sa!i&Sa!j&Sa!k&Sa!n&Sa#d&Sa#t&Sa#x&Sa%P&Sa%R&Sa%T&Sa%U&Sa%X&Sa%Z&Sa%^&Sa%_&Sa%a&Sa%n&Sa%t&Sa%v&Sa%x&Sa%z&Sa%}&Sa&T&Sa&Z&Sa&]&Sa&_&Sa&a&Sa&c&Sa'S&Sa']&Sa'f&Sa'o&Sa'|&Sa!S&Sa%{&Sa`&Sa&Q&Sa~O']*zO~On*}O~O!O&ia!R&ia~P!)cO!Q+RO!O&iX!R&iX~P){O!R%yO!O'ja~O!O'ja~P>^O!R&_O!O'ta~O!RwX!R!ZX!SwX!S!ZX!]wX!]!ZX!d!ZX!{wX'b!ZX~O!]+WO!{+VO!R#TX!R'lX!S#TX!S'lX!]'lX!d'lX'b'lX~O!]+YO!d$XO'b$cO!R!VX!S!VX~O]&QOk&QOx&RO'g(gO~OP9TOQ9TO]cOb;POc!jOhcOj9TOkcOlcOq9TOs9TOxRO{cO|cO}cO!T!bO!_9VO!dUO!g9TO!h9TO!i9TO!j9TO!k9TO!n!iO#t!lO#x^O'fQO'oYO'|:}O~O']9yO~P!;^O!R+^O!S'kX~O!S+`O~O!]+WO!{+VO!R#TX!S#TX~O!R+aO!S'vX~O!S+cO~O]&QOk&QOx&RO'^$bO'g(gO~O!X+dO!Y+dO~P!>[Ox$tO!Q+fO!T$uO']$`O!O&nX!R&nX~O_+jO!W+mO!X+iO!Y+iO!r+qO!s+oO!t+pO!u+nO!x+rO'^$bO'g(gO'o+gO~O!S+lO~P!?]OS+wO!T&cO!o+vO~O!{+}O!R'ra!c'ra_'ra'W'ra~O!]!wO~P!@gO!R&sO!c'qa~Ox$tO!Q,QO!T$uO#U,SO#V,QO']$`O!R&pX!c&pX~O_#Oi!R#Oi'W#Oi!O#Oi!c#Oin#Oi!T#Oi%Q#Oi!]#Oi~P!)cO#W!za!R!za!c!za!{!za!T!za_!za'W!za!O!za~P!#rO#W'eXP'eXZ'eX_'eXj'eXv'eX!a'eX!d'eX!j'eX#['eX#]'eX#^'eX#_'eX#`'eX#a'eX#b'eX#c'eX#e'eX#g'eX#i'eX#j'eX'W'eX'f'eX!c'eX!O'eX!T'eXn'eX%Q'eX!]'eX~P!'QO!R,]O'a'mX~P!#rO'a,_O~O!R,`O!c'nX~P!)cO!c,cO~O!O,dO~OP#^Ou!{Ov!{Ox!|O!b!yO!d!zO!j#^O'fQOZ#Zi_#Zij#Zi!R#Zi!a#Zi#]#Zi#^#Zi#_#Zi#`#Zi#a#Zi#b#Zi#c#Zi#e#Zi#g#Zi#i#Zi#j#Zi'W#Zi'p#Zi'w#Zi'x#Zi!O#Zi!c#Zin#Zi!T#Zi%Q#Zi!]#Zi~O#[#Zi~P!EtO#[#PO~P!EtOP#^Ou!{Ov!{Ox!|O!b!yO!d!zO!j#^O#[#PO#]#QO#^#QO#_#QO'fQOZ#Zi_#Zi!R#Zi!a#Zi#`#Zi#a#Zi#b#Zi#c#Zi#e#Zi#g#Zi#i#Zi#j#Zi'W#Zi'p#Zi'w#Zi'x#Zi!O#Zi!c#Zin#Zi!T#Zi%Q#Zi!]#Zi~Oj#Zi~P!H`Oj#RO~P!H`OP#^Oj#ROu!{Ov!{Ox!|O!b!yO!d!zO!j#^O#[#PO#]#QO#^#QO#_#QO#`#SO'fQO_#Zi!R#Zi#e#Zi#g#Zi#i#Zi#j#Zi'W#Zi'p#Zi'w#Zi'x#Zi!O#Zi!c#Zin#Zi!T#Zi%Q#Zi!]#Zi~OZ#Zi!a#Zi#a#Zi#b#Zi#c#Zi~P!JzOZ#dO!a#TO#a#TO#b#TO#c#TO~P!JzOP#^OZ#dOj#ROu!{Ov!{Ox!|O!a#TO!b!yO!d!zO!j#^O#[#PO#]#QO#^#QO#_#QO#`#SO#a#TO#b#TO#c#TO#e#UO'fQO_#Zi!R#Zi#g#Zi#i#Zi#j#Zi'W#Zi'p#Zi'x#Zi!O#Zi!c#Zin#Zi!T#Zi%Q#Zi!]#Zi~O'w#Zi~P!MrO'w!}O~P!MrOP#^OZ#dOj#ROu!{Ov!{Ox!|O!a#TO!b!yO!d!zO!j#^O#[#PO#]#QO#^#QO#_#QO#`#SO#a#TO#b#TO#c#TO#e#UO#g#WO'fQO'w!}O_#Zi!R#Zi#i#Zi#j#Zi'W#Zi'p#Zi!O#Zi!c#Zin#Zi!T#Zi%Q#Zi!]#Zi~O'x#Zi~P#!^O'x#OO~P#!^OP#^OZ#dOj#ROu!{Ov!{Ox!|O!a#TO!b!yO!d!zO!j#^O#[#PO#]#QO#^#QO#_#QO#`#SO#a#TO#b#TO#c#TO#e#UO#g#WO#i#YO'fQO'w!}O'x#OO~O_#Zi!R#Zi#j#Zi'W#Zi'p#Zi!O#Zi!c#Zin#Zi!T#Zi%Q#Zi!]#Zi~P#$xOP[XZ[Xj[Xu[Xv[Xx[X!a[X!b[X!d[X!j[X!{[X#WdX#[[X#][X#^[X#_[X#`[X#a[X#b[X#c[X#e[X#g[X#i[X#j[X#o[X'f[X'p[X'w[X'x[X!R[X!S[X~O#m[X~P#']OP#^OZ9iOj9^Ou!{Ov!{Ox!|O!a9`O!b!yO!d!zO!j#^O#[9[O#]9]O#^9]O#_9]O#`9_O#a9`O#b9`O#c9`O#e9aO#g9cO#i9eO#j9fO'fQO'p#[O'w!}O'x#OO~O#m,fO~P#)gOP'iXZ'iXj'iXu'iXv'iXx'iX!a'iX!b'iX!d'iX!j'iX#['iX#]'iX#^'iX#_'iX#`'iX#a'iX#b'iX#e'iX#g'iX#i'iX#j'iX'f'iX'p'iX'w'iX'x'iX!R'iX~O!{9jO#o9jO#c'iX#m'iX!S'iX~P#+bO_&sa!R&sa'W&sa!c&san&sa!O&sa!T&sa%Q&sa!]&sa~P!)cOP#ZiZ#Zi_#Zij#Ziv#Zi!R#Zi!a#Zi!b#Zi!d#Zi!j#Zi#[#Zi#]#Zi#^#Zi#_#Zi#`#Zi#a#Zi#b#Zi#c#Zi#e#Zi#g#Zi#i#Zi#j#Zi'W#Zi'f#Zi!O#Zi!c#Zin#Zi!T#Zi%Q#Zi!]#Zi~P!#rO_#ni!R#ni'W#ni!O#ni!c#nin#ni!T#ni%Q#ni!]#ni~P!)cO#z,hO~O#z,iO~O!]'kO!{,jO!T$OX#w$OX#z$OX$R$OX~O!Q,kO~O!T'nO#w,mO#z'mO$R,nO~O!R9gO!S'hX~P#)gO!S,oO~O$R,qO~OR'|O'U'}O'V,tO~O],wOk,wO!O,xO~O!RdX!]dX!cdX!c$eX'pdX~P!!iO!c-OO~P!#rO!R-PO!]!wO'p&nO!c'}X~O!c-UO~O!O$eX!R$eX!]$lX~P!!iO!R-WO!O(OX~P!#rO!]-YO~O!O-[O~O!Q(_O']$`O!c'}P~Oj-`O!]!wO!d$XO'b$cO'p&nO~O!])_O~O_$[O!R-eO'W$[O~O!S-gO~P!&XO!X-hO!Y-hO'^$bO'g(gO~Ox-jO'g(gO~O!x-kO~O']$zO!R&xX'a&xX~O!R(wO'a'ca~Ou-pOv-pOx-qO'pra'wra'xra!Rra!{ra~O'ara#mra~P#6qOu(ROx(SO'p$^a'w$^a'x$^a!R$^a!{$^a~O'a$^a#m$^a~P#7gOu(ROx(SO'p$`a'w$`a'x$`a!R$`a!{$`a~O'a$`a#m$`a~P#8YO]-rO~O#W-sO~O'a$na!R$na#m$na!{$na~P!#rO#W-vO~OS.PO!T&cO!o.OO%Q-}O~O'a.QO~O]#qOj#rOk#qOl#qOq$POs9kOx#xO!T#yO!_;RO!d#vO#V9tO#t$TO$_9nO$a9qO$d$UO'f#sO~Oh.SO'].RO~P#:PO!])_O!T'`a_'`a!R'`a'W'`a~O#W.YO~OZ[X!RdX!SdX~O!R.ZO!S(VX~O!S.]O~OZ.^O~O].`O'])gO~O!T$kO']$`O^'QX!R'QX~O!R)lO^(Ua~O!c.cO~P!)cO].eO~OZ.fO~O^.gO~OS.PO!T&cO!o.OO%Q-}O'b$cO~O!R)xO_(Ra'W(Ra~O!{.mO~OS.pO!T#yO~O'g'SO!S(SP~OS.zO!T.vO!o.yO%Q.xO'b$cO~OZ/UO!R/SO!S(TX~O!S/VO~O^/XO_$[O'W$[O~O]/YO~O]/ZO'](yO~O#c/[O%r/]O~P0zO!{#eO#c/[O%r/]O~O_/^O~P){O_/`O~O%{/dOP%yiQ%yiX%yi]%yi_%yib%yic%yih%yij%yik%yil%yiq%yis%yix%yi{%yi|%yi}%yi!T%yi!_%yi!d%yi!g%yi!h%yi!i%yi!j%yi!k%yi!n%yi#d%yi#t%yi#x%yi%P%yi%R%yi%T%yi%U%yi%X%yi%Z%yi%^%yi%_%yi%a%yi%n%yi%t%yi%v%yi%x%yi%z%yi%}%yi&T%yi&Z%yi&]%yi&_%yi&a%yi&c%yi'S%yi']%yi'f%yi'o%yi'|%yi!S%yi`%yi&Q%yi~O`/jO!S/hO&Q/iO~P`O!TSO!d/lO~O&X*uOP&SiQ&SiX&Si]&Si_&Sib&Sic&Sih&Sij&Sik&Sil&Siq&Sis&Six&Si{&Si|&Si}&Si!T&Si!_&Si!d&Si!g&Si!h&Si!i&Si!j&Si!k&Si!n&Si#d&Si#t&Si#x&Si%P&Si%R&Si%T&Si%U&Si%X&Si%Z&Si%^&Si%_&Si%a&Si%n&Si%t&Si%v&Si%x&Si%z&Si%}&Si&T&Si&Z&Si&]&Si&_&Si&a&Si&c&Si'S&Si']&Si'f&Si'o&Si'|&Si!S&Si%{&Si`&Si&Q&Si~O!R#bOn$]a~O!O&ii!R&ii~P!)cO!R%yO!O'ji~O!R&_O!O'ti~O!O/rO~O!R!Va!S!Va~P#)gO]&QOk&QO!Q/xO'g(gO!R&jX!S&jX~P@aO!R+^O!S'ka~O]&YOk&YO!Q)wO'g'SO!R&oX!S&oX~O!R+aO!S'va~O!O'ui!R'ui~P!)cO_$[O!]!wO!d$XO!j0SO!{0QO'W$[O'b$cO'p&nO~O!S0VO~P!?]O!X0WO!Y0WO'^$bO'g(gO'o+gO~O!W0XO~P#LVO!TSO!W0XO!u0ZO!x0[O~P#LVO!W0XO!s0^O!t0^O!u0ZO!x0[O~P#LVO!T&cO~O!T&cO~P!#rO!R'ri!c'ri_'ri'W'ri~P!)cO!{0gO!R'ri!c'ri_'ri'W'ri~O!R&sO!c'qi~Ox$tO!T$uO#V0iO']$`O~O#WraPraZra_rajra!ara!bra!dra!jra#[ra#]ra#^ra#_ra#`ra#ara#bra#cra#era#gra#ira#jra'Wra'fra!cra!Ora!Tranra%Qra!]ra~P#6qO#W$^aP$^aZ$^a_$^aj$^av$^a!a$^a!b$^a!d$^a!j$^a#[$^a#]$^a#^$^a#_$^a#`$^a#a$^a#b$^a#c$^a#e$^a#g$^a#i$^a#j$^a'W$^a'f$^a!c$^a!O$^a!T$^an$^a%Q$^a!]$^a~P#7gO#W$`aP$`aZ$`a_$`aj$`av$`a!a$`a!b$`a!d$`a!j$`a#[$`a#]$`a#^$`a#_$`a#`$`a#a$`a#b$`a#c$`a#e$`a#g$`a#i$`a#j$`a'W$`a'f$`a!c$`a!O$`a!T$`an$`a%Q$`a!]$`a~P#8YO#W$naP$naZ$na_$naj$nav$na!R$na!a$na!b$na!d$na!j$na#[$na#]$na#^$na#_$na#`$na#a$na#b$na#c$na#e$na#g$na#i$na#j$na'W$na'f$na!c$na!O$na!T$na!{$nan$na%Q$na!]$na~P!#rO_#Oq!R#Oq'W#Oq!O#Oq!c#Oqn#Oq!T#Oq%Q#Oq!]#Oq~P!)cO!R&kX'a&kX~PJdO!R,]O'a'ma~O!Q0qO!R&lX!c&lX~P){O!R,`O!c'na~O!R,`O!c'na~P!)cO#m!fa!S!fa~PCcO#m!^a!R!^a!S!^a~P#)gO!T1UO#x^O$P1VO~O!S1ZO~On1[O~P!#rO_$Yq!R$Yq'W$Yq!O$Yq!c$Yqn$Yq!T$Yq%Q$Yq!]$Yq~P!)cO!O1]O~O],wOk,wO~Ou(ROx(SO'x(WO'p$xi'w$xi!R$xi!{$xi~O'a$xi#m$xi~P$,vOu(ROx(SO'p$zi'w$zi'x$zi!R$zi!{$zi~O'a$zi#m$zi~P$-iO#m1^O~P!#rO!Q1`O']$`O!R&tX!c&tX~O!R-PO!c'}a~O!R-PO!]!wO!c'}a~O!R-PO!]!wO'p&nO!c'}a~O'a$gi!R$gi#m$gi!{$gi~P!#rO!Q1gO'](bO!O&vX!R&vX~P!$aO!R-WO!O(Oa~O!R-WO!O(Oa~P!#rO!]!wO~O!]!wO#c1oO~Oj1rO!]!wO'p&nO~O!R'di'a'di~P!#rO!{1uO!R'di'a'di~P!#rO!c1xO~O_$Zq!R$Zq'W$Zq!O$Zq!c$Zqn$Zq!T$Zq%Q$Zq!]$Zq~P!)cO!R1|O!T(PX~P!#rO!T&cO%Q2PO~O!T&cO%Q2PO~P!#rO!T$eX$u[X_$eX!R$eX'W$eX~P!!iO$u2TOugXxgX!TgX'pgX'wgX'xgX_gX!RgX'WgX~O$u2TO~O]2ZO%R2[O'])gO!R'PX!S'PX~O!R.ZO!S(Va~OZ2`O~O^2aO~O]2dO~OS2fO!T&cO!o2eO%Q2PO~O_$[O'W$[O~P!#rO!T#yO~P!#rO!R2kO!{2mO!S(SX~O!S2nO~Ox;]O!W2wO!X2pO!Y2pO!r2vO!s2uO!t2uO!x2tO'^$bO'g(gO'o+gO~O!S2sO~P$6QOS3OO!T.vO!o2}O%Q2|O~OS3OO!T.vO!o2}O%Q2|O'b$cO~O'](yO!R'OX!S'OX~O!R/SO!S(Ta~O]3YO'g3XO~O]3ZO~O^3]O~O!c3`O~P){O_3bO~O_3bO~P){O#c3dO%r3eO~PE{O`/jO!S3iO&Q/iO~P`O!]3kO~O!R#Ti!S#Ti~P#)gO!{3mO!R#Ti!S#Ti~O!R!Vi!S!Vi~P#)gO_$[O!{3tO'W$[O~O_$[O!]!wO!{3tO'W$[O~O!X3xO!Y3xO'^$bO'g(gO'o+gO~O_$[O!]!wO!d$XO!j3yO!{3tO'W$[O'b$cO'p&nO~O!W3zO~P$:oO!W3zO!u3}O!x4OO~P$:oO_$[O!]!wO!j3yO!{3tO'W$[O'p&nO~O!R'rq!c'rq_'rq'W'rq~P!)cO!R&sO!c'qq~O#W$xiP$xiZ$xi_$xij$xiv$xi!a$xi!b$xi!d$xi!j$xi#[$xi#]$xi#^$xi#_$xi#`$xi#a$xi#b$xi#c$xi#e$xi#g$xi#i$xi#j$xi'W$xi'f$xi!c$xi!O$xi!T$xin$xi%Q$xi!]$xi~P$,vO#W$ziP$ziZ$zi_$zij$ziv$zi!a$zi!b$zi!d$zi!j$zi#[$zi#]$zi#^$zi#_$zi#`$zi#a$zi#b$zi#c$zi#e$zi#g$zi#i$zi#j$zi'W$zi'f$zi!c$zi!O$zi!T$zin$zi%Q$zi!]$zi~P$-iO#W$giP$giZ$gi_$gij$giv$gi!R$gi!a$gi!b$gi!d$gi!j$gi#[$gi#]$gi#^$gi#_$gi#`$gi#a$gi#b$gi#c$gi#e$gi#g$gi#i$gi#j$gi'W$gi'f$gi!c$gi!O$gi!T$gi!{$gin$gi%Q$gi!]$gi~P!#rO!R&ka'a&ka~P!#rO!R&la!c&la~P!)cO!R,`O!c'ni~O#m#Oi!R#Oi!S#Oi~P#)gOP#^Ou!{Ov!{Ox!|O!b!yO!d!zO!j#^O'fQOZ#Zij#Zi!a#Zi#]#Zi#^#Zi#_#Zi#`#Zi#a#Zi#b#Zi#c#Zi#e#Zi#g#Zi#i#Zi#j#Zi#m#Zi'p#Zi'w#Zi'x#Zi!R#Zi!S#Zi~O#[#Zi~P$DVO#[9[O~P$DVOP#^Ou!{Ov!{Ox!|O!b!yO!d!zO!j#^O#[9[O#]9]O#^9]O#_9]O'fQOZ#Zi!a#Zi#`#Zi#a#Zi#b#Zi#c#Zi#e#Zi#g#Zi#i#Zi#j#Zi#m#Zi'p#Zi'w#Zi'x#Zi!R#Zi!S#Zi~Oj#Zi~P$F_Oj9^O~P$F_OP#^Oj9^Ou!{Ov!{Ox!|O!b!yO!d!zO!j#^O#[9[O#]9]O#^9]O#_9]O#`9_O'fQO#e#Zi#g#Zi#i#Zi#j#Zi#m#Zi'p#Zi'w#Zi'x#Zi!R#Zi!S#Zi~OZ#Zi!a#Zi#a#Zi#b#Zi#c#Zi~P$HgOZ9iO!a9`O#a9`O#b9`O#c9`O~P$HgOP#^OZ9iOj9^Ou!{Ov!{Ox!|O!a9`O!b!yO!d!zO!j#^O#[9[O#]9]O#^9]O#_9]O#`9_O#a9`O#b9`O#c9`O#e9aO'fQO#g#Zi#i#Zi#j#Zi#m#Zi'p#Zi'x#Zi!R#Zi!S#Zi~O'w#Zi~P$J{O'w!}O~P$J{OP#^OZ9iOj9^Ou!{Ov!{Ox!|O!a9`O!b!yO!d!zO!j#^O#[9[O#]9]O#^9]O#_9]O#`9_O#a9`O#b9`O#c9`O#e9aO#g9cO'fQO'w!}O#i#Zi#j#Zi#m#Zi'p#Zi!R#Zi!S#Zi~O'x#Zi~P$MTO'x#OO~P$MTOP#^OZ9iOj9^Ou!{Ov!{Ox!|O!a9`O!b!yO!d!zO!j#^O#[9[O#]9]O#^9]O#_9]O#`9_O#a9`O#b9`O#c9`O#e9aO#g9cO#i9eO'fQO'w!}O'x#OO~O#j#Zi#m#Zi'p#Zi!R#Zi!S#Zi~P% ]O_#ky!R#ky'W#ky!O#ky!c#kyn#ky!T#ky%Q#ky!]#ky~P!)cOP#ZiZ#Zij#Ziv#Zi!a#Zi!b#Zi!d#Zi!j#Zi#[#Zi#]#Zi#^#Zi#_#Zi#`#Zi#a#Zi#b#Zi#c#Zi#e#Zi#g#Zi#i#Zi#j#Zi#m#Zi'f#Zi!R#Zi!S#Zi~P!#rO!b!yOu'eXx'eX'p'eX'w'eX'x'eX!S'eX~OP'eXZ'eXj'eXv'eX!a'eX!d'eX!j'eX#['eX#]'eX#^'eX#_'eX#`'eX#a'eX#b'eX#c'eX#e'eX#g'eX#i'eX#j'eX#m'eX'f'eX!R'eX~P%%mO#m#ni!R#ni!S#ni~P#)gO!S4`O~O!R&sa!S&sa~P#)gO!]!wO'p&nO!R&ta!c&ta~O!R-PO!c'}i~O!R-PO!]!wO!c'}i~O!O&va!R&va~P!#rO!]4gO~O!R-WO!O(Oi~P!#rO!R-WO!O(Oi~O!O4kO~O!]!wO#c4pO~Oj4qO!]!wO'p&nO~O!O4sO~O'a$iq!R$iq#m$iq!{$iq~P!#rO_$Zy!R$Zy'W$Zy!O$Zy!c$Zyn$Zy!T$Zy%Q$Zy!]$Zy~P!)cO!R1|O!T(Pa~O!T&cO%Q4xO~O!T&cO%Q4xO~P!#rO_#Oy!R#Oy'W#Oy!O#Oy!c#Oyn#Oy!T#Oy%Q#Oy!]#Oy~P!)cOZ4{O~O]4}O'])gO~O!R.ZO!S(Vi~O]5QO~O^5RO~O'g'SO!R&{X!S&{X~O!R2kO!S(Sa~O!S5`O~P$6QOx;^O'g(gO'o+gO~O!W5cO!X5bO!Y5bO!x0[O'^$bO'g(gO'o+gO~O!s5dO!t5dO~P%.RO!X5bO!Y5bO'^$bO'g(gO'o+gO~O!T.vO~O!T.vO%Q5fO~O!T.vO%Q5fO~P!#rOS5kO!T.vO!o5jO%Q5fO~OZ5pO!R'Oa!S'Oa~O!R/SO!S(Ti~O]5sO~O!c5tO~O!c5uO~O!c5vO~O!c5vO~P){O_5xO~O!]5{O~O!c5|O~O!R'ui!S'ui~P#)gO_$[O'W$[O~P!)cO_$[O!{6RO'W$[O~O_$[O!]!wO!{6RO'W$[O~O!X6WO!Y6WO'^$bO'g(gO'o+gO~O_$[O!]!wO!j6XO!{6RO'W$[O'p&nO~O!d$XO'b$cO~P%2mO!W6YO~P%2[O!R'ry!c'ry_'ry'W'ry~P!)cO#W$iqP$iqZ$iq_$iqj$iqv$iq!R$iq!a$iq!b$iq!d$iq!j$iq#[$iq#]$iq#^$iq#_$iq#`$iq#a$iq#b$iq#c$iq#e$iq#g$iq#i$iq#j$iq'W$iq'f$iq!c$iq!O$iq!T$iq!{$iqn$iq%Q$iq!]$iq~P!#rO!R&li!c&li~P!)cO#m#Oq!R#Oq!S#Oq~P#)gOu-pOv-pOx-qO'pra'wra'xra!Sra~OPraZrajra!ara!bra!dra!jra#[ra#]ra#^ra#_ra#`ra#ara#bra#cra#era#gra#ira#jra#mra'fra!Rra~P%6eOu(ROx(SO'p$^a'w$^a'x$^a!S$^a~OP$^aZ$^aj$^av$^a!a$^a!b$^a!d$^a!j$^a#[$^a#]$^a#^$^a#_$^a#`$^a#a$^a#b$^a#c$^a#e$^a#g$^a#i$^a#j$^a#m$^a'f$^a!R$^a~P%8fOu(ROx(SO'p$`a'w$`a'x$`a!S$`a~OP$`aZ$`aj$`av$`a!a$`a!b$`a!d$`a!j$`a#[$`a#]$`a#^$`a#_$`a#`$`a#a$`a#b$`a#c$`a#e$`a#g$`a#i$`a#j$`a#m$`a'f$`a!R$`a~P%:gOP$naZ$naj$nav$na!a$na!b$na!d$na!j$na#[$na#]$na#^$na#_$na#`$na#a$na#b$na#c$na#e$na#g$na#i$na#j$na#m$na'f$na!R$na!S$na~P!#rO#m$Yq!R$Yq!S$Yq~P#)gO#m$Zq!R$Zq!S$Zq~P#)gO!S6dO~O'a$|y!R$|y#m$|y!{$|y~P!#rO!]!wO!R&ti!c&ti~O!]!wO'p&nO!R&ti!c&ti~O!R-PO!c'}q~O!O&vi!R&vi~P!#rO!R-WO!O(Oq~O!O6jO~P!#rO!O6jO~O!R'dy'a'dy~P!#rO!R&ya!T&ya~P!#rO!T$tq_$tq!R$tq'W$tq~P!#rOZ6qO~O!R.ZO!S(Vq~O]6tO~O!T&cO%Q6uO~O!T&cO%Q6uO~P!#rO!{6vO!R&{a!S&{a~O!R2kO!S(Si~P#)gO!X6|O!Y6|O'^$bO'g(gO'o+gO~O!W7OO!x4OO~P%BkO!T.vO%Q7RO~O!T.vO%Q7RO~P!#rO]7YO'g7XO~O!R/SO!S(Tq~O!c7[O~O!c7[O~P){O!c7^O~O!c7_O~O!R#Ty!S#Ty~P#)gO_$[O!{7eO'W$[O~O_$[O!]!wO!{7eO'W$[O~O!X7hO!Y7hO'^$bO'g(gO'o+gO~O_$[O!]!wO!j7iO!{7eO'W$[O'p&nO~O#W$|yP$|yZ$|y_$|yj$|yv$|y!R$|y!a$|y!b$|y!d$|y!j$|y#[$|y#]$|y#^$|y#_$|y#`$|y#a$|y#b$|y#c$|y#e$|y#g$|y#i$|y#j$|y'W$|y'f$|y!c$|y!O$|y!T$|y!{$|yn$|y%Q$|y!]$|y~P!#rO#m#ky!R#ky!S#ky~P#)gOP$giZ$gij$giv$gi!a$gi!b$gi!d$gi!j$gi#[$gi#]$gi#^$gi#_$gi#`$gi#a$gi#b$gi#c$gi#e$gi#g$gi#i$gi#j$gi#m$gi'f$gi!R$gi!S$gi~P!#rOu(ROx(SO'x(WO'p$xi'w$xi!S$xi~OP$xiZ$xij$xiv$xi!a$xi!b$xi!d$xi!j$xi#[$xi#]$xi#^$xi#_$xi#`$xi#a$xi#b$xi#c$xi#e$xi#g$xi#i$xi#j$xi#m$xi'f$xi!R$xi~P%JROu(ROx(SO'p$zi'w$zi'x$zi!S$zi~OP$ziZ$zij$ziv$zi!a$zi!b$zi!d$zi!j$zi#[$zi#]$zi#^$zi#_$zi#`$zi#a$zi#b$zi#c$zi#e$zi#g$zi#i$zi#j$zi#m$zi'f$zi!R$zi~P%LSO#m$Zy!R$Zy!S$Zy~P#)gO#m#Oy!R#Oy!S#Oy~P#)gO!]!wO!R&tq!c&tq~O!R-PO!c'}y~O!O&vq!R&vq~P!#rO!O7mO~P!#rO!R.ZO!S(Vy~O!R2kO!S(Sq~O!X7yO!Y7yO'^$bO'g(gO'o+gO~O!T.vO%Q7|O~O!T.vO%Q7|O~P!#rO!c8PO~O_$[O!{8UO'W$[O~O_$[O!]!wO!{8UO'W$[O~OP$iqZ$iqj$iqv$iq!a$iq!b$iq!d$iq!j$iq#[$iq#]$iq#^$iq#_$iq#`$iq#a$iq#b$iq#c$iq#e$iq#g$iq#i$iq#j$iq#m$iq'f$iq!R$iq!S$iq~P!#rO!R&{q!S&{q~P#)gO_$[O!{8hO'W$[O~OP$|yZ$|yj$|yv$|y!a$|y!b$|y!d$|y!j$|y#[$|y#]$|y#^$|y#_$|y#`$|y#a$|y#b$|y#c$|y#e$|y#g$|y#i$|y#j$|y#m$|y'f$|y!R$|y!S$|y~P!#rO!S!za!W!za!X!za!Y!za!r!za!s!za!t!za!x!za'^!za'g!za'o!za~P!#rO!W'eX!X'eX!Y'eX!r'eX!s'eX!t'eX!x'eX'^'eX'g'eX'o'eX~P%%mO!Wra!Xra!Yra!rra!sra!tra!xra'^ra'gra'ora~P%6eO!W$^a!X$^a!Y$^a!r$^a!s$^a!t$^a!x$^a'^$^a'g$^a'o$^a~P%8fO!W$`a!X$`a!Y$`a!r$`a!s$`a!t$`a!x$`a'^$`a'g$`a'o$`a~P%:gO!S$na!W$na!X$na!Y$na!r$na!s$na!t$na!x$na'^$na'g$na'o$na~P!#rO!W$xi!X$xi!Y$xi!r$xi!s$xi!t$xi!x$xi'^$xi'g$xi'o$xi~P%JRO!W$zi!X$zi!Y$zi!r$zi!s$zi!t$zi!x$zi'^$zi'g$zi'o$zi~P%LSO!S$gi!W$gi!X$gi!Y$gi!r$gi!s$gi!t$gi!x$gi'^$gi'g$gi'o$gi~P!#rO!S$iq!W$iq!X$iq!Y$iq!r$iq!s$iq!t$iq!x$iq'^$iq'g$iq'o$iq~P!#rO!S$|y!W$|y!X$|y!Y$|y!r$|y!s$|y!t$|y!x$|y'^$|y'g$|y'o$|y~P!#rOn'hX~P.jOn[X!O[X!c[X%r[X!T[X%Q[X!][X~P$zO!]dX!c[X!cdX'pdX~P;aOP9TOQ9TO]cOb;POc!jOhcOj9TOkcOlcOq9TOs9TOxRO{cO|cO}cO!TSO!_9VO!dUO!g9TO!h9TO!i9TO!j9TO!k9TO!n!iO#t!lO#x^O']'bO'fQO'oYO'|:}O~O]#qOh$OOj#rOk#qOl#qOq$POs9lOx#xO!T#yO!_;SO!d#vO#V9uO#t$TO$_9oO$a9rO$d$UO']&zO'f#sO~O!R9gO!S$]a~O]#qOh$OOj#rOk#qOl#qOq$POs9mOx#xO!T#yO!_;TO!d#vO#V9vO#t$TO$_9pO$a9sO$d$UO']&zO'f#sO~O#d'iO~P&3xO!S[X!SdX~P;aO!]9ZO~O#W9YO~O!]!wO#W9YO~O!{9jO~O#c9`O~O!{9wO!R'uX!S'uX~O!{9jO!R'sX!S'sX~O#W9xO~O'a9zO~P!#rO#W:RO~O#W:SO~O#W:TO~O!]!wO#W:UO~O!]!wO#W9xO~O#m:VO~P#)gO#W:WO~O#W:XO~O#W:YO~O#W:ZO~O#W:[O~O#m:]O~P!#rO#m:^O~P!#rO#m:_O~P!#rO!O:`O~O!O:aO~P!#rO!O:aO~O!O:bO~P!#rO!]!wO#c;YO~O!]!wO#c;[O~O#x~!b!r!t!u#U#V'|$_$a$d$u%P%Q%R%X%Z%^%_%a%c~UT#x'|#]}'Y'Z#z'Y']'g~",goto:"#Hc(ZPPPPPPPP([P(lP*`PPPP-zPP.a3s5g5zP5zPPP5zP7t5zP5zP7xPP8OP8dk|}?O}!O>k!O!P?`!P!QCl!Q!R!0[!R![!1q![!]!7s!]!^!8V!^!_!8g!_!`!9d!`!a!:[!a!b!U#R#S2`#S#T!>i#T#o2`#o#p!>y#p#q!?O#q#r!?f#r#s!?x#s$f%T$f$g%c$g#BY2`#BY#BZ!@Y#BZ$IS2`$IS$I_!@Y$I_$I|2`$I|$I}!Bq$I}$JO!Bq$JO$JT2`$JT$JU!@Y$JU$KV2`$KV$KW!@Y$KW&FU2`&FU&FV!@Y&FV?HT2`?HT?HU!@Y?HU~2`W%YR$UWO!^%T!_#o%T#p~%T7Z%jg$UW'Y7ROX%TXY%cYZ%TZ[%c[p%Tpq%cq!^%T!_#o%T#p$f%T$f$g%c$g#BY%T#BY#BZ%c#BZ$IS%T$IS$I_%c$I_$JT%T$JT$JU%c$JU$KV%T$KV$KW%c$KW&FU%T&FU&FV%c&FV?HT%T?HT?HU%c?HU~%T7Z'YR$UW'Z7RO!^%T!_#o%T#p~%T$T'jS$UW!j#{O!^%T!_!`'v!`#o%T#p~%T$O'}S#e#v$UWO!^%T!_!`(Z!`#o%T#p~%T$O(bR#e#v$UWO!^%T!_#o%T#p~%T'u(rZ$UW]!ROY(kYZ)eZr(krs*rs!^(k!^!_+U!_#O(k#O#P-b#P#o(k#o#p+U#p~(k&r)jV$UWOr)ers*Ps!^)e!^!_*a!_#o)e#o#p*a#p~)e&r*WR$P&j$UWO!^%T!_#o%T#p~%T&j*dROr*ars*ms~*a&j*rO$P&j'u*{R$P&j$UW]!RO!^%T!_#o%T#p~%T'm+ZV]!ROY+UYZ*aZr+Urs+ps#O+U#O#P+w#P~+U'm+wO$P&j]!R'm+zROr+Urs,Ts~+U'm,[U$P&j]!ROY,nZr,nrs-Vs#O,n#O#P-[#P~,n!R,sU]!ROY,nZr,nrs-Vs#O,n#O#P-[#P~,n!R-[O]!R!R-_PO~,n'u-gV$UWOr(krs-|s!^(k!^!_+U!_#o(k#o#p+U#p~(k'u.VZ$P&j$UW]!ROY.xYZ%TZr.xrs/rs!^.x!^!_,n!_#O.x#O#P0S#P#o.x#o#p,n#p~.x!Z/PZ$UW]!ROY.xYZ%TZr.xrs/rs!^.x!^!_,n!_#O.x#O#P0S#P#o.x#o#p,n#p~.x!Z/yR$UW]!RO!^%T!_#o%T#p~%T!Z0XT$UWO!^.x!^!_,n!_#o.x#o#p,n#p~.x2k0mZ$UWOt%Ttu1`u!^%T!_!c%T!c!}1`!}#R%T#R#S1`#S#T%T#T#o1`#p$g%T$g~1`2k1g]$UW'o2cOt%Ttu1`u!Q%T!Q![1`![!^%T!_!c%T!c!}1`!}#R%T#R#S1`#S#T%T#T#o1`#p$g%T$g~1`7Z2k_$UW#zS']%k'g2bOt%Ttu2`u}%T}!O3j!O!Q%T!Q![2`![!^%T!_!c%T!c!}2`!}#R%T#R#S2`#S#T%T#T#o2`#p$g%T$g~2`[3q_$UW#zSOt%Ttu3ju}%T}!O3j!O!Q%T!Q![3j![!^%T!_!c%T!c!}3j!}#R%T#R#S3j#S#T%T#T#o3j#p$g%T$g~3j$O4wS#^#v$UWO!^%T!_!`5T!`#o%T#p~%T$O5[R$UW#o#vO!^%T!_#o%T#p~%T6d5lU'x6[$UWOv%Tvw6Ow!^%T!_!`5T!`#o%T#p~%T$O6VS$UW#i#vO!^%T!_!`5T!`#o%T#p~%T'u6jZ$UW]!ROY6cYZ7]Zw6cwx*rx!^6c!^!_8T!_#O6c#O#P:T#P#o6c#o#p8T#p~6c&r7bV$UWOw7]wx*Px!^7]!^!_7w!_#o7]#o#p7w#p~7]&j7zROw7wwx*mx~7w'm8YV]!ROY8TYZ7wZw8Twx+px#O8T#O#P8o#P~8T'm8rROw8Twx8{x~8T'm9SU$P&j]!ROY9fZw9fwx-Vx#O9f#O#P9}#P~9f!R9kU]!ROY9fZw9fwx-Vx#O9f#O#P9}#P~9f!R:QPO~9f'u:YV$UWOw6cwx:ox!^6c!^!_8T!_#o6c#o#p8T#p~6c'u:xZ$P&j$UW]!ROY;kYZ%TZw;kwx/rx!^;k!^!_9f!_#O;k#O#PW{!^%T!_!`5T!`#o%T#p~%T$O>_S#[#v$UWO!^%T!_!`5T!`#o%T#p~%T$u>rSj$m$UWO!^%T!_!`5T!`#o%T#p~%T&i?VR!R&a$UWO!^%T!_#o%T#p~%T7Z?gVu6`$UWO!O%T!O!P?|!P!Q%T!Q![@r![!^%T!_#o%T#p~%Ty@RT$UWO!O%T!O!P@b!P!^%T!_#o%T#p~%Ty@iR!Qq$UWO!^%T!_#o%T#p~%Ty@yZ$UWkqO!Q%T!Q![@r![!^%T!_!g%T!g!hAl!h#R%T#R#S@r#S#X%T#X#YAl#Y#o%T#p~%TyAqZ$UWO{%T{|Bd|}%T}!OBd!O!Q%T!Q![CO![!^%T!_#R%T#R#SCO#S#o%T#p~%TyBiV$UWO!Q%T!Q![CO![!^%T!_#R%T#R#SCO#S#o%T#p~%TyCVV$UWkqO!Q%T!Q![CO![!^%T!_#R%T#R#SCO#S#o%T#p~%T7ZCs`$UW#]#vOYDuYZ%TZzDuz{Jl{!PDu!P!Q!-e!Q!^Du!^!_Fx!_!`!.^!`!a!/]!a!}Du!}#OHq#O#PJQ#P#oDu#o#pFx#p~DuXD|[$UW}POYDuYZ%TZ!PDu!P!QEr!Q!^Du!^!_Fx!_!}Du!}#OHq#O#PJQ#P#oDu#o#pFx#p~DuXEy_$UW}PO!^%T!_#Z%T#Z#[Er#[#]%T#]#^Er#^#a%T#a#bEr#b#g%T#g#hEr#h#i%T#i#jEr#j#m%T#m#nEr#n#o%T#p~%TPF}V}POYFxZ!PFx!P!QGd!Q!}Fx!}#OG{#O#PHh#P~FxPGiU}P#Z#[Gd#]#^Gd#a#bGd#g#hGd#i#jGd#m#nGdPHOTOYG{Z#OG{#O#PH_#P#QFx#Q~G{PHbQOYG{Z~G{PHkQOYFxZ~FxXHvY$UWOYHqYZ%TZ!^Hq!^!_G{!_#OHq#O#PIf#P#QDu#Q#oHq#o#pG{#p~HqXIkV$UWOYHqYZ%TZ!^Hq!^!_G{!_#oHq#o#pG{#p~HqXJVV$UWOYDuYZ%TZ!^Du!^!_Fx!_#oDu#o#pFx#p~Du7ZJs^$UW}POYJlYZKoZzJlz{NQ{!PJl!P!Q!,R!Q!^Jl!^!_!!]!_!}Jl!}#O!'|#O#P!+a#P#oJl#o#p!!]#p~Jl7ZKtV$UWOzKoz{LZ{!^Ko!^!_M]!_#oKo#o#pM]#p~Ko7ZL`X$UWOzKoz{LZ{!PKo!P!QL{!Q!^Ko!^!_M]!_#oKo#o#pM]#p~Ko7ZMSR$UWU7RO!^%T!_#o%T#p~%T7RM`ROzM]z{Mi{~M]7RMlTOzM]z{Mi{!PM]!P!QM{!Q~M]7RNQOU7R7ZNX^$UW}POYJlYZKoZzJlz{NQ{!PJl!P!Q! T!Q!^Jl!^!_!!]!_!}Jl!}#O!'|#O#P!+a#P#oJl#o#p!!]#p~Jl7Z! ^_$UWU7R}PO!^%T!_#Z%T#Z#[Er#[#]%T#]#^Er#^#a%T#a#bEr#b#g%T#g#hEr#h#i%T#i#jEr#j#m%T#m#nEr#n#o%T#p~%T7R!!bY}POY!!]YZM]Zz!!]z{!#Q{!P!!]!P!Q!&x!Q!}!!]!}#O!$`#O#P!&f#P~!!]7R!#VY}POY!!]YZM]Zz!!]z{!#Q{!P!!]!P!Q!#u!Q!}!!]!}#O!$`#O#P!&f#P~!!]7R!#|UU7R}P#Z#[Gd#]#^Gd#a#bGd#g#hGd#i#jGd#m#nGd7R!$cWOY!$`YZM]Zz!$`z{!${{#O!$`#O#P!&S#P#Q!!]#Q~!$`7R!%OYOY!$`YZM]Zz!$`z{!${{!P!$`!P!Q!%n!Q#O!$`#O#P!&S#P#Q!!]#Q~!$`7R!%sTU7ROYG{Z#OG{#O#PH_#P#QFx#Q~G{7R!&VTOY!$`YZM]Zz!$`z{!${{~!$`7R!&iTOY!!]YZM]Zz!!]z{!#Q{~!!]7R!&}_}POzM]z{Mi{#ZM]#Z#[!&x#[#]M]#]#^!&x#^#aM]#a#b!&x#b#gM]#g#h!&x#h#iM]#i#j!&x#j#mM]#m#n!&x#n~M]7Z!(R[$UWOY!'|YZKoZz!'|z{!(w{!^!'|!^!_!$`!_#O!'|#O#P!*o#P#QJl#Q#o!'|#o#p!$`#p~!'|7Z!(|^$UWOY!'|YZKoZz!'|z{!(w{!P!'|!P!Q!)x!Q!^!'|!^!_!$`!_#O!'|#O#P!*o#P#QJl#Q#o!'|#o#p!$`#p~!'|7Z!*PY$UWU7ROYHqYZ%TZ!^Hq!^!_G{!_#OHq#O#PIf#P#QDu#Q#oHq#o#pG{#p~Hq7Z!*tX$UWOY!'|YZKoZz!'|z{!(w{!^!'|!^!_!$`!_#o!'|#o#p!$`#p~!'|7Z!+fX$UWOYJlYZKoZzJlz{NQ{!^Jl!^!_!!]!_#oJl#o#p!!]#p~Jl7Z!,Yc$UW}POzKoz{LZ{!^Ko!^!_M]!_#ZKo#Z#[!,R#[#]Ko#]#^!,R#^#aKo#a#b!,R#b#gKo#g#h!,R#h#iKo#i#j!,R#j#mKo#m#n!,R#n#oKo#o#pM]#p~Ko7Z!-lV$UWT7ROY!-eYZ%TZ!^!-e!^!_!.R!_#o!-e#o#p!.R#p~!-e7R!.WQT7ROY!.RZ~!.R$P!.g[$UW#o#v}POYDuYZ%TZ!PDu!P!QEr!Q!^Du!^!_Fx!_!}Du!}#OHq#O#PJQ#P#oDu#o#pFx#p~Du]!/f[#wS$UW}POYDuYZ%TZ!PDu!P!QEr!Q!^Du!^!_Fx!_!}Du!}#OHq#O#PJQ#P#oDu#o#pFx#p~Duy!0cd$UWkqO!O%T!O!P@r!P!Q%T!Q![!1q![!^%T!_!g%T!g!hAl!h#R%T#R#S!1q#S#U%T#U#V!3X#V#X%T#X#YAl#Y#b%T#b#c!2w#c#d!4m#d#l%T#l#m!5{#m#o%T#p~%Ty!1x_$UWkqO!O%T!O!P@r!P!Q%T!Q![!1q![!^%T!_!g%T!g!hAl!h#R%T#R#S!1q#S#X%T#X#YAl#Y#b%T#b#c!2w#c#o%T#p~%Ty!3OR$UWkqO!^%T!_#o%T#p~%Ty!3^W$UWO!Q%T!Q!R!3v!R!S!3v!S!^%T!_#R%T#R#S!3v#S#o%T#p~%Ty!3}Y$UWkqO!Q%T!Q!R!3v!R!S!3v!S!^%T!_#R%T#R#S!3v#S#b%T#b#c!2w#c#o%T#p~%Ty!4rV$UWO!Q%T!Q!Y!5X!Y!^%T!_#R%T#R#S!5X#S#o%T#p~%Ty!5`X$UWkqO!Q%T!Q!Y!5X!Y!^%T!_#R%T#R#S!5X#S#b%T#b#c!2w#c#o%T#p~%Ty!6QZ$UWO!Q%T!Q![!6s![!^%T!_!c%T!c!i!6s!i#R%T#R#S!6s#S#T%T#T#Z!6s#Z#o%T#p~%Ty!6z]$UWkqO!Q%T!Q![!6s![!^%T!_!c%T!c!i!6s!i#R%T#R#S!6s#S#T%T#T#Z!6s#Z#b%T#b#c!2w#c#o%T#p~%T%w!7|R!]V$UW#m%hO!^%T!_#o%T#p~%T!P!8^R_w$UWO!^%T!_#o%T#p~%T6i!8rR'bd!a0`#x&s'|P!P!Q!8{!^!_!9Q!_!`!9_W!9QO$WW#v!9VP#`#v!_!`!9Y#v!9_O#o#v#v!9dO#a#v%w!9kT!{%o$UWO!^%T!_!`'v!`!a!9z!a#o%T#p~%T$P!:RR#W#w$UWO!^%T!_#o%T#p~%T%w!:gT'a!s#a#v$RS$UWO!^%T!_!`!:v!`!a!;W!a#o%T#p~%T$O!:}R#a#v$UWO!^%T!_#o%T#p~%T$O!;_T#`#v$UWO!^%T!_!`5T!`!a!;n!a#o%T#p~%T$O!;uS#`#v$UWO!^%T!_!`5T!`#o%T#p~%T6i!]S#g#v$UWO!^%T!_!`5T!`#o%T#p~%T$P!>pR$UW'f#wO!^%T!_#o%T#p~%T~!?OO!T~6d!?VT'w6[$UWO!^%T!_!`5T!`#o%T#p#q!=P#q~%T5g!?oR!S5]nQ$UWO!^%T!_#o%T#p~%TX!@PR!kP$UWO!^%T!_#o%T#p~%T7Z!@gr$UW'Y7R#zS']%k'g2bOX%TXY%cYZ%TZ[%c[p%Tpq%cqt%Ttu2`u}%T}!O3j!O!Q%T!Q![2`![!^%T!_!c%T!c!}2`!}#R%T#R#S2`#S#T%T#T#o2`#p$f%T$f$g%c$g#BY2`#BY#BZ!@Y#BZ$IS2`$IS$I_!@Y$I_$JT2`$JT$JU!@Y$JU$KV2`$KV$KW!@Y$KW&FU2`&FU&FV!@Y&FV?HT2`?HT?HU!@Y?HU~2`7Z!CO_$UW'Z7R#zS']%k'g2bOt%Ttu2`u}%T}!O3j!O!Q%T!Q![2`![!^%T!_!c%T!c!}2`!}#R%T#R#S2`#S#T%T#T#o2`#p$g%T$g~2`",tokenizers:[f8,f6,f7,0,1,2,3,4,5,6,7,8,9,f3],topRules:{Script:[0,7]},dialects:{jsx:11707,ts:11709},dynamicPrecedences:{149:1,176:1},specialized:[{term:289,get:(e,t)=>("extends"==e&&t.dialectEnabled(1)?4:-1)<<1},{term:289,get:e=>mt[e]||-1},{term:299,get:e=>mn[e]||-1},{term:63,get:e=>mr[e]||-1}],tokenPrec:11730}),ma=[p8("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),p8("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),p8("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),p8("try {\n ${}\n} catch (${error}) {\n ${}\n}",{label:"try",detail:"block",type:"keyword"}),p8("class ${name} {\n constructor(${params}) {\n ${}\n }\n}",{label:"class",detail:"definition",type:"keyword"}),p8('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),p8('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],mo=new class{constructor(){this.map=new WeakMap}setBuffer(e,t,n){let r=this.map.get(e);r||this.map.set(e,r=new Map),r.set(t,n)}getBuffer(e,t){let n=this.map.get(e);return n&&n.get(t)}set(e,t){e instanceof dJ?this.setBuffer(e.context.buffer,e.index,t):e instanceof dY&&this.map.set(e.tree,t)}get(e){return e instanceof dJ?this.getBuffer(e.context.buffer,e.index):e instanceof dY?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}},ms=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function ml(e){return(t,n)=>{let r=t.node.getChild("VariableDefinition");return r&&n(r,e),!0}}let mu=["FunctionDeclaration"],mc={FunctionDeclaration:ml("function"),ClassDeclaration:ml("class"),ClassExpression:()=>!0,EnumDeclaration:ml("constant"),TypeAliasDeclaration:ml("type"),NamespaceDeclaration:ml("namespace"),VariableDefinition(e,t){e.matchContext(mu)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null},md=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/;function mh(e){let t=hM(e.state).resolve(e.pos,-1);if("TemplateString"==t.name||"String"==t.name||"LineComment"==t.name||"BlockComment"==t.name)return null;let n=t.to-t.from<20&&md.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let n=t;n;n=n.parent)ms.has(n.name)&&(r=r.concat(function e(t,n){let r=mo.get(n);if(r)return r;let i=[],a=!0;function o(e,n){let r=t.sliceString(e.from,e.to);i.push({label:r,type:n})}return n.cursor(_B.IncludeAnonymous).iterate(n=>{if(a)a=!1;else if(n.name){let e=mc[n.name];if(e&&e(n,o)||ms.has(n.name))return!1}else if(n.to-n.from>8192){for(let r of e(t,n.node))i.push(r);return!1}}),mo.set(n,i),i}(e.state.doc,n)));return{options:r,from:n?t.from:e.pos,validFor:md}}let mp=hQ.define({parser:mi.configure({props:[hJ.add({IfStatement:h4({except:/^\s*({|else\b)/}),TryStatement:h4({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:e=>e.baseIndent,SwitchBody:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),r=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:r?1:2)*e.unit},Block:h5({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>-1,"Statement Property":h4({except:/^{/}),JSXElement(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},JSXEscape(e){let t=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"JSXOpenTag JSXSelfClosingTag":e=>e.column(e.node.from)+e.unit}),h3.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression":h8,BlockComment:e=>({from:e.from+2,to:e.to-2})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),mf=mp.configure({dialect:"ts"}),mm=mp.configure({dialect:"jsx"}),mg=mp.configure({dialect:"jsx ts"});function mO(e={}){let t=e.jsx?e.typescript?mg:mm:e.typescript?mf:mp;return new hH(t,[mp.data.of({autocomplete:py(["LineComment","BlockComment","String"],pb(ma))}),mp.data.of({autocomplete:mh}),e.jsx?mv:[]])}function mb(e,t,n=e.length){if(!t)return"";let r=t.getChild("JSXIdentifier");return r?e.sliceString(r.from,Math.min(r.to,n)):""}let my="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),mv=c$.inputHandler.of((e,t,n,r)=>{if((my?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||">"!=r&&"/"!=r||!mp.isActiveAt(e.state,t,-1))return!1;let{state:i}=e,a=i.changeByRange(e=>{var t,n,a;let{head:o}=e,s=hM(i).resolveInner(o,-1),l;if("JSXStartTag"==s.name&&(s=s.parent),">"==r&&"JSXFragmentTag"==s.name)return{range:oX.cursor(o+1),changes:{from:o,insert:"><>"}};if(">"==r&&"JSXIdentifier"==s.name){if((null===(n=null===(t=s.parent)||void 0===t?void 0:t.lastChild)||void 0===n?void 0:n.name)!="JSXEndTag"&&(l=mb(i.doc,s.parent,o)))return{range:oX.cursor(o+1),changes:{from:o,insert:`>`}}}else if("/"==r&&"JSXFragmentTag"==s.name){let e=s.parent,t=null==e?void 0:e.parent;if(e.from==o-1&&(null===(a=t.lastChild)||void 0===a?void 0:a.name)!="JSXEndTag"&&(l=mb(i.doc,null==t?void 0:t.firstChild,o))){let e=`/${l}>`;return{range:oX.cursor(o+e.length),changes:{from:o,insert:e}}}}return{range:e}});return!a.changes.empty&&(e.dispatch(a,{userEvent:"input.type",scrollIntoView:!0}),!0)});class mx{constructor(e,t,n,r,i,a,o){this.type=e,this.value=t,this.from=n,this.hash=r,this.end=i,this.children=a,this.positions=o,this.hashProp=[[dD.contextHash,r]]}static create(e,t,n,r,i){let a=r+(r<<8)+e+(t<<4)|0;return new mx(e,t,n,a,i,[],[])}addChild(e,t){e.prop(dD.contextHash)!=this.hash&&(e=new dz(e.type,e.children,e.positions,e.length,this.hashProp)),this.children.push(e),this.positions.push(t)}toTree(e,t=this.end){let n=this.children.length-1;return n>=0&&(t=Math.max(t,this.positions[n]+this.children[n].length+this.from)),new dz(e.types[this.type],this.children,this.positions,t-this.from).balance({makeTree:(e,t,n)=>new dz(dF.none,e,t,n,this.hashProp)})}}(_M=_Z||(_Z={}))[_M.Document=1]="Document",_M[_M.CodeBlock=2]="CodeBlock",_M[_M.FencedCode=3]="FencedCode",_M[_M.Blockquote=4]="Blockquote",_M[_M.HorizontalRule=5]="HorizontalRule",_M[_M.BulletList=6]="BulletList",_M[_M.OrderedList=7]="OrderedList",_M[_M.ListItem=8]="ListItem",_M[_M.ATXHeading1=9]="ATXHeading1",_M[_M.ATXHeading2=10]="ATXHeading2",_M[_M.ATXHeading3=11]="ATXHeading3",_M[_M.ATXHeading4=12]="ATXHeading4",_M[_M.ATXHeading5=13]="ATXHeading5",_M[_M.ATXHeading6=14]="ATXHeading6",_M[_M.SetextHeading1=15]="SetextHeading1",_M[_M.SetextHeading2=16]="SetextHeading2",_M[_M.HTMLBlock=17]="HTMLBlock",_M[_M.LinkReference=18]="LinkReference",_M[_M.Paragraph=19]="Paragraph",_M[_M.CommentBlock=20]="CommentBlock",_M[_M.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",_M[_M.Escape=22]="Escape",_M[_M.Entity=23]="Entity",_M[_M.HardBreak=24]="HardBreak",_M[_M.Emphasis=25]="Emphasis",_M[_M.StrongEmphasis=26]="StrongEmphasis",_M[_M.Link=27]="Link",_M[_M.Image=28]="Image",_M[_M.InlineCode=29]="InlineCode",_M[_M.HTMLTag=30]="HTMLTag",_M[_M.Comment=31]="Comment",_M[_M.ProcessingInstruction=32]="ProcessingInstruction",_M[_M.URL=33]="URL",_M[_M.HeaderMark=34]="HeaderMark",_M[_M.QuoteMark=35]="QuoteMark",_M[_M.ListMark=36]="ListMark",_M[_M.LinkMark=37]="LinkMark",_M[_M.EmphasisMark=38]="EmphasisMark",_M[_M.CodeMark=39]="CodeMark",_M[_M.CodeText=40]="CodeText",_M[_M.CodeInfo=41]="CodeInfo",_M[_M.LinkTitle=42]="LinkTitle",_M[_M.LinkLabel=43]="LinkLabel";class mT{constructor(e,t){this.start=e,this.content=t,this.marks=[],this.parsers=[]}}class mk{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let e=this.skipSpace(this.basePos);this.indent=this.countIndent(e,this.pos,this.indent),this.pos=e,this.next=e==this.text.length?-1:this.text.charCodeAt(e)}skipSpace(e){return mE(this.text,e)}reset(e){for(this.text=e,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(e){this.basePos=e,this.baseIndent=this.countIndent(e,this.pos,this.indent)}moveBaseColumn(e){this.baseIndent=e,this.basePos=this.findColumn(e)}addMarker(e){this.markers.push(e)}countIndent(e,t=0,n=0){for(let r=t;r=t.stack[n.depth+1].value+n.baseIndent)return!0;if(n.indent>=n.baseIndent+4)return!1;let r=(e.type==_Z.OrderedList?m$:mN)(n,t,!1);return r>0&&(e.type!=_Z.BulletList||0>mP(n,t,!1))&&n.text.charCodeAt(n.pos+r-1)==e.value}let mS={[_Z.Blockquote]:(e,t,n)=>62==n.next&&(n.markers.push(m3(_Z.QuoteMark,t.lineStart+n.pos,t.lineStart+n.pos+1)),n.moveBase(n.pos+(mw(n.text.charCodeAt(n.pos+1))?2:1)),e.end=t.lineStart+n.text.length,!0),[_Z.ListItem]:(e,t,n)=>(!(n.indent-1))&&(n.moveBaseColumn(n.baseIndent+e.value),!0),[_Z.OrderedList]:m_,[_Z.BulletList]:m_,[_Z.Document]:()=>!0};function mw(e){return 32==e||9==e||10==e||13==e}function mE(e,t=0){for(;tn&&mw(e.charCodeAt(t-1));)t--;return t}function mA(e){if(96!=e.next&&126!=e.next)return -1;let t=e.pos+1;for(;t-1&&e.depth==t.stack.length?-1:r<3?-1:1}function mI(e,t){for(let n=e.stack.length-1;n>=0;n--)if(e.stack[n].type==t)return!0;return!1}function mN(e,t,n){return(45==e.next||43==e.next||42==e.next)&&(e.pos==e.text.length-1||mw(e.text.charCodeAt(e.pos+1)))&&(!n||mI(t,_Z.BulletList)||e.skipSpace(e.pos+2)=48&&i<=57;){if(++r==e.text.length)return -1;i=e.text.charCodeAt(r)}return r==e.pos||r>e.pos+9||46!=i&&41!=i||re.pos+1||49!=e.next)?-1:r+1-e.pos}function mL(e){if(35!=e.next)return -1;let t=e.pos+1;for(;t6?-1:n}function mD(e){if(45!=e.next&&61!=e.next||e.indent>=e.baseIndent+4)return -1;let t=e.pos+1;for(;t/,mF=/\?>/,mB=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*/i.exec(r);if(a)return e.append(m3(_Z.Comment,n,n+1+a[0].length));let o=/^\?[^]*?\?>/.exec(r);if(o)return e.append(m3(_Z.ProcessingInstruction,n,n+1+o[0].length));let s=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(r);return s?e.append(m3(_Z.HTMLTag,n,n+1+s[0].length)):-1},Emphasis(e,t,n){if(95!=t&&42!=t)return -1;let r=n+1;for(;e.char(r)==t;)r++;let i=e.slice(n-1,n),a=e.slice(r,r+1),o=gr.test(i),s=gr.test(a),l=/\s|^$/.test(i),u=/\s|^$/.test(a),c=!u&&(!s||l||o),d=!l&&(!o||u||s),h=c&&(42==t||!d||o),p=d&&(42==t||!c||s);return e.append(new gt(95==t?m8:m6,n,r,(h?1:0)|(p?2:0)))},HardBreak(e,t,n){if(92==t&&10==e.char(n+1))return e.append(m3(_Z.HardBreak,n,n+2));if(32==t){let t=n+1;for(;32==e.char(t);)t++;if(10==e.char(t)&&t>=n+2)return e.append(m3(_Z.HardBreak,n,t+1))}return -1},Link:(e,t,n)=>91==t?e.append(new gt(m7,n,n+1,1)):-1,Image:(e,t,n)=>33==t&&91==e.char(n+1)?e.append(new gt(ge,n,n+2,1)):-1,LinkEnd(e,t,n){if(93!=t)return -1;for(let t=e.parts.length-1;t>=0;t--){let r=e.parts[t];if(r instanceof gt&&(r.type==m7||r.type==ge)){if(!r.side||e.skipSpace(r.to)==n&&!/[(\[]/.test(e.slice(n+1,n+2)))return e.parts[t]=null,-1;let i=e.takeContent(t),a=e.parts[t]=function(e,t,n,r,i){let{text:a}=e,o=e.char(i),s=i;if(t.unshift(m3(_Z.LinkMark,r,r+(n==_Z.Image?2:1))),t.push(m3(_Z.LinkMark,i-1,i)),40==o){let n=e.skipSpace(i+1),r=ga(a,n-e.offset,e.offset),o;r&&(n=e.skipSpace(r.to),(o=go(a,n-e.offset,e.offset))&&(n=e.skipSpace(o.to))),41==e.char(n)&&(t.push(m3(_Z.LinkMark,i,i+1)),s=n+1,r&&t.push(r),o&&t.push(o),t.push(m3(_Z.LinkMark,n,s)))}else if(91==o){let n=gs(a,i-e.offset,e.offset,!1);n&&(t.push(n),s=n.to)}return m3(n,r,s,t)}(e,i,r.type==m7?_Z.Link:_Z.Image,r.from,n+1);if(r.type==m7)for(let n=0;nt?m3(_Z.URL,t+n,i+n):i==e.length&&null}}function go(e,t,n){let r=e.charCodeAt(t);if(39!=r&&34!=r&&40!=r)return!1;let i=40==r?41:r;for(let r=t+1,a=!1;r=this.end?-1:this.text.charCodeAt(e-this.offset)}get end(){return this.offset+this.text.length}slice(e,t){return this.text.slice(e-this.offset,t-this.offset)}append(e){return this.parts.push(e),e.to}addDelimiter(e,t,n,r,i){return this.append(new gt(e,t,n,(r?1:0)|(i?2:0)))}addElement(e){return this.append(e)}resolveMarkers(e){for(let t=e;t=e;o--){let e=this.parts[o];if(e instanceof gt&&1&e.side&&e.type==n.type&&(!r||!(1&n.side)&&!(2&e.side)||(e.to-e.from+i)%3!=0||!((e.to-e.from)%3)&&!(i%3))){a=e;break}}if(!a)continue;let s=n.type.resolve,l=[],u=a.from,c=n.to;if(r){let e=Math.min(2,a.to-a.from,i);u=a.to-e,c=n.from+e,s=1==e?"Emphasis":"StrongEmphasis"}a.type.mark&&l.push(this.elt(a.type.mark,u,a.to));for(let e=o+1;e=0;t--){let n=this.parts[t];if(n instanceof gt&&n.type==e)return t}return null}takeContent(e){let t=this.resolveMarkers(e);return this.parts.length=e,t}skipSpace(e){return mE(this.text,e-this.offset)+this.offset}elt(e,t,n,r){return"string"==typeof e?m3(this.parser.getNodeType(e),t,n,r):new m4(e,t)}}function gu(e,t){if(!t.length)return e;if(!e.length)return t;let n=e.slice(),r=0;for(let e of t){for(;r(e?e-1:0))return!1;if(this.fragmentEnd<0){let e=this.fragment.to;for(;e>0&&"\n"!=this.input.read(e-1,e);)e--;this.fragmentEnd=e?e-1:0}let n=this.cursor;n||(n=this.cursor=this.fragment.tree.cursor()).firstChild();let r=e+this.fragment.offset;for(;n.to<=r;)if(!n.parent())return!1;for(;;){if(n.from>=r)return this.fragment.from<=t;if(!n.childAfter(r))return!1}}matches(e){let t=this.cursor.tree;return t&&t.prop(dD.contextHash)==e}takeNodes(e){let t=this.cursor,n=this.fragment.offset,r=this.fragmentEnd-(this.fragment.openEnd?1:0),i=e.absoluteLineStart,a=i,o=e.block.children.length,s=a,l=o;for(;;){if(t.to-n>r){if(t.type.isAnonymous&&t.firstChild())continue;break}if(e.dontInject.add(t.tree),e.addNode(t.tree,t.from-n),t.type.is("Block")&&(0>gc.indexOf(t.type.id)?(a=t.to-n,o=e.block.children.length):(a=s,o=l,s=t.to-n,l=e.block.children.length)),!t.nextSibling())break}for(;e.block.children.length>o;)e.block.children.pop(),e.block.positions.pop();return a-i}}let gh=hh({"Blockquote/...":hI.quote,HorizontalRule:hI.contentSeparator,"ATXHeading1/... SetextHeading1/...":hI.heading1,"ATXHeading2/... SetextHeading2/...":hI.heading2,"ATXHeading3/...":hI.heading3,"ATXHeading4/...":hI.heading4,"ATXHeading5/...":hI.heading5,"ATXHeading6/...":hI.heading6,"Comment CommentBlock":hI.comment,Escape:hI.escape,Entity:hI.character,"Emphasis/...":hI.emphasis,"StrongEmphasis/...":hI.strong,"Link/... Image/...":hI.link,"OrderedList/... BulletList/...":hI.list,"BlockQuote/...":hI.quote,"InlineCode CodeText":hI.monospace,URL:hI.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":hI.processingInstruction,"CodeInfo LinkLabel":hI.labelName,LinkTitle:hI.string,Paragraph:hI.content}),gp=new mK(new dB(m0).extend(gh),Object.keys(mW).map(e=>mW[e]),Object.keys(mW).map(e=>mH[e]),Object.keys(mW),mY,mS,Object.keys(gi).map(e=>gi[e]),Object.keys(gi),[]),gf={resolve:"Strikethrough",mark:"StrikethroughMark"},gm={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":hI.strikethrough}},{name:"StrikethroughMark",style:hI.processingInstruction}],parseInline:[{name:"Strikethrough",parse:(e,t,n)=>126!=t||126!=e.char(n+1)?-1:e.addDelimiter(gf,n,n+2,!0,!0),after:"Emphasis"}]};function gg(e,t,n=0,r,i=0){let a=0,o=!0,s=-1,l=-1,u=!1,c=()=>{r.push(e.elt("TableCell",i+s,i+l,e.parser.parseInline(t.slice(s,l),i+s)))};for(let d=n;d-1)&&a++,o=!1,r&&(s>-1&&c(),r.push(e.elt("TableDelimiter",d+i,d+i+1))),s=l=-1),u=!u&&92==n}return s>-1&&(a++,r&&c()),a}function gO(e,t){for(let n=t;ngO(t.content,0)?new gy:null,endLeaf(e,t,n){if(n.parsers.some(e=>e instanceof gy)||!gO(t.text,t.basePos))return!1;let r=e.scanLine(e.absoluteLineEnd+1).text;return gb.test(r)&&gg(e,t.text,t.basePos)==gg(e,r,t.basePos)},before:"SetextHeading"}]};class gx{nextLine(){return!1}finish(e,t){return e.addLeafElement(t,e.elt("Task",t.start,t.start+t.content.length,[e.elt("TaskMarker",t.start,t.start+3),...e.parser.parseInline(t.content.slice(3),t.start+3)])),!0}}let gT={defineNodes:[{name:"Task",block:!0,style:hI.list},{name:"TaskMarker",style:hI.atom}],parseBlock:[{name:"TaskList",leaf:(e,t)=>/^\[[ xX]\]/.test(t.content)&&"ListItem"==e.parentType().name?new gx:null,after:"SetextHeading"}]},gk=[gv,gT,gm];function g_(e,t,n){return(r,i,a)=>{if(i!=e||r.char(a+1)==e)return -1;let o=[r.elt(n,a,a+1)];for(let i=a+1;i=65&&n<=90||95==n||n>=97&&n<=122||n>=161;)a+=String.fromCharCode(i),i=e.peek(++t);return gN=e,g$=r,gI=a?a.toLowerCase():i==gD||i==gQ?void 0:null}let gD=63,gQ=33;function gM(e,t){this.name=e,this.parent=t,this.hash=t?t.hash:0;for(let t=0;tgF.indexOf(t)>-1?new gM(gL(r,1)||"",e):e,reduce:(e,t)=>18==t&&e?e.parent:e,reuse(e,t,n,r){let i=t.type.id;return 4==i||35==i?new gM(gL(r,1)||"",e):e},hash:e=>e?e.hash:0,strict:!1}),gU=new fy((e,t)=>{if(60!=e.next){e.next<0&&t.context&&e.acceptToken(56);return}e.advance();let n=47==e.next;n&&e.advance();let r=gL(e,0);if(void 0===r)return;if(!r)return e.acceptToken(n?12:4);let i=t.context?t.context.name:null;if(n){if(r==i)return e.acceptToken(9);if(i&&gA[i])return e.acceptToken(56,-2);if(t.dialectEnabled(0))return e.acceptToken(10);for(let e=t.context;e;e=e.parent)if(e.name==r)return;e.acceptToken(11)}else{if("script"==r)return e.acceptToken(5);if("style"==r)return e.acceptToken(6);if("textarea"==r)return e.acceptToken(7);if(gC.hasOwnProperty(r))return e.acceptToken(8);i&&gR[i]&&gR[i][r]?e.acceptToken(56,-1):e.acceptToken(4)}},{contextual:!0}),gj=new fy(e=>{for(let t=0,n=0;;n++){if(e.next<0){n&&e.acceptToken(57);break}if(45==e.next)t++;else if(62==e.next&&t>=2){n>3&&e.acceptToken(57,-2);break}else t=0;e.advance()}});function gz(e,t,n){let r=2+e.length;return new fy(i=>{for(let a=0,o=0,s=0;;s++){if(i.next<0){s&&i.acceptToken(t);break}if(0==a&&60==i.next||1==a&&47==i.next||a>=2&&ao?i.acceptToken(t,-o):i.acceptToken(n,-(o-2));break}else if((10==i.next||13==i.next)&&s){i.acceptToken(t,1);break}else a=o=0;i.advance()}})}let gW=gz("script",53,1),gZ=gz("style",54,2),gq=gz("textarea",55,3),gG=hh({"Text RawText":hI.content,"StartTag StartCloseTag SelfCloserEndTag EndTag SelfCloseEndTag":hI.angleBracket,TagName:hI.tagName,"MismatchedCloseTag/TagName":[hI.tagName,hI.invalid],AttributeName:hI.attributeName,"AttributeValue UnquotedAttributeValue":hI.attributeValue,Is:hI.definitionOperator,"EntityReference CharacterReference":hI.character,Comment:hI.blockComment,ProcessingInst:hI.processingInstruction,DoctypeDecl:hI.documentMeta}),gH=fP.deserialize({version:14,states:",xOVOxOOO!WQ!bO'#CoO!]Q!bO'#CyO!bQ!bO'#C|O!gQ!bO'#DPO!lQ!bO'#DRO!qOXO'#CnO!|OYO'#CnO#XO[O'#CnO$eOxO'#CnOOOW'#Cn'#CnO$lO!rO'#DSO$tQ!bO'#DUO$yQ!bO'#DVOOOW'#Dj'#DjOOOW'#DX'#DXQVOxOOO%OQ#tO,59ZO%WQ#tO,59eO%`Q#tO,59hO%hQ#tO,59kO%pQ#tO,59mOOOX'#D]'#D]O%xOXO'#CwO&TOXO,59YOOOY'#D^'#D^O&]OYO'#CzO&hOYO,59YOOO['#D_'#D_O&pO[O'#C}O&{O[O,59YOOOW'#D`'#D`O'TOxO,59YO'[Q!bO'#DQOOOW,59Y,59YOOO`'#Da'#DaO'aO!rO,59nOOOW,59n,59nO'iQ!bO,59pO'nQ!bO,59qOOOW-E7V-E7VO'sQ#tO'#CqOOQO'#DY'#DYO(OQ#tO1G.uOOOX1G.u1G.uO(WQ#tO1G/POOOY1G/P1G/PO(`Q#tO1G/SOOO[1G/S1G/SO(hQ#tO1G/VOOOW1G/V1G/VO(pQ#tO1G/XOOOW1G/X1G/XOOOX-E7Z-E7ZO(xQ!bO'#CxOOOW1G.t1G.tOOOY-E7[-E7[O(}Q!bO'#C{OOO[-E7]-E7]O)SQ!bO'#DOOOOW-E7^-E7^O)XQ!bO,59lOOO`-E7_-E7_OOOW1G/Y1G/YOOOW1G/[1G/[OOOW1G/]1G/]O)^Q&jO,59]OOQO-E7W-E7WOOOX7+$a7+$aOOOY7+$k7+$kOOO[7+$n7+$nOOOW7+$q7+$qOOOW7+$s7+$sO)iQ!bO,59dO)nQ!bO,59gO)sQ!bO,59jOOOW1G/W1G/WO)xO,UO'#CtO*WO7[O'#CtOOQO1G.w1G.wOOOW1G/O1G/OOOOW1G/R1G/ROOOW1G/U1G/UOOOO'#DZ'#DZO*fO,UO,59`OOQO,59`,59`OOOO'#D['#D[O*tO7[O,59`OOOO-E7X-E7XOOQO1G.z1G.zOOOO-E7Y-E7Y",stateData:"+[~O!]OS~OSSOTPOUQOVROWTOY]OZ[O[^O^^O_^O`^Oa^Ow^Oz_O!cZO~OdaO~OdbO~OdcO~OddO~OdeO~O!VfOPkP!YkP~O!WiOQnP!YnP~O!XlORqP!YqP~OSSOTPOUQOVROWTOXqOY]OZ[O[^O^^O_^O`^Oa^Ow^O!cZO~O!YrO~P#dO!ZsO!duO~OdvO~OdwO~OfyOj|O~OfyOj!OO~OfyOj!QO~OfyOj!SO~OfyOj!UO~O!VfOPkX!YkX~OP!WO!Y!XO~O!WiOQnX!YnX~OQ!ZO!Y!XO~O!XlORqX!YqX~OR!]O!Y!XO~O!Y!XO~P#dOd!_O~O!ZsO!d!aO~Oj!bO~Oj!cO~Og!dOfeXjeX~OfyOj!fO~OfyOj!gO~OfyOj!hO~OfyOj!iO~OfyOj!jO~Od!kO~Od!lO~Od!mO~Oj!nO~Oi!qO!_!oO!a!pO~Oj!rO~Oj!sO~Oj!tO~O_!uO`!uO!_!wO!`!uO~O_!xO`!xO!a!wO!b!xO~O_!uO`!uO!_!{O!`!uO~O_!xO`!xO!a!{O!b!xO~O`_a!cwz!c~",goto:"%o!_PPPPPPPPPPPPPPPPPP!`!fP!lPP!xPP!{#O#R#X#[#_#e#h#k#q#w!`P!`!`P#}$T$k$q$w$}%T%Z%aPPPPPPPP%gX^OX`pXUOX`pezabcde{}!P!R!TR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ}bQ!PcQ!RdQ!TeZ!e{}!P!R!TQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue EndTag ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:66,context:gB,nodeProps:[["closedBy",-11,1,2,3,4,5,6,7,8,9,10,11,"EndTag",-4,19,29,32,35,"CloseTag"],["group",-9,12,15,16,17,18,38,39,40,41,"Entity",14,"Entity TextContent",-3,27,30,33,"TextContent Entity"],["openedBy",26,"StartTag StartCloseTag",-4,28,31,34,36,"OpenTag"]],propSources:[gG],skippedNodes:[0],repeatNodeCount:9,tokenData:"!#b!aR!WOX$kXY)sYZ)sZ]$k]^)s^p$kpq)sqr$krs*zsv$kvw+dwx2yx}$k}!O3f!O!P$k!P!Q7_!Q![$k![!]8u!]!^$k!^!_>b!_!`!!p!`!a8T!a!c$k!c!}8u!}#R$k#R#S8u#S#T$k#T#o8u#o$f$k$f$g&R$g%W$k%W%o8u%o%p$k%p&a8u&a&b$k&b1p8u1p4U$k4U4d8u4d4e$k4e$IS8u$IS$I`$k$I`$Ib8u$Ib$Kh$k$Kh%#t8u%#t&/x$k&/x&Et8u&Et&FV$k&FV;'S8u;'S;:jiW!``!bpOq(kqr?Rrs'gsv(kwx(]x!a(k!a!bKj!b~(k!R?YZ!``!bpOr(krs'gsv(kwx(]x}(k}!O?{!O!f(k!f!gAR!g#W(k#W#XGz#X~(k!R@SV!``!bpOr(krs'gsv(kwx(]x}(k}!O@i!O~(k!R@rT!``!bp!cPOr(krs'gsv(kwx(]x~(k!RAYV!``!bpOr(krs'gsv(kwx(]x!q(k!q!rAo!r~(k!RAvV!``!bpOr(krs'gsv(kwx(]x!e(k!e!fB]!f~(k!RBdV!``!bpOr(krs'gsv(kwx(]x!v(k!v!wBy!w~(k!RCQV!``!bpOr(krs'gsv(kwx(]x!{(k!{!|Cg!|~(k!RCnV!``!bpOr(krs'gsv(kwx(]x!r(k!r!sDT!s~(k!RD[V!``!bpOr(krs'gsv(kwx(]x!g(k!g!hDq!h~(k!RDxW!``!bpOrDqrsEbsvDqvwEvwxFfx!`Dq!`!aGb!a~DqqEgT!bpOvEbvxEvx!`Eb!`!aFX!a~EbPEyRO!`Ev!`!aFS!a~EvPFXOzPqF`Q!bpzPOv'gx~'gaFkV!``OrFfrsEvsvFfvwEvw!`Ff!`!aGQ!a~FfaGXR!``zPOr(]sv(]w~(]!RGkT!``!bpzPOr(krs'gsv(kwx(]x~(k!RHRV!``!bpOr(krs'gsv(kwx(]x#c(k#c#dHh#d~(k!RHoV!``!bpOr(krs'gsv(kwx(]x#V(k#V#WIU#W~(k!RI]V!``!bpOr(krs'gsv(kwx(]x#h(k#h#iIr#i~(k!RIyV!``!bpOr(krs'gsv(kwx(]x#m(k#m#nJ`#n~(k!RJgV!``!bpOr(krs'gsv(kwx(]x#d(k#d#eJ|#e~(k!RKTV!``!bpOr(krs'gsv(kwx(]x#X(k#X#YDq#Y~(k!RKqW!``!bpOrKjrsLZsvKjvwLowxNPx!aKj!a!b! g!b~KjqL`T!bpOvLZvxLox!aLZ!a!bM^!b~LZPLrRO!aLo!a!bL{!b~LoPMORO!`Lo!`!aMX!a~LoPM^OwPqMcT!bpOvLZvxLox!`LZ!`!aMr!a~LZqMyQ!bpwPOv'gx~'gaNUV!``OrNPrsLosvNPvwLow!aNP!a!bNk!b~NPaNpV!``OrNPrsLosvNPvwLow!`NP!`!a! V!a~NPa! ^R!``wPOr(]sv(]w~(]!R! nW!``!bpOrKjrsLZsvKjvwLowxNPx!`Kj!`!a!!W!a~Kj!R!!aT!``!bpwPOr(krs'gsv(kwx(]x~(k!V!!{VgS^P!``!bpOr&Rrs&qsv&Rwx'rx!^&R!^!_(k!_~&R",tokenizers:[gW,gZ,gq,gU,gj,0,1,2,3,4,5],topRules:{Document:[0,13]},dialects:{noMatch:0},tokenPrec:464});function gY(e,t,n){let r;for(let i of n)if(!i.attrs||i.attrs(r||(r=function(e,t){let n=Object.create(null);for(let r of e.firstChild.getChildren("Attribute")){let e=r.getChild("AttributeName"),i=r.getChild("AttributeValue")||r.getChild("UnquotedAttributeValue");e&&(n[t.read(e.from,e.to)]=i?"AttributeValue"==i.name?t.read(i.from+1,i.to-1):t.read(i.from,i.to):"")}return n}(e.node.parent,t))))return{parser:i.parser};return null}let gX=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288];function gV(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}let gK=new fy((e,t)=>{for(let r=!1,i=0,a=0;;a++){var n;let{next:o}=e;if(gV(o)||45==o||95==o||r&&(n=o)>=48&&n<=57)!r&&(45!=o||a>0)&&(r=!0),i===a&&45==o&&i++,e.advance();else{r&&e.acceptToken(40==o?94:2==i&&t.canShift(2)?2:95);break}}}),gJ=new fy(e=>{if(gX.includes(e.peek(-1))){let{next:t}=e;(gV(t)||95==t||35==t||46==t||91==t||58==t||45==t)&&e.acceptToken(93)}}),g1=new fy(e=>{if(!gX.includes(e.peek(-1))){let{next:t}=e;if(37==t&&(e.advance(),e.acceptToken(1)),gV(t)){do e.advance();while(gV(e.next));e.acceptToken(1)}}}),g0=hh({"import charset namespace keyframes":hI.definitionKeyword,"media supports":hI.controlKeyword,"from to selector":hI.keyword,NamespaceName:hI.namespace,KeyframeName:hI.labelName,TagName:hI.tagName,ClassName:hI.className,PseudoClassName:hI.constant(hI.className),IdName:hI.labelName,"FeatureName PropertyName":hI.propertyName,AttributeName:hI.attributeName,NumberLiteral:hI.number,KeywordQuery:hI.keyword,UnaryQueryOp:hI.operatorKeyword,"CallTag ValueName":hI.atom,VariableName:hI.variableName,Callee:hI.operatorKeyword,Unit:hI.unit,"UniversalSelector NestingSelector":hI.definitionOperator,AtKeyword:hI.keyword,MatchOp:hI.compareOperator,"ChildOp SiblingOp, LogicOp":hI.logicOperator,BinOp:hI.arithmeticOperator,Important:hI.modifier,Comment:hI.blockComment,ParenthesizedContent:hI.special(hI.name),ColorLiteral:hI.color,StringLiteral:hI.string,":":hI.punctuation,"PseudoOp #":hI.derefOperator,"; ,":hI.separator,"( )":hI.paren,"[ ]":hI.squareBracket,"{ }":hI.brace}),g2={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,dir:32,url:60,"url-prefix":60,domain:60,regexp:60,selector:134},g5={__proto__:null,"@import":114,"@media":138,"@charset":142,"@namespace":146,"@keyframes":152,"@supports":164},g9={__proto__:null,not:128,only:128,from:158,to:160},g4=fP.deserialize({version:14,states:"7WOYQ[OOOOQP'#Cd'#CdOOQP'#Cc'#CcO!ZQ[O'#CfO!}QXO'#CaO#UQ[O'#ChO#aQ[O'#DPO#fQ[O'#DTOOQP'#Ec'#EcO#kQdO'#DeO$VQ[O'#DrO#kQdO'#DtO$hQ[O'#DvO$sQ[O'#DyO$xQ[O'#EPO%WQ[O'#EROOQS'#Eb'#EbOOQS'#ES'#ESQYQ[OOOOQP'#Cg'#CgOOQP,59Q,59QO!ZQ[O,59QO%_Q[O'#EVO%yQWO,58{O&RQ[O,59SO#aQ[O,59kO#fQ[O,59oO%_Q[O,59sO%_Q[O,59uO%_Q[O,59vO'bQ[O'#D`OOQS,58{,58{OOQP'#Ck'#CkOOQO'#C}'#C}OOQP,59S,59SO'iQWO,59SO'nQWO,59SOOQP'#DR'#DROOQP,59k,59kOOQO'#DV'#DVO'sQ`O,59oOOQS'#Cp'#CpO#kQdO'#CqO'{QvO'#CsO)VQtO,5:POOQO'#Cx'#CxO'iQWO'#CwO)kQWO'#CyOOQS'#Ef'#EfOOQO'#Dh'#DhO)pQ[O'#DoO*OQWO'#EiO$xQ[O'#DmO*^QWO'#DpOOQO'#Ej'#EjO%|QWO,5:^O*cQpO,5:`OOQS'#Dx'#DxO*kQWO,5:bO*pQ[O,5:bOOQO'#D{'#D{O*xQWO,5:eO*}QWO,5:kO+VQWO,5:mOOQS-E8Q-E8QOOQP1G.l1G.lO+yQXO,5:qOOQO-E8T-E8TOOQS1G.g1G.gOOQP1G.n1G.nO'iQWO1G.nO'nQWO1G.nOOQP1G/V1G/VO,WQ`O1G/ZO,qQXO1G/_O-XQXO1G/aO-oQXO1G/bO.VQXO'#CdO.zQWO'#DaOOQS,59z,59zO/PQWO,59zO/XQ[O,59zO/`QdO'#CoO/gQ[O'#DOOOQP1G/Z1G/ZO#kQdO1G/ZO/nQpO,59]OOQS,59_,59_O#kQdO,59aO/vQWO1G/kOOQS,59c,59cO/{Q!bO,59eO0TQWO'#DhO0`QWO,5:TO0eQWO,5:ZO$xQ[O,5:VO$xQ[O'#EYO0mQWO,5;TO0xQWO,5:XO%_Q[O,5:[OOQS1G/x1G/xOOQS1G/z1G/zOOQS1G/|1G/|O1ZQWO1G/|O1`QdO'#D|OOQS1G0P1G0POOQS1G0V1G0VOOQS1G0X1G0XOOQP7+$Y7+$YOOQP7+$u7+$uO#kQdO7+$uO#kQdO,59{O1nQ[O'#EXO1xQWO1G/fOOQS1G/f1G/fO1xQWO1G/fO2QQtO'#ETO2uQdO'#EeO3PQWO,59ZO3UQXO'#EhO3]QWO,59jO3bQpO7+$uOOQS1G.w1G.wOOQS1G.{1G.{OOQS7+%V7+%VO3jQWO1G/PO#kQdO1G/oOOQO1G/u1G/uOOQO1G/q1G/qO3oQWO,5:tOOQO-E8W-E8WO3}QXO1G/vOOQS7+%h7+%hO4UQYO'#CsO%|QWO'#EZO4^QdO,5:hOOQS,5:h,5:hO4lQpO<O!c!}$w!}#O?[#O#P$w#P#Q?g#Q#R2U#R#T$w#T#U?r#U#c$w#c#d@q#d#o$w#o#pAQ#p#q2U#q#rA]#r#sAh#s#y$w#y#z%]#z$f$w$f$g%]$g#BY$w#BY#BZ%]#BZ$IS$w$IS$I_%]$I_$I|$w$I|$JO%]$JO$JT$w$JT$JU%]$JU$KV$w$KV$KW%]$KW&FU$w&FU&FV%]&FV~$wW$zQOy%Qz~%QW%VQoWOy%Qz~%Q~%bf#T~OX%QX^&v^p%Qpq&vqy%Qz#y%Q#y#z&v#z$f%Q$f$g&v$g#BY%Q#BY#BZ&v#BZ$IS%Q$IS$I_&v$I_$I|%Q$I|$JO&v$JO$JT%Q$JT$JU&v$JU$KV%Q$KV$KW&v$KW&FU%Q&FU&FV&v&FV~%Q~&}f#T~oWOX%QX^&v^p%Qpq&vqy%Qz#y%Q#y#z&v#z$f%Q$f$g&v$g#BY%Q#BY#BZ&v#BZ$IS%Q$IS$I_&v$I_$I|%Q$I|$JO&v$JO$JT%Q$JT$JU&v$JU$KV%Q$KV$KW&v$KW&FU%Q&FU&FV&v&FV~%Q^(fSOy%Qz#]%Q#]#^(r#^~%Q^(wSoWOy%Qz#a%Q#a#b)T#b~%Q^)YSoWOy%Qz#d%Q#d#e)f#e~%Q^)kSoWOy%Qz#c%Q#c#d)w#d~%Q^)|SoWOy%Qz#f%Q#f#g*Y#g~%Q^*_SoWOy%Qz#h%Q#h#i*k#i~%Q^*pSoWOy%Qz#T%Q#T#U*|#U~%Q^+RSoWOy%Qz#b%Q#b#c+_#c~%Q^+dSoWOy%Qz#h%Q#h#i+p#i~%Q^+wQ!VUoWOy%Qz~%Q~,QUOY+}Zr+}rs,ds#O+}#O#P,i#P~+}~,iOh~~,lPO~+}_,tWtPOy%Qz!Q%Q!Q![-^![!c%Q!c!i-^!i#T%Q#T#Z-^#Z~%Q^-cWoWOy%Qz!Q%Q!Q![-{![!c%Q!c!i-{!i#T%Q#T#Z-{#Z~%Q^.QWoWOy%Qz!Q%Q!Q![.j![!c%Q!c!i.j!i#T%Q#T#Z.j#Z~%Q^.qWfUoWOy%Qz!Q%Q!Q![/Z![!c%Q!c!i/Z!i#T%Q#T#Z/Z#Z~%Q^/bWfUoWOy%Qz!Q%Q!Q![/z![!c%Q!c!i/z!i#T%Q#T#Z/z#Z~%Q^0PWoWOy%Qz!Q%Q!Q![0i![!c%Q!c!i0i!i#T%Q#T#Z0i#Z~%Q^0pWfUoWOy%Qz!Q%Q!Q![1Y![!c%Q!c!i1Y!i#T%Q#T#Z1Y#Z~%Q^1_WoWOy%Qz!Q%Q!Q![1w![!c%Q!c!i1w!i#T%Q#T#Z1w#Z~%Q^2OQfUoWOy%Qz~%QY2XSOy%Qz!_%Q!_!`2e!`~%QY2lQzQoWOy%Qz~%QX2wQXPOy%Qz~%Q~3QUOY2}Zw2}wx,dx#O2}#O#P3d#P~2}~3gPO~2}_3oQbVOy%Qz~%Q~3zOa~_4RSUPjSOy%Qz!_%Q!_!`2e!`~%Q_4fUjS!PPOy%Qz!O%Q!O!P4x!P!Q%Q!Q![7_![~%Q^4}SoWOy%Qz!Q%Q!Q![5Z![~%Q^5bWoW#ZUOy%Qz!Q%Q!Q![5Z![!g%Q!g!h5z!h#X%Q#X#Y5z#Y~%Q^6PWoWOy%Qz{%Q{|6i|}%Q}!O6i!O!Q%Q!Q![6z![~%Q^6nSoWOy%Qz!Q%Q!Q![6z![~%Q^7RSoW#ZUOy%Qz!Q%Q!Q![6z![~%Q^7fYoW#ZUOy%Qz!O%Q!O!P5Z!P!Q%Q!Q![7_![!g%Q!g!h5z!h#X%Q#X#Y5z#Y~%Q_8ZQpVOy%Qz~%Q^8fUjSOy%Qz!O%Q!O!P4x!P!Q%Q!Q![7_![~%Q_8}S#WPOy%Qz!Q%Q!Q![5Z![~%Q~9`RjSOy%Qz{9i{~%Q~9nSoWOy9iyz9zz{:o{~9i~9}ROz9zz{:W{~9z~:ZTOz9zz{:W{!P9z!P!Q:j!Q~9z~:oOR~~:tUoWOy9iyz9zz{:o{!P9i!P!Q;W!Q~9i~;_QoWR~Oy%Qz~%Q^;jY#ZUOy%Qz!O%Q!O!P5Z!P!Q%Q!Q![7_![!g%Q!g!h5z!h#X%Q#X#Y5z#Y~%QX<_S]POy%Qz![%Q![!]RUOy%Qz!c%Q!c!}>e!}#T%Q#T#o>e#o~%QX>lY!YPoWOy%Qz}%Q}!O>e!O!Q%Q!Q![>e![!c%Q!c!}>e!}#T%Q#T#o>e#o~%QX?aQxPOy%Qz~%Q^?lQvUOy%Qz~%QX?uSOy%Qz#b%Q#b#c@R#c~%QX@WSoWOy%Qz#W%Q#W#X@d#X~%QX@kQ!`PoWOy%Qz~%QX@tSOy%Qz#f%Q#f#g@d#g~%QXAVQ!RPOy%Qz~%Q_AbQ!QVOy%Qz~%QZAmS!PPOy%Qz!_%Q!_!`2e!`~%Q",tokenizers:[gJ,g1,gK,0,1,2,3],topRules:{StyleSheet:[0,4]},specialized:[{term:94,get:e=>g2[e]||-1},{term:56,get:e=>g5[e]||-1},{term:95,get:e=>g9[e]||-1}],tokenPrec:1078}),g3=null;function g8(){if(!g3&&"object"==typeof document&&document.body){let e=[];for(let t in document.body.style)/[A-Z]|^-|^(item|length)$/.test(t)||e.push(t);g3=e.sort().map(e=>({type:"property",label:e}))}return g3||[]}let g6=["active","after","before","checked","default","disabled","empty","enabled","first-child","first-letter","first-line","first-of-type","focus","hover","in-range","indeterminate","invalid","lang","last-child","last-of-type","link","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-of-type","only-child","optional","out-of-range","placeholder","read-only","read-write","required","root","selection","target","valid","visited"].map(e=>({type:"class",label:e})),g7=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(e=>({type:"keyword",label:e})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","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","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(e=>({type:"constant",label:e}))),Oe=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(e=>({type:"type",label:e})),Ot=/^[\w-]*/,On=e=>{let{state:t,pos:n}=e,r=hM(t).resolveInner(n,-1);if("PropertyName"==r.name)return{from:r.from,options:g8(),validFor:Ot};if("ValueName"==r.name)return{from:r.from,options:g7,validFor:Ot};if("PseudoClassName"==r.name)return{from:r.from,options:g6,validFor:Ot};if("TagName"==r.name){for(let{parent:e}=r;e;e=e.parent)if("Block"==e.name)return{from:r.from,options:g8(),validFor:Ot};return{from:r.from,options:Oe,validFor:Ot}}if(!e.explicit)return null;let i=r.resolve(n),a=i.childBefore(n);return a&&":"==a.name&&"PseudoClassSelector"==i.name?{from:n,options:g6,validFor:Ot}:a&&":"==a.name&&"Declaration"==i.name||"ArgList"==i.name?{from:n,options:g7,validFor:Ot}:"Block"==i.name?{from:n,options:g8(),validFor:Ot}:null},Or=hQ.define({parser:g4.configure({props:[hJ.add({Declaration:h4()}),h3.add({Block:h8})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}}),Oi=["_blank","_self","_top","_parent"],Oa=["ascii","utf-8","utf-16","latin1","latin1"],Oo=["get","post","put","delete"],Os=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Ol=["true","false"],Ou={},Oc={a:{attrs:{href:null,ping:null,type:null,media:null,target:Oi,hreflang:null}},abbr:Ou,acronym:Ou,address:Ou,applet:Ou,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:Ou,aside:Ou,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:Ou,base:{attrs:{href:null,target:Oi}},basefont:Ou,bdi:Ou,bdo:Ou,big:Ou,blockquote:{attrs:{cite:null}},body:Ou,br:Ou,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:Os,formmethod:Oo,formnovalidate:["novalidate"],formtarget:Oi,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:Ou,center:Ou,cite:Ou,code:Ou,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:Ou,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:Ou,dir:Ou,div:Ou,dl:Ou,dt:Ou,em:Ou,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:Ou,figure:Ou,font:Ou,footer:Ou,form:{attrs:{action:null,name:null,"accept-charset":Oa,autocomplete:["on","off"],enctype:Os,method:Oo,novalidate:["novalidate"],target:Oi}},frame:Ou,frameset:Ou,h1:Ou,h2:Ou,h3:Ou,h4:Ou,h5:Ou,h6:Ou,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:Ou,hgroup:Ou,hr:Ou,html:{attrs:{manifest:null}},i:Ou,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:Os,formmethod:Oo,formnovalidate:["novalidate"],formtarget:Oi,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:Ou,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:Ou,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:Ou,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:Oa,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:Ou,noframes:Ou,noscript:Ou,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:Ou,param:{attrs:{name:null,value:null}},pre:Ou,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:Ou,rt:Ou,ruby:Ou,s:Ou,samp:Ou,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:Oa}},section:Ou,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:Ou,source:{attrs:{src:null,type:null,media:null}},span:Ou,strike:Ou,strong:Ou,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:Ou,summary:Ou,sup:Ou,table:Ou,tbody:Ou,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:Ou,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:Ou,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:Ou,time:{attrs:{datetime:null}},title:Ou,tr:Ou,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},tt:Ou,u:Ou,ul:{children:["li","script","template","ul","ol"]},var:Ou,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:Ou},Od={accesskey:null,class:null,contenteditable:Ol,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:Ol,autocorrect:Ol,autocapitalize:Ol,style:null,tabindex:null,title:null,translate:["yes","no"],onclick:null,rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":Ol,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Ol,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Ol,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Ol,"aria-hidden":Ol,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Ol,"aria-multiselectable":Ol,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Ol,"aria-relevant":null,"aria-required":Ol,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},Oh=Object.keys(Oc),Op=Object.keys(Od);function Of(e,t,n=e.length){if(!t)return"";let r=t.firstChild,i=r&&r.getChild("TagName");return i?e.sliceString(i.from,Math.min(i.to,n)):""}function Om(e,t=!1){for(let n=e.parent;n;n=n.parent)if("Element"==n.name){if(!t)return n;t=!1}return null}function Og(e,t){let n=Oc[Of(e,Om(t,!0))];return(null==n?void 0:n.children)||Oh}function OO(e,t){let n=[];for(let r=t;r=Om(r);){let i=Of(e,r);if(i&&"CloseTag"==r.lastChild.name)break;i&&0>n.indexOf(i)&&("EndTag"==t.name||t.from>=r.firstChild.to)&&n.push(i)}return n}let Ob=/^[:\-\.\w\u00b7-\uffff]*$/;function Oy(e,t,n,r){let i=/\s*>/.test(e.sliceDoc(r,r+5))?"":">";return{from:n,to:r,options:Og(e.doc,t).map(e=>({label:e,type:"type"})).concat(OO(e.doc,t).map((e,t)=>({label:"/"+e,apply:"/"+e+i,type:"type",boost:99-t}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function Ov(e,t,n,r){let i=/\s*>/.test(e.sliceDoc(r,r+5))?"":">";return{from:n,to:r,options:OO(e.doc,t).map((e,t)=>({label:e,apply:e+i,type:"type",boost:99-t})),validFor:Ob}}function Ox(e){let{state:t,pos:n}=e,r=hM(t).resolveInner(n),i=r.resolve(n,-1);for(let e=n,t;r==i&&(t=i.childBefore(e));){let n=t.lastChild;if(!n||!n.type.isError||n.from({label:e,type:"property"})),validFor:Ob}}return"Is"==i.name||"AttributeValue"==i.name||"UnquotedAttributeValue"==i.name?function(e,t,n,r){var i;let a=null===(i=t.parent)||void 0===i?void 0:i.getChild("AttributeName"),o=[],s;if(a){let i=e.sliceDoc(a.from,a.to),l=Od[i];if(!l){let n=Om(t),r=n?Oc[Of(e.doc,n)]:null;l=(null==r?void 0:r.attrs)&&r.attrs[i]}if(l){let t=e.sliceDoc(n,r).toLowerCase(),i='"',a='"';for(let u of(/^['"]/.test(t)?(s='"'==t[0]?/^[^"]*$/:/^[^']*$/,i="",a=e.sliceDoc(r,r+1)==t[0]?"":t[0],t=t.slice(1),n++):s=/^[^\s<>='"]*$/,l))o.push({label:u,apply:i+u+a,type:"constant"})}}return{from:n,to:r,options:o,validFor:s}}(t,i,"Is"==i.name?n:i.from,n):e.explicit&&("Element"==r.name||"Text"==r.name||"Document"==r.name)?function(e,t,n){let r=[],i=0;for(let n of Og(e.doc,t))r.push({label:"<"+n,type:"type"});for(let n of OO(e.doc,t))r.push({label:"",type:"type",boost:99-i++});return{from:n,to:n,options:r,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}(t,i,n):null}let OT=hQ.define({parser:gH.configure({props:[hJ.add({Element(e){let t=/^(\s*)(<\/)?/.exec(e.textAfter);return e.node.to<=e.pos+t[0].length?e.continue():e.lineIndent(e.node.from)+(t[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag":e=>e.column(e.node.from)+e.unit,Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].length{let a=e.type.id;return 27==a?gY(e,i,t):30==a?gY(e,i,n):33==a?gY(e,i,r):null})}([{tag:"script",attrs:e=>!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type),parser:mp.parser},{tag:"style",attrs:e=>(!e.lang||"css"==e.lang)&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type)),parser:Or.parser}])}),languageData:{commentTokens:{block:{open:""}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}}),Ok=c$.inputHandler.of((e,t,n,r)=>{if(e.composing||e.state.readOnly||t!=n||">"!=r&&"/"!=r||!OT.isActiveAt(e.state,t,-1))return!1;let{state:i}=e,a=i.changeByRange(e=>{var t,n,a;let{head:o}=e,s=hM(i).resolveInner(o,-1),l;if(("TagName"==s.name||"StartTag"==s.name)&&(s=s.parent),">"==r&&"OpenTag"==s.name){if((null===(n=null===(t=s.parent)||void 0===t?void 0:t.lastChild)||void 0===n?void 0:n.name)!="CloseTag"&&(l=Of(i.doc,s.parent,o)))return{range:oX.cursor(o+1),changes:{from:o,insert:`>`}}}else if("/"==r&&"OpenTag"==s.name){let e=s.parent,t=null==e?void 0:e.parent;if(e.from==o-1&&(null===(a=t.lastChild)||void 0===a?void 0:a.name)!="CloseTag"&&(l=Of(i.doc,t,o))){let e=`/${l}>`;return{range:oX.cursor(o+e.length),changes:{from:o,insert:e}}}}return{range:e}});return!a.changes.empty&&(e.dispatch(a,{userEvent:"input.type",scrollIntoView:!0}),!0)}),O_=h$({block:{open:""}}),OS=gp.configure({props:[h3.add(e=>{if(!(!e.is("Block")||e.is("Document")))return(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})}),hJ.add({Document:()=>null}),hN.add({Document:O_})]});function Ow(e){return new hL(O_,e)}let OE=Ow(OS),OC=OS.configure([gk,gw,gS,gE]),OA=Ow(OC);function OR(e,t){return t.sliceString(e.from,e.from+50)}class OP{constructor(e,t,n,r,i,a,o){this.node=e,this.from=t,this.to=n,this.spaceBefore=r,this.spaceAfter=i,this.type=a,this.item=o}blank(e=!0){let t=this.spaceBefore;if("Blockquote"==this.node.name)t+=">";else for(let e=this.to-this.from-t.length-this.spaceAfter.length;e>0;e--)t+=" ";return t+(e?this.spaceAfter:"")}marker(e,t){let n="OrderedList"==this.node.name?String(+ON(this.item,e)[2]+t):"";return this.spaceBefore+n+this.type+this.spaceAfter}}function OI(e,t,n){let r=[];for(let t=e;t&&"Document"!=t.name;t=t.parent)("ListItem"==t.name||"Blockquote"==t.name)&&r.push(t);let i=[],a=0;for(let e=r.length-1;e>=0;e--){let o=r[e],s,l=a;if("Blockquote"==o.name&&(s=/^[ \t]*>( ?)/.exec(t.slice(a))))a+=s[0].length,i.push(new OP(o,l,a,"",s[1],">",null));else if("ListItem"==o.name&&"OrderedList"==o.parent.name&&(s=/^([ \t]*)\d+([.)])([ \t]*)/.exec(OR(o,n)))){let e=s[3],t=s[0].length;e.length>=4&&(e=e.slice(0,e.length-4),t-=4),a+=t,i.push(new OP(o.parent,l,a,s[1],e,s[2],o))}else if("ListItem"==o.name&&"BulletList"==o.parent.name&&(s=/^([ \t]*)([-+*])([ \t]{1,4}\[[ xX]\])?([ \t]+)/.exec(OR(o,n)))){let e=s[4],t=s[0].length;e.length>4&&(e=e.slice(0,e.length-4),t-=4);let n=s[2];s[3]&&(n+=s[3].replace(/[xX]/," ")),a+=t,i.push(new OP(o.parent,l,a,s[1],e,n,o))}}return i}function ON(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function O$(e,t,n,r=0){for(let i=-1,a=e;;){if("ListItem"==a.name){let e=ON(a,t),o=+e[2];if(i>=0){if(o!=i+1)return;n.push({from:a.from+e[1].length,to:a.from+e[0].length,insert:String(i+2+r)})}i=o}let e=a.nextSibling;if(!e)break;a=e}}function OL(e){return"QuoteMark"==e.name||"ListMark"==e.name}let OD=[{key:"Enter",run:({state:e,dispatch:t})=>{let n=hM(e),{doc:r}=e,i=null,a=e.changeByRange(t=>{if(!t.empty||!OA.isActiveAt(e,t.from))return i={range:t};let a=t.from,o=r.lineAt(a),s=OI(n.resolveInner(a,-1),o.text,r);for(;s.length&&s[s.length-1].from>a-o.from;)s.pop();if(!s.length)return i={range:t};let l=s[s.length-1];if(l.to-l.spaceAfter.length>a-o.from)return i={range:t};let u=a>=l.to-l.spaceAfter.length&&!/\S/.test(o.text.slice(l.to));if(l.item&&u){if(l.node.firstChild.to>=a||o.from>0&&!/[^\s>]/.test(r.lineAt(o.from-1).text)){let e=s.length>1?s[s.length-2]:null,t,n="";e&&e.item?(t=o.from+e.from,n=e.marker(r,1)):t=o.from+(e?e.to:0);let i=[{from:t,to:a,insert:n}];return"OrderedList"==l.node.name&&O$(l.item,r,i,-2),e&&"OrderedList"==e.node.name&&O$(e.item,r,i),{range:oX.cursor(t+n.length),changes:i}}{let t="";for(let e=0,n=s.length-2;e<=n;e++)t+=s[e].blank(e\s*$/.exec(n.text);if(i&&i.index==l.from){let r=e.changes([{from:n.from+i.index,to:n.to},{from:o.from+l.from,to:o.to}]);return{range:t.map(r),changes:r}}}let c=[];"OrderedList"==l.node.name&&O$(l.item,r,c);let d=e.lineBreak,h=l.item&&l.item.from]*/.exec(o.text)[0].length>=l.to)for(let e=0,t=s.length-1;e<=t;e++)d+=e!=t||h?s[e].blank():s[e].marker(r,1);let p=a;for(;p>o.from&&/\s/.test(o.text.charAt(p-o.from-1));)p--;return c.push({from:p,to:a,insert:d}),{range:oX.cursor(p+d.length),changes:c}});return!i&&(t(e.update(a,{scrollIntoView:!0,userEvent:"input"})),!0)}},{key:"Backspace",run:({state:e,dispatch:t})=>{let n=hM(e),r=null,i=e.changeByRange(t=>{let i=t.from,{doc:a}=e;if(t.empty&&OA.isActiveAt(e,t.from)){let e=a.lineAt(i),r=OI(function(e,t){let n=e.resolveInner(t,-1),r=t;OL(n)&&(r=n.from,n=n.parent);for(let e;e=n.childBefore(r);)if(OL(e))r=e.from;else if("OrderedList"==e.name||"BulletList"==e.name)r=(n=e.lastChild).to;else break;return n}(n,i),e.text,a);if(r.length){let n=r[r.length-1],a=n.to-n.spaceAfter.length+(n.spaceAfter?1:0);if(i-e.from>a&&!/\S/.test(e.text.slice(a,i-e.from)))return{range:oX.cursor(e.from+a),changes:{from:e.from+a,to:i}};if(i-e.from==a){let r=e.from+n.from;if(n.item&&n.node.from{if(e.next<0)e.acceptToken(167);else if(10!=e.next&&13!=e.next);else if(t.context.depth<0)e.acceptToken(165,1);else{e.advance();let t=0;for(;32==e.next||9==e.next;)e.advance(),t++;let n=10==e.next||13==e.next||35==e.next;e.acceptToken(n?166:164,-t)}},{contextual:!0,fallback:!0}),OB=new fy((e,t)=>{let n=t.context.depth;if(n<0)return;let r=e.peek(-1);if((10==r||13==r)&&t.context.depth>=0){let t=0,r=0;for(;;){if(32==e.next)t++;else if(9==e.next)t+=8-t%8;else break;e.advance(),r++}t!=n&&10!=e.next&&13!=e.next&&35!=e.next&&(te.depth<0&&OM.indexOf(t)>-1?e.parent:e,shift:(e,t,n,r)=>162==t?new OU(e,function(e){let t=0;for(let n=0;ne.hash}),OW=new fy(e=>{for(let t=0;t<5;t++){if(e.next!="print".charCodeAt(t))return;e.advance()}if(!/\w/.test(String.fromCharCode(e.next)))for(let t=0;;t++){let n=e.peek(t);if(32!=n&&9!=n){40!=n&&46!=n&&10!=n&&13!=n&&35!=n&&e.acceptToken(1);return}}}),OZ=hh({'async "*" "**" FormatConversion FormatSpec':hI.modifier,"for while if elif else try except finally return raise break continue with pass assert await yield":hI.controlKeyword,"in not and or is del":hI.operatorKeyword,"from def class global nonlocal lambda":hI.definitionKeyword,import:hI.moduleKeyword,"with as print":hI.keyword,Boolean:hI.bool,None:hI.null,VariableName:hI.variableName,"CallExpression/VariableName":hI.function(hI.variableName),"FunctionDefinition/VariableName":hI.function(hI.definition(hI.variableName)),"ClassDefinition/VariableName":hI.definition(hI.className),PropertyName:hI.propertyName,"CallExpression/MemberExpression/PropertyName":hI.function(hI.propertyName),Comment:hI.lineComment,Number:hI.number,String:hI.string,FormatString:hI.special(hI.string),UpdateOp:hI.updateOperator,ArithOp:hI.arithmeticOperator,BitOp:hI.bitwiseOperator,CompareOp:hI.compareOperator,AssignOp:hI.definitionOperator,Ellipsis:hI.punctuation,At:hI.meta,"( )":hI.paren,"[ ]":hI.squareBracket,"{ }":hI.brace,".":hI.derefOperator,", ;":hI.separator}),Oq={__proto__:null,await:40,or:50,and:52,in:56,not:58,is:60,if:66,else:68,lambda:72,yield:90,from:92,async:98,for:100,None:152,True:154,False:154,del:168,pass:172,break:176,continue:180,return:184,raise:192,import:196,as:198,global:202,nonlocal:204,assert:208,elif:218,while:222,try:228,except:230,finally:232,with:236,def:240,class:250},OG=fP.deserialize({version:14,states:"!?pO`Q$IXOOO%cQ$I[O'#GaOOQ$IS'#Cm'#CmOOQ$IS'#Cn'#CnO'RQ$IWO'#ClO(tQ$I[O'#G`OOQ$IS'#Ga'#GaOOQ$IS'#DS'#DSOOQ$IS'#G`'#G`O)bQ$IWO'#CsO)rQ$IWO'#DdO*SQ$IWO'#DhOOQ$IS'#Ds'#DsO*gO`O'#DsO*oOpO'#DsO*wO!bO'#DtO+SO#tO'#DtO+_O&jO'#DtO+jO,UO'#DtO-lQ$I[O'#GQOOQ$IS'#GQ'#GQO'RQ$IWO'#GPO/OQ$I[O'#GPOOQ$IS'#E]'#E]O/gQ$IWO'#E^OOQ$IS'#GO'#GOO/qQ$IWO'#F}OOQ$IV'#F}'#F}O/|Q$IWO'#FPOOQ$IS'#Fr'#FrO0RQ$IWO'#FOOOQ$IV'#H]'#H]OOQ$IV'#F|'#F|OOQ$IT'#FR'#FRQ`Q$IXOOO'RQ$IWO'#CoO0aQ$IWO'#C{O0hQ$IWO'#DPO0vQ$IWO'#GeO1WQ$I[O'#EQO'RQ$IWO'#EROOQ$IS'#ET'#ETOOQ$IS'#EV'#EVOOQ$IS'#EX'#EXO1lQ$IWO'#EZO2SQ$IWO'#E_O/|Q$IWO'#EaO2gQ$I[O'#EaO/|Q$IWO'#EdO/gQ$IWO'#EgO/gQ$IWO'#EkO/gQ$IWO'#EnO2rQ$IWO'#EpO2yQ$IWO'#EuO3UQ$IWO'#EqO/gQ$IWO'#EuO/|Q$IWO'#EwO/|Q$IWO'#E|OOQ$IS'#Cc'#CcOOQ$IS'#Cd'#CdOOQ$IS'#Ce'#CeOOQ$IS'#Cf'#CfOOQ$IS'#Cg'#CgOOQ$IS'#Ch'#ChOOQ$IS'#Cj'#CjO'RQ$IWO,58|O'RQ$IWO,58|O'RQ$IWO,58|O'RQ$IWO,58|O'RQ$IWO,58|O'RQ$IWO,58|O3ZQ$IWO'#DmOOQ$IS,5:W,5:WO3nQ$IWO'#GoOOQ$IS,5:Z,5:ZO3{Q%1`O,5:ZO4QQ$I[O,59WO0aQ$IWO,59`O0aQ$IWO,59`O0aQ$IWO,59`O6pQ$IWO,59`O6uQ$IWO,59`O6|Q$IWO,59hO7TQ$IWO'#G`O8ZQ$IWO'#G_OOQ$IS'#G_'#G_OOQ$IS'#DY'#DYO8rQ$IWO,59_O'RQ$IWO,59_O9QQ$IWO,59_O9VQ$IWO,5:PO'RQ$IWO,5:POOQ$IS,5:O,5:OO9eQ$IWO,5:OO9jQ$IWO,5:VO'RQ$IWO,5:VO'RQ$IWO,5:TOOQ$IS,5:S,5:SO9{Q$IWO,5:SO:QQ$IWO,5:UOOOO'#FZ'#FZO:VO`O,5:_OOQ$IS,5:_,5:_OOOO'#F['#F[O:_OpO,5:_O:gQ$IWO'#DuOOOO'#F]'#F]O:wO!bO,5:`OOQ$IS,5:`,5:`OOOO'#F`'#F`O;SO#tO,5:`OOOO'#Fa'#FaO;_O&jO,5:`OOOO'#Fb'#FbO;jO,UO,5:`OOQ$IS'#Fc'#FcO;uQ$I[O,5:dO>gQ$I[O,5hQ$IZO<TAN>TO#FQQ$IWO<aAN>aO/gQ$IWO1G1^O#FbQ$I[O1G1^P#FlQ$IWO'#FWOOQ$IS1G1d1G1dP#FyQ$IWO'#F^O#GWQ$IWO7+(mOOOO-E9]-E9]O#GnQ$IWO7+'qOOQ$ISAN?VAN?VO#HXQ$IWO,5UZ%q7[%kW%y#tOr(}rs)}sw(}wx>wx#O(}#O#P2]#P#o(}#o#p:X#p#q(}#q#r2q#r~(}:Y?QX%q7[%kW%y#tOr>wrs?ms#O>w#O#PAP#P#o>w#o#p8Y#p#q>w#q#r6g#r~>w:Y?rX%q7[Or>wrs@_s#O>w#O#PAP#P#o>w#o#p8Y#p#q>w#q#r6g#r~>w:Y@dX%q7[Or>wrs-}s#O>w#O#PAP#P#o>w#o#p8Y#p#q>w#q#r6g#r~>w:YAUT%q7[O#o>w#o#p6g#p#q>w#q#r6g#r~>w`x#O!`x#O!gZ%kW%f,XOY!wZ]!Ad]^>w^r!Adrs!Bhs#O!Ad#O#P!C[#P#o!Ad#o#p!9f#p#q!Ad#q#r!7x#r~!AdEc!BoX%q7[%f,XOr>wrs@_s#O>w#O#PAP#P#o>w#o#p8Y#p#q>w#q#r6g#r~>wEc!CaT%q7[O#o!Ad#o#p!7x#p#q!Ad#q#r!7x#r~!AdGZ!CuT%q7[O#o!-l#o#p!DU#p#q!-l#q#r!DU#r~!-l0}!De]%hS%kW%f,X%n`%w!b%y#tOY!DUYZAyZ]!DU]^Ay^r!DUrs!E^sw!DUwx!5tx#O!DU#O#P!FU#P#o!DU#o#p!F[#p~!DU0}!EiX%hS%f,X%n`%w!bOrAyrsCiswAywx5Px#OAy#O#PEo#P#oAy#o#pEu#p~Ay0}!FXPO~!DU0}!Fe]%hS%kW%f,XOY!`x#O!`sw#=dwx#@Sx#O#=d#O#P#Av#P#o#=d#o#p#0Y#p~#=d2P#=mZQ1s%hS%kWOY#=dYZ:{Z]#=d]^:{^r#=drs#>`sw#=dwx#@Sx#O#=d#O#P#Av#P~#=d2P#>gZQ1s%hSOY#=dYZ:{Z]#=d]^:{^r#=drs#?Ysw#=dwx#@Sx#O#=d#O#P#Av#P~#=d2P#?aZQ1s%hSOY#=dYZ:{Z]#=d]^:{^r#=drs#,zsw#=dwx#@Sx#O#=d#O#P#Av#P~#=d2P#@ZZQ1s%kWOY#=dYZ:{Z]#=d]^:{^r#=drs#>`sw#=dwx#@|x#O#=d#O#P#Av#P~#=d2P#ATZQ1s%kWOY#=dYZ:{Z]#=d]^:{^r#=drs#>`sw#=dwx#9bx#O#=d#O#P#Av#P~#=d2P#A{TQ1sOY#=dYZ:{Z]#=d]^:{^~#=dLe#Bg_Q1s%q7[%kW%y#tOY!NdYZ(}Z]!Nd]^(}^r!Ndrs# rsw!Ndwx#Cfx#O!Nd#O#P#/f#P#o!Nd#o#p#wZ]#Cf]^>w^r#Cfrs#Djs#O#Cf#O#P#Fj#P#o#Cf#o#p#8h#p#q#Cf#q#r#5h#r~#CfJ}#Dq]Q1s%q7[OY#CfYZ>wZ]#Cf]^>w^r#Cfrs#Ejs#O#Cf#O#P#Fj#P#o#Cf#o#p#8h#p#q#Cf#q#r#5h#r~#CfJ}#Eq]Q1s%q7[OY#CfYZ>wZ]#Cf]^>w^r#Cfrs#'[s#O#Cf#O#P#Fj#P#o#Cf#o#p#8h#p#q#Cf#q#r#5h#r~#CfJ}#FqXQ1s%q7[OY#CfYZ>wZ]#Cf]^>w^#o#Cf#o#p#5h#p#q#Cf#q#r#5h#r~#CfLu#GeXQ1s%q7[OY!KxYZ'PZ]!Kx]^'P^#o!Kx#o#p#HQ#p#q!Kx#q#r#HQ#r~!Kx6i#Ha]Q1s%hS%kW%n`%w!b%y#tOY#HQYZAyZ]#HQ]^Ay^r#HQrs#IYsw#HQwx#3dx#O#HQ#O#P#Mn#P#o#HQ#o#p#NS#p~#HQ6i#Ie]Q1s%hS%n`%w!bOY#HQYZAyZ]#HQ]^Ay^r#HQrs#J^sw#HQwx#3dx#O#HQ#O#P#Mn#P#o#HQ#o#p#NS#p~#HQ6i#Ji]Q1s%hS%n`%w!bOY#HQYZAyZ]#HQ]^Ay^r#HQrs#Kbsw#HQwx#3dx#O#HQ#O#P#Mn#P#o#HQ#o#p#NS#p~#HQ3k#KmZQ1s%hS%n`%w!bOY#KbYZD_Z]#Kb]^D_^w#Kbwx#)|x#O#Kb#O#P#L`#P#o#Kb#o#p#Lt#p~#Kb3k#LeTQ1sOY#KbYZD_Z]#Kb]^D_^~#Kb3k#L{ZQ1s%hSOY#,zYZ1OZ]#,z]^1O^w#,zwx#-nx#O#,z#O#P#/Q#P#o#,z#o#p#Kb#p~#,z6i#MsTQ1sOY#HQYZAyZ]#HQ]^Ay^~#HQ6i#N]]Q1s%hS%kWOY#=dYZ:{Z]#=d]^:{^r#=drs#>`sw#=dwx#@Sx#O#=d#O#P#Av#P#o#=d#o#p#HQ#p~#=dLu$ c_Q1s%q7[%hS%n`%w!bOY!KxYZ'PZ]!Kx]^'P^r!Kxrs$!bsw!Kxwx!MYx#O!Kx#O#P#G^#P#o!Kx#o#p#NS#p#q!Kx#q#r#HQ#r~!KxIw$!o]Q1s%q7[%hS%n`%w!bOY$!bYZGgZ]$!b]^Gg^w$!bwx#%[x#O$!b#O#P$#h#P#o$!b#o#p#Lt#p#q$!b#q#r#Kb#r~$!bIw$#oXQ1s%q7[OY$!bYZGgZ]$!b]^Gg^#o$!b#o#p#Kb#p#q$!b#q#r#Kb#r~$!bMV$$i_Q1s%q7[%kW%tp%y#tOY$%hYZIqZ]$%h]^Iq^r$%hrs# rsw$%hwx$.px#O$%h#O#P$&x#P#o$%h#o#p$-n#p#q$%h#q#r$'l#r~$%hMV$%y_Q1s%q7[%hS%kW%tp%w!b%y#tOY$%hYZIqZ]$%h]^Iq^r$%hrs# rsw$%hwx$$[x#O$%h#O#P$&x#P#o$%h#o#p$-n#p#q$%h#q#r$'l#r~$%hMV$'PXQ1s%q7[OY$%hYZIqZ]$%h]^Iq^#o$%h#o#p$'l#p#q$%h#q#r$'l#r~$%h6y$'{]Q1s%hS%kW%tp%w!b%y#tOY$'lYZKXZ]$'l]^KX^r$'lrs#1`sw$'lwx$(tx#O$'l#O#P$-Y#P#o$'l#o#p$-n#p~$'l6y$)P]Q1s%kW%tp%y#tOY$'lYZKXZ]$'l]^KX^r$'lrs#1`sw$'lwx$)xx#O$'l#O#P$-Y#P#o$'l#o#p$-n#p~$'l6y$*T]Q1s%kW%tp%y#tOY$'lYZKXZ]$'l]^KX^r$'lrs#1`sw$'lwx$*|x#O$'l#O#P$-Y#P#o$'l#o#p$-n#p~$'l5c$+XZQ1s%kW%tp%y#tOY$*|YZMmZ]$*|]^Mm^r$*|rs#6ds#O$*|#O#P$+z#P#o$*|#o#p$,`#p~$*|5c$,PTQ1sOY$*|YZMmZ]$*|]^Mm^~$*|5c$,gZQ1s%kWOY#9bYZ8tZ]#9b]^8t^r#9brs#:Us#O#9b#O#P#;h#P#o#9b#o#p$*|#p~#9b6y$-_TQ1sOY$'lYZKXZ]$'l]^KX^~$'l6y$-w]Q1s%hS%kWOY#=dYZ:{Z]#=d]^:{^r#=drs#>`sw#=dwx#@Sx#O#=d#O#P#Av#P#o#=d#o#p$'l#p~#=dMV$.}_Q1s%q7[%kW%tp%y#tOY$%hYZIqZ]$%h]^Iq^r$%hrs# rsw$%hwx$/|x#O$%h#O#P$&x#P#o$%h#o#p$-n#p#q$%h#q#r$'l#r~$%hKo$0Z]Q1s%q7[%kW%tp%y#tOY$/|YZ!!uZ]$/|]^!!u^r$/|rs#Djs#O$/|#O#P$1S#P#o$/|#o#p$,`#p#q$/|#q#r$*|#r~$/|Ko$1ZXQ1s%q7[OY$/|YZ!!uZ]$/|]^!!u^#o$/|#o#p$*|#p#q$/|#q#r$*|#r~$/|Mg$1}XQ1s%q7[OY!IYYZ$}Z]!IY]^$}^#o!IY#o#p$2j#p#q!IY#q#r$2j#r~!IY7Z$2{]Q1s%hS%kW%n`%tp%w!b%y#tOY$2jYZ!$gZ]$2j]^!$g^r$2jrs#IYsw$2jwx$(tx#O$2j#O#P$3t#P#o$2j#o#p$4Y#p~$2j7Z$3yTQ1sOY$2jYZ!$gZ]$2j]^!$g^~$2j7Z$4c]Q1s%hS%kWOY#=dYZ:{Z]#=d]^:{^r#=drs#>`sw#=dwx#@Sx#O#=d#O#P#Av#P#o#=d#o#p$2j#p~#=dGz$5o]$}Q%q7[%hS%kW%n`%tp%w!b%y#tOr$}rs&Rsw$}wxHsx!_$}!_!`$6h!`#O$}#O#P!$R#P#o$}#o#p!%i#p#q$}#q#r!$g#r~$}Gz$6{Z!s,W%q7[%hS%kW%n`%tp%w!b%y#tOr$}rs&Rsw$}wxHsx#O$}#O#P!$R#P#o$}#o#p!%i#p#q$}#q#r!$g#r~$}Gz$8R]$wQ%q7[%hS%kW%n`%tp%w!b%y#tOr$}rs&Rsw$}wxHsx!_$}!_!`$6h!`#O$}#O#P!$R#P#o$}#o#p!%i#p#q$}#q#r!$g#r~$}G{$9Z_%r`%q7[%kW%f,X%tp%y#tOY$:YYZIqZ]$:Y]^Iq^r$:Yrs$;jsw$:Ywx%%zx#O$:Y#O#P%!^#P#o$:Y#o#p%$x#p#q$:Y#q#r%!r#r~$:YGk$:k_%q7[%hS%kW%f,X%tp%w!b%y#tOY$:YYZIqZ]$:Y]^Iq^r$:Yrs$;jsw$:Ywx% ^x#O$:Y#O#P%!^#P#o$:Y#o#p%$x#p#q$:Y#q#r%!r#r~$:YFy$;u_%q7[%hS%f,X%w!bOY$Sx#O$Sx#O$_Z%q7[%kW%f,X%y#tOr(}rs)}sw(}wx={x#O(}#O#P2]#P#o(}#o#p:X#p#q(}#q#r2q#r~(}Fy$?VT%q7[O#o$Sx#O$T!Q!_$}!_!`$6h!`#O$}#O#P!$R#P#o$}#o#p!%i#p#q$}#q#r!$g#r~$}Gz%>h]%OQ%q7[%hS%kW%n`%tp%w!b%y#tOr$}rs&Rsw$}wxHsx!_$}!_!`$6h!`#O$}#O#P!$R#P#o$}#o#p!%i#p#q$}#q#r!$g#r~$}Gy%?tu!f,V%q7[%hS%kW%n`%tp%w!b%y#tOr$}rs&Rsw$}wxHsx!O$}!O!P%BX!P!Q$}!Q![%Cc![!d$}!d!e%Ee!e!g$}!g!h%7Z!h!l$}!l!m%;k!m!q$}!q!r%H_!r!z$}!z!{%KR!{#O$}#O#P!$R#P#R$}#R#S%Cc#S#U$}#U#V%Ee#V#X$}#X#Y%7Z#Y#^$}#^#_%;k#_#c$}#c#d%H_#d#l$}#l#m%KR#m#o$}#o#p!%i#p#q$}#q#r!$g#r~$}Gy%Bj]%q7[%hS%kW%n`%tp%w!b%y#tOr$}rs&Rsw$}wxHsx!Q$}!Q![%5_![#O$}#O#P!$R#P#o$}#o#p!%i#p#q$}#q#r!$g#r~$}Gy%Cvi!f,V%q7[%hS%kW%n`%tp%w!b%y#tOr$}rs&Rsw$}wxHsx!O$}!O!P%BX!P!Q$}!Q![%Cc![!g$}!g!h%7Z!h!l$}!l!m%;k!m#O$}#O#P!$R#P#R$}#R#S%Cc#S#X$}#X#Y%7Z#Y#^$}#^#_%;k#_#o$}#o#p!%i#p#q$}#q#r!$g#r~$}Gy%Ev`%q7[%hS%kW%n`%tp%w!b%y#tOr$}rs&Rsw$}wxHsx!Q$}!Q!R%Fx!R!S%Fx!S#O$}#O#P!$R#P#R$}#R#S%Fx#S#o$}#o#p!%i#p#q$}#q#r!$g#r~$}Gy%G]`!f,V%q7[%hS%kW%n`%tp%w!b%y#tOr$}rs&Rsw$}wxHsx!Q$}!Q!R%Fx!R!S%Fx!S#O$}#O#P!$R#P#R$}#R#S%Fx#S#o$}#o#p!%i#p#q$}#q#r!$g#r~$}Gy%Hp_%q7[%hS%kW%n`%tp%w!b%y#tOr$}rs&Rsw$}wxHsx!Q$}!Q!Y%Io!Y#O$}#O#P!$R#P#R$}#R#S%Io#S#o$}#o#p!%i#p#q$}#q#r!$g#r~$}Gy%JS_!f,V%q7[%hS%kW%n`%tp%w!b%y#tOr$}rs&Rsw$}wxHsx!Q$}!Q!Y%Io!Y#O$}#O#P!$R#P#R$}#R#S%Io#S#o$}#o#p!%i#p#q$}#q#r!$g#r~$}Gy%Kdc%q7[%hS%kW%n`%tp%w!b%y#tOr$}rs&Rsw$}wxHsx!Q$}!Q![%Lo![!c$}!c!i%Lo!i#O$}#O#P!$R#P#R$}#R#S%Lo#S#T$}#T#Z%Lo#Z#o$}#o#p!%i#p#q$}#q#r!$g#r~$}Gy%MSc!f,V%q7[%hS%kW%n`%tp%w!b%y#tOr$}rs&Rsw$}wxHsx!Q$}!Q![%Lo![!c$}!c!i%Lo!i#O$}#O#P!$R#P#R$}#R#S%Lo#S#T$}#T#Z%Lo#Z#o$}#o#p!%i#p#q$}#q#r!$g#r~$}Mg%Nr]y1s%q7[%hS%kW%n`%tp%w!b%y#tOr$}rs&Rsw$}wxHsx!_$}!_!`& k!`#O$}#O#P!$R#P#o$}#o#p!%i#p#q$}#q#r!$g#r~$}x!u!}&+n!}#O$}#O#P!$R#P#R$}#R#S&+n#S#T$}#T#f&+n#f#g&>x#g#o&+n#o#p!%i#p#q$}#q#r!$g#r$g$}$g~&+nGZ&9gZ%q7[%hS%n`%w!b%s,XOr'Prs&:Ysw'Pwx(Rx#O'P#O#PAe#P#o'P#o#pEu#p#q'P#q#rAy#r~'PGZ&:eZ%q7[%hS%n`%w!bOr'Prs&;Wsw'Pwx(Rx#O'P#O#PAe#P#o'P#o#pEu#p#q'P#q#rAy#r~'PD]&;eX%q7[%hS%x,X%n`%w!bOwGgwx,kx#OGg#O#PH_#P#oGg#o#pET#p#qGg#q#rD_#r~GgGk&<_Z%q7[%kW%tp%y#t%m,XOrIqrs)}swIqwx&=Qx#OIq#O#PJs#P#oIq#o#p! T#p#qIq#q#rKX#r~IqGk&=]Z%q7[%kW%tp%y#tOrIqrs)}swIqwx&>Ox#OIq#O#PJs#P#oIq#o#p! T#p#qIq#q#rKX#r~IqFT&>]X%q7[%kW%v,X%tp%y#tOr!!urs?ms#O!!u#O#P!#m#P#o!!u#o#pNc#p#q!!u#q#rMm#r~!!uMg&?_c%q7[%hS%kW%e&j%n`%tp%w!b%y#t%Q,XOr$}rs&9Ysw$}wx&x!i!t&+n!t!u&5j!u!}&+n!}#O$}#O#P!$R#P#R$}#R#S&+n#S#T$}#T#U&+n#U#V&5j#V#Y&+n#Y#Z&>x#Z#o&+n#o#p!%i#p#q$}#q#r!$g#r$g$}$g~&+nG{&CXZ!V,X%q7[%hS%kW%n`%tp%w!b%y#tOr$}rs&Rsw$}wxHsx#O$}#O#P!$R#P#o$}#o#p!%i#p#q$}#q#r!$g#r~$}Oq[e]||-1}],tokenPrec:6584});function OH(e,t){let n=e.lineIndent(t.from),r=e.lineAt(e.pos,-1),i=r.from+r.text.length;return!/\S/.test(r.text)&&e.node.ton?null:n+e.unit}let OY=hQ.define({parser:OG.configure({props:[hJ.add({Body:e=>{var t;return null!==(t=OH(e,e.node))&&void 0!==t?t:e.continue()},IfStatement:e=>/^\s*(else:|elif )/.test(e.textAfter)?e.baseIndent:e.continue(),TryStatement:e=>/^\s*(except |finally:)/.test(e.textAfter)?e.baseIndent:e.continue(),"TupleExpression ComprehensionExpression ParamList ArgList ParenthesizedExpression":h5({closing:")"}),"DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression":h5({closing:"}"}),"ArrayExpression ArrayComprehensionExpression":h5({closing:"]"}),Script:e=>{if(e.pos+/\s*/.exec(e.textAfter)[0].length>=e.node.to){let t=null;for(let n=e.node,r=n.to;(n=n.lastChild)&&n.to==r;)"Body"==n.type.name&&(t=n);if(t){let n=OH(e,t);if(null!=n)return n}}return e.continue()}}),h3.add({"ArrayExpression DictionaryExpression SetExpression TupleExpression":h8,Body:(e,t)=>({from:e.from+1,to:e.to-(e.to==t.doc.length?0:1)})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""']},commentTokens:{line:"#"},indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/}});var OX=e=>"checkbox"===e.type,OV=e=>e instanceof Date,OK=e=>null==e;let OJ=e=>"object"==typeof e;var O1=e=>!OK(e)&&!Array.isArray(e)&&OJ(e)&&!OV(e),O0=e=>O1(e)&&e.target?OX(e.target)?e.target.checked:e.target.value:e,O2=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,O5=(e,t)=>e.has(O2(t)),O9=e=>{let t=e.constructor&&e.constructor.prototype;return O1(t)&&t.hasOwnProperty("isPrototypeOf")},O4="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function O3(e){let t;let n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(!(O4&&(e instanceof Blob||e instanceof FileList))&&(n||O1(e))))return e;else if(t=n?[]:{},n||O9(e))for(let n in e)e.hasOwnProperty(n)&&(t[n]=O3(e[n]));else t=e;return t}var O8=e=>Array.isArray(e)?e.filter(Boolean):[],O6=e=>void 0===e,O7=(e,t,n)=>{if(!t||!O1(e))return n;let r=O8(t.split(/[,[\].]+?/)).reduce((e,t)=>OK(e)?e:e[t],e);return O6(r)||r===e?O6(e[t])?n:e[t]:r};let be={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},bt={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},bn={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},br=U.createContext(null),bi=()=>U.useContext(br);var ba=(e,t,n,r=!0)=>{let i={defaultValues:t._defaultValues};for(let a in e)Object.defineProperty(i,a,{get:()=>(t._proxyFormState[a]!==bt.all&&(t._proxyFormState[a]=!r||bt.all),n&&(n[a]=!0),e[a])});return i},bo=e=>O1(e)&&!Object.keys(e).length,bs=(e,t,n,r)=>{n(e);let{name:i,...a}=e;return bo(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(e=>t[e]===(!r||bt.all))},bl=e=>Array.isArray(e)?e:[e],bu=(e,t,n)=>n&&t?e===t:!e||!t||e===t||bl(e).some(e=>e&&(e.startsWith(t)||t.startsWith(e)));function bc(e){let t=U.useRef(e);t.current=e,U.useEffect(()=>{let n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}var bd=e=>"string"==typeof e,bh=(e,t,n,r,i)=>bd(e)?(r&&t.watch.add(e),O7(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),O7(n,e))):(r&&(t.watchAll=!0),n),bp=e=>/^\w*$/.test(e),bf=e=>O8(e.replace(/["|']|\]/g,"").split(/\.|\[/));function bm(e,t,n){let r=-1,i=bp(t)?[t]:bf(t),a=i.length,o=a-1;for(;++re.render(function(e){let t=bi(),{name:n,control:r=t.control,shouldUnregister:i}=e,a=O5(r._names.array,n),o=function(e){let t=bi(),{control:n=t.control,name:r,defaultValue:i,disabled:a,exact:o}=e||{},s=U.useRef(r);s.current=r,bc({disabled:a,subject:n._subjects.values,next:e=>{bu(s.current,e.name,o)&&u(O3(bh(s.current,n._names,e.values||n._formValues,!1,i)))}});let[l,u]=U.useState(n._getWatch(r,i));return U.useEffect(()=>n._removeUnmounted()),l}({control:r,name:n,defaultValue:O7(r._formValues,n,O7(r._defaultValues,n,e.defaultValue)),exact:!0}),s=function(e){let t=bi(),{control:n=t.control,disabled:r,name:i,exact:a}=e||{},[o,s]=U.useState(n._formState),l=U.useRef(!0),u=U.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=U.useRef(i);return c.current=i,bc({disabled:r,next:e=>l.current&&bu(c.current,e.name,a)&&bs(e,u.current,n._updateFormState)&&s({...n._formState,...e}),subject:n._subjects.state}),U.useEffect(()=>(l.current=!0,u.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),ba(o,n,u.current,!1)}({control:r,name:n}),l=U.useRef(r.register(n,{...e.rules,value:o}));return l.current=r.register(n,e.rules),U.useEffect(()=>{let e=r._options.shouldUnregister||i,t=(e,t)=>{let n=O7(r._fields,e);n&&(n._f.mount=t)};if(t(n,!0),e){let e=O3(O7(r._options.defaultValues,n));bm(r._defaultValues,n,e),O6(O7(r._formValues,n))&&bm(r._formValues,n,e)}return()=>{(a?e&&!r._state.action:e)?r.unregister(n):t(n,!1)}},[n,r,a,i]),{field:{name:n,value:o,onChange:U.useCallback(e=>l.current.onChange({target:{value:O0(e),name:n},type:be.CHANGE}),[n]),onBlur:U.useCallback(()=>l.current.onBlur({target:{value:O7(r._formValues,n),name:n},type:be.BLUR}),[n,r]),ref:e=>{let t=O7(r._fields,n);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}},formState:s,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!O7(s.errors,n)},isDirty:{enumerable:!0,get:()=>!!O7(s.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!O7(s.touchedFields,n)},error:{enumerable:!0,get:()=>O7(s.errors,n)}})}}(e));var bO=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};let bb=(e,t,n)=>{for(let r of n||Object.keys(e)){let n=O7(e,r);if(n){let{_f:e,...r}=n;if(e&&t(e.name)){if(e.ref.focus){e.ref.focus();break}if(e.refs&&e.refs[0].focus){e.refs[0].focus();break}}else O1(r)&&bb(r,t)}}};var by=()=>{let e="undefined"==typeof performance?Date.now():1e3*performance.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{let n=(16*Math.random()+e)%16|0;return("x"==t?n:3&n|8).toString(16)})},bv=(e,t,n={})=>n.shouldFocus||O6(n.shouldFocus)?n.focusName||`${e}.${O6(n.focusIndex)?t:n.focusIndex}.`:"",bx=e=>({isOnSubmit:!e||e===bt.onSubmit,isOnBlur:e===bt.onBlur,isOnChange:e===bt.onChange,isOnAll:e===bt.all,isOnTouch:e===bt.onTouched}),bT=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),bk=(e,t,n)=>{let r=O8(O7(e,n));return bm(r,"root",t[n]),bm(e,n,r),e},b_=e=>"boolean"==typeof e,bS=e=>"file"===e.type,bw=e=>"function"==typeof e,bE=e=>{if(!O4)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},bC=e=>bd(e),bA=e=>"radio"===e.type,bR=e=>e instanceof RegExp;let bP={value:!1,isValid:!1},bI={value:!0,isValid:!0};var bN=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!O6(e[0].attributes.value)?O6(e[0].value)||""===e[0].value?bI:{value:e[0].value,isValid:!0}:bI:bP}return bP};let b$={isValid:!1,value:null};var bL=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,b$):b$;function bD(e,t,n="validate"){if(bC(e)||Array.isArray(e)&&e.every(bC)||b_(e)&&!e)return{type:n,message:bC(e)?e:"",ref:t}}var bQ=e=>O1(e)&&!bR(e)?e:{value:e,message:""},bM=async(e,t,n,r,i)=>{let{ref:a,refs:o,required:s,maxLength:l,minLength:u,min:c,max:d,pattern:h,validate:p,name:f,valueAsNumber:m,mount:g,disabled:O}=e._f,b=O7(t,f);if(!g||O)return{};let y=o?o[0]:a,v=e=>{r&&y.reportValidity&&(y.setCustomValidity(b_(e)?"":e||""),y.reportValidity())},x={},T=bA(a),k=OX(a),_=(m||bS(a))&&O6(a.value)&&O6(b)||bE(a)&&""===a.value||""===b||Array.isArray(b)&&!b.length,S=bO.bind(null,f,n,x),w=(e,t,n,r=bn.maxLength,i=bn.minLength)=>{let o=e?t:n;x[f]={type:e?r:i,message:o,ref:a,...S(e?r:i,o)}};if(i?!Array.isArray(b)||!b.length:s&&(!(T||k)&&(_||OK(b))||b_(b)&&!b||k&&!bN(o).isValid||T&&!bL(o).isValid)){let{value:e,message:t}=bC(s)?{value:!!s,message:s}:bQ(s);if(e&&(x[f]={type:bn.required,message:t,ref:y,...S(bn.required,t)},!n))return v(t),x}if(!_&&(!OK(c)||!OK(d))){let e,t;let r=bQ(d),i=bQ(c);if(OK(b)||isNaN(b)){let n=a.valueAsDate||new Date(b),o=e=>new Date(new Date().toDateString()+" "+e),s="time"==a.type,l="week"==a.type;bd(r.value)&&b&&(e=s?o(b)>o(r.value):l?b>r.value:n>new Date(r.value)),bd(i.value)&&b&&(t=s?o(b)r.value),OK(i.value)||(t=n+e.value,i=!OK(t.value)&&b.length<+t.value;if((r||i)&&(w(r,e.message,t.message),!n))return v(x[f].message),x}if(h&&!_&&bd(b)){let{value:e,message:t}=bQ(h);if(bR(e)&&!b.match(e)&&(x[f]={type:bn.pattern,message:t,ref:a,...S(bn.pattern,t)},!n))return v(t),x}if(p){if(bw(p)){let e=await p(b,t),r=bD(e,y);if(r&&(x[f]={...r,...S(bn.validate,r.message)},!n))return v(r.message),x}else if(O1(p)){let e={};for(let r in p){if(!bo(e)&&!n)break;let i=bD(await p[r](b,t),y,r);i&&(e={...i,...S(r,i.message)},v(i.message),n&&(x[f]=e))}if(!bo(e)&&(x[f]={ref:y,...e},!n))return x}}return v(!0),x};function bF(e,t){return[...e,...bl(t)]}var bB=e=>Array.isArray(e)?e.map(()=>void 0):void 0;function bU(e,t,n){return[...e.slice(0,t),...bl(n),...e.slice(t)]}var bj=(e,t,n)=>Array.isArray(e)?(O6(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[];function bz(e,t){return[...bl(t),...bl(e)]}var bW=(e,t)=>O6(t)?[]:function(e,t){let n=0,r=[...e];for(let e of t)r.splice(e-n,1),n++;return O8(r).length?r:[]}(e,bl(t).sort((e,t)=>e-t)),bZ=(e,t,n)=>{e[t]=[e[n],e[n]=e[t]][0]},bq=(e,t,n)=>(e[t]=n,e);function bG(e){let t=bi(),{control:n=t.control,name:r,keyName:i="id",shouldUnregister:a}=e,[o,s]=U.useState(n._getFieldArray(r)),l=U.useRef(n._getFieldArray(r).map(by)),u=U.useRef(o),c=U.useRef(r),d=U.useRef(!1);c.current=r,u.current=o,n._names.array.add(r),e.rules&&n.register(r,e.rules),bc({next:({values:e,name:t})=>{if(t===c.current||!t){let t=O7(e,c.current);Array.isArray(t)&&(s(t),l.current=t.map(by))}},subject:n._subjects.array});let h=U.useCallback(e=>{d.current=!0,n._updateFieldArray(r,e)},[n,r]);return U.useEffect(()=>{if(n._state.action=!1,bT(r,n._names)&&n._subjects.state.next({...n._formState}),d.current&&(!bx(n._options.mode).isOnSubmit||n._formState.isSubmitted)){if(n._options.resolver)n._executeSchema([r]).then(e=>{let t=O7(e.errors,r),i=O7(n._formState.errors,r);(i?!t&&i.type||t&&(i.type!==t.type||i.message!==t.message):t&&t.type)&&(t?bm(n._formState.errors,r,t):function e(t,n){let r=Array.isArray(n)?n:bp(n)?[n]:bf(n),i=1===r.length?t:function(e,t){let n=t.slice(0,-1).length,r=0;for(;r!bo(e)&&n._subjects.state.next({errors:bk(n._formState.errors,e,r)}))}}n._subjects.values.next({name:r,values:{...n._formValues}}),n._names.focus&&bb(n._fields,e=>!!e&&e.startsWith(n._names.focus||"")),n._names.focus="",n._updateValid()},[o,r,n]),U.useEffect(()=>(O7(n._formValues,r)||n._updateFieldArray(r),()=>{(n._options.shouldUnregister||a)&&n.unregister(r)}),[r,n,i,a]),{swap:U.useCallback((e,t)=>{let i=n._getFieldArray(r);bZ(i,e,t),bZ(l.current,e,t),h(i),s(i),n._updateFieldArray(r,i,bZ,{argA:e,argB:t},!1)},[h,r,n]),move:U.useCallback((e,t)=>{let i=n._getFieldArray(r);bj(i,e,t),bj(l.current,e,t),h(i),s(i),n._updateFieldArray(r,i,bj,{argA:e,argB:t},!1)},[h,r,n]),prepend:U.useCallback((e,t)=>{let i=bl(O3(e)),a=bz(n._getFieldArray(r),i);n._names.focus=bv(r,0,t),l.current=bz(l.current,i.map(by)),h(a),s(a),n._updateFieldArray(r,a,bz,{argA:bB(e)})},[h,r,n]),append:U.useCallback((e,t)=>{let i=bl(O3(e)),a=bF(n._getFieldArray(r),i);n._names.focus=bv(r,a.length-1,t),l.current=bF(l.current,i.map(by)),h(a),s(a),n._updateFieldArray(r,a,bF,{argA:bB(e)})},[h,r,n]),remove:U.useCallback(e=>{let t=bW(n._getFieldArray(r),e);l.current=bW(l.current,e),h(t),s(t),n._updateFieldArray(r,t,bW,{argA:e})},[h,r,n]),insert:U.useCallback((e,t,i)=>{let a=bl(O3(t)),o=bU(n._getFieldArray(r),e,a);n._names.focus=bv(r,e,i),l.current=bU(l.current,e,a.map(by)),h(o),s(o),n._updateFieldArray(r,o,bU,{argA:e,argB:bB(t)})},[h,r,n]),update:U.useCallback((e,t)=>{let i=O3(t),a=bq(n._getFieldArray(r),e,i);l.current=[...a].map((t,n)=>t&&n!==e?l.current[n]:by()),h(a),s([...a]),n._updateFieldArray(r,a,bq,{argA:e,argB:i},!0,!1)},[h,r,n]),replace:U.useCallback(e=>{let t=bl(O3(e));l.current=t.map(by),h([...t]),s([...t]),n._updateFieldArray(r,[...t],e=>e,{},!0,!1)},[h,r,n]),fields:U.useMemo(()=>o.map((e,t)=>({...e,[i]:l.current[t]||by()})),[o,i])}}bt.onSubmit,bt.onChange;var bH=n(48738),bY=n(12013);let bX={basename:function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');bV(e);let r=0,i=-1,a=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;a--;)if(47===e.charCodeAt(a)){if(n){r=a+1;break}}else i<0&&(n=!0,i=a+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let o=-1,s=t.length-1;for(;a--;)if(47===e.charCodeAt(a)){if(n){r=a+1;break}}else o<0&&(n=!0,o=a+1),s>-1&&(e.charCodeAt(a)===t.charCodeAt(s--)?s<0&&(i=a):(s=-1,i=o));return r===i?i=o:i<0&&(i=e.length),e.slice(r,i)},dirname:function(e){let t;if(bV(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.charCodeAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.charCodeAt(0)?"/":".":1===n&&47===e.charCodeAt(0)?"//":e.slice(0,n)},extname:function(e){let t;bV(e);let n=e.length,r=-1,i=0,a=-1,o=0;for(;n--;){let s=e.charCodeAt(n);if(47===s){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===s?a<0?a=n:1!==o&&(o=1):a>-1&&(o=-1)}return a<0||r<0||0===o||1===o&&a===r-1&&a===i+1?"":e.slice(a,r)},join:function(...e){let t,n=-1;for(;++n2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",a=0):a=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),o=l,s=0;continue}}else if(i.length>0){i="",a=0,o=l,s=0;continue}}t&&(i=i.length>0?i+"/..":"..",a=2)}else i.length>0?i+="/"+e.slice(o+1,l):i=e.slice(o+1,l),a=l-o-1;o=l,s=0}else 46===n&&s>-1?s++:s=-1}return i}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.charCodeAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},sep:"/"};function bV(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}let bK={cwd:function(){return"/"}};function bJ(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}let b1=["history","path","basename","stem","extname","dirname"];class b0{constructor(e){let t,n;t=e?"string"==typeof e||bH(e)?{value:e}:bJ(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd=bK.cwd(),this.value,this.stored,this.result,this.map;let r=-1;for(;++r"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),yO=ym({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function yb(e,t){return t in e?e[t]:t}function yy(e,t){return yb(e,t.toLowerCase())}let yv=ym({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:yy,properties:{xmlns:null,xmlnsXLink:null}}),yx=ym({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:ya,ariaAutoComplete:null,ariaBusy:ya,ariaChecked:ya,ariaColCount:ys,ariaColIndex:ys,ariaColSpan:ys,ariaControls:yl,ariaCurrent:null,ariaDescribedBy:yl,ariaDetails:null,ariaDisabled:ya,ariaDropEffect:yl,ariaErrorMessage:null,ariaExpanded:ya,ariaFlowTo:yl,ariaGrabbed:ya,ariaHasPopup:null,ariaHidden:ya,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:yl,ariaLevel:ys,ariaLive:null,ariaModal:ya,ariaMultiLine:ya,ariaMultiSelectable:ya,ariaOrientation:null,ariaOwns:yl,ariaPlaceholder:null,ariaPosInSet:ys,ariaPressed:ya,ariaReadOnly:ya,ariaRelevant:null,ariaRequired:ya,ariaRoleDescription:yl,ariaRowCount:ys,ariaRowIndex:ys,ariaRowSpan:ys,ariaSelected:ya,ariaSetSize:ys,ariaSort:null,ariaValueMax:ys,ariaValueMin:ys,ariaValueNow:ys,ariaValueText:null,role:null}}),yT=ym({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:yy,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:yu,acceptCharset:yl,accessKey:yl,action:null,allow:null,allowFullScreen:yi,allowPaymentRequest:yi,allowUserMedia:yi,alt:null,as:null,async:yi,autoCapitalize:null,autoComplete:yl,autoFocus:yi,autoPlay:yi,blocking:yl,capture:null,charSet:null,checked:yi,cite:null,className:yl,cols:ys,colSpan:null,content:null,contentEditable:ya,controls:yi,controlsList:yl,coords:ys|yu,crossOrigin:null,data:null,dateTime:null,decoding:null,default:yi,defer:yi,dir:null,dirName:null,disabled:yi,download:yo,draggable:ya,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:yi,formTarget:null,headers:yl,height:ys,hidden:yi,high:ys,href:null,hrefLang:null,htmlFor:yl,httpEquiv:yl,id:null,imageSizes:null,imageSrcSet:null,inert:yi,inputMode:null,integrity:null,is:null,isMap:yi,itemId:null,itemProp:yl,itemRef:yl,itemScope:yi,itemType:yl,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:yi,low:ys,manifest:null,max:null,maxLength:ys,media:null,method:null,min:null,minLength:ys,multiple:yi,muted:yi,name:null,nonce:null,noModule:yi,noValidate:yi,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:yi,optimum:ys,pattern:null,ping:yl,placeholder:null,playsInline:yi,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:yi,referrerPolicy:null,rel:yl,required:yi,reversed:yi,rows:ys,rowSpan:ys,sandbox:yl,scope:null,scoped:yi,seamless:yi,selected:yi,shadowRootDelegatesFocus:yi,shadowRootMode:null,shape:null,size:ys,sizes:null,slot:null,span:ys,spellCheck:ya,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ys,step:null,style:null,tabIndex:ys,target:null,title:null,translate:null,type:null,typeMustMatch:yi,useMap:null,value:ya,width:ys,wrap:null,align:null,aLink:null,archive:yl,axis:null,background:null,bgColor:null,border:ys,borderColor:null,bottomMargin:ys,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:yi,declare:yi,event:null,face:null,frame:null,frameBorder:null,hSpace:ys,leftMargin:ys,link:null,longDesc:null,lowSrc:null,marginHeight:ys,marginWidth:ys,noResize:yi,noHref:yi,noShade:yi,noWrap:yi,object:null,profile:null,prompt:null,rev:null,rightMargin:ys,rules:null,scheme:null,scrolling:ya,standby:null,summary:null,text:null,topMargin:ys,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ys,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:yi,disableRemotePlayback:yi,prefix:null,property:null,results:ys,security:null,unselectable:null}}),yk=ym({space:"svg",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"},transform:yb,properties:{about:yc,accentHeight:ys,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ys,amplitude:ys,arabicForm:null,ascent:ys,attributeName:null,attributeType:null,azimuth:ys,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ys,by:null,calcMode:null,capHeight:ys,className:yl,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:ys,diffuseConstant:ys,direction:null,display:null,dur:null,divisor:ys,dominantBaseline:null,download:yi,dx:null,dy:null,edgeMode:null,editable:null,elevation:ys,enableBackground:null,end:null,event:null,exponent:ys,externalResourcesRequired:null,fill:null,fillOpacity:ys,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:yu,g2:yu,glyphName:yu,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ys,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ys,horizOriginX:ys,horizOriginY:ys,id:null,ideographic:ys,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ys,k:ys,k1:ys,k2:ys,k3:ys,k4:ys,kernelMatrix:yc,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ys,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:ys,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:ys,overlineThickness:ys,paintOrder:null,panose1:null,path:null,pathLength:ys,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:yl,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ys,pointsAtY:ys,pointsAtZ:ys,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:yc,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:yc,rev:yc,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:yc,requiredFeatures:yc,requiredFonts:yc,requiredFormats:yc,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:ys,specularExponent:ys,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ys,strikethroughThickness:ys,string:null,stroke:null,strokeDashArray:yc,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ys,strokeOpacity:ys,strokeWidth:null,style:null,surfaceScale:ys,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:yc,tabIndex:ys,tableValues:null,target:null,targetX:ys,targetY:ys,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:yc,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ys,underlineThickness:ys,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ys,values:null,vAlphabetic:ys,vMathematical:ys,vectorEffect:null,vHanging:ys,vIdeographic:ys,version:null,vertAdvY:ys,vertOriginX:ys,vertOriginY:ys,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ys,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),y_=ye([yO,yg,yv,yx,yT],"html"),yS=ye([yO,yg,yv,yx,yk],"svg");var yw=n(20557);let yE=function(e,t,n,r){"function"==typeof t&&"function"!=typeof n&&(r=n,n=t,t=null),(0,yw.S4)(e,t,function(e,t){let r=t[t.length-1];return n(e,r?r.children.indexOf(e):null,r)},r)};function yC(e){if(e.allowedElements&&e.disallowedElements)throw TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return t=>{yE(t,"element",(t,n,r)=>{let i;if(e.allowedElements?i=!e.allowedElements.includes(t.tagName):e.disallowedElements&&(i=e.disallowedElements.includes(t.tagName)),!i&&e.allowElement&&"number"==typeof n&&(i=!e.allowElement(t,n,r)),i&&"number"==typeof n)return e.unwrapDisallowed&&t.children?r.children.splice(n,1,...t.children):r.children.splice(n,1),n})}}var yA=n(97267),yR=n(27490);let yP=/^data[-\w.:]+$/i,yI=/-[a-z]/g,yN=/[A-Z]/g;function y$(e){return"-"+e.toLowerCase()}function yL(e){return e.charAt(1).toUpperCase()}let yD={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"};var yQ=n(94827);let yM=["http","https","mailto","tel"];function yF(e){let t=(e||"").trim(),n=t.charAt(0);if("#"===n||"/"===n)return t;let r=t.indexOf(":");if(-1===r)return t;let i=-1;for(;++ii||-1!==(i=t.indexOf("#"))&&r>i?t:"javascript:void(0)"}let yB={}.hasOwnProperty,yU=new Set(["table","thead","tbody","tfoot","tr"]);function yj(e,t){let n=-1,r=0;for(;++n for more info)`),delete yZ[t]}let t=(0,b4.l)().use(b3.Z).use(e.remarkPlugins||[]).use(b8.Z,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(yC,e),n=new b0;"string"==typeof e.children?n.value=e.children:void 0!==e.children&&null!==e.children&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);let r=t.runSync(t.parse(n),n);if("root"!==r.type)throw TypeError("Expected a `root` node");let i=U.createElement(U.Fragment,{},function e(t,n){let r;let i=[],a=-1;for(;++a4&&"data"===n.slice(0,4)&&yP.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(yI,yL);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!yI.test(e)){let n=e.replace(yN,y$);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=yp}return new i(r,t)}(r.schema,t),a=n;null!=a&&a==a&&(Array.isArray(a)&&(a=i.commaSeparated?function(e,t){let n={},r=""===e[e.length-1]?[...e,""]:e;return r.join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(a):a.join(" ").trim()),"style"===i.property&&"string"==typeof a&&(a=function(e){let t={};try{yQ(e,function(e,n){let r="-ms-"===e.slice(0,4)?`ms-${e.slice(4)}`:e;t[r.replace(/-([a-z])/g,yz)]=n})}catch{}return t}(a)),i.space&&i.property?e[yB.call(yD,i.property)?yD[i.property]:i.property]=a:i.attribute&&(e[i.attribute]=a))}(c,a,n.properties[a],t);("ol"===u||"ul"===u)&&t.listDepth++;let h=e(t,n);("ol"===u||"ul"===u)&&t.listDepth--,t.schema=l;let p=n.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},f=o.components&&yB.call(o.components,u)?o.components[u]:u,m="string"==typeof f||f===U.Fragment;if(!yA.isValidElementType(f))throw TypeError(`Component for name \`${u}\` not defined or is not renderable`);if(c.key=r,"a"===u&&o.linkTarget&&(c.target="function"==typeof o.linkTarget?o.linkTarget(String(c.href||""),n.children,"string"==typeof c.title?c.title:null):o.linkTarget),"a"===u&&s&&(c.href=s(String(c.href||""),n.children,"string"==typeof c.title?c.title:null)),m||"code"!==u||"element"!==i.type||"pre"===i.tagName||(c.inline=!0),m||"h1"!==u&&"h2"!==u&&"h3"!==u&&"h4"!==u&&"h5"!==u&&"h6"!==u||(c.level=Number.parseInt(u.charAt(1),10)),"img"===u&&o.transformImageUri&&(c.src=o.transformImageUri(String(c.src||""),String(c.alt||""),"string"==typeof c.title?c.title:null)),!m&&"li"===u&&"element"===i.type){let e=function(e){let t=-1;for(;++t0?U.createElement(f,c,h):U.createElement(f,c)}(t,r,a,n)):"text"===r.type?"element"===n.type&&yU.has(n.tagName)&&(0,yR.Q)(r)||i.push(r.value):"raw"!==r.type||t.options.skipHtml||i.push(r.value);return i}({options:e,schema:y_,listDepth:0},r));return e.className&&(i=U.createElement("div",{className:e.className},i)),i}yq.propTypes={children:b6.string,className:b6.string,allowElement:b6.func,allowedElements:b6.arrayOf(b6.string),disallowedElements:b6.arrayOf(b6.string),unwrapDisallowed:b6.bool,remarkPlugins:b6.arrayOf(b6.oneOfType([b6.object,b6.func,b6.arrayOf(b6.oneOfType([b6.bool,b6.string,b6.object,b6.func,b6.arrayOf(b6.any)]))])),rehypePlugins:b6.arrayOf(b6.oneOfType([b6.object,b6.func,b6.arrayOf(b6.oneOfType([b6.bool,b6.string,b6.object,b6.func,b6.arrayOf(b6.any)]))])),sourcePos:b6.bool,rawSourcePos:b6.bool,skipHtml:b6.bool,includeElementIndex:b6.bool,transformLinkUri:b6.oneOfType([b6.func,b6.bool]),linkTarget:b6.oneOfType([b6.func,b6.string]),transformImageUri:b6.func,components:b6.object};var yG=n(4663),yH=n(75364);let yY={tokenize:function(e,t,n){let r=0;return function t(a){return(87===a||119===a)&&r<3?(r++,e.consume(a),t):46===a&&3===r?(e.consume(a),i):n(a)};function i(e){return null===e?n(e):t(e)}},partial:!0},yX={tokenize:function(e,t,n){let r,i,a;return o;function o(t){return 46===t||95===t?e.check(yK,l,s)(t):null===t||(0,yH.z3)(t)||(0,yH.B8)(t)||45!==t&&(0,yH.Xh)(t)?l(t):(a=!0,e.consume(t),o)}function s(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),o}function l(e){return i||r||!a?n(e):t(e)}},partial:!0},yV={tokenize:function(e,t){let n=0,r=0;return i;function i(o){return 40===o?(n++,e.consume(o),i):41===o&&r0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}y5[43]=y2,y5[45]=y2,y5[46]=y2,y5[95]=y2,y5[72]=[y2,y0],y5[104]=[y2,y0],y5[87]=[y2,y1],y5[119]=[y2,y1];var vt=n(61706),vn=n(21905),vr=n(62987),vi=n(63233),va=n(42761);class vo{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let i=0;if(0!==n||0!==r.length){for(;ie[0]-t[0]),0===this.map.length)return;let t=this.map.length,n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1])),n.push(this.map[t][2]),e.length=this.map[t][0];n.push([...e]),e.length=0;let r=n.pop();for(;r;)e.push(...r),r=n.pop();this.map.length=0}}let vs={flow:{null:{tokenize:function(e,t,n){let r;let i=this,a=0,o=0;return function(e){let t=i.events.length-1;for(;t>-1;){let e=i.events[t][1].type;if("lineEnding"===e||"linePrefix"===e)t--;else break}let r=t>-1?i.events[t][1].type:null,a="tableHead"===r||"tableRow"===r?b:s;return a===b&&i.parser.lazy[i.now().line]?n(e):a(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),124===t||(r=!0,o+=1),l(t)}function l(t){return null===t?n(t):(0,yH.Ch)(t)?o>1?(o=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):(0,yH.xz)(t)?(0,va.f)(e,l,"whitespace")(t):(o+=1,r&&(r=!1,a+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,l):(e.enter("data"),u(t))}function u(t){return null===t||124===t||(0,yH.z3)(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?c:u)}function c(t){return 92===t||124===t?(e.consume(t),u):u(t)}function d(t){return(i.interrupt=!1,i.parser.lazy[i.now().line])?n(t):(e.enter("tableDelimiterRow"),r=!1,(0,yH.xz)(t))?(0,va.f)(e,h,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):h(t)}function h(t){return 45===t||58===t?f(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):n(t)}function p(t){return(0,yH.xz)(t)?(0,va.f)(e,f,"whitespace")(t):f(t)}function f(t){return 58===t?(o+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(o+=1,m(t)):null===t||(0,yH.Ch)(t)?O(t):n(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(n){return 45===n?(e.consume(n),t):58===n?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),g):(e.exit("tableDelimiterFiller"),g(n))}(t)):n(t)}function g(t){return(0,yH.xz)(t)?(0,va.f)(e,O,"whitespace")(t):O(t)}function O(i){return 124===i?h(i):null===i||(0,yH.Ch)(i)?r&&a===o?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(i)):n(i):n(i)}function b(t){return e.enter("tableRow"),y(t)}function y(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),y):null===n||(0,yH.Ch)(n)?(e.exit("tableRow"),t(n)):(0,yH.xz)(n)?(0,va.f)(e,y,"whitespace")(n):(e.enter("data"),v(n))}function v(t){return null===t||124===t||(0,yH.z3)(t)?(e.exit("data"),y(t)):(e.consume(t),92===t?x:v)}function x(t){return 92===t||124===t?(e.consume(t),v):v(t)}},resolveAll:function(e,t){let n,r,i,a=-1,o=!0,s=0,l=[0,0,0,0],u=[0,0,0,0],c=!1,d=0,h=new vo;for(;++an[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",o,t]])}return void 0!==i&&(a.end=Object.assign({},vc(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function vu(e,t,n,r,i){let a=[],o=vc(t.events,n);i&&(i.end=Object.assign({},o),a.push(["exit",i,t])),r.end=Object.assign({},o),a.push(["exit",r,t]),e.add(n+1,0,a)}function vc(e,t){let n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}let vd={text:{91:{tokenize:function(e,t,n){let r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):n(t)};function i(t){return(0,yH.z3)(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),a):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),a):n(t)}function a(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(t)}function o(r){return(0,yH.Ch)(r)?t(r):(0,yH.xz)(r)?e.check({tokenize:vh},t,n)(r):n(r)}}}}};function vh(e,t,n){return(0,va.f)(e,function(e){return null===e?n(e):t(e)},"whitespace")}var vp=n(64777),vf=n(96093);let vm={}.hasOwnProperty,vg=function(e,t,n,r){let i,a;"string"==typeof t||t instanceof RegExp?(a=[[t,n]],i=r):(a=t,i=n),i||(i={});let o=(0,vf.O)(i.ignore||[]),s=function(e){let t=[];if("object"!=typeof e)throw TypeError("Expected array or object as schema");if(Array.isArray(e)){let n=-1;for(;++n0?{type:"text",value:s}:void 0),!1!==s&&(a!==n&&c.push({type:"text",value:e.value.slice(a,n)}),Array.isArray(s)?c.push(...s):s&&c.push(s),a=n+d[0].length,u=!0),!r.global)break;d=r.exec(e.value)}return u?(ae}let vy="phrasing",vv=["autolink","link","image","label"],vx={transforms:[function(e){vg(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,v_],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,vS]],{ignore:["link","linkReference"]})}],enter:{literalAutolink:function(e){this.enter({type:"link",title:null,url:"",children:[]},e)},literalAutolinkEmail:vk,literalAutolinkHttp:vk,literalAutolinkWww:vk},exit:{literalAutolink:function(e){this.exit(e)},literalAutolinkEmail:function(e){this.config.exit.autolinkEmail.call(this,e)},literalAutolinkHttp:function(e){this.config.exit.autolinkProtocol.call(this,e)},literalAutolinkWww:function(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}}},vT={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:vy,notInConstruct:vv},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:vy,notInConstruct:vv},{character:":",before:"[ps]",after:"\\/",inConstruct:vy,notInConstruct:vv}]};function vk(e){this.config.enter.autolinkProtocol.call(this,e)}function v_(e,t,n,r,i){let a="";if(!vw(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!function(e){let 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])))}(n)))return!1;let o=function(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")"),i=(0,vp.w)(e,"("),a=(0,vp.w)(e,")");for(;-1!==r&&i>a;)e+=n.slice(0,r+1),r=(n=n.slice(r+1)).indexOf(")"),a++;return[e,n]}(n+r);if(!o[0])return!1;let s={type:"link",title:null,url:a+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function vS(e,t,n,r){return!(!vw(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function vw(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||(0,yH.B8)(n)||(0,yH.Xh)(n))&&(!t||47!==n)}var vE=n(65298),vC=n(87891),vA=n(48653);vI.peek=function(){return"~"};let vR={canContainEols:["delete"],enter:{strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},exit:{strikethrough:function(e){this.exit(e)}}},vP={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"]}],handlers:{delete:vI}};function vI(e,t,n,r){let i=(0,vA.j)(r),a=n.enter("strikethrough"),o=i.move("~~");return o+=(0,vC.p)(e,n,{...i.current(),before:o,after:"~"})+i.move("~~"),a(),o}var vN=n(42513);function v$(e){return e.length}function vL(e){let t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}let vD={enter:{table:function(e){let t=e._align;this.enter({type:"table",align:t.map(e=>"none"===e?null:e),children:[]},e),this.setData("inTable",!0)},tableData:vM,tableHeader:vM,tableRow:function(e){this.enter({type:"tableRow",children:[]},e)}},exit:{codeText:function(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,vF));let n=this.stack[this.stack.length-1];n.value=t,this.exit(e)},table:function(e){this.exit(e),this.setData("inTable")},tableData:vQ,tableHeader:vQ,tableRow:vQ}};function vQ(e){this.exit(e)}function vM(e){this.enter({type:"tableCell",children:[]},e)}function vF(e,t){return"|"===t?t:e}var vB=n(72937);let vU={exit:{taskListCheckValueChecked:vz,taskListCheckValueUnchecked:vz,paragraph:function(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1],n=e.children[0];if(n&&"text"===n.type){let r;let i=t.children,a=-1;for(;++a1?r(s):(e.consume(s),o++,a);if(o<2&&!t)return r(s);let u=e.exit("strikethroughSequenceTemporary"),c=(0,vr.r)(s);return u._open=!c||2===c&&!!l,u._close=!l||2===l&&!!c,n(s)}(s))}},resolveAll:function(e,t){let n=-1;for(;++nl&&(l=e[u].length);++ds[d])&&(s[d]=e)}n.push(a)}a[u]=n,o[u]=i}let d=-1;if("object"==typeof n&&"length"in n)for(;++ds[d]&&(s[d]=a),p[d]=a),h[d]=o}a.splice(1,0,h),o.splice(1,0,p),u=-1;let f=[];for(;++u"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),xn=xe({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function xr(e,t){return t in e?e[t]:t}function xi(e,t){return xr(e,t.toLowerCase())}let xa=xe({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:xi,properties:{xmlns:null,xmlnsXLink:null}}),xo=xe({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:v1,ariaAutoComplete:null,ariaBusy:v1,ariaChecked:v1,ariaColCount:v2,ariaColIndex:v2,ariaColSpan:v2,ariaControls:v5,ariaCurrent:null,ariaDescribedBy:v5,ariaDetails:null,ariaDisabled:v1,ariaDropEffect:v5,ariaErrorMessage:null,ariaExpanded:v1,ariaFlowTo:v5,ariaGrabbed:v1,ariaHasPopup:null,ariaHidden:v1,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:v5,ariaLevel:v2,ariaLive:null,ariaModal:v1,ariaMultiLine:v1,ariaMultiSelectable:v1,ariaOrientation:null,ariaOwns:v5,ariaPlaceholder:null,ariaPosInSet:v2,ariaPressed:v1,ariaReadOnly:v1,ariaRelevant:null,ariaRequired:v1,ariaRoleDescription:v5,ariaRowCount:v2,ariaRowIndex:v2,ariaRowSpan:v2,ariaSelected:v1,ariaSetSize:v2,ariaSort:null,ariaValueMax:v2,ariaValueMin:v2,ariaValueNow:v2,ariaValueText:null,role:null}}),xs=xe({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:xi,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:v9,acceptCharset:v5,accessKey:v5,action:null,allow:null,allowFullScreen:vJ,allowPaymentRequest:vJ,allowUserMedia:vJ,alt:null,as:null,async:vJ,autoCapitalize:null,autoComplete:v5,autoFocus:vJ,autoPlay:vJ,blocking:v5,capture:null,charSet:null,checked:vJ,cite:null,className:v5,cols:v2,colSpan:null,content:null,contentEditable:v1,controls:vJ,controlsList:v5,coords:v2|v9,crossOrigin:null,data:null,dateTime:null,decoding:null,default:vJ,defer:vJ,dir:null,dirName:null,disabled:vJ,download:v0,draggable:v1,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:vJ,formTarget:null,headers:v5,height:v2,hidden:vJ,high:v2,href:null,hrefLang:null,htmlFor:v5,httpEquiv:v5,id:null,imageSizes:null,imageSrcSet:null,inert:vJ,inputMode:null,integrity:null,is:null,isMap:vJ,itemId:null,itemProp:v5,itemRef:v5,itemScope:vJ,itemType:v5,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:vJ,low:v2,manifest:null,max:null,maxLength:v2,media:null,method:null,min:null,minLength:v2,multiple:vJ,muted:vJ,name:null,nonce:null,noModule:vJ,noValidate:vJ,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:vJ,optimum:v2,pattern:null,ping:v5,placeholder:null,playsInline:vJ,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:vJ,referrerPolicy:null,rel:v5,required:vJ,reversed:vJ,rows:v2,rowSpan:v2,sandbox:v5,scope:null,scoped:vJ,seamless:vJ,selected:vJ,shadowRootDelegatesFocus:vJ,shadowRootMode:null,shape:null,size:v2,sizes:null,slot:null,span:v2,spellCheck:v1,src:null,srcDoc:null,srcLang:null,srcSet:null,start:v2,step:null,style:null,tabIndex:v2,target:null,title:null,translate:null,type:null,typeMustMatch:vJ,useMap:null,value:v1,width:v2,wrap:null,align:null,aLink:null,archive:v5,axis:null,background:null,bgColor:null,border:v2,borderColor:null,bottomMargin:v2,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:vJ,declare:vJ,event:null,face:null,frame:null,frameBorder:null,hSpace:v2,leftMargin:v2,link:null,longDesc:null,lowSrc:null,marginHeight:v2,marginWidth:v2,noResize:vJ,noHref:vJ,noShade:vJ,noWrap:vJ,object:null,profile:null,prompt:null,rev:null,rightMargin:v2,rules:null,scheme:null,scrolling:v1,standby:null,summary:null,text:null,topMargin:v2,valueType:null,version:null,vAlign:null,vLink:null,vSpace:v2,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:vJ,disableRemotePlayback:vJ,prefix:null,property:null,results:v2,security:null,unselectable:null}}),xl=xe({space:"svg",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"},transform:xr,properties:{about:v4,accentHeight:v2,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:v2,amplitude:v2,arabicForm:null,ascent:v2,attributeName:null,attributeType:null,azimuth:v2,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:v2,by:null,calcMode:null,capHeight:v2,className:v5,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:v2,diffuseConstant:v2,direction:null,display:null,dur:null,divisor:v2,dominantBaseline:null,download:vJ,dx:null,dy:null,edgeMode:null,editable:null,elevation:v2,enableBackground:null,end:null,event:null,exponent:v2,externalResourcesRequired:null,fill:null,fillOpacity:v2,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:v9,g2:v9,glyphName:v9,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:v2,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:v2,horizOriginX:v2,horizOriginY:v2,id:null,ideographic:v2,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:v2,k:v2,k1:v2,k2:v2,k3:v2,k4:v2,kernelMatrix:v4,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:v2,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:v2,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:v2,overlineThickness:v2,paintOrder:null,panose1:null,path:null,pathLength:v2,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:v5,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:v2,pointsAtY:v2,pointsAtZ:v2,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:v4,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:v4,rev:v4,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:v4,requiredFeatures:v4,requiredFonts:v4,requiredFormats:v4,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:v2,specularExponent:v2,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:v2,strikethroughThickness:v2,string:null,stroke:null,strokeDashArray:v4,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:v2,strokeOpacity:v2,strokeWidth:null,style:null,surfaceScale:v2,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:v4,tabIndex:v2,tableValues:null,target:null,targetX:v2,targetY:v2,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:v4,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:v2,underlineThickness:v2,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:v2,values:null,vAlphabetic:v2,vMathematical:v2,vectorEffect:null,vHanging:v2,vIdeographic:v2,version:null,vertAdvY:v2,vertOriginX:v2,vertOriginY:v2,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:v2,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),xu=vY([xn,xt,xa,xo,xs],"html"),xc=vY([xn,xt,xa,xo,xl],"svg"),xd=/^data[-\w.:]+$/i,xh=/-[a-z]/g,xp=/[A-Z]/g;function xf(e,t){let n=vX(t),r=t,i=vV;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&xd.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(xh,xg);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!xh.test(e)){let n=e.replace(xp,xm);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=v6}return new i(r,t)}function xm(e){return"-"+e.toLowerCase()}function xg(e){return e.charAt(1).toUpperCase()}let xO=/[#.]/g;function xb(e){let t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function xy(e){let t=[],n=String(e||""),r=n.indexOf(","),i=0,a=!1;for(;!a;){-1===r&&(r=n.length,a=!0);let e=n.slice(i,r).trim();(e||!a)&&t.push(e),i=r+1,r=n.indexOf(",",i)}return t}let xv=new Set(["menu","submit","reset","button"]),xx={}.hasOwnProperty;function xT(e,t,n){let r=n&&function(e){let t={},n=-1;for(;++n-1&&ee)return{line:t+1,column:e-(t>0?n[t-1]:0)+1,offset:e}}return{line:void 0,column:void 0,offset:void 0}},toOffset:function(e){let t=e&&e.line,r=e&&e.column;if("number"==typeof t&&"number"==typeof r&&!Number.isNaN(t)&&!Number.isNaN(r)&&t-1 in n){let e=(n[t-2]||0)+r-1||0;if(e>-1&&e"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),xK=xX({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function xJ(e,t){return t in e?e[t]:t}function x1(e,t){return xJ(e,t.toLowerCase())}let x0=xX({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:x1,properties:{xmlns:null,xmlnsXLink:null}}),x2=xX({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:xB,ariaAutoComplete:null,ariaBusy:xB,ariaChecked:xB,ariaColCount:xj,ariaColIndex:xj,ariaColSpan:xj,ariaControls:xz,ariaCurrent:null,ariaDescribedBy:xz,ariaDetails:null,ariaDisabled:xB,ariaDropEffect:xz,ariaErrorMessage:null,ariaExpanded:xB,ariaFlowTo:xz,ariaGrabbed:xB,ariaHasPopup:null,ariaHidden:xB,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:xz,ariaLevel:xj,ariaLive:null,ariaModal:xB,ariaMultiLine:xB,ariaMultiSelectable:xB,ariaOrientation:null,ariaOwns:xz,ariaPlaceholder:null,ariaPosInSet:xj,ariaPressed:xB,ariaReadOnly:xB,ariaRelevant:null,ariaRequired:xB,ariaRoleDescription:xz,ariaRowCount:xj,ariaRowIndex:xj,ariaRowSpan:xj,ariaSelected:xB,ariaSetSize:xj,ariaSort:null,ariaValueMax:xj,ariaValueMin:xj,ariaValueNow:xj,ariaValueText:null,role:null}}),x5=xX({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:x1,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:xW,acceptCharset:xz,accessKey:xz,action:null,allow:null,allowFullScreen:xF,allowPaymentRequest:xF,allowUserMedia:xF,alt:null,as:null,async:xF,autoCapitalize:null,autoComplete:xz,autoFocus:xF,autoPlay:xF,blocking:xz,capture:null,charSet:null,checked:xF,cite:null,className:xz,cols:xj,colSpan:null,content:null,contentEditable:xB,controls:xF,controlsList:xz,coords:xj|xW,crossOrigin:null,data:null,dateTime:null,decoding:null,default:xF,defer:xF,dir:null,dirName:null,disabled:xF,download:xU,draggable:xB,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:xF,formTarget:null,headers:xz,height:xj,hidden:xF,high:xj,href:null,hrefLang:null,htmlFor:xz,httpEquiv:xz,id:null,imageSizes:null,imageSrcSet:null,inert:xF,inputMode:null,integrity:null,is:null,isMap:xF,itemId:null,itemProp:xz,itemRef:xz,itemScope:xF,itemType:xz,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:xF,low:xj,manifest:null,max:null,maxLength:xj,media:null,method:null,min:null,minLength:xj,multiple:xF,muted:xF,name:null,nonce:null,noModule:xF,noValidate:xF,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:xF,optimum:xj,pattern:null,ping:xz,placeholder:null,playsInline:xF,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:xF,referrerPolicy:null,rel:xz,required:xF,reversed:xF,rows:xj,rowSpan:xj,sandbox:xz,scope:null,scoped:xF,seamless:xF,selected:xF,shadowRootDelegatesFocus:xF,shadowRootMode:null,shape:null,size:xj,sizes:null,slot:null,span:xj,spellCheck:xB,src:null,srcDoc:null,srcLang:null,srcSet:null,start:xj,step:null,style:null,tabIndex:xj,target:null,title:null,translate:null,type:null,typeMustMatch:xF,useMap:null,value:xB,width:xj,wrap:null,align:null,aLink:null,archive:xz,axis:null,background:null,bgColor:null,border:xj,borderColor:null,bottomMargin:xj,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:xF,declare:xF,event:null,face:null,frame:null,frameBorder:null,hSpace:xj,leftMargin:xj,link:null,longDesc:null,lowSrc:null,marginHeight:xj,marginWidth:xj,noResize:xF,noHref:xF,noShade:xF,noWrap:xF,object:null,profile:null,prompt:null,rev:null,rightMargin:xj,rules:null,scheme:null,scrolling:xB,standby:null,summary:null,text:null,topMargin:xj,valueType:null,version:null,vAlign:null,vLink:null,vSpace:xj,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:xF,disableRemotePlayback:xF,prefix:null,property:null,results:xj,security:null,unselectable:null}}),x9=xX({space:"svg",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"},transform:xJ,properties:{about:xZ,accentHeight:xj,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:xj,amplitude:xj,arabicForm:null,ascent:xj,attributeName:null,attributeType:null,azimuth:xj,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:xj,by:null,calcMode:null,capHeight:xj,className:xz,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:xj,diffuseConstant:xj,direction:null,display:null,dur:null,divisor:xj,dominantBaseline:null,download:xF,dx:null,dy:null,edgeMode:null,editable:null,elevation:xj,enableBackground:null,end:null,event:null,exponent:xj,externalResourcesRequired:null,fill:null,fillOpacity:xj,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:xW,g2:xW,glyphName:xW,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:xj,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:xj,horizOriginX:xj,horizOriginY:xj,id:null,ideographic:xj,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:xj,k:xj,k1:xj,k2:xj,k3:xj,k4:xj,kernelMatrix:xZ,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:xj,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:xj,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:xj,overlineThickness:xj,paintOrder:null,panose1:null,path:null,pathLength:xj,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:xz,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:xj,pointsAtY:xj,pointsAtZ:xj,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:xZ,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:xZ,rev:xZ,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:xZ,requiredFeatures:xZ,requiredFonts:xZ,requiredFormats:xZ,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:xj,specularExponent:xj,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:xj,strikethroughThickness:xj,string:null,stroke:null,strokeDashArray:xZ,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:xj,strokeOpacity:xj,strokeWidth:null,style:null,surfaceScale:xj,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:xZ,tabIndex:xj,tableValues:null,target:null,targetX:xj,targetY:xj,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:xZ,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:xj,underlineThickness:xj,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:xj,values:null,vAlphabetic:xj,vMathematical:xj,vectorEffect:null,vHanging:xj,vIdeographic:xj,version:null,vertAdvY:xj,vertOriginX:xj,vertOriginY:xj,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:xj,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),x4=xL([xK,xV,x0,x2,x5],"html"),x3=xL([xK,xV,x0,x2,x9],"svg"),x8=/^data[-\w.:]+$/i,x6=/-[a-z]/g,x7=/[A-Z]/g;function Te(e){return"-"+e.toLowerCase()}function Tt(e){return e.charAt(1).toUpperCase()}var Tn=n(77867);let Tr={}.hasOwnProperty,Ti=(0,Tn.z)("type",{handlers:{root:function(e,t){let n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Ta(e.children,n,t),To(e,n),n},element:function(e,t){let n;let r=t;"element"===e.type&&"svg"===e.tagName.toLowerCase()&&"html"===t.space&&(r=x3);let i=[];if(e.properties){for(n in e.properties)if("children"!==n&&Tr.call(e.properties,n)){let t=function(e,t,n){let r=function(e,t){let n=xD(t),r=t,i=xQ;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&x8.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(x6,Tt);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!x6.test(e)){let n=e.replace(x7,Te);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=xH}return new i(r,t)}(e,t);if(null==n||!1===n||"number"==typeof n&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?function(e,t){let n={},r=""===e[e.length-1]?[...e,""]:e;return r.join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(n):n.join(" ").trim());let i={name:r.attribute,value:!0===n?"":String(n)};if(r.space&&"html"!==r.space&&"svg"!==r.space){let e=i.name.indexOf(":");e<0?i.prefix="":(i.name=i.name.slice(e+1),i.prefix=r.attribute.slice(0,e)),i.namespace=xw.t[r.space]}return i}(r,n,e.properties[n]);t&&i.push(t)}}let a={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:xw.t[r.space],childNodes:[],parentNode:void 0};return a.childNodes=Ta(e.children,a,r),To(e,a),"template"===e.tagName&&e.content&&(a.content=function(e,t){let n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Ta(e.children,n,t),To(e,n),n}(e.content,r)),a},text:function(e){let t={nodeName:"#text",value:e.value,parentNode:void 0};return To(e,t),t},comment:function(e){let t={nodeName:"#comment",data:e.value,parentNode:void 0};return To(e,t),t},doctype:function(e){let t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:void 0};return To(e,t),t}}});function Ta(e,t,n){let r=-1,i=[];if(e)for(;++r{if(e.value.stitch&&null!==n&&null!==t)return n.children[t]=e.value.stitch,t}),"root"!==e.type&&"root"===h.type&&1===h.children.length)return h.children[0];return h;function p(e){let t=-1;if(e)for(;++t{let r=Tu(t,n,e);return r}}let Tp={strip:["script"],clobberPrefix:"user-content-",clobber:["name","id"],ancestors:{tbody:["table"],tfoot:["table"],thead:["table"],td:["table"],th:["table"],tr:["table"]},protocols:{href:["http","https","mailto","xmpp","irc","ircs"],cite:["http","https"],src:["http","https"],longDesc:["http","https"]},tagNames:["h1","h2","h3","h4","h5","h6","br","b","i","strong","em","a","pre","code","img","tt","div","ins","del","sup","sub","p","ol","ul","table","thead","tbody","tfoot","blockquote","dl","dt","dd","kbd","q","samp","var","hr","ruby","rt","rp","li","tr","td","th","s","strike","summary","details","caption","figure","figcaption","abbr","bdo","cite","dfn","mark","small","span","time","wbr","input"],attributes:{a:["href"],img:["src","longDesc"],input:[["type","checkbox"],["disabled",!0]],li:[["className","task-list-item"]],div:["itemScope","itemType"],blockquote:["cite"],del:["cite"],ins:["cite"],q:["cite"],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","ariaDescribedBy","ariaHidden","ariaLabel","ariaLabelledBy","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","cols","colSpan","color","compact","coords","dateTime","dir","disabled","encType","htmlFor","frame","headers","height","hrefLang","hSpace","isMap","id","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rel","rev","rows","rowSpan","rules","scope","selected","shape","size","span","start","summary","tabIndex","target","title","type","useMap","vAlign","value","vSpace","width","itemProp"]},required:{input:{type:"checkbox",disabled:!0}}},Tf={}.hasOwnProperty,Tm={root:{children:TO},doctype:function(e){return e.allowDoctypes?{name:Tb}:void 0},comment:function(e){return e.allowComments?{value:Tv}:void 0},element:{tagName:Ty,properties:function(e,t,n,r){let i;let a=Ty(e,n.tagName,n,r),o=e.attributes||{},s=e.required||{},l=t||{},u=Object.assign({},Tk(o["*"]),Tk(a&&Tf.call(o,a)?o[a]:[])),c={};for(i in l)if(Tf.call(l,i)){let t,n=l[i];if(Tf.call(u,i))t=u[i];else{var d;if(!((d=i).length>4&&"data"===d.slice(0,4).toLowerCase()&&Tf.call(u,"data*")))continue;t=u["data*"]}null!=(n=Array.isArray(n)?function(e,t,n,r){let i=-1,a=[];for(;++i");return r<0?n:n.slice(0,r)}function Tx(e,t){return t}function TT(e,t,n,r){if(("boolean"==typeof t||"number"==typeof t||"string"==typeof t)&&function(e,t,n){let r=String(t),i=r.indexOf(":"),a=r.indexOf("?"),o=r.indexOf("#"),s=r.indexOf("/"),l=e.protocols&&Tf.call(e.protocols,n)?e.protocols[n].concat():[],u=-1;if(0===l.length||i<0||s>-1&&i>s||a>-1&&i>a||o>-1&&i>o)return!0;for(;++ue&&"object"==typeof e&&"flags"in e?e.test(String(t)):e===t)))return e.clobberPrefix&&e.clobber&&e.clobber.includes(n)?e.clobberPrefix+t:t}function Tk(e){let t={},n=-1;for(;++n(function(e,t){let n={type:"root",children:[]};if(e&&"object"==typeof e&&e.type){let r=Tg(Object.assign({},Tp,t||{}),e,[]);r&&(Array.isArray(r)?1===r.length?n=r[0]:n.children=r:n=r)}return n})(t,e)}var TS=n(82492);function Tw(e){return function(t){return!!t.type&&t.type.tabsRole===e}}var TE=Tw("Tab"),TC=Tw("TabList"),TA=Tw("TabPanel");function TR(e,t){return U.Children.map(e,function(e){return null===e?null:TE(e)||TC(e)||TA(e)?t(e):e.props&&e.props.children&&"object"==typeof e.props.children?(0,U.cloneElement)(e,Object.assign({},e.props,{children:TR(e.props.children,t)})):e})}var TP=function(){for(var e,t,n=0,r="";n=s()||(0,e.onSelect)(t,e.selectedIndex,n)}function a(e){for(var t=s(),n=e+1;ne;)if(!TD(l(t)))return t;return e}function s(){return TI(e.children)}function l(e){return t.current["tabs-"+e]}function u(e){var t=e.target;do if(c(t)){if(TD(t))return;i([].slice.call(t.parentNode.children).filter(TL).indexOf(t),e);return}while(null!=(t=t.parentNode))}function c(e){if(!TL(e))return!1;var t=e.parentElement;do{if(t===r.current)return!0;if(t.getAttribute("data-rttabs"))break;t=t.parentElement}while(t);return!1}e.children;var d=e.className,h=(e.disabledTabClassName,e.domRef),p=(e.focus,e.forceRenderTabPanel,e.onSelect,e.selectedIndex,e.selectedTabClassName,e.selectedTabPanelClassName,e.environment,e.disableUpDownKeys,e.disableLeftRightKeys,function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,TN));return U.createElement("div",Object.assign({},p,{className:TP(d),onClick:u,onKeyDown:function(t){var n=e.direction,r=e.disableUpDownKeys,d=e.disableLeftRightKeys;if(c(t.target)){var h=e.selectedIndex,p=!1,f=!1;("Space"===t.code||32===t.keyCode||"Enter"===t.code||13===t.keyCode)&&(p=!0,f=!1,u(t)),(d||37!==t.keyCode&&"ArrowLeft"!==t.code)&&(r||38!==t.keyCode&&"ArrowUp"!==t.code)?(d||39!==t.keyCode&&"ArrowRight"!==t.code)&&(r||40!==t.keyCode&&"ArrowDown"!==t.code)?35===t.keyCode||"End"===t.code?(h=function(){for(var e=s();e--;)if(!TD(l(e)))return e;return null}(),p=!0,f=!0):(36===t.keyCode||"Home"===t.code)&&(h=function(){for(var e=s(),t=0;t=0||(i[n]=e[n]);return i}(e,TB);return U.createElement("ul",Object.assign({},r,{className:TP(n),role:"tablist"}),t)};TU.tabsRole="TabList",TU.propTypes={},TU.defaultProps={className:"react-tabs__tab-list"};var Tj=["children","className","disabled","disabledClassName","focus","id","selected","selectedClassName","tabIndex","tabRef"],Tz="react-tabs__tab",TW=function(e){var t,n=(0,U.useRef)(),r=e.children,i=e.className,a=e.disabled,o=e.disabledClassName,s=e.focus,l=e.id,u=e.selected,c=e.selectedClassName,d=e.tabIndex,h=e.tabRef,p=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,Tj);return(0,U.useEffect)(function(){u&&s&&n.current.focus()},[u,s]),U.createElement("li",Object.assign({},p,{className:TP(i,((t={})[c]=u,t[o]=a,t)),ref:function(e){n.current=e,h&&h(e)},role:"tab",id:"tab"+l,"aria-selected":u?"true":"false","aria-disabled":a?"true":"false","aria-controls":"panel"+l,tabIndex:d||(u?"0":null),"data-rttab":!0}),r)};TW.propTypes={},TW.tabsRole="Tab",TW.defaultProps={className:Tz,disabledClassName:Tz+"--disabled",focus:!1,id:null,selected:!1,selectedClassName:Tz+"--selected"};var TZ=["children","className","forceRender","id","selected","selectedClassName"],Tq="react-tabs__tab-panel",TG=function(e){var t,n=e.children,r=e.className,i=e.forceRender,a=e.id,o=e.selected,s=e.selectedClassName,l=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,TZ);return U.createElement("div",Object.assign({},l,{className:TP(r,((t={})[s]=o,t)),role:"tabpanel",id:"panel"+a,"aria-labelledby":"tab"+a}),i||o?n:null)};TG.tabsRole="TabPanel",TG.propTypes={},TG.defaultProps={className:Tq,forceRender:!1,selectedClassName:Tq+"--selected"};var TH=Object.defineProperty,TY=Object.defineProperties,TX=Object.getOwnPropertyDescriptors,TV=Object.getOwnPropertySymbols,TK=Object.prototype.hasOwnProperty,TJ=Object.prototype.propertyIsEnumerable,T1=(e,t,n)=>t in e?TH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,T0=(e,t)=>{for(var n in t||(t={}))TK.call(t,n)&&T1(e,n,t[n]);if(TV)for(var n of TV(t))TJ.call(t,n)&&T1(e,n,t[n]);return e},T2=(e,t)=>TY(e,TX(t)),T5=(e,t)=>{var n={};for(var r in e)TK.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&TV)for(var r of TV(e))0>t.indexOf(r)&&TJ.call(e,r)&&(n[r]=e[r]);return n},T9={50:"#EFFCF6",100:"#C6F7E2",200:"#8EEDC7",300:"#65D6AD",400:"#3EBD93",500:"#27AB83",600:"#199473",700:"#147D64",800:"#0C6B58",900:"#014D40"},T4={50:"#F5F7FA",100:"#E4E7EB",200:"#CBD2D9",300:"#9AA5B1",400:"#7B8794",500:"#616E7C",600:"#52606D",700:"#3E4C59",800:"#323F4B",900:"#1F2933"},T3={breakpoints:["768px","1024px"],space:{xxsmall:"4px",xsmall:"8px",small:"16px",medium:"24px",large:"32px",xlarge:"48px",xxlarge:"64px",standard:"16px",none:"0px",gutter:"8px",auto:"auto",full:"100%"},sizes:{xsmall:"400px",small:"600px",medium:"940px",large:"1280px"},fonts:{body:'Rubik, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif',heading:"Rubik, system-ui",monospace:'"Ubuntu Mono", Menlo, monospace'},fontSizes:{xsmall:"12px",small:"14px",medium:"16px",large:"20px",xlarge:"24px",xxlarge:"32px",standard:"16px"},fontWeights:{hairline:100,thin:200,light:300,standard:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},lineHeights:{none:"1",tight:"1.25",snug:"1.375",standard:"1.5",relaxed:"1.625",loose:"2"},letterSpacings:{tighter:"-0.05em",tight:"-0.025em",standard:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},colors:{currentColor:"currentColor",transparent:"transparent",text:T4[900],background:T4[50],card:"#fff",primary:T9,accent:{50:"#EAE2F8",100:"#CFBCF2",200:"#A081D9",300:"#8662C7",400:"#724BB7",500:"#653CAD",600:"#51279B",700:"#421987",800:"#34126F",900:"#240754"},neutral:T4,success:T9,warning:{50:"#FFFAEB",100:"#FCEFC7",200:"#F8E3A3",300:"#F9DA8B",400:"#F7D070",500:"#E9B949",600:"#C99A2E",700:"#A27C1A",800:"#7C5E10",900:"#513C06"},error:{50:"#FFEEEE",100:"#FACDCD",200:"#F29B9B",300:"#E66A6A",400:"#D64545",500:"#BA2525",600:"#A61B1B",700:"#911111",800:"#780A0A",900:"#610404"},info:{50:"#DCEEFB",100:"#B6E0FE",200:"#84C5F4",300:"#62B0E8",400:"#4098D7",500:"#2680C2",600:"#186FAF",700:"#0F609B",800:"#0A558C",900:"#003E6B"}},borderWidths:{standard:"1px",none:"0",light:"2px",medium:"4px",semibold:"8px"},radii:{none:"0",small:"4px",standard:"8px",medium:"10px",large:"12px",full:"9999px"},shadows:{xsmall:"0 0 0 1px rgba(0, 0, 0, 0.05)",small:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",standard:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",medium:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",large:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xlarge:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)",xxlarge:"0 25px 50px -12px rgba(0, 0, 0, 0.25)",inner:"inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)",outline:"0 0 0 3px rgba(66, 153, 225, 0.5)",none:"none"},zIndices:{auto:"auto",0:0,10:10,20:20,30:30,40:40,50:50},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move","not-allowed":"not-allowed"}},T8=aA({textColor:{scale:"colors",property:"color"},backgroundColor:{scale:"colors",property:"backgroundColor"},bg:{scale:"colors",property:"backgroundColor"}}),T6=aA({cursor:{scale:"cursor",property:"cursor"}}),T7=aR(aH,aA({gap:{property:"gap",scale:"space"}})),ke="default"in or?or.default:or,kt=ke.div({boxSizing:"border-box",minWidth:0,transition:"all 0.2s ease"},aR(T8,T6,T7,a$,aP,aL,aQ,aU,aF,az,aY)),kn=ke(kt)(a4({scale:"badges",prop:"tone",variants:{primary:{backgroundColor:"primary.800",color:"primary.100",borderColor:"primary.100"},accent:{backgroundColor:"accent.800",color:"accent.100",borderColor:"accent.100"},neutral:{backgroundColor:"neutral.800",color:"neutral.100",borderColor:"neutral.100"},success:{backgroundColor:"success.800",color:"success.100",borderColor:"success.100"},warning:{backgroundColor:"warning.800",color:"warning.100",borderColor:"warning.100"},error:{backgroundColor:"error.800",color:"error.100",borderColor:"error.100"},info:{backgroundColor:"info.800",color:"info.100",borderColor:"info.100"}}})),kr=e=>(t="primary",n="small")=>{let r=e.colors[t],i=ag``;switch(n){case"auto":i=ag` +`,(0,G.jsxs)("div",{className:"sql-ide",children:[(0,G.jsx)("iframe",{ref:a,srcDoc:``,height:n,frameBorder:"0",dangerouslySetInnerHTML:{__html:d}}),(0,G.jsx)("div",{className:"menu",children:(0,G.jsx)("button",{onClick:()=>{a.current?.requestFullscreen&&a.current.requestFullscreen()},children:"Fullscreen"})})]})}}};n(91169);var iQ=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t;this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t))}var n=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t-1&&!e.return)switch(e.type){case iB.h5:e.return=function e(t,n){switch((0,iF.vp)(t,n)){case 5103:return iB.G$+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return iB.G$+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return iB.G$+t+iB.uj+t+iB.MS+t+t;case 6828:case 4268:return iB.G$+t+iB.MS+t+t;case 6165:return iB.G$+t+iB.MS+"flex-"+t+t;case 5187:return iB.G$+t+(0,iF.gx)(t,/(\w+).+(:[^]+)/,iB.G$+"box-$1$2"+iB.MS+"flex-$1$2")+t;case 5443:return iB.G$+t+iB.MS+"flex-item-"+(0,iF.gx)(t,/flex-|-self/,"")+t;case 4675:return iB.G$+t+iB.MS+"flex-line-pack"+(0,iF.gx)(t,/align-content|flex-|-self/,"")+t;case 5548:return iB.G$+t+iB.MS+(0,iF.gx)(t,"shrink","negative")+t;case 5292:return iB.G$+t+iB.MS+(0,iF.gx)(t,"basis","preferred-size")+t;case 6060:return iB.G$+"box-"+(0,iF.gx)(t,"-grow","")+iB.G$+t+iB.MS+(0,iF.gx)(t,"grow","positive")+t;case 4554:return iB.G$+(0,iF.gx)(t,/([^-])(transform)/g,"$1"+iB.G$+"$2")+t;case 6187:return(0,iF.gx)((0,iF.gx)((0,iF.gx)(t,/(zoom-|grab)/,iB.G$+"$1"),/(image-set)/,iB.G$+"$1"),t,"")+t;case 5495:case 3959:return(0,iF.gx)(t,/(image-set\([^]*)/,iB.G$+"$1$`$1");case 4968:return(0,iF.gx)((0,iF.gx)(t,/(.+:)(flex-)?(.*)/,iB.G$+"box-pack:$3"+iB.MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+iB.G$+t+t;case 4095:case 3583:case 4068:case 2532:return(0,iF.gx)(t,/(.+)-inline(.+)/,iB.G$+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if((0,iF.to)(t)-1-n>6)switch((0,iF.uO)(t,n+1)){case 109:if(45!==(0,iF.uO)(t,n+4))break;case 102:return(0,iF.gx)(t,/(.+:)(.+)-([^]+)/,"$1"+iB.G$+"$2-$3$1"+iB.uj+(108==(0,iF.uO)(t,n+3)?"$3":"$2-$3"))+t;case 115:return~(0,iF.Cw)(t,"stretch")?e((0,iF.gx)(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(115!==(0,iF.uO)(t,n+1))break;case 6444:switch((0,iF.uO)(t,(0,iF.to)(t)-3-(~(0,iF.Cw)(t,"!important")&&10))){case 107:return(0,iF.gx)(t,":",":"+iB.G$)+t;case 101:return(0,iF.gx)(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+iB.G$+(45===(0,iF.uO)(t,14)?"inline-":"")+"box$3$1"+iB.G$+"$2$3$1"+iB.MS+"$2box$3")+t}break;case 5936:switch((0,iF.uO)(t,n+11)){case 114:return iB.G$+t+iB.MS+(0,iF.gx)(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return iB.G$+t+iB.MS+(0,iF.gx)(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return iB.G$+t+iB.MS+(0,iF.gx)(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return iB.G$+t+iB.MS+t+t}return t}(e.value,e.length);break;case iB.lK:return(0,iU.q)([(0,iM.JG)(e,{value:(0,iF.gx)(e.value,"@","@"+iB.G$)})],r);case iB.Fr:if(e.length)return(0,iF.$e)(e.props,function(t){switch((0,iF.EQ)(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return(0,iU.q)([(0,iM.JG)(e,{props:[(0,iF.gx)(t,/:(read-\w+)/,":"+iB.uj+"$1")]})],r);case"::placeholder":return(0,iU.q)([(0,iM.JG)(e,{props:[(0,iF.gx)(t,/:(plac\w+)/,":"+iB.G$+"input-$1")]}),(0,iM.JG)(e,{props:[(0,iF.gx)(t,/:(plac\w+)/,":"+iB.uj+"$1")]}),(0,iM.JG)(e,{props:[(0,iF.gx)(t,/:(plac\w+)/,iB.MS+"input-$1")]})],r)}return""})}}];function iY(){return(iY=Object.assign?Object.assign.bind():function(e){for(var t=1;t=4;++r,i-=4)t=(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&n)*1540483477+((n>>>16)*59797<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=(65535&n)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*1540483477+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)}(a)+l,styles:a,next:_F}},at=!!z.useInsertionEffect&&z.useInsertionEffect,an=at||function(e){return e()},ar=at||U.useLayoutEffect,ai={}.hasOwnProperty,aa=(0,U.createContext)("undefined"!=typeof HTMLElement?function(e){var t,n,r,i,a,o=e.key;if("css"===o){var s=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(s,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var l=e.stylisPlugins||iH,u={},c=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+o+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n1&&i.forEach(function(n){var i;r[n]=e(((i={})[n]=t[n],i))}),r},aw=function(e,t,n,r,i){var a={};return r.slice(0,e.length).forEach(function(r,o){var s,l=e[o],u=t(r,n,i);l?ab()(a,((s={})[l]=ab()({},a[l],u),s)):ab()(a,u)}),a},aE=function(e,t,n,r,i){var a={};for(var o in r){var s=e[o],l=t(r[o],n,i);if(s){var u,c=aT(s);ab()(a,((u={})[c]=ab()({},a[c],l),u))}else ab()(a,l)}return a},aC=function(e){var t=e.properties,n=e.property,r=e.scale,i=e.transform,a=void 0===i?ak:i,o=e.defaultScale;t=t||[n];var s=function(e,n,r){var i={},o=a(e,n,r);if(null!==o)return t.forEach(function(e){i[e]=o}),i};return s.scale=r,s.defaults=o,s},aA=function(e){void 0===e&&(e={});var t={};return Object.keys(e).forEach(function(n){var r=e[n];if(!0===r){t[n]=aC({property:n,scale:n});return}if("function"==typeof r){t[n]=r;return}t[n]=aC(r)}),aS(t)},aR=function(){for(var e={},t=arguments.length,n=Array(t),r=0;r1?e:100*e+"%")}},height:{property:"height",scale:"sizes"},minWidth:{property:"minWidth",scale:"sizes"},minHeight:{property:"minHeight",scale:"sizes"},maxWidth:{property:"maxWidth",scale:"sizes"},maxHeight:{property:"maxHeight",scale:"sizes"},size:{properties:["width","height"],scale:"sizes"},overflow:!0,overflowX:!0,overflowY:!0,display:!0,verticalAlign:!0}),aI={color:{property:"color",scale:"colors"},backgroundColor:{property:"backgroundColor",scale:"colors"},opacity:!0};aI.bg=aI.backgroundColor;var aN=aA(aI),a$=aA({fontFamily:{property:"fontFamily",scale:"fonts"},fontSize:{property:"fontSize",scale:"fontSizes",defaultScale:[12,14,16,20,24,32,48,64,72]},fontWeight:{property:"fontWeight",scale:"fontWeights"},lineHeight:{property:"lineHeight",scale:"lineHeights"},letterSpacing:{property:"letterSpacing",scale:"letterSpacings"},textAlign:!0,fontStyle:!0}),aL=aA({alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:!0,flex:!0,flexGrow:!0,flexShrink:!0,flexBasis:!0,justifySelf:!0,alignSelf:!0,order:!0}),aD={space:[0,4,8,16,32,64,128,256,512]},aQ=aA({gridGap:{property:"gridGap",scale:"space",defaultScale:aD.space},gridColumnGap:{property:"gridColumnGap",scale:"space",defaultScale:aD.space},gridRowGap:{property:"gridRowGap",scale:"space",defaultScale:aD.space},gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridAutoRows:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0}),aM={border:{property:"border",scale:"borders"},borderWidth:{property:"borderWidth",scale:"borderWidths"},borderStyle:{property:"borderStyle",scale:"borderStyles"},borderColor:{property:"borderColor",scale:"colors"},borderRadius:{property:"borderRadius",scale:"radii"},borderTop:{property:"borderTop",scale:"borders"},borderTopLeftRadius:{property:"borderTopLeftRadius",scale:"radii"},borderTopRightRadius:{property:"borderTopRightRadius",scale:"radii"},borderRight:{property:"borderRight",scale:"borders"},borderBottom:{property:"borderBottom",scale:"borders"},borderBottomLeftRadius:{property:"borderBottomLeftRadius",scale:"radii"},borderBottomRightRadius:{property:"borderBottomRightRadius",scale:"radii"},borderLeft:{property:"borderLeft",scale:"borders"},borderX:{properties:["borderLeft","borderRight"],scale:"borders"},borderY:{properties:["borderTop","borderBottom"],scale:"borders"}};aM.borderTopWidth={property:"borderTopWidth",scale:"borderWidths"},aM.borderTopColor={property:"borderTopColor",scale:"colors"},aM.borderTopStyle={property:"borderTopStyle",scale:"borderStyles"},aM.borderTopLeftRadius={property:"borderTopLeftRadius",scale:"radii"},aM.borderTopRightRadius={property:"borderTopRightRadius",scale:"radii"},aM.borderBottomWidth={property:"borderBottomWidth",scale:"borderWidths"},aM.borderBottomColor={property:"borderBottomColor",scale:"colors"},aM.borderBottomStyle={property:"borderBottomStyle",scale:"borderStyles"},aM.borderBottomLeftRadius={property:"borderBottomLeftRadius",scale:"radii"},aM.borderBottomRightRadius={property:"borderBottomRightRadius",scale:"radii"},aM.borderLeftWidth={property:"borderLeftWidth",scale:"borderWidths"},aM.borderLeftColor={property:"borderLeftColor",scale:"colors"},aM.borderLeftStyle={property:"borderLeftStyle",scale:"borderStyles"},aM.borderRightWidth={property:"borderRightWidth",scale:"borderWidths"},aM.borderRightColor={property:"borderRightColor",scale:"colors"},aM.borderRightStyle={property:"borderRightStyle",scale:"borderStyles"};var aF=aA(aM),aB={background:!0,backgroundImage:!0,backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0};aB.bgImage=aB.backgroundImage,aB.bgSize=aB.backgroundSize,aB.bgPosition=aB.backgroundPosition,aB.bgRepeat=aB.backgroundRepeat;var aU=aA(aB),az={space:[0,4,8,16,32,64,128,256,512]},aj=aA({position:!0,zIndex:{property:"zIndex",scale:"zIndices"},top:{property:"top",scale:"space",defaultScale:az.space},right:{property:"right",scale:"space",defaultScale:az.space},bottom:{property:"bottom",scale:"space",defaultScale:az.space},left:{property:"left",scale:"space",defaultScale:az.space}}),aW={space:[0,4,8,16,32,64,128,256,512]},aZ=function(e){return"number"==typeof e&&!isNaN(e)},aq=function(e,t){if(!aZ(e))return a_(t,e,e);var n=e<0,r=Math.abs(e),i=a_(t,r,r);return aZ(i)?i*(n?-1:1):n?"-"+i:i},aG={};aG.margin={margin:{property:"margin",scale:"space",transform:aq,defaultScale:aW.space},marginTop:{property:"marginTop",scale:"space",transform:aq,defaultScale:aW.space},marginRight:{property:"marginRight",scale:"space",transform:aq,defaultScale:aW.space},marginBottom:{property:"marginBottom",scale:"space",transform:aq,defaultScale:aW.space},marginLeft:{property:"marginLeft",scale:"space",transform:aq,defaultScale:aW.space},marginX:{properties:["marginLeft","marginRight"],scale:"space",transform:aq,defaultScale:aW.space},marginY:{properties:["marginTop","marginBottom"],scale:"space",transform:aq,defaultScale:aW.space}},aG.margin.m=aG.margin.margin,aG.margin.mt=aG.margin.marginTop,aG.margin.mr=aG.margin.marginRight,aG.margin.mb=aG.margin.marginBottom,aG.margin.ml=aG.margin.marginLeft,aG.margin.mx=aG.margin.marginX,aG.margin.my=aG.margin.marginY,aG.padding={padding:{property:"padding",scale:"space",defaultScale:aW.space},paddingTop:{property:"paddingTop",scale:"space",defaultScale:aW.space},paddingRight:{property:"paddingRight",scale:"space",defaultScale:aW.space},paddingBottom:{property:"paddingBottom",scale:"space",defaultScale:aW.space},paddingLeft:{property:"paddingLeft",scale:"space",defaultScale:aW.space},paddingX:{properties:["paddingLeft","paddingRight"],scale:"space",defaultScale:aW.space},paddingY:{properties:["paddingTop","paddingBottom"],scale:"space",defaultScale:aW.space}},aG.padding.p=aG.padding.padding,aG.padding.pt=aG.padding.paddingTop,aG.padding.pr=aG.padding.paddingRight,aG.padding.pb=aG.padding.paddingBottom,aG.padding.pl=aG.padding.paddingLeft,aG.padding.px=aG.padding.paddingX,aG.padding.py=aG.padding.paddingY;var aH=aR(aA(aG.margin),aA(aG.padding)),aY=aA({boxShadow:{property:"boxShadow",scale:"shadows"},textShadow:{property:"textShadow",scale:"shadows"}});function aX(){return(aX=Object.assign||function(e){for(var t=1;t=0)return aV(e,t,t);var n=Math.abs(t),r=aV(e,n,n);return"string"==typeof r?"-"+r:-1*r},a9=["margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","top","bottom","left","right"].reduce(function(e,t){var n;return aX({},e,((n={})[t]=a5,n))},{}),a4=function(e){var t,n,r=e.scale,i=e.prop,a=e.variants,o=void 0===a?{}:a,s=e.key;return(n=Object.keys(o).length?function(e,t,n){return(function e(t){return function(n){void 0===n&&(n={});var r,i=aX({},aJ,{},n.theme||n),a={},o=(r="function"==typeof t?t(i):t,function(e){var t={},n=[null].concat(aV(e,"breakpoints",aK).map(function(e){return"@media screen and (min-width: "+e+")"}));for(var i in r){var a="function"==typeof r[i]?r[i](e):r[i];if(null!=a){if(!Array.isArray(a)){t[i]=a;continue}for(var o=0;oe.charCodeAt(2)}),a7=function(e){return"theme"!==e},oe=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?a6:a7},ot=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},on=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return iK(t,n,r),an(function(){return iJ(t,n,r)}),null},or=(function e(t,n){var r,i,a=t.__emotion_real===t,o=a&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var s=ot(t,n,a),l=s||oe(o),u=!l("as");return function(){var c=arguments,d=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==c[0]||void 0===c[0].raw)d.push.apply(d,c);else{d.push(c[0][0]);for(var h=c.length,p=1;pe.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return(function(e){if(0===e.length||1===e.length)return e;var t,n=e.join(".");return ol[n]||(ol[n]=0===(t=e.length)||1===t?e:2===t?[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])]:3===t?[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])]:t>=4?[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])]:void 0),ol[n]})(e.filter(function(e){return"token"!==e})).reduce(function(e,t){return os(os({},e),n[t])},t)}(s.className,Object.assign({},s.style,void 0===i?{}:i),r)})}else h=os(os({},s),{},{className:s.className.join(" ")});var O=p(n.children);return U.createElement(u,iY({key:o},h),O)}}({node:e,stylesheet:n,useInlineStyles:r,key:"code-segement".concat(t)})})}function ob(e){return e&&void 0!==e.highlightAuto}var oy=n(98695),ov=(_E=n.n(oy)(),_C={'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"}},function(e){var t=e.language,n=e.children,r=e.style,i=void 0===r?_C:r,a=e.customStyle,o=void 0===a?{}:a,s=e.codeTagProps,l=void 0===s?{className:t?"language-".concat(t):void 0,style:od(od({},i['code[class*="language-"]']),i['code[class*="language-'.concat(t,'"]')])}:s,u=e.useInlineStyles,c=void 0===u||u,d=e.showLineNumbers,h=void 0!==d&&d,p=e.showInlineLineNumbers,f=void 0===p||p,m=e.startingLineNumber,g=void 0===m?1:m,O=e.lineNumberContainerStyle,b=e.lineNumberStyle,y=void 0===b?{}:b,v=e.wrapLines,x=e.wrapLongLines,T=void 0!==x&&x,k=e.lineProps,_=void 0===k?{}:k,S=e.renderer,w=e.PreTag,E=void 0===w?"pre":w,C=e.CodeTag,A=void 0===C?"code":C,R=e.code,P=void 0===R?(Array.isArray(n)?n[0]:n)||"":R,I=e.astGenerator,N=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,ou);I=I||_E;var $=h?U.createElement(op,{containerStyle:O,codeStyle:l.style||{},numberStyle:y,startingLineNumber:g,codeString:P}):null,L=i.hljs||i['pre[class*="language-"]']||{backgroundColor:"#fff"},D=ob(I)?"hljs":"prismjs",Q=c?Object.assign({},N,{style:Object.assign({},L,o)}):Object.assign({},N,{className:N.className?"".concat(D," ").concat(N.className):D,style:Object.assign({},o)});if(T?l.style=od(od({},l.style),{},{whiteSpace:"pre-wrap"}):l.style=od(od({},l.style),{},{whiteSpace:"pre"}),!I)return U.createElement(E,Q,$,U.createElement(A,l,P));(void 0===v&&S||T)&&(v=!0),S=S||oO;var M=[{type:"text",value:P}],F=function(e){var t=e.astGenerator,n=e.language,r=e.code,i=e.defaultCodeValue;if(ob(t)){var a=-1!==t.listLanguages().indexOf(n);return"text"===n?{value:i,language:"text"}:a?t.highlight(n,r):t.highlightAuto(r)}try{return n&&"text"!==n?{value:t.highlight(r,n)}:{value:i}}catch(e){return{value:i}}}({astGenerator:I,language:t,code:P,defaultCodeValue:M});null===F.language&&(F.value=M);var B=F.value.length+g,z=function(e,t,n,r,i,a,o,s,l){var u,c=function e(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=0;i2&&void 0!==arguments[2]?arguments[2]:[];return t||u.length>0?function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return og({children:e,lineNumber:t,lineNumberStyle:s,largestLineNumber:o,showInlineLineNumbers:i,lineProps:n,className:a,showLineNumbers:r,wrapLongLines:l})}(e,a,u):function(e,t){if(r&&t&&i){var n=om(s,t,o);e.unshift(of(t,n))}return e}(e,a)}for(;pthis.length)throw RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){let r=[];return this.decompose(0,e,r,2),n.length&&n.decompose(0,n.length,r,3),this.decompose(t,this.length,r,1),ok.from(r,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){let n=[];return this.decompose(e,t,n,0),ok.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),r=new oS(this),i=new oS(e);for(let e=t,a=t;;){if(r.next(e),i.next(e),e=0,r.lineBreak!=i.lineBreak||r.done!=i.done||r.value!=i.value)return!1;if(a+=r.value.length,r.done||a>=n)return!0}}iter(e=1){return new oS(this,e)}iterRange(e,t=this.length){return new ow(this,e,t)}iterLines(e,t){let n;if(null==e)n=this.iter();else{null==t&&(t=this.lines+1);let r=this.line(e).from;n=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new oE(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}static of(e){if(0==e.length)throw RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new oT(e):ok.from(oT.split(e,[])):ox.empty}}class oT extends ox{constructor(e,t=function(e){let t=-1;for(let n of e)t+=n.length+1;return t}(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,r){for(let i=0;;i++){let a=this.text[i],o=r+a.length;if((t?n:o)>=e)return new oC(r,o,n,a);r=o+1,n++}}decompose(e,t,n,r){let i=e<=0&&t>=this.length?this:new oT(o_(this.text,[""],e,t),Math.min(t,this.length)-Math.max(0,e));if(1&r){let e=n.pop(),t=o_(i.text,e.text.slice(),0,i.length);if(t.length<=32)n.push(new oT(t,e.length+i.length));else{let e=t.length>>1;n.push(new oT(t.slice(0,e)),new oT(t.slice(e)))}}else n.push(i)}replace(e,t,n){if(!(n instanceof oT))return super.replace(e,t,n);let r=o_(this.text,o_(n.text,o_(this.text,[""],0,e)),t),i=this.length+n.length-(t-e);return r.length<=32?new oT(r,i):ok.from(oT.split(r,[]),i)}sliceString(e,t=this.length,n="\n"){let r="";for(let i=0,a=0;i<=t&&ae&&a&&(r+=n),ei&&(r+=o.slice(Math.max(0,e-i),t-i)),i=s+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let n=[],r=-1;for(let i of e)n.push(i),r+=i.length+1,32==n.length&&(t.push(new oT(n,r)),n=[],r=-1);return r>-1&&t.push(new oT(n,r)),t}}class ok extends ox{constructor(e,t){for(let n of(super(),this.children=e,this.length=t,this.lines=0,e))this.lines+=n.lines}lineInner(e,t,n,r){for(let i=0;;i++){let a=this.children[i],o=r+a.length,s=n+a.lines-1;if((t?s:o)>=e)return a.lineInner(e,t,n,r);r=o+1,n=s+1}}decompose(e,t,n,r){for(let i=0,a=0;a<=t&&i=a){let i=r&((a<=e?1:0)|(s>=t?2:0));a>=e&&s<=t&&!i?n.push(o):o.decompose(e-a,t-a,n,i)}a=s+1}}replace(e,t,n){if(n.lines=i&&t<=o){let s=a.replace(e-i,t-i,n),l=this.lines-a.lines+s.lines;if(s.lines>4&&s.lines>l>>6){let i=this.children.slice();return i[r]=s,new ok(i,this.length-(t-e)+n.length)}return super.replace(i,o,s)}i=o+1}return super.replace(e,t,n)}sliceString(e,t=this.length,n="\n"){let r="";for(let i=0,a=0;ie&&i&&(r+=n),ea&&(r+=o.sliceString(e-a,t-a,n)),a=s+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof ok))return 0;let n=0,[r,i,a,o]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=t,i+=t){if(r==a||i==o)return n;let s=this.children[r],l=e.children[i];if(s!=l)return n+s.scanIdentical(l,t);n+=s.length+1}}static from(e,t=e.reduce((e,t)=>e+t.length+1,-1)){let n=0;for(let t of e)n+=t.lines;if(n<32){let n=[];for(let t of e)t.flatten(n);return new oT(n,t)}let r=Math.max(32,n>>5),i=r<<1,a=r>>1,o=[],s=0,l=-1,u=[];function c(){0!=s&&(o.push(1==u.length?u[0]:ok.from(u,l)),l=-1,s=u.length=0)}for(let t of e)!function e(t){let n;if(t.lines>i&&t instanceof ok)for(let n of t.children)e(n);else t.lines>a&&(s>a||!s)?(c(),o.push(t)):t instanceof oT&&s&&(n=u[u.length-1])instanceof oT&&t.lines+n.lines<=32?(s+=t.lines,l+=t.length+1,u[u.length-1]=new oT(n.text.concat(t.text),n.length+1+t.length)):(s+t.lines>r&&c(),s+=t.lines,l+=t.length+1,u.push(t))}(t);return c(),1==o.length?o[0]:new ok(o,t)}}function o_(e,t,n=0,r=1e9){for(let i=0,a=0,o=!0;a=n&&(l>r&&(s=s.slice(0,r-i)),i0?1:(e instanceof oT?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,r=this.nodes[n],i=this.offsets[n],a=i>>1,o=r instanceof oT?r.text.length:r.children.length;if(a==(t>0?o:0)){if(0==n)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&i)==(t>0?0:1)){if(this.offsets[n]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(r instanceof oT){let i=r.text[a+(t<0?-1:0)];if(this.offsets[n]+=t,i.length>Math.max(0,e))return this.value=0==e?i:t>0?i.slice(e):i.slice(0,i.length-e),this;e-=i.length}else{let i=r.children[a+(t<0?-1:0)];e>i.length?(e-=i.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(i),this.offsets.push(t>0?1:(i instanceof oT?i.text.length:i.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class ow{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new oS(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=n?r:t<0?r.slice(r.length-n):r.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class oE{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:n,value:r}=this.inner.next(e);return t?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(ox.prototype[Symbol.iterator]=function(){return this.iter()},oS.prototype[Symbol.iterator]=ow.prototype[Symbol.iterator]=oE.prototype[Symbol.iterator]=function(){return this});class oC{constructor(e,t,n,r){this.from=e,this.to=t,this.number=n,this.text=r}get length(){return this.to-this.from}}let oA="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=1;e=127462&&e<=127487}function oP(e,t,n=!0,r=!0){return(n?oI:oN)(e,t,r)}function oI(e,t,n){if(t==e.length)return t;t&&o$(e.charCodeAt(t))&&oL(e.charCodeAt(t-1))&&t--;let r=oD(e,t);for(t+=oM(r);te)return oA[t-1]<=e;return!1}(i))t+=oM(i),r=i;else if(oR(i)){let n=0,r=t-2;for(;r>=0&&oR(oD(e,r));)n++,r-=2;if(n%2==0)break;t+=2}else break}return t}function oN(e,t,n){for(;t>0;){let r=oI(e,t-2,n);if(r=56320&&e<57344}function oL(e){return e>=55296&&e<56320}function oD(e,t){let n=e.charCodeAt(t);if(!oL(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return o$(r)?(n-55296<<10)+(r-56320)+65536:n}function oQ(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10)+55296,(1023&e)+56320)}function oM(e){return e<65536?1:2}let oF=/\r\n?|\n/;var oB=((_A=oB||(oB={}))[_A.Simple=0]="Simple",_A[_A.TrackDel=1]="TrackDel",_A[_A.TrackBefore=2]="TrackBefore",_A[_A.TrackAfter=3]="TrackAfter",_A);class oU{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;te)return i+(e-r);i+=o}else{if(n!=oB.Simple&&l>=e&&(n==oB.TrackDel&&re||n==oB.TrackBefore&&re))return null;if(l>e||l==e&&t<0&&!o)return e==r||t<0?i:i+s;i+=s}r=l}if(e>r)throw RangeError(`Position ${e} is out of range for changeset of length ${r}`);return i}touchesRange(e,t=e){for(let n=0,r=0;n=0&&r<=t&&o>=e)return!(rt)||"cover";r=o}return!1}toString(){let e="";for(let t=0;t=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(e=>"number"!=typeof e))throw RangeError("Invalid JSON representation of ChangeDesc");return new oU(e)}static create(e){return new oU(e)}}class oz extends oU{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw RangeError("Applying change set to a document with the wrong length");return oZ(this,(t,n,r,i,a)=>e=e.replace(r,r+(n-t),a),!1),e}mapDesc(e,t=!1){return oq(this,e,t,!0)}invert(e){let t=this.sections.slice(),n=[];for(let r=0,i=0;r=0){t[r]=o,t[r+1]=a;let s=r>>1;for(;n.length0&&oW(n,t,i.text),i.forward(e),o+=e}let l=e[a++];for(;o>1].toJSON()))}return e}static of(e,t,n){let r=[],i=[],a=0,o=null;function s(e=!1){if(!e&&!r.length)return;ao||e<0||o>t)throw RangeError(`Invalid change range ${e} to ${o} (in doc of length ${t})`);let c=u?"string"==typeof u?ox.of(u.split(n||oF)):u:ox.empty,d=c.length;if(e==o&&0==d)return;ea&&oj(r,e-a,-1),oj(r,o-e,d),oW(i,r,c),a=o}}(e),s(!o),o}static empty(e){return new oz(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw RangeError("Invalid JSON representation of ChangeSet");let t=[],n=[];for(let r=0;rt&&"string"!=typeof e))throw RangeError("Invalid JSON representation of ChangeSet");else if(1==i.length)t.push(i[0],0);else{for(;n.length=0&&n<=0&&n==e[i+1]?e[i]+=t:0==t&&0==e[i]?e[i+1]+=n:r?(e[i]+=t,e[i+1]+=n):e.push(t,n)}function oW(e,t,n){if(0==n.length)return;let r=t.length-2>>1;if(r>1])),!n&&o!=e.sections.length&&!(e.sections[o+1]<0);)s=e.sections[o++],l=e.sections[o++];t(i,u,a,c,d),i=u,a=c}}}function oq(e,t,n,r=!1){let i=[],a=r?[]:null,o=new oH(e),s=new oH(t);for(let e=0,t=0;;)if(-1==o.ins)e+=o.len,o.next();else if(-1==s.ins&&t=0&&(o.done||tt&&!o.done&&e+o.len=0){let n=0,r=e+o.len;for(;;)if(s.ins>=0&&t>e&&t+s.lent||o.ins>=0&&o.len>t)&&(e||r.length>n),a.forward2(t),o.forward(t)}}else oj(r,0,o.ins,e),i&&oW(i,r,o.text),o.next()}}class oH{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return t>=e.length?ox.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?ox.empty:t[n].slice(this.off,null==e?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class oY{constructor(e,t,n){this.from=e,this.to=t,this.flags=n}get anchor(){return 16&this.flags?this.to:this.from}get head(){return 16&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 4&this.flags?-1:8&this.flags?1:0}get bidiLevel(){let e=3&this.flags;return 3==e?null:e}get goalColumn(){let e=this.flags>>5;return 33554431==e?void 0:e}map(e,t=-1){let n,r;return this.empty?n=r=e.mapPos(this.from,t):(n=e.mapPos(this.from,1),r=e.mapPos(this.to,-1)),n==this.from&&r==this.to?this:new oY(n,r,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return oX.range(e,t);let n=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return oX.range(this.anchor,n)}eq(e){return this.anchor==e.anchor&&this.head==e.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw RangeError("Invalid JSON representation for SelectionRange");return oX.range(e.anchor,e.head)}static create(e,t,n){return new oY(e,t,n)}}class oX{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:oX.create(this.ranges.map(n=>n.map(e,t)),this.mainIndex)}eq(e){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let t=0;te.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw RangeError("Invalid JSON representation for EditorSelection");return new oX(e.ranges.map(e=>oY.fromJSON(e)),e.main)}static single(e,t=e){return new oX([oX.range(e,t)],0)}static create(e,t=0){if(0==e.length)throw RangeError("A selection needs at least one range");for(let n=0,r=0;re?4:0))}static normalized(e,t=0){let n=e[t];e.sort((e,t)=>e.from-t.from),t=e.indexOf(n);for(let n=1;nr.head?oX.range(o,a):oX.range(a,o))}}return new oX(e,t)}}function oV(e,t){for(let n of e.ranges)if(n.to>t)throw RangeError("Selection points outside of document")}let oK=0;class oJ{constructor(e,t,n,r,i){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=r,this.extensions=i,this.id=oK++,this.default=e([])}static define(e={}){return new oJ(e.combine||(e=>e),e.compareInput||((e,t)=>e===t),e.compare||(e.combine?(e,t)=>e===t:o1),!!e.static,e.enables)}of(e){return new o0([],this,0,e)}compute(e,t){if(this.isStatic)throw Error("Can't compute a static facet");return new o0(e,this,1,t)}computeN(e,t){if(this.isStatic)throw Error("Can't compute a static facet");return new o0(e,this,2,t)}from(e,t){return t||(t=e=>e),this.compute([e],n=>t(n.field(e)))}}function o1(e,t){return e==t||e.length==t.length&&e.every((e,n)=>e===t[n])}class o0{constructor(e,t,n,r){this.dependencies=e,this.facet=t,this.type=n,this.value=r,this.id=oK++}dynamicSlot(e){var t;let n=this.value,r=this.facet.compareInput,i=this.id,a=e[i]>>1,o=2==this.type,s=!1,l=!1,u=[];for(let n of this.dependencies)"doc"==n?s=!0:"selection"==n?l=!0:((null!==(t=e[n.id])&&void 0!==t?t:1)&1)==0&&u.push(e[n.id]);return{create:e=>(e.values[a]=n(e),1),update(e,t){if(s&&t.docChanged||l&&(t.docChanged||t.selection)||o5(e,u)){let t=n(e);if(o?!o2(t,e.values[a],r):!r(t,e.values[a]))return e.values[a]=t,1}return 0},reconfigure:(e,t)=>{let s=n(e),l=t.config.address[i];if(null!=l){let n=si(t,l);if(this.dependencies.every(n=>n instanceof oJ?t.facet(n)===e.facet(n):!(n instanceof o4)||t.field(n,!1)==e.field(n,!1))||(o?o2(s,n,r):r(s,n)))return e.values[a]=n,0}return e.values[a]=s,1}}}}function o2(e,t,n){if(e.length!=t.length)return!1;for(let r=0;re===t),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(o9).find(e=>e.field==this);return((null==t?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,n)=>{let r=e.values[t],i=this.updateF(r,n);return this.compareF(r,i)?0:(e.values[t]=i,1)},reconfigure:(e,n)=>null!=n.config.address[this.id]?(e.values[t]=n.field(this),0):(e.values[t]=this.create(e),1)}}init(e){return[this,o9.of({field:this,create:e})]}get extension(){return this}}let o3={lowest:4,low:3,default:2,high:1,highest:0};function o8(e){return t=>new o7(t,e)}let o6={highest:o8(o3.highest),high:o8(o3.high),default:o8(o3.default),low:o8(o3.low),lowest:o8(o3.lowest)};class o7{constructor(e,t){this.inner=e,this.prec=t}}class se{of(e){return new st(this,e)}reconfigure(e){return se.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class st{constructor(e,t){this.compartment=e,this.inner=t}}class sn{constructor(e,t,n,r,i,a){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=r,this.staticValues=i,this.facets=a,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,t,n){let r,i,a=[],o=Object.create(null),s=new Map;for(let n of(r=[[],[],[],[],[]],i=new Map,!function e(n,a){let o=i.get(n);if(null!=o){if(o<=a)return;let e=r[o].indexOf(n);e>-1&&r[o].splice(e,1),n instanceof st&&s.delete(n.compartment)}if(i.set(n,a),Array.isArray(n))for(let t of n)e(t,a);else if(n instanceof st){if(s.has(n.compartment))throw RangeError("Duplicate use of compartment in extensions");let r=t.get(n.compartment)||n.inner;s.set(n.compartment,r),e(r,a)}else if(n instanceof o7)e(n.inner,n.prec);else if(n instanceof o4)r[a].push(n),n.provides&&e(n.provides,a);else if(n instanceof o0)r[a].push(n),n.facet.extensions&&e(n.facet.extensions,a);else{let t=n.extension;if(!t)throw Error(`Unrecognized extension value in extension set (${n}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);e(t,a)}}(e,o3.default),r.reduce((e,t)=>e.concat(t))))n instanceof o4?a.push(n):(o[n.facet.id]||(o[n.facet.id]=[])).push(n);let l=Object.create(null),u=[],c=[];for(let e of a)l[e.id]=c.length<<1,c.push(t=>e.slot(t));let d=null==n?void 0:n.config.facets;for(let e in o){let t=o[e],r=t[0].facet,i=d&&d[e]||[];if(t.every(e=>0==e.type)){if(l[r.id]=u.length<<1|1,o1(i,t))u.push(n.facet(r));else{let e=r.combine(t.map(e=>e.value));u.push(n&&r.compare(e,n.facet(r))?n.facet(r):e)}}else{for(let e of t)0==e.type?(l[e.id]=u.length<<1|1,u.push(e.value)):(l[e.id]=c.length<<1,c.push(t=>e.dynamicSlot(t)));l[r.id]=c.length<<1,c.push(e=>(function(e,t,n){let r=n.map(t=>e[t.id]),i=n.map(e=>e.type),a=r.filter(e=>!(1&e)),o=e[t.id]>>1;function s(e){let n=[];for(let t=0;te(l));return new sn(e,s,h,l,u,o)}}function sr(e,t){if(1&t)return 2;let n=t>>1,r=e.status[n];if(4==r)throw Error("Cyclic dependency between fields and/or facets");if(2&r)return r;e.status[n]=4;let i=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|i}function si(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}let sa=oJ.define(),so=oJ.define({combine:e=>e.some(e=>e),static:!0}),ss=oJ.define({combine:e=>e.length?e[0]:void 0,static:!0}),sl=oJ.define(),su=oJ.define(),sc=oJ.define(),sd=oJ.define({combine:e=>!!e.length&&e[0]});class sh{constructor(e,t){this.type=e,this.value=t}static define(){return new sp}}class sp{of(e){return new sh(this,e)}}class sf{constructor(e){this.map=e}of(e){return new sm(this,e)}}class sm{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return void 0===t?void 0:t==this.value?this:new sm(this.type,t)}is(e){return this.type==e}static define(e={}){return new sf(e.map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let r of e){let e=r.map(t);e&&n.push(e)}return n}}sm.reconfigure=sm.define(),sm.appendConfig=sm.define();class sg{constructor(e,t,n,r,i,a){this.startState=e,this.changes=t,this.selection=n,this.effects=r,this.annotations=i,this.scrollIntoView=a,this._doc=null,this._state=null,n&&oV(n,t.newLength),i.some(e=>e.type==sg.time)||(this.annotations=i.concat(sg.time.of(Date.now())))}static create(e,t,n,r,i,a){return new sg(e,t,n,r,i,a)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(sg.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&"."==t[e.length]))}}function sO(e,t,n){var r;let i,a,o;return n?(i=t.changes,a=oz.empty(t.changes.length),o=e.changes.compose(t.changes)):(i=t.changes.map(e.changes),a=e.changes.mapDesc(t.changes,!0),o=e.changes.compose(i)),{changes:o,selection:t.selection?t.selection.map(a):null===(r=e.selection)||void 0===r?void 0:r.map(i),effects:sm.mapEffects(e.effects,i).concat(sm.mapEffects(t.effects,a)),annotations:e.annotations.length?e.annotations.concat(t.annotations):t.annotations,scrollIntoView:e.scrollIntoView||t.scrollIntoView}}function sb(e,t,n){let r=t.selection,i=sv(t.annotations);return t.userEvent&&(i=i.concat(sg.userEvent.of(t.userEvent))),{changes:t.changes instanceof oz?t.changes:oz.of(t.changes||[],n,e.facet(ss)),selection:r&&(r instanceof oX?r:oX.single(r.anchor,r.head)),effects:sv(t.effects),annotations:i,scrollIntoView:!!t.scrollIntoView}}sg.time=sh.define(),sg.userEvent=sh.define(),sg.addToHistory=sh.define(),sg.remote=sh.define();let sy=[];function sv(e){return null==e?sy:Array.isArray(e)?e:[e]}var sx=((_R=sx||(sx={}))[_R.Word=0]="Word",_R[_R.Space=1]="Space",_R[_R.Other=2]="Other",_R);let sT=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;try{l=RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(e){}class sk{constructor(e,t,n,r,i,a){this.config=e,this.doc=t,this.selection=n,this.values=r,this.status=e.statusTemplate.slice(),this.computeSlot=i,a&&(a._state=this);for(let e=0;e=0;i--){let a=n[i](e);a&&Object.keys(a).length&&(r=sO(e,sb(t,a,e.changes.newLength),!0))}return r==e?e:sg.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}(r?function(t){let n=t.startState,r=!0;for(let e of n.facet(sl)){let n=e(t);if(!1===n){r=!1;break}Array.isArray(n)&&(r=!0===r?n:function(e,t){let n=[];for(let r=0,i=0;;){let a,o;if(r=e[r]))a=e[r++],o=e[r++];else{if(!(i=0;r--){let a=i[r](t);t=a instanceof sg?a:Array.isArray(a)&&1==a.length&&a[0]instanceof sg?a[0]:e(n,sv(a),!1)}return t}(a):a)}(this,e,!0)}applyTransaction(e){let t,n=this.config,{base:r,compartments:i}=n;for(let t of e.effects)t.is(se.reconfigure)?(n&&(i=new Map,n.compartments.forEach((e,t)=>i.set(t,e)),n=null),i.set(t.value.compartment,t.value.extension)):t.is(sm.reconfigure)?(n=null,r=t.value):t.is(sm.appendConfig)&&(n=null,r=sv(r).concat(t.value));n?t=e.startState.values.slice():(n=sn.resolve(r,i,this),t=new sk(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(e,t)=>t.reconfigure(e,this),null).values),new sk(n,e.newDoc,e.newSelection,t,(t,n)=>n.update(t,e),e)}replaceSelection(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:oX.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),r=this.changes(n.changes),i=[n.range],a=sv(n.effects);for(let n=1;ni.spec.fromJSON(a,e)))}return sk.create({doc:e.doc,selection:oX.fromJSON(e.selection),extensions:t.extensions?r.concat([t.extensions]):r})}static create(e={}){let t=sn.resolve(e.extensions||[],new Map),n=e.doc instanceof ox?e.doc:ox.of((e.doc||"").split(t.staticFacet(sk.lineSeparator)||oF)),r=e.selection?e.selection instanceof oX?e.selection:oX.single(e.selection.anchor,e.selection.head):oX.single(0);return oV(r,n.length),t.staticFacet(so)||(r=r.asSingle()),new sk(t,n,r,t.dynamicSlots.map(()=>null),(e,t)=>t.create(e),null)}get tabSize(){return this.facet(sk.tabSize)}get lineBreak(){return this.facet(sk.lineSeparator)||"\n"}get readOnly(){return this.facet(sd)}phrase(e,...t){for(let t of this.facet(sk.phrases))if(Object.prototype.hasOwnProperty.call(t,e)){e=t[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(e,n)=>{if("$"==n)return"$";let r=+(n||1);return r>t.length?e:t[r-1]})),e}languageDataAt(e,t,n=-1){let r=[];for(let i of this.facet(sa))for(let a of i(this,t,n))Object.prototype.hasOwnProperty.call(a,e)&&r.push(a[e]);return r}charCategorizer(e){var t;return t=this.languageDataAt("wordChars",e).join(""),e=>{if(!/\S/.test(e))return sx.Space;if(function(e){if(l)return l.test(e);for(let t=0;t"\x80"&&(n.toUpperCase()!=n.toLowerCase()||sT.test(n)))return!0}return!1}(e))return sx.Word;for(let n=0;n-1)return sx.Word;return sx.Other}}wordAt(e){let{text:t,from:n,length:r}=this.doc.lineAt(e),i=this.charCategorizer(e),a=e-n,o=e-n;for(;a>0;){let e=oP(t,a,!1);if(i(t.slice(e,a))!=sx.Word)break;a=e}for(;oe.length?e[0]:4}),sk.lineSeparator=ss,sk.readOnly=sd,sk.phrases=oJ.define({compare(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length==r.length&&n.every(n=>e[n]==t[n])}}),sk.languageData=sa,sk.changeFilter=sl,sk.transactionFilter=su,sk.transactionExtender=sc,se.reconfigure=sm.define();class sS{eq(e){return this==e}range(e,t=e){return sw.create(e,t,this)}}sS.prototype.startSide=sS.prototype.endSide=0,sS.prototype.point=!1,sS.prototype.mapMode=oB.TrackDel;class sw{constructor(e,t,n){this.from=e,this.to=t,this.value=n}static create(e,t,n){return new sw(e,t,n)}}function sE(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class sC{constructor(e,t,n,r){this.from=e,this.to=t,this.value=n,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(e,t,n,r=0){let i=n?this.to:this.from;for(let a=r,o=i.length;;){if(a==o)return a;let r=a+o>>1,s=i[r]-e||(n?this.value[r].endSide:this.value[r].startSide)-t;if(r==a)return s>=0?a:o;s>=0?o=r:a=r+1}}between(e,t,n,r){for(let i=this.findIndex(t,-1e9,!0),a=this.findIndex(n,1e9,!1,i);i(h=t.mapPos(c,l.endSide))||d==h&&l.startSide>0&&l.endSide<=0)continue;0>(h-d||l.endSide-l.startSide)||(a<0&&(a=d),l.point&&(o=Math.max(o,h-d)),n.push(l),r.push(d-a),i.push(h-a))}return{mapped:n.length?new sC(r,i,n,o):null,pos:a}}}class sA{constructor(e,t,n,r){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=r}static create(e,t,n,r){return new sA(e,t,n,r)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:n=!1,filterFrom:r=0,filterTo:i=this.length}=e,a=e.filter;if(0==t.length&&!a)return this;if(n&&(t=t.slice().sort(sE)),this.isEmpty)return t.length?sA.of(t):this;let o=new sI(this,null,-1).goto(0),s=0,l=[],u=new sR;for(;o.value||s=0){let e=t[s++];u.addInner(e.from,e.to,e.value)||l.push(e)}else 1==o.rangeIndex&&o.chunkIndexthis.chunkEnd(o.chunkIndex)||io.to||i=i&&e<=i+a.length&&!1===a.between(i,e-i,t-i,n))return}this.nextLayer.between(e,t,n)}}iter(e=0){return sN.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return sN.from(e).goto(t)}static compare(e,t,n,r,i=-1){let a=e.filter(e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i),o=t.filter(e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i),s=sP(a,o,n),l=new sL(a,s,i),u=new sL(o,s,i);n.iterGaps((e,t,n)=>sD(l,e,u,t,n,r)),n.empty&&0==n.length&&sD(l,0,u,0,0,r)}static eq(e,t,n=0,r){null==r&&(r=1e9);let i=e.filter(e=>!e.isEmpty&&0>t.indexOf(e)),a=t.filter(t=>!t.isEmpty&&0>e.indexOf(t));if(i.length!=a.length)return!1;if(!i.length)return!0;let o=sP(i,a),s=new sL(i,o,0).goto(n),l=new sL(a,o,0).goto(n);for(;;){if(s.to!=l.to||!sQ(s.active,l.active)||s.point&&(!l.point||!s.point.eq(l.point)))return!1;if(s.to>r)return!0;s.next(),l.next()}}static spans(e,t,n,r,i=-1){let a=new sL(e,null,i).goto(t),o=t,s=a.openStart;for(;;){let e=Math.min(a.to,n);if(a.point?(r.point(o,e,a.point,a.activeForPoint(a.to),s,a.pointRank),s=a.openEnd(e)+(a.to>e?1:0)):e>o&&(r.span(o,e,a.active,s),s=a.openEnd(e)),a.to>n)break;o=a.to,a.next()}return s}static of(e,t=!1){let n=new sR;for(let r of e instanceof sw?[e]:t?function(e){if(e.length>1)for(let t=e[0],n=1;n0)return e.slice().sort(sE);t=r}return e}(e):e)n.add(r.from,r.to,r.value);return n.finish()}}sA.empty=new sA([],[],null,-1),sA.empty.nextLayer=sA.empty;class sR{constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}finishChunk(e){this.chunks.push(new sC(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}add(e,t,n){this.addInner(e,t,n)||(this.nextLayer||(this.nextLayer=new sR)).add(e,t,n)}addInner(e,t,n){let r=e-this.lastTo||n.startSide-this.last.endSide;if(r<=0&&0>(e-this.lastFrom||n.startSide-this.last.startSide))throw Error("Ranges must be added sorted by `from` position and `startSide`");return!(r<0)&&(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=t,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if(0>(e-this.lastTo||t.value[0].startSide-this.last.endSide))return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,!0}finish(){return this.finishInner(sA.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;let t=sA.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function sP(e,t,n){let r=new Map;for(let t of e)for(let e=0;e(this.to-e||this.endSide-t)&&this.gotoInner(e,t,!0)}next(){for(;;){if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}{let e=this.layer.chunkPos[this.chunkIndex],t=this.layer.chunk[this.chunkIndex],n=e+t.from[this.rangeIndex];if(this.from=n,this.to=e+t.to[this.rangeIndex],this.value=t.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=n&&r.push(new sI(a,t,n,i));return 1==r.length?r[0]:new sN(r)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let n of this.heap)n.goto(e,t);for(let e=this.heap.length>>1;e>=0;e--)s$(this.heap,e);return this.next(),this}forward(e,t){for(let n of this.heap)n.forward(e,t);for(let e=this.heap.length>>1;e>=0;e--)s$(this.heap,e);0>(this.to-e||this.value.endSide-t)&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),s$(this.heap,0)}}}function s$(e,t){for(let n=e[t];;){let r=(t<<1)+1;if(r>=e.length)break;let i=e[r];if(r+1=0&&(i=e[r+1],r++),0>n.compare(i))break;e[r]=n,e[t]=i,t=r}}class sL{constructor(e,t,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=sN.from(e,t,n)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&0>(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t);)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){sM(this.active,e),sM(this.activeTo,e),sM(this.activeRank,e),this.minActive=sB(this.active,this.activeTo)}addActive(e){let t=0,{value:n,to:r,rank:i}=this.cursor;for(;t-1&&0>(this.activeTo[i]-this.cursor.from||this.active[i].endSide-this.cursor.startSide)){if(this.activeTo[i]>e){this.to=this.activeTo[i],this.endSide=this.active[i].endSide;break}this.removeActive(i),n&&sM(n,i)}else if(this.cursor.value){if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let i=this.cursor.value;if(i.point){if(t&&this.cursor.to==this.to&&this.cursor.from=0&&!(this.activeRank[n]e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&t.push(this.active[n]);return t.reverse()}openEnd(e){let t=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)t++;return t}}function sD(e,t,n,r,i,a){e.goto(t),n.goto(r);let o=r+i,s=r,l=r-t;for(;;){let t=e.to+l-n.to||e.endSide-n.endSide,r=t<0?e.to+l:n.to,i=Math.min(r,o);if(e.point||n.point?e.point&&n.point&&(e.point==n.point||e.point.eq(n.point))&&sQ(e.activeForPoint(e.to+l),n.activeForPoint(n.to))||a.comparePoint(s,i,e.point,n.point):i>s&&!sQ(e.active,n.active)&&a.compareRange(s,i,e.active,n.active),r>o)break;s=r,t<=0&&e.next(),t>=0&&n.next()}}function sQ(e,t){if(e.length!=t.length)return!1;for(let n=0;n=t;n--)e[n+1]=e[n];e[t]=n}function sB(e,t){let n=-1,r=1e9;for(let i=0;i(t[i]-r||e[i].endSide-e[n].endSide)&&(n=i,r=t[i]);return n}function sU(e,t,n=e.length){let r=0;for(let i=0;it.map(t=>e.replace(/&/,t))).reduce((e,t)=>e.concat(t)),o,a);else if(o&&"object"==typeof o){if(!l)throw RangeError("The value of a property ("+n+") should be a primitive value.");e(r(n),o,s,u)}else null!=o&&s.push(n.replace(/_.*/,"").replace(/[A-Z]/g,e=>"-"+e.toLowerCase())+": "+o+";")}(s.length||u)&&a.push((!n||l||o?t:t.map(n)).join(", ")+" {"+s.join(" ")+"}")}(r(t),e[t],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let e=sW[sz]||1;return sW[sz]=e+1,"ͼ"+e.toString(36)}static mount(e,t,n){let r=e[sj],i=n&&n.nonce;r?i&&r.setNonce(i):r=new sG(e,i),r.mount(Array.isArray(t)?t:[t],e)}}let sq=new Map;class sG{constructor(e,t){let n=e.ownerDocument||e,r=n.defaultView;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let t=sq.get(n);if(t)return e[sj]=t;this.sheet=new r.CSSStyleSheet,sq.set(n,this)}else this.styleTag=n.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[sj]=this}mount(e,t){let n=this.sheet,r=0,i=0;for(let t=0;t-1&&(this.modules.splice(o,1),i--,o=-1),-1==o){if(this.modules.splice(i++,0,a),n)for(let e=0;et.adoptedStyleSheets.indexOf(this.sheet)&&(t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets]);else{let e="";for(let t=0;t",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},sX="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),sV="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),sK=0;sK<10;sK++)sH[48+sK]=sH[96+sK]=String(sK);for(var sK=1;sK<=24;sK++)sH[sK+111]="F"+sK;for(var sK=65;sK<=90;sK++)sH[sK]=String.fromCharCode(sK+32),sY[sK]=String.fromCharCode(sK);for(var sJ in sH)sY.hasOwnProperty(sJ)||(sY[sJ]=sH[sJ]);function s1(e){return(11==e.nodeType?e.getSelection?e:e.ownerDocument:e).getSelection()}function s0(e,t){return!!t&&(e==t||e.contains(1!=t.nodeType?t.parentNode:t))}function s2(e,t){if(!t.anchorNode)return!1;try{return s0(e,t.anchorNode)}catch(e){return!1}}function s5(e){return 3==e.nodeType?lr(e,0,e.nodeValue.length).getClientRects():1==e.nodeType?e.getClientRects():[]}function s9(e,t,n,r){return!!n&&(s3(e,t,n,r,-1)||s3(e,t,n,r,1))}function s4(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t}function s3(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:s8(e))){if("DIV"==e.nodeName)return!1;let n=e.parentNode;if(!n||1!=n.nodeType)return!1;t=s4(e)+(i<0?0:1),e=n}else{if(1!=e.nodeType||1==(e=e.childNodes[t+(i<0?-1:0)]).nodeType&&"false"==e.contentEditable)return!1;t=i<0?s8(e):0}}}function s8(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}let s6={left:0,right:0,top:0,bottom:0};function s7(e,t){let n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}class le{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){this.set(e.anchorNode,e.anchorOffset,e.focusNode,e.focusOffset)}set(e,t,n,r){this.anchorNode=e,this.anchorOffset=t,this.focusNode=n,this.focusOffset=r}}let lt=null;function ln(e){if(e.setActive)return e.setActive();if(lt)return e.focus(lt);let t=[];for(let n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(null==lt?{get preventScroll(){return lt={preventScroll:!0},!0}}:void 0),!lt){lt=!1;for(let e=0;et)return n.domBoundsAround(e,t,l);if(c>=e&&-1==r&&(r=s,i=l),l>t&&n.dom.parentNode==this.dom){a=s,o=u;break}u=c,l=c+n.breakAfter}return{from:i,to:o<0?n+this.length:o,startDOM:(r?this.children[r-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:a=0?this.children[a].dom:null}}markDirty(e=!1){this.dirty|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.dirty|=2),1&t.dirty)return;t.dirty|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.dirty&&this.markParentsDirty(!0))}setDOM(e){this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t,n=ls){this.markDirty();for(let n=e;nthis.pos||e==this.pos&&(t>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let n=this.children[--this.i];this.pos-=n.length+n.breakAfter}}}function ld(e,t,n,r,i,a,o,s,l){let{children:u}=e,c=u.length?u[t]:null,d=a.length?a[a.length-1]:null,h=d?d.breakAfter:o;if(!(t==r&&c&&!o&&!h&&a.length<2&&c.merge(n,i,a.length?d:null,0==n,s,l))){if(r0&&(!o&&a.length&&c.merge(n,c.length,a[0],!1,s,0)?c.breakAfter=a.shift().breakAfter:(n2);var l_={mac:lk||/Mac/.test(lp.platform),windows:/Win/.test(lp.platform),linux:/Linux|X11/.test(lp.platform),ie:lb,ie_version:lg?lf.documentMode||6:lO?+lO[1]:lm?+lm[1]:0,gecko:ly,gecko_version:ly?+(/Firefox\/(\d+)/.exec(lp.userAgent)||[0,0])[1]:0,chrome:!!lv,chrome_version:lv?+lv[1]:0,ios:lk,android:/Android\b/.test(lp.userAgent),webkit:lx,safari:lT,webkit_version:lx?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=lf.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};class lS extends ll{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(e&&e.node==this.dom&&(e.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){3==e.nodeType&&this.createDOM(e)}merge(e,t,n){return(!n||n instanceof lS&&!(this.length-(t-e)+n.length>256))&&(this.text=this.text.slice(0,e)+(n?n.text:"")+this.text.slice(t),this.markDirty(),!0)}split(e){let t=new lS(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new lo(this.dom,e)}domBoundsAround(e,t,n){return{from:n,to:n+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return lE(this.dom,e,t)}}class lw extends ll{constructor(e,t=[],n=0){for(let r of(super(),this.mark=e,this.children=t,this.length=n,t))r.setParent(this)}setAttrs(e){if(la(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.dirty|=6)}sync(e){this.dom?4&this.dirty&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e)}merge(e,t,n,r,i,a){return(!n||!!(n instanceof lw&&n.mark.eq(this.mark))&&(!e||!(i<=0))&&(!(te&&t.push(n=e&&(r=i),n=o,i++}let a=this.length-e;return this.length=e,r>-1&&(this.children.length=r,this.markDirty()),new lw(this.mark,t,a)}domAtPos(e){return lI(this.dom,this.children,e)}coordsAt(e,t){return lN(this,e,t)}}function lE(e,t,n){let r=e.nodeValue.length;t>r&&(t=r);let i=t,a=t,o=0;0==t&&n<0||t==r&&n>=0?!(l_.chrome||l_.gecko)&&(t?(i--,o=1):a=0)?0:s.length-1];return l_.safari&&!o&&0==l.width&&(l=Array.prototype.find.call(s,e=>e.width)||l),o?s7(l,o<0):l||null}class lC extends ll{constructor(e,t,n){super(),this.widget=e,this.length=t,this.side=n,this.prevWidget=null}static create(e,t,n){return new(e.customView||lC)(e,t,n)}split(e){let t=lC.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(){this.dom&&this.widget.updateDOM(this.dom)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(this.editorView)),this.dom.contentEditable="false")}getSide(){return this.side}merge(e,t,n,r,i,a){return(!n||n instanceof lC&&!!this.widget.compare(n.widget)&&(!(e>0)||!(i<=0))&&(!(t0?n.length-1:0;r=n[t],e>0?0!=t:t!=n.length-1&&!(r.top0?-1:1);return 0==e&&t>0||e==this.length&&t<=0?r:s7(r,0==e)}get isEditable(){return!1}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class lA extends lC{domAtPos(e){let{topView:t,text:n}=this.widget;return t?lR(e,0,t,n,(e,t)=>e.domAtPos(t),e=>new lo(n,Math.min(e,n.nodeValue.length))):new lo(n,Math.min(e,n.nodeValue.length))}sync(){this.setDOM(this.widget.toDOM())}localPosFromDOM(e,t){let{topView:n,text:r}=this.widget;return n?function e(t,n,r,i){if(r instanceof lw)for(let a of r.children){let r=0,o=s0(a.dom,i);if(s0(a.dom,t))return r+(o?e(t,n,a,i):a.localPosFromDOM(t,n));r+=o?i.nodeValue.length:a.length}else if(r.dom==i)return Math.min(n,i.nodeValue.length);return r.localPosFromDOM(t,n)}(e,t,n,r):Math.min(t,this.length)}ignoreMutation(){return!1}get overrideDOMText(){return null}coordsAt(e,t){let{topView:n,text:r}=this.widget;return n?lR(e,t,n,r,(e,t,n)=>e.coordsAt(t,n),(e,t)=>lE(r,e,t)):lE(r,e,t)}destroy(){var e;super.destroy(),null===(e=this.widget.topView)||void 0===e||e.destroy()}get isEditable(){return!0}}function lR(e,t,n,r,i,a){if(n instanceof lw){for(let o of n.children){let n=s0(o.dom,r),s=n?r.nodeValue.length:o.length;if(e=o.getSide())return n?lR(e,t,o,r,i,a):i(o,e,t);e-=s}return i(n,n.length,-1)}return n.dom==r?a(e,t):i(n,e,t)}class lP extends ll{constructor(e){super(),this.side=e}get length(){return 0}merge(){return!1}become(e){return e instanceof lP&&e.side==this.side}split(){return new lP(this.side)}sync(){if(!this.dom){let e=document.createElement("img");e.className="cm-widgetBuffer",e.setAttribute("aria-hidden","true"),this.setDOM(e)}}getSide(){return this.side}domAtPos(e){return lo.before(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){let t=this.dom.getBoundingClientRect(),n=function(e,t){let n=e.parent,r=n?n.children.indexOf(e):-1;for(;n&&r>=0;)if(t<0?r>0:r0?-1:1);return n&&n.topt.top?{left:t.left,right:t.right,top:n.top,bottom:n.bottom}:t}get overrideDOMText(){return ox.empty}}function lI(e,t,n){let r=0;for(let i=0;r=a.getSide())){if(n>i&&n0;r--){let n=t[r-1].dom;if(n.parentNode==e)return lo.after(n)}return new lo(e,0)}function lN(e,t,n){for(let r=0,i=0;i0?o>=t:o>t)&&(t0)){let e=0;if(o==r){if(0>=a.getSide())continue;e=n=-a.getSide()}let i=a.coordsAt(Math.max(0,t-r),n);return e&&i?s7(i,n<0):i}r=o}let r=e.dom.lastChild;if(!r)return e.dom.getBoundingClientRect();let i=s5(r);return i[i.length-1]||null}function l$(e,t){for(let n in e)"class"==n&&t.class?t.class+=" "+e.class:"style"==n&&t.style?t.style+=";"+e.style:t[n]=e[n];return t}function lL(e,t){if(e==t)return!0;if(!e||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(let i of n)if(-1==r.indexOf(i)||e[i]!==t[i])return!1;return!0}function lD(e,t,n){let r=null;if(t)for(let i in t)n&&i in n||e.removeAttribute(r=i);if(n)for(let i in n)t&&t[i]==n[i]||e.setAttribute(r=i,n[i]);return!!r}lS.prototype.children=lC.prototype.children=lP.prototype.children=ls;class lQ{eq(e){return!1}updateDOM(e){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return -1}ignoreEvent(e){return!0}get customView(){return null}destroy(e){}}var lM=((_P=lM||(lM={}))[_P.Text=0]="Text",_P[_P.WidgetBefore=1]="WidgetBefore",_P[_P.WidgetAfter=2]="WidgetAfter",_P[_P.WidgetRange=3]="WidgetRange",_P);class lF extends sS{constructor(e,t,n,r){super(),this.startSide=e,this.endSide=t,this.widget=n,this.spec=r}get heightRelevant(){return!1}static mark(e){return new lB(e)}static widget(e){let t=e.side||0,n=!!e.block;return t+=n?t>0?3e8:-4e8:t>0?1e8:-1e8,new lz(e,t,t,n,e.widget||null,!1)}static replace(e){let t=!!e.block,n,r;if(e.isBlockGap)n=-5e8,r=4e8;else{let{start:i,end:a}=lj(e,t);n=(i?t?-3e8:-1:5e8)-1,r=(a?t?2e8:1:-6e8)+1}return new lz(e,n,r,t,e.widget||null,!0)}static line(e){return new lU(e)}static set(e,t=!1){return sA.of(e,t)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}lF.none=sA.empty;class lB extends lF{constructor(e){let{start:t,end:n}=lj(e);super(t?-1:5e8,n?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){return this==e||e instanceof lB&&this.tagName==e.tagName&&this.class==e.class&&lL(this.attrs,e.attrs)}range(e,t=e){if(e>=t)throw RangeError("Mark decorations may not be empty");return super.range(e,t)}}lB.prototype.point=!1;class lU extends lF{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof lU&&lL(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}lU.prototype.mapMode=oB.TrackBefore,lU.prototype.point=!0;class lz extends lF{constructor(e,t,n,r,i,a){super(t,n,i,e),this.block=r,this.isReplace=a,this.mapMode=r?t<=0?oB.TrackBefore:oB.TrackAfter:oB.TrackDel}get type(){return this.startSide=5}eq(e){var t,n;return e instanceof lz&&((t=this.widget)==(n=e.widget)||!!(t&&n&&t.compare(n)))&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}function lj(e,t=!1){let{inclusiveStart:n,inclusiveEnd:r}=e;return null==n&&(n=e.inclusive),null==r&&(r=e.inclusive),{start:null!=n?n:t,end:null!=r?r:t}}function lW(e,t,n,r=0){let i=n.length-1;i>=0&&n[i]+r>=e?n[i]=Math.max(n[i],t):n.push(e,t)}lz.prototype.point=!0;class lZ extends ll{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,t,n,r,i,a){if(n){if(!(n instanceof lZ))return!1;this.dom||n.transferDOM(this)}return r&&this.setDeco(n?n.attrs:null),lh(this,e,t,n?n.children:[],i,a),!0}split(e){let t=new lZ;if(t.breakAfter=this.breakAfter,0==this.length)return t;let{i:n,off:r}=this.childPos(e);r&&(t.append(this.children[n].split(r),0),this.children[n].merge(r,this.children[n].length,null,!1,0,0),n++);for(let e=n;e0&&0==this.children[n-1].length;)this.children[--n].destroy();return this.children.length=n,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){lL(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){!function e(t,n,r){let i,{children:a}=t;r>0&&n instanceof lw&&a.length&&(i=a[a.length-1])instanceof lw&&i.mark.eq(n.mark)?e(i,n.children[0],r-1):(a.push(n),n.setParent(t)),t.length+=n.length}(this,e,t)}addLineDeco(e){let t=e.spec.attributes,n=e.spec.class;t&&(this.attrs=l$(t,this.attrs||{})),n&&(this.attrs=l$({class:n},this.attrs||{}))}domAtPos(e){return lI(this.dom,this.children,e)}reuseDOM(e){"DIV"==e.nodeName&&(this.setDOM(e),this.dirty|=6)}sync(e){var t;this.dom?4&this.dirty&&(la(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(lD(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e);let n=this.dom.lastChild;for(;n&&ll.get(n) instanceof lw;)n=n.lastChild;if(!n||!this.length||"BR"!=n.nodeName&&(null===(t=ll.get(n))||void 0===t?void 0:t.isEditable)==!1&&(!l_.ios||!this.children.some(e=>e instanceof lS))){let e=document.createElement("BR");e.cmIgnore=!0,this.dom.appendChild(e)}}measureTextSize(){if(0==this.children.length||this.length>20)return null;let e=0;for(let t of this.children){if(!(t instanceof lS))return null;let n=s5(t.dom);if(1!=n.length)return null;e+=n[0].width}return{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length}}coordsAt(e,t){return lN(this,e,t)}become(e){return!1}get type(){return lM.Text}static find(e,t){for(let n=0,r=0;n=t){if(i instanceof lZ)return i;if(a>t)break}r=a+i.breakAfter}return null}}class lq extends ll{constructor(e,t,n){super(),this.widget=e,this.length=t,this.type=n,this.breakAfter=0,this.prevWidget=null}merge(e,t,n,r,i,a){return(!n||n instanceof lq&&!!this.widget.compare(n.widget)&&(!(e>0)||!(i<=0))&&(!(t0;){if(this.textOff==this.text.length){let{value:t,lineBreak:n,done:r}=this.cursor.next(this.skip);if(this.skip=0,r)throw Error("Ran out of text content when drawing inline views");if(n){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer([]),this.curLine=null,e--;continue}this.text=t,this.textOff=0}let r=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(0,n)),this.getLine().append(lH(new lS(this.text.slice(this.textOff,this.textOff+r)),t),n),this.atCursorPos=!0,this.textOff+=r,e-=r,n=0}}span(e,t,n,r){this.buildText(t-e,n,r),this.pos=t,this.openStart<0&&(this.openStart=r)}point(e,t,n,r,i,a){if(this.disallowBlockEffectsFor[a]&&n instanceof lz){if(n.block)throw RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw RangeError("Decorations that replace line breaks may not be specified via plugins")}let o=t-e;if(n instanceof lz){if(n.block){let{type:e}=n;e!=lM.WidgetAfter||this.posCovered()||this.getLine(),this.addBlockWidget(new lq(n.widget||new lY("div"),o,e))}else{let a=lC.create(n.widget||new lY("span"),o,n.startSide),s=this.atCursorPos&&!a.isEditable&&i<=r.length&&(e0),l=!a.isEditable&&(ee.some(e=>e)});class l5{constructor(e,t="nearest",n="nearest",r=5,i=5){this.range=e,this.y=t,this.x=n,this.yMargin=r,this.xMargin=i}map(e){return e.empty?this:new l5(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin)}}let l9=sm.define({map:(e,t)=>e.map(t)});function l4(e,t,n){let r=e.facet(lJ);r.length?r[0](t):window.onerror?window.onerror(String(t),n,void 0,void 0,t):n?console.error(n+":",t):console.error(t)}let l3=oJ.define({combine:e=>!e.length||e[0]}),l8=0,l6=oJ.define();class l7{constructor(e,t,n,r){this.id=e,this.create=t,this.domEventHandlers=n,this.extension=r(this)}static define(e,t){let{eventHandlers:n,provide:r,decorations:i}=t||{};return new l7(l8++,e,n,e=>{let t=[l6.of(e)];return i&&t.push(ur.of(t=>{let n=t.plugin(e);return n?i(n):lF.none})),r&&t.push(r(e)),t})}static fromClass(e,t){return l7.define(t=>new e(t),t)}}class ue{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(t){if(l4(e.state,t,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(e){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(t){l4(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(null===(t=this.value)||void 0===t?void 0:t.destroy)try{this.value.destroy()}catch(t){l4(e.state,t,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}let ut=oJ.define(),un=oJ.define(),ur=oJ.define(),ui=oJ.define(),ua=oJ.define(),uo=oJ.define();class us{constructor(e,t,n,r){this.fromA=e,this.toA=t,this.fromB=n,this.toB=r}join(e){return new us(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,n=this;for(;t>0;t--){let r=e[t-1];if(!(r.fromA>n.toA)){if(r.toAu)break;i+=2}if(!s)return n;new us(s.fromA,s.toA,s.fromB,s.toB).addToSet(n),a=s.toA,o=s.toB}}}class ul{constructor(e,t,n){for(let r of(this.view=e,this.state=t,this.transactions=n,this.flags=0,this.startState=e.state,this.changes=oz.empty(this.startState.doc.length),n))this.changes=this.changes.compose(r.changes);let r=[];this.changes.iterChangedRanges((e,t,n,i)=>r.push(new us(e,t,n,i))),this.changedRanges=r;let i=e.hasFocus;i!=e.inputState.notifiedFocused&&(e.inputState.notifiedFocused=i,this.flags|=1)}static create(e,t,n){return new ul(e,t,n)}get viewportChanged(){return(4&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(10&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return 0==this.flags&&0==this.transactions.length}}var uu=((_I=uu||(uu={}))[_I.LTR=0]="LTR",_I[_I.RTL=1]="RTL",_I);let uc=uu.LTR,ud=uu.RTL;function uh(e){let t=[];for(let n=0;n=t){if(o.level==n)return a;(i<0||(0!=r?r<0?o.fromt:e[i].level>o.level))&&(i=a)}}if(i<0)throw RangeError("Index out of range");return i}}let uy=[];function uv(e){return[new ub(0,e,0)]}let ux="";class uT{constructor(e,t){this.points=e,this.text="",this.lineSeparator=t.facet(sk.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+="￿"}readRange(e,t){if(!e)return this;let n=e.parentNode;for(let r=e;;){this.findPointBefore(n,r),this.readNode(r);let e=r.nextSibling;if(e==t)break;let i=ll.get(r),a=ll.get(e);(i&&a?i.breakAfter:(i?i.breakAfter:uk(r))||uk(e)&&("BR"!=r.nodeName||r.cmIgnore))&&this.lineBreak(),r=e}return this.findPointBefore(n,t),this}readTextNode(e){let t=e.nodeValue;for(let n of this.points)n.node==e&&(n.pos=this.text.length+Math.min(n.offset,t.length));for(let n=0,r=this.lineSeparator?null:/\r\n?|\n/g;;){let i=-1,a=1,o;if(this.lineSeparator?(i=t.indexOf(this.lineSeparator,n),a=this.lineSeparator.length):(o=r.exec(t))&&(i=o.index,a=o[0].length),this.append(t.slice(n,i<0?t.length:i)),i<0)break;if(this.lineBreak(),a>1)for(let t of this.points)t.node==e&&t.pos>this.text.length&&(t.pos-=a-1);n=i+a}}readNode(e){if(e.cmIgnore)return;let t=ll.get(e),n=t&&t.overrideDOMText;if(null!=n){this.findPointInside(e,n.length);for(let e=n.iter();!e.next().done;)e.lineBreak?this.lineBreak():this.append(e.value)}else 3==e.nodeType?this.readTextNode(e):"BR"==e.nodeName?e.nextSibling&&this.lineBreak():1==e.nodeType&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let n of this.points)n.node==e&&e.childNodes[n.offset]==t&&(n.pos=this.text.length)}findPointInside(e,t){for(let n of this.points)(3==e.nodeType?n.node==e:e.contains(n.node))&&(n.pos=this.text.length+Math.min(t,n.offset))}}function uk(e){return 1==e.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}class u_{constructor(e,t){this.node=e,this.offset=t,this.pos=-1}}class uS extends ll{constructor(e){super(),this.view=e,this.compositionDeco=lF.none,this.decorations=[],this.dynamicDecorationMap=[],this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new lZ],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new us(0,0,0,e.state.doc.length)],0)}get root(){return this.view.root}get editorView(){return this.view}get length(){return this.view.state.doc.length}update(e){var t,n,r;let i,a=e.changedRanges;this.minWidth>0&&a.length&&(a.every(({fromA:e,toA:t})=>tthis.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.view.inputState.composing<0?this.compositionDeco=lF.none:(e.transactions.length||this.dirty)&&(this.compositionDeco=function(e,t){let n=uE(e);if(!n)return lF.none;let{from:r,to:i,node:a,text:o}=n,s=t.mapPos(r,1),l=Math.max(s,t.mapPos(i,-1)),{state:u}=e,c=3==a.nodeType?a.nodeValue:new uT([],u).readRange(a.firstChild,null).text;if(l-s{this.dom.style.height=this.view.viewState.contentHeight+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let e=l_.chrome||l_.ios?{node:n.selectionRange.focusNode,written:!1}:void 0;this.sync(e),this.dirty=0,e&&(e.written||n.selectionRange.focusNode!=e.node)&&(this.forceSelection=!0),this.dom.style.height=""});let r=[];if(this.view.viewport.from||this.view.viewport.to=0?e[t]:null;if(!r)break;let{fromA:i,toA:a,fromB:o,toB:s}=r,{content:l,breakAtStart:u,openStart:c,openEnd:d}=lG.build(this.view.state.doc,o,s,this.decorations,this.dynamicDecorationMap),{i:h,off:p}=n.findPos(a,1),{i:f,off:m}=n.findPos(i,-1);ld(this,f,m,h,p,l,u,c,d)}}updateSelection(e=!1,t=!1){var n;if(e&&this.view.observer.readSelectionRange(),!(t||this.mayControlSelection())||l_.ios&&this.view.inputState.rapidCompositionStart)return;let r=this.forceSelection;this.forceSelection=!1;let i=this.view.state.selection.main,a=this.domAtPos(i.anchor),o=i.empty?a:this.domAtPos(i.head);if(l_.gecko&&i.empty&&1==(n=a).node.nodeType&&n.node.firstChild&&(0==n.offset||"false"==n.node.childNodes[n.offset-1].contentEditable)&&(n.offset==n.node.childNodes.length||"false"==n.node.childNodes[n.offset].contentEditable)){let e=document.createTextNode("");this.view.observer.ignore(()=>a.node.insertBefore(e,a.node.childNodes[a.offset]||null)),a=o=new lo(e,0),r=!0}let s=this.view.observer.selectionRange;!r&&s.focusNode&&s9(a.node,a.offset,s.anchorNode,s.anchorOffset)&&s9(o.node,o.offset,s.focusNode,s.focusOffset)||(this.view.observer.ignore(()=>{l_.android&&l_.chrome&&this.dom.contains(s.focusNode)&&function(e,t){for(let n=e;n&&n!=t;n=n.assignedSlot||n.parentNode)if(1==n.nodeType&&"false"==n.contentEditable)return!0;return!1}(s.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let e=s1(this.root);if(i.empty){if(l_.gecko){var t,n;let e=(t=a.node,n=a.offset,1!=t.nodeType?0:(n&&"false"==t.childNodes[n-1].contentEditable?1:0)|(ni.head&&([a,o]=[o,a]),t.setEnd(o.node,o.offset),t.setStart(a.node,a.offset),e.removeAllRanges(),e.addRange(t)}}),this.view.observer.setSelectionRange(a,o)),this.impreciseAnchor=a.precise?null:new lo(s.anchorNode,s.anchorOffset),this.impreciseHead=o.precise?null:new lo(s.focusNode,s.focusOffset)}enforceCursorAssoc(){if(this.compositionDeco.size)return;let e=this.view.state.selection.main,t=s1(this.root);if(!e.empty||!e.assoc||!t.modify)return;let n=lZ.find(this,e.head);if(!n)return;let r=n.posAtStart;if(e.head==r||e.head==r+n.length)return;let i=this.coordsAt(e.head,-1),a=this.coordsAt(e.head,1);if(!i||!a||i.bottom>a.top)return;let o=this.domAtPos(e.head+e.assoc);t.collapse(o.node,o.offset),t.modify("move",e.assoc<0?"forward":"backward","lineboundary")}mayControlSelection(){return this.view.state.facet(l3)?this.root.activeElement==this.dom:s2(this.dom,this.view.observer.selectionRange)}nearest(e){for(let t=e;t;){let e=ll.get(t);if(e&&e.rootView==this)return e;t=t.parentNode}return null}posFromDOM(e,t){let n=this.nearest(e);if(!n)throw RangeError("Trying to find position for a DOM position outside of the document");return n.localPosFromDOM(e,t)+n.posAtStart}domAtPos(e){let{i:t,off:n}=this.childCursor().findPos(e,-1);for(;ta||e==a&&i.type!=lM.WidgetBefore&&i.type!=lM.WidgetAfter&&(!r||2==t||this.children[r-1].breakAfter||this.children[r-1].type==lM.WidgetBefore&&t>-2))return i.coordsAt(e-a,t);n=a}}measureVisibleLineHeights(e){let t=[],{from:n,to:r}=e,i=this.view.contentDOM.clientWidth,a=i>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,o=-1,s=this.view.textDirection==uu.LTR;for(let e=0,l=0;lr)break;if(e>=n){let n=u.dom.getBoundingClientRect();if(t.push(n.height),a){let t=u.dom.lastChild,r=t?s5(t):[];if(r.length){let t=r[r.length-1],a=s?t.right-n.left:n.right-t.left;a>o&&(o=a,this.minWidth=i,this.minWidthFrom=e,this.minWidthTo=c)}}}e=c+u.breakAfter}return t}textDirectionAt(e){let{i:t}=this.childPos(e,1);return"rtl"==getComputedStyle(this.children[t].dom).direction?uu.RTL:uu.LTR}measureTextSize(){for(let e of this.children)if(e instanceof lZ){let t=e.measureTextSize();if(t)return t}let e=document.createElement("div"),t,n;return e.className="cm-line",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let r=s5(e.firstChild)[0];t=e.getBoundingClientRect().height,n=r?r.width/27:7,e.remove()}),{lineHeight:t,charWidth:n}}childCursor(e=this.length){let t=this.children.length;return t&&(e-=this.children[--t].length),new lc(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let n=0,r=0;;r++){let i=r==t.viewports.length?null:t.viewports[r],a=i?i.from-1:this.length;if(a>n){let r=t.lineBlockAt(a).bottom-t.lineBlockAt(n).top;e.push(lF.replace({widget:new uw(r),block:!0,inclusive:!0,isBlockGap:!0}).range(n,a))}if(!i)break;n=i.to+1}return lF.set(e)}updateDeco(){let e=this.view.state.facet(ur).map((e,t)=>(this.dynamicDecorationMap[t]="function"==typeof e)?e(this.view):e);for(let t=e.length;tt.anchor?-1:1),r;if(!n)return;!t.empty&&(r=this.coordsAt(t.anchor,t.anchor>t.head?-1:1))&&(n={left:Math.min(n.left,r.left),top:Math.min(n.top,r.top),right:Math.max(n.right,r.right),bottom:Math.max(n.bottom,r.bottom)});let i=0,a=0,o=0,s=0;for(let e of this.view.state.facet(ua).map(e=>e(this.view)))if(e){let{left:t,right:n,top:r,bottom:l}=e;null!=t&&(i=Math.max(i,t)),null!=n&&(a=Math.max(a,n)),null!=r&&(o=Math.max(o,r)),null!=l&&(s=Math.max(s,l))}let l={left:n.left-i,top:n.top-o,right:n.right+a,bottom:n.bottom+s};!function(e,t,n,r,i,a,o,s){let l=e.ownerDocument,u=l.defaultView;for(let c=e;c;)if(1==c.nodeType){let e,d=c==l.body;if(d)e={left:0,right:u.innerWidth,top:0,bottom:u.innerHeight};else{if(c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.parentNode;continue}let t=c.getBoundingClientRect();e={left:t.left,right:t.left+c.clientWidth,top:t.top,bottom:t.top+c.clientHeight}}let h=0,p=0;if("nearest"==i)t.top0&&t.bottom>e.bottom+p&&(p=t.bottom-e.bottom+p+o)):t.bottom>e.bottom&&(p=t.bottom-e.bottom+o,n<0&&t.top-p0&&t.right>e.right+h&&(h=t.right-e.right+h+a)):t.right>e.right&&(h=t.right-e.right+a,n<0&&t.left0&&n<=0)t=s8(e=e.childNodes[t-1]);else{if(1!=e.nodeType||!(t=0))return null;e=e.childNodes[t],t=0}}}class uR{constructor(){this.changes=[]}compareRange(e,t){lW(e,t,this.changes)}comparePoint(e,t){lW(e,t,this.changes)}}function uP(e,t){return e.topt.top+1}function uI(e,t){return te.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function u$(e,t,n){let r=e.nodeValue.length,i=-1,a=1e9,o=0;for(let s=0;sn?u.top-n:n-u.bottom)-1;if(u.left-1<=t&&u.right+1>=t&&c=(u.left+u.right)/2,r=n;if((l_.chrome||l_.gecko)&&lr(e,s).getBoundingClientRect().left==u.right&&(r=!n),c<=0)return{node:e,offset:s+(r?1:0)};i=s+(r?1:0),a=c}}}return{node:e,offset:i>-1?i:o>0?e.nodeValue.length:0}}function uL(e,{x:t,y:n},r,i=-1){var a;let o=e.contentDOM.getBoundingClientRect(),s=o.top+e.viewState.paddingTop,l,{docHeight:u}=e.viewState,c=n-s;if(c<0)return 0;if(c>u)return e.state.doc.length;for(let t=e.defaultLineHeight/2,n=!1;(l=e.elementAtHeight(c)).type!=lM.Text;)for(;!((c=i>0?l.bottom+t:l.top-t)>=0)||!(c<=u);){if(n)return r?null:0;n=!0,i=-i}n=s+c;let d=l.from;if(de.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:r?null:uD(e,o,l,t,n);let h=e.dom.ownerDocument,p=e.root.elementFromPoint?e.root:h,f=p.elementFromPoint(t,n);f&&!e.contentDOM.contains(f)&&(f=null),!f&&(t=Math.max(o.left+1,Math.min(o.right-1,t)),(f=p.elementFromPoint(t,n))&&!e.contentDOM.contains(f)&&(f=null));let m,g=-1;if(f&&(null===(a=e.docView.nearest(f))||void 0===a?void 0:a.isEditable)!=!1){if(h.caretPositionFromPoint){let e=h.caretPositionFromPoint(t,n);e&&({offsetNode:m,offset:g}=e)}else if(h.caretRangeFromPoint){let e=h.caretRangeFromPoint(t,n);e&&({startContainer:m,startOffset:g}=e,l_.safari&&function(e,t,n){let r;if(3!=e.nodeType||t!=(r=e.nodeValue.length))return!1;for(let t=e.nextSibling;t;t=t.nextSibling)if(1!=t.nodeType||"BR"!=t.nodeName)return!1;return lr(e,r-1,r).getBoundingClientRect().left>n}(m,g,t)&&(m=void 0))}}if(!m||!e.docView.dom.contains(m)){let r=lZ.find(e.docView,d);if(!r)return c>l.top+l.height/2?l.to:l.from;({node:m,offset:g}=function e(t,n,r){let i,a,o,s,l,u,c,d;for(let f=t.firstChild;f;f=f.nextSibling){let t=s5(f);for(let m=0;mn?h.left-n:Math.max(0,n-h.right),b=(p=g).top>r?p.top-r:Math.max(0,r-p.bottom);if(0==O&&0==b)return 3==f.nodeType?u$(f,n,r):e(f,n,r);(!i||s>b||s==b&&o>O)&&(i=f,a=g,o=O,s=b),0==O?r>g.bottom&&(!c||c.bottomg.top)&&(u=f,d=g):c&&uP(c,g)?c=uN(c,g.bottom):d&&uP(d,g)&&(d=uI(d,g.top))}}if(c&&c.bottom>=r?(i=l,a=c):d&&d.top<=r&&(i=u,a=d),!i)return{node:t,offset:0};let f=Math.max(a.left,Math.min(a.right,n));if(3==i.nodeType)return u$(i,f,r);if(!o&&"true"==i.contentEditable)return e(i,f,r);let m=Array.prototype.indexOf.call(t.childNodes,i)+(n>=(a.left+a.right)/2?1:0);return{node:t,offset:m}}(r.dom,t,n))}return e.docView.posFromDOM(m,g)}function uD(e,t,n,r,i){let a=Math.round((r-t.left)*e.defaultCharacterWidth);e.lineWrapping&&n.height>1.5*e.defaultLineHeight&&(a+=Math.floor((i-n.top)/e.defaultLineHeight)*e.viewState.heightOracle.lineLength);let o=e.state.sliceDoc(n.from,n.to);return n.from+function(e,t,n,r){for(let r=0,i=0;;){if(i>=t)return r;if(r==e.length)break;i+=9==e.charCodeAt(r)?n-i%n:1,r=oP(e,r)}return e.length}(o,a,e.state.tabSize)}function uQ(e,t,n,r){let i=e.state.doc.lineAt(t.head),a=e.bidiSpans(i),o=e.textDirectionAt(i.from);for(let s=t,l=null;;){let t=function(e,t,n,r,i){var a;let o=r.head-e.from,s=-1;if(0==o){if(!i||!e.length)return null;t[0].level!=n&&(o=t[0].side(!1,n),s=0)}else if(o==e.length){if(i)return null;let e=t[t.length-1];e.level!=n&&(o=e.side(!0,n),s=t.length-1)}s<0&&(s=ub.find(t,o,null!==(a=r.bidiLevel)&&void 0!==a?a:-1,r.assoc));let l=t[s];o==l.side(i,n)&&(o=(l=t[s+=i?1:-1]).side(!i,n));let u=i==(l.dir==n),c=oP(e.text,o,u);if(ux=e.text.slice(Math.min(o,c),Math.max(o,c)),c!=l.side(i,n))return oX.cursor(c+e.from,u?-1:1,l.level);let d=s==(i?t.length-1:0)?null:t[s+(i?1:-1)];return d||l.level==n?d&&d.levelt(e));for(;;){let e=!1;for(let i of r)i.between(n.from-1,n.from+1,(r,i,a)=>{n.from>r&&n.fromn.from?oX.cursor(r,1):oX.cursor(i,-1),e=!0)});if(!e)return n}}class uF{constructor(e){for(let t in this.lastKeyCode=0,this.lastKeyTime=0,this.chromeScrollHack=-1,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.registeredEvents=[],this.customHandlers=[],this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.rapidCompositionStart=!1,this.mouseSelection=null,uW){let n=uW[t];e.contentDOM.addEventListener(t,r=>{!(!uj(e,r)||this.ignoreDuringComposition(r))&&("keydown"==t&&this.keydown(e,r)||(this.mustFlushObserver(r)&&e.observer.forceFlush(),this.runCustomHandlers(t,e,r)?r.preventDefault():n(e,r)))}),this.registeredEvents.push(t)}l_.chrome&&l_.chrome_version>=102&&e.scrollDOM.addEventListener("wheel",()=>{this.chromeScrollHack<0?e.contentDOM.style.pointerEvents="none":window.clearTimeout(this.chromeScrollHack),this.chromeScrollHack=setTimeout(()=>{this.chromeScrollHack=-1,e.contentDOM.style.pointerEvents=""},100)},{passive:!0}),this.notifiedFocused=e.hasFocus,l_.safari&&e.contentDOM.addEventListener("input",()=>null)}setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}ensureHandlers(e,t){var n;let r;for(let i of(this.customHandlers=[],t))if(r=null===(n=i.update(e).spec)||void 0===n?void 0:n.domEventHandlers)for(let t in this.customHandlers.push({plugin:i.value,handlers:r}),r)0>this.registeredEvents.indexOf(t)&&"scroll"!=t&&(this.registeredEvents.push(t),e.contentDOM.addEventListener(t,n=>{uj(e,n)&&this.runCustomHandlers(t,e,n)&&n.preventDefault()}))}runCustomHandlers(e,t,n){for(let r of this.customHandlers){let i=r.handlers[e];if(i)try{if(i.call(r.plugin,n,t)||n.defaultPrevented)return!0}catch(e){l4(t.state,e)}}return!1}runScrollHandlers(e,t){for(let n of this.customHandlers){let r=n.handlers.scroll;if(r)try{r.call(n.plugin,t,e)}catch(t){l4(e.state,t)}}}keydown(e,t){let n;return this.lastKeyCode=t.keyCode,this.lastKeyTime=Date.now(),!!(9==t.keyCode&&Date.now()e.keyCode==t.keyCode)))&&!(t.ctrlKey||t.altKey||t.metaKey)&&!t.synthetic&&(this.pendingIOSKey=n,setTimeout(()=>this.flushIOSKey(e),250),!0))}flushIOSKey(e){let t=this.pendingIOSKey;return!!t&&(this.pendingIOSKey=void 0,li(e.contentDOM,t.key,t.keyCode))}ignoreDuringComposition(e){return!!/^key/.test(e.type)&&(this.composing>0||!!(l_.safari&&Date.now()-this.compositionEndedAt<100)&&(this.compositionEndedAt=0,!0))}mustFlushObserver(e){return"keydown"==e.type&&229!=e.keyCode||"compositionend"==e.type&&!l_.ios}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}let uB=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],uU=[16,17,18,20,91,92,224,225];class uz{constructor(e,t,n,r){let i,a;this.view=e,this.style=n,this.mustSelect=r,this.lastEvent=t;let o=e.contentDOM.ownerDocument;o.addEventListener("mousemove",this.move=this.move.bind(this)),o.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(sk.allowMultipleSelections)&&((i=e.state.facet(lX)).length?i[0](t):l_.mac?t.metaKey:t.ctrlKey),this.dragMove=(a=e.state.facet(lV)).length?a[0](t):l_.mac?!t.altKey:!t.ctrlKey,this.dragging=!!function(e,t){let{main:n}=e.state.selection;if(n.empty)return!1;let r=s1(e.root);if(0==r.rangeCount)return!0;let i=r.getRangeAt(0).getClientRects();for(let e=0;e=t.clientX&&n.top<=t.clientY&&n.bottom>=t.clientY)return!0}return!1}(e,t)&&1==u2(t)&&null,!1===this.dragging&&(t.preventDefault(),this.select(t))}move(e){if(0==e.buttons)return this.destroy();!1===this.dragging&&this.select(this.lastEvent=e)}up(e){null==this.dragging&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=null}select(e){let t=this.style.get(e,this.extend,this.multiple);(this.mustSelect||!t.eq(this.view.state.selection)||t.main.assoc!=this.view.state.selection.main.assoc)&&this.view.dispatch({selection:t,userEvent:"select.pointer",scrollIntoView:!0}),this.mustSelect=!1}update(e){e.docChanged&&this.dragging&&(this.dragging=this.dragging.map(e.changes)),this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}}function uj(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target,r;n!=e.contentDOM;n=n.parentNode)if(!n||11==n.nodeType||(r=ll.get(n))&&r.ignoreEvent(t))return!1;return!0}let uW=Object.create(null),uZ=l_.ie&&l_.ie_version<15||l_.ios&&l_.webkit_version<604;function uq(e,t){let{state:n}=e,r,i=1,a=n.toText(t),o=a.lines==n.selection.ranges.length;if(null!=u9&&n.selection.ranges.every(e=>e.empty)&&u9==a.toString()){let e=-1;r=n.changeByRange(r=>{let s=n.doc.lineAt(r.from);if(s.from==e)return{range:r};e=s.from;let l=n.toText((o?a.line(i++).text:t)+n.lineBreak);return{changes:{from:s.from,insert:l},range:oX.cursor(r.from+l.length)}})}else r=o?n.changeByRange(e=>{let t=a.line(i++);return{changes:{from:e.from,to:e.to,insert:t.text},range:oX.cursor(e.from+t.length)}}):n.replaceSelection(a);e.dispatch(r,{userEvent:"input.paste",scrollIntoView:!0})}uW.keydown=(e,t)=>{e.inputState.setSelectionOrigin("select"),27==t.keyCode?e.inputState.lastEscPress=Date.now():0>uU.indexOf(t.keyCode)&&(e.inputState.lastEscPress=0)};let uG=0;function uH(e,t,n,r){if(1==r)return oX.cursor(t,n);if(2==r)return function(e,t,n=1){let r=e.charCategorizer(t),i=e.doc.lineAt(t),a=t-i.from;if(0==i.length)return oX.cursor(t);0==a?n=1:a==i.length&&(n=-1);let o=a,s=a;n<0?o=oP(i.text,a,!1):s=oP(i.text,a);let l=r(i.text.slice(o,s));for(;o>0;){let e=oP(i.text,o,!1);if(r(i.text.slice(e,o))!=l)break;o=e}for(;s{uG=Date.now(),e.inputState.setSelectionOrigin("select.pointer")},uW.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")},uW.mousedown=(e,t)=>{let n,r,i,a,o;if(e.observer.flush(),uG>Date.now()-2e3&&1==u2(t))return;let s=null;for(let n of e.state.facet(lK))if(s=n(e,t))break;if(s||0!=t.button||(n=uV(e,t),r=u2(t),i=e.state.selection,a=n,o=t,s={update(e){e.docChanged&&(n&&(n.pos=e.changes.mapPos(n.pos)),i=i.map(e.changes),o=null)},get(t,s,l){let u;if(o&&t.clientX==o.clientX&&t.clientY==o.clientY?u=a:(u=a=uV(e,t),o=t),!u||!n)return i;let c=uH(e,u.pos,u.bias,r);if(n.pos!=u.pos&&!s){let t=uH(e,n.pos,n.bias,r),i=Math.min(t.from,c.from),a=Math.max(t.to,c.to);c=iln(e.contentDOM)),e.inputState.startMouseSelection(new uz(e,t,s,n))}};let uY=(e,t)=>e>=t.top&&e<=t.bottom,uX=(e,t,n)=>uY(t,n)&&e>=n.left&&e<=n.right;function uV(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:n,bias:function(e,t,n,r){let i=lZ.find(e.docView,t);if(!i)return 1;let a=t-i.posAtStart;if(0==a)return 1;if(a==i.length)return -1;let o=i.coordsAt(a,-1);if(o&&uX(n,r,o))return -1;let s=i.coordsAt(a,1);return s&&uX(n,r,s)?1:o&&uY(r,o)?-1:1}(e,n,t.clientX,t.clientY)}}let uK=l_.ie&&l_.ie_version<=11,uJ=null,u1=0,u0=0;function u2(e){if(!uK)return e.detail;let t=uJ,n=u0;return uJ=e,u0=Date.now(),u1=!t||n>Date.now()-400&&2>Math.abs(t.clientX-e.clientX)&&2>Math.abs(t.clientY-e.clientY)?(u1+1)%3:1}function u5(e,t,n,r){if(!n)return;let i=e.posAtCoords({x:t.clientX,y:t.clientY},!1);t.preventDefault();let{mouseSelection:a}=e.inputState,o=r&&a&&a.dragging&&a.dragMove?{from:a.dragging.from,to:a.dragging.to}:null,s={from:i,insert:n},l=e.state.changes(o?[o,s]:s);e.focus(),e.dispatch({changes:l,selection:{anchor:l.mapPos(i,-1),head:l.mapPos(i,1)},userEvent:o?"move.drop":"input.drop"})}uW.dragstart=(e,t)=>{let{selection:{main:n}}=e.state,{mouseSelection:r}=e.inputState;r&&(r.dragging=n),t.dataTransfer&&(t.dataTransfer.setData("Text",e.state.sliceDoc(n.from,n.to)),t.dataTransfer.effectAllowed="copyMove")},uW.drop=(e,t)=>{if(!t.dataTransfer)return;if(e.state.readOnly)return t.preventDefault();let n=t.dataTransfer.files;if(n&&n.length){t.preventDefault();let r=Array(n.length),i=0,a=()=>{++i==n.length&&u5(e,t,r.filter(e=>null!=e).join(e.state.lineBreak),!1)};for(let e=0;e{/[\x00-\x08\x0e-\x1f]{2}/.test(t.result)||(r[e]=t.result),a()},t.readAsText(n[e])}}else u5(e,t,t.dataTransfer.getData("Text"),!0)},uW.paste=(e,t)=>{if(e.state.readOnly)return t.preventDefault();e.observer.flush();let n=uZ?null:t.clipboardData;n?(uq(e,n.getData("text/plain")),t.preventDefault()):function(e){let t=e.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout(()=>{e.focus(),n.remove(),uq(e,n.value)},50)}(e)};let u9=null;function u4(e){setTimeout(()=>{e.hasFocus!=e.inputState.notifiedFocused&&e.update([])},10)}function u3(e,t){if(e.docView.compositionDeco.size){e.inputState.rapidCompositionStart=t;try{e.update([])}finally{e.inputState.rapidCompositionStart=!1}}}uW.copy=uW.cut=(e,t)=>{let{text:n,ranges:r,linewise:i}=function(e){let t=[],n=[],r=!1;for(let r of e.selection.ranges)r.empty||(t.push(e.sliceDoc(r.from,r.to)),n.push(r));if(!t.length){let i=-1;for(let{from:r}of e.selection.ranges){let a=e.doc.lineAt(r);a.number>i&&(t.push(a.text),n.push({from:a.from,to:Math.min(e.doc.length,a.to+1)})),i=a.number}r=!0}return{text:t.join(e.lineBreak),ranges:n,linewise:r}}(e.state);if(!n&&!i)return;u9=i?n:null;let a=uZ?null:t.clipboardData;a?(t.preventDefault(),a.clearData(),a.setData("text/plain",n)):function(e,t){let n=e.dom.parentNode;if(!n)return;let r=n.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.value=t,r.focus(),r.selectionEnd=t.length,r.selectionStart=0,setTimeout(()=>{r.remove(),e.focus()},50)}(e,n),"cut"!=t.type||e.state.readOnly||e.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"})},uW.focus=u4,uW.blur=e=>{e.observer.clearSelectionRange(),u4(e)},uW.compositionstart=uW.compositionupdate=e=>{null==e.inputState.compositionFirstChange&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0,e.docView.compositionDeco.size&&(e.observer.flush(),u3(e,!0)))},uW.compositionend=e=>{e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionFirstChange=null,setTimeout(()=>{e.inputState.composing<0&&u3(e,!1)},50)},uW.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()},uW.beforeinput=(e,t)=>{var n;let r;if(l_.chrome&&l_.android&&(r=uB.find(e=>e.inputType==t.inputType))&&(e.observer.delayAndroidKey(r.key,r.keyCode),"Backspace"==r.key||"Delete"==r.key)){let t=(null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0;setTimeout(()=>{var n;((null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0)>t+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())},100)}};let u8=["pre-wrap","normal","pre-line","break-spaces"];class u6{constructor(){this.doc=ox.empty,this.lineWrapping=!1,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.lineLength=30,this.heightChanged=!1}heightForGap(e,t){let n=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(n+=Math.ceil((t-e-n*this.lineLength*.5)/this.lineLength)),this.lineHeight*n}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return u8.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let n=0;n-1,o=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=a;if(this.lineWrapping=a,this.lineHeight=t,this.charWidth=n,this.lineLength=r,o){this.heightSamples={};for(let e=0;e0}set outdated(e){this.flags=(e?2:0)|-3&this.flags}setHeight(e,t){this.height!=t&&(Math.abs(this.height-t)>.001&&(e.heightChanged=!0),this.height=t)}replace(e,t,n){return cn.of(n)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,n,r){let i=this;for(let a=r.length-1;a>=0;a--){let{fromA:o,toA:s,fromB:l,toB:u}=r[a],c=i.lineAt(o,ct.ByPosNoHeight,t,0,0),d=c.to>=s?c:i.lineAt(s,ct.ByPosNoHeight,t,0,0);for(u+=d.to-s,s=d.to;a>0&&c.from<=r[a-1].toA;)o=r[a-1].fromA,l=r[a-1].fromB,a--,o2*i){let i=e[t-1];i.break?e.splice(--t,1,i.left,null,i.right):e.splice(--t,1,i.left,i.right),n+=1+i.break,r-=i.size}else if(i>2*r){let t=e[n];t.break?e.splice(n,1,t.left,null,t.right):e.splice(n,1,t.left,t.right),n+=2+t.break,i-=t.size}else break}else if(r=i&&a(this.blockAt(0,n,r,i))}updateHeight(e,t=0,n=!1,r){return r&&r.from<=t&&r.more&&this.setHeight(e,r.heights[r.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class ci extends cr{constructor(e,t){super(e,t,lM.Text),this.collapsed=0,this.widgetHeight=0}replace(e,t,n){let r=n[0];return 1==n.length&&(r instanceof ci||r instanceof ca&&4&r.flags)&&10>Math.abs(this.length-r.length)?(r instanceof ca?r=new ci(r.length,this.height):r.height=this.height,this.outdated||(r.outdated=!1),r):cn.of(n)}updateHeight(e,t=0,n=!1,r){return r&&r.from<=t&&r.more?this.setHeight(e,r.heights[r.index++]):(n||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class ca extends cn{constructor(e){super(e,0)}lines(e,t){let n=e.lineAt(t).number,r=e.lineAt(t+this.length).number;return{firstLine:n,lastLine:r,lineHeight:this.height/(r-n+1)}}blockAt(e,t,n,r){let{firstLine:i,lastLine:a,lineHeight:o}=this.lines(t,r),s=Math.max(0,Math.min(a-i,Math.floor((e-n)/o))),{from:l,length:u}=t.line(i+s);return new ce(l,u,n+o*s,o,lM.Text)}lineAt(e,t,n,r,i){if(t==ct.ByHeight)return this.blockAt(e,n,r,i);if(t==ct.ByPosNoHeight){let{from:t,to:r}=n.lineAt(e);return new ce(t,r-t,0,0,lM.Text)}let{firstLine:a,lineHeight:o}=this.lines(n,i),{from:s,length:l,number:u}=n.lineAt(e);return new ce(s,l,r+o*(u-a),o,lM.Text)}forEachLine(e,t,n,r,i,a){let{firstLine:o,lineHeight:s}=this.lines(n,i);for(let l=Math.max(e,i),u=Math.min(i+this.length,t);l<=u;){let t=n.lineAt(l);l==e&&(r+=s*(t.number-o)),a(new ce(t.from,t.length,r,s,lM.Text)),r+=s,l=t.to+1}}replace(e,t,n){let r=this.length-t;if(r>0){let e=n[n.length-1];e instanceof ca?n[n.length-1]=new ca(e.length+r):n.push(null,new ca(r-1))}if(e>0){let t=n[0];t instanceof ca?n[0]=new ca(e+t.length):n.unshift(new ca(e-1),null)}return cn.of(n)}decomposeLeft(e,t){t.push(new ca(e-1),null)}decomposeRight(e,t){t.push(null,new ca(this.length-e-1))}updateHeight(e,t=0,n=!1,r){let i=t+this.length;if(r&&r.from<=t+this.length&&r.more){let n=[],a=Math.max(t,r.from),o=-1,s=e.heightChanged;for(r.from>t&&n.push(new ca(r.from-t-1).updateHeight(e,t));a<=i&&r.more;){let t=e.doc.lineAt(a).length;n.length&&n.push(null);let i=r.heights[r.index++];-1==o?o=i:Math.abs(i-o)>=.001&&(o=-2);let s=new ci(t,i);s.outdated=!1,n.push(s),a+=t+1}a<=i&&n.push(null,new ca(i-a).updateHeight(e,a));let l=cn.of(n);return e.heightChanged=s||o<0||Math.abs(l.height-this.height)>=.001||Math.abs(o-this.lines(e.doc,t).lineHeight)>=.001,l}return(n||this.outdated)&&(this.setHeight(e,e.heightForGap(t,t+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}}class co extends cn{constructor(e,t,n){super(e.length+t+n.length,e.height+n.height,t|(e.outdated||n.outdated?2:0)),this.left=e,this.right=n,this.size=e.size+n.size}get break(){return 1&this.flags}blockAt(e,t,n,r){let i=n+this.left.height;return eo))return l;let u=t==ct.ByPosNoHeight?ct.ByPosNoHeight:ct.ByPos;return s?l.join(this.right.lineAt(o,u,n,a,o)):this.left.lineAt(o,u,n,r,i).join(l)}forEachLine(e,t,n,r,i,a){let o=r+this.left.height,s=i+this.left.length+this.break;if(this.break)e=s&&this.right.forEachLine(e,t,n,o,s,a);else{let l=this.lineAt(s,ct.ByPos,n,r,i);e=e&&l.from<=t&&a(l),t>l.to&&this.right.forEachLine(l.to+1,t,n,o,s,a)}}replace(e,t,n){let r=this.left.length+this.break;if(tthis.left.length)return this.balanced(this.left,this.right.replace(e-r,t-r,n));let i=[];e>0&&this.decomposeLeft(e,i);let a=i.length;for(let e of n)i.push(e);if(e>0&&cs(i,a-1),t=++n&&t.push(null),e>n&&this.right.decomposeLeft(e-n,t)}decomposeRight(e,t){let n=this.left.length,r=n+this.break;if(e>=r)return this.right.decomposeRight(e-r,t);e2*t.size||t.size>2*e.size?cn.of(this.break?[e,null,t]:[e,t]):(this.left=e,this.right=t,this.height=e.height+t.height,this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,n=!1,r){let{left:i,right:a}=this,o=t+i.length+this.break,s=null;return(r&&r.from<=t+i.length&&r.more?s=i=i.updateHeight(e,t,n,r):i.updateHeight(e,t,n),r&&r.from<=o+a.length&&r.more?s=a=a.updateHeight(e,o,n,r):a.updateHeight(e,o,n),s)?this.balanced(i,a):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function cs(e,t){let n,r;null==e[t]&&(n=e[t-1])instanceof ca&&(r=e[t+1])instanceof ca&&e.splice(t-1,3,new ca(n.length+1+r.length))}class cl{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let e=Math.min(t,this.lineEnd),n=this.nodes[this.nodes.length-1];n instanceof ci?n.length+=e-this.pos:(e>this.pos||!this.isCovered)&&this.nodes.push(new ci(e-this.pos,-1)),this.writtenTo=e,t>e&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,n){if(e=5)&&this.addLineDeco(r,i)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenToe&&this.nodes.push(new ci(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let n=new ca(t-e);return this.oracle.doc.lineAt(e).to==t&&(n.flags|=4),n}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof ci)return e;let t=new ci(0,-1);return this.nodes.push(t),t}addBlock(e){this.enterLine(),e.type!=lM.WidgetAfter||this.isCovered||this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,e.type!=lM.WidgetBefore&&(this.covering=e)}addLineDeco(e,t){let n=this.ensureLine();n.length+=t,n.collapsed+=t,n.widgetHeight=Math.max(n.widgetHeight,e),this.writtenTo=this.pos=this.pos+t}finish(e){let t=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||t instanceof ci||this.isCovered?(this.writtenToe.clientHeight||e.scrollWidth>e.clientWidth)&&"visible"!=n.overflow){let t=e.getBoundingClientRect();r=Math.max(r,t.left),i=Math.min(i,t.right),a=Math.max(a,t.top),o=Math.min(o,t.bottom)}t="absolute"==n.position||"fixed"==n.position?e.offsetParent:e.parentNode}else if(11==t.nodeType)t=t.host;else break;return{left:r-n.left,right:Math.max(r,i)-n.left,top:a-(n.top+t),bottom:Math.max(a,o)-(n.top+t)}}function cd(e,t){let n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}class ch{constructor(e,t,n){this.from=e,this.to=t,this.size=n}static same(e,t){if(e.length!=t.length)return!1;for(let n=0;n"function"!=typeof e),this.heightMap=cn.empty().applyChanges(this.stateDeco,ox.empty,this.heightOracle.setDoc(e.doc),[new us(0,0,0,e.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=lF.set(this.lineGaps.map(e=>e.draw(!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let n=0;n<=1;n++){let r=n?t.head:t.anchor;if(!e.some(({from:e,to:t})=>r>=e&&r<=t)){let{from:t,to:n}=this.lineBlockAt(r);e.push(new cm(t,n))}}this.viewports=e.sort((e,t)=>e.from-t.from),this.scaler=this.heightMap.height<=7e6?cy:new cv(this.heightOracle.doc,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.state.doc,0,0,e=>{this.viewportLines.push(1==this.scaler.scale?e:cx(e,this.scaler))})}update(e,t=null){var n,r;let i;this.state=e.state;let a=this.stateDeco;this.stateDeco=this.state.facet(ur).filter(e=>"function"!=typeof e);let o=e.changedRanges,s=us.extendWithRanges(o,(n=this.stateDeco,r=e?e.changes:oz.empty(this.state.doc.length),i=new cu,sA.compare(a,n,r,i,0),i.changes)),l=this.heightMap.height;this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),s),this.heightMap.height!=l&&(e.flags|=2);let u=s.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.headu.to)||!this.viewportIsAppropriate(u))&&(u=this.getViewport(0,t));let c=!e.changes.empty||2&e.flags||u.from!=this.viewport.from||u.to!=this.viewport.to;this.viewport=u,this.updateForViewport(),c&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,n=window.getComputedStyle(t),r=this.heightOracle,i=n.whiteSpace;this.defaultTextDirection="rtl"==n.direction?uu.RTL:uu.LTR;let a=this.heightOracle.mustRefreshForWrapping(i),o=a||this.mustMeasureContent||this.contentDOMHeight!=t.clientHeight;this.contentDOMHeight=t.clientHeight,this.mustMeasureContent=!1;let s=0,l=0,u=parseInt(n.paddingTop)||0,c=parseInt(n.paddingBottom)||0;(this.paddingTop!=u||this.paddingBottom!=c)&&(this.paddingTop=u,this.paddingBottom=c,s|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(r.lineWrapping&&(o=!0),this.editorWidth=e.scrollDOM.clientWidth,s|=8);let d=(this.printing?cd:cc)(t,this.paddingTop),h=d.top-this.pixelViewport.top,p=d.bottom-this.pixelViewport.bottom;this.pixelViewport=d;let f=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(f!=this.inView&&(this.inView=f,f&&(o=!0)),!this.inView)return 0;let m=t.clientWidth;if((this.contentDOMWidth!=m||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=m,this.editorHeight=e.scrollDOM.clientHeight,s|=8),o){let t=e.docView.measureVisibleLineHeights(this.viewport);if(r.mustRefreshForHeights(t)&&(a=!0),a||r.lineWrapping&&Math.abs(m-this.contentDOMWidth)>r.charWidth){let{lineHeight:n,charWidth:o}=e.docView.measureTextSize();(a=r.refresh(i,n,o,m/o,t))&&(e.docView.minWidth=0,s|=8)}for(let n of(h>0&&p>0?l=Math.max(h,p):h<0&&p<0&&(l=Math.min(h,p)),r.heightChanged=!1,this.viewports)){let i=n.from==this.viewport.from?t:e.docView.measureVisibleLineHeights(n);this.heightMap=this.heightMap.updateHeight(r,0,a,new u7(n.from,i))}r.heightChanged&&(s|=2)}let g=!this.viewportIsAppropriate(this.viewport,l)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return g&&(this.viewport=this.getViewport(l,this.scrollTarget)),this.updateForViewport(),(2&s||g)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(a?[]:this.lineGaps)),s|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),s}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let n=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),r=this.heightMap,i=this.state.doc,{visibleTop:a,visibleBottom:o}=this,s=new cm(r.lineAt(a-1e3*n,ct.ByHeight,i,0,0).from,r.lineAt(o+(1-n)*1e3,ct.ByHeight,i,0,0).to);if(t){let{head:e}=t.range;if(es.to){let n=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),a=r.lineAt(e,ct.ByPos,i,0,0),o;o="center"==t.y?(a.top+a.bottom)/2-n/2:"start"==t.y||"nearest"==t.y&&e=o+Math.max(10,Math.min(n,250)))&&r>a-2e3&&ii&&(r.push({from:i,to:e}),a+=e-i),i=t}},20),in.from&&o.push({from:n.from,to:r}),i=n.from&&s.from<=n.to&&cb(o,s.from-10,s.from+10),!s.empty&&s.to>=n.from&&s.to<=n.to&&cb(o,s.to-10,s.to+10),o))i-r>1e3&&t.push(function(e,t){for(let n of e)if(t(n))return n}(e,e=>e.from>=n.from&&e.to<=n.to&&1e3>Math.abs(e.from-r)&&1e3>Math.abs(e.to-i))||new ch(r,i,this.gapSize(n,r,i,a)))}return t}gapSize(e,t,n,r){let i=cO(r,n)-cO(r,t);return this.heightOracle.lineWrapping?e.height*i:r.total*this.heightOracle.charWidth*i}updateLineGaps(e){ch.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=lF.set(e.map(e=>e.draw(this.heightOracle.lineWrapping))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let t=[];sA.spans(e,this.viewport.from,this.viewport.to,{span(e,n){t.push({from:e,to:n})},point(){}},20);let n=t.length!=this.visibleRanges.length||this.visibleRanges.some((e,n)=>e.from!=t[n].from||e.to!=t[n].to);return this.visibleRanges=t,n?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(t=>t.from<=e&&t.to>=e)||cx(this.heightMap.lineAt(e,ct.ByPos,this.state.doc,0,0),this.scaler)}lineBlockAtHeight(e){return cx(this.heightMap.lineAt(this.scaler.fromDOM(e),ct.ByHeight,this.state.doc,0,0),this.scaler)}elementAtHeight(e){return cx(this.heightMap.blockAt(this.scaler.fromDOM(e),this.state.doc,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class cm{constructor(e,t){this.from=e,this.to=t}}function cg({total:e,ranges:t},n){if(n<=0)return t[0].from;if(n>=1)return t[t.length-1].to;let r=Math.floor(e*n);for(let e=0;;e++){let{from:n,to:i}=t[e],a=i-n;if(r<=a)return n+r;r-=a}}function cO(e,t){let n=0;for(let{from:r,to:i}of e.ranges){if(t<=i){n+=t-r;break}n+=i-r}return n/e.total}function cb(e,t,n){for(let r=0;rt){let a=[];i.fromn&&a.push({from:n,to:i.to}),e.splice(r,1,...a),r+=a.length-1}}}let cy={toDOM:e=>e,fromDOM:e=>e,scale:1};class cv{constructor(e,t,n){let r=0,i=0,a=0;for(let o of(this.viewports=n.map(({from:n,to:i})=>{let a=t.lineAt(n,ct.ByPos,e,0,0).top,o=t.lineAt(i,ct.ByPos,e,0,0).bottom;return r+=o-a,{from:n,to:i,top:a,bottom:o,domTop:0,domBottom:0}}),this.scale=(7e6-r)/(t.height-r),this.viewports))o.domTop=a+(o.top-i)*this.scale,a=o.domBottom=o.domTop+(o.bottom-o.top),i=o.bottom}toDOM(e){for(let t=0,n=0,r=0;;t++){let i=tcx(e,t)):e.type)}let cT=oJ.define({combine:e=>e.join(" ")}),ck=oJ.define({combine:e=>e.indexOf(!0)>-1}),c_=sZ.newName(),cS=sZ.newName(),cw=sZ.newName(),cE={"&light":"."+cS,"&dark":"."+cw};function cC(e,t,n){return new sZ(t,{finish:t=>/&/.test(t)?t.replace(/&\w*/,t=>{if("&"==t)return e;if(!n||!n[t])throw RangeError(`Unsupported selector: ${t}`);return n[t]}):e+" "+t})}let cA=cC("."+c_,{"&.cm-editor":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,minHeight:"100%",display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere"},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 4px"},".cm-selectionLayer":{zIndex:-1,contain:"size style"},".cm-selectionBackground":{position:"absolute"},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{zIndex:100,contain:"size style",pointerEvents:"none"},"&.cm-focused .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{visibility:"hidden"},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{visibility:"hidden"},"100%":{}},".cm-cursor, .cm-dropCursor":{position:"absolute",borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},"&.cm-focused .cm-cursor":{display:"block"},"&light .cm-activeLine":{backgroundColor:"#f3f9ff"},"&dark .cm-activeLine":{backgroundColor:"#223039"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{display:"flex",height:"100%",boxSizing:"border-box",left:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},cE),cR={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},cP=l_.ie&&l_.ie_version<=11;class cI{constructor(e,t,n){this.view=e,this.onChange=t,this.onScrollChanged=n,this.active=!1,this.selectionRange=new le,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.scrollTargets=[],this.intersection=null,this.resize=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(t=>{for(let e of t)this.queue.push(e);(l_.ie&&l_.ie_version<=11||l_.ios&&e.composing)&&t.some(e=>"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length)?this.flushSoon():this.flush()}),cP&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),window.addEventListener("resize",this.onResize=this.onResize.bind(this)),"function"==typeof ResizeObserver&&(this.resize=new ResizeObserver(()=>{this.view.docView.lastUpdate{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),e.length>0&&e[e.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(e=>{e.length>0&&e[e.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange(),this.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500)}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((t,n)=>t!=e[n]))){for(let t of(this.gapIntersection.disconnect(),e))this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:t}=this,n=this.selectionRange;if(t.state.facet(l3)?t.root.activeElement!=this.dom:!s2(t.dom,n))return;let r=n.anchorNode&&t.docView.nearest(n.anchorNode);r&&r.ignoreEvent(e)||((l_.ie&&l_.ie_version<=11||l_.android&&l_.chrome)&&!t.state.selection.main.empty&&n.focusNode&&s9(n.focusNode,n.focusOffset,n.anchorNode,n.anchorOffset)?this.flushSoon():this.flush(!1))}readSelectionRange(){let{root:e}=this.view,t=s1(e),n=l_.safari&&11==e.nodeType&&function(){let e=document.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}()==this.view.contentDOM&&function(e){let t=null;function n(e){e.preventDefault(),e.stopImmediatePropagation(),t=e.getTargetRanges()[0]}if(e.contentDOM.addEventListener("beforeinput",n,!0),document.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",n,!0),!t)return null;let r=t.startContainer,i=t.startOffset,a=t.endContainer,o=t.endOffset,s=e.docView.domAtPos(e.state.selection.main.anchor);return s9(s.node,s.offset,a,o)&&([r,i,a,o]=[a,o,r,i]),{anchorNode:r,anchorOffset:i,focusNode:a,focusOffset:o}}(this.view)||t;return!this.selectionRange.eq(n)&&(this.selectionRange.setRange(n),this.selectionChanged=!0)}setSelectionRange(e,t){this.selectionRange.set(e.node,e.offset,t.node,t.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,t=null;for(let n=this.dom;n;)if(1==n.nodeType)!t&&e{let e=this.delayedAndroidKey;this.delayedAndroidKey=null,this.delayedFlush=-1,this.flush()||li(this.view.contentDOM,e.key,e.keyCode)}),this.delayedAndroidKey&&"Enter"!=e||(this.delayedAndroidKey={key:e,keyCode:t})}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=window.setTimeout(()=>{this.delayedFlush=-1,this.flush()},20))}forceFlush(){this.delayedFlush>=0&&(window.clearTimeout(this.delayedFlush),this.delayedFlush=-1,this.flush())}processRecords(){let e=this.queue;for(let t of this.observer.takeRecords())e.push(t);e.length&&(this.queue=[]);let t=-1,n=-1,r=!1;for(let i of e){let e=this.readMutation(i);e&&(e.typeOver&&(r=!0),-1==t?{from:t,to:n}=e:(t=Math.min(e.from,t),n=Math.max(e.to,n)))}return{from:t,to:n,typeOver:r}}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return;e&&this.readSelectionRange();let{from:t,to:n,typeOver:r}=this.processRecords(),i=this.selectionChanged&&s2(this.dom,this.selectionRange);if(t<0&&!i)return;this.selectionChanged=!1;let a=this.view.state,o=this.onChange(t,n,r);return this.view.state==a&&this.view.update([]),o}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty("attributes"==e.type),"attributes"==e.type&&(t.dirty|=4),"childList"==e.type){let n=cN(t,e.previousSibling||e.target.previousSibling,-1),r=cN(t,e.nextSibling||e.target.nextSibling,1);return{from:n?t.posAfter(n):t.posAtStart,to:r?t.posBefore(r):t.posAtEnd,typeOver:!1}}return"characterData"==e.type?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}destroy(){var e,t,n;for(let r of(this.stop(),null===(e=this.intersection)||void 0===e||e.disconnect(),null===(t=this.gapIntersection)||void 0===t||t.disconnect(),null===(n=this.resize)||void 0===n||n.disconnect(),this.scrollTargets))r.removeEventListener("scroll",this.onScroll);window.removeEventListener("scroll",this.onScroll),window.removeEventListener("resize",this.onResize),window.removeEventListener("beforeprint",this.onPrint),this.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout)}}function cN(e,t,n){for(;t;){let r=ll.get(t);if(r&&r.parent==e)return r;let i=t.parentNode;t=i!=e.dom?i:n>0?t.nextSibling:t.previousSibling}return null}class c${constructor(e={}){for(let t of(this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.style.cssText="position: absolute; top: -10000px",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),this._dispatch=e.dispatch||(e=>this.update([e])),this.dispatch=this.dispatch.bind(this),this.root=e.root||function(e){for(;e;){if(e&&(9==e.nodeType||11==e.nodeType&&e.host))return e;e=e.assignedSlot||e.parentNode}return null}(e.parent)||document,this.viewState=new cf(e.state||sk.create()),this.plugins=this.state.facet(l6).map(e=>new ue(e)),this.plugins))t.update(this);this.observer=new cI(this,(e,t,n)=>(function(e,t,n,r){let i,a;let o=e.state.selection.main;if(t>-1){let r=e.docView.domBoundsAround(t,n,0);if(!r||e.state.readOnly)return!1;let{from:s,to:l}=r,u=e.docView.impreciseHead||e.docView.impreciseAnchor?[]:function(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:a}=e.observer.selectionRange;return n&&(t.push(new u_(n,r)),(i!=n||a!=r)&&t.push(new u_(i,a))),t}(e),c=new uT(u,e.state);c.readRange(r.startDOM,r.endDOM);let d=o.from,h=null;(8===e.inputState.lastKeyCode&&e.inputState.lastKeyTime>Date.now()-100||l_.android&&c.text.length0&&s>0&&e.charCodeAt(o-1)==t.charCodeAt(s-1);)o--,s--;if("end"==r){let e=Math.max(0,a-Math.min(o,s));n-=o+e-a}if(o=o?a-n:0;a-=e,s=a+(s-o),o=a}else if(s=s?a-n:0;a-=e,o=a+(o-s),s=a}return{from:a,toA:o,toB:s}}(e.state.doc.sliceString(s,l,"￿"),c.text,d-s,h);p&&(l_.chrome&&13==e.inputState.lastKeyCode&&p.toB==p.from+2&&"￿￿"==c.text.slice(p.from,p.toB)&&p.toB--,i={from:s+p.from,to:s+p.toA,insert:ox.of(c.text.slice(p.from,p.toB).split("￿"))}),a=function(e,t){if(0==e.length)return null;let n=e[0].pos,r=2==e.length?e[1].pos:n;return n>-1&&r>-1?oX.single(n+t,r+t):null}(u,s)}else if(e.hasFocus||!e.state.facet(l3)){let t=e.observer.selectionRange,{impreciseHead:n,impreciseAnchor:r}=e.docView,i=n&&n.node==t.focusNode&&n.offset==t.focusOffset||!s0(e.contentDOM,t.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(t.focusNode,t.focusOffset),s=r&&r.node==t.anchorNode&&r.offset==t.anchorOffset||!s0(e.contentDOM,t.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(t.anchorNode,t.anchorOffset);(i!=o.head||s!=o.anchor)&&(a=oX.single(s,i))}if(!i&&!a)return!1;if(!i&&r&&!o.empty&&a&&a.main.empty?i={from:o.from,to:o.to,insert:e.state.doc.slice(o.from,o.to)}:i&&i.from>=o.from&&i.to<=o.to&&(i.from!=o.from||i.to!=o.to)&&o.to-o.from-(i.to-i.from)<=4?i={from:o.from,to:o.to,insert:e.state.doc.slice(o.from,i.from).append(i.insert).append(e.state.doc.slice(i.to,o.to))}:(l_.mac||l_.android)&&i&&i.from==i.to&&i.from==o.head-1&&"."==i.insert.toString()&&(i={from:o.from,to:o.to,insert:ox.of([" "])}),i){let t,n=e.state;if(l_.ios&&e.inputState.flushIOSKey(e)||l_.android&&(i.from==o.from&&i.to==o.to&&1==i.insert.length&&2==i.insert.lines&&li(e.contentDOM,"Enter",13)||i.from==o.from-1&&i.to==o.to&&0==i.insert.length&&li(e.contentDOM,"Backspace",8)||i.from==o.from&&i.to==o.to+1&&0==i.insert.length&&li(e.contentDOM,"Delete",46)))return!0;let r=i.insert.toString();if(e.state.facet(l0).some(t=>t(e,i.from,i.to,r)))return!0;if(e.inputState.composing>=0&&e.inputState.composing++,i.from>=o.from&&i.to<=o.to&&i.to-i.from>=(o.to-o.from)/3&&(!a||a.main.empty&&a.main.from==i.from+i.insert.length)&&e.inputState.composing<0){let r=o.fromi.to?n.sliceDoc(i.to,o.to):"";t=n.replaceSelection(e.state.toText(r+i.insert.sliceString(0,void 0,e.state.lineBreak)+a))}else{let r=n.changes(i),s=a&&!n.selection.main.eq(a.main)&&a.main.to<=r.newLength?a.main:void 0;if(n.selection.ranges.length>1&&e.inputState.composing>=0&&i.to<=o.to&&i.to>=o.to-10){let a=e.state.sliceDoc(i.from,i.to),l=uE(e)||e.state.doc.lineAt(o.head),u=o.to-i.to,c=o.to-o.from;t=n.changeByRange(t=>{if(t.from==o.from&&t.to==o.to)return{changes:r,range:s||t.map(r)};let d=t.to-u,h=d-a.length;if(t.to-t.from!=c||e.state.sliceDoc(h,d)!=a||l&&t.to>=l.from&&t.from<=l.to)return{range:t};let p=n.changes({from:h,to:d,insert:i.insert}),f=t.to-o.to;return{changes:p,range:s?oX.range(Math.max(0,s.anchor+f),Math.max(0,s.head+f)):t.map(p)}})}else t={changes:r,selection:s&&n.selection.replaceRange(s)}}let s="input.type";return e.composing&&(s+=".compose",e.inputState.compositionFirstChange&&(s+=".start",e.inputState.compositionFirstChange=!1)),e.dispatch(t,{scrollIntoView:!0,userEvent:s}),!0}if(!a||a.main.eq(o))return!1;{let t=!1,n="select";return e.inputState.lastSelectionTime>Date.now()-50&&("select"==e.inputState.lastSelectionOrigin&&(t=!0),n=e.inputState.lastSelectionOrigin),e.dispatch({selection:a,scrollIntoView:t,userEvent:n}),!0}})(this,e,t,n),e=>{this.inputState.runScrollHandlers(this,e),this.observer.intersecting&&this.measure()}),this.inputState=new uF(this),this.inputState.ensureHandlers(this,this.plugins),this.docView=new uS(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),e.parent&&e.parent.appendChild(this.dom)}get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}dispatch(...e){this._dispatch(1==e.length&&e[0]instanceof sg?e[0]:this.state.update(...e))}update(e){if(0!=this.updateState)throw Error("Calls to EditorView.update are not allowed while an update is in progress");let t=!1,n=!1,r,i=this.state;for(let t of e){if(t.startState!=i)throw RangeError("Trying to update state with a transaction that doesn't start from the previous state.");i=t.state}if(this.destroyed){this.viewState.state=i;return}if(this.observer.clear(),i.facet(sk.phrases)!=this.state.facet(sk.phrases))return this.setState(i);r=ul.create(this,i,e);let a=this.viewState.scrollTarget;try{for(let t of(this.updateState=2,e)){if(a&&(a=a.map(t.changes)),t.scrollIntoView){let{main:e}=t.state.selection;a=new l5(e.empty?e:oX.cursor(e.head,e.head>e.anchor?-1:1))}for(let e of t.effects)e.is(l9)&&(a=e.value)}this.viewState.update(r,a),this.bidiCache=cQ.update(this.bidiCache,r.changes),r.empty||(this.updatePlugins(r),this.inputState.update(r)),t=this.docView.update(r),this.state.facet(uo)!=this.styleModules&&this.mountStyles(),n=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(t,e.some(e=>e.isUserEvent("select.pointer")))}finally{this.updateState=0}if(r.startState.facet(cT)!=r.state.facet(cT)&&(this.viewState.mustMeasureContent=!0),(t||n||a||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!r.empty)for(let e of this.state.facet(l1))e(r)}setState(e){if(0!=this.updateState)throw Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let t=this.hasFocus;try{for(let e of this.plugins)e.destroy(this);for(let t of(this.viewState=new cf(e),this.plugins=e.facet(l6).map(e=>new ue(e)),this.pluginMap.clear(),this.plugins))t.update(this);this.docView=new uS(this),this.inputState.ensureHandlers(this,this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(l6),n=e.state.facet(l6);if(t!=n){let r=[];for(let i of n){let n=t.indexOf(i);if(n<0)r.push(new ue(i));else{let t=this.plugins[n];t.mustUpdate=e,r.push(t)}}for(let t of this.plugins)t.mustUpdate!=e&&t.destroy(this);this.plugins=r,this.pluginMap.clear(),this.inputState.ensureHandlers(this,this.plugins)}else for(let t of this.plugins)t.mustUpdate=e;for(let e=0;e-1&&cancelAnimationFrame(this.measureScheduled),this.measureScheduled=0,e&&this.observer.flush();let t=null;try{for(let e=0;;e++){this.updateState=1;let n=this.viewport,r=this.viewState.measure(this);if(!r&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(e>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let i=[];4&r||([this.measureRequests,i]=[i,this.measureRequests]);let a=i.map(e=>{try{return e.read(this)}catch(e){return l4(this.state,e),cD}}),o=ul.create(this,this.state,[]),s=!1,l=!1;o.flags|=r,t?t.flags|=r:t=o,this.updateState=2,o.empty||(this.updatePlugins(o),this.inputState.update(o),this.updateAttrs(),s=this.docView.update(o));for(let e=0;e{let n=lD(this.contentDOM,this.contentAttrs,t),r=lD(this.dom,this.editorAttrs,e);return n||r});return this.editorAttrs=e,this.contentAttrs=t,n}showAnnouncements(e){let t=!0;for(let n of e)for(let e of n.effects)e.is(c$.announce)&&(t&&(this.announceDOM.textContent=""),t=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=e.value)}mountStyles(){this.styleModules=this.state.facet(uo),sZ.mount(this.root,this.styleModules.concat(cA).reverse())}readMeasured(){if(2==this.updateState)throw Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=requestAnimationFrame(()=>this.measure())),e){if(null!=e.key){for(let t=0;tt.spec==e)||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,n){return uM(this,e,uQ(this,e,t,n))}moveByGroup(e,t){return uM(this,e,uQ(this,e,t,t=>{var n;let r,i;return n=e.head,i=(r=this.state.charCategorizer(n))(t),e=>{let t=r(e);return i==sx.Space&&(i=t),i==t}}))}moveToLineBoundary(e,t,n=!0){return function(e,t,n,r){let i=e.state.doc.lineAt(t.head),a=r&&e.lineWrapping?e.coordsAtPos(t.assoc<0&&t.head>i.from?t.head-1:t.head):null;if(a){let t=e.dom.getBoundingClientRect(),r=e.textDirectionAt(i.from),o=e.posAtCoords({x:n==(r==uu.LTR)?t.right-1:t.left+1,y:(a.top+a.bottom)/2});if(null!=o)return oX.cursor(o,n?-1:1)}let o=lZ.find(e.docView,t.head),s=o?n?o.posAtEnd:o.posAtStart:n?i.to:i.from;return oX.cursor(s,n?-1:1)}(this,e,t,n)}moveVertically(e,t,n){return uM(this,e,function(e,t,n,r){let i=t.head,a=n?1:-1;if(i==(n?e.state.doc.length:0))return oX.cursor(i,t.assoc);let o=t.goalColumn,s,l=e.contentDOM.getBoundingClientRect(),u=e.coordsAtPos(i),c=e.documentTop;if(u)null==o&&(o=u.left-l.left),s=a<0?u.top:u.bottom;else{let t=e.viewState.lineBlockAt(i);null==o&&(o=Math.min(l.right-l.left,e.defaultCharacterWidth*(i-t.from))),s=(a<0?t.top:t.bottom)+c}let d=l.left+o,h=null!=r?r:e.defaultLineHeight>>1;for(let n=0;;n+=10){let r=s+(h+n)*a,u=uL(e,{x:d,y:r},!1,a);if(rl.bottom||(a<0?ui))return oX.cursor(u,t.assoc,void 0,o)}}(this,e,t,n))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){return this.readMeasured(),uL(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let n=this.docView.coordsAt(e,t);if(!n||n.left==n.right)return n;let r=this.state.doc.lineAt(e),i=this.bidiSpans(r);return s7(n,i[ub.find(i,e-r.from,-1,t)].dir==uu.LTR==t>0)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(l2)||ethis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>cL)return uv(e.length);let t=this.textDirectionAt(e.from);for(let n of this.bidiCache)if(n.from==e.from&&n.dir==t)return n.order;let n=function(e,t){let n=e.length,r=t==uc?1:2,i=t==uc?2:1;if(!e||1==r&&!uO.test(e))return uv(n);for(let t=0,i=r,o=r;t=0;e-=3)if(ug[e+1]==-l){let n=ug[e+2],o=2&n?r:4&n?1&n?i:r:0;o&&(uy[t]=uy[ug[e]]=o),a=e;break}}else if(189==ug.length)break;else ug[a++]=t,ug[a++]=s,ug[a++]=o}else if(2==(u=uy[t])||1==u){let e=u==r;o=e?0:1;for(let t=a-3;t>=0;t-=3){let n=ug[t+2];if(2&n)break;if(e)ug[t+2]|=2;else{if(4&n)break;ug[t+2]|=4}}}for(let e=0;et;){let e=n,r=2!=uy[--n];for(;n>t&&r==(2!=uy[n-1]);)n--;o.push(new ub(n,e,r?2:1))}else o.push(new ub(t,e,0))}else for(let e=0;eDate.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{ln(this.contentDOM),this.docView.updateSelection()})}destroy(){for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){return l9.of(new l5("number"==typeof e?oX.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}static domEventHandlers(e){return l7.define(()=>({}),{eventHandlers:e})}static theme(e,t){let n=sZ.newName(),r=[cT.of(n),uo.of(cC(`.${n}`,e))];return t&&t.dark&&r.push(ck.of(!0)),r}static baseTheme(e){return o6.lowest(uo.of(cC("."+c_,e,cE)))}}c$.styleModule=uo,c$.inputHandler=l0,c$.perLineTextDirection=l2,c$.exceptionSink=lJ,c$.updateListener=l1,c$.editable=l3,c$.mouseSelectionStyle=lK,c$.dragMovesSelection=lV,c$.clickAddsSelectionRange=lX,c$.decorations=ur,c$.atomicRanges=ui,c$.scrollMargins=ua,c$.darkTheme=ck,c$.contentAttributes=un,c$.editorAttributes=ut,c$.lineWrapping=c$.contentAttributes.of({class:"cm-lineWrapping"}),c$.announce=sm.define();let cL=4096,cD={};class cQ{constructor(e,t,n,r){this.from=e,this.to=t,this.dir=n,this.order=r}static update(e,t){if(t.empty)return e;let n=[],r=e.length?e[e.length-1].dir:uu.LTR;for(let i=Math.max(0,e.length-10);i=0;i--){let t=r[i],a="function"==typeof t?t(e):t;a&&l$(a,n)}return n}let cF=l_.mac?"mac":l_.windows?"win":l_.linux?"linux":"key";function cB(e,t,n){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),!1!==n&&t.shiftKey&&(e="Shift-"+e),e}let cU=c$.domEventHandlers({keydown:(e,t)=>{let n,r;return function(e,t,n,r){var i;let a=("Esc"==(i=!(sX&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||sV&&t.shiftKey&&t.key&&1==t.key.length||"Unidentified"==t.key)&&t.key||(t.shiftKey?sY:sH)[t.keyCode]||t.key||"Unidentified")&&(i="Escape"),"Del"==i&&(i="Delete"),"Left"==i&&(i="ArrowLeft"),"Up"==i&&(i="ArrowUp"),"Right"==i&&(i="ArrowRight"),"Down"==i&&(i="ArrowDown"),i),o=1==a.length&&" "!=a,s="",l=!1;cW&&cW.view==n&&cW.scope==r&&(s=cW.prefix+" ",(l=0>uU.indexOf(t.keyCode))&&(cW=null));let u=e=>{if(e){for(let t of e.commands)if(t(n))return!0;e.preventDefault&&(l=!0)}return!1},c=e[r],d;if(c){if(u(c[s+cB(a,t,!o)]))return!0;if(o&&(t.shiftKey||t.altKey||t.metaKey)&&(d=sH[t.keyCode])&&d!=a){if(u(c[s+cB(d,t,!0)]))return!0}else if(o&&t.shiftKey&&u(c[s+cB(a,t,!0)]))return!0}return l}((n=t.state.facet(cz),(r=cj.get(n))||cj.set(n,r=function(e,t=cF){let n=Object.create(null),r=Object.create(null),i=(e,t)=>{let n=r[e];if(null==n)r[e]=t;else if(n!=t)throw Error("Key binding "+e+" is used both as a regular binding and as a multi-stroke prefix")},a=(e,r,a,o)=>{let s=n[e]||(n[e]=Object.create(null)),l=r.split(/ (?!$)/).map(e=>(function(e,t){let n,r,i,a;let o=e.split(/-(?!$)/),s=o[o.length-1];"Space"==s&&(s=" ");for(let e=0;e{let r=cW={view:t,prefix:n,scope:e};return setTimeout(()=>{cW==r&&(cW=null)},4e3),!0}]})}let u=l.join(" ");i(u,!1);let c=s[u]||(s[u]={preventDefault:!1,commands:[]});c.commands.push(a),o&&(c.preventDefault=!0)};for(let n of e){let e=n[t]||n.key;if(e)for(let t of n.scope?n.scope.split(" "):["editor"])a(t,e,n.run,n.preventDefault),n.shift&&a(t,"Shift-"+e,n.shift,n.preventDefault)}return n}(n.reduce((e,t)=>e.concat(t),[]))),r),e,t,"editor")}}),cz=oJ.define({enables:cU}),cj=new WeakMap,cW=null,cZ=!l_.ios,cq=oJ.define({combine:e=>s_(e,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})});class cG{constructor(e,t,n,r,i){this.left=e,this.top=t,this.width=n,this.height=r,this.className=i}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",this.width>=0&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}}let cH=l7.fromClass(class{constructor(e){this.view=e,this.rangePieces=[],this.cursors=[],this.measureReq={read:this.readPos.bind(this),write:this.drawSel.bind(this)},this.selectionLayer=e.scrollDOM.appendChild(document.createElement("div")),this.selectionLayer.className="cm-selectionLayer",this.selectionLayer.setAttribute("aria-hidden","true"),this.cursorLayer=e.scrollDOM.appendChild(document.createElement("div")),this.cursorLayer.className="cm-cursorLayer",this.cursorLayer.setAttribute("aria-hidden","true"),e.requestMeasure(this.measureReq),this.setBlinkRate()}setBlinkRate(){this.cursorLayer.style.animationDuration=this.view.state.facet(cq).cursorBlinkRate+"ms"}update(e){let t=e.startState.facet(cq)!=e.state.facet(cq);(t||e.selectionSet||e.geometryChanged||e.viewportChanged)&&this.view.requestMeasure(this.measureReq),e.transactions.some(e=>e.scrollIntoView)&&(this.cursorLayer.style.animationName="cm-blink"==this.cursorLayer.style.animationName?"cm-blink2":"cm-blink"),t&&this.setBlinkRate()}readPos(){let{state:e}=this.view,t=e.facet(cq),n=e.selection.ranges.map(e=>e.empty?[]:function(e,t){if(t.to<=e.viewport.from||t.from>=e.viewport.to)return[];let n=Math.max(t.from,e.viewport.from),r=Math.min(t.to,e.viewport.to),i=e.textDirection==uu.LTR,a=e.contentDOM,o=a.getBoundingClientRect(),s=cV(e),l=window.getComputedStyle(a.firstChild),u=o.left+parseInt(l.paddingLeft)+Math.min(0,parseInt(l.textIndent)),c=o.right-parseInt(l.paddingRight),d=cJ(e,n),h=cJ(e,r),p=d.type==lM.Text?d:null,f=h.type==lM.Text?h:null;if(e.lineWrapping&&(p&&(p=cK(e,n,p)),f&&(f=cK(e,r,f))),p&&f&&p.from==f.from)return g(O(t.from,t.to,p));{let n=p?O(t.from,null,p):b(d,!1),r=f?O(null,t.to,f):b(h,!0),i=[];return(p||d).to<(f||h).from-1?i.push(m(u,n.bottom,c,r.top)):n.bottomd&&r.from=a)break;s>i&&l(Math.max(e,i),null==t&&e<=d,Math.min(s,a),null==n&&s>=h,o.dir)}if((i=r.to+1)>=a)break}return 0==s.length&&l(d,null==t,h,null==n,e.textDirection),{top:a,bottom:o,horizontal:s}}function b(e,t){let n=o.top+(t?e.top:e.bottom);return{top:n,bottom:n,horizontal:[]}}}(this.view,e)).reduce((e,t)=>e.concat(t)),r=[];for(let n of e.selection.ranges){let i=n==e.selection.main;if(n.empty?!i||cZ:t.drawRangeCursor){let e=function(e,t,n){let r=e.coordsAtPos(t.head,t.assoc||1);if(!r)return null;let i=cV(e);return new cG(r.left-i.left,r.top-i.top,-1,r.bottom-r.top,n?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary")}(this.view,n,i);e&&r.push(e)}}return{rangePieces:n,cursors:r}}drawSel({rangePieces:e,cursors:t}){if(e.length!=this.rangePieces.length||e.some((e,t)=>!e.eq(this.rangePieces[t]))){for(let t of(this.selectionLayer.textContent="",e))this.selectionLayer.appendChild(t.draw());this.rangePieces=e}if(t.length!=this.cursors.length||t.some((e,t)=>!e.eq(this.cursors[t]))){let e=this.cursorLayer.children;if(e.length!==t.length)for(let e of(this.cursorLayer.textContent="",t))this.cursorLayer.appendChild(e.draw());else t.forEach((t,n)=>t.adjust(e[n]));this.cursors=t}}destroy(){this.selectionLayer.remove(),this.cursorLayer.remove()}}),cY={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};cZ&&(cY[".cm-line"].caretColor="transparent !important");let cX=o6.highest(c$.theme(cY));function cV(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==uu.LTR?t.left:t.right-e.scrollDOM.clientWidth)-e.scrollDOM.scrollLeft,top:t.top-e.scrollDOM.scrollTop}}function cK(e,t,n){let r=oX.cursor(t);return{from:Math.max(n.from,e.moveToLineBoundary(r,!1,!0).from),to:Math.min(n.to,e.moveToLineBoundary(r,!0,!0).from),type:lM.Text}}function cJ(e,t){let n=e.lineBlockAt(t);if(Array.isArray(n.type)){for(let e of n.type)if(e.to>t||e.to==t&&(e.to==n.to||e.type==lM.Text))return e}return n}function c1(e,t,n,r,i){t.lastIndex=0;for(let a=e.iterRange(n,r),o=n,s;!a.next().done;o+=a.value.length)if(!a.lineBreak)for(;s=t.exec(a.value);)i(o+s.index,o+s.index+s[0].length,s)}class c0{constructor(e){let{regexp:t,decoration:n,boundary:r,maxLength:i=1e3}=e;if(!t.global)throw RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");this.regexp=t,this.getDeco="function"==typeof n?n:()=>n,this.boundary=r,this.maxLength=i}createDeco(e){let t=new sR;for(let{from:n,to:r}of function(e,t){let n=e.visibleRanges;if(1==n.length&&n[0].from==e.viewport.from&&n[0].to==e.viewport.to)return n;let r=[];for(let{from:i,to:a}of n)i=Math.max(e.state.doc.lineAt(i).from,i-t),a=Math.min(e.state.doc.lineAt(a).to,a+t),r.length&&r[r.length-1].to>=i?r[r.length-1].to=a:r.push({from:i,to:a});return r}(e,this.maxLength))c1(e.state.doc,this.regexp,n,r,(n,r,i)=>t.add(n,r,this.getDeco(i,e,n)));return t.finish()}updateDeco(e,t){let n=1e9,r=-1;return(e.docChanged&&e.changes.iterChanges((t,i,a,o)=>{o>e.view.viewport.from&&a1e3)?this.createDeco(e.view):r>-1?this.updateRange(e.view,t.map(e.changes),n,r):t}updateRange(e,t,n,r){for(let i of e.visibleRanges){let a=Math.max(i.from,n),o=Math.min(i.to,r);if(o>a){let n=e.state.doc.lineAt(a),r=n.ton.from;a--)if(this.boundary.test(n.text[a-1-n.from])){s=a;break}for(;ou.push(this.getDeco(r,e,t).range(t,n)));t=t.update({filterFrom:s,filterTo:l,filter:(e,t)=>el,add:u})}}return t}}let c2=null!=/x/.unicode?"gu":"g",c5=RegExp("[\x00-\b\n-\x1f\x7f-\x9f\xad؜​‎‏\u2028\u2029‭‮\uFEFF-]",c2),c9={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"},c4=null,c3=oJ.define({combine(e){let t=s_(e,{render:null,specialChars:c5,addSpecialChars:null});return(t.replaceTabs=!function(){var e;if(null==c4&&"undefined"!=typeof document&&document.body){let t=document.body.style;c4=(null!==(e=t.tabSize)&&void 0!==e?e:t.MozTabSize)!=null}return c4||!1}())&&(t.specialChars=RegExp(" |"+t.specialChars.source,c2)),t.addSpecialChars&&(t.specialChars=RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,c2)),t}}),c8=null;class c6 extends lQ{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){var t;let n=(t=this.code)>=32?"•":10==t?"␤":String.fromCharCode(9216+t),r=e.state.phrase("Control character")+" "+(c9[this.code]||"0x"+this.code.toString(16)),i=this.options.render&&this.options.render(this.code,r,n);if(i)return i;let a=document.createElement("span");return a.textContent=n,a.title=r,a.setAttribute("aria-label",r),a.className="cm-specialChar",a}ignoreEvent(){return!1}}class c7 extends lQ{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}let de="-10000px";class dt{constructor(e,t,n){this.facet=t,this.createTooltipView=n,this.input=e.state.facet(t),this.tooltips=this.input.filter(e=>e),this.tooltipViews=this.tooltips.map(n)}update(e){let t=e.state.facet(this.facet),n=t.filter(e=>e);if(t===this.input){for(let t of this.tooltipViews)t.update&&t.update(e);return!1}let r=[];for(let t=0;tr.indexOf(e)&&e.dom.remove();return this.input=t,this.tooltips=n,this.tooltipViews=r,!0}}function dn(){return{top:0,left:0,bottom:innerHeight,right:innerWidth}}let dr=oJ.define({combine:e=>{var t,n,r;return{position:l_.ios?"absolute":(null===(t=e.find(e=>e.position))||void 0===t?void 0:t.position)||"fixed",parent:(null===(n=e.find(e=>e.parent))||void 0===n?void 0:n.parent)||null,tooltipSpace:(null===(r=e.find(e=>e.tooltipSpace))||void 0===r?void 0:r.tooltipSpace)||dn}}}),di=l7.fromClass(class{constructor(e){var t;this.view=e,this.inView=!0,this.lastTransaction=0,this.measureTimeout=-1;let n=e.state.facet(dr);this.position=n.position,this.parent=n.parent,this.classes=e.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new dt(e,dl,e=>this.createTooltip(e)),this.intersectionObserver="function"==typeof IntersectionObserver?new IntersectionObserver(e=>{Date.now()>this.lastTransaction-50&&e.length>0&&e[e.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),null===(t=e.dom.ownerDocument.defaultView)||void 0===t||t.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver)for(let e of(this.intersectionObserver.disconnect(),this.manager.tooltipViews))this.intersectionObserver.observe(e.dom)}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(e){e.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(e);t&&this.observeIntersection();let n=t||e.geometryChanged,r=e.state.facet(dr);if(r.position!=this.position){for(let e of(this.position=r.position,this.manager.tooltipViews))e.dom.style.position=this.position;n=!0}if(r.parent!=this.parent){for(let e of(this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer(),this.manager.tooltipViews))this.container.appendChild(e.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(e){let t=e.create(this.view);if(t.dom.classList.add("cm-tooltip"),e.arrow&&!t.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let e=document.createElement("div");e.className="cm-tooltip-arrow",t.dom.appendChild(e)}return t.dom.style.position=this.position,t.dom.style.top=de,this.container.appendChild(t.dom),t.mount&&t.mount(this.view),t}destroy(){var e,t;for(let{dom:t}of(null===(e=this.view.dom.ownerDocument.defaultView)||void 0===e||e.removeEventListener("resize",this.measureSoon),this.manager.tooltipViews))t.remove();null===(t=this.intersectionObserver)||void 0===t||t.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let e=this.view.dom.getBoundingClientRect();return{editor:e,parent:this.parent?this.container.getBoundingClientRect():e,pos:this.manager.tooltips.map((e,t)=>{let n=this.manager.tooltipViews[t];return n.getCoords?n.getCoords(e.pos):this.view.coordsAtPos(e.pos)}),size:this.manager.tooltipViews.map(({dom:e})=>e.getBoundingClientRect()),space:this.view.state.facet(dr).tooltipSpace(this.view)}}writeMeasure(e){let{editor:t,space:n}=e,r=[];for(let i=0;i=Math.min(t.bottom,n.bottom)||l.rightMath.min(t.right,n.right)+.1){s.style.top=de;continue}let c=a.arrow?o.dom.querySelector(".cm-tooltip-arrow"):null,d=c?7:0,h=u.right-u.left,p=u.bottom-u.top,f=o.offset||ds,m=this.view.textDirection==uu.LTR,g=u.width>n.right-n.left?m?n.left:n.right-u.width:m?Math.min(l.left-(c?14:0)+f.x,n.right-h):Math.max(n.left,l.left-h+(c?14:0)-f.x),O=!!a.above;!a.strictSide&&(O?l.top-(u.bottom-u.top)-f.yn.bottom)&&O==n.bottom-l.bottom>l.top-n.top&&(O=!O);let b=O?l.top-p-d-f.y:l.bottom+d+f.y,y=g+h;if(!0!==o.overlap)for(let e of r)e.leftg&&e.topb&&(b=O?e.top-p-2-d:e.bottom+d+2);"absolute"==this.position?(s.style.top=b-e.parent.top+"px",s.style.left=g-e.parent.left+"px"):(s.style.top=b+"px",s.style.left=g+"px"),c&&(c.style.left=`${l.left+(m?f.x:-f.x)-(g+14-7)}px`),!0!==o.overlap&&r.push({left:g,top:b,right:y,bottom:b+p}),s.classList.toggle("cm-tooltip-above",O),s.classList.toggle("cm-tooltip-below",!O),o.positioned&&o.positioned()}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let e of this.manager.tooltipViews)e.dom.style.top=de}},{eventHandlers:{scroll(){this.maybeMeasure()}}}),da=c$.baseTheme({".cm-tooltip":{zIndex:100},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),ds={x:0,y:0},dl=oJ.define({enables:[di,da]}),du=oJ.define();class dc{constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new dt(e,du,e=>this.createHostedView(e))}static create(e){return new dc(e)}createHostedView(e){let t=e.create(this.view);return t.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(t.dom),this.mounted&&t.mount&&t.mount(this.view),t}mount(e){for(let t of this.manager.tooltipViews)t.mount&&t.mount(e);this.mounted=!0}positioned(){for(let e of this.manager.tooltipViews)e.positioned&&e.positioned()}update(e){this.manager.update(e)}}let dd=oJ.define({combine(e){let t,n;for(let r of e)t=t||r.topContainer,n=n||r.bottomContainer;return{topContainer:t,bottomContainer:n}}}),dh=l7.fromClass(class{constructor(e){this.input=e.state.facet(dm),this.specs=this.input.filter(e=>e),this.panels=this.specs.map(t=>t(e));let t=e.state.facet(dd);for(let n of(this.top=new dp(e,!0,t.topContainer),this.bottom=new dp(e,!1,t.bottomContainer),this.top.sync(this.panels.filter(e=>e.top)),this.bottom.sync(this.panels.filter(e=>!e.top)),this.panels))n.dom.classList.add("cm-panel"),n.mount&&n.mount()}update(e){let t=e.state.facet(dd);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new dp(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new dp(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=e.state.facet(dm);if(n!=this.input){let t=n.filter(e=>e),r=[],i=[],a=[],o=[];for(let n of t){let t=this.specs.indexOf(n),s;t<0?(s=n(e.view),o.push(s)):(s=this.panels[t]).update&&s.update(e),r.push(s),(s.top?i:a).push(s)}for(let e of(this.specs=t,this.panels=r,this.top.sync(i),this.bottom.sync(a),o))e.dom.classList.add("cm-panel"),e.mount&&e.mount()}else for(let t of this.panels)t.update&&t.update(e)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:e=>c$.scrollMargins.of(t=>{let n=t.plugin(e);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}})});class dp{constructor(e,t,n){this.view=e,this.top=t,this.container=n,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&0>e.indexOf(t)&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(0==this.panels.length){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let e=this.container||this.view.dom;e.insertBefore(this.dom,this.top?e.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=df(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=df(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(this.container&&this.classes!=this.view.themeClasses){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function df(e){let t=e.nextSibling;return e.remove(),t}let dm=oJ.define({enables:dh});class dg extends sS{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}dg.prototype.elementClass="",dg.prototype.toDOM=void 0,dg.prototype.mapMode=oB.TrackBefore,dg.prototype.startSide=dg.prototype.endSide=-1,dg.prototype.point=!0;let dO=oJ.define(),db=oJ.define(),dy=oJ.define({combine:e=>e.some(e=>e)}),dv=l7.fromClass(class{constructor(e){for(let t of(this.view=e,this.prevViewport=e.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight+"px",this.gutters=e.state.facet(db).map(t=>new d_(e,t)),this.gutters))this.dom.appendChild(t.dom);this.fixed=!e.state.facet(dy),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),e.scrollDOM.insertBefore(this.dom,e.contentDOM)}update(e){if(this.updateGutters(e)){let t=this.prevViewport,n=e.view.viewport,r=Math.min(t.to,n.to)-Math.max(t.from,n.from);this.syncGutters(r<(n.to-n.from)*.8)}e.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(dy)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=e.view.viewport}syncGutters(e){let t=this.dom.nextSibling;e&&this.dom.remove();let n=sA.iter(this.view.state.facet(dO),this.view.viewport.from),r=[],i=this.gutters.map(e=>new dk(e,this.view.viewport,-this.view.documentPadding.top));for(let e of this.view.viewportLineBlocks){let t;if(Array.isArray(e.type)){for(let n of e.type)if(n.type==lM.Text){t=n;break}}else t=e.type==lM.Text?e:void 0;if(t)for(let a of(r.length&&(r=[]),dT(n,r,e.from),i))a.line(this.view,t,r)}for(let e of i)e.finish();e&&this.view.scrollDOM.insertBefore(this.dom,t)}updateGutters(e){let t=e.startState.facet(db),n=e.state.facet(db),r=e.docChanged||e.heightChanged||e.viewportChanged||!sA.eq(e.startState.facet(dO),e.state.facet(dO),e.view.viewport.from,e.view.viewport.to);if(t==n)for(let t of this.gutters)t.update(e)&&(r=!0);else{r=!0;let i=[];for(let r of n){let n=t.indexOf(r);n<0?i.push(new d_(this.view,r)):(this.gutters[n].update(e),i.push(this.gutters[n]))}for(let e of this.gutters)e.dom.remove(),0>i.indexOf(e)&&e.destroy();for(let e of i)this.dom.appendChild(e.dom);this.gutters=i}return r}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove()}},{provide:e=>c$.scrollMargins.of(t=>{let n=t.plugin(e);return n&&0!=n.gutters.length&&n.fixed?t.textDirection==uu.LTR?{left:n.dom.offsetWidth}:{right:n.dom.offsetWidth}:null})});function dx(e){return Array.isArray(e)?e:[e]}function dT(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}class dk{constructor(e,t,n){this.gutter=e,this.height=n,this.localMarkers=[],this.i=0,this.cursor=sA.iter(e.markers,t.from)}line(e,t,n){this.localMarkers.length&&(this.localMarkers=[]),dT(this.cursor,this.localMarkers,t.from);let r=n.length?this.localMarkers.concat(n):this.localMarkers,i=this.gutter.config.lineMarker(e,t,r);i&&r.unshift(i);let a=this.gutter;if(0==r.length&&!a.config.renderEmptyElements)return;let o=t.top-this.height;if(this.i==a.elements.length){let n=new dS(e,t.height,o,r);a.elements.push(n),a.dom.appendChild(n.dom)}else a.elements[this.i].update(e,t.height,o,r);this.height=t.bottom,this.i++}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class d_{constructor(e,t){for(let n in this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:""),t.domEventHandlers)this.dom.addEventListener(n,r=>{let i=e.lineBlockAtHeight(r.clientY-e.documentTop);t.domEventHandlers[n](e,i,r)&&r.preventDefault()});this.markers=dx(t.markers(e)),t.initialSpacer&&(this.spacer=new dS(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=dx(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let t=this.config.updateSpacer(this.spacer.markers[0],e);t!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[t])}let n=e.view.viewport;return!sA.eq(this.markers,t,n.from,n.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(e)}destroy(){for(let e of this.elements)e.destroy()}}class dS{constructor(e,t,n,r){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,n,r)}update(e,t,n,r){this.height!=t&&(this.dom.style.height=(this.height=t)+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),!function(e,t){if(e.length!=t.length)return!1;for(let n=0;ns_(e,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let n=Object.assign({},e);for(let e in t){let r=n[e],i=t[e];n[e]=r?(e,t,n)=>r(e,t,n)||i(e,t,n):i}return n}})});class dC extends dg{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function dA(e,t){return e.state.facet(dE).formatNumber(t,e.state)}let dR=db.compute([dE],e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:e=>e.state.facet(dw),lineMarker:(e,t,n)=>n.some(e=>e.toDOM)?null:new dC(dA(e,e.state.doc.lineAt(t.from).number)),lineMarkerChange:e=>e.startState.facet(dE)!=e.state.facet(dE),initialSpacer:e=>new dC(dA(e,dP(e.state.doc.lines))),updateSpacer(e,t){let n=dA(t.view,dP(t.view.state.doc.lines));return n==e.number?e:new dC(n)},domEventHandlers:e.facet(dE).domEventHandlers}));function dP(e){let t=9;for(;t{let t=[],n=-1;for(let r of e.selection.ranges)if(r.empty){let i=e.doc.lineAt(r.head).from;i>n&&(n=i,t.push(dI.range(i)))}return sA.of(t)}),d$=0;class dL{constructor(e,t){this.from=e,this.to=t}}class dD{constructor(e={}){this.id=d$++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=dF.match(e)),t=>{let n=e(t);return void 0===n?null:[this,n]}}}dD.closedBy=new dD({deserialize:e=>e.split(" ")}),dD.openedBy=new dD({deserialize:e=>e.split(" ")}),dD.group=new dD({deserialize:e=>e.split(" ")}),dD.contextHash=new dD({perNode:!0}),dD.lookAhead=new dD({perNode:!0}),dD.mounted=new dD({perNode:!0});class dQ{constructor(e,t,n){this.tree=e,this.overlay=t,this.parser=n}}let dM=Object.create(null);class dF{constructor(e,t,n,r=0){this.name=e,this.props=t,this.id=n,this.flags=r}static define(e){let t=e.props&&e.props.length?Object.create(null):dM,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0),r=new dF(e.name||"",t,e.id,n);if(e.props){for(let n of e.props)if(Array.isArray(n)||(n=n(r)),n){if(n[0].perNode)throw RangeError("Can't store a per-node prop on a node type");t[n[0].id]=n[1]}}return r}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(dD.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let r of n.split(" "))t[r]=e[n];return e=>{for(let n=e.prop(dD.group),r=-1;r<(n?n.length:0);r++){let i=t[r<0?e.name:n[r]];if(i)return i}}}}dF.none=new dF("",Object.create(null),0,8);class dB{constructor(e){this.types=e;for(let t=0;t=r&&(a.type.isAnonymous||!1!==t(a))){if(a.firstChild())continue;e=!0}for(;e&&n&&!a.type.isAnonymous&&n(a),!a.nextSibling();){if(!a.parent())return;e=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:d9(dF.none,this.children,this.positions,0,this.children.length,0,this.length,(e,t,n)=>new dj(this.type,e,t,n,this.propValues),e.makeTree||((e,t,n)=>new dj(dF.none,e,t,n)))}static build(e){return function(e){var t;let{buffer:n,nodeSet:r,maxBufferLength:i=1024,reused:a=[],minRepeatType:o=r.types.length}=e,s=Array.isArray(n)?new dW(n,n.length):n,l=r.types,u=0,c=0;function d(e,t,n,i,a,o,s,l){let u=[],c=[];for(;e.length>i;)u.push(e.pop()),c.push(t.pop()+n-a);e.push(h(r.types[s],u,c,o-a,l-o)),t.push(a-n)}function h(e,t,n,r,i=0,a){if(u){let e=[dD.contextHash,u];a=a?[e].concat(a):[e]}if(i>25){let e=[dD.lookAhead,i];a=a?[e].concat(a):[e]}return new dj(e,t,n,r,a)}let p=[],f=[];for(;s.pos>0;)!function e(t,n,p,f,m){let{id:g,start:O,end:b,size:y}=s,v=c;for(;y<0;){if(s.next(),-1==y){let e=a[g];p.push(e),f.push(O-t);return}if(-3==y){u=g;return}if(-4==y){c=g;return}throw RangeError(`Unrecognized record size: ${y}`)}let x=l[g],T,k,_=O-t;if(b-O<=i&&(k=function(e,t){let n=s.fork(),r=0,a=0,l=0,u=n.end-i,c={size:0,start:0,skip:0};a:for(let i=n.pos-e;n.pos>i;){let e=n.size;if(n.id==t&&e>=0){c.size=r,c.start=a,c.skip=l,l+=4,r+=4,n.next();continue}let s=n.pos-e;if(e<0||s=o?4:0,h=n.start;for(n.next();n.pos>s;){if(n.size<0){if(-3==n.size)d+=4;else break a}else n.id>=o&&(d+=4);n.next()}a=h,r+=e,l+=d}return(t<0||r==e)&&(c.size=r,c.start=a,c.skip=l),c.size>4?c:void 0}(s.pos-n,m))){let e=new Uint16Array(k.size-k.skip),n=s.pos-k.size,i=e.length;for(;s.pos>n;)i=function e(t,n,r){let{id:i,start:a,end:l,size:d}=s;if(s.next(),d>=0&&i4){let i=s.pos-(d-4);for(;s.pos>i;)r=e(t,n,r)}n[--r]=o,n[--r]=l-t,n[--r]=a-t,n[--r]=i}else -3==d?u=i:-4==d&&(c=i);return r}(k.start,e,i);T=new dZ(e,b-k.start,r),_=k.start-t}else{let t=s.pos-y;s.next();let n=[],r=[],a=g>=o?g:-1,l=0,u=b;for(;s.pos>t;)a>=0&&s.id==a&&s.size>=0?(s.end<=u-i&&(d(n,r,O,l,s.end,u,a,v),l=n.length,u=s.end),s.next()):e(O,t,n,r,a);if(a>=0&&l>0&&l-1&&l>0){let e=function(e){return(t,n,r)=>{let i=0,a=t.length-1,o,s;if(a>=0&&(o=t[a])instanceof dj){if(!a&&o.type==e&&o.length==r)return o;(s=o.prop(dD.lookAhead))&&(i=n[a]+o.length+s)}return h(e,t,n,r,i)}}(x);T=d9(x,n,r,0,n.length,0,b-O,e,e)}else T=h(x,n,r,b-O,v-b)}p.push(T),f.push(_)}(e.start||0,e.bufferStart||0,p,f,-1);let m=null!==(t=e.length)&&void 0!==t?t:p.length?f[0]+p[0].length:0;return new dj(l[e.topID],p.reverse(),f.reverse(),m)}(e)}}dj.empty=new dj(dF.none,[],[],0);class dW{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new dW(this.buffer,this.index)}}class dZ{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return dF.none}toString(){let e=[];for(let t=0;t0)));s=a[s+3]);return o}slice(e,t,n,r){let i=this.buffer,a=new Uint16Array(t-e);for(let r=e,o=0;r=t&&nt;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function dG(e,t){let n=e.childBefore(t);for(;n;){let t=n.lastChild;if(!t||t.to!=n.to)break;t.type.isError&&t.from==t.to?(e=n,n=t.prevSibling):n=t}return e}function dH(e,t,n,r){for(var i;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to0?o.length:-1;e!=l;e+=t){let l=o[e],u=s[e]+a.from;if(dq(r,n,u,u+l.length)){if(l instanceof dZ){if(i&_B.ExcludeBuffers)continue;let o=l.findChild(0,l.buffer.length,t,n-u,r);if(o>-1)return new dJ(new dK(a,l,e,u),null,o)}else if(i&_B.IncludeAnonymous||!l.type.isAnonymous||d0(l)){let o;if(!(i&_B.IgnoreMounts)&&l.props&&(o=l.prop(dD.mounted))&&!o.overlay)return new dY(o.tree,u,e,a);let s=new dY(l,u,e,a);return i&_B.IncludeAnonymous||!s.type.isAnonymous?s:s.nextChild(t<0?l.children.length-1:0,t,n,r)}}}if(i&_B.IncludeAnonymous||!a.type.isAnonymous||(e=a.index>=0?a.index+t:t<0?-1:a._parent._tree.children.length,!(a=a._parent)))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,n=0){let r;if(!(n&_B.IgnoreOverlays)&&(r=this._tree.prop(dD.mounted))&&r.overlay){let n=e-this.from;for(let{from:e,to:i}of r.overlay)if((t>0?e<=n:e=n:i>n))return new dY(r.tree,r.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}cursor(e=0){return new d1(this,e)}get tree(){return this._tree}toTree(){return this._tree}resolve(e,t=0){return dH(this,e,t,!1)}resolveInner(e,t=0){return dH(this,e,t,!0)}enterUnfinishedNodesBefore(e){return dG(this,e)}getChild(e,t=null,n=null){let r=dX(this,e,t,n);return r.length?r[0]:null}getChildren(e,t=null,n=null){return dX(this,e,t,n)}toString(){return this._tree.toString()}get node(){return this}matchContext(e){return dV(this,e)}}function dX(e,t,n,r){let i=e.cursor(),a=[];if(!i.firstChild())return a;if(null!=n){for(;!i.type.is(n);)if(!i.nextSibling())return a}for(;;){if(null!=r&&i.type.is(r))return a;if(i.type.is(t)&&a.push(i.node),!i.nextSibling())return null==r?a:[]}}function dV(e,t,n=t.length-1){for(let r=e.parent;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(t[n]&&t[n]!=r.name)return!1;n--}}return!0}class dK{constructor(e,t,n,r){this.parent=e,this.buffer=t,this.index=n,this.start=r}}class dJ{constructor(e,t,n){this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}child(e,t,n){let{buffer:r}=this.context,i=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.context.start,n);return i<0?null:new dJ(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,n=0){if(n&_B.ExcludeBuffers)return null;let{buffer:r}=this.context,i=r.findChild(this.index+4,r.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return i<0?null:new dJ(this.context,this,i)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new dJ(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new dJ(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}cursor(e=0){return new d1(this,e)}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,r=this.index+4,i=n.buffer[this.index+3];if(i>r){let a=n.buffer[this.index+1],o=n.buffer[this.index+2];e.push(n.slice(r,i,a,o)),t.push(0)}return new dj(this.type,e,t,this.to-this.from)}resolve(e,t=0){return dH(this,e,t,!1)}resolveInner(e,t=0){return dH(this,e,t,!0)}enterUnfinishedNodesBefore(e){return dG(this,e)}toString(){return this.context.buffer.childString(this.index)}getChild(e,t=null,n=null){let r=dX(this,e,t,n);return r.length?r[0]:null}getChildren(e,t=null,n=null){return dX(this,e,t,n)}get node(){return this}matchContext(e){return dV(this,e)}}class d1{constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof dY)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let t=e._parent;t;t=t._parent)this.stack.unshift(t.index);this.bufferNode=e,this.yieldBuf(e.index)}}get name(){return this.type.name}yieldNode(e){return!!e&&(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0)}yieldBuf(e,t){this.index=e;let{start:n,buffer:r}=this.buffer;return this.type=t||r.set.types[r.buffer[e]],this.from=n+r.buffer[e+1],this.to=n+r.buffer[e+2],!0}yield(e){return!!e&&(e instanceof dY?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,n,this.mode));let{buffer:r}=this.buffer,i=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.buffer.start,n);return!(i<0)&&(this.stack.push(this.index),this.yieldBuf(i))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,n=this.mode){return this.buffer?!(n&_B.ExcludeBuffers)&&this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&_B.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&_B.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode));let{buffer:t}=this.buffer,n=this.stack.length-1;if(e<0){let e=n<0?0:this.stack[n]+4;if(this.index!=e)return this.yieldBuf(t.findChild(e,this.index,-1,0,4))}else{let e=t.buffer[this.index+3];if(e<(n<0?t.buffer.length:t.buffer[this.stack[n]+3]))return this.yieldBuf(e)}return n<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,n,{buffer:r}=this;if(r){if(e>0){if(this.index-1)for(let r=t+e,i=e<0?-1:n._tree.children.length;r!=i;r+=e){let e=n._tree.children[r];if(this.mode&_B.IncludeAnonymous||e instanceof dZ||!e.type.isAnonymous||d0(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to=0;){for(let a=e;a;a=a._parent)if(a.index==r){if(r==this.index)return a;t=a,n=i+1;break a}r=this.stack[--i]}for(let e=n;e=0;i--){if(i<0)return dV(this.node,e,r);let a=n[t.buffer[this.stack[i]]];if(!a.isAnonymous){if(e[r]&&e[r]!=a.name)return!1;r--}}return!0}}function d0(e){return e.children.some(e=>e instanceof dZ||!e.type.isAnonymous||d0(e))}let d2=new WeakMap;function d5(e,t){if(!e.isAnonymous||t instanceof dZ||t.type!=e)return 1;let n=d2.get(t);if(null==n){for(let r of(n=1,t.children)){if(r.type!=e||!(r instanceof dj)){n=1;break}n+=d5(e,r)}d2.set(t,n)}return n}function d9(e,t,n,r,i,a,o,s,l){let u=0;for(let n=r;n=c)break;f+=t}if(u==i+1){if(f>c){let e=n[i];t(e.children,e.positions,0,e.children.length,r[i]+s);continue}d.push(n[i])}else{let t=r[u-1]+n[u-1].length-p;d.push(d9(e,n,r,i,u,p,t,null,l))}h.push(p+s-a)}}(t,n,r,i,0),(s||l)(d,h,o)}class d4{constructor(e,t,n,r,i=!1,a=!1){this.from=e,this.to=t,this.tree=n,this.offset=r,this.open=(i?1:0)|(a?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,t=[],n=!1){let r=[new d4(0,e.length,e,0,!1,n)];for(let n of t)n.to>e.length&&r.push(n);return r}static applyChanges(e,t,n=128){if(!t.length)return e;let r=[],i=1,a=e.length?e[0]:null;for(let o=0,s=0,l=0;;o++){let u=o=n)for(;a&&a.from=t.from||c<=t.to||l){let e=Math.max(t.from,s)-l,n=Math.min(t.to,c)-l;t=e>=n?null:new d4(e,n,t.tree,t.offset+l,o>0,!!u)}if(t&&r.push(t),a.to>c)break;a=inew dL(e.from,e.to)):[new dL(0,0)]:[new dL(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let r=this.startParse(e,t,n);for(;;){let e=r.advance();if(e)return e}}}class d8{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}function d6(e){return(t,n,r,i)=>new hn(t,e,n,r,i)}class d7{constructor(e,t,n,r,i){this.parser=e,this.parse=t,this.overlay=n,this.target=r,this.ranges=i}}class he{constructor(e,t,n,r,i,a,o){this.parser=e,this.predicate=t,this.mounts=n,this.index=r,this.start=i,this.target=a,this.prev=o,this.depth=0,this.ranges=[]}}let ht=new dD({perNode:!0});class hn{constructor(e,t,n,r,i){this.nest=t,this.input=n,this.fragments=r,this.ranges=i,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let e=this.baseParse.advance();if(!e)return null;if(this.baseParse=null,this.baseTree=e,this.startInner(),null!=this.stoppedAt)for(let e of this.inner)e.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let e=this.baseTree;return null!=this.stoppedAt&&(e=new dj(e.type,e.children,e.positions,e.length,e.propValues.concat([[ht,this.stoppedAt]]))),e}let e=this.inner[this.innerDone],t=e.parse.advance();if(t){this.innerDone++;let n=Object.assign(Object.create(null),e.target.props);n[dD.mounted.id]=new dQ(t,e.overlay,e.parser),e.target.props=n}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let t=this.innerDone;te.frag.from<=r.from&&e.frag.to>=r.to&&e.mount.overlay);if(e)for(let n of e.mount.overlay){let i=n.from+e.pos,a=n.to+e.pos;i>=r.from&&a<=r.to&&!t.ranges.some(e=>e.fromi)&&t.ranges.push({from:i,to:a})}}o=!1}else if(n&&(a=function(e,t,n){for(let r of e){if(r.from>=n)break;if(r.to>t)return r.from<=t&&r.to>=n?2:1}return 0}(n.ranges,r.from,r.to)))o=2!=a;else if(!r.type.isAnonymous&&r.from=t.to);r++);let o=i.children[r],s=o.buffer;i.children[r]=function e(n,r,i,l,u){let c=n;for(;s[c+2]+a<=t.from;)c=s[c+3];let d=[],h=[];hr(o,n,c,d,h,l);let p=s[c+1],f=s[c+2],m=p+a==t.from&&f+a==t.to&&s[c]==t.type.id;return d.push(m?t.toTree():e(c+4,s[c+3],o.set.types[s[c]],p,f-p)),h.push(p-l),hr(o,s[c+3],r,d,h,l),new dj(i,d,h,u)}(0,s.length,dF.none,0,o.length);for(let r=0;r<=n;r++)e.childAfter(t.from)}(r);let a=e.findMounts(r.from,i.parser);if("function"==typeof i.overlay)t=new he(i.parser,i.overlay,a,this.inner.length,r.from,r.tree,t);else{let e=ho(this.ranges,i.overlay||[new dL(r.from,r.to)]);e.length&&this.inner.push(new d7(i.parser,i.parser.startParse(this.input,hs(a,e),e),i.overlay?i.overlay.map(e=>new dL(e.from-r.from,e.to-r.from)):null,r.tree,e)),i.overlay?e.length&&(n={ranges:e,depth:0,prev:n}):o=!1}}else t&&(s=t.predicate(r))&&(!0===s&&(s=new dL(r.from,r.to)),s.fromnew dL(e.from-t.start,e.to-t.start)),t.target,e)),t=t.prev}!n||--n.depth||(n=n.prev)}}}}function hr(e,t,n,r,i,a){if(t=e&&t.enter(n,1,_B.IgnoreOverlays|_B.ExcludeBuffers)||t.next(!1)||(this.done=!0)}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let t=this.cursor.tree;;){if(t==e.tree)return!0;if(t.children.length&&0==t.positions[0]&&t.children[0]instanceof dj)t=t.children[0];else break}return!1}}class ha{constructor(e){var t;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let n=this.curFrag=e[0];this.curTo=null!==(t=n.tree.prop(ht))&&void 0!==t?t:n.to,this.inner=new hi(n.tree,-n.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let t=this.curFrag=this.fragments[this.fragI];this.curTo=null!==(e=t.tree.prop(ht))&&void 0!==e?e:t.to,this.inner=new hi(t.tree,-t.offset)}}findMounts(e,t){var n;let r=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let e=this.inner.cursor.node;e;e=e.parent){let i=null===(n=e.tree)||void 0===n?void 0:n.prop(dD.mounted);if(i&&i.parser==t)for(let t=this.fragI;t=e.to)break;n.tree==this.curFrag.tree&&r.push({frag:n,pos:e.from-n.offset,mount:i})}}}return r}}function ho(e,t){let n=null,r=t;for(let i=1,a=0;i=s)break;!(e.to<=o)&&(n||(r=n=t.slice()),e.froms&&n.splice(a+1,0,new dL(s,e.to))):e.to>s?n[a--]=new dL(s,e.to):n.splice(a--,1))}}return r}function hs(e,t){let n=[];for(let{pos:r,mount:i,frag:a}of e){let e=r+(i.overlay?i.overlay[0].from:0),o=e+i.tree.length,s=Math.max(a.from,e),l=Math.min(a.to,o);if(i.overlay){let o=function(e,t,n,r){let i=0,a=0,o=!1,s=!1,l=-1e9,u=[];for(;;){let c=i==e.length?1e9:o?e[i].to:e[i].from,d=a==t.length?1e9:s?t[a].to:t[a].from;if(o!=s){let e=Math.max(l,n),t=Math.min(c,d,r);enew dL(e.from+r,e.to+r)),s,l);for(let t=0,r=s;;t++){let s=t==o.length,u=s?l:o[t].from;if(u>r&&n.push(new d4(r,u,i.tree,-e,a.from>=r,a.to<=u)),s)break;r=o[t].to}}else n.push(new d4(s,l,i.tree,-e,a.from>=e,a.to<=o))}return n}let hl=0;class hu{constructor(e,t,n){this.set=e,this.base=t,this.modified=n,this.id=hl++}static define(e){if(null==e?void 0:e.base)throw Error("Can not derive from a modified tag");let t=new hu([],null,[]);if(t.set.push(t),e)for(let n of e.set)t.set.push(n);return t}static defineModifier(){let e=new hd;return t=>t.modified.indexOf(e)>-1?t:hd.get(t.base||t,t.modified.concat(e).sort((e,t)=>e.id-t.id))}}let hc=0;class hd{constructor(){this.instances=[],this.id=hc++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find(n=>{var r;return n.base==e&&(r=n.modified,t.length==r.length&&t.every((e,t)=>e==r[t]))});if(n)return n;let r=[],i=new hu(r,e,t);for(let e of t)e.instances.push(i);let a=function e(t){let n=[t];for(let r=0;r0&&t+3==e.length){i=1;break}let r=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(a);if(!r)throw RangeError("Invalid path: "+e);if(n.push("*"==r[0]?"":'"'==r[0][0]?JSON.parse(r[0]):r[0]),(t+=r[0].length)==e.length)break;let o=e[t++];if(t==e.length&&"!"==o){i=0;break}if("/"!=o)throw RangeError("Invalid path: "+e);a=e.slice(t)}let o=n.length-1,s=n[o];if(!s)throw RangeError("Invalid path: "+e);let l=new hf(r,i,o>0?n.slice(0,o):null);t[s]=l.sort(t[s])}}return hp.add(t)}let hp=new dD;class hf{constructor(e,t,n,r){this.tags=e,this.mode=t,this.context=n,this.next=r}sort(e){return!e||e.depth{let t=i;for(let r of e)for(let e of r.set){let r=n[e.id];if(r){t=t?t+" "+r:r;break}}return t},scope:r}}class hg{constructor(e,t,n){this.at=e,this.highlighters=t,this.span=n,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,n,r,i){let{type:a,from:o,to:s}=e;if(o>=n||s<=t)return;a.isTop&&(i=this.highlighters.filter(e=>!e.scope||e.scope(a)));let l=r,u=a.prop(hp),c=!1;for(;u;){if(!u.context||e.matchContext(u.context)){let e=function(e,t){let n=null;for(let r of e){let e=r.style(t);e&&(n=n?n+" "+e:e)}return n}(i,u.tags);e&&(l&&(l+=" "),l+=e,1==u.mode?r+=(r?" ":"")+e:0==u.mode&&(c=!0));break}u=u.next}if(this.startSpan(e.from,l),c)return;let d=e.tree&&e.tree.prop(dD.mounted);if(d&&d.overlay){let a=e.node.enter(d.overlay[0].from+o,1),u=this.highlighters.filter(e=>!e.scope||e.scope(d.tree.type)),c=e.firstChild();for(let h=0,p=o;;h++){let f=h=m)&&e.nextSibling()););if(!f||m>n)break;(p=f.to+o)>t&&(this.highlightRange(a.cursor(),Math.max(t,f.from+o),Math.min(n,p),r,u),this.startSpan(p,l))}c&&e.parent()}else if(e.firstChild()){do{if(e.to<=t)continue;if(e.from>=n)break;this.highlightRange(e,t,n,r,i),this.startSpan(Math.min(n,e.to),l)}while(e.nextSibling());e.parent()}}}let hO=hu.define,hb=hO(),hy=hO(),hv=hO(hy),hx=hO(hy),hT=hO(),hk=hO(hT),h_=hO(hT),hS=hO(),hw=hO(hS),hE=hO(),hC=hO(),hA=hO(),hR=hO(hA),hP=hO(),hI={comment:hb,lineComment:hO(hb),blockComment:hO(hb),docComment:hO(hb),name:hy,variableName:hO(hy),typeName:hv,tagName:hO(hv),propertyName:hx,attributeName:hO(hx),className:hO(hy),labelName:hO(hy),namespace:hO(hy),macroName:hO(hy),literal:hT,string:hk,docString:hO(hk),character:hO(hk),attributeValue:hO(hk),number:h_,integer:hO(h_),float:hO(h_),bool:hO(hT),regexp:hO(hT),escape:hO(hT),color:hO(hT),url:hO(hT),keyword:hE,self:hO(hE),null:hO(hE),atom:hO(hE),unit:hO(hE),modifier:hO(hE),operatorKeyword:hO(hE),controlKeyword:hO(hE),definitionKeyword:hO(hE),moduleKeyword:hO(hE),operator:hC,derefOperator:hO(hC),arithmeticOperator:hO(hC),logicOperator:hO(hC),bitwiseOperator:hO(hC),compareOperator:hO(hC),updateOperator:hO(hC),definitionOperator:hO(hC),typeOperator:hO(hC),controlOperator:hO(hC),punctuation:hA,separator:hO(hA),bracket:hR,angleBracket:hO(hR),squareBracket:hO(hR),paren:hO(hR),brace:hO(hR),content:hS,heading:hw,heading1:hO(hw),heading2:hO(hw),heading3:hO(hw),heading4:hO(hw),heading5:hO(hw),heading6:hO(hw),contentSeparator:hO(hS),list:hO(hS),quote:hO(hS),emphasis:hO(hS),strong:hO(hS),link:hO(hS),monospace:hO(hS),strikethrough:hO(hS),inserted:hO(),deleted:hO(),changed:hO(),invalid:hO(),meta:hP,documentMeta:hO(hP),annotation:hO(hP),processingInstruction:hO(hP),definition:hu.defineModifier(),constant:hu.defineModifier(),function:hu.defineModifier(),standard:hu.defineModifier(),local:hu.defineModifier(),special:hu.defineModifier()};hm([{tag:hI.link,class:"tok-link"},{tag:hI.heading,class:"tok-heading"},{tag:hI.emphasis,class:"tok-emphasis"},{tag:hI.strong,class:"tok-strong"},{tag:hI.keyword,class:"tok-keyword"},{tag:hI.atom,class:"tok-atom"},{tag:hI.bool,class:"tok-bool"},{tag:hI.url,class:"tok-url"},{tag:hI.labelName,class:"tok-labelName"},{tag:hI.inserted,class:"tok-inserted"},{tag:hI.deleted,class:"tok-deleted"},{tag:hI.literal,class:"tok-literal"},{tag:hI.string,class:"tok-string"},{tag:hI.number,class:"tok-number"},{tag:[hI.regexp,hI.escape,hI.special(hI.string)],class:"tok-string2"},{tag:hI.variableName,class:"tok-variableName"},{tag:hI.local(hI.variableName),class:"tok-variableName tok-local"},{tag:hI.definition(hI.variableName),class:"tok-variableName tok-definition"},{tag:hI.special(hI.variableName),class:"tok-variableName2"},{tag:hI.definition(hI.propertyName),class:"tok-propertyName tok-definition"},{tag:hI.typeName,class:"tok-typeName"},{tag:hI.namespace,class:"tok-namespace"},{tag:hI.className,class:"tok-className"},{tag:hI.macroName,class:"tok-macroName"},{tag:hI.propertyName,class:"tok-propertyName"},{tag:hI.operator,class:"tok-operator"},{tag:hI.comment,class:"tok-comment"},{tag:hI.meta,class:"tok-meta"},{tag:hI.invalid,class:"tok-invalid"},{tag:hI.punctuation,class:"tok-punctuation"}]);let hN=new dD;function h$(e){return oJ.define({combine:e?t=>t.concat(e):void 0})}class hL{constructor(e,t,n=[]){this.data=e,sk.prototype.hasOwnProperty("tree")||Object.defineProperty(sk.prototype,"tree",{get(){return hM(this)}}),this.parser=t,this.extension=[hG.of(this),sk.languageData.of((e,t,n)=>e.facet(hD(e,t,n)))].concat(n)}isActiveAt(e,t,n=-1){return hD(e,t,n)==this.data}findRegions(e){let t=e.facet(hG);if((null==t?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let n=[],r=(e,t)=>{if(e.prop(hN)==this.data){n.push({from:t,to:t+e.length});return}let i=e.prop(dD.mounted);if(i){if(i.tree.prop(hN)==this.data){if(i.overlay)for(let e of i.overlay)n.push({from:e.from+t,to:e.to+t});else n.push({from:t,to:t+e.length});return}if(i.overlay){let e=n.length;if(r(i.tree,i.overlay[0].from+t),n.length>e)return}}for(let n=0;ne.isTop?t:void 0)]}))}configure(e){return new hQ(this.data,this.parser.configure(e))}get allowsNesting(){return this.parser.hasWrappers()}}function hM(e){let t=e.field(hL.state,!1);return t?t.tree:dj.empty}class hF{constructor(e,t=e.length){this.doc=e,this.length=t,this.cursorPos=0,this.string="",this.cursor=e.iter()}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let n=this.cursorPos-this.string.length;return e=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}}let hB=null;class hU{constructor(e,t,n=[],r,i,a,o,s){this.parser=e,this.state=t,this.fragments=n,this.tree=r,this.treeLen=i,this.viewport=a,this.skipped=o,this.scheduleOn=s,this.parse=null,this.tempSkipped=[]}static create(e,t,n){return new hU(e,t,[],dj.empty,0,n,[],null)}startParse(){return this.parser.startParse(new hF(this.state.doc),this.fragments)}work(e,t){return(null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=dj.empty&&this.isDone(null!=t?t:this.state.doc.length))?(this.takeTree(),!0):this.withContext(()=>{var n;if("number"==typeof e){let t=Date.now()+e;e=()=>Date.now()>t}for(this.parse||(this.parse=this.startParse()),null!=t&&(null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&t=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(d4.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=hB;hB=this;try{return e()}finally{hB=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=hz(e,t.from,t.to);return e}changes(e,t){let{fragments:n,tree:r,treeLen:i,viewport:a,skipped:o}=this;if(this.takeTree(),!e.empty){let t=[];if(e.iterChangedRanges((e,n,r,i)=>t.push({fromA:e,toA:n,fromB:r,toB:i})),n=d4.applyChanges(n,t),r=dj.empty,i=0,a={from:e.mapPos(a.from,-1),to:e.mapPos(a.to,1)},this.skipped.length)for(let t of(o=[],this.skipped)){let n=e.mapPos(t.from,1),r=e.mapPos(t.to,-1);ne.from&&(this.fragments=hz(this.fragments,n,r),this.skipped.splice(t--,1))}return!(this.skipped.length>=t)&&(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends d3{createParse(t,n,r){let i=r[0].from,a=r[r.length-1].to;return{parsedPos:i,advance(){let t=hB;if(t){for(let e of r)t.tempSkipped.push(e);e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}return this.parsedPos=a,new dj(dF.none,[],[],a-i)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}static get(){return hB}}function hz(e,t,n){return d4.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class hj{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,n)||t.takeTree(),new hj(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=hU.create(e.facet(hG).parser,e,{from:0,to:t});return n.work(20,t)||n.takeTree(),new hj(n)}}hL.state=o4.define({create:hj.init,update(e,t){for(let e of t.effects)if(e.is(hL.setState))return e.value;return t.startState.facet(hG)!=t.state.facet(hG)?hj.init(t.state):e.apply(t)}});let hW=e=>{let t=setTimeout(()=>e(),500);return()=>clearTimeout(t)};"undefined"!=typeof requestIdleCallback&&(hW=e=>{let t=-1,n=setTimeout(()=>{t=requestIdleCallback(e,{timeout:400})},100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});let hZ="undefined"!=typeof navigator&&(null===(_U=navigator.scheduling)||void 0===_U?void 0:_U.isInputPending)?()=>navigator.scheduling.isInputPending():null,hq=l7.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(hL.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),e.docChanged&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(hL.state);t.tree==t.context.tree&&t.context.isDone(e.doc.length)||(this.working=hW(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEndr+1e3,s=i.context.work(()=>hZ&&hZ()||Date.now()>a,r+(o?0:1e5));this.chunkBudget-=Date.now()-t,(s||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:hL.setState.of(new hj(i.context))})),this.chunkBudget>0&&!(s&&!o)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(e=>l4(this.view.state,e)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),hG=oJ.define({combine:e=>e.length?e[0]:null,enables:[hL.state,hq]});class hH{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}class hY{constructor(e,t,n,r,i,a){this.name=e,this.alias=t,this.extensions=n,this.filename=r,this.loadFunc=i,this.support=a,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(e=>this.support=e,e=>{throw this.loading=null,e}))}static of(e){let{load:t,support:n}=e;if(!t){if(!n)throw RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");t=()=>Promise.resolve(n)}return new hY(e.name,(e.alias||[]).concat(e.name).map(e=>e.toLowerCase()),e.extensions||[],e.filename,t,n)}static matchFilename(e,t){for(let n of e)if(n.filename&&n.filename.test(t))return n;let n=/\.([^.]+)$/.exec(t);if(n){for(let t of e)if(t.extensions.indexOf(n[1])>-1)return t}return null}static matchLanguageName(e,t,n=!0){for(let n of(t=t.toLowerCase(),e))if(n.alias.some(e=>e==t))return n;if(n)for(let n of e)for(let e of n.alias){let r=t.indexOf(e);if(r>-1&&(e.length>2||!/\w/.test(t[r-1])&&!/\w/.test(t[r+e.length])))return n}return null}}let hX=oJ.define(),hV=oJ.define({combine:e=>{if(!e.length)return" ";if(!/^(?: +|\t+)$/.test(e[0]))throw Error("Invalid indent unit: "+JSON.stringify(e[0]));return e[0]}});class hK{constructor(e,t={}){let n;this.state=e,this.options=t,this.unit=9==(n=e.facet(hV)).charCodeAt(0)?e.tabSize*n.length:n.length}lineAt(e,t=1){let n=this.state.doc.lineAt(e),{simulateBreak:r,simulateDoubleBreak:i}=this.options;return null!=r&&r>=n.from&&r<=n.to?i&&r==e?{text:"",from:e}:(t<0?r-1&&(i+=a-this.countColumn(n,n.search(/\S|$/))),i}countColumn(e,t=e.length){return sU(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:n,from:r}=this.lineAt(e,t),i=this.options.overrideIndentation;if(i){let e=i(r);if(e>-1)return e}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}let hJ=new dD;function h1(e,t,n){for(;e;e=e.parent){let r=function(e){let t=e.type.prop(hJ);if(t)return t;let n=e.firstChild,r;if(n&&(r=n.type.prop(dD.closedBy))){let t=e.lastChild,n=t&&r.indexOf(t.name)>-1;return e=>h9(e,!0,1,void 0,n&&!(e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak)?t.from:void 0)}return null==e.parent?h0:null}(e);if(r)return r(h2.create(n,t,e))}return null}function h0(){return 0}class h2 extends hK{constructor(e,t,n){super(e.state,e.options),this.base=e,this.pos=t,this.node=n}static create(e,t,n){return new h2(e,t,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){let e=this.state.doc.lineAt(this.node.from);for(;;){let t=this.node.resolve(e.from);for(;t.parent&&t.parent.from==t.from;)t=t.parent;if(function(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}(t,this.node))break;e=this.state.doc.lineAt(t.from)}return this.lineIndent(e.from)}continue(){let e=this.node.parent;return e?h1(e,this.pos,this.base):0}}function h5({closing:e,align:t=!0,units:n=1}){return r=>h9(r,t,n,e)}function h9(e,t,n,r,i){let a=e.textAfter,o=a.match(/^\s*/)[0].length,s=r&&a.slice(o,o+r.length)==r||i==e.pos+o,l=t?function(e){let t=e.node,n=t.childAfter(t.from),r=t.lastChild;if(!n)return null;let i=e.options.simulateBreak,a=e.state.doc.lineAt(n.from),o=null==i||i<=a.from?a.to:Math.min(a.to,i);for(let e=n.to;;){let i=t.childAfter(e);if(!i||i==r)return null;if(!i.type.isSkipped)return i.from{let r=e&&e.test(n.textAfter);return n.baseIndent+(r?0:t*n.unit)}}let h3=new dD;function h8(e){let t=e.firstChild,n=e.lastChild;return t&&t.to=r?void 0:{from:n,to:r}}let h7=sm.define({map:h6}),pe=sm.define({map:h6}),pt=o4.define({create:()=>lF.none,update(e,t){for(let n of(e=e.map(t.changes),t.effects))n.is(h7)&&!function(e,t,n){let r=!1;return e.between(t,t,(e,i)=>{e==t&&i==n&&(r=!0)}),r}(e,n.value.from,n.value.to)?e=e.update({add:[pi.range(n.value.from,n.value.to)]}):n.is(pe)&&(e=e.update({filter:(e,t)=>n.value.from!=e||n.value.to!=t,filterFrom:n.value.from,filterTo:n.value.to}));if(t.selection){let n=!1,{head:r}=t.selection.main;e.between(r,r,(e,t)=>{er&&(n=!0)}),n&&(e=e.update({filterFrom:r,filterTo:r,filter:(e,t)=>t<=r||e>=r}))}return e},provide:e=>c$.decorations.from(e)}),pn={placeholderDOM:null,placeholderText:"…"},pr=oJ.define({combine:e=>s_(e,pn)}),pi=lF.replace({widget:new class extends lQ{toDOM(e){let{state:t}=e,n=t.facet(pr),r=t=>{var n,r,i,a;let o,s=e.lineBlockAt(e.posAtDOM(t.target)),l=(n=e.state,r=s.from,i=s.to,o=null,null===(a=n.field(pt,!1))||void 0===a||a.between(r,i,(e,t)=>{(!o||o.from>e)&&(o={from:e,to:t})}),o);l&&e.dispatch({effects:pe.of(l)}),t.preventDefault()};if(n.placeholderDOM)return n.placeholderDOM(e,r);let i=document.createElement("span");return i.textContent=n.placeholderText,i.setAttribute("aria-label",t.phrase("folded code")),i.title=t.phrase("unfold"),i.className="cm-foldPlaceholder",i.onclick=r,i}}});class pa{constructor(e,t){let n;function r(e){let t=sZ.newName();return(n||(n=Object.create(null)))["."+t]=e,t}let i="string"==typeof t.all?t.all:t.all?r(t.all):void 0,a=t.scope;this.scope=a instanceof hL?e=>e.prop(hN)==a.data:a?e=>e==a:void 0,this.style=hm(e.map(e=>({tag:e.tag,class:e.class||r(Object.assign({},e,{tag:null}))})),{all:i}).style,this.module=n?new sZ(n):null,this.themeType=t.themeType}static define(e,t){return new pa(e,t||{})}}let po=oJ.define(),ps=oJ.define({combine:e=>e.length?[e[0]]:null});function pl(e){let t=e.facet(po);return t.length?t:e.facet(ps)}let pu=o6.high(l7.fromClass(class{constructor(e){this.markCache=Object.create(null),this.tree=hM(e.state),this.decorations=this.buildDeco(e,pl(e.state))}update(e){let t=hM(e.state),n=pl(e.state),r=n!=pl(e.startState);t.length{n.add(e,t,this.markCache[r]||(this.markCache[r]=lF.mark({class:r})))},r,i);return n.finish()}},{decorations:e=>e.decorations})),pc=pa.define([{tag:hI.meta,color:"#7a757a"},{tag:hI.link,textDecoration:"underline"},{tag:hI.heading,textDecoration:"underline",fontWeight:"bold"},{tag:hI.emphasis,fontStyle:"italic"},{tag:hI.strong,fontWeight:"bold"},{tag:hI.strikethrough,textDecoration:"line-through"},{tag:hI.keyword,color:"#708"},{tag:[hI.atom,hI.bool,hI.url,hI.contentSeparator,hI.labelName],color:"#219"},{tag:[hI.literal,hI.inserted],color:"#164"},{tag:[hI.string,hI.deleted],color:"#a11"},{tag:[hI.regexp,hI.escape,hI.special(hI.string)],color:"#e40"},{tag:hI.definition(hI.variableName),color:"#00f"},{tag:hI.local(hI.variableName),color:"#30a"},{tag:[hI.typeName,hI.namespace],color:"#085"},{tag:hI.className,color:"#167"},{tag:[hI.special(hI.variableName),hI.macroName],color:"#256"},{tag:hI.definition(hI.propertyName),color:"#00c"},{tag:hI.comment,color:"#940"},{tag:hI.invalid,color:"#f00"}]),pd=Object.create(null),ph=[dF.none],pp=[],pf=Object.create(null);for(let[e,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","typeName"],["attribute","propertyName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])pf[e]=function(e,t){let n=null;for(let r of t.split(".")){let t=e[r]||hI[r];t?"function"==typeof t?n?n=t(n):pm(r,`Modifier ${r} used at start of tag`):n?pm(r,`Tag ${r} used as modifier`):n=t:pm(r,`Unknown highlighting tag ${r}`)}if(!n)return 0;let r=t.replace(/ /g,"_"),i=dF.define({id:ph.length,name:r,props:[hh({[r]:n})]});return ph.push(i),i.id}(pd,t);function pm(e,t){pp.indexOf(e)>-1||(pp.push(e),console.warn(t))}class pg{constructor(e,t,n){this.state=e,this.pos=t,this.explicit=n,this.abortListeners=[]}tokenBefore(e){let t=hM(this.state).resolveInner(this.pos,-1);for(;t&&0>e.indexOf(t.name);)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),n=Math.max(t.from,this.pos-250),r=t.text.slice(n-t.from,this.pos-t.from),i=r.search(pT(e,!1));return i<0?null:{from:n+i,to:this.pos,text:r.slice(i)}}get aborted(){return null==this.abortListeners}addEventListener(e,t){"abort"==e&&this.abortListeners&&this.abortListeners.push(t)}}function pO(e){let t=Object.keys(e).join(""),n=/\w/.test(t);return n&&(t=t.replace(/\w/g,"")),`[${n?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}function pb(e){let t=e.map(e=>"string"==typeof e?{label:e}:e),[n,r]=t.every(e=>/^\w+$/.test(e.label))?[/\w*$/,/\w+$/]:function(e){let t=Object.create(null),n=Object.create(null);for(let{label:r}of e){t[r[0]]=!0;for(let e=1;e{let i=e.matchBefore(r);return i||e.explicit?{from:i?i.from:e.pos,options:t,validFor:n}:null}}function py(e,t){return n=>{for(let t=hM(n.state).resolveInner(n.pos,-1);t;t=t.parent)if(e.indexOf(t.name)>-1)return null;return t(n)}}class pv{constructor(e,t,n){this.completion=e,this.source=t,this.match=n}}function px(e){return e.selection.main.head}function pT(e,t){var n;let{source:r}=e,i=t&&"^"!=r[0],a="$"!=r[r.length-1];return i||a?RegExp(`${i?"^":""}(?:${r})${a?"$":""}`,null!==(n=e.flags)&&void 0!==n?n:e.ignoreCase?"i":""):e}function pk(e,t){let n=t.completion.apply||t.completion.label,r=t.source;if("string"==typeof n){var i,a,o;e.dispatch((i=e.state,a=r.from,o=r.to,Object.assign(Object.assign({},i.changeByRange(e=>{if(e==i.selection.main)return{changes:{from:a,to:o,insert:n},range:oX.cursor(a+n.length)};let t=o-a;return!e.empty||t&&i.sliceDoc(e.from-t,e.from)!=i.sliceDoc(a,o)?{range:e}:{changes:{from:e.from-t,to:e.from,insert:n},range:oX.cursor(e.from-t+n.length)}})),{userEvent:"input.complete"})))}else n(e,t.completion,r.from,r.to)}let p_=new WeakMap;function pS(e){if(!Array.isArray(e))return e;let t=p_.get(e);return t||p_.set(e,t=pb(e)),t}class pw{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[];for(let t=0;t=48&&l<=57||l>=97&&l<=122?2:l>=65&&l<=90?1:0:(b=oQ(l))!=b.toLowerCase()?1:b!=b.toUpperCase()?2:0;(!r||1==y&&m||0==O&&0!=y)&&(t[c]==l||n[c]==l&&(d=!0)?a[c++]=r:a.length&&(g=!1)),O=y,r+=oM(l)}return c==s&&0==a[0]&&g?this.result(-100+(d?-200:0),a,e):h==s&&0==p?[-200-e.length,0,f]:o>-1?[-700-e.length,o,o+this.pattern.length]:h==s?[-900-e.length,p,f]:c==s?this.result(-100+(d?-200:0)+-700+(g?0:-1100),a,e):2==t.length?null:this.result((r[0]?-700:0)+-200+-1100,r,e)}result(e,t,n){let r=[e-n.length],i=1;for(let e of t){let t=e+(this.astral?oM(oD(n,e)):1);i>1&&r[i-1]==e?r[i-1]=t:(r[i++]=e,r[i++]=t)}return r}}let pE=oJ.define({combine:e=>s_(e,{activateOnTyping:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[]},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,optionClass:(e,t)=>n=>{var r,i;return r=e(n),i=t(n),r?i?r+" "+i:r:i},addToOptions:(e,t)=>e.concat(t)})});function pC(e,t,n){if(e<=n)return{from:0,to:e};if(t<=e>>1){let e=Math.floor(t/n);return{from:e*n,to:(e+1)*n}}let r=Math.floor((e-t)/n);return{from:e-(r+1)*n,to:e-r*n}}class pA{constructor(e,t){let n;this.view=e,this.stateField=t,this.info=null,this.placeInfo={read:()=>this.measureInfo(),write:e=>this.positionInfo(e),key:this};let r=e.state.field(t),{options:i,selected:a}=r.open,o=e.state.facet(pE);this.optionContent=(n=o.addToOptions.slice(),o.icons&&n.push({render(e){let t=document.createElement("div");return t.classList.add("cm-completionIcon"),e.type&&t.classList.add(...e.type.split(/\s+/g).map(e=>"cm-completionIcon-"+e)),t.setAttribute("aria-hidden","true"),t},position:20}),n.push({render(e,t,n){let r=document.createElement("span");r.className="cm-completionLabel";let{label:i}=e,a=0;for(let e=1;ea&&r.appendChild(document.createTextNode(i.slice(a,t)));let s=r.appendChild(document.createElement("span"));s.appendChild(document.createTextNode(i.slice(t,o))),s.className="cm-completionMatchedText",a=o}return ae.position-t.position).map(e=>e.render)),this.optionClass=o.optionClass,this.range=pC(i.length,a,o.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.dom.addEventListener("mousedown",t=>{for(let n=t.target,r;n&&n!=this.dom;n=n.parentNode)if("LI"==n.nodeName&&(r=/-(\d+)$/.exec(n.id))&&+r[1]{this.info&&this.view.requestMeasure(this.placeInfo)})}mount(){this.updateSel()}update(e){e.state.field(this.stateField)!=e.startState.field(this.stateField)&&this.updateSel()}positioned(){this.info&&this.view.requestMeasure(this.placeInfo)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;if((t.selected=this.range.to)&&(this.range=pC(t.options.length,t.selected,this.view.state.facet(pE).maxRenderedOptions),this.list.remove(),this.list=this.dom.appendChild(this.createListBox(t.options,e.id,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfo)})),this.updateSelectedOption(t.selected)){this.info&&(this.info.remove(),this.info=null);let{completion:n}=t.options[t.selected],{info:r}=n;if(!r)return;let i="string"==typeof r?document.createTextNode(r):r(n);if(!i)return;"then"in i?i.then(t=>{t&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(t)}).catch(e=>l4(this.view.state,e,"completion info")):this.addInfoPane(i)}}addInfoPane(e){let t=this.info=document.createElement("div");t.className="cm-tooltip cm-completionInfo",t.appendChild(e),this.dom.appendChild(t),this.view.requestMeasure(this.placeInfo)}updateSelectedOption(e){var t,n;let r,i,a=null;for(let t=this.list.firstChild,n=this.range.from;t;t=t.nextSibling,n++)n==e?t.hasAttribute("aria-selected")||(t.setAttribute("aria-selected","true"),a=t):t.hasAttribute("aria-selected")&&t.removeAttribute("aria-selected");return a&&(t=this.list,n=a,r=t.getBoundingClientRect(),(i=n.getBoundingClientRect()).topr.bottom&&(t.scrollTop+=i.bottom-r.bottom)),a}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),r=e.getBoundingClientRect();if(r.top>Math.min(innerHeight,t.bottom)-10||r.bottom=this.options.length?this:new pP(this.options,p$(t,e),this.tooltip,this.timestamp,e)}static build(e,t,n,r,i){let a=function(e,t){let n=[],r=0;for(let i of e)if(i.hasResult()){if(!1===i.result.filter){let e=i.result.getMatch;for(let t of i.result.options){let a=[1e9-r++];if(e)for(let n of e(t))a.push(n);n.push(new pv(t,i,a))}}else{let e=new pw(t.sliceDoc(i.from,i.to)),r;for(let t of i.result.options)(r=e.match(t.label))&&(null!=t.boost&&(r[0]+=t.boost),n.push(new pv(t,i,r)))}}let i=[],a=null;for(let e of n.sort(pD))a&&a.label==e.completion.label&&a.detail==e.completion.detail&&(null==a.type||null==e.completion.type||a.type==e.completion.type)&&a.apply==e.completion.apply?pR(e.completion)>pR(a)&&(i[i.length-1]=e):i.push(e),a=e.completion;return i}(e,t);if(!a.length)return null;let o=0;if(r&&r.selected){let e=r.options[r.selected].completion;for(let t=0;tt.hasResult()?Math.min(e,t.from):e,1e8),create:e=>new pA(e,pj),above:i.aboveCursor},r?r.timestamp:Date.now(),o)}map(e){return new pP(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected)}}class pI{constructor(e,t,n){this.active=e,this.id=t,this.open=n}static start(){return new pI(pL,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(e){let{state:t}=e,n=t.facet(pE),r=(n.override||t.languageDataAt("autocomplete",px(t)).map(pS)).map(t=>(this.active.find(e=>e.source==t)||new pQ(t,this.active.some(e=>0!=e.state)?1:0)).update(e,n));r.length==this.active.length&&r.every((e,t)=>e==this.active[t])&&(r=this.active);let i=e.selection||r.some(t=>t.hasResult()&&e.changes.touchesRange(t.from,t.to))||!function(e,t){if(e==t)return!0;for(let n=0,r=0;;){for(;n1!=e.state)&&r.some(e=>e.hasResult())&&(r=r.map(e=>e.hasResult()?new pQ(e.source,0):e)),e.effects))t.is(pz)&&(i=i&&i.setSelected(t.value,this.id));return r==this.active&&i==this.open?this:new pI(r,this.id,i)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:pN}}let pN={"aria-autocomplete":"list"};function p$(e,t){return{"aria-autocomplete":"list","aria-haspopup":"listbox","aria-activedescendant":e+"-"+t,"aria-controls":e}}let pL=[];function pD(e,t){return t.match[0]-e.match[0]||e.completion.label.localeCompare(t.completion.label)}class pQ{constructor(e,t,n=-1){this.source=e,this.state=t,this.explicitPos=n}hasResult(){return!1}update(e,t){let n=e.isUserEvent("input.type")?"input":e.isUserEvent("delete.backward")?"delete":null,r=this;for(let i of(n?r=r.handleUserEvent(e,n,t):e.docChanged?r=r.handleChange(e):e.selection&&0!=r.state&&(r=new pQ(r.source,0)),e.effects))if(i.is(pF))r=new pQ(r.source,1,i.value?px(e.state):-1);else if(i.is(pB))r=new pQ(r.source,0);else if(i.is(pU))for(let e of i.value)e.source==r.source&&(r=e);return r}handleUserEvent(e,t,n){return"delete"!=t&&n.activateOnTyping?new pQ(this.source,1):this.map(e.changes)}handleChange(e){return e.changes.touchesRange(px(e.startState))?new pQ(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new pQ(this.source,this.state,e.mapPos(this.explicitPos))}}class pM extends pQ{constructor(e,t,n,r,i){super(e,2,t),this.result=n,this.from=r,this.to=i}hasResult(){return!0}handleUserEvent(e,t,n){var r;let i=e.changes.mapPos(this.from),a=e.changes.mapPos(this.to,1),o=px(e.state);if((this.explicitPos<0?o<=i:oa||"delete"==t&&px(e.startState)==this.from)return new pQ(this.source,"input"==t&&n.activateOnTyping?1:0);let s=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos),l;return!function(e,t,n,r){if(!e)return!1;let i=t.sliceDoc(n,r);return"function"==typeof e?e(i,n,r,t):pT(e,!0).test(i)}(this.result.validFor,e.state,i,a)?this.result.update&&(l=this.result.update(this.result,i,a,new pg(e.state,o,s>=0)))?new pM(this.source,s,l,l.from,null!==(r=l.to)&&void 0!==r?r:px(e.state)):new pQ(this.source,1,s):new pM(this.source,s,this.result,i,a)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new pQ(this.source,0):this.map(e.changes)}map(e){return e.empty?this:new pM(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1))}}let pF=sm.define(),pB=sm.define(),pU=sm.define({map:(e,t)=>e.map(e=>e.map(t))}),pz=sm.define(),pj=o4.define({create:()=>pI.start(),update:(e,t)=>e.update(t),provide:e=>[dl.from(e,e=>e.tooltip),c$.contentAttributes.from(e,e=>e.attrs)]}),pW=c$.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",listStyle:"none",margin:0,padding:0,"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer",padding:"1px 3px",lineHeight:1.2}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xb7\xb7\xb7"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"300px"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'\uD835\uDC65'"}},".cm-completionIcon-constant":{"&:after":{content:"'\uD835\uDC36'"}},".cm-completionIcon-type":{"&:after":{content:"'\uD835\uDC61'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\uD83D\uDD11︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class pZ{constructor(e,t,n,r){this.field=e,this.line=t,this.from=n,this.to=r}}class pq{constructor(e,t,n){this.field=e,this.from=t,this.to=n}map(e){let t=e.mapPos(this.from,-1,oB.TrackDel),n=e.mapPos(this.to,1,oB.TrackDel);return null==t||null==n?null:new pq(this.field,t,n)}}class pG{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let n=[],r=[t],i=e.doc.lineAt(t),a=/^\s*/.exec(i.text)[0];for(let i of this.lines){if(n.length){let n=a,o=/^\t*/.exec(i)[0].length;for(let t=0;tnew pq(e.field,r[e.line]+e.from,r[e.line]+e.to))}}static parse(e){let t=[],n=[],r=[],i;for(let a of e.split(/\r\n?|\n/)){for(;i=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(a);){let e=i[1]?+i[1]:null,o=i[2]||i[3]||"",s=-1;for(let n=0;n=s&&i.field++}r.push(new pZ(s,n.length,i.index,i.index+o.length)),a=a.slice(0,i.index)+o+a.slice(i.index+i[0].length)}n.push(a)}return new pG(n,r)}}let pH=lF.widget({widget:new class extends lQ{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),pY=lF.mark({class:"cm-snippetField"});class pX{constructor(e,t){this.ranges=e,this.active=t,this.deco=lF.set(e.map(e=>(e.from==e.to?pH:pY).range(e.from,e.to)))}map(e){let t=[];for(let n of this.ranges){let r=n.map(e);if(!r)return null;t.push(r)}return new pX(t,this.active)}selectionInsideField(e){return e.ranges.every(e=>this.ranges.some(t=>t.field==this.active&&t.from<=e.from&&t.to>=e.to))}}let pV=sm.define({map:(e,t)=>e&&e.map(t)}),pK=sm.define(),pJ=o4.define({create:()=>null,update(e,t){for(let n of t.effects){if(n.is(pV))return n.value;if(n.is(pK)&&e)return new pX(e.ranges,n.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>c$.decorations.from(e,e=>e?e.deco:lF.none)});function p1(e,t){return oX.create(e.filter(e=>e.field==t).map(e=>oX.range(e.from,e.to)))}function p0(e){return({state:t,dispatch:n})=>{let r=t.field(pJ,!1);if(!r||e<0&&0==r.active)return!1;let i=r.active+e,a=e>0&&!r.ranges.some(t=>t.field==i+e);return n(t.update({selection:p1(r.ranges,i),effects:pV.of(a?null:new pX(r.ranges,i))})),!0}}let p2=p0(1),p5=p0(-1),p9=[{key:"Tab",run:p2,shift:p5},{key:"Escape",run:({state:e,dispatch:t})=>!!e.field(pJ,!1)&&(t(e.update({effects:pV.of(null)})),!0)}],p4=oJ.define({combine:e=>e.length?e[0]:p9}),p3=o6.highest(cz.compute([p4],e=>e.facet(p4)));function p8(e,t){let n;return Object.assign(Object.assign({},t),{apply:(n=pG.parse(e),(e,t,r,i)=>{let{text:a,ranges:o}=n.instantiate(e.state,r),s={changes:{from:r,to:i,insert:ox.of(a)}};if(o.length&&(s.selection=p1(o,0)),o.length>1){let t=new pX(o,0),n=s.effects=[pV.of(t)];void 0===e.state.field(pJ,!1)&&n.push(sm.appendConfig.of([pJ,p3,p6,pW]))}e.dispatch(e.state.update(s))})})}let p6=c$.domEventHandlers({mousedown(e,t){let n=t.state.field(pJ,!1),r;if(!n||null==(r=t.posAtCoords({x:e.clientX,y:e.clientY})))return!1;let i=n.ranges.find(e=>e.from<=r&&e.to>=r);return!!i&&i.field!=n.active&&(t.dispatch({selection:p1(n.ranges,i.field),effects:pV.of(n.ranges.some(e=>e.field>i.field)?new pX(n.ranges,i.field):null)}),!0)}}),p7={brackets:["(","[","{","'",'"'],before:")]}:;>"},fe=sm.define({map(e,t){let n=t.mapPos(e,-1,oB.TrackAfter);return null==n?void 0:n}}),ft=sm.define({map:(e,t)=>t.mapPos(e)}),fn=new class extends sS{};fn.startSide=1,fn.endSide=-1;let fr=o4.define({create:()=>sA.empty,update(e,t){if(t.selection){let n=t.state.doc.lineAt(t.selection.main.head).from,r=t.startState.doc.lineAt(t.startState.selection.main.head).from;n!=t.changes.mapPos(r,-1)&&(e=sA.empty)}for(let n of(e=e.map(t.changes),t.effects))n.is(fe)?e=e.update({add:[fn.range(n.value,n.value+1)]}):n.is(ft)&&(e=e.update({filter:e=>e!=n.value}));return e}}),fi="()[]{}<>",fa="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),fo=c$.inputHandler.of((e,t,n,r)=>{if((fa?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let i=e.state.selection.main;if(r.length>2||2==r.length&&1==oM(oD(r,0))||t!=i.from||n!=i.to)return!1;let a=function(e,t){var n;let r=(n=e.selection.main.head,e.languageDataAt("closeBrackets",n)[0]||p7),i=r.brackets||p7.brackets;for(let n of i){let a=function(e){for(let t=0;t{if(!i.empty)return{changes:[{insert:t,from:i.from},{insert:t,from:i.to}],effects:fe.of(i.to+t.length),range:oX.range(i.anchor+t.length,i.head+t.length)};let a=i.head,o=fl(e.doc,a);if(o==t){if(fu(e,a))return{changes:{insert:t+t,from:a},effects:fe.of(a+t.length),range:oX.cursor(a+t.length)};if(fs(e,a)){let r=n&&e.sliceDoc(a,a+3*t.length)==t+t+t;return{range:oX.cursor(a+t.length*(r?3:1)),effects:ft.of(a)}}}else if(n&&e.sliceDoc(a-2*t.length,a)==t+t&&fu(e,a-2*t.length))return{changes:{insert:t+t+t+t,from:a},effects:fe.of(a+t.length),range:oX.cursor(a+t.length)};else if(e.charCategorizer(a)(o)!=sx.Word){let n=e.sliceDoc(a-1,a);if(n!=t&&e.charCategorizer(a)(n)!=sx.Word&&!function(e,t,n){let r=hM(e).resolveInner(t,-1);for(let i=0;i<5;i++){if(e.sliceDoc(r.from,r.from+n.length)==n)return!0;let i=r.to==t&&r.parent;if(!i)break;r=i}return!1}(e,a,t))return{changes:{insert:t+t,from:a},effects:fe.of(a+t.length),range:oX.cursor(a+t.length)}}return{range:r=i}});return r?null:e.update(i,{scrollIntoView:!0,userEvent:"input.type"})}(e,n,i.indexOf(n+n+n)>-1):function(e,t,n,r){let i=null,a=e.changeByRange(a=>{if(!a.empty)return{changes:[{insert:t,from:a.from},{insert:n,from:a.to}],effects:fe.of(a.to+t.length),range:oX.range(a.anchor+t.length,a.head+t.length)};let o=fl(e.doc,a.head);return!o||/\s/.test(o)||r.indexOf(o)>-1?{changes:{insert:t+n,from:a.head},effects:fe.of(a.head+t.length),range:oX.cursor(a.head+t.length)}:{range:i=a}});return i?null:e.update(a,{scrollIntoView:!0,userEvent:"input.type"})}(e,n,a,r.before||p7.before);if(t==a&&fs(e,e.selection.main.from))return function(e,t,n){let r=null,i=e.selection.ranges.map(t=>t.empty&&fl(e.doc,t.head)==n?oX.cursor(t.head+n.length):r=t);return r?null:e.update({selection:oX.create(i,e.selection.mainIndex),scrollIntoView:!0,effects:e.selection.ranges.map(({from:e})=>ft.of(e))})}(e,0,a)}return null}(e.state,r);return!!a&&(e.dispatch(a),!0)});function fs(e,t){let n=!1;return e.field(fr).between(0,e.doc.length,e=>{e==t&&(n=!0)}),n}function fl(e,t){let n=e.sliceString(t,t+2);return n.slice(0,oM(oD(n,0)))}function fu(e,t){let n=hM(e).resolveInner(t+1);return n.parent&&n.from==t}var fc=n(83454);class fd{constructor(e,t,n,r,i,a,o,s,l,u=0,c){this.p=e,this.stack=t,this.state=n,this.reducePos=r,this.pos=i,this.score=a,this.buffer=o,this.bufferBase=s,this.curContext=l,this.lookAhead=u,this.parent=c}toString(){return`[${this.stack.filter((e,t)=>t%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,n=0){let r=e.parser.context;return new fd(e,[],t,n,n,0,[],0,r?new fh(r,r.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){let t=e>>19,n=65535&e,{parser:r}=this.p,i=r.dynamicPrecedence(n);if(i&&(this.score+=i),0==t){this.pushState(r.getGoto(this.state,n,!0),this.reducePos),na;)this.stack.pop();this.reduceContext(n,o)}storeNode(e,t,n,r=4,i=!1){if(0==e&&(!this.stack.length||this.stack[this.stack.length-1]0&&0==e.buffer[r-4]&&e.buffer[r-1]>-1){if(t==n)return;if(e.buffer[r-2]>=t){e.buffer[r-2]=n;return}}}if(i&&this.pos!=n){let i=this.buffer.length;if(i>0&&0!=this.buffer[i-4])for(;i>0&&this.buffer[i-2]>n;)this.buffer[i]=this.buffer[i-4],this.buffer[i+1]=this.buffer[i-3],this.buffer[i+2]=this.buffer[i-2],this.buffer[i+3]=this.buffer[i-1],i-=4,r>4&&(r-=4);this.buffer[i]=e,this.buffer[i+1]=t,this.buffer[i+2]=n,this.buffer[i+3]=r}else this.buffer.push(e,t,n,r)}shift(e,t,n){let r=this.pos;if(131072&e)this.pushState(65535&e,this.pos);else if((262144&e)==0){let{parser:i}=this.p;(n>this.pos||t<=i.maxNode)&&(this.pos=n,i.stateFlag(e,1)||(this.reducePos=n)),this.pushState(e,r),this.shiftContext(t,r),t<=i.maxNode&&this.buffer.push(t,r,n,4)}else this.pos=n,this.shiftContext(t,r),t<=this.p.parser.maxNode&&this.buffer.push(t,r,n,4)}apply(e,t,n){65536&e?this.reduce(e):this.shift(e,t,n)}useNode(e,t){let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=e)&&(this.p.reused.push(e),n++);let r=this.pos;this.reducePos=this.pos=r+e.length,this.pushState(t,r),this.buffer.push(n,r,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let n=e.buffer.slice(t),r=e.bufferBase+t;for(;e&&r==e.bufferBase;)e=e.parent;return new fd(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,r,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,n?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new fp(this);;){let n=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if((65536&n)==0)return!0;if(0==n)return!1;t.reduce(n)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let n=[];for(let r=0,i;r1&t&&e==r)||n.push(t[e],r)}t=n}let n=[];for(let e=0;e>19,r=65535&e,i=this.stack.length-3*n;if(i<0||0>t.getGoto(this.stack[i],r,!1))return!1;this.storeNode(0,this.reducePos,this.reducePos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(e),!0}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:e}=this.p;return 65535==e.data[e.stateSlot(this.state,1)]&&!e.stateSlot(this.state,4)}restart(){this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;tthis.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class fh{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}(_L=_z||(_z={}))[_L.Insert=200]="Insert",_L[_L.Delete=190]="Delete",_L[_L.Reduce=100]="Reduce",_L[_L.MaxNext=4]="MaxNext",_L[_L.MaxInsertStackDepth=300]="MaxInsertStackDepth",_L[_L.DampenInsertStackDepth=120]="DampenInsertStackDepth";class fp{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=e>>19;0==t?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(t-1)*3;let n=this.start.p.parser.getGoto(this.stack[this.base-3],65535&e,!0);this.state=n}}class ff{constructor(e,t,n){this.stack=e,this.pos=t,this.index=n,this.buffer=e.buffer,0==this.index&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new ff(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;null!=e&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new ff(this.stack,this.pos,this.index)}}class fm{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}let fg=new fm;class fO{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=fg,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let n=this.range,r=this.rangeIndex,i=this.pos+e;for(;in.to:i>=n.to;){if(r==this.ranges.length-1)return null;let e=this.ranges[++r];i+=e.from-n.to,n=e}return i}peek(e){let t=this.chunkOff+e,n,r;if(t>=0&&t=this.chunk2Pos&&nt.to&&(this.chunk2=this.chunk2.slice(0,t.to-n)),r=this.chunk2.charCodeAt(0)}}return n>=this.token.lookAhead&&(this.token.lookAhead=n+1),r}acceptToken(e,t=0){let n=t?this.resolveOffset(t,-1):this.pos;if(null==n||n=this.chunk2Pos&&this.posthis.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=fg,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let n="";for(let r of this.ranges){if(r.from>=t)break;r.to>e&&(n+=this.input.read(Math.max(r.from,e),Math.min(r.to,t)))}return n}}class fb{constructor(e,t){this.data=e,this.id=t}token(e,t){!function(e,t,n,r){let i=0,a=1<0){let n=e[r];if(s.allows(n)&&(-1==t.token.value||t.token.value==n||o.overrides(n,t.token.value))){t.acceptToken(n);break}}for(let r=t.next,a=0,o=e[i+2];a>1,l=n+s+(s<<1),u=e[l],c=e[l+1];if(r=c)a=s+1;else{i=e[l+2],t.advance();continue a}}break}}(this.data,e,t,this.id)}}fb.prototype.contextual=fb.prototype.fallback=fb.prototype.extend=!1;class fy{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}}function fv(e,t=Uint16Array){if("string"!=typeof e)return e;let n=null;for(let r=0,i=0;r=92&&t--,t>=34&&t--;let i=t-32;if(i>=46&&(i-=46,n=!0),a+=i,n)break;a*=46}n?n[i++]=a:n=new t(a)}return n}let fx=void 0!==fc&&fc.env&&/\bparse\b/.test(fc.env.LOG),fT=null;function fk(e,t,n){let r=e.cursor(_B.IncludeAnonymous);for(r.moveTo(t);;)if(!(n<0?r.childBefore(t):r.childAfter(t)))for(;;){if((n<0?r.tot)&&!r.type.isError)return n<0?Math.max(0,Math.min(r.to-1,t-25)):Math.min(e.length,Math.max(r.from+1,t+25));if(n<0?r.prevSibling():r.nextSibling())break;if(!r.parent())return n<0?0:e.length}}(_D=_j||(_j={}))[_D.Margin=25]="Margin";class f_{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?fk(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?fk(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(ee)return this.nextStart=a,null;if(i instanceof dj){if(a==e){if(a=Math.max(this.safeFrom,e)&&(this.trees.push(i),this.start.push(a),this.index.push(0))}else this.index[t]++,this.nextStart=a+i.length}}}class fS{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(e=>new fm)}getActions(e){let t=0,n=null,{parser:r}=e.p,{tokenizers:i}=r,a=r.stateSlot(e.state,3),o=e.curContext?e.curContext.hash:0,s=0;for(let r=0;ru.end+25&&(s=Math.max(u.lookAhead,s)),0!=u.value)){let r=t;if(u.extended>-1&&(t=this.addActions(e,u.extended,u.end,t)),t=this.addActions(e,u.value,u.end,t),!l.extend&&(n=u,t>r))break}}for(;this.actions.length>t;)this.actions.pop();return s&&e.setLookAhead(s),n||e.pos!=this.stream.end||((n=new fm).value=e.p.parser.eofTerm,n.start=n.end=e.pos,t=this.addActions(e,n.value,n.end,t)),this.mainToken=n,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new fm,{pos:n,p:r}=e;return t.start=n,t.end=Math.min(n+1,r.stream.end),t.value=n==r.stream.end?r.parser.eofTerm:0,t}updateCachedToken(e,t,n){if(t.token(this.stream.reset(n.pos,e),n),e.value>-1){let{parser:t}=n.p;for(let r=0;r=0&&n.p.parser.dialect.allows(i>>1)){(1&i)==0?e.value=i>>1:e.extended=i>>1;break}}}else e.value=0,e.end=Math.min(n.p.stream.end,n.pos+1)}putAction(e,t,n,r){for(let t=0;t4*e.bufferLength?new f_(n,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e,t,n=this.stacks,r=this.minStackPos,i=this.stacks=[];for(let a=0;ar)i.push(o);else{if(this.advanceStack(o,i,n))continue;e||(e=[],t=[]),e.push(o);let r=this.tokens.getMainToken(o);t.push(r.value,r.end)}break}}if(!i.length){let t=e&&function(e){let t=null;for(let n of e){let e=n.p.stoppedAt;(n.pos==n.p.stream.end||null!=e&&n.pos>e)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.scorethis.stoppedAt?e[0]:this.runRecovery(e,t,i);if(n)return this.stackToTree(n.forceAll())}if(this.recovering){let e=1==this.recovering?1:3*this.recovering;if(i.length>e)for(i.sort((e,t)=>t.score-e.score);i.length>e;)i.pop();i.some(e=>e.reducePos>r)&&this.recovering--}else if(i.length>1)o:for(let e=0;e500&&r.buffer.length>500){if((t.score-r.score||t.buffer.length-r.buffer.length)>0)i.splice(n--,1);else{i.splice(e--,1);continue o}}}}this.minStackPos=i[0].pos;for(let e=1;e ":"";if(null!=this.stoppedAt&&r>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let t=e.curContext&&e.curContext.tracker.strict,n=t?e.curContext.hash:0;for(let o=this.fragments.nodeAt(r);o;){let r=this.parser.nodeSet.types[o.type.id]==o.type?i.getGoto(e.state,o.type.id):-1;if(r>-1&&o.length&&(!t||(o.prop(dD.contextHash)||0)==n))return e.useNode(o,r),fx&&console.log(a+this.stackID(e)+` (via reuse of ${i.getName(o.type.id)})`),!0;if(!(o instanceof dj)||0==o.children.length||o.positions[0]>0)break;let s=o.children[0];if(s instanceof dj&&0==o.positions[0])o=s;else break}}let o=i.stateSlot(e.state,4);if(o>0)return e.reduce(o),fx&&console.log(a+this.stackID(e)+` (via always-reduce ${i.getName(65535&o)})`),!0;if(e.stack.length>=15e3)for(;e.stack.length>9e3&&e.forceReduce(););let s=this.tokens.getActions(e);for(let o=0;or?t.push(h):n.push(h)}return!1}advanceFully(e,t){let n=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return fE(e,t),!0}}runRecovery(e,t,n){let r=null,i=!1;for(let a=0;a ":"";if(o.deadEnd&&(i||(i=!0,o.restart(),fx&&console.log(u+this.stackID(o)+" (restarted)"),this.advanceFully(o,n))))continue;let c=o.split(),d=u;for(let e=0;c.forceReduce()&&e<10&&(fx&&console.log(d+this.stackID(c)+" (via force-reduce)"),!this.advanceFully(c,n));e++)fx&&(d=this.stackID(c)+" -> ");for(let e of o.recoverByInsert(s))fx&&console.log(u+this.stackID(e)+" (via recover-insert)"),this.advanceFully(e,n);this.stream.end>o.pos?(l==o.pos&&(l++,s=0),o.recoverByDelete(s,l),fx&&console.log(u+this.stackID(o)+` (via recover-delete ${this.parser.getName(s)})`),fE(o,n)):(!r||r.scoree;class fR{constructor(e){this.start=e.start,this.shift=e.shift||fA,this.reduce=e.reduce||fA,this.reuse=e.reuse||fA,this.hash=e.hash||(()=>0),this.strict=!1!==e.strict}}class fP extends d3{constructor(e){if(super(),this.wrappers=[],14!=e.version)throw RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let n=0;ne.topRules[t][1]),r=[];for(let e=0;e=0)i(r,e,t[n++]);else{let a=t[n+-r];for(let o=-r;o>0;o--)i(t[n++],e,a);n++}}}this.nodeSet=new dB(t.map((t,i)=>dF.define({name:i>=this.minRepeatTerm?void 0:t,id:i,props:r[i],top:n.indexOf(i)>-1,error:0==i,skipped:e.skippedNodes&&e.skippedNodes.indexOf(i)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=1024;let a=fv(e.tokenData);if(this.context=e.context,this.specialized=new Uint16Array(e.specialized?e.specialized.length:0),this.specializers=[],e.specialized)for(let t=0;t"number"==typeof e?new fb(a,e):e),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,n){let r=new fw(this,e,t,n);for(let i of this.wrappers)r=i(r,e,t,n);return r}getGoto(e,t,n=!1){let r=this.goto;if(t>=r[0])return -1;for(let i=r[t+1];;){let t=r[i++],a=1&t,o=r[i++];if(a&&n)return o;for(let n=i+(t>>1);i0}validAction(e,t){if(t==this.stateSlot(e,4))return!0;for(let n=this.stateSlot(e,1);;n+=3){if(65535==this.data[n]){if(1!=this.data[n+1])return!1;n=fI(this.data,n+2)}if(t==fI(this.data,n+1))return!0}}nextStates(e){let t=[];for(let n=this.stateSlot(e,1);;n+=3){if(65535==this.data[n]){if(1==this.data[n+1])n=fI(this.data,n+2);else break}if((1&this.data[n+2])==0){let e=this.data[n+1];t.some((t,n)=>1&n&&t==e)||t.push(this.data[n],e)}}return t}overrides(e,t){let n=fN(this.data,this.tokenPrecTable,t);return n<0||fN(this.data,this.tokenPrecTable,e){let n=e.tokenizers.find(e=>e.from==t);return n?n.to:t})),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),null!=e.strict&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),null!=e.bufferLength&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return null==t?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),n=t.map(()=>!1);if(e)for(let r of e.split(" ")){let e=t.indexOf(r);e>=0&&(n[e]=!0)}let r=null;for(let e=0;e=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57}function fL(e,t,n){for(let r=!1;;){if(e.next<0)return;if(e.next==t&&!r){e.advance();return}r=n&&!r&&92==e.next,e.advance()}}function fD(e,t){for(;95==e.next||f$(e.next);)null!=t&&(t+=String.fromCharCode(e.next)),e.advance();return t}function fQ(e,t){for(;;){if(46==e.next){if(t)break;t=!0}else if(e.next<48||e.next>57)break;e.advance()}if(69==e.next||101==e.next)for(e.advance(),(43==e.next||45==e.next)&&e.advance();e.next>=48&&e.next<=57;)e.advance()}function fM(e){for(;!(e.next<0||10==e.next);)e.advance()}function fF(e,t){for(let n=0;n!=&|~^/",specialVar:"?",identifierQuotes:'"',words:fU("absolute action add after all allocate alter and any are as asc assertion at authorization before begin between both breadth by call cascade cascaded case cast catalog check close collate collation column commit condition connect connection constraint constraints constructor continue corresponding count create cross cube current current_date current_default_transform_group current_transform_group_for_type current_path current_role current_time current_timestamp current_user cursor cycle data day deallocate declare default deferrable deferred delete depth deref desc describe descriptor deterministic diagnostics disconnect distinct do domain drop dynamic each else elseif end end-exec equals escape except exception exec execute exists exit external fetch first for foreign found from free full function general get global go goto grant group grouping handle having hold hour identity if immediate in indicator initially inner inout input insert intersect into is isolation join key language last lateral leading leave left level like limit local localtime localtimestamp locator loop map match method minute modifies module month names natural nesting new next no none not of old on only open option or order ordinality out outer output overlaps pad parameter partial path prepare preserve primary prior privileges procedure public read reads recursive redo ref references referencing relative release repeat resignal restrict result return returns revoke right role rollback rollup routine row rows savepoint schema scroll search second section select session session_user set sets signal similar size some space specific specifictype sql sqlexception sqlstate sqlwarning start state static system_user table temporary then timezone_hour timezone_minute to trailing transaction translation treat trigger under undo union unique unnest until update usage user using value values view when whenever where while with without work write year zone ","array binary bit boolean char character clob date decimal double float int integer interval large national nchar nclob numeric object precision real smallint time timestamp varchar varying ")};function fj(e){return new fy(t=>{var n,r;let{next:i}=t;if(t.advance(),fF(i,fB)){for(;fF(t.next,fB);)t.advance();t.acceptToken(34)}else if(39==i||34==i&&e.doubleQuotedStrings)fL(t,i,e.backslashEscapes),t.acceptToken(3);else if(35==i&&e.hashComments||47==i&&47==t.next&&e.slashComments)fM(t),t.acceptToken(1);else if(45!=i||45!=t.next||e.spaceAfterDashes&&32!=t.peek(2)){if(47==i&&42==t.next){t.advance();for(let e=-1,n=1;!(t.next<0);)if(t.advance(),42==e&&47==t.next){if(!--n){t.advance();break}e=-1}else 47==e&&42==t.next?(n++,e=-1):e=t.next;t.acceptToken(2)}else if((101==i||69==i)&&39==t.next)t.advance(),fL(t,39,!0);else if((110==i||78==i)&&39==t.next&&e.charSetCasts)t.advance(),fL(t,39,e.backslashEscapes),t.acceptToken(3);else if(95==i&&e.charSetCasts)for(let n=0;;n++){if(39==t.next&&n>1){t.advance(),fL(t,39,e.backslashEscapes),t.acceptToken(3);break}if(!f$(t.next))break;t.advance()}else if(40==i)t.acceptToken(7);else if(41==i)t.acceptToken(8);else if(123==i)t.acceptToken(9);else if(125==i)t.acceptToken(10);else if(91==i)t.acceptToken(11);else if(93==i)t.acceptToken(12);else if(59==i)t.acceptToken(13);else if(48==i&&(98==t.next||66==t.next)||(98==i||66==i)&&39==t.next){let e=39==t.next;for(t.advance();48==t.next||49==t.next;)t.advance();e&&39==t.next&&t.advance(),t.acceptToken(4)}else if(48==i&&(120==t.next||88==t.next)||(120==i||88==i)&&39==t.next){let e=39==t.next;for(t.advance();(r=t.next)>=48&&r<=57||r>=97&&r<=102||r>=65&&r<=70;)t.advance();e&&39==t.next&&t.advance(),t.acceptToken(4)}else if(46==i&&t.next>=48&&t.next<=57)fQ(t,!0),t.acceptToken(4);else if(46==i)t.acceptToken(14);else if(i>=48&&i<=57)fQ(t,!1),t.acceptToken(4);else if(fF(i,e.operatorChars)){for(;fF(t.next,e.operatorChars);)t.advance();t.acceptToken(15)}else if(fF(i,e.specialVar))t.next==i&&t.advance(),function(e){if(39==e.next||34==e.next||96==e.next){let t=e.next;e.advance(),fL(e,t,!1)}else fD(e)}(t),t.acceptToken(17);else if(fF(i,e.identifierQuotes))fL(t,i,!1),t.acceptToken(19);else if(58==i||44==i)t.acceptToken(16);else if(f$(i)){let r=fD(t,String.fromCharCode(i));t.acceptToken(null!==(n=e.words[r.toLowerCase()])&&void 0!==n?n:18)}}else fM(t),t.acceptToken(1)})}let fW=fj(fz),fZ=fP.deserialize({version:14,states:"%dQ]QQOOO#kQRO'#DQO#rQQO'#CuO%RQQO'#CvO%YQQO'#CwO%aQQO'#CxOOQQ'#DQ'#DQOOQQ'#C{'#C{O&lQRO'#CyOOQQ'#Ct'#CtOOQQ'#Cz'#CzQ]QQOOQOQQOOO&vQQO,59aO'RQQO,59aO'WQQO'#DQOOQQ,59b,59bO'eQQO,59bOOQQ,59c,59cO'lQQO,59cOOQQ,59d,59dO'sQQO,59dOOQQ-E6y-E6yOOQQ,59`,59`OOQQ-E6x-E6xOOQQ'#C|'#C|OOQQ1G.{1G.{O&vQQO1G.{OOQQ1G.|1G.|OOQQ1G.}1G.}OOQQ1G/O1G/OP'zQQO'#C{POQQ-E6z-E6zOOQQ7+$g7+$g",stateData:"(R~OrOSPOSQOS~ORUOSUOTUOUUOVROXSOZTO]XO^QO_UO`UOaPObPOcPOdUOeUOfUO~O^]ORtXStXTtXUtXVtXXtXZtX]tX_tX`tXatXbtXctXdtXetXftX~OqtX~P!dOa^Ob^Oc^O~ORUOSUOTUOUUOVROXSOZTO^QO_UO`UOa_Ob_Oc_OdUOeUOfUO~OW`O~P#}OYbO~P#}O[dO~P#}ORUOSUOTUOUUOVROXSOZTO^QO_UO`UOaPObPOcPOdUOeUOfUO~O]gOqmX~P%hOaiObiOciO~O^kO~OWtXYtX[tX~P!dOWlO~P#}OYmO~P#}O[nO~P#}O]gO~P#}O",goto:"#YuPPPPPPPPPPPPPPPPPPPPPPPPvzzzz!W![!b!vPPP!|TYOZeUORSTWZaceoT[OZQZORhZSWOZQaRQcSQeTZfWaceoQj]RqkeVORSTWZaceo",nodeNames:"⚠ LineComment BlockComment String Number Bool Null ( ) [ ] { } ; . Operator Punctuation SpecialVar Identifier QuotedIdentifier Keyword Type Builtin Script Statement CompositeIdentifier Parens Braces Brackets Statement",maxTerm:36,skippedNodes:[0,1,2],repeatNodeCount:3,tokenData:"RORO",tokenizers:[0,fW],topRules:{Script:[0,23]},tokenPrec:0});function fq(e){let t=e.cursor().moveTo(e.from,-1);for(;/Comment/.test(t.name);)t.moveTo(t.from,-1);return t.node}function fG(e,t){for(let n=[];;){if(!t||"."!=t.name)return n;let r=fq(t);if(!r||!("Identifier"==r.name||"QuotedIdentifier"==r.name||"Keyword"==r.name&&/^public$/i.test(e.sliceDoc(r.from,r.to))))return n;n.unshift(function(e){let t=/^[`'"](.*)[`'"]$/.exec(e);return t?t[1]:e}(e.sliceDoc(r.from,r.to))),t=fq(r)}}let fH=/^\w*$/,fY=/^[`'"]?\w*[`'"]?$/;class fX{constructor(){this.list=[],this.children=void 0}child(e){let t=this.children||(this.children=Object.create(null));return t[e]||(t[e]=new fX)}childCompletions(e){return this.children?Object.keys(this.children).filter(e=>e).map(t=>({label:t,type:e})):[]}}let fV=fZ.configure({props:[hJ.add({Statement:h4()}),h3.add({Statement:e=>({from:e.firstChild.to,to:e.to}),BlockComment:e=>({from:e.from+2,to:e.to-2})}),hh({Keyword:hI.keyword,Type:hI.typeName,Builtin:hI.standard(hI.name),Bool:hI.bool,Null:hI.null,Number:hI.number,String:hI.string,Identifier:hI.name,QuotedIdentifier:hI.special(hI.string),SpecialVar:hI.special(hI.name),LineComment:hI.lineComment,BlockComment:hI.blockComment,Operator:hI.operator,"Semi Punctuation":hI.punctuation,"( )":hI.paren,"{ }":hI.brace,"[ ]":hI.squareBracket})]});class fK{constructor(e,t){this.dialect=e,this.language=t}get extension(){return this.language.extension}static define(e){let t=function(e,t,n,r){let i={};for(let t in fz)i[t]=(e.hasOwnProperty(t)?e:fz)[t];return t&&(i.words=fU(t,n||"",r)),i}(e,e.keywords,e.types,e.builtin),n=hQ.define({parser:fV.configure({tokenizers:[{from:fW,to:fj(t)}]}),languageData:{commentTokens:{line:"--",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]}}});return new fK(t,n)}}let fJ=fK.define({}),f1=hh({null:hI.null,instanceof:hI.operatorKeyword,this:hI.self,"new super assert open to with void":hI.keyword,"class interface extends implements enum":hI.definitionKeyword,"module package import":hI.moduleKeyword,"switch while for if else case default do break continue return try catch finally throw":hI.controlKeyword,"requires exports opens uses provides public private protected static transitive abstract final strictfp synchronized native transient volatile throws":hI.modifier,IntegerLiteral:hI.integer,FloatLiteral:hI.float,"StringLiteral TextBlock":hI.string,CharacterLiteral:hI.character,LineComment:hI.lineComment,BlockComment:hI.blockComment,BooleanLiteral:hI.bool,PrimitiveType:hI.standard(hI.typeName),TypeName:hI.typeName,Identifier:hI.variableName,"MethodName/Identifier":hI.function(hI.variableName),Definition:hI.definition(hI.variableName),ArithOp:hI.arithmeticOperator,LogicOp:hI.logicOperator,BitOp:hI.bitwiseOperator,CompareOp:hI.compareOperator,AssignOp:hI.definitionOperator,UpdateOp:hI.updateOperator,Asterisk:hI.punctuation,Label:hI.labelName,"( )":hI.paren,"[ ]":hI.squareBracket,"{ }":hI.brace,".":hI.derefOperator,", ;":hI.separator}),f0={__proto__:null,true:34,false:34,null:42,void:46,byte:48,short:48,int:48,long:48,char:48,float:48,double:48,boolean:48,extends:62,super:64,class:76,this:78,new:84,public:100,protected:102,private:104,abstract:106,static:108,final:110,strictfp:112,default:114,synchronized:116,native:118,transient:120,volatile:122,throws:150,implements:160,interface:166,enum:176,instanceof:236,open:265,module:267,requires:272,transitive:274,exports:276,to:278,opens:280,uses:282,provides:284,with:286,package:290,import:294,if:306,else:308,while:312,for:316,var:323,assert:330,switch:334,case:340,do:344,break:348,continue:352,return:356,throw:362,try:366,catch:370,finally:378},f2=fP.deserialize({version:14,states:"#!hQ]QPOOO&tQQO'#H[O(xQQO'#CbOOQO'#Cb'#CbO)PQPO'#CaO)XOSO'#CpOOQO'#Ha'#HaOOQO'#Cu'#CuO*tQPO'#D_O+_QQO'#HkOOQO'#Hk'#HkO-sQQO'#HfO-zQQO'#HfOOQO'#Hf'#HfOOQO'#He'#HeO0OQPO'#DUO0]QPO'#GlO3TQPO'#D_O3[QPO'#DzO)PQPO'#E[O3}QPO'#E[OOQO'#DV'#DVO5]QQO'#H_O7dQQO'#EeO7kQPO'#EdO7pQPO'#EfOOQO'#H`'#H`O5sQQO'#H`O8sQQO'#FgO8zQPO'#EwO9PQPO'#E|O9PQPO'#FOOOQO'#H_'#H_OOQO'#HW'#HWOOQO'#Gf'#GfOOQO'#HV'#HVO:aQPO'#FhOOQO'#HU'#HUOOQO'#Ge'#GeQ]QPOOOOQO'#Hq'#HqO:fQPO'#HqO:kQPO'#D{O:kQPO'#EVO:kQPO'#EQO:sQPO'#HnO;UQQO'#EfO)PQPO'#C`O;^QPO'#C`O)PQPO'#FbO;cQPO'#FdO;nQPO'#FjO;nQPO'#FmO:kQPO'#FrO;sQPO'#FoO9PQPO'#FvO;nQPO'#FxO]QPO'#F}O;xQPO'#GPOyOSO,59[OOQO,59[,59[OOQO'#Hg'#HgO?jQPO,59eO@lQPO,59yOOQO-E:d-E:dO)PQPO,58zOA`QPO,58zO)PQPO,5;|OAeQPO'#DQOAjQPO'#DQOOQO'#Gi'#GiOBjQQO,59jOOQO'#Dm'#DmODRQPO'#HsOD]QPO'#DlODkQPO'#HrODsQPO,5<^ODxQPO,59^OEcQPO'#CxOOQO,59c,59cOEjQPO,59bOGrQQO'#H[OJVQQO'#CbOJmQPO'#D_OKrQQO'#HkOLSQQO,59pOLZQPO'#DvOLiQPO'#HzOLqQPO,5:`OLvQPO,5:`OM^QPO,5;mOMiQPO'#IROMtQPO,5;dOMyQPO,5=WOOQO-E:j-E:jOOQO,5:f,5:fO! aQPO,5:fO! hQPO,5:vO! mQPO,5<^O)PQPO,5:vO:kQPO,5:gO:kQPO,5:qO:kQPO,5:lO:kQPO,5<^O!!^QPO,59qO9PQPO,5:}O!!eQPO,5;QO9PQPO,59TO!!sQPO'#DXOOQO,5;O,5;OOOQO'#El'#ElOOQO'#En'#EnO9PQPO,5;UO9PQPO,5;UO9PQPO,5;UO9PQPO,5;UO9PQPO,5;UO9PQPO,5;UO9PQPO,5;eOOQO,5;h,5;hOOQO,5],5>]O!%SQPO,5:gO!%bQPO,5:qO!%jQPO,5:lO!%uQPO,5>YOLZQPO,5>YO! {QPO,59UO!&QQQO,58zO!&YQQO,5;|O!&bQQO,5_O!.ZQPO,5:WO:kQPO'#GnO!.bQPO,5>^OOQO1G1x1G1xOOQO1G.x1G.xO!.{QPO'#CyO!/kQPO'#HkO!/uQPO'#CzO!0TQPO'#HjO!0]QPO,59dOOQO1G.|1G.|OEjQPO1G.|O!0sQPO,59eO!1QQQO'#H[O!1cQQO'#CbOOQO,5:b,5:bO:kQPO,5:cOOQO,5:a,5:aO!1tQQO,5:aOOQO1G/[1G/[O!1yQPO,5:bO!2[QPO'#GqO!2oQPO,5>fOOQO1G/z1G/zO!2wQPO'#DvO!3YQPO'#D_O!3aQPO1G/zO!!zQPO'#GoO!3fQPO1G1XO9PQPO1G1XO:kQPO'#GwO!3nQPO,5>mOOQO1G1O1G1OOOQO1G0Q1G0QO!3vQPO'#E]OOQO1G0b1G0bO!4gQPO1G1xO! hQPO1G0bO!%SQPO1G0RO!%bQPO1G0]O!%jQPO1G0WOOQO1G/]1G/]O!4lQQO1G.pO7kQPO1G0jO)PQPO1G0jO:sQPO'#HnO!6`QQO1G.pOOQO1G.p1G.pO!6eQQO1G0iOOQO1G0l1G0lO!6lQPO1G0lO!6wQQO1G.oO!7_QQO'#HoO!7lQPO,59sO!8{QQO1G0pO!:dQQO1G0pO!;rQQO1G0pO!UOOQO1G/O1G/OOOQO7+$h7+$hOOQO1G/{1G/{O#1TQQO1G/{OOQO1G/}1G/}O#1YQPO1G/{OOQO1G/|1G/|O:kQPO1G/}OOQO,5=],5=]OOQO-E:o-E:oOOQO7+%f7+%fOOQO,5=Z,5=ZOOQO-E:m-E:mO9PQPO7+&sOOQO7+&s7+&sOOQO,5=c,5=cOOQO-E:u-E:uO#1_QPO'#EUO#1mQPO'#EUOOQO'#Gu'#GuO#2UQPO,5:wOOQO,5:w,5:wOOQO7+'d7+'dOOQO7+%|7+%|OOQO7+%m7+%mO!AYQPO7+%mO!A_QPO7+%mO!AgQPO7+%mOOQO7+%w7+%wO!BVQPO7+%wOOQO7+%r7+%rO!CUQPO7+%rO!CZQPO7+%rOOQO7+&U7+&UOOQO'#Ee'#EeO7kQPO7+&UO7kQPO,5>YO#2uQPO7+$[OOQO7+&T7+&TOOQO7+&W7+&WO9PQPO'#GjO#3TQPO,5>ZOOQO1G/_1G/_O9PQPO7+&kO#3`QQO,59eO#4cQPO'#DrO! pQPO'#DrO#4nQPO'#HwO#4vQPO,5:]O#5aQQO'#HgO#5|QQO'#CuO! mQPO'#HvO#6lQPO'#DpO#6vQPO'#HvO#7XQPO'#DpO#7aQPO'#IPO#7fQPO'#E`OOQO'#Hp'#HpOOQO'#Gk'#GkO#7nQPO,59vOOQO,59v,59vO#7uQPO'#HqOOQO,5:h,5:hO#9]QPO'#H|OOQO'#EP'#EPOOQO,5:i,5:iO#9hQPO'#EYO:kQPO'#EYO#9yQPO'#H}O#:UQPO,5:sO! mQPO'#HvO!!zQPO'#HvO#:^QPO'#DpOOQO'#Gs'#GsO#:eQPO,5:oOOQO,5:o,5:oOOQO,5:n,5:nOOQO,5;S,5;SO#;_QQO,5;SO#;fQPO,5;SOOQO-E:t-E:tOOQO7+&X7+&XOOQO7+)`7+)`O#;mQQO7+)`OOQO'#Gz'#GzO#=ZQPO,5;rOOQO,5;r,5;rO#=bQPO'#FXO)PQPO'#FXO)PQPO'#FXO)PQPO'#FXO#=pQPO7+'UO#=uQPO7+'UOOQO7+'U7+'UO]QPO7+'[O#>QQPO1G1{O! mQPO1G1{O#>`QQO1G1wO!!sQPO1G1wO#>gQPO1G1wO#>nQQO7+'hOOQO'#G}'#G}O#>uQPO,5|QPO'#HqO9PQPO'#F{O#?UQPO7+'oO#?ZQPO,5=OO! mQPO,5=OO#?`QPO1G2iO#@iQPO1G2iOOQO1G2i1G2iOOQO-E:|-E:|OOQO7+'z7+'zO!2[QPO'#G^OpOOQO1G.n1G.nOOQO<X,5>XOOQO,5=S,5=SOOQO-E:f-E:fO#EjQPO7+%gOOQO7+%g7+%gOOQO7+%i7+%iOOQO<cOOQO1G/w1G/wO#IfQPO'#HsO#ImQPO,59xO#IrQPO,5>bO! mQPO,59xO#I}QPO,5:[O#7fQPO,5:zO! mQPO,5>bO!!zQPO,5>bO#7aQPO,5>kOOQO,5:[,5:[OLvQPO'#DtOOQO,5>k,5>kO#JVQPO'#EaOOQO,5:z,5:zO#MWQPO,5:zO!!zQPO'#DxOOQO-E:i-E:iOOQO1G/b1G/bOOQO,5:y,5:yO!!zQPO'#GrO#M]QPO,5>hOOQO,5:t,5:tO#MhQPO,5:tO#MvQPO,5:tO#NXQPO'#GtO#NoQPO,5>iO#NzQPO'#EZOOQO1G0_1G0_O$ RQPO1G0_O! mQPO,5:pOOQO-E:q-E:qOOQO1G0Z1G0ZOOQO1G0n1G0nO$ WQQO1G0nOOQO<oOOQO1G1Y1G1YO$%uQPO'#FTOOQO,5=e,5=eOOQO-E:w-E:wO$%zQPO'#GmO$&XQPO,5>aOOQO1G/u1G/uOOQO<sAN>sO!AYQPOAN>sOOQOAN>xAN>xOOQOAN?[AN?[O7kQPOAN?[O$&pQPO,5:_OOQO1G/x1G/xOOQO,5=[,5=[OOQO-E:n-E:nO$&{QPO,5>eOOQO1G/d1G/dOOQO1G3|1G3|O$'^QPO1G/dOOQO1G/v1G/vOOQO1G0f1G0fO#MWQPO1G0fO#7aQPO'#HyO$'cQPO1G3|O! mQPO1G3|OOQO1G4V1G4VOK^QPO'#DvOJmQPO'#D_OOQO,5:{,5:{O$'nQPO,5:{O$'nQPO,5:{O$'uQQO'#H_O$'|QQO'#H`O$(WQQO'#EbO$(cQPO'#EbOOQO,5:d,5:dOOQO,5=^,5=^OOQO-E:p-E:pOOQO1G0`1G0`O$(kQPO1G0`OOQO,5=`,5=`OOQO-E:r-E:rO$(yQPO,5:uOOQO7+%y7+%yOOQO7+&Y7+&YOOQO1G1_1G1_O$)QQQO1G1_OOQO-E:y-E:yO$)YQQO'#IWO$)TQPO1G1_O$ mQPO1G1_O)PQPO1G1_OOQOAN@[AN@[O$)eQQO<rO$,cQPO7+&yO$,hQQO'#IXOOQOAN@mAN@mO$,sQQOAN@mOOQOAN@iAN@iO$,zQPOAN@iO$-PQQO<sOOQOG26XG26XOOQOG26TG26TOOQO<bPPP>hP@|PPPAv2vPCoPPDjPEaEgPPPPPPPPPPPPFpGXPJ_JgJqKZKaKgMVMZMZMcPMrNx! k! uP!![NxP!!b!!l!!{!#TP!#r!#|!$SNx!$V!$]EaEa!$a!$k!$n2v!&Y2v2v!(RP.^P!(VP!(vPPPPPP.^P.^!)d.^PP.^P.^PP.^!*x!+SPP!+Y!+cPPPPPPPP&}P&}PP!+g!+g!+z!+gPP!+gP!+gP!,e!,hP!+g!-O!+gP!+gP!-R!-UP!+gP!+gP!+gP!+gP!+g!+gP!+gP!-YP!-`!-c!-iP!+g!-u!-x!.Q!.d!2a!2g!2m!3s!3y!4T!5X!5_!5e!5o!5u!5{!6R!6X!6_!6e!6k!6q!6w!6}!7T!7Z!7e!7k!7u!7{PPP!8R!+g!8vP!`!O!P?m!P!QFa!Q!RN]!R![!#w![!]!0a!]!^!1e!^!_!1{!_!`!3Y!`!a!3v!a!b!5W!b!c!5p!c!}!;^!}#O!O#p#q!>f#q#r!?r#r#s!@Y#s#y$z#y#z&j#z$f$z$f$g&j$g#BY$z#BY#BZ&j#BZ$IS$z$IS$I_&j$I_$I|$z$I|$JO&j$JO$JT$z$JT$JU&j$JU$KV$z$KV$KW&j$KW&FU$z&FU&FV&j&FV~$zS%PT&WSOY$zYZ%`Zr$zrs%es~$zS%eO&WSS%hTOY%wYZ%`Zr%wrs&Zs~%wS%zTOY$zYZ%`Zr$zrs%es~$zS&^SOY%wYZ%`Zr%ws~%w_&qi&WS%wZOX$zXY&jYZ(`Z^&j^p$zpq&jqr$zrs%es#y$z#y#z&j#z$f$z$f$g&j$g#BY$z#BY#BZ&j#BZ$IS$z$IS$I_&j$I_$I|$z$I|$JO&j$JO$JT$z$JT$JU&j$JU$KV$z$KV$KW&j$KW&FU$z&FU&FV&j&FV~$z_(gY&WS%wZX^)Vpq)V#y#z)V$f$g)V#BY#BZ)V$IS$I_)V$I|$JO)V$JT$JU)V$KV$KW)V&FU&FV)VZ)[Y%wZX^)Vpq)V#y#z)V$f$g)V#BY#BZ)V$IS$I_)V$I|$JO)V$JT$JU)V$KV$KW)V&FU&FV)VV*RV#sP&WSOY$zYZ%`Zr$zrs%es!_$z!_!`*h!`~$zU*oT#_Q&WSOY$zYZ%`Zr$zrs%es~$zT+RVOY+hYZ%`Zr+hrs0Ss#O+h#O#P/p#P~+hT+kVOY,QYZ%`Zr,Qrs,ls#O,Q#O#P-Q#P~,QT,VV&WSOY,QYZ%`Zr,Qrs,ls#O,Q#O#P-Q#P~,QT,qTcPOY%wYZ%`Zr%wrs&Zs~%wT-VT&WSOY,QYZ-fZr,Qrs.us~,QT-kU&WSOY-}Zr-}rs.ds#O-}#O#P.i#P~-}P.QUOY-}Zr-}rs.ds#O-}#O#P.i#P~-}P.iOcPP.lROY-}YZ-}Z~-}T.xVOY+hYZ%`Zr+hrs/_s#O+h#O#P/p#P~+hT/dScPOY%wYZ%`Zr%ws~%wT/sTOY,QYZ-fZr,Qrs.us~,QT0XTcPOY%wYZ%`Zr%wrs0hs~%wT0mR&USXY0vYZ1Spq0vP0yRXY0vYZ1Spq0vP1XO&VP_1`_%}Z&WSOY$zYZ%`Zr$zrs%est$ztu1Xu!Q$z!Q![1X![!c$z!c!}1X!}#R$z#R#S1X#S#T$z#T#o1X#o~$zU2fV#gQ&WSOY$zYZ%`Zr$zrs%es!_$z!_!`2{!`~$zU3ST#]Q&WSOY$zYZ%`Zr$zrs%es~$zV3jX&lR&WSOY$zYZ%`Zr$zrs%esv$zvw4Vw!_$z!_!`2{!`~$zU4^T#aQ&WSOY$zYZ%`Zr$zrs%es~$zT4rX&WSOY5_YZ%`Zr5_rs6Psw5_wx$zx#O5_#O#P7u#P~5_T5dX&WSOY5_YZ%`Zr5_rs6Psw5_wx7_x#O5_#O#P7u#P~5_T6SXOY6oYZ%`Zr6ors9jsw6owx:Yx#O6o#O#P:n#P~6oT6rXOY5_YZ%`Zr5_rs6Psw5_wx7_x#O5_#O#P7u#P~5_T7fTbP&WSOY$zYZ%`Zr$zrs%es~$zT7zT&WSOY5_YZ8ZZr5_rs6Ps~5_T8`U&WSOY8rZw8rwx9Xx#O8r#O#P9^#P~8rP8uUOY8rZw8rwx9Xx#O8r#O#P9^#P~8rP9^ObPP9aROY8rYZ8rZ~8rT9mXOY6oYZ%`Zr6ors8rsw6owx:Yx#O6o#O#P:n#P~6oT:_TbPOY$zYZ%`Zr$zrs%es~$zT:qTOY5_YZ8ZZr5_rs6Ps~5__;XTZZ&WSOY$zYZ%`Zr$zrs%es~$zV;oTYR&WSOY$zYZ%`Zr$zrs%es~$zVPTqR&WSOY$zYZ%`Zr$zrs%es~$zV>gY#eR&WSOY$zYZ%`Zr$zrs%es}$z}!O=b!O!_$z!_!`2{!`!a?V!a~$zV?^T&vR&WSOY$zYZ%`Zr$zrs%es~$z_?tXWY&WSOY$zYZ%`Zr$zrs%es!O$z!O!P@a!P!Q$z!Q![Ac![~$zV@fV&WSOY$zYZ%`Zr$zrs%es!O$z!O!P@{!P~$zVAST&oR&WSOY$zYZ%`Zr$zrs%es~$zTAja&WS`POY$zYZ%`Zr$zrs%es!Q$z!Q![Ac![!f$z!f!gBo!g!hCV!h!iBo!i#R$z#R#SEu#S#W$z#W#XBo#X#YCV#Y#ZBo#Z~$zTBvT&WS`POY$zYZ%`Zr$zrs%es~$zTC[Z&WSOY$zYZ%`Zr$zrs%es{$z{|C}|}$z}!OC}!O!Q$z!Q![Di![~$zTDSV&WSOY$zYZ%`Zr$zrs%es!Q$z!Q![Di![~$zTDpa&WS`POY$zYZ%`Zr$zrs%es!Q$z!Q![Di![!f$z!f!gBo!g!h$z!h!iBo!i#R$z#R#SC}#S#W$z#W#XBo#X#Y$z#Y#ZBo#Z~$zTEzV&WSOY$zYZ%`Zr$zrs%es!Q$z!Q![Ac![~$z_FhZ&WS#fQOY$zYZ%`Zr$zrs%esz$zz{GZ{!P$z!P!QL[!Q!_$z!_!`2{!`~$z_G`V&WSOYGZYZGuZrGZrsHxszGZz{Iz{~GZ_GzR&WSOzHTz{Ha{~HTZHWROzHTz{Ha{~HTZHdTOzHTz{Ha{!PHT!P!QHs!Q~HTZHxOQZ_H{VOYIbYZGuZrIbrsKSszIbz{Kl{~Ib_IeVOYGZYZGuZrGZrsHxszGZz{Iz{~GZ_JPX&WSOYGZYZGuZrGZrsHxszGZz{Iz{!PGZ!P!QJl!Q~GZ_JsT&WSQZOY$zYZ%`Zr$zrs%es~$z_KVVOYIbYZGuZrIbrsHTszIbz{Kl{~Ib_KoXOYGZYZGuZrGZrsHxszGZz{Iz{!PGZ!P!QJl!Q~GZ_LcT&WSPZOYL[YZ%`ZrL[rsLrs~L[_LwTPZOYMWYZ%`ZrMWrsMls~MW_M]TPZOYL[YZ%`ZrL[rsLrs~L[_MqTPZOYMWYZ%`ZrMWrsNQs~MWZNVQPZOYNQZ~NQTNds&WS_POY$zYZ%`Zr$zrs%es!O$z!O!P!!q!P!Q$z!Q![!#w![!d$z!d!e!&i!e!f$z!f!gBo!g!hCV!h!iBo!i!n$z!n!o!%g!o!q$z!q!r!(Z!r!z$z!z!{!)u!{#R$z#R#S!%}#S#U$z#U#V!&i#V#W$z#W#XBo#X#YCV#Y#ZBo#Z#`$z#`#a!%g#a#c$z#c#d!(Z#d#l$z#l#m!)u#m~$zT!!x_&WS`POY$zYZ%`Zr$zrs%es!Q$z!Q![Ac![!f$z!f!gBo!g!hCV!h!iBo!i#W$z#W#XBo#X#YCV#Y#ZBo#Z~$zT!$Og&WS_POY$zYZ%`Zr$zrs%es!O$z!O!P!!q!P!Q$z!Q![!#w![!f$z!f!gBo!g!hCV!h!iBo!i!n$z!n!o!%g!o#R$z#R#S!%}#S#W$z#W#XBo#X#YCV#Y#ZBo#Z#`$z#`#a!%g#a~$zT!%nT&WS_POY$zYZ%`Zr$zrs%es~$zT!&SV&WSOY$zYZ%`Zr$zrs%es!Q$z!Q![!#w![~$zT!&nW&WSOY$zYZ%`Zr$zrs%es!Q$z!Q!R!'W!R!S!'W!S~$zT!'_^&WS_POY$zYZ%`Zr$zrs%es!Q$z!Q!R!'W!R!S!'W!S!n$z!n!o!%g!o#R$z#R#S!&i#S#`$z#`#a!%g#a~$zT!(`V&WSOY$zYZ%`Zr$zrs%es!Q$z!Q!Y!(u!Y~$zT!(|]&WS_POY$zYZ%`Zr$zrs%es!Q$z!Q!Y!(u!Y!n$z!n!o!%g!o#R$z#R#S!(Z#S#`$z#`#a!%g#a~$zT!)z]&WSOY$zYZ%`Zr$zrs%es!O$z!O!P!*s!P!Q$z!Q![!,u![!c$z!c!i!,u!i#T$z#T#Z!,u#Z~$zT!*xZ&WSOY$zYZ%`Zr$zrs%es!Q$z!Q![!+k![!c$z!c!i!+k!i#T$z#T#Z!+k#Z~$zT!+pa&WSOY$zYZ%`Zr$zrs%es!Q$z!Q![!+k![!c$z!c!i!+k!i!r$z!r!sCV!s#R$z#R#S!*s#S#T$z#T#Z!+k#Z#d$z#d#eCV#e~$zT!,|g&WS_POY$zYZ%`Zr$zrs%es!O$z!O!P!.e!P!Q$z!Q![!,u![!c$z!c!i!,u!i!n$z!n!o!%g!o!r$z!r!sCV!s#R$z#R#S!/i#S#T$z#T#Z!,u#Z#`$z#`#a!%g#a#d$z#d#eCV#e~$zT!.j_&WSOY$zYZ%`Zr$zrs%es!Q$z!Q![!+k![!c$z!c!i!+k!i!r$z!r!sCV!s#T$z#T#Z!+k#Z#d$z#d#eCV#e~$zT!/nZ&WSOY$zYZ%`Zr$zrs%es!Q$z!Q![!,u![!c$z!c!i!,u!i#T$z#T#Z!,u#Z~$zV!0hV#oR&WSOY$zYZ%`Zr$zrs%es![$z![!]!0}!]~$zV!1UT&tR&WSOY$zYZ%`Zr$zrs%es~$zV!1lT!PR&WSOY$zYZ%`Zr$zrs%es~$z_!2SW&]Z&WSOY$zYZ%`Zr$zrs%es!^$z!^!_!2l!_!`*h!`~$zU!2sV#hQ&WSOY$zYZ%`Zr$zrs%es!_$z!_!`2{!`~$zV!3aV!bR&WSOY$zYZ%`Zr$zrs%es!_$z!_!`*h!`~$zV!3}W&[R&WSOY$zYZ%`Zr$zrs%es!_$z!_!`*h!`!a!4g!a~$zU!4nW#hQ&WSOY$zYZ%`Zr$zrs%es!_$z!_!`2{!`!a!2l!a~$z_!5aT&`X#nQ&WSOY$zYZ%`Zr$zrs%es~$z_!5wV%{Z&WSOY$zYZ%`Zr$zrs%es#]$z#]#^!6^#^~$zV!6cV&WSOY$zYZ%`Zr$zrs%es#b$z#b#c!6x#c~$zV!6}V&WSOY$zYZ%`Zr$zrs%es#h$z#h#i!7d#i~$zV!7iV&WSOY$zYZ%`Zr$zrs%es#X$z#X#Y!8O#Y~$zV!8TV&WSOY$zYZ%`Zr$zrs%es#f$z#f#g!8j#g~$zV!8oV&WSOY$zYZ%`Zr$zrs%es#Y$z#Y#Z!9U#Z~$zV!9ZV&WSOY$zYZ%`Zr$zrs%es#T$z#T#U!9p#U~$zV!9uV&WSOY$zYZ%`Zr$zrs%es#V$z#V#W!:[#W~$zV!:aV&WSOY$zYZ%`Zr$zrs%es#X$z#X#Y!:v#Y~$zV!:}T&rR&WSOY$zYZ%`Zr$zrs%es~$z_!;e_&PZ&WSOY$zYZ%`Zr$zrs%est$ztu!;^u!Q$z!Q![!;^![!c$z!c!}!;^!}#R$z#R#S!;^#S#T$z#T#o!;^#o~$z_!VT}R&WSOY$zYZ%`Zr$zrs%es~$z_!>oX&|X#cQ&WSOY$zYZ%`Zr$zrs%es!_$z!_!`2{!`#p$z#p#q!?[#q~$zU!?cT#dQ&WSOY$zYZ%`Zr$zrs%es~$zV!?yT|R&WSOY$zYZ%`Zr$zrs%es~$zT!@aT#tP&WSOY$zYZ%`Zr$zrs%es~$z",tokenizers:[0,1,2,3],topRules:{Program:[0,3]},dynamicPrecedences:{27:1,230:-1,241:-1},specialized:[{term:229,get:e=>f0[e]||-1}],tokenPrec:7067}),f5=hQ.define({parser:f2.configure({props:[hJ.add({IfStatement:h4({except:/^\s*({|else\b)/}),TryStatement:h4({except:/^\s*({|catch|finally)\b/}),LabeledStatement:e=>e.baseIndent,SwitchBlock:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),r=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:r?1:2)*e.unit},Block:h5({closing:"}"}),BlockComment:()=>-1,Statement:h4({except:/^{/})}),h3.add({"Block SwitchBlock ClassBody ElementValueArrayInitializer ModuleBody EnumBody ConstructorBody InterfaceBody ArrayInitializer":h8,BlockComment:e=>({from:e.from+2,to:e.to-2})})]}),languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\})$/}}),f9=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],f4=new fR({start:!1,shift:(e,t)=>5==t||6==t||286==t?e:287==t,strict:!1}),f3=new fy((e,t)=>{let{next:n}=e;(125==n||-1==n||t.context)&&t.canShift(284)&&e.acceptToken(284)},{contextual:!0,fallback:!0}),f8=new fy((e,t)=>{let{next:n}=e,r;!(f9.indexOf(n)>-1)&&(47!=n||47!=(r=e.peek(1))&&42!=r)&&125!=n&&59!=n&&-1!=n&&!t.context&&t.canShift(281)&&e.acceptToken(281)},{contextual:!0}),f6=new fy((e,t)=>{let{next:n}=e;if((43==n||45==n)&&(e.advance(),n==e.next)){e.advance();let n=!t.context&&t.canShift(1);e.acceptToken(n?1:2)}},{contextual:!0}),f7=new fy(e=>{for(let t=!1,n=0;;n++){let{next:r}=e;if(r<0){n&&e.acceptToken(282);break}if(96==r){n?e.acceptToken(282):e.acceptToken(283,1);break}if(123==r&&t){1==n?e.acceptToken(3,1):e.acceptToken(282,-1);break}if(10==r&&n){e.advance(),e.acceptToken(282);break}else 92==r&&e.advance();t=36==r,e.advance()}}),me=hh({"get set async static":hI.modifier,"for while do if else switch try catch finally return throw break continue default case":hI.controlKeyword,"in of await yield void typeof delete instanceof":hI.operatorKeyword,"let var const function class extends":hI.definitionKeyword,"import export from":hI.moduleKeyword,"with debugger as new":hI.keyword,TemplateString:hI.special(hI.string),Super:hI.atom,BooleanLiteral:hI.bool,this:hI.self,null:hI.null,Star:hI.modifier,VariableName:hI.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":hI.function(hI.variableName),VariableDefinition:hI.definition(hI.variableName),Label:hI.labelName,PropertyName:hI.propertyName,PrivatePropertyName:hI.special(hI.propertyName),"CallExpression/MemberExpression/PropertyName":hI.function(hI.propertyName),"FunctionDeclaration/VariableDefinition":hI.function(hI.definition(hI.variableName)),"ClassDeclaration/VariableDefinition":hI.definition(hI.className),PropertyDefinition:hI.definition(hI.propertyName),PrivatePropertyDefinition:hI.definition(hI.special(hI.propertyName)),UpdateOp:hI.updateOperator,LineComment:hI.lineComment,BlockComment:hI.blockComment,Number:hI.number,String:hI.string,ArithOp:hI.arithmeticOperator,LogicOp:hI.logicOperator,BitOp:hI.bitwiseOperator,CompareOp:hI.compareOperator,RegExp:hI.regexp,Equals:hI.definitionOperator,"Arrow : Spread":hI.punctuation,"( )":hI.paren,"[ ]":hI.squareBracket,"{ }":hI.brace,"InterpolationStart InterpolationEnd":hI.special(hI.brace),".":hI.derefOperator,", ;":hI.separator,TypeName:hI.typeName,TypeDefinition:hI.definition(hI.typeName),"type enum interface implements namespace module declare":hI.definitionKeyword,"abstract global Privacy readonly override":hI.modifier,"is keyof unique infer":hI.operatorKeyword,JSXAttributeValue:hI.attributeValue,JSXText:hI.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":hI.angleBracket,"JSXIdentifier JSXNameSpacedName":hI.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":hI.attributeName}),mt={__proto__:null,export:18,as:23,from:29,default:32,async:37,function:38,this:48,true:56,false:56,void:66,typeof:70,null:86,super:88,new:122,await:139,yield:141,delete:142,class:152,extends:154,public:197,private:197,protected:197,readonly:199,instanceof:220,in:222,const:224,import:256,keyof:307,unique:311,infer:317,is:351,abstract:371,implements:373,type:375,let:378,var:380,interface:387,enum:391,namespace:397,module:399,declare:403,global:407,for:428,of:437,while:440,with:444,do:448,if:452,else:454,switch:458,case:464,try:470,catch:474,finally:478,return:482,throw:486,break:490,continue:494,debugger:498},mn={__proto__:null,async:109,get:111,set:113,public:161,private:161,protected:161,static:163,abstract:165,override:167,readonly:173,new:355},mr={__proto__:null,"<":129},mi=fP.deserialize({version:14,states:"$4|O`QYOOO'QQ$IfO'#ChO'XOSO'#DVO)dQYO'#D]O)tQYO'#DhO){QYO'#DrO-xQYO'#DxOOQO'#E]'#E]O.]QWO'#E[O.bQWO'#E[OOQ$IU'#Ef'#EfO0aQ$IfO'#ItO2wQ$IfO'#IuO3eQWO'#EzO3jQpO'#FaOOQ$IU'#FS'#FSO3rO!bO'#FSO4QQWO'#FhO5_QWO'#FgOOQ$IU'#Iu'#IuOOQ$IS'#It'#ItOOQQ'#J^'#J^O5dQWO'#HpO5iQ$I[O'#HqOOQQ'#Ih'#IhOOQQ'#Hr'#HrQ`QYOOO){QYO'#DjO5qQWO'#G[O5vQ#tO'#CmO6UQWO'#EZO6aQWO'#EgO6fQ#tO'#FRO7QQWO'#G[O7VQWO'#G`O7bQWO'#G`O7pQWO'#GcO7pQWO'#GdO7pQWO'#GfO5qQWO'#GiO8aQWO'#GlO9oQWO'#CdO:PQWO'#GyO:XQWO'#HPO:XQWO'#HRO`QYO'#HTO:XQWO'#HVO:XQWO'#HYO:^QWO'#H`O:cQ$I]O'#HfO){QYO'#HhO:nQ$I]O'#HjO:yQ$I]O'#HlO5iQ$I[O'#HnO){QYO'#DWOOOS'#Ht'#HtO;UOSO,59qOOQ$IU,59q,59qO=gQbO'#ChO=qQYO'#HuO>UQWO'#IvO@TQbO'#IvO'dQYO'#IvO@[QWO,59wO@rQ&jO'#DbOAkQWO'#E]OAxQWO'#JROBTQWO'#JQOBTQWO'#JQOB]QWO,5:yOBbQWO'#JPOBiQWO'#DyO5vQ#tO'#EZOBwQWO'#EZOCSQ`O'#FROOQ$IU,5:S,5:SOC[QYO,5:SOEYQ$IfO,5:^OEvQWO,5:dOFaQ$I[O'#JOO7VQWO'#I}OFhQWO'#I}OFpQWO,5:xOFuQWO'#I}OGTQYO,5:vOITQWO'#EWOJ_QWO,5:vOKnQWO'#DlOKuQYO'#DqOLPQ&jO,5;PO){QYO,5;POOQQ'#Er'#ErOOQQ'#Et'#EtO){QYO,5;RO){QYO,5;RO){QYO,5;RO){QYO,5;RO){QYO,5;RO){QYO,5;RO){QYO,5;RO){QYO,5;RO){QYO,5;RO){QYO,5;RO){QYO,5;ROOQQ'#Ex'#ExOLXQYO,5;cOOQ$IU,5;h,5;hOOQ$IU,5;i,5;iONXQWO,5;iOOQ$IU,5;j,5;jO){QYO'#IPON^Q$I[O,5[OOQQ'#Ik'#IkOOQQ,5>],5>]OOQQ-E;p-E;pO!+VQ$IfO,5:UOOQ$IS'#Cp'#CpO!+vQ#tO,5Q,5>QO){QYO,5>QO5iQ$I[O,5>SOOQQ,5>U,5>UO!8VQWO,5>UOOQQ,5>W,5>WO!8VQWO,5>WOOQQ,5>Y,5>YO!8[Q`O,59rOOOS-E;r-E;rOOQ$IU1G/]1G/]O!8aQbO,5>aO'dQYO,5>aOOQO,5>f,5>fO!8kQYO'#HuOOQO-E;s-E;sO!8xQWO,5?bO!9QQbO,5?bO!9XQWO,5?lOOQ$IU1G/c1G/cO!9aQpO'#DTOOQO'#Ix'#IxO){QYO'#IxO!:OQpO'#IxO!:mQpO'#DcO!;OQ&jO'#DcO!=ZQYO'#DcO!=bQWO'#IwO!=jQWO,59|O!=oQWO'#EaO!=}QWO'#JSO!>VQWO,5:zO!>mQ&jO'#DcO){QYO,5?mO!>wQWO'#HzOOQO-E;x-E;xO!9XQWO,5?lOOQ$IS1G0e1G0eO!@TQ&jO'#D|OOQ$IU,5:e,5:eO){QYO,5:eOITQWO,5:eO!@[QWO,5:eO:^QWO,5:uO!,rQpO,5:uO!,zQ#tO,5:uO5vQ#tO,5:uOOQ$IU1G/n1G/nOOQ$IU1G0O1G0OOOQ$IS'#EV'#EVO){QYO,5?jO!@gQ$I[O,5?jO!@xQ$I[O,5?jO!APQWO,5?iO!AXQWO'#H|O!APQWO,5?iOOQ$IS1G0d1G0dO7VQWO,5?iOOQ$IU1G0b1G0bO!AsQ$IfO1G0bO!BdQ$IdO,5:rOOQ$IU'#Fq'#FqO!CQQ$IfO'#IqOGTQYO1G0bO!EPQ#tO'#IyO!EZQWO,5:WO!E`QbO'#IzO){QYO'#IzO!EjQWO,5:]OOQ$IU'#DT'#DTOOQ$IU1G0k1G0kO!EoQWO1G0kO!HQQ$IfO1G0mO!HXQ$IfO1G0mO!JlQ$IfO1G0mO!JsQ$IfO1G0mO!LzQ$IfO1G0mO!M_Q$IfO1G0mO#!OQ$IfO1G0mO#!VQ$IfO1G0mO#$jQ$IfO1G0mO#$qQ$IfO1G0mO#&fQ$IfO1G0mO#)`Q7^O'#ChO#+ZQ7^O1G0}O#-UQ7^O'#IuOOQ$IU1G1T1G1TO#-iQ$IfO,5>kOOQ$IS-E;}-E;}O#.YQ$IfO1G0mOOQ$IU1G0m1G0mO#0[Q$IfO1G1QO#0{QpO,5;sO#1QQpO,5;tO#1VQpO'#F[O#1kQWO'#FZOOQO'#JW'#JWOOQO'#H}'#H}O#1pQpO1G1]OOQ$IU1G1]1G1]OOOO1G1f1G1fO#2OQ7^O'#ItO#2YQWO,5;}OLXQYO,5;}OOOO-E;|-E;|OOQ$IU1G1Y1G1YOOQ$IU,5WQWO1G2iOOQQ1G2j1G2jOITQWO1G2jO#>]QWO1G2jO#>eQ&jO'#GhOOQQ1G2l1G2lO!&tQ&jO'#IYO!0OQ`O1G2oOOQQ1G2o1G2oOOQQ,5=Y,5=YO#>mQ#tO,5=[O5qQWO,5=[O#5YQWO,5=_O5_QWO,5=_O!,rQpO,5=_O!,zQ#tO,5=_O5vQ#tO,5=_O#?OQWO'#JaO#?ZQWO,5=`OOQQ1G.j1G.jO#?`Q$I[O1G.jO#?kQWO1G.jO#?pQWO1G.jO5iQ$I[O1G.jO#?xQbO,5@OO#@SQWO,5@OO#@_QYO,5=gO#@fQWO,5=gO7VQWO,5@OOOQQ1G3P1G3PO`QYO1G3POOQQ1G3V1G3VOOQQ1G3X1G3XO:XQWO1G3ZO#@kQYO1G3]O#DfQYO'#H[OOQQ1G3`1G3`O#DsQWO'#HbO:^QWO'#HdOOQQ1G3f1G3fO#D{QYO1G3fO5iQ$I[O1G3lOOQQ1G3n1G3nOOQ$IS'#Fx'#FxO5iQ$I[O1G3pO5iQ$I[O1G3rOOOS1G/^1G/^O#HyQ`O,5aO#I]QWO1G4|O#IeQWO1G5WO#ImQWO,5?dOLXQYO,5:{O7VQWO,5:{O:^QWO,59}OLXQYO,59}O!,rQpO,59}O#IrQ7^O,59}OOQO,5:{,5:{O#I|Q&jO'#HvO#JdQWO,5?cOOQ$IU1G/h1G/hO#JlQ&jO'#H{O#KQQWO,5?nOOQ$IS1G0f1G0fO!;OQ&jO,59}O#KYQbO1G5XO7VQWO,5>fOOQ$IS'#ES'#ESO#KdQ$ItO'#ETO!?{Q&jO'#D}OOQO'#Hy'#HyO#LOQ&jO,5:hOOQ$IU,5:h,5:hO#LVQ&jO'#D}O#LhQ&jO'#D}O#LoQ&jO'#EYO#LrQ&jO'#ETO#MPQ&jO'#ETO!?{Q&jO'#ETO#MdQWO1G0PO#MiQ`O1G0POOQ$IU1G0P1G0PO){QYO1G0POITQWO1G0POOQ$IU1G0a1G0aO:^QWO1G0aO!,rQpO1G0aO!,zQ#tO1G0aO#MpQ$IfO1G5UO){QYO1G5UO#NQQ$I[O1G5UO#NcQWO1G5TO7VQWO,5>hOOQO,5>h,5>hO#NkQWO,5>hOOQO-E;z-E;zO#NcQWO1G5TO#NyQ$IfO,59jO$!xQ$IfO,5m,5>mO$,iQWO,5>mOOQ$IU1G2P1G2PP$,nQWO'#IRPOQ$IU-Eo,5>oOOQO-Ep,5>pOOQO-Ex,5>xOOQO-E<[-E<[OOQ$IU7+&q7+&qO$4uQWO7+(iO5iQ$I[O7+(iO5qQWO7+(iO$4zQWO7+(iO$5PQWO7+'|OOQ$IS,5>r,5>rOOQ$IS-Et,5>tOOQO-EO,5>OOOQQ7+)Q7+)QOOQQ7+)W7+)WOOQQ7+)[7+)[OOQQ7+)^7+)^OOQO1G5O1G5OO$9eQ7^O1G0gO$9oQWO1G0gOOQO1G/i1G/iO$9zQ7^O1G/iO:^QWO1G/iOLXQYO'#DcOOQO,5>b,5>bOOQO-E;t-E;tOOQO,5>g,5>gOOQO-E;y-E;yO!,rQpO1G/iO:^QWO,5:iOOQO,5:o,5:oO){QYO,5:oO$:UQ$I[O,5:oO$:aQ$I[O,5:oO!,rQpO,5:iOOQO-E;w-E;wOOQ$IU1G0S1G0SO!?{Q&jO,5:iO$:oQ&jO,5:iO$;QQ$ItO,5:oO$;lQ&jO,5:iO!?{Q&jO,5:oOOQO,5:t,5:tO$;sQ&jO,5:oO$cOOQO-E;u-E;uO$CfQbO,5>dO){QYO,5>dOOQO-E;v-E;vO$CpQWO1G5QO$CxQ7^O1G0bO$FPQ7^O1G0mO$FWQ7^O1G0mO$HXQ7^O1G0mO$H`Q7^O1G0mO$JTQ7^O1G0mO$JhQ7^O1G0mO$LuQ7^O1G0mO$L|Q7^O1G0mO$N}Q7^O1G0mO% UQ7^O1G0mO%!yQ7^O1G0mO%#^Q$IfO<kOOOO7+'T7+'TOOOS1G/R1G/ROOQ$IU1G4X1G4XOJdQWO7+'zO%([QWO,5>lO5qQWO,5>lOOQO-EnO%)XQWO,5>nOITQWO,5>nOOQO-Ew,5>wO%,kQWO,5>wO%,pQWO,5>wOOQO-EvOOQO-EWQ7^O7+'WO%>eQ7^O7+'XO%>rQWO,5;xOOQO7+&{7+&{O%>wQ#tO<qOOQO-EsOOQO-E{AN>{OOQOAN>uAN>uO%1gQ$IfOAN>{O:^QWOAN>uO){QYOAN>{O!,rQpOAN>uO&%SQ$I[OAN>{O&%_Q7^O<^O!O&OO~Ox&RO!W&]O!X&UO!Y&UO'^$bO~O]&SOk&SO!Q&VO'g&PO!S'kP!S'vP~P@aO!O'sX!R'sX!]'sX!c'sX'p'sX~O!{'sX#W#PX!S'sX~PAYO!{&^O!O'uX!R'uX~O!R&_O!O'tX~O!O&bO~O!{#eO~PAYOS&fO!T&cO!o&eO']$`O~Oc&kO!d$XO']$`O~Ou$nO!d$mO~O!S&lO~P`Ou!{Ov!{Ox!|O!b!yO!d!zO'fQOP!faZ!faj!fa!R!fa!a!fa!j!fa#[!fa#]!fa#^!fa#_!fa#`!fa#a!fa#b!fa#c!fa#e!fa#g!fa#i!fa#j!fa'p!fa'w!fa'x!fa~O_!fa'W!fa!O!fa!c!fan!fa!T!fa%Q!fa!]!fa~PCcO!c&mO~O!]!wO!{&oO'p&nO!R'rX_'rX'W'rX~O!c'rX~PE{O!R&sO!c'qX~O!c&uO~Ox$tO!T$uO#V&vO']$`O~OPTOQTO]cOb!kOc!jOhcOjTOkcOlcOqTOsTOxRO{cO|cO}cO!TSO!_kO!dUO!gTO!hTO!iTO!jTO!kTO!n!iO#t!lO#x^O']9WO'fQO'oYO'|aO~O]#qOh$OOj#rOk#qOl#qOq$POs9kOx#xO!T#yO!_;RO!d#vO#V9tO#t$TO$_9nO$a9qO$d$UO']&zO'f#sO~O#W&|O~O]#qOh$OOj#rOk#qOl#qOq$POs$QOx#xO!T#yO!_$VO!d#vO#V$WO#t$TO$_$RO$a$SO$d$UO']&zO'f#sO~O'a'mP~PJdO!Q'QO!c'nP~P){O'g'SO'oYO~OP9TOQ9TO]cOb;POc!jOhcOj9TOkcOlcOq9TOs9TOxRO{cO|cO}cO!T!bO!_9VO!dUO!g9TO!h9TO!i9TO!j9TO!k9TO!n!iO#t!lO#x^O']'bO'fQO'oYO'|:}O~O!d!zO~O!R#bO_$]a'W$]a!c$]a!O$]a!T$]a%Q$]a!]$]a~O#d'iO~PITO!]'kO!T'yX#w'yX#z'yX$R'yX~Ou'lO~P! POu'lO!T'yX#w'yX#z'yX$R'yX~O!T'nO#w'rO#z'mO$R'sO~O!Q'vO~PLXO#z#fO$R'yO~Ou$eXx$eX!b$eX'p$eX'w$eX'x$eX~OSfX!RfX!{fX'afX'a$eX~P!!iOk'{O~OR'|O'U'}O'V(PO~Ou(ROx(SO'p#[O'w(UO'x(WO~O'a(QO~P!#rO'a(ZO~O]#qOh$OOj#rOk#qOl#qOq$POs9kOx#xO!T#yO!_;RO!d#vO#V9tO#t$TO$_9nO$a9qO$d$UO'f#sO~O!Q(_O']([O!c'}P~P!$aO#W(aO~O!Q(eO'](bO!O(OP~P!$aOj(sOx(kO!W(qO!X(jO!Y(jO!d(hO!x(rO$w(mO'^$bO'g(gO~O!S(pO~P!&XO!b!yOu'eXx'eX'p'eX'w'eX'x'eX!R'eX!{'eX~O'a'eX#m'eX~P!'QOS(vO!{(uO!R'dX'a'dX~O!R(wO'a'cX~O'](yO~O!d)OO~O']&zO~O!d(hO~Ox$tO!Q!rO!T$uO#U!uO#V!rO']$`O!c'qP~O!]!wO#W)SO~OP#^OZ#dOj#ROu!{Ov!{Ox!|O!a#TO!b!yO!d!zO!j#^O#[#PO#]#QO#^#QO#_#QO#`#SO#a#TO#b#TO#c#TO#e#UO#g#WO#i#YO#j#ZO'fQO'p#[O'w!}O'x#OO~O_!^a!R!^a'W!^a!O!^a!c!^an!^a!T!^a%Q!^a!]!^a~P!)cOS)[O!T&cO!o)ZO%Q)YO'b$cO~O']$zO'a'cP~O!])_O!T'`X_'`X!R'`X'W'`X~O!d$XO'b$cO~O!d$XO']$`O'b$cO~O!]!wO#W&|O~O])jO%R)kO'])gO!S(VP~O!R)lO^(UX~O'g'SO~OZ)pO~O^)qO~O!T$kO']$`O'^$bO^(UP~Ox$tO!Q)vO!R&_O!T$uO']$`O!O'tP~O]&YOk&YO!Q)wO'g'SO!S'vP~O!R)xO_(RX'W(RX~O!{)|O'b$cO~OS*PO!T#yO'b$cO~O!T*RO~Ou*TO!TSO~O!n*YO~Oc*_O~O'](yO!S(TP~Oc$iO~O%RtO']$zO~P8tOZ*eO^*dO~OPTOQTO]cObnOcmOhcOjTOkcOlcOqTOsTOxRO{cO|cO}cO!_kO!dUO!gTO!hTO!iTO!jTO!kTO!nlO#x^O%PqO'fQO'oYO'|aO~O!T!bO#t!lO']9WO~P!1RO^*dO_$[O'W$[O~O_*iO#d*kO%T*kO%U*kO~P){O!d%_O~O%t*pO~O!T*rO~O&V*tO&X*uOP&SaQ&SaX&Sa]&Sa_&Sab&Sac&Sah&Saj&Sak&Sal&Saq&Sas&Sax&Sa{&Sa|&Sa}&Sa!T&Sa!_&Sa!d&Sa!g&Sa!h&Sa!i&Sa!j&Sa!k&Sa!n&Sa#d&Sa#t&Sa#x&Sa%P&Sa%R&Sa%T&Sa%U&Sa%X&Sa%Z&Sa%^&Sa%_&Sa%a&Sa%n&Sa%t&Sa%v&Sa%x&Sa%z&Sa%}&Sa&T&Sa&Z&Sa&]&Sa&_&Sa&a&Sa&c&Sa'S&Sa']&Sa'f&Sa'o&Sa'|&Sa!S&Sa%{&Sa`&Sa&Q&Sa~O']*zO~On*}O~O!O&ia!R&ia~P!)cO!Q+RO!O&iX!R&iX~P){O!R%yO!O'ja~O!O'ja~P>^O!R&_O!O'ta~O!RwX!R!ZX!SwX!S!ZX!]wX!]!ZX!d!ZX!{wX'b!ZX~O!]+WO!{+VO!R#TX!R'lX!S#TX!S'lX!]'lX!d'lX'b'lX~O!]+YO!d$XO'b$cO!R!VX!S!VX~O]&QOk&QOx&RO'g(gO~OP9TOQ9TO]cOb;POc!jOhcOj9TOkcOlcOq9TOs9TOxRO{cO|cO}cO!T!bO!_9VO!dUO!g9TO!h9TO!i9TO!j9TO!k9TO!n!iO#t!lO#x^O'fQO'oYO'|:}O~O']9yO~P!;^O!R+^O!S'kX~O!S+`O~O!]+WO!{+VO!R#TX!S#TX~O!R+aO!S'vX~O!S+cO~O]&QOk&QOx&RO'^$bO'g(gO~O!X+dO!Y+dO~P!>[Ox$tO!Q+fO!T$uO']$`O!O&nX!R&nX~O_+jO!W+mO!X+iO!Y+iO!r+qO!s+oO!t+pO!u+nO!x+rO'^$bO'g(gO'o+gO~O!S+lO~P!?]OS+wO!T&cO!o+vO~O!{+}O!R'ra!c'ra_'ra'W'ra~O!]!wO~P!@gO!R&sO!c'qa~Ox$tO!Q,QO!T$uO#U,SO#V,QO']$`O!R&pX!c&pX~O_#Oi!R#Oi'W#Oi!O#Oi!c#Oin#Oi!T#Oi%Q#Oi!]#Oi~P!)cO#W!za!R!za!c!za!{!za!T!za_!za'W!za!O!za~P!#rO#W'eXP'eXZ'eX_'eXj'eXv'eX!a'eX!d'eX!j'eX#['eX#]'eX#^'eX#_'eX#`'eX#a'eX#b'eX#c'eX#e'eX#g'eX#i'eX#j'eX'W'eX'f'eX!c'eX!O'eX!T'eXn'eX%Q'eX!]'eX~P!'QO!R,]O'a'mX~P!#rO'a,_O~O!R,`O!c'nX~P!)cO!c,cO~O!O,dO~OP#^Ou!{Ov!{Ox!|O!b!yO!d!zO!j#^O'fQOZ#Zi_#Zij#Zi!R#Zi!a#Zi#]#Zi#^#Zi#_#Zi#`#Zi#a#Zi#b#Zi#c#Zi#e#Zi#g#Zi#i#Zi#j#Zi'W#Zi'p#Zi'w#Zi'x#Zi!O#Zi!c#Zin#Zi!T#Zi%Q#Zi!]#Zi~O#[#Zi~P!EtO#[#PO~P!EtOP#^Ou!{Ov!{Ox!|O!b!yO!d!zO!j#^O#[#PO#]#QO#^#QO#_#QO'fQOZ#Zi_#Zi!R#Zi!a#Zi#`#Zi#a#Zi#b#Zi#c#Zi#e#Zi#g#Zi#i#Zi#j#Zi'W#Zi'p#Zi'w#Zi'x#Zi!O#Zi!c#Zin#Zi!T#Zi%Q#Zi!]#Zi~Oj#Zi~P!H`Oj#RO~P!H`OP#^Oj#ROu!{Ov!{Ox!|O!b!yO!d!zO!j#^O#[#PO#]#QO#^#QO#_#QO#`#SO'fQO_#Zi!R#Zi#e#Zi#g#Zi#i#Zi#j#Zi'W#Zi'p#Zi'w#Zi'x#Zi!O#Zi!c#Zin#Zi!T#Zi%Q#Zi!]#Zi~OZ#Zi!a#Zi#a#Zi#b#Zi#c#Zi~P!JzOZ#dO!a#TO#a#TO#b#TO#c#TO~P!JzOP#^OZ#dOj#ROu!{Ov!{Ox!|O!a#TO!b!yO!d!zO!j#^O#[#PO#]#QO#^#QO#_#QO#`#SO#a#TO#b#TO#c#TO#e#UO'fQO_#Zi!R#Zi#g#Zi#i#Zi#j#Zi'W#Zi'p#Zi'x#Zi!O#Zi!c#Zin#Zi!T#Zi%Q#Zi!]#Zi~O'w#Zi~P!MrO'w!}O~P!MrOP#^OZ#dOj#ROu!{Ov!{Ox!|O!a#TO!b!yO!d!zO!j#^O#[#PO#]#QO#^#QO#_#QO#`#SO#a#TO#b#TO#c#TO#e#UO#g#WO'fQO'w!}O_#Zi!R#Zi#i#Zi#j#Zi'W#Zi'p#Zi!O#Zi!c#Zin#Zi!T#Zi%Q#Zi!]#Zi~O'x#Zi~P#!^O'x#OO~P#!^OP#^OZ#dOj#ROu!{Ov!{Ox!|O!a#TO!b!yO!d!zO!j#^O#[#PO#]#QO#^#QO#_#QO#`#SO#a#TO#b#TO#c#TO#e#UO#g#WO#i#YO'fQO'w!}O'x#OO~O_#Zi!R#Zi#j#Zi'W#Zi'p#Zi!O#Zi!c#Zin#Zi!T#Zi%Q#Zi!]#Zi~P#$xOP[XZ[Xj[Xu[Xv[Xx[X!a[X!b[X!d[X!j[X!{[X#WdX#[[X#][X#^[X#_[X#`[X#a[X#b[X#c[X#e[X#g[X#i[X#j[X#o[X'f[X'p[X'w[X'x[X!R[X!S[X~O#m[X~P#']OP#^OZ9iOj9^Ou!{Ov!{Ox!|O!a9`O!b!yO!d!zO!j#^O#[9[O#]9]O#^9]O#_9]O#`9_O#a9`O#b9`O#c9`O#e9aO#g9cO#i9eO#j9fO'fQO'p#[O'w!}O'x#OO~O#m,fO~P#)gOP'iXZ'iXj'iXu'iXv'iXx'iX!a'iX!b'iX!d'iX!j'iX#['iX#]'iX#^'iX#_'iX#`'iX#a'iX#b'iX#e'iX#g'iX#i'iX#j'iX'f'iX'p'iX'w'iX'x'iX!R'iX~O!{9jO#o9jO#c'iX#m'iX!S'iX~P#+bO_&sa!R&sa'W&sa!c&san&sa!O&sa!T&sa%Q&sa!]&sa~P!)cOP#ZiZ#Zi_#Zij#Ziv#Zi!R#Zi!a#Zi!b#Zi!d#Zi!j#Zi#[#Zi#]#Zi#^#Zi#_#Zi#`#Zi#a#Zi#b#Zi#c#Zi#e#Zi#g#Zi#i#Zi#j#Zi'W#Zi'f#Zi!O#Zi!c#Zin#Zi!T#Zi%Q#Zi!]#Zi~P!#rO_#ni!R#ni'W#ni!O#ni!c#nin#ni!T#ni%Q#ni!]#ni~P!)cO#z,hO~O#z,iO~O!]'kO!{,jO!T$OX#w$OX#z$OX$R$OX~O!Q,kO~O!T'nO#w,mO#z'mO$R,nO~O!R9gO!S'hX~P#)gO!S,oO~O$R,qO~OR'|O'U'}O'V,tO~O],wOk,wO!O,xO~O!RdX!]dX!cdX!c$eX'pdX~P!!iO!c-OO~P!#rO!R-PO!]!wO'p&nO!c'}X~O!c-UO~O!O$eX!R$eX!]$lX~P!!iO!R-WO!O(OX~P!#rO!]-YO~O!O-[O~O!Q(_O']$`O!c'}P~Oj-`O!]!wO!d$XO'b$cO'p&nO~O!])_O~O_$[O!R-eO'W$[O~O!S-gO~P!&XO!X-hO!Y-hO'^$bO'g(gO~Ox-jO'g(gO~O!x-kO~O']$zO!R&xX'a&xX~O!R(wO'a'ca~Ou-pOv-pOx-qO'pra'wra'xra!Rra!{ra~O'ara#mra~P#6qOu(ROx(SO'p$^a'w$^a'x$^a!R$^a!{$^a~O'a$^a#m$^a~P#7gOu(ROx(SO'p$`a'w$`a'x$`a!R$`a!{$`a~O'a$`a#m$`a~P#8YO]-rO~O#W-sO~O'a$na!R$na#m$na!{$na~P!#rO#W-vO~OS.PO!T&cO!o.OO%Q-}O~O'a.QO~O]#qOj#rOk#qOl#qOq$POs9kOx#xO!T#yO!_;RO!d#vO#V9tO#t$TO$_9nO$a9qO$d$UO'f#sO~Oh.SO'].RO~P#:PO!])_O!T'`a_'`a!R'`a'W'`a~O#W.YO~OZ[X!RdX!SdX~O!R.ZO!S(VX~O!S.]O~OZ.^O~O].`O'])gO~O!T$kO']$`O^'QX!R'QX~O!R)lO^(Ua~O!c.cO~P!)cO].eO~OZ.fO~O^.gO~OS.PO!T&cO!o.OO%Q-}O'b$cO~O!R)xO_(Ra'W(Ra~O!{.mO~OS.pO!T#yO~O'g'SO!S(SP~OS.zO!T.vO!o.yO%Q.xO'b$cO~OZ/UO!R/SO!S(TX~O!S/VO~O^/XO_$[O'W$[O~O]/YO~O]/ZO'](yO~O#c/[O%r/]O~P0zO!{#eO#c/[O%r/]O~O_/^O~P){O_/`O~O%{/dOP%yiQ%yiX%yi]%yi_%yib%yic%yih%yij%yik%yil%yiq%yis%yix%yi{%yi|%yi}%yi!T%yi!_%yi!d%yi!g%yi!h%yi!i%yi!j%yi!k%yi!n%yi#d%yi#t%yi#x%yi%P%yi%R%yi%T%yi%U%yi%X%yi%Z%yi%^%yi%_%yi%a%yi%n%yi%t%yi%v%yi%x%yi%z%yi%}%yi&T%yi&Z%yi&]%yi&_%yi&a%yi&c%yi'S%yi']%yi'f%yi'o%yi'|%yi!S%yi`%yi&Q%yi~O`/jO!S/hO&Q/iO~P`O!TSO!d/lO~O&X*uOP&SiQ&SiX&Si]&Si_&Sib&Sic&Sih&Sij&Sik&Sil&Siq&Sis&Six&Si{&Si|&Si}&Si!T&Si!_&Si!d&Si!g&Si!h&Si!i&Si!j&Si!k&Si!n&Si#d&Si#t&Si#x&Si%P&Si%R&Si%T&Si%U&Si%X&Si%Z&Si%^&Si%_&Si%a&Si%n&Si%t&Si%v&Si%x&Si%z&Si%}&Si&T&Si&Z&Si&]&Si&_&Si&a&Si&c&Si'S&Si']&Si'f&Si'o&Si'|&Si!S&Si%{&Si`&Si&Q&Si~O!R#bOn$]a~O!O&ii!R&ii~P!)cO!R%yO!O'ji~O!R&_O!O'ti~O!O/rO~O!R!Va!S!Va~P#)gO]&QOk&QO!Q/xO'g(gO!R&jX!S&jX~P@aO!R+^O!S'ka~O]&YOk&YO!Q)wO'g'SO!R&oX!S&oX~O!R+aO!S'va~O!O'ui!R'ui~P!)cO_$[O!]!wO!d$XO!j0SO!{0QO'W$[O'b$cO'p&nO~O!S0VO~P!?]O!X0WO!Y0WO'^$bO'g(gO'o+gO~O!W0XO~P#LVO!TSO!W0XO!u0ZO!x0[O~P#LVO!W0XO!s0^O!t0^O!u0ZO!x0[O~P#LVO!T&cO~O!T&cO~P!#rO!R'ri!c'ri_'ri'W'ri~P!)cO!{0gO!R'ri!c'ri_'ri'W'ri~O!R&sO!c'qi~Ox$tO!T$uO#V0iO']$`O~O#WraPraZra_rajra!ara!bra!dra!jra#[ra#]ra#^ra#_ra#`ra#ara#bra#cra#era#gra#ira#jra'Wra'fra!cra!Ora!Tranra%Qra!]ra~P#6qO#W$^aP$^aZ$^a_$^aj$^av$^a!a$^a!b$^a!d$^a!j$^a#[$^a#]$^a#^$^a#_$^a#`$^a#a$^a#b$^a#c$^a#e$^a#g$^a#i$^a#j$^a'W$^a'f$^a!c$^a!O$^a!T$^an$^a%Q$^a!]$^a~P#7gO#W$`aP$`aZ$`a_$`aj$`av$`a!a$`a!b$`a!d$`a!j$`a#[$`a#]$`a#^$`a#_$`a#`$`a#a$`a#b$`a#c$`a#e$`a#g$`a#i$`a#j$`a'W$`a'f$`a!c$`a!O$`a!T$`an$`a%Q$`a!]$`a~P#8YO#W$naP$naZ$na_$naj$nav$na!R$na!a$na!b$na!d$na!j$na#[$na#]$na#^$na#_$na#`$na#a$na#b$na#c$na#e$na#g$na#i$na#j$na'W$na'f$na!c$na!O$na!T$na!{$nan$na%Q$na!]$na~P!#rO_#Oq!R#Oq'W#Oq!O#Oq!c#Oqn#Oq!T#Oq%Q#Oq!]#Oq~P!)cO!R&kX'a&kX~PJdO!R,]O'a'ma~O!Q0qO!R&lX!c&lX~P){O!R,`O!c'na~O!R,`O!c'na~P!)cO#m!fa!S!fa~PCcO#m!^a!R!^a!S!^a~P#)gO!T1UO#x^O$P1VO~O!S1ZO~On1[O~P!#rO_$Yq!R$Yq'W$Yq!O$Yq!c$Yqn$Yq!T$Yq%Q$Yq!]$Yq~P!)cO!O1]O~O],wOk,wO~Ou(ROx(SO'x(WO'p$xi'w$xi!R$xi!{$xi~O'a$xi#m$xi~P$,vOu(ROx(SO'p$zi'w$zi'x$zi!R$zi!{$zi~O'a$zi#m$zi~P$-iO#m1^O~P!#rO!Q1`O']$`O!R&tX!c&tX~O!R-PO!c'}a~O!R-PO!]!wO!c'}a~O!R-PO!]!wO'p&nO!c'}a~O'a$gi!R$gi#m$gi!{$gi~P!#rO!Q1gO'](bO!O&vX!R&vX~P!$aO!R-WO!O(Oa~O!R-WO!O(Oa~P!#rO!]!wO~O!]!wO#c1oO~Oj1rO!]!wO'p&nO~O!R'di'a'di~P!#rO!{1uO!R'di'a'di~P!#rO!c1xO~O_$Zq!R$Zq'W$Zq!O$Zq!c$Zqn$Zq!T$Zq%Q$Zq!]$Zq~P!)cO!R1|O!T(PX~P!#rO!T&cO%Q2PO~O!T&cO%Q2PO~P!#rO!T$eX$u[X_$eX!R$eX'W$eX~P!!iO$u2TOugXxgX!TgX'pgX'wgX'xgX_gX!RgX'WgX~O$u2TO~O]2ZO%R2[O'])gO!R'PX!S'PX~O!R.ZO!S(Va~OZ2`O~O^2aO~O]2dO~OS2fO!T&cO!o2eO%Q2PO~O_$[O'W$[O~P!#rO!T#yO~P!#rO!R2kO!{2mO!S(SX~O!S2nO~Ox;]O!W2wO!X2pO!Y2pO!r2vO!s2uO!t2uO!x2tO'^$bO'g(gO'o+gO~O!S2sO~P$6QOS3OO!T.vO!o2}O%Q2|O~OS3OO!T.vO!o2}O%Q2|O'b$cO~O'](yO!R'OX!S'OX~O!R/SO!S(Ta~O]3YO'g3XO~O]3ZO~O^3]O~O!c3`O~P){O_3bO~O_3bO~P){O#c3dO%r3eO~PE{O`/jO!S3iO&Q/iO~P`O!]3kO~O!R#Ti!S#Ti~P#)gO!{3mO!R#Ti!S#Ti~O!R!Vi!S!Vi~P#)gO_$[O!{3tO'W$[O~O_$[O!]!wO!{3tO'W$[O~O!X3xO!Y3xO'^$bO'g(gO'o+gO~O_$[O!]!wO!d$XO!j3yO!{3tO'W$[O'b$cO'p&nO~O!W3zO~P$:oO!W3zO!u3}O!x4OO~P$:oO_$[O!]!wO!j3yO!{3tO'W$[O'p&nO~O!R'rq!c'rq_'rq'W'rq~P!)cO!R&sO!c'qq~O#W$xiP$xiZ$xi_$xij$xiv$xi!a$xi!b$xi!d$xi!j$xi#[$xi#]$xi#^$xi#_$xi#`$xi#a$xi#b$xi#c$xi#e$xi#g$xi#i$xi#j$xi'W$xi'f$xi!c$xi!O$xi!T$xin$xi%Q$xi!]$xi~P$,vO#W$ziP$ziZ$zi_$zij$ziv$zi!a$zi!b$zi!d$zi!j$zi#[$zi#]$zi#^$zi#_$zi#`$zi#a$zi#b$zi#c$zi#e$zi#g$zi#i$zi#j$zi'W$zi'f$zi!c$zi!O$zi!T$zin$zi%Q$zi!]$zi~P$-iO#W$giP$giZ$gi_$gij$giv$gi!R$gi!a$gi!b$gi!d$gi!j$gi#[$gi#]$gi#^$gi#_$gi#`$gi#a$gi#b$gi#c$gi#e$gi#g$gi#i$gi#j$gi'W$gi'f$gi!c$gi!O$gi!T$gi!{$gin$gi%Q$gi!]$gi~P!#rO!R&ka'a&ka~P!#rO!R&la!c&la~P!)cO!R,`O!c'ni~O#m#Oi!R#Oi!S#Oi~P#)gOP#^Ou!{Ov!{Ox!|O!b!yO!d!zO!j#^O'fQOZ#Zij#Zi!a#Zi#]#Zi#^#Zi#_#Zi#`#Zi#a#Zi#b#Zi#c#Zi#e#Zi#g#Zi#i#Zi#j#Zi#m#Zi'p#Zi'w#Zi'x#Zi!R#Zi!S#Zi~O#[#Zi~P$DVO#[9[O~P$DVOP#^Ou!{Ov!{Ox!|O!b!yO!d!zO!j#^O#[9[O#]9]O#^9]O#_9]O'fQOZ#Zi!a#Zi#`#Zi#a#Zi#b#Zi#c#Zi#e#Zi#g#Zi#i#Zi#j#Zi#m#Zi'p#Zi'w#Zi'x#Zi!R#Zi!S#Zi~Oj#Zi~P$F_Oj9^O~P$F_OP#^Oj9^Ou!{Ov!{Ox!|O!b!yO!d!zO!j#^O#[9[O#]9]O#^9]O#_9]O#`9_O'fQO#e#Zi#g#Zi#i#Zi#j#Zi#m#Zi'p#Zi'w#Zi'x#Zi!R#Zi!S#Zi~OZ#Zi!a#Zi#a#Zi#b#Zi#c#Zi~P$HgOZ9iO!a9`O#a9`O#b9`O#c9`O~P$HgOP#^OZ9iOj9^Ou!{Ov!{Ox!|O!a9`O!b!yO!d!zO!j#^O#[9[O#]9]O#^9]O#_9]O#`9_O#a9`O#b9`O#c9`O#e9aO'fQO#g#Zi#i#Zi#j#Zi#m#Zi'p#Zi'x#Zi!R#Zi!S#Zi~O'w#Zi~P$J{O'w!}O~P$J{OP#^OZ9iOj9^Ou!{Ov!{Ox!|O!a9`O!b!yO!d!zO!j#^O#[9[O#]9]O#^9]O#_9]O#`9_O#a9`O#b9`O#c9`O#e9aO#g9cO'fQO'w!}O#i#Zi#j#Zi#m#Zi'p#Zi!R#Zi!S#Zi~O'x#Zi~P$MTO'x#OO~P$MTOP#^OZ9iOj9^Ou!{Ov!{Ox!|O!a9`O!b!yO!d!zO!j#^O#[9[O#]9]O#^9]O#_9]O#`9_O#a9`O#b9`O#c9`O#e9aO#g9cO#i9eO'fQO'w!}O'x#OO~O#j#Zi#m#Zi'p#Zi!R#Zi!S#Zi~P% ]O_#ky!R#ky'W#ky!O#ky!c#kyn#ky!T#ky%Q#ky!]#ky~P!)cOP#ZiZ#Zij#Ziv#Zi!a#Zi!b#Zi!d#Zi!j#Zi#[#Zi#]#Zi#^#Zi#_#Zi#`#Zi#a#Zi#b#Zi#c#Zi#e#Zi#g#Zi#i#Zi#j#Zi#m#Zi'f#Zi!R#Zi!S#Zi~P!#rO!b!yOu'eXx'eX'p'eX'w'eX'x'eX!S'eX~OP'eXZ'eXj'eXv'eX!a'eX!d'eX!j'eX#['eX#]'eX#^'eX#_'eX#`'eX#a'eX#b'eX#c'eX#e'eX#g'eX#i'eX#j'eX#m'eX'f'eX!R'eX~P%%mO#m#ni!R#ni!S#ni~P#)gO!S4`O~O!R&sa!S&sa~P#)gO!]!wO'p&nO!R&ta!c&ta~O!R-PO!c'}i~O!R-PO!]!wO!c'}i~O!O&va!R&va~P!#rO!]4gO~O!R-WO!O(Oi~P!#rO!R-WO!O(Oi~O!O4kO~O!]!wO#c4pO~Oj4qO!]!wO'p&nO~O!O4sO~O'a$iq!R$iq#m$iq!{$iq~P!#rO_$Zy!R$Zy'W$Zy!O$Zy!c$Zyn$Zy!T$Zy%Q$Zy!]$Zy~P!)cO!R1|O!T(Pa~O!T&cO%Q4xO~O!T&cO%Q4xO~P!#rO_#Oy!R#Oy'W#Oy!O#Oy!c#Oyn#Oy!T#Oy%Q#Oy!]#Oy~P!)cOZ4{O~O]4}O'])gO~O!R.ZO!S(Vi~O]5QO~O^5RO~O'g'SO!R&{X!S&{X~O!R2kO!S(Sa~O!S5`O~P$6QOx;^O'g(gO'o+gO~O!W5cO!X5bO!Y5bO!x0[O'^$bO'g(gO'o+gO~O!s5dO!t5dO~P%.RO!X5bO!Y5bO'^$bO'g(gO'o+gO~O!T.vO~O!T.vO%Q5fO~O!T.vO%Q5fO~P!#rOS5kO!T.vO!o5jO%Q5fO~OZ5pO!R'Oa!S'Oa~O!R/SO!S(Ti~O]5sO~O!c5tO~O!c5uO~O!c5vO~O!c5vO~P){O_5xO~O!]5{O~O!c5|O~O!R'ui!S'ui~P#)gO_$[O'W$[O~P!)cO_$[O!{6RO'W$[O~O_$[O!]!wO!{6RO'W$[O~O!X6WO!Y6WO'^$bO'g(gO'o+gO~O_$[O!]!wO!j6XO!{6RO'W$[O'p&nO~O!d$XO'b$cO~P%2mO!W6YO~P%2[O!R'ry!c'ry_'ry'W'ry~P!)cO#W$iqP$iqZ$iq_$iqj$iqv$iq!R$iq!a$iq!b$iq!d$iq!j$iq#[$iq#]$iq#^$iq#_$iq#`$iq#a$iq#b$iq#c$iq#e$iq#g$iq#i$iq#j$iq'W$iq'f$iq!c$iq!O$iq!T$iq!{$iqn$iq%Q$iq!]$iq~P!#rO!R&li!c&li~P!)cO#m#Oq!R#Oq!S#Oq~P#)gOu-pOv-pOx-qO'pra'wra'xra!Sra~OPraZrajra!ara!bra!dra!jra#[ra#]ra#^ra#_ra#`ra#ara#bra#cra#era#gra#ira#jra#mra'fra!Rra~P%6eOu(ROx(SO'p$^a'w$^a'x$^a!S$^a~OP$^aZ$^aj$^av$^a!a$^a!b$^a!d$^a!j$^a#[$^a#]$^a#^$^a#_$^a#`$^a#a$^a#b$^a#c$^a#e$^a#g$^a#i$^a#j$^a#m$^a'f$^a!R$^a~P%8fOu(ROx(SO'p$`a'w$`a'x$`a!S$`a~OP$`aZ$`aj$`av$`a!a$`a!b$`a!d$`a!j$`a#[$`a#]$`a#^$`a#_$`a#`$`a#a$`a#b$`a#c$`a#e$`a#g$`a#i$`a#j$`a#m$`a'f$`a!R$`a~P%:gOP$naZ$naj$nav$na!a$na!b$na!d$na!j$na#[$na#]$na#^$na#_$na#`$na#a$na#b$na#c$na#e$na#g$na#i$na#j$na#m$na'f$na!R$na!S$na~P!#rO#m$Yq!R$Yq!S$Yq~P#)gO#m$Zq!R$Zq!S$Zq~P#)gO!S6dO~O'a$|y!R$|y#m$|y!{$|y~P!#rO!]!wO!R&ti!c&ti~O!]!wO'p&nO!R&ti!c&ti~O!R-PO!c'}q~O!O&vi!R&vi~P!#rO!R-WO!O(Oq~O!O6jO~P!#rO!O6jO~O!R'dy'a'dy~P!#rO!R&ya!T&ya~P!#rO!T$tq_$tq!R$tq'W$tq~P!#rOZ6qO~O!R.ZO!S(Vq~O]6tO~O!T&cO%Q6uO~O!T&cO%Q6uO~P!#rO!{6vO!R&{a!S&{a~O!R2kO!S(Si~P#)gO!X6|O!Y6|O'^$bO'g(gO'o+gO~O!W7OO!x4OO~P%BkO!T.vO%Q7RO~O!T.vO%Q7RO~P!#rO]7YO'g7XO~O!R/SO!S(Tq~O!c7[O~O!c7[O~P){O!c7^O~O!c7_O~O!R#Ty!S#Ty~P#)gO_$[O!{7eO'W$[O~O_$[O!]!wO!{7eO'W$[O~O!X7hO!Y7hO'^$bO'g(gO'o+gO~O_$[O!]!wO!j7iO!{7eO'W$[O'p&nO~O#W$|yP$|yZ$|y_$|yj$|yv$|y!R$|y!a$|y!b$|y!d$|y!j$|y#[$|y#]$|y#^$|y#_$|y#`$|y#a$|y#b$|y#c$|y#e$|y#g$|y#i$|y#j$|y'W$|y'f$|y!c$|y!O$|y!T$|y!{$|yn$|y%Q$|y!]$|y~P!#rO#m#ky!R#ky!S#ky~P#)gOP$giZ$gij$giv$gi!a$gi!b$gi!d$gi!j$gi#[$gi#]$gi#^$gi#_$gi#`$gi#a$gi#b$gi#c$gi#e$gi#g$gi#i$gi#j$gi#m$gi'f$gi!R$gi!S$gi~P!#rOu(ROx(SO'x(WO'p$xi'w$xi!S$xi~OP$xiZ$xij$xiv$xi!a$xi!b$xi!d$xi!j$xi#[$xi#]$xi#^$xi#_$xi#`$xi#a$xi#b$xi#c$xi#e$xi#g$xi#i$xi#j$xi#m$xi'f$xi!R$xi~P%JROu(ROx(SO'p$zi'w$zi'x$zi!S$zi~OP$ziZ$zij$ziv$zi!a$zi!b$zi!d$zi!j$zi#[$zi#]$zi#^$zi#_$zi#`$zi#a$zi#b$zi#c$zi#e$zi#g$zi#i$zi#j$zi#m$zi'f$zi!R$zi~P%LSO#m$Zy!R$Zy!S$Zy~P#)gO#m#Oy!R#Oy!S#Oy~P#)gO!]!wO!R&tq!c&tq~O!R-PO!c'}y~O!O&vq!R&vq~P!#rO!O7mO~P!#rO!R.ZO!S(Vy~O!R2kO!S(Sq~O!X7yO!Y7yO'^$bO'g(gO'o+gO~O!T.vO%Q7|O~O!T.vO%Q7|O~P!#rO!c8PO~O_$[O!{8UO'W$[O~O_$[O!]!wO!{8UO'W$[O~OP$iqZ$iqj$iqv$iq!a$iq!b$iq!d$iq!j$iq#[$iq#]$iq#^$iq#_$iq#`$iq#a$iq#b$iq#c$iq#e$iq#g$iq#i$iq#j$iq#m$iq'f$iq!R$iq!S$iq~P!#rO!R&{q!S&{q~P#)gO_$[O!{8hO'W$[O~OP$|yZ$|yj$|yv$|y!a$|y!b$|y!d$|y!j$|y#[$|y#]$|y#^$|y#_$|y#`$|y#a$|y#b$|y#c$|y#e$|y#g$|y#i$|y#j$|y#m$|y'f$|y!R$|y!S$|y~P!#rO!S!za!W!za!X!za!Y!za!r!za!s!za!t!za!x!za'^!za'g!za'o!za~P!#rO!W'eX!X'eX!Y'eX!r'eX!s'eX!t'eX!x'eX'^'eX'g'eX'o'eX~P%%mO!Wra!Xra!Yra!rra!sra!tra!xra'^ra'gra'ora~P%6eO!W$^a!X$^a!Y$^a!r$^a!s$^a!t$^a!x$^a'^$^a'g$^a'o$^a~P%8fO!W$`a!X$`a!Y$`a!r$`a!s$`a!t$`a!x$`a'^$`a'g$`a'o$`a~P%:gO!S$na!W$na!X$na!Y$na!r$na!s$na!t$na!x$na'^$na'g$na'o$na~P!#rO!W$xi!X$xi!Y$xi!r$xi!s$xi!t$xi!x$xi'^$xi'g$xi'o$xi~P%JRO!W$zi!X$zi!Y$zi!r$zi!s$zi!t$zi!x$zi'^$zi'g$zi'o$zi~P%LSO!S$gi!W$gi!X$gi!Y$gi!r$gi!s$gi!t$gi!x$gi'^$gi'g$gi'o$gi~P!#rO!S$iq!W$iq!X$iq!Y$iq!r$iq!s$iq!t$iq!x$iq'^$iq'g$iq'o$iq~P!#rO!S$|y!W$|y!X$|y!Y$|y!r$|y!s$|y!t$|y!x$|y'^$|y'g$|y'o$|y~P!#rOn'hX~P.jOn[X!O[X!c[X%r[X!T[X%Q[X!][X~P$zO!]dX!c[X!cdX'pdX~P;aOP9TOQ9TO]cOb;POc!jOhcOj9TOkcOlcOq9TOs9TOxRO{cO|cO}cO!TSO!_9VO!dUO!g9TO!h9TO!i9TO!j9TO!k9TO!n!iO#t!lO#x^O']'bO'fQO'oYO'|:}O~O]#qOh$OOj#rOk#qOl#qOq$POs9lOx#xO!T#yO!_;SO!d#vO#V9uO#t$TO$_9oO$a9rO$d$UO']&zO'f#sO~O!R9gO!S$]a~O]#qOh$OOj#rOk#qOl#qOq$POs9mOx#xO!T#yO!_;TO!d#vO#V9vO#t$TO$_9pO$a9sO$d$UO']&zO'f#sO~O#d'iO~P&3xO!S[X!SdX~P;aO!]9ZO~O#W9YO~O!]!wO#W9YO~O!{9jO~O#c9`O~O!{9wO!R'uX!S'uX~O!{9jO!R'sX!S'sX~O#W9xO~O'a9zO~P!#rO#W:RO~O#W:SO~O#W:TO~O!]!wO#W:UO~O!]!wO#W9xO~O#m:VO~P#)gO#W:WO~O#W:XO~O#W:YO~O#W:ZO~O#W:[O~O#m:]O~P!#rO#m:^O~P!#rO#m:_O~P!#rO!O:`O~O!O:aO~P!#rO!O:aO~O!O:bO~P!#rO!]!wO#c;YO~O!]!wO#c;[O~O#x~!b!r!t!u#U#V'|$_$a$d$u%P%Q%R%X%Z%^%_%a%c~UT#x'|#]}'Y'Z#z'Y']'g~",goto:"#Hc(ZPPPPPPPP([P(lP*`PPPP-zPP.a3s5g5zP5zPPP5zP7t5zP5zP7xPP8OP8dk|}?O}!O>k!O!P?`!P!QCl!Q!R!0[!R![!1q![!]!7s!]!^!8V!^!_!8g!_!`!9d!`!a!:[!a!b!U#R#S2`#S#T!>i#T#o2`#o#p!>y#p#q!?O#q#r!?f#r#s!?x#s$f%T$f$g%c$g#BY2`#BY#BZ!@Y#BZ$IS2`$IS$I_!@Y$I_$I|2`$I|$I}!Bq$I}$JO!Bq$JO$JT2`$JT$JU!@Y$JU$KV2`$KV$KW!@Y$KW&FU2`&FU&FV!@Y&FV?HT2`?HT?HU!@Y?HU~2`W%YR$UWO!^%T!_#o%T#p~%T7Z%jg$UW'Y7ROX%TXY%cYZ%TZ[%c[p%Tpq%cq!^%T!_#o%T#p$f%T$f$g%c$g#BY%T#BY#BZ%c#BZ$IS%T$IS$I_%c$I_$JT%T$JT$JU%c$JU$KV%T$KV$KW%c$KW&FU%T&FU&FV%c&FV?HT%T?HT?HU%c?HU~%T7Z'YR$UW'Z7RO!^%T!_#o%T#p~%T$T'jS$UW!j#{O!^%T!_!`'v!`#o%T#p~%T$O'}S#e#v$UWO!^%T!_!`(Z!`#o%T#p~%T$O(bR#e#v$UWO!^%T!_#o%T#p~%T'u(rZ$UW]!ROY(kYZ)eZr(krs*rs!^(k!^!_+U!_#O(k#O#P-b#P#o(k#o#p+U#p~(k&r)jV$UWOr)ers*Ps!^)e!^!_*a!_#o)e#o#p*a#p~)e&r*WR$P&j$UWO!^%T!_#o%T#p~%T&j*dROr*ars*ms~*a&j*rO$P&j'u*{R$P&j$UW]!RO!^%T!_#o%T#p~%T'm+ZV]!ROY+UYZ*aZr+Urs+ps#O+U#O#P+w#P~+U'm+wO$P&j]!R'm+zROr+Urs,Ts~+U'm,[U$P&j]!ROY,nZr,nrs-Vs#O,n#O#P-[#P~,n!R,sU]!ROY,nZr,nrs-Vs#O,n#O#P-[#P~,n!R-[O]!R!R-_PO~,n'u-gV$UWOr(krs-|s!^(k!^!_+U!_#o(k#o#p+U#p~(k'u.VZ$P&j$UW]!ROY.xYZ%TZr.xrs/rs!^.x!^!_,n!_#O.x#O#P0S#P#o.x#o#p,n#p~.x!Z/PZ$UW]!ROY.xYZ%TZr.xrs/rs!^.x!^!_,n!_#O.x#O#P0S#P#o.x#o#p,n#p~.x!Z/yR$UW]!RO!^%T!_#o%T#p~%T!Z0XT$UWO!^.x!^!_,n!_#o.x#o#p,n#p~.x2k0mZ$UWOt%Ttu1`u!^%T!_!c%T!c!}1`!}#R%T#R#S1`#S#T%T#T#o1`#p$g%T$g~1`2k1g]$UW'o2cOt%Ttu1`u!Q%T!Q![1`![!^%T!_!c%T!c!}1`!}#R%T#R#S1`#S#T%T#T#o1`#p$g%T$g~1`7Z2k_$UW#zS']%k'g2bOt%Ttu2`u}%T}!O3j!O!Q%T!Q![2`![!^%T!_!c%T!c!}2`!}#R%T#R#S2`#S#T%T#T#o2`#p$g%T$g~2`[3q_$UW#zSOt%Ttu3ju}%T}!O3j!O!Q%T!Q![3j![!^%T!_!c%T!c!}3j!}#R%T#R#S3j#S#T%T#T#o3j#p$g%T$g~3j$O4wS#^#v$UWO!^%T!_!`5T!`#o%T#p~%T$O5[R$UW#o#vO!^%T!_#o%T#p~%T6d5lU'x6[$UWOv%Tvw6Ow!^%T!_!`5T!`#o%T#p~%T$O6VS$UW#i#vO!^%T!_!`5T!`#o%T#p~%T'u6jZ$UW]!ROY6cYZ7]Zw6cwx*rx!^6c!^!_8T!_#O6c#O#P:T#P#o6c#o#p8T#p~6c&r7bV$UWOw7]wx*Px!^7]!^!_7w!_#o7]#o#p7w#p~7]&j7zROw7wwx*mx~7w'm8YV]!ROY8TYZ7wZw8Twx+px#O8T#O#P8o#P~8T'm8rROw8Twx8{x~8T'm9SU$P&j]!ROY9fZw9fwx-Vx#O9f#O#P9}#P~9f!R9kU]!ROY9fZw9fwx-Vx#O9f#O#P9}#P~9f!R:QPO~9f'u:YV$UWOw6cwx:ox!^6c!^!_8T!_#o6c#o#p8T#p~6c'u:xZ$P&j$UW]!ROY;kYZ%TZw;kwx/rx!^;k!^!_9f!_#O;k#O#PW{!^%T!_!`5T!`#o%T#p~%T$O>_S#[#v$UWO!^%T!_!`5T!`#o%T#p~%T$u>rSj$m$UWO!^%T!_!`5T!`#o%T#p~%T&i?VR!R&a$UWO!^%T!_#o%T#p~%T7Z?gVu6`$UWO!O%T!O!P?|!P!Q%T!Q![@r![!^%T!_#o%T#p~%Ty@RT$UWO!O%T!O!P@b!P!^%T!_#o%T#p~%Ty@iR!Qq$UWO!^%T!_#o%T#p~%Ty@yZ$UWkqO!Q%T!Q![@r![!^%T!_!g%T!g!hAl!h#R%T#R#S@r#S#X%T#X#YAl#Y#o%T#p~%TyAqZ$UWO{%T{|Bd|}%T}!OBd!O!Q%T!Q![CO![!^%T!_#R%T#R#SCO#S#o%T#p~%TyBiV$UWO!Q%T!Q![CO![!^%T!_#R%T#R#SCO#S#o%T#p~%TyCVV$UWkqO!Q%T!Q![CO![!^%T!_#R%T#R#SCO#S#o%T#p~%T7ZCs`$UW#]#vOYDuYZ%TZzDuz{Jl{!PDu!P!Q!-e!Q!^Du!^!_Fx!_!`!.^!`!a!/]!a!}Du!}#OHq#O#PJQ#P#oDu#o#pFx#p~DuXD|[$UW}POYDuYZ%TZ!PDu!P!QEr!Q!^Du!^!_Fx!_!}Du!}#OHq#O#PJQ#P#oDu#o#pFx#p~DuXEy_$UW}PO!^%T!_#Z%T#Z#[Er#[#]%T#]#^Er#^#a%T#a#bEr#b#g%T#g#hEr#h#i%T#i#jEr#j#m%T#m#nEr#n#o%T#p~%TPF}V}POYFxZ!PFx!P!QGd!Q!}Fx!}#OG{#O#PHh#P~FxPGiU}P#Z#[Gd#]#^Gd#a#bGd#g#hGd#i#jGd#m#nGdPHOTOYG{Z#OG{#O#PH_#P#QFx#Q~G{PHbQOYG{Z~G{PHkQOYFxZ~FxXHvY$UWOYHqYZ%TZ!^Hq!^!_G{!_#OHq#O#PIf#P#QDu#Q#oHq#o#pG{#p~HqXIkV$UWOYHqYZ%TZ!^Hq!^!_G{!_#oHq#o#pG{#p~HqXJVV$UWOYDuYZ%TZ!^Du!^!_Fx!_#oDu#o#pFx#p~Du7ZJs^$UW}POYJlYZKoZzJlz{NQ{!PJl!P!Q!,R!Q!^Jl!^!_!!]!_!}Jl!}#O!'|#O#P!+a#P#oJl#o#p!!]#p~Jl7ZKtV$UWOzKoz{LZ{!^Ko!^!_M]!_#oKo#o#pM]#p~Ko7ZL`X$UWOzKoz{LZ{!PKo!P!QL{!Q!^Ko!^!_M]!_#oKo#o#pM]#p~Ko7ZMSR$UWU7RO!^%T!_#o%T#p~%T7RM`ROzM]z{Mi{~M]7RMlTOzM]z{Mi{!PM]!P!QM{!Q~M]7RNQOU7R7ZNX^$UW}POYJlYZKoZzJlz{NQ{!PJl!P!Q! T!Q!^Jl!^!_!!]!_!}Jl!}#O!'|#O#P!+a#P#oJl#o#p!!]#p~Jl7Z! ^_$UWU7R}PO!^%T!_#Z%T#Z#[Er#[#]%T#]#^Er#^#a%T#a#bEr#b#g%T#g#hEr#h#i%T#i#jEr#j#m%T#m#nEr#n#o%T#p~%T7R!!bY}POY!!]YZM]Zz!!]z{!#Q{!P!!]!P!Q!&x!Q!}!!]!}#O!$`#O#P!&f#P~!!]7R!#VY}POY!!]YZM]Zz!!]z{!#Q{!P!!]!P!Q!#u!Q!}!!]!}#O!$`#O#P!&f#P~!!]7R!#|UU7R}P#Z#[Gd#]#^Gd#a#bGd#g#hGd#i#jGd#m#nGd7R!$cWOY!$`YZM]Zz!$`z{!${{#O!$`#O#P!&S#P#Q!!]#Q~!$`7R!%OYOY!$`YZM]Zz!$`z{!${{!P!$`!P!Q!%n!Q#O!$`#O#P!&S#P#Q!!]#Q~!$`7R!%sTU7ROYG{Z#OG{#O#PH_#P#QFx#Q~G{7R!&VTOY!$`YZM]Zz!$`z{!${{~!$`7R!&iTOY!!]YZM]Zz!!]z{!#Q{~!!]7R!&}_}POzM]z{Mi{#ZM]#Z#[!&x#[#]M]#]#^!&x#^#aM]#a#b!&x#b#gM]#g#h!&x#h#iM]#i#j!&x#j#mM]#m#n!&x#n~M]7Z!(R[$UWOY!'|YZKoZz!'|z{!(w{!^!'|!^!_!$`!_#O!'|#O#P!*o#P#QJl#Q#o!'|#o#p!$`#p~!'|7Z!(|^$UWOY!'|YZKoZz!'|z{!(w{!P!'|!P!Q!)x!Q!^!'|!^!_!$`!_#O!'|#O#P!*o#P#QJl#Q#o!'|#o#p!$`#p~!'|7Z!*PY$UWU7ROYHqYZ%TZ!^Hq!^!_G{!_#OHq#O#PIf#P#QDu#Q#oHq#o#pG{#p~Hq7Z!*tX$UWOY!'|YZKoZz!'|z{!(w{!^!'|!^!_!$`!_#o!'|#o#p!$`#p~!'|7Z!+fX$UWOYJlYZKoZzJlz{NQ{!^Jl!^!_!!]!_#oJl#o#p!!]#p~Jl7Z!,Yc$UW}POzKoz{LZ{!^Ko!^!_M]!_#ZKo#Z#[!,R#[#]Ko#]#^!,R#^#aKo#a#b!,R#b#gKo#g#h!,R#h#iKo#i#j!,R#j#mKo#m#n!,R#n#oKo#o#pM]#p~Ko7Z!-lV$UWT7ROY!-eYZ%TZ!^!-e!^!_!.R!_#o!-e#o#p!.R#p~!-e7R!.WQT7ROY!.RZ~!.R$P!.g[$UW#o#v}POYDuYZ%TZ!PDu!P!QEr!Q!^Du!^!_Fx!_!}Du!}#OHq#O#PJQ#P#oDu#o#pFx#p~Du]!/f[#wS$UW}POYDuYZ%TZ!PDu!P!QEr!Q!^Du!^!_Fx!_!}Du!}#OHq#O#PJQ#P#oDu#o#pFx#p~Duy!0cd$UWkqO!O%T!O!P@r!P!Q%T!Q![!1q![!^%T!_!g%T!g!hAl!h#R%T#R#S!1q#S#U%T#U#V!3X#V#X%T#X#YAl#Y#b%T#b#c!2w#c#d!4m#d#l%T#l#m!5{#m#o%T#p~%Ty!1x_$UWkqO!O%T!O!P@r!P!Q%T!Q![!1q![!^%T!_!g%T!g!hAl!h#R%T#R#S!1q#S#X%T#X#YAl#Y#b%T#b#c!2w#c#o%T#p~%Ty!3OR$UWkqO!^%T!_#o%T#p~%Ty!3^W$UWO!Q%T!Q!R!3v!R!S!3v!S!^%T!_#R%T#R#S!3v#S#o%T#p~%Ty!3}Y$UWkqO!Q%T!Q!R!3v!R!S!3v!S!^%T!_#R%T#R#S!3v#S#b%T#b#c!2w#c#o%T#p~%Ty!4rV$UWO!Q%T!Q!Y!5X!Y!^%T!_#R%T#R#S!5X#S#o%T#p~%Ty!5`X$UWkqO!Q%T!Q!Y!5X!Y!^%T!_#R%T#R#S!5X#S#b%T#b#c!2w#c#o%T#p~%Ty!6QZ$UWO!Q%T!Q![!6s![!^%T!_!c%T!c!i!6s!i#R%T#R#S!6s#S#T%T#T#Z!6s#Z#o%T#p~%Ty!6z]$UWkqO!Q%T!Q![!6s![!^%T!_!c%T!c!i!6s!i#R%T#R#S!6s#S#T%T#T#Z!6s#Z#b%T#b#c!2w#c#o%T#p~%T%w!7|R!]V$UW#m%hO!^%T!_#o%T#p~%T!P!8^R_w$UWO!^%T!_#o%T#p~%T6i!8rR'bd!a0`#x&s'|P!P!Q!8{!^!_!9Q!_!`!9_W!9QO$WW#v!9VP#`#v!_!`!9Y#v!9_O#o#v#v!9dO#a#v%w!9kT!{%o$UWO!^%T!_!`'v!`!a!9z!a#o%T#p~%T$P!:RR#W#w$UWO!^%T!_#o%T#p~%T%w!:gT'a!s#a#v$RS$UWO!^%T!_!`!:v!`!a!;W!a#o%T#p~%T$O!:}R#a#v$UWO!^%T!_#o%T#p~%T$O!;_T#`#v$UWO!^%T!_!`5T!`!a!;n!a#o%T#p~%T$O!;uS#`#v$UWO!^%T!_!`5T!`#o%T#p~%T6i!]S#g#v$UWO!^%T!_!`5T!`#o%T#p~%T$P!>pR$UW'f#wO!^%T!_#o%T#p~%T~!?OO!T~6d!?VT'w6[$UWO!^%T!_!`5T!`#o%T#p#q!=P#q~%T5g!?oR!S5]nQ$UWO!^%T!_#o%T#p~%TX!@PR!kP$UWO!^%T!_#o%T#p~%T7Z!@gr$UW'Y7R#zS']%k'g2bOX%TXY%cYZ%TZ[%c[p%Tpq%cqt%Ttu2`u}%T}!O3j!O!Q%T!Q![2`![!^%T!_!c%T!c!}2`!}#R%T#R#S2`#S#T%T#T#o2`#p$f%T$f$g%c$g#BY2`#BY#BZ!@Y#BZ$IS2`$IS$I_!@Y$I_$JT2`$JT$JU!@Y$JU$KV2`$KV$KW!@Y$KW&FU2`&FU&FV!@Y&FV?HT2`?HT?HU!@Y?HU~2`7Z!CO_$UW'Z7R#zS']%k'g2bOt%Ttu2`u}%T}!O3j!O!Q%T!Q![2`![!^%T!_!c%T!c!}2`!}#R%T#R#S2`#S#T%T#T#o2`#p$g%T$g~2`",tokenizers:[f8,f6,f7,0,1,2,3,4,5,6,7,8,9,f3],topRules:{Script:[0,7]},dialects:{jsx:11707,ts:11709},dynamicPrecedences:{149:1,176:1},specialized:[{term:289,get:(e,t)=>("extends"==e&&t.dialectEnabled(1)?4:-1)<<1},{term:289,get:e=>mt[e]||-1},{term:299,get:e=>mn[e]||-1},{term:63,get:e=>mr[e]||-1}],tokenPrec:11730}),ma=[p8("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),p8("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),p8("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),p8("try {\n ${}\n} catch (${error}) {\n ${}\n}",{label:"try",detail:"block",type:"keyword"}),p8("class ${name} {\n constructor(${params}) {\n ${}\n }\n}",{label:"class",detail:"definition",type:"keyword"}),p8('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),p8('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],mo=new class{constructor(){this.map=new WeakMap}setBuffer(e,t,n){let r=this.map.get(e);r||this.map.set(e,r=new Map),r.set(t,n)}getBuffer(e,t){let n=this.map.get(e);return n&&n.get(t)}set(e,t){e instanceof dJ?this.setBuffer(e.context.buffer,e.index,t):e instanceof dY&&this.map.set(e.tree,t)}get(e){return e instanceof dJ?this.getBuffer(e.context.buffer,e.index):e instanceof dY?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}},ms=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function ml(e){return(t,n)=>{let r=t.node.getChild("VariableDefinition");return r&&n(r,e),!0}}let mu=["FunctionDeclaration"],mc={FunctionDeclaration:ml("function"),ClassDeclaration:ml("class"),ClassExpression:()=>!0,EnumDeclaration:ml("constant"),TypeAliasDeclaration:ml("type"),NamespaceDeclaration:ml("namespace"),VariableDefinition(e,t){e.matchContext(mu)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null},md=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/;function mh(e){let t=hM(e.state).resolve(e.pos,-1);if("TemplateString"==t.name||"String"==t.name||"LineComment"==t.name||"BlockComment"==t.name)return null;let n=t.to-t.from<20&&md.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let n=t;n;n=n.parent)ms.has(n.name)&&(r=r.concat(function e(t,n){let r=mo.get(n);if(r)return r;let i=[],a=!0;function o(e,n){let r=t.sliceString(e.from,e.to);i.push({label:r,type:n})}return n.cursor(_B.IncludeAnonymous).iterate(n=>{if(a)a=!1;else if(n.name){let e=mc[n.name];if(e&&e(n,o)||ms.has(n.name))return!1}else if(n.to-n.from>8192){for(let r of e(t,n.node))i.push(r);return!1}}),mo.set(n,i),i}(e.state.doc,n)));return{options:r,from:n?t.from:e.pos,validFor:md}}let mp=hQ.define({parser:mi.configure({props:[hJ.add({IfStatement:h4({except:/^\s*({|else\b)/}),TryStatement:h4({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:e=>e.baseIndent,SwitchBody:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),r=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:r?1:2)*e.unit},Block:h5({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>-1,"Statement Property":h4({except:/^{/}),JSXElement(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},JSXEscape(e){let t=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"JSXOpenTag JSXSelfClosingTag":e=>e.column(e.node.from)+e.unit}),h3.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression":h8,BlockComment:e=>({from:e.from+2,to:e.to-2})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),mf=mp.configure({dialect:"ts"}),mm=mp.configure({dialect:"jsx"}),mg=mp.configure({dialect:"jsx ts"});function mO(e={}){let t=e.jsx?e.typescript?mg:mm:e.typescript?mf:mp;return new hH(t,[mp.data.of({autocomplete:py(["LineComment","BlockComment","String"],pb(ma))}),mp.data.of({autocomplete:mh}),e.jsx?mv:[]])}function mb(e,t,n=e.length){if(!t)return"";let r=t.getChild("JSXIdentifier");return r?e.sliceString(r.from,Math.min(r.to,n)):""}let my="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),mv=c$.inputHandler.of((e,t,n,r)=>{if((my?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||">"!=r&&"/"!=r||!mp.isActiveAt(e.state,t,-1))return!1;let{state:i}=e,a=i.changeByRange(e=>{var t,n,a;let{head:o}=e,s=hM(i).resolveInner(o,-1),l;if("JSXStartTag"==s.name&&(s=s.parent),">"==r&&"JSXFragmentTag"==s.name)return{range:oX.cursor(o+1),changes:{from:o,insert:"><>"}};if(">"==r&&"JSXIdentifier"==s.name){if((null===(n=null===(t=s.parent)||void 0===t?void 0:t.lastChild)||void 0===n?void 0:n.name)!="JSXEndTag"&&(l=mb(i.doc,s.parent,o)))return{range:oX.cursor(o+1),changes:{from:o,insert:`>`}}}else if("/"==r&&"JSXFragmentTag"==s.name){let e=s.parent,t=null==e?void 0:e.parent;if(e.from==o-1&&(null===(a=t.lastChild)||void 0===a?void 0:a.name)!="JSXEndTag"&&(l=mb(i.doc,null==t?void 0:t.firstChild,o))){let e=`/${l}>`;return{range:oX.cursor(o+e.length),changes:{from:o,insert:e}}}}return{range:e}});return!a.changes.empty&&(e.dispatch(a,{userEvent:"input.type",scrollIntoView:!0}),!0)});class mx{constructor(e,t,n,r,i,a,o){this.type=e,this.value=t,this.from=n,this.hash=r,this.end=i,this.children=a,this.positions=o,this.hashProp=[[dD.contextHash,r]]}static create(e,t,n,r,i){let a=r+(r<<8)+e+(t<<4)|0;return new mx(e,t,n,a,i,[],[])}addChild(e,t){e.prop(dD.contextHash)!=this.hash&&(e=new dj(e.type,e.children,e.positions,e.length,this.hashProp)),this.children.push(e),this.positions.push(t)}toTree(e,t=this.end){let n=this.children.length-1;return n>=0&&(t=Math.max(t,this.positions[n]+this.children[n].length+this.from)),new dj(e.types[this.type],this.children,this.positions,t-this.from).balance({makeTree:(e,t,n)=>new dj(dF.none,e,t,n,this.hashProp)})}}(_M=_Z||(_Z={}))[_M.Document=1]="Document",_M[_M.CodeBlock=2]="CodeBlock",_M[_M.FencedCode=3]="FencedCode",_M[_M.Blockquote=4]="Blockquote",_M[_M.HorizontalRule=5]="HorizontalRule",_M[_M.BulletList=6]="BulletList",_M[_M.OrderedList=7]="OrderedList",_M[_M.ListItem=8]="ListItem",_M[_M.ATXHeading1=9]="ATXHeading1",_M[_M.ATXHeading2=10]="ATXHeading2",_M[_M.ATXHeading3=11]="ATXHeading3",_M[_M.ATXHeading4=12]="ATXHeading4",_M[_M.ATXHeading5=13]="ATXHeading5",_M[_M.ATXHeading6=14]="ATXHeading6",_M[_M.SetextHeading1=15]="SetextHeading1",_M[_M.SetextHeading2=16]="SetextHeading2",_M[_M.HTMLBlock=17]="HTMLBlock",_M[_M.LinkReference=18]="LinkReference",_M[_M.Paragraph=19]="Paragraph",_M[_M.CommentBlock=20]="CommentBlock",_M[_M.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",_M[_M.Escape=22]="Escape",_M[_M.Entity=23]="Entity",_M[_M.HardBreak=24]="HardBreak",_M[_M.Emphasis=25]="Emphasis",_M[_M.StrongEmphasis=26]="StrongEmphasis",_M[_M.Link=27]="Link",_M[_M.Image=28]="Image",_M[_M.InlineCode=29]="InlineCode",_M[_M.HTMLTag=30]="HTMLTag",_M[_M.Comment=31]="Comment",_M[_M.ProcessingInstruction=32]="ProcessingInstruction",_M[_M.URL=33]="URL",_M[_M.HeaderMark=34]="HeaderMark",_M[_M.QuoteMark=35]="QuoteMark",_M[_M.ListMark=36]="ListMark",_M[_M.LinkMark=37]="LinkMark",_M[_M.EmphasisMark=38]="EmphasisMark",_M[_M.CodeMark=39]="CodeMark",_M[_M.CodeText=40]="CodeText",_M[_M.CodeInfo=41]="CodeInfo",_M[_M.LinkTitle=42]="LinkTitle",_M[_M.LinkLabel=43]="LinkLabel";class mT{constructor(e,t){this.start=e,this.content=t,this.marks=[],this.parsers=[]}}class mk{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let e=this.skipSpace(this.basePos);this.indent=this.countIndent(e,this.pos,this.indent),this.pos=e,this.next=e==this.text.length?-1:this.text.charCodeAt(e)}skipSpace(e){return mE(this.text,e)}reset(e){for(this.text=e,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(e){this.basePos=e,this.baseIndent=this.countIndent(e,this.pos,this.indent)}moveBaseColumn(e){this.baseIndent=e,this.basePos=this.findColumn(e)}addMarker(e){this.markers.push(e)}countIndent(e,t=0,n=0){for(let r=t;r=t.stack[n.depth+1].value+n.baseIndent)return!0;if(n.indent>=n.baseIndent+4)return!1;let r=(e.type==_Z.OrderedList?m$:mN)(n,t,!1);return r>0&&(e.type!=_Z.BulletList||0>mP(n,t,!1))&&n.text.charCodeAt(n.pos+r-1)==e.value}let mS={[_Z.Blockquote]:(e,t,n)=>62==n.next&&(n.markers.push(m3(_Z.QuoteMark,t.lineStart+n.pos,t.lineStart+n.pos+1)),n.moveBase(n.pos+(mw(n.text.charCodeAt(n.pos+1))?2:1)),e.end=t.lineStart+n.text.length,!0),[_Z.ListItem]:(e,t,n)=>(!(n.indent-1))&&(n.moveBaseColumn(n.baseIndent+e.value),!0),[_Z.OrderedList]:m_,[_Z.BulletList]:m_,[_Z.Document]:()=>!0};function mw(e){return 32==e||9==e||10==e||13==e}function mE(e,t=0){for(;tn&&mw(e.charCodeAt(t-1));)t--;return t}function mA(e){if(96!=e.next&&126!=e.next)return -1;let t=e.pos+1;for(;t-1&&e.depth==t.stack.length?-1:r<3?-1:1}function mI(e,t){for(let n=e.stack.length-1;n>=0;n--)if(e.stack[n].type==t)return!0;return!1}function mN(e,t,n){return(45==e.next||43==e.next||42==e.next)&&(e.pos==e.text.length-1||mw(e.text.charCodeAt(e.pos+1)))&&(!n||mI(t,_Z.BulletList)||e.skipSpace(e.pos+2)=48&&i<=57;){if(++r==e.text.length)return -1;i=e.text.charCodeAt(r)}return r==e.pos||r>e.pos+9||46!=i&&41!=i||re.pos+1||49!=e.next)?-1:r+1-e.pos}function mL(e){if(35!=e.next)return -1;let t=e.pos+1;for(;t6?-1:n}function mD(e){if(45!=e.next&&61!=e.next||e.indent>=e.baseIndent+4)return -1;let t=e.pos+1;for(;t/,mF=/\?>/,mB=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*/i.exec(r);if(a)return e.append(m3(_Z.Comment,n,n+1+a[0].length));let o=/^\?[^]*?\?>/.exec(r);if(o)return e.append(m3(_Z.ProcessingInstruction,n,n+1+o[0].length));let s=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(r);return s?e.append(m3(_Z.HTMLTag,n,n+1+s[0].length)):-1},Emphasis(e,t,n){if(95!=t&&42!=t)return -1;let r=n+1;for(;e.char(r)==t;)r++;let i=e.slice(n-1,n),a=e.slice(r,r+1),o=gr.test(i),s=gr.test(a),l=/\s|^$/.test(i),u=/\s|^$/.test(a),c=!u&&(!s||l||o),d=!l&&(!o||u||s),h=c&&(42==t||!d||o),p=d&&(42==t||!c||s);return e.append(new gt(95==t?m8:m6,n,r,(h?1:0)|(p?2:0)))},HardBreak(e,t,n){if(92==t&&10==e.char(n+1))return e.append(m3(_Z.HardBreak,n,n+2));if(32==t){let t=n+1;for(;32==e.char(t);)t++;if(10==e.char(t)&&t>=n+2)return e.append(m3(_Z.HardBreak,n,t+1))}return -1},Link:(e,t,n)=>91==t?e.append(new gt(m7,n,n+1,1)):-1,Image:(e,t,n)=>33==t&&91==e.char(n+1)?e.append(new gt(ge,n,n+2,1)):-1,LinkEnd(e,t,n){if(93!=t)return -1;for(let t=e.parts.length-1;t>=0;t--){let r=e.parts[t];if(r instanceof gt&&(r.type==m7||r.type==ge)){if(!r.side||e.skipSpace(r.to)==n&&!/[(\[]/.test(e.slice(n+1,n+2)))return e.parts[t]=null,-1;let i=e.takeContent(t),a=e.parts[t]=function(e,t,n,r,i){let{text:a}=e,o=e.char(i),s=i;if(t.unshift(m3(_Z.LinkMark,r,r+(n==_Z.Image?2:1))),t.push(m3(_Z.LinkMark,i-1,i)),40==o){let n=e.skipSpace(i+1),r=ga(a,n-e.offset,e.offset),o;r&&(n=e.skipSpace(r.to),(o=go(a,n-e.offset,e.offset))&&(n=e.skipSpace(o.to))),41==e.char(n)&&(t.push(m3(_Z.LinkMark,i,i+1)),s=n+1,r&&t.push(r),o&&t.push(o),t.push(m3(_Z.LinkMark,n,s)))}else if(91==o){let n=gs(a,i-e.offset,e.offset,!1);n&&(t.push(n),s=n.to)}return m3(n,r,s,t)}(e,i,r.type==m7?_Z.Link:_Z.Image,r.from,n+1);if(r.type==m7)for(let n=0;nt?m3(_Z.URL,t+n,i+n):i==e.length&&null}}function go(e,t,n){let r=e.charCodeAt(t);if(39!=r&&34!=r&&40!=r)return!1;let i=40==r?41:r;for(let r=t+1,a=!1;r=this.end?-1:this.text.charCodeAt(e-this.offset)}get end(){return this.offset+this.text.length}slice(e,t){return this.text.slice(e-this.offset,t-this.offset)}append(e){return this.parts.push(e),e.to}addDelimiter(e,t,n,r,i){return this.append(new gt(e,t,n,(r?1:0)|(i?2:0)))}addElement(e){return this.append(e)}resolveMarkers(e){for(let t=e;t=e;o--){let e=this.parts[o];if(e instanceof gt&&1&e.side&&e.type==n.type&&(!r||!(1&n.side)&&!(2&e.side)||(e.to-e.from+i)%3!=0||!((e.to-e.from)%3)&&!(i%3))){a=e;break}}if(!a)continue;let s=n.type.resolve,l=[],u=a.from,c=n.to;if(r){let e=Math.min(2,a.to-a.from,i);u=a.to-e,c=n.from+e,s=1==e?"Emphasis":"StrongEmphasis"}a.type.mark&&l.push(this.elt(a.type.mark,u,a.to));for(let e=o+1;e=0;t--){let n=this.parts[t];if(n instanceof gt&&n.type==e)return t}return null}takeContent(e){let t=this.resolveMarkers(e);return this.parts.length=e,t}skipSpace(e){return mE(this.text,e-this.offset)+this.offset}elt(e,t,n,r){return"string"==typeof e?m3(this.parser.getNodeType(e),t,n,r):new m4(e,t)}}function gu(e,t){if(!t.length)return e;if(!e.length)return t;let n=e.slice(),r=0;for(let e of t){for(;r(e?e-1:0))return!1;if(this.fragmentEnd<0){let e=this.fragment.to;for(;e>0&&"\n"!=this.input.read(e-1,e);)e--;this.fragmentEnd=e?e-1:0}let n=this.cursor;n||(n=this.cursor=this.fragment.tree.cursor()).firstChild();let r=e+this.fragment.offset;for(;n.to<=r;)if(!n.parent())return!1;for(;;){if(n.from>=r)return this.fragment.from<=t;if(!n.childAfter(r))return!1}}matches(e){let t=this.cursor.tree;return t&&t.prop(dD.contextHash)==e}takeNodes(e){let t=this.cursor,n=this.fragment.offset,r=this.fragmentEnd-(this.fragment.openEnd?1:0),i=e.absoluteLineStart,a=i,o=e.block.children.length,s=a,l=o;for(;;){if(t.to-n>r){if(t.type.isAnonymous&&t.firstChild())continue;break}if(e.dontInject.add(t.tree),e.addNode(t.tree,t.from-n),t.type.is("Block")&&(0>gc.indexOf(t.type.id)?(a=t.to-n,o=e.block.children.length):(a=s,o=l,s=t.to-n,l=e.block.children.length)),!t.nextSibling())break}for(;e.block.children.length>o;)e.block.children.pop(),e.block.positions.pop();return a-i}}let gh=hh({"Blockquote/...":hI.quote,HorizontalRule:hI.contentSeparator,"ATXHeading1/... SetextHeading1/...":hI.heading1,"ATXHeading2/... SetextHeading2/...":hI.heading2,"ATXHeading3/...":hI.heading3,"ATXHeading4/...":hI.heading4,"ATXHeading5/...":hI.heading5,"ATXHeading6/...":hI.heading6,"Comment CommentBlock":hI.comment,Escape:hI.escape,Entity:hI.character,"Emphasis/...":hI.emphasis,"StrongEmphasis/...":hI.strong,"Link/... Image/...":hI.link,"OrderedList/... BulletList/...":hI.list,"BlockQuote/...":hI.quote,"InlineCode CodeText":hI.monospace,URL:hI.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":hI.processingInstruction,"CodeInfo LinkLabel":hI.labelName,LinkTitle:hI.string,Paragraph:hI.content}),gp=new mK(new dB(m0).extend(gh),Object.keys(mW).map(e=>mW[e]),Object.keys(mW).map(e=>mH[e]),Object.keys(mW),mY,mS,Object.keys(gi).map(e=>gi[e]),Object.keys(gi),[]),gf={resolve:"Strikethrough",mark:"StrikethroughMark"},gm={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":hI.strikethrough}},{name:"StrikethroughMark",style:hI.processingInstruction}],parseInline:[{name:"Strikethrough",parse:(e,t,n)=>126!=t||126!=e.char(n+1)?-1:e.addDelimiter(gf,n,n+2,!0,!0),after:"Emphasis"}]};function gg(e,t,n=0,r,i=0){let a=0,o=!0,s=-1,l=-1,u=!1,c=()=>{r.push(e.elt("TableCell",i+s,i+l,e.parser.parseInline(t.slice(s,l),i+s)))};for(let d=n;d-1)&&a++,o=!1,r&&(s>-1&&c(),r.push(e.elt("TableDelimiter",d+i,d+i+1))),s=l=-1),u=!u&&92==n}return s>-1&&(a++,r&&c()),a}function gO(e,t){for(let n=t;ngO(t.content,0)?new gy:null,endLeaf(e,t,n){if(n.parsers.some(e=>e instanceof gy)||!gO(t.text,t.basePos))return!1;let r=e.scanLine(e.absoluteLineEnd+1).text;return gb.test(r)&&gg(e,t.text,t.basePos)==gg(e,r,t.basePos)},before:"SetextHeading"}]};class gx{nextLine(){return!1}finish(e,t){return e.addLeafElement(t,e.elt("Task",t.start,t.start+t.content.length,[e.elt("TaskMarker",t.start,t.start+3),...e.parser.parseInline(t.content.slice(3),t.start+3)])),!0}}let gT={defineNodes:[{name:"Task",block:!0,style:hI.list},{name:"TaskMarker",style:hI.atom}],parseBlock:[{name:"TaskList",leaf:(e,t)=>/^\[[ xX]\]/.test(t.content)&&"ListItem"==e.parentType().name?new gx:null,after:"SetextHeading"}]},gk=[gv,gT,gm];function g_(e,t,n){return(r,i,a)=>{if(i!=e||r.char(a+1)==e)return -1;let o=[r.elt(n,a,a+1)];for(let i=a+1;i=65&&n<=90||95==n||n>=97&&n<=122||n>=161;)a+=String.fromCharCode(i),i=e.peek(++t);return gN=e,g$=r,gI=a?a.toLowerCase():i==gD||i==gQ?void 0:null}let gD=63,gQ=33;function gM(e,t){this.name=e,this.parent=t,this.hash=t?t.hash:0;for(let t=0;tgF.indexOf(t)>-1?new gM(gL(r,1)||"",e):e,reduce:(e,t)=>18==t&&e?e.parent:e,reuse(e,t,n,r){let i=t.type.id;return 4==i||35==i?new gM(gL(r,1)||"",e):e},hash:e=>e?e.hash:0,strict:!1}),gU=new fy((e,t)=>{if(60!=e.next){e.next<0&&t.context&&e.acceptToken(56);return}e.advance();let n=47==e.next;n&&e.advance();let r=gL(e,0);if(void 0===r)return;if(!r)return e.acceptToken(n?12:4);let i=t.context?t.context.name:null;if(n){if(r==i)return e.acceptToken(9);if(i&&gA[i])return e.acceptToken(56,-2);if(t.dialectEnabled(0))return e.acceptToken(10);for(let e=t.context;e;e=e.parent)if(e.name==r)return;e.acceptToken(11)}else{if("script"==r)return e.acceptToken(5);if("style"==r)return e.acceptToken(6);if("textarea"==r)return e.acceptToken(7);if(gC.hasOwnProperty(r))return e.acceptToken(8);i&&gR[i]&&gR[i][r]?e.acceptToken(56,-1):e.acceptToken(4)}},{contextual:!0}),gz=new fy(e=>{for(let t=0,n=0;;n++){if(e.next<0){n&&e.acceptToken(57);break}if(45==e.next)t++;else if(62==e.next&&t>=2){n>3&&e.acceptToken(57,-2);break}else t=0;e.advance()}});function gj(e,t,n){let r=2+e.length;return new fy(i=>{for(let a=0,o=0,s=0;;s++){if(i.next<0){s&&i.acceptToken(t);break}if(0==a&&60==i.next||1==a&&47==i.next||a>=2&&ao?i.acceptToken(t,-o):i.acceptToken(n,-(o-2));break}else if((10==i.next||13==i.next)&&s){i.acceptToken(t,1);break}else a=o=0;i.advance()}})}let gW=gj("script",53,1),gZ=gj("style",54,2),gq=gj("textarea",55,3),gG=hh({"Text RawText":hI.content,"StartTag StartCloseTag SelfCloserEndTag EndTag SelfCloseEndTag":hI.angleBracket,TagName:hI.tagName,"MismatchedCloseTag/TagName":[hI.tagName,hI.invalid],AttributeName:hI.attributeName,"AttributeValue UnquotedAttributeValue":hI.attributeValue,Is:hI.definitionOperator,"EntityReference CharacterReference":hI.character,Comment:hI.blockComment,ProcessingInst:hI.processingInstruction,DoctypeDecl:hI.documentMeta}),gH=fP.deserialize({version:14,states:",xOVOxOOO!WQ!bO'#CoO!]Q!bO'#CyO!bQ!bO'#C|O!gQ!bO'#DPO!lQ!bO'#DRO!qOXO'#CnO!|OYO'#CnO#XO[O'#CnO$eOxO'#CnOOOW'#Cn'#CnO$lO!rO'#DSO$tQ!bO'#DUO$yQ!bO'#DVOOOW'#Dj'#DjOOOW'#DX'#DXQVOxOOO%OQ#tO,59ZO%WQ#tO,59eO%`Q#tO,59hO%hQ#tO,59kO%pQ#tO,59mOOOX'#D]'#D]O%xOXO'#CwO&TOXO,59YOOOY'#D^'#D^O&]OYO'#CzO&hOYO,59YOOO['#D_'#D_O&pO[O'#C}O&{O[O,59YOOOW'#D`'#D`O'TOxO,59YO'[Q!bO'#DQOOOW,59Y,59YOOO`'#Da'#DaO'aO!rO,59nOOOW,59n,59nO'iQ!bO,59pO'nQ!bO,59qOOOW-E7V-E7VO'sQ#tO'#CqOOQO'#DY'#DYO(OQ#tO1G.uOOOX1G.u1G.uO(WQ#tO1G/POOOY1G/P1G/PO(`Q#tO1G/SOOO[1G/S1G/SO(hQ#tO1G/VOOOW1G/V1G/VO(pQ#tO1G/XOOOW1G/X1G/XOOOX-E7Z-E7ZO(xQ!bO'#CxOOOW1G.t1G.tOOOY-E7[-E7[O(}Q!bO'#C{OOO[-E7]-E7]O)SQ!bO'#DOOOOW-E7^-E7^O)XQ!bO,59lOOO`-E7_-E7_OOOW1G/Y1G/YOOOW1G/[1G/[OOOW1G/]1G/]O)^Q&jO,59]OOQO-E7W-E7WOOOX7+$a7+$aOOOY7+$k7+$kOOO[7+$n7+$nOOOW7+$q7+$qOOOW7+$s7+$sO)iQ!bO,59dO)nQ!bO,59gO)sQ!bO,59jOOOW1G/W1G/WO)xO,UO'#CtO*WO7[O'#CtOOQO1G.w1G.wOOOW1G/O1G/OOOOW1G/R1G/ROOOW1G/U1G/UOOOO'#DZ'#DZO*fO,UO,59`OOQO,59`,59`OOOO'#D['#D[O*tO7[O,59`OOOO-E7X-E7XOOQO1G.z1G.zOOOO-E7Y-E7Y",stateData:"+[~O!]OS~OSSOTPOUQOVROWTOY]OZ[O[^O^^O_^O`^Oa^Ow^Oz_O!cZO~OdaO~OdbO~OdcO~OddO~OdeO~O!VfOPkP!YkP~O!WiOQnP!YnP~O!XlORqP!YqP~OSSOTPOUQOVROWTOXqOY]OZ[O[^O^^O_^O`^Oa^Ow^O!cZO~O!YrO~P#dO!ZsO!duO~OdvO~OdwO~OfyOj|O~OfyOj!OO~OfyOj!QO~OfyOj!SO~OfyOj!UO~O!VfOPkX!YkX~OP!WO!Y!XO~O!WiOQnX!YnX~OQ!ZO!Y!XO~O!XlORqX!YqX~OR!]O!Y!XO~O!Y!XO~P#dOd!_O~O!ZsO!d!aO~Oj!bO~Oj!cO~Og!dOfeXjeX~OfyOj!fO~OfyOj!gO~OfyOj!hO~OfyOj!iO~OfyOj!jO~Od!kO~Od!lO~Od!mO~Oj!nO~Oi!qO!_!oO!a!pO~Oj!rO~Oj!sO~Oj!tO~O_!uO`!uO!_!wO!`!uO~O_!xO`!xO!a!wO!b!xO~O_!uO`!uO!_!{O!`!uO~O_!xO`!xO!a!{O!b!xO~O`_a!cwz!c~",goto:"%o!_PPPPPPPPPPPPPPPPPP!`!fP!lPP!xPP!{#O#R#X#[#_#e#h#k#q#w!`P!`!`P#}$T$k$q$w$}%T%Z%aPPPPPPPP%gX^OX`pXUOX`pezabcde{}!P!R!TR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ}bQ!PcQ!RdQ!TeZ!e{}!P!R!TQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue EndTag ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:66,context:gB,nodeProps:[["closedBy",-11,1,2,3,4,5,6,7,8,9,10,11,"EndTag",-4,19,29,32,35,"CloseTag"],["group",-9,12,15,16,17,18,38,39,40,41,"Entity",14,"Entity TextContent",-3,27,30,33,"TextContent Entity"],["openedBy",26,"StartTag StartCloseTag",-4,28,31,34,36,"OpenTag"]],propSources:[gG],skippedNodes:[0],repeatNodeCount:9,tokenData:"!#b!aR!WOX$kXY)sYZ)sZ]$k]^)s^p$kpq)sqr$krs*zsv$kvw+dwx2yx}$k}!O3f!O!P$k!P!Q7_!Q![$k![!]8u!]!^$k!^!_>b!_!`!!p!`!a8T!a!c$k!c!}8u!}#R$k#R#S8u#S#T$k#T#o8u#o$f$k$f$g&R$g%W$k%W%o8u%o%p$k%p&a8u&a&b$k&b1p8u1p4U$k4U4d8u4d4e$k4e$IS8u$IS$I`$k$I`$Ib8u$Ib$Kh$k$Kh%#t8u%#t&/x$k&/x&Et8u&Et&FV$k&FV;'S8u;'S;:jiW!``!bpOq(kqr?Rrs'gsv(kwx(]x!a(k!a!bKj!b~(k!R?YZ!``!bpOr(krs'gsv(kwx(]x}(k}!O?{!O!f(k!f!gAR!g#W(k#W#XGz#X~(k!R@SV!``!bpOr(krs'gsv(kwx(]x}(k}!O@i!O~(k!R@rT!``!bp!cPOr(krs'gsv(kwx(]x~(k!RAYV!``!bpOr(krs'gsv(kwx(]x!q(k!q!rAo!r~(k!RAvV!``!bpOr(krs'gsv(kwx(]x!e(k!e!fB]!f~(k!RBdV!``!bpOr(krs'gsv(kwx(]x!v(k!v!wBy!w~(k!RCQV!``!bpOr(krs'gsv(kwx(]x!{(k!{!|Cg!|~(k!RCnV!``!bpOr(krs'gsv(kwx(]x!r(k!r!sDT!s~(k!RD[V!``!bpOr(krs'gsv(kwx(]x!g(k!g!hDq!h~(k!RDxW!``!bpOrDqrsEbsvDqvwEvwxFfx!`Dq!`!aGb!a~DqqEgT!bpOvEbvxEvx!`Eb!`!aFX!a~EbPEyRO!`Ev!`!aFS!a~EvPFXOzPqF`Q!bpzPOv'gx~'gaFkV!``OrFfrsEvsvFfvwEvw!`Ff!`!aGQ!a~FfaGXR!``zPOr(]sv(]w~(]!RGkT!``!bpzPOr(krs'gsv(kwx(]x~(k!RHRV!``!bpOr(krs'gsv(kwx(]x#c(k#c#dHh#d~(k!RHoV!``!bpOr(krs'gsv(kwx(]x#V(k#V#WIU#W~(k!RI]V!``!bpOr(krs'gsv(kwx(]x#h(k#h#iIr#i~(k!RIyV!``!bpOr(krs'gsv(kwx(]x#m(k#m#nJ`#n~(k!RJgV!``!bpOr(krs'gsv(kwx(]x#d(k#d#eJ|#e~(k!RKTV!``!bpOr(krs'gsv(kwx(]x#X(k#X#YDq#Y~(k!RKqW!``!bpOrKjrsLZsvKjvwLowxNPx!aKj!a!b! g!b~KjqL`T!bpOvLZvxLox!aLZ!a!bM^!b~LZPLrRO!aLo!a!bL{!b~LoPMORO!`Lo!`!aMX!a~LoPM^OwPqMcT!bpOvLZvxLox!`LZ!`!aMr!a~LZqMyQ!bpwPOv'gx~'gaNUV!``OrNPrsLosvNPvwLow!aNP!a!bNk!b~NPaNpV!``OrNPrsLosvNPvwLow!`NP!`!a! V!a~NPa! ^R!``wPOr(]sv(]w~(]!R! nW!``!bpOrKjrsLZsvKjvwLowxNPx!`Kj!`!a!!W!a~Kj!R!!aT!``!bpwPOr(krs'gsv(kwx(]x~(k!V!!{VgS^P!``!bpOr&Rrs&qsv&Rwx'rx!^&R!^!_(k!_~&R",tokenizers:[gW,gZ,gq,gU,gz,0,1,2,3,4,5],topRules:{Document:[0,13]},dialects:{noMatch:0},tokenPrec:464});function gY(e,t,n){let r;for(let i of n)if(!i.attrs||i.attrs(r||(r=function(e,t){let n=Object.create(null);for(let r of e.firstChild.getChildren("Attribute")){let e=r.getChild("AttributeName"),i=r.getChild("AttributeValue")||r.getChild("UnquotedAttributeValue");e&&(n[t.read(e.from,e.to)]=i?"AttributeValue"==i.name?t.read(i.from+1,i.to-1):t.read(i.from,i.to):"")}return n}(e.node.parent,t))))return{parser:i.parser};return null}let gX=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288];function gV(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}let gK=new fy((e,t)=>{for(let r=!1,i=0,a=0;;a++){var n;let{next:o}=e;if(gV(o)||45==o||95==o||r&&(n=o)>=48&&n<=57)!r&&(45!=o||a>0)&&(r=!0),i===a&&45==o&&i++,e.advance();else{r&&e.acceptToken(40==o?94:2==i&&t.canShift(2)?2:95);break}}}),gJ=new fy(e=>{if(gX.includes(e.peek(-1))){let{next:t}=e;(gV(t)||95==t||35==t||46==t||91==t||58==t||45==t)&&e.acceptToken(93)}}),g1=new fy(e=>{if(!gX.includes(e.peek(-1))){let{next:t}=e;if(37==t&&(e.advance(),e.acceptToken(1)),gV(t)){do e.advance();while(gV(e.next));e.acceptToken(1)}}}),g0=hh({"import charset namespace keyframes":hI.definitionKeyword,"media supports":hI.controlKeyword,"from to selector":hI.keyword,NamespaceName:hI.namespace,KeyframeName:hI.labelName,TagName:hI.tagName,ClassName:hI.className,PseudoClassName:hI.constant(hI.className),IdName:hI.labelName,"FeatureName PropertyName":hI.propertyName,AttributeName:hI.attributeName,NumberLiteral:hI.number,KeywordQuery:hI.keyword,UnaryQueryOp:hI.operatorKeyword,"CallTag ValueName":hI.atom,VariableName:hI.variableName,Callee:hI.operatorKeyword,Unit:hI.unit,"UniversalSelector NestingSelector":hI.definitionOperator,AtKeyword:hI.keyword,MatchOp:hI.compareOperator,"ChildOp SiblingOp, LogicOp":hI.logicOperator,BinOp:hI.arithmeticOperator,Important:hI.modifier,Comment:hI.blockComment,ParenthesizedContent:hI.special(hI.name),ColorLiteral:hI.color,StringLiteral:hI.string,":":hI.punctuation,"PseudoOp #":hI.derefOperator,"; ,":hI.separator,"( )":hI.paren,"[ ]":hI.squareBracket,"{ }":hI.brace}),g2={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,dir:32,url:60,"url-prefix":60,domain:60,regexp:60,selector:134},g5={__proto__:null,"@import":114,"@media":138,"@charset":142,"@namespace":146,"@keyframes":152,"@supports":164},g9={__proto__:null,not:128,only:128,from:158,to:160},g4=fP.deserialize({version:14,states:"7WOYQ[OOOOQP'#Cd'#CdOOQP'#Cc'#CcO!ZQ[O'#CfO!}QXO'#CaO#UQ[O'#ChO#aQ[O'#DPO#fQ[O'#DTOOQP'#Ec'#EcO#kQdO'#DeO$VQ[O'#DrO#kQdO'#DtO$hQ[O'#DvO$sQ[O'#DyO$xQ[O'#EPO%WQ[O'#EROOQS'#Eb'#EbOOQS'#ES'#ESQYQ[OOOOQP'#Cg'#CgOOQP,59Q,59QO!ZQ[O,59QO%_Q[O'#EVO%yQWO,58{O&RQ[O,59SO#aQ[O,59kO#fQ[O,59oO%_Q[O,59sO%_Q[O,59uO%_Q[O,59vO'bQ[O'#D`OOQS,58{,58{OOQP'#Ck'#CkOOQO'#C}'#C}OOQP,59S,59SO'iQWO,59SO'nQWO,59SOOQP'#DR'#DROOQP,59k,59kOOQO'#DV'#DVO'sQ`O,59oOOQS'#Cp'#CpO#kQdO'#CqO'{QvO'#CsO)VQtO,5:POOQO'#Cx'#CxO'iQWO'#CwO)kQWO'#CyOOQS'#Ef'#EfOOQO'#Dh'#DhO)pQ[O'#DoO*OQWO'#EiO$xQ[O'#DmO*^QWO'#DpOOQO'#Ej'#EjO%|QWO,5:^O*cQpO,5:`OOQS'#Dx'#DxO*kQWO,5:bO*pQ[O,5:bOOQO'#D{'#D{O*xQWO,5:eO*}QWO,5:kO+VQWO,5:mOOQS-E8Q-E8QOOQP1G.l1G.lO+yQXO,5:qOOQO-E8T-E8TOOQS1G.g1G.gOOQP1G.n1G.nO'iQWO1G.nO'nQWO1G.nOOQP1G/V1G/VO,WQ`O1G/ZO,qQXO1G/_O-XQXO1G/aO-oQXO1G/bO.VQXO'#CdO.zQWO'#DaOOQS,59z,59zO/PQWO,59zO/XQ[O,59zO/`QdO'#CoO/gQ[O'#DOOOQP1G/Z1G/ZO#kQdO1G/ZO/nQpO,59]OOQS,59_,59_O#kQdO,59aO/vQWO1G/kOOQS,59c,59cO/{Q!bO,59eO0TQWO'#DhO0`QWO,5:TO0eQWO,5:ZO$xQ[O,5:VO$xQ[O'#EYO0mQWO,5;TO0xQWO,5:XO%_Q[O,5:[OOQS1G/x1G/xOOQS1G/z1G/zOOQS1G/|1G/|O1ZQWO1G/|O1`QdO'#D|OOQS1G0P1G0POOQS1G0V1G0VOOQS1G0X1G0XOOQP7+$Y7+$YOOQP7+$u7+$uO#kQdO7+$uO#kQdO,59{O1nQ[O'#EXO1xQWO1G/fOOQS1G/f1G/fO1xQWO1G/fO2QQtO'#ETO2uQdO'#EeO3PQWO,59ZO3UQXO'#EhO3]QWO,59jO3bQpO7+$uOOQS1G.w1G.wOOQS1G.{1G.{OOQS7+%V7+%VO3jQWO1G/PO#kQdO1G/oOOQO1G/u1G/uOOQO1G/q1G/qO3oQWO,5:tOOQO-E8W-E8WO3}QXO1G/vOOQS7+%h7+%hO4UQYO'#CsO%|QWO'#EZO4^QdO,5:hOOQS,5:h,5:hO4lQpO<O!c!}$w!}#O?[#O#P$w#P#Q?g#Q#R2U#R#T$w#T#U?r#U#c$w#c#d@q#d#o$w#o#pAQ#p#q2U#q#rA]#r#sAh#s#y$w#y#z%]#z$f$w$f$g%]$g#BY$w#BY#BZ%]#BZ$IS$w$IS$I_%]$I_$I|$w$I|$JO%]$JO$JT$w$JT$JU%]$JU$KV$w$KV$KW%]$KW&FU$w&FU&FV%]&FV~$wW$zQOy%Qz~%QW%VQoWOy%Qz~%Q~%bf#T~OX%QX^&v^p%Qpq&vqy%Qz#y%Q#y#z&v#z$f%Q$f$g&v$g#BY%Q#BY#BZ&v#BZ$IS%Q$IS$I_&v$I_$I|%Q$I|$JO&v$JO$JT%Q$JT$JU&v$JU$KV%Q$KV$KW&v$KW&FU%Q&FU&FV&v&FV~%Q~&}f#T~oWOX%QX^&v^p%Qpq&vqy%Qz#y%Q#y#z&v#z$f%Q$f$g&v$g#BY%Q#BY#BZ&v#BZ$IS%Q$IS$I_&v$I_$I|%Q$I|$JO&v$JO$JT%Q$JT$JU&v$JU$KV%Q$KV$KW&v$KW&FU%Q&FU&FV&v&FV~%Q^(fSOy%Qz#]%Q#]#^(r#^~%Q^(wSoWOy%Qz#a%Q#a#b)T#b~%Q^)YSoWOy%Qz#d%Q#d#e)f#e~%Q^)kSoWOy%Qz#c%Q#c#d)w#d~%Q^)|SoWOy%Qz#f%Q#f#g*Y#g~%Q^*_SoWOy%Qz#h%Q#h#i*k#i~%Q^*pSoWOy%Qz#T%Q#T#U*|#U~%Q^+RSoWOy%Qz#b%Q#b#c+_#c~%Q^+dSoWOy%Qz#h%Q#h#i+p#i~%Q^+wQ!VUoWOy%Qz~%Q~,QUOY+}Zr+}rs,ds#O+}#O#P,i#P~+}~,iOh~~,lPO~+}_,tWtPOy%Qz!Q%Q!Q![-^![!c%Q!c!i-^!i#T%Q#T#Z-^#Z~%Q^-cWoWOy%Qz!Q%Q!Q![-{![!c%Q!c!i-{!i#T%Q#T#Z-{#Z~%Q^.QWoWOy%Qz!Q%Q!Q![.j![!c%Q!c!i.j!i#T%Q#T#Z.j#Z~%Q^.qWfUoWOy%Qz!Q%Q!Q![/Z![!c%Q!c!i/Z!i#T%Q#T#Z/Z#Z~%Q^/bWfUoWOy%Qz!Q%Q!Q![/z![!c%Q!c!i/z!i#T%Q#T#Z/z#Z~%Q^0PWoWOy%Qz!Q%Q!Q![0i![!c%Q!c!i0i!i#T%Q#T#Z0i#Z~%Q^0pWfUoWOy%Qz!Q%Q!Q![1Y![!c%Q!c!i1Y!i#T%Q#T#Z1Y#Z~%Q^1_WoWOy%Qz!Q%Q!Q![1w![!c%Q!c!i1w!i#T%Q#T#Z1w#Z~%Q^2OQfUoWOy%Qz~%QY2XSOy%Qz!_%Q!_!`2e!`~%QY2lQzQoWOy%Qz~%QX2wQXPOy%Qz~%Q~3QUOY2}Zw2}wx,dx#O2}#O#P3d#P~2}~3gPO~2}_3oQbVOy%Qz~%Q~3zOa~_4RSUPjSOy%Qz!_%Q!_!`2e!`~%Q_4fUjS!PPOy%Qz!O%Q!O!P4x!P!Q%Q!Q![7_![~%Q^4}SoWOy%Qz!Q%Q!Q![5Z![~%Q^5bWoW#ZUOy%Qz!Q%Q!Q![5Z![!g%Q!g!h5z!h#X%Q#X#Y5z#Y~%Q^6PWoWOy%Qz{%Q{|6i|}%Q}!O6i!O!Q%Q!Q![6z![~%Q^6nSoWOy%Qz!Q%Q!Q![6z![~%Q^7RSoW#ZUOy%Qz!Q%Q!Q![6z![~%Q^7fYoW#ZUOy%Qz!O%Q!O!P5Z!P!Q%Q!Q![7_![!g%Q!g!h5z!h#X%Q#X#Y5z#Y~%Q_8ZQpVOy%Qz~%Q^8fUjSOy%Qz!O%Q!O!P4x!P!Q%Q!Q![7_![~%Q_8}S#WPOy%Qz!Q%Q!Q![5Z![~%Q~9`RjSOy%Qz{9i{~%Q~9nSoWOy9iyz9zz{:o{~9i~9}ROz9zz{:W{~9z~:ZTOz9zz{:W{!P9z!P!Q:j!Q~9z~:oOR~~:tUoWOy9iyz9zz{:o{!P9i!P!Q;W!Q~9i~;_QoWR~Oy%Qz~%Q^;jY#ZUOy%Qz!O%Q!O!P5Z!P!Q%Q!Q![7_![!g%Q!g!h5z!h#X%Q#X#Y5z#Y~%QX<_S]POy%Qz![%Q![!]RUOy%Qz!c%Q!c!}>e!}#T%Q#T#o>e#o~%QX>lY!YPoWOy%Qz}%Q}!O>e!O!Q%Q!Q![>e![!c%Q!c!}>e!}#T%Q#T#o>e#o~%QX?aQxPOy%Qz~%Q^?lQvUOy%Qz~%QX?uSOy%Qz#b%Q#b#c@R#c~%QX@WSoWOy%Qz#W%Q#W#X@d#X~%QX@kQ!`PoWOy%Qz~%QX@tSOy%Qz#f%Q#f#g@d#g~%QXAVQ!RPOy%Qz~%Q_AbQ!QVOy%Qz~%QZAmS!PPOy%Qz!_%Q!_!`2e!`~%Q",tokenizers:[gJ,g1,gK,0,1,2,3],topRules:{StyleSheet:[0,4]},specialized:[{term:94,get:e=>g2[e]||-1},{term:56,get:e=>g5[e]||-1},{term:95,get:e=>g9[e]||-1}],tokenPrec:1078}),g3=null;function g8(){if(!g3&&"object"==typeof document&&document.body){let e=[];for(let t in document.body.style)/[A-Z]|^-|^(item|length)$/.test(t)||e.push(t);g3=e.sort().map(e=>({type:"property",label:e}))}return g3||[]}let g6=["active","after","before","checked","default","disabled","empty","enabled","first-child","first-letter","first-line","first-of-type","focus","hover","in-range","indeterminate","invalid","lang","last-child","last-of-type","link","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-of-type","only-child","optional","out-of-range","placeholder","read-only","read-write","required","root","selection","target","valid","visited"].map(e=>({type:"class",label:e})),g7=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(e=>({type:"keyword",label:e})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","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","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(e=>({type:"constant",label:e}))),Oe=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(e=>({type:"type",label:e})),Ot=/^[\w-]*/,On=e=>{let{state:t,pos:n}=e,r=hM(t).resolveInner(n,-1);if("PropertyName"==r.name)return{from:r.from,options:g8(),validFor:Ot};if("ValueName"==r.name)return{from:r.from,options:g7,validFor:Ot};if("PseudoClassName"==r.name)return{from:r.from,options:g6,validFor:Ot};if("TagName"==r.name){for(let{parent:e}=r;e;e=e.parent)if("Block"==e.name)return{from:r.from,options:g8(),validFor:Ot};return{from:r.from,options:Oe,validFor:Ot}}if(!e.explicit)return null;let i=r.resolve(n),a=i.childBefore(n);return a&&":"==a.name&&"PseudoClassSelector"==i.name?{from:n,options:g6,validFor:Ot}:a&&":"==a.name&&"Declaration"==i.name||"ArgList"==i.name?{from:n,options:g7,validFor:Ot}:"Block"==i.name?{from:n,options:g8(),validFor:Ot}:null},Or=hQ.define({parser:g4.configure({props:[hJ.add({Declaration:h4()}),h3.add({Block:h8})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}}),Oi=["_blank","_self","_top","_parent"],Oa=["ascii","utf-8","utf-16","latin1","latin1"],Oo=["get","post","put","delete"],Os=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Ol=["true","false"],Ou={},Oc={a:{attrs:{href:null,ping:null,type:null,media:null,target:Oi,hreflang:null}},abbr:Ou,acronym:Ou,address:Ou,applet:Ou,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:Ou,aside:Ou,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:Ou,base:{attrs:{href:null,target:Oi}},basefont:Ou,bdi:Ou,bdo:Ou,big:Ou,blockquote:{attrs:{cite:null}},body:Ou,br:Ou,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:Os,formmethod:Oo,formnovalidate:["novalidate"],formtarget:Oi,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:Ou,center:Ou,cite:Ou,code:Ou,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:Ou,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:Ou,dir:Ou,div:Ou,dl:Ou,dt:Ou,em:Ou,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:Ou,figure:Ou,font:Ou,footer:Ou,form:{attrs:{action:null,name:null,"accept-charset":Oa,autocomplete:["on","off"],enctype:Os,method:Oo,novalidate:["novalidate"],target:Oi}},frame:Ou,frameset:Ou,h1:Ou,h2:Ou,h3:Ou,h4:Ou,h5:Ou,h6:Ou,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:Ou,hgroup:Ou,hr:Ou,html:{attrs:{manifest:null}},i:Ou,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:Os,formmethod:Oo,formnovalidate:["novalidate"],formtarget:Oi,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:Ou,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:Ou,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:Ou,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:Oa,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:Ou,noframes:Ou,noscript:Ou,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:Ou,param:{attrs:{name:null,value:null}},pre:Ou,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:Ou,rt:Ou,ruby:Ou,s:Ou,samp:Ou,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:Oa}},section:Ou,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:Ou,source:{attrs:{src:null,type:null,media:null}},span:Ou,strike:Ou,strong:Ou,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:Ou,summary:Ou,sup:Ou,table:Ou,tbody:Ou,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:Ou,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:Ou,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:Ou,time:{attrs:{datetime:null}},title:Ou,tr:Ou,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},tt:Ou,u:Ou,ul:{children:["li","script","template","ul","ol"]},var:Ou,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:Ou},Od={accesskey:null,class:null,contenteditable:Ol,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:Ol,autocorrect:Ol,autocapitalize:Ol,style:null,tabindex:null,title:null,translate:["yes","no"],onclick:null,rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":Ol,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Ol,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Ol,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Ol,"aria-hidden":Ol,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Ol,"aria-multiselectable":Ol,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Ol,"aria-relevant":null,"aria-required":Ol,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},Oh=Object.keys(Oc),Op=Object.keys(Od);function Of(e,t,n=e.length){if(!t)return"";let r=t.firstChild,i=r&&r.getChild("TagName");return i?e.sliceString(i.from,Math.min(i.to,n)):""}function Om(e,t=!1){for(let n=e.parent;n;n=n.parent)if("Element"==n.name){if(!t)return n;t=!1}return null}function Og(e,t){let n=Oc[Of(e,Om(t,!0))];return(null==n?void 0:n.children)||Oh}function OO(e,t){let n=[];for(let r=t;r=Om(r);){let i=Of(e,r);if(i&&"CloseTag"==r.lastChild.name)break;i&&0>n.indexOf(i)&&("EndTag"==t.name||t.from>=r.firstChild.to)&&n.push(i)}return n}let Ob=/^[:\-\.\w\u00b7-\uffff]*$/;function Oy(e,t,n,r){let i=/\s*>/.test(e.sliceDoc(r,r+5))?"":">";return{from:n,to:r,options:Og(e.doc,t).map(e=>({label:e,type:"type"})).concat(OO(e.doc,t).map((e,t)=>({label:"/"+e,apply:"/"+e+i,type:"type",boost:99-t}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function Ov(e,t,n,r){let i=/\s*>/.test(e.sliceDoc(r,r+5))?"":">";return{from:n,to:r,options:OO(e.doc,t).map((e,t)=>({label:e,apply:e+i,type:"type",boost:99-t})),validFor:Ob}}function Ox(e){let{state:t,pos:n}=e,r=hM(t).resolveInner(n),i=r.resolve(n,-1);for(let e=n,t;r==i&&(t=i.childBefore(e));){let n=t.lastChild;if(!n||!n.type.isError||n.from({label:e,type:"property"})),validFor:Ob}}return"Is"==i.name||"AttributeValue"==i.name||"UnquotedAttributeValue"==i.name?function(e,t,n,r){var i;let a=null===(i=t.parent)||void 0===i?void 0:i.getChild("AttributeName"),o=[],s;if(a){let i=e.sliceDoc(a.from,a.to),l=Od[i];if(!l){let n=Om(t),r=n?Oc[Of(e.doc,n)]:null;l=(null==r?void 0:r.attrs)&&r.attrs[i]}if(l){let t=e.sliceDoc(n,r).toLowerCase(),i='"',a='"';for(let u of(/^['"]/.test(t)?(s='"'==t[0]?/^[^"]*$/:/^[^']*$/,i="",a=e.sliceDoc(r,r+1)==t[0]?"":t[0],t=t.slice(1),n++):s=/^[^\s<>='"]*$/,l))o.push({label:u,apply:i+u+a,type:"constant"})}}return{from:n,to:r,options:o,validFor:s}}(t,i,"Is"==i.name?n:i.from,n):e.explicit&&("Element"==r.name||"Text"==r.name||"Document"==r.name)?function(e,t,n){let r=[],i=0;for(let n of Og(e.doc,t))r.push({label:"<"+n,type:"type"});for(let n of OO(e.doc,t))r.push({label:"",type:"type",boost:99-i++});return{from:n,to:n,options:r,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}(t,i,n):null}let OT=hQ.define({parser:gH.configure({props:[hJ.add({Element(e){let t=/^(\s*)(<\/)?/.exec(e.textAfter);return e.node.to<=e.pos+t[0].length?e.continue():e.lineIndent(e.node.from)+(t[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag":e=>e.column(e.node.from)+e.unit,Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].length{let a=e.type.id;return 27==a?gY(e,i,t):30==a?gY(e,i,n):33==a?gY(e,i,r):null})}([{tag:"script",attrs:e=>!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type),parser:mp.parser},{tag:"style",attrs:e=>(!e.lang||"css"==e.lang)&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type)),parser:Or.parser}])}),languageData:{commentTokens:{block:{open:""}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}}),Ok=c$.inputHandler.of((e,t,n,r)=>{if(e.composing||e.state.readOnly||t!=n||">"!=r&&"/"!=r||!OT.isActiveAt(e.state,t,-1))return!1;let{state:i}=e,a=i.changeByRange(e=>{var t,n,a;let{head:o}=e,s=hM(i).resolveInner(o,-1),l;if(("TagName"==s.name||"StartTag"==s.name)&&(s=s.parent),">"==r&&"OpenTag"==s.name){if((null===(n=null===(t=s.parent)||void 0===t?void 0:t.lastChild)||void 0===n?void 0:n.name)!="CloseTag"&&(l=Of(i.doc,s.parent,o)))return{range:oX.cursor(o+1),changes:{from:o,insert:`>`}}}else if("/"==r&&"OpenTag"==s.name){let e=s.parent,t=null==e?void 0:e.parent;if(e.from==o-1&&(null===(a=t.lastChild)||void 0===a?void 0:a.name)!="CloseTag"&&(l=Of(i.doc,t,o))){let e=`/${l}>`;return{range:oX.cursor(o+e.length),changes:{from:o,insert:e}}}}return{range:e}});return!a.changes.empty&&(e.dispatch(a,{userEvent:"input.type",scrollIntoView:!0}),!0)}),O_=h$({block:{open:""}}),OS=gp.configure({props:[h3.add(e=>{if(!(!e.is("Block")||e.is("Document")))return(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})}),hJ.add({Document:()=>null}),hN.add({Document:O_})]});function Ow(e){return new hL(O_,e)}let OE=Ow(OS),OC=OS.configure([gk,gw,gS,gE]),OA=Ow(OC);function OR(e,t){return t.sliceString(e.from,e.from+50)}class OP{constructor(e,t,n,r,i,a,o){this.node=e,this.from=t,this.to=n,this.spaceBefore=r,this.spaceAfter=i,this.type=a,this.item=o}blank(e=!0){let t=this.spaceBefore;if("Blockquote"==this.node.name)t+=">";else for(let e=this.to-this.from-t.length-this.spaceAfter.length;e>0;e--)t+=" ";return t+(e?this.spaceAfter:"")}marker(e,t){let n="OrderedList"==this.node.name?String(+ON(this.item,e)[2]+t):"";return this.spaceBefore+n+this.type+this.spaceAfter}}function OI(e,t,n){let r=[];for(let t=e;t&&"Document"!=t.name;t=t.parent)("ListItem"==t.name||"Blockquote"==t.name)&&r.push(t);let i=[],a=0;for(let e=r.length-1;e>=0;e--){let o=r[e],s,l=a;if("Blockquote"==o.name&&(s=/^[ \t]*>( ?)/.exec(t.slice(a))))a+=s[0].length,i.push(new OP(o,l,a,"",s[1],">",null));else if("ListItem"==o.name&&"OrderedList"==o.parent.name&&(s=/^([ \t]*)\d+([.)])([ \t]*)/.exec(OR(o,n)))){let e=s[3],t=s[0].length;e.length>=4&&(e=e.slice(0,e.length-4),t-=4),a+=t,i.push(new OP(o.parent,l,a,s[1],e,s[2],o))}else if("ListItem"==o.name&&"BulletList"==o.parent.name&&(s=/^([ \t]*)([-+*])([ \t]{1,4}\[[ xX]\])?([ \t]+)/.exec(OR(o,n)))){let e=s[4],t=s[0].length;e.length>4&&(e=e.slice(0,e.length-4),t-=4);let n=s[2];s[3]&&(n+=s[3].replace(/[xX]/," ")),a+=t,i.push(new OP(o.parent,l,a,s[1],e,n,o))}}return i}function ON(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function O$(e,t,n,r=0){for(let i=-1,a=e;;){if("ListItem"==a.name){let e=ON(a,t),o=+e[2];if(i>=0){if(o!=i+1)return;n.push({from:a.from+e[1].length,to:a.from+e[0].length,insert:String(i+2+r)})}i=o}let e=a.nextSibling;if(!e)break;a=e}}function OL(e){return"QuoteMark"==e.name||"ListMark"==e.name}let OD=[{key:"Enter",run:({state:e,dispatch:t})=>{let n=hM(e),{doc:r}=e,i=null,a=e.changeByRange(t=>{if(!t.empty||!OA.isActiveAt(e,t.from))return i={range:t};let a=t.from,o=r.lineAt(a),s=OI(n.resolveInner(a,-1),o.text,r);for(;s.length&&s[s.length-1].from>a-o.from;)s.pop();if(!s.length)return i={range:t};let l=s[s.length-1];if(l.to-l.spaceAfter.length>a-o.from)return i={range:t};let u=a>=l.to-l.spaceAfter.length&&!/\S/.test(o.text.slice(l.to));if(l.item&&u){if(l.node.firstChild.to>=a||o.from>0&&!/[^\s>]/.test(r.lineAt(o.from-1).text)){let e=s.length>1?s[s.length-2]:null,t,n="";e&&e.item?(t=o.from+e.from,n=e.marker(r,1)):t=o.from+(e?e.to:0);let i=[{from:t,to:a,insert:n}];return"OrderedList"==l.node.name&&O$(l.item,r,i,-2),e&&"OrderedList"==e.node.name&&O$(e.item,r,i),{range:oX.cursor(t+n.length),changes:i}}{let t="";for(let e=0,n=s.length-2;e<=n;e++)t+=s[e].blank(e\s*$/.exec(n.text);if(i&&i.index==l.from){let r=e.changes([{from:n.from+i.index,to:n.to},{from:o.from+l.from,to:o.to}]);return{range:t.map(r),changes:r}}}let c=[];"OrderedList"==l.node.name&&O$(l.item,r,c);let d=e.lineBreak,h=l.item&&l.item.from]*/.exec(o.text)[0].length>=l.to)for(let e=0,t=s.length-1;e<=t;e++)d+=e!=t||h?s[e].blank():s[e].marker(r,1);let p=a;for(;p>o.from&&/\s/.test(o.text.charAt(p-o.from-1));)p--;return c.push({from:p,to:a,insert:d}),{range:oX.cursor(p+d.length),changes:c}});return!i&&(t(e.update(a,{scrollIntoView:!0,userEvent:"input"})),!0)}},{key:"Backspace",run:({state:e,dispatch:t})=>{let n=hM(e),r=null,i=e.changeByRange(t=>{let i=t.from,{doc:a}=e;if(t.empty&&OA.isActiveAt(e,t.from)){let e=a.lineAt(i),r=OI(function(e,t){let n=e.resolveInner(t,-1),r=t;OL(n)&&(r=n.from,n=n.parent);for(let e;e=n.childBefore(r);)if(OL(e))r=e.from;else if("OrderedList"==e.name||"BulletList"==e.name)r=(n=e.lastChild).to;else break;return n}(n,i),e.text,a);if(r.length){let n=r[r.length-1],a=n.to-n.spaceAfter.length+(n.spaceAfter?1:0);if(i-e.from>a&&!/\S/.test(e.text.slice(a,i-e.from)))return{range:oX.cursor(e.from+a),changes:{from:e.from+a,to:i}};if(i-e.from==a){let r=e.from+n.from;if(n.item&&n.node.from{if(e.next<0)e.acceptToken(167);else if(10!=e.next&&13!=e.next);else if(t.context.depth<0)e.acceptToken(165,1);else{e.advance();let t=0;for(;32==e.next||9==e.next;)e.advance(),t++;let n=10==e.next||13==e.next||35==e.next;e.acceptToken(n?166:164,-t)}},{contextual:!0,fallback:!0}),OB=new fy((e,t)=>{let n=t.context.depth;if(n<0)return;let r=e.peek(-1);if((10==r||13==r)&&t.context.depth>=0){let t=0,r=0;for(;;){if(32==e.next)t++;else if(9==e.next)t+=8-t%8;else break;e.advance(),r++}t!=n&&10!=e.next&&13!=e.next&&35!=e.next&&(te.depth<0&&OM.indexOf(t)>-1?e.parent:e,shift:(e,t,n,r)=>162==t?new OU(e,function(e){let t=0;for(let n=0;ne.hash}),OW=new fy(e=>{for(let t=0;t<5;t++){if(e.next!="print".charCodeAt(t))return;e.advance()}if(!/\w/.test(String.fromCharCode(e.next)))for(let t=0;;t++){let n=e.peek(t);if(32!=n&&9!=n){40!=n&&46!=n&&10!=n&&13!=n&&35!=n&&e.acceptToken(1);return}}}),OZ=hh({'async "*" "**" FormatConversion FormatSpec':hI.modifier,"for while if elif else try except finally return raise break continue with pass assert await yield":hI.controlKeyword,"in not and or is del":hI.operatorKeyword,"from def class global nonlocal lambda":hI.definitionKeyword,import:hI.moduleKeyword,"with as print":hI.keyword,Boolean:hI.bool,None:hI.null,VariableName:hI.variableName,"CallExpression/VariableName":hI.function(hI.variableName),"FunctionDefinition/VariableName":hI.function(hI.definition(hI.variableName)),"ClassDefinition/VariableName":hI.definition(hI.className),PropertyName:hI.propertyName,"CallExpression/MemberExpression/PropertyName":hI.function(hI.propertyName),Comment:hI.lineComment,Number:hI.number,String:hI.string,FormatString:hI.special(hI.string),UpdateOp:hI.updateOperator,ArithOp:hI.arithmeticOperator,BitOp:hI.bitwiseOperator,CompareOp:hI.compareOperator,AssignOp:hI.definitionOperator,Ellipsis:hI.punctuation,At:hI.meta,"( )":hI.paren,"[ ]":hI.squareBracket,"{ }":hI.brace,".":hI.derefOperator,", ;":hI.separator}),Oq={__proto__:null,await:40,or:50,and:52,in:56,not:58,is:60,if:66,else:68,lambda:72,yield:90,from:92,async:98,for:100,None:152,True:154,False:154,del:168,pass:172,break:176,continue:180,return:184,raise:192,import:196,as:198,global:202,nonlocal:204,assert:208,elif:218,while:222,try:228,except:230,finally:232,with:236,def:240,class:250},OG=fP.deserialize({version:14,states:"!?pO`Q$IXOOO%cQ$I[O'#GaOOQ$IS'#Cm'#CmOOQ$IS'#Cn'#CnO'RQ$IWO'#ClO(tQ$I[O'#G`OOQ$IS'#Ga'#GaOOQ$IS'#DS'#DSOOQ$IS'#G`'#G`O)bQ$IWO'#CsO)rQ$IWO'#DdO*SQ$IWO'#DhOOQ$IS'#Ds'#DsO*gO`O'#DsO*oOpO'#DsO*wO!bO'#DtO+SO#tO'#DtO+_O&jO'#DtO+jO,UO'#DtO-lQ$I[O'#GQOOQ$IS'#GQ'#GQO'RQ$IWO'#GPO/OQ$I[O'#GPOOQ$IS'#E]'#E]O/gQ$IWO'#E^OOQ$IS'#GO'#GOO/qQ$IWO'#F}OOQ$IV'#F}'#F}O/|Q$IWO'#FPOOQ$IS'#Fr'#FrO0RQ$IWO'#FOOOQ$IV'#H]'#H]OOQ$IV'#F|'#F|OOQ$IT'#FR'#FRQ`Q$IXOOO'RQ$IWO'#CoO0aQ$IWO'#C{O0hQ$IWO'#DPO0vQ$IWO'#GeO1WQ$I[O'#EQO'RQ$IWO'#EROOQ$IS'#ET'#ETOOQ$IS'#EV'#EVOOQ$IS'#EX'#EXO1lQ$IWO'#EZO2SQ$IWO'#E_O/|Q$IWO'#EaO2gQ$I[O'#EaO/|Q$IWO'#EdO/gQ$IWO'#EgO/gQ$IWO'#EkO/gQ$IWO'#EnO2rQ$IWO'#EpO2yQ$IWO'#EuO3UQ$IWO'#EqO/gQ$IWO'#EuO/|Q$IWO'#EwO/|Q$IWO'#E|OOQ$IS'#Cc'#CcOOQ$IS'#Cd'#CdOOQ$IS'#Ce'#CeOOQ$IS'#Cf'#CfOOQ$IS'#Cg'#CgOOQ$IS'#Ch'#ChOOQ$IS'#Cj'#CjO'RQ$IWO,58|O'RQ$IWO,58|O'RQ$IWO,58|O'RQ$IWO,58|O'RQ$IWO,58|O'RQ$IWO,58|O3ZQ$IWO'#DmOOQ$IS,5:W,5:WO3nQ$IWO'#GoOOQ$IS,5:Z,5:ZO3{Q%1`O,5:ZO4QQ$I[O,59WO0aQ$IWO,59`O0aQ$IWO,59`O0aQ$IWO,59`O6pQ$IWO,59`O6uQ$IWO,59`O6|Q$IWO,59hO7TQ$IWO'#G`O8ZQ$IWO'#G_OOQ$IS'#G_'#G_OOQ$IS'#DY'#DYO8rQ$IWO,59_O'RQ$IWO,59_O9QQ$IWO,59_O9VQ$IWO,5:PO'RQ$IWO,5:POOQ$IS,5:O,5:OO9eQ$IWO,5:OO9jQ$IWO,5:VO'RQ$IWO,5:VO'RQ$IWO,5:TOOQ$IS,5:S,5:SO9{Q$IWO,5:SO:QQ$IWO,5:UOOOO'#FZ'#FZO:VO`O,5:_OOQ$IS,5:_,5:_OOOO'#F['#F[O:_OpO,5:_O:gQ$IWO'#DuOOOO'#F]'#F]O:wO!bO,5:`OOQ$IS,5:`,5:`OOOO'#F`'#F`O;SO#tO,5:`OOOO'#Fa'#FaO;_O&jO,5:`OOOO'#Fb'#FbO;jO,UO,5:`OOQ$IS'#Fc'#FcO;uQ$I[O,5:dO>gQ$I[O,5hQ$IZO<TAN>TO#FQQ$IWO<aAN>aO/gQ$IWO1G1^O#FbQ$I[O1G1^P#FlQ$IWO'#FWOOQ$IS1G1d1G1dP#FyQ$IWO'#F^O#GWQ$IWO7+(mOOOO-E9]-E9]O#GnQ$IWO7+'qOOQ$ISAN?VAN?VO#HXQ$IWO,5UZ%q7[%kW%y#tOr(}rs)}sw(}wx>wx#O(}#O#P2]#P#o(}#o#p:X#p#q(}#q#r2q#r~(}:Y?QX%q7[%kW%y#tOr>wrs?ms#O>w#O#PAP#P#o>w#o#p8Y#p#q>w#q#r6g#r~>w:Y?rX%q7[Or>wrs@_s#O>w#O#PAP#P#o>w#o#p8Y#p#q>w#q#r6g#r~>w:Y@dX%q7[Or>wrs-}s#O>w#O#PAP#P#o>w#o#p8Y#p#q>w#q#r6g#r~>w:YAUT%q7[O#o>w#o#p6g#p#q>w#q#r6g#r~>w`x#O!`x#O!gZ%kW%f,XOY!wZ]!Ad]^>w^r!Adrs!Bhs#O!Ad#O#P!C[#P#o!Ad#o#p!9f#p#q!Ad#q#r!7x#r~!AdEc!BoX%q7[%f,XOr>wrs@_s#O>w#O#PAP#P#o>w#o#p8Y#p#q>w#q#r6g#r~>wEc!CaT%q7[O#o!Ad#o#p!7x#p#q!Ad#q#r!7x#r~!AdGZ!CuT%q7[O#o!-l#o#p!DU#p#q!-l#q#r!DU#r~!-l0}!De]%hS%kW%f,X%n`%w!b%y#tOY!DUYZAyZ]!DU]^Ay^r!DUrs!E^sw!DUwx!5tx#O!DU#O#P!FU#P#o!DU#o#p!F[#p~!DU0}!EiX%hS%f,X%n`%w!bOrAyrsCiswAywx5Px#OAy#O#PEo#P#oAy#o#pEu#p~Ay0}!FXPO~!DU0}!Fe]%hS%kW%f,XOY!`x#O!`sw#=dwx#@Sx#O#=d#O#P#Av#P#o#=d#o#p#0Y#p~#=d2P#=mZQ1s%hS%kWOY#=dYZ:{Z]#=d]^:{^r#=drs#>`sw#=dwx#@Sx#O#=d#O#P#Av#P~#=d2P#>gZQ1s%hSOY#=dYZ:{Z]#=d]^:{^r#=drs#?Ysw#=dwx#@Sx#O#=d#O#P#Av#P~#=d2P#?aZQ1s%hSOY#=dYZ:{Z]#=d]^:{^r#=drs#,zsw#=dwx#@Sx#O#=d#O#P#Av#P~#=d2P#@ZZQ1s%kWOY#=dYZ:{Z]#=d]^:{^r#=drs#>`sw#=dwx#@|x#O#=d#O#P#Av#P~#=d2P#ATZQ1s%kWOY#=dYZ:{Z]#=d]^:{^r#=drs#>`sw#=dwx#9bx#O#=d#O#P#Av#P~#=d2P#A{TQ1sOY#=dYZ:{Z]#=d]^:{^~#=dLe#Bg_Q1s%q7[%kW%y#tOY!NdYZ(}Z]!Nd]^(}^r!Ndrs# rsw!Ndwx#Cfx#O!Nd#O#P#/f#P#o!Nd#o#p#wZ]#Cf]^>w^r#Cfrs#Djs#O#Cf#O#P#Fj#P#o#Cf#o#p#8h#p#q#Cf#q#r#5h#r~#CfJ}#Dq]Q1s%q7[OY#CfYZ>wZ]#Cf]^>w^r#Cfrs#Ejs#O#Cf#O#P#Fj#P#o#Cf#o#p#8h#p#q#Cf#q#r#5h#r~#CfJ}#Eq]Q1s%q7[OY#CfYZ>wZ]#Cf]^>w^r#Cfrs#'[s#O#Cf#O#P#Fj#P#o#Cf#o#p#8h#p#q#Cf#q#r#5h#r~#CfJ}#FqXQ1s%q7[OY#CfYZ>wZ]#Cf]^>w^#o#Cf#o#p#5h#p#q#Cf#q#r#5h#r~#CfLu#GeXQ1s%q7[OY!KxYZ'PZ]!Kx]^'P^#o!Kx#o#p#HQ#p#q!Kx#q#r#HQ#r~!Kx6i#Ha]Q1s%hS%kW%n`%w!b%y#tOY#HQYZAyZ]#HQ]^Ay^r#HQrs#IYsw#HQwx#3dx#O#HQ#O#P#Mn#P#o#HQ#o#p#NS#p~#HQ6i#Ie]Q1s%hS%n`%w!bOY#HQYZAyZ]#HQ]^Ay^r#HQrs#J^sw#HQwx#3dx#O#HQ#O#P#Mn#P#o#HQ#o#p#NS#p~#HQ6i#Ji]Q1s%hS%n`%w!bOY#HQYZAyZ]#HQ]^Ay^r#HQrs#Kbsw#HQwx#3dx#O#HQ#O#P#Mn#P#o#HQ#o#p#NS#p~#HQ3k#KmZQ1s%hS%n`%w!bOY#KbYZD_Z]#Kb]^D_^w#Kbwx#)|x#O#Kb#O#P#L`#P#o#Kb#o#p#Lt#p~#Kb3k#LeTQ1sOY#KbYZD_Z]#Kb]^D_^~#Kb3k#L{ZQ1s%hSOY#,zYZ1OZ]#,z]^1O^w#,zwx#-nx#O#,z#O#P#/Q#P#o#,z#o#p#Kb#p~#,z6i#MsTQ1sOY#HQYZAyZ]#HQ]^Ay^~#HQ6i#N]]Q1s%hS%kWOY#=dYZ:{Z]#=d]^:{^r#=drs#>`sw#=dwx#@Sx#O#=d#O#P#Av#P#o#=d#o#p#HQ#p~#=dLu$ c_Q1s%q7[%hS%n`%w!bOY!KxYZ'PZ]!Kx]^'P^r!Kxrs$!bsw!Kxwx!MYx#O!Kx#O#P#G^#P#o!Kx#o#p#NS#p#q!Kx#q#r#HQ#r~!KxIw$!o]Q1s%q7[%hS%n`%w!bOY$!bYZGgZ]$!b]^Gg^w$!bwx#%[x#O$!b#O#P$#h#P#o$!b#o#p#Lt#p#q$!b#q#r#Kb#r~$!bIw$#oXQ1s%q7[OY$!bYZGgZ]$!b]^Gg^#o$!b#o#p#Kb#p#q$!b#q#r#Kb#r~$!bMV$$i_Q1s%q7[%kW%tp%y#tOY$%hYZIqZ]$%h]^Iq^r$%hrs# rsw$%hwx$.px#O$%h#O#P$&x#P#o$%h#o#p$-n#p#q$%h#q#r$'l#r~$%hMV$%y_Q1s%q7[%hS%kW%tp%w!b%y#tOY$%hYZIqZ]$%h]^Iq^r$%hrs# rsw$%hwx$$[x#O$%h#O#P$&x#P#o$%h#o#p$-n#p#q$%h#q#r$'l#r~$%hMV$'PXQ1s%q7[OY$%hYZIqZ]$%h]^Iq^#o$%h#o#p$'l#p#q$%h#q#r$'l#r~$%h6y$'{]Q1s%hS%kW%tp%w!b%y#tOY$'lYZKXZ]$'l]^KX^r$'lrs#1`sw$'lwx$(tx#O$'l#O#P$-Y#P#o$'l#o#p$-n#p~$'l6y$)P]Q1s%kW%tp%y#tOY$'lYZKXZ]$'l]^KX^r$'lrs#1`sw$'lwx$)xx#O$'l#O#P$-Y#P#o$'l#o#p$-n#p~$'l6y$*T]Q1s%kW%tp%y#tOY$'lYZKXZ]$'l]^KX^r$'lrs#1`sw$'lwx$*|x#O$'l#O#P$-Y#P#o$'l#o#p$-n#p~$'l5c$+XZQ1s%kW%tp%y#tOY$*|YZMmZ]$*|]^Mm^r$*|rs#6ds#O$*|#O#P$+z#P#o$*|#o#p$,`#p~$*|5c$,PTQ1sOY$*|YZMmZ]$*|]^Mm^~$*|5c$,gZQ1s%kWOY#9bYZ8tZ]#9b]^8t^r#9brs#:Us#O#9b#O#P#;h#P#o#9b#o#p$*|#p~#9b6y$-_TQ1sOY$'lYZKXZ]$'l]^KX^~$'l6y$-w]Q1s%hS%kWOY#=dYZ:{Z]#=d]^:{^r#=drs#>`sw#=dwx#@Sx#O#=d#O#P#Av#P#o#=d#o#p$'l#p~#=dMV$.}_Q1s%q7[%kW%tp%y#tOY$%hYZIqZ]$%h]^Iq^r$%hrs# rsw$%hwx$/|x#O$%h#O#P$&x#P#o$%h#o#p$-n#p#q$%h#q#r$'l#r~$%hKo$0Z]Q1s%q7[%kW%tp%y#tOY$/|YZ!!uZ]$/|]^!!u^r$/|rs#Djs#O$/|#O#P$1S#P#o$/|#o#p$,`#p#q$/|#q#r$*|#r~$/|Ko$1ZXQ1s%q7[OY$/|YZ!!uZ]$/|]^!!u^#o$/|#o#p$*|#p#q$/|#q#r$*|#r~$/|Mg$1}XQ1s%q7[OY!IYYZ$}Z]!IY]^$}^#o!IY#o#p$2j#p#q!IY#q#r$2j#r~!IY7Z$2{]Q1s%hS%kW%n`%tp%w!b%y#tOY$2jYZ!$gZ]$2j]^!$g^r$2jrs#IYsw$2jwx$(tx#O$2j#O#P$3t#P#o$2j#o#p$4Y#p~$2j7Z$3yTQ1sOY$2jYZ!$gZ]$2j]^!$g^~$2j7Z$4c]Q1s%hS%kWOY#=dYZ:{Z]#=d]^:{^r#=drs#>`sw#=dwx#@Sx#O#=d#O#P#Av#P#o#=d#o#p$2j#p~#=dGz$5o]$}Q%q7[%hS%kW%n`%tp%w!b%y#tOr$}rs&Rsw$}wxHsx!_$}!_!`$6h!`#O$}#O#P!$R#P#o$}#o#p!%i#p#q$}#q#r!$g#r~$}Gz$6{Z!s,W%q7[%hS%kW%n`%tp%w!b%y#tOr$}rs&Rsw$}wxHsx#O$}#O#P!$R#P#o$}#o#p!%i#p#q$}#q#r!$g#r~$}Gz$8R]$wQ%q7[%hS%kW%n`%tp%w!b%y#tOr$}rs&Rsw$}wxHsx!_$}!_!`$6h!`#O$}#O#P!$R#P#o$}#o#p!%i#p#q$}#q#r!$g#r~$}G{$9Z_%r`%q7[%kW%f,X%tp%y#tOY$:YYZIqZ]$:Y]^Iq^r$:Yrs$;jsw$:Ywx%%zx#O$:Y#O#P%!^#P#o$:Y#o#p%$x#p#q$:Y#q#r%!r#r~$:YGk$:k_%q7[%hS%kW%f,X%tp%w!b%y#tOY$:YYZIqZ]$:Y]^Iq^r$:Yrs$;jsw$:Ywx% ^x#O$:Y#O#P%!^#P#o$:Y#o#p%$x#p#q$:Y#q#r%!r#r~$:YFy$;u_%q7[%hS%f,X%w!bOY$Sx#O$Sx#O$_Z%q7[%kW%f,X%y#tOr(}rs)}sw(}wx={x#O(}#O#P2]#P#o(}#o#p:X#p#q(}#q#r2q#r~(}Fy$?VT%q7[O#o$Sx#O$T!Q!_$}!_!`$6h!`#O$}#O#P!$R#P#o$}#o#p!%i#p#q$}#q#r!$g#r~$}Gz%>h]%OQ%q7[%hS%kW%n`%tp%w!b%y#tOr$}rs&Rsw$}wxHsx!_$}!_!`$6h!`#O$}#O#P!$R#P#o$}#o#p!%i#p#q$}#q#r!$g#r~$}Gy%?tu!f,V%q7[%hS%kW%n`%tp%w!b%y#tOr$}rs&Rsw$}wxHsx!O$}!O!P%BX!P!Q$}!Q![%Cc![!d$}!d!e%Ee!e!g$}!g!h%7Z!h!l$}!l!m%;k!m!q$}!q!r%H_!r!z$}!z!{%KR!{#O$}#O#P!$R#P#R$}#R#S%Cc#S#U$}#U#V%Ee#V#X$}#X#Y%7Z#Y#^$}#^#_%;k#_#c$}#c#d%H_#d#l$}#l#m%KR#m#o$}#o#p!%i#p#q$}#q#r!$g#r~$}Gy%Bj]%q7[%hS%kW%n`%tp%w!b%y#tOr$}rs&Rsw$}wxHsx!Q$}!Q![%5_![#O$}#O#P!$R#P#o$}#o#p!%i#p#q$}#q#r!$g#r~$}Gy%Cvi!f,V%q7[%hS%kW%n`%tp%w!b%y#tOr$}rs&Rsw$}wxHsx!O$}!O!P%BX!P!Q$}!Q![%Cc![!g$}!g!h%7Z!h!l$}!l!m%;k!m#O$}#O#P!$R#P#R$}#R#S%Cc#S#X$}#X#Y%7Z#Y#^$}#^#_%;k#_#o$}#o#p!%i#p#q$}#q#r!$g#r~$}Gy%Ev`%q7[%hS%kW%n`%tp%w!b%y#tOr$}rs&Rsw$}wxHsx!Q$}!Q!R%Fx!R!S%Fx!S#O$}#O#P!$R#P#R$}#R#S%Fx#S#o$}#o#p!%i#p#q$}#q#r!$g#r~$}Gy%G]`!f,V%q7[%hS%kW%n`%tp%w!b%y#tOr$}rs&Rsw$}wxHsx!Q$}!Q!R%Fx!R!S%Fx!S#O$}#O#P!$R#P#R$}#R#S%Fx#S#o$}#o#p!%i#p#q$}#q#r!$g#r~$}Gy%Hp_%q7[%hS%kW%n`%tp%w!b%y#tOr$}rs&Rsw$}wxHsx!Q$}!Q!Y%Io!Y#O$}#O#P!$R#P#R$}#R#S%Io#S#o$}#o#p!%i#p#q$}#q#r!$g#r~$}Gy%JS_!f,V%q7[%hS%kW%n`%tp%w!b%y#tOr$}rs&Rsw$}wxHsx!Q$}!Q!Y%Io!Y#O$}#O#P!$R#P#R$}#R#S%Io#S#o$}#o#p!%i#p#q$}#q#r!$g#r~$}Gy%Kdc%q7[%hS%kW%n`%tp%w!b%y#tOr$}rs&Rsw$}wxHsx!Q$}!Q![%Lo![!c$}!c!i%Lo!i#O$}#O#P!$R#P#R$}#R#S%Lo#S#T$}#T#Z%Lo#Z#o$}#o#p!%i#p#q$}#q#r!$g#r~$}Gy%MSc!f,V%q7[%hS%kW%n`%tp%w!b%y#tOr$}rs&Rsw$}wxHsx!Q$}!Q![%Lo![!c$}!c!i%Lo!i#O$}#O#P!$R#P#R$}#R#S%Lo#S#T$}#T#Z%Lo#Z#o$}#o#p!%i#p#q$}#q#r!$g#r~$}Mg%Nr]y1s%q7[%hS%kW%n`%tp%w!b%y#tOr$}rs&Rsw$}wxHsx!_$}!_!`& k!`#O$}#O#P!$R#P#o$}#o#p!%i#p#q$}#q#r!$g#r~$}x!u!}&+n!}#O$}#O#P!$R#P#R$}#R#S&+n#S#T$}#T#f&+n#f#g&>x#g#o&+n#o#p!%i#p#q$}#q#r!$g#r$g$}$g~&+nGZ&9gZ%q7[%hS%n`%w!b%s,XOr'Prs&:Ysw'Pwx(Rx#O'P#O#PAe#P#o'P#o#pEu#p#q'P#q#rAy#r~'PGZ&:eZ%q7[%hS%n`%w!bOr'Prs&;Wsw'Pwx(Rx#O'P#O#PAe#P#o'P#o#pEu#p#q'P#q#rAy#r~'PD]&;eX%q7[%hS%x,X%n`%w!bOwGgwx,kx#OGg#O#PH_#P#oGg#o#pET#p#qGg#q#rD_#r~GgGk&<_Z%q7[%kW%tp%y#t%m,XOrIqrs)}swIqwx&=Qx#OIq#O#PJs#P#oIq#o#p! T#p#qIq#q#rKX#r~IqGk&=]Z%q7[%kW%tp%y#tOrIqrs)}swIqwx&>Ox#OIq#O#PJs#P#oIq#o#p! T#p#qIq#q#rKX#r~IqFT&>]X%q7[%kW%v,X%tp%y#tOr!!urs?ms#O!!u#O#P!#m#P#o!!u#o#pNc#p#q!!u#q#rMm#r~!!uMg&?_c%q7[%hS%kW%e&j%n`%tp%w!b%y#t%Q,XOr$}rs&9Ysw$}wx&x!i!t&+n!t!u&5j!u!}&+n!}#O$}#O#P!$R#P#R$}#R#S&+n#S#T$}#T#U&+n#U#V&5j#V#Y&+n#Y#Z&>x#Z#o&+n#o#p!%i#p#q$}#q#r!$g#r$g$}$g~&+nG{&CXZ!V,X%q7[%hS%kW%n`%tp%w!b%y#tOr$}rs&Rsw$}wxHsx#O$}#O#P!$R#P#o$}#o#p!%i#p#q$}#q#r!$g#r~$}Oq[e]||-1}],tokenPrec:6584});function OH(e,t){let n=e.lineIndent(t.from),r=e.lineAt(e.pos,-1),i=r.from+r.text.length;return!/\S/.test(r.text)&&e.node.ton?null:n+e.unit}let OY=hQ.define({parser:OG.configure({props:[hJ.add({Body:e=>{var t;return null!==(t=OH(e,e.node))&&void 0!==t?t:e.continue()},IfStatement:e=>/^\s*(else:|elif )/.test(e.textAfter)?e.baseIndent:e.continue(),TryStatement:e=>/^\s*(except |finally:)/.test(e.textAfter)?e.baseIndent:e.continue(),"TupleExpression ComprehensionExpression ParamList ArgList ParenthesizedExpression":h5({closing:")"}),"DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression":h5({closing:"}"}),"ArrayExpression ArrayComprehensionExpression":h5({closing:"]"}),Script:e=>{if(e.pos+/\s*/.exec(e.textAfter)[0].length>=e.node.to){let t=null;for(let n=e.node,r=n.to;(n=n.lastChild)&&n.to==r;)"Body"==n.type.name&&(t=n);if(t){let n=OH(e,t);if(null!=n)return n}}return e.continue()}}),h3.add({"ArrayExpression DictionaryExpression SetExpression TupleExpression":h8,Body:(e,t)=>({from:e.from+1,to:e.to-(e.to==t.doc.length?0:1)})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""']},commentTokens:{line:"#"},indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/}});var OX=e=>"checkbox"===e.type,OV=e=>e instanceof Date,OK=e=>null==e;let OJ=e=>"object"==typeof e;var O1=e=>!OK(e)&&!Array.isArray(e)&&OJ(e)&&!OV(e),O0=e=>O1(e)&&e.target?OX(e.target)?e.target.checked:e.target.value:e,O2=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,O5=(e,t)=>e.has(O2(t)),O9=e=>{let t=e.constructor&&e.constructor.prototype;return O1(t)&&t.hasOwnProperty("isPrototypeOf")},O4="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function O3(e){let t;let n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(!(O4&&(e instanceof Blob||e instanceof FileList))&&(n||O1(e))))return e;else if(t=n?[]:{},n||O9(e))for(let n in e)e.hasOwnProperty(n)&&(t[n]=O3(e[n]));else t=e;return t}var O8=e=>Array.isArray(e)?e.filter(Boolean):[],O6=e=>void 0===e,O7=(e,t,n)=>{if(!t||!O1(e))return n;let r=O8(t.split(/[,[\].]+?/)).reduce((e,t)=>OK(e)?e:e[t],e);return O6(r)||r===e?O6(e[t])?n:e[t]:r};let be={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},bt={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},bn={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},br=U.createContext(null),bi=()=>U.useContext(br);var ba=(e,t,n,r=!0)=>{let i={defaultValues:t._defaultValues};for(let a in e)Object.defineProperty(i,a,{get:()=>(t._proxyFormState[a]!==bt.all&&(t._proxyFormState[a]=!r||bt.all),n&&(n[a]=!0),e[a])});return i},bo=e=>O1(e)&&!Object.keys(e).length,bs=(e,t,n,r)=>{n(e);let{name:i,...a}=e;return bo(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(e=>t[e]===(!r||bt.all))},bl=e=>Array.isArray(e)?e:[e],bu=(e,t,n)=>n&&t?e===t:!e||!t||e===t||bl(e).some(e=>e&&(e.startsWith(t)||t.startsWith(e)));function bc(e){let t=U.useRef(e);t.current=e,U.useEffect(()=>{let n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}var bd=e=>"string"==typeof e,bh=(e,t,n,r,i)=>bd(e)?(r&&t.watch.add(e),O7(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),O7(n,e))):(r&&(t.watchAll=!0),n),bp=e=>/^\w*$/.test(e),bf=e=>O8(e.replace(/["|']|\]/g,"").split(/\.|\[/));function bm(e,t,n){let r=-1,i=bp(t)?[t]:bf(t),a=i.length,o=a-1;for(;++re.render(function(e){let t=bi(),{name:n,control:r=t.control,shouldUnregister:i}=e,a=O5(r._names.array,n),o=function(e){let t=bi(),{control:n=t.control,name:r,defaultValue:i,disabled:a,exact:o}=e||{},s=U.useRef(r);s.current=r,bc({disabled:a,subject:n._subjects.values,next:e=>{bu(s.current,e.name,o)&&u(O3(bh(s.current,n._names,e.values||n._formValues,!1,i)))}});let[l,u]=U.useState(n._getWatch(r,i));return U.useEffect(()=>n._removeUnmounted()),l}({control:r,name:n,defaultValue:O7(r._formValues,n,O7(r._defaultValues,n,e.defaultValue)),exact:!0}),s=function(e){let t=bi(),{control:n=t.control,disabled:r,name:i,exact:a}=e||{},[o,s]=U.useState(n._formState),l=U.useRef(!0),u=U.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=U.useRef(i);return c.current=i,bc({disabled:r,next:e=>l.current&&bu(c.current,e.name,a)&&bs(e,u.current,n._updateFormState)&&s({...n._formState,...e}),subject:n._subjects.state}),U.useEffect(()=>(l.current=!0,u.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),ba(o,n,u.current,!1)}({control:r,name:n}),l=U.useRef(r.register(n,{...e.rules,value:o}));return l.current=r.register(n,e.rules),U.useEffect(()=>{let e=r._options.shouldUnregister||i,t=(e,t)=>{let n=O7(r._fields,e);n&&(n._f.mount=t)};if(t(n,!0),e){let e=O3(O7(r._options.defaultValues,n));bm(r._defaultValues,n,e),O6(O7(r._formValues,n))&&bm(r._formValues,n,e)}return()=>{(a?e&&!r._state.action:e)?r.unregister(n):t(n,!1)}},[n,r,a,i]),{field:{name:n,value:o,onChange:U.useCallback(e=>l.current.onChange({target:{value:O0(e),name:n},type:be.CHANGE}),[n]),onBlur:U.useCallback(()=>l.current.onBlur({target:{value:O7(r._formValues,n),name:n},type:be.BLUR}),[n,r]),ref:e=>{let t=O7(r._fields,n);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}},formState:s,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!O7(s.errors,n)},isDirty:{enumerable:!0,get:()=>!!O7(s.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!O7(s.touchedFields,n)},error:{enumerable:!0,get:()=>O7(s.errors,n)}})}}(e));var bO=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};let bb=(e,t,n)=>{for(let r of n||Object.keys(e)){let n=O7(e,r);if(n){let{_f:e,...r}=n;if(e&&t(e.name)){if(e.ref.focus){e.ref.focus();break}if(e.refs&&e.refs[0].focus){e.refs[0].focus();break}}else O1(r)&&bb(r,t)}}};var by=()=>{let e="undefined"==typeof performance?Date.now():1e3*performance.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{let n=(16*Math.random()+e)%16|0;return("x"==t?n:3&n|8).toString(16)})},bv=(e,t,n={})=>n.shouldFocus||O6(n.shouldFocus)?n.focusName||`${e}.${O6(n.focusIndex)?t:n.focusIndex}.`:"",bx=e=>({isOnSubmit:!e||e===bt.onSubmit,isOnBlur:e===bt.onBlur,isOnChange:e===bt.onChange,isOnAll:e===bt.all,isOnTouch:e===bt.onTouched}),bT=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),bk=(e,t,n)=>{let r=O8(O7(e,n));return bm(r,"root",t[n]),bm(e,n,r),e},b_=e=>"boolean"==typeof e,bS=e=>"file"===e.type,bw=e=>"function"==typeof e,bE=e=>{if(!O4)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},bC=e=>bd(e),bA=e=>"radio"===e.type,bR=e=>e instanceof RegExp;let bP={value:!1,isValid:!1},bI={value:!0,isValid:!0};var bN=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!O6(e[0].attributes.value)?O6(e[0].value)||""===e[0].value?bI:{value:e[0].value,isValid:!0}:bI:bP}return bP};let b$={isValid:!1,value:null};var bL=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,b$):b$;function bD(e,t,n="validate"){if(bC(e)||Array.isArray(e)&&e.every(bC)||b_(e)&&!e)return{type:n,message:bC(e)?e:"",ref:t}}var bQ=e=>O1(e)&&!bR(e)?e:{value:e,message:""},bM=async(e,t,n,r,i)=>{let{ref:a,refs:o,required:s,maxLength:l,minLength:u,min:c,max:d,pattern:h,validate:p,name:f,valueAsNumber:m,mount:g,disabled:O}=e._f,b=O7(t,f);if(!g||O)return{};let y=o?o[0]:a,v=e=>{r&&y.reportValidity&&(y.setCustomValidity(b_(e)?"":e||""),y.reportValidity())},x={},T=bA(a),k=OX(a),_=(m||bS(a))&&O6(a.value)&&O6(b)||bE(a)&&""===a.value||""===b||Array.isArray(b)&&!b.length,S=bO.bind(null,f,n,x),w=(e,t,n,r=bn.maxLength,i=bn.minLength)=>{let o=e?t:n;x[f]={type:e?r:i,message:o,ref:a,...S(e?r:i,o)}};if(i?!Array.isArray(b)||!b.length:s&&(!(T||k)&&(_||OK(b))||b_(b)&&!b||k&&!bN(o).isValid||T&&!bL(o).isValid)){let{value:e,message:t}=bC(s)?{value:!!s,message:s}:bQ(s);if(e&&(x[f]={type:bn.required,message:t,ref:y,...S(bn.required,t)},!n))return v(t),x}if(!_&&(!OK(c)||!OK(d))){let e,t;let r=bQ(d),i=bQ(c);if(OK(b)||isNaN(b)){let n=a.valueAsDate||new Date(b),o=e=>new Date(new Date().toDateString()+" "+e),s="time"==a.type,l="week"==a.type;bd(r.value)&&b&&(e=s?o(b)>o(r.value):l?b>r.value:n>new Date(r.value)),bd(i.value)&&b&&(t=s?o(b)r.value),OK(i.value)||(t=n+e.value,i=!OK(t.value)&&b.length<+t.value;if((r||i)&&(w(r,e.message,t.message),!n))return v(x[f].message),x}if(h&&!_&&bd(b)){let{value:e,message:t}=bQ(h);if(bR(e)&&!b.match(e)&&(x[f]={type:bn.pattern,message:t,ref:a,...S(bn.pattern,t)},!n))return v(t),x}if(p){if(bw(p)){let e=await p(b,t),r=bD(e,y);if(r&&(x[f]={...r,...S(bn.validate,r.message)},!n))return v(r.message),x}else if(O1(p)){let e={};for(let r in p){if(!bo(e)&&!n)break;let i=bD(await p[r](b,t),y,r);i&&(e={...i,...S(r,i.message)},v(i.message),n&&(x[f]=e))}if(!bo(e)&&(x[f]={ref:y,...e},!n))return x}}return v(!0),x};function bF(e,t){return[...e,...bl(t)]}var bB=e=>Array.isArray(e)?e.map(()=>void 0):void 0;function bU(e,t,n){return[...e.slice(0,t),...bl(n),...e.slice(t)]}var bz=(e,t,n)=>Array.isArray(e)?(O6(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[];function bj(e,t){return[...bl(t),...bl(e)]}var bW=(e,t)=>O6(t)?[]:function(e,t){let n=0,r=[...e];for(let e of t)r.splice(e-n,1),n++;return O8(r).length?r:[]}(e,bl(t).sort((e,t)=>e-t)),bZ=(e,t,n)=>{e[t]=[e[n],e[n]=e[t]][0]},bq=(e,t,n)=>(e[t]=n,e);function bG(e){let t=bi(),{control:n=t.control,name:r,keyName:i="id",shouldUnregister:a}=e,[o,s]=U.useState(n._getFieldArray(r)),l=U.useRef(n._getFieldArray(r).map(by)),u=U.useRef(o),c=U.useRef(r),d=U.useRef(!1);c.current=r,u.current=o,n._names.array.add(r),e.rules&&n.register(r,e.rules),bc({next:({values:e,name:t})=>{if(t===c.current||!t){let t=O7(e,c.current);Array.isArray(t)&&(s(t),l.current=t.map(by))}},subject:n._subjects.array});let h=U.useCallback(e=>{d.current=!0,n._updateFieldArray(r,e)},[n,r]);return U.useEffect(()=>{if(n._state.action=!1,bT(r,n._names)&&n._subjects.state.next({...n._formState}),d.current&&(!bx(n._options.mode).isOnSubmit||n._formState.isSubmitted)){if(n._options.resolver)n._executeSchema([r]).then(e=>{let t=O7(e.errors,r),i=O7(n._formState.errors,r);(i?!t&&i.type||t&&(i.type!==t.type||i.message!==t.message):t&&t.type)&&(t?bm(n._formState.errors,r,t):function e(t,n){let r=Array.isArray(n)?n:bp(n)?[n]:bf(n),i=1===r.length?t:function(e,t){let n=t.slice(0,-1).length,r=0;for(;r!bo(e)&&n._subjects.state.next({errors:bk(n._formState.errors,e,r)}))}}n._subjects.values.next({name:r,values:{...n._formValues}}),n._names.focus&&bb(n._fields,e=>!!e&&e.startsWith(n._names.focus||"")),n._names.focus="",n._updateValid()},[o,r,n]),U.useEffect(()=>(O7(n._formValues,r)||n._updateFieldArray(r),()=>{(n._options.shouldUnregister||a)&&n.unregister(r)}),[r,n,i,a]),{swap:U.useCallback((e,t)=>{let i=n._getFieldArray(r);bZ(i,e,t),bZ(l.current,e,t),h(i),s(i),n._updateFieldArray(r,i,bZ,{argA:e,argB:t},!1)},[h,r,n]),move:U.useCallback((e,t)=>{let i=n._getFieldArray(r);bz(i,e,t),bz(l.current,e,t),h(i),s(i),n._updateFieldArray(r,i,bz,{argA:e,argB:t},!1)},[h,r,n]),prepend:U.useCallback((e,t)=>{let i=bl(O3(e)),a=bj(n._getFieldArray(r),i);n._names.focus=bv(r,0,t),l.current=bj(l.current,i.map(by)),h(a),s(a),n._updateFieldArray(r,a,bj,{argA:bB(e)})},[h,r,n]),append:U.useCallback((e,t)=>{let i=bl(O3(e)),a=bF(n._getFieldArray(r),i);n._names.focus=bv(r,a.length-1,t),l.current=bF(l.current,i.map(by)),h(a),s(a),n._updateFieldArray(r,a,bF,{argA:bB(e)})},[h,r,n]),remove:U.useCallback(e=>{let t=bW(n._getFieldArray(r),e);l.current=bW(l.current,e),h(t),s(t),n._updateFieldArray(r,t,bW,{argA:e})},[h,r,n]),insert:U.useCallback((e,t,i)=>{let a=bl(O3(t)),o=bU(n._getFieldArray(r),e,a);n._names.focus=bv(r,e,i),l.current=bU(l.current,e,a.map(by)),h(o),s(o),n._updateFieldArray(r,o,bU,{argA:e,argB:bB(t)})},[h,r,n]),update:U.useCallback((e,t)=>{let i=O3(t),a=bq(n._getFieldArray(r),e,i);l.current=[...a].map((t,n)=>t&&n!==e?l.current[n]:by()),h(a),s([...a]),n._updateFieldArray(r,a,bq,{argA:e,argB:i},!0,!1)},[h,r,n]),replace:U.useCallback(e=>{let t=bl(O3(e));l.current=t.map(by),h([...t]),s([...t]),n._updateFieldArray(r,[...t],e=>e,{},!0,!1)},[h,r,n]),fields:U.useMemo(()=>o.map((e,t)=>({...e,[i]:l.current[t]||by()})),[o,i])}}bt.onSubmit,bt.onChange;var bH=n(48738),bY=n(12013);let bX={basename:function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');bV(e);let r=0,i=-1,a=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;a--;)if(47===e.charCodeAt(a)){if(n){r=a+1;break}}else i<0&&(n=!0,i=a+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let o=-1,s=t.length-1;for(;a--;)if(47===e.charCodeAt(a)){if(n){r=a+1;break}}else o<0&&(n=!0,o=a+1),s>-1&&(e.charCodeAt(a)===t.charCodeAt(s--)?s<0&&(i=a):(s=-1,i=o));return r===i?i=o:i<0&&(i=e.length),e.slice(r,i)},dirname:function(e){let t;if(bV(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.charCodeAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.charCodeAt(0)?"/":".":1===n&&47===e.charCodeAt(0)?"//":e.slice(0,n)},extname:function(e){let t;bV(e);let n=e.length,r=-1,i=0,a=-1,o=0;for(;n--;){let s=e.charCodeAt(n);if(47===s){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===s?a<0?a=n:1!==o&&(o=1):a>-1&&(o=-1)}return a<0||r<0||0===o||1===o&&a===r-1&&a===i+1?"":e.slice(a,r)},join:function(...e){let t,n=-1;for(;++n2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",a=0):a=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),o=l,s=0;continue}}else if(i.length>0){i="",a=0,o=l,s=0;continue}}t&&(i=i.length>0?i+"/..":"..",a=2)}else i.length>0?i+="/"+e.slice(o+1,l):i=e.slice(o+1,l),a=l-o-1;o=l,s=0}else 46===n&&s>-1?s++:s=-1}return i}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.charCodeAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},sep:"/"};function bV(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}let bK={cwd:function(){return"/"}};function bJ(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}let b1=["history","path","basename","stem","extname","dirname"];class b0{constructor(e){let t,n;t=e?"string"==typeof e||bH(e)?{value:e}:bJ(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd=bK.cwd(),this.value,this.stored,this.result,this.map;let r=-1;for(;++r"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),yO=ym({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function yb(e,t){return t in e?e[t]:t}function yy(e,t){return yb(e,t.toLowerCase())}let yv=ym({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:yy,properties:{xmlns:null,xmlnsXLink:null}}),yx=ym({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:ya,ariaAutoComplete:null,ariaBusy:ya,ariaChecked:ya,ariaColCount:ys,ariaColIndex:ys,ariaColSpan:ys,ariaControls:yl,ariaCurrent:null,ariaDescribedBy:yl,ariaDetails:null,ariaDisabled:ya,ariaDropEffect:yl,ariaErrorMessage:null,ariaExpanded:ya,ariaFlowTo:yl,ariaGrabbed:ya,ariaHasPopup:null,ariaHidden:ya,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:yl,ariaLevel:ys,ariaLive:null,ariaModal:ya,ariaMultiLine:ya,ariaMultiSelectable:ya,ariaOrientation:null,ariaOwns:yl,ariaPlaceholder:null,ariaPosInSet:ys,ariaPressed:ya,ariaReadOnly:ya,ariaRelevant:null,ariaRequired:ya,ariaRoleDescription:yl,ariaRowCount:ys,ariaRowIndex:ys,ariaRowSpan:ys,ariaSelected:ya,ariaSetSize:ys,ariaSort:null,ariaValueMax:ys,ariaValueMin:ys,ariaValueNow:ys,ariaValueText:null,role:null}}),yT=ym({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:yy,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:yu,acceptCharset:yl,accessKey:yl,action:null,allow:null,allowFullScreen:yi,allowPaymentRequest:yi,allowUserMedia:yi,alt:null,as:null,async:yi,autoCapitalize:null,autoComplete:yl,autoFocus:yi,autoPlay:yi,blocking:yl,capture:null,charSet:null,checked:yi,cite:null,className:yl,cols:ys,colSpan:null,content:null,contentEditable:ya,controls:yi,controlsList:yl,coords:ys|yu,crossOrigin:null,data:null,dateTime:null,decoding:null,default:yi,defer:yi,dir:null,dirName:null,disabled:yi,download:yo,draggable:ya,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:yi,formTarget:null,headers:yl,height:ys,hidden:yi,high:ys,href:null,hrefLang:null,htmlFor:yl,httpEquiv:yl,id:null,imageSizes:null,imageSrcSet:null,inert:yi,inputMode:null,integrity:null,is:null,isMap:yi,itemId:null,itemProp:yl,itemRef:yl,itemScope:yi,itemType:yl,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:yi,low:ys,manifest:null,max:null,maxLength:ys,media:null,method:null,min:null,minLength:ys,multiple:yi,muted:yi,name:null,nonce:null,noModule:yi,noValidate:yi,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:yi,optimum:ys,pattern:null,ping:yl,placeholder:null,playsInline:yi,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:yi,referrerPolicy:null,rel:yl,required:yi,reversed:yi,rows:ys,rowSpan:ys,sandbox:yl,scope:null,scoped:yi,seamless:yi,selected:yi,shadowRootDelegatesFocus:yi,shadowRootMode:null,shape:null,size:ys,sizes:null,slot:null,span:ys,spellCheck:ya,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ys,step:null,style:null,tabIndex:ys,target:null,title:null,translate:null,type:null,typeMustMatch:yi,useMap:null,value:ya,width:ys,wrap:null,align:null,aLink:null,archive:yl,axis:null,background:null,bgColor:null,border:ys,borderColor:null,bottomMargin:ys,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:yi,declare:yi,event:null,face:null,frame:null,frameBorder:null,hSpace:ys,leftMargin:ys,link:null,longDesc:null,lowSrc:null,marginHeight:ys,marginWidth:ys,noResize:yi,noHref:yi,noShade:yi,noWrap:yi,object:null,profile:null,prompt:null,rev:null,rightMargin:ys,rules:null,scheme:null,scrolling:ya,standby:null,summary:null,text:null,topMargin:ys,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ys,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:yi,disableRemotePlayback:yi,prefix:null,property:null,results:ys,security:null,unselectable:null}}),yk=ym({space:"svg",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"},transform:yb,properties:{about:yc,accentHeight:ys,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ys,amplitude:ys,arabicForm:null,ascent:ys,attributeName:null,attributeType:null,azimuth:ys,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ys,by:null,calcMode:null,capHeight:ys,className:yl,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:ys,diffuseConstant:ys,direction:null,display:null,dur:null,divisor:ys,dominantBaseline:null,download:yi,dx:null,dy:null,edgeMode:null,editable:null,elevation:ys,enableBackground:null,end:null,event:null,exponent:ys,externalResourcesRequired:null,fill:null,fillOpacity:ys,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:yu,g2:yu,glyphName:yu,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ys,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ys,horizOriginX:ys,horizOriginY:ys,id:null,ideographic:ys,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ys,k:ys,k1:ys,k2:ys,k3:ys,k4:ys,kernelMatrix:yc,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ys,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:ys,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:ys,overlineThickness:ys,paintOrder:null,panose1:null,path:null,pathLength:ys,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:yl,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ys,pointsAtY:ys,pointsAtZ:ys,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:yc,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:yc,rev:yc,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:yc,requiredFeatures:yc,requiredFonts:yc,requiredFormats:yc,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:ys,specularExponent:ys,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ys,strikethroughThickness:ys,string:null,stroke:null,strokeDashArray:yc,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ys,strokeOpacity:ys,strokeWidth:null,style:null,surfaceScale:ys,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:yc,tabIndex:ys,tableValues:null,target:null,targetX:ys,targetY:ys,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:yc,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ys,underlineThickness:ys,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ys,values:null,vAlphabetic:ys,vMathematical:ys,vectorEffect:null,vHanging:ys,vIdeographic:ys,version:null,vertAdvY:ys,vertOriginX:ys,vertOriginY:ys,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ys,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),y_=ye([yO,yg,yv,yx,yT],"html"),yS=ye([yO,yg,yv,yx,yk],"svg");var yw=n(20557);let yE=function(e,t,n,r){"function"==typeof t&&"function"!=typeof n&&(r=n,n=t,t=null),(0,yw.S4)(e,t,function(e,t){let r=t[t.length-1];return n(e,r?r.children.indexOf(e):null,r)},r)};function yC(e){if(e.allowedElements&&e.disallowedElements)throw TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return t=>{yE(t,"element",(t,n,r)=>{let i;if(e.allowedElements?i=!e.allowedElements.includes(t.tagName):e.disallowedElements&&(i=e.disallowedElements.includes(t.tagName)),!i&&e.allowElement&&"number"==typeof n&&(i=!e.allowElement(t,n,r)),i&&"number"==typeof n)return e.unwrapDisallowed&&t.children?r.children.splice(n,1,...t.children):r.children.splice(n,1),n})}}var yA=n(97267),yR=n(27490);let yP=/^data[-\w.:]+$/i,yI=/-[a-z]/g,yN=/[A-Z]/g;function y$(e){return"-"+e.toLowerCase()}function yL(e){return e.charAt(1).toUpperCase()}let yD={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"};var yQ=n(94827);let yM=["http","https","mailto","tel"];function yF(e){let t=(e||"").trim(),n=t.charAt(0);if("#"===n||"/"===n)return t;let r=t.indexOf(":");if(-1===r)return t;let i=-1;for(;++ii||-1!==(i=t.indexOf("#"))&&r>i?t:"javascript:void(0)"}let yB={}.hasOwnProperty,yU=new Set(["table","thead","tbody","tfoot","tr"]);function yz(e,t){let n=-1,r=0;for(;++n for more info)`),delete yZ[t]}let t=(0,b4.l)().use(b3.Z).use(e.remarkPlugins||[]).use(b8.Z,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(yC,e),n=new b0;"string"==typeof e.children?n.value=e.children:void 0!==e.children&&null!==e.children&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);let r=t.runSync(t.parse(n),n);if("root"!==r.type)throw TypeError("Expected a `root` node");let i=U.createElement(U.Fragment,{},function e(t,n){let r;let i=[],a=-1;for(;++a4&&"data"===n.slice(0,4)&&yP.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(yI,yL);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!yI.test(e)){let n=e.replace(yN,y$);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=yp}return new i(r,t)}(r.schema,t),a=n;null!=a&&a==a&&(Array.isArray(a)&&(a=i.commaSeparated?function(e,t){let n={},r=""===e[e.length-1]?[...e,""]:e;return r.join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(a):a.join(" ").trim()),"style"===i.property&&"string"==typeof a&&(a=function(e){let t={};try{yQ(e,function(e,n){let r="-ms-"===e.slice(0,4)?`ms-${e.slice(4)}`:e;t[r.replace(/-([a-z])/g,yj)]=n})}catch{}return t}(a)),i.space&&i.property?e[yB.call(yD,i.property)?yD[i.property]:i.property]=a:i.attribute&&(e[i.attribute]=a))}(c,a,n.properties[a],t);("ol"===u||"ul"===u)&&t.listDepth++;let h=e(t,n);("ol"===u||"ul"===u)&&t.listDepth--,t.schema=l;let p=n.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},f=o.components&&yB.call(o.components,u)?o.components[u]:u,m="string"==typeof f||f===U.Fragment;if(!yA.isValidElementType(f))throw TypeError(`Component for name \`${u}\` not defined or is not renderable`);if(c.key=r,"a"===u&&o.linkTarget&&(c.target="function"==typeof o.linkTarget?o.linkTarget(String(c.href||""),n.children,"string"==typeof c.title?c.title:null):o.linkTarget),"a"===u&&s&&(c.href=s(String(c.href||""),n.children,"string"==typeof c.title?c.title:null)),m||"code"!==u||"element"!==i.type||"pre"===i.tagName||(c.inline=!0),m||"h1"!==u&&"h2"!==u&&"h3"!==u&&"h4"!==u&&"h5"!==u&&"h6"!==u||(c.level=Number.parseInt(u.charAt(1),10)),"img"===u&&o.transformImageUri&&(c.src=o.transformImageUri(String(c.src||""),String(c.alt||""),"string"==typeof c.title?c.title:null)),!m&&"li"===u&&"element"===i.type){let e=function(e){let t=-1;for(;++t0?U.createElement(f,c,h):U.createElement(f,c)}(t,r,a,n)):"text"===r.type?"element"===n.type&&yU.has(n.tagName)&&(0,yR.Q)(r)||i.push(r.value):"raw"!==r.type||t.options.skipHtml||i.push(r.value);return i}({options:e,schema:y_,listDepth:0},r));return e.className&&(i=U.createElement("div",{className:e.className},i)),i}yq.propTypes={children:b6.string,className:b6.string,allowElement:b6.func,allowedElements:b6.arrayOf(b6.string),disallowedElements:b6.arrayOf(b6.string),unwrapDisallowed:b6.bool,remarkPlugins:b6.arrayOf(b6.oneOfType([b6.object,b6.func,b6.arrayOf(b6.oneOfType([b6.bool,b6.string,b6.object,b6.func,b6.arrayOf(b6.any)]))])),rehypePlugins:b6.arrayOf(b6.oneOfType([b6.object,b6.func,b6.arrayOf(b6.oneOfType([b6.bool,b6.string,b6.object,b6.func,b6.arrayOf(b6.any)]))])),sourcePos:b6.bool,rawSourcePos:b6.bool,skipHtml:b6.bool,includeElementIndex:b6.bool,transformLinkUri:b6.oneOfType([b6.func,b6.bool]),linkTarget:b6.oneOfType([b6.func,b6.string]),transformImageUri:b6.func,components:b6.object};var yG=n(4663),yH=n(75364);let yY={tokenize:function(e,t,n){let r=0;return function t(a){return(87===a||119===a)&&r<3?(r++,e.consume(a),t):46===a&&3===r?(e.consume(a),i):n(a)};function i(e){return null===e?n(e):t(e)}},partial:!0},yX={tokenize:function(e,t,n){let r,i,a;return o;function o(t){return 46===t||95===t?e.check(yK,l,s)(t):null===t||(0,yH.z3)(t)||(0,yH.B8)(t)||45!==t&&(0,yH.Xh)(t)?l(t):(a=!0,e.consume(t),o)}function s(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),o}function l(e){return i||r||!a?n(e):t(e)}},partial:!0},yV={tokenize:function(e,t){let n=0,r=0;return i;function i(o){return 40===o?(n++,e.consume(o),i):41===o&&r0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}y5[43]=y2,y5[45]=y2,y5[46]=y2,y5[95]=y2,y5[72]=[y2,y0],y5[104]=[y2,y0],y5[87]=[y2,y1],y5[119]=[y2,y1];var vt=n(61706),vn=n(21905),vr=n(62987),vi=n(63233),va=n(42761);class vo{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let i=0;if(0!==n||0!==r.length){for(;ie[0]-t[0]),0===this.map.length)return;let t=this.map.length,n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1])),n.push(this.map[t][2]),e.length=this.map[t][0];n.push([...e]),e.length=0;let r=n.pop();for(;r;)e.push(...r),r=n.pop();this.map.length=0}}let vs={flow:{null:{tokenize:function(e,t,n){let r;let i=this,a=0,o=0;return function(e){let t=i.events.length-1;for(;t>-1;){let e=i.events[t][1].type;if("lineEnding"===e||"linePrefix"===e)t--;else break}let r=t>-1?i.events[t][1].type:null,a="tableHead"===r||"tableRow"===r?b:s;return a===b&&i.parser.lazy[i.now().line]?n(e):a(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),124===t||(r=!0,o+=1),l(t)}function l(t){return null===t?n(t):(0,yH.Ch)(t)?o>1?(o=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):(0,yH.xz)(t)?(0,va.f)(e,l,"whitespace")(t):(o+=1,r&&(r=!1,a+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,l):(e.enter("data"),u(t))}function u(t){return null===t||124===t||(0,yH.z3)(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?c:u)}function c(t){return 92===t||124===t?(e.consume(t),u):u(t)}function d(t){return(i.interrupt=!1,i.parser.lazy[i.now().line])?n(t):(e.enter("tableDelimiterRow"),r=!1,(0,yH.xz)(t))?(0,va.f)(e,h,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):h(t)}function h(t){return 45===t||58===t?f(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):n(t)}function p(t){return(0,yH.xz)(t)?(0,va.f)(e,f,"whitespace")(t):f(t)}function f(t){return 58===t?(o+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(o+=1,m(t)):null===t||(0,yH.Ch)(t)?O(t):n(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(n){return 45===n?(e.consume(n),t):58===n?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),g):(e.exit("tableDelimiterFiller"),g(n))}(t)):n(t)}function g(t){return(0,yH.xz)(t)?(0,va.f)(e,O,"whitespace")(t):O(t)}function O(i){return 124===i?h(i):null===i||(0,yH.Ch)(i)?r&&a===o?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(i)):n(i):n(i)}function b(t){return e.enter("tableRow"),y(t)}function y(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),y):null===n||(0,yH.Ch)(n)?(e.exit("tableRow"),t(n)):(0,yH.xz)(n)?(0,va.f)(e,y,"whitespace")(n):(e.enter("data"),v(n))}function v(t){return null===t||124===t||(0,yH.z3)(t)?(e.exit("data"),y(t)):(e.consume(t),92===t?x:v)}function x(t){return 92===t||124===t?(e.consume(t),v):v(t)}},resolveAll:function(e,t){let n,r,i,a=-1,o=!0,s=0,l=[0,0,0,0],u=[0,0,0,0],c=!1,d=0,h=new vo;for(;++an[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",o,t]])}return void 0!==i&&(a.end=Object.assign({},vc(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function vu(e,t,n,r,i){let a=[],o=vc(t.events,n);i&&(i.end=Object.assign({},o),a.push(["exit",i,t])),r.end=Object.assign({},o),a.push(["exit",r,t]),e.add(n+1,0,a)}function vc(e,t){let n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}let vd={text:{91:{tokenize:function(e,t,n){let r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):n(t)};function i(t){return(0,yH.z3)(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),a):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),a):n(t)}function a(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(t)}function o(r){return(0,yH.Ch)(r)?t(r):(0,yH.xz)(r)?e.check({tokenize:vh},t,n)(r):n(r)}}}}};function vh(e,t,n){return(0,va.f)(e,function(e){return null===e?n(e):t(e)},"whitespace")}var vp=n(64777),vf=n(96093);let vm={}.hasOwnProperty,vg=function(e,t,n,r){let i,a;"string"==typeof t||t instanceof RegExp?(a=[[t,n]],i=r):(a=t,i=n),i||(i={});let o=(0,vf.O)(i.ignore||[]),s=function(e){let t=[];if("object"!=typeof e)throw TypeError("Expected array or object as schema");if(Array.isArray(e)){let n=-1;for(;++n0?{type:"text",value:s}:void 0),!1!==s&&(a!==n&&c.push({type:"text",value:e.value.slice(a,n)}),Array.isArray(s)?c.push(...s):s&&c.push(s),a=n+d[0].length,u=!0),!r.global)break;d=r.exec(e.value)}return u?(ae}let vy="phrasing",vv=["autolink","link","image","label"],vx={transforms:[function(e){vg(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,v_],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,vS]],{ignore:["link","linkReference"]})}],enter:{literalAutolink:function(e){this.enter({type:"link",title:null,url:"",children:[]},e)},literalAutolinkEmail:vk,literalAutolinkHttp:vk,literalAutolinkWww:vk},exit:{literalAutolink:function(e){this.exit(e)},literalAutolinkEmail:function(e){this.config.exit.autolinkEmail.call(this,e)},literalAutolinkHttp:function(e){this.config.exit.autolinkProtocol.call(this,e)},literalAutolinkWww:function(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}}},vT={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:vy,notInConstruct:vv},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:vy,notInConstruct:vv},{character:":",before:"[ps]",after:"\\/",inConstruct:vy,notInConstruct:vv}]};function vk(e){this.config.enter.autolinkProtocol.call(this,e)}function v_(e,t,n,r,i){let a="";if(!vw(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!function(e){let 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])))}(n)))return!1;let o=function(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")"),i=(0,vp.w)(e,"("),a=(0,vp.w)(e,")");for(;-1!==r&&i>a;)e+=n.slice(0,r+1),r=(n=n.slice(r+1)).indexOf(")"),a++;return[e,n]}(n+r);if(!o[0])return!1;let s={type:"link",title:null,url:a+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function vS(e,t,n,r){return!(!vw(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function vw(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||(0,yH.B8)(n)||(0,yH.Xh)(n))&&(!t||47!==n)}var vE=n(65298),vC=n(87891),vA=n(48653);vI.peek=function(){return"~"};let vR={canContainEols:["delete"],enter:{strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},exit:{strikethrough:function(e){this.exit(e)}}},vP={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"]}],handlers:{delete:vI}};function vI(e,t,n,r){let i=(0,vA.j)(r),a=n.enter("strikethrough"),o=i.move("~~");return o+=(0,vC.p)(e,n,{...i.current(),before:o,after:"~"})+i.move("~~"),a(),o}var vN=n(42513);function v$(e){return e.length}function vL(e){let t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}let vD={enter:{table:function(e){let t=e._align;this.enter({type:"table",align:t.map(e=>"none"===e?null:e),children:[]},e),this.setData("inTable",!0)},tableData:vM,tableHeader:vM,tableRow:function(e){this.enter({type:"tableRow",children:[]},e)}},exit:{codeText:function(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,vF));let n=this.stack[this.stack.length-1];n.value=t,this.exit(e)},table:function(e){this.exit(e),this.setData("inTable")},tableData:vQ,tableHeader:vQ,tableRow:vQ}};function vQ(e){this.exit(e)}function vM(e){this.enter({type:"tableCell",children:[]},e)}function vF(e,t){return"|"===t?t:e}var vB=n(72937);let vU={exit:{taskListCheckValueChecked:vj,taskListCheckValueUnchecked:vj,paragraph:function(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1],n=e.children[0];if(n&&"text"===n.type){let r;let i=t.children,a=-1;for(;++a1?r(s):(e.consume(s),o++,a);if(o<2&&!t)return r(s);let u=e.exit("strikethroughSequenceTemporary"),c=(0,vr.r)(s);return u._open=!c||2===c&&!!l,u._close=!l||2===l&&!!c,n(s)}(s))}},resolveAll:function(e,t){let n=-1;for(;++nl&&(l=e[u].length);++ds[d])&&(s[d]=e)}n.push(a)}a[u]=n,o[u]=i}let d=-1;if("object"==typeof n&&"length"in n)for(;++ds[d]&&(s[d]=a),p[d]=a),h[d]=o}a.splice(1,0,h),o.splice(1,0,p),u=-1;let f=[];for(;++u"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),xn=xe({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function xr(e,t){return t in e?e[t]:t}function xi(e,t){return xr(e,t.toLowerCase())}let xa=xe({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:xi,properties:{xmlns:null,xmlnsXLink:null}}),xo=xe({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:v1,ariaAutoComplete:null,ariaBusy:v1,ariaChecked:v1,ariaColCount:v2,ariaColIndex:v2,ariaColSpan:v2,ariaControls:v5,ariaCurrent:null,ariaDescribedBy:v5,ariaDetails:null,ariaDisabled:v1,ariaDropEffect:v5,ariaErrorMessage:null,ariaExpanded:v1,ariaFlowTo:v5,ariaGrabbed:v1,ariaHasPopup:null,ariaHidden:v1,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:v5,ariaLevel:v2,ariaLive:null,ariaModal:v1,ariaMultiLine:v1,ariaMultiSelectable:v1,ariaOrientation:null,ariaOwns:v5,ariaPlaceholder:null,ariaPosInSet:v2,ariaPressed:v1,ariaReadOnly:v1,ariaRelevant:null,ariaRequired:v1,ariaRoleDescription:v5,ariaRowCount:v2,ariaRowIndex:v2,ariaRowSpan:v2,ariaSelected:v1,ariaSetSize:v2,ariaSort:null,ariaValueMax:v2,ariaValueMin:v2,ariaValueNow:v2,ariaValueText:null,role:null}}),xs=xe({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:xi,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:v9,acceptCharset:v5,accessKey:v5,action:null,allow:null,allowFullScreen:vJ,allowPaymentRequest:vJ,allowUserMedia:vJ,alt:null,as:null,async:vJ,autoCapitalize:null,autoComplete:v5,autoFocus:vJ,autoPlay:vJ,blocking:v5,capture:null,charSet:null,checked:vJ,cite:null,className:v5,cols:v2,colSpan:null,content:null,contentEditable:v1,controls:vJ,controlsList:v5,coords:v2|v9,crossOrigin:null,data:null,dateTime:null,decoding:null,default:vJ,defer:vJ,dir:null,dirName:null,disabled:vJ,download:v0,draggable:v1,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:vJ,formTarget:null,headers:v5,height:v2,hidden:vJ,high:v2,href:null,hrefLang:null,htmlFor:v5,httpEquiv:v5,id:null,imageSizes:null,imageSrcSet:null,inert:vJ,inputMode:null,integrity:null,is:null,isMap:vJ,itemId:null,itemProp:v5,itemRef:v5,itemScope:vJ,itemType:v5,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:vJ,low:v2,manifest:null,max:null,maxLength:v2,media:null,method:null,min:null,minLength:v2,multiple:vJ,muted:vJ,name:null,nonce:null,noModule:vJ,noValidate:vJ,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:vJ,optimum:v2,pattern:null,ping:v5,placeholder:null,playsInline:vJ,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:vJ,referrerPolicy:null,rel:v5,required:vJ,reversed:vJ,rows:v2,rowSpan:v2,sandbox:v5,scope:null,scoped:vJ,seamless:vJ,selected:vJ,shadowRootDelegatesFocus:vJ,shadowRootMode:null,shape:null,size:v2,sizes:null,slot:null,span:v2,spellCheck:v1,src:null,srcDoc:null,srcLang:null,srcSet:null,start:v2,step:null,style:null,tabIndex:v2,target:null,title:null,translate:null,type:null,typeMustMatch:vJ,useMap:null,value:v1,width:v2,wrap:null,align:null,aLink:null,archive:v5,axis:null,background:null,bgColor:null,border:v2,borderColor:null,bottomMargin:v2,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:vJ,declare:vJ,event:null,face:null,frame:null,frameBorder:null,hSpace:v2,leftMargin:v2,link:null,longDesc:null,lowSrc:null,marginHeight:v2,marginWidth:v2,noResize:vJ,noHref:vJ,noShade:vJ,noWrap:vJ,object:null,profile:null,prompt:null,rev:null,rightMargin:v2,rules:null,scheme:null,scrolling:v1,standby:null,summary:null,text:null,topMargin:v2,valueType:null,version:null,vAlign:null,vLink:null,vSpace:v2,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:vJ,disableRemotePlayback:vJ,prefix:null,property:null,results:v2,security:null,unselectable:null}}),xl=xe({space:"svg",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"},transform:xr,properties:{about:v4,accentHeight:v2,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:v2,amplitude:v2,arabicForm:null,ascent:v2,attributeName:null,attributeType:null,azimuth:v2,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:v2,by:null,calcMode:null,capHeight:v2,className:v5,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:v2,diffuseConstant:v2,direction:null,display:null,dur:null,divisor:v2,dominantBaseline:null,download:vJ,dx:null,dy:null,edgeMode:null,editable:null,elevation:v2,enableBackground:null,end:null,event:null,exponent:v2,externalResourcesRequired:null,fill:null,fillOpacity:v2,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:v9,g2:v9,glyphName:v9,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:v2,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:v2,horizOriginX:v2,horizOriginY:v2,id:null,ideographic:v2,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:v2,k:v2,k1:v2,k2:v2,k3:v2,k4:v2,kernelMatrix:v4,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:v2,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:v2,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:v2,overlineThickness:v2,paintOrder:null,panose1:null,path:null,pathLength:v2,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:v5,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:v2,pointsAtY:v2,pointsAtZ:v2,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:v4,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:v4,rev:v4,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:v4,requiredFeatures:v4,requiredFonts:v4,requiredFormats:v4,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:v2,specularExponent:v2,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:v2,strikethroughThickness:v2,string:null,stroke:null,strokeDashArray:v4,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:v2,strokeOpacity:v2,strokeWidth:null,style:null,surfaceScale:v2,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:v4,tabIndex:v2,tableValues:null,target:null,targetX:v2,targetY:v2,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:v4,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:v2,underlineThickness:v2,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:v2,values:null,vAlphabetic:v2,vMathematical:v2,vectorEffect:null,vHanging:v2,vIdeographic:v2,version:null,vertAdvY:v2,vertOriginX:v2,vertOriginY:v2,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:v2,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),xu=vY([xn,xt,xa,xo,xs],"html"),xc=vY([xn,xt,xa,xo,xl],"svg"),xd=/^data[-\w.:]+$/i,xh=/-[a-z]/g,xp=/[A-Z]/g;function xf(e,t){let n=vX(t),r=t,i=vV;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&xd.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(xh,xg);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!xh.test(e)){let n=e.replace(xp,xm);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=v6}return new i(r,t)}function xm(e){return"-"+e.toLowerCase()}function xg(e){return e.charAt(1).toUpperCase()}let xO=/[#.]/g;function xb(e){let t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function xy(e){let t=[],n=String(e||""),r=n.indexOf(","),i=0,a=!1;for(;!a;){-1===r&&(r=n.length,a=!0);let e=n.slice(i,r).trim();(e||!a)&&t.push(e),i=r+1,r=n.indexOf(",",i)}return t}let xv=new Set(["menu","submit","reset","button"]),xx={}.hasOwnProperty;function xT(e,t,n){let r=n&&function(e){let t={},n=-1;for(;++n-1&&ee)return{line:t+1,column:e-(t>0?n[t-1]:0)+1,offset:e}}return{line:void 0,column:void 0,offset:void 0}},toOffset:function(e){let t=e&&e.line,r=e&&e.column;if("number"==typeof t&&"number"==typeof r&&!Number.isNaN(t)&&!Number.isNaN(r)&&t-1 in n){let e=(n[t-2]||0)+r-1||0;if(e>-1&&e"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),xK=xX({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function xJ(e,t){return t in e?e[t]:t}function x1(e,t){return xJ(e,t.toLowerCase())}let x0=xX({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:x1,properties:{xmlns:null,xmlnsXLink:null}}),x2=xX({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:xB,ariaAutoComplete:null,ariaBusy:xB,ariaChecked:xB,ariaColCount:xz,ariaColIndex:xz,ariaColSpan:xz,ariaControls:xj,ariaCurrent:null,ariaDescribedBy:xj,ariaDetails:null,ariaDisabled:xB,ariaDropEffect:xj,ariaErrorMessage:null,ariaExpanded:xB,ariaFlowTo:xj,ariaGrabbed:xB,ariaHasPopup:null,ariaHidden:xB,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:xj,ariaLevel:xz,ariaLive:null,ariaModal:xB,ariaMultiLine:xB,ariaMultiSelectable:xB,ariaOrientation:null,ariaOwns:xj,ariaPlaceholder:null,ariaPosInSet:xz,ariaPressed:xB,ariaReadOnly:xB,ariaRelevant:null,ariaRequired:xB,ariaRoleDescription:xj,ariaRowCount:xz,ariaRowIndex:xz,ariaRowSpan:xz,ariaSelected:xB,ariaSetSize:xz,ariaSort:null,ariaValueMax:xz,ariaValueMin:xz,ariaValueNow:xz,ariaValueText:null,role:null}}),x5=xX({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:x1,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:xW,acceptCharset:xj,accessKey:xj,action:null,allow:null,allowFullScreen:xF,allowPaymentRequest:xF,allowUserMedia:xF,alt:null,as:null,async:xF,autoCapitalize:null,autoComplete:xj,autoFocus:xF,autoPlay:xF,blocking:xj,capture:null,charSet:null,checked:xF,cite:null,className:xj,cols:xz,colSpan:null,content:null,contentEditable:xB,controls:xF,controlsList:xj,coords:xz|xW,crossOrigin:null,data:null,dateTime:null,decoding:null,default:xF,defer:xF,dir:null,dirName:null,disabled:xF,download:xU,draggable:xB,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:xF,formTarget:null,headers:xj,height:xz,hidden:xF,high:xz,href:null,hrefLang:null,htmlFor:xj,httpEquiv:xj,id:null,imageSizes:null,imageSrcSet:null,inert:xF,inputMode:null,integrity:null,is:null,isMap:xF,itemId:null,itemProp:xj,itemRef:xj,itemScope:xF,itemType:xj,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:xF,low:xz,manifest:null,max:null,maxLength:xz,media:null,method:null,min:null,minLength:xz,multiple:xF,muted:xF,name:null,nonce:null,noModule:xF,noValidate:xF,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:xF,optimum:xz,pattern:null,ping:xj,placeholder:null,playsInline:xF,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:xF,referrerPolicy:null,rel:xj,required:xF,reversed:xF,rows:xz,rowSpan:xz,sandbox:xj,scope:null,scoped:xF,seamless:xF,selected:xF,shadowRootDelegatesFocus:xF,shadowRootMode:null,shape:null,size:xz,sizes:null,slot:null,span:xz,spellCheck:xB,src:null,srcDoc:null,srcLang:null,srcSet:null,start:xz,step:null,style:null,tabIndex:xz,target:null,title:null,translate:null,type:null,typeMustMatch:xF,useMap:null,value:xB,width:xz,wrap:null,align:null,aLink:null,archive:xj,axis:null,background:null,bgColor:null,border:xz,borderColor:null,bottomMargin:xz,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:xF,declare:xF,event:null,face:null,frame:null,frameBorder:null,hSpace:xz,leftMargin:xz,link:null,longDesc:null,lowSrc:null,marginHeight:xz,marginWidth:xz,noResize:xF,noHref:xF,noShade:xF,noWrap:xF,object:null,profile:null,prompt:null,rev:null,rightMargin:xz,rules:null,scheme:null,scrolling:xB,standby:null,summary:null,text:null,topMargin:xz,valueType:null,version:null,vAlign:null,vLink:null,vSpace:xz,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:xF,disableRemotePlayback:xF,prefix:null,property:null,results:xz,security:null,unselectable:null}}),x9=xX({space:"svg",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"},transform:xJ,properties:{about:xZ,accentHeight:xz,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:xz,amplitude:xz,arabicForm:null,ascent:xz,attributeName:null,attributeType:null,azimuth:xz,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:xz,by:null,calcMode:null,capHeight:xz,className:xj,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:xz,diffuseConstant:xz,direction:null,display:null,dur:null,divisor:xz,dominantBaseline:null,download:xF,dx:null,dy:null,edgeMode:null,editable:null,elevation:xz,enableBackground:null,end:null,event:null,exponent:xz,externalResourcesRequired:null,fill:null,fillOpacity:xz,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:xW,g2:xW,glyphName:xW,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:xz,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:xz,horizOriginX:xz,horizOriginY:xz,id:null,ideographic:xz,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:xz,k:xz,k1:xz,k2:xz,k3:xz,k4:xz,kernelMatrix:xZ,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:xz,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:xz,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:xz,overlineThickness:xz,paintOrder:null,panose1:null,path:null,pathLength:xz,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:xj,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:xz,pointsAtY:xz,pointsAtZ:xz,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:xZ,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:xZ,rev:xZ,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:xZ,requiredFeatures:xZ,requiredFonts:xZ,requiredFormats:xZ,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:xz,specularExponent:xz,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:xz,strikethroughThickness:xz,string:null,stroke:null,strokeDashArray:xZ,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:xz,strokeOpacity:xz,strokeWidth:null,style:null,surfaceScale:xz,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:xZ,tabIndex:xz,tableValues:null,target:null,targetX:xz,targetY:xz,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:xZ,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:xz,underlineThickness:xz,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:xz,values:null,vAlphabetic:xz,vMathematical:xz,vectorEffect:null,vHanging:xz,vIdeographic:xz,version:null,vertAdvY:xz,vertOriginX:xz,vertOriginY:xz,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:xz,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),x4=xL([xK,xV,x0,x2,x5],"html"),x3=xL([xK,xV,x0,x2,x9],"svg"),x8=/^data[-\w.:]+$/i,x6=/-[a-z]/g,x7=/[A-Z]/g;function Te(e){return"-"+e.toLowerCase()}function Tt(e){return e.charAt(1).toUpperCase()}var Tn=n(77867);let Tr={}.hasOwnProperty,Ti=(0,Tn.z)("type",{handlers:{root:function(e,t){let n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Ta(e.children,n,t),To(e,n),n},element:function(e,t){let n;let r=t;"element"===e.type&&"svg"===e.tagName.toLowerCase()&&"html"===t.space&&(r=x3);let i=[];if(e.properties){for(n in e.properties)if("children"!==n&&Tr.call(e.properties,n)){let t=function(e,t,n){let r=function(e,t){let n=xD(t),r=t,i=xQ;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&x8.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(x6,Tt);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!x6.test(e)){let n=e.replace(x7,Te);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=xH}return new i(r,t)}(e,t);if(null==n||!1===n||"number"==typeof n&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?function(e,t){let n={},r=""===e[e.length-1]?[...e,""]:e;return r.join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(n):n.join(" ").trim());let i={name:r.attribute,value:!0===n?"":String(n)};if(r.space&&"html"!==r.space&&"svg"!==r.space){let e=i.name.indexOf(":");e<0?i.prefix="":(i.name=i.name.slice(e+1),i.prefix=r.attribute.slice(0,e)),i.namespace=xw.t[r.space]}return i}(r,n,e.properties[n]);t&&i.push(t)}}let a={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:xw.t[r.space],childNodes:[],parentNode:void 0};return a.childNodes=Ta(e.children,a,r),To(e,a),"template"===e.tagName&&e.content&&(a.content=function(e,t){let n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Ta(e.children,n,t),To(e,n),n}(e.content,r)),a},text:function(e){let t={nodeName:"#text",value:e.value,parentNode:void 0};return To(e,t),t},comment:function(e){let t={nodeName:"#comment",data:e.value,parentNode:void 0};return To(e,t),t},doctype:function(e){let t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:void 0};return To(e,t),t}}});function Ta(e,t,n){let r=-1,i=[];if(e)for(;++r{if(e.value.stitch&&null!==n&&null!==t)return n.children[t]=e.value.stitch,t}),"root"!==e.type&&"root"===h.type&&1===h.children.length)return h.children[0];return h;function p(e){let t=-1;if(e)for(;++t{let r=Tu(t,n,e);return r}}let Tp={strip:["script"],clobberPrefix:"user-content-",clobber:["name","id"],ancestors:{tbody:["table"],tfoot:["table"],thead:["table"],td:["table"],th:["table"],tr:["table"]},protocols:{href:["http","https","mailto","xmpp","irc","ircs"],cite:["http","https"],src:["http","https"],longDesc:["http","https"]},tagNames:["h1","h2","h3","h4","h5","h6","br","b","i","strong","em","a","pre","code","img","tt","div","ins","del","sup","sub","p","ol","ul","table","thead","tbody","tfoot","blockquote","dl","dt","dd","kbd","q","samp","var","hr","ruby","rt","rp","li","tr","td","th","s","strike","summary","details","caption","figure","figcaption","abbr","bdo","cite","dfn","mark","small","span","time","wbr","input"],attributes:{a:["href"],img:["src","longDesc"],input:[["type","checkbox"],["disabled",!0]],li:[["className","task-list-item"]],div:["itemScope","itemType"],blockquote:["cite"],del:["cite"],ins:["cite"],q:["cite"],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","ariaDescribedBy","ariaHidden","ariaLabel","ariaLabelledBy","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","cols","colSpan","color","compact","coords","dateTime","dir","disabled","encType","htmlFor","frame","headers","height","hrefLang","hSpace","isMap","id","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rel","rev","rows","rowSpan","rules","scope","selected","shape","size","span","start","summary","tabIndex","target","title","type","useMap","vAlign","value","vSpace","width","itemProp"]},required:{input:{type:"checkbox",disabled:!0}}},Tf={}.hasOwnProperty,Tm={root:{children:TO},doctype:function(e){return e.allowDoctypes?{name:Tb}:void 0},comment:function(e){return e.allowComments?{value:Tv}:void 0},element:{tagName:Ty,properties:function(e,t,n,r){let i;let a=Ty(e,n.tagName,n,r),o=e.attributes||{},s=e.required||{},l=t||{},u=Object.assign({},Tk(o["*"]),Tk(a&&Tf.call(o,a)?o[a]:[])),c={};for(i in l)if(Tf.call(l,i)){let t,n=l[i];if(Tf.call(u,i))t=u[i];else{var d;if(!((d=i).length>4&&"data"===d.slice(0,4).toLowerCase()&&Tf.call(u,"data*")))continue;t=u["data*"]}null!=(n=Array.isArray(n)?function(e,t,n,r){let i=-1,a=[];for(;++i");return r<0?n:n.slice(0,r)}function Tx(e,t){return t}function TT(e,t,n,r){if(("boolean"==typeof t||"number"==typeof t||"string"==typeof t)&&function(e,t,n){let r=String(t),i=r.indexOf(":"),a=r.indexOf("?"),o=r.indexOf("#"),s=r.indexOf("/"),l=e.protocols&&Tf.call(e.protocols,n)?e.protocols[n].concat():[],u=-1;if(0===l.length||i<0||s>-1&&i>s||a>-1&&i>a||o>-1&&i>o)return!0;for(;++ue&&"object"==typeof e&&"flags"in e?e.test(String(t)):e===t)))return e.clobberPrefix&&e.clobber&&e.clobber.includes(n)?e.clobberPrefix+t:t}function Tk(e){let t={},n=-1;for(;++n(function(e,t){let n={type:"root",children:[]};if(e&&"object"==typeof e&&e.type){let r=Tg(Object.assign({},Tp,t||{}),e,[]);r&&(Array.isArray(r)?1===r.length?n=r[0]:n.children=r:n=r)}return n})(t,e)}var TS=n(82492);function Tw(e){return function(t){return!!t.type&&t.type.tabsRole===e}}var TE=Tw("Tab"),TC=Tw("TabList"),TA=Tw("TabPanel");function TR(e,t){return U.Children.map(e,function(e){return null===e?null:TE(e)||TC(e)||TA(e)?t(e):e.props&&e.props.children&&"object"==typeof e.props.children?(0,U.cloneElement)(e,Object.assign({},e.props,{children:TR(e.props.children,t)})):e})}var TP=function(){for(var e,t,n=0,r="";n=s()||(0,e.onSelect)(t,e.selectedIndex,n)}function a(e){for(var t=s(),n=e+1;ne;)if(!TD(l(t)))return t;return e}function s(){return TI(e.children)}function l(e){return t.current["tabs-"+e]}function u(e){var t=e.target;do if(c(t)){if(TD(t))return;i([].slice.call(t.parentNode.children).filter(TL).indexOf(t),e);return}while(null!=(t=t.parentNode))}function c(e){if(!TL(e))return!1;var t=e.parentElement;do{if(t===r.current)return!0;if(t.getAttribute("data-rttabs"))break;t=t.parentElement}while(t);return!1}e.children;var d=e.className,h=(e.disabledTabClassName,e.domRef),p=(e.focus,e.forceRenderTabPanel,e.onSelect,e.selectedIndex,e.selectedTabClassName,e.selectedTabPanelClassName,e.environment,e.disableUpDownKeys,e.disableLeftRightKeys,function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,TN));return U.createElement("div",Object.assign({},p,{className:TP(d),onClick:u,onKeyDown:function(t){var n=e.direction,r=e.disableUpDownKeys,d=e.disableLeftRightKeys;if(c(t.target)){var h=e.selectedIndex,p=!1,f=!1;("Space"===t.code||32===t.keyCode||"Enter"===t.code||13===t.keyCode)&&(p=!0,f=!1,u(t)),(d||37!==t.keyCode&&"ArrowLeft"!==t.code)&&(r||38!==t.keyCode&&"ArrowUp"!==t.code)?(d||39!==t.keyCode&&"ArrowRight"!==t.code)&&(r||40!==t.keyCode&&"ArrowDown"!==t.code)?35===t.keyCode||"End"===t.code?(h=function(){for(var e=s();e--;)if(!TD(l(e)))return e;return null}(),p=!0,f=!0):(36===t.keyCode||"Home"===t.code)&&(h=function(){for(var e=s(),t=0;t=0||(i[n]=e[n]);return i}(e,TB);return U.createElement("ul",Object.assign({},r,{className:TP(n),role:"tablist"}),t)};TU.tabsRole="TabList",TU.propTypes={},TU.defaultProps={className:"react-tabs__tab-list"};var Tz=["children","className","disabled","disabledClassName","focus","id","selected","selectedClassName","tabIndex","tabRef"],Tj="react-tabs__tab",TW=function(e){var t,n=(0,U.useRef)(),r=e.children,i=e.className,a=e.disabled,o=e.disabledClassName,s=e.focus,l=e.id,u=e.selected,c=e.selectedClassName,d=e.tabIndex,h=e.tabRef,p=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,Tz);return(0,U.useEffect)(function(){u&&s&&n.current.focus()},[u,s]),U.createElement("li",Object.assign({},p,{className:TP(i,((t={})[c]=u,t[o]=a,t)),ref:function(e){n.current=e,h&&h(e)},role:"tab",id:"tab"+l,"aria-selected":u?"true":"false","aria-disabled":a?"true":"false","aria-controls":"panel"+l,tabIndex:d||(u?"0":null),"data-rttab":!0}),r)};TW.propTypes={},TW.tabsRole="Tab",TW.defaultProps={className:Tj,disabledClassName:Tj+"--disabled",focus:!1,id:null,selected:!1,selectedClassName:Tj+"--selected"};var TZ=["children","className","forceRender","id","selected","selectedClassName"],Tq="react-tabs__tab-panel",TG=function(e){var t,n=e.children,r=e.className,i=e.forceRender,a=e.id,o=e.selected,s=e.selectedClassName,l=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,TZ);return U.createElement("div",Object.assign({},l,{className:TP(r,((t={})[s]=o,t)),role:"tabpanel",id:"panel"+a,"aria-labelledby":"tab"+a}),i||o?n:null)};TG.tabsRole="TabPanel",TG.propTypes={},TG.defaultProps={className:Tq,forceRender:!1,selectedClassName:Tq+"--selected"};var TH=Object.defineProperty,TY=Object.defineProperties,TX=Object.getOwnPropertyDescriptors,TV=Object.getOwnPropertySymbols,TK=Object.prototype.hasOwnProperty,TJ=Object.prototype.propertyIsEnumerable,T1=(e,t,n)=>t in e?TH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,T0=(e,t)=>{for(var n in t||(t={}))TK.call(t,n)&&T1(e,n,t[n]);if(TV)for(var n of TV(t))TJ.call(t,n)&&T1(e,n,t[n]);return e},T2=(e,t)=>TY(e,TX(t)),T5=(e,t)=>{var n={};for(var r in e)TK.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&TV)for(var r of TV(e))0>t.indexOf(r)&&TJ.call(e,r)&&(n[r]=e[r]);return n},T9={50:"#EFFCF6",100:"#C6F7E2",200:"#8EEDC7",300:"#65D6AD",400:"#3EBD93",500:"#27AB83",600:"#199473",700:"#147D64",800:"#0C6B58",900:"#014D40"},T4={50:"#F5F7FA",100:"#E4E7EB",200:"#CBD2D9",300:"#9AA5B1",400:"#7B8794",500:"#616E7C",600:"#52606D",700:"#3E4C59",800:"#323F4B",900:"#1F2933"},T3={breakpoints:["768px","1024px"],space:{xxsmall:"4px",xsmall:"8px",small:"16px",medium:"24px",large:"32px",xlarge:"48px",xxlarge:"64px",standard:"16px",none:"0px",gutter:"8px",auto:"auto",full:"100%"},sizes:{xsmall:"400px",small:"600px",medium:"940px",large:"1280px"},fonts:{body:'Rubik, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif',heading:"Rubik, system-ui",monospace:'"Ubuntu Mono", Menlo, monospace'},fontSizes:{xsmall:"12px",small:"14px",medium:"16px",large:"20px",xlarge:"24px",xxlarge:"32px",standard:"16px"},fontWeights:{hairline:100,thin:200,light:300,standard:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},lineHeights:{none:"1",tight:"1.25",snug:"1.375",standard:"1.5",relaxed:"1.625",loose:"2"},letterSpacings:{tighter:"-0.05em",tight:"-0.025em",standard:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},colors:{currentColor:"currentColor",transparent:"transparent",text:T4[900],background:T4[50],card:"#fff",primary:T9,accent:{50:"#EAE2F8",100:"#CFBCF2",200:"#A081D9",300:"#8662C7",400:"#724BB7",500:"#653CAD",600:"#51279B",700:"#421987",800:"#34126F",900:"#240754"},neutral:T4,success:T9,warning:{50:"#FFFAEB",100:"#FCEFC7",200:"#F8E3A3",300:"#F9DA8B",400:"#F7D070",500:"#E9B949",600:"#C99A2E",700:"#A27C1A",800:"#7C5E10",900:"#513C06"},error:{50:"#FFEEEE",100:"#FACDCD",200:"#F29B9B",300:"#E66A6A",400:"#D64545",500:"#BA2525",600:"#A61B1B",700:"#911111",800:"#780A0A",900:"#610404"},info:{50:"#DCEEFB",100:"#B6E0FE",200:"#84C5F4",300:"#62B0E8",400:"#4098D7",500:"#2680C2",600:"#186FAF",700:"#0F609B",800:"#0A558C",900:"#003E6B"}},borderWidths:{standard:"1px",none:"0",light:"2px",medium:"4px",semibold:"8px"},radii:{none:"0",small:"4px",standard:"8px",medium:"10px",large:"12px",full:"9999px"},shadows:{xsmall:"0 0 0 1px rgba(0, 0, 0, 0.05)",small:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",standard:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",medium:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",large:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xlarge:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)",xxlarge:"0 25px 50px -12px rgba(0, 0, 0, 0.25)",inner:"inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)",outline:"0 0 0 3px rgba(66, 153, 225, 0.5)",none:"none"},zIndices:{auto:"auto",0:0,10:10,20:20,30:30,40:40,50:50},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move","not-allowed":"not-allowed"}},T8=aA({textColor:{scale:"colors",property:"color"},backgroundColor:{scale:"colors",property:"backgroundColor"},bg:{scale:"colors",property:"backgroundColor"}}),T6=aA({cursor:{scale:"cursor",property:"cursor"}}),T7=aR(aH,aA({gap:{property:"gap",scale:"space"}})),ke="default"in or?or.default:or,kt=ke.div({boxSizing:"border-box",minWidth:0,transition:"all 0.2s ease"},aR(T8,T6,T7,a$,aP,aL,aQ,aU,aF,aj,aY)),kn=ke(kt)(a4({scale:"badges",prop:"tone",variants:{primary:{backgroundColor:"primary.800",color:"primary.100",borderColor:"primary.100"},accent:{backgroundColor:"accent.800",color:"accent.100",borderColor:"accent.100"},neutral:{backgroundColor:"neutral.800",color:"neutral.100",borderColor:"neutral.100"},success:{backgroundColor:"success.800",color:"success.100",borderColor:"success.100"},warning:{backgroundColor:"warning.800",color:"warning.100",borderColor:"warning.100"},error:{backgroundColor:"error.800",color:"error.100",borderColor:"error.100"},info:{backgroundColor:"info.800",color:"info.100",borderColor:"info.100"}}})),kr=e=>(t="primary",n="small")=>{let r=e.colors[t],i=ag``;switch(n){case"auto":i=ag` height: 1em; svg { @@ -414,7 +414,7 @@ span.icon-right { margin-left: 6px; } - `:ag``,kU={width:"100%"},kj=e=>ag` + `:ag``,kU={width:"100%"},kz=e=>ag` border: none; display: inline-flex; justify-content: center; @@ -435,7 +435,7 @@ align-items: center; justify-content: center; } -`,kz=(0,U.forwardRef)((e,t)=>{var{children:n,iconLeft:r,iconRight:i,href:a="#",textColor:o,disabled:s,fullWidth:l=!1,loading:u=!1,size:c=["small"]}=e,d=T5(e,["children","iconLeft","iconRight","href","textColor","disabled","fullWidth","loading","size"]);let h=kP(t);Array.isArray(c)||(c=[c]);let p=kg(c);return af(h,T0({ref:t,href:a,css:e=>[T8,a$,aY,s&&ag` +`,kj=(0,U.forwardRef)((e,t)=>{var{children:n,iconLeft:r,iconRight:i,href:a="#",textColor:o,disabled:s,fullWidth:l=!1,loading:u=!1,size:c=["small"]}=e,d=T5(e,["children","iconLeft","iconRight","href","textColor","disabled","fullWidth","loading","size"]);let h=kP(t);Array.isArray(c)||(c=[c]);let p=kg(c);return af(h,T0({ref:t,href:a,css:e=>[T8,a$,aY,s&&ag` cursor: not-allowed; opacity: 0.4; `,ag` @@ -448,9 +448,9 @@ &:active:enabled { filter: brightness(80%); } - `,kj(e),kB(e)(p),l&&kU]},d),u&&af(kt,{position:"absolute",display:"flex",top:"0px",left:"0px",right:"0px",bottom:"0px",justifyContent:"center",alignItems:"center"},af(kO,{textColor:o,size:"large"===p?"large":"medium"})),af(kt,{css:e=>[kj(e),u&&ag` + `,kz(e),kB(e)(p),l&&kU]},d),u&&af(kt,{position:"absolute",display:"flex",top:"0px",left:"0px",right:"0px",bottom:"0px",justifyContent:"center",alignItems:"center"},af(kO,{textColor:o,size:"large"===p?"large":"medium"})),af(kt,{css:e=>[kz(e),u&&ag` visibility: hidden; - `]},r&&af("span",{className:"icon-left"},r),n,i&&af("span",{className:"icon-right"},i)))}),kW=ke(kT)(({theme:e})=>({borderStyle:"solid",borderColor:e.colors.neutral[200],backgroundColor:"none"}),a4({scale:"buttonsOutline",prop:"tone",variants:{primary:{color:"primary.800"},accent:{color:"accent.800"},neutral:{color:"neutral.800"},success:{color:"success.800"},warning:{color:"warning.800"},error:{color:"error.800"},info:{color:"info.800"}}}));kW.defaultProps={tone:"primary"},ke(kz)(({theme:e})=>({borderStyle:"solid",borderColor:e.colors.neutral[200],backgroundColor:"none"}),a4({scale:"buttonsOutline",prop:"tone",variants:{primary:{color:"primary.800"},accent:{color:"accent.800"},neutral:{color:"neutral.800"},success:{color:"success.800"},warning:{color:"warning.800"},error:{color:"error.800"},info:{color:"info.800"}}})).defaultProps={tone:"primary"},ke(kz)({},a4({scale:"buttonsPrimary",prop:"tone",variants:{primary:{backgroundColor:"primary.800",color:"primary.50"},accent:{backgroundColor:"accent.800",color:"accent.50"},neutral:{backgroundColor:"neutral.800",color:"neutral.50"},success:{backgroundColor:"success.800",color:"success.50"},warning:{backgroundColor:"warning.800",color:"warning.50"},error:{backgroundColor:"error.800",color:"error.50"},info:{backgroundColor:"info.800",color:"info.50"}}})).defaultProps={tone:"primary"},ke(kz)({},a4({scale:"buttonsSecondary",prop:"tone",variants:{primary:{color:"primary.800",backgroundColor:"primary.50"},accent:{color:"accent.800",backgroundColor:"accent.50"},neutral:{color:"neutral.800",backgroundColor:"neutral.50"},success:{color:"success.800",backgroundColor:"success.50"},warning:{color:"warning.800",backgroundColor:"warning.50"},error:{color:"error.800",backgroundColor:"error.50"},info:{color:"info.800",backgroundColor:"info.50"}}})).defaultProps={tone:"primary"},(0,U.forwardRef)(({height:e,image:t,title:n},r)=>af("div",{ref:r,title:n,css:ag` + `]},r&&af("span",{className:"icon-left"},r),n,i&&af("span",{className:"icon-right"},i)))}),kW=ke(kT)(({theme:e})=>({borderStyle:"solid",borderColor:e.colors.neutral[200],backgroundColor:"none"}),a4({scale:"buttonsOutline",prop:"tone",variants:{primary:{color:"primary.800"},accent:{color:"accent.800"},neutral:{color:"neutral.800"},success:{color:"success.800"},warning:{color:"warning.800"},error:{color:"error.800"},info:{color:"info.800"}}}));kW.defaultProps={tone:"primary"},ke(kj)(({theme:e})=>({borderStyle:"solid",borderColor:e.colors.neutral[200],backgroundColor:"none"}),a4({scale:"buttonsOutline",prop:"tone",variants:{primary:{color:"primary.800"},accent:{color:"accent.800"},neutral:{color:"neutral.800"},success:{color:"success.800"},warning:{color:"warning.800"},error:{color:"error.800"},info:{color:"info.800"}}})).defaultProps={tone:"primary"},ke(kj)({},a4({scale:"buttonsPrimary",prop:"tone",variants:{primary:{backgroundColor:"primary.800",color:"primary.50"},accent:{backgroundColor:"accent.800",color:"accent.50"},neutral:{backgroundColor:"neutral.800",color:"neutral.50"},success:{backgroundColor:"success.800",color:"success.50"},warning:{backgroundColor:"warning.800",color:"warning.50"},error:{backgroundColor:"error.800",color:"error.50"},info:{backgroundColor:"info.800",color:"info.50"}}})).defaultProps={tone:"primary"},ke(kj)({},a4({scale:"buttonsSecondary",prop:"tone",variants:{primary:{color:"primary.800",backgroundColor:"primary.50"},accent:{color:"accent.800",backgroundColor:"accent.50"},neutral:{color:"neutral.800",backgroundColor:"neutral.50"},success:{color:"success.800",backgroundColor:"success.50"},warning:{color:"warning.800",backgroundColor:"warning.50"},error:{color:"error.800",backgroundColor:"error.50"},info:{color:"info.800",backgroundColor:"info.50"}}})).defaultProps={tone:"primary"},(0,U.forwardRef)(({height:e,image:t,title:n},r)=>af("div",{ref:r,title:n,css:ag` display: block; background-size: cover; background-repeat: no-repeat; @@ -535,7 +535,7 @@ color: black; direction: ltr; } - `}),kY=(0,U.forwardRef)(({language:e="markdown",value:t="",onChange:n=()=>{},selection:r,disabled:i,wrapLines:a=!1,height:o="auto",fontFamily:s,lineNumbers:l=!1,variant:u="normal"},c)=>{let[d,h]=(0,U.useState)(null);(0,U.useImperativeHandle)(c,()=>d);let p=(0,U.useMemo)(()=>{var t;let n,r;let o=[dN,function(e={}){return[c3.of(e),c8||(c8=l7.fromClass(class{constructor(e){this.view=e,this.decorations=lF.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(c3)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new c0({regexp:e.specialChars,decoration:(t,n,r)=>{let{doc:i}=n.state,a=oD(t[0],0);if(9==a){let e=i.lineAt(r),t=n.state.tabSize,a=sU(e.text,t,r-e.from);return lF.replace({widget:new c7((t-a%t)*this.view.defaultCharacterWidth)})}return this.decorationCache[a]||(this.decorationCache[a]=lF.replace({widget:new c6(e,a)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(c3);e.startState.facet(c3)!=t?(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(e.view)):this.decorations=this.decorator.updateDeco(e,this.decorations)}},{decorations:e=>e.decorations}))]}(),(n=[pu],pc instanceof pa&&(pc.module&&n.push(c$.styleModule.of(pc.module)),r=pc.themeType),(null==t?void 0:t.fallback)?n.push(ps.of(pc)):r?n.push(po.computeN([c$.darkTheme],e=>e.facet(c$.darkTheme)==("dark"==r)?[pc]:[])):n.push(po.of(pc)),n),function(e={}){return[cq.of(e),cH,cX]}(),[fo,fr],sk.transactionFilter.of(e=>{if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;let t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;let n=e.newDoc,{head:r}=e.newSelection.main,i=n.lineAt(r);if(r>i.from+200)return e;let a=n.sliceString(i.from,r);if(!t.some(e=>e.test(a)))return e;let{state:o}=e,s=-1,l=[];for(let{head:e}of o.selection.ranges){let t=o.doc.lineAt(e);if(t.from==s)continue;s=t.from;let n=function(e,t){var n;for(let n of(e instanceof sk&&(e=new hK(e)),e.state.facet(hX))){let r=n(e,t);if(null!=r)return r}let r=hM(e.state);return r?(n=e,h1(r.resolveInner(t).enterUnfinishedNodesBefore(t),t,n)):null}(o,t.from);if(null==n)continue;let r=/^\s*/.exec(t.text)[0],i=function(e,t){let n="",r=e.tabSize;if(9==e.facet(hV).charCodeAt(0))for(;t>=r;)n+=" ",t-=r;for(let e=0;e-1?i.child(t.slice(0,n)):a).child(n>-1?t.slice(n+1):t).list=e[t].map(e=>"string"==typeof e?{label:e,type:"property"}:e)}for(let e in a.list=(t||a.childCompletions("type")).concat(n?a.child(n).list:[]),i.children){let t=i.child(e);t.list.length||(t.list=t.childCompletions("type"))}return i.list=a.list.concat(i.childCompletions("type")),e=>{var t,r,o;let s;let{parents:l,from:u,quoted:c,empty:d}=(t=e.state,r=e.pos,"Identifier"==(s=hM(t).resolveInner(r,-1)).name||"QuotedIdentifier"==s.name?{from:s.from,quoted:"QuotedIdentifier"==s.name?t.sliceDoc(s.from,s.from+1):null,parents:fG(t,fq(s))}:"."==s.name?{from:r,quoted:null,parents:fG(t,s)}:{from:r,quoted:null,parents:[],empty:!0});if(d&&!e.explicit)return null;let h=i;for(let e of l){for(;!h.children||!h.children[e];)if(h==i)h=a;else{if(h!=a||!n)return null;h=h.child(n)}h=h.child(e)}return{from:u,to:c&&e.state.sliceDoc(e.pos,e.pos+1)==c?e.pos+1:void 0,options:(o=h.list,c?o.map(e=>Object.assign(Object.assign({},e),{label:c+e.label+c,apply:void 0})):o),validFor:c?fY:fH}}}(e.schema,e.tables,e.defaultTable):()=>null}):[],function(e,t=!1){return e.language.data.of({autocomplete:function(e,t=!1){var n;return py(["QuotedIdentifier","SpecialVar","String","LineComment","BlockComment","."],pb(Object.keys(n=e.dialect.words).map(e=>({label:t?e.toUpperCase():e,type:21==n[e]?"type":20==n[e]?"keyword":"variable",boost:-1}))))}(e,t)})}(t,!!e.upperCaseKeywords)])}());break;default:o.push(function(e={}){var t;let{codeLanguages:n,defaultCodeLanguage:r,addKeymap:i=!0,base:{parser:a}=OE}=e;if(!(a instanceof mK))throw RangeError("Base parser provided to `markdown` should be a Markdown parser");let o=e.extensions?[e.extensions]:[],s=[OQ.support],l;r instanceof hH?(s.push(r.support),l=r.language):r&&(l=r);let u=n||l?(t=l,e=>{if(e&&n){let t=null;if((t="function"==typeof n?n(e):hY.matchLanguageName(n,e,!0))instanceof hY)return t.support?t.support.language.parser:hU.getSkippingParser(t.load());if(t)return t.parser}return t?t.parser:null}):void 0;return o.push(function(e){let{codeParser:t,htmlParser:n}=e;return{wrap:d6((e,r)=>{let i=e.type.id;if(t&&(i==_Z.CodeBlock||i==_Z.FencedCode)){let n="";if(i==_Z.FencedCode){let t=e.node.getChild(_Z.CodeInfo);t&&(n=r.read(t.from,t.to))}let a=t(n);if(a)return{parser:a,overlay:e=>e.type.id==_Z.CodeText}}else if(n&&(i==_Z.HTMLBlock||i==_Z.HTMLTag))return{parser:n,overlay:function(e,t,n){let r=[];for(let i=e.firstChild,a=t;;i=i.nextSibling){let e=i?i.from:n;if(e>a&&r.push({from:a,to:e}),!i)break;a=i.to}return r}(e.node,e.from,e.to)};return null})}}({codeParser:u,htmlParser:OQ.language.parser})),i&&s.push(o6.high(cj.of(OD))),new hH(Ow(a.configure(o)),s)}())}return o},[l,i,e]);return af(kt,{height:o,onClick:()=>{null==d||d.focus()},overflowY:"auto",css:e=>["outlined"===u&&ag` + `}),kY=(0,U.forwardRef)(({language:e="markdown",value:t="",onChange:n=()=>{},selection:r,disabled:i,wrapLines:a=!1,height:o="auto",fontFamily:s,lineNumbers:l=!1,variant:u="normal"},c)=>{let[d,h]=(0,U.useState)(null);(0,U.useImperativeHandle)(c,()=>d);let p=(0,U.useMemo)(()=>{var t;let n,r;let o=[dN,function(e={}){return[c3.of(e),c8||(c8=l7.fromClass(class{constructor(e){this.view=e,this.decorations=lF.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(c3)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new c0({regexp:e.specialChars,decoration:(t,n,r)=>{let{doc:i}=n.state,a=oD(t[0],0);if(9==a){let e=i.lineAt(r),t=n.state.tabSize,a=sU(e.text,t,r-e.from);return lF.replace({widget:new c7((t-a%t)*this.view.defaultCharacterWidth)})}return this.decorationCache[a]||(this.decorationCache[a]=lF.replace({widget:new c6(e,a)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(c3);e.startState.facet(c3)!=t?(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(e.view)):this.decorations=this.decorator.updateDeco(e,this.decorations)}},{decorations:e=>e.decorations}))]}(),(n=[pu],pc instanceof pa&&(pc.module&&n.push(c$.styleModule.of(pc.module)),r=pc.themeType),(null==t?void 0:t.fallback)?n.push(ps.of(pc)):r?n.push(po.computeN([c$.darkTheme],e=>e.facet(c$.darkTheme)==("dark"==r)?[pc]:[])):n.push(po.of(pc)),n),function(e={}){return[cq.of(e),cH,cX]}(),[fo,fr],sk.transactionFilter.of(e=>{if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;let t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;let n=e.newDoc,{head:r}=e.newSelection.main,i=n.lineAt(r);if(r>i.from+200)return e;let a=n.sliceString(i.from,r);if(!t.some(e=>e.test(a)))return e;let{state:o}=e,s=-1,l=[];for(let{head:e}of o.selection.ranges){let t=o.doc.lineAt(e);if(t.from==s)continue;s=t.from;let n=function(e,t){var n;for(let n of(e instanceof sk&&(e=new hK(e)),e.state.facet(hX))){let r=n(e,t);if(null!=r)return r}let r=hM(e.state);return r?(n=e,h1(r.resolveInner(t).enterUnfinishedNodesBefore(t),t,n)):null}(o,t.from);if(null==n)continue;let r=/^\s*/.exec(t.text)[0],i=function(e,t){let n="",r=e.tabSize;if(9==e.facet(hV).charCodeAt(0))for(;t>=r;)n+=" ",t-=r;for(let e=0;e-1?i.child(t.slice(0,n)):a).child(n>-1?t.slice(n+1):t).list=e[t].map(e=>"string"==typeof e?{label:e,type:"property"}:e)}for(let e in a.list=(t||a.childCompletions("type")).concat(n?a.child(n).list:[]),i.children){let t=i.child(e);t.list.length||(t.list=t.childCompletions("type"))}return i.list=a.list.concat(i.childCompletions("type")),e=>{var t,r,o;let s;let{parents:l,from:u,quoted:c,empty:d}=(t=e.state,r=e.pos,"Identifier"==(s=hM(t).resolveInner(r,-1)).name||"QuotedIdentifier"==s.name?{from:s.from,quoted:"QuotedIdentifier"==s.name?t.sliceDoc(s.from,s.from+1):null,parents:fG(t,fq(s))}:"."==s.name?{from:r,quoted:null,parents:fG(t,s)}:{from:r,quoted:null,parents:[],empty:!0});if(d&&!e.explicit)return null;let h=i;for(let e of l){for(;!h.children||!h.children[e];)if(h==i)h=a;else{if(h!=a||!n)return null;h=h.child(n)}h=h.child(e)}return{from:u,to:c&&e.state.sliceDoc(e.pos,e.pos+1)==c?e.pos+1:void 0,options:(o=h.list,c?o.map(e=>Object.assign(Object.assign({},e),{label:c+e.label+c,apply:void 0})):o),validFor:c?fY:fH}}}(e.schema,e.tables,e.defaultTable):()=>null}):[],function(e,t=!1){return e.language.data.of({autocomplete:function(e,t=!1){var n;return py(["QuotedIdentifier","SpecialVar","String","LineComment","BlockComment","."],pb(Object.keys(n=e.dialect.words).map(e=>({label:t?e.toUpperCase():e,type:21==n[e]?"type":20==n[e]?"keyword":"variable",boost:-1}))))}(e,t)})}(t,!!e.upperCaseKeywords)])}());break;default:o.push(function(e={}){var t;let{codeLanguages:n,defaultCodeLanguage:r,addKeymap:i=!0,base:{parser:a}=OE}=e;if(!(a instanceof mK))throw RangeError("Base parser provided to `markdown` should be a Markdown parser");let o=e.extensions?[e.extensions]:[],s=[OQ.support],l;r instanceof hH?(s.push(r.support),l=r.language):r&&(l=r);let u=n||l?(t=l,e=>{if(e&&n){let t=null;if((t="function"==typeof n?n(e):hY.matchLanguageName(n,e,!0))instanceof hY)return t.support?t.support.language.parser:hU.getSkippingParser(t.load());if(t)return t.parser}return t?t.parser:null}):void 0;return o.push(function(e){let{codeParser:t,htmlParser:n}=e;return{wrap:d6((e,r)=>{let i=e.type.id;if(t&&(i==_Z.CodeBlock||i==_Z.FencedCode)){let n="";if(i==_Z.FencedCode){let t=e.node.getChild(_Z.CodeInfo);t&&(n=r.read(t.from,t.to))}let a=t(n);if(a)return{parser:a,overlay:e=>e.type.id==_Z.CodeText}}else if(n&&(i==_Z.HTMLBlock||i==_Z.HTMLTag))return{parser:n,overlay:function(e,t,n){let r=[];for(let i=e.firstChild,a=t;;i=i.nextSibling){let e=i?i.from:n;if(e>a&&r.push({from:a,to:e}),!i)break;a=i.to}return r}(e.node,e.from,e.to)};return null})}}({codeParser:u,htmlParser:OQ.language.parser})),i&&s.push(o6.high(cz.of(OD))),new hH(Ow(a.configure(o)),s)}())}return o},[l,i,e]);return af(kt,{height:o,onClick:()=>{null==d||d.focus()},overflowY:"auto",css:e=>["outlined"===u&&ag` border-style: solid; border-radius: ${e.radii.small}; border-width: ${e.borderWidths.standard}; @@ -591,7 +591,7 @@ transition: all 0.2s ease; padding: 0; margin: 0; - `,aR(T8,T6,T7,a$,aP,aL,aQ,aU,aF,az,aY));(0,U.forwardRef)((e,t)=>{var{href:n,color:r,children:i,external:a}=e;return af(k9,T2(T0({},T5(e,["href","color","children","external"])),{ref:t,href:n,css:e=>[ag` + `,aR(T8,T6,T7,a$,aP,aL,aQ,aU,aF,aj,aY));(0,U.forwardRef)((e,t)=>{var{href:n,color:r,children:i,external:a}=e;return af(k9,T2(T0({},T5(e,["href","color","children","external"])),{ref:t,href:n,css:e=>[ag` display: inline-flex; align-items: center; color: inherit; @@ -652,7 +652,7 @@ font-size: ${e.fontSizes.xsmall}; z-index: 99; opacity: 0.8; - `},d?s.edit:s.preview),d?af(kt,{p:"xxsmall"},af(_r,{markdown:(null==(t=c.current)?void 0:t.state.doc.toString())||""})):af(kY,T0({ref:c,variant:"normal",language:"markdown",wrapLines:!0,lineNumbers:n,value:r,onChange:i},u)))};function _o(){for(var e,t,n=0,r="";n div":{borderTopColor:"primary.800",borderTopStyle:"solid",borderTopWidth:"standard",paddingTop:["medium","large"]}}}}));var _p={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},_f={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"};function _m(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:a=300}=e;return function(e){let{children:o,position:s,preventExitTransition:l,done:u,nodeRef:c,isIn:d}=e,h=r?t+"--"+s:t,p=r?n+"--"+s:n,f=(0,U.useRef)(),m=(0,U.useRef)(0);function g(e){if(e.target!==c.current)return;let t=c.current;t.dispatchEvent(new Event("d")),t.removeEventListener("animationend",g),t.removeEventListener("animationcancel",g),0===m.current&&"animationcancel"!==e.type&&(t.className=f.current)}function O(){let e=c.current;e.removeEventListener("animationend",O),i?function(e,t,n){void 0===n&&(n=300);let{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition="all "+n+"ms",requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}(e,u,a):u()}return(0,U.useLayoutEffect)(()=>{let e;e=c.current,f.current=e.className,e.className+=" "+h,e.addEventListener("animationend",g),e.addEventListener("animationcancel",g)},[]),(0,U.useEffect)(()=>{let e;d||(l?O():(m.current=1,e=c.current,e.className+=" "+p,e.addEventListener("animationend",O)))},[d]),U.createElement(U.Fragment,null,o)}}function _g(e,t){return{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}}var _O={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){let n=this.list.get(e).filter(e=>e!==t);return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit(e){let t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach(t=>{let n=setTimeout(()=>{t(...[].slice.call(arguments,1))},0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(n)})}};function _b(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function _y(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function _v(e){let{closeToast:t,theme:n,ariaLabel:r="close"}=e;return U.createElement("button",{className:"Toastify__close-button Toastify__close-button--"+n,type:"button",onClick:e=>{e.stopPropagation(),t(e)},"aria-label":r},U.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},U.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function _x(e){let{delay:t,isRunning:n,closeToast:r,type:i,hide:a,className:o,style:s,controlledProgress:l,progress:u,rtl:c,isIn:d,theme:h}=e,p={...s,animationDuration:t+"ms",animationPlayState:n?"running":"paused",opacity:a?0:1};l&&(p.transform="scaleX("+u+")");let f=_o("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated","Toastify__progress-bar-theme--"+h,"Toastify__progress-bar--"+i,{"Toastify__progress-bar--rtl":c}),m=_c(o)?o({rtl:c,type:i,defaultClassName:f}):_o(f,o);return U.createElement("div",{role:"progressbar","aria-hidden":a?"true":"false","aria-label":"notification timer",className:m,style:p,[l&&u>=1?"onTransitionEnd":"onAnimationEnd"]:l&&u<1?null:()=>{d&&r()}})}_x.defaultProps={type:_f.DEFAULT,hide:!1};var _T=e=>{let{theme:t,type:n,...r}=e;return U.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":"var(--toastify-icon-color-"+n+")",...r})},_k={info:function(e){return U.createElement(_T,{...e},U.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return U.createElement(_T,{...e},U.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return U.createElement(_T,{...e},U.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return U.createElement(_T,{...e},U.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return U.createElement("div",{className:"Toastify__spinner"})}},__=e=>{let{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i}=function(e){let[t,n]=(0,U.useState)(!1),[r,i]=(0,U.useState)(!1),a=(0,U.useRef)(null),o=(0,U.useRef)({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,s=(0,U.useRef)(e),{autoClose:l,pauseOnHover:u,closeToast:c,onClick:d,closeOnClick:h}=e;function p(t){if(e.draggable){o.didMove=!1,document.addEventListener("mousemove",O),document.addEventListener("mouseup",b),document.addEventListener("touchmove",O),document.addEventListener("touchend",b);let n=a.current;o.canCloseOnClick=!0,o.canDrag=!0,o.boundingRect=n.getBoundingClientRect(),n.style.transition="",o.x=_b(t.nativeEvent),o.y=_y(t.nativeEvent),"x"===e.draggableDirection?(o.start=o.x,o.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(o.start=o.y,o.removalDistance=n.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent/100))}}function f(){if(o.boundingRect){let{top:t,bottom:n,left:r,right:i}=o.boundingRect;e.pauseOnHover&&o.x>=r&&o.x<=i&&o.y>=t&&o.y<=n?g():m()}}function m(){n(!0)}function g(){n(!1)}function O(n){let r=a.current;o.canDrag&&r&&(o.didMove=!0,t&&g(),o.x=_b(n),o.y=_y(n),o.delta="x"===e.draggableDirection?o.x-o.start:o.y-o.start,o.start!==o.x&&(o.canCloseOnClick=!1),r.style.transform="translate"+e.draggableDirection+"("+o.delta+"px)",r.style.opacity=""+(1-Math.abs(o.delta/o.removalDistance)))}function b(){document.removeEventListener("mousemove",O),document.removeEventListener("mouseup",b),document.removeEventListener("touchmove",O),document.removeEventListener("touchend",b);let t=a.current;if(o.canDrag&&o.didMove&&t){if(o.canDrag=!1,Math.abs(o.delta)>o.removalDistance)return i(!0),void e.closeToast();t.style.transition="transform 0.2s, opacity 0.2s",t.style.transform="translate"+e.draggableDirection+"(0)",t.style.opacity="1"}}(0,U.useEffect)(()=>{s.current=e}),(0,U.useEffect)(()=>(a.current&&a.current.addEventListener("d",m,{once:!0}),_c(e.onOpen)&&e.onOpen((0,U.isValidElement)(e.children)&&e.children.props),()=>{let e=s.current;_c(e.onClose)&&e.onClose((0,U.isValidElement)(e.children)&&e.children.props)}),[]),(0,U.useEffect)(()=>(e.pauseOnFocusLoss&&(document.hasFocus()||g(),window.addEventListener("focus",m),window.addEventListener("blur",g)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",m),window.removeEventListener("blur",g))}),[e.pauseOnFocusLoss]);let y={onMouseDown:p,onTouchStart:p,onMouseUp:f,onTouchEnd:f};return l&&u&&(y.onMouseEnter=g,y.onMouseLeave=m),h&&(y.onClick=e=>{d&&d(e),o.canCloseOnClick&&c()}),{playToast:m,pauseToast:g,isRunning:t,preventExitTransition:r,toastRef:a,eventHandlers:y}}(e),{closeButton:a,children:o,autoClose:s,onClick:l,type:u,hideProgressBar:c,closeToast:d,transition:h,position:p,className:f,style:m,bodyClassName:g,bodyStyle:O,progressClassName:b,progressStyle:y,updateId:v,role:x,progress:T,rtl:k,toastId:_,deleteToast:S,isIn:w,isLoading:E,icon:C,theme:A}=e,R=_o("Toastify__toast","Toastify__toast-theme--"+A,"Toastify__toast--"+u,{"Toastify__toast--rtl":k}),P=_c(f)?f({rtl:k,position:p,type:u,defaultClassName:R}):_o(R,f),I=!!T,N=_k[u],$={theme:A,type:u},L=N&&N($);return!1===C?L=void 0:_c(C)?L=C($):U.isValidElement(C)?L=U.cloneElement(C,$):_u(C)?L=C:E&&(L=_k.spinner()),U.createElement(h,{isIn:w,done:S,position:p,preventExitTransition:n,nodeRef:r},U.createElement("div",{id:_,onClick:l,className:P,...i,style:m,ref:r},U.createElement("div",{...w&&{role:x},className:_c(g)?g({type:u}):_o("Toastify__toast-body",g),style:O},L&&U.createElement("div",{className:_o("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!E})},L),U.createElement("div",null,o)),function(e){if(!e)return;let t={closeToast:d,type:u,theme:A};return _c(e)?e(t):U.isValidElement(e)?U.cloneElement(e,t):void 0}(a),(s||I)&&U.createElement(_x,{...v&&!I?{key:"pb-"+v}:{},rtl:k,theme:A,delay:s,isRunning:t,isIn:w,closeToast:d,hide:c,type:u,style:y,className:b,controlledProgress:I,progress:T})))},_S=_m({enter:"Toastify--animate Toastify__bounce-enter",exit:"Toastify--animate Toastify__bounce-exit",appendPosition:!0}),_w=(_m({enter:"Toastify--animate Toastify__slide-enter",exit:"Toastify--animate Toastify__slide-exit",appendPosition:!0}),_m({enter:"Toastify--animate Toastify__zoom-enter",exit:"Toastify--animate Toastify__zoom-exit"}),_m({enter:"Toastify--animate Toastify__flip-enter",exit:"Toastify--animate Toastify__flip-exit"}),(0,U.forwardRef)((e,t)=>{let{getToastToRender:n,containerRef:r,isToastActive:i}=function(e){let[,t]=(0,U.useReducer)(e=>e+1,0),[n,r]=(0,U.useState)([]),i=(0,U.useRef)(null),a=(0,U.useRef)(new Map).current,o=e=>-1!==n.indexOf(e),s=(0,U.useRef)({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:o,getToast:e=>a.get(e)}).current;function l(e){let{containerId:t}=e,{limit:n}=s.props;!n||t&&s.containerId!==t||(s.count-=s.queue.length,s.queue=[])}function u(e){r(t=>0===e||e?t.filter(t=>t!==e):[])}function c(){let{toastContent:e,toastProps:t,staleId:n}=s.queue.shift();h(e,t,n)}function d(e,n){var r,o;let{delay:l,staleId:d,...p}=n;if(!_h(e)||!i.current||s.props.enableMultiContainer&&p.containerId!==s.props.containerId||a.has(p.toastId)&&null==p.updateId)return;let{toastId:f,updateId:m,data:g}=p,{props:O}=s,b=()=>u(f),y=null==m;y&&s.count++;let v={toastId:f,updateId:m,containerId:p.containerId,isLoading:p.isLoading,theme:p.theme||O.theme,icon:null!=p.icon?p.icon:O.icon,isIn:!1,key:p.key||s.toastKey++,type:p.type,closeToast:b,closeButton:p.closeButton,rtl:O.rtl,position:p.position||O.position,transition:p.transition||O.transition,className:_d(p.className||O.toastClassName),bodyClassName:_d(p.bodyClassName||O.bodyClassName),style:p.style||O.toastStyle,bodyStyle:p.bodyStyle||O.bodyStyle,onClick:p.onClick||O.onClick,pauseOnHover:_l(p.pauseOnHover)?p.pauseOnHover:O.pauseOnHover,pauseOnFocusLoss:_l(p.pauseOnFocusLoss)?p.pauseOnFocusLoss:O.pauseOnFocusLoss,draggable:_l(p.draggable)?p.draggable:O.draggable,draggablePercent:p.draggablePercent||O.draggablePercent,draggableDirection:p.draggableDirection||O.draggableDirection,closeOnClick:_l(p.closeOnClick)?p.closeOnClick:O.closeOnClick,progressClassName:_d(p.progressClassName||O.progressClassName),progressStyle:p.progressStyle||O.progressStyle,autoClose:!p.isLoading&&(r=p.autoClose,o=O.autoClose,!1===r||_s(r)&&r>0?r:o),hideProgressBar:_l(p.hideProgressBar)?p.hideProgressBar:O.hideProgressBar,progress:p.progress,role:p.role||O.role,deleteToast(){let e=_g(a.get(f),"removed");a.delete(f),_O.emit(4,e);let n=s.queue.length;if(s.count=0===f||f?s.count-1:s.count-s.displayedToast,s.count<0&&(s.count=0),n>0){let e=0===f||f?1:s.props.limit;if(1===n||1===e)s.displayedToast++,c();else{let t=e>n?n:e;s.displayedToast=t;for(let e=0;e0&&s.count>O.limit&&y?s.queue.push({toastContent:x,toastProps:v,staleId:d}):_s(l)?setTimeout(()=>{h(x,v,d)},l):h(x,v,d)}function h(e,t,n){let{toastId:i}=t;n&&a.delete(n);let o={content:e,props:t};a.set(i,o),r(e=>[...e,i].filter(e=>e!==n)),_O.emit(4,_g(o,null==o.props.updateId?"added":"updated"))}return(0,U.useEffect)(()=>(s.containerId=e.containerId,_O.cancelEmit(3).on(0,d).on(1,e=>i.current&&u(e)).on(5,l).emit(2,s),()=>_O.emit(3,s)),[]),(0,U.useEffect)(()=>{s.props=e,s.isToastActive=o,s.displayedToast=n.length}),{getToastToRender:function(t){let n=new Map,r=Array.from(a.values());return e.newestOnTop&&r.reverse(),r.forEach(e=>{let{position:t}=e.props;n.has(t)||n.set(t,[]),n.get(t).push(e)}),Array.from(n,e=>t(e[0],e[1]))},containerRef:i,isToastActive:o}}(e),{className:a,style:o,rtl:s,containerId:l}=e;return(0,U.useEffect)(()=>{t&&(t.current=r.current)},[]),U.createElement("div",{ref:r,className:"Toastify",id:l},n((e,t)=>{let n,r=t.length?{...o}:{...o,pointerEvents:"none"};return U.createElement("div",{className:(n=_o("Toastify__toast-container","Toastify__toast-container--"+e,{"Toastify__toast-container--rtl":s}),_c(a)?a({position:e,rtl:s,defaultClassName:n}):_o(n,_d(a))),style:r,key:"container-"+e},t.map((e,n)=>{let{content:r,props:a}=e;return U.createElement(__,{...a,isIn:i(a.toastId),style:{"--nth":n+1,"--len":t.length},key:"toast-"+a.key,closeButton:!0===a.closeButton?_v:a.closeButton},r)}))}))}));_w.displayName="ToastContainer",_w.defaultProps={position:_p.TOP_RIGHT,transition:_S,rtl:!1,autoClose:5e3,hideProgressBar:!1,closeButton:_v,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,newestOnTop:!1,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};var _E,_C,_A,_R,_P,_I,_N,_$,_L,_D,_Q,_M,_F,_B,_U,_j,_z,_W,_Z,_q,_G,_H=new Map,_Y=[];function _X(){return Math.random().toString(36).substring(2,9)}function _V(e,t){return _H.size>0?_O.emit(0,e,t):_Y.push({content:e,options:t}),t.toastId}function _K(e,t){return{...t,type:t&&t.type||e,toastId:t&&(_u(t.toastId)||_s(t.toastId))?t.toastId:_X()}}function _J(e){return(t,n)=>_V(t,_K(e,n))}function _1(e,t){return _V(e,_K(_f.DEFAULT,t))}_1.loading=(e,t)=>_V(e,_K(_f.DEFAULT,{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),_1.promise=function(e,t,n){let r,{pending:i,error:a,success:o}=t;i&&(r=_u(i)?_1.loading(i,n):_1.loading(i.render,{...n,...i}));let s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null,delay:100},l=(e,t,i)=>{if(null==t)return void _1.dismiss(r);let a={type:e,...s,...n,data:i},o=_u(t)?{render:t}:t;return r?_1.update(r,{...a,...o}):_1(o.render,{...a,...o}),i},u=_c(e)?e():e;return u.then(e=>l("success",o,e)).catch(e=>l("error",a,e)),u},_1.success=_J(_f.SUCCESS),_1.info=_J(_f.INFO),_1.error=_J(_f.ERROR),_1.warning=_J(_f.WARNING),_1.warn=_1.warning,_1.dark=(e,t)=>_V(e,_K(_f.DEFAULT,{theme:"dark",...t})),_1.dismiss=e=>_O.emit(1,e),_1.clearWaitingQueue=function(e){return void 0===e&&(e={}),_O.emit(5,e)},_1.isActive=e=>{let t=!1;return _H.forEach(n=>{n.isToastActive&&n.isToastActive(e)&&(t=!0)}),t},_1.update=function(e,t){void 0===t&&(t={}),setTimeout(()=>{let n=function(e,t){let{containerId:n}=t,r=_H.get(n||_G);return r?r.getToast(e):null}(e,t);if(n){let{props:r,content:i}=n,a={...r,...t,toastId:t.toastId||e,updateId:_X()};a.toastId!==e&&(a.staleId=e);let o=a.render||i;delete a.render,_V(o,a)}},0)},_1.done=e=>{_1.update(e,{progress:1})},_1.onChange=e=>(_O.on(4,e),()=>{_O.off(4,e)}),_1.POSITION=_p,_1.TYPE=_f,_O.on(2,e=>{_G=e.containerId||e,_H.set(_G,e),_Y.forEach(e=>{_O.emit(0,e.content,e.options)}),_Y=[]}).on(3,e=>{_H.delete(e.containerId||e),0===_H.size&&_O.off(0).off(1).off(5)}),_1.info,_1.warn,_1.success,_1.error,_1.dismiss,_1.isActive,_1.update,_1.clearWaitingQueue,_1.done;var _0=e=>{var{children:t}=e,n=T5(e,["children"]);return af(U.Fragment,null,af(am,{styles:e=>ag` + `},d?s.edit:s.preview),d?af(kt,{p:"xxsmall"},af(_r,{markdown:(null==(t=c.current)?void 0:t.state.doc.toString())||""})):af(kY,T0({ref:c,variant:"normal",language:"markdown",wrapLines:!0,lineNumbers:n,value:r,onChange:i},u)))};function _o(){for(var e,t,n=0,r="";n div":{borderTopColor:"primary.800",borderTopStyle:"solid",borderTopWidth:"standard",paddingTop:["medium","large"]}}}}));var _p={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},_f={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"};function _m(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:a=300}=e;return function(e){let{children:o,position:s,preventExitTransition:l,done:u,nodeRef:c,isIn:d}=e,h=r?t+"--"+s:t,p=r?n+"--"+s:n,f=(0,U.useRef)(),m=(0,U.useRef)(0);function g(e){if(e.target!==c.current)return;let t=c.current;t.dispatchEvent(new Event("d")),t.removeEventListener("animationend",g),t.removeEventListener("animationcancel",g),0===m.current&&"animationcancel"!==e.type&&(t.className=f.current)}function O(){let e=c.current;e.removeEventListener("animationend",O),i?function(e,t,n){void 0===n&&(n=300);let{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition="all "+n+"ms",requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}(e,u,a):u()}return(0,U.useLayoutEffect)(()=>{let e;e=c.current,f.current=e.className,e.className+=" "+h,e.addEventListener("animationend",g),e.addEventListener("animationcancel",g)},[]),(0,U.useEffect)(()=>{let e;d||(l?O():(m.current=1,e=c.current,e.className+=" "+p,e.addEventListener("animationend",O)))},[d]),U.createElement(U.Fragment,null,o)}}function _g(e,t){return{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}}var _O={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){let n=this.list.get(e).filter(e=>e!==t);return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit(e){let t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach(t=>{let n=setTimeout(()=>{t(...[].slice.call(arguments,1))},0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(n)})}};function _b(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function _y(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function _v(e){let{closeToast:t,theme:n,ariaLabel:r="close"}=e;return U.createElement("button",{className:"Toastify__close-button Toastify__close-button--"+n,type:"button",onClick:e=>{e.stopPropagation(),t(e)},"aria-label":r},U.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},U.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function _x(e){let{delay:t,isRunning:n,closeToast:r,type:i,hide:a,className:o,style:s,controlledProgress:l,progress:u,rtl:c,isIn:d,theme:h}=e,p={...s,animationDuration:t+"ms",animationPlayState:n?"running":"paused",opacity:a?0:1};l&&(p.transform="scaleX("+u+")");let f=_o("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated","Toastify__progress-bar-theme--"+h,"Toastify__progress-bar--"+i,{"Toastify__progress-bar--rtl":c}),m=_c(o)?o({rtl:c,type:i,defaultClassName:f}):_o(f,o);return U.createElement("div",{role:"progressbar","aria-hidden":a?"true":"false","aria-label":"notification timer",className:m,style:p,[l&&u>=1?"onTransitionEnd":"onAnimationEnd"]:l&&u<1?null:()=>{d&&r()}})}_x.defaultProps={type:_f.DEFAULT,hide:!1};var _T=e=>{let{theme:t,type:n,...r}=e;return U.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":"var(--toastify-icon-color-"+n+")",...r})},_k={info:function(e){return U.createElement(_T,{...e},U.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return U.createElement(_T,{...e},U.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return U.createElement(_T,{...e},U.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return U.createElement(_T,{...e},U.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return U.createElement("div",{className:"Toastify__spinner"})}},__=e=>{let{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i}=function(e){let[t,n]=(0,U.useState)(!1),[r,i]=(0,U.useState)(!1),a=(0,U.useRef)(null),o=(0,U.useRef)({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,s=(0,U.useRef)(e),{autoClose:l,pauseOnHover:u,closeToast:c,onClick:d,closeOnClick:h}=e;function p(t){if(e.draggable){o.didMove=!1,document.addEventListener("mousemove",O),document.addEventListener("mouseup",b),document.addEventListener("touchmove",O),document.addEventListener("touchend",b);let n=a.current;o.canCloseOnClick=!0,o.canDrag=!0,o.boundingRect=n.getBoundingClientRect(),n.style.transition="",o.x=_b(t.nativeEvent),o.y=_y(t.nativeEvent),"x"===e.draggableDirection?(o.start=o.x,o.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(o.start=o.y,o.removalDistance=n.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent/100))}}function f(){if(o.boundingRect){let{top:t,bottom:n,left:r,right:i}=o.boundingRect;e.pauseOnHover&&o.x>=r&&o.x<=i&&o.y>=t&&o.y<=n?g():m()}}function m(){n(!0)}function g(){n(!1)}function O(n){let r=a.current;o.canDrag&&r&&(o.didMove=!0,t&&g(),o.x=_b(n),o.y=_y(n),o.delta="x"===e.draggableDirection?o.x-o.start:o.y-o.start,o.start!==o.x&&(o.canCloseOnClick=!1),r.style.transform="translate"+e.draggableDirection+"("+o.delta+"px)",r.style.opacity=""+(1-Math.abs(o.delta/o.removalDistance)))}function b(){document.removeEventListener("mousemove",O),document.removeEventListener("mouseup",b),document.removeEventListener("touchmove",O),document.removeEventListener("touchend",b);let t=a.current;if(o.canDrag&&o.didMove&&t){if(o.canDrag=!1,Math.abs(o.delta)>o.removalDistance)return i(!0),void e.closeToast();t.style.transition="transform 0.2s, opacity 0.2s",t.style.transform="translate"+e.draggableDirection+"(0)",t.style.opacity="1"}}(0,U.useEffect)(()=>{s.current=e}),(0,U.useEffect)(()=>(a.current&&a.current.addEventListener("d",m,{once:!0}),_c(e.onOpen)&&e.onOpen((0,U.isValidElement)(e.children)&&e.children.props),()=>{let e=s.current;_c(e.onClose)&&e.onClose((0,U.isValidElement)(e.children)&&e.children.props)}),[]),(0,U.useEffect)(()=>(e.pauseOnFocusLoss&&(document.hasFocus()||g(),window.addEventListener("focus",m),window.addEventListener("blur",g)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",m),window.removeEventListener("blur",g))}),[e.pauseOnFocusLoss]);let y={onMouseDown:p,onTouchStart:p,onMouseUp:f,onTouchEnd:f};return l&&u&&(y.onMouseEnter=g,y.onMouseLeave=m),h&&(y.onClick=e=>{d&&d(e),o.canCloseOnClick&&c()}),{playToast:m,pauseToast:g,isRunning:t,preventExitTransition:r,toastRef:a,eventHandlers:y}}(e),{closeButton:a,children:o,autoClose:s,onClick:l,type:u,hideProgressBar:c,closeToast:d,transition:h,position:p,className:f,style:m,bodyClassName:g,bodyStyle:O,progressClassName:b,progressStyle:y,updateId:v,role:x,progress:T,rtl:k,toastId:_,deleteToast:S,isIn:w,isLoading:E,icon:C,theme:A}=e,R=_o("Toastify__toast","Toastify__toast-theme--"+A,"Toastify__toast--"+u,{"Toastify__toast--rtl":k}),P=_c(f)?f({rtl:k,position:p,type:u,defaultClassName:R}):_o(R,f),I=!!T,N=_k[u],$={theme:A,type:u},L=N&&N($);return!1===C?L=void 0:_c(C)?L=C($):U.isValidElement(C)?L=U.cloneElement(C,$):_u(C)?L=C:E&&(L=_k.spinner()),U.createElement(h,{isIn:w,done:S,position:p,preventExitTransition:n,nodeRef:r},U.createElement("div",{id:_,onClick:l,className:P,...i,style:m,ref:r},U.createElement("div",{...w&&{role:x},className:_c(g)?g({type:u}):_o("Toastify__toast-body",g),style:O},L&&U.createElement("div",{className:_o("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!E})},L),U.createElement("div",null,o)),function(e){if(!e)return;let t={closeToast:d,type:u,theme:A};return _c(e)?e(t):U.isValidElement(e)?U.cloneElement(e,t):void 0}(a),(s||I)&&U.createElement(_x,{...v&&!I?{key:"pb-"+v}:{},rtl:k,theme:A,delay:s,isRunning:t,isIn:w,closeToast:d,hide:c,type:u,style:y,className:b,controlledProgress:I,progress:T})))},_S=_m({enter:"Toastify--animate Toastify__bounce-enter",exit:"Toastify--animate Toastify__bounce-exit",appendPosition:!0}),_w=(_m({enter:"Toastify--animate Toastify__slide-enter",exit:"Toastify--animate Toastify__slide-exit",appendPosition:!0}),_m({enter:"Toastify--animate Toastify__zoom-enter",exit:"Toastify--animate Toastify__zoom-exit"}),_m({enter:"Toastify--animate Toastify__flip-enter",exit:"Toastify--animate Toastify__flip-exit"}),(0,U.forwardRef)((e,t)=>{let{getToastToRender:n,containerRef:r,isToastActive:i}=function(e){let[,t]=(0,U.useReducer)(e=>e+1,0),[n,r]=(0,U.useState)([]),i=(0,U.useRef)(null),a=(0,U.useRef)(new Map).current,o=e=>-1!==n.indexOf(e),s=(0,U.useRef)({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:o,getToast:e=>a.get(e)}).current;function l(e){let{containerId:t}=e,{limit:n}=s.props;!n||t&&s.containerId!==t||(s.count-=s.queue.length,s.queue=[])}function u(e){r(t=>0===e||e?t.filter(t=>t!==e):[])}function c(){let{toastContent:e,toastProps:t,staleId:n}=s.queue.shift();h(e,t,n)}function d(e,n){var r,o;let{delay:l,staleId:d,...p}=n;if(!_h(e)||!i.current||s.props.enableMultiContainer&&p.containerId!==s.props.containerId||a.has(p.toastId)&&null==p.updateId)return;let{toastId:f,updateId:m,data:g}=p,{props:O}=s,b=()=>u(f),y=null==m;y&&s.count++;let v={toastId:f,updateId:m,containerId:p.containerId,isLoading:p.isLoading,theme:p.theme||O.theme,icon:null!=p.icon?p.icon:O.icon,isIn:!1,key:p.key||s.toastKey++,type:p.type,closeToast:b,closeButton:p.closeButton,rtl:O.rtl,position:p.position||O.position,transition:p.transition||O.transition,className:_d(p.className||O.toastClassName),bodyClassName:_d(p.bodyClassName||O.bodyClassName),style:p.style||O.toastStyle,bodyStyle:p.bodyStyle||O.bodyStyle,onClick:p.onClick||O.onClick,pauseOnHover:_l(p.pauseOnHover)?p.pauseOnHover:O.pauseOnHover,pauseOnFocusLoss:_l(p.pauseOnFocusLoss)?p.pauseOnFocusLoss:O.pauseOnFocusLoss,draggable:_l(p.draggable)?p.draggable:O.draggable,draggablePercent:p.draggablePercent||O.draggablePercent,draggableDirection:p.draggableDirection||O.draggableDirection,closeOnClick:_l(p.closeOnClick)?p.closeOnClick:O.closeOnClick,progressClassName:_d(p.progressClassName||O.progressClassName),progressStyle:p.progressStyle||O.progressStyle,autoClose:!p.isLoading&&(r=p.autoClose,o=O.autoClose,!1===r||_s(r)&&r>0?r:o),hideProgressBar:_l(p.hideProgressBar)?p.hideProgressBar:O.hideProgressBar,progress:p.progress,role:p.role||O.role,deleteToast(){let e=_g(a.get(f),"removed");a.delete(f),_O.emit(4,e);let n=s.queue.length;if(s.count=0===f||f?s.count-1:s.count-s.displayedToast,s.count<0&&(s.count=0),n>0){let e=0===f||f?1:s.props.limit;if(1===n||1===e)s.displayedToast++,c();else{let t=e>n?n:e;s.displayedToast=t;for(let e=0;e0&&s.count>O.limit&&y?s.queue.push({toastContent:x,toastProps:v,staleId:d}):_s(l)?setTimeout(()=>{h(x,v,d)},l):h(x,v,d)}function h(e,t,n){let{toastId:i}=t;n&&a.delete(n);let o={content:e,props:t};a.set(i,o),r(e=>[...e,i].filter(e=>e!==n)),_O.emit(4,_g(o,null==o.props.updateId?"added":"updated"))}return(0,U.useEffect)(()=>(s.containerId=e.containerId,_O.cancelEmit(3).on(0,d).on(1,e=>i.current&&u(e)).on(5,l).emit(2,s),()=>_O.emit(3,s)),[]),(0,U.useEffect)(()=>{s.props=e,s.isToastActive=o,s.displayedToast=n.length}),{getToastToRender:function(t){let n=new Map,r=Array.from(a.values());return e.newestOnTop&&r.reverse(),r.forEach(e=>{let{position:t}=e.props;n.has(t)||n.set(t,[]),n.get(t).push(e)}),Array.from(n,e=>t(e[0],e[1]))},containerRef:i,isToastActive:o}}(e),{className:a,style:o,rtl:s,containerId:l}=e;return(0,U.useEffect)(()=>{t&&(t.current=r.current)},[]),U.createElement("div",{ref:r,className:"Toastify",id:l},n((e,t)=>{let n,r=t.length?{...o}:{...o,pointerEvents:"none"};return U.createElement("div",{className:(n=_o("Toastify__toast-container","Toastify__toast-container--"+e,{"Toastify__toast-container--rtl":s}),_c(a)?a({position:e,rtl:s,defaultClassName:n}):_o(n,_d(a))),style:r,key:"container-"+e},t.map((e,n)=>{let{content:r,props:a}=e;return U.createElement(__,{...a,isIn:i(a.toastId),style:{"--nth":n+1,"--len":t.length},key:"toast-"+a.key,closeButton:!0===a.closeButton?_v:a.closeButton},r)}))}))}));_w.displayName="ToastContainer",_w.defaultProps={position:_p.TOP_RIGHT,transition:_S,rtl:!1,autoClose:5e3,hideProgressBar:!1,closeButton:_v,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,newestOnTop:!1,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};var _E,_C,_A,_R,_P,_I,_N,_$,_L,_D,_Q,_M,_F,_B,_U,_z,_j,_W,_Z,_q,_G,_H=new Map,_Y=[];function _X(){return Math.random().toString(36).substring(2,9)}function _V(e,t){return _H.size>0?_O.emit(0,e,t):_Y.push({content:e,options:t}),t.toastId}function _K(e,t){return{...t,type:t&&t.type||e,toastId:t&&(_u(t.toastId)||_s(t.toastId))?t.toastId:_X()}}function _J(e){return(t,n)=>_V(t,_K(e,n))}function _1(e,t){return _V(e,_K(_f.DEFAULT,t))}_1.loading=(e,t)=>_V(e,_K(_f.DEFAULT,{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),_1.promise=function(e,t,n){let r,{pending:i,error:a,success:o}=t;i&&(r=_u(i)?_1.loading(i,n):_1.loading(i.render,{...n,...i}));let s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null,delay:100},l=(e,t,i)=>{if(null==t)return void _1.dismiss(r);let a={type:e,...s,...n,data:i},o=_u(t)?{render:t}:t;return r?_1.update(r,{...a,...o}):_1(o.render,{...a,...o}),i},u=_c(e)?e():e;return u.then(e=>l("success",o,e)).catch(e=>l("error",a,e)),u},_1.success=_J(_f.SUCCESS),_1.info=_J(_f.INFO),_1.error=_J(_f.ERROR),_1.warning=_J(_f.WARNING),_1.warn=_1.warning,_1.dark=(e,t)=>_V(e,_K(_f.DEFAULT,{theme:"dark",...t})),_1.dismiss=e=>_O.emit(1,e),_1.clearWaitingQueue=function(e){return void 0===e&&(e={}),_O.emit(5,e)},_1.isActive=e=>{let t=!1;return _H.forEach(n=>{n.isToastActive&&n.isToastActive(e)&&(t=!0)}),t},_1.update=function(e,t){void 0===t&&(t={}),setTimeout(()=>{let n=function(e,t){let{containerId:n}=t,r=_H.get(n||_G);return r?r.getToast(e):null}(e,t);if(n){let{props:r,content:i}=n,a={...r,...t,toastId:t.toastId||e,updateId:_X()};a.toastId!==e&&(a.staleId=e);let o=a.render||i;delete a.render,_V(o,a)}},0)},_1.done=e=>{_1.update(e,{progress:1})},_1.onChange=e=>(_O.on(4,e),()=>{_O.off(4,e)}),_1.POSITION=_p,_1.TYPE=_f,_O.on(2,e=>{_G=e.containerId||e,_H.set(_G,e),_Y.forEach(e=>{_O.emit(0,e.content,e.options)}),_Y=[]}).on(3,e=>{_H.delete(e.containerId||e),0===_H.size&&_O.off(0).off(1).off(5)}),_1.info,_1.warn,_1.success,_1.error,_1.dismiss,_1.isActive,_1.update,_1.clearWaitingQueue,_1.done;var _0=e=>{var{children:t}=e,n=T5(e,["children"]);return af(U.Fragment,null,af(am,{styles:e=>ag` :root { --toastify-color-light: ${e.colors.card}; --toastify-color-dark: ${e.colors.neutral[900]}; @@ -1606,7 +1606,7 @@ } `,n&&ag` border-color: ${e.colors.error[500]}; - `],aR(T8,T6,T7,a$,aU,aF,aY)),Se=(0,U.forwardRef)(({id:e,value:t,onChange:n=()=>{},onBlur:r=()=>{},disabled:i,required:a,error:o,resize:s="vertical"},l)=>af(_7,{id:e,ref:l,value:t,onChange:function(e){i||n(e.currentTarget.value)},onBlur:r,required:a,disabled:i,"aria-invalid":o,error:o,resize:s}));let St=U.createContext(void 0),Sn=({children:e,language:t,locale:n})=>{let r=(0,U.useMemo)(()=>({language:t,locale:n}),[t,n]);return U.createElement(St.Provider,{value:r},e)},Sr=()=>{let e=(0,U.useContext)(St);if(!e)throw Error("Attempted to access translation without Vocab context set. Did you forget to render VocabProvider?");if(!e.language)throw Error("Attempted to access translation without language set. Did you forget to pass language to VocabProvider?");return e},Si="undefined"==typeof window;function Sa(e){let{language:t,locale:n}=Sr(),[,r]=(0,U.useReducer)(e=>e+1,0),i=e.getLoadedMessages(t,n||t),a=!0;if(!i){if(Si)throw Error("Translations not synchronously available on server render. Applying translations dynamically server-side is not supported.");e.load(t).then(()=>{r()}),a=!1}let o=(0,U.useCallback)((e,t)=>{if(!i)return" ";let n=null==i?void 0:i[e];if(!n)return console.error(`Unable to find translation for key "${e}". Possible keys are ${Object.keys(i).map(e=>`"${e}"`).join(", ")}`),"";let r=n.format(t);if(Array.isArray(r))for(let e=0;ee,Pv.assertIs=function(e){},Pv.assertNever=function(e){throw Error()},Pv.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},Pv.getValidEnumValues=e=>{let t=Pv.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),n={};for(let r of t)n[r]=e[r];return Pv.objectValues(n)},Pv.objectValues=e=>Pv.objectKeys(e).map(function(t){return e[t]}),Pv.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},Pv.find=(e,t)=>{for(let n of e)if(t(n))return n},Pv.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,Pv.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},Pv.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(PI||(PI={})).mergeShapes=(e,t)=>({...e,...t});let Ss=PP.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Sl=e=>{let t=typeof e;switch(t){case"undefined":return Ss.undefined;case"string":return Ss.string;case"number":return isNaN(e)?Ss.nan:Ss.number;case"boolean":return Ss.boolean;case"function":return Ss.function;case"bigint":return Ss.bigint;case"symbol":return Ss.symbol;case"object":if(Array.isArray(e))return Ss.array;if(null===e)return Ss.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return Ss.promise;if("undefined"!=typeof Map&&e instanceof Map)return Ss.map;if("undefined"!=typeof Set&&e instanceof Set)return Ss.set;if("undefined"!=typeof Date&&e instanceof Date)return Ss.date;return Ss.object;default:return Ss.unknown}},Su=PP.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Sc extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(r);else if("invalid_return_type"===i.code)r(i.returnTypeError);else if("invalid_arguments"===i.code)r(i.argumentsError);else if(0===i.path.length)n._errors.push(t(i));else{let e=n,r=0;for(;re.message){let t={},n=[];for(let r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}Sc.create=e=>{let t=new Sc(e);return t};let Sd=(e,t)=>{let n;switch(e.code){case Su.invalid_type:n=e.received===Ss.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case Su.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,PP.jsonStringifyReplacer)}`;break;case Su.unrecognized_keys:n=`Unrecognized key(s) in object: ${PP.joinValues(e.keys,", ")}`;break;case Su.invalid_union:n="Invalid input";break;case Su.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${PP.joinValues(e.options)}`;break;case Su.invalid_enum_value:n=`Invalid enum value. Expected ${PP.joinValues(e.options)}, received '${e.received}'`;break;case Su.invalid_arguments:n="Invalid function arguments";break;case Su.invalid_return_type:n="Invalid function return type";break;case Su.invalid_date:n="Invalid date";break;case Su.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:PP.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case Su.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case Su.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case Su.custom:n="Invalid input";break;case Su.invalid_intersection_types:n="Intersection results could not be merged";break;case Su.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case Su.not_finite:n="Number must be finite";break;default:n=t.defaultError,PP.assertNever(e)}return{message:n}},Sh=Sd,Sp=e=>{let{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],o={...i,path:a},s="",l=r.filter(e=>!!e).slice().reverse();for(let e of l)s=e(o,{data:t,defaultError:s}).message;return{...i,path:a,message:i.message||s}};function Sf(e,t){let n=Sp({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,Sh,Sd].filter(e=>!!e)});e.common.issues.push(n)}class Sm{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let n=[];for(let r of t){if("aborted"===r.status)return Sg;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){let n=[];for(let e of t)n.push({key:await e.key,value:await e.value});return Sm.mergeObjectSync(e,n)}static mergeObjectSync(e,t){let n={};for(let r of t){let{key:t,value:i}=r;if("aborted"===t.status||"aborted"===i.status)return Sg;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),(void 0!==i.value||r.alwaysSet)&&(n[t.value]=i.value)}return{status:e.value,value:n}}}let Sg=Object.freeze({status:"aborted"}),SO=e=>({status:"dirty",value:e}),Sb=e=>({status:"valid",value:e}),Sy=e=>"aborted"===e.status,Sv=e=>"dirty"===e.status,Sx=e=>"valid"===e.status,ST=e=>"undefined"!=typeof Promise&&e instanceof Promise;(Px=PN||(PN={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},Px.toString=e=>"string"==typeof e?e:null==e?void 0:e.message;class Sk{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let S_=(e,t)=>{if(Sx(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new Sc(e.common.issues);return this._error=t,this._error}}};function SS(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(e,t)=>"invalid_type"!==e.code?{message:t.defaultError}:void 0===t.data?{message:null!=r?r:t.defaultError}:{message:null!=n?n:t.defaultError},description:i}}class Sw{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return Sl(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:Sl(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Sm,ctx:{common:e.parent.common,data:e.data,parsedType:Sl(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(ST(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;let r={common:{issues:[],async:null!==(n=null==t?void 0:t.async)&&void 0!==n&&n,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Sl(e)},i=this._parseSync({data:e,path:r.path,parent:r});return S_(r,i)}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Sl(e)},r=this._parse({data:e,path:n.path,parent:n}),i=await (ST(r)?r:Promise.resolve(r));return S_(n,i)}refine(e,t){let n=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,r)=>{let i=e(t),a=()=>r.addIssue({code:Su.custom,...n(t)});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(e=>!!e||(a(),!1)):!!i||(a(),!1)})}refinement(e,t){return this._refinement((n,r)=>!!e(n)||(r.addIssue("function"==typeof t?t(n,r):t),!1))}_refinement(e){return new wt({schema:this,typeName:P$.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return wn.create(this,this._def)}nullable(){return wr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return SH.create(this,this._def)}promise(){return we.create(this,this._def)}or(e){return SX.create([this,e],this._def)}and(e){return SJ.create(this,e,this._def)}transform(e){return new wt({...SS(this._def),schema:this,typeName:P$.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new wi({...SS(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:P$.ZodDefault})}brand(){return new wl({typeName:P$.ZodBranded,type:this,...SS(this._def)})}catch(e){return new wa({...SS(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:P$.ZodCatch})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}pipe(e){return wu.create(this,e)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let SE=/^c[^\s-]{8,}$/i,SC=/^[a-z][a-z0-9]*$/,SA=/[0-9A-HJKMNP-TV-Z]{26}/,SR=/^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i,SP=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\])|(\[IPv6:(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))\])|([A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])*(\.[A-Za-z]{2,})+))$/,SI=/^(\p{Extended_Pictographic}|\p{Emoji_Component})+$/u,SN=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,S$=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,SL=e=>e.precision?e.offset?RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):0===e.precision?e.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");class SD extends Sw{constructor(){super(...arguments),this._regex=(e,t,n)=>this.refinement(t=>e.test(t),{validation:t,code:Su.invalid_string,...PN.errToObj(n)}),this.nonempty=e=>this.min(1,PN.errToObj(e)),this.trim=()=>new SD({...this._def,checks:[...this._def.checks,{kind:"trim"}]}),this.toLowerCase=()=>new SD({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]}),this.toUpperCase=()=>new SD({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}_parse(e){let t;this._def.coerce&&(e.data=String(e.data));let n=this._getType(e);if(n!==Ss.string){let t=this._getOrReturnCtx(e);return Sf(t,{code:Su.invalid_type,expected:Ss.string,received:t.parsedType}),Sg}let r=new Sm;for(let n of this._def.checks)if("min"===n.kind)e.data.lengthn.value&&(Sf(t=this._getOrReturnCtx(e,t),{code:Su.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),r.dirty());else if("length"===n.kind){let i=e.data.length>n.value,a=e.data.length"datetime"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value{var t;return new SD({checks:[],typeName:P$.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...SS(e)})};class SQ extends Sw{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;this._def.coerce&&(e.data=Number(e.data));let n=this._getType(e);if(n!==Ss.number){let t=this._getOrReturnCtx(e);return Sf(t,{code:Su.invalid_type,expected:Ss.number,received:t.parsedType}),Sg}let r=new Sm;for(let n of this._def.checks)if("int"===n.kind)PP.isInteger(e.data)||(Sf(t=this._getOrReturnCtx(e,t),{code:Su.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty());else if("min"===n.kind){let i=n.inclusive?e.datan.value:e.data>=n.value;i&&(Sf(t=this._getOrReturnCtx(e,t),{code:Su.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty())}else"multipleOf"===n.kind?0!==function(e,t){let n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,a=parseInt(e.toFixed(i).replace(".","")),o=parseInt(t.toFixed(i).replace(".",""));return a%o/Math.pow(10,i)}(e.data,n.value)&&(Sf(t=this._getOrReturnCtx(e,t),{code:Su.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(Sf(t=this._getOrReturnCtx(e,t),{code:Su.not_finite,message:n.message}),r.dirty()):PP.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,PN.toString(t))}gt(e,t){return this.setLimit("min",e,!1,PN.toString(t))}lte(e,t){return this.setLimit("max",e,!0,PN.toString(t))}lt(e,t){return this.setLimit("max",e,!1,PN.toString(t))}setLimit(e,t,n,r){return new SQ({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:PN.toString(r)}]})}_addCheck(e){return new SQ({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:PN.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:PN.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:PN.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:PN.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:PN.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:PN.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:PN.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:PN.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:PN.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value"int"===e.kind||"multipleOf"===e.kind&&PP.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.valuenew SQ({checks:[],typeName:P$.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...SS(e)});class SM extends Sw{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;this._def.coerce&&(e.data=BigInt(e.data));let n=this._getType(e);if(n!==Ss.bigint){let t=this._getOrReturnCtx(e);return Sf(t,{code:Su.invalid_type,expected:Ss.bigint,received:t.parsedType}),Sg}let r=new Sm;for(let n of this._def.checks)if("min"===n.kind){let i=n.inclusive?e.datan.value:e.data>=n.value;i&&(Sf(t=this._getOrReturnCtx(e,t),{code:Su.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty())}else"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(Sf(t=this._getOrReturnCtx(e,t),{code:Su.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):PP.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,PN.toString(t))}gt(e,t){return this.setLimit("min",e,!1,PN.toString(t))}lte(e,t){return this.setLimit("max",e,!0,PN.toString(t))}lt(e,t){return this.setLimit("max",e,!1,PN.toString(t))}setLimit(e,t,n,r){return new SM({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:PN.toString(r)}]})}_addCheck(e){return new SM({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:PN.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:PN.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:PN.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:PN.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:PN.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value{var t;return new SM({checks:[],typeName:P$.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...SS(e)})};class SF extends Sw{_parse(e){this._def.coerce&&(e.data=!!e.data);let t=this._getType(e);if(t!==Ss.boolean){let t=this._getOrReturnCtx(e);return Sf(t,{code:Su.invalid_type,expected:Ss.boolean,received:t.parsedType}),Sg}return Sb(e.data)}}SF.create=e=>new SF({typeName:P$.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...SS(e)});class SB extends Sw{_parse(e){let t;this._def.coerce&&(e.data=new Date(e.data));let n=this._getType(e);if(n!==Ss.date){let t=this._getOrReturnCtx(e);return Sf(t,{code:Su.invalid_type,expected:Ss.date,received:t.parsedType}),Sg}if(isNaN(e.data.getTime())){let t=this._getOrReturnCtx(e);return Sf(t,{code:Su.invalid_date}),Sg}let r=new Sm;for(let n of this._def.checks)"min"===n.kind?e.data.getTime()n.value&&(Sf(t=this._getOrReturnCtx(e,t),{code:Su.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),r.dirty()):PP.assertNever(n);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new SB({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:PN.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:PN.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.valuenew SB({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:P$.ZodDate,...SS(e)});class SU extends Sw{_parse(e){let t=this._getType(e);if(t!==Ss.symbol){let t=this._getOrReturnCtx(e);return Sf(t,{code:Su.invalid_type,expected:Ss.symbol,received:t.parsedType}),Sg}return Sb(e.data)}}SU.create=e=>new SU({typeName:P$.ZodSymbol,...SS(e)});class Sj extends Sw{_parse(e){let t=this._getType(e);if(t!==Ss.undefined){let t=this._getOrReturnCtx(e);return Sf(t,{code:Su.invalid_type,expected:Ss.undefined,received:t.parsedType}),Sg}return Sb(e.data)}}Sj.create=e=>new Sj({typeName:P$.ZodUndefined,...SS(e)});class Sz extends Sw{_parse(e){let t=this._getType(e);if(t!==Ss.null){let t=this._getOrReturnCtx(e);return Sf(t,{code:Su.invalid_type,expected:Ss.null,received:t.parsedType}),Sg}return Sb(e.data)}}Sz.create=e=>new Sz({typeName:P$.ZodNull,...SS(e)});class SW extends Sw{constructor(){super(...arguments),this._any=!0}_parse(e){return Sb(e.data)}}SW.create=e=>new SW({typeName:P$.ZodAny,...SS(e)});class SZ extends Sw{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Sb(e.data)}}SZ.create=e=>new SZ({typeName:P$.ZodUnknown,...SS(e)});class Sq extends Sw{_parse(e){let t=this._getOrReturnCtx(e);return Sf(t,{code:Su.invalid_type,expected:Ss.never,received:t.parsedType}),Sg}}Sq.create=e=>new Sq({typeName:P$.ZodNever,...SS(e)});class SG extends Sw{_parse(e){let t=this._getType(e);if(t!==Ss.undefined){let t=this._getOrReturnCtx(e);return Sf(t,{code:Su.invalid_type,expected:Ss.void,received:t.parsedType}),Sg}return Sb(e.data)}}SG.create=e=>new SG({typeName:P$.ZodVoid,...SS(e)});class SH extends Sw{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==Ss.array)return Sf(t,{code:Su.invalid_type,expected:Ss.array,received:t.parsedType}),Sg;if(null!==r.exactLength){let e=t.data.length>r.exactLength.value,i=t.data.lengthr.maxLength.value&&(Sf(t,{code:Su.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>r.type._parseAsync(new Sk(t,e,t.path,n)))).then(e=>Sm.mergeArray(n,e));let i=[...t.data].map((e,n)=>r.type._parseSync(new Sk(t,e,t.path,n)));return Sm.mergeArray(n,i)}get element(){return this._def.type}min(e,t){return new SH({...this._def,minLength:{value:e,message:PN.toString(t)}})}max(e,t){return new SH({...this._def,maxLength:{value:e,message:PN.toString(t)}})}length(e,t){return new SH({...this._def,exactLength:{value:e,message:PN.toString(t)}})}nonempty(e){return this.min(1,e)}}SH.create=(e,t)=>new SH({type:e,minLength:null,maxLength:null,exactLength:null,typeName:P$.ZodArray,...SS(t)});class SY extends Sw{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=PP.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){let t=this._getType(e);if(t!==Ss.object){let t=this._getOrReturnCtx(e);return Sf(t,{code:Su.invalid_type,expected:Ss.object,received:t.parsedType}),Sg}let{status:n,ctx:r}=this._processInputParams(e),{shape:i,keys:a}=this._getCached(),o=[];if(!(this._def.catchall instanceof Sq&&"strip"===this._def.unknownKeys))for(let e in r.data)a.includes(e)||o.push(e);let s=[];for(let e of a){let t=i[e],n=r.data[e];s.push({key:{status:"valid",value:e},value:t._parse(new Sk(r,n,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof Sq){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of o)s.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)o.length>0&&(Sf(r,{code:Su.unrecognized_keys,keys:o}),n.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of o){let n=r.data[t];s.push({key:{status:"valid",value:t},value:e._parse(new Sk(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of s){let n=await t.key;e.push({key:n,value:await t.value,alwaysSet:t.alwaysSet})}return e}).then(e=>Sm.mergeObjectSync(n,e)):Sm.mergeObjectSync(n,s)}get shape(){return this._def.shape()}strict(e){return PN.errToObj,new SY({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var r,i,a,o;let s=null!==(a=null===(i=(r=this._def).errorMap)||void 0===i?void 0:i.call(r,t,n).message)&&void 0!==a?a:n.defaultError;return"unrecognized_keys"===t.code?{message:null!==(o=PN.errToObj(e).message)&&void 0!==o?o:s}:{message:s}}}:{}})}strip(){return new SY({...this._def,unknownKeys:"strip"})}passthrough(){return new SY({...this._def,unknownKeys:"passthrough"})}extend(e){return new SY({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){let t=new SY({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:P$.ZodObject});return t}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new SY({...this._def,catchall:e})}pick(e){let t={};return PP.objectKeys(e).forEach(n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])}),new SY({...this._def,shape:()=>t})}omit(e){let t={};return PP.objectKeys(this.shape).forEach(n=>{e[n]||(t[n]=this.shape[n])}),new SY({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof SY){let n={};for(let r in t.shape){let i=t.shape[r];n[r]=wn.create(e(i))}return new SY({...t._def,shape:()=>n})}return t instanceof SH?new SH({...t._def,type:e(t.element)}):t instanceof wn?wn.create(e(t.unwrap())):t instanceof wr?wr.create(e(t.unwrap())):t instanceof S1?S1.create(t.items.map(t=>e(t))):t}(this)}partial(e){let t={};return PP.objectKeys(this.shape).forEach(n=>{let r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()}),new SY({...this._def,shape:()=>t})}required(e){let t={};return PP.objectKeys(this.shape).forEach(n=>{if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n],r=e;for(;r instanceof wn;)r=r._def.innerType;t[n]=r}}),new SY({...this._def,shape:()=>t})}keyof(){return S8(PP.objectKeys(this.shape))}}SY.create=(e,t)=>new SY({shape:()=>e,unknownKeys:"strip",catchall:Sq.create(),typeName:P$.ZodObject,...SS(t)}),SY.strictCreate=(e,t)=>new SY({shape:()=>e,unknownKeys:"strict",catchall:Sq.create(),typeName:P$.ZodObject,...SS(t)}),SY.lazycreate=(e,t)=>new SY({shape:e,unknownKeys:"strip",catchall:Sq.create(),typeName:P$.ZodObject,...SS(t)});class SX extends Sw{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map(async e=>{let n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let n of e)if("dirty"===n.result.status)return t.common.issues.push(...n.ctx.common.issues),n.result;let n=e.map(e=>new Sc(e.ctx.common.issues));return Sf(t,{code:Su.invalid_union,unionErrors:n}),Sg});{let e;let r=[];for(let i of n){let n={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:n});if("valid"===a.status)return a;"dirty"!==a.status||e||(e={result:a,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=r.map(e=>new Sc(e));return Sf(t,{code:Su.invalid_union,unionErrors:i}),Sg}}get options(){return this._def.options}}SX.create=(e,t)=>new SX({options:e,typeName:P$.ZodUnion,...SS(t)});let SV=e=>{if(e instanceof S4)return SV(e.schema);if(e instanceof wt)return SV(e.innerType());if(e instanceof S3)return[e.value];if(e instanceof S6)return e.options;if(e instanceof S7)return Object.keys(e.enum);if(e instanceof wi)return SV(e._def.innerType);if(e instanceof Sj)return[void 0];else if(e instanceof Sz)return[null];else return null};class SK extends Sw{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==Ss.object)return Sf(t,{code:Su.invalid_type,expected:Ss.object,received:t.parsedType}),Sg;let n=this.discriminator,r=t.data[n],i=this.optionsMap.get(r);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(Sf(t,{code:Su.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),Sg)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){let r=new Map;for(let n of t){let t=SV(n.shape[e]);if(!t)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let i of t){if(r.has(i))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(i)}`);r.set(i,n)}}return new SK({typeName:P$.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...SS(n)})}}class SJ extends Sw{_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(Sy(e)||Sy(r))return Sg;let i=function e(t,n){let r=Sl(t),i=Sl(n);if(t===n)return{valid:!0,data:t};if(r===Ss.object&&i===Ss.object){let r=PP.objectKeys(n),i=PP.objectKeys(t).filter(e=>-1!==r.indexOf(e)),a={...t,...n};for(let r of i){let i=e(t[r],n[r]);if(!i.valid)return{valid:!1};a[r]=i.data}return{valid:!0,data:a}}if(r===Ss.array&&i===Ss.array){if(t.length!==n.length)return{valid:!1};let r=[];for(let i=0;ir(e,t)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}SJ.create=(e,t,n)=>new SJ({left:e,right:t,typeName:P$.ZodIntersection,...SS(n)});class S1 extends Sw{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Ss.array)return Sf(n,{code:Su.invalid_type,expected:Ss.array,received:n.parsedType}),Sg;if(n.data.lengththis._def.items.length&&(Sf(n,{code:Su.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let i=[...n.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new Sk(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(i).then(e=>Sm.mergeArray(t,e)):Sm.mergeArray(t,i)}get items(){return this._def.items}rest(e){return new S1({...this._def,rest:e})}}S1.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new S1({items:e,typeName:P$.ZodTuple,rest:null,...SS(t)})};class S0 extends Sw{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Ss.object)return Sf(n,{code:Su.invalid_type,expected:Ss.object,received:n.parsedType}),Sg;let r=[],i=this._def.keyType,a=this._def.valueType;for(let e in n.data)r.push({key:i._parse(new Sk(n,e,n.path,e)),value:a._parse(new Sk(n,n.data[e],n.path,e))});return n.common.async?Sm.mergeObjectAsync(t,r):Sm.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,n){return new S0(t instanceof Sw?{keyType:e,valueType:t,typeName:P$.ZodRecord,...SS(n)}:{keyType:SD.create(),valueType:e,typeName:P$.ZodRecord,...SS(t)})}}class S2 extends Sw{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Ss.map)return Sf(n,{code:Su.invalid_type,expected:Ss.map,received:n.parsedType}),Sg;let r=this._def.keyType,i=this._def.valueType,a=[...n.data.entries()].map(([e,t],a)=>({key:r._parse(new Sk(n,e,n.path,[a,"key"])),value:i._parse(new Sk(n,t,n.path,[a,"value"]))}));if(n.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let n of a){let r=await n.key,i=await n.value;if("aborted"===r.status||"aborted"===i.status)return Sg;("dirty"===r.status||"dirty"===i.status)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let n of a){let r=n.key,i=n.value;if("aborted"===r.status||"aborted"===i.status)return Sg;("dirty"===r.status||"dirty"===i.status)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}}S2.create=(e,t,n)=>new S2({valueType:t,keyType:e,typeName:P$.ZodMap,...SS(n)});class S5 extends Sw{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Ss.set)return Sf(n,{code:Su.invalid_type,expected:Ss.set,received:n.parsedType}),Sg;let r=this._def;null!==r.minSize&&n.data.sizer.maxSize.value&&(Sf(n,{code:Su.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());let i=this._def.valueType;function a(e){let n=new Set;for(let r of e){if("aborted"===r.status)return Sg;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}let o=[...n.data.values()].map((e,t)=>i._parse(new Sk(n,e,n.path,t)));return n.common.async?Promise.all(o).then(e=>a(e)):a(o)}min(e,t){return new S5({...this._def,minSize:{value:e,message:PN.toString(t)}})}max(e,t){return new S5({...this._def,maxSize:{value:e,message:PN.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}S5.create=(e,t)=>new S5({valueType:e,minSize:null,maxSize:null,typeName:P$.ZodSet,...SS(t)});class S9 extends Sw{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==Ss.function)return Sf(t,{code:Su.invalid_type,expected:Ss.function,received:t.parsedType}),Sg;function n(e,n){return Sp({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Sh,Sd].filter(e=>!!e),issueData:{code:Su.invalid_arguments,argumentsError:n}})}function r(e,n){return Sp({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Sh,Sd].filter(e=>!!e),issueData:{code:Su.invalid_return_type,returnTypeError:n}})}let i={errorMap:t.common.contextualErrorMap},a=t.data;return this._def.returns instanceof we?Sb(async(...e)=>{let t=new Sc([]),o=await this._def.args.parseAsync(e,i).catch(r=>{throw t.addIssue(n(e,r)),t}),s=await a(...o),l=await this._def.returns._def.type.parseAsync(s,i).catch(e=>{throw t.addIssue(r(s,e)),t});return l}):Sb((...e)=>{let t=this._def.args.safeParse(e,i);if(!t.success)throw new Sc([n(e,t.error)]);let o=a(...t.data),s=this._def.returns.safeParse(o,i);if(!s.success)throw new Sc([r(o,s.error)]);return s.data})}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new S9({...this._def,args:S1.create(e).rest(SZ.create())})}returns(e){return new S9({...this._def,returns:e})}implement(e){let t=this.parse(e);return t}strictImplement(e){let t=this.parse(e);return t}static create(e,t,n){return new S9({args:e||S1.create([]).rest(SZ.create()),returns:t||SZ.create(),typeName:P$.ZodFunction,...SS(n)})}}class S4 extends Sw{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.getter();return n._parse({data:t.data,path:t.path,parent:t})}}S4.create=(e,t)=>new S4({getter:e,typeName:P$.ZodLazy,...SS(t)});class S3 extends Sw{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return Sf(t,{received:t.data,code:Su.invalid_literal,expected:this._def.value}),Sg}return{status:"valid",value:e.data}}get value(){return this._def.value}}function S8(e,t){return new S6({values:e,typeName:P$.ZodEnum,...SS(t)})}S3.create=(e,t)=>new S3({value:e,typeName:P$.ZodLiteral,...SS(t)});class S6 extends Sw{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),n=this._def.values;return Sf(t,{expected:PP.joinValues(n),received:t.parsedType,code:Su.invalid_type}),Sg}if(-1===this._def.values.indexOf(e.data)){let t=this._getOrReturnCtx(e),n=this._def.values;return Sf(t,{received:t.data,code:Su.invalid_enum_value,options:n}),Sg}return Sb(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e){return S6.create(e)}exclude(e){return S6.create(this.options.filter(t=>!e.includes(t)))}}S6.create=S8;class S7 extends Sw{_parse(e){let t=PP.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==Ss.string&&n.parsedType!==Ss.number){let e=PP.objectValues(t);return Sf(n,{expected:PP.joinValues(e),received:n.parsedType,code:Su.invalid_type}),Sg}if(-1===t.indexOf(e.data)){let e=PP.objectValues(t);return Sf(n,{received:n.data,code:Su.invalid_enum_value,options:e}),Sg}return Sb(e.data)}get enum(){return this._def.values}}S7.create=(e,t)=>new S7({values:e,typeName:P$.ZodNativeEnum,...SS(t)});class we extends Sw{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==Ss.promise&&!1===t.common.async)return Sf(t,{code:Su.invalid_type,expected:Ss.promise,received:t.parsedType}),Sg;let n=t.parsedType===Ss.promise?t.data:Promise.resolve(t.data);return Sb(n.then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}we.create=(e,t)=>new we({type:e,typeName:P$.ZodPromise,...SS(t)});class wt extends Sw{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===P$.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null;if("preprocess"===r.type){let e=r.transform(n.data);return n.common.async?Promise.resolve(e).then(e=>this._def.schema._parseAsync({data:e,path:n.path,parent:n})):this._def.schema._parseSync({data:e,path:n.path,parent:n})}let i={addIssue:e=>{Sf(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),"refinement"===r.type){let e=e=>{let t=r.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>"aborted"===n.status?Sg:("dirty"===n.status&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))));{let r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?Sg:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}}if("transform"===r.type){if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>Sx(e)?Promise.resolve(r.transform(e.value,i)).then(e=>({status:t.value,value:e})):e);{let e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!Sx(e))return e;let a=r.transform(e.value,i);if(a instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}}PP.assertNever(r)}}wt.create=(e,t,n)=>new wt({schema:e,typeName:P$.ZodEffects,effect:t,...SS(n)}),wt.createWithPreprocess=(e,t,n)=>new wt({schema:t,effect:{type:"preprocess",transform:e},typeName:P$.ZodEffects,...SS(n)});class wn extends Sw{_parse(e){let t=this._getType(e);return t===Ss.undefined?Sb(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}wn.create=(e,t)=>new wn({innerType:e,typeName:P$.ZodOptional,...SS(t)});class wr extends Sw{_parse(e){let t=this._getType(e);return t===Ss.null?Sb(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}wr.create=(e,t)=>new wr({innerType:e,typeName:P$.ZodNullable,...SS(t)});class wi extends Sw{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===Ss.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}wi.create=(e,t)=>new wi({innerType:e,typeName:P$.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...SS(t)});class wa extends Sw{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return ST(r)?r.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new Sc(n.common.issues)},input:n.data})})):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new Sc(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}wa.create=(e,t)=>new wa({innerType:e,typeName:P$.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...SS(t)});class wo extends Sw{_parse(e){let t=this._getType(e);if(t!==Ss.nan){let t=this._getOrReturnCtx(e);return Sf(t,{code:Su.invalid_type,expected:Ss.nan,received:t.parsedType}),Sg}return{status:"valid",value:e.data}}}wo.create=e=>new wo({typeName:P$.ZodNaN,...SS(e)});let ws=Symbol("zod_brand");class wl extends Sw{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class wu extends Sw{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async){let e=async()=>{let e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?Sg:"dirty"===e.status?(t.dirty(),SO(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})};return e()}{let e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?Sg:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new wu({in:e,out:t,typeName:P$.ZodPipeline})}}let wc=(e,t={},n)=>e?SW.create().superRefine((r,i)=>{var a,o;if(!e(r)){let e="function"==typeof t?t(r):"string"==typeof t?{message:t}:t,s=null===(o=null!==(a=e.fatal)&&void 0!==a?a:n)||void 0===o||o,l="string"==typeof e?{message:e}:e;i.addIssue({code:"custom",...l,fatal:s})}}):SW.create(),wd={object:SY.lazycreate};(PT=P$||(P$={})).ZodString="ZodString",PT.ZodNumber="ZodNumber",PT.ZodNaN="ZodNaN",PT.ZodBigInt="ZodBigInt",PT.ZodBoolean="ZodBoolean",PT.ZodDate="ZodDate",PT.ZodSymbol="ZodSymbol",PT.ZodUndefined="ZodUndefined",PT.ZodNull="ZodNull",PT.ZodAny="ZodAny",PT.ZodUnknown="ZodUnknown",PT.ZodNever="ZodNever",PT.ZodVoid="ZodVoid",PT.ZodArray="ZodArray",PT.ZodObject="ZodObject",PT.ZodUnion="ZodUnion",PT.ZodDiscriminatedUnion="ZodDiscriminatedUnion",PT.ZodIntersection="ZodIntersection",PT.ZodTuple="ZodTuple",PT.ZodRecord="ZodRecord",PT.ZodMap="ZodMap",PT.ZodSet="ZodSet",PT.ZodFunction="ZodFunction",PT.ZodLazy="ZodLazy",PT.ZodLiteral="ZodLiteral",PT.ZodEnum="ZodEnum",PT.ZodEffects="ZodEffects",PT.ZodNativeEnum="ZodNativeEnum",PT.ZodOptional="ZodOptional",PT.ZodNullable="ZodNullable",PT.ZodDefault="ZodDefault",PT.ZodCatch="ZodCatch",PT.ZodPromise="ZodPromise",PT.ZodBranded="ZodBranded",PT.ZodPipeline="ZodPipeline";let wh=SD.create,wp=SQ.create,wf=wo.create,wm=SM.create,wg=SF.create,wO=SB.create,wb=SU.create,wy=Sj.create,wv=Sz.create,wx=SW.create,wT=SZ.create,wk=Sq.create,w_=SG.create,wS=SH.create,ww=SY.create,wE=SY.strictCreate,wC=SX.create,wA=SK.create,wR=SJ.create,wP=S1.create,wI=S0.create,wN=S2.create,w$=S5.create,wL=S9.create,wD=S4.create,wQ=S3.create,wM=S6.create,wF=S7.create,wB=we.create,wU=wt.create,wj=wn.create,wz=wr.create,wW=wt.createWithPreprocess,wZ=wu.create;var wq=Object.freeze({__proto__:null,defaultErrorMap:Sd,setErrorMap:function(e){Sh=e},getErrorMap:function(){return Sh},makeIssue:Sp,EMPTY_PATH:[],addIssueToContext:Sf,ParseStatus:Sm,INVALID:Sg,DIRTY:SO,OK:Sb,isAborted:Sy,isDirty:Sv,isValid:Sx,isAsync:ST,get util(){return PP},get objectUtil(){return PI},ZodParsedType:Ss,getParsedType:Sl,ZodType:Sw,ZodString:SD,ZodNumber:SQ,ZodBigInt:SM,ZodBoolean:SF,ZodDate:SB,ZodSymbol:SU,ZodUndefined:Sj,ZodNull:Sz,ZodAny:SW,ZodUnknown:SZ,ZodNever:Sq,ZodVoid:SG,ZodArray:SH,ZodObject:SY,ZodUnion:SX,ZodDiscriminatedUnion:SK,ZodIntersection:SJ,ZodTuple:S1,ZodRecord:S0,ZodMap:S2,ZodSet:S5,ZodFunction:S9,ZodLazy:S4,ZodLiteral:S3,ZodEnum:S6,ZodNativeEnum:S7,ZodPromise:we,ZodEffects:wt,ZodTransformer:wt,ZodOptional:wn,ZodNullable:wr,ZodDefault:wi,ZodCatch:wa,ZodNaN:wo,BRAND:ws,ZodBranded:wl,ZodPipeline:wu,custom:wc,Schema:Sw,ZodSchema:Sw,late:wd,get ZodFirstPartyTypeKind(){return P$},coerce:{string:e=>SD.create({...e,coerce:!0}),number:e=>SQ.create({...e,coerce:!0}),boolean:e=>SF.create({...e,coerce:!0}),bigint:e=>SM.create({...e,coerce:!0}),date:e=>SB.create({...e,coerce:!0})},any:wx,array:wS,bigint:wm,boolean:wg,date:wO,discriminatedUnion:wA,effect:wU,enum:wM,function:wL,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>wc(t=>t instanceof e,t),intersection:wR,lazy:wD,literal:wQ,map:wN,nan:wf,nativeEnum:wF,never:wk,null:wv,nullable:wz,number:wp,object:ww,oboolean:()=>wg().optional(),onumber:()=>wp().optional(),optional:wj,ostring:()=>wh().optional(),pipeline:wZ,preprocess:wW,promise:wB,record:wI,set:w$,strictObject:wE,string:wh,symbol:wb,transformer:wU,tuple:wP,undefined:wy,union:wC,unknown:wT,void:w_,NEVER:Sg,ZodIssueCode:Su,quotelessJson:e=>{let t=JSON.stringify(e,null,2);return t.replace(/"([^"]+)":/g,"$1:")},ZodError:Sc}),wG=Object.defineProperty,wH=Object.defineProperties,wY=Object.getOwnPropertyDescriptors,wX=Object.getOwnPropertySymbols,wV=Object.prototype.hasOwnProperty,wK=Object.prototype.propertyIsEnumerable,wJ=(e,t,n)=>t in e?wG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,w1=(e,t)=>{for(var n in t||(t={}))wV.call(t,n)&&wJ(e,n,t[n]);if(wX)for(var n of wX(t))wK.call(t,n)&&wJ(e,n,t[n]);return e},w0=(e,t)=>wH(e,wY(t)),w2=ww({message:wh(),severity:wM(["error","warning","info","success"])}),w5=ww({name:wh(),description:wh().optional(),subtype:wh(),view:wI(wx()),evaluation:ww({mode:wM(["auto","skip","manual"]),enableRetry:wg(),showFeedback:wg()}),feedback:wI(wx()).optional()}),w9=ww({subtype:wh(),count:wp()}),w4=ww({subtype:wh()}),w3=ww({subtype:wh(),state:wM(["unknown","manual","correct","wrong"]),allowRetry:wg().optional(),feedback:wx()}),w8=ww({name:wh(),description:wh(),subtype:wh(),view:ww({})}),w6=ww({name:wh(),description:wh(),subtype:wh(),view:ww({})}),w7=ww({name:wh(),description:wh(),subtype:wh(),view:ww({})}),Ee=ww({name:wh(),description:wh(),subtype:wh(),view:ww({})}),Et=e=>"finished"===e.status,En=(e,t={mode:"skip"})=>{let{tries:n}=e,{maxPoints:r}=e,i=n[n.length-1],a=n.find(e=>e.node.id===i.node.id&&"started"!==e.status);return a||(null==t?void 0:t.mode)==="skip"||(r+=1),n[n.length-1]=w0(w1({},i),{evaluation:t,status:"skipped",endDate:new Date}),w0(w1({},e),{maxPoints:r,tries:n})},Er=(e,t,n)=>{var r,i;let{tries:a}=e,{points:o,maxPoints:s}=e,l=a[a.length-1],u=a.find(e=>e.node.id===l.node.id&&"started"!==e.status);u||(null==n?void 0:n.state)==="unknown"||(s+=1),a[a.length-1]=w0(w1({},l),{status:"finished",endDate:new Date,answer:t,result:n});let c=a.filter(Et).find(e=>e.node.id===l.node.id&&l.try-1===e.try);return c||(null==n?void 0:n.state)!=="correct"?(null==(r=null==c?void 0:c.result)?void 0:r.state)==="correct"&&(null==n?void 0:n.state)!=="correct"?o-=1:(null==(i=null==c?void 0:c.result)?void 0:i.state)!=="correct"&&(null==n?void 0:n.state)==="correct"&&(o+=1):o+=1,w0(w1({},e),{maxPoints:s,points:o,tries:a})},Ei=e=>{let{tries:t}=e,n=t[t.length-1];return t.push({status:"started",try:n.try+1,startDate:new Date,node:w1({},n.node)}),w0(w1({},e),{tries:t})},Ea=wq.object({id:wq.string(),position:wq.object({x:wq.number(),y:wq.number()})}),Eo=Ea.merge(wq.object({type:wq.literal("checkpoint")})),Es=Ea.merge(wq.object({type:wq.literal("synchronize"),data:wq.object({unlocked:wq.boolean()})})),El=e=>Ea.merge(wq.object({type:wq.literal("task"),data:e})),Eu=e=>Ea.merge(wq.object({type:wq.literal("start"),data:e})),Ec=e=>Ea.merge(wq.object({type:wq.literal("end"),data:e})),Ed=e=>Ea.merge(wq.object({type:wq.literal("input"),data:e})),Eh=e=>Ea.merge(wq.object({type:wq.literal("title"),data:e})),Ep=wq.object({type:wq.literal("equal"),not:wq.boolean(),nodeId:wq.string(),key:wq.string(),value:wq.union([wq.string(),wq.number()])}),Ef=wq.object({type:wq.literal("true"),not:wq.boolean(),nodeId:wq.string(),key:wq.string()}),Em=wq.object({type:wq.literal("greater"),include:wq.boolean(),not:wq.boolean(),nodeId:wq.string(),key:wq.string(),value:wq.number()}),Eg=wq.object({type:wq.literal("less"),include:wq.boolean(),not:wq.boolean(),nodeId:wq.string(),key:wq.string(),value:wq.number()}),EO=wq.object({type:wq.literal("in"),not:wq.boolean(),nodeId:wq.string(),key:wq.string(),value:wq.array(wq.union([wq.string(),wq.number()]))}),Eb=wq.union([Ep,Ef,Em,Eg,EO]),Ey=wq.object({type:wq.literal("and"),conditions:wq.array(Eb)}),Ev=wq.object({type:wq.literal("or"),conditions:wq.array(Eb)}),Ex=wq.union([Eb,Ey,Ev]),ET=wq.object({condition:Ex}),Ek=Ea.merge(wq.object({type:wq.literal("split-answer"),data:ET})),E_=wq.object({condition:Ex}),ES=Ea.merge(wq.object({type:wq.literal("split-result"),data:E_})),Ew=wq.object({points:wq.number()}),EE=Ea.merge(wq.object({type:wq.literal("split-points"),data:Ew})),EC=wq.object({portal:wq.string(),description:wq.string()}),EA=wq.object({portal:wq.string(),description:wq.string()}),ER=Ea.merge(wq.object({type:wq.literal("portal-input"),data:EC})),EP=Ea.merge(wq.object({type:wq.literal("portal-output"),data:EA})),EI=Ea.merge(wq.object({type:wq.literal("split-random")}));wq.union([Ek,ES,EE,EI,ER,EP]);var EN=wq.object({id:wq.string(),source:wq.string(),sourceHandle:wq.union([wq.literal("a"),wq.literal("b"),wq.literal("c"),wq.literal("d"),wq.literal("e"),wq.literal("f")]).optional(),target:wq.string()}),E$=({end:e,input:t,start:n,task:r,title:i})=>wq.union([Ek,ES,EE,EI,ER,EP,Es,Eo,Ec(e),Ed(t),Eu(n),El(r),Eh(i)]),EL=({end:e,input:t,start:n,task:r,title:i})=>wq.object({name:wq.string(),description:wq.string(),language:wq.enum(["en","de","fr","es","nl","pt","tr","it"]),visibility:wq.enum(["public","private","unlisted"]),draft:wq.boolean(),nodes:wq.array(E$({start:n,end:e,input:t,title:i,task:r})),edges:wq.array(EN),zoom:wq.number().positive().default(1),position:wq.tuple([wq.number(),wq.number()]).default([0,0])}).refine(e=>{let t=e.nodes.map(e=>e.id);for(let n of e.edges)if(!t.includes(n.source)||!t.includes(n.target))return!1;return!0},{message:"Target and source of an edge need to be valid node ids."}),ED=e=>"start"===e.type,EQ=e=>"checkpoint"===e.type||"end"===e.type||"input"===e.type||"start"===e.type||"synchronize"===e.type||"task"===e.type||"title"===e.type,EM=e=>"task"===e.type?{id:e.id,type:e.type,data:{name:e.data.name,subtype:e.data.subtype,view:e.data.view}}:"synchronize"===e.type||"checkpoint"===e.type?{id:e.id,type:e.type}:("input"===e.type||"end"===e.type||e.type,{id:e.id,type:e.type,data:e.data});function EF(e,t,n){let r=+e.replace("#","0x"),i=r>>16,a=r>>8&255,o=255&r,s=+t.replace("#","0x");return"#"+(16777216+(i+n*((s>>16)-i)<<16)+(a+n*((s>>8&255)-a)<<8)+(o+n*((255&s)-o))|0).toString(16).slice(1)}(Pk=PL||(PL={})).assertNever=function(e){throw Error()},Pk.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},Pk.getValidEnumValues=e=>{let t=Pk.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),n={};for(let r of t)n[r]=e[r];return Pk.objectValues(n)},Pk.objectValues=e=>Pk.objectKeys(e).map(function(t){return e[t]}),Pk.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},Pk.find=(e,t)=>{for(let n of e)if(t(n))return n},Pk.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,Pk.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)};let EB=PL.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),EU=e=>{let t=typeof e;switch(t){case"undefined":return EB.undefined;case"string":return EB.string;case"number":return isNaN(e)?EB.nan:EB.number;case"boolean":return EB.boolean;case"function":return EB.function;case"bigint":return EB.bigint;case"object":if(Array.isArray(e))return EB.array;if(null===e)return EB.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return EB.promise;if("undefined"!=typeof Map&&e instanceof Map)return EB.map;if("undefined"!=typeof Set&&e instanceof Set)return EB.set;if("undefined"!=typeof Date&&e instanceof Date)return EB.date;return EB.object;default:return EB.unknown}},Ej=PL.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of"]);class Ez extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(r);else if("invalid_return_type"===i.code)r(i.returnTypeError);else if("invalid_arguments"===i.code)r(i.argumentsError);else if(0===i.path.length)n._errors.push(t(i));else{let e=n,r=0;for(;re.message){let t={},n=[];for(let r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}Ez.create=e=>{let t=new Ez(e);return t};let EW=(e,t)=>{let n;switch(e.code){case Ej.invalid_type:n=e.received===EB.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case Ej.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected)}`;break;case Ej.unrecognized_keys:n=`Unrecognized key(s) in object: ${PL.joinValues(e.keys,", ")}`;break;case Ej.invalid_union:n="Invalid input";break;case Ej.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${PL.joinValues(e.options)}`;break;case Ej.invalid_enum_value:n=`Invalid enum value. Expected ${PL.joinValues(e.options)}, received '${e.received}'`;break;case Ej.invalid_arguments:n="Invalid function arguments";break;case Ej.invalid_return_type:n="Invalid function return type";break;case Ej.invalid_date:n="Invalid date";break;case Ej.invalid_string:n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case Ej.too_small:n="array"===e.type?`Array must contain ${e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be greater than ${e.inclusive?"or equal to ":""}${e.minimum}`:"Invalid input";break;case Ej.too_big:n="array"===e.type?`Array must contain ${e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be less than ${e.inclusive?"or equal to ":""}${e.maximum}`:"Invalid input";break;case Ej.custom:n="Invalid input";break;case Ej.invalid_intersection_types:n="Intersection results could not be merged";break;case Ej.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;default:n=t.defaultError,PL.assertNever(e)}return{message:n}},EZ=EW,Eq=e=>{let{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],o={...i,path:a},s="",l=r.filter(e=>!!e).slice().reverse();for(let e of l)s=e(o,{data:t,defaultError:s}).message;return{...i,path:a,message:i.message||s}};function EG(e,t){let n=Eq({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,EZ,EW].filter(e=>!!e)});e.common.issues.push(n)}class EH{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let n=[];for(let r of t){if("aborted"===r.status)return EY;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){let n=[];for(let e of t)n.push({key:await e.key,value:await e.value});return EH.mergeObjectSync(e,n)}static mergeObjectSync(e,t){let n={};for(let r of t){let{key:t,value:i}=r;if("aborted"===t.status||"aborted"===i.status)return EY;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),(void 0!==i.value||r.alwaysSet)&&(n[t.value]=i.value)}return{status:e.value,value:n}}}let EY=Object.freeze({status:"aborted"}),EX=e=>({status:"valid",value:e}),EV=e=>"aborted"===e.status,EK=e=>"dirty"===e.status,EJ=e=>"valid"===e.status,E1=e=>e instanceof Promise;(P_=PD||(PD={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},P_.toString=e=>"string"==typeof e?e:null==e?void 0:e.message;class E0{constructor(e,t,n,r){this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._path.concat(this._key)}}let E2=(e,t)=>{if(EJ(t))return{success:!0,data:t.value};{if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");let t=new Ez(e.common.issues);return{success:!1,error:t}}};function E5(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw Error('Can\'t use "invalid" or "required" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(t,n)=>"invalid_type"!==t.code?{message:n.defaultError}:void 0===n.data&&r?{message:r}:e.invalid_type_error?{message:e.invalid_type_error}:{message:n.defaultError},description:i}}class E9{constructor(e){this.spa=this.safeParseAsync,this.superRefine=this._refinement,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.default=this.default.bind(this),this.describe=this.describe.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return EU(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:EU(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new EH,ctx:{common:e.parent.common,data:e.data,parsedType:EU(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(E1(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;let r={common:{issues:[],async:null!==(n=null==t?void 0:t.async)&&void 0!==n&&n,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:EU(e)},i=this._parseSync({data:e,path:r.path,parent:r});return E2(r,i)}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:EU(e)},r=this._parse({data:e,path:[],parent:n}),i=await (E1(r)?r:Promise.resolve(r));return E2(n,i)}refine(e,t){let n=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,r)=>{let i=e(t),a=()=>r.addIssue({code:Ej.custom,...n(t)});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(e=>!!e||(a(),!1)):!!i||(a(),!1)})}refinement(e,t){return this._refinement((n,r)=>!!e(n)||(r.addIssue("function"==typeof t?t(n,r):t),!1))}_refinement(e){return new CS({schema:this,typeName:PM.ZodEffects,effect:{type:"refinement",refinement:e}})}optional(){return Cw.create(this)}nullable(){return CE.create(this)}nullish(){return this.optional().nullable()}array(){return Cu.create(this)}promise(){return C_.create(this)}or(e){return Ch.create([this,e])}and(e){return Cf.create(this,e)}transform(e){return new CS({schema:this,typeName:PM.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new CC({innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:PM.ZodDefault})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let E4=/^c[^\s-]{8,}$/i,E3=/^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i,E8=/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i;class E6 extends E9{constructor(){super(...arguments),this._regex=(e,t,n)=>this.refinement(t=>e.test(t),{validation:t,code:Ej.invalid_string,...PD.errToObj(n)}),this.nonempty=e=>this.min(1,PD.errToObj(e)),this.trim=()=>new E6({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}_parse(e){let t;let n=this._getType(e);if(n!==EB.string){let t=this._getOrReturnCtx(e);return EG(t,{code:Ej.invalid_type,expected:EB.string,received:t.parsedType}),EY}let r=new EH;for(let n of this._def.checks)if("min"===n.kind)e.data.lengthn.value&&(EG(t=this._getOrReturnCtx(e,t),{code:Ej.too_big,maximum:n.value,type:"string",inclusive:!0,message:n.message}),r.dirty());else if("email"===n.kind)E8.test(e.data)||(EG(t=this._getOrReturnCtx(e,t),{validation:"email",code:Ej.invalid_string,message:n.message}),r.dirty());else if("uuid"===n.kind)E3.test(e.data)||(EG(t=this._getOrReturnCtx(e,t),{validation:"uuid",code:Ej.invalid_string,message:n.message}),r.dirty());else if("cuid"===n.kind)E4.test(e.data)||(EG(t=this._getOrReturnCtx(e,t),{validation:"cuid",code:Ej.invalid_string,message:n.message}),r.dirty());else if("url"===n.kind)try{new URL(e.data)}catch(i){EG(t=this._getOrReturnCtx(e,t),{validation:"url",code:Ej.invalid_string,message:n.message}),r.dirty()}else if("regex"===n.kind){n.regex.lastIndex=0;let i=n.regex.test(e.data);i||(EG(t=this._getOrReturnCtx(e,t),{validation:"regex",code:Ej.invalid_string,message:n.message}),r.dirty())}else"trim"===n.kind?e.data=e.data.trim():PL.assertNever(n);return{status:r.value,value:e.data}}_addCheck(e){return new E6({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...PD.errToObj(e)})}url(e){return this._addCheck({kind:"url",...PD.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...PD.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...PD.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...PD.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...PD.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...PD.errToObj(t)})}length(e,t){return this.min(e,t).max(e,t)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get minLength(){let e=-1/0;return this._def.checks.map(t=>{"min"===t.kind&&(null===e||t.value>e)&&(e=t.value)}),e}get maxLength(){let e=null;return this._def.checks.map(t=>{"max"===t.kind&&(null===e||t.valuenew E6({checks:[],typeName:PM.ZodString,...E5(e)});class E7 extends E9{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;let n=this._getType(e);if(n!==EB.number){let t=this._getOrReturnCtx(e);return EG(t,{code:Ej.invalid_type,expected:EB.number,received:t.parsedType}),EY}let r=new EH;for(let n of this._def.checks)if("int"===n.kind)PL.isInteger(e.data)||(EG(t=this._getOrReturnCtx(e,t),{code:Ej.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty());else if("min"===n.kind){let i=n.inclusive?e.datan.value:e.data>=n.value;i&&(EG(t=this._getOrReturnCtx(e,t),{code:Ej.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,message:n.message}),r.dirty())}else"multipleOf"===n.kind?0!==function(e,t){let n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,a=parseInt(e.toFixed(i).replace(".","")),o=parseInt(t.toFixed(i).replace(".",""));return a%o/Math.pow(10,i)}(e.data,n.value)&&(EG(t=this._getOrReturnCtx(e,t),{code:Ej.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):PL.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,PD.toString(t))}gt(e,t){return this.setLimit("min",e,!1,PD.toString(t))}lte(e,t){return this.setLimit("max",e,!0,PD.toString(t))}lt(e,t){return this.setLimit("max",e,!1,PD.toString(t))}setLimit(e,t,n,r){return new E7({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:PD.toString(r)}]})}_addCheck(e){return new E7({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:PD.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:PD.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:PD.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:PD.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:PD.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:PD.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value"int"===e.kind)}}E7.create=e=>new E7({checks:[],typeName:PM.ZodNumber,...E5(e)});class Ce extends E9{_parse(e){let t=this._getType(e);if(t!==EB.bigint){let t=this._getOrReturnCtx(e);return EG(t,{code:Ej.invalid_type,expected:EB.bigint,received:t.parsedType}),EY}return EX(e.data)}}Ce.create=e=>new Ce({typeName:PM.ZodBigInt,...E5(e)});class Ct extends E9{_parse(e){let t=this._getType(e);if(t!==EB.boolean){let t=this._getOrReturnCtx(e);return EG(t,{code:Ej.invalid_type,expected:EB.boolean,received:t.parsedType}),EY}return EX(e.data)}}Ct.create=e=>new Ct({typeName:PM.ZodBoolean,...E5(e)});class Cn extends E9{_parse(e){let t=this._getType(e);if(t!==EB.date){let t=this._getOrReturnCtx(e);return EG(t,{code:Ej.invalid_type,expected:EB.date,received:t.parsedType}),EY}if(isNaN(e.data.getTime())){let t=this._getOrReturnCtx(e);return EG(t,{code:Ej.invalid_date}),EY}return{status:"valid",value:new Date(e.data.getTime())}}}Cn.create=e=>new Cn({typeName:PM.ZodDate,...E5(e)});class Cr extends E9{_parse(e){let t=this._getType(e);if(t!==EB.undefined){let t=this._getOrReturnCtx(e);return EG(t,{code:Ej.invalid_type,expected:EB.undefined,received:t.parsedType}),EY}return EX(e.data)}}Cr.create=e=>new Cr({typeName:PM.ZodUndefined,...E5(e)});class Ci extends E9{_parse(e){let t=this._getType(e);if(t!==EB.null){let t=this._getOrReturnCtx(e);return EG(t,{code:Ej.invalid_type,expected:EB.null,received:t.parsedType}),EY}return EX(e.data)}}Ci.create=e=>new Ci({typeName:PM.ZodNull,...E5(e)});class Ca extends E9{constructor(){super(...arguments),this._any=!0}_parse(e){return EX(e.data)}}Ca.create=e=>new Ca({typeName:PM.ZodAny,...E5(e)});class Co extends E9{constructor(){super(...arguments),this._unknown=!0}_parse(e){return EX(e.data)}}Co.create=e=>new Co({typeName:PM.ZodUnknown,...E5(e)});class Cs extends E9{_parse(e){let t=this._getOrReturnCtx(e);return EG(t,{code:Ej.invalid_type,expected:EB.never,received:t.parsedType}),EY}}Cs.create=e=>new Cs({typeName:PM.ZodNever,...E5(e)});class Cl extends E9{_parse(e){let t=this._getType(e);if(t!==EB.undefined){let t=this._getOrReturnCtx(e);return EG(t,{code:Ej.invalid_type,expected:EB.void,received:t.parsedType}),EY}return EX(e.data)}}Cl.create=e=>new Cl({typeName:PM.ZodVoid,...E5(e)});class Cu extends E9{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==EB.array)return EG(t,{code:Ej.invalid_type,expected:EB.array,received:t.parsedType}),EY;if(null!==r.minLength&&t.data.lengthr.maxLength.value&&(EG(t,{code:Ej.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all(t.data.map((e,n)=>r.type._parseAsync(new E0(t,e,t.path,n)))).then(e=>EH.mergeArray(n,e));let i=t.data.map((e,n)=>r.type._parseSync(new E0(t,e,t.path,n)));return EH.mergeArray(n,i)}get element(){return this._def.type}min(e,t){return new Cu({...this._def,minLength:{value:e,message:PD.toString(t)}})}max(e,t){return new Cu({...this._def,maxLength:{value:e,message:PD.toString(t)}})}length(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}Cu.create=(e,t)=>new Cu({type:e,minLength:null,maxLength:null,typeName:PM.ZodArray,...E5(t)}),(PQ||(PQ={})).mergeShapes=(e,t)=>({...e,...t});let Cc=e=>t=>new Cd({...e,shape:()=>({...e.shape(),...t})});class Cd extends E9{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=Cc(this._def),this.extend=Cc(this._def)}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=PL.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){let t=this._getType(e);if(t!==EB.object){let t=this._getOrReturnCtx(e);return EG(t,{code:Ej.invalid_type,expected:EB.object,received:t.parsedType}),EY}let{status:n,ctx:r}=this._processInputParams(e),{shape:i,keys:a}=this._getCached(),o=[];for(let e in r.data)a.includes(e)||o.push(e);let s=[];for(let e of a){let t=i[e],n=r.data[e];s.push({key:{status:"valid",value:e},value:t._parse(new E0(r,n,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof Cs){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of o)s.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)o.length>0&&(EG(r,{code:Ej.unrecognized_keys,keys:o}),n.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of o){let n=r.data[t];s.push({key:{status:"valid",value:t},value:e._parse(new E0(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of s){let n=await t.key;e.push({key:n,value:await t.value,alwaysSet:t.alwaysSet})}return e}).then(e=>EH.mergeObjectSync(n,e)):EH.mergeObjectSync(n,s)}get shape(){return this._def.shape()}strict(e){return PD.errToObj,new Cd({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var r,i,a,o;let s=null!==(a=null===(i=(r=this._def).errorMap)||void 0===i?void 0:i.call(r,t,n).message)&&void 0!==a?a:n.defaultError;return"unrecognized_keys"===t.code?{message:null!==(o=PD.errToObj(e).message)&&void 0!==o?o:s}:{message:s}}}:{}})}strip(){return new Cd({...this._def,unknownKeys:"strip"})}passthrough(){return new Cd({...this._def,unknownKeys:"passthrough"})}setKey(e,t){return this.augment({[e]:t})}merge(e){let t=new Cd({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>PQ.mergeShapes(this._def.shape(),e._def.shape()),typeName:PM.ZodObject});return t}catchall(e){return new Cd({...this._def,catchall:e})}pick(e){let t={};return PL.objectKeys(e).map(e=>{this.shape[e]&&(t[e]=this.shape[e])}),new Cd({...this._def,shape:()=>t})}omit(e){let t={};return PL.objectKeys(this.shape).map(n=>{-1===PL.objectKeys(e).indexOf(n)&&(t[n]=this.shape[n])}),new Cd({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof Cd){let n={};for(let r in t.shape){let i=t.shape[r];n[r]=Cw.create(e(i))}return new Cd({...t._def,shape:()=>n})}return t instanceof Cu?Cu.create(e(t.element)):t instanceof Cw?Cw.create(e(t.unwrap())):t instanceof CE?CE.create(e(t.unwrap())):t instanceof Cm?Cm.create(t.items.map(t=>e(t))):t}(this)}partial(e){let t={};if(e)PL.objectKeys(this.shape).map(n=>{-1===PL.objectKeys(e).indexOf(n)?t[n]=this.shape[n]:t[n]=this.shape[n].optional()});else for(let e in this.shape){let n=this.shape[e];t[e]=n.optional()}return new Cd({...this._def,shape:()=>t})}required(){let e={};for(let t in this.shape){let n=this.shape[t],r=n;for(;r instanceof Cw;)r=r._def.innerType;e[t]=r}return new Cd({...this._def,shape:()=>e})}}Cd.create=(e,t)=>new Cd({shape:()=>e,unknownKeys:"strip",catchall:Cs.create(),typeName:PM.ZodObject,...E5(t)}),Cd.strictCreate=(e,t)=>new Cd({shape:()=>e,unknownKeys:"strict",catchall:Cs.create(),typeName:PM.ZodObject,...E5(t)}),Cd.lazycreate=(e,t)=>new Cd({shape:e,unknownKeys:"strip",catchall:Cs.create(),typeName:PM.ZodObject,...E5(t)});class Ch extends E9{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map(async e=>{let n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let n of e)if("dirty"===n.result.status)return t.common.issues.push(...n.ctx.common.issues),n.result;let n=e.map(e=>new Ez(e.ctx.common.issues));return EG(t,{code:Ej.invalid_union,unionErrors:n}),EY});{let e;let r=[];for(let i of n){let n={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:n});if("valid"===a.status)return a;"dirty"!==a.status||e||(e={result:a,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=r.map(e=>new Ez(e));return EG(t,{code:Ej.invalid_union,unionErrors:i}),EY}}get options(){return this._def.options}}Ch.create=(e,t)=>new Ch({options:e,typeName:PM.ZodUnion,...E5(t)});class Cp extends E9{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==EB.object)return EG(t,{code:Ej.invalid_type,expected:EB.object,received:t.parsedType}),EY;let n=this.discriminator,r=t.data[n],i=this.options.get(r);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(EG(t,{code:Ej.invalid_union_discriminator,options:this.validDiscriminatorValues,path:[n]}),EY)}get discriminator(){return this._def.discriminator}get validDiscriminatorValues(){return Array.from(this.options.keys())}get options(){return this._def.options}static create(e,t,n){let r=new Map;try{t.forEach(t=>{let n=t.shape[e].value;r.set(n,t)})}catch(e){throw Error("The discriminator value could not be extracted from all the provided schemas")}if(r.size!==t.length)throw Error("Some of the discriminator values are not unique");return new Cp({typeName:PM.ZodDiscriminatedUnion,discriminator:e,options:r,...E5(n)})}}class Cf extends E9{_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(EV(e)||EV(r))return EY;let i=function e(t,n){let r=EU(t),i=EU(n);if(t===n)return{valid:!0,data:t};if(r===EB.object&&i===EB.object){let r=PL.objectKeys(n),i=PL.objectKeys(t).filter(e=>-1!==r.indexOf(e)),a={...t,...n};for(let r of i){let i=e(t[r],n[r]);if(!i.valid)return{valid:!1};a[r]=i.data}return{valid:!0,data:a}}if(r===EB.array&&i===EB.array){if(t.length!==n.length)return{valid:!1};let r=[];for(let i=0;ir(e,t)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}Cf.create=(e,t,n)=>new Cf({left:e,right:t,typeName:PM.ZodIntersection,...E5(n)});class Cm extends E9{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==EB.array)return EG(n,{code:Ej.invalid_type,expected:EB.array,received:n.parsedType}),EY;if(n.data.lengththis._def.items.length&&(EG(n,{code:Ej.too_big,maximum:this._def.items.length,inclusive:!0,type:"array"}),t.dirty());let i=n.data.map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new E0(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(i).then(e=>EH.mergeArray(t,e)):EH.mergeArray(t,i)}get items(){return this._def.items}rest(e){return new Cm({...this._def,rest:e})}}Cm.create=(e,t)=>new Cm({items:e,typeName:PM.ZodTuple,rest:null,...E5(t)});class Cg extends E9{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==EB.object)return EG(n,{code:Ej.invalid_type,expected:EB.object,received:n.parsedType}),EY;let r=[],i=this._def.keyType,a=this._def.valueType;for(let e in n.data)r.push({key:i._parse(new E0(n,e,n.path,e)),value:a._parse(new E0(n,n.data[e],n.path,e))});return n.common.async?EH.mergeObjectAsync(t,r):EH.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,n){return new Cg(t instanceof E9?{keyType:e,valueType:t,typeName:PM.ZodRecord,...E5(n)}:{keyType:E6.create(),valueType:e,typeName:PM.ZodRecord,...E5(t)})}}class CO extends E9{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==EB.map)return EG(n,{code:Ej.invalid_type,expected:EB.map,received:n.parsedType}),EY;let r=this._def.keyType,i=this._def.valueType,a=[...n.data.entries()].map(([e,t],a)=>({key:r._parse(new E0(n,e,n.path,[a,"key"])),value:i._parse(new E0(n,t,n.path,[a,"value"]))}));if(n.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let n of a){let r=await n.key,i=await n.value;if("aborted"===r.status||"aborted"===i.status)return EY;("dirty"===r.status||"dirty"===i.status)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let n of a){let r=n.key,i=n.value;if("aborted"===r.status||"aborted"===i.status)return EY;("dirty"===r.status||"dirty"===i.status)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}}CO.create=(e,t,n)=>new CO({valueType:t,keyType:e,typeName:PM.ZodMap,...E5(n)});class Cb extends E9{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==EB.set)return EG(n,{code:Ej.invalid_type,expected:EB.set,received:n.parsedType}),EY;let r=this._def;null!==r.minSize&&n.data.sizer.maxSize.value&&(EG(n,{code:Ej.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,message:r.maxSize.message}),t.dirty());let i=this._def.valueType;function a(e){let n=new Set;for(let r of e){if("aborted"===r.status)return EY;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}let o=[...n.data.values()].map((e,t)=>i._parse(new E0(n,e,n.path,t)));return n.common.async?Promise.all(o).then(e=>a(e)):a(o)}min(e,t){return new Cb({...this._def,minSize:{value:e,message:PD.toString(t)}})}max(e,t){return new Cb({...this._def,maxSize:{value:e,message:PD.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}Cb.create=(e,t)=>new Cb({valueType:e,minSize:null,maxSize:null,typeName:PM.ZodSet,...E5(t)});class Cy extends E9{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==EB.function)return EG(t,{code:Ej.invalid_type,expected:EB.function,received:t.parsedType}),EY;function n(e,n){return Eq({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,EZ,EW].filter(e=>!!e),issueData:{code:Ej.invalid_arguments,argumentsError:n}})}function r(e,n){return Eq({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,EZ,EW].filter(e=>!!e),issueData:{code:Ej.invalid_return_type,returnTypeError:n}})}let i={errorMap:t.common.contextualErrorMap},a=t.data;return this._def.returns instanceof C_?EX(async(...e)=>{let t=new Ez([]),o=await this._def.args.parseAsync(e,i).catch(r=>{throw t.addIssue(n(e,r)),t}),s=await a(...o),l=await this._def.returns._def.type.parseAsync(s,i).catch(e=>{throw t.addIssue(r(s,e)),t});return l}):EX((...e)=>{let t=this._def.args.safeParse(e,i);if(!t.success)throw new Ez([n(e,t.error)]);let o=a(...t.data),s=this._def.returns.safeParse(o,i);if(!s.success)throw new Ez([r(o,s.error)]);return s.data})}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Cy({...this._def,args:Cm.create(e).rest(Co.create())})}returns(e){return new Cy({...this._def,returns:e})}implement(e){let t=this.parse(e);return t}strictImplement(e){let t=this.parse(e);return t}}Cy.create=(e,t,n)=>new Cy({args:e?e.rest(Co.create()):Cm.create([]).rest(Co.create()),returns:t||Co.create(),typeName:PM.ZodFunction,...E5(n)});class Cv extends E9{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.getter();return n._parse({data:t.data,path:t.path,parent:t})}}Cv.create=(e,t)=>new Cv({getter:e,typeName:PM.ZodLazy,...E5(t)});class Cx extends E9{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return EG(t,{code:Ej.invalid_literal,expected:this._def.value}),EY}return{status:"valid",value:e.data}}get value(){return this._def.value}}Cx.create=(e,t)=>new Cx({value:e,typeName:PM.ZodLiteral,...E5(t)});class CT extends E9{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),n=this._def.values;return EG(t,{expected:PL.joinValues(n),received:t.parsedType,code:Ej.invalid_type}),EY}if(-1===this._def.values.indexOf(e.data)){let t=this._getOrReturnCtx(e),n=this._def.values;return EG(t,{received:t.data,code:Ej.invalid_enum_value,options:n}),EY}return EX(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}}CT.create=function(e,t){return new CT({values:e,typeName:PM.ZodEnum,...E5(t)})};class Ck extends E9{_parse(e){let t=PL.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==EB.string&&n.parsedType!==EB.number){let e=PL.objectValues(t);return EG(n,{expected:PL.joinValues(e),received:n.parsedType,code:Ej.invalid_type}),EY}if(-1===t.indexOf(e.data)){let e=PL.objectValues(t);return EG(n,{received:n.data,code:Ej.invalid_enum_value,options:e}),EY}return EX(e.data)}get enum(){return this._def.values}}Ck.create=(e,t)=>new Ck({values:e,typeName:PM.ZodNativeEnum,...E5(t)});class C_ extends E9{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==EB.promise&&!1===t.common.async)return EG(t,{code:Ej.invalid_type,expected:EB.promise,received:t.parsedType}),EY;let n=t.parsedType===EB.promise?t.data:Promise.resolve(t.data);return EX(n.then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}C_.create=(e,t)=>new C_({type:e,typeName:PM.ZodPromise,...E5(t)});class CS extends E9{innerType(){return this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null;if("preprocess"===r.type){let e=r.transform(n.data);return n.common.async?Promise.resolve(e).then(e=>this._def.schema._parseAsync({data:e,path:n.path,parent:n})):this._def.schema._parseSync({data:e,path:n.path,parent:n})}let i={addIssue:e=>{EG(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),"refinement"===r.type){let e=e=>{let t=r.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>"aborted"===n.status?EY:("dirty"===n.status&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))));{let r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?EY:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}}if("transform"===r.type){if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>EJ(e)?Promise.resolve(r.transform(e.value,i)).then(e=>({status:t.value,value:e})):e);{let e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!EJ(e))return e;let a=r.transform(e.value,i);if(a instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}}PL.assertNever(r)}}CS.create=(e,t,n)=>new CS({schema:e,typeName:PM.ZodEffects,effect:t,...E5(n)}),CS.createWithPreprocess=(e,t,n)=>new CS({schema:t,effect:{type:"preprocess",transform:e},typeName:PM.ZodEffects,...E5(n)});class Cw extends E9{_parse(e){let t=this._getType(e);return t===EB.undefined?EX(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Cw.create=(e,t)=>new Cw({innerType:e,typeName:PM.ZodOptional,...E5(t)});class CE extends E9{_parse(e){let t=this._getType(e);return t===EB.null?EX(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}CE.create=(e,t)=>new CE({innerType:e,typeName:PM.ZodNullable,...E5(t)});class CC extends E9{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===EB.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}CC.create=(e,t)=>new Cw({innerType:e,typeName:PM.ZodOptional,...E5(t)});class CA extends E9{_parse(e){let t=this._getType(e);if(t!==EB.nan){let t=this._getOrReturnCtx(e);return EG(t,{code:Ej.invalid_type,expected:EB.nan,received:t.parsedType}),EY}return{status:"valid",value:e.data}}}CA.create=e=>new CA({typeName:PM.ZodNaN,...E5(e)});let CR=(e,t={},n)=>e?Ca.create().superRefine((r,i)=>{if(!e(r)){let e="function"==typeof t?t(r):t,a="string"==typeof e?{message:e}:e;i.addIssue({code:"custom",...a,fatal:n})}}):Ca.create(),CP={object:Cd.lazycreate};(PS=PM||(PM={})).ZodString="ZodString",PS.ZodNumber="ZodNumber",PS.ZodNaN="ZodNaN",PS.ZodBigInt="ZodBigInt",PS.ZodBoolean="ZodBoolean",PS.ZodDate="ZodDate",PS.ZodUndefined="ZodUndefined",PS.ZodNull="ZodNull",PS.ZodAny="ZodAny",PS.ZodUnknown="ZodUnknown",PS.ZodNever="ZodNever",PS.ZodVoid="ZodVoid",PS.ZodArray="ZodArray",PS.ZodObject="ZodObject",PS.ZodUnion="ZodUnion",PS.ZodDiscriminatedUnion="ZodDiscriminatedUnion",PS.ZodIntersection="ZodIntersection",PS.ZodTuple="ZodTuple",PS.ZodRecord="ZodRecord",PS.ZodMap="ZodMap",PS.ZodSet="ZodSet",PS.ZodFunction="ZodFunction",PS.ZodLazy="ZodLazy",PS.ZodLiteral="ZodLiteral",PS.ZodEnum="ZodEnum",PS.ZodEffects="ZodEffects",PS.ZodNativeEnum="ZodNativeEnum",PS.ZodOptional="ZodOptional",PS.ZodNullable="ZodNullable",PS.ZodDefault="ZodDefault",PS.ZodPromise="ZodPromise";let CI=E6.create,CN=E7.create,C$=CA.create,CL=Ce.create,CD=Ct.create,CQ=Cn.create,CM=Cr.create,CF=Ci.create,CB=Ca.create,CU=Co.create,Cj=Cs.create,Cz=Cl.create,CW=Cu.create,CZ=Cd.create,Cq=Cd.strictCreate,CG=Ch.create,CH=Cp.create,CY=Cf.create,CX=Cm.create,CV=Cg.create,CK=CO.create,CJ=Cb.create,C1=Cy.create,C0=Cv.create,C2=Cx.create,C5=CT.create,C9=Ck.create,C4=C_.create,C3=CS.create,C8=Cw.create,C6=CE.create,C7=CS.createWithPreprocess;var Ae=Object.freeze({__proto__:null,getParsedType:EU,ZodParsedType:EB,makeIssue:Eq,EMPTY_PATH:[],addIssueToContext:EG,ParseStatus:EH,INVALID:EY,DIRTY:e=>({status:"dirty",value:e}),OK:EX,isAborted:EV,isDirty:EK,isValid:EJ,isAsync:E1,ZodType:E9,ZodString:E6,ZodNumber:E7,ZodBigInt:Ce,ZodBoolean:Ct,ZodDate:Cn,ZodUndefined:Cr,ZodNull:Ci,ZodAny:Ca,ZodUnknown:Co,ZodNever:Cs,ZodVoid:Cl,ZodArray:Cu,get objectUtil(){return PQ},ZodObject:Cd,ZodUnion:Ch,ZodDiscriminatedUnion:Cp,ZodIntersection:Cf,ZodTuple:Cm,ZodRecord:Cg,ZodMap:CO,ZodSet:Cb,ZodFunction:Cy,ZodLazy:Cv,ZodLiteral:Cx,ZodEnum:CT,ZodNativeEnum:Ck,ZodPromise:C_,ZodEffects:CS,ZodTransformer:CS,ZodOptional:Cw,ZodNullable:CE,ZodDefault:CC,ZodNaN:CA,custom:CR,Schema:E9,ZodSchema:E9,late:CP,get ZodFirstPartyTypeKind(){return PM},any:CB,array:CW,bigint:CL,boolean:CD,date:CQ,discriminatedUnion:CH,effect:C3,enum:C5,function:C1,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>CR(t=>t instanceof e,t,!0),intersection:CY,lazy:C0,literal:C2,map:CK,nan:C$,nativeEnum:C9,never:Cj,null:CF,nullable:C6,number:CN,object:CZ,oboolean:()=>CD().optional(),onumber:()=>CN().optional(),optional:C8,ostring:()=>CI().optional(),preprocess:C7,promise:C4,record:CV,set:CJ,strictObject:Cq,string:CI,transformer:C3,tuple:CX,undefined:CM,union:CG,unknown:CU,void:Cz,ZodIssueCode:Ej,quotelessJson:e=>{let t=JSON.stringify(e,null,2);return t.replace(/"([^"]+)":/g,"$1:")},ZodError:Ez,defaultErrorMap:EW,get overrideErrorMap(){return EZ},setErrorMap:e=>{EZ=e}});Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var At=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),An=["en","en-GB","en-US","de","fr","it","nl","tr","es","pt"],Ar=(0,U.createContext)({locale:"en-GB",config:{},setLocale:()=>null,bits:{task:{},end:{},start:{},title:{},input:{}}}),Ai=({children:e,locale:t,bits:n,config:r={}})=>{let[i,a]=(0,U.useState)("en-GB");return(0,U.useEffect)(()=>{An.includes(t)?a(t):a("en-GB")},[t]),af(Ar.Provider,{value:{bits:n,locale:i,setLocale:e=>{window.__localeId__=e,a(e)},config:r}},af(Sn,{language:i},e))};function Aa(e){let{bits:t}=(0,U.useContext)(Ar);return t[e]}function Ao(e,t){var n;let{bits:r}=(0,U.useContext)(Ar);return e&&t&&(null==(n=r[e])?void 0:n[t])||null}var As=e=>{let t=Ao("task",e);return t},Al=e=>{let t=Ao("title",e);return t},Au=e=>{let t=Ao("input",e);return t},Ac=e=>{let t=Ao("start",e);return t},Ad=e=>{let t=Ao("end",e);return t},Ah=()=>{let e=Aa("task"),t=Aa("title"),n=Aa("start"),r=Aa("end"),i=Aa("input"),a=(0,U.useRef)(),o=(0,U.useRef)(),s=(0,U.useRef)({});if(!a.current||!o.current){let l=null;for(let e in t){let n=t[e];l=l?l.or(n.TitleSchema):n.TitleSchema}let u=null;for(let e in n){let t=n[e];u=u?u.or(t.StartSchema):t.StartSchema}let c=null;for(let e in i){let t=i[e];c=c?c.or(t.InputSchema):t.InputSchema}let d=null;for(let e in r){let t=r[e];d=d?d.or(t.EndSchema):t.EndSchema}let h=null;for(let t in e){let n=e[t];s.current[t]=n.evaluate,h=h?h.or(n.TaskSchema):n.TaskSchema}a.current=EL({end:null!=d?d:Ae.never(),task:null!=h?h:Ae.never(),input:null!=c?c:Ae.never(),title:null!=l?l:Ae.never(),start:null!=u?u:Ae.never()}),o.current=E$({end:null!=d?d:Ae.never(),task:null!=h?h:Ae.never(),input:null!=c?c:Ae.never(),title:null!=l?l:Ae.never(),start:null!=u?u:Ae.never()})}return{FlowSchema:a.current,FlowNodeSchema:o.current,evaluate:e=>At(void 0,[e],function*({task:e,answer:t}){console.log(s.current);let n=s.current[e.subtype];if(!n)throw Error(`subtype ${e.subtype} not supported. Please see your provider config.`);return n({answer:t,task:e})})}},Ap=function(e,t){return(Ap=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function Af(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Ap(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Am=function(){return(Am=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=Math.abs(e)},AG=!0;try{var AH=A0("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");AG=(null===(Pj=AH.exec("a"))||void 0===Pj?void 0:Pj[0])==="a"}catch(e){AG=!1}var AY=AB?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},AX=AU?String.fromCodePoint:function(){for(var e,t=[],n=0;na;){if((e=t[a++])>1114111)throw RangeError(e+" is not a valid code point");r+=e<65536?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10)+55296,e%1024+56320)}return r},AV=Aj?Object.fromEntries:function(e){for(var t={},n=0;n=r)){var i=e.charCodeAt(t);return i<55296||i>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?i:(i-55296<<10)+(n-56320)+65536}},AJ=AW?function(e){return e.trimStart()}:function(e){return e.replace(AQ,"")},A1=AZ?function(e){return e.trimEnd()}:function(e){return e.replace(AM,"")};function A0(e,t){return new RegExp(e,t)}if(AG){var A2=A0("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Pz=function(e,t){var n;return A2.lastIndex=t,null!==(n=A2.exec(e)[1])&&void 0!==n?n:""}}else Pz=function(e,t){for(var n=[];;){var r,i=AK(e,t);if(void 0===i||A4(i)||(r=i)>=33&&r<=35||36===r||r>=37&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||r>=46&&r<=47||r>=58&&r<=59||r>=60&&r<=62||r>=63&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||r>=162&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||r>=8208&&r<=8213||r>=8214&&r<=8215||8216===r||8217===r||8218===r||r>=8219&&r<=8220||8221===r||8222===r||8223===r||r>=8224&&r<=8231||r>=8240&&r<=8248||8249===r||8250===r||r>=8251&&r<=8254||r>=8257&&r<=8259||8260===r||8261===r||8262===r||r>=8263&&r<=8273||8274===r||8275===r||r>=8277&&r<=8286||r>=8592&&r<=8596||r>=8597&&r<=8601||r>=8602&&r<=8603||r>=8604&&r<=8607||8608===r||r>=8609&&r<=8610||8611===r||r>=8612&&r<=8613||8614===r||r>=8615&&r<=8621||8622===r||r>=8623&&r<=8653||r>=8654&&r<=8655||r>=8656&&r<=8657||8658===r||8659===r||8660===r||r>=8661&&r<=8691||r>=8692&&r<=8959||r>=8960&&r<=8967||8968===r||8969===r||8970===r||8971===r||r>=8972&&r<=8991||r>=8992&&r<=8993||r>=8994&&r<=9e3||9001===r||9002===r||r>=9003&&r<=9083||9084===r||r>=9085&&r<=9114||r>=9115&&r<=9139||r>=9140&&r<=9179||r>=9180&&r<=9185||r>=9186&&r<=9254||r>=9255&&r<=9279||r>=9280&&r<=9290||r>=9291&&r<=9311||r>=9472&&r<=9654||9655===r||r>=9656&&r<=9664||9665===r||r>=9666&&r<=9719||r>=9720&&r<=9727||r>=9728&&r<=9838||9839===r||r>=9840&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||r>=10132&&r<=10175||r>=10176&&r<=10180||10181===r||10182===r||r>=10183&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||r>=10224&&r<=10239||r>=10240&&r<=10495||r>=10496&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||r>=10649&&r<=10711||10712===r||10713===r||10714===r||10715===r||r>=10716&&r<=10747||10748===r||10749===r||r>=10750&&r<=11007||r>=11008&&r<=11055||r>=11056&&r<=11076||r>=11077&&r<=11078||r>=11079&&r<=11084||r>=11085&&r<=11123||r>=11124&&r<=11125||r>=11126&&r<=11157||11158===r||r>=11159&&r<=11263||r>=11776&&r<=11777||11778===r||11779===r||11780===r||11781===r||r>=11782&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||r>=11790&&r<=11798||11799===r||r>=11800&&r<=11801||11802===r||11803===r||11804===r||11805===r||r>=11806&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||r>=11818&&r<=11822||11823===r||r>=11824&&r<=11833||r>=11834&&r<=11835||r>=11836&&r<=11839||11840===r||11841===r||11842===r||r>=11843&&r<=11855||r>=11856&&r<=11857||11858===r||r>=11859&&r<=11903||r>=12289&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||r>=12306&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||r>=12318&&r<=12319||12320===r||12336===r||64830===r||64831===r||r>=65093&&r<=65094)break;n.push(i),t+=i>=65536?2:1}return AX.apply(void 0,n)};var A5=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var i=this.char();if(123===i){var a=this.parseArgument(e,n);if(a.err)return a;r.push(a.val)}else if(125===i&&e>0)break;else if(35===i&&("plural"===t||"selectordinal"===t)){var o=this.clonePosition();this.bump(),r.push({type:PB.pound,location:AF(o,this.clonePosition())})}else if(60!==i||this.ignoreTag||47!==this.peek()){if(60===i&&!this.ignoreTag&&A9(this.peek()||0)){var a=this.parseTag(e,t);if(a.err)return a;r.push(a.val)}else{var a=this.parseLiteral(e,t);if(a.err)return a;r.push(a.val)}}else{if(!n)return this.error(PF.UNMATCHED_CLOSING_TAG,AF(this.clonePosition(),this.clonePosition()));break}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:PB.literal,value:"<".concat(r,"/>"),location:AF(n,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(PF.INVALID_TAG,AF(n,this.clonePosition()));var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var a=i.val,o=this.clonePosition();if(!this.bumpIf(""))?{val:{type:PB.tag,value:r,children:a,location:AF(n,this.clonePosition())},err:null}:this.error(PF.INVALID_TAG,AF(o,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(t);if(i){r+=i;continue}var a=this.tryParseUnquoted(e,t);if(a){r+=a;continue}var o=this.tryParseLeftAngleBracket();if(o){r+=o;continue}break}var s=AF(n,this.clonePosition());return{val:{type:PB.literal,value:r,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){var e;return this.isEOF()||60!==this.char()||!this.ignoreTag&&(A9(e=this.peek()||0)||47===e)?null:(this.bump(),"<")},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39===this.peek())t.push(39),this.bump();else{this.bump();break}}else t.push(n);this.bump()}return AX.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),AX(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(PF.EXPECT_ARGUMENT_CLOSING_BRACE,AF(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(PF.EMPTY_ARGUMENT,AF(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(PF.MALFORMED_ARGUMENT,AF(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(PF.EXPECT_ARGUMENT_CLOSING_BRACE,AF(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:PB.argument,value:r,location:AF(n,this.clonePosition())},err:null};case 44:if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(PF.EXPECT_ARGUMENT_CLOSING_BRACE,AF(n,this.clonePosition()));return this.parseArgumentOptions(e,t,r,n);default:return this.error(PF.MALFORMED_ARGUMENT,AF(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=Pz(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:AF(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var i,a=this.clonePosition(),o=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(o){case"":return this.error(PF.EXPECT_ARGUMENT_TYPE,AF(a,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition(),c=this.parseSimpleArgStyleIfPossible();if(c.err)return c;var d=A1(c.val);if(0===d.length)return this.error(PF.EXPECT_ARGUMENT_STYLE,AF(this.clonePosition(),this.clonePosition()));l={style:d,styleLocation:AF(u,this.clonePosition())}}var h=this.tryParseArgumentClose(r);if(h.err)return h;var p=AF(r,this.clonePosition());if(l&&AY(null==l?void 0:l.style,"::",0)){var f,m=AJ(l.style.slice(2));if("number"===o){var c=this.parseNumberSkeletonFromString(m,l.styleLocation);if(c.err)return c;return{val:{type:PB.number,value:n,location:p,style:c.val},err:null}}if(0===m.length)return this.error(PF.EXPECT_DATE_TIME_SKELETON,p);var g=m;this.locale&&(g=function(e,t){for(var n="",r=0;r>1),l=function(e){var t,n=e.hourCycle;if(void 0===n&&e.hourCycles&&e.hourCycles.length&&(n=e.hourCycles[0]),n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw Error("Invalid hourCycle")}var r=e.language;return"root"!==r&&(t=e.maximize().region),(AD[t||""]||AD[r||""]||AD["".concat(r,"-001")]||AD["001"])[0]}(t);for(("H"==l||"k"==l)&&(s=0);s-- >0;)n+="a";for(;o-- >0;)n=l+n}else"J"===i?n+="H":n+=i}return n}(m,this.locale));var d={type:PU.dateTime,pattern:g,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(f={},g.replace(AE,function(e){var t=e.length;switch(e[0]){case"G":f.era=4===t?"long":5===t?"narrow":"short";break;case"y":f.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":f.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw RangeError("`w/W` (week) patterns are not supported");case"d":f.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":f.weekday=4===t?"long":5===t?"narrow":"short";break;case"e":if(t<4)throw RangeError("`e..eee` (weekday) patterns are not supported");f.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");f.weekday=["short","long","narrow","short"][t-4];break;case"a":f.hour12=!0;break;case"b":case"B":throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":f.hourCycle="h12",f.hour=["numeric","2-digit"][t-1];break;case"H":f.hourCycle="h23",f.hour=["numeric","2-digit"][t-1];break;case"K":f.hourCycle="h11",f.hour=["numeric","2-digit"][t-1];break;case"k":f.hourCycle="h24",f.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":f.minute=["numeric","2-digit"][t-1];break;case"s":f.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":f.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),f):{}};return{val:{type:"date"===o?PB.date:PB.time,value:n,location:p,style:d},err:null}}return{val:{type:"number"===o?PB.number:"date"===o?PB.date:PB.time,value:n,location:p,style:null!==(i=null==l?void 0:l.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var O=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(PF.EXPECT_SELECT_ARGUMENT_OPTIONS,AF(O,Am({},O)));this.bumpSpace();var b=this.parseIdentifierIfPossible(),y=0;if("select"!==o&&"offset"===b.value){if(!this.bumpIf(":"))return this.error(PF.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,AF(this.clonePosition(),this.clonePosition()));this.bumpSpace();var c=this.tryParseDecimalInteger(PF.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,PF.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err)return c;this.bumpSpace(),b=this.parseIdentifierIfPossible(),y=c.val}var v=this.tryParsePluralOrSelectOptions(e,o,t,b);if(v.err)return v;var h=this.tryParseArgumentClose(r);if(h.err)return h;var x=AF(r,this.clonePosition());if("select"===o)return{val:{type:PB.select,value:n,options:AV(v.val),location:x},err:null};return{val:{type:PB.plural,value:n,options:AV(v.val),offset:y,pluralType:"plural"===o?"cardinal":"ordinal",location:x},err:null};default:return this.error(PF.INVALID_ARGUMENT_TYPE,AF(a,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(PF.EXPECT_ARGUMENT_CLOSING_BRACE,AF(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(PF.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,AF(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw Error("Number skeleton cannot be empty");for(var t=e.split(AC).filter(function(e){return e.length>0}),n=[],r=0;r1)throw RangeError("integer-width stems only accept a single optional option");r.options[0].replace(AP,function(e,n,r,i,a,o){if(n)t.minimumIntegerDigits=r.length;else if(i&&a)throw Error("We currently do not support maximum integer digits");else if(o)throw Error("We currently do not support exact integer digits");return""});continue}if(AI.test(r.stem)){t.minimumIntegerDigits=r.stem.length;continue}if(AA.test(r.stem)){if(r.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(AA,function(e,n,r,i,a,o){return"*"===r?t.minimumFractionDigits=n.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:a&&o?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+o.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""});var i=r.options[0];"w"===i?t=Am(Am({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=Am(Am({},t),AN(i)));continue}if(AR.test(r.stem)){t=Am(Am({},t),AN(r.stem));continue}var a=A$(r.stem);a&&(t=Am(Am({},t),a));var o=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!AI.test(e))throw Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(r.stem);o&&(t=Am(Am({},t),o))}return t}(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var i,a=!1,o=[],s=new Set,l=r.value,u=r.location;;){if(0===l.length){var c=this.clonePosition();if("select"!==t&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(PF.EXPECT_PLURAL_ARGUMENT_SELECTOR,PF.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;u=AF(c,this.clonePosition()),l=this.message.slice(c.offset,this.offset())}else break}if(s.has(l))return this.error("select"===t?PF.DUPLICATE_SELECT_ARGUMENT_SELECTOR:PF.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===l&&(a=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?PF.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:PF.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,AF(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(e+1,t,n);if(p.err)return p;var f=this.tryParseArgumentClose(h);if(f.err)return f;o.push([l,{value:p.val,location:AF(h,this.clonePosition())}]),s.add(l),this.bumpSpace(),l=(i=this.parseIdentifierIfPossible()).value,u=i.location}return 0===o.length?this.error("select"===t?PF.EXPECT_SELECT_ARGUMENT_SELECTOR:PF.EXPECT_PLURAL_ARGUMENT_SELECTOR,AF(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(PF.MISSING_OTHER_CLAUSE,AF(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,a=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)i=!0,a=10*a+(o-48),this.bump();else break}var s=AF(r,this.clonePosition());return i?Aq(a*=n)?{val:a,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=AK(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(AY(this.message,e,this.offset())){for(var t=0;t=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&A4(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null},e}();function A9(e){return e>=97&&e<=122||e>=65&&e<=90}function A4(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function A3(e,t){void 0===t&&(t={}),t=Am({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new A5(e,t).parse();if(n.err){var r=SyntaxError(PF[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||function e(t){t.forEach(function(t){if(delete t.location,Ax(t)||AT(t))for(var n in t.options)delete t.options[n].location,e(t.options[n].value);else Ab(t)&&A_(t.style)?delete t.style.location:(Ay(t)||Av(t))&&AS(t.style)?delete t.style.location:Ak(t)&&e(t.children)})}(n.val),n.val}function A8(e,t){var n=t&&t.cache?t.cache:Rr,r=t&&t.serializer?t.serializer:Rt;return(t&&t.strategy?t.strategy:Re)(e,{cache:n,serializer:r})}function A6(e,t,n,r){var i=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),a=t.get(i);return void 0===a&&(a=e.call(this,r),t.set(i,a)),a}function A7(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),a=t.get(i);return void 0===a&&(a=e.apply(this,r),t.set(i,a)),a}function Re(e,t){var n,r,i=1===e.length?A6:A7;return n=t.cache.create(),r=t.serializer,i.bind(this,e,n,r)}var Rt=function(){return JSON.stringify(arguments)};function Rn(){this.cache=Object.create(null)}Rn.prototype.get=function(e){return this.cache[e]},Rn.prototype.set=function(e,t){this.cache[e]=t};var Rr={create:function(){return new Rn}},Ri={variadic:function(e,t){var n,r;return n=t.cache.create(),r=t.serializer,A7.bind(this,e,n,r)},monadic:function(e,t){var n,r;return n=t.cache.create(),r=t.serializer,A6.bind(this,e,n,r)}};(PA=PW||(PW={})).MISSING_VALUE="MISSING_VALUE",PA.INVALID_VALUE="INVALID_VALUE",PA.MISSING_INTL_API="MISSING_INTL_API";var Ra=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.code=n,i.originalMessage=r,i}return Af(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Ro=function(e){function t(t,n,r,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(r).join('", "'),'"'),PW.INVALID_VALUE,i)||this}return Af(t,e),t}(Ra),Rs=function(e){function t(t,n,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),PW.INVALID_VALUE,r)||this}return Af(t,e),t}(Ra),Rl=function(e){function t(t,n){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(n,'"'),PW.MISSING_VALUE,n)||this}return Af(t,e),t}(Ra);function Ru(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}(PR=PZ||(PZ={}))[PR.literal=0]="literal",PR[PR.object=1]="object";var Rc=function(){function e(t,n,r,i){var a,o,s=this;if(void 0===n&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=s.formatToParts(e);if(1===t.length)return t[0].value;var n=t.reduce(function(e,t){return e.length&&t.type===PZ.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return function e(t,n,r,i,a,o,s){if(1===t.length&&AO(t[0]))return[{type:PZ.literal,value:t[0].value}];for(var l=[],u=0;ut.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}(l,["formatters"]));this.ast=e.__parse(t,Am(Am({},u),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw TypeError("A message must be provided as a String or AST.");this.formats=(a=e.formats,r?Object.keys(a).reduce(function(e,t){var n,i;return e[t]=(n=a[t],(i=r[t])?Am(Am(Am({},n||{}),i||{}),Object.keys(n).reduce(function(e,t){return e[t]=Am(Am({},n[t]),i[t]||{}),e},{})):n),e},Am({},a)):a),this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:A8(function(){for(var e,t=[],n=0;n0?t[0]:"string"==typeof e?e:e[0])}},e.__parse=A3,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();let Rd=new WeakMap,Rh=(e,t)=>{let n=Rd.get(e);if(n&&n[t])return n[t];let r={};for(let n of Object.keys(e)){let i=new Rc(e[n],t);r[n]={format:e=>i.format(e)}}return Rd.set(e,{...n,[t]:r}),r};function Rp(e){function t(t){let n=e[t];if(!n)throw Error(`Attempted to retrieve translations for unknown language "${t}"`);return n}return{getLoadedMessages(e,n){let r=t(e);return r.getValue(n||e)||null},getMessages(e,n){let r=t(e);return r.load().then(()=>{let t=r.getValue(n||e);if(!t)throw Error(`Unable to find translations for ${e} after attempting to load. Module may have failed to load or an internal error may have occurred.`);return t})},load(e){let n=t(e);return n.load()}}}let Rf=e=>({getValue:t=>Rh(e,t),load:()=>Promise.resolve()});var Rm=Rp({"en-GB":Rf({description:" ","example.markdown":"This is an example. Feel free to use it as a template.","example.title":"Welcome",markdown:"Markdown",name:"Simple",title:"Title"}),en:Rf({description:" ","example.markdown":"This is an example. Feel free to use it as a template.","example.title":"Welcome",markdown:"Markdown",name:"Simple",title:"Title"}),"en-US":Rf({description:" ","example.markdown":"This is an example. Feel free to use it as a template.","example.title":"Welcome",markdown:"Markdown",name:"Simple",title:"Title"}),de:Rf({description:" ","example.markdown":"This is an example. Feel free to use it as a template.","example.title":"Welcome",markdown:"Markdown",name:"Simple",title:"Title"}),fr:Rf({description:" ","example.markdown":"This is an example. Feel free to use it as a template.","example.title":"Welcome",markdown:"Markdown",name:"Simple",title:"Title"}),es:Rf({description:" ","example.markdown":"This is an example. Feel free to use it as a template.","example.title":"Welcome",markdown:"Markdown",name:"Simple",title:"Title"}),nl:Rf({description:" ","example.markdown":"This is an example. Feel free to use it as a template.","example.title":"Welcome",markdown:"Markdown",name:"Simple",title:"Title"}),pt:Rf({description:" ","example.markdown":"This is an example. Feel free to use it as a template.","example.title":"Welcome",markdown:"Markdown",name:"Simple",title:"Title"}),tr:Rf({description:" ","example.markdown":"This is an example. Feel free to use it as a template.","example.title":"Welcome",markdown:"Markdown",name:"Simple",title:"Title"})}),Rg=w7.merge(wq.object({subtype:wq.literal("simple"),view:wq.object({title:wq.string(),markdown:wq.string()})})),RO=()=>{let{t:e}=Sa(Rm);return{name:e("name"),description:e("description"),example:{subtype:"simple",name:e("name"),description:e("description"),view:{markdown:e("example.markdown"),title:e("example.title")}}}},Rb=({start:e})=>af(kt,{padding:"standard"},e.view.title&&af(kE,null,e.view.title),af(_r,{markdown:e.view.markdown})),Ry=({name:e})=>{let{t}=Sa(Rm);return af(U.Fragment,null,af(k5,{name:`${e}.view.title`,label:t("title"),defaultValue:"",render:kK}),af(k5,{name:`${e}.view.markdown`,label:t("markdown"),defaultValue:"",render:({value:e,onChange:t})=>af(_a,{value:e,variant:"input",onChange:e=>t(e)})}))},Rv=Object.defineProperty,Rx=Object.getOwnPropertySymbols,RT=Object.prototype.hasOwnProperty,Rk=Object.prototype.propertyIsEnumerable,R_=(e,t,n)=>t in e?Rv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,RS=(e,t)=>{for(var n in t||(t={}))RT.call(t,n)&&R_(e,n,t[n]);if(Rx)for(var n of Rx(t))Rk.call(t,n)&&R_(e,n,t[n]);return e},Rw=function(e){return af("svg",RS({className:"icon-asterisk",viewBox:"0 0 24 24"},e),af("circle",{cx:12,cy:12,r:10,className:"primary"}),af("path",{d:"M11 10.62V7a1 1 0 012 0v3.62l3.45-1.12a1 1 0 01.61 1.9l-3.44 1.13 2.13 2.93a1 1 0 01-1.62 1.17L12 13.7l-2.13 2.93a1 1 0 11-1.62-1.17l2.13-2.93-3.44-1.12a1 1 0 11.61-1.9l3.45 1.1z",className:"secondary"}))},RE=function(e){return af("svg",RS({className:"icon-check",viewBox:"0 0 24 24"},e),af("circle",{cx:12,cy:12,r:10,className:"primary"}),af("path",{d:"M10 14.59l6.3-6.3a1 1 0 011.4 1.42l-7 7a1 1 0 01-1.4 0l-3-3a1 1 0 011.4-1.42l2.3 2.3z",className:"secondary"}))},RC=function(e){return af("svg",RS({className:"icon-close",viewBox:"0 0 24 24"},e),af("path",{fillRule:"evenodd",d:"M15.78 14.36a1 1 0 01-1.42 1.42l-2.82-2.83-2.83 2.83a1 1 0 11-1.42-1.42l2.83-2.82L7.3 8.7a1 1 0 011.42-1.42l2.83 2.83 2.82-2.83a1 1 0 011.42 1.42l-2.83 2.83 2.83 2.82z",className:"secondary"}))},RA=function(e){return af("svg",RS({className:"icon-fast-forward",viewBox:"0 0 24 24"},e),af("path",{d:"M1 5a1 1 0 011.5-.86l12 7a1 1 0 010 1.72l-12 7A1 1 0 011 19V5z",className:"secondary"}),af("path",{d:"M9 5a1 1 0 011.5-.86l12 7a1 1 0 010 1.72l-12 7A1 1 0 019 19V5z",className:"primary"}))},RR=function(e){return af("svg",RS({className:"icon-help",viewBox:"0 0 24 24"},e),af("path",{d:"M12 22a10 10 0 110-20 10 10 0 010 20z",className:"primary"}),af("path",{d:"M12 19.5a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm1-5.5a1 1 0 01-2 0v-1.41a1 1 0 01.55-.9L14 10.5c.64-.42 1-.97 1-1.5 0-1.03-1.3-2-3-2-1.35 0-2.49.62-2.87 1.43a1 1 0 01-1.8-.86C8.05 6.01 9.92 5 12 5c2.7 0 5 1.72 5 4 0 1.3-.76 2.46-2.05 3.24L13 13.2v.8z",className:"secondary"}))},RP=function(e){return af("svg",RS({className:"icon-mood-happy",viewBox:"0 0 24 24"},e),af("circle",{cx:12,cy:12,r:10,className:"primary"}),af("path",{d:"M6.8 14h10.4a1 1 0 01.86 1.5 7 7 0 01-12.12 0A1 1 0 016.8 14zm1.7-3a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm7 0a1.5 1.5 0 110-3 1.5 1.5 0 010 3z",className:"secondary"}))},RI=function(e){return af("svg",RS({className:"icon-thumbs-down",viewBox:"0 0 24 24"},e),af("path",{d:"M11 19.2l-2.92-6.8A1 1 0 018 12V4c0-1.1.9-2 2-2h6c1.5 0 3.11 1.06 3.7 2.45l2.22 5.16A1 1 0 0122 10v2a3 3 0 01-3 3h-4v4a3 3 0 01-3 3 1 1 0 01-1-1v-1.8z",className:"primary"}),af("rect",{width:4,height:11,x:2,y:2,className:"secondary",rx:1,transform:"rotate(180 4 7.5)"}))},RN=function(e){return af("svg",RS({className:"icon-thumbs-up",viewBox:"0 0 24 24"},e),af("path",{d:"M13 4.8l2.92 6.8a1 1 0 01.08.4v8a2 2 0 01-2 2H8a4.28 4.28 0 01-3.7-2.45L2.07 14.4A1 1 0 012 14v-2a3 3 0 013-3h4V5a3 3 0 013-3 1 1 0 011 1v1.8z",className:"primary"}),af("rect",{width:4,height:11,x:18,y:11,className:"secondary",rx:1}))},R$=Object.defineProperty,RL=Object.getOwnPropertySymbols,RD=Object.prototype.hasOwnProperty,RQ=Object.prototype.propertyIsEnumerable,RM=(e,t,n)=>t in e?R$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,RF=(e,t)=>{for(var n in t||(t={}))RD.call(t,n)&&RM(e,n,t[n]);if(RL)for(var n of RL(t))RQ.call(t,n)&&RM(e,n,t[n]);return e},RB=e=>af(ki,RF({color:"success",size:"large"},e),af(RN,null)),RU=e=>af(ki,RF({color:"error",size:"large"},e),af(RI,null)),Rj=e=>af(ki,RF({color:"info",size:"large"},e),af(RA,null)),Rz=e=>af(ki,RF({color:"warning",size:"large"},e),af(Rw,null)),RW=e=>af(ki,RF({color:"neutral",size:"large"},e),af(RR,null)),RZ=Object.defineProperty,Rq=Object.getOwnPropertySymbols,RG=Object.prototype.hasOwnProperty,RH=Object.prototype.propertyIsEnumerable,RY=(e,t,n)=>t in e?RZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,RX=(e,t)=>{for(var n in t||(t={}))RG.call(t,n)&&RY(e,n,t[n]);if(Rq)for(var n of Rq(t))RH.call(t,n)&&RY(e,n,t[n]);return e},RV=function(e){return af("svg",RX({viewBox:"0 0 20 20",fill:"currentColor"},e),af("path",{fillRule:"evenodd",d:"M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z",clipRule:"evenodd"}))};function RK(e,t,n){return ai.call(t,"css")?(0,G.jsx)(ap,ad(e,t),n):(0,G.jsx)(e,t,n)}function RJ(e,t,n){return ai.call(t,"css")?(0,G.jsxs)(ap,ad(e,t),n):(0,G.jsxs)(e,t,n)}function R1(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:R8(e)?2:R6(e)?3:0}function R4(e,t){return 2===R9(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function R3(e,t,n){var r=R9(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function R8(e){return PY&&e instanceof Map}function R6(e){return PX&&e instanceof Set}function R7(e){return e.o||e.t}function Pe(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=P5(e);delete t[P1];for(var n=P2(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=Pn),Object.freeze(e),t&&R5(e,function(e,t){return Pt(t,!0)},!0)),e}function Pn(){R1(2)}function Pr(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function Pi(e){var t=P9[e];return t||R1(18,e),t}function Pa(e,t){t&&(Pi("Patches"),e.u=[],e.s=[],e.v=t)}function Po(e){Ps(e),e.p.forEach(Pu),e.p=null}function Ps(e){e===PG&&(PG=e.l)}function Pl(e){return PG={p:[],l:PG,h:e,m:!0,_:0}}function Pu(e){var t=e[P1];0===t.i||1===t.i?t.j():t.g=!0}function Pc(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.O||Pi("ES5").S(t,e,r),r?(n[P1].P&&(Po(t),R1(4)),R2(e)&&(e=Pd(t,e),t.l||Pp(t,e)),t.u&&Pi("Patches").M(n[P1].t,e,t.u,t.s)):e=Pd(t,n,[]),Po(t),t.u&&t.v(t.u,t.s),e!==PK?e:void 0}function Pd(e,t,n){if(Pr(t))return t;var r=t[P1];if(!r)return R5(t,function(i,a){return Ph(e,r,t,i,a,n)},!0),t;if(r.A!==e)return t;if(!r.P)return Pp(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=Pe(r.k):r.o,a=i,o=!1;3===r.i&&(a=new Set(i),i.clear(),o=!0),R5(a,function(t,a){return Ph(e,r,i,t,a,n,o)}),Pp(e,i,!1),n&&e.u&&Pi("Patches").N(r,n,e.u,e.s)}return r.o}function Ph(e,t,n,r,i,a,o){if(R0(i)){var s=Pd(e,i,a&&t&&3!==t.i&&!R4(t.R,r)?a.concat(r):void 0);if(R3(n,r,s),!R0(s))return;e.m=!1}else o&&n.add(i);if(R2(i)&&!Pr(i)){if(!e.h.D&&e._<1)return;Pd(e,i),t&&t.A.l||Pp(e,i)}}function Pp(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&Pt(t,n)}function Pf(e,t){var n=e[P1];return(n?R7(n):e)[t]}function Pm(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Pg(e){e.P||(e.P=!0,e.l&&Pg(e.l))}function PO(e){e.o||(e.o=Pe(e.t))}function Pb(e,t,n){var r,i,a,o,s,l,u,c=R8(t)?Pi("MapSet").F(t,n):R6(t)?Pi("MapSet").T(t,n):e.O?(a=i={i:(r=Array.isArray(t))?1:0,A:n?n.A:PG,P:!1,I:!1,R:{},l:n,t:t,k:null,o:null,j:null,C:!1},o=P4,r&&(a=[i],o=P3),l=(s=Proxy.revocable(a,o)).revoke,u=s.proxy,i.k=u,i.j=l,u):Pi("ES5").J(t,n);return(n?n.A:PG).p.push(c),c}function Py(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Pe(e)}var Pv,Px,PT,Pk,P_,PS,Pw,PE,PC,PA,PR,PP,PI,PN,P$,PL,PD,PQ,PM,PF,PB,PU,Pj,Pz,PW,PZ,Pq,PG,PH="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),PY="undefined"!=typeof Map,PX="undefined"!=typeof Set,PV="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,PK=PH?Symbol.for("immer-nothing"):((Pq={})["immer-nothing"]=!0,Pq),PJ=PH?Symbol.for("immer-draftable"):"__$immer_draftable",P1=PH?Symbol.for("immer-state"):"__$immer_state",P0=""+Object.prototype.constructor,P2="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,P5=Object.getOwnPropertyDescriptors||function(e){var t={};return P2(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},P9={},P4={get:function(e,t){if(t===P1)return e;var n,r,i=R7(e);if(!R4(i,t))return(r=Pm(i,t))?"value"in r?r.value:null===(n=r.get)||void 0===n?void 0:n.call(e.k):void 0;var a=i[t];return e.I||!R2(a)?a:a===Pf(e.t,t)?(PO(e),e.o[t]=Pb(e.A.h,a,e)):a},has:function(e,t){return t in R7(e)},ownKeys:function(e){return Reflect.ownKeys(R7(e))},set:function(e,t,n){var r=Pm(R7(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=Pf(R7(e),t),a=null==i?void 0:i[P1];if(a&&a.t===n)return e.o[t]=n,e.R[t]=!1,!0;if((n===i?0!==n||1/n==1/i:n!=n&&i!=i)&&(void 0!==n||R4(e.t,t)))return!0;PO(e),Pg(e)}return e.o[t]===n&&(void 0!==n||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==Pf(e.t,t)||t in e.t?(e.R[t]=!1,PO(e),Pg(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=R7(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){R1(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){R1(12)}},P3={};R5(P4,function(e,t){P3[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),P3.deleteProperty=function(e,t){return P3.set.call(this,e,t,void 0)},P3.set=function(e,t,n){return P4.set.call(this,e[0],t,n,e[0])};var P8=new(function(){function e(e){var t=this;this.O=PV,this.D=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var i,a=n;return n=e,function(e){var r=this;void 0===e&&(e=a);for(var i=arguments.length,o=Array(i>1?i-1:0),s=1;s1?r-1:0),a=1;a=0;n--){var n,r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var i=Pi("Patches").$;return R0(e)?i(e,t):this.produce(e,function(e){return i(e,t)})},e}()),P6=P8.produce;P8.produceWithPatches.bind(P8),P8.setAutoFreeze.bind(P8),P8.setUseProxies.bind(P8),P8.applyPatches.bind(P8),P8.createDraft.bind(P8),P8.finishDraft.bind(P8);var P7=Object.defineProperty,Ie=Object.defineProperties,It=Object.getOwnPropertyDescriptors,In=Object.getOwnPropertySymbols,Ir=Object.prototype.hasOwnProperty,Ii=Object.prototype.propertyIsEnumerable,Ia=(e,t,n)=>t in e?P7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Io=(e,t)=>{for(var n in t||(t={}))Ir.call(t,n)&&Ia(e,n,t[n]);if(In)for(var n of In(t))Ii.call(t,n)&&Ia(e,n,t[n]);return e},Is=(e,t)=>Ie(e,It(t)),Il=(e,t)=>{var n={};for(var r in e)Ir.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&In)for(var r of In(e))0>t.indexOf(r)&&Ii.call(e,r)&&(n[r]=e[r]);return n},Iu=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),Ic=Rp({"en-GB":Rf({accept:"Accept",answer:"Answer",close:"Close",confidence:"Confidence",correctNudges:"{index, plural, =0 {Nice one!} =1 {Great!} other {Keep it going!}}",end:"End",manualNudges:"{index, plural, other {Your answer will be check manually!}}",next:"Next",previous:"Previous",reasoning:"Reasoning",retry:"Retry",skip:"Skip",start:"Start",unknownNudges:"{index, plural, =0 {Thanks for your answer!} other {Thank you for answering!}}",wrongNudges:"{index, plural, =0 {Maybe next time} =1 {No worries!} other {Every wrong answer is a learning opportunity!}}"}),en:Rf({accept:"Accept",answer:"Answer",close:"Close",confidence:"Confidence",correctNudges:"{index, plural, =0 {Nice one!} =1 {Great!} other {Keep it going!}}",end:"End",manualNudges:"{index, plural, other {Your answer will be check manually!}}",next:"Next",previous:"Previous",reasoning:"Reasoning",retry:"Retry",skip:"Skip",start:"Start",unknownNudges:"{index, plural, =0 {Thanks for your answer!} other {Thank you for answering!}}",wrongNudges:"{index, plural, =0 {Maybe next time} =1 {No worries!} other {Every wrong answer is a learning opportunity!}}"}),"en-US":Rf({accept:"Accept",answer:"Answer",close:"Close",confidence:"Confidence",correctNudges:"{index, plural, =0 {Nice one!} =1 {Great!} other {Keep it going!}}",end:"End",manualNudges:"{index, plural, other {Your answer will be check manually!}}",next:"Next",previous:"Previous",reasoning:"Reasoning",retry:"Retry",skip:"Skip",start:"Start",unknownNudges:"{index, plural, =0 {Thanks for your answer!} other {Thank you for answering!}}",wrongNudges:"{index, plural, =0 {Maybe next time} =1 {No worries!} other {Every wrong answer is a learning opportunity!}}"}),de:Rf({accept:"Akzeptieren",answer:"Antworten",close:"Schlie\xdfen",confidence:"Confidence",correctNudges:"{index, plural, =0 {Sehr gut!} =1 {Super!} other {Weiter so!}}",end:"End",manualNudges:"{index, plural, other {Deine Antwort wird manuell \xfcberpr\xfcft!}}",next:"Weiter",previous:"Zur\xfcck",reasoning:"Begr\xfcndung",retry:"Erneut versuchen",skip:"\xdcberspringen",start:"Start",unknownNudges:"{index, plural, =0 {Danke f\xfcr deine Antwort!} other {Danke!}}",wrongNudges:"{index, plural, =0 {Vielleicht n\xe4chstes Mal} =1 {Keine Sorge!} other {Jede falsche Antwort ist eine Chance was zu lernen!}}"}),fr:Rf({accept:"Accept",answer:"Answer",close:"Close",confidence:"Confidence",correctNudges:"{index, plural, =0 {Nice one!} =1 {Great!} other {Keep it going!}}",end:"End",manualNudges:"{index, plural, other {Your answer will be check manually!}}",next:"Next",previous:"Previous",reasoning:"Reasoning",retry:"Retry",skip:"Skip",start:"Start",unknownNudges:"{index, plural, =0 {Thanks for your answer!} other {Thank you for answering!}}",wrongNudges:"{index, plural, =0 {Maybe next time} =1 {No worries!} other {Every wrong answer is a learning opportunity!}}"}),es:Rf({accept:"Accept",answer:"Answer",close:"Close",confidence:"Confidence",correctNudges:"{index, plural, =0 {Nice one!} =1 {Great!} other {Keep it going!}}",end:"End",manualNudges:"{index, plural, other {Your answer will be check manually!}}",next:"Next",previous:"Previous",reasoning:"Reasoning",retry:"Retry",skip:"Skip",start:"Start",unknownNudges:"{index, plural, =0 {Thanks for your answer!} other {Thank you for answering!}}",wrongNudges:"{index, plural, =0 {Maybe next time} =1 {No worries!} other {Every wrong answer is a learning opportunity!}}"}),nl:Rf({accept:"Accept",answer:"Answer",close:"Close",confidence:"Confidence",correctNudges:"{index, plural, =0 {Nice one!} =1 {Great!} other {Keep it going!}}",end:"End",manualNudges:"{index, plural, other {Your answer will be check manually!}}",next:"Next",previous:"Previous",reasoning:"Reasoning",retry:"Retry",skip:"Skip",start:"Start",unknownNudges:"{index, plural, =0 {Thanks for your answer!} other {Thank you for answering!}}",wrongNudges:"{index, plural, =0 {Maybe next time} =1 {No worries!} other {Every wrong answer is a learning opportunity!}}"}),pt:Rf({accept:"Accept",answer:"Answer",close:"Close",confidence:"Confidence",correctNudges:"{index, plural, =0 {Nice one!} =1 {Great!} other {Keep it going!}}",end:"End",manualNudges:"{index, plural, other {Your answer will be check manually!}}",next:"Next",previous:"Previous",reasoning:"Reasoning",retry:"Retry",skip:"Skip",start:"Start",unknownNudges:"{index, plural, =0 {Thanks for your answer!} other {Thank you for answering!}}",wrongNudges:"{index, plural, =0 {Maybe next time} =1 {No worries!} other {Every wrong answer is a learning opportunity!}}"}),tr:Rf({accept:"Accept",answer:"Answer",close:"Close",confidence:"Confidence",correctNudges:"{index, plural, =0 {Nice one!} =1 {Great!} other {Keep it going!}}",end:"End",manualNudges:"{index, plural, other {Your answer will be check manually!}}",next:"Next",previous:"Previous",reasoning:"Reasoning",retry:"Retry",skip:"Skip",start:"Start",unknownNudges:"{index, plural, =0 {Thanks for your answer!} other {Thank you for answering!}}",wrongNudges:"{index, plural, =0 {Maybe next time} =1 {No worries!} other {Every wrong answer is a learning opportunity!}}"})}),Id=({value:e=0,max:t=1})=>RK(kt,{height:"5px",width:"100%",backgroundColor:"neutral.200",children:RK(kt,{backgroundColor:"primary.800",height:"100%",width:`${e/t*100}%`})}),Ih=({children:e,noHeader:t,position:n="absolute"})=>RK(kt,{css:[ag` + `],aR(T8,T6,T7,a$,aU,aF,aY)),Se=(0,U.forwardRef)(({id:e,value:t,onChange:n=()=>{},onBlur:r=()=>{},disabled:i,required:a,error:o,resize:s="vertical"},l)=>af(_7,{id:e,ref:l,value:t,onChange:function(e){i||n(e.currentTarget.value)},onBlur:r,required:a,disabled:i,"aria-invalid":o,error:o,resize:s}));let St=U.createContext(void 0),Sn=({children:e,language:t,locale:n})=>{let r=(0,U.useMemo)(()=>({language:t,locale:n}),[t,n]);return U.createElement(St.Provider,{value:r},e)},Sr=()=>{let e=(0,U.useContext)(St);if(!e)throw Error("Attempted to access translation without Vocab context set. Did you forget to render VocabProvider?");if(!e.language)throw Error("Attempted to access translation without language set. Did you forget to pass language to VocabProvider?");return e},Si="undefined"==typeof window;function Sa(e){let{language:t,locale:n}=Sr(),[,r]=(0,U.useReducer)(e=>e+1,0),i=e.getLoadedMessages(t,n||t),a=!0;if(!i){if(Si)throw Error("Translations not synchronously available on server render. Applying translations dynamically server-side is not supported.");e.load(t).then(()=>{r()}),a=!1}let o=(0,U.useCallback)((e,t)=>{if(!i)return" ";let n=null==i?void 0:i[e];if(!n)return console.error(`Unable to find translation for key "${e}". Possible keys are ${Object.keys(i).map(e=>`"${e}"`).join(", ")}`),"";let r=n.format(t);if(Array.isArray(r))for(let e=0;ee,Pv.assertIs=function(e){},Pv.assertNever=function(e){throw Error()},Pv.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},Pv.getValidEnumValues=e=>{let t=Pv.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),n={};for(let r of t)n[r]=e[r];return Pv.objectValues(n)},Pv.objectValues=e=>Pv.objectKeys(e).map(function(t){return e[t]}),Pv.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},Pv.find=(e,t)=>{for(let n of e)if(t(n))return n},Pv.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,Pv.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},Pv.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(PI||(PI={})).mergeShapes=(e,t)=>({...e,...t});let Ss=PP.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Sl=e=>{let t=typeof e;switch(t){case"undefined":return Ss.undefined;case"string":return Ss.string;case"number":return isNaN(e)?Ss.nan:Ss.number;case"boolean":return Ss.boolean;case"function":return Ss.function;case"bigint":return Ss.bigint;case"symbol":return Ss.symbol;case"object":if(Array.isArray(e))return Ss.array;if(null===e)return Ss.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return Ss.promise;if("undefined"!=typeof Map&&e instanceof Map)return Ss.map;if("undefined"!=typeof Set&&e instanceof Set)return Ss.set;if("undefined"!=typeof Date&&e instanceof Date)return Ss.date;return Ss.object;default:return Ss.unknown}},Su=PP.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Sc extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(r);else if("invalid_return_type"===i.code)r(i.returnTypeError);else if("invalid_arguments"===i.code)r(i.argumentsError);else if(0===i.path.length)n._errors.push(t(i));else{let e=n,r=0;for(;re.message){let t={},n=[];for(let r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}Sc.create=e=>{let t=new Sc(e);return t};let Sd=(e,t)=>{let n;switch(e.code){case Su.invalid_type:n=e.received===Ss.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case Su.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,PP.jsonStringifyReplacer)}`;break;case Su.unrecognized_keys:n=`Unrecognized key(s) in object: ${PP.joinValues(e.keys,", ")}`;break;case Su.invalid_union:n="Invalid input";break;case Su.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${PP.joinValues(e.options)}`;break;case Su.invalid_enum_value:n=`Invalid enum value. Expected ${PP.joinValues(e.options)}, received '${e.received}'`;break;case Su.invalid_arguments:n="Invalid function arguments";break;case Su.invalid_return_type:n="Invalid function return type";break;case Su.invalid_date:n="Invalid date";break;case Su.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:PP.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case Su.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case Su.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case Su.custom:n="Invalid input";break;case Su.invalid_intersection_types:n="Intersection results could not be merged";break;case Su.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case Su.not_finite:n="Number must be finite";break;default:n=t.defaultError,PP.assertNever(e)}return{message:n}},Sh=Sd,Sp=e=>{let{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],o={...i,path:a},s="",l=r.filter(e=>!!e).slice().reverse();for(let e of l)s=e(o,{data:t,defaultError:s}).message;return{...i,path:a,message:i.message||s}};function Sf(e,t){let n=Sp({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,Sh,Sd].filter(e=>!!e)});e.common.issues.push(n)}class Sm{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let n=[];for(let r of t){if("aborted"===r.status)return Sg;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){let n=[];for(let e of t)n.push({key:await e.key,value:await e.value});return Sm.mergeObjectSync(e,n)}static mergeObjectSync(e,t){let n={};for(let r of t){let{key:t,value:i}=r;if("aborted"===t.status||"aborted"===i.status)return Sg;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),(void 0!==i.value||r.alwaysSet)&&(n[t.value]=i.value)}return{status:e.value,value:n}}}let Sg=Object.freeze({status:"aborted"}),SO=e=>({status:"dirty",value:e}),Sb=e=>({status:"valid",value:e}),Sy=e=>"aborted"===e.status,Sv=e=>"dirty"===e.status,Sx=e=>"valid"===e.status,ST=e=>"undefined"!=typeof Promise&&e instanceof Promise;(Px=PN||(PN={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},Px.toString=e=>"string"==typeof e?e:null==e?void 0:e.message;class Sk{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let S_=(e,t)=>{if(Sx(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new Sc(e.common.issues);return this._error=t,this._error}}};function SS(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(e,t)=>"invalid_type"!==e.code?{message:t.defaultError}:void 0===t.data?{message:null!=r?r:t.defaultError}:{message:null!=n?n:t.defaultError},description:i}}class Sw{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return Sl(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:Sl(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Sm,ctx:{common:e.parent.common,data:e.data,parsedType:Sl(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(ST(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;let r={common:{issues:[],async:null!==(n=null==t?void 0:t.async)&&void 0!==n&&n,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Sl(e)},i=this._parseSync({data:e,path:r.path,parent:r});return S_(r,i)}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Sl(e)},r=this._parse({data:e,path:n.path,parent:n}),i=await (ST(r)?r:Promise.resolve(r));return S_(n,i)}refine(e,t){let n=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,r)=>{let i=e(t),a=()=>r.addIssue({code:Su.custom,...n(t)});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(e=>!!e||(a(),!1)):!!i||(a(),!1)})}refinement(e,t){return this._refinement((n,r)=>!!e(n)||(r.addIssue("function"==typeof t?t(n,r):t),!1))}_refinement(e){return new wt({schema:this,typeName:P$.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return wn.create(this,this._def)}nullable(){return wr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return SH.create(this,this._def)}promise(){return we.create(this,this._def)}or(e){return SX.create([this,e],this._def)}and(e){return SJ.create(this,e,this._def)}transform(e){return new wt({...SS(this._def),schema:this,typeName:P$.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new wi({...SS(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:P$.ZodDefault})}brand(){return new wl({typeName:P$.ZodBranded,type:this,...SS(this._def)})}catch(e){return new wa({...SS(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:P$.ZodCatch})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}pipe(e){return wu.create(this,e)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let SE=/^c[^\s-]{8,}$/i,SC=/^[a-z][a-z0-9]*$/,SA=/[0-9A-HJKMNP-TV-Z]{26}/,SR=/^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i,SP=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\])|(\[IPv6:(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))\])|([A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])*(\.[A-Za-z]{2,})+))$/,SI=/^(\p{Extended_Pictographic}|\p{Emoji_Component})+$/u,SN=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,S$=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,SL=e=>e.precision?e.offset?RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):0===e.precision?e.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");class SD extends Sw{constructor(){super(...arguments),this._regex=(e,t,n)=>this.refinement(t=>e.test(t),{validation:t,code:Su.invalid_string,...PN.errToObj(n)}),this.nonempty=e=>this.min(1,PN.errToObj(e)),this.trim=()=>new SD({...this._def,checks:[...this._def.checks,{kind:"trim"}]}),this.toLowerCase=()=>new SD({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]}),this.toUpperCase=()=>new SD({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}_parse(e){let t;this._def.coerce&&(e.data=String(e.data));let n=this._getType(e);if(n!==Ss.string){let t=this._getOrReturnCtx(e);return Sf(t,{code:Su.invalid_type,expected:Ss.string,received:t.parsedType}),Sg}let r=new Sm;for(let n of this._def.checks)if("min"===n.kind)e.data.lengthn.value&&(Sf(t=this._getOrReturnCtx(e,t),{code:Su.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),r.dirty());else if("length"===n.kind){let i=e.data.length>n.value,a=e.data.length"datetime"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value{var t;return new SD({checks:[],typeName:P$.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...SS(e)})};class SQ extends Sw{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;this._def.coerce&&(e.data=Number(e.data));let n=this._getType(e);if(n!==Ss.number){let t=this._getOrReturnCtx(e);return Sf(t,{code:Su.invalid_type,expected:Ss.number,received:t.parsedType}),Sg}let r=new Sm;for(let n of this._def.checks)if("int"===n.kind)PP.isInteger(e.data)||(Sf(t=this._getOrReturnCtx(e,t),{code:Su.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty());else if("min"===n.kind){let i=n.inclusive?e.datan.value:e.data>=n.value;i&&(Sf(t=this._getOrReturnCtx(e,t),{code:Su.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty())}else"multipleOf"===n.kind?0!==function(e,t){let n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,a=parseInt(e.toFixed(i).replace(".","")),o=parseInt(t.toFixed(i).replace(".",""));return a%o/Math.pow(10,i)}(e.data,n.value)&&(Sf(t=this._getOrReturnCtx(e,t),{code:Su.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(Sf(t=this._getOrReturnCtx(e,t),{code:Su.not_finite,message:n.message}),r.dirty()):PP.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,PN.toString(t))}gt(e,t){return this.setLimit("min",e,!1,PN.toString(t))}lte(e,t){return this.setLimit("max",e,!0,PN.toString(t))}lt(e,t){return this.setLimit("max",e,!1,PN.toString(t))}setLimit(e,t,n,r){return new SQ({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:PN.toString(r)}]})}_addCheck(e){return new SQ({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:PN.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:PN.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:PN.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:PN.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:PN.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:PN.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:PN.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:PN.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:PN.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value"int"===e.kind||"multipleOf"===e.kind&&PP.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.valuenew SQ({checks:[],typeName:P$.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...SS(e)});class SM extends Sw{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;this._def.coerce&&(e.data=BigInt(e.data));let n=this._getType(e);if(n!==Ss.bigint){let t=this._getOrReturnCtx(e);return Sf(t,{code:Su.invalid_type,expected:Ss.bigint,received:t.parsedType}),Sg}let r=new Sm;for(let n of this._def.checks)if("min"===n.kind){let i=n.inclusive?e.datan.value:e.data>=n.value;i&&(Sf(t=this._getOrReturnCtx(e,t),{code:Su.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty())}else"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(Sf(t=this._getOrReturnCtx(e,t),{code:Su.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):PP.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,PN.toString(t))}gt(e,t){return this.setLimit("min",e,!1,PN.toString(t))}lte(e,t){return this.setLimit("max",e,!0,PN.toString(t))}lt(e,t){return this.setLimit("max",e,!1,PN.toString(t))}setLimit(e,t,n,r){return new SM({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:PN.toString(r)}]})}_addCheck(e){return new SM({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:PN.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:PN.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:PN.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:PN.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:PN.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value{var t;return new SM({checks:[],typeName:P$.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...SS(e)})};class SF extends Sw{_parse(e){this._def.coerce&&(e.data=!!e.data);let t=this._getType(e);if(t!==Ss.boolean){let t=this._getOrReturnCtx(e);return Sf(t,{code:Su.invalid_type,expected:Ss.boolean,received:t.parsedType}),Sg}return Sb(e.data)}}SF.create=e=>new SF({typeName:P$.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...SS(e)});class SB extends Sw{_parse(e){let t;this._def.coerce&&(e.data=new Date(e.data));let n=this._getType(e);if(n!==Ss.date){let t=this._getOrReturnCtx(e);return Sf(t,{code:Su.invalid_type,expected:Ss.date,received:t.parsedType}),Sg}if(isNaN(e.data.getTime())){let t=this._getOrReturnCtx(e);return Sf(t,{code:Su.invalid_date}),Sg}let r=new Sm;for(let n of this._def.checks)"min"===n.kind?e.data.getTime()n.value&&(Sf(t=this._getOrReturnCtx(e,t),{code:Su.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),r.dirty()):PP.assertNever(n);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new SB({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:PN.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:PN.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.valuenew SB({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:P$.ZodDate,...SS(e)});class SU extends Sw{_parse(e){let t=this._getType(e);if(t!==Ss.symbol){let t=this._getOrReturnCtx(e);return Sf(t,{code:Su.invalid_type,expected:Ss.symbol,received:t.parsedType}),Sg}return Sb(e.data)}}SU.create=e=>new SU({typeName:P$.ZodSymbol,...SS(e)});class Sz extends Sw{_parse(e){let t=this._getType(e);if(t!==Ss.undefined){let t=this._getOrReturnCtx(e);return Sf(t,{code:Su.invalid_type,expected:Ss.undefined,received:t.parsedType}),Sg}return Sb(e.data)}}Sz.create=e=>new Sz({typeName:P$.ZodUndefined,...SS(e)});class Sj extends Sw{_parse(e){let t=this._getType(e);if(t!==Ss.null){let t=this._getOrReturnCtx(e);return Sf(t,{code:Su.invalid_type,expected:Ss.null,received:t.parsedType}),Sg}return Sb(e.data)}}Sj.create=e=>new Sj({typeName:P$.ZodNull,...SS(e)});class SW extends Sw{constructor(){super(...arguments),this._any=!0}_parse(e){return Sb(e.data)}}SW.create=e=>new SW({typeName:P$.ZodAny,...SS(e)});class SZ extends Sw{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Sb(e.data)}}SZ.create=e=>new SZ({typeName:P$.ZodUnknown,...SS(e)});class Sq extends Sw{_parse(e){let t=this._getOrReturnCtx(e);return Sf(t,{code:Su.invalid_type,expected:Ss.never,received:t.parsedType}),Sg}}Sq.create=e=>new Sq({typeName:P$.ZodNever,...SS(e)});class SG extends Sw{_parse(e){let t=this._getType(e);if(t!==Ss.undefined){let t=this._getOrReturnCtx(e);return Sf(t,{code:Su.invalid_type,expected:Ss.void,received:t.parsedType}),Sg}return Sb(e.data)}}SG.create=e=>new SG({typeName:P$.ZodVoid,...SS(e)});class SH extends Sw{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==Ss.array)return Sf(t,{code:Su.invalid_type,expected:Ss.array,received:t.parsedType}),Sg;if(null!==r.exactLength){let e=t.data.length>r.exactLength.value,i=t.data.lengthr.maxLength.value&&(Sf(t,{code:Su.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>r.type._parseAsync(new Sk(t,e,t.path,n)))).then(e=>Sm.mergeArray(n,e));let i=[...t.data].map((e,n)=>r.type._parseSync(new Sk(t,e,t.path,n)));return Sm.mergeArray(n,i)}get element(){return this._def.type}min(e,t){return new SH({...this._def,minLength:{value:e,message:PN.toString(t)}})}max(e,t){return new SH({...this._def,maxLength:{value:e,message:PN.toString(t)}})}length(e,t){return new SH({...this._def,exactLength:{value:e,message:PN.toString(t)}})}nonempty(e){return this.min(1,e)}}SH.create=(e,t)=>new SH({type:e,minLength:null,maxLength:null,exactLength:null,typeName:P$.ZodArray,...SS(t)});class SY extends Sw{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=PP.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){let t=this._getType(e);if(t!==Ss.object){let t=this._getOrReturnCtx(e);return Sf(t,{code:Su.invalid_type,expected:Ss.object,received:t.parsedType}),Sg}let{status:n,ctx:r}=this._processInputParams(e),{shape:i,keys:a}=this._getCached(),o=[];if(!(this._def.catchall instanceof Sq&&"strip"===this._def.unknownKeys))for(let e in r.data)a.includes(e)||o.push(e);let s=[];for(let e of a){let t=i[e],n=r.data[e];s.push({key:{status:"valid",value:e},value:t._parse(new Sk(r,n,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof Sq){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of o)s.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)o.length>0&&(Sf(r,{code:Su.unrecognized_keys,keys:o}),n.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of o){let n=r.data[t];s.push({key:{status:"valid",value:t},value:e._parse(new Sk(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of s){let n=await t.key;e.push({key:n,value:await t.value,alwaysSet:t.alwaysSet})}return e}).then(e=>Sm.mergeObjectSync(n,e)):Sm.mergeObjectSync(n,s)}get shape(){return this._def.shape()}strict(e){return PN.errToObj,new SY({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var r,i,a,o;let s=null!==(a=null===(i=(r=this._def).errorMap)||void 0===i?void 0:i.call(r,t,n).message)&&void 0!==a?a:n.defaultError;return"unrecognized_keys"===t.code?{message:null!==(o=PN.errToObj(e).message)&&void 0!==o?o:s}:{message:s}}}:{}})}strip(){return new SY({...this._def,unknownKeys:"strip"})}passthrough(){return new SY({...this._def,unknownKeys:"passthrough"})}extend(e){return new SY({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){let t=new SY({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:P$.ZodObject});return t}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new SY({...this._def,catchall:e})}pick(e){let t={};return PP.objectKeys(e).forEach(n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])}),new SY({...this._def,shape:()=>t})}omit(e){let t={};return PP.objectKeys(this.shape).forEach(n=>{e[n]||(t[n]=this.shape[n])}),new SY({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof SY){let n={};for(let r in t.shape){let i=t.shape[r];n[r]=wn.create(e(i))}return new SY({...t._def,shape:()=>n})}return t instanceof SH?new SH({...t._def,type:e(t.element)}):t instanceof wn?wn.create(e(t.unwrap())):t instanceof wr?wr.create(e(t.unwrap())):t instanceof S1?S1.create(t.items.map(t=>e(t))):t}(this)}partial(e){let t={};return PP.objectKeys(this.shape).forEach(n=>{let r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()}),new SY({...this._def,shape:()=>t})}required(e){let t={};return PP.objectKeys(this.shape).forEach(n=>{if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n],r=e;for(;r instanceof wn;)r=r._def.innerType;t[n]=r}}),new SY({...this._def,shape:()=>t})}keyof(){return S8(PP.objectKeys(this.shape))}}SY.create=(e,t)=>new SY({shape:()=>e,unknownKeys:"strip",catchall:Sq.create(),typeName:P$.ZodObject,...SS(t)}),SY.strictCreate=(e,t)=>new SY({shape:()=>e,unknownKeys:"strict",catchall:Sq.create(),typeName:P$.ZodObject,...SS(t)}),SY.lazycreate=(e,t)=>new SY({shape:e,unknownKeys:"strip",catchall:Sq.create(),typeName:P$.ZodObject,...SS(t)});class SX extends Sw{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map(async e=>{let n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let n of e)if("dirty"===n.result.status)return t.common.issues.push(...n.ctx.common.issues),n.result;let n=e.map(e=>new Sc(e.ctx.common.issues));return Sf(t,{code:Su.invalid_union,unionErrors:n}),Sg});{let e;let r=[];for(let i of n){let n={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:n});if("valid"===a.status)return a;"dirty"!==a.status||e||(e={result:a,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=r.map(e=>new Sc(e));return Sf(t,{code:Su.invalid_union,unionErrors:i}),Sg}}get options(){return this._def.options}}SX.create=(e,t)=>new SX({options:e,typeName:P$.ZodUnion,...SS(t)});let SV=e=>{if(e instanceof S4)return SV(e.schema);if(e instanceof wt)return SV(e.innerType());if(e instanceof S3)return[e.value];if(e instanceof S6)return e.options;if(e instanceof S7)return Object.keys(e.enum);if(e instanceof wi)return SV(e._def.innerType);if(e instanceof Sz)return[void 0];else if(e instanceof Sj)return[null];else return null};class SK extends Sw{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==Ss.object)return Sf(t,{code:Su.invalid_type,expected:Ss.object,received:t.parsedType}),Sg;let n=this.discriminator,r=t.data[n],i=this.optionsMap.get(r);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(Sf(t,{code:Su.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),Sg)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){let r=new Map;for(let n of t){let t=SV(n.shape[e]);if(!t)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let i of t){if(r.has(i))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(i)}`);r.set(i,n)}}return new SK({typeName:P$.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...SS(n)})}}class SJ extends Sw{_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(Sy(e)||Sy(r))return Sg;let i=function e(t,n){let r=Sl(t),i=Sl(n);if(t===n)return{valid:!0,data:t};if(r===Ss.object&&i===Ss.object){let r=PP.objectKeys(n),i=PP.objectKeys(t).filter(e=>-1!==r.indexOf(e)),a={...t,...n};for(let r of i){let i=e(t[r],n[r]);if(!i.valid)return{valid:!1};a[r]=i.data}return{valid:!0,data:a}}if(r===Ss.array&&i===Ss.array){if(t.length!==n.length)return{valid:!1};let r=[];for(let i=0;ir(e,t)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}SJ.create=(e,t,n)=>new SJ({left:e,right:t,typeName:P$.ZodIntersection,...SS(n)});class S1 extends Sw{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Ss.array)return Sf(n,{code:Su.invalid_type,expected:Ss.array,received:n.parsedType}),Sg;if(n.data.lengththis._def.items.length&&(Sf(n,{code:Su.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let i=[...n.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new Sk(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(i).then(e=>Sm.mergeArray(t,e)):Sm.mergeArray(t,i)}get items(){return this._def.items}rest(e){return new S1({...this._def,rest:e})}}S1.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new S1({items:e,typeName:P$.ZodTuple,rest:null,...SS(t)})};class S0 extends Sw{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Ss.object)return Sf(n,{code:Su.invalid_type,expected:Ss.object,received:n.parsedType}),Sg;let r=[],i=this._def.keyType,a=this._def.valueType;for(let e in n.data)r.push({key:i._parse(new Sk(n,e,n.path,e)),value:a._parse(new Sk(n,n.data[e],n.path,e))});return n.common.async?Sm.mergeObjectAsync(t,r):Sm.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,n){return new S0(t instanceof Sw?{keyType:e,valueType:t,typeName:P$.ZodRecord,...SS(n)}:{keyType:SD.create(),valueType:e,typeName:P$.ZodRecord,...SS(t)})}}class S2 extends Sw{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Ss.map)return Sf(n,{code:Su.invalid_type,expected:Ss.map,received:n.parsedType}),Sg;let r=this._def.keyType,i=this._def.valueType,a=[...n.data.entries()].map(([e,t],a)=>({key:r._parse(new Sk(n,e,n.path,[a,"key"])),value:i._parse(new Sk(n,t,n.path,[a,"value"]))}));if(n.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let n of a){let r=await n.key,i=await n.value;if("aborted"===r.status||"aborted"===i.status)return Sg;("dirty"===r.status||"dirty"===i.status)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let n of a){let r=n.key,i=n.value;if("aborted"===r.status||"aborted"===i.status)return Sg;("dirty"===r.status||"dirty"===i.status)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}}S2.create=(e,t,n)=>new S2({valueType:t,keyType:e,typeName:P$.ZodMap,...SS(n)});class S5 extends Sw{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Ss.set)return Sf(n,{code:Su.invalid_type,expected:Ss.set,received:n.parsedType}),Sg;let r=this._def;null!==r.minSize&&n.data.sizer.maxSize.value&&(Sf(n,{code:Su.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());let i=this._def.valueType;function a(e){let n=new Set;for(let r of e){if("aborted"===r.status)return Sg;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}let o=[...n.data.values()].map((e,t)=>i._parse(new Sk(n,e,n.path,t)));return n.common.async?Promise.all(o).then(e=>a(e)):a(o)}min(e,t){return new S5({...this._def,minSize:{value:e,message:PN.toString(t)}})}max(e,t){return new S5({...this._def,maxSize:{value:e,message:PN.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}S5.create=(e,t)=>new S5({valueType:e,minSize:null,maxSize:null,typeName:P$.ZodSet,...SS(t)});class S9 extends Sw{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==Ss.function)return Sf(t,{code:Su.invalid_type,expected:Ss.function,received:t.parsedType}),Sg;function n(e,n){return Sp({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Sh,Sd].filter(e=>!!e),issueData:{code:Su.invalid_arguments,argumentsError:n}})}function r(e,n){return Sp({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Sh,Sd].filter(e=>!!e),issueData:{code:Su.invalid_return_type,returnTypeError:n}})}let i={errorMap:t.common.contextualErrorMap},a=t.data;return this._def.returns instanceof we?Sb(async(...e)=>{let t=new Sc([]),o=await this._def.args.parseAsync(e,i).catch(r=>{throw t.addIssue(n(e,r)),t}),s=await a(...o),l=await this._def.returns._def.type.parseAsync(s,i).catch(e=>{throw t.addIssue(r(s,e)),t});return l}):Sb((...e)=>{let t=this._def.args.safeParse(e,i);if(!t.success)throw new Sc([n(e,t.error)]);let o=a(...t.data),s=this._def.returns.safeParse(o,i);if(!s.success)throw new Sc([r(o,s.error)]);return s.data})}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new S9({...this._def,args:S1.create(e).rest(SZ.create())})}returns(e){return new S9({...this._def,returns:e})}implement(e){let t=this.parse(e);return t}strictImplement(e){let t=this.parse(e);return t}static create(e,t,n){return new S9({args:e||S1.create([]).rest(SZ.create()),returns:t||SZ.create(),typeName:P$.ZodFunction,...SS(n)})}}class S4 extends Sw{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.getter();return n._parse({data:t.data,path:t.path,parent:t})}}S4.create=(e,t)=>new S4({getter:e,typeName:P$.ZodLazy,...SS(t)});class S3 extends Sw{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return Sf(t,{received:t.data,code:Su.invalid_literal,expected:this._def.value}),Sg}return{status:"valid",value:e.data}}get value(){return this._def.value}}function S8(e,t){return new S6({values:e,typeName:P$.ZodEnum,...SS(t)})}S3.create=(e,t)=>new S3({value:e,typeName:P$.ZodLiteral,...SS(t)});class S6 extends Sw{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),n=this._def.values;return Sf(t,{expected:PP.joinValues(n),received:t.parsedType,code:Su.invalid_type}),Sg}if(-1===this._def.values.indexOf(e.data)){let t=this._getOrReturnCtx(e),n=this._def.values;return Sf(t,{received:t.data,code:Su.invalid_enum_value,options:n}),Sg}return Sb(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e){return S6.create(e)}exclude(e){return S6.create(this.options.filter(t=>!e.includes(t)))}}S6.create=S8;class S7 extends Sw{_parse(e){let t=PP.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==Ss.string&&n.parsedType!==Ss.number){let e=PP.objectValues(t);return Sf(n,{expected:PP.joinValues(e),received:n.parsedType,code:Su.invalid_type}),Sg}if(-1===t.indexOf(e.data)){let e=PP.objectValues(t);return Sf(n,{received:n.data,code:Su.invalid_enum_value,options:e}),Sg}return Sb(e.data)}get enum(){return this._def.values}}S7.create=(e,t)=>new S7({values:e,typeName:P$.ZodNativeEnum,...SS(t)});class we extends Sw{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==Ss.promise&&!1===t.common.async)return Sf(t,{code:Su.invalid_type,expected:Ss.promise,received:t.parsedType}),Sg;let n=t.parsedType===Ss.promise?t.data:Promise.resolve(t.data);return Sb(n.then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}we.create=(e,t)=>new we({type:e,typeName:P$.ZodPromise,...SS(t)});class wt extends Sw{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===P$.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null;if("preprocess"===r.type){let e=r.transform(n.data);return n.common.async?Promise.resolve(e).then(e=>this._def.schema._parseAsync({data:e,path:n.path,parent:n})):this._def.schema._parseSync({data:e,path:n.path,parent:n})}let i={addIssue:e=>{Sf(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),"refinement"===r.type){let e=e=>{let t=r.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>"aborted"===n.status?Sg:("dirty"===n.status&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))));{let r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?Sg:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}}if("transform"===r.type){if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>Sx(e)?Promise.resolve(r.transform(e.value,i)).then(e=>({status:t.value,value:e})):e);{let e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!Sx(e))return e;let a=r.transform(e.value,i);if(a instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}}PP.assertNever(r)}}wt.create=(e,t,n)=>new wt({schema:e,typeName:P$.ZodEffects,effect:t,...SS(n)}),wt.createWithPreprocess=(e,t,n)=>new wt({schema:t,effect:{type:"preprocess",transform:e},typeName:P$.ZodEffects,...SS(n)});class wn extends Sw{_parse(e){let t=this._getType(e);return t===Ss.undefined?Sb(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}wn.create=(e,t)=>new wn({innerType:e,typeName:P$.ZodOptional,...SS(t)});class wr extends Sw{_parse(e){let t=this._getType(e);return t===Ss.null?Sb(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}wr.create=(e,t)=>new wr({innerType:e,typeName:P$.ZodNullable,...SS(t)});class wi extends Sw{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===Ss.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}wi.create=(e,t)=>new wi({innerType:e,typeName:P$.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...SS(t)});class wa extends Sw{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return ST(r)?r.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new Sc(n.common.issues)},input:n.data})})):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new Sc(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}wa.create=(e,t)=>new wa({innerType:e,typeName:P$.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...SS(t)});class wo extends Sw{_parse(e){let t=this._getType(e);if(t!==Ss.nan){let t=this._getOrReturnCtx(e);return Sf(t,{code:Su.invalid_type,expected:Ss.nan,received:t.parsedType}),Sg}return{status:"valid",value:e.data}}}wo.create=e=>new wo({typeName:P$.ZodNaN,...SS(e)});let ws=Symbol("zod_brand");class wl extends Sw{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class wu extends Sw{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async){let e=async()=>{let e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?Sg:"dirty"===e.status?(t.dirty(),SO(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})};return e()}{let e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?Sg:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new wu({in:e,out:t,typeName:P$.ZodPipeline})}}let wc=(e,t={},n)=>e?SW.create().superRefine((r,i)=>{var a,o;if(!e(r)){let e="function"==typeof t?t(r):"string"==typeof t?{message:t}:t,s=null===(o=null!==(a=e.fatal)&&void 0!==a?a:n)||void 0===o||o,l="string"==typeof e?{message:e}:e;i.addIssue({code:"custom",...l,fatal:s})}}):SW.create(),wd={object:SY.lazycreate};(PT=P$||(P$={})).ZodString="ZodString",PT.ZodNumber="ZodNumber",PT.ZodNaN="ZodNaN",PT.ZodBigInt="ZodBigInt",PT.ZodBoolean="ZodBoolean",PT.ZodDate="ZodDate",PT.ZodSymbol="ZodSymbol",PT.ZodUndefined="ZodUndefined",PT.ZodNull="ZodNull",PT.ZodAny="ZodAny",PT.ZodUnknown="ZodUnknown",PT.ZodNever="ZodNever",PT.ZodVoid="ZodVoid",PT.ZodArray="ZodArray",PT.ZodObject="ZodObject",PT.ZodUnion="ZodUnion",PT.ZodDiscriminatedUnion="ZodDiscriminatedUnion",PT.ZodIntersection="ZodIntersection",PT.ZodTuple="ZodTuple",PT.ZodRecord="ZodRecord",PT.ZodMap="ZodMap",PT.ZodSet="ZodSet",PT.ZodFunction="ZodFunction",PT.ZodLazy="ZodLazy",PT.ZodLiteral="ZodLiteral",PT.ZodEnum="ZodEnum",PT.ZodEffects="ZodEffects",PT.ZodNativeEnum="ZodNativeEnum",PT.ZodOptional="ZodOptional",PT.ZodNullable="ZodNullable",PT.ZodDefault="ZodDefault",PT.ZodCatch="ZodCatch",PT.ZodPromise="ZodPromise",PT.ZodBranded="ZodBranded",PT.ZodPipeline="ZodPipeline";let wh=SD.create,wp=SQ.create,wf=wo.create,wm=SM.create,wg=SF.create,wO=SB.create,wb=SU.create,wy=Sz.create,wv=Sj.create,wx=SW.create,wT=SZ.create,wk=Sq.create,w_=SG.create,wS=SH.create,ww=SY.create,wE=SY.strictCreate,wC=SX.create,wA=SK.create,wR=SJ.create,wP=S1.create,wI=S0.create,wN=S2.create,w$=S5.create,wL=S9.create,wD=S4.create,wQ=S3.create,wM=S6.create,wF=S7.create,wB=we.create,wU=wt.create,wz=wn.create,wj=wr.create,wW=wt.createWithPreprocess,wZ=wu.create;var wq=Object.freeze({__proto__:null,defaultErrorMap:Sd,setErrorMap:function(e){Sh=e},getErrorMap:function(){return Sh},makeIssue:Sp,EMPTY_PATH:[],addIssueToContext:Sf,ParseStatus:Sm,INVALID:Sg,DIRTY:SO,OK:Sb,isAborted:Sy,isDirty:Sv,isValid:Sx,isAsync:ST,get util(){return PP},get objectUtil(){return PI},ZodParsedType:Ss,getParsedType:Sl,ZodType:Sw,ZodString:SD,ZodNumber:SQ,ZodBigInt:SM,ZodBoolean:SF,ZodDate:SB,ZodSymbol:SU,ZodUndefined:Sz,ZodNull:Sj,ZodAny:SW,ZodUnknown:SZ,ZodNever:Sq,ZodVoid:SG,ZodArray:SH,ZodObject:SY,ZodUnion:SX,ZodDiscriminatedUnion:SK,ZodIntersection:SJ,ZodTuple:S1,ZodRecord:S0,ZodMap:S2,ZodSet:S5,ZodFunction:S9,ZodLazy:S4,ZodLiteral:S3,ZodEnum:S6,ZodNativeEnum:S7,ZodPromise:we,ZodEffects:wt,ZodTransformer:wt,ZodOptional:wn,ZodNullable:wr,ZodDefault:wi,ZodCatch:wa,ZodNaN:wo,BRAND:ws,ZodBranded:wl,ZodPipeline:wu,custom:wc,Schema:Sw,ZodSchema:Sw,late:wd,get ZodFirstPartyTypeKind(){return P$},coerce:{string:e=>SD.create({...e,coerce:!0}),number:e=>SQ.create({...e,coerce:!0}),boolean:e=>SF.create({...e,coerce:!0}),bigint:e=>SM.create({...e,coerce:!0}),date:e=>SB.create({...e,coerce:!0})},any:wx,array:wS,bigint:wm,boolean:wg,date:wO,discriminatedUnion:wA,effect:wU,enum:wM,function:wL,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>wc(t=>t instanceof e,t),intersection:wR,lazy:wD,literal:wQ,map:wN,nan:wf,nativeEnum:wF,never:wk,null:wv,nullable:wj,number:wp,object:ww,oboolean:()=>wg().optional(),onumber:()=>wp().optional(),optional:wz,ostring:()=>wh().optional(),pipeline:wZ,preprocess:wW,promise:wB,record:wI,set:w$,strictObject:wE,string:wh,symbol:wb,transformer:wU,tuple:wP,undefined:wy,union:wC,unknown:wT,void:w_,NEVER:Sg,ZodIssueCode:Su,quotelessJson:e=>{let t=JSON.stringify(e,null,2);return t.replace(/"([^"]+)":/g,"$1:")},ZodError:Sc}),wG=Object.defineProperty,wH=Object.defineProperties,wY=Object.getOwnPropertyDescriptors,wX=Object.getOwnPropertySymbols,wV=Object.prototype.hasOwnProperty,wK=Object.prototype.propertyIsEnumerable,wJ=(e,t,n)=>t in e?wG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,w1=(e,t)=>{for(var n in t||(t={}))wV.call(t,n)&&wJ(e,n,t[n]);if(wX)for(var n of wX(t))wK.call(t,n)&&wJ(e,n,t[n]);return e},w0=(e,t)=>wH(e,wY(t)),w2=ww({message:wh(),severity:wM(["error","warning","info","success"])}),w5=ww({name:wh(),description:wh().optional(),subtype:wh(),view:wI(wx()),evaluation:ww({mode:wM(["auto","skip","manual"]),enableRetry:wg(),showFeedback:wg()}),feedback:wI(wx()).optional()}),w9=ww({subtype:wh(),count:wp()}),w4=ww({subtype:wh()}),w3=ww({subtype:wh(),state:wM(["unknown","manual","correct","wrong"]),allowRetry:wg().optional(),feedback:wx()}),w8=ww({name:wh(),description:wh(),subtype:wh(),view:ww({})}),w6=ww({name:wh(),description:wh(),subtype:wh(),view:ww({})}),w7=ww({name:wh(),description:wh(),subtype:wh(),view:ww({})}),Ee=ww({name:wh(),description:wh(),subtype:wh(),view:ww({})}),Et=e=>"finished"===e.status,En=(e,t={mode:"skip"})=>{let{tries:n}=e,{maxPoints:r}=e,i=n[n.length-1],a=n.find(e=>e.node.id===i.node.id&&"started"!==e.status);return a||(null==t?void 0:t.mode)==="skip"||(r+=1),n[n.length-1]=w0(w1({},i),{evaluation:t,status:"skipped",endDate:new Date}),w0(w1({},e),{maxPoints:r,tries:n})},Er=(e,t,n)=>{var r,i;let{tries:a}=e,{points:o,maxPoints:s}=e,l=a[a.length-1],u=a.find(e=>e.node.id===l.node.id&&"started"!==e.status);u||(null==n?void 0:n.state)==="unknown"||(s+=1),a[a.length-1]=w0(w1({},l),{status:"finished",endDate:new Date,answer:t,result:n});let c=a.filter(Et).find(e=>e.node.id===l.node.id&&l.try-1===e.try);return c||(null==n?void 0:n.state)!=="correct"?(null==(r=null==c?void 0:c.result)?void 0:r.state)==="correct"&&(null==n?void 0:n.state)!=="correct"?o-=1:(null==(i=null==c?void 0:c.result)?void 0:i.state)!=="correct"&&(null==n?void 0:n.state)==="correct"&&(o+=1):o+=1,w0(w1({},e),{maxPoints:s,points:o,tries:a})},Ei=e=>{let{tries:t}=e,n=t[t.length-1];return t.push({status:"started",try:n.try+1,startDate:new Date,node:w1({},n.node)}),w0(w1({},e),{tries:t})},Ea=wq.object({id:wq.string(),position:wq.object({x:wq.number(),y:wq.number()})}),Eo=Ea.merge(wq.object({type:wq.literal("checkpoint")})),Es=Ea.merge(wq.object({type:wq.literal("synchronize"),data:wq.object({unlocked:wq.boolean()})})),El=e=>Ea.merge(wq.object({type:wq.literal("task"),data:e})),Eu=e=>Ea.merge(wq.object({type:wq.literal("start"),data:e})),Ec=e=>Ea.merge(wq.object({type:wq.literal("end"),data:e})),Ed=e=>Ea.merge(wq.object({type:wq.literal("input"),data:e})),Eh=e=>Ea.merge(wq.object({type:wq.literal("title"),data:e})),Ep=wq.object({type:wq.literal("equal"),not:wq.boolean(),nodeId:wq.string(),key:wq.string(),value:wq.union([wq.string(),wq.number()])}),Ef=wq.object({type:wq.literal("true"),not:wq.boolean(),nodeId:wq.string(),key:wq.string()}),Em=wq.object({type:wq.literal("greater"),include:wq.boolean(),not:wq.boolean(),nodeId:wq.string(),key:wq.string(),value:wq.number()}),Eg=wq.object({type:wq.literal("less"),include:wq.boolean(),not:wq.boolean(),nodeId:wq.string(),key:wq.string(),value:wq.number()}),EO=wq.object({type:wq.literal("in"),not:wq.boolean(),nodeId:wq.string(),key:wq.string(),value:wq.array(wq.union([wq.string(),wq.number()]))}),Eb=wq.union([Ep,Ef,Em,Eg,EO]),Ey=wq.object({type:wq.literal("and"),conditions:wq.array(Eb)}),Ev=wq.object({type:wq.literal("or"),conditions:wq.array(Eb)}),Ex=wq.union([Eb,Ey,Ev]),ET=wq.object({condition:Ex}),Ek=Ea.merge(wq.object({type:wq.literal("split-answer"),data:ET})),E_=wq.object({condition:Ex}),ES=Ea.merge(wq.object({type:wq.literal("split-result"),data:E_})),Ew=wq.object({points:wq.number()}),EE=Ea.merge(wq.object({type:wq.literal("split-points"),data:Ew})),EC=wq.object({portal:wq.string(),description:wq.string()}),EA=wq.object({portal:wq.string(),description:wq.string()}),ER=Ea.merge(wq.object({type:wq.literal("portal-input"),data:EC})),EP=Ea.merge(wq.object({type:wq.literal("portal-output"),data:EA})),EI=Ea.merge(wq.object({type:wq.literal("split-random")}));wq.union([Ek,ES,EE,EI,ER,EP]);var EN=wq.object({id:wq.string(),source:wq.string(),sourceHandle:wq.union([wq.literal("a"),wq.literal("b"),wq.literal("c"),wq.literal("d"),wq.literal("e"),wq.literal("f")]).optional(),target:wq.string()}),E$=({end:e,input:t,start:n,task:r,title:i})=>wq.union([Ek,ES,EE,EI,ER,EP,Es,Eo,Ec(e),Ed(t),Eu(n),El(r),Eh(i)]),EL=({end:e,input:t,start:n,task:r,title:i})=>wq.object({name:wq.string(),description:wq.string(),language:wq.enum(["en","de","fr","es","nl","pt","tr","it"]),visibility:wq.enum(["public","private","unlisted"]),draft:wq.boolean(),nodes:wq.array(E$({start:n,end:e,input:t,title:i,task:r})),edges:wq.array(EN),zoom:wq.number().positive().default(1),position:wq.tuple([wq.number(),wq.number()]).default([0,0])}).refine(e=>{let t=e.nodes.map(e=>e.id);for(let n of e.edges)if(!t.includes(n.source)||!t.includes(n.target))return!1;return!0},{message:"Target and source of an edge need to be valid node ids."}),ED=e=>"start"===e.type,EQ=e=>"checkpoint"===e.type||"end"===e.type||"input"===e.type||"start"===e.type||"synchronize"===e.type||"task"===e.type||"title"===e.type,EM=e=>"task"===e.type?{id:e.id,type:e.type,data:{name:e.data.name,subtype:e.data.subtype,view:e.data.view}}:"synchronize"===e.type||"checkpoint"===e.type?{id:e.id,type:e.type}:("input"===e.type||"end"===e.type||e.type,{id:e.id,type:e.type,data:e.data});function EF(e,t,n){let r=+e.replace("#","0x"),i=r>>16,a=r>>8&255,o=255&r,s=+t.replace("#","0x");return"#"+(16777216+(i+n*((s>>16)-i)<<16)+(a+n*((s>>8&255)-a)<<8)+(o+n*((255&s)-o))|0).toString(16).slice(1)}(Pk=PL||(PL={})).assertNever=function(e){throw Error()},Pk.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},Pk.getValidEnumValues=e=>{let t=Pk.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),n={};for(let r of t)n[r]=e[r];return Pk.objectValues(n)},Pk.objectValues=e=>Pk.objectKeys(e).map(function(t){return e[t]}),Pk.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},Pk.find=(e,t)=>{for(let n of e)if(t(n))return n},Pk.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,Pk.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)};let EB=PL.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),EU=e=>{let t=typeof e;switch(t){case"undefined":return EB.undefined;case"string":return EB.string;case"number":return isNaN(e)?EB.nan:EB.number;case"boolean":return EB.boolean;case"function":return EB.function;case"bigint":return EB.bigint;case"object":if(Array.isArray(e))return EB.array;if(null===e)return EB.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return EB.promise;if("undefined"!=typeof Map&&e instanceof Map)return EB.map;if("undefined"!=typeof Set&&e instanceof Set)return EB.set;if("undefined"!=typeof Date&&e instanceof Date)return EB.date;return EB.object;default:return EB.unknown}},Ez=PL.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of"]);class Ej extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(r);else if("invalid_return_type"===i.code)r(i.returnTypeError);else if("invalid_arguments"===i.code)r(i.argumentsError);else if(0===i.path.length)n._errors.push(t(i));else{let e=n,r=0;for(;re.message){let t={},n=[];for(let r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}Ej.create=e=>{let t=new Ej(e);return t};let EW=(e,t)=>{let n;switch(e.code){case Ez.invalid_type:n=e.received===EB.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case Ez.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected)}`;break;case Ez.unrecognized_keys:n=`Unrecognized key(s) in object: ${PL.joinValues(e.keys,", ")}`;break;case Ez.invalid_union:n="Invalid input";break;case Ez.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${PL.joinValues(e.options)}`;break;case Ez.invalid_enum_value:n=`Invalid enum value. Expected ${PL.joinValues(e.options)}, received '${e.received}'`;break;case Ez.invalid_arguments:n="Invalid function arguments";break;case Ez.invalid_return_type:n="Invalid function return type";break;case Ez.invalid_date:n="Invalid date";break;case Ez.invalid_string:n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case Ez.too_small:n="array"===e.type?`Array must contain ${e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be greater than ${e.inclusive?"or equal to ":""}${e.minimum}`:"Invalid input";break;case Ez.too_big:n="array"===e.type?`Array must contain ${e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be less than ${e.inclusive?"or equal to ":""}${e.maximum}`:"Invalid input";break;case Ez.custom:n="Invalid input";break;case Ez.invalid_intersection_types:n="Intersection results could not be merged";break;case Ez.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;default:n=t.defaultError,PL.assertNever(e)}return{message:n}},EZ=EW,Eq=e=>{let{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],o={...i,path:a},s="",l=r.filter(e=>!!e).slice().reverse();for(let e of l)s=e(o,{data:t,defaultError:s}).message;return{...i,path:a,message:i.message||s}};function EG(e,t){let n=Eq({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,EZ,EW].filter(e=>!!e)});e.common.issues.push(n)}class EH{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let n=[];for(let r of t){if("aborted"===r.status)return EY;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){let n=[];for(let e of t)n.push({key:await e.key,value:await e.value});return EH.mergeObjectSync(e,n)}static mergeObjectSync(e,t){let n={};for(let r of t){let{key:t,value:i}=r;if("aborted"===t.status||"aborted"===i.status)return EY;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),(void 0!==i.value||r.alwaysSet)&&(n[t.value]=i.value)}return{status:e.value,value:n}}}let EY=Object.freeze({status:"aborted"}),EX=e=>({status:"valid",value:e}),EV=e=>"aborted"===e.status,EK=e=>"dirty"===e.status,EJ=e=>"valid"===e.status,E1=e=>e instanceof Promise;(P_=PD||(PD={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},P_.toString=e=>"string"==typeof e?e:null==e?void 0:e.message;class E0{constructor(e,t,n,r){this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._path.concat(this._key)}}let E2=(e,t)=>{if(EJ(t))return{success:!0,data:t.value};{if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");let t=new Ej(e.common.issues);return{success:!1,error:t}}};function E5(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw Error('Can\'t use "invalid" or "required" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(t,n)=>"invalid_type"!==t.code?{message:n.defaultError}:void 0===n.data&&r?{message:r}:e.invalid_type_error?{message:e.invalid_type_error}:{message:n.defaultError},description:i}}class E9{constructor(e){this.spa=this.safeParseAsync,this.superRefine=this._refinement,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.default=this.default.bind(this),this.describe=this.describe.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return EU(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:EU(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new EH,ctx:{common:e.parent.common,data:e.data,parsedType:EU(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(E1(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;let r={common:{issues:[],async:null!==(n=null==t?void 0:t.async)&&void 0!==n&&n,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:EU(e)},i=this._parseSync({data:e,path:r.path,parent:r});return E2(r,i)}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:EU(e)},r=this._parse({data:e,path:[],parent:n}),i=await (E1(r)?r:Promise.resolve(r));return E2(n,i)}refine(e,t){let n=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,r)=>{let i=e(t),a=()=>r.addIssue({code:Ez.custom,...n(t)});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(e=>!!e||(a(),!1)):!!i||(a(),!1)})}refinement(e,t){return this._refinement((n,r)=>!!e(n)||(r.addIssue("function"==typeof t?t(n,r):t),!1))}_refinement(e){return new CS({schema:this,typeName:PM.ZodEffects,effect:{type:"refinement",refinement:e}})}optional(){return Cw.create(this)}nullable(){return CE.create(this)}nullish(){return this.optional().nullable()}array(){return Cu.create(this)}promise(){return C_.create(this)}or(e){return Ch.create([this,e])}and(e){return Cf.create(this,e)}transform(e){return new CS({schema:this,typeName:PM.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new CC({innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:PM.ZodDefault})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let E4=/^c[^\s-]{8,}$/i,E3=/^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i,E8=/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i;class E6 extends E9{constructor(){super(...arguments),this._regex=(e,t,n)=>this.refinement(t=>e.test(t),{validation:t,code:Ez.invalid_string,...PD.errToObj(n)}),this.nonempty=e=>this.min(1,PD.errToObj(e)),this.trim=()=>new E6({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}_parse(e){let t;let n=this._getType(e);if(n!==EB.string){let t=this._getOrReturnCtx(e);return EG(t,{code:Ez.invalid_type,expected:EB.string,received:t.parsedType}),EY}let r=new EH;for(let n of this._def.checks)if("min"===n.kind)e.data.lengthn.value&&(EG(t=this._getOrReturnCtx(e,t),{code:Ez.too_big,maximum:n.value,type:"string",inclusive:!0,message:n.message}),r.dirty());else if("email"===n.kind)E8.test(e.data)||(EG(t=this._getOrReturnCtx(e,t),{validation:"email",code:Ez.invalid_string,message:n.message}),r.dirty());else if("uuid"===n.kind)E3.test(e.data)||(EG(t=this._getOrReturnCtx(e,t),{validation:"uuid",code:Ez.invalid_string,message:n.message}),r.dirty());else if("cuid"===n.kind)E4.test(e.data)||(EG(t=this._getOrReturnCtx(e,t),{validation:"cuid",code:Ez.invalid_string,message:n.message}),r.dirty());else if("url"===n.kind)try{new URL(e.data)}catch(i){EG(t=this._getOrReturnCtx(e,t),{validation:"url",code:Ez.invalid_string,message:n.message}),r.dirty()}else if("regex"===n.kind){n.regex.lastIndex=0;let i=n.regex.test(e.data);i||(EG(t=this._getOrReturnCtx(e,t),{validation:"regex",code:Ez.invalid_string,message:n.message}),r.dirty())}else"trim"===n.kind?e.data=e.data.trim():PL.assertNever(n);return{status:r.value,value:e.data}}_addCheck(e){return new E6({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...PD.errToObj(e)})}url(e){return this._addCheck({kind:"url",...PD.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...PD.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...PD.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...PD.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...PD.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...PD.errToObj(t)})}length(e,t){return this.min(e,t).max(e,t)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get minLength(){let e=-1/0;return this._def.checks.map(t=>{"min"===t.kind&&(null===e||t.value>e)&&(e=t.value)}),e}get maxLength(){let e=null;return this._def.checks.map(t=>{"max"===t.kind&&(null===e||t.valuenew E6({checks:[],typeName:PM.ZodString,...E5(e)});class E7 extends E9{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;let n=this._getType(e);if(n!==EB.number){let t=this._getOrReturnCtx(e);return EG(t,{code:Ez.invalid_type,expected:EB.number,received:t.parsedType}),EY}let r=new EH;for(let n of this._def.checks)if("int"===n.kind)PL.isInteger(e.data)||(EG(t=this._getOrReturnCtx(e,t),{code:Ez.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty());else if("min"===n.kind){let i=n.inclusive?e.datan.value:e.data>=n.value;i&&(EG(t=this._getOrReturnCtx(e,t),{code:Ez.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,message:n.message}),r.dirty())}else"multipleOf"===n.kind?0!==function(e,t){let n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,a=parseInt(e.toFixed(i).replace(".","")),o=parseInt(t.toFixed(i).replace(".",""));return a%o/Math.pow(10,i)}(e.data,n.value)&&(EG(t=this._getOrReturnCtx(e,t),{code:Ez.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):PL.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,PD.toString(t))}gt(e,t){return this.setLimit("min",e,!1,PD.toString(t))}lte(e,t){return this.setLimit("max",e,!0,PD.toString(t))}lt(e,t){return this.setLimit("max",e,!1,PD.toString(t))}setLimit(e,t,n,r){return new E7({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:PD.toString(r)}]})}_addCheck(e){return new E7({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:PD.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:PD.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:PD.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:PD.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:PD.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:PD.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value"int"===e.kind)}}E7.create=e=>new E7({checks:[],typeName:PM.ZodNumber,...E5(e)});class Ce extends E9{_parse(e){let t=this._getType(e);if(t!==EB.bigint){let t=this._getOrReturnCtx(e);return EG(t,{code:Ez.invalid_type,expected:EB.bigint,received:t.parsedType}),EY}return EX(e.data)}}Ce.create=e=>new Ce({typeName:PM.ZodBigInt,...E5(e)});class Ct extends E9{_parse(e){let t=this._getType(e);if(t!==EB.boolean){let t=this._getOrReturnCtx(e);return EG(t,{code:Ez.invalid_type,expected:EB.boolean,received:t.parsedType}),EY}return EX(e.data)}}Ct.create=e=>new Ct({typeName:PM.ZodBoolean,...E5(e)});class Cn extends E9{_parse(e){let t=this._getType(e);if(t!==EB.date){let t=this._getOrReturnCtx(e);return EG(t,{code:Ez.invalid_type,expected:EB.date,received:t.parsedType}),EY}if(isNaN(e.data.getTime())){let t=this._getOrReturnCtx(e);return EG(t,{code:Ez.invalid_date}),EY}return{status:"valid",value:new Date(e.data.getTime())}}}Cn.create=e=>new Cn({typeName:PM.ZodDate,...E5(e)});class Cr extends E9{_parse(e){let t=this._getType(e);if(t!==EB.undefined){let t=this._getOrReturnCtx(e);return EG(t,{code:Ez.invalid_type,expected:EB.undefined,received:t.parsedType}),EY}return EX(e.data)}}Cr.create=e=>new Cr({typeName:PM.ZodUndefined,...E5(e)});class Ci extends E9{_parse(e){let t=this._getType(e);if(t!==EB.null){let t=this._getOrReturnCtx(e);return EG(t,{code:Ez.invalid_type,expected:EB.null,received:t.parsedType}),EY}return EX(e.data)}}Ci.create=e=>new Ci({typeName:PM.ZodNull,...E5(e)});class Ca extends E9{constructor(){super(...arguments),this._any=!0}_parse(e){return EX(e.data)}}Ca.create=e=>new Ca({typeName:PM.ZodAny,...E5(e)});class Co extends E9{constructor(){super(...arguments),this._unknown=!0}_parse(e){return EX(e.data)}}Co.create=e=>new Co({typeName:PM.ZodUnknown,...E5(e)});class Cs extends E9{_parse(e){let t=this._getOrReturnCtx(e);return EG(t,{code:Ez.invalid_type,expected:EB.never,received:t.parsedType}),EY}}Cs.create=e=>new Cs({typeName:PM.ZodNever,...E5(e)});class Cl extends E9{_parse(e){let t=this._getType(e);if(t!==EB.undefined){let t=this._getOrReturnCtx(e);return EG(t,{code:Ez.invalid_type,expected:EB.void,received:t.parsedType}),EY}return EX(e.data)}}Cl.create=e=>new Cl({typeName:PM.ZodVoid,...E5(e)});class Cu extends E9{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==EB.array)return EG(t,{code:Ez.invalid_type,expected:EB.array,received:t.parsedType}),EY;if(null!==r.minLength&&t.data.lengthr.maxLength.value&&(EG(t,{code:Ez.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all(t.data.map((e,n)=>r.type._parseAsync(new E0(t,e,t.path,n)))).then(e=>EH.mergeArray(n,e));let i=t.data.map((e,n)=>r.type._parseSync(new E0(t,e,t.path,n)));return EH.mergeArray(n,i)}get element(){return this._def.type}min(e,t){return new Cu({...this._def,minLength:{value:e,message:PD.toString(t)}})}max(e,t){return new Cu({...this._def,maxLength:{value:e,message:PD.toString(t)}})}length(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}Cu.create=(e,t)=>new Cu({type:e,minLength:null,maxLength:null,typeName:PM.ZodArray,...E5(t)}),(PQ||(PQ={})).mergeShapes=(e,t)=>({...e,...t});let Cc=e=>t=>new Cd({...e,shape:()=>({...e.shape(),...t})});class Cd extends E9{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=Cc(this._def),this.extend=Cc(this._def)}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=PL.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){let t=this._getType(e);if(t!==EB.object){let t=this._getOrReturnCtx(e);return EG(t,{code:Ez.invalid_type,expected:EB.object,received:t.parsedType}),EY}let{status:n,ctx:r}=this._processInputParams(e),{shape:i,keys:a}=this._getCached(),o=[];for(let e in r.data)a.includes(e)||o.push(e);let s=[];for(let e of a){let t=i[e],n=r.data[e];s.push({key:{status:"valid",value:e},value:t._parse(new E0(r,n,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof Cs){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of o)s.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)o.length>0&&(EG(r,{code:Ez.unrecognized_keys,keys:o}),n.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of o){let n=r.data[t];s.push({key:{status:"valid",value:t},value:e._parse(new E0(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of s){let n=await t.key;e.push({key:n,value:await t.value,alwaysSet:t.alwaysSet})}return e}).then(e=>EH.mergeObjectSync(n,e)):EH.mergeObjectSync(n,s)}get shape(){return this._def.shape()}strict(e){return PD.errToObj,new Cd({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var r,i,a,o;let s=null!==(a=null===(i=(r=this._def).errorMap)||void 0===i?void 0:i.call(r,t,n).message)&&void 0!==a?a:n.defaultError;return"unrecognized_keys"===t.code?{message:null!==(o=PD.errToObj(e).message)&&void 0!==o?o:s}:{message:s}}}:{}})}strip(){return new Cd({...this._def,unknownKeys:"strip"})}passthrough(){return new Cd({...this._def,unknownKeys:"passthrough"})}setKey(e,t){return this.augment({[e]:t})}merge(e){let t=new Cd({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>PQ.mergeShapes(this._def.shape(),e._def.shape()),typeName:PM.ZodObject});return t}catchall(e){return new Cd({...this._def,catchall:e})}pick(e){let t={};return PL.objectKeys(e).map(e=>{this.shape[e]&&(t[e]=this.shape[e])}),new Cd({...this._def,shape:()=>t})}omit(e){let t={};return PL.objectKeys(this.shape).map(n=>{-1===PL.objectKeys(e).indexOf(n)&&(t[n]=this.shape[n])}),new Cd({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof Cd){let n={};for(let r in t.shape){let i=t.shape[r];n[r]=Cw.create(e(i))}return new Cd({...t._def,shape:()=>n})}return t instanceof Cu?Cu.create(e(t.element)):t instanceof Cw?Cw.create(e(t.unwrap())):t instanceof CE?CE.create(e(t.unwrap())):t instanceof Cm?Cm.create(t.items.map(t=>e(t))):t}(this)}partial(e){let t={};if(e)PL.objectKeys(this.shape).map(n=>{-1===PL.objectKeys(e).indexOf(n)?t[n]=this.shape[n]:t[n]=this.shape[n].optional()});else for(let e in this.shape){let n=this.shape[e];t[e]=n.optional()}return new Cd({...this._def,shape:()=>t})}required(){let e={};for(let t in this.shape){let n=this.shape[t],r=n;for(;r instanceof Cw;)r=r._def.innerType;e[t]=r}return new Cd({...this._def,shape:()=>e})}}Cd.create=(e,t)=>new Cd({shape:()=>e,unknownKeys:"strip",catchall:Cs.create(),typeName:PM.ZodObject,...E5(t)}),Cd.strictCreate=(e,t)=>new Cd({shape:()=>e,unknownKeys:"strict",catchall:Cs.create(),typeName:PM.ZodObject,...E5(t)}),Cd.lazycreate=(e,t)=>new Cd({shape:e,unknownKeys:"strip",catchall:Cs.create(),typeName:PM.ZodObject,...E5(t)});class Ch extends E9{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map(async e=>{let n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let n of e)if("dirty"===n.result.status)return t.common.issues.push(...n.ctx.common.issues),n.result;let n=e.map(e=>new Ej(e.ctx.common.issues));return EG(t,{code:Ez.invalid_union,unionErrors:n}),EY});{let e;let r=[];for(let i of n){let n={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:n});if("valid"===a.status)return a;"dirty"!==a.status||e||(e={result:a,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=r.map(e=>new Ej(e));return EG(t,{code:Ez.invalid_union,unionErrors:i}),EY}}get options(){return this._def.options}}Ch.create=(e,t)=>new Ch({options:e,typeName:PM.ZodUnion,...E5(t)});class Cp extends E9{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==EB.object)return EG(t,{code:Ez.invalid_type,expected:EB.object,received:t.parsedType}),EY;let n=this.discriminator,r=t.data[n],i=this.options.get(r);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(EG(t,{code:Ez.invalid_union_discriminator,options:this.validDiscriminatorValues,path:[n]}),EY)}get discriminator(){return this._def.discriminator}get validDiscriminatorValues(){return Array.from(this.options.keys())}get options(){return this._def.options}static create(e,t,n){let r=new Map;try{t.forEach(t=>{let n=t.shape[e].value;r.set(n,t)})}catch(e){throw Error("The discriminator value could not be extracted from all the provided schemas")}if(r.size!==t.length)throw Error("Some of the discriminator values are not unique");return new Cp({typeName:PM.ZodDiscriminatedUnion,discriminator:e,options:r,...E5(n)})}}class Cf extends E9{_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(EV(e)||EV(r))return EY;let i=function e(t,n){let r=EU(t),i=EU(n);if(t===n)return{valid:!0,data:t};if(r===EB.object&&i===EB.object){let r=PL.objectKeys(n),i=PL.objectKeys(t).filter(e=>-1!==r.indexOf(e)),a={...t,...n};for(let r of i){let i=e(t[r],n[r]);if(!i.valid)return{valid:!1};a[r]=i.data}return{valid:!0,data:a}}if(r===EB.array&&i===EB.array){if(t.length!==n.length)return{valid:!1};let r=[];for(let i=0;ir(e,t)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}Cf.create=(e,t,n)=>new Cf({left:e,right:t,typeName:PM.ZodIntersection,...E5(n)});class Cm extends E9{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==EB.array)return EG(n,{code:Ez.invalid_type,expected:EB.array,received:n.parsedType}),EY;if(n.data.lengththis._def.items.length&&(EG(n,{code:Ez.too_big,maximum:this._def.items.length,inclusive:!0,type:"array"}),t.dirty());let i=n.data.map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new E0(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(i).then(e=>EH.mergeArray(t,e)):EH.mergeArray(t,i)}get items(){return this._def.items}rest(e){return new Cm({...this._def,rest:e})}}Cm.create=(e,t)=>new Cm({items:e,typeName:PM.ZodTuple,rest:null,...E5(t)});class Cg extends E9{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==EB.object)return EG(n,{code:Ez.invalid_type,expected:EB.object,received:n.parsedType}),EY;let r=[],i=this._def.keyType,a=this._def.valueType;for(let e in n.data)r.push({key:i._parse(new E0(n,e,n.path,e)),value:a._parse(new E0(n,n.data[e],n.path,e))});return n.common.async?EH.mergeObjectAsync(t,r):EH.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,n){return new Cg(t instanceof E9?{keyType:e,valueType:t,typeName:PM.ZodRecord,...E5(n)}:{keyType:E6.create(),valueType:e,typeName:PM.ZodRecord,...E5(t)})}}class CO extends E9{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==EB.map)return EG(n,{code:Ez.invalid_type,expected:EB.map,received:n.parsedType}),EY;let r=this._def.keyType,i=this._def.valueType,a=[...n.data.entries()].map(([e,t],a)=>({key:r._parse(new E0(n,e,n.path,[a,"key"])),value:i._parse(new E0(n,t,n.path,[a,"value"]))}));if(n.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let n of a){let r=await n.key,i=await n.value;if("aborted"===r.status||"aborted"===i.status)return EY;("dirty"===r.status||"dirty"===i.status)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let n of a){let r=n.key,i=n.value;if("aborted"===r.status||"aborted"===i.status)return EY;("dirty"===r.status||"dirty"===i.status)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}}CO.create=(e,t,n)=>new CO({valueType:t,keyType:e,typeName:PM.ZodMap,...E5(n)});class Cb extends E9{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==EB.set)return EG(n,{code:Ez.invalid_type,expected:EB.set,received:n.parsedType}),EY;let r=this._def;null!==r.minSize&&n.data.sizer.maxSize.value&&(EG(n,{code:Ez.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,message:r.maxSize.message}),t.dirty());let i=this._def.valueType;function a(e){let n=new Set;for(let r of e){if("aborted"===r.status)return EY;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}let o=[...n.data.values()].map((e,t)=>i._parse(new E0(n,e,n.path,t)));return n.common.async?Promise.all(o).then(e=>a(e)):a(o)}min(e,t){return new Cb({...this._def,minSize:{value:e,message:PD.toString(t)}})}max(e,t){return new Cb({...this._def,maxSize:{value:e,message:PD.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}Cb.create=(e,t)=>new Cb({valueType:e,minSize:null,maxSize:null,typeName:PM.ZodSet,...E5(t)});class Cy extends E9{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==EB.function)return EG(t,{code:Ez.invalid_type,expected:EB.function,received:t.parsedType}),EY;function n(e,n){return Eq({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,EZ,EW].filter(e=>!!e),issueData:{code:Ez.invalid_arguments,argumentsError:n}})}function r(e,n){return Eq({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,EZ,EW].filter(e=>!!e),issueData:{code:Ez.invalid_return_type,returnTypeError:n}})}let i={errorMap:t.common.contextualErrorMap},a=t.data;return this._def.returns instanceof C_?EX(async(...e)=>{let t=new Ej([]),o=await this._def.args.parseAsync(e,i).catch(r=>{throw t.addIssue(n(e,r)),t}),s=await a(...o),l=await this._def.returns._def.type.parseAsync(s,i).catch(e=>{throw t.addIssue(r(s,e)),t});return l}):EX((...e)=>{let t=this._def.args.safeParse(e,i);if(!t.success)throw new Ej([n(e,t.error)]);let o=a(...t.data),s=this._def.returns.safeParse(o,i);if(!s.success)throw new Ej([r(o,s.error)]);return s.data})}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Cy({...this._def,args:Cm.create(e).rest(Co.create())})}returns(e){return new Cy({...this._def,returns:e})}implement(e){let t=this.parse(e);return t}strictImplement(e){let t=this.parse(e);return t}}Cy.create=(e,t,n)=>new Cy({args:e?e.rest(Co.create()):Cm.create([]).rest(Co.create()),returns:t||Co.create(),typeName:PM.ZodFunction,...E5(n)});class Cv extends E9{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.getter();return n._parse({data:t.data,path:t.path,parent:t})}}Cv.create=(e,t)=>new Cv({getter:e,typeName:PM.ZodLazy,...E5(t)});class Cx extends E9{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return EG(t,{code:Ez.invalid_literal,expected:this._def.value}),EY}return{status:"valid",value:e.data}}get value(){return this._def.value}}Cx.create=(e,t)=>new Cx({value:e,typeName:PM.ZodLiteral,...E5(t)});class CT extends E9{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),n=this._def.values;return EG(t,{expected:PL.joinValues(n),received:t.parsedType,code:Ez.invalid_type}),EY}if(-1===this._def.values.indexOf(e.data)){let t=this._getOrReturnCtx(e),n=this._def.values;return EG(t,{received:t.data,code:Ez.invalid_enum_value,options:n}),EY}return EX(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}}CT.create=function(e,t){return new CT({values:e,typeName:PM.ZodEnum,...E5(t)})};class Ck extends E9{_parse(e){let t=PL.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==EB.string&&n.parsedType!==EB.number){let e=PL.objectValues(t);return EG(n,{expected:PL.joinValues(e),received:n.parsedType,code:Ez.invalid_type}),EY}if(-1===t.indexOf(e.data)){let e=PL.objectValues(t);return EG(n,{received:n.data,code:Ez.invalid_enum_value,options:e}),EY}return EX(e.data)}get enum(){return this._def.values}}Ck.create=(e,t)=>new Ck({values:e,typeName:PM.ZodNativeEnum,...E5(t)});class C_ extends E9{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==EB.promise&&!1===t.common.async)return EG(t,{code:Ez.invalid_type,expected:EB.promise,received:t.parsedType}),EY;let n=t.parsedType===EB.promise?t.data:Promise.resolve(t.data);return EX(n.then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}C_.create=(e,t)=>new C_({type:e,typeName:PM.ZodPromise,...E5(t)});class CS extends E9{innerType(){return this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null;if("preprocess"===r.type){let e=r.transform(n.data);return n.common.async?Promise.resolve(e).then(e=>this._def.schema._parseAsync({data:e,path:n.path,parent:n})):this._def.schema._parseSync({data:e,path:n.path,parent:n})}let i={addIssue:e=>{EG(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),"refinement"===r.type){let e=e=>{let t=r.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>"aborted"===n.status?EY:("dirty"===n.status&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))));{let r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?EY:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}}if("transform"===r.type){if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>EJ(e)?Promise.resolve(r.transform(e.value,i)).then(e=>({status:t.value,value:e})):e);{let e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!EJ(e))return e;let a=r.transform(e.value,i);if(a instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}}PL.assertNever(r)}}CS.create=(e,t,n)=>new CS({schema:e,typeName:PM.ZodEffects,effect:t,...E5(n)}),CS.createWithPreprocess=(e,t,n)=>new CS({schema:t,effect:{type:"preprocess",transform:e},typeName:PM.ZodEffects,...E5(n)});class Cw extends E9{_parse(e){let t=this._getType(e);return t===EB.undefined?EX(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Cw.create=(e,t)=>new Cw({innerType:e,typeName:PM.ZodOptional,...E5(t)});class CE extends E9{_parse(e){let t=this._getType(e);return t===EB.null?EX(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}CE.create=(e,t)=>new CE({innerType:e,typeName:PM.ZodNullable,...E5(t)});class CC extends E9{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===EB.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}CC.create=(e,t)=>new Cw({innerType:e,typeName:PM.ZodOptional,...E5(t)});class CA extends E9{_parse(e){let t=this._getType(e);if(t!==EB.nan){let t=this._getOrReturnCtx(e);return EG(t,{code:Ez.invalid_type,expected:EB.nan,received:t.parsedType}),EY}return{status:"valid",value:e.data}}}CA.create=e=>new CA({typeName:PM.ZodNaN,...E5(e)});let CR=(e,t={},n)=>e?Ca.create().superRefine((r,i)=>{if(!e(r)){let e="function"==typeof t?t(r):t,a="string"==typeof e?{message:e}:e;i.addIssue({code:"custom",...a,fatal:n})}}):Ca.create(),CP={object:Cd.lazycreate};(PS=PM||(PM={})).ZodString="ZodString",PS.ZodNumber="ZodNumber",PS.ZodNaN="ZodNaN",PS.ZodBigInt="ZodBigInt",PS.ZodBoolean="ZodBoolean",PS.ZodDate="ZodDate",PS.ZodUndefined="ZodUndefined",PS.ZodNull="ZodNull",PS.ZodAny="ZodAny",PS.ZodUnknown="ZodUnknown",PS.ZodNever="ZodNever",PS.ZodVoid="ZodVoid",PS.ZodArray="ZodArray",PS.ZodObject="ZodObject",PS.ZodUnion="ZodUnion",PS.ZodDiscriminatedUnion="ZodDiscriminatedUnion",PS.ZodIntersection="ZodIntersection",PS.ZodTuple="ZodTuple",PS.ZodRecord="ZodRecord",PS.ZodMap="ZodMap",PS.ZodSet="ZodSet",PS.ZodFunction="ZodFunction",PS.ZodLazy="ZodLazy",PS.ZodLiteral="ZodLiteral",PS.ZodEnum="ZodEnum",PS.ZodEffects="ZodEffects",PS.ZodNativeEnum="ZodNativeEnum",PS.ZodOptional="ZodOptional",PS.ZodNullable="ZodNullable",PS.ZodDefault="ZodDefault",PS.ZodPromise="ZodPromise";let CI=E6.create,CN=E7.create,C$=CA.create,CL=Ce.create,CD=Ct.create,CQ=Cn.create,CM=Cr.create,CF=Ci.create,CB=Ca.create,CU=Co.create,Cz=Cs.create,Cj=Cl.create,CW=Cu.create,CZ=Cd.create,Cq=Cd.strictCreate,CG=Ch.create,CH=Cp.create,CY=Cf.create,CX=Cm.create,CV=Cg.create,CK=CO.create,CJ=Cb.create,C1=Cy.create,C0=Cv.create,C2=Cx.create,C5=CT.create,C9=Ck.create,C4=C_.create,C3=CS.create,C8=Cw.create,C6=CE.create,C7=CS.createWithPreprocess;var Ae=Object.freeze({__proto__:null,getParsedType:EU,ZodParsedType:EB,makeIssue:Eq,EMPTY_PATH:[],addIssueToContext:EG,ParseStatus:EH,INVALID:EY,DIRTY:e=>({status:"dirty",value:e}),OK:EX,isAborted:EV,isDirty:EK,isValid:EJ,isAsync:E1,ZodType:E9,ZodString:E6,ZodNumber:E7,ZodBigInt:Ce,ZodBoolean:Ct,ZodDate:Cn,ZodUndefined:Cr,ZodNull:Ci,ZodAny:Ca,ZodUnknown:Co,ZodNever:Cs,ZodVoid:Cl,ZodArray:Cu,get objectUtil(){return PQ},ZodObject:Cd,ZodUnion:Ch,ZodDiscriminatedUnion:Cp,ZodIntersection:Cf,ZodTuple:Cm,ZodRecord:Cg,ZodMap:CO,ZodSet:Cb,ZodFunction:Cy,ZodLazy:Cv,ZodLiteral:Cx,ZodEnum:CT,ZodNativeEnum:Ck,ZodPromise:C_,ZodEffects:CS,ZodTransformer:CS,ZodOptional:Cw,ZodNullable:CE,ZodDefault:CC,ZodNaN:CA,custom:CR,Schema:E9,ZodSchema:E9,late:CP,get ZodFirstPartyTypeKind(){return PM},any:CB,array:CW,bigint:CL,boolean:CD,date:CQ,discriminatedUnion:CH,effect:C3,enum:C5,function:C1,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>CR(t=>t instanceof e,t,!0),intersection:CY,lazy:C0,literal:C2,map:CK,nan:C$,nativeEnum:C9,never:Cz,null:CF,nullable:C6,number:CN,object:CZ,oboolean:()=>CD().optional(),onumber:()=>CN().optional(),optional:C8,ostring:()=>CI().optional(),preprocess:C7,promise:C4,record:CV,set:CJ,strictObject:Cq,string:CI,transformer:C3,tuple:CX,undefined:CM,union:CG,unknown:CU,void:Cj,ZodIssueCode:Ez,quotelessJson:e=>{let t=JSON.stringify(e,null,2);return t.replace(/"([^"]+)":/g,"$1:")},ZodError:Ej,defaultErrorMap:EW,get overrideErrorMap(){return EZ},setErrorMap:e=>{EZ=e}});Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var At=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),An=["en","en-GB","en-US","de","fr","it","nl","tr","es","pt"],Ar=(0,U.createContext)({locale:"en-GB",config:{},setLocale:()=>null,bits:{task:{},end:{},start:{},title:{},input:{}}}),Ai=({children:e,locale:t,bits:n,config:r={}})=>{let[i,a]=(0,U.useState)("en-GB");return(0,U.useEffect)(()=>{An.includes(t)?a(t):a("en-GB")},[t]),af(Ar.Provider,{value:{bits:n,locale:i,setLocale:e=>{window.__localeId__=e,a(e)},config:r}},af(Sn,{language:i},e))};function Aa(e){let{bits:t}=(0,U.useContext)(Ar);return t[e]}function Ao(e,t){var n;let{bits:r}=(0,U.useContext)(Ar);return e&&t&&(null==(n=r[e])?void 0:n[t])||null}var As=e=>{let t=Ao("task",e);return t},Al=e=>{let t=Ao("title",e);return t},Au=e=>{let t=Ao("input",e);return t},Ac=e=>{let t=Ao("start",e);return t},Ad=e=>{let t=Ao("end",e);return t},Ah=()=>{let e=Aa("task"),t=Aa("title"),n=Aa("start"),r=Aa("end"),i=Aa("input"),a=(0,U.useRef)(),o=(0,U.useRef)(),s=(0,U.useRef)({});if(!a.current||!o.current){let l=null;for(let e in t){let n=t[e];l=l?l.or(n.TitleSchema):n.TitleSchema}let u=null;for(let e in n){let t=n[e];u=u?u.or(t.StartSchema):t.StartSchema}let c=null;for(let e in i){let t=i[e];c=c?c.or(t.InputSchema):t.InputSchema}let d=null;for(let e in r){let t=r[e];d=d?d.or(t.EndSchema):t.EndSchema}let h=null;for(let t in e){let n=e[t];s.current[t]=n.evaluate,h=h?h.or(n.TaskSchema):n.TaskSchema}a.current=EL({end:null!=d?d:Ae.never(),task:null!=h?h:Ae.never(),input:null!=c?c:Ae.never(),title:null!=l?l:Ae.never(),start:null!=u?u:Ae.never()}),o.current=E$({end:null!=d?d:Ae.never(),task:null!=h?h:Ae.never(),input:null!=c?c:Ae.never(),title:null!=l?l:Ae.never(),start:null!=u?u:Ae.never()})}return{FlowSchema:a.current,FlowNodeSchema:o.current,evaluate:e=>At(void 0,[e],function*({task:e,answer:t}){console.log(s.current);let n=s.current[e.subtype];if(!n)throw Error(`subtype ${e.subtype} not supported. Please see your provider config.`);return n({answer:t,task:e})})}},Ap=function(e,t){return(Ap=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function Af(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Ap(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Am=function(){return(Am=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=Math.abs(e)},AG=!0;try{var AH=A0("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");AG=(null===(Pz=AH.exec("a"))||void 0===Pz?void 0:Pz[0])==="a"}catch(e){AG=!1}var AY=AB?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},AX=AU?String.fromCodePoint:function(){for(var e,t=[],n=0;na;){if((e=t[a++])>1114111)throw RangeError(e+" is not a valid code point");r+=e<65536?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10)+55296,e%1024+56320)}return r},AV=Az?Object.fromEntries:function(e){for(var t={},n=0;n=r)){var i=e.charCodeAt(t);return i<55296||i>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?i:(i-55296<<10)+(n-56320)+65536}},AJ=AW?function(e){return e.trimStart()}:function(e){return e.replace(AQ,"")},A1=AZ?function(e){return e.trimEnd()}:function(e){return e.replace(AM,"")};function A0(e,t){return new RegExp(e,t)}if(AG){var A2=A0("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Pj=function(e,t){var n;return A2.lastIndex=t,null!==(n=A2.exec(e)[1])&&void 0!==n?n:""}}else Pj=function(e,t){for(var n=[];;){var r,i=AK(e,t);if(void 0===i||A4(i)||(r=i)>=33&&r<=35||36===r||r>=37&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||r>=46&&r<=47||r>=58&&r<=59||r>=60&&r<=62||r>=63&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||r>=162&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||r>=8208&&r<=8213||r>=8214&&r<=8215||8216===r||8217===r||8218===r||r>=8219&&r<=8220||8221===r||8222===r||8223===r||r>=8224&&r<=8231||r>=8240&&r<=8248||8249===r||8250===r||r>=8251&&r<=8254||r>=8257&&r<=8259||8260===r||8261===r||8262===r||r>=8263&&r<=8273||8274===r||8275===r||r>=8277&&r<=8286||r>=8592&&r<=8596||r>=8597&&r<=8601||r>=8602&&r<=8603||r>=8604&&r<=8607||8608===r||r>=8609&&r<=8610||8611===r||r>=8612&&r<=8613||8614===r||r>=8615&&r<=8621||8622===r||r>=8623&&r<=8653||r>=8654&&r<=8655||r>=8656&&r<=8657||8658===r||8659===r||8660===r||r>=8661&&r<=8691||r>=8692&&r<=8959||r>=8960&&r<=8967||8968===r||8969===r||8970===r||8971===r||r>=8972&&r<=8991||r>=8992&&r<=8993||r>=8994&&r<=9e3||9001===r||9002===r||r>=9003&&r<=9083||9084===r||r>=9085&&r<=9114||r>=9115&&r<=9139||r>=9140&&r<=9179||r>=9180&&r<=9185||r>=9186&&r<=9254||r>=9255&&r<=9279||r>=9280&&r<=9290||r>=9291&&r<=9311||r>=9472&&r<=9654||9655===r||r>=9656&&r<=9664||9665===r||r>=9666&&r<=9719||r>=9720&&r<=9727||r>=9728&&r<=9838||9839===r||r>=9840&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||r>=10132&&r<=10175||r>=10176&&r<=10180||10181===r||10182===r||r>=10183&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||r>=10224&&r<=10239||r>=10240&&r<=10495||r>=10496&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||r>=10649&&r<=10711||10712===r||10713===r||10714===r||10715===r||r>=10716&&r<=10747||10748===r||10749===r||r>=10750&&r<=11007||r>=11008&&r<=11055||r>=11056&&r<=11076||r>=11077&&r<=11078||r>=11079&&r<=11084||r>=11085&&r<=11123||r>=11124&&r<=11125||r>=11126&&r<=11157||11158===r||r>=11159&&r<=11263||r>=11776&&r<=11777||11778===r||11779===r||11780===r||11781===r||r>=11782&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||r>=11790&&r<=11798||11799===r||r>=11800&&r<=11801||11802===r||11803===r||11804===r||11805===r||r>=11806&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||r>=11818&&r<=11822||11823===r||r>=11824&&r<=11833||r>=11834&&r<=11835||r>=11836&&r<=11839||11840===r||11841===r||11842===r||r>=11843&&r<=11855||r>=11856&&r<=11857||11858===r||r>=11859&&r<=11903||r>=12289&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||r>=12306&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||r>=12318&&r<=12319||12320===r||12336===r||64830===r||64831===r||r>=65093&&r<=65094)break;n.push(i),t+=i>=65536?2:1}return AX.apply(void 0,n)};var A5=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var i=this.char();if(123===i){var a=this.parseArgument(e,n);if(a.err)return a;r.push(a.val)}else if(125===i&&e>0)break;else if(35===i&&("plural"===t||"selectordinal"===t)){var o=this.clonePosition();this.bump(),r.push({type:PB.pound,location:AF(o,this.clonePosition())})}else if(60!==i||this.ignoreTag||47!==this.peek()){if(60===i&&!this.ignoreTag&&A9(this.peek()||0)){var a=this.parseTag(e,t);if(a.err)return a;r.push(a.val)}else{var a=this.parseLiteral(e,t);if(a.err)return a;r.push(a.val)}}else{if(!n)return this.error(PF.UNMATCHED_CLOSING_TAG,AF(this.clonePosition(),this.clonePosition()));break}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:PB.literal,value:"<".concat(r,"/>"),location:AF(n,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(PF.INVALID_TAG,AF(n,this.clonePosition()));var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var a=i.val,o=this.clonePosition();if(!this.bumpIf(""))?{val:{type:PB.tag,value:r,children:a,location:AF(n,this.clonePosition())},err:null}:this.error(PF.INVALID_TAG,AF(o,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(t);if(i){r+=i;continue}var a=this.tryParseUnquoted(e,t);if(a){r+=a;continue}var o=this.tryParseLeftAngleBracket();if(o){r+=o;continue}break}var s=AF(n,this.clonePosition());return{val:{type:PB.literal,value:r,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){var e;return this.isEOF()||60!==this.char()||!this.ignoreTag&&(A9(e=this.peek()||0)||47===e)?null:(this.bump(),"<")},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39===this.peek())t.push(39),this.bump();else{this.bump();break}}else t.push(n);this.bump()}return AX.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),AX(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(PF.EXPECT_ARGUMENT_CLOSING_BRACE,AF(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(PF.EMPTY_ARGUMENT,AF(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(PF.MALFORMED_ARGUMENT,AF(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(PF.EXPECT_ARGUMENT_CLOSING_BRACE,AF(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:PB.argument,value:r,location:AF(n,this.clonePosition())},err:null};case 44:if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(PF.EXPECT_ARGUMENT_CLOSING_BRACE,AF(n,this.clonePosition()));return this.parseArgumentOptions(e,t,r,n);default:return this.error(PF.MALFORMED_ARGUMENT,AF(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=Pj(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:AF(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var i,a=this.clonePosition(),o=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(o){case"":return this.error(PF.EXPECT_ARGUMENT_TYPE,AF(a,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition(),c=this.parseSimpleArgStyleIfPossible();if(c.err)return c;var d=A1(c.val);if(0===d.length)return this.error(PF.EXPECT_ARGUMENT_STYLE,AF(this.clonePosition(),this.clonePosition()));l={style:d,styleLocation:AF(u,this.clonePosition())}}var h=this.tryParseArgumentClose(r);if(h.err)return h;var p=AF(r,this.clonePosition());if(l&&AY(null==l?void 0:l.style,"::",0)){var f,m=AJ(l.style.slice(2));if("number"===o){var c=this.parseNumberSkeletonFromString(m,l.styleLocation);if(c.err)return c;return{val:{type:PB.number,value:n,location:p,style:c.val},err:null}}if(0===m.length)return this.error(PF.EXPECT_DATE_TIME_SKELETON,p);var g=m;this.locale&&(g=function(e,t){for(var n="",r=0;r>1),l=function(e){var t,n=e.hourCycle;if(void 0===n&&e.hourCycles&&e.hourCycles.length&&(n=e.hourCycles[0]),n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw Error("Invalid hourCycle")}var r=e.language;return"root"!==r&&(t=e.maximize().region),(AD[t||""]||AD[r||""]||AD["".concat(r,"-001")]||AD["001"])[0]}(t);for(("H"==l||"k"==l)&&(s=0);s-- >0;)n+="a";for(;o-- >0;)n=l+n}else"J"===i?n+="H":n+=i}return n}(m,this.locale));var d={type:PU.dateTime,pattern:g,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(f={},g.replace(AE,function(e){var t=e.length;switch(e[0]){case"G":f.era=4===t?"long":5===t?"narrow":"short";break;case"y":f.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":f.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw RangeError("`w/W` (week) patterns are not supported");case"d":f.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":f.weekday=4===t?"long":5===t?"narrow":"short";break;case"e":if(t<4)throw RangeError("`e..eee` (weekday) patterns are not supported");f.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");f.weekday=["short","long","narrow","short"][t-4];break;case"a":f.hour12=!0;break;case"b":case"B":throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":f.hourCycle="h12",f.hour=["numeric","2-digit"][t-1];break;case"H":f.hourCycle="h23",f.hour=["numeric","2-digit"][t-1];break;case"K":f.hourCycle="h11",f.hour=["numeric","2-digit"][t-1];break;case"k":f.hourCycle="h24",f.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":f.minute=["numeric","2-digit"][t-1];break;case"s":f.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":f.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),f):{}};return{val:{type:"date"===o?PB.date:PB.time,value:n,location:p,style:d},err:null}}return{val:{type:"number"===o?PB.number:"date"===o?PB.date:PB.time,value:n,location:p,style:null!==(i=null==l?void 0:l.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var O=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(PF.EXPECT_SELECT_ARGUMENT_OPTIONS,AF(O,Am({},O)));this.bumpSpace();var b=this.parseIdentifierIfPossible(),y=0;if("select"!==o&&"offset"===b.value){if(!this.bumpIf(":"))return this.error(PF.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,AF(this.clonePosition(),this.clonePosition()));this.bumpSpace();var c=this.tryParseDecimalInteger(PF.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,PF.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err)return c;this.bumpSpace(),b=this.parseIdentifierIfPossible(),y=c.val}var v=this.tryParsePluralOrSelectOptions(e,o,t,b);if(v.err)return v;var h=this.tryParseArgumentClose(r);if(h.err)return h;var x=AF(r,this.clonePosition());if("select"===o)return{val:{type:PB.select,value:n,options:AV(v.val),location:x},err:null};return{val:{type:PB.plural,value:n,options:AV(v.val),offset:y,pluralType:"plural"===o?"cardinal":"ordinal",location:x},err:null};default:return this.error(PF.INVALID_ARGUMENT_TYPE,AF(a,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(PF.EXPECT_ARGUMENT_CLOSING_BRACE,AF(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(PF.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,AF(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw Error("Number skeleton cannot be empty");for(var t=e.split(AC).filter(function(e){return e.length>0}),n=[],r=0;r1)throw RangeError("integer-width stems only accept a single optional option");r.options[0].replace(AP,function(e,n,r,i,a,o){if(n)t.minimumIntegerDigits=r.length;else if(i&&a)throw Error("We currently do not support maximum integer digits");else if(o)throw Error("We currently do not support exact integer digits");return""});continue}if(AI.test(r.stem)){t.minimumIntegerDigits=r.stem.length;continue}if(AA.test(r.stem)){if(r.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(AA,function(e,n,r,i,a,o){return"*"===r?t.minimumFractionDigits=n.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:a&&o?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+o.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""});var i=r.options[0];"w"===i?t=Am(Am({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=Am(Am({},t),AN(i)));continue}if(AR.test(r.stem)){t=Am(Am({},t),AN(r.stem));continue}var a=A$(r.stem);a&&(t=Am(Am({},t),a));var o=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!AI.test(e))throw Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(r.stem);o&&(t=Am(Am({},t),o))}return t}(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var i,a=!1,o=[],s=new Set,l=r.value,u=r.location;;){if(0===l.length){var c=this.clonePosition();if("select"!==t&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(PF.EXPECT_PLURAL_ARGUMENT_SELECTOR,PF.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;u=AF(c,this.clonePosition()),l=this.message.slice(c.offset,this.offset())}else break}if(s.has(l))return this.error("select"===t?PF.DUPLICATE_SELECT_ARGUMENT_SELECTOR:PF.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===l&&(a=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?PF.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:PF.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,AF(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(e+1,t,n);if(p.err)return p;var f=this.tryParseArgumentClose(h);if(f.err)return f;o.push([l,{value:p.val,location:AF(h,this.clonePosition())}]),s.add(l),this.bumpSpace(),l=(i=this.parseIdentifierIfPossible()).value,u=i.location}return 0===o.length?this.error("select"===t?PF.EXPECT_SELECT_ARGUMENT_SELECTOR:PF.EXPECT_PLURAL_ARGUMENT_SELECTOR,AF(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(PF.MISSING_OTHER_CLAUSE,AF(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,a=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)i=!0,a=10*a+(o-48),this.bump();else break}var s=AF(r,this.clonePosition());return i?Aq(a*=n)?{val:a,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=AK(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(AY(this.message,e,this.offset())){for(var t=0;t=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&A4(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null},e}();function A9(e){return e>=97&&e<=122||e>=65&&e<=90}function A4(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function A3(e,t){void 0===t&&(t={}),t=Am({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new A5(e,t).parse();if(n.err){var r=SyntaxError(PF[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||function e(t){t.forEach(function(t){if(delete t.location,Ax(t)||AT(t))for(var n in t.options)delete t.options[n].location,e(t.options[n].value);else Ab(t)&&A_(t.style)?delete t.style.location:(Ay(t)||Av(t))&&AS(t.style)?delete t.style.location:Ak(t)&&e(t.children)})}(n.val),n.val}function A8(e,t){var n=t&&t.cache?t.cache:Rr,r=t&&t.serializer?t.serializer:Rt;return(t&&t.strategy?t.strategy:Re)(e,{cache:n,serializer:r})}function A6(e,t,n,r){var i=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),a=t.get(i);return void 0===a&&(a=e.call(this,r),t.set(i,a)),a}function A7(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),a=t.get(i);return void 0===a&&(a=e.apply(this,r),t.set(i,a)),a}function Re(e,t){var n,r,i=1===e.length?A6:A7;return n=t.cache.create(),r=t.serializer,i.bind(this,e,n,r)}var Rt=function(){return JSON.stringify(arguments)};function Rn(){this.cache=Object.create(null)}Rn.prototype.get=function(e){return this.cache[e]},Rn.prototype.set=function(e,t){this.cache[e]=t};var Rr={create:function(){return new Rn}},Ri={variadic:function(e,t){var n,r;return n=t.cache.create(),r=t.serializer,A7.bind(this,e,n,r)},monadic:function(e,t){var n,r;return n=t.cache.create(),r=t.serializer,A6.bind(this,e,n,r)}};(PA=PW||(PW={})).MISSING_VALUE="MISSING_VALUE",PA.INVALID_VALUE="INVALID_VALUE",PA.MISSING_INTL_API="MISSING_INTL_API";var Ra=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.code=n,i.originalMessage=r,i}return Af(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Ro=function(e){function t(t,n,r,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(r).join('", "'),'"'),PW.INVALID_VALUE,i)||this}return Af(t,e),t}(Ra),Rs=function(e){function t(t,n,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),PW.INVALID_VALUE,r)||this}return Af(t,e),t}(Ra),Rl=function(e){function t(t,n){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(n,'"'),PW.MISSING_VALUE,n)||this}return Af(t,e),t}(Ra);function Ru(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}(PR=PZ||(PZ={}))[PR.literal=0]="literal",PR[PR.object=1]="object";var Rc=function(){function e(t,n,r,i){var a,o,s=this;if(void 0===n&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=s.formatToParts(e);if(1===t.length)return t[0].value;var n=t.reduce(function(e,t){return e.length&&t.type===PZ.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return function e(t,n,r,i,a,o,s){if(1===t.length&&AO(t[0]))return[{type:PZ.literal,value:t[0].value}];for(var l=[],u=0;ut.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}(l,["formatters"]));this.ast=e.__parse(t,Am(Am({},u),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw TypeError("A message must be provided as a String or AST.");this.formats=(a=e.formats,r?Object.keys(a).reduce(function(e,t){var n,i;return e[t]=(n=a[t],(i=r[t])?Am(Am(Am({},n||{}),i||{}),Object.keys(n).reduce(function(e,t){return e[t]=Am(Am({},n[t]),i[t]||{}),e},{})):n),e},Am({},a)):a),this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:A8(function(){for(var e,t=[],n=0;n0?t[0]:"string"==typeof e?e:e[0])}},e.__parse=A3,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();let Rd=new WeakMap,Rh=(e,t)=>{let n=Rd.get(e);if(n&&n[t])return n[t];let r={};for(let n of Object.keys(e)){let i=new Rc(e[n],t);r[n]={format:e=>i.format(e)}}return Rd.set(e,{...n,[t]:r}),r};function Rp(e){function t(t){let n=e[t];if(!n)throw Error(`Attempted to retrieve translations for unknown language "${t}"`);return n}return{getLoadedMessages(e,n){let r=t(e);return r.getValue(n||e)||null},getMessages(e,n){let r=t(e);return r.load().then(()=>{let t=r.getValue(n||e);if(!t)throw Error(`Unable to find translations for ${e} after attempting to load. Module may have failed to load or an internal error may have occurred.`);return t})},load(e){let n=t(e);return n.load()}}}let Rf=e=>({getValue:t=>Rh(e,t),load:()=>Promise.resolve()});var Rm=Rp({"en-GB":Rf({description:" ","example.markdown":"This is an example. Feel free to use it as a template.","example.title":"Welcome",markdown:"Markdown",name:"Simple",title:"Title"}),en:Rf({description:" ","example.markdown":"This is an example. Feel free to use it as a template.","example.title":"Welcome",markdown:"Markdown",name:"Simple",title:"Title"}),"en-US":Rf({description:" ","example.markdown":"This is an example. Feel free to use it as a template.","example.title":"Welcome",markdown:"Markdown",name:"Simple",title:"Title"}),de:Rf({description:" ","example.markdown":"This is an example. Feel free to use it as a template.","example.title":"Welcome",markdown:"Markdown",name:"Simple",title:"Title"}),fr:Rf({description:" ","example.markdown":"This is an example. Feel free to use it as a template.","example.title":"Welcome",markdown:"Markdown",name:"Simple",title:"Title"}),es:Rf({description:" ","example.markdown":"This is an example. Feel free to use it as a template.","example.title":"Welcome",markdown:"Markdown",name:"Simple",title:"Title"}),nl:Rf({description:" ","example.markdown":"This is an example. Feel free to use it as a template.","example.title":"Welcome",markdown:"Markdown",name:"Simple",title:"Title"}),pt:Rf({description:" ","example.markdown":"This is an example. Feel free to use it as a template.","example.title":"Welcome",markdown:"Markdown",name:"Simple",title:"Title"}),tr:Rf({description:" ","example.markdown":"This is an example. Feel free to use it as a template.","example.title":"Welcome",markdown:"Markdown",name:"Simple",title:"Title"})}),Rg=w7.merge(wq.object({subtype:wq.literal("simple"),view:wq.object({title:wq.string(),markdown:wq.string()})})),RO=()=>{let{t:e}=Sa(Rm);return{name:e("name"),description:e("description"),example:{subtype:"simple",name:e("name"),description:e("description"),view:{markdown:e("example.markdown"),title:e("example.title")}}}},Rb=({start:e})=>af(kt,{padding:"standard"},e.view.title&&af(kE,null,e.view.title),af(_r,{markdown:e.view.markdown})),Ry=({name:e})=>{let{t}=Sa(Rm);return af(U.Fragment,null,af(k5,{name:`${e}.view.title`,label:t("title"),defaultValue:"",render:kK}),af(k5,{name:`${e}.view.markdown`,label:t("markdown"),defaultValue:"",render:({value:e,onChange:t})=>af(_a,{value:e,variant:"input",onChange:e=>t(e)})}))},Rv=Object.defineProperty,Rx=Object.getOwnPropertySymbols,RT=Object.prototype.hasOwnProperty,Rk=Object.prototype.propertyIsEnumerable,R_=(e,t,n)=>t in e?Rv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,RS=(e,t)=>{for(var n in t||(t={}))RT.call(t,n)&&R_(e,n,t[n]);if(Rx)for(var n of Rx(t))Rk.call(t,n)&&R_(e,n,t[n]);return e},Rw=function(e){return af("svg",RS({className:"icon-asterisk",viewBox:"0 0 24 24"},e),af("circle",{cx:12,cy:12,r:10,className:"primary"}),af("path",{d:"M11 10.62V7a1 1 0 012 0v3.62l3.45-1.12a1 1 0 01.61 1.9l-3.44 1.13 2.13 2.93a1 1 0 01-1.62 1.17L12 13.7l-2.13 2.93a1 1 0 11-1.62-1.17l2.13-2.93-3.44-1.12a1 1 0 11.61-1.9l3.45 1.1z",className:"secondary"}))},RE=function(e){return af("svg",RS({className:"icon-check",viewBox:"0 0 24 24"},e),af("circle",{cx:12,cy:12,r:10,className:"primary"}),af("path",{d:"M10 14.59l6.3-6.3a1 1 0 011.4 1.42l-7 7a1 1 0 01-1.4 0l-3-3a1 1 0 011.4-1.42l2.3 2.3z",className:"secondary"}))},RC=function(e){return af("svg",RS({className:"icon-close",viewBox:"0 0 24 24"},e),af("path",{fillRule:"evenodd",d:"M15.78 14.36a1 1 0 01-1.42 1.42l-2.82-2.83-2.83 2.83a1 1 0 11-1.42-1.42l2.83-2.82L7.3 8.7a1 1 0 011.42-1.42l2.83 2.83 2.82-2.83a1 1 0 011.42 1.42l-2.83 2.83 2.83 2.82z",className:"secondary"}))},RA=function(e){return af("svg",RS({className:"icon-fast-forward",viewBox:"0 0 24 24"},e),af("path",{d:"M1 5a1 1 0 011.5-.86l12 7a1 1 0 010 1.72l-12 7A1 1 0 011 19V5z",className:"secondary"}),af("path",{d:"M9 5a1 1 0 011.5-.86l12 7a1 1 0 010 1.72l-12 7A1 1 0 019 19V5z",className:"primary"}))},RR=function(e){return af("svg",RS({className:"icon-help",viewBox:"0 0 24 24"},e),af("path",{d:"M12 22a10 10 0 110-20 10 10 0 010 20z",className:"primary"}),af("path",{d:"M12 19.5a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm1-5.5a1 1 0 01-2 0v-1.41a1 1 0 01.55-.9L14 10.5c.64-.42 1-.97 1-1.5 0-1.03-1.3-2-3-2-1.35 0-2.49.62-2.87 1.43a1 1 0 01-1.8-.86C8.05 6.01 9.92 5 12 5c2.7 0 5 1.72 5 4 0 1.3-.76 2.46-2.05 3.24L13 13.2v.8z",className:"secondary"}))},RP=function(e){return af("svg",RS({className:"icon-mood-happy",viewBox:"0 0 24 24"},e),af("circle",{cx:12,cy:12,r:10,className:"primary"}),af("path",{d:"M6.8 14h10.4a1 1 0 01.86 1.5 7 7 0 01-12.12 0A1 1 0 016.8 14zm1.7-3a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm7 0a1.5 1.5 0 110-3 1.5 1.5 0 010 3z",className:"secondary"}))},RI=function(e){return af("svg",RS({className:"icon-thumbs-down",viewBox:"0 0 24 24"},e),af("path",{d:"M11 19.2l-2.92-6.8A1 1 0 018 12V4c0-1.1.9-2 2-2h6c1.5 0 3.11 1.06 3.7 2.45l2.22 5.16A1 1 0 0122 10v2a3 3 0 01-3 3h-4v4a3 3 0 01-3 3 1 1 0 01-1-1v-1.8z",className:"primary"}),af("rect",{width:4,height:11,x:2,y:2,className:"secondary",rx:1,transform:"rotate(180 4 7.5)"}))},RN=function(e){return af("svg",RS({className:"icon-thumbs-up",viewBox:"0 0 24 24"},e),af("path",{d:"M13 4.8l2.92 6.8a1 1 0 01.08.4v8a2 2 0 01-2 2H8a4.28 4.28 0 01-3.7-2.45L2.07 14.4A1 1 0 012 14v-2a3 3 0 013-3h4V5a3 3 0 013-3 1 1 0 011 1v1.8z",className:"primary"}),af("rect",{width:4,height:11,x:18,y:11,className:"secondary",rx:1}))},R$=Object.defineProperty,RL=Object.getOwnPropertySymbols,RD=Object.prototype.hasOwnProperty,RQ=Object.prototype.propertyIsEnumerable,RM=(e,t,n)=>t in e?R$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,RF=(e,t)=>{for(var n in t||(t={}))RD.call(t,n)&&RM(e,n,t[n]);if(RL)for(var n of RL(t))RQ.call(t,n)&&RM(e,n,t[n]);return e},RB=e=>af(ki,RF({color:"success",size:"large"},e),af(RN,null)),RU=e=>af(ki,RF({color:"error",size:"large"},e),af(RI,null)),Rz=e=>af(ki,RF({color:"info",size:"large"},e),af(RA,null)),Rj=e=>af(ki,RF({color:"warning",size:"large"},e),af(Rw,null)),RW=e=>af(ki,RF({color:"neutral",size:"large"},e),af(RR,null)),RZ=Object.defineProperty,Rq=Object.getOwnPropertySymbols,RG=Object.prototype.hasOwnProperty,RH=Object.prototype.propertyIsEnumerable,RY=(e,t,n)=>t in e?RZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,RX=(e,t)=>{for(var n in t||(t={}))RG.call(t,n)&&RY(e,n,t[n]);if(Rq)for(var n of Rq(t))RH.call(t,n)&&RY(e,n,t[n]);return e},RV=function(e){return af("svg",RX({viewBox:"0 0 20 20",fill:"currentColor"},e),af("path",{fillRule:"evenodd",d:"M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z",clipRule:"evenodd"}))};function RK(e,t,n){return ai.call(t,"css")?(0,G.jsx)(ap,ad(e,t),n):(0,G.jsx)(e,t,n)}function RJ(e,t,n){return ai.call(t,"css")?(0,G.jsxs)(ap,ad(e,t),n):(0,G.jsxs)(e,t,n)}function R1(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:R8(e)?2:R6(e)?3:0}function R4(e,t){return 2===R9(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function R3(e,t,n){var r=R9(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function R8(e){return PY&&e instanceof Map}function R6(e){return PX&&e instanceof Set}function R7(e){return e.o||e.t}function Pe(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=P5(e);delete t[P1];for(var n=P2(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=Pn),Object.freeze(e),t&&R5(e,function(e,t){return Pt(t,!0)},!0)),e}function Pn(){R1(2)}function Pr(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function Pi(e){var t=P9[e];return t||R1(18,e),t}function Pa(e,t){t&&(Pi("Patches"),e.u=[],e.s=[],e.v=t)}function Po(e){Ps(e),e.p.forEach(Pu),e.p=null}function Ps(e){e===PG&&(PG=e.l)}function Pl(e){return PG={p:[],l:PG,h:e,m:!0,_:0}}function Pu(e){var t=e[P1];0===t.i||1===t.i?t.j():t.g=!0}function Pc(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.O||Pi("ES5").S(t,e,r),r?(n[P1].P&&(Po(t),R1(4)),R2(e)&&(e=Pd(t,e),t.l||Pp(t,e)),t.u&&Pi("Patches").M(n[P1].t,e,t.u,t.s)):e=Pd(t,n,[]),Po(t),t.u&&t.v(t.u,t.s),e!==PK?e:void 0}function Pd(e,t,n){if(Pr(t))return t;var r=t[P1];if(!r)return R5(t,function(i,a){return Ph(e,r,t,i,a,n)},!0),t;if(r.A!==e)return t;if(!r.P)return Pp(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=Pe(r.k):r.o,a=i,o=!1;3===r.i&&(a=new Set(i),i.clear(),o=!0),R5(a,function(t,a){return Ph(e,r,i,t,a,n,o)}),Pp(e,i,!1),n&&e.u&&Pi("Patches").N(r,n,e.u,e.s)}return r.o}function Ph(e,t,n,r,i,a,o){if(R0(i)){var s=Pd(e,i,a&&t&&3!==t.i&&!R4(t.R,r)?a.concat(r):void 0);if(R3(n,r,s),!R0(s))return;e.m=!1}else o&&n.add(i);if(R2(i)&&!Pr(i)){if(!e.h.D&&e._<1)return;Pd(e,i),t&&t.A.l||Pp(e,i)}}function Pp(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&Pt(t,n)}function Pf(e,t){var n=e[P1];return(n?R7(n):e)[t]}function Pm(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Pg(e){e.P||(e.P=!0,e.l&&Pg(e.l))}function PO(e){e.o||(e.o=Pe(e.t))}function Pb(e,t,n){var r,i,a,o,s,l,u,c=R8(t)?Pi("MapSet").F(t,n):R6(t)?Pi("MapSet").T(t,n):e.O?(a=i={i:(r=Array.isArray(t))?1:0,A:n?n.A:PG,P:!1,I:!1,R:{},l:n,t:t,k:null,o:null,j:null,C:!1},o=P4,r&&(a=[i],o=P3),l=(s=Proxy.revocable(a,o)).revoke,u=s.proxy,i.k=u,i.j=l,u):Pi("ES5").J(t,n);return(n?n.A:PG).p.push(c),c}function Py(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Pe(e)}var Pv,Px,PT,Pk,P_,PS,Pw,PE,PC,PA,PR,PP,PI,PN,P$,PL,PD,PQ,PM,PF,PB,PU,Pz,Pj,PW,PZ,Pq,PG,PH="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),PY="undefined"!=typeof Map,PX="undefined"!=typeof Set,PV="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,PK=PH?Symbol.for("immer-nothing"):((Pq={})["immer-nothing"]=!0,Pq),PJ=PH?Symbol.for("immer-draftable"):"__$immer_draftable",P1=PH?Symbol.for("immer-state"):"__$immer_state",P0=""+Object.prototype.constructor,P2="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,P5=Object.getOwnPropertyDescriptors||function(e){var t={};return P2(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},P9={},P4={get:function(e,t){if(t===P1)return e;var n,r,i=R7(e);if(!R4(i,t))return(r=Pm(i,t))?"value"in r?r.value:null===(n=r.get)||void 0===n?void 0:n.call(e.k):void 0;var a=i[t];return e.I||!R2(a)?a:a===Pf(e.t,t)?(PO(e),e.o[t]=Pb(e.A.h,a,e)):a},has:function(e,t){return t in R7(e)},ownKeys:function(e){return Reflect.ownKeys(R7(e))},set:function(e,t,n){var r=Pm(R7(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=Pf(R7(e),t),a=null==i?void 0:i[P1];if(a&&a.t===n)return e.o[t]=n,e.R[t]=!1,!0;if((n===i?0!==n||1/n==1/i:n!=n&&i!=i)&&(void 0!==n||R4(e.t,t)))return!0;PO(e),Pg(e)}return e.o[t]===n&&(void 0!==n||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==Pf(e.t,t)||t in e.t?(e.R[t]=!1,PO(e),Pg(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=R7(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){R1(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){R1(12)}},P3={};R5(P4,function(e,t){P3[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),P3.deleteProperty=function(e,t){return P3.set.call(this,e,t,void 0)},P3.set=function(e,t,n){return P4.set.call(this,e[0],t,n,e[0])};var P8=new(function(){function e(e){var t=this;this.O=PV,this.D=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var i,a=n;return n=e,function(e){var r=this;void 0===e&&(e=a);for(var i=arguments.length,o=Array(i>1?i-1:0),s=1;s1?r-1:0),a=1;a=0;n--){var n,r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var i=Pi("Patches").$;return R0(e)?i(e,t):this.produce(e,function(e){return i(e,t)})},e}()),P6=P8.produce;P8.produceWithPatches.bind(P8),P8.setAutoFreeze.bind(P8),P8.setUseProxies.bind(P8),P8.applyPatches.bind(P8),P8.createDraft.bind(P8),P8.finishDraft.bind(P8);var P7=Object.defineProperty,Ie=Object.defineProperties,It=Object.getOwnPropertyDescriptors,In=Object.getOwnPropertySymbols,Ir=Object.prototype.hasOwnProperty,Ii=Object.prototype.propertyIsEnumerable,Ia=(e,t,n)=>t in e?P7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Io=(e,t)=>{for(var n in t||(t={}))Ir.call(t,n)&&Ia(e,n,t[n]);if(In)for(var n of In(t))Ii.call(t,n)&&Ia(e,n,t[n]);return e},Is=(e,t)=>Ie(e,It(t)),Il=(e,t)=>{var n={};for(var r in e)Ir.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&In)for(var r of In(e))0>t.indexOf(r)&&Ii.call(e,r)&&(n[r]=e[r]);return n},Iu=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),Ic=Rp({"en-GB":Rf({accept:"Accept",answer:"Answer",close:"Close",confidence:"Confidence",correctNudges:"{index, plural, =0 {Nice one!} =1 {Great!} other {Keep it going!}}",end:"End",manualNudges:"{index, plural, other {Your answer will be check manually!}}",next:"Next",previous:"Previous",reasoning:"Reasoning",retry:"Retry",skip:"Skip",start:"Start",unknownNudges:"{index, plural, =0 {Thanks for your answer!} other {Thank you for answering!}}",wrongNudges:"{index, plural, =0 {Maybe next time} =1 {No worries!} other {Every wrong answer is a learning opportunity!}}"}),en:Rf({accept:"Accept",answer:"Answer",close:"Close",confidence:"Confidence",correctNudges:"{index, plural, =0 {Nice one!} =1 {Great!} other {Keep it going!}}",end:"End",manualNudges:"{index, plural, other {Your answer will be check manually!}}",next:"Next",previous:"Previous",reasoning:"Reasoning",retry:"Retry",skip:"Skip",start:"Start",unknownNudges:"{index, plural, =0 {Thanks for your answer!} other {Thank you for answering!}}",wrongNudges:"{index, plural, =0 {Maybe next time} =1 {No worries!} other {Every wrong answer is a learning opportunity!}}"}),"en-US":Rf({accept:"Accept",answer:"Answer",close:"Close",confidence:"Confidence",correctNudges:"{index, plural, =0 {Nice one!} =1 {Great!} other {Keep it going!}}",end:"End",manualNudges:"{index, plural, other {Your answer will be check manually!}}",next:"Next",previous:"Previous",reasoning:"Reasoning",retry:"Retry",skip:"Skip",start:"Start",unknownNudges:"{index, plural, =0 {Thanks for your answer!} other {Thank you for answering!}}",wrongNudges:"{index, plural, =0 {Maybe next time} =1 {No worries!} other {Every wrong answer is a learning opportunity!}}"}),de:Rf({accept:"Akzeptieren",answer:"Antworten",close:"Schlie\xdfen",confidence:"Confidence",correctNudges:"{index, plural, =0 {Sehr gut!} =1 {Super!} other {Weiter so!}}",end:"End",manualNudges:"{index, plural, other {Deine Antwort wird manuell \xfcberpr\xfcft!}}",next:"Weiter",previous:"Zur\xfcck",reasoning:"Begr\xfcndung",retry:"Erneut versuchen",skip:"\xdcberspringen",start:"Start",unknownNudges:"{index, plural, =0 {Danke f\xfcr deine Antwort!} other {Danke!}}",wrongNudges:"{index, plural, =0 {Vielleicht n\xe4chstes Mal} =1 {Keine Sorge!} other {Jede falsche Antwort ist eine Chance was zu lernen!}}"}),fr:Rf({accept:"Accept",answer:"Answer",close:"Close",confidence:"Confidence",correctNudges:"{index, plural, =0 {Nice one!} =1 {Great!} other {Keep it going!}}",end:"End",manualNudges:"{index, plural, other {Your answer will be check manually!}}",next:"Next",previous:"Previous",reasoning:"Reasoning",retry:"Retry",skip:"Skip",start:"Start",unknownNudges:"{index, plural, =0 {Thanks for your answer!} other {Thank you for answering!}}",wrongNudges:"{index, plural, =0 {Maybe next time} =1 {No worries!} other {Every wrong answer is a learning opportunity!}}"}),es:Rf({accept:"Accept",answer:"Answer",close:"Close",confidence:"Confidence",correctNudges:"{index, plural, =0 {Nice one!} =1 {Great!} other {Keep it going!}}",end:"End",manualNudges:"{index, plural, other {Your answer will be check manually!}}",next:"Next",previous:"Previous",reasoning:"Reasoning",retry:"Retry",skip:"Skip",start:"Start",unknownNudges:"{index, plural, =0 {Thanks for your answer!} other {Thank you for answering!}}",wrongNudges:"{index, plural, =0 {Maybe next time} =1 {No worries!} other {Every wrong answer is a learning opportunity!}}"}),nl:Rf({accept:"Accept",answer:"Answer",close:"Close",confidence:"Confidence",correctNudges:"{index, plural, =0 {Nice one!} =1 {Great!} other {Keep it going!}}",end:"End",manualNudges:"{index, plural, other {Your answer will be check manually!}}",next:"Next",previous:"Previous",reasoning:"Reasoning",retry:"Retry",skip:"Skip",start:"Start",unknownNudges:"{index, plural, =0 {Thanks for your answer!} other {Thank you for answering!}}",wrongNudges:"{index, plural, =0 {Maybe next time} =1 {No worries!} other {Every wrong answer is a learning opportunity!}}"}),pt:Rf({accept:"Accept",answer:"Answer",close:"Close",confidence:"Confidence",correctNudges:"{index, plural, =0 {Nice one!} =1 {Great!} other {Keep it going!}}",end:"End",manualNudges:"{index, plural, other {Your answer will be check manually!}}",next:"Next",previous:"Previous",reasoning:"Reasoning",retry:"Retry",skip:"Skip",start:"Start",unknownNudges:"{index, plural, =0 {Thanks for your answer!} other {Thank you for answering!}}",wrongNudges:"{index, plural, =0 {Maybe next time} =1 {No worries!} other {Every wrong answer is a learning opportunity!}}"}),tr:Rf({accept:"Accept",answer:"Answer",close:"Close",confidence:"Confidence",correctNudges:"{index, plural, =0 {Nice one!} =1 {Great!} other {Keep it going!}}",end:"End",manualNudges:"{index, plural, other {Your answer will be check manually!}}",next:"Next",previous:"Previous",reasoning:"Reasoning",retry:"Retry",skip:"Skip",start:"Start",unknownNudges:"{index, plural, =0 {Thanks for your answer!} other {Thank you for answering!}}",wrongNudges:"{index, plural, =0 {Maybe next time} =1 {No worries!} other {Every wrong answer is a learning opportunity!}}"})}),Id=({value:e=0,max:t=1})=>RK(kt,{height:"5px",width:"100%",backgroundColor:"neutral.200",children:RK(kt,{backgroundColor:"primary.800",height:"100%",width:`${e/t*100}%`})}),Ih=({children:e,noHeader:t,position:n="absolute"})=>RK(kt,{css:[ag` display: grid; grid-template-rows: 60px 1fr auto; `,t&&ag` @@ -1631,11 +1631,11 @@ > div { margin: ${e.space.standard}; } - `,children:[RK(Iy,{level:1,checked:1===t,onClick:n(1)}),RK(Iy,{level:2,checked:2===t,onClick:n(2)}),RK(Iy,{level:3,checked:3===t,onClick:n(3)}),RK(Iy,{level:4,checked:4===t,onClick:n(4)}),RK(Iy,{level:5,checked:5===t,onClick:n(5)})]})},Ix=({answer:e})=>({type:"evaluate",scope:"shell",payload:{answer:e}}),IT=({answer:e})=>({type:"answer-change",scope:"shell",payload:{answer:e}}),Ik=({result:e})=>({type:"result-receive",scope:"shell",payload:{result:e}}),I_=()=>({type:"result-empty",scope:"shell",payload:null}),IS=({nudge:e})=>({type:"wrong-result-state",scope:"shell",payload:{nudge:e}}),Iw=({nudge:e})=>({type:"manual-result-state",scope:"shell",payload:{nudge:e}}),IE=({nudge:e})=>({type:"retry-result-state",scope:"shell",payload:{nudge:e}}),IC=({nudge:e})=>({type:"correct-result-state",scope:"shell",payload:{nudge:e}}),IA=({nudge:e})=>({type:"unknown-result-state",scope:"shell",payload:{nudge:e}}),IR=()=>({type:"next",scope:"shell",payload:null}),IP=()=>({type:"next-error",scope:"shell",payload:null}),II=()=>({type:"retry",scope:"shell",payload:null}),IN=()=>({type:"skip",scope:"shell",payload:null}),I$=()=>({type:"skip-error",scope:"shell",payload:null}),IL=()=>({type:"previous",scope:"shell",payload:null}),ID=()=>({type:"previous-error",scope:"shell",payload:null}),IQ=()=>({type:"close",scope:"shell",payload:null}),IM=()=>({type:"close-error",scope:"shell",payload:null}),IF=()=>({type:"interact",scope:"shell",payload:null}),IB=({reasoning:e})=>({type:"reasoning-change",scope:"shell",payload:{reasoning:e}}),IU=({level:e})=>({type:"confidence-levels-change",scope:"shell",payload:{level:e}}),Ij=({x:e,y:t})=>({type:"mouse-click",scope:"shell",payload:{x:e,y:t}}),Iz=({width:e,height:t})=>({type:"resize",scope:"shell",payload:{width:e,height:t}}),IW=()=>P6((e,t)=>{switch(t.type){case"mouse-click":case"resize":break;case"skip":e.state="skip";break;case"skip-error":case"next-error":case"previous-error":case"close-error":case"result-empty":case"interact":e.state="interact";break;case"next":e.state="next";break;case"previous":e.state="previous";break;case"close":e.state="close";break;case"reasoning-change":e.reasoning=t.payload.reasoning;break;case"confidence-levels-change":e.confidence=t.payload.level;break;case"result-receive":e.result=t.payload.result;break;case"evaluate":e.state="evaluate";break;case"retry":e.state="retry",e.result=void 0;break;case"correct-result-state":e.state="correct",e.nudge=t.payload.nudge;break;case"wrong-result-state":e.state="wrong",e.nudge=t.payload.nudge;break;case"unknown-result-state":e.state="unknown",e.nudge=t.payload.nudge;break;case"manual-result-state":e.state="manual",e.nudge=t.payload.nudge;break;case"retry-result-state":e.state="allow-retry",e.nudge=t.payload.nudge;break;case"answer-change":e.state="interact",e.answer=t.payload.answer}return e}),IZ=({mode:e,evaluate:t,task:n,TaskComponent:r,progress:i,header:a,enableConfidence:o,enableReasoning:s,answer:l,result:u,onSkip:c,onClose:d,onNext:h,onRetry:p,onPrevious:f,onAction:m,soundUrls:g,shellRef:O})=>{let{t:b}=Sa(Ic),[y,v]=(0,U.useReducer)(IW(),{state:"interact"}),x=(0,U.useRef)(null),T=y.nudge,k=y.state,_=y.confidence,S=y.reasoning,w=y.answer,E=y.result,C=t=>{"recording"!==e&&"result"!==e&&(m&&"answer-change"!==t.type&&m(t),v(t))};function A(){h&&(C(IR()),h().catch(()=>{C(IP())}))}return(0,U.useEffect)(()=>{l&&v(IT({answer:l}))},[l]),(0,U.useEffect)(()=>{u&&v(Ik({result:u}))},[u]),(0,U.useEffect)(()=>{let e=e=>{C(Ij({x:e.clientX,y:e.clientY}))};return window.addEventListener("mousedown",e),()=>window.removeEventListener("mousedown",e)},[C]),(0,U.useEffect)(()=>{C(Iz({width:window.innerHeight,height:window.innerWidth}))},[]),(0,U.useEffect)(()=>{let e=()=>{C(Iz({width:window.innerHeight,height:window.innerWidth}))};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,U.useImperativeHandle)(O,()=>({dispatch:e=>{"shell"===e.scope?v(e):x.current&&(v(IF()),x.current.dispatch(e))}}),[v]),RJ(Ih,{noHeader:!a,children:[a&&RK(Ip,{progress:i,onPrevious:f?function(){C(IL()),f&&f().catch(()=>{C(ID())})}:void 0,onClose:d?function(){C(IQ()),d&&d().catch(()=>{C(IM())})}:void 0,loadingClose:"close"===k,loadingPrevious:"previous"===k,disabled:"skip"===k||"next"===k||"previous"===k||"close"===k,children:a}),RJ(If,{children:[RK(r,{ref:x,onChange:function(e){C(IT({answer:e}))},onAction:function(e){m&&m(Is(Io({},e),{scope:"task"}))},mode:"interact"===k?"default":"result",task:n,result:E}),s&&"interact"===k&&RJ(kt,{padding:"standard",children:[RK(kE,{id:"reasoning",as:"h2",fontSize:"standard",mb:"standard",children:b("reasoning")}),RK(Se,{"aria-labelledby":"reasoning",value:S,onChange:function(e){C(IB({reasoning:e}))}})]}),o&&"interact"===k&&RJ(kt,{padding:"standard",children:[RK(kE,{id:"confidence",as:"h2",fontSize:"standard",children:b("confidence")}),RK(Iv,{"aria-labelledby":"confidence",value:_,onClick:function(e){C(IU({level:e}))}})]})]}),RJ(Im,{children:["correct"===k&&RJ(kt,{display:"flex",flexDirection:"column",width:"100%",justifyContent:"center",alignItems:"center",children:[RK(kt,{mb:"xxsmall",children:RK(ki,{color:"success",size:"small",children:RK(RN,{})})}),RK(kw,{textColor:"primary.800",mb:"standard",children:T}),h&&RK(kk,{onClick:A,fullWidth:!0,children:b("next")})]}),"wrong"===k&&RJ(kt,{display:"flex",flexDirection:"column",width:"100%",justifyContent:"center",alignItems:"center",children:[RK(kt,{mb:"xxsmall",children:RK(ki,{color:"error",size:"small",children:RK(RI,{})})}),RK(kw,{textColor:"error.800",mb:"standard",children:T}),h&&RK(kk,{onClick:A,fullWidth:!0,children:b("next")})]}),"unknown"===k&&RJ(kt,{display:"flex",flexDirection:"column",width:"100%",justifyContent:"center",alignItems:"center",children:[RK(kt,{mb:"xxsmall",children:RK(ki,{color:"primary",size:"small",children:RK(RP,{})})}),RK(kw,{textColor:"primary.800",mb:"standard",children:T}),h&&RK(kk,{onClick:A,fullWidth:!0,children:b("next")})]}),"manual"===k&&RJ(kt,{display:"flex",flexDirection:"column",width:"100%",justifyContent:"center",alignItems:"center",children:[RK(kt,{mb:"xxsmall",children:RK(ki,{color:"warning",size:"small",children:RK(Rw,{})})}),RK(kw,{textColor:"warning.800",mb:"standard",children:T}),h&&RK(kk,{onClick:A,fullWidth:!0,children:b("next")})]}),("allow-retry"===k||"retry"===k)&&RJ(kt,{display:"flex",flexDirection:"column",width:"100%",justifyContent:"center",alignItems:"center",children:[RK(kt,{mb:"xxsmall",children:RK(ki,{color:"error",size:"small",children:RK(RI,{})})}),RK(kw,{textColor:"error.800",mb:"standard",children:T}),RJ(kt,{display:"flex",width:"100%",flexDirection:"row",children:[p&&RK(kt,{flex:"2",mr:"standard",children:RK(kk,{disabled:"retry"===k,loading:"retry"===k,tone:"primary",onClick:function(){p&&(C(II()),p().then(()=>{C(IF())}))},fullWidth:!0,children:b("retry")})}),c&&RK(kt,{flex:"1",children:h&&RK(kk,{disabled:"retry"===k,tone:"accent",onClick:A,fullWidth:!0,children:b("next")})})]})]}),"next"===k&&RK(kk,{disabled:!0,loading:!0,fullWidth:!0,children:b("next")}),("interact"===k||"evaluate"===k||"skip"===k||"close"===k||"previous"===k)&&RJ(U.Fragment,{children:[RK(kt,{flex:"2",mr:"standard",children:RK(kk,{css:ag` + `,children:[RK(Iy,{level:1,checked:1===t,onClick:n(1)}),RK(Iy,{level:2,checked:2===t,onClick:n(2)}),RK(Iy,{level:3,checked:3===t,onClick:n(3)}),RK(Iy,{level:4,checked:4===t,onClick:n(4)}),RK(Iy,{level:5,checked:5===t,onClick:n(5)})]})},Ix=({answer:e})=>({type:"evaluate",scope:"shell",payload:{answer:e}}),IT=({answer:e})=>({type:"answer-change",scope:"shell",payload:{answer:e}}),Ik=({result:e})=>({type:"result-receive",scope:"shell",payload:{result:e}}),I_=()=>({type:"result-empty",scope:"shell",payload:null}),IS=({nudge:e})=>({type:"wrong-result-state",scope:"shell",payload:{nudge:e}}),Iw=({nudge:e})=>({type:"manual-result-state",scope:"shell",payload:{nudge:e}}),IE=({nudge:e})=>({type:"retry-result-state",scope:"shell",payload:{nudge:e}}),IC=({nudge:e})=>({type:"correct-result-state",scope:"shell",payload:{nudge:e}}),IA=({nudge:e})=>({type:"unknown-result-state",scope:"shell",payload:{nudge:e}}),IR=()=>({type:"next",scope:"shell",payload:null}),IP=()=>({type:"next-error",scope:"shell",payload:null}),II=()=>({type:"retry",scope:"shell",payload:null}),IN=()=>({type:"skip",scope:"shell",payload:null}),I$=()=>({type:"skip-error",scope:"shell",payload:null}),IL=()=>({type:"previous",scope:"shell",payload:null}),ID=()=>({type:"previous-error",scope:"shell",payload:null}),IQ=()=>({type:"close",scope:"shell",payload:null}),IM=()=>({type:"close-error",scope:"shell",payload:null}),IF=()=>({type:"interact",scope:"shell",payload:null}),IB=({reasoning:e})=>({type:"reasoning-change",scope:"shell",payload:{reasoning:e}}),IU=({level:e})=>({type:"confidence-levels-change",scope:"shell",payload:{level:e}}),Iz=({x:e,y:t})=>({type:"mouse-click",scope:"shell",payload:{x:e,y:t}}),Ij=({width:e,height:t})=>({type:"resize",scope:"shell",payload:{width:e,height:t}}),IW=()=>P6((e,t)=>{switch(t.type){case"mouse-click":case"resize":break;case"skip":e.state="skip";break;case"skip-error":case"next-error":case"previous-error":case"close-error":case"result-empty":case"interact":e.state="interact";break;case"next":e.state="next";break;case"previous":e.state="previous";break;case"close":e.state="close";break;case"reasoning-change":e.reasoning=t.payload.reasoning;break;case"confidence-levels-change":e.confidence=t.payload.level;break;case"result-receive":e.result=t.payload.result;break;case"evaluate":e.state="evaluate";break;case"retry":e.state="retry",e.result=void 0;break;case"correct-result-state":e.state="correct",e.nudge=t.payload.nudge;break;case"wrong-result-state":e.state="wrong",e.nudge=t.payload.nudge;break;case"unknown-result-state":e.state="unknown",e.nudge=t.payload.nudge;break;case"manual-result-state":e.state="manual",e.nudge=t.payload.nudge;break;case"retry-result-state":e.state="allow-retry",e.nudge=t.payload.nudge;break;case"answer-change":e.state="interact",e.answer=t.payload.answer}return e}),IZ=({mode:e,evaluate:t,task:n,TaskComponent:r,progress:i,header:a,enableConfidence:o,enableReasoning:s,answer:l,result:u,onSkip:c,onClose:d,onNext:h,onRetry:p,onPrevious:f,onAction:m,soundUrls:g,shellRef:O})=>{let{t:b}=Sa(Ic),[y,v]=(0,U.useReducer)(IW(),{state:"interact"}),x=(0,U.useRef)(null),T=y.nudge,k=y.state,_=y.confidence,S=y.reasoning,w=y.answer,E=y.result,C=t=>{"recording"!==e&&"result"!==e&&(m&&"answer-change"!==t.type&&m(t),v(t))};function A(){h&&(C(IR()),h().catch(()=>{C(IP())}))}return(0,U.useEffect)(()=>{l&&v(IT({answer:l}))},[l]),(0,U.useEffect)(()=>{u&&v(Ik({result:u}))},[u]),(0,U.useEffect)(()=>{let e=e=>{C(Iz({x:e.clientX,y:e.clientY}))};return window.addEventListener("mousedown",e),()=>window.removeEventListener("mousedown",e)},[C]),(0,U.useEffect)(()=>{C(Ij({width:window.innerHeight,height:window.innerWidth}))},[]),(0,U.useEffect)(()=>{let e=()=>{C(Ij({width:window.innerHeight,height:window.innerWidth}))};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,U.useImperativeHandle)(O,()=>({dispatch:e=>{"shell"===e.scope?v(e):x.current&&(v(IF()),x.current.dispatch(e))}}),[v]),RJ(Ih,{noHeader:!a,children:[a&&RK(Ip,{progress:i,onPrevious:f?function(){C(IL()),f&&f().catch(()=>{C(ID())})}:void 0,onClose:d?function(){C(IQ()),d&&d().catch(()=>{C(IM())})}:void 0,loadingClose:"close"===k,loadingPrevious:"previous"===k,disabled:"skip"===k||"next"===k||"previous"===k||"close"===k,children:a}),RJ(If,{children:[RK(r,{ref:x,onChange:function(e){C(IT({answer:e}))},onAction:function(e){m&&m(Is(Io({},e),{scope:"task"}))},mode:"interact"===k?"default":"result",task:n,result:E}),s&&"interact"===k&&RJ(kt,{padding:"standard",children:[RK(kE,{id:"reasoning",as:"h2",fontSize:"standard",mb:"standard",children:b("reasoning")}),RK(Se,{"aria-labelledby":"reasoning",value:S,onChange:function(e){C(IB({reasoning:e}))}})]}),o&&"interact"===k&&RJ(kt,{padding:"standard",children:[RK(kE,{id:"confidence",as:"h2",fontSize:"standard",children:b("confidence")}),RK(Iv,{"aria-labelledby":"confidence",value:_,onClick:function(e){C(IU({level:e}))}})]})]}),RJ(Im,{children:["correct"===k&&RJ(kt,{display:"flex",flexDirection:"column",width:"100%",justifyContent:"center",alignItems:"center",children:[RK(kt,{mb:"xxsmall",children:RK(ki,{color:"success",size:"small",children:RK(RN,{})})}),RK(kw,{textColor:"primary.800",mb:"standard",children:T}),h&&RK(kk,{onClick:A,fullWidth:!0,children:b("next")})]}),"wrong"===k&&RJ(kt,{display:"flex",flexDirection:"column",width:"100%",justifyContent:"center",alignItems:"center",children:[RK(kt,{mb:"xxsmall",children:RK(ki,{color:"error",size:"small",children:RK(RI,{})})}),RK(kw,{textColor:"error.800",mb:"standard",children:T}),h&&RK(kk,{onClick:A,fullWidth:!0,children:b("next")})]}),"unknown"===k&&RJ(kt,{display:"flex",flexDirection:"column",width:"100%",justifyContent:"center",alignItems:"center",children:[RK(kt,{mb:"xxsmall",children:RK(ki,{color:"primary",size:"small",children:RK(RP,{})})}),RK(kw,{textColor:"primary.800",mb:"standard",children:T}),h&&RK(kk,{onClick:A,fullWidth:!0,children:b("next")})]}),"manual"===k&&RJ(kt,{display:"flex",flexDirection:"column",width:"100%",justifyContent:"center",alignItems:"center",children:[RK(kt,{mb:"xxsmall",children:RK(ki,{color:"warning",size:"small",children:RK(Rw,{})})}),RK(kw,{textColor:"warning.800",mb:"standard",children:T}),h&&RK(kk,{onClick:A,fullWidth:!0,children:b("next")})]}),("allow-retry"===k||"retry"===k)&&RJ(kt,{display:"flex",flexDirection:"column",width:"100%",justifyContent:"center",alignItems:"center",children:[RK(kt,{mb:"xxsmall",children:RK(ki,{color:"error",size:"small",children:RK(RI,{})})}),RK(kw,{textColor:"error.800",mb:"standard",children:T}),RJ(kt,{display:"flex",width:"100%",flexDirection:"row",children:[p&&RK(kt,{flex:"2",mr:"standard",children:RK(kk,{disabled:"retry"===k,loading:"retry"===k,tone:"primary",onClick:function(){p&&(C(II()),p().then(()=>{C(IF())}))},fullWidth:!0,children:b("retry")})}),c&&RK(kt,{flex:"1",children:h&&RK(kk,{disabled:"retry"===k,tone:"accent",onClick:A,fullWidth:!0,children:b("next")})})]})]}),"next"===k&&RK(kk,{disabled:!0,loading:!0,fullWidth:!0,children:b("next")}),("interact"===k||"evaluate"===k||"skip"===k||"close"===k||"previous"===k)&&RJ(U.Fragment,{children:[RK(kt,{flex:"2",mr:"standard",children:RK(kk,{css:ag` height: 100%; `,tone:"primary",disabled:"evaluate"===k||"skip"===k||"close"===k||"previous"===k,loading:"evaluate"===k,onClick:function(){return Iu(this,null,function*(){C(Ix({answer:w}));let e=null;if(t&&(e=yield t(w)),e){if("correct"===e.state){g&&new Audio(g.correct).play().catch(()=>{});let e=b("correctNudges",{index:Math.floor(2*Math.random())});C(IC({nudge:e}))}else if("wrong"===e.state&&e.allowRetry){g&&new Audio(g.wrong).play().catch(()=>{});let e=b("wrongNudges",{index:Math.floor(3*Math.random())});C(IE({nudge:e}))}else if("wrong"===e.state){g&&new Audio(g.wrong).play().catch(()=>{});let e=b("wrongNudges",{index:Math.floor(3*Math.random())});C(IS({nudge:e}))}else if("unknown"===e.state){g&&new Audio(g.unknown).play().catch(()=>{});let e=b("unknownNudges",{index:Math.floor(2*Math.random())});C(IA({nudge:e}))}else if("manual"===e.state){g&&new Audio(g.manual).play().catch(()=>{});let e=b("manualNudges",{index:Math.floor(2*Math.random())});C(Iw({nudge:e}))}C(Ik({result:e}))}else C(I_())})},fullWidth:!0,children:b("answer")})}),c&&RK(kt,{flex:"1",children:RK(kk,{css:ag` height: 100%; - `,disabled:"evaluate"===k||"skip"===k||"close"===k||"previous"===k,loading:"skip"===k,tone:"accent",onClick:function(){c&&(C(IN()),c().catch(()=>{C(I$())}))},fullWidth:!0,children:b("skip")})})]})]})]})},Iq=({header:e,title:t,TitleComponent:n,onNext:r,onClose:i,onPrevious:a,progress:o})=>{let[s,l]=(0,U.useState)("default"),{t:u}=Sa(Ic);return RJ(Ih,{noHeader:!e,children:[e&&RK(Ip,{loadingClose:"close"===s,loadingPrevious:"previous"===s,onClose:i?()=>{i&&(l("close"),i().catch(()=>{l("default")}))}:void 0,onPrevious:a?()=>{a&&(l("previous"),a().catch(()=>{l("default")}))}:void 0,progress:o,disabled:"default"!==s,children:e}),RK(If,{children:RK(n,{title:t})}),RK(Im,{children:r&&RK(kk,{fullWidth:!0,onClick:()=>{r&&(l("next"),r().catch(()=>{l("default")}))},disabled:"default"!==s,loading:"next"===s,children:u("next")})})]})};(h=y||(y={})).assertEqual=e=>e,h.assertIs=function(e){},h.assertNever=function(e){throw Error()},h.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},h.getValidEnumValues=e=>{let t=h.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),n={};for(let r of t)n[r]=e[r];return h.objectValues(n)},h.objectValues=e=>h.objectKeys(e).map(function(t){return e[t]}),h.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},h.find=(e,t)=>{for(let n of e)if(t(n))return n},h.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,h.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},h.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t;let IG=y.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),IH=e=>{let t=typeof e;switch(t){case"undefined":return IG.undefined;case"string":return IG.string;case"number":return isNaN(e)?IG.nan:IG.number;case"boolean":return IG.boolean;case"function":return IG.function;case"bigint":return IG.bigint;case"object":if(Array.isArray(e))return IG.array;if(null===e)return IG.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return IG.promise;if("undefined"!=typeof Map&&e instanceof Map)return IG.map;if("undefined"!=typeof Set&&e instanceof Set)return IG.set;if("undefined"!=typeof Date&&e instanceof Date)return IG.date;return IG.object;default:return IG.unknown}},IY=y.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of"]);class IX extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(r);else if("invalid_return_type"===i.code)r(i.returnTypeError);else if("invalid_arguments"===i.code)r(i.argumentsError);else if(0===i.path.length)n._errors.push(t(i));else{let e=n,r=0;for(;re.message){let t={},n=[];for(let r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}IX.create=e=>{let t=new IX(e);return t};let IV=(e,t)=>{let n;switch(e.code){case IY.invalid_type:n=e.received===IG.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case IY.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,y.jsonStringifyReplacer)}`;break;case IY.unrecognized_keys:n=`Unrecognized key(s) in object: ${y.joinValues(e.keys,", ")}`;break;case IY.invalid_union:n="Invalid input";break;case IY.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${y.joinValues(e.options)}`;break;case IY.invalid_enum_value:n=`Invalid enum value. Expected ${y.joinValues(e.options)}, received '${e.received}'`;break;case IY.invalid_arguments:n="Invalid function arguments";break;case IY.invalid_return_type:n="Invalid function return type";break;case IY.invalid_date:n="Invalid date";break;case IY.invalid_string:"object"==typeof e.validation?"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:y.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case IY.too_small:n="array"===e.type?`Array must contain ${e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be greater than ${e.inclusive?"or equal to ":""}${e.minimum}`:"date"===e.type?`Date must be greater than ${e.inclusive?"or equal to ":""}${new Date(e.minimum)}`:"Invalid input";break;case IY.too_big:n="array"===e.type?`Array must contain ${e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be less than ${e.inclusive?"or equal to ":""}${e.maximum}`:"date"===e.type?`Date must be smaller than ${e.inclusive?"or equal to ":""}${new Date(e.maximum)}`:"Invalid input";break;case IY.custom:n="Invalid input";break;case IY.invalid_intersection_types:n="Intersection results could not be merged";break;case IY.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;default:n=t.defaultError,y.assertNever(e)}return{message:n}},IK=IV,IJ=e=>{let{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],o={...i,path:a},s="",l=r.filter(e=>!!e).slice().reverse();for(let e of l)s=e(o,{data:t,defaultError:s}).message;return{...i,path:a,message:i.message||s}};function I1(e,t){let n=IJ({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,IK,IV].filter(e=>!!e)});e.common.issues.push(n)}class I0{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let n=[];for(let r of t){if("aborted"===r.status)return I2;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){let n=[];for(let e of t)n.push({key:await e.key,value:await e.value});return I0.mergeObjectSync(e,n)}static mergeObjectSync(e,t){let n={};for(let r of t){let{key:t,value:i}=r;if("aborted"===t.status||"aborted"===i.status)return I2;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),(void 0!==i.value||r.alwaysSet)&&(n[t.value]=i.value)}return{status:e.value,value:n}}}let I2=Object.freeze({status:"aborted"}),I5=e=>({status:"valid",value:e}),I9=e=>"aborted"===e.status,I4=e=>"dirty"===e.status,I3=e=>"valid"===e.status,I8=e=>e instanceof Promise;(p=v||(v={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},p.toString=e=>"string"==typeof e?e:null==e?void 0:e.message;class I6{constructor(e,t,n,r){this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._path.concat(this._key)}}let I7=(e,t)=>{if(I3(t))return{success:!0,data:t.value};{if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");let t=new IX(e.common.issues);return{success:!1,error:t}}};function Ne(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(e,t)=>"invalid_type"!==e.code?{message:t.defaultError}:void 0===t.data?{message:null!=r?r:t.defaultError}:{message:null!=n?n:t.defaultError},description:i}}class Nt{constructor(e){this.spa=this.safeParseAsync,this.superRefine=this._refinement,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.default=this.default.bind(this),this.describe=this.describe.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return IH(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:IH(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new I0,ctx:{common:e.parent.common,data:e.data,parsedType:IH(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(I8(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;let r={common:{issues:[],async:null!==(n=null==t?void 0:t.async)&&void 0!==n&&n,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:IH(e)},i=this._parseSync({data:e,path:r.path,parent:r});return I7(r,i)}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:IH(e)},r=this._parse({data:e,path:[],parent:n}),i=await (I8(r)?r:Promise.resolve(r));return I7(n,i)}refine(e,t){let n=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,r)=>{let i=e(t),a=()=>r.addIssue({code:IY.custom,...n(t)});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(e=>!!e||(a(),!1)):!!i||(a(),!1)})}refinement(e,t){return this._refinement((n,r)=>!!e(n)||(r.addIssue("function"==typeof t?t(n,r):t),!1))}_refinement(e){return new NN({schema:this,typeName:T.ZodEffects,effect:{type:"refinement",refinement:e}})}optional(){return N$.create(this)}nullable(){return NL.create(this)}nullish(){return this.optional().nullable()}array(){return Ng.create(this)}promise(){return NI.create(this)}or(e){return Ny.create([this,e])}and(e){return Nx.create(this,e)}transform(e){return new NN({schema:this,typeName:T.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new ND({innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:T.ZodDefault})}brand(){return new NF({typeName:T.ZodBranded,type:this,...Ne(void 0)})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let Nn=/^c[^\s-]{8,}$/i,Nr=/^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i,Ni=/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i;class Na extends Nt{constructor(){super(...arguments),this._regex=(e,t,n)=>this.refinement(t=>e.test(t),{validation:t,code:IY.invalid_string,...v.errToObj(n)}),this.nonempty=e=>this.min(1,v.errToObj(e)),this.trim=()=>new Na({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}_parse(e){let t;let n=this._getType(e);if(n!==IG.string){let t=this._getOrReturnCtx(e);return I1(t,{code:IY.invalid_type,expected:IG.string,received:t.parsedType}),I2}let r=new I0;for(let n of this._def.checks)if("min"===n.kind)e.data.lengthn.value&&(I1(t=this._getOrReturnCtx(e,t),{code:IY.too_big,maximum:n.value,type:"string",inclusive:!0,message:n.message}),r.dirty());else if("email"===n.kind)Ni.test(e.data)||(I1(t=this._getOrReturnCtx(e,t),{validation:"email",code:IY.invalid_string,message:n.message}),r.dirty());else if("uuid"===n.kind)Nr.test(e.data)||(I1(t=this._getOrReturnCtx(e,t),{validation:"uuid",code:IY.invalid_string,message:n.message}),r.dirty());else if("cuid"===n.kind)Nn.test(e.data)||(I1(t=this._getOrReturnCtx(e,t),{validation:"cuid",code:IY.invalid_string,message:n.message}),r.dirty());else if("url"===n.kind)try{new URL(e.data)}catch(i){I1(t=this._getOrReturnCtx(e,t),{validation:"url",code:IY.invalid_string,message:n.message}),r.dirty()}else if("regex"===n.kind){n.regex.lastIndex=0;let i=n.regex.test(e.data);i||(I1(t=this._getOrReturnCtx(e,t),{validation:"regex",code:IY.invalid_string,message:n.message}),r.dirty())}else"trim"===n.kind?e.data=e.data.trim():"startsWith"===n.kind?e.data.startsWith(n.value)||(I1(t=this._getOrReturnCtx(e,t),{code:IY.invalid_string,validation:{startsWith:n.value},message:n.message}),r.dirty()):"endsWith"===n.kind?e.data.endsWith(n.value)||(I1(t=this._getOrReturnCtx(e,t),{code:IY.invalid_string,validation:{endsWith:n.value},message:n.message}),r.dirty()):y.assertNever(n);return{status:r.value,value:e.data}}_addCheck(e){return new Na({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...v.errToObj(e)})}url(e){return this._addCheck({kind:"url",...v.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...v.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...v.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...v.errToObj(t)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...v.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...v.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...v.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...v.errToObj(t)})}length(e,t){return this.min(e,t).max(e,t)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.valuenew Na({checks:[],typeName:T.ZodString,...Ne(e)});class No extends Nt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;let n=this._getType(e);if(n!==IG.number){let t=this._getOrReturnCtx(e);return I1(t,{code:IY.invalid_type,expected:IG.number,received:t.parsedType}),I2}let r=new I0;for(let n of this._def.checks)if("int"===n.kind)y.isInteger(e.data)||(I1(t=this._getOrReturnCtx(e,t),{code:IY.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty());else if("min"===n.kind){let i=n.inclusive?e.datan.value:e.data>=n.value;i&&(I1(t=this._getOrReturnCtx(e,t),{code:IY.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,message:n.message}),r.dirty())}else"multipleOf"===n.kind?0!==function(e,t){let n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,a=parseInt(e.toFixed(i).replace(".","")),o=parseInt(t.toFixed(i).replace(".",""));return a%o/Math.pow(10,i)}(e.data,n.value)&&(I1(t=this._getOrReturnCtx(e,t),{code:IY.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):y.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,v.toString(t))}gt(e,t){return this.setLimit("min",e,!1,v.toString(t))}lte(e,t){return this.setLimit("max",e,!0,v.toString(t))}lt(e,t){return this.setLimit("max",e,!1,v.toString(t))}setLimit(e,t,n,r){return new No({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:v.toString(r)}]})}_addCheck(e){return new No({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:v.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:v.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:v.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:v.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:v.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:v.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value"int"===e.kind)}}No.create=e=>new No({checks:[],typeName:T.ZodNumber,...Ne(e)});class Ns extends Nt{_parse(e){let t=this._getType(e);if(t!==IG.bigint){let t=this._getOrReturnCtx(e);return I1(t,{code:IY.invalid_type,expected:IG.bigint,received:t.parsedType}),I2}return I5(e.data)}}Ns.create=e=>new Ns({typeName:T.ZodBigInt,...Ne(e)});class Nl extends Nt{_parse(e){let t=this._getType(e);if(t!==IG.boolean){let t=this._getOrReturnCtx(e);return I1(t,{code:IY.invalid_type,expected:IG.boolean,received:t.parsedType}),I2}return I5(e.data)}}Nl.create=e=>new Nl({typeName:T.ZodBoolean,...Ne(e)});class Nu extends Nt{_parse(e){let t;let n=this._getType(e);if(n!==IG.date){let t=this._getOrReturnCtx(e);return I1(t,{code:IY.invalid_type,expected:IG.date,received:t.parsedType}),I2}if(isNaN(e.data.getTime())){let t=this._getOrReturnCtx(e);return I1(t,{code:IY.invalid_date}),I2}let r=new I0;for(let n of this._def.checks)"min"===n.kind?e.data.getTime()n.value&&(I1(t=this._getOrReturnCtx(e,t),{code:IY.too_big,message:n.message,inclusive:!0,maximum:n.value,type:"date"}),r.dirty()):y.assertNever(n);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Nu({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:v.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:v.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.valuenew Nu({checks:[],typeName:T.ZodDate,...Ne(e)});class Nc extends Nt{_parse(e){let t=this._getType(e);if(t!==IG.undefined){let t=this._getOrReturnCtx(e);return I1(t,{code:IY.invalid_type,expected:IG.undefined,received:t.parsedType}),I2}return I5(e.data)}}Nc.create=e=>new Nc({typeName:T.ZodUndefined,...Ne(e)});class Nd extends Nt{_parse(e){let t=this._getType(e);if(t!==IG.null){let t=this._getOrReturnCtx(e);return I1(t,{code:IY.invalid_type,expected:IG.null,received:t.parsedType}),I2}return I5(e.data)}}Nd.create=e=>new Nd({typeName:T.ZodNull,...Ne(e)});class Nh extends Nt{constructor(){super(...arguments),this._any=!0}_parse(e){return I5(e.data)}}Nh.create=e=>new Nh({typeName:T.ZodAny,...Ne(e)});class Np extends Nt{constructor(){super(...arguments),this._unknown=!0}_parse(e){return I5(e.data)}}Np.create=e=>new Np({typeName:T.ZodUnknown,...Ne(e)});class Nf extends Nt{_parse(e){let t=this._getOrReturnCtx(e);return I1(t,{code:IY.invalid_type,expected:IG.never,received:t.parsedType}),I2}}Nf.create=e=>new Nf({typeName:T.ZodNever,...Ne(e)});class Nm extends Nt{_parse(e){let t=this._getType(e);if(t!==IG.undefined){let t=this._getOrReturnCtx(e);return I1(t,{code:IY.invalid_type,expected:IG.void,received:t.parsedType}),I2}return I5(e.data)}}Nm.create=e=>new Nm({typeName:T.ZodVoid,...Ne(e)});class Ng extends Nt{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==IG.array)return I1(t,{code:IY.invalid_type,expected:IG.array,received:t.parsedType}),I2;if(null!==r.minLength&&t.data.lengthr.maxLength.value&&(I1(t,{code:IY.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all(t.data.map((e,n)=>r.type._parseAsync(new I6(t,e,t.path,n)))).then(e=>I0.mergeArray(n,e));let i=t.data.map((e,n)=>r.type._parseSync(new I6(t,e,t.path,n)));return I0.mergeArray(n,i)}get element(){return this._def.type}min(e,t){return new Ng({...this._def,minLength:{value:e,message:v.toString(t)}})}max(e,t){return new Ng({...this._def,maxLength:{value:e,message:v.toString(t)}})}length(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}Ng.create=(e,t)=>new Ng({type:e,minLength:null,maxLength:null,typeName:T.ZodArray,...Ne(t)}),(x||(x={})).mergeShapes=(e,t)=>({...e,...t});let NO=e=>t=>new Nb({...e,shape:()=>({...e.shape(),...t})});class Nb extends Nt{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=NO(this._def),this.extend=NO(this._def)}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=y.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){let t=this._getType(e);if(t!==IG.object){let t=this._getOrReturnCtx(e);return I1(t,{code:IY.invalid_type,expected:IG.object,received:t.parsedType}),I2}let{status:n,ctx:r}=this._processInputParams(e),{shape:i,keys:a}=this._getCached(),o=[];for(let e in r.data)a.includes(e)||o.push(e);let s=[];for(let e of a){let t=i[e],n=r.data[e];s.push({key:{status:"valid",value:e},value:t._parse(new I6(r,n,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof Nf){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of o)s.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)o.length>0&&(I1(r,{code:IY.unrecognized_keys,keys:o}),n.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of o){let n=r.data[t];s.push({key:{status:"valid",value:t},value:e._parse(new I6(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of s){let n=await t.key;e.push({key:n,value:await t.value,alwaysSet:t.alwaysSet})}return e}).then(e=>I0.mergeObjectSync(n,e)):I0.mergeObjectSync(n,s)}get shape(){return this._def.shape()}strict(e){return v.errToObj,new Nb({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var r,i,a,o;let s=null!==(a=null===(i=(r=this._def).errorMap)||void 0===i?void 0:i.call(r,t,n).message)&&void 0!==a?a:n.defaultError;return"unrecognized_keys"===t.code?{message:null!==(o=v.errToObj(e).message)&&void 0!==o?o:s}:{message:s}}}:{}})}strip(){return new Nb({...this._def,unknownKeys:"strip"})}passthrough(){return new Nb({...this._def,unknownKeys:"passthrough"})}setKey(e,t){return this.augment({[e]:t})}merge(e){let t=new Nb({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>x.mergeShapes(this._def.shape(),e._def.shape()),typeName:T.ZodObject});return t}catchall(e){return new Nb({...this._def,catchall:e})}pick(e){let t={};return y.objectKeys(e).map(e=>{this.shape[e]&&(t[e]=this.shape[e])}),new Nb({...this._def,shape:()=>t})}omit(e){let t={};return y.objectKeys(this.shape).map(n=>{-1===y.objectKeys(e).indexOf(n)&&(t[n]=this.shape[n])}),new Nb({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof Nb){let n={};for(let r in t.shape){let i=t.shape[r];n[r]=N$.create(e(i))}return new Nb({...t._def,shape:()=>n})}return t instanceof Ng?Ng.create(e(t.element)):t instanceof N$?N$.create(e(t.unwrap())):t instanceof NL?NL.create(e(t.unwrap())):t instanceof NT?NT.create(t.items.map(t=>e(t))):t}(this)}partial(e){let t={};if(e)y.objectKeys(this.shape).map(n=>{-1===y.objectKeys(e).indexOf(n)?t[n]=this.shape[n]:t[n]=this.shape[n].optional()});else for(let e in this.shape){let n=this.shape[e];t[e]=n.optional()}return new Nb({...this._def,shape:()=>t})}required(){let e={};for(let t in this.shape){let n=this.shape[t],r=n;for(;r instanceof N$;)r=r._def.innerType;e[t]=r}return new Nb({...this._def,shape:()=>e})}keyof(){return NA(y.objectKeys(this.shape))}}Nb.create=(e,t)=>new Nb({shape:()=>e,unknownKeys:"strip",catchall:Nf.create(),typeName:T.ZodObject,...Ne(t)}),Nb.strictCreate=(e,t)=>new Nb({shape:()=>e,unknownKeys:"strict",catchall:Nf.create(),typeName:T.ZodObject,...Ne(t)}),Nb.lazycreate=(e,t)=>new Nb({shape:e,unknownKeys:"strip",catchall:Nf.create(),typeName:T.ZodObject,...Ne(t)});class Ny extends Nt{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map(async e=>{let n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let n of e)if("dirty"===n.result.status)return t.common.issues.push(...n.ctx.common.issues),n.result;let n=e.map(e=>new IX(e.ctx.common.issues));return I1(t,{code:IY.invalid_union,unionErrors:n}),I2});{let e;let r=[];for(let i of n){let n={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:n});if("valid"===a.status)return a;"dirty"!==a.status||e||(e={result:a,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=r.map(e=>new IX(e));return I1(t,{code:IY.invalid_union,unionErrors:i}),I2}}get options(){return this._def.options}}Ny.create=(e,t)=>new Ny({options:e,typeName:T.ZodUnion,...Ne(t)});class Nv extends Nt{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==IG.object)return I1(t,{code:IY.invalid_type,expected:IG.object,received:t.parsedType}),I2;let n=this.discriminator,r=t.data[n],i=this.options.get(r);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(I1(t,{code:IY.invalid_union_discriminator,options:this.validDiscriminatorValues,path:[n]}),I2)}get discriminator(){return this._def.discriminator}get validDiscriminatorValues(){return Array.from(this.options.keys())}get options(){return this._def.options}static create(e,t,n){let r=new Map;try{t.forEach(t=>{let n=t.shape[e].value;r.set(n,t)})}catch(e){throw Error("The discriminator value could not be extracted from all the provided schemas")}if(r.size!==t.length)throw Error("Some of the discriminator values are not unique");return new Nv({typeName:T.ZodDiscriminatedUnion,discriminator:e,options:r,...Ne(n)})}}class Nx extends Nt{_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(I9(e)||I9(r))return I2;let i=function e(t,n){let r=IH(t),i=IH(n);if(t===n)return{valid:!0,data:t};if(r===IG.object&&i===IG.object){let r=y.objectKeys(n),i=y.objectKeys(t).filter(e=>-1!==r.indexOf(e)),a={...t,...n};for(let r of i){let i=e(t[r],n[r]);if(!i.valid)return{valid:!1};a[r]=i.data}return{valid:!0,data:a}}if(r===IG.array&&i===IG.array){if(t.length!==n.length)return{valid:!1};let r=[];for(let i=0;ir(e,t)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}Nx.create=(e,t,n)=>new Nx({left:e,right:t,typeName:T.ZodIntersection,...Ne(n)});class NT extends Nt{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==IG.array)return I1(n,{code:IY.invalid_type,expected:IG.array,received:n.parsedType}),I2;if(n.data.lengththis._def.items.length&&(I1(n,{code:IY.too_big,maximum:this._def.items.length,inclusive:!0,type:"array"}),t.dirty());let i=n.data.map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new I6(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(i).then(e=>I0.mergeArray(t,e)):I0.mergeArray(t,i)}get items(){return this._def.items}rest(e){return new NT({...this._def,rest:e})}}NT.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new NT({items:e,typeName:T.ZodTuple,rest:null,...Ne(t)})};class Nk extends Nt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==IG.object)return I1(n,{code:IY.invalid_type,expected:IG.object,received:n.parsedType}),I2;let r=[],i=this._def.keyType,a=this._def.valueType;for(let e in n.data)r.push({key:i._parse(new I6(n,e,n.path,e)),value:a._parse(new I6(n,n.data[e],n.path,e))});return n.common.async?I0.mergeObjectAsync(t,r):I0.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,n){return new Nk(t instanceof Nt?{keyType:e,valueType:t,typeName:T.ZodRecord,...Ne(n)}:{keyType:Na.create(),valueType:e,typeName:T.ZodRecord,...Ne(t)})}}class N_ extends Nt{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==IG.map)return I1(n,{code:IY.invalid_type,expected:IG.map,received:n.parsedType}),I2;let r=this._def.keyType,i=this._def.valueType,a=[...n.data.entries()].map(([e,t],a)=>({key:r._parse(new I6(n,e,n.path,[a,"key"])),value:i._parse(new I6(n,t,n.path,[a,"value"]))}));if(n.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let n of a){let r=await n.key,i=await n.value;if("aborted"===r.status||"aborted"===i.status)return I2;("dirty"===r.status||"dirty"===i.status)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let n of a){let r=n.key,i=n.value;if("aborted"===r.status||"aborted"===i.status)return I2;("dirty"===r.status||"dirty"===i.status)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}}N_.create=(e,t,n)=>new N_({valueType:t,keyType:e,typeName:T.ZodMap,...Ne(n)});class NS extends Nt{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==IG.set)return I1(n,{code:IY.invalid_type,expected:IG.set,received:n.parsedType}),I2;let r=this._def;null!==r.minSize&&n.data.sizer.maxSize.value&&(I1(n,{code:IY.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,message:r.maxSize.message}),t.dirty());let i=this._def.valueType;function a(e){let n=new Set;for(let r of e){if("aborted"===r.status)return I2;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}let o=[...n.data.values()].map((e,t)=>i._parse(new I6(n,e,n.path,t)));return n.common.async?Promise.all(o).then(e=>a(e)):a(o)}min(e,t){return new NS({...this._def,minSize:{value:e,message:v.toString(t)}})}max(e,t){return new NS({...this._def,maxSize:{value:e,message:v.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}NS.create=(e,t)=>new NS({valueType:e,minSize:null,maxSize:null,typeName:T.ZodSet,...Ne(t)});class Nw extends Nt{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==IG.function)return I1(t,{code:IY.invalid_type,expected:IG.function,received:t.parsedType}),I2;function n(e,n){return IJ({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,IK,IV].filter(e=>!!e),issueData:{code:IY.invalid_arguments,argumentsError:n}})}function r(e,n){return IJ({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,IK,IV].filter(e=>!!e),issueData:{code:IY.invalid_return_type,returnTypeError:n}})}let i={errorMap:t.common.contextualErrorMap},a=t.data;return this._def.returns instanceof NI?I5(async(...e)=>{let t=new IX([]),o=await this._def.args.parseAsync(e,i).catch(r=>{throw t.addIssue(n(e,r)),t}),s=await a(...o),l=await this._def.returns._def.type.parseAsync(s,i).catch(e=>{throw t.addIssue(r(s,e)),t});return l}):I5((...e)=>{let t=this._def.args.safeParse(e,i);if(!t.success)throw new IX([n(e,t.error)]);let o=a(...t.data),s=this._def.returns.safeParse(o,i);if(!s.success)throw new IX([r(o,s.error)]);return s.data})}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Nw({...this._def,args:NT.create(e).rest(Np.create())})}returns(e){return new Nw({...this._def,returns:e})}implement(e){let t=this.parse(e);return t}strictImplement(e){let t=this.parse(e);return t}static create(e,t,n){return new Nw({args:e||NT.create([]).rest(Np.create()),returns:t||Np.create(),typeName:T.ZodFunction,...Ne(n)})}}class NE extends Nt{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.getter();return n._parse({data:t.data,path:t.path,parent:t})}}NE.create=(e,t)=>new NE({getter:e,typeName:T.ZodLazy,...Ne(t)});class NC extends Nt{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return I1(t,{code:IY.invalid_literal,expected:this._def.value}),I2}return{status:"valid",value:e.data}}get value(){return this._def.value}}function NA(e,t){return new NR({values:e,typeName:T.ZodEnum,...Ne(t)})}NC.create=(e,t)=>new NC({value:e,typeName:T.ZodLiteral,...Ne(t)});class NR extends Nt{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),n=this._def.values;return I1(t,{expected:y.joinValues(n),received:t.parsedType,code:IY.invalid_type}),I2}if(-1===this._def.values.indexOf(e.data)){let t=this._getOrReturnCtx(e),n=this._def.values;return I1(t,{received:t.data,code:IY.invalid_enum_value,options:n}),I2}return I5(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}}NR.create=NA;class NP extends Nt{_parse(e){let t=y.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==IG.string&&n.parsedType!==IG.number){let e=y.objectValues(t);return I1(n,{expected:y.joinValues(e),received:n.parsedType,code:IY.invalid_type}),I2}if(-1===t.indexOf(e.data)){let e=y.objectValues(t);return I1(n,{received:n.data,code:IY.invalid_enum_value,options:e}),I2}return I5(e.data)}get enum(){return this._def.values}}NP.create=(e,t)=>new NP({values:e,typeName:T.ZodNativeEnum,...Ne(t)});class NI extends Nt{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==IG.promise&&!1===t.common.async)return I1(t,{code:IY.invalid_type,expected:IG.promise,received:t.parsedType}),I2;let n=t.parsedType===IG.promise?t.data:Promise.resolve(t.data);return I5(n.then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}NI.create=(e,t)=>new NI({type:e,typeName:T.ZodPromise,...Ne(t)});class NN extends Nt{innerType(){return this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null;if("preprocess"===r.type){let e=r.transform(n.data);return n.common.async?Promise.resolve(e).then(e=>this._def.schema._parseAsync({data:e,path:n.path,parent:n})):this._def.schema._parseSync({data:e,path:n.path,parent:n})}let i={addIssue:e=>{I1(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),"refinement"===r.type){let e=e=>{let t=r.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>"aborted"===n.status?I2:("dirty"===n.status&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))));{let r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?I2:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}}if("transform"===r.type){if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>I3(e)?Promise.resolve(r.transform(e.value,i)).then(e=>({status:t.value,value:e})):e);{let e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!I3(e))return e;let a=r.transform(e.value,i);if(a instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}}y.assertNever(r)}}NN.create=(e,t,n)=>new NN({schema:e,typeName:T.ZodEffects,effect:t,...Ne(n)}),NN.createWithPreprocess=(e,t,n)=>new NN({schema:t,effect:{type:"preprocess",transform:e},typeName:T.ZodEffects,...Ne(n)});class N$ extends Nt{_parse(e){let t=this._getType(e);return t===IG.undefined?I5(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}N$.create=(e,t)=>new N$({innerType:e,typeName:T.ZodOptional,...Ne(t)});class NL extends Nt{_parse(e){let t=this._getType(e);return t===IG.null?I5(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}NL.create=(e,t)=>new NL({innerType:e,typeName:T.ZodNullable,...Ne(t)});class ND extends Nt{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===IG.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}ND.create=(e,t)=>new N$({innerType:e,typeName:T.ZodOptional,...Ne(t)});class NQ extends Nt{_parse(e){let t=this._getType(e);if(t!==IG.nan){let t=this._getOrReturnCtx(e);return I1(t,{code:IY.invalid_type,expected:IG.nan,received:t.parsedType}),I2}return{status:"valid",value:e.data}}}NQ.create=e=>new NQ({typeName:T.ZodNaN,...Ne(e)});let NM=Symbol("zod_brand");class NF extends Nt{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}let NB=(e,t={},n)=>e?Nh.create().superRefine((r,i)=>{if(!e(r)){let e="function"==typeof t?t(r):t,a="string"==typeof e?{message:e}:e;i.addIssue({code:"custom",...a,fatal:n})}}):Nh.create(),NU={object:Nb.lazycreate};(f=T||(T={})).ZodString="ZodString",f.ZodNumber="ZodNumber",f.ZodNaN="ZodNaN",f.ZodBigInt="ZodBigInt",f.ZodBoolean="ZodBoolean",f.ZodDate="ZodDate",f.ZodUndefined="ZodUndefined",f.ZodNull="ZodNull",f.ZodAny="ZodAny",f.ZodUnknown="ZodUnknown",f.ZodNever="ZodNever",f.ZodVoid="ZodVoid",f.ZodArray="ZodArray",f.ZodObject="ZodObject",f.ZodUnion="ZodUnion",f.ZodDiscriminatedUnion="ZodDiscriminatedUnion",f.ZodIntersection="ZodIntersection",f.ZodTuple="ZodTuple",f.ZodRecord="ZodRecord",f.ZodMap="ZodMap",f.ZodSet="ZodSet",f.ZodFunction="ZodFunction",f.ZodLazy="ZodLazy",f.ZodLiteral="ZodLiteral",f.ZodEnum="ZodEnum",f.ZodEffects="ZodEffects",f.ZodNativeEnum="ZodNativeEnum",f.ZodOptional="ZodOptional",f.ZodNullable="ZodNullable",f.ZodDefault="ZodDefault",f.ZodPromise="ZodPromise",f.ZodBranded="ZodBranded";let Nj=Na.create,Nz=No.create,NW=NQ.create,NZ=Ns.create,Nq=Nl.create,NG=Nu.create,NH=Nc.create,NY=Nd.create,NX=Nh.create,NV=Np.create,NK=Nf.create,NJ=Nm.create,N1=Ng.create,N0=Nb.create,N2=Nb.strictCreate,N5=Ny.create,N9=Nv.create,N4=Nx.create,N3=NT.create,N8=Nk.create,N6=N_.create,N7=NS.create,$e=Nw.create,$t=NE.create,$n=NC.create,$r=NR.create,$i=NP.create,$a=NI.create,$o=NN.create,$s=N$.create,$l=NL.create,$u=NN.createWithPreprocess;var $c=Object.freeze({__proto__:null,getParsedType:IH,ZodParsedType:IG,defaultErrorMap:IV,setErrorMap:function(e){IK=e},getErrorMap:function(){return IK},makeIssue:IJ,EMPTY_PATH:[],addIssueToContext:I1,ParseStatus:I0,INVALID:I2,DIRTY:e=>({status:"dirty",value:e}),OK:I5,isAborted:I9,isDirty:I4,isValid:I3,isAsync:I8,ZodType:Nt,ZodString:Na,ZodNumber:No,ZodBigInt:Ns,ZodBoolean:Nl,ZodDate:Nu,ZodUndefined:Nc,ZodNull:Nd,ZodAny:Nh,ZodUnknown:Np,ZodNever:Nf,ZodVoid:Nm,ZodArray:Ng,get objectUtil(){return x},ZodObject:Nb,ZodUnion:Ny,ZodDiscriminatedUnion:Nv,ZodIntersection:Nx,ZodTuple:NT,ZodRecord:Nk,ZodMap:N_,ZodSet:NS,ZodFunction:Nw,ZodLazy:NE,ZodLiteral:NC,ZodEnum:NR,ZodNativeEnum:NP,ZodPromise:NI,ZodEffects:NN,ZodTransformer:NN,ZodOptional:N$,ZodNullable:NL,ZodDefault:ND,ZodNaN:NQ,BRAND:NM,ZodBranded:NF,custom:NB,Schema:Nt,ZodSchema:Nt,late:NU,get ZodFirstPartyTypeKind(){return T},any:NX,array:N1,bigint:NZ,boolean:Nq,date:NG,discriminatedUnion:N9,effect:$o,enum:$r,function:$e,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>NB(t=>t instanceof e,t,!0),intersection:N4,lazy:$t,literal:$n,map:N6,nan:NW,nativeEnum:$i,never:NK,null:NY,nullable:$l,number:Nz,object:N0,oboolean:()=>Nq().optional(),onumber:()=>Nz().optional(),optional:$s,ostring:()=>Nj().optional(),preprocess:$u,promise:$a,record:N8,set:N7,strictObject:N2,string:Nj,transformer:$o,tuple:N3,undefined:NH,union:N5,unknown:NV,void:NJ,NEVER:I2,ZodIssueCode:IY,quotelessJson:e=>{let t=JSON.stringify(e,null,2);return t.replace(/"([^"]+)":/g,"$1:")},ZodError:IX}),$d=Rp({"en-GB":Rf({description:" ","example.markdown":"# Your Results!",markdown:"Markdown",name:"Tries",points:"{points, number} of {maxPoints} {maxPoints, plural, =0 {Points} one {Point} other {Points}}"}),en:Rf({description:" ","example.markdown":"# Your Results!",markdown:"Markdown",name:"Tries",points:"{points, number} of {maxPoints} {maxPoints, plural, =0 {Points} one {Point} other {Points}}"}),"en-US":Rf({description:" ","example.markdown":"# Your Results!",markdown:"Markdown",name:"Tries",points:"{points, number} of {maxPoints} {maxPoints, plural, =0 {Points} one {Point} other {Points}}"}),de:Rf({description:" ","example.markdown":"# Your Results!",markdown:"Markdown",name:"Tries",points:"{points, number} of {maxPoints} {maxPoints, plural, =0 {Points} one {Point} other {Points}}"}),fr:Rf({description:" ","example.markdown":"# Your Results!",markdown:"Markdown",name:"Tries",points:"{points, number} of {maxPoints} {maxPoints, plural, =0 {Points} one {Point} other {Points}}"}),es:Rf({description:" ","example.markdown":"# Your Results!",markdown:"Markdown",name:"Tries",points:"{points, number} of {maxPoints} {maxPoints, plural, =0 {Points} one {Point} other {Points}}"}),nl:Rf({description:" ","example.markdown":"# Your Results!",markdown:"Markdown",name:"Tries",points:"{points, number} of {maxPoints} {maxPoints, plural, =0 {Points} one {Point} other {Points}}"}),pt:Rf({description:" ","example.markdown":"# Your Results!",markdown:"Markdown",name:"Tries",points:"{points, number} of {maxPoints} {maxPoints, plural, =0 {Points} one {Point} other {Points}}"}),tr:Rf({description:" ","example.markdown":"# Your Results!",markdown:"Markdown",name:"Tries",points:"{points, number} of {maxPoints} {maxPoints, plural, =0 {Points} one {Point} other {Points}}"})}),$h=Ee.merge($c.object({subtype:$c.literal("tries"),view:$c.object({markdown:$c.string()})})),$p=()=>{let{t:e}=Sa($d);return{name:e("name"),description:e("description"),example:{name:e("name"),description:e("description"),subtype:"tries",view:{markdown:e("example.markdown")}}}},$f=e=>"task"===e.node.type,$m=({tries:e,onClick:t})=>RJ(k$,{children:[RK(kw,{ml:"small",mt:"small",fontWeight:"bold",children:e[0].node.data.name}),RK(kt,{display:"flex",flexWrap:"wrap",justifyContent:"start",children:e.map(n=>{var r,i,a,o;let s=null;return("skipped"===n.status?s=RK(Rj,{}):"finished"===n.status&&((null==(r=n.result)?void 0:r.state)==="correct"?s=RK(RB,{}):(null==(i=n.result)?void 0:i.state)==="wrong"?s=RK(RU,{}):(null==(a=n.result)?void 0:a.state)==="manual"?s=RK(Rz,{}):(null==(o=n.result)?void 0:o.state)==="unknown"&&(s=RK(RW,{}))),s)?RK(kt,{m:"small",title:e[0].node.data.name,cursor:"pointer",onClick:()=>t(n),children:s},String(n.startDate)):null})})]}),$g=({end:e,getResult:t})=>{let{t:n}=Sa($d),[r,i]=(0,U.useState)(),[a,o]=(0,U.useState)(),[s,l]=(0,U.useState)(),u=As((null==s?void 0:s.node.type)==="task"?null==s?void 0:s.node.data.subtype:void 0);if((0,U.useEffect)(()=>{t().then(e=>{let t=function(e,t){let n=[],r=0,i={},a=0;for(;ae.node.id);i(e),o(t)})},[]),s&&u){let e=u.Task;if(e)return RJ(Ih,{children:[RK(Ip,{onClose:()=>l(void 0),children:s.node.data.name}),RK(If,{children:RK(e,{mode:"result",answer:"finished"===s.status?s.answer:void 0,result:"finished"===s.status?s.result:void 0,task:s.node.data})})]})}return RK(kt,{padding:"standard",children:RJ(kh,{gap:"standard",children:[RK(_r,{markdown:e.view.markdown}),r&&RK(kw,{textAlign:"center",textColor:"primary.600",fontSize:"xxlarge",children:n("points",{points:r.points,maxPoints:r.maxPoints})}),null==a?void 0:a.map((e,t)=>RK($m,{tries:e,onClick:l},t))]})})},$O=({name:e})=>{let{t}=Sa($d);return RK(U.Fragment,{children:RK(k5,{name:`${e}.view.markdown`,label:t("markdown"),defaultValue:"",render:({value:e,onChange:t})=>RK(_a,{value:e,variant:"input",onChange:e=>t(e)})})})},$b=Object.defineProperty,$y=Object.defineProperties,$v=Object.getOwnPropertyDescriptors,$x=Object.getOwnPropertySymbols,$T=Object.prototype.hasOwnProperty,$k=Object.prototype.propertyIsEnumerable,$_=(e,t,n)=>t in e?$b(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$S=(e,t)=>{for(var n in t||(t={}))$T.call(t,n)&&$_(e,n,t[n]);if($x)for(var n of $x(t))$k.call(t,n)&&$_(e,n,t[n]);return e},$w=(e,t)=>$y(e,$v(t)),$E=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),$C=["a","b","c","d","e","f","g","h"],$A=wq.enum($C),$R=w5.merge(wq.object({subtype:wq.literal("choice"),view:wq.object({instruction:wq.string(),variant:wq.enum(["multiple","single"]),choices:wq.array(wq.object({markdown:wq.string()})).nonempty()}),evaluation:w5.shape.evaluation.merge(wq.object({correct:wq.array($A)})),feedback:wq.object({patterns:wq.record(w2),choices:wq.record(wq.object({checkedFeedback:w2,notCheckedFeedback:w2}).partial())})})),$P=w3.merge(wq.object({subtype:wq.literal("choice"),choices:wq.record(wq.object({state:wq.enum(["wrong","correct","neutral"]),feedback:w2.optional()})),feedback:w2.optional()})),$I=w4.merge(wq.object({subtype:wq.literal("choice"),checked:wq.record(wq.boolean())})),$N=w9.merge(wq.object({subtype:wq.literal("choice"),patterns:wq.record(wq.object({count:wq.number().positive(),correct:wq.boolean()}))})),$$=e=>$E(void 0,[e],function*({answer:e,task:t}){var n;let r;let{view:i,evaluation:a,feedback:o}=t,s="unknown",l={},u="";return a&&"auto"===a.mode&&(s="correct",i.choices.forEach((t,n)=>{var r,i;let c=$C[n],d={state:"neutral"},h=(null==e?void 0:e.checked[c])||!1,p=a.correct.includes(c);if(h&&(u+=c),a.showFeedback){if(h){let e=null==(r=null==o?void 0:o.choices[c])?void 0:r.checkedFeedback;(null==e?void 0:e.message)&&(d.feedback=e)}else{let e=null==(i=null==o?void 0:o.choices[c])?void 0:i.notCheckedFeedback;(null==e?void 0:e.message)&&(d.feedback=e)}}h!==p?(d.state="wrong",s="wrong"):d.state="correct",l[c]=d}),u=u.split("").sort().join(""),a.showFeedback&&(null==o?void 0:o.patterns[u])&&(null==(n=null==o?void 0:o.patterns[u])?void 0:n.message)&&(r=null==o?void 0:o.patterns[u])),(null==a?void 0:a.mode)==="manual"&&(s="manual"),{subtype:"choice",state:s,choices:l,feedback:r,allowRetry:null==a?void 0:a.enableRetry}}),$L=({message:e,severity:t})=>af(kc,{severity:t},e),$D=({choice:e,checked:t,onChange:n,result:r})=>{let i="neutral.100";if(t)switch(null==r?void 0:r.state){case"correct":i="success.200";break;case"wrong":i="error.200"}return af(kt,null,af(kt,{role:"checkbox",display:"flex",padding:"standard",backgroundColor:i,borderRadius:"standard",boxShadow:"standard","aria-checked":t,tabIndex:0,cursor:"pointer",onKeyDown:function(e){" "===e.key&&(n(!t),e.stopPropagation(),e.preventDefault())},onClick:function(){n(!t)},css:e=>ag` + `,disabled:"evaluate"===k||"skip"===k||"close"===k||"previous"===k,loading:"skip"===k,tone:"accent",onClick:function(){c&&(C(IN()),c().catch(()=>{C(I$())}))},fullWidth:!0,children:b("skip")})})]})]})]})},Iq=({header:e,title:t,TitleComponent:n,onNext:r,onClose:i,onPrevious:a,progress:o})=>{let[s,l]=(0,U.useState)("default"),{t:u}=Sa(Ic);return RJ(Ih,{noHeader:!e,children:[e&&RK(Ip,{loadingClose:"close"===s,loadingPrevious:"previous"===s,onClose:i?()=>{i&&(l("close"),i().catch(()=>{l("default")}))}:void 0,onPrevious:a?()=>{a&&(l("previous"),a().catch(()=>{l("default")}))}:void 0,progress:o,disabled:"default"!==s,children:e}),RK(If,{children:RK(n,{title:t})}),RK(Im,{children:r&&RK(kk,{fullWidth:!0,onClick:()=>{r&&(l("next"),r().catch(()=>{l("default")}))},disabled:"default"!==s,loading:"next"===s,children:u("next")})})]})};(h=y||(y={})).assertEqual=e=>e,h.assertIs=function(e){},h.assertNever=function(e){throw Error()},h.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},h.getValidEnumValues=e=>{let t=h.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),n={};for(let r of t)n[r]=e[r];return h.objectValues(n)},h.objectValues=e=>h.objectKeys(e).map(function(t){return e[t]}),h.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},h.find=(e,t)=>{for(let n of e)if(t(n))return n},h.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,h.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},h.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t;let IG=y.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),IH=e=>{let t=typeof e;switch(t){case"undefined":return IG.undefined;case"string":return IG.string;case"number":return isNaN(e)?IG.nan:IG.number;case"boolean":return IG.boolean;case"function":return IG.function;case"bigint":return IG.bigint;case"object":if(Array.isArray(e))return IG.array;if(null===e)return IG.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return IG.promise;if("undefined"!=typeof Map&&e instanceof Map)return IG.map;if("undefined"!=typeof Set&&e instanceof Set)return IG.set;if("undefined"!=typeof Date&&e instanceof Date)return IG.date;return IG.object;default:return IG.unknown}},IY=y.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of"]);class IX extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(r);else if("invalid_return_type"===i.code)r(i.returnTypeError);else if("invalid_arguments"===i.code)r(i.argumentsError);else if(0===i.path.length)n._errors.push(t(i));else{let e=n,r=0;for(;re.message){let t={},n=[];for(let r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}IX.create=e=>{let t=new IX(e);return t};let IV=(e,t)=>{let n;switch(e.code){case IY.invalid_type:n=e.received===IG.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case IY.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,y.jsonStringifyReplacer)}`;break;case IY.unrecognized_keys:n=`Unrecognized key(s) in object: ${y.joinValues(e.keys,", ")}`;break;case IY.invalid_union:n="Invalid input";break;case IY.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${y.joinValues(e.options)}`;break;case IY.invalid_enum_value:n=`Invalid enum value. Expected ${y.joinValues(e.options)}, received '${e.received}'`;break;case IY.invalid_arguments:n="Invalid function arguments";break;case IY.invalid_return_type:n="Invalid function return type";break;case IY.invalid_date:n="Invalid date";break;case IY.invalid_string:"object"==typeof e.validation?"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:y.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case IY.too_small:n="array"===e.type?`Array must contain ${e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be greater than ${e.inclusive?"or equal to ":""}${e.minimum}`:"date"===e.type?`Date must be greater than ${e.inclusive?"or equal to ":""}${new Date(e.minimum)}`:"Invalid input";break;case IY.too_big:n="array"===e.type?`Array must contain ${e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be less than ${e.inclusive?"or equal to ":""}${e.maximum}`:"date"===e.type?`Date must be smaller than ${e.inclusive?"or equal to ":""}${new Date(e.maximum)}`:"Invalid input";break;case IY.custom:n="Invalid input";break;case IY.invalid_intersection_types:n="Intersection results could not be merged";break;case IY.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;default:n=t.defaultError,y.assertNever(e)}return{message:n}},IK=IV,IJ=e=>{let{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],o={...i,path:a},s="",l=r.filter(e=>!!e).slice().reverse();for(let e of l)s=e(o,{data:t,defaultError:s}).message;return{...i,path:a,message:i.message||s}};function I1(e,t){let n=IJ({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,IK,IV].filter(e=>!!e)});e.common.issues.push(n)}class I0{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let n=[];for(let r of t){if("aborted"===r.status)return I2;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){let n=[];for(let e of t)n.push({key:await e.key,value:await e.value});return I0.mergeObjectSync(e,n)}static mergeObjectSync(e,t){let n={};for(let r of t){let{key:t,value:i}=r;if("aborted"===t.status||"aborted"===i.status)return I2;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),(void 0!==i.value||r.alwaysSet)&&(n[t.value]=i.value)}return{status:e.value,value:n}}}let I2=Object.freeze({status:"aborted"}),I5=e=>({status:"valid",value:e}),I9=e=>"aborted"===e.status,I4=e=>"dirty"===e.status,I3=e=>"valid"===e.status,I8=e=>e instanceof Promise;(p=v||(v={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},p.toString=e=>"string"==typeof e?e:null==e?void 0:e.message;class I6{constructor(e,t,n,r){this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._path.concat(this._key)}}let I7=(e,t)=>{if(I3(t))return{success:!0,data:t.value};{if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");let t=new IX(e.common.issues);return{success:!1,error:t}}};function Ne(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(e,t)=>"invalid_type"!==e.code?{message:t.defaultError}:void 0===t.data?{message:null!=r?r:t.defaultError}:{message:null!=n?n:t.defaultError},description:i}}class Nt{constructor(e){this.spa=this.safeParseAsync,this.superRefine=this._refinement,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.default=this.default.bind(this),this.describe=this.describe.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return IH(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:IH(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new I0,ctx:{common:e.parent.common,data:e.data,parsedType:IH(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(I8(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;let r={common:{issues:[],async:null!==(n=null==t?void 0:t.async)&&void 0!==n&&n,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:IH(e)},i=this._parseSync({data:e,path:r.path,parent:r});return I7(r,i)}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:IH(e)},r=this._parse({data:e,path:[],parent:n}),i=await (I8(r)?r:Promise.resolve(r));return I7(n,i)}refine(e,t){let n=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,r)=>{let i=e(t),a=()=>r.addIssue({code:IY.custom,...n(t)});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(e=>!!e||(a(),!1)):!!i||(a(),!1)})}refinement(e,t){return this._refinement((n,r)=>!!e(n)||(r.addIssue("function"==typeof t?t(n,r):t),!1))}_refinement(e){return new NN({schema:this,typeName:T.ZodEffects,effect:{type:"refinement",refinement:e}})}optional(){return N$.create(this)}nullable(){return NL.create(this)}nullish(){return this.optional().nullable()}array(){return Ng.create(this)}promise(){return NI.create(this)}or(e){return Ny.create([this,e])}and(e){return Nx.create(this,e)}transform(e){return new NN({schema:this,typeName:T.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new ND({innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:T.ZodDefault})}brand(){return new NF({typeName:T.ZodBranded,type:this,...Ne(void 0)})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let Nn=/^c[^\s-]{8,}$/i,Nr=/^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i,Ni=/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i;class Na extends Nt{constructor(){super(...arguments),this._regex=(e,t,n)=>this.refinement(t=>e.test(t),{validation:t,code:IY.invalid_string,...v.errToObj(n)}),this.nonempty=e=>this.min(1,v.errToObj(e)),this.trim=()=>new Na({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}_parse(e){let t;let n=this._getType(e);if(n!==IG.string){let t=this._getOrReturnCtx(e);return I1(t,{code:IY.invalid_type,expected:IG.string,received:t.parsedType}),I2}let r=new I0;for(let n of this._def.checks)if("min"===n.kind)e.data.lengthn.value&&(I1(t=this._getOrReturnCtx(e,t),{code:IY.too_big,maximum:n.value,type:"string",inclusive:!0,message:n.message}),r.dirty());else if("email"===n.kind)Ni.test(e.data)||(I1(t=this._getOrReturnCtx(e,t),{validation:"email",code:IY.invalid_string,message:n.message}),r.dirty());else if("uuid"===n.kind)Nr.test(e.data)||(I1(t=this._getOrReturnCtx(e,t),{validation:"uuid",code:IY.invalid_string,message:n.message}),r.dirty());else if("cuid"===n.kind)Nn.test(e.data)||(I1(t=this._getOrReturnCtx(e,t),{validation:"cuid",code:IY.invalid_string,message:n.message}),r.dirty());else if("url"===n.kind)try{new URL(e.data)}catch(i){I1(t=this._getOrReturnCtx(e,t),{validation:"url",code:IY.invalid_string,message:n.message}),r.dirty()}else if("regex"===n.kind){n.regex.lastIndex=0;let i=n.regex.test(e.data);i||(I1(t=this._getOrReturnCtx(e,t),{validation:"regex",code:IY.invalid_string,message:n.message}),r.dirty())}else"trim"===n.kind?e.data=e.data.trim():"startsWith"===n.kind?e.data.startsWith(n.value)||(I1(t=this._getOrReturnCtx(e,t),{code:IY.invalid_string,validation:{startsWith:n.value},message:n.message}),r.dirty()):"endsWith"===n.kind?e.data.endsWith(n.value)||(I1(t=this._getOrReturnCtx(e,t),{code:IY.invalid_string,validation:{endsWith:n.value},message:n.message}),r.dirty()):y.assertNever(n);return{status:r.value,value:e.data}}_addCheck(e){return new Na({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...v.errToObj(e)})}url(e){return this._addCheck({kind:"url",...v.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...v.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...v.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...v.errToObj(t)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...v.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...v.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...v.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...v.errToObj(t)})}length(e,t){return this.min(e,t).max(e,t)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.valuenew Na({checks:[],typeName:T.ZodString,...Ne(e)});class No extends Nt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;let n=this._getType(e);if(n!==IG.number){let t=this._getOrReturnCtx(e);return I1(t,{code:IY.invalid_type,expected:IG.number,received:t.parsedType}),I2}let r=new I0;for(let n of this._def.checks)if("int"===n.kind)y.isInteger(e.data)||(I1(t=this._getOrReturnCtx(e,t),{code:IY.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty());else if("min"===n.kind){let i=n.inclusive?e.datan.value:e.data>=n.value;i&&(I1(t=this._getOrReturnCtx(e,t),{code:IY.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,message:n.message}),r.dirty())}else"multipleOf"===n.kind?0!==function(e,t){let n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,a=parseInt(e.toFixed(i).replace(".","")),o=parseInt(t.toFixed(i).replace(".",""));return a%o/Math.pow(10,i)}(e.data,n.value)&&(I1(t=this._getOrReturnCtx(e,t),{code:IY.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):y.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,v.toString(t))}gt(e,t){return this.setLimit("min",e,!1,v.toString(t))}lte(e,t){return this.setLimit("max",e,!0,v.toString(t))}lt(e,t){return this.setLimit("max",e,!1,v.toString(t))}setLimit(e,t,n,r){return new No({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:v.toString(r)}]})}_addCheck(e){return new No({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:v.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:v.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:v.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:v.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:v.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:v.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value"int"===e.kind)}}No.create=e=>new No({checks:[],typeName:T.ZodNumber,...Ne(e)});class Ns extends Nt{_parse(e){let t=this._getType(e);if(t!==IG.bigint){let t=this._getOrReturnCtx(e);return I1(t,{code:IY.invalid_type,expected:IG.bigint,received:t.parsedType}),I2}return I5(e.data)}}Ns.create=e=>new Ns({typeName:T.ZodBigInt,...Ne(e)});class Nl extends Nt{_parse(e){let t=this._getType(e);if(t!==IG.boolean){let t=this._getOrReturnCtx(e);return I1(t,{code:IY.invalid_type,expected:IG.boolean,received:t.parsedType}),I2}return I5(e.data)}}Nl.create=e=>new Nl({typeName:T.ZodBoolean,...Ne(e)});class Nu extends Nt{_parse(e){let t;let n=this._getType(e);if(n!==IG.date){let t=this._getOrReturnCtx(e);return I1(t,{code:IY.invalid_type,expected:IG.date,received:t.parsedType}),I2}if(isNaN(e.data.getTime())){let t=this._getOrReturnCtx(e);return I1(t,{code:IY.invalid_date}),I2}let r=new I0;for(let n of this._def.checks)"min"===n.kind?e.data.getTime()n.value&&(I1(t=this._getOrReturnCtx(e,t),{code:IY.too_big,message:n.message,inclusive:!0,maximum:n.value,type:"date"}),r.dirty()):y.assertNever(n);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Nu({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:v.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:v.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.valuenew Nu({checks:[],typeName:T.ZodDate,...Ne(e)});class Nc extends Nt{_parse(e){let t=this._getType(e);if(t!==IG.undefined){let t=this._getOrReturnCtx(e);return I1(t,{code:IY.invalid_type,expected:IG.undefined,received:t.parsedType}),I2}return I5(e.data)}}Nc.create=e=>new Nc({typeName:T.ZodUndefined,...Ne(e)});class Nd extends Nt{_parse(e){let t=this._getType(e);if(t!==IG.null){let t=this._getOrReturnCtx(e);return I1(t,{code:IY.invalid_type,expected:IG.null,received:t.parsedType}),I2}return I5(e.data)}}Nd.create=e=>new Nd({typeName:T.ZodNull,...Ne(e)});class Nh extends Nt{constructor(){super(...arguments),this._any=!0}_parse(e){return I5(e.data)}}Nh.create=e=>new Nh({typeName:T.ZodAny,...Ne(e)});class Np extends Nt{constructor(){super(...arguments),this._unknown=!0}_parse(e){return I5(e.data)}}Np.create=e=>new Np({typeName:T.ZodUnknown,...Ne(e)});class Nf extends Nt{_parse(e){let t=this._getOrReturnCtx(e);return I1(t,{code:IY.invalid_type,expected:IG.never,received:t.parsedType}),I2}}Nf.create=e=>new Nf({typeName:T.ZodNever,...Ne(e)});class Nm extends Nt{_parse(e){let t=this._getType(e);if(t!==IG.undefined){let t=this._getOrReturnCtx(e);return I1(t,{code:IY.invalid_type,expected:IG.void,received:t.parsedType}),I2}return I5(e.data)}}Nm.create=e=>new Nm({typeName:T.ZodVoid,...Ne(e)});class Ng extends Nt{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==IG.array)return I1(t,{code:IY.invalid_type,expected:IG.array,received:t.parsedType}),I2;if(null!==r.minLength&&t.data.lengthr.maxLength.value&&(I1(t,{code:IY.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all(t.data.map((e,n)=>r.type._parseAsync(new I6(t,e,t.path,n)))).then(e=>I0.mergeArray(n,e));let i=t.data.map((e,n)=>r.type._parseSync(new I6(t,e,t.path,n)));return I0.mergeArray(n,i)}get element(){return this._def.type}min(e,t){return new Ng({...this._def,minLength:{value:e,message:v.toString(t)}})}max(e,t){return new Ng({...this._def,maxLength:{value:e,message:v.toString(t)}})}length(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}Ng.create=(e,t)=>new Ng({type:e,minLength:null,maxLength:null,typeName:T.ZodArray,...Ne(t)}),(x||(x={})).mergeShapes=(e,t)=>({...e,...t});let NO=e=>t=>new Nb({...e,shape:()=>({...e.shape(),...t})});class Nb extends Nt{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=NO(this._def),this.extend=NO(this._def)}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=y.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){let t=this._getType(e);if(t!==IG.object){let t=this._getOrReturnCtx(e);return I1(t,{code:IY.invalid_type,expected:IG.object,received:t.parsedType}),I2}let{status:n,ctx:r}=this._processInputParams(e),{shape:i,keys:a}=this._getCached(),o=[];for(let e in r.data)a.includes(e)||o.push(e);let s=[];for(let e of a){let t=i[e],n=r.data[e];s.push({key:{status:"valid",value:e},value:t._parse(new I6(r,n,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof Nf){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of o)s.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)o.length>0&&(I1(r,{code:IY.unrecognized_keys,keys:o}),n.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of o){let n=r.data[t];s.push({key:{status:"valid",value:t},value:e._parse(new I6(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of s){let n=await t.key;e.push({key:n,value:await t.value,alwaysSet:t.alwaysSet})}return e}).then(e=>I0.mergeObjectSync(n,e)):I0.mergeObjectSync(n,s)}get shape(){return this._def.shape()}strict(e){return v.errToObj,new Nb({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var r,i,a,o;let s=null!==(a=null===(i=(r=this._def).errorMap)||void 0===i?void 0:i.call(r,t,n).message)&&void 0!==a?a:n.defaultError;return"unrecognized_keys"===t.code?{message:null!==(o=v.errToObj(e).message)&&void 0!==o?o:s}:{message:s}}}:{}})}strip(){return new Nb({...this._def,unknownKeys:"strip"})}passthrough(){return new Nb({...this._def,unknownKeys:"passthrough"})}setKey(e,t){return this.augment({[e]:t})}merge(e){let t=new Nb({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>x.mergeShapes(this._def.shape(),e._def.shape()),typeName:T.ZodObject});return t}catchall(e){return new Nb({...this._def,catchall:e})}pick(e){let t={};return y.objectKeys(e).map(e=>{this.shape[e]&&(t[e]=this.shape[e])}),new Nb({...this._def,shape:()=>t})}omit(e){let t={};return y.objectKeys(this.shape).map(n=>{-1===y.objectKeys(e).indexOf(n)&&(t[n]=this.shape[n])}),new Nb({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof Nb){let n={};for(let r in t.shape){let i=t.shape[r];n[r]=N$.create(e(i))}return new Nb({...t._def,shape:()=>n})}return t instanceof Ng?Ng.create(e(t.element)):t instanceof N$?N$.create(e(t.unwrap())):t instanceof NL?NL.create(e(t.unwrap())):t instanceof NT?NT.create(t.items.map(t=>e(t))):t}(this)}partial(e){let t={};if(e)y.objectKeys(this.shape).map(n=>{-1===y.objectKeys(e).indexOf(n)?t[n]=this.shape[n]:t[n]=this.shape[n].optional()});else for(let e in this.shape){let n=this.shape[e];t[e]=n.optional()}return new Nb({...this._def,shape:()=>t})}required(){let e={};for(let t in this.shape){let n=this.shape[t],r=n;for(;r instanceof N$;)r=r._def.innerType;e[t]=r}return new Nb({...this._def,shape:()=>e})}keyof(){return NA(y.objectKeys(this.shape))}}Nb.create=(e,t)=>new Nb({shape:()=>e,unknownKeys:"strip",catchall:Nf.create(),typeName:T.ZodObject,...Ne(t)}),Nb.strictCreate=(e,t)=>new Nb({shape:()=>e,unknownKeys:"strict",catchall:Nf.create(),typeName:T.ZodObject,...Ne(t)}),Nb.lazycreate=(e,t)=>new Nb({shape:e,unknownKeys:"strip",catchall:Nf.create(),typeName:T.ZodObject,...Ne(t)});class Ny extends Nt{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map(async e=>{let n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let n of e)if("dirty"===n.result.status)return t.common.issues.push(...n.ctx.common.issues),n.result;let n=e.map(e=>new IX(e.ctx.common.issues));return I1(t,{code:IY.invalid_union,unionErrors:n}),I2});{let e;let r=[];for(let i of n){let n={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:n});if("valid"===a.status)return a;"dirty"!==a.status||e||(e={result:a,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=r.map(e=>new IX(e));return I1(t,{code:IY.invalid_union,unionErrors:i}),I2}}get options(){return this._def.options}}Ny.create=(e,t)=>new Ny({options:e,typeName:T.ZodUnion,...Ne(t)});class Nv extends Nt{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==IG.object)return I1(t,{code:IY.invalid_type,expected:IG.object,received:t.parsedType}),I2;let n=this.discriminator,r=t.data[n],i=this.options.get(r);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(I1(t,{code:IY.invalid_union_discriminator,options:this.validDiscriminatorValues,path:[n]}),I2)}get discriminator(){return this._def.discriminator}get validDiscriminatorValues(){return Array.from(this.options.keys())}get options(){return this._def.options}static create(e,t,n){let r=new Map;try{t.forEach(t=>{let n=t.shape[e].value;r.set(n,t)})}catch(e){throw Error("The discriminator value could not be extracted from all the provided schemas")}if(r.size!==t.length)throw Error("Some of the discriminator values are not unique");return new Nv({typeName:T.ZodDiscriminatedUnion,discriminator:e,options:r,...Ne(n)})}}class Nx extends Nt{_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(I9(e)||I9(r))return I2;let i=function e(t,n){let r=IH(t),i=IH(n);if(t===n)return{valid:!0,data:t};if(r===IG.object&&i===IG.object){let r=y.objectKeys(n),i=y.objectKeys(t).filter(e=>-1!==r.indexOf(e)),a={...t,...n};for(let r of i){let i=e(t[r],n[r]);if(!i.valid)return{valid:!1};a[r]=i.data}return{valid:!0,data:a}}if(r===IG.array&&i===IG.array){if(t.length!==n.length)return{valid:!1};let r=[];for(let i=0;ir(e,t)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}Nx.create=(e,t,n)=>new Nx({left:e,right:t,typeName:T.ZodIntersection,...Ne(n)});class NT extends Nt{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==IG.array)return I1(n,{code:IY.invalid_type,expected:IG.array,received:n.parsedType}),I2;if(n.data.lengththis._def.items.length&&(I1(n,{code:IY.too_big,maximum:this._def.items.length,inclusive:!0,type:"array"}),t.dirty());let i=n.data.map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new I6(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(i).then(e=>I0.mergeArray(t,e)):I0.mergeArray(t,i)}get items(){return this._def.items}rest(e){return new NT({...this._def,rest:e})}}NT.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new NT({items:e,typeName:T.ZodTuple,rest:null,...Ne(t)})};class Nk extends Nt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==IG.object)return I1(n,{code:IY.invalid_type,expected:IG.object,received:n.parsedType}),I2;let r=[],i=this._def.keyType,a=this._def.valueType;for(let e in n.data)r.push({key:i._parse(new I6(n,e,n.path,e)),value:a._parse(new I6(n,n.data[e],n.path,e))});return n.common.async?I0.mergeObjectAsync(t,r):I0.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,n){return new Nk(t instanceof Nt?{keyType:e,valueType:t,typeName:T.ZodRecord,...Ne(n)}:{keyType:Na.create(),valueType:e,typeName:T.ZodRecord,...Ne(t)})}}class N_ extends Nt{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==IG.map)return I1(n,{code:IY.invalid_type,expected:IG.map,received:n.parsedType}),I2;let r=this._def.keyType,i=this._def.valueType,a=[...n.data.entries()].map(([e,t],a)=>({key:r._parse(new I6(n,e,n.path,[a,"key"])),value:i._parse(new I6(n,t,n.path,[a,"value"]))}));if(n.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let n of a){let r=await n.key,i=await n.value;if("aborted"===r.status||"aborted"===i.status)return I2;("dirty"===r.status||"dirty"===i.status)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let n of a){let r=n.key,i=n.value;if("aborted"===r.status||"aborted"===i.status)return I2;("dirty"===r.status||"dirty"===i.status)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}}N_.create=(e,t,n)=>new N_({valueType:t,keyType:e,typeName:T.ZodMap,...Ne(n)});class NS extends Nt{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==IG.set)return I1(n,{code:IY.invalid_type,expected:IG.set,received:n.parsedType}),I2;let r=this._def;null!==r.minSize&&n.data.sizer.maxSize.value&&(I1(n,{code:IY.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,message:r.maxSize.message}),t.dirty());let i=this._def.valueType;function a(e){let n=new Set;for(let r of e){if("aborted"===r.status)return I2;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}let o=[...n.data.values()].map((e,t)=>i._parse(new I6(n,e,n.path,t)));return n.common.async?Promise.all(o).then(e=>a(e)):a(o)}min(e,t){return new NS({...this._def,minSize:{value:e,message:v.toString(t)}})}max(e,t){return new NS({...this._def,maxSize:{value:e,message:v.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}NS.create=(e,t)=>new NS({valueType:e,minSize:null,maxSize:null,typeName:T.ZodSet,...Ne(t)});class Nw extends Nt{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==IG.function)return I1(t,{code:IY.invalid_type,expected:IG.function,received:t.parsedType}),I2;function n(e,n){return IJ({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,IK,IV].filter(e=>!!e),issueData:{code:IY.invalid_arguments,argumentsError:n}})}function r(e,n){return IJ({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,IK,IV].filter(e=>!!e),issueData:{code:IY.invalid_return_type,returnTypeError:n}})}let i={errorMap:t.common.contextualErrorMap},a=t.data;return this._def.returns instanceof NI?I5(async(...e)=>{let t=new IX([]),o=await this._def.args.parseAsync(e,i).catch(r=>{throw t.addIssue(n(e,r)),t}),s=await a(...o),l=await this._def.returns._def.type.parseAsync(s,i).catch(e=>{throw t.addIssue(r(s,e)),t});return l}):I5((...e)=>{let t=this._def.args.safeParse(e,i);if(!t.success)throw new IX([n(e,t.error)]);let o=a(...t.data),s=this._def.returns.safeParse(o,i);if(!s.success)throw new IX([r(o,s.error)]);return s.data})}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Nw({...this._def,args:NT.create(e).rest(Np.create())})}returns(e){return new Nw({...this._def,returns:e})}implement(e){let t=this.parse(e);return t}strictImplement(e){let t=this.parse(e);return t}static create(e,t,n){return new Nw({args:e||NT.create([]).rest(Np.create()),returns:t||Np.create(),typeName:T.ZodFunction,...Ne(n)})}}class NE extends Nt{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.getter();return n._parse({data:t.data,path:t.path,parent:t})}}NE.create=(e,t)=>new NE({getter:e,typeName:T.ZodLazy,...Ne(t)});class NC extends Nt{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return I1(t,{code:IY.invalid_literal,expected:this._def.value}),I2}return{status:"valid",value:e.data}}get value(){return this._def.value}}function NA(e,t){return new NR({values:e,typeName:T.ZodEnum,...Ne(t)})}NC.create=(e,t)=>new NC({value:e,typeName:T.ZodLiteral,...Ne(t)});class NR extends Nt{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),n=this._def.values;return I1(t,{expected:y.joinValues(n),received:t.parsedType,code:IY.invalid_type}),I2}if(-1===this._def.values.indexOf(e.data)){let t=this._getOrReturnCtx(e),n=this._def.values;return I1(t,{received:t.data,code:IY.invalid_enum_value,options:n}),I2}return I5(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}}NR.create=NA;class NP extends Nt{_parse(e){let t=y.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==IG.string&&n.parsedType!==IG.number){let e=y.objectValues(t);return I1(n,{expected:y.joinValues(e),received:n.parsedType,code:IY.invalid_type}),I2}if(-1===t.indexOf(e.data)){let e=y.objectValues(t);return I1(n,{received:n.data,code:IY.invalid_enum_value,options:e}),I2}return I5(e.data)}get enum(){return this._def.values}}NP.create=(e,t)=>new NP({values:e,typeName:T.ZodNativeEnum,...Ne(t)});class NI extends Nt{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==IG.promise&&!1===t.common.async)return I1(t,{code:IY.invalid_type,expected:IG.promise,received:t.parsedType}),I2;let n=t.parsedType===IG.promise?t.data:Promise.resolve(t.data);return I5(n.then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}NI.create=(e,t)=>new NI({type:e,typeName:T.ZodPromise,...Ne(t)});class NN extends Nt{innerType(){return this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null;if("preprocess"===r.type){let e=r.transform(n.data);return n.common.async?Promise.resolve(e).then(e=>this._def.schema._parseAsync({data:e,path:n.path,parent:n})):this._def.schema._parseSync({data:e,path:n.path,parent:n})}let i={addIssue:e=>{I1(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),"refinement"===r.type){let e=e=>{let t=r.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>"aborted"===n.status?I2:("dirty"===n.status&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))));{let r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?I2:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}}if("transform"===r.type){if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>I3(e)?Promise.resolve(r.transform(e.value,i)).then(e=>({status:t.value,value:e})):e);{let e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!I3(e))return e;let a=r.transform(e.value,i);if(a instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}}y.assertNever(r)}}NN.create=(e,t,n)=>new NN({schema:e,typeName:T.ZodEffects,effect:t,...Ne(n)}),NN.createWithPreprocess=(e,t,n)=>new NN({schema:t,effect:{type:"preprocess",transform:e},typeName:T.ZodEffects,...Ne(n)});class N$ extends Nt{_parse(e){let t=this._getType(e);return t===IG.undefined?I5(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}N$.create=(e,t)=>new N$({innerType:e,typeName:T.ZodOptional,...Ne(t)});class NL extends Nt{_parse(e){let t=this._getType(e);return t===IG.null?I5(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}NL.create=(e,t)=>new NL({innerType:e,typeName:T.ZodNullable,...Ne(t)});class ND extends Nt{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===IG.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}ND.create=(e,t)=>new N$({innerType:e,typeName:T.ZodOptional,...Ne(t)});class NQ extends Nt{_parse(e){let t=this._getType(e);if(t!==IG.nan){let t=this._getOrReturnCtx(e);return I1(t,{code:IY.invalid_type,expected:IG.nan,received:t.parsedType}),I2}return{status:"valid",value:e.data}}}NQ.create=e=>new NQ({typeName:T.ZodNaN,...Ne(e)});let NM=Symbol("zod_brand");class NF extends Nt{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}let NB=(e,t={},n)=>e?Nh.create().superRefine((r,i)=>{if(!e(r)){let e="function"==typeof t?t(r):t,a="string"==typeof e?{message:e}:e;i.addIssue({code:"custom",...a,fatal:n})}}):Nh.create(),NU={object:Nb.lazycreate};(f=T||(T={})).ZodString="ZodString",f.ZodNumber="ZodNumber",f.ZodNaN="ZodNaN",f.ZodBigInt="ZodBigInt",f.ZodBoolean="ZodBoolean",f.ZodDate="ZodDate",f.ZodUndefined="ZodUndefined",f.ZodNull="ZodNull",f.ZodAny="ZodAny",f.ZodUnknown="ZodUnknown",f.ZodNever="ZodNever",f.ZodVoid="ZodVoid",f.ZodArray="ZodArray",f.ZodObject="ZodObject",f.ZodUnion="ZodUnion",f.ZodDiscriminatedUnion="ZodDiscriminatedUnion",f.ZodIntersection="ZodIntersection",f.ZodTuple="ZodTuple",f.ZodRecord="ZodRecord",f.ZodMap="ZodMap",f.ZodSet="ZodSet",f.ZodFunction="ZodFunction",f.ZodLazy="ZodLazy",f.ZodLiteral="ZodLiteral",f.ZodEnum="ZodEnum",f.ZodEffects="ZodEffects",f.ZodNativeEnum="ZodNativeEnum",f.ZodOptional="ZodOptional",f.ZodNullable="ZodNullable",f.ZodDefault="ZodDefault",f.ZodPromise="ZodPromise",f.ZodBranded="ZodBranded";let Nz=Na.create,Nj=No.create,NW=NQ.create,NZ=Ns.create,Nq=Nl.create,NG=Nu.create,NH=Nc.create,NY=Nd.create,NX=Nh.create,NV=Np.create,NK=Nf.create,NJ=Nm.create,N1=Ng.create,N0=Nb.create,N2=Nb.strictCreate,N5=Ny.create,N9=Nv.create,N4=Nx.create,N3=NT.create,N8=Nk.create,N6=N_.create,N7=NS.create,$e=Nw.create,$t=NE.create,$n=NC.create,$r=NR.create,$i=NP.create,$a=NI.create,$o=NN.create,$s=N$.create,$l=NL.create,$u=NN.createWithPreprocess;var $c=Object.freeze({__proto__:null,getParsedType:IH,ZodParsedType:IG,defaultErrorMap:IV,setErrorMap:function(e){IK=e},getErrorMap:function(){return IK},makeIssue:IJ,EMPTY_PATH:[],addIssueToContext:I1,ParseStatus:I0,INVALID:I2,DIRTY:e=>({status:"dirty",value:e}),OK:I5,isAborted:I9,isDirty:I4,isValid:I3,isAsync:I8,ZodType:Nt,ZodString:Na,ZodNumber:No,ZodBigInt:Ns,ZodBoolean:Nl,ZodDate:Nu,ZodUndefined:Nc,ZodNull:Nd,ZodAny:Nh,ZodUnknown:Np,ZodNever:Nf,ZodVoid:Nm,ZodArray:Ng,get objectUtil(){return x},ZodObject:Nb,ZodUnion:Ny,ZodDiscriminatedUnion:Nv,ZodIntersection:Nx,ZodTuple:NT,ZodRecord:Nk,ZodMap:N_,ZodSet:NS,ZodFunction:Nw,ZodLazy:NE,ZodLiteral:NC,ZodEnum:NR,ZodNativeEnum:NP,ZodPromise:NI,ZodEffects:NN,ZodTransformer:NN,ZodOptional:N$,ZodNullable:NL,ZodDefault:ND,ZodNaN:NQ,BRAND:NM,ZodBranded:NF,custom:NB,Schema:Nt,ZodSchema:Nt,late:NU,get ZodFirstPartyTypeKind(){return T},any:NX,array:N1,bigint:NZ,boolean:Nq,date:NG,discriminatedUnion:N9,effect:$o,enum:$r,function:$e,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>NB(t=>t instanceof e,t,!0),intersection:N4,lazy:$t,literal:$n,map:N6,nan:NW,nativeEnum:$i,never:NK,null:NY,nullable:$l,number:Nj,object:N0,oboolean:()=>Nq().optional(),onumber:()=>Nj().optional(),optional:$s,ostring:()=>Nz().optional(),preprocess:$u,promise:$a,record:N8,set:N7,strictObject:N2,string:Nz,transformer:$o,tuple:N3,undefined:NH,union:N5,unknown:NV,void:NJ,NEVER:I2,ZodIssueCode:IY,quotelessJson:e=>{let t=JSON.stringify(e,null,2);return t.replace(/"([^"]+)":/g,"$1:")},ZodError:IX}),$d=Rp({"en-GB":Rf({description:" ","example.markdown":"# Your Results!",markdown:"Markdown",name:"Tries",points:"{points, number} of {maxPoints} {maxPoints, plural, =0 {Points} one {Point} other {Points}}"}),en:Rf({description:" ","example.markdown":"# Your Results!",markdown:"Markdown",name:"Tries",points:"{points, number} of {maxPoints} {maxPoints, plural, =0 {Points} one {Point} other {Points}}"}),"en-US":Rf({description:" ","example.markdown":"# Your Results!",markdown:"Markdown",name:"Tries",points:"{points, number} of {maxPoints} {maxPoints, plural, =0 {Points} one {Point} other {Points}}"}),de:Rf({description:" ","example.markdown":"# Your Results!",markdown:"Markdown",name:"Tries",points:"{points, number} of {maxPoints} {maxPoints, plural, =0 {Points} one {Point} other {Points}}"}),fr:Rf({description:" ","example.markdown":"# Your Results!",markdown:"Markdown",name:"Tries",points:"{points, number} of {maxPoints} {maxPoints, plural, =0 {Points} one {Point} other {Points}}"}),es:Rf({description:" ","example.markdown":"# Your Results!",markdown:"Markdown",name:"Tries",points:"{points, number} of {maxPoints} {maxPoints, plural, =0 {Points} one {Point} other {Points}}"}),nl:Rf({description:" ","example.markdown":"# Your Results!",markdown:"Markdown",name:"Tries",points:"{points, number} of {maxPoints} {maxPoints, plural, =0 {Points} one {Point} other {Points}}"}),pt:Rf({description:" ","example.markdown":"# Your Results!",markdown:"Markdown",name:"Tries",points:"{points, number} of {maxPoints} {maxPoints, plural, =0 {Points} one {Point} other {Points}}"}),tr:Rf({description:" ","example.markdown":"# Your Results!",markdown:"Markdown",name:"Tries",points:"{points, number} of {maxPoints} {maxPoints, plural, =0 {Points} one {Point} other {Points}}"})}),$h=Ee.merge($c.object({subtype:$c.literal("tries"),view:$c.object({markdown:$c.string()})})),$p=()=>{let{t:e}=Sa($d);return{name:e("name"),description:e("description"),example:{name:e("name"),description:e("description"),subtype:"tries",view:{markdown:e("example.markdown")}}}},$f=e=>"task"===e.node.type,$m=({tries:e,onClick:t})=>RJ(k$,{children:[RK(kw,{ml:"small",mt:"small",fontWeight:"bold",children:e[0].node.data.name}),RK(kt,{display:"flex",flexWrap:"wrap",justifyContent:"start",children:e.map(n=>{var r,i,a,o;let s=null;return("skipped"===n.status?s=RK(Rz,{}):"finished"===n.status&&((null==(r=n.result)?void 0:r.state)==="correct"?s=RK(RB,{}):(null==(i=n.result)?void 0:i.state)==="wrong"?s=RK(RU,{}):(null==(a=n.result)?void 0:a.state)==="manual"?s=RK(Rj,{}):(null==(o=n.result)?void 0:o.state)==="unknown"&&(s=RK(RW,{}))),s)?RK(kt,{m:"small",title:e[0].node.data.name,cursor:"pointer",onClick:()=>t(n),children:s},String(n.startDate)):null})})]}),$g=({end:e,getResult:t})=>{let{t:n}=Sa($d),[r,i]=(0,U.useState)(),[a,o]=(0,U.useState)(),[s,l]=(0,U.useState)(),u=As((null==s?void 0:s.node.type)==="task"?null==s?void 0:s.node.data.subtype:void 0);if((0,U.useEffect)(()=>{t().then(e=>{let t=function(e,t){let n=[],r=0,i={},a=0;for(;ae.node.id);i(e),o(t)})},[]),s&&u){let e=u.Task;if(e)return RJ(Ih,{children:[RK(Ip,{onClose:()=>l(void 0),children:s.node.data.name}),RK(If,{children:RK(e,{mode:"result",answer:"finished"===s.status?s.answer:void 0,result:"finished"===s.status?s.result:void 0,task:s.node.data})})]})}return RK(kt,{padding:"standard",children:RJ(kh,{gap:"standard",children:[RK(_r,{markdown:e.view.markdown}),r&&RK(kw,{textAlign:"center",textColor:"primary.600",fontSize:"xxlarge",children:n("points",{points:r.points,maxPoints:r.maxPoints})}),null==a?void 0:a.map((e,t)=>RK($m,{tries:e,onClick:l},t))]})})},$O=({name:e})=>{let{t}=Sa($d);return RK(U.Fragment,{children:RK(k5,{name:`${e}.view.markdown`,label:t("markdown"),defaultValue:"",render:({value:e,onChange:t})=>RK(_a,{value:e,variant:"input",onChange:e=>t(e)})})})},$b=Object.defineProperty,$y=Object.defineProperties,$v=Object.getOwnPropertyDescriptors,$x=Object.getOwnPropertySymbols,$T=Object.prototype.hasOwnProperty,$k=Object.prototype.propertyIsEnumerable,$_=(e,t,n)=>t in e?$b(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$S=(e,t)=>{for(var n in t||(t={}))$T.call(t,n)&&$_(e,n,t[n]);if($x)for(var n of $x(t))$k.call(t,n)&&$_(e,n,t[n]);return e},$w=(e,t)=>$y(e,$v(t)),$E=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),$C=["a","b","c","d","e","f","g","h"],$A=wq.enum($C),$R=w5.merge(wq.object({subtype:wq.literal("choice"),view:wq.object({instruction:wq.string(),variant:wq.enum(["multiple","single"]),choices:wq.array(wq.object({markdown:wq.string()})).nonempty()}),evaluation:w5.shape.evaluation.merge(wq.object({correct:wq.array($A)})),feedback:wq.object({patterns:wq.record(w2),choices:wq.record(wq.object({checkedFeedback:w2,notCheckedFeedback:w2}).partial())})})),$P=w3.merge(wq.object({subtype:wq.literal("choice"),choices:wq.record(wq.object({state:wq.enum(["wrong","correct","neutral"]),feedback:w2.optional()})),feedback:w2.optional()})),$I=w4.merge(wq.object({subtype:wq.literal("choice"),checked:wq.record(wq.boolean())})),$N=w9.merge(wq.object({subtype:wq.literal("choice"),patterns:wq.record(wq.object({count:wq.number().positive(),correct:wq.boolean()}))})),$$=e=>$E(void 0,[e],function*({answer:e,task:t}){var n;let r;let{view:i,evaluation:a,feedback:o}=t,s="unknown",l={},u="";return a&&"auto"===a.mode&&(s="correct",i.choices.forEach((t,n)=>{var r,i;let c=$C[n],d={state:"neutral"},h=(null==e?void 0:e.checked[c])||!1,p=a.correct.includes(c);if(h&&(u+=c),a.showFeedback){if(h){let e=null==(r=null==o?void 0:o.choices[c])?void 0:r.checkedFeedback;(null==e?void 0:e.message)&&(d.feedback=e)}else{let e=null==(i=null==o?void 0:o.choices[c])?void 0:i.notCheckedFeedback;(null==e?void 0:e.message)&&(d.feedback=e)}}h!==p?(d.state="wrong",s="wrong"):d.state="correct",l[c]=d}),u=u.split("").sort().join(""),a.showFeedback&&(null==o?void 0:o.patterns[u])&&(null==(n=null==o?void 0:o.patterns[u])?void 0:n.message)&&(r=null==o?void 0:o.patterns[u])),(null==a?void 0:a.mode)==="manual"&&(s="manual"),{subtype:"choice",state:s,choices:l,feedback:r,allowRetry:null==a?void 0:a.enableRetry}}),$L=({message:e,severity:t})=>af(kc,{severity:t},e),$D=({choice:e,checked:t,onChange:n,result:r})=>{let i="neutral.100";if(t)switch(null==r?void 0:r.state){case"correct":i="success.200";break;case"wrong":i="error.200"}return af(kt,null,af(kt,{role:"checkbox",display:"flex",padding:"standard",backgroundColor:i,borderRadius:"standard",boxShadow:"standard","aria-checked":t,tabIndex:0,cursor:"pointer",onKeyDown:function(e){" "===e.key&&(n(!t),e.stopPropagation(),e.preventDefault())},onClick:function(){n(!t)},css:e=>ag` :focus { box-shadow: ${e.shadows.outline}; } @@ -1656,7 +1656,7 @@ border-color: ${e.correct?n.colors.success["500"]:EF("#84C5F4","#DCEEFB",t/r.length)}; `,padding:"standard"},af(kt,{css:ag` cursor: help; - `,flex:"1",mr:"standard"},af(kw,{title:i(e.pattern)},e.pattern.toUpperCase().split("").join(" - "))),af(kw,{fontWeight:"bold"},e.count)))))},$U={checked:{}},$j=({choice:e,variant:t})=>({type:"check",payload:{choice:e,variant:t}}),$z=({choice:e,variant:t})=>({type:"uncheck",payload:{choice:e,variant:t}}),$W=({answer:e})=>({type:"answer",payload:{answer:e}}),$Z=P6((e,t)=>{switch(t.type){case"check":"single"===t.payload.variant&&(e.checked={}),e.checked[t.payload.choice]=!0;break;case"uncheck":"single"===t.payload.variant&&(e.checked={}),e.checked[t.payload.choice]=!1;break;case"answer":return t.payload.answer}}),$q=(0,U.forwardRef)(({task:e,mode:t,result:n,answer:r,onChange:i,onAction:a},o)=>{let[s,l]=(0,U.useReducer)($Z,$U),u=e=>{c()&&(a&&a(e),l(e))};(0,U.useEffect)(()=>{r&&l($W({answer:r}))},[r]),(0,U.useEffect)(()=>{i&&i({subtype:"choice",checked:s.checked})},[s]),(0,U.useImperativeHandle)(o,()=>({dispatch:l}));let c=()=>"recording"!==t&&"result"!==t,d=t=>{u($j({choice:t,variant:e.view.variant}))},h=t=>{u($z({choice:t,variant:e.view.variant}))},p=e=>t=>{t?d(e):h(e)};return af(kt,{padding:"standard"},af(kh,{gap:"standard"},af(_r,{markdown:e.view.instruction}),af(kh,{gap:"standard"},e.view.choices.filter(e=>e.markdown).map((e,t)=>af($D,{key:t,choice:(null==e?void 0:e.markdown)||"",result:null==n?void 0:n.choices[$C[t]],checked:s.checked[$C[t]]||!1,onChange:p($C[t])}))),(null==n?void 0:n.feedback)&&af($L,$S({},n.feedback))))}),$G=({answer:e,statistic:t,task:n})=>new Promise(r=>{var i,a;let o="";n.view.choices.forEach((t,n)=>{let r=$C[n],i=(null==e?void 0:e.checked[r])||!1;i&&(o+=r)});let s=n.evaluation.correct.sort().join("");o=o.split("").sort().join(""),r({subtype:"choice",count:((null==t?void 0:t.count)||0)+1,patterns:$w($S({},null==t?void 0:t.patterns),{[o]:{count:((null==(a=null==(i=null==t?void 0:t.patterns)?void 0:i[o])?void 0:a.count)||0)+1,correct:s===o}})})}),$H=()=>{let{t:e}=Sa($Q);return{name:e("name"),description:e("description"),example:{subtype:"choice",description:e("description"),evaluation:{correct:[],enableRetry:!1,mode:"auto",showFeedback:!1},feedback:{choices:{a:{checkedFeedback:{message:e("example.feedback.a.checked"),severity:"error"}},b:{notCheckedFeedback:{message:e("example.feedback.b.notChecked"),severity:"error"}}},patterns:{ac:{message:e("example.feedback.pattern.ac"),severity:"error"}}},name:e("name"),view:{choices:[{markdown:e("example.choice.a")},{markdown:e("example.choice.b")},{markdown:e("example.choice.c")},{markdown:e("example.choice.d")}],instruction:e("example.instruction"),variant:"multiple"}}}},$Y=({name:e})=>{let{t}=Sa($Q),{formState:n}=bi(),r=O7(n.errors,`${e}.choices`);return af(U.Fragment,null,af(k5,{name:`${e}.view.instruction`,label:t("instruction"),defaultValue:"",render:({value:e,onChange:t})=>af(_a,{value:e,variant:"input",onChange:e=>t(e)})}),af(k5,{name:`${e}.view.variant`,label:t("variant"),defaultValue:"single",render:({value:e,onChange:n,onBlur:r})=>af(_4,{value:e,onChange:n,onBlur:r},af("option",{value:"single"},t("variant-single")),af("option",{value:"multiple"},t("variant-multiple")))}),af(kt,{mt:"standard"},af(kh,{gap:"standard"},$C.map((n,r)=>af(k5,{name:`${e}.view.choices[${r}].markdown`,key:n,label:t("choice",{option:n}),defaultValue:"",render:({value:e,onChange:t})=>af(_a,{value:e,variant:"input",onChange:e=>t(e)})})),r&&af(kJ,null,t("one-choice-required")))))},$X=n(38456),$V=n(10043),$K=Object.defineProperty,$J=Object.getOwnPropertySymbols,$1=Object.prototype.hasOwnProperty,$0=Object.prototype.propertyIsEnumerable,$2=(e,t,n)=>t in e?$K(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$5=(e,t)=>{for(var n in t||(t={}))$1.call(t,n)&&$2(e,n,t[n]);if($J)for(var n of $J(t))$0.call(t,n)&&$2(e,n,t[n]);return e},$9=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),$4=e=>$9(void 0,[e],function*({answer:e,task:t}){let{evaluation:n,feedback:r}=t,i="unknown",a=[],o={};if(n&&"auto"===n.mode){let t=n.blanks;Object.entries(t).forEach(([t,s])=>{var l;let u=(null==(l=null==e?void 0:e.blanks)?void 0:l[t])||"";o[t]={state:"neutral"};try{let e=new RegExp(s);e.test(u)?("unknown"===i&&(i="correct"),o[t].state="correct"):(i="wrong",o[t].state="wrong")}catch(e){}n.showFeedback&&r.blanks[t]&&r.blanks[t].patterns.forEach(e=>{try{let t=new RegExp(e.pattern);t.test(u)&&(null==a||a.push(e.feedback))}catch(e){}})})}return(null==n?void 0:n.mode)==="manual"&&(i="manual"),{subtype:"fill-in-the-blank",state:i,blanks:o,feedback:a,allowRetry:null==n?void 0:n.enableRetry}}),$3=Rp({"en-GB":Rf({"add-pattern":"Add Pattern",answers:"Answers","delete-pattern":"Delete",description:"A task bit allowing to create fill in the blank texts. The text can be written in Markdown. The strike-through syntax will create a blank. The answers of a user can be automatically evaluated, if you provide regular expressions for the blanks. You can also provide feedback by using regular expression, as well.",error:"Error","example.blank.a":"[Bb]itflow","example.blank.a.feedback.message":"How is this library called?","example.blank.a.feedback.pattern":"^(?![Bb]itflow).*$","example.blank.b":"[Aa]ssessments|[Tt]ests","example.instruction":"Complete the sentence!","example.textWithBlanks":"~~a~~ is a library for creating and conducting flow-based ~~b~~.","feedback-for-blank":"Feedback for {blank}",info:"Info",instruction:"Instruction",message:"Message","statistic-most-frequent-answers":"Most frequent answers","statistic-most-frequent-answers-description":"Here you see the most frequent answer per blank. If you click on one you will see a ranking of answers for this blank.",name:"Fill in the blank",pattern:"Pattern {pattern}","pattern-error-duplicate":"A pattern can not contain duplicates","pattern-error-exists":"This pattern already exists","pattern-error-invalid":"Not a valid pattern","pattern-for-blank":"Pattern for {blank}","pattern-regex":"Pattern","pattern-regex-helper-text":"You can use a regular expression",patterns:"Patterns",severity:"Severity",success:"Success","text-with-blanks":"Text with blanks","text-with-blanks-helper-text":"A blank can be defined like so: ~~ID~~. Markdown is supported, but blanks do not work in advanced sections like code blocks.",up:"Up",warning:"Warning"}),en:Rf({"add-pattern":"Add Pattern",answers:"Answers","delete-pattern":"Delete",description:"A task bit allowing to create fill in the blank texts. The text can be written in Markdown. The strike-through syntax will create a blank. The answers of a user can be automatically evaluated, if you provide regular expressions for the blanks. You can also provide feedback by using regular expression, as well.",error:"Error","example.blank.a":"[Bb]itflow","example.blank.a.feedback.message":"How is this library called?","example.blank.a.feedback.pattern":"^(?![Bb]itflow).*$","example.blank.b":"[Aa]ssessments|[Tt]ests","example.instruction":"Complete the sentence!","example.textWithBlanks":"~~a~~ is a library for creating and conducting flow-based ~~b~~.","feedback-for-blank":"Feedback for {blank}",info:"Info",instruction:"Instruction",message:"Message","statistic-most-frequent-answers":"Most frequent answers","statistic-most-frequent-answers-description":"Here you see the most frequent answer per blank. If you click on one you will see a ranking of answers for this blank.",name:"Fill in the blank",pattern:"Pattern {pattern}","pattern-error-duplicate":"A pattern can not contain duplicates","pattern-error-exists":"This pattern already exists","pattern-error-invalid":"Not a valid pattern","pattern-for-blank":"Pattern for {blank}","pattern-regex":"Pattern","pattern-regex-helper-text":"You can use a regular expression",patterns:"Patterns",severity:"Severity",success:"Success","text-with-blanks":"Text with blanks","text-with-blanks-helper-text":"A blank can be defined like so: ~~ID~~. Markdown is supported, but blanks do not work in advanced sections like code blocks.",up:"Up",warning:"Warning"}),"en-US":Rf({"add-pattern":"Add Pattern",answers:"Answers","delete-pattern":"Delete",description:"A task bit allowing to create fill in the blank texts. The text can be written in Markdown. The strike-through syntax will create a blank. The answers of a user can be automatically evaluated, if you provide regular expressions for the blanks. You can also provide feedback by using regular expression, as well.",error:"Error","example.blank.a":"[Bb]itflow","example.blank.a.feedback.message":"How is this library called?","example.blank.a.feedback.pattern":"^(?![Bb]itflow).*$","example.blank.b":"[Aa]ssessments|[Tt]ests","example.instruction":"Complete the sentence!","example.textWithBlanks":"~~a~~ is a library for creating and conducting flow-based ~~b~~.","feedback-for-blank":"Feedback for {blank}",info:"Info",instruction:"Instruction",message:"Message","statistic-most-frequent-answers":"Most frequent answers","statistic-most-frequent-answers-description":"Here you see the most frequent answer per blank. If you click on one you will see a ranking of answers for this blank.",name:"Fill in the blank",pattern:"Pattern {pattern}","pattern-error-duplicate":"A pattern can not contain duplicates","pattern-error-exists":"This pattern already exists","pattern-error-invalid":"Not a valid pattern","pattern-for-blank":"Pattern for {blank}","pattern-regex":"Pattern","pattern-regex-helper-text":"You can use a regular expression",patterns:"Patterns",severity:"Severity",success:"Success","text-with-blanks":"Text with blanks","text-with-blanks-helper-text":"A blank can be defined like so: ~~ID~~. Markdown is supported, but blanks do not work in advanced sections like code blocks.",up:"Up",warning:"Warning"}),de:Rf({"add-pattern":"Add Pattern",answers:"Answers","delete-pattern":"Delete",description:"A task bit allowing to create fill in the blank texts. The text can be written in Markdown. The strike-through syntax will create a blank. The answers of a user can be automatically evaluated, if you provide regular expressions for the blanks. You can also provide feedback by using regular expression, as well.",error:"Error","example.blank.a":"[Bb]itflow","example.blank.a.feedback.message":"How is this library called?","example.blank.a.feedback.pattern":"^(?![Bb]itflow).*$","example.blank.b":"[Aa]ssessments|[Tt]ests","example.instruction":"Complete the sentence!","example.textWithBlanks":"~~a~~ is a library for creating and conducting flow-based ~~b~~.","feedback-for-blank":"Feedback for {blank}",info:"Info",instruction:"Instruction",message:"Message","statistic-most-frequent-answers":"Most frequent answers","statistic-most-frequent-answers-description":"Here you see the most frequent answer per blank. If you click on one you will see a ranking of answers for this blank.",name:"Fill in the blank",pattern:"Pattern {pattern}","pattern-error-duplicate":"A pattern can not contain duplicates","pattern-error-exists":"This pattern already exists","pattern-error-invalid":"Not a valid pattern","pattern-for-blank":"Pattern for {blank}","pattern-regex":"Pattern","pattern-regex-helper-text":"You can use a regular expression",patterns:"Patterns",severity:"Severity",success:"Success","text-with-blanks":"Text with blanks","text-with-blanks-helper-text":"A blank can be defined like so: ~~ID~~. Markdown is supported, but blanks do not work in advanced sections like code blocks.",up:"Up",warning:"Warning"}),fr:Rf({"add-pattern":"Add Pattern",answers:"Answers","delete-pattern":"Delete",description:"A task bit allowing to create fill in the blank texts. The text can be written in Markdown. The strike-through syntax will create a blank. The answers of a user can be automatically evaluated, if you provide regular expressions for the blanks. You can also provide feedback by using regular expression, as well.",error:"Error","example.blank.a":"[Bb]itflow","example.blank.a.feedback.message":"How is this library called?","example.blank.a.feedback.pattern":"^(?![Bb]itflow).*$","example.blank.b":"[Aa]ssessments|[Tt]ests","example.instruction":"Complete the sentence!","example.textWithBlanks":"~~a~~ is a library for creating and conducting flow-based ~~b~~.","feedback-for-blank":"Feedback for {blank}",info:"Info",instruction:"Instruction",message:"Message","statistic-most-frequent-answers":"Most frequent answers","statistic-most-frequent-answers-description":"Here you see the most frequent answer per blank. If you click on one you will see a ranking of answers for this blank.",name:"Fill in the blank",pattern:"Pattern {pattern}","pattern-error-duplicate":"A pattern can not contain duplicates","pattern-error-exists":"This pattern already exists","pattern-error-invalid":"Not a valid pattern","pattern-for-blank":"Pattern for {blank}","pattern-regex":"Pattern","pattern-regex-helper-text":"You can use a regular expression",patterns:"Patterns",severity:"Severity",success:"Success","text-with-blanks":"Text with blanks","text-with-blanks-helper-text":"A blank can be defined like so: ~~ID~~. Markdown is supported, but blanks do not work in advanced sections like code blocks.",up:"Up",warning:"Warning"}),es:Rf({"add-pattern":"Add Pattern",answers:"Answers","delete-pattern":"Delete",description:"A task bit allowing to create fill in the blank texts. The text can be written in Markdown. The strike-through syntax will create a blank. The answers of a user can be automatically evaluated, if you provide regular expressions for the blanks. You can also provide feedback by using regular expression, as well.",error:"Error","example.blank.a":"[Bb]itflow","example.blank.a.feedback.message":"How is this library called?","example.blank.a.feedback.pattern":"^(?![Bb]itflow).*$","example.blank.b":"[Aa]ssessments|[Tt]ests","example.instruction":"Complete the sentence!","example.textWithBlanks":"~~a~~ is a library for creating and conducting flow-based ~~b~~.","feedback-for-blank":"Feedback for {blank}",info:"Info",instruction:"Instruction",message:"Message","statistic-most-frequent-answers":"Most frequent answers","statistic-most-frequent-answers-description":"Here you see the most frequent answer per blank. If you click on one you will see a ranking of answers for this blank.",name:"Fill in the blank",pattern:"Pattern {pattern}","pattern-error-duplicate":"A pattern can not contain duplicates","pattern-error-exists":"This pattern already exists","pattern-error-invalid":"Not a valid pattern","pattern-for-blank":"Pattern for {blank}","pattern-regex":"Pattern","pattern-regex-helper-text":"You can use a regular expression",patterns:"Patterns",severity:"Severity",success:"Success","text-with-blanks":"Text with blanks","text-with-blanks-helper-text":"A blank can be defined like so: ~~ID~~. Markdown is supported, but blanks do not work in advanced sections like code blocks.",up:"Up",warning:"Warning"}),nl:Rf({"add-pattern":"Add Pattern",answers:"Answers","delete-pattern":"Delete",description:"A task bit allowing to create fill in the blank texts. The text can be written in Markdown. The strike-through syntax will create a blank. The answers of a user can be automatically evaluated, if you provide regular expressions for the blanks. You can also provide feedback by using regular expression, as well.",error:"Error","example.blank.a":"[Bb]itflow","example.blank.a.feedback.message":"How is this library called?","example.blank.a.feedback.pattern":"^(?![Bb]itflow).*$","example.blank.b":"[Aa]ssessments|[Tt]ests","example.instruction":"Complete the sentence!","example.textWithBlanks":"~~a~~ is a library for creating and conducting flow-based ~~b~~.","feedback-for-blank":"Feedback for {blank}",info:"Info",instruction:"Instruction",message:"Message","statistic-most-frequent-answers":"Most frequent answers","statistic-most-frequent-answers-description":"Here you see the most frequent answer per blank. If you click on one you will see a ranking of answers for this blank.",name:"Fill in the blank",pattern:"Pattern {pattern}","pattern-error-duplicate":"A pattern can not contain duplicates","pattern-error-exists":"This pattern already exists","pattern-error-invalid":"Not a valid pattern","pattern-for-blank":"Pattern for {blank}","pattern-regex":"Pattern","pattern-regex-helper-text":"You can use a regular expression",patterns:"Patterns",severity:"Severity",success:"Success","text-with-blanks":"Text with blanks","text-with-blanks-helper-text":"A blank can be defined like so: ~~ID~~. Markdown is supported, but blanks do not work in advanced sections like code blocks.",up:"Up",warning:"Warning"}),pt:Rf({"add-pattern":"Add Pattern",answers:"Answers","delete-pattern":"Delete",description:"A task bit allowing to create fill in the blank texts. The text can be written in Markdown. The strike-through syntax will create a blank. The answers of a user can be automatically evaluated, if you provide regular expressions for the blanks. You can also provide feedback by using regular expression, as well.",error:"Error","example.blank.a":"[Bb]itflow","example.blank.a.feedback.message":"How is this library called?","example.blank.a.feedback.pattern":"^(?![Bb]itflow).*$","example.blank.b":"[Aa]ssessments|[Tt]ests","example.instruction":"Complete the sentence!","example.textWithBlanks":"~~a~~ is a library for creating and conducting flow-based ~~b~~.","feedback-for-blank":"Feedback for {blank}",info:"Info",instruction:"Instruction",message:"Message","statistic-most-frequent-answers":"Most frequent answers","statistic-most-frequent-answers-description":"Here you see the most frequent answer per blank. If you click on one you will see a ranking of answers for this blank.",name:"Fill in the blank",pattern:"Pattern {pattern}","pattern-error-duplicate":"A pattern can not contain duplicates","pattern-error-exists":"This pattern already exists","pattern-error-invalid":"Not a valid pattern","pattern-for-blank":"Pattern for {blank}","pattern-regex":"Pattern","pattern-regex-helper-text":"You can use a regular expression",patterns:"Patterns",severity:"Severity",success:"Success","text-with-blanks":"Text with blanks","text-with-blanks-helper-text":"A blank can be defined like so: ~~ID~~. Markdown is supported, but blanks do not work in advanced sections like code blocks.",up:"Up",warning:"Warning"}),tr:Rf({"add-pattern":"Add Pattern",answers:"Answers","delete-pattern":"Delete",description:"A task bit allowing to create fill in the blank texts. The text can be written in Markdown. The strike-through syntax will create a blank. The answers of a user can be automatically evaluated, if you provide regular expressions for the blanks. You can also provide feedback by using regular expression, as well.",error:"Error","example.blank.a":"[Bb]itflow","example.blank.a.feedback.message":"How is this library called?","example.blank.a.feedback.pattern":"^(?![Bb]itflow).*$","example.blank.b":"[Aa]ssessments|[Tt]ests","example.instruction":"Complete the sentence!","example.textWithBlanks":"~~a~~ is a library for creating and conducting flow-based ~~b~~.","feedback-for-blank":"Feedback for {blank}",info:"Info",instruction:"Instruction",message:"Message","statistic-most-frequent-answers":"Most frequent answers","statistic-most-frequent-answers-description":"Here you see the most frequent answer per blank. If you click on one you will see a ranking of answers for this blank.",name:"Fill in the blank",pattern:"Pattern {pattern}","pattern-error-duplicate":"A pattern can not contain duplicates","pattern-error-exists":"This pattern already exists","pattern-error-invalid":"Not a valid pattern","pattern-for-blank":"Pattern for {blank}","pattern-regex":"Pattern","pattern-regex-helper-text":"You can use a regular expression",patterns:"Patterns",severity:"Severity",success:"Success","text-with-blanks":"Text with blanks","text-with-blanks-helper-text":"A blank can be defined like so: ~~ID~~. Markdown is supported, but blanks do not work in advanced sections like code blocks.",up:"Up",warning:"Warning"})}),$8=/~~[A-z]+~~/g,$6=({name:e})=>{var t;let{t:n}=Sa($3),{getValues:r}=bi(),i=r(`${e}.view.textWithBlanks`),a=(null==(t=i.match($8))?void 0:t.map(e=>e.substring(2,e.length-2)))||[];return af(U.Fragment,null,a.map(t=>af(k5,{key:t,name:`${e}.evaluation.blanks.${t}`,defaultValue:"",helperText:n("pattern-regex-helper-text"),label:n("pattern-for-blank",{blank:t}),render:kK})))},$7=/~~[A-z]+~~/g,Le=({name:e,blank:t})=>{let{t:n}=Sa($3),{control:r}=bi(),{fields:i,append:a,remove:o}=bG({control:r,name:`${e}.feedback.blanks.${t}.patterns`});return af(U.Fragment,null,af(kE,{as:"h2",fontSize:"xlarge"},n("feedback-for-blank",{blank:t})),i.map((r,i)=>af(kt,{mb:"standard",key:r.id},af(kt,{display:"flex",width:"100%",alignItems:"center"},af(kt,{flex:"1"},af(kE,{as:"h3",fontSize:"large"},n("pattern",{pattern:i.toString()}))),af(k_,{tone:"error",onClick:()=>o(i)},n("delete-pattern"))),af(k5,{name:`${e}.feedback.blanks.${t}.patterns[${i}].pattern`,label:n("pattern-regex"),defaultValue:"",render:kK}),af(k5,{name:`${e}.feedback.blanks.${t}.patterns[${i}].feedback.message`,defaultValue:"",label:n("message"),render:({value:e,onChange:t,onBlur:n})=>af(_a,{value:e,variant:"input",onChange:e=>t(e)})}),af(k5,{name:`${e}.feedback.blanks.${t}.patterns[${i}].feedback.severity`,defaultValue:"error",label:n("severity"),render:({value:e,onChange:t,onBlur:r})=>af(U.Fragment,null,af(_4,{value:e,onChange:t,onBlur:r},af("option",{value:"error"},n("error")),af("option",{value:"warning"},n("warning")),af("option",{value:"info"},n("info")),af("option",{value:"success"},n("success"))))}),af(kt,{paddingY:"standard"},af(kX,null)))),af(kt,{mb:"standard"},af(k_,{fullWidth:!0,onClick:()=>a({pattern:"",feedback:{severity:"error",message:""}})},n("add-pattern"))))},Lt=({name:e})=>{var t;let{getValues:n}=bi(),r=n(`${e}.view.textWithBlanks`)||"",i=(null==(t=r.match($7))?void 0:t.map(e=>e.substring(2,e.length-2)))||[];return af(U.Fragment,null,i.map(t=>af(Le,{key:t,name:e,blank:t})))},Ln=w5.merge(ww({subtype:wQ("fill-in-the-blank"),view:ww({instruction:wh(),textWithBlanks:wh()}),evaluation:w5.shape.evaluation.merge(ww({blanks:wI(wh().refine(e=>{try{return new RegExp(e),!0}catch(e){return!1}},{message:"Pattern must be a valid regular expression"}))})),feedback:ww({blanks:wI(ww({patterns:wS(ww({pattern:wh().refine(e=>{try{return new RegExp(e),!0}catch(e){return!1}},{message:"Pattern must be a valid regular expression"}),feedback:w2}))}))})})),Lr=w9.merge(ww({subtype:wQ("fill-in-the-blank"),blanks:wI(wI(ww({correct:wg(),count:wp()})))})),Li=w3.merge(ww({subtype:wQ("fill-in-the-blank"),blanks:wI(ww({state:wM(["neutral","wrong","correct"]),feedback:w2.optional()})),feedback:wS(w2)})),La=w4.merge(ww({subtype:wQ("fill-in-the-blank"),blanks:wI(wh())})),Lo=(0,U.createContext)({select:()=>null,blanks:{}}),Ls=e=>{let{blanks:t}=(0,U.useContext)(Lo),n=Object.entries(t[e]).map(([e,t])=>$5({value:e},t));return{result:n}},Ll=e=>{let{blanks:t,select:n}=(0,U.useContext)(Lo),r=Object.entries(t[e]).reduce((e,t)=>e[1].count>t[1].count?e:t);return{select:()=>n(e),result:$5({value:r[0]},r[1])}},Lu=({id:e})=>{let{t}=Sa($3),{result:n}=Ls(e);return af(kh,{gap:"standard"},af(kE,{as:"h3"},t("answers")),n.sort((e,t)=>t.count-e.count).map((e,t)=>af(kt,{key:e.value,display:"flex",borderRadius:"standard",borderStyle:"solid",borderWidth:"light",css:r=>ag` + `,flex:"1",mr:"standard"},af(kw,{title:i(e.pattern)},e.pattern.toUpperCase().split("").join(" - "))),af(kw,{fontWeight:"bold"},e.count)))))},$U={checked:{}},$z=({choice:e,variant:t})=>({type:"check",payload:{choice:e,variant:t}}),$j=({choice:e,variant:t})=>({type:"uncheck",payload:{choice:e,variant:t}}),$W=({answer:e})=>({type:"answer",payload:{answer:e}}),$Z=P6((e,t)=>{switch(t.type){case"check":"single"===t.payload.variant&&(e.checked={}),e.checked[t.payload.choice]=!0;break;case"uncheck":"single"===t.payload.variant&&(e.checked={}),e.checked[t.payload.choice]=!1;break;case"answer":return t.payload.answer}}),$q=(0,U.forwardRef)(({task:e,mode:t,result:n,answer:r,onChange:i,onAction:a},o)=>{let[s,l]=(0,U.useReducer)($Z,$U),u=e=>{c()&&(a&&a(e),l(e))};(0,U.useEffect)(()=>{r&&l($W({answer:r}))},[r]),(0,U.useEffect)(()=>{i&&i({subtype:"choice",checked:s.checked})},[s]),(0,U.useImperativeHandle)(o,()=>({dispatch:l}));let c=()=>"recording"!==t&&"result"!==t,d=t=>{u($z({choice:t,variant:e.view.variant}))},h=t=>{u($j({choice:t,variant:e.view.variant}))},p=e=>t=>{t?d(e):h(e)};return af(kt,{padding:"standard"},af(kh,{gap:"standard"},af(_r,{markdown:e.view.instruction}),af(kh,{gap:"standard"},e.view.choices.filter(e=>e.markdown).map((e,t)=>af($D,{key:t,choice:(null==e?void 0:e.markdown)||"",result:null==n?void 0:n.choices[$C[t]],checked:s.checked[$C[t]]||!1,onChange:p($C[t])}))),(null==n?void 0:n.feedback)&&af($L,$S({},n.feedback))))}),$G=({answer:e,statistic:t,task:n})=>new Promise(r=>{var i,a;let o="";n.view.choices.forEach((t,n)=>{let r=$C[n],i=(null==e?void 0:e.checked[r])||!1;i&&(o+=r)});let s=n.evaluation.correct.sort().join("");o=o.split("").sort().join(""),r({subtype:"choice",count:((null==t?void 0:t.count)||0)+1,patterns:$w($S({},null==t?void 0:t.patterns),{[o]:{count:((null==(a=null==(i=null==t?void 0:t.patterns)?void 0:i[o])?void 0:a.count)||0)+1,correct:s===o}})})}),$H=()=>{let{t:e}=Sa($Q);return{name:e("name"),description:e("description"),example:{subtype:"choice",description:e("description"),evaluation:{correct:[],enableRetry:!1,mode:"auto",showFeedback:!1},feedback:{choices:{a:{checkedFeedback:{message:e("example.feedback.a.checked"),severity:"error"}},b:{notCheckedFeedback:{message:e("example.feedback.b.notChecked"),severity:"error"}}},patterns:{ac:{message:e("example.feedback.pattern.ac"),severity:"error"}}},name:e("name"),view:{choices:[{markdown:e("example.choice.a")},{markdown:e("example.choice.b")},{markdown:e("example.choice.c")},{markdown:e("example.choice.d")}],instruction:e("example.instruction"),variant:"multiple"}}}},$Y=({name:e})=>{let{t}=Sa($Q),{formState:n}=bi(),r=O7(n.errors,`${e}.choices`);return af(U.Fragment,null,af(k5,{name:`${e}.view.instruction`,label:t("instruction"),defaultValue:"",render:({value:e,onChange:t})=>af(_a,{value:e,variant:"input",onChange:e=>t(e)})}),af(k5,{name:`${e}.view.variant`,label:t("variant"),defaultValue:"single",render:({value:e,onChange:n,onBlur:r})=>af(_4,{value:e,onChange:n,onBlur:r},af("option",{value:"single"},t("variant-single")),af("option",{value:"multiple"},t("variant-multiple")))}),af(kt,{mt:"standard"},af(kh,{gap:"standard"},$C.map((n,r)=>af(k5,{name:`${e}.view.choices[${r}].markdown`,key:n,label:t("choice",{option:n}),defaultValue:"",render:({value:e,onChange:t})=>af(_a,{value:e,variant:"input",onChange:e=>t(e)})})),r&&af(kJ,null,t("one-choice-required")))))},$X=n(38456),$V=n(10043),$K=Object.defineProperty,$J=Object.getOwnPropertySymbols,$1=Object.prototype.hasOwnProperty,$0=Object.prototype.propertyIsEnumerable,$2=(e,t,n)=>t in e?$K(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$5=(e,t)=>{for(var n in t||(t={}))$1.call(t,n)&&$2(e,n,t[n]);if($J)for(var n of $J(t))$0.call(t,n)&&$2(e,n,t[n]);return e},$9=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),$4=e=>$9(void 0,[e],function*({answer:e,task:t}){let{evaluation:n,feedback:r}=t,i="unknown",a=[],o={};if(n&&"auto"===n.mode){let t=n.blanks;Object.entries(t).forEach(([t,s])=>{var l;let u=(null==(l=null==e?void 0:e.blanks)?void 0:l[t])||"";o[t]={state:"neutral"};try{let e=new RegExp(s);e.test(u)?("unknown"===i&&(i="correct"),o[t].state="correct"):(i="wrong",o[t].state="wrong")}catch(e){}n.showFeedback&&r.blanks[t]&&r.blanks[t].patterns.forEach(e=>{try{let t=new RegExp(e.pattern);t.test(u)&&(null==a||a.push(e.feedback))}catch(e){}})})}return(null==n?void 0:n.mode)==="manual"&&(i="manual"),{subtype:"fill-in-the-blank",state:i,blanks:o,feedback:a,allowRetry:null==n?void 0:n.enableRetry}}),$3=Rp({"en-GB":Rf({"add-pattern":"Add Pattern",answers:"Answers","delete-pattern":"Delete",description:"A task bit allowing to create fill in the blank texts. The text can be written in Markdown. The strike-through syntax will create a blank. The answers of a user can be automatically evaluated, if you provide regular expressions for the blanks. You can also provide feedback by using regular expression, as well.",error:"Error","example.blank.a":"[Bb]itflow","example.blank.a.feedback.message":"How is this library called?","example.blank.a.feedback.pattern":"^(?![Bb]itflow).*$","example.blank.b":"[Aa]ssessments|[Tt]ests","example.instruction":"Complete the sentence!","example.textWithBlanks":"~~a~~ is a library for creating and conducting flow-based ~~b~~.","feedback-for-blank":"Feedback for {blank}",info:"Info",instruction:"Instruction",message:"Message","statistic-most-frequent-answers":"Most frequent answers","statistic-most-frequent-answers-description":"Here you see the most frequent answer per blank. If you click on one you will see a ranking of answers for this blank.",name:"Fill in the blank",pattern:"Pattern {pattern}","pattern-error-duplicate":"A pattern can not contain duplicates","pattern-error-exists":"This pattern already exists","pattern-error-invalid":"Not a valid pattern","pattern-for-blank":"Pattern for {blank}","pattern-regex":"Pattern","pattern-regex-helper-text":"You can use a regular expression",patterns:"Patterns",severity:"Severity",success:"Success","text-with-blanks":"Text with blanks","text-with-blanks-helper-text":"A blank can be defined like so: ~~ID~~. Markdown is supported, but blanks do not work in advanced sections like code blocks.",up:"Up",warning:"Warning"}),en:Rf({"add-pattern":"Add Pattern",answers:"Answers","delete-pattern":"Delete",description:"A task bit allowing to create fill in the blank texts. The text can be written in Markdown. The strike-through syntax will create a blank. The answers of a user can be automatically evaluated, if you provide regular expressions for the blanks. You can also provide feedback by using regular expression, as well.",error:"Error","example.blank.a":"[Bb]itflow","example.blank.a.feedback.message":"How is this library called?","example.blank.a.feedback.pattern":"^(?![Bb]itflow).*$","example.blank.b":"[Aa]ssessments|[Tt]ests","example.instruction":"Complete the sentence!","example.textWithBlanks":"~~a~~ is a library for creating and conducting flow-based ~~b~~.","feedback-for-blank":"Feedback for {blank}",info:"Info",instruction:"Instruction",message:"Message","statistic-most-frequent-answers":"Most frequent answers","statistic-most-frequent-answers-description":"Here you see the most frequent answer per blank. If you click on one you will see a ranking of answers for this blank.",name:"Fill in the blank",pattern:"Pattern {pattern}","pattern-error-duplicate":"A pattern can not contain duplicates","pattern-error-exists":"This pattern already exists","pattern-error-invalid":"Not a valid pattern","pattern-for-blank":"Pattern for {blank}","pattern-regex":"Pattern","pattern-regex-helper-text":"You can use a regular expression",patterns:"Patterns",severity:"Severity",success:"Success","text-with-blanks":"Text with blanks","text-with-blanks-helper-text":"A blank can be defined like so: ~~ID~~. Markdown is supported, but blanks do not work in advanced sections like code blocks.",up:"Up",warning:"Warning"}),"en-US":Rf({"add-pattern":"Add Pattern",answers:"Answers","delete-pattern":"Delete",description:"A task bit allowing to create fill in the blank texts. The text can be written in Markdown. The strike-through syntax will create a blank. The answers of a user can be automatically evaluated, if you provide regular expressions for the blanks. You can also provide feedback by using regular expression, as well.",error:"Error","example.blank.a":"[Bb]itflow","example.blank.a.feedback.message":"How is this library called?","example.blank.a.feedback.pattern":"^(?![Bb]itflow).*$","example.blank.b":"[Aa]ssessments|[Tt]ests","example.instruction":"Complete the sentence!","example.textWithBlanks":"~~a~~ is a library for creating and conducting flow-based ~~b~~.","feedback-for-blank":"Feedback for {blank}",info:"Info",instruction:"Instruction",message:"Message","statistic-most-frequent-answers":"Most frequent answers","statistic-most-frequent-answers-description":"Here you see the most frequent answer per blank. If you click on one you will see a ranking of answers for this blank.",name:"Fill in the blank",pattern:"Pattern {pattern}","pattern-error-duplicate":"A pattern can not contain duplicates","pattern-error-exists":"This pattern already exists","pattern-error-invalid":"Not a valid pattern","pattern-for-blank":"Pattern for {blank}","pattern-regex":"Pattern","pattern-regex-helper-text":"You can use a regular expression",patterns:"Patterns",severity:"Severity",success:"Success","text-with-blanks":"Text with blanks","text-with-blanks-helper-text":"A blank can be defined like so: ~~ID~~. Markdown is supported, but blanks do not work in advanced sections like code blocks.",up:"Up",warning:"Warning"}),de:Rf({"add-pattern":"Add Pattern",answers:"Answers","delete-pattern":"Delete",description:"A task bit allowing to create fill in the blank texts. The text can be written in Markdown. The strike-through syntax will create a blank. The answers of a user can be automatically evaluated, if you provide regular expressions for the blanks. You can also provide feedback by using regular expression, as well.",error:"Error","example.blank.a":"[Bb]itflow","example.blank.a.feedback.message":"How is this library called?","example.blank.a.feedback.pattern":"^(?![Bb]itflow).*$","example.blank.b":"[Aa]ssessments|[Tt]ests","example.instruction":"Complete the sentence!","example.textWithBlanks":"~~a~~ is a library for creating and conducting flow-based ~~b~~.","feedback-for-blank":"Feedback for {blank}",info:"Info",instruction:"Instruction",message:"Message","statistic-most-frequent-answers":"Most frequent answers","statistic-most-frequent-answers-description":"Here you see the most frequent answer per blank. If you click on one you will see a ranking of answers for this blank.",name:"Fill in the blank",pattern:"Pattern {pattern}","pattern-error-duplicate":"A pattern can not contain duplicates","pattern-error-exists":"This pattern already exists","pattern-error-invalid":"Not a valid pattern","pattern-for-blank":"Pattern for {blank}","pattern-regex":"Pattern","pattern-regex-helper-text":"You can use a regular expression",patterns:"Patterns",severity:"Severity",success:"Success","text-with-blanks":"Text with blanks","text-with-blanks-helper-text":"A blank can be defined like so: ~~ID~~. Markdown is supported, but blanks do not work in advanced sections like code blocks.",up:"Up",warning:"Warning"}),fr:Rf({"add-pattern":"Add Pattern",answers:"Answers","delete-pattern":"Delete",description:"A task bit allowing to create fill in the blank texts. The text can be written in Markdown. The strike-through syntax will create a blank. The answers of a user can be automatically evaluated, if you provide regular expressions for the blanks. You can also provide feedback by using regular expression, as well.",error:"Error","example.blank.a":"[Bb]itflow","example.blank.a.feedback.message":"How is this library called?","example.blank.a.feedback.pattern":"^(?![Bb]itflow).*$","example.blank.b":"[Aa]ssessments|[Tt]ests","example.instruction":"Complete the sentence!","example.textWithBlanks":"~~a~~ is a library for creating and conducting flow-based ~~b~~.","feedback-for-blank":"Feedback for {blank}",info:"Info",instruction:"Instruction",message:"Message","statistic-most-frequent-answers":"Most frequent answers","statistic-most-frequent-answers-description":"Here you see the most frequent answer per blank. If you click on one you will see a ranking of answers for this blank.",name:"Fill in the blank",pattern:"Pattern {pattern}","pattern-error-duplicate":"A pattern can not contain duplicates","pattern-error-exists":"This pattern already exists","pattern-error-invalid":"Not a valid pattern","pattern-for-blank":"Pattern for {blank}","pattern-regex":"Pattern","pattern-regex-helper-text":"You can use a regular expression",patterns:"Patterns",severity:"Severity",success:"Success","text-with-blanks":"Text with blanks","text-with-blanks-helper-text":"A blank can be defined like so: ~~ID~~. Markdown is supported, but blanks do not work in advanced sections like code blocks.",up:"Up",warning:"Warning"}),es:Rf({"add-pattern":"Add Pattern",answers:"Answers","delete-pattern":"Delete",description:"A task bit allowing to create fill in the blank texts. The text can be written in Markdown. The strike-through syntax will create a blank. The answers of a user can be automatically evaluated, if you provide regular expressions for the blanks. You can also provide feedback by using regular expression, as well.",error:"Error","example.blank.a":"[Bb]itflow","example.blank.a.feedback.message":"How is this library called?","example.blank.a.feedback.pattern":"^(?![Bb]itflow).*$","example.blank.b":"[Aa]ssessments|[Tt]ests","example.instruction":"Complete the sentence!","example.textWithBlanks":"~~a~~ is a library for creating and conducting flow-based ~~b~~.","feedback-for-blank":"Feedback for {blank}",info:"Info",instruction:"Instruction",message:"Message","statistic-most-frequent-answers":"Most frequent answers","statistic-most-frequent-answers-description":"Here you see the most frequent answer per blank. If you click on one you will see a ranking of answers for this blank.",name:"Fill in the blank",pattern:"Pattern {pattern}","pattern-error-duplicate":"A pattern can not contain duplicates","pattern-error-exists":"This pattern already exists","pattern-error-invalid":"Not a valid pattern","pattern-for-blank":"Pattern for {blank}","pattern-regex":"Pattern","pattern-regex-helper-text":"You can use a regular expression",patterns:"Patterns",severity:"Severity",success:"Success","text-with-blanks":"Text with blanks","text-with-blanks-helper-text":"A blank can be defined like so: ~~ID~~. Markdown is supported, but blanks do not work in advanced sections like code blocks.",up:"Up",warning:"Warning"}),nl:Rf({"add-pattern":"Add Pattern",answers:"Answers","delete-pattern":"Delete",description:"A task bit allowing to create fill in the blank texts. The text can be written in Markdown. The strike-through syntax will create a blank. The answers of a user can be automatically evaluated, if you provide regular expressions for the blanks. You can also provide feedback by using regular expression, as well.",error:"Error","example.blank.a":"[Bb]itflow","example.blank.a.feedback.message":"How is this library called?","example.blank.a.feedback.pattern":"^(?![Bb]itflow).*$","example.blank.b":"[Aa]ssessments|[Tt]ests","example.instruction":"Complete the sentence!","example.textWithBlanks":"~~a~~ is a library for creating and conducting flow-based ~~b~~.","feedback-for-blank":"Feedback for {blank}",info:"Info",instruction:"Instruction",message:"Message","statistic-most-frequent-answers":"Most frequent answers","statistic-most-frequent-answers-description":"Here you see the most frequent answer per blank. If you click on one you will see a ranking of answers for this blank.",name:"Fill in the blank",pattern:"Pattern {pattern}","pattern-error-duplicate":"A pattern can not contain duplicates","pattern-error-exists":"This pattern already exists","pattern-error-invalid":"Not a valid pattern","pattern-for-blank":"Pattern for {blank}","pattern-regex":"Pattern","pattern-regex-helper-text":"You can use a regular expression",patterns:"Patterns",severity:"Severity",success:"Success","text-with-blanks":"Text with blanks","text-with-blanks-helper-text":"A blank can be defined like so: ~~ID~~. Markdown is supported, but blanks do not work in advanced sections like code blocks.",up:"Up",warning:"Warning"}),pt:Rf({"add-pattern":"Add Pattern",answers:"Answers","delete-pattern":"Delete",description:"A task bit allowing to create fill in the blank texts. The text can be written in Markdown. The strike-through syntax will create a blank. The answers of a user can be automatically evaluated, if you provide regular expressions for the blanks. You can also provide feedback by using regular expression, as well.",error:"Error","example.blank.a":"[Bb]itflow","example.blank.a.feedback.message":"How is this library called?","example.blank.a.feedback.pattern":"^(?![Bb]itflow).*$","example.blank.b":"[Aa]ssessments|[Tt]ests","example.instruction":"Complete the sentence!","example.textWithBlanks":"~~a~~ is a library for creating and conducting flow-based ~~b~~.","feedback-for-blank":"Feedback for {blank}",info:"Info",instruction:"Instruction",message:"Message","statistic-most-frequent-answers":"Most frequent answers","statistic-most-frequent-answers-description":"Here you see the most frequent answer per blank. If you click on one you will see a ranking of answers for this blank.",name:"Fill in the blank",pattern:"Pattern {pattern}","pattern-error-duplicate":"A pattern can not contain duplicates","pattern-error-exists":"This pattern already exists","pattern-error-invalid":"Not a valid pattern","pattern-for-blank":"Pattern for {blank}","pattern-regex":"Pattern","pattern-regex-helper-text":"You can use a regular expression",patterns:"Patterns",severity:"Severity",success:"Success","text-with-blanks":"Text with blanks","text-with-blanks-helper-text":"A blank can be defined like so: ~~ID~~. Markdown is supported, but blanks do not work in advanced sections like code blocks.",up:"Up",warning:"Warning"}),tr:Rf({"add-pattern":"Add Pattern",answers:"Answers","delete-pattern":"Delete",description:"A task bit allowing to create fill in the blank texts. The text can be written in Markdown. The strike-through syntax will create a blank. The answers of a user can be automatically evaluated, if you provide regular expressions for the blanks. You can also provide feedback by using regular expression, as well.",error:"Error","example.blank.a":"[Bb]itflow","example.blank.a.feedback.message":"How is this library called?","example.blank.a.feedback.pattern":"^(?![Bb]itflow).*$","example.blank.b":"[Aa]ssessments|[Tt]ests","example.instruction":"Complete the sentence!","example.textWithBlanks":"~~a~~ is a library for creating and conducting flow-based ~~b~~.","feedback-for-blank":"Feedback for {blank}",info:"Info",instruction:"Instruction",message:"Message","statistic-most-frequent-answers":"Most frequent answers","statistic-most-frequent-answers-description":"Here you see the most frequent answer per blank. If you click on one you will see a ranking of answers for this blank.",name:"Fill in the blank",pattern:"Pattern {pattern}","pattern-error-duplicate":"A pattern can not contain duplicates","pattern-error-exists":"This pattern already exists","pattern-error-invalid":"Not a valid pattern","pattern-for-blank":"Pattern for {blank}","pattern-regex":"Pattern","pattern-regex-helper-text":"You can use a regular expression",patterns:"Patterns",severity:"Severity",success:"Success","text-with-blanks":"Text with blanks","text-with-blanks-helper-text":"A blank can be defined like so: ~~ID~~. Markdown is supported, but blanks do not work in advanced sections like code blocks.",up:"Up",warning:"Warning"})}),$8=/~~[A-z]+~~/g,$6=({name:e})=>{var t;let{t:n}=Sa($3),{getValues:r}=bi(),i=r(`${e}.view.textWithBlanks`),a=(null==(t=i.match($8))?void 0:t.map(e=>e.substring(2,e.length-2)))||[];return af(U.Fragment,null,a.map(t=>af(k5,{key:t,name:`${e}.evaluation.blanks.${t}`,defaultValue:"",helperText:n("pattern-regex-helper-text"),label:n("pattern-for-blank",{blank:t}),render:kK})))},$7=/~~[A-z]+~~/g,Le=({name:e,blank:t})=>{let{t:n}=Sa($3),{control:r}=bi(),{fields:i,append:a,remove:o}=bG({control:r,name:`${e}.feedback.blanks.${t}.patterns`});return af(U.Fragment,null,af(kE,{as:"h2",fontSize:"xlarge"},n("feedback-for-blank",{blank:t})),i.map((r,i)=>af(kt,{mb:"standard",key:r.id},af(kt,{display:"flex",width:"100%",alignItems:"center"},af(kt,{flex:"1"},af(kE,{as:"h3",fontSize:"large"},n("pattern",{pattern:i.toString()}))),af(k_,{tone:"error",onClick:()=>o(i)},n("delete-pattern"))),af(k5,{name:`${e}.feedback.blanks.${t}.patterns[${i}].pattern`,label:n("pattern-regex"),defaultValue:"",render:kK}),af(k5,{name:`${e}.feedback.blanks.${t}.patterns[${i}].feedback.message`,defaultValue:"",label:n("message"),render:({value:e,onChange:t,onBlur:n})=>af(_a,{value:e,variant:"input",onChange:e=>t(e)})}),af(k5,{name:`${e}.feedback.blanks.${t}.patterns[${i}].feedback.severity`,defaultValue:"error",label:n("severity"),render:({value:e,onChange:t,onBlur:r})=>af(U.Fragment,null,af(_4,{value:e,onChange:t,onBlur:r},af("option",{value:"error"},n("error")),af("option",{value:"warning"},n("warning")),af("option",{value:"info"},n("info")),af("option",{value:"success"},n("success"))))}),af(kt,{paddingY:"standard"},af(kX,null)))),af(kt,{mb:"standard"},af(k_,{fullWidth:!0,onClick:()=>a({pattern:"",feedback:{severity:"error",message:""}})},n("add-pattern"))))},Lt=({name:e})=>{var t;let{getValues:n}=bi(),r=n(`${e}.view.textWithBlanks`)||"",i=(null==(t=r.match($7))?void 0:t.map(e=>e.substring(2,e.length-2)))||[];return af(U.Fragment,null,i.map(t=>af(Le,{key:t,name:e,blank:t})))},Ln=w5.merge(ww({subtype:wQ("fill-in-the-blank"),view:ww({instruction:wh(),textWithBlanks:wh()}),evaluation:w5.shape.evaluation.merge(ww({blanks:wI(wh().refine(e=>{try{return new RegExp(e),!0}catch(e){return!1}},{message:"Pattern must be a valid regular expression"}))})),feedback:ww({blanks:wI(ww({patterns:wS(ww({pattern:wh().refine(e=>{try{return new RegExp(e),!0}catch(e){return!1}},{message:"Pattern must be a valid regular expression"}),feedback:w2}))}))})})),Lr=w9.merge(ww({subtype:wQ("fill-in-the-blank"),blanks:wI(wI(ww({correct:wg(),count:wp()})))})),Li=w3.merge(ww({subtype:wQ("fill-in-the-blank"),blanks:wI(ww({state:wM(["neutral","wrong","correct"]),feedback:w2.optional()})),feedback:wS(w2)})),La=w4.merge(ww({subtype:wQ("fill-in-the-blank"),blanks:wI(wh())})),Lo=(0,U.createContext)({select:()=>null,blanks:{}}),Ls=e=>{let{blanks:t}=(0,U.useContext)(Lo),n=Object.entries(t[e]).map(([e,t])=>$5({value:e},t));return{result:n}},Ll=e=>{let{blanks:t,select:n}=(0,U.useContext)(Lo),r=Object.entries(t[e]).reduce((e,t)=>e[1].count>t[1].count?e:t);return{select:()=>n(e),result:$5({value:r[0]},r[1])}},Lu=({id:e})=>{let{t}=Sa($3),{result:n}=Ls(e);return af(kh,{gap:"standard"},af(kE,{as:"h3"},t("answers")),n.sort((e,t)=>t.count-e.count).map((e,t)=>af(kt,{key:e.value,display:"flex",borderRadius:"standard",borderStyle:"solid",borderWidth:"light",css:r=>ag` border-color: ${e.correct?r.colors.success["500"]:EF("#84C5F4","#DCEEFB",t/n.length)}; `,padding:"standard"},af(kt,{flex:"1",mr:"standard"},af(kw,null,e.value)),af(kw,{fontWeight:"bold"},e.count))))},Lc={del:({node:e})=>{var t,n;let r=null==(n=null==(t=null==e?void 0:e.children)?void 0:t[0])?void 0:n.value;if(!r)return af("div",null,"ERROR missing ID");let{result:i,select:a}=Ll(r);return af("button",{onClick:a,css:e=>[ag` background-color: ${e.colors.neutral["100"]}; @@ -1680,7 +1680,7 @@ `],value:i,onChange:e=>o(e.target.value)})},code:({className:e,children:t})=>{var n;let r=null==(n=null==e?void 0:e.split("language-"))?void 0:n[1];return af(kq,{language:r},t)}},Lv=(0,U.forwardRef)(({task:e,mode:t,result:n,answer:r,onChange:i,onAction:a},o)=>{var s;let[l,u]=(0,U.useReducer)(Lg,Lp);(0,U.useEffect)(()=>{r&&u(Lm({answer:r}))},[r]),(0,U.useEffect)(()=>{i&&i({subtype:"fill-in-the-blank",blanks:l.blanks})},[l]),(0,U.useImperativeHandle)(o,()=>({dispatch:u}));let c=()=>"recording"!==t&&"result"!==t,d={};return Object.entries(l.blanks).map(([e,t])=>{d[e]={value:t}}),af(kt,{padding:"standard"},af(kh,{gap:"standard"},af(_r,{markdown:e.view.instruction}),af(LO.Provider,{value:{dispatch:e=>{c()&&(a&&a(e),u(e))},state:l,result:n}},af($X,{remarkPlugins:[$V],components:Ly,children:e.view.textWithBlanks})),null==(s=null==n?void 0:n.feedback)?void 0:s.map((e,t)=>af(Lh,$5({key:t},e)))))}),Lx=e=>$9(void 0,[e],function*({answer:e,statistic:t,result:n}){let r=(null==t?void 0:t.blanks)||{};return Object.entries(e.blanks).forEach(([e,t])=>{let i=r[e]||{};i[t]?i[t].count+=1:i[t]={correct:(null==n?void 0:n.blanks[e].state)==="correct",count:1},r[e]=i}),{subtype:"fill-in-the-blank",count:((null==t?void 0:t.count)||0)+1,blanks:r}}),LT=()=>{let{t:e}=Sa($3);return{name:e("name"),description:e("description"),example:{description:e("description"),evaluation:{blanks:{a:e("example.blank.a"),b:e("example.blank.b")},enableRetry:!0,mode:"auto",showFeedback:!0},feedback:{blanks:{a:{patterns:[{pattern:e("example.blank.a.feedback.pattern"),feedback:{message:e("example.blank.a.feedback.message"),severity:"error"}}]}}},name:e("name"),subtype:"fill-in-the-blank",view:{instruction:e("example.instruction"),textWithBlanks:e("example.textWithBlanks")}}}},Lk=({name:e})=>{let{t}=Sa($3);return af(U.Fragment,null,af(k5,{name:`${e}.view.instruction`,label:t("instruction"),defaultValue:"",render:({value:e,onChange:t})=>af(_a,{value:e,variant:"input",onChange:e=>t(e)})}),af(k5,{name:`${e}.view.textWithBlanks`,label:t("text-with-blanks"),helperText:t("text-with-blanks-helper-text"),defaultValue:"",render:({value:e,onChange:t})=>af(_a,{value:e,variant:"input",onChange:e=>t(e)})}))},L_=Object.defineProperty,LS=Object.defineProperties,Lw=Object.getOwnPropertyDescriptors,LE=Object.getOwnPropertySymbols,LC=Object.prototype.hasOwnProperty,LA=Object.prototype.propertyIsEnumerable,LR=(e,t,n)=>t in e?L_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,LP=(e,t)=>{for(var n in t||(t={}))LC.call(t,n)&&LR(e,n,t[n]);if(LE)for(var n of LE(t))LA.call(t,n)&&LR(e,n,t[n]);return e},LI=(e,t)=>LS(e,Lw(t)),LN=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),L$=({agreeHighlight:e,agreeNoHighlight:t,disagreeHighlight:n,disagreeNoHighlight:r})=>{let i=e+n+t+r,a=(e+n)/i*(e+r)/i+(r+t)/i*(n+t)/i;return((e+t)/i-a)/(1-a)||0},LL=e=>LN(void 0,[e],function*({task:e,answer:t}){let n=e.evaluation,r="unknown",i={maroon:0,blue:0,orange:0,yellow:0,lavender:0},a=Array(e.view.text.length).fill(null);if("auto"===n.mode){let o=(null==t?void 0:t.highlights)||[],s=n.highlights;Object.keys(i).forEach(t=>{let n={agreeNoHighlight:0,agreeHighlight:0,disagreeNoHighlight:0,disagreeHighlight:0};for(let r=0;r{n.enabled&&i[t]{let u=(0,U.useRef)(null),{t:c}=Sa(LQ),d=Object.keys(r).filter(e=>r[e].enabled).sort((e,t)=>e>t?1:-1);(0,U.useEffect)(()=>(window.addEventListener("keyup",h),()=>{window.removeEventListener("keyup",h)}),[]);let h=({code:e})=>{switch(e){case"Digit1":d.length>0&&i(d[0])();break;case"Digit2":d.length>1&&i(d[1])();break;case"Digit3":d.length>2&&i(d[2])();break;case"Digit4":d.length>3&&i(d[3])();break;case"Digit5":d.length>4&&i(d[4])();break;case"Delete":s()}},p=e.split("").map((e,r)=>{let i,a;let o=t[r];o&&(i=LD[o].bg,a=LD[o].fg);let s={backgroundColor:i,color:a,borderBottomWidth:0,borderBottomStyle:"solid"};return(null==n?void 0:n[r])==="correct"?(s.borderBottomWidth="8px",s.borderBottomColor="green"):(null==n?void 0:n[r])==="wrong"&&(s.borderBottomWidth="8px",s.borderBottomColor="red"),af("span",{"data-id":r,style:s,key:r},e)});return(0,U.useEffect)(()=>{var e,t;if(a&&u.current){let n,r=0,i=new Range;i.setStart(u.current,0),i.collapse(!0);let o=[u.current],s=!1,l=!1;for(;!l&&(n=o.pop())&&n;)if(3===n.nodeType){let e=r+(n.nodeValue||"").length;!s&&a.from>=r&&a.from<=e&&(i.setStart(n,a.from-r),s=!0),s&&a.to>=r&&a.to<=e&&(i.setEnd(n,a.to-r),l=!0),r=e}else{let e=n.childNodes.length;for(;e--;)o.push(n.childNodes[e])}null==(e=window.getSelection())||e.removeAllRanges(),null==(t=window.getSelection())||t.addRange(i)}},[a]),af(kt,null,af(kt,{display:"flex",mb:"standard",flexWrap:"wrap"},af(kt,{flex:"1"},af(kF,{attached:!0},d.map((e,t)=>af(kW,{css:ag` color: ${LD[e].fg}; background-color: ${LD[e].bg}; - `,onClick:i(e),title:c("highlight-title",{id:t+1})},r[e].label?`${r[e].label} (${t+1})`:c(`${e}-button`,{id:t+1}))))),af(kt,null,af(kF,{attached:!0},af(kW,{title:c("erase-title"),onClick:s},c("erase")),af(kW,{title:c("reset-title"),onClick:l},c("reset"))))),af(kt,{borderColor:"primary.800",borderWidth:"standard",borderRadius:"standard",borderStyle:"solid",overflowX:"auto",ref:u,onPointerUp:()=>{let e=window.getSelection();if((null==e?void 0:e.type)==="Range"&&u.current){let t=e.getRangeAt(0),n=t.cloneRange();n.selectNodeContents(u.current),n.setEnd(t.startContainer,t.startOffset);let r=n.toString().length,i=r+t.toString().length;o(r,i)}}},af(kt,{as:"pre",margin:"standard",display:"inline-block"},p)))},LF={highlights:[]},LB=()=>({type:"erase"}),LU=e=>({type:"highlight",payload:{color:e}}),Lj=()=>({type:"reset"}),Lz=(e,t)=>({type:"select",payload:{from:e,to:t}}),LW=e=>({type:"init-text",payload:{text:e}}),LZ=({answer:e})=>({type:"answer",payload:{answer:e}}),Lq=P6((e,t)=>{var n,r,i,a;switch(t.type){case"init-text":e.highlights=Array(t.payload.text.length).fill(null);break;case"reset":return{highlights:[...e.highlights].fill(null)};case"erase":(null==(n=e.selection)?void 0:n.from)!==void 0&&(null==(r=e.selection)?void 0:r.to)!==void 0&&(e.highlights=e.highlights.fill(null,e.selection.from,e.selection.to),e.selection={from:0,to:0});break;case"select":e.selection=t.payload;break;case"highlight":(null==(i=e.selection)?void 0:i.from)!==void 0&&(null==(a=e.selection)?void 0:a.to)!==void 0&&(e.highlights=e.highlights.fill(t.payload.color||e.currentColor||null,e.selection.from,e.selection.to),e.selection={from:0,to:0});break;case"answer":return t.payload.answer}}),LG=({text:e,value:t,colors:n,onChange:r})=>{let[i,a]=(0,U.useReducer)(Lq,{highlights:t});return(0,U.useEffect)(()=>{r(i.highlights)},[i.highlights]),af(LM,{colors:n,selection:i.selection,onErase:()=>a(LB()),onSelect:(e,t)=>a(Lz(e,t)),onReset:()=>a(Lj()),onHighlight:e=>()=>a(LU(e)),text:e,highlights:t})},LH=({name:e})=>{let{t}=Sa(LQ),{getValues:n}=bi(),r=n(`${e}.view`);return af(U.Fragment,null,af(k0,{htmlFor:"highlights"},t("solution")),af(k1,null,t("instruction-solution")),af(kt,{id:"highlights",mt:"standard",mb:"standard"},af(k5,{name:`${e}.evaluation.highlights`,defaultValue:!1,render:({value:e,onChange:t})=>af(LG,{text:r.text,colors:r.colors,value:e,onChange:t})})),af(k0,{htmlFor:"cutoffs"},t("cutoffs")),af(k1,null,t("instruction-cutoffs")),af(kt,{id:"cutoffs",mt:"standard"},Object.entries(r.colors).filter(([e,t])=>t.enabled).map(([n,r])=>af(k5,{key:n,name:`${e}.evaluation.cutoffs.${n}`,label:r.label||t(n),defaultValue:0,render:e=>af(kV,LI(LP({},e),{type:"number",max:1,min:-1,step:.1}))}))))},LY=({name:e})=>{let{t}=Sa(LQ);return af(kh,{gap:"standard"},af(kt,null,af(k5,{name:`${e}.feedback.highlightAgreement`,defaultValue:!0,helperText:t("highlight-agreement-description"),render:({value:e,onChange:n,onBlur:r})=>af(kZ,{onBlur:r,onChange:n,checked:e},t("highlight-agreement"))})))},LX=wq.enum(["maroon","orange","blue","lavender","yellow"]),LV=wq.object({enabled:wq.boolean(),label:wq.string().optional()}),LK=w5.merge(wq.object({subtype:wq.literal("highlighting"),view:wq.object({instruction:wq.string(),text:wq.string(),colors:wq.object({maroon:LV,orange:LV,blue:LV,lavender:LV,yellow:LV})}),evaluation:w5.shape.evaluation.merge(wq.object({cutoffs:wq.object({maroon:wq.number(),orange:wq.number(),blue:wq.number(),lavender:wq.number(),yellow:wq.number()}),highlights:wq.array(wq.union([LX,wq.null()]))})),feedback:wq.object({highlightAgreement:wq.boolean(),agreement:wq.array(wq.object({color:LX,threshold:wq.number(),feedback:w2})).optional()})})),LJ=w9.merge(wq.object({subtype:wq.literal("highlighting"),avgAgreement:wq.object({maroon:wq.number(),orange:wq.number(),blue:wq.number(),lavender:wq.number(),yellow:wq.number()}),highlights:wq.object({maroon:wq.array(wq.number()),orange:wq.array(wq.number()),blue:wq.array(wq.number()),lavender:wq.array(wq.number()),yellow:wq.array(wq.number())})})),L1=w4.merge(wq.object({subtype:wq.literal("highlighting"),highlights:wq.array(wq.union([LX,wq.null()]))})),L0=w3.merge(wq.object({subtype:wq.literal("highlighting"),agreement:wq.object({maroon:wq.number(),orange:wq.number(),blue:wq.number(),lavender:wq.number(),yellow:wq.number()}),highlightsFeedback:wq.array(wq.union([wq.enum(["correct","wrong"]),wq.null()]))})),L2=({statistic:e,task:t})=>{let{t:n}=Sa(LQ),r=Object.keys(t.view.colors).filter(e=>t.view.colors[e].enabled).sort((e,t)=>e>t?1:-1),[i,a]=(0,U.useState)(r[0]),o=t.view.text.split("").map((t,n)=>{var r,a,o,s,l,u,c;let d=e.highlights[i][n],h=d/e.count;return af("span",{title:String(d),style:{backgroundColor:0!==h?(r=LD[i].bg,a=-(100*h-50),o=!1,"#"==r[0]&&(r=r.slice(1),o=!0),(l=((s=parseInt(r,16))>>16)+a)>255?l=255:l<0&&(l=0),(u=(s>>8&255)+a)>255?u=255:u<0&&(u=0),(c=(255&s)+a)>255?c=255:c<0&&(c=0),(o?"#":"")+(c|u<<8|l<<16).toString(16)):void 0,color:0!==h?LD[i].fg:"black"},key:n},t)});return af(kt,null,af(kt,{mb:"standard"},af(kF,{attached:!0},r.map((e,t)=>af(kW,{key:e,onClick:()=>a(e),css:i===e?ag` + `,onClick:i(e),title:c("highlight-title",{id:t+1})},r[e].label?`${r[e].label} (${t+1})`:c(`${e}-button`,{id:t+1}))))),af(kt,null,af(kF,{attached:!0},af(kW,{title:c("erase-title"),onClick:s},c("erase")),af(kW,{title:c("reset-title"),onClick:l},c("reset"))))),af(kt,{borderColor:"primary.800",borderWidth:"standard",borderRadius:"standard",borderStyle:"solid",overflowX:"auto",ref:u,onPointerUp:()=>{let e=window.getSelection();if((null==e?void 0:e.type)==="Range"&&u.current){let t=e.getRangeAt(0),n=t.cloneRange();n.selectNodeContents(u.current),n.setEnd(t.startContainer,t.startOffset);let r=n.toString().length,i=r+t.toString().length;o(r,i)}}},af(kt,{as:"pre",margin:"standard",display:"inline-block"},p)))},LF={highlights:[]},LB=()=>({type:"erase"}),LU=e=>({type:"highlight",payload:{color:e}}),Lz=()=>({type:"reset"}),Lj=(e,t)=>({type:"select",payload:{from:e,to:t}}),LW=e=>({type:"init-text",payload:{text:e}}),LZ=({answer:e})=>({type:"answer",payload:{answer:e}}),Lq=P6((e,t)=>{var n,r,i,a;switch(t.type){case"init-text":e.highlights=Array(t.payload.text.length).fill(null);break;case"reset":return{highlights:[...e.highlights].fill(null)};case"erase":(null==(n=e.selection)?void 0:n.from)!==void 0&&(null==(r=e.selection)?void 0:r.to)!==void 0&&(e.highlights=e.highlights.fill(null,e.selection.from,e.selection.to),e.selection={from:0,to:0});break;case"select":e.selection=t.payload;break;case"highlight":(null==(i=e.selection)?void 0:i.from)!==void 0&&(null==(a=e.selection)?void 0:a.to)!==void 0&&(e.highlights=e.highlights.fill(t.payload.color||e.currentColor||null,e.selection.from,e.selection.to),e.selection={from:0,to:0});break;case"answer":return t.payload.answer}}),LG=({text:e,value:t,colors:n,onChange:r})=>{let[i,a]=(0,U.useReducer)(Lq,{highlights:t});return(0,U.useEffect)(()=>{r(i.highlights)},[i.highlights]),af(LM,{colors:n,selection:i.selection,onErase:()=>a(LB()),onSelect:(e,t)=>a(Lj(e,t)),onReset:()=>a(Lz()),onHighlight:e=>()=>a(LU(e)),text:e,highlights:t})},LH=({name:e})=>{let{t}=Sa(LQ),{getValues:n}=bi(),r=n(`${e}.view`);return af(U.Fragment,null,af(k0,{htmlFor:"highlights"},t("solution")),af(k1,null,t("instruction-solution")),af(kt,{id:"highlights",mt:"standard",mb:"standard"},af(k5,{name:`${e}.evaluation.highlights`,defaultValue:!1,render:({value:e,onChange:t})=>af(LG,{text:r.text,colors:r.colors,value:e,onChange:t})})),af(k0,{htmlFor:"cutoffs"},t("cutoffs")),af(k1,null,t("instruction-cutoffs")),af(kt,{id:"cutoffs",mt:"standard"},Object.entries(r.colors).filter(([e,t])=>t.enabled).map(([n,r])=>af(k5,{key:n,name:`${e}.evaluation.cutoffs.${n}`,label:r.label||t(n),defaultValue:0,render:e=>af(kV,LI(LP({},e),{type:"number",max:1,min:-1,step:.1}))}))))},LY=({name:e})=>{let{t}=Sa(LQ);return af(kh,{gap:"standard"},af(kt,null,af(k5,{name:`${e}.feedback.highlightAgreement`,defaultValue:!0,helperText:t("highlight-agreement-description"),render:({value:e,onChange:n,onBlur:r})=>af(kZ,{onBlur:r,onChange:n,checked:e},t("highlight-agreement"))})))},LX=wq.enum(["maroon","orange","blue","lavender","yellow"]),LV=wq.object({enabled:wq.boolean(),label:wq.string().optional()}),LK=w5.merge(wq.object({subtype:wq.literal("highlighting"),view:wq.object({instruction:wq.string(),text:wq.string(),colors:wq.object({maroon:LV,orange:LV,blue:LV,lavender:LV,yellow:LV})}),evaluation:w5.shape.evaluation.merge(wq.object({cutoffs:wq.object({maroon:wq.number(),orange:wq.number(),blue:wq.number(),lavender:wq.number(),yellow:wq.number()}),highlights:wq.array(wq.union([LX,wq.null()]))})),feedback:wq.object({highlightAgreement:wq.boolean(),agreement:wq.array(wq.object({color:LX,threshold:wq.number(),feedback:w2})).optional()})})),LJ=w9.merge(wq.object({subtype:wq.literal("highlighting"),avgAgreement:wq.object({maroon:wq.number(),orange:wq.number(),blue:wq.number(),lavender:wq.number(),yellow:wq.number()}),highlights:wq.object({maroon:wq.array(wq.number()),orange:wq.array(wq.number()),blue:wq.array(wq.number()),lavender:wq.array(wq.number()),yellow:wq.array(wq.number())})})),L1=w4.merge(wq.object({subtype:wq.literal("highlighting"),highlights:wq.array(wq.union([LX,wq.null()]))})),L0=w3.merge(wq.object({subtype:wq.literal("highlighting"),agreement:wq.object({maroon:wq.number(),orange:wq.number(),blue:wq.number(),lavender:wq.number(),yellow:wq.number()}),highlightsFeedback:wq.array(wq.union([wq.enum(["correct","wrong"]),wq.null()]))})),L2=({statistic:e,task:t})=>{let{t:n}=Sa(LQ),r=Object.keys(t.view.colors).filter(e=>t.view.colors[e].enabled).sort((e,t)=>e>t?1:-1),[i,a]=(0,U.useState)(r[0]),o=t.view.text.split("").map((t,n)=>{var r,a,o,s,l,u,c;let d=e.highlights[i][n],h=d/e.count;return af("span",{title:String(d),style:{backgroundColor:0!==h?(r=LD[i].bg,a=-(100*h-50),o=!1,"#"==r[0]&&(r=r.slice(1),o=!0),(l=((s=parseInt(r,16))>>16)+a)>255?l=255:l<0&&(l=0),(u=(s>>8&255)+a)>255?u=255:u<0&&(u=0),(c=(255&s)+a)>255?c=255:c<0&&(c=0),(o?"#":"")+(c|u<<8|l<<16).toString(16)):void 0,color:0!==h?LD[i].fg:"black"},key:n},t)});return af(kt,null,af(kt,{mb:"standard"},af(kF,{attached:!0},r.map((e,t)=>af(kW,{key:e,onClick:()=>a(e),css:i===e?ag` background-color: ${LD[e].bg}; color: ${LD[e].fg}; `:null},n(`${e}-button`,{id:t+1}))))),af(kt,{borderColor:"primary.800",borderWidth:"standard",borderRadius:"standard",borderStyle:"solid",overflowX:"auto"},af(kt,{as:"pre",margin:"standard",display:"inline-block"},o)))},L5=({message:e,severity:t})=>af(kc,{severity:t},e),L9=(0,U.forwardRef)(({task:e,mode:t,onAction:n,answer:r,onChange:i,result:a},o)=>{let{t:s}=Sa(LQ),[l,u]=(0,U.useReducer)(Lq,LF),c=e=>{"recording"===t||"result"===t||(null==n||n(e),u(e))};(0,U.useEffect)(()=>{e.view.text&&c(LW(e.view.text))},[]),(0,U.useEffect)(()=>{r&&u(LZ({answer:r}))},[r]),(0,U.useEffect)(()=>{null==i||i({subtype:"highlighting",highlights:l.highlights})},[l.highlights]),(0,U.useImperativeHandle)(o,()=>({dispatch:u}));let d=e.view.instruction;return Object.entries(e.view.colors).forEach(([e,t])=>{d=d.replace(RegExp(`{{${e}}}`,"g"),`${t.label||s(e)}`)}),af(kt,{p:"standard"},af(am,{styles:Object.entries(LD).map(([e,t])=>ag` @@ -1689,19 +1689,19 @@ color: ${t.fg}; padding: 2px; } - `)}),af(kh,{gap:"standard"},af(_r,{allowHtml:!0,markdown:d}),af(LM,{text:e.view.text,highlights:l.highlights,feedback:null==a?void 0:a.highlightsFeedback,colors:e.view.colors,selection:l.selection,onHighlight:e=>()=>{c(LU(e))},onErase:()=>{c(LB())},onReset:()=>{c(Lj())},onSelect:(e,t)=>{c(Lz(e,t))}}),(null==a?void 0:a.feedback)&&af(L5,LP({},a.feedback))))}),L4=(e,t,n)=>(e*n+t)/(n+1),L3=e=>LN(void 0,[e],function*({answer:e,task:{view:t},statistic:n,result:r}){return n||(n={count:0,avgAgreement:{maroon:0,lavender:0,orange:0,blue:0,yellow:0},highlights:{maroon:Array(t.text.length).fill(0),lavender:Array(t.text.length).fill(0),orange:Array(t.text.length).fill(0),blue:Array(t.text.length).fill(0),yellow:Array(t.text.length).fill(0)},subtype:"highlighting"}),e.highlights.forEach((e,t)=>{n&&null!==e&&(n.highlights[e][t]+=1)}),LI(LP({},n),{count:n.count+1,avgAgreement:{maroon:L4(n.avgAgreement.maroon,(null==r?void 0:r.agreement.maroon)||0,n.count),lavender:L4(n.avgAgreement.lavender,(null==r?void 0:r.agreement.lavender)||0,n.count),orange:L4(n.avgAgreement.orange,(null==r?void 0:r.agreement.orange)||0,n.count),blue:L4(n.avgAgreement.blue,(null==r?void 0:r.agreement.blue)||0,n.count),yellow:L4(n.avgAgreement.yellow,(null==r?void 0:r.agreement.yellow)||0,n.count)}})}),L8=()=>{let{t:e}=Sa(LQ);return{name:e("name"),description:e("description"),example:{subtype:"highlighting",description:"",name:e("name"),view:{instruction:e("example.instruction"),text:e("example.text"),colors:{maroon:{enabled:!0},lavender:{enabled:!0,label:"Veggies"},blue:{enabled:!1},yellow:{enabled:!1},orange:{enabled:!1}}},evaluation:{enableRetry:!0,mode:"auto",showFeedback:!0,cutoffs:{orange:0,lavender:0,maroon:.8,yellow:0,blue:0},highlights:Array(e("example.text").length).fill(null).fill("maroon",0,3)},feedback:{highlightAgreement:!1}}}},L6=({name:e})=>{let{t}=Sa(LQ);return af(U.Fragment,null,af(k5,{name:`${e}.view.instruction`,label:t("instruction"),defaultValue:"",render:({value:e,onChange:n})=>af(U.Fragment,null,af(_6,{variant:"outlined",value:e,onChange:n}),af(k1,null,t("instruction-shortcodes")))}),af(k5,{name:`${e}.view.text`,label:t("text"),defaultValue:"",render:({value:e,onChange:t})=>af(kY,{variant:"outlined",value:e,onChange:t})}),af(k0,{htmlFor:""},t("enabled-highlight-colors")),af(k1,null,t("instruction-enabled-highlight-colors")),Object.keys(LD).map(n=>af(kt,{display:"flex",alignItems:"center",mt:"standard",key:n},af(kt,{marginRight:"small",title:t(n),display:"inline-block",width:"15px",height:"15px",style:{backgroundColor:LD[n].bg}}),af(k5,{name:`${e}.view.colors.${n}.enabled`,render:({onChange:e,value:t,onBlur:n})=>af(kZ,{checked:t,onChange:e,onBlur:n})}),af(k5,{name:`${e}.view.colors.${n}.label`,defaultValue:t(n),render:kK}))))},L7=n(96852),De=Object.defineProperty,Dt=Object.defineProperties,Dn=Object.getOwnPropertyDescriptors,Dr=Object.getOwnPropertySymbols,Di=Object.prototype.hasOwnProperty,Da=Object.prototype.propertyIsEnumerable,Do=(e,t,n)=>t in e?De(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ds=(e,t)=>{for(var n in t||(t={}))Di.call(t,n)&&Do(e,n,t[n]);if(Dr)for(var n of Dr(t))Da.call(t,n)&&Do(e,n,t[n]);return e},Dl=(e,t)=>Dt(e,Dn(t)),Du=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),Dc=e=>Du(void 0,[e],function*({answer:e,task:t}){let{evaluation:n,feedback:r}=t,i="unknown",a=[];if(n&&"auto"===n.mode){let t=n.pattern;try{let n=new RegExp(t);i=n.test((null==e?void 0:e.input)||"")?"correct":"wrong"}catch(e){}n.showFeedback&&r.patterns.forEach(t=>{try{let n=new RegExp(t.pattern);n.test((null==e?void 0:e.input)||"")&&(null==a||a.push(t.feedback))}catch(e){}})}return(null==n?void 0:n.mode)==="manual"&&(i="manual"),{subtype:"input",state:i,feedback:a,allowRetry:null==n?void 0:n.enableRetry}}),Dd=Rp({"en-GB":Rf({"add-pattern":"Add Pattern","delete-pattern":"Delete",description:"A task bit for creating single line response questions. The answer of a user can be automatically evaluated by providing a regular expression. You can also give feedback by using regular expression, as well.",error:"Error",info:"Info",inputs:"Inputs","statistic-inputs-description":"Here you can see the frequency of all answers represented in a cloud. Hovering over an answer will show you the frequency. Green highlighted answers are correct ones.",instruction:"Instruction",message:"Message",name:"Input",pattern:"Pattern","pattern-error-duplicate":"A pattern can not contain duplicates","pattern-error-exists":"This pattern already exists","pattern-error-invalid":"Not a valid pattern","pattern-regex":"You can input a RegEx","pattern-title":"Pattern {pattern}",patterns:"Patterns","statistic-patterns-description":"Here you can see the frequency of the found feedback patterns.",severity:"Severity",success:"Success",up:"Up",warning:"Warning"}),en:Rf({"add-pattern":"Add Pattern","delete-pattern":"Delete",description:"A task bit for creating single line response questions. The answer of a user can be automatically evaluated by providing a regular expression. You can also give feedback by using regular expression, as well.",error:"Error",info:"Info",inputs:"Inputs","statistic-inputs-description":"Here you can see the frequency of all answers represented in a cloud. Hovering over an answer will show you the frequency. Green highlighted answers are correct ones.",instruction:"Instruction",message:"Message",name:"Input",pattern:"Pattern","pattern-error-duplicate":"A pattern can not contain duplicates","pattern-error-exists":"This pattern already exists","pattern-error-invalid":"Not a valid pattern","pattern-regex":"You can input a RegEx","pattern-title":"Pattern {pattern}",patterns:"Patterns","statistic-patterns-description":"Here you can see the frequency of the found feedback patterns.",severity:"Severity",success:"Success",up:"Up",warning:"Warning"}),"en-US":Rf({"add-pattern":"Add Pattern","delete-pattern":"Delete",description:"A task bit for creating single line response questions. The answer of a user can be automatically evaluated by providing a regular expression. You can also give feedback by using regular expression, as well.",error:"Error",info:"Info",inputs:"Inputs","statistic-inputs-description":"Here you can see the frequency of all answers represented in a cloud. Hovering over an answer will show you the frequency. Green highlighted answers are correct ones.",instruction:"Instruction",message:"Message",name:"Input",pattern:"Pattern","pattern-error-duplicate":"A pattern can not contain duplicates","pattern-error-exists":"This pattern already exists","pattern-error-invalid":"Not a valid pattern","pattern-regex":"You can input a RegEx","pattern-title":"Pattern {pattern}",patterns:"Patterns","statistic-patterns-description":"Here you can see the frequency of the found feedback patterns.",severity:"Severity",success:"Success",up:"Up",warning:"Warning"}),de:Rf({"add-pattern":"Add Pattern","delete-pattern":"Delete",description:"A task bit for creating single line response questions. The answer of a user can be automatically evaluated by providing a regular expression. You can also give feedback by using regular expression, as well.",error:"Error",info:"Info",inputs:"Inputs","statistic-inputs-description":"Here you can see the frequency of all answers represented in a cloud. Hovering over an answer will show you the frequency. Green highlighted answers are correct ones.",instruction:"Instruction",message:"Message",name:"Input",pattern:"Pattern","pattern-error-duplicate":"A pattern can not contain duplicates","pattern-error-exists":"This pattern already exists","pattern-error-invalid":"Not a valid pattern","pattern-regex":"You can input a RegEx","pattern-title":"Pattern {pattern}",patterns:"Patterns","statistic-patterns-description":"Here you can see the frequency of the found feedback patterns.",severity:"Severity",success:"Success",up:"Up",warning:"Warning"}),fr:Rf({"add-pattern":"Add Pattern","delete-pattern":"Delete",description:"A task bit for creating single line response questions. The answer of a user can be automatically evaluated by providing a regular expression. You can also give feedback by using regular expression, as well.",error:"Error",info:"Info",inputs:"Inputs","statistic-inputs-description":"Here you can see the frequency of all answers represented in a cloud. Hovering over an answer will show you the frequency. Green highlighted answers are correct ones.",instruction:"Instruction",message:"Message",name:"Input",pattern:"Pattern","pattern-error-duplicate":"A pattern can not contain duplicates","pattern-error-exists":"This pattern already exists","pattern-error-invalid":"Not a valid pattern","pattern-regex":"You can input a RegEx","pattern-title":"Pattern {pattern}",patterns:"Patterns","statistic-patterns-description":"Here you can see the frequency of the found feedback patterns.",severity:"Severity",success:"Success",up:"Up",warning:"Warning"}),es:Rf({"add-pattern":"Add Pattern","delete-pattern":"Delete",description:"A task bit for creating single line response questions. The answer of a user can be automatically evaluated by providing a regular expression. You can also give feedback by using regular expression, as well.",error:"Error",info:"Info",inputs:"Inputs","statistic-inputs-description":"Here you can see the frequency of all answers represented in a cloud. Hovering over an answer will show you the frequency. Green highlighted answers are correct ones.",instruction:"Instruction",message:"Message",name:"Input",pattern:"Pattern","pattern-error-duplicate":"A pattern can not contain duplicates","pattern-error-exists":"This pattern already exists","pattern-error-invalid":"Not a valid pattern","pattern-regex":"You can input a RegEx","pattern-title":"Pattern {pattern}",patterns:"Patterns","statistic-patterns-description":"Here you can see the frequency of the found feedback patterns.",severity:"Severity",success:"Success",up:"Up",warning:"Warning"}),nl:Rf({"add-pattern":"Add Pattern","delete-pattern":"Delete",description:"A task bit for creating single line response questions. The answer of a user can be automatically evaluated by providing a regular expression. You can also give feedback by using regular expression, as well.",error:"Error",info:"Info",inputs:"Inputs","statistic-inputs-description":"Here you can see the frequency of all answers represented in a cloud. Hovering over an answer will show you the frequency. Green highlighted answers are correct ones.",instruction:"Instruction",message:"Message",name:"Input",pattern:"Pattern","pattern-error-duplicate":"A pattern can not contain duplicates","pattern-error-exists":"This pattern already exists","pattern-error-invalid":"Not a valid pattern","pattern-regex":"You can input a RegEx","pattern-title":"Pattern {pattern}",patterns:"Patterns","statistic-patterns-description":"Here you can see the frequency of the found feedback patterns.",severity:"Severity",success:"Success",up:"Up",warning:"Warning"}),pt:Rf({"add-pattern":"Add Pattern","delete-pattern":"Delete",description:"A task bit for creating single line response questions. The answer of a user can be automatically evaluated by providing a regular expression. You can also give feedback by using regular expression, as well.",error:"Error",info:"Info",inputs:"Inputs","statistic-inputs-description":"Here you can see the frequency of all answers represented in a cloud. Hovering over an answer will show you the frequency. Green highlighted answers are correct ones.",instruction:"Instruction",message:"Message",name:"Input",pattern:"Pattern","pattern-error-duplicate":"A pattern can not contain duplicates","pattern-error-exists":"This pattern already exists","pattern-error-invalid":"Not a valid pattern","pattern-regex":"You can input a RegEx","pattern-title":"Pattern {pattern}",patterns:"Patterns","statistic-patterns-description":"Here you can see the frequency of the found feedback patterns.",severity:"Severity",success:"Success",up:"Up",warning:"Warning"}),tr:Rf({"add-pattern":"Add Pattern","delete-pattern":"Delete",description:"A task bit for creating single line response questions. The answer of a user can be automatically evaluated by providing a regular expression. You can also give feedback by using regular expression, as well.",error:"Error",info:"Info",inputs:"Inputs","statistic-inputs-description":"Here you can see the frequency of all answers represented in a cloud. Hovering over an answer will show you the frequency. Green highlighted answers are correct ones.",instruction:"Instruction",message:"Message",name:"Input",pattern:"Pattern","pattern-error-duplicate":"A pattern can not contain duplicates","pattern-error-exists":"This pattern already exists","pattern-error-invalid":"Not a valid pattern","pattern-regex":"You can input a RegEx","pattern-title":"Pattern {pattern}",patterns:"Patterns","statistic-patterns-description":"Here you can see the frequency of the found feedback patterns.",severity:"Severity",success:"Success",up:"Up",warning:"Warning"})}),Dh=({name:e})=>{let{t}=Sa(Dd);return af(k5,{name:`${e}.evaluation.pattern`,defaultValue:"",helperText:t("pattern-regex"),label:t("pattern"),render:kK})},Dp=({name:e})=>{let{t}=Sa(Dd),{control:n}=bi(),{fields:r,append:i,remove:a}=bG({control:n,name:`${e}.feedback.patterns`});return af(U.Fragment,null,r.map((n,r)=>af(kt,{mb:"standard",key:n.id},af(kt,{display:"flex",width:"100%",alignItems:"center"},af(kt,{flex:"1"},af(kE,{as:"h3",fontSize:"large"},t("pattern-title",{pattern:r.toString()}))),af(k_,{tone:"error",onClick:()=>a(r)},t("delete-pattern"))),af(k5,{name:`${e}.feedback.patterns[${r}].pattern`,label:t("pattern"),defaultValue:"",render:kK}),af(k5,{name:`${e}.feedback.patterns[${r}].feedback.message`,defaultValue:"",label:t("message"),render:({value:e,onChange:t})=>af(_a,{value:e,variant:"input",onChange:e=>t(e)})}),af(k5,{name:`${e}.feedback.patterns[${r}].feedback.severity`,defaultValue:"error",label:t("severity"),render:({value:e,onChange:n,onBlur:r})=>af(U.Fragment,null,af(_4,{value:e,onChange:n,onBlur:r},af("option",{value:"error"},t("error")),af("option",{value:"warning"},t("warning")),af("option",{value:"info"},t("info")),af("option",{value:"success"},t("success"))))}),af(kt,{paddingY:"standard"},af(kX,null)))),af(kt,{mb:"standard"},af(k_,{fullWidth:!0,onClick:()=>i({pattern:"",feedback:{severity:"error",message:""}})},t("add-pattern"))))},Df=w5.merge(ww({subtype:wQ("input"),view:ww({instruction:wh()}),evaluation:w5.shape.evaluation.merge(ww({pattern:wh().refine(e=>{try{return new RegExp(e),!0}catch(e){return!1}},{message:"Pattern must be a valid regular expression"})})),feedback:ww({patterns:wS(ww({pattern:wh().refine(e=>{try{return new RegExp(e),!0}catch(e){return!1}},{message:"Pattern must be a valid regular expression"}),feedback:w2}))})})),Dm=w9.merge(ww({subtype:wQ("input"),patterns:wI(ww({count:wp()})),inputs:wI(ww({correct:wg(),count:wp()}))})),Dg=w4.merge(ww({subtype:wQ("input"),input:wh()})),DO=w3.merge(ww({subtype:wQ("input"),feedback:wS(w2)})),Db=({statistic:e})=>{let{t}=Sa(Dd),[n]=kf(),r=Object.keys(e.patterns).map(t=>{let n=e.patterns[t];return{pattern:t,count:(null==n?void 0:n.count)||0}}).sort((e,t)=>e.count>t.count?-1:1),i=Object.keys(e.inputs).map(t=>{let r=e.inputs[t];return{value:t,count:(null==r?void 0:r.count)||0,color:r.correct?n.colors.success["500"]:void 0}});return af(kt,{padding:"standard"},af(kh,{gap:"standard"},r.length>0&&af(U.Fragment,null,af(kE,{as:"h2",title:t("statistic-patterns-description")},t("patterns")," ",af(ki,{size:"small",color:"info"},af(RR,null))),r.map((e,t)=>af(kt,{display:"flex",borderRadius:"standard",borderWidth:"light",borderStyle:"solid",css:ag` + `)}),af(kh,{gap:"standard"},af(_r,{allowHtml:!0,markdown:d}),af(LM,{text:e.view.text,highlights:l.highlights,feedback:null==a?void 0:a.highlightsFeedback,colors:e.view.colors,selection:l.selection,onHighlight:e=>()=>{c(LU(e))},onErase:()=>{c(LB())},onReset:()=>{c(Lz())},onSelect:(e,t)=>{c(Lj(e,t))}}),(null==a?void 0:a.feedback)&&af(L5,LP({},a.feedback))))}),L4=(e,t,n)=>(e*n+t)/(n+1),L3=e=>LN(void 0,[e],function*({answer:e,task:{view:t},statistic:n,result:r}){return n||(n={count:0,avgAgreement:{maroon:0,lavender:0,orange:0,blue:0,yellow:0},highlights:{maroon:Array(t.text.length).fill(0),lavender:Array(t.text.length).fill(0),orange:Array(t.text.length).fill(0),blue:Array(t.text.length).fill(0),yellow:Array(t.text.length).fill(0)},subtype:"highlighting"}),e.highlights.forEach((e,t)=>{n&&null!==e&&(n.highlights[e][t]+=1)}),LI(LP({},n),{count:n.count+1,avgAgreement:{maroon:L4(n.avgAgreement.maroon,(null==r?void 0:r.agreement.maroon)||0,n.count),lavender:L4(n.avgAgreement.lavender,(null==r?void 0:r.agreement.lavender)||0,n.count),orange:L4(n.avgAgreement.orange,(null==r?void 0:r.agreement.orange)||0,n.count),blue:L4(n.avgAgreement.blue,(null==r?void 0:r.agreement.blue)||0,n.count),yellow:L4(n.avgAgreement.yellow,(null==r?void 0:r.agreement.yellow)||0,n.count)}})}),L8=()=>{let{t:e}=Sa(LQ);return{name:e("name"),description:e("description"),example:{subtype:"highlighting",description:"",name:e("name"),view:{instruction:e("example.instruction"),text:e("example.text"),colors:{maroon:{enabled:!0},lavender:{enabled:!0,label:"Veggies"},blue:{enabled:!1},yellow:{enabled:!1},orange:{enabled:!1}}},evaluation:{enableRetry:!0,mode:"auto",showFeedback:!0,cutoffs:{orange:0,lavender:0,maroon:.8,yellow:0,blue:0},highlights:Array(e("example.text").length).fill(null).fill("maroon",0,3)},feedback:{highlightAgreement:!1}}}},L6=({name:e})=>{let{t}=Sa(LQ);return af(U.Fragment,null,af(k5,{name:`${e}.view.instruction`,label:t("instruction"),defaultValue:"",render:({value:e,onChange:n})=>af(U.Fragment,null,af(_6,{variant:"outlined",value:e,onChange:n}),af(k1,null,t("instruction-shortcodes")))}),af(k5,{name:`${e}.view.text`,label:t("text"),defaultValue:"",render:({value:e,onChange:t})=>af(kY,{variant:"outlined",value:e,onChange:t})}),af(k0,{htmlFor:""},t("enabled-highlight-colors")),af(k1,null,t("instruction-enabled-highlight-colors")),Object.keys(LD).map(n=>af(kt,{display:"flex",alignItems:"center",mt:"standard",key:n},af(kt,{marginRight:"small",title:t(n),display:"inline-block",width:"15px",height:"15px",style:{backgroundColor:LD[n].bg}}),af(k5,{name:`${e}.view.colors.${n}.enabled`,render:({onChange:e,value:t,onBlur:n})=>af(kZ,{checked:t,onChange:e,onBlur:n})}),af(k5,{name:`${e}.view.colors.${n}.label`,defaultValue:t(n),render:kK}))))},L7=n(96852),De=Object.defineProperty,Dt=Object.defineProperties,Dn=Object.getOwnPropertyDescriptors,Dr=Object.getOwnPropertySymbols,Di=Object.prototype.hasOwnProperty,Da=Object.prototype.propertyIsEnumerable,Do=(e,t,n)=>t in e?De(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ds=(e,t)=>{for(var n in t||(t={}))Di.call(t,n)&&Do(e,n,t[n]);if(Dr)for(var n of Dr(t))Da.call(t,n)&&Do(e,n,t[n]);return e},Dl=(e,t)=>Dt(e,Dn(t)),Du=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),Dc=e=>Du(void 0,[e],function*({answer:e,task:t}){let{evaluation:n,feedback:r}=t,i="unknown",a=[];if(n&&"auto"===n.mode){let t=n.pattern;try{let n=new RegExp(t);i=n.test((null==e?void 0:e.input)||"")?"correct":"wrong"}catch(e){}n.showFeedback&&r.patterns.forEach(t=>{try{let n=new RegExp(t.pattern);n.test((null==e?void 0:e.input)||"")&&(null==a||a.push(t.feedback))}catch(e){}})}return(null==n?void 0:n.mode)==="manual"&&(i="manual"),{subtype:"input",state:i,feedback:a,allowRetry:null==n?void 0:n.enableRetry}}),Dd=Rp({"en-GB":Rf({"add-pattern":"Add Pattern","delete-pattern":"Delete",description:"A task bit for creating single line response questions. The answer of a user can be automatically evaluated by providing a regular expression. You can also give feedback by using regular expression, as well.",error:"Error",info:"Info",inputs:"Inputs","statistic-inputs-description":"Here you can see the frequency of all answers represented in a cloud. Hovering over an answer will show you the frequency. Green highlighted answers are correct ones.",instruction:"Instruction",message:"Message",name:"Input",pattern:"Pattern","pattern-error-duplicate":"A pattern can not contain duplicates","pattern-error-exists":"This pattern already exists","pattern-error-invalid":"Not a valid pattern","pattern-regex":"You can input a RegEx","pattern-title":"Pattern {pattern}",patterns:"Patterns","statistic-patterns-description":"Here you can see the frequency of the found feedback patterns.",severity:"Severity",success:"Success",up:"Up",warning:"Warning"}),en:Rf({"add-pattern":"Add Pattern","delete-pattern":"Delete",description:"A task bit for creating single line response questions. The answer of a user can be automatically evaluated by providing a regular expression. You can also give feedback by using regular expression, as well.",error:"Error",info:"Info",inputs:"Inputs","statistic-inputs-description":"Here you can see the frequency of all answers represented in a cloud. Hovering over an answer will show you the frequency. Green highlighted answers are correct ones.",instruction:"Instruction",message:"Message",name:"Input",pattern:"Pattern","pattern-error-duplicate":"A pattern can not contain duplicates","pattern-error-exists":"This pattern already exists","pattern-error-invalid":"Not a valid pattern","pattern-regex":"You can input a RegEx","pattern-title":"Pattern {pattern}",patterns:"Patterns","statistic-patterns-description":"Here you can see the frequency of the found feedback patterns.",severity:"Severity",success:"Success",up:"Up",warning:"Warning"}),"en-US":Rf({"add-pattern":"Add Pattern","delete-pattern":"Delete",description:"A task bit for creating single line response questions. The answer of a user can be automatically evaluated by providing a regular expression. You can also give feedback by using regular expression, as well.",error:"Error",info:"Info",inputs:"Inputs","statistic-inputs-description":"Here you can see the frequency of all answers represented in a cloud. Hovering over an answer will show you the frequency. Green highlighted answers are correct ones.",instruction:"Instruction",message:"Message",name:"Input",pattern:"Pattern","pattern-error-duplicate":"A pattern can not contain duplicates","pattern-error-exists":"This pattern already exists","pattern-error-invalid":"Not a valid pattern","pattern-regex":"You can input a RegEx","pattern-title":"Pattern {pattern}",patterns:"Patterns","statistic-patterns-description":"Here you can see the frequency of the found feedback patterns.",severity:"Severity",success:"Success",up:"Up",warning:"Warning"}),de:Rf({"add-pattern":"Add Pattern","delete-pattern":"Delete",description:"A task bit for creating single line response questions. The answer of a user can be automatically evaluated by providing a regular expression. You can also give feedback by using regular expression, as well.",error:"Error",info:"Info",inputs:"Inputs","statistic-inputs-description":"Here you can see the frequency of all answers represented in a cloud. Hovering over an answer will show you the frequency. Green highlighted answers are correct ones.",instruction:"Instruction",message:"Message",name:"Input",pattern:"Pattern","pattern-error-duplicate":"A pattern can not contain duplicates","pattern-error-exists":"This pattern already exists","pattern-error-invalid":"Not a valid pattern","pattern-regex":"You can input a RegEx","pattern-title":"Pattern {pattern}",patterns:"Patterns","statistic-patterns-description":"Here you can see the frequency of the found feedback patterns.",severity:"Severity",success:"Success",up:"Up",warning:"Warning"}),fr:Rf({"add-pattern":"Add Pattern","delete-pattern":"Delete",description:"A task bit for creating single line response questions. The answer of a user can be automatically evaluated by providing a regular expression. You can also give feedback by using regular expression, as well.",error:"Error",info:"Info",inputs:"Inputs","statistic-inputs-description":"Here you can see the frequency of all answers represented in a cloud. Hovering over an answer will show you the frequency. Green highlighted answers are correct ones.",instruction:"Instruction",message:"Message",name:"Input",pattern:"Pattern","pattern-error-duplicate":"A pattern can not contain duplicates","pattern-error-exists":"This pattern already exists","pattern-error-invalid":"Not a valid pattern","pattern-regex":"You can input a RegEx","pattern-title":"Pattern {pattern}",patterns:"Patterns","statistic-patterns-description":"Here you can see the frequency of the found feedback patterns.",severity:"Severity",success:"Success",up:"Up",warning:"Warning"}),es:Rf({"add-pattern":"Add Pattern","delete-pattern":"Delete",description:"A task bit for creating single line response questions. The answer of a user can be automatically evaluated by providing a regular expression. You can also give feedback by using regular expression, as well.",error:"Error",info:"Info",inputs:"Inputs","statistic-inputs-description":"Here you can see the frequency of all answers represented in a cloud. Hovering over an answer will show you the frequency. Green highlighted answers are correct ones.",instruction:"Instruction",message:"Message",name:"Input",pattern:"Pattern","pattern-error-duplicate":"A pattern can not contain duplicates","pattern-error-exists":"This pattern already exists","pattern-error-invalid":"Not a valid pattern","pattern-regex":"You can input a RegEx","pattern-title":"Pattern {pattern}",patterns:"Patterns","statistic-patterns-description":"Here you can see the frequency of the found feedback patterns.",severity:"Severity",success:"Success",up:"Up",warning:"Warning"}),nl:Rf({"add-pattern":"Add Pattern","delete-pattern":"Delete",description:"A task bit for creating single line response questions. The answer of a user can be automatically evaluated by providing a regular expression. You can also give feedback by using regular expression, as well.",error:"Error",info:"Info",inputs:"Inputs","statistic-inputs-description":"Here you can see the frequency of all answers represented in a cloud. Hovering over an answer will show you the frequency. Green highlighted answers are correct ones.",instruction:"Instruction",message:"Message",name:"Input",pattern:"Pattern","pattern-error-duplicate":"A pattern can not contain duplicates","pattern-error-exists":"This pattern already exists","pattern-error-invalid":"Not a valid pattern","pattern-regex":"You can input a RegEx","pattern-title":"Pattern {pattern}",patterns:"Patterns","statistic-patterns-description":"Here you can see the frequency of the found feedback patterns.",severity:"Severity",success:"Success",up:"Up",warning:"Warning"}),pt:Rf({"add-pattern":"Add Pattern","delete-pattern":"Delete",description:"A task bit for creating single line response questions. The answer of a user can be automatically evaluated by providing a regular expression. You can also give feedback by using regular expression, as well.",error:"Error",info:"Info",inputs:"Inputs","statistic-inputs-description":"Here you can see the frequency of all answers represented in a cloud. Hovering over an answer will show you the frequency. Green highlighted answers are correct ones.",instruction:"Instruction",message:"Message",name:"Input",pattern:"Pattern","pattern-error-duplicate":"A pattern can not contain duplicates","pattern-error-exists":"This pattern already exists","pattern-error-invalid":"Not a valid pattern","pattern-regex":"You can input a RegEx","pattern-title":"Pattern {pattern}",patterns:"Patterns","statistic-patterns-description":"Here you can see the frequency of the found feedback patterns.",severity:"Severity",success:"Success",up:"Up",warning:"Warning"}),tr:Rf({"add-pattern":"Add Pattern","delete-pattern":"Delete",description:"A task bit for creating single line response questions. The answer of a user can be automatically evaluated by providing a regular expression. You can also give feedback by using regular expression, as well.",error:"Error",info:"Info",inputs:"Inputs","statistic-inputs-description":"Here you can see the frequency of all answers represented in a cloud. Hovering over an answer will show you the frequency. Green highlighted answers are correct ones.",instruction:"Instruction",message:"Message",name:"Input",pattern:"Pattern","pattern-error-duplicate":"A pattern can not contain duplicates","pattern-error-exists":"This pattern already exists","pattern-error-invalid":"Not a valid pattern","pattern-regex":"You can input a RegEx","pattern-title":"Pattern {pattern}",patterns:"Patterns","statistic-patterns-description":"Here you can see the frequency of the found feedback patterns.",severity:"Severity",success:"Success",up:"Up",warning:"Warning"})}),Dh=({name:e})=>{let{t}=Sa(Dd);return af(k5,{name:`${e}.evaluation.pattern`,defaultValue:"",helperText:t("pattern-regex"),label:t("pattern"),render:kK})},Dp=({name:e})=>{let{t}=Sa(Dd),{control:n}=bi(),{fields:r,append:i,remove:a}=bG({control:n,name:`${e}.feedback.patterns`});return af(U.Fragment,null,r.map((n,r)=>af(kt,{mb:"standard",key:n.id},af(kt,{display:"flex",width:"100%",alignItems:"center"},af(kt,{flex:"1"},af(kE,{as:"h3",fontSize:"large"},t("pattern-title",{pattern:r.toString()}))),af(k_,{tone:"error",onClick:()=>a(r)},t("delete-pattern"))),af(k5,{name:`${e}.feedback.patterns[${r}].pattern`,label:t("pattern"),defaultValue:"",render:kK}),af(k5,{name:`${e}.feedback.patterns[${r}].feedback.message`,defaultValue:"",label:t("message"),render:({value:e,onChange:t})=>af(_a,{value:e,variant:"input",onChange:e=>t(e)})}),af(k5,{name:`${e}.feedback.patterns[${r}].feedback.severity`,defaultValue:"error",label:t("severity"),render:({value:e,onChange:n,onBlur:r})=>af(U.Fragment,null,af(_4,{value:e,onChange:n,onBlur:r},af("option",{value:"error"},t("error")),af("option",{value:"warning"},t("warning")),af("option",{value:"info"},t("info")),af("option",{value:"success"},t("success"))))}),af(kt,{paddingY:"standard"},af(kX,null)))),af(kt,{mb:"standard"},af(k_,{fullWidth:!0,onClick:()=>i({pattern:"",feedback:{severity:"error",message:""}})},t("add-pattern"))))},Df=w5.merge(ww({subtype:wQ("input"),view:ww({instruction:wh()}),evaluation:w5.shape.evaluation.merge(ww({pattern:wh().refine(e=>{try{return new RegExp(e),!0}catch(e){return!1}},{message:"Pattern must be a valid regular expression"})})),feedback:ww({patterns:wS(ww({pattern:wh().refine(e=>{try{return new RegExp(e),!0}catch(e){return!1}},{message:"Pattern must be a valid regular expression"}),feedback:w2}))})})),Dm=w9.merge(ww({subtype:wQ("input"),patterns:wI(ww({count:wp()})),inputs:wI(ww({correct:wg(),count:wp()}))})),Dg=w4.merge(ww({subtype:wQ("input"),input:wh()})),DO=w3.merge(ww({subtype:wQ("input"),feedback:wS(w2)})),Db=({statistic:e})=>{let{t}=Sa(Dd),[n]=kf(),r=Object.keys(e.patterns).map(t=>{let n=e.patterns[t];return{pattern:t,count:(null==n?void 0:n.count)||0}}).sort((e,t)=>e.count>t.count?-1:1),i=Object.keys(e.inputs).map(t=>{let r=e.inputs[t];return{value:t,count:(null==r?void 0:r.count)||0,color:r.correct?n.colors.success["500"]:void 0}});return af(kt,{padding:"standard"},af(kh,{gap:"standard"},r.length>0&&af(U.Fragment,null,af(kE,{as:"h2",title:t("statistic-patterns-description")},t("patterns")," ",af(ki,{size:"small",color:"info"},af(RR,null))),r.map((e,t)=>af(kt,{display:"flex",borderRadius:"standard",borderWidth:"light",borderStyle:"solid",css:ag` border-color: ${EF("#84C5F4","#DCEEFB",t/r.length)}; `,padding:"standard"},af(kt,{flex:"1",mr:"standard"},af(kw,null,e.pattern)),af(kw,{fontWeight:"bold"},e.count)))),i.length>0&&af(U.Fragment,null,af(kE,{as:"h2",title:t("statistic-inputs-description")},t("inputs")," ",af(ki,{size:"small",color:"info"},af(RR,null))),af(L7.J,{tags:i,minSize:12,maxSize:35,shuffle:!1,renderer:(e,t,n)=>af(kt,{key:e.key||e.value,display:"inline-block",padding:"xxsmall",margin:"xsmall",title:`${e.count}`,borderRadius:"small",borderWidth:"light",css:ag` border-style: solid; border-color: ${n}; color: ${n}; font-size: ${t}px; - `},e.value),colorOptions:{luminosity:"dark",hue:n.colors.warning["500"]}}))))},Dy=({message:e,severity:t})=>af(kc,{severity:t},e),Dv={input:""},Dx=({input:e})=>({type:"change",payload:{input:e}}),DT=({answer:e})=>({type:"answer",payload:{answer:e}}),Dk=P6((e,t)=>{switch(t.type){case"change":e.input=t.payload.input;break;case"answer":return t.payload.answer}}),D_=(0,U.forwardRef)(({task:e,mode:t,result:n,answer:r,onChange:i,onAction:a},o)=>{var s;let[l,u]=(0,U.useReducer)(Dk,Dv),c=e=>{d()&&(a&&a(e),u(e))};(0,U.useEffect)(()=>{r&&u(DT({answer:r}))},[r]),(0,U.useEffect)(()=>{i&&i({subtype:"input",input:l.input})},[l]),(0,U.useImperativeHandle)(o,()=>({dispatch:u}));let d=()=>"recording"!==t&&"result"!==t;return af(kt,{padding:"standard"},af(kh,{gap:"standard"},af(_r,{markdown:e.view.instruction}),af(kK,{error:(null==n?void 0:n.state)==="wrong",value:l.input,onChange:e=>{c(Dx({input:e}))}}),null==(s=null==n?void 0:n.feedback)?void 0:s.map((e,t)=>af(Dy,Ds({key:t},e)))))}),DS=e=>Du(void 0,[e],function*({answer:e,statistic:t,task:n}){var r,i;let{feedback:a,evaluation:o}=n,s=(null==t?void 0:t.patterns)||{},{pattern:l}=o;a.patterns.forEach(t=>{try{let n=new RegExp(t.pattern);n.test(e.input)&&(s[t.pattern]||(s[t.pattern]={count:0}),s[t.pattern].count+=1)}catch(e){}});let u=!1;try{let t=new RegExp(l);t.test(e.input)&&(u=!0)}catch(e){}return{subtype:"input",count:((null==t?void 0:t.count)||0)+1,patterns:s,inputs:Dl(Ds({},null==t?void 0:t.inputs),{[e.input]:{count:((null==(i=null==(r=null==t?void 0:t.inputs)?void 0:r[e.input])?void 0:i.count)||0)+1,correct:u}})}}),Dw=()=>{let{t:e}=Sa(Dd);return{name:e("name"),description:e("description"),example:{description:e("description"),evaluation:{enableRetry:!1,mode:"auto",showFeedback:!1,pattern:"[tT]ype[sS]cript"},feedback:{patterns:[{pattern:"[Jj]ava[Ss]cript",feedback:{message:"Close. Now add types.",severity:"warning"}},{pattern:"[Jj]ava",feedback:{message:"No thanks.",severity:"error"}}]},name:e("name"),subtype:"input",view:{instruction:"Name the *programming lanuage* which is primarly used for implementing **Bitflow**."}}}},DE=({name:e})=>{let{t}=Sa(Dd);return af(U.Fragment,null,af(k5,{name:`${e}.view.instruction`,label:t("instruction"),defaultValue:"",render:({value:e,onChange:t})=>af(_a,{value:e,variant:"input",onChange:e=>t(e)})}))},DC=Object.defineProperty,DA=Object.defineProperties,DR=Object.getOwnPropertyDescriptors,DP=Object.getOwnPropertySymbols,DI=Object.prototype.hasOwnProperty,DN=Object.prototype.propertyIsEnumerable,D$=(e,t,n)=>t in e?DC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,DL=(e,t)=>{for(var n in t||(t={}))DI.call(t,n)&&D$(e,n,t[n]);if(DP)for(var n of DP(t))DN.call(t,n)&&D$(e,n,t[n]);return e},DD=(e,t)=>DA(e,DR(t)),DQ=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),DM=e=>DQ(void 0,[e],function*({task:e,answer:t}){let n=e.evaluation;return"auto"===n.mode?(null==t?void 0:t.yes)===n.yes?{state:"correct",subtype:"yes-no",allowRetry:e.evaluation.enableRetry}:(null==t?void 0:t.yes)===!0?{state:"wrong",subtype:"yes-no",allowRetry:e.evaluation.enableRetry,feedback:e.evaluation.showFeedback?e.feedback.yes:void 0}:{state:"wrong",subtype:"yes-no",allowRetry:e.evaluation.enableRetry,feedback:e.evaluation.showFeedback?e.feedback.no:void 0}:{state:"manual",subtype:"yes-no",allowRetry:e.evaluation.enableRetry}}),DF=Rp({"en-GB":Rf({description:" ","example.feedback.no":"No is not correct","example.feedback.yes":"Yes is correct",name:"Yes No",no:"No",question:"Question","severity.error":"Error","severity.info":"Info","severity.success":"Success","severity.warning":"Warning",yes:"Yes"}),en:Rf({description:" ","example.feedback.no":"No is not correct","example.feedback.yes":"Yes is correct",name:"Yes No",no:"No",question:"Question","severity.error":"Error","severity.info":"Info","severity.success":"Success","severity.warning":"Warning",yes:"Yes"}),"en-US":Rf({description:" ","example.feedback.no":"No is not correct","example.feedback.yes":"Yes is correct",name:"Yes No",no:"No",question:"Question","severity.error":"Error","severity.info":"Info","severity.success":"Success","severity.warning":"Warning",yes:"Yes"}),de:Rf({description:" ","example.feedback.no":"Nein ist nicht korrekt","example.feedback.yes":"Ja ist korrekt",name:"Ja Nein",no:"Nein",question:"Frage","severity.error":"Fehler","severity.info":"Info","severity.success":"Erfolgreich","severity.warning":"Warnung",yes:"Ja"}),fr:Rf({description:" ","example.feedback.no":"No is not correct","example.feedback.yes":"Yes is correct",name:"Yes No",no:"No",question:"Question","severity.error":"Error","severity.info":"Info","severity.success":"Success","severity.warning":"Warning",yes:"Yes"}),es:Rf({description:" ","example.feedback.no":"No is not correct","example.feedback.yes":"Yes is correct",name:"Yes No",no:"No",question:"Question","severity.error":"Error","severity.info":"Info","severity.success":"Success","severity.warning":"Warning",yes:"Yes"}),nl:Rf({description:" ","example.feedback.no":"No is not correct","example.feedback.yes":"Yes is correct",name:"Yes No",no:"No",question:"Question","severity.error":"Error","severity.info":"Info","severity.success":"Success","severity.warning":"Warning",yes:"Yes"}),pt:Rf({description:" ","example.feedback.no":"No is not correct","example.feedback.yes":"Yes is correct",name:"Yes No",no:"No",question:"Question","severity.error":"Error","severity.info":"Info","severity.success":"Success","severity.warning":"Warning",yes:"Yes"}),tr:Rf({description:" ","example.feedback.no":"No is not correct","example.feedback.yes":"Yes is correct",name:"Yes No",no:"No",question:"Question","severity.error":"Error","severity.info":"Info","severity.success":"Success","severity.warning":"Warning",yes:"Yes"})}),DB=({name:e})=>{let{t}=Sa(DF);return af(k5,{name:`${e}.evaluation.yes`,defaultValue:!1,render:({value:e,onChange:n,onBlur:r})=>af(kt,{mt:"standard"},af(kZ,{checked:e,onChange:n,onBlur:r},t("yes")))})},DU=({name:e})=>{let{t}=Sa(DF);return af(kh,{gap:"standard"},af(kt,null,af(k5,{name:`${e}.feedback.yes.message`,label:t("yes"),render:({value:e,onChange:t})=>af(_a,{value:e,variant:"input",onChange:e=>t(e)})}),af(k5,{name:`${e}.feedback.yes.severity`,defaultValue:"error",render:({value:e,onChange:n,onBlur:r})=>af(_4,{value:e,onChange:n,onBlur:r},af("option",{value:"error"},t("severity.error")),af("option",{value:"warning"},t("severity.warning")),af("option",{value:"info"},t("severity.info")),af("option",{value:"success"},t("severity.success")))})),af(kt,null,af(k5,{name:`${e}.feedback.no.message`,label:t("no"),render:({value:e,onChange:t})=>af(_a,{value:e,variant:"input",onChange:e=>t(e)})}),af(k5,{name:`${e}.feedback.no.severity`,defaultValue:"error",render:({value:e,onChange:n,onBlur:r})=>af(_4,{value:e,onChange:n,onBlur:r},af("option",{value:"error"},t("severity.error")),af("option",{value:"warning"},t("severity.warning")),af("option",{value:"info"},t("severity.info")),af("option",{value:"success"},t("severity.success")))})))},Dj=w5.merge(wq.object({subtype:wq.literal("yes-no"),view:wq.object({question:wq.string()}),evaluation:w5.shape.evaluation.merge(wq.object({yes:wq.boolean()})),feedback:wq.object({yes:w2.optional(),no:w2.optional()})})),Dz=w9.merge(wq.object({subtype:wq.literal("yes-no"),yes:wq.number(),no:wq.number()})),DW=w4.merge(wq.object({subtype:wq.literal("yes-no"),yes:wq.boolean()})),DZ=w3.merge(wq.object({subtype:wq.literal("yes-no"),feedback:w2.optional()})),Dq=({statistic:e,task:t})=>{let{t:n}=Sa(DF);return af(kh,{gap:"standard",columns:2},af(k$,null,af(kN,null,n("yes")),af(kS,null,af(kw,{fontSize:"large",textColor:t.evaluation.yes?"success.700":void 0},e.yes))),af(k$,null,af(kN,null,n("no")),af(kS,null,af(kw,{fontSize:"large",textColor:t.evaluation.yes?void 0:"success.700"},e.no))))},DG=({message:e,severity:t})=>af(kc,{severity:t},e),DH=({onChange:e,checked:t,children:n,result:r})=>{let i="neutral.100";if(t){switch(null==r?void 0:r.state){case"correct":i="success.200";break;case"wrong":i="error.200"}i="neutral.200"}return af(kt,{role:"checkbox",display:"flex",padding:"standard",backgroundColor:i,borderRadius:"standard",boxShadow:"standard",justifyContent:"center","aria-checked":t,tabIndex:0,cursor:"pointer",onKeyDown:function(n){" "===n.key&&(e(!t),n.stopPropagation(),n.preventDefault())},fontSize:"large",onClick:function(){e(!t)},css:e=>ag` + `},e.value),colorOptions:{luminosity:"dark",hue:n.colors.warning["500"]}}))))},Dy=({message:e,severity:t})=>af(kc,{severity:t},e),Dv={input:""},Dx=({input:e})=>({type:"change",payload:{input:e}}),DT=({answer:e})=>({type:"answer",payload:{answer:e}}),Dk=P6((e,t)=>{switch(t.type){case"change":e.input=t.payload.input;break;case"answer":return t.payload.answer}}),D_=(0,U.forwardRef)(({task:e,mode:t,result:n,answer:r,onChange:i,onAction:a},o)=>{var s;let[l,u]=(0,U.useReducer)(Dk,Dv),c=e=>{d()&&(a&&a(e),u(e))};(0,U.useEffect)(()=>{r&&u(DT({answer:r}))},[r]),(0,U.useEffect)(()=>{i&&i({subtype:"input",input:l.input})},[l]),(0,U.useImperativeHandle)(o,()=>({dispatch:u}));let d=()=>"recording"!==t&&"result"!==t;return af(kt,{padding:"standard"},af(kh,{gap:"standard"},af(_r,{markdown:e.view.instruction}),af(kK,{error:(null==n?void 0:n.state)==="wrong",value:l.input,onChange:e=>{c(Dx({input:e}))}}),null==(s=null==n?void 0:n.feedback)?void 0:s.map((e,t)=>af(Dy,Ds({key:t},e)))))}),DS=e=>Du(void 0,[e],function*({answer:e,statistic:t,task:n}){var r,i;let{feedback:a,evaluation:o}=n,s=(null==t?void 0:t.patterns)||{},{pattern:l}=o;a.patterns.forEach(t=>{try{let n=new RegExp(t.pattern);n.test(e.input)&&(s[t.pattern]||(s[t.pattern]={count:0}),s[t.pattern].count+=1)}catch(e){}});let u=!1;try{let t=new RegExp(l);t.test(e.input)&&(u=!0)}catch(e){}return{subtype:"input",count:((null==t?void 0:t.count)||0)+1,patterns:s,inputs:Dl(Ds({},null==t?void 0:t.inputs),{[e.input]:{count:((null==(i=null==(r=null==t?void 0:t.inputs)?void 0:r[e.input])?void 0:i.count)||0)+1,correct:u}})}}),Dw=()=>{let{t:e}=Sa(Dd);return{name:e("name"),description:e("description"),example:{description:e("description"),evaluation:{enableRetry:!1,mode:"auto",showFeedback:!1,pattern:"[tT]ype[sS]cript"},feedback:{patterns:[{pattern:"[Jj]ava[Ss]cript",feedback:{message:"Close. Now add types.",severity:"warning"}},{pattern:"[Jj]ava",feedback:{message:"No thanks.",severity:"error"}}]},name:e("name"),subtype:"input",view:{instruction:"Name the *programming lanuage* which is primarly used for implementing **Bitflow**."}}}},DE=({name:e})=>{let{t}=Sa(Dd);return af(U.Fragment,null,af(k5,{name:`${e}.view.instruction`,label:t("instruction"),defaultValue:"",render:({value:e,onChange:t})=>af(_a,{value:e,variant:"input",onChange:e=>t(e)})}))},DC=Object.defineProperty,DA=Object.defineProperties,DR=Object.getOwnPropertyDescriptors,DP=Object.getOwnPropertySymbols,DI=Object.prototype.hasOwnProperty,DN=Object.prototype.propertyIsEnumerable,D$=(e,t,n)=>t in e?DC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,DL=(e,t)=>{for(var n in t||(t={}))DI.call(t,n)&&D$(e,n,t[n]);if(DP)for(var n of DP(t))DN.call(t,n)&&D$(e,n,t[n]);return e},DD=(e,t)=>DA(e,DR(t)),DQ=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),DM=e=>DQ(void 0,[e],function*({task:e,answer:t}){let n=e.evaluation;return"auto"===n.mode?(null==t?void 0:t.yes)===n.yes?{state:"correct",subtype:"yes-no",allowRetry:e.evaluation.enableRetry}:(null==t?void 0:t.yes)===!0?{state:"wrong",subtype:"yes-no",allowRetry:e.evaluation.enableRetry,feedback:e.evaluation.showFeedback?e.feedback.yes:void 0}:{state:"wrong",subtype:"yes-no",allowRetry:e.evaluation.enableRetry,feedback:e.evaluation.showFeedback?e.feedback.no:void 0}:{state:"manual",subtype:"yes-no",allowRetry:e.evaluation.enableRetry}}),DF=Rp({"en-GB":Rf({description:" ","example.feedback.no":"No is not correct","example.feedback.yes":"Yes is correct",name:"Yes No",no:"No",question:"Question","severity.error":"Error","severity.info":"Info","severity.success":"Success","severity.warning":"Warning",yes:"Yes"}),en:Rf({description:" ","example.feedback.no":"No is not correct","example.feedback.yes":"Yes is correct",name:"Yes No",no:"No",question:"Question","severity.error":"Error","severity.info":"Info","severity.success":"Success","severity.warning":"Warning",yes:"Yes"}),"en-US":Rf({description:" ","example.feedback.no":"No is not correct","example.feedback.yes":"Yes is correct",name:"Yes No",no:"No",question:"Question","severity.error":"Error","severity.info":"Info","severity.success":"Success","severity.warning":"Warning",yes:"Yes"}),de:Rf({description:" ","example.feedback.no":"Nein ist nicht korrekt","example.feedback.yes":"Ja ist korrekt",name:"Ja Nein",no:"Nein",question:"Frage","severity.error":"Fehler","severity.info":"Info","severity.success":"Erfolgreich","severity.warning":"Warnung",yes:"Ja"}),fr:Rf({description:" ","example.feedback.no":"No is not correct","example.feedback.yes":"Yes is correct",name:"Yes No",no:"No",question:"Question","severity.error":"Error","severity.info":"Info","severity.success":"Success","severity.warning":"Warning",yes:"Yes"}),es:Rf({description:" ","example.feedback.no":"No is not correct","example.feedback.yes":"Yes is correct",name:"Yes No",no:"No",question:"Question","severity.error":"Error","severity.info":"Info","severity.success":"Success","severity.warning":"Warning",yes:"Yes"}),nl:Rf({description:" ","example.feedback.no":"No is not correct","example.feedback.yes":"Yes is correct",name:"Yes No",no:"No",question:"Question","severity.error":"Error","severity.info":"Info","severity.success":"Success","severity.warning":"Warning",yes:"Yes"}),pt:Rf({description:" ","example.feedback.no":"No is not correct","example.feedback.yes":"Yes is correct",name:"Yes No",no:"No",question:"Question","severity.error":"Error","severity.info":"Info","severity.success":"Success","severity.warning":"Warning",yes:"Yes"}),tr:Rf({description:" ","example.feedback.no":"No is not correct","example.feedback.yes":"Yes is correct",name:"Yes No",no:"No",question:"Question","severity.error":"Error","severity.info":"Info","severity.success":"Success","severity.warning":"Warning",yes:"Yes"})}),DB=({name:e})=>{let{t}=Sa(DF);return af(k5,{name:`${e}.evaluation.yes`,defaultValue:!1,render:({value:e,onChange:n,onBlur:r})=>af(kt,{mt:"standard"},af(kZ,{checked:e,onChange:n,onBlur:r},t("yes")))})},DU=({name:e})=>{let{t}=Sa(DF);return af(kh,{gap:"standard"},af(kt,null,af(k5,{name:`${e}.feedback.yes.message`,label:t("yes"),render:({value:e,onChange:t})=>af(_a,{value:e,variant:"input",onChange:e=>t(e)})}),af(k5,{name:`${e}.feedback.yes.severity`,defaultValue:"error",render:({value:e,onChange:n,onBlur:r})=>af(_4,{value:e,onChange:n,onBlur:r},af("option",{value:"error"},t("severity.error")),af("option",{value:"warning"},t("severity.warning")),af("option",{value:"info"},t("severity.info")),af("option",{value:"success"},t("severity.success")))})),af(kt,null,af(k5,{name:`${e}.feedback.no.message`,label:t("no"),render:({value:e,onChange:t})=>af(_a,{value:e,variant:"input",onChange:e=>t(e)})}),af(k5,{name:`${e}.feedback.no.severity`,defaultValue:"error",render:({value:e,onChange:n,onBlur:r})=>af(_4,{value:e,onChange:n,onBlur:r},af("option",{value:"error"},t("severity.error")),af("option",{value:"warning"},t("severity.warning")),af("option",{value:"info"},t("severity.info")),af("option",{value:"success"},t("severity.success")))})))},Dz=w5.merge(wq.object({subtype:wq.literal("yes-no"),view:wq.object({question:wq.string()}),evaluation:w5.shape.evaluation.merge(wq.object({yes:wq.boolean()})),feedback:wq.object({yes:w2.optional(),no:w2.optional()})})),Dj=w9.merge(wq.object({subtype:wq.literal("yes-no"),yes:wq.number(),no:wq.number()})),DW=w4.merge(wq.object({subtype:wq.literal("yes-no"),yes:wq.boolean()})),DZ=w3.merge(wq.object({subtype:wq.literal("yes-no"),feedback:w2.optional()})),Dq=({statistic:e,task:t})=>{let{t:n}=Sa(DF);return af(kh,{gap:"standard",columns:2},af(k$,null,af(kN,null,n("yes")),af(kS,null,af(kw,{fontSize:"large",textColor:t.evaluation.yes?"success.700":void 0},e.yes))),af(k$,null,af(kN,null,n("no")),af(kS,null,af(kw,{fontSize:"large",textColor:t.evaluation.yes?void 0:"success.700"},e.no))))},DG=({message:e,severity:t})=>af(kc,{severity:t},e),DH=({onChange:e,checked:t,children:n,result:r})=>{let i="neutral.100";if(t){switch(null==r?void 0:r.state){case"correct":i="success.200";break;case"wrong":i="error.200"}i="neutral.200"}return af(kt,{role:"checkbox",display:"flex",padding:"standard",backgroundColor:i,borderRadius:"standard",boxShadow:"standard",justifyContent:"center","aria-checked":t,tabIndex:0,cursor:"pointer",onKeyDown:function(n){" "===n.key&&(e(!t),n.stopPropagation(),n.preventDefault())},fontSize:"large",onClick:function(){e(!t)},css:e=>ag` :focus { box-shadow: ${e.shadows.outline}; } user-select: none; - `},n)},DY={yes:!1},DX=()=>({type:"yes"}),DV=()=>({type:"no"}),DK=({answer:e})=>({type:"answer",payload:{answer:e}}),DJ=P6((e,t)=>{switch(t.type){case"yes":e.yes=!0;break;case"no":e.yes=!1;break;case"answer":return t.payload.answer}}),D1=(0,U.forwardRef)(({task:e,mode:t,onAction:n,answer:r,onChange:i,result:a},o)=>{let{t:s}=Sa(DF),[l,u]=(0,U.useReducer)(DJ,DY),c=e=>{"recording"===t||"result"===t||(null==n||n(e),u(e))};return(0,U.useEffect)(()=>{r&&u(DK({answer:r}))},[r]),(0,U.useEffect)(()=>{null==i||i({subtype:"yes-no",yes:l.yes})},[l.yes]),(0,U.useImperativeHandle)(o,()=>({dispatch:u})),af(kt,{p:"standard"},af(kh,{gap:"standard"},af(kE,null,e.view.question),af(kh,{columns:2,gap:"standard"},af(DH,{onChange:()=>c(DX()),result:a,checked:l.yes},s("yes")),af(DH,{onChange:()=>c(DV()),result:a,checked:!l.yes},s("no"))),(null==a?void 0:a.feedback)&&af(DG,DL({},a.feedback))))}),D0=e=>DQ(void 0,[e],function*({answer:e,statistic:t}){return t||(t={count:0,no:0,yes:0,subtype:"yes-no"}),DD(DL({},t),{count:t.count+1,no:e.yes?t.no:t.no+1,yes:e.yes?t.yes+1:t.yes})}),D2=()=>{let{t:e}=Sa(DF);return{name:e("name"),description:e("description"),example:{subtype:"yes-no",description:"",name:e("name"),view:{question:e("question")},evaluation:{enableRetry:!0,mode:"auto",showFeedback:!0,yes:!0},feedback:{no:{message:e("example.feedback.no"),severity:"error"},yes:{message:e("example.feedback.yes"),severity:"success"}}}}},D5=({name:e})=>{let{t}=Sa(DF);return af(U.Fragment,null,af(k5,{name:`${e}.view.question`,label:t("question"),defaultValue:"",render:kK}))},D9=Rp({"en-GB":Rf({description:" ",markdown:"Markdown",name:"Markdown"}),en:Rf({description:" ",markdown:"Markdown",name:"Markdown"}),"en-US":Rf({description:" ",markdown:"Markdown",name:"Markdown"}),de:Rf({description:" ",markdown:"Markdown",name:"Markdown"}),fr:Rf({description:" ",markdown:"Markdown",name:"Markdown"}),es:Rf({description:" ",markdown:"Markdown",name:"Markdown"}),nl:Rf({description:" ",markdown:"Markdown",name:"Markdown"}),pt:Rf({description:" ",markdown:"Markdown",name:"Markdown"}),tr:Rf({description:" ",markdown:"Markdown",name:"Markdown"})}),D4=w8.merge(ww({subtype:wQ("markdown"),view:ww({markdown:wh()})})),D3=()=>{let{t:e}=Sa(D9);return{name:e("name"),description:e("description"),example:{description:e("description"),name:e("name"),subtype:"markdown",view:{markdown:"# Information"}}}},D8=({input:e})=>af(kt,{px:"standard"},af(_r,{markdown:e.view.markdown})),D6=({name:e})=>{let{t}=Sa(D9);return af(U.Fragment,null,af(k5,{name:`${e}.view.markdown`,label:t("markdown"),defaultValue:"",render:({value:e,onChange:t})=>af(_a,{value:e,variant:"input",onChange:e=>t(e)})}))},D7=Rp({"en-GB":Rf({description:" ","example.message":"In this section you will be asked questions about **control structures**.","example.title":"Section One",message:"Message",name:"Simple",title:"Title"}),en:Rf({description:" ","example.message":"In this section you will be asked questions about **control structures**.","example.title":"Section One",message:"Message",name:"Simple",title:"Title"}),"en-US":Rf({description:" ","example.message":"In this section you will be asked questions about **control structures**.","example.title":"Section One",message:"Message",name:"Simple",title:"Title"}),de:Rf({description:" ","example.message":"In this section you will be asked questions about **control structures**.","example.title":"Section One",message:"Message",name:"Simple",title:"Title"}),fr:Rf({description:" ","example.message":"In this section you will be asked questions about **control structures**.","example.title":"Section One",message:"Message",name:"Simple",title:"Title"}),es:Rf({description:" ","example.message":"In this section you will be asked questions about **control structures**.","example.title":"Section One",message:"Message",name:"Simple",title:"Title"}),nl:Rf({description:" ","example.message":"In this section you will be asked questions about **control structures**.","example.title":"Section One",message:"Message",name:"Simple",title:"Title"}),pt:Rf({description:" ","example.message":"In this section you will be asked questions about **control structures**.","example.title":"Section One",message:"Message",name:"Simple",title:"Title"}),tr:Rf({description:" ","example.message":"In this section you will be asked questions about **control structures**.","example.title":"Section One",message:"Message",name:"Simple",title:"Title"})}),Qe=w6.merge(ww({subtype:wQ("simple"),view:ww({title:wh(),message:wh()})})),Qt=()=>{let{t:e}=Sa(D7);return{name:e("name"),description:e("description"),example:{description:e("description"),name:e("name"),subtype:"simple",view:{message:e("example.message"),title:e("example.title")}}}},Qn=({title:e})=>af(kt,{px:"standard"},af(kE,{as:"h1",textAlign:"center"},e.view.title),af(_r,{markdown:e.view.message})),Qr=({name:e})=>{let{t}=Sa(D7);return af(U.Fragment,null,af(k5,{name:`${e}.view.title`,label:t("title"),defaultValue:"",render:kK}),af(k5,{name:`${e}.view.message`,label:t("message"),defaultValue:"",render:({value:e,onChange:t})=>af(_a,{value:e,variant:"input",onChange:e=>t(e)})}))},Qi=Object.getOwnPropertyNames;(m={"../../scripts/emotion-shim.js"(){}},function(){return m&&(g=(0,m[Qi(m)[0]])(m=0)),g})();var Qa={start:{simple:I},task:{choice:$,"fill-in-the-blank":L,highlighting:D,input:Q,"yes-no":M},end:{tries:N},title:{simple:B},input:{markdown:F}};wq.union([$R,Ln,LK,Df,Dj]);var Qo=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),Qs=Rp({"en-GB":Rf({checkpoint:"Checkpoint","checkpoint-text":"You reached a checkpoint and can not go back to a previous task.",continue:"Continue",input:"Input",next:"Next",refresh:"Refresh",synchronize:"Synchronize","synchronize-text":"Wait until the next node is unlocked.",task:"Task",title:"Title"}),en:Rf({checkpoint:"Checkpoint","checkpoint-text":"You reached a checkpoint and can not go back to a previous task.",continue:"Continue",input:"Input",next:"Next",refresh:"Refresh",synchronize:"Synchronize","synchronize-text":"Wait until the next node is unlocked.",task:"Task",title:"Title"}),"en-US":Rf({checkpoint:"Checkpoint","checkpoint-text":"You reached a checkpoint and can not go back to a previous task.",continue:"Continue",input:"Input",next:"Next",refresh:"Refresh",synchronize:"Synchronize","synchronize-text":"Wait until the next node is unlocked.",task:"Task",title:"Title"}),de:Rf({checkpoint:"Checkpoint","checkpoint-text":"You reached a checkpoint and can not go back to a previous task.",continue:"Continue",input:"Input",next:"Next",refresh:"Refresh",synchronize:"Synchronize","synchronize-text":"Wait until the next node is unlocked.",task:"Task",title:"Title"}),fr:Rf({checkpoint:"Checkpoint","checkpoint-text":"You reached a checkpoint and can not go back to a previous task.",continue:"Continue",input:"Input",next:"Next",refresh:"Refresh",synchronize:"Synchronize","synchronize-text":"Wait until the next node is unlocked.",task:"Task",title:"Title"}),es:Rf({checkpoint:"Checkpoint","checkpoint-text":"You reached a checkpoint and can not go back to a previous task.",continue:"Continue",input:"Input",next:"Next",refresh:"Refresh",synchronize:"Synchronize","synchronize-text":"Wait until the next node is unlocked.",task:"Task",title:"Title"}),nl:Rf({checkpoint:"Checkpoint","checkpoint-text":"You reached a checkpoint and can not go back to a previous task.",continue:"Continue",input:"Input",next:"Next",refresh:"Refresh",synchronize:"Synchronize","synchronize-text":"Wait until the next node is unlocked.",task:"Task",title:"Title"}),pt:Rf({checkpoint:"Checkpoint","checkpoint-text":"You reached a checkpoint and can not go back to a previous task.",continue:"Continue",input:"Input",next:"Next",refresh:"Refresh",synchronize:"Synchronize","synchronize-text":"Wait until the next node is unlocked.",task:"Task",title:"Title"}),tr:Rf({checkpoint:"Checkpoint","checkpoint-text":"You reached a checkpoint and can not go back to a previous task.",continue:"Continue",input:"Input",next:"Next",refresh:"Refresh",synchronize:"Synchronize","synchronize-text":"Wait until the next node is unlocked.",task:"Task",title:"Title"})}),Ql=({onNext:e})=>{let{t}=Sa(Qs);return RJ(Ih,{children:[RK(Ip,{children:t("checkpoint")}),RK(If,{children:t("checkpoint-text")}),RK(Im,{children:RK(kk,{fullWidth:!0,onClick:e,children:t("continue")})})]})},Qu=({onNext:e,getResult:t,node:n})=>{let r=Ad(n.data.subtype);return r?RK(Ig,{EndComponent:r.End,onNext:e,end:n.data,getResult:t}):RK("div",{})},Qc=({onNext:e,node:t,onClose:n,onPrevious:r,progress:i})=>{let{t:a}=Sa(Qs),o=Au(t.data.subtype);if(!o)throw Error("input subtype not supported. Please check your provider config.");return RK(IO,{InputComponent:o.Input,progress:{value:i.progress,max:100},header:a("input"),input:t.data,onNext:e,onClose:n,onPrevious:r})},Qd=({onNext:e,node:t})=>{let n=Ac(t.data.subtype);if(!n)throw Error("start subtype not supported. Please check your provider config.");return RK(Ib,{StartComponent:n.Start,start:t.data,onNext:e})},Qh=({onNext:e,getProgress:t})=>{let{t:n}=Sa(Qs),r=(0,U.useRef)(),[i,a]=(0,U.useState)({next:"locked"}),[o,s]=(0,U.useState)(!1),l=()=>{o||(s(!0),r.current&&clearTimeout(r.current),t().then(e=>a(e)).then(()=>{r.current=setTimeout(l,5e3)}).finally(()=>s(!1)))};return(0,U.useEffect)(()=>{l()},[t]),RJ(Ih,{children:[RK(Ip,{children:n("synchronize")}),RK(If,{children:n("synchronize-text")}),RJ(Im,{children:[RK(kt,{flex:"2",children:RK(kk,{fullWidth:!0,disabled:"locked"===i.next,onClick:e,children:n("next")})}),RK(kt,{flex:"1",children:RK(k_,{tone:"accent",fullWidth:!0,loading:o,onClick:()=>{s(!1),l()},children:n("refresh")})})]})]})},Qp=({onNext:e,node:t,onClose:n,onPrevious:r,onSkip:i,onAction:a,onRetry:o,progress:s,getConfig:l,evaluate:u})=>{let{t:c}=Sa(Qs),[d,h]=(0,U.useState)({enableConfidence:!1,enableReasoning:!1});(0,U.useEffect)(()=>{l().then(e=>h(e)).catch(()=>{})},[l]);let p=As(t.data.subtype);if(!p)throw Error("task subtype not supported. Please check your provider config.");return RK(IZ,{mode:"default",onSkip:i,onAction:a,progress:{max:100,value:s.progress},TaskComponent:p.Task,header:c("task"),soundUrls:d.soundUrls,evaluate:u,task:t.data,enableConfidence:d.enableConfidence,enableReasoning:d.enableReasoning,onNext:e,onRetry:o,onClose:n,onPrevious:r})},Qf=({onNext:e,node:t,onClose:n,onPrevious:r,progress:i})=>{let{t:a}=Sa(Qs),o=Al(t.data.subtype);if(!o)throw Error("title subtype not supported. Please check your provider config.");return RK(Iq,{TitleComponent:o.Title,title:t.data,progress:{max:100,value:i.progress},header:a("title"),onNext:e,onClose:n,onPrevious:r})},Qm=({getCurrent:e,getNext:t,getPrevious:n,getConfig:r,onEnd:i,onRetry:a,onClose:o,onAction:s,onSkip:l,evaluate:u,getProgress:c,getResult:d})=>{let[h,p]=(0,U.useState)(),[f,m]=(0,U.useState)({progress:0,next:"unlocked"});if((0,U.useEffect)(()=>{c().then(e=>{e&&m(e)}).catch(()=>{})},[c,h]),(0,U.useEffect)(()=>{e().then(e=>p(e))},[e]),!h)return RK(Ih,{children:RK(If,{children:RK(kt,{position:"absolute",top:"0",bottom:"0",left:"0",right:"0",justifyContent:"center",alignItems:"center",display:"flex",children:RK(kO,{size:"large"})})})});let g=()=>Qo(void 0,null,function*(){return t().then(e=>{e?(p(e),"end"===e.type&&i()):i()})}),O=()=>Qo(void 0,null,function*(){if(n)return n().then(e=>{e&&p(e)})}),b=()=>Qo(void 0,null,function*(){if(o)return o()});if("task"===h.type)return RK(Qp,{node:h,evaluate:u,onSkip:()=>Qo(void 0,null,function*(){return l().then(()=>g())}),onNext:g,onRetry:()=>Qo(void 0,null,function*(){if(a)return a()}),onAction:s,onPrevious:n?O:void 0,onClose:o?b:void 0,getConfig:r,progress:f},h.id);if("input"===h.type)return RK(Qc,{node:h,onNext:g,progress:f,onPrevious:n?O:void 0,onClose:o?b:void 0},h.id);if("title"===h.type)return RK(Qf,{node:h,progress:f,onNext:g,onPrevious:n?O:void 0,onClose:o?b:void 0},h.id);if("start"===h.type)return RK(Qd,{onNext:g,node:h},h.id);if("end"===h.type)return RK(Qu,{getResult:d,onNext:g,node:h},h.id);if("checkpoint"===h.type)return RK(Ql,{onNext:g},h.id);if("synchronize"===h.type)return RK(Qh,{getProgress:c,onNext:g},h.id);return RK("div",{})},Qg=Object.getOwnPropertyNames,QO=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),Qb=(O={"../../scripts/emotion-shim.js"(){}},function(){return O&&(b=(0,O[Qg(O)[0]])(O=0)),b});Qb(),Qb();var Qy=(e,t)=>{let n={};return e.forEach(e=>{t.includes(e.node.id)&&"finished"===e.status&&e.result&&(n[e.node.id]=e.result)}),n},Qv=(e,t)=>{let n={};return e.forEach(e=>{t.includes(e.node.id)&&"finished"===e.status&&e.answer&&(n[e.node.id]=e.answer)}),n};Qb();var Qx=e=>QO(void 0,[e],function*({nodes:e,edges:t,from:n,to:r,mode:i="pessimistic"}){let a=e.find(e=>e.id===n);if(!a)return 0;let o={};return function n(a,s){if("string"==typeof r&&a.id===r||Array.isArray(r)&&r.includes(a.id))return s;if(!0===o[a.id])return Number.POSITIVE_INFINITY;o[a.id]=!0;let l=t.filter(e=>e.source===a.id).sort((e,t)=>(null==e?void 0:e.sourceHandle)&&(null==t?void 0:t.sourceHandle)?e.sourceHandle>t.sourceHandle?1:-1:1),u=l.map(t=>e.find(e=>e.id===t.target?e:null)).map(t=>{if(t&&"portal-input"===t.type){let n=e.find(e=>"portal-output"===e.type&&e.data.portal===t.data.portal);return n}return t});if(0===u.length)return Number.POSITIVE_INFINITY;let c=[];for(let e of u)c.push(n(e,s+1));return"optimistic"===i?Math.min(...c.filter(Number.isFinite),Number.POSITIVE_INFINITY):Math.max(...c.filter(Number.isFinite),Number.NEGATIVE_INFINITY)}(a,0)});function QT(e,t="This value was promised to be there."){if(null==e)throw TypeError(t);return e}Qb(),Qb();var Qk=e=>QO(void 0,[e],function*({nodes:e,currentId:t,edges:n,getAnswers:r,getResults:i,getPoints:a}){var o;let s;let l=QT(e.find(e=>e.id===t));"portal-input"===l.type&&(l=yield Q_({currentNode:l,nodes:e}));let u=n.filter(e=>e.source===l.id).sort((e,t)=>(null==e?void 0:e.sourceHandle)&&(null==t?void 0:t.sourceHandle)?e.sourceHandle>t.sourceHandle?1:-1:1),c=u.map(t=>e.find(e=>e.id===t.target));if(0===c.length)return null;switch(l.type){case"task":case"input":case"title":case"start":case"checkpoint":case"synchronize":case"portal-output":s=yield QS({outgoers:c});break;case"split-answer":s=yield QC({currentNode:l,outgoers:c,getAnswers:r});break;case"split-random":s=yield Qw({currentNode:l,outgoers:c});break;case"split-points":s=yield QE({currentNode:l,outgoers:c,getPoints:a});break;case"split-result":s=yield QA({currentNode:l,outgoers:c,getResults:i});break;default:throw TypeError("node type not found")}return(null==(o=s.type)?void 0:o.includes("split-"))||"portal-input"===s.type?Qk({currentId:s.id,nodes:e,edges:n,getAnswers:r,getResults:i,getPoints:a}):s}),Q_=e=>QO(void 0,[e],function*({currentNode:e,nodes:t}){let n=t.find(t=>"portal-output"===t.type&&t.data.portal===e.data.portal);if(n)return n;throw TypeError("invalid portal node data")}),QS=e=>QO(void 0,[e],function*({outgoers:e}){return e[0]}),Qw=e=>QO(void 0,[e],function*({currentNode:e,outgoers:t}){let n=t[Math.floor(Math.random()*t.length)];return n}),QE=e=>QO(void 0,[e],function*({currentNode:e,outgoers:t,getPoints:n}){let r=e.data,i=yield n();return t.length>1&&i>r.points?t[1]:t[0]}),QC=e=>QO(void 0,[e],function*({currentNode:e,outgoers:t,getAnswers:n}){let r=e.data,i=new Set([]);"and"===r.condition.type||"or"===r.condition.type?r.condition.conditions.forEach(e=>{i.add(e.nodeId)}):i.add(r.condition.nodeId);let a=yield n(Array.from(i)),o=QR(r.condition,a);return o?t[0]:t[1]}),QA=e=>QO(void 0,[e],function*({currentNode:e,outgoers:t,getResults:n}){let r=e.data,i=new Set([]);"and"===r.condition.type||"or"===r.condition.type?r.condition.conditions.forEach(e=>{i.add(e.nodeId)}):i.add(r.condition.nodeId);let a=yield n(Array.from(i)),o=QR(r.condition,a);return o?t[0]:t[1]}),QR=(e,t)=>{if("and"===e.type){let n=!0;for(let r of e.conditions)if(!(n=n&&QP(r,t)))break;return n}if("or"!==e.type)return QP(e,t);{let n=!1;for(let r of e.conditions)n=n||QP(r,t);return n}},QP=(e,t)=>{let n=!0,r=e.nodeId,i=So(t[r],e.key);switch(e.type){case"equal":n=i==e.value;break;case"greater":n=e.include?i>=e.value:i>e.value;break;case"less":n=e.include?i<=e.value:iQO(void 0,[e],function*({nodes:e,currentId:t,edges:n}){let r=QT(e.find(e=>e.id===t));if("portal-output"===r.type){let t=e.filter(e=>"portal-input"===e.type).find(e=>"portal-input"===e.type&&e.data.portal===r.data.portal);return t?QI({nodes:e,currentId:t.id,edges:n}):null}let i=n.filter(e=>e.target===t);if(0===i.length)return null;let a=QT(e.find(e=>e.id===i[0].source));return a.type.includes("split-")||"portal-output"===a.type||"portal-input"===a.type?QI({currentId:a.id,nodes:e,edges:n}):"synchronize"===a.type||"checkpoint"===a.type?null:a}),QN=Object.defineProperty,Q$=Object.getOwnPropertySymbols,QL=Object.prototype.hasOwnProperty,QD=Object.prototype.propertyIsEnumerable,QQ=(e,t,n)=>t in e?QN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,QM=(e,t)=>{for(var n in t||(t={}))QL.call(t,n)&&QQ(e,n,t[n]);if(Q$)for(var n of Q$(t))QD.call(t,n)&&QQ(e,n,t[n]);return e},QF=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),QB=({flow:e,config:t})=>{let{evaluate:n}=Ah(),r=(0,U.useRef)(QM({soundUrls:{correct:"/correct.mp3",wrong:"/wrong.mp3",unknown:"/unknown.mp3",manual:"/manual.mp3"}},t)),i=(0,U.useRef)(e.nodes.find(ED)),a=(0,U.useRef)({progress:0,next:"unlocked"}),o=(0,U.useRef)({points:0,maxPoints:0,tries:[],endDate:new Date,startDate:new Date});return RK(Qm,{onEnd:()=>QF(void 0,null,function*(){console.log("The End!")}),onSkip:()=>QF(void 0,null,function*(){var e,t;o.current=En(o.current,{mode:null==(t=null==(e=i.current.data)?void 0:e.evaluation)?void 0:t.mode})}),onRetry:()=>QF(void 0,null,function*(){o.current=Ei(o.current)}),evaluate:e=>QF(void 0,null,function*(){var t;if((null==(t=i.current)?void 0:t.type)!=="task")throw Error("type not supported");let r=yield n({answer:e,task:i.current.data});return o.current=Er(o.current,e,r),r}),getConfig:()=>QF(void 0,null,function*(){return r.current}),getCurrent:()=>QF(void 0,null,function*(){if(!i.current)throw Error("no current node");return i.current}),getNext:()=>QF(void 0,null,function*(){let{tries:t,points:n}=o.current;if(i){let r=yield Qk({currentId:i.current.id,nodes:e.nodes,edges:e.edges,getAnswers:e=>QF(void 0,null,function*(){return Qv(t,e)}),getResults:e=>QF(void 0,null,function*(){return Qy(t,e)}),getPoints:()=>QF(void 0,null,function*(){return n})});if(r&&EQ(r)){i.current=r;let e=Math.max(...t.filter(e=>e.node.id==r.id).map(e=>e.try),-1);return t.push({status:"started",try:e+1,startDate:new Date,node:EM(r)}),"synchronize"===r.type&&(a.current.next="locked",setTimeout(()=>a.current.next="unlocked",1e3)),r}}return null}),getPrevious:()=>QF(void 0,null,function*(){let{tries:t}=o.current;if(i.current){let n=yield QI({currentId:i.current.id,nodes:e.nodes,edges:e.edges});if(n&&EQ(n)){i.current=n;let e=Math.max(...t.filter(e=>e.node.id==n.id).map(e=>e.try),-1);return t.push({status:"started",node:EM(n),startDate:new Date,try:e+1}),n}}return null}),getProgress:()=>QF(void 0,null,function*(){var t;let n=yield Qx({nodes:e.nodes,edges:e.edges,from:(null==(t=e.nodes.find(e=>"start"===e.type))?void 0:t.id)||"",to:e.nodes.filter(e=>"end"===e.type).map(e=>e.id)}),r=yield Qx({nodes:e.nodes,edges:e.edges,from:i.current.id,to:e.nodes.filter(e=>"end"===e.type).map(e=>e.id)});return a.current.progress=(1-r/n)*100,console.log(a.current),a.current}),getResult:()=>QF(void 0,null,function*(){return o.current})})},QU=Object.defineProperty,Qj=Object.getOwnPropertyNames,Qz=(e,t)=>function(){return e&&(t=(0,e[Qj(e)[0]])(e=0)),t},QW=(e,t)=>{for(var n in t)QU(e,n,{get:t[n],enumerable:!0})},QZ=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),Qq={};QW(Qq,{default:()=>S});var QG=Qz({"src/Flow.tsx"(){k=({flow:e})=>{let{language:t}=(0,z.ZR)();return RK(_5,{standalone:!1,children:RK(Ai,{locale:t||"en",config:{},bits:Qa,children:RK(_,{flow:e})})})},_=({flow:e})=>{let{FlowSchema:t}=Ah(),n=(0,z.RI)();try{t.parse(e)}catch(e){if(e instanceof Sc)return RK("p",{children:e.issues.map(e=>e.code+": "+e.path.join(".")+" "+e.message).join("\n")});return RK("p",{children:"Error"})}return RK(QB,{flow:e,config:{soundUrls:{correct:n("/correct.mp3","public"),wrong:n("/wrong.mp3","public"),unknown:n("/unknown.mp3","public"),manual:n("/manual.mp3","public")}}})},S=k}}),QH={};QW(QH,{TaskInner:()=>E,default:()=>C});var QY=Qz({"src/Task.tsx"(){w=({task:e})=>{let{language:t}=(0,z.ZR)();return RK(_5,{standalone:!1,children:RK(Ai,{locale:t||"en",config:{},bits:Qa,children:RK(E,{task:e})})})},E=({task:e})=>{let t=(0,z.RI)(),n=Qa.task[e.subtype],[r,i]=(0,U.useState)(),[a,o]=(0,U.useState)(new Date),{FlowNodeSchema:s}=Ah();try{s.parse({id:"",position:{x:0,y:0},type:"task",data:e})}catch(e){if(e instanceof Sc)return RK("p",{children:e.issues.map(e=>e.code+": "+e.path.join(".")+" "+e.message).join("\n")});return RK("p",{children:'"Error"'})}return RK(IZ,{task:e,mode:r?"result":"default",evaluate:t=>QZ(void 0,null,function*(){let r=yield n.evaluate({answer:t,task:e});return i(r),r}),result:r,onRetry:()=>QZ(void 0,null,function*(){i(null),o(new Date)}),soundUrls:{correct:t("/correct.mp3","public"),wrong:t("/wrong.mp3","public"),unknown:t("/unknown.mp3","public"),manual:t("/manual.mp3","public")},TaskComponent:n.Task},a.toString())},C=w}}),QX=(0,U.lazy)(()=>Promise.resolve().then(()=>(QG(),Qq))),QV=(0,U.lazy)(()=>Promise.resolve().then(()=>(QY(),QH))),QK=()=>RK("div",{className:"loading",children:"..."}),QJ={directives:{flow:({src:e,height:t=400})=>{let n=(0,z.RI)(),[r]=(0,z.TR)(),[i,a]=(0,U.useState)(),[o,s]=(0,U.useState)();return(e||s('You need to provide a src like so: ::flow{src="/flow.json"}'),(0,U.useEffect)(()=>{let t=n(e,"public");r(t).then(e=>JSON.parse(e)).then(a).catch(()=>{s(`Could not find a flow at ${e}. Please check the src.`)})},[e]),o)?RK("pre",{className:"element-bitflow",children:o}):RK("div",{className:"element-bitflow",style:{height:t},children:RK(U.Suspense,{fallback:RK(QK,{}),children:i?RK(QX,{flow:i}):RK(QK,{})})})},task:({src:e,height:t=400})=>{let n=(0,z.RI)(),[r]=(0,z.TR)(),[i,a]=(0,U.useState)(),[o,s]=(0,U.useState)();return(e||s('You need to provide a src like so: ::task{src="/task.json"}'),(0,U.useEffect)(()=>{let t=n(e,"public");r(t).then(e=>JSON.parse(e)).then(a).catch(()=>{s(`Could not find a task at ${e}. Please check the src.`)})},[e]),o)?RK("pre",{className:"element-bitflow",children:o}):RK("div",{className:"element-bitflow",style:{height:t},children:RK(U.Suspense,{fallback:RK(QK,{}),children:i?RK(QV,{task:i}):RK(QK,{})})})}},slice:(0,W.oM)({name:"element.bitflow",initialState:{},reducers:{}})};n(63031);var Q1=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),Q0=e=>["string","number"].includes(typeof e)?e:e instanceof Array?e.map(Q0).join(""):"object"==typeof e&&e?Q0(e.props.children):"",Q2=(e,t)=>Q1(void 0,null,function*(){let r=(yield n.e(1406).then(n.bind(n,72147))).default,i={};for(let e of t.languages)try{let t=(yield n(97419)(`./${e}.json`)).default;i[e]=t}catch(e){}r.loadLanguages(i);let a=r.parse(e,t),o=r.render(a,t);return o}),Q5={directives:{scratchblock:({children:e,language:t})=>{let n=(0,U.useRef)(null),{language:r}=(0,z.ZR)(),i=Q0(e),a=["en"];t&&a.push(t),r&&a.push(r);let o={style:"scratch3",languages:a};return(0,U.useEffect)(()=>{Q2(i,o).then(e=>{n.current&&(n.current.innerHTML="",n.current.appendChild(e))})},[i]),(0,G.jsx)("div",{className:"element-scratchblock",ref:n})}}};n(70895);var Q9={directives:{tiles:({children:e})=>(0,G.jsx)("div",{className:"hyperbook element-tiles",children:(0,G.jsx)("ul",{className:"tiles",children:e})}),tile:({size:e="M",title:t,href:n,icon:r})=>{let i=(0,z.RI)();return n=i(n,"public"),r=i(r,"public"),(0,G.jsxs)("li",{className:`tile ${e} ${n?"link":""}`,children:[(0,G.jsx)("a",{className:"tile-title",href:n,children:t}),r&&(0,G.jsx)("img",{className:"tile-icon",src:r})]})}},slice:(0,W.oM)({name:"element.tiles",initialState:{},reducers:{}})};n(41381);var Q4=n(41664),Q3=n.n(Q4),Q8=n(9008),Q6=n.n(Q8),Q7=()=>{let{colors:e,font:t,fonts:n}=(0,z.ZR)(),r=(0,z.RI)();return(0,G.jsxs)(U.Fragment,{children:[(0,G.jsx)("style",{children:`:root { + `},n)},DY={yes:!1},DX=()=>({type:"yes"}),DV=()=>({type:"no"}),DK=({answer:e})=>({type:"answer",payload:{answer:e}}),DJ=P6((e,t)=>{switch(t.type){case"yes":e.yes=!0;break;case"no":e.yes=!1;break;case"answer":return t.payload.answer}}),D1=(0,U.forwardRef)(({task:e,mode:t,onAction:n,answer:r,onChange:i,result:a},o)=>{let{t:s}=Sa(DF),[l,u]=(0,U.useReducer)(DJ,DY),c=e=>{"recording"===t||"result"===t||(null==n||n(e),u(e))};return(0,U.useEffect)(()=>{r&&u(DK({answer:r}))},[r]),(0,U.useEffect)(()=>{null==i||i({subtype:"yes-no",yes:l.yes})},[l.yes]),(0,U.useImperativeHandle)(o,()=>({dispatch:u})),af(kt,{p:"standard"},af(kh,{gap:"standard"},af(kE,null,e.view.question),af(kh,{columns:2,gap:"standard"},af(DH,{onChange:()=>c(DX()),result:a,checked:l.yes},s("yes")),af(DH,{onChange:()=>c(DV()),result:a,checked:!l.yes},s("no"))),(null==a?void 0:a.feedback)&&af(DG,DL({},a.feedback))))}),D0=e=>DQ(void 0,[e],function*({answer:e,statistic:t}){return t||(t={count:0,no:0,yes:0,subtype:"yes-no"}),DD(DL({},t),{count:t.count+1,no:e.yes?t.no:t.no+1,yes:e.yes?t.yes+1:t.yes})}),D2=()=>{let{t:e}=Sa(DF);return{name:e("name"),description:e("description"),example:{subtype:"yes-no",description:"",name:e("name"),view:{question:e("question")},evaluation:{enableRetry:!0,mode:"auto",showFeedback:!0,yes:!0},feedback:{no:{message:e("example.feedback.no"),severity:"error"},yes:{message:e("example.feedback.yes"),severity:"success"}}}}},D5=({name:e})=>{let{t}=Sa(DF);return af(U.Fragment,null,af(k5,{name:`${e}.view.question`,label:t("question"),defaultValue:"",render:kK}))},D9=Rp({"en-GB":Rf({description:" ",markdown:"Markdown",name:"Markdown"}),en:Rf({description:" ",markdown:"Markdown",name:"Markdown"}),"en-US":Rf({description:" ",markdown:"Markdown",name:"Markdown"}),de:Rf({description:" ",markdown:"Markdown",name:"Markdown"}),fr:Rf({description:" ",markdown:"Markdown",name:"Markdown"}),es:Rf({description:" ",markdown:"Markdown",name:"Markdown"}),nl:Rf({description:" ",markdown:"Markdown",name:"Markdown"}),pt:Rf({description:" ",markdown:"Markdown",name:"Markdown"}),tr:Rf({description:" ",markdown:"Markdown",name:"Markdown"})}),D4=w8.merge(ww({subtype:wQ("markdown"),view:ww({markdown:wh()})})),D3=()=>{let{t:e}=Sa(D9);return{name:e("name"),description:e("description"),example:{description:e("description"),name:e("name"),subtype:"markdown",view:{markdown:"# Information"}}}},D8=({input:e})=>af(kt,{px:"standard"},af(_r,{markdown:e.view.markdown})),D6=({name:e})=>{let{t}=Sa(D9);return af(U.Fragment,null,af(k5,{name:`${e}.view.markdown`,label:t("markdown"),defaultValue:"",render:({value:e,onChange:t})=>af(_a,{value:e,variant:"input",onChange:e=>t(e)})}))},D7=Rp({"en-GB":Rf({description:" ","example.message":"In this section you will be asked questions about **control structures**.","example.title":"Section One",message:"Message",name:"Simple",title:"Title"}),en:Rf({description:" ","example.message":"In this section you will be asked questions about **control structures**.","example.title":"Section One",message:"Message",name:"Simple",title:"Title"}),"en-US":Rf({description:" ","example.message":"In this section you will be asked questions about **control structures**.","example.title":"Section One",message:"Message",name:"Simple",title:"Title"}),de:Rf({description:" ","example.message":"In this section you will be asked questions about **control structures**.","example.title":"Section One",message:"Message",name:"Simple",title:"Title"}),fr:Rf({description:" ","example.message":"In this section you will be asked questions about **control structures**.","example.title":"Section One",message:"Message",name:"Simple",title:"Title"}),es:Rf({description:" ","example.message":"In this section you will be asked questions about **control structures**.","example.title":"Section One",message:"Message",name:"Simple",title:"Title"}),nl:Rf({description:" ","example.message":"In this section you will be asked questions about **control structures**.","example.title":"Section One",message:"Message",name:"Simple",title:"Title"}),pt:Rf({description:" ","example.message":"In this section you will be asked questions about **control structures**.","example.title":"Section One",message:"Message",name:"Simple",title:"Title"}),tr:Rf({description:" ","example.message":"In this section you will be asked questions about **control structures**.","example.title":"Section One",message:"Message",name:"Simple",title:"Title"})}),Qe=w6.merge(ww({subtype:wQ("simple"),view:ww({title:wh(),message:wh()})})),Qt=()=>{let{t:e}=Sa(D7);return{name:e("name"),description:e("description"),example:{description:e("description"),name:e("name"),subtype:"simple",view:{message:e("example.message"),title:e("example.title")}}}},Qn=({title:e})=>af(kt,{px:"standard"},af(kE,{as:"h1",textAlign:"center"},e.view.title),af(_r,{markdown:e.view.message})),Qr=({name:e})=>{let{t}=Sa(D7);return af(U.Fragment,null,af(k5,{name:`${e}.view.title`,label:t("title"),defaultValue:"",render:kK}),af(k5,{name:`${e}.view.message`,label:t("message"),defaultValue:"",render:({value:e,onChange:t})=>af(_a,{value:e,variant:"input",onChange:e=>t(e)})}))},Qi=Object.getOwnPropertyNames;(m={"../../scripts/emotion-shim.js"(){}},function(){return m&&(g=(0,m[Qi(m)[0]])(m=0)),g})();var Qa={start:{simple:I},task:{choice:$,"fill-in-the-blank":L,highlighting:D,input:Q,"yes-no":M},end:{tries:N},title:{simple:B},input:{markdown:F}};wq.union([$R,Ln,LK,Df,Dz]);var Qo=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),Qs=Rp({"en-GB":Rf({checkpoint:"Checkpoint","checkpoint-text":"You reached a checkpoint and can not go back to a previous task.",continue:"Continue",input:"Input",next:"Next",refresh:"Refresh",synchronize:"Synchronize","synchronize-text":"Wait until the next node is unlocked.",task:"Task",title:"Title"}),en:Rf({checkpoint:"Checkpoint","checkpoint-text":"You reached a checkpoint and can not go back to a previous task.",continue:"Continue",input:"Input",next:"Next",refresh:"Refresh",synchronize:"Synchronize","synchronize-text":"Wait until the next node is unlocked.",task:"Task",title:"Title"}),"en-US":Rf({checkpoint:"Checkpoint","checkpoint-text":"You reached a checkpoint and can not go back to a previous task.",continue:"Continue",input:"Input",next:"Next",refresh:"Refresh",synchronize:"Synchronize","synchronize-text":"Wait until the next node is unlocked.",task:"Task",title:"Title"}),de:Rf({checkpoint:"Checkpoint","checkpoint-text":"You reached a checkpoint and can not go back to a previous task.",continue:"Continue",input:"Input",next:"Next",refresh:"Refresh",synchronize:"Synchronize","synchronize-text":"Wait until the next node is unlocked.",task:"Task",title:"Title"}),fr:Rf({checkpoint:"Checkpoint","checkpoint-text":"You reached a checkpoint and can not go back to a previous task.",continue:"Continue",input:"Input",next:"Next",refresh:"Refresh",synchronize:"Synchronize","synchronize-text":"Wait until the next node is unlocked.",task:"Task",title:"Title"}),es:Rf({checkpoint:"Checkpoint","checkpoint-text":"You reached a checkpoint and can not go back to a previous task.",continue:"Continue",input:"Input",next:"Next",refresh:"Refresh",synchronize:"Synchronize","synchronize-text":"Wait until the next node is unlocked.",task:"Task",title:"Title"}),nl:Rf({checkpoint:"Checkpoint","checkpoint-text":"You reached a checkpoint and can not go back to a previous task.",continue:"Continue",input:"Input",next:"Next",refresh:"Refresh",synchronize:"Synchronize","synchronize-text":"Wait until the next node is unlocked.",task:"Task",title:"Title"}),pt:Rf({checkpoint:"Checkpoint","checkpoint-text":"You reached a checkpoint and can not go back to a previous task.",continue:"Continue",input:"Input",next:"Next",refresh:"Refresh",synchronize:"Synchronize","synchronize-text":"Wait until the next node is unlocked.",task:"Task",title:"Title"}),tr:Rf({checkpoint:"Checkpoint","checkpoint-text":"You reached a checkpoint and can not go back to a previous task.",continue:"Continue",input:"Input",next:"Next",refresh:"Refresh",synchronize:"Synchronize","synchronize-text":"Wait until the next node is unlocked.",task:"Task",title:"Title"})}),Ql=({onNext:e})=>{let{t}=Sa(Qs);return RJ(Ih,{children:[RK(Ip,{children:t("checkpoint")}),RK(If,{children:t("checkpoint-text")}),RK(Im,{children:RK(kk,{fullWidth:!0,onClick:e,children:t("continue")})})]})},Qu=({onNext:e,getResult:t,node:n})=>{let r=Ad(n.data.subtype);return r?RK(Ig,{EndComponent:r.End,onNext:e,end:n.data,getResult:t}):RK("div",{})},Qc=({onNext:e,node:t,onClose:n,onPrevious:r,progress:i})=>{let{t:a}=Sa(Qs),o=Au(t.data.subtype);if(!o)throw Error("input subtype not supported. Please check your provider config.");return RK(IO,{InputComponent:o.Input,progress:{value:i.progress,max:100},header:a("input"),input:t.data,onNext:e,onClose:n,onPrevious:r})},Qd=({onNext:e,node:t})=>{let n=Ac(t.data.subtype);if(!n)throw Error("start subtype not supported. Please check your provider config.");return RK(Ib,{StartComponent:n.Start,start:t.data,onNext:e})},Qh=({onNext:e,getProgress:t})=>{let{t:n}=Sa(Qs),r=(0,U.useRef)(),[i,a]=(0,U.useState)({next:"locked"}),[o,s]=(0,U.useState)(!1),l=()=>{o||(s(!0),r.current&&clearTimeout(r.current),t().then(e=>a(e)).then(()=>{r.current=setTimeout(l,5e3)}).finally(()=>s(!1)))};return(0,U.useEffect)(()=>{l()},[t]),RJ(Ih,{children:[RK(Ip,{children:n("synchronize")}),RK(If,{children:n("synchronize-text")}),RJ(Im,{children:[RK(kt,{flex:"2",children:RK(kk,{fullWidth:!0,disabled:"locked"===i.next,onClick:e,children:n("next")})}),RK(kt,{flex:"1",children:RK(k_,{tone:"accent",fullWidth:!0,loading:o,onClick:()=>{s(!1),l()},children:n("refresh")})})]})]})},Qp=({onNext:e,node:t,onClose:n,onPrevious:r,onSkip:i,onAction:a,onRetry:o,progress:s,getConfig:l,evaluate:u})=>{let{t:c}=Sa(Qs),[d,h]=(0,U.useState)({enableConfidence:!1,enableReasoning:!1});(0,U.useEffect)(()=>{l().then(e=>h(e)).catch(()=>{})},[l]);let p=As(t.data.subtype);if(!p)throw Error("task subtype not supported. Please check your provider config.");return RK(IZ,{mode:"default",onSkip:i,onAction:a,progress:{max:100,value:s.progress},TaskComponent:p.Task,header:c("task"),soundUrls:d.soundUrls,evaluate:u,task:t.data,enableConfidence:d.enableConfidence,enableReasoning:d.enableReasoning,onNext:e,onRetry:o,onClose:n,onPrevious:r})},Qf=({onNext:e,node:t,onClose:n,onPrevious:r,progress:i})=>{let{t:a}=Sa(Qs),o=Al(t.data.subtype);if(!o)throw Error("title subtype not supported. Please check your provider config.");return RK(Iq,{TitleComponent:o.Title,title:t.data,progress:{max:100,value:i.progress},header:a("title"),onNext:e,onClose:n,onPrevious:r})},Qm=({getCurrent:e,getNext:t,getPrevious:n,getConfig:r,onEnd:i,onRetry:a,onClose:o,onAction:s,onSkip:l,evaluate:u,getProgress:c,getResult:d})=>{let[h,p]=(0,U.useState)(),[f,m]=(0,U.useState)({progress:0,next:"unlocked"});if((0,U.useEffect)(()=>{c().then(e=>{e&&m(e)}).catch(()=>{})},[c,h]),(0,U.useEffect)(()=>{e().then(e=>p(e))},[e]),!h)return RK(Ih,{children:RK(If,{children:RK(kt,{position:"absolute",top:"0",bottom:"0",left:"0",right:"0",justifyContent:"center",alignItems:"center",display:"flex",children:RK(kO,{size:"large"})})})});let g=()=>Qo(void 0,null,function*(){return t().then(e=>{e?(p(e),"end"===e.type&&i()):i()})}),O=()=>Qo(void 0,null,function*(){if(n)return n().then(e=>{e&&p(e)})}),b=()=>Qo(void 0,null,function*(){if(o)return o()});if("task"===h.type)return RK(Qp,{node:h,evaluate:u,onSkip:()=>Qo(void 0,null,function*(){return l().then(()=>g())}),onNext:g,onRetry:()=>Qo(void 0,null,function*(){if(a)return a()}),onAction:s,onPrevious:n?O:void 0,onClose:o?b:void 0,getConfig:r,progress:f},h.id);if("input"===h.type)return RK(Qc,{node:h,onNext:g,progress:f,onPrevious:n?O:void 0,onClose:o?b:void 0},h.id);if("title"===h.type)return RK(Qf,{node:h,progress:f,onNext:g,onPrevious:n?O:void 0,onClose:o?b:void 0},h.id);if("start"===h.type)return RK(Qd,{onNext:g,node:h},h.id);if("end"===h.type)return RK(Qu,{getResult:d,onNext:g,node:h},h.id);if("checkpoint"===h.type)return RK(Ql,{onNext:g},h.id);if("synchronize"===h.type)return RK(Qh,{getProgress:c,onNext:g},h.id);return RK("div",{})},Qg=Object.getOwnPropertyNames,QO=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),Qb=(O={"../../scripts/emotion-shim.js"(){}},function(){return O&&(b=(0,O[Qg(O)[0]])(O=0)),b});Qb(),Qb();var Qy=(e,t)=>{let n={};return e.forEach(e=>{t.includes(e.node.id)&&"finished"===e.status&&e.result&&(n[e.node.id]=e.result)}),n},Qv=(e,t)=>{let n={};return e.forEach(e=>{t.includes(e.node.id)&&"finished"===e.status&&e.answer&&(n[e.node.id]=e.answer)}),n};Qb();var Qx=e=>QO(void 0,[e],function*({nodes:e,edges:t,from:n,to:r,mode:i="pessimistic"}){let a=e.find(e=>e.id===n);if(!a)return 0;let o={};return function n(a,s){if("string"==typeof r&&a.id===r||Array.isArray(r)&&r.includes(a.id))return s;if(!0===o[a.id])return Number.POSITIVE_INFINITY;o[a.id]=!0;let l=t.filter(e=>e.source===a.id).sort((e,t)=>(null==e?void 0:e.sourceHandle)&&(null==t?void 0:t.sourceHandle)?e.sourceHandle>t.sourceHandle?1:-1:1),u=l.map(t=>e.find(e=>e.id===t.target?e:null)).map(t=>{if(t&&"portal-input"===t.type){let n=e.find(e=>"portal-output"===e.type&&e.data.portal===t.data.portal);return n}return t});if(0===u.length)return Number.POSITIVE_INFINITY;let c=[];for(let e of u)c.push(n(e,s+1));return"optimistic"===i?Math.min(...c.filter(Number.isFinite),Number.POSITIVE_INFINITY):Math.max(...c.filter(Number.isFinite),Number.NEGATIVE_INFINITY)}(a,0)});function QT(e,t="This value was promised to be there."){if(null==e)throw TypeError(t);return e}Qb(),Qb();var Qk=e=>QO(void 0,[e],function*({nodes:e,currentId:t,edges:n,getAnswers:r,getResults:i,getPoints:a}){var o;let s;let l=QT(e.find(e=>e.id===t));"portal-input"===l.type&&(l=yield Q_({currentNode:l,nodes:e}));let u=n.filter(e=>e.source===l.id).sort((e,t)=>(null==e?void 0:e.sourceHandle)&&(null==t?void 0:t.sourceHandle)?e.sourceHandle>t.sourceHandle?1:-1:1),c=u.map(t=>e.find(e=>e.id===t.target));if(0===c.length)return null;switch(l.type){case"task":case"input":case"title":case"start":case"checkpoint":case"synchronize":case"portal-output":s=yield QS({outgoers:c});break;case"split-answer":s=yield QC({currentNode:l,outgoers:c,getAnswers:r});break;case"split-random":s=yield Qw({currentNode:l,outgoers:c});break;case"split-points":s=yield QE({currentNode:l,outgoers:c,getPoints:a});break;case"split-result":s=yield QA({currentNode:l,outgoers:c,getResults:i});break;default:throw TypeError("node type not found")}return(null==(o=s.type)?void 0:o.includes("split-"))||"portal-input"===s.type?Qk({currentId:s.id,nodes:e,edges:n,getAnswers:r,getResults:i,getPoints:a}):s}),Q_=e=>QO(void 0,[e],function*({currentNode:e,nodes:t}){let n=t.find(t=>"portal-output"===t.type&&t.data.portal===e.data.portal);if(n)return n;throw TypeError("invalid portal node data")}),QS=e=>QO(void 0,[e],function*({outgoers:e}){return e[0]}),Qw=e=>QO(void 0,[e],function*({currentNode:e,outgoers:t}){let n=t[Math.floor(Math.random()*t.length)];return n}),QE=e=>QO(void 0,[e],function*({currentNode:e,outgoers:t,getPoints:n}){let r=e.data,i=yield n();return t.length>1&&i>r.points?t[1]:t[0]}),QC=e=>QO(void 0,[e],function*({currentNode:e,outgoers:t,getAnswers:n}){let r=e.data,i=new Set([]);"and"===r.condition.type||"or"===r.condition.type?r.condition.conditions.forEach(e=>{i.add(e.nodeId)}):i.add(r.condition.nodeId);let a=yield n(Array.from(i)),o=QR(r.condition,a);return o?t[0]:t[1]}),QA=e=>QO(void 0,[e],function*({currentNode:e,outgoers:t,getResults:n}){let r=e.data,i=new Set([]);"and"===r.condition.type||"or"===r.condition.type?r.condition.conditions.forEach(e=>{i.add(e.nodeId)}):i.add(r.condition.nodeId);let a=yield n(Array.from(i)),o=QR(r.condition,a);return o?t[0]:t[1]}),QR=(e,t)=>{if("and"===e.type){let n=!0;for(let r of e.conditions)if(!(n=n&&QP(r,t)))break;return n}if("or"!==e.type)return QP(e,t);{let n=!1;for(let r of e.conditions)n=n||QP(r,t);return n}},QP=(e,t)=>{let n=!0,r=e.nodeId,i=So(t[r],e.key);switch(e.type){case"equal":n=i==e.value;break;case"greater":n=e.include?i>=e.value:i>e.value;break;case"less":n=e.include?i<=e.value:iQO(void 0,[e],function*({nodes:e,currentId:t,edges:n}){let r=QT(e.find(e=>e.id===t));if("portal-output"===r.type){let t=e.filter(e=>"portal-input"===e.type).find(e=>"portal-input"===e.type&&e.data.portal===r.data.portal);return t?QI({nodes:e,currentId:t.id,edges:n}):null}let i=n.filter(e=>e.target===t);if(0===i.length)return null;let a=QT(e.find(e=>e.id===i[0].source));return a.type.includes("split-")||"portal-output"===a.type||"portal-input"===a.type?QI({currentId:a.id,nodes:e,edges:n}):"synchronize"===a.type||"checkpoint"===a.type?null:a}),QN=Object.defineProperty,Q$=Object.getOwnPropertySymbols,QL=Object.prototype.hasOwnProperty,QD=Object.prototype.propertyIsEnumerable,QQ=(e,t,n)=>t in e?QN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,QM=(e,t)=>{for(var n in t||(t={}))QL.call(t,n)&&QQ(e,n,t[n]);if(Q$)for(var n of Q$(t))QD.call(t,n)&&QQ(e,n,t[n]);return e},QF=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),QB=({flow:e,config:t})=>{let{evaluate:n}=Ah(),r=(0,U.useRef)(QM({soundUrls:{correct:"/correct.mp3",wrong:"/wrong.mp3",unknown:"/unknown.mp3",manual:"/manual.mp3"}},t)),i=(0,U.useRef)(e.nodes.find(ED)),a=(0,U.useRef)({progress:0,next:"unlocked"}),o=(0,U.useRef)({points:0,maxPoints:0,tries:[],endDate:new Date,startDate:new Date});return RK(Qm,{onEnd:()=>QF(void 0,null,function*(){console.log("The End!")}),onSkip:()=>QF(void 0,null,function*(){var e,t;o.current=En(o.current,{mode:null==(t=null==(e=i.current.data)?void 0:e.evaluation)?void 0:t.mode})}),onRetry:()=>QF(void 0,null,function*(){o.current=Ei(o.current)}),evaluate:e=>QF(void 0,null,function*(){var t;if((null==(t=i.current)?void 0:t.type)!=="task")throw Error("type not supported");let r=yield n({answer:e,task:i.current.data});return o.current=Er(o.current,e,r),r}),getConfig:()=>QF(void 0,null,function*(){return r.current}),getCurrent:()=>QF(void 0,null,function*(){if(!i.current)throw Error("no current node");return i.current}),getNext:()=>QF(void 0,null,function*(){let{tries:t,points:n}=o.current;if(i){let r=yield Qk({currentId:i.current.id,nodes:e.nodes,edges:e.edges,getAnswers:e=>QF(void 0,null,function*(){return Qv(t,e)}),getResults:e=>QF(void 0,null,function*(){return Qy(t,e)}),getPoints:()=>QF(void 0,null,function*(){return n})});if(r&&EQ(r)){i.current=r;let e=Math.max(...t.filter(e=>e.node.id==r.id).map(e=>e.try),-1);return t.push({status:"started",try:e+1,startDate:new Date,node:EM(r)}),"synchronize"===r.type&&(a.current.next="locked",setTimeout(()=>a.current.next="unlocked",1e3)),r}}return null}),getPrevious:()=>QF(void 0,null,function*(){let{tries:t}=o.current;if(i.current){let n=yield QI({currentId:i.current.id,nodes:e.nodes,edges:e.edges});if(n&&EQ(n)){i.current=n;let e=Math.max(...t.filter(e=>e.node.id==n.id).map(e=>e.try),-1);return t.push({status:"started",node:EM(n),startDate:new Date,try:e+1}),n}}return null}),getProgress:()=>QF(void 0,null,function*(){var t;let n=yield Qx({nodes:e.nodes,edges:e.edges,from:(null==(t=e.nodes.find(e=>"start"===e.type))?void 0:t.id)||"",to:e.nodes.filter(e=>"end"===e.type).map(e=>e.id)}),r=yield Qx({nodes:e.nodes,edges:e.edges,from:i.current.id,to:e.nodes.filter(e=>"end"===e.type).map(e=>e.id)});return a.current.progress=(1-r/n)*100,console.log(a.current),a.current}),getResult:()=>QF(void 0,null,function*(){return o.current})})},QU=Object.defineProperty,Qz=Object.getOwnPropertyNames,Qj=(e,t)=>function(){return e&&(t=(0,e[Qz(e)[0]])(e=0)),t},QW=(e,t)=>{for(var n in t)QU(e,n,{get:t[n],enumerable:!0})},QZ=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),Qq={};QW(Qq,{default:()=>S});var QG=Qj({"src/Flow.tsx"(){k=({flow:e})=>{let{language:t}=(0,j.ZR)();return RK(_5,{standalone:!1,children:RK(Ai,{locale:t||"en",config:{},bits:Qa,children:RK(_,{flow:e})})})},_=({flow:e})=>{let{FlowSchema:t}=Ah(),n=(0,j.RI)();try{t.parse(e)}catch(e){if(e instanceof Sc)return RK("p",{children:e.issues.map(e=>e.code+": "+e.path.join(".")+" "+e.message).join("\n")});return RK("p",{children:"Error"})}return RK(QB,{flow:e,config:{soundUrls:{correct:n("/correct.mp3","public"),wrong:n("/wrong.mp3","public"),unknown:n("/unknown.mp3","public"),manual:n("/manual.mp3","public")}}})},S=k}}),QH={};QW(QH,{TaskInner:()=>E,default:()=>C});var QY=Qj({"src/Task.tsx"(){w=({task:e})=>{let{language:t}=(0,j.ZR)();return RK(_5,{standalone:!1,children:RK(Ai,{locale:t||"en",config:{},bits:Qa,children:RK(E,{task:e})})})},E=({task:e})=>{let t=(0,j.RI)(),n=Qa.task[e.subtype],[r,i]=(0,U.useState)(),[a,o]=(0,U.useState)(new Date),{FlowNodeSchema:s}=Ah();try{s.parse({id:"",position:{x:0,y:0},type:"task",data:e})}catch(e){if(e instanceof Sc)return RK("p",{children:e.issues.map(e=>e.code+": "+e.path.join(".")+" "+e.message).join("\n")});return RK("p",{children:'"Error"'})}return RK(IZ,{task:e,mode:r?"result":"default",evaluate:t=>QZ(void 0,null,function*(){let r=yield n.evaluate({answer:t,task:e});return i(r),r}),result:r,onRetry:()=>QZ(void 0,null,function*(){i(null),o(new Date)}),soundUrls:{correct:t("/correct.mp3","public"),wrong:t("/wrong.mp3","public"),unknown:t("/unknown.mp3","public"),manual:t("/manual.mp3","public")},TaskComponent:n.Task},a.toString())},C=w}}),QX=(0,U.lazy)(()=>Promise.resolve().then(()=>(QG(),Qq))),QV=(0,U.lazy)(()=>Promise.resolve().then(()=>(QY(),QH))),QK=()=>RK("div",{className:"loading",children:"..."}),QJ={directives:{flow:({src:e,height:t=400})=>{let n=(0,j.RI)(),[r]=(0,j.TR)(),[i,a]=(0,U.useState)(),[o,s]=(0,U.useState)();return(e||s('You need to provide a src like so: ::flow{src="/flow.json"}'),(0,U.useEffect)(()=>{let t=n(e,"public");r(t).then(e=>JSON.parse(e)).then(a).catch(()=>{s(`Could not find a flow at ${e}. Please check the src.`)})},[e]),o)?RK("pre",{className:"element-bitflow",children:o}):RK("div",{className:"element-bitflow",style:{height:t},children:RK(U.Suspense,{fallback:RK(QK,{}),children:i?RK(QX,{flow:i}):RK(QK,{})})})},task:({src:e,height:t=400})=>{let n=(0,j.RI)(),[r]=(0,j.TR)(),[i,a]=(0,U.useState)(),[o,s]=(0,U.useState)();return(e||s('You need to provide a src like so: ::task{src="/task.json"}'),(0,U.useEffect)(()=>{let t=n(e,"public");r(t).then(e=>JSON.parse(e)).then(a).catch(()=>{s(`Could not find a task at ${e}. Please check the src.`)})},[e]),o)?RK("pre",{className:"element-bitflow",children:o}):RK("div",{className:"element-bitflow",style:{height:t},children:RK(U.Suspense,{fallback:RK(QK,{}),children:i?RK(QV,{task:i}):RK(QK,{})})})}},slice:(0,W.oM)({name:"element.bitflow",initialState:{},reducers:{}})};n(63031);var Q1=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),Q0=e=>["string","number"].includes(typeof e)?e:e instanceof Array?e.map(Q0).join(""):"object"==typeof e&&e?Q0(e.props.children):"",Q2=(e,t)=>Q1(void 0,null,function*(){let r=(yield n.e(1406).then(n.bind(n,72147))).default,i={};for(let e of t.languages)try{let t=(yield n(97419)(`./${e}.json`)).default;i[e]=t}catch(e){}r.loadLanguages(i);let a=r.parse(e,t),o=r.render(a,t);return o}),Q5={directives:{scratchblock:({children:e,language:t})=>{let n=(0,U.useRef)(null),{language:r}=(0,j.ZR)(),i=Q0(e),a=["en"];t&&a.push(t),r&&a.push(r);let o={style:"scratch3",languages:a};return(0,U.useEffect)(()=>{Q2(i,o).then(e=>{n.current&&(n.current.innerHTML="",n.current.appendChild(e))})},[i]),(0,G.jsx)("div",{className:"element-scratchblock",ref:n})}}};n(70895);var Q9={directives:{tiles:({children:e})=>(0,G.jsx)("div",{className:"hyperbook element-tiles",children:(0,G.jsx)("ul",{className:"tiles",children:e})}),tile:({size:e="M",title:t,href:n,icon:r})=>{let i=(0,j.RI)();return n=i(n,"public"),r=i(r,"public"),(0,G.jsxs)("li",{className:`tile ${e} ${n?"link":""}`,children:[(0,G.jsx)("a",{className:"tile-title",href:n,children:t}),r&&(0,G.jsx)("img",{className:"tile-icon",src:r})]})}},slice:(0,W.oM)({name:"element.tiles",initialState:{},reducers:{}})};n(41381);var Q4=n(41664),Q3=n.n(Q4),Q8=n(9008),Q6=n.n(Q8),Q7=()=>{let{colors:e,font:t,fonts:n}=(0,j.ZR)(),r=(0,j.RI)();return(0,G.jsxs)(U.Fragment,{children:[(0,G.jsx)("style",{children:`:root { --color-brand: ${(null==e?void 0:e.brand)||"#007864"}; --color-brand-dark: ${(null==e?void 0:e.brandDark)||(null==e?void 0:e.brand)||"#b5e3d8"}; --color-brand-text: ${(null==e?void 0:e.brandText)||"white"}; @@ -1767,12 +1767,12 @@ .toggle .bar3 { background-color: var(--color-brand); } -}`})]})},Me=n(11163),Mt=JSON.parse('{"name":"Software-Challenge Dokumentation","description":"Dokumentation der Software-Challenge Germany. Alle Informationen zu dem Ablauf, den technischen Grundlagen und Hilfestellungen.","license":"cc-by-nc-sa","author":{"name":"Software-Challenge Germany","url":"https://software-challenge.de"},"language":"de","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook","logo":"/logo.svg","colors":{"brand":"#3276AD"},"fonts":{"heading":"/fonts/Inter-Regular.ttf","body":"/fonts/Inter-Regular.ttf","code":"/fonts/SourceCodePro-Regular.ttf"}}');let Mn=e=>{let{ref:t,href:n,children:r,...i}=e;return U.createElement(Q3(),{href:n,...i},r)},Mr=e=>{let{basePath:t}=e;return e=>(t&&(null==e?void 0:e.startsWith("/"))&&(e=t.endsWith("/")?t.slice(0,-1)+e:t+e),e)};function Mi(e){let{Component:t,pageProps:n}=e,r=(0,Me.useRouter)();return(0,U.useEffect)(()=>{document.documentElement.lang=n.locale},[n.locale]),U.createElement(z.zt,{Link:Mn,Head:Q6(),config:Mt,makeUrl:Mr,env:"production",elements:[X,eu,ec,em,eO,eb,rM,rT,rS,rB,iI,rU,ix,i$,iD,i_,iR,iP,Q5,QJ,Q9],router:r,storage:W.Xb,loadFile:()=>async e=>fetch(e).then(e=>e.text()),saveFile:()=>async(e,t,n)=>{await fetch("/api/save",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e,content:t,rootFolder:n})})},getActivePageId:async()=>{var e;return(null===(e=r.asPath.split("#"))||void 0===e?void 0:e[0])||"/"}},U.createElement(Q7,null),U.createElement(t,{...n}))}},21876:function(e){!function(){var t={675:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,a=l(e),o=a[0],s=a[1],u=new i((o+s)*3/4-s),c=0,d=s>0?o-4:o;for(n=0;n>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,a=[],o=0,s=r-i;o>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}(e,o,o+16383>s?s:o+16383));return 1===i?a.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&a.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),a.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=a.length;o0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},72:function(e,t,n){"use strict";/*! +}`})]})},Me=n(11163),Mt=JSON.parse('{"name":"Software-Challenge Dokumentation","description":"Dokumentation der Software-Challenge Germany. Alle Informationen zu dem Ablauf, den technischen Grundlagen und Hilfestellungen.","license":"cc-by-nc-sa","author":{"name":"Software-Challenge Germany","url":"https://software-challenge.de"},"language":"de","repo":"https://github.com/software-challenge/docs/tree/main/hyperbook","logo":"/logo.svg","colors":{"brand":"#3276AD"},"fonts":{"heading":"/fonts/Inter-Regular.ttf","body":"/fonts/Inter-Regular.ttf","code":"/fonts/SourceCodePro-Regular.ttf"}}');let Mn=e=>{let{ref:t,href:n,children:r,...i}=e;return U.createElement(Q3(),{href:n,...i},r)},Mr=e=>{let{basePath:t}=e;return e=>(t&&(null==e?void 0:e.startsWith("/"))&&(e=t.endsWith("/")?t.slice(0,-1)+e:t+e),e)};function Mi(e){let{Component:t,pageProps:n}=e,r=(0,Me.useRouter)();return(0,U.useEffect)(()=>{document.documentElement.lang=n.locale},[n.locale]),U.createElement(j.zt,{Link:Mn,Head:Q6(),config:Mt,makeUrl:Mr,env:"production",elements:[X,eu,ec,em,eO,eb,rM,rT,rS,rB,iI,rU,ix,i$,iD,i_,iR,iP,Q5,QJ,Q9],router:r,storage:W.Xb,loadFile:()=>async e=>fetch(e).then(e=>e.text()),saveFile:()=>async(e,t,n)=>{await fetch("/api/save",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e,content:t,rootFolder:n})})},getActivePageId:async()=>{var e;return(null===(e=r.asPath.split("#"))||void 0===e?void 0:e[0])||"/"}},U.createElement(Q7,null),U.createElement(t,{...n}))}},21876:function(e){!function(){var t={675:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,a=l(e),o=a[0],s=a[1],u=new i((o+s)*3/4-s),c=0,d=s>0?o-4:o;for(n=0;n>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,a=[],o=0,s=r-i;o>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}(e,o,o+16383>s?s:o+16383));return 1===i?a.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&a.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),a.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=a.length;o0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},72:function(e,t,n){"use strict";/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT - */var r=n(675),i=n(783),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function o(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);var n=0|p(e,t),r=o(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return d(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(A(e,ArrayBuffer)||e&&A(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(A(e,SharedArrayBuffer)||e&&A(e.buffer,SharedArrayBuffer)))return function(e,t,n){var r;if(t<0||e.byteLength=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||A(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return S(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return E(e).length;default:if(i)return r?-1:S(e).length;t=(""+t).toLowerCase(),i=!0}}function f(e,t,n){var i,a,o=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=t;a2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),(a=n=+n)!=a&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return -1;n=e.length-1}else if(n<0){if(!i)return -1;n=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:O(e,t,n,r,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):O(e,[t],n,r,i);throw TypeError("val must be string, number or Buffer")}function O(e,t,n,r,i){var a,o=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;o=2,s/=2,l/=2,n/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var c=-1;for(a=n;as&&(n=s-l),a=n;a>=0;a--){for(var d=!0,h=0;h239?4:u>223?3:u>191?2:1;if(i+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:(192&(a=e[i+1]))==128&&(l=(31&u)<<6|63&a)>127&&(c=l);break;case 3:a=e[i+1],o=e[i+2],(192&a)==128&&(192&o)==128&&(l=(15&u)<<12|(63&a)<<6|63&o)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],(192&a)==128&&(192&o)==128&&(192&s)==128&&(l=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;rn)throw RangeError("Trying to access beyond buffer length")}function v(e,t,n,r,i,a){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function x(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function T(e,t,n,r,a){return t=+t,n>>>=0,a||x(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function k(e,t,n,r,a){return t=+t,n>>>=0,a||x(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=2147483647,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,n){return(u(e),e<=0)?o(e):void 0!==t?"string"==typeof n?o(e).fill(t,n):o(e).fill(t):o(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(A(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),A(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);in&&(e+=" ... "),""},a&&(s.prototype[a]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(A(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var a=i-r,o=n-t,l=Math.min(a,o),u=this.slice(r,i),c=e.slice(t,n),d=0;d>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,a,o,s,l,u,c,d,h,p,f,m,g=this.length-t;if((void 0===n||n>g)&&(n=g),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var O=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var a=t.length;r>a/2&&(r=a/2);for(var o=0;o>8,i.push(n%256),i.push(r);return i}(e,this.length-f),this,f,m);default:if(O)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),O=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||y(e,t,this.length);for(var r=this[e],i=1,a=0;++a>>=0,t>>>=0,n||y(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUInt8=function(e,t){return e>>>=0,t||y(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||y(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||y(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||y(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||y(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||y(e,t,this.length);for(var r=this[e],i=1,a=0;++a=(i*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||y(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},s.prototype.readInt8=function(e,t){return(e>>>=0,t||y(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||y(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||y(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||y(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||y(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||y(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||y(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||y(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||y(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;v(this,e,t,n,i,0)}var a=1,o=0;for(this[t]=255&e;++o>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;v(this,e,t,n,i,0)}var a=n-1,o=1;for(this[t+a]=255&e;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+n},s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);v(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a>0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);v(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,n){return T(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return T(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return k(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return k(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--a)e[a+t]=this[a+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},s.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!s.isEncoding(r))throw TypeError("Unknown encoding: "+r);if(1===e.length){var i,a=e.charCodeAt(0);("utf8"===r&&a<128||"latin1"===r)&&(e=a)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&n<57344){if(!i){if(n>56319||o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return a}function w(e){for(var t=[],n=0;n=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}function A(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var R=function(){for(var e="0123456789abcdef",t=Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}()},783:function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */t.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,l=(1<>1,c=-7,d=n?i-1:0,h=n?-1:1,p=e[t+d];for(d+=h,a=p&(1<<-c)-1,p>>=-c,c+=s;c>0;a=256*a+e[t+d],d+=h,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=r;c>0;o=256*o+e[t+d],d+=h,c-=8);if(0===a)a=1-u;else{if(a===l)return o?NaN:(p?-1:1)*(1/0);o+=Math.pow(2,r),a-=u}return(p?-1:1)*o*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var o,s,l,u=8*a-i-1,c=(1<>1,h=23===i?5960464477539062e-23:0,p=r?0:a-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+d>=1?t+=h/l:t+=h*Math.pow(2,1-d),t*l>=2&&(o++,l/=2),o+d>=c?(s=0,o=c):o+d>=1?(s=(t*l-1)*Math.pow(2,i),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[n+p]=255&s,p+=f,s/=256,i-=8);for(o=o<0;e[n+p]=255&o,p+=f,o/=256,u-=8);e[n+p-f]|=128*m}}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var a=n[e]={exports:{}},o=!0;try{t[e](a,a.exports,r),o=!1}finally{o&&delete n[e]}return a.exports}r.ab="//";var i=r(72);e.exports=i}()},5239:function(){},7889:function(){},55663:function(){},63031:function(){},15470:function(){},44138:function(){},23221:function(){},18124:function(){},25628:function(){},15887:function(){},7695:function(){},52891:function(){},62860:function(){},61658:function(){},70895:function(){},91169:function(){},48983:function(){},19673:function(){},30614:function(){},41381:function(){},1844:function(){},63125:function(){},69446:function(){},95829:function(){},300:function(){},16192:function(){},77663:function(e){!function(){var t={229:function(e){var t,n,r,i=e.exports={};function a(){throw Error("setTimeout has not been defined")}function o(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var l=[],u=!1,c=-1;function d(){u&&r&&(u=!1,r.length?l=r.concat(l):c=-1,l.length&&h())}function h(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(r=l,l=[];++c1)for(var n=1;n>16),u((65280&i)>>8),u(255&i);return 2==a?u(255&(i=n(e.charAt(r))<<2|n(e.charAt(r+1))>>4)):1==a&&(u((i=n(e.charAt(r))<<10|n(e.charAt(r+1))<<4|n(e.charAt(r+2))>>2)>>8&255),u(255&i)),o},e.fromByteArray=function(e){var t,n,r,i,a=e.length%3,o="";function s(e){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)}for(t=0,r=e.length-a;t>18&63)+s(i>>12&63)+s(i>>6&63)+s(63&i);switch(a){case 1:o=(o+=s((n=e[e.length-1])>>2))+s(n<<4&63)+"==";break;case 2:o=(o=(o+=s((n=(e[e.length-2]<<8)+e[e.length-1])>>10))+s(n>>4&63))+s(n<<2&63)+"="}return o}}(void 0===n?this.base64js={}:n)}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:11}],3:[function(e,t,n){(function(t,r,i,a,o,s,l,u,c){var d=e("base64-js"),h=e("ieee754");function i(e,t,n){if(!(this instanceof i))return new i(e,t,n);var r,a,o,s,l=typeof e;if("base64"===t&&"string"==l)for(e=(s=e).trim?s.trim():s.replace(/^\s+|\s+$/g,"");e.length%4!=0;)e+="=";if("number"==l)r=E(e);else if("string"==l)r=i.byteLength(e,t);else{if("object"!=l)throw Error("First argument needs to be a number, array or string.");r=E(e.length)}if(i._useTypedArrays?a=i._augment(new Uint8Array(r)):((a=this).length=r,a._isBuffer=!0),i._useTypedArrays&&"number"==typeof e.byteLength)a._set(e);else if(C(s=e)||i.isBuffer(s)||s&&"object"==typeof s&&"number"==typeof s.length)for(o=0;o>>0)):(t+1>>0),i}function m(e,t,n,r){if(r||(Q("boolean"==typeof n,"missing or invalid endian"),Q(null!=t,"missing offset"),Q(t+1>>8*(r?a:1-a)}function v(e,t,n,r,i){if(i||(Q(null!=t,"missing value"),Q("boolean"==typeof r,"missing or invalid endian"),Q(null!=n,"missing offset"),Q(n+3>>8*(r?a:3-a)&255}function x(e,t,n,r,i){i||(Q(null!=t,"missing value"),Q("boolean"==typeof r,"missing or invalid endian"),Q(null!=n,"missing offset"),Q(n+1>8,r.push(n%=256),r.push(t);return r}(e),this,s,l);break;default:throw Error("Unknown encoding")}return u},i.prototype.toString=function(e,t,n){var r,i,a;if(e=String(e||"utf8").toLowerCase(),t=Number(t)||0,(n=void 0!==n?Number(n):this.length)===t)return"";switch(e){case"hex":r=function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||rthis.length&&(r=this.length);var a=(r=e.length-t=this.length))return this[e]},i.prototype.readUInt16LE=function(e,t){return p(this,e,!0,t)},i.prototype.readUInt16BE=function(e,t){return p(this,e,!1,t)},i.prototype.readUInt32LE=function(e,t){return f(this,e,!0,t)},i.prototype.readUInt32BE=function(e,t){return f(this,e,!1,t)},i.prototype.readInt8=function(e,t){if(t||(Q(null!=e,"missing offset"),Q(e=this.length))return 128&this[e]?-1*(255-this[e]+1):this[e]},i.prototype.readInt16LE=function(e,t){return m(this,e,!0,t)},i.prototype.readInt16BE=function(e,t){return m(this,e,!1,t)},i.prototype.readInt32LE=function(e,t){return g(this,e,!0,t)},i.prototype.readInt32BE=function(e,t){return g(this,e,!1,t)},i.prototype.readFloatLE=function(e,t){return O(this,e,!0,t)},i.prototype.readFloatBE=function(e,t){return O(this,e,!1,t)},i.prototype.readDoubleLE=function(e,t){return b(this,e,!0,t)},i.prototype.readDoubleBE=function(e,t){return b(this,e,!1,t)},i.prototype.writeUInt8=function(e,t,n){n||(Q(null!=e,"missing value"),Q(null!=t,"missing offset"),Q(t=this.length||(this[t]=e)},i.prototype.writeUInt16LE=function(e,t,n){y(this,e,t,!0,n)},i.prototype.writeUInt16BE=function(e,t,n){y(this,e,t,!1,n)},i.prototype.writeUInt32LE=function(e,t,n){v(this,e,t,!0,n)},i.prototype.writeUInt32BE=function(e,t,n){v(this,e,t,!1,n)},i.prototype.writeInt8=function(e,t,n){n||(Q(null!=e,"missing value"),Q(null!=t,"missing offset"),Q(t=this.length||(0<=e?this.writeUInt8(e,t,n):this.writeUInt8(255+e+1,t,n))},i.prototype.writeInt16LE=function(e,t,n){x(this,e,t,!0,n)},i.prototype.writeInt16BE=function(e,t,n){x(this,e,t,!1,n)},i.prototype.writeInt32LE=function(e,t,n){T(this,e,t,!0,n)},i.prototype.writeInt32BE=function(e,t,n){T(this,e,t,!1,n)},i.prototype.writeFloatLE=function(e,t,n){k(this,e,t,!0,n)},i.prototype.writeFloatBE=function(e,t,n){k(this,e,t,!1,n)},i.prototype.writeDoubleLE=function(e,t,n){_(this,e,t,!0,n)},i.prototype.writeDoubleBE=function(e,t,n){_(this,e,t,!1,n)},i.prototype.fill=function(e,t,n){if(t=t||0,n=n||this.length,Q("number"==typeof(e="string"==typeof(e=e||0)?e.charCodeAt(0):e)&&!isNaN(e),"value is not a number"),Q(t<=n,"end < start"),n!==t&&0!==this.length){Q(0<=t&&t"},i.prototype.toArrayBuffer=function(){if("undefined"==typeof Uint8Array)throw Error("Buffer.toArrayBuffer not supported in this browser");if(i._useTypedArrays)return new i(this).buffer;for(var e=new Uint8Array(this.length),t=0,n=e.length;t=t.length||i>=e.length);i++)t[i+n]=e[i];return i}function N(e){try{return decodeURIComponent(e)}catch(e){return String.fromCharCode(65533)}}function $(e,t){Q("number"==typeof e,"cannot write a non-number as a number"),Q(0<=e,"specified a negative value for writing an unsigned value"),Q(e<=t,"value is larger than maximum value for type"),Q(Math.floor(e)===e,"value has a fractional component")}function L(e,t,n){Q("number"==typeof e,"cannot write a non-number as a number"),Q(e<=t,"value larger than maximum allowed value"),Q(n<=e,"value smaller than minimum allowed value"),Q(Math.floor(e)===e,"value has a fractional component")}function D(e,t,n){Q("number"==typeof e,"cannot write a non-number as a number"),Q(e<=t,"value larger than maximum allowed value"),Q(n<=e,"value smaller than minimum allowed value")}function Q(e,t){if(!e)throw Error(t||"Failed assertion")}i._augment=function(e){return e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=S.get,e.set=S.set,e.write=S.write,e.toString=S.toString,e.toLocaleString=S.toString,e.toJSON=S.toJSON,e.copy=S.copy,e.slice=S.slice,e.readUInt8=S.readUInt8,e.readUInt16LE=S.readUInt16LE,e.readUInt16BE=S.readUInt16BE,e.readUInt32LE=S.readUInt32LE,e.readUInt32BE=S.readUInt32BE,e.readInt8=S.readInt8,e.readInt16LE=S.readInt16LE,e.readInt16BE=S.readInt16BE,e.readInt32LE=S.readInt32LE,e.readInt32BE=S.readInt32BE,e.readFloatLE=S.readFloatLE,e.readFloatBE=S.readFloatBE,e.readDoubleLE=S.readDoubleLE,e.readDoubleBE=S.readDoubleBE,e.writeUInt8=S.writeUInt8,e.writeUInt16LE=S.writeUInt16LE,e.writeUInt16BE=S.writeUInt16BE,e.writeUInt32LE=S.writeUInt32LE,e.writeUInt32BE=S.writeUInt32BE,e.writeInt8=S.writeInt8,e.writeInt16LE=S.writeInt16LE,e.writeInt16BE=S.writeInt16BE,e.writeInt32LE=S.writeInt32LE,e.writeInt32BE=S.writeInt32BE,e.writeFloatLE=S.writeFloatLE,e.writeFloatBE=S.writeFloatBE,e.writeDoubleLE=S.writeDoubleLE,e.writeDoubleBE=S.writeDoubleBE,e.fill=S.fill,e.inspect=S.inspect,e.toArrayBuffer=S.toArrayBuffer,e}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:10,lYpoI2:11}],4:[function(e,t,n){(function(n,r,i,a,o,s,l,u,c){var i=e("buffer").Buffer,d=new i(4);d.fill(0),t.exports={hash:function(e,t,n,r){for(var a=t(function(e,t){e.length%4!=0&&(n=e.length+(4-e.length%4),e=i.concat([e,d],n));for(var n,r=[],a=t?e.readInt32BE:e.readInt32LE,o=0;o64?t=e(t):t.length<64&&(t=i.concat([t,m],64));for(var r=new i(64),a=new i(64),o=0;o<64;o++)r[o]=54^t[o],a[o]=92^t[o];return n=e(i.concat([r,n])),e(i.concat([a,n]))}(n,t,a):n(a);return r=null,e?a.toString(e):a}}}function O(){var e=[].slice.call(arguments).join(" ");throw Error([e,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}m.fill(0),n.createHash=function(e){return g(e)},n.createHmac=g,n.randomBytes=function(e,t){if(!t||!t.call)return new i(p(e));try{t.call(this,void 0,new i(p(e)))}catch(e){t(e)}};var b,y=["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],v=function(e){n[e]=function(){O("sorry,",e,"is not implemented yet")}};for(b in y)v(y[b],b)}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:11}],6:[function(e,t,n){(function(n,r,i,a,o,s,l,u,c){var d=e("./helpers");function h(e,t){e[t>>5]|=128<>>9<<4)]=t;for(var n=1732584193,r=-271733879,i=-1732584194,a=271733878,o=0;o>>32-i,n)}function f(e,t,n,r,i,a,o){return p(t&n|~t&r,e,t,i,a,o)}function m(e,t,n,r,i,a,o){return p(t&r|n&~r,e,t,i,a,o)}function g(e,t,n,r,i,a,o){return p(t^n^r,e,t,i,a,o)}function O(e,t,n,r,i,a,o){return p(n^(t|~r),e,t,i,a,o)}function b(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}t.exports=function(e){return d.hash(e,h,16)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],7:[function(e,t,n){(function(e,n,r,i,a,o,s,l,u){var c;t.exports=c||function(e){for(var t,n=Array(e),r=0;r>>((3&r)<<3)&255;return n}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],8:[function(e,t,n){(function(n,r,i,a,o,s,l,u,c){var d=e("./helpers");function h(e,t){e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var n,r,i,a=Array(80),o=1732584193,s=-271733879,l=-1732584194,u=271733878,c=-1009589776,d=0;d>16)+(t>>16)+(n>>16)<<16|65535&n}function f(e,t){return e<>>32-t}t.exports=function(e){return d.hash(e,h,20,!0)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],9:[function(e,t,n){(function(n,r,i,a,o,s,l,u,c){function d(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function h(e,t){var n,r=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],i=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],a=Array(64);e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var o,s,l=0;l>>t|e<<32-t},m=function(e,t){return e>>>t};t.exports=function(e){return p.hash(e,h,32,!0)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],10:[function(e,t,n){(function(e,t,r,i,a,o,s,l,u){n.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,l=(1<>1,c=-7,d=n?i-1:0,h=n?-1:1,i=e[t+d];for(d+=h,a=i&(1<<-c)-1,i>>=-c,c+=s;0>=-c,c+=r;0>1,d=23===i?5960464477539062e-23:0,h=r?0:a-1,p=r?1:-1,a=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(r=Math.pow(2,-o))<1&&(o--,r*=2),2<=(t+=1<=o+c?d/r:d*Math.pow(2,1-c))*r&&(o++,r/=2),u<=o+c?(s=0,o=u):1<=o+c?(s=(t*r-1)*Math.pow(2,i),o+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,i),o=0));8<=i;e[n+h]=255&s,h+=p,s/=256,i-=8);for(o=o<=55296&&n<=57343||n>1114111?(_(7,$),T=c(65533)):T in i?(_(6,$),T=i[T]):(w="",((a=T)>=1&&a<=8||11===a||a>=13&&a<=31||a>=127&&a<=159||a>=64976&&a<=65007||(65535&a)==65535||(65535&a)==65534)&&_(6,$),T>65535&&(T-=65536,w+=c(T>>>10|55296),T=56320|1023&T),T=w+c(T))):R!==p&&_(4,$)),T?(ee(),I=J(),G=L-1,Y+=L-A+1,K.push(T),N=J(),N.offset++,F&&F.call(j,T,{start:I,end:N},e.slice(A-1,L)),I=N):(V+=v=e.slice(A-1,L),Y+=v.length,G=L-1)}else 10===x&&(X++,H++,Y=0),x==x?(V+=c(x),Y++):ee();return K.join("");function J(){return{line:X,column:Y,offset:G+(W.offset||0)}}function ee(){V&&(K.push(V),M&&M.call(U,V,{start:I,end:J()}),V="")}}(e,o)};var u={}.hasOwnProperty,c=String.fromCharCode,d=Function.prototype,h={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},p="named",f="hexadecimal",m="decimal",g={};g[f]=16,g[m]=10;var O={};O[p]=s,O[m]=a,O[f]=o;var b={};b[1]="Named character references must be terminated by a semicolon",b[2]="Numeric character references must be terminated by a semicolon",b[3]="Named character references cannot be empty",b[4]="Numeric character references cannot be empty",b[5]="Named character references must be known",b[6]="Numeric character references cannot be disallowed",b[7]="Numeric character references cannot be outside the permissible Unicode range"},92703:function(e,t,n){"use strict";var r=n(50414);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,o){if(o!==r){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i};return n.PropTypes=n,n}},45697:function(e,t,n){e.exports=n(92703)()},50414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},99560:function(e,t,n){"use strict";var r=n(66632),i=n(98805),a=n(57643),o="data";e.exports=function(e,t){var n,h,p,f=r(t),m=t,g=a;return f in e.normal?e.property[e.normal[f]]:(f.length>4&&f.slice(0,4)===o&&s.test(t)&&("-"===t.charAt(4)?m=o+(n=t.slice(5).replace(l,d)).charAt(0).toUpperCase()+n.slice(1):(p=(h=t).slice(4),t=l.test(p)?h:("-"!==(p=p.replace(u,c)).charAt(0)&&(p="-"+p),o+p)),g=i),new g(m,t))};var s=/^data[-\w.:]+$/i,l=/-[a-z]/g,u=/[A-Z]/g;function c(e){return"-"+e.toLowerCase()}function d(e){return e.charAt(1).toUpperCase()}},97247:function(e,t,n){"use strict";var r=n(19940),i=n(8289),a=n(5812),o=n(94397),s=n(67716),l=n(61805);e.exports=r([a,i,o,s,l])},67716:function(e,t,n){"use strict";var r=n(17e3),i=n(17596),a=r.booleanish,o=r.number,s=r.spaceSeparated;e.exports=i({transform:function(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:a,ariaAutoComplete:null,ariaBusy:a,ariaChecked:a,ariaColCount:o,ariaColIndex:o,ariaColSpan:o,ariaControls:s,ariaCurrent:null,ariaDescribedBy:s,ariaDetails:null,ariaDisabled:a,ariaDropEffect:s,ariaErrorMessage:null,ariaExpanded:a,ariaFlowTo:s,ariaGrabbed:a,ariaHasPopup:null,ariaHidden:a,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:s,ariaLevel:o,ariaLive:null,ariaModal:a,ariaMultiLine:a,ariaMultiSelectable:a,ariaOrientation:null,ariaOwns:s,ariaPlaceholder:null,ariaPosInSet:o,ariaPressed:a,ariaReadOnly:a,ariaRelevant:null,ariaRequired:a,ariaRoleDescription:s,ariaRowCount:o,ariaRowIndex:o,ariaRowSpan:o,ariaSelected:a,ariaSetSize:o,ariaSort:null,ariaValueMax:o,ariaValueMin:o,ariaValueNow:o,ariaValueText:null,role:null}})},61805:function(e,t,n){"use strict";var r=n(17e3),i=n(17596),a=n(10855),o=r.boolean,s=r.overloadedBoolean,l=r.booleanish,u=r.number,c=r.spaceSeparated,d=r.commaSeparated;e.exports=i({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:a,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:d,acceptCharset:c,accessKey:c,action:null,allow:null,allowFullScreen:o,allowPaymentRequest:o,allowUserMedia:o,alt:null,as:null,async:o,autoCapitalize:null,autoComplete:c,autoFocus:o,autoPlay:o,capture:o,charSet:null,checked:o,cite:null,className:c,cols:u,colSpan:null,content:null,contentEditable:l,controls:o,controlsList:c,coords:u|d,crossOrigin:null,data:null,dateTime:null,decoding:null,default:o,defer:o,dir:null,dirName:null,disabled:o,download:s,draggable:l,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:o,formTarget:null,headers:c,height:u,hidden:o,high:u,href:null,hrefLang:null,htmlFor:c,httpEquiv:c,id:null,imageSizes:null,imageSrcSet:d,inputMode:null,integrity:null,is:null,isMap:o,itemId:null,itemProp:c,itemRef:c,itemScope:o,itemType:c,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:o,low:u,manifest:null,max:null,maxLength:u,media:null,method:null,min:null,minLength:u,multiple:o,muted:o,name:null,nonce:null,noModule:o,noValidate:o,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu: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,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:o,optimum:u,pattern:null,ping:c,placeholder:null,playsInline:o,poster:null,preload:null,readOnly:o,referrerPolicy:null,rel:c,required:o,reversed:o,rows:u,rowSpan:u,sandbox:c,scope:null,scoped:o,seamless:o,selected:o,shape:null,size:u,sizes:null,slot:null,span:u,spellCheck:l,src:null,srcDoc:null,srcLang:null,srcSet:d,start:u,step:null,style:null,tabIndex:u,target:null,title:null,translate:null,type:null,typeMustMatch:o,useMap:null,value:l,width:u,wrap:null,align:null,aLink:null,archive:c,axis:null,background:null,bgColor:null,border:u,borderColor:null,bottomMargin:u,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:o,declare:o,event:null,face:null,frame:null,frameBorder:null,hSpace:u,leftMargin:u,link:null,longDesc:null,lowSrc:null,marginHeight:u,marginWidth:u,noResize:o,noHref:o,noShade:o,noWrap:o,object:null,profile:null,prompt:null,rev:null,rightMargin:u,rules:null,scheme:null,scrolling:l,standby:null,summary:null,text:null,topMargin:u,valueType:null,version:null,vAlign:null,vLink:null,vSpace:u,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:o,disableRemotePlayback:o,prefix:null,property:null,results:u,security:null,unselectable:null}})},45789:function(e,t,n){"use strict";var r=n(17e3),i=n(17596),a=n(28740),o=r.boolean,s=r.number,l=r.spaceSeparated,u=r.commaSeparated,c=r.commaOrSpaceSeparated;e.exports=i({space:"svg",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",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"},transform:a,properties:{about:c,accentHeight:s,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:s,amplitude:s,arabicForm:null,ascent:s,attributeName:null,attributeType:null,azimuth:s,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:s,by:null,calcMode:null,capHeight:s,className:l,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:s,diffuseConstant:s,direction:null,display:null,dur:null,divisor:s,dominantBaseline:null,download:o,dx:null,dy:null,edgeMode:null,editable:null,elevation:s,enableBackground:null,end:null,event:null,exponent:s,externalResourcesRequired:null,fill:null,fillOpacity:s,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:u,g2:u,glyphName:u,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:s,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:s,horizOriginX:s,horizOriginY:s,id:null,ideographic:s,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:s,k:s,k1:s,k2:s,k3:s,k4:s,kernelMatrix:c,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:s,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:s,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:s,overlineThickness:s,paintOrder:null,panose1:null,path:null,pathLength:s,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:l,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:s,pointsAtY:s,pointsAtZ:s,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:c,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:c,rev:c,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:c,requiredFeatures:c,requiredFonts:c,requiredFormats:c,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:s,specularExponent:s,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:s,strikethroughThickness:s,string:null,stroke:null,strokeDashArray:c,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:s,strokeOpacity:s,strokeWidth:null,style:null,surfaceScale:s,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:c,tabIndex:s,tableValues:null,target:null,targetX:s,targetY:s,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:c,to:null,transform:null,u1:null,u2:null,underlinePosition:s,underlineThickness:s,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:s,values:null,vAlphabetic:s,vMathematical:s,vectorEffect:null,vHanging:s,vIdeographic:s,version:null,vertAdvY:s,vertOriginX:s,vertOriginY:s,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:s,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}})},10855:function(e,t,n){"use strict";var r=n(28740);e.exports=function(e,t){return r(e,t.toLowerCase())}},28740:function(e){"use strict";e.exports=function(e,t){return t in e?e[t]:t}},17596:function(e,t,n){"use strict";var r=n(66632),i=n(99607),a=n(98805);e.exports=function(e){var t,n,o=e.space,s=e.mustUseProperty||[],l=e.attributes||{},u=e.properties,c=e.transform,d={},h={};for(t in u)n=new a(t,c(l,t),u[t],o),-1!==s.indexOf(t)&&(n.mustUseProperty=!0),d[t]=n,h[r(t)]=t,h[r(n.attribute)]=t;return new i(d,h,o)}},98805:function(e,t,n){"use strict";var r=n(57643),i=n(17e3);e.exports=s,s.prototype=new r,s.prototype.defined=!0;var a=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],o=a.length;function s(e,t,n,s){var l,u,c,d=-1;for(s&&(this.space=s),r.call(this,e,t);++d>>7-e%8&1)==1},put:function(e,t){for(let n=0;n>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},73280:function(e){function t(e){if(!e||e<1)throw Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}t.prototype.set=function(e,t,n,r){let i=e*this.size+t;this.data[i]=n,r&&(this.reservedBit[i]=!0)},t.prototype.get=function(e,t){return this.data[e*this.size+t]},t.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},t.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=t},43424:function(e,t,n){let r=n(62378),i=n(76910);function a(e){this.mode=i.BYTE,"string"==typeof e&&(e=r(e)),this.data=new Uint8Array(e)}a.getBitsLength=function(e){return 8*e},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(e){for(let t=0,n=this.data.length;t=0&&e.bit<4},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw Error("Param is not a string");let n=e.toLowerCase();switch(n){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw Error("Unknown EC Level: "+e)}}(e)}catch(e){return n}}},76526:function(e,t,n){let r=n(10242).getSymbolSize;t.getPositions=function(e){let t=r(e);return[[0,0],[t-7,0],[0,t-7]]}},61642:function(e,t,n){let r=n(10242),i=r.getBCHDigit(1335);t.getEncodedBits=function(e,t){let n=e.bit<<3|t,a=n<<10;for(;r.getBCHDigit(a)-i>=0;)a^=1335<=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");n=(n>>>8&255)*192+(255&n),e.put(n,13)}},e.exports=a},27126:function(e,t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};let n={N1:3,N2:3,N3:40,N4:10};t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){let t=e.size,r=0,i=0,a=0,o=null,s=null;for(let l=0;l=5&&(r+=n.N1+(i-5)),o=t,i=1),(t=e.get(u,l))===s?a++:(a>=5&&(r+=n.N1+(a-5)),s=t,a=1)}i>=5&&(r+=n.N1+(i-5)),a>=5&&(r+=n.N1+(a-5))}return r},t.getPenaltyN2=function(e){let t=e.size,r=0;for(let n=0;n=10&&(1488===i||93===i)&&r++,a=a<<1&2047|e.get(o,n),o>=10&&(1488===a||93===a)&&r++}return r*n.N3},t.getPenaltyN4=function(e){let t=0,r=e.data.length;for(let n=0;n=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return i.testNumeric(e)?t.NUMERIC:i.testAlphanumeric(e)?t.ALPHANUMERIC:i.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw Error("Param is not a string");let n=e.toLowerCase();switch(n){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw Error("Unknown mode: "+e)}}(e)}catch(e){return n}}},41085:function(e,t,n){let r=n(76910);function i(e){this.mode=r.NUMERIC,this.data=e.toString()}i.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t,n;for(t=0;t+3<=this.data.length;t+=3)n=parseInt(this.data.substr(t,3),10),e.put(n,10);let r=this.data.length-t;r>0&&(n=parseInt(this.data.substr(t),10),e.put(n,3*r+1))},e.exports=i},26143:function(e,t,n){let r=n(69729);t.mul=function(e,t){let n=new Uint8Array(e.length+t.length-1);for(let i=0;i=0;){let e=n[0];for(let i=0;i>r&1)==1,r<6?e.set(r,8,i,!0):r<8?e.set(r+1,8,i,!0):e.set(a-15+r,8,i,!0),r<8?e.set(8,a-r-1,i,!0):r<9?e.set(8,15-r-1+1,i,!0):e.set(8,15-r-1,i,!0);e.set(a-8,8,1,!0)}t.create=function(e,t){let n,p;if(void 0===e||""===e)throw Error("No input text");let O=i.M;return void 0!==t&&(O=i.from(t.errorCorrectionLevel,i.M),n=h.from(t.version),p=u.from(t.maskPattern),t.toSJISFunc&&r.setToSJISFunction(t.toSJISFunc)),function(e,t,n,i){let p;if(Array.isArray(e))p=m.fromArray(e);else if("string"==typeof e){let r=t;if(!r){let t=m.rawSplit(e);r=h.getBestVersionForData(t,n)}p=m.fromString(e,r||40)}else throw Error("Invalid data");let O=h.getBestVersionForData(p,n);if(!O)throw Error("The amount of data is too big to be stored in a QR Code");if(t){if(t=0&&t<=6&&(0===r||6===r)||r>=0&&r<=6&&(0===t||6===t)||t>=2&&t<=4&&r>=2&&r<=4?e.set(i+t,a+r,!0,!0):e.set(i+t,a+r,!1,!0))}}(v,t),function(e){let t=e.size;for(let n=8;n=7&&function(e,t){let n,r,i;let a=e.size,o=h.getEncodedBits(t);for(let t=0;t<18;t++)n=Math.floor(t/3),r=t%3+a-8-3,i=(o>>t&1)==1,e.set(n,r,i,!0),e.set(r,n,i,!0)}(v,t),function(e,t){let n=e.size,r=-1,i=n-1,a=7,o=0;for(let s=n-1;s>0;s-=2)for(6===s&&s--;;){for(let n=0;n<2;n++)if(!e.isReserved(i,s-n)){let r=!1;o>>a&1)==1),e.set(i,s-n,r),-1==--a&&(o++,a=7)}if((i+=r)<0||n<=i){i-=r,r=-r;break}}}(v,b),isNaN(i)&&(i=u.getBestMask(v,g.bind(null,v,n))),u.applyMask(i,v),g(v,n,i),{modules:v,version:t,errorCorrectionLevel:n,maskPattern:i,segments:p}}(e,n,O,p)}},52882:function(e,t,n){let r=n(26143);function i(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}i.prototype.initialize=function(e){this.degree=e,this.genPoly=r.generateECPolynomial(this.degree)},i.prototype.encode=function(e){if(!this.genPoly)throw Error("Encoder not initialized");let t=new Uint8Array(e.length+this.degree);t.set(e);let n=r.mod(t,this.genPoly),i=this.degree-n.length;if(i>0){let e=new Uint8Array(this.degree);return e.set(n,i),e}return n},e.exports=i},7007:function(e,t){let n="[0-9]+",r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";r=r.replace(/u/g,"\\u");let i="(?:(?![A-Z0-9 $%*+\\-./:]|"+r+")(?:.|[\r\n]))+";t.KANJI=RegExp(r,"g"),t.BYTE_KANJI=RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=RegExp(i,"g"),t.NUMERIC=RegExp(n,"g"),t.ALPHANUMERIC=RegExp("[A-Z $%*+\\-./:]+","g");let a=RegExp("^"+r+"$"),o=RegExp("^"+n+"$"),s=RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return a.test(e)},t.testNumeric=function(e){return o.test(e)},t.testAlphanumeric=function(e){return s.test(e)}},16130:function(e,t,n){let r=n(76910),i=n(41085),a=n(8260),o=n(43424),s=n(35442),l=n(7007),u=n(10242),c=n(65987);function d(e){return unescape(encodeURIComponent(e)).length}function h(e,t,n){let r;let i=[];for(;null!==(r=e.exec(n));)i.push({data:r[0],index:r.index,mode:t,length:r[0].length});return i}function p(e){let t,n;let i=h(l.NUMERIC,r.NUMERIC,e),a=h(l.ALPHANUMERIC,r.ALPHANUMERIC,e);u.isKanjiModeEnabled()?(t=h(l.BYTE,r.BYTE,e),n=h(l.KANJI,r.KANJI,e)):(t=h(l.BYTE_KANJI,r.BYTE,e),n=[]);let o=i.concat(a,t,n);return o.sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function f(e,t){switch(t){case r.NUMERIC:return i.getBitsLength(e);case r.ALPHANUMERIC:return a.getBitsLength(e);case r.KANJI:return s.getBitsLength(e);case r.BYTE:return o.getBitsLength(e)}}function m(e,t){let n;let l=r.getBestModeForData(e);if((n=r.from(t,l))!==r.BYTE&&n.bit=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[]))},t.rawSplit=function(e){return t.fromArray(p(e,u.isKanjiModeEnabled()))}},10242:function(e,t){let n;let r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw Error('"version" cannot be null or undefined');if(e<1||e>40)throw Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return r[e]},t.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!=typeof e)throw Error('"toSJISFunc" is not a valid function.');n=e},t.isKanjiModeEnabled=function(){return void 0!==n},t.toSJIS=function(e){return n(e)}},43114:function(e,t){t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},23103:function(e,t,n){let r=n(10242),i=n(35393),a=n(64908),o=n(76910),s=n(43114),l=r.getBCHDigit(7973);function u(e,t){return o.getCharCountIndicator(e,t)+4}t.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,n){if(!s.isValid(e))throw Error("Invalid QR Code version");void 0===n&&(n=o.BYTE);let a=r.getSymbolTotalCodewords(e),l=i.getTotalCodewordsCount(e,t),c=(a-l)*8;if(n===o.MIXED)return c;let d=c-u(n,e);switch(n){case o.NUMERIC:return Math.floor(d/10*3);case o.ALPHANUMERIC:return Math.floor(d/11*2);case o.KANJI:return Math.floor(d/13);case o.BYTE:default:return Math.floor(d/8)}},t.getBestVersionForData=function(e,n){let r;let i=a.from(n,a.M);if(Array.isArray(e)){if(e.length>1)return function(e,n){for(let r=1;r<=40;r++){let i=function(e,t){let n=0;return e.forEach(function(e){let r=u(e.mode,t);n+=r+e.getBitsLength()}),n}(e,r);if(i<=t.getCapacity(r,n,o.MIXED))return r}}(e,i);if(0===e.length)return 1;r=e[0]}else r=e;return function(e,n,r){for(let i=1;i<=40;i++)if(n<=t.getCapacity(i,r,e))return i}(r.mode,r.getLength(),i)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw Error("Invalid QR Code version");let t=e<<12;for(;r.getBCHDigit(t)-l>=0;)t^=7973<':"",d="0&&u>0&&e[l-1]||(r+=o?a("M",u+n,.5+c+n):a("m",i,0),i=0,o=!1),u+1',h=o.width?'width="'+o.width+'" height="'+o.width+'" ':"",p=''+c+d+"\n";return"function"==typeof n&&n(null,p),p}},89653:function(e,t){function n(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw Error("Invalid hex color: "+e);(3===t.length||4===t.length)&&(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),6===t.length&&t.push("F","F");let n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});let t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;return{width:r,scale:r?4:i,margin:t,color:{dark:n(e.color.dark||"#000000ff"),light:n(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,n){let r=t.getScale(e,n);return Math.floor((e+2*n.margin)*r)},t.qrToImageData=function(e,n,r){let i=n.modules.size,a=n.modules.data,o=t.getScale(i,r),s=Math.floor((i+2*r.margin)*o),l=r.margin*o,u=[r.color.light,r.color.dark];for(let t=0;t=l&&n>=l&&t=Number.MAX_SAFE_INTEGER);n++)t+=e.charCodeAt(n);return t}(o.seed);else if(void 0!==o.seed&&null!==o.seed)throw TypeError("The seed value must be an integer or string");else e=null;if(null!==o.count&&void 0!==o.count){for(var c,d,h,p=o.count,f=[],m=0;mf.length;){var g=r(o);null!==e&&(o.seed=e),f.push(g)}return o.count=p,f}return d=function(e,t){if("monochrome"===t.hue)return 0;if("random"===t.luminosity)return a([0,100]);var n=i(e).saturationRange,r=n[0],o=n[1];switch(t.luminosity){case"bright":r=55;break;case"dark":r=o-10;break;case"light":o=55}return a([r,o])}(c=function(e){if(n.length>0){var r=function(e){if(isNaN(e)){if("string"==typeof e){if(t[e]){var n=t[e];if(n.hueRange)return n.hueRange}else if(e.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i))return i(l(e)[0]).hueRange}}else{var r=parseInt(e);if(r<360&&r>0)return i(e).hueRange}return[0,360]}(e.hue),o=a(r),s=(r[1]-r[0])/n.length,u=parseInt((o-r[0])/s);!0===n[u]?u=(u+2)%n.length:n[u]=!0;var c=(r[0]+u*s)%359,d=(r[0]+(u+1)*s)%359;return(o=a(r=[c,d]))<0&&(o=360+o),o}var r=function(e){if("number"==typeof parseInt(e)){var n=parseInt(e);if(n<360&&n>0)return[n,n]}if("string"==typeof e){if(t[e]){var r=t[e];if(r.hueRange)return r.hueRange}else if(e.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i)){var i=l(e)[0];return[i,i]}}return[0,360]}(e.hue);return(o=a(r))<0&&(o=360+o),o}(o),o),h=function(e,t,n){var r=function(e,t){for(var n=i(e).lowerBounds,r=0;r=a&&t<=s){var u=(l-o)/(s-a),c=o-u*a;return u*t+c}}return 0}(e,t),o=100;switch(n.luminosity){case"dark":o=r+20;break;case"light":r=(o+r)/2;break;case"random":r=0,o=100}return a([r,o])}(c,d,o),function(e,t){switch(t.format){case"hsvArray":return e;case"hslArray":return u(e);case"hsl":var n=u(e);return"hsl("+n[0]+", "+n[1]+"%, "+n[2]+"%)";case"hsla":var r=u(e),i=t.alpha||Math.random();return"hsla("+r[0]+", "+r[1]+"%, "+r[2]+"%, "+i+")";case"rgbArray":return s(e);case"rgb":return"rgb("+s(e).join(", ")+")";case"rgba":var a=s(e),i=t.alpha||Math.random();return"rgba("+a.join(", ")+", "+i+")";default:return function(e){var t=s(e);function n(e){var t=e.toString(16);return 1==t.length?"0"+t:t}return"#"+n(t[0])+n(t[1])+n(t[2])}(e)}}([c,d,h],o)};function i(e){for(var n in e>=334&&e<=360&&(e-=360),t){var r=t[n];if(r.hueRange&&e>=r.hueRange[0]&&e<=r.hueRange[1])return t[n]}return"Color not found"}function a(t){if(null===e){var n=Math.random();return n+=.618033988749895,n%=1,Math.floor(t[0]+n*(t[1]+1-t[0]))}var r=t[1]||1,i=t[0]||0;return Math.floor(i+(e=(9301*e+49297)%233280)/233280*(r-i))}function o(e,n,r){var i=r[0][0],a=r[r.length-1][0],o=r[r.length-1][1],s=r[0][1];t[e]={hueRange:n,lowerBounds:r,saturationRange:[i,a],brightnessRange:[o,s]}}function s(e){var t=e[0];0===t&&(t=1),360===t&&(t=359),t/=360;var n=e[1]/100,r=e[2]/100,i=Math.floor(6*t),a=6*t-i,o=r*(1-n),s=r*(1-a*n),l=r*(1-(1-a)*n),u=256,c=256,d=256;switch(i){case 0:u=r,c=l,d=o;break;case 1:u=s,c=r,d=o;break;case 2:u=o,c=r,d=l;break;case 3:u=o,c=s,d=r;break;case 4:u=l,c=o,d=r;break;case 5:u=r,c=o,d=s}return[Math.floor(255*u),Math.floor(255*c),Math.floor(255*d)]}function l(e){var t=parseInt((e=3===(e=e.replace(/^#/,"")).length?e.replace(/(.)/g,"$1$1"):e).substr(0,2),16)/255,n=parseInt(e.substr(2,2),16)/255,r=parseInt(e.substr(4,2),16)/255,i=Math.max(t,n,r),a=i-Math.min(t,n,r),o=i?a/i:0;switch(i){case t:return[60*((n-r)/a%6)||0,o,i];case n:return[60*((r-t)/a+2)||0,o,i];case r:return[60*((t-n)/a+4)||0,o,i]}}function u(e){var t=e[0],n=e[1]/100,r=e[2]/100,i=(2-n)*r;return[t,Math.round(n*r/(i<1?i:2-i)*1e4)/100,i/2*100]}return r}(),e&&e.exports&&(t=e.exports=r),t.randomColor=r},69921:function(e,t){"use strict";/** @license React v16.13.1 + */var r=n(675),i=n(783),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function o(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);var n=0|p(e,t),r=o(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return d(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(A(e,ArrayBuffer)||e&&A(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(A(e,SharedArrayBuffer)||e&&A(e.buffer,SharedArrayBuffer)))return function(e,t,n){var r;if(t<0||e.byteLength=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||A(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return S(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return E(e).length;default:if(i)return r?-1:S(e).length;t=(""+t).toLowerCase(),i=!0}}function f(e,t,n){var i,a,o=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=t;a2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),(a=n=+n)!=a&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return -1;n=e.length-1}else if(n<0){if(!i)return -1;n=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:O(e,t,n,r,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):O(e,[t],n,r,i);throw TypeError("val must be string, number or Buffer")}function O(e,t,n,r,i){var a,o=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;o=2,s/=2,l/=2,n/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var c=-1;for(a=n;as&&(n=s-l),a=n;a>=0;a--){for(var d=!0,h=0;h239?4:u>223?3:u>191?2:1;if(i+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:(192&(a=e[i+1]))==128&&(l=(31&u)<<6|63&a)>127&&(c=l);break;case 3:a=e[i+1],o=e[i+2],(192&a)==128&&(192&o)==128&&(l=(15&u)<<12|(63&a)<<6|63&o)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],(192&a)==128&&(192&o)==128&&(192&s)==128&&(l=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;rn)throw RangeError("Trying to access beyond buffer length")}function v(e,t,n,r,i,a){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function x(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function T(e,t,n,r,a){return t=+t,n>>>=0,a||x(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function k(e,t,n,r,a){return t=+t,n>>>=0,a||x(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=2147483647,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,n){return(u(e),e<=0)?o(e):void 0!==t?"string"==typeof n?o(e).fill(t,n):o(e).fill(t):o(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(A(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),A(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);in&&(e+=" ... "),""},a&&(s.prototype[a]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(A(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var a=i-r,o=n-t,l=Math.min(a,o),u=this.slice(r,i),c=e.slice(t,n),d=0;d>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,a,o,s,l,u,c,d,h,p,f,m,g=this.length-t;if((void 0===n||n>g)&&(n=g),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var O=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var a=t.length;r>a/2&&(r=a/2);for(var o=0;o>8,i.push(n%256),i.push(r);return i}(e,this.length-f),this,f,m);default:if(O)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),O=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||y(e,t,this.length);for(var r=this[e],i=1,a=0;++a>>=0,t>>>=0,n||y(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUInt8=function(e,t){return e>>>=0,t||y(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||y(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||y(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||y(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||y(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||y(e,t,this.length);for(var r=this[e],i=1,a=0;++a=(i*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||y(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},s.prototype.readInt8=function(e,t){return(e>>>=0,t||y(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||y(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||y(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||y(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||y(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||y(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||y(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||y(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||y(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;v(this,e,t,n,i,0)}var a=1,o=0;for(this[t]=255&e;++o>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;v(this,e,t,n,i,0)}var a=n-1,o=1;for(this[t+a]=255&e;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+n},s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);v(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a>0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);v(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,n){return T(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return T(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return k(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return k(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--a)e[a+t]=this[a+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},s.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!s.isEncoding(r))throw TypeError("Unknown encoding: "+r);if(1===e.length){var i,a=e.charCodeAt(0);("utf8"===r&&a<128||"latin1"===r)&&(e=a)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&n<57344){if(!i){if(n>56319||o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return a}function w(e){for(var t=[],n=0;n=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}function A(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var R=function(){for(var e="0123456789abcdef",t=Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}()},783:function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */t.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,l=(1<>1,c=-7,d=n?i-1:0,h=n?-1:1,p=e[t+d];for(d+=h,a=p&(1<<-c)-1,p>>=-c,c+=s;c>0;a=256*a+e[t+d],d+=h,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=r;c>0;o=256*o+e[t+d],d+=h,c-=8);if(0===a)a=1-u;else{if(a===l)return o?NaN:(p?-1:1)*(1/0);o+=Math.pow(2,r),a-=u}return(p?-1:1)*o*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var o,s,l,u=8*a-i-1,c=(1<>1,h=23===i?5960464477539062e-23:0,p=r?0:a-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+d>=1?t+=h/l:t+=h*Math.pow(2,1-d),t*l>=2&&(o++,l/=2),o+d>=c?(s=0,o=c):o+d>=1?(s=(t*l-1)*Math.pow(2,i),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[n+p]=255&s,p+=f,s/=256,i-=8);for(o=o<0;e[n+p]=255&o,p+=f,o/=256,u-=8);e[n+p-f]|=128*m}}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var a=n[e]={exports:{}},o=!0;try{t[e](a,a.exports,r),o=!1}finally{o&&delete n[e]}return a.exports}r.ab="//";var i=r(72);e.exports=i}()},5239:function(){},7889:function(){},55663:function(){},63031:function(){},15470:function(){},44138:function(){},23221:function(){},18124:function(){},25628:function(){},15887:function(){},7695:function(){},52891:function(){},62860:function(){},61658:function(){},70895:function(){},91169:function(){},48983:function(){},19673:function(){},30614:function(){},41381:function(){},1844:function(){},63125:function(){},69446:function(){},95829:function(){},300:function(){},16192:function(){},77663:function(e){!function(){var t={229:function(e){var t,n,r,i=e.exports={};function a(){throw Error("setTimeout has not been defined")}function o(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var l=[],u=!1,c=-1;function d(){u&&r&&(u=!1,r.length?l=r.concat(l):c=-1,l.length&&h())}function h(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(r=l,l=[];++c1)for(var n=1;n>16),u((65280&i)>>8),u(255&i);return 2==a?u(255&(i=n(e.charAt(r))<<2|n(e.charAt(r+1))>>4)):1==a&&(u((i=n(e.charAt(r))<<10|n(e.charAt(r+1))<<4|n(e.charAt(r+2))>>2)>>8&255),u(255&i)),o},e.fromByteArray=function(e){var t,n,r,i,a=e.length%3,o="";function s(e){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)}for(t=0,r=e.length-a;t>18&63)+s(i>>12&63)+s(i>>6&63)+s(63&i);switch(a){case 1:o=(o+=s((n=e[e.length-1])>>2))+s(n<<4&63)+"==";break;case 2:o=(o=(o+=s((n=(e[e.length-2]<<8)+e[e.length-1])>>10))+s(n>>4&63))+s(n<<2&63)+"="}return o}}(void 0===n?this.base64js={}:n)}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:11}],3:[function(e,t,n){(function(t,r,i,a,o,s,l,u,c){var d=e("base64-js"),h=e("ieee754");function i(e,t,n){if(!(this instanceof i))return new i(e,t,n);var r,a,o,s,l=typeof e;if("base64"===t&&"string"==l)for(e=(s=e).trim?s.trim():s.replace(/^\s+|\s+$/g,"");e.length%4!=0;)e+="=";if("number"==l)r=E(e);else if("string"==l)r=i.byteLength(e,t);else{if("object"!=l)throw Error("First argument needs to be a number, array or string.");r=E(e.length)}if(i._useTypedArrays?a=i._augment(new Uint8Array(r)):((a=this).length=r,a._isBuffer=!0),i._useTypedArrays&&"number"==typeof e.byteLength)a._set(e);else if(C(s=e)||i.isBuffer(s)||s&&"object"==typeof s&&"number"==typeof s.length)for(o=0;o>>0)):(t+1>>0),i}function m(e,t,n,r){if(r||(Q("boolean"==typeof n,"missing or invalid endian"),Q(null!=t,"missing offset"),Q(t+1>>8*(r?a:1-a)}function v(e,t,n,r,i){if(i||(Q(null!=t,"missing value"),Q("boolean"==typeof r,"missing or invalid endian"),Q(null!=n,"missing offset"),Q(n+3>>8*(r?a:3-a)&255}function x(e,t,n,r,i){i||(Q(null!=t,"missing value"),Q("boolean"==typeof r,"missing or invalid endian"),Q(null!=n,"missing offset"),Q(n+1>8,r.push(n%=256),r.push(t);return r}(e),this,s,l);break;default:throw Error("Unknown encoding")}return u},i.prototype.toString=function(e,t,n){var r,i,a;if(e=String(e||"utf8").toLowerCase(),t=Number(t)||0,(n=void 0!==n?Number(n):this.length)===t)return"";switch(e){case"hex":r=function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||rthis.length&&(r=this.length);var a=(r=e.length-t=this.length))return this[e]},i.prototype.readUInt16LE=function(e,t){return p(this,e,!0,t)},i.prototype.readUInt16BE=function(e,t){return p(this,e,!1,t)},i.prototype.readUInt32LE=function(e,t){return f(this,e,!0,t)},i.prototype.readUInt32BE=function(e,t){return f(this,e,!1,t)},i.prototype.readInt8=function(e,t){if(t||(Q(null!=e,"missing offset"),Q(e=this.length))return 128&this[e]?-1*(255-this[e]+1):this[e]},i.prototype.readInt16LE=function(e,t){return m(this,e,!0,t)},i.prototype.readInt16BE=function(e,t){return m(this,e,!1,t)},i.prototype.readInt32LE=function(e,t){return g(this,e,!0,t)},i.prototype.readInt32BE=function(e,t){return g(this,e,!1,t)},i.prototype.readFloatLE=function(e,t){return O(this,e,!0,t)},i.prototype.readFloatBE=function(e,t){return O(this,e,!1,t)},i.prototype.readDoubleLE=function(e,t){return b(this,e,!0,t)},i.prototype.readDoubleBE=function(e,t){return b(this,e,!1,t)},i.prototype.writeUInt8=function(e,t,n){n||(Q(null!=e,"missing value"),Q(null!=t,"missing offset"),Q(t=this.length||(this[t]=e)},i.prototype.writeUInt16LE=function(e,t,n){y(this,e,t,!0,n)},i.prototype.writeUInt16BE=function(e,t,n){y(this,e,t,!1,n)},i.prototype.writeUInt32LE=function(e,t,n){v(this,e,t,!0,n)},i.prototype.writeUInt32BE=function(e,t,n){v(this,e,t,!1,n)},i.prototype.writeInt8=function(e,t,n){n||(Q(null!=e,"missing value"),Q(null!=t,"missing offset"),Q(t=this.length||(0<=e?this.writeUInt8(e,t,n):this.writeUInt8(255+e+1,t,n))},i.prototype.writeInt16LE=function(e,t,n){x(this,e,t,!0,n)},i.prototype.writeInt16BE=function(e,t,n){x(this,e,t,!1,n)},i.prototype.writeInt32LE=function(e,t,n){T(this,e,t,!0,n)},i.prototype.writeInt32BE=function(e,t,n){T(this,e,t,!1,n)},i.prototype.writeFloatLE=function(e,t,n){k(this,e,t,!0,n)},i.prototype.writeFloatBE=function(e,t,n){k(this,e,t,!1,n)},i.prototype.writeDoubleLE=function(e,t,n){_(this,e,t,!0,n)},i.prototype.writeDoubleBE=function(e,t,n){_(this,e,t,!1,n)},i.prototype.fill=function(e,t,n){if(t=t||0,n=n||this.length,Q("number"==typeof(e="string"==typeof(e=e||0)?e.charCodeAt(0):e)&&!isNaN(e),"value is not a number"),Q(t<=n,"end < start"),n!==t&&0!==this.length){Q(0<=t&&t"},i.prototype.toArrayBuffer=function(){if("undefined"==typeof Uint8Array)throw Error("Buffer.toArrayBuffer not supported in this browser");if(i._useTypedArrays)return new i(this).buffer;for(var e=new Uint8Array(this.length),t=0,n=e.length;t=t.length||i>=e.length);i++)t[i+n]=e[i];return i}function N(e){try{return decodeURIComponent(e)}catch(e){return String.fromCharCode(65533)}}function $(e,t){Q("number"==typeof e,"cannot write a non-number as a number"),Q(0<=e,"specified a negative value for writing an unsigned value"),Q(e<=t,"value is larger than maximum value for type"),Q(Math.floor(e)===e,"value has a fractional component")}function L(e,t,n){Q("number"==typeof e,"cannot write a non-number as a number"),Q(e<=t,"value larger than maximum allowed value"),Q(n<=e,"value smaller than minimum allowed value"),Q(Math.floor(e)===e,"value has a fractional component")}function D(e,t,n){Q("number"==typeof e,"cannot write a non-number as a number"),Q(e<=t,"value larger than maximum allowed value"),Q(n<=e,"value smaller than minimum allowed value")}function Q(e,t){if(!e)throw Error(t||"Failed assertion")}i._augment=function(e){return e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=S.get,e.set=S.set,e.write=S.write,e.toString=S.toString,e.toLocaleString=S.toString,e.toJSON=S.toJSON,e.copy=S.copy,e.slice=S.slice,e.readUInt8=S.readUInt8,e.readUInt16LE=S.readUInt16LE,e.readUInt16BE=S.readUInt16BE,e.readUInt32LE=S.readUInt32LE,e.readUInt32BE=S.readUInt32BE,e.readInt8=S.readInt8,e.readInt16LE=S.readInt16LE,e.readInt16BE=S.readInt16BE,e.readInt32LE=S.readInt32LE,e.readInt32BE=S.readInt32BE,e.readFloatLE=S.readFloatLE,e.readFloatBE=S.readFloatBE,e.readDoubleLE=S.readDoubleLE,e.readDoubleBE=S.readDoubleBE,e.writeUInt8=S.writeUInt8,e.writeUInt16LE=S.writeUInt16LE,e.writeUInt16BE=S.writeUInt16BE,e.writeUInt32LE=S.writeUInt32LE,e.writeUInt32BE=S.writeUInt32BE,e.writeInt8=S.writeInt8,e.writeInt16LE=S.writeInt16LE,e.writeInt16BE=S.writeInt16BE,e.writeInt32LE=S.writeInt32LE,e.writeInt32BE=S.writeInt32BE,e.writeFloatLE=S.writeFloatLE,e.writeFloatBE=S.writeFloatBE,e.writeDoubleLE=S.writeDoubleLE,e.writeDoubleBE=S.writeDoubleBE,e.fill=S.fill,e.inspect=S.inspect,e.toArrayBuffer=S.toArrayBuffer,e}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:10,lYpoI2:11}],4:[function(e,t,n){(function(n,r,i,a,o,s,l,u,c){var i=e("buffer").Buffer,d=new i(4);d.fill(0),t.exports={hash:function(e,t,n,r){for(var a=t(function(e,t){e.length%4!=0&&(n=e.length+(4-e.length%4),e=i.concat([e,d],n));for(var n,r=[],a=t?e.readInt32BE:e.readInt32LE,o=0;o64?t=e(t):t.length<64&&(t=i.concat([t,m],64));for(var r=new i(64),a=new i(64),o=0;o<64;o++)r[o]=54^t[o],a[o]=92^t[o];return n=e(i.concat([r,n])),e(i.concat([a,n]))}(n,t,a):n(a);return r=null,e?a.toString(e):a}}}function O(){var e=[].slice.call(arguments).join(" ");throw Error([e,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}m.fill(0),n.createHash=function(e){return g(e)},n.createHmac=g,n.randomBytes=function(e,t){if(!t||!t.call)return new i(p(e));try{t.call(this,void 0,new i(p(e)))}catch(e){t(e)}};var b,y=["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],v=function(e){n[e]=function(){O("sorry,",e,"is not implemented yet")}};for(b in y)v(y[b],b)}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:11}],6:[function(e,t,n){(function(n,r,i,a,o,s,l,u,c){var d=e("./helpers");function h(e,t){e[t>>5]|=128<>>9<<4)]=t;for(var n=1732584193,r=-271733879,i=-1732584194,a=271733878,o=0;o>>32-i,n)}function f(e,t,n,r,i,a,o){return p(t&n|~t&r,e,t,i,a,o)}function m(e,t,n,r,i,a,o){return p(t&r|n&~r,e,t,i,a,o)}function g(e,t,n,r,i,a,o){return p(t^n^r,e,t,i,a,o)}function O(e,t,n,r,i,a,o){return p(n^(t|~r),e,t,i,a,o)}function b(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}t.exports=function(e){return d.hash(e,h,16)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],7:[function(e,t,n){(function(e,n,r,i,a,o,s,l,u){var c;t.exports=c||function(e){for(var t,n=Array(e),r=0;r>>((3&r)<<3)&255;return n}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],8:[function(e,t,n){(function(n,r,i,a,o,s,l,u,c){var d=e("./helpers");function h(e,t){e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var n,r,i,a=Array(80),o=1732584193,s=-271733879,l=-1732584194,u=271733878,c=-1009589776,d=0;d>16)+(t>>16)+(n>>16)<<16|65535&n}function f(e,t){return e<>>32-t}t.exports=function(e){return d.hash(e,h,20,!0)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],9:[function(e,t,n){(function(n,r,i,a,o,s,l,u,c){function d(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function h(e,t){var n,r=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],i=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],a=Array(64);e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var o,s,l=0;l>>t|e<<32-t},m=function(e,t){return e>>>t};t.exports=function(e){return p.hash(e,h,32,!0)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],10:[function(e,t,n){(function(e,t,r,i,a,o,s,l,u){n.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,l=(1<>1,c=-7,d=n?i-1:0,h=n?-1:1,i=e[t+d];for(d+=h,a=i&(1<<-c)-1,i>>=-c,c+=s;0>=-c,c+=r;0>1,d=23===i?5960464477539062e-23:0,h=r?0:a-1,p=r?1:-1,a=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(r=Math.pow(2,-o))<1&&(o--,r*=2),2<=(t+=1<=o+c?d/r:d*Math.pow(2,1-c))*r&&(o++,r/=2),u<=o+c?(s=0,o=u):1<=o+c?(s=(t*r-1)*Math.pow(2,i),o+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,i),o=0));8<=i;e[n+h]=255&s,h+=p,s/=256,i-=8);for(o=o<=55296&&n<=57343||n>1114111?(_(7,$),T=c(65533)):T in i?(_(6,$),T=i[T]):(w="",((a=T)>=1&&a<=8||11===a||a>=13&&a<=31||a>=127&&a<=159||a>=64976&&a<=65007||(65535&a)==65535||(65535&a)==65534)&&_(6,$),T>65535&&(T-=65536,w+=c(T>>>10|55296),T=56320|1023&T),T=w+c(T))):R!==p&&_(4,$)),T?(ee(),I=J(),G=L-1,Y+=L-A+1,K.push(T),N=J(),N.offset++,F&&F.call(z,T,{start:I,end:N},e.slice(A-1,L)),I=N):(V+=v=e.slice(A-1,L),Y+=v.length,G=L-1)}else 10===x&&(X++,H++,Y=0),x==x?(V+=c(x),Y++):ee();return K.join("");function J(){return{line:X,column:Y,offset:G+(W.offset||0)}}function ee(){V&&(K.push(V),M&&M.call(U,V,{start:I,end:J()}),V="")}}(e,o)};var u={}.hasOwnProperty,c=String.fromCharCode,d=Function.prototype,h={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},p="named",f="hexadecimal",m="decimal",g={};g[f]=16,g[m]=10;var O={};O[p]=s,O[m]=a,O[f]=o;var b={};b[1]="Named character references must be terminated by a semicolon",b[2]="Numeric character references must be terminated by a semicolon",b[3]="Named character references cannot be empty",b[4]="Numeric character references cannot be empty",b[5]="Named character references must be known",b[6]="Numeric character references cannot be disallowed",b[7]="Numeric character references cannot be outside the permissible Unicode range"},92703:function(e,t,n){"use strict";var r=n(50414);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,o){if(o!==r){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i};return n.PropTypes=n,n}},45697:function(e,t,n){e.exports=n(92703)()},50414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},99560:function(e,t,n){"use strict";var r=n(66632),i=n(98805),a=n(57643),o="data";e.exports=function(e,t){var n,h,p,f=r(t),m=t,g=a;return f in e.normal?e.property[e.normal[f]]:(f.length>4&&f.slice(0,4)===o&&s.test(t)&&("-"===t.charAt(4)?m=o+(n=t.slice(5).replace(l,d)).charAt(0).toUpperCase()+n.slice(1):(p=(h=t).slice(4),t=l.test(p)?h:("-"!==(p=p.replace(u,c)).charAt(0)&&(p="-"+p),o+p)),g=i),new g(m,t))};var s=/^data[-\w.:]+$/i,l=/-[a-z]/g,u=/[A-Z]/g;function c(e){return"-"+e.toLowerCase()}function d(e){return e.charAt(1).toUpperCase()}},97247:function(e,t,n){"use strict";var r=n(19940),i=n(8289),a=n(5812),o=n(94397),s=n(67716),l=n(61805);e.exports=r([a,i,o,s,l])},67716:function(e,t,n){"use strict";var r=n(17e3),i=n(17596),a=r.booleanish,o=r.number,s=r.spaceSeparated;e.exports=i({transform:function(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:a,ariaAutoComplete:null,ariaBusy:a,ariaChecked:a,ariaColCount:o,ariaColIndex:o,ariaColSpan:o,ariaControls:s,ariaCurrent:null,ariaDescribedBy:s,ariaDetails:null,ariaDisabled:a,ariaDropEffect:s,ariaErrorMessage:null,ariaExpanded:a,ariaFlowTo:s,ariaGrabbed:a,ariaHasPopup:null,ariaHidden:a,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:s,ariaLevel:o,ariaLive:null,ariaModal:a,ariaMultiLine:a,ariaMultiSelectable:a,ariaOrientation:null,ariaOwns:s,ariaPlaceholder:null,ariaPosInSet:o,ariaPressed:a,ariaReadOnly:a,ariaRelevant:null,ariaRequired:a,ariaRoleDescription:s,ariaRowCount:o,ariaRowIndex:o,ariaRowSpan:o,ariaSelected:a,ariaSetSize:o,ariaSort:null,ariaValueMax:o,ariaValueMin:o,ariaValueNow:o,ariaValueText:null,role:null}})},61805:function(e,t,n){"use strict";var r=n(17e3),i=n(17596),a=n(10855),o=r.boolean,s=r.overloadedBoolean,l=r.booleanish,u=r.number,c=r.spaceSeparated,d=r.commaSeparated;e.exports=i({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:a,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:d,acceptCharset:c,accessKey:c,action:null,allow:null,allowFullScreen:o,allowPaymentRequest:o,allowUserMedia:o,alt:null,as:null,async:o,autoCapitalize:null,autoComplete:c,autoFocus:o,autoPlay:o,capture:o,charSet:null,checked:o,cite:null,className:c,cols:u,colSpan:null,content:null,contentEditable:l,controls:o,controlsList:c,coords:u|d,crossOrigin:null,data:null,dateTime:null,decoding:null,default:o,defer:o,dir:null,dirName:null,disabled:o,download:s,draggable:l,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:o,formTarget:null,headers:c,height:u,hidden:o,high:u,href:null,hrefLang:null,htmlFor:c,httpEquiv:c,id:null,imageSizes:null,imageSrcSet:d,inputMode:null,integrity:null,is:null,isMap:o,itemId:null,itemProp:c,itemRef:c,itemScope:o,itemType:c,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:o,low:u,manifest:null,max:null,maxLength:u,media:null,method:null,min:null,minLength:u,multiple:o,muted:o,name:null,nonce:null,noModule:o,noValidate:o,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu: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,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:o,optimum:u,pattern:null,ping:c,placeholder:null,playsInline:o,poster:null,preload:null,readOnly:o,referrerPolicy:null,rel:c,required:o,reversed:o,rows:u,rowSpan:u,sandbox:c,scope:null,scoped:o,seamless:o,selected:o,shape:null,size:u,sizes:null,slot:null,span:u,spellCheck:l,src:null,srcDoc:null,srcLang:null,srcSet:d,start:u,step:null,style:null,tabIndex:u,target:null,title:null,translate:null,type:null,typeMustMatch:o,useMap:null,value:l,width:u,wrap:null,align:null,aLink:null,archive:c,axis:null,background:null,bgColor:null,border:u,borderColor:null,bottomMargin:u,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:o,declare:o,event:null,face:null,frame:null,frameBorder:null,hSpace:u,leftMargin:u,link:null,longDesc:null,lowSrc:null,marginHeight:u,marginWidth:u,noResize:o,noHref:o,noShade:o,noWrap:o,object:null,profile:null,prompt:null,rev:null,rightMargin:u,rules:null,scheme:null,scrolling:l,standby:null,summary:null,text:null,topMargin:u,valueType:null,version:null,vAlign:null,vLink:null,vSpace:u,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:o,disableRemotePlayback:o,prefix:null,property:null,results:u,security:null,unselectable:null}})},45789:function(e,t,n){"use strict";var r=n(17e3),i=n(17596),a=n(28740),o=r.boolean,s=r.number,l=r.spaceSeparated,u=r.commaSeparated,c=r.commaOrSpaceSeparated;e.exports=i({space:"svg",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",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"},transform:a,properties:{about:c,accentHeight:s,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:s,amplitude:s,arabicForm:null,ascent:s,attributeName:null,attributeType:null,azimuth:s,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:s,by:null,calcMode:null,capHeight:s,className:l,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:s,diffuseConstant:s,direction:null,display:null,dur:null,divisor:s,dominantBaseline:null,download:o,dx:null,dy:null,edgeMode:null,editable:null,elevation:s,enableBackground:null,end:null,event:null,exponent:s,externalResourcesRequired:null,fill:null,fillOpacity:s,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:u,g2:u,glyphName:u,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:s,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:s,horizOriginX:s,horizOriginY:s,id:null,ideographic:s,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:s,k:s,k1:s,k2:s,k3:s,k4:s,kernelMatrix:c,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:s,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:s,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:s,overlineThickness:s,paintOrder:null,panose1:null,path:null,pathLength:s,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:l,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:s,pointsAtY:s,pointsAtZ:s,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:c,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:c,rev:c,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:c,requiredFeatures:c,requiredFonts:c,requiredFormats:c,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:s,specularExponent:s,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:s,strikethroughThickness:s,string:null,stroke:null,strokeDashArray:c,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:s,strokeOpacity:s,strokeWidth:null,style:null,surfaceScale:s,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:c,tabIndex:s,tableValues:null,target:null,targetX:s,targetY:s,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:c,to:null,transform:null,u1:null,u2:null,underlinePosition:s,underlineThickness:s,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:s,values:null,vAlphabetic:s,vMathematical:s,vectorEffect:null,vHanging:s,vIdeographic:s,version:null,vertAdvY:s,vertOriginX:s,vertOriginY:s,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:s,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}})},10855:function(e,t,n){"use strict";var r=n(28740);e.exports=function(e,t){return r(e,t.toLowerCase())}},28740:function(e){"use strict";e.exports=function(e,t){return t in e?e[t]:t}},17596:function(e,t,n){"use strict";var r=n(66632),i=n(99607),a=n(98805);e.exports=function(e){var t,n,o=e.space,s=e.mustUseProperty||[],l=e.attributes||{},u=e.properties,c=e.transform,d={},h={};for(t in u)n=new a(t,c(l,t),u[t],o),-1!==s.indexOf(t)&&(n.mustUseProperty=!0),d[t]=n,h[r(t)]=t,h[r(n.attribute)]=t;return new i(d,h,o)}},98805:function(e,t,n){"use strict";var r=n(57643),i=n(17e3);e.exports=s,s.prototype=new r,s.prototype.defined=!0;var a=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],o=a.length;function s(e,t,n,s){var l,u,c,d=-1;for(s&&(this.space=s),r.call(this,e,t);++d>>7-e%8&1)==1},put:function(e,t){for(let n=0;n>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},73280:function(e){function t(e){if(!e||e<1)throw Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}t.prototype.set=function(e,t,n,r){let i=e*this.size+t;this.data[i]=n,r&&(this.reservedBit[i]=!0)},t.prototype.get=function(e,t){return this.data[e*this.size+t]},t.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},t.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=t},43424:function(e,t,n){let r=n(62378),i=n(76910);function a(e){this.mode=i.BYTE,"string"==typeof e&&(e=r(e)),this.data=new Uint8Array(e)}a.getBitsLength=function(e){return 8*e},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(e){for(let t=0,n=this.data.length;t=0&&e.bit<4},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw Error("Param is not a string");let n=e.toLowerCase();switch(n){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw Error("Unknown EC Level: "+e)}}(e)}catch(e){return n}}},76526:function(e,t,n){let r=n(10242).getSymbolSize;t.getPositions=function(e){let t=r(e);return[[0,0],[t-7,0],[0,t-7]]}},61642:function(e,t,n){let r=n(10242),i=r.getBCHDigit(1335);t.getEncodedBits=function(e,t){let n=e.bit<<3|t,a=n<<10;for(;r.getBCHDigit(a)-i>=0;)a^=1335<=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");n=(n>>>8&255)*192+(255&n),e.put(n,13)}},e.exports=a},27126:function(e,t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};let n={N1:3,N2:3,N3:40,N4:10};t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){let t=e.size,r=0,i=0,a=0,o=null,s=null;for(let l=0;l=5&&(r+=n.N1+(i-5)),o=t,i=1),(t=e.get(u,l))===s?a++:(a>=5&&(r+=n.N1+(a-5)),s=t,a=1)}i>=5&&(r+=n.N1+(i-5)),a>=5&&(r+=n.N1+(a-5))}return r},t.getPenaltyN2=function(e){let t=e.size,r=0;for(let n=0;n=10&&(1488===i||93===i)&&r++,a=a<<1&2047|e.get(o,n),o>=10&&(1488===a||93===a)&&r++}return r*n.N3},t.getPenaltyN4=function(e){let t=0,r=e.data.length;for(let n=0;n=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return i.testNumeric(e)?t.NUMERIC:i.testAlphanumeric(e)?t.ALPHANUMERIC:i.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw Error("Param is not a string");let n=e.toLowerCase();switch(n){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw Error("Unknown mode: "+e)}}(e)}catch(e){return n}}},41085:function(e,t,n){let r=n(76910);function i(e){this.mode=r.NUMERIC,this.data=e.toString()}i.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t,n;for(t=0;t+3<=this.data.length;t+=3)n=parseInt(this.data.substr(t,3),10),e.put(n,10);let r=this.data.length-t;r>0&&(n=parseInt(this.data.substr(t),10),e.put(n,3*r+1))},e.exports=i},26143:function(e,t,n){let r=n(69729);t.mul=function(e,t){let n=new Uint8Array(e.length+t.length-1);for(let i=0;i=0;){let e=n[0];for(let i=0;i>r&1)==1,r<6?e.set(r,8,i,!0):r<8?e.set(r+1,8,i,!0):e.set(a-15+r,8,i,!0),r<8?e.set(8,a-r-1,i,!0):r<9?e.set(8,15-r-1+1,i,!0):e.set(8,15-r-1,i,!0);e.set(a-8,8,1,!0)}t.create=function(e,t){let n,p;if(void 0===e||""===e)throw Error("No input text");let O=i.M;return void 0!==t&&(O=i.from(t.errorCorrectionLevel,i.M),n=h.from(t.version),p=u.from(t.maskPattern),t.toSJISFunc&&r.setToSJISFunction(t.toSJISFunc)),function(e,t,n,i){let p;if(Array.isArray(e))p=m.fromArray(e);else if("string"==typeof e){let r=t;if(!r){let t=m.rawSplit(e);r=h.getBestVersionForData(t,n)}p=m.fromString(e,r||40)}else throw Error("Invalid data");let O=h.getBestVersionForData(p,n);if(!O)throw Error("The amount of data is too big to be stored in a QR Code");if(t){if(t=0&&t<=6&&(0===r||6===r)||r>=0&&r<=6&&(0===t||6===t)||t>=2&&t<=4&&r>=2&&r<=4?e.set(i+t,a+r,!0,!0):e.set(i+t,a+r,!1,!0))}}(v,t),function(e){let t=e.size;for(let n=8;n=7&&function(e,t){let n,r,i;let a=e.size,o=h.getEncodedBits(t);for(let t=0;t<18;t++)n=Math.floor(t/3),r=t%3+a-8-3,i=(o>>t&1)==1,e.set(n,r,i,!0),e.set(r,n,i,!0)}(v,t),function(e,t){let n=e.size,r=-1,i=n-1,a=7,o=0;for(let s=n-1;s>0;s-=2)for(6===s&&s--;;){for(let n=0;n<2;n++)if(!e.isReserved(i,s-n)){let r=!1;o>>a&1)==1),e.set(i,s-n,r),-1==--a&&(o++,a=7)}if((i+=r)<0||n<=i){i-=r,r=-r;break}}}(v,b),isNaN(i)&&(i=u.getBestMask(v,g.bind(null,v,n))),u.applyMask(i,v),g(v,n,i),{modules:v,version:t,errorCorrectionLevel:n,maskPattern:i,segments:p}}(e,n,O,p)}},52882:function(e,t,n){let r=n(26143);function i(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}i.prototype.initialize=function(e){this.degree=e,this.genPoly=r.generateECPolynomial(this.degree)},i.prototype.encode=function(e){if(!this.genPoly)throw Error("Encoder not initialized");let t=new Uint8Array(e.length+this.degree);t.set(e);let n=r.mod(t,this.genPoly),i=this.degree-n.length;if(i>0){let e=new Uint8Array(this.degree);return e.set(n,i),e}return n},e.exports=i},7007:function(e,t){let n="[0-9]+",r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";r=r.replace(/u/g,"\\u");let i="(?:(?![A-Z0-9 $%*+\\-./:]|"+r+")(?:.|[\r\n]))+";t.KANJI=RegExp(r,"g"),t.BYTE_KANJI=RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=RegExp(i,"g"),t.NUMERIC=RegExp(n,"g"),t.ALPHANUMERIC=RegExp("[A-Z $%*+\\-./:]+","g");let a=RegExp("^"+r+"$"),o=RegExp("^"+n+"$"),s=RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return a.test(e)},t.testNumeric=function(e){return o.test(e)},t.testAlphanumeric=function(e){return s.test(e)}},16130:function(e,t,n){let r=n(76910),i=n(41085),a=n(8260),o=n(43424),s=n(35442),l=n(7007),u=n(10242),c=n(65987);function d(e){return unescape(encodeURIComponent(e)).length}function h(e,t,n){let r;let i=[];for(;null!==(r=e.exec(n));)i.push({data:r[0],index:r.index,mode:t,length:r[0].length});return i}function p(e){let t,n;let i=h(l.NUMERIC,r.NUMERIC,e),a=h(l.ALPHANUMERIC,r.ALPHANUMERIC,e);u.isKanjiModeEnabled()?(t=h(l.BYTE,r.BYTE,e),n=h(l.KANJI,r.KANJI,e)):(t=h(l.BYTE_KANJI,r.BYTE,e),n=[]);let o=i.concat(a,t,n);return o.sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function f(e,t){switch(t){case r.NUMERIC:return i.getBitsLength(e);case r.ALPHANUMERIC:return a.getBitsLength(e);case r.KANJI:return s.getBitsLength(e);case r.BYTE:return o.getBitsLength(e)}}function m(e,t){let n;let l=r.getBestModeForData(e);if((n=r.from(t,l))!==r.BYTE&&n.bit=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[]))},t.rawSplit=function(e){return t.fromArray(p(e,u.isKanjiModeEnabled()))}},10242:function(e,t){let n;let r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw Error('"version" cannot be null or undefined');if(e<1||e>40)throw Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return r[e]},t.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!=typeof e)throw Error('"toSJISFunc" is not a valid function.');n=e},t.isKanjiModeEnabled=function(){return void 0!==n},t.toSJIS=function(e){return n(e)}},43114:function(e,t){t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},23103:function(e,t,n){let r=n(10242),i=n(35393),a=n(64908),o=n(76910),s=n(43114),l=r.getBCHDigit(7973);function u(e,t){return o.getCharCountIndicator(e,t)+4}t.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,n){if(!s.isValid(e))throw Error("Invalid QR Code version");void 0===n&&(n=o.BYTE);let a=r.getSymbolTotalCodewords(e),l=i.getTotalCodewordsCount(e,t),c=(a-l)*8;if(n===o.MIXED)return c;let d=c-u(n,e);switch(n){case o.NUMERIC:return Math.floor(d/10*3);case o.ALPHANUMERIC:return Math.floor(d/11*2);case o.KANJI:return Math.floor(d/13);case o.BYTE:default:return Math.floor(d/8)}},t.getBestVersionForData=function(e,n){let r;let i=a.from(n,a.M);if(Array.isArray(e)){if(e.length>1)return function(e,n){for(let r=1;r<=40;r++){let i=function(e,t){let n=0;return e.forEach(function(e){let r=u(e.mode,t);n+=r+e.getBitsLength()}),n}(e,r);if(i<=t.getCapacity(r,n,o.MIXED))return r}}(e,i);if(0===e.length)return 1;r=e[0]}else r=e;return function(e,n,r){for(let i=1;i<=40;i++)if(n<=t.getCapacity(i,r,e))return i}(r.mode,r.getLength(),i)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw Error("Invalid QR Code version");let t=e<<12;for(;r.getBCHDigit(t)-l>=0;)t^=7973<':"",d="0&&u>0&&e[l-1]||(r+=o?a("M",u+n,.5+c+n):a("m",i,0),i=0,o=!1),u+1',h=o.width?'width="'+o.width+'" height="'+o.width+'" ':"",p=''+c+d+"\n";return"function"==typeof n&&n(null,p),p}},89653:function(e,t){function n(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw Error("Invalid hex color: "+e);(3===t.length||4===t.length)&&(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),6===t.length&&t.push("F","F");let n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});let t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;return{width:r,scale:r?4:i,margin:t,color:{dark:n(e.color.dark||"#000000ff"),light:n(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,n){let r=t.getScale(e,n);return Math.floor((e+2*n.margin)*r)},t.qrToImageData=function(e,n,r){let i=n.modules.size,a=n.modules.data,o=t.getScale(i,r),s=Math.floor((i+2*r.margin)*o),l=r.margin*o,u=[r.color.light,r.color.dark];for(let t=0;t=l&&n>=l&&t=Number.MAX_SAFE_INTEGER);n++)t+=e.charCodeAt(n);return t}(o.seed);else if(void 0!==o.seed&&null!==o.seed)throw TypeError("The seed value must be an integer or string");else e=null;if(null!==o.count&&void 0!==o.count){for(var c,d,h,p=o.count,f=[],m=0;mf.length;){var g=r(o);null!==e&&(o.seed=e),f.push(g)}return o.count=p,f}return d=function(e,t){if("monochrome"===t.hue)return 0;if("random"===t.luminosity)return a([0,100]);var n=i(e).saturationRange,r=n[0],o=n[1];switch(t.luminosity){case"bright":r=55;break;case"dark":r=o-10;break;case"light":o=55}return a([r,o])}(c=function(e){if(n.length>0){var r=function(e){if(isNaN(e)){if("string"==typeof e){if(t[e]){var n=t[e];if(n.hueRange)return n.hueRange}else if(e.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i))return i(l(e)[0]).hueRange}}else{var r=parseInt(e);if(r<360&&r>0)return i(e).hueRange}return[0,360]}(e.hue),o=a(r),s=(r[1]-r[0])/n.length,u=parseInt((o-r[0])/s);!0===n[u]?u=(u+2)%n.length:n[u]=!0;var c=(r[0]+u*s)%359,d=(r[0]+(u+1)*s)%359;return(o=a(r=[c,d]))<0&&(o=360+o),o}var r=function(e){if("number"==typeof parseInt(e)){var n=parseInt(e);if(n<360&&n>0)return[n,n]}if("string"==typeof e){if(t[e]){var r=t[e];if(r.hueRange)return r.hueRange}else if(e.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i)){var i=l(e)[0];return[i,i]}}return[0,360]}(e.hue);return(o=a(r))<0&&(o=360+o),o}(o),o),h=function(e,t,n){var r=function(e,t){for(var n=i(e).lowerBounds,r=0;r=a&&t<=s){var u=(l-o)/(s-a),c=o-u*a;return u*t+c}}return 0}(e,t),o=100;switch(n.luminosity){case"dark":o=r+20;break;case"light":r=(o+r)/2;break;case"random":r=0,o=100}return a([r,o])}(c,d,o),function(e,t){switch(t.format){case"hsvArray":return e;case"hslArray":return u(e);case"hsl":var n=u(e);return"hsl("+n[0]+", "+n[1]+"%, "+n[2]+"%)";case"hsla":var r=u(e),i=t.alpha||Math.random();return"hsla("+r[0]+", "+r[1]+"%, "+r[2]+"%, "+i+")";case"rgbArray":return s(e);case"rgb":return"rgb("+s(e).join(", ")+")";case"rgba":var a=s(e),i=t.alpha||Math.random();return"rgba("+a.join(", ")+", "+i+")";default:return function(e){var t=s(e);function n(e){var t=e.toString(16);return 1==t.length?"0"+t:t}return"#"+n(t[0])+n(t[1])+n(t[2])}(e)}}([c,d,h],o)};function i(e){for(var n in e>=334&&e<=360&&(e-=360),t){var r=t[n];if(r.hueRange&&e>=r.hueRange[0]&&e<=r.hueRange[1])return t[n]}return"Color not found"}function a(t){if(null===e){var n=Math.random();return n+=.618033988749895,n%=1,Math.floor(t[0]+n*(t[1]+1-t[0]))}var r=t[1]||1,i=t[0]||0;return Math.floor(i+(e=(9301*e+49297)%233280)/233280*(r-i))}function o(e,n,r){var i=r[0][0],a=r[r.length-1][0],o=r[r.length-1][1],s=r[0][1];t[e]={hueRange:n,lowerBounds:r,saturationRange:[i,a],brightnessRange:[o,s]}}function s(e){var t=e[0];0===t&&(t=1),360===t&&(t=359),t/=360;var n=e[1]/100,r=e[2]/100,i=Math.floor(6*t),a=6*t-i,o=r*(1-n),s=r*(1-a*n),l=r*(1-(1-a)*n),u=256,c=256,d=256;switch(i){case 0:u=r,c=l,d=o;break;case 1:u=s,c=r,d=o;break;case 2:u=o,c=r,d=l;break;case 3:u=o,c=s,d=r;break;case 4:u=l,c=o,d=r;break;case 5:u=r,c=o,d=s}return[Math.floor(255*u),Math.floor(255*c),Math.floor(255*d)]}function l(e){var t=parseInt((e=3===(e=e.replace(/^#/,"")).length?e.replace(/(.)/g,"$1$1"):e).substr(0,2),16)/255,n=parseInt(e.substr(2,2),16)/255,r=parseInt(e.substr(4,2),16)/255,i=Math.max(t,n,r),a=i-Math.min(t,n,r),o=i?a/i:0;switch(i){case t:return[60*((n-r)/a%6)||0,o,i];case n:return[60*((r-t)/a+2)||0,o,i];case r:return[60*((t-n)/a+4)||0,o,i]}}function u(e){var t=e[0],n=e[1]/100,r=e[2]/100,i=(2-n)*r;return[t,Math.round(n*r/(i<1?i:2-i)*1e4)/100,i/2*100]}return r}(),e&&e.exports&&(t=e.exports=r),t.randomColor=r},69921:function(e,t){"use strict";/** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. @@ -1814,8 +1814,8 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var r=n(67294),i=n(61688),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=i.useSyncExternalStore,s=r.useRef,l=r.useEffect,u=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(null===d.current){var h={hasValue:!1,value:null};d.current=h}else h=d.current;d=u(function(){function e(e){if(!l){if(l=!0,o=e,e=r(e),void 0!==i&&h.hasValue){var t=h.value;if(i(t,e))return s=t}return s=e}if(t=s,a(o,e))return t;var n=r(e);return void 0!==i&&i(t,n)?t:(o=e,s=n)}var o,s,l=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,n,r,i]);var p=o(e,d[0],d[1]);return l(function(){h.hasValue=!0,h.value=p},[p]),c(p),p}},61688:function(e,t,n){"use strict";e.exports=n(53250)},52798:function(e,t,n){"use strict";e.exports=n(50139)},10939:function(e,t,n){"use strict";e.exports=n(65905)},45442:function(e,t,n){"use strict";var r=n(28064),i=n(54228),a=n(48738);e.exports=l;var o={}.hasOwnProperty,s=["history","path","basename","stem","extname","dirname"];function l(e){var t,n;if(e){if("string"==typeof e||a(e))e={contents:e};else if("message"in e&&"messages"in e)return e}else e={};if(!(this instanceof l))return new l(e);for(this.data={},this.messages=[],this.history=[],this.cwd=i.cwd(),n=-1;++ns.indexOf(t)&&(this[t]=e[t])}function u(e,t){if(e&&e.indexOf(r.sep)>-1)throw Error("`"+t+"` cannot be a path: did not expect `"+r.sep+"`")}function c(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function d(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}l.prototype.toString=function(e){return(this.contents||"").toString(e)},Object.defineProperty(l.prototype,"path",{get:function(){return this.history[this.history.length-1]},set:function(e){c(e,"path"),this.path!==e&&this.history.push(e)}}),Object.defineProperty(l.prototype,"dirname",{get:function(){return"string"==typeof this.path?r.dirname(this.path):void 0},set:function(e){d(this.path,"dirname"),this.path=r.join(e||"",this.basename)}}),Object.defineProperty(l.prototype,"basename",{get:function(){return"string"==typeof this.path?r.basename(this.path):void 0},set:function(e){c(e,"basename"),u(e,"basename"),this.path=r.join(this.dirname||"",e)}}),Object.defineProperty(l.prototype,"extname",{get:function(){return"string"==typeof this.path?r.extname(this.path):void 0},set:function(e){if(u(e,"extname"),d(this.path,"extname"),e){if(46!==e.charCodeAt(0))throw Error("`extname` must start with `.`");if(e.indexOf(".",1)>-1)throw Error("`extname` cannot contain multiple dots")}this.path=r.join(this.dirname,this.stem+(e||""))}}),Object.defineProperty(l.prototype,"stem",{get:function(){return"string"==typeof this.path?r.basename(this.path,this.extname):void 0},set:function(e){c(e,"stem"),u(e,"stem"),this.path=r.join(this.dirname||"",e+(this.extname||""))}})},65905:function(e,t,n){"use strict";var r=n(97187),i=n(45442);e.exports=i,i.prototype.message=function(e,t,n){var i=new r(e,t,n);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i},i.prototype.info=function(){var e=this.message.apply(this,arguments);return e.fatal=null,e},i.prototype.fail=function(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e}},28064:function(e,t){"use strict";function n(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}t.basename=function(e,t){var r,i,a,o,s=0,l=-1;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');if(n(e),r=e.length,void 0===t||!t.length||t.length>e.length){for(;r--;)if(47===e.charCodeAt(r)){if(a){s=r+1;break}}else l<0&&(a=!0,l=r+1);return l<0?"":e.slice(s,l)}if(t===e)return"";for(i=-1,o=t.length-1;r--;)if(47===e.charCodeAt(r)){if(a){s=r+1;break}}else i<0&&(a=!0,i=r+1),o>-1&&(e.charCodeAt(r)===t.charCodeAt(o--)?o<0&&(l=r):(o=-1,l=i));return s===l?l=i:l<0&&(l=e.length),e.slice(s,l)},t.dirname=function(e){var t,r,i;if(n(e),!e.length)return".";for(t=-1,i=e.length;--i;)if(47===e.charCodeAt(i)){if(r){t=i;break}}else r||(r=!0);return t<0?47===e.charCodeAt(0)?"/":".":1===t&&47===e.charCodeAt(0)?"//":e.slice(0,t)},t.extname=function(e){var t,r,i,a=-1,o=0,s=-1,l=0;for(n(e),i=e.length;i--;){if(47===(r=e.charCodeAt(i))){if(t){o=i+1;break}continue}s<0&&(t=!0,s=i+1),46===r?a<0?a=i:1!==l&&(l=1):a>-1&&(l=-1)}return a<0||s<0||0===l||1===l&&a===s-1&&a===o+1?"":e.slice(a,s)},t.join=function(){for(var e,t,r,i,a=-1;++a2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",a=0):a=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),o=l,s=0;continue}}else if(i.length){i="",a=0,o=l,s=0;continue}}t&&(i=i.length?i+"/..":"..",a=2)}else i.length?i+="/"+e.slice(o+1,l):i=e.slice(o+1,l),a=l-o-1;o=l,s=0}else 46===n&&s>-1?s++:s=-1}return i}(e,!t)).length||t||(r="."),r.length&&47===e.charCodeAt(e.length-1)&&(r+="/"),t?"/"+r:r)},t.sep="/"},54228:function(e,t){"use strict";t.cwd=function(){return"/"}},9315:function(e){"use strict";var t={}.hasOwnProperty;function n(e){return e&&"object"==typeof e||(e={}),i(e.line)+":"+i(e.column)}function r(e){return e&&"object"==typeof e||(e={}),n(e.start)+"-"+n(e.end)}function i(e){return e&&"number"==typeof e?e:1}e.exports=function(e){return e&&"object"==typeof e?t.call(e,"position")||t.call(e,"type")?r(e.position):t.call(e,"start")||t.call(e,"end")?r(e):t.call(e,"line")||t.call(e,"column")?n(e):"":""}},97187:function(e,t,n){"use strict";var r=n(9315);function i(){}e.exports=o,i.prototype=Error.prototype,o.prototype=new i;var a=o.prototype;function o(e,t,n){var i,a,o,s,l;"string"==typeof t&&(n=t,t=null),l=[null,null],"string"==typeof(o=n)&&(-1===(s=o.indexOf(":"))?l[1]=o:(l[0]=o.slice(0,s),l[1]=o.slice(s+1))),i=r(t)||"1:1",a={start:{line:null,column:null},end:{line:null,column:null}},t&&t.position&&(t=t.position),t&&(t.start?(a=t,t=t.start):a.start=t),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=i,this.reason=e,this.line=t?t.line:null,this.column=t?t.column:null,this.location=a,this.source=l[0],this.ruleId=l[1]}a.file="",a.name="",a.reason="",a.message="",a.stack="",a.fatal=null,a.column=null,a.line=null},42473:function(e){"use strict";e.exports=function(){}},47529:function(e){e.exports=function(){for(var e={},n=0;nt in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,h=(e,t)=>{for(var n in t||={})u.call(t,n)&&d(e,n,t[n]);if(l)for(var n of l(t))c.call(t,n)&&d(e,n,t[n]);return e},p=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),f=(0,r.createContext)({directives:{},Link:e=>(0,o.jsx)("a",h({},e)),router:{push:()=>p(void 0,null,function*(){return!1})},Head:()=>null,env:"production",saveFile:()=>()=>p(void 0,null,function*(){}),loadFile:()=>()=>p(void 0,null,function*(){return""}),makeUrl:()=>e=>e||"",getActivePageId:()=>p(void 0,null,function*(){return""}),config:{name:"Hyperbook"}}),m=({elements:e=[],children:t,Link:n,Head:r=()=>null,saveFile:s=()=>()=>p(void 0,null,function*(){}),loadFile:l=()=>()=>p(void 0,null,function*(){return""}),router:u,env:c="production",makeUrl:d=()=>e=>e||"",getActivePageId:m=()=>p(void 0,null,function*(){return""}),config:g={name:"Hyperbook"},storage:O})=>{let b={},y={};e.forEach(e=>{e.slice&&(b[e.slice.name]=e.slice.reducer),y=h(h({},y),e.directives)});let{store:v,persistor:x}=(0,a.n)(b,O);return(0,o.jsx)(i.zt,{store:v,children:(0,o.jsx)(f.Provider,{value:{directives:y,router:u,Link:n,Head:r,saveFile:s,loadFile:l,makeUrl:d,getActivePageId:m,config:g,env:c},children:t})})},g=()=>{let e=(0,r.useContext)(f);return e.env},O=(e,t)=>{let n=(0,i.I0)(),[r]=y(),o=`${r}#${e}`,s=(0,i.v9)((0,a.EU)(o));return[(null==s?void 0:s.active)||!1,()=>{n(a.bV.actions.toggle({key:o,label:t}))}]},b=()=>{let e=(0,i.v9)(e=>e.bookmarks);return Object.entries(e).map(([e,t])=>h({href:e},t)).filter(e=>e.active)},y=(e=!0)=>{let t=(0,r.useContext)(f),n=(0,i.I0)(),o=(0,i.v9)(a.Dg),s=e=>{n(a.Uw.actions.set(e))};return(0,r.useEffect)(()=>{e&&t.getActivePageId().then(s).catch(()=>{})},[e]),[o,s]},v=()=>{let e=(0,r.useContext)(f);return e.config},x=()=>{let e=(0,r.useContext)(f);return e.Link},T=()=>{let e=(0,r.useContext)(f);return e.Head},k=()=>{let e=(0,r.useContext)(f);return e.router},_=()=>{let e=(0,r.useContext)(f);return e.directives},S=()=>{let e=(0,r.useContext)(f);return e.makeUrl(e.config)},w=()=>{let e=(0,r.useContext)(f);return[e.loadFile(e.config),e.saveFile(e.config)]};function E(){let[e,t]=(0,r.useState)("light");return(0,r.useEffect)(()=>{if(!window.matchMedia){t("light");return}let e=window.matchMedia("(prefers-color-scheme: dark)");function n(e){t(e.matches?"dark":"light")}return t(e.matches?"dark":"light"),e.addEventListener("change",n),()=>{e.removeEventListener("change",n)}},[]),[e]}},55495:function(e,t,n){"use strict";n.d(t,{Uw:function(){return nI},bV:function(){return nL},oM:function(){return tD},Xb:function(){return nR},n:function(){return nQ},Dg:function(){return nN},EU:function(){return nD}});var r,i,a,o,s,l,u,c={};n.r(c),n.d(c,{__DO_NOT_USE__ActionTypes:function(){return O},applyMiddleware:function(){return _},bindActionCreators:function(){return T},combineReducers:function(){return v},compose:function(){return k},createStore:function(){return b},legacy_createStore:function(){return y}});var d=n(81180);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:W,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case P:return z({},e,{registry:[].concat(U(e.registry),[t.key])});case E:var n=e.registry.indexOf(t.key),r=U(e.registry);return r.splice(n,1),z({},e,{registry:r,bootstrapped:0===r.length});default:return e}},q=n(67294),G=n(83454),H=Object.defineProperty,Y=Object.getOwnPropertyDescriptor,X=Object.getOwnPropertyNames,V=Object.getOwnPropertySymbols,K=Object.prototype.hasOwnProperty,J=Object.prototype.propertyIsEnumerable,ee=(e,t,n)=>t in e?H(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,et=(e,t)=>{for(var n in t||={})K.call(t,n)&&ee(e,n,t[n]);if(V)for(var n of V(t))J.call(t,n)&&ee(e,n,t[n]);return e},en=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of X(t))K.call(e,i)||i===n||H(e,i,{get:()=>t[i],enumerable:!(r=Y(t,i))||r.enumerable});return e},er=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),ei={};function ea(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:ef(e)?2:em(e)?3:0}function ed(e,t){return 2===ec(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function eh(e,t,n){var r=ec(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function ep(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function ef(e){return eB&&e instanceof Map}function em(e){return eU&&e instanceof Set}function eg(e){return e.o||e.t}function eO(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=eY(e);delete t[eZ];for(var n=eH(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=ey),Object.freeze(e),t&&eu(e,function(e,t){return eb(t,!0)},!0)),e}function ey(){ea(2)}function ev(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function ex(e){var t=eX[e];return t||ea(18,e),t}function eT(){return o||ea(0),o}function ek(e,t){t&&(ex("Patches"),e.u=[],e.s=[],e.v=t)}function e_(e){eS(e),e.p.forEach(eE),e.p=null}function eS(e){e===o&&(o=e.l)}function ew(e){return o={p:[],l:o,h:e,m:!0,_:0}}function eE(e){var t=e[eZ];0===t.i||1===t.i?t.j():t.g=!0}function eC(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.O||ex("ES5").S(t,e,r),r?(n[eZ].P&&(e_(t),ea(4)),es(e)&&(e=eA(t,e),t.l||eP(t,e)),t.u&&ex("Patches").M(n[eZ].t,e,t.u,t.s)):e=eA(t,n,[]),e_(t),t.u&&t.v(t.u,t.s),e!==ez?e:void 0}function eA(e,t,n){if(ev(t))return t;var r=t[eZ];if(!r)return eu(t,function(i,a){return eR(e,r,t,i,a,n)},!0),t;if(r.A!==e)return t;if(!r.P)return eP(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=eO(r.k):r.o,a=i,o=!1;3===r.i&&(a=new Set(i),i.clear(),o=!0),eu(a,function(t,a){return eR(e,r,i,t,a,n,o)}),eP(e,i,!1),n&&e.u&&ex("Patches").N(r,n,e.u,e.s)}return r.o}function eR(e,t,n,r,i,a,o){if(i===n&&ea(5),eo(i)){var s=eA(e,i,a&&t&&3!==t.i&&!ed(t.R,r)?a.concat(r):void 0);if(eh(n,r,s),!eo(s))return;e.m=!1}else o&&n.add(i);if(es(i)&&!ev(i)){if(!e.h.D&&e._<1)return;eA(e,i),t&&t.A.l||eP(e,i)}}function eP(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&eb(t,n)}function eI(e,t){var n=e[eZ];return(n?eg(n):e)[t]}function eN(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function e$(e){e.P||(e.P=!0,e.l&&e$(e.l))}function eL(e){e.o||(e.o=eO(e.t))}function eD(e,t,n){var r,i,a,o,s,l,u,c=ef(t)?ex("MapSet").F(t,n):em(t)?ex("MapSet").T(t,n):e.O?(a=i={i:(r=Array.isArray(t))?1:0,A:n?n.A:eT(),P:!1,I:!1,R:{},l:n,t:t,k:null,o:null,j:null,C:!1},o=eV,r&&(a=[i],o=eK),l=(s=Proxy.revocable(a,o)).revoke,u=s.proxy,i.k=u,i.j=l,u):ex("ES5").J(t,n);return(n?n.A:eT()).p.push(c),c}function eQ(e){return eo(e)||ea(22,e),function e(t){if(!es(t))return t;var n,r=t[eZ],i=ec(t);if(r){if(!r.P&&(r.i<4||!ex("ES5").K(r)))return r.t;r.I=!0,n=eM(t,i),r.I=!1}else n=eM(t,i);return eu(n,function(t,i){var a;r&&(2===ec(a=r.t)?a.get(t):a[t])===i||eh(n,t,e(i))}),3===i?new Set(n):n}(e)}function eM(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return eO(e)}((e,t)=>{for(var n in t)H(e,n,{get:t[n],enumerable:!0})})(ei,{EnhancerArray:()=>tm,MiddlewareArray:()=>tf,SHOULD_AUTOBATCH:()=>nx,TaskAbortError:()=>ni,addListener:()=>ng,autoBatchEnhancer:()=>nw,clearAllListeners:()=>nO,configureStore:()=>tw,createAction:()=>tE,createAsyncThunk:()=>tH,createDraftSafeSelector:()=>tc,createEntityAdapter:()=>tj,createImmutableStateInvariantMiddleware:()=>tv,createListenerMiddleware:()=>nv,createNextState:()=>e0,createReducer:()=>t$,createSelector:()=>e9,createSerializableStateInvariantMiddleware:()=>tk,createSlice:()=>tD,current:()=>eQ,findNonSerializableValue:()=>tT,freeze:()=>eb,getDefaultMiddleware:()=>tS,getType:()=>tP,isAction:()=>tC,isAllOf:()=>tK,isAnyOf:()=>tV,isAsyncThunkAction:()=>function e(){for(var t=[],n=0;neo,isFluxStandardAction:()=>tA,isFulfilled:()=>function e(){for(var t=[],n=0;ntb,isPending:()=>function e(){for(var t=[],n=0;ntx,isPlainObject:()=>th,isRejected:()=>t0,isRejectedWithValue:()=>function e(){for(var t=[],n=0;ntG,nanoid:()=>tz,original:()=>el,prepareAutoBatched:()=>nT,removeListener:()=>nb,unwrapResult:()=>tY});var eF="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),eB="undefined"!=typeof Map,eU="undefined"!=typeof Set,ej="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,ez=eF?Symbol.for("immer-nothing"):((a={})["immer-nothing"]=!0,a),eW=eF?Symbol.for("immer-draftable"):"__$immer_draftable",eZ=eF?Symbol.for("immer-state"):"__$immer_state",eq={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},eG=""+Object.prototype.constructor,eH="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,eY=Object.getOwnPropertyDescriptors||function(e){var t={};return eH(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},eX={},eV={get:function(e,t){if(t===eZ)return e;var n,r,i=eg(e);if(!ed(i,t))return(r=eN(i,t))?"value"in r?r.value:null===(n=r.get)||void 0===n?void 0:n.call(e.k):void 0;var a=i[t];return e.I||!es(a)?a:a===eI(e.t,t)?(eL(e),e.o[t]=eD(e.A.h,a,e)):a},has:function(e,t){return t in eg(e)},ownKeys:function(e){return Reflect.ownKeys(eg(e))},set:function(e,t,n){var r=eN(eg(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=eI(eg(e),t),a=null==i?void 0:i[eZ];if(a&&a.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(ep(n,i)&&(void 0!==n||ed(e.t,t)))return!0;eL(e),e$(e)}return e.o[t]===n&&(void 0!==n||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==eI(e.t,t)||t in e.t?(e.R[t]=!1,eL(e),e$(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=eg(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){ea(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){ea(12)}},eK={};eu(eV,function(e,t){eK[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),eK.deleteProperty=function(e,t){return isNaN(parseInt(t))&&ea(13),eK.set.call(this,e,t,void 0)},eK.set=function(e,t,n){return"length"!==t&&isNaN(parseInt(t))&&ea(14),eV.set.call(this,e[0],t,n,e[0])};var eJ=new(function(){function e(e){var t=this;this.O=ej,this.D=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var i,a=n;return n=e,function(e){var r=this;void 0===e&&(e=a);for(var i=arguments.length,o=Array(i>1?i-1:0),s=1;s1?r-1:0),a=1;a=0;n--){var n,r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var i=ex("Patches").$;return eo(e)?i(e,t):this.produce(e,function(e){return i(e,t)})},e}()),e1=eJ.produce;eJ.produceWithPatches.bind(eJ),eJ.setAutoFreeze.bind(eJ),eJ.setUseProxies.bind(eJ),eJ.applyPatches.bind(eJ),eJ.createDraft.bind(eJ),eJ.finishDraft.bind(eJ);var e0=e1;en(ei,c,"default"),r&&en(r,c,"default");var e2="NOT_FOUND",e5=function(e,t){return e===t},e9=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r-1){var i=n[r];return r>0&&(n.splice(r,1),n.unshift(i)),i.value}return e2}return{get:r,put:function(t,i){r(t)===e2&&(n.unshift({key:t,value:i}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(s,u);function d(){var t=c.get(arguments);if(t===e2){if(t=e.apply(null,arguments),l){var n=c.getEntries().find(function(e){return l(e.value,t)});n&&(t=n.value)}c.put(arguments,t)}return t}return d.clearCache=function(){return c.clear()},d});function e4(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(i){return"function"==typeof i?i(n,r,e):t(i)}}}}var e3=e4();e3.withExtraArgument=e4;var e8=(i=function(e,t){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),e6=function(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]e&&console.warn(t+" took "+n+"ms, which is more than the warning threshold of "+e+"ms. \nIf your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.\nIt is disabled in production builds, so you don't need to worry about that.")}}}"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var tf=function(e){function t(){for(var n=[],r=0;r0;for(var c in u){var h=function(a){var s=o?o+"."+a:a;if(d&&n.some(function(e){return e instanceof RegExp?e.test(s):s===e}))return"continue";var u=e(t,n,r.children[a],i[a],l,s);if(u.wasMutated)return{value:u}}(c);if("object"==typeof h)return h.value}return{wasMutated:!1}}(e,t,r,n)}}}function tv(e){void 0===e&&(e={});var t=e.isImmutable,n=void 0===t?tb:t,r=e.ignoredPaths,i=e.warnAfter,a=void 0===i?32:i,o=e.ignore;r=r||o;var s=ty.bind(null,n,r);return function(e){var t,n=e.getState,r=n(),i=s(r);return function(e){return function(o){var l=tp(a,"ImmutableStateInvariantMiddleware");l.measureTime(function(){r=n(),t=i.detectMutations(),i=s(r),tO(!t.wasMutated,"A state mutation was detected between dispatches, in the path '"+(t.path||"")+"'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")});var u=e(o);return l.measureTime(function(){var e,a,l,u;r=n(),t=i.detectMutations(),i=s(r),t.wasMutated&&tO(!t.wasMutated,"A state mutation was detected inside a dispatch, in the path: "+(t.path||"")+". Take a look at the reducer(s) handling the action "+JSON.stringify(o,(e=void 0,l=[],u=[],a=void 0,a=function(e,t){return l[0]===t?"[Circular ~]":"[Circular ~."+u.slice(0,l.indexOf(t)).join(".")+"]"},function(t,n){if(l.length>0){var r=l.indexOf(this);~r?l.splice(r+1):l.push(this),~r?u.splice(r,1/0,t):u.push(t),~l.indexOf(n)&&(n=a.call(this,t,n))}else l.push(n);return null==e?n:e.call(this,t,n)}),void 0)+". (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")}),l.warnIfExceeded(),u}}}}function tx(e){var t=typeof e;return null==e||"string"===t||"boolean"===t||"number"===t||Array.isArray(e)||th(e)}function tT(e,t,n,r,i,a){if(void 0===t&&(t=""),void 0===n&&(n=tx),void 0===i&&(i=[]),!n(e))return{keyPath:t||"",value:e};if("object"!=typeof e||null===e||(null==a?void 0:a.has(e)))return!1;for(var o,s=null!=r?r(e):Object.entries(e),l=i.length>0,u=0;u-1}function tP(e){return""+e}function tI(e){var t,n={},r=[],i={addCase:function(e,a){if(r.length>0)throw Error("`builder.addCase` should only be called before calling `builder.addMatcher`");if(t)throw Error("`builder.addCase` should only be called before calling `builder.addDefaultCase`");var o="string"==typeof e?e:e.type;if(o in n)throw Error("addCase cannot be called with two reducers for the same action type");return n[o]=a,i},addMatcher:function(e,n){if(t)throw Error("`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return r.push({matcher:e,reducer:n}),i},addDefaultCase:function(e){if(t)throw Error("`builder.addDefaultCase` can only be called once");return t=e,i}};return e(i),[n,r,t]}var tN=!1;function t$(e,t,n,r){void 0===n&&(n=[]),"object"!=typeof t||tN||(tN=!0,console.warn("The object notation for `createReducer` is deprecated, and will be removed in RTK 2.0. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer"));var i,a="function"==typeof t?tI(t):[t,n,r],o=a[0],s=a[1],l=a[2];if("function"==typeof e)i=function(){return tg(e())};else{var u=tg(e);i=function(){return u}}function c(e,t){void 0===e&&(e=i());var n=e7([o[t.type]],s.filter(function(e){return(0,e.matcher)(t)}).map(function(e){return e.reducer}));return 0===n.filter(function(e){return!!e}).length&&(n=[l]),n.reduce(function(e,n){if(n){if(eo(e)){var r=n(e,t);return void 0===r?e:r}if(es(e))return e0(e,function(e){return n(e,t)});var r=n(e,t);if(void 0===r){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return e},e)}return c.getInitialState=i,c}var tL=!1;function tD(e){var t,n=e.name;if(!n)throw Error("`name` is a required option for createSlice");void 0!==G&&void 0===e.initialState&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");var r="function"==typeof e.initialState?e.initialState:tg(e.initialState),i=e.reducers||{},a=Object.keys(i),o={},s={},l={};function u(){"object"!=typeof e.extraReducers||tL||(tL=!0,console.warn("The object notation for `createSlice.extraReducers` is deprecated, and will be removed in RTK 2.0. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice"));var t="function"==typeof e.extraReducers?tI(e.extraReducers):[e.extraReducers],n=t[0],i=t[1],a=void 0===i?[]:i,o=t[2],l=void 0===o?void 0:o,u=ts(ts({},void 0===n?{}:n),s);return t$(r,function(e){for(var t in u)e.addCase(t,u[t]);for(var n=0;n0&&t.filter(function(t){var i,a,o;return(o=(a=tM(i=Object.assign({},n.entities[t.id],t.changes),e))!==t.id)&&(r[t.id]=a,delete n.entities[t.id]),n.entities[a]=i,o}).length>0&&(n.ids=Object.keys(n.entities))}function l(t,n){var r=tB(t,e,n),a=r[0];s(r[1],n),i(a,n)}return{removeAll:(t=function(e){Object.assign(e,{ids:[],entities:{}})},n=tQ(function(e,n){return t(n)}),function(e){return n(e,void 0)}),addOne:tQ(r),addMany:tQ(i),setOne:tQ(a),setMany:tQ(function(e,t){e=tF(e);for(var n=0,r=e;n-1;return n&&r}function t1(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function t0(){for(var e=[],t=0;t0)for(var h=e.getState(),p=Array.from(n.values()),f=0;f=0;t--){var i=e[t][eZ];if(!i.P)switch(i.i){case 5:r(i)&&e$(i);break;case 4:n(i)&&e$(i)}}}function n(e){for(var t=e.t,n=e.k,r=eH(n),i=r.length-1;i>=0;i--){var a=r[i];if(a!==eZ){var o=t[a];if(void 0===o&&!ed(t,a))return!0;var s=n[a],l=s&&s[eZ];if(l?l.t!==o:!ep(s,o))return!0}}var u=!!t[eZ];return r.length!==eH(t).length+(u?0:1)}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var r=0;rnew Promise(n=>{n(t.getItem(e))}),setItem:(e,n)=>new Promise(r=>{r(t.setItem(e,n))}),removeItem:e=>new Promise(n=>{n(t.removeItem(e))})}}var nR=nA("local");nA("session"),(class extends q.PureComponent{constructor(){super(...arguments),this.state={bootstrapped:!1},this.handlePersistorState=()=>{let{persistor:e}=this.props,{bootstrapped:t}=e.getState();t&&(this.props.onBeforeLift?Promise.resolve(this.props.onBeforeLift()).finally(()=>this.setState({bootstrapped:!0})):this.setState({bootstrapped:!0}),this._unsubscribe&&this._unsubscribe())}}componentDidMount(){this._unsubscribe=this.props.persistor.subscribe(this.handlePersistorState),this.handlePersistorState()}componentWillUnmount(){this._unsubscribe&&this._unsubscribe()}render(){return"function"==typeof this.props.children?this.props.children(this.state.bootstrapped):this.state.bootstrapped?this.props.children:this.props.loading}}).defaultProps={children:null,loading:null};var{createSlice:nP}=null!=(l=ei.default)?l:ei,nI=nP({name:"activePage",initialState:{id:""},reducers:{set:(e,t)=>{e.id=t.payload}}}),nN=e=>e[nI.name].id,{createSlice:n$}=null!=(u=ei.default)?u:ei,nL=n$({name:"bookmarks",initialState:{},reducers:{toggle:(e,t)=>{let{key:n,label:r}=t.payload;e[n]&&e[n].active?e[n]={label:r,active:!1}:e[n]={label:r,active:!0}}}}),nD=e=>t=>t[nL.name][e],nQ=(e,t=nC)=>{var n,r,i,a,o,s,l,u,c,d,h,p,f,m,g,O;let y=tw({reducer:(n={key:"hyperbook",storage:t},r=v(et({[nI.name]:nI.reducer,[nL.name]:nL.reducer},e)),i=void 0!==n.version?n.version:-1,n.debug,a=void 0===n.stateReconciler?$:n.stateReconciler,o=n.getStoredState||D,s=void 0!==n.timeout?n.timeout:5e3,l=null,u=!1,c=!0,d=function(e){return e._persist.rehydrated&&l&&!c&&l.update(e),e},function(e,t){var h,p,f=e||{},m=f._persist,g=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(f,["_persist"]);if(t.type===A){var O=!1,b=function(e,r){O||(t.rehydrate(n.key,e,r),O=!0)};if(s&&setTimeout(function(){O||b(void 0,Error('redux-persist: persist timed out for persist key "'.concat(n.key,'"')))},s),c=!1,l||(l=function(e){var t,n=e.blacklist||null,r=e.whitelist||null,i=e.transforms||[],a=e.throttle||0,o="".concat(void 0!==e.keyPrefix?e.keyPrefix:S).concat(e.key),s=e.storage;t=!1===e.serialize?function(e){return e}:"function"==typeof e.serialize?e.serialize:L;var l=e.writeFailHandler||null,u={},c={},d=[],h=null,p=null;function f(){if(0===d.length){h&&clearInterval(h),h=null;return}var e=d.shift(),n=i.reduce(function(t,n){return n.in(t,e,u)},u[e]);if(void 0!==n)try{c[e]=t(n)}catch(e){console.error("redux-persist/createPersistoid: error serializing state",e)}else delete c[e];0===d.length&&(Object.keys(c).forEach(function(e){void 0===u[e]&&delete c[e]}),p=s.setItem(o,t(c)).catch(g))}function m(e){return(!r||-1!==r.indexOf(e)||"_persist"===e)&&(!n||-1===n.indexOf(e))}function g(e){l&&l(e)}return{update:function(e){Object.keys(e).forEach(function(t){m(t)&&u[t]!==e[t]&&-1===d.indexOf(t)&&d.push(t)}),Object.keys(u).forEach(function(t){void 0===e[t]&&m(t)&&-1===d.indexOf(t)&&void 0!==u[t]&&d.push(t)}),null===h&&(h=setInterval(f,a)),u=e},flush:function(){for(;0!==d.length;)f();return p||Promise.resolve()}}}(n)),m)return B({},r(g,t),{_persist:m});if("function"!=typeof t.rehydrate||"function"!=typeof t.register)throw Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return t.register(n.key),o(n).then(function(e){(n.migrate||function(e,t){return Promise.resolve(e)})(e,i).then(function(e){b(e)},function(e){b(void 0,e)})},function(e){b(void 0,e)}),B({},r(g,t),{_persist:{version:i,rehydrated:!1}})}if(t.type===R)return u=!0,t.result((h=n.storage,p="".concat(void 0!==n.keyPrefix?n.keyPrefix:S).concat(n.key),h.removeItem(p,M))),B({},r(g,t),{_persist:m});if(t.type===w)return t.result(l&&l.flush()),B({},r(g,t),{_persist:m});if(t.type===C)c=!0;else if(t.type===E){if(u)return B({},g,{_persist:B({},m,{rehydrated:!0})});if(t.key===n.key){var y=r(g,t),v=t.payload;return d(B({},!1!==a&&void 0!==v?a(v,e,y,n):y,{_persist:B({},m,{rehydrated:!0})}))}}if(!m)return r(e,t);var x=r(g,t);return x===g?e:d(B({},x,{_persist:m}))}),middleware:e=>e({serializableCheck:!1})}),x=(p=!1,f=b(Z,W,h&&h.enhancer?h.enhancer:void 0),m=function(e){f.dispatch({type:P,key:e})},g=function(e,t,n){var r={type:E,payload:t,err:n,key:e};y.dispatch(r),f.dispatch(r),p&&O.getState().bootstrapped&&(p(),p=!1)},O=z({},f,{purge:function(){var e=[];return y.dispatch({type:R,result:function(t){e.push(t)}}),Promise.all(e)},flush:function(){var e=[];return y.dispatch({type:w,result:function(t){e.push(t)}}),Promise.all(e)},pause:function(){y.dispatch({type:C})},persist:function(){y.dispatch({type:A,register:m,rehydrate:g})}}),h&&h.manualPersist||O.persist(),O);return{store:y,persistor:x}}},64777:function(e,t,n){"use strict";function r(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}n.d(t,{w:function(){return r}})},38077:function(e,t,n){"use strict";function r(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n=i)&&(n=i)}return n}function i(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function a(e){return e}function o(e){return"translate("+e+",0)"}function s(e){return"translate(0,"+e+")"}function l(e){return t=>+e(t)}function u(e,t){return t=Math.max(0,e.bandwidth()-2*t)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function c(){return!this.__axis}function d(e,t){var n=[],r=null,i=null,d=6,h=6,p=3,f="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,m=1===e||4===e?-1:1,g=4===e||2===e?"x":"y",O=1===e||3===e?o:s;function b(o){var s=null==r?t.ticks?t.ticks.apply(t,n):t.domain():r,b=null==i?t.tickFormat?t.tickFormat.apply(t,n):a:i,y=Math.max(d,0)+p,v=t.range(),x=+v[0]+f,T=+v[v.length-1]+f,k=(t.bandwidth?u:l)(t.copy(),f),_=o.selection?o.selection():o,S=_.selectAll(".domain").data([null]),w=_.selectAll(".tick").data(s,t).order(),E=w.exit(),C=w.enter().append("g").attr("class","tick"),A=w.select("line"),R=w.select("text");S=S.merge(S.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),w=w.merge(C),A=A.merge(C.append("line").attr("stroke","currentColor").attr(g+"2",m*d)),R=R.merge(C.append("text").attr("fill","currentColor").attr(g,m*y).attr("dy",1===e?"0em":3===e?"0.71em":"0.32em")),o!==_&&(S=S.transition(o),w=w.transition(o),A=A.transition(o),R=R.transition(o),E=E.transition(o).attr("opacity",1e-6).attr("transform",function(e){return isFinite(e=k(e))?O(e+f):this.getAttribute("transform")}),C.attr("opacity",1e-6).attr("transform",function(e){var t=this.parentNode.__axis;return O((t&&isFinite(t=t(e))?t:k(e))+f)})),E.remove(),S.attr("d",4===e||2===e?h?"M"+m*h+","+x+"H"+f+"V"+T+"H"+m*h:"M"+f+","+x+"V"+T:h?"M"+x+","+m*h+"V"+f+"H"+T+"V"+m*h:"M"+x+","+f+"H"+T),w.attr("opacity",1).attr("transform",function(e){return O(k(e)+f)}),A.attr(g+"2",m*d),R.attr(g,m*y).text(b),_.filter(c).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===e?"start":4===e?"end":"middle"),_.each(function(){this.__axis=k})}return b.scale=function(e){return arguments.length?(t=e,b):t},b.ticks=function(){return n=Array.from(arguments),b},b.tickArguments=function(e){return arguments.length?(n=null==e?[]:Array.from(e),b):n.slice()},b.tickValues=function(e){return arguments.length?(r=null==e?null:Array.from(e),b):r&&r.slice()},b.tickFormat=function(e){return arguments.length?(i=e,b):i},b.tickSize=function(e){return arguments.length?(d=h=+e,b):d},b.tickSizeInner=function(e){return arguments.length?(d=+e,b):d},b.tickSizeOuter=function(e){return arguments.length?(h=+e,b):h},b.tickPadding=function(e){return arguments.length?(p=+e,b):p},b.offset=function(e){return arguments.length?(f=+e,b):f},b}function h(e){return d(1,e)}function p(e){return d(3,e)}function f(){}function m(e){return null==e?f:function(){return this.querySelector(e)}}function g(e){return null==e?[]:Array.isArray(e)?e:Array.from(e)}function O(){return[]}function b(e){return null==e?O:function(){return this.querySelectorAll(e)}}function y(e){return function(){return this.matches(e)}}function v(e){return function(t){return t.matches(e)}}n.d(t,{Nb1:function(){return ak},LLu:function(){return p},F5q:function(){return h},$0Z:function(){return aD},Dts:function(){return aM},WQY:function(){return aB},qpX:function(){return aj},u93:function(){return az},tFB:function(){return aZ},YY7:function(){return aH},OvA:function(){return aX},dCK:function(){return aK},zgE:function(){return a0},fGX:function(){return a5},$m7:function(){return a4},c_6:function(){return aw},fxm:function(){return a8},FdL:function(){return oi},ak_:function(){return oa},SxZ:function(){return ol},eA_:function(){return oc},jsv:function(){return oh},iJ:function(){return od},JHv:function(){return nw},jvg:function(){return aA},Fp7:function(){return r},VV$:function(){return i},ve8:function(){return aI},BYU:function(){return function e(){var t,n=nK();return n.copy=function(){return nV(n,e())},nJ.apply(n,arguments),t=n.domain,n.ticks=function(e){var n=t();return function(e,t,n){if(t=+t,e=+e,!((n=+n)>0))return[];if(e===t)return[e];let r=t=i))return[];let s=a-i+1,l=Array(s);if(r){if(o<0)for(let e=0;e0;){if((i=nP(l,u,e))===r)return a[o]=l,a[s]=u,t(a);if(i>0)l=Math.floor(l/i)*i,u=Math.ceil(u/i)*i;else if(i<0)l=Math.ceil(l*i)/i,u=Math.floor(u*i)/i;else break;r=i}return n},n}},PKp:function(){return function e(){var t=new re,n=[],r=[],i=rr;function a(e){let a=t.get(e);if(void 0===a){if(i!==rr)return i;t.set(e,a=n.push(e)-1)}return r[a%r.length]}return a.domain=function(e){if(!arguments.length)return n.slice();for(let r of(n=[],t=new re,e))t.has(r)||t.set(r,n.push(r)-1);return a},a.range=function(e){return arguments.length?(r=Array.from(e),a):r.slice()},a.unknown=function(e){return arguments.length?(i=e,a):i},a.copy=function(){return e(n,r).unknown(i)},nJ.apply(a,arguments),a}},Xf:function(){return i4},K2I:function(){return i3},Ys:function(){return i8},td_:function(){return i6},YPS:function(){return nu},rr1:function(){return rO},i$Z:function(){return eL},y2j:function(){return rw},WQD:function(){return rm},U8T:function(){return rd},Z_i:function(){return rp},Ox9:function(){return rT},F0B:function(){return rD},LqH:function(){return rE},S1K:function(){return rh},Zyz:function(){return rx},Igq:function(){return rS},YDX:function(){return rk},EFj:function(){return r_}});var x=Array.prototype.find;function T(){return this.firstElementChild}var k=Array.prototype.filter;function _(){return Array.from(this.children)}function S(e){return Array(e.length)}function w(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function E(e,t,n,r,i,a){for(var o,s=0,l=t.length,u=a.length;st?1:e>=t?0:NaN}w.prototype={constructor:w,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var P="http://www.w3.org/1999/xhtml",I={svg:"http://www.w3.org/2000/svg",xhtml:P,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function N(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),I.hasOwnProperty(t)?{space:I[t],local:e}:e}function $(e){return function(){this.removeAttribute(e)}}function L(e){return function(){this.removeAttributeNS(e.space,e.local)}}function D(e,t){return function(){this.setAttribute(e,t)}}function Q(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function M(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function F(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function B(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function U(e){return function(){this.style.removeProperty(e)}}function j(e,t,n){return function(){this.style.setProperty(e,t,n)}}function z(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function W(e,t){return e.style.getPropertyValue(t)||B(e).getComputedStyle(e,null).getPropertyValue(t)}function Z(e){return function(){delete this[e]}}function q(e,t){return function(){this[e]=t}}function G(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function H(e){return e.trim().split(/^|\s+/)}function Y(e){return e.classList||new X(e)}function X(e){this._node=e,this._names=H(e.getAttribute("class")||"")}function V(e,t){for(var n=Y(e),r=-1,i=t.length;++rthis._names.indexOf(e)&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var eT=[null];function ek(e,t){this._groups=e,this._parents=t}function e_(){return new ek([[document.documentElement]],eT)}ek.prototype=e_.prototype={constructor:ek,select:function(e){"function"!=typeof e&&(e=m(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i=T&&(T=x+1);!(v=g[T])&&++T=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=R);for(var n=this._groups,r=n.length,i=Array(r),a=0;a1?this.each((null==t?U:"function"==typeof t?z:j)(e,t,null==n?"":n)):W(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?Z:"function"==typeof t?G:q)(e,t)):this.node()[e]},classed:function(e,t){var n=H(e+"");if(arguments.length<2){for(var r=Y(this.node()),i=-1,a=n.length;++i=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}),o=a.length;if(arguments.length<2){var s=this.node().__on;if(s){for(var l,u=0,c=s.length;u{}};function ew(){for(var e,t=0,n=arguments.length,r={};t=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!r.hasOwnProperty(e))throw Error("unknown type: "+e);return{type:e,name:t}}),a=-1,o=i.length;if(arguments.length<2){for(;++a0)for(var n,r,i=Array(n),a=0;a=0&&t._call.call(void 0,e),t=t._next;--eM}()}finally{eM=0,function(){for(var e,t,n=eD,r=1/0;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:eD=t);eQ=e,eK(r)}(),ej=0}}function eV(){var e=eW.now(),t=e-eU;t>1e3&&(ez-=t,eU=e)}function eK(e){!eM&&(eF&&(eF=clearTimeout(eF)),e-ej>24?(e<1/0&&(eF=setTimeout(eX,e-eW.now()-ez)),eB&&(eB=clearInterval(eB))):(eB||(eU=eW.now(),eB=setInterval(eV,1e3)),eM=1,eZ(eX)))}function eJ(e,t,n){var r=new eH;return t=null==t?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}eH.prototype=eY.prototype={constructor:eH,restart:function(e,t,n){if("function"!=typeof e)throw TypeError("callback is not a function");n=(null==n?eq():+n)+(null==t?0:+t),this._next||eQ===this||(eQ?eQ._next=this:eD=this,eQ=this),this._call=e,this._time=n,eK()},stop:function(){this._call&&(this._call=null,this._time=1/0,eK())}};var e1=ew("start","end","cancel","interrupt"),e0=[];function e2(e,t,n,r,i,a){var o=e.__transition;if(o){if(n in o)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function a(l){var u,c,d,h;if(1!==n.state)return s();for(u in i)if((h=i[u]).name===n.name){if(3===h.state)return eJ(a);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete i[u]):+u0)throw Error("too late; already scheduled");return n}function e9(e,t){var n=e4(e,t);if(n.state>3)throw Error("too late; already running");return n}function e4(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error("transition not found");return n}function e3(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var e8=180/Math.PI,e6={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function e7(e,t,n,r,i,a){var o,s,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r180?l+=360:l-s>180&&(s+=360),h.push({i:d.push(i(d)+"rotate(",null,r)-2,x:e3(s,l)})):l&&d.push(i(d)+"rotate("+l+r),(u=a.skewX)!==(c=o.skewX)?h.push({i:d.push(i(d)+"skewX(",null,r)-2,x:e3(u,c)}):c&&d.push(i(d)+"skewX("+c+r),!function(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+"scale(",null,",",null,")");o.push({i:s-4,x:e3(e,n)},{i:s-2,x:e3(t,r)})}else(1!==n||1!==r)&&a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,d,h),a=o=null,function(e){for(var t,n=-1,r=h.length;++n>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?t_(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?t_(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=tp.exec(e))?new tE(t[1],t[2],t[3],1):(t=tf.exec(e))?new tE(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=tm.exec(e))?t_(t[1],t[2],t[3],t[4]):(t=tg.exec(e))?t_(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=tO.exec(e))?tN(t[1],t[2]/100,t[3]/100,1):(t=tb.exec(e))?tN(t[1],t[2]/100,t[3]/100,t[4]):ty.hasOwnProperty(e)?tk(ty[e]):"transparent"===e?new tE(NaN,NaN,NaN,0):null}function tk(e){return new tE(e>>16&255,e>>8&255,255&e,1)}function t_(e,t,n,r){return r<=0&&(e=t=n=NaN),new tE(e,t,n,r)}function tS(e){return(e instanceof tl||(e=tT(e)),e)?(e=e.rgb(),new tE(e.r,e.g,e.b,e.opacity)):new tE}function tw(e,t,n,r){return 1==arguments.length?tS(e):new tE(e,t,n,null==r?1:r)}function tE(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function tC(){return`#${tI(this.r)}${tI(this.g)}${tI(this.b)}`}function tA(){let e=tR(this.opacity);return`${1===e?"rgb(":"rgba("}${tP(this.r)}, ${tP(this.g)}, ${tP(this.b)}${1===e?")":`, ${e})`}`}function tR(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function tP(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function tI(e){return((e=tP(e))<16?"0":"")+e.toString(16)}function tN(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new tL(e,t,n,r)}function t$(e){if(e instanceof tL)return new tL(e.h,e.s,e.l,e.opacity);if(e instanceof tl||(e=tT(e)),!e)return new tL;if(e instanceof tL)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,l=(a+i)/2;return s?(o=t===a?(n-r)/s+(n0&&l<1?0:o,new tL(o,s,l,e.opacity)}function tL(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function tD(e){return(e=(e||0)%360)<0?e+360:e}function tQ(e){return Math.max(0,Math.min(1,e||0))}function tM(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function tF(e,t,n,r,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*n+(1+3*e+3*a-3*o)*r+o*i)/6}to(tl,tT,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:tv,formatHex:tv,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return t$(this).formatHsl()},formatRgb:tx,toString:tx}),to(tE,tw,ts(tl,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new tE(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new tE(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new tE(tP(this.r),tP(this.g),tP(this.b),tR(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:tC,formatHex:tC,formatHex8:function(){return`#${tI(this.r)}${tI(this.g)}${tI(this.b)}${tI((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:tA,toString:tA})),to(tL,function(e,t,n,r){return 1==arguments.length?t$(e):new tL(e,t,n,null==r?1:r)},ts(tl,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new tL(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new tL(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new tE(tM(e>=240?e-240:e+120,i,r),tM(e,i,r),tM(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new tL(tD(this.h),tQ(this.s),tQ(this.l),tR(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=tR(this.opacity);return`${1===e?"hsl(":"hsla("}${tD(this.h)}, ${100*tQ(this.s)}%, ${100*tQ(this.l)}%${1===e?")":`, ${e})`}`}}));var tB=e=>()=>e;function tU(e,t){return function(n){return e+n*t}}function tj(e,t){var n=t-e;return n?tU(e,n):tB(isNaN(e)?t:e)}var tz=function e(t){var n,r=1==(n=+(n=t))?tj:function(e,t){var r,i,a;return t-e?(r=e,i=t,r=Math.pow(r,a=n),i=Math.pow(i,a)-r,a=1/a,function(e){return Math.pow(r+e*i,a)}):tB(isNaN(e)?t:e)};function i(e,t){var n=r((e=tw(e)).r,(t=tw(t)).r),i=r(e.g,t.g),a=r(e.b,t.b),o=tj(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+""}}return i.gamma=e,i}(1);function tW(e){return function(t){var n,r,i=t.length,a=Array(i),o=Array(i),s=Array(i);for(n=0;n=1?(n=1,t-1):Math.floor(n*t),i=e[r],a=e[r+1],o=r>0?e[r-1]:2*i-a,s=rs&&(o=t.slice(s,o),u[l]?u[l]+=o:u[++l]=o),(i=i[0])===(a=a[0])?u[l]?u[l]+=a:u[++l]=a:(u[++l]=null,c.push({i:l,x:e3(i,a)})),s=tq.lastIndex;return s=0&&(e=e.slice(0,t)),!e||"start"===e})?e5:e9,function(){var o=i(this,a),s=o.on;s!==n&&(r=(n=s).copy()).on(e,t),o.on=r}))},attr:function(e,t){var n=N(e),r="transform"===n?tn:tH;return this.attrTween(e,"function"==typeof t?(n.local?t1:tJ)(n,r,ta(this,"attr."+e,t)):null==t?(n.local?tX:tY)(n):(n.local?tK:tV)(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw Error();var r=N(e);return this.tween(n,(r.local?t0:t2)(r,t))},style:function(e,t,n){var r,i,a,o,s,l,u,c,d,h,p,f,m,g,O,b,y,v,x,T,k,_="transform"==(e+="")?tt:tH;return null==t?this.styleTween(e,(r=e,function(){var e=W(this,r),t=(this.style.removeProperty(r),W(this,r));return e===t?null:e===i&&t===a?o:o=_(i=e,a=t)})).on("end.style."+e,t6(e)):"function"==typeof t?this.styleTween(e,(s=e,l=ta(this,"style."+e,t),function(){var e=W(this,s),t=l(this),n=t+"";return null==t&&(this.style.removeProperty(s),n=t=W(this,s)),e===n?null:e===u&&n===c?d:(c=n,d=_(u=e,t))})).each((h=this._id,y="end."+(b="style."+(p=e)),function(){var e=e9(this,h),t=e.on,n=null==e.value[b]?O||(O=t6(p)):void 0;(t!==f||g!==n)&&(m=(f=t).copy()).on(y,g=n),e.on=m})):this.styleTween(e,(v=e,k=t+"",function(){var e=W(this,v);return e===k?null:e===x?T:T=_(x=e,t)}),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw Error();return this.tween(r,function(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&function(t){this.style.setProperty(e,a.call(this,t),n)}),r}return a._value=t,a}(e,t,null==n?"":n))},text:function(e){var t,n;return this.tween("text","function"==typeof e?(t=ta(this,"text",e),function(){var e=t(this);this.textContent=null==e?"":e}):(n=null==e?"":e+"",function(){this.textContent=n}))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw Error();return this.tween(t,function(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&function(e){this.textContent=r.call(this,e)}),t}return r._value=e,r}(e))},remove:function(){var e;return this.on("end.remove",(e=this._id,function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,i=e4(this.node(),n).tween,a=0,o=i.length;a2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete a[i]}o&&delete e.__transition}}(this,e)})},e_.prototype.transition=function(e){var t,n;e instanceof ne?(t=e._id,e=e._name):(t=++t7,(n=nn).time=eq(),e=null==e?null:e+"");for(var r=this._groups,i=r.length,a=0;afetch(t,n).then(ns).then(t=>(new DOMParser).parseFromString(t,e))}["w","e"].map(no),["n","s"].map(no),["n","w","e","s","nw","ne","sw","se"].map(no),nl("application/xml"),nl("text/html");var nu=nl("image/svg+xml");let nc=Math.PI/180,nd=180/Math.PI,nh=4/29,np=6/29,nf=3*np*np,nm=np*np*np;function ng(e){if(e instanceof nO)return new nO(e.l,e.a,e.b,e.opacity);if(e instanceof nk)return n_(e);e instanceof tE||(e=tS(e));var t,n,r=nx(e.r),i=nx(e.g),a=nx(e.b),o=nb((.2225045*r+.7168786*i+.0606169*a)/1);return r===i&&i===a?t=n=o:(t=nb((.4360747*r+.3850649*i+.1430804*a)/.96422),n=nb((.0139322*r+.0971045*i+.7141733*a)/.82521)),new nO(116*o-16,500*(t-o),200*(o-n),e.opacity)}function nO(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function nb(e){return e>nm?Math.pow(e,1/3):e/nf+nh}function ny(e){return e>np?e*e*e:nf*(e-nh)}function nv(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function nx(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function nT(e,t,n,r){return 1==arguments.length?function(e){if(e instanceof nk)return new nk(e.h,e.c,e.l,e.opacity);if(e instanceof nO||(e=ng(e)),0===e.a&&0===e.b)return new nk(NaN,0180||n<-180?n-360*Math.round(n/360):n):tB(isNaN(e)?t:e)});nS(tj);let nE=Math.sqrt(50),nC=Math.sqrt(10),nA=Math.sqrt(2);function nR(e,t,n){let r,i,a;let o=(t-e)/Math.max(0,n),s=Math.floor(Math.log10(o)),l=o/Math.pow(10,s),u=l>=nE?10:l>=nC?5:l>=nA?2:1;return(s<0?(r=Math.round(e*(a=Math.pow(10,-s)/u)),i=Math.round(t*a),r/at&&--i,a=-a):(r=Math.round(e/(a=Math.pow(10,s)*u)),i=Math.round(t/a),r*at&&--i),it?1:e>=t?0:NaN}function n$(e,t){return null==e||null==t?NaN:te?1:t>=e?0:NaN}function nL(e){let t,n,r;function i(e,r,i=0,a=e.length){if(i>>1;0>n(e[t],r)?i=t+1:a=t}while(inN(e(t),n),r=(t,n)=>e(t)-n):(t=e===nN||e===n$?e:nD,n=e,r=e),{left:i,center:function(e,t,n=0,a=e.length){let o=i(e,t,n,a-1);return o>n&&r(e[o-1],t)>-r(e[o],t)?o-1:o},right:function(e,r,i=0,a=e.length){if(i>>1;0>=n(e[t],r)?i=t+1:a=t}while(i(t=o[l-1])&&(n=e,e=t,t=n),u=function(n){return Math.max(e,Math.min(t,n))}),r=l>2?nX:nY,i=a=null,d}function d(t){return null==t||isNaN(t=+t)?n:(i||(i=r(o.map(e),s,l)))(e(u(t)))}return d.invert=function(n){return u(t((a||(a=r(s,o.map(e),e3)))(n)))},d.domain=function(e){return arguments.length?(o=Array.from(e,nZ),c()):o.slice()},d.range=function(e){return arguments.length?(s=Array.from(e),c()):s.slice()},d.rangeRound=function(e){return s=Array.from(e),l=nW,c()},d.clamp=function(e){return arguments.length?(u=!!e||nG,c()):u!==nG},d.interpolate=function(e){return arguments.length?(l=e,c()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,c()}})()(nG,nG)}function nJ(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}var n1=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function n0(e){var t;if(!(t=n1.exec(e)))throw Error("invalid format: "+e);return new n2({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function n2(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function n5(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function n9(e){return(e=n5(Math.abs(e)))?e[1]:NaN}function n4(e,t){var n=n5(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+Array(i-r.length+2).join("0")}n0.prototype=n2.prototype,n2.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var n3={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>n4(100*e,t),r:n4,s:function(e,t){var n=n5(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(eR=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+Array(1-a).join("0")+n5(e,Math.max(0,t+a-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function n8(e){return e}var n6=Array.prototype.map,n7=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];eI=(eP=function(e){var t,n,r,i=void 0===e.grouping||void 0===e.thousands?n8:(t=n6.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,a=[],o=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),a.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[o=(o+1)%t.length];return a.reverse().join(n)}),a=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",s=void 0===e.decimal?".":e.decimal+"",l=void 0===e.numerals?n8:(r=n6.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return r[+e]})}),u=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",d=void 0===e.nan?"NaN":e.nan+"";function h(e){var t=(e=n0(e)).fill,n=e.align,r=e.sign,h=e.symbol,p=e.zero,f=e.width,m=e.comma,g=e.precision,O=e.trim,b=e.type;"n"===b?(m=!0,b="g"):n3[b]||(void 0===g&&(g=12),O=!0,b="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var y="$"===h?a:"#"===h&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",v="$"===h?o:/[%p]/.test(b)?u:"",x=n3[b],T=/[defgprs%]/.test(b);function k(e){var a,o,u,h=y,k=v;if("c"===b)k=x(e)+k,e="";else{var _=(e=+e)<0||1/e<0;if(e=isNaN(e)?d:x(Math.abs(e),g),O&&(e=function(e){u:for(var t,n=e.length,r=1,i=-1;r0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),_&&0==+e&&"+"!==r&&(_=!1),h=(_?"("===r?r:c:"-"===r||"("===r?"":r)+h,k=("s"===b?n7[8+eR/3]:"")+k+(_&&"("===r?")":""),T){for(a=-1,o=e.length;++a(u=e.charCodeAt(a))||u>57){k=(46===u?s+e.slice(a+1):e.slice(a))+k,e=e.slice(0,a);break}}}m&&!p&&(e=i(e,1/0));var S=h.length+e.length+k.length,w=S>1)+h+e+k+w.slice(S);break;default:e=w+h+e+k}return l(e)}return g=void 0===g?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),k.toString=function(){return e+""},k}return{format:h,formatPrefix:function(e,t){var n=h(((e=n0(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(n9(t)/3))),i=Math.pow(10,-r),a=n7[8+r/3];return function(e){return n(i*e)+a}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,eN=eP.formatPrefix;class re extends Map{constructor(e,t=rn){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(let[t,n]of e)this.set(t,n)}get(e){return super.get(rt(this,e))}has(e){return super.has(rt(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}(this,e))}}function rt({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function rn(e){return null!==e&&"object"==typeof e?e.valueOf():e}let rr=Symbol("implicit"),ri=864e5,ra=7*ri,ro=30*ri,rs=365*ri,rl=new Date,ru=new Date;function rc(e,t,n,r){function i(t){return e(t=0==arguments.length?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{let t=i(e),n=i.ceil(e);return e-t(t(e=new Date(+e),null==n?1:Math.floor(n)),e),i.range=(n,r,a)=>{let o;let s=[];if(n=i.ceil(n),a=null==a?1:Math.floor(a),!(n0))return s;do s.push(o=new Date(+n)),t(n,a),e(n);while(orc(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e){if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}}),n&&(i.count=(t,r)=>(rl.setTime(+t),ru.setTime(+r),e(rl),e(ru),Math.floor(n(rl,ru))),i.every=e=>isFinite(e=Math.floor(e))&&e>0?e>1?i.filter(r?t=>r(t)%e==0:t=>i.count(0,t)%e==0):i:null),i}let rd=rc(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);rd.every=e=>isFinite(e=Math.floor(e))&&e>0?e>1?rc(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):rd:null,rd.range;let rh=rc(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+1e3*t)},(e,t)=>(t-e)/1e3,e=>e.getUTCSeconds());rh.range;let rp=rc(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getMinutes());rp.range;let rf=rc(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getUTCMinutes());rf.range;let rm=rc(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())},(e,t)=>{e.setTime(+e+36e5*t)},(e,t)=>(t-e)/36e5,e=>e.getHours());rm.range;let rg=rc(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+36e5*t)},(e,t)=>(t-e)/36e5,e=>e.getUTCHours());rg.range;let rO=rc(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/ri,e=>e.getDate()-1);rO.range;let rb=rc(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ri,e=>e.getUTCDate()-1);rb.range;let ry=rc(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ri,e=>Math.floor(e/ri));function rv(e){return rc(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+7*t)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/ra)}ry.range;let rx=rv(0),rT=rv(1),rk=rv(2),r_=rv(3),rS=rv(4),rw=rv(5),rE=rv(6);function rC(e){return rc(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)},(e,t)=>(t-e)/ra)}rx.range,rT.range,rk.range,r_.range,rS.range,rw.range,rE.range;let rA=rC(0),rR=rC(1),rP=rC(2),rI=rC(3),rN=rC(4),r$=rC(5),rL=rC(6);rA.range,rR.range,rP.range,rI.range,rN.range,r$.range,rL.range;let rD=rc(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());rD.range;let rQ=rc(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());rQ.range;let rM=rc(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());rM.every=e=>isFinite(e=Math.floor(e))&&e>0?rc(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}):null,rM.range;let rF=rc(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());function rB(e,t,n,r,i,a){let o=[[rh,1,1e3],[rh,5,5e3],[rh,15,15e3],[rh,30,3e4],[a,1,6e4],[a,5,3e5],[a,15,9e5],[a,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,ri],[r,2,2*ri],[n,1,ra],[t,1,ro],[t,3,3*ro],[e,1,rs]];function s(t,n,r){let i=Math.abs(n-t)/r,a=nL(([,,e])=>e).right(o,i);if(a===o.length)return e.every(nI(t/rs,n/rs,r));if(0===a)return rd.every(Math.max(nI(t,n,r),1));let[s,l]=o[i/o[a-1][2]isFinite(e=Math.floor(e))&&e>0?rc(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null,rF.range;let[rU,rj]=rB(rF,rQ,rA,ry,rg,rf),[rz,rW]=rB(rM,rD,rx,rO,rm,rp);function rZ(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function rq(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function rG(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var rH={"-":"",_:" ",0:"0"},rY=/^\s*\d+/,rX=/^%/,rV=/[\\^$*+?|[\]().{}]/g;function rK(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a[e.toLowerCase(),t]))}function r2(e,t,n){var r=rY.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function r5(e,t,n){var r=rY.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function r9(e,t,n){var r=rY.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function r4(e,t,n){var r=rY.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function r3(e,t,n){var r=rY.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function r8(e,t,n){var r=rY.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function r6(e,t,n){var r=rY.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function r7(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function ie(e,t,n){var r=rY.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function it(e,t,n){var r=rY.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function ir(e,t,n){var r=rY.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function ii(e,t,n){var r=rY.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function ia(e,t,n){var r=rY.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function io(e,t,n){var r=rY.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function is(e,t,n){var r=rY.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function il(e,t,n){var r=rY.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function iu(e,t,n){var r=rY.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function ic(e,t,n){var r=rX.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function id(e,t,n){var r=rY.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function ih(e,t,n){var r=rY.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function ip(e,t){return rK(e.getDate(),t,2)}function im(e,t){return rK(e.getHours(),t,2)}function ig(e,t){return rK(e.getHours()%12||12,t,2)}function iO(e,t){return rK(1+rO.count(rM(e),e),t,3)}function ib(e,t){return rK(e.getMilliseconds(),t,3)}function iy(e,t){return ib(e,t)+"000"}function iv(e,t){return rK(e.getMonth()+1,t,2)}function ix(e,t){return rK(e.getMinutes(),t,2)}function iT(e,t){return rK(e.getSeconds(),t,2)}function ik(e){var t=e.getDay();return 0===t?7:t}function i_(e,t){return rK(rx.count(rM(e)-1,e),t,2)}function iS(e){var t=e.getDay();return t>=4||0===t?rS(e):rS.ceil(e)}function iw(e,t){return e=iS(e),rK(rS.count(rM(e),e)+(4===rM(e).getDay()),t,2)}function iE(e){return e.getDay()}function iC(e,t){return rK(rT.count(rM(e)-1,e),t,2)}function iA(e,t){return rK(e.getFullYear()%100,t,2)}function iR(e,t){return rK((e=iS(e)).getFullYear()%100,t,2)}function iP(e,t){return rK(e.getFullYear()%1e4,t,4)}function iI(e,t){var n=e.getDay();return rK((e=n>=4||0===n?rS(e):rS.ceil(e)).getFullYear()%1e4,t,4)}function iN(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+rK(t/60|0,"0",2)+rK(t%60,"0",2)}function i$(e,t){return rK(e.getUTCDate(),t,2)}function iL(e,t){return rK(e.getUTCHours(),t,2)}function iD(e,t){return rK(e.getUTCHours()%12||12,t,2)}function iQ(e,t){return rK(1+rb.count(rF(e),e),t,3)}function iM(e,t){return rK(e.getUTCMilliseconds(),t,3)}function iF(e,t){return iM(e,t)+"000"}function iB(e,t){return rK(e.getUTCMonth()+1,t,2)}function iU(e,t){return rK(e.getUTCMinutes(),t,2)}function ij(e,t){return rK(e.getUTCSeconds(),t,2)}function iz(e){var t=e.getUTCDay();return 0===t?7:t}function iW(e,t){return rK(rA.count(rF(e)-1,e),t,2)}function iZ(e){var t=e.getUTCDay();return t>=4||0===t?rN(e):rN.ceil(e)}function iq(e,t){return e=iZ(e),rK(rN.count(rF(e),e)+(4===rF(e).getUTCDay()),t,2)}function iG(e){return e.getUTCDay()}function iH(e,t){return rK(rR.count(rF(e)-1,e),t,2)}function iY(e,t){return rK(e.getUTCFullYear()%100,t,2)}function iX(e,t){return rK((e=iZ(e)).getUTCFullYear()%100,t,2)}function iV(e,t){return rK(e.getUTCFullYear()%1e4,t,4)}function iK(e,t){var n=e.getUTCDay();return rK((e=n>=4||0===n?rN(e):rN.ceil(e)).getUTCFullYear()%1e4,t,4)}function iJ(){return"+0000"}function i1(){return"%"}function i0(e){return+e}function i2(e){return Math.floor(+e/1e3)}function i5(e){return new Date(e)}function i9(e){return e instanceof Date?+e:+new Date(+e)}function i4(){return nJ.apply((function e(t,n,r,i,a,o,s,l,u,c){var d=nK(),h=d.invert,p=d.domain,f=c(".%L"),m=c(":%S"),g=c("%I:%M"),O=c("%I %p"),b=c("%a %d"),y=c("%b %d"),v=c("%B"),x=c("%Y");function T(e){return(u(e)=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:i0,s:i2,S:iT,u:ik,U:i_,V:iw,w:iE,W:iC,x:null,X:null,y:iA,Y:iP,Z:iN,"%":i1},v={a:function(e){return o[e.getUTCDay()]},A:function(e){return a[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:i$,e:i$,f:iF,g:iX,G:iK,H:iL,I:iD,j:iQ,L:iM,m:iB,M:iU,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:i0,s:i2,S:ij,u:iz,U:iW,V:iq,w:iG,W:iH,x:null,X:null,y:iY,Y:iV,Z:iJ,"%":i1},x={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=O.exec(t.slice(n));return r?(e.m=b.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return _(e,t,n,r)},d:ir,e:ir,f:iu,g:r6,G:r8,H:ia,I:ia,j:ii,L:il,m:it,M:io,p:function(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=c.get(r[0].toLowerCase()),n+r[0].length):-1},q:ie,Q:id,s:ih,S:is,u:r5,U:r9,V:r4,w:r2,W:r3,x:function(e,t,r){return _(e,n,t,r)},X:function(e,t,n){return _(e,r,t,n)},y:r6,Y:r8,Z:r7,"%":ic};function T(e,t){return function(n){var r,i,a,o=[],s=-1,l=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in a||(a.w=1),"Z"in a?(r=(i=(r=rq(rG(a.y,0,1))).getUTCDay())>4||0===i?rR.ceil(r):rR(r),r=rb.offset(r,(a.V-1)*7),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(r=(i=(r=rZ(rG(a.y,0,1))).getDay())>4||0===i?rT.ceil(r):rT(r),r=rO.offset(r,(a.V-1)*7),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),i="Z"in a?rq(rG(a.y,0,1)).getUTCDay():rZ(rG(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,rq(a)):rZ(a)}}function _(e,t,n,r){for(var i,a,o=0,s=t.length,l=n.length;o=l)return -1;if(37===(i=t.charCodeAt(o++))){if(!(a=x[(i=t.charAt(o++))in rH?t.charAt(o++):i])||(r=a(e,n,r))<0)return -1}else if(i!=n.charCodeAt(r++))return -1}return r}return y.x=T(n,y),y.X=T(r,y),y.c=T(t,y),v.x=T(n,v),v.X=T(r,v),v.c=T(t,v),{format:function(e){var t=T(e+="",y);return t.toString=function(){return e},t},parse:function(e){var t=k(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=T(e+="",v);return t.toString=function(){return e},t},utcParse:function(e){var t=k(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,e$.parse,e$.utcFormat,e$.utcParse;var i3=function(e){for(var t=e.length/6|0,n=Array(t),r=0;r=1?al:e<=-1?-al:Math.asin(e)}let ad=Math.PI,ah=2*ad,ap=ah-1e-6;function af(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw Error(`invalid digits: ${e}`);if(t>15)return af;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t1e-6){if(Math.abs(c*s-l*u)>1e-6&&i){let h=n-a,p=r-o,f=s*s+l*l,m=Math.sqrt(f),g=Math.sqrt(d),O=i*Math.tan((ad-Math.acos((f+d-(h*h+p*p))/(2*m*g)))/2),b=O/g,y=O/m;Math.abs(b-1)>1e-6&&this._append`L${e+b*u},${t+b*c}`,this._append`A${i},${i},0,0,${+(c*h>u*p)},${this._x1=e+y*s},${this._y1=t+y*l}`}else this._append`L${this._x1=e},${this._y1=t}`}}arc(e,t,n,r,i,a){if(e=+e,t=+t,a=!!a,(n=+n)<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),l=e+o,u=t+s,c=1^a,d=a?r-i:i-r;null===this._x1?this._append`M${l},${u}`:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-u)>1e-6)&&this._append`L${l},${u}`,n&&(d<0&&(d=d%ah+ah),d>ap?this._append`A${n},${n},0,1,${c},${e-o},${t-s}A${n},${n},0,1,${c},${this._x1=l},${this._y1=u}`:d>1e-6&&this._append`A${n},${n},0,${+(d>=ad)},${c},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function ag(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new am(t)}function aO(e){return e.innerRadius}function ab(e){return e.outerRadius}function ay(e){return e.startAngle}function av(e){return e.endAngle}function ax(e){return e&&e.padAngle}function aT(e,t,n,r,i,a,o){var s=e-n,l=t-r,u=(o?a:-a)/ao(s*s+l*l),c=u*l,d=-u*s,h=e+c,p=t+d,f=n+c,m=r+d,g=(h+f)/2,O=(p+m)/2,b=f-h,y=m-p,v=b*b+y*y,x=i-a,T=h*m-f*p,k=(y<0?-1:1)*ao(ar(0,x*x*v-T*T)),_=(T*y-b*k)/v,S=(-T*b-y*k)/v,w=(T*y+b*k)/v,E=(-T*b+y*k)/v,C=_-g,A=S-O,R=w-g,P=E-O;return C*C+A*A>R*R+P*P&&(_=w,S=E),{cx:_,cy:S,x01:-c,y01:-d,x11:_*(i/x-1),y11:S*(i/x-1)}}function ak(){var e=aO,t=ab,n=i7(0),r=null,i=ay,a=av,o=ax,s=null,l=ag(u);function u(){var u,c,d=+e.apply(this,arguments),h=+t.apply(this,arguments),p=i.apply(this,arguments)-al,f=a.apply(this,arguments)-al,m=ae(f-p),g=f>p;if(s||(s=u=l()),h1e-12){if(m>au-1e-12)s.moveTo(h*an(p),h*aa(p)),s.arc(0,0,h,p,f,!g),d>1e-12&&(s.moveTo(d*an(f),d*aa(f)),s.arc(0,0,d,f,p,g));else{var O,b,y=p,v=f,x=p,T=f,k=m,_=m,S=o.apply(this,arguments)/2,w=S>1e-12&&(r?+r.apply(this,arguments):ao(d*d+h*h)),E=ai(ae(h-d)/2,+n.apply(this,arguments)),C=E,A=E;if(w>1e-12){var R=ac(w/d*aa(S)),P=ac(w/h*aa(S));(k-=2*R)>1e-12?(R*=g?1:-1,x+=R,T-=R):(k=0,x=T=(p+f)/2),(_-=2*P)>1e-12?(P*=g?1:-1,y+=P,v-=P):(_=0,y=v=(p+f)/2)}var I=h*an(y),N=h*aa(y),$=d*an(T),L=d*aa(T);if(E>1e-12){var D,Q=h*an(v),M=h*aa(v),F=d*an(x),B=d*aa(x);if(m1?0:U<-1?as:Math.acos(U))/2),G=ao(D[0]*D[0]+D[1]*D[1]);C=ai(E,(d-G)/(q-1)),A=ai(E,(h-G)/(q+1))}else C=A=0}}_>1e-12?A>1e-12?(O=aT(F,B,I,N,h,A,g),b=aT(Q,M,$,L,h,A,g),s.moveTo(O.cx+O.x01,O.cy+O.y01),A1e-12&&k>1e-12?C>1e-12?(O=aT($,L,Q,M,d,-C,g),b=aT(I,N,F,B,d,-C,g),s.lineTo(O.cx+O.x01,O.cy+O.y01),Ce?1:t>=e?0:NaN}function aP(e){return e}function aI(){var e=aP,t=aR,n=null,r=i7(0),i=i7(au),a=i7(0);function o(o){var s,l,u,c,d,h=(o=a_(o)).length,p=0,f=Array(h),m=Array(h),g=+r.apply(this,arguments),O=Math.min(au,Math.max(-au,i.apply(this,arguments)-g)),b=Math.min(Math.abs(O)/h,a.apply(this,arguments)),y=b*(O<0?-1:1);for(s=0;s0&&(p+=d);for(null!=t?f.sort(function(e,n){return t(m[e],m[n])}):null!=n&&f.sort(function(e,t){return n(o[e],o[t])}),s=0,u=p?(O-h*y)/p:0;s0?d*u:0)+y,m[l]={data:o[l],index:s,value:d,startAngle:g,endAngle:c,padAngle:b};return m}return o.value=function(t){return arguments.length?(e="function"==typeof t?t:i7(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:i7(+e),o):r},o.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:i7(+e),o):i},o.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:i7(+e),o):a},o}function aN(){}function a$(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function aL(e){this._context=e}function aD(e){return new aL(e)}function aQ(e){this._context=e}function aM(e){return new aQ(e)}function aF(e){this._context=e}function aB(e){return new aF(e)}am.prototype,Array.prototype.slice,aS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}},aL.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:a$(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:a$(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},aQ.prototype={areaStart:aN,areaEnd:aN,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:a$(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},aF.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:a$(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};class aU{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}function aj(e){return new aU(e,!0)}function az(e){return new aU(e,!1)}function aW(e,t){this._basis=new aL(e),this._beta=t}aW.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],a=t[0],o=e[n]-i,s=t[n]-a,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(i+r*o),this._beta*t[l]+(1-this._beta)*(a+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var aZ=function e(t){function n(e){return 1===t?new aL(e):new aW(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function aq(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function aG(e,t){this._context=e,this._k=(1-t)/6}aG.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:aq(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:aq(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var aH=function e(t){function n(e){return new aG(e,t)}return n.tension=function(t){return e(+t)},n}(0);function aY(e,t){this._context=e,this._k=(1-t)/6}aY.prototype={areaStart:aN,areaEnd:aN,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:aq(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var aX=function e(t){function n(e){return new aY(e,t)}return n.tension=function(t){return e(+t)},n}(0);function aV(e,t){this._context=e,this._k=(1-t)/6}aV.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:aq(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var aK=function e(t){function n(e){return new aV(e,t)}return n.tension=function(t){return e(+t)},n}(0);function aJ(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>1e-12){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>1e-12){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*u+e._x1*e._l23_2a-t*e._l12_2a)/c,o=(o*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function a1(e,t){this._context=e,this._alpha=t}a1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:aJ(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var a0=function e(t){function n(e){return t?new a1(e,t):new aG(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function a2(e,t){this._context=e,this._alpha=t}a2.prototype={areaStart:aN,areaEnd:aN,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:aJ(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var a5=function e(t){function n(e){return t?new a2(e,t):new aY(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function a9(e,t){this._context=e,this._alpha=t}a9.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:aJ(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var a4=function e(t){function n(e){return t?new a9(e,t):new aV(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function a3(e){this._context=e}function a8(e){return new a3(e)}function a6(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0);return((a<0?-1:1)+(o<0?-1:1))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs((a*i+o*r)/(r+i)))||0}function a7(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function oe(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function ot(e){this._context=e}function on(e){this._context=new or(e)}function or(e){this._context=e}function oi(e){return new ot(e)}function oa(e){return new on(e)}function oo(e){this._context=e}function os(e){var t,n,r=e.length-1,i=Array(r),a=Array(r),o=Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(t=0,a[r-1]=(e[r]+i[r-1])/2;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}},op.prototype={constructor:op,scale:function(e){return 1===e?this:new op(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new op(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},new op(1,0,0),op.prototype},44301:function(e,t,n){"use strict";n.d(t,{T:function(){return i}});let r=document.createElement("i");function i(e){let t="&"+e+";";r.innerHTML=t;let n=r.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}},27490:function(e,t,n){"use strict";function r(e){let t=e&&"object"==typeof e&&"text"===e.type?e.value||"":e;return"string"==typeof t&&""===t.replace(/[ \t\n\f\r]/g,"")}n.d(t,{Q:function(){return r}})},21883:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(61691),i=n(82142),a=class{constructor(){this.type=i.w.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=i.w.ALL}is(e){return this.type===e}},o=class{constructor(e,t){this.color=t,this.changed=!1,this.data=e,this.type=new a}set(e,t){return this.color=t,this.changed=!1,this.data=e,this.type.type=i.w.ALL,this}_ensureHSL(){let e=this.data,{h:t,s:n,l:i}=e;void 0===t&&(e.h=r.Z.channel.rgb2hsl(e,"h")),void 0===n&&(e.s=r.Z.channel.rgb2hsl(e,"s")),void 0===i&&(e.l=r.Z.channel.rgb2hsl(e,"l"))}_ensureRGB(){let e=this.data,{r:t,g:n,b:i}=e;void 0===t&&(e.r=r.Z.channel.hsl2rgb(e,"r")),void 0===n&&(e.g=r.Z.channel.hsl2rgb(e,"g")),void 0===i&&(e.b=r.Z.channel.hsl2rgb(e,"b"))}get r(){let e=this.data,t=e.r;return this.type.is(i.w.HSL)||void 0===t?(this._ensureHSL(),r.Z.channel.hsl2rgb(e,"r")):t}get g(){let e=this.data,t=e.g;return this.type.is(i.w.HSL)||void 0===t?(this._ensureHSL(),r.Z.channel.hsl2rgb(e,"g")):t}get b(){let e=this.data,t=e.b;return this.type.is(i.w.HSL)||void 0===t?(this._ensureHSL(),r.Z.channel.hsl2rgb(e,"b")):t}get h(){let e=this.data,t=e.h;return this.type.is(i.w.RGB)||void 0===t?(this._ensureRGB(),r.Z.channel.rgb2hsl(e,"h")):t}get s(){let e=this.data,t=e.s;return this.type.is(i.w.RGB)||void 0===t?(this._ensureRGB(),r.Z.channel.rgb2hsl(e,"s")):t}get l(){let e=this.data,t=e.l;return this.type.is(i.w.RGB)||void 0===t?(this._ensureRGB(),r.Z.channel.rgb2hsl(e,"l")):t}get a(){return this.data.a}set r(e){this.type.set(i.w.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(i.w.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(i.w.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(i.w.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(i.w.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(i.w.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}};let s=new o({r:0,g:0,b:0,a:0},"transparent");var l=s},71610:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(21883),i=n(82142);let a={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(35!==e.charCodeAt(0))return;let t=e.match(a.re);if(!t)return;let n=t[1],i=parseInt(n,16),o=n.length,s=o%4==0,l=o>4,u=l?1:17,c=l?8:4,d=s?0:-1,h=l?255:15;return r.Z.set({r:(i>>c*(d+3)&h)*u,g:(i>>c*(d+2)&h)*u,b:(i>>c*(d+1)&h)*u,a:s?(i&h)*u/255:1},e)},stringify:e=>{let{r:t,g:n,b:r,a}=e;return a<1?`#${i.Q[Math.round(t)]}${i.Q[Math.round(n)]}${i.Q[Math.round(r)]}${i.Q[Math.round(255*a)]}`:`#${i.Q[Math.round(t)]}${i.Q[Math.round(n)]}${i.Q[Math.round(r)]}`}};var o=n(61691);let s={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{let t=e.match(s.hueRe);if(t){let[,e,n]=t;switch(n){case"grad":return o.Z.channel.clamp.h(.9*parseFloat(e));case"rad":return o.Z.channel.clamp.h(180*parseFloat(e)/Math.PI);case"turn":return o.Z.channel.clamp.h(360*parseFloat(e))}}return o.Z.channel.clamp.h(parseFloat(e))},parse:e=>{let t=e.charCodeAt(0);if(104!==t&&72!==t)return;let n=e.match(s.re);if(!n)return;let[,i,a,l,u,c]=n;return r.Z.set({h:s._hue2deg(i),s:o.Z.channel.clamp.s(parseFloat(a)),l:o.Z.channel.clamp.l(parseFloat(l)),a:u?o.Z.channel.clamp.a(c?parseFloat(u)/100:parseFloat(u)):1},e)},stringify:e=>{let{h:t,s:n,l:r,a:i}=e;return i<1?`hsla(${o.Z.lang.round(t)}, ${o.Z.lang.round(n)}%, ${o.Z.lang.round(r)}%, ${i})`:`hsl(${o.Z.lang.round(t)}, ${o.Z.lang.round(n)}%, ${o.Z.lang.round(r)}%)`}},l={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:e=>{e=e.toLowerCase();let t=l.colors[e];if(t)return a.parse(t)},stringify:e=>{let t=a.stringify(e);for(let e in l.colors)if(l.colors[e]===t)return e}},u={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{let t=e.charCodeAt(0);if(114!==t&&82!==t)return;let n=e.match(u.re);if(!n)return;let[,i,a,s,l,c,d,h,p]=n;return r.Z.set({r:o.Z.channel.clamp.r(a?2.55*parseFloat(i):parseFloat(i)),g:o.Z.channel.clamp.g(l?2.55*parseFloat(s):parseFloat(s)),b:o.Z.channel.clamp.b(d?2.55*parseFloat(c):parseFloat(c)),a:h?o.Z.channel.clamp.a(p?parseFloat(h)/100:parseFloat(h)):1},e)},stringify:e=>{let{r:t,g:n,b:r,a:i}=e;return i<1?`rgba(${o.Z.lang.round(t)}, ${o.Z.lang.round(n)}, ${o.Z.lang.round(r)}, ${o.Z.lang.round(i)})`:`rgb(${o.Z.lang.round(t)}, ${o.Z.lang.round(n)}, ${o.Z.lang.round(r)})`}};var c={format:{keyword:l,hex:a,rgb:u,rgba:u,hsl:s,hsla:s},parse:e=>{if("string"!=typeof e)return e;let t=a.parse(e)||u.parse(e)||s.parse(e)||l.parse(e);if(t)return t;throw Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(i.w.HSL)||void 0===e.data.r?s.stringify(e):!(e.a<1)&&Number.isInteger(e.r)&&Number.isInteger(e.g)&&Number.isInteger(e.b)?a.stringify(e):u.stringify(e)}},82142:function(e,t,n){"use strict";n.d(t,{Q:function(){return i},w:function(){return a}});var r=n(61691);let i={};for(let e=0;e<=255;e++)i[e]=r.Z.unit.dec2hex(e);let a={ALL:0,RGB:1,HSL:2}},26174:function(e,t,n){"use strict";var r=n(61691),i=n(71610);t.Z=(e,t,n)=>{let a=i.Z.parse(e),o=a[t],s=r.Z.channel.clamp[t](o+n);return o!==s&&(a[t]=s),i.Z.stringify(a)}},53438:function(e,t,n){"use strict";var r=n(61691),i=n(71610);t.Z=(e,t)=>{let n=i.Z.parse(e);for(let e in t)n[e]=r.Z.channel.clamp[e](t[e]);return i.Z.stringify(n)}},7201:function(e,t,n){"use strict";var r=n(26174);t.Z=(e,t)=>(0,r.Z)(e,"l",-t)},91619:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(61691),i=n(71610),a=e=>{let{r:t,g:n,b:a}=i.Z.parse(e),o=.2126*r.Z.channel.toLinear(t)+.7152*r.Z.channel.toLinear(n)+.0722*r.Z.channel.toLinear(a);return r.Z.lang.round(o)},o=e=>a(e)>=.5,s=e=>!o(e)},12281:function(e,t,n){"use strict";var r=n(26174);t.Z=(e,t)=>(0,r.Z)(e,"l",t)},51117:function(e,t,n){"use strict";var r=n(61691),i=n(21883),a=n(71610),o=n(53438);t.Z=(e,t,n=0,s=1)=>{if("number"!=typeof e)return(0,o.Z)(e,{a:t});let l=i.Z.set({r:r.Z.channel.clamp.r(e),g:r.Z.channel.clamp.g(t),b:r.Z.channel.clamp.b(n),a:r.Z.channel.clamp.a(s)});return a.Z.stringify(l)}},61691:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});let r={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{let t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:(e,t,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e,hsl2rgb:({h:e,s:t,l:n},i)=>{if(!t)return 2.55*n;e/=360,t/=100,n/=100;let a=n<.5?n*(1+t):n+t-n*t,o=2*n-a;switch(i){case"r":return 255*r.hue2rgb(o,a,e+1/3);case"g":return 255*r.hue2rgb(o,a,e);case"b":return 255*r.hue2rgb(o,a,e-1/3)}},rgb2hsl:({r:e,g:t,b:n},r)=>{e/=255,t/=255,n/=255;let i=Math.max(e,t,n),a=Math.min(e,t,n),o=(i+a)/2;if("l"===r)return 100*o;if(i===a)return 0;let s=i-a;if("s"===r)return 100*(o>.5?s/(2-i-a):s/(i+a));switch(i){case e:return((t-n)/s+(tt>n?Math.min(t,Math.max(n,e)):Math.min(n,Math.max(t,e)),round:e=>Math.round(1e10*e)/1e10},unit:{dec2hex:e=>{let t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}}}},67308:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(79651),i=function(e,t){for(var n=e.length;n--;)if((0,r.Z)(e[n][0],t))return n;return -1},a=Array.prototype.splice;function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1},o.prototype.set=function(e,t){var n=this.__data__,r=i(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var s=o},86183:function(e,t,n){"use strict";var r=n(62508),i=n(66092),a=(0,r.Z)(i.Z,"Map");t.Z=a},37834:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=(0,n(62508).Z)(Object,"create"),i=Object.prototype.hasOwnProperty,a=Object.prototype.hasOwnProperty;function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e0){if(++r>=800)return arguments[0]}else r=0;return l.apply(void 0,arguments)})},90019:function(e,t){"use strict";var n=Function.prototype.toString;t.Z=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},62002:function(e,t){"use strict";t.Z=function(e){return function(){return e}}},79651:function(e,t){"use strict";t.Z=function(e,t){return e===t||e!=e&&t!=t}},69203:function(e,t){"use strict";t.Z=function(e){return e}},29169:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(93589),i=n(18533),a=function(e){return(0,i.Z)(e)&&"[object Arguments]"==(0,r.Z)(e)},o=Object.prototype,s=o.hasOwnProperty,l=o.propertyIsEnumerable,u=a(function(){return arguments}())?a:function(e){return(0,i.Z)(e)&&s.call(e,"callee")&&!l.call(e,"callee")}},27771:function(e,t){"use strict";var n=Array.isArray;t.Z=n},50585:function(e,t,n){"use strict";var r=n(73234),i=n(1656);t.Z=function(e){return null!=e&&(0,i.Z)(e.length)&&!(0,r.Z)(e)}},836:function(e,t,n){"use strict";var r=n(50585),i=n(18533);t.Z=function(e){return(0,i.Z)(e)&&(0,r.Z)(e)}},77008:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(66092),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=i&&"object"==typeof module&&module&&!module.nodeType&&module,o=a&&a.exports===i?r.Z.Buffer:void 0,s=(o?o.isBuffer:void 0)||function(){return!1}},79697:function(e,t,n){"use strict";var r=n(39473),i=n(83970),a=n(29169),o=n(27771),s=n(50585),l=n(77008),u=n(72764),c=n(18843),d=Object.prototype.hasOwnProperty;t.Z=function(e){if(null==e)return!0;if((0,s.Z)(e)&&((0,o.Z)(e)||"string"==typeof e||"function"==typeof e.splice||(0,l.Z)(e)||(0,c.Z)(e)||(0,a.Z)(e)))return!e.length;var t=(0,i.Z)(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if((0,u.Z)(e))return!(0,r.Z)(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},73234:function(e,t,n){"use strict";var r=n(93589),i=n(77226);t.Z=function(e){if(!(0,i.Z)(e))return!1;var t=(0,r.Z)(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1656:function(e,t){"use strict";t.Z=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},77226:function(e,t){"use strict";t.Z=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},18533:function(e,t){"use strict";t.Z=function(e){return null!=e&&"object"==typeof e}},37514:function(e,t,n){"use strict";var r=n(93589),i=n(12513),a=n(18533),o=Object.prototype,s=Function.prototype.toString,l=o.hasOwnProperty,u=s.call(Object);t.Z=function(e){if(!(0,a.Z)(e)||"[object Object]"!=(0,r.Z)(e))return!1;var t=(0,i.Z)(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==u}},18843:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(93589),i=n(1656),a=n(18533),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1;var s=n(21162),l=n(98351),u=l.Z&&l.Z.isTypedArray,c=u?(0,s.Z)(u):function(e){return(0,a.Z)(e)&&(0,i.Z)(e.length)&&!!o[(0,r.Z)(e)]}},32957:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(87668),i=n(77226),a=n(72764),o=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},s=Object.prototype.hasOwnProperty,l=function(e){if(!(0,i.Z)(e))return o(e);var t=(0,a.Z)(e),n=[];for(var r in e)"constructor"==r&&(t||!s.call(e,r))||n.push(r);return n},u=n(50585),c=function(e){return(0,u.Z)(e)?(0,r.Z)(e,!0):l(e)}},42454:function(e,t,n){"use strict";var r=n(37834);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(i.Cache||r.Z),n}i.Cache=r.Z,t.Z=i},59236:function(e,t,n){"use strict";n.d(t,{Z:function(){return C}});var r,i=n(31667),a=n(74752),o=n(79651),s=function(e,t,n){(void 0===n||(0,o.Z)(e[t],n))&&(void 0!==n||t in e)||(0,a.Z)(e,t,n)},l=n(61395),u=n(91050),c=n(12701),d=n(87215),h=n(73658),p=n(29169),f=n(27771),m=n(836),g=n(77008),O=n(73234),b=n(77226),y=n(37514),v=n(18843),x=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},T=n(31899),k=n(32957),_=function(e,t,n,r,i,a,o){var l=x(e,n),_=x(t,n),S=o.get(_);if(S){s(e,n,S);return}var w=a?a(l,_,n+"",e,t,o):void 0,E=void 0===w;if(E){var C=(0,f.Z)(_),A=!C&&(0,g.Z)(_),R=!C&&!A&&(0,v.Z)(_);(w=_,C||A||R)?(0,f.Z)(l)?w=l:(0,m.Z)(l)?w=(0,d.Z)(l):A?(E=!1,w=(0,u.Z)(_,!0)):R?(E=!1,w=(0,c.Z)(_,!0)):w=[]:(0,y.Z)(_)||(0,p.Z)(_)?(w=l,(0,p.Z)(l))?w=(0,T.Z)(l,(0,k.Z)(l)):(!(0,b.Z)(l)||(0,O.Z)(l))&&(w=(0,h.Z)(_)):E=!1}E&&(o.set(_,w),i(w,_,r,a,o),o.delete(_)),s(e,n,w)},S=function e(t,n,r,a,o){t!==n&&(0,l.Z)(n,function(l,u){if(o||(o=new i.Z),(0,b.Z)(l))_(t,n,u,r,e,a,o);else{var c=a?a(x(t,u),l,u+"",t,n,o):void 0;void 0===c&&(c=l),s(t,u,c)}},k.Z)},w=n(69581),E=n(50439),C=(r=function(e,t,n){S(e,t,n)},(0,w.Z)(function(e,t){var n=-1,i=t.length,a=i>1?t[i-1]:void 0,o=i>2?t[2]:void 0;for(a=r.length>3&&"function"==typeof a?(i--,a):void 0,o&&(0,E.Z)(t[0],t[1],o)&&(a=i<3?void 0:a,i=1),e=Object(e);++nr))return;let s=i.events.length,l=s;for(;l--;)if("exit"===i.events[l][0]&&"chunkFlow"===i.events[l][1].type){if(e){n=i.events[l][1].end;break}e=!0}for(y(o),a=s;at;){let t=a[n];i.containerState=t[1],t[0].exit.call(i,e)}a.length=t}function v(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},d={tokenize:function(e,t,n){return(0,o.f)(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};var h=n(23402);function p(e){let t,n,r,i,a,o,s;let l={},c=-1;for(;++c=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}},partial:!0},g={tokenize:function(e){let t=this,n=e.attempt(h.w,function(r){if(null===r){e.consume(r);return}return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,(0,o.f)(e,e.attempt(this.parser.constructs.flow,r,e.attempt(f,r)),"linePrefix")));return n;function r(r){if(null===r){e.consume(r);return}return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n}}},O={resolveAll:x()},b=v("string"),y=v("text");function v(e){return{tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return l(e)?i(e):o(e)}function o(e){if(null===e){t.consume(e);return}return t.enter("data"),t.consume(e),s}function s(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i=3&&(null===l||(0,s.Ch)(l))?(e.exit("thematicBreak"),t(l)):n(l)}(a)}}},S={name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,o=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:(0,s.pY)(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(_,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return(0,s.pY)(i)&&++o<10?(e.consume(i),t):(!r.interrupt||o<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),l(i)):n(i)}(t)}return n(t)};function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(h.w,r.interrupt?n:u,e.attempt(w,d,c))}function u(e){return r.containerState.initialBlankLine=!0,a++,d(e)}function c(t){return(0,s.xz)(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(h.w,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,(0,o.f)(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!(0,s.xz)(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(E,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,(0,o.f)(e,e.attempt(S,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},w={tokenize:function(e,t,n){let r=this;return(0,o.f)(e,function(e){let i=r.events[r.events.length-1];return!(0,s.xz)(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},E={tokenize:function(e,t,n){let r=this;return(0,o.f)(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)},partial:!0},C={name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return(0,s.xz)(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){let r=this;return function(t){return(0,s.xz)(t)?(0,o.f)(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(C,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};function A(e,t,n,r,i,a,o,l,u){let c=u||Number.POSITIVE_INFINITY,d=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),h):null===t||32===t||41===t||(0,s.Av)(t)?n(t):(e.enter(r),e.enter(o),e.enter(l),e.enter("chunkString",{contentType:"string"}),m(t))};function h(n){return 62===n?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(l),h(t)):null===t||60===t||(0,s.Ch)(t)?n(t):(e.consume(t),92===t?f:p)}function f(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function m(i){return!d&&(null===i||41===i||(0,s.z3)(i))?(e.exit("chunkString"),e.exit(l),e.exit(o),e.exit(r),t(i)):d999||null===h||91===h||93===h&&!o||94===h&&!u&&"_hiddenFootnoteSupport"in l.parser.constructs?n(h):93===h?(e.exit(a),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):(0,s.Ch)(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(h))}function d(t){return null===t||91===t||93===t||(0,s.Ch)(t)||u++>999?(e.exit("chunkString"),c(t)):(e.consume(t),o||(o=!(0,s.xz)(t)),92===t?h:d)}function h(t){return 91===t||92===t||93===t?(e.consume(t),u++,d):d(t)}}function P(e,t,n,r,i,a){let l;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),l=40===t?41:t,u):n(t)};function u(n){return n===l?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),c(n))}function c(t){return t===l?(e.exit(a),u(l)):null===t?n(t):(0,s.Ch)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,o.f)(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(t))}function d(t){return t===l||null===t||(0,s.Ch)(t)?(e.exit("chunkString"),c(t)):(e.consume(t),92===t?h:d)}function h(t){return t===l||92===t?(e.consume(t),d):d(t)}}var I=n(16226),N=n(11098);let $={tokenize:function(e,t,n){return function(t){return(0,s.z3)(t)?(0,I.S)(e,r)(t):n(t)};function r(t){return P(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return(0,s.xz)(t)?(0,o.f)(e,a,"whitespace")(t):a(t)}function a(e){return null===e||(0,s.Ch)(e)?t(e):n(e)}},partial:!0},L={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),(0,o.f)(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?a(n):(0,s.Ch)(n)?e.attempt(D,t,a)(n):(e.enter("codeFlowValue"),function n(r){return null===r||(0,s.Ch)(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function a(n){return e.exit("codeIndented"),t(n)}}},D={tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):(0,s.Ch)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):(0,o.f)(e,a,"linePrefix",5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):(0,s.Ch)(e)?i(e):n(e)}},partial:!0},Q={name:"setextUnderline",tokenize:function(e,t,n){let r;let i=this;return function(t){let l,u=i.events.length;for(;u--;)if("lineEnding"!==i.events[u][1].type&&"linePrefix"!==i.events[u][1].type&&"content"!==i.events[u][1].type){l="paragraph"===i.events[u][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||l)?(e.enter("setextHeadingLine"),r=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),(0,s.xz)(n)?(0,o.f)(e,a,"lineSuffix")(n):a(n))}(t)):n(t)};function a(r){return null===r||(0,s.Ch)(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,i,a=e.length;for(;a--;)if("enter"===e[a][0]){if("content"===e[a][1].type){n=a;break}"paragraph"===e[a][1].type&&(r=a)}else"content"===e[a][1].type&&e.splice(a,1),i||"definition"!==e[a][1].type||(i=a);let o={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",o,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[i][1].end)):e[n][1]=o,e.push(["exit",o,t]),e}},M=["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"],F=["pre","script","style","textarea"],B={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(h.w,t,n)}},partial:!0},U={tokenize:function(e,t,n){let r=this;return function(t){return(0,s.Ch)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},j={tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},z={name:"codeFenced",tokenize:function(e,t,n){let r;let i=this,a={tokenize:function(e,t,n){let a=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l};function l(t){return e.enter("codeFencedFence"),(0,s.xz)(t)?(0,o.f)(e,c,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(a++,e.consume(i),t):a>=u?(e.exit("codeFencedFenceSequence"),(0,s.xz)(i)?(0,o.f)(e,d,"whitespace")(i):d(i)):n(i)}(t)):n(t)}function d(r){return null===r||(0,s.Ch)(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0},l=0,u=0;return function(t){return function(t){let a=i.events[i.events.length-1];return l=a&&"linePrefix"===a[1].type?a[2].sliceSerialize(a[1],!0).length:0,r=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(u++,e.consume(i),t):u<3?n(i):(e.exit("codeFencedFenceSequence"),(0,s.xz)(i)?(0,o.f)(e,c,"whitespace")(i):c(i))}(t)}(t)};function c(a){return null===a||(0,s.Ch)(a)?(e.exit("codeFencedFence"),i.interrupt?t(a):e.check(j,h,g)(a)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||(0,s.Ch)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(i)):(0,s.xz)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),(0,o.f)(e,d,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(a))}function d(t){return null===t||(0,s.Ch)(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||(0,s.Ch)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function h(t){return e.attempt(a,g,p)(t)}function p(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),f}function f(t){return l>0&&(0,s.xz)(t)?(0,o.f)(e,m,"linePrefix",l+1)(t):m(t)}function m(t){return null===t||(0,s.Ch)(t)?e.check(j,h,g)(t):(e.enter("codeFlowValue"),function t(n){return null===n||(0,s.Ch)(n)?(e.exit("codeFlowValue"),m(n)):(e.consume(n),t)}(t))}function g(n){return e.exit("codeFenced"),t(n)}},concrete:!0};var W=n(44301);let Z={name:"characterReference",tokenize:function(e,t,n){let r,i;let a=this,o=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),l};function l(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),r=31,i=s.H$,c(t))}function u(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=s.AF,c):(e.enter("characterReferenceValue"),r=7,i=s.pY,c(t))}function c(l){if(59===l&&o){let r=e.exit("characterReferenceValue");return i!==s.H$||(0,W.T)(a.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(l),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(l)}return i(l)&&o++1&&e[d][1].end.offset-e[d][1].start.offset>1?2:1;let h=Object.assign({},e[n][1].end),p=Object.assign({},e[d][1].start);et(h,-s),et(p,s),a={type:s>1?"strongSequence":"emphasisSequence",start:h,end:Object.assign({},e[n][1].end)},o={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[d][1].start),end:p},i={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[d][1].start)},r={type:s>1?"strong":"emphasis",start:Object.assign({},a.start),end:Object.assign({},o.end)},e[n][1].end=Object.assign({},a.start),e[d][1].start=Object.assign({},o.end),l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=(0,u.V)(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=(0,u.V)(l,[["enter",r,t],["enter",a,t],["exit",a,t],["enter",i,t]]),l=(0,u.V)(l,(0,k.C)(t.parser.constructs.insideSpan.null,e.slice(n+1,d),t)),l=(0,u.V)(l,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",r,t]]),e[d][1].end.offset-e[d][1].start.offset?(c=2,l=(0,u.V)(l,[["enter",e[d][1],t],["exit",e[d][1],t]])):c=0,(0,u.d)(e,n-1,d-n+3,l),d=n+l.length-c-2;break}}for(d=-1;++da&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(a===i-1||i-4>a&&"whitespace"===e[i-2][1].type)&&(i-=a+1===i?2:4),i>a&&(n={type:"atxHeadingText",start:e[a][1].start,end:e[i][1].end},r={type:"chunkText",start:e[a][1].start,end:e[i][1].end,contentType:"text"},(0,u.d)(e,a,i-a+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e}},42:_,45:[Q,_],60:{name:"htmlFlow",tokenize:function(e,t,n){let r,i,a,o,l;let u=this;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c};function c(o){return 33===o?(e.consume(o),d):47===o?(e.consume(o),i=!0,f):63===o?(e.consume(o),r=3,u.interrupt?t:N):(0,s.jv)(o)?(e.consume(o),a=String.fromCharCode(o),m):n(o)}function d(i){return 45===i?(e.consume(i),r=2,h):91===i?(e.consume(i),r=5,o=0,p):(0,s.jv)(i)?(e.consume(i),r=4,u.interrupt?t:N):n(i)}function h(r){return 45===r?(e.consume(r),u.interrupt?t:N):n(r)}function p(r){let i="CDATA[";return r===i.charCodeAt(o++)?(e.consume(r),o===i.length)?u.interrupt?t:S:p:n(r)}function f(t){return(0,s.jv)(t)?(e.consume(t),a=String.fromCharCode(t),m):n(t)}function m(o){if(null===o||47===o||62===o||(0,s.z3)(o)){let l=47===o,c=a.toLowerCase();return!l&&!i&&F.includes(c)?(r=1,u.interrupt?t(o):S(o)):M.includes(a.toLowerCase())?(r=6,l)?(e.consume(o),g):u.interrupt?t(o):S(o):(r=7,u.interrupt&&!u.parser.lazy[u.now().line]?n(o):i?function t(n){return(0,s.xz)(n)?(e.consume(n),t):k(n)}(o):O(o))}return 45===o||(0,s.H$)(o)?(e.consume(o),a+=String.fromCharCode(o),m):n(o)}function g(r){return 62===r?(e.consume(r),u.interrupt?t:S):n(r)}function O(t){return 47===t?(e.consume(t),k):58===t||95===t||(0,s.jv)(t)?(e.consume(t),b):(0,s.xz)(t)?(e.consume(t),O):k(t)}function b(t){return 45===t||46===t||58===t||95===t||(0,s.H$)(t)?(e.consume(t),b):y(t)}function y(t){return 61===t?(e.consume(t),v):(0,s.xz)(t)?(e.consume(t),y):O(t)}function v(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,x):(0,s.xz)(t)?(e.consume(t),v):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||(0,s.z3)(n)?y(n):(e.consume(n),t)}(t)}function x(t){return t===l?(e.consume(t),l=null,T):null===t||(0,s.Ch)(t)?n(t):(e.consume(t),x)}function T(e){return 47===e||62===e||(0,s.xz)(e)?O(e):n(e)}function k(t){return 62===t?(e.consume(t),_):n(t)}function _(t){return null===t||(0,s.Ch)(t)?S(t):(0,s.xz)(t)?(e.consume(t),_):n(t)}function S(t){return 45===t&&2===r?(e.consume(t),A):60===t&&1===r?(e.consume(t),R):62===t&&4===r?(e.consume(t),$):63===t&&3===r?(e.consume(t),N):93===t&&5===r?(e.consume(t),I):(0,s.Ch)(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(B,L,w)(t)):null===t||(0,s.Ch)(t)?(e.exit("htmlFlowData"),w(t)):(e.consume(t),S)}function w(t){return e.check(U,E,L)(t)}function E(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),C}function C(t){return null===t||(0,s.Ch)(t)?w(t):(e.enter("htmlFlowData"),S(t))}function A(t){return 45===t?(e.consume(t),N):S(t)}function R(t){return 47===t?(e.consume(t),a="",P):S(t)}function P(t){if(62===t){let n=a.toLowerCase();return F.includes(n)?(e.consume(t),$):S(t)}return(0,s.jv)(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),P):S(t)}function I(t){return 93===t?(e.consume(t),N):S(t)}function N(t){return 62===t?(e.consume(t),$):45===t&&2===r?(e.consume(t),N):S(t)}function $(t){return null===t||(0,s.Ch)(t)?(e.exit("htmlFlowData"),L(t)):(e.consume(t),$)}function L(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(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},concrete:!0},61:Q,95:_,96:z,126:z},es={38:Z,92:q},el={[-5]:G,[-4]:G,[-3]:G,33:K,38:Z,42:ee,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return(0,s.jv)(t)?(e.consume(t),a):l(t)}function a(t){return 43===t||45===t||46===t||(0,s.H$)(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,o):(43===n||45===n||46===n||(0,s.H$)(n))&&r++<32?(e.consume(n),t):(r=0,l(n))}(t)):l(t)}function o(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||(0,s.Av)(r)?n(r):(e.consume(r),o)}function l(t){return 64===t?(e.consume(t),u):(0,s.n9)(t)?(e.consume(t),l):n(t)}function u(i){return(0,s.H$)(i)?function i(a){return 46===a?(e.consume(a),r=0,u):62===a?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(a),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(a){if((45===a||(0,s.H$)(a))&&r++<63){let n=45===a?t:i;return e.consume(a),n}return n(a)}(a)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,a;let l=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),u};function u(t){return 33===t?(e.consume(t),c):47===t?(e.consume(t),T):63===t?(e.consume(t),v):(0,s.jv)(t)?(e.consume(t),_):n(t)}function c(t){return 45===t?(e.consume(t),d):91===t?(e.consume(t),i=0,m):(0,s.jv)(t)?(e.consume(t),y):n(t)}function d(t){return 45===t?(e.consume(t),f):n(t)}function h(t){return null===t?n(t):45===t?(e.consume(t),p):(0,s.Ch)(t)?(a=h,I(t)):(e.consume(t),h)}function p(t){return 45===t?(e.consume(t),f):h(t)}function f(e){return 62===e?P(e):45===e?p(e):h(e)}function m(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?g:m):n(t)}function g(t){return null===t?n(t):93===t?(e.consume(t),O):(0,s.Ch)(t)?(a=g,I(t)):(e.consume(t),g)}function O(t){return 93===t?(e.consume(t),b):g(t)}function b(t){return 62===t?P(t):93===t?(e.consume(t),b):g(t)}function y(t){return null===t||62===t?P(t):(0,s.Ch)(t)?(a=y,I(t)):(e.consume(t),y)}function v(t){return null===t?n(t):63===t?(e.consume(t),x):(0,s.Ch)(t)?(a=v,I(t)):(e.consume(t),v)}function x(e){return 62===e?P(e):v(e)}function T(t){return(0,s.jv)(t)?(e.consume(t),k):n(t)}function k(t){return 45===t||(0,s.H$)(t)?(e.consume(t),k):function t(n){return(0,s.Ch)(n)?(a=t,I(n)):(0,s.xz)(n)?(e.consume(n),t):P(n)}(t)}function _(t){return 45===t||(0,s.H$)(t)?(e.consume(t),_):47===t||62===t||(0,s.z3)(t)?S(t):n(t)}function S(t){return 47===t?(e.consume(t),P):58===t||95===t||(0,s.jv)(t)?(e.consume(t),w):(0,s.Ch)(t)?(a=S,I(t)):(0,s.xz)(t)?(e.consume(t),S):P(t)}function w(t){return 45===t||46===t||58===t||95===t||(0,s.H$)(t)?(e.consume(t),w):function t(n){return 61===n?(e.consume(n),E):(0,s.Ch)(n)?(a=t,I(n)):(0,s.xz)(n)?(e.consume(n),t):S(n)}(t)}function E(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,C):(0,s.Ch)(t)?(a=E,I(t)):(0,s.xz)(t)?(e.consume(t),E):(e.consume(t),A)}function C(t){return t===r?(e.consume(t),r=void 0,R):null===t?n(t):(0,s.Ch)(t)?(a=C,I(t)):(e.consume(t),C)}function A(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||(0,s.z3)(t)?S(t):(e.consume(t),A)}function R(e){return 47===e||62===e||(0,s.z3)(e)?S(e):n(e)}function P(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function I(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),N}function N(t){return(0,s.xz)(t)?(0,o.f)(e,$,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):$(t)}function $(t){return e.enter("htmlTextData"),a(t)}}}],91:en,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return(0,s.Ch)(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},q],93:H,95:ee,96:{name:"codeText",tokenize:function(e,t,n){let r,i,a=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),a++,t):(e.exit("codeTextSequence"),o(n))}(t)};function o(u){return null===u?n(u):32===u?(e.enter("space"),e.consume(u),e.exit("space"),o):96===u?(i=e.enter("codeTextSequence"),r=0,function n(o){return 96===o?(e.consume(o),r++,n):r===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(o)):(i.type="codeTextData",l(o))}(u)):(0,s.Ch)(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),o):(e.enter("codeTextData"),l(u))}function l(t){return null===t||32===t||96===t||(0,s.Ch)(t)?(e.exit("codeTextData"),o(t)):(e.consume(t),l)}},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t0){let e=i.tokenStack[i.tokenStack.length-1],t=e[1]||ey;t.call(i,void 0,e[0])}for(n.position={start:eb(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:eb(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}o>0&&n.push(e[a].slice(0,o))}return n}(o,e)}function f(){let{line:e,column:t,offset:n,_index:i,_bufferIndex:a}=r;return{line:e,column:t,offset:n,_index:i,_bufferIndex:a}}function m(e,t){t.restore()}function g(e,t){return function(n,i,a){let o,s,u,h;return Array.isArray(n)?p(n):"tokenize"in n?p([n]):function(e){let t=null!==e&&n[e],r=null!==e&&n.null,i=[...Array.isArray(t)?t:t?[t]:[],...Array.isArray(r)?r:r?[r]:[]];return p(i)(e)};function p(e){return(o=e,s=0,0===e.length)?a:m(e[s])}function m(e){return function(n){return(h=function(){let e=f(),t=d.previous,n=d.currentConstruct,i=d.events.length,a=Array.from(l);return{restore:function(){r=e,d.previous=t,d.currentConstruct=n,d.events.length=i,l=a,b()},from:i}}(),u=e,e.partial||(d.currentConstruct=e),e.name&&d.parser.constructs.disable.null.includes(e.name))?O(n):e.tokenize.call(t?Object.assign(Object.create(d),t):d,c,g,O)(n)}}function g(t){return e(u,h),i}function O(e){return(h.restore(),++s0?" ":"")),u.shift(4),c+=u.move((0,o.Q)((0,a.K)(e,n,u.current()),x)),d(),c}function x(e,t,n){return 0===t?e:(n?"":" ")+e}y.peek=function(){return"["}},42513:function(e,t,n){"use strict";n.d(t,{Y:function(){return i}});var r=n(17466);function i(e,t,n){let i=e.value||"",a="`",o=-1;for(;RegExp("(^|[^`])"+a+"([^`]|$)").test(i);)a+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++o-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+o);let s=o.length+1;("tab"===a||"mixed"===a&&(t&&"list"===t.type&&t.spread||e.spread))&&(s=4*Math.ceil(s/4));let l=n.createTracker(i);l.move(o+" ".repeat(s-o.length)),l.shift(s);let u=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,l.current()),function(e,t,n){return t?(n?"":" ".repeat(s))+e:(n?o:o+" ".repeat(s-o.length))+e});return u(),c}},83132:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var r=n(47881);function i(e){return e.label||!e.identifier?e.label||"":(0,r.v)(e.identifier)}},64806:function(e,t,n){"use strict";function r(e){let t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}n.d(t,{g:function(){return r}})},77018:function(e,t,n){"use strict";function r(e,t,n){let r=t.indexStack,i=e.children||[],a=t.createTracker(n),o=[],s=-1;for(r.push(-1);++s\n\n"}return"\n\n"}(n,i[s+1],e,t)))}return r.pop(),o.join("")}n.d(t,{K:function(){return r}})},87891:function(e,t,n){"use strict";function r(e,t,n){let r=t.indexStack,i=e.children||[],a=[],o=-1,s=n.before;r.push(-1);let l=t.createTracker(n);for(;++o0&&("\r"===s||"\n"===s)&&"html"===c.type&&(a[a.length-1]=a[a.length-1].replace(/(\r?\n|\r)$/," "),s=" ",(l=t.createTracker(n)).move(a.join(""))),a.push(l.move(t.handle(c,e,t,{...l.current(),before:s,after:u}))),s=a[a.length-1].slice(-1)}return r.pop(),a.join("")}n.d(t,{p:function(){return r}})},21665:function(e,t,n){"use strict";n.d(t,{Q:function(){return i}});let r=/\r?\n|\r/g;function i(e,t){let n;let i=[],a=0,o=0;for(;n=r.exec(e);)s(e.slice(a,n.index)),i.push(n[0]),a=n.index+n[0].length,o++;return s(e.slice(a)),i.join("");function s(e){i.push(t(e,o,!e))}}},17466:function(e,t,n){"use strict";function r(e){if(!e._compiled){let t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}n.d(t,{T:function(){return r}})},40585:function(e,t,n){"use strict";function r(e,t){return i(e,t.inConstruct,!0)&&!i(e,t.notInConstruct,!1)}function i(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r=p)&&(!(e+1{let n=c.Z.parse(e),r={};for(let e in t)t[e]&&(r[e]=n[e]+t[e]);return(0,d.Z)(e,r)},p=n(51117),f=(e,t,n=50)=>{let{r:r,g:i,b:a,a:o}=c.Z.parse(e),{r:s,g:l,b:u,a:d}=c.Z.parse(t),h=n/100,f=2*h-1,m=o-d,g=((f*m==-1?f:(f+m)/(1+f*m))+1)/2,O=1-g;return(0,p.Z)(r*g+s*O,i*g+l*O,a*g+u*O,o*h+d*(1-h))},m=(e,t=100)=>{let n=c.Z.parse(e);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,f(n,e,t)},g=n(7201),O=n(12281),b=n(91619),y=n(42454),v=n(59236),x=n(20211),T=n(92190),k=n(79697);let _={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},S={trace:(...e)=>{},debug:(...e)=>{},info:(...e)=>{},warn:(...e)=>{},error:(...e)=>{},fatal:(...e)=>{}},w=function(e="fatal"){let t=_.fatal;"string"==typeof e?(e=e.toLowerCase())in _&&(t=_[e]):"number"==typeof e&&(t=e),S.trace=()=>{},S.debug=()=>{},S.info=()=>{},S.warn=()=>{},S.error=()=>{},S.fatal=()=>{},t<=_.fatal&&(S.fatal=console.error?console.error.bind(console,E("FATAL"),"color: orange"):console.log.bind(console,"\x1b[35m",E("FATAL"))),t<=_.error&&(S.error=console.error?console.error.bind(console,E("ERROR"),"color: orange"):console.log.bind(console,"\x1b[31m",E("ERROR"))),t<=_.warn&&(S.warn=console.warn?console.warn.bind(console,E("WARN"),"color: orange"):console.log.bind(console,`\x1b[33m`,E("WARN"))),t<=_.info&&(S.info=console.info?console.info.bind(console,E("INFO"),"color: lightblue"):console.log.bind(console,"\x1b[34m",E("INFO"))),t<=_.debug&&(S.debug=console.debug?console.debug.bind(console,E("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",E("DEBUG"))),t<=_.trace&&(S.trace=console.debug?console.debug.bind(console,E("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",E("TRACE")))},E=e=>{let t=o().format("ss.SSS");return`%c${t} : ${e} : `},C=//gi,A=e=>u.sanitize(e),R=(e,t)=>{var n;if((null==(n=t.flowchart)?void 0:n.htmlLabels)!==!1){let n=t.securityLevel;"antiscript"===n||"strict"===n?e=A(e):"loose"!==n&&(e=(e=(e=N(e)).replace(//g,">")).replace(/=/g,"="),e=I(e))}return e},P=(e,t)=>e?e=t.dompurifyConfig?u.sanitize(R(e,t),t.dompurifyConfig).toString():u.sanitize(R(e,t),{FORBID_TAGS:["style"]}).toString():e,I=e=>e.replace(/#br#/g,"
"),N=e=>e.replace(C,"#br#"),$=e=>!(!1===e||["false","null","0"].includes(String(e).trim().toLowerCase())),L=function(e){let t=e.split(/(,)/),n=[];for(let e=0;e0&&e+1Math.max(0,e.split(t).length-1),Q=(e,t)=>{let n=D(e,"~"),r=D(t,"~");return 1===n&&1===r},M=e=>{let t=D(e,"~"),n=!1;if(t<=1)return e;t%2!=0&&e.startsWith("~")&&(e=e.substring(1),n=!0);let r=[...e],i=r.indexOf("~"),a=r.lastIndexOf("~");for(;-1!==i&&-1!==a&&i!==a;)r[i]="<",r[a]=">",i=r.indexOf("~"),a=r.lastIndexOf("~");return n&&r.unshift("~"),r.join("")},F={getRows:e=>{if(!e)return[""];let t=N(e).replace(/\\n/g,"#br#");return t.split("#br#")},sanitizeText:P,sanitizeTextOrArray:(e,t)=>"string"==typeof e?P(e,t):e.flat().map(e=>P(e,t)),hasBreaks:e=>C.test(e),splitBreaks:e=>e.split(C),lineBreakRegex:C,removeScript:A,getUrl:e=>{let t="";return e&&(t=(t=(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replaceAll(/\(/g,"\\(")).replaceAll(/\)/g,"\\)")),t},evaluate:$,getMax:function(...e){let t=e.filter(e=>!isNaN(e));return Math.max(...t)},getMin:function(...e){let t=e.filter(e=>!isNaN(e));return Math.min(...t)}},B=(e,t)=>t?h(e,{s:-40,l:10}):h(e,{s:-40,l:-10}),U="#ffffff",j="#f2f2f2",z=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||h(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||h(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||B(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||B(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||B(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||B(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||m(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||m(this.tertiaryColor),this.lineColor=this.lineColor||m(this.background),this.arrowheadColor=this.arrowheadColor||m(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?(0,g.Z)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||(0,g.Z)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||m(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||(0,O.Z)(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||h(this.primaryColor,{h:30}),this.cScale4=this.cScale4||h(this.primaryColor,{h:60}),this.cScale5=this.cScale5||h(this.primaryColor,{h:90}),this.cScale6=this.cScale6||h(this.primaryColor,{h:120}),this.cScale7=this.cScale7||h(this.primaryColor,{h:150}),this.cScale8=this.cScale8||h(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||h(this.primaryColor,{h:270}),this.cScale10=this.cScale10||h(this.primaryColor,{h:300}),this.cScale11=this.cScale11||h(this.primaryColor,{h:330}),this.darkMode)for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},W=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=(0,O.Z)(this.primaryColor,16),this.tertiaryColor=h(this.primaryColor,{h:-160}),this.primaryBorderColor=m(this.background),this.secondaryBorderColor=B(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=B(this.tertiaryColor,this.darkMode),this.primaryTextColor=m(this.primaryColor),this.secondaryTextColor=m(this.secondaryColor),this.tertiaryTextColor=m(this.tertiaryColor),this.lineColor=m(this.background),this.textColor=m(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=(0,O.Z)(m("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=(0,p.Z)(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=(0,g.Z)("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=(0,g.Z)(this.sectionBkgColor,10),this.taskBorderColor=(0,p.Z)(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=(0,p.Z)(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){this.secondBkg=(0,O.Z)(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=(0,O.Z)(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=(0,O.Z)(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=h(this.primaryColor,{h:64}),this.fillType3=h(this.secondaryColor,{h:64}),this.fillType4=h(this.primaryColor,{h:-64}),this.fillType5=h(this.secondaryColor,{h:-64}),this.fillType6=h(this.primaryColor,{h:128}),this.fillType7=h(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||h(this.primaryColor,{h:30}),this.cScale4=this.cScale4||h(this.primaryColor,{h:60}),this.cScale5=this.cScale5||h(this.primaryColor,{h:90}),this.cScale6=this.cScale6||h(this.primaryColor,{h:120}),this.cScale7=this.cScale7||h(this.primaryColor,{h:150}),this.cScale8=this.cScale8||h(this.primaryColor,{h:210}),this.cScale9=this.cScale9||h(this.primaryColor,{h:270}),this.cScale10=this.cScale10||h(this.primaryColor,{h:300}),this.cScale11=this.cScale11||h(this.primaryColor,{h:330});for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},Z=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=h(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=h(this.primaryColor,{h:-160}),this.primaryBorderColor=B(this.primaryColor,this.darkMode),this.secondaryBorderColor=B(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=B(this.tertiaryColor,this.darkMode),this.primaryTextColor=m(this.primaryColor),this.secondaryTextColor=m(this.secondaryColor),this.tertiaryTextColor=m(this.tertiaryColor),this.lineColor=m(this.background),this.textColor=m(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=(0,p.Z)(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||h(this.primaryColor,{h:30}),this.cScale4=this.cScale4||h(this.primaryColor,{h:60}),this.cScale5=this.cScale5||h(this.primaryColor,{h:90}),this.cScale6=this.cScale6||h(this.primaryColor,{h:120}),this.cScale7=this.cScale7||h(this.primaryColor,{h:150}),this.cScale8=this.cScale8||h(this.primaryColor,{h:210}),this.cScale9=this.cScale9||h(this.primaryColor,{h:270}),this.cScale10=this.cScale10||h(this.primaryColor,{h:300}),this.cScale11=this.cScale11||h(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||(0,g.Z)(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||(0,g.Z)(this.tertiaryColor,40);for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},q=e=>{let t=new Z;return t.calculate(e),t},G=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=(0,O.Z)("#cde498",10),this.primaryBorderColor=B(this.primaryColor,this.darkMode),this.secondaryBorderColor=B(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=B(this.tertiaryColor,this.darkMode),this.primaryTextColor=m(this.primaryColor),this.secondaryTextColor=m(this.secondaryColor),this.tertiaryTextColor=m(this.primaryColor),this.lineColor=m(this.background),this.textColor=m(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.actorBorder=(0,g.Z)(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||h(this.primaryColor,{h:30}),this.cScale4=this.cScale4||h(this.primaryColor,{h:60}),this.cScale5=this.cScale5||h(this.primaryColor,{h:90}),this.cScale6=this.cScale6||h(this.primaryColor,{h:120}),this.cScale7=this.cScale7||h(this.primaryColor,{h:150}),this.cScale8=this.cScale8||h(this.primaryColor,{h:210}),this.cScale9=this.cScale9||h(this.primaryColor,{h:270}),this.cScale10=this.cScale10||h(this.primaryColor,{h:300}),this.cScale11=this.cScale11||h(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||(0,g.Z)(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||(0,g.Z)(this.tertiaryColor,40);for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}};class H{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=(0,O.Z)(this.contrast,55),this.background="#ffffff",this.tertiaryColor=h(this.primaryColor,{h:-160}),this.primaryBorderColor=B(this.primaryColor,this.darkMode),this.secondaryBorderColor=B(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=B(this.tertiaryColor,this.darkMode),this.primaryTextColor=m(this.primaryColor),this.secondaryTextColor=m(this.secondaryColor),this.tertiaryTextColor=m(this.tertiaryColor),this.lineColor=m(this.background),this.textColor=m(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.secondBkg=(0,O.Z)(this.contrast,55),this.border2=this.contrast,this.actorBorder=(0,O.Z)(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}}let Y={base:{getThemeVariables:e=>{let t=new z;return t.calculate(e),t}},dark:{getThemeVariables:e=>{let t=new W;return t.calculate(e),t}},default:{getThemeVariables:q},forest:{getThemeVariables:e=>{let t=new G;return t.calculate(e),t}},neutral:{getThemeVariables:e=>{let t=new H;return t.calculate(e),t}}},X={flowchart:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},theme:"default",maxTextSize:5e4,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize"],deterministicIds:!1,fontSize:16},V={...X,deterministicIDSeed:void 0,themeCSS:void 0,themeVariables:Y.default.getThemeVariables(),sequence:{...X.sequence,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{...X.gantt,tickInterval:void 0,useWidth:void 0},c4:{...X.c4,useWidth:void 0,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}},pie:{...X.pie,useWidth:984},requirement:{...X.requirement,useWidth:void 0},gitGraph:{...X.gitGraph,useMaxWidth:!1},sankey:{...X.sankey,useMaxWidth:!1}},K=(e,t="")=>Object.keys(e).reduce((n,r)=>Array.isArray(e[r])?n:"object"==typeof e[r]&&null!==e[r]?[...n,t+r,...K(e[r],"")]:[...n,t+r],[]),J=new Set(K(V,"")),ee=V,et=e=>{if(S.debug("sanitizeDirective called with",e),"object"==typeof e&&null!=e){if(Array.isArray(e)){e.forEach(e=>et(e));return}for(let t of Object.keys(e)){if(S.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!J.has(t)||null==e[t]){S.debug("sanitize deleting key: ",t),delete e[t];continue}if("object"==typeof e[t]){S.debug("sanitizing object",t),et(e[t]);continue}let n=["themeCSS","fontFamily","altFontFamily"];for(let r of n)t.includes(r)&&(S.debug("sanitizing css option",t),e[t]=en(e[t]))}if(e.themeVariables)for(let t of Object.keys(e.themeVariables)){let n=e.themeVariables[t];(null==n?void 0:n.match)&&!n.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]="")}S.debug("After sanitization",e)}},en=e=>{let t=0,n=0;for(let r of e){if(t{for(let{id:t,detector:n,loader:r}of e)ec(t,n,r)},ec=(e,t,n)=>{es[e]?S.error(`Detector with key ${e} already exists`):es[e]={detector:t,loader:n},S.debug(`Detector with key ${e} added${n?" with loader":""}`)},ed=e=>es[e].loader,eh=(e,t,{depth:n=2,clobber:r=!1}={})=>{let i={depth:n,clobber:r};return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(t=>eh(e,t,i)),e):Array.isArray(t)&&Array.isArray(e)?(t.forEach(t=>{e.includes(t)||e.push(t)}),e):void 0===e||n<=0?null!=e&&"object"==typeof e&&"object"==typeof t?Object.assign(e,t):t:(void 0!==t&&"object"==typeof e&&"object"==typeof t&&Object.keys(t).forEach(i=>{"object"==typeof t[i]&&(void 0===e[i]||"object"==typeof e[i])?(void 0===e[i]&&(e[i]=Array.isArray(t[i])?[]:{}),e[i]=eh(e[i],t[i],{depth:n-1,clobber:r})):(r||"object"!=typeof e[i]&&"object"!=typeof t[i])&&(e[i]=t[i])}),e)},ep=eh,ef="​",em={curveBasis:l.$0Z,curveBasisClosed:l.Dts,curveBasisOpen:l.WQY,curveBumpX:l.qpX,curveBumpY:l.u93,curveBundle:l.tFB,curveCardinalClosed:l.OvA,curveCardinalOpen:l.dCK,curveCardinal:l.YY7,curveCatmullRomClosed:l.fGX,curveCatmullRomOpen:l.$m7,curveCatmullRom:l.zgE,curveLinear:l.c_6,curveLinearClosed:l.fxm,curveMonotoneX:l.FdL,curveMonotoneY:l.ak_,curveNatural:l.SxZ,curveStep:l.eA_,curveStepAfter:l.jsv,curveStepBefore:l.iJ},eg=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,eO=function(e,t=null){try{let n;let r=RegExp(`[%]{2}(?![{]${eg.source})(?=[}][%]{2}).* -`,"ig");e=e.trim().replace(r,"").replace(/'/gm,'"'),S.debug(`Detecting diagram directive${null!==t?" type:"+t:""} based on the text:${e}`);let i=[];for(;null!==(n=ei.exec(e));)if(n.index===ei.lastIndex&&ei.lastIndex++,n&&!t||t&&n[1]&&n[1].match(t)||t&&n[2]&&n[2].match(t)){let e=n[1]?n[1]:n[2],t=n[3]?n[3].trim():n[4]?JSON.parse(n[4].trim()):null;i.push({type:e,args:t})}if(0===i.length)return{type:e,args:null};return 1===i.length?i[0]:i}catch(n){return S.error(`ERROR: ${n.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}};function eb(e,t){if(!e)return t;let n=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return em[n]??t}function ey(e,t){return e&&t?Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0}let ev=(e,t=2)=>{let n=Math.pow(10,t);return Math.round(e*n)/n},ex=(e,t)=>{let n;let r=t;for(let t of e){if(n){let e=ey(t,n);if(e=1)return{x:t.x,y:t.y};if(i>0&&i<1)return{x:ev((1-i)*n.x+i*t.x,5),y:ev((1-i)*n.y+i*t.y,5)}}}n=t}throw Error("Could not find a suitable point for the given distance")};function eT(e){let t="",n="";for(let r of e)void 0!==r&&(r.startsWith("color:")||r.startsWith("text-align:")?n=n+r+";":t=t+r+";");return{style:t,labelStyle:n}}let ek=0,e_=()=>(ek++,"id-"+Math.random().toString(36).substr(2,12)+"-"+ek),eS=e=>(function(e){let t="",n="0123456789abcdef",r=n.length;for(let i=0;i{if(!e||(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
"},n),F.lineBreakRegex.test(e)))return e;let r=e.split(" "),i=[],a="";return r.forEach((e,o)=>{let s=eR(`${e} `,n),l=eR(a,n);if(s>t){let{hyphenatedStrings:r,remainingWord:o}=eC(e,t,"-",n);i.push(a,...r),a=o}else l+s>=t?(i.push(a),a=e):a=[a,e].filter(Boolean).join(" ");let u=o+1===r.length;u&&i.push(a)}),i.filter(e=>""!==e).join(n.joinWith)},(e,t,n)=>`${e}${t}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`),eC=(0,y.Z)((e,t,n="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);let i=[...e],a=[],o="";return i.forEach((e,s)=>{let l=`${o}${e}`,u=eR(l,r);if(u>=t){let e=i.length===s+1,t=`${l}${n}`;a.push(e?l:t),o=""}else o=l}),{hyphenatedStrings:a,remainingWord:o}},(e,t,n="-",r)=>`${e}${t}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function eA(e,t){return eP(e,t).height}function eR(e,t){return eP(e,t).width}let eP=(0,y.Z)((e,t)=>{let{fontSize:n=12,fontFamily:r="Arial",fontWeight:i=400}=t;if(!e)return{width:0,height:0};let[,a]=eI(n),o=e.split(F.lineBreakRegex),s=[],u=(0,l.Ys)("body");if(!u.remove)return{width:0,height:0,lineHeight:0};let c=u.append("svg");for(let e of["sans-serif",r]){let t=0,n={width:0,height:0,lineHeight:0};for(let r of o){let o={x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""};o.text=r||ef;let s=ew(c,o).style("font-size",a).style("font-weight",i).style("font-family",e),l=(s._groups||s)[0][0].getBBox();if(0===l.width&&0===l.height)throw Error("svg element not in render tree");n.width=Math.round(Math.max(n.width,l.width)),t=Math.round(l.height),n.height+=t,n.lineHeight=Math.round(Math.max(n.lineHeight,t))}s.push(n)}c.remove();let d=isNaN(s[1].height)||isNaN(s[1].width)||isNaN(s[1].lineHeight)||s[0].height>s[1].height&&s[0].width>s[1].width&&s[0].lineHeight>s[1].lineHeight?0:1;return s[d]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),eI=e=>{if("number"==typeof e)return[e,e+"px"];let t=parseInt(e??"",10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]};function eN(e,t){return(0,v.Z)({},e,t)}let e$={assignWithDepth:ep,wrapLabel:eE,calculateTextHeight:eA,calculateTextWidth:eR,calculateTextDimensions:eP,cleanAndMerge:eN,detectInit:function(e,t){let n=eO(e,/(?:init\b)|(?:initialize\b)/),r={};if(Array.isArray(n)){let e=n.map(e=>e.args);et(e),r=ep(r,[...e])}else r=n.args;if(!r)return;let i=el(e,t),a="config";return void 0!==r[a]&&("flowchart-v2"===i&&(i="flowchart"),r[i]=r[a],delete r[a]),r},detectDirective:eO,isSubstringInArray:function(e,t){for(let[n,r]of t.entries())if(r.match(e))return n;return -1},interpolateToCurve:eb,calcLabelPosition:function(e){return 1===e.length?e[0]:function(e){let t;let n=0;e.forEach(e=>{n+=ey(e,t),t=e});let r=n/2;return ex(e,r)}(e)},calcCardinalityPosition:(e,t,n)=>{S.info(`our points ${JSON.stringify(t)}`),t[0]!==n&&(t=t.reverse());let r=ex(t,25),i=e?10:5,a=Math.atan2(t[0].y-r.y,t[0].x-r.x),o={x:0,y:0};return o.x=Math.sin(a)*i+(t[0].x+r.x)/2,o.y=-Math.cos(a)*i+(t[0].y+r.y)/2,o},calcTerminalLabelPosition:function(e,t,n){let r=structuredClone(n);S.info("our points",r),"start_left"!==t&&"start_right"!==t&&r.reverse();let i=ex(r,25+e),a=10+.5*e,o=Math.atan2(r[0].y-i.y,r[0].x-i.x),s={x:0,y:0};return"start_left"===t?(s.x=Math.sin(o+Math.PI)*a+(r[0].x+i.x)/2,s.y=-Math.cos(o+Math.PI)*a+(r[0].y+i.y)/2):"end_right"===t?(s.x=Math.sin(o-Math.PI)*a+(r[0].x+i.x)/2-5,s.y=-Math.cos(o-Math.PI)*a+(r[0].y+i.y)/2-5):"end_left"===t?(s.x=Math.sin(o)*a+(r[0].x+i.x)/2-5,s.y=-Math.cos(o)*a+(r[0].y+i.y)/2-5):(s.x=Math.sin(o)*a+(r[0].x+i.x)/2,s.y=-Math.cos(o)*a+(r[0].y+i.y)/2),s},formatUrl:function(e,t){let n=e.trim();return n?"loose"!==t.securityLevel?(0,s.Nm)(n):n:void 0},getStylesFromArray:eT,generateId:e_,random:eS,runFunc:(e,...t)=>{let n=e.split("."),r=n.length-1,i=n[r],a=window;for(let t=0;t{var i;if(!r)return;let a=null==(i=e.node())?void 0:i.getBBox();a&&e.append("text").text(r).attr("x",a.x+a.width/2).attr("y",-n).attr("class",t)},parseFontSize:eI,InitIDGenerator:class{constructor(e=!1,t){this.count=0,this.count=t?t.length:0,this.next=e?()=>this.count++:()=>Date.now()}}},eL="10.5.0",eD=Object.freeze(ee),eQ=ep({},eD),eM=[],eF=ep({},eD),eB=(e,t)=>{let n=ep({},e),r={};for(let e of t)eq(e),r=ep(r,e);if(n=ep(n,r),r.theme&&r.theme in Y){let e=ep({},i),t=ep(e.themeVariables||{},r.themeVariables);n.theme&&n.theme in Y&&(n.themeVariables=Y[n.theme].getThemeVariables(t))}return eK(eF=n),eF},eU=e=>(eQ=ep({},eD),eQ=ep(eQ,e),e.theme&&Y[e.theme]&&(eQ.themeVariables=Y[e.theme].getThemeVariables(e.themeVariables)),eB(eQ,eM),eQ),ej=e=>{i=ep({},e)},ez=()=>ep({},eQ),eW=e=>(eK(e),ep(eF,e),eZ()),eZ=()=>ep({},eF),eq=e=>{e&&(["secure",...eQ.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(S.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])}),Object.keys(e).forEach(t=>{t.startsWith("__")&&delete e[t]}),Object.keys(e).forEach(t=>{"string"==typeof e[t]&&(e[t].includes("<")||e[t].includes(">")||e[t].includes("url(data:"))&&delete e[t],"object"==typeof e[t]&&eq(e[t])}))},eG=e=>{et(e),!e.fontFamily||e.themeVariables&&e.themeVariables.fontFamily||(e.themeVariables={fontFamily:e.fontFamily}),eM.push(e),eB(eQ,eM)},eH=(e=eQ)=>{eB(e,eM=[])},eY={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},eX={},eV=e=>{eX[e]||(S.warn(eY[e]),eX[e]=!0)},eK=e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&eV("LAZY_LOAD_DEPRECATED")},eJ=async()=>{let{diagram:e}=await n.e(425).then(n.bind(n,40425));return{id:"c4",diagram:e}},e1={id:"c4",detector:e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),loader:eJ},e0="flowchart",e2=async()=>{let{diagram:e}=await Promise.all([n.e(1644),n.e(580),n.e(7644),n.e(6320),n.e(3880)]).then(n.bind(n,53880));return{id:e0,diagram:e}},e5={id:e0,detector:(e,t)=>{var n,r;return(null==(n=null==t?void 0:t.flowchart)?void 0:n.defaultRenderer)!=="dagre-wrapper"&&(null==(r=null==t?void 0:t.flowchart)?void 0:r.defaultRenderer)!=="elk"&&/^\s*graph/.test(e)},loader:e2},e9="flowchart-v2",e4=async()=>{let{diagram:e}=await Promise.all([n.e(1644),n.e(580),n.e(7644),n.e(6320),n.e(4626)]).then(n.bind(n,54626));return{id:e9,diagram:e}},e3={id:e9,detector:(e,t)=>{var n,r,i;return(null==(n=null==t?void 0:t.flowchart)?void 0:n.defaultRenderer)!=="dagre-d3"&&(null==(r=null==t?void 0:t.flowchart)?void 0:r.defaultRenderer)!=="elk"&&(!!/^\s*graph/.test(e)&&(null==(i=null==t?void 0:t.flowchart)?void 0:i.defaultRenderer)==="dagre-wrapper"||/^\s*flowchart/.test(e))},loader:e4},e8=async()=>{let{diagram:e}=await Promise.all([n.e(1644),n.e(8309)]).then(n.bind(n,98309));return{id:"er",diagram:e}},e6={id:"er",detector:e=>/^\s*erDiagram/.test(e),loader:e8},e7="gitGraph",te=async()=>{let{diagram:e}=await n.e(5086).then(n.bind(n,5086));return{id:e7,diagram:e}},tt={id:e7,detector:e=>/^\s*gitGraph/.test(e),loader:te},tn="gantt",tr=async()=>{let{diagram:e}=await n.e(1554).then(n.bind(n,31554));return{id:tn,diagram:e}},ti={id:tn,detector:e=>/^\s*gantt/.test(e),loader:tr},ta="info",to=async()=>{let{diagram:e}=await n.e(2693).then(n.bind(n,62693));return{id:ta,diagram:e}},ts={id:ta,detector:e=>/^\s*info/.test(e),loader:to},tl=async()=>{let{diagram:e}=await n.e(7875).then(n.bind(n,47875));return{id:"pie",diagram:e}},tu={id:"pie",detector:e=>/^\s*pie/.test(e),loader:tl},tc="quadrantChart",td=async()=>{let{diagram:e}=await n.e(2069).then(n.bind(n,42069));return{id:tc,diagram:e}},th={id:tc,detector:e=>/^\s*quadrantChart/.test(e),loader:td},tp="requirement",tf=async()=>{let{diagram:e}=await Promise.all([n.e(1644),n.e(8841)]).then(n.bind(n,68841));return{id:tp,diagram:e}},tm={id:tp,detector:e=>/^\s*requirement(Diagram)?/.test(e),loader:tf},tg="sequence",tO=async()=>{let{diagram:e}=await n.e(9770).then(n.bind(n,39770));return{id:tg,diagram:e}},tb={id:tg,detector:e=>/^\s*sequenceDiagram/.test(e),loader:tO},ty="class",tv=async()=>{let{diagram:e}=await Promise.all([n.e(1644),n.e(6281),n.e(5411)]).then(n.bind(n,95411));return{id:ty,diagram:e}},tx={id:ty,detector:(e,t)=>{var n;return(null==(n=null==t?void 0:t.class)?void 0:n.defaultRenderer)!=="dagre-wrapper"&&/^\s*classDiagram/.test(e)},loader:tv},tT="classDiagram",tk=async()=>{let{diagram:e}=await Promise.all([n.e(1644),n.e(580),n.e(7644),n.e(6281),n.e(8031)]).then(n.bind(n,38031));return{id:tT,diagram:e}},t_={id:tT,detector:(e,t)=>{var n;return!!/^\s*classDiagram/.test(e)&&(null==(n=null==t?void 0:t.class)?void 0:n.defaultRenderer)==="dagre-wrapper"||/^\s*classDiagram-v2/.test(e)},loader:tk},tS="state",tw=async()=>{let{diagram:e}=await Promise.all([n.e(1644),n.e(2990),n.e(4206)]).then(n.bind(n,94206));return{id:tS,diagram:e}},tE={id:tS,detector:(e,t)=>{var n;return(null==(n=null==t?void 0:t.state)?void 0:n.defaultRenderer)!=="dagre-wrapper"&&/^\s*stateDiagram/.test(e)},loader:tw},tC="stateDiagram",tA=async()=>{let{diagram:e}=await Promise.all([n.e(1644),n.e(580),n.e(7644),n.e(2990),n.e(4284)]).then(n.bind(n,4284));return{id:tC,diagram:e}},tR={id:tC,detector:(e,t)=>{var n;return!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&(null==(n=null==t?void 0:t.state)?void 0:n.defaultRenderer)==="dagre-wrapper")},loader:tA},tP="journey",tI=async()=>{let{diagram:e}=await n.e(8764).then(n.bind(n,18764));return{id:tP,diagram:e}},tN={id:tP,detector:e=>/^\s*journey/.test(e),loader:tI},t$=e=>{var t;let{securityLevel:n}=eZ(),r=(0,l.Ys)("body");if("sandbox"===n){let n=(0,l.Ys)(`#i${e}`),i=(null==(t=n.node())?void 0:t.contentDocument)??document;r=(0,l.Ys)(i.body)}let i=r.select(`#${e}`);return i},tL=function(e,t){for(let n of t)e.attr(n[0],n[1])},tD=function(e,t,n){let r=new Map;return n?(r.set("width","100%"),r.set("style",`max-width: ${t}px;`)):(r.set("height",e),r.set("width",t)),r},tQ=function(e,t,n,r){let i=tD(t,n,r);tL(e,i)},tM=function(e,t,n,r){let i=t.node().getBBox(),a=i.width,o=i.height;S.info(`SVG bounds: ${a}x${o}`,i);let s=0,l=0;S.info(`Graph bounds: ${s}x${l}`,e),s=a+2*n,l=o+2*n,S.info(`Calculated bounds: ${s}x${l}`),tQ(t,l,s,r);let u=`${i.x-n} ${i.y-n} ${i.width+2*n} ${i.height+2*n}`;t.attr("viewBox",u)},tF={draw:(e,t,n)=>{S.debug("renering svg for syntax error\n");let r=t$(t);r.attr("viewBox","0 0 2412 512"),tQ(r,100,512,!0);let i=r.append("g");i.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),i.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),i.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),i.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),i.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),i.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),i.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),i.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${n}`)}},tB={db:{},renderer:tF,parser:{parser:{yy:{}},parse:()=>{}}},tU="flowchart-elk",tj=async()=>{let{diagram:e}=await Promise.all([n.e(5987),n.e(580),n.e(6320),n.e(3366)]).then(n.bind(n,63366));return{id:tU,diagram:e}},tz={id:tU,detector:(e,t)=>{var n;return!!(/^\s*flowchart-elk/.test(e)||/^\s*flowchart|graph/.test(e)&&(null==(n=null==t?void 0:t.flowchart)?void 0:n.defaultRenderer)==="elk")},loader:tj},tW="timeline",tZ=async()=>{let{diagram:e}=await n.e(6086).then(n.bind(n,76086));return{id:tW,diagram:e}},tq={id:tW,detector:e=>/^\s*timeline/.test(e),loader:tZ},tG="mindmap",tH=async()=>{let{diagram:e}=await Promise.all([n.e(5471),n.e(7254)]).then(n.bind(n,47254));return{id:tG,diagram:e}},tY={id:tG,detector:e=>/^\s*mindmap/.test(e),loader:tH},tX="sankey",tV=async()=>{let{diagram:e}=await n.e(2022).then(n.bind(n,32022));return{id:tX,diagram:e}},tK={id:tX,detector:e=>/^\s*sankey-beta/.test(e),loader:tV},tJ={},t1=(e,t)=>{void 0!==t&&(tJ[e]=t)},t0=(e,t,n)=>{let r="";return e in tJ&&tJ[e]?r=tJ[e](n):S.warn(`No theme found for ${e}`),` & { + */var r=n(67294),i=n(61688),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=i.useSyncExternalStore,s=r.useRef,l=r.useEffect,u=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(null===d.current){var h={hasValue:!1,value:null};d.current=h}else h=d.current;d=u(function(){function e(e){if(!l){if(l=!0,o=e,e=r(e),void 0!==i&&h.hasValue){var t=h.value;if(i(t,e))return s=t}return s=e}if(t=s,a(o,e))return t;var n=r(e);return void 0!==i&&i(t,n)?t:(o=e,s=n)}var o,s,l=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,n,r,i]);var p=o(e,d[0],d[1]);return l(function(){h.hasValue=!0,h.value=p},[p]),c(p),p}},61688:function(e,t,n){"use strict";e.exports=n(53250)},52798:function(e,t,n){"use strict";e.exports=n(50139)},10939:function(e,t,n){"use strict";e.exports=n(65905)},45442:function(e,t,n){"use strict";var r=n(28064),i=n(54228),a=n(48738);e.exports=l;var o={}.hasOwnProperty,s=["history","path","basename","stem","extname","dirname"];function l(e){var t,n;if(e){if("string"==typeof e||a(e))e={contents:e};else if("message"in e&&"messages"in e)return e}else e={};if(!(this instanceof l))return new l(e);for(this.data={},this.messages=[],this.history=[],this.cwd=i.cwd(),n=-1;++ns.indexOf(t)&&(this[t]=e[t])}function u(e,t){if(e&&e.indexOf(r.sep)>-1)throw Error("`"+t+"` cannot be a path: did not expect `"+r.sep+"`")}function c(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function d(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}l.prototype.toString=function(e){return(this.contents||"").toString(e)},Object.defineProperty(l.prototype,"path",{get:function(){return this.history[this.history.length-1]},set:function(e){c(e,"path"),this.path!==e&&this.history.push(e)}}),Object.defineProperty(l.prototype,"dirname",{get:function(){return"string"==typeof this.path?r.dirname(this.path):void 0},set:function(e){d(this.path,"dirname"),this.path=r.join(e||"",this.basename)}}),Object.defineProperty(l.prototype,"basename",{get:function(){return"string"==typeof this.path?r.basename(this.path):void 0},set:function(e){c(e,"basename"),u(e,"basename"),this.path=r.join(this.dirname||"",e)}}),Object.defineProperty(l.prototype,"extname",{get:function(){return"string"==typeof this.path?r.extname(this.path):void 0},set:function(e){if(u(e,"extname"),d(this.path,"extname"),e){if(46!==e.charCodeAt(0))throw Error("`extname` must start with `.`");if(e.indexOf(".",1)>-1)throw Error("`extname` cannot contain multiple dots")}this.path=r.join(this.dirname,this.stem+(e||""))}}),Object.defineProperty(l.prototype,"stem",{get:function(){return"string"==typeof this.path?r.basename(this.path,this.extname):void 0},set:function(e){c(e,"stem"),u(e,"stem"),this.path=r.join(this.dirname||"",e+(this.extname||""))}})},65905:function(e,t,n){"use strict";var r=n(97187),i=n(45442);e.exports=i,i.prototype.message=function(e,t,n){var i=new r(e,t,n);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i},i.prototype.info=function(){var e=this.message.apply(this,arguments);return e.fatal=null,e},i.prototype.fail=function(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e}},28064:function(e,t){"use strict";function n(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}t.basename=function(e,t){var r,i,a,o,s=0,l=-1;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');if(n(e),r=e.length,void 0===t||!t.length||t.length>e.length){for(;r--;)if(47===e.charCodeAt(r)){if(a){s=r+1;break}}else l<0&&(a=!0,l=r+1);return l<0?"":e.slice(s,l)}if(t===e)return"";for(i=-1,o=t.length-1;r--;)if(47===e.charCodeAt(r)){if(a){s=r+1;break}}else i<0&&(a=!0,i=r+1),o>-1&&(e.charCodeAt(r)===t.charCodeAt(o--)?o<0&&(l=r):(o=-1,l=i));return s===l?l=i:l<0&&(l=e.length),e.slice(s,l)},t.dirname=function(e){var t,r,i;if(n(e),!e.length)return".";for(t=-1,i=e.length;--i;)if(47===e.charCodeAt(i)){if(r){t=i;break}}else r||(r=!0);return t<0?47===e.charCodeAt(0)?"/":".":1===t&&47===e.charCodeAt(0)?"//":e.slice(0,t)},t.extname=function(e){var t,r,i,a=-1,o=0,s=-1,l=0;for(n(e),i=e.length;i--;){if(47===(r=e.charCodeAt(i))){if(t){o=i+1;break}continue}s<0&&(t=!0,s=i+1),46===r?a<0?a=i:1!==l&&(l=1):a>-1&&(l=-1)}return a<0||s<0||0===l||1===l&&a===s-1&&a===o+1?"":e.slice(a,s)},t.join=function(){for(var e,t,r,i,a=-1;++a2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",a=0):a=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),o=l,s=0;continue}}else if(i.length){i="",a=0,o=l,s=0;continue}}t&&(i=i.length?i+"/..":"..",a=2)}else i.length?i+="/"+e.slice(o+1,l):i=e.slice(o+1,l),a=l-o-1;o=l,s=0}else 46===n&&s>-1?s++:s=-1}return i}(e,!t)).length||t||(r="."),r.length&&47===e.charCodeAt(e.length-1)&&(r+="/"),t?"/"+r:r)},t.sep="/"},54228:function(e,t){"use strict";t.cwd=function(){return"/"}},9315:function(e){"use strict";var t={}.hasOwnProperty;function n(e){return e&&"object"==typeof e||(e={}),i(e.line)+":"+i(e.column)}function r(e){return e&&"object"==typeof e||(e={}),n(e.start)+"-"+n(e.end)}function i(e){return e&&"number"==typeof e?e:1}e.exports=function(e){return e&&"object"==typeof e?t.call(e,"position")||t.call(e,"type")?r(e.position):t.call(e,"start")||t.call(e,"end")?r(e):t.call(e,"line")||t.call(e,"column")?n(e):"":""}},97187:function(e,t,n){"use strict";var r=n(9315);function i(){}e.exports=o,i.prototype=Error.prototype,o.prototype=new i;var a=o.prototype;function o(e,t,n){var i,a,o,s,l;"string"==typeof t&&(n=t,t=null),l=[null,null],"string"==typeof(o=n)&&(-1===(s=o.indexOf(":"))?l[1]=o:(l[0]=o.slice(0,s),l[1]=o.slice(s+1))),i=r(t)||"1:1",a={start:{line:null,column:null},end:{line:null,column:null}},t&&t.position&&(t=t.position),t&&(t.start?(a=t,t=t.start):a.start=t),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=i,this.reason=e,this.line=t?t.line:null,this.column=t?t.column:null,this.location=a,this.source=l[0],this.ruleId=l[1]}a.file="",a.name="",a.reason="",a.message="",a.stack="",a.fatal=null,a.column=null,a.line=null},42473:function(e){"use strict";e.exports=function(){}},47529:function(e){e.exports=function(){for(var e={},n=0;nt in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,h=(e,t)=>{for(var n in t||={})u.call(t,n)&&d(e,n,t[n]);if(l)for(var n of l(t))c.call(t,n)&&d(e,n,t[n]);return e},p=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),f=(0,r.createContext)({directives:{},Link:e=>(0,o.jsx)("a",h({},e)),router:{push:()=>p(void 0,null,function*(){return!1})},Head:()=>null,env:"production",saveFile:()=>()=>p(void 0,null,function*(){}),loadFile:()=>()=>p(void 0,null,function*(){return""}),makeUrl:()=>e=>e||"",getActivePageId:()=>p(void 0,null,function*(){return""}),config:{name:"Hyperbook"}}),m=({elements:e=[],children:t,Link:n,Head:r=()=>null,saveFile:s=()=>()=>p(void 0,null,function*(){}),loadFile:l=()=>()=>p(void 0,null,function*(){return""}),router:u,env:c="production",makeUrl:d=()=>e=>e||"",getActivePageId:m=()=>p(void 0,null,function*(){return""}),config:g={name:"Hyperbook"},storage:O})=>{let b={},y={};e.forEach(e=>{e.slice&&(b[e.slice.name]=e.slice.reducer),y=h(h({},y),e.directives)});let{store:v,persistor:x}=(0,a.n)(b,O);return(0,o.jsx)(i.zt,{store:v,children:(0,o.jsx)(f.Provider,{value:{directives:y,router:u,Link:n,Head:r,saveFile:s,loadFile:l,makeUrl:d,getActivePageId:m,config:g,env:c},children:t})})},g=()=>{let e=(0,r.useContext)(f);return e.env},O=(e,t)=>{let n=(0,i.I0)(),[r]=y(),o=`${r}#${e}`,s=(0,i.v9)((0,a.EU)(o));return[(null==s?void 0:s.active)||!1,()=>{n(a.bV.actions.toggle({key:o,label:t}))}]},b=()=>{let e=(0,i.v9)(e=>e.bookmarks);return Object.entries(e).map(([e,t])=>h({href:e},t)).filter(e=>e.active)},y=(e=!0)=>{let t=(0,r.useContext)(f),n=(0,i.I0)(),o=(0,i.v9)(a.Dg),s=e=>{n(a.Uw.actions.set(e))};return(0,r.useEffect)(()=>{e&&t.getActivePageId().then(s).catch(()=>{})},[e]),[o,s]},v=()=>{let e=(0,r.useContext)(f);return e.config},x=()=>{let e=(0,r.useContext)(f);return e.Link},T=()=>{let e=(0,r.useContext)(f);return e.Head},k=()=>{let e=(0,r.useContext)(f);return e.router},_=()=>{let e=(0,r.useContext)(f);return e.directives},S=()=>{let e=(0,r.useContext)(f);return e.makeUrl(e.config)},w=()=>{let e=(0,r.useContext)(f);return[e.loadFile(e.config),e.saveFile(e.config)]};function E(){let[e,t]=(0,r.useState)("light");return(0,r.useEffect)(()=>{if(!window.matchMedia){t("light");return}let e=window.matchMedia("(prefers-color-scheme: dark)");function n(e){t(e.matches?"dark":"light")}return t(e.matches?"dark":"light"),e.addEventListener("change",n),()=>{e.removeEventListener("change",n)}},[]),[e]}},55495:function(e,t,n){"use strict";n.d(t,{Uw:function(){return nI},bV:function(){return nL},oM:function(){return tD},Xb:function(){return nR},n:function(){return nQ},Dg:function(){return nN},EU:function(){return nD}});var r,i,a,o,s,l,u,c={};n.r(c),n.d(c,{__DO_NOT_USE__ActionTypes:function(){return O},applyMiddleware:function(){return _},bindActionCreators:function(){return T},combineReducers:function(){return v},compose:function(){return k},createStore:function(){return b},legacy_createStore:function(){return y}});var d=n(81180);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:W,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case P:return j({},e,{registry:[].concat(U(e.registry),[t.key])});case E:var n=e.registry.indexOf(t.key),r=U(e.registry);return r.splice(n,1),j({},e,{registry:r,bootstrapped:0===r.length});default:return e}},q=n(67294),G=n(83454),H=Object.defineProperty,Y=Object.getOwnPropertyDescriptor,X=Object.getOwnPropertyNames,V=Object.getOwnPropertySymbols,K=Object.prototype.hasOwnProperty,J=Object.prototype.propertyIsEnumerable,ee=(e,t,n)=>t in e?H(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,et=(e,t)=>{for(var n in t||={})K.call(t,n)&&ee(e,n,t[n]);if(V)for(var n of V(t))J.call(t,n)&&ee(e,n,t[n]);return e},en=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of X(t))K.call(e,i)||i===n||H(e,i,{get:()=>t[i],enumerable:!(r=Y(t,i))||r.enumerable});return e},er=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),ei={};function ea(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:ef(e)?2:em(e)?3:0}function ed(e,t){return 2===ec(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function eh(e,t,n){var r=ec(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function ep(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function ef(e){return eB&&e instanceof Map}function em(e){return eU&&e instanceof Set}function eg(e){return e.o||e.t}function eO(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=eY(e);delete t[eZ];for(var n=eH(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=ey),Object.freeze(e),t&&eu(e,function(e,t){return eb(t,!0)},!0)),e}function ey(){ea(2)}function ev(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function ex(e){var t=eX[e];return t||ea(18,e),t}function eT(){return o||ea(0),o}function ek(e,t){t&&(ex("Patches"),e.u=[],e.s=[],e.v=t)}function e_(e){eS(e),e.p.forEach(eE),e.p=null}function eS(e){e===o&&(o=e.l)}function ew(e){return o={p:[],l:o,h:e,m:!0,_:0}}function eE(e){var t=e[eZ];0===t.i||1===t.i?t.j():t.g=!0}function eC(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.O||ex("ES5").S(t,e,r),r?(n[eZ].P&&(e_(t),ea(4)),es(e)&&(e=eA(t,e),t.l||eP(t,e)),t.u&&ex("Patches").M(n[eZ].t,e,t.u,t.s)):e=eA(t,n,[]),e_(t),t.u&&t.v(t.u,t.s),e!==ej?e:void 0}function eA(e,t,n){if(ev(t))return t;var r=t[eZ];if(!r)return eu(t,function(i,a){return eR(e,r,t,i,a,n)},!0),t;if(r.A!==e)return t;if(!r.P)return eP(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=eO(r.k):r.o,a=i,o=!1;3===r.i&&(a=new Set(i),i.clear(),o=!0),eu(a,function(t,a){return eR(e,r,i,t,a,n,o)}),eP(e,i,!1),n&&e.u&&ex("Patches").N(r,n,e.u,e.s)}return r.o}function eR(e,t,n,r,i,a,o){if(i===n&&ea(5),eo(i)){var s=eA(e,i,a&&t&&3!==t.i&&!ed(t.R,r)?a.concat(r):void 0);if(eh(n,r,s),!eo(s))return;e.m=!1}else o&&n.add(i);if(es(i)&&!ev(i)){if(!e.h.D&&e._<1)return;eA(e,i),t&&t.A.l||eP(e,i)}}function eP(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&eb(t,n)}function eI(e,t){var n=e[eZ];return(n?eg(n):e)[t]}function eN(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function e$(e){e.P||(e.P=!0,e.l&&e$(e.l))}function eL(e){e.o||(e.o=eO(e.t))}function eD(e,t,n){var r,i,a,o,s,l,u,c=ef(t)?ex("MapSet").F(t,n):em(t)?ex("MapSet").T(t,n):e.O?(a=i={i:(r=Array.isArray(t))?1:0,A:n?n.A:eT(),P:!1,I:!1,R:{},l:n,t:t,k:null,o:null,j:null,C:!1},o=eV,r&&(a=[i],o=eK),l=(s=Proxy.revocable(a,o)).revoke,u=s.proxy,i.k=u,i.j=l,u):ex("ES5").J(t,n);return(n?n.A:eT()).p.push(c),c}function eQ(e){return eo(e)||ea(22,e),function e(t){if(!es(t))return t;var n,r=t[eZ],i=ec(t);if(r){if(!r.P&&(r.i<4||!ex("ES5").K(r)))return r.t;r.I=!0,n=eM(t,i),r.I=!1}else n=eM(t,i);return eu(n,function(t,i){var a;r&&(2===ec(a=r.t)?a.get(t):a[t])===i||eh(n,t,e(i))}),3===i?new Set(n):n}(e)}function eM(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return eO(e)}((e,t)=>{for(var n in t)H(e,n,{get:t[n],enumerable:!0})})(ei,{EnhancerArray:()=>tm,MiddlewareArray:()=>tf,SHOULD_AUTOBATCH:()=>nx,TaskAbortError:()=>ni,addListener:()=>ng,autoBatchEnhancer:()=>nw,clearAllListeners:()=>nO,configureStore:()=>tw,createAction:()=>tE,createAsyncThunk:()=>tH,createDraftSafeSelector:()=>tc,createEntityAdapter:()=>tz,createImmutableStateInvariantMiddleware:()=>tv,createListenerMiddleware:()=>nv,createNextState:()=>e0,createReducer:()=>t$,createSelector:()=>e9,createSerializableStateInvariantMiddleware:()=>tk,createSlice:()=>tD,current:()=>eQ,findNonSerializableValue:()=>tT,freeze:()=>eb,getDefaultMiddleware:()=>tS,getType:()=>tP,isAction:()=>tC,isAllOf:()=>tK,isAnyOf:()=>tV,isAsyncThunkAction:()=>function e(){for(var t=[],n=0;neo,isFluxStandardAction:()=>tA,isFulfilled:()=>function e(){for(var t=[],n=0;ntb,isPending:()=>function e(){for(var t=[],n=0;ntx,isPlainObject:()=>th,isRejected:()=>t0,isRejectedWithValue:()=>function e(){for(var t=[],n=0;ntG,nanoid:()=>tj,original:()=>el,prepareAutoBatched:()=>nT,removeListener:()=>nb,unwrapResult:()=>tY});var eF="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),eB="undefined"!=typeof Map,eU="undefined"!=typeof Set,ez="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,ej=eF?Symbol.for("immer-nothing"):((a={})["immer-nothing"]=!0,a),eW=eF?Symbol.for("immer-draftable"):"__$immer_draftable",eZ=eF?Symbol.for("immer-state"):"__$immer_state",eq={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},eG=""+Object.prototype.constructor,eH="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,eY=Object.getOwnPropertyDescriptors||function(e){var t={};return eH(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},eX={},eV={get:function(e,t){if(t===eZ)return e;var n,r,i=eg(e);if(!ed(i,t))return(r=eN(i,t))?"value"in r?r.value:null===(n=r.get)||void 0===n?void 0:n.call(e.k):void 0;var a=i[t];return e.I||!es(a)?a:a===eI(e.t,t)?(eL(e),e.o[t]=eD(e.A.h,a,e)):a},has:function(e,t){return t in eg(e)},ownKeys:function(e){return Reflect.ownKeys(eg(e))},set:function(e,t,n){var r=eN(eg(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=eI(eg(e),t),a=null==i?void 0:i[eZ];if(a&&a.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(ep(n,i)&&(void 0!==n||ed(e.t,t)))return!0;eL(e),e$(e)}return e.o[t]===n&&(void 0!==n||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==eI(e.t,t)||t in e.t?(e.R[t]=!1,eL(e),e$(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=eg(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){ea(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){ea(12)}},eK={};eu(eV,function(e,t){eK[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),eK.deleteProperty=function(e,t){return isNaN(parseInt(t))&&ea(13),eK.set.call(this,e,t,void 0)},eK.set=function(e,t,n){return"length"!==t&&isNaN(parseInt(t))&&ea(14),eV.set.call(this,e[0],t,n,e[0])};var eJ=new(function(){function e(e){var t=this;this.O=ez,this.D=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var i,a=n;return n=e,function(e){var r=this;void 0===e&&(e=a);for(var i=arguments.length,o=Array(i>1?i-1:0),s=1;s1?r-1:0),a=1;a=0;n--){var n,r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var i=ex("Patches").$;return eo(e)?i(e,t):this.produce(e,function(e){return i(e,t)})},e}()),e1=eJ.produce;eJ.produceWithPatches.bind(eJ),eJ.setAutoFreeze.bind(eJ),eJ.setUseProxies.bind(eJ),eJ.applyPatches.bind(eJ),eJ.createDraft.bind(eJ),eJ.finishDraft.bind(eJ);var e0=e1;en(ei,c,"default"),r&&en(r,c,"default");var e2="NOT_FOUND",e5=function(e,t){return e===t},e9=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r-1){var i=n[r];return r>0&&(n.splice(r,1),n.unshift(i)),i.value}return e2}return{get:r,put:function(t,i){r(t)===e2&&(n.unshift({key:t,value:i}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(s,u);function d(){var t=c.get(arguments);if(t===e2){if(t=e.apply(null,arguments),l){var n=c.getEntries().find(function(e){return l(e.value,t)});n&&(t=n.value)}c.put(arguments,t)}return t}return d.clearCache=function(){return c.clear()},d});function e4(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(i){return"function"==typeof i?i(n,r,e):t(i)}}}}var e3=e4();e3.withExtraArgument=e4;var e8=(i=function(e,t){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),e6=function(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]e&&console.warn(t+" took "+n+"ms, which is more than the warning threshold of "+e+"ms. \nIf your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.\nIt is disabled in production builds, so you don't need to worry about that.")}}}"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var tf=function(e){function t(){for(var n=[],r=0;r0;for(var c in u){var h=function(a){var s=o?o+"."+a:a;if(d&&n.some(function(e){return e instanceof RegExp?e.test(s):s===e}))return"continue";var u=e(t,n,r.children[a],i[a],l,s);if(u.wasMutated)return{value:u}}(c);if("object"==typeof h)return h.value}return{wasMutated:!1}}(e,t,r,n)}}}function tv(e){void 0===e&&(e={});var t=e.isImmutable,n=void 0===t?tb:t,r=e.ignoredPaths,i=e.warnAfter,a=void 0===i?32:i,o=e.ignore;r=r||o;var s=ty.bind(null,n,r);return function(e){var t,n=e.getState,r=n(),i=s(r);return function(e){return function(o){var l=tp(a,"ImmutableStateInvariantMiddleware");l.measureTime(function(){r=n(),t=i.detectMutations(),i=s(r),tO(!t.wasMutated,"A state mutation was detected between dispatches, in the path '"+(t.path||"")+"'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")});var u=e(o);return l.measureTime(function(){var e,a,l,u;r=n(),t=i.detectMutations(),i=s(r),t.wasMutated&&tO(!t.wasMutated,"A state mutation was detected inside a dispatch, in the path: "+(t.path||"")+". Take a look at the reducer(s) handling the action "+JSON.stringify(o,(e=void 0,l=[],u=[],a=void 0,a=function(e,t){return l[0]===t?"[Circular ~]":"[Circular ~."+u.slice(0,l.indexOf(t)).join(".")+"]"},function(t,n){if(l.length>0){var r=l.indexOf(this);~r?l.splice(r+1):l.push(this),~r?u.splice(r,1/0,t):u.push(t),~l.indexOf(n)&&(n=a.call(this,t,n))}else l.push(n);return null==e?n:e.call(this,t,n)}),void 0)+". (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")}),l.warnIfExceeded(),u}}}}function tx(e){var t=typeof e;return null==e||"string"===t||"boolean"===t||"number"===t||Array.isArray(e)||th(e)}function tT(e,t,n,r,i,a){if(void 0===t&&(t=""),void 0===n&&(n=tx),void 0===i&&(i=[]),!n(e))return{keyPath:t||"",value:e};if("object"!=typeof e||null===e||(null==a?void 0:a.has(e)))return!1;for(var o,s=null!=r?r(e):Object.entries(e),l=i.length>0,u=0;u-1}function tP(e){return""+e}function tI(e){var t,n={},r=[],i={addCase:function(e,a){if(r.length>0)throw Error("`builder.addCase` should only be called before calling `builder.addMatcher`");if(t)throw Error("`builder.addCase` should only be called before calling `builder.addDefaultCase`");var o="string"==typeof e?e:e.type;if(o in n)throw Error("addCase cannot be called with two reducers for the same action type");return n[o]=a,i},addMatcher:function(e,n){if(t)throw Error("`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return r.push({matcher:e,reducer:n}),i},addDefaultCase:function(e){if(t)throw Error("`builder.addDefaultCase` can only be called once");return t=e,i}};return e(i),[n,r,t]}var tN=!1;function t$(e,t,n,r){void 0===n&&(n=[]),"object"!=typeof t||tN||(tN=!0,console.warn("The object notation for `createReducer` is deprecated, and will be removed in RTK 2.0. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer"));var i,a="function"==typeof t?tI(t):[t,n,r],o=a[0],s=a[1],l=a[2];if("function"==typeof e)i=function(){return tg(e())};else{var u=tg(e);i=function(){return u}}function c(e,t){void 0===e&&(e=i());var n=e7([o[t.type]],s.filter(function(e){return(0,e.matcher)(t)}).map(function(e){return e.reducer}));return 0===n.filter(function(e){return!!e}).length&&(n=[l]),n.reduce(function(e,n){if(n){if(eo(e)){var r=n(e,t);return void 0===r?e:r}if(es(e))return e0(e,function(e){return n(e,t)});var r=n(e,t);if(void 0===r){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return e},e)}return c.getInitialState=i,c}var tL=!1;function tD(e){var t,n=e.name;if(!n)throw Error("`name` is a required option for createSlice");void 0!==G&&void 0===e.initialState&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");var r="function"==typeof e.initialState?e.initialState:tg(e.initialState),i=e.reducers||{},a=Object.keys(i),o={},s={},l={};function u(){"object"!=typeof e.extraReducers||tL||(tL=!0,console.warn("The object notation for `createSlice.extraReducers` is deprecated, and will be removed in RTK 2.0. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice"));var t="function"==typeof e.extraReducers?tI(e.extraReducers):[e.extraReducers],n=t[0],i=t[1],a=void 0===i?[]:i,o=t[2],l=void 0===o?void 0:o,u=ts(ts({},void 0===n?{}:n),s);return t$(r,function(e){for(var t in u)e.addCase(t,u[t]);for(var n=0;n0&&t.filter(function(t){var i,a,o;return(o=(a=tM(i=Object.assign({},n.entities[t.id],t.changes),e))!==t.id)&&(r[t.id]=a,delete n.entities[t.id]),n.entities[a]=i,o}).length>0&&(n.ids=Object.keys(n.entities))}function l(t,n){var r=tB(t,e,n),a=r[0];s(r[1],n),i(a,n)}return{removeAll:(t=function(e){Object.assign(e,{ids:[],entities:{}})},n=tQ(function(e,n){return t(n)}),function(e){return n(e,void 0)}),addOne:tQ(r),addMany:tQ(i),setOne:tQ(a),setMany:tQ(function(e,t){e=tF(e);for(var n=0,r=e;n-1;return n&&r}function t1(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function t0(){for(var e=[],t=0;t0)for(var h=e.getState(),p=Array.from(n.values()),f=0;f=0;t--){var i=e[t][eZ];if(!i.P)switch(i.i){case 5:r(i)&&e$(i);break;case 4:n(i)&&e$(i)}}}function n(e){for(var t=e.t,n=e.k,r=eH(n),i=r.length-1;i>=0;i--){var a=r[i];if(a!==eZ){var o=t[a];if(void 0===o&&!ed(t,a))return!0;var s=n[a],l=s&&s[eZ];if(l?l.t!==o:!ep(s,o))return!0}}var u=!!t[eZ];return r.length!==eH(t).length+(u?0:1)}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var r=0;rnew Promise(n=>{n(t.getItem(e))}),setItem:(e,n)=>new Promise(r=>{r(t.setItem(e,n))}),removeItem:e=>new Promise(n=>{n(t.removeItem(e))})}}var nR=nA("local");nA("session"),(class extends q.PureComponent{constructor(){super(...arguments),this.state={bootstrapped:!1},this.handlePersistorState=()=>{let{persistor:e}=this.props,{bootstrapped:t}=e.getState();t&&(this.props.onBeforeLift?Promise.resolve(this.props.onBeforeLift()).finally(()=>this.setState({bootstrapped:!0})):this.setState({bootstrapped:!0}),this._unsubscribe&&this._unsubscribe())}}componentDidMount(){this._unsubscribe=this.props.persistor.subscribe(this.handlePersistorState),this.handlePersistorState()}componentWillUnmount(){this._unsubscribe&&this._unsubscribe()}render(){return"function"==typeof this.props.children?this.props.children(this.state.bootstrapped):this.state.bootstrapped?this.props.children:this.props.loading}}).defaultProps={children:null,loading:null};var{createSlice:nP}=null!=(l=ei.default)?l:ei,nI=nP({name:"activePage",initialState:{id:""},reducers:{set:(e,t)=>{e.id=t.payload}}}),nN=e=>e[nI.name].id,{createSlice:n$}=null!=(u=ei.default)?u:ei,nL=n$({name:"bookmarks",initialState:{},reducers:{toggle:(e,t)=>{let{key:n,label:r}=t.payload;e[n]&&e[n].active?e[n]={label:r,active:!1}:e[n]={label:r,active:!0}}}}),nD=e=>t=>t[nL.name][e],nQ=(e,t=nC)=>{var n,r,i,a,o,s,l,u,c,d,h,p,f,m,g,O;let y=tw({reducer:(n={key:"hyperbook",storage:t},r=v(et({[nI.name]:nI.reducer,[nL.name]:nL.reducer},e)),i=void 0!==n.version?n.version:-1,n.debug,a=void 0===n.stateReconciler?$:n.stateReconciler,o=n.getStoredState||D,s=void 0!==n.timeout?n.timeout:5e3,l=null,u=!1,c=!0,d=function(e){return e._persist.rehydrated&&l&&!c&&l.update(e),e},function(e,t){var h,p,f=e||{},m=f._persist,g=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(f,["_persist"]);if(t.type===A){var O=!1,b=function(e,r){O||(t.rehydrate(n.key,e,r),O=!0)};if(s&&setTimeout(function(){O||b(void 0,Error('redux-persist: persist timed out for persist key "'.concat(n.key,'"')))},s),c=!1,l||(l=function(e){var t,n=e.blacklist||null,r=e.whitelist||null,i=e.transforms||[],a=e.throttle||0,o="".concat(void 0!==e.keyPrefix?e.keyPrefix:S).concat(e.key),s=e.storage;t=!1===e.serialize?function(e){return e}:"function"==typeof e.serialize?e.serialize:L;var l=e.writeFailHandler||null,u={},c={},d=[],h=null,p=null;function f(){if(0===d.length){h&&clearInterval(h),h=null;return}var e=d.shift(),n=i.reduce(function(t,n){return n.in(t,e,u)},u[e]);if(void 0!==n)try{c[e]=t(n)}catch(e){console.error("redux-persist/createPersistoid: error serializing state",e)}else delete c[e];0===d.length&&(Object.keys(c).forEach(function(e){void 0===u[e]&&delete c[e]}),p=s.setItem(o,t(c)).catch(g))}function m(e){return(!r||-1!==r.indexOf(e)||"_persist"===e)&&(!n||-1===n.indexOf(e))}function g(e){l&&l(e)}return{update:function(e){Object.keys(e).forEach(function(t){m(t)&&u[t]!==e[t]&&-1===d.indexOf(t)&&d.push(t)}),Object.keys(u).forEach(function(t){void 0===e[t]&&m(t)&&-1===d.indexOf(t)&&void 0!==u[t]&&d.push(t)}),null===h&&(h=setInterval(f,a)),u=e},flush:function(){for(;0!==d.length;)f();return p||Promise.resolve()}}}(n)),m)return B({},r(g,t),{_persist:m});if("function"!=typeof t.rehydrate||"function"!=typeof t.register)throw Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return t.register(n.key),o(n).then(function(e){(n.migrate||function(e,t){return Promise.resolve(e)})(e,i).then(function(e){b(e)},function(e){b(void 0,e)})},function(e){b(void 0,e)}),B({},r(g,t),{_persist:{version:i,rehydrated:!1}})}if(t.type===R)return u=!0,t.result((h=n.storage,p="".concat(void 0!==n.keyPrefix?n.keyPrefix:S).concat(n.key),h.removeItem(p,M))),B({},r(g,t),{_persist:m});if(t.type===w)return t.result(l&&l.flush()),B({},r(g,t),{_persist:m});if(t.type===C)c=!0;else if(t.type===E){if(u)return B({},g,{_persist:B({},m,{rehydrated:!0})});if(t.key===n.key){var y=r(g,t),v=t.payload;return d(B({},!1!==a&&void 0!==v?a(v,e,y,n):y,{_persist:B({},m,{rehydrated:!0})}))}}if(!m)return r(e,t);var x=r(g,t);return x===g?e:d(B({},x,{_persist:m}))}),middleware:e=>e({serializableCheck:!1})}),x=(p=!1,f=b(Z,W,h&&h.enhancer?h.enhancer:void 0),m=function(e){f.dispatch({type:P,key:e})},g=function(e,t,n){var r={type:E,payload:t,err:n,key:e};y.dispatch(r),f.dispatch(r),p&&O.getState().bootstrapped&&(p(),p=!1)},O=j({},f,{purge:function(){var e=[];return y.dispatch({type:R,result:function(t){e.push(t)}}),Promise.all(e)},flush:function(){var e=[];return y.dispatch({type:w,result:function(t){e.push(t)}}),Promise.all(e)},pause:function(){y.dispatch({type:C})},persist:function(){y.dispatch({type:A,register:m,rehydrate:g})}}),h&&h.manualPersist||O.persist(),O);return{store:y,persistor:x}}},64777:function(e,t,n){"use strict";function r(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}n.d(t,{w:function(){return r}})},38077:function(e,t,n){"use strict";function r(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n=i)&&(n=i)}return n}function i(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function a(e){return e}function o(e){return"translate("+e+",0)"}function s(e){return"translate(0,"+e+")"}function l(e){return t=>+e(t)}function u(e,t){return t=Math.max(0,e.bandwidth()-2*t)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function c(){return!this.__axis}function d(e,t){var n=[],r=null,i=null,d=6,h=6,p=3,f="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,m=1===e||4===e?-1:1,g=4===e||2===e?"x":"y",O=1===e||3===e?o:s;function b(o){var s=null==r?t.ticks?t.ticks.apply(t,n):t.domain():r,b=null==i?t.tickFormat?t.tickFormat.apply(t,n):a:i,y=Math.max(d,0)+p,v=t.range(),x=+v[0]+f,T=+v[v.length-1]+f,k=(t.bandwidth?u:l)(t.copy(),f),_=o.selection?o.selection():o,S=_.selectAll(".domain").data([null]),w=_.selectAll(".tick").data(s,t).order(),E=w.exit(),C=w.enter().append("g").attr("class","tick"),A=w.select("line"),R=w.select("text");S=S.merge(S.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),w=w.merge(C),A=A.merge(C.append("line").attr("stroke","currentColor").attr(g+"2",m*d)),R=R.merge(C.append("text").attr("fill","currentColor").attr(g,m*y).attr("dy",1===e?"0em":3===e?"0.71em":"0.32em")),o!==_&&(S=S.transition(o),w=w.transition(o),A=A.transition(o),R=R.transition(o),E=E.transition(o).attr("opacity",1e-6).attr("transform",function(e){return isFinite(e=k(e))?O(e+f):this.getAttribute("transform")}),C.attr("opacity",1e-6).attr("transform",function(e){var t=this.parentNode.__axis;return O((t&&isFinite(t=t(e))?t:k(e))+f)})),E.remove(),S.attr("d",4===e||2===e?h?"M"+m*h+","+x+"H"+f+"V"+T+"H"+m*h:"M"+f+","+x+"V"+T:h?"M"+x+","+m*h+"V"+f+"H"+T+"V"+m*h:"M"+x+","+f+"H"+T),w.attr("opacity",1).attr("transform",function(e){return O(k(e)+f)}),A.attr(g+"2",m*d),R.attr(g,m*y).text(b),_.filter(c).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===e?"start":4===e?"end":"middle"),_.each(function(){this.__axis=k})}return b.scale=function(e){return arguments.length?(t=e,b):t},b.ticks=function(){return n=Array.from(arguments),b},b.tickArguments=function(e){return arguments.length?(n=null==e?[]:Array.from(e),b):n.slice()},b.tickValues=function(e){return arguments.length?(r=null==e?null:Array.from(e),b):r&&r.slice()},b.tickFormat=function(e){return arguments.length?(i=e,b):i},b.tickSize=function(e){return arguments.length?(d=h=+e,b):d},b.tickSizeInner=function(e){return arguments.length?(d=+e,b):d},b.tickSizeOuter=function(e){return arguments.length?(h=+e,b):h},b.tickPadding=function(e){return arguments.length?(p=+e,b):p},b.offset=function(e){return arguments.length?(f=+e,b):f},b}function h(e){return d(1,e)}function p(e){return d(3,e)}function f(){}function m(e){return null==e?f:function(){return this.querySelector(e)}}function g(e){return null==e?[]:Array.isArray(e)?e:Array.from(e)}function O(){return[]}function b(e){return null==e?O:function(){return this.querySelectorAll(e)}}function y(e){return function(){return this.matches(e)}}function v(e){return function(t){return t.matches(e)}}n.d(t,{Nb1:function(){return ak},LLu:function(){return p},F5q:function(){return h},$0Z:function(){return aD},Dts:function(){return aM},WQY:function(){return aB},qpX:function(){return az},u93:function(){return aj},tFB:function(){return aZ},YY7:function(){return aH},OvA:function(){return aX},dCK:function(){return aK},zgE:function(){return a0},fGX:function(){return a5},$m7:function(){return a4},c_6:function(){return aw},fxm:function(){return a8},FdL:function(){return oi},ak_:function(){return oa},SxZ:function(){return ol},eA_:function(){return oc},jsv:function(){return oh},iJ:function(){return od},JHv:function(){return nw},jvg:function(){return aA},Fp7:function(){return r},VV$:function(){return i},ve8:function(){return aI},BYU:function(){return function e(){var t,n=nK();return n.copy=function(){return nV(n,e())},nJ.apply(n,arguments),t=n.domain,n.ticks=function(e){var n=t();return function(e,t,n){if(t=+t,e=+e,!((n=+n)>0))return[];if(e===t)return[e];let r=t=i))return[];let s=a-i+1,l=Array(s);if(r){if(o<0)for(let e=0;e0;){if((i=nP(l,u,e))===r)return a[o]=l,a[s]=u,t(a);if(i>0)l=Math.floor(l/i)*i,u=Math.ceil(u/i)*i;else if(i<0)l=Math.ceil(l*i)/i,u=Math.floor(u*i)/i;else break;r=i}return n},n}},PKp:function(){return function e(){var t=new re,n=[],r=[],i=rr;function a(e){let a=t.get(e);if(void 0===a){if(i!==rr)return i;t.set(e,a=n.push(e)-1)}return r[a%r.length]}return a.domain=function(e){if(!arguments.length)return n.slice();for(let r of(n=[],t=new re,e))t.has(r)||t.set(r,n.push(r)-1);return a},a.range=function(e){return arguments.length?(r=Array.from(e),a):r.slice()},a.unknown=function(e){return arguments.length?(i=e,a):i},a.copy=function(){return e(n,r).unknown(i)},nJ.apply(a,arguments),a}},Xf:function(){return i4},K2I:function(){return i3},Ys:function(){return i8},td_:function(){return i6},YPS:function(){return nu},rr1:function(){return rO},i$Z:function(){return eL},y2j:function(){return rw},WQD:function(){return rm},U8T:function(){return rd},Z_i:function(){return rp},Ox9:function(){return rT},F0B:function(){return rD},LqH:function(){return rE},S1K:function(){return rh},Zyz:function(){return rx},Igq:function(){return rS},YDX:function(){return rk},EFj:function(){return r_}});var x=Array.prototype.find;function T(){return this.firstElementChild}var k=Array.prototype.filter;function _(){return Array.from(this.children)}function S(e){return Array(e.length)}function w(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function E(e,t,n,r,i,a){for(var o,s=0,l=t.length,u=a.length;st?1:e>=t?0:NaN}w.prototype={constructor:w,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var P="http://www.w3.org/1999/xhtml",I={svg:"http://www.w3.org/2000/svg",xhtml:P,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function N(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),I.hasOwnProperty(t)?{space:I[t],local:e}:e}function $(e){return function(){this.removeAttribute(e)}}function L(e){return function(){this.removeAttributeNS(e.space,e.local)}}function D(e,t){return function(){this.setAttribute(e,t)}}function Q(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function M(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function F(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function B(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function U(e){return function(){this.style.removeProperty(e)}}function z(e,t,n){return function(){this.style.setProperty(e,t,n)}}function j(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function W(e,t){return e.style.getPropertyValue(t)||B(e).getComputedStyle(e,null).getPropertyValue(t)}function Z(e){return function(){delete this[e]}}function q(e,t){return function(){this[e]=t}}function G(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function H(e){return e.trim().split(/^|\s+/)}function Y(e){return e.classList||new X(e)}function X(e){this._node=e,this._names=H(e.getAttribute("class")||"")}function V(e,t){for(var n=Y(e),r=-1,i=t.length;++rthis._names.indexOf(e)&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var eT=[null];function ek(e,t){this._groups=e,this._parents=t}function e_(){return new ek([[document.documentElement]],eT)}ek.prototype=e_.prototype={constructor:ek,select:function(e){"function"!=typeof e&&(e=m(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i=T&&(T=x+1);!(v=g[T])&&++T=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=R);for(var n=this._groups,r=n.length,i=Array(r),a=0;a1?this.each((null==t?U:"function"==typeof t?j:z)(e,t,null==n?"":n)):W(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?Z:"function"==typeof t?G:q)(e,t)):this.node()[e]},classed:function(e,t){var n=H(e+"");if(arguments.length<2){for(var r=Y(this.node()),i=-1,a=n.length;++i=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}),o=a.length;if(arguments.length<2){var s=this.node().__on;if(s){for(var l,u=0,c=s.length;u{}};function ew(){for(var e,t=0,n=arguments.length,r={};t=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!r.hasOwnProperty(e))throw Error("unknown type: "+e);return{type:e,name:t}}),a=-1,o=i.length;if(arguments.length<2){for(;++a0)for(var n,r,i=Array(n),a=0;a=0&&t._call.call(void 0,e),t=t._next;--eM}()}finally{eM=0,function(){for(var e,t,n=eD,r=1/0;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:eD=t);eQ=e,eK(r)}(),ez=0}}function eV(){var e=eW.now(),t=e-eU;t>1e3&&(ej-=t,eU=e)}function eK(e){!eM&&(eF&&(eF=clearTimeout(eF)),e-ez>24?(e<1/0&&(eF=setTimeout(eX,e-eW.now()-ej)),eB&&(eB=clearInterval(eB))):(eB||(eU=eW.now(),eB=setInterval(eV,1e3)),eM=1,eZ(eX)))}function eJ(e,t,n){var r=new eH;return t=null==t?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}eH.prototype=eY.prototype={constructor:eH,restart:function(e,t,n){if("function"!=typeof e)throw TypeError("callback is not a function");n=(null==n?eq():+n)+(null==t?0:+t),this._next||eQ===this||(eQ?eQ._next=this:eD=this,eQ=this),this._call=e,this._time=n,eK()},stop:function(){this._call&&(this._call=null,this._time=1/0,eK())}};var e1=ew("start","end","cancel","interrupt"),e0=[];function e2(e,t,n,r,i,a){var o=e.__transition;if(o){if(n in o)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function a(l){var u,c,d,h;if(1!==n.state)return s();for(u in i)if((h=i[u]).name===n.name){if(3===h.state)return eJ(a);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete i[u]):+u0)throw Error("too late; already scheduled");return n}function e9(e,t){var n=e4(e,t);if(n.state>3)throw Error("too late; already running");return n}function e4(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error("transition not found");return n}function e3(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var e8=180/Math.PI,e6={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function e7(e,t,n,r,i,a){var o,s,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r180?l+=360:l-s>180&&(s+=360),h.push({i:d.push(i(d)+"rotate(",null,r)-2,x:e3(s,l)})):l&&d.push(i(d)+"rotate("+l+r),(u=a.skewX)!==(c=o.skewX)?h.push({i:d.push(i(d)+"skewX(",null,r)-2,x:e3(u,c)}):c&&d.push(i(d)+"skewX("+c+r),!function(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+"scale(",null,",",null,")");o.push({i:s-4,x:e3(e,n)},{i:s-2,x:e3(t,r)})}else(1!==n||1!==r)&&a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,d,h),a=o=null,function(e){for(var t,n=-1,r=h.length;++n>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?t_(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?t_(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=tp.exec(e))?new tE(t[1],t[2],t[3],1):(t=tf.exec(e))?new tE(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=tm.exec(e))?t_(t[1],t[2],t[3],t[4]):(t=tg.exec(e))?t_(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=tO.exec(e))?tN(t[1],t[2]/100,t[3]/100,1):(t=tb.exec(e))?tN(t[1],t[2]/100,t[3]/100,t[4]):ty.hasOwnProperty(e)?tk(ty[e]):"transparent"===e?new tE(NaN,NaN,NaN,0):null}function tk(e){return new tE(e>>16&255,e>>8&255,255&e,1)}function t_(e,t,n,r){return r<=0&&(e=t=n=NaN),new tE(e,t,n,r)}function tS(e){return(e instanceof tl||(e=tT(e)),e)?(e=e.rgb(),new tE(e.r,e.g,e.b,e.opacity)):new tE}function tw(e,t,n,r){return 1==arguments.length?tS(e):new tE(e,t,n,null==r?1:r)}function tE(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function tC(){return`#${tI(this.r)}${tI(this.g)}${tI(this.b)}`}function tA(){let e=tR(this.opacity);return`${1===e?"rgb(":"rgba("}${tP(this.r)}, ${tP(this.g)}, ${tP(this.b)}${1===e?")":`, ${e})`}`}function tR(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function tP(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function tI(e){return((e=tP(e))<16?"0":"")+e.toString(16)}function tN(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new tL(e,t,n,r)}function t$(e){if(e instanceof tL)return new tL(e.h,e.s,e.l,e.opacity);if(e instanceof tl||(e=tT(e)),!e)return new tL;if(e instanceof tL)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,l=(a+i)/2;return s?(o=t===a?(n-r)/s+(n0&&l<1?0:o,new tL(o,s,l,e.opacity)}function tL(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function tD(e){return(e=(e||0)%360)<0?e+360:e}function tQ(e){return Math.max(0,Math.min(1,e||0))}function tM(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function tF(e,t,n,r,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*n+(1+3*e+3*a-3*o)*r+o*i)/6}to(tl,tT,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:tv,formatHex:tv,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return t$(this).formatHsl()},formatRgb:tx,toString:tx}),to(tE,tw,ts(tl,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new tE(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new tE(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new tE(tP(this.r),tP(this.g),tP(this.b),tR(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:tC,formatHex:tC,formatHex8:function(){return`#${tI(this.r)}${tI(this.g)}${tI(this.b)}${tI((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:tA,toString:tA})),to(tL,function(e,t,n,r){return 1==arguments.length?t$(e):new tL(e,t,n,null==r?1:r)},ts(tl,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new tL(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new tL(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new tE(tM(e>=240?e-240:e+120,i,r),tM(e,i,r),tM(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new tL(tD(this.h),tQ(this.s),tQ(this.l),tR(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=tR(this.opacity);return`${1===e?"hsl(":"hsla("}${tD(this.h)}, ${100*tQ(this.s)}%, ${100*tQ(this.l)}%${1===e?")":`, ${e})`}`}}));var tB=e=>()=>e;function tU(e,t){return function(n){return e+n*t}}function tz(e,t){var n=t-e;return n?tU(e,n):tB(isNaN(e)?t:e)}var tj=function e(t){var n,r=1==(n=+(n=t))?tz:function(e,t){var r,i,a;return t-e?(r=e,i=t,r=Math.pow(r,a=n),i=Math.pow(i,a)-r,a=1/a,function(e){return Math.pow(r+e*i,a)}):tB(isNaN(e)?t:e)};function i(e,t){var n=r((e=tw(e)).r,(t=tw(t)).r),i=r(e.g,t.g),a=r(e.b,t.b),o=tz(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+""}}return i.gamma=e,i}(1);function tW(e){return function(t){var n,r,i=t.length,a=Array(i),o=Array(i),s=Array(i);for(n=0;n=1?(n=1,t-1):Math.floor(n*t),i=e[r],a=e[r+1],o=r>0?e[r-1]:2*i-a,s=rs&&(o=t.slice(s,o),u[l]?u[l]+=o:u[++l]=o),(i=i[0])===(a=a[0])?u[l]?u[l]+=a:u[++l]=a:(u[++l]=null,c.push({i:l,x:e3(i,a)})),s=tq.lastIndex;return s=0&&(e=e.slice(0,t)),!e||"start"===e})?e5:e9,function(){var o=i(this,a),s=o.on;s!==n&&(r=(n=s).copy()).on(e,t),o.on=r}))},attr:function(e,t){var n=N(e),r="transform"===n?tn:tH;return this.attrTween(e,"function"==typeof t?(n.local?t1:tJ)(n,r,ta(this,"attr."+e,t)):null==t?(n.local?tX:tY)(n):(n.local?tK:tV)(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw Error();var r=N(e);return this.tween(n,(r.local?t0:t2)(r,t))},style:function(e,t,n){var r,i,a,o,s,l,u,c,d,h,p,f,m,g,O,b,y,v,x,T,k,_="transform"==(e+="")?tt:tH;return null==t?this.styleTween(e,(r=e,function(){var e=W(this,r),t=(this.style.removeProperty(r),W(this,r));return e===t?null:e===i&&t===a?o:o=_(i=e,a=t)})).on("end.style."+e,t6(e)):"function"==typeof t?this.styleTween(e,(s=e,l=ta(this,"style."+e,t),function(){var e=W(this,s),t=l(this),n=t+"";return null==t&&(this.style.removeProperty(s),n=t=W(this,s)),e===n?null:e===u&&n===c?d:(c=n,d=_(u=e,t))})).each((h=this._id,y="end."+(b="style."+(p=e)),function(){var e=e9(this,h),t=e.on,n=null==e.value[b]?O||(O=t6(p)):void 0;(t!==f||g!==n)&&(m=(f=t).copy()).on(y,g=n),e.on=m})):this.styleTween(e,(v=e,k=t+"",function(){var e=W(this,v);return e===k?null:e===x?T:T=_(x=e,t)}),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw Error();return this.tween(r,function(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&function(t){this.style.setProperty(e,a.call(this,t),n)}),r}return a._value=t,a}(e,t,null==n?"":n))},text:function(e){var t,n;return this.tween("text","function"==typeof e?(t=ta(this,"text",e),function(){var e=t(this);this.textContent=null==e?"":e}):(n=null==e?"":e+"",function(){this.textContent=n}))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw Error();return this.tween(t,function(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&function(e){this.textContent=r.call(this,e)}),t}return r._value=e,r}(e))},remove:function(){var e;return this.on("end.remove",(e=this._id,function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,i=e4(this.node(),n).tween,a=0,o=i.length;a2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete a[i]}o&&delete e.__transition}}(this,e)})},e_.prototype.transition=function(e){var t,n;e instanceof ne?(t=e._id,e=e._name):(t=++t7,(n=nn).time=eq(),e=null==e?null:e+"");for(var r=this._groups,i=r.length,a=0;afetch(t,n).then(ns).then(t=>(new DOMParser).parseFromString(t,e))}["w","e"].map(no),["n","s"].map(no),["n","w","e","s","nw","ne","sw","se"].map(no),nl("application/xml"),nl("text/html");var nu=nl("image/svg+xml");let nc=Math.PI/180,nd=180/Math.PI,nh=4/29,np=6/29,nf=3*np*np,nm=np*np*np;function ng(e){if(e instanceof nO)return new nO(e.l,e.a,e.b,e.opacity);if(e instanceof nk)return n_(e);e instanceof tE||(e=tS(e));var t,n,r=nx(e.r),i=nx(e.g),a=nx(e.b),o=nb((.2225045*r+.7168786*i+.0606169*a)/1);return r===i&&i===a?t=n=o:(t=nb((.4360747*r+.3850649*i+.1430804*a)/.96422),n=nb((.0139322*r+.0971045*i+.7141733*a)/.82521)),new nO(116*o-16,500*(t-o),200*(o-n),e.opacity)}function nO(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function nb(e){return e>nm?Math.pow(e,1/3):e/nf+nh}function ny(e){return e>np?e*e*e:nf*(e-nh)}function nv(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function nx(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function nT(e,t,n,r){return 1==arguments.length?function(e){if(e instanceof nk)return new nk(e.h,e.c,e.l,e.opacity);if(e instanceof nO||(e=ng(e)),0===e.a&&0===e.b)return new nk(NaN,0180||n<-180?n-360*Math.round(n/360):n):tB(isNaN(e)?t:e)});nS(tz);let nE=Math.sqrt(50),nC=Math.sqrt(10),nA=Math.sqrt(2);function nR(e,t,n){let r,i,a;let o=(t-e)/Math.max(0,n),s=Math.floor(Math.log10(o)),l=o/Math.pow(10,s),u=l>=nE?10:l>=nC?5:l>=nA?2:1;return(s<0?(r=Math.round(e*(a=Math.pow(10,-s)/u)),i=Math.round(t*a),r/at&&--i,a=-a):(r=Math.round(e/(a=Math.pow(10,s)*u)),i=Math.round(t/a),r*at&&--i),it?1:e>=t?0:NaN}function n$(e,t){return null==e||null==t?NaN:te?1:t>=e?0:NaN}function nL(e){let t,n,r;function i(e,r,i=0,a=e.length){if(i>>1;0>n(e[t],r)?i=t+1:a=t}while(inN(e(t),n),r=(t,n)=>e(t)-n):(t=e===nN||e===n$?e:nD,n=e,r=e),{left:i,center:function(e,t,n=0,a=e.length){let o=i(e,t,n,a-1);return o>n&&r(e[o-1],t)>-r(e[o],t)?o-1:o},right:function(e,r,i=0,a=e.length){if(i>>1;0>=n(e[t],r)?i=t+1:a=t}while(i(t=o[l-1])&&(n=e,e=t,t=n),u=function(n){return Math.max(e,Math.min(t,n))}),r=l>2?nX:nY,i=a=null,d}function d(t){return null==t||isNaN(t=+t)?n:(i||(i=r(o.map(e),s,l)))(e(u(t)))}return d.invert=function(n){return u(t((a||(a=r(s,o.map(e),e3)))(n)))},d.domain=function(e){return arguments.length?(o=Array.from(e,nZ),c()):o.slice()},d.range=function(e){return arguments.length?(s=Array.from(e),c()):s.slice()},d.rangeRound=function(e){return s=Array.from(e),l=nW,c()},d.clamp=function(e){return arguments.length?(u=!!e||nG,c()):u!==nG},d.interpolate=function(e){return arguments.length?(l=e,c()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,c()}})()(nG,nG)}function nJ(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}var n1=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function n0(e){var t;if(!(t=n1.exec(e)))throw Error("invalid format: "+e);return new n2({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function n2(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function n5(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function n9(e){return(e=n5(Math.abs(e)))?e[1]:NaN}function n4(e,t){var n=n5(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+Array(i-r.length+2).join("0")}n0.prototype=n2.prototype,n2.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var n3={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>n4(100*e,t),r:n4,s:function(e,t){var n=n5(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(eR=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+Array(1-a).join("0")+n5(e,Math.max(0,t+a-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function n8(e){return e}var n6=Array.prototype.map,n7=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];eI=(eP=function(e){var t,n,r,i=void 0===e.grouping||void 0===e.thousands?n8:(t=n6.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,a=[],o=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),a.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[o=(o+1)%t.length];return a.reverse().join(n)}),a=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",s=void 0===e.decimal?".":e.decimal+"",l=void 0===e.numerals?n8:(r=n6.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return r[+e]})}),u=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",d=void 0===e.nan?"NaN":e.nan+"";function h(e){var t=(e=n0(e)).fill,n=e.align,r=e.sign,h=e.symbol,p=e.zero,f=e.width,m=e.comma,g=e.precision,O=e.trim,b=e.type;"n"===b?(m=!0,b="g"):n3[b]||(void 0===g&&(g=12),O=!0,b="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var y="$"===h?a:"#"===h&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",v="$"===h?o:/[%p]/.test(b)?u:"",x=n3[b],T=/[defgprs%]/.test(b);function k(e){var a,o,u,h=y,k=v;if("c"===b)k=x(e)+k,e="";else{var _=(e=+e)<0||1/e<0;if(e=isNaN(e)?d:x(Math.abs(e),g),O&&(e=function(e){u:for(var t,n=e.length,r=1,i=-1;r0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),_&&0==+e&&"+"!==r&&(_=!1),h=(_?"("===r?r:c:"-"===r||"("===r?"":r)+h,k=("s"===b?n7[8+eR/3]:"")+k+(_&&"("===r?")":""),T){for(a=-1,o=e.length;++a(u=e.charCodeAt(a))||u>57){k=(46===u?s+e.slice(a+1):e.slice(a))+k,e=e.slice(0,a);break}}}m&&!p&&(e=i(e,1/0));var S=h.length+e.length+k.length,w=S>1)+h+e+k+w.slice(S);break;default:e=w+h+e+k}return l(e)}return g=void 0===g?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),k.toString=function(){return e+""},k}return{format:h,formatPrefix:function(e,t){var n=h(((e=n0(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(n9(t)/3))),i=Math.pow(10,-r),a=n7[8+r/3];return function(e){return n(i*e)+a}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,eN=eP.formatPrefix;class re extends Map{constructor(e,t=rn){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(let[t,n]of e)this.set(t,n)}get(e){return super.get(rt(this,e))}has(e){return super.has(rt(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}(this,e))}}function rt({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function rn(e){return null!==e&&"object"==typeof e?e.valueOf():e}let rr=Symbol("implicit"),ri=864e5,ra=7*ri,ro=30*ri,rs=365*ri,rl=new Date,ru=new Date;function rc(e,t,n,r){function i(t){return e(t=0==arguments.length?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{let t=i(e),n=i.ceil(e);return e-t(t(e=new Date(+e),null==n?1:Math.floor(n)),e),i.range=(n,r,a)=>{let o;let s=[];if(n=i.ceil(n),a=null==a?1:Math.floor(a),!(n0))return s;do s.push(o=new Date(+n)),t(n,a),e(n);while(orc(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e){if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}}),n&&(i.count=(t,r)=>(rl.setTime(+t),ru.setTime(+r),e(rl),e(ru),Math.floor(n(rl,ru))),i.every=e=>isFinite(e=Math.floor(e))&&e>0?e>1?i.filter(r?t=>r(t)%e==0:t=>i.count(0,t)%e==0):i:null),i}let rd=rc(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);rd.every=e=>isFinite(e=Math.floor(e))&&e>0?e>1?rc(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):rd:null,rd.range;let rh=rc(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+1e3*t)},(e,t)=>(t-e)/1e3,e=>e.getUTCSeconds());rh.range;let rp=rc(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getMinutes());rp.range;let rf=rc(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getUTCMinutes());rf.range;let rm=rc(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())},(e,t)=>{e.setTime(+e+36e5*t)},(e,t)=>(t-e)/36e5,e=>e.getHours());rm.range;let rg=rc(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+36e5*t)},(e,t)=>(t-e)/36e5,e=>e.getUTCHours());rg.range;let rO=rc(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/ri,e=>e.getDate()-1);rO.range;let rb=rc(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ri,e=>e.getUTCDate()-1);rb.range;let ry=rc(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ri,e=>Math.floor(e/ri));function rv(e){return rc(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+7*t)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/ra)}ry.range;let rx=rv(0),rT=rv(1),rk=rv(2),r_=rv(3),rS=rv(4),rw=rv(5),rE=rv(6);function rC(e){return rc(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)},(e,t)=>(t-e)/ra)}rx.range,rT.range,rk.range,r_.range,rS.range,rw.range,rE.range;let rA=rC(0),rR=rC(1),rP=rC(2),rI=rC(3),rN=rC(4),r$=rC(5),rL=rC(6);rA.range,rR.range,rP.range,rI.range,rN.range,r$.range,rL.range;let rD=rc(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());rD.range;let rQ=rc(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());rQ.range;let rM=rc(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());rM.every=e=>isFinite(e=Math.floor(e))&&e>0?rc(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}):null,rM.range;let rF=rc(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());function rB(e,t,n,r,i,a){let o=[[rh,1,1e3],[rh,5,5e3],[rh,15,15e3],[rh,30,3e4],[a,1,6e4],[a,5,3e5],[a,15,9e5],[a,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,ri],[r,2,2*ri],[n,1,ra],[t,1,ro],[t,3,3*ro],[e,1,rs]];function s(t,n,r){let i=Math.abs(n-t)/r,a=nL(([,,e])=>e).right(o,i);if(a===o.length)return e.every(nI(t/rs,n/rs,r));if(0===a)return rd.every(Math.max(nI(t,n,r),1));let[s,l]=o[i/o[a-1][2]isFinite(e=Math.floor(e))&&e>0?rc(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null,rF.range;let[rU,rz]=rB(rF,rQ,rA,ry,rg,rf),[rj,rW]=rB(rM,rD,rx,rO,rm,rp);function rZ(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function rq(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function rG(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var rH={"-":"",_:" ",0:"0"},rY=/^\s*\d+/,rX=/^%/,rV=/[\\^$*+?|[\]().{}]/g;function rK(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a[e.toLowerCase(),t]))}function r2(e,t,n){var r=rY.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function r5(e,t,n){var r=rY.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function r9(e,t,n){var r=rY.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function r4(e,t,n){var r=rY.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function r3(e,t,n){var r=rY.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function r8(e,t,n){var r=rY.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function r6(e,t,n){var r=rY.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function r7(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function ie(e,t,n){var r=rY.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function it(e,t,n){var r=rY.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function ir(e,t,n){var r=rY.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function ii(e,t,n){var r=rY.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function ia(e,t,n){var r=rY.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function io(e,t,n){var r=rY.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function is(e,t,n){var r=rY.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function il(e,t,n){var r=rY.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function iu(e,t,n){var r=rY.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function ic(e,t,n){var r=rX.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function id(e,t,n){var r=rY.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function ih(e,t,n){var r=rY.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function ip(e,t){return rK(e.getDate(),t,2)}function im(e,t){return rK(e.getHours(),t,2)}function ig(e,t){return rK(e.getHours()%12||12,t,2)}function iO(e,t){return rK(1+rO.count(rM(e),e),t,3)}function ib(e,t){return rK(e.getMilliseconds(),t,3)}function iy(e,t){return ib(e,t)+"000"}function iv(e,t){return rK(e.getMonth()+1,t,2)}function ix(e,t){return rK(e.getMinutes(),t,2)}function iT(e,t){return rK(e.getSeconds(),t,2)}function ik(e){var t=e.getDay();return 0===t?7:t}function i_(e,t){return rK(rx.count(rM(e)-1,e),t,2)}function iS(e){var t=e.getDay();return t>=4||0===t?rS(e):rS.ceil(e)}function iw(e,t){return e=iS(e),rK(rS.count(rM(e),e)+(4===rM(e).getDay()),t,2)}function iE(e){return e.getDay()}function iC(e,t){return rK(rT.count(rM(e)-1,e),t,2)}function iA(e,t){return rK(e.getFullYear()%100,t,2)}function iR(e,t){return rK((e=iS(e)).getFullYear()%100,t,2)}function iP(e,t){return rK(e.getFullYear()%1e4,t,4)}function iI(e,t){var n=e.getDay();return rK((e=n>=4||0===n?rS(e):rS.ceil(e)).getFullYear()%1e4,t,4)}function iN(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+rK(t/60|0,"0",2)+rK(t%60,"0",2)}function i$(e,t){return rK(e.getUTCDate(),t,2)}function iL(e,t){return rK(e.getUTCHours(),t,2)}function iD(e,t){return rK(e.getUTCHours()%12||12,t,2)}function iQ(e,t){return rK(1+rb.count(rF(e),e),t,3)}function iM(e,t){return rK(e.getUTCMilliseconds(),t,3)}function iF(e,t){return iM(e,t)+"000"}function iB(e,t){return rK(e.getUTCMonth()+1,t,2)}function iU(e,t){return rK(e.getUTCMinutes(),t,2)}function iz(e,t){return rK(e.getUTCSeconds(),t,2)}function ij(e){var t=e.getUTCDay();return 0===t?7:t}function iW(e,t){return rK(rA.count(rF(e)-1,e),t,2)}function iZ(e){var t=e.getUTCDay();return t>=4||0===t?rN(e):rN.ceil(e)}function iq(e,t){return e=iZ(e),rK(rN.count(rF(e),e)+(4===rF(e).getUTCDay()),t,2)}function iG(e){return e.getUTCDay()}function iH(e,t){return rK(rR.count(rF(e)-1,e),t,2)}function iY(e,t){return rK(e.getUTCFullYear()%100,t,2)}function iX(e,t){return rK((e=iZ(e)).getUTCFullYear()%100,t,2)}function iV(e,t){return rK(e.getUTCFullYear()%1e4,t,4)}function iK(e,t){var n=e.getUTCDay();return rK((e=n>=4||0===n?rN(e):rN.ceil(e)).getUTCFullYear()%1e4,t,4)}function iJ(){return"+0000"}function i1(){return"%"}function i0(e){return+e}function i2(e){return Math.floor(+e/1e3)}function i5(e){return new Date(e)}function i9(e){return e instanceof Date?+e:+new Date(+e)}function i4(){return nJ.apply((function e(t,n,r,i,a,o,s,l,u,c){var d=nK(),h=d.invert,p=d.domain,f=c(".%L"),m=c(":%S"),g=c("%I:%M"),O=c("%I %p"),b=c("%a %d"),y=c("%b %d"),v=c("%B"),x=c("%Y");function T(e){return(u(e)=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:i0,s:i2,S:iT,u:ik,U:i_,V:iw,w:iE,W:iC,x:null,X:null,y:iA,Y:iP,Z:iN,"%":i1},v={a:function(e){return o[e.getUTCDay()]},A:function(e){return a[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:i$,e:i$,f:iF,g:iX,G:iK,H:iL,I:iD,j:iQ,L:iM,m:iB,M:iU,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:i0,s:i2,S:iz,u:ij,U:iW,V:iq,w:iG,W:iH,x:null,X:null,y:iY,Y:iV,Z:iJ,"%":i1},x={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=O.exec(t.slice(n));return r?(e.m=b.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return _(e,t,n,r)},d:ir,e:ir,f:iu,g:r6,G:r8,H:ia,I:ia,j:ii,L:il,m:it,M:io,p:function(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=c.get(r[0].toLowerCase()),n+r[0].length):-1},q:ie,Q:id,s:ih,S:is,u:r5,U:r9,V:r4,w:r2,W:r3,x:function(e,t,r){return _(e,n,t,r)},X:function(e,t,n){return _(e,r,t,n)},y:r6,Y:r8,Z:r7,"%":ic};function T(e,t){return function(n){var r,i,a,o=[],s=-1,l=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in a||(a.w=1),"Z"in a?(r=(i=(r=rq(rG(a.y,0,1))).getUTCDay())>4||0===i?rR.ceil(r):rR(r),r=rb.offset(r,(a.V-1)*7),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(r=(i=(r=rZ(rG(a.y,0,1))).getDay())>4||0===i?rT.ceil(r):rT(r),r=rO.offset(r,(a.V-1)*7),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),i="Z"in a?rq(rG(a.y,0,1)).getUTCDay():rZ(rG(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,rq(a)):rZ(a)}}function _(e,t,n,r){for(var i,a,o=0,s=t.length,l=n.length;o=l)return -1;if(37===(i=t.charCodeAt(o++))){if(!(a=x[(i=t.charAt(o++))in rH?t.charAt(o++):i])||(r=a(e,n,r))<0)return -1}else if(i!=n.charCodeAt(r++))return -1}return r}return y.x=T(n,y),y.X=T(r,y),y.c=T(t,y),v.x=T(n,v),v.X=T(r,v),v.c=T(t,v),{format:function(e){var t=T(e+="",y);return t.toString=function(){return e},t},parse:function(e){var t=k(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=T(e+="",v);return t.toString=function(){return e},t},utcParse:function(e){var t=k(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,e$.parse,e$.utcFormat,e$.utcParse;var i3=function(e){for(var t=e.length/6|0,n=Array(t),r=0;r=1?al:e<=-1?-al:Math.asin(e)}let ad=Math.PI,ah=2*ad,ap=ah-1e-6;function af(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw Error(`invalid digits: ${e}`);if(t>15)return af;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t1e-6){if(Math.abs(c*s-l*u)>1e-6&&i){let h=n-a,p=r-o,f=s*s+l*l,m=Math.sqrt(f),g=Math.sqrt(d),O=i*Math.tan((ad-Math.acos((f+d-(h*h+p*p))/(2*m*g)))/2),b=O/g,y=O/m;Math.abs(b-1)>1e-6&&this._append`L${e+b*u},${t+b*c}`,this._append`A${i},${i},0,0,${+(c*h>u*p)},${this._x1=e+y*s},${this._y1=t+y*l}`}else this._append`L${this._x1=e},${this._y1=t}`}}arc(e,t,n,r,i,a){if(e=+e,t=+t,a=!!a,(n=+n)<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),l=e+o,u=t+s,c=1^a,d=a?r-i:i-r;null===this._x1?this._append`M${l},${u}`:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-u)>1e-6)&&this._append`L${l},${u}`,n&&(d<0&&(d=d%ah+ah),d>ap?this._append`A${n},${n},0,1,${c},${e-o},${t-s}A${n},${n},0,1,${c},${this._x1=l},${this._y1=u}`:d>1e-6&&this._append`A${n},${n},0,${+(d>=ad)},${c},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function ag(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new am(t)}function aO(e){return e.innerRadius}function ab(e){return e.outerRadius}function ay(e){return e.startAngle}function av(e){return e.endAngle}function ax(e){return e&&e.padAngle}function aT(e,t,n,r,i,a,o){var s=e-n,l=t-r,u=(o?a:-a)/ao(s*s+l*l),c=u*l,d=-u*s,h=e+c,p=t+d,f=n+c,m=r+d,g=(h+f)/2,O=(p+m)/2,b=f-h,y=m-p,v=b*b+y*y,x=i-a,T=h*m-f*p,k=(y<0?-1:1)*ao(ar(0,x*x*v-T*T)),_=(T*y-b*k)/v,S=(-T*b-y*k)/v,w=(T*y+b*k)/v,E=(-T*b+y*k)/v,C=_-g,A=S-O,R=w-g,P=E-O;return C*C+A*A>R*R+P*P&&(_=w,S=E),{cx:_,cy:S,x01:-c,y01:-d,x11:_*(i/x-1),y11:S*(i/x-1)}}function ak(){var e=aO,t=ab,n=i7(0),r=null,i=ay,a=av,o=ax,s=null,l=ag(u);function u(){var u,c,d=+e.apply(this,arguments),h=+t.apply(this,arguments),p=i.apply(this,arguments)-al,f=a.apply(this,arguments)-al,m=ae(f-p),g=f>p;if(s||(s=u=l()),h1e-12){if(m>au-1e-12)s.moveTo(h*an(p),h*aa(p)),s.arc(0,0,h,p,f,!g),d>1e-12&&(s.moveTo(d*an(f),d*aa(f)),s.arc(0,0,d,f,p,g));else{var O,b,y=p,v=f,x=p,T=f,k=m,_=m,S=o.apply(this,arguments)/2,w=S>1e-12&&(r?+r.apply(this,arguments):ao(d*d+h*h)),E=ai(ae(h-d)/2,+n.apply(this,arguments)),C=E,A=E;if(w>1e-12){var R=ac(w/d*aa(S)),P=ac(w/h*aa(S));(k-=2*R)>1e-12?(R*=g?1:-1,x+=R,T-=R):(k=0,x=T=(p+f)/2),(_-=2*P)>1e-12?(P*=g?1:-1,y+=P,v-=P):(_=0,y=v=(p+f)/2)}var I=h*an(y),N=h*aa(y),$=d*an(T),L=d*aa(T);if(E>1e-12){var D,Q=h*an(v),M=h*aa(v),F=d*an(x),B=d*aa(x);if(m1?0:U<-1?as:Math.acos(U))/2),G=ao(D[0]*D[0]+D[1]*D[1]);C=ai(E,(d-G)/(q-1)),A=ai(E,(h-G)/(q+1))}else C=A=0}}_>1e-12?A>1e-12?(O=aT(F,B,I,N,h,A,g),b=aT(Q,M,$,L,h,A,g),s.moveTo(O.cx+O.x01,O.cy+O.y01),A1e-12&&k>1e-12?C>1e-12?(O=aT($,L,Q,M,d,-C,g),b=aT(I,N,F,B,d,-C,g),s.lineTo(O.cx+O.x01,O.cy+O.y01),Ce?1:t>=e?0:NaN}function aP(e){return e}function aI(){var e=aP,t=aR,n=null,r=i7(0),i=i7(au),a=i7(0);function o(o){var s,l,u,c,d,h=(o=a_(o)).length,p=0,f=Array(h),m=Array(h),g=+r.apply(this,arguments),O=Math.min(au,Math.max(-au,i.apply(this,arguments)-g)),b=Math.min(Math.abs(O)/h,a.apply(this,arguments)),y=b*(O<0?-1:1);for(s=0;s0&&(p+=d);for(null!=t?f.sort(function(e,n){return t(m[e],m[n])}):null!=n&&f.sort(function(e,t){return n(o[e],o[t])}),s=0,u=p?(O-h*y)/p:0;s0?d*u:0)+y,m[l]={data:o[l],index:s,value:d,startAngle:g,endAngle:c,padAngle:b};return m}return o.value=function(t){return arguments.length?(e="function"==typeof t?t:i7(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:i7(+e),o):r},o.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:i7(+e),o):i},o.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:i7(+e),o):a},o}function aN(){}function a$(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function aL(e){this._context=e}function aD(e){return new aL(e)}function aQ(e){this._context=e}function aM(e){return new aQ(e)}function aF(e){this._context=e}function aB(e){return new aF(e)}am.prototype,Array.prototype.slice,aS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}},aL.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:a$(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:a$(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},aQ.prototype={areaStart:aN,areaEnd:aN,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:a$(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},aF.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:a$(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};class aU{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}function az(e){return new aU(e,!0)}function aj(e){return new aU(e,!1)}function aW(e,t){this._basis=new aL(e),this._beta=t}aW.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],a=t[0],o=e[n]-i,s=t[n]-a,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(i+r*o),this._beta*t[l]+(1-this._beta)*(a+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var aZ=function e(t){function n(e){return 1===t?new aL(e):new aW(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function aq(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function aG(e,t){this._context=e,this._k=(1-t)/6}aG.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:aq(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:aq(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var aH=function e(t){function n(e){return new aG(e,t)}return n.tension=function(t){return e(+t)},n}(0);function aY(e,t){this._context=e,this._k=(1-t)/6}aY.prototype={areaStart:aN,areaEnd:aN,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:aq(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var aX=function e(t){function n(e){return new aY(e,t)}return n.tension=function(t){return e(+t)},n}(0);function aV(e,t){this._context=e,this._k=(1-t)/6}aV.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:aq(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var aK=function e(t){function n(e){return new aV(e,t)}return n.tension=function(t){return e(+t)},n}(0);function aJ(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>1e-12){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>1e-12){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*u+e._x1*e._l23_2a-t*e._l12_2a)/c,o=(o*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function a1(e,t){this._context=e,this._alpha=t}a1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:aJ(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var a0=function e(t){function n(e){return t?new a1(e,t):new aG(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function a2(e,t){this._context=e,this._alpha=t}a2.prototype={areaStart:aN,areaEnd:aN,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:aJ(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var a5=function e(t){function n(e){return t?new a2(e,t):new aY(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function a9(e,t){this._context=e,this._alpha=t}a9.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:aJ(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var a4=function e(t){function n(e){return t?new a9(e,t):new aV(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function a3(e){this._context=e}function a8(e){return new a3(e)}function a6(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0);return((a<0?-1:1)+(o<0?-1:1))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs((a*i+o*r)/(r+i)))||0}function a7(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function oe(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function ot(e){this._context=e}function on(e){this._context=new or(e)}function or(e){this._context=e}function oi(e){return new ot(e)}function oa(e){return new on(e)}function oo(e){this._context=e}function os(e){var t,n,r=e.length-1,i=Array(r),a=Array(r),o=Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(t=0,a[r-1]=(e[r]+i[r-1])/2;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}},op.prototype={constructor:op,scale:function(e){return 1===e?this:new op(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new op(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},new op(1,0,0),op.prototype},44301:function(e,t,n){"use strict";n.d(t,{T:function(){return i}});let r=document.createElement("i");function i(e){let t="&"+e+";";r.innerHTML=t;let n=r.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}},27490:function(e,t,n){"use strict";function r(e){let t=e&&"object"==typeof e&&"text"===e.type?e.value||"":e;return"string"==typeof t&&""===t.replace(/[ \t\n\f\r]/g,"")}n.d(t,{Q:function(){return r}})},21883:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(61691),i=n(82142),a=class{constructor(){this.type=i.w.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=i.w.ALL}is(e){return this.type===e}},o=class{constructor(e,t){this.color=t,this.changed=!1,this.data=e,this.type=new a}set(e,t){return this.color=t,this.changed=!1,this.data=e,this.type.type=i.w.ALL,this}_ensureHSL(){let e=this.data,{h:t,s:n,l:i}=e;void 0===t&&(e.h=r.Z.channel.rgb2hsl(e,"h")),void 0===n&&(e.s=r.Z.channel.rgb2hsl(e,"s")),void 0===i&&(e.l=r.Z.channel.rgb2hsl(e,"l"))}_ensureRGB(){let e=this.data,{r:t,g:n,b:i}=e;void 0===t&&(e.r=r.Z.channel.hsl2rgb(e,"r")),void 0===n&&(e.g=r.Z.channel.hsl2rgb(e,"g")),void 0===i&&(e.b=r.Z.channel.hsl2rgb(e,"b"))}get r(){let e=this.data,t=e.r;return this.type.is(i.w.HSL)||void 0===t?(this._ensureHSL(),r.Z.channel.hsl2rgb(e,"r")):t}get g(){let e=this.data,t=e.g;return this.type.is(i.w.HSL)||void 0===t?(this._ensureHSL(),r.Z.channel.hsl2rgb(e,"g")):t}get b(){let e=this.data,t=e.b;return this.type.is(i.w.HSL)||void 0===t?(this._ensureHSL(),r.Z.channel.hsl2rgb(e,"b")):t}get h(){let e=this.data,t=e.h;return this.type.is(i.w.RGB)||void 0===t?(this._ensureRGB(),r.Z.channel.rgb2hsl(e,"h")):t}get s(){let e=this.data,t=e.s;return this.type.is(i.w.RGB)||void 0===t?(this._ensureRGB(),r.Z.channel.rgb2hsl(e,"s")):t}get l(){let e=this.data,t=e.l;return this.type.is(i.w.RGB)||void 0===t?(this._ensureRGB(),r.Z.channel.rgb2hsl(e,"l")):t}get a(){return this.data.a}set r(e){this.type.set(i.w.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(i.w.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(i.w.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(i.w.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(i.w.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(i.w.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}};let s=new o({r:0,g:0,b:0,a:0},"transparent");var l=s},71610:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(21883),i=n(82142);let a={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(35!==e.charCodeAt(0))return;let t=e.match(a.re);if(!t)return;let n=t[1],i=parseInt(n,16),o=n.length,s=o%4==0,l=o>4,u=l?1:17,c=l?8:4,d=s?0:-1,h=l?255:15;return r.Z.set({r:(i>>c*(d+3)&h)*u,g:(i>>c*(d+2)&h)*u,b:(i>>c*(d+1)&h)*u,a:s?(i&h)*u/255:1},e)},stringify:e=>{let{r:t,g:n,b:r,a}=e;return a<1?`#${i.Q[Math.round(t)]}${i.Q[Math.round(n)]}${i.Q[Math.round(r)]}${i.Q[Math.round(255*a)]}`:`#${i.Q[Math.round(t)]}${i.Q[Math.round(n)]}${i.Q[Math.round(r)]}`}};var o=n(61691);let s={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{let t=e.match(s.hueRe);if(t){let[,e,n]=t;switch(n){case"grad":return o.Z.channel.clamp.h(.9*parseFloat(e));case"rad":return o.Z.channel.clamp.h(180*parseFloat(e)/Math.PI);case"turn":return o.Z.channel.clamp.h(360*parseFloat(e))}}return o.Z.channel.clamp.h(parseFloat(e))},parse:e=>{let t=e.charCodeAt(0);if(104!==t&&72!==t)return;let n=e.match(s.re);if(!n)return;let[,i,a,l,u,c]=n;return r.Z.set({h:s._hue2deg(i),s:o.Z.channel.clamp.s(parseFloat(a)),l:o.Z.channel.clamp.l(parseFloat(l)),a:u?o.Z.channel.clamp.a(c?parseFloat(u)/100:parseFloat(u)):1},e)},stringify:e=>{let{h:t,s:n,l:r,a:i}=e;return i<1?`hsla(${o.Z.lang.round(t)}, ${o.Z.lang.round(n)}%, ${o.Z.lang.round(r)}%, ${i})`:`hsl(${o.Z.lang.round(t)}, ${o.Z.lang.round(n)}%, ${o.Z.lang.round(r)}%)`}},l={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:e=>{e=e.toLowerCase();let t=l.colors[e];if(t)return a.parse(t)},stringify:e=>{let t=a.stringify(e);for(let e in l.colors)if(l.colors[e]===t)return e}},u={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{let t=e.charCodeAt(0);if(114!==t&&82!==t)return;let n=e.match(u.re);if(!n)return;let[,i,a,s,l,c,d,h,p]=n;return r.Z.set({r:o.Z.channel.clamp.r(a?2.55*parseFloat(i):parseFloat(i)),g:o.Z.channel.clamp.g(l?2.55*parseFloat(s):parseFloat(s)),b:o.Z.channel.clamp.b(d?2.55*parseFloat(c):parseFloat(c)),a:h?o.Z.channel.clamp.a(p?parseFloat(h)/100:parseFloat(h)):1},e)},stringify:e=>{let{r:t,g:n,b:r,a:i}=e;return i<1?`rgba(${o.Z.lang.round(t)}, ${o.Z.lang.round(n)}, ${o.Z.lang.round(r)}, ${o.Z.lang.round(i)})`:`rgb(${o.Z.lang.round(t)}, ${o.Z.lang.round(n)}, ${o.Z.lang.round(r)})`}};var c={format:{keyword:l,hex:a,rgb:u,rgba:u,hsl:s,hsla:s},parse:e=>{if("string"!=typeof e)return e;let t=a.parse(e)||u.parse(e)||s.parse(e)||l.parse(e);if(t)return t;throw Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(i.w.HSL)||void 0===e.data.r?s.stringify(e):!(e.a<1)&&Number.isInteger(e.r)&&Number.isInteger(e.g)&&Number.isInteger(e.b)?a.stringify(e):u.stringify(e)}},82142:function(e,t,n){"use strict";n.d(t,{Q:function(){return i},w:function(){return a}});var r=n(61691);let i={};for(let e=0;e<=255;e++)i[e]=r.Z.unit.dec2hex(e);let a={ALL:0,RGB:1,HSL:2}},26174:function(e,t,n){"use strict";var r=n(61691),i=n(71610);t.Z=(e,t,n)=>{let a=i.Z.parse(e),o=a[t],s=r.Z.channel.clamp[t](o+n);return o!==s&&(a[t]=s),i.Z.stringify(a)}},53438:function(e,t,n){"use strict";var r=n(61691),i=n(71610);t.Z=(e,t)=>{let n=i.Z.parse(e);for(let e in t)n[e]=r.Z.channel.clamp[e](t[e]);return i.Z.stringify(n)}},7201:function(e,t,n){"use strict";var r=n(26174);t.Z=(e,t)=>(0,r.Z)(e,"l",-t)},91619:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(61691),i=n(71610),a=e=>{let{r:t,g:n,b:a}=i.Z.parse(e),o=.2126*r.Z.channel.toLinear(t)+.7152*r.Z.channel.toLinear(n)+.0722*r.Z.channel.toLinear(a);return r.Z.lang.round(o)},o=e=>a(e)>=.5,s=e=>!o(e)},12281:function(e,t,n){"use strict";var r=n(26174);t.Z=(e,t)=>(0,r.Z)(e,"l",t)},51117:function(e,t,n){"use strict";var r=n(61691),i=n(21883),a=n(71610),o=n(53438);t.Z=(e,t,n=0,s=1)=>{if("number"!=typeof e)return(0,o.Z)(e,{a:t});let l=i.Z.set({r:r.Z.channel.clamp.r(e),g:r.Z.channel.clamp.g(t),b:r.Z.channel.clamp.b(n),a:r.Z.channel.clamp.a(s)});return a.Z.stringify(l)}},61691:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});let r={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{let t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:(e,t,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e,hsl2rgb:({h:e,s:t,l:n},i)=>{if(!t)return 2.55*n;e/=360,t/=100,n/=100;let a=n<.5?n*(1+t):n+t-n*t,o=2*n-a;switch(i){case"r":return 255*r.hue2rgb(o,a,e+1/3);case"g":return 255*r.hue2rgb(o,a,e);case"b":return 255*r.hue2rgb(o,a,e-1/3)}},rgb2hsl:({r:e,g:t,b:n},r)=>{e/=255,t/=255,n/=255;let i=Math.max(e,t,n),a=Math.min(e,t,n),o=(i+a)/2;if("l"===r)return 100*o;if(i===a)return 0;let s=i-a;if("s"===r)return 100*(o>.5?s/(2-i-a):s/(i+a));switch(i){case e:return((t-n)/s+(tt>n?Math.min(t,Math.max(n,e)):Math.min(n,Math.max(t,e)),round:e=>Math.round(1e10*e)/1e10},unit:{dec2hex:e=>{let t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}}}},67308:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(79651),i=function(e,t){for(var n=e.length;n--;)if((0,r.Z)(e[n][0],t))return n;return -1},a=Array.prototype.splice;function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1},o.prototype.set=function(e,t){var n=this.__data__,r=i(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var s=o},86183:function(e,t,n){"use strict";var r=n(62508),i=n(66092),a=(0,r.Z)(i.Z,"Map");t.Z=a},37834:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=(0,n(62508).Z)(Object,"create"),i=Object.prototype.hasOwnProperty,a=Object.prototype.hasOwnProperty;function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e0){if(++r>=800)return arguments[0]}else r=0;return l.apply(void 0,arguments)})},90019:function(e,t){"use strict";var n=Function.prototype.toString;t.Z=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},62002:function(e,t){"use strict";t.Z=function(e){return function(){return e}}},79651:function(e,t){"use strict";t.Z=function(e,t){return e===t||e!=e&&t!=t}},69203:function(e,t){"use strict";t.Z=function(e){return e}},29169:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(93589),i=n(18533),a=function(e){return(0,i.Z)(e)&&"[object Arguments]"==(0,r.Z)(e)},o=Object.prototype,s=o.hasOwnProperty,l=o.propertyIsEnumerable,u=a(function(){return arguments}())?a:function(e){return(0,i.Z)(e)&&s.call(e,"callee")&&!l.call(e,"callee")}},27771:function(e,t){"use strict";var n=Array.isArray;t.Z=n},50585:function(e,t,n){"use strict";var r=n(73234),i=n(1656);t.Z=function(e){return null!=e&&(0,i.Z)(e.length)&&!(0,r.Z)(e)}},836:function(e,t,n){"use strict";var r=n(50585),i=n(18533);t.Z=function(e){return(0,i.Z)(e)&&(0,r.Z)(e)}},77008:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(66092),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=i&&"object"==typeof module&&module&&!module.nodeType&&module,o=a&&a.exports===i?r.Z.Buffer:void 0,s=(o?o.isBuffer:void 0)||function(){return!1}},79697:function(e,t,n){"use strict";var r=n(39473),i=n(83970),a=n(29169),o=n(27771),s=n(50585),l=n(77008),u=n(72764),c=n(18843),d=Object.prototype.hasOwnProperty;t.Z=function(e){if(null==e)return!0;if((0,s.Z)(e)&&((0,o.Z)(e)||"string"==typeof e||"function"==typeof e.splice||(0,l.Z)(e)||(0,c.Z)(e)||(0,a.Z)(e)))return!e.length;var t=(0,i.Z)(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if((0,u.Z)(e))return!(0,r.Z)(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},73234:function(e,t,n){"use strict";var r=n(93589),i=n(77226);t.Z=function(e){if(!(0,i.Z)(e))return!1;var t=(0,r.Z)(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1656:function(e,t){"use strict";t.Z=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},77226:function(e,t){"use strict";t.Z=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},18533:function(e,t){"use strict";t.Z=function(e){return null!=e&&"object"==typeof e}},37514:function(e,t,n){"use strict";var r=n(93589),i=n(12513),a=n(18533),o=Object.prototype,s=Function.prototype.toString,l=o.hasOwnProperty,u=s.call(Object);t.Z=function(e){if(!(0,a.Z)(e)||"[object Object]"!=(0,r.Z)(e))return!1;var t=(0,i.Z)(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==u}},18843:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(93589),i=n(1656),a=n(18533),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1;var s=n(21162),l=n(98351),u=l.Z&&l.Z.isTypedArray,c=u?(0,s.Z)(u):function(e){return(0,a.Z)(e)&&(0,i.Z)(e.length)&&!!o[(0,r.Z)(e)]}},32957:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(87668),i=n(77226),a=n(72764),o=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},s=Object.prototype.hasOwnProperty,l=function(e){if(!(0,i.Z)(e))return o(e);var t=(0,a.Z)(e),n=[];for(var r in e)"constructor"==r&&(t||!s.call(e,r))||n.push(r);return n},u=n(50585),c=function(e){return(0,u.Z)(e)?(0,r.Z)(e,!0):l(e)}},42454:function(e,t,n){"use strict";var r=n(37834);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(i.Cache||r.Z),n}i.Cache=r.Z,t.Z=i},59236:function(e,t,n){"use strict";n.d(t,{Z:function(){return C}});var r,i=n(31667),a=n(74752),o=n(79651),s=function(e,t,n){(void 0===n||(0,o.Z)(e[t],n))&&(void 0!==n||t in e)||(0,a.Z)(e,t,n)},l=n(61395),u=n(91050),c=n(12701),d=n(87215),h=n(73658),p=n(29169),f=n(27771),m=n(836),g=n(77008),O=n(73234),b=n(77226),y=n(37514),v=n(18843),x=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},T=n(31899),k=n(32957),_=function(e,t,n,r,i,a,o){var l=x(e,n),_=x(t,n),S=o.get(_);if(S){s(e,n,S);return}var w=a?a(l,_,n+"",e,t,o):void 0,E=void 0===w;if(E){var C=(0,f.Z)(_),A=!C&&(0,g.Z)(_),R=!C&&!A&&(0,v.Z)(_);(w=_,C||A||R)?(0,f.Z)(l)?w=l:(0,m.Z)(l)?w=(0,d.Z)(l):A?(E=!1,w=(0,u.Z)(_,!0)):R?(E=!1,w=(0,c.Z)(_,!0)):w=[]:(0,y.Z)(_)||(0,p.Z)(_)?(w=l,(0,p.Z)(l))?w=(0,T.Z)(l,(0,k.Z)(l)):(!(0,b.Z)(l)||(0,O.Z)(l))&&(w=(0,h.Z)(_)):E=!1}E&&(o.set(_,w),i(w,_,r,a,o),o.delete(_)),s(e,n,w)},S=function e(t,n,r,a,o){t!==n&&(0,l.Z)(n,function(l,u){if(o||(o=new i.Z),(0,b.Z)(l))_(t,n,u,r,e,a,o);else{var c=a?a(x(t,u),l,u+"",t,n,o):void 0;void 0===c&&(c=l),s(t,u,c)}},k.Z)},w=n(69581),E=n(50439),C=(r=function(e,t,n){S(e,t,n)},(0,w.Z)(function(e,t){var n=-1,i=t.length,a=i>1?t[i-1]:void 0,o=i>2?t[2]:void 0;for(a=r.length>3&&"function"==typeof a?(i--,a):void 0,o&&(0,E.Z)(t[0],t[1],o)&&(a=i<3?void 0:a,i=1),e=Object(e);++nr))return;let s=i.events.length,l=s;for(;l--;)if("exit"===i.events[l][0]&&"chunkFlow"===i.events[l][1].type){if(e){n=i.events[l][1].end;break}e=!0}for(y(o),a=s;at;){let t=a[n];i.containerState=t[1],t[0].exit.call(i,e)}a.length=t}function v(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},d={tokenize:function(e,t,n){return(0,o.f)(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};var h=n(23402);function p(e){let t,n,r,i,a,o,s;let l={},c=-1;for(;++c=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}},partial:!0},g={tokenize:function(e){let t=this,n=e.attempt(h.w,function(r){if(null===r){e.consume(r);return}return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,(0,o.f)(e,e.attempt(this.parser.constructs.flow,r,e.attempt(f,r)),"linePrefix")));return n;function r(r){if(null===r){e.consume(r);return}return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n}}},O={resolveAll:x()},b=v("string"),y=v("text");function v(e){return{tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return l(e)?i(e):o(e)}function o(e){if(null===e){t.consume(e);return}return t.enter("data"),t.consume(e),s}function s(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i=3&&(null===l||(0,s.Ch)(l))?(e.exit("thematicBreak"),t(l)):n(l)}(a)}}},S={name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,o=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:(0,s.pY)(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(_,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return(0,s.pY)(i)&&++o<10?(e.consume(i),t):(!r.interrupt||o<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),l(i)):n(i)}(t)}return n(t)};function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(h.w,r.interrupt?n:u,e.attempt(w,d,c))}function u(e){return r.containerState.initialBlankLine=!0,a++,d(e)}function c(t){return(0,s.xz)(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(h.w,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,(0,o.f)(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!(0,s.xz)(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(E,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,(0,o.f)(e,e.attempt(S,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},w={tokenize:function(e,t,n){let r=this;return(0,o.f)(e,function(e){let i=r.events[r.events.length-1];return!(0,s.xz)(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},E={tokenize:function(e,t,n){let r=this;return(0,o.f)(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)},partial:!0},C={name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return(0,s.xz)(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){let r=this;return function(t){return(0,s.xz)(t)?(0,o.f)(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(C,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};function A(e,t,n,r,i,a,o,l,u){let c=u||Number.POSITIVE_INFINITY,d=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),h):null===t||32===t||41===t||(0,s.Av)(t)?n(t):(e.enter(r),e.enter(o),e.enter(l),e.enter("chunkString",{contentType:"string"}),m(t))};function h(n){return 62===n?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(l),h(t)):null===t||60===t||(0,s.Ch)(t)?n(t):(e.consume(t),92===t?f:p)}function f(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function m(i){return!d&&(null===i||41===i||(0,s.z3)(i))?(e.exit("chunkString"),e.exit(l),e.exit(o),e.exit(r),t(i)):d999||null===h||91===h||93===h&&!o||94===h&&!u&&"_hiddenFootnoteSupport"in l.parser.constructs?n(h):93===h?(e.exit(a),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):(0,s.Ch)(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(h))}function d(t){return null===t||91===t||93===t||(0,s.Ch)(t)||u++>999?(e.exit("chunkString"),c(t)):(e.consume(t),o||(o=!(0,s.xz)(t)),92===t?h:d)}function h(t){return 91===t||92===t||93===t?(e.consume(t),u++,d):d(t)}}function P(e,t,n,r,i,a){let l;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),l=40===t?41:t,u):n(t)};function u(n){return n===l?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),c(n))}function c(t){return t===l?(e.exit(a),u(l)):null===t?n(t):(0,s.Ch)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,o.f)(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(t))}function d(t){return t===l||null===t||(0,s.Ch)(t)?(e.exit("chunkString"),c(t)):(e.consume(t),92===t?h:d)}function h(t){return t===l||92===t?(e.consume(t),d):d(t)}}var I=n(16226),N=n(11098);let $={tokenize:function(e,t,n){return function(t){return(0,s.z3)(t)?(0,I.S)(e,r)(t):n(t)};function r(t){return P(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return(0,s.xz)(t)?(0,o.f)(e,a,"whitespace")(t):a(t)}function a(e){return null===e||(0,s.Ch)(e)?t(e):n(e)}},partial:!0},L={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),(0,o.f)(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?a(n):(0,s.Ch)(n)?e.attempt(D,t,a)(n):(e.enter("codeFlowValue"),function n(r){return null===r||(0,s.Ch)(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function a(n){return e.exit("codeIndented"),t(n)}}},D={tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):(0,s.Ch)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):(0,o.f)(e,a,"linePrefix",5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):(0,s.Ch)(e)?i(e):n(e)}},partial:!0},Q={name:"setextUnderline",tokenize:function(e,t,n){let r;let i=this;return function(t){let l,u=i.events.length;for(;u--;)if("lineEnding"!==i.events[u][1].type&&"linePrefix"!==i.events[u][1].type&&"content"!==i.events[u][1].type){l="paragraph"===i.events[u][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||l)?(e.enter("setextHeadingLine"),r=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),(0,s.xz)(n)?(0,o.f)(e,a,"lineSuffix")(n):a(n))}(t)):n(t)};function a(r){return null===r||(0,s.Ch)(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,i,a=e.length;for(;a--;)if("enter"===e[a][0]){if("content"===e[a][1].type){n=a;break}"paragraph"===e[a][1].type&&(r=a)}else"content"===e[a][1].type&&e.splice(a,1),i||"definition"!==e[a][1].type||(i=a);let o={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",o,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[i][1].end)):e[n][1]=o,e.push(["exit",o,t]),e}},M=["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"],F=["pre","script","style","textarea"],B={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(h.w,t,n)}},partial:!0},U={tokenize:function(e,t,n){let r=this;return function(t){return(0,s.Ch)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},z={tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},j={name:"codeFenced",tokenize:function(e,t,n){let r;let i=this,a={tokenize:function(e,t,n){let a=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l};function l(t){return e.enter("codeFencedFence"),(0,s.xz)(t)?(0,o.f)(e,c,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(a++,e.consume(i),t):a>=u?(e.exit("codeFencedFenceSequence"),(0,s.xz)(i)?(0,o.f)(e,d,"whitespace")(i):d(i)):n(i)}(t)):n(t)}function d(r){return null===r||(0,s.Ch)(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0},l=0,u=0;return function(t){return function(t){let a=i.events[i.events.length-1];return l=a&&"linePrefix"===a[1].type?a[2].sliceSerialize(a[1],!0).length:0,r=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(u++,e.consume(i),t):u<3?n(i):(e.exit("codeFencedFenceSequence"),(0,s.xz)(i)?(0,o.f)(e,c,"whitespace")(i):c(i))}(t)}(t)};function c(a){return null===a||(0,s.Ch)(a)?(e.exit("codeFencedFence"),i.interrupt?t(a):e.check(z,h,g)(a)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||(0,s.Ch)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(i)):(0,s.xz)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),(0,o.f)(e,d,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(a))}function d(t){return null===t||(0,s.Ch)(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||(0,s.Ch)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function h(t){return e.attempt(a,g,p)(t)}function p(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),f}function f(t){return l>0&&(0,s.xz)(t)?(0,o.f)(e,m,"linePrefix",l+1)(t):m(t)}function m(t){return null===t||(0,s.Ch)(t)?e.check(z,h,g)(t):(e.enter("codeFlowValue"),function t(n){return null===n||(0,s.Ch)(n)?(e.exit("codeFlowValue"),m(n)):(e.consume(n),t)}(t))}function g(n){return e.exit("codeFenced"),t(n)}},concrete:!0};var W=n(44301);let Z={name:"characterReference",tokenize:function(e,t,n){let r,i;let a=this,o=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),l};function l(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),r=31,i=s.H$,c(t))}function u(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=s.AF,c):(e.enter("characterReferenceValue"),r=7,i=s.pY,c(t))}function c(l){if(59===l&&o){let r=e.exit("characterReferenceValue");return i!==s.H$||(0,W.T)(a.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(l),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(l)}return i(l)&&o++1&&e[d][1].end.offset-e[d][1].start.offset>1?2:1;let h=Object.assign({},e[n][1].end),p=Object.assign({},e[d][1].start);et(h,-s),et(p,s),a={type:s>1?"strongSequence":"emphasisSequence",start:h,end:Object.assign({},e[n][1].end)},o={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[d][1].start),end:p},i={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[d][1].start)},r={type:s>1?"strong":"emphasis",start:Object.assign({},a.start),end:Object.assign({},o.end)},e[n][1].end=Object.assign({},a.start),e[d][1].start=Object.assign({},o.end),l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=(0,u.V)(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=(0,u.V)(l,[["enter",r,t],["enter",a,t],["exit",a,t],["enter",i,t]]),l=(0,u.V)(l,(0,k.C)(t.parser.constructs.insideSpan.null,e.slice(n+1,d),t)),l=(0,u.V)(l,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",r,t]]),e[d][1].end.offset-e[d][1].start.offset?(c=2,l=(0,u.V)(l,[["enter",e[d][1],t],["exit",e[d][1],t]])):c=0,(0,u.d)(e,n-1,d-n+3,l),d=n+l.length-c-2;break}}for(d=-1;++da&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(a===i-1||i-4>a&&"whitespace"===e[i-2][1].type)&&(i-=a+1===i?2:4),i>a&&(n={type:"atxHeadingText",start:e[a][1].start,end:e[i][1].end},r={type:"chunkText",start:e[a][1].start,end:e[i][1].end,contentType:"text"},(0,u.d)(e,a,i-a+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e}},42:_,45:[Q,_],60:{name:"htmlFlow",tokenize:function(e,t,n){let r,i,a,o,l;let u=this;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c};function c(o){return 33===o?(e.consume(o),d):47===o?(e.consume(o),i=!0,f):63===o?(e.consume(o),r=3,u.interrupt?t:N):(0,s.jv)(o)?(e.consume(o),a=String.fromCharCode(o),m):n(o)}function d(i){return 45===i?(e.consume(i),r=2,h):91===i?(e.consume(i),r=5,o=0,p):(0,s.jv)(i)?(e.consume(i),r=4,u.interrupt?t:N):n(i)}function h(r){return 45===r?(e.consume(r),u.interrupt?t:N):n(r)}function p(r){let i="CDATA[";return r===i.charCodeAt(o++)?(e.consume(r),o===i.length)?u.interrupt?t:S:p:n(r)}function f(t){return(0,s.jv)(t)?(e.consume(t),a=String.fromCharCode(t),m):n(t)}function m(o){if(null===o||47===o||62===o||(0,s.z3)(o)){let l=47===o,c=a.toLowerCase();return!l&&!i&&F.includes(c)?(r=1,u.interrupt?t(o):S(o)):M.includes(a.toLowerCase())?(r=6,l)?(e.consume(o),g):u.interrupt?t(o):S(o):(r=7,u.interrupt&&!u.parser.lazy[u.now().line]?n(o):i?function t(n){return(0,s.xz)(n)?(e.consume(n),t):k(n)}(o):O(o))}return 45===o||(0,s.H$)(o)?(e.consume(o),a+=String.fromCharCode(o),m):n(o)}function g(r){return 62===r?(e.consume(r),u.interrupt?t:S):n(r)}function O(t){return 47===t?(e.consume(t),k):58===t||95===t||(0,s.jv)(t)?(e.consume(t),b):(0,s.xz)(t)?(e.consume(t),O):k(t)}function b(t){return 45===t||46===t||58===t||95===t||(0,s.H$)(t)?(e.consume(t),b):y(t)}function y(t){return 61===t?(e.consume(t),v):(0,s.xz)(t)?(e.consume(t),y):O(t)}function v(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,x):(0,s.xz)(t)?(e.consume(t),v):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||(0,s.z3)(n)?y(n):(e.consume(n),t)}(t)}function x(t){return t===l?(e.consume(t),l=null,T):null===t||(0,s.Ch)(t)?n(t):(e.consume(t),x)}function T(e){return 47===e||62===e||(0,s.xz)(e)?O(e):n(e)}function k(t){return 62===t?(e.consume(t),_):n(t)}function _(t){return null===t||(0,s.Ch)(t)?S(t):(0,s.xz)(t)?(e.consume(t),_):n(t)}function S(t){return 45===t&&2===r?(e.consume(t),A):60===t&&1===r?(e.consume(t),R):62===t&&4===r?(e.consume(t),$):63===t&&3===r?(e.consume(t),N):93===t&&5===r?(e.consume(t),I):(0,s.Ch)(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(B,L,w)(t)):null===t||(0,s.Ch)(t)?(e.exit("htmlFlowData"),w(t)):(e.consume(t),S)}function w(t){return e.check(U,E,L)(t)}function E(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),C}function C(t){return null===t||(0,s.Ch)(t)?w(t):(e.enter("htmlFlowData"),S(t))}function A(t){return 45===t?(e.consume(t),N):S(t)}function R(t){return 47===t?(e.consume(t),a="",P):S(t)}function P(t){if(62===t){let n=a.toLowerCase();return F.includes(n)?(e.consume(t),$):S(t)}return(0,s.jv)(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),P):S(t)}function I(t){return 93===t?(e.consume(t),N):S(t)}function N(t){return 62===t?(e.consume(t),$):45===t&&2===r?(e.consume(t),N):S(t)}function $(t){return null===t||(0,s.Ch)(t)?(e.exit("htmlFlowData"),L(t)):(e.consume(t),$)}function L(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(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},concrete:!0},61:Q,95:_,96:j,126:j},es={38:Z,92:q},el={[-5]:G,[-4]:G,[-3]:G,33:K,38:Z,42:ee,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return(0,s.jv)(t)?(e.consume(t),a):l(t)}function a(t){return 43===t||45===t||46===t||(0,s.H$)(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,o):(43===n||45===n||46===n||(0,s.H$)(n))&&r++<32?(e.consume(n),t):(r=0,l(n))}(t)):l(t)}function o(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||(0,s.Av)(r)?n(r):(e.consume(r),o)}function l(t){return 64===t?(e.consume(t),u):(0,s.n9)(t)?(e.consume(t),l):n(t)}function u(i){return(0,s.H$)(i)?function i(a){return 46===a?(e.consume(a),r=0,u):62===a?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(a),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(a){if((45===a||(0,s.H$)(a))&&r++<63){let n=45===a?t:i;return e.consume(a),n}return n(a)}(a)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,a;let l=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),u};function u(t){return 33===t?(e.consume(t),c):47===t?(e.consume(t),T):63===t?(e.consume(t),v):(0,s.jv)(t)?(e.consume(t),_):n(t)}function c(t){return 45===t?(e.consume(t),d):91===t?(e.consume(t),i=0,m):(0,s.jv)(t)?(e.consume(t),y):n(t)}function d(t){return 45===t?(e.consume(t),f):n(t)}function h(t){return null===t?n(t):45===t?(e.consume(t),p):(0,s.Ch)(t)?(a=h,I(t)):(e.consume(t),h)}function p(t){return 45===t?(e.consume(t),f):h(t)}function f(e){return 62===e?P(e):45===e?p(e):h(e)}function m(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?g:m):n(t)}function g(t){return null===t?n(t):93===t?(e.consume(t),O):(0,s.Ch)(t)?(a=g,I(t)):(e.consume(t),g)}function O(t){return 93===t?(e.consume(t),b):g(t)}function b(t){return 62===t?P(t):93===t?(e.consume(t),b):g(t)}function y(t){return null===t||62===t?P(t):(0,s.Ch)(t)?(a=y,I(t)):(e.consume(t),y)}function v(t){return null===t?n(t):63===t?(e.consume(t),x):(0,s.Ch)(t)?(a=v,I(t)):(e.consume(t),v)}function x(e){return 62===e?P(e):v(e)}function T(t){return(0,s.jv)(t)?(e.consume(t),k):n(t)}function k(t){return 45===t||(0,s.H$)(t)?(e.consume(t),k):function t(n){return(0,s.Ch)(n)?(a=t,I(n)):(0,s.xz)(n)?(e.consume(n),t):P(n)}(t)}function _(t){return 45===t||(0,s.H$)(t)?(e.consume(t),_):47===t||62===t||(0,s.z3)(t)?S(t):n(t)}function S(t){return 47===t?(e.consume(t),P):58===t||95===t||(0,s.jv)(t)?(e.consume(t),w):(0,s.Ch)(t)?(a=S,I(t)):(0,s.xz)(t)?(e.consume(t),S):P(t)}function w(t){return 45===t||46===t||58===t||95===t||(0,s.H$)(t)?(e.consume(t),w):function t(n){return 61===n?(e.consume(n),E):(0,s.Ch)(n)?(a=t,I(n)):(0,s.xz)(n)?(e.consume(n),t):S(n)}(t)}function E(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,C):(0,s.Ch)(t)?(a=E,I(t)):(0,s.xz)(t)?(e.consume(t),E):(e.consume(t),A)}function C(t){return t===r?(e.consume(t),r=void 0,R):null===t?n(t):(0,s.Ch)(t)?(a=C,I(t)):(e.consume(t),C)}function A(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||(0,s.z3)(t)?S(t):(e.consume(t),A)}function R(e){return 47===e||62===e||(0,s.z3)(e)?S(e):n(e)}function P(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function I(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),N}function N(t){return(0,s.xz)(t)?(0,o.f)(e,$,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):$(t)}function $(t){return e.enter("htmlTextData"),a(t)}}}],91:en,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return(0,s.Ch)(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},q],93:H,95:ee,96:{name:"codeText",tokenize:function(e,t,n){let r,i,a=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),a++,t):(e.exit("codeTextSequence"),o(n))}(t)};function o(u){return null===u?n(u):32===u?(e.enter("space"),e.consume(u),e.exit("space"),o):96===u?(i=e.enter("codeTextSequence"),r=0,function n(o){return 96===o?(e.consume(o),r++,n):r===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(o)):(i.type="codeTextData",l(o))}(u)):(0,s.Ch)(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),o):(e.enter("codeTextData"),l(u))}function l(t){return null===t||32===t||96===t||(0,s.Ch)(t)?(e.exit("codeTextData"),o(t)):(e.consume(t),l)}},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t0){let e=i.tokenStack[i.tokenStack.length-1],t=e[1]||ey;t.call(i,void 0,e[0])}for(n.position={start:eb(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:eb(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}o>0&&n.push(e[a].slice(0,o))}return n}(o,e)}function f(){let{line:e,column:t,offset:n,_index:i,_bufferIndex:a}=r;return{line:e,column:t,offset:n,_index:i,_bufferIndex:a}}function m(e,t){t.restore()}function g(e,t){return function(n,i,a){let o,s,u,h;return Array.isArray(n)?p(n):"tokenize"in n?p([n]):function(e){let t=null!==e&&n[e],r=null!==e&&n.null,i=[...Array.isArray(t)?t:t?[t]:[],...Array.isArray(r)?r:r?[r]:[]];return p(i)(e)};function p(e){return(o=e,s=0,0===e.length)?a:m(e[s])}function m(e){return function(n){return(h=function(){let e=f(),t=d.previous,n=d.currentConstruct,i=d.events.length,a=Array.from(l);return{restore:function(){r=e,d.previous=t,d.currentConstruct=n,d.events.length=i,l=a,b()},from:i}}(),u=e,e.partial||(d.currentConstruct=e),e.name&&d.parser.constructs.disable.null.includes(e.name))?O(n):e.tokenize.call(t?Object.assign(Object.create(d),t):d,c,g,O)(n)}}function g(t){return e(u,h),i}function O(e){return(h.restore(),++s0?" ":"")),u.shift(4),c+=u.move((0,o.Q)((0,a.K)(e,n,u.current()),x)),d(),c}function x(e,t,n){return 0===t?e:(n?"":" ")+e}y.peek=function(){return"["}},42513:function(e,t,n){"use strict";n.d(t,{Y:function(){return i}});var r=n(17466);function i(e,t,n){let i=e.value||"",a="`",o=-1;for(;RegExp("(^|[^`])"+a+"([^`]|$)").test(i);)a+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++o-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+o);let s=o.length+1;("tab"===a||"mixed"===a&&(t&&"list"===t.type&&t.spread||e.spread))&&(s=4*Math.ceil(s/4));let l=n.createTracker(i);l.move(o+" ".repeat(s-o.length)),l.shift(s);let u=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,l.current()),function(e,t,n){return t?(n?"":" ".repeat(s))+e:(n?o:o+" ".repeat(s-o.length))+e});return u(),c}},83132:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var r=n(47881);function i(e){return e.label||!e.identifier?e.label||"":(0,r.v)(e.identifier)}},64806:function(e,t,n){"use strict";function r(e){let t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}n.d(t,{g:function(){return r}})},77018:function(e,t,n){"use strict";function r(e,t,n){let r=t.indexStack,i=e.children||[],a=t.createTracker(n),o=[],s=-1;for(r.push(-1);++s\n\n"}return"\n\n"}(n,i[s+1],e,t)))}return r.pop(),o.join("")}n.d(t,{K:function(){return r}})},87891:function(e,t,n){"use strict";function r(e,t,n){let r=t.indexStack,i=e.children||[],a=[],o=-1,s=n.before;r.push(-1);let l=t.createTracker(n);for(;++o0&&("\r"===s||"\n"===s)&&"html"===c.type&&(a[a.length-1]=a[a.length-1].replace(/(\r?\n|\r)$/," "),s=" ",(l=t.createTracker(n)).move(a.join(""))),a.push(l.move(t.handle(c,e,t,{...l.current(),before:s,after:u}))),s=a[a.length-1].slice(-1)}return r.pop(),a.join("")}n.d(t,{p:function(){return r}})},21665:function(e,t,n){"use strict";n.d(t,{Q:function(){return i}});let r=/\r?\n|\r/g;function i(e,t){let n;let i=[],a=0,o=0;for(;n=r.exec(e);)s(e.slice(a,n.index)),i.push(n[0]),a=n.index+n[0].length,o++;return s(e.slice(a)),i.join("");function s(e){i.push(t(e,o,!e))}}},17466:function(e,t,n){"use strict";function r(e){if(!e._compiled){let t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}n.d(t,{T:function(){return r}})},40585:function(e,t,n){"use strict";function r(e,t){return i(e,t.inConstruct,!0)&&!i(e,t.notInConstruct,!1)}function i(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r=p)&&(!(e+1{let n=c.Z.parse(e),r={};for(let e in t)t[e]&&(r[e]=n[e]+t[e]);return(0,d.Z)(e,r)},p=n(51117),f=(e,t,n=50)=>{let{r:r,g:i,b:a,a:o}=c.Z.parse(e),{r:s,g:l,b:u,a:d}=c.Z.parse(t),h=n/100,f=2*h-1,m=o-d,g=((f*m==-1?f:(f+m)/(1+f*m))+1)/2,O=1-g;return(0,p.Z)(r*g+s*O,i*g+l*O,a*g+u*O,o*h+d*(1-h))},m=(e,t=100)=>{let n=c.Z.parse(e);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,f(n,e,t)},g=n(7201),O=n(12281),b=n(91619),y=n(42454),v=n(59236),x=n(20211),T=n(92190),k=n(79697);let _={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},S={trace:(...e)=>{},debug:(...e)=>{},info:(...e)=>{},warn:(...e)=>{},error:(...e)=>{},fatal:(...e)=>{}},w=function(e="fatal"){let t=_.fatal;"string"==typeof e?(e=e.toLowerCase())in _&&(t=_[e]):"number"==typeof e&&(t=e),S.trace=()=>{},S.debug=()=>{},S.info=()=>{},S.warn=()=>{},S.error=()=>{},S.fatal=()=>{},t<=_.fatal&&(S.fatal=console.error?console.error.bind(console,E("FATAL"),"color: orange"):console.log.bind(console,"\x1b[35m",E("FATAL"))),t<=_.error&&(S.error=console.error?console.error.bind(console,E("ERROR"),"color: orange"):console.log.bind(console,"\x1b[31m",E("ERROR"))),t<=_.warn&&(S.warn=console.warn?console.warn.bind(console,E("WARN"),"color: orange"):console.log.bind(console,`\x1b[33m`,E("WARN"))),t<=_.info&&(S.info=console.info?console.info.bind(console,E("INFO"),"color: lightblue"):console.log.bind(console,"\x1b[34m",E("INFO"))),t<=_.debug&&(S.debug=console.debug?console.debug.bind(console,E("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",E("DEBUG"))),t<=_.trace&&(S.trace=console.debug?console.debug.bind(console,E("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",E("TRACE")))},E=e=>{let t=o().format("ss.SSS");return`%c${t} : ${e} : `},C=//gi,A=e=>u.sanitize(e),R=(e,t)=>{var n;if((null==(n=t.flowchart)?void 0:n.htmlLabels)!==!1){let n=t.securityLevel;"antiscript"===n||"strict"===n?e=A(e):"loose"!==n&&(e=(e=(e=N(e)).replace(//g,">")).replace(/=/g,"="),e=I(e))}return e},P=(e,t)=>e?e=t.dompurifyConfig?u.sanitize(R(e,t),t.dompurifyConfig).toString():u.sanitize(R(e,t),{FORBID_TAGS:["style"]}).toString():e,I=e=>e.replace(/#br#/g,"
"),N=e=>e.replace(C,"#br#"),$=e=>!(!1===e||["false","null","0"].includes(String(e).trim().toLowerCase())),L=function(e){let t=e.split(/(,)/),n=[];for(let e=0;e0&&e+1Math.max(0,e.split(t).length-1),Q=(e,t)=>{let n=D(e,"~"),r=D(t,"~");return 1===n&&1===r},M=e=>{let t=D(e,"~"),n=!1;if(t<=1)return e;t%2!=0&&e.startsWith("~")&&(e=e.substring(1),n=!0);let r=[...e],i=r.indexOf("~"),a=r.lastIndexOf("~");for(;-1!==i&&-1!==a&&i!==a;)r[i]="<",r[a]=">",i=r.indexOf("~"),a=r.lastIndexOf("~");return n&&r.unshift("~"),r.join("")},F={getRows:e=>{if(!e)return[""];let t=N(e).replace(/\\n/g,"#br#");return t.split("#br#")},sanitizeText:P,sanitizeTextOrArray:(e,t)=>"string"==typeof e?P(e,t):e.flat().map(e=>P(e,t)),hasBreaks:e=>C.test(e),splitBreaks:e=>e.split(C),lineBreakRegex:C,removeScript:A,getUrl:e=>{let t="";return e&&(t=(t=(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replaceAll(/\(/g,"\\(")).replaceAll(/\)/g,"\\)")),t},evaluate:$,getMax:function(...e){let t=e.filter(e=>!isNaN(e));return Math.max(...t)},getMin:function(...e){let t=e.filter(e=>!isNaN(e));return Math.min(...t)}},B=(e,t)=>t?h(e,{s:-40,l:10}):h(e,{s:-40,l:-10}),U="#ffffff",z="#f2f2f2",j=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||h(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||h(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||B(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||B(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||B(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||B(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||m(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||m(this.tertiaryColor),this.lineColor=this.lineColor||m(this.background),this.arrowheadColor=this.arrowheadColor||m(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?(0,g.Z)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||(0,g.Z)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||m(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||(0,O.Z)(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||h(this.primaryColor,{h:30}),this.cScale4=this.cScale4||h(this.primaryColor,{h:60}),this.cScale5=this.cScale5||h(this.primaryColor,{h:90}),this.cScale6=this.cScale6||h(this.primaryColor,{h:120}),this.cScale7=this.cScale7||h(this.primaryColor,{h:150}),this.cScale8=this.cScale8||h(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||h(this.primaryColor,{h:270}),this.cScale10=this.cScale10||h(this.primaryColor,{h:300}),this.cScale11=this.cScale11||h(this.primaryColor,{h:330}),this.darkMode)for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},W=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=(0,O.Z)(this.primaryColor,16),this.tertiaryColor=h(this.primaryColor,{h:-160}),this.primaryBorderColor=m(this.background),this.secondaryBorderColor=B(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=B(this.tertiaryColor,this.darkMode),this.primaryTextColor=m(this.primaryColor),this.secondaryTextColor=m(this.secondaryColor),this.tertiaryTextColor=m(this.tertiaryColor),this.lineColor=m(this.background),this.textColor=m(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=(0,O.Z)(m("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=(0,p.Z)(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=(0,g.Z)("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=(0,g.Z)(this.sectionBkgColor,10),this.taskBorderColor=(0,p.Z)(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=(0,p.Z)(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){this.secondBkg=(0,O.Z)(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=(0,O.Z)(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=(0,O.Z)(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=h(this.primaryColor,{h:64}),this.fillType3=h(this.secondaryColor,{h:64}),this.fillType4=h(this.primaryColor,{h:-64}),this.fillType5=h(this.secondaryColor,{h:-64}),this.fillType6=h(this.primaryColor,{h:128}),this.fillType7=h(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||h(this.primaryColor,{h:30}),this.cScale4=this.cScale4||h(this.primaryColor,{h:60}),this.cScale5=this.cScale5||h(this.primaryColor,{h:90}),this.cScale6=this.cScale6||h(this.primaryColor,{h:120}),this.cScale7=this.cScale7||h(this.primaryColor,{h:150}),this.cScale8=this.cScale8||h(this.primaryColor,{h:210}),this.cScale9=this.cScale9||h(this.primaryColor,{h:270}),this.cScale10=this.cScale10||h(this.primaryColor,{h:300}),this.cScale11=this.cScale11||h(this.primaryColor,{h:330});for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},Z=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=h(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=h(this.primaryColor,{h:-160}),this.primaryBorderColor=B(this.primaryColor,this.darkMode),this.secondaryBorderColor=B(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=B(this.tertiaryColor,this.darkMode),this.primaryTextColor=m(this.primaryColor),this.secondaryTextColor=m(this.secondaryColor),this.tertiaryTextColor=m(this.tertiaryColor),this.lineColor=m(this.background),this.textColor=m(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=(0,p.Z)(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||h(this.primaryColor,{h:30}),this.cScale4=this.cScale4||h(this.primaryColor,{h:60}),this.cScale5=this.cScale5||h(this.primaryColor,{h:90}),this.cScale6=this.cScale6||h(this.primaryColor,{h:120}),this.cScale7=this.cScale7||h(this.primaryColor,{h:150}),this.cScale8=this.cScale8||h(this.primaryColor,{h:210}),this.cScale9=this.cScale9||h(this.primaryColor,{h:270}),this.cScale10=this.cScale10||h(this.primaryColor,{h:300}),this.cScale11=this.cScale11||h(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||(0,g.Z)(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||(0,g.Z)(this.tertiaryColor,40);for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},q=e=>{let t=new Z;return t.calculate(e),t},G=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=(0,O.Z)("#cde498",10),this.primaryBorderColor=B(this.primaryColor,this.darkMode),this.secondaryBorderColor=B(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=B(this.tertiaryColor,this.darkMode),this.primaryTextColor=m(this.primaryColor),this.secondaryTextColor=m(this.secondaryColor),this.tertiaryTextColor=m(this.primaryColor),this.lineColor=m(this.background),this.textColor=m(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.actorBorder=(0,g.Z)(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||h(this.primaryColor,{h:30}),this.cScale4=this.cScale4||h(this.primaryColor,{h:60}),this.cScale5=this.cScale5||h(this.primaryColor,{h:90}),this.cScale6=this.cScale6||h(this.primaryColor,{h:120}),this.cScale7=this.cScale7||h(this.primaryColor,{h:150}),this.cScale8=this.cScale8||h(this.primaryColor,{h:210}),this.cScale9=this.cScale9||h(this.primaryColor,{h:270}),this.cScale10=this.cScale10||h(this.primaryColor,{h:300}),this.cScale11=this.cScale11||h(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||(0,g.Z)(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||(0,g.Z)(this.tertiaryColor,40);for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}};class H{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=(0,O.Z)(this.contrast,55),this.background="#ffffff",this.tertiaryColor=h(this.primaryColor,{h:-160}),this.primaryBorderColor=B(this.primaryColor,this.darkMode),this.secondaryBorderColor=B(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=B(this.tertiaryColor,this.darkMode),this.primaryTextColor=m(this.primaryColor),this.secondaryTextColor=m(this.secondaryColor),this.tertiaryTextColor=m(this.tertiaryColor),this.lineColor=m(this.background),this.textColor=m(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.secondBkg=(0,O.Z)(this.contrast,55),this.border2=this.contrast,this.actorBorder=(0,O.Z)(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}}let Y={base:{getThemeVariables:e=>{let t=new j;return t.calculate(e),t}},dark:{getThemeVariables:e=>{let t=new W;return t.calculate(e),t}},default:{getThemeVariables:q},forest:{getThemeVariables:e=>{let t=new G;return t.calculate(e),t}},neutral:{getThemeVariables:e=>{let t=new H;return t.calculate(e),t}}},X={flowchart:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},theme:"default",maxTextSize:5e4,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize"],deterministicIds:!1,fontSize:16},V={...X,deterministicIDSeed:void 0,themeCSS:void 0,themeVariables:Y.default.getThemeVariables(),sequence:{...X.sequence,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{...X.gantt,tickInterval:void 0,useWidth:void 0},c4:{...X.c4,useWidth:void 0,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}},pie:{...X.pie,useWidth:984},requirement:{...X.requirement,useWidth:void 0},gitGraph:{...X.gitGraph,useMaxWidth:!1},sankey:{...X.sankey,useMaxWidth:!1}},K=(e,t="")=>Object.keys(e).reduce((n,r)=>Array.isArray(e[r])?n:"object"==typeof e[r]&&null!==e[r]?[...n,t+r,...K(e[r],"")]:[...n,t+r],[]),J=new Set(K(V,"")),ee=V,et=e=>{if(S.debug("sanitizeDirective called with",e),"object"==typeof e&&null!=e){if(Array.isArray(e)){e.forEach(e=>et(e));return}for(let t of Object.keys(e)){if(S.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!J.has(t)||null==e[t]){S.debug("sanitize deleting key: ",t),delete e[t];continue}if("object"==typeof e[t]){S.debug("sanitizing object",t),et(e[t]);continue}let n=["themeCSS","fontFamily","altFontFamily"];for(let r of n)t.includes(r)&&(S.debug("sanitizing css option",t),e[t]=en(e[t]))}if(e.themeVariables)for(let t of Object.keys(e.themeVariables)){let n=e.themeVariables[t];(null==n?void 0:n.match)&&!n.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]="")}S.debug("After sanitization",e)}},en=e=>{let t=0,n=0;for(let r of e){if(t{for(let{id:t,detector:n,loader:r}of e)ec(t,n,r)},ec=(e,t,n)=>{es[e]?S.error(`Detector with key ${e} already exists`):es[e]={detector:t,loader:n},S.debug(`Detector with key ${e} added${n?" with loader":""}`)},ed=e=>es[e].loader,eh=(e,t,{depth:n=2,clobber:r=!1}={})=>{let i={depth:n,clobber:r};return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(t=>eh(e,t,i)),e):Array.isArray(t)&&Array.isArray(e)?(t.forEach(t=>{e.includes(t)||e.push(t)}),e):void 0===e||n<=0?null!=e&&"object"==typeof e&&"object"==typeof t?Object.assign(e,t):t:(void 0!==t&&"object"==typeof e&&"object"==typeof t&&Object.keys(t).forEach(i=>{"object"==typeof t[i]&&(void 0===e[i]||"object"==typeof e[i])?(void 0===e[i]&&(e[i]=Array.isArray(t[i])?[]:{}),e[i]=eh(e[i],t[i],{depth:n-1,clobber:r})):(r||"object"!=typeof e[i]&&"object"!=typeof t[i])&&(e[i]=t[i])}),e)},ep=eh,ef="​",em={curveBasis:l.$0Z,curveBasisClosed:l.Dts,curveBasisOpen:l.WQY,curveBumpX:l.qpX,curveBumpY:l.u93,curveBundle:l.tFB,curveCardinalClosed:l.OvA,curveCardinalOpen:l.dCK,curveCardinal:l.YY7,curveCatmullRomClosed:l.fGX,curveCatmullRomOpen:l.$m7,curveCatmullRom:l.zgE,curveLinear:l.c_6,curveLinearClosed:l.fxm,curveMonotoneX:l.FdL,curveMonotoneY:l.ak_,curveNatural:l.SxZ,curveStep:l.eA_,curveStepAfter:l.jsv,curveStepBefore:l.iJ},eg=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,eO=function(e,t=null){try{let n;let r=RegExp(`[%]{2}(?![{]${eg.source})(?=[}][%]{2}).* +`,"ig");e=e.trim().replace(r,"").replace(/'/gm,'"'),S.debug(`Detecting diagram directive${null!==t?" type:"+t:""} based on the text:${e}`);let i=[];for(;null!==(n=ei.exec(e));)if(n.index===ei.lastIndex&&ei.lastIndex++,n&&!t||t&&n[1]&&n[1].match(t)||t&&n[2]&&n[2].match(t)){let e=n[1]?n[1]:n[2],t=n[3]?n[3].trim():n[4]?JSON.parse(n[4].trim()):null;i.push({type:e,args:t})}if(0===i.length)return{type:e,args:null};return 1===i.length?i[0]:i}catch(n){return S.error(`ERROR: ${n.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}};function eb(e,t){if(!e)return t;let n=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return em[n]??t}function ey(e,t){return e&&t?Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0}let ev=(e,t=2)=>{let n=Math.pow(10,t);return Math.round(e*n)/n},ex=(e,t)=>{let n;let r=t;for(let t of e){if(n){let e=ey(t,n);if(e=1)return{x:t.x,y:t.y};if(i>0&&i<1)return{x:ev((1-i)*n.x+i*t.x,5),y:ev((1-i)*n.y+i*t.y,5)}}}n=t}throw Error("Could not find a suitable point for the given distance")};function eT(e){let t="",n="";for(let r of e)void 0!==r&&(r.startsWith("color:")||r.startsWith("text-align:")?n=n+r+";":t=t+r+";");return{style:t,labelStyle:n}}let ek=0,e_=()=>(ek++,"id-"+Math.random().toString(36).substr(2,12)+"-"+ek),eS=e=>(function(e){let t="",n="0123456789abcdef",r=n.length;for(let i=0;i{if(!e||(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
"},n),F.lineBreakRegex.test(e)))return e;let r=e.split(" "),i=[],a="";return r.forEach((e,o)=>{let s=eR(`${e} `,n),l=eR(a,n);if(s>t){let{hyphenatedStrings:r,remainingWord:o}=eC(e,t,"-",n);i.push(a,...r),a=o}else l+s>=t?(i.push(a),a=e):a=[a,e].filter(Boolean).join(" ");let u=o+1===r.length;u&&i.push(a)}),i.filter(e=>""!==e).join(n.joinWith)},(e,t,n)=>`${e}${t}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`),eC=(0,y.Z)((e,t,n="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);let i=[...e],a=[],o="";return i.forEach((e,s)=>{let l=`${o}${e}`,u=eR(l,r);if(u>=t){let e=i.length===s+1,t=`${l}${n}`;a.push(e?l:t),o=""}else o=l}),{hyphenatedStrings:a,remainingWord:o}},(e,t,n="-",r)=>`${e}${t}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function eA(e,t){return eP(e,t).height}function eR(e,t){return eP(e,t).width}let eP=(0,y.Z)((e,t)=>{let{fontSize:n=12,fontFamily:r="Arial",fontWeight:i=400}=t;if(!e)return{width:0,height:0};let[,a]=eI(n),o=e.split(F.lineBreakRegex),s=[],u=(0,l.Ys)("body");if(!u.remove)return{width:0,height:0,lineHeight:0};let c=u.append("svg");for(let e of["sans-serif",r]){let t=0,n={width:0,height:0,lineHeight:0};for(let r of o){let o={x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""};o.text=r||ef;let s=ew(c,o).style("font-size",a).style("font-weight",i).style("font-family",e),l=(s._groups||s)[0][0].getBBox();if(0===l.width&&0===l.height)throw Error("svg element not in render tree");n.width=Math.round(Math.max(n.width,l.width)),t=Math.round(l.height),n.height+=t,n.lineHeight=Math.round(Math.max(n.lineHeight,t))}s.push(n)}c.remove();let d=isNaN(s[1].height)||isNaN(s[1].width)||isNaN(s[1].lineHeight)||s[0].height>s[1].height&&s[0].width>s[1].width&&s[0].lineHeight>s[1].lineHeight?0:1;return s[d]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),eI=e=>{if("number"==typeof e)return[e,e+"px"];let t=parseInt(e??"",10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]};function eN(e,t){return(0,v.Z)({},e,t)}let e$={assignWithDepth:ep,wrapLabel:eE,calculateTextHeight:eA,calculateTextWidth:eR,calculateTextDimensions:eP,cleanAndMerge:eN,detectInit:function(e,t){let n=eO(e,/(?:init\b)|(?:initialize\b)/),r={};if(Array.isArray(n)){let e=n.map(e=>e.args);et(e),r=ep(r,[...e])}else r=n.args;if(!r)return;let i=el(e,t),a="config";return void 0!==r[a]&&("flowchart-v2"===i&&(i="flowchart"),r[i]=r[a],delete r[a]),r},detectDirective:eO,isSubstringInArray:function(e,t){for(let[n,r]of t.entries())if(r.match(e))return n;return -1},interpolateToCurve:eb,calcLabelPosition:function(e){return 1===e.length?e[0]:function(e){let t;let n=0;e.forEach(e=>{n+=ey(e,t),t=e});let r=n/2;return ex(e,r)}(e)},calcCardinalityPosition:(e,t,n)=>{S.info(`our points ${JSON.stringify(t)}`),t[0]!==n&&(t=t.reverse());let r=ex(t,25),i=e?10:5,a=Math.atan2(t[0].y-r.y,t[0].x-r.x),o={x:0,y:0};return o.x=Math.sin(a)*i+(t[0].x+r.x)/2,o.y=-Math.cos(a)*i+(t[0].y+r.y)/2,o},calcTerminalLabelPosition:function(e,t,n){let r=structuredClone(n);S.info("our points",r),"start_left"!==t&&"start_right"!==t&&r.reverse();let i=ex(r,25+e),a=10+.5*e,o=Math.atan2(r[0].y-i.y,r[0].x-i.x),s={x:0,y:0};return"start_left"===t?(s.x=Math.sin(o+Math.PI)*a+(r[0].x+i.x)/2,s.y=-Math.cos(o+Math.PI)*a+(r[0].y+i.y)/2):"end_right"===t?(s.x=Math.sin(o-Math.PI)*a+(r[0].x+i.x)/2-5,s.y=-Math.cos(o-Math.PI)*a+(r[0].y+i.y)/2-5):"end_left"===t?(s.x=Math.sin(o)*a+(r[0].x+i.x)/2-5,s.y=-Math.cos(o)*a+(r[0].y+i.y)/2-5):(s.x=Math.sin(o)*a+(r[0].x+i.x)/2,s.y=-Math.cos(o)*a+(r[0].y+i.y)/2),s},formatUrl:function(e,t){let n=e.trim();return n?"loose"!==t.securityLevel?(0,s.Nm)(n):n:void 0},getStylesFromArray:eT,generateId:e_,random:eS,runFunc:(e,...t)=>{let n=e.split("."),r=n.length-1,i=n[r],a=window;for(let t=0;t{var i;if(!r)return;let a=null==(i=e.node())?void 0:i.getBBox();a&&e.append("text").text(r).attr("x",a.x+a.width/2).attr("y",-n).attr("class",t)},parseFontSize:eI,InitIDGenerator:class{constructor(e=!1,t){this.count=0,this.count=t?t.length:0,this.next=e?()=>this.count++:()=>Date.now()}}},eL="10.5.0",eD=Object.freeze(ee),eQ=ep({},eD),eM=[],eF=ep({},eD),eB=(e,t)=>{let n=ep({},e),r={};for(let e of t)eq(e),r=ep(r,e);if(n=ep(n,r),r.theme&&r.theme in Y){let e=ep({},i),t=ep(e.themeVariables||{},r.themeVariables);n.theme&&n.theme in Y&&(n.themeVariables=Y[n.theme].getThemeVariables(t))}return eK(eF=n),eF},eU=e=>(eQ=ep({},eD),eQ=ep(eQ,e),e.theme&&Y[e.theme]&&(eQ.themeVariables=Y[e.theme].getThemeVariables(e.themeVariables)),eB(eQ,eM),eQ),ez=e=>{i=ep({},e)},ej=()=>ep({},eQ),eW=e=>(eK(e),ep(eF,e),eZ()),eZ=()=>ep({},eF),eq=e=>{e&&(["secure",...eQ.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(S.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])}),Object.keys(e).forEach(t=>{t.startsWith("__")&&delete e[t]}),Object.keys(e).forEach(t=>{"string"==typeof e[t]&&(e[t].includes("<")||e[t].includes(">")||e[t].includes("url(data:"))&&delete e[t],"object"==typeof e[t]&&eq(e[t])}))},eG=e=>{et(e),!e.fontFamily||e.themeVariables&&e.themeVariables.fontFamily||(e.themeVariables={fontFamily:e.fontFamily}),eM.push(e),eB(eQ,eM)},eH=(e=eQ)=>{eB(e,eM=[])},eY={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},eX={},eV=e=>{eX[e]||(S.warn(eY[e]),eX[e]=!0)},eK=e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&eV("LAZY_LOAD_DEPRECATED")},eJ=async()=>{let{diagram:e}=await n.e(425).then(n.bind(n,40425));return{id:"c4",diagram:e}},e1={id:"c4",detector:e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),loader:eJ},e0="flowchart",e2=async()=>{let{diagram:e}=await Promise.all([n.e(1644),n.e(580),n.e(7644),n.e(6320),n.e(3880)]).then(n.bind(n,53880));return{id:e0,diagram:e}},e5={id:e0,detector:(e,t)=>{var n,r;return(null==(n=null==t?void 0:t.flowchart)?void 0:n.defaultRenderer)!=="dagre-wrapper"&&(null==(r=null==t?void 0:t.flowchart)?void 0:r.defaultRenderer)!=="elk"&&/^\s*graph/.test(e)},loader:e2},e9="flowchart-v2",e4=async()=>{let{diagram:e}=await Promise.all([n.e(1644),n.e(580),n.e(7644),n.e(6320),n.e(4626)]).then(n.bind(n,54626));return{id:e9,diagram:e}},e3={id:e9,detector:(e,t)=>{var n,r,i;return(null==(n=null==t?void 0:t.flowchart)?void 0:n.defaultRenderer)!=="dagre-d3"&&(null==(r=null==t?void 0:t.flowchart)?void 0:r.defaultRenderer)!=="elk"&&(!!/^\s*graph/.test(e)&&(null==(i=null==t?void 0:t.flowchart)?void 0:i.defaultRenderer)==="dagre-wrapper"||/^\s*flowchart/.test(e))},loader:e4},e8=async()=>{let{diagram:e}=await Promise.all([n.e(1644),n.e(8309)]).then(n.bind(n,98309));return{id:"er",diagram:e}},e6={id:"er",detector:e=>/^\s*erDiagram/.test(e),loader:e8},e7="gitGraph",te=async()=>{let{diagram:e}=await n.e(5086).then(n.bind(n,5086));return{id:e7,diagram:e}},tt={id:e7,detector:e=>/^\s*gitGraph/.test(e),loader:te},tn="gantt",tr=async()=>{let{diagram:e}=await n.e(1554).then(n.bind(n,31554));return{id:tn,diagram:e}},ti={id:tn,detector:e=>/^\s*gantt/.test(e),loader:tr},ta="info",to=async()=>{let{diagram:e}=await n.e(2693).then(n.bind(n,62693));return{id:ta,diagram:e}},ts={id:ta,detector:e=>/^\s*info/.test(e),loader:to},tl=async()=>{let{diagram:e}=await n.e(7875).then(n.bind(n,47875));return{id:"pie",diagram:e}},tu={id:"pie",detector:e=>/^\s*pie/.test(e),loader:tl},tc="quadrantChart",td=async()=>{let{diagram:e}=await n.e(2069).then(n.bind(n,42069));return{id:tc,diagram:e}},th={id:tc,detector:e=>/^\s*quadrantChart/.test(e),loader:td},tp="requirement",tf=async()=>{let{diagram:e}=await Promise.all([n.e(1644),n.e(8841)]).then(n.bind(n,68841));return{id:tp,diagram:e}},tm={id:tp,detector:e=>/^\s*requirement(Diagram)?/.test(e),loader:tf},tg="sequence",tO=async()=>{let{diagram:e}=await n.e(9770).then(n.bind(n,39770));return{id:tg,diagram:e}},tb={id:tg,detector:e=>/^\s*sequenceDiagram/.test(e),loader:tO},ty="class",tv=async()=>{let{diagram:e}=await Promise.all([n.e(1644),n.e(6281),n.e(5411)]).then(n.bind(n,95411));return{id:ty,diagram:e}},tx={id:ty,detector:(e,t)=>{var n;return(null==(n=null==t?void 0:t.class)?void 0:n.defaultRenderer)!=="dagre-wrapper"&&/^\s*classDiagram/.test(e)},loader:tv},tT="classDiagram",tk=async()=>{let{diagram:e}=await Promise.all([n.e(1644),n.e(580),n.e(7644),n.e(6281),n.e(8031)]).then(n.bind(n,38031));return{id:tT,diagram:e}},t_={id:tT,detector:(e,t)=>{var n;return!!/^\s*classDiagram/.test(e)&&(null==(n=null==t?void 0:t.class)?void 0:n.defaultRenderer)==="dagre-wrapper"||/^\s*classDiagram-v2/.test(e)},loader:tk},tS="state",tw=async()=>{let{diagram:e}=await Promise.all([n.e(1644),n.e(2990),n.e(4206)]).then(n.bind(n,94206));return{id:tS,diagram:e}},tE={id:tS,detector:(e,t)=>{var n;return(null==(n=null==t?void 0:t.state)?void 0:n.defaultRenderer)!=="dagre-wrapper"&&/^\s*stateDiagram/.test(e)},loader:tw},tC="stateDiagram",tA=async()=>{let{diagram:e}=await Promise.all([n.e(1644),n.e(580),n.e(7644),n.e(2990),n.e(4284)]).then(n.bind(n,4284));return{id:tC,diagram:e}},tR={id:tC,detector:(e,t)=>{var n;return!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&(null==(n=null==t?void 0:t.state)?void 0:n.defaultRenderer)==="dagre-wrapper")},loader:tA},tP="journey",tI=async()=>{let{diagram:e}=await n.e(8764).then(n.bind(n,18764));return{id:tP,diagram:e}},tN={id:tP,detector:e=>/^\s*journey/.test(e),loader:tI},t$=e=>{var t;let{securityLevel:n}=eZ(),r=(0,l.Ys)("body");if("sandbox"===n){let n=(0,l.Ys)(`#i${e}`),i=(null==(t=n.node())?void 0:t.contentDocument)??document;r=(0,l.Ys)(i.body)}let i=r.select(`#${e}`);return i},tL=function(e,t){for(let n of t)e.attr(n[0],n[1])},tD=function(e,t,n){let r=new Map;return n?(r.set("width","100%"),r.set("style",`max-width: ${t}px;`)):(r.set("height",e),r.set("width",t)),r},tQ=function(e,t,n,r){let i=tD(t,n,r);tL(e,i)},tM=function(e,t,n,r){let i=t.node().getBBox(),a=i.width,o=i.height;S.info(`SVG bounds: ${a}x${o}`,i);let s=0,l=0;S.info(`Graph bounds: ${s}x${l}`,e),s=a+2*n,l=o+2*n,S.info(`Calculated bounds: ${s}x${l}`),tQ(t,l,s,r);let u=`${i.x-n} ${i.y-n} ${i.width+2*n} ${i.height+2*n}`;t.attr("viewBox",u)},tF={draw:(e,t,n)=>{S.debug("renering svg for syntax error\n");let r=t$(t);r.attr("viewBox","0 0 2412 512"),tQ(r,100,512,!0);let i=r.append("g");i.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),i.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),i.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),i.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),i.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),i.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),i.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),i.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${n}`)}},tB={db:{},renderer:tF,parser:{parser:{yy:{}},parse:()=>{}}},tU="flowchart-elk",tz=async()=>{let{diagram:e}=await Promise.all([n.e(5987),n.e(580),n.e(6320),n.e(3366)]).then(n.bind(n,63366));return{id:tU,diagram:e}},tj={id:tU,detector:(e,t)=>{var n;return!!(/^\s*flowchart-elk/.test(e)||/^\s*flowchart|graph/.test(e)&&(null==(n=null==t?void 0:t.flowchart)?void 0:n.defaultRenderer)==="elk")},loader:tz},tW="timeline",tZ=async()=>{let{diagram:e}=await n.e(6086).then(n.bind(n,76086));return{id:tW,diagram:e}},tq={id:tW,detector:e=>/^\s*timeline/.test(e),loader:tZ},tG="mindmap",tH=async()=>{let{diagram:e}=await Promise.all([n.e(5471),n.e(7254)]).then(n.bind(n,47254));return{id:tG,diagram:e}},tY={id:tG,detector:e=>/^\s*mindmap/.test(e),loader:tH},tX="sankey",tV=async()=>{let{diagram:e}=await n.e(2022).then(n.bind(n,32022));return{id:tX,diagram:e}},tK={id:tX,detector:e=>/^\s*sankey-beta/.test(e),loader:tV},tJ={},t1=(e,t)=>{void 0!==t&&(tJ[e]=t)},t0=(e,t,n)=>{let r="";return e in tJ&&tJ[e]?r=tJ[e](n):S.warn(`No theme found for ${e}`),` & { font-family: ${n.fontFamily}; font-size: ${n.fontSize}; fill: ${n.textColor} @@ -1864,13 +1864,13 @@ ${r} ${t} -`},t2="",t5="",t9="",t4=e=>P(e,eZ()),t3=()=>{t2="",t9="",t5=""},t8=e=>{t2=t4(e).replace(/^\s+/g,"")},t6=()=>t2,t7=e=>{t9=t4(e).replace(/\n\s+/g,"\n")},ne=()=>t9,nt=e=>{t5=t4(e)},nn=()=>t5,nr=Object.freeze(Object.defineProperty({__proto__:null,clear:t3,getAccDescription:ne,getAccTitle:t6,getDiagramTitle:nn,setAccDescription:t7,setAccTitle:t8,setDiagramTitle:nt},Symbol.toStringTag,{value:"Module"})),ni=eZ,na=e=>P(e,ni()),no=tM,ns=()=>nr,nl={},nu=(e,t,n)=>{var r;if(nl[e])throw Error(`Diagram ${e} already registered.`);nl[e]=t,n&&ec(e,n),t1(e,t.styles),null==(r=t.injectUtils)||r.call(t,S,w,ni,na,no,ns(),()=>{})},nc=e=>{if(e in nl)return nl[e];throw new nd(e)};class nd extends Error{constructor(e){super(`Diagram ${e} not found.`)}}let nh=!1,np=()=>{nh||(nh=!0,nu("error",tB,e=>"error"===e.toLowerCase().trim()),nu("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{throw Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},e=>e.toLowerCase().trimStart().startsWith("---")),eu(e1,t_,tx,e6,ti,ts,tu,tm,tb,tz,e3,e5,tY,tq,tt,tR,tE,tN,th,tK))};class nf{constructor(e,t={}){this.text=e,this.metadata=t,this.type="graph",this.text+="\n";let n=eZ();try{this.type=el(e,n)}catch(e){this.type="error",this.detectError=e}let r=nc(this.type);S.debug("Type "+this.type),this.db=r.db,this.renderer=r.renderer,this.parser=r.parser,this.parser.parser.yy=this.db,this.init=r.init,this.parse()}parse(){var e,t,n,r,i;if(this.detectError)throw this.detectError;null==(t=(e=this.db).clear)||t.call(e);let a=eZ();null==(n=this.init)||n.call(this,a),this.metadata.title&&(null==(i=(r=this.db).setDiagramTitle)||i.call(r,this.metadata.title)),this.parser.parse(this.text)}async render(e,t){await this.renderer.draw(this.text,e,t,this)}getParser(){return this.parser}getType(){return this.type}}let nm=async(e,t={})=>{let n=el(e,eZ());try{nc(n)}catch(i){let e=ed(n);if(!e)throw new eo(`Diagram ${n} not found.`);let{id:t,diagram:r}=await e();nu(t,r)}return new nf(e,t)},ng=[],nO=e=>{ng.push(e)},nb=()=>{ng.forEach(e=>{e()}),ng=[]},ny=e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart();/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function nv(e){return null==e}var nx={isNothing:nv,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:nv(e)?[]:[e]},repeat:function(e,t){var n,r="";for(n=0;ns&&(t=r-s+(a=" ... ").length),n-r>s&&(n=r+s-(o=" ...").length),{str:a+e.slice(t,n).replace(/\t/g,"→")+o,pos:r-t+a.length}}function nS(e,t){return nx.repeat(" ",t-e.length)+e}nk.prototype=Object.create(Error.prototype),nk.prototype.constructor=nk,nk.prototype.toString=function(e){return this.name+": "+nT(this,e)};var nw=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],i=[],a=-1;o=n.exec(e.buffer);)i.push(o.index),r.push(o.index+o[0].length),e.position<=o.index&&a<0&&(a=r.length-2);a<0&&(a=r.length-1);var o,s,l,u="",c=Math.min(e.line+t.linesAfter,i.length).toString().length,d=t.maxLength-(t.indent+c+3);for(s=1;s<=t.linesBefore&&!(a-s<0);s++)l=n_(e.buffer,r[a-s],i[a-s],e.position-(r[a]-r[a-s]),d),u=nx.repeat(" ",t.indent)+nS((e.line-s+1).toString(),c)+" | "+l.str+"\n"+u;for(l=n_(e.buffer,r[a],i[a],e.position,d),u+=nx.repeat(" ",t.indent)+nS((e.line+1).toString(),c)+" | "+l.str+"\n"+nx.repeat("-",t.indent+c+3+l.pos)+"^\n",s=1;s<=t.linesAfter&&!(a+s>=i.length);s++)l=n_(e.buffer,r[a+s],i[a+s],e.position-(r[a]-r[a+s]),d),u+=nx.repeat(" ",t.indent)+nS((e.line+s+1).toString(),c)+" | "+l.str+"\n";return u.replace(/\n$/,"")},nE=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],nC=["scalar","sequence","mapping"],nA=function(e,t){var n,r;if(Object.keys(t=t||{}).forEach(function(t){if(-1===nE.indexOf(t))throw new nk('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=(n=t.styleAliases||null,r={},null!==n&&Object.keys(n).forEach(function(e){n[e].forEach(function(t){r[String(t)]=e})}),r),-1===nC.indexOf(this.kind))throw new nk('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function nR(e,t){var n=[];return e[t].forEach(function(e){var t=n.length;n.forEach(function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)}),n[t]=e}),n}function nP(e){return this.extend(e)}nP.prototype.extend=function(e){var t=[],n=[];if(e instanceof nA)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new nk("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.forEach(function(e){if(!(e instanceof nA))throw new nk("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new nk("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new nk("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(e){if(!(e instanceof nA))throw new nk("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var r=Object.create(nP.prototype);return r.implicit=(this.implicit||[]).concat(t),r.explicit=(this.explicit||[]).concat(n),r.compiledImplicit=nR(r,"implicit"),r.compiledExplicit=nR(r,"explicit"),r.compiledTypeMap=function(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function r(e){e.multi?(n.multi[e.kind].push(e),n.multi.fallback.push(e)):n[e.kind][e.tag]=n.fallback[e.tag]=e}for(e=0,t=arguments.length;e=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),nF=RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),nB=/^[-+]?[0-9]+e/,nU=new nA("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return!!(null!==e&&nF.test(e)&&"_"!==e[e.length-1])},construct:function(e){var t,n;return(n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t)?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:n*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||nx.isNegativeZero(e))},represent:function(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(nx.isNegativeZero(e))return"-0.0";return n=e.toString(10),nB.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"}),nj=nL.extend({implicit:[nD,nQ,nM,nU]}),nz=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),nW=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"),nZ=new nA("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==nz.exec(e)||null!==nW.exec(e))},construct:function(e){var t,n,r,i,a,o,s,l,u=0,c=null;if(null===(t=nz.exec(e))&&(t=nW.exec(e)),null===t)throw Error("Date resolve error");if(n=+t[1],r=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(a=+t[4],o=+t[5],s=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(c=(60*+t[10]+ +(t[11]||0))*6e4,"-"===t[9]&&(c=-c)),l=new Date(Date.UTC(n,r,i,a,o,s,u)),c&&l.setTime(l.getTime()-c),l},instanceOf:Date,represent:function(e){return e.toISOString()}}),nq=new nA("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),nG="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r",nH=new nA("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,r=0,i=e.length;for(n=0;n64)){if(t<0)return!1;r+=6}return r%8==0},construct:function(e){var t,n,r=e.replace(/[\r\n=]/g,""),i=r.length,a=0,o=[];for(t=0;t>16&255),o.push(a>>8&255),o.push(255&a)),a=a<<6|nG.indexOf(r.charAt(t));return 0==(n=i%4*6)?(o.push(a>>16&255),o.push(a>>8&255),o.push(255&a)):18===n?(o.push(a>>10&255),o.push(a>>2&255)):12===n&&o.push(a>>4&255),new Uint8Array(o)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,n,r="",i=0,a=e.length;for(t=0;t>18&63]+nG[i>>12&63]+nG[i>>6&63]+nG[63&i]),i=(i<<8)+e[t];return 0==(n=a%3)?r+=nG[i>>18&63]+nG[i>>12&63]+nG[i>>6&63]+nG[63&i]:2===n?r+=nG[i>>10&63]+nG[i>>4&63]+nG[i<<2&63]+nG[64]:1===n&&(r+=nG[i>>2&63]+nG[i<<4&63]+nG[64]+nG[64]),r}}),nY=Object.prototype.hasOwnProperty,nX=Object.prototype.toString,nV=new nA("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,r,i,a,o=[];for(t=0,n=e.length;t1&&(e.result+=nx.repeat("\n",t-1))}function rv(e,t){var n,r,i=e.tag,a=e.anchor,o=[],s=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=o),r=e.input.charCodeAt(e.position);0!==r&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,rc(e,"tab characters must not be used in indentation")),45===r&&rn(e.input.charCodeAt(e.position+1)));){if(s=!0,e.position++,rO(e,!0,-1)&&e.lineIndent<=t){o.push(null),r=e.input.charCodeAt(e.position);continue}if(n=e.line,rx(e,t,3,!1,!0),o.push(e.result),rO(e,!0,-1),r=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==r)rc(e,"bad indentation of a sequence entry");else if(e.lineIndentt?f=1:e.lineIndent===t?f=0:e.lineIndentt?f=1:e.lineIndent===t?f=0:e.lineIndentt)&&(O&&(o=e.line,s=e.lineStart,l=e.position),rx(e,t,4,!0,i)&&(O?m=e.result:g=e.result),O||(rm(e,h,p,f,m,g,o,s,l),f=m=g=null),rO(e,!0,-1),u=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&0!==u)rc(e,"bad indentation of a mapping entry");else if(e.lineIndent=0)0===a?rc(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):u?rc(e,"repeat of an indentation width identifier"):(c=t+a-1,u=!0);else break;if(rt(o)){do o=e.input.charCodeAt(++e.position);while(rt(o));if(35===o)do o=e.input.charCodeAt(++e.position);while(!re(o)&&0!==o)}for(;0!==o;){for(rg(e),e.lineIndent=0,o=e.input.charCodeAt(e.position);(!u||e.lineIndentc&&(c=e.lineIndent),re(o)){d++;continue}if(e.lineIndent0){for(i=o,a=0;i>0;i--)(o=function(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}(s=e.input.charCodeAt(++e.position)))>=0?a=(a<<4)+o:rc(e,"expected hexadecimal character");e.result+=(u=a)<=65535?String.fromCharCode(u):String.fromCharCode((u-65536>>10)+55296,(u-65536&1023)+56320),e.position++}else rc(e,"unknown escape sequence");n=r=e.position}else re(s)?(rp(e,n,r,!0),ry(e,rO(e,!1,t)),n=r=e.position):e.position===e.lineStart&&rb(e)?rc(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}rc(e,"unexpected end of the stream within a double quoted scalar")}(e,h)?g=!0:function(e){var t,n,r;if(42!==(r=e.input.charCodeAt(e.position)))return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!rn(r)&&!rr(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&rc(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),n5.call(e.anchorMap,n)||rc(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],rO(e,!0,-1),!0}(e)?(g=!0,(null!==e.tag||null!==e.anchor)&&rc(e,"alias node should not have any properties")):function(e,t,n){var r,i,a,o,s,l,u,c,d=e.kind,h=e.result;if(rn(c=e.input.charCodeAt(e.position))||rr(c)||35===c||38===c||42===c||33===c||124===c||62===c||39===c||34===c||37===c||64===c||96===c||(63===c||45===c)&&(rn(r=e.input.charCodeAt(e.position+1))||n&&rr(r)))return!1;for(e.kind="scalar",e.result="",i=a=e.position,o=!1;0!==c;){if(58===c){if(rn(r=e.input.charCodeAt(e.position+1))||n&&rr(r))break}else if(35===c){if(rn(e.input.charCodeAt(e.position-1)))break}else if(e.position===e.lineStart&&rb(e)||n&&rr(c))break;else if(re(c)){if(s=e.line,l=e.lineStart,u=e.lineIndent,rO(e,!1,-1),e.lineIndent>=t){o=!0,c=e.input.charCodeAt(e.position);continue}e.position=a,e.line=s,e.lineStart=l,e.lineIndent=u;break}o&&(rp(e,i,a,!1),ry(e,e.line-s),i=a=e.position,o=!1),rt(c)||(a=e.position+1),c=e.input.charCodeAt(++e.position)}return rp(e,i,a,!1),!!e.result||(e.kind=d,e.result=h,!1)}(e,h,1===n)&&(g=!0,null===e.tag&&(e.tag="?")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===f&&(g=s&&rv(e,p))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&rc(e,'unacceptable node kind for ! tag; it should be "scalar", not "'+e.kind+'"'),l=0,u=e.implicitTypes.length;l"),null!==e.result&&d.kind!==e.kind&&rc(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+d.kind+'", not "'+e.kind+'"'),d.resolve(e.result,e.tag)?(e.result=d.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):rc(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||g}var rT=function(e,t){var n=function(e,t){e=String(e),t=t||{},0!==e.length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var n=new rl(e,t),r=e.indexOf("\x00");for(-1!==r&&(n.position=r,rc(n,"null byte is not allowed in input")),n.input+="\x00";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position0)&&37===i);){for(o=!0,i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!rn(i);)i=e.input.charCodeAt(++e.position);for(n=e.input.slice(t,e.position),r=[],n.length<1&&rc(e,"directive name must not be less than one character in length");0!==i;){for(;rt(i);)i=e.input.charCodeAt(++e.position);if(35===i){do i=e.input.charCodeAt(++e.position);while(0!==i&&!re(i));break}if(re(i))break;for(t=e.position;0!==i&&!rn(i);)i=e.input.charCodeAt(++e.position);r.push(e.input.slice(t,e.position))}0!==i&&rg(e),n5.call(rh,n)?rh[n](e,n,r):rd(e,'unknown document directive "'+n+'"')}if(rO(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,rO(e,!0,-1)):o&&rc(e,"directives end mark is expected"),rx(e,e.lineIndent-1,4,!1,!0),rO(e,!0,-1),e.checkLineBreaks&&n4.test(e.input.slice(a,e.position))&&rd(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&rb(e)){46===e.input.charCodeAt(e.position)&&(e.position+=3,rO(e,!0,-1));return}e.positione.replace(/\r\n?/g,"\n").replace(/<(\w+)([^>]*)>/g,(e,t,n)=>"<"+t+n.replace(/="([^"]*)"/g,"='$1'")+">"),r_=e=>{let{text:t,metadata:n}=function(e){let t=e.match(er);if(!t)return{text:e,metadata:{}};let n=rT(t[1],{schema:nj})??{};n="object"!=typeof n||Array.isArray(n)?{}:n;let r={};return n.displayMode&&(r.displayMode=n.displayMode.toString()),n.title&&(r.title=n.title.toString()),n.config&&(r.config=n.config),{text:e.slice(t[0].length),metadata:r}}(e),{displayMode:r,title:i,config:a={}}=n;return r&&(a.gantt||(a.gantt={}),a.gantt.displayMode=r),{title:i,config:a,text:t}},rS=e=>{let t=e$.detectInit(e)??{},n=e$.detectDirective(e,"wrap");return Array.isArray(n)?t.wrap=n.some(({type:e})=>{}):(null==n?void 0:n.type)==="wrap"&&(t.wrap=!0),{text:e.replace(ei,""),directive:t}},rw=["foreignobject"],rE=["dominant-baseline"];function rC(e){let t=function(e){let t=rk(e),n=r_(t),r=rS(n.text),i=eN(n.config,r.directive);return{code:e=ny(r.text),title:n.title,config:i}}(e);return eH(),eG(t.config??{}),t}async function rA(e,t){np(),e=rC(e).code;try{await nm(e)}catch(e){if(null==t?void 0:t.suppressErrors)return!1;throw e}return!0}let rR=function(e){let t=e;return(t=(t=t.replace(/style.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)})).replace(/classDef.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)})).replace(/#\w+;/g,function(e){let t=e.substring(1,e.length-1),n=/^\+?\d+$/.test(t);return n?"fl\xb0\xb0"+t+"\xb6\xdf":"fl\xb0"+t+"\xb6\xdf"})},rP=function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},rI=(e,t,n=[])=>` +`},t2="",t5="",t9="",t4=e=>P(e,eZ()),t3=()=>{t2="",t9="",t5=""},t8=e=>{t2=t4(e).replace(/^\s+/g,"")},t6=()=>t2,t7=e=>{t9=t4(e).replace(/\n\s+/g,"\n")},ne=()=>t9,nt=e=>{t5=t4(e)},nn=()=>t5,nr=Object.freeze(Object.defineProperty({__proto__:null,clear:t3,getAccDescription:ne,getAccTitle:t6,getDiagramTitle:nn,setAccDescription:t7,setAccTitle:t8,setDiagramTitle:nt},Symbol.toStringTag,{value:"Module"})),ni=eZ,na=e=>P(e,ni()),no=tM,ns=()=>nr,nl={},nu=(e,t,n)=>{var r;if(nl[e])throw Error(`Diagram ${e} already registered.`);nl[e]=t,n&&ec(e,n),t1(e,t.styles),null==(r=t.injectUtils)||r.call(t,S,w,ni,na,no,ns(),()=>{})},nc=e=>{if(e in nl)return nl[e];throw new nd(e)};class nd extends Error{constructor(e){super(`Diagram ${e} not found.`)}}let nh=!1,np=()=>{nh||(nh=!0,nu("error",tB,e=>"error"===e.toLowerCase().trim()),nu("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{throw Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},e=>e.toLowerCase().trimStart().startsWith("---")),eu(e1,t_,tx,e6,ti,ts,tu,tm,tb,tj,e3,e5,tY,tq,tt,tR,tE,tN,th,tK))};class nf{constructor(e,t={}){this.text=e,this.metadata=t,this.type="graph",this.text+="\n";let n=eZ();try{this.type=el(e,n)}catch(e){this.type="error",this.detectError=e}let r=nc(this.type);S.debug("Type "+this.type),this.db=r.db,this.renderer=r.renderer,this.parser=r.parser,this.parser.parser.yy=this.db,this.init=r.init,this.parse()}parse(){var e,t,n,r,i;if(this.detectError)throw this.detectError;null==(t=(e=this.db).clear)||t.call(e);let a=eZ();null==(n=this.init)||n.call(this,a),this.metadata.title&&(null==(i=(r=this.db).setDiagramTitle)||i.call(r,this.metadata.title)),this.parser.parse(this.text)}async render(e,t){await this.renderer.draw(this.text,e,t,this)}getParser(){return this.parser}getType(){return this.type}}let nm=async(e,t={})=>{let n=el(e,eZ());try{nc(n)}catch(i){let e=ed(n);if(!e)throw new eo(`Diagram ${n} not found.`);let{id:t,diagram:r}=await e();nu(t,r)}return new nf(e,t)},ng=[],nO=e=>{ng.push(e)},nb=()=>{ng.forEach(e=>{e()}),ng=[]},ny=e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart();/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function nv(e){return null==e}var nx={isNothing:nv,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:nv(e)?[]:[e]},repeat:function(e,t){var n,r="";for(n=0;ns&&(t=r-s+(a=" ... ").length),n-r>s&&(n=r+s-(o=" ...").length),{str:a+e.slice(t,n).replace(/\t/g,"→")+o,pos:r-t+a.length}}function nS(e,t){return nx.repeat(" ",t-e.length)+e}nk.prototype=Object.create(Error.prototype),nk.prototype.constructor=nk,nk.prototype.toString=function(e){return this.name+": "+nT(this,e)};var nw=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],i=[],a=-1;o=n.exec(e.buffer);)i.push(o.index),r.push(o.index+o[0].length),e.position<=o.index&&a<0&&(a=r.length-2);a<0&&(a=r.length-1);var o,s,l,u="",c=Math.min(e.line+t.linesAfter,i.length).toString().length,d=t.maxLength-(t.indent+c+3);for(s=1;s<=t.linesBefore&&!(a-s<0);s++)l=n_(e.buffer,r[a-s],i[a-s],e.position-(r[a]-r[a-s]),d),u=nx.repeat(" ",t.indent)+nS((e.line-s+1).toString(),c)+" | "+l.str+"\n"+u;for(l=n_(e.buffer,r[a],i[a],e.position,d),u+=nx.repeat(" ",t.indent)+nS((e.line+1).toString(),c)+" | "+l.str+"\n"+nx.repeat("-",t.indent+c+3+l.pos)+"^\n",s=1;s<=t.linesAfter&&!(a+s>=i.length);s++)l=n_(e.buffer,r[a+s],i[a+s],e.position-(r[a]-r[a+s]),d),u+=nx.repeat(" ",t.indent)+nS((e.line+s+1).toString(),c)+" | "+l.str+"\n";return u.replace(/\n$/,"")},nE=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],nC=["scalar","sequence","mapping"],nA=function(e,t){var n,r;if(Object.keys(t=t||{}).forEach(function(t){if(-1===nE.indexOf(t))throw new nk('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=(n=t.styleAliases||null,r={},null!==n&&Object.keys(n).forEach(function(e){n[e].forEach(function(t){r[String(t)]=e})}),r),-1===nC.indexOf(this.kind))throw new nk('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function nR(e,t){var n=[];return e[t].forEach(function(e){var t=n.length;n.forEach(function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)}),n[t]=e}),n}function nP(e){return this.extend(e)}nP.prototype.extend=function(e){var t=[],n=[];if(e instanceof nA)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new nk("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.forEach(function(e){if(!(e instanceof nA))throw new nk("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new nk("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new nk("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(e){if(!(e instanceof nA))throw new nk("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var r=Object.create(nP.prototype);return r.implicit=(this.implicit||[]).concat(t),r.explicit=(this.explicit||[]).concat(n),r.compiledImplicit=nR(r,"implicit"),r.compiledExplicit=nR(r,"explicit"),r.compiledTypeMap=function(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function r(e){e.multi?(n.multi[e.kind].push(e),n.multi.fallback.push(e)):n[e.kind][e.tag]=n.fallback[e.tag]=e}for(e=0,t=arguments.length;e=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),nF=RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),nB=/^[-+]?[0-9]+e/,nU=new nA("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return!!(null!==e&&nF.test(e)&&"_"!==e[e.length-1])},construct:function(e){var t,n;return(n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t)?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:n*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||nx.isNegativeZero(e))},represent:function(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(nx.isNegativeZero(e))return"-0.0";return n=e.toString(10),nB.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"}),nz=nL.extend({implicit:[nD,nQ,nM,nU]}),nj=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),nW=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"),nZ=new nA("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==nj.exec(e)||null!==nW.exec(e))},construct:function(e){var t,n,r,i,a,o,s,l,u=0,c=null;if(null===(t=nj.exec(e))&&(t=nW.exec(e)),null===t)throw Error("Date resolve error");if(n=+t[1],r=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(a=+t[4],o=+t[5],s=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(c=(60*+t[10]+ +(t[11]||0))*6e4,"-"===t[9]&&(c=-c)),l=new Date(Date.UTC(n,r,i,a,o,s,u)),c&&l.setTime(l.getTime()-c),l},instanceOf:Date,represent:function(e){return e.toISOString()}}),nq=new nA("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),nG="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r",nH=new nA("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,r=0,i=e.length;for(n=0;n64)){if(t<0)return!1;r+=6}return r%8==0},construct:function(e){var t,n,r=e.replace(/[\r\n=]/g,""),i=r.length,a=0,o=[];for(t=0;t>16&255),o.push(a>>8&255),o.push(255&a)),a=a<<6|nG.indexOf(r.charAt(t));return 0==(n=i%4*6)?(o.push(a>>16&255),o.push(a>>8&255),o.push(255&a)):18===n?(o.push(a>>10&255),o.push(a>>2&255)):12===n&&o.push(a>>4&255),new Uint8Array(o)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,n,r="",i=0,a=e.length;for(t=0;t>18&63]+nG[i>>12&63]+nG[i>>6&63]+nG[63&i]),i=(i<<8)+e[t];return 0==(n=a%3)?r+=nG[i>>18&63]+nG[i>>12&63]+nG[i>>6&63]+nG[63&i]:2===n?r+=nG[i>>10&63]+nG[i>>4&63]+nG[i<<2&63]+nG[64]:1===n&&(r+=nG[i>>2&63]+nG[i<<4&63]+nG[64]+nG[64]),r}}),nY=Object.prototype.hasOwnProperty,nX=Object.prototype.toString,nV=new nA("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,r,i,a,o=[];for(t=0,n=e.length;t1&&(e.result+=nx.repeat("\n",t-1))}function rv(e,t){var n,r,i=e.tag,a=e.anchor,o=[],s=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=o),r=e.input.charCodeAt(e.position);0!==r&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,rc(e,"tab characters must not be used in indentation")),45===r&&rn(e.input.charCodeAt(e.position+1)));){if(s=!0,e.position++,rO(e,!0,-1)&&e.lineIndent<=t){o.push(null),r=e.input.charCodeAt(e.position);continue}if(n=e.line,rx(e,t,3,!1,!0),o.push(e.result),rO(e,!0,-1),r=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==r)rc(e,"bad indentation of a sequence entry");else if(e.lineIndentt?f=1:e.lineIndent===t?f=0:e.lineIndentt?f=1:e.lineIndent===t?f=0:e.lineIndentt)&&(O&&(o=e.line,s=e.lineStart,l=e.position),rx(e,t,4,!0,i)&&(O?m=e.result:g=e.result),O||(rm(e,h,p,f,m,g,o,s,l),f=m=g=null),rO(e,!0,-1),u=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&0!==u)rc(e,"bad indentation of a mapping entry");else if(e.lineIndent=0)0===a?rc(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):u?rc(e,"repeat of an indentation width identifier"):(c=t+a-1,u=!0);else break;if(rt(o)){do o=e.input.charCodeAt(++e.position);while(rt(o));if(35===o)do o=e.input.charCodeAt(++e.position);while(!re(o)&&0!==o)}for(;0!==o;){for(rg(e),e.lineIndent=0,o=e.input.charCodeAt(e.position);(!u||e.lineIndentc&&(c=e.lineIndent),re(o)){d++;continue}if(e.lineIndent0){for(i=o,a=0;i>0;i--)(o=function(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}(s=e.input.charCodeAt(++e.position)))>=0?a=(a<<4)+o:rc(e,"expected hexadecimal character");e.result+=(u=a)<=65535?String.fromCharCode(u):String.fromCharCode((u-65536>>10)+55296,(u-65536&1023)+56320),e.position++}else rc(e,"unknown escape sequence");n=r=e.position}else re(s)?(rp(e,n,r,!0),ry(e,rO(e,!1,t)),n=r=e.position):e.position===e.lineStart&&rb(e)?rc(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}rc(e,"unexpected end of the stream within a double quoted scalar")}(e,h)?g=!0:function(e){var t,n,r;if(42!==(r=e.input.charCodeAt(e.position)))return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!rn(r)&&!rr(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&rc(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),n5.call(e.anchorMap,n)||rc(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],rO(e,!0,-1),!0}(e)?(g=!0,(null!==e.tag||null!==e.anchor)&&rc(e,"alias node should not have any properties")):function(e,t,n){var r,i,a,o,s,l,u,c,d=e.kind,h=e.result;if(rn(c=e.input.charCodeAt(e.position))||rr(c)||35===c||38===c||42===c||33===c||124===c||62===c||39===c||34===c||37===c||64===c||96===c||(63===c||45===c)&&(rn(r=e.input.charCodeAt(e.position+1))||n&&rr(r)))return!1;for(e.kind="scalar",e.result="",i=a=e.position,o=!1;0!==c;){if(58===c){if(rn(r=e.input.charCodeAt(e.position+1))||n&&rr(r))break}else if(35===c){if(rn(e.input.charCodeAt(e.position-1)))break}else if(e.position===e.lineStart&&rb(e)||n&&rr(c))break;else if(re(c)){if(s=e.line,l=e.lineStart,u=e.lineIndent,rO(e,!1,-1),e.lineIndent>=t){o=!0,c=e.input.charCodeAt(e.position);continue}e.position=a,e.line=s,e.lineStart=l,e.lineIndent=u;break}o&&(rp(e,i,a,!1),ry(e,e.line-s),i=a=e.position,o=!1),rt(c)||(a=e.position+1),c=e.input.charCodeAt(++e.position)}return rp(e,i,a,!1),!!e.result||(e.kind=d,e.result=h,!1)}(e,h,1===n)&&(g=!0,null===e.tag&&(e.tag="?")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===f&&(g=s&&rv(e,p))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&rc(e,'unacceptable node kind for ! tag; it should be "scalar", not "'+e.kind+'"'),l=0,u=e.implicitTypes.length;l"),null!==e.result&&d.kind!==e.kind&&rc(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+d.kind+'", not "'+e.kind+'"'),d.resolve(e.result,e.tag)?(e.result=d.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):rc(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||g}var rT=function(e,t){var n=function(e,t){e=String(e),t=t||{},0!==e.length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var n=new rl(e,t),r=e.indexOf("\x00");for(-1!==r&&(n.position=r,rc(n,"null byte is not allowed in input")),n.input+="\x00";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position0)&&37===i);){for(o=!0,i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!rn(i);)i=e.input.charCodeAt(++e.position);for(n=e.input.slice(t,e.position),r=[],n.length<1&&rc(e,"directive name must not be less than one character in length");0!==i;){for(;rt(i);)i=e.input.charCodeAt(++e.position);if(35===i){do i=e.input.charCodeAt(++e.position);while(0!==i&&!re(i));break}if(re(i))break;for(t=e.position;0!==i&&!rn(i);)i=e.input.charCodeAt(++e.position);r.push(e.input.slice(t,e.position))}0!==i&&rg(e),n5.call(rh,n)?rh[n](e,n,r):rd(e,'unknown document directive "'+n+'"')}if(rO(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,rO(e,!0,-1)):o&&rc(e,"directives end mark is expected"),rx(e,e.lineIndent-1,4,!1,!0),rO(e,!0,-1),e.checkLineBreaks&&n4.test(e.input.slice(a,e.position))&&rd(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&rb(e)){46===e.input.charCodeAt(e.position)&&(e.position+=3,rO(e,!0,-1));return}e.positione.replace(/\r\n?/g,"\n").replace(/<(\w+)([^>]*)>/g,(e,t,n)=>"<"+t+n.replace(/="([^"]*)"/g,"='$1'")+">"),r_=e=>{let{text:t,metadata:n}=function(e){let t=e.match(er);if(!t)return{text:e,metadata:{}};let n=rT(t[1],{schema:nz})??{};n="object"!=typeof n||Array.isArray(n)?{}:n;let r={};return n.displayMode&&(r.displayMode=n.displayMode.toString()),n.title&&(r.title=n.title.toString()),n.config&&(r.config=n.config),{text:e.slice(t[0].length),metadata:r}}(e),{displayMode:r,title:i,config:a={}}=n;return r&&(a.gantt||(a.gantt={}),a.gantt.displayMode=r),{title:i,config:a,text:t}},rS=e=>{let t=e$.detectInit(e)??{},n=e$.detectDirective(e,"wrap");return Array.isArray(n)?t.wrap=n.some(({type:e})=>{}):(null==n?void 0:n.type)==="wrap"&&(t.wrap=!0),{text:e.replace(ei,""),directive:t}},rw=["foreignobject"],rE=["dominant-baseline"];function rC(e){let t=function(e){let t=rk(e),n=r_(t),r=rS(n.text),i=eN(n.config,r.directive);return{code:e=ny(r.text),title:n.title,config:i}}(e);return eH(),eG(t.config??{}),t}async function rA(e,t){np(),e=rC(e).code;try{await nm(e)}catch(e){if(null==t?void 0:t.suppressErrors)return!1;throw e}return!0}let rR=function(e){let t=e;return(t=(t=t.replace(/style.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)})).replace(/classDef.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)})).replace(/#\w+;/g,function(e){let t=e.substring(1,e.length-1),n=/^\+?\d+$/.test(t);return n?"fl\xb0\xb0"+t+"\xb6\xdf":"fl\xb0"+t+"\xb6\xdf"})},rP=function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},rI=(e,t,n=[])=>` .${e} ${t} { ${n.join(" !important; ")} !important; }`,rN=(e,t={})=>{var n;let r="";if(void 0!==e.themeCSS&&(r+=` ${e.themeCSS}`),void 0!==e.fontFamily&&(r+=` :root { --mermaid-font-family: ${e.fontFamily}}`),void 0!==e.altFontFamily&&(r+=` :root { --mermaid-alt-font-family: ${e.altFontFamily}}`),!(0,k.Z)(t)){let i=e.htmlLabels||(null==(n=e.flowchart)?void 0:n.htmlLabels),a=i?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(let e in t){let n=t[e];(0,k.Z)(n.styles)||a.forEach(e=>{r+=rI(n.id,e,n.styles)}),(0,k.Z)(n.textStyles)||(r+=rI(n.id,"tspan",n.textStyles))}}return r},r$=(e,t,n,r)=>{let i=rN(e,n),a=t0(t,i,e.themeVariables);return(0,x.q)((0,T.MY)(`${r}{${a}}`),x.P)},rL=(e="",t,n)=>{let r=e;return n||t||(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),r=(r=rP(r)).replace(/
/g,"
")},rD=(e="",t)=>{var n,r;let i=(null==(r=null==(n=null==t?void 0:t.viewBox)?void 0:n.baseVal)?void 0:r.height)?t.viewBox.baseVal.height+"px":"100%",a=btoa(''+e+"");return``},rQ=(e,t,n,r,i)=>{let a=e.append("div");a.attr("id",n),r&&a.attr("style",r);let o=a.append("svg").attr("id",t).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return i&&o.attr("xmlns:xlink",i),o.append("g"),e};function rM(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}let rF=(e,t,n,r)=>{var i,a,o;null==(i=e.getElementById(t))||i.remove(),null==(a=e.getElementById(n))||a.remove(),null==(o=e.getElementById(r))||o.remove()},rB=async function(e,t,n){var r,i,a,o,s,c,d,h,p,f;let m,g;np();let O=rC(t);t=O.code;let b=eZ();S.debug(b),t.length>((null==b?void 0:b.maxTextSize)??5e4)&&(t="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");let y="#"+e,v="i"+e,x="#"+v,T="d"+e,k="#"+T,_=(0,l.Ys)("body"),w="sandbox"===b.securityLevel,E="loose"===b.securityLevel,C=b.fontFamily;if(void 0!==n){if(n&&(n.innerHTML=""),w){let e=rM((0,l.Ys)(n),v);(_=(0,l.Ys)(e.nodes()[0].contentDocument.body)).node().style.margin=0}else _=(0,l.Ys)(n);rQ(_,e,T,`font-family: ${C}`,"http://www.w3.org/1999/xlink")}else{if(rF(document,e,T,v),w){let e=rM((0,l.Ys)("body"),v);(_=(0,l.Ys)(e.nodes()[0].contentDocument.body)).node().style.margin=0}else _=(0,l.Ys)("body");rQ(_,e,T)}t=rR(t);try{m=await nm(t,{title:O.title})}catch(e){m=new nf("error"),g=e}let A=_.select(k).node(),R=m.type,P=A.firstChild,I=P.firstChild,N=null==(i=(r=m.renderer).getClasses)?void 0:i.call(r,t,m),L=r$(b,R,N,y),D=document.createElement("style");D.innerHTML=L,P.insertBefore(D,I);try{await m.renderer.draw(t,e,eL,m)}catch(n){throw tF.draw(t,e,eL),n}let Q=_.select(`${k} svg`),M=null==(o=(a=m.db).getAccTitle)?void 0:o.call(a),F=null==(c=(s=m.db).getAccDescription)?void 0:c.call(s);d=R,h=Q,p=M,f=F,h.attr("role","graphics-document document"),""!==d&&h.attr("aria-roledescription",d),function(e,t,n,r){if(void 0!==e.insert){if(n){let t=`chart-desc-${r}`;e.attr("aria-describedby",t),e.insert("desc",":first-child").attr("id",t).text(n)}if(t){let n=`chart-title-${r}`;e.attr("aria-labelledby",n),e.insert("title",":first-child").attr("id",n).text(t)}}}(h,p,f,h.attr("id")),_.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let B=_.select(k).node().innerHTML;if(S.debug("config.arrowMarkerAbsolute",b.arrowMarkerAbsolute),B=rL(B,w,$(b.arrowMarkerAbsolute)),w){let e=_.select(k+" svg").node();B=rD(B,e)}else E||(B=u.sanitize(B,{ADD_TAGS:rw,ADD_ATTR:rE}));if(nb(),g)throw g;let U=w?x:k,j=(0,l.Ys)(U).node();return j&&"remove"in j&&j.remove(),{svg:B,bindFunctions:m.db.bindFunctions}},rU=Object.freeze({render:rB,parse:rA,getDiagramFromText:nm,initialize:function(e={}){var t;(null==e?void 0:e.fontFamily)&&!(null==(t=e.themeVariables)?void 0:t.fontFamily)&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),ej(e),(null==e?void 0:e.theme)&&e.theme in Y?e.themeVariables=Y[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=Y.default.getThemeVariables(e.themeVariables));let n="object"==typeof e?eU(e):ez();w(n.logLevel),np()},getConfig:eZ,setConfig:eW,getSiteConfig:ez,updateSiteConfig:e=>(eQ=ep(eQ,e),eB(eQ,eM),eQ),reset:()=>{eH()},globalReset:()=>{eH(eD)},defaultConfig:eD});w(eZ().logLevel),eH(eZ());let rj=async()=>{S.debug("Loading registered diagrams");let e=await Promise.allSettled(Object.entries(es).map(async([e,{detector:t,loader:n}])=>{if(n)try{nc(e)}catch(r){try{let{diagram:e,id:r}=await n();nu(r,e,t)}catch(t){throw S.error(`Failed to load external diagram with key ${e}. Removing from detectors.`),delete es[e],t}}})),t=e.filter(e=>"rejected"===e.status);if(t.length>0){for(let e of(S.error(`Failed to load ${t.length} external diagrams`),t))S.error(e);throw Error(`Failed to load ${t.length} external diagrams`)}},rz=(e,t,n)=>{(S.warn(e),"str"in e)?(n&&n(e.str,e.hash),t.push({...e,message:e.str,error:e})):(n&&n(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},rW=async function(e={querySelector:".mermaid"}){try{await rZ(e)}catch(t){if("str"in t&&S.error(t.str),r0.parseError&&r0.parseError(t),!e.suppressErrors)throw S.error("Use the suppressErrors option to suppress these errors"),t}},rZ=async function({postRenderCallback:e,querySelector:t,nodes:n}={querySelector:".mermaid"}){let r,i;let o=rU.getConfig();if(S.debug(`${e?"":"No "}Callback function found`),n)r=n;else if(t)r=document.querySelectorAll(t);else throw Error("Nodes and querySelector are both undefined");S.debug(`Found ${r.length} diagrams`),(null==o?void 0:o.startOnLoad)!==void 0&&(S.debug("Start On Load: "+(null==o?void 0:o.startOnLoad)),rU.updateSiteConfig({startOnLoad:null==o?void 0:o.startOnLoad}));let s=new e$.InitIDGenerator(o.deterministicIds,o.deterministicIDSeed),l=[];for(let t of Array.from(r)){/*! Check if previously processed */if(S.info("Rendering diagram: "+t.id),t.getAttribute("data-processed"))continue;t.setAttribute("data-processed","true");let n=`mermaid-${s.next()}`;i=t.innerHTML,i=(0,a.Z)(e$.entityDecode(i)).trim().replace(//gi,"
");let r=e$.detectInit(i);r&&S.debug("Detected early reinit: ",r);try{let{svg:r,bindFunctions:a}=await r1(n,i,t);t.innerHTML=r,e&&await e(n),a&&a(t)}catch(e){rz(e,l,r0.parseError)}}if(l.length>0)throw l[0]},rq=function(e){rU.initialize(e)},rG=async function(e,t,n){S.warn("mermaid.init is deprecated. Please use run instead."),e&&rq(e);let r={postRenderCallback:n,querySelector:".mermaid"};"string"==typeof t?r.querySelector=t:t&&(t instanceof HTMLElement?r.nodes=[t]:r.nodes=t),await rW(r)},rH=async(e,{lazyLoad:t=!0}={})=>{eu(...e),!1===t&&await rj()},rY=function(){if(r0.startOnLoad){let{startOnLoad:e}=rU.getConfig();e&&r0.run().catch(e=>S.error("Mermaid failed to initialize",e))}};"undefined"!=typeof document&&/*! +`},rQ=(e,t,n,r,i)=>{let a=e.append("div");a.attr("id",n),r&&a.attr("style",r);let o=a.append("svg").attr("id",t).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return i&&o.attr("xmlns:xlink",i),o.append("g"),e};function rM(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}let rF=(e,t,n,r)=>{var i,a,o;null==(i=e.getElementById(t))||i.remove(),null==(a=e.getElementById(n))||a.remove(),null==(o=e.getElementById(r))||o.remove()},rB=async function(e,t,n){var r,i,a,o,s,c,d,h,p,f;let m,g;np();let O=rC(t);t=O.code;let b=eZ();S.debug(b),t.length>((null==b?void 0:b.maxTextSize)??5e4)&&(t="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");let y="#"+e,v="i"+e,x="#"+v,T="d"+e,k="#"+T,_=(0,l.Ys)("body"),w="sandbox"===b.securityLevel,E="loose"===b.securityLevel,C=b.fontFamily;if(void 0!==n){if(n&&(n.innerHTML=""),w){let e=rM((0,l.Ys)(n),v);(_=(0,l.Ys)(e.nodes()[0].contentDocument.body)).node().style.margin=0}else _=(0,l.Ys)(n);rQ(_,e,T,`font-family: ${C}`,"http://www.w3.org/1999/xlink")}else{if(rF(document,e,T,v),w){let e=rM((0,l.Ys)("body"),v);(_=(0,l.Ys)(e.nodes()[0].contentDocument.body)).node().style.margin=0}else _=(0,l.Ys)("body");rQ(_,e,T)}t=rR(t);try{m=await nm(t,{title:O.title})}catch(e){m=new nf("error"),g=e}let A=_.select(k).node(),R=m.type,P=A.firstChild,I=P.firstChild,N=null==(i=(r=m.renderer).getClasses)?void 0:i.call(r,t,m),L=r$(b,R,N,y),D=document.createElement("style");D.innerHTML=L,P.insertBefore(D,I);try{await m.renderer.draw(t,e,eL,m)}catch(n){throw tF.draw(t,e,eL),n}let Q=_.select(`${k} svg`),M=null==(o=(a=m.db).getAccTitle)?void 0:o.call(a),F=null==(c=(s=m.db).getAccDescription)?void 0:c.call(s);d=R,h=Q,p=M,f=F,h.attr("role","graphics-document document"),""!==d&&h.attr("aria-roledescription",d),function(e,t,n,r){if(void 0!==e.insert){if(n){let t=`chart-desc-${r}`;e.attr("aria-describedby",t),e.insert("desc",":first-child").attr("id",t).text(n)}if(t){let n=`chart-title-${r}`;e.attr("aria-labelledby",n),e.insert("title",":first-child").attr("id",n).text(t)}}}(h,p,f,h.attr("id")),_.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let B=_.select(k).node().innerHTML;if(S.debug("config.arrowMarkerAbsolute",b.arrowMarkerAbsolute),B=rL(B,w,$(b.arrowMarkerAbsolute)),w){let e=_.select(k+" svg").node();B=rD(B,e)}else E||(B=u.sanitize(B,{ADD_TAGS:rw,ADD_ATTR:rE}));if(nb(),g)throw g;let U=w?x:k,z=(0,l.Ys)(U).node();return z&&"remove"in z&&z.remove(),{svg:B,bindFunctions:m.db.bindFunctions}},rU=Object.freeze({render:rB,parse:rA,getDiagramFromText:nm,initialize:function(e={}){var t;(null==e?void 0:e.fontFamily)&&!(null==(t=e.themeVariables)?void 0:t.fontFamily)&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),ez(e),(null==e?void 0:e.theme)&&e.theme in Y?e.themeVariables=Y[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=Y.default.getThemeVariables(e.themeVariables));let n="object"==typeof e?eU(e):ej();w(n.logLevel),np()},getConfig:eZ,setConfig:eW,getSiteConfig:ej,updateSiteConfig:e=>(eQ=ep(eQ,e),eB(eQ,eM),eQ),reset:()=>{eH()},globalReset:()=>{eH(eD)},defaultConfig:eD});w(eZ().logLevel),eH(eZ());let rz=async()=>{S.debug("Loading registered diagrams");let e=await Promise.allSettled(Object.entries(es).map(async([e,{detector:t,loader:n}])=>{if(n)try{nc(e)}catch(r){try{let{diagram:e,id:r}=await n();nu(r,e,t)}catch(t){throw S.error(`Failed to load external diagram with key ${e}. Removing from detectors.`),delete es[e],t}}})),t=e.filter(e=>"rejected"===e.status);if(t.length>0){for(let e of(S.error(`Failed to load ${t.length} external diagrams`),t))S.error(e);throw Error(`Failed to load ${t.length} external diagrams`)}},rj=(e,t,n)=>{(S.warn(e),"str"in e)?(n&&n(e.str,e.hash),t.push({...e,message:e.str,error:e})):(n&&n(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},rW=async function(e={querySelector:".mermaid"}){try{await rZ(e)}catch(t){if("str"in t&&S.error(t.str),r0.parseError&&r0.parseError(t),!e.suppressErrors)throw S.error("Use the suppressErrors option to suppress these errors"),t}},rZ=async function({postRenderCallback:e,querySelector:t,nodes:n}={querySelector:".mermaid"}){let r,i;let o=rU.getConfig();if(S.debug(`${e?"":"No "}Callback function found`),n)r=n;else if(t)r=document.querySelectorAll(t);else throw Error("Nodes and querySelector are both undefined");S.debug(`Found ${r.length} diagrams`),(null==o?void 0:o.startOnLoad)!==void 0&&(S.debug("Start On Load: "+(null==o?void 0:o.startOnLoad)),rU.updateSiteConfig({startOnLoad:null==o?void 0:o.startOnLoad}));let s=new e$.InitIDGenerator(o.deterministicIds,o.deterministicIDSeed),l=[];for(let t of Array.from(r)){/*! Check if previously processed */if(S.info("Rendering diagram: "+t.id),t.getAttribute("data-processed"))continue;t.setAttribute("data-processed","true");let n=`mermaid-${s.next()}`;i=t.innerHTML,i=(0,a.Z)(e$.entityDecode(i)).trim().replace(//gi,"
");let r=e$.detectInit(i);r&&S.debug("Detected early reinit: ",r);try{let{svg:r,bindFunctions:a}=await r1(n,i,t);t.innerHTML=r,e&&await e(n),a&&a(t)}catch(e){rj(e,l,r0.parseError)}}if(l.length>0)throw l[0]},rq=function(e){rU.initialize(e)},rG=async function(e,t,n){S.warn("mermaid.init is deprecated. Please use run instead."),e&&rq(e);let r={postRenderCallback:n,querySelector:".mermaid"};"string"==typeof t?r.querySelector=t:t&&(t instanceof HTMLElement?r.nodes=[t]:r.nodes=t),await rW(r)},rH=async(e,{lazyLoad:t=!0}={})=>{eu(...e),!1===t&&await rz()},rY=function(){if(r0.startOnLoad){let{startOnLoad:e}=rU.getConfig();e&&r0.run().catch(e=>S.error("Mermaid failed to initialize",e))}};"undefined"!=typeof document&&/*! * Wait for document loaded before starting the execution */window.addEventListener("load",rY,!1);let rX=[],rV=!1,rK=async()=>{if(!rV){for(rV=!0;rX.length>0;){let e=rX.shift();if(e)try{await e()}catch(e){S.error("Error executing queue",e)}}rV=!1}},rJ=async(e,t)=>new Promise((n,r)=>{rX.push(()=>new Promise((i,a)=>{rU.parse(e,t).then(e=>{i(e),n(e)},e=>{var t;S.error("Error parsing",e),null==(t=r0.parseError)||t.call(r0,e),a(e),r(e)})})),rK().catch(r)}),r1=(e,t,n)=>new Promise((r,i)=>{rX.push(()=>new Promise((a,o)=>{rU.render(e,t,n).then(e=>{a(e),r(e)},e=>{var t;S.error("Error parsing",e),null==(t=r0.parseError)||t.call(r0,e),o(e),i(e)})})),rK().catch(i)}),r0={startOnLoad:!0,mermaidAPI:rU,parse:rJ,render:r1,init:rG,run:rW,registerExternalDiagrams:rH,initialize:rq,parseError:void 0,contentLoaded:rY,setParseErrorHandler:function(e){r0.parseError=e},detectType:el}},23402:function(e,t,n){"use strict";n.d(t,{w:function(){return a}});var r=n(42761),i=n(75364);let a={tokenize:function(e,t,n){return function(t){return(0,i.xz)(t)?(0,r.f)(e,a,"linePrefix")(t):a(t)};function a(e){return null===e||(0,i.Ch)(e)?t(e):n(e)}},partial:!0}},61706:function(e,t,n){"use strict";n.d(t,{K:function(){return l}});var r=n(23402),i=n(42761),a=n(75364),o=n(11098);let s={tokenize:function(e,t,n){let r=this;return(0,i.f)(e,function(e){let i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function l(){return{document:{91:{tokenize:h,continuation:{tokenize:p},exit:f}},text:{91:{tokenize:d},93:{add:"after",tokenize:u,resolveTo:c}}}}function u(e,t,n){let r;let i=this,a=i.events.length,s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);for(;a--;){let e=i.events[a][1];if("labelImage"===e.type){r=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(a){if(!r||!r._balanced)return n(a);let l=(0,o.d)(i.sliceSerialize({start:r.end,end:i.now()}));return 94===l.codePointAt(0)&&s.includes(l.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),t(a)):n(a)}}function c(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let 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++;let a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[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",o,t],["exit",o,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function d(e,t,n){let r;let i=this,s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),l=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),u};function u(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(u){if(l>999||93===u&&!r||null===u||91===u||(0,a.z3)(u))return n(u);if(93===u){e.exit("chunkString");let r=e.exit("gfmFootnoteCallString");return s.includes((0,o.d)(i.sliceSerialize(r)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(u)}return(0,a.z3)(u)||(r=!0),l++,e.consume(u),92===u?d:c}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,c):c(t)}}function h(e,t,n){let r,s;let l=this,u=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]),c=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),d};function d(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",h):n(t)}function h(t){if(c>999||93===t&&!s||null===t||91===t||(0,a.z3)(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return r=(0,o.d)(l.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return(0,a.z3)(t)||(s=!0),c++,e.consume(t),92===t?p:h}function p(t){return 91===t||92===t||93===t?(e.consume(t),c++,h):h(t)}function f(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),u.includes(r)||u.push(r),(0,i.f)(e,m,"gfmFootnoteDefinitionWhitespace")):n(t)}function m(e){return t(e)}}function p(e,t,n){return e.check(r.w,t,e.attempt(s,t,n))}function f(e){e.exit("gfmFootnoteDefinition")}},42761:function(e,t,n){"use strict";n.d(t,{f:function(){return i}});var r=n(75364);function i(e,t,n,i){let a=i?i-1:Number.POSITIVE_INFINITY,o=0;return function(i){return(0,r.xz)(i)?(e.enter(n),function i(s){return(0,r.xz)(s)&&o++a?0:a+t:t>a?a:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);o0?(r(e,e.length,0,t),e):t}n.d(t,{V:function(){return i},d:function(){return r}})},62987:function(e,t,n){"use strict";n.d(t,{r:function(){return i}});var r=n(75364);function i(e){return null===e||(0,r.z3)(e)||(0,r.B8)(e)?1:(0,r.Xh)(e)?2:void 0}},4663:function(e,t,n){"use strict";n.d(t,{W:function(){return a}});var r=n(21905);let i={}.hasOwnProperty;function a(e){let t={},n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCharCode(n)}n.d(t,{o:function(){return r}})},47881:function(e,t,n){"use strict";n.d(t,{v:function(){return o}});var r=n(44301),i=n(80889);let a=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function o(e){return e.replace(a,s)}function s(e,t,n){if(t)return t;let a=n.charCodeAt(0);if(35===a){let e=n.charCodeAt(1),t=120===e||88===e;return(0,i.o)(n.slice(t?2:1),t?16:10)}return(0,r.T)(n)||e}},11098:function(e,t,n){"use strict";function r(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}n.d(t,{d:function(){return r}})},63233:function(e,t,n){"use strict";function r(e,t,n){let r=[],i=-1;for(;++ia(e[0],`[react-collapsed] -- ${e[1]}`);function l(e){let t=(0,r.useRef)(e);return(0,r.useEffect)(()=>{t.current=e}),(0,r.useCallback)((...e)=>t.current?.(...e),[])}var u=i["useId".toString()]||(()=>void 0),c="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,d=!1,h=0,p=()=>++h;function f(e){e.id&&cancelAnimationFrame(e.id)}function m(e){return e?.current?e.current.scrollHeight:(s(!0,`Was not able to find a ref to the collapse element via \`getCollapseProps\`. Ensure that the element exposes its \`ref\` prop. If it exposes the ref prop under a different name (like \`innerRef\`), use the \`refKey\` property to change it. Example: diff --git a/_next/static/DeKmLF4VMr8pdoLWN15mN/_buildManifest.js b/_next/static/uhmuGpBRu1UFszH4j0ziD/_buildManifest.js similarity index 100% rename from _next/static/DeKmLF4VMr8pdoLWN15mN/_buildManifest.js rename to _next/static/uhmuGpBRu1UFszH4j0ziD/_buildManifest.js diff --git a/_next/static/DeKmLF4VMr8pdoLWN15mN/_ssgManifest.js b/_next/static/uhmuGpBRu1UFszH4j0ziD/_ssgManifest.js similarity index 100% rename from _next/static/DeKmLF4VMr8pdoLWN15mN/_ssgManifest.js rename to _next/static/uhmuGpBRu1UFszH4j0ziD/_ssgManifest.js diff --git a/entwicklung.html b/entwicklung.html index 8ad24610..294efe6d 100644 --- a/entwicklung.html +++ b/entwicklung.html @@ -1,4 +1,4 @@ -Entwicklung eines Computerspielers - Software-Challenge Dokumentation
\ No newline at end of file +

Wettkampfsystem

\ No newline at end of file diff --git a/glossary.html b/glossary.html index 42e5f2ef..c80031dd 100644 --- a/glossary.html +++ b/glossary.html @@ -1,4 +1,4 @@ -
\ No newline at end of file +} \ No newline at end of file diff --git a/glossary/contest.html b/glossary/contest.html index bfc26ddb..8c35d0fe 100644 --- a/glossary/contest.html +++ b/glossary/contest.html @@ -1,4 +1,4 @@ -
\ No newline at end of file +} \ No newline at end of file diff --git a/spiele/blokus.html b/spiele/blokus.html index 234e3299..3fb1cf45 100644 --- a/spiele/blokus.html +++ b/spiele/blokus.html @@ -1,4 +1,4 @@ -Blokus - Software-Challenge Dokumentation
\ No newline at end of file +} \ No newline at end of file diff --git a/spiele/blokus/spielregeln/content.html b/spiele/blokus/spielregeln/content.html index 74818533..f763cf8b 100644 --- a/spiele/blokus/spielregeln/content.html +++ b/spiele/blokus/spielregeln/content.html @@ -1,4 +1,4 @@ -content - Software-Challenge Dokumentation
\ No newline at end of file +} \ No newline at end of file diff --git a/spiele/blokus/xml-dokumentation/einleitung-xml.html b/spiele/blokus/xml-dokumentation/einleitung-xml.html index 8ea955c4..20e69cc0 100644 --- a/spiele/blokus/xml-dokumentation/einleitung-xml.html +++ b/spiele/blokus/xml-dokumentation/einleitung-xml.html @@ -1,4 +1,4 @@ -einleitung-xml - Software-Challenge Dokumentation
\ No newline at end of file +} \ No newline at end of file diff --git a/spiele/hase-und-igel/spielregeln/beispiel.html b/spiele/hase-und-igel/spielregeln/beispiel.html index 7e7ba349..c605d23a 100644 --- a/spiele/hase-und-igel/spielregeln/beispiel.html +++ b/spiele/hase-und-igel/spielregeln/beispiel.html @@ -1,4 +1,4 @@ -beispiel - Software-Challenge Dokumentation
\ No newline at end of file +} \ No newline at end of file diff --git a/spiele/hase-und-igel/tutorial/board.html b/spiele/hase-und-igel/tutorial/board.html index c8abdc7d..dcf88926 100644 --- a/spiele/hase-und-igel/tutorial/board.html +++ b/spiele/hase-und-igel/tutorial/board.html @@ -1,4 +1,4 @@ -board - Software-Challenge Dokumentation
\ No newline at end of file +} \ No newline at end of file diff --git a/spiele/hase-und-igel/xml-dokumentation/einleitung-xml.html b/spiele/hase-und-igel/xml-dokumentation/einleitung-xml.html index bf4ddae4..cffe4775 100644 --- a/spiele/hase-und-igel/xml-dokumentation/einleitung-xml.html +++ b/spiele/hase-und-igel/xml-dokumentation/einleitung-xml.html @@ -1,4 +1,4 @@ -einleitung-xml - Software-Challenge Dokumentation
\ No newline at end of file +} \ No newline at end of file diff --git a/spiele/hive/spielregeln/regeln.html b/spiele/hive/spielregeln/regeln.html index c96286e5..7521bfe4 100644 --- a/spiele/hive/spielregeln/regeln.html +++ b/spiele/hive/spielregeln/regeln.html @@ -1,4 +1,4 @@ -regeln - Software-Challenge Dokumentation
\ No newline at end of file +} \ No newline at end of file diff --git a/spiele/hive/xml-dokumentation/einleitung-xml.html b/spiele/hive/xml-dokumentation/einleitung-xml.html index 922c9e2c..0ba8c4e2 100644 --- a/spiele/hive/xml-dokumentation/einleitung-xml.html +++ b/spiele/hive/xml-dokumentation/einleitung-xml.html @@ -1,4 +1,4 @@ -einleitung-xml - Software-Challenge Dokumentation
\ No newline at end of file +

XML-Dokumentation

\ No newline at end of file diff --git a/spiele/ostseeschach/regeln.html b/spiele/ostseeschach/regeln.html index 784bbf4b..017fbac4 100644 --- a/spiele/ostseeschach/regeln.html +++ b/spiele/ostseeschach/regeln.html @@ -1,4 +1,4 @@ -regeln - Software-Challenge Dokumentation
\ No newline at end of file +} \ No newline at end of file diff --git a/spiele/piranhas/spielregeln/regeln.html b/spiele/piranhas/spielregeln/regeln.html index d31531d7..2dee06a3 100644 --- a/spiele/piranhas/spielregeln/regeln.html +++ b/spiele/piranhas/spielregeln/regeln.html @@ -1,4 +1,4 @@ -regeln - Software-Challenge Dokumentation
\ No newline at end of file +} \ No newline at end of file diff --git a/spiele/piranhas/xml-dokumentation/einleitung-xml.html b/spiele/piranhas/xml-dokumentation/einleitung-xml.html index f94fb785..f969aba7 100644 --- a/spiele/piranhas/xml-dokumentation/einleitung-xml.html +++ b/spiele/piranhas/xml-dokumentation/einleitung-xml.html @@ -1,4 +1,4 @@ -einleitung-xml - Software-Challenge Dokumentation
\ No newline at end of file +} \ No newline at end of file diff --git a/xml/administration.html b/xml/administration.html index 59c28016..280dcd50 100644 --- a/xml/administration.html +++ b/xml/administration.html @@ -1,4 +1,4 @@ -Verwaltung von Spielen mittels authentifiziertem Client - Software-Challenge Dokumentation