@openmrs/esm-form-builder-app 3.4.2-pre.3281 → 3.4.2-pre.3285

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/4944.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_form_builder_app=globalThis.webpackChunk_openmrs_esm_form_builder_app||[]).push([[4944],{34944(e){e.exports=JSON.parse('{"add":"Add","addFormComponent":"Add Form Component","addObsGroupQuestion":"Add a grouped question","addPage":"Seite hinzufügen","addProgram":"Programm hinzufügen","addProgramWorkflow":"Add program workflow","addQuestion":"Frage hinzufügen","addReference":"Add Reference","addSection":"Abschnitt hinzufügen","addSelectableOrder":"Add selectable order","all":"All","answerConceptValidation":"One or more selected answer concepts do not exist in the system. ","answerErrors":"Answer Errors","attributes":"Attributes","auditDetails":"Audit Details","autogeneratedUuid":"UUID (auto-generated)","backToDashboard":"Back to dashboard","calendarAndTimer":"Calendar and timer","calendarOnly":"Nur Kalender","cancel":"Abbrechen","cancelButtonText":"Abbrechen","checkFilters":"Check the filters above","chooseEncounterType":"Choose an encounter type to link your form to","choosePatientIdentifierType":"Choose a patient identifier type","chooseQuestionType":"Choose a question type","chooseRenderingType":"Choose a rendering type","class":"Class","close":"Schließen","code":"Code","componentadded":"Component added","conceptDoesNotExist":"The linked concept \'{{conceptName}}\' does not exist in your dictionary","conceptId":"Concept ID","conceptSearchHelpText":"Can\'t find a concept?","convertLabelToCamelCase":"Convert label to camel-case","copySchema":"Schema kopieren","createdBy":"Erstellt von","createForm":"Create Form","createNewForm":"Create a new form","createNewPage":"Neue Seite erstellen","createNewQuestion":"Neue Frage erstellen","createNewSection":"Neuen Abschnitt erstellen","datatype":"Data Type","datePickerType":"The type of date picker to show ","decimalsNotAllowed":"This concept does not allow decimals","delete":"Löschen","deleteAnswer":"Delete answer","deleteForm":"Delete form","deleteFormConfirmation":"Are you sure you want to delete this form?","deletePage":"Seite löschen","deletePageConfirmation":"Are you sure you want to delete this page?","deletePageExplainerText":"Deleting this page will delete all the sections and questions associated with it. This action cannot be undone.","deleteQuestion":"Frage löschen","deleteQuestionConfirmation":"Are you sure you want to delete this question? ","deleteQuestionWarningText":"Clicking the delete button will delete the question labelled","deleteSchema":"Schema löschen","deleteSection":"Abschnitt löschen","deleteSectionConfirmation":"Are you sure you want to delete this section?","deleteSectionExplainerText":"Deleting this section will delete all the questions associated with it. This action cannot be undone.","deleting":"Deleting","description":"Beschreibung","descriptionPlaceholderText":"e.g. A form used to collect encounter data for clients in the Express Care program.","downloadSchema":"Schema herunterladen","downloadTranslation":"Download translation","dragToReorder":"Drag to reorder","duplicateQuestion":"Duplicate question","editButton":"{{elementType}} bearbeiten","editingFor":"Editing translation for:","editQuestion":"Frage bearbeiten","editSchema":"Schema bearbeiten","editSection":"Edit section","editString":"Edit string","editTranslationTitle":"Edit Translation","encounterType":"Encounter Type","enterOrderLabel":"Enter order label","enterPageTitle":"Enter a title for your new page","enterSectionTitle":"Enter a section title","error":"Fehler","errorAddingComponent":"Error adding component","errorCopy":"Sorry, there was a problem displaying this information. You can try to reload this page, or contact the site administrator and quote the error code above.","errorCreatingForm":"Error creating form","errorCreatingPage":"Fehler beim Erstellen der Seite","errorCreatingSection":"Fehler beim Erstellen des Abschnitts","errorDeletingForm":"Error deleting form","errorDeletingPage":"Fehler beim Löschen der Seite","errorDeletingQuestion":"Fehler beim Löschen der Frage","errorDeletingSection":"Fehler beim Löschen des Abschnitts","errorDuplicatingQuestion":"Fehler beim Duplizieren der Frage","errorEditingSection":"Error editing section","errorFetchingConceptName":"Couldn\'t resolve concept name","errorFetchingConcepts":"Fehler beim Abrufen der Konzepte","errorFetchingPatientIdentifierTypes":"Error fetching patient identifier types","errorFetchingPrograms":"Fehler beim Abrufen der Programme","errorFetchingProgramState":"Error fetching program state","errorLoadingForm":"Error loading Form","errorLoadingForms":"Error loading Forms","errorOnLine":"Error on line","errorPublishingForm":"Error publishing form","errorRenamingForm":"Error renaming form","errorRenamingPage":"Fehler beim Umbenennen der Seite","errorRenamingSection":"Fehler beim Umbenennen des Abschnitts","errorSavingQuestion":"Error saving question","errorUnpublishingForm":"Error unpublishing form","errorUpdatingForm":"Error updating form","expandedSection":"Keep section expanded","expandSectionExplainer":"Below are the sections linked to this page. Expand each section to add questions to it.","filterBy":"Filtern nach","fixSchemaAndRender":"Fix the error in the Schema Editor and click \\"Render changes\\" to retry.","formBuilder":"Form Builder","formBuilderDocs":"form builder documentation","formCreated":"New form created","formDeleted":"Form deleted","formDeletedMessage":"The form \\"{{- formName}}\\" has been deleted successfully","formDescription":"Form description","formDescriptionPlaceholder":"A short description of the form e.g. A form for collecting COVID-19 symptoms","formError":"Fehler beim Laden von Metadaten","formName":"Form name","formNamePlaceholder":"e.g. OHRI Express Care Patient Encounter Form","formPublished":"Form published","formPublishedSuccessfully":"form was published successfully","formRenamed":"Form renamed","formRendererHelperText":"Load a form schema in the Schema Editor to the left to see it rendered here by the Form Engine.","forms":"Forms","formUnpublished":"Form unpublished","formUnpublishedSuccessfully":"form was unpublished successfully","formUuid":"Form UUID","home":"Home","import":"Importieren","importSchema":"Schema importieren","inputDummySchema":"Input dummy schema","interactiveBuilder":"Interactive Builder","interactiveBuilderHelperText":"The Interactive Builder lets you build your form schema without writing JSON code. The Preview tab automatically updates as you build your form. When done, click Save Form to save your form.","invalidAnswerConcept":"Invalid Answer Concept Detected","invalidMinMax":"Min value cannot be greater than max","invalidVersionWarning":"Version can only start with with a number","isQuestionInfoProvided":"Would you like to provide additional details about the question?","isQuestionRequiredOrOptional":"Is this question a required or optional field? Required fields must be answered before the form can be submitted.","isUiSelectSearchable":"Is the ui-select-extended rendering searchable","label":"Label","labelFalse":"Label false","labelPlaceholder":"e.g. Type of Anaesthesia","labelTrue":"Label true","lastEditedBy":"Zuletzt bearbeitet von","loading":"Wird geladen","loadingPreview":"Loading preview...","loadingSchema":"Schema wird geladen","loadingTranslations":"Loading translations...","manageForms":"Manage Forms","mappings":"Zuordnungen","maximizeEditor":"Editor maximieren","maxLengthOfCharacters":"Max length of characters","maxValue":"Max value that can be entered","minimizeEditor":"Editor minimieren","minLengthOfCharacters":"Min length of characters","minValue":"Min value that can be entered","name":"Name","namePlaceholder":"What the form is called in the system","no":"Nein","noFormsAvailable":"No Forms Available","noFormsToDisplay":"There are no forms to display.","noMatchingConcepts":"No concepts were found that match","noMatchingFormsToDisplay":"No matching forms to display","noSchemaLoaded":"Kein Schema geladen","noTranslatedStrings":"No strings are translated yet.","noTranslationFileToUpload":"No translations found for the selected language to upload","noTranslationForLang":"No translations found for selected language.","noTranslations":"No translatable strings found.","notSearchable":"Not Searchable","noUntranslatedStrings":"All strings are translated.","noValidationErrorsFound":"No validation errors found","off":"Aus","on":"Ein","optional":"Optional","Page":"Select Page","pageCreated":"Neue Seite erstellt","pageDeleted":"Seite gelöscht","pageExplainer":"Pages typically have one or more sections. Click the button below to add a section to your page.","pageRenamed":"Seite umbenannt","pages":"Pages","patientIdentifierTypeHelperText":"Patient identifier type fields must be linked to a patient identifier type","pleaseTryAgain":"Please try again.","preview":"Vorschau","previewFormIn":"Preview form in","problemLoadingPreview":"There was a problem loading the schema preview","program":"Programm","programState":"Programmstatus","programWorkflow":"Program workflow","published":"Veröffentlicht","publishForm":"Publish form","publishing":"Wird veröffentlicht","publishingFailed":"Publishing failed","publishWarning":"Cannot publish form with validation errors","questionCreated":"Neue Frage erstellt","questionDeleted":"Frage gelöscht","questionDeletedMessage":"The question labelled \\"{{- questionLabel}}\\" has been deleted.","questionDuplicated":"Question duplicated. Please change the duplicated question\'s ID to a unique, camelcased value","questionId":"Question ID (prefer using camel-case for IDs). Each field should have a unique ID.","questionIdExists":"This question ID already exists in your schema","questionIdPlaceholder":"Enter a unique ID e.g. \\"anaesthesiaType\\" for a question asking about the type of anaesthesia.","questionInfo":"Additional question info","questionInfoPlaceholder":"Enter any relevant info about the question to provide more context.","questionLabel":"Label","questionRestored":"Frage wiederhergestellt","questionRestoredMessage":"The question labelled \\"{{- questionLabel}}\\" has been restored.","questionsUpdated":"Questions updated","questionType":"Question type","questionUpdated":"Question updated","referenceSchema":"Referenzschema","relationship":"Relationship","removeOrder":"Remove order","renderChanges":"Render changes","renderingType":"Rendering type","required":"Erforderlich","restoreDraft":"Entwurf wiederherstellen","retired":"Retired","returnToDashboard":"Return to dashboard","rows":"Zeilen","save":"Speichern","saveAsModal":"A version of the form you\'re working on already exists on the server. Do you want to update the form or to save it as a new version?","saveAsNewForm":"Als neu speichern","saveButtonText":"Speichern","saveConfirmation":"Save or Update form","saveExplainerText":"Clicking the Save button saves your form schema to the database. To see your form in your frontend, you first need to publish it. Click the Publish button to publish your form.","saveForm":"Save form","saveFormToServer":"Save form to server","saveSuccess":"wurde erfolgreich aktualisiert","saveSuccessMessage":"was created successfully. It is now visible on the Forms dashboard.","saving":"Wird gespeichert","schemaActions":"Schema actions","schemaEditor":"Schema editor","schemaLoadError":"Fehler beim Laden des Schemas","schemaNotFound":"Schema nicht gefunden","schemaNotFoundText":"The schema originally associated with this form could not be found. A draft schema was found saved in your browser\'s local storage. Would you like to load it instead?","schemaSaveWarningMessage":"The dev3 server is ephemeral at best and can\'t be relied upon to save your schemas permanently. To avoid losing your work, please save your schemas to your local machine. Alternatively, upload your schema to the distro repo to have it persisted across server resets.","searchable":"Searchable","searchConcept":"Search using a concept name or UUID","searchForAnswerConcept":"Search for a concept to add as an answer","searchForBackingConcept":"Search for a backing concept","searchForBackingPatientIdentifierType":"Search for a backing patient identifier type","searching":"Searching","searchInOCL":"In OCL suchen","searchThisList":"Diese Liste durchsuchen","searchTranslationKeys":"Search Translation Keys...","sectionCreated":"Neuer Abschnitt erstellt","SectionDeleted":"Abschnitt gelöscht","sectionEdited":"Section edited","sectionExplainer":"A section will typically contain one or more questions. Click the button below to add a question to this section.","sectionReferenceExplainer":"This section is a reference to another form. Modify the referenced form to add questions to this section.","sectionRenamed":"Abschnitt umbenannt","sections":"Sections","select":"Select","selectableOrders":"Selectable Orders","selectAnswersToDisplay":"Select answers to display","selectForm":"Select Form","selectLanguage":"Select language","selectProgram":"Select a program","selectQuestions":"Select Questions","source":"Quelle","startBuilding":"Start building","success":"Erfolg!","timerOnly":"Timer only","translated":"Translated","translationBuilder":"Translation Builder","translationFileUploadFail":"Failed to upload translation file","translationsUploaded":"Translations Uploaded.","translationsUploadedSuccessfully":"Translation file uploaded successfully.","translationValue":"Translated Value","typeRequired":"Type is required","undo":"Rückgängig","uneditedFormMsg":"This form has never been edited","unknownUser":"Unbekannt","unpublish":"Unpublish","unpublishConfirmation":"Are you sure you want to unpublish this form?","unpublishExplainerText":"Unpublishing a form means you can no longer access it from your frontend. Unpublishing forms does not delete their associated schemas, it only affects whether or not you can access them in your frontend.","unpublishForm":"Unpublish Form","untranslated":"Untranslated","update":"Update","updateExistingForm":"Vorhandene Version aktualisieren","uploadFailed":"Upload Failed","uploadTranslation":"Upload translation","validateAndPublishForm":"Validate and publish form","validateForm":"Validate form","validating":"Validating","validationErrors_one":"Validation found {{count}} errors","validationErrors_other":"Validation found {{count}} errors","ValidationSuccessful":"Validierung erfolgreich","validRenderingTypeRequired":"A valid rendering type value is required","value":"Value","version":"Version","versionPlaceholder":"e.g. 1.0","viewErrors":"View the errors in the interactive builder","welcomeExplainer":"Add pages, sections and questions to your form. The Preview tab automatically updates as you build your form. For a detailed explanation of what constitutes an OpenMRS form schema, please read through the ","welcomeHeading":"Interactive schema builder","yes":"Ja"}')}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_form_builder_app=globalThis.webpackChunk_openmrs_esm_form_builder_app||[]).push([[4944],{34944(e){e.exports=JSON.parse('{"add":"Add","addFormComponent":"Add Form Component","addObsGroupQuestion":"Add a grouped question","addPage":"Seite hinzufügen","addProgram":"Programm hinzufügen","addProgramWorkflow":"Add program workflow","addQuestion":"Frage hinzufügen","addReference":"Add Reference","addSection":"Abschnitt hinzufügen","addSelectableOrder":"Add selectable order","all":"All","answerConceptValidation":"One or more selected answer concepts do not exist in the system. ","answerErrors":"Answer Errors","attributes":"Attributes","auditDetails":"Audit Details","autogeneratedUuid":"UUID (auto-generated)","backToDashboard":"Back to dashboard","calendarAndTimer":"Calendar and timer","calendarOnly":"Nur Kalender","cancel":"Abbrechen","cancelButtonText":"Abbrechen","checkFilters":"Check the filters above","chooseEncounterType":"Choose an encounter type to link your form to","choosePatientIdentifierType":"Wählen Sie eine Art der Patientenidentifikation","chooseQuestionType":"Choose a question type","chooseRenderingType":"Choose a rendering type","class":"Class","close":"Schließen","code":"Code","componentadded":"Component added","conceptDoesNotExist":"The linked concept \'{{conceptName}}\' does not exist in your dictionary","conceptId":"Concept ID","conceptSearchHelpText":"Can\'t find a concept?","convertLabelToCamelCase":"Convert label to camel-case","copySchema":"Schema kopieren","createdBy":"Erstellt von","createForm":"Create Form","createNewForm":"Create a new form","createNewPage":"Neue Seite erstellen","createNewQuestion":"Neue Frage erstellen","createNewSection":"Neuen Abschnitt erstellen","datatype":"Data Type","datePickerType":"The type of date picker to show ","decimalsNotAllowed":"This concept does not allow decimals","delete":"Löschen","deleteAnswer":"Delete answer","deleteForm":"Delete form","deleteFormConfirmation":"Are you sure you want to delete this form?","deletePage":"Seite löschen","deletePageConfirmation":"Are you sure you want to delete this page?","deletePageExplainerText":"Deleting this page will delete all the sections and questions associated with it. This action cannot be undone.","deleteQuestion":"Frage löschen","deleteQuestionConfirmation":"Are you sure you want to delete this question? ","deleteQuestionWarningText":"Clicking the delete button will delete the question labelled","deleteSchema":"Schema löschen","deleteSection":"Abschnitt löschen","deleteSectionConfirmation":"Are you sure you want to delete this section?","deleteSectionExplainerText":"Deleting this section will delete all the questions associated with it. This action cannot be undone.","deleting":"Deleting","description":"Beschreibung","descriptionPlaceholderText":"e.g. A form used to collect encounter data for clients in the Express Care program.","downloadSchema":"Schema herunterladen","downloadTranslation":"Download translation","dragToReorder":"Drag to reorder","duplicateQuestion":"Duplicate question","editButton":"{{elementType}} bearbeiten","editingFor":"Editing translation for:","editQuestion":"Frage bearbeiten","editSchema":"Schema bearbeiten","editSection":"Edit section","editString":"Edit string","editTranslationTitle":"Edit Translation","encounterType":"Encounter Type","enterOrderLabel":"Enter order label","enterPageTitle":"Enter a title for your new page","enterSectionTitle":"Enter a section title","error":"Fehler","errorAddingComponent":"Error adding component","errorCopy":"Sorry, there was a problem displaying this information. You can try to reload this page, or contact the site administrator and quote the error code above.","errorCreatingForm":"Error creating form","errorCreatingPage":"Fehler beim Erstellen der Seite","errorCreatingSection":"Fehler beim Erstellen des Abschnitts","errorDeletingForm":"Error deleting form","errorDeletingPage":"Fehler beim Löschen der Seite","errorDeletingQuestion":"Fehler beim Löschen der Frage","errorDeletingSection":"Fehler beim Löschen des Abschnitts","errorDuplicatingQuestion":"Fehler beim Duplizieren der Frage","errorEditingSection":"Error editing section","errorFetchingConceptName":"Couldn\'t resolve concept name","errorFetchingConcepts":"Fehler beim Abrufen der Konzepte","errorFetchingPatientIdentifierTypes":"Fehler beim Abrufen der Patienten-ID-Typen","errorFetchingPrograms":"Fehler beim Abrufen der Programme","errorFetchingProgramState":"Error fetching program state","errorLoadingForm":"Error loading Form","errorLoadingForms":"Error loading Forms","errorOnLine":"Error on line","errorPublishingForm":"Error publishing form","errorRenamingForm":"Error renaming form","errorRenamingPage":"Fehler beim Umbenennen der Seite","errorRenamingSection":"Fehler beim Umbenennen des Abschnitts","errorSavingQuestion":"Error saving question","errorUnpublishingForm":"Error unpublishing form","errorUpdatingForm":"Error updating form","expandedSection":"Keep section expanded","expandSectionExplainer":"Below are the sections linked to this page. Expand each section to add questions to it.","filterBy":"Filtern nach","fixSchemaAndRender":"Fix the error in the Schema Editor and click \\"Render changes\\" to retry.","formBuilder":"Form Builder","formBuilderDocs":"form builder documentation","formCreated":"New form created","formDeleted":"Form deleted","formDeletedMessage":"The form \\"{{- formName}}\\" has been deleted successfully","formDescription":"Form description","formDescriptionPlaceholder":"A short description of the form e.g. A form for collecting COVID-19 symptoms","formError":"Fehler beim Laden von Metadaten","formName":"Form name","formNamePlaceholder":"z.B. OHRI Express Care Patient Encounter Form","formPublished":"Form published","formPublishedSuccessfully":"form was published successfully","formRenamed":"Form renamed","formRendererHelperText":"Load a form schema in the Schema Editor to the left to see it rendered here by the Form Engine.","forms":"Forms","formUnpublished":"Form unpublished","formUnpublishedSuccessfully":"form was unpublished successfully","formUuid":"Form UUID","home":"Home","import":"Importieren","importSchema":"Schema importieren","inputDummySchema":"Input dummy schema","interactiveBuilder":"Interactive Builder","interactiveBuilderHelperText":"The Interactive Builder lets you build your form schema without writing JSON code. The Preview tab automatically updates as you build your form. When done, click Save Form to save your form.","invalidAnswerConcept":"Invalid Answer Concept Detected","invalidMinMax":"Min value cannot be greater than max","invalidVersionWarning":"Version can only start with with a number","isQuestionInfoProvided":"Would you like to provide additional details about the question?","isQuestionRequiredOrOptional":"Is this question a required or optional field? Required fields must be answered before the form can be submitted.","isUiSelectSearchable":"Is the ui-select-extended rendering searchable","label":"Label","labelFalse":"Label false","labelPlaceholder":"e.g. Type of Anaesthesia","labelTrue":"Label true","lastEditedBy":"Zuletzt bearbeitet von","loading":"Wird geladen","loadingPreview":"Loading preview...","loadingSchema":"Schema wird geladen","loadingTranslations":"Loading translations...","manageForms":"Manage Forms","mappings":"Zuordnungen","maximizeEditor":"Editor maximieren","maxLengthOfCharacters":"Max length of characters","maxValue":"Max value that can be entered","minimizeEditor":"Editor minimieren","minLengthOfCharacters":"Min length of characters","minValue":"Min value that can be entered","name":"Name","namePlaceholder":"What the form is called in the system","no":"Nein","noFormsAvailable":"No Forms Available","noFormsToDisplay":"There are no forms to display.","noMatchingConcepts":"No concepts were found that match","noMatchingFormsToDisplay":"No matching forms to display","noSchemaLoaded":"Kein Schema geladen","noTranslatedStrings":"No strings are translated yet.","noTranslationFileToUpload":"No translations found for the selected language to upload","noTranslationForLang":"No translations found for selected language.","noTranslations":"No translatable strings found.","notSearchable":"Not Searchable","noUntranslatedStrings":"All strings are translated.","noValidationErrorsFound":"No validation errors found","off":"Aus","on":"Ein","optional":"Optional","Page":"Select Page","pageCreated":"Neue Seite erstellt","pageDeleted":"Seite gelöscht","pageExplainer":"Pages typically have one or more sections. Click the button below to add a section to your page.","pageRenamed":"Seite umbenannt","pages":"Pages","patientIdentifierTypeHelperText":"Felder für Patientenidentifikationsarten müssen mit einer Patientenidentifikationsart verknüpft sein","pleaseTryAgain":"Please try again.","preview":"Vorschau","previewFormIn":"Preview form in","problemLoadingPreview":"There was a problem loading the schema preview","program":"Programm","programState":"Programmstatus","programWorkflow":"Program workflow","published":"Veröffentlicht","publishForm":"Publish form","publishing":"Wird veröffentlicht","publishingFailed":"Publishing failed","publishWarning":"Cannot publish form with validation errors","questionCreated":"Neue Frage erstellt","questionDeleted":"Frage gelöscht","questionDeletedMessage":"The question labelled \\"{{- questionLabel}}\\" has been deleted.","questionDuplicated":"Question duplicated. Please change the duplicated question\'s ID to a unique, camelcased value","questionId":"Question ID (prefer using camel-case for IDs). Each field should have a unique ID.","questionIdExists":"This question ID already exists in your schema","questionIdPlaceholder":"Enter a unique ID e.g. \\"anaesthesiaType\\" for a question asking about the type of anaesthesia.","questionInfo":"Additional question info","questionInfoPlaceholder":"Enter any relevant info about the question to provide more context.","questionLabel":"Label","questionRestored":"Frage wiederhergestellt","questionRestoredMessage":"The question labelled \\"{{- questionLabel}}\\" has been restored.","questionsUpdated":"Questions updated","questionType":"Question type","questionUpdated":"Question updated","referenceSchema":"Referenzschema","relationship":"Relationship","removeOrder":"Remove order","renderChanges":"Render changes","renderingType":"Rendering type","required":"Erforderlich","restoreDraft":"Entwurf wiederherstellen","retired":"Retired","returnToDashboard":"Return to dashboard","rows":"Zeilen","save":"Speichern","saveAsModal":"A version of the form you\'re working on already exists on the server. Do you want to update the form or to save it as a new version?","saveAsNewForm":"Als neu speichern","saveButtonText":"Speichern","saveConfirmation":"Save or Update form","saveExplainerText":"Clicking the Save button saves your form schema to the database. To see your form in your frontend, you first need to publish it. Click the Publish button to publish your form.","saveForm":"Save form","saveFormToServer":"Save form to server","saveSuccess":"wurde erfolgreich aktualisiert","saveSuccessMessage":"was created successfully. It is now visible on the Forms dashboard.","saving":"Wird gespeichert","schemaActions":"Schema actions","schemaEditor":"Schema editor","schemaLoadError":"Fehler beim Laden des Schemas","schemaNotFound":"Schema nicht gefunden","schemaNotFoundText":"The schema originally associated with this form could not be found. A draft schema was found saved in your browser\'s local storage. Would you like to load it instead?","schemaSaveWarningMessage":"The dev3 server is ephemeral at best and can\'t be relied upon to save your schemas permanently. To avoid losing your work, please save your schemas to your local machine. Alternatively, upload your schema to the distro repo to have it persisted across server resets.","searchable":"Searchable","searchConcept":"Search using a concept name or UUID","searchForAnswerConcept":"Search for a concept to add as an answer","searchForBackingConcept":"Search for a backing concept","searchForBackingPatientIdentifierType":"Nach einem Typ für die Patienten-ID suchen","searching":"Searching","searchInOCL":"In OCL suchen","searchThisList":"Diese Liste durchsuchen","searchTranslationKeys":"Search Translation Keys...","sectionCreated":"Neuer Abschnitt erstellt","SectionDeleted":"Abschnitt gelöscht","sectionEdited":"Section edited","sectionExplainer":"A section will typically contain one or more questions. Click the button below to add a question to this section.","sectionReferenceExplainer":"This section is a reference to another form. Modify the referenced form to add questions to this section.","sectionRenamed":"Abschnitt umbenannt","sections":"Sections","select":"Select","selectableOrders":"Selectable Orders","selectAnswersToDisplay":"Select answers to display","selectForm":"Select Form","selectLanguage":"Select language","selectProgram":"Select a program","selectQuestions":"Select Questions","source":"Quelle","startBuilding":"Start building","success":"Erfolg!","timerOnly":"Timer only","translated":"Translated","translationBuilder":"Translation Builder","translationFileUploadFail":"Failed to upload translation file","translationsUploaded":"Translations Uploaded.","translationsUploadedSuccessfully":"Translation file uploaded successfully.","translationValue":"Translated Value","typeRequired":"Type is required","undo":"Rückgängig","uneditedFormMsg":"This form has never been edited","unknownUser":"Unbekannt","unpublish":"Unpublish","unpublishConfirmation":"Are you sure you want to unpublish this form?","unpublishExplainerText":"Unpublishing a form means you can no longer access it from your frontend. Unpublishing forms does not delete their associated schemas, it only affects whether or not you can access them in your frontend.","unpublishForm":"Unpublish Form","untranslated":"Untranslated","update":"Update","updateExistingForm":"Vorhandene Version aktualisieren","uploadFailed":"Upload Failed","uploadTranslation":"Upload translation","validateAndPublishForm":"Validate and publish form","validateForm":"Validate form","validating":"Validating","validationErrors_one":"Validation found {{count}} errors","validationErrors_other":"Validation found {{count}} errors","ValidationSuccessful":"Validierung erfolgreich","validRenderingTypeRequired":"A valid rendering type value is required","value":"Value","version":"Version","versionPlaceholder":"e.g. 1.0","viewErrors":"View the errors in the interactive builder","welcomeExplainer":"Add pages, sections and questions to your form. The Preview tab automatically updates as you build your form. For a detailed explanation of what constitutes an OpenMRS form schema, please read through the ","welcomeHeading":"Interactive schema builder","yes":"Ja"}')}}]);
package/dist/715.js ADDED
@@ -0,0 +1 @@
1
+ (globalThis.webpackChunk_openmrs_esm_form_builder_app=globalThis.webpackChunk_openmrs_esm_form_builder_app||[]).push([[715],{82790(e,t,n){"use strict";n.d(t,{Mp:()=>qe,Hd:()=>at,vL:()=>ee,uN:()=>ie,cA:()=>pe,y$:()=>S,Sj:()=>N,TT:()=>D,Qo:()=>E,fF:()=>Xe,PM:()=>Ke,zM:()=>Je,MS:()=>g,FR:()=>m});var r=n(16072),o=n(92646),i=n(74979);const l={display:"none"};function a(e){let{id:t,value:n}=e;return r.createElement("div",{id:t,style:l},n)}function s(e){let{id:t,announcement:n,ariaLiveType:o="assertive"}=e;return r.createElement("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":o,"aria-atomic":!0},n)}const c=(0,r.createContext)(null),u={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},d={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function f(e){let{announcements:t=d,container:n,hiddenTextDescribedById:l,screenReaderInstructions:f=u}=e;const{announce:p,announcement:h}=function(){const[e,t]=(0,r.useState)("");return{announce:(0,r.useCallback)((e=>{null!=e&&t(e)}),[]),announcement:e}}(),g=(0,i.YG)("DndLiveRegion"),[m,v]=(0,r.useState)(!1);if((0,r.useEffect)((()=>{v(!0)}),[]),function(e){const t=(0,r.useContext)(c);(0,r.useEffect)((()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)}),[e,t])}((0,r.useMemo)((()=>({onDragStart(e){let{active:n}=e;p(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&p(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;p(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;p(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;p(t.onDragCancel({active:n,over:r}))}})),[p,t])),!m)return null;const y=r.createElement(r.Fragment,null,r.createElement(a,{id:l,value:f.draggable}),r.createElement(s,{id:g,announcement:h}));return n?(0,o.createPortal)(y,n):y}var p;function h(){}function g(e,t){return(0,r.useMemo)((()=>({sensor:e,options:null!=t?t:{}})),[e,t])}function m(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useMemo)((()=>[...t].filter((e=>null!=e))),[...t])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(p||(p={}));const v=Object.freeze({x:0,y:0});function y(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function b(e,t){const n=(0,i.e_)(e);return n?(n.x-t.left)/t.width*100+"% "+(n.y-t.top)/t.height*100+"%":"0 0"}function x(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function k(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function w(e){let{left:t,top:n,height:r,width:o}=e;return[{x:t,y:n},{x:t+o,y:n},{x:t,y:n+r},{x:t+o,y:n+r}]}const S=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=w(t),i=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=w(r),l=o.reduce(((e,t,r)=>e+y(n[r],t)),0),a=Number((l/4).toFixed(4));i.push({id:t,data:{droppableContainer:e,value:a}})}}return i.sort(x)};function C(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),l=o-r,a=i-n;if(r<o&&n<i){const n=t.width*t.height,r=e.width*e.height,o=l*a;return Number((o/(n+r-o)).toFixed(4))}return 0}const E=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const e of r){const{id:r}=e,i=n.get(r);if(i){const n=C(i,t);n>0&&o.push({id:r,data:{droppableContainer:e,value:n}})}}return o.sort(k)};function I(e,t){const{top:n,left:r,bottom:o,right:i}=t;return n<=e.y&&e.y<=o&&r<=e.x&&e.x<=i}const D=e=>{let{droppableContainers:t,droppableRects:n,pointerCoordinates:r}=e;if(!r)return[];const o=[];for(const e of t){const{id:t}=e,i=n.get(t);if(i&&I(r,i)){const n=w(i).reduce(((e,t)=>e+y(r,t)),0),l=Number((n/4).toFixed(4));o.push({id:t,data:{droppableContainer:e,value:l}})}}return o.sort(x)};function T(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:v}function O(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce(((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x})),{...t})}}const R=O(1);function A(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}const P={ignoreTransform:!1};function N(e,t){void 0===t&&(t=P);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:r}=(0,i.zk)(e).getComputedStyle(e);t&&(n=function(e,t,n){const r=A(t);if(!r)return e;const{scaleX:o,scaleY:i,x:l,y:a}=r,s=e.left-l-(1-o)*parseFloat(n),c=e.top-a-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),u=o?e.width/o:e.width,d=i?e.height/i:e.height;return{width:u,height:d,top:c,right:s+u,bottom:c+d,left:s}}(n,t,r))}const{top:r,left:o,width:l,height:a,bottom:s,right:c}=n;return{top:r,left:o,width:l,height:a,bottom:s,right:c}}function M(e){return N(e,{ignoreTransform:!0})}function L(e,t){const n=[];return e?function r(o){if(null!=t&&n.length>=t)return n;if(!o)return n;if((0,i.wz)(o)&&null!=o.scrollingElement&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!(0,i.sb)(o)||(0,i.xZ)(o))return n;if(n.includes(o))return n;const l=(0,i.zk)(e).getComputedStyle(o);return o!==e&&function(e,t){void 0===t&&(t=(0,i.zk)(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const r=t[e];return"string"==typeof r&&n.test(r)}))}(o,l)&&n.push(o),function(e,t){return void 0===t&&(t=(0,i.zk)(e).getComputedStyle(e)),"fixed"===t.position}(o,l)?n:r(o.parentNode)}(e):n}function z(e){const[t]=L(e,1);return null!=t?t:null}function F(e){return i.Sw&&e?(0,i.l6)(e)?e:(0,i.Ll)(e)?(0,i.wz)(e)||e===(0,i.TW)(e).scrollingElement?window:(0,i.sb)(e)?e:null:null:null}function j(e){return(0,i.l6)(e)?e.scrollX:e.scrollLeft}function _(e){return(0,i.l6)(e)?e.scrollY:e.scrollTop}function B(e){return{x:j(e),y:_(e)}}var U;function H(e){return!(!i.Sw||!e)&&e===document.scrollingElement}function V(e){const t={x:0,y:0},n=H(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(U||(U={}));const q={x:.2,y:.2};function Y(e,t,n,r,o){let{top:i,left:l,right:a,bottom:s}=n;void 0===r&&(r=10),void 0===o&&(o=q);const{isTop:c,isBottom:u,isLeft:d,isRight:f}=V(e),p={x:0,y:0},h={x:0,y:0},g=t.height*o.y,m=t.width*o.x;return!c&&i<=t.top+g?(p.y=U.Backward,h.y=r*Math.abs((t.top+g-i)/g)):!u&&s>=t.bottom-g&&(p.y=U.Forward,h.y=r*Math.abs((t.bottom-g-s)/g)),!f&&a>=t.right-m?(p.x=U.Forward,h.x=r*Math.abs((t.right-m-a)/m)):!d&&l<=t.left+m&&(p.x=U.Backward,h.x=r*Math.abs((t.left+m-l)/m)),{direction:p,speed:h}}function W(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function K(e){return e.reduce(((e,t)=>(0,i.WQ)(e,B(t))),v)}function X(e,t){if(void 0===t&&(t=N),!e)return;const{top:n,left:r,bottom:o,right:i}=t(e);z(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Q=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+j(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+_(t)),0)}]];class J{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=L(t),r=K(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,o]of Q)for(const i of t)Object.defineProperty(this,i,{get:()=>{const t=o(n),l=r[e]-t;return this.rect[i]+l},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class ${constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)}))},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function G(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}var Z,ee;function te(e){e.preventDefault()}function ne(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(Z||(Z={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"}(ee||(ee={}));const re={start:[ee.Space,ee.Enter],cancel:[ee.Esc],end:[ee.Space,ee.Enter,ee.Tab]},oe=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case ee.Right:return{...n,x:n.x+25};case ee.Left:return{...n,x:n.x-25};case ee.Down:return{...n,y:n.y+25};case ee.Up:return{...n,y:n.y-25}}};class ie{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new $((0,i.TW)(t)),this.windowListeners=new $((0,i.zk)(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Z.Resize,this.handleCancel),this.windowListeners.add(Z.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(Z.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&X(n),t(v)}handleKeyDown(e){if((0,i.kx)(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:o=re,coordinateGetter:l=oe,scrollBehavior:a="smooth"}=r,{code:s}=e;if(o.end.includes(s))return void this.handleEnd(e);if(o.cancel.includes(s))return void this.handleCancel(e);const{collisionRect:c}=n.current,u=c?{x:c.left,y:c.top}:v;this.referenceCoordinates||(this.referenceCoordinates=u);const d=l(e,{active:t,context:n.current,currentCoordinates:u});if(d){const t=(0,i.Re)(d,u),r={x:0,y:0},{scrollableAncestors:o}=n.current;for(const n of o){const o=e.code,{isTop:i,isRight:l,isLeft:s,isBottom:c,maxScroll:u,minScroll:f}=V(n),p=W(n),h={x:Math.min(o===ee.Right?p.right-p.width/2:p.right,Math.max(o===ee.Right?p.left:p.left+p.width/2,d.x)),y:Math.min(o===ee.Down?p.bottom-p.height/2:p.bottom,Math.max(o===ee.Down?p.top:p.top+p.height/2,d.y))},g=o===ee.Right&&!l||o===ee.Left&&!s,m=o===ee.Down&&!c||o===ee.Up&&!i;if(g&&h.x!==d.x){const e=n.scrollLeft+t.x,i=o===ee.Right&&e<=u.x||o===ee.Left&&e>=f.x;if(i&&!t.y)return void n.scrollTo({left:e,behavior:a});r.x=i?n.scrollLeft-e:o===ee.Right?n.scrollLeft-u.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:a});break}if(m&&h.y!==d.y){const e=n.scrollTop+t.y,i=o===ee.Down&&e<=u.y||o===ee.Up&&e>=f.y;if(i&&!t.x)return void n.scrollTo({top:e,behavior:a});r.y=i?n.scrollTop-e:o===ee.Down?n.scrollTop-u.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:a});break}}this.handleMove(e,(0,i.WQ)((0,i.Re)(d,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function le(e){return Boolean(e&&"distance"in e)}function ae(e){return Boolean(e&&"delay"in e)}ie.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=re,onActivation:o}=t,{active:i}=n;const{code:l}=e.nativeEvent;if(r.start.includes(l)){const t=i.activatorNode.current;return!(t&&e.target!==t||(e.preventDefault(),null==o||o({event:e.nativeEvent}),0))}return!1}}];class se{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=(0,i.zk)(e);return e instanceof t?e:(0,i.TW)(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:o}=e,{target:l}=o;this.props=e,this.events=t,this.document=(0,i.TW)(l),this.documentListeners=new $(this.document),this.listeners=new $(n),this.windowListeners=new $((0,i.zk)(l)),this.initialCoordinates=null!=(r=(0,i.e_)(o))?r:v,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(Z.Resize,this.handleCancel),this.windowListeners.add(Z.DragStart,te),this.windowListeners.add(Z.VisibilityChange,this.handleCancel),this.windowListeners.add(Z.ContextMenu,te),this.documentListeners.add(Z.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(ae(t))return this.timeoutId=setTimeout(this.handleStart,t.delay),void this.handlePending(t);if(le(t))return void this.handlePending(t)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){const{active:n,onPending:r}=this.props;r(n,e,this.initialCoordinates,t)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(Z.Click,ne,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Z.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:o}=this,{onMove:l,options:{activationConstraint:a}}=o;if(!r)return;const s=null!=(t=(0,i.e_)(e))?t:v,c=(0,i.Re)(r,s);if(!n&&a){if(le(a)){if(null!=a.tolerance&&G(c,a.tolerance))return this.handleCancel();if(G(c,a.distance))return this.handleStart()}return ae(a)&&G(c,a.tolerance)?this.handleCancel():void this.handlePending(a,c)}e.cancelable&&e.preventDefault(),l(s)}handleEnd(){const{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){const{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===ee.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const ce={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class ue extends se{constructor(e){const{event:t}=e,n=(0,i.TW)(t.target);super(e,ce,n)}}ue.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button||(null==r||r({event:n}),0))}}];const de={move:{name:"mousemove"},end:{name:"mouseup"}};var fe;!function(e){e[e.RightClick=2]="RightClick"}(fe||(fe={}));class pe extends se{constructor(e){super(e,de,(0,i.TW)(e.event.target))}}pe.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==fe.RightClick&&(null==r||r({event:n}),!0)}}];const he={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};var ge,me;(class extends se{constructor(e){super(e,he)}static setup(){return window.addEventListener(he.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(he.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return!(o.length>1||(null==r||r({event:n}),0))}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(ge||(ge={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(me||(me={}));const ve={x:{[U.Backward]:!1,[U.Forward]:!1},y:{[U.Backward]:!1,[U.Forward]:!1}};var ye,be;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(ye||(ye={})),function(e){e.Optimized="optimized"}(be||(be={}));const xe=new Map;function ke(e,t){return(0,i.KG)((n=>e?n||("function"==typeof t?t(e):e):null),[t,e])}function we(e){let{callback:t,disabled:n}=e;const o=(0,i._q)(t),l=(0,r.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(o)}),[n]);return(0,r.useEffect)((()=>()=>null==l?void 0:l.disconnect()),[l]),l}function Se(e){return new J(N(e),e)}function Ce(e,t,n){void 0===t&&(t=Se);const[o,l]=(0,r.useState)(null);function a(){l((r=>{if(!e)return null;var o;if(!1===e.isConnected)return null!=(o=null!=r?r:n)?o:null;const i=t(e);return JSON.stringify(r)===JSON.stringify(i)?r:i}))}const s=function(e){let{callback:t,disabled:n}=e;const o=(0,i._q)(t),l=(0,r.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(o)}),[o,n]);return(0,r.useEffect)((()=>()=>null==l?void 0:l.disconnect()),[l]),l}({callback(t){if(e)for(const n of t){const{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){a();break}}}}),c=we({callback:a});return(0,i.Es)((()=>{a(),e?(null==c||c.observe(e),null==s||s.observe(document.body,{childList:!0,subtree:!0})):(null==c||c.disconnect(),null==s||s.disconnect())}),[e]),o}const Ee=[];function Ie(e,t){void 0===t&&(t=[]);const n=(0,r.useRef)(null);return(0,r.useEffect)((()=>{n.current=null}),t),(0,r.useEffect)((()=>{const t=e!==v;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)}),[e]),n.current?(0,i.Re)(e,n.current):v}function De(e){return(0,r.useMemo)((()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null),[e])}const Te=[];function Oe(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return(0,i.sb)(t)?t:e}const Re=[{sensor:ue,options:{}},{sensor:ie,options:{}}],Ae={current:{}},Pe={draggable:{measure:M},droppable:{measure:M,strategy:ye.WhileDragging,frequency:be.Optimized},dragOverlay:{measure:N}};class Ne extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e=>{let{disabled:t}=e;return!t}))}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const Me={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Ne,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:h},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Pe,measureDroppableContainers:h,windowRect:null,measuringScheduled:!1},Le={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:h,draggableNodes:new Map,over:null,measureDroppableContainers:h},ze=(0,r.createContext)(Le),Fe=(0,r.createContext)(Me);function je(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Ne}}}function _e(e,t){switch(t.type){case p.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case p.DragMove:return null==e.draggable.active?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case p.DragEnd:case p.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case p.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new Ne(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case p.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const l=new Ne(e.droppable.containers);return l.set(n,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:l}}}case p.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new Ne(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function Be(e){let{disabled:t}=e;const{active:n,activatorEvent:o,draggableNodes:l}=(0,r.useContext)(ze),a=(0,i.ZC)(o),s=(0,i.ZC)(null==n?void 0:n.id);return(0,r.useEffect)((()=>{if(!t&&!o&&a&&null!=s){if(!(0,i.kx)(a))return;if(document.activeElement===a.target)return;const e=l.get(s);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame((()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=(0,i.ag)(e);if(t){t.focus();break}}}))}}),[o,t,l,s,a]),null}function Ue(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce(((e,t)=>t({transform:e,...r})),n):n}const He=(0,r.createContext)({...v,scaleX:1,scaleY:1});var Ve;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(Ve||(Ve={}));const qe=(0,r.memo)((function(e){var t,n,l,a;let{id:s,accessibility:u,autoScroll:d=!0,children:h,sensors:g=Re,collisionDetection:m=E,measuring:y,modifiers:b,...x}=e;const k=(0,r.useReducer)(_e,void 0,je),[w,S]=k,[C,I]=function(){const[e]=(0,r.useState)((()=>new Set)),t=(0,r.useCallback)((t=>(e.add(t),()=>e.delete(t))),[e]);return[(0,r.useCallback)((t=>{let{type:n,event:r}=t;e.forEach((e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)}))}),[e]),t]}(),[D,O]=(0,r.useState)(Ve.Uninitialized),A=D===Ve.Initialized,{draggable:{active:P,nodes:M,translate:j},droppable:{containers:_}}=w,V=null!=P?M.get(P):null,q=(0,r.useRef)({initial:null,translated:null}),W=(0,r.useMemo)((()=>{var e;return null!=P?{id:P,data:null!=(e=null==V?void 0:V.data)?e:Ae,rect:q}:null}),[P,V]),X=(0,r.useRef)(null),[Q,$]=(0,r.useState)(null),[G,Z]=(0,r.useState)(null),ee=(0,i.YN)(x,Object.values(x)),te=(0,i.YG)("DndDescribedBy",s),ne=(0,r.useMemo)((()=>_.getEnabled()),[_]),re=(oe=y,(0,r.useMemo)((()=>({draggable:{...Pe.draggable,...null==oe?void 0:oe.draggable},droppable:{...Pe.droppable,...null==oe?void 0:oe.droppable},dragOverlay:{...Pe.dragOverlay,...null==oe?void 0:oe.dragOverlay}})),[null==oe?void 0:oe.draggable,null==oe?void 0:oe.droppable,null==oe?void 0:oe.dragOverlay]));var oe;const{droppableRects:ie,measureDroppableContainers:le,measuringScheduled:ae}=function(e,t){let{dragging:n,dependencies:o,config:l}=t;const[a,s]=(0,r.useState)(null),{frequency:c,measure:u,strategy:d}=l,f=(0,r.useRef)(e),p=function(){switch(d){case ye.Always:return!1;case ye.BeforeDragging:return n;default:return!n}}(),h=(0,i.YN)(p),g=(0,r.useCallback)((function(e){void 0===e&&(e=[]),h.current||s((t=>null===t?e:t.concat(e.filter((e=>!t.includes(e))))))}),[h]),m=(0,r.useRef)(null),v=(0,i.KG)((t=>{if(p&&!n)return xe;if(!t||t===xe||f.current!==e||null!=a){const t=new Map;for(let n of e){if(!n)continue;if(a&&a.length>0&&!a.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,r=e?new J(u(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t}),[e,a,n,p,u]);return(0,r.useEffect)((()=>{f.current=e}),[e]),(0,r.useEffect)((()=>{p||g()}),[n,p]),(0,r.useEffect)((()=>{a&&a.length>0&&s(null)}),[JSON.stringify(a)]),(0,r.useEffect)((()=>{p||"number"!=typeof c||null!==m.current||(m.current=setTimeout((()=>{g(),m.current=null}),c))}),[c,p,g,...o]),{droppableRects:v,measureDroppableContainers:g,measuringScheduled:null!=a}}(ne,{dragging:A,dependencies:[j.x,j.y],config:re.droppable}),se=function(e,t){const n=null!=t?e.get(t):void 0,r=n?n.node.current:null;return(0,i.KG)((e=>{var n;return null==t?null:null!=(n=null!=r?r:e)?n:null}),[r,t])}(M,P),ce=(0,r.useMemo)((()=>G?(0,i.e_)(G):null),[G]),ue=function(){const e=!1===(null==Q?void 0:Q.autoScrollEnabled),t="object"==typeof d?!1===d.enabled:!1===d,n=A&&!e&&!t;return"object"==typeof d?{...d,enabled:n}:{enabled:n}}(),de=function(e,t){return ke(e,t)}(se,re.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:o,config:l=!0}=e;const a=(0,r.useRef)(!1),{x:s,y:c}="boolean"==typeof l?{x:l,y:l}:l;(0,i.Es)((()=>{if(!s&&!c||!t)return void(a.current=!1);if(a.current||!o)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const r=T(n(e),o);if(s||(r.x=0),c||(r.y=0),a.current=!0,Math.abs(r.x)>0||Math.abs(r.y)>0){const t=z(e);t&&t.scrollBy({top:r.y,left:r.x})}}),[t,s,c,o,n])}({activeNode:null!=P?M.get(P):null,config:ue.layoutShiftCompensation,initialRect:de,measure:re.draggable.measure});const fe=Ce(se,re.draggable.measure,de),pe=Ce(se?se.parentElement:null),he=(0,r.useRef)({activatorEvent:null,active:null,activeNode:se,collisionRect:null,collisions:null,droppableRects:ie,draggableNodes:M,draggingNode:null,draggingNodeRect:null,droppableContainers:_,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),be=_.getNodeFor(null==(t=he.current.over)?void 0:t.id),Se=function(e){let{measure:t}=e;const[n,o]=(0,r.useState)(null),l=we({callback:(0,r.useCallback)((e=>{for(const{target:n}of e)if((0,i.sb)(n)){o((e=>{const r=t(n);return e?{...e,width:r.width,height:r.height}:r}));break}}),[t])}),a=(0,r.useCallback)((e=>{const n=Oe(e);null==l||l.disconnect(),n&&(null==l||l.observe(n)),o(n?t(n):null)}),[t,l]),[s,c]=(0,i.lk)(a);return(0,r.useMemo)((()=>({nodeRef:s,rect:n,setRef:c})),[n,s,c])}({measure:re.dragOverlay.measure}),Ne=null!=(n=Se.nodeRef.current)?n:se,Me=A?null!=(l=Se.rect)?l:fe:null,Le=Boolean(Se.nodeRef.current&&Se.rect),qe=T(Ye=Le?null:fe,ke(Ye));var Ye;const We=De(Ne?(0,i.zk)(Ne):null),Ke=function(e){const t=(0,r.useRef)(e),n=(0,i.KG)((n=>e?n&&n!==Ee&&e&&t.current&&e.parentNode===t.current.parentNode?n:L(e):Ee),[e]);return(0,r.useEffect)((()=>{t.current=e}),[e]),n}(A?null!=be?be:se:null),Xe=function(e,t){void 0===t&&(t=N);const[n]=e,o=De(n?(0,i.zk)(n):null),[l,a]=(0,r.useState)(Te);function s(){a((()=>e.length?e.map((e=>H(e)?o:new J(t(e),e))):Te))}const c=we({callback:s});return(0,i.Es)((()=>{null==c||c.disconnect(),s(),e.forEach((e=>null==c?void 0:c.observe(e)))}),[e]),l}(Ke),Qe=Ue(b,{transform:{x:j.x-qe.x,y:j.y-qe.y,scaleX:1,scaleY:1},activatorEvent:G,active:W,activeNodeRect:fe,containerNodeRect:pe,draggingNodeRect:Me,over:he.current.over,overlayNodeRect:Se.rect,scrollableAncestors:Ke,scrollableAncestorRects:Xe,windowRect:We}),Je=ce?(0,i.WQ)(ce,j):null,$e=function(e){const[t,n]=(0,r.useState)(null),o=(0,r.useRef)(e),l=(0,r.useCallback)((e=>{const t=F(e.target);t&&n((e=>e?(e.set(t,B(t)),new Map(e)):null))}),[]);return(0,r.useEffect)((()=>{const t=o.current;if(e!==t){r(t);const i=e.map((e=>{const t=F(e);return t?(t.addEventListener("scroll",l,{passive:!0}),[t,B(t)]):null})).filter((e=>null!=e));n(i.length?new Map(i):null),o.current=e}return()=>{r(e),r(t)};function r(e){e.forEach((e=>{const t=F(e);null==t||t.removeEventListener("scroll",l)}))}}),[l,e]),(0,r.useMemo)((()=>e.length?t?Array.from(t.values()).reduce(((e,t)=>(0,i.WQ)(e,t)),v):K(e):v),[e,t])}(Ke),Ge=Ie($e),Ze=Ie($e,[fe]),et=(0,i.WQ)(Qe,Ge),tt=Me?R(Me,Qe):null,nt=W&&tt?m({active:W,collisionRect:tt,droppableRects:ie,droppableContainers:ne,pointerCoordinates:Je}):null,rt=function(e){if(!e||0===e.length)return null;const[t]=e;return t.id}(nt),[ot,it]=(0,r.useState)(null),lt=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(Le?Qe:(0,i.WQ)(Qe,Ze),null!=(a=null==ot?void 0:ot.rect)?a:null,fe),at=(0,r.useRef)(null),st=(0,r.useCallback)(((e,t)=>{let{sensor:n,options:r}=t;if(null==X.current)return;const i=M.get(X.current);if(!i)return;const l=e.nativeEvent,a=new n({active:X.current,activeNode:i,event:l,options:r,context:he,onAbort(e){if(!M.get(e))return;const{onDragAbort:t}=ee.current,n={id:e};null==t||t(n),C({type:"onDragAbort",event:n})},onPending(e,t,n,r){if(!M.get(e))return;const{onDragPending:o}=ee.current,i={id:e,constraint:t,initialCoordinates:n,offset:r};null==o||o(i),C({type:"onDragPending",event:i})},onStart(e){const t=X.current;if(null==t)return;const n=M.get(t);if(!n)return;const{onDragStart:r}=ee.current,i={activatorEvent:l,active:{id:t,data:n.data,rect:q}};(0,o.unstable_batchedUpdates)((()=>{null==r||r(i),O(Ve.Initializing),S({type:p.DragStart,initialCoordinates:e,active:t}),C({type:"onDragStart",event:i}),$(at.current),Z(l)}))},onMove(e){S({type:p.DragMove,coordinates:e})},onEnd:s(p.DragEnd),onCancel:s(p.DragCancel)});function s(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=he.current;let a=null;if(t&&i){const{cancelDrop:o}=ee.current;a={activatorEvent:l,active:t,collisions:n,delta:i,over:r},e===p.DragEnd&&"function"==typeof o&&await Promise.resolve(o(a))&&(e=p.DragCancel)}X.current=null,(0,o.unstable_batchedUpdates)((()=>{S({type:e}),O(Ve.Uninitialized),it(null),$(null),Z(null),at.current=null;const t=e===p.DragEnd?"onDragEnd":"onDragCancel";if(a){const e=ee.current[t];null==e||e(a),C({type:t,event:a})}}))}}at.current=a}),[M]),ct=(0,r.useCallback)(((e,t)=>(n,r)=>{const o=n.nativeEvent,i=M.get(r);if(null!==X.current||!i||o.dndKit||o.defaultPrevented)return;const l={active:i};!0===e(n,t.options,l)&&(o.dndKit={capturedBy:t.sensor},X.current=r,st(n,t))}),[M,st]),ut=function(e,t){return(0,r.useMemo)((()=>e.reduce(((e,n)=>{const{sensor:r}=n;return[...e,...r.activators.map((e=>({eventName:e.eventName,handler:t(e.handler,n)})))]}),[])),[e,t])}(g,ct);!function(e){(0,r.useEffect)((()=>{if(!i.Sw)return;const t=e.map((e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()}));return()=>{for(const e of t)null==e||e()}}),e.map((e=>{let{sensor:t}=e;return t})))}(g),(0,i.Es)((()=>{fe&&D===Ve.Initializing&&O(Ve.Initialized)}),[fe,D]),(0,r.useEffect)((()=>{const{onDragMove:e}=ee.current,{active:t,activatorEvent:n,collisions:r,over:i}=he.current;if(!t||!n)return;const l={active:t,activatorEvent:n,collisions:r,delta:{x:et.x,y:et.y},over:i};(0,o.unstable_batchedUpdates)((()=>{null==e||e(l),C({type:"onDragMove",event:l})}))}),[et.x,et.y]),(0,r.useEffect)((()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=he.current;if(!e||null==X.current||!t||!i)return;const{onDragOver:l}=ee.current,a=r.get(rt),s=a&&a.rect.current?{id:a.id,rect:a.rect.current,data:a.data,disabled:a.disabled}:null,c={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:s};(0,o.unstable_batchedUpdates)((()=>{it(s),null==l||l(c),C({type:"onDragOver",event:c})}))}),[rt]),(0,i.Es)((()=>{he.current={activatorEvent:G,active:W,activeNode:se,collisionRect:tt,collisions:nt,droppableRects:ie,draggableNodes:M,draggingNode:Ne,draggingNodeRect:Me,droppableContainers:_,over:ot,scrollableAncestors:Ke,scrollAdjustedTranslate:et},q.current={initial:Me,translated:tt}}),[W,se,nt,tt,M,Ne,Me,ie,_,ot,Ke,et]),function(e){let{acceleration:t,activator:n=ge.Pointer,canScroll:o,draggingRect:l,enabled:a,interval:s=5,order:c=me.TreeOrder,pointerCoordinates:u,scrollableAncestors:d,scrollableAncestorRects:f,delta:p,threshold:h}=e;const g=function(e){let{delta:t,disabled:n}=e;const r=(0,i.ZC)(t);return(0,i.KG)((e=>{if(n||!r||!e)return ve;const o=Math.sign(t.x-r.x),i=Math.sign(t.y-r.y);return{x:{[U.Backward]:e.x[U.Backward]||-1===o,[U.Forward]:e.x[U.Forward]||1===o},y:{[U.Backward]:e.y[U.Backward]||-1===i,[U.Forward]:e.y[U.Forward]||1===i}}}),[n,t,r])}({delta:p,disabled:!a}),[m,v]=(0,i.$$)(),y=(0,r.useRef)({x:0,y:0}),b=(0,r.useRef)({x:0,y:0}),x=(0,r.useMemo)((()=>{switch(n){case ge.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case ge.DraggableRect:return l}}),[n,l,u]),k=(0,r.useRef)(null),w=(0,r.useCallback)((()=>{const e=k.current;if(!e)return;const t=y.current.x*b.current.x,n=y.current.y*b.current.y;e.scrollBy(t,n)}),[]),S=(0,r.useMemo)((()=>c===me.TreeOrder?[...d].reverse():d),[c,d]);(0,r.useEffect)((()=>{if(a&&d.length&&x){for(const e of S){if(!1===(null==o?void 0:o(e)))continue;const n=d.indexOf(e),r=f[n];if(!r)continue;const{direction:i,speed:l}=Y(e,r,x,t,h);for(const e of["x","y"])g[e][i[e]]||(l[e]=0,i[e]=0);if(l.x>0||l.y>0)return v(),k.current=e,m(w,s),y.current=l,void(b.current=i)}y.current={x:0,y:0},b.current={x:0,y:0},v()}else v()}),[t,w,o,v,a,s,JSON.stringify(x),JSON.stringify(g),m,d,S,f,JSON.stringify(h)])}({...ue,delta:j,draggingRect:tt,pointerCoordinates:Je,scrollableAncestors:Ke,scrollableAncestorRects:Xe});const dt=(0,r.useMemo)((()=>({active:W,activeNode:se,activeNodeRect:fe,activatorEvent:G,collisions:nt,containerNodeRect:pe,dragOverlay:Se,draggableNodes:M,droppableContainers:_,droppableRects:ie,over:ot,measureDroppableContainers:le,scrollableAncestors:Ke,scrollableAncestorRects:Xe,measuringConfiguration:re,measuringScheduled:ae,windowRect:We})),[W,se,fe,G,nt,pe,Se,M,_,ie,ot,le,Ke,Xe,re,ae,We]),ft=(0,r.useMemo)((()=>({activatorEvent:G,activators:ut,active:W,activeNodeRect:fe,ariaDescribedById:{draggable:te},dispatch:S,draggableNodes:M,over:ot,measureDroppableContainers:le})),[G,ut,W,fe,S,te,M,ot,le]);return r.createElement(c.Provider,{value:I},r.createElement(ze.Provider,{value:ft},r.createElement(Fe.Provider,{value:dt},r.createElement(He.Provider,{value:lt},h)),r.createElement(Be,{disabled:!1===(null==u?void 0:u.restoreFocus)})),r.createElement(f,{...u,hiddenTextDescribedById:te}))})),Ye=(0,r.createContext)(null),We="button";function Ke(e){let{id:t,data:n,disabled:o=!1,attributes:l}=e;const a=(0,i.YG)("Draggable"),{activators:s,activatorEvent:c,active:u,activeNodeRect:d,ariaDescribedById:f,draggableNodes:p,over:h}=(0,r.useContext)(ze),{role:g=We,roleDescription:m="draggable",tabIndex:v=0}=null!=l?l:{},y=(null==u?void 0:u.id)===t,b=(0,r.useContext)(y?He:Ye),[x,k]=(0,i.lk)(),[w,S]=(0,i.lk)(),C=function(e,t){return(0,r.useMemo)((()=>e.reduce(((e,n)=>{let{eventName:r,handler:o}=n;return e[r]=e=>{o(e,t)},e}),{})),[e,t])}(s,t),E=(0,i.YN)(n);return(0,i.Es)((()=>(p.set(t,{id:t,key:a,node:x,activatorNode:w,data:E}),()=>{const e=p.get(t);e&&e.key===a&&p.delete(t)})),[p,t]),{active:u,activatorEvent:c,activeNodeRect:d,attributes:(0,r.useMemo)((()=>({role:g,tabIndex:v,"aria-disabled":o,"aria-pressed":!(!y||g!==We)||void 0,"aria-roledescription":m,"aria-describedby":f.draggable})),[o,g,v,y,m,f.draggable]),isDragging:y,listeners:o?void 0:C,node:x,over:h,setNodeRef:k,setActivatorNodeRef:S,transform:b}}function Xe(){return(0,r.useContext)(Fe)}const Qe={timeout:25};function Je(e){let{data:t,disabled:n=!1,id:o,resizeObserverConfig:l}=e;const a=(0,i.YG)("Droppable"),{active:s,dispatch:c,over:u,measureDroppableContainers:d}=(0,r.useContext)(ze),f=(0,r.useRef)({disabled:n}),h=(0,r.useRef)(!1),g=(0,r.useRef)(null),m=(0,r.useRef)(null),{disabled:v,updateMeasurementsFor:y,timeout:b}={...Qe,...l},x=(0,i.YN)(null!=y?y:o),k=we({callback:(0,r.useCallback)((()=>{h.current?(null!=m.current&&clearTimeout(m.current),m.current=setTimeout((()=>{d(Array.isArray(x.current)?x.current:[x.current]),m.current=null}),b)):h.current=!0}),[b]),disabled:v||!s}),w=(0,r.useCallback)(((e,t)=>{k&&(t&&(k.unobserve(t),h.current=!1),e&&k.observe(e))}),[k]),[S,C]=(0,i.lk)(w),E=(0,i.YN)(t);return(0,r.useEffect)((()=>{k&&S.current&&(k.disconnect(),h.current=!1,k.observe(S.current))}),[S,k]),(0,r.useEffect)((()=>(c({type:p.RegisterDroppable,element:{id:o,key:a,disabled:n,node:S,rect:g,data:E}}),()=>c({type:p.UnregisterDroppable,key:a,id:o}))),[o]),(0,r.useEffect)((()=>{n!==f.current.disabled&&(c({type:p.SetDroppableDisabled,id:o,key:a,disabled:n}),f.current.disabled=n)}),[o,a,n,c]),{active:s,rect:g,isOver:(null==u?void 0:u.id)===o,node:S,over:u,setNodeRef:C}}function $e(e){let{animation:t,children:n}=e;const[o,l]=(0,r.useState)(null),[a,s]=(0,r.useState)(null),c=(0,i.ZC)(n);return n||o||!c||l(c),(0,i.Es)((()=>{if(!a)return;const e=null==o?void 0:o.key,n=null==o?void 0:o.props.id;null!=e&&null!=n?Promise.resolve(t(n,a)).then((()=>{l(null)})):l(null)}),[t,o,a]),r.createElement(r.Fragment,null,n,o?(0,r.cloneElement)(o,{ref:s}):null)}const Ge={x:0,y:0,scaleX:1,scaleY:1};function Ze(e){let{children:t}=e;return r.createElement(ze.Provider,{value:Le},r.createElement(He.Provider,{value:Ge},t))}const et={position:"fixed",touchAction:"none"},tt=e=>(0,i.kx)(e)?"transform 250ms ease":void 0,nt=(0,r.forwardRef)(((e,t)=>{let{as:n,activatorEvent:o,adjustScale:l,children:a,className:s,rect:c,style:u,transform:d,transition:f=tt}=e;if(!c)return null;const p=l?d:{...d,scaleX:1,scaleY:1},h={...et,width:c.width,height:c.height,top:c.top,left:c.left,transform:i.Ks.Transform.toString(p),transformOrigin:l&&o?b(o,c):void 0,transition:"function"==typeof f?f(o):f,...u};return r.createElement(n,{className:s,style:h,ref:t},a)})),rt=e=>t=>{let{active:n,dragOverlay:r}=t;const o={},{styles:i,className:l}=e;if(null!=i&&i.active)for(const[e,t]of Object.entries(i.active))void 0!==t&&(o[e]=n.node.style.getPropertyValue(e),n.node.style.setProperty(e,t));if(null!=i&&i.dragOverlay)for(const[e,t]of Object.entries(i.dragOverlay))void 0!==t&&r.node.style.setProperty(e,t);return null!=l&&l.active&&n.node.classList.add(l.active),null!=l&&l.dragOverlay&&r.node.classList.add(l.dragOverlay),function(){for(const[e,t]of Object.entries(o))n.node.style.setProperty(e,t);null!=l&&l.active&&n.node.classList.remove(l.active)}},ot={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:i.Ks.Transform.toString(t)},{transform:i.Ks.Transform.toString(n)}]},sideEffects:rt({styles:{active:{opacity:"0"}}})};let it=0;function lt(e){return(0,r.useMemo)((()=>{if(null!=e)return it++,it}),[e])}const at=r.memo((e=>{let{adjustScale:t=!1,children:n,dropAnimation:o,style:l,transition:a,modifiers:s,wrapperElement:c="div",className:u,zIndex:d=999}=e;const{activatorEvent:f,active:p,activeNodeRect:h,containerNodeRect:g,draggableNodes:m,droppableContainers:v,dragOverlay:y,over:b,measuringConfiguration:x,scrollableAncestors:k,scrollableAncestorRects:w,windowRect:S}=Xe(),C=(0,r.useContext)(He),E=lt(null==p?void 0:p.id),I=Ue(s,{activatorEvent:f,active:p,activeNodeRect:h,containerNodeRect:g,draggingNodeRect:y.rect,over:b,overlayNodeRect:y.rect,scrollableAncestors:k,scrollableAncestorRects:w,transform:C,windowRect:S}),D=ke(h),T=function(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:o}=e;return(0,i._q)(((e,l)=>{if(null===t)return;const a=n.get(e);if(!a)return;const s=a.node.current;if(!s)return;const c=Oe(l);if(!c)return;const{transform:u}=(0,i.zk)(l).getComputedStyle(l),d=A(u);if(!d)return;const f="function"==typeof t?t:function(e){const{duration:t,easing:n,sideEffects:r,keyframes:o}={...ot,...e};return e=>{let{active:i,dragOverlay:l,transform:a,...s}=e;if(!t)return;const c=l.rect.left-i.rect.left,u=l.rect.top-i.rect.top,d={scaleX:1!==a.scaleX?i.rect.width*a.scaleX/l.rect.width:1,scaleY:1!==a.scaleY?i.rect.height*a.scaleY/l.rect.height:1},f={x:a.x-c,y:a.y-u,...d},p=o({...s,active:i,dragOverlay:l,transform:{initial:a,final:f}}),[h]=p,g=p[p.length-1];if(JSON.stringify(h)===JSON.stringify(g))return;const m=null==r?void 0:r({active:i,dragOverlay:l,...s}),v=l.node.animate(p,{duration:t,easing:n,fill:"forwards"});return new Promise((e=>{v.onfinish=()=>{null==m||m(),e()}}))}}(t);return X(s,o.draggable.measure),f({active:{id:e,data:a.data,node:s,rect:o.draggable.measure(s)},draggableNodes:n,dragOverlay:{node:l,rect:o.dragOverlay.measure(c)},droppableContainers:r,measuringConfiguration:o,transform:d})}))}({config:o,draggableNodes:m,droppableContainers:v,measuringConfiguration:x}),O=D?y.setRef:void 0;return r.createElement(Ze,null,r.createElement($e,{animation:T},p&&E?r.createElement(nt,{key:E,id:p.id,ref:O,as:c,activatorEvent:f,adjustScale:t,className:u,transition:a,rect:D,style:{zIndex:d,...l},transform:I},n):null))}))},43627(e,t,n){"use strict";n.d(t,{_G:()=>d,be:()=>l,gB:()=>h,gl:()=>k});var r=n(16072),o=n(82790),i=n(74979);function l(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function a(e,t){return e.reduce(((e,n,r)=>{const o=t.get(n);return o&&(e[r]=o),e}),Array(e.length))}function s(e){return null!==e&&e>=0}const c=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const i=l(t,r,n),a=t[o],s=i[o];return s&&a?{x:s.left-a.left,y:s.top-a.top,scaleX:s.width/a.width,scaleY:s.height/a.height}:null},u={scaleX:1,scaleY:1},d=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:o,rects:i,overIndex:l}=e;const a=null!=(t=i[n])?t:r;if(!a)return null;if(o===n){const e=i[l];return e?{x:0,y:n<l?e.top+e.height-(a.top+a.height):e.top-a.top,...u}:null}const s=function(e,t,n){const r=e[t],o=e[t-1],i=e[t+1];return r?n<t?o?r.top-(o.top+o.height):i?i.top-(r.top+r.height):0:i?i.top-(r.top+r.height):o?r.top-(o.top+o.height):0:0}(i,o,n);return o>n&&o<=l?{x:0,y:-a.height-s,...u}:o<n&&o>=l?{x:0,y:a.height+s,...u}:{x:0,y:0,...u}},f="Sortable",p=r.createContext({activeIndex:-1,containerId:f,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:c,disabled:{draggable:!1,droppable:!1}});function h(e){let{children:t,id:n,items:l,strategy:s=c,disabled:u=!1}=e;const{active:d,dragOverlay:h,droppableRects:g,over:m,measureDroppableContainers:v}=(0,o.fF)(),y=(0,i.YG)(f,n),b=Boolean(null!==h.rect),x=(0,r.useMemo)((()=>l.map((e=>"object"==typeof e&&"id"in e?e.id:e))),[l]),k=null!=d,w=d?x.indexOf(d.id):-1,S=m?x.indexOf(m.id):-1,C=(0,r.useRef)(x),E=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(x,C.current),I=-1!==S&&-1===w||E,D=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(u);(0,i.Es)((()=>{E&&k&&v(x)}),[E,x,k,v]),(0,r.useEffect)((()=>{C.current=x}),[x]);const T=(0,r.useMemo)((()=>({activeIndex:w,containerId:y,disabled:D,disableTransforms:I,items:x,overIndex:S,useDragOverlay:b,sortedRects:a(x,g),strategy:s})),[w,y,D.draggable,D.droppable,I,x,S,g,b,s]);return r.createElement(p.Provider,{value:T},t)}const g=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return l(n,r,o).indexOf(t)},m=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:i,newIndex:l,previousItems:a,previousContainerId:s,transition:c}=e;return!(!c||!r||a!==i&&o===l||!n&&(l===o||t!==s))},v={duration:200,easing:"ease"},y="transform",b=i.Ks.Transition.toString({property:y,duration:0,easing:"linear"}),x={roleDescription:"sortable"};function k(e){let{animateLayoutChanges:t=m,attributes:n,disabled:l,data:a,getNewIndex:c=g,id:u,strategy:d,resizeObserverConfig:f,transition:h=v}=e;const{items:k,containerId:w,activeIndex:S,disabled:C,disableTransforms:E,sortedRects:I,overIndex:D,useDragOverlay:T,strategy:O}=(0,r.useContext)(p),R=function(e,t){var n,r;return"boolean"==typeof e?{draggable:e,droppable:!1}:{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(r=null==e?void 0:e.droppable)?r:t.droppable}}(l,C),A=k.indexOf(u),P=(0,r.useMemo)((()=>({sortable:{containerId:w,index:A,items:k},...a})),[w,a,A,k]),N=(0,r.useMemo)((()=>k.slice(k.indexOf(u))),[k,u]),{rect:M,node:L,isOver:z,setNodeRef:F}=(0,o.zM)({id:u,data:P,disabled:R.droppable,resizeObserverConfig:{updateMeasurementsFor:N,...f}}),{active:j,activatorEvent:_,activeNodeRect:B,attributes:U,setNodeRef:H,listeners:V,isDragging:q,over:Y,setActivatorNodeRef:W,transform:K}=(0,o.PM)({id:u,data:P,attributes:{...x,...n},disabled:R.draggable}),X=(0,i.jn)(F,H),Q=Boolean(j),J=Q&&!E&&s(S)&&s(D),$=!T&&q,G=$&&J?K:null,Z=J?null!=G?G:(null!=d?d:O)({rects:I,activeNodeRect:B,activeIndex:S,overIndex:D,index:A}):null,ee=s(S)&&s(D)?c({id:u,items:k,activeIndex:S,overIndex:D}):A,te=null==j?void 0:j.id,ne=(0,r.useRef)({activeId:te,items:k,newIndex:ee,containerId:w}),re=k!==ne.current.items,oe=t({active:j,containerId:w,isDragging:q,isSorting:Q,id:u,index:A,items:k,newIndex:ne.current.newIndex,previousItems:ne.current.items,previousContainerId:ne.current.containerId,transition:h,wasDragging:null!=ne.current.activeId}),ie=function(e){let{disabled:t,index:n,node:l,rect:a}=e;const[s,c]=(0,r.useState)(null),u=(0,r.useRef)(n);return(0,i.Es)((()=>{if(!t&&n!==u.current&&l.current){const e=a.current;if(e){const t=(0,o.Sj)(l.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&c(n)}}n!==u.current&&(u.current=n)}),[t,n,l,a]),(0,r.useEffect)((()=>{s&&c(null)}),[s]),s}({disabled:!oe,index:A,node:L,rect:M});return(0,r.useEffect)((()=>{Q&&ne.current.newIndex!==ee&&(ne.current.newIndex=ee),w!==ne.current.containerId&&(ne.current.containerId=w),k!==ne.current.items&&(ne.current.items=k)}),[Q,ee,w,k]),(0,r.useEffect)((()=>{if(te===ne.current.activeId)return;if(null!=te&&null==ne.current.activeId)return void(ne.current.activeId=te);const e=setTimeout((()=>{ne.current.activeId=te}),50);return()=>clearTimeout(e)}),[te]),{active:j,activeIndex:S,attributes:U,data:P,rect:M,index:A,newIndex:ee,items:k,isOver:z,isSorting:Q,isDragging:q,listeners:V,node:L,overIndex:D,over:Y,setNodeRef:X,setActivatorNodeRef:W,setDroppableNodeRef:F,setDraggableNodeRef:H,transform:null!=ie?ie:Z,transition:ie||re&&ne.current.newIndex===A?b:$&&!(0,i.kx)(_)||!h?void 0:Q||oe?i.Ks.Transition.toString({...h,property:y}):void 0}}o.vL.Down,o.vL.Right,o.vL.Up,o.vL.Left},74979(e,t,n){"use strict";n.d(t,{$$:()=>g,Es:()=>p,KG:()=>v,Ks:()=>D,Ll:()=>a,Re:()=>C,Sw:()=>i,TW:()=>f,WQ:()=>S,YG:()=>k,YN:()=>m,ZC:()=>b,_q:()=>h,ag:()=>O,e_:()=>I,jn:()=>o,kx:()=>E,l6:()=>l,lk:()=>y,sb:()=>u,wz:()=>c,xZ:()=>d,zk:()=>s});var r=n(16072);function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useMemo)((()=>e=>{t.forEach((t=>t(e)))}),t)}const i="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function l(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function a(e){return"nodeType"in e}function s(e){var t,n;return e?l(e)?e:a(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function c(e){const{Document:t}=s(e);return e instanceof t}function u(e){return!l(e)&&e instanceof s(e).HTMLElement}function d(e){return e instanceof s(e).SVGElement}function f(e){return e?l(e)?e.document:a(e)?c(e)?e:u(e)||d(e)?e.ownerDocument:document:document:document}const p=i?r.useLayoutEffect:r.useEffect;function h(e){const t=(0,r.useRef)(e);return p((()=>{t.current=e})),(0,r.useCallback)((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}function g(){const e=(0,r.useRef)(null);return[(0,r.useCallback)(((t,n)=>{e.current=setInterval(t,n)}),[]),(0,r.useCallback)((()=>{null!==e.current&&(clearInterval(e.current),e.current=null)}),[])]}function m(e,t){void 0===t&&(t=[e]);const n=(0,r.useRef)(e);return p((()=>{n.current!==e&&(n.current=e)}),t),n}function v(e,t){const n=(0,r.useRef)();return(0,r.useMemo)((()=>{const t=e(n.current);return n.current=t,t}),[...t])}function y(e){const t=h(e),n=(0,r.useRef)(null),o=(0,r.useCallback)((e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e}),[]);return[n,o]}function b(e){const t=(0,r.useRef)();return(0,r.useEffect)((()=>{t.current=e}),[e]),t.current}let x={};function k(e,t){return(0,r.useMemo)((()=>{if(t)return t;const n=null==x[e]?0:x[e]+1;return x[e]=n,e+"-"+n}),[e,t])}function w(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce(((t,n)=>{const r=Object.entries(n);for(const[n,o]of r){const r=t[n];null!=r&&(t[n]=r+e*o)}return t}),{...t})}}const S=w(1),C=w(-1);function E(e){if(!e)return!1;const{KeyboardEvent:t}=s(e.target);return t&&e instanceof t}function I(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=s(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const D=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[D.Translate.toString(e),D.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),T="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function O(e){return e.matches(T)?e:e.querySelector(T)}},92849(e){"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},l=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},a=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},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,c,u,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(n in t)r=s(d,n),d!==(o=s(t,n))&&(h&&o&&(l(o)||(c=i(o)))?(c?(c=!1,u=r&&i(r)?r:[]):u=r&&l(r)?r:{},a(d,{name:n,newValue:e(h,u,o)})):void 0!==o&&a(d,{name:n,newValue:o}));return d}},19788(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,s=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(s,c):c}e.exports=function(e,s){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];s=s||{};var d=1,f=1;function p(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");f=~r?e.length-r:f+e.length}function h(){var e={line:d,column:f};return function(t){return t.position=new g(e),b(),t}}function g(e){this.start=e,this.end={line:d,column:f},this.source=s.source}g.prototype.content=e;var m=[];function v(t){var n=new Error(s.source+":"+d+":"+f+": "+t);if(n.reason=t,n.filename=s.source,n.line=d,n.column=f,n.source=e,!s.silent)throw n;m.push(n)}function y(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function b(){y(r)}function x(e){var t;for(e=e||[];t=k();)!1!==t&&e.push(t);return e}function k(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return v("End of comment missing");var r=e.slice(2,n-2);return f+=2,p(r),e=e.slice(n),f+=2,t({type:"comment",comment:r})}}function w(){var e=h(),n=y(o);if(n){if(k(),!y(i))return v("property missing ':'");var r=y(l),s=e({type:"declaration",property:u(n[0].replace(t,c)),value:r?u(r[0].replace(t,c)):c});return y(a),s}}return b(),function(){var e,t=[];for(x(t);e=w();)!1!==e&&(t.push(e),x(t));return t}()}},51133(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,o.default)(e),i="function"==typeof t;return r.forEach((function(e){if("declaration"===e.type){var r=e.property,o=e.value;i?t(r,o,e):o&&((n=n||{})[r]=o)}})),n};var o=r(n(19788))},241(e,t,n){"use strict";n.d(t,{A:()=>r});const r=n(41917).A.Symbol},76912(e,t,n){"use strict";n.d(t,{A:()=>r});const r=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},88496(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(241),o=Object.prototype,i=o.hasOwnProperty,l=o.toString,a=r.A?r.A.toStringTag:void 0;var s=Object.prototype.toString;var c=r.A?r.A.toStringTag:void 0;const u=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":c&&c in Object(e)?function(e){var t=i.call(e,a),n=e[a];try{e[a]=void 0;var r=!0}catch(e){}var o=l.call(e);return r&&(t?e[a]=n:delete e[a]),o}(e):function(e){return s.call(e)}(e)}},72136(e,t,n){"use strict";n.d(t,{A:()=>r});const r="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis},41917(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(72136),o="object"==typeof self&&self&&self.Object===Object&&self;const i=r.A||o||Function("return this")()},52274(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(88496),o=n(53098);const i=function(e){return(0,o.A)(e)&&"[object Arguments]"==(0,r.A)(e)};var l=Object.prototype,a=l.hasOwnProperty,s=l.propertyIsEnumerable,c=i(function(){return arguments}())?i:function(e){return(0,o.A)(e)&&a.call(e,"callee")&&!s.call(e,"callee")};const u=c},92049(e,t,n){"use strict";n.d(t,{A:()=>r});const r=Array.isArray},53098(e,t,n){"use strict";n.d(t,{A:()=>r});const r=function(e){return null!=e&&"object"==typeof e}},52327(e,t,n){"use strict";n.d(t,{o:()=>Cr});var r={};n.r(r),n.d(r,{boolean:()=>m,booleanish:()=>v,commaOrSpaceSeparated:()=>w,commaSeparated:()=>k,number:()=>b,overloadedBoolean:()=>y,spaceSeparated:()=>x});var o={};n.r(o),n.d(o,{attentionMarkers:()=>tn,contentInitial:()=>Qt,disable:()=>nn,document:()=>Xt,flow:()=>$t,flowInitial:()=>Jt,insideSpan:()=>en,string:()=>Gt,text:()=>Zt});const i=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,l=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,a={};function s(e,t){return((t||a).jsx?l:i).test(e)}const c=/[ \t\n\f\r]/g;function u(e){return""===e.replace(c,"")}class d{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function f(e,t){const n={},r={};let o=-1;for(;++o<e.length;)Object.assign(n,e[o].property),Object.assign(r,e[o].normal);return new d(n,r,t)}function p(e){return e.toLowerCase()}d.prototype.property={},d.prototype.normal={},d.prototype.space=null;class h{constructor(e,t){this.property=e,this.attribute=t}}h.prototype.space=null,h.prototype.boolean=!1,h.prototype.booleanish=!1,h.prototype.overloadedBoolean=!1,h.prototype.number=!1,h.prototype.commaSeparated=!1,h.prototype.spaceSeparated=!1,h.prototype.commaOrSpaceSeparated=!1,h.prototype.mustUseProperty=!1,h.prototype.defined=!1;let g=0;const m=S(),v=S(),y=S(),b=S(),x=S(),k=S(),w=S();function S(){return 2**++g}const C=Object.keys(r);class E extends h{constructor(e,t,n,o){let i=-1;if(super(e,t),I(this,"space",o),"number"==typeof n)for(;++i<C.length;){const e=C[i];I(this,C[i],(n&r[e])===r[e])}}}function I(e,t,n){n&&(e[t]=n)}E.prototype.defined=!0;const D={}.hasOwnProperty;function T(e){const t={},n={};let r;for(r in e.properties)if(D.call(e.properties,r)){const o=e.properties[r],i=new E(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[p(r)]=r,n[p(i.attribute)]=r}return new d(t,n,e.space)}const O=T({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),R=T({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function A(e,t){return t in e?e[t]:t}function P(e,t){return A(e,t.toLowerCase())}const N=T({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:P,properties:{xmlns:null,xmlnsXLink:null}}),M=T({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:v,ariaAutoComplete:null,ariaBusy:v,ariaChecked:v,ariaColCount:b,ariaColIndex:b,ariaColSpan:b,ariaControls:x,ariaCurrent:null,ariaDescribedBy:x,ariaDetails:null,ariaDisabled:v,ariaDropEffect:x,ariaErrorMessage:null,ariaExpanded:v,ariaFlowTo:x,ariaGrabbed:v,ariaHasPopup:null,ariaHidden:v,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:x,ariaLevel:b,ariaLive:null,ariaModal:v,ariaMultiLine:v,ariaMultiSelectable:v,ariaOrientation:null,ariaOwns:x,ariaPlaceholder:null,ariaPosInSet:b,ariaPressed:v,ariaReadOnly:v,ariaRelevant:null,ariaRequired:v,ariaRoleDescription:x,ariaRowCount:b,ariaRowIndex:b,ariaRowSpan:b,ariaSelected:v,ariaSetSize:b,ariaSort:null,ariaValueMax:b,ariaValueMin:b,ariaValueNow:b,ariaValueText:null,role:null}}),L=T({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:P,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:k,acceptCharset:x,accessKey:x,action:null,allow:null,allowFullScreen:m,allowPaymentRequest:m,allowUserMedia:m,alt:null,as:null,async:m,autoCapitalize:null,autoComplete:x,autoFocus:m,autoPlay:m,blocking:x,capture:null,charSet:null,checked:m,cite:null,className:x,cols:b,colSpan:null,content:null,contentEditable:v,controls:m,controlsList:x,coords:b|k,crossOrigin:null,data:null,dateTime:null,decoding:null,default:m,defer:m,dir:null,dirName:null,disabled:m,download:y,draggable:v,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:m,formTarget:null,headers:x,height:b,hidden:m,high:b,href:null,hrefLang:null,htmlFor:x,httpEquiv:x,id:null,imageSizes:null,imageSrcSet:null,inert:m,inputMode:null,integrity:null,is:null,isMap:m,itemId:null,itemProp:x,itemRef:x,itemScope:m,itemType:x,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:m,low:b,manifest:null,max:null,maxLength:b,media:null,method:null,min:null,minLength:b,multiple:m,muted:m,name:null,nonce:null,noModule:m,noValidate:m,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:m,optimum:b,pattern:null,ping:x,placeholder:null,playsInline:m,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:m,referrerPolicy:null,rel:x,required:m,reversed:m,rows:b,rowSpan:b,sandbox:x,scope:null,scoped:m,seamless:m,selected:m,shadowRootClonable:m,shadowRootDelegatesFocus:m,shadowRootMode:null,shape:null,size:b,sizes:null,slot:null,span:b,spellCheck:v,src:null,srcDoc:null,srcLang:null,srcSet:null,start:b,step:null,style:null,tabIndex:b,target:null,title:null,translate:null,type:null,typeMustMatch:m,useMap:null,value:v,width:b,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:x,axis:null,background:null,bgColor:null,border:b,borderColor:null,bottomMargin:b,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:m,declare:m,event:null,face:null,frame:null,frameBorder:null,hSpace:b,leftMargin:b,link:null,longDesc:null,lowSrc:null,marginHeight:b,marginWidth:b,noResize:m,noHref:m,noShade:m,noWrap:m,object:null,profile:null,prompt:null,rev:null,rightMargin:b,rules:null,scheme:null,scrolling:v,standby:null,summary:null,text:null,topMargin:b,valueType:null,version:null,vAlign:null,vLink:null,vSpace:b,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:m,disableRemotePlayback:m,prefix:null,property:null,results:b,security:null,unselectable:null}}),z=T({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:A,properties:{about:w,accentHeight:b,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:b,amplitude:b,arabicForm:null,ascent:b,attributeName:null,attributeType:null,azimuth:b,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:b,by:null,calcMode:null,capHeight:b,className:x,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:b,diffuseConstant:b,direction:null,display:null,dur:null,divisor:b,dominantBaseline:null,download:m,dx:null,dy:null,edgeMode:null,editable:null,elevation:b,enableBackground:null,end:null,event:null,exponent:b,externalResourcesRequired:null,fill:null,fillOpacity:b,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:k,g2:k,glyphName:k,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:b,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:b,horizOriginX:b,horizOriginY:b,id:null,ideographic:b,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:b,k:b,k1:b,k2:b,k3:b,k4:b,kernelMatrix:w,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:b,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:b,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:b,overlineThickness:b,paintOrder:null,panose1:null,path:null,pathLength:b,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:x,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:b,pointsAtY:b,pointsAtZ:b,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:w,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:w,rev:w,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:w,requiredFeatures:w,requiredFonts:w,requiredFormats:w,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:b,specularExponent:b,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:b,strikethroughThickness:b,string:null,stroke:null,strokeDashArray:w,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:b,strokeOpacity:b,strokeWidth:null,style:null,surfaceScale:b,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:w,tabIndex:b,tableValues:null,target:null,targetX:b,targetY:b,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:w,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:b,underlineThickness:b,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:b,values:null,vAlphabetic:b,vMathematical:b,vectorEffect:null,vHanging:b,vIdeographic:b,version:null,vertAdvY:b,vertOriginX:b,vertOriginY:b,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:b,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),F=f([R,O,N,M,L],"html"),j=f([R,O,N,M,z],"svg"),_=/^data[-\w.:]+$/i,B=/-[a-z]/g,U=/[A-Z]/g;function H(e){return"-"+e.toLowerCase()}function V(e){return e.charAt(1).toUpperCase()}const q={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 Y=n(51133);const W=Y.default||Y,K=Q("end"),X=Q("start");function Q(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function J(e){return e&&"object"==typeof e?"position"in e||"type"in e?G(e.position):"start"in e||"end"in e?G(e):"line"in e||"column"in e?$(e):"":""}function $(e){return Z(e&&e.line)+":"+Z(e&&e.column)}function G(e){return $(e&&e.start)+"-"+$(e&&e.end)}function Z(e){return e&&"number"==typeof e?e:1}class ee extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",o={},i=!1;if(t&&(o="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!o.cause&&e&&(i=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?o.ruleId=n:(o.source=n.slice(0,e),o.ruleId=n.slice(e+1))}if(!o.place&&o.ancestors&&o.ancestors){const e=o.ancestors[o.ancestors.length-1];e&&(o.place=e.position)}const l=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=l?l.line:void 0,this.name=J(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=i&&o.cause&&"string"==typeof o.cause.stack?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}ee.prototype.file="",ee.prototype.name="",ee.prototype.reason="",ee.prototype.message="",ee.prototype.stack="",ee.prototype.column=void 0,ee.prototype.line=void 0,ee.prototype.ancestors=void 0,ee.prototype.cause=void 0,ee.prototype.fatal=void 0,ee.prototype.place=void 0,ee.prototype.ruleId=void 0,ee.prototype.source=void 0;const te={}.hasOwnProperty,ne=new Map,re=/[A-Z]/g,oe=/-([a-z])/g,ie=new Set(["table","tbody","thead","tfoot","tr"]),le=new Set(["td","th"]),ae="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function se(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(o=j,e.schema=o),e.ancestors.push(t);const i=pe(e,t.tagName,!1),l=function(e,t){const n={};let r,o;for(o in t.properties)if("children"!==o&&te.call(t.properties,o)){const i=fe(e,o,t.properties[o]);if(i){const[o,l]=i;e.tableCellAlignToStyle&&"align"===o&&"string"==typeof l&&le.has(t.tagName)?r=l:n[o]=l}}return r&&((n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r),n}(e,t);let a=de(e,t);return ie.has(t.tagName)&&(a=a.filter((function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&u(t.value):u(t));var t}))),ce(e,l,i,t),ue(l,a),e.ancestors.pop(),e.schema=r,e.create(t,i,l,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}he(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.name&&"html"===r.space&&(o=j,e.schema=o),e.ancestors.push(t);const i=null===t.name?e.Fragment:pe(e,t.name,!0),l=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];t.type;const o=t.expression;o.type;const i=o.properties[0];i.type,Object.assign(n,e.evaluater.evaluateExpression(i.argument))}else he(e,t.position);else{const o=r.name;let i;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];t.type,i=e.evaluater.evaluateExpression(t.expression)}else he(e,t.position);else i=null===r.value||r.value;n[o]=i}return n}(e,t),a=de(e,t);return ce(e,l,i,t),ue(l,a),e.ancestors.pop(),e.schema=r,e.create(t,i,l,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);he(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return ue(r,de(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function ce(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function ue(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function de(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:ne;for(;++r<t.children.length;){const i=t.children[r];let l;if(e.passKeys){const e="element"===i.type?i.tagName:"mdxJsxFlowElement"===i.type||"mdxJsxTextElement"===i.type?i.name:void 0;if(e){const t=o.get(e)||0;l=e+"-"+t,o.set(e,t+1)}}const a=se(e,i,l);void 0!==a&&n.push(a)}return n}function fe(e,t,n){const r=function(e,t){const n=p(t);let r=t,o=h;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&_.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(B,V);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!B.test(e)){let n=e.replace(U,H);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=E}return new o(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e){const t={};return(""===e[e.length-1]?[...e,""]:e).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){const n={};try{W(t,(function(e,t){let r=e;"--"!==r.slice(0,2)&&("-ms-"===r.slice(0,4)&&(r="ms-"+r.slice(4)),r=r.replace(oe,me)),n[r]=t}))}catch(t){if(!e.ignoreInvalidStyle){const n=t,r=new ee("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=ae+"#cannot-parse-style-attribute",r}}return n}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)te.call(e,n)&&(t[ge(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?q[r.property]||r.property:r.attribute,n]}}function pe(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,o=-1;for(;++o<e.length;){const t=s(e[o])?{type:"Identifier",name:e[o]}:{type:"Literal",value:e[o]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(o&&"Literal"===t.type),optional:!1}:t}r=n}else r=s(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return te.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);he(e)}function he(e,t){const n=new ee("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=ae+"#cannot-handle-mdx-estrees-without-createevaluater",n}function ge(e){let t=e.replace(re,ve);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function me(e,t){return t.toUpperCase()}function ve(e){return"-"+e.toLowerCase()}const ye={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};var be=n(74848);const xe={};function ke(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return we(e.children,t,n)}return Array.isArray(e)?we(e,t,n):""}function we(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=ke(e[o],t,n);return r.join("")}function Se(e,t,n,r){const o=e.length;let i,l=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);l<r.length;)i=r.slice(l,l+1e4),i.unshift(t,0),e.splice(...i),l+=1e4,t+=1e4}function Ce(e,t){return e.length>0?(Se(e,e.length,0,t),e):t}class Ee{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const o=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&Ie(this.left,n),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),Ie(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Ie(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);Ie(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);Ie(this.left,t.reverse())}}}function Ie(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function De(e){const t={};let n,r,o,i,l,a,s,c=-1;const u=new Ee(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(n=u.get(c),c&&"chunkFlow"===n[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(a=n[1]._tokenizer.events,o=0,o<a.length&&"lineEndingBlank"===a[o][1].type&&(o+=2),o<a.length&&"content"===a[o][1].type))for(;++o<a.length&&"content"!==a[o][1].type;)"chunkText"===a[o][1].type&&(a[o][1]._isInFirstContentOfListItem=!0,o++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,Te(u,c)),c=t[c],s=!0);else if(n[1]._container){for(o=c,r=void 0;o--&&(i=u.get(o),"lineEnding"===i[1].type||"lineEndingBlank"===i[1].type);)"enter"===i[0]&&(r&&(u.get(r)[1].type="lineEndingBlank"),i[1].type="lineEnding",r=o);r&&(n[1].end=Object.assign({},u.get(r)[1].start),l=u.slice(r,c),l.unshift(n),u.splice(r,c-r+1,l))}}return Se(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!s}function Te(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const i=[],l=n._tokenizer||r.parser[n.contentType](n.start),a=l.events,s=[],c={};let u,d,f=-1,p=n,h=0,g=0;const m=[g];for(;p;){for(;e.get(++o)[1]!==p;);i.push(o),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&l.defineSkip(p.start),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(u),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<a.length;)"exit"===a[f][0]&&"enter"===a[f-1][0]&&a[f][1].type===a[f-1][1].type&&a[f][1].start.line!==a[f][1].end.line&&(g=f+1,m.push(g),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(l.events=[],p?(p._tokenizer=void 0,p.previous=void 0):m.pop(),f=m.length;f--;){const t=a.slice(m[f],m[f+1]),n=i.pop();s.push([n,n+t.length-1]),e.splice(n,2,t)}for(s.reverse(),f=-1;++f<s.length;)c[h+s[f][0]]=h+s[f][1],h+=s[f][1]-s[f][0]-1;return c}const Oe={}.hasOwnProperty;function Re(e,t){let n;for(n in t){const r=(Oe.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let i;if(o)for(i in o){Oe.call(r,i)||(r[i]=[]);const e=o[i];Ae(r[i],Array.isArray(e)?e:e?[e]:[])}}}function Ae(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);Se(e,0,0,r)}const Pe=qe(/[A-Za-z]/),Ne=qe(/[\dA-Za-z]/),Me=qe(/[#-'*+\--9=?A-Z^-~]/);function Le(e){return null!==e&&(e<32||127===e)}const ze=qe(/\d/),Fe=qe(/[\dA-Fa-f]/),je=qe(/[!-/:-@[-`{-~]/);function _e(e){return null!==e&&e<-2}function Be(e){return null!==e&&(e<0||32===e)}function Ue(e){return-2===e||-1===e||32===e}const He=qe(/\p{P}|\p{S}/u),Ve=qe(/\s/);function qe(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function Ye(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(r){return Ue(r)?(e.enter(n),l(r)):t(r)};function l(r){return Ue(r)&&i++<o?(e.consume(r),l):(e.exit(n),t(r))}}const We={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,(function(n){if(null!==n)return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Ye(e,t,"linePrefix");e.consume(n)}),(function(t){return e.enter("paragraph"),r(t)}));let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):_e(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),o)}}},Ke={tokenize:function(e){const t=this,n=[];let r,o,i,l=0;return a;function a(r){if(l<n.length){const o=n[l];return t.containerState=o[1],e.attempt(o[0].continuation,s,c)(r)}return c(r)}function s(e){if(l++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&y();const n=t.events.length;let o,i=n;for(;i--;)if("exit"===t.events[i][0]&&"chunkFlow"===t.events[i][1].type){o=t.events[i][1].end;break}v(l);let a=n;for(;a<t.events.length;)t.events[a][1].end=Object.assign({},o),a++;return Se(t.events,i+1,0,t.events.slice(n)),t.events.length=a,c(e)}return a(e)}function c(o){if(l===n.length){if(!r)return f(o);if(r.currentConstruct&&r.currentConstruct.concrete)return h(o);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Xe,u,d)(o)}function u(e){return r&&y(),v(l),f(e)}function d(e){return t.parser.lazy[t.now().line]=l!==n.length,i=t.now().offset,h(e)}function f(n){return t.containerState={},e.attempt(Xe,p,h)(n)}function p(e){return l++,n.push([t.currentConstruct,t.containerState]),f(e)}function h(n){return null===n?(r&&y(),v(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:o,_tokenizer:r}),g(n))}function g(n){return null===n?(m(e.exit("chunkFlow"),!0),v(0),void e.consume(n)):_e(n)?(e.consume(n),m(e.exit("chunkFlow")),l=0,t.interrupt=void 0,a):(e.consume(n),g)}function m(e,n){const a=t.sliceStream(e);if(n&&a.push(null),e.previous=o,o&&(o.next=e),o=e,r.defineSkip(e.start),r.write(a),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<i&&(!r.events[e][1].end||r.events[e][1].end.offset>i))return;const n=t.events.length;let o,a,s=n;for(;s--;)if("exit"===t.events[s][0]&&"chunkFlow"===t.events[s][1].type){if(o){a=t.events[s][1].end;break}o=!0}for(v(l),e=n;e<t.events.length;)t.events[e][1].end=Object.assign({},a),e++;Se(t.events,s+1,0,t.events.slice(n)),t.events.length=e}}function v(r){let o=n.length;for(;o-- >r;){const r=n[o];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function y(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},Xe={tokenize:function(e,t,n){return Ye(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},Qe={tokenize:function(e,t,n){return function(t){return Ue(t)?Ye(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||_e(e)?t(e):n(e)}},partial:!0},Je={tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?o(t):_e(t)?e.check($e,i,o)(t):(e.consume(t),r)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}},resolve:function(e){return De(e),e}},$e={tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Ye(e,o,"linePrefix")};function o(o){if(null===o||_e(o))return n(o);const i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}},partial:!0},Ge={tokenize:function(e){const t=this,n=e.attempt(Qe,(function(r){if(null!==r)return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n;e.consume(r)}),e.attempt(this.parser.constructs.flowInitial,r,Ye(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Je,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}},Ze={resolveAll:rt()},et=nt("string"),tt=nt("text");function nt(e){return{tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,i,l);return i;function i(e){return s(e)?o(e):l(e)}function l(e){if(null!==e)return t.enter("data"),t.consume(e),a;t.consume(e)}function a(e){return s(e)?(t.exit("data"),o(e)):(t.consume(e),a)}function s(e){if(null===e)return!0;const t=r[e];let o=-1;if(t)for(;++o<t.length;){const e=t[o];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}},resolveAll:rt("text"===e?ot:void 0)}}function rt(e){return function(t,n){let r,o=-1;for(;++o<=t.length;)void 0===r?t[o]&&"data"===t[o][1].type&&(r=o,o++):t[o]&&"data"===t[o][1].type||(o!==r+2&&(t[r][1].end=t[o-1][1].end,t.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(t,n):t}}function ot(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],o=t.sliceStream(r);let i,l=o.length,a=-1,s=0;for(;l--;){const e=o[l];if("string"==typeof e){for(a=e.length;32===e.charCodeAt(a-1);)s++,a--;if(a)break;a=-1}else if(-2===e)i=!0,s++;else if(-1!==e){l++;break}}if(s){const o={type:n===e.length||i||s<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-s,offset:r.end.offset-s,_index:r.start._index+l,_bufferIndex:l?a:r.start._bufferIndex+a},end:Object.assign({},r.end)};r.end=Object.assign({},o.start),r.start.offset===r.end.offset?Object.assign(r,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}function it(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}function lt(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const o={},i=[];let l=[],a=[],s=!0;const c={consume:function(e){_e(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,b()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=e,s=!0},enter:function(e,t){const n=t||{};return n.type=e,n.start=h(),u.events.push(["enter",n,u]),a.push(n),n},exit:function(e){const t=a.pop();return t.end=h(),u.events.push(["exit",t,u]),t},attempt:v((function(e,t){y(e,t.from)})),check:v(m),interrupt:v(m,{interrupt:!0})},u={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:p,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const i=e[n];let l;if("string"==typeof i)l=i;else switch(i){case-5:l="\r";break;case-4:l="\n";break;case-3:l="\r\n";break;case-2:l=t?" ":"\t";break;case-1:if(!t&&o)continue;l=" ";break;default:l=String.fromCharCode(i)}o=-2===i,r.push(l)}return r.join("")}(p(e),t)},now:h,defineSkip:function(e){o[e.line]=e.column,b()},write:function(e){return l=Ce(l,e),function(){let e;for(;r._index<l.length;){const t=l[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)g(t.charCodeAt(r._bufferIndex));else g(t)}}(),null!==l[l.length-1]?[]:(y(t,0),u.events=it(i,u.events,u),u.events)}};let d,f=t.tokenize.call(u,c);return t.resolveAll&&i.push(t),u;function p(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let l;if(n===o)l=[e[n].slice(r,i)];else{if(l=e.slice(n,o),r>-1){const e=l[0];"string"==typeof e?l[0]=e.slice(r):l.shift()}i>0&&l.push(e[o].slice(0,i))}return l}(l,e)}function h(){const{line:e,column:t,offset:n,_index:o,_bufferIndex:i}=r;return{line:e,column:t,offset:n,_index:o,_bufferIndex:i}}function g(e){s=void 0,d=e,f=f(e)}function m(e,t){t.restore()}function v(e,t){return function(n,o,i){let l,d,f,p;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):(g=n,function(e){const t=null!==e&&g[e],n=null!==e&&g.null;return m([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});var g;function m(e){return l=e,d=0,0===e.length?i:v(e[d])}function v(e){return function(n){return p=function(){const e=h(),t=u.previous,n=u.currentConstruct,o=u.events.length,i=Array.from(a);return{restore:function(){r=e,u.previous=t,u.currentConstruct=n,u.events.length=o,a=i,b()},from:o}}(),f=e,e.partial||(u.currentConstruct=e),e.name&&u.parser.constructs.disable.null.includes(e.name)?x():e.tokenize.call(t?Object.assign(Object.create(u),t):u,c,y,x)(n)}}function y(t){return s=!0,e(f,p),o}function x(e){return s=!0,p.restore(),++d<l.length?v(l[d]):i}}}function y(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&Se(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function b(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}const at={name:"thematicBreak",tokenize:function(e,t,n){let r,o=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,i(e)}(t)};function i(i){return i===r?(e.enter("thematicBreakSequence"),l(i)):o>=3&&(null===i||_e(i))?(e.exit("thematicBreak"),t(i)):n(i)}function l(t){return t===r?(e.consume(t),o++,l):(e.exit("thematicBreakSequence"),Ue(t)?Ye(e,i,"whitespace")(t):i(t))}}},st={name:"list",tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,l=0;return function(t){const o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:ze(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(at,n,s)(t):s(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(t)}return n(t)};function a(t){return ze(t)&&++l<10?(e.consume(t),a):(!r.interrupt||l<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),s(t)):n(t)}function s(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(Qe,r.interrupt?n:c,e.attempt(ct,d,u))}function c(e){return r.containerState.initialBlankLine=!0,i++,d(e)}function u(t){return Ue(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Qe,(function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ye(e,t,"listItemIndent",r.containerState.size+1)(n)}),(function(n){return r.containerState.furtherBlankLines||!Ue(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(ut,t,o)(n))}));function o(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ye(e,e.attempt(st,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)}},ct={tokenize:function(e,t,n){const r=this;return Ye(e,(function(e){const o=r.events[r.events.length-1];return!Ue(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},ut={tokenize:function(e,t,n){const r=this;return Ye(e,(function(e){const o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)},partial:!0},dt={name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const 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"),o}return n(t)};function o(n){return Ue(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){const r=this;return function(t){return Ue(t)?Ye(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):o(t)};function o(r){return e.attempt(dt,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};function ft(e,t,n,r,o,i,l,a,s){const c=s||Number.POSITIVE_INFINITY;let u=0;return function(t){return 60===t?(e.enter(r),e.enter(o),e.enter(i),e.consume(t),e.exit(i),d):null===t||32===t||41===t||Le(t)?n(t):(e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),h(t))};function d(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),f(n))}function f(t){return 62===t?(e.exit("chunkString"),e.exit(a),d(t)):null===t||60===t||_e(t)?n(t):(e.consume(t),92===t?p:f)}function p(t){return 60===t||62===t||92===t?(e.consume(t),f):f(t)}function h(o){return u||null!==o&&41!==o&&!Be(o)?u<c&&40===o?(e.consume(o),u++,h):41===o?(e.consume(o),u--,h):null===o||32===o||40===o||Le(o)?n(o):(e.consume(o),92===o?g:h):(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(r),t(o))}function g(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function pt(e,t,n,r,o,i){const l=this;let a,s=0;return function(t){return e.enter(r),e.enter(o),e.consume(t),e.exit(o),e.enter(i),c};function c(d){return s>999||null===d||91===d||93===d&&!a||94===d&&!s&&"_hiddenFootnoteSupport"in l.parser.constructs?n(d):93===d?(e.exit(i),e.enter(o),e.consume(d),e.exit(o),e.exit(r),t):_e(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||_e(t)||s++>999?(e.exit("chunkString"),c(t)):(e.consume(t),a||(a=!Ue(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}}function ht(e,t,n,r,o,i){let l;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(o),e.consume(t),e.exit(o),l=40===t?41:t,a):n(t)};function a(n){return n===l?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(i),s(n))}function s(t){return t===l?(e.exit(i),a(l)):null===t?n(t):_e(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Ye(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===l||null===t||_e(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?u:c)}function u(t){return t===l||92===t?(e.consume(t),c):c(t)}}function gt(e,t){let n;return function r(o){return _e(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):Ue(o)?Ye(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}function mt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const vt={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("definition"),function(t){return pt.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return o=mt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),l):n(t)}function l(t){return Be(t)?gt(e,a)(t):a(t)}function a(t){return ft(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(yt,c,c)(t)}function c(t){return Ue(t)?Ye(e,u,"whitespace")(t):u(t)}function u(i){return null===i||_e(i)?(e.exit("definition"),r.parser.defined.push(o),t(i)):n(i)}}},yt={tokenize:function(e,t,n){return function(t){return Be(t)?gt(e,r)(t):n(t)};function r(t){return ht(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return Ue(t)?Ye(e,i,"whitespace")(t):i(t)}function i(e){return null===e||_e(e)?t(e):n(e)}},partial:!0},bt={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),Ye(e,o,"linePrefix",5)(t)};function o(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?i(e):n(e)}function i(t){return null===t?a(t):_e(t)?e.attempt(xt,i,a)(t):(e.enter("codeFlowValue"),l(t))}function l(t){return null===t||_e(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),l)}function a(n){return e.exit("codeIndented"),t(n)}}},xt={tokenize:function(e,t,n){const r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):_e(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):Ye(e,i,"linePrefix",5)(t)}function i(e){const i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):_e(e)?o(e):n(e)}},partial:!0},kt={name:"headingAtx",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){return 35===t&&r++<6?(e.consume(t),o):null===t||Be(t)?(e.exit("atxHeadingSequence"),i(t)):n(t)}function i(n){return 35===n?(e.enter("atxHeadingSequence"),l(n)):null===n||_e(n)?(e.exit("atxHeading"),t(n)):Ue(n)?Ye(e,i,"whitespace")(n):(e.enter("atxHeadingText"),a(n))}function l(t){return 35===t?(e.consume(t),l):(e.exit("atxHeadingSequence"),i(t))}function a(t){return null===t||35===t||Be(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),a)}},resolve:function(e,t){let n,r,o=e.length-2,i=3;return"whitespace"===e[i][1].type&&(i+=2),o-2>i&&"whitespace"===e[o][1].type&&(o-=2),"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4),o>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},Se(e,i,o-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e}},wt={name:"setextUnderline",tokenize:function(e,t,n){const r=this;let o;return function(t){let l,a=r.events.length;for(;a--;)if("lineEnding"!==r.events[a][1].type&&"linePrefix"!==r.events[a][1].type&&"content"!==r.events[a][1].type){l="paragraph"===r.events[a][1].type;break}return r.parser.lazy[r.now().line]||!r.interrupt&&!l?n(t):(e.enter("setextHeadingLine"),o=t,function(t){return e.enter("setextHeadingLineSequence"),i(t)}(t))};function i(t){return t===o?(e.consume(t),i):(e.exit("setextHeadingLineSequence"),Ue(t)?Ye(e,l,"lineSuffix")(t):l(t))}function l(r){return null===r||_e(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);const l={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",l,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[o][1].end)):e[n][1]=l,e.push(["exit",l,t]),e}},St=["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"],Ct=["pre","script","style","textarea"],Et={name:"htmlFlow",tokenize:function(e,t,n){const r=this;let o,i,l,a,s;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(a){return 33===a?(e.consume(a),u):47===a?(e.consume(a),i=!0,p):63===a?(e.consume(a),o=3,r.interrupt?t:M):Pe(a)?(e.consume(a),l=String.fromCharCode(a),h):n(a)}function u(i){return 45===i?(e.consume(i),o=2,d):91===i?(e.consume(i),o=5,a=0,f):Pe(i)?(e.consume(i),o=4,r.interrupt?t:M):n(i)}function d(o){return 45===o?(e.consume(o),r.interrupt?t:M):n(o)}function f(o){return o==="CDATA[".charCodeAt(a++)?(e.consume(o),6===a?r.interrupt?t:I:f):n(o)}function p(t){return Pe(t)?(e.consume(t),l=String.fromCharCode(t),h):n(t)}function h(a){if(null===a||47===a||62===a||Be(a)){const s=47===a,c=l.toLowerCase();return s||i||!Ct.includes(c)?St.includes(l.toLowerCase())?(o=6,s?(e.consume(a),g):r.interrupt?t(a):I(a)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(a):i?m(a):v(a)):(o=1,r.interrupt?t(a):I(a))}return 45===a||Ne(a)?(e.consume(a),l+=String.fromCharCode(a),h):n(a)}function g(o){return 62===o?(e.consume(o),r.interrupt?t:I):n(o)}function m(t){return Ue(t)?(e.consume(t),m):C(t)}function v(t){return 47===t?(e.consume(t),C):58===t||95===t||Pe(t)?(e.consume(t),y):Ue(t)?(e.consume(t),v):C(t)}function y(t){return 45===t||46===t||58===t||95===t||Ne(t)?(e.consume(t),y):b(t)}function b(t){return 61===t?(e.consume(t),x):Ue(t)?(e.consume(t),b):v(t)}function x(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,k):Ue(t)?(e.consume(t),x):w(t)}function k(t){return t===s?(e.consume(t),s=null,S):null===t||_e(t)?n(t):(e.consume(t),k)}function w(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||Be(t)?b(t):(e.consume(t),w)}function S(e){return 47===e||62===e||Ue(e)?v(e):n(e)}function C(t){return 62===t?(e.consume(t),E):n(t)}function E(t){return null===t||_e(t)?I(t):Ue(t)?(e.consume(t),E):n(t)}function I(t){return 45===t&&2===o?(e.consume(t),R):60===t&&1===o?(e.consume(t),A):62===t&&4===o?(e.consume(t),L):63===t&&3===o?(e.consume(t),M):93===t&&5===o?(e.consume(t),N):!_e(t)||6!==o&&7!==o?null===t||_e(t)?(e.exit("htmlFlowData"),D(t)):(e.consume(t),I):(e.exit("htmlFlowData"),e.check(It,z,D)(t))}function D(t){return e.check(Dt,T,z)(t)}function T(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),O}function O(t){return null===t||_e(t)?D(t):(e.enter("htmlFlowData"),I(t))}function R(t){return 45===t?(e.consume(t),M):I(t)}function A(t){return 47===t?(e.consume(t),l="",P):I(t)}function P(t){if(62===t){const n=l.toLowerCase();return Ct.includes(n)?(e.consume(t),L):I(t)}return Pe(t)&&l.length<8?(e.consume(t),l+=String.fromCharCode(t),P):I(t)}function N(t){return 93===t?(e.consume(t),M):I(t)}function M(t){return 62===t?(e.consume(t),L):45===t&&2===o?(e.consume(t),M):I(t)}function L(t){return null===t||_e(t)?(e.exit("htmlFlowData"),z(t)):(e.consume(t),L)}function z(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},It={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Qe,t,n)}},partial:!0},Dt={tokenize:function(e,t,n){const r=this;return function(t){return _e(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},Tt={tokenize:function(e,t,n){const r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},Ot={name:"codeFenced",tokenize:function(e,t,n){const r=this,o={tokenize:function(e,t,n){let o=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l};function l(t){return e.enter("codeFencedFence"),Ue(t)?Ye(e,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):s(t)}function s(t){return t===i?(e.enter("codeFencedFenceSequence"),c(t)):n(t)}function c(t){return t===i?(o++,e.consume(t),c):o>=a?(e.exit("codeFencedFenceSequence"),Ue(t)?Ye(e,u,"whitespace")(t):u(t)):n(t)}function u(r){return null===r||_e(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0};let i,l=0,a=0;return function(t){return function(t){const n=r.events[r.events.length-1];return l=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,i=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s(t)}(t)};function s(t){return t===i?(a++,e.consume(t),s):a<3?n(t):(e.exit("codeFencedFenceSequence"),Ue(t)?Ye(e,c,"whitespace")(t):c(t))}function c(n){return null===n||_e(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(Tt,p,y)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||_e(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):Ue(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ye(e,d,"whitespace")(t)):96===t&&t===i?n(t):(e.consume(t),u)}function d(t){return null===t||_e(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),f(t))}function f(t){return null===t||_e(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===i?n(t):(e.consume(t),f)}function p(t){return e.attempt(o,y,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),g}function g(t){return l>0&&Ue(t)?Ye(e,m,"linePrefix",l+1)(t):m(t)}function m(t){return null===t||_e(t)?e.check(Tt,p,y)(t):(e.enter("codeFlowValue"),v(t))}function v(t){return null===t||_e(t)?(e.exit("codeFlowValue"),m(t)):(e.consume(t),v)}function y(n){return e.exit("codeFenced"),t(n)}},concrete:!0},Rt=document.createElement("i");function At(e){const t="&"+e+";";Rt.innerHTML=t;const n=Rt.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}const Pt={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,i,l=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),a};function a(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),o=31,i=Ne,c(t))}function s(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=Fe,c):(e.enter("characterReferenceValue"),o=7,i=ze,c(t))}function c(a){if(59===a&&l){const o=e.exit("characterReferenceValue");return i!==Ne||At(r.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(a)}return i(a)&&l++<o?(e.consume(a),c):n(a)}}},Nt={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return je(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},Mt={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Ye(e,t,"linePrefix")}}},Lt={name:"labelEnd",tokenize:function(e,t,n){const r=this;let o,i,l=r.events.length;for(;l--;)if(("labelImage"===r.events[l][1].type||"labelLink"===r.events[l][1].type)&&!r.events[l][1]._balanced){o=r.events[l][1];break}return function(t){return o?o._inactive?u(t):(i=r.parser.defined.includes(mt(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),a):n(t)};function a(t){return 40===t?e.attempt(zt,c,i?c:u)(t):91===t?e.attempt(Ft,c,i?s:u)(t):i?c(t):u(t)}function s(t){return e.attempt(jt,c,u)(t)}function c(e){return t(e)}function u(e){return o._balanced=!0,n(e)}},resolveTo:function(e,t){let n,r,o,i,l=e.length,a=0;for(;l--;)if(n=e[l][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[l][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(o){if("enter"===e[l][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=l,"labelLink"!==n.type)){a=2;break}}else"labelEnd"===n.type&&(o=l);const s={type:"labelLink"===e[r][1].type?"link":"image",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[r][1].start),end:Object.assign({},e[o][1].end)},u={type:"labelText",start:Object.assign({},e[r+a+2][1].end),end:Object.assign({},e[o-2][1].start)};return i=[["enter",s,t],["enter",c,t]],i=Ce(i,e.slice(r+1,r+a+3)),i=Ce(i,[["enter",u,t]]),i=Ce(i,it(t.parser.constructs.insideSpan.null,e.slice(r+a+4,o-3),t)),i=Ce(i,[["exit",u,t],e[o-2],e[o-1],["exit",c,t]]),i=Ce(i,e.slice(o+1)),i=Ce(i,[["exit",s,t]]),Se(e,r,e.length,i),e},resolveAll:function(e){let t=-1;for(;++t<e.length;){const n=e[t][1];"labelImage"!==n.type&&"labelLink"!==n.type&&"labelEnd"!==n.type||(e.splice(t+1,"labelImage"===n.type?4:2),n.type="data",t++)}return e}},zt={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return Be(t)?gt(e,o)(t):o(t)}function o(t){return 41===t?c(t):ft(e,i,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return Be(t)?gt(e,a)(t):c(t)}function l(e){return n(e)}function a(t){return 34===t||39===t||40===t?ht(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function s(t){return Be(t)?gt(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},Ft={tokenize:function(e,t,n){const r=this;return function(t){return pt.call(r,e,o,i,"reference","referenceMarker","referenceString")(t)};function o(e){return r.parser.defined.includes(mt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function i(e){return n(e)}}},jt={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},_t={name:"labelStartImage",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),o};function o(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),i):n(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:Lt.resolveAll};function Bt(e){return null===e||Be(e)||Ve(e)?1:He(e)?2:void 0}const Ut={name:"attention",tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=Bt(r);let i;return function(t){return i=t,e.enter("attentionSequence"),l(t)};function l(a){if(a===i)return e.consume(a),l;const s=e.exit("attentionSequence"),c=Bt(a),u=!c||2===c&&o||n.includes(a),d=!o||2===o&&c||n.includes(r);return s._open=Boolean(42===i?u:u&&(o||!d)),s._close=Boolean(42===i?d:d&&(c||!u)),t(a)}},resolveAll:function(e,t){let n,r,o,i,l,a,s,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;a=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d=Object.assign({},e[n][1].end),f=Object.assign({},e[u][1].start);Ht(d,-a),Ht(f,a),i={type:a>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[n][1].end)},l={type:a>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[u][1].start),end:f},o={type:a>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[u][1].start)},r={type:a>1?"strong":"emphasis",start:Object.assign({},i.start),end:Object.assign({},l.end)},e[n][1].end=Object.assign({},i.start),e[u][1].start=Object.assign({},l.end),s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=Ce(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=Ce(s,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),s=Ce(s,it(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),s=Ce(s,[["exit",o,t],["enter",l,t],["exit",l,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,s=Ce(s,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,Se(e,n-1,u-n+3,s),u=n+s.length-c-2;break}for(u=-1;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e}};function Ht(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Vt={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"),o};function o(t){return Pe(t)?(e.consume(t),i):64===t?n(t):s(t)}function i(e){return 43===e||45===e||46===e||Ne(e)?(r=1,l(e)):s(e)}function l(t){return 58===t?(e.consume(t),r=0,a):(43===t||45===t||46===t||Ne(t))&&r++<32?(e.consume(t),l):(r=0,s(t))}function a(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||Le(r)?n(r):(e.consume(r),a)}function s(t){return 64===t?(e.consume(t),c):Me(t)?(e.consume(t),s):n(t)}function c(e){return Ne(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||Ne(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}},qt={name:"htmlText",tokenize:function(e,t,n){const r=this;let o,i,l;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),a};function a(t){return 33===t?(e.consume(t),s):47===t?(e.consume(t),x):63===t?(e.consume(t),y):Pe(t)?(e.consume(t),S):n(t)}function s(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,p):Pe(t)?(e.consume(t),v):n(t)}function c(t){return 45===t?(e.consume(t),f):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):_e(t)?(l=u,P(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),f):u(t)}function f(e){return 62===e?A(e):45===e?d(e):u(e)}function p(t){return t==="CDATA[".charCodeAt(i++)?(e.consume(t),6===i?h:p):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),g):_e(t)?(l=h,P(t)):(e.consume(t),h)}function g(t){return 93===t?(e.consume(t),m):h(t)}function m(t){return 62===t?A(t):93===t?(e.consume(t),m):h(t)}function v(t){return null===t||62===t?A(t):_e(t)?(l=v,P(t)):(e.consume(t),v)}function y(t){return null===t?n(t):63===t?(e.consume(t),b):_e(t)?(l=y,P(t)):(e.consume(t),y)}function b(e){return 62===e?A(e):y(e)}function x(t){return Pe(t)?(e.consume(t),k):n(t)}function k(t){return 45===t||Ne(t)?(e.consume(t),k):w(t)}function w(t){return _e(t)?(l=w,P(t)):Ue(t)?(e.consume(t),w):A(t)}function S(t){return 45===t||Ne(t)?(e.consume(t),S):47===t||62===t||Be(t)?C(t):n(t)}function C(t){return 47===t?(e.consume(t),A):58===t||95===t||Pe(t)?(e.consume(t),E):_e(t)?(l=C,P(t)):Ue(t)?(e.consume(t),C):A(t)}function E(t){return 45===t||46===t||58===t||95===t||Ne(t)?(e.consume(t),E):I(t)}function I(t){return 61===t?(e.consume(t),D):_e(t)?(l=I,P(t)):Ue(t)?(e.consume(t),I):C(t)}function D(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,T):_e(t)?(l=D,P(t)):Ue(t)?(e.consume(t),D):(e.consume(t),O)}function T(t){return t===o?(e.consume(t),o=void 0,R):null===t?n(t):_e(t)?(l=T,P(t)):(e.consume(t),T)}function O(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||Be(t)?C(t):(e.consume(t),O)}function R(e){return 47===e||62===e||Be(e)?C(e):n(e)}function A(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function P(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),N}function N(t){return Ue(t)?Ye(e,M,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):M(t)}function M(t){return e.enter("htmlTextData"),l(t)}}},Yt={name:"labelStartLink",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:Lt.resolveAll},Wt={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return _e(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},Kt={name:"codeText",tokenize:function(e,t,n){let r,o,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),l(t)};function l(t){return 96===t?(e.consume(t),i++,l):(e.exit("codeTextSequence"),a(t))}function a(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),a):96===t?(o=e.enter("codeTextSequence"),r=0,c(t)):_e(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):(e.enter("codeTextData"),s(t))}function s(t){return null===t||32===t||96===t||_e(t)?(e.exit("codeTextData"),a(t)):(e.consume(t),s)}function c(n){return 96===n?(e.consume(n),r++,c):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(o.type="codeTextData",s(n))}},resolve:function(e){let t,n,r=e.length-4,o=3;if(!("lineEnding"!==e[o][1].type&&"space"!==e[o][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=o;++t<r;)if("codeTextData"===e[t][1].type){e[o][1].type="codeTextPadding",e[r][1].type="codeTextPadding",o+=2,r-=2;break}for(t=o-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}},Xt={42:st,43:st,45:st,48:st,49:st,50:st,51:st,52:st,53:st,54:st,55:st,56:st,57:st,62:dt},Qt={91:vt},Jt={[-2]:bt,[-1]:bt,32:bt},$t={35:kt,42:at,45:[wt,at],60:Et,61:wt,95:at,96:Ot,126:Ot},Gt={38:Pt,92:Nt},Zt={[-5]:Mt,[-4]:Mt,[-3]:Mt,33:_t,38:Pt,42:Ut,60:[Vt,qt],91:Yt,92:[Wt,Nt],93:Lt,95:Ut,96:Kt},en={null:[Ut,Ze]},tn={null:[42,95]},nn={null:[]};const rn=/[\0\t\n\r]/g;function on(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}const ln=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function an(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return on(n.slice(t?2:1),t?16:10)}return At(n)||e}const sn={}.hasOwnProperty;function cn(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(y),autolinkProtocol:u,autolinkEmail:u,atxHeading:o(g),blockQuote:o((function(){return{type:"blockquote",children:[]}})),characterEscape:u,characterReference:u,codeFenced:o(h),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:o(h,i),codeText:o((function(){return{type:"inlineCode",value:""}}),i),codeTextData:u,data:u,codeFlowValue:u,definition:o((function(){return{type:"definition",identifier:"",label:null,title:null,url:""}})),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:o((function(){return{type:"emphasis",children:[]}})),hardBreakEscape:o(m),hardBreakTrailing:o(m),htmlFlow:o(v,i),htmlFlowData:u,htmlText:o(v,i),htmlTextData:u,image:o((function(){return{type:"image",title:null,url:"",alt:null}})),label:i,link:o(y),listItem:o((function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}})),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:o(b,(function(){this.data.expectingFirstListItemValue=!0})),listUnordered:o(b),paragraph:o((function(){return{type:"paragraph",children:[]}})),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:o(g),strong:o((function(){return{type:"strong",children:[]}})),thematicBreak:o((function(){return{type:"thematicBreak"}}))},exit:{atxHeading:a(),atxHeadingSequence:function(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}},autolink:a(),autolinkEmail:function(e){d.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){d.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:a(),characterEscapeValue:d,characterReferenceMarkerHexadecimal:p,characterReferenceMarkerNumeric:p,characterReferenceValue:function(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;n?(r=on(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0):r=At(t);this.stack[this.stack.length-1].value+=r},characterReference:function(e){this.stack.pop().position.end=un(e.end)},codeFenced:a((function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0})),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){const e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){const e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:d,codeIndented:a((function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")})),codeText:a((function(){const e=this.resume();this.stack[this.stack.length-1].value=e})),codeTextData:d,data:d,definition:a(),definitionDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=mt(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:a(),hardBreakEscape:a(f),hardBreakTrailing:a(f),htmlFlow:a((function(){const e=this.resume();this.stack[this.stack.length-1].value=e})),htmlFlowData:d,htmlText:a((function(){const e=this.resume();this.stack[this.stack.length-1].value=e})),htmlTextData:d,image:a((function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0})),label:function(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t},labelText:function(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(ln,an)}(t),n.identifier=mt(t).toLowerCase()},lineEnding:function(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak)return n.children[n.children.length-1].position.end=un(e.end),void(this.data.atHardBreak=void 0);!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(u.call(this,e),d.call(this,e))},link:a((function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0})),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=mt(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:a((function(){this.data.setextHeadingSlurpLineEnding=void 0})),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:a(),thematicBreak:a()}};dn(t,(e||{}).mdastExtensions||[]);const n={};return function(e){let o={type:"root",children:[]};const a={stack:[o],tokenStack:[],config:t,enter:l,exit:s,buffer:i,resume:c,data:n},u=[];let d=-1;for(;++d<e.length;)"listOrdered"!==e[d][1].type&&"listUnordered"!==e[d][1].type||("enter"===e[d][0]?u.push(d):d=r(e,u.pop(),d));for(d=-1;++d<e.length;){const n=t[e[d][0]];sn.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},a),e[d][1])}if(a.tokenStack.length>0){const e=a.tokenStack[a.tokenStack.length-1];(e[1]||pn).call(a,void 0,e[0])}for(o.position={start:un(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:un(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)o=t.transforms[d](o)||o;return o};function r(e,t,n){let r,o,i,l,a=t-1,s=-1,c=!1;for(;++a<=n;){const t=e[a];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?s++:s--,l=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||l||s||i||(i=a),l=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:l=void 0}if(!s&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===s&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let l=a;for(o=void 0;l--;){const t=e[l];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;o&&(e[o][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",o=l}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}i&&(!o||i<o)&&(r._spread=!0),r.end=Object.assign({},o?e[o][1].start:t[1].end),e.splice(o||a,0,["exit",r,t[2]]),a++,n++}if("listItemPrefix"===t[1].type){const o={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=o,e.splice(a,0,["enter",o,t[2]]),a++,n++,i=void 0,l=!0}}}return e[t][1]._spread=c,n}function o(e,t){return function(n){l.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function l(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n]),e.position={start:un(t.start),end:void 0}}function a(e){return function(t){e&&e.call(this,t),s.call(this,t)}}function s(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+J({start:e.start,end:e.end})+"): it’s not open");r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||pn).call(this,e,r[0])),n.position.end=un(e.end)}function c(){return function(e){return ke(e,"boolean"!=typeof xe.includeImageAlt||xe.includeImageAlt,"boolean"!=typeof xe.includeHtml||xe.includeHtml)}(this.stack.pop())}function u(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n={type:"text",value:""},n.position={start:un(e.start),end:void 0},t.push(n)),this.stack.push(n)}function d(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=un(e.end)}function f(){this.data.atHardBreak=!0}function p(e){this.data.characterReferenceType=e.type}function h(){return{type:"code",lang:null,meta:null,value:""}}function g(){return{type:"heading",depth:0,children:[]}}function m(){return{type:"break"}}function v(){return{type:"html",value:""}}function y(){return{type:"link",title:null,url:"",children:[]}}function b(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}}(n)(function(e){for(;!De(e););return e}(function(e){const t=function(e){const t={};let n=-1;for(;++n<e.length;)Re(t,e[n]);return t}([o,...(e||{}).extensions||[]]),n={defined:[],lazy:{},constructs:t,content:r(We),document:r(Ke),flow:r(Ge),string:r(et),text:r(tt)};return n;function r(e){return function(t){return lt(n,e,t)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(o,i,l){const a=[];let s,c,u,d,f;for(o=n+("string"==typeof o?o.toString():new TextDecoder(i||void 0).decode(o)),u=0,n="",r&&(65279===o.charCodeAt(0)&&u++,r=void 0);u<o.length;){if(rn.lastIndex=u,s=rn.exec(o),d=s&&void 0!==s.index?s.index:o.length,f=o.charCodeAt(d),!s){n=o.slice(u);break}if(10===f&&u===d&&e)a.push(-3),e=void 0;else switch(e&&(a.push(-5),e=void 0),u<d&&(a.push(o.slice(u,d)),t+=d-u),f){case 0:a.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),a.push(-2);t++<c;)a.push(-1);break;case 10:a.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return l&&(e&&a.push(-5),n&&a.push(n),a.push(null)),a}}()(e,t,!0))))}function un(e){return{line:e.line,column:e.column,offset:e.offset}}function dn(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?dn(e,r):fn(e,r)}}function fn(e,t){let n;for(n in t)if(sn.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function pn(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+J({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+J({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+J({start:t.start,end:t.end})+") is still open")}function hn(e){const t=this;t.parser=function(n){return cn(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}const gn="object"==typeof self?self:globalThis,mn=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=o=>{if(e.has(o))return e.get(o);const[i,l]=t[o];switch(i){case 0:case-1:return n(l,o);case 1:{const e=n([],o);for(const t of l)e.push(r(t));return e}case 2:{const e=n({},o);for(const[t,n]of l)e[r(t)]=r(n);return e}case 3:return n(new Date(l),o);case 4:{const{source:e,flags:t}=l;return n(new RegExp(e,t),o)}case 5:{const e=n(new Map,o);for(const[t,n]of l)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,o);for(const t of l)e.add(r(t));return e}case 7:{const{name:e,message:t}=l;return n(new gn[e](t),o)}case 8:return n(BigInt(l),o);case"BigInt":return n(Object(BigInt(l)),o)}return n(new gn[i](l),o)};return r})(new Map,e)(0),vn="",{toString:yn}={},{keys:bn}=Object,xn=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=yn.call(e).slice(8,-1);switch(n){case"Array":return[1,vn];case"Object":return[2,vn];case"Date":return[3,vn];case"RegExp":return[4,vn];case"Map":return[5,vn];case"Set":return[6,vn]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},kn=([e,t])=>0===e&&("function"===t||"symbol"===t),wn=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const o=(e,t)=>{const o=r.push(e)-1;return n.set(t,o),o},i=r=>{if(n.has(r))return n.get(r);let[l,a]=xn(r);switch(l){case 0:{let t=r;switch(a){case"bigint":l=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+a);t=null;break;case"undefined":return o([-1],r)}return o([l,t],r)}case 1:{if(a)return o([a,[...r]],r);const e=[],t=o([l,e],r);for(const t of r)e.push(i(t));return t}case 2:{if(a)switch(a){case"BigInt":return o([a,r.toString()],r);case"Boolean":case"Number":case"String":return o([a,r.valueOf()],r)}if(t&&"toJSON"in r)return i(r.toJSON());const n=[],s=o([l,n],r);for(const t of bn(r))!e&&kn(xn(r[t]))||n.push([i(t),i(r[t])]);return s}case 3:return o([l,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return o([l,{source:e,flags:t}],r)}case 5:{const t=[],n=o([l,t],r);for(const[n,o]of r)(e||!kn(xn(n))&&!kn(xn(o)))&&t.push([i(n),i(o)]);return n}case 6:{const t=[],n=o([l,t],r);for(const n of r)!e&&kn(xn(n))||t.push(i(n));return n}}const{message:s}=r;return o([l,{name:a,message:s}],r)};return i})(!(t||n),!!t,new Map,r)(e),r},Sn="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?mn(wn(e,t)):structuredClone(e):(e,t)=>mn(wn(e,t));function Cn(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let l="";if(37===i&&Ne(e.charCodeAt(n+1))&&Ne(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(l=String.fromCharCode(i));else if(i>55295&&i<57344){const t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(l=String.fromCharCode(i,t),o=1):l="�"}else l=String.fromCharCode(i);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+o+1,l=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function En(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function In(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const Dn=function(e){if(null==e)return On;if("function"==typeof e)return Tn(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Dn(e[n]);return Tn((function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}))}(e):function(e){const t=e;return Tn((function(n){const r=n;let o;for(o in e)if(r[o]!==t[o])return!1;return!0}))}(e);if("string"==typeof e)return t=e,Tn((function(e){return e&&e.type===t}));var t;throw new Error("Expected function, string, or object as test")};function Tn(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function On(){return!0}const Rn=[],An=!1;function Pn(e,t,n,r){let o,i,l;"function"==typeof t&&"function"!=typeof n?(i=void 0,l=t,o=n):(i=t,l=n,o=r),function(e,t,n,r){let o;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):o=t;const i=Dn(o),l=r?-1:1;!function e(o,a,s){const c=o&&"object"==typeof o?o:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+o.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,f=Rn;if((!t||i(o,a,s[s.length-1]||void 0))&&(f=function(e){return Array.isArray(e)?e:"number"==typeof e?[!0,e]:null==e?Rn:[e]}(n(o,s)),f[0]===An))return f;if("children"in o&&o.children){const t=o;if(t.children&&"skip"!==f[0])for(u=(r?t.children.length:-1)+l,d=s.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,d)(),c[0]===An)return c;u="number"==typeof c[1]?c[1]:u+l}}return f}}(e,void 0,[])()}(e,i,(function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return l(e,r,n)}),o)}function Nn(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const o=e.all(t),i=o[0];i&&"text"===i.type?i.value="["+i.value:o.unshift({type:"text",value:"["});const l=o[o.length-1];return l&&"text"===l.type?l.value+=r:o.push({type:"text",value:r}),o}function Mn(e){const t=e.spread;return null==t?e.children.length>1:t}function Ln(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(zn(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(zn(t.slice(o),o>0,!1)),i.join("")}function zn(e,t,n){let r=0,o=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(o-1);for(;9===t||32===t;)o--,t=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}const Fn={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=Cn(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let l,a=e.footnoteCounts.get(r);void 0===a?(a=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=i+1,a+=1,e.footnoteCounts.set(r,a);const s={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,s);const c={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Nn(e,t);const o={src:Cn(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){const n={src:Cn(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Nn(e,t);const o={href:Cn(r.url||"")};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){const n={href:Cn(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),o=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Mn(n[r])}return t}(n):Mn(t),i={},l=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const e=r[a];(o||0!==a||"element"!==e.type||"p"!==e.tagName)&&l.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||o?l.push(e):l.push(...e.children)}const s=r[r.length-1];s&&(o||"element"!==s.type||"p"!==s.tagName)&&l.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:i,children:l};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},r=e.all(t);let o=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++o<r.length;){const e=r[o];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),o.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=X(t.children[1]),l=K(t.children[t.children.length-1]);i&&l&&(r.position={start:i,end:l}),o.push(r)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,l=i?i.length:t.children.length;let a=-1;const s=[];for(;++a<l;){const n=t.children[a],r={},l=i?i[a]:void 0;l&&(r.align=l);let c={type:"element",tagName:o,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),s.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:Ln(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:jn,yaml:jn,definition:jn,footnoteDefinition:jn};function jn(){}const _n={}.hasOwnProperty,Bn={};function Un(e,t){e.position&&(t.position=function(e){const t=X(e),n=K(e);if(t&&n)return{start:t,end:n}}(e))}function Hn(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&o&&Object.assign(n.properties,Sn(o)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function Vn(e,t){const n=t.data||{},r=!("value"in t)||_n.call(n,"hProperties")||_n.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function qn(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function Yn(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function Wn(e,t){const n=function(e,t){const n=t||Bn,r=new Map,o=new Map,i=new Map,l={...Fn,...n.handlers},a={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const o=a.one(n[r],e);if(o){if(r&&"break"===n[r-1].type&&(Array.isArray(o)||"text"!==o.type||(o.value=Yn(o.value)),!Array.isArray(o)&&"element"===o.type)){const e=o.children[0];e&&"text"===e.type&&(e.value=Yn(e.value))}Array.isArray(o)?t.push(...o):t.push(o)}}}return t},applyData:Hn,definitionById:r,footnoteById:o,footnoteCounts:i,footnoteOrder:[],handlers:l,one:function(e,t){const n=e.type,r=a.handlers[n];if(_n.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=Sn(n);return r.children=a.all(e),r}return Sn(e)}return(a.options.unknownHandler||Vn)(a,e,t)},options:n,patch:Un,wrap:qn};return Pn(e,(function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:o,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}})),a}(e,t),r=n.one(e,void 0),o=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||En,r=e.options.footnoteBackLabel||In,o=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let s=-1;for(;++s<e.footnoteOrder.length;){const o=e.footnoteById.get(e.footnoteOrder[s]);if(!o)continue;const i=e.all(o),l=String(o.identifier).toUpperCase(),c=Cn(l.toLowerCase());let u=0;const d=[],f=e.footnoteCounts.get(l);for(;void 0!==f&&++u<=f;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(s,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(s,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const p=i[i.length-1];if(p&&"element"===p.type&&"p"===p.tagName){const e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...d)}else i.push(...d);const h={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(i,!0)};e.patch(o,h),a.push(h)}if(0!==a.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...Sn(l),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:"\n"}]}}(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&i.children.push({type:"text",value:"\n"},o),i}function Kn(e,t){return e&&"run"in e?async function(n,r){const o=Wn(n,{file:r,...t});await e.run(o,r)}:function(n,r){return Wn(n,{file:r,...e||t})}}function Xn(e){if(e)throw e}var Qn=n(92849);function Jn(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}const $n=function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');nr(e);let n,r=0,o=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let l=-1,a=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else l<0&&(n=!0,l=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(o=i):(a=-1,o=l));return r===o?o=l:o<0&&(o=e.length),e.slice(r,o)},Gn=function(e){if(nr(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},Zn=function(e){nr(e);let t,n=e.length,r=-1,o=0,i=-1,l=0;for(;n--;){const a=e.codePointAt(n);if(47!==a)r<0&&(t=!0,r=n+1),46===a?i<0?i=n:1!==l&&(l=1):i>-1&&(l=-1);else if(t){o=n+1;break}}return i<0||r<0||0===l||1===l&&i===r-1&&i===o+1?"":e.slice(i,r)},er=function(...e){let t,n=-1;for(;++n<e.length;)nr(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){nr(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,o="",i=0,l=-1,a=0,s=-1;for(;++s<=e.length;){if(s<e.length)n=e.codePointAt(s);else{if(47===n)break;n=47}if(47===n){if(l===s-1||1===a);else if(l!==s-1&&2===a){if(o.length<2||2!==i||46!==o.codePointAt(o.length-1)||46!==o.codePointAt(o.length-2))if(o.length>2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),l=s,a=0;continue}}else if(o.length>0){o="",i=0,l=s,a=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(l+1,s):o=e.slice(l+1,s),i=s-l-1;l=s,a=0}else 46===n&&a>-1?a++:a=-1}return o}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},tr="/";function nr(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const rr=function(){return"/"};function or(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}const ir=["history","path","basename","stem","extname","dirname"];class lr{constructor(e){let t;t=e?or(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":rr(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<ir.length;){const e=ir[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)ir.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?$n(this.path):void 0}set basename(e){sr(e,"basename"),ar(e,"basename"),this.path=er(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?Gn(this.path):void 0}set dirname(e){cr(this.basename,"dirname"),this.path=er(e||"",this.basename)}get extname(){return"string"==typeof this.path?Zn(this.path):void 0}set extname(e){if(ar(e,"extname"),cr(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=er(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){or(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!or(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),sr(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?$n(this.path,this.extname):void 0}set stem(e){sr(e,"stem"),ar(e,"stem"),this.path=er(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new ee(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function ar(e,t){if(e&&e.includes(tr))throw new Error("`"+t+"` cannot be a path: did not expect `"+tr+"`")}function sr(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function cr(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const ur=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},dr={}.hasOwnProperty;class fr extends ur{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function o(i,...l){const a=e[++n];let s=-1;if(i)r(i);else{for(;++s<t.length;)null!==l[s]&&void 0!==l[s]||(l[s]=t[s]);t=l,a?function(e,t){let n;return function(...t){const i=e.length>t.length;let l;i&&t.push(r);try{l=e.apply(this,t)}catch(e){if(i&&n)throw e;return r(e)}i||(l&&l.then&&"function"==typeof l.then?l.then(o,r):l instanceof Error?r(l):o(l))};function r(e,...r){n||(n=!0,t(e,...r))}function o(e){r(null,e)}}(a,o)(...l):r(null,...l)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){const e=new fr;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(Qn(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(mr("data",this.frozen),this.namespace[e]=t,this):dr.call(this.namespace,e)&&this.namespace[e]||void 0:e?(mr("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=br(e),n=this.parser||this.Parser;return hr("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),hr("process",this.parser||this.Parser),gr("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,o){const i=br(e),l=n.parse(i);function a(e,n){e||!n?o(e):r?r(n):t(void 0,n)}n.run(l,i,(function(e,t,r){if(e||!t||!r)return a(e);const o=t,i=n.stringify(o,r);var l;"string"==typeof(l=i)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(l)?r.value=i:r.result=i,a(e,r)}))}}processSync(e){let t,n=!1;return this.freeze(),hr("processSync",this.parser||this.Parser),gr("processSync",this.compiler||this.Compiler),this.process(e,(function(e,r){n=!0,Xn(e),t=r})),yr("processSync","process",n),t}run(e,t,n){vr(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?o(void 0,n):new Promise(o);function o(o,i){const l=br(t);r.run(e,l,(function(t,r,l){const a=r||e;t?i(t):o?o(a):n(void 0,a,l)}))}}runSync(e,t){let n,r=!1;return this.run(e,t,(function(e,t){Xn(e),n=t,r=!0})),yr("runSync","run",r),n}stringify(e,t){this.freeze();const n=br(t),r=this.compiler||this.Compiler;return gr("stringify",r),vr(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(mr("use",this.frozen),null==e);else if("function"==typeof e)a(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?l(e):i(e)}return this;function o(e){if("function"==typeof e)a(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;a(t,n)}else i(e)}}function i(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(e.plugins),e.settings&&(r.settings=Qn(!0,r.settings,e.settings))}function l(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;)o(e[t])}}function a(e,t){let r=-1,o=-1;for(;++r<n.length;)if(n[r][0]===e){o=r;break}if(-1===o)n.push([e,...t]);else if(t.length>0){let[r,...i]=t;const l=n[o][1];Jn(l)&&Jn(r)&&(r=Qn(!0,l,r)),n[o]=[e,r,...i]}}}}const pr=(new fr).freeze();function hr(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function gr(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function mr(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function vr(e){if(!Jn(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function yr(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function br(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new lr(e)}const xr=[],kr={allowDangerousHtml:!0},wr=/^(https?|ircs?|mailto|xmpp)$/i,Sr=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Cr(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",o=e.className,i=e.components,l=e.disallowedElements,a=e.rehypePlugins||xr,s=e.remarkPlugins||xr,c=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...kr}:kr,u=e.skipHtml,d=e.unwrapDisallowed,f=e.urlTransform||Er,p=pr().use(hn).use(s).use(Kn,c).use(a),h=new lr;"string"==typeof r&&(h.value=r);for(const t of Sr)Object.hasOwn(e,t.from)&&(t.from,t.to&&t.to,t.id);const g=p.parse(h);let m=p.runSync(g,h);return o&&(m={type:"element",tagName:"div",properties:{className:o},children:"root"===m.type?m.children:[m]}),Pn(m,(function(e,r,o){if("raw"===e.type&&o&&"number"==typeof r)return u?o.children.splice(r,1):o.children[r]={type:"text",value:e.value},r;if("element"===e.type){let t;for(t in ye)if(Object.hasOwn(ye,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=ye[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=f(String(n||""),t,e))}}if("element"===e.type){let i=t?!t.includes(e.tagName):!!l&&l.includes(e.tagName);if(!i&&n&&"number"==typeof r&&(i=!n(e,r,o)),i&&o&&"number"==typeof r)return d&&e.children?o.children.splice(r,1,...e.children):o.children.splice(r,1),r}})),function(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return function(n,r,o,i){const l=Array.isArray(o.children),a=X(n);return t(r,o,i,l,{columnNumber:a?a.column-1:void 0,fileName:e,lineNumber:a?a.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");o=t.jsx,i=t.jsxs,r=function(e,t,n,r){const l=Array.isArray(n.children)?i:o;return r?l(t,n,r):l(t,n)}}var o,i;const l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?j:F,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},a=se(l,e,void 0);return a&&"string"!=typeof a?a:l.create(e,l.Fragment,{children:a||void 0},void 0)}(m,{Fragment:be.Fragment,components:i,ignoreInvalidStyle:!0,jsx:be.jsx,jsxs:be.jsxs,passKeys:!0,passNode:!0})}function Er(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return t<0||o>-1&&t>o||n>-1&&t>n||r>-1&&t>r||wr.test(e.slice(0,t))?e:""}}}]);