@suveren/gateway 0.18.0 → 0.18.1
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/bin/suveren-gateway.js +26 -1
- package/content/guides/3-mandates.md +1 -0
- package/dist/control-plane/index.mjs +132 -12
- package/dist/mcp-server/chunk-JUFH4SKS.mjs +639 -0
- package/dist/mcp-server/http.mjs +1592 -190
- package/dist/mcp-server/report-verify-cli.mjs +171 -0
- package/dist/ui/assets/index-78vuGrVE.js +111 -0
- package/dist/ui/assets/{index-y1OFeYnS.css → index-Dfh38n-b.css} +1 -1
- package/dist/ui/index.html +2 -2
- package/node_modules/dayjs/.editorconfig +7 -0
- package/node_modules/dayjs/CHANGELOG.md +1022 -0
- package/node_modules/dayjs/LICENSE +21 -0
- package/node_modules/dayjs/README.md +186 -0
- package/node_modules/dayjs/dayjs.min.js +1 -0
- package/node_modules/dayjs/esm/constant.js +25 -0
- package/node_modules/dayjs/esm/index.d.ts +429 -0
- package/node_modules/dayjs/esm/index.js +541 -0
- package/node_modules/dayjs/esm/locale/af.js +39 -0
- package/node_modules/dayjs/esm/locale/am.js +40 -0
- package/node_modules/dayjs/esm/locale/ar-dz.js +41 -0
- package/node_modules/dayjs/esm/locale/ar-iq.js +42 -0
- package/node_modules/dayjs/esm/locale/ar-kw.js +41 -0
- package/node_modules/dayjs/esm/locale/ar-ly.js +27 -0
- package/node_modules/dayjs/esm/locale/ar-ma.js +42 -0
- package/node_modules/dayjs/esm/locale/ar-sa.js +41 -0
- package/node_modules/dayjs/esm/locale/ar-tn.js +42 -0
- package/node_modules/dayjs/esm/locale/ar.js +81 -0
- package/node_modules/dayjs/esm/locale/az.js +39 -0
- package/node_modules/dayjs/esm/locale/be.js +102 -0
- package/node_modules/dayjs/esm/locale/bg.js +55 -0
- package/node_modules/dayjs/esm/locale/bi.js +39 -0
- package/node_modules/dayjs/esm/locale/bm.js +39 -0
- package/node_modules/dayjs/esm/locale/bn-bd.js +81 -0
- package/node_modules/dayjs/esm/locale/bn.js +72 -0
- package/node_modules/dayjs/esm/locale/bo.js +38 -0
- package/node_modules/dayjs/esm/locale/br.js +93 -0
- package/node_modules/dayjs/esm/locale/bs.js +24 -0
- package/node_modules/dayjs/esm/locale/ca.js +44 -0
- package/node_modules/dayjs/esm/locale/cs.js +120 -0
- package/node_modules/dayjs/esm/locale/cv.js +24 -0
- package/node_modules/dayjs/esm/locale/cy.js +39 -0
- package/node_modules/dayjs/esm/locale/da.js +40 -0
- package/node_modules/dayjs/esm/locale/de-at.js +63 -0
- package/node_modules/dayjs/esm/locale/de-ch.js +63 -0
- package/node_modules/dayjs/esm/locale/de.js +64 -0
- package/node_modules/dayjs/esm/locale/dv.js +39 -0
- package/node_modules/dayjs/esm/locale/el.js +39 -0
- package/node_modules/dayjs/esm/locale/en-au.js +41 -0
- package/node_modules/dayjs/esm/locale/en-ca.js +38 -0
- package/node_modules/dayjs/esm/locale/en-gb.js +42 -0
- package/node_modules/dayjs/esm/locale/en-ie.js +39 -0
- package/node_modules/dayjs/esm/locale/en-il.js +38 -0
- package/node_modules/dayjs/esm/locale/en-in.js +42 -0
- package/node_modules/dayjs/esm/locale/en-nz.js +41 -0
- package/node_modules/dayjs/esm/locale/en-sg.js +39 -0
- package/node_modules/dayjs/esm/locale/en-tt.js +42 -0
- package/node_modules/dayjs/esm/locale/en.js +12 -0
- package/node_modules/dayjs/esm/locale/eo.js +39 -0
- package/node_modules/dayjs/esm/locale/es-do.js +39 -0
- package/node_modules/dayjs/esm/locale/es-mx.js +38 -0
- package/node_modules/dayjs/esm/locale/es-pr.js +39 -0
- package/node_modules/dayjs/esm/locale/es-us.js +38 -0
- package/node_modules/dayjs/esm/locale/es.js +39 -0
- package/node_modules/dayjs/esm/locale/et.js +65 -0
- package/node_modules/dayjs/esm/locale/eu.js +43 -0
- package/node_modules/dayjs/esm/locale/fa.js +39 -0
- package/node_modules/dayjs/esm/locale/fi.js +88 -0
- package/node_modules/dayjs/esm/locale/fo.js +39 -0
- package/node_modules/dayjs/esm/locale/fr-ca.js +38 -0
- package/node_modules/dayjs/esm/locale/fr-ch.js +39 -0
- package/node_modules/dayjs/esm/locale/fr.js +41 -0
- package/node_modules/dayjs/esm/locale/fy.js +39 -0
- package/node_modules/dayjs/esm/locale/ga.js +39 -0
- package/node_modules/dayjs/esm/locale/gd.js +39 -0
- package/node_modules/dayjs/esm/locale/gl.js +39 -0
- package/node_modules/dayjs/esm/locale/gom-latn.js +25 -0
- package/node_modules/dayjs/esm/locale/gu.js +38 -0
- package/node_modules/dayjs/esm/locale/he.js +78 -0
- package/node_modules/dayjs/esm/locale/hi.js +38 -0
- package/node_modules/dayjs/esm/locale/hr.js +53 -0
- package/node_modules/dayjs/esm/locale/ht.js +38 -0
- package/node_modules/dayjs/esm/locale/hu.js +61 -0
- package/node_modules/dayjs/esm/locale/hy-am.js +39 -0
- package/node_modules/dayjs/esm/locale/id.js +39 -0
- package/node_modules/dayjs/esm/locale/index.d.ts +11 -0
- package/node_modules/dayjs/esm/locale/is.js +68 -0
- package/node_modules/dayjs/esm/locale/it-ch.js +39 -0
- package/node_modules/dayjs/esm/locale/it.js +39 -0
- package/node_modules/dayjs/esm/locale/ja.js +45 -0
- package/node_modules/dayjs/esm/locale/jv.js +39 -0
- package/node_modules/dayjs/esm/locale/ka.js +39 -0
- package/node_modules/dayjs/esm/locale/kk.js +39 -0
- package/node_modules/dayjs/esm/locale/km.js +42 -0
- package/node_modules/dayjs/esm/locale/kn.js +38 -0
- package/node_modules/dayjs/esm/locale/ko.js +45 -0
- package/node_modules/dayjs/esm/locale/ku.js +77 -0
- package/node_modules/dayjs/esm/locale/ky.js +39 -0
- package/node_modules/dayjs/esm/locale/lb.js +24 -0
- package/node_modules/dayjs/esm/locale/lo.js +38 -0
- package/node_modules/dayjs/esm/locale/lt.js +70 -0
- package/node_modules/dayjs/esm/locale/lv.js +39 -0
- package/node_modules/dayjs/esm/locale/me.js +24 -0
- package/node_modules/dayjs/esm/locale/mi.js +39 -0
- package/node_modules/dayjs/esm/locale/mk.js +39 -0
- package/node_modules/dayjs/esm/locale/ml.js +38 -0
- package/node_modules/dayjs/esm/locale/mn.js +38 -0
- package/node_modules/dayjs/esm/locale/mr.js +23 -0
- package/node_modules/dayjs/esm/locale/ms-my.js +39 -0
- package/node_modules/dayjs/esm/locale/ms.js +39 -0
- package/node_modules/dayjs/esm/locale/mt.js +39 -0
- package/node_modules/dayjs/esm/locale/my.js +39 -0
- package/node_modules/dayjs/esm/locale/nb.js +40 -0
- package/node_modules/dayjs/esm/locale/ne.js +40 -0
- package/node_modules/dayjs/esm/locale/nl-be.js +39 -0
- package/node_modules/dayjs/esm/locale/nl.js +40 -0
- package/node_modules/dayjs/esm/locale/nn.js +39 -0
- package/node_modules/dayjs/esm/locale/oc-lnc.js +39 -0
- package/node_modules/dayjs/esm/locale/pa-in.js +38 -0
- package/node_modules/dayjs/esm/locale/pl.js +87 -0
- package/node_modules/dayjs/esm/locale/pt-br.js +38 -0
- package/node_modules/dayjs/esm/locale/pt.js +40 -0
- package/node_modules/dayjs/esm/locale/rn.js +39 -0
- package/node_modules/dayjs/esm/locale/ro.js +39 -0
- package/node_modules/dayjs/esm/locale/ru.js +99 -0
- package/node_modules/dayjs/esm/locale/rw.js +35 -0
- package/node_modules/dayjs/esm/locale/sd.js +39 -0
- package/node_modules/dayjs/esm/locale/se.js +39 -0
- package/node_modules/dayjs/esm/locale/si.js +38 -0
- package/node_modules/dayjs/esm/locale/sk.js +121 -0
- package/node_modules/dayjs/esm/locale/sl.js +141 -0
- package/node_modules/dayjs/esm/locale/sq.js +39 -0
- package/node_modules/dayjs/esm/locale/sr-cyrl.js +74 -0
- package/node_modules/dayjs/esm/locale/sr.js +74 -0
- package/node_modules/dayjs/esm/locale/ss.js +39 -0
- package/node_modules/dayjs/esm/locale/sv-fi.js +46 -0
- package/node_modules/dayjs/esm/locale/sv.js +44 -0
- package/node_modules/dayjs/esm/locale/sw.js +39 -0
- package/node_modules/dayjs/esm/locale/ta.js +38 -0
- package/node_modules/dayjs/esm/locale/te.js +38 -0
- package/node_modules/dayjs/esm/locale/tet.js +39 -0
- package/node_modules/dayjs/esm/locale/tg.js +39 -0
- package/node_modules/dayjs/esm/locale/th.js +38 -0
- package/node_modules/dayjs/esm/locale/tk.js +39 -0
- package/node_modules/dayjs/esm/locale/tl-ph.js +39 -0
- package/node_modules/dayjs/esm/locale/tlh.js +24 -0
- package/node_modules/dayjs/esm/locale/tr.js +39 -0
- package/node_modules/dayjs/esm/locale/types.d.ts +33 -0
- package/node_modules/dayjs/esm/locale/tzl.js +24 -0
- package/node_modules/dayjs/esm/locale/tzm-latn.js +39 -0
- package/node_modules/dayjs/esm/locale/tzm.js +39 -0
- package/node_modules/dayjs/esm/locale/ug-cn.js +39 -0
- package/node_modules/dayjs/esm/locale/uk.js +77 -0
- package/node_modules/dayjs/esm/locale/ur.js +39 -0
- package/node_modules/dayjs/esm/locale/uz-latn.js +39 -0
- package/node_modules/dayjs/esm/locale/uz.js +39 -0
- package/node_modules/dayjs/esm/locale/vi.js +43 -0
- package/node_modules/dayjs/esm/locale/x-pseudo.js +39 -0
- package/node_modules/dayjs/esm/locale/yo.js +39 -0
- package/node_modules/dayjs/esm/locale/zh-cn.js +67 -0
- package/node_modules/dayjs/esm/locale/zh-hk.js +65 -0
- package/node_modules/dayjs/esm/locale/zh-tw.js +65 -0
- package/node_modules/dayjs/esm/locale/zh.js +67 -0
- package/node_modules/dayjs/esm/plugin/advancedFormat/index.d.ts +4 -0
- package/node_modules/dayjs/esm/plugin/advancedFormat/index.js +66 -0
- package/node_modules/dayjs/esm/plugin/arraySupport/index.d.ts +10 -0
- package/node_modules/dayjs/esm/plugin/arraySupport/index.js +33 -0
- package/node_modules/dayjs/esm/plugin/badMutable/index.d.ts +4 -0
- package/node_modules/dayjs/esm/plugin/badMutable/index.js +61 -0
- package/node_modules/dayjs/esm/plugin/bigIntSupport/index.d.ts +11 -0
- package/node_modules/dayjs/esm/plugin/bigIntSupport/index.js +32 -0
- package/node_modules/dayjs/esm/plugin/buddhistEra/index.d.ts +4 -0
- package/node_modules/dayjs/esm/plugin/buddhistEra/index.js +21 -0
- package/node_modules/dayjs/esm/plugin/calendar/index.d.ts +10 -0
- package/node_modules/dayjs/esm/plugin/calendar/index.js +32 -0
- package/node_modules/dayjs/esm/plugin/customParseFormat/index.d.ts +8 -0
- package/node_modules/dayjs/esm/plugin/customParseFormat/index.js +333 -0
- package/node_modules/dayjs/esm/plugin/dayOfYear/index.d.ts +11 -0
- package/node_modules/dayjs/esm/plugin/dayOfYear/index.js +9 -0
- package/node_modules/dayjs/esm/plugin/devHelper/index.d.ts +4 -0
- package/node_modules/dayjs/esm/plugin/devHelper/index.js +50 -0
- package/node_modules/dayjs/esm/plugin/duration/index.d.ts +88 -0
- package/node_modules/dayjs/esm/plugin/duration/index.js +357 -0
- package/node_modules/dayjs/esm/plugin/isBetween/index.d.ts +10 -0
- package/node_modules/dayjs/esm/plugin/isBetween/index.js +10 -0
- package/node_modules/dayjs/esm/plugin/isLeapYear/index.d.ts +10 -0
- package/node_modules/dayjs/esm/plugin/isLeapYear/index.js +7 -0
- package/node_modules/dayjs/esm/plugin/isMoment/index.d.ts +10 -0
- package/node_modules/dayjs/esm/plugin/isMoment/index.js +5 -0
- package/node_modules/dayjs/esm/plugin/isSameOrAfter/index.d.ts +10 -0
- package/node_modules/dayjs/esm/plugin/isSameOrAfter/index.js +5 -0
- package/node_modules/dayjs/esm/plugin/isSameOrBefore/index.d.ts +10 -0
- package/node_modules/dayjs/esm/plugin/isSameOrBefore/index.js +5 -0
- package/node_modules/dayjs/esm/plugin/isToday/index.d.ts +10 -0
- package/node_modules/dayjs/esm/plugin/isToday/index.js +9 -0
- package/node_modules/dayjs/esm/plugin/isTomorrow/index.d.ts +10 -0
- package/node_modules/dayjs/esm/plugin/isTomorrow/index.js +9 -0
- package/node_modules/dayjs/esm/plugin/isYesterday/index.d.ts +10 -0
- package/node_modules/dayjs/esm/plugin/isYesterday/index.js +9 -0
- package/node_modules/dayjs/esm/plugin/isoWeek/index.d.ts +27 -0
- package/node_modules/dayjs/esm/plugin/isoWeek/index.js +57 -0
- package/node_modules/dayjs/esm/plugin/isoWeeksInYear/index.d.ts +10 -0
- package/node_modules/dayjs/esm/plugin/isoWeeksInYear/index.js +15 -0
- package/node_modules/dayjs/esm/plugin/localeData/index.d.ts +44 -0
- package/node_modules/dayjs/esm/plugin/localeData/index.js +114 -0
- package/node_modules/dayjs/esm/plugin/localizedFormat/index.d.ts +4 -0
- package/node_modules/dayjs/esm/plugin/localizedFormat/index.js +20 -0
- package/node_modules/dayjs/esm/plugin/localizedFormat/utils.js +20 -0
- package/node_modules/dayjs/esm/plugin/minMax/index.d.ts +22 -0
- package/node_modules/dayjs/esm/plugin/minMax/index.js +39 -0
- package/node_modules/dayjs/esm/plugin/negativeYear/index.d.ts +4 -0
- package/node_modules/dayjs/esm/plugin/negativeYear/index.js +36 -0
- package/node_modules/dayjs/esm/plugin/objectSupport/index.d.ts +48 -0
- package/node_modules/dayjs/esm/plugin/objectSupport/index.js +97 -0
- package/node_modules/dayjs/esm/plugin/pluralGetSet/index.d.ts +44 -0
- package/node_modules/dayjs/esm/plugin/pluralGetSet/index.js +7 -0
- package/node_modules/dayjs/esm/plugin/preParsePostFormat/index.d.ts +4 -0
- package/node_modules/dayjs/esm/plugin/preParsePostFormat/index.js +40 -0
- package/node_modules/dayjs/esm/plugin/quarterOfYear/index.d.ts +26 -0
- package/node_modules/dayjs/esm/plugin/quarterOfYear/index.js +41 -0
- package/node_modules/dayjs/esm/plugin/relativeTime/index.d.ts +24 -0
- package/node_modules/dayjs/esm/plugin/relativeTime/index.js +130 -0
- package/node_modules/dayjs/esm/plugin/timezone/index.d.ts +20 -0
- package/node_modules/dayjs/esm/plugin/timezone/index.js +205 -0
- package/node_modules/dayjs/esm/plugin/toArray/index.d.ts +10 -0
- package/node_modules/dayjs/esm/plugin/toArray/index.js +7 -0
- package/node_modules/dayjs/esm/plugin/toObject/index.d.ts +20 -0
- package/node_modules/dayjs/esm/plugin/toObject/index.js +15 -0
- package/node_modules/dayjs/esm/plugin/updateLocale/index.d.ts +8 -0
- package/node_modules/dayjs/esm/plugin/updateLocale/index.js +18 -0
- package/node_modules/dayjs/esm/plugin/utc/index.d.ts +19 -0
- package/node_modules/dayjs/esm/plugin/utc/index.js +188 -0
- package/node_modules/dayjs/esm/plugin/weekOfYear/index.d.ts +12 -0
- package/node_modules/dayjs/esm/plugin/weekOfYear/index.js +44 -0
- package/node_modules/dayjs/esm/plugin/weekYear/index.d.ts +10 -0
- package/node_modules/dayjs/esm/plugin/weekYear/index.js +19 -0
- package/node_modules/dayjs/esm/plugin/weekday/index.d.ts +12 -0
- package/node_modules/dayjs/esm/plugin/weekday/index.js +15 -0
- package/node_modules/dayjs/esm/utils.js +58 -0
- package/node_modules/dayjs/index.d.ts +429 -0
- package/node_modules/dayjs/locale/af.js +1 -0
- package/node_modules/dayjs/locale/am.js +1 -0
- package/node_modules/dayjs/locale/ar-dz.js +1 -0
- package/node_modules/dayjs/locale/ar-iq.js +1 -0
- package/node_modules/dayjs/locale/ar-kw.js +1 -0
- package/node_modules/dayjs/locale/ar-ly.js +1 -0
- package/node_modules/dayjs/locale/ar-ma.js +1 -0
- package/node_modules/dayjs/locale/ar-sa.js +1 -0
- package/node_modules/dayjs/locale/ar-tn.js +1 -0
- package/node_modules/dayjs/locale/ar.js +1 -0
- package/node_modules/dayjs/locale/az.js +1 -0
- package/node_modules/dayjs/locale/be.js +1 -0
- package/node_modules/dayjs/locale/bg.js +1 -0
- package/node_modules/dayjs/locale/bi.js +1 -0
- package/node_modules/dayjs/locale/bm.js +1 -0
- package/node_modules/dayjs/locale/bn-bd.js +1 -0
- package/node_modules/dayjs/locale/bn.js +1 -0
- package/node_modules/dayjs/locale/bo.js +1 -0
- package/node_modules/dayjs/locale/br.js +1 -0
- package/node_modules/dayjs/locale/bs.js +1 -0
- package/node_modules/dayjs/locale/ca.js +1 -0
- package/node_modules/dayjs/locale/cs.js +1 -0
- package/node_modules/dayjs/locale/cv.js +1 -0
- package/node_modules/dayjs/locale/cy.js +1 -0
- package/node_modules/dayjs/locale/da.js +1 -0
- package/node_modules/dayjs/locale/de-at.js +1 -0
- package/node_modules/dayjs/locale/de-ch.js +1 -0
- package/node_modules/dayjs/locale/de.js +1 -0
- package/node_modules/dayjs/locale/dv.js +1 -0
- package/node_modules/dayjs/locale/el.js +1 -0
- package/node_modules/dayjs/locale/en-au.js +1 -0
- package/node_modules/dayjs/locale/en-ca.js +1 -0
- package/node_modules/dayjs/locale/en-gb.js +1 -0
- package/node_modules/dayjs/locale/en-ie.js +1 -0
- package/node_modules/dayjs/locale/en-il.js +1 -0
- package/node_modules/dayjs/locale/en-in.js +1 -0
- package/node_modules/dayjs/locale/en-nz.js +1 -0
- package/node_modules/dayjs/locale/en-sg.js +1 -0
- package/node_modules/dayjs/locale/en-tt.js +1 -0
- package/node_modules/dayjs/locale/en.js +1 -0
- package/node_modules/dayjs/locale/eo.js +1 -0
- package/node_modules/dayjs/locale/es-do.js +1 -0
- package/node_modules/dayjs/locale/es-mx.js +1 -0
- package/node_modules/dayjs/locale/es-pr.js +1 -0
- package/node_modules/dayjs/locale/es-us.js +1 -0
- package/node_modules/dayjs/locale/es.js +1 -0
- package/node_modules/dayjs/locale/et.js +1 -0
- package/node_modules/dayjs/locale/eu.js +1 -0
- package/node_modules/dayjs/locale/fa.js +1 -0
- package/node_modules/dayjs/locale/fi.js +1 -0
- package/node_modules/dayjs/locale/fo.js +1 -0
- package/node_modules/dayjs/locale/fr-ca.js +1 -0
- package/node_modules/dayjs/locale/fr-ch.js +1 -0
- package/node_modules/dayjs/locale/fr.js +1 -0
- package/node_modules/dayjs/locale/fy.js +1 -0
- package/node_modules/dayjs/locale/ga.js +1 -0
- package/node_modules/dayjs/locale/gd.js +1 -0
- package/node_modules/dayjs/locale/gl.js +1 -0
- package/node_modules/dayjs/locale/gom-latn.js +1 -0
- package/node_modules/dayjs/locale/gu.js +1 -0
- package/node_modules/dayjs/locale/he.js +1 -0
- package/node_modules/dayjs/locale/hi.js +1 -0
- package/node_modules/dayjs/locale/hr.js +1 -0
- package/node_modules/dayjs/locale/ht.js +1 -0
- package/node_modules/dayjs/locale/hu.js +1 -0
- package/node_modules/dayjs/locale/hy-am.js +1 -0
- package/node_modules/dayjs/locale/id.js +1 -0
- package/node_modules/dayjs/locale/index.d.ts +11 -0
- package/node_modules/dayjs/locale/is.js +1 -0
- package/node_modules/dayjs/locale/it-ch.js +1 -0
- package/node_modules/dayjs/locale/it.js +1 -0
- package/node_modules/dayjs/locale/ja.js +1 -0
- package/node_modules/dayjs/locale/jv.js +1 -0
- package/node_modules/dayjs/locale/ka.js +1 -0
- package/node_modules/dayjs/locale/kk.js +1 -0
- package/node_modules/dayjs/locale/km.js +1 -0
- package/node_modules/dayjs/locale/kn.js +1 -0
- package/node_modules/dayjs/locale/ko.js +1 -0
- package/node_modules/dayjs/locale/ku.js +1 -0
- package/node_modules/dayjs/locale/ky.js +1 -0
- package/node_modules/dayjs/locale/lb.js +1 -0
- package/node_modules/dayjs/locale/lo.js +1 -0
- package/node_modules/dayjs/locale/lt.js +1 -0
- package/node_modules/dayjs/locale/lv.js +1 -0
- package/node_modules/dayjs/locale/me.js +1 -0
- package/node_modules/dayjs/locale/mi.js +1 -0
- package/node_modules/dayjs/locale/mk.js +1 -0
- package/node_modules/dayjs/locale/ml.js +1 -0
- package/node_modules/dayjs/locale/mn.js +1 -0
- package/node_modules/dayjs/locale/mr.js +1 -0
- package/node_modules/dayjs/locale/ms-my.js +1 -0
- package/node_modules/dayjs/locale/ms.js +1 -0
- package/node_modules/dayjs/locale/mt.js +1 -0
- package/node_modules/dayjs/locale/my.js +1 -0
- package/node_modules/dayjs/locale/nb.js +1 -0
- package/node_modules/dayjs/locale/ne.js +1 -0
- package/node_modules/dayjs/locale/nl-be.js +1 -0
- package/node_modules/dayjs/locale/nl.js +1 -0
- package/node_modules/dayjs/locale/nn.js +1 -0
- package/node_modules/dayjs/locale/oc-lnc.js +1 -0
- package/node_modules/dayjs/locale/pa-in.js +1 -0
- package/node_modules/dayjs/locale/pl.js +1 -0
- package/node_modules/dayjs/locale/pt-br.js +1 -0
- package/node_modules/dayjs/locale/pt.js +1 -0
- package/node_modules/dayjs/locale/rn.js +1 -0
- package/node_modules/dayjs/locale/ro.js +1 -0
- package/node_modules/dayjs/locale/ru.js +1 -0
- package/node_modules/dayjs/locale/rw.js +1 -0
- package/node_modules/dayjs/locale/sd.js +1 -0
- package/node_modules/dayjs/locale/se.js +1 -0
- package/node_modules/dayjs/locale/si.js +1 -0
- package/node_modules/dayjs/locale/sk.js +1 -0
- package/node_modules/dayjs/locale/sl.js +1 -0
- package/node_modules/dayjs/locale/sq.js +1 -0
- package/node_modules/dayjs/locale/sr-cyrl.js +1 -0
- package/node_modules/dayjs/locale/sr.js +1 -0
- package/node_modules/dayjs/locale/ss.js +1 -0
- package/node_modules/dayjs/locale/sv-fi.js +1 -0
- package/node_modules/dayjs/locale/sv.js +1 -0
- package/node_modules/dayjs/locale/sw.js +1 -0
- package/node_modules/dayjs/locale/ta.js +1 -0
- package/node_modules/dayjs/locale/te.js +1 -0
- package/node_modules/dayjs/locale/tet.js +1 -0
- package/node_modules/dayjs/locale/tg.js +1 -0
- package/node_modules/dayjs/locale/th.js +1 -0
- package/node_modules/dayjs/locale/tk.js +1 -0
- package/node_modules/dayjs/locale/tl-ph.js +1 -0
- package/node_modules/dayjs/locale/tlh.js +1 -0
- package/node_modules/dayjs/locale/tr.js +1 -0
- package/node_modules/dayjs/locale/types.d.ts +33 -0
- package/node_modules/dayjs/locale/tzl.js +1 -0
- package/node_modules/dayjs/locale/tzm-latn.js +1 -0
- package/node_modules/dayjs/locale/tzm.js +1 -0
- package/node_modules/dayjs/locale/ug-cn.js +1 -0
- package/node_modules/dayjs/locale/uk.js +1 -0
- package/node_modules/dayjs/locale/ur.js +1 -0
- package/node_modules/dayjs/locale/uz-latn.js +1 -0
- package/node_modules/dayjs/locale/uz.js +1 -0
- package/node_modules/dayjs/locale/vi.js +1 -0
- package/node_modules/dayjs/locale/x-pseudo.js +1 -0
- package/node_modules/dayjs/locale/yo.js +1 -0
- package/node_modules/dayjs/locale/zh-cn.js +1 -0
- package/node_modules/dayjs/locale/zh-hk.js +1 -0
- package/node_modules/dayjs/locale/zh-tw.js +1 -0
- package/node_modules/dayjs/locale/zh.js +1 -0
- package/node_modules/dayjs/locale.json +1 -0
- package/node_modules/dayjs/package.json +86 -0
- package/node_modules/dayjs/plugin/advancedFormat.d.ts +4 -0
- package/node_modules/dayjs/plugin/advancedFormat.js +1 -0
- package/node_modules/dayjs/plugin/arraySupport.d.ts +10 -0
- package/node_modules/dayjs/plugin/arraySupport.js +1 -0
- package/node_modules/dayjs/plugin/badMutable.d.ts +4 -0
- package/node_modules/dayjs/plugin/badMutable.js +1 -0
- package/node_modules/dayjs/plugin/bigIntSupport.d.ts +11 -0
- package/node_modules/dayjs/plugin/bigIntSupport.js +1 -0
- package/node_modules/dayjs/plugin/buddhistEra.d.ts +4 -0
- package/node_modules/dayjs/plugin/buddhistEra.js +1 -0
- package/node_modules/dayjs/plugin/calendar.d.ts +10 -0
- package/node_modules/dayjs/plugin/calendar.js +1 -0
- package/node_modules/dayjs/plugin/customParseFormat.d.ts +8 -0
- package/node_modules/dayjs/plugin/customParseFormat.js +1 -0
- package/node_modules/dayjs/plugin/dayOfYear.d.ts +11 -0
- package/node_modules/dayjs/plugin/dayOfYear.js +1 -0
- package/node_modules/dayjs/plugin/devHelper.d.ts +4 -0
- package/node_modules/dayjs/plugin/devHelper.js +1 -0
- package/node_modules/dayjs/plugin/duration.d.ts +88 -0
- package/node_modules/dayjs/plugin/duration.js +1 -0
- package/node_modules/dayjs/plugin/isBetween.d.ts +10 -0
- package/node_modules/dayjs/plugin/isBetween.js +1 -0
- package/node_modules/dayjs/plugin/isLeapYear.d.ts +10 -0
- package/node_modules/dayjs/plugin/isLeapYear.js +1 -0
- package/node_modules/dayjs/plugin/isMoment.d.ts +10 -0
- package/node_modules/dayjs/plugin/isMoment.js +1 -0
- package/node_modules/dayjs/plugin/isSameOrAfter.d.ts +10 -0
- package/node_modules/dayjs/plugin/isSameOrAfter.js +1 -0
- package/node_modules/dayjs/plugin/isSameOrBefore.d.ts +10 -0
- package/node_modules/dayjs/plugin/isSameOrBefore.js +1 -0
- package/node_modules/dayjs/plugin/isToday.d.ts +10 -0
- package/node_modules/dayjs/plugin/isToday.js +1 -0
- package/node_modules/dayjs/plugin/isTomorrow.d.ts +10 -0
- package/node_modules/dayjs/plugin/isTomorrow.js +1 -0
- package/node_modules/dayjs/plugin/isYesterday.d.ts +10 -0
- package/node_modules/dayjs/plugin/isYesterday.js +1 -0
- package/node_modules/dayjs/plugin/isoWeek.d.ts +27 -0
- package/node_modules/dayjs/plugin/isoWeek.js +1 -0
- package/node_modules/dayjs/plugin/isoWeeksInYear.d.ts +10 -0
- package/node_modules/dayjs/plugin/isoWeeksInYear.js +1 -0
- package/node_modules/dayjs/plugin/localeData.d.ts +44 -0
- package/node_modules/dayjs/plugin/localeData.js +1 -0
- package/node_modules/dayjs/plugin/localizedFormat.d.ts +4 -0
- package/node_modules/dayjs/plugin/localizedFormat.js +1 -0
- package/node_modules/dayjs/plugin/minMax.d.ts +22 -0
- package/node_modules/dayjs/plugin/minMax.js +1 -0
- package/node_modules/dayjs/plugin/negativeYear.d.ts +4 -0
- package/node_modules/dayjs/plugin/negativeYear.js +1 -0
- package/node_modules/dayjs/plugin/objectSupport.d.ts +48 -0
- package/node_modules/dayjs/plugin/objectSupport.js +1 -0
- package/node_modules/dayjs/plugin/pluralGetSet.d.ts +44 -0
- package/node_modules/dayjs/plugin/pluralGetSet.js +1 -0
- package/node_modules/dayjs/plugin/preParsePostFormat.d.ts +4 -0
- package/node_modules/dayjs/plugin/preParsePostFormat.js +1 -0
- package/node_modules/dayjs/plugin/quarterOfYear.d.ts +26 -0
- package/node_modules/dayjs/plugin/quarterOfYear.js +1 -0
- package/node_modules/dayjs/plugin/relativeTime.d.ts +24 -0
- package/node_modules/dayjs/plugin/relativeTime.js +1 -0
- package/node_modules/dayjs/plugin/timezone.d.ts +20 -0
- package/node_modules/dayjs/plugin/timezone.js +1 -0
- package/node_modules/dayjs/plugin/toArray.d.ts +10 -0
- package/node_modules/dayjs/plugin/toArray.js +1 -0
- package/node_modules/dayjs/plugin/toObject.d.ts +20 -0
- package/node_modules/dayjs/plugin/toObject.js +1 -0
- package/node_modules/dayjs/plugin/updateLocale.d.ts +8 -0
- package/node_modules/dayjs/plugin/updateLocale.js +1 -0
- package/node_modules/dayjs/plugin/utc.d.ts +19 -0
- package/node_modules/dayjs/plugin/utc.js +1 -0
- package/node_modules/dayjs/plugin/weekOfYear.d.ts +12 -0
- package/node_modules/dayjs/plugin/weekOfYear.js +1 -0
- package/node_modules/dayjs/plugin/weekYear.d.ts +10 -0
- package/node_modules/dayjs/plugin/weekYear.js +1 -0
- package/node_modules/dayjs/plugin/weekday.d.ts +12 -0
- package/node_modules/dayjs/plugin/weekday.js +1 -0
- package/node_modules/deepmerge/.editorconfig +7 -0
- package/node_modules/deepmerge/.eslintcache +1 -0
- package/node_modules/deepmerge/changelog.md +167 -0
- package/node_modules/deepmerge/dist/cjs.js +133 -0
- package/node_modules/deepmerge/dist/umd.js +139 -0
- package/node_modules/deepmerge/index.d.ts +20 -0
- package/node_modules/deepmerge/index.js +106 -0
- package/node_modules/deepmerge/license.txt +21 -0
- package/node_modules/deepmerge/package.json +42 -0
- package/node_modules/deepmerge/readme.md +264 -0
- package/node_modules/deepmerge/rollup.config.js +22 -0
- package/node_modules/dom-serializer/LICENSE +7 -0
- package/node_modules/dom-serializer/README.md +115 -0
- package/node_modules/dom-serializer/dist/foreign-names.d.ts +11 -0
- package/node_modules/dom-serializer/dist/foreign-names.d.ts.map +1 -0
- package/node_modules/dom-serializer/dist/foreign-names.js +15 -0
- package/node_modules/dom-serializer/dist/foreign-names.js.map +1 -0
- package/node_modules/dom-serializer/dist/index.d.ts +72 -0
- package/node_modules/dom-serializer/dist/index.d.ts.map +1 -0
- package/node_modules/dom-serializer/dist/index.js +173 -0
- package/node_modules/dom-serializer/dist/index.js.map +1 -0
- package/node_modules/dom-serializer/package.json +69 -0
- package/node_modules/dom-serializer/src/foreign-names.ts +19 -0
- package/node_modules/dom-serializer/src/index.ts +315 -0
- package/node_modules/domelementtype/LICENSE +11 -0
- package/node_modules/domelementtype/dist/index.d.ts +48 -0
- package/node_modules/domelementtype/dist/index.d.ts.map +1 -0
- package/node_modules/domelementtype/dist/index.js +60 -0
- package/node_modules/domelementtype/package.json +59 -0
- package/node_modules/domelementtype/readme.md +1 -0
- package/node_modules/domhandler/LICENSE +11 -0
- package/node_modules/domhandler/dist/index.d.ts +79 -0
- package/node_modules/domhandler/dist/index.d.ts.map +1 -0
- package/node_modules/domhandler/dist/index.js +155 -0
- package/node_modules/domhandler/dist/node.d.ts +264 -0
- package/node_modules/domhandler/dist/node.d.ts.map +1 -0
- package/node_modules/domhandler/dist/node.js +359 -0
- package/node_modules/domhandler/package.json +65 -0
- package/node_modules/domhandler/readme.md +86 -0
- package/node_modules/domutils/LICENSE +11 -0
- package/node_modules/domutils/dist/feeds.d.ts +71 -0
- package/node_modules/domutils/dist/feeds.d.ts.map +1 -0
- package/node_modules/domutils/dist/feeds.js +180 -0
- package/node_modules/domutils/dist/feeds.js.map +1 -0
- package/node_modules/domutils/dist/helpers.d.ts +59 -0
- package/node_modules/domutils/dist/helpers.d.ts.map +1 -0
- package/node_modules/domutils/dist/helpers.js +136 -0
- package/node_modules/domutils/dist/helpers.js.map +1 -0
- package/node_modules/domutils/dist/index.d.ts +8 -0
- package/node_modules/domutils/dist/index.d.ts.map +1 -0
- package/node_modules/domutils/dist/index.js +8 -0
- package/node_modules/domutils/dist/index.js.map +1 -0
- package/node_modules/domutils/dist/legacy.d.ts +79 -0
- package/node_modules/domutils/dist/legacy.d.ts.map +1 -0
- package/node_modules/domutils/dist/legacy.js +152 -0
- package/node_modules/domutils/dist/legacy.js.map +1 -0
- package/node_modules/domutils/dist/manipulation.d.ts +49 -0
- package/node_modules/domutils/dist/manipulation.d.ts.map +1 -0
- package/node_modules/domutils/dist/manipulation.js +138 -0
- package/node_modules/domutils/dist/manipulation.js.map +1 -0
- package/node_modules/domutils/dist/querying.d.ts +54 -0
- package/node_modules/domutils/dist/querying.d.ts.map +1 -0
- package/node_modules/domutils/dist/querying.js +129 -0
- package/node_modules/domutils/dist/querying.js.map +1 -0
- package/node_modules/domutils/dist/stringify.d.ts +46 -0
- package/node_modules/domutils/dist/stringify.d.ts.map +1 -0
- package/node_modules/domutils/dist/stringify.js +81 -0
- package/node_modules/domutils/dist/stringify.js.map +1 -0
- package/node_modules/domutils/dist/traversal.d.ts +74 -0
- package/node_modules/domutils/dist/traversal.d.ts.map +1 -0
- package/node_modules/domutils/dist/traversal.js +105 -0
- package/node_modules/domutils/dist/traversal.js.map +1 -0
- package/node_modules/domutils/package.json +69 -0
- package/node_modules/domutils/readme.md +25 -0
- package/node_modules/domutils/src/__snapshots__/feeds.spec.ts.snap +103 -0
- package/node_modules/domutils/src/feeds.ts +301 -0
- package/node_modules/domutils/src/helpers.ts +154 -0
- package/node_modules/domutils/src/index.ts +7 -0
- package/node_modules/domutils/src/legacy.ts +224 -0
- package/node_modules/domutils/src/manipulation.ts +156 -0
- package/node_modules/domutils/src/querying.ts +172 -0
- package/node_modules/domutils/src/stringify.ts +90 -0
- package/node_modules/domutils/src/traversal.ts +132 -0
- package/node_modules/entities/LICENSE +11 -0
- package/node_modules/entities/dist/decode-codepoint.d.ts +28 -0
- package/node_modules/entities/dist/decode-codepoint.d.ts.map +1 -0
- package/node_modules/entities/dist/decode-codepoint.js +61 -0
- package/node_modules/entities/dist/decode-codepoint.js.map +1 -0
- package/node_modules/entities/dist/decode.d.ts +227 -0
- package/node_modules/entities/dist/decode.d.ts.map +1 -0
- package/node_modules/entities/dist/decode.js +1132 -0
- package/node_modules/entities/dist/decode.js.map +1 -0
- package/node_modules/entities/dist/encode.d.ts +26 -0
- package/node_modules/entities/dist/encode.d.ts.map +1 -0
- package/node_modules/entities/dist/encode.js +295 -0
- package/node_modules/entities/dist/encode.js.map +1 -0
- package/node_modules/entities/dist/escape.d.ts +60 -0
- package/node_modules/entities/dist/escape.d.ts.map +1 -0
- package/node_modules/entities/dist/escape.js +172 -0
- package/node_modules/entities/dist/escape.js.map +1 -0
- package/node_modules/entities/dist/generated/decode-data-html.d.ts +3 -0
- package/node_modules/entities/dist/generated/decode-data-html.d.ts.map +1 -0
- package/node_modules/entities/dist/generated/decode-data-html.js +5 -0
- package/node_modules/entities/dist/generated/decode-data-html.js.map +1 -0
- package/node_modules/entities/dist/generated/decode-data-xml.d.ts +3 -0
- package/node_modules/entities/dist/generated/decode-data-xml.d.ts.map +1 -0
- package/node_modules/entities/dist/generated/decode-data-xml.js +7 -0
- package/node_modules/entities/dist/generated/decode-data-xml.js.map +1 -0
- package/node_modules/entities/dist/generated/encode-html.d.ts +3 -0
- package/node_modules/entities/dist/generated/encode-html.d.ts.map +1 -0
- package/node_modules/entities/dist/generated/encode-html.js +3 -0
- package/node_modules/entities/dist/generated/encode-html.js.map +1 -0
- package/node_modules/entities/dist/index.d.ts +89 -0
- package/node_modules/entities/dist/index.d.ts.map +1 -0
- package/node_modules/entities/dist/index.js +87 -0
- package/node_modules/entities/dist/index.js.map +1 -0
- package/node_modules/entities/dist/internal/bin-trie-flags.d.ts +48 -0
- package/node_modules/entities/dist/internal/bin-trie-flags.d.ts.map +1 -0
- package/node_modules/entities/dist/internal/bin-trie-flags.js +49 -0
- package/node_modules/entities/dist/internal/bin-trie-flags.js.map +1 -0
- package/node_modules/entities/dist/internal/decode-shared.d.ts +38 -0
- package/node_modules/entities/dist/internal/decode-shared.d.ts.map +1 -0
- package/node_modules/entities/dist/internal/decode-shared.js +195 -0
- package/node_modules/entities/dist/internal/decode-shared.js.map +1 -0
- package/node_modules/entities/package.json +83 -0
- package/node_modules/entities/readme.md +131 -0
- package/node_modules/entities/src/decode-codepoint.ts +69 -0
- package/node_modules/entities/src/decode.ts +1368 -0
- package/node_modules/entities/src/encode.ts +337 -0
- package/node_modules/entities/src/escape.ts +187 -0
- package/node_modules/entities/src/generated/decode-data-html.ts +12 -0
- package/node_modules/entities/src/generated/decode-data-xml.ts +7 -0
- package/node_modules/entities/src/generated/encode-html.ts +3 -0
- package/node_modules/entities/src/index.ts +160 -0
- package/node_modules/entities/src/internal/bin-trie-flags.ts +47 -0
- package/node_modules/entities/src/internal/decode-shared.ts +209 -0
- package/node_modules/escape-string-regexp/index.d.ts +18 -0
- package/node_modules/escape-string-regexp/index.js +13 -0
- package/node_modules/escape-string-regexp/license +9 -0
- package/node_modules/escape-string-regexp/package.json +38 -0
- package/node_modules/escape-string-regexp/readme.md +34 -0
- package/node_modules/express-rate-limit/dist/index.cjs +9 -7
- package/node_modules/express-rate-limit/dist/index.mjs +9 -7
- package/node_modules/express-rate-limit/package.json +9 -9
- package/node_modules/htmlparser2/LICENSE +18 -0
- package/node_modules/htmlparser2/README.md +257 -0
- package/node_modules/htmlparser2/dist/Parser.d.ts +257 -0
- package/node_modules/htmlparser2/dist/Parser.d.ts.map +1 -0
- package/node_modules/htmlparser2/dist/Parser.js +644 -0
- package/node_modules/htmlparser2/dist/Parser.js.map +1 -0
- package/node_modules/htmlparser2/dist/Tokenizer.d.ts +194 -0
- package/node_modules/htmlparser2/dist/Tokenizer.d.ts.map +1 -0
- package/node_modules/htmlparser2/dist/Tokenizer.js +1056 -0
- package/node_modules/htmlparser2/dist/Tokenizer.js.map +1 -0
- package/node_modules/htmlparser2/dist/WebWritableStream.d.ts +24 -0
- package/node_modules/htmlparser2/dist/WebWritableStream.d.ts.map +1 -0
- package/node_modules/htmlparser2/dist/WebWritableStream.js +44 -0
- package/node_modules/htmlparser2/dist/WebWritableStream.js.map +1 -0
- package/node_modules/htmlparser2/dist/WritableStream.d.ts +14 -0
- package/node_modules/htmlparser2/dist/WritableStream.d.ts.map +1 -0
- package/node_modules/htmlparser2/dist/WritableStream.js +32 -0
- package/node_modules/htmlparser2/dist/WritableStream.js.map +1 -0
- package/node_modules/htmlparser2/dist/index.d.ts +34 -0
- package/node_modules/htmlparser2/dist/index.d.ts.map +1 -0
- package/node_modules/htmlparser2/dist/index.js +46 -0
- package/node_modules/htmlparser2/dist/index.js.map +1 -0
- package/node_modules/htmlparser2/package.json +86 -0
- package/node_modules/htmlparser2/src/Parser.ts +823 -0
- package/node_modules/htmlparser2/src/Tokenizer.ts +1150 -0
- package/node_modules/htmlparser2/src/WebWritableStream.ts +47 -0
- package/node_modules/htmlparser2/src/WritableStream.ts +42 -0
- package/node_modules/htmlparser2/src/index.ts +86 -0
- package/node_modules/launder/.travis.yml +4 -0
- package/node_modules/launder/CHANGELOG.md +80 -0
- package/node_modules/launder/LICENSE.md +7 -0
- package/node_modules/launder/README.md +177 -0
- package/node_modules/launder/eslint.config.js +6 -0
- package/node_modules/launder/index.js +538 -0
- package/node_modules/launder/logos/logo-box-madefor.png +0 -0
- package/node_modules/launder/package.json +38 -0
- package/node_modules/launder/test/test.js +775 -0
- package/node_modules/nanoid/LICENSE +20 -0
- package/node_modules/nanoid/README.md +39 -0
- package/node_modules/nanoid/async/index.browser.cjs +43 -0
- package/node_modules/nanoid/async/index.browser.js +43 -0
- package/node_modules/nanoid/async/index.cjs +47 -0
- package/node_modules/nanoid/async/index.d.cts +56 -0
- package/node_modules/nanoid/async/index.d.ts +56 -0
- package/node_modules/nanoid/async/index.js +47 -0
- package/node_modules/nanoid/async/index.native.js +38 -0
- package/node_modules/nanoid/async/package.json +12 -0
- package/node_modules/nanoid/bin/nanoid.cjs +55 -0
- package/node_modules/nanoid/index.browser.cjs +45 -0
- package/node_modules/nanoid/index.browser.js +45 -0
- package/node_modules/nanoid/index.cjs +63 -0
- package/node_modules/nanoid/index.d.cts +91 -0
- package/node_modules/nanoid/index.d.ts +91 -0
- package/node_modules/nanoid/index.js +63 -0
- package/node_modules/nanoid/nanoid.js +1 -0
- package/node_modules/nanoid/non-secure/index.cjs +24 -0
- package/node_modules/nanoid/non-secure/index.d.ts +33 -0
- package/node_modules/nanoid/non-secure/index.js +24 -0
- package/node_modules/nanoid/non-secure/package.json +6 -0
- package/node_modules/nanoid/package.json +89 -0
- package/node_modules/nanoid/url-alphabet/index.cjs +4 -0
- package/node_modules/nanoid/url-alphabet/index.js +4 -0
- package/node_modules/nanoid/url-alphabet/package.json +6 -0
- package/node_modules/parse-srcset/.jscs.json +83 -0
- package/node_modules/parse-srcset/.jshintrc +15 -0
- package/node_modules/parse-srcset/.npmignore +8 -0
- package/node_modules/parse-srcset/LICENSE +22 -0
- package/node_modules/parse-srcset/README.md +19 -0
- package/node_modules/parse-srcset/package.json +25 -0
- package/node_modules/parse-srcset/src/parse-srcset.js +330 -0
- package/node_modules/parse-srcset/tests/he.js +329 -0
- package/node_modules/parse-srcset/tests/intern.js +74 -0
- package/node_modules/parse-srcset/tests/unit/ps.js +345 -0
- package/node_modules/picocolors/LICENSE +15 -0
- package/node_modules/picocolors/README.md +21 -0
- package/node_modules/picocolors/package.json +25 -0
- package/node_modules/picocolors/picocolors.browser.js +4 -0
- package/node_modules/picocolors/picocolors.d.ts +5 -0
- package/node_modules/picocolors/picocolors.js +75 -0
- package/node_modules/picocolors/types.d.ts +51 -0
- package/node_modules/postcss/LICENSE +20 -0
- package/node_modules/postcss/README.md +27 -0
- package/node_modules/postcss/lib/at-rule.d.ts +139 -0
- package/node_modules/postcss/lib/at-rule.js +25 -0
- package/node_modules/postcss/lib/comment.d.ts +67 -0
- package/node_modules/postcss/lib/comment.js +13 -0
- package/node_modules/postcss/lib/container.d.ts +474 -0
- package/node_modules/postcss/lib/container.js +494 -0
- package/node_modules/postcss/lib/css-syntax-error.d.ts +247 -0
- package/node_modules/postcss/lib/css-syntax-error.js +133 -0
- package/node_modules/postcss/lib/declaration.d.ts +150 -0
- package/node_modules/postcss/lib/declaration.js +24 -0
- package/node_modules/postcss/lib/document.d.ts +68 -0
- package/node_modules/postcss/lib/document.js +33 -0
- package/node_modules/postcss/lib/fromJSON.d.ts +9 -0
- package/node_modules/postcss/lib/fromJSON.js +107 -0
- package/node_modules/postcss/lib/input.d.ts +226 -0
- package/node_modules/postcss/lib/input.js +282 -0
- package/node_modules/postcss/lib/lazy-result.d.ts +189 -0
- package/node_modules/postcss/lib/lazy-result.js +626 -0
- package/node_modules/postcss/lib/list.d.ts +60 -0
- package/node_modules/postcss/lib/list.js +79 -0
- package/node_modules/postcss/lib/map-generator.js +383 -0
- package/node_modules/postcss/lib/no-work-result.d.ts +45 -0
- package/node_modules/postcss/lib/no-work-result.js +137 -0
- package/node_modules/postcss/lib/node.d.ts +555 -0
- package/node_modules/postcss/lib/node.js +494 -0
- package/node_modules/postcss/lib/parse.d.ts +9 -0
- package/node_modules/postcss/lib/parse.js +42 -0
- package/node_modules/postcss/lib/parser.js +626 -0
- package/node_modules/postcss/lib/postcss.d.mts +66 -0
- package/node_modules/postcss/lib/postcss.d.ts +464 -0
- package/node_modules/postcss/lib/postcss.js +101 -0
- package/node_modules/postcss/lib/postcss.mjs +30 -0
- package/node_modules/postcss/lib/previous-map.d.ts +80 -0
- package/node_modules/postcss/lib/previous-map.js +176 -0
- package/node_modules/postcss/lib/processor.d.ts +114 -0
- package/node_modules/postcss/lib/processor.js +67 -0
- package/node_modules/postcss/lib/result.d.ts +204 -0
- package/node_modules/postcss/lib/result.js +42 -0
- package/node_modules/postcss/lib/root.d.ts +86 -0
- package/node_modules/postcss/lib/root.js +76 -0
- package/node_modules/postcss/lib/rule.d.ts +126 -0
- package/node_modules/postcss/lib/rule.js +27 -0
- package/node_modules/postcss/lib/stringifier.d.ts +45 -0
- package/node_modules/postcss/lib/stringifier.js +457 -0
- package/node_modules/postcss/lib/stringify.d.ts +9 -0
- package/node_modules/postcss/lib/stringify.js +69 -0
- package/node_modules/postcss/lib/symbols.js +5 -0
- package/node_modules/postcss/lib/terminal-highlight.js +70 -0
- package/node_modules/postcss/lib/tokenize.js +270 -0
- package/node_modules/postcss/lib/warn-once.js +13 -0
- package/node_modules/postcss/lib/warning.d.ts +146 -0
- package/node_modules/postcss/lib/warning.js +47 -0
- package/node_modules/postcss/package.json +88 -0
- package/node_modules/sanitize-html/LICENSE +7 -0
- package/node_modules/sanitize-html/README.md +877 -0
- package/node_modules/sanitize-html/index.js +1255 -0
- package/node_modules/sanitize-html/package.json +49 -0
- package/node_modules/source-map-js/LICENSE +28 -0
- package/node_modules/source-map-js/README.md +765 -0
- package/node_modules/source-map-js/lib/array-set.js +121 -0
- package/node_modules/source-map-js/lib/base64-vlq.js +140 -0
- package/node_modules/source-map-js/lib/base64.js +67 -0
- package/node_modules/source-map-js/lib/binary-search.js +111 -0
- package/node_modules/source-map-js/lib/mapping-list.js +79 -0
- package/node_modules/source-map-js/lib/quick-sort.js +141 -0
- package/node_modules/source-map-js/lib/source-map-consumer.d.ts +1 -0
- package/node_modules/source-map-js/lib/source-map-consumer.js +1236 -0
- package/node_modules/source-map-js/lib/source-map-generator.d.ts +1 -0
- package/node_modules/source-map-js/lib/source-map-generator.js +446 -0
- package/node_modules/source-map-js/lib/source-node.d.ts +1 -0
- package/node_modules/source-map-js/lib/source-node.js +420 -0
- package/node_modules/source-map-js/lib/util.js +594 -0
- package/node_modules/source-map-js/package.json +71 -0
- package/node_modules/source-map-js/source-map.d.ts +104 -0
- package/node_modules/source-map-js/source-map.js +8 -0
- package/package.json +5 -1
- package/dist/ui/assets/index-BKgX8_Zh.js +0 -111
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decode.js","sourceRoot":"","sources":["../src/decode.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,GACtB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,YAAY,E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AC,UAAU,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,IAAI;wBACxC,SAAS,CAAC,UAAU,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,SAAS,CAAC,IAAI,EACpD,CAAC;wBACC,QAAQ,GAAG,CAAC,CAAC;wBACb,KAAK,GAAG,GAAG,CAAC;oBAChB,CAAC;oBACD,MAAM;gBACV,CAAC;YACL,CAAC;YACD,mDAAmD;QACvD,CAAC;QAED,IAAI,QAAQ,GAAG,CAAC,EAAE,CAAC;YACf,IAAI,SAAS,GAAG,MAAM;gBAClB,MAAM,IAAI,SAAS,CAAC,KAAK,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;YACjD,MAAM,IAAI,KAAK,CAAC;YAChB,MAAM,GAAG,SAAS,GAAG,KAAK,GAAG,QAAQ,CAAC;QAC1C,CAAC;aAAM,CAAC;YACJ,MAAM,GAAG,KAAK,CAAC;QACnB,CAAC;QACD;;;;WAIG;QACH,MAAM;YACF,SAAS,CAAC,UAAU,CAAC,MAAM,CAAC,KAAK,SAAS,CAAC,GAAG;gBAC1C,CAAC,CAAC,MAAM;gBACR,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IAC7C,CAAC,QAAQ,MAAM,IAAI,CAAC,EAAE;IAEtB,OAAO,MAAM,GAAG,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AAC/C,CAAC;AAED,OAAO,EACH,gBAAgB,EAChB,mBAAmB,GACtB,MAAM,uBAAuB,CAAC;AAC/B,uCAAuC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Encodes all characters in the input using HTML entities. This includes
|
|
3
|
+
* characters that are valid ASCII characters in HTML documents, such as `#`.
|
|
4
|
+
*
|
|
5
|
+
* To get a more compact output, consider using the `encodeNonAsciiHTML`
|
|
6
|
+
* function, which will only encode characters that are not valid in HTML
|
|
7
|
+
* documents, as well as non-ASCII characters.
|
|
8
|
+
*
|
|
9
|
+
* If a character has no equivalent entity, a numeric hexadecimal reference
|
|
10
|
+
* (eg. `ü`) will be used.
|
|
11
|
+
* @param input Input string to encode.
|
|
12
|
+
*/
|
|
13
|
+
export declare function encodeHTML(input: string): string;
|
|
14
|
+
/**
|
|
15
|
+
* Encodes all non-ASCII characters, as well as characters not valid in HTML
|
|
16
|
+
* documents using HTML entities. This function will not encode characters that
|
|
17
|
+
* are valid in HTML documents, such as `#`.
|
|
18
|
+
*
|
|
19
|
+
* If a character has no equivalent entity, a numeric hexadecimal reference
|
|
20
|
+
* (eg. `ü`) will be used.
|
|
21
|
+
* @param input Input string to encode.
|
|
22
|
+
*/
|
|
23
|
+
export declare function encodeNonAsciiHTML(input: string): string;
|
|
24
|
+
/** @internal Exported for tests; not re-exported from the package entry. */
|
|
25
|
+
export declare const INLINE_SCAN_WINDOW = 16;
|
|
26
|
+
//# sourceMappingURL=encode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"encode.d.ts","sourceRoot":"","sources":["../src/encode.ts"],"names":[],"mappings":"AAmKA;;;;;;;;;;;GAWG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEhD;AACD;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAExD;AAwBD,4EAA4E;AAC5E,eAAO,MAAM,kBAAkB,KAAK,CAAC"}
|
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
import { XML_BITSET_VALUE, xmlEncodeRegex } from "./escape.js";
|
|
2
|
+
import htmlTrieData from "./generated/encode-html.js";
|
|
3
|
+
/**
|
|
4
|
+
* Flat lookup table for ASCII entity values (code points 0–127).
|
|
5
|
+
*
|
|
6
|
+
* Built once at startup from the full trie. For ASCII characters that need
|
|
7
|
+
* encoding, a direct `asciiEntities[charCode]` array index is much faster
|
|
8
|
+
* than `Map.get(charCode)` because it avoids hashing and bucket lookup.
|
|
9
|
+
*
|
|
10
|
+
* A few ASCII characters also start multi-code-point entities
|
|
11
|
+
* (e.g. `<` + U+20D2 → `<⃒`). For those, the table holds the branch
|
|
12
|
+
* node itself (children plus the single-char value), so the ASCII path
|
|
13
|
+
* never consults `htmlTrie`.
|
|
14
|
+
*/
|
|
15
|
+
const asciiEntities = /* #__PURE__ */ Array.from({ length: 128 }, () => null);
|
|
16
|
+
const htmlTrie = (() => {
|
|
17
|
+
/**
|
|
18
|
+
* Parse a compact encode trie string into a Map keyed by code point.
|
|
19
|
+
*
|
|
20
|
+
* The serialized format (produced by `scripts/write-encode-map.ts`) stores
|
|
21
|
+
* entries in ascending code-point order with delta encoding:
|
|
22
|
+
*
|
|
23
|
+
* [gap]name;[{children}]
|
|
24
|
+
*
|
|
25
|
+
* - `gap` is a base-10 integer giving `currentKey - previousKey - 1`.
|
|
26
|
+
* The very first entry stores the absolute key. A gap of 0 is omitted.
|
|
27
|
+
* - `name;` is the entity name (without `&` prefix) terminated by `;`.
|
|
28
|
+
* Because gaps use only digits `[0-9]` and entity names always start with
|
|
29
|
+
* a letter `[A-Za-z]`, no additional delimiter is needed.
|
|
30
|
+
* - `{…}` is an optional children block using the same scheme recursively.
|
|
31
|
+
* Children represent the second code unit of multi-character entities
|
|
32
|
+
* (e.g. `<` + U+20D2 → `<⃒`).
|
|
33
|
+
*/
|
|
34
|
+
const trie = new Map();
|
|
35
|
+
const data = htmlTrieData;
|
|
36
|
+
let cursor = 0;
|
|
37
|
+
let lastKey = -1;
|
|
38
|
+
function readGap() {
|
|
39
|
+
let value = 0;
|
|
40
|
+
let ch;
|
|
41
|
+
while ((ch = data.charCodeAt(cursor)) >= 48 /* '0' */ &&
|
|
42
|
+
ch <= 57 /* '9' */) {
|
|
43
|
+
value = value * 10 + ch - 48;
|
|
44
|
+
cursor++;
|
|
45
|
+
}
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
function readEntity() {
|
|
49
|
+
const semi = data.indexOf(";", cursor);
|
|
50
|
+
const entity = `&${data.substring(cursor, semi)};`;
|
|
51
|
+
cursor = semi + 1;
|
|
52
|
+
return entity;
|
|
53
|
+
}
|
|
54
|
+
const astralEntries = [];
|
|
55
|
+
while (cursor < data.length) {
|
|
56
|
+
lastKey += readGap() + 1;
|
|
57
|
+
const entityValue = data.charCodeAt(cursor) === 123 /* '{' */ ? null : readEntity();
|
|
58
|
+
if (data.charCodeAt(cursor) === 123 /* '{' */) {
|
|
59
|
+
cursor++; // Skip '{'
|
|
60
|
+
const next = new Map();
|
|
61
|
+
let childKey = -1;
|
|
62
|
+
while (data.charCodeAt(cursor) !== 125 /* '}' */) {
|
|
63
|
+
childKey += readGap() + 1;
|
|
64
|
+
next.set(childKey, readEntity());
|
|
65
|
+
}
|
|
66
|
+
const branch = { value: entityValue, next };
|
|
67
|
+
trie.set(lastKey, branch);
|
|
68
|
+
cursor++; // Skip '}'
|
|
69
|
+
// ASCII fast path holds the branch node itself (children + value).
|
|
70
|
+
if (lastKey < 0x80) {
|
|
71
|
+
asciiEntities[lastKey] = branch;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
else if (lastKey < 0x80) {
|
|
75
|
+
asciiEntities[lastKey] = entityValue;
|
|
76
|
+
}
|
|
77
|
+
else if (lastKey > 0xff_ff) {
|
|
78
|
+
astralEntries.push([lastKey, entityValue]);
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
trie.set(lastKey, entityValue);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
/*
|
|
85
|
+
* Batch-insert astral entries as surrogate-pair trie nodes.
|
|
86
|
+
* Entries are sorted by code point, so same-high-surrogate groups
|
|
87
|
+
* are contiguous — no intermediate grouping Map needed.
|
|
88
|
+
*/
|
|
89
|
+
let astralIndex = 0;
|
|
90
|
+
while (astralIndex < astralEntries.length) {
|
|
91
|
+
const hi = 0xd8_00 | ((astralEntries[astralIndex][0] - 0x1_00_00) >> 10);
|
|
92
|
+
const children = [];
|
|
93
|
+
while (astralIndex < astralEntries.length &&
|
|
94
|
+
(0xd8_00 | ((astralEntries[astralIndex][0] - 0x1_00_00) >> 10)) ===
|
|
95
|
+
hi) {
|
|
96
|
+
const lo = 0xdc_00 |
|
|
97
|
+
((astralEntries[astralIndex][0] - 0x1_00_00) & 0x3_ff);
|
|
98
|
+
children.push([lo, astralEntries[astralIndex][1]]);
|
|
99
|
+
astralIndex++;
|
|
100
|
+
}
|
|
101
|
+
trie.set(hi, { value: null, next: new Map(children) });
|
|
102
|
+
}
|
|
103
|
+
return trie;
|
|
104
|
+
})();
|
|
105
|
+
/**
|
|
106
|
+
* Bitset covering ASCII code points 0–127. Each of the four 32-bit words
|
|
107
|
+
* covers a 32-code-point range. A set bit means "this character needs
|
|
108
|
+
* encoding" when used with `encodeHTML`.
|
|
109
|
+
*/
|
|
110
|
+
const HTML_BITSET = /* #__PURE__ */ new Uint32Array([
|
|
111
|
+
0x16_00, // 09 (\t), 0A (\n), 0C (\f)
|
|
112
|
+
0xfc_00_ff_fe, // 21-2D (!-.), 2E (.), 2F (/), 3A-3F (:;<=>?)
|
|
113
|
+
0xf8_00_00_01, // 40 (@), 5B-5F ([\]^_)
|
|
114
|
+
0x38_00_00_01, // 60 (`), 7B-7D ({|})
|
|
115
|
+
]);
|
|
116
|
+
const XML_BITSET = /* #__PURE__ */ new Uint32Array([0, XML_BITSET_VALUE, 0, 0]);
|
|
117
|
+
/*
|
|
118
|
+
* Regex equivalent of `HTML_BITSET` (plus all non-ASCII code units, lone
|
|
119
|
+
* surrogates included — no `u` flag). Must stay in sync with the bitset:
|
|
120
|
+
* the scan uses the regex to find candidates and the bitset to re-check
|
|
121
|
+
* adjacent characters. The XML equivalent is `xmlEncodeRegex`, shared with
|
|
122
|
+
* `escape.ts`.
|
|
123
|
+
*/
|
|
124
|
+
// eslint-disable-next-line unicorn/prefer-unicode-code-point-escapes -- the `\u{...}` form requires the `u` flag, which we deliberately omit so lone surrogates match by code unit
|
|
125
|
+
const HTML_ENCODE_RE = /[\t\n\f!-/:-@[-`{-}\u0080-\uFFFF]/g;
|
|
126
|
+
const numericReference = (cp) => `&#x${cp.toString(16)};`;
|
|
127
|
+
/**
|
|
128
|
+
* Encodes all characters in the input using HTML entities. This includes
|
|
129
|
+
* characters that are valid ASCII characters in HTML documents, such as `#`.
|
|
130
|
+
*
|
|
131
|
+
* To get a more compact output, consider using the `encodeNonAsciiHTML`
|
|
132
|
+
* function, which will only encode characters that are not valid in HTML
|
|
133
|
+
* documents, as well as non-ASCII characters.
|
|
134
|
+
*
|
|
135
|
+
* If a character has no equivalent entity, a numeric hexadecimal reference
|
|
136
|
+
* (eg. `ü`) will be used.
|
|
137
|
+
* @param input Input string to encode.
|
|
138
|
+
*/
|
|
139
|
+
export function encodeHTML(input) {
|
|
140
|
+
return encodeHTMLTrieRe(HTML_BITSET, HTML_ENCODE_RE, input);
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Encodes all non-ASCII characters, as well as characters not valid in HTML
|
|
144
|
+
* documents using HTML entities. This function will not encode characters that
|
|
145
|
+
* are valid in HTML documents, such as `#`.
|
|
146
|
+
*
|
|
147
|
+
* If a character has no equivalent entity, a numeric hexadecimal reference
|
|
148
|
+
* (eg. `ü`) will be used.
|
|
149
|
+
* @param input Input string to encode.
|
|
150
|
+
*/
|
|
151
|
+
export function encodeNonAsciiHTML(input) {
|
|
152
|
+
return encodeHTMLTrieRe(XML_BITSET, xmlEncodeRegex, input);
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Whether `code` (a UTF-16 code unit) must be encoded: any non-ASCII unit, or
|
|
156
|
+
* an ASCII unit flagged in `bitset`.
|
|
157
|
+
* @param bitset Bitset of ASCII characters to encode.
|
|
158
|
+
* @param code Code unit to test.
|
|
159
|
+
*/
|
|
160
|
+
function isEncodable(bitset, code) {
|
|
161
|
+
return code >= 0x80 || ((bitset[code >>> 5] >>> code) & 1) === 1;
|
|
162
|
+
}
|
|
163
|
+
/*
|
|
164
|
+
* The inline scan beats the regex jump only for short gaps (measured
|
|
165
|
+
* break-even is ~7 characters; below it the per-call regex overhead
|
|
166
|
+
* dominates, above it the regex skips clean spans faster in native code).
|
|
167
|
+
* So we scan at most `INLINE_SCAN_WINDOW` characters inline before deferring
|
|
168
|
+
* to the regex. Any gap long enough to exhaust the window switches to
|
|
169
|
+
* long-gap mode, which skips the inline scan entirely; we stay in that mode
|
|
170
|
+
* while total gaps are at least `LONG_GAP_THRESHOLD` characters long and
|
|
171
|
+
* drop back to the inline scan as soon as a shorter gap appears. Gaps are
|
|
172
|
+
* always measured from where they start, so every window-exhausting gap
|
|
173
|
+
* enters long-gap mode and no gap length pays both scans repeatedly.
|
|
174
|
+
*/
|
|
175
|
+
/** @internal Exported for tests; not re-exported from the package entry. */
|
|
176
|
+
export const INLINE_SCAN_WINDOW = 16;
|
|
177
|
+
const LONG_GAP_THRESHOLD = 8;
|
|
178
|
+
function encodeHTMLTrieRe(bitset, re, input) {
|
|
179
|
+
const { length } = input;
|
|
180
|
+
let out;
|
|
181
|
+
let last = 0; // Start of the next untouched slice.
|
|
182
|
+
let index = 0;
|
|
183
|
+
let wasLongGap = false; // The previous gap was long; skip the inline scan.
|
|
184
|
+
while (index < length) {
|
|
185
|
+
let char = input.charCodeAt(index);
|
|
186
|
+
/*
|
|
187
|
+
* Find the next encodable character (one matching `bitset`, or any
|
|
188
|
+
* non-ASCII unit). Gaps between entities in dense text are only a
|
|
189
|
+
* few characters, so scan a short window inline first; the regex —
|
|
190
|
+
* which matches exactly the same characters and skips clean spans
|
|
191
|
+
* in native code — runs for longer gaps. Gap lengths cluster, so
|
|
192
|
+
* after a window-exhausting gap the window is skipped until a gap
|
|
193
|
+
* shorter than LONG_GAP_THRESHOLD reappears. Once located, the
|
|
194
|
+
* character is captured in `char` and control falls through to the
|
|
195
|
+
* encode logic below instead of re-testing it on the next loop
|
|
196
|
+
* iteration.
|
|
197
|
+
*/
|
|
198
|
+
if (!isEncodable(bitset, char)) {
|
|
199
|
+
const gapStart = index;
|
|
200
|
+
let next = index + 1;
|
|
201
|
+
let wasFound = false;
|
|
202
|
+
if (!wasLongGap) {
|
|
203
|
+
const bound = Math.min(index + INLINE_SCAN_WINDOW, length);
|
|
204
|
+
while (next < bound &&
|
|
205
|
+
!isEncodable(bitset, (char = input.charCodeAt(next)))) {
|
|
206
|
+
next++;
|
|
207
|
+
}
|
|
208
|
+
if (next < bound) {
|
|
209
|
+
// `char` already holds the encodable unit at `next`.
|
|
210
|
+
index = next;
|
|
211
|
+
wasFound = true;
|
|
212
|
+
}
|
|
213
|
+
else if (next >= length) {
|
|
214
|
+
break;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
if (!wasFound) {
|
|
218
|
+
/*
|
|
219
|
+
* Every match is a single code unit, so `test` pins it at
|
|
220
|
+
* `lastIndex - 1` without allocating a match object.
|
|
221
|
+
*/
|
|
222
|
+
re.lastIndex = next;
|
|
223
|
+
if (!re.test(input))
|
|
224
|
+
break;
|
|
225
|
+
index = re.lastIndex - 1;
|
|
226
|
+
/*
|
|
227
|
+
* Reaching the regex from the inline scan means the gap
|
|
228
|
+
* exhausted the window, so it is long by definition; once
|
|
229
|
+
* in long-gap mode, stay until a gap shorter than the
|
|
230
|
+
* threshold appears.
|
|
231
|
+
*/
|
|
232
|
+
wasLongGap =
|
|
233
|
+
!wasLongGap || index - gapStart >= LONG_GAP_THRESHOLD;
|
|
234
|
+
char = input.charCodeAt(index);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
// Lazy-init: copy the prefix before the first character that needs encoding.
|
|
238
|
+
if (out == null)
|
|
239
|
+
out = input.substring(0, index);
|
|
240
|
+
else if (last !== index)
|
|
241
|
+
out += input.substring(last, index);
|
|
242
|
+
if (char < 0x80) {
|
|
243
|
+
const node = asciiEntities[char];
|
|
244
|
+
if (typeof node === "object" && node !== null) {
|
|
245
|
+
// Multi-code-point entity first (e.g. < + U+20D2 → <⃒).
|
|
246
|
+
if (index + 1 < length) {
|
|
247
|
+
const value = node.next.get(input.charCodeAt(index + 1));
|
|
248
|
+
if (value != null) {
|
|
249
|
+
out += value;
|
|
250
|
+
last = index += 2;
|
|
251
|
+
continue;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
out += node.value ?? numericReference(char);
|
|
255
|
+
}
|
|
256
|
+
else {
|
|
257
|
+
out += node ?? numericReference(char);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
else {
|
|
261
|
+
// Non-ASCII: full trie lookup with multi-char entity support.
|
|
262
|
+
let node = htmlTrie.get(char);
|
|
263
|
+
if (typeof node === "object") {
|
|
264
|
+
if (index + 1 < length) {
|
|
265
|
+
const value = node.next.get(input.charCodeAt(index + 1));
|
|
266
|
+
if (value != null) {
|
|
267
|
+
out += value;
|
|
268
|
+
last = index += 2;
|
|
269
|
+
continue;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
node = node.value;
|
|
273
|
+
}
|
|
274
|
+
if (node == null) {
|
|
275
|
+
// No named entity exists; emit a hexadecimal numeric reference.
|
|
276
|
+
const cp = input.codePointAt(index);
|
|
277
|
+
out += numericReference(cp);
|
|
278
|
+
// Astral code points consume two UTF-16 code units.
|
|
279
|
+
if (cp !== char)
|
|
280
|
+
index++;
|
|
281
|
+
}
|
|
282
|
+
else {
|
|
283
|
+
out += node;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
last = index += 1;
|
|
287
|
+
}
|
|
288
|
+
// If nothing needed encoding, return the original string (avoids allocation).
|
|
289
|
+
if (out == null)
|
|
290
|
+
return input;
|
|
291
|
+
if (last < length)
|
|
292
|
+
out += input.substr(last);
|
|
293
|
+
return out;
|
|
294
|
+
}
|
|
295
|
+
//# sourceMappingURL=encode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"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KAAK,CAAC;wBACb,IAAI,GAAG,KAAK,IAAI,CAAC,CAAC;wBAClB,SAAS;oBACb,CAAC;gBACL,CAAC;gBACD,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC;YACtB,CAAC;YAED,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;gBACf,gEAAgE;gBAChE,MAAM,EAAE,GAAG,KAAK,CAAC,WAAW,CAAC,KAAK,CAAE,CAAC;gBACrC,GAAG,IAAI,gBAAgB,CAAC,EAAE,CAAC,CAAC;gBAC5B,oDAAoD;gBACpD,IAAI,EAAE,KAAK,IAAI;oBAAE,KAAK,EAAE,CAAC;YAC7B,CAAC;iBAAM,CAAC;gBACJ,GAAG,IAAI,IAAI,CAAC;YAChB,CAAC;QACL,CAAC;QACD,IAAI,GAAG,KAAK,IAAI,CAAC,CAAC;IACtB,CAAC;IAED,8EAA8E;IAC9E,IAAI,GAAG,IAAI,IAAI;QAAE,OAAO,KAAK,CAAC;IAC9B,IAAI,IAAI,GAAG,MAAM;QAAE,GAAG,IAAI,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAC7C,OAAO,GAAG,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Read a code point at a given index.
|
|
3
|
+
* @param input String to read the code point from.
|
|
4
|
+
* @param index Current read position in the input string.
|
|
5
|
+
* @returns The code point at `index`, or `undefined` if `index` is out of range.
|
|
6
|
+
* @deprecated Use `String.prototype.codePointAt` directly instead; this export
|
|
7
|
+
* will be removed in the next major.
|
|
8
|
+
*/
|
|
9
|
+
export declare const getCodePoint: (input: string, index: number) => number;
|
|
10
|
+
/**
|
|
11
|
+
* Bitset for ASCII characters that need to be escaped in XML.
|
|
12
|
+
*/
|
|
13
|
+
export declare const XML_BITSET_VALUE = 1342177476;
|
|
14
|
+
/**
|
|
15
|
+
* Matches exactly the characters `encodeXML` escapes: the five XML special
|
|
16
|
+
* characters plus every non-ASCII code unit (lone surrogates included — no
|
|
17
|
+
* `u` flag). Kept in sync with `XML_BITSET_VALUE`.
|
|
18
|
+
*
|
|
19
|
+
* Shared with `encodeNonAsciiHTML` in `encode.ts`. Because the regex is
|
|
20
|
+
* stateful (`g` flag), every call site must set `lastIndex` before use.
|
|
21
|
+
*/
|
|
22
|
+
export declare const xmlEncodeRegex: RegExp;
|
|
23
|
+
/**
|
|
24
|
+
* Encodes all non-ASCII characters, as well as characters not valid in XML
|
|
25
|
+
* documents using XML entities.
|
|
26
|
+
*
|
|
27
|
+
* If a character has no equivalent entity, a numeric hexadecimal reference
|
|
28
|
+
* (eg. `ü`) will be used.
|
|
29
|
+
* @param input Input string to encode.
|
|
30
|
+
*/
|
|
31
|
+
export declare function encodeXML(input: string): string;
|
|
32
|
+
/**
|
|
33
|
+
* Encodes all non-ASCII characters, as well as characters not valid in XML
|
|
34
|
+
* documents using numeric hexadecimal reference (eg. `ü`).
|
|
35
|
+
*
|
|
36
|
+
* Have a look at `escapeUTF8` if you want a more concise output at the expense
|
|
37
|
+
* of reduced transportability.
|
|
38
|
+
* @param data String to escape.
|
|
39
|
+
*/
|
|
40
|
+
export declare const escape: typeof encodeXML;
|
|
41
|
+
/**
|
|
42
|
+
* Encodes all characters not valid in XML documents using XML entities.
|
|
43
|
+
*
|
|
44
|
+
* Note that the output will be character-set dependent.
|
|
45
|
+
* @param data String to escape.
|
|
46
|
+
*/
|
|
47
|
+
export declare function escapeUTF8(data: string): string;
|
|
48
|
+
/**
|
|
49
|
+
* Encodes all characters that have to be escaped in HTML attributes,
|
|
50
|
+
* following {@link https://html.spec.whatwg.org/multipage/parsing.html#escapingString}.
|
|
51
|
+
* @param data String to escape.
|
|
52
|
+
*/
|
|
53
|
+
export declare function escapeAttribute(data: string): string;
|
|
54
|
+
/**
|
|
55
|
+
* Encodes all characters that have to be escaped in HTML text,
|
|
56
|
+
* following {@link https://html.spec.whatwg.org/multipage/parsing.html#escapingString}.
|
|
57
|
+
* @param data String to escape.
|
|
58
|
+
*/
|
|
59
|
+
export declare function escapeText(data: string): string;
|
|
60
|
+
//# sourceMappingURL=escape.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"escape.d.ts","sourceRoot":"","sources":["../src/escape.ts"],"names":[],"mappings":"AAkBA;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,MAGvB,CAAC;AAEvC;;GAEG;AACH,eAAO,MAAM,gBAAgB,aAAgB,CAAC;AAE9C;;;;;;;GAOG;AAEH,eAAO,MAAM,cAAc,EAAE,MAAgC,CAAC;AAe9D;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAmD/C;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM,EAAE,OAAO,SAAqB,CAAC;AA2BlD;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE/C;AAID;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEpD;AAID;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE/C"}
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get the named reference for an XML special character or U+00A0.
|
|
3
|
+
* @param char Code unit matched by one of the escape regexes.
|
|
4
|
+
*/
|
|
5
|
+
function getEscape(char) {
|
|
6
|
+
return char === 34
|
|
7
|
+
? """
|
|
8
|
+
: char === 38
|
|
9
|
+
? "&"
|
|
10
|
+
: char === 39
|
|
11
|
+
? "'"
|
|
12
|
+
: char === 60
|
|
13
|
+
? "<"
|
|
14
|
+
: char === 62
|
|
15
|
+
? ">"
|
|
16
|
+
: " ";
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Read a code point at a given index.
|
|
20
|
+
* @param input String to read the code point from.
|
|
21
|
+
* @param index Current read position in the input string.
|
|
22
|
+
* @returns The code point at `index`, or `undefined` if `index` is out of range.
|
|
23
|
+
* @deprecated Use `String.prototype.codePointAt` directly instead; this export
|
|
24
|
+
* will be removed in the next major.
|
|
25
|
+
*/
|
|
26
|
+
export const getCodePoint = (input, index) => input.codePointAt(index);
|
|
27
|
+
/**
|
|
28
|
+
* Bitset for ASCII characters that need to be escaped in XML.
|
|
29
|
+
*/
|
|
30
|
+
export const XML_BITSET_VALUE = 0x50_00_00_c4; // 32..63 -> 34 ("),38 (&),39 ('),60 (<),62 (>)
|
|
31
|
+
/**
|
|
32
|
+
* Matches exactly the characters `encodeXML` escapes: the five XML special
|
|
33
|
+
* characters plus every non-ASCII code unit (lone surrogates included — no
|
|
34
|
+
* `u` flag). Kept in sync with `XML_BITSET_VALUE`.
|
|
35
|
+
*
|
|
36
|
+
* Shared with `encodeNonAsciiHTML` in `encode.ts`. Because the regex is
|
|
37
|
+
* stateful (`g` flag), every call site must set `lastIndex` before use.
|
|
38
|
+
*/
|
|
39
|
+
// eslint-disable-next-line unicorn/prefer-unicode-code-point-escapes -- the `\u{...}` form requires the `u` flag, which we deliberately omit so lone surrogates match by code unit
|
|
40
|
+
export const xmlEncodeRegex = /["&'<>\u0080-\uFFFF]/g;
|
|
41
|
+
/**
|
|
42
|
+
* Whether `code` (a UTF-16 code unit) is escaped by {@link encodeXML}: a
|
|
43
|
+
* non-ASCII unit, or one of the five XML specials flagged in
|
|
44
|
+
* `XML_BITSET_VALUE` (which is only meaningful for code units 32-63).
|
|
45
|
+
* @param code Code unit to test.
|
|
46
|
+
*/
|
|
47
|
+
function isXmlEscapable(code) {
|
|
48
|
+
return (code >= 0x80 ||
|
|
49
|
+
(code >= 32 && code < 64 && ((XML_BITSET_VALUE >>> code) & 1) === 1));
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Encodes all non-ASCII characters, as well as characters not valid in XML
|
|
53
|
+
* documents using XML entities.
|
|
54
|
+
*
|
|
55
|
+
* If a character has no equivalent entity, a numeric hexadecimal reference
|
|
56
|
+
* (eg. `ü`) will be used.
|
|
57
|
+
* @param input Input string to encode.
|
|
58
|
+
*/
|
|
59
|
+
export function encodeXML(input) {
|
|
60
|
+
const { length } = input;
|
|
61
|
+
let out;
|
|
62
|
+
let last = 0;
|
|
63
|
+
let index = 0;
|
|
64
|
+
while (index < length) {
|
|
65
|
+
const char = input.charCodeAt(index);
|
|
66
|
+
/*
|
|
67
|
+
* Find the next character to escape: scan a short window inline
|
|
68
|
+
* (escapable characters cluster in markup-heavy input), then fall
|
|
69
|
+
* back to the regex, which skips clean spans in native code.
|
|
70
|
+
*/
|
|
71
|
+
if (!isXmlEscapable(char)) {
|
|
72
|
+
const bound = Math.min(index + 32, length);
|
|
73
|
+
let next = index + 1;
|
|
74
|
+
while (next < bound && !isXmlEscapable(input.charCodeAt(next))) {
|
|
75
|
+
next++;
|
|
76
|
+
}
|
|
77
|
+
if (next < bound) {
|
|
78
|
+
index = next;
|
|
79
|
+
continue;
|
|
80
|
+
}
|
|
81
|
+
if (next >= length)
|
|
82
|
+
break;
|
|
83
|
+
xmlEncodeRegex.lastIndex = next;
|
|
84
|
+
if (!xmlEncodeRegex.test(input))
|
|
85
|
+
break;
|
|
86
|
+
index = xmlEncodeRegex.lastIndex - 1;
|
|
87
|
+
continue;
|
|
88
|
+
}
|
|
89
|
+
if (out === undefined)
|
|
90
|
+
out = input.substring(0, index);
|
|
91
|
+
else if (last !== index)
|
|
92
|
+
out += input.substring(last, index);
|
|
93
|
+
if (char < 64) {
|
|
94
|
+
// Known replacement
|
|
95
|
+
out += getEscape(char);
|
|
96
|
+
last = index += 1;
|
|
97
|
+
continue;
|
|
98
|
+
}
|
|
99
|
+
// Non-ASCII: encode as numeric entity (handle surrogate pair)
|
|
100
|
+
const cp = input.codePointAt(index);
|
|
101
|
+
out += `&#x${cp.toString(16)};`;
|
|
102
|
+
if (cp !== char)
|
|
103
|
+
index++; // Skip trailing surrogate
|
|
104
|
+
last = index += 1;
|
|
105
|
+
}
|
|
106
|
+
if (out === undefined)
|
|
107
|
+
return input;
|
|
108
|
+
if (last < length)
|
|
109
|
+
out += input.substr(last);
|
|
110
|
+
return out;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Encodes all non-ASCII characters, as well as characters not valid in XML
|
|
114
|
+
* documents using numeric hexadecimal reference (eg. `ü`).
|
|
115
|
+
*
|
|
116
|
+
* Have a look at `escapeUTF8` if you want a more concise output at the expense
|
|
117
|
+
* of reduced transportability.
|
|
118
|
+
* @param data String to escape.
|
|
119
|
+
*/
|
|
120
|
+
export const escape = encodeXML;
|
|
121
|
+
/**
|
|
122
|
+
* Escape `data` using `re`, mapping each matched character to its entity.
|
|
123
|
+
* Every match is one UTF-16 code unit, so its index is `lastIndex - 1`.
|
|
124
|
+
* @param re Global regex matching exactly the characters to escape
|
|
125
|
+
* (`"`, `&`, `'`, `<`, `>`, `\u00A0` at most).
|
|
126
|
+
* @param data String to escape.
|
|
127
|
+
*/
|
|
128
|
+
function escapeWithRegex(re, data) {
|
|
129
|
+
re.lastIndex = 0;
|
|
130
|
+
if (!re.test(data))
|
|
131
|
+
return data;
|
|
132
|
+
let out = "";
|
|
133
|
+
let last = 0;
|
|
134
|
+
do {
|
|
135
|
+
const index = re.lastIndex - 1;
|
|
136
|
+
if (last !== index)
|
|
137
|
+
out += data.substring(last, index);
|
|
138
|
+
const char = data.charCodeAt(index);
|
|
139
|
+
out += getEscape(char);
|
|
140
|
+
last = index + 1;
|
|
141
|
+
} while (re.test(data));
|
|
142
|
+
return out + data.substring(last);
|
|
143
|
+
}
|
|
144
|
+
const xmlEscapeRegex = /["&'<>]/g;
|
|
145
|
+
/**
|
|
146
|
+
* Encodes all characters not valid in XML documents using XML entities.
|
|
147
|
+
*
|
|
148
|
+
* Note that the output will be character-set dependent.
|
|
149
|
+
* @param data String to escape.
|
|
150
|
+
*/
|
|
151
|
+
export function escapeUTF8(data) {
|
|
152
|
+
return escapeWithRegex(xmlEscapeRegex, data);
|
|
153
|
+
}
|
|
154
|
+
const attributeEscapeRegex = /["&\u{A0}]/gu;
|
|
155
|
+
/**
|
|
156
|
+
* Encodes all characters that have to be escaped in HTML attributes,
|
|
157
|
+
* following {@link https://html.spec.whatwg.org/multipage/parsing.html#escapingString}.
|
|
158
|
+
* @param data String to escape.
|
|
159
|
+
*/
|
|
160
|
+
export function escapeAttribute(data) {
|
|
161
|
+
return escapeWithRegex(attributeEscapeRegex, data);
|
|
162
|
+
}
|
|
163
|
+
const textEscapeRegex = /[&<>\u{A0}]/gu;
|
|
164
|
+
/**
|
|
165
|
+
* Encodes all characters that have to be escaped in HTML text,
|
|
166
|
+
* following {@link https://html.spec.whatwg.org/multipage/parsing.html#escapingString}.
|
|
167
|
+
* @param data String to escape.
|
|
168
|
+
*/
|
|
169
|
+
export function escapeText(data) {
|
|
170
|
+
return escapeWithRegex(textEscapeRegex, data);
|
|
171
|
+
}
|
|
172
|
+
//# sourceMappingURL=escape.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"escape.js","sourceRoot":"","sources":["../src/escape.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,SAAS,SAAS,CAAC,IAAY;IAC3B,OAAO,IAAI,KAAK,EAAE;QACd,CAAC,CAAC,QAAQ;QACV,CAAC,CAAC,IAAI,KAAK,EAAE;YACX,CAAC,CAAC,OAAO;YACT,CAAC,CAAC,IAAI,KAAK,EAAE;gBACX,CAAC,CAAC,QAAQ;gBACV,CAAC,CAAC,IAAI,KAAK,EAAE;oBACX,CAAC,CAAC,MAAM;oBACR,CAAC,CAAC,IAAI,KAAK,EAAE;wBACX,CAAC,CAAC,MAAM;wBACR,CAAC,CAAC,QAAQ,CAAC;AAC3B,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,YAAY,GAA6C,CAClE,KAAa,EACb,KAAa,EACP,EAAE,CAAC,KAAK,CAAC,WAAW,CAA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