@vue/devtools-api 8.1.3 → 8.1.5

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.
@@ -1536,24 +1536,6 @@ var DevToolsV6PluginAPI = class {
1536
1536
  //#region ../devtools-kit/src/api/index.ts
1537
1537
  const DevToolsPluginAPI = DevToolsV6PluginAPI;
1538
1538
  //#endregion
1539
- //#region ../devtools-kit/src/core/component/state/constants.ts
1540
- const UNDEFINED = "__vue_devtool_undefined__";
1541
- const INFINITY = "__vue_devtool_infinity__";
1542
- const NEGATIVE_INFINITY = "__vue_devtool_negative_infinity__";
1543
- const NAN = "__vue_devtool_nan__";
1544
- //#endregion
1545
- //#region ../devtools-kit/src/core/component/state/util.ts
1546
- const tokenMap = {
1547
- [UNDEFINED]: "undefined",
1548
- [NAN]: "NaN",
1549
- [INFINITY]: "Infinity",
1550
- [NEGATIVE_INFINITY]: "-Infinity"
1551
- };
1552
- Object.entries(tokenMap).reduce((acc, [key, value]) => {
1553
- acc[value] = key;
1554
- return acc;
1555
- }, {});
1556
- //#endregion
1557
1539
  //#region ../devtools-kit/src/core/plugin/index.ts
1558
1540
  target.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__ ??= /* @__PURE__ */ new Set();
1559
1541
  function setupDevToolsPlugin(pluginDescriptor, setupFn) {
@@ -1753,9 +1735,6 @@ function createDevToolsApi(hooks) {
1753
1735
  };
1754
1736
  }
1755
1737
  //#endregion
1756
- //#region ../devtools-kit/src/ctx/env.ts
1757
- target.__VUE_DEVTOOLS_ENV__ ??= { vitePluginDetected: false };
1758
- //#endregion
1759
1738
  //#region ../devtools-kit/src/ctx/index.ts
1760
1739
  const hooks = createDevToolsCtxHooks();
1761
1740
  target.__VUE_DEVTOOLS_KIT_CONTEXT__ ??= {
@@ -1772,1479 +1751,6 @@ target.__VUE_DEVTOOLS_KIT_CONTEXT__ ??= {
1772
1751
  };
1773
1752
  const devtoolsContext = target.__VUE_DEVTOOLS_KIT_CONTEXT__;
1774
1753
  //#endregion
1775
- //#region ../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js
1776
- var require_speakingurl$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1777
- (function(root) {
1778
- "use strict";
1779
- /**
1780
- * charMap
1781
- * @type {Object}
1782
- */
1783
- var charMap = {
1784
- "À": "A",
1785
- "Á": "A",
1786
- "Â": "A",
1787
- "Ã": "A",
1788
- "Ä": "Ae",
1789
- "Å": "A",
1790
- "Æ": "AE",
1791
- "Ç": "C",
1792
- "È": "E",
1793
- "É": "E",
1794
- "Ê": "E",
1795
- "Ë": "E",
1796
- "Ì": "I",
1797
- "Í": "I",
1798
- "Î": "I",
1799
- "Ï": "I",
1800
- "Ð": "D",
1801
- "Ñ": "N",
1802
- "Ò": "O",
1803
- "Ó": "O",
1804
- "Ô": "O",
1805
- "Õ": "O",
1806
- "Ö": "Oe",
1807
- "Ő": "O",
1808
- "Ø": "O",
1809
- "Ù": "U",
1810
- "Ú": "U",
1811
- "Û": "U",
1812
- "Ü": "Ue",
1813
- "Ű": "U",
1814
- "Ý": "Y",
1815
- "Þ": "TH",
1816
- "ß": "ss",
1817
- "à": "a",
1818
- "á": "a",
1819
- "â": "a",
1820
- "ã": "a",
1821
- "ä": "ae",
1822
- "å": "a",
1823
- "æ": "ae",
1824
- "ç": "c",
1825
- "è": "e",
1826
- "é": "e",
1827
- "ê": "e",
1828
- "ë": "e",
1829
- "ì": "i",
1830
- "í": "i",
1831
- "î": "i",
1832
- "ï": "i",
1833
- "ð": "d",
1834
- "ñ": "n",
1835
- "ò": "o",
1836
- "ó": "o",
1837
- "ô": "o",
1838
- "õ": "o",
1839
- "ö": "oe",
1840
- "ő": "o",
1841
- "ø": "o",
1842
- "ù": "u",
1843
- "ú": "u",
1844
- "û": "u",
1845
- "ü": "ue",
1846
- "ű": "u",
1847
- "ý": "y",
1848
- "þ": "th",
1849
- "ÿ": "y",
1850
- "ẞ": "SS",
1851
- "ا": "a",
1852
- "أ": "a",
1853
- "إ": "i",
1854
- "آ": "aa",
1855
- "ؤ": "u",
1856
- "ئ": "e",
1857
- "ء": "a",
1858
- "ب": "b",
1859
- "ت": "t",
1860
- "ث": "th",
1861
- "ج": "j",
1862
- "ح": "h",
1863
- "خ": "kh",
1864
- "د": "d",
1865
- "ذ": "th",
1866
- "ر": "r",
1867
- "ز": "z",
1868
- "س": "s",
1869
- "ش": "sh",
1870
- "ص": "s",
1871
- "ض": "dh",
1872
- "ط": "t",
1873
- "ظ": "z",
1874
- "ع": "a",
1875
- "غ": "gh",
1876
- "ف": "f",
1877
- "ق": "q",
1878
- "ك": "k",
1879
- "ل": "l",
1880
- "م": "m",
1881
- "ن": "n",
1882
- "ه": "h",
1883
- "و": "w",
1884
- "ي": "y",
1885
- "ى": "a",
1886
- "ة": "h",
1887
- "ﻻ": "la",
1888
- "ﻷ": "laa",
1889
- "ﻹ": "lai",
1890
- "ﻵ": "laa",
1891
- "گ": "g",
1892
- "چ": "ch",
1893
- "پ": "p",
1894
- "ژ": "zh",
1895
- "ک": "k",
1896
- "ی": "y",
1897
- "َ": "a",
1898
- "ً": "an",
1899
- "ِ": "e",
1900
- "ٍ": "en",
1901
- "ُ": "u",
1902
- "ٌ": "on",
1903
- "ْ": "",
1904
- "٠": "0",
1905
- "١": "1",
1906
- "٢": "2",
1907
- "٣": "3",
1908
- "٤": "4",
1909
- "٥": "5",
1910
- "٦": "6",
1911
- "٧": "7",
1912
- "٨": "8",
1913
- "٩": "9",
1914
- "۰": "0",
1915
- "۱": "1",
1916
- "۲": "2",
1917
- "۳": "3",
1918
- "۴": "4",
1919
- "۵": "5",
1920
- "۶": "6",
1921
- "۷": "7",
1922
- "۸": "8",
1923
- "۹": "9",
1924
- "က": "k",
1925
- "ခ": "kh",
1926
- "ဂ": "g",
1927
- "ဃ": "ga",
1928
- "င": "ng",
1929
- "စ": "s",
1930
- "ဆ": "sa",
1931
- "ဇ": "z",
1932
- "စျ": "za",
1933
- "ည": "ny",
1934
- "ဋ": "t",
1935
- "ဌ": "ta",
1936
- "ဍ": "d",
1937
- "ဎ": "da",
1938
- "ဏ": "na",
1939
- "တ": "t",
1940
- "ထ": "ta",
1941
- "ဒ": "d",
1942
- "ဓ": "da",
1943
- "န": "n",
1944
- "ပ": "p",
1945
- "ဖ": "pa",
1946
- "ဗ": "b",
1947
- "ဘ": "ba",
1948
- "မ": "m",
1949
- "ယ": "y",
1950
- "ရ": "ya",
1951
- "လ": "l",
1952
- "ဝ": "w",
1953
- "သ": "th",
1954
- "ဟ": "h",
1955
- "ဠ": "la",
1956
- "အ": "a",
1957
- "ြ": "y",
1958
- "ျ": "ya",
1959
- "ွ": "w",
1960
- "ြွ": "yw",
1961
- "ျွ": "ywa",
1962
- "ှ": "h",
1963
- "ဧ": "e",
1964
- "၏": "-e",
1965
- "ဣ": "i",
1966
- "ဤ": "-i",
1967
- "ဉ": "u",
1968
- "ဦ": "-u",
1969
- "ဩ": "aw",
1970
- "သြော": "aw",
1971
- "ဪ": "aw",
1972
- "၀": "0",
1973
- "၁": "1",
1974
- "၂": "2",
1975
- "၃": "3",
1976
- "၄": "4",
1977
- "၅": "5",
1978
- "၆": "6",
1979
- "၇": "7",
1980
- "၈": "8",
1981
- "၉": "9",
1982
- "္": "",
1983
- "့": "",
1984
- "း": "",
1985
- "č": "c",
1986
- "ď": "d",
1987
- "ě": "e",
1988
- "ň": "n",
1989
- "ř": "r",
1990
- "š": "s",
1991
- "ť": "t",
1992
- "ů": "u",
1993
- "ž": "z",
1994
- "Č": "C",
1995
- "Ď": "D",
1996
- "Ě": "E",
1997
- "Ň": "N",
1998
- "Ř": "R",
1999
- "Š": "S",
2000
- "Ť": "T",
2001
- "Ů": "U",
2002
- "Ž": "Z",
2003
- "ހ": "h",
2004
- "ށ": "sh",
2005
- "ނ": "n",
2006
- "ރ": "r",
2007
- "ބ": "b",
2008
- "ޅ": "lh",
2009
- "ކ": "k",
2010
- "އ": "a",
2011
- "ވ": "v",
2012
- "މ": "m",
2013
- "ފ": "f",
2014
- "ދ": "dh",
2015
- "ތ": "th",
2016
- "ލ": "l",
2017
- "ގ": "g",
2018
- "ޏ": "gn",
2019
- "ސ": "s",
2020
- "ޑ": "d",
2021
- "ޒ": "z",
2022
- "ޓ": "t",
2023
- "ޔ": "y",
2024
- "ޕ": "p",
2025
- "ޖ": "j",
2026
- "ޗ": "ch",
2027
- "ޘ": "tt",
2028
- "ޙ": "hh",
2029
- "ޚ": "kh",
2030
- "ޛ": "th",
2031
- "ޜ": "z",
2032
- "ޝ": "sh",
2033
- "ޞ": "s",
2034
- "ޟ": "d",
2035
- "ޠ": "t",
2036
- "ޡ": "z",
2037
- "ޢ": "a",
2038
- "ޣ": "gh",
2039
- "ޤ": "q",
2040
- "ޥ": "w",
2041
- "ަ": "a",
2042
- "ާ": "aa",
2043
- "ި": "i",
2044
- "ީ": "ee",
2045
- "ު": "u",
2046
- "ޫ": "oo",
2047
- "ެ": "e",
2048
- "ޭ": "ey",
2049
- "ޮ": "o",
2050
- "ޯ": "oa",
2051
- "ް": "",
2052
- "ა": "a",
2053
- "ბ": "b",
2054
- "გ": "g",
2055
- "დ": "d",
2056
- "ე": "e",
2057
- "ვ": "v",
2058
- "ზ": "z",
2059
- "თ": "t",
2060
- "ი": "i",
2061
- "კ": "k",
2062
- "ლ": "l",
2063
- "მ": "m",
2064
- "ნ": "n",
2065
- "ო": "o",
2066
- "პ": "p",
2067
- "ჟ": "zh",
2068
- "რ": "r",
2069
- "ს": "s",
2070
- "ტ": "t",
2071
- "უ": "u",
2072
- "ფ": "p",
2073
- "ქ": "k",
2074
- "ღ": "gh",
2075
- "ყ": "q",
2076
- "შ": "sh",
2077
- "ჩ": "ch",
2078
- "ც": "ts",
2079
- "ძ": "dz",
2080
- "წ": "ts",
2081
- "ჭ": "ch",
2082
- "ხ": "kh",
2083
- "ჯ": "j",
2084
- "ჰ": "h",
2085
- "α": "a",
2086
- "β": "v",
2087
- "γ": "g",
2088
- "δ": "d",
2089
- "ε": "e",
2090
- "ζ": "z",
2091
- "η": "i",
2092
- "θ": "th",
2093
- "ι": "i",
2094
- "κ": "k",
2095
- "λ": "l",
2096
- "μ": "m",
2097
- "ν": "n",
2098
- "ξ": "ks",
2099
- "ο": "o",
2100
- "π": "p",
2101
- "ρ": "r",
2102
- "σ": "s",
2103
- "τ": "t",
2104
- "υ": "y",
2105
- "φ": "f",
2106
- "χ": "x",
2107
- "ψ": "ps",
2108
- "ω": "o",
2109
- "ά": "a",
2110
- "έ": "e",
2111
- "ί": "i",
2112
- "ό": "o",
2113
- "ύ": "y",
2114
- "ή": "i",
2115
- "ώ": "o",
2116
- "ς": "s",
2117
- "ϊ": "i",
2118
- "ΰ": "y",
2119
- "ϋ": "y",
2120
- "ΐ": "i",
2121
- "Α": "A",
2122
- "Β": "B",
2123
- "Γ": "G",
2124
- "Δ": "D",
2125
- "Ε": "E",
2126
- "Ζ": "Z",
2127
- "Η": "I",
2128
- "Θ": "TH",
2129
- "Ι": "I",
2130
- "Κ": "K",
2131
- "Λ": "L",
2132
- "Μ": "M",
2133
- "Ν": "N",
2134
- "Ξ": "KS",
2135
- "Ο": "O",
2136
- "Π": "P",
2137
- "Ρ": "R",
2138
- "Σ": "S",
2139
- "Τ": "T",
2140
- "Υ": "Y",
2141
- "Φ": "F",
2142
- "Χ": "X",
2143
- "Ψ": "PS",
2144
- "Ω": "O",
2145
- "Ά": "A",
2146
- "Έ": "E",
2147
- "Ί": "I",
2148
- "Ό": "O",
2149
- "Ύ": "Y",
2150
- "Ή": "I",
2151
- "Ώ": "O",
2152
- "Ϊ": "I",
2153
- "Ϋ": "Y",
2154
- "ā": "a",
2155
- "ē": "e",
2156
- "ģ": "g",
2157
- "ī": "i",
2158
- "ķ": "k",
2159
- "ļ": "l",
2160
- "ņ": "n",
2161
- "ū": "u",
2162
- "Ā": "A",
2163
- "Ē": "E",
2164
- "Ģ": "G",
2165
- "Ī": "I",
2166
- "Ķ": "k",
2167
- "Ļ": "L",
2168
- "Ņ": "N",
2169
- "Ū": "U",
2170
- "Ќ": "Kj",
2171
- "ќ": "kj",
2172
- "Љ": "Lj",
2173
- "љ": "lj",
2174
- "Њ": "Nj",
2175
- "њ": "nj",
2176
- "Тс": "Ts",
2177
- "тс": "ts",
2178
- "ą": "a",
2179
- "ć": "c",
2180
- "ę": "e",
2181
- "ł": "l",
2182
- "ń": "n",
2183
- "ś": "s",
2184
- "ź": "z",
2185
- "ż": "z",
2186
- "Ą": "A",
2187
- "Ć": "C",
2188
- "Ę": "E",
2189
- "Ł": "L",
2190
- "Ń": "N",
2191
- "Ś": "S",
2192
- "Ź": "Z",
2193
- "Ż": "Z",
2194
- "Є": "Ye",
2195
- "І": "I",
2196
- "Ї": "Yi",
2197
- "Ґ": "G",
2198
- "є": "ye",
2199
- "і": "i",
2200
- "ї": "yi",
2201
- "ґ": "g",
2202
- "ă": "a",
2203
- "Ă": "A",
2204
- "ș": "s",
2205
- "Ș": "S",
2206
- "ț": "t",
2207
- "Ț": "T",
2208
- "ţ": "t",
2209
- "Ţ": "T",
2210
- "а": "a",
2211
- "б": "b",
2212
- "в": "v",
2213
- "г": "g",
2214
- "д": "d",
2215
- "е": "e",
2216
- "ё": "yo",
2217
- "ж": "zh",
2218
- "з": "z",
2219
- "и": "i",
2220
- "й": "i",
2221
- "к": "k",
2222
- "л": "l",
2223
- "м": "m",
2224
- "н": "n",
2225
- "о": "o",
2226
- "п": "p",
2227
- "р": "r",
2228
- "с": "s",
2229
- "т": "t",
2230
- "у": "u",
2231
- "ф": "f",
2232
- "х": "kh",
2233
- "ц": "c",
2234
- "ч": "ch",
2235
- "ш": "sh",
2236
- "щ": "sh",
2237
- "ъ": "",
2238
- "ы": "y",
2239
- "ь": "",
2240
- "э": "e",
2241
- "ю": "yu",
2242
- "я": "ya",
2243
- "А": "A",
2244
- "Б": "B",
2245
- "В": "V",
2246
- "Г": "G",
2247
- "Д": "D",
2248
- "Е": "E",
2249
- "Ё": "Yo",
2250
- "Ж": "Zh",
2251
- "З": "Z",
2252
- "И": "I",
2253
- "Й": "I",
2254
- "К": "K",
2255
- "Л": "L",
2256
- "М": "M",
2257
- "Н": "N",
2258
- "О": "O",
2259
- "П": "P",
2260
- "Р": "R",
2261
- "С": "S",
2262
- "Т": "T",
2263
- "У": "U",
2264
- "Ф": "F",
2265
- "Х": "Kh",
2266
- "Ц": "C",
2267
- "Ч": "Ch",
2268
- "Ш": "Sh",
2269
- "Щ": "Sh",
2270
- "Ъ": "",
2271
- "Ы": "Y",
2272
- "Ь": "",
2273
- "Э": "E",
2274
- "Ю": "Yu",
2275
- "Я": "Ya",
2276
- "ђ": "dj",
2277
- "ј": "j",
2278
- "ћ": "c",
2279
- "џ": "dz",
2280
- "Ђ": "Dj",
2281
- "Ј": "j",
2282
- "Ћ": "C",
2283
- "Џ": "Dz",
2284
- "ľ": "l",
2285
- "ĺ": "l",
2286
- "ŕ": "r",
2287
- "Ľ": "L",
2288
- "Ĺ": "L",
2289
- "Ŕ": "R",
2290
- "ş": "s",
2291
- "Ş": "S",
2292
- "ı": "i",
2293
- "İ": "I",
2294
- "ğ": "g",
2295
- "Ğ": "G",
2296
- "ả": "a",
2297
- "Ả": "A",
2298
- "ẳ": "a",
2299
- "Ẳ": "A",
2300
- "ẩ": "a",
2301
- "Ẩ": "A",
2302
- "đ": "d",
2303
- "Đ": "D",
2304
- "ẹ": "e",
2305
- "Ẹ": "E",
2306
- "ẽ": "e",
2307
- "Ẽ": "E",
2308
- "ẻ": "e",
2309
- "Ẻ": "E",
2310
- "ế": "e",
2311
- "Ế": "E",
2312
- "ề": "e",
2313
- "Ề": "E",
2314
- "ệ": "e",
2315
- "Ệ": "E",
2316
- "ễ": "e",
2317
- "Ễ": "E",
2318
- "ể": "e",
2319
- "Ể": "E",
2320
- "ỏ": "o",
2321
- "ọ": "o",
2322
- "Ọ": "o",
2323
- "ố": "o",
2324
- "Ố": "O",
2325
- "ồ": "o",
2326
- "Ồ": "O",
2327
- "ổ": "o",
2328
- "Ổ": "O",
2329
- "ộ": "o",
2330
- "Ộ": "O",
2331
- "ỗ": "o",
2332
- "Ỗ": "O",
2333
- "ơ": "o",
2334
- "Ơ": "O",
2335
- "ớ": "o",
2336
- "Ớ": "O",
2337
- "ờ": "o",
2338
- "Ờ": "O",
2339
- "ợ": "o",
2340
- "Ợ": "O",
2341
- "ỡ": "o",
2342
- "Ỡ": "O",
2343
- "Ở": "o",
2344
- "ở": "o",
2345
- "ị": "i",
2346
- "Ị": "I",
2347
- "ĩ": "i",
2348
- "Ĩ": "I",
2349
- "ỉ": "i",
2350
- "Ỉ": "i",
2351
- "ủ": "u",
2352
- "Ủ": "U",
2353
- "ụ": "u",
2354
- "Ụ": "U",
2355
- "ũ": "u",
2356
- "Ũ": "U",
2357
- "ư": "u",
2358
- "Ư": "U",
2359
- "ứ": "u",
2360
- "Ứ": "U",
2361
- "ừ": "u",
2362
- "Ừ": "U",
2363
- "ự": "u",
2364
- "Ự": "U",
2365
- "ữ": "u",
2366
- "Ữ": "U",
2367
- "ử": "u",
2368
- "Ử": "ư",
2369
- "ỷ": "y",
2370
- "Ỷ": "y",
2371
- "ỳ": "y",
2372
- "Ỳ": "Y",
2373
- "ỵ": "y",
2374
- "Ỵ": "Y",
2375
- "ỹ": "y",
2376
- "Ỹ": "Y",
2377
- "ạ": "a",
2378
- "Ạ": "A",
2379
- "ấ": "a",
2380
- "Ấ": "A",
2381
- "ầ": "a",
2382
- "Ầ": "A",
2383
- "ậ": "a",
2384
- "Ậ": "A",
2385
- "ẫ": "a",
2386
- "Ẫ": "A",
2387
- "ắ": "a",
2388
- "Ắ": "A",
2389
- "ằ": "a",
2390
- "Ằ": "A",
2391
- "ặ": "a",
2392
- "Ặ": "A",
2393
- "ẵ": "a",
2394
- "Ẵ": "A",
2395
- "⓪": "0",
2396
- "①": "1",
2397
- "②": "2",
2398
- "③": "3",
2399
- "④": "4",
2400
- "⑤": "5",
2401
- "⑥": "6",
2402
- "⑦": "7",
2403
- "⑧": "8",
2404
- "⑨": "9",
2405
- "⑩": "10",
2406
- "⑪": "11",
2407
- "⑫": "12",
2408
- "⑬": "13",
2409
- "⑭": "14",
2410
- "⑮": "15",
2411
- "⑯": "16",
2412
- "⑰": "17",
2413
- "⑱": "18",
2414
- "⑲": "18",
2415
- "⑳": "18",
2416
- "⓵": "1",
2417
- "⓶": "2",
2418
- "⓷": "3",
2419
- "⓸": "4",
2420
- "⓹": "5",
2421
- "⓺": "6",
2422
- "⓻": "7",
2423
- "⓼": "8",
2424
- "⓽": "9",
2425
- "⓾": "10",
2426
- "⓿": "0",
2427
- "⓫": "11",
2428
- "⓬": "12",
2429
- "⓭": "13",
2430
- "⓮": "14",
2431
- "⓯": "15",
2432
- "⓰": "16",
2433
- "⓱": "17",
2434
- "⓲": "18",
2435
- "⓳": "19",
2436
- "⓴": "20",
2437
- "Ⓐ": "A",
2438
- "Ⓑ": "B",
2439
- "Ⓒ": "C",
2440
- "Ⓓ": "D",
2441
- "Ⓔ": "E",
2442
- "Ⓕ": "F",
2443
- "Ⓖ": "G",
2444
- "Ⓗ": "H",
2445
- "Ⓘ": "I",
2446
- "Ⓙ": "J",
2447
- "Ⓚ": "K",
2448
- "Ⓛ": "L",
2449
- "Ⓜ": "M",
2450
- "Ⓝ": "N",
2451
- "Ⓞ": "O",
2452
- "Ⓟ": "P",
2453
- "Ⓠ": "Q",
2454
- "Ⓡ": "R",
2455
- "Ⓢ": "S",
2456
- "Ⓣ": "T",
2457
- "Ⓤ": "U",
2458
- "Ⓥ": "V",
2459
- "Ⓦ": "W",
2460
- "Ⓧ": "X",
2461
- "Ⓨ": "Y",
2462
- "Ⓩ": "Z",
2463
- "ⓐ": "a",
2464
- "ⓑ": "b",
2465
- "ⓒ": "c",
2466
- "ⓓ": "d",
2467
- "ⓔ": "e",
2468
- "ⓕ": "f",
2469
- "ⓖ": "g",
2470
- "ⓗ": "h",
2471
- "ⓘ": "i",
2472
- "ⓙ": "j",
2473
- "ⓚ": "k",
2474
- "ⓛ": "l",
2475
- "ⓜ": "m",
2476
- "ⓝ": "n",
2477
- "ⓞ": "o",
2478
- "ⓟ": "p",
2479
- "ⓠ": "q",
2480
- "ⓡ": "r",
2481
- "ⓢ": "s",
2482
- "ⓣ": "t",
2483
- "ⓤ": "u",
2484
- "ⓦ": "v",
2485
- "ⓥ": "w",
2486
- "ⓧ": "x",
2487
- "ⓨ": "y",
2488
- "ⓩ": "z",
2489
- "“": "\"",
2490
- "”": "\"",
2491
- "‘": "'",
2492
- "’": "'",
2493
- "∂": "d",
2494
- "ƒ": "f",
2495
- "™": "(TM)",
2496
- "©": "(C)",
2497
- "œ": "oe",
2498
- "Œ": "OE",
2499
- "®": "(R)",
2500
- "†": "+",
2501
- "℠": "(SM)",
2502
- "…": "...",
2503
- "˚": "o",
2504
- "º": "o",
2505
- "ª": "a",
2506
- "•": "*",
2507
- "၊": ",",
2508
- "။": ".",
2509
- "$": "USD",
2510
- "€": "EUR",
2511
- "₢": "BRN",
2512
- "₣": "FRF",
2513
- "£": "GBP",
2514
- "₤": "ITL",
2515
- "₦": "NGN",
2516
- "₧": "ESP",
2517
- "₩": "KRW",
2518
- "₪": "ILS",
2519
- "₫": "VND",
2520
- "₭": "LAK",
2521
- "₮": "MNT",
2522
- "₯": "GRD",
2523
- "₱": "ARS",
2524
- "₲": "PYG",
2525
- "₳": "ARA",
2526
- "₴": "UAH",
2527
- "₵": "GHS",
2528
- "¢": "cent",
2529
- "¥": "CNY",
2530
- "元": "CNY",
2531
- "円": "YEN",
2532
- "﷼": "IRR",
2533
- "₠": "EWE",
2534
- "฿": "THB",
2535
- "₨": "INR",
2536
- "₹": "INR",
2537
- "₰": "PF",
2538
- "₺": "TRY",
2539
- "؋": "AFN",
2540
- "₼": "AZN",
2541
- "лв": "BGN",
2542
- "៛": "KHR",
2543
- "₡": "CRC",
2544
- "₸": "KZT",
2545
- "ден": "MKD",
2546
- "zł": "PLN",
2547
- "₽": "RUB",
2548
- "₾": "GEL"
2549
- };
2550
- /**
2551
- * special look ahead character array
2552
- * These characters form with consonants to become 'single'/consonant combo
2553
- * @type [Array]
2554
- */
2555
- var lookAheadCharArray = ["်", "ް"];
2556
- /**
2557
- * diatricMap for languages where transliteration changes entirely as more diatrics are added
2558
- * @type {Object}
2559
- */
2560
- var diatricMap = {
2561
- "ာ": "a",
2562
- "ါ": "a",
2563
- "ေ": "e",
2564
- "ဲ": "e",
2565
- "ိ": "i",
2566
- "ီ": "i",
2567
- "ို": "o",
2568
- "ု": "u",
2569
- "ူ": "u",
2570
- "ေါင်": "aung",
2571
- "ော": "aw",
2572
- "ော်": "aw",
2573
- "ေါ": "aw",
2574
- "ေါ်": "aw",
2575
- "်": "်",
2576
- "က်": "et",
2577
- "ိုက်": "aik",
2578
- "ောက်": "auk",
2579
- "င်": "in",
2580
- "ိုင်": "aing",
2581
- "ောင်": "aung",
2582
- "စ်": "it",
2583
- "ည်": "i",
2584
- "တ်": "at",
2585
- "ိတ်": "eik",
2586
- "ုတ်": "ok",
2587
- "ွတ်": "ut",
2588
- "ေတ်": "it",
2589
- "ဒ်": "d",
2590
- "ိုဒ်": "ok",
2591
- "ုဒ်": "ait",
2592
- "န်": "an",
2593
- "ာန်": "an",
2594
- "ိန်": "ein",
2595
- "ုန်": "on",
2596
- "ွန်": "un",
2597
- "ပ်": "at",
2598
- "ိပ်": "eik",
2599
- "ုပ်": "ok",
2600
- "ွပ်": "ut",
2601
- "န်ုပ်": "nub",
2602
- "မ်": "an",
2603
- "ိမ်": "ein",
2604
- "ုမ်": "on",
2605
- "ွမ်": "un",
2606
- "ယ်": "e",
2607
- "ိုလ်": "ol",
2608
- "ဉ်": "in",
2609
- "ံ": "an",
2610
- "ိံ": "ein",
2611
- "ုံ": "on",
2612
- "ައް": "ah",
2613
- "ަށް": "ah"
2614
- };
2615
- /**
2616
- * langCharMap language specific characters translations
2617
- * @type {Object}
2618
- */
2619
- var langCharMap = {
2620
- "en": {},
2621
- "az": {
2622
- "ç": "c",
2623
- "ə": "e",
2624
- "ğ": "g",
2625
- "ı": "i",
2626
- "ö": "o",
2627
- "ş": "s",
2628
- "ü": "u",
2629
- "Ç": "C",
2630
- "Ə": "E",
2631
- "Ğ": "G",
2632
- "İ": "I",
2633
- "Ö": "O",
2634
- "Ş": "S",
2635
- "Ü": "U"
2636
- },
2637
- "cs": {
2638
- "č": "c",
2639
- "ď": "d",
2640
- "ě": "e",
2641
- "ň": "n",
2642
- "ř": "r",
2643
- "š": "s",
2644
- "ť": "t",
2645
- "ů": "u",
2646
- "ž": "z",
2647
- "Č": "C",
2648
- "Ď": "D",
2649
- "Ě": "E",
2650
- "Ň": "N",
2651
- "Ř": "R",
2652
- "Š": "S",
2653
- "Ť": "T",
2654
- "Ů": "U",
2655
- "Ž": "Z"
2656
- },
2657
- "fi": {
2658
- "ä": "a",
2659
- "Ä": "A",
2660
- "ö": "o",
2661
- "Ö": "O"
2662
- },
2663
- "hu": {
2664
- "ä": "a",
2665
- "Ä": "A",
2666
- "ö": "o",
2667
- "Ö": "O",
2668
- "ü": "u",
2669
- "Ü": "U",
2670
- "ű": "u",
2671
- "Ű": "U"
2672
- },
2673
- "lt": {
2674
- "ą": "a",
2675
- "č": "c",
2676
- "ę": "e",
2677
- "ė": "e",
2678
- "į": "i",
2679
- "š": "s",
2680
- "ų": "u",
2681
- "ū": "u",
2682
- "ž": "z",
2683
- "Ą": "A",
2684
- "Č": "C",
2685
- "Ę": "E",
2686
- "Ė": "E",
2687
- "Į": "I",
2688
- "Š": "S",
2689
- "Ų": "U",
2690
- "Ū": "U"
2691
- },
2692
- "lv": {
2693
- "ā": "a",
2694
- "č": "c",
2695
- "ē": "e",
2696
- "ģ": "g",
2697
- "ī": "i",
2698
- "ķ": "k",
2699
- "ļ": "l",
2700
- "ņ": "n",
2701
- "š": "s",
2702
- "ū": "u",
2703
- "ž": "z",
2704
- "Ā": "A",
2705
- "Č": "C",
2706
- "Ē": "E",
2707
- "Ģ": "G",
2708
- "Ī": "i",
2709
- "Ķ": "k",
2710
- "Ļ": "L",
2711
- "Ņ": "N",
2712
- "Š": "S",
2713
- "Ū": "u",
2714
- "Ž": "Z"
2715
- },
2716
- "pl": {
2717
- "ą": "a",
2718
- "ć": "c",
2719
- "ę": "e",
2720
- "ł": "l",
2721
- "ń": "n",
2722
- "ó": "o",
2723
- "ś": "s",
2724
- "ź": "z",
2725
- "ż": "z",
2726
- "Ą": "A",
2727
- "Ć": "C",
2728
- "Ę": "e",
2729
- "Ł": "L",
2730
- "Ń": "N",
2731
- "Ó": "O",
2732
- "Ś": "S",
2733
- "Ź": "Z",
2734
- "Ż": "Z"
2735
- },
2736
- "sv": {
2737
- "ä": "a",
2738
- "Ä": "A",
2739
- "ö": "o",
2740
- "Ö": "O"
2741
- },
2742
- "sk": {
2743
- "ä": "a",
2744
- "Ä": "A"
2745
- },
2746
- "sr": {
2747
- "љ": "lj",
2748
- "њ": "nj",
2749
- "Љ": "Lj",
2750
- "Њ": "Nj",
2751
- "đ": "dj",
2752
- "Đ": "Dj"
2753
- },
2754
- "tr": {
2755
- "Ü": "U",
2756
- "Ö": "O",
2757
- "ü": "u",
2758
- "ö": "o"
2759
- }
2760
- };
2761
- /**
2762
- * symbolMap language specific symbol translations
2763
- * translations must be transliterated already
2764
- * @type {Object}
2765
- */
2766
- var symbolMap = {
2767
- "ar": {
2768
- "∆": "delta",
2769
- "∞": "la-nihaya",
2770
- "♥": "hob",
2771
- "&": "wa",
2772
- "|": "aw",
2773
- "<": "aqal-men",
2774
- ">": "akbar-men",
2775
- "∑": "majmou",
2776
- "¤": "omla"
2777
- },
2778
- "az": {},
2779
- "ca": {
2780
- "∆": "delta",
2781
- "∞": "infinit",
2782
- "♥": "amor",
2783
- "&": "i",
2784
- "|": "o",
2785
- "<": "menys que",
2786
- ">": "mes que",
2787
- "∑": "suma dels",
2788
- "¤": "moneda"
2789
- },
2790
- "cs": {
2791
- "∆": "delta",
2792
- "∞": "nekonecno",
2793
- "♥": "laska",
2794
- "&": "a",
2795
- "|": "nebo",
2796
- "<": "mensi nez",
2797
- ">": "vetsi nez",
2798
- "∑": "soucet",
2799
- "¤": "mena"
2800
- },
2801
- "de": {
2802
- "∆": "delta",
2803
- "∞": "unendlich",
2804
- "♥": "Liebe",
2805
- "&": "und",
2806
- "|": "oder",
2807
- "<": "kleiner als",
2808
- ">": "groesser als",
2809
- "∑": "Summe von",
2810
- "¤": "Waehrung"
2811
- },
2812
- "dv": {
2813
- "∆": "delta",
2814
- "∞": "kolunulaa",
2815
- "♥": "loabi",
2816
- "&": "aai",
2817
- "|": "noonee",
2818
- "<": "ah vure kuda",
2819
- ">": "ah vure bodu",
2820
- "∑": "jumula",
2821
- "¤": "faisaa"
2822
- },
2823
- "en": {
2824
- "∆": "delta",
2825
- "∞": "infinity",
2826
- "♥": "love",
2827
- "&": "and",
2828
- "|": "or",
2829
- "<": "less than",
2830
- ">": "greater than",
2831
- "∑": "sum",
2832
- "¤": "currency"
2833
- },
2834
- "es": {
2835
- "∆": "delta",
2836
- "∞": "infinito",
2837
- "♥": "amor",
2838
- "&": "y",
2839
- "|": "u",
2840
- "<": "menos que",
2841
- ">": "mas que",
2842
- "∑": "suma de los",
2843
- "¤": "moneda"
2844
- },
2845
- "fa": {
2846
- "∆": "delta",
2847
- "∞": "bi-nahayat",
2848
- "♥": "eshgh",
2849
- "&": "va",
2850
- "|": "ya",
2851
- "<": "kamtar-az",
2852
- ">": "bishtar-az",
2853
- "∑": "majmooe",
2854
- "¤": "vahed"
2855
- },
2856
- "fi": {
2857
- "∆": "delta",
2858
- "∞": "aarettomyys",
2859
- "♥": "rakkaus",
2860
- "&": "ja",
2861
- "|": "tai",
2862
- "<": "pienempi kuin",
2863
- ">": "suurempi kuin",
2864
- "∑": "summa",
2865
- "¤": "valuutta"
2866
- },
2867
- "fr": {
2868
- "∆": "delta",
2869
- "∞": "infiniment",
2870
- "♥": "Amour",
2871
- "&": "et",
2872
- "|": "ou",
2873
- "<": "moins que",
2874
- ">": "superieure a",
2875
- "∑": "somme des",
2876
- "¤": "monnaie"
2877
- },
2878
- "ge": {
2879
- "∆": "delta",
2880
- "∞": "usasruloba",
2881
- "♥": "siqvaruli",
2882
- "&": "da",
2883
- "|": "an",
2884
- "<": "naklebi",
2885
- ">": "meti",
2886
- "∑": "jami",
2887
- "¤": "valuta"
2888
- },
2889
- "gr": {},
2890
- "hu": {
2891
- "∆": "delta",
2892
- "∞": "vegtelen",
2893
- "♥": "szerelem",
2894
- "&": "es",
2895
- "|": "vagy",
2896
- "<": "kisebb mint",
2897
- ">": "nagyobb mint",
2898
- "∑": "szumma",
2899
- "¤": "penznem"
2900
- },
2901
- "it": {
2902
- "∆": "delta",
2903
- "∞": "infinito",
2904
- "♥": "amore",
2905
- "&": "e",
2906
- "|": "o",
2907
- "<": "minore di",
2908
- ">": "maggiore di",
2909
- "∑": "somma",
2910
- "¤": "moneta"
2911
- },
2912
- "lt": {
2913
- "∆": "delta",
2914
- "∞": "begalybe",
2915
- "♥": "meile",
2916
- "&": "ir",
2917
- "|": "ar",
2918
- "<": "maziau nei",
2919
- ">": "daugiau nei",
2920
- "∑": "suma",
2921
- "¤": "valiuta"
2922
- },
2923
- "lv": {
2924
- "∆": "delta",
2925
- "∞": "bezgaliba",
2926
- "♥": "milestiba",
2927
- "&": "un",
2928
- "|": "vai",
2929
- "<": "mazak neka",
2930
- ">": "lielaks neka",
2931
- "∑": "summa",
2932
- "¤": "valuta"
2933
- },
2934
- "my": {
2935
- "∆": "kwahkhyaet",
2936
- "∞": "asaonasme",
2937
- "♥": "akhyait",
2938
- "&": "nhin",
2939
- "|": "tho",
2940
- "<": "ngethaw",
2941
- ">": "kyithaw",
2942
- "∑": "paungld",
2943
- "¤": "ngwekye"
2944
- },
2945
- "mk": {},
2946
- "nl": {
2947
- "∆": "delta",
2948
- "∞": "oneindig",
2949
- "♥": "liefde",
2950
- "&": "en",
2951
- "|": "of",
2952
- "<": "kleiner dan",
2953
- ">": "groter dan",
2954
- "∑": "som",
2955
- "¤": "valuta"
2956
- },
2957
- "pl": {
2958
- "∆": "delta",
2959
- "∞": "nieskonczonosc",
2960
- "♥": "milosc",
2961
- "&": "i",
2962
- "|": "lub",
2963
- "<": "mniejsze niz",
2964
- ">": "wieksze niz",
2965
- "∑": "suma",
2966
- "¤": "waluta"
2967
- },
2968
- "pt": {
2969
- "∆": "delta",
2970
- "∞": "infinito",
2971
- "♥": "amor",
2972
- "&": "e",
2973
- "|": "ou",
2974
- "<": "menor que",
2975
- ">": "maior que",
2976
- "∑": "soma",
2977
- "¤": "moeda"
2978
- },
2979
- "ro": {
2980
- "∆": "delta",
2981
- "∞": "infinit",
2982
- "♥": "dragoste",
2983
- "&": "si",
2984
- "|": "sau",
2985
- "<": "mai mic ca",
2986
- ">": "mai mare ca",
2987
- "∑": "suma",
2988
- "¤": "valuta"
2989
- },
2990
- "ru": {
2991
- "∆": "delta",
2992
- "∞": "beskonechno",
2993
- "♥": "lubov",
2994
- "&": "i",
2995
- "|": "ili",
2996
- "<": "menshe",
2997
- ">": "bolshe",
2998
- "∑": "summa",
2999
- "¤": "valjuta"
3000
- },
3001
- "sk": {
3002
- "∆": "delta",
3003
- "∞": "nekonecno",
3004
- "♥": "laska",
3005
- "&": "a",
3006
- "|": "alebo",
3007
- "<": "menej ako",
3008
- ">": "viac ako",
3009
- "∑": "sucet",
3010
- "¤": "mena"
3011
- },
3012
- "sr": {},
3013
- "tr": {
3014
- "∆": "delta",
3015
- "∞": "sonsuzluk",
3016
- "♥": "ask",
3017
- "&": "ve",
3018
- "|": "veya",
3019
- "<": "kucuktur",
3020
- ">": "buyuktur",
3021
- "∑": "toplam",
3022
- "¤": "para birimi"
3023
- },
3024
- "uk": {
3025
- "∆": "delta",
3026
- "∞": "bezkinechnist",
3027
- "♥": "lubov",
3028
- "&": "i",
3029
- "|": "abo",
3030
- "<": "menshe",
3031
- ">": "bilshe",
3032
- "∑": "suma",
3033
- "¤": "valjuta"
3034
- },
3035
- "vn": {
3036
- "∆": "delta",
3037
- "∞": "vo cuc",
3038
- "♥": "yeu",
3039
- "&": "va",
3040
- "|": "hoac",
3041
- "<": "nho hon",
3042
- ">": "lon hon",
3043
- "∑": "tong",
3044
- "¤": "tien te"
3045
- }
3046
- };
3047
- var uricChars = [
3048
- ";",
3049
- "?",
3050
- ":",
3051
- "@",
3052
- "&",
3053
- "=",
3054
- "+",
3055
- "$",
3056
- ",",
3057
- "/"
3058
- ].join("");
3059
- var uricNoSlashChars = [
3060
- ";",
3061
- "?",
3062
- ":",
3063
- "@",
3064
- "&",
3065
- "=",
3066
- "+",
3067
- "$",
3068
- ","
3069
- ].join("");
3070
- var markChars = [
3071
- ".",
3072
- "!",
3073
- "~",
3074
- "*",
3075
- "'",
3076
- "(",
3077
- ")"
3078
- ].join("");
3079
- /**
3080
- * getSlug
3081
- * @param {string} input input string
3082
- * @param {object|string} opts config object or separator string/char
3083
- * @api public
3084
- * @return {string} sluggified string
3085
- */
3086
- var getSlug = function getSlug(input, opts) {
3087
- var separator = "-";
3088
- var result = "";
3089
- var diatricString = "";
3090
- var convertSymbols = true;
3091
- var customReplacements = {};
3092
- var maintainCase;
3093
- var titleCase;
3094
- var truncate;
3095
- var uricFlag;
3096
- var uricNoSlashFlag;
3097
- var markFlag;
3098
- var symbol;
3099
- var langChar;
3100
- var lucky;
3101
- var i;
3102
- var ch;
3103
- var l;
3104
- var lastCharWasSymbol;
3105
- var lastCharWasDiatric;
3106
- var allowedChars = "";
3107
- if (typeof input !== "string") return "";
3108
- if (typeof opts === "string") separator = opts;
3109
- symbol = symbolMap.en;
3110
- langChar = langCharMap.en;
3111
- if (typeof opts === "object") {
3112
- maintainCase = opts.maintainCase || false;
3113
- customReplacements = opts.custom && typeof opts.custom === "object" ? opts.custom : customReplacements;
3114
- truncate = +opts.truncate > 1 && opts.truncate || false;
3115
- uricFlag = opts.uric || false;
3116
- uricNoSlashFlag = opts.uricNoSlash || false;
3117
- markFlag = opts.mark || false;
3118
- convertSymbols = opts.symbols === false || opts.lang === false ? false : true;
3119
- separator = opts.separator || separator;
3120
- if (uricFlag) allowedChars += uricChars;
3121
- if (uricNoSlashFlag) allowedChars += uricNoSlashChars;
3122
- if (markFlag) allowedChars += markChars;
3123
- symbol = opts.lang && symbolMap[opts.lang] && convertSymbols ? symbolMap[opts.lang] : convertSymbols ? symbolMap.en : {};
3124
- langChar = opts.lang && langCharMap[opts.lang] ? langCharMap[opts.lang] : opts.lang === false || opts.lang === true ? {} : langCharMap.en;
3125
- if (opts.titleCase && typeof opts.titleCase.length === "number" && Array.prototype.toString.call(opts.titleCase)) {
3126
- opts.titleCase.forEach(function(v) {
3127
- customReplacements[v + ""] = v + "";
3128
- });
3129
- titleCase = true;
3130
- } else titleCase = !!opts.titleCase;
3131
- if (opts.custom && typeof opts.custom.length === "number" && Array.prototype.toString.call(opts.custom)) opts.custom.forEach(function(v) {
3132
- customReplacements[v + ""] = v + "";
3133
- });
3134
- Object.keys(customReplacements).forEach(function(v) {
3135
- var r;
3136
- if (v.length > 1) r = new RegExp("\\b" + escapeChars(v) + "\\b", "gi");
3137
- else r = new RegExp(escapeChars(v), "gi");
3138
- input = input.replace(r, customReplacements[v]);
3139
- });
3140
- for (ch in customReplacements) allowedChars += ch;
3141
- }
3142
- allowedChars += separator;
3143
- allowedChars = escapeChars(allowedChars);
3144
- input = input.replace(/(^\s+|\s+$)/g, "");
3145
- lastCharWasSymbol = false;
3146
- lastCharWasDiatric = false;
3147
- for (i = 0, l = input.length; i < l; i++) {
3148
- ch = input[i];
3149
- if (isReplacedCustomChar(ch, customReplacements)) lastCharWasSymbol = false;
3150
- else if (langChar[ch]) {
3151
- ch = lastCharWasSymbol && langChar[ch].match(/[A-Za-z0-9]/) ? " " + langChar[ch] : langChar[ch];
3152
- lastCharWasSymbol = false;
3153
- } else if (ch in charMap) {
3154
- if (i + 1 < l && lookAheadCharArray.indexOf(input[i + 1]) >= 0) {
3155
- diatricString += ch;
3156
- ch = "";
3157
- } else if (lastCharWasDiatric === true) {
3158
- ch = diatricMap[diatricString] + charMap[ch];
3159
- diatricString = "";
3160
- } else ch = lastCharWasSymbol && charMap[ch].match(/[A-Za-z0-9]/) ? " " + charMap[ch] : charMap[ch];
3161
- lastCharWasSymbol = false;
3162
- lastCharWasDiatric = false;
3163
- } else if (ch in diatricMap) {
3164
- diatricString += ch;
3165
- ch = "";
3166
- if (i === l - 1) ch = diatricMap[diatricString];
3167
- lastCharWasDiatric = true;
3168
- } else if (symbol[ch] && !(uricFlag && uricChars.indexOf(ch) !== -1) && !(uricNoSlashFlag && uricNoSlashChars.indexOf(ch) !== -1)) {
3169
- ch = lastCharWasSymbol || result.substr(-1).match(/[A-Za-z0-9]/) ? separator + symbol[ch] : symbol[ch];
3170
- ch += input[i + 1] !== void 0 && input[i + 1].match(/[A-Za-z0-9]/) ? separator : "";
3171
- lastCharWasSymbol = true;
3172
- } else {
3173
- if (lastCharWasDiatric === true) {
3174
- ch = diatricMap[diatricString] + ch;
3175
- diatricString = "";
3176
- lastCharWasDiatric = false;
3177
- } else if (lastCharWasSymbol && (/[A-Za-z0-9]/.test(ch) || result.substr(-1).match(/A-Za-z0-9]/))) ch = " " + ch;
3178
- lastCharWasSymbol = false;
3179
- }
3180
- result += ch.replace(new RegExp("[^\\w\\s" + allowedChars + "_-]", "g"), separator);
3181
- }
3182
- if (titleCase) result = result.replace(/(\w)(\S*)/g, function(_, i, r) {
3183
- var j = i.toUpperCase() + (r !== null ? r : "");
3184
- return Object.keys(customReplacements).indexOf(j.toLowerCase()) < 0 ? j : j.toLowerCase();
3185
- });
3186
- result = result.replace(/\s+/g, separator).replace(new RegExp("\\" + separator + "+", "g"), separator).replace(new RegExp("(^\\" + separator + "+|\\" + separator + "+$)", "g"), "");
3187
- if (truncate && result.length > truncate) {
3188
- lucky = result.charAt(truncate) === separator;
3189
- result = result.slice(0, truncate);
3190
- if (!lucky) result = result.slice(0, result.lastIndexOf(separator));
3191
- }
3192
- if (!maintainCase && !titleCase) result = result.toLowerCase();
3193
- return result;
3194
- };
3195
- /**
3196
- * createSlug curried(opts)(input)
3197
- * @param {object|string} opts config object or input string
3198
- * @return {Function} function getSlugWithConfig()
3199
- **/
3200
- var createSlug = function createSlug(opts) {
3201
- /**
3202
- * getSlugWithConfig
3203
- * @param {string} input string
3204
- * @return {string} slug string
3205
- */
3206
- return function getSlugWithConfig(input) {
3207
- return getSlug(input, opts);
3208
- };
3209
- };
3210
- /**
3211
- * escape Chars
3212
- * @param {string} input string
3213
- */
3214
- var escapeChars = function escapeChars(input) {
3215
- return input.replace(/[-\\^$*+?.()|[\]{}\/]/g, "\\$&");
3216
- };
3217
- /**
3218
- * check if the char is an already converted char from custom list
3219
- * @param {char} ch character to check
3220
- * @param {object} customReplacements custom translation map
3221
- */
3222
- var isReplacedCustomChar = function(ch, customReplacements) {
3223
- for (var c in customReplacements) if (customReplacements[c] === ch) return true;
3224
- };
3225
- if (typeof module !== "undefined" && module.exports) {
3226
- module.exports = getSlug;
3227
- module.exports.createSlug = createSlug;
3228
- } else if (typeof define !== "undefined" && define.amd) define([], function() {
3229
- return getSlug;
3230
- });
3231
- else try {
3232
- if (root.getSlug || root.createSlug) throw "speakingurl: globals exists /(getSlug|createSlug)/";
3233
- else {
3234
- root.getSlug = getSlug;
3235
- root.createSlug = createSlug;
3236
- }
3237
- } catch (e) {}
3238
- })(exports);
3239
- }));
3240
- (/* @__PURE__ */ __commonJSMin(((exports, module) => {
3241
- module.exports = require_speakingurl$1();
3242
- })))();
3243
- target.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__ ??= {
3244
- id: 0,
3245
- appIds: /* @__PURE__ */ new Set()
3246
- };
3247
- //#endregion
3248
1754
  //#region ../devtools-kit/src/core/index.ts
3249
1755
  function onDevToolsClientConnected(fn) {
3250
1756
  return new Promise((resolve) => {
@@ -3262,653 +1768,4 @@ function onDevToolsClientConnected(fn) {
3262
1768
  });
3263
1769
  }
3264
1770
  //#endregion
3265
- //#region ../devtools-kit/src/core/high-perf-mode/index.ts
3266
- function toggleHighPerfMode(state) {
3267
- devtoolsState.highPerfModeEnabled = state ?? !devtoolsState.highPerfModeEnabled;
3268
- if (!state && activeAppRecord.value) registerDevToolsPlugin(activeAppRecord.value.app);
3269
- }
3270
- //#endregion
3271
- //#region ../devtools-kit/src/core/devtools-client/detected.ts
3272
- function updateDevToolsClientDetected(params) {
3273
- devtoolsState.devtoolsClientDetected = {
3274
- ...devtoolsState.devtoolsClientDetected,
3275
- ...params
3276
- };
3277
- toggleHighPerfMode(!Object.values(devtoolsState.devtoolsClientDetected).some(Boolean));
3278
- }
3279
- target.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__ ??= updateDevToolsClientDetected;
3280
- //#endregion
3281
- //#region ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/double-indexed-kv.js
3282
- var DoubleIndexedKV = class {
3283
- constructor() {
3284
- this.keyToValue = /* @__PURE__ */ new Map();
3285
- this.valueToKey = /* @__PURE__ */ new Map();
3286
- }
3287
- set(key, value) {
3288
- this.keyToValue.set(key, value);
3289
- this.valueToKey.set(value, key);
3290
- }
3291
- getByKey(key) {
3292
- return this.keyToValue.get(key);
3293
- }
3294
- getByValue(value) {
3295
- return this.valueToKey.get(value);
3296
- }
3297
- clear() {
3298
- this.keyToValue.clear();
3299
- this.valueToKey.clear();
3300
- }
3301
- };
3302
- //#endregion
3303
- //#region ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/registry.js
3304
- var Registry = class {
3305
- constructor(generateIdentifier) {
3306
- this.generateIdentifier = generateIdentifier;
3307
- this.kv = new DoubleIndexedKV();
3308
- }
3309
- register(value, identifier) {
3310
- if (this.kv.getByValue(value)) return;
3311
- if (!identifier) identifier = this.generateIdentifier(value);
3312
- this.kv.set(identifier, value);
3313
- }
3314
- clear() {
3315
- this.kv.clear();
3316
- }
3317
- getIdentifier(value) {
3318
- return this.kv.getByValue(value);
3319
- }
3320
- getValue(identifier) {
3321
- return this.kv.getByKey(identifier);
3322
- }
3323
- };
3324
- //#endregion
3325
- //#region ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/class-registry.js
3326
- var ClassRegistry = class extends Registry {
3327
- constructor() {
3328
- super((c) => c.name);
3329
- this.classToAllowedProps = /* @__PURE__ */ new Map();
3330
- }
3331
- register(value, options) {
3332
- if (typeof options === "object") {
3333
- if (options.allowProps) this.classToAllowedProps.set(value, options.allowProps);
3334
- super.register(value, options.identifier);
3335
- } else super.register(value, options);
3336
- }
3337
- getAllowedProps(value) {
3338
- return this.classToAllowedProps.get(value);
3339
- }
3340
- };
3341
- //#endregion
3342
- //#region ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/util.js
3343
- function valuesOfObj(record) {
3344
- if ("values" in Object) return Object.values(record);
3345
- const values = [];
3346
- for (const key in record) if (record.hasOwnProperty(key)) values.push(record[key]);
3347
- return values;
3348
- }
3349
- function find(record, predicate) {
3350
- const values = valuesOfObj(record);
3351
- if ("find" in values) return values.find(predicate);
3352
- const valuesNotNever = values;
3353
- for (let i = 0; i < valuesNotNever.length; i++) {
3354
- const value = valuesNotNever[i];
3355
- if (predicate(value)) return value;
3356
- }
3357
- }
3358
- function forEach(record, run) {
3359
- Object.entries(record).forEach(([key, value]) => run(value, key));
3360
- }
3361
- function includes(arr, value) {
3362
- return arr.indexOf(value) !== -1;
3363
- }
3364
- function findArr(record, predicate) {
3365
- for (let i = 0; i < record.length; i++) {
3366
- const value = record[i];
3367
- if (predicate(value)) return value;
3368
- }
3369
- }
3370
- //#endregion
3371
- //#region ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/custom-transformer-registry.js
3372
- var CustomTransformerRegistry = class {
3373
- constructor() {
3374
- this.transfomers = {};
3375
- }
3376
- register(transformer) {
3377
- this.transfomers[transformer.name] = transformer;
3378
- }
3379
- findApplicable(v) {
3380
- return find(this.transfomers, (transformer) => transformer.isApplicable(v));
3381
- }
3382
- findByName(name) {
3383
- return this.transfomers[name];
3384
- }
3385
- };
3386
- //#endregion
3387
- //#region ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/is.js
3388
- const getType$1 = (payload) => Object.prototype.toString.call(payload).slice(8, -1);
3389
- const isUndefined$1 = (payload) => typeof payload === "undefined";
3390
- const isNull$1 = (payload) => payload === null;
3391
- const isPlainObject$1 = (payload) => {
3392
- if (typeof payload !== "object" || payload === null) return false;
3393
- if (payload === Object.prototype) return false;
3394
- if (Object.getPrototypeOf(payload) === null) return true;
3395
- return Object.getPrototypeOf(payload) === Object.prototype;
3396
- };
3397
- const isEmptyObject = (payload) => isPlainObject$1(payload) && Object.keys(payload).length === 0;
3398
- const isArray$1 = (payload) => Array.isArray(payload);
3399
- const isString = (payload) => typeof payload === "string";
3400
- const isNumber = (payload) => typeof payload === "number" && !isNaN(payload);
3401
- const isBoolean = (payload) => typeof payload === "boolean";
3402
- const isRegExp = (payload) => payload instanceof RegExp;
3403
- const isMap = (payload) => payload instanceof Map;
3404
- const isSet = (payload) => payload instanceof Set;
3405
- const isSymbol = (payload) => getType$1(payload) === "Symbol";
3406
- const isDate = (payload) => payload instanceof Date && !isNaN(payload.valueOf());
3407
- const isError = (payload) => payload instanceof Error;
3408
- const isNaNValue = (payload) => typeof payload === "number" && isNaN(payload);
3409
- const isPrimitive = (payload) => isBoolean(payload) || isNull$1(payload) || isUndefined$1(payload) || isNumber(payload) || isString(payload) || isSymbol(payload);
3410
- const isBigint = (payload) => typeof payload === "bigint";
3411
- const isInfinite = (payload) => payload === Infinity || payload === -Infinity;
3412
- const isTypedArray = (payload) => ArrayBuffer.isView(payload) && !(payload instanceof DataView);
3413
- const isURL = (payload) => payload instanceof URL;
3414
- //#endregion
3415
- //#region ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/pathstringifier.js
3416
- const escapeKey = (key) => key.replace(/\./g, "\\.");
3417
- const stringifyPath = (path) => path.map(String).map(escapeKey).join(".");
3418
- const parsePath = (string) => {
3419
- const result = [];
3420
- let segment = "";
3421
- for (let i = 0; i < string.length; i++) {
3422
- let char = string.charAt(i);
3423
- if (char === "\\" && string.charAt(i + 1) === ".") {
3424
- segment += ".";
3425
- i++;
3426
- continue;
3427
- }
3428
- if (char === ".") {
3429
- result.push(segment);
3430
- segment = "";
3431
- continue;
3432
- }
3433
- segment += char;
3434
- }
3435
- const lastSegment = segment;
3436
- result.push(lastSegment);
3437
- return result;
3438
- };
3439
- //#endregion
3440
- //#region ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/transformer.js
3441
- function simpleTransformation(isApplicable, annotation, transform, untransform) {
3442
- return {
3443
- isApplicable,
3444
- annotation,
3445
- transform,
3446
- untransform
3447
- };
3448
- }
3449
- const simpleRules = [
3450
- simpleTransformation(isUndefined$1, "undefined", () => null, () => void 0),
3451
- simpleTransformation(isBigint, "bigint", (v) => v.toString(), (v) => {
3452
- if (typeof BigInt !== "undefined") return BigInt(v);
3453
- console.error("Please add a BigInt polyfill.");
3454
- return v;
3455
- }),
3456
- simpleTransformation(isDate, "Date", (v) => v.toISOString(), (v) => new Date(v)),
3457
- simpleTransformation(isError, "Error", (v, superJson) => {
3458
- const baseError = {
3459
- name: v.name,
3460
- message: v.message
3461
- };
3462
- superJson.allowedErrorProps.forEach((prop) => {
3463
- baseError[prop] = v[prop];
3464
- });
3465
- return baseError;
3466
- }, (v, superJson) => {
3467
- const e = new Error(v.message);
3468
- e.name = v.name;
3469
- e.stack = v.stack;
3470
- superJson.allowedErrorProps.forEach((prop) => {
3471
- e[prop] = v[prop];
3472
- });
3473
- return e;
3474
- }),
3475
- simpleTransformation(isRegExp, "regexp", (v) => "" + v, (regex) => {
3476
- const body = regex.slice(1, regex.lastIndexOf("/"));
3477
- const flags = regex.slice(regex.lastIndexOf("/") + 1);
3478
- return new RegExp(body, flags);
3479
- }),
3480
- simpleTransformation(isSet, "set", (v) => [...v.values()], (v) => new Set(v)),
3481
- simpleTransformation(isMap, "map", (v) => [...v.entries()], (v) => new Map(v)),
3482
- simpleTransformation((v) => isNaNValue(v) || isInfinite(v), "number", (v) => {
3483
- if (isNaNValue(v)) return "NaN";
3484
- if (v > 0) return "Infinity";
3485
- else return "-Infinity";
3486
- }, Number),
3487
- simpleTransformation((v) => v === 0 && 1 / v === -Infinity, "number", () => {
3488
- return "-0";
3489
- }, Number),
3490
- simpleTransformation(isURL, "URL", (v) => v.toString(), (v) => new URL(v))
3491
- ];
3492
- function compositeTransformation(isApplicable, annotation, transform, untransform) {
3493
- return {
3494
- isApplicable,
3495
- annotation,
3496
- transform,
3497
- untransform
3498
- };
3499
- }
3500
- const symbolRule = compositeTransformation((s, superJson) => {
3501
- if (isSymbol(s)) return !!superJson.symbolRegistry.getIdentifier(s);
3502
- return false;
3503
- }, (s, superJson) => {
3504
- return ["symbol", superJson.symbolRegistry.getIdentifier(s)];
3505
- }, (v) => v.description, (_, a, superJson) => {
3506
- const value = superJson.symbolRegistry.getValue(a[1]);
3507
- if (!value) throw new Error("Trying to deserialize unknown symbol");
3508
- return value;
3509
- });
3510
- const constructorToName = [
3511
- Int8Array,
3512
- Uint8Array,
3513
- Int16Array,
3514
- Uint16Array,
3515
- Int32Array,
3516
- Uint32Array,
3517
- Float32Array,
3518
- Float64Array,
3519
- Uint8ClampedArray
3520
- ].reduce((obj, ctor) => {
3521
- obj[ctor.name] = ctor;
3522
- return obj;
3523
- }, {});
3524
- const typedArrayRule = compositeTransformation(isTypedArray, (v) => ["typed-array", v.constructor.name], (v) => [...v], (v, a) => {
3525
- const ctor = constructorToName[a[1]];
3526
- if (!ctor) throw new Error("Trying to deserialize unknown typed array");
3527
- return new ctor(v);
3528
- });
3529
- function isInstanceOfRegisteredClass(potentialClass, superJson) {
3530
- if (potentialClass?.constructor) return !!superJson.classRegistry.getIdentifier(potentialClass.constructor);
3531
- return false;
3532
- }
3533
- const classRule = compositeTransformation(isInstanceOfRegisteredClass, (clazz, superJson) => {
3534
- return ["class", superJson.classRegistry.getIdentifier(clazz.constructor)];
3535
- }, (clazz, superJson) => {
3536
- const allowedProps = superJson.classRegistry.getAllowedProps(clazz.constructor);
3537
- if (!allowedProps) return { ...clazz };
3538
- const result = {};
3539
- allowedProps.forEach((prop) => {
3540
- result[prop] = clazz[prop];
3541
- });
3542
- return result;
3543
- }, (v, a, superJson) => {
3544
- const clazz = superJson.classRegistry.getValue(a[1]);
3545
- if (!clazz) throw new Error(`Trying to deserialize unknown class '${a[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);
3546
- return Object.assign(Object.create(clazz.prototype), v);
3547
- });
3548
- const customRule = compositeTransformation((value, superJson) => {
3549
- return !!superJson.customTransformerRegistry.findApplicable(value);
3550
- }, (value, superJson) => {
3551
- return ["custom", superJson.customTransformerRegistry.findApplicable(value).name];
3552
- }, (value, superJson) => {
3553
- return superJson.customTransformerRegistry.findApplicable(value).serialize(value);
3554
- }, (v, a, superJson) => {
3555
- const transformer = superJson.customTransformerRegistry.findByName(a[1]);
3556
- if (!transformer) throw new Error("Trying to deserialize unknown custom value");
3557
- return transformer.deserialize(v);
3558
- });
3559
- const compositeRules = [
3560
- classRule,
3561
- symbolRule,
3562
- customRule,
3563
- typedArrayRule
3564
- ];
3565
- const transformValue = (value, superJson) => {
3566
- const applicableCompositeRule = findArr(compositeRules, (rule) => rule.isApplicable(value, superJson));
3567
- if (applicableCompositeRule) return {
3568
- value: applicableCompositeRule.transform(value, superJson),
3569
- type: applicableCompositeRule.annotation(value, superJson)
3570
- };
3571
- const applicableSimpleRule = findArr(simpleRules, (rule) => rule.isApplicable(value, superJson));
3572
- if (applicableSimpleRule) return {
3573
- value: applicableSimpleRule.transform(value, superJson),
3574
- type: applicableSimpleRule.annotation
3575
- };
3576
- };
3577
- const simpleRulesByAnnotation = {};
3578
- simpleRules.forEach((rule) => {
3579
- simpleRulesByAnnotation[rule.annotation] = rule;
3580
- });
3581
- const untransformValue = (json, type, superJson) => {
3582
- if (isArray$1(type)) switch (type[0]) {
3583
- case "symbol": return symbolRule.untransform(json, type, superJson);
3584
- case "class": return classRule.untransform(json, type, superJson);
3585
- case "custom": return customRule.untransform(json, type, superJson);
3586
- case "typed-array": return typedArrayRule.untransform(json, type, superJson);
3587
- default: throw new Error("Unknown transformation: " + type);
3588
- }
3589
- else {
3590
- const transformation = simpleRulesByAnnotation[type];
3591
- if (!transformation) throw new Error("Unknown transformation: " + type);
3592
- return transformation.untransform(json, superJson);
3593
- }
3594
- };
3595
- //#endregion
3596
- //#region ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/accessDeep.js
3597
- const getNthKey = (value, n) => {
3598
- if (n > value.size) throw new Error("index out of bounds");
3599
- const keys = value.keys();
3600
- while (n > 0) {
3601
- keys.next();
3602
- n--;
3603
- }
3604
- return keys.next().value;
3605
- };
3606
- function validatePath(path) {
3607
- if (includes(path, "__proto__")) throw new Error("__proto__ is not allowed as a property");
3608
- if (includes(path, "prototype")) throw new Error("prototype is not allowed as a property");
3609
- if (includes(path, "constructor")) throw new Error("constructor is not allowed as a property");
3610
- }
3611
- const getDeep = (object, path) => {
3612
- validatePath(path);
3613
- for (let i = 0; i < path.length; i++) {
3614
- const key = path[i];
3615
- if (isSet(object)) object = getNthKey(object, +key);
3616
- else if (isMap(object)) {
3617
- const row = +key;
3618
- const type = +path[++i] === 0 ? "key" : "value";
3619
- const keyOfRow = getNthKey(object, row);
3620
- switch (type) {
3621
- case "key":
3622
- object = keyOfRow;
3623
- break;
3624
- case "value":
3625
- object = object.get(keyOfRow);
3626
- break;
3627
- }
3628
- } else object = object[key];
3629
- }
3630
- return object;
3631
- };
3632
- const setDeep = (object, path, mapper) => {
3633
- validatePath(path);
3634
- if (path.length === 0) return mapper(object);
3635
- let parent = object;
3636
- for (let i = 0; i < path.length - 1; i++) {
3637
- const key = path[i];
3638
- if (isArray$1(parent)) {
3639
- const index = +key;
3640
- parent = parent[index];
3641
- } else if (isPlainObject$1(parent)) parent = parent[key];
3642
- else if (isSet(parent)) {
3643
- const row = +key;
3644
- parent = getNthKey(parent, row);
3645
- } else if (isMap(parent)) {
3646
- if (i === path.length - 2) break;
3647
- const row = +key;
3648
- const type = +path[++i] === 0 ? "key" : "value";
3649
- const keyOfRow = getNthKey(parent, row);
3650
- switch (type) {
3651
- case "key":
3652
- parent = keyOfRow;
3653
- break;
3654
- case "value":
3655
- parent = parent.get(keyOfRow);
3656
- break;
3657
- }
3658
- }
3659
- }
3660
- const lastKey = path[path.length - 1];
3661
- if (isArray$1(parent)) parent[+lastKey] = mapper(parent[+lastKey]);
3662
- else if (isPlainObject$1(parent)) parent[lastKey] = mapper(parent[lastKey]);
3663
- if (isSet(parent)) {
3664
- const oldValue = getNthKey(parent, +lastKey);
3665
- const newValue = mapper(oldValue);
3666
- if (oldValue !== newValue) {
3667
- parent.delete(oldValue);
3668
- parent.add(newValue);
3669
- }
3670
- }
3671
- if (isMap(parent)) {
3672
- const row = +path[path.length - 2];
3673
- const keyToRow = getNthKey(parent, row);
3674
- switch (+lastKey === 0 ? "key" : "value") {
3675
- case "key": {
3676
- const newKey = mapper(keyToRow);
3677
- parent.set(newKey, parent.get(keyToRow));
3678
- if (newKey !== keyToRow) parent.delete(keyToRow);
3679
- break;
3680
- }
3681
- case "value":
3682
- parent.set(keyToRow, mapper(parent.get(keyToRow)));
3683
- break;
3684
- }
3685
- }
3686
- return object;
3687
- };
3688
- //#endregion
3689
- //#region ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/plainer.js
3690
- function traverse(tree, walker, origin = []) {
3691
- if (!tree) return;
3692
- if (!isArray$1(tree)) {
3693
- forEach(tree, (subtree, key) => traverse(subtree, walker, [...origin, ...parsePath(key)]));
3694
- return;
3695
- }
3696
- const [nodeValue, children] = tree;
3697
- if (children) forEach(children, (child, key) => {
3698
- traverse(child, walker, [...origin, ...parsePath(key)]);
3699
- });
3700
- walker(nodeValue, origin);
3701
- }
3702
- function applyValueAnnotations(plain, annotations, superJson) {
3703
- traverse(annotations, (type, path) => {
3704
- plain = setDeep(plain, path, (v) => untransformValue(v, type, superJson));
3705
- });
3706
- return plain;
3707
- }
3708
- function applyReferentialEqualityAnnotations(plain, annotations) {
3709
- function apply(identicalPaths, path) {
3710
- const object = getDeep(plain, parsePath(path));
3711
- identicalPaths.map(parsePath).forEach((identicalObjectPath) => {
3712
- plain = setDeep(plain, identicalObjectPath, () => object);
3713
- });
3714
- }
3715
- if (isArray$1(annotations)) {
3716
- const [root, other] = annotations;
3717
- root.forEach((identicalPath) => {
3718
- plain = setDeep(plain, parsePath(identicalPath), () => plain);
3719
- });
3720
- if (other) forEach(other, apply);
3721
- } else forEach(annotations, apply);
3722
- return plain;
3723
- }
3724
- const isDeep = (object, superJson) => isPlainObject$1(object) || isArray$1(object) || isMap(object) || isSet(object) || isInstanceOfRegisteredClass(object, superJson);
3725
- function addIdentity(object, path, identities) {
3726
- const existingSet = identities.get(object);
3727
- if (existingSet) existingSet.push(path);
3728
- else identities.set(object, [path]);
3729
- }
3730
- function generateReferentialEqualityAnnotations(identitites, dedupe) {
3731
- const result = {};
3732
- let rootEqualityPaths = void 0;
3733
- identitites.forEach((paths) => {
3734
- if (paths.length <= 1) return;
3735
- if (!dedupe) paths = paths.map((path) => path.map(String)).sort((a, b) => a.length - b.length);
3736
- const [representativePath, ...identicalPaths] = paths;
3737
- if (representativePath.length === 0) rootEqualityPaths = identicalPaths.map(stringifyPath);
3738
- else result[stringifyPath(representativePath)] = identicalPaths.map(stringifyPath);
3739
- });
3740
- if (rootEqualityPaths) if (isEmptyObject(result)) return [rootEqualityPaths];
3741
- else return [rootEqualityPaths, result];
3742
- else return isEmptyObject(result) ? void 0 : result;
3743
- }
3744
- const walker = (object, identities, superJson, dedupe, path = [], objectsInThisPath = [], seenObjects = /* @__PURE__ */ new Map()) => {
3745
- const primitive = isPrimitive(object);
3746
- if (!primitive) {
3747
- addIdentity(object, path, identities);
3748
- const seen = seenObjects.get(object);
3749
- if (seen) return dedupe ? { transformedValue: null } : seen;
3750
- }
3751
- if (!isDeep(object, superJson)) {
3752
- const transformed = transformValue(object, superJson);
3753
- const result = transformed ? {
3754
- transformedValue: transformed.value,
3755
- annotations: [transformed.type]
3756
- } : { transformedValue: object };
3757
- if (!primitive) seenObjects.set(object, result);
3758
- return result;
3759
- }
3760
- if (includes(objectsInThisPath, object)) return { transformedValue: null };
3761
- const transformationResult = transformValue(object, superJson);
3762
- const transformed = transformationResult?.value ?? object;
3763
- const transformedValue = isArray$1(transformed) ? [] : {};
3764
- const innerAnnotations = {};
3765
- forEach(transformed, (value, index) => {
3766
- if (index === "__proto__" || index === "constructor" || index === "prototype") throw new Error(`Detected property ${index}. This is a prototype pollution risk, please remove it from your object.`);
3767
- const recursiveResult = walker(value, identities, superJson, dedupe, [...path, index], [...objectsInThisPath, object], seenObjects);
3768
- transformedValue[index] = recursiveResult.transformedValue;
3769
- if (isArray$1(recursiveResult.annotations)) innerAnnotations[index] = recursiveResult.annotations;
3770
- else if (isPlainObject$1(recursiveResult.annotations)) forEach(recursiveResult.annotations, (tree, key) => {
3771
- innerAnnotations[escapeKey(index) + "." + key] = tree;
3772
- });
3773
- });
3774
- const result = isEmptyObject(innerAnnotations) ? {
3775
- transformedValue,
3776
- annotations: !!transformationResult ? [transformationResult.type] : void 0
3777
- } : {
3778
- transformedValue,
3779
- annotations: !!transformationResult ? [transformationResult.type, innerAnnotations] : innerAnnotations
3780
- };
3781
- if (!primitive) seenObjects.set(object, result);
3782
- return result;
3783
- };
3784
- //#endregion
3785
- //#region ../../node_modules/.pnpm/is-what@4.1.16/node_modules/is-what/dist/index.js
3786
- function getType(payload) {
3787
- return Object.prototype.toString.call(payload).slice(8, -1);
3788
- }
3789
- function isArray(payload) {
3790
- return getType(payload) === "Array";
3791
- }
3792
- function isPlainObject(payload) {
3793
- if (getType(payload) !== "Object") return false;
3794
- const prototype = Object.getPrototypeOf(payload);
3795
- return !!prototype && prototype.constructor === Object && prototype === Object.prototype;
3796
- }
3797
- function isNull(payload) {
3798
- return getType(payload) === "Null";
3799
- }
3800
- function isOneOf(a, b, c, d, e) {
3801
- return (value) => a(value) || b(value) || !!c && c(value) || !!d && d(value) || !!e && e(value);
3802
- }
3803
- function isUndefined(payload) {
3804
- return getType(payload) === "Undefined";
3805
- }
3806
- isOneOf(isNull, isUndefined);
3807
- //#endregion
3808
- //#region ../../node_modules/.pnpm/copy-anything@3.0.5/node_modules/copy-anything/dist/index.js
3809
- function assignProp(carry, key, newVal, originalObject, includeNonenumerable) {
3810
- const propType = {}.propertyIsEnumerable.call(originalObject, key) ? "enumerable" : "nonenumerable";
3811
- if (propType === "enumerable") carry[key] = newVal;
3812
- if (includeNonenumerable && propType === "nonenumerable") Object.defineProperty(carry, key, {
3813
- value: newVal,
3814
- enumerable: false,
3815
- writable: true,
3816
- configurable: true
3817
- });
3818
- }
3819
- function copy(target, options = {}) {
3820
- if (isArray(target)) return target.map((item) => copy(item, options));
3821
- if (!isPlainObject(target)) return target;
3822
- const props = Object.getOwnPropertyNames(target);
3823
- const symbols = Object.getOwnPropertySymbols(target);
3824
- return [...props, ...symbols].reduce((carry, key) => {
3825
- if (isArray(options.props) && !options.props.includes(key)) return carry;
3826
- const val = target[key];
3827
- assignProp(carry, key, copy(val, options), target, options.nonenumerable);
3828
- return carry;
3829
- }, {});
3830
- }
3831
- //#endregion
3832
- //#region ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/index.js
3833
- var SuperJSON = class {
3834
- /**
3835
- * @param dedupeReferentialEqualities If true, SuperJSON will make sure only one instance of referentially equal objects are serialized and the rest are replaced with `null`.
3836
- */
3837
- constructor({ dedupe = false } = {}) {
3838
- this.classRegistry = new ClassRegistry();
3839
- this.symbolRegistry = new Registry((s) => s.description ?? "");
3840
- this.customTransformerRegistry = new CustomTransformerRegistry();
3841
- this.allowedErrorProps = [];
3842
- this.dedupe = dedupe;
3843
- }
3844
- serialize(object) {
3845
- const identities = /* @__PURE__ */ new Map();
3846
- const output = walker(object, identities, this, this.dedupe);
3847
- const res = { json: output.transformedValue };
3848
- if (output.annotations) res.meta = {
3849
- ...res.meta,
3850
- values: output.annotations
3851
- };
3852
- const equalityAnnotations = generateReferentialEqualityAnnotations(identities, this.dedupe);
3853
- if (equalityAnnotations) res.meta = {
3854
- ...res.meta,
3855
- referentialEqualities: equalityAnnotations
3856
- };
3857
- return res;
3858
- }
3859
- deserialize(payload) {
3860
- const { json, meta } = payload;
3861
- let result = copy(json);
3862
- if (meta?.values) result = applyValueAnnotations(result, meta.values, this);
3863
- if (meta?.referentialEqualities) result = applyReferentialEqualityAnnotations(result, meta.referentialEqualities);
3864
- return result;
3865
- }
3866
- stringify(object) {
3867
- return JSON.stringify(this.serialize(object));
3868
- }
3869
- parse(string) {
3870
- return this.deserialize(JSON.parse(string));
3871
- }
3872
- registerClass(v, options) {
3873
- this.classRegistry.register(v, options);
3874
- }
3875
- registerSymbol(v, identifier) {
3876
- this.symbolRegistry.register(v, identifier);
3877
- }
3878
- registerCustom(transformer, name) {
3879
- this.customTransformerRegistry.register({
3880
- name,
3881
- ...transformer
3882
- });
3883
- }
3884
- allowErrorProps(...props) {
3885
- this.allowedErrorProps.push(...props);
3886
- }
3887
- };
3888
- SuperJSON.defaultInstance = new SuperJSON();
3889
- SuperJSON.serialize = SuperJSON.defaultInstance.serialize.bind(SuperJSON.defaultInstance);
3890
- SuperJSON.deserialize = SuperJSON.defaultInstance.deserialize.bind(SuperJSON.defaultInstance);
3891
- SuperJSON.stringify = SuperJSON.defaultInstance.stringify.bind(SuperJSON.defaultInstance);
3892
- SuperJSON.parse = SuperJSON.defaultInstance.parse.bind(SuperJSON.defaultInstance);
3893
- SuperJSON.registerClass = SuperJSON.defaultInstance.registerClass.bind(SuperJSON.defaultInstance);
3894
- SuperJSON.registerSymbol = SuperJSON.defaultInstance.registerSymbol.bind(SuperJSON.defaultInstance);
3895
- SuperJSON.registerCustom = SuperJSON.defaultInstance.registerCustom.bind(SuperJSON.defaultInstance);
3896
- SuperJSON.allowErrorProps = SuperJSON.defaultInstance.allowErrorProps.bind(SuperJSON.defaultInstance);
3897
- SuperJSON.serialize;
3898
- SuperJSON.deserialize;
3899
- SuperJSON.stringify;
3900
- SuperJSON.parse;
3901
- SuperJSON.registerClass;
3902
- SuperJSON.registerCustom;
3903
- SuperJSON.registerSymbol;
3904
- SuperJSON.allowErrorProps;
3905
- //#endregion
3906
- //#region ../devtools-kit/src/messaging/index.ts
3907
- target.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__ ??= [];
3908
- target.__VUE_DEVTOOLS_KIT_RPC_CLIENT__ ??= null;
3909
- target.__VUE_DEVTOOLS_KIT_RPC_SERVER__ ??= null;
3910
- target.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__ ??= null;
3911
- target.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__ ??= null;
3912
- target.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__ ??= null;
3913
- //#endregion
3914
1771
  export { addCustomCommand, addCustomTab, onDevToolsClientConnected, onDevToolsConnected, removeCustomCommand, setupDevToolsPlugin, setupDevToolsPlugin as setupDevtoolsPlugin };