@emailmaker/emailmaker 1.0.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.
Files changed (344) hide show
  1. package/README.md +188 -0
  2. package/README_eng.md +195 -0
  3. package/android-chrome-192x192.png +0 -0
  4. package/android-chrome-512x512.png +0 -0
  5. package/apple-touch-icon-b.png +0 -0
  6. package/apple-touch-icon.png +0 -0
  7. package/asset-manifest.json +207 -0
  8. package/css.worker.js +2 -0
  9. package/css.worker.js.LICENSE.txt +6 -0
  10. package/editor.worker.js +1 -0
  11. package/emailmaker-esm.js +1 -0
  12. package/emailmaker.d.ts +978 -0
  13. package/emailmaker.js +1 -0
  14. package/favicon-16x16.png +0 -0
  15. package/favicon-32x32.png +0 -0
  16. package/favicon-b.ico +0 -0
  17. package/favicon.ico +0 -0
  18. package/html.worker.js +2 -0
  19. package/html.worker.js.LICENSE.txt +14 -0
  20. package/icon-192.png +0 -0
  21. package/icon-512.png +0 -0
  22. package/icon.svg +2 -0
  23. package/iframe/css/line-awesome/line-awesome.min.css +2 -0
  24. package/iframe/css/line-awesome/line-awesome.min.css.js +0 -0
  25. package/iframe/css/sandbox-dark.css +301 -0
  26. package/iframe/css/sandbox-dark.css.js +0 -0
  27. package/iframe/css/sandbox-darktheme.css +234 -0
  28. package/iframe/css/sandbox-darktheme.css.js +0 -0
  29. package/iframe/css/sandbox-light.css +197 -0
  30. package/iframe/css/sandbox-light.css.js +0 -0
  31. package/iframe/css/sandbox.css +1553 -0
  32. package/iframe/css/sandbox.css.js +0 -0
  33. package/iframe/css/sandbox.locale.en_en.css +16 -0
  34. package/iframe/css/sandbox.locale.en_en.css.js +0 -0
  35. package/iframe/css/sandbox.locale.ru_ru.css +16 -0
  36. package/iframe/css/sandbox.locale.ru_ru.css.js +0 -0
  37. package/iframe/fonts/line-awesome/la-solid-900.ttf +0 -0
  38. package/iframe/fonts/line-awesome/la-solid-900.woff +0 -0
  39. package/iframe/fonts/line-awesome/la-solid-900.woff2 +0 -0
  40. package/iframe/iframe-eblock.5ad84761d0d28cf7389f.html +18 -0
  41. package/iframe/iframe.5ad84761d0d28cf7389f.html +20 -0
  42. package/iframe/iframe.html +33 -0
  43. package/iframe/img/drag-insert.svg +5 -0
  44. package/iframe/img/icon-code.svg +10 -0
  45. package/iframe/img/icon-img.svg +10 -0
  46. package/iframe/img/left-arrow.svg +3 -0
  47. package/iframe/img/loader-1-dark.gif +0 -0
  48. package/iframe/img/loader-1-light.gif +0 -0
  49. package/iframe/js/cssbeautify.js +1 -0
  50. package/iframe/js/csso.min.js +1 -0
  51. package/iframe/js/emmet-monaco.min.js +2 -0
  52. package/iframe/js/emmet-monaco.min.js.LICENSE.txt +14 -0
  53. package/iframe/js/iframeResizer.contentWindow.min.js +2 -0
  54. package/iframe/js/iframeResizer.contentWindow.min.js.LICENSE.txt +7 -0
  55. package/iframe/js/sandbox.locale.en_us.js +1 -0
  56. package/iframe/js/sandbox.locale.ru_ru.js +1 -0
  57. package/iframe/js/typograf/typograf.all.min.js +2 -0
  58. package/iframe/js/typograf/typograf.all.min.js.LICENSE.txt +1 -0
  59. package/iframe/sandbox-eblock.js +1 -0
  60. package/iframe/sandbox-eblock.js.LICENSE.txt +10 -0
  61. package/iframe/sandbox.js +1 -0
  62. package/iframe/sandbox.js.LICENSE.txt +8 -0
  63. package/images/video-playButtons/youtube_red.png +0 -0
  64. package/json.worker.js +2 -0
  65. package/json.worker.js.LICENSE.txt +6 -0
  66. package/manifest-b.json +16 -0
  67. package/manifest.json +17 -0
  68. package/package.json +10 -0
  69. package/plugin.html +115 -0
  70. package/plugin_default.html +56 -0
  71. package/plugin_s.html +31 -0
  72. package/react/index.d.ts +11 -0
  73. package/react/index.jsx +34 -0
  74. package/robots.txt +3 -0
  75. package/static/css/2859.3f78309e.css +1 -0
  76. package/static/css/4225.7ff43163.css +1 -0
  77. package/static/css/4872.36457ae6.css +1 -0
  78. package/static/css/9002.f81f3603.css +1 -0
  79. package/static/js/111.cbd98290.chunk.js +2 -0
  80. package/static/js/111.cbd98290.chunk.js.LICENSE.txt +6 -0
  81. package/static/js/1115.fb08b320.chunk.js +2 -0
  82. package/static/js/1115.fb08b320.chunk.js.LICENSE.txt +6 -0
  83. package/static/js/1247.6885a0da.chunk.js +2 -0
  84. package/static/js/1247.6885a0da.chunk.js.LICENSE.txt +6 -0
  85. package/static/js/1375.9309af3d.chunk.js +2 -0
  86. package/static/js/1375.9309af3d.chunk.js.LICENSE.txt +6 -0
  87. package/static/js/1727.05b807df.chunk.js +2 -0
  88. package/static/js/1727.05b807df.chunk.js.LICENSE.txt +6 -0
  89. package/static/js/1863.7fa7c875.chunk.js +2 -0
  90. package/static/js/1863.7fa7c875.chunk.js.LICENSE.txt +6 -0
  91. package/static/js/2095.35960898.chunk.js +2 -0
  92. package/static/js/2095.35960898.chunk.js.LICENSE.txt +6 -0
  93. package/static/js/215.184294a2.chunk.js +2 -0
  94. package/static/js/215.184294a2.chunk.js.LICENSE.txt +6 -0
  95. package/static/js/2175.7bfdf72e.chunk.js +2 -0
  96. package/static/js/2175.7bfdf72e.chunk.js.LICENSE.txt +6 -0
  97. package/static/js/223.86871df9.chunk.js +2 -0
  98. package/static/js/223.86871df9.chunk.js.LICENSE.txt +6 -0
  99. package/static/js/255.96cc3f0a.chunk.js +2 -0
  100. package/static/js/255.96cc3f0a.chunk.js.LICENSE.txt +6 -0
  101. package/static/js/2777.93e2f4b9.chunk.js +2 -0
  102. package/static/js/2777.93e2f4b9.chunk.js.LICENSE.txt +6 -0
  103. package/static/js/2799.a8352a8e.chunk.js +2 -0
  104. package/static/js/2799.a8352a8e.chunk.js.LICENSE.txt +6 -0
  105. package/static/js/2807.13d244f7.js +2 -0
  106. package/static/js/2807.13d244f7.js.LICENSE.txt +51 -0
  107. package/static/js/2859.b9caeb15.js +1 -0
  108. package/static/js/2959.37c71ed2.chunk.js +2 -0
  109. package/static/js/2959.37c71ed2.chunk.js.LICENSE.txt +6 -0
  110. package/static/js/3.cc80fb69.chunk.js +2 -0
  111. package/static/js/3.cc80fb69.chunk.js.LICENSE.txt +6 -0
  112. package/static/js/303.4b451722.chunk.js +2 -0
  113. package/static/js/303.4b451722.chunk.js.LICENSE.txt +6 -0
  114. package/static/js/3095.27a8a7ce.chunk.js +2 -0
  115. package/static/js/3095.27a8a7ce.chunk.js.LICENSE.txt +6 -0
  116. package/static/js/3116.b4e4c747.chunk.js +2 -0
  117. package/static/js/3116.b4e4c747.chunk.js.LICENSE.txt +6 -0
  118. package/static/js/33.7087137f.chunk.js +2 -0
  119. package/static/js/33.7087137f.chunk.js.LICENSE.txt +6 -0
  120. package/static/js/3321.3369560d.chunk.js +2 -0
  121. package/static/js/3321.3369560d.chunk.js.LICENSE.txt +6 -0
  122. package/static/js/351.800cfa64.chunk.js +2 -0
  123. package/static/js/351.800cfa64.chunk.js.LICENSE.txt +10 -0
  124. package/static/js/363.36407050.chunk.js +2 -0
  125. package/static/js/363.36407050.chunk.js.LICENSE.txt +6 -0
  126. package/static/js/3756.4539bf2a.chunk.js +2 -0
  127. package/static/js/3756.4539bf2a.chunk.js.LICENSE.txt +6 -0
  128. package/static/js/3887.1d2dfdb9.chunk.js +2 -0
  129. package/static/js/3887.1d2dfdb9.chunk.js.LICENSE.txt +6 -0
  130. package/static/js/4123.3cb83836.chunk.js +2 -0
  131. package/static/js/4123.3cb83836.chunk.js.LICENSE.txt +6 -0
  132. package/static/js/4225.e7602269.js +2 -0
  133. package/static/js/4225.e7602269.js.LICENSE.txt +8 -0
  134. package/static/js/4311.af4a59a5.chunk.js +2 -0
  135. package/static/js/4311.af4a59a5.chunk.js.LICENSE.txt +6 -0
  136. package/static/js/4459.b6de1b05.chunk.js +2 -0
  137. package/static/js/4459.b6de1b05.chunk.js.LICENSE.txt +6 -0
  138. package/static/js/4461.371ffb79.chunk.js +2 -0
  139. package/static/js/4461.371ffb79.chunk.js.LICENSE.txt +6 -0
  140. package/static/js/4501.6e4ba4d8.js +2 -0
  141. package/static/js/4501.6e4ba4d8.js.LICENSE.txt +42 -0
  142. package/static/js/4791.c9177129.chunk.js +2 -0
  143. package/static/js/4791.c9177129.chunk.js.LICENSE.txt +6 -0
  144. package/static/js/4872.a0e5cb2b.js +2 -0
  145. package/static/js/4872.a0e5cb2b.js.LICENSE.txt +200 -0
  146. package/static/js/4879.8556f136.chunk.js +2 -0
  147. package/static/js/4879.8556f136.chunk.js.LICENSE.txt +6 -0
  148. package/static/js/4932.6c513f63.chunk.js +2 -0
  149. package/static/js/4932.6c513f63.chunk.js.LICENSE.txt +6 -0
  150. package/static/js/5051.b9a57eb1.chunk.js +2 -0
  151. package/static/js/5051.b9a57eb1.chunk.js.LICENSE.txt +6 -0
  152. package/static/js/5068.5d29e1a9.chunk.js +1 -0
  153. package/static/js/5227.6c918241.chunk.js +2 -0
  154. package/static/js/5227.6c918241.chunk.js.LICENSE.txt +6 -0
  155. package/static/js/5293.7e051b80.chunk.js +2 -0
  156. package/static/js/5293.7e051b80.chunk.js.LICENSE.txt +6 -0
  157. package/static/js/5423.bddd4a43.chunk.js +2 -0
  158. package/static/js/5423.bddd4a43.chunk.js.LICENSE.txt +6 -0
  159. package/static/js/543.82f27022.chunk.js +2 -0
  160. package/static/js/543.82f27022.chunk.js.LICENSE.txt +6 -0
  161. package/static/js/5535.3244c148.chunk.js +2 -0
  162. package/static/js/5535.3244c148.chunk.js.LICENSE.txt +6 -0
  163. package/static/js/5613.62288e00.chunk.js +2 -0
  164. package/static/js/5613.62288e00.chunk.js.LICENSE.txt +6 -0
  165. package/static/js/5615.6ccde06b.chunk.js +2 -0
  166. package/static/js/5615.6ccde06b.chunk.js.LICENSE.txt +6 -0
  167. package/static/js/5693.3d4fe88d.chunk.js +2 -0
  168. package/static/js/5693.3d4fe88d.chunk.js.LICENSE.txt +6 -0
  169. package/static/js/5763.37c30999.chunk.js +2 -0
  170. package/static/js/5763.37c30999.chunk.js.LICENSE.txt +6 -0
  171. package/static/js/5919.dd3128af.chunk.js +2 -0
  172. package/static/js/5919.dd3128af.chunk.js.LICENSE.txt +6 -0
  173. package/static/js/6009.f189e5ae.chunk.js +2 -0
  174. package/static/js/6009.f189e5ae.chunk.js.LICENSE.txt +6 -0
  175. package/static/js/6447.cfdb8875.chunk.js +2 -0
  176. package/static/js/6447.cfdb8875.chunk.js.LICENSE.txt +6 -0
  177. package/static/js/6639.bbbbe601.chunk.js +2 -0
  178. package/static/js/6639.bbbbe601.chunk.js.LICENSE.txt +6 -0
  179. package/static/js/6675.3a2d412d.chunk.js +2 -0
  180. package/static/js/6675.3a2d412d.chunk.js.LICENSE.txt +6 -0
  181. package/static/js/6713.b7412fee.chunk.js +2 -0
  182. package/static/js/6713.b7412fee.chunk.js.LICENSE.txt +6 -0
  183. package/static/js/6735.a97baca4.chunk.js +2 -0
  184. package/static/js/6735.a97baca4.chunk.js.LICENSE.txt +6 -0
  185. package/static/js/6901.40d177c8.chunk.js +1 -0
  186. package/static/js/6933.74b38c02.chunk.js +2 -0
  187. package/static/js/6933.74b38c02.chunk.js.LICENSE.txt +6 -0
  188. package/static/js/6987.76422d40.js +1 -0
  189. package/static/js/7073.605ee411.chunk.js +2 -0
  190. package/static/js/7073.605ee411.chunk.js.LICENSE.txt +6 -0
  191. package/static/js/7119.ca1d70c7.chunk.js +2 -0
  192. package/static/js/7119.ca1d70c7.chunk.js.LICENSE.txt +6 -0
  193. package/static/js/7175.5dd62a53.chunk.js +2 -0
  194. package/static/js/7175.5dd62a53.chunk.js.LICENSE.txt +6 -0
  195. package/static/js/7241.0040848f.chunk.js +2 -0
  196. package/static/js/7241.0040848f.chunk.js.LICENSE.txt +6 -0
  197. package/static/js/7260.df86f79c.chunk.js +2 -0
  198. package/static/js/7260.df86f79c.chunk.js.LICENSE.txt +6 -0
  199. package/static/js/7473.703ab781.chunk.js +2 -0
  200. package/static/js/7473.703ab781.chunk.js.LICENSE.txt +6 -0
  201. package/static/js/7533.ff47b1c6.chunk.js +2 -0
  202. package/static/js/7533.ff47b1c6.chunk.js.LICENSE.txt +6 -0
  203. package/static/js/7567.5b36aa1e.chunk.js +2 -0
  204. package/static/js/7567.5b36aa1e.chunk.js.LICENSE.txt +6 -0
  205. package/static/js/7568.abd309a5.chunk.js +2 -0
  206. package/static/js/7568.abd309a5.chunk.js.LICENSE.txt +6 -0
  207. package/static/js/7663.9dadc8ad.chunk.js +2 -0
  208. package/static/js/7663.9dadc8ad.chunk.js.LICENSE.txt +6 -0
  209. package/static/js/779.7ec500b4.chunk.js +2 -0
  210. package/static/js/779.7ec500b4.chunk.js.LICENSE.txt +6 -0
  211. package/static/js/7803.0edbb2ab.chunk.js +2 -0
  212. package/static/js/7803.0edbb2ab.chunk.js.LICENSE.txt +6 -0
  213. package/static/js/7855.90402a9a.chunk.js +2 -0
  214. package/static/js/7855.90402a9a.chunk.js.LICENSE.txt +6 -0
  215. package/static/js/7878.a2ba845f.chunk.js +2 -0
  216. package/static/js/7878.a2ba845f.chunk.js.LICENSE.txt +6 -0
  217. package/static/js/7963.8d0e0875.chunk.js +2 -0
  218. package/static/js/7963.8d0e0875.chunk.js.LICENSE.txt +6 -0
  219. package/static/js/7999.0ef327fe.chunk.js +2 -0
  220. package/static/js/7999.0ef327fe.chunk.js.LICENSE.txt +6 -0
  221. package/static/js/8287.60007a30.chunk.js +2 -0
  222. package/static/js/8287.60007a30.chunk.js.LICENSE.txt +6 -0
  223. package/static/js/8525.164b4ef1.chunk.js +2 -0
  224. package/static/js/8525.164b4ef1.chunk.js.LICENSE.txt +6 -0
  225. package/static/js/8614.4df07be3.chunk.js +2 -0
  226. package/static/js/8614.4df07be3.chunk.js.LICENSE.txt +6 -0
  227. package/static/js/863.6162bd02.chunk.js +2 -0
  228. package/static/js/863.6162bd02.chunk.js.LICENSE.txt +6 -0
  229. package/static/js/8675.4011b507.chunk.js +2 -0
  230. package/static/js/8675.4011b507.chunk.js.LICENSE.txt +6 -0
  231. package/static/js/8799.eaf2f1c6.chunk.js +2 -0
  232. package/static/js/8799.eaf2f1c6.chunk.js.LICENSE.txt +6 -0
  233. package/static/js/8871.25143e00.chunk.js +2 -0
  234. package/static/js/8871.25143e00.chunk.js.LICENSE.txt +6 -0
  235. package/static/js/8991.19d7f941.chunk.js +2 -0
  236. package/static/js/8991.19d7f941.chunk.js.LICENSE.txt +6 -0
  237. package/static/js/9002.6c79bc92.js +1 -0
  238. package/static/js/9059.695b4670.chunk.js +2 -0
  239. package/static/js/9059.695b4670.chunk.js.LICENSE.txt +6 -0
  240. package/static/js/9137.564a2d8b.chunk.js +2 -0
  241. package/static/js/9137.564a2d8b.chunk.js.LICENSE.txt +6 -0
  242. package/static/js/9199.9d74e16f.chunk.js +2 -0
  243. package/static/js/9199.9d74e16f.chunk.js.LICENSE.txt +6 -0
  244. package/static/js/9225.25bc13dc.chunk.js +2 -0
  245. package/static/js/9225.25bc13dc.chunk.js.LICENSE.txt +6 -0
  246. package/static/js/9368.cc07f295.js +1 -0
  247. package/static/js/9503.80f871a1.chunk.js +2 -0
  248. package/static/js/9503.80f871a1.chunk.js.LICENSE.txt +6 -0
  249. package/static/js/9541.7d3756bf.js +1 -0
  250. package/static/js/9655.2e8d4a8e.chunk.js +2 -0
  251. package/static/js/9655.2e8d4a8e.chunk.js.LICENSE.txt +6 -0
  252. package/static/js/9823.a7ba133e.chunk.js +2 -0
  253. package/static/js/9823.a7ba133e.chunk.js.LICENSE.txt +6 -0
  254. package/static/js/9875.3b739db7.js +2 -0
  255. package/static/js/9875.3b739db7.js.LICENSE.txt +86 -0
  256. package/static/js/9935.f14200e3.chunk.js +2 -0
  257. package/static/js/9935.f14200e3.chunk.js.LICENSE.txt +6 -0
  258. package/static/js/ant-locale/locale0.bc9eb989.chunk.js +1 -0
  259. package/static/js/ant-locale/locale1.79afa8d5.chunk.js +1 -0
  260. package/static/js/ant-locale/locale10.931ba183.chunk.js +1 -0
  261. package/static/js/ant-locale/locale11.7c905a2e.chunk.js +1 -0
  262. package/static/js/ant-locale/locale13.8c7e33f9.chunk.js +1 -0
  263. package/static/js/ant-locale/locale14.a6d2b694.chunk.js +1 -0
  264. package/static/js/ant-locale/locale15.e521e6c8.chunk.js +1 -0
  265. package/static/js/ant-locale/locale16.6bf080c9.chunk.js +1 -0
  266. package/static/js/ant-locale/locale17.8db23aba.chunk.js +1 -0
  267. package/static/js/ant-locale/locale18.2378252e.chunk.js +1 -0
  268. package/static/js/ant-locale/locale19.a9518e0a.chunk.js +1 -0
  269. package/static/js/ant-locale/locale2.49423b7a.chunk.js +1 -0
  270. package/static/js/ant-locale/locale20.4195bdf5.chunk.js +1 -0
  271. package/static/js/ant-locale/locale21.479ba0df.chunk.js +1 -0
  272. package/static/js/ant-locale/locale22.4c3baa93.chunk.js +1 -0
  273. package/static/js/ant-locale/locale23.58be86ea.chunk.js +1 -0
  274. package/static/js/ant-locale/locale24.a44b9124.chunk.js +1 -0
  275. package/static/js/ant-locale/locale25.efe23431.chunk.js +1 -0
  276. package/static/js/ant-locale/locale26.52c7a0fc.chunk.js +1 -0
  277. package/static/js/ant-locale/locale27.cc9719d7.chunk.js +1 -0
  278. package/static/js/ant-locale/locale28.8b89909a.chunk.js +1 -0
  279. package/static/js/ant-locale/locale3.547b47e0.chunk.js +1 -0
  280. package/static/js/ant-locale/locale30.fb7b325a.chunk.js +1 -0
  281. package/static/js/ant-locale/locale31.2700fff5.chunk.js +1 -0
  282. package/static/js/ant-locale/locale32.27d17521.chunk.js +1 -0
  283. package/static/js/ant-locale/locale33.3f671b7f.chunk.js +1 -0
  284. package/static/js/ant-locale/locale34.6eea3a7c.chunk.js +1 -0
  285. package/static/js/ant-locale/locale35.1c169a8f.chunk.js +1 -0
  286. package/static/js/ant-locale/locale36.a0f5d209.chunk.js +1 -0
  287. package/static/js/ant-locale/locale37.d7a93cd8.chunk.js +1 -0
  288. package/static/js/ant-locale/locale38.a167fb02.chunk.js +1 -0
  289. package/static/js/ant-locale/locale39.88330df8.chunk.js +1 -0
  290. package/static/js/ant-locale/locale4.a14d4f60.chunk.js +1 -0
  291. package/static/js/ant-locale/locale40.26a0f7b4.chunk.js +1 -0
  292. package/static/js/ant-locale/locale41.2c575f45.chunk.js +1 -0
  293. package/static/js/ant-locale/locale42.bd705058.chunk.js +1 -0
  294. package/static/js/ant-locale/locale43.4c318c1e.chunk.js +1 -0
  295. package/static/js/ant-locale/locale44.ae6fc942.chunk.js +1 -0
  296. package/static/js/ant-locale/locale45.4fcc0acf.chunk.js +1 -0
  297. package/static/js/ant-locale/locale46.8d7fca54.chunk.js +1 -0
  298. package/static/js/ant-locale/locale47.6a8d9ee9.chunk.js +1 -0
  299. package/static/js/ant-locale/locale48.db4fb3e9.chunk.js +1 -0
  300. package/static/js/ant-locale/locale49.876e9846.chunk.js +1 -0
  301. package/static/js/ant-locale/locale5.179f1d8d.chunk.js +1 -0
  302. package/static/js/ant-locale/locale50.8d63ce0a.chunk.js +1 -0
  303. package/static/js/ant-locale/locale51.691274b8.chunk.js +1 -0
  304. package/static/js/ant-locale/locale52.b9a49d71.chunk.js +1 -0
  305. package/static/js/ant-locale/locale53.7a7722e3.chunk.js +1 -0
  306. package/static/js/ant-locale/locale54.0c75bb80.chunk.js +1 -0
  307. package/static/js/ant-locale/locale55.f5c0d904.chunk.js +1 -0
  308. package/static/js/ant-locale/locale56.bb2a06a4.chunk.js +1 -0
  309. package/static/js/ant-locale/locale57.648ebc5b.chunk.js +1 -0
  310. package/static/js/ant-locale/locale58.fd6a6d0e.chunk.js +1 -0
  311. package/static/js/ant-locale/locale59.05c85397.chunk.js +1 -0
  312. package/static/js/ant-locale/locale60.23e6b029.chunk.js +1 -0
  313. package/static/js/ant-locale/locale61.30ad8fdf.chunk.js +1 -0
  314. package/static/js/ant-locale/locale62.2ba4458e.chunk.js +1 -0
  315. package/static/js/ant-locale/locale63.e0e3072c.chunk.js +1 -0
  316. package/static/js/ant-locale/locale64.d9db34fb.chunk.js +1 -0
  317. package/static/js/ant-locale/locale65.aa10f18f.chunk.js +1 -0
  318. package/static/js/ant-locale/locale66.586f32ee.chunk.js +1 -0
  319. package/static/js/ant-locale/locale68.d2a63a32.chunk.js +1 -0
  320. package/static/js/ant-locale/locale69.b786c422.chunk.js +1 -0
  321. package/static/js/ant-locale/locale7.e847d0ec.chunk.js +1 -0
  322. package/static/js/ant-locale/locale70.75d26f29.chunk.js +1 -0
  323. package/static/js/ant-locale/locale71.e5c07b26.chunk.js +1 -0
  324. package/static/js/ant-locale/locale8.f139c7f8.chunk.js +1 -0
  325. package/static/js/ant-locale/locale9.b69465db.chunk.js +1 -0
  326. package/static/js/emailmaker_core.b4fb2394.js +1 -0
  327. package/static/js/mergeTags/locale0.d3379239.chunk.js +1 -0
  328. package/static/js/mergeTags/locale1.9462df85.chunk.js +1 -0
  329. package/static/media/codicon.f13d28f3.ttf +0 -0
  330. package/static/media/frame_dark.318d7ed5.png +0 -0
  331. package/static/media/frame_light.22a9b4ec.png +0 -0
  332. package/static/media/frame_template_gallery.85693b39.png +0 -0
  333. package/static/media/icon-border-radius.2a56b93a7711558098a622296b7ae2e1.svg +1 -0
  334. package/static/media/icon-create-block.0b077f4000bf7907b9ea871d28c7fb1e.svg +1 -0
  335. package/static/media/typewriter.c11b8204.png +0 -0
  336. package/translations.pot +3955 -0
  337. package/ts.worker.js +2 -0
  338. package/ts.worker.js.LICENSE.txt +21 -0
  339. package/vite/index.d.ts +11 -0
  340. package/vite/index.js +136 -0
  341. package/vite/mime-types.js +179 -0
  342. package/vite/utils.js +58 -0
  343. package/webpack/index.d.ts +12 -0
  344. package/webpack/index.js +109 -0
@@ -0,0 +1,2 @@
1
+ /*! For license information please see emmet-monaco.min.js.LICENSE.txt */
2
+ var emmetMonaco=function(e){"use strict";function t(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function n(e){return e>47&&e<58}function o(e,t,n){return n=n||90,(e&=-33)>=(t=t||65)&&e<=n}function r(e){return n(e)||i(e)}function i(e){return 95===e||o(e)}function s(e){return function(e){return 32===e||9===e||160===e}(e)||10===e||13===e}function a(e){return 39===e||34===e}class l{constructor(e,t,n){null==n&&"string"==typeof e&&(n=e.length),this.string=e,this.pos=this.start=t||0,this.end=n||0}eof(){return this.pos>=this.end}limit(e,t){return new l(this.string,e,t)}peek(){return this.string.charCodeAt(this.pos)}next(){if(this.pos<this.string.length)return this.string.charCodeAt(this.pos++)}eat(e){const t=this.peek(),n="function"==typeof e?e(t):t===e;return n&&this.next(),n}eatWhile(e){const t=this.pos;for(;!this.eof()&&this.eat(e););return this.pos!==t}backUp(e){this.pos-=e||1}current(){return this.substring(this.start,this.pos)}substring(e,t){return this.string.slice(e,t)}error(e,t=this.pos){return new u(`${e} at ${t+1}`,t,this.string)}}class u extends Error{constructor(e,t,n){super(e),this.pos=t,this.string=n}}function c(e){return e.tokens[e.pos]}function p(e){return e.tokens[e.pos++]}function f(e,t=e.start,n=e.pos){return e.tokens.slice(t,n)}function m(e){return e.pos<e.size}function d(e,t){const n=c(e);return!(!n||!t(n)||(e.pos++,0))}function b(e,t,n=c(e)){n&&null!=n.start&&(t+=` at ${n.start}`);const o=new Error(t);return o.pos=n&&n.start,o}function g(e,t){const n={type:"TokenGroup",elements:[]};let o,r=n;const i=[];for(;m(e)&&(o=y(e,t)||h(e,t));)if(r.elements.push(o),d(e,U))i.push(r),r=o;else{if(d(e,_))continue;if(d(e,M))do{i.length&&(r=i.pop())}while(d(e,M))}return n}function h(e,t){if(d(e,V)){const n=g(e,t);return C(p(e),"group",!1)&&(n.repeat=function(e){return T(c(e))?e.tokens[e.pos++]:void 0}(e)),n}}function y(e,t){let n;const o={type:"TokenElement",name:void 0,attributes:void 0,value:void 0,repeat:void 0,selfClose:!1,elements:[]};for(function(e,t){const n=e.pos;if(t.jsx&&d(e,L))for(;m(e);){const{pos:t}=e;if(!d(e,E)||!d(e,L)){e.pos=t;break}}for(;m(e)&&d(e,O););return e.pos!==n&&(e.start=n,!0)}(e,t)&&(o.name=f(e));m(e);)if(e.start=e.pos,o.repeat||B(o)||!d(e,T))if(!o.value&&z(e))o.value=j(e);else{if(!(n=v(e,"id",t)||v(e,"class",t)||x(e))){!B(o)&&d(e,R)&&(o.selfClose=!0,!o.repeat&&d(e,T)&&(o.repeat=e.tokens[e.pos-1]));break}o.attributes?o.attributes=o.attributes.concat(n):o.attributes=Array.isArray(n)?n.slice():[n]}else o.repeat=e.tokens[e.pos-1];return B(o)?void 0:o}function x(e){if(d(e,F)){const t=[];let n;for(;m(e);)if(n=k(e))t.push(n);else{if(d(e,W))break;if(!d(e,S))throw b(e,`Unexpected "${c(e).type}" token`)}return t}}function v(e,t,n){if(A(c(e),t)){e.pos++;const r={name:[(o=t,{type:"Literal",value:o})]};return n.jsx&&z(e)?(r.value=j(e),r.expression=!0):r.value=$(e)?f(e):void 0,r}var o}function k(e){return w(e)?{value:f(e)}:$(e,!0)?{name:f(e),value:d(e,N)&&(w(e)||$(e,!0))?f(e):void 0}:void 0}function w(e){const t=e.pos,n=c(e);if(q(n)){for(e.pos++;m(e);)if(q(p(e),n.single))return e.start=t,!0;throw b(e,"Unclosed quote",n)}return!1}function $(e,t){const n=e.pos,o={attribute:0,expression:0,group:0};for(;m(e);){const n=c(e);if(o.expression)C(n,"expression")&&(o[n.context]+=n.open?1:-1);else{if(q(n)||A(n)||S(n)||T(n))break;if(C(n)){if(!t)break;if(n.open)o[n.context]++;else{if(!o[n.context])break;o[n.context]--}}}e.pos++}return n!==e.pos&&(e.start=n,!0)}function z(e){const t=e.pos;if(d(e,I)){let n=0;for(;m(e);){const t=p(e);if(C(t,"expression"))if(t.open)n++;else{if(!n)break;n--}}return e.start=t,!0}return!1}function j(e){let t=e.start,n=e.pos;return C(e.tokens[t],"expression",!0)&&t++,C(e.tokens[n-1],"expression",!1)&&n--,f(e,t,n)}function C(e,t,n){return Boolean(e&&"Bracket"===e.type&&(!t||e.context===t)&&(null==n||e.open===n))}function A(e,t){return Boolean(e&&"Operator"===e.type&&(!t||e.operator===t))}function q(e,t){return Boolean(e&&"Quote"===e.type&&(null==t||e.single===t))}function S(e){return Boolean(e&&"WhiteSpace"===e.type)}function N(e){return A(e,"equal")}function T(e){return Boolean(e&&"Repeater"===e.type)}function L(e){if(function(e){return"Literal"===e.type}(e)){const t=e.value.charCodeAt(0);return t>=65&&t<=90}return!1}function O(e){return"Literal"===e.type||"RepeaterNumber"===e.type||"RepeaterPlaceholder"===e.type}function E(e){return A(e,"class")}function F(e){return C(e,"attribute",!0)}function W(e){return C(e,"attribute",!1)}function I(e){return C(e,"expression",!0)}function V(e){return C(e,"group",!0)}function B(e){return!e.name&&!e.value&&!e.attributes}function U(e){return A(e,"child")}function _(e){return A(e,"sibling")}function M(e){return A(e,"climb")}function R(e){return A(e,"close")}function P(e){return!!e.eat(92)&&(e.start=e.pos,e.eof()||e.pos++,!0)}function Q(e,t){return function(e,t){const r=e.pos;if((t.expression||t.attribute)&&e.eat(36)&&e.eat(123)){let t;e.start=e.pos;let i="";if(e.eatWhile(n)?(t=Number(e.current()),i=e.eat(58)?Z(e):""):o(e.peek())&&(i=Z(e)),e.eat(125))return{type:"Field",index:t,name:i,start:r,end:e.pos};throw e.error("Expecting }")}e.pos=r}(e,t)||function(e){const t=e.pos;if(e.eat(36)&&e.eat(35))return{type:"RepeaterPlaceholder",value:void 0,start:t,end:e.pos};e.pos=t}(e)||function(e){const t=e.pos;if(e.eatWhile(36)){const o=e.pos-t;let r=!1,i=1,s=0;if(e.eat(64)){for(;e.eat(94);)s++;r=e.eat(45),e.start=e.pos,e.eatWhile(n)&&(i=Number(e.current()))}return e.start=t,{type:"RepeaterNumber",size:o,reverse:r,base:i,parent:s,start:t,end:e.pos}}}(e)||function(e){const t=e.pos;if(e.eat(42)){e.start=e.pos;let o=1,r=!1;return e.eatWhile(n)?o=Number(e.current()):r=!0,{type:"Repeater",count:o,value:0,implicit:r,start:t,end:e.pos}}}(e)||function(e){const t=e.pos;if(e.eatWhile(s))return{type:"WhiteSpace",start:t,end:e.pos,value:e.substring(t,e.pos)}}(e)||function(e,t){const n=e.pos;let o="";for(;!e.eof();){if(P(e)){o+=e.current();continue}const n=e.peek();if(n===t.quote||36===n||X(n,t))break;if(t.expression&&125===n)break;if(!t.quote&&!t.expression){if(!t.attribute&&!J(n))break;if(D(n,t)||H(n,t)||a(n)||G(n))break}o+=e.string[e.pos++]}if(n!==e.pos)return e.start=n,{type:"Literal",value:o,start:n,end:e.pos}}(e,t)||function(e){const t=Y(e.peek());if(t)return{type:"Operator",operator:t,start:e.pos++,end:e.pos}}(e)||function(e){const t=e.peek();if(a(t))return{type:"Quote",single:39===t,start:e.pos++,end:e.pos}}(e)||function(e){const t=e.peek(),n=G(t);if(n)return{type:"Bracket",open:K(t),context:n,start:e.pos++,end:e.pos}}(e)}function Z(e){const t=[];for(e.start=e.pos;!e.eof();)if(e.eat(123))t.push(e.pos);else if(e.eat(125)){if(!t.length){e.pos--;break}t.pop()}else e.pos++;if(t.length)throw e.pos=t.pop(),e.error("Expecting }");return e.current()}function X(e,t){const n=Y(e);return!(!n||t.quote||t.expression||t.attribute&&"equal"!==n)}function D(e,t){return s(e)&&!t.expression}function H(e,t){return 42===e&&!t.attribute&&!t.expression}function G(e){return 40===e||41===e?"group":91===e||93===e?"attribute":123===e||125===e?"expression":void 0}function Y(e){return(62===e?"child":43===e&&"sibling")||94===e&&"climb"||46===e&&"class"||35===e&&"id"||47===e&&"close"||61===e&&"equal"||void 0}function K(e){return 123===e||91===e||40===e}function J(e){return r(e)||45===e||58===e||33===e}const ee={child:">",class:".",climb:"^",id:"#",equal:"=",close:"/",sibling:"+"},te={Literal:e=>e.value,Quote:e=>e.single?"'":'"',Bracket:e=>"attribute"===e.context?e.open?"[":"]":"expression"===e.context?e.open?"{":"}":e.open?"(":"}",Operator:e=>ee[e.operator],Field:(e,t)=>null!=e.index?e.name?`\${${e.index}:${e.name}}`:`\${${e.index}`:e.name?t.getVariable(e.name):"",RepeaterPlaceholder(e,t){let n;for(let e=t.repeaters.length-1;e>=0;e--)if(t.repeaters[e].implicit){n=t.repeaters[e];break}return t.inserted=!0,t.getText(n&&n.value)},RepeaterNumber(e,t){let n=1;const o=t.repeaters.length-1,r=t.repeaters[o];if(r&&(n=e.reverse?e.base+r.count-r.value-1:e.base+r.value,e.parent)){const i=Math.max(0,o-e.parent);if(i!==o){const e=t.repeaters[i];n+=r.count*e.value}}let i=String(n);for(;i.length<e.size;)i="0"+i;return i},WhiteSpace:e=>e.value};function ne(e,t){if(!te[e.type])throw new Error(`Unknown token ${e.type}`);return te[e.type](e,t)}const oe=/^((https?:|ftp:|file:)?\/\/|(www|ftp)\.)[^ ]*$/,re=/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,5}$/;function ie(e,t){let n=[];if(e.repeat){const o=e.repeat,r=Object.assign({},o);let i;r.count=r.implicit&&Array.isArray(t.text)?t.cleanText.length:r.count||1,t.repeaters.push(r);for(let o=0;o<r.count;o++){if(r.value=o,e.repeat=r,i=pe(e)?ae(e,t):se(e,t),r.implicit&&!t.inserted){const e=me(i),n=e&&de(e);n&&be(n,t.getText(r.value))}if(n=n.concat(i),--t.repeatGuard<=0)break}t.repeaters.pop(),e.repeat=o,r.implicit&&(t.inserted=!0)}else n=n.concat(pe(e)?ae(e,t):se(e,t));return n}function se(e,t){let n=[];const o={type:"AbbreviationNode",name:e.name&&ue(e.name,t),value:e.value&&ce(e.value,t),attributes:void 0,children:n,repeat:e.repeat&&Object.assign({},e.repeat),selfClosing:e.selfClose};let r=[o];for(const o of e.elements)n=n.concat(ie(o,t));if(e.attributes){o.attributes=[];for(const n of e.attributes)o.attributes.push(le(n,t))}return o.name||o.attributes||!o.value||o.value.some(fe)?o.children=n:r=r.concat(n),r}function ae(e,t){let n=[];for(const o of e.elements)n=n.concat(ie(o,t));return e.repeat&&(n=function(e,t){for(const n of e)n.repeat||(n.repeat=Object.assign({},t));return e}(n,e.repeat)),n}function le(e,t){let n,o=!1,r=!1,i=e.expression?"expression":"raw";const s=e.name&&ue(e.name,t);if(s&&"!"===s[0]&&(o=!0),s&&"."===s[s.length-1]&&(r=!0),e.value){const o=e.value.slice();if(q(o[0])){const e=o.shift();o.length&&me(o).type===e.type&&o.pop(),i=e.single?"singleQuote":"doubleQuote"}else C(o[0],"expression",!0)&&(i="expression",o.shift(),C(me(o),"expression",!1)&&o.pop());n=ce(o,t)}return{name:r||o?s.slice(o?1:0,r?-1:void 0):s,value:n,boolean:r,implied:o,valueType:i}}function ue(e,t){let n="";for(let o=0;o<e.length;o++)n+=ne(e[o],t);return n}function ce(e,t){const n=[];let o="";for(let r,i=0;i<e.length;i++)r=e[i],fe(r)?(o&&(n.push(o),o=""),n.push(r)):o+=ne(r,t);return o&&n.push(o),n}function pe(e){return"TokenGroup"===e.type}function fe(e){return"object"==typeof e&&"Field"===e.type&&null!=e.index}function me(e){return e[e.length-1]}function de(e){return e.children.length?de(me(e.children)):e}function be(e,t){e.value?"string"==typeof me(e.value)?e.value[e.value.length-1]+=t:e.value.push(t):e.value=[t]}function ge(e,t){try{return function(e,t={}){let n,o=!1;t.text&&(n=Array.isArray(t.text)?t.text.filter((e=>e.trim())):t.text);const r={type:"Abbreviation",children:ae(e,{inserted:!1,repeaters:[],text:t.text,cleanText:n,repeatGuard:t.maxRepeat||Number.POSITIVE_INFINITY,getText(e){var r;let i;if(o=!0,Array.isArray(t.text)){if(void 0!==e&&e>=0&&e<n.length)return n[e];i=void 0!==e?t.text[e]:t.text.join("\n")}else i=null!==(r=t.text)&&void 0!==r?r:"";return i},getVariable(e){const n=t.variables&&t.variables[e];return null!=n?n:e}})};if(null!=t.text&&!o){const e=de(me(r.children));if(e){const n=Array.isArray(t.text)?t.text.join("\n"):t.text;be(e,n),"a"===e.name&&t.href&&function(e,t){var n;let o="";oe.test(t)?(o=t,/\w+:/.test(o)||o.startsWith("//")||(o=`http://${o}`)):re.test(t)&&(o=`mailto:${t}`);const r=null===(n=e.attributes)||void 0===n?void 0:n.find((e=>"href"===e.name));r?r.value||(r.value=[o]):e.attributes=[{name:"href",value:[o],valueType:"doubleQuote"}]}(e,n)}}return r}(function(e,t={}){const n={tokens:o=e,start:0,pos:0,size:o.length};var o;const r=g(n,t);if(m(n))throw b(n,"Unexpected character");return r}("string"==typeof e?function(e){const t=new l(e),n=[],o={group:0,attribute:0,expression:0,quote:0};let r,i=0;for(;!t.eof();){if(i=t.peek(),r=Q(t,o),!r)throw t.error("Unexpected character");n.push(r),"Quote"===r.type?o.quote=i===o.quote?0:i:"Bracket"===r.type&&(o[r.context]+=r.open?1:-1)}return n}(e):e,t),t)}catch(t){throw t instanceof u&&"string"==typeof e&&(t.message+=`\n${e}\n${"-".repeat(t.pos)}^`),t}}function he(e,t){return function(e){const t=e.pos;if(e.eat(36)&&e.eat(123)){let r;e.start=e.pos;let i="";if(e.eatWhile(n)?(r=Number(e.current()),i=e.eat(58)?ye(e):""):o(e.peek())&&(i=ye(e)),e.eat(125))return{type:"Field",index:r,name:i,start:t,end:e.pos};throw e.error("Expecting }")}e.pos=t}(e)||function(e){const t=e.pos;if(function(e){const t=e.pos;e.eat(45);const o=e.pos,r=e.eatWhile(n),i=e.pos;if(e.eat(46)){const t=e.eatWhile(n);r||t||(e.pos=i)}return e.pos===o&&(e.pos=t),e.pos!==t}(e)){e.start=t;const n=e.current();return e.start=e.pos,e.eat(37)||e.eatWhile(i),{type:"NumberValue",value:Number(n),rawValue:n,unit:e.current(),start:t,end:e.pos}}}(e)||function(e){const t=e.pos;if(e.eat(35)){const n=e.pos;let o="",r="";if(e.eatWhile($e)?(o=e.substring(n,e.pos),r=ve(e)):e.eat(116)?(o="0",r=ve(e)||"0"):r=ve(e),o||r||e.eof()){const{r:n,g:i,b:s,a}=function(e,t){let n="0",o="0",r="0",i=Number(null!=t&&""!==t?t:1);if("t"===e)i=0;else switch(e.length){case 0:break;case 1:n=o=r=e+e;break;case 2:n=o=r=e;break;case 3:n=e[0]+e[0],o=e[1]+e[1],r=e[2]+e[2];break;default:n=(e+=e).slice(0,2),o=e.slice(2,4),r=e.slice(4,6)}return{r:parseInt(n,16),g:parseInt(o,16),b:parseInt(r,16),a:i}}(o,r);return{type:"ColorValue",r:n,g:i,b:s,a,raw:e.substring(t+1,e.pos),start:t,end:e.pos}}return xe(e,t)}e.pos=t}(e)||function(e){const t=e.peek(),n=e.pos;let o=!1;if(a(t)){for(e.pos++;!e.eof();){if(e.eat(t)){o=!0;break}e.pos++}return e.start=n,{type:"StringValue",value:e.substring(n+1,e.pos-(o?1:0)),quote:39===t?"single":"double",start:n,end:e.pos}}}(e)||function(e){const t=e.peek();if(function(e){return 40===e||41===e}(t))return{type:"Bracket",open:40===t,start:e.pos++,end:e.pos}}(e)||ke(e)||function(e){const t=e.pos;if(e.eatWhile(s))return{type:"WhiteSpace",start:t,end:e.pos}}(e)||function(e,t){const n=e.pos;if(e.eat(we)?e.eatWhile(n?ze:je):e.eat(i)?e.eatWhile(t?je:ze):(e.eat(46),e.eatWhile(je)),n!==e.pos)return e.start=n,xe(e,e.start=n)}(e,t)}function ye(e){const t=[];for(e.start=e.pos;!e.eof();)if(e.eat(123))t.push(e.pos);else if(e.eat(125)){if(!t.length){e.pos--;break}t.pop()}else e.pos++;if(t.length)throw e.pos=t.pop(),e.error("Expecting }");return e.current()}function xe(e,t=e.start,n=e.pos){return{type:"Literal",value:e.substring(t,n),start:t,end:n}}function ve(e){const t=e.pos;return e.eat(46)?(e.start=t,e.eatWhile(n)?e.current():"1"):""}function ke(e){const t=(43===(n=e.peek())?"+":33===n&&"!")||44===n&&","||58===n&&":"||45===n&&"-"||void 0;var n;if(t)return{type:"Operator",operator:t,start:e.pos++,end:e.pos}}function we(e){return 64===e||36===e}function $e(e){return n(e)||o(e,65,70)}function ze(e){return r(e)||45===e}function je(e){return i(e)||37===e||47===e}function Ce(e){return"ColorValue"===e.type||"NumberValue"===e.type&&!e.unit}function Ae(e,t){let n=0,o=0;for(;t.length;){const e=(r=t)[r.length-1];if("Literal"!==e.type&&"NumberValue"!==e.type)break;n=e.start,o||(o=e.end),t.pop()}var r;n!==o&&t.push(xe(e,n,o))}function qe(e){return e.tokens[e.pos]}function Se(e){return e.pos<e.size}function Ne(e,t){return!!t(qe(e))&&(e.pos++,!0)}function Te(e,t,n=qe(e)){n&&null!=n.start&&(t+=` at ${n.start}`);const o=new Error(t);return o.pos=n&&n.start,o}function Le(e,t){let n,o,r=!1;const i=[],s=qe(e),a=!!t.value;for(a||!Fe(s)||function(e){const t=e.tokens[e.pos],n=e.tokens[e.pos+1];return t&&n&&Fe(t)&&"Bracket"===n.type}(e)||(e.pos++,n=s.value,Ne(e,Ze)),a&&Ne(e,Be);Se(e);)if(Ne(e,Pe))r=!0;else if(o=Oe(e,a))i.push(o);else if(!Ne(e,Re))break;if(n||i.length||r)return{name:n,value:i,important:r}}function Oe(e,t){const n=[];let o,r;for(;Se(e);)if(o=qe(e),Qe(o))e.pos++,Fe(o)&&(r=Ee(e))?n.push({type:"FunctionCall",name:o.value,arguments:r}):n.push(o);else{if(!(Ze(o)||t&&Be(o)))break;e.pos++}return n.length?{type:"CSSValue",value:n}:void 0}function Ee(e){const t=e.pos;if(Ne(e,Ie)){const n=[];let o;for(;Se(e)&&!Ne(e,Ve);)if(o=Oe(e,!0))n.push(o);else if(!Ne(e,Be)&&!Ne(e,Me))throw Te(e,"Unexpected token");return e.start=t,n}}function Fe(e){return e&&"Literal"===e.type}function We(e,t){return e&&"Bracket"===e.type&&(null==t||e.open===t)}function Ie(e){return We(e,!0)}function Ve(e){return We(e,!1)}function Be(e){return e&&"WhiteSpace"===e.type}function Ue(e,t){return e&&"Operator"===e.type&&(!t||e.operator===t)}function _e(e){return Ue(e,"+")}function Me(e){return Ue(e,",")}function Re(e){return Me(e)}function Pe(e){return Ue(e,"!")}function Qe(e){return"StringValue"===e.type||"ColorValue"===e.type||"NumberValue"===e.type||"Literal"===e.type||"Field"===e.type}function Ze(e){return Ue(e,":")||Ue(e,"-")}function Xe(e,t){try{const n="string"==typeof e?function(e,t){let n,o=0;const r=new l(e),i=[];for(;!r.eof();){if(n=he(r,0===o&&!t),!n)throw r.error("Unexpected character");if("Bracket"===n.type&&(!o&&n.open&&Ae(r,i),o+=n.open?1:-1,o<0))throw r.error("Unexpected bracket",n.start);i.push(n),Ce(n)&&(n=ke(r))&&i.push(n)}return i}(e,t&&t.value):e;return function(e,t={}){const n=function(e){return{tokens:e,start:0,pos:0,size:e.length}}(e),o=[];let r;for(;Se(n);)if(r=Le(n,t))o.push(r);else if(!Ne(n,_e))throw Te(n,"Unexpected token");return o}(n,t)}catch(t){throw t instanceof u&&"string"==typeof e&&(t.message+=`\n${e}\n${"-".repeat(t.pos)}^`),t}}function De(e,t,n){if(e&&t){e.length&&n&&Ge(e,n);for(const n of t)Ge(e,n);return e}const o=e||t;return o&&o.slice()}function He(e,t,n){return e.name=t.name,n.options["output.reverseAttributes"]||(e.value=t.value),e.implied||(e.implied=t.implied),e.boolean||(e.boolean=t.boolean),"expression"!==e.valueType&&(e.valueType=t.valueType),e}function Ge(e,t){const n=e.length-1;"string"==typeof e[n]&&"string"==typeof t?e[n]+=t:e.push(t)}function Ye(e){let t;for(;e.children.length;)t=e,e=e.children[e.children.length-1];return{parent:t,node:e}}function Ke(e){return"AbbreviationNode"===e.type}function Je(e,t,n){let o=[];for(const n of e.children){const e=t(n);if(e){o=o.concat(e.children);const r=Ye(e);Ke(r.node)&&(r.node.children=r.node.children.concat(Je(n,t)))}else o.push(n),n.children=Je(n,t)}return e.children=o}function et(e,t){e.selfClosing&&(t.selfClosing=!0),null!=e.value&&(t.value=e.value),e.repeat&&(t.repeat=e.repeat)}function tt(e,t=0){return{options:e,value:"",level:t,offset:0,line:0,column:0}}function nt(e,t){ct(e,(0,e.options["output.text"])(t,e.offset,e.line,e.column))}function ot(e,t){const n=function(e){return e.split(/\r\n|\r|\n/g)}(t);for(let t=0,o=n.length-1;t<=o;t++)nt(e,n[t]),t!==o&&rt(e,!0)}function rt(e,t){const n=e.options["output.baseIndent"];nt(e,e.options["output.newline"]+n),e.line++,e.column=n.length,t&&function(e,t=e.level){nt(e,e.options["output.indent"].repeat(Math.max(t,0)))}(e,!0===t?e.level:t)}function it(e,t,n){ct(e,(0,e.options["output.field"])(t,n,e.offset,e.line,e.column))}function st(e,t){return pt(e,t.options["output.attributeCase"])}function at(e,t,n){return"expression"===e.valueType?n?"{":"}":"single"===t.options["output.attributeQuotes"]?"'":'"'}function lt(e,t){return e.boolean||t.options["output.booleanAttributes"].includes((e.name||"").toLowerCase())}function ut(e,t){return"string"==typeof e?t.options.inlineElements.includes(e.toLowerCase()):e.name?ut(e.name,t):Boolean(e.value&&!e.attributes)}function ct(e,t){e.value+=t,e.offset+=t.length,e.column+=t.length}function pt(e,t){return t?"upper"===t?e.toUpperCase():e.toLowerCase():e}const ft={p:"span",ul:"li",ol:"li",table:"tr",tr:"td",tbody:"tr",thead:"tr",tfoot:"tr",colgroup:"col",select:"option",optgroup:"option",audio:"source",video:"source",object:"param",map:"area"};function mt(e,t,n){const o=function(e){for(let t=e.length-1;t>=0;t--){const n=e[t];if(Ke(n))return n}}(t),r=n.context?n.context.name:"",i=((o?o.name:r)||"").toLowerCase();e.name=ft[i]||(ut(i,n)?"span":"div")}const dt={ru:{common:["далеко-далеко","за","словесными","горами","в стране","гласных","и согласных","живут","рыбные","тексты"],words:["вдали","от всех","они","буквенных","домах","на берегу","семантика","большого","языкового","океана","маленький","ручеек","даль","журчит","по всей","обеспечивает","ее","всеми","необходимыми","правилами","эта","парадигматическая","страна","которой","жаренные","предложения","залетают","прямо","рот","даже","всемогущая","пунктуация","не","имеет","власти","над","рыбными","текстами","ведущими","безорфографичный","образ","жизни","однажды","одна","маленькая","строчка","рыбного","текста","имени","lorem","ipsum","решила","выйти","большой","мир","грамматики","великий","оксмокс","предупреждал","о","злых","запятых","диких","знаках","вопроса","коварных","точках","запятой","но","текст","дал","сбить","себя","толку","он","собрал","семь","своих","заглавных","букв","подпоясал","инициал","за","пояс","пустился","дорогу","взобравшись","первую","вершину","курсивных","гор","бросил","последний","взгляд","назад","силуэт","своего","родного","города","буквоград","заголовок","деревни","алфавит","подзаголовок","своего","переулка","грустный","реторический","вопрос","скатился","его","щеке","продолжил","свой","путь","дороге","встретил","рукопись","она","предупредила","моей","все","переписывается","несколько","раз","единственное","что","меня","осталось","это","приставка","возвращайся","ты","лучше","свою","безопасную","страну","послушавшись","рукописи","наш","продолжил","свой","путь","вскоре","ему","повстречался","коварный","составитель","рекламных","текстов","напоивший","языком","речью","заманивший","свое","агентство","которое","использовало","снова","снова","своих","проектах","если","переписали","то","живет","там","до","сих","пор"]},sp:{common:["mujer","uno","dolor","más","de","poder","mismo","si"],words:["ejercicio","preferencia","perspicacia","laboral","paño","suntuoso","molde","namibia","planeador","mirar","demás","oficinista","excepción","odio","consecuencia","casi","auto","chicharra","velo","elixir","ataque","no","odio","temporal","cuórum","dignísimo","facilismo","letra","nihilista","expedición","alma","alveolar","aparte","león","animal","como","paria","belleza","modo","natividad","justo","ataque","séquito","pillo","sed","ex","y","voluminoso","temporalidad","verdades","racional","asunción","incidente","marejada","placenta","amanecer","fuga","previsor","presentación","lejos","necesariamente","sospechoso","adiposidad","quindío","pócima","voluble","débito","sintió","accesorio","falda","sapiencia","volutas","queso","permacultura","laudo","soluciones","entero","pan","litro","tonelada","culpa","libertario","mosca","dictado","reincidente","nascimiento","dolor","escolar","impedimento","mínima","mayores","repugnante","dulce","obcecado","montaña","enigma","total","deletéreo","décima","cábala","fotografía","dolores","molesto","olvido","paciencia","resiliencia","voluntad","molestias","magnífico","distinción","ovni","marejada","cerro","torre","y","abogada","manantial","corporal","agua","crepúsculo","ataque","desierto","laboriosamente","angustia","afortunado","alma","encefalograma","materialidad","cosas","o","renuncia","error","menos","conejo","abadía","analfabeto","remo","fugacidad","oficio","en","almácigo","vos","pan","represión","números","triste","refugiado","trote","inventor","corchea","repelente","magma","recusado","patrón","explícito","paloma","síndrome","inmune","autoinmune","comodidad","ley","vietnamita","demonio","tasmania","repeler","apéndice","arquitecto","columna","yugo","computador","mula","a","propósito","fantasía","alias","rayo","tenedor","deleznable","ventana","cara","anemia","corrupto"]},latin:{common:["lorem","ipsum","dolor","sit","amet","consectetur","adipisicing","elit"],words:["exercitationem","perferendis","perspiciatis","laborum","eveniet","sunt","iure","nam","nobis","eum","cum","officiis","excepturi","odio","consectetur","quasi","aut","quisquam","vel","eligendi","itaque","non","odit","tempore","quaerat","dignissimos","facilis","neque","nihil","expedita","vitae","vero","ipsum","nisi","animi","cumque","pariatur","velit","modi","natus","iusto","eaque","sequi","illo","sed","ex","et","voluptatibus","tempora","veritatis","ratione","assumenda","incidunt","nostrum","placeat","aliquid","fuga","provident","praesentium","rem","necessitatibus","suscipit","adipisci","quidem","possimus","voluptas","debitis","sint","accusantium","unde","sapiente","voluptate","qui","aspernatur","laudantium","soluta","amet","quo","aliquam","saepe","culpa","libero","ipsa","dicta","reiciendis","nesciunt","doloribus","autem","impedit","minima","maiores","repudiandae","ipsam","obcaecati","ullam","enim","totam","delectus","ducimus","quis","voluptates","dolores","molestiae","harum","dolorem","quia","voluptatem","molestias","magni","distinctio","omnis","illum","dolorum","voluptatum","ea","quas","quam","corporis","quae","blanditiis","atque","deserunt","laboriosam","earum","consequuntur","hic","cupiditate","quibusdam","accusamus","ut","rerum","error","minus","eius","ab","ad","nemo","fugit","officia","at","in","id","quos","reprehenderit","numquam","iste","fugiat","sit","inventore","beatae","repellendus","magnam","recusandae","quod","explicabo","doloremque","aperiam","consequatur","asperiores","commodi","optio","dolor","labore","temporibus","repellat","veniam","architecto","est","esse","mollitia","nulla","a","similique","eos","alias","dolore","tenetur","deleniti","porro","facere","maxime","corrupti"]}},bt=/^lorem([a-z]*)(\d*)(-\d*)?$/i;function gt(e,t){return Math.floor(Math.random()*(t-e)+e)}function ht(e,t){const n=e.length,o=Math.min(n,t),r=[];for(;r.length<o;){const t=e[gt(0,n)];r.includes(t)||r.push(t)}return r}function yt(e,t){var n;return e.length&&(e=[(n=e[0],n[0].toUpperCase()+n.slice(1))].concat(e.slice(1))),e.join(" ")+(t||"?!..."[gt(0,4)])}function xt(e){if(e.length<2)return e;const t=(e=e.slice()).length,n=/,$/;let o=0;o=t>3&&t<=6?gt(0,1):t>6&&t<=12?gt(0,2):gt(1,4);for(let r,i=0;i<o;i++)r=gt(0,t-2),n.test(e[r])||(e[r]+=",");return e}function vt(e,t,n){const o=[];let r,i=0;for(n&&e.common&&(r=e.common.slice(0,t),i+=r.length,o.push(yt(xt(r),".")));i<t;)r=ht(e.words,Math.min(gt(2,30),t-i)),i+=r.length,o.push(yt(xt(r)));return o.join(" ")}function kt(e){"class"===e.name?e.name="className":"for"===e.name&&(e.name="htmlFor")}function wt(e){return"select"!==e.name}const $t=/^(-+)([a-z0-9]+[a-z0-9-]*)/i,zt=/^(_+)([a-z0-9]+[a-z0-9-_]*)/i,jt=e=>/^[a-z]\-/i.test(e),Ct=e=>/^[a-z]/i.test(e);function At(e){if(!e._bem){let t="";if(e.attributes)for(const n of e.attributes)if("class"===n.name&&n.value){t=Ot(n.value);break}e._bem=qt(t)}return e._bem}function qt(e){const t=e?e.split(/\s+/):[];return{classNames:t,block:Nt(t)}}function St(e,t=0,n){let o=Math.max(e.length-t,0);do{const t=e[o];if(t){const e=At(t);if(e.block)return e.block}}while(0<o--);if(n){const e=function(e){return e._bem||(e._bem=qt(e.attributes&&e.attributes.class||"")),e._bem}(n);if(e.block)return e.block}return""}function Nt(e){return Tt(e,jt)||Tt(e,Ct)||void 0}function Tt(e,t){for(const n of e){if($t.test(n)||zt.test(n))break;if(t(n))return n}}function Lt(e,t){for(const n of e.attributes)if("class"===n.name){n.value=[t];break}}function Ot(e){let t="";for(const n of e)t+="string"==typeof n?n:n.name;return t}function Et(e,t,n){return!!e&&n.indexOf(e)===t}function Ft(e,t,n){const o=(e,o,i)=>{const{parent:s,current:a}=n;n.parent=a,n.current=e,t(e,o,i,n,r),n.current=a,n.parent=s},r=(e,t,r)=>{n.ancestors.push(n.current),o(e,t,r),n.ancestors.pop()};e.children.forEach(o)}function Wt(e){return{current:null,parent:void 0,ancestors:[],config:e,field:1,out:tt(e.options)}}const It=[{type:"Field",index:0,name:""}];function Vt(e){return!!e&&!e.name&&!e.attributes}function Bt(e,t){return!!e&&ut(e,t)}function Ut(e){return"object"==typeof e&&"Field"===e.type}function _t(e,t){const{out:n}=t;let o=-1;for(const r of e)"string"==typeof r?ot(n,r):(it(n,t.field+r.index,r.name),r.index>o&&(o=r.index));-1!==o&&(t.field+=o+1)}function Mt(e){return!e.implied||"raw"!==e.valueType||!!e.value&&e.value.length>0}function Rt(e){const t=[],n={pos:0,text:e};let o,r=n.pos,i=n.pos;for(;n.pos<n.text.length;)i=n.pos,(o=Pt(n))?(r!==n.pos&&t.push(e.slice(r,i)),t.push(o),r=n.pos):n.pos++;return r!==n.pos&&t.push(e.slice(r)),t}function Pt(e){if(91===Qt(e)){const t=++e.pos;let n=t,o=t,r=1;for(;e.pos<e.text.length;){const i=Qt(e);if(Zt(i)){for(n=e.pos;Xt(Qt(e));)e.pos++;o=e.pos}else{if(91===i)r++;else if(93===i&&0==--r)return{before:e.text.slice(t,n),after:e.text.slice(o,e.pos++),name:e.text.slice(n,o)};e.pos++}}}}function Qt(e,t=e.pos){return e.text.charCodeAt(t)}function Zt(e){return e>=65&&e<=90}function Xt(e){return Zt(e)||e>47&&e<58||95===e||45===e}function Dt(e,t){const{comment:n}=t;if(!(n.enabled&&n.trigger&&e.name&&e.attributes))return!1;for(const t of e.attributes)if(t.name&&n.trigger.includes(t.name))return!0;return!1}function Ht(e,t,n){const o={},{out:r}=n;for(const t of e.attributes)t.name&&t.value&&(o[t.name.toUpperCase()]=t.value);for(const e of t)"string"==typeof e?ot(r,e):o[e.name]&&(ot(r,e.before),_t(o[e.name],n),ot(r,e.after))}const Gt=/^<([\w\-:]+)[\s>]/;function Yt(e,t){const n=Wt(t);return n.comment=function(e){const{options:t}=e;return{enabled:t["comment.enabled"],trigger:t["comment.trigger"],before:t["comment.before"]?Rt(t["comment.before"]):void 0,after:t["comment.after"]?Rt(t["comment.after"]):void 0}}(t),Ft(e,Kt,n),n.out.value}function Kt(e,t,n,o,r){const{out:i,config:s}=o,a=tn(e,t,n,o),l=function(e){const{config:t,parent:n}=e;return!n||Vt(n)||n.name&&t.options["output.formatSkip"].includes(n.name)?0:1}(o);if(i.level+=l,a&&rt(i,!0),e.name){const t=function(e,t){return pt(e,t.options["output.tagCase"])}(e.name,s);if(function(e,t){Dt(e,t)&&t.comment.before&&Ht(e,t.comment.before,t)}(e,o),ot(i,`<${t}`),e.attributes)for(const t of e.attributes)Mt(t)&&Jt(t,o);if(!e.selfClosing||e.children.length||e.value){if(ot(i,">"),!en(e,o,r)){if(e.value){const t=e.value.some(nn)||function(e,t){if(e.length&&"string"==typeof e[0]){const n=Gt.exec(e[0]);if((null==n?void 0:n.length)&&!t.options.inlineElements.includes(n[1].toLowerCase()))return!0}return!1}(e.value,s);t&&rt(o.out,++i.level),_t(e.value,o),t&&rt(o.out,--i.level)}if(e.children.forEach(r),!e.value&&!e.children.length){const t=s.options["output.formatLeafNode"]||s.options["output.formatForce"].includes(e.name);t&&rt(o.out,++i.level),_t(It,o),t&&rt(o.out,--i.level)}}ot(i,`</${t}>`),function(e,t){Dt(e,t)&&t.comment.after&&Ht(e,t.comment.after,t)}(e,o)}else ot(i,`${function(e){switch(e.options["output.selfClosingStyle"]){case"xhtml":return" /";case"xml":return"/";default:return""}}(s)}>`)}else!en(e,o,r)&&e.value&&(_t(e.value,o),e.children.forEach(r));if(a&&t===n.length-1&&o.parent){const e=Vt(o.parent)?0:1;rt(i,i.level-e)}i.level-=l}function Jt(e,t){const{out:n,config:o}=t;if(e.name){const r=st(e.name,o),i=at(e,o,!0),s=at(e,o);let a=e.value;lt(e,o)&&!a?o.options["output.compactBoolean"]||(a=[r]):a||(a=It),ot(n," "+r),a?(ot(n,"="+i),_t(a,t),ot(n,s)):"html"!==o.options["output.selfClosingStyle"]&&ot(n,"="+i+s)}}function en(e,t,n){if(e.value&&e.children.length){const o=e.value.findIndex(Ut);if(-1!==o){_t(e.value.slice(0,o),t);const r=t.out.line;let i=o+1;return e.children.forEach(n),t.out.line!==r&&"string"==typeof e.value[i]&&ot(t.out,e.value[i++].trimLeft()),_t(e.value.slice(i),t),!0}}return!1}function tn(e,t,n,o){const{config:r,parent:i}=o;if(!r.options["output.format"])return!1;if(0===t&&!i)return!1;if(i&&Vt(i)&&1===n.length)return!1;if(Vt(e)&&(Vt(n[t-1])||Vt(n[t+1])||e.value.some(nn)||e.value.some(Ut)&&e.children.length))return!0;if(ut(e,r)){if(0===t){for(let e=0;e<n.length;e++)if(!ut(n[e],r))return!0}else if(!ut(n[t-1],r))return!0;if(r.options["output.inlineBreak"]){let e=1,o=t,i=t;for(;Bt(n[--o],r);)e++;for(;Bt(n[++i],r);)e++;if(e>=r.options["output.inlineBreak"])return!0}for(let t=0,n=e.children.length;t<n;t++)if(tn(e.children[t],t,e.children,o))return!0;return!1}return!0}function nn(e){return"string"==typeof e&&/\r|\n/.test(e)}function on(e,t,n){const o=Wt(t);return o.options=n||{},Ft(e,rn,o),o.out.value}function rn(e,t,n,o,r){const{out:i,options:s}=o,{primary:a,secondary:l}=function(e){const t=[],n=[];if(e.attributes)for(const o of e.attributes)sn(o)?t.push(o):n.push(o);return{primary:t,secondary:n}}(e),u=o.parent?1:0;i.level+=u,function(e,t,n,o){return!(!o.parent&&0===t||Vt(e))}(e,t,0,o)&&rt(i,!0),!e.name||"div"===e.name&&a.length||ot(i,(s.beforeName||"")+e.name+(s.afterName||"")),function(e,t){for(const n of e)n.value&&("class"===n.name?(ot(t.out,"."),_t(n.value.map((e=>"string"==typeof e?e.replace(/\s+/g,"."):e)),t)):(ot(t.out,"#"),_t(n.value,t)))}(a,o),function(e,t){if(e.length){const{out:n,config:o,options:r}=t;r.beforeAttribute&&ot(n,r.beforeAttribute);for(let i=0;i<e.length;i++){const s=e[i];ot(n,st(s.name||"",o)),lt(s,o)&&!s.value?!o.options["output.compactBoolean"]&&r.booleanValue&&ot(n,"="+r.booleanValue):(ot(n,"="+at(s,o,!0)),_t(s.value||It,t),ot(n,at(s,o))),i!==e.length-1&&r.glueAttribute&&ot(n,r.glueAttribute)}r.afterAttribute&&ot(n,r.afterAttribute)}}(l.filter(Mt),o),!e.selfClosing||e.value||e.children.length?(function(e,t){if(!e.value&&e.children.length)return;const n=e.value||It,o=function(e){const t=[];let n=[];for(const o of e)if("string"==typeof o){const e=o.split(/\r\n?|\n/g);for(n.push(e.shift()||"");e.length;)t.push(n),n=[e.shift()||""]}else n.push(o);return n.length&&t.push(n),t}(n),{out:r,options:i}=t;if(1===o.length)(e.name||e.attributes)&&nt(r," "),_t(n,t);else{const e=[];let n=0;for(const t of o){const o=an(t);e.push(o),o>n&&(n=o)}r.level++;for(let s=0;s<o.length;s++)rt(r,!0),i.beforeTextLine&&nt(r,i.beforeTextLine),_t(o[s],t),i.afterTextLine&&(nt(r," ".repeat(n-e[s])),nt(r,i.afterTextLine));r.level--}}(e,o),e.children.forEach(r)):o.options.selfClose&&ot(i,o.options.selfClose),i.level-=u}function sn(e){return"class"===e.name||"id"===e.name}function an(e){let t=0;for(const n of e)t+="string"==typeof n?n.length:n.name.length;return t}const ln={html:Yt,haml:function(e,t){return on(e,t,{beforeName:"%",beforeAttribute:"(",afterAttribute:")",glueAttribute:" ",afterTextLine:" |",booleanValue:"true",selfClose:"/"})},slim:function(e,t){return on(e,t,{beforeAttribute:" ",glueAttribute:" ",beforeTextLine:"| ",selfClose:"/"})},pug:function(e,t){return on(e,t,{beforeAttribute:"(",afterAttribute:")",glueAttribute:", ",beforeTextLine:"| ",selfClose:"xml"===t.options["output.selfClosingStyle"]?"/":""})}};function un(e,t){return(ln[t.syntax]||Yt)(e,t)}function cn(e,t,n){!function(e,t,n){!e.name&&e.attributes&&mt(e,t,n)}(e,t,n),function(e,t){if(!e.attributes)return;const n=[],o={};for(const r of e.attributes)if(r.name){const e=r.name;if(e in o){const n=o[e];"class"===e?n.value=De(n.value,r.value," "):He(n,r,t)}else n.push(o[e]=Object.assign({},r))}else n.push(r);e.attributes=n}(e,n),function(e,t,n){let o;if(e.name&&(o=e.name.match(bt))){const r=dt[o[1]]||dt.latin,i=o[2]?Math.max(1,Number(o[2])):30,s=gt(i,o[3]?Math.max(i,Number(o[3].slice(1))):i),a=e.repeat||function(e){for(let t=e.length-1;t>=0;t--){const n=e[t];if("AbbreviationNode"===n.type&&n.repeat)return n.repeat}}(t);e.name=e.attributes=void 0,e.value=[vt(r,s,!a||0===a.value)],e.repeat&&t.length>1&&mt(e,t,n)}}(e,t,n),"xsl"===n.syntax&&function(e){var t;"xsl:variable"!==(t=e.name)&&"xsl:with-param"!==t||!e.attributes||!e.children.length&&!e.value||(e.attributes=e.attributes.filter(wt))}(e),n.options["jsx.enabled"]&&function(e){e.attributes&&e.attributes.forEach(kt)}(e),n.options["bem.enabled"]&&function(e,t,n){!function(e){const t=At(e),n=[];for(const e of t.classNames){const t=e.indexOf("_");t>0&&!e.startsWith("-")?(n.push(e.slice(0,t)),n.push(e.slice(t))):n.push(e)}n.length&&(t.classNames=n.filter(Et),t.block=Nt(t.classNames),Lt(e,t.classNames.join(" ")))}(e),function(e,t,n){const o=At(e),r=[],{options:i}=n,s=t.slice(1).concat(e);for(let e of o.classNames){let t,o="";const a=e;(t=e.match($t))&&(o=St(s,t[1].length,n.context)+i["bem.element"]+t[2],r.push(o),e=e.slice(t[0].length)),(t=e.match(zt))&&(o||(o=St(s,t[1].length),r.push(o)),r.push(`${o}${i["bem.modifier"]}${t[2]}`),e=e.slice(t[0].length)),e===a&&r.push(a)}const a=r.filter(Et);a.length&&Lt(e,a.join(" "))}(e,t,n)}(e,t,n)}const pn=/^([a-z-]+)(?:\s*:\s*([^\n\r;]+?);*)?$/,fn={value:!0};function mn(e,t){const n=t.match(pn);if(n){const t={},o=n[2]?n[2].split("|").map(bn):[];for(const e of o)for(const n of e)hn(n,t);return{type:"Property",key:e,property:n[1],value:o,keywords:t,dependencies:[]}}return{type:"Raw",key:e,value:t}}function dn(e,t){return e.key===t.key?0:e.key<t.key?-1:1}function bn(e){return Xe(e.trim(),fn)[0].value}function gn(e){return"Property"===e.type}function hn(e,t){for(const n of e.value)if("Literal"===n.type)t[n.value]=n;else if("FunctionCall"===n.type)t[n.name]=n;else if("Field"===n.type){const e=n.name.trim();e&&(t[e]={type:"Literal",value:e})}}function yn(e,t,n=!1){if((e=e.toLowerCase())===(t=t.toLowerCase()))return 1;if(!e||!t||e.charCodeAt(0)!==t.charCodeAt(0))return 0;const o=e.length,r=t.length;if(!n&&o>r)return 0;const i=Math.min(o,r),s=Math.max(o,r);let a=1,l=1,u=s,c=0,p=0,f=!1,m=!1;for(;a<o;){for(c=e.charCodeAt(a),f=!1,m=!1;l<r;){if(p=t.charCodeAt(l),c===p){f=!0,u+=s-(m?a:l);break}m=45===p,l++}if(!f){if(!n)return 0;break}a++}const d=s-i;return u*(a/s)/(xn(s)-xn(d))}function xn(e){return e*(e+1)/2}function vn(e,t){return e.r||e.g||e.b||e.a?1===e.a?function(e,t){const n=t&&wn(e.r)&&wn(e.g)&&wn(e.b)?$n:zn;return"#"+n(e.r)+n(e.g)+n(e.b)}(e,t):function(e){const t=[e.r,e.g,e.b];return 1!==e.a&&t.push(kn(e.a,8)),`${3===t.length?"rgb":"rgba"}(${t.join(", ")})`}(e):"transparent"}function kn(e,t=4){return e.toFixed(t).replace(/\.?0+$/,"")}function wn(e){return!(e%17)}function $n(e){return(e>>4).toString(16)}function zn(e){return function(e,t){for(;e.length<2;)e="0"+e;return e}(e.toString(16))}function jn(e,t){var n;const o=tt(t.options),r=t.options["output.format"];"@@section"===(null===(n=t.context)||void 0===n?void 0:n.name)&&(e=e.filter((e=>e.snippet)));for(let n=0;n<e.length;n++)r&&0!==n&&rt(o,!0),Cn(e[n],o,t);return o.value}function Cn(e,t,n){const o=n.options["stylesheet.json"];if(e.name)ot(t,(o?e.name.replace(/\-(\w)/g,((e,t)=>t.toUpperCase())):e.name)+n.options["stylesheet.between"]),e.value.length?function(e,t,n){const o=n.options["stylesheet.json"],r=o?function(e){if(1===e.value.length){const t=e.value[0];if(1===t.value.length&&"NumberValue"===t.value[0].type)return t.value[0]}}(e):null;if(!r||r.unit&&"px"!==r.unit){const r=function(e){return e.options["stylesheet.jsonDoubleQuotes"]?'"':"'"}(n);o&&nt(t,r);for(let o=0;o<e.value.length;o++)0!==o&&nt(t,", "),qn(e.value[o],t,n);o&&nt(t,r)}else nt(t,String(r.value))}(e,t,n):it(t,0,""),o?nt(t,","):(An(e,t,!0),nt(t,n.options["stylesheet.after"]));else{for(const o of e.value)for(const e of o.value)Sn(e,t,n);An(e,t,e.value.length>0)}}function An(e,t,n){e.important&&(n&&nt(t," "),nt(t,"!important"))}function qn(e,t,n){for(let o=0,r=-1;o<e.value.length;o++){const i=e.value[o];0===o||"Field"===i.type&&i.start===r||nt(t," "),Sn(i,t,n),r=i.end}}function Sn(e,t,n){if("ColorValue"===e.type)nt(t,vn(e,n.options["stylesheet.shortHex"]));else if("Literal"===e.type)ot(t,e.value);else if("NumberValue"===e.type)ot(t,kn(e.value,4)+e.unit);else if("StringValue"===e.type){const n="double"===e.quote?'"':"'";ot(t,n+e.value+n)}else if("Field"===e.type)it(t,e.index,e.name);else if("FunctionCall"===e.type){nt(t,e.name+"(");for(let o=0;o<e.arguments.length;o++)o&&nt(t,", "),qn(e.arguments[o],t,n);nt(t,")")}}const Nn="lg";function Tn(e,t,n){if(!function(e,t){let n=null;const o=1===e.value.length?e.value[0]:null;if(o&&1===o.value.length){const e=o.value[0];"FunctionCall"===e.type&&e.name===Nn&&(n=e)}return!(!n&&e.name!==Nn||(n=n?Object.assign(Object.assign({},n),{name:"linear-gradient"}):{type:"FunctionCall",name:"linear-gradient",arguments:[Wn(Vn(0,""))]},t.context||(e.name="background-image"),e.value=[Wn(n)],0))}(e,n)){const o=n.options["stylesheet.fuzzySearchMinScore"];if(_n(n)){const r=n.context.name,i=t.find((e=>"Property"===e.type&&e.property===r));Ln(e,n,i,o),e.snippet=i}else if(e.name){const r=On(e.name,t,o,!0);e.snippet=r,r&&("Property"===r.type?function(e,t,n){const o=function(e,t){for(let n=0,o=0;n<e.length;n++){if(o=t.indexOf(e[n],o),-1===o)return e.slice(n);o++}return""}(e.name,t.key);if(o){if(e.value.length)return e;const r=Fn(o,n,t);if(!r)return e;e.value.push(Wn(r))}if(e.name=t.property,e.value.length)Ln(e,n,t);else if(t.value.length){const o=t.value[0];e.value=1===t.value.length||o.some(Bn)?o:o.map((e=>Un(e,n)))}}(e,r,n):function(e,t){let n,o=0;const r=/\$\{(\d+)(:[^}]+)?\}/g,i=e.value[0],s=[];for(;n=r.exec(t.value);)o!==n.index&&s.push(In(t.value.slice(o,n.index))),o=n.index+n[0].length,i&&i.value.length?s.push(i.value.shift()):s.push(Vn(Number(n[1]),n[2]?n[2].slice(1):""));const a=t.value.slice(o);a&&s.push(In(a)),e.name=void 0,e.value=[Wn(...s)]}(e,r))}}return(e.name||n.context)&&function(e,t){const n=t.options["stylesheet.unitAliases"],o=t.options["stylesheet.unitless"];for(const r of e.value)for(const i of r.value)"NumberValue"===i.type&&(i.unit?i.unit=n[i.unit]||i.unit:0===i.value||o.includes(e.name)||(i.unit=i.rawValue.includes(".")?t.options["stylesheet.floatUnit"]:t.options["stylesheet.intUnit"]))}(e,n),e}function Ln(e,t,n,o){for(const r of e.value){const e=[];for(const i of r.value)if("Literal"===i.type)e.push(Fn(i.value,t,n,o)||i);else if("FunctionCall"===i.type){const r=Fn(i.name,t,n,o);r&&"FunctionCall"===r.type?e.push(Object.assign(Object.assign({},r),{arguments:i.arguments.concat(r.arguments.slice(i.arguments.length))})):e.push(i)}else e.push(i);r.value=e}}function On(e,t,n=0,o=!1){let r=null,i=0;for(const n of t){const t=yn(e,En(n),o);if(1===t)return n;t&&t>=i&&(i=t,r=n)}return i>=n?r:null}function En(e){return"string"==typeof e?e:e.key}function Fn(e,t,n,o){let r;if(n){if(r=On(e,Object.keys(n.keywords),o))return n.keywords[r];for(const t of n.dependencies)if(r=On(e,Object.keys(t.keywords),o))return t.keywords[r]}return(r=On(e,t.options["stylesheet.keywords"],o))?In(r):null}function Wn(...e){return{type:"CSSValue",value:e}}function In(e){return{type:"Literal",value:e}}function Vn(e,t){return{type:"Field",index:e,name:t}}function Bn(e){for(const t of e.value)if("Field"===t.type||"FunctionCall"===t.type&&t.arguments.some(Bn))return!0;return!1}function Un(e,t,n={index:1}){let o=[];for(const r of e.value)switch(r.type){case"ColorValue":o.push(Vn(n.index++,vn(r,t.options["stylesheet.shortHex"])));break;case"Literal":o.push(Vn(n.index++,r.value));break;case"NumberValue":o.push(Vn(n.index++,`${r.value}${r.unit}`));break;case"StringValue":const e="single"===r.quote?"'":'"';o.push(Vn(n.index++,e+r.value+e));break;case"FunctionCall":o.push(Vn(n.index++,r.name),In("("));for(let e=0,i=r.arguments.length;e<i;e++)o=o.concat(Un(r.arguments[e],t,n).value),e!==i-1&&o.push(In(", "));o.push(In(")"));break;default:o.push(r)}return Object.assign(Object.assign({},e),{value:o})}function _n(e){return!(!e.context||"@@value"!==e.context.name&&e.context.name.startsWith("@@"))}const Mn={markup:"html",stylesheet:"css"},Rn={type:"markup",syntax:"html",variables:{lang:"en",locale:"en-US",charset:"UTF-8",indentation:"\t",newline:"\n"},snippets:{},options:{inlineElements:["a","abbr","acronym","applet","b","basefont","bdo","big","br","button","cite","code","del","dfn","em","font","i","iframe","img","input","ins","kbd","label","map","object","q","s","samp","select","small","span","strike","strong","sub","sup","textarea","tt","u","var"],"output.indent":"\t","output.baseIndent":"","output.newline":"\n","output.tagCase":"","output.attributeCase":"","output.attributeQuotes":"double","output.format":!0,"output.formatLeafNode":!1,"output.formatSkip":["html"],"output.formatForce":["body"],"output.inlineBreak":3,"output.compactBoolean":!1,"output.booleanAttributes":["contenteditable","seamless","async","autofocus","autoplay","checked","controls","defer","disabled","formnovalidate","hidden","ismap","loop","multiple","muted","novalidate","readonly","required","reversed","selected","typemustmatch"],"output.reverseAttributes":!1,"output.selfClosingStyle":"html","output.field":(e,t)=>t,"output.text":e=>e,"markup.href":!0,"comment.enabled":!1,"comment.trigger":["id","class"],"comment.before":"","comment.after":"\n\x3c!-- /[#ID][.CLASS] --\x3e","bem.enabled":!1,"bem.element":"__","bem.modifier":"_","jsx.enabled":!1,"stylesheet.keywords":["auto","inherit","unset","none"],"stylesheet.unitless":["z-index","line-height","opacity","font-weight","zoom","flex","flex-grow","flex-shrink"],"stylesheet.shortHex":!0,"stylesheet.between":": ","stylesheet.after":";","stylesheet.intUnit":"px","stylesheet.floatUnit":"em","stylesheet.unitAliases":{e:"em",p:"%",x:"ex",r:"rem"},"stylesheet.json":!1,"stylesheet.jsonDoubleQuotes":!1,"stylesheet.fuzzySearchMinScore":0}},Pn={markup:{snippets:Qn({a:"a[href]","a:blank":"a[href='http://${0}' target='_blank' rel='noopener noreferrer']","a:link":"a[href='http://${0}']","a:mail":"a[href='mailto:${0}']","a:tel":"a[href='tel:+${0}']",abbr:"abbr[title]","acr|acronym":"acronym[title]",base:"base[href]/",basefont:"basefont/",br:"br/",frame:"frame/",hr:"hr/",bdo:"bdo[dir]","bdo:r":"bdo[dir=rtl]","bdo:l":"bdo[dir=ltr]",col:"col/",link:"link[rel=stylesheet href]/","link:css":"link[href='${1:style}.css']","link:print":"link[href='${1:print}.css' media=print]","link:favicon":"link[rel='shortcut icon' type=image/x-icon href='${1:favicon.ico}']","link:mf|link:manifest":"link[rel='manifest' href='${1:manifest.json}']","link:touch":"link[rel=apple-touch-icon href='${1:favicon.png}']","link:rss":"link[rel=alternate type=application/rss+xml title=RSS href='${1:rss.xml}']","link:atom":"link[rel=alternate type=application/atom+xml title=Atom href='${1:atom.xml}']","link:im|link:import":"link[rel=import href='${1:component}.html']",meta:"meta/","meta:utf":"meta[http-equiv=Content-Type content='text/html;charset=UTF-8']","meta:vp":"meta[name=viewport content='width=${1:device-width}, initial-scale=${2:1.0}']","meta:compat":"meta[http-equiv=X-UA-Compatible content='${1:IE=7}']","meta:edge":"meta:compat[content='${1:ie=edge}']","meta:redirect":"meta[http-equiv=refresh content='0; url=${1:http://example.com}']","meta:kw":"meta[name=keywords content]","meta:desc":"meta[name=description content]",style:"style",script:"script","script:src":"script[src]",img:"img[src alt]/","img:s|img:srcset":"img[srcset src alt]","img:z|img:sizes":"img[sizes srcset src alt]",picture:"picture","src|source":"source/","src:sc|source:src":"source[src type]","src:s|source:srcset":"source[srcset]","src:t|source:type":"source[srcset type='${1:image/}']","src:z|source:sizes":"source[sizes srcset]","src:m|source:media":"source[media='(${1:min-width: })' srcset]","src:mt|source:media:type":"source:media[type='${2:image/}']","src:mz|source:media:sizes":"source:media[sizes srcset]","src:zt|source:sizes:type":"source[sizes srcset type='${1:image/}']",iframe:"iframe[src frameborder=0]",embed:"embed[src type]/",object:"object[data type]",param:"param[name value]/",map:"map[name]",area:"area[shape coords href alt]/","area:d":"area[shape=default]","area:c":"area[shape=circle]","area:r":"area[shape=rect]","area:p":"area[shape=poly]",form:"form[action]","form:get":"form[method=get]","form:post":"form[method=post]",label:"label[for]",input:"input[type=${1:text}]/",inp:"input[name=${1} id=${1}]","input:h|input:hidden":"input[type=hidden name]","input:t|input:text":"inp[type=text]","input:search":"inp[type=search]","input:email":"inp[type=email]","input:url":"inp[type=url]","input:p|input:password":"inp[type=password]","input:datetime":"inp[type=datetime]","input:date":"inp[type=date]","input:datetime-local":"inp[type=datetime-local]","input:month":"inp[type=month]","input:week":"inp[type=week]","input:time":"inp[type=time]","input:tel":"inp[type=tel]","input:number":"inp[type=number]","input:color":"inp[type=color]","input:c|input:checkbox":"inp[type=checkbox]","input:r|input:radio":"inp[type=radio]","input:range":"inp[type=range]","input:f|input:file":"inp[type=file]","input:s|input:submit":"input[type=submit value]","input:i|input:image":"input[type=image src alt]","input:b|input:btn|input:button":"input[type=button value]","input:reset":"input:button[type=reset]",isindex:"isindex/",select:"select[name=${1} id=${1}]","select:d|select:disabled":"select[disabled.]","opt|option":"option[value]",textarea:"textarea[name=${1} id=${1} cols=${2:30} rows=${3:10}]",marquee:"marquee[behavior direction]","menu:c|menu:context":"menu[type=context]","menu:t|menu:toolbar":"menu[type=toolbar]",video:"video[src]",audio:"audio[src]","html:xml":"html[xmlns=http://www.w3.org/1999/xhtml]",keygen:"keygen/",command:"command/","btn:s|button:s|button:submit":"button[type=submit]","btn:r|button:r|button:reset":"button[type=reset]","btn:d|button:d|button:disabled":"button[disabled.]","fst:d|fset:d|fieldset:d|fieldset:disabled":"fieldset[disabled.]",bq:"blockquote",fig:"figure",figc:"figcaption",pic:"picture",ifr:"iframe",emb:"embed",obj:"object",cap:"caption",colg:"colgroup",fst:"fieldset",btn:"button",optg:"optgroup",tarea:"textarea",leg:"legend",sect:"section",art:"article",hdr:"header",ftr:"footer",adr:"address",dlg:"dialog",str:"strong",prog:"progress",mn:"main",tem:"template",fset:"fieldset",datag:"datagrid",datal:"datalist",kg:"keygen",out:"output",det:"details",sum:"summary",cmd:"command","ri:d|ri:dpr":"img:s","ri:v|ri:viewport":"img:z","ri:a|ri:art":"pic>src:m+img","ri:t|ri:type":"pic>src:t+img","!!!":"{<!DOCTYPE html>}",doc:"html[lang=${lang}]>(head>meta[charset=${charset}]+meta[http-equiv='X-UA-Compatible'][content='IE=edge']+meta:vp+title{${1:Document}})+body","!|html:5":"!!!+doc",c:"{\x3c!-- ${0} --\x3e}","cc:ie":"{\x3c!--[if IE]>${0}<![endif]--\x3e}","cc:noie":"{\x3c!--[if !IE]>\x3c!--\x3e${0}\x3c!--<![endif]--\x3e}"})},xhtml:{options:{"output.selfClosingStyle":"xhtml"}},xml:{options:{"output.selfClosingStyle":"xml"}},xsl:{snippets:Qn({"tm|tmatch":"xsl:template[match mode]","tn|tname":"xsl:template[name]",call:"xsl:call-template[name]",ap:"xsl:apply-templates[select mode]",api:"xsl:apply-imports",imp:"xsl:import[href]",inc:"xsl:include[href]",ch:"xsl:choose","wh|xsl:when":"xsl:when[test]",ot:"xsl:otherwise",if:"xsl:if[test]",par:"xsl:param[name]",pare:"xsl:param[name select]",var:"xsl:variable[name]",vare:"xsl:variable[name select]",wp:"xsl:with-param[name select]",key:"xsl:key[name match use]",elem:"xsl:element[name]",attr:"xsl:attribute[name]",attrs:"xsl:attribute-set[name]",cp:"xsl:copy[select]",co:"xsl:copy-of[select]",val:"xsl:value-of[select]","for|each":"xsl:for-each[select]",tex:"xsl:text",com:"xsl:comment",msg:"xsl:message[terminate=no]",fall:"xsl:fallback",num:"xsl:number[value]",nam:"namespace-alias[stylesheet-prefix result-prefix]",pres:"xsl:preserve-space[elements]",strip:"xsl:strip-space[elements]",proc:"xsl:processing-instruction[name]",sort:"xsl:sort[select order]",choose:"xsl:choose>xsl:when+xsl:otherwise",xsl:"!!!+xsl:stylesheet[version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform]>{\n|}","!!!":'{<?xml version="1.0" encoding="UTF-8"?>}'}),options:{"output.selfClosingStyle":"xml"}},jsx:{options:{"jsx.enabled":!0}},pug:{snippets:Qn({"!!!":"{doctype html}"})},stylesheet:{snippets:Qn({"@f":"@font-face {\n\tfont-family: ${1};\n\tsrc: url(${2});\n}","@ff":"@font-face {\n\tfont-family: '${1:FontName}';\n\tsrc: url('${2:FileName}.eot');\n\tsrc: url('${2:FileName}.eot?#iefix') format('embedded-opentype'),\n\t\t url('${2:FileName}.woff') format('woff'),\n\t\t url('${2:FileName}.ttf') format('truetype'),\n\t\t url('${2:FileName}.svg#${1:FontName}') format('svg');\n\tfont-style: ${3:normal};\n\tfont-weight: ${4:normal};\n}","@i|@import":"@import url(${0});","@kf":"@keyframes ${1:identifier} {\n\t${2}\n}","@m|@media":"@media ${1:screen} {\n\t${0}\n}",ac:"align-content:start|end|flex-start|flex-end|center|space-between|space-around|stretch|space-evenly",ai:"align-items:start|end|flex-start|flex-end|center|baseline|stretch",anim:"animation:${1:name} ${2:duration} ${3:timing-function} ${4:delay} ${5:iteration-count} ${6:direction} ${7:fill-mode}",animdel:"animation-delay:time",animdir:"animation-direction:normal|reverse|alternate|alternate-reverse",animdur:"animation-duration:${1:0}s",animfm:"animation-fill-mode:both|forwards|backwards",animic:"animation-iteration-count:1|infinite",animn:"animation-name",animps:"animation-play-state:running|paused",animtf:"animation-timing-function:linear|ease|ease-in|ease-out|ease-in-out|cubic-bezier(${1:0.1}, ${2:0.7}, ${3:1.0}, ${3:0.1})",ap:"appearance:none",as:"align-self:start|end|auto|flex-start|flex-end|center|baseline|stretch",b:"bottom",bd:"border:${1:1px} ${2:solid} ${3:#000}",bdb:"border-bottom:${1:1px} ${2:solid} ${3:#000}",bdbc:"border-bottom-color:${1:#000}",bdbi:"border-bottom-image:url(${0})",bdbk:"border-break:close",bdbli:"border-bottom-left-image:url(${0})|continue",bdblrs:"border-bottom-left-radius",bdbri:"border-bottom-right-image:url(${0})|continue",bdbrrs:"border-bottom-right-radius",bdbs:"border-bottom-style",bdbw:"border-bottom-width",bdc:"border-color:${1:#000}",bdci:"border-corner-image:url(${0})|continue",bdcl:"border-collapse:collapse|separate",bdf:"border-fit:repeat|clip|scale|stretch|overwrite|overflow|space",bdi:"border-image:url(${0})",bdl:"border-left:${1:1px} ${2:solid} ${3:#000}",bdlc:"border-left-color:${1:#000}",bdlen:"border-length",bdli:"border-left-image:url(${0})",bdls:"border-left-style",bdlw:"border-left-width",bdr:"border-right:${1:1px} ${2:solid} ${3:#000}",bdrc:"border-right-color:${1:#000}",bdri:"border-right-image:url(${0})",bdrs:"border-radius",bdrst:"border-right-style",bdrw:"border-right-width",bds:"border-style:none|hidden|dotted|dashed|solid|double|dot-dash|dot-dot-dash|wave|groove|ridge|inset|outset",bdsp:"border-spacing",bdt:"border-top:${1:1px} ${2:solid} ${3:#000}",bdtc:"border-top-color:${1:#000}",bdti:"border-top-image:url(${0})",bdtli:"border-top-left-image:url(${0})|continue",bdtlrs:"border-top-left-radius",bdtri:"border-top-right-image:url(${0})|continue",bdtrrs:"border-top-right-radius",bdts:"border-top-style",bdtw:"border-top-width",bdw:"border-width",bfv:"backface-visibility:hidden|visible",bg:"background:${1:#000}",bga:"background-attachment:fixed|scroll",bgbk:"background-break:bounding-box|each-box|continuous",bgc:"background-color:#${1:fff}",bgcp:"background-clip:padding-box|border-box|content-box|no-clip",bgi:"background-image:url(${0})",bgo:"background-origin:padding-box|border-box|content-box",bgp:"background-position:${1:0} ${2:0}",bgpx:"background-position-x",bgpy:"background-position-y",bgr:"background-repeat:no-repeat|repeat-x|repeat-y|space|round",bgsz:"background-size:contain|cover",bxsh:"box-shadow:${1:inset }${2:hoff} ${3:voff} ${4:blur} ${5:#000}|none",bxsz:"box-sizing:border-box|content-box|border-box",c:"color:${1:#000}",cr:"color:rgb(${1:0}, ${2:0}, ${3:0})",cra:"color:rgba(${1:0}, ${2:0}, ${3:0}, ${4:.5})",cl:"clear:both|left|right|none",cm:"/* ${0} */",cnt:"content:'${0}'|normal|open-quote|no-open-quote|close-quote|no-close-quote|attr(${0})|counter(${0})|counters(${0})",coi:"counter-increment",colm:"columns",colmc:"column-count",colmf:"column-fill",colmg:"column-gap",colmr:"column-rule",colmrc:"column-rule-color",colmrs:"column-rule-style",colmrw:"column-rule-width",colms:"column-span",colmw:"column-width",cor:"counter-reset",cp:"clip:auto|rect(${1:top} ${2:right} ${3:bottom} ${4:left})",cps:"caption-side:top|bottom",cur:"cursor:pointer|auto|default|crosshair|hand|help|move|pointer|text",d:"display:block|none|flex|inline-flex|inline|inline-block|grid|inline-grid|subgrid|list-item|run-in|compact|table|inline-table|table-caption|table-column|table-column-group|table-header-group|table-footer-group|table-row|table-row-group|table-cell|ruby|ruby-base|ruby-base-group|ruby-text|ruby-text-group",ec:"empty-cells:show|hide",f:"font:${1:1em} ${2:sans-serif}",fd:"font-display:auto|block|swap|fallback|optional",fef:"font-effect:none|engrave|emboss|outline",fem:"font-emphasize",femp:"font-emphasize-position:before|after",fems:"font-emphasize-style:none|accent|dot|circle|disc",ff:"font-family:serif|sans-serif|cursive|fantasy|monospace",fft:'font-family:"Times New Roman", Times, Baskerville, Georgia, serif',ffa:'font-family:Arial, "Helvetica Neue", Helvetica, sans-serif',ffv:"font-family:Verdana, Geneva, sans-serif",fl:"float:left|right|none",fs:"font-style:italic|normal|oblique",fsm:"font-smoothing:antialiased|subpixel-antialiased|none",fst:"font-stretch:normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded",fv:"font-variant:normal|small-caps",fvs:"font-variation-settings:normal|inherit|initial|unset",fw:"font-weight:normal|bold|bolder|lighter",fx:"flex",fxb:"flex-basis:fill|max-content|min-content|fit-content|content",fxd:"flex-direction:row|row-reverse|column|column-reverse",fxf:"flex-flow",fxg:"flex-grow",fxsh:"flex-shrink",fxw:"flex-wrap:nowrap|wrap|wrap-reverse",fsz:"font-size",fsza:"font-size-adjust",gtc:"grid-template-columns:repeat()|minmax()",gtr:"grid-template-rows:repeat()|minmax()",gta:"grid-template-areas",gt:"grid-template",gg:"grid-gap",gcg:"grid-column-gap",grg:"grid-row-gap",gac:"grid-auto-columns:auto|minmax()",gar:"grid-auto-rows:auto|minmax()",gaf:"grid-auto-flow:row|column|dense|inherit|initial|unset",gd:"grid",gc:"grid-column",gcs:"grid-column-start",gce:"grid-column-end",gr:"grid-row",grs:"grid-row-start",gre:"grid-row-end",ga:"grid-area",h:"height",jc:"justify-content:start|end|stretch|flex-start|flex-end|center|space-between|space-around|space-evenly",ji:"justify-items:start|end|center|stretch",js:"justify-self:start|end|center|stretch",l:"left",lg:"background-image:linear-gradient(${1})",lh:"line-height",lis:"list-style",lisi:"list-style-image",lisp:"list-style-position:inside|outside",list:"list-style-type:disc|circle|square|decimal|decimal-leading-zero|lower-roman|upper-roman",lts:"letter-spacing:normal",m:"margin",mah:"max-height",mar:"max-resolution",maw:"max-width",mb:"margin-bottom",mih:"min-height",mir:"min-resolution",miw:"min-width",ml:"margin-left",mr:"margin-right",mt:"margin-top",ol:"outline",olc:"outline-color:${1:#000}|invert",olo:"outline-offset",ols:"outline-style:none|dotted|dashed|solid|double|groove|ridge|inset|outset",olw:"outline-width|thin|medium|thick","op|opa":"opacity",ord:"order",ori:"orientation:landscape|portrait",orp:"orphans",ov:"overflow:hidden|visible|hidden|scroll|auto",ovs:"overflow-style:scrollbar|auto|scrollbar|panner|move|marquee",ovx:"overflow-x:hidden|visible|hidden|scroll|auto",ovy:"overflow-y:hidden|visible|hidden|scroll|auto",p:"padding",pb:"padding-bottom",pgba:"page-break-after:auto|always|left|right",pgbb:"page-break-before:auto|always|left|right",pgbi:"page-break-inside:auto|avoid",pl:"padding-left",pos:"position:relative|absolute|relative|fixed|static",pr:"padding-right",pt:"padding-top",q:"quotes",qen:"quotes:'\\201C' '\\201D' '\\2018' '\\2019'",qru:"quotes:'\\00AB' '\\00BB' '\\201E' '\\201C'",r:"right",rsz:"resize:none|both|horizontal|vertical",t:"top",ta:"text-align:left|center|right|justify",tal:"text-align-last:left|center|right",tbl:"table-layout:fixed",td:"text-decoration:none|underline|overline|line-through",te:"text-emphasis:none|accent|dot|circle|disc|before|after",th:"text-height:auto|font-size|text-size|max-size",ti:"text-indent",tj:"text-justify:auto|inter-word|inter-ideograph|inter-cluster|distribute|kashida|tibetan",to:"text-outline:${1:0} ${2:0} ${3:#000}",tov:"text-overflow:ellipsis|clip",tr:"text-replace",trf:"transform:${1}|skewX(${1:angle})|skewY(${1:angle})|scale(${1:x}, ${2:y})|scaleX(${1:x})|scaleY(${1:y})|scaleZ(${1:z})|scale3d(${1:x}, ${2:y}, ${3:z})|rotate(${1:angle})|rotateX(${1:angle})|rotateY(${1:angle})|rotateZ(${1:angle})|translate(${1:x}, ${2:y})|translateX(${1:x})|translateY(${1:y})|translateZ(${1:z})|translate3d(${1:tx}, ${2:ty}, ${3:tz})",trfo:"transform-origin",trfs:"transform-style:preserve-3d",trs:"transition:${1:prop} ${2:time}",trsde:"transition-delay:${1:time}",trsdu:"transition-duration:${1:time}",trsp:"transition-property:${1:prop}",trstf:"transition-timing-function:${1:fn}",tsh:"text-shadow:${1:hoff} ${2:voff} ${3:blur} ${4:#000}",tt:"text-transform:uppercase|lowercase|capitalize|none",tw:"text-wrap:none|normal|unrestricted|suppress",us:"user-select:none",v:"visibility:hidden|visible|collapse",va:"vertical-align:top|super|text-top|middle|baseline|bottom|text-bottom|sub",w:"width",whs:"white-space:nowrap|pre|pre-wrap|pre-line|normal",whsc:"white-space-collapse:normal|keep-all|loose|break-strict|break-all",wid:"widows",wm:"writing-mode:lr-tb|lr-tb|lr-bt|rl-tb|rl-bt|tb-rl|tb-lr|bt-lr|bt-rl",wob:"word-break:normal|keep-all|break-all",wos:"word-spacing",wow:"word-wrap:none|unrestricted|suppress|break-word|normal",z:"z-index",zom:"zoom:1"})},sass:{options:{"stylesheet.after":""}},stylus:{options:{"stylesheet.between":" ","stylesheet.after":""}}};function Qn(e){const t={};return Object.keys(e).forEach((n=>{for(const o of n.split("|"))t[o]=e[n]})),t}function Zn(e={},t={}){const n=e.type||"markup",o=e.syntax||Mn[n];return Object.assign(Object.assign(Object.assign({},Rn),e),{type:n,syntax:o,variables:Xn(n,o,"variables",e,t),snippets:Xn(n,o,"snippets",e,t),options:Xn(n,o,"options",e,t)})}function Xn(e,t,n,o,r={}){const i=Pn[e],s=r[e],a=Pn[t],l=r[t];return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Rn[n]),i&&i[n]),a&&a[n]),s&&s[n]),l&&l[n]),o[n])}function Dn(e,t=0){return{text:e,start:t,pos:e.length}}function Hn(e){return e.pos===e.start}function Gn(e,t=0){return e.text.charCodeAt(e.pos-1+t)}function Yn(e){if(!Hn(e))return e.text.charCodeAt(--e.pos)}function Kn(e,t){if(Hn(e))return!1;const n="function"==typeof t?t(Gn(e)):t===Gn(e);return n&&e.pos--,!!n}function Jn(e,t){const n=e.pos;for(;Kn(e,t););return e.pos<n}function eo(e){return 39===e||34===e}const to={91:93,40:41,123:125};function no(e){const t=e.pos;if(!Kn(e,62))return!1;let n=!1;for(Kn(e,47);!Hn(e);){if(Jn(e,ao),io(e)){if(Kn(e,47)){n=Kn(e,60);break}if(Kn(e,60)){n=!0;break}if(Kn(e,ao))continue;if(Kn(e,61)){if(io(e))continue;break}if(ro(e)){n=!0;break}break}if(!oo(e))break}return e.pos=t,n}function oo(e){return function(e){const t=e.pos;return!!(function(e){const t=e.pos,n=Yn(e);if(eo(n))for(;!Hn(e);)if(Yn(e)===n&&92!==Gn(e))return!0;return e.pos=t,!1}(e)&&Kn(e,61)&&io(e))||(e.pos=t,!1)}(e)||ro(e)}function ro(e){const t=e.pos,n=[];for(;!Hn(e);){const t=Gn(e);if(co(t))n.push(t);else if(uo(t)){if(n.pop()!==to[t])break}else if(!lo(t))break;e.pos--}return!(t===e.pos||!Kn(e,61)||!io(e))||(e.pos=t,!1)}function io(e){return Jn(e,so)}function so(e){return 58===e||45===e||function(e){return(e&=-33)>=65&&e<=90}(e)||function(e){return e>47&&e<58}(e)}function ao(e){return 32===e||9===e}function lo(e){return!isNaN(e)&&61!==e&&!ao(e)&&!eo(e)}function uo(e){return 123===e||40===e||91===e}function co(e){return 125===e||41===e||93===e}const po=e=>e.charCodeAt(0),fo="#.*:$-_!@%^+>/".split("").map(po),mo={type:"markup",lookAhead:!0,prefix:""};function bo(e,t,n){const o=e.pos;if(Kn(e,t))for(;!Hn(e);){if(Kn(e,n))return!0;e.pos--}return e.pos=o,!1}function go(e,t){const n=e.pos;let o=!1;for(let n=t.length-1;n>=0&&!Hn(e)&&Kn(e,t[n]);n--)o=0===n;return o||(e.pos=n),o}function ho(e){return e>64&&e<91||e>96&&e<123||e>47&&e<58||fo.includes(e)}function yo(e,t){return 40===e||"markup"===t&&(91===e||123===e)}function xo(e,t){return 41===e||"markup"===t&&(93===e||125===e)}function vo(e,t){const n=Zn(t);return"stylesheet"===n.type?function(e,t){return jn(function(e,t){var n;const o=(null===(n=t.cache)||void 0===n?void 0:n.stylesheetSnippets)||function(e){const t=[];for(const n of Object.keys(e))t.push(mn(n,e[n]));return function(e){e=e.slice().sort(dn);const t=[];let n;for(const o of e.filter(gn)){for(;t.length;){if(n=t[t.length-1],o.property.startsWith(n.property)&&45===o.property.charCodeAt(n.property.length)){n.dependencies.push(o),t.push(o);break}t.pop()}t.length||t.push(o)}return e}(t)}(t.snippets);t.cache&&(t.cache.stylesheetSnippets=o),"string"==typeof e&&(e=Xe(e,{value:_n(t)}));const r=function(e,t){if(t.context){if("@@section"===t.context.name)return e.filter((e=>"Raw"===e.type));if("@@property"===t.context.name)return e.filter((e=>"Property"===e.type))}return e}(o,t);for(const n of e)Tn(n,r,t);return e}(e,t),t)}(e,n):function(e,t){return un(function(e,t){let n;if("string"==typeof e){let o=t;t.options["jsx.enabled"]&&(o=Object.assign(Object.assign({},o),{jsx:!0})),t.options["markup.href"]&&(o=Object.assign(Object.assign({},o),{href:!0})),e=ge(e,o),n=t.text,t.text=void 0}return e=function(e,t){const n=[],o=t.options["output.reverseAttributes"],r=e=>{const i=e.name&&t.snippets[e.name];if(!i||n.includes(i))return null;const s=ge(i,t);n.push(i),Je(s,r),n.pop();for(const t of s.children){if(e.attributes){const n=t.attributes||[],r=e.attributes||[];t.attributes=o?r.concat(n):n.concat(r)}et(e,t)}return s};return Je(e,r),e}(e,t),function(e,t,n){const o=[e],r=e=>{t(e,o,n),o.push(e),e.children.forEach(r),o.pop()};e.children.forEach(r)}(e,cn,t),t.text=null!=n?n:t.text,e}(e,t),t)}(e,n)}var ko,wo={properties:["additive-symbols","align-content","align-items","justify-items","justify-self","justify-items","align-self","all","alt","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","behavior","block-size","border","border-block-end","border-block-start","border-block-end-color","border-block-start-color","border-block-end-style","border-block-start-style","border-block-end-width","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline-end","border-inline-start","border-inline-end-color","border-inline-start-color","border-inline-end-style","border-inline-start-style","border-inline-end-width","border-inline-start-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation-filters","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","columns","column-span","column-width","contain","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","enable-background","fallback","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","font","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","glyph-orientation-horizontal","glyph-orientation-vertical","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","height","hyphens","image-orientation","image-rendering","ime-mode","inline-size","isolation","justify-content","kerning","left","letter-spacing","lighting-color","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marker","marker-end","marker-mid","marker-start","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","motion","motion-offset","motion-path","motion-rotation","-moz-animation","-moz-animation-delay","-moz-animation-direction","-moz-animation-duration","-moz-animation-iteration-count","-moz-animation-name","-moz-animation-play-state","-moz-animation-timing-function","-moz-appearance","-moz-backface-visibility","-moz-background-clip","-moz-background-inline-policy","-moz-background-origin","-moz-border-bottom-colors","-moz-border-image","-moz-border-left-colors","-moz-border-right-colors","-moz-border-top-colors","-moz-box-align","-moz-box-direction","-moz-box-flex","-moz-box-flexgroup","-moz-box-ordinal-group","-moz-box-orient","-moz-box-pack","-moz-box-sizing","-moz-column-count","-moz-column-gap","-moz-column-rule","-moz-column-rule-color","-moz-column-rule-style","-moz-column-rule-width","-moz-columns","-moz-column-width","-moz-font-feature-settings","-moz-hyphens","-moz-perspective","-moz-perspective-origin","-moz-text-align-last","-moz-text-decoration-color","-moz-text-decoration-line","-moz-text-decoration-style","-moz-text-size-adjust","-moz-transform","-moz-transform-origin","-moz-transition","-moz-transition-delay","-moz-transition-duration","-moz-transition-property","-moz-transition-timing-function","-moz-user-focus","-moz-user-select","-ms-accelerator","-ms-behavior","-ms-block-progression","-ms-content-zoom-chaining","-ms-content-zooming","-ms-content-zoom-limit","-ms-content-zoom-limit-max","-ms-content-zoom-limit-min","-ms-content-zoom-snap","-ms-content-zoom-snap-points","-ms-content-zoom-snap-type","-ms-filter","-ms-flex","-ms-flex-align","-ms-flex-direction","-ms-flex-flow","-ms-flex-item-align","-ms-flex-line-pack","-ms-flex-order","-ms-flex-pack","-ms-flex-wrap","-ms-flow-from","-ms-flow-into","-ms-grid-column","-ms-grid-column-align","-ms-grid-columns","-ms-grid-column-span","-ms-grid-layer","-ms-grid-row","-ms-grid-row-align","-ms-grid-rows","-ms-grid-row-span","-ms-high-contrast-adjust","-ms-hyphenate-limit-chars","-ms-hyphenate-limit-lines","-ms-hyphenate-limit-zone","-ms-hyphens","-ms-ime-mode","-ms-interpolation-mode","-ms-layout-grid","-ms-layout-grid-char","-ms-layout-grid-line","-ms-layout-grid-mode","-ms-layout-grid-type","-ms-line-break","-ms-overflow-style","-ms-perspective","-ms-perspective-origin","-ms-perspective-origin-x","-ms-perspective-origin-y","-ms-progress-appearance","-ms-scrollbar-3dlight-color","-ms-scrollbar-arrow-color","-ms-scrollbar-base-color","-ms-scrollbar-darkshadow-color","-ms-scrollbar-face-color","-ms-scrollbar-highlight-color","-ms-scrollbar-shadow-color","-ms-scrollbar-track-color","-ms-scroll-chaining","-ms-scroll-limit","-ms-scroll-limit-x-max","-ms-scroll-limit-x-min","-ms-scroll-limit-y-max","-ms-scroll-limit-y-min","-ms-scroll-rails","-ms-scroll-snap-points-x","-ms-scroll-snap-points-y","-ms-scroll-snap-type","-ms-scroll-snap-x","-ms-scroll-snap-y","-ms-scroll-translation","-ms-text-align-last","-ms-text-autospace","-ms-text-combine-horizontal","-ms-text-justify","-ms-text-kashida-space","-ms-text-overflow","-ms-text-size-adjust","-ms-text-underline-position","-ms-touch-action","-ms-touch-select","-ms-transform","-ms-transform-origin","-ms-transform-origin-x","-ms-transform-origin-y","-ms-transform-origin-z","-ms-user-select","-ms-word-break","-ms-word-wrap","-ms-wrap-flow","-ms-wrap-margin","-ms-wrap-through","-ms-writing-mode","-ms-zoom","-ms-zoom-animation","nav-down","nav-index","nav-left","nav-right","nav-up","negative","-o-animation","-o-animation-delay","-o-animation-direction","-o-animation-duration","-o-animation-fill-mode","-o-animation-iteration-count","-o-animation-name","-o-animation-play-state","-o-animation-timing-function","object-fit","object-position","-o-border-image","-o-object-fit","-o-object-position","opacity","order","orphans","-o-table-baseline","-o-tab-size","-o-text-overflow","-o-transform","-o-transform-origin","-o-transition","-o-transition-delay","-o-transition-duration","-o-transition-property","-o-transition-timing-function","offset-block-end","offset-block-start","offset-inline-end","offset-inline-start","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","pad","padding","padding-bottom","padding-block-end","padding-block-start","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","paint-order","perspective","perspective-origin","pointer-events","position","prefix","quotes","range","resize","right","ruby-align","ruby-overhang","ruby-position","ruby-span","scrollbar-3dlight-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-darkshadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","scroll-behavior","scroll-snap-coordinate","scroll-snap-destination","scroll-snap-points-x","scroll-snap-points-y","scroll-snap-type","shape-image-threshold","shape-margin","shape-outside","shape-rendering","size","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","suffix","system","symbols","table-layout","tab-size","text-align","text-align-last","text-anchor","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","unicode-range","user-select","vertical-align","visibility","-webkit-animation","-webkit-animation-delay","-webkit-animation-direction","-webkit-animation-duration","-webkit-animation-fill-mode","-webkit-animation-iteration-count","-webkit-animation-name","-webkit-animation-play-state","-webkit-animation-timing-function","-webkit-appearance","-webkit-backdrop-filter","-webkit-backface-visibility","-webkit-background-clip","-webkit-background-composite","-webkit-background-origin","-webkit-border-image","-webkit-box-align","-webkit-box-direction","-webkit-box-flex","-webkit-box-flex-group","-webkit-box-ordinal-group","-webkit-box-orient","-webkit-box-pack","-webkit-box-reflect","-webkit-box-sizing","-webkit-break-after","-webkit-break-before","-webkit-break-inside","-webkit-column-break-after","-webkit-column-break-before","-webkit-column-break-inside","-webkit-column-count","-webkit-column-gap","-webkit-column-rule","-webkit-column-rule-color","-webkit-column-rule-style","-webkit-column-rule-width","-webkit-columns","-webkit-column-span","-webkit-column-width","-webkit-filter","-webkit-flow-from","-webkit-flow-into","-webkit-font-feature-settings","-webkit-hyphens","-webkit-line-break","-webkit-margin-bottom-collapse","-webkit-margin-collapse","-webkit-margin-start","-webkit-margin-top-collapse","-webkit-mask-clip","-webkit-mask-image","-webkit-mask-origin","-webkit-mask-repeat","-webkit-mask-size","-webkit-nbsp-mode","-webkit-overflow-scrolling","-webkit-padding-start","-webkit-perspective","-webkit-perspective-origin","-webkit-region-fragment","-webkit-tap-highlight-color","-webkit-text-fill-color","-webkit-text-size-adjust","-webkit-text-stroke","-webkit-text-stroke-color","-webkit-text-stroke-width","-webkit-touch-callout","-webkit-transform","-webkit-transform-origin","-webkit-transform-origin-x","-webkit-transform-origin-y","-webkit-transform-origin-z","-webkit-transform-style","-webkit-transition","-webkit-transition-delay","-webkit-transition-duration","-webkit-transition-property","-webkit-transition-timing-function","-webkit-user-drag","-webkit-user-modify","-webkit-user-select","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","zoom"]},$o={tags:["body","head","html","address","blockquote","dd","div","section","article","aside","header","footer","nav","menu","dl","dt","fieldset","form","frame","frameset","h1","h2","h3","h4","h5","h6","iframe","noframes","object","ol","p","ul","applet","center","dir","hr","pre","a","abbr","acronym","area","b","base","basefont","bdo","big","br","button","caption","cite","code","col","colgroup","del","dfn","em","font","i","img","input","ins","isindex","kbd","label","legend","li","link","map","meta","noscript","optgroup","option","param","q","s","samp","script","select","small","span","strike","strong","style","sub","sup","table","tbody","td","textarea","tfoot","th","thead","title","tr","tt","u","var","canvas","main","figure","plaintext","figcaption","hgroup","details","summary"]},zo=new Map,jo=new Map,Co=/^[a-z,A-Z,!,(,[,#,\.\{]/,Ao=/^[a-z,A-Z,!,(,[,#,\.]/,qo=/^-?[a-z,A-Z,!,@,#]/,So=/[a-z,A-Z\.]/,No=t(t([],$o.tags,!0),["lorem"],!1),To="bem",Lo="t",Oo="c";function Eo(e,t,n,o,r,i,s,a){if(void 0===a&&(a=!0),!n||!t)return[];var l=[];return t.forEach((function(t){if(t.startsWith(n.toLowerCase())&&(!a||t!==n.toLowerCase())){var u,c=o+t.substr(n.length);try{u=vo(c,i)}catch(e){}if(u){var p={kind:e.languages.CompletionItemKind.Property,label:n+t.substr(n.length),documentation:Fo(u),detail:s,insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:r,insertText:Wo(Io(u))};l.push(p)}}})),l}function Fo(e){return e.replace(/([^\\])\$\{\d+\}/g,"$1|").replace(/\$\{\d+:([^\}]+)\}/g,"$1")}function Wo(e){return e?e.replace(/([^\\])(\$)([^\{])/g,"$1\\$2$3"):e}function Io(e){if(!e||!e.trim())return e;var t=-1,n=[],o=!1,r=!1,i=0,s=e.length;try{for(;i<s&&!o;)if("$"==e[i++]&&"{"==e[i++]){for(var a=-1,l=-1;i<s&&/\d/.test(e[i]);)a=a<0?i:a,l=i+1,i++;if(!(-1===a||-1===l||i>=s||"}"!=e[i]&&":"!=e[i])){var u=e.substring(a,l);if(o="0"===u)break;var c=!1;if(":"==e[i++])for(;i<s;){if("}"==e[i]){c=!0;break}i++}Number(u)>Number(t)?(t=Number(u),n=[{numberStart:a,numberEnd:l}],r=!c):Number(u)===t&&n.push({numberStart:a,numberEnd:l})}}}catch(e){}if(r&&!o)for(var p=0;p<n.length;p++){var f=n[p].numberStart,m=n[p].numberEnd;e=e.substr(0,f)+"0"+e.substr(m)}return e}var Vo=function(e,t){return"${"+e+(t?":"+t:"")+"}"};function Bo(e){return"css"===e}function Uo(e){return Bo(e)?"stylesheet":"markup"}function _o(e,t,n,o){var r=e[t].type;return"html"===n?""===r&&(0===t||"delimiter.html"===e[t-1].type)||"text.html.basic"===e[0].type:"css"===n?""===r||r==="tag."+o:"jsx"===n&&!!t&&["identifier.js","type.identifier.js","identifier.ts","type.identifier.ts"].includes(r)}var Mo={html:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],jade:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],slim:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],haml:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],xml:[".","}","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],xsl:["!",".","}","*","$","/","]",">","0","1","2","3","4","5","6","7","8","9"],css:[":","!","-","0","1","2","3","4","5","6","7","8","9"],scss:[":","!","-","0","1","2","3","4","5","6","7","8","9"],sass:[":","!","0","1","2","3","4","5","6","7","8","9"],less:[":","!","-","0","1","2","3","4","5","6","7","8","9"],stylus:[":","!","0","1","2","3","4","5","6","7","8","9"],javascript:["!",".","}","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],typescript:["!",".","}","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"]},Ro={handlebars:"html",php:"html",twig:"html"},Po={showExpandedAbbreviation:"always",showAbbreviationSuggestions:!0,showSuggestionsAsSnippets:!1};function Qo(e,t,n){if(e){var o=t.map((function(t){return e.languages.registerCompletionItemProvider(t,{triggerCharacters:Mo[Ro[t]||t],provideCompletionItems:function(o,r){return function(e,t,n,o){for(var r=t.column,i=t.lineNumber,s=e._tokenization,a=s._tokenizationSupport,l=s._tokenizationStateStore.getBeginState(i-1).clone(),u=a.tokenize(e.getLineContent(i),!0,l,0).tokens,c=!1,p=u.length-1;p>=0;p--)if(r-1>u[p].offset){c=_o(u,p,n,o);break}return c}(o,r,n,t)?function(e,t,n,o,r){var i,s=Bo(o);if(!s){if(!zo.has(o)){var a=function(e){var t=Zn({type:Uo(e),syntax:e});return"xml"===e?{}:t.snippets}(o);zo.set(o,Object.keys(a))}ko=null!==(i=zo.get(o))&&void 0!==i?i:[]}var l={lookAhead:!s,type:Uo(o)},u=function(e,t,n,o){var r=t.getLineContent(n.lineNumber),i=r.substr(0,n.column-1),s=function(e,t){for(var n,o=0;o<3;o++)if(e.endsWith("|bem",t))t-=To.length+1,n=n?"bem,"+n:To;else if(e.endsWith("|c",t))t-=Oo.length+1,n=n?"c,"+n:Oo;else{if(!e.endsWith("|t",t))break;t-=Lo.length+1,n=n?"t,"+n:Lo}return{pos:t,filter:n}}(i,n.column-1),a=s.pos,l=s.filter,u=l?l.length+1:0,c=function(e,t=e.length,n={}){const o=Object.assign(Object.assign({},mo),n);let r;t=Math.min(e.length,Math.max(0,null==t?e.length:t)),o.lookAhead&&(t=function(e,t,n){for(eo(e.charCodeAt(t))&&t++;xo(e.charCodeAt(t),n.type);)t++;return t}(e,t,o));const i=function(e,t,n){if(!n)return 0;const o=Dn(e),r=n.split("").map(po);let i;for(o.pos=t;!Hn(o);)if(!bo(o,93,91)&&!bo(o,125,123)){if(i=o.pos,go(o,r))return i;o.pos--}return-1}(e,t,o.prefix||"");if(-1===i)return;const s=Dn(e,i);s.pos=t;const a=[];for(;!Hn(s);){if(r=Gn(s),a.includes(125)){if(125===r){a.push(r),s.pos--;continue}if(123!==r){s.pos--;continue}}if(xo(r,o.type))a.push(r);else if(yo(r,o.type)){if(a.pop()!==to[r])break}else{if(a.includes(93)||a.includes(125)){s.pos--;continue}if(no(s)||!ho(r))break}s.pos--}if(!a.length&&s.pos!==t){const o=e.slice(s.pos,t).replace(/^[*+>^]+/,"");return{abbreviation:o,location:t-o.length,start:n.prefix?i-n.prefix.length:t-o.length,end:t}}}(r,a,o);if(c)return{abbreviationRange:new e.Range(n.lineNumber,c.location+1,n.lineNumber,c.location+c.abbreviation.length+u+1),abbreviation:c.abbreviation,currentLineTillPosition:i,filter:l}}(e,t,n,l);if(u){var c=u.abbreviationRange,p=u.abbreviation,f=u.currentLineTillPosition,m=u.filter,d=function(e){if(e){var t=e.match(/[\w,:,-,\.]*$/);if(t)return t[0]}}(f);if(d!==p||!f.endsWith("<"+p)||s){var b,g=function(e,t){var n=Uo(e),o=t?t.split(",").map((function(e){return e.trim()})):[],r=o.includes("bem"),i=o.includes("c");return{type:n,options:{"output.formatSkip":["html"],"output.formatForce":["body"],"output.field":Vo,"output.inlineBreak":0,"output.compactBoolean":!1,"output.reverseAttributes":!1,"markup.href":!0,"comment.enabled":i,"comment.trigger":["id","class"],"comment.before":"","comment.after":"\n\x3c!-- /[#ID][.CLASS] --\x3e","bem.enabled":r,"bem.element":"__","bem.modifier":"_","jsx.enabled":"jsx"===e,"stylesheet.shortHex":!0,"stylesheet.between":"stylus"===e?" ":": ","stylesheet.after":"sass"===e||"stylus"===e?"":";","stylesheet.intUnit":"px","stylesheet.floatUnit":"em","stylesheet.unitAliases":{e:"em",p:"%",x:"ex",r:"rem"},"stylesheet.fuzzySearchMinScore":.3,"output.format":!0,"output.selfClosingStyle":"html"},variables:{},snippets:{},syntax:e,text:void 0,maxRepeat:1e3}}(o,m),h="",y=[];if(function(t,n){if(function(e,t){if(!t)return!1;if(Bo(e)){if(t.includes("#")){if(t.startsWith("#"))return/^#[\d,a-f,A-F]{1,6}$/.test(t);if(No.includes(t.substring(0,t.indexOf("#"))))return!1}return qo.test(t)}return t.startsWith("!")?!/[^!]/.test(t):!!(!/\(/.test(t)&&!/\)/.test(t)||/\{[^\}\{]*[\(\)]+[^\}\{]*\}(?:[>\+\*\^]|$)/.test(t)||/\(.*\)[>\+\*\^]/.test(t)||/\[[^\[\]\(\)]+=".*"\]/.test(t)||/[>\+\*\^]\(.*\)/.test(t))&&("jsx"===e?Ao.test(t)&&So.test(t):Co.test(t)&&So.test(t))}(t,p)){try{h=vo(n,g),s&&"!important".startsWith(n)&&(h="!important")}catch(e){}h&&!function(e,t,n,o){var r,i;if(Bo(e)&&o){var s=null!==(r=o["stylesheet.between"])&&void 0!==r?r:": ",a=null!==(i=o["stylesheet.after"])&&void 0!==i?i:";",l=t.indexOf(s[0],Math.max(t.length-s.length,0));return l=l>=0?l:t.length,n===""+t.substring(0,l)+s+"${0}"+a||n.replace(/\s/g,"")===t.replace(/\s/g,"")+a}if("xml"===e&&No.some((function(e){return e.startsWith(t.toLowerCase())})))return!0;if(No.includes(t.toLowerCase())||ko.includes(t))return!1;if(/[-,:]/.test(t)&&!/--|::/.test(t)&&!t.endsWith(":"))return!1;if("."===t)return!1;var u=t.match(/^([a-z,A-Z,\d]*)\.$/);return u?!u[1]||!$o.tags.includes(u[1]):("jsx"!==e||!/^([A-Z][A-Za-z0-9]*)+$/.test(t))&&n.toLowerCase()==="<"+t.toLowerCase()+">${1}</"+t.toLowerCase()+">"}(t,n,h,g.options)&&(b={kind:e.languages.CompletionItemKind.Property,label:p+(m?"|"+m.replace(",","|"):""),documentation:Fo(h),detail:"Emmet abbreviation",insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:c,insertText:Wo(Io(h))},y=[b])}}(o,p),s){if(p.length>4&&wo.properties.some((function(e){return e.startsWith(p)})))return{suggestions:[],incomplete:!0};if(b&&h.length){b.range=c,b.insertText=Wo(Io(h)),b.documentation=Fo(h),b.label=h.replace(/([^\\])\$\{\d+\}/g,"$1").replace(/\$\{\d+:([^\}]+)\}/g,"$1"),b.filterText=p;var x=jo.has(o)?jo.get(o):jo.get("css");if(!(y=Eo(e,null!=x?x:[],p,p,c,g,"Emmet Custom Snippet",!1)).find((function(e){return e.insertText===(null==b?void 0:b.insertText)}))){var v=new RegExp(".*"+p.split("").map((function(e){return"$"===e||"+"===e?"\\"+e:e})).join(".*")+".*","i");(/\d/.test(p)||v.test(b.label))&&y.push(b)}}}else{var k=p,w=p.match(/(>|\+)([\w:-]+)$/);if(w&&3===w.length&&(k=w[2]),"xml"!==o){var $=Eo(e,No,k,p,c,g,"Emmet Abbreviation");y=y.concat($)}if(!0===r.showAbbreviationSuggestions){var z=Eo(e,ko.filter((function(e){return!No.includes(e)})),k,p,c,g,"Emmet Abbreviation");b&&z.length>0&&k!==p&&(b.sortText="0"+b.label,z.forEach((function(e){e.filterText=p,e.sortText="9"+p}))),y=y.concat(z)}"html"===o&&y.length>=2&&p.includes(":")&&(null==b?void 0:b.insertText)==="<"+p+">${0}</"+p+">"&&(y=y.filter((function(e){return e.label!==p})))}return!0===r.showSuggestionsAsSnippets&&y.forEach((function(t){return t.kind=e.languages.CompletionItemKind.Snippet})),y.length?{suggestions:y,incomplete:!0}:void 0}}}(e,o,r,n,Po):void 0}})}));return function(){o.forEach((function(e){return e.dispose()}))}}console.error("emmet-monaco-es: 'monaco' should be either declared on window or passed as first parameter")}return e.emmetCSS=function(e,t){return void 0===e&&(e=window.monaco),void 0===t&&(t=["css"]),Qo(e,t,"css")},e.emmetHTML=function(e,t){return void 0===e&&(e=window.monaco),void 0===t&&(t=["html"]),Qo(e,t,"html")},e.emmetJSX=function(e,t){return void 0===e&&(e=window.monaco),void 0===t&&(t=["javascript"]),Qo(e,t,"jsx")},e.expandAbbreviation=function(e,t){var n=Zn(t);return Wo(Io("stylesheet"===t.type?"string"==typeof e?vo(e,n):jn(e,n):"string"==typeof e?vo(e,n):un(e,n)))},Object.defineProperty(e,"__esModule",{value:!0}),e}({});
@@ -0,0 +1,14 @@
1
+ /*! *****************************************************************************
2
+ Copyright (c) Microsoft Corporation.
3
+
4
+ Permission to use, copy, modify, and/or distribute this software for any
5
+ purpose with or without fee is hereby granted.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
+ PERFORMANCE OF THIS SOFTWARE.
14
+ ***************************************************************************** */
@@ -0,0 +1,2 @@
1
+ /*! For license information please see iframeResizer.contentWindow.min.js.LICENSE.txt */
2
+ !function(e){if("undefined"!=typeof window){var t=!0,n=10,o="",i=0,r="",a=null,u="",c=!1,s={resize:1,click:1},d=128,l=!0,f=1,m="bodyOffset",h=m,g=!0,p="",v={},y=32,w=null,b=!1,T=!1,E="[iFrameSizer]",O=E.length,S="",M={max:1,min:1,bodyScroll:1,documentElementScroll:1},I="child",N=!0,A=window.parent,z="*",C=0,k=!1,R=null,x=16,L=1,F="scroll",P=F,D=window,j=function(){re("onMessage function not defined")},q=function(){},H=function(){},W={height:function(){return re("Custom height calculation function not defined"),document.documentElement.offsetHeight},width:function(){return re("Custom width calculation function not defined"),document.body.scrollWidth}},B={},J=!1;try{var U=Object.create({},{passive:{get:function(){J=!0}}});window.addEventListener("test",ee,U),window.removeEventListener("test",ee,U)}catch(R){}var V,X,Y,K,Q,G,Z={bodyOffset:function(){return document.body.offsetHeight+pe("marginTop")+pe("marginBottom")},offset:function(){return Z.bodyOffset()},bodyScroll:function(){return document.body.scrollHeight},custom:function(){return W.height()},documentElementOffset:function(){return document.documentElement.offsetHeight},documentElementScroll:function(){return document.documentElement.scrollHeight},max:function(){return Math.max.apply(null,ye(Z))},min:function(){return Math.min.apply(null,ye(Z))},grow:function(){return Z.max()},lowestElement:function(){return Math.max(Z.bodyOffset()||Z.documentElementOffset(),ve("bottom",be()))},taggedElement:function(){return we("bottom","data-iframe-height")}},$={bodyScroll:function(){return document.body.scrollWidth},bodyOffset:function(){return document.body.offsetWidth},custom:function(){return W.width()},documentElementScroll:function(){return document.documentElement.scrollWidth},documentElementOffset:function(){return document.documentElement.offsetWidth},scroll:function(){return Math.max($.bodyScroll(),$.documentElementScroll())},max:function(){return Math.max.apply(null,ye($))},min:function(){return Math.min.apply(null,ye($))},rightMostElement:function(){return ve("right",be())},taggedElement:function(){return we("right","data-iframe-width")}},_=(V=Te,Q=null,G=0,function(){var e=Date.now(),t=x-(e-(G=G||e));return X=this,Y=arguments,t<=0||x<t?(Q&&(clearTimeout(Q),Q=null),G=e,K=V.apply(X,Y),Q||(X=Y=null)):Q=Q||setTimeout(Ee,t),K});te(window,"message",(function(e){var t={init:function(){p=e.data,A=e.source,ae(),l=!1,setTimeout((function(){g=!1}),d)},reset:function(){g?ie("Page reset ignored by init"):(ie("Page size reset by host page"),Me("resetPage"))},resize:function(){Oe("resizeParent","Parent window requested size check")},moveToAnchor:function(){v.findTarget(o())},inPageLink:function(){this.moveToAnchor()},pageInfo:function(){var e=o();ie("PageInfoFromParent called from parent: "+e),H(JSON.parse(e)),ie(" --")},message:function(){var e=o();ie("onMessage called from parent: "+e),j(JSON.parse(e)),ie(" --")}};function n(){return e.data.split("]")[1].split(":")[0]}function o(){return e.data.substr(e.data.indexOf(":")+1)}function i(){return e.data.split(":")[2]in{true:1,false:1}}E===(""+e.data).substr(0,O)&&(!1===l?function(){var o=n();o in t?t[o]():("undefined"==typeof module||!module.exports)&&"iFrameResize"in window||"jQuery"in window&&"iFrameResize"in window.jQuery.prototype||i()||re("Unexpected message ("+e.data+")")}():i()?t.init():ie('Ignored message of type "'+n()+'". Received before initialization.'))})),te(window,"readystatechange",Ae),Ae()}function ee(){}function te(e,t,n,o){e.addEventListener(t,n,!!J&&(o||{}))}function ne(e){return e.charAt(0).toUpperCase()+e.slice(1)}function oe(e){return E+"["+S+"] "+e}function ie(e){b&&"object"==typeof window.console&&console.log(oe(e))}function re(e){"object"==typeof window.console&&console.warn(oe(e))}function ae(){function n(e){return"true"===e}var s;function l(e){Ne(0,0,e.type,e.screenY+":"+e.screenX)}function f(e,t){ie("Add event listener: "+t),te(window.document,e,l)}s=p.substr(O).split(":"),S=s[0],i=e!==s[1]?Number(s[1]):i,c=e!==s[2]?n(s[2]):c,b=e!==s[3]?n(s[3]):b,y=e!==s[4]?Number(s[4]):y,t=e!==s[6]?n(s[6]):t,r=s[7],h=e!==s[8]?s[8]:h,o=s[9],u=s[10],C=e!==s[11]?Number(s[11]):C,v.enable=e!==s[12]&&n(s[12]),I=e!==s[13]?s[13]:I,P=e!==s[14]?s[14]:P,T=e!==s[15]?Boolean(s[15]):T,ie("Initialising iFrame ("+window.location.href+")"),function(){function e(e,t){return"function"==typeof e&&(ie("Setup custom "+t+"CalcMethod"),W[t]=e,e="custom"),e}"iFrameResizer"in window&&Object===window.iFrameResizer.constructor&&(function(){var e=window.iFrameResizer;ie("Reading data from page: "+JSON.stringify(e)),Object.keys(e).forEach(ue,e),j="onMessage"in e?e.onMessage:j,q="onReady"in e?e.onReady:q,z="targetOrigin"in e?e.targetOrigin:z,h="heightCalculationMethod"in e?e.heightCalculationMethod:h,P="widthCalculationMethod"in e?e.widthCalculationMethod:P}(),h=e(h,"height"),P=e(P,"width")),ie("TargetOrigin for parent set to: "+z)}(),e===r&&(r=i+"px"),ce("margin",function(e,t){return-1!==t.indexOf("-")&&(re("Negative CSS value ignored for margin"),t=""),t}(0,r)),ce("background",o),ce("padding",u),(s=document.createElement("div")).style.clear="both",s.classList.add("iframe-resizer-inner"),s.style.display="block",s.style.height="0",document.body.appendChild(s),fe(),me(),document.documentElement.style.height="",document.body.style.height="",ie('HTML & body height set to "auto"'),ie("Enable public methods"),D.parentIFrame={autoResize:function(e){return!0===e&&!1===t?(t=!0,he()):!1===e&&!0===t&&(t=!1,de("remove"),null!==a&&a.disconnect(),clearInterval(w)),Ne(0,0,"autoResize",JSON.stringify(t)),t},close:function(){Ne(0,0,"close")},getId:function(){return S},getPageInfo:function(e){"function"==typeof e?(H=e,Ne(0,0,"pageInfo")):(H=function(){},Ne(0,0,"pageInfoStop"))},moveToAnchor:function(e){v.findTarget(e)},reset:function(){Ie("parentIFrame.reset")},scrollTo:function(e,t){Ne(t,e,"scrollTo")},scrollToOffset:function(e,t){Ne(t,e,"scrollToOffset")},sendMessage:function(e,t){Ne(0,0,"message",JSON.stringify(e),t)},setHeightCalculationMethod:function(e){h=e,fe()},setWidthCalculationMethod:function(e){P=e,me()},setTargetOrigin:function(e){ie("Set targetOrigin: "+e),z=e},size:function(e,t){Oe("size","parentIFrame.size("+(e||"")+(t?","+t:"")+")",e,t)}},!0===T&&(f("mouseenter","Mouse Enter"),f("mouseleave","Mouse Leave")),he(),v=function(){function t(t){var n,o=t.split("#")[1]||t,i=(t=decodeURIComponent(o),document.getElementById(t)||document.getElementsByName(t)[0]);e!==i?(n=function(t){var n=t.getBoundingClientRect();return t={x:window.pageXOffset!==e?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==e?window.pageYOffset:document.documentElement.scrollTop},{x:parseInt(n.left,10)+parseInt(t.x,10),y:parseInt(n.top,10)+parseInt(t.y,10)}}(n=i),ie("Moving to in page link (#"+o+") at x: "+n.x+" y: "+n.y),Ne(n.y,n.x,"scrollToOffset")):(ie("In page link (#"+o+") not found in iFrame, so sending to parent"),Ne(0,0,"inPageLink","#"+o))}function n(){var e=window.location.hash,n=window.location.href;""!==e&&"#"!==e&&t(n)}return v.enable?Array.prototype.forEach&&document.querySelectorAll?(ie("Setting up location.hash handlers"),Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),(function(e){"#"!==e.getAttribute("href")&&te(e,"click",(function(e){e.preventDefault(),t(this.getAttribute("href"))}))})),te(window,"hashchange",n),setTimeout(n,d)):re("In page linking not fully supported in this browser! (See README.md for IE8 workaround)"):ie("In page linking not enabled"),{findTarget:t}}(),Oe("init","Init message from host page"),q()}function ue(e){var t=e.split("Callback");2===t.length&&(this[t="on"+t[0].charAt(0).toUpperCase()+t[0].slice(1)]=this[e],delete this[e],re("Deprecated: '"+e+"' has been renamed '"+t+"'. The old method will be removed in the next major version."))}function ce(t,n){e!==n&&""!==n&&"null"!==n&&ie("Body "+t+' set to "'+(document.body.style[t]=n)+'"')}function se(e){var t={add:function(t){function n(){Oe(e.eventName,e.eventType)}B[t]=n,te(window,t,n,{passive:!0})},remove:function(e){var t=B[e];delete B[e],window.removeEventListener(e,t,!1)}};e.eventNames&&Array.prototype.map?(e.eventName=e.eventNames[0],e.eventNames.map(t[e.method])):t[e.method](e.eventName),ie(ne(e.method)+" event listener: "+e.eventType)}function de(e){se({method:e,eventType:"Animation Start",eventNames:["animationstart","webkitAnimationStart"]}),se({method:e,eventType:"Animation Iteration",eventNames:["animationiteration","webkitAnimationIteration"]}),se({method:e,eventType:"Animation End",eventNames:["animationend","webkitAnimationEnd"]}),se({method:e,eventType:"Input",eventName:"input"}),se({method:e,eventType:"Mouse Up",eventName:"mouseup"}),se({method:e,eventType:"Mouse Down",eventName:"mousedown"}),se({method:e,eventType:"Orientation Change",eventName:"orientationchange"}),se({method:e,eventType:"Print",eventNames:["afterprint","beforeprint"]}),se({method:e,eventType:"Ready State Change",eventName:"readystatechange"}),se({method:e,eventType:"Touch Start",eventName:"touchstart"}),se({method:e,eventType:"Touch End",eventName:"touchend"}),se({method:e,eventType:"Touch Cancel",eventName:"touchcancel"}),se({method:e,eventType:"Transition Start",eventNames:["transitionstart","webkitTransitionStart","MSTransitionStart","oTransitionStart","otransitionstart"]}),se({method:e,eventType:"Transition Iteration",eventNames:["transitioniteration","webkitTransitionIteration","MSTransitionIteration","oTransitionIteration","otransitioniteration"]}),se({method:e,eventType:"Transition End",eventNames:["transitionend","webkitTransitionEnd","MSTransitionEnd","oTransitionEnd","otransitionend"]}),"child"===I&&se({method:e,eventType:"IFrame Resized",eventName:"resize"})}function le(e,t,n,o){return t!==e&&(e in n||(re(e+" is not a valid option for "+o+"CalculationMethod."),e=t),ie(o+' calculation method set to "'+e+'"')),e}function fe(){h=le(h,m,Z,"height")}function me(){P=le(P,F,$,"width")}function he(){var e;!0===t?(de("add"),e=y<0,window.MutationObserver||window.WebKitMutationObserver?e?ge():a=function(){function e(e){function t(e){!1===e.complete&&(ie("Attach listeners to "+e.src),e.addEventListener("load",o,!1),e.addEventListener("error",i,!1),a.push(e))}"attributes"===e.type&&"src"===e.attributeName?t(e.target):"childList"===e.type&&Array.prototype.forEach.call(e.target.querySelectorAll("img"),t)}function t(e){ie("Remove listeners from "+e.src),e.removeEventListener("load",o,!1),e.removeEventListener("error",i,!1),a.splice(a.indexOf(e),1)}function n(e,n,o){t(e.target),Oe(n,o+": "+e.target.src)}function o(e){n(e,"imageLoad","Image loaded")}function i(e){n(e,"imageLoadFailed","Image load failed")}function r(t){Oe("mutationObserver","mutationObserver: "+t[0].target+" "+t[0].type),t.forEach(e)}var a=[],u=window.MutationObserver||window.WebKitMutationObserver,c=function(){var e=document.querySelector("body");return c=new u(r),ie("Create body MutationObserver"),c.observe(e,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}),c}();return{disconnect:function(){"disconnect"in c&&(ie("Disconnect body MutationObserver"),c.disconnect(),a.forEach(t))}}}():(ie("MutationObserver not supported in this browser!"),ge())):ie("Auto Resize disabled")}function ge(){0!==y&&(ie("setInterval: "+y+"ms"),w=setInterval((function(){Oe("interval","setInterval: "+y)}),Math.abs(y)))}function pe(e,t){var o=0;return t=t||document.body,o=null!==(o=document.defaultView.getComputedStyle(t,null))?o[e]:0,parseInt(o,n)}function ve(e,t){for(var n,o=t.length,i=0,r=ne(e),a=Date.now(),u=0;u<o;u++)i<(n=t[u].getBoundingClientRect()[e]+pe("margin"+r,t[u]))&&(i=n);return a=Date.now()-a,ie("Parsed "+o+" HTML elements"),ie("Element position calculated in "+a+"ms"),x/2<a&&ie("Event throttle increased to "+(x=2*a)+"ms"),i}function ye(e){return[e.bodyOffset(),e.bodyScroll(),e.documentElementOffset(),e.documentElementScroll()]}function we(e,t){var n=document.querySelectorAll("["+t+"]");return 0===n.length&&(re("No tagged elements ("+t+") found on page"),document.querySelectorAll("body *")),ve(e,n)}function be(){return document.querySelectorAll("body *")}function Te(t,n,o,i){var r,a;function u(e,t){return!(Math.abs(e-t)<=C)}r=e!==o?o:Z[h](),a=e!==i?i:$[P](),u(f,r)||c&&u(L,a)||"init"===t?(Se(),Ne(f=r,L=a,t)):t in{init:1,interval:1,size:1}||!(h in M||c&&P in M)?t in{interval:1}||ie("No change in size detected"):Ie(n)}function Ee(){G=Date.now(),Q=null,K=V.apply(X,Y),Q||(X=Y=null)}function Oe(e,t,n,o){k&&e in s?ie("Trigger event cancelled: "+e):(e in{reset:1,resetPage:1,init:1}||ie("Trigger event: "+t),("init"===e?Te:_)(e,t,n,o))}function Se(){k||(k=!0,ie("Trigger event lock on")),clearTimeout(R),R=setTimeout((function(){k=!1,ie("Trigger event lock off"),ie("--")}),d)}function Me(e){f=Z[h](),L=$[P](),Ne(f,L,e)}function Ie(e){var t=h;h=m,ie("Reset trigger event: "+e),Se(),Me("reset"),h=t}function Ne(t,n,o,i,r){var a;!0===N&&(e===r?r=z:ie("Message targetOrigin: "+r),ie("Sending message to host page ("+(a=S+":"+t+":"+n+":"+o+(e!==i?":"+i:""))+")"),A.postMessage(E+a,r))}function Ae(){"loading"!==document.readyState&&window.parent.postMessage("[iFrameResizerChild]Ready","*")}}();
@@ -0,0 +1,7 @@
1
+ /*! iFrame Resizer (iframeSizer.contentWindow.min.js) - v4.3.2 - 2021-10-18
2
+ * Desc: Include this file in any page being loaded into an iframe
3
+ * to force the iframe to resize to the content size.
4
+ * Requires: iframeResizer.min.js on host page.
5
+ * Copyright: (c) 2021 David J. Bradshaw - dave@bradshaw.net
6
+ * License: MIT
7
+ */
@@ -0,0 +1 @@
1
+ const LOCALE_NAME="en_en",LOCALE_NAME_TINY="en_GB",LOCALE_REORDER_ATOM="Reorder element",LOCALE_CLONE_ATOM="Clone element",LOCALE_REMOVE_ATOM="Remove element",LOCALE_EDIT_ATOM="Edit element",LOCALE_CHANGE_IMAGE="Change image",LOCALE_REORDER_BLOCK="Reorder block",LOCALE_REORDER_BLOCK_UP="Move up",LOCALE_REORDER_BLOCK_DOWN="Move down",LOCALE_EDIT_BLOCK="Edit block",LOCALE_CLONE_BLOCK="Clone block",LOCALE_MERGE_BLOCK="Merge with the chosen block",LOCALE_COPY_BLOCK_TO_CLIPBOARD="Copy block to clipboard",LOCALE_PASTE_BLOCK_FROM_CLIPBOARD="Paste block from clipboard",LOCALE_REMOVE_BLOCK="Remove block",LOCALE_SAVE_TO_BLOCKS="Save to Blocks",LOCALE_ADD_BLOCK="Add block",LOCALE_ADD_EMPTY_BLOCK="Add an empty block",LOCALE_ADD_SAVED_BLOCK="Add a saved block",LOCALE_ADD_COMMON_BLOCK="Add a common block",LOCALE_ADD_TEMPLATE_BLOCK="Add a template block",LOCALE_ADD_SEARCH_BLOCK="Search a block",LOCALE_REORDER_GROUP="Reorder group",LOCALE_EDIT_GROUP="Edit group",LOCALE_CLONE_GROUP="Clone group",LOCALE_REMOVE_GROUP="Remove group",LOCALE_ADD_GROUP="Add group",LOCALE_LINK="link",LOCALE_TABLE_COLUMN="cell",LOCALE_TABLE="table",LOCALE_FLOAT_BLOCK="column",LOCALE_CONTAINER="container",LOCALE_PICTURE="picture",LOCALE_VERTICAL_INDENT="indent",LOCALE_TEXT="text",LOCALE_BUTTON="button",LOCALE_VAR="variable",LOCALE_STRUCTURE="block",LOCALE_EMAIL="email",LOCALE_GROUP="group",LOCALE_TYPOGRAF="Typograf",LOCALE_COUNTDOWN="countdown",LOCALE_ELEMENT="element",LOCALE_VIDEO="video",LOCALE_ELEMENT_PATH_LINK="Link",LOCALE_ELEMENT_PATH_BLOCK="Block",LOCALE_ELEMENT_PATH_ATOM="Element",LOCALE_ELEMENT_PATH_TD="Cell",LOCALE_ELEMENT_PATH_TABLE="Table",LOCALE_ELEMENT_PATH_FLOATBLOCK="Column",LOCALE_ELEMENT_PATH_TEXT="Text",LOCALE_ELEMENT_PATH_DIV="Container",LOCALE_ELEMENT_PATH_GROUP="Group",LOCALE_ELEMENT_PATH_EMAIL="Email",LOCALE_ELEMENT_PATH_IMG="Picture",LOCALE_ELEMENT_PATH_VINDENT="Indent";LOCALE_TINYMCE_CHANGECASE="Case Change",LOCALE_TINYMCE_UPPERCASE="Uppercase",LOCALE_TINYMCE_LOWERCASE="Lowercase";const LOCALE_CHANGE_IMAGE_EDIT="Edit",LOCALE_CHANGE_IMAGE_STOCK="Stock",LOCALE_CHANGE_IMAGE_CHANGETO="Change",LOCALE_CHANGE_IMAGE_GIF="GIF",LOCALE_CHANGE_IMAGE_AI="AI-generator";
@@ -0,0 +1 @@
1
+ const LOCALE_NAME="ru_ru",LOCALE_NAME_TINY="ru",LOCALE_REORDER_ATOM="Переместить элемент",LOCALE_CLONE_ATOM="Дублировать элемент",LOCALE_REMOVE_ATOM="Удалить элемент",LOCALE_EDIT_ATOM="Свойства элемента",LOCALE_CHANGE_IMAGE="Изменить изображение",LOCALE_REORDER_BLOCK="Переместить блок",LOCALE_REORDER_BLOCK_UP="Переместить вверх",LOCALE_REORDER_BLOCK_DOWN="Переместить вниз",LOCALE_EDIT_BLOCK="Свойства блока",LOCALE_CLONE_BLOCK="Дублировать блок",LOCALE_MERGE_BLOCK="Объединить с выделенным блоком",LOCALE_COPY_BLOCK_TO_CLIPBOARD="Скопировать блок в буфер обмена",LOCALE_PASTE_BLOCK_FROM_CLIPBOARD="Вставить блок из буфера обмена",LOCALE_REMOVE_BLOCK="Удалить блок",LOCALE_SAVE_TO_BLOCKS="Сохранить в Блоки",LOCALE_ADD_BLOCK="Добавить блок",LOCALE_ADD_EMPTY_BLOCK="Добавить пустой блок",LOCALE_ADD_SAVED_BLOCK="Добавить сохранённый блок",LOCALE_ADD_COMMON_BLOCK="Добавить общий блок",LOCALE_ADD_TEMPLATE_BLOCK="Добавить шаблонный блок",LOCALE_ADD_SEARCH_BLOCK="Найти блок",LOCALE_REORDER_GROUP="Переместить группу",LOCALE_EDIT_GROUP="Свойства группы",LOCALE_CLONE_GROUP="Дублировать группу",LOCALE_REMOVE_GROUP="Удалить группу",LOCALE_ADD_GROUP="Добавить группу",LOCALE_LINK="ссылка",LOCALE_TABLE_COLUMN="ячейка",LOCALE_TABLE="таблица",LOCALE_FLOAT_BLOCK="колонка",LOCALE_CONTAINER="контейнер",LOCALE_PICTURE="изображение",LOCALE_VERTICAL_INDENT="отступ",LOCALE_TEXT="текст",LOCALE_BUTTON="кнопка",LOCALE_VAR="переменная",LOCALE_STRUCTURE="блок",LOCALE_EMAIL="письмо",LOCALE_GROUP="группа",LOCALE_TYPOGRAF="Типограф",LOCALE_COUNTDOWN="таймер",LOCALE_ELEMENT="элемент",LOCALE_VIDEO="видео",LOCALE_ELEMENT_PATH_LINK="Ссылка",LOCALE_ELEMENT_PATH_BLOCK="Блок",LOCALE_ELEMENT_PATH_ATOM="Элемент",LOCALE_ELEMENT_PATH_TD="Ячейка",LOCALE_ELEMENT_PATH_TABLE="Таблица",LOCALE_ELEMENT_PATH_FLOATBLOCK="Колонка",LOCALE_ELEMENT_PATH_TEXT="Текст",LOCALE_ELEMENT_PATH_DIV="Контейнер",LOCALE_ELEMENT_PATH_GROUP="Группа",LOCALE_ELEMENT_PATH_EMAIL="Письмо",LOCALE_ELEMENT_PATH_IMG="Картинка",LOCALE_ELEMENT_PATH_VINDENT="Отступ";LOCALE_TINYMCE_CHANGECASE="Смена регистра",LOCALE_TINYMCE_UPPERCASE="Заглавные",LOCALE_TINYMCE_LOWERCASE="Строчные";const LOCALE_CHANGE_IMAGE_EDIT="Редактировать",LOCALE_CHANGE_IMAGE_STOCK="Фотосток",LOCALE_CHANGE_IMAGE_CHANGETO="Заменить",LOCALE_CHANGE_IMAGE_GIF="GIF",LOCALE_CHANGE_IMAGE_AI="AI-генератор";
@@ -0,0 +1,2 @@
1
+ /*! For license information please see typograf.all.min.js.LICENSE.txt */
2
+ !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e="undefined"!=typeof globalThis?globalThis:e||self).Typograf=n()}(this,(function(){"use strict";var e=function(){return(e=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e}).apply(this,arguments)};function n(e,n,t){if(t||2===arguments.length)for(var r,a=0,u=n.length;a<u;a++)!r&&a in n||((r=r||Array.prototype.slice.call(n,0,a))[a]=n[a]);return e.concat(r||Array.prototype.slice.call(n))}var t=[["iexcl",161],["cent",162],["pound",163],["curren",164],["yen",165],["brvbar",166],["sect",167],["uml",168],["copy",169],["ordf",170],["laquo",171],["not",172],["reg",174],["macr",175],["deg",176],["plusmn",177],["sup2",178],["sup3",179],["acute",180],["micro",181],["para",182],["middot",183],["cedil",184],["sup1",185],["ordm",186],["raquo",187],["frac14",188],["frac12",189],["frac34",190],["iquest",191],["Agrave",192],["Aacute",193],["Acirc",194],["Atilde",195],["Auml",196],["Aring",197],["AElig",198],["Ccedil",199],["Egrave",200],["Eacute",201],["Ecirc",202],["Euml",203],["Igrave",204],["Iacute",205],["Icirc",206],["Iuml",207],["ETH",208],["Ntilde",209],["Ograve",210],["Oacute",211],["Ocirc",212],["Otilde",213],["Ouml",214],["times",215],["Oslash",216],["Ugrave",217],["Uacute",218],["Ucirc",219],["Uuml",220],["Yacute",221],["THORN",222],["szlig",223],["agrave",224],["aacute",225],["acirc",226],["atilde",227],["auml",228],["aring",229],["aelig",230],["ccedil",231],["egrave",232],["eacute",233],["ecirc",234],["euml",235],["igrave",236],["iacute",237],["icirc",238],["iuml",239],["eth",240],["ntilde",241],["ograve",242],["oacute",243],["ocirc",244],["otilde",245],["ouml",246],["divide",247],["oslash",248],["ugrave",249],["uacute",250],["ucirc",251],["uuml",252],["yacute",253],["thorn",254],["yuml",255],["fnof",402],["Alpha",913],["Beta",914],["Gamma",915],["Delta",916],["Epsilon",917],["Zeta",918],["Eta",919],["Theta",920],["Iota",921],["Kappa",922],["Lambda",923],["Mu",924],["Nu",925],["Xi",926],["Omicron",927],["Pi",928],["Rho",929],["Sigma",931],["Tau",932],["Upsilon",933],["Phi",934],["Chi",935],["Psi",936],["Omega",937],["alpha",945],["beta",946],["gamma",947],["delta",948],["epsilon",949],["zeta",950],["eta",951],["theta",952],["iota",953],["kappa",954],["lambda",955],["mu",956],["nu",957],["xi",958],["omicron",959],["pi",960],["rho",961],["sigmaf",962],["sigma",963],["tau",964],["upsilon",965],["phi",966],["chi",967],["psi",968],["omega",969],["thetasym",977],["upsih",978],["piv",982],["bull",8226],["hellip",8230],["prime",8242],["Prime",8243],["oline",8254],["frasl",8260],["weierp",8472],["image",8465],["real",8476],["trade",8482],["alefsym",8501],["larr",8592],["uarr",8593],["rarr",8594],["darr",8595],["harr",8596],["crarr",8629],["lArr",8656],["uArr",8657],["rArr",8658],["dArr",8659],["hArr",8660],["forall",8704],["part",8706],["exist",8707],["empty",8709],["nabla",8711],["isin",8712],["notin",8713],["ni",8715],["prod",8719],["sum",8721],["minus",8722],["lowast",8727],["radic",8730],["prop",8733],["infin",8734],["ang",8736],["and",8743],["or",8744],["cap",8745],["cup",8746],["int",8747],["there4",8756],["sim",8764],["cong",8773],["asymp",8776],["ne",8800],["equiv",8801],["le",8804],["ge",8805],["sub",8834],["sup",8835],["nsub",8836],["sube",8838],["supe",8839],["oplus",8853],["otimes",8855],["perp",8869],["sdot",8901],["lceil",8968],["rceil",8969],["lfloor",8970],["rfloor",8971],["lang",9001],["rang",9002],["spades",9824],["clubs",9827],["hearts",9829],["diams",9830],["loz",9674],["OElig",338],["oelig",339],["Scaron",352],["scaron",353],["Yuml",376],["circ",710],["tilde",732],["ndash",8211],["mdash",8212],["lsquo",8216],["rsquo",8217],["sbquo",8218],["ldquo",8220],["rdquo",8221],["bdquo",8222],["dagger",8224],["Dagger",8225],["permil",8240],["lsaquo",8249],["rsaquo",8250],["euro",8364],["NestedGreaterGreater",8811],["NestedLessLess",8810]],r=[["nbsp",160],["thinsp",8201],["ensp",8194],["emsp",8195],["shy",173],["zwnj",8204],["zwj",8205],["lrm",8206],["rlm",8207]];function a(){var e=this;this.entities=this.prepareEntities(n(n([],t,!0),r,!0)),this.entitiesByName={},this.entitiesByNameEntity={},this.entitiesByDigitEntity={},this.entitiesByUtf={},this.entities.forEach((function(n){e.entitiesByName[n.name]=n,e.entitiesByNameEntity[n.nameEntity]=n,e.entitiesByDigitEntity[n.digitEntity]=n,e.entitiesByUtf[n.utf]=n})),this.invisibleEntities=this.prepareEntities(r)}a.prototype.toUtf=function(e){var n=this;-1!==e.text.search(/&#/)&&(e.text=this.decHexToUtf(e.text)),-1!==e.text.search(/&[a-z]/i)&&(e.text=e.text.replace(/&[a-z\d]{2,31};/gi,(function(e){var t=n.entitiesByNameEntity[e];return t?t.utf:e})))},a.prototype.decHexToUtf=function(e){return e.replace(/&#(\d{1,6});/gi,(function(e,n){return String.fromCharCode(parseInt(n,10))})).replace(/&#x([\da-f]{1,6});/gi,(function(e,n){return String.fromCharCode(parseInt(n,16))}))},a.prototype.restore=function(e){var n=e.prefs.htmlEntity,t=n.type,r=this.entities;"name"!==t&&"digit"!==t||((n.onlyInvisible||n.list)&&(r=[],n.onlyInvisible&&(r=r.concat(this.invisibleEntities)),n.list)&&(r=r.concat(this.prepareListParam(n.list))),e.text=this.restoreEntitiesByIndex(e.text,"name"===t?"nameEntity":"digitEntity",r))},a.prototype.getByUtf=function(e,n){var t;switch(n){case"digit":t=this.entitiesByDigitEntity[e];break;case"name":t=this.entitiesByNameEntity[e];break;default:t=e}return t},a.prototype.prepareEntities=function(e){var n=[];return e.forEach((function(e){var t=e[0],r=(e=e[1],String.fromCharCode(e));n.push({name:t,nameEntity:"&"+t+";",digitEntity:"&#"+e+";",utf:r,reName:new RegExp("&"+t+";","g"),reUtf:new RegExp(r,"g")})})),n},a.prototype.prepareListParam=function(e){var n=this,t=[];return e.forEach((function(e){(e=n.entitiesByName[e])&&t.push(e)})),t},a.prototype.restoreEntitiesByIndex=function(e,n,t){return t.forEach((function(t){e=e.replace(t.reUtf,t[n])})),e};var u=new a,o=[];function s(e){(e=(e||"").split("/")[0])&&"common"!==e&&!i(e)&&(o.push(e),o.sort())}function i(e){return"common"===e||-1!==o.indexOf(e)}function c(e,n){return(e=e||n)?Array.isArray(e)?e:[e]:[]}function l(e){if(!e.length)throw Error('Not defined the property "locale".');e.forEach((function(e){if(!i(e))throw Error('"'.concat(e,'" is not supported locale.'))}))}var p={};function m(e){Object.keys(e).forEach((function(n){s(n),p[n]=e[n]}))}var h=["a","abbr","acronym","b","bdo","big","br","button","cite","code","dfn","em","i","img","input","kbd","label","map","object","q","samp","script","select","small","span","strong","sub","sup","textarea","time","tt","var"],g=new RegExp("(https?|file|ftp)://([a-zA-Z0-9/+-=%&:_.~?]+[a-zA-Z0-9#+]*)","g"),d="\\d+([.,]\\d+)?",f=/\d/;function b(e){return-1<e.search(f)}var $="",y="",x=(v.prototype.add=function(e){this.tags.own.push(this.prepareRegExp(e))},v.prototype.show=function(e,n){for(var t=new RegExp("tf\\d+","g"),r=new RegExp("tf\\d"),a=function(t){return e.safeTags.hidden[n][t]||t},u=0,o=this.tags[n].length;u<o&&(e.text=e.text.replace(t,a),-1!==e.text.search(r));u++);},v.prototype.hide=function(e,n){var t=this,r=(e.safeTags.hidden[n]={},this.pasteLabel.bind(this,e,n));this.tags[n].forEach((function(n){e.text=e.text.replace(t.prepareRegExp(n),r)}))},v.prototype.hideHTMLTags=function(e){var n;e.isHTML&&(n=this.pasteLabel.bind(this,e,"html"),e.text=e.text.replace(/<\/?[a-z][^]*?>/gi,n).replace(/&lt;\/?[a-z][^]*?&gt;/gi,n).replace(/&[gl]t;/gi,n))},v.prototype.getPrevLabel=function(e,n){for(var t=n-1;0<=t;t--)if(e[t]===$)return e.slice(t,n+1);return""},v.prototype.getNextLabel=function(e,n){for(var t=n+1;t<e.length;t++)if(e[t]===$)return e.slice(n,t+1);return""},v.prototype.getTagByLabel=function(e,n){var t=null;return this.groups.some((function(r){var a=e.safeTags.hidden[r][n];return t=void 0!==a?{group:r,value:a}:t})),t},v.prototype.getTagInfo=function(e){if(!e)return null;var n={group:e.group};switch(e.group){case"html":n.name=e.value.split(/[<\s>]/)[1],n.isInline=-1<h.indexOf(n.name),n.isClosing=-1<e.value.search(/^<\//);break;case"url":n.isInline=!0;break;case"own":n.isInline=!1}return n},v.prototype.pasteLabel=function(e,n,t){var r="tf"+(e=e.safeTags).counter+$;return e.hidden[n][r]=t,e.counter++,r},v.prototype.prepareRegExp=function(e){var n,t;return e instanceof RegExp?e:(n=e[0],t=e[1],e=e[2],new RegExp(n+(void 0===e?"[^]*?":e)+t,"gi"))},v.prototype.getPrevTagInfo=function(e,n,t){return(n=this.getPrevLabel(n,t-1))&&(t=this.getTagByLabel(e,n))?this.getTagInfo(t):null},v.prototype.getNextTagInfo=function(e,n,t){return(n=this.getNextLabel(n,t+1))&&(t=this.getTagByLabel(e,n))?this.getTagInfo(t):null},v);function v(){this.groups=["own","html","url"],this.hidden={},this.counter=0;var e=[["\x3c!--","--\x3e"],["<!ENTITY",">"],["<!DOCTYPE",">"],["<\\?xml","\\?>"],["<!\\[CDATA\\[","\\]\\]>"]];["code","kbd","object","pre","samp","script","style","var"].forEach((function(n){e.push(["<".concat(n,"(\\s[^>]*?)?>"),"</".concat(n,">")])})),this.tags={own:[],html:e.map(this.prepareRegExp),url:[g]}}function R(e,n){for(var t="";!(1&~n)&&(t+=e),0!=(n>>>=1);)e+=e;return t}function w(e){return e.replace(/\u00A0/g," ")}function E(e,n){for(var t=0;t<n.length;t++)e=e.replace(n[t][0],n[t][1]);return e}function S(e){return-1!==e.search(/(<\/?[a-z]|<!|&[lg]t;)/i)}function U(e){return"object"==typeof e?JSON.parse(JSON.stringify(e)):e}var k={symbols:110,number:150,space:210,dash:310,punctuation:410,nbsp:510,money:710,date:810,other:910,optalign:1010,typo:1110,html:1210},q="default",T=[],A=[];function B(){var e=n([],T,!0);return e.sort((function(e,n){return e.index>n.index?1:-1})),e}function D(){return n([],A,!0)}function L(e){var n=(r=e.name.split("/"))[0],t=r[1],r=r[2];return{name:e.name,shortName:r,handler:e.handler,queue:e.queue||q,enabled:!0!==e.disabled,locale:n,group:t,index:"number"==typeof(r=e).index?r.index:(n=r.name.split("/")[1],void 0===(n=k[n])&&(n=0),"string"==typeof r.index?n+parseInt(r.index,10):n),settings:e.settings,live:e.live,htmlAttrs:e.htmlAttrs}}function N(e){return{type:(null==e?void 0:e.type)||"default",list:null==e?void 0:e.list,onlyInvisible:Boolean(null==e?void 0:e.onlyInvisible)}}function M(e){return e||"LF"}z.addRule=function(e){s((e=L(e)).locale),T.push(e)},z.addRules=function(e){var n=this;e.forEach((function(e){n.addRule(e)}))},z.addInnerRule=function(e){A.push(L(e))},z.addInnerRules=function(e){var n=this;e.forEach((function(e){n.addInnerRule(e)}))},z.getRule=function(e){var n=null;return B().some((function(t){return t.name===e&&(n=t,!0)})),n},z.getRules=B,z.getInnerRules=D,z.getLocales=function(){return o},z.addLocale=function(e){s(e)},z.hasLocale=i,z.setData=function(e){m(e)},z.getData=function(e){return p[e]},z.prototype.execute=function(n,t){var r;return(n=""+n)?(r=this.prefs,r=e({},r),t&&("locale"in t&&(r.locale=c(t.locale)),"htmlEntity"in t&&(r.htmlEntity=N(t.htmlEntity)),"lineEnding"in t&&(r.lineEnding=M(t.lineEnding)),"processingSeparateParts"in t&&(r.processingSeparateParts=t.processingSeparateParts),"ruleFilter"in t)&&(r.ruleFilter=t.ruleFilter),l((t=r).locale),r=this.prepareContext(n,t),this.process(r)):""},z.prototype.getSetting=function(e,n){return this.settings[e]&&this.settings[e][n]},z.prototype.setSetting=function(e,n,t){this.settings[e]=this.settings[e]||{},this.settings[e][n]=t},z.prototype.isEnabledRule=function(e){return!1!==this.enabledRules[e]},z.prototype.isDisabledRule=function(e){return!this.enabledRules[e]},z.prototype.enableRule=function(e){return this.enable(e,!0)},z.prototype.disableRule=function(e){return this.enable(e,!1)},z.prototype.addSafeTag=function(e,n,t){e=e instanceof RegExp?e:[e,n,t],this.safeTags.add(e)},z.prototype.prepareContext=function(e,n){return{text:e,isHTML:S(e),prefs:n,getData:function(e){return"char"===e?n.locale.map((function(n){return p[n+"/"+e]})).join(""):function(e){return p[e]}(n.locale[0]+"/"+e)},safeTags:this.safeTags}},z.prototype.splitBySeparateParts=function(e){var n,t,r;return e.isHTML&&!1!==e.prefs.processingSeparateParts?(n=[],t=new RegExp("<("+this.separatePartsTags.join("|")+")(\\s[^>]*?)?>[^]*?</\\1>","gi"),r=0,e.text.replace(t,(function(t,a,u,o){return r!==o&&n.push((r?y:"")+e.text.slice(r,o)+y),n.push(t),r=o+t.length,t})),n.push(r?y+e.text.slice(r,e.text.length):e.text),n):[e.text]},z.prototype.process=function(e){var n,t=this,r=(e.text=e.text.replace(/\r\n?/g,"\n"),this.executeRules(e,"start"),this.safeTags.hide(e,"own"),this.executeRules(e,"hide-safe-tags-own"),this.safeTags.hide(e,"html"),this.executeRules(e,"hide-safe-tags-html"),e.isHTML),a=new RegExp(y,"g");return e.text=this.splitBySeparateParts(e).map((function(n){return e.text=n,e.isHTML=S(n),t.safeTags.hideHTMLTags(e),t.safeTags.hide(e,"url"),t.executeRules(e,"hide-safe-tags-url"),t.executeRules(e,"hide-safe-tags"),u.toUtf(e),e.prefs.live&&(e.text=w(e.text)),t.executeRules(e,"utf"),t.executeRules(e),u.restore(e),t.executeRules(e,"html-entities"),t.safeTags.show(e,"url"),t.executeRules(e,"show-safe-tags-url"),e.text.replace(a,"")})).join(""),e.isHTML=r,this.safeTags.show(e,"html"),this.executeRules(e,"show-safe-tags-html"),this.safeTags.show(e,"own"),this.executeRules(e,"show-safe-tags-own"),this.executeRules(e,"end"),r=e.text,"CRLF"===(n=e.prefs.lineEnding)?r.replace(/\n/g,"\r\n"):"CR"===n?r.replace(/\n/g,"\r"):r},z.prototype.executeRules=function(e,n){var t=this,r=this.rulesByQueues[n=void 0===n?q:n];(n=this.innerRulesByQueues[n])&&n.forEach((function(n){t.ruleIterator(e,n)})),r&&r.forEach((function(n){t.ruleIterator(e,n)}))},z.prototype.ruleIterator=function(e,n){!0===e.prefs.live&&!1===n.live||!1===e.prefs.live&&!0===n.live||"common"!==n.locale&&n.locale!==e.prefs.locale[0]||!this.isEnabledRule(n.name)||e.prefs.ruleFilter&&!e.prefs.ruleFilter(n)||(this.onBeforeRule&&this.onBeforeRule(n.name,e),e.text=n.handler.call(this,e.text,this.settings[n.name],e),this.onAfterRule&&this.onAfterRule(n.name,e))},z.prototype.prepareRuleSettings=function(e){this.settings[e.name]=U(e.settings),this.enabledRules[e.name]=e.enabled},z.prototype.enable=function(e,n){var t=this;Array.isArray(e)?e.forEach((function(e){t.enableByMask(e,n)})):this.enableByMask(e,n)},z.prototype.enableByMask=function(e,n){var t,r=this;e&&(-1!==e.search(/\*/)?(t=new RegExp(e.replace(/\//g,"\\/").replace(/\*/g,".*")),this.rules.forEach((function(e){e=e.name,t.test(e)&&(r.enabledRules[e]=n)}))):this.enabledRules[e]=n)},z.groups=[],z.titles={},z.version="7.1.0";var P=z;function z(e){var n=this;this.rules=[],this.innerRules=[],this.rulesByQueues={},this.innerRulesByQueues={},this.separatePartsTags=["title","p","h[1-6]","select","legend"],this.prefs={locale:c(e.locale),lineEnding:M(e.lineEnding),live:Boolean(e.live),ruleFilter:e.ruleFilter,enableRule:e.enableRule,disableRule:e.disableRule,processingSeparateParts:e.processingSeparateParts,htmlEntity:N(e.htmlEntity)},l(this.prefs.locale),this.safeTags=new x,this.settings={},this.enabledRules={},this.innerRulesByQueues={},this.innerRules=D(),this.innerRules.forEach((function(e){n.innerRulesByQueues[e.queue]=n.innerRulesByQueues[e.queue]||[],n.innerRulesByQueues[e.queue].push(e)})),this.rulesByQueues={},this.rules=B(),this.rules.forEach((function(e){n.prepareRuleSettings(e),n.rulesByQueues[e.queue]=n.rulesByQueues[e.queue]||[],n.rulesByQueues[e.queue].push(e)})),this.prefs.disableRule&&this.disableRule(this.prefs.disableRule),this.prefs.enableRule&&this.enableRule(this.prefs.enableRule)}[{"common/char":"a-z","common/dash":"--?|‒|–|—","common/quote":'«‹»›„“‟”"'},{"be/char":"абвгдежзйклмнопрстуфхцчшыьэюяёіўґ","be/quote":{left:"«“",right:"»”"}},{"bg/char":"абвгдежзийклмнопрстуфхцчшщъьюя","bg/quote":{left:"„’",right:"“’"}},{"ca/char":"abcdefghijlmnopqrstuvxyzàçèéíïòóúü","ca/quote":{left:"«“",right:"»”"}},{"cs/char":"a-záéíóúýčďěňřšťůž","cs/quote":{left:"„‚",right:"“‘"}},{"da/char":"a-zåæø","da/quote":{left:"»›",right:"«‹"}},{"de/char":"a-zßäöü","de/quote":{left:"„‚",right:"“‘"}},{"el/char":"ΐάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώϲάέήίόύώ","el/quote":{left:"«“",right:"»”"}},{"en-GB/char":"a-z","en-GB/quote":{left:"‘“",right:"’”"}},{"en-US/char":"a-z","en-US/quote":{left:"“‘",right:"”’"}},{"eo/char":"abcdefghijklmnoprstuvzĉĝĥĵŝŭ","eo/quote":{left:"“‘",right:"”’"}},{"es/char":"a-záéíñóúü","es/quote":{left:"«“",right:"»”"}},{"et/char":"abdefghijklmnoprstuvzäõöüšž","et/quote":{left:"„«",right:"“»"}},{"fi/char":"abcdefghijklmnopqrstuvyöäå","fi/quote":{left:"”’",right:"”’"}},{"fr/char":"a-zàâçèéêëîïôûüœæ","fr/quote":{left:"«‹",right:"»›",spacing:!0}},{"ga/char":"abcdefghilmnoprstuvwxyzáéíóú","ga/quote":{left:"“‘",right:"”’"}},{"hu/char":"a-záäéíóöúüőű","hu/quote":{left:"„»",right:"”«"}},{"it/char":"a-zàéèìòù","it/quote":{left:"«“",right:"»”"}},{"lv/char":"abcdefghijklmnopqrstuvxzæœ","lv/quote":{left:"«„",right:"»“"}},{"nl/char":"a-zäçèéêëîïñöûü","nl/quote":{left:"‘“",right:"’”"}},{"no/char":"a-zåæèéêòóôø","no/quote":{left:"«’",right:"»’"}},{"pl/char":"abcdefghijklmnoprstuvwxyzóąćęłńśźż","pl/quote":{left:"„«",right:"”»"}},{"ro/char":"abcdefghijklmnoprstuvxzîășț","ro/quote":{left:"„«",right:"”»"}},{"ru/char":"а-яё","ru/dashBefore":"(^| |\\n)","ru/dashAfter":"(?=[  ,.?:!]|$)","ru/dashAfterDe":"(?=[,.?:!]|[  ][^А-ЯЁ]|$)","ru/l":"а-яёa-z","ru/L":"А-ЯЁA-Z","ru/month":"январь|февраль|март|апрель|май|июнь|июль|август|сентябрь|октябрь|ноябрь|декабрь","ru/monthGenCase":"января|февраля|марта|апреля|мая|июня|июля|августа|сентября|октября|ноября|декабря","ru/monthPreCase":"январе|феврале|марте|апреле|мае|июне|июле|августе|сентябре|октябре|ноябре|декабре","ru/quote":{left:"«„‚",right:"»“‘",removeDuplicateQuotes:!0},"ru/shortMonth":"янв|фев|мар|апр|ма[ейя]|июн|июл|авг|сен|окт|ноя|дек","ru/weekday":"понедельник|вторник|среда|четверг|пятница|суббота|воскресенье"},{"sk/char":"abcdefghijklmnoprstuvwxyzáäéíóôúýčďľňŕšťž","sk/quote":{left:"„‚",right:"“‘"}},{"sl/char":"a-zčšž","sl/quote":{left:"„‚",right:"“‘"}},{"sr/char":"abcdefghijklmnoprstuvzćčđšž","sr/quote":{left:"„’",right:"”’"}},{"sv/char":"a-zäåéö","sv/quote":{left:"”’",right:"”’"}},{"tr/char":"abcdefghijklmnoprstuvyzâçîöûüğış","tr/quote":{left:"“‘",right:"”’"}},{"uk/char":"абвгдежзийклмнопрстуфхцчшщьюяєіїґ","uk/quote":{left:"«„",right:"»“"}}].forEach(m);var I={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},C={name:"common/html/escape",index:"+100",queue:"end",handler:function(e){return e.replace(/[&<>"'/]/g,(function(e){return I[e]}))},disabled:!0},O=new RegExp("<("+["address","article","aside","blockquote","canvas","dd","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","li","main","nav","noscript","ol","output","p","pre","section","table","tfoot","ul","video"].join("|")+")[>\\s]");function H(e,n,t,r){return n+t.replace(/([^\u00A0])\u00A0([^\u00A0])/g,"$1 $2")+r}function j(){this.bufferQuotes={left:"",right:""},this.beforeLeft=" \n\t [(",this.afterRight=" \n\t !?.:;#*,…)\\]"}P.addRules([{name:"common/html/e-mail",queue:"end",handler:function(e,n,t){return t.isHTML?e:e.replace(/(^|[\s;(])([\w\-.]{2,64})@([\w\-.]{2,64})\.([a-z]{2,64})([)\s.,!?]|$)/gi,'$1<a href="mailto:$2@$3.$4">$2@$3.$4</a>$5')},disabled:!0,htmlAttrs:!1},C,{name:"common/html/nbr",index:"+10",queue:"end",handler:function(e){return e.replace(/([^\n>])\n(?=[^\n])/g,"$1<br/>\n")},disabled:!0,htmlAttrs:!1},{name:"common/html/p",index:"+5",queue:"end",handler:function(e){return(e=e.split("\n\n")).forEach((function(e,n,t){!e.trim()||O.test(e)||(t[n]=e.replace(/^(\s*)/,"$1<p>").replace(/(\s*)$/,"</p>$1"))})),e.join("\n\n")},disabled:!0,htmlAttrs:!1},{name:"common/html/processingAttrs",queue:"hide-safe-tags-own",handler:function(e,n,t){var r=this,a=new RegExp("(^|\\s)("+n.attrs.join("|")+")=(\"[^\"]*?\"|'[^']*?')","gi"),u=U(t.prefs);return u.ruleFilter=function(e){return!1!==e.htmlAttrs},e.replace(/(<[-\w]+\s)([^>]+?)(?=>)/g,(function(e,n,t){return n+t.replace(a,(function(e,n,t,a){var o=a[0],s=a[a.length-1];return a=a.slice(1,-1),n+t+"="+o+r.execute(a,u)+s}))}))},settings:{attrs:["title","placeholder"]},disabled:!0,htmlAttrs:!1},{name:"common/html/quot",queue:"hide-safe-tags",handler:function(e){return e.replace(/&quot;/g,'"')}},{name:"common/html/stripTags",index:"+99",queue:"end",handler:function(e){return e.replace(/<[^>]+>/g,"")},disabled:!0},{name:"common/html/url",queue:"end",handler:function(e,n,t){return t.isHTML?e:e.replace(g,(function(e,n,t){t=t.replace(/([^/]+\/?)(\?|#)$/,"$1").replace(/^([^/]+)\/$/,"$1"),"http"===n?t=t.replace(/^([^/]+)(:80)([^\d]|\/|$)/,"$1$3"):"https"===n&&(t=t.replace(/^([^/]+)(:443)([^\d]|\/|$)/,"$1$3"));var r=t,a='<a href="'+(t=n+"://"+t)+'">';return"http"===n||"https"===n?(r=r.replace(/^www\./,""),a+("http"===n?r:n+"://"+r)+"</a>"):a+t+"</a>"}))},disabled:!0,htmlAttrs:!1}]),C={name:"common/nbsp/afterNumber",handler:function(e,n,t){return t=t.getData("char"),e.replace(new RegExp("(^|\\s)(\\d{1,5}) (["+t+"]+)","gi"),"$1$2 $3")},disabled:!0},P.addRules([C,{name:"common/nbsp/afterParagraphMark",handler:function(e){return e.replace(/\xb6 ?(?=\d)/g,"¶ ")}},{name:"common/nbsp/afterSectionMark",handler:function(e,n,t){return t=t.prefs.locale[0],e.replace(/\xa7[ \u00A0\u2009]?(?=\d|I|V|X)/g,"ru"===t?"§ ":"§ ")}},{name:"common/nbsp/afterShortWord",handler:function(e,n,t){n=n.lengthShortWord;var r=p["common/quote"];return t=t.getData("char"),r=new RegExp("(^|[  ("+r+"])(["+t+"]{1,"+n+"}) ","gim"),e.replace(r,"$1$2 ").replace(r,"$1$2 ")},settings:{lengthShortWord:2}},{name:"common/nbsp/beforeShortLastNumber",handler:function(e,n,t){var r=t.getData("quote"),a=(t=t.getData("char")).toUpperCase();return t=new RegExp("(["+t+a+"]) (?=\\d{1,"+n.lengthLastNumber+"}[-+−%'\""+r.right+")]?([.!?…]( ["+a+"]|$)|$))","gm"),e.replace(t,"$1 ")},live:!1,settings:{lengthLastNumber:2}},{name:"common/nbsp/beforeShortLastWord",handler:function(e,n,t){var r=(t=t.getData("char")).toUpperCase();return t=new RegExp("(["+t+"\\d]) (["+t+r+"]{1,"+n.lengthLastWord+"}[.!?…])( ["+r+"]|$)","g"),e.replace(t,"$1 $2$3")},settings:{lengthLastWord:3}},{name:"common/nbsp/dpi",handler:function(e){return e.replace(/(\d) ?(lpi|dpi)(?!\w)/,"$1 $2")}},{name:"common/nbsp/nowrap",queue:"end",handler:function(e){return e.replace(/(<nowrap>)(.*?)(<\/nowrap>)/g,H).replace(/(<nobr>)(.*?)(<\/nobr>)/g,H)}},{name:"common/nbsp/replaceNbsp",queue:"utf",live:!1,handler:w,disabled:!0}]),C={name:"common/number/digitGrouping",index:"310",disabled:!0,handler:function(e,n){return e.replace(new RegExp("(^ ?|\\D |".concat($,")(\\d{1,3}([    ]\\d{3})+)(?! ?[\\d-])"),"gm"),(function(e,t,r){return t+r.replace(/\s/g,n.space)})).replace(/(\d{5,}([.,]\d+)?)/g,(function(e,t){var r=t.match(/[.,]/),a=(t=r?t.split(r):[t])[0];return t=t[1],a=a.replace(/(\d)(?=(\d{3})+([^\d]|$))/g,"$1"+n.space),r?a+r+t:a}))},settings:{space:" "}},P.addRules([C,{name:"common/number/fraction",handler:function(e){return e.replace(/(^|\D)1\/2(\D|$)/g,"$1½$2").replace(/(^|\D)1\/4(\D|$)/g,"$1¼$2").replace(/(^|\D)3\/4(\D|$)/g,"$1¾$2")}},{name:"common/number/mathSigns",handler:function(e){return E(e,[[/!=/g,"≠"],[/<=/g,"≤"],[/(^|[^=])>=/g,"$1≥"],[/<=>/g,"⇔"],[/<</g,"≪"],[/>>/g,"≫"],[/~=/g,"≅"],[/(^|[^+])\+-/g,"$1±"]])}},{name:"common/number/times",handler:function(e){return e.replace(/(\d)[ \u00A0]?[x\u0445][ \u00A0]?(\d)/g,"$1×$2")}}]),P.addRules([{name:"common/other/delBOM",queue:"start",index:-1,handler:function(e){return 65279===e.charCodeAt(0)?e.slice(1):e}},{name:"common/other/repeatWord",handler:function(e,n,t){var r=p["common/quote"];return t=t.getData("char"),r="[;:,.?! \n"+r+"]",t=new RegExp("("+r+"|^)(["+t+"]{"+n.min+",}) \\2("+r+"|$)","gi"),e.replace(t,"$1$2$3")},settings:{min:2},disabled:!0}]),C={name:"common/punctuation/apostrophe",handler:function(e,n,t){return t="(["+t.getData("char")+"])",t=new RegExp(t+"'"+t,"gi"),e.replace(t,"$1’$2")}},j.prototype.process=function(e){var n,t,r=e.context.text;return this.count(r).total&&(n=e.settings,(t=e.settings.left[0]===e.settings.right[0])&&(e.settings=U(e.settings),e.settings.left=this.bufferQuotes.left.slice(0,e.settings.left.length),e.settings.right=this.bufferQuotes.right.slice(0,e.settings.right.length)),e.settings.spacing&&(r=this.removeSpacing(r,e.settings)),r=this.set(r,e),e.settings.spacing&&(r=this.setSpacing(r,e.settings)),e.settings.removeDuplicateQuotes&&(r=this.removeDuplicates(r,e.settings)),t)&&(r=this.returnOriginalQuotes(r,n,e.settings),e.settings=n),r},j.prototype.returnOriginalQuotes=function(e,n,t){for(var r={},a=0;a<t.left.length;a++)r[t.left[a]]=n.left[a],r[t.right[a]]=n.right[a];return e.replace(new RegExp("["+t.left+t.right+"]","g"),(function(e){return r[e]}))},j.prototype.count=function(e){var n={total:0};return e.replace(new RegExp("["+p["common/quote"]+"]","g"),(function(e){return n[e]||(n[e]=0),n[e]++,n.total++,e})),n},j.prototype.removeDuplicates=function(e,n){var t=n.left[0],r=n.left[1]||t;return n=n.right[0],t!==r?e:e.replace(new RegExp(t+t,"g"),t).replace(new RegExp(n+n,"g"),n)},j.prototype.removeSpacing=function(e,n){for(var t=0,r=n.left.length;t<r;t++){var a=n.left[t],u=n.right[t];e=e.replace(new RegExp(a+"([   ])","g"),a).replace(new RegExp("([   ])"+u,"g"),u)}return e},j.prototype.setSpacing=function(e,n){for(var t=0,r=n.left.length;t<r;t++){var a=n.left[t],u=n.right[t];e=e.replace(new RegExp(a+"([^ ])","g"),a+" $1").replace(new RegExp("([^ ])"+u,"g"),"$1 "+u)}return e},j.prototype.set=function(e,n){var t=p["common/quote"],r=n.settings.left[0],a=n.settings.left[1]||r,u=n.settings.right[0],o=new RegExp("(^|["+this.beforeLeft+"])(["+t+"]+)(?=[^\\s])","gim");return t=new RegExp("([^\\s])(["+t+"]+)(?=["+this.afterRight+"]|$)","gim"),e=e.replace(o,(function(e,n,t){return n+R(r,t.length)})).replace(t,(function(e,n,t){return n+R(u,t.length)})),e=this.setAboveTags(e,n),r!==a?this.setInner(e,n.settings):e},j.prototype.setAboveTags=function(e,n){var t=this,r=n.settings.left[0],a=n.settings.right[0];return e.replace(new RegExp("(^|.)(["+p["common/quote"]+"])(.|$)","gm"),(function(u,o,s,i,c){return o!==$&&i!==$?u:o===$&&i===$?'"'===s?o+t.getAboveTwoTags(e,c+1,n)+i:u:o===$?(s=-1<t.afterRight.indexOf(i),u=n.safeTags.getPrevTagInfo(n.context,e,c-1),s&&u&&"html"===u.group?o+(u.isClosing?a:r)+i:o+(!i||s?a:r)+i):(u=-1<t.beforeLeft.indexOf(o),s=n.safeTags.getNextTagInfo(n.context,e,c+1),u&&s&&"html"===s.group?o+(s.isClosing?a:r)+i:o+(!o||u?r:a)+i)}))},j.prototype.getAboveTwoTags=function(e,n,t){var r=t.safeTags.getPrevTagInfo(t.context,e,n),a=t.safeTags.getNextTagInfo(t.context,e,n);if(r&&"html"===r.group){if(!r.isClosing)return t.settings.left[0];if(a&&a.isClosing&&r.isClosing)return t.settings.right[0]}return e[n]},j.prototype.setInner=function(e,n){for(var t=n.left[0],r=n.right[0],a=this.getMaxLevel(e,t,r,n.left.length),u=0,o="",s=0,i=e.length;s<i;s++){var c=e[s];c===t?(o+=n.left[a-1<u?a-1:u],a<++u&&(u=a)):c===r?(--u<0&&(u=0),o+=n.right[u]):('"'===c&&(u=0),o+=c)}return o},j.prototype.getMaxLevel=function(e,n,t,r){return(e=this.count(e))[n]===e[t]?r:Math.min(r,2)};var Q=new j,F={},Y=(o.forEach((function(e){F[e]=U(p[e+"/quote"])})),{name:"common/punctuation/quote",handler:function(e,n,t){return(n=n[t.prefs.locale[0]])?Q.process({context:t,settings:n,safeTags:this.safeTags}):e},settings:F}),X=(P.addRules([C,{name:"common/punctuation/delDoublePunctuation",handler:function(e){return e.replace(/(^|[^,]),,(?!,)/g,"$1,").replace(/(^|[^:])::(?!:)/g,"$1:").replace(/(^|[^!?.])\.\.(?!\.)/g,"$1.").replace(/(^|[^;]);;(?!;)/g,"$1;").replace(/(^|[^?])\?\?(?!\?)/g,"$1?")}},{name:"common/punctuation/hellip",handler:function(e,n,t){return"ru"===t.prefs.locale[0]?e.replace(/(^|[^.])\.{3,4}(?=[^.]|$)/g,"$1…"):e.replace(/(^|[^.])\.{3}(\.?)(?=[^.]|$)/g,"$1…$2")}},Y,{name:"common/punctuation/quoteLink",queue:"show-safe-tags-html",index:"+5",handler:function(e,n,t){t=this.getSetting("common/punctuation/quote",t.prefs.locale[0]);var r=u.getByUtf(t.left[0]),a=u.getByUtf(t.right[0]),o=(o=u.getByUtf(t.left[1]))?"|"+o:"";return t=(t=u.getByUtf(t.right[1]))?"|"+t:"",r=new RegExp("(<[aA]\\s[^>]*?>)("+r+o+")([^]*?)("+a+t+")(</[aA]>)","g"),e.replace(r,"$2$1$3$5$4")}}]),C={name:"common/space/beforeBracket",handler:function(e,n,t){return t=t.getData("char"),t=new RegExp("(["+t+".!?,;…)])\\(","gi"),e.replace(t,"$1 (")}},Y={name:"common/space/delRepeatN",index:"-1",handler:function(e,n){n=n.maxConsecutiveLineBreaks;var t=new RegExp("\n{".concat(n+1,",}"),"g");return n=R("\n",n),e.replace(t,n)},settings:{maxConsecutiveLineBreaks:2}},{name:"common/space/trimLeft",index:"-4",handler:String.prototype.trimLeft?function(e){return e.trimLeft()}:function(e){return e.replace(/^[\s\uFEFF\xA0]+/g,"")}}),W={name:"common/space/trimRight",index:"-3",live:!1,handler:String.prototype.trimRight?function(e){return e.trimRight()}:function(e){return e.replace(/[\s\uFEFF\xA0]+$/g,"")}},G=new RegExp('(\\D):([^)",:.?\\s\\/\\\\])',"g"),K={name:"common/space/afterColon",handler:function(e){return e.replace(G,"$1: $2")}},V={name:"common/space/afterComma",handler:function(e,n,t){return t="string"==typeof(t=t.getData("quote"))?t:t.right,e.replace(new RegExp('(.),([^)",:.?\\s\\/\\\\'+t+"])","g"),(function(e,n,t){return b(n)&&b(t)?e:n+", "+t}))}},Z=new RegExp("\\?([^).…!;?\\s[\\])"+p["common/quote"]+"])","g"),J={name:"common/space/afterQuestionMark",handler:function(e){return e.replace(Z,"? $1")}},_=new RegExp("!([^).…!;?\\s[\\])"+p["common/quote"]+"])","g"),ee={name:"common/space/afterExclamationMark",handler:function(e){return e.replace(_,"! $1")}},ne=new RegExp(";([^).…!;?\\s[\\])"+p["common/quote"]+"])","g"),te=(P.addRules([K,V,J,ee,{name:"common/space/afterSemicolon",handler:function(e){return e.replace(ne,"; $1")}},C,{name:"common/space/bracket",handler:function(e){return e.replace(/(\() +/g,"(").replace(/ +\)/g,")")}},{name:"common/space/delBeforeDot",handler:function(e){return e.replace(/(^|[^!?:;,.\u2026]) (\.|\.\.\.)(\s|$)/g,"$1$2$3")}},{name:"common/space/delBeforePercent",handler:function(e){return e.replace(/(\d)( |\u00A0)(%|\u2030|\u2031)/g,"$1$3")}},{name:"common/space/delBeforePunctuation",handler:function(e){return e.replace(/(^|[^!?:;,.\u2026]) ([!?:;,])(?!\))/g,"$1$2")}},{name:"common/space/delBetweenExclamationMarks",handler:function(e){return e.replace(/([!?]) (?=[!?])/g,"$1")}},{name:"common/space/delLeadingBlanks",handler:function(e){return e.replace(/^[ \t]+/gm,"")},disabled:!0},Y,{name:"common/space/delRepeatSpace",index:"-1",handler:function(e){return e.replace(/([^\n \t])[ \t]{2,}(?![\n \t])/g,"$1 ")}},{name:"common/space/delTrailingBlanks",index:"-3",handler:function(e){return e.replace(/[ \t]+\n/g,"\n")}},{name:"common/space/insertFinalNewline",queue:"end",handler:function(e){return"\n"===e[e.length-1]?e:e+"\n"},live:!1,disabled:!0},{name:"common/space/replaceTab",index:"-5",handler:function(e){return e.replace(/\t/g," ")}},{name:"common/space/squareBracket",handler:function(e){return e.replace(/(\[) +/g,"[").replace(/ +\]/g,"]")}},X,W]),K={name:"common/symbols/arrow",handler:function(e){return E(e,[[/(^|[^-])->(?!>)/g,"$1→"],[/(^|[^<])<-(?!-)/g,"$1←"]])}},P.addRules([K,{name:"common/symbols/cf",handler:function(e){var n=new RegExp('(^|[\\s(\\[+≈±−—–\\-])(\\d+(?:[.,]\\d+)?)[   ]?(C|F)([\\W\\s.,:!?")\\]]|$)',"mg");return e.replace(n,"$1$2 °$3$4")}},{name:"common/symbols/copy",handler:function(e){return E(e,[[/\(r\)/gi,"®"],[/(copyright )?\((c|\u0441)\)/gi,"©"],[/\(tm\)/gi,"™"]])}}]),V={name:"en-US/dash/main",index:"-5",handler:function(e){var n=p["common/dash"],t="[ ".concat(" ","]"),r="[ ".concat(" ","\n]");return t=new RegExp("".concat(t,"(").concat(n,")(").concat(r,")"),"g"),e.replace(t,"".concat(" ").concat("—","$2"))}},P.addRules([V]),J={name:"ru/dash/centuries",handler:function(e,n){var t=new RegExp("(X|I|V)[ | ]?("+p["common/dash"]+")[ | ]?(X|I|V)","g");return e.replace(t,"$1"+n.dash+"$3")},settings:{dash:"–"}},P.addRules([J,{name:"ru/dash/daysMonth",handler:function(e,n){var t=new RegExp("(^|\\s)([123]?\\d)("+p["common/dash"]+")([123]?\\d)[  ]("+p["ru/monthGenCase"]+")","g");return e.replace(t,"$1$2"+n.dash+"$4 $5")},settings:{dash:"–"}},{name:"ru/dash/de",handler:function(e){var n=new RegExp("([a-яё]+) де"+p["ru/dashAfterDe"],"g");return e.replace(n,"$1-де")},disabled:!0},{name:"ru/dash/decade",handler:function(e,n){var t=new RegExp("(^|\\s)(\\d{3}|\\d)0("+p["common/dash"]+")(\\d{3}|\\d)0(-е[  ])(?=г\\.?[  ]?г|год)","g");return e.replace(t,"$1$20"+n.dash+"$40$5")},settings:{dash:"–"}},{name:"ru/dash/directSpeech",handler:function(e){var n=p["common/dash"],t=new RegExp('(["»‘“,])[ | ]?('.concat(n,")[ | ]"),"g"),r=new RegExp("(^|".concat($,")(").concat(n,")( | )"),"gm");return n=new RegExp("([.…?!])[  ](".concat(n,")[  ]"),"g"),e.replace(t,"$1 — ").replace(r,"$1— ").replace(n,"$1 — ")}},{name:"ru/dash/izpod",handler:function(e){var n=new RegExp(p["ru/dashBefore"]+"(И|и)з под"+p["ru/dashAfter"],"g");return e.replace(n,"$1$2з-под")}},{name:"ru/dash/izza",handler:function(e){var n=new RegExp(p["ru/dashBefore"]+"(И|и)з за"+p["ru/dashAfter"],"g");return e.replace(n,"$1$2з-за")}},{name:"ru/dash/ka",handler:function(e){var n=new RegExp("([a-яё]+) ка(сь)?"+p["ru/dashAfter"],"g");return e.replace(n,"$1-ка$2")}},{name:"ru/dash/koe",handler:function(e){var n=new RegExp(p["ru/dashBefore"]+"([Кк]о[ей])\\s([а-яё]{3,})"+p["ru/dashAfter"],"g");return e.replace(n,"$1$2-$3")}},{name:"ru/dash/main",index:"-5",handler:function(e){var n=new RegExp("([  ])("+p["common/dash"]+")([  \\n])","g");return e.replace(n," —$3")}},{name:"ru/dash/month",handler:function(e,n){var t="("+p["ru/month"]+")",r="("+p["ru/monthPreCase"]+")",a=p["common/dash"];return t=new RegExp(t+" ?("+a+") ?"+t,"gi"),a=new RegExp(r+" ?("+a+") ?"+r,"gi"),r="$1"+n.dash+"$3",e.replace(t,r).replace(a,r)},settings:{dash:"–"}},{name:"ru/dash/surname",handler:function(e){var n=new RegExp("([А-ЯЁ][а-яё]+)\\s-([а-яё]{1,3})(?![^а-яё]|$)","g");return e.replace(n,"$1 —$2")}},{name:"ru/dash/taki",handler:function(e){var n=new RegExp("(верно|довольно|опять|прямо|так|вс[её]|действительно|неужели)\\s(таки)"+p["ru/dashAfter"],"g");return e.replace(n,"$1-$2")}},{name:"ru/dash/time",handler:function(e,n){var t=new RegExp(p["ru/dashBefore"]+"(\\d?\\d:[0-5]\\d)"+p["common/dash"]+"(\\d?\\d:[0-5]\\d)"+p["ru/dashAfter"],"g");return e.replace(t,"$1$2"+n.dash+"$3")},settings:{dash:"–"}},{name:"ru/dash/to",handler:function(e){var n=new RegExp("(^|[^А-ЯЁа-яё\\w])([Оо]ткуда|[Кк]уда|[Гг]де|[Кк]огда|[Зз]ачем|[Пп]очему|[Кк]ак|[Кк]ако[ейм]|[Кк]акая|[Кк]аки[емх]|[Кк]акими|[Кк]акую|[Чч]то|[Чч]его|[Чч]е[йм]|[Чч]ьим?|[Кк]то|[Кк]ого|[Кк]ому|[Кк]ем)( | -|- )(то|либо|нибудь)"+p["ru/dashAfter"],"g");return e.replace(n,(function(e,n,t,r,a){return"как то"===(r=t+r+a)||"Как то"===r?e:n+t+"-"+a}))}},{name:"ru/dash/kakto",handler:function(e){var n=new RegExp("(^|[^А-ЯЁа-яё\\w])([Кк]ак) то"+p["ru/dashAfter"],"g");return e.replace(n,"$1$2-то")}},{name:"ru/dash/weekday",handler:function(e,n){var t="("+p["ru/weekday"]+")";return t=new RegExp(t+" ?("+p["common/dash"]+") ?"+t,"gi"),e.replace(t,"$1"+n.dash+"$3")},settings:{dash:"–"}},{name:"ru/dash/years",handler:function(e,n){var t=new RegExp("(\\D|^)(\\d{4})[  ]?("+p["common/dash"]+")[  ]?(\\d{4})(?=[  ]?г)","g");return e.replace(t,(function(e,t,r,a,u){return parseInt(r,10)<parseInt(u,10)?t+r+n.dash+u:e}))},settings:{dash:"–"}}]),ee="(-|\\.|\\/)",C="(-|\\/)",new RegExp("(^|\\D)(\\d{4})"+ee+"(\\d{2})"+ee+"(\\d{2})(\\D|$)","gi")),re=new RegExp("(^|\\D)(\\d{2})"+C+"(\\d{2})"+C+"(\\d{4})(\\D|$)","gi");function ae(e,n,t,r){return"дд"===t&&"мм"===r||-1<["рф","ру","рус","орг","укр","бг","срб"].indexOf(r)?e:n+t+". "+r+"."}P.addRules([{name:"ru/date/fromISO",handler:function(e){return e.replace(te,"$1$6.$4.$2$7").replace(re,"$1$4.$2.$6$7")}},{name:"ru/date/weekday",handler:function(e){var n=new RegExp("(\\d)( | )("+p["ru/monthGenCase"]+"),( | )("+p["ru/weekday"]+")","gi");return e.replace(n,(function(e,n,t,r,a,u){return n+t+r.toLowerCase()+","+a+u.toLowerCase()}))}}]),Y={name:"ru/money/currency",handler:function(e){var n="([$€¥Ұ£₤₽])",t=new RegExp("(^|[\\D]{2})"+n+" ?("+d+"([    ]\\d{3})*)([    ]?(тыс\\.|млн|млрд|трлн))?","gm");return n=new RegExp("(^|[\\D])("+d+") ?"+n,"gm"),e.replace(t,(function(e,n,t,r,a,u,o,s){return n+r+(s?" "+s:"")+" "+t})).replace(n,"$1$2 $4")},disabled:!0},P.addRules([Y,{name:"ru/money/ruble",handler:function(e){var n="$1 ₽",t="(\\d+)( | )?(р|руб)\\.",r=new RegExp("^"+t+"$","g"),a=new RegExp(t+"(?=[!?,:;])","g");return t=new RegExp(t+"(?=\\s+[A-ЯЁ])","g"),e.replace(r,n).replace(a,n).replace(t,n+".")},disabled:!0}]);var ue={2:"²","²":"²",3:"³","³":"³","":""};function oe(e,n){return n=new RegExp('<span class="('+n.join("|")+')">([^]*?)</span>',"g"),e.replace(n,"$2")}function se(e,n){return e.replace(/<title>[^]*?<\/title>/i,(function(e){return oe(e,n)}))}P.addRules([{name:"ru/nbsp/abbr",handler:function(e){var n=new RegExp("(^|\\s|".concat($,")([а-яё]{1,3})\\. ?([а-яё]{1,3})\\."),"g");return e.replace(n,ae).replace(n,ae)}},{name:"ru/nbsp/addr",handler:function(e){return e.replace(/(\s|^)(\u0434\u043e\u043c|\u0434\.|\u043a\u0432\.|\u043f\u043e\u0434\.|\u043f-\u0434) *(\d+)/gi,"$1$2 $3").replace(/(\s|^)(\u043c\u043a\u0440-\u043d|\u043c\u043a-\u043d|\u043c\u043a\u0440\.|\u043c\u043a\u0440\u043d)\s/gi,"$1$2 ").replace(/(\s|^)(\u044d\u0442\.) *(-?\d+)/gi,"$1$2 $3").replace(/(\s|^)(\d+) +\u044d\u0442\u0430\u0436([^\u0430-\u044f\u0451]|$)/gi,"$1$2 этаж$3").replace(/(\s|^)\u043b\u0438\u0442\u0435\u0440\s([\u0410-\u042f]|$)/gi,"$1литер $2").replace(/(\s|^)(\u043e\u0431\u043b|\u043a\u0440|\u0441\u0442|\u043f\u043e\u0441|\u0441|\u0434|\u0443\u043b|\u043f\u0435\u0440|\u043f\u0440|\u043f\u0440-\u0442|\u043f\u0440\u043e\u0441\u043f|\u043f\u043b|\u0431\u0443\u043b|\u0431-\u0440|\u043d\u0430\u0431|\u0448|\u0442\u0443\u043f|\u043e\u0444|\u043a\u043e\u043c\u043d?|\u0443\u0447|\u0432\u043b|\u0432\u043b\u0430\u0434|\u0441\u0442\u0440|\u043a\u043e\u0440)\. *([\u0430-\u044f\u0451a-z\d]+)/gi,"$1$2. $3").replace(/(\D[ \u00A0]|^)\u0433\. ?([\u0410-\u042f\u0401])/gm,"$1г. $2")}},{name:"ru/nbsp/afterNumberSign",handler:function(e){return e.replace(/\u2116[ \u00A0\u2009]?(\d|\u043f\/\u043f)/g,"№ $1")}},{name:"ru/nbsp/beforeParticle",index:"+5",handler:function(e){var n="(ли|ль|же|ж|бы|б)",t=new RegExp("([А-ЯЁа-яё]) "+n+'(?=[,;:?!"‘“»])',"g");return n=new RegExp("([А-ЯЁа-яё])[  ]"+n+"[  ]","g"),e.replace(t,"$1 $2").replace(n,"$1 $2 ")}},{name:"ru/nbsp/centuries",handler:function(e){var n=p["common/dash"],t="(^|\\s)([VIX]+)",r='(?=[,;:?!"‘“»]|$)',a=new RegExp(t+"[  ]?в\\.?"+r,"gm");return t=new RegExp(t+"("+n+")([VIX]+)[  ]?в\\.?([  ]?в\\.?)?"+r,"gm"),e.replace(a,"$1$2 в.").replace(t,"$1$2$3$4 вв.")}},{name:"ru/nbsp/dayMonth",handler:function(e){var n=new RegExp("(\\d{1,2}) ("+p["ru/shortMonth"]+")","gi");return e.replace(n,"$1 $2")}},{name:"ru/nbsp/initials",handler:function(e){var n=new RegExp("(^|[   "+p["ru/quote"].left+'"])([А-ЯЁ])\\.[   ]?([А-ЯЁ])\\.[   ]?([А-ЯЁ][а-яё]+)',"gm");return e.replace(n,"$1$2. $3. $4")}},{name:"ru/nbsp/m",index:"+5",handler:function(e){var n=new RegExp("(^|[\\s,.\\(])(\\d+)[  ]?(мм?|см|км|дм|гм|mm?|km|cm|dm)([23²³])?([\\s\\).!?,;]|$)","gm");return e.replace(n,(function(e,n,t,r,a,u){return n+t+" "+r+ue[a||""]+(" "===u?" ":u)}))}},{name:"ru/nbsp/mln",handler:function(e){return e.replace(/(\d) ?(\u0442\u044b\u0441|\u043c\u043b\u043d|\u043c\u043b\u0440\u0434|\u0442\u0440\u043b\u043d)(\.|\s|$)/gi,"$1 $2$3")}},{name:"ru/nbsp/ooo",handler:function(e){return e.replace(/(^|[^a-\u044f\u0451A-\u042f\u0401])(\u041e\u041e\u041e|\u041e\u0410\u041e|\u0417\u0410\u041e|\u041d\u0418\u0418|\u041f\u0411\u041e\u042e\u041b) /g,"$1$2 ")}},{name:"ru/nbsp/page",handler:function(e){var n=new RegExp("(^|[)\\s])(стр|гл|рис|илл?|ст|п|c)\\. *(\\d+)([\\s.,?!;:]|$)","gim");return e.replace(n,"$1$2. $3$4")}},{name:"ru/nbsp/ps",handler:function(e){var n=new RegExp("(^|\\s|".concat($,")[pз]\\.[  ]?([pз]\\.[  ]?)?[sы]\\.:? "),"gim");return e.replace(n,(function(e,n,t){return n+(t?"P. P. S. ":"P. S. ")}))}},{name:"ru/nbsp/rubleKopek",handler:function(e){return e.replace(/(\d) ?(?=(\u0440\u0443\u0431|\u043a\u043e\u043f)\.)/g,"$1 ")}},{name:"ru/nbsp/see",handler:function(e){var n=new RegExp("(^|\\s|".concat($,"|\\()(см|им)\\.[  ]?([а-яё0-9a-z]+)([\\s.,?!]|$)"),"gi");return e.replace(n,(function(e,n,t,r,a){return(" "===n?" ":n)+t+". "+r+a}))}},{name:"ru/nbsp/year",handler:function(e){return e.replace(/(^|\D)(\d{4}) ?\u0433([ ,;.\n]|$)/g,"$1$2 г$3")}},{name:"ru/nbsp/years",index:"+5",handler:function(e){var n=new RegExp("(^|\\D)(\\d{4})("+p["common/dash"]+')(\\d{4})[  ]?г\\.?([  ]?г\\.)?(?=[,;:?!"‘“»\\s]|$)',"gm");return e.replace(n,"$1$2$3$4 гг.")}}]),P.addRules([{name:"ru/number/comma",handler:function(e){return e.replace(/(^|\s)(\d+)\.(\d+[\u00A0\u2009\u202F ]*?[%\u2030\xb0\xd7x])/gim,"$1$2,$3")}},{name:"ru/number/ordinals",handler:function(e,n,t){return t=t.getData("char"),t=new RegExp("(\\d[%‰]?)-(ый|ой|ая|ое|ые|ым|ом|ых|ого|ому|ыми)(?!["+t+"])","g"),e.replace(t,(function(e,n,t){return n+"-"+{ой:"й",ый:"й",ая:"я",ое:"е",ые:"е",ым:"м",ом:"м",ых:"х",ого:"го",ому:"му",ыми:"ми"}[t]}))}}]);var ie=["typograf-oa-lbracket","typograf-oa-n-lbracket","typograf-oa-sp-lbracket"],ce=(W={name:X="ru/optalign/bracket",queue:"start",handler:function(e){return oe(e,ie)},htmlAttrs:!1},K={name:X,queue:"end",handler:function(e){return se(e,ie)},htmlAttrs:!1},["typograf-oa-comma","typograf-oa-comma-sp"]),le=(J={name:V="ru/optalign/comma",queue:"start",handler:function(e){return oe(e,ce)},htmlAttrs:!1},ee={name:V,queue:"end",handler:function(e){return se(e,ce)},htmlAttrs:!1},["typograf-oa-lquote","typograf-oa-n-lquote","typograf-oa-sp-lquote"]),pe=(Y={name:C="ru/optalign/quote",queue:"start",handler:function(e){return oe(e,le)},htmlAttrs:!1},{name:C,queue:"end",handler:function(e){return se(e,le)},htmlAttrs:!1}),me=(P.addRules([{name:X,handler:function(e){return e.replace(/( |\u00A0)\(/g,'<span class="typograf-oa-sp-lbracket">$1</span><span class="typograf-oa-lbracket">(</span>').replace(/^\(/gm,'<span class="typograf-oa-n-lbracket">(</span>')},disabled:!0,htmlAttrs:!1},{name:V,handler:function(e,n,t){return t=t.getData("char"),t=new RegExp("(["+t+"\\d́]+), ","gi"),e.replace(t,'$1<span class="typograf-oa-comma">,</span><span class="typograf-oa-comma-sp"> </span>')},disabled:!0,htmlAttrs:!1},{name:C,handler:function(e){var n="(["+(n=this.getSetting("common/punctuation/quote","ru")).left[0]+(n.left[1]||"")+"])",t=new RegExp("(^|\n\n|)("+n+")","g");return n=new RegExp("([^\n])([  \n])("+n+")","gi"),e.replace(t,'$1<span class="typograf-oa-n-lquote">$2</span>').replace(n,'$1<span class="typograf-oa-sp-lquote">$2</span><span class="typograf-oa-lquote">$3</span>')},disabled:!0,htmlAttrs:!1}]),P.addInnerRules([W,K,J,ee,Y,pe]),[]);function he(e){var n,t,r=e[0],a="";if(e.length<8)return ge(e);if(10<e.length)if("+"===r){if("7"!==e[1])return e;n=!0,e=e.substr(2)}else"8"===r&&(t=!0,e=e.substr(1));for(var u=8;2<=u;u--){var o=+e.substr(0,u);if(-1<me.indexOf(o)){a=e.substr(0,u),e=e.substr(u);break}}return a||(a=e.substr(0,5),e=e.substr(5)),(n?"+7 ":"")+(t?"8 ":"")+function(e){var n=+e,t=e.length,r=[e],a=!1;if(3<t)switch(t){case 4:r=[e.substr(0,2),e.substr(2,2)];break;case 5:r=[e.substr(0,3),e.substr(3,3)];break;case 6:r=[e.substr(0,2),e.substr(2,2),e.substr(4,2)]}else a=900<n&&n<=999||495==n||499==n;return t=r.join("-"),a?t:"("+t+")"}(a)+" "+ge(e)}function ge(e){var n="";return e.length%2&&(n=e[0],n+=e.length<=5?"-":"",e=e.substr(1,e.length-1)),n+e.split(/(?=(?:\d\d)+$)/).join("-")}function de(e){return e.replace(/[^\d+]/g,"")}[4162,416332,8512,851111,4722,4725,391379,8442,4732,4152,4154451,4154459,4154455,41544513,8142,8332,8612,8622,3525,812,8342,8152,3812,4862,3422,342633,8112,9142,8452,3432,3434,3435,4812,8432,8439,3822,4872,3412,3511,3512,3022,4112,4852,4855,3852,3854,8182,818,90,3472,4741,4764,4832,4922,8172,8202,8722,4932,493,3952,3951,3953,411533,4842,3842,3843,8212,4942,"39131-39179","39190-39199",391,4712,4742,8362,495,499,4966,4964,4967,498,8312,8313,3832,383612,3532,8412,4232,423370,423630,8632,8642,8482,4242,8672,8652,4752,4822,482502,4826300,3452,8422,4212,3466,3462,8712,8352,"901-934","936-939","950-953",958,"960-969","977-989","991-997",999].forEach((function(e){if("string"==typeof e)for(var n=e.split("-"),t=+n[0];t<=+n[1];t++)me.push(t);else me.push(e)})),P.addRules([{name:"ru/other/accent",handler:function(e){return e.replace(/([\u0430-\u044f\u0451])([\u0410\u0415\u0401\u0418\u041e\u0423\u042b\u042d\u042e\u042f])([^\u0410-\u042f\u0401\w]|$)/g,(function(e,n,t,r){return n+t.toLowerCase()+"́"+r}))},disabled:!0},{name:"ru/other/phone-number",live:!1,handler:function(e){var n=new RegExp("(^|,| |)(\\+7[\\d\\(\\)  -]{10,18})(?=,|;||$)","gm");return e.replace(n,(function(e,n,t){return 12===(t=de(t)).length?n+he(t):e})).replace(/(^|[^\u0430-\u044f\u0451])([\u260e\u260f\u2706\ud83d\udce0\ud83d\udcde\ud83d\udcf1]|\u0442\.|\u0442\u0435\u043b\.|\u0444\.|\u043c\u043e\u0431\.|\u0444\u0430\u043a\u0441|\u0441\u043e\u0442\u043e\u0432\u044b\u0439|\u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0439|\u0442\u0435\u043b\u0435\u0444\u043e\u043d)(:?\s*?)([+\d(][\d \u00A0\-()]{3,}\d)/gi,(function(e,n,t,r,a){return 5<=(a=de(a)).length?n+t+r+he(a):e}))}}]),X={name:"ru/punctuation/ano",handler:function(e){var n=new RegExp("([^«„[(!?,:;\\-‒–—\\s])(\\s+)(а|но)(?= | |\\n)","g");return e.replace(n,"$1,$2$3")}};var fe=(P.addRules([X,{name:"ru/punctuation/exclamation",handler:function(e){return e.replace(/(^|[^!])!{2}($|[^!])/gm,"$1!$2").replace(/(^|[^!])!{4}($|[^!])/gm,"$1!!!$2")},live:!1},{name:"ru/punctuation/exclamationQuestion",index:"+5",handler:function(e){var n=new RegExp("(^|[^!])!\\?([^?]|$)","g");return e.replace(n,"$1?!$2")}},{name:"ru/punctuation/hellipQuestion",handler:function(e){return e.replace(/(^|[^.])(\.\.\.|\u2026),/g,"$1…").replace(/(!|\?)(\.\.\.|\u2026)(?=[^.]|$)/g,"$1..")}}]),P.addRules([{name:"ru/space/afterHellip",handler:function(e){return e.replace(/([\u0430-\u044f\u0451])(\.\.\.|\u2026)([\u0410-\u042f\u0401])/g,"$1$2 $3").replace(/([?!]\.\.)([\u0430-\u044f\u0451a-z])/gi,"$1 $2")}},{name:"ru/space/year",handler:function(e,n,t){return t=t.getData("char"),t=new RegExp("(^| | )(\\d{3,4})(год([ауе]|ом)?)([^"+t+"]|$)","g"),e.replace(t,"$1$2 $3$5")}}]),P.addRules([{name:"ru/symbols/NN",handler:function(e){return e.replace(/\u2116\u2116/g,"№")}}]),{A:"А",a:"а",B:"В",E:"Е",e:"е",K:"К",M:"М",H:"Н",O:"О",o:"о",P:"Р",p:"р",C:"С",c:"с",T:"Т",y:"у",X:"Х",x:"х"}),be=Object.keys(fe).join("");return P.addRules([{name:"ru/typo/switchingKeyboardLayout",handler:function(e){var n=new RegExp("(["+be+"]{1,3})(?=[А-ЯЁа-яё]+?)","g");return e.replace(n,(function(e,n){for(var t="",r=0;r<n.length;r++)t+=fe[n[r]];return t}))}}]),P.titles={"common/html/e-mail":{"en-US":"Placement of links for e-mail",ru:"Расстановка ссылок для эл. почты"},"common/html/escape":{"en-US":"Escaping HTML",ru:"Экранирование HTML"},"common/html/nbr":{"en-US":"Replacement line break on <br/>",ru:"Замена перевода строки на <br/>"},"common/html/p":{"en-US":"Placement of paragraph",ru:"Расстановка абзацев"},"common/html/processingAttrs":{"en-US":"Processing HTML attributes",ru:"Типографирование HTML-атрибутов"},"common/html/quot":{common:'&⁠quot; → "'},"common/html/stripTags":{"en-US":"Removing HTML-tags",ru:"Удаление HTML-тегов"},"common/html/url":{"en-US":"Placement of links",ru:"Расстановка ссылок"},"common/nbsp/afterNumber":{"en-US":"Non-breaking space between number and word",ru:"Нераз. пробел между числом и словом"},"common/nbsp/afterParagraphMark":{"en-US":"Non-breaking space after ¶",ru:"Нераз. пробел после ¶"},"common/nbsp/afterSectionMark":{"en-US":"Non-breaking space after §",ru:"Нераз. узкий пробел после §"},"common/nbsp/afterShortWord":{"en-US":"Non-breaking space after short word",ru:"Нераз. пробел после короткого слова"},"common/nbsp/beforeShortLastNumber":{"en-US":"Non-breaking space before number (maximum 2 digits) at end of sentence",ru:"Нераз. пробел перед числом (не более 2 цифр) в конце предложения"},"common/nbsp/beforeShortLastWord":{"en-US":"Non-breaking space before last short word in sentence",ru:"Нераз. пробел перед последним коротким словом в предложении"},"common/nbsp/dpi":{"en-US":"Non-breaking space before lpi and dpi",ru:"Нераз. пробел перед lpi и dpi"},"common/nbsp/nowrap":{"en-US":"Replace non-breaking space to normal space in tags nowrap and nobr",ru:"Заменять нераз. пробел на обычный пробел в тегах nowrap и nobr"},"common/nbsp/replaceNbsp":{"en-US":"Replacing non-breaking space on normal before text correction",ru:"Замена неразрывного пробела на обычный перед типографированием"},"common/number/digitGrouping":{"en-US":"Divide into groups numbers with many digits",ru:"Разбивать длинные числа по разрядам"},"common/number/fraction":{common:"1/2 → ½, 1/4 → ¼, 3/4 → ¾"},"common/number/mathSigns":{common:"!= → ≠, <= → ≤, >= → ≥, ~= → ≅, +- → ±"},"common/number/times":{common:"x → × (10 x 5 → 10×5)"},"common/other/delBOM":{"en-US":"Delete character BOM (Byte Order Mark)",ru:"Удаление символа BOM (Byte Order Mark)"},"common/other/repeatWord":{"en-US":"Removing repeat words",ru:"Удаление повтора слова"},"common/punctuation/apostrophe":{"en-US":"Placement of correct apostrophe",ru:"Расстановка правильного апострофа"},"common/punctuation/delDoublePunctuation":{"en-US":"Removing double punctuation",ru:"Удаление двойной пунктуации"},"common/punctuation/hellip":{"en-US":"Replacement of three points by ellipsis",ru:"Замена трёх точек на многоточие"},"common/punctuation/quote":{"en-US":"Placement of quotation marks in texts",ru:"Расстановка кавычек правильного вида"},"common/punctuation/quoteLink":{"en-US":"Removal quotes outside a link",ru:"Вынос кавычек за пределы ссылки"},"common/space/afterColon":{"en-US":"space after colon",ru:"Пробел после двоеточия"},"common/space/afterComma":{"en-US":"space after comma",ru:"Пробел после запятой"},"common/space/afterExclamationMark":{"en-US":"space after exclamation mark",ru:"Пробел после знака восклицания"},"common/space/afterQuestionMark":{"en-US":"space after question mark",ru:"Пробел после знака вопроса"},"common/space/afterSemicolon":{"en-US":"space after semicolon",ru:"Пробел после точки с запятой"},"common/space/beforeBracket":{"en-US":"Space before opening bracket",ru:"Пробел перед открывающей скобкой"},"common/space/bracket":{"en-US":"Remove extra spaces after opening and before closing bracket",ru:"Удаление лишних пробелов после открывающей и перед закрывающей скобкой"},"common/space/delBeforeDot":{"en-US":"Remove space before dot",ru:"Удаление пробела перед точкой"},"common/space/delBeforePercent":{"en-US":"Remove space before %, ‰ and ‱",ru:"Удаление пробела перед %, ‰ и ‱"},"common/space/delBeforePunctuation":{"en-US":"Remove spaces before punctuation",ru:"Удаление пробелов перед знаками пунктуации"},"common/space/delBetweenExclamationMarks":{"en-US":"Remove spaces before exclamation marks",ru:"Удаление пробелов между знаками восклицания"},"common/space/delLeadingBlanks":{"en-US":"Remove spaces at start of line",ru:"Удаление пробелов в начале строки"},"common/space/delRepeatN":{"en-US":"Remove duplicate line breaks",ru:"Удаление повторяющихся переносов строки"},"common/space/delRepeatSpace":{"en-US":"Removing duplicate spaces between characters",ru:"Удаление повторяющихся пробелов между символами"},"common/space/delTrailingBlanks":{"en-US":"Remove spaces at end of line",ru:"Удаление пробелов в конце строки"},"common/space/insertFinalNewline":{"en-US":"Insert final newline",ru:"Вставить в конце текста перевод строки"},"common/space/replaceTab":{"en-US":"Replacement of tab to 4 spaces",ru:"Замена таба на 4 пробела"},"common/space/squareBracket":{"en-US":"Remove extra spaces after opening and before closing square bracket",ru:"Удаление лишних пробелов после открывающей и перед закрывающей квадратной скобкой"},"common/space/trimLeft":{"en-US":"Remove spaces and line breaks in beginning of text",ru:"Удаление пробелов и переносов строк в начале текста"},"common/space/trimRight":{"en-US":"Remove spaces and line breaks at end of text",ru:"Удаление пробелов и переносов строк в конце текста"},"common/symbols/arrow":{common:"-> → →, <- → ←"},"common/symbols/cf":{"en-US":"Adding ° to C and F",ru:"Добавление ° к C и F"},"common/symbols/copy":{common:"(c) → ©, (tm) → ™, (r) → ®"},"en-US/dash/main":{"en-US":"Replace hyphens surrounded by spaces with an em-dash",ru:"Замена дефиса на длинное тире"},"ru/dash/centuries":{"en-US":"Hyphen to dash in centuries",ru:"Замена дефиса на тире в веках"},"ru/dash/daysMonth":{"en-US":"Dash between days of one month",ru:"Тире между днями одного месяца"},"ru/dash/de":{"en-US":"Hyphen before “де”",ru:"Дефис перед «де»"},"ru/dash/decade":{"en-US":"Dash in decade",ru:"Тире в десятилетиях, 80—90-е гг."},"ru/dash/directSpeech":{"en-US":"Dash in direct speech",ru:"Тире в прямой речи"},"ru/dash/izpod":{"en-US":"Hyphen between “из-под”",ru:"Дефис между «из-под»"},"ru/dash/izza":{"en-US":"Hyphen between “из-за”",ru:"Дефис между «из-за»"},"ru/dash/ka":{"en-US":"Hyphen before “ка” and “кась”",ru:"Дефис перед «ка» и «кась»"},"ru/dash/kakto":{"en-US":"Hyphen for “как то”",ru:"Дефис для «как то»"},"ru/dash/koe":{"en-US":"Hyphen after “кое” and “кой”",ru:"Дефис после «кое» и «кой»"},"ru/dash/main":{"en-US":"Replacement hyphen with dash",ru:"Замена дефиса на тире"},"ru/dash/month":{"en-US":"Dash between months",ru:"Тире между месяцами"},"ru/dash/surname":{"en-US":"Acronyms with a dash",ru:"Сокращения с помощью тире"},"ru/dash/taki":{"en-US":"Hyphen between “верно-таки” and etc.",ru:"Дефис между «верно-таки» и т. д."},"ru/dash/time":{"en-US":"Dash in time intervals",ru:"Тире в интервалах времени"},"ru/dash/to":{"en-US":"Hyphen before “то”, “либо”, “нибудь”",ru:"Дефис перед «то», «либо», «нибудь»"},"ru/dash/weekday":{"en-US":"Dash between the days of the week",ru:"Тире между днями недели"},"ru/dash/years":{"en-US":"Hyphen to dash in years",ru:"Замена дефиса на тире в годах"},"ru/date/fromISO":{"en-US":"Converting dates YYYY-MM-DD type DD.MM.YYYY",ru:"Преобразование дат YYYY-MM-DD к виду DD.MM.YYYY"},"ru/date/weekday":{common:"2 Мая, Понедельник → 2 мая, понедельник"},"ru/money/currency":{"en-US":"Currency symbol ($, €, ¥, Ұ, £ and ₤) after the number, $100 → 100 $",ru:"Символ валюты ($, €, ¥, Ұ, £ и ₤) после числа, $100 → 100 $"},"ru/money/ruble":{common:"1 руб. → 1 ₽"},"ru/nbsp/abbr":{"en-US":"Non-breaking space in abbreviations, e.g. “т. д.”",ru:"Нераз. пробел в сокращениях, например, в «т. д.»"},"ru/nbsp/addr":{"en-US":"Placement of non-breaking space after “г.”, “обл.”, “ул.”, “пр.”, “кв.” et al.",ru:"Расстановка нераз. пробела после «г.», «обл.», «ул.», «пр.», «кв.» и др."},"ru/nbsp/afterNumberSign":{"en-US":"Non-breaking thin space after №",ru:"Нераз. узкий пробел после №"},"ru/nbsp/beforeParticle":{"en-US":"Non-breaking space before “ли”, “ль”, “же”, “бы”, “б”",ru:"Нераз. пробел перед «ли», «ль», «же», «бы», «б»"},"ru/nbsp/centuries":{"en-US":"Remove spaces and extra points in “вв.”",ru:"Удаление пробелов и лишних точек в «вв.»"},"ru/nbsp/dayMonth":{"en-US":"Non-breaking space between number and month",ru:"Нераз. пробел между числом и месяцем"},"ru/nbsp/initials":{"en-US":"Binding of initials to the name",ru:"Привязка инициалов к фамилии"},"ru/nbsp/m":{"en-US":"m2 → м², m3 → м³ and non-breaking space",ru:"м2 → м², м3 → м³ и нераз. пробел"},"ru/nbsp/mln":{"en-US":"Non-breaking space between number and “тыс.”, “млн”, “млрд” and “трлн”",ru:"Неразр. пробел между числом и «тыс.», «млн», «млрд» и «трлн»"},"ru/nbsp/ooo":{"en-US":"Non-breaking space after “OOO, ОАО, ЗАО, НИИ, ПБОЮЛ”",ru:"Нераз. пробел после OOO, ОАО, ЗАО, НИИ и ПБОЮЛ"},"ru/nbsp/page":{"en-US":"Non-breaking space after “стр.”, “гл.”, “рис.”, “илл.”",ru:"Нераз. пробел после «стр.», «гл.», «рис.», «илл.»"},"ru/nbsp/ps":{"en-US":"Non-breaking space in P. S. and P. P. S.",ru:"Нераз. пробел в P. S. и P. P. S."},"ru/nbsp/rubleKopek":{"en-US":"Not once. space before the “rub” and “cop.”",ru:"Нераз. пробел перед «руб.» и «коп.»"},"ru/nbsp/see":{"en-US":"Non-breaking space after abbreviation «см.» and «им.»",ru:"Нераз. пробел после сокращений «см.» и «им.»"},"ru/nbsp/year":{"en-US":"Non-breaking space before XXXX г. (2012 г.)",ru:"Нераз. пробел после XXXX г. (2012 г.)"},"ru/nbsp/years":{"en-US":"г.г. → гг. and non-breaking space",ru:"г.г. → гг. и нераз. пробел"},"ru/number/comma":{"en-US":"Commas in numbers",ru:"Замена точки на запятую в числах"},"ru/number/ordinals":{common:"N-ый, -ой, -ая, -ое, -ые, -ым, -ом, -ых → N-й, -я, -е, -м, -х (25-й)"},"ru/optalign/bracket":{"en-US":"for opening bracket",ru:"для открывающей скобки"},"ru/optalign/comma":{"en-US":"for comma",ru:"для запятой"},"ru/optalign/quote":{"en-US":"for opening quotation marks",ru:"для открывающей кавычки"},"ru/other/accent":{"en-US":"Replacement capital letters to lowercase with addition of accent",ru:"Замена заглавной буквы на строчную с добавлением ударения"},"ru/other/phone-number":{"en-US":"Formatting phone numbers",ru:"Форматирование телефонных номеров"},"ru/punctuation/ano":{"en-US":"Placement of commas before “а” and “но”",ru:"Расстановка запятых перед «а» и «но»"},"ru/punctuation/exclamation":{common:"!! → !"},"ru/punctuation/exclamationQuestion":{common:"!? → ?!"},"ru/punctuation/hellipQuestion":{common:"«?…» → «?..», «!…» → «!..», «…,» → «…»"},"ru/space/afterHellip":{"en-US":"Space after “...”, “!..” and “?..”",ru:"Пробел после «...», «!..» и «?..»"},"ru/space/year":{"en-US":"Space between number and word “год”",ru:"Пробел между числом и словом «год»"},"ru/symbols/NN":{common:"№№ → №"},"ru/typo/switchingKeyboardLayout":{"en-US":"Replacement of Latin letters in Russian. Typos occur when you switch keyboard layouts",ru:"Замена латинских букв на русские. Опечатки, возникающие при переключении клавиатурной раскладки"}},P.groups=[{name:"punctuation",title:{"en-US":"Punctuation",ru:"Пунктуация"}},{name:"optalign",title:{"en-US":"Hanging punctuation",ru:"Висячая пунктуация"}},{name:"dash",title:{"en-US":"Dash and hyphen",ru:"Тире и дефис"}},{name:"nbsp",title:{"en-US":"Non-breaking space",ru:"Неразрывный пробел"}},{name:"space",title:{"en-US":"Space and line ending",ru:"Пробел и окончание строки"}},{name:"html",title:{"en-US":"HTML",ru:"HTML"}},{name:"date",title:{"en-US":"Date",ru:"Дата"}},{name:"money",title:{"en-US":"Money",ru:"Деньги"}},{name:"number",title:{"en-US":"Numbers and mathematical expressions",ru:"Числа и математические выражения"}},{name:"symbols",title:{"en-US":"Symbols and signs",ru:"Символы и знаки"}},{name:"typo",title:{"en-US":"Typos",ru:"Опечатки"}},{name:"other",title:{"en-US":"Other",ru:"Прочее"}}],P}));
@@ -0,0 +1 @@
1
+ /*! typograf | © 2023 Denis Seleznev | MIT License | https://github.com/typograf/typograf */