@datalayer/agent-runtimes 1.6.21 → 1.6.23
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-embed/chunks/{CollapsiblePlugin-B85HBp8b.js → CollapsiblePlugin-Bn70jFpi.js} +1 -1
- package/dist-embed/chunks/{DeckComponent-DnMHEQJo.js → DeckComponent-DuxVpxzx.js} +1 -1
- package/dist-embed/chunks/{DocumentView-3aE4btpU.js → DocumentView-DKLkbwvh.js} +1 -1
- package/dist-embed/chunks/{EphemeralDocument-DLAoDnRi.js → EphemeralDocument-CAXNOtEL.js} +1 -1
- package/dist-embed/chunks/{ExcalidrawComponent-BJYnSolA.js → ExcalidrawComponent-mHitiMde.js} +1 -1
- package/dist-embed/chunks/{ExcalidrawModal-DmcKDOu0.js → ExcalidrawModal-KB4MTQbk.js} +1 -1
- package/dist-embed/chunks/{JupyterLexicalExtension-D-dDKj_U.js → JupyterLexicalExtension-BtjDYMne.js} +5 -5
- package/dist-embed/chunks/{YouTubePlugin-B26ThLdI.js → YouTubePlugin-B6JmeO6g.js} +1 -1
- package/dist-embed/chunks/{ar-SA-G6X2FPQ2-DrKp-GT1.js → ar-SA-G6X2FPQ2-BtDm_vBV.js} +1 -1
- package/dist-embed/chunks/{az-AZ-76LH7QW2-kanwrGa7.js → az-AZ-76LH7QW2-CU9PzGa-.js} +1 -1
- package/dist-embed/chunks/babel-xT8DLG14.js +16 -0
- package/dist-embed/chunks/{bg-BG-XCXSNQG7-B-YkMqs9.js → bg-BG-XCXSNQG7-CcZG1sMf.js} +1 -1
- package/dist-embed/chunks/{bn-BD-2XOGV67Q-C2LRshMO.js → bn-BD-2XOGV67Q-CsBxRWS8.js} +1 -1
- package/dist-embed/chunks/{ca-ES-6MX7JW3Y-CH-XjE7A.js → ca-ES-6MX7JW3Y-DiPlBY-L.js} +1 -1
- package/dist-embed/chunks/{cs-CZ-2BRQDIVT-CZsinbV8.js → cs-CZ-2BRQDIVT-B2LG8kaF.js} +1 -1
- package/dist-embed/chunks/{da-DK-5WZEPLOC-BKE16CYd.js → da-DK-5WZEPLOC-CjiEJ2dL.js} +1 -1
- package/dist-embed/chunks/{de-DE-XR44H4JA-Bef67X55.js → de-DE-XR44H4JA-D2hSEI1m.js} +1 -1
- package/dist-embed/chunks/{el-GR-BZB4AONW-DdhJZ7Lx.js → el-GR-BZB4AONW-C7ps3kie.js} +1 -1
- package/dist-embed/chunks/{es-ES-U4NZUMDT-BYuerEZq.js → es-ES-U4NZUMDT-BfNMUvfg.js} +1 -1
- package/dist-embed/chunks/estree-BbkbXjhR.js +44 -0
- package/dist-embed/chunks/{eu-ES-A7QVB2H4-Bx1ZMbch.js → eu-ES-A7QVB2H4-CBQcRcNh.js} +1 -1
- package/dist-embed/chunks/{fa-IR-HGAKTJCU-DOlQSonG.js → fa-IR-HGAKTJCU-CKTkkQUk.js} +1 -1
- package/dist-embed/chunks/{fi-FI-Z5N7JZ37-CEvqx_B0.js → fi-FI-Z5N7JZ37-B2flJw4O.js} +1 -1
- package/dist-embed/chunks/{fr-FR-RHASNOE6-B6dmIROy.js → fr-FR-RHASNOE6-DCWxP6nh.js} +1 -1
- package/dist-embed/chunks/{gl-ES-HMX3MZ6V-DET0-zSB.js → gl-ES-HMX3MZ6V-BGEA0PhL.js} +1 -1
- package/dist-embed/chunks/{he-IL-6SHJWFNN-D8q7vnmN.js → he-IL-6SHJWFNN-BaHixqAA.js} +1 -1
- package/dist-embed/chunks/{hi-IN-IWLTKZ5I-WKOut6Ph.js → hi-IN-IWLTKZ5I-CrHbvHN0.js} +1 -1
- package/dist-embed/chunks/html-DVpylSNq.js +25 -0
- package/dist-embed/chunks/{hu-HU-A5ZG7DT2-D8S_FCMc.js → hu-HU-A5ZG7DT2-B9wQnRpK.js} +1 -1
- package/dist-embed/chunks/{id-ID-SAP4L64H-C1MpnR6j.js → id-ID-SAP4L64H-T0pQVB4m.js} +1 -1
- package/dist-embed/chunks/{it-IT-JPQ66NNP-CmSi2-kQ.js → it-IT-JPQ66NNP-ECgWHvcY.js} +1 -1
- package/dist-embed/chunks/{ja-JP-DBVTYXUO-f3Xycaxf.js → ja-JP-DBVTYXUO-Cz96ctDW.js} +1 -1
- package/dist-embed/chunks/{kaa-6HZHGXH3-CDjiUexP.js → kaa-6HZHGXH3-Cu7gLGxC.js} +1 -1
- package/dist-embed/chunks/{kab-KAB-ZGHBKWFO-C7pc9jkA.js → kab-KAB-ZGHBKWFO-CoJI939s.js} +1 -1
- package/dist-embed/chunks/{kk-KZ-P5N5QNE5-DKB4lHwJ.js → kk-KZ-P5N5QNE5-DiEAZ9si.js} +1 -1
- package/dist-embed/chunks/{km-KH-HSX4SM5Z-Tct1wYe_.js → km-KH-HSX4SM5Z-CNF1qzO2.js} +1 -1
- package/dist-embed/chunks/{ko-KR-MTYHY66A-D75KXFFg.js → ko-KR-MTYHY66A-BCvHfgyK.js} +1 -1
- package/dist-embed/chunks/{ku-TR-6OUDTVRD-DFFv9y6o.js → ku-TR-6OUDTVRD-BV9JoFXu.js} +1 -1
- package/dist-embed/chunks/{lib-CWYlnae_.js → lib-BkW0DwuV.js} +1 -1
- package/dist-embed/chunks/{lt-LT-XHIRWOB4-b_ZSHKuX.js → lt-LT-XHIRWOB4-BpoBiZvj.js} +1 -1
- package/dist-embed/chunks/{lv-LV-5QDEKY6T-DOkd9vjo.js → lv-LV-5QDEKY6T-DWPLOycm.js} +1 -1
- package/dist-embed/chunks/markdown-Czq15M7Q.js +70 -0
- package/dist-embed/chunks/{mr-IN-CRQNXWMA-DgtGEhds.js → mr-IN-CRQNXWMA-C3XokKLN.js} +1 -1
- package/dist-embed/chunks/{my-MM-5M5IBNSE-Wx2nX-HX.js → my-MM-5M5IBNSE-bPDcBtIx.js} +1 -1
- package/dist-embed/chunks/{nb-NO-T6EIAALU-Bxg1hz2F.js → nb-NO-T6EIAALU-zGQywuc4.js} +1 -1
- package/dist-embed/chunks/{nl-NL-IS3SIHDZ-CuTty8ZU.js → nl-NL-IS3SIHDZ-D0N-QxdB.js} +1 -1
- package/dist-embed/chunks/{nn-NO-6E72VCQL-yF9Qjmvy.js → nn-NO-6E72VCQL-BeiBipEM.js} +1 -1
- package/dist-embed/chunks/{oc-FR-POXYY2M6-DzhTICBK.js → oc-FR-POXYY2M6-BSmiDtLw.js} +1 -1
- package/dist-embed/chunks/{pa-IN-N4M65BXN-BLaNcNfP.js → pa-IN-N4M65BXN-YTioBliU.js} +1 -1
- package/dist-embed/chunks/{percentages-BXMCSKIN-BSFk0Tks.js → percentages-BXMCSKIN-B5BZ64UL.js} +3 -3
- package/dist-embed/chunks/{pl-PL-T2D74RX3-Cny-MZTY.js → pl-PL-T2D74RX3-BmA-mIoA.js} +1 -1
- package/dist-embed/chunks/postcss-ClUAhyQz.js +62 -0
- package/dist-embed/chunks/{pt-BR-5N22H2LF-B0D69qws.js → pt-BR-5N22H2LF-DF1nGVg3.js} +1 -1
- package/dist-embed/chunks/{pt-PT-UZXXM6DQ-BstfsxvV.js → pt-PT-UZXXM6DQ-DhiSFYNH.js} +1 -1
- package/dist-embed/chunks/{ro-RO-JPDTUUEW-BP5Qc7BF.js → ro-RO-JPDTUUEW-DN5nT_8E.js} +1 -1
- package/dist-embed/chunks/{ru-RU-B4JR7IUQ-CnAMP9Hu.js → ru-RU-B4JR7IUQ-DJAZColu.js} +1 -1
- package/dist-embed/chunks/{si-LK-N5RQ5JYF-KUaQDZ4v.js → si-LK-N5RQ5JYF-BcJdGNJf.js} +1 -1
- package/dist-embed/chunks/{sk-SK-C5VTKIMK-CG7XdLGl.js → sk-SK-C5VTKIMK-Bs43X2b-.js} +1 -1
- package/dist-embed/chunks/{sl-SI-NN7IZMDC-e_SFsMsv.js → sl-SI-NN7IZMDC-CVhBQ31i.js} +1 -1
- package/dist-embed/chunks/standalone-BmUQQ5LE.js +29 -0
- package/dist-embed/chunks/{subset-shared.chunk-Cn_vjsJA.js → subset-shared.chunk-BkTdi2-W.js} +1 -1
- package/dist-embed/chunks/{subset-worker.chunk-W_rTkgB8.js → subset-worker.chunk-SkNsdM6t.js} +1 -1
- package/dist-embed/chunks/{sv-SE-XGPEYMSR-DHzvVSOu.js → sv-SE-XGPEYMSR-BR0XZMXJ.js} +1 -1
- package/dist-embed/chunks/{ta-IN-2NMHFXQM-opB0ehqF.js → ta-IN-2NMHFXQM-4CfGQQ8v.js} +1 -1
- package/dist-embed/chunks/{th-TH-HPSO5L25-DLQWbRw6.js → th-TH-HPSO5L25-CjO8TBa6.js} +1 -1
- package/dist-embed/chunks/{tr-TR-DEFEU3FU-BB46Zv5P.js → tr-TR-DEFEU3FU-B3tO43YQ.js} +1 -1
- package/dist-embed/chunks/typescript-BLZ3EhMp.js +22 -0
- package/dist-embed/chunks/{uk-UA-QMV73CPH-PSr9uqn6.js → uk-UA-QMV73CPH-DYk01HNs.js} +1 -1
- package/dist-embed/chunks/{vi-VN-M7AON7JQ-B8XFOV9x.js → vi-VN-M7AON7JQ-Dyd2Hf1G.js} +1 -1
- package/dist-embed/chunks/{zh-CN-LNUGB5OW-Cw-MnTuW.js → zh-CN-LNUGB5OW-Bs2W1BrY.js} +1 -1
- package/dist-embed/chunks/{zh-HK-E62DVLB3-C6TwyE2U.js → zh-HK-E62DVLB3-BwN2oc_m.js} +1 -1
- package/dist-embed/chunks/{zh-TW-RAJ6MFWO-CLS-sbQC.js → zh-TW-RAJ6MFWO-qOevWsjt.js} +1 -1
- package/dist-embed/datalayer-app-main.js +15 -9
- package/lib/specs/actions.js +7 -0
- package/lib/specs/agents/agents.d.ts +1 -0
- package/lib/specs/agents/agents.js +139 -1
- package/lib/specs/apps.d.ts +1 -0
- package/lib/specs/apps.js +352 -0
- package/lib/specs/backendTools.d.ts +5 -0
- package/lib/specs/backendTools.js +95 -0
- package/lib/specs/policies.d.ts +1 -0
- package/lib/specs/policies.js +17 -0
- package/package.json +1 -1
- package/dist-embed/chunks/babel-DYThBADt.js +0 -16
- package/dist-embed/chunks/estree-C_HWBWad.js +0 -44
- package/dist-embed/chunks/html-BdbYoS8g.js +0 -25
- package/dist-embed/chunks/markdown-BWelGxUI.js +0 -70
- package/dist-embed/chunks/postcss-Bqhj58AT.js +0 -62
- package/dist-embed/chunks/standalone-Lm5oSWJc.js +0 -29
- package/dist-embed/chunks/typescript-Ctd41k9v.js +0 -22
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"./percentages-BXMCSKIN-
|
|
1
|
+
import"./percentages-BXMCSKIN-B5BZ64UL.js";import"../datalayer-app-main.js";import"./JupyterLexicalExtension-BtjDYMne.js";import"./NotebookSkeleton-BkzTMhIX.js";import"./Avatar-MNx1kN3F.js";import"./url-C6fJII94.js";import"./isSymbol-BLtK9CV6.js";import"./toNumber-B1wj8-wx.js";import"./StrikethroughIcon-CbiEuPT-.js";import"./VideoIcon-C3wcjUxu.js";import"./LinkIcon-BtBG9K47.js";import"./Toolbar-BncUh2ly.js";import"./KebabHorizontalIcon-D6AY8pIS.js";import"./ArrowUpIcon-y5enrVH9.js";import"./SortDescIcon-Qif6E10I.js";import"./PaintbrushIcon-CFBHU-3l.js";import"./PrismCss-DQMhvzcI.js";import"./Output-BfmeU6C2.js";import"./index--S8WFITA.js";import"./hoverbox-CStlKQWE.js";import"./index-6zxBQeM_.js";import"./index-BKAeSGYJ.js";import"./dayjs.min-u3zuoSR8.js";import"./isEqual-BYxXubsX.js";import"./d3-color-Jd8hXty2.js";import"./dist-BrUAt6vF.js";import"./index-CqP3xLL5.js";import"./RestartIcon-DvpOf5Mf.js";import"./LexicalToolRegistry-LfEpCrfD.js";import"./extends-CF3RwP-h.js";import"./index-C0d-d3s4.js";import"./index-DoBkwclg.js";var e={paste:"Wklej",pasteAsPlaintext:"Wklej jako zwykły tekst",pasteCharts:"Wklej wykresy",selectAll:"Zaznacz wszystko",multiSelect:"Dodaj element do zaznaczenia",moveCanvas:"Przesuń obszar roboczy",cut:"Wytnij",copy:"Kopiuj",copyAsPng:"Skopiuj do schowka jako plik PNG",copyAsSvg:"Skopiuj do schowka jako plik SVG",copyText:"Skopiuj do schowka jako tekst",copySource:"Skopiuj źródło do schowka",convertToCode:"Skonwertuj do kodu",bringForward:"Przenieś wyżej",sendToBack:"Przenieś na spód",bringToFront:"Przenieś na wierzch",sendBackward:"Przenieś niżej",delete:"Usuń",copyStyles:"Kopiuj style",pasteStyles:"Wklej style",stroke:"Kolor obramowania",background:"Kolor wypełnienia",fill:"Wypełnienie",strokeWidth:"Grubość obramowania",strokeStyle:"Styl obrysu",strokeStyle_solid:"Pełny",strokeStyle_dashed:"Kreskowany",strokeStyle_dotted:"Kropkowany",sloppiness:"Styl kreski",opacity:"Przeźroczystość",textAlign:"Wyrównanie tekstu",edges:"Krawędzie",sharp:"Ostry",round:"Zaokrąglij",arrowheads:"Groty",arrowhead_none:"Brak",arrowhead_arrow:"Strzałka",arrowhead_bar:"Kreska",arrowhead_circle:"Okrąg",arrowhead_circle_outline:"Okrąg (obrys)",arrowhead_triangle:"Trójkąt",arrowhead_triangle_outline:"Trójkąt (obrys)",arrowhead_diamond:"Romb",arrowhead_diamond_outline:"Romb (obrys)",fontSize:"Rozmiar tekstu",fontFamily:"Krój pisma",addWatermark:'Dodaj "Zrobione w Excalidraw"',handDrawn:"Odręczny",normal:"Normalny",code:"Kod",small:"Mały",medium:"Średni",large:"Duży",veryLarge:"Bardzo duży",solid:"Pełne",hachure:"Linie",zigzag:"Zygzak",crossHatch:"Zakreślone",thin:"Cienkie",bold:"Pogrubione",left:"Do lewej",center:"Do środka",right:"Do prawej",extraBold:"Ekstra pogrubione",architect:"Dokładny",artist:"Artystyczny",cartoonist:"Rysunkowy",fileTitle:"Nazwa pliku",colorPicker:"Paleta kolorów",canvasColors:"Używane na płótnie",canvasBackground:"Kolor dokumentu",drawingCanvas:"Obszar roboczy",layers:"Warstwy",actions:"Akcje",language:"Język",liveCollaboration:"Współpraca w czasie rzeczywistym...",duplicateSelection:"Powiel",untitled:"Bez tytułu",name:"Nazwa",yourName:"Twoje imię",madeWithExcalidraw:"Zrobione w Excalidraw",group:"Zgrupuj wybrane",ungroup:"Rozgrupuj wybrane",collaborators:"Współtwórcy",showGrid:"Pokaż siatkę",addToLibrary:"Dodaj do biblioteki",removeFromLibrary:"Usuń z biblioteki",libraryLoadingMessage:"Wczytywanie biblioteki…",libraries:"Przeglądaj biblioteki",loadingScene:"Wczytywanie sceny…",align:"Wyrównaj",alignTop:"Wyrównaj do góry",alignBottom:"Wyrównaj do dołu",alignLeft:"Wyrównaj do lewej",alignRight:"Wyrównaj do prawej",centerVertically:"Wyśrodkuj w pionie",centerHorizontally:"Wyśrodkuj w poziomie",distributeHorizontally:"Rozłóż poziomo",distributeVertically:"Rozłóż pionowo",flipHorizontal:"Odwróć w poziomie",flipVertical:"Odwróć w pionie",viewMode:"Tryb widoku",share:"Udostępnij",showStroke:"Pokaż próbnik kolorów obrysu",showBackground:"Pokaż próbnik koloru tła",toggleTheme:"Przełącz motyw",personalLib:"Biblioteka prywatna",excalidrawLib:"Biblioteka Excalidraw",decreaseFontSize:"Zmniejsz rozmiar czcionki",increaseFontSize:"Zwiększ rozmiar czcionki",unbindText:"Odłącz tekst od kontenera",bindText:"Połącz tekst z kontenerem",createContainerFromText:"Zawijaj tekst w kontenerze",link:{edit:"Edytuj łącze",editEmbed:"Edytuj i osadź link",create:"Utwórz łącze",createEmbed:"Stwórz i osadź link",label:"Łącze",labelEmbed:"Podlinkuj i osadź",empty:"Nie ustawiono linku"},lineEditor:{edit:"Edytuj linię",exit:"Wyjdź z edytora linii"},elementLock:{lock:"Zablokuj",unlock:"Odblokuj",lockAll:"Zablokuj wszystko",unlockAll:"Odblokuj wszystko"},statusPublished:"Opublikowano",sidebarLock:"Panel boczny zawsze otwarty",selectAllElementsInFrame:"Zaznacz wszystkie elementy w ramce",removeAllElementsFromFrame:"Usuń wszystkie elementy z ramki",eyeDropper:"Wybierz kolor z płótna",textToDiagram:"Tekst do diagramu",prompt:""},o={noItems:"Nie dodano jeszcze żadnych elementów...",hint_emptyLibrary:"Wybierz element na płótnie, aby go tutaj dodać, lub zainstaluj bibliotekę z poniższego publicznego repozytorium.",hint_emptyPrivateLibrary:"Wybierz element, aby dodać go tutaj."},a={clearReset:"Wyczyść dokument i zresetuj kolor dokumentu",exportJSON:"Eksportuj do pliku",exportImage:"Eksportuj obraz...",export:"Zapisz jako...",copyToClipboard:"Skopiuj do schowka",save:"Zapisz do bieżącego pliku",saveAs:"Zapisz jako",load:"Otwórz",getShareableLink:"Udostępnij",close:"Zamknij",selectLanguage:"Wybierz język",scrollBackToContent:"Wróć do obszaru roboczego",zoomIn:"Powiększ",zoomOut:"Pomniejsz",resetZoom:"Zresetuj powiększenie",menu:"Menu",done:"Gotowe",edit:"Edytuj",undo:"Cofnij",redo:"Przywróć",resetLibrary:"Resetuj bibliotekę",createNewRoom:"Utwórz nowy pokój",fullScreen:"Pełny ekran",darkMode:"Ciemny motyw",lightMode:"Jasny motyw",zenMode:"Tryb Zen",objectsSnapMode:"Przyciąganie do obiektów",exitZenMode:"Wyjdź z trybu Zen",cancel:"Anuluj",clear:"Wyczyść",remove:"Usuń",embed:"Przełącz osadzenie",publishLibrary:"Opublikuj",submit:"Prześlij",confirm:"Zatwierdź",embeddableInteractionButton:"Kliknij, aby wejść w interakcję"},i={clearReset:"To spowoduje usunięcie wszystkiego z dokumentu. Czy chcesz kontynuować?",couldNotCreateShareableLink:"Wystąpił błąd przy generowaniu linka do udostępniania.",couldNotCreateShareableLinkTooBig:"Nie można utworzyć linku do udostępnienia: scena jest za duża",couldNotLoadInvalidFile:"Nie udało się otworzyć pliku. Wybrany plik jest nieprawidłowy.",importBackendFailed:"Wystąpił błąd podczas importowania pliku.",cannotExportEmptyCanvas:"Najpierw musisz coś narysować, aby zapisać dokument.",couldNotCopyToClipboard:"Nie udało się skopiować do schowka.",decryptFailed:"Nie udało się odszyfrować danych.",uploadedSecurly:"By zapewnić Ci prywatność, udostępnianie projektu jest zabezpieczone szyfrowaniem end-to-end, co oznacza, że poza tobą i osobą z którą podzielisz się linkiem, nikt nie ma dostępu do tego co udostępniasz.",loadSceneOverridePrompt:"Wczytanie zewnętrznego rysunku zastąpi istniejącą zawartość. Czy chcesz kontynuować?",collabStopOverridePrompt:`Zatrzymanie sesji nadpisze poprzedni, zapisany lokalnie rysunek. Czy jesteś pewien?
|
|
2
2
|
|
|
3
3
|
(Jeśli chcesz zachować swój lokalny rysunek, po prostu zamknij zakładkę przeglądarki.)`,errorAddingToLibrary:"Nie udało się dodać elementu do biblioteki",errorRemovingFromLibrary:"Nie udało się usunąć elementu z biblioteki",confirmAddLibrary:"To doda {{numShapes}} kształtów do twojej biblioteki. Jesteś pewien?",imageDoesNotContainScene:"Ten obraz nie zawiera żadnych informacji o scenie. Czy włączyłeś osadzanie sceny podczas eksportu?",cannotRestoreFromImage:"Scena nie mogła zostać przywrócona z pliku obrazu",invalidSceneUrl:"Nie udało się zaimportować sceny z podanego adresu URL. Jest ona wadliwa lub nie zawiera poprawnych danych Excalidraw w formacie JSON.",resetLibrary:"To wyczyści twoją bibliotekę. Jesteś pewien?",removeItemsFromsLibrary:"Usunąć {{count}} element(ów) z biblioteki?",invalidEncryptionKey:"Klucz szyfrowania musi składać się z 22 znaków. Współpraca na żywo jest wyłączona.",collabOfflineWarning:`Brak połączenia z Internetem.
|
|
4
4
|
Twoje zmiany nie zostaną zapisane!`},u={unsupportedFileType:"Nieobsługiwany typ pliku.",imageInsertError:"Nie udało się wstawić obrazu. Spróbuj ponownie później...",fileTooBig:"Plik jest zbyt duży. Maksymalny dozwolony rozmiar to {{maxSize}}.",svgImageInsertError:"Nie udało się wstawić obrazu SVG. Znacznik SVG wygląda na nieprawidłowy.",failedToFetchImage:"Nie udało się załadować obrazu.",invalidSVGString:"Nieprawidłowy SVG.",cannotResolveCollabServer:"Nie można połączyć się z serwerem współpracy w czasie rzeczywistym. Proszę odświeżyć stronę i spróbować ponownie.",importLibraryError:"Wystąpił błąd w trakcie ładowania biblioteki",collabSaveFailed:"Nie udało się zapisać w bazie danych. Jeśli problemy nie ustąpią, zapisz plik lokalnie, aby nie utracić swojej pracy.",collabSaveFailed_sizeExceeded:"Nie udało się zapisać w bazie danych — dokument jest za duży. Zapisz plik lokalnie, aby nie utracić swojej pracy.",imageToolNotSupported:"Dodawanie obrazów jest wyłączone.",brave_measure_text_error:{line1:"Wygląda na to, że używasz przeglądarki Brave z włączonym ustawieniem <bold>Agressively Block Fingerprinting</bold>.",line2:"Może to doprowadzić do złamania <bold>elementów tekstu</bold> na rysunkach.",line3:"Zdecydowanie zalecamy wyłączenie tego ustawienia. Możesz wykonać <link>te kroki</link>, aby to zrobić.",line4:"Jeśli wyłączenie tego ustawienia nie naprawia wyświetlania elementów tekstowych, zgłoś <issueLink>problem</issueLink> na naszym GitHubie lub napisz do nas na <discordLink>Discordzie</discordLink>"},libraryElementTypeError:{embeddable:"Elementy osadzone nie mogą zostać dodane do biblioteki.",iframe:"Elementy IFrame nie mogą zostać dodane do biblioteki.",image:"Dodawania obrazów do biblioteki nadejdzie wkrótce!"},asyncPasteFailedOnRead:"Nie udało się wkleić (nie udało się odczytać ze schowka systemowego).",asyncPasteFailedOnParse:"Nie udało się wkleić.",copyToSystemClipboardFailed:"Nie udało się skopiować do schowka."},r={selection:"Zaznaczenie",image:"Wstaw obraz",rectangle:"Prostokąt",diamond:"Romb",ellipse:"Elipsa",arrow:"Strzałka",line:"Linia",freedraw:"Rysuj",text:"Tekst",library:"Biblioteka",lock:"Zablokuj wybrane narzędzie",penMode:"Tryb pióra — zapobiegaj dotknięciom",link:"Dodaj/aktualizuj link dla wybranego kształtu",eraser:"Gumka",frame:"Ramka",magicframe:"Wireframe do kodu",embeddable:"Osadzenie z internetu",laser:"Wskaźnik laserowy",hand:"Ręka (narzędzie do przesuwania)",extraTools:"Więcej narzędzi",mermaidToExcalidraw:"Konwertuj diagram Mermaid do Excalidraw",magicSettings:"Ustawienia AI"},n={canvasActions:"Narzędzia",selectedShapeActions:"Wybrane narzędzie",shapes:"Kształty"},t={canvasPanning:"Aby przesunąć płótno, przytrzymaj kółko myszy lub spację podczas przeciągania, albo użyj narzędzia ręki",linearElement:"Naciśnij, aby zrobić punkt, przeciągnij, aby narysować linię",freeDraw:"Naciśnij i przeciągnij by rysować, puść kiedy skończysz",text:"Wskazówka: możesz również dodać tekst klikając dwukrotnie gdziekolwiek za pomocą narzędzia zaznaczania",embeddable:"Kliknij i przeciągnij, aby stworzyć osadzenie strony",text_selected:"Kliknij dwukrotnie lub naciśnij ENTER, aby edytować tekst",text_editing:"Naciśnij Escape lub Ctrl (Cmd w macOS) + ENTER, aby zakończyć edycję",linearElementMulti:"Aby zakończyć krzywą, ponownie kliknij w ostatni punkt, bądź naciśnij Esc albo Enter",lockAngle:"Możesz ograniczyć kąt trzymając SHIFT",resize:"Możesz zachować proporcję trzymająć wcisnięty SHIFT, przytrzymaj ALT by zmienić rozmiar względem środka",resizeImage:`Możesz zmienić rozmiar swobodnie trzymając SHIFT,
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import{as as Za}from"../datalayer-app-main.js";function Ka(Ee,gt){for(var me=0;me<gt.length;me++){const Z=gt[me];if(typeof Z!="string"&&!Array.isArray(Z)){for(const ee in Z)if(ee!=="default"&&!(ee in Ee)){const Ie=Object.getOwnPropertyDescriptor(Z,ee);Ie&&Object.defineProperty(Ee,ee,Ie.get?Ie:{enumerable:!0,get:()=>Z[ee]})}}}return Object.freeze(Object.defineProperty(Ee,Symbol.toStringTag,{value:"Module"}))}var er={exports:{}},As;function Xa(){return As||(As=1,(function(Ee,gt){(function(me){function Z(){var ee=me();return ee.default||ee}Ee.exports=Z()})(function(){var me=Object.create,Z=Object.defineProperty,ee=Object.getOwnPropertyDescriptor,Ie=Object.getOwnPropertyNames,Ms=Object.getPrototypeOf,Ns=Object.prototype.hasOwnProperty,E=(e,r)=>()=>{try{return r||e((r={exports:{}}).exports,r),r.exports}catch(n){throw r=0,n}},sr=(e,r)=>{for(var n in r)Z(e,n,{get:r[n],enumerable:!0})},nr=(e,r,n,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let l of Ie(r))!Ns.call(e,l)&&l!==n&&Z(e,l,{get:()=>r[l],enumerable:!(s=ee(r,l))||s.enumerable});return e},X=(e,r,n)=>(n=e!=null?me(Ms(e)):{},nr(Z(n,"default",{value:e,enumerable:!0}),e)),$s=e=>nr(Z({},"__esModule",{value:!0}),e),Rs=E((e,r)=>{var n=String,s=function(){return{isColorSupported:!1,reset:n,bold:n,dim:n,italic:n,underline:n,inverse:n,hidden:n,strikethrough:n,black:n,red:n,green:n,yellow:n,blue:n,magenta:n,cyan:n,white:n,gray:n,bgBlack:n,bgRed:n,bgGreen:n,bgYellow:n,bgBlue:n,bgMagenta:n,bgCyan:n,bgWhite:n,blackBright:n,redBright:n,greenBright:n,yellowBright:n,blueBright:n,magentaBright:n,cyanBright:n,whiteBright:n,bgBlackBright:n,bgRedBright:n,bgGreenBright:n,bgYellowBright:n,bgBlueBright:n,bgMagentaBright:n,bgCyanBright:n,bgWhiteBright:n}};r.exports=s(),r.exports.createColors=s}),or=E(()=>{}),vt=E((e,r)=>{"use strict";var n=Rs(),s=or(),l=class Es extends Error{constructor(f,m,w,y,c,t){super(f),this.name="CssSyntaxError",this.reason=f,c&&(this.file=c),y&&(this.source=y),t&&(this.plugin=t),typeof m<"u"&&typeof w<"u"&&(typeof m=="number"?(this.line=m,this.column=w):(this.line=m.line,this.column=m.column,this.endLine=w.line,this.endColumn=w.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Es)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(f){if(!this.source)return"";let m=this.source;f==null&&(f=n.isColorSupported);let w=a=>a,y=a=>a,c=a=>a;if(f){let{bold:a,gray:h,red:d}=n.createColors(!0);y=v=>a(d(v)),w=v=>h(v),s&&(c=v=>s(v))}let t=m.split(/\r?\n/),o=Math.max(this.line-3,0),i=Math.min(this.line+2,t.length),u=String(i).length;return t.slice(o,i).map((a,h)=>{let d=o+1+h,v=" "+(" "+d).slice(-u)+" | ";if(d===this.line){if(a.length>160){let x=20,g=Math.max(0,this.column-x),T=Math.max(this.column+x,this.endColumn+x),O=a.slice(g,T),k=w(v.replace(/\d/g," "))+a.slice(0,Math.min(this.column-1,x-1)).replace(/[^\t]/g," ");return y(">")+w(v)+c(O)+`
|
|
2
|
+
`+k+y("^")}let b=w(v.replace(/\d/g," "))+a.slice(0,this.column-1).replace(/[^\t]/g," ");return y(">")+w(v)+c(a)+`
|
|
3
|
+
`+b+y("^")}return" "+w(v)+c(a)}).join(`
|
|
4
|
+
`)}toString(){let f=this.showSourceCode();return f&&(f=`
|
|
5
|
+
|
|
6
|
+
`+f+`
|
|
7
|
+
`),this.name+": "+this.message+f}};r.exports=l,l.default=l}),ir=E((e,r)=>{"use strict";var n=/[\t\n\f\r "#'()/;[\\\]{}]/,s={after:`
|
|
8
|
+
`,beforeClose:`
|
|
9
|
+
`,beforeComment:`
|
|
10
|
+
`,beforeDecl:`
|
|
11
|
+
`,beforeOpen:" ",beforeRule:`
|
|
12
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function l(c){return c[0].toUpperCase()+c.slice(1)}function p(c,t){let o="@"+t.name,i=t.params?c.rawValue(t,"params"):"",u=t.raws.afterName;return typeof u>"u"?u=i?" ":"":u===""&&i&&!n.test(i[0])&&(u=" "),o+u+i}function f(c){if(!c.prop.startsWith("--"))return!1;let t=c.raws.before;return typeof t>"u"||!/[^\s;]$/.test(t)}function m(c,t,o){let i=o.nodes,u=i.length-1;for(;u>0&&i[u].type==="comment";)u-=1;let a=c.raw(o,"semicolon"),h=o.type==="document";for(let d=i.length-1;d>=0;d--){let v=i[d],b=u!==d||a;!b&&d<i.length-1&&(v.type==="atrule"&&!v.nodes||v.type==="decl"&&f(v))&&(b=!0),t.push({document:h,node:v,semicolon:b})}}function w(c,t,o,i){let u=c.raw(o,"between","beforeOpen");c.builder(i+u+"{",o,"start");let a=o.nodes&&o.nodes.length,h=()=>{let d=a?c.raw(o,"after"):c.raw(o,"after","emptyBody");d&&c.builder(d),c.builder("}",o,"end"),o.type==="rule"&&o.raws.ownSemicolon&&c.builder(o.raws.ownSemicolon,o,"end")};a?(t.push(h),m(c,t,o)):h()}var y=class Is{constructor(t){this.builder=t}atrule(t,o){let i=p(this,t);if(t.nodes)this.block(t,i);else{let u=(t.raws.between||"")+(o?";":"");this.builder(i+u,t)}}beforeAfter(t,o){let i;t.type==="decl"?i=this.raw(t,null,"beforeDecl"):t.type==="comment"?i=this.raw(t,null,"beforeComment"):o==="before"?i=this.raw(t,null,"beforeRule"):i=this.raw(t,null,"beforeClose");let u=t.parent,a=0;for(;u&&u.type!=="root";)a+=1,u=u.parent;if(i.includes(`
|
|
13
|
+
`)){let h=this.raw(t,null,"indent");if(h.length)for(let d=0;d<a;d++)i+=h}return i}block(t,o){let i=this.raw(t,"between","beforeOpen");this.builder(o+i+"{",t,"start");let u;t.nodes&&t.nodes.length?(this.body(t),u=this.raw(t,"after")):u=this.raw(t,"after","emptyBody"),u&&this.builder(u),this.builder("}",t,"end")}body(t){let o=Is.prototype,i=["atrule","block","body","rule","stringify"].every(a=>this[a]===o[a]),u=[];for(m(this,u,t);u.length>0;){let a=u.pop();if(typeof a=="function"){a();continue}let h=a.node,d=this.raw(h,"before");d&&this.builder(d),i&&h.type==="rule"?w(this,u,h,this.rawValue(h,"selector")):i&&h.type==="atrule"&&h.nodes?w(this,u,h,p(this,h)):this.stringify(h,a.semicolon)}}comment(t){let o=this.raw(t,"left","commentLeft"),i=this.raw(t,"right","commentRight");this.builder("/*"+o+t.text+i+"*/",t)}decl(t,o){let i=t.raws,u=this.raw(t,"between","colon"),a=t.prop+u+this.rawValue(t,"value");t.important&&(a+=i.important||" !important"),o&&(a+=";"),this.builder(a,t)}document(t){this.body(t)}raw(t,o,i){let u;if(i||(i=o),o&&(u=t.raws[o],typeof u<"u"))return u;let a=t.parent;if(i==="before"&&(!a||a.type==="root"&&a.first===t||a&&a.type==="document"))return"";if(!a)return s[i];let h=t.root(),d=h.rawCache||(h.rawCache={});if(typeof d[i]<"u")return d[i];if(i==="before"||i==="after")return this.beforeAfter(t,i);{let v="raw"+l(i);this[v]?u=this[v](h,t):h.walk(b=>{if(u=b.raws[o],typeof u<"u")return!1})}return typeof u>"u"&&(u=s[i]),d[i]=u,u}rawBeforeClose(t){let o;return t.walk(i=>{if(i.nodes&&i.nodes.length>0&&typeof i.raws.after<"u")return o=i.raws.after,o.includes(`
|
|
14
|
+
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawBeforeComment(t,o){let i;return t.walkComments(u=>{if(typeof u.raws.before<"u")return i=u.raws.before,i.includes(`
|
|
15
|
+
`)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?i=this.raw(o,null,"beforeDecl"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeDecl(t,o){let i;return t.walkDecls(u=>{if(typeof u.raws.before<"u")return i=u.raws.before,i.includes(`
|
|
16
|
+
`)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?i=this.raw(o,null,"beforeRule"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeOpen(t){let o;return t.walk(i=>{if(i.type!=="decl"&&(o=i.raws.between,typeof o<"u"))return!1}),o}rawBeforeRule(t){let o;return t.walk(i=>{if(i.nodes&&(i.parent!==t||t.first!==i)&&typeof i.raws.before<"u")return o=i.raws.before,o.includes(`
|
|
17
|
+
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawColon(t){let o;return t.walkDecls(i=>{if(typeof i.raws.between<"u")return o=i.raws.between.replace(/[^\s:]/g,""),!1}),o}rawEmptyBody(t){let o;return t.walk(i=>{if(i.nodes&&i.nodes.length===0&&(o=i.raws.after,typeof o<"u"))return!1}),o}rawIndent(t){if(t.raws.indent)return t.raws.indent;let o;return t.walk(i=>{let u=i.parent;if(u&&u!==t&&u.parent&&u.parent===t&&typeof i.raws.before<"u"){let a=i.raws.before.split(`
|
|
18
|
+
`);return o=a[a.length-1],o=o.replace(/\S/g,""),!1}}),o}rawSemicolon(t){let o;return t.walk(i=>{if(i.nodes&&i.nodes.length&&i.last.type==="decl"&&(o=i.raws.semicolon,typeof o<"u"))return!1}),o}rawValue(t,o){let i=t[o],u=t.raws[o];return u&&u.value===i?u.raw:i}root(t){!(t.parent&&t.parent.type==="document")&&t.source&&t.source.input.hasBOM&&this.builder("\uFEFF",t,"start"),this.body(t),t.raws.after&&this.builder(t.raws.after)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}stringify(t,o){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,o)}};r.exports=y,y.default=y}),He=E((e,r)=>{"use strict";var n=ir(),s=/(<)(\/?style\b)/gi,l=/(<)(!--)/g;function p(y){return y.includes("<")?y.replace(s,"\\3c $2").replace(l,"\\3c $2"):y}function f(y,c,t){let o=[],i=0,u=0;for(let a=0;a<y.length;a+=3){let h=u,d=i+y[a].length;for(;i<d;)c[i]===t[u]?(i+=1,u+=1):(i+=1,u+=4);o.push(t.slice(h,u))}return o}var m=class extends n{escapeHTML(y){let c=this.builder,t,o;if(this.builder=(u,a,h)=>{t?(o+=u,t.push(u,a,h)):u.includes("<")?(o=u,t=[u,a,h]):c(u,a,h)},y(),this.builder=c,!t)return;let i=p(o);if(i===o)for(let u=0;u<t.length;u+=3)c(t[u],t[u+1],t[u+2]);else{let u=f(t,o,i);for(let a=0;a<t.length;a+=3)c(u[a/3],t[a+1],t[a+2])}}root(y){y.parent&&y.parent.type==="document"?(this.escapeHTML(()=>this.body(y)),y.raws.after&&this.builder(y.raws.after)):this.escapeHTML(()=>super.root(y))}};function w(y,c){let t=new m(c);y.type==="root"||y.type==="document"?t.stringify(y):t.escapeHTML(()=>t.stringify(y))}r.exports=w,w.default=w}),Qe=E((e,r)=>{"use strict";r.exports.isClean=Symbol("isClean"),r.exports.my=Symbol("my")}),Ye=E((e,r)=>{"use strict";var n=vt(),s=ir(),l=He(),{isClean:p,my:f}=Qe();function m(c,t){let o=new c.constructor,i=[[c,o,t]];for(;i.length>0;){let[u,a,h]=i.pop();for(let d in u){if(!Object.prototype.hasOwnProperty.call(u,d)||d==="proxyCache")continue;let v=u[d],b=typeof v;if(d==="parent"&&b==="object")h&&(a[d]=h);else if(d==="source")a[d]=v;else if(Array.isArray(v)){let x=[];a[d]=x;for(let g of v){let T=new g.constructor;x.push(T),i.push([g,T,a])}}else{if(b==="object"&&v!==null){let x=new v.constructor;i.push([v,x,void 0]),v=x}a[d]=v}}}return o}function w(c,t){if(t&&typeof t.offset<"u")return t.offset;let o=1,i=1,u=0;for(let a=0;a<c.length;a++){if(i===t.line&&o===t.column){u=a;break}c[a]===`
|
|
19
|
+
`?(o=1,i+=1):o+=1}return u}var y=class tr{get proxyOf(){return this}constructor(t={}){this.raws={},this[p]=!1,this[f]=!0;for(let o of Object.keys(t))if(o!=="__proto__")if(o==="nodes"){this.nodes=[];for(let i of t[o])typeof i.clone=="function"&&i.parent?this.append(i.clone()):this.append(i)}else this[o]=t[o]}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){let o=this.source;t.stack=t.stack.replace(/\n\s{4}at /,`$&${o.input.from}:${o.start.line}:${o.start.column}$&`)}return t}after(t){return this.parent.insertAfter(this,t),this}assign(t={}){for(let o in t)this[o]=t[o];return this}before(t){return this.parent.insertBefore(this,t),this}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}clone(t={}){let o=m(this);for(let i in t)o[i]=t[i];return o}cloneAfter(t={}){let o=this.clone(t);return this.parent.insertAfter(this,o),o}cloneBefore(t={}){let o=this.clone(t);return this.parent.insertBefore(this,o),o}error(t,o={}){if(this.source){let{end:i,start:u}=this.rangeBy(o);return this.source.input.error(t,{column:u.column,line:u.line},{column:i.column,line:i.line},o)}return new n(t)}getProxyProcessor(){return{get(t,o){return o==="proxyOf"?t:o==="root"?()=>t.root().toProxy():t[o]},set(t,o,i){return t[o]===i||(t[o]=i,(o==="prop"||o==="value"||o==="name"||o==="params"||o==="important"||o==="text")&&t.markDirty()),!0}}}markClean(){this[p]=!0}markDirty(){if(this[p]){this[p]=!1;let t=this;for(;t=t.parent;)t[p]=!1}}next(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t+1]}positionBy(t={}){let o="document"in this.source.input?this.source.input.document:this.source.input.css,i={column:this.source.start.column,line:this.source.start.line,offset:w(o,this.source.start)};if(t.index)i=this.positionInside(t.index);else if(t.word){let u=o.slice(w(o,this.source.start),this.rangeBy().end.offset).indexOf(t.word);u!==-1&&(i=this.positionInside(u))}return i}positionInside(t){let o=this.source.start.column,i=this.source.start.line,u="document"in this.source.input?this.source.input.document:this.source.input.css,a=w(u,this.source.start),h=a+t;for(let d=a;d<h;d++)u[d]===`
|
|
20
|
+
`?(o=1,i+=1):o+=1;return{column:o,line:i,offset:h}}prev(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t-1]}rangeBy(t={}){let o="document"in this.source.input?this.source.input.document:this.source.input.css,i={column:this.source.start.column,line:this.source.start.line,offset:w(o,this.source.start)},u=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:w(o,this.source.end)+1}:{column:i.column+1,line:i.line,offset:i.offset+1};if(t.word){let a=o.slice(w(o,this.source.start),u.offset).indexOf(t.word);a!==-1&&(i=this.positionInside(a),u=this.positionInside(a+t.word.length))}else t.start?i={column:t.start.column,line:t.start.line,offset:w(o,t.start)}:typeof t.index=="number"&&(i=this.positionInside(t.index)),t.end?u={column:t.end.column,line:t.end.line,offset:w(o,t.end)}:typeof t.endIndex=="number"?u=this.positionInside(t.endIndex):typeof t.index=="number"&&(u=this.positionInside(t.index+1));return(u.line<i.line||u.line===i.line&&u.column<=i.column)&&(u={column:i.column+1,line:i.line,offset:i.offset+1}),{end:u,start:i}}raw(t,o){return new s().raw(this,t,o)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...t){if(this.parent){let o=this,i=!1;for(let u of t)u===this?i=!0:i?(this.parent.insertAfter(o,u),o=u):this.parent.insertBefore(o,u);i||this.remove()}return this}root(){let t=this;for(;t.parent&&t.parent.type!=="document";)t=t.parent;return t}toJSON(t,o){let i=o==null;o=o||new Map;let u=[],a=[[this,u,0]];for(let d=0;d<a.length;d++){let[v,b,x]=a[d],g={};b[x]=g;for(let T in v){if(!Object.prototype.hasOwnProperty.call(v,T)||T==="parent"||T==="proxyCache")continue;let O=v[T];if(Array.isArray(O)){let k=[];g[T]=k;for(let _=0;_<O.length;_++){let C=O[_];typeof C=="object"&&C.toJSON?C.toJSON===tr.prototype.toJSON?a.push([C,k,_]):k[_]=C.toJSON(null,o):k[_]=C}}else if(typeof O=="object"&&O.toJSON)O.toJSON===tr.prototype.toJSON?a.push([O,g,T]):g[T]=O.toJSON(null,o);else if(T==="source"){if(O==null)continue;let k=o.get(O.input);k==null&&(k=o.size,o.set(O.input,k)),g[T]={end:O.end,inputId:k,start:O.start}}else g[T]=O}}let h=u[0];return i&&(h.inputs=[...o.keys()].map(d=>d.toJSON())),h}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(t=l){t.stringify&&(t=t.stringify);let o="";return t(this,i=>{o+=i}),o}warn(t,o,i={}){let u={node:this};for(let a in i)u[a]=i[a];return t.warn(o,u)}};r.exports=y,y.default=y}),je=E((e,r)=>{"use strict";var n=Ye(),s=class extends n{constructor(l){super(l),this.type="comment"}};r.exports=s,s.default=s}),Ze=E((e,r)=>{"use strict";var n=Ye(),s=class extends n{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(l){l&&typeof l.value<"u"&&typeof l.value!="string"&&(l={...l,value:String(l.value)}),super(l),this.type="decl"}};r.exports=s,s.default=s}),ce=E((e,r)=>{"use strict";var n=je(),s=Ze(),l=Ye(),{isClean:p,my:f}=Qe(),m,w,y,c;function t(u){let a=u.slice();for(;a.length>0;){let h=a.pop();if(delete h.source,h.nodes){h.nodes=h.nodes.slice();for(let d of h.nodes)a.push(d)}}return u.slice()}function o(u){let a=[u];for(;a.length>0;){let h=a.pop();if(h[p]=!1,h.proxyOf.nodes)for(let d of h.proxyOf.nodes)a.push(d)}}var i=class rr extends l{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...a){for(let h of a){let d=this.normalize(h,this.last);for(let v of d)this.proxyOf.nodes.push(v)}return this.markDirty(),this}cleanRaws(a){let h=[this];for(;h.length>0;){let d=h.pop();if(d!==this&&d.cleanRaws!==rr.prototype.cleanRaws){d.cleanRaws(a);continue}if(l.prototype.cleanRaws.call(d,a),d.nodes)for(let v of d.nodes)h.push(v)}}each(a){if(!this.proxyOf.nodes)return;let h=this.getIterator(),d,v;for(;this.indexes[h]<this.proxyOf.nodes.length&&(d=this.indexes[h],v=a(this.proxyOf.nodes[d],d),v!==!1);)this.indexes[h]+=1;return delete this.indexes[h],v}every(a){return this.nodes.every(a)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let a=this.lastEach;return this.indexes[a]=0,a}getProxyProcessor(){return{get(a,h){return h==="proxyOf"?a:a[h]?h==="each"||typeof h=="string"&&h.startsWith("walk")?(...d)=>a[h](...d.map(v=>typeof v=="function"?(b,x)=>v(b.toProxy(),x):v)):h==="every"||h==="some"?d=>a[h]((v,...b)=>d(v.toProxy(),...b)):h==="root"?()=>a.root().toProxy():h==="nodes"?a.nodes.map(d=>d.toProxy()):h==="first"||h==="last"?a[h].toProxy():a[h]:a[h]},set(a,h,d){return a[h]===d||(a[h]=d,(h==="name"||h==="params"||h==="selector")&&a.markDirty()),!0}}}index(a){return typeof a=="number"?a:(a.proxyOf&&(a=a.proxyOf),this.proxyOf.nodes.indexOf(a))}insertAfter(a,h){let d=this.index(a),v=this.normalize(h,this.proxyOf.nodes[d]).reverse();d=this.index(a);for(let x of v)this.proxyOf.nodes.splice(d+1,0,x);let b;for(let x in this.indexes)b=this.indexes[x],d<b&&(this.indexes[x]=b+v.length);return this.markDirty(),this}insertBefore(a,h){let d=this.index(a),v=d===0?"prepend":!1,b=this.normalize(h,this.proxyOf.nodes[d],v).reverse();d=this.index(a);for(let g of b)this.proxyOf.nodes.splice(d,0,g);let x;for(let g in this.indexes)x=this.indexes[g],d<=x&&(this.indexes[g]=x+b.length);return this.markDirty(),this}normalize(a,h){if(typeof a=="string")a=t(w(a).nodes);else if(typeof a>"u")a=[];else if(Array.isArray(a)){a=a.slice(0);for(let d of a)d.parent&&d.parent.removeChild(d,"ignore")}else if(a.type==="root"&&this.type!=="document"){a=a.nodes.slice(0);for(let d of a)d.parent&&d.parent.removeChild(d,"ignore")}else if(a.type)a=[a];else if(a.prop){if(typeof a.value>"u")throw new Error("Value field is missed in node creation");typeof a.value!="string"&&(a.value=String(a.value)),a=[new s(a)]}else if(a.selector||a.selectors)a=[new c(a)];else if(a.name)a=[new m(a)];else if(a.text)a=[new n(a)];else throw new Error("Unknown node type in node creation");return a.map(d=>(d[f]||rr.rebuild(d),d=d.proxyOf,d.parent&&d.parent.removeChild(d),d[p]&&o(d),d.raws||(d.raws={}),typeof d.raws.before>"u"&&h&&typeof h.raws.before<"u"&&(d.raws.before=h.raws.before.replace(/\S/g,"")),d.parent=this.proxyOf,d))}prepend(...a){a=a.reverse();for(let h of a){let d=this.normalize(h,this.first,"prepend").reverse();for(let v of d)this.proxyOf.nodes.unshift(v);for(let v in this.indexes)this.indexes[v]=this.indexes[v]+d.length}return this.markDirty(),this}push(a){return a.parent=this,this.proxyOf.nodes.push(a),this}removeAll(){for(let a of this.proxyOf.nodes)a.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(a){a=this.index(a),this.proxyOf.nodes[a].parent=void 0,this.proxyOf.nodes.splice(a,1);let h;for(let d in this.indexes)h=this.indexes[d],h>=a&&(this.indexes[d]=h-1);return this.markDirty(),this}replaceValues(a,h,d){return d||(d=h,h={}),this.walkDecls(v=>{h.props&&!h.props.includes(v.prop)||h.fast&&!v.value.includes(h.fast)||(v.value=v.value.replace(a,d))}),this.markDirty(),this}some(a){return this.nodes.some(a)}walk(a){if(!this.proxyOf.nodes)return;let h=[{iterator:this.getIterator(),node:this.proxyOf}];for(;h.length>0;){let{iterator:d,node:v}=h[h.length-1],b=v.indexes[d];if(b>=v.proxyOf.nodes.length){delete v.indexes[d],h.pop();let T=h[h.length-1];T&&(T.node.indexes[T.iterator]+=1);continue}let x=v.proxyOf.nodes[b],g;try{g=a(x,b)}catch(T){throw x.addToError(T)}if(g===!1){for(let T of h)delete T.node.indexes[T.iterator];return!1}x.walk&&x.proxyOf.nodes?h.push({iterator:x.getIterator(),node:x}):v.indexes[d]+=1}}walkAtRules(a,h){return h?a instanceof RegExp?this.walk((d,v)=>{if(d.type==="atrule"&&a.test(d.name))return h(d,v)}):this.walk((d,v)=>{if(d.type==="atrule"&&d.name===a)return h(d,v)}):(h=a,this.walk((d,v)=>{if(d.type==="atrule")return h(d,v)}))}walkComments(a){return this.walk((h,d)=>{if(h.type==="comment")return a(h,d)})}walkDecls(a,h){return h?a instanceof RegExp?this.walk((d,v)=>{if(d.type==="decl"&&a.test(d.prop))return h(d,v)}):this.walk((d,v)=>{if(d.type==="decl"&&d.prop===a)return h(d,v)}):(h=a,this.walk((d,v)=>{if(d.type==="decl")return h(d,v)}))}walkRules(a,h){return h?a instanceof RegExp?this.walk((d,v)=>{if(d.type==="rule"&&a.test(d.selector))return h(d,v)}):this.walk((d,v)=>{if(d.type==="rule"&&d.selector===a)return h(d,v)}):(h=a,this.walk((d,v)=>{if(d.type==="rule")return h(d,v)}))}};i.registerParse=u=>{w=u},i.registerRule=u=>{c=u},i.registerAtRule=u=>{m=u},i.registerRoot=u=>{y=u},r.exports=i,i.default=i,i.rebuild=u=>{let a=[u];for(;a.length>0;){let h=a.pop();if(h.type==="atrule"?Object.setPrototypeOf(h,m.prototype):h.type==="rule"?Object.setPrototypeOf(h,c.prototype):h.type==="decl"?Object.setPrototypeOf(h,s.prototype):h.type==="comment"?Object.setPrototypeOf(h,n.prototype):h.type==="root"&&Object.setPrototypeOf(h,y.prototype),h[f]=!0,h.nodes)for(let d of h.nodes)a.push(d)}}}),Ls=E((e,r)=>{var n="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",s=(p,f=21)=>(m=f)=>{let w="",y=m|0;for(;y-- >0;)w+=p[Math.random()*p.length|0];return w},l=(p=21)=>{let f="",m=p|0;for(;m-- >0;)f+=n[Math.random()*64|0];return f};r.exports={nanoid:l,customAlphabet:s}}),Ws=E(()=>{}),ar=E((e,r)=>{r.exports=class{}}),Pe=E((e,r)=>{"use strict";var{nanoid:n}=Ls(),{isAbsolute:s,resolve:l}={},{SourceMapConsumer:p,SourceMapGenerator:f}=Ws(),{fileURLToPath:m,pathToFileURL:w}={},y=vt(),c=ar(),t=or(),o=Symbol("lineToIndexCache"),i=!!(p&&f),u=!!(l&&s);function a(d){if(d[o])return d[o];let v=d.css.split(`
|
|
21
|
+
`),b=new Array(v.length),x=0;for(let g=0,T=v.length;g<T;g++)b[g]=x,x+=v[g].length+1;return d[o]=b,b}var h=class{get from(){return this.file||this.id}constructor(d,v={}){if(d===null||typeof d>"u"||typeof d=="object"&&!d.toString)throw new Error(`PostCSS received ${d} instead of CSS string`);if(this.css=d.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,v.document&&(this.document=v.document.toString()),v.from&&(!u||/^\w+:\/\//.test(v.from)||s(v.from)?this.file=v.from:this.file=l(v.from)),u&&i){let b=new c(this.css,v);if(b.text){this.map=b;let x=b.consumer().file;!this.file&&x&&(this.file=this.mapResolve(x))}}this.file||(this.id="<input css "+n(6)+">"),this.map&&(this.map.file=this.from)}error(d,v,b,x={}){let g,T,O,k,_;if(v&&typeof v=="object"){let I=v,P=b;if(typeof I.offset=="number"){k=I.offset;let N=this.fromOffset(k);v=N.line,b=N.col}else v=I.line,b=I.column,k=this.fromLineAndColumn(v,b);if(typeof P.offset=="number"){O=P.offset;let N=this.fromOffset(O);T=N.line,g=N.col}else T=P.line,g=P.column,O=this.fromLineAndColumn(P.line,P.column)}else if(b)k=this.fromLineAndColumn(v,b);else{k=v;let I=this.fromOffset(k);v=I.line,b=I.col}let C=this.origin(v,b,T,g);return C?_=new y(d,C.endLine===void 0?C.line:{column:C.column,line:C.line},C.endLine===void 0?C.column:{column:C.endColumn,line:C.endLine},C.source,C.file,x.plugin):_=new y(d,T===void 0?v:{column:b,line:v},T===void 0?b:{column:g,line:T},this.css,this.file,x.plugin),_.input={column:b,endColumn:g,endLine:T,endOffset:O,line:v,offset:k,source:this.css},this.file&&(w&&(_.input.url=w(this.file).toString()),_.input.file=this.file),_}fromLineAndColumn(d,v){return a(this)[d-1]+v-1}fromOffset(d){let v=a(this),b=v[v.length-1],x=0;if(d>=b)x=v.length-1;else{let g=v.length-2,T;for(;x<g;)if(T=x+(g-x>>1),d<v[T])g=T-1;else if(d>=v[T+1])x=T+1;else{x=T;break}}return{col:d-v[x]+1,line:x+1}}mapResolve(d){return/^\w+:\/\//.test(d)?d:l(this.map.consumer().sourceRoot||this.map.root||".",d)}origin(d,v,b,x){if(!this.map)return!1;let g=this.map.consumer(),T=g.originalPositionFor({column:v-1,line:d});if(!T.source)return!1;let O;if(typeof b=="number"){let I=g.originalPositionFor({column:x-1,line:b});I.source&&(O=I)}let k;s(T.source)?k=w(T.source):k=new URL(T.source,w(this.map.mapFile||l(".")+"/"));let _={column:T.column+1,endColumn:O&&O.column+1,endLine:O&&O.line,line:T.line,url:k.toString()};if(k.protocol==="file:")if(m)_.file=m(k);else throw new Error("file: protocol is not available in this PostCSS build");let C=g.sourceContentFor(T.source);return C&&(_.source=C),_}toJSON(){let d={};for(let v of["hasBOM","css","file","id"])this[v]!=null&&(d[v]=this[v]);return this.map&&(d.map={...this.map},d.map.consumerCache&&(d.map.consumerCache=void 0)),d}};r.exports=h,h.default=h,t&&t.registerInput&&t.registerInput(h)}),wt=E((e,r)=>{"use strict";var n=ce(),s=class extends n{constructor(l){super(l),this.type="atrule"}append(...l){return this.proxyOf.nodes||(this.nodes=[]),super.append(...l)}prepend(...l){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...l)}};r.exports=s,s.default=s,n.registerAtRule(s)}),Me=E((e,r)=>{"use strict";var n=ce(),s,l,p=class extends n{constructor(f){super(f),this.type="root",this.nodes||(this.nodes=[])}normalize(f,m,w){let y=new Set;for(let t of Array.isArray(f)?f:[f])t&&typeof t=="object"&&!t.parent&&t.raws&&typeof t.raws.before<"u"&&y.add(t.raws);let c=super.normalize(f);if(m){if(w==="prepend")this.nodes.length>1?m.raws.before=this.nodes[1].raws.before:delete m.raws.before;else if(this.first!==m)for(let t of c)y.has(t.raws)||(t.raws.before=m.raws.before)}return c}removeChild(f,m){let w=this.index(f);return!m&&w===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[w].raws.before),super.removeChild(f)}toResult(f={}){return new s(new l,this,f).stringify()}};p.registerLazyResult=f=>{s=f},p.registerProcessor=f=>{l=f},r.exports=p,p.default=p,n.registerRoot(p)}),ur=E((e,r)=>{"use strict";var n={comma(s){return n.split(s,[","],!0)},space(s){let l=[" ",`
|
|
22
|
+
`," "];return n.split(s,l)},split(s,l,p){if(typeof s!="string")return[];let f=[],m="",w=!1,y=0,c=!1,t="",o=!1,i=!1;for(let a=0;a<s.length;a++){let h=s[a];if(i){m+=h,h==="*"&&s[a+1]==="/"&&(m+="/",a+=1,i=!1);continue}if(o)o=!1;else if(h==="\\")o=!0;else if(c)h===t&&(c=!1);else if(h==='"'||h==="'")c=!0,t=h;else if(h==="/"&&s[a+1]==="*"){m+="/*",a+=1,i=!0;continue}else h==="("?y+=1:h===")"?y>0&&(y-=1):y===0&&l.includes(h)&&(w=!0);if(w){let d=m.trim();(p||d!=="")&&f.push(d),m="",w=!1}else m+=h}let u=m.trim();return(p||u!=="")&&f.push(u),f}};r.exports=n,n.default=n}),bt=E((e,r)=>{"use strict";var n=ce(),s=ur(),l=class extends n{get selectors(){return s.comma(this.selector)}set selectors(p){let f=this.selector?this.selector.match(/,\s*/):null,m=f?f[0]:","+this.raw("between","beforeOpen");this.selector=p.join(m)}constructor(p){super(p),this.type="rule",this.nodes||(this.nodes=[])}};r.exports=l,l.default=l,n.registerRule(l)}),xt=E((e,r)=>{"use strict";var n=/[\t\n\f\r "#'()/;[\\\]{}]/g,s=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,l=/.[\r\n"'(/\\]/,p=/[\da-f]/i;r.exports=function(f,m={}){let w=f.css.valueOf(),y=m.ignoreErrors,c,t,o,i,u,a,h,d,v,b,x=w.length,g=0,T=[],O=[],k=-1;function _(){return g}function C(R){throw f.error("Unclosed "+R,g)}function I(){return O.length===0&&g>=x}function P(R){if(O.length)return O.pop();if(g>=x)return;let $=R?R.ignoreUnclosed:!1;switch(c=w.charCodeAt(g),c){case 10:case 32:case 9:case 13:case 12:{i=g;do i+=1,c=w.charCodeAt(i);while(c===32||c===10||c===9||c===13||c===12);a=["space",w.slice(g,i)],g=i-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let M=String.fromCharCode(c);a=[M,M,g];break}case 40:{if(b=T.length?T.pop()[1]:"",v=w.charCodeAt(g+1),b==="url"&&v!==39&&v!==34&&v!==32&&v!==10&&v!==9&&v!==12&&v!==13){i=g;do{if(h=!1,i=w.indexOf(")",i+1),i===-1)if(y||$){i=g;break}else C("bracket");for(d=i;w.charCodeAt(d-1)===92;)d-=1,h=!h}while(h);a=["brackets",w.slice(g,i+1),g,i],g=i}else g<=k?a=["(","(",g]:(i=w.indexOf(")",g+1),t=w.slice(g,i+1),i===-1||l.test(t)?(k=i===-1?x:i,a=["(","(",g]):(a=["brackets",t,g,i],g=i));break}case 39:case 34:{u=c===39?"'":'"',i=g;do{if(h=!1,i=w.indexOf(u,i+1),i===-1)if(y||$){i=g+1;break}else C("string");for(d=i;w.charCodeAt(d-1)===92;)d-=1,h=!h}while(h);a=["string",w.slice(g,i+1),g,i],g=i;break}case 64:{n.lastIndex=g+1,n.test(w),n.lastIndex===0?i=w.length-1:i=n.lastIndex-2,a=["at-word",w.slice(g,i+1),g,i],g=i;break}case 92:{for(i=g,o=!0;w.charCodeAt(i+1)===92;)i+=1,o=!o;if(c=w.charCodeAt(i+1),o&&c!==47&&c!==32&&c!==10&&c!==9&&c!==13&&c!==12&&(i+=1,p.test(w.charAt(i)))){for(;p.test(w.charAt(i+1));)i+=1;w.charCodeAt(i+1)===32&&(i+=1)}a=["word",w.slice(g,i+1),g,i],g=i;break}default:{c===47&&w.charCodeAt(g+1)===42?(i=w.indexOf("*/",g+2)+1,i===0&&(y||$?i=w.length:C("comment")),a=["comment",w.slice(g,i+1),g,i],g=i):(s.lastIndex=g+1,s.test(w),s.lastIndex===0?i=w.length-1:i=s.lastIndex-2,a=["word",w.slice(g,i+1),g,i],T.push(a),g=i);break}}return g++,a}function N(R){O.push(R)}return{back:N,endOfFile:I,nextToken:P,position:_}}}),kt=E((e,r)=>{"use strict";var n=wt(),s=je(),l=Ze(),p=Me(),f=bt(),m=xt(),w={empty:!0,space:!0};function y(o){for(let i=o.length-1;i>=0;i--){let u=o[i],a=u[3]||u[2];if(a)return a}}function c(o,i,u){let a="";for(let h=i;h<u;h++)a+=o[h][1];return a}var t=class{constructor(o){this.input=o,this.root=new p,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:o,start:{column:1,line:1,offset:0}}}atrule(o){let i=new n;i.name=o[1].slice(1),i.name===""&&this.unnamedAtrule(i,o),this.init(i,o[2]);let u,a,h,d=!1,v=!1,b=[],x=[];for(;!this.tokenizer.endOfFile();){if(o=this.tokenizer.nextToken(),u=o[0],u==="("||u==="["?x.push(u==="("?")":"]"):u==="{"&&x.length>0?x.push("}"):u===x[x.length-1]&&x.pop(),x.length===0)if(u===";"){i.source.end=this.getPosition(o[2]),i.source.end.offset++,this.semicolon=!0;break}else if(u==="{"){v=!0;break}else if(u==="}"){if(b.length>0){for(h=b.length-1,a=b[h];a&&a[0]==="space";)a=b[--h];a&&(i.source.end=this.getPosition(a[3]||a[2]),i.source.end.offset++)}this.end(o);break}else b.push(o);else b.push(o);if(this.tokenizer.endOfFile()){d=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(b),b.length?(i.raws.afterName=this.spacesAndCommentsFromStart(b),this.raw(i,"params",b),d&&(o=b[b.length-1],i.source.end=this.getPosition(o[3]||o[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),v&&(i.nodes=[],this.current=i)}checkMissedSemicolon(o){let i=this.colon(o);if(i===!1)return;let u=0,a;for(let h=i-1;h>=0&&(a=o[h],!(a[0]!=="space"&&(u+=1,u===2)));h--);throw this.input.error("Missed semicolon",a[0]==="word"?a[3]+1:a[2])}colon(o){let i=0,u,a,h;for(let[d,v]of o.entries()){if(a=v,h=a[0],h==="("&&(i+=1),h===")"&&(i-=1),i===0&&h===":")if(!u)this.doubleColon(a);else{if(u[0]==="word"&&u[1]==="progid")continue;return d}u=a}return!1}comment(o){let i=new s;this.init(i,o[2]),i.source.end=this.getPosition(o[3]||o[2]),i.source.end.offset++;let u=o[1].slice(2,-2);if(!u.trim())i.text="",i.raws.left=u,i.raws.right="";else{let a=u.match(/^(\s*)([^]*\S)(\s*)$/);i.text=a[2],i.raws.left=a[1],i.raws.right=a[3]}}createTokenizer(){this.tokenizer=m(this.input)}decl(o,i){let u=new l;this.init(u,o[0][2]);let a=o[o.length-1];a[0]===";"&&(this.semicolon=!0,o.pop()),u.source.end=this.getPosition(a[3]||a[2]||y(o)),u.source.end.offset++;let h=0;for(;o[h][0]!=="word";)h===o.length-1&&this.unknownWord([o[h]]),h++;u.raws.before+=c(o,0,h),u.source.start=this.getPosition(o[h][2]);let d=h;for(;h<o.length;){let T=o[h][0];if(T===":"||T==="space"||T==="comment")break;h++}u.prop=c(o,d,h);let v=h,b;for(;h<o.length&&(b=o[h],h++,b[0]!==":");)b[0]==="word"&&/\w/.test(b[1])&&this.unknownWord([b]);u.raws.between=c(o,v,h),(u.prop[0]==="_"||u.prop[0]==="*")&&(u.raws.before+=u.prop[0],u.prop=u.prop.slice(1));let x=h;for(;h<o.length;){let T=o[h][0];if(T!=="space"&&T!=="comment")break;h++}let g=o.slice(x,h);o=o.slice(h),this.precheckMissedSemicolon(o);for(let T=o.length-1;T>=0;T--){if(b=o[T],b[1].toLowerCase()==="!important"){u.important=!0;let O=this.stringFrom(o,T);O=this.spacesFromEnd(o)+O,O!==" !important"&&(u.raws.important=O);break}else if(b[1].toLowerCase()==="important"){let O=o.slice(0),k="";for(let _=T;_>0;_--){let C=O[_][0];if(k.trim().startsWith("!")&&C!=="space")break;k=O.pop()[1]+k}k.trim().startsWith("!")&&(u.important=!0,u.raws.important=k,o=O)}if(b[0]!=="space"&&b[0]!=="comment")break}o.some(T=>T[0]!=="space"&&T[0]!=="comment")&&(u.raws.between+=g.map(T=>T[1]).join(""),g=[]),this.raw(u,"value",g.concat(o),i),u.value.includes(":")&&!i&&this.checkMissedSemicolon(o)}doubleColon(o){throw this.input.error("Double colon",{offset:o[2]},{offset:o[2]+o[1].length})}emptyRule(o){let i=new f;this.init(i,o[2]),i.selector="",i.raws.between="",this.current=i}end(o){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(o[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(o)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(o){if(this.spaces+=o[1],this.current.nodes){let i=this.current.nodes[this.current.nodes.length-1];i&&i.type==="rule"&&!i.raws.ownSemicolon&&(i.raws.ownSemicolon=this.spaces,this.spaces="",i.source.end=this.getPosition(o[2]),i.source.end.offset++)}}getPosition(o){let i=this.input.fromOffset(o);return{column:i.col,line:i.line,offset:o}}init(o,i){this.current.push(o),o.source={input:this.input,start:this.getPosition(i)},o.raws.before=this.spaces,this.spaces="",o.type!=="comment"&&(this.semicolon=!1)}other(o){let i=!1,u=null,a=!1,h=null,d=[],v=o[1].startsWith("--"),b=[],x=o;for(;x;){if(u=x[0],b.push(x),u==="("||u==="[")h||(h=x),d.push(u==="("?")":"]");else if(v&&a&&u==="{")h||(h=x),d.push("}");else if(d.length===0)if(u===";")if(a){this.decl(b,v);return}else break;else if(u==="{"){this.rule(b);return}else if(u==="}"){this.tokenizer.back(b.pop()),i=!0;break}else u===":"&&(a=!0);else u===d[d.length-1]&&(d.pop(),d.length===0&&(h=null));x=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(i=!0),d.length>0&&this.unclosedBracket(h),i&&a){if(!v)for(;b.length&&(x=b[b.length-1][0],!(x!=="space"&&x!=="comment"));)this.tokenizer.back(b.pop());this.decl(b,v)}else this.unknownWord(b)}parse(){let o;for(;!this.tokenizer.endOfFile();)switch(o=this.tokenizer.nextToken(),o[0]){case"space":this.spaces+=o[1];break;case";":this.freeSemicolon(o);break;case"}":this.end(o);break;case"comment":this.comment(o);break;case"at-word":this.atrule(o);break;case"{":this.emptyRule(o);break;default:this.other(o);break}this.endFile()}precheckMissedSemicolon(){}raw(o,i,u,a){let h,d,v=u.length,b="",x="",g=!0,T,O;for(let k=0;k<v;k+=1)h=u[k],d=h[0],d==="space"&&k===v-1&&!a?g=!1:d==="comment"?(O=u[k-1]?u[k-1][0]:"empty",T=u[k+1]?u[k+1][0]:"empty",!w[O]&&!w[T]?x===","?g=!1:(b+=h[1],x=h[1].slice(-1)):g=!1):(b+=h[1],x=h[1].slice(-1));if(!g){let k=u.reduce((_,C)=>_+C[1],"");o.raws[i]={raw:k,value:b}}o[i]=b}rule(o){o.pop();let i=new f;this.init(i,o[0][2]),i.raws.between=this.spacesAndCommentsFromEnd(o),this.raw(i,"selector",o),this.current=i}spacesAndCommentsFromEnd(o){let i,u="";for(;o.length&&(i=o[o.length-1][0],!(i!=="space"&&i!=="comment"));)u=o.pop()[1]+u;return u}spacesAndCommentsFromStart(o){let i,u="";for(;o.length&&(i=o[0][0],!(i!=="space"&&i!=="comment"));)u+=o.shift()[1];return u}spacesFromEnd(o){let i,u="";for(;o.length&&(i=o[o.length-1][0],i==="space");)u=o.pop()[1]+u;return u}stringFrom(o,i){let u="";for(let a=i;a<o.length;a++)u+=o[a][1];return o.splice(i,o.length-i),u}unclosedBlock(){let o=this.current.source.start;throw this.input.error("Unclosed block",o.line,o.column)}unclosedBracket(o){throw this.input.error("Unclosed bracket",{offset:o[2]},{offset:o[2]+1})}unexpectedClose(o){throw this.input.error("Unexpected }",{offset:o[2]},{offset:o[2]+1})}unknownWord(o){throw this.input.error("Unknown word "+o[0][1],{offset:o[0][2]},{offset:o[0][2]+o[0][1].length})}unnamedAtrule(o,i){throw this.input.error("At-rule without name",{offset:i[2]},{offset:i[2]+i[1].length})}};r.exports=t}),Ke=E((e,r)=>{"use strict";var n=ce(),s=Pe(),l=kt();function p(f,m){let w=new s(f,m),y=new l(w);try{y.parse()}catch(c){throw c}return y.root}r.exports=p,p.default=p,n.registerParse(p)}),Ot=E((e,r)=>{"use strict";var n=ce(),s,l,p=class extends n{constructor(f){super({type:"document",...f}),this.nodes||(this.nodes=[])}toResult(f={}){return new s(new l,this,f).stringify()}};p.registerLazyResult=f=>{s=f},p.registerProcessor=f=>{l=f},r.exports=p,p.default=p}),zs=E((e,r)=>{"use strict";var n=wt(),s=je(),l=Ze(),p=Pe(),f=ar(),m=Me(),w=bt();function y(o,i){return o.inputs?o.inputs.map(u=>{let a={...u,__proto__:p.prototype};return a.map&&(a.map={...a.map,__proto__:f.prototype}),a}):i}function c(o,i,u){let a={...o};if(delete a.inputs,delete a.nodes,a.source){let{inputId:d,...v}=a.source;a.source=v,d!=null&&(a.source.input=i[d])}let h;if(a.type==="root")h=new m(a);else if(a.type==="decl")h=new l(a);else if(a.type==="rule")h=new w(a);else if(a.type==="comment")h=new s(a);else if(a.type==="atrule")h=new n(a);else throw new Error("Unknown node type: "+o.type);if(u){h.nodes=u;for(let d of u)d.parent=h}return h}function t(o,i){if(Array.isArray(o))return o.map(h=>t(h));let u,a=[{childIndex:0,children:[],inputs:y(o,i),json:o}];for(;a.length>0;){let h=a[a.length-1],d=h.json.nodes;if(d&&h.childIndex<d.length){let b=d[h.childIndex];h.childIndex+=1,a.push({childIndex:0,children:[],inputs:y(b,h.inputs),json:b});continue}a.pop();let v=c(h.json,h.inputs,d?h.children:void 0);a.length>0?a[a.length-1].children.push(v):u=v}return u}r.exports=t,t.default=t}),lr=E((e,r)=>{r.exports=class{generate(){}}}),cr=E((e,r)=>{"use strict";var n=ce(),{my:s}=Qe(),l=class{constructor(p,f={}){if(this.type="warning",this.text=p,f.node&&f.node.source){f.node[s]||n.rebuild(f.node);let m=f.node.rangeBy(f);this.line=m.start.line,this.column=m.start.column,this.endLine=m.end.line,this.endColumn=m.end.column}for(let m in f)this[m]=f[m]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,start:this.start,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};r.exports=l,l.default=l}),Tt=E((e,r)=>{"use strict";var n=cr(),s=class{get content(){return this.css}constructor(l,p,f){this.processor=l,this.messages=[],this.root=p,this.opts=f,this.css="",this.map=void 0}toString(){return this.css}warn(l,p={}){p.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(p.plugin=this.lastPlugin.postcssPlugin);let f=new n(l,p);return this.messages.push(f),f}warnings(){return this.messages.filter(l=>l.type==="warning")}};r.exports=s,s.default=s}),pr=E((e,r)=>{"use strict";var n={};r.exports=function(s){n[s]||(n[s]=!0,typeof console<"u"&&console.warn&&console.warn(s))}}),fr=E((e,r)=>{"use strict";var n=ce(),s=Ot(),l=lr(),p=Ke(),f=Tt(),m=Me(),w=He(),{isClean:y,my:c}=Qe(),t=pr(),o={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},i={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},u={Once:!0,postcssPlugin:!0,prepare:!0},a=0;function h(T){return typeof T=="object"&&typeof T.then=="function"}function d(T){let O=!1,k=o[T.type];return T.type==="decl"?O=T.prop.toLowerCase():T.type==="atrule"&&(O=T.name.toLowerCase()),O&&T.append?[k,k+"-"+O,a,k+"Exit",k+"Exit-"+O]:O?[k,k+"-"+O,k+"Exit",k+"Exit-"+O]:T.append?[k,a,k+"Exit"]:[k,k+"Exit"]}function v(T){let O;return T.type==="document"?O=["Document",a,"DocumentExit"]:T.type==="root"?O=["Root",a,"RootExit"]:O=d(T),{eventIndex:0,events:O,iterator:0,node:T,visitorIndex:0,visitors:[]}}function b(T){let O=[T];for(;O.length>0;){let k=O.pop();if(k[y]=!1,k.nodes)for(let _ of k.nodes)O.push(_)}return T}var x={},g=class js{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(O,k,_){this.stringified=!1,this.processed=!1;let C;if(typeof k=="object"&&k!==null&&(k.type==="root"||k.type==="document"))C=b(k);else if(k instanceof js||k instanceof f)C=b(k.root),k.map&&(typeof _.map>"u"&&(_.map={}),_.map.inline||(_.map.inline=!1),_.map.prev=k.map);else{let I=p;_.syntax&&(I=_.syntax.parse),_.parser&&(I=_.parser),I.parse&&(I=I.parse);try{C=I(k,_)}catch(P){this.processed=!0,this.error=P}C&&!C[c]&&n.rebuild(C)}this.result=new f(O,C,_),this.helpers={...x,postcss:x,result:this.result},this.plugins=this.processor.plugins.map(I=>typeof I=="object"&&I.prepare?{...I,...I.prepare(this.result)}:I)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(O){return this.async().catch(O)}finally(O){return this.async().finally(O)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(O,k){let _=this.result.lastPlugin;try{k&&k.addToError(O),this.error=O,O.name==="CssSyntaxError"&&!O.plugin?(O.plugin=_.postcssPlugin,O.setMessage()):_.postcssVersion}catch(C){console&&console.error&&console.error(C)}return O}prepareVisitors(){this.listeners={};let O=(k,_,C)=>{this.listeners[_]||(this.listeners[_]=[]),this.listeners[_].push([k,C])};for(let k of this.plugins)if(typeof k=="object")for(let _ in k){if(!i[_]&&/^[A-Z]/.test(_))throw new Error(`Unknown event ${_} in ${k.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!u[_])if(typeof k[_]=="object")for(let C in k[_])C==="*"?O(k,_,k[_][C]):O(k,_+"-"+C.toLowerCase(),k[_][C]);else typeof k[_]=="function"&&O(k,_,k[_])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let O=0;O<this.plugins.length;O++){let k=this.plugins[O],_=this.runOnRoot(k);if(h(_))try{await _}catch(C){throw this.handleError(C)}}if(this.prepareVisitors(),this.hasListener){let O=this.result.root;for(;!O[y];){O[y]=!0;let k=[v(O)];for(;k.length>0;){let _=this.visitTick(k);if(h(_))try{await _}catch(C){let I=k[k.length-1].node;throw this.handleError(C,I)}}}if(this.listeners.OnceExit)for(let[k,_]of this.listeners.OnceExit){this.result.lastPlugin=k;try{if(O.type==="document"){let C=O.nodes.map(I=>_(I,this.helpers));await Promise.all(C)}else await _(O,this.helpers)}catch(C){throw this.handleError(C)}}}return this.processed=!0,this.stringify()}runOnRoot(O){this.result.lastPlugin=O;try{if(typeof O=="object"&&O.Once){if(this.result.root.type==="document"){let k=this.result.root.nodes.map(_=>O.Once(_,this.helpers));return h(k[0])?Promise.all(k):k}return O.Once(this.result.root,this.helpers)}else if(typeof O=="function")return O(this.result.root,this.result)}catch(k){throw this.handleError(k)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let O=this.result.opts,k=w;O.syntax&&(k=O.syntax.stringify),O.stringifier&&(k=O.stringifier),k.stringify&&(k=k.stringify);let _=this.result.root.source;if(O.map===void 0&&!(_&&_.input&&_.input.map)){let I="";return k(this.result.root,P=>{I+=P}),this.result.css=I,this.result}let C=new l(k,this.result.root,this.result.opts).generate();return this.result.css=C[0],this.result.map=C[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let O of this.plugins){let k=this.runOnRoot(O);if(h(k))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let O=this.result.root;for(;!O[y];)O[y]=!0,this.walkSync(O);if(this.listeners.OnceExit)if(O.type==="document")for(let k of O.nodes)this.visitSync(this.listeners.OnceExit,k);else this.visitSync(this.listeners.OnceExit,O)}return this.result}then(O,k){return this.async().then(O,k)}toString(){return this.css}visitSync(O,k){for(let[_,C]of O){this.result.lastPlugin=_;let I;try{I=C(k,this.helpers)}catch(P){throw this.handleError(P,k.proxyOf)}if(k.type!=="root"&&k.type!=="document"&&!k.parent)return!0;if(h(I))throw this.getAsyncError()}}visitTick(O){let k=O[O.length-1],{node:_,visitors:C}=k;if(_.type!=="root"&&_.type!=="document"&&!_.parent){O.pop();return}if(C.length>0&&k.visitorIndex<C.length){let[P,N]=C[k.visitorIndex];k.visitorIndex+=1,k.visitorIndex===C.length&&(k.visitors=[],k.visitorIndex=0),this.result.lastPlugin=P;try{return N(_.toProxy(),this.helpers)}catch(R){throw this.handleError(R,_)}}if(k.iterator!==0){let P=k.iterator;k.descending&&(k.descending=!1,_.indexes[P]+=1);let N;for(;N=_.nodes[_.indexes[P]];){if(!N[y]){N[y]=!0,k.descending=!0,O.push(v(N));return}_.indexes[P]+=1}k.iterator=0,delete _.indexes[P]}let I=k.events;for(;k.eventIndex<I.length;){let P=I[k.eventIndex];if(k.eventIndex+=1,P===a){_.nodes&&_.nodes.length&&(_[y]=!0,k.iterator=_.getIterator());return}else if(this.listeners[P]){k.visitors=this.listeners[P];return}}O.pop()}walkSync(O){O[y]=!0;let k=[{eventIndex:0,events:d(O),iterator:0,node:O}];for(;k.length>0;){let _=k[k.length-1],C=_.node;if(_.iterator!==0){let I=_.iterator;_.descending&&(_.descending=!1,C.indexes[I]+=1);let P,N=!1;for(;P=C.nodes[C.indexes[I]];){if(!P[y]){P[y]=!0,_.descending=!0,k.push({eventIndex:0,events:d(P),iterator:0,node:P}),N=!0;break}C.indexes[I]+=1}if(N)continue;_.iterator=0,delete C.indexes[I]}if(_.eventIndex<_.events.length){let I=_.events[_.eventIndex];if(_.eventIndex+=1,I===a)C.nodes&&C.nodes.length&&(_.iterator=C.getIterator());else{let P=this.listeners[I];P&&this.visitSync(P,C.toProxy())&&k.pop()}continue}k.pop()}}warnings(){return this.sync().warnings()}};g.registerPostcss=T=>{x=T},r.exports=g,g.default=g,m.registerLazyResult(g),s.registerLazyResult(g)}),Bs=E((e,r)=>{"use strict";var n=lr(),s=Ke(),l=Tt(),p=He(),f=pr(),m=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let w,y=s;try{w=y(this._css,this._opts)}catch(c){this.error=c}if(this.error)throw this.error;return this._root=w,w}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(w,y,c){y=y.toString(),this.stringified=!1,this._processor=w,this._css=y,this._opts=c,this._map=void 0;let t=p;this.result=new l(this._processor,void 0,this._opts),this.result.css=y;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let i=new n(t,void 0,this._opts,y);if(i.isMap()){let[u,a]=i.generate();u&&(this.result.css=u),a&&(this.result.map=a)}else i.clearAnnotation(),this.result.css=i.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(w){return this.async().catch(w)}finally(w){return this.async().finally(w)}sync(){if(this.error)throw this.error;return this.result}then(w,y){return this.async().then(w,y)}toString(){return this._css}warnings(){return[]}};r.exports=m,m.default=m}),qs=E((e,r)=>{"use strict";var n=Ot(),s=fr(),l=Bs(),p=Me(),f=class{constructor(m=[]){this.version="8.5.32",this.plugins=this.normalize(m)}normalize(m){let w=[];for(let y of m)if(y.postcss===!0?y=y():y.postcss&&(y=y.postcss),typeof y=="object"&&Array.isArray(y.plugins))w=w.concat(y.plugins);else if(typeof y=="object"&&y.postcssPlugin)w.push(y);else if(typeof y=="function")w.push(y);else if(!(typeof y=="object"&&(y.parse||y.stringify)))throw new Error(y+" is not a PostCSS plugin");return w}process(m,w={}){return!this.plugins.length&&!w.parser&&!w.stringifier&&!w.syntax?new l(this,m,w):new s(this,m,w)}use(m){return this.plugins=this.plugins.concat(this.normalize([m])),this}};r.exports=f,f.default=f,p.registerProcessor(f),n.registerProcessor(f)}),_t=E((e,r)=>{"use strict";var n=wt(),s=je(),l=ce(),p=vt(),f=Ze(),m=Ot(),w=zs(),y=Pe(),c=fr(),t=ur(),o=Ye(),i=Ke(),u=qs(),a=Tt(),h=Me(),d=bt(),v=He(),b=cr();function x(...g){return g.length===1&&Array.isArray(g[0])&&(g=g[0]),new u(g)}x.plugin=function(g,T){let O=!1;function k(...C){console&&console.warn&&!O&&(O=!0,console.warn(g+`: postcss.plugin was deprecated. Migration guide:
|
|
23
|
+
https://evilmartians.com/chronicles/postcss-8-plugin-migration`));let I=T(...C);return I.postcssPlugin=g,I.postcssVersion=new u().version,I}let _;return Object.defineProperty(k,"postcss",{get(){return _||(_=k()),_}}),k.process=function(C,I,P){return x([k(P)]).process(C,I)},k},x.stringify=v,x.parse=i,x.fromJSON=w,x.list=t,x.comment=g=>new s(g),x.atRule=g=>new n(g),x.decl=g=>new f(g),x.rule=g=>new d(g),x.root=g=>new h(g),x.document=g=>new m(g),x.CssSyntaxError=p,x.Declaration=f,x.Container=l,x.Processor=u,x.Document=m,x.Comment=s,x.Warning=b,x.AtRule=n,x.Result=a,x.Input=y,x.Rule=d,x.Root=h,x.Node=o,c.registerPostcss(x),r.exports=x,x.default=x}),Ds=E((e,r)=>{var{Container:n}=_t(),s=class extends n{constructor(l){super(l),this.type="decl",this.isNested=!0,this.nodes||(this.nodes=[])}};r.exports=s}),Us=E((e,r)=>{"use strict";var n=/[\t\n\f\r "#'()/;[\\\]{}]/g,s=/[,\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,l=/.[\r\n"'(/\\]/,p=/[\da-f]/i,f=/[\n\f\r]/g;r.exports=function(m,w={}){let y=m.css.valueOf(),c=w.ignoreErrors,t,o,i,u,a,h,d,v,b,x=y.length,g=0,T=[],O=[],k;function _(){return g}function C($){throw m.error("Unclosed "+$,g)}function I(){return O.length===0&&g>=x}function P(){let $=1,M=!1,z=!1;for(;$>0;)o+=1,y.length<=o&&C("interpolation"),t=y.charCodeAt(o),v=y.charCodeAt(o+1),M?!z&&t===M?(M=!1,z=!1):t===92?z=!z:z&&(z=!1):t===39||t===34?M=t:t===125?$-=1:t===35&&v===123&&($+=1)}function N($){if(O.length)return O.pop();if(g>=x)return;let M=$?$.ignoreUnclosed:!1;switch(t=y.charCodeAt(g),t){case 10:case 32:case 9:case 13:case 12:{o=g;do o+=1,t=y.charCodeAt(o);while(t===32||t===10||t===9||t===13||t===12);b=["space",y.slice(g,o)],g=o-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let z=String.fromCharCode(t);b=[z,z,g];break}case 44:{b=["word",",",g,g+1];break}case 40:{if(d=T.length?T.pop()[1]:"",v=y.charCodeAt(g+1),d==="url"&&v!==39&&v!==34){for(k=1,h=!1,o=g+1;o<=y.length-1;){if(v=y.charCodeAt(o),v===92)h=!h;else if(v===40)k+=1;else if(v===41&&(k-=1,k===0))break;o+=1}u=y.slice(g,o+1),b=["brackets",u,g,o],g=o}else o=y.indexOf(")",g+1),u=y.slice(g,o+1),o===-1||l.test(u)?b=["(","(",g]:(b=["brackets",u,g,o],g=o);break}case 39:case 34:{for(i=t,o=g,h=!1;o<x&&(o++,o===x&&C("string"),t=y.charCodeAt(o),v=y.charCodeAt(o+1),!(!h&&t===i));)t===92?h=!h:h?h=!1:t===35&&v===123&&P();b=["string",y.slice(g,o+1),g,o],g=o;break}case 64:{n.lastIndex=g+1,n.test(y),n.lastIndex===0?o=y.length-1:o=n.lastIndex-2,b=["at-word",y.slice(g,o+1),g,o],g=o;break}case 92:{for(o=g,a=!0;y.charCodeAt(o+1)===92;)o+=1,a=!a;if(t=y.charCodeAt(o+1),a&&t!==47&&t!==32&&t!==10&&t!==9&&t!==13&&t!==12&&(o+=1,p.test(y.charAt(o)))){for(;p.test(y.charAt(o+1));)o+=1;y.charCodeAt(o+1)===32&&(o+=1)}b=["word",y.slice(g,o+1),g,o],g=o;break}default:v=y.charCodeAt(g+1),t===35&&v===123?(o=g,P(),u=y.slice(g,o+1),b=["word",u,g,o],g=o):t===47&&v===42?(o=y.indexOf("*/",g+2)+1,o===0&&(c||M?o=y.length:C("comment")),b=["comment",y.slice(g,o+1),g,o],g=o):t===47&&v===47?(f.lastIndex=g+1,f.test(y),f.lastIndex===0?o=y.length-1:o=f.lastIndex-2,u=y.slice(g,o+1),b=["comment",u,g,o,"inline"],g=o):(s.lastIndex=g+1,s.test(y),s.lastIndex===0?o=y.length-1:o=s.lastIndex-2,b=["word",y.slice(g,o+1),g,o],T.push(b),g=o);break}return g++,b}function R($){O.push($)}return{back:R,endOfFile:I,nextToken:N,position:_}}}),Fs=E((e,r)=>{var{Comment:n}=_t(),s=kt(),l=Ds(),p=Us(),f=class extends s{atrule(m){let w=m[1],y=m;for(;!this.tokenizer.endOfFile();){let c=this.tokenizer.nextToken();if(c[0]==="word"&&c[2]===y[3]+1)w+=c[1],y=c;else{this.tokenizer.back(c);break}}super.atrule(["at-word",w,m[2],y[3]])}comment(m){if(m[4]==="inline"){let w=new n;this.init(w,m[2]),w.raws.inline=!0;let y=this.input.fromOffset(m[3]);w.source.end={column:y.col,line:y.line,offset:m[3]+1};let c=m[1].slice(2);if(/^\s*$/.test(c))w.text="",w.raws.left=c,w.raws.right="";else{let t=c.match(/^(\s*)([^]*\S)(\s*)$/),o=t[2].replace(/(\*\/|\/\*)/g,"*//*");w.text=o,w.raws.left=t[1],w.raws.right=t[3],w.raws.text=t[2]}}else super.comment(m)}createTokenizer(){this.tokenizer=p(this.input)}raw(m,w,y,c){if(super.raw(m,w,y,c),m.raws[w]){let t=m.raws[w].raw;m.raws[w].raw=y.reduce((o,i)=>{if(i[0]==="comment"&&i[4]==="inline"){let u=i[1].slice(2).replace(/(\*\/|\/\*)/g,"*//*");return o+"/*"+u+"*/"}else return o+i[1]},""),t!==m.raws[w].raw&&(m.raws[w].scss=t)}}rule(m){let w=!1,y=0,c="";for(let t of m)if(w)t[0]!=="comment"&&t[0]!=="{"&&(c+=t[1]);else{if(t[0]==="space"&&t[1].includes(`
|
|
24
|
+
`))break;t[0]==="("?y+=1:t[0]===")"?y-=1:y===0&&t[0]===":"&&(w=!0)}if(!w||c.trim()===""||/^[#:A-Za-z-]/.test(c))super.rule(m);else{m.pop();let t=new l;this.init(t,m[0][2]);let o;for(let u=m.length-1;u>=0;u--)if(m[u][0]!=="space"){o=m[u];break}if(o[3]){let u=this.input.fromOffset(o[3]);t.source.end={column:u.col,line:u.line,offset:o[3]+1}}else{let u=this.input.fromOffset(o[2]);t.source.end={column:u.col,line:u.line,offset:o[2]+1}}for(;m[0][0]!=="word";)t.raws.before+=m.shift()[1];if(m[0][2]){let u=this.input.fromOffset(m[0][2]);t.source.start={column:u.col,line:u.line,offset:m[0][2]}}for(t.prop="";m.length;){let u=m[0][0];if(u===":"||u==="space"||u==="comment")break;t.prop+=m.shift()[1]}t.raws.between="";let i;for(;m.length;)if(i=m.shift(),i[0]===":"){t.raws.between+=i[1];break}else t.raws.between+=i[1];(t.prop[0]==="_"||t.prop[0]==="*")&&(t.raws.before+=t.prop[0],t.prop=t.prop.slice(1)),t.raws.between+=this.spacesAndCommentsFromStart(m),this.precheckMissedSemicolon(m);for(let u=m.length-1;u>0;u--){if(i=m[u],i[1]==="!important"){t.important=!0;let a=this.stringFrom(m,u);a=this.spacesFromEnd(m)+a,a!==" !important"&&(t.raws.important=a);break}else if(i[1]==="important"){let a=m.slice(0),h="";for(let d=u;d>0;d--){let v=a[d][0];if(h.trim().indexOf("!")===0&&v!=="space")break;h=a.pop()[1]+h}h.trim().indexOf("!")===0&&(t.important=!0,t.raws.important=h,m=a)}if(i[0]!=="space"&&i[0]!=="comment")break}this.raw(t,"value",m),t.value.includes(":")&&this.checkMissedSemicolon(m),this.current=t}}};r.exports=f}),Vs=E((e,r)=>{var{Input:n}=_t(),s=Fs();r.exports=function(l,p){let f=new n(l,p),m=new s(f);return m.parse(),m.root}}),hr=E(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});function r(n){this.after=n.after,this.before=n.before,this.type=n.type,this.value=n.value,this.sourceIndex=n.sourceIndex}e.default=r}),dr=E(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=hr(),n=s(r);function s(p){return p&&p.__esModule?p:{default:p}}function l(p){var f=this;this.constructor(p),this.nodes=p.nodes,this.after===void 0&&(this.after=this.nodes.length>0?this.nodes[this.nodes.length-1].after:""),this.before===void 0&&(this.before=this.nodes.length>0?this.nodes[0].before:""),this.sourceIndex===void 0&&(this.sourceIndex=this.before.length),this.nodes.forEach(function(m){m.parent=f})}l.prototype=Object.create(n.default.prototype),l.constructor=n.default,l.prototype.walk=function(p,f){for(var m=typeof p=="string"||p instanceof RegExp,w=m?f:p,y=typeof p=="string"?new RegExp(p):p,c=0;c<this.nodes.length;c++){var t=this.nodes[c],o=m?y.test(t.type):!0;if(o&&w&&w(t,c,this.nodes)===!1||t.nodes&&t.walk(p,f)===!1)return!1}return!0},l.prototype.each=function(){for(var p=arguments.length<=0||arguments[0]===void 0?function(){}:arguments[0],f=0;f<this.nodes.length;f++){var m=this.nodes[f];if(p(m,f,this.nodes)===!1)return!1}return!0},e.default=l}),Js=E(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseMediaFeature=f,e.parseMediaQuery=m,e.parseMediaList=w;var r=hr(),n=p(r),s=dr(),l=p(s);function p(y){return y&&y.__esModule?y:{default:y}}function f(y){var c=arguments.length<=1||arguments[1]===void 0?0:arguments[1],t=[{mode:"normal",character:null}],o=[],i=0,u="",a=null,h=null,d=c,v=y;y[0]==="("&&y[y.length-1]===")"&&(v=y.substring(1,y.length-1),d++);for(var b=0;b<v.length;b++){var x=v[b];if((x==="'"||x==='"')&&(t[i].isCalculationEnabled===!0?(t.push({mode:"string",isCalculationEnabled:!1,character:x}),i++):t[i].mode==="string"&&t[i].character===x&&v[b-1]!=="\\"&&(t.pop(),i--)),x==="{"?(t.push({mode:"interpolation",isCalculationEnabled:!0}),i++):x==="}"&&(t.pop(),i--),t[i].mode==="normal"&&x===":"){var g=v.substring(b+1);h={type:"value",before:/^(\s*)/.exec(g)[1],after:/(\s*)$/.exec(g)[1],value:g.trim()},h.sourceIndex=h.before.length+b+1+d,a={type:"colon",sourceIndex:b+d,after:h.before,value:":"};break}u+=x}return u={type:"media-feature",before:/^(\s*)/.exec(u)[1],after:/(\s*)$/.exec(u)[1],value:u.trim()},u.sourceIndex=u.before.length+d,o.push(u),a!==null&&(a.before=u.after,o.push(a)),h!==null&&o.push(h),o}function m(y){var c=arguments.length<=1||arguments[1]===void 0?0:arguments[1],t=[],o=0,i=!1,u=void 0;function a(){return{before:"",after:"",value:""}}u=a();for(var h=0;h<y.length;h++){var d=y[h];i?(u.value+=d,(d==="{"||d==="(")&&o++,(d===")"||d==="}")&&o--):d.search(/\s/)!==-1?u.before+=d:(d==="("&&(u.type="media-feature-expression",o++),u.value=d,u.sourceIndex=c+h,i=!0),i&&o===0&&(d===")"||h===y.length-1||y[h+1].search(/\s/)!==-1)&&(["not","only","and"].indexOf(u.value)!==-1&&(u.type="keyword"),u.type==="media-feature-expression"&&(u.nodes=f(u.value,u.sourceIndex)),t.push(Array.isArray(u.nodes)?new l.default(u):new n.default(u)),u=a(),i=!1)}for(var v=0;v<t.length;v++)if(u=t[v],v>0&&(t[v-1].after=u.before),u.type===void 0){if(v>0){if(t[v-1].type==="media-feature-expression"){u.type="keyword";continue}if(t[v-1].value==="not"||t[v-1].value==="only"){u.type="media-type";continue}if(t[v-1].value==="and"){u.type="media-feature-expression";continue}t[v-1].type==="media-type"&&(t[v+1]?u.type=t[v+1].type==="media-feature-expression"?"keyword":"media-feature-expression":u.type="media-feature-expression")}if(v===0){if(!t[v+1]){u.type="media-type";continue}if(t[v+1]&&(t[v+1].type==="media-feature-expression"||t[v+1].type==="keyword")){u.type="media-type";continue}if(t[v+2]){if(t[v+2].type==="media-feature-expression"){u.type="media-type",t[v+1].type="keyword";continue}if(t[v+2].type==="keyword"){u.type="keyword",t[v+1].type="media-type";continue}}if(t[v+3]&&t[v+3].type==="media-feature-expression"){u.type="keyword",t[v+1].type="media-type",t[v+2].type="keyword";continue}}}return t}function w(y){var c=[],t=0,o=0,i=/^(\s*)url\s*\(/.exec(y);if(i!==null){for(var u=i[0].length,a=1;a>0;){var h=y[u];h==="("&&a++,h===")"&&a--,u++}c.unshift(new n.default({type:"url",value:y.substring(0,u).trim(),sourceIndex:i[1].length,before:i[1],after:/^(\s*)/.exec(y.substring(u))[1]})),t=u}for(var d=t;d<y.length;d++){var v=y[d];if(v==="("&&o++,v===")"&&o--,o===0&&v===","){var b=y.substring(t,d),x=/^(\s*)/.exec(b)[1];c.push(new l.default({type:"media-query",value:b.trim(),sourceIndex:t+x.length,nodes:m(b,t),before:x,after:/(\s*)$/.exec(b)[1]})),t=d+1}}var g=y.substring(t),T=/^(\s*)/.exec(g)[1];return c.push(new l.default({type:"media-query",value:g.trim(),sourceIndex:t+T.length,nodes:m(g,t),before:T,after:/(\s*)$/.exec(g)[1]})),c}}),Gs=E(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=p;var r=dr(),n=l(r),s=Js();function l(f){return f&&f.__esModule?f:{default:f}}function p(f){return new n.default({nodes:(0,s.parseMediaList)(f),type:"media-query-list",value:f.trim()})}}),mr=E((e,r)=>{r.exports=function(n,s){if(s=typeof s=="number"?s:1/0,!s)return Array.isArray(n)?n.map(function(p){return p}):n;return l(n,1);function l(p,f){return p.reduce(function(m,w){return Array.isArray(w)&&f<s?m.concat(l(w,f+1)):m.concat(w)},[])}}}),yr=E((e,r)=>{r.exports=function(n,s){for(var l=-1,p=[];(l=n.indexOf(s,l+1))!==-1;)p.push(l);return p}}),gr=E((e,r)=>{"use strict";function n(p,f){for(var m=1,w=p.length,y=p[0],c=p[0],t=1;t<w;++t)if(c=y,y=p[t],f(y,c)){if(t===m){m++;continue}p[m++]=y}return p.length=m,p}function s(p){for(var f=1,m=p.length,w=p[0],y=p[0],c=1;c<m;++c,y=w)if(y=w,w=p[c],w!==y){if(c===f){f++;continue}p[f++]=w}return p.length=f,p}function l(p,f,m){return p.length===0?p:f?(m||p.sort(f),n(p,f)):(m||p.sort(),s(p))}r.exports=l}),be=E((e,r)=>{"use strict";e.__esModule=!0;var n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f};function s(f,m){if(!(f instanceof m))throw new TypeError("Cannot call a class as a function")}var l=function f(m,w){if((typeof m>"u"?"undefined":n(m))!=="object")return m;var y=new m.constructor;for(var c in m)if(m.hasOwnProperty(c)){var t=m[c],o=typeof t>"u"?"undefined":n(t);c==="parent"&&o==="object"?w&&(y[c]=w):t instanceof Array?y[c]=t.map(function(i){return f(i,y)}):y[c]=f(t,y)}return y},p=(function(){function f(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};s(this,f);for(var w in m)this[w]=m[w];var y=m.spaces;y=y===void 0?{}:y;var c=y.before,t=c===void 0?"":c,o=y.after,i=o===void 0?"":o;this.spaces={before:t,after:i}}return f.prototype.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},f.prototype.replaceWith=function(){if(this.parent){for(var m in arguments)this.parent.insertBefore(this,arguments[m]);this.remove()}return this},f.prototype.next=function(){return this.parent.at(this.parent.index(this)+1)},f.prototype.prev=function(){return this.parent.at(this.parent.index(this)-1)},f.prototype.clone=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},w=l(this);for(var y in m)w[y]=m[y];return w},f.prototype.toString=function(){return[this.spaces.before,String(this.value),this.spaces.after].join("")},f})();e.default=p,r.exports=e.default}),J=E(e=>{"use strict";e.__esModule=!0;var r=e.TAG="tag",n=e.STRING="string",s=e.SELECTOR="selector",l=e.ROOT="root",p=e.PSEUDO="pseudo",f=e.NESTING="nesting",m=e.ID="id",w=e.COMMENT="comment",y=e.COMBINATOR="combinator",c=e.CLASS="class",t=e.ATTRIBUTE="attribute",o=e.UNIVERSAL="universal"}),St=E((e,r)=>{"use strict";e.__esModule=!0;var n=(function(){function i(u,a){for(var h=0;h<a.length;h++){var d=a[h];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(u,d.key,d)}}return function(u,a,h){return a&&i(u.prototype,a),h&&i(u,h),u}})(),s=be(),l=w(s),p=J(),f=m(p);function m(i){if(i&&i.__esModule)return i;var u={};if(i!=null)for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(u[a]=i[a]);return u.default=i,u}function w(i){return i&&i.__esModule?i:{default:i}}function y(i,u){if(!(i instanceof u))throw new TypeError("Cannot call a class as a function")}function c(i,u){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:i}function t(i,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);i.prototype=Object.create(u&&u.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(i,u):i.__proto__=u)}var o=(function(i){t(u,i);function u(a){y(this,u);var h=c(this,i.call(this,a));return h.nodes||(h.nodes=[]),h}return u.prototype.append=function(a){return a.parent=this,this.nodes.push(a),this},u.prototype.prepend=function(a){return a.parent=this,this.nodes.unshift(a),this},u.prototype.at=function(a){return this.nodes[a]},u.prototype.index=function(a){return typeof a=="number"?a:this.nodes.indexOf(a)},u.prototype.removeChild=function(a){a=this.index(a),this.at(a).parent=void 0,this.nodes.splice(a,1);var h=void 0;for(var d in this.indexes)h=this.indexes[d],h>=a&&(this.indexes[d]=h-1);return this},u.prototype.removeAll=function(){for(var d=this.nodes,a=Array.isArray(d),h=0,d=a?d:d[Symbol.iterator]();;){var v;if(a){if(h>=d.length)break;v=d[h++]}else{if(h=d.next(),h.done)break;v=h.value}var b=v;b.parent=void 0}return this.nodes=[],this},u.prototype.empty=function(){return this.removeAll()},u.prototype.insertAfter=function(a,h){var d=this.index(a);this.nodes.splice(d+1,0,h);var v=void 0;for(var b in this.indexes)v=this.indexes[b],d<=v&&(this.indexes[b]=v+this.nodes.length);return this},u.prototype.insertBefore=function(a,h){var d=this.index(a);this.nodes.splice(d,0,h);var v=void 0;for(var b in this.indexes)v=this.indexes[b],d<=v&&(this.indexes[b]=v+this.nodes.length);return this},u.prototype.each=function(a){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var h=this.lastEach;if(this.indexes[h]=0,!!this.length){for(var d=void 0,v=void 0;this.indexes[h]<this.length&&(d=this.indexes[h],v=a(this.at(d),d),v!==!1);)this.indexes[h]+=1;if(delete this.indexes[h],v===!1)return!1}},u.prototype.walk=function(a){return this.each(function(h,d){var v=a(h,d);if(v!==!1&&h.length&&(v=h.walk(a)),v===!1)return!1})},u.prototype.walkAttributes=function(a){var h=this;return this.walk(function(d){if(d.type===f.ATTRIBUTE)return a.call(h,d)})},u.prototype.walkClasses=function(a){var h=this;return this.walk(function(d){if(d.type===f.CLASS)return a.call(h,d)})},u.prototype.walkCombinators=function(a){var h=this;return this.walk(function(d){if(d.type===f.COMBINATOR)return a.call(h,d)})},u.prototype.walkComments=function(a){var h=this;return this.walk(function(d){if(d.type===f.COMMENT)return a.call(h,d)})},u.prototype.walkIds=function(a){var h=this;return this.walk(function(d){if(d.type===f.ID)return a.call(h,d)})},u.prototype.walkNesting=function(a){var h=this;return this.walk(function(d){if(d.type===f.NESTING)return a.call(h,d)})},u.prototype.walkPseudos=function(a){var h=this;return this.walk(function(d){if(d.type===f.PSEUDO)return a.call(h,d)})},u.prototype.walkTags=function(a){var h=this;return this.walk(function(d){if(d.type===f.TAG)return a.call(h,d)})},u.prototype.walkUniversals=function(a){var h=this;return this.walk(function(d){if(d.type===f.UNIVERSAL)return a.call(h,d)})},u.prototype.split=function(a){var h=this,d=[];return this.reduce(function(v,b,x){var g=a.call(h,b);return d.push(b),g?(v.push(d),d=[]):x===h.length-1&&v.push(d),v},[])},u.prototype.map=function(a){return this.nodes.map(a)},u.prototype.reduce=function(a,h){return this.nodes.reduce(a,h)},u.prototype.every=function(a){return this.nodes.every(a)},u.prototype.some=function(a){return this.nodes.some(a)},u.prototype.filter=function(a){return this.nodes.filter(a)},u.prototype.sort=function(a){return this.nodes.sort(a)},u.prototype.toString=function(){return this.map(String).join("")},n(u,[{key:"first",get:function(){return this.at(0)}},{key:"last",get:function(){return this.at(this.length-1)}},{key:"length",get:function(){return this.nodes.length}}]),u})(l.default);e.default=o,r.exports=e.default}),Hs=E((e,r)=>{"use strict";e.__esModule=!0;var n=St(),s=p(n),l=J();function p(c){return c&&c.__esModule?c:{default:c}}function f(c,t){if(!(c instanceof t))throw new TypeError("Cannot call a class as a function")}function m(c,t){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:c}function w(c,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);c.prototype=Object.create(t&&t.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(c,t):c.__proto__=t)}var y=(function(c){w(t,c);function t(o){f(this,t);var i=m(this,c.call(this,o));return i.type=l.ROOT,i}return t.prototype.toString=function(){var o=this.reduce(function(i,u){var a=String(u);return a?i+a+",":""},"").slice(0,-1);return this.trailingComma?o+",":o},t})(s.default);e.default=y,r.exports=e.default}),Qs=E((e,r)=>{"use strict";e.__esModule=!0;var n=St(),s=p(n),l=J();function p(c){return c&&c.__esModule?c:{default:c}}function f(c,t){if(!(c instanceof t))throw new TypeError("Cannot call a class as a function")}function m(c,t){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:c}function w(c,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);c.prototype=Object.create(t&&t.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(c,t):c.__proto__=t)}var y=(function(c){w(t,c);function t(o){f(this,t);var i=m(this,c.call(this,o));return i.type=l.SELECTOR,i}return t})(s.default);e.default=y,r.exports=e.default}),Ne=E((e,r)=>{"use strict";e.__esModule=!0;var n=(function(){function c(t,o){for(var i=0;i<o.length;i++){var u=o[i];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}return function(t,o,i){return o&&c(t.prototype,o),i&&c(t,i),t}})(),s=be(),l=p(s);function p(c){return c&&c.__esModule?c:{default:c}}function f(c,t){if(!(c instanceof t))throw new TypeError("Cannot call a class as a function")}function m(c,t){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:c}function w(c,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);c.prototype=Object.create(t&&t.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(c,t):c.__proto__=t)}var y=(function(c){w(t,c);function t(){return f(this,t),m(this,c.apply(this,arguments))}return t.prototype.toString=function(){return[this.spaces.before,this.ns,String(this.value),this.spaces.after].join("")},n(t,[{key:"ns",get:function(){var o=this.namespace;return o?(typeof o=="string"?o:"")+"|":""}}]),t})(l.default);e.default=y,r.exports=e.default}),Ys=E((e,r)=>{"use strict";e.__esModule=!0;var n=Ne(),s=p(n),l=J();function p(c){return c&&c.__esModule?c:{default:c}}function f(c,t){if(!(c instanceof t))throw new TypeError("Cannot call a class as a function")}function m(c,t){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:c}function w(c,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);c.prototype=Object.create(t&&t.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(c,t):c.__proto__=t)}var y=(function(c){w(t,c);function t(o){f(this,t);var i=m(this,c.call(this,o));return i.type=l.CLASS,i}return t.prototype.toString=function(){return[this.spaces.before,this.ns,"."+this.value,this.spaces.after].join("")},t})(s.default);e.default=y,r.exports=e.default}),Zs=E((e,r)=>{"use strict";e.__esModule=!0;var n=be(),s=p(n),l=J();function p(c){return c&&c.__esModule?c:{default:c}}function f(c,t){if(!(c instanceof t))throw new TypeError("Cannot call a class as a function")}function m(c,t){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:c}function w(c,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);c.prototype=Object.create(t&&t.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(c,t):c.__proto__=t)}var y=(function(c){w(t,c);function t(o){f(this,t);var i=m(this,c.call(this,o));return i.type=l.COMMENT,i}return t})(s.default);e.default=y,r.exports=e.default}),Ks=E((e,r)=>{"use strict";e.__esModule=!0;var n=Ne(),s=p(n),l=J();function p(c){return c&&c.__esModule?c:{default:c}}function f(c,t){if(!(c instanceof t))throw new TypeError("Cannot call a class as a function")}function m(c,t){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:c}function w(c,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);c.prototype=Object.create(t&&t.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(c,t):c.__proto__=t)}var y=(function(c){w(t,c);function t(o){f(this,t);var i=m(this,c.call(this,o));return i.type=l.ID,i}return t.prototype.toString=function(){return[this.spaces.before,this.ns,"#"+this.value,this.spaces.after].join("")},t})(s.default);e.default=y,r.exports=e.default}),Xs=E((e,r)=>{"use strict";e.__esModule=!0;var n=Ne(),s=p(n),l=J();function p(c){return c&&c.__esModule?c:{default:c}}function f(c,t){if(!(c instanceof t))throw new TypeError("Cannot call a class as a function")}function m(c,t){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:c}function w(c,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);c.prototype=Object.create(t&&t.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(c,t):c.__proto__=t)}var y=(function(c){w(t,c);function t(o){f(this,t);var i=m(this,c.call(this,o));return i.type=l.TAG,i}return t})(s.default);e.default=y,r.exports=e.default}),en=E((e,r)=>{"use strict";e.__esModule=!0;var n=be(),s=p(n),l=J();function p(c){return c&&c.__esModule?c:{default:c}}function f(c,t){if(!(c instanceof t))throw new TypeError("Cannot call a class as a function")}function m(c,t){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:c}function w(c,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);c.prototype=Object.create(t&&t.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(c,t):c.__proto__=t)}var y=(function(c){w(t,c);function t(o){f(this,t);var i=m(this,c.call(this,o));return i.type=l.STRING,i}return t})(s.default);e.default=y,r.exports=e.default}),tn=E((e,r)=>{"use strict";e.__esModule=!0;var n=St(),s=p(n),l=J();function p(c){return c&&c.__esModule?c:{default:c}}function f(c,t){if(!(c instanceof t))throw new TypeError("Cannot call a class as a function")}function m(c,t){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:c}function w(c,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);c.prototype=Object.create(t&&t.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(c,t):c.__proto__=t)}var y=(function(c){w(t,c);function t(o){f(this,t);var i=m(this,c.call(this,o));return i.type=l.PSEUDO,i}return t.prototype.toString=function(){var o=this.length?"("+this.map(String).join(",")+")":"";return[this.spaces.before,String(this.value),o,this.spaces.after].join("")},t})(s.default);e.default=y,r.exports=e.default}),rn=E((e,r)=>{"use strict";e.__esModule=!0;var n=Ne(),s=p(n),l=J();function p(c){return c&&c.__esModule?c:{default:c}}function f(c,t){if(!(c instanceof t))throw new TypeError("Cannot call a class as a function")}function m(c,t){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:c}function w(c,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);c.prototype=Object.create(t&&t.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(c,t):c.__proto__=t)}var y=(function(c){w(t,c);function t(o){f(this,t);var i=m(this,c.call(this,o));return i.type=l.ATTRIBUTE,i.raws={},i}return t.prototype.toString=function(){var o=[this.spaces.before,"[",this.ns,this.attribute];return this.operator&&o.push(this.operator),this.value&&o.push(this.value),this.raws.insensitive?o.push(this.raws.insensitive):this.insensitive&&o.push(" i"),o.push("]"),o.concat(this.spaces.after).join("")},t})(s.default);e.default=y,r.exports=e.default}),sn=E((e,r)=>{"use strict";e.__esModule=!0;var n=Ne(),s=p(n),l=J();function p(c){return c&&c.__esModule?c:{default:c}}function f(c,t){if(!(c instanceof t))throw new TypeError("Cannot call a class as a function")}function m(c,t){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:c}function w(c,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);c.prototype=Object.create(t&&t.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(c,t):c.__proto__=t)}var y=(function(c){w(t,c);function t(o){f(this,t);var i=m(this,c.call(this,o));return i.type=l.UNIVERSAL,i.value="*",i}return t})(s.default);e.default=y,r.exports=e.default}),nn=E((e,r)=>{"use strict";e.__esModule=!0;var n=be(),s=p(n),l=J();function p(c){return c&&c.__esModule?c:{default:c}}function f(c,t){if(!(c instanceof t))throw new TypeError("Cannot call a class as a function")}function m(c,t){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:c}function w(c,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);c.prototype=Object.create(t&&t.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(c,t):c.__proto__=t)}var y=(function(c){w(t,c);function t(o){f(this,t);var i=m(this,c.call(this,o));return i.type=l.COMBINATOR,i}return t})(s.default);e.default=y,r.exports=e.default}),on=E((e,r)=>{"use strict";e.__esModule=!0;var n=be(),s=p(n),l=J();function p(c){return c&&c.__esModule?c:{default:c}}function f(c,t){if(!(c instanceof t))throw new TypeError("Cannot call a class as a function")}function m(c,t){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:c}function w(c,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);c.prototype=Object.create(t&&t.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(c,t):c.__proto__=t)}var y=(function(c){w(t,c);function t(o){f(this,t);var i=m(this,c.call(this,o));return i.type=l.NESTING,i.value="&",i}return t})(s.default);e.default=y,r.exports=e.default}),an=E((e,r)=>{"use strict";e.__esModule=!0,e.default=n;function n(s){return s.sort(function(l,p){return l-p})}r.exports=e.default}),un=E((e,r)=>{"use strict";e.__esModule=!0,e.default=I;var n=39,s=34,l=92,p=47,f=10,m=32,w=12,y=9,c=13,t=43,o=62,i=126,u=124,a=44,h=40,d=41,v=91,b=93,x=59,g=42,T=58,O=38,k=64,_=/[ \n\t\r\{\(\)'"\\;/]/g,C=/[ \n\t\r\(\)\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g;function I(P){for(var N=[],R=P.css.valueOf(),$=void 0,M=void 0,z=void 0,pe=void 0,ue=void 0,le=void 0,_e=void 0,Se=void 0,Ce=void 0,B=void 0,Je=void 0,Xt=R.length,j=-1,S=1,A=0,L=function(W,q){if(P.safe)R+=q,M=R.length-1;else throw P.error("Unclosed "+W,S,A-j,A)};A<Xt;){switch($=R.charCodeAt(A),$===f&&(j=A,S+=1),$){case f:case m:case y:case c:case w:M=A;do M+=1,$=R.charCodeAt(M),$===f&&(j=M,S+=1);while($===m||$===f||$===y||$===c||$===w);N.push(["space",R.slice(A,M),S,A-j,A]),A=M-1;break;case t:case o:case i:case u:M=A;do M+=1,$=R.charCodeAt(M);while($===t||$===o||$===i||$===u);N.push(["combinator",R.slice(A,M),S,A-j,A]),A=M-1;break;case g:N.push(["*","*",S,A-j,A]);break;case O:N.push(["&","&",S,A-j,A]);break;case a:N.push([",",",",S,A-j,A]);break;case v:N.push(["[","[",S,A-j,A]);break;case b:N.push(["]","]",S,A-j,A]);break;case T:N.push([":",":",S,A-j,A]);break;case x:N.push([";",";",S,A-j,A]);break;case h:N.push(["(","(",S,A-j,A]);break;case d:N.push([")",")",S,A-j,A]);break;case n:case s:z=$===n?"'":'"',M=A;do for(B=!1,M=R.indexOf(z,M+1),M===-1&&L("quote",z),Je=M;R.charCodeAt(Je-1)===l;)Je-=1,B=!B;while(B);N.push(["string",R.slice(A,M+1),S,A-j,S,M-j,A]),A=M;break;case k:_.lastIndex=A+1,_.test(R),_.lastIndex===0?M=R.length-1:M=_.lastIndex-2,N.push(["at-word",R.slice(A,M+1),S,A-j,S,M-j,A]),A=M;break;case l:for(M=A,_e=!0;R.charCodeAt(M+1)===l;)M+=1,_e=!_e;$=R.charCodeAt(M+1),_e&&$!==p&&$!==m&&$!==f&&$!==y&&$!==c&&$!==w&&(M+=1),N.push(["word",R.slice(A,M+1),S,A-j,S,M-j,A]),A=M;break;default:$===p&&R.charCodeAt(A+1)===g?(M=R.indexOf("*/",A+2)+1,M===0&&L("comment","*/"),le=R.slice(A,M+1),pe=le.split(`
|
|
25
|
+
`),ue=pe.length-1,ue>0?(Se=S+ue,Ce=M-pe[ue].length):(Se=S,Ce=j),N.push(["comment",le,S,A-j,Se,M-Ce,A]),j=Ce,S=Se,A=M):(C.lastIndex=A+1,C.test(R),C.lastIndex===0?M=R.length-1:M=C.lastIndex-2,N.push(["word",R.slice(A,M+1),S,A-j,S,M-j,A]),A=M);break}A++}return N}r.exports=e.default}),ln=E((e,r)=>{"use strict";e.__esModule=!0;var n=(function(){function j(S,A){for(var L=0;L<A.length;L++){var W=A[L];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(S,W.key,W)}}return function(S,A,L){return A&&j(S.prototype,A),L&&j(S,L),S}})(),s=mr(),l=B(s),p=yr(),f=B(p),m=gr(),w=B(m),y=Hs(),c=B(y),t=Qs(),o=B(t),i=Ys(),u=B(i),a=Zs(),h=B(a),d=Ks(),v=B(d),b=Xs(),x=B(b),g=en(),T=B(g),O=tn(),k=B(O),_=rn(),C=B(_),I=sn(),P=B(I),N=nn(),R=B(N),$=on(),M=B($),z=an(),pe=B(z),ue=un(),le=B(ue),_e=J(),Se=Ce(_e);function Ce(j){if(j&&j.__esModule)return j;var S={};if(j!=null)for(var A in j)Object.prototype.hasOwnProperty.call(j,A)&&(S[A]=j[A]);return S.default=j,S}function B(j){return j&&j.__esModule?j:{default:j}}function Je(j,S){if(!(j instanceof S))throw new TypeError("Cannot call a class as a function")}var Xt=(function(){function j(S){Je(this,j),this.input=S,this.lossy=S.options.lossless===!1,this.position=0,this.root=new c.default;var A=new o.default;return this.root.append(A),this.current=A,this.lossy?this.tokens=(0,le.default)({safe:S.safe,css:S.css.trim()}):this.tokens=(0,le.default)(S),this.loop()}return j.prototype.attribute=function(){var S="",A=void 0,L=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[0]!=="]";)S+=this.tokens[this.position][1],this.position++;this.position===this.tokens.length&&!~S.indexOf("]")&&this.error("Expected a closing square bracket.");var W=S.split(/((?:[*~^$|]?=))([^]*)/),q=W[0].split(/(\|)/g),ne={operator:W[1],value:W[2],source:{start:{line:L[2],column:L[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:L[4]};if(q.length>1?(q[0]===""&&(q[0]=!0),ne.attribute=this.parseValue(q[2]),ne.namespace=this.parseNamespace(q[0])):ne.attribute=this.parseValue(W[0]),A=new C.default(ne),W[2]){var fe=W[2].split(/(\s+i\s*?)$/),he=fe[0].trim();A.value=this.lossy?he:fe[0],fe[1]&&(A.insensitive=!0,this.lossy||(A.raws.insensitive=fe[1])),A.quoted=he[0]==="'"||he[0]==='"',A.raws.unquoted=A.quoted?he.slice(1,-1):he}this.newNode(A),this.position++},j.prototype.combinator=function(){if(this.currToken[1]==="|")return this.namespace();for(var S=new R.default({value:"",source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]});this.position<this.tokens.length&&this.currToken&&(this.currToken[0]==="space"||this.currToken[0]==="combinator");)this.nextToken&&this.nextToken[0]==="combinator"?(S.spaces.before=this.parseSpace(this.currToken[1]),S.source.start.line=this.nextToken[2],S.source.start.column=this.nextToken[3],S.source.end.column=this.nextToken[3],S.source.end.line=this.nextToken[2],S.sourceIndex=this.nextToken[4]):this.prevToken&&this.prevToken[0]==="combinator"?S.spaces.after=this.parseSpace(this.currToken[1]):this.currToken[0]==="combinator"?S.value=this.currToken[1]:this.currToken[0]==="space"&&(S.value=this.parseSpace(this.currToken[1]," ")),this.position++;return this.newNode(S)},j.prototype.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}var S=new o.default;this.current.parent.append(S),this.current=S,this.position++},j.prototype.comment=function(){var S=new h.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]});this.newNode(S),this.position++},j.prototype.error=function(S){throw new this.input.error(S)},j.prototype.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.")},j.prototype.missingParenthesis=function(){return this.error("Expected opening parenthesis.")},j.prototype.missingSquareBracket=function(){return this.error("Expected opening square bracket.")},j.prototype.namespace=function(){var S=this.prevToken&&this.prevToken[1]||!0;if(this.nextToken[0]==="word")return this.position++,this.word(S);if(this.nextToken[0]==="*")return this.position++,this.universal(S)},j.prototype.nesting=function(){this.newNode(new M.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]})),this.position++},j.prototype.parentheses=function(){var S=this.current.last;if(S&&S.type===Se.PSEUDO){var A=new o.default,L=this.current;S.append(A),this.current=A;var W=1;for(this.position++;this.position<this.tokens.length&&W;)this.currToken[0]==="("&&W++,this.currToken[0]===")"&&W--,W?this.parse():(A.parent.source.end.line=this.currToken[2],A.parent.source.end.column=this.currToken[3],this.position++);W&&this.error("Expected closing parenthesis."),this.current=L}else{var q=1;for(this.position++,S.value+="(";this.position<this.tokens.length&&q;)this.currToken[0]==="("&&q++,this.currToken[0]===")"&&q--,S.value+=this.parseParenthesisToken(this.currToken),this.position++;q&&this.error("Expected closing parenthesis.")}},j.prototype.pseudo=function(){for(var S=this,A="",L=this.currToken;this.currToken&&this.currToken[0]===":";)A+=this.currToken[1],this.position++;if(!this.currToken)return this.error("Expected pseudo-class or pseudo-element");if(this.currToken[0]==="word"){var W=void 0;this.splitWord(!1,function(q,ne){A+=q,W=new k.default({value:A,source:{start:{line:L[2],column:L[3]},end:{line:S.currToken[4],column:S.currToken[5]}},sourceIndex:L[4]}),S.newNode(W),ne>1&&S.nextToken&&S.nextToken[0]==="("&&S.error("Misplaced parenthesis.")})}else this.error('Unexpected "'+this.currToken[0]+'" found.')},j.prototype.space=function(){var S=this.currToken;this.position===0||this.prevToken[0]===","||this.prevToken[0]==="("?(this.spaces=this.parseSpace(S[1]),this.position++):this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.spaces.after=this.parseSpace(S[1]),this.position++):this.combinator()},j.prototype.string=function(){var S=this.currToken;this.newNode(new T.default({value:this.currToken[1],source:{start:{line:S[2],column:S[3]},end:{line:S[4],column:S[5]}},sourceIndex:S[6]})),this.position++},j.prototype.universal=function(S){var A=this.nextToken;if(A&&A[1]==="|")return this.position++,this.namespace();this.newNode(new P.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),S),this.position++},j.prototype.splitWord=function(S,A){for(var L=this,W=this.nextToken,q=this.currToken[1];W&&W[0]==="word";){this.position++;var ne=this.currToken[1];if(q+=ne,ne.lastIndexOf("\\")===ne.length-1){var fe=this.nextToken;fe&&fe[0]==="space"&&(q+=this.parseSpace(fe[1]," "),this.position++)}W=this.nextToken}var he=(0,f.default)(q,"."),ht=(0,f.default)(q,"#"),Cs=(0,f.default)(q,"#{");Cs.length&&(ht=ht.filter(function(de){return!~Cs.indexOf(de)}));var Ae=(0,pe.default)((0,w.default)((0,l.default)([[0],he,ht])));Ae.forEach(function(de,Ge){var dt=Ae[Ge+1]||q.length,mt=q.slice(de,dt);if(Ge===0&&A)return A.call(L,mt,Ae.length);var yt=void 0;~he.indexOf(de)?yt=new u.default({value:mt.slice(1),source:{start:{line:L.currToken[2],column:L.currToken[3]+de},end:{line:L.currToken[4],column:L.currToken[3]+(dt-1)}},sourceIndex:L.currToken[6]+Ae[Ge]}):~ht.indexOf(de)?yt=new v.default({value:mt.slice(1),source:{start:{line:L.currToken[2],column:L.currToken[3]+de},end:{line:L.currToken[4],column:L.currToken[3]+(dt-1)}},sourceIndex:L.currToken[6]+Ae[Ge]}):yt=new x.default({value:mt,source:{start:{line:L.currToken[2],column:L.currToken[3]+de},end:{line:L.currToken[4],column:L.currToken[3]+(dt-1)}},sourceIndex:L.currToken[6]+Ae[Ge]}),L.newNode(yt,S)}),this.position++},j.prototype.word=function(S){var A=this.nextToken;return A&&A[1]==="|"?(this.position++,this.namespace()):this.splitWord(S)},j.prototype.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.root},j.prototype.parse=function(S){switch(this.currToken[0]){case"space":this.space();break;case"comment":this.comment();break;case"(":this.parentheses();break;case")":S&&this.missingParenthesis();break;case"[":this.attribute();break;case"]":this.missingSquareBracket();break;case"at-word":case"word":this.word();break;case":":this.pseudo();break;case";":this.missingBackslash();break;case",":this.comma();break;case"*":this.universal();break;case"&":this.nesting();break;case"combinator":this.combinator();break;case"string":this.string();break}},j.prototype.parseNamespace=function(S){if(this.lossy&&typeof S=="string"){var A=S.trim();return A.length?A:!0}return S},j.prototype.parseSpace=function(S,A){return this.lossy?A||"":S},j.prototype.parseValue=function(S){return this.lossy&&S&&typeof S=="string"?S.trim():S},j.prototype.parseParenthesisToken=function(S){return this.lossy?S[0]==="space"?this.parseSpace(S[1]," "):this.parseValue(S[1]):S[1]},j.prototype.newNode=function(S,A){return A&&(S.namespace=this.parseNamespace(A)),this.spaces&&(S.spaces.before=this.spaces,this.spaces=""),this.current.append(S)},n(j,[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}]),j})();e.default=Xt,r.exports=e.default}),cn=E((e,r)=>{"use strict";e.__esModule=!0;var n=(function(){function w(y,c){for(var t=0;t<c.length;t++){var o=c[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(y,o.key,o)}}return function(y,c,t){return c&&w(y.prototype,c),t&&w(y,t),y}})(),s=ln(),l=p(s);function p(w){return w&&w.__esModule?w:{default:w}}function f(w,y){if(!(w instanceof y))throw new TypeError("Cannot call a class as a function")}var m=(function(){function w(y){return f(this,w),this.func=y||function(){},this}return w.prototype.process=function(y){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=new l.default({css:y,error:function(o){throw new Error(o)},options:c});return this.res=t,this.func(t),this},n(w,[{key:"result",get:function(){return String(this.res)}}]),w})();e.default=m,r.exports=e.default}),te=E((e,r)=>{"use strict";var n=function(s,l){let p=new s.constructor;for(let f in s){if(!s.hasOwnProperty(f))continue;let m=s[f],w=typeof m;f==="parent"&&w==="object"?l&&(p[f]=l):f==="source"?p[f]=m:m instanceof Array?p[f]=m.map(y=>n(y,p)):f!=="before"&&f!=="after"&&f!=="between"&&f!=="semicolon"&&(w==="object"&&m!==null&&(m=n(m)),p[f]=m)}return p};r.exports=class{constructor(s){s=s||{},this.raws={before:"",after:""};for(let l in s)this[l]=s[l]}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(){return[this.raws.before,String(this.value),this.raws.after].join("")}clone(s){s=s||{};let l=n(this);for(let p in s)l[p]=s[p];return l}cloneBefore(s){s=s||{};let l=this.clone(s);return this.parent.insertBefore(this,l),l}cloneAfter(s){s=s||{};let l=this.clone(s);return this.parent.insertAfter(this,l),l}replaceWith(){let s=Array.prototype.slice.call(arguments);if(this.parent){for(let l of s)this.parent.insertBefore(this,l);this.remove()}return this}moveTo(s){return this.cleanRaws(this.root()===s.root()),this.remove(),s.append(this),this}moveBefore(s){return this.cleanRaws(this.root()===s.root()),this.remove(),s.parent.insertBefore(s,this),this}moveAfter(s){return this.cleanRaws(this.root()===s.root()),this.remove(),s.parent.insertAfter(s,this),this}next(){let s=this.parent.index(this);return this.parent.nodes[s+1]}prev(){let s=this.parent.index(this);return this.parent.nodes[s-1]}toJSON(){let s={};for(let l in this){if(!this.hasOwnProperty(l)||l==="parent")continue;let p=this[l];p instanceof Array?s[l]=p.map(f=>typeof f=="object"&&f.toJSON?f.toJSON():f):typeof p=="object"&&p.toJSON?s[l]=p.toJSON():s[l]=p}return s}root(){let s=this;for(;s.parent;)s=s.parent;return s}cleanRaws(s){delete this.raws.before,delete this.raws.after,s||delete this.raws.between}positionInside(s){let l=this.toString(),p=this.source.start.column,f=this.source.start.line;for(let m=0;m<s;m++)l[m]===`
|
|
26
|
+
`?(p=1,f+=1):p+=1;return{line:f,column:p}}positionBy(s){let l=this.source.start;if(Object(s).index)l=this.positionInside(s.index);else if(Object(s).word){let p=this.toString().indexOf(s.word);p!==-1&&(l=this.positionInside(p))}return l}}}),Q=E((e,r)=>{"use strict";var n=te(),s=class extends n{constructor(l){super(l),this.nodes||(this.nodes=[])}push(l){return l.parent=this,this.nodes.push(l),this}each(l){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let p=this.lastEach,f,m;if(this.indexes[p]=0,!!this.nodes){for(;this.indexes[p]<this.nodes.length&&(f=this.indexes[p],m=l(this.nodes[f],f),m!==!1);)this.indexes[p]+=1;return delete this.indexes[p],m}}walk(l){return this.each((p,f)=>{let m=l(p,f);return m!==!1&&p.walk&&(m=p.walk(l)),m})}walkType(l,p){if(!l||!p)throw new Error("Parameters {type} and {callback} are required.");let f=typeof l=="function";return this.walk((m,w)=>{if(f&&m instanceof l||!f&&m.type===l)return p.call(this,m,w)})}append(l){return l.parent=this,this.nodes.push(l),this}prepend(l){return l.parent=this,this.nodes.unshift(l),this}cleanRaws(l){if(super.cleanRaws(l),this.nodes)for(let p of this.nodes)p.cleanRaws(l)}insertAfter(l,p){let f=this.index(l),m;this.nodes.splice(f+1,0,p);for(let w in this.indexes)m=this.indexes[w],f<=m&&(this.indexes[w]=m+this.nodes.length);return this}insertBefore(l,p){let f=this.index(l),m;this.nodes.splice(f,0,p);for(let w in this.indexes)m=this.indexes[w],f<=m&&(this.indexes[w]=m+this.nodes.length);return this}removeChild(l){l=this.index(l),this.nodes[l].parent=void 0,this.nodes.splice(l,1);let p;for(let f in this.indexes)p=this.indexes[f],p>=l&&(this.indexes[f]=p-1);return this}removeAll(){for(let l of this.nodes)l.parent=void 0;return this.nodes=[],this}every(l){return this.nodes.every(l)}some(l){return this.nodes.some(l)}index(l){return typeof l=="number"?l:this.nodes.indexOf(l)}get first(){if(this.nodes)return this.nodes[0]}get last(){if(this.nodes)return this.nodes[this.nodes.length-1]}toString(){let l=this.nodes.map(String).join("");return this.value&&(l=this.value+l),this.raws.before&&(l=this.raws.before+l),this.raws.after&&(l+=this.raws.after),l}};s.registerWalker=l=>{let p="walk"+l.name;p.lastIndexOf("s")!==p.length-1&&(p+="s"),!s.prototype[p]&&(s.prototype[p]=function(f){return this.walkType(l,f)})},r.exports=s}),pn=E((e,r)=>{"use strict";var n=Q();r.exports=class extends n{constructor(s){super(s),this.type="root"}}}),fn=E((e,r)=>{"use strict";var n=Q();r.exports=class extends n{constructor(s){super(s),this.type="value",this.unbalanced=0}}}),hn=E((e,r)=>{"use strict";var n=Q(),s=class extends n{constructor(l){super(l),this.type="atword"}toString(){let l=this.quoted?this.raws.quote:"";return[this.raws.before,"@",String.prototype.toString.call(this.value),this.raws.after].join("")}};n.registerWalker(s),r.exports=s}),dn=E((e,r)=>{"use strict";var n=Q(),s=te(),l=class extends s{constructor(p){super(p),this.type="colon"}};n.registerWalker(l),r.exports=l}),mn=E((e,r)=>{"use strict";var n=Q(),s=te(),l=class extends s{constructor(p){super(p),this.type="comma"}};n.registerWalker(l),r.exports=l}),yn=E((e,r)=>{"use strict";var n=Q(),s=te(),l=class extends s{constructor(p){super(p),this.type="comment",this.inline=Object(p).inline||!1}toString(){return[this.raws.before,this.inline?"//":"/*",String(this.value),this.inline?"":"*/",this.raws.after].join("")}};n.registerWalker(l),r.exports=l}),gn=E((e,r)=>{"use strict";var n=Q(),s=class extends n{constructor(l){super(l),this.type="func",this.unbalanced=-1}};n.registerWalker(s),r.exports=s}),vn=E((e,r)=>{"use strict";var n=Q(),s=te(),l=class extends s{constructor(p){super(p),this.type="number",this.unit=Object(p).unit||""}toString(){return[this.raws.before,String(this.value),this.unit,this.raws.after].join("")}};n.registerWalker(l),r.exports=l}),wn=E((e,r)=>{"use strict";var n=Q(),s=te(),l=class extends s{constructor(p){super(p),this.type="operator"}};n.registerWalker(l),r.exports=l}),bn=E((e,r)=>{"use strict";var n=Q(),s=te(),l=class extends s{constructor(p){super(p),this.type="paren",this.parenType=""}};n.registerWalker(l),r.exports=l}),xn=E((e,r)=>{"use strict";var n=Q(),s=te(),l=class extends s{constructor(p){super(p),this.type="string"}toString(){let p=this.quoted?this.raws.quote:"";return[this.raws.before,p,this.value+"",p,this.raws.after].join("")}};n.registerWalker(l),r.exports=l}),kn=E((e,r)=>{"use strict";var n=Q(),s=te(),l=class extends s{constructor(p){super(p),this.type="word"}};n.registerWalker(l),r.exports=l}),On=E((e,r)=>{"use strict";var n=Q(),s=te(),l=class extends s{constructor(p){super(p),this.type="unicode-range"}};n.registerWalker(l),r.exports=l}),Tn=E((e,r)=>{"use strict";var n=class extends Error{constructor(s){super(s),this.name=this.constructor.name,this.message=s||"An error ocurred while tokzenizing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(s).stack}};r.exports=n}),_n=E((e,r)=>{"use strict";var n=/[ \n\t\r\{\(\)'"\\;,/]/g,s=/[ \n\t\r\(\)\{\}\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g,l=/[ \n\t\r\(\)\{\}\*:;@!&'"\-\+\|~>,\[\]\\]|\//g,p=/^[a-z0-9]/i,f=/^[a-f0-9?\-]/i,m=Tn();r.exports=function(w,y){y=y||{};let c=[],t=w.valueOf(),o=t.length,i=-1,u=1,a=0,h=0,d=null,v,b,x,g,T,O,k,_,C,I,P,N;function R(M){let z=`Unclosed ${M} at line: ${u}, column: ${a-i}, token: ${a}`;throw new m(z)}function $(){let M=`Syntax error at line: ${u}, column: ${a-i}, token: ${a}`;throw new m(M)}for(;a<o;){switch(v=t.charCodeAt(a),v===10&&(i=a,u+=1),v){case 10:case 32:case 9:case 13:case 12:b=a;do b+=1,v=t.charCodeAt(b),v===10&&(i=b,u+=1);while(v===32||v===10||v===9||v===13||v===12);c.push(["space",t.slice(a,b),u,a-i,u,b-i,a]),a=b-1;break;case 58:b=a+1,c.push(["colon",t.slice(a,b),u,a-i,u,b-i,a]),a=b-1;break;case 44:b=a+1,c.push(["comma",t.slice(a,b),u,a-i,u,b-i,a]),a=b-1;break;case 123:c.push(["{","{",u,a-i,u,b-i,a]);break;case 125:c.push(["}","}",u,a-i,u,b-i,a]);break;case 40:h++,d=!d&&h===1&&c.length>0&&c[c.length-1][0]==="word"&&c[c.length-1][1]==="url",c.push(["(","(",u,a-i,u,b-i,a]);break;case 41:h--,d=d&&h>0,c.push([")",")",u,a-i,u,b-i,a]);break;case 39:case 34:x=v===39?"'":'"',b=a;do for(I=!1,b=t.indexOf(x,b+1),b===-1&&R("quote",x),P=b;t.charCodeAt(P-1)===92;)P-=1,I=!I;while(I);c.push(["string",t.slice(a,b+1),u,a-i,u,b-i,a]),a=b;break;case 64:n.lastIndex=a+1,n.test(t),n.lastIndex===0?b=t.length-1:b=n.lastIndex-2,c.push(["atword",t.slice(a,b+1),u,a-i,u,b-i,a]),a=b;break;case 92:b=a,v=t.charCodeAt(b+1),k&&v!==47&&v!==32&&v!==10&&v!==9&&v!==13&&v!==12&&(b+=1),c.push(["word",t.slice(a,b+1),u,a-i,u,b-i,a]),a=b;break;case 43:case 45:case 42:b=a+1,N=t.slice(a+1,b+1);let M=t.slice(a-1,a);if(v===45&&N.charCodeAt(0)===45){b++,c.push(["word",t.slice(a,b),u,a-i,u,b-i,a]),a=b-1;break}c.push(["operator",t.slice(a,b),u,a-i,u,b-i,a]),a=b-1;break;default:if(v===47&&(t.charCodeAt(a+1)===42||y.loose&&!d&&t.charCodeAt(a+1)===47)){if(t.charCodeAt(a+1)===42)b=t.indexOf("*/",a+2)+1,b===0&&R("comment","*/");else{let z=t.indexOf(`
|
|
27
|
+
`,a+2);b=z!==-1?z-1:o}O=t.slice(a,b+1),g=O.split(`
|
|
28
|
+
`),T=g.length-1,T>0?(_=u+T,C=b-g[T].length):(_=u,C=i),c.push(["comment",O,u,a-i,_,b-C,a]),i=C,u=_,a=b}else if(v===35&&!p.test(t.slice(a+1,a+2)))b=a+1,c.push(["#",t.slice(a,b),u,a-i,u,b-i,a]),a=b-1;else if((v===117||v===85)&&t.charCodeAt(a+1)===43){b=a+2;do b+=1,v=t.charCodeAt(b);while(b<o&&f.test(t.slice(b,b+1)));c.push(["unicoderange",t.slice(a,b),u,a-i,u,b-i,a]),a=b-1}else if(v===47)b=a+1,c.push(["operator",t.slice(a,b),u,a-i,u,b-i,a]),a=b-1;else{let z=s;if(v>=48&&v<=57&&(z=l),z.lastIndex=a+1,z.test(t),z.lastIndex===0?b=t.length-1:b=z.lastIndex-2,z===l||v===46){let pe=t.charCodeAt(b),ue=t.charCodeAt(b+1),le=t.charCodeAt(b+2);(pe===101||pe===69)&&(ue===45||ue===43)&&le>=48&&le<=57&&(l.lastIndex=b+2,l.test(t),l.lastIndex===0?b=t.length-1:b=l.lastIndex-2)}c.push(["word",t.slice(a,b+1),u,a-i,u,b-i,a]),a=b}break}a++}return c}}),Sn=E((e,r)=>{"use strict";var n=class extends Error{constructor(s){super(s),this.name=this.constructor.name,this.message=s||"An error ocurred while parsing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(s).stack}};r.exports=n}),Cn=E((e,r)=>{"use strict";var n=pn(),s=fn(),l=hn(),p=dn(),f=mn(),m=yn(),w=gn(),y=vn(),c=wn(),t=bn(),o=xn(),i=kn(),u=On(),a=_n(),h=mr(),d=yr(),v=gr(),b=Sn();function x(g){return g.sort((T,O)=>T-O)}r.exports=class{constructor(g,T){let O={loose:!1};this.cache=[],this.input=g,this.options=Object.assign({},O,T),this.position=0,this.unbalanced=0,this.root=new n;let k=new s;this.root.append(k),this.current=k,this.tokens=a(g,this.options)}parse(){return this.loop()}colon(){let g=this.currToken;this.newNode(new p({value:g[1],source:{start:{line:g[2],column:g[3]},end:{line:g[4],column:g[5]}},sourceIndex:g[6]})),this.position++}comma(){let g=this.currToken;this.newNode(new f({value:g[1],source:{start:{line:g[2],column:g[3]},end:{line:g[4],column:g[5]}},sourceIndex:g[6]})),this.position++}comment(){let g=!1,T=this.currToken[1].replace(/\/\*|\*\//g,""),O;this.options.loose&&T.startsWith("//")&&(T=T.substring(2),g=!0),O=new m({value:T,inline:g,source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]}),this.newNode(O),this.position++}error(g,T){throw new b(g+` at line: ${T[2]}, column ${T[3]}`)}loop(){for(;this.position<this.tokens.length;)this.parseTokens();return!this.current.last&&this.spaces?this.current.raws.before+=this.spaces:this.spaces&&(this.current.last.raws.after+=this.spaces),this.spaces="",this.root}operator(){let g=this.currToken[1],T;if(g==="+"||g==="-"){if(this.options.loose||this.position>0&&(this.current.type==="func"&&this.current.value==="calc"?this.prevToken[0]!=="space"&&this.prevToken[0]!=="("?this.error("Syntax Error",this.currToken):this.nextToken[0]!=="space"&&this.nextToken[0]!=="word"?this.error("Syntax Error",this.currToken):this.nextToken[0]==="word"&&this.current.last.type!=="operator"&&this.current.last.value!=="("&&this.error("Syntax Error",this.currToken):(this.nextToken[0]==="space"||this.nextToken[0]==="operator"||this.prevToken[0]==="operator")&&this.error("Syntax Error",this.currToken)),this.options.loose){if((!this.current.nodes.length||this.current.last&&this.current.last.type==="operator")&&this.nextToken[0]==="word")return this.word()}else if(this.nextToken[0]==="word")return this.word()}return T=new c({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),this.position++,this.newNode(T)}parseTokens(){switch(this.currToken[0]){case"space":this.space();break;case"colon":this.colon();break;case"comma":this.comma();break;case"comment":this.comment();break;case"(":this.parenOpen();break;case")":this.parenClose();break;case"atword":case"word":this.word();break;case"operator":this.operator();break;case"string":this.string();break;case"unicoderange":this.unicodeRange();break;default:this.word();break}}parenOpen(){let g=1,T=this.position+1,O=this.currToken,k;for(;T<this.tokens.length&&g;){let _=this.tokens[T];_[0]==="("&&g++,_[0]===")"&&g--,T++}if(g&&this.error("Expected closing parenthesis",O),k=this.current.last,k&&k.type==="func"&&k.unbalanced<0&&(k.unbalanced=0,this.current=k),this.current.unbalanced++,this.newNode(new t({value:O[1],source:{start:{line:O[2],column:O[3]},end:{line:O[4],column:O[5]}},sourceIndex:O[6]})),this.position++,this.current.type==="func"&&this.current.unbalanced&&this.current.value==="url"&&this.currToken[0]!=="string"&&this.currToken[0]!==")"&&!this.options.loose){let _=this.nextToken,C=this.currToken[1],I={line:this.currToken[2],column:this.currToken[3]};for(;_&&_[0]!==")"&&this.current.unbalanced;)this.position++,C+=this.currToken[1],_=this.nextToken;this.position!==this.tokens.length-1&&(this.position++,this.newNode(new i({value:C,source:{start:I,end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]})))}}parenClose(){let g=this.currToken;this.newNode(new t({value:g[1],source:{start:{line:g[2],column:g[3]},end:{line:g[4],column:g[5]}},sourceIndex:g[6]})),this.position++,!(this.position>=this.tokens.length-1&&!this.current.unbalanced)&&(this.current.unbalanced--,this.current.unbalanced<0&&this.error("Expected opening parenthesis",g),!this.current.unbalanced&&this.cache.length&&(this.current=this.cache.pop()))}space(){let g=this.currToken;this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.raws.after+=g[1],this.position++):(this.spaces=g[1],this.position++)}unicodeRange(){let g=this.currToken;this.newNode(new u({value:g[1],source:{start:{line:g[2],column:g[3]},end:{line:g[4],column:g[5]}},sourceIndex:g[6]})),this.position++}splitWord(){let g=this.nextToken,T=this.currToken[1],O=/^[\+\-]?((\d+(\.\d*)?)|(\.\d+))([eE][\+\-]?\d+)?/,k=/^(?!\#([a-z0-9]+))[\#\{\}]/gi,_,C;if(!k.test(T))for(;g&&g[0]==="word";){this.position++;let I=this.currToken[1];T+=I,g=this.nextToken}_=d(T,"@"),C=x(v(h([[0],_]))),C.forEach((I,P)=>{let N=C[P+1]||T.length,R=T.slice(I,N),$;if(~_.indexOf(I))$=new l({value:R.slice(1),source:{start:{line:this.currToken[2],column:this.currToken[3]+I},end:{line:this.currToken[4],column:this.currToken[3]+(N-1)}},sourceIndex:this.currToken[6]+C[P]});else if(O.test(this.currToken[1])){let M=R.replace(O,"");$=new y({value:R.replace(M,""),source:{start:{line:this.currToken[2],column:this.currToken[3]+I},end:{line:this.currToken[4],column:this.currToken[3]+(N-1)}},sourceIndex:this.currToken[6]+C[P],unit:M})}else $=new(g&&g[0]==="("?w:i)({value:R,source:{start:{line:this.currToken[2],column:this.currToken[3]+I},end:{line:this.currToken[4],column:this.currToken[3]+(N-1)}},sourceIndex:this.currToken[6]+C[P]}),$.type==="word"?($.isHex=/^#(.+)/.test(R),$.isColor=/^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(R)):this.cache.push(this.current);this.newNode($)}),this.position++}string(){let g=this.currToken,T=this.currToken[1],O=/^(\"|\')/,k=O.test(T),_="",C;k&&(_=T.match(O)[0],T=T.slice(1,T.length-1)),C=new o({value:T,source:{start:{line:g[2],column:g[3]},end:{line:g[4],column:g[5]}},sourceIndex:g[6],quoted:k}),C.raws.quote=_,this.newNode(C),this.position++}word(){return this.splitWord()}newNode(g){return this.spaces&&(g.raws.before+=this.spaces,this.spaces=""),this.current.append(g)}get currToken(){return this.tokens[this.position]}get nextToken(){return this.tokens[this.position+1]}get prevToken(){return this.tokens[this.position-1]}}}),vr={};sr(vr,{languages:()=>Zi,options:()=>ea,parsers:()=>ms,printers:()=>Ya});var Ct=(e,r)=>(n,s,...l)=>n|1&&s==null?void 0:(r.call(s)??s[e]).apply(s,l),An=String.prototype.replaceAll??function(e,r){return e.global?this.replace(e,r):this.split(e).join(r)},En=Ct("replaceAll",function(){if(typeof this=="string")return An}),D=En;function In(e){return this[e<0?this.length+e:e]}var jn=Ct("at",function(){if(Array.isArray(this)||typeof this=="string")return In}),ye=jn,Pn=()=>{},wr=Pn,br="string",xr="array",kr="cursor",Xe="indent",At="align",Or="trim",et="group",tt="fill",rt="if-break",Tr="indent-if-break",Et="line-suffix",It="line-suffix-boundary",ge="line",_r="label",jt="break-parent",Sr=new Set([kr,Xe,At,Or,et,tt,rt,Tr,Et,It,ge,_r,jt]);function Mn(e,r,n){if(!e.has(r)){let s=n(r);e.set(r,s)}return e.get(r)}function Nn(e){if(typeof e=="string")return br;if(Array.isArray(e))return xr;if(!e)return;let{type:r}=e;if(Sr.has(r))return r}var $e=Nn,$n=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function Rn(e){let r=e===null?"null":typeof e;if(r!=="string"&&r!=="object")return`Unexpected doc '${r}',
|
|
29
|
+
Expected it to be 'string' or 'object'.`;if($e(e))throw new Error("doc is valid.");let n=Object.prototype.toString.call(e);if(n!=="[object Object]")return`Unexpected doc '${n}'.`;let s=$n([...Sr].map(l=>`'${l}'`));return`Unexpected doc.type '${e.type}'.
|
|
30
|
+
Expected it to be ${s}.`}var Ln=class extends Error{name="InvalidDocError";constructor(e){super(Rn(e)),this.doc=e}},Wn=Ln;function Cr(e,r){if(typeof e=="string")return r(e);let n=new Map;return s(e);function s(p){return Mn(n,p,l)}function l(p){switch($e(p)){case xr:return r(p.map(s));case tt:return r({...p,parts:p.parts.map(s)});case rt:return r({...p,breakContents:s(p.breakContents),flatContents:s(p.flatContents)});case et:{let{expandedStates:f,contents:m}=p;return f?(f=f.map(s),m=f[0]):m=s(m),r({...p,contents:m,expandedStates:f})}case At:case Xe:case Tr:case _r:case Et:return r({...p,contents:s(p.contents)});case br:case kr:case Or:case It:case ge:case jt:return r(p);default:throw new Wn(p)}}}function zn(e){return e.type===ge&&!e.hard?e.soft?"":" ":e.type===rt?e.flatContents:e}function Bn(e){return Cr(e,zn)}function qn(e,r=Vn){return Cr(e,n=>typeof n=="string"?oe(r,n.split(`
|
|
31
|
+
`)):n)}var Dn=wr;function G(e){return{type:Xe,contents:e}}function Un(e,r){return{type:At,contents:r,n:e}}function Re(e){return Un(-1,e)}var st={type:jt};function nt(e){return{type:tt,parts:e}}function Y(e,r={}){return Dn(r.expandedStates),{type:et,id:r.id,contents:e,break:!!r.shouldBreak,expandedStates:r.expandedStates}}function Ar(e,r="",n={}){return{type:rt,breakContents:e,flatContents:r,groupId:n.groupId}}function oe(e,r){let n=[];for(let s=0;s<r.length;s++)s!==0&&n.push(e),n.push(r[s]);return n}var F={type:ge},H={type:ge,soft:!0},Fn={type:ge,hard:!0},U=[Fn,st],Er={type:ge,hard:!0,literal:!0},Vn=[Er,st];function Ir(e){return{type:Et,contents:e}}var jr={type:It};function Jn(e){return Array.isArray(e)&&e.length>0}var ot=Jn,Pr=Object.freeze({character:"'",codePoint:39}),Mr=Object.freeze({character:'"',codePoint:34}),Gn=Object.freeze({preferred:Pr,alternate:Mr}),Hn=Object.freeze({preferred:Mr,alternate:Pr});function Qn(e,r){let{preferred:n,alternate:s}=r===!0||r==="'"?Gn:Hn,{length:l}=e,p=0,f=0;for(let m=0;m<l;m++){let w=e.charCodeAt(m);w===n.codePoint?p++:w===s.codePoint&&f++}return(p>f?s:n).character}var Yn=/\\(["'\\])|(["'])/g;function Zn(e,r){let n=r==='"'?"'":'"',s=D(0,e,Yn,(l,p,f)=>p?p===n?n:l:f===r?"\\"+f:f);return r+s+r}var Kn=Zn;function Xn(e,r){let n=e.slice(1,-1),s;return r.parser==="json"||r.parser==="jsonc"||r.parser==="json-stringify"||r.parser==="json5"&&r.quoteProps==="preserve"&&!r.singleQuote?s='"':r.__isInHtmlAttribute?s="'":s=Qn(n,r.singleQuote),e.charAt(0)===s?e:Kn(n,s)}var Nr=Xn,eo=class extends Error{name="UnexpectedNodeError";constructor(e,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}},to=eo;function $r(){}$r.getVisitorKeys=e=>e.type==="css-root"?["frontMatter"]:[];var ro=$r,Le=null;function We(e){if(Le!==null&&typeof Le.property){let r=Le;return Le=We.prototype=null,r}return Le=We.prototype=e??Object.create(null),new We}var so=10;for(let e=0;e<=so;e++)We();function no(e){return We(e)}function oo(e,r="type"){no(e);function n(s){let l=s[r],p=e[l];if(!Array.isArray(p))throw Object.assign(new Error(`Missing visitor keys for '${l}'.`),{node:s});return p}return n}var io=oo,re=[["nodes"],["group"]],ao={"css-root":["frontMatter","nodes"],"css-comment":[],"css-rule":["selector","nodes"],"css-decl":["value","selector","nodes"],"css-atrule":["selector","params","value","nodes"],"media-query-list":re[0],"media-query":re[0],"media-type":[],"media-feature-expression":re[0],"media-feature":[],"media-colon":[],"media-value":[],"media-keyword":[],"media-url":[],"media-unknown":[],"selector-root":re[0],"selector-selector":re[0],"selector-comment":[],"selector-string":[],"selector-tag":[],"selector-id":[],"selector-class":[],"selector-attribute":[],"selector-combinator":re[0],"selector-universal":[],"selector-pseudo":re[0],"selector-nesting":[],"selector-unknown":[],"value-value":re[1],"value-root":re[1],"value-comment":[],"value-comma_group":["groups"],"value-paren_group":["open","groups","close"],"value-func":re[1],"value-paren":[],"value-number":[],"value-operator":[],"value-word":[],"value-colon":[],"value-comma":[],"value-string":[],"value-atword":[],"value-unicode-range":[],"value-unknown":[]},uo=io(ao),lo=uo;function co(e,r){let n=0;for(let s=0;s<e.line-1;++s)n=r.indexOf(`
|
|
32
|
+
`,n)+1;return n+e.column}var Rr=co;function Pt(e){return(r,n,s)=>{if(n===!1)return!1;let l=!!s?.backwards,{length:p}=r,f=n;for(;f>=0&&f<p;){let m=r.charAt(f);if(e instanceof RegExp){if(!e.test(m))return f}else if(!e.includes(m))return f;l?f--:f++}return f===-1||f===p?f:!1}}var Mt=Pt(" "),po=Pt(",; "),Lr=Pt(/[^\n\r]/);function Wr(e,r){let{value:n}=e;return n==="-"||n==="--"||n.charAt(0)!=="-"?r:r-(n.charAt(1)==="-"?2:1)}function zr(e,r){if(typeof e.source?.start?.offset=="number")return e.source.start.offset;if(typeof e.sourceIndex=="number")return e.type==="value-word"?Wr(e,e.sourceIndex):e.sourceIndex;if(e.source?.start)return Rr(e.source.start,r);throw Object.assign(new Error("Can not locate node."),{node:e})}function Nt(e,r){if(e.type==="value-func"&&e.group?.close)return Nt(e.group.close,r);if(e.type==="css-comment"&&e.inline)return Lr(r,e.source.startOffset);if(e.type==="value-paren"&&typeof e.sourceIndex=="number")return e.sourceIndex+(e.value===")"?e.value.length:0);if(typeof e.source?.end?.offset=="number")return e.source.end.offset;if(e.source){if(e.source.end){let n=Rr(e.source.end,r);return e.type==="value-word"?Wr(e,n):n}if(ot(e.nodes))return Nt(ye(0,e.nodes,-1),r);if(e.type==="css-atrule"&&typeof e.name=="string")return zr(e,r)+1+e.name.length+e.raws.afterName.length+e.raws.params.length}return typeof e.sourceIndex=="number"&&typeof e.value=="string"?e.sourceIndex+e.value.length:null}function fo(e,r){$t(e,r,0,!1)}function $t(e,r,n,s){if(s&&typeof e.type=="string")e.source??(e.source={}),e.source.startOffset=n,e.source.endOffset=n+r.length;else if(!(typeof e.source?.startOffset=="number"&&typeof e.source?.endOffset=="number")&&(e.source||typeof e.sourceIndex=="number")){e.source??(e.source={});let l=n+r.length;e.source.startOffset=Math.min(zr(e,r)+n,l);let p=Nt(e,r);e.source.endOffset=typeof p=="number"?Math.min(p+n,l):p}for(let l in e){let p=e[l];if(l==="source"||!p||typeof p!="object")continue;let f=Array.isArray(p)?p:[p];for(let m of f){if(!m||typeof m!="object")continue;let w=ho(e,m,n);w?$t(m,w.text,w.rootOffset,!0):$t(m,r,n,!1),Dr(m,e)}}go(e),vo(e)}function ho(e,r,n){if(r.type==="value-root"||r.type==="value-unknown")return{rootOffset:Br(e),text:r.text||r.value||""};if(r.type==="media-query-list"||e.params===r)return{rootOffset:qr(e),text:e.raws?.params||r.value||""};if(r.type?.startsWith("selector-")){let s=mo(e,r);if(typeof s=="string")return{rootOffset:yo(e,r,s,n),text:s}}}function Br(e){let r=e.source.startOffset;return typeof e.prop=="string"&&(r+=e.prop.length),e.type==="css-atrule"&&typeof e.name=="string"&&(r+=1+e.name.length+e.raws.afterName.match(/^\s*:?\s*/)[0].length),e.type!=="css-atrule"&&typeof e.raws?.between=="string"&&(r+=e.raws.between.length),r}function qr(e){let r=e.source.startOffset;return e.type==="css-atrule"&&typeof e.name=="string"&&(r+=1+e.name.length+e.raws.afterName.match(/^\s*:?\s*/)[0].length),r}function mo(e,r){if(typeof r.raws?.selector=="string")return r.raws.selector;if(e.selector===r){if(e.mixin)return e.raws.identifier+e.name+e.raws.afterName+e.raws.params;if(typeof e.raws?.selector=="string")return e.raws.selector;if(e.customSelector&&typeof e.raws?.params=="string")return e.raws.params.slice(e.customSelector.length).trim();if(typeof e.raws?.params=="string")return e.raws.params;if(e.type==="css-decl"&&typeof e.raws?.value=="string"){let{value:n}=e.raws;return e.extend&&n.startsWith("extend(")?n.slice(7,-1):n}}}function yo(e,r,n,s){return typeof r.sourceIndex=="number"&&typeof r.raws?.selector=="string"?s+r.sourceIndex:e.mixin?e.source.startOffset:typeof e.raws?.selector=="string"?e.source.startOffset+Rt(e.raws.selector,n):typeof e.raws?.params=="string"?qr(e)+Rt(e.raws.params,n):e.type==="css-decl"&&typeof e.raws?.value=="string"?Br(e)+Rt(e.raws.value,n):s}function Rt(e,r){let n=e.indexOf(r);return n===-1?0:n}function go(e){var r,n;if(typeof e.type!="string")return;let s=typeof e.source?.startOffset=="number"&&typeof e.source?.endOffset=="number",l=e.source?.start&&e.source.end;if(s&&l)return;let p=Number.POSITIVE_INFINITY,f=Number.NEGATIVE_INFINITY,m,w;for(let y in e){if(y==="source"||y==="raws"||y==="spaces")continue;let c=e[y],t=Array.isArray(c)?c:[c];for(let o of t)!o||typeof o!="object"||typeof o.source?.startOffset!="number"||typeof o.source?.endOffset!="number"||(o.source.startOffset<p&&(p=o.source.startOffset,m=o.source.start),o.source.endOffset>f&&(f=o.source.endOffset,w=o.source.end))}p!==Number.POSITIVE_INFINITY&&(e.source??(e.source={}),s||(e.source.startOffset=p,e.source.endOffset=f),(r=e.source).start??(r.start=m),(n=e.source).end??(n.end=w))}function Dr(e,r){typeof e.type!="string"||e.source||typeof r.source?.startOffset!="number"||typeof r.source?.endOffset!="number"||!wo(e)||(e.source={startOffset:r.source.startOffset,endOffset:r.source.startOffset,start:r.source.start,end:r.source.start})}function vo(e){if(!(typeof e.source?.startOffset!="number"||typeof e.source?.endOffset!="number"))for(let r in e){if(r==="source"||r==="raws"||r==="spaces")continue;let n=e[r],s=Array.isArray(n)?n:[n];for(let l of s)l&&typeof l=="object"&&Dr(l,e)}}function wo(e){return Array.isArray(e.nodes)&&e.nodes.length===0||Array.isArray(e.groups)&&e.groups.length===0}function bo(e){let r="initial",n="initial",s,l=!1,p=[];for(let f=0;f<e.length;f++){let m=e[f];switch(r){case"initial":if(m==="'"){r="single-quotes";continue}if(m==='"'){r="double-quotes";continue}if((m==="u"||m==="U")&&e.slice(f,f+4).toLowerCase()==="url("){r="url",f+=3;continue}if(m==="/"){let w=e[f+1];w==="*"?(r="comment-block",f++):w==="/"&&(r="comment-inline",s=f,f++);continue}continue;case"single-quotes":if(m==="'"&&e[f-1]!=="\\"&&(r=n,n="initial"),m===`
|
|
33
|
+
`||m==="\r")return e;continue;case"double-quotes":if(m==='"'&&e[f-1]!=="\\"&&(r=n,n="initial"),m===`
|
|
34
|
+
`||m==="\r")return e;continue;case"url":if(m===")")r="initial";else if(m===`
|
|
35
|
+
`||m==="\r")return e;if(m==="'"){r="single-quotes",n="url";continue}if(m==='"'){r="double-quotes",n="url";continue}continue;case"comment-block":m==="/"&&e[f-1]==="*"&&(r="initial");continue;case"comment-inline":m==='"'||m==="'"||m==="*"?l=!0:(m===`
|
|
36
|
+
`||m==="\r")&&(l&&p.push([s,f]),r="initial",l=!1);continue}}for(let[f,m]of p)e=e.slice(0,f)+D(0,e.slice(f,m),/["'*]/g," ")+e.slice(m);return e}var K=e=>e.source.startOffset,V=e=>e.source.endOffset,Ur=Symbol.for("PRETTIER_IS_FRONT_MATTER");function xo(e){return!!e?.[Ur]}var Lt=xo;function ko(e){return D(0,e,/[^\n]/g," ")}var Fr=ko,ze=3;function Oo(e){let r=e.slice(0,ze);if(r!=="---"&&r!=="+++")return;let n=e.indexOf(`
|
|
37
|
+
`,ze);if(n===-1)return;let s=e.slice(ze,n).trim(),l=e.indexOf(`
|
|
38
|
+
${r}`,n),p=s;if(p||(p=r==="+++"?"toml":"yaml"),l===-1&&r==="---"&&p==="yaml"&&(l=e.indexOf(`
|
|
39
|
+
...`,n)),l===-1)return;let f=l+1+ze,m=e.charAt(f+1);if(!/\s?/.test(m))return;let w=e.slice(0,f),y;return{language:p,explicitLanguage:s||null,value:e.slice(n+1,l),startDelimiter:r,endDelimiter:w.slice(-ze),raw:w,start:{line:1,column:0,index:0},end:{index:w.length,get line(){return y??(y=w.split(`
|
|
40
|
+
`)),y.length},get column(){return y??(y=w.split(`
|
|
41
|
+
`)),ye(0,y,-1).length}},[Ur]:!0}}function To(e){let r=Oo(e);return r?{frontMatter:r,get content(){let{raw:n}=r;return Fr(n)+e.slice(n.length)}}:{content:e}}var it=To,_o=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma","spaces"]);function Vr(e,r,n){if(e.type==="css-comment"&&n.type==="css-root"&&n.nodes.length>0&&((n.nodes[0]===e||Lt(n.nodes[0])&&n.nodes[1]===e)&&(delete r.text,/^\*\s*@(?:format|prettier)\s*$/.test(e.text))||n.type==="css-root"&&ye(0,n.nodes,-1)===e))return null;if(e.type==="value-root"&&delete r.text,(e.type==="media-query"||e.type==="media-query-list"||e.type==="media-feature-expression")&&delete r.value,e.type==="css-rule"&&(delete r.params,e.extend&&Co(e.selector)&&delete r.extend),(e.type==="media-feature"||e.type==="media-keyword"||e.type==="media-type"||e.type==="media-unknown"||e.type==="media-url"||e.type==="media-value"||e.type==="selector-attribute"||e.type==="selector-string"||e.type==="selector-class"||e.type==="selector-combinator"||e.type==="value-string")&&e.value&&(r.value=So(e.value)),e.type==="selector-combinator"&&(r.value=D(0,r.value,/\s+/g," ")),e.type==="media-feature"&&(r.value=D(0,r.value," ","")),(e.type==="value-word"&&(e.isColor&&e.isHex||["initial","inherit","unset","revert"].includes(e.value.toLowerCase()))||e.type==="media-feature"||e.type==="selector-root-invalid"||e.type==="selector-pseudo")&&(r.value=r.value.toLowerCase()),e.type==="css-decl"&&(r.prop=e.prop.toLowerCase()),(e.type==="css-atrule"||e.type==="css-import")&&(r.name=e.name.toLowerCase()),e.type==="value-number"&&(r.unit=e.unit.toLowerCase()),e.type==="value-unknown"&&(r.value=D(0,r.value,/;$/g,"")),e.type==="selector-attribute"&&(r.attribute=e.attribute.trim(),e.namespace&&typeof e.namespace=="string"&&(r.namespace=e.namespace.trim()||!0),e.value)){let{value:s}=r;/\s[a-z]$/i.test(s)&&(r.__prettier_attribute_selector_flag=ye(0,s,-1),s=s.slice(0,-1)),s=s.trim(),s=s.replace(/^(?<quote>["'])(?<value>.*?)\k<quote>$/,"$<value>"),r.value=s,delete r.quoted}if((e.type==="media-value"||e.type==="media-type"||e.type==="value-number"||e.type==="selector-root-invalid"||e.type==="selector-class"||e.type==="selector-combinator"||e.type==="selector-tag")&&e.value&&(r.value=D(0,r.value,/([\d+.e-]+)([a-z]*)/gi,(s,l,p)=>{let f=Number(l);return Number.isNaN(f)?s:f+p.toLowerCase()})),e.type==="selector-tag"){let s=r.value.toLowerCase();["from","to"].includes(s)&&(r.value=s)}if(e.type==="css-atrule"&&e.name.toLowerCase()==="supports"&&delete r.value,e.type==="selector-unknown"&&delete r.value,e.type==="value-comma_group"){let s=e.groups.findIndex(l=>l.type==="value-number"&&l.unit==="...");s!==-1&&(r.groups[s].unit="",r.groups.splice(s+1,0,{type:"value-word",value:"...",isColor:!1,isHex:!1}))}if(e.type==="value-comma_group"&&e.groups.some(s=>s.type==="value-atword"&&(s.value.endsWith("[")||s.value.endsWith("]"))||s.type==="value-word"&&(s.value.startsWith("]")||s.value.startsWith("["))))return{type:"value-atword",value:e.groups.map(s=>s.value).join("")};if(e.type==="value-func"&&e.value==="if"&&e.group.type==="value-paren_group"&&e.group.groups.length===1&&e.group.groups[0].type==="value-comma_group"){let s=e.group.groups[0].groups,l=r.group.groups[0].groups;for(let p=s.length-1;p>=0;p--){let f=s[p];if(f.type==="value-word"&&typeof f.value=="string"&&f.value.endsWith(";")){if(f.value===";"){s[p-1]?.type==="value-number"&&l.splice(p-1,2,{type:"#node-placeholder"});continue}l[p]={type:"#node-placeholder"}}}}}Vr.ignoredProperties=_o;function So(e){return D(0,D(0,e,"'",'"'),/\\([^\da-f])/gi,"$1")}function Co(e){return e?.nodes?.some(r=>r.nodes?.some(n=>n.type==="selector-pseudo"&&n.value===":extend"))}var Ao=Object.hasOwn??Function.prototype.call.bind(Object.prototype.hasOwnProperty),Jr=Ao,Eo=/\*\/$/,Io=/^\/\*\*?/,Gr=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,jo=/(^|\s+)\/\/([^\n\r]*)/g,Hr=/^(\r?\n)+/,Po=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,Qr=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,Mo=/(\r?\n|^) *\* ?/g,Yr=[];function No(e){let r=e.match(Gr);return r?r[0].trimStart():""}function $o(e){let r=e.match(Gr)?.[0];return r==null?e:e.slice(r.length)}function Ro(e){e=D(0,e.replace(Io,"").replace(Eo,""),Mo,"$1");let r="";for(;r!==e;)r=e,e=D(0,e,Po,`
|
|
42
|
+
$1 $2
|
|
43
|
+
`);e=e.replace(Hr,"").trimEnd();let n=Object.create(null),s=D(0,e,Qr,"").replace(Hr,"").trimEnd(),l;for(;l=Qr.exec(e);){let p=D(0,l[2],jo,"");if(typeof n[l[1]]=="string"||Array.isArray(n[l[1]])){let f=n[l[1]];n[l[1]]=[...Yr,...Array.isArray(f)?f:[f],p]}else n[l[1]]=p}return{comments:s,pragmas:n}}function Lo({comments:e="",pragmas:r={}}){let n=Object.keys(r),s=n.flatMap(p=>Zr(p,r[p])).map(p=>` * ${p}
|
|
44
|
+
`).join("");if(!e){if(n.length===0)return"";if(n.length===1&&!Array.isArray(r[n[0]])){let p=r[n[0]];return`/** ${Zr(n[0],p)[0]} */`}}let l=e.split(`
|
|
45
|
+
`).map(p=>` * ${p}`).join(`
|
|
46
|
+
`)+`
|
|
47
|
+
`;return`/**
|
|
48
|
+
`+(e?l:"")+(e&&n.length>0?` *
|
|
49
|
+
`:"")+s+" */"}function Zr(e,r){return[...Yr,...Array.isArray(r)?r:[r]].map(n=>`@${e} ${n}`.trim())}var Wo=["noformat","noprettier"],zo=["format","prettier"],Bo="format";function qo(e){if(!e.startsWith("#!"))return"";let r=e.indexOf(`
|
|
50
|
+
`);return r===-1?e:e.slice(0,r)}var Do=qo;function Wt(e){let r=Do(e);r&&(e=e.slice(r.length+1));let n=No(e),{pragmas:s,comments:l}=Ro(n);return{shebang:r,text:e,pragmas:s,comments:l}}function Uo(e){let{pragmas:r}=Wt(e);return zo.some(n=>Jr(r,n))}function Fo(e){let{pragmas:r}=Wt(e);return Wo.some(n=>Jr(r,n))}function Vo(e){let{shebang:r,text:n,pragmas:s,comments:l}=Wt(e),p=$o(n),f=Lo({pragmas:{[Bo]:"",...s},comments:l.trimStart()});return(r?`${r}
|
|
51
|
+
`:"")+f+(p.startsWith(`
|
|
52
|
+
`)?`
|
|
53
|
+
`:`
|
|
54
|
+
|
|
55
|
+
`)+p}var Jo=e=>Uo(it(e).content),Go=e=>Fo(it(e).content),Ho=e=>{let{frontMatter:r,content:n}=it(e);return(r?r.raw+`
|
|
56
|
+
|
|
57
|
+
`:"")+Vo(n)},Qo=new Set(["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"]);function Yo(e){return e.findAncestor(r=>r.type==="css-decl")?.prop?.toLowerCase()}var Zo=new Set(["initial","inherit","unset","revert"]);function Ko(e){return Zo.has(e.toLowerCase())}var Xo=new Set([":nth-child",":nth-last-child",":nth-of-type",":nth-last-of-type"]);function ei(e){return e?.type==="selector-pseudo"&&Xo.has(e.value.toLowerCase())}function ti(e,r){return e.findAncestor(n=>n.type==="css-atrule")?.name?.toLowerCase().endsWith("keyframes")&&["from","to"].includes(r.toLowerCase())}function Be(e){return e.includes("$")||e.includes("@")||e.includes("#")||e.startsWith("%")||e.startsWith("--")||e.startsWith(":--")||e.includes("(")&&e.includes(")")?e:e.toLowerCase()}function qe(e,r){return e.findAncestor(n=>n.type==="value-func")?.value?.toLowerCase()===r}function ri(e){return e.hasAncestor(r=>{if(r.type!=="css-rule")return!1;let n=r.raws?.selector;return n&&(n.startsWith(":import")||n.startsWith(":export"))})}function De(e,r){let n=Array.isArray(r)?r:[r],s=e.findAncestor(l=>l.type==="css-atrule");return s&&n.includes(s.name.toLowerCase())}function si(e){let{node:r}=e;return r.groups[0]?.value==="url"&&r.groups.length===2&&e.findAncestor(n=>n.type==="css-atrule")?.name==="import"}function ni(e){return e.type==="value-func"&&e.value.toLowerCase()==="url"}function oi(e){return e.type==="value-func"&&e.value.toLowerCase()==="var"}function ii(e){let{selector:r}=e;return r?typeof r=="string"&&/^@.+:.*$/.test(r)||r.value&&/^@.+:.*$/.test(r.value):!1}function ai(e){return e.type==="value-word"&&["from","through","end"].includes(e.value)}function Kr(e){return e.type==="value-word"&&["and","or","not"].includes(e.value)}function ui(e){return e.type==="value-word"&&e.value==="in"}function zt(e){return e.type==="value-operator"&&e.value==="*"}function xe(e){return e?.type==="value-operator"&&e.value==="/"}function ie(e){return e.type==="value-operator"&&e.value==="+"}function ke(e){return e.type==="value-operator"&&e.value==="-"}function li(e){return e.type==="value-operator"&&e.value==="%"}function at(e){return zt(e)||xe(e)||ie(e)||ke(e)||li(e)}function Xr(e){return e.type==="value-word"&&["==","!="].includes(e.value)}function es(e){return e.type==="value-word"&&["<",">","<=",">="].includes(e.value)}function Bt(e,r){return r.parser==="scss"&&e.type==="css-atrule"&&["if","else","for","each","while"].includes(e.name)}function ts(e){return e.raws?.params&&/^\(\s*\)$/.test(e.raws.params)}function qt(e){return e.name.startsWith("prettier-placeholder")}function ci(e){return e.prop.startsWith("@prettier-placeholder")}function pi(e,r){return e.value==="$$"&&e.type==="value-func"&&r?.type==="value-word"&&!r.raws.before}function fi(e){return e.value?.type==="value-root"&&e.value.group?.type==="value-value"&&e.prop.toLowerCase()==="composes"}function hi(e){return e.value?.group?.group?.type==="value-paren_group"&&e.value.group.group.open!==null&&e.value.group.group.close!==null}function ae(e){return e?.raws?.before===""}function rs(e){let r=e.findIndex(n=>n.type!=="value-comment");return r===-1?[]:e.slice(r)}function ut(e){return e.type==="value-comma_group"&&e.groups&&rs(e.groups)[1]?.type==="value-colon"}function ss(e,r){if(r?.type!=="value-paren_group"||!r.open||!ut(e))return!1;let[n,,s]=rs(e.groups);return n.type!=="value-paren_group"&&s?.type==="value-paren_group"}function Dt(e){return e.type==="value-paren_group"&&e.groups?.[0]&&ut(e.groups[0])}function ns(e,r){if(r.parser!=="scss")return!1;let{node:n}=e;if(n.groups.length===0||n.type==="value-paren_group"&&n.open&&n.close&&n.groups.length===1&&n.groups[0].type!=="value-comma_group")return!1;let s=e.parent;if(s&&s.type==="value-func"&&s.value==="if")return!1;let l=e.grandparent;return!Dt(n)&&!(l&&Dt(l))?!1:e.findAncestor(p=>p.type==="css-decl")?.prop?.startsWith("$")?!0:Dt(l)?!s.groups.some(p=>at(p)):l.type==="value-func"}function lt(e){return e.type==="value-comment"&&e.inline}function Ut(e){return e.type==="value-word"&&e.value==="#"}function os(e){return e.type==="value-word"&&e.value==="{"}function Ft(e){return e.type==="value-word"&&e.value==="}"}function ct(e){return["value-word","value-atword"].includes(e.type)}function Vt(e){return e?.type==="value-colon"}function di(e,r){if(!ut(r))return!1;let{groups:n}=r,s=n.indexOf(e);return s===-1?!1:Vt(n[s+1])}function mi(e){return e.value&&["not","and","or"].includes(e.value.toLowerCase())}function yi(e){return e.type!=="value-func"?!1:Qo.has(e.value.toLowerCase())}function Ue(e){return/\/\//.test(e.split(/[\n\r]/).pop())}function Oe(e){return e?.type==="value-atword"&&e.value.startsWith("prettier-placeholder-")}function gi(e,r){if(e.open?.value!=="("||e.close?.value!==")"||e.groups.some(n=>n.type!=="value-comma_group"))return!1;if(r.type==="value-comma_group"){let n=r.groups.indexOf(e)-1,s=r.groups[n];if(s?.type==="value-word"&&s.value==="with")return!0}return!1}function pt(e){return e.type==="value-paren_group"&&e.open?.value==="("&&e.close?.value===")"}function vi(e,r,n){let{node:s}=e,l=e.parent,p=e.grandparent,f=Yo(e),m=f&&l.type==="value-value"&&(f==="grid"||f.startsWith("grid-template")),w=e.findAncestor(v=>v.type==="css-atrule"),y=w&&Bt(w,r),c=y&&s.groups.some(Kr),t=ss(s,l)&&!y,o=s.groups.some(v=>lt(v)),i=e.map(n,"groups"),u=[""],a=qe(e,"url"),h=!1,d=!1;for(let v=0;v<s.groups.length;++v){let b=s.groups[v-1],x=s.groups[v],g=s.groups[v+1];if(lt(x)&&!g){u.push([u.pop(),Ir([" ",i[v]])]);continue}if(u.push([u.pop(),i[v]]),a){(g&&ie(g)||ie(x))&&u.push([u.pop()," "]);continue}if(De(e,"forward")&&x.type==="value-word"&&x.value&&b!==void 0&&b.type==="value-word"&&b.value==="as"&&g.type==="value-operator"&&g.value==="*"||De(e,"utility")&&x.type==="value-word"&&g&&g.type==="value-operator"&&g.value==="*"||!g||r.parser==="scss"&&g.type==="value-word"&&g.value===";"&&e.match(void 0,(P,N)=>N==="groups"&&P.type==="value-paren_group",(P,N)=>N==="group"&&P.type==="value-func"&&P.value==="if")||x.type==="value-word"&&Oe(g)&&V(x)===K(g))continue;if(x.type==="value-string"&&x.quoted){let P=x.value.lastIndexOf("#{"),N=x.value.lastIndexOf("}");P!==-1&&N!==-1?h=P>N:P!==-1?h=!0:N!==-1&&(h=!1)}if(h||Vt(x)||Vt(g)||x.type==="value-atword"&&(x.value===""||x.value.endsWith("["))||g.type==="value-word"&&g.value.startsWith("]")||x.value==="~")continue;if(r.parser==="less"){if(g?.type==="value-word"&&g.value==="[")continue;if(x.type==="value-word"&&x.value.endsWith("[")&&(g?.type==="value-atword"||g?.type==="value-word")){wr(s.groups.some((P,N)=>N>v&&(P.value?.startsWith("]")||P.value?.endsWith("]"))));continue}if((x.type==="value-word"||x.type==="value-atword")&&x.value.endsWith("[$")&&g?.type==="value-atword"||x.type==="value-word"&&x.value==="$"&&(b?.type==="value-word"||b?.type==="value-atword")&&b.value.endsWith("[")&&g?.type==="value-atword")continue}if(x.type!=="value-string"&&x.value&&x.value.includes("\\")&&g&&g.type!=="value-comment"||b?.value&&b.value.indexOf("\\")===b.value.length-1&&x.type==="value-operator"&&x.value==="/"||x.value==="\\"||pi(x,g)||Ut(x)||os(x)||Ft(g)||os(g)&&ae(g)||Ft(x)&&ae(g)||x.value==="--"&&Ut(g))continue;let T=at(x),O=at(g);if((T&&Ut(g)||O&&Ft(x))&&ae(g)||ie(g)&&qe(e,"type")&&ae(g)||!b&&xe(x)||qe(e,"calc")&&(ie(x)||ie(g)||ke(x)||ke(g))&&ae(g))continue;if(r.parser==="scss"&&T&&x.value==="-"&&g.type==="value-func"&&V(x)!==K(g)){u.push([u.pop()," "]);continue}let k=s.groups[v+2],_=(ie(x)||ke(x))&&v===0&&(g.type==="value-number"||g.isHex)&&p&&yi(p)&&!ae(g),C=k?.type==="value-func"||k&&ct(k)||x.type==="value-func"||ct(x),I=g.type==="value-func"||ct(g)||b?.type==="value-func"||b&&ct(b);if(!(!(zt(g)||zt(x))&&!qe(e,"calc")&&!_&&(xe(g)&&!C||xe(x)&&!I||ie(g)&&!C||ie(x)&&!I||ke(g)||ke(x))&&(ae(g)||T&&(!b||b&&at(b))))&&!((r.parser==="scss"||r.parser==="less")&&T&&x.value==="-"&&pt(g)&&V(x)===K(g.open)&&g.open.value==="(")){if(lt(x)){if(l.type==="value-paren_group"){u.push(t?U:Re(U),"");continue}u.push(U,"");continue}if(y&&(Xr(g)||es(g)||c&&(Xr(x)||es(x))||Kr(g)||ui(x)||ai(x))){u.push([u.pop()," "]);continue}if(w&&w.name.toLowerCase()==="namespace"){u.push([u.pop()," "]);continue}if(m){x.source&&g.source&&x.source.start.line!==g.source.start.line?(u.push(U,""),d=!0):u.push([u.pop()," "]);continue}if(!(f&&(f==="font"||f.startsWith("--"))&&(xe(g)&&ae(g)&&is(x)||xe(x)&&ae(x)&&is(b)))){if(O){u.push([u.pop()," "]);continue}if(g?.value!=="..."&&!(Oe(x)&&Oe(g)&&V(x)===K(g))){if(Oe(x)&&pt(g)&&V(x)===K(g.open)){u.push(H,"");continue}if(x.value==="with"&&pt(g)){u=[[nt(u)," "]];continue}if(!(x.value?.endsWith("#")&&g.value==="{"&&pt(g.group))&&!(lt(g)&&!k)){if(!w&&x.type==="value-comment"&&!x.inline&&s.groups.slice(0,v).every(P=>P.type==="value-comment")){u.push(t?F:Re(F),"");continue}u.push(F,"")}}}}}return o&&u.push([u.pop(),st]),d&&u.unshift("",U),y?Y(G(u)):si(e)?Y(nt(u)):Y(G(nt(u)))}function is(e){if(e?.type==="value-number")return!0;if(e?.type!=="value-func")return!1;let r=e.value.toLowerCase();return r==="var"||r==="calc"||r==="min"||r==="max"||r==="clamp"||r.startsWith("--")}var wi=vi,bi=Array.prototype.findLast??function(e){for(let r=this.length-1;r>=0;r--){let n=this[r];if(e(n,r,this))return n}},xi=Ct("findLast",function(){if(Array.isArray(this))return bi}),ki=xi;function Oi(e,r){if(r===!1)return!1;if(e.charAt(r)==="/"&&e.charAt(r+1)==="*"){for(let n=r+2;n<e.length;++n)if(e.charAt(n)==="*"&&e.charAt(n+1)==="/")return n+2}return r}var as=Oi,us=e=>e===`
|
|
58
|
+
`||e==="\r"||e==="\u2028"||e==="\u2029";function Ti(e,r,n){if(r===!1)return!1;let s=!!n?.backwards,l=e.charAt(r);if(s){if(e.charAt(r-1)==="\r"&&l===`
|
|
59
|
+
`)return r-2;if(us(l))return r-1}else{if(l==="\r"&&e.charAt(r+1)===`
|
|
60
|
+
`)return r+2;if(us(l))return r+1}return r}var Jt=Ti;function _i(e,r){return r===!1?!1:e.charAt(r)==="/"&&e.charAt(r+1)==="/"?Lr(e,r):r}var ls=_i;function Si(e,r){let n=null,s=r;for(;s!==n;)n=s,s=Mt(e,s),s=as(e,s),s=ls(e,s),s=Jt(e,s);return s}var Ci=Si;function Ai(e,r){let n=Ci(e,r);return n===!1?"":e.charAt(n)}var Ei=Ai;function Ii(e,r,n={}){let s=Mt(e,n.backwards?r-1:r,n),l=Jt(e,s,n);return s!==l}var cs=Ii;function ji(e,r){let n=null,s=r;for(;s!==n;)n=s,s=po(e,s),s=as(e,s),s=Mt(e,s);return s=ls(e,s),s=Jt(e,s),s!==!1&&cs(e,s)}var ps=ji;function Pi(e){return e.length===1?e:e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")}var Mi=Pi,Gt=new Map([["em","em"],["rem","rem"],["ex","ex"],["rex","rex"],["cap","cap"],["rcap","rcap"],["ch","ch"],["rch","rch"],["ic","ic"],["ric","ric"],["lh","lh"],["rlh","rlh"],["vw","vw"],["svw","svw"],["lvw","lvw"],["dvw","dvw"],["vh","vh"],["svh","svh"],["lvh","lvh"],["dvh","dvh"],["vi","vi"],["svi","svi"],["lvi","lvi"],["dvi","dvi"],["vb","vb"],["svb","svb"],["lvb","lvb"],["dvb","dvb"],["vmin","vmin"],["svmin","svmin"],["lvmin","lvmin"],["dvmin","dvmin"],["vmax","vmax"],["svmax","svmax"],["lvmax","lvmax"],["dvmax","dvmax"],["cm","cm"],["mm","mm"],["q","Q"],["in","in"],["pt","pt"],["pc","pc"],["px","px"],["deg","deg"],["grad","grad"],["rad","rad"],["turn","turn"],["s","s"],["ms","ms"],["hz","Hz"],["khz","kHz"],["dpi","dpi"],["dpcm","dpcm"],["dppx","dppx"],["x","x"],["cqw","cqw"],["cqh","cqh"],["cqi","cqi"],["cqb","cqb"],["cqmin","cqmin"],["cqmax","cqmax"],["fr","fr"]]);function fs(e){let r=e.toLowerCase();return Gt.has(r)?Gt.get(r):e}var Ht=/(?<quote>["'])(?:(?!\k<quote>)[^\\]|\\.)*\k<quote>/gs,Ni=/(?:\d*\.\d+|\d+\.?)(?:e[+-]?\d+)?/gi,$i=/[a-z]+/gi,Ri=/[$@]?[_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/gi,Li=new RegExp(Ht.source+`|(${Ri.source})?(${Ni.source})(${$i.source})?`,"gi");function se(e,r){return D(0,e,Ht,n=>Nr(n,r))}function Wi(e){return D(0,e,Ht,"")}function zi(e,r){let n=r.singleQuote?"'":'"',s="",l=e.match(/^(?<value>.+?)\s+(?<flag>[a-z])$/i);return l&&({value:e,flag:s}=l.groups),(e.includes('"')||e.includes("'")?e:n+e+n)+(s?` ${s}`:"")}function Te(e){return D(0,e,Li,(r,n,s,l,p)=>!s&&l&&(p??(p=""),p=p.toLowerCase(),!p||p==="n"||Gt.has(p))?hs(l)+(p?fs(p):""):r)}function hs(e){return Mi(e).replace(/\.0(?=$|e)/,"")}function Bi(e){return e.trailingComma==="es5"||e.trailingComma==="all"}function qi({node:e,parent:r},n){if(r.type!=="value-paren_group")return!1;let s=e.type==="value-comma_group"?e.groups:[e],l=ki(0,s,p=>p.type!=="value-comment");return l?Ei(n.originalText,V(l))===",":!1}function Di(e,r){return(oi(e.grandparent)||r.parser==="scss"&&e.grandparent?.type!=="value-func"&&e.parent.groups.length===1&&!ut(e.parent.groups[0]))&&qi(e,r)?",":e.node.type!=="value-comment"&&!(e.node.type==="value-comma_group"&&e.node.groups.every(n=>n.type==="value-comment"))&&Bi(r)&&e.callParent(()=>ns(e,r))?Ar(","):""}function Ui(e,r,n){let{node:s,parent:l}=e,p=e.map(({node:i})=>typeof i=="string"?i:n(),"groups");if(l&&ni(l)&&(s.groups.length===1||s.groups.length>0&&s.groups[0].type==="value-comma_group"&&s.groups[0].groups.length>0&&s.groups[0].groups[0].type==="value-word"&&s.groups[0].groups[0].value.startsWith("data:")))return[s.open?n("open"):"",oe(",",p),s.close?n("close"):""];if(!s.open){let i=ds(e),u=Vi(oe(",",p),2),a=oe(i?U:F,u);return G(i?[U,a]:Y([Fi(e)?H:"",nt(a)]))}let f=e.map(({node:i,isLast:u,index:a})=>{let h=p[a];ss(i,s)&&$e(h)===et&&$e(h.contents)===Xe&&$e(h.contents.contents)===tt&&(h=Y(Re(h)));let d=[h,u?Di(e,r):","];if(!u&&i.type==="value-comma_group"&&ot(i.groups)){let v=ye(0,i.groups,-1);!v.source&&v.close&&(v=v.close),v.source&&ps(r.originalText,V(v))&&d.push(U)}return d},"groups"),m=di(s,l),w=gi(s,l),y=ns(e,r),c=w||y&&!m,t=w||m,o=Y([s.open?n("open"):"",G([H,oe(F,f)]),H,jr,s.close?n("close"):""],{shouldBreak:c});return t?Re(o):o}function ds(e){return e.match(r=>r.type==="value-paren_group"&&!r.open&&r.groups.some(n=>n.type==="value-comma_group"),(r,n)=>n==="group"&&r.type==="value-value",(r,n)=>n==="group"&&r.type==="value-root",(r,n)=>n==="value"&&(r.type==="css-decl"&&!r.prop.startsWith("--")||r.type==="css-atrule"&&r.variable))}function Fi(e){return e.match(r=>r.type==="value-paren_group"&&!r.open,(r,n)=>n==="group"&&r.type==="value-value",(r,n)=>n==="group"&&r.type==="value-root",(r,n)=>n==="value"&&r.type==="css-decl")}function Vi(e,r){let n=[];for(let s=0;s<e.length;s+=r)n.push(e.slice(s,s+r));return n}function Ji(e,r,n){let s=[];return e.each(()=>{let{node:l,previous:p}=e;if(p?.type==="css-comment"&&p.text.trim()==="prettier-ignore"?s.push(r.originalText.slice(K(l),V(l))):s.push(n()),e.isLast)return;let{next:f}=e;f.type==="css-comment"&&!cs(r.originalText,K(f),{backwards:!0})&&!Lt(l)||f.type==="css-atrule"&&f.name==="else"&&l.type!=="css-comment"?s.push(" "):(s.push(r.__isHTMLStyleAttribute?F:U),ps(r.originalText,V(l))&&!Lt(l)&&s.push(U))},"nodes"),s}var Fe=Ji;function Gi(e,r,n){let{node:s,parent:l}=e,{between:p}=s.raws,f=p.trim(),m=f===":",w=p.endsWith(" ")&&m,y=typeof s.value=="string"&&/^ *$/.test(s.value),c=typeof s.value=="string"?s.value:n("value");c=fi(s)?Bn(c):c,!m&&Ue(f)&&!e.call(()=>ds(e),"value","group","group")&&(c=G([U,Re(c)]));let t=[D(0,s.raws.before,/[\s;]/g,""),l.type==="css-atrule"&&l.variable||ri(e)?s.prop:Be(s.prop)];if(f.startsWith("//")&&t.push(" "),t.push(f),s.extend||y||!w&&s.isNested&&(Oe(s.value.group.group)||Oe(s.value.group.group.groups?.[0]))||t.push(" "),r.parser==="less"&&s.extend&&s.selector&&t.push(s.selector.nodes.length>1?Y(["extend(",G([H,n("selector")]),H,")"]):["extend(",n("selector"),")"]),t.push(c),s.raws.important){let o=`${y?"":" "}!important`;t.push(s.raws.important.replace(/\s*!\s*important/i,o))}else s.important&&t.push(" !important");return s.raws.scssDefault?t.push(s.raws.scssDefault.replace(/\s*!default/i," !default")):s.scssDefault&&t.push(" !default"),s.raws.scssGlobal?t.push(s.raws.scssGlobal.replace(/\s*!global/i," !global")):s.scssGlobal&&t.push(" !global"),s.nodes?t.push([" {",s.nodes.length>0?G([H,Fe(e,r,n)]):"",H,"}"]):ci(s)&&!l.raws.semicolon&&r.originalText[V(s)-1]!==";"||t.push(r.__isHTMLStyleAttribute&&e.isLast?Ar(";"):";"),t}function Hi(e,r,n){let{node:s}=e;switch(s.type){case"css-root":{let l=Fe(e,r,n),p=s.raws.after.trim();return p.startsWith(";")&&(p=p.slice(1).trim()),[s.frontMatter?[n("frontMatter"),U,s.nodes.length>0?U:""]:"",l,p?` ${p}`:"",s.nodes.length>0?U:""]}case"css-comment":{let l=s.inline||s.raws.inline,p=r.originalText.slice(K(s),V(s));return l?p.trimEnd():p}case"css-rule":return[n("selector"),s.important?" !important":"",s.nodes?[s.selector?.type==="selector-unknown"&&Ue(s.selector.value)?F:s.selector?" ":"","{",s.nodes.length>0?G([U,Fe(e,r,n)]):"",U,"}",ii(s)?";":""]:";"];case"css-decl":return Gi(e,r,n);case"css-atrule":{let l=e.parent,p=qt(s)&&!l.raws.semicolon&&r.originalText[V(s)-1]!==";";if(r.parser==="less"){if(s.mixin)return[n("selector"),s.important?" !important":"",p?"":";"];if(s.function)return[s.name,typeof s.params=="string"?s.params:n("params"),p?"":";"];if(s.variable)return["@",s.name,": ",s.value?[n("value"),jr]:"",s.raws.between.trim()?s.raws.between.trim()+" ":"",s.nodes?["{",s.nodes.length>0?G([H,Fe(e,r,n)]):"",H,"}"]:"",p?"":";"]}let f=s.name==="import"&&s.params?.type==="value-unknown"&&s.params.value.endsWith(";");return["@",ts(s)||s.name.endsWith(":")||qt(s)?s.name:Be(s.name),s.params?[ts(s)?"":qt(s)?s.raws.afterName===""?"":s.name.endsWith(":")?" ":/^\s*\n\s*\n/.test(s.raws.afterName)?[U,U]:/^\s*\n/.test(s.raws.afterName)?U:" ":" ",typeof s.params=="string"?s.params:n("params")]:"",s.selector?G([" ",n("selector")]):"",s.value?Y([" ",n("value"),Bt(s,r)?hi(s)?" ":F:""]):s.name==="else"?" ":"",s.nodes?[Bt(s,r)?"":s.selector&&!s.selector.nodes&&typeof s.selector.value=="string"&&Ue(s.selector.value)||!s.selector&&typeof s.params=="string"&&Ue(s.params)?F:" ","{",s.nodes.length>0?G([H,Fe(e,r,n)]):"",H,"}"]:p||f?"":";"]}case"media-query-list":{let l=[];return e.each(({node:p})=>{p.type==="media-query"&&p.value===""||l.push(n())},"nodes"),Y(G(oe(F,l)))}case"media-query":return[oe(" ",e.map(n,"nodes")),e.isLast?"":","];case"media-type":return Te(se(s.value,r));case"media-feature-expression":return s.nodes?["(",...e.map(n,"nodes"),")"]:s.value;case"media-feature":return Be(se(D(0,s.value,/ +/g," "),r));case"media-colon":return[s.value," "];case"media-value":return Te(se(s.value,r));case"media-keyword":return se(s.value,r);case"media-url":return se(D(0,D(0,s.value,/^url\(\s+/gi,"url("),/\s+\)$/g,")"),r);case"media-unknown":return s.value;case"selector-root":return Y([De(e,"custom-selector")?[e.findAncestor(l=>l.type==="css-atrule").customSelector,F]:"",oe([",",De(e,["extend","custom-selector","nest"])?F:U],e.map(n,"nodes"))]);case"selector-selector":{let l=s.nodes.length>2;return Y((l?G:p=>p)(e.map(n,"nodes")))}case"selector-comment":return s.value;case"selector-string":return se(s.value,r);case"selector-tag":return[s.namespace?[s.namespace===!0?"":s.namespace.trim(),"|"]:"",e.previous?.type==="selector-nesting"?s.value:Te(ti(e,s.value)?s.value.toLowerCase():s.value)];case"selector-id":return["#",s.value];case"selector-class":return[".",Te(se(s.value,r))];case"selector-attribute":return["[",s.namespace?[s.namespace===!0?"":s.namespace.trim(),"|"]:"",s.attribute.trim(),s.operator??"",s.value?qn(zi(se(s.value.trim(),r),r),Er):"",s.insensitive?" i":"","]"];case"selector-combinator":{if(s.value==="+"||s.value===">"||s.value==="~"||s.value===">>>"){let f=e.parent,m=f.type==="selector-selector"&&f.nodes[0]===s,w=m?"":F,y=m&&s.value==="+"&&ei(e.grandparent);return[w,s.value,e.isLast||y?"":" "]}let l=s.value.trimStart().startsWith("(")?F:"",p=Te(se(s.value.trim(),r))||F;return[l,p]}case"selector-universal":return[s.namespace?[s.namespace===!0?"":s.namespace.trim(),"|"]:"",s.value];case"selector-pseudo":return[Be(s.value),ot(s.nodes)?Y(["(",G([H,oe([",",F],e.map(n,"nodes"))]),H,")"]):""];case"selector-nesting":return s.value;case"selector-unknown":{if(e.findAncestor(f=>f.type==="css-rule")?.isScssNestedProperty)return Te(se(Be(s.value),r));let l=e.parent;if(l.raws?.selector){let f=K(l),m=f+l.raws.selector.length;return r.originalText.slice(f,m).trim()}let p=e.grandparent;if(l.type==="value-paren_group"&&p?.type==="value-func"&&p.value==="selector"){let f=V(l.open)+1,m=K(l.close),w=r.originalText.slice(f,m).trim();return Ue(w)?[st,w]:w}return s.value}case"value-value":case"value-root":return n("group");case"value-comment":{let l=r.originalText.slice(K(s),V(s));return s.inline?Ir(l.trimEnd()):l}case"value-comma_group":return wi(e,r,n);case"value-paren_group":return Ui(e,r,n);case"value-func":return[s.value,De(e,"supports")&&mi(s)?" ":"",n("group")];case"value-paren":return s.value;case"value-number":return[hs(s.value),fs(s.unit)];case"value-operator":return s.value;case"value-word":return s.isColor&&s.isHex||Ko(s.value)?s.value.toLowerCase():s.value;case"value-colon":{let{previous:l}=e;return Y([s.value,typeof l?.value=="string"&&l.value.endsWith("\\")||qe(e,"url")?"":F])}case"value-string":return Nr(s.raws.quote+s.value+s.raws.quote,r);case"value-atword":return["@",s.value];case"value-unicode-range":return s.value;case"value-unknown":return s.value;default:throw new to(s,"PostCSS")}}var Qi={features:{experimental_frontMatterSupport:{massageAstNode:!0,embed:!0,print:!0}},print:Hi,embed:ro,insertPragma:Ho,massageAstNode:Vr,getVisitorKeys:lo},Yi=Qi,Zi=[{name:"CSS",type:"markup",aceMode:"css",extensions:[".css",".wxss"],tmScope:"source.css",codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["css"],vscodeLanguageIds:["css"],linguistLanguageId:50},{name:"PostCSS",type:"markup",aceMode:"text",extensions:[".pcss",".postcss"],tmScope:"source.postcss",group:"CSS",parsers:["css"],vscodeLanguageIds:["postcss"],linguistLanguageId:262764437},{name:"Less",type:"markup",aceMode:"less",extensions:[".less"],tmScope:"source.css.less",aliases:["less-css"],codemirrorMode:"css",codemirrorMimeType:"text/x-less",parsers:["less"],vscodeLanguageIds:["less"],linguistLanguageId:198},{name:"SCSS",type:"markup",aceMode:"scss",extensions:[".scss"],tmScope:"source.css.scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",parsers:["scss"],vscodeLanguageIds:["scss"],linguistLanguageId:329}],Ki={singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."}},Xi={singleQuote:Ki.singleQuote},ea=Xi,ms={};sr(ms,{css:()=>Ga,less:()=>Ha,scss:()=>Qa});var ta=X(Ke()),ra=X(Pe()),sa=X(je()),na=X(kt()),oa=X(xt()),ia=X(Pe());function ys(e){if(e[0]==="word"&&e[1].slice(0,2)==="//"){let r=e,n=[],s,l;for(;e;){if(/\r?\n/.test(e[1])){if(/['"].*\r?\n/.test(e[1])){n.push(e[1].substring(0,e[1].indexOf(`
|
|
61
|
+
`))),l=e[1].substring(e[1].indexOf(`
|
|
62
|
+
`));let f=this.input.css.valueOf().substring(this.tokenizer.position());l+=f,s=e[3]+f.length-l.length}else this.tokenizer.back(e);break}n.push(e[1]),s=e[2],e=this.tokenizer.nextToken({ignoreUnclosed:!0})}let p=["comment",n.join(""),r[2],s];return this.inlineComment(p),l&&(this.input=new ia.default(l,{from:this.input.file}),this.tokenizer=(0,oa.default)(this.input)),!0}else if(e[1]==="/"){let r=this.tokenizer.nextToken({ignoreUnclosed:!0});if(r[0]==="comment"&&/^\/\*/.test(r[1]))return r[0]="word",r[1]=r[1].slice(1),e[1]="//",this.tokenizer.back(r),ys.bind(this)(e)}return!1}function Qt(e){let r=[e,this.tokenizer.nextToken()],n=["word","}"];if(r[0][1].length>1||r[1][0]!=="{")return this.tokenizer.back(r[1]),!1;for(e=this.tokenizer.nextToken();e&&n.includes(e[0]);)r.push(e),e=this.tokenizer.nextToken();let s=r.map(m=>m[1]),[l]=r,p=r.pop(),f=["word",s.join(""),l[2],p[2]];return this.tokenizer.back(e),this.tokenizer.back(f),!0}function aa(e){let r=[],n=e.tokenizer.nextToken();for(;n&&!(n[0]==="at-word"&&n[1]==="@"&&Qt.bind(e)(n)&&(n=e.tokenizer.nextToken(),!n)||(r.push(n),n[0]==="{"||n[0]==="}"||n[0]===";"));)n=e.tokenizer.nextToken();for(let s of r.reverse())e.tokenizer.back(s)}var ua=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,la=/\.[0-9]/,ca=e=>{let[,r]=e,[n]=r;return(n==="."||n==="#")&&ua.test(r)===!1&&la.test(r)===!1},pa=X(xt()),fa=/^url\((.+)\)/;function ha(e){let{name:r,params:n=""}=e;if(r==="import"&&n.length){e.import=!0;let s=(0,pa.default)({css:n});for(e.filename=n.replace(fa,"$1");!s.endOfFile();){let[l,p]=s.nextToken();if(l==="word"&&p==="url")return;if(l==="brackets"){e.options=p,e.filename=n.replace(p,"").trim();break}}}}var gs=/:$/,vs=/^:(\s+)?/;function da(e){let{name:r,params:n=""}=e;if(e.name.slice(-1)===":"){if(gs.test(r)){let[s]=r.match(gs);e.name=r.replace(s,""),e.raws.afterName=s+(e.raws.afterName||""),e.variable=!0,e.value=e.params}if(vs.test(n)){let[s]=n.match(vs);e.value=n.replace(s,""),e.raws.afterName=(e.raws.afterName||"")+s,e.variable=!0}}}var ma=/(!\s*important)$/i,ya=class extends na.default{constructor(...e){super(...e),this.lastNode=null}atrule(e){Qt.bind(this)(e)||(aa(this),super.atrule(e),ha(this.lastNode),da(this.lastNode))}decl(...e){super.decl(...e),/extend\(.+\)/i.test(this.lastNode.value)&&(this.lastNode.extend=!0)}each(e){e[0][1]=` ${e[0][1]}`;let r=e.findIndex(p=>p[0]==="("),n=e.reverse().find(p=>p[0]===")"),s=e.reverse().indexOf(n),l=e.splice(r,s).map(p=>p[1]).join("");for(let p of e.reverse())this.tokenizer.back(p);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=l}init(e,r,n){super.init(e,r,n),this.lastNode=e}inlineComment(e){let r=new sa.default,n=e[1].slice(2);if(this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.inline=!0,r.raws.begin="//",/^\s*$/.test(n))r.text="",r.raws.left=n,r.raws.right="";else{let s=n.match(/^(\s*)([^]*[^\s])(\s*)$/);[,r.raws.left,r.text,r.raws.right]=s}}mixin(e){let[r]=e,n=r[1].slice(0,1),s=e.findIndex(w=>w[0]==="brackets"),l=e.findIndex(w=>w[0]==="("),p="";if((s<0||s>3)&&l>0){let w=e.reduce((d,v,b)=>v[0]===")"?b:d),y=e.slice(l,w+l).map(d=>d[1]).join(""),[c]=e.slice(l),t=[c[2],c[3]],[o]=e.slice(w,w+1),i=[o[2],o[3]],u=["brackets",y].concat(t,i),a=e.slice(0,l),h=e.slice(w+1);e=a,e.push(u),e=e.concat(h)}let f=[];for(let w of e)if((w[1]==="!"||f.length)&&f.push(w),w[1]==="important")break;if(f.length){let[w]=f,y=e.indexOf(w),c=f[f.length-1],t=[w[2],w[3]],o=[c[4],c[5]],i=["word",f.map(u=>u[1]).join("")].concat(t,o);e.splice(y,f.length,i)}let m=e.findIndex(w=>ma.test(w[1]));m>0&&([,p]=e[m],e.splice(m,1));for(let w of e.reverse())this.tokenizer.back(w);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=n,p&&(this.lastNode.important=!0,this.lastNode.raws.important=p)}other(e){ys.bind(this)(e)||super.other(e)}rule(e){let r=e[e.length-1],n=e[e.length-2];if(n[0]==="at-word"&&r[0]==="{"&&(this.tokenizer.back(r),Qt.bind(this)(n))){let s=this.tokenizer.nextToken();e=e.slice(0,e.length-2).concat([s]);for(let l of e.reverse())this.tokenizer.back(l);return}super.rule(e),/:extend\(.+\)/i.test(this.lastNode.selector)&&(this.lastNode.extend=!0)}unknownWord(e){let[r]=e;if(e[0][1]==="each"&&e[1][0]==="("){this.each(e);return}if(ca(r)){this.mixin(e);return}super.unknownWord(e)}};function ga(e,r){let n=new ra.default(e,r),s=new ya(n);return s.parse(),s.root.walk(l=>{let p=n.css.lastIndexOf(l.source.input.css);if(p===0)return;if(p+l.source.input.css.length!==n.css.length)throw new Error("Invalid state detected in postcss-less");let f=p+l.source.start.offset,m=n.fromOffset(p+l.source.start.offset);if(l.source.start={column:m.col,line:m.line,offset:f},l.source.end){let w=p+l.source.end.offset,y=n.fromOffset(p+l.source.end.offset);l.source.end={column:y.col,line:y.line,offset:w}}}),s.root}var va=X(Vs());function wa(e,r){let n=new SyntaxError(e+" ("+r.loc.start.line+":"+r.loc.start.column+")");return Object.assign(n,r)}var ba=wa;function xa(e){return e!==null&&typeof e=="object"}var ft=xa,ka=X(Gs());function Ve(e,r,n){if(ft(e)){delete e.parent;for(let s in e)Ve(e[s],r,n),s==="type"&&typeof e[s]=="string"&&!e[s].startsWith(r)&&(!n||!n.test(e[s]))&&(e[s]=r+e[s])}return e}function ws(e){if(ft(e)){delete e.parent;for(let r in e)ws(e[r]);!Array.isArray(e)&&e.value&&!e.type&&(e.type="unknown")}return e}var Oa=ka.default.default;function Ta(e){let r;try{r=Oa(e)}catch{return{type:"selector-unknown",value:e}}return Ve(ws(r),"media-")}var _a=Ta,Sa=X(cn());function Ca(e){if(/\/[/*]/.test(Wi(e)))return{type:"selector-unknown",value:e.trim()};let r;try{new Sa.default(n=>{r=n}).process(e)}catch{return{type:"selector-unknown",value:e}}return Ve(r,"selector-")}var ve=Ca,Aa=X(Cn()),Ea=e=>{for(;e.parent;)e=e.parent;return e},bs=Ea;function Ia(e){return bs(e).text.slice(e.group.open.sourceIndex+1,e.group.close.sourceIndex).trim()}var ja=Ia;function Pa(e){if(ot(e)){for(let r=e.length-1;r>0;r--)if(e[r].type==="word"&&e[r].value==="{"&&e[r-1].type==="word"&&e[r-1].value.endsWith("#"))return!0}return!1}var Ma=Pa;function Na(e){return e.some(r=>r.type==="string"||r.type==="func"&&!r.value.endsWith("\\"))}var $a=Na;function Ra(e,r){return!!(r.parser==="scss"&&e?.type==="word"&&e.value.startsWith("$"))}var La=Ra,xs=e=>e.type==="paren"&&e.value===")";function Wa(e,r){let{nodes:n}=e,s={open:null,close:null,groups:[],type:"paren_group"},l=[s],p=s,f={groups:[],type:"comma_group"},m=[f];for(let w=0;w<n.length;++w){let y=n[w];if(r.parser==="scss"&&y.type==="number"&&y.unit===".."&&y.value.endsWith(".")&&(y.value=y.value.slice(0,-1),y.unit="..."),y.type==="func"&&y.value==="selector"){let c=bs(e).text.slice(y.group.open.sourceIndex+1,y.group.close.sourceIndex),t=ve(c);t.sourceIndex=y.group.open.sourceIndex+1,t.raws??(t.raws={}),t.raws.selector=c,y.group.groups=[t]}if(y.type==="func"&&y.value==="url"){let c=y.group?.groups??[],t=[];for(let o=0;o<c.length;o++){let i=c[o];i.type==="comma_group"?t=[...t,...i.groups]:t.push(i)}(Ma(t)||!$a(t)&&!La(t[0],r))&&(y.group.groups=[ja(y)])}if(y.type==="paren"&&y.value==="(")s={open:y,close:null,groups:[],type:"paren_group"},l.push(s),f={groups:[],type:"comma_group"},m.push(f);else if(xs(y)){if(f.groups.length>0&&s.groups.push(f),s.close=y,m.length===1)throw new Error("Unbalanced parenthesis");m.pop(),f=ye(0,m,-1),f.groups.push(s),l.pop(),s=ye(0,l,-1)}else if(y.type==="comma"){if(w===n.length-3&&n[w+1].type==="comment"&&xs(n[w+2]))continue;s.groups.push(f),f={groups:[],type:"comma_group"},m[m.length-1]=f}else f.groups.push(y)}return f.groups.length>0&&s.groups.push(f),p}function Yt(e){return e.type==="paren_group"&&!e.open&&!e.close&&e.groups.length===1||e.type==="comma_group"&&e.groups.length===1?Yt(e.groups[0]):e.type==="paren_group"||e.type==="comma_group"?{...e,groups:e.groups.map(Yt)}:e}function ks(e,r){if(ft(e))for(let n in e)n!=="parent"&&(ks(e[n],r),n==="nodes"&&(e.type==="atword"&&e.nodes.length===0||(e.group=Yt(Wa(e,r))),delete e[n]));return e}function za(e,r){if(r.parser==="less"&&e.startsWith("~`"))return{type:"value-unknown",value:e};let n;try{n=new Aa.default(e,{loose:!0}).parse()}catch{return{type:"value-unknown",value:e}}n.text=e;let s=ks(n,r);return Ve(s,"value-",/^selector-/)}var we=za,Ba=new Set(["import","use","forward"]);function qa(e){return Ba.has(e)}var Da=qa;function Ua(e,r){return r.parser!=="scss"||!e.selector?!1:e.selector.replace(/\/\*.*?\*\//,"").replace(/\/\/.*\n/,"").trimEnd().endsWith(":")}var Fa=Ua,Va=/(\s*)(!default).*$/,Ja=/(\s*)(!global).*$/;function Os(e,r){if(ft(e)){delete e.parent;for(let p in e)Os(e[p],r);if(!e.type)return e;if(e.raws??(e.raws={}),e.type==="css-decl"&&typeof e.prop=="string"&&e.prop.startsWith("--")&&typeof e.value=="string"&&e.value.startsWith("{")){let p;if(e.value.trimEnd().endsWith("}")){let f=r.originalText.slice(0,e.source.start.offset),m="a".repeat(e.prop.length)+r.originalText.slice(e.source.start.offset+e.prop.length,e.source.end.offset),w=Fr(f)+m,y;r.parser==="scss"?y=Ss:r.parser==="less"?y=_s:y=Ts;let c;try{c=y(w,{...r})}catch{}c?.nodes?.length===1&&c.nodes[0].type==="css-rule"&&(p=c.nodes[0].nodes)}return p?e.value={type:"css-rule",nodes:p}:e.value={type:"value-unknown",value:e.raws.value.raw},e}let n="";typeof e.selector=="string"&&(n=e.raws.selector?e.raws.selector.scss??e.raws.selector.raw:e.selector,e.raws.between&&e.raws.between.trim().length>0&&(n+=e.raws.between),e.raws.selector=n);let s="";typeof e.value=="string"&&(s=e.raws.value?e.raws.value.scss??e.raws.value.raw:e.value,e.raws.value=s.trim());let l="";if(typeof e.params=="string"&&(l=e.raws.params?e.raws.params.scss??e.raws.params.raw:e.params,e.raws.afterName&&e.raws.afterName.trim().length>0&&(l=e.raws.afterName+l),e.raws.between&&e.raws.between.trim().length>0&&(l+=e.raws.between),l=l.trim(),e.raws.params=l),n.trim().length>0)return n.startsWith("@")&&n.endsWith(":")?e:e.mixin?(e.selector=we(n,r),e):(Fa(e,r)&&(e.isScssNestedProperty=!0),e.selector=ve(n),e);if(s.trim().length>0){let p=s.match(Va);p&&(s=s.slice(0,p.index),e.scssDefault=!0,p[0].trim()!=="!default"&&(e.raws.scssDefault=p[0]));let f=s.match(Ja);if(f&&(s=s.slice(0,f.index),e.scssGlobal=!0,f[0].trim()!=="!global"&&(e.raws.scssGlobal=f[0])),s.startsWith("progid:"))return{type:"value-unknown",value:s};e.value=we(s,r)}if(r.parser==="less"&&e.type==="css-decl"&&typeof e.prop=="string"&&/^\s*\+\s*:/.test(e.raws.between)&&(e.prop+="+",e.raws.between=e.raws.between.replace("+","")),r.parser==="less"&&e.type==="css-decl"&&s.startsWith("extend(")&&(e.extend||(e.extend=e.raws.between===":"),e.extend&&!e.selector&&(delete e.value,e.selector=ve(s.slice(7,-1)))),e.type==="css-atrule"){if(r.parser==="less"){if(e.mixin){let p=e.raws.identifier+e.name+e.raws.afterName+e.raws.params;return e.selector=ve(p),delete e.params,e}if(e.function)return e}if(r.parser==="css"&&e.name==="custom-selector"){let p=e.params.match(/:--\S+\s+/)[0].trim();return e.customSelector=p,e.selector=ve(e.params.slice(p.length).trim()),delete e.params,e}if(r.parser==="less"){if(e.name.includes(":")){e.variable=!0;let p=e.name.split(":");e.name=p[0];let f=p.slice(1).join(":");e.params&&(f+=e.params),e.value=we(f,r)}if(!["page","nest","keyframes"].includes(e.name)&&e.params?.[0]===":"){e.variable=!0;let p=e.params.slice(1);p&&(e.value=we(p,r)),e.raws.afterName+=":"}if(e.variable)return delete e.params,e.value||delete e.value,e}}if(e.type==="css-atrule"&&l.length>0){let{name:p}=e;if(p==="warn"||p==="error")return e.params={type:"media-unknown",value:l},e;if(p==="extend"||p==="nest")return e.selector=ve(l),delete e.params,e;if(p==="at-root")return/^\(\s*(?:without|with)\s*:.+\)$/s.test(l)?e.params=we(l,r):(e.selector=ve(l),delete e.params),e;let f=p.toLowerCase();return Da(f)?(e.import=!0,delete e.filename,e.params=we(l,r),e):["namespace","supports","if","else","for","each","while","debug","mixin","include","function","return","define-mixin","add-mixin"].includes(p)?(l=l.replace(/(\$\S+?)(\s+)?\.{3}/,"$1...$2"),l=l.replace(/^(?!if)([^"'\s(]+)(\s+)\(/,"$1($2"),e.value=we(l,r),delete e.params,e):["media","custom-media"].includes(f)?l.includes("#{")?{type:"media-unknown",value:l}:(e.params=_a(l),e):(e.params=l,e)}}return e}function Zt(e,r,n){let{frontMatter:s,content:l}=it(r),p;try{p=e(l,{map:!1})}catch(f){let{name:m,reason:w,line:y,column:c}=f;throw typeof y!="number"?f:ba(`${m}: ${w}`,{loc:{start:{line:y,column:c}},cause:f})}return n.originalText=r,p=Os(Ve(p,"css-"),n),fo(p,r),s&&(p.frontMatter={...s,type:"front-matter",source:{startOffset:s.start.index,endOffset:s.end.index}}),p}function Ts(e,r={}){return Zt(ta.default.default,e,r)}function _s(e,r={}){return Zt(n=>ga(bo(n)),e,r)}function Ss(e,r={}){return Zt(va.default,e,r)}var Kt={astFormat:"postcss",hasPragma:Jo,hasIgnorePragma:Go,locStart:K,locEnd:V},Ga={...Kt,parse:Ts},Ha={...Kt,parse:_s},Qa={...Kt,parse:Ss},Ya={postcss:Yi};return $s(vr)})})(er)),er.exports}var Ps=Xa();const eu=Za(Ps),ru=Ka({__proto__:null,default:eu},[Ps]);export{ru as p};
|