46 lines
105 KiB
JavaScript
46 lines
105 KiB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):((e="undefined"!=typeof globalThis?globalThis:e||self).prettierPlugins=e.prettierPlugins||{},e.prettierPlugins.angular=t())}(this,(function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t={exports:{}};const n=function(){let{onlyFirst:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")};var r={exports:{}};const i=e=>!Number.isNaN(e)&&(e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141));r.exports=i,r.exports.default=i;const s=e=>"string"==typeof e?e.replace(n(),""):e,u=r.exports,a=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g},o=e=>{if("string"!=typeof e||0===e.length)return 0;if(0===(e=s(e)).length)return 0;e=e.replace(a()," ");let t=0;for(let n=0;n<e.length;n++){const r=e.codePointAt(n);r<=31||r>=127&&r<=159||(r>=768&&r<=879||(r>65535&&n++,t+=u(r)?2:1))}return t};t.exports=o,t.exports.default=o;var c=e=>e[e.length-1];function D(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function l(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var p=function(e){return e&&e.Math==Math&&e},h=p("object"==typeof globalThis&&globalThis)||p("object"==typeof window&&window)||p("object"==typeof self&&self)||p("object"==typeof e&&e)||function(){return this}()||Function("return this")(),d={},f=function(e){try{return!!e()}catch(e){return!0}},E=!f((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),v=Function.prototype.call,C=v.bind?v.bind(v):function(){return v.apply(v,arguments)},g={},F={}.propertyIsEnumerable,m=Object.getOwnPropertyDescriptor,y=m&&!F.call({1:2},1);g.f=y?function(e){var t=m(this,e);return!!t&&t.enumerable}:F;var x,A,w=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},S=Function.prototype,I=S.bind,O=S.call,b=I&&I.bind(O),N=I?function(e){return e&&b(O,e)}:function(e){return e&&function(){return O.apply(e,arguments)}},B=N,P=B({}.toString),T=B("".slice),R=function(e){return T(P(e),8,-1)},L=N,k=f,_=R,M=h.Object,j=L("".split),K=k((function(){return!M("z").propertyIsEnumerable(0)}))?function(e){return"String"==_(e)?j(e,""):M(e)}:M,G=h.TypeError,U=function(e){if(null==e)throw G("Can't call method on "+e);return e},W=K,$=U,V=function(e){return W($(e))},X=function(e){return"function"==typeof e},z=X,q=function(e){return"object"==typeof e?null!==e:z(e)},Q=h,Y=X,H=function(e){return Y(e)?e:void 0},J=function(e,t){return arguments.length<2?H(Q[e]):Q[e]&&Q[e][t]},Z=N({}.isPrototypeOf),ee=J("navigator","userAgent")||"",te=h,ne=ee,re=te.process,ie=te.Deno,se=re&&re.versions||ie&&ie.version,ue=se&&se.v8;ue&&(A=(x=ue.split("."))[0]>0&&x[0]<4?1:+(x[0]+x[1])),!A&&ne&&(!(x=ne.match(/Edge\/(\d+)/))||x[1]>=74)&&(x=ne.match(/Chrome\/(\d+)/))&&(A=+x[1]);var ae=A,oe=ae,ce=f,De=!!Object.getOwnPropertySymbols&&!ce((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&oe&&oe<41})),le=De&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,pe=J,he=X,de=Z,fe=le,Ee=h.Object,ve=fe?function(e){return"symbol"==typeof e}:function(e){var t=pe("Symbol");return he(t)&&de(t.prototype,Ee(e))},Ce=h.String,ge=function(e){try{return Ce(e)}catch(e){return"Object"}},Fe=X,me=ge,ye=h.TypeError,xe=function(e){if(Fe(e))return e;throw ye(me(e)+" is not a function")},Ae=xe,we=function(e,t){var n=e[t];return null==n?void 0:Ae(n)},Se=C,Ie=X,Oe=q,be=h.TypeError,Ne={exports:{}},Be=h,Pe=Object.defineProperty,Te=function(e,t){try{Pe(Be,e,{value:t,configurable:!0,writable:!0})}catch(n){Be[e]=t}return t},Re=Te,Le="__core-js_shared__",ke=h[Le]||Re(Le,{}),_e=ke;(Ne.exports=function(e,t){return _e[e]||(_e[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.1",mode:"global",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"});var Me=U,je=h.Object,Ke=function(e){return je(Me(e))},Ge=Ke,Ue=N({}.hasOwnProperty),We=Object.hasOwn||function(e,t){return Ue(Ge(e),t)},$e=N,Ve=0,Xe=Math.random(),ze=$e(1..toString),qe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+ze(++Ve+Xe,36)},Qe=h,Ye=Ne.exports,He=We,Je=qe,Ze=De,et=le,tt=Ye("wks"),nt=Qe.Symbol,rt=nt&&nt.for,it=et?nt:nt&&nt.withoutSetter||Je,st=function(e){if(!He(tt,e)||!Ze&&"string"!=typeof tt[e]){var t="Symbol."+e;Ze&&He(nt,e)?tt[e]=nt[e]:tt[e]=et&&rt?rt(t):it(t)}return tt[e]},ut=C,at=q,ot=ve,ct=we,Dt=function(e,t){var n,r;if("string"===t&&Ie(n=e.toString)&&!Oe(r=Se(n,e)))return r;if(Ie(n=e.valueOf)&&!Oe(r=Se(n,e)))return r;if("string"!==t&&Ie(n=e.toString)&&!Oe(r=Se(n,e)))return r;throw be("Can't convert object to primitive value")},lt=st,pt=h.TypeError,ht=lt("toPrimitive"),dt=function(e,t){if(!at(e)||ot(e))return e;var n,r=ct(e,ht);if(r){if(void 0===t&&(t="default"),n=ut(r,e,t),!at(n)||ot(n))return n;throw pt("Can't convert object to primitive value")}return void 0===t&&(t="number"),Dt(e,t)},ft=ve,Et=function(e){var t=dt(e,"string");return ft(t)?t:t+""},vt=q,Ct=h.document,gt=vt(Ct)&&vt(Ct.createElement),Ft=function(e){return gt?Ct.createElement(e):{}},mt=!E&&!f((function(){return 7!=Object.defineProperty(Ft("div"),"a",{get:function(){return 7}}).a})),yt=E,xt=C,At=g,wt=w,St=V,It=Et,Ot=We,bt=mt,Nt=Object.getOwnPropertyDescriptor;d.f=yt?Nt:function(e,t){if(e=St(e),t=It(t),bt)try{return Nt(e,t)}catch(e){}if(Ot(e,t))return wt(!xt(At.f,e,t),e[t])};var Bt={},Pt=h,Tt=q,Rt=Pt.String,Lt=Pt.TypeError,kt=function(e){if(Tt(e))return e;throw Lt(Rt(e)+" is not an object")},_t=E,Mt=mt,jt=kt,Kt=Et,Gt=h.TypeError,Ut=Object.defineProperty;Bt.f=_t?Ut:function(e,t,n){if(jt(e),t=Kt(t),jt(n),Mt)try{return Ut(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Gt("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var Wt=Bt,$t=w,Vt=E?function(e,t,n){return Wt.f(e,t,$t(1,n))}:function(e,t,n){return e[t]=n,e},Xt={exports:{}},zt=X,qt=ke,Qt=N(Function.toString);zt(qt.inspectSource)||(qt.inspectSource=function(e){return Qt(e)});var Yt,Ht,Jt,Zt=qt.inspectSource,en=X,tn=Zt,nn=h.WeakMap,rn=en(nn)&&/native code/.test(tn(nn)),sn=Ne.exports,un=qe,an=sn("keys"),on={},cn=rn,Dn=h,ln=N,pn=q,hn=Vt,dn=We,fn=ke,En=function(e){return an[e]||(an[e]=un(e))},vn=on,Cn="Object already initialized",gn=Dn.TypeError,Fn=Dn.WeakMap;if(cn||fn.state){var mn=fn.state||(fn.state=new Fn),yn=ln(mn.get),xn=ln(mn.has),An=ln(mn.set);Yt=function(e,t){if(xn(mn,e))throw new gn(Cn);return t.facade=e,An(mn,e,t),t},Ht=function(e){return yn(mn,e)||{}},Jt=function(e){return xn(mn,e)}}else{var wn=En("state");vn[wn]=!0,Yt=function(e,t){if(dn(e,wn))throw new gn(Cn);return t.facade=e,hn(e,wn,t),t},Ht=function(e){return dn(e,wn)?e[wn]:{}},Jt=function(e){return dn(e,wn)}}var Sn={set:Yt,get:Ht,has:Jt,enforce:function(e){return Jt(e)?Ht(e):Yt(e,{})},getterFor:function(e){return function(t){var n;if(!pn(t)||(n=Ht(t)).type!==e)throw gn("Incompatible receiver, "+e+" required");return n}}},In=E,On=We,bn=Function.prototype,Nn=In&&Object.getOwnPropertyDescriptor,Bn=On(bn,"name"),Pn=Bn&&"something"===function(){}.name,Tn=Bn&&(!In||In&&Nn(bn,"name").configurable),Rn=h,Ln=X,kn=We,_n=Vt,Mn=Te,jn=Zt,Kn={EXISTS:Bn,PROPER:Pn,CONFIGURABLE:Tn}.CONFIGURABLE,Gn=Sn.get,Un=Sn.enforce,Wn=String(String).split("String");(Xt.exports=function(e,t,n,r){var i,s=!!r&&!!r.unsafe,u=!!r&&!!r.enumerable,a=!!r&&!!r.noTargetGet,o=r&&void 0!==r.name?r.name:t;Ln(n)&&("Symbol("===String(o).slice(0,7)&&(o="["+String(o).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!kn(n,"name")||Kn&&n.name!==o)&&_n(n,"name",o),(i=Un(n)).source||(i.source=Wn.join("string"==typeof o?o:""))),e!==Rn?(s?!a&&e[t]&&(u=!0):delete e[t],u?e[t]=n:_n(e,t,n)):u?e[t]=n:Mn(t,n)})(Function.prototype,"toString",(function(){return Ln(this)&&Gn(this).source||jn(this)}));var $n={},Vn=Math.ceil,Xn=Math.floor,zn=function(e){var t=+e;return t!=t||0===t?0:(t>0?Xn:Vn)(t)},qn=zn,Qn=Math.max,Yn=Math.min,Hn=zn,Jn=Math.min,Zn=function(e){return e>0?Jn(Hn(e),9007199254740991):0},er=function(e){return Zn(e.length)},tr=V,nr=function(e,t){var n=qn(e);return n<0?Qn(n+t,0):Yn(n,t)},rr=er,ir=function(e){return function(t,n,r){var i,s=tr(t),u=rr(s),a=nr(r,u);if(e&&n!=n){for(;u>a;)if((i=s[a++])!=i)return!0}else for(;u>a;a++)if((e||a in s)&&s[a]===n)return e||a||0;return!e&&-1}},sr={includes:ir(!0),indexOf:ir(!1)},ur=We,ar=V,or=sr.indexOf,cr=on,Dr=N([].push),lr=function(e,t){var n,r=ar(e),i=0,s=[];for(n in r)!ur(cr,n)&&ur(r,n)&&Dr(s,n);for(;t.length>i;)ur(r,n=t[i++])&&(~or(s,n)||Dr(s,n));return s},pr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype");$n.f=Object.getOwnPropertyNames||function(e){return lr(e,pr)};var hr={};hr.f=Object.getOwnPropertySymbols;var dr=J,fr=$n,Er=hr,vr=kt,Cr=N([].concat),gr=dr("Reflect","ownKeys")||function(e){var t=fr.f(vr(e)),n=Er.f;return n?Cr(t,n(e)):t},Fr=We,mr=gr,yr=d,xr=Bt,Ar=f,wr=X,Sr=/#|\.prototype\./,Ir=function(e,t){var n=br[Or(e)];return n==Br||n!=Nr&&(wr(t)?Ar(t):!!t)},Or=Ir.normalize=function(e){return String(e).replace(Sr,".").toLowerCase()},br=Ir.data={},Nr=Ir.NATIVE="N",Br=Ir.POLYFILL="P",Pr=Ir,Tr=h,Rr=d.f,Lr=Vt,kr=Xt.exports,_r=Te,Mr=function(e,t){for(var n=mr(t),r=xr.f,i=yr.f,s=0;s<n.length;s++){var u=n[s];Fr(e,u)||r(e,u,i(t,u))}},jr=Pr,Kr=function(e,t){var n,r,i,s,u,a=e.target,o=e.global,c=e.stat;if(n=o?Tr:c?Tr[a]||_r(a,{}):(Tr[a]||{}).prototype)for(r in t){if(s=t[r],i=e.noTargetGet?(u=Rr(n,r))&&u.value:n[r],!jr(o?r:a+(c?".":"#")+r,e.forced)&&void 0!==i){if(typeof s==typeof i)continue;Mr(s,i)}(e.sham||i&&i.sham)&&Lr(s,"sham",!0),kr(n,r,s,e)}},Gr=R,Ur=Array.isArray||function(e){return"Array"==Gr(e)},Wr=xe,$r=N(N.bind),Vr=function(e,t){return Wr(e),void 0===t?e:$r?$r(e,t):function(){return e.apply(t,arguments)}},Xr=Ur,zr=er,qr=Vr,Qr=h.TypeError,Yr=function(e,t,n,r,i,s,u,a){for(var o,c,D=i,l=0,p=!!u&&qr(u,a);l<r;){if(l in n){if(o=p?p(n[l],l,t):n[l],s>0&&Xr(o))c=zr(o),D=Yr(e,t,o,c,D,s-1)-1;else{if(D>=9007199254740991)throw Qr("Exceed the acceptable array length");e[D]=o}D++}l++}return D},Hr=Yr,Jr={};Jr[st("toStringTag")]="z";var Zr=h,ei="[object z]"===String(Jr),ti=X,ni=R,ri=st("toStringTag"),ii=Zr.Object,si="Arguments"==ni(function(){return arguments}()),ui=ei?ni:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=ii(e),ri))?n:si?ni(t):"Object"==(r=ni(t))&&ti(t.callee)?"Arguments":r},ai=N,oi=f,ci=X,Di=ui,li=Zt,pi=function(){},hi=[],di=J("Reflect","construct"),fi=/^\s*(?:class|function)\b/,Ei=ai(fi.exec),vi=!fi.exec(pi),Ci=function(e){if(!ci(e))return!1;try{return di(pi,hi,e),!0}catch(e){return!1}},gi=!di||oi((function(){var e;return Ci(Ci.call)||!Ci(Object)||!Ci((function(){e=!0}))||e}))?function(e){if(!ci(e))return!1;switch(Di(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return vi||!!Ei(fi,li(e))}:Ci,Fi=h,mi=Ur,yi=gi,xi=q,Ai=st("species"),wi=Fi.Array,Si=function(e){var t;return mi(e)&&(t=e.constructor,(yi(t)&&(t===wi||mi(t.prototype))||xi(t)&&null===(t=t[Ai]))&&(t=void 0)),void 0===t?wi:t},Ii=Hr,Oi=xe,bi=Ke,Ni=er,Bi=function(e,t){return new(Si(e))(0===t?0:t)};Kr({target:"Array",proto:!0},{flatMap:function(e){var t,n=bi(this),r=Ni(n);return Oi(e),(t=Bi(n,0)).length=Ii(t,n,n,r,0,1,e,arguments.length>1?arguments[1]:void 0),t}});var Pi=ui,Ti=h.String,Ri=N([].slice),Li=Math.floor,ki=function(e,t){var n=e.length,r=Li(n/2);return n<8?_i(e,t):Mi(e,ki(Ri(e,0,r),t),ki(Ri(e,r),t),t)},_i=function(e,t){for(var n,r,i=e.length,s=1;s<i;){for(r=s,n=e[s];r&&t(e[r-1],n)>0;)e[r]=e[--r];r!==s++&&(e[r]=n)}return e},Mi=function(e,t,n,r){for(var i=t.length,s=n.length,u=0,a=0;u<i||a<s;)e[u+a]=u<i&&a<s?r(t[u],n[a])<=0?t[u++]:n[a++]:u<i?t[u++]:n[a++];return e},ji=ki,Ki=f,Gi=ee.match(/firefox\/(\d+)/i),Ui=!!Gi&&+Gi[1],Wi=/MSIE|Trident/.test(ee),$i=ee.match(/AppleWebKit\/(\d+)\./),Vi=!!$i&&+$i[1],Xi=Kr,zi=N,qi=xe,Qi=Ke,Yi=er,Hi=function(e){if("Symbol"===Pi(e))throw TypeError("Cannot convert a Symbol value to a string");return Ti(e)},Ji=f,Zi=ji,es=function(e,t){var n=[][e];return!!n&&Ki((function(){n.call(null,t||function(){throw 1},1)}))},ts=Ui,ns=Wi,rs=ae,is=Vi,ss=[],us=zi(ss.sort),as=zi(ss.push),os=Ji((function(){ss.sort(void 0)})),cs=Ji((function(){ss.sort(null)})),Ds=es("sort"),ls=!Ji((function(){if(rs)return rs<70;if(!(ts&&ts>3)){if(ns)return!0;if(is)return is<603;var e,t,n,r,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)ss.push({k:t+r,v:n})}for(ss.sort((function(e,t){return t.v-e.v})),r=0;r<ss.length;r++)t=ss[r].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}}));Xi({target:"Array",proto:!0,forced:os||!cs||!Ds||!ls},{sort:function(e){void 0!==e&&qi(e);var t=Qi(this);if(ls)return void 0===e?us(t):us(t,e);var n,r,i=[],s=Yi(t);for(r=0;r<s;r++)r in t&&as(i,t[r]);for(Zi(i,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:Hi(t)>Hi(n)?1:-1}}(e)),n=i.length,r=0;r<n;)t[r]=i[r++];for(;r<s;)delete t[r++];return t}});var ps={},hs=ps,ds=st("iterator"),fs=Array.prototype,Es=ui,vs=we,Cs=ps,gs=st("iterator"),Fs=function(e){if(null!=e)return vs(e,gs)||vs(e,"@@iterator")||Cs[Es(e)]},ms=C,ys=xe,xs=kt,As=ge,ws=Fs,Ss=h.TypeError,Is=C,Os=kt,bs=we,Ns=Vr,Bs=C,Ps=kt,Ts=ge,Rs=function(e){return void 0!==e&&(hs.Array===e||fs[ds]===e)},Ls=er,ks=Z,_s=function(e,t){var n=arguments.length<2?ws(e):t;if(ys(n))return xs(ms(n,e));throw Ss(As(e)+" is not iterable")},Ms=Fs,js=function(e,t,n){var r,i;Os(e);try{if(!(r=bs(e,"return"))){if("throw"===t)throw n;return n}r=Is(r,e)}catch(e){i=!0,r=e}if("throw"===t)throw n;if(i)throw r;return Os(r),n},Ks=h.TypeError,Gs=function(e,t){this.stopped=e,this.result=t},Us=Gs.prototype,Ws=Et,$s=Bt,Vs=w,Xs=function(e,t,n){var r,i,s,u,a,o,c,D=n&&n.that,l=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),d=Ns(t,D),f=function(e){return r&&js(r,"normal",e),new Gs(!0,e)},E=function(e){return l?(Ps(e),h?d(e[0],e[1],f):d(e[0],e[1])):h?d(e,f):d(e)};if(p)r=e;else{if(!(i=Ms(e)))throw Ks(Ts(e)+" is not iterable");if(Rs(i)){for(s=0,u=Ls(e);u>s;s++)if((a=E(e[s]))&&ks(Us,a))return a;return new Gs(!1)}r=_s(e,i)}for(o=r.next;!(c=Bs(o,r)).done;){try{a=E(c.value)}catch(e){js(r,"throw",e)}if("object"==typeof a&&a&&ks(Us,a))return a}return new Gs(!1)},zs=function(e,t,n){var r=Ws(t);r in e?$s.f(e,r,Vs(0,n)):e[r]=n};Kr({target:"Object",stat:!0},{fromEntries:function(e){var t={};return Xs(e,(function(e,n){zs(t,e,n)}),{AS_ENTRIES:!0}),t}});var qs=void 0!==qs?qs:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function Qs(){throw new Error("setTimeout has not been defined")}function Ys(){throw new Error("clearTimeout has not been defined")}var Hs=Qs,Js=Ys;function Zs(e){if(Hs===setTimeout)return setTimeout(e,0);if((Hs===Qs||!Hs)&&setTimeout)return Hs=setTimeout,setTimeout(e,0);try{return Hs(e,0)}catch(t){try{return Hs.call(null,e,0)}catch(t){return Hs.call(this,e,0)}}}"function"==typeof qs.setTimeout&&(Hs=setTimeout),"function"==typeof qs.clearTimeout&&(Js=clearTimeout);var eu,tu=[],nu=!1,ru=-1;function iu(){nu&&eu&&(nu=!1,eu.length?tu=eu.concat(tu):ru=-1,tu.length&&su())}function su(){if(!nu){var e=Zs(iu);nu=!0;for(var t=tu.length;t;){for(eu=tu,tu=[];++ru<t;)eu&&eu[ru].run();ru=-1,t=tu.length}eu=null,nu=!1,function(e){if(Js===clearTimeout)return clearTimeout(e);if((Js===Ys||!Js)&&clearTimeout)return Js=clearTimeout,clearTimeout(e);try{Js(e)}catch(t){try{return Js.call(null,e)}catch(t){return Js.call(this,e)}}}(e)}}function uu(e,t){this.fun=e,this.array=t}uu.prototype.run=function(){this.fun.apply(null,this.array)};function au(){}var ou=au,cu=au,Du=au,lu=au,pu=au,hu=au,du=au;var fu=qs.performance||{},Eu=fu.now||fu.mozNow||fu.msNow||fu.oNow||fu.webkitNow||function(){return(new Date).getTime()};var vu=new Date;var Cu={nextTick:function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];tu.push(new uu(e,t)),1!==tu.length||nu||Zs(su)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:ou,addListener:cu,once:Du,off:lu,removeListener:pu,removeAllListeners:hu,emit:du,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*Eu.call(fu),n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n-=e[0],(r-=e[1])<0&&(n--,r+=1e9)),[n,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-vu)/1e3}},gu=Cu;const Fu="object"==typeof gu&&gu.env&&gu.env.NODE_DEBUG&&/\bsemver\b/i.test(gu.env.NODE_DEBUG)?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error("SEMVER",...t)}:()=>{};var mu=Fu;var yu={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16},xu={exports:{}};!function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n}=yu,r=mu,i=(t=e.exports={}).re=[],s=t.src=[],u=t.t={};let a=0;const o=(e,t,n)=>{const o=a++;r(o,t),u[e]=o,s[o]=t,i[o]=new RegExp(t,n?"g":void 0)};o("NUMERICIDENTIFIER","0|[1-9]\\d*"),o("NUMERICIDENTIFIERLOOSE","[0-9]+"),o("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),o("MAINVERSION","(".concat(s[u.NUMERICIDENTIFIER],")\\.")+"(".concat(s[u.NUMERICIDENTIFIER],")\\.")+"(".concat(s[u.NUMERICIDENTIFIER],")")),o("MAINVERSIONLOOSE","(".concat(s[u.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(s[u.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(s[u.NUMERICIDENTIFIERLOOSE],")")),o("PRERELEASEIDENTIFIER","(?:".concat(s[u.NUMERICIDENTIFIER],"|").concat(s[u.NONNUMERICIDENTIFIER],")")),o("PRERELEASEIDENTIFIERLOOSE","(?:".concat(s[u.NUMERICIDENTIFIERLOOSE],"|").concat(s[u.NONNUMERICIDENTIFIER],")")),o("PRERELEASE","(?:-(".concat(s[u.PRERELEASEIDENTIFIER],"(?:\\.").concat(s[u.PRERELEASEIDENTIFIER],")*))")),o("PRERELEASELOOSE","(?:-?(".concat(s[u.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(s[u.PRERELEASEIDENTIFIERLOOSE],")*))")),o("BUILDIDENTIFIER","[0-9A-Za-z-]+"),o("BUILD","(?:\\+(".concat(s[u.BUILDIDENTIFIER],"(?:\\.").concat(s[u.BUILDIDENTIFIER],")*))")),o("FULLPLAIN","v?".concat(s[u.MAINVERSION]).concat(s[u.PRERELEASE],"?").concat(s[u.BUILD],"?")),o("FULL","^".concat(s[u.FULLPLAIN],"$")),o("LOOSEPLAIN","[v=\\s]*".concat(s[u.MAINVERSIONLOOSE]).concat(s[u.PRERELEASELOOSE],"?").concat(s[u.BUILD],"?")),o("LOOSE","^".concat(s[u.LOOSEPLAIN],"$")),o("GTLT","((?:<|>)?=?)"),o("XRANGEIDENTIFIERLOOSE","".concat(s[u.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),o("XRANGEIDENTIFIER","".concat(s[u.NUMERICIDENTIFIER],"|x|X|\\*")),o("XRANGEPLAIN","[v=\\s]*(".concat(s[u.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(s[u.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(s[u.XRANGEIDENTIFIER],")")+"(?:".concat(s[u.PRERELEASE],")?").concat(s[u.BUILD],"?")+")?)?"),o("XRANGEPLAINLOOSE","[v=\\s]*(".concat(s[u.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(s[u.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(s[u.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(s[u.PRERELEASELOOSE],")?").concat(s[u.BUILD],"?")+")?)?"),o("XRANGE","^".concat(s[u.GTLT],"\\s*").concat(s[u.XRANGEPLAIN],"$")),o("XRANGELOOSE","^".concat(s[u.GTLT],"\\s*").concat(s[u.XRANGEPLAINLOOSE],"$")),o("COERCE","".concat("(^|[^\\d])(\\d{1,").concat(n,"})")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:$|[^\\d])"),o("COERCERTL",s[u.COERCE],!0),o("LONETILDE","(?:~>?)"),o("TILDETRIM","(\\s*)".concat(s[u.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",o("TILDE","^".concat(s[u.LONETILDE]).concat(s[u.XRANGEPLAIN],"$")),o("TILDELOOSE","^".concat(s[u.LONETILDE]).concat(s[u.XRANGEPLAINLOOSE],"$")),o("LONECARET","(?:\\^)"),o("CARETTRIM","(\\s*)".concat(s[u.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",o("CARET","^".concat(s[u.LONECARET]).concat(s[u.XRANGEPLAIN],"$")),o("CARETLOOSE","^".concat(s[u.LONECARET]).concat(s[u.XRANGEPLAINLOOSE],"$")),o("COMPARATORLOOSE","^".concat(s[u.GTLT],"\\s*(").concat(s[u.LOOSEPLAIN],")$|^$")),o("COMPARATOR","^".concat(s[u.GTLT],"\\s*(").concat(s[u.FULLPLAIN],")$|^$")),o("COMPARATORTRIM","(\\s*)".concat(s[u.GTLT],"\\s*(").concat(s[u.LOOSEPLAIN],"|").concat(s[u.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",o("HYPHENRANGE","^\\s*(".concat(s[u.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(s[u.XRANGEPLAIN],")")+"\\s*$"),o("HYPHENRANGELOOSE","^\\s*(".concat(s[u.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(s[u.XRANGEPLAINLOOSE],")")+"\\s*$"),o("STAR","(<|>)?=?\\s*\\*"),o("GTE0","^\\s*>=\\s*0.0.0\\s*$"),o("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")}(xu,xu.exports);const Au=["includePrerelease","loose","rtl"];var wu=e=>e?"object"!=typeof e?{loose:!0}:Au.filter((t=>e[t])).reduce(((e,t)=>(e[t]=!0,e)),{}):{};const Su=/^[0-9]+$/,Iu=(e,t)=>{const n=Su.test(e),r=Su.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1};var Ou={compareIdentifiers:Iu,rcompareIdentifiers:(e,t)=>Iu(t,e)};const bu=mu,{MAX_LENGTH:Nu,MAX_SAFE_INTEGER:Bu}=yu,{re:Pu,t:Tu}=xu.exports,Ru=wu,{compareIdentifiers:Lu}=Ou;class ku{constructor(e,t){if(t=Ru(t),e instanceof ku){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: ".concat(e));if(e.length>Nu)throw new TypeError("version is longer than ".concat(Nu," characters"));bu("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?Pu[Tu.LOOSE]:Pu[Tu.FULL]);if(!n)throw new TypeError("Invalid Version: ".concat(e));if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Bu||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Bu||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Bu||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<Bu)return t}return e})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version="".concat(this.major,".").concat(this.minor,".").concat(this.patch),this.prerelease.length&&(this.version+="-".concat(this.prerelease.join("."))),this.version}toString(){return this.version}compare(e){if(bu("SemVer.compare",this.version,this.options,e),!(e instanceof ku)){if("string"==typeof e&&e===this.version)return 0;e=new ku(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof ku||(e=new ku(e,this.options)),Lu(this.major,e.major)||Lu(this.minor,e.minor)||Lu(this.patch,e.patch)}comparePre(e){if(e instanceof ku||(e=new ku(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const n=this.prerelease[t],r=e.prerelease[t];if(bu("prerelease compare",t,n,r),void 0===n&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===n)return-1;if(n!==r)return Lu(n,r)}while(++t)}compareBuild(e){e instanceof ku||(e=new ku(e,this.options));let t=0;do{const n=this.build[t],r=e.build[t];if(bu("prerelease compare",t,n,r),void 0===n&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===n)return-1;if(n!==r)return Lu(n,r)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let e=this.prerelease.length;for(;--e>=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: ".concat(e))}return this.format(),this.raw=this.version,this}}const _u=ku;var Mu=(e,t,n)=>new _u(e,n).compare(new _u(t,n));const ju=Mu;var Ku=(e,t,n)=>ju(e,t,n)<0;const Gu=Mu;var Uu,Wu,$u,Vu,Xu,zu,qu=(e,t,n)=>Gu(e,t,n)>=0,Qu={exports:{}};!function(e,t){function n(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]}function r(){return"undefined"!=typeof WeakMap?new WeakMap:{add:n,delete:n,get:n,set:n,has:function(e){return!1}}}Object.defineProperty(t,"__esModule",{value:!0}),t.outdent=void 0;var i=Object.prototype.hasOwnProperty,s=function(e,t){return i.call(e,t)};function u(e,t){for(var n in t)s(t,n)&&(e[n]=t[n]);return e}var a=/^[ \t]*(?:\r\n|\r|\n)/,o=/(?:\r\n|\r|\n)[ \t]*$/,c=/^(?:[\r\n]|$)/,D=/(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/,l=/^[ \t]*[\r\n][ \t\r\n]*$/;function p(e,t,n){var r=0,i=e[0].match(D);i&&(r=i[1].length);var s=new RegExp("(\\r\\n|\\r|\\n).{0,"+r+"}","g");t&&(e=e.slice(1));var u=n.newline,c=n.trimLeadingNewline,l=n.trimTrailingNewline,p="string"==typeof u,h=e.length;return e.map((function(e,t){return e=e.replace(s,"$1"),0===t&&c&&(e=e.replace(a,"")),t===h-1&&l&&(e=e.replace(o,"")),p&&(e=e.replace(/\r\n|\n|\r/g,(function(e){return u}))),e}))}function h(e,t){for(var n="",r=0,i=e.length;r<i;r++)n+=e[r],r<i-1&&(n+=t[r]);return n}function d(e){return s(e,"raw")&&s(e,"length")}var f=function e(t){var n=r(),i=r(),s=u((function r(s){for(var a=[],o=1;o<arguments.length;o++)a[o-1]=arguments[o];if(d(s)){var D=s,E=(a[0]===r||a[0]===f)&&l.test(D[0])&&c.test(D[1]),v=E?i:n,C=v.get(D);if(C||(C=p(D,E,t),v.set(D,C)),0===a.length)return C[0];var g=h(C,E?a.slice(1):a);return g}return e(u(u({},t),s||{}))}),{string:function(e){return p([e],!1,t)[0]}});return s}({trimLeadingNewline:!0,trimTrailingNewline:!0});t.outdent=f,t.default=f;try{e.exports=f,Object.defineProperty(f,"__esModule",{value:!0}),f.default=f,f.outdent=f}catch(e){}}(Qu,Qu.exports);const{outdent:Yu}=Qu.exports,Hu="Config",Ju="Editor",Zu="Other",ea="Global",ta="Special",na={cursorOffset:{since:"1.4.0",category:ta,type:"int",default:-1,range:{start:-1,end:Number.POSITIVE_INFINITY,step:1},description:Yu(Uu||(Uu=l(["\n Print (to stderr) where a cursor at the given position would move to after formatting.\n This option cannot be used with --range-start and --range-end.\n "]))),cliCategory:Ju},endOfLine:{since:"1.15.0",category:ea,type:"choice",default:[{since:"1.15.0",value:"auto"},{since:"2.0.0",value:"lf"}],description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:Yu(Wu||(Wu=l(["\n Maintain existing\n (mixed values within one file are normalised by looking at what's used after the first line)\n "])))}]},filepath:{since:"1.4.0",category:ta,type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:Zu,cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{since:"1.8.0",category:ta,type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:Zu},parser:{since:"0.0.10",category:ea,type:"choice",default:[{since:"0.0.10",value:"babylon"},{since:"1.13.0",value:void 0}],description:"Which parser to use.",exception:e=>"string"==typeof e||"function"==typeof e,choices:[{value:"flow",description:"Flow"},{value:"babel",since:"1.16.0",description:"JavaScript"},{value:"babel-flow",since:"1.16.0",description:"Flow"},{value:"babel-ts",since:"2.0.0",description:"TypeScript"},{value:"typescript",since:"1.4.0",description:"TypeScript"},{value:"espree",since:"2.2.0",description:"JavaScript"},{value:"meriyah",since:"2.2.0",description:"JavaScript"},{value:"css",since:"1.7.1",description:"CSS"},{value:"less",since:"1.7.1",description:"Less"},{value:"scss",since:"1.7.1",description:"SCSS"},{value:"json",since:"1.5.0",description:"JSON"},{value:"json5",since:"1.13.0",description:"JSON5"},{value:"json-stringify",since:"1.13.0",description:"JSON.stringify"},{value:"graphql",since:"1.5.0",description:"GraphQL"},{value:"markdown",since:"1.8.0",description:"Markdown"},{value:"mdx",since:"1.15.0",description:"MDX"},{value:"vue",since:"1.10.0",description:"Vue"},{value:"yaml",since:"1.14.0",description:"YAML"},{value:"glimmer",since:"2.3.0",description:"Ember / Handlebars"},{value:"html",since:"1.15.0",description:"HTML"},{value:"angular",since:"1.15.0",description:"Angular"},{value:"lwc",since:"1.17.0",description:"Lightning Web Components"}]},plugins:{since:"1.10.0",type:"path",array:!0,default:[{value:[]}],category:ea,description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin",cliCategory:Hu},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:ea,description:Yu($u||($u=l(["\n Custom directory that contains prettier plugins in node_modules subdirectory.\n Overrides default behavior when plugins are searched relatively to the location of Prettier.\n Multiple values are accepted.\n "]))),exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin-search-dir",cliCategory:Hu},printWidth:{since:"0.0.0",category:ea,type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},rangeEnd:{since:"1.4.0",category:ta,type:"int",default:Number.POSITIVE_INFINITY,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:Yu(Vu||(Vu=l(["\n Format code ending at a given character offset (exclusive).\n The range will extend forwards to the end of the selected statement.\n This option cannot be used with --cursor-offset.\n "]))),cliCategory:Ju},rangeStart:{since:"1.4.0",category:ta,type:"int",default:0,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:Yu(Xu||(Xu=l(["\n Format code starting at a given character offset.\n The range will extend backwards to the start of the first line containing the selected statement.\n This option cannot be used with --cursor-offset.\n "]))),cliCategory:Ju},requirePragma:{since:"1.7.0",category:ta,type:"boolean",default:!1,description:Yu(zu||(zu=l(["\n Require either '@prettier' or '@format' to be present in the file's first docblock comment\n in order for it to be formatted.\n "]))),cliCategory:Zu},tabWidth:{type:"int",category:ea,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},useTabs:{since:"1.0.0",category:ea,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{since:"2.1.0",category:ea,type:"choice",default:[{since:"2.1.0",value:"auto"}],description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};const ra=["cliName","cliCategory","cliDescription"],ia={compare:Mu,lt:Ku,gte:qu},sa=(e,t)=>Object.entries(e).map((e=>{let[n,r]=e;return Object.assign({[t]:n},r)})),ua="2.5.1",aa={CATEGORY_CONFIG:Hu,CATEGORY_EDITOR:Ju,CATEGORY_FORMAT:"Format",CATEGORY_OTHER:Zu,CATEGORY_OUTPUT:"Output",CATEGORY_GLOBAL:ea,CATEGORY_SPECIAL:ta,options:na}.options;function oa(e,t,n){const r=new Set(e.choices.map((e=>e.value)));for(const i of t)if(i.parsers)for(const t of i.parsers)if(!r.has(t)){r.add(t);const s=n.find((e=>e.parsers&&e.parsers[t]));let u=i.name;s&&s.name&&(u+=" (plugin: ".concat(s.name,")")),e.choices.push({value:t,description:u})}}var ca={getSupportInfo:function(){let{plugins:e=[],showUnreleased:t=!1,showDeprecated:n=!1,showInternal:r=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const i=ua.split("-",1)[0],s=e.flatMap((e=>e.languages||[])).filter(a),u=sa(Object.assign({},...e.map((e=>{let{options:t}=e;return t})),aa),"name").filter((e=>a(e)&&o(e))).sort(((e,t)=>e.name===t.name?0:e.name<t.name?-1:1)).map(c).map((t=>{t=Object.assign({},t),Array.isArray(t.default)&&(t.default=1===t.default.length?t.default[0].value:t.default.filter(a).sort(((e,t)=>ia.compare(t.since,e.since)))[0].value),Array.isArray(t.choices)&&(t.choices=t.choices.filter((e=>a(e)&&o(e))),"parser"===t.name&&oa(t,s,e));const n=Object.fromEntries(e.filter((e=>e.defaultOptions&&void 0!==e.defaultOptions[t.name])).map((e=>[e.name,e.defaultOptions[t.name]])));return Object.assign(Object.assign({},t),{},{pluginDefaults:n})}));return{languages:s,options:u};function a(e){return t||!("since"in e)||e.since&&ia.gte(i,e.since)}function o(e){return n||!("deprecated"in e)||e.deprecated&&ia.lt(i,e.deprecated)}function c(e){if(r)return e;return D(e,ra)}}};const Da=t.exports,la=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},pa=c,{getSupportInfo:ha}=ca,da=/[^\x20-\x7F]/;function fa(e){return(t,n,r)=>{const i=r&&r.backwards;if(!1===n)return!1;const{length:s}=t;let u=n;for(;u>=0&&u<s;){const n=t.charAt(u);if(e instanceof RegExp){if(!e.test(n))return u}else if(!e.includes(n))return u;i?u--:u++}return(-1===u||u===s)&&u}}const Ea=fa(/\s/),va=fa(" \t"),Ca=fa(",; \t"),ga=fa(/[^\n\r]/);function Fa(e,t){if(!1===t)return!1;if("/"===e.charAt(t)&&"*"===e.charAt(t+1))for(let n=t+2;n<e.length;++n)if("*"===e.charAt(n)&&"/"===e.charAt(n+1))return n+2;return t}function ma(e,t){return!1!==t&&("/"===e.charAt(t)&&"/"===e.charAt(t+1)?ga(e,t):t)}function ya(e,t,n){const r=n&&n.backwards;if(!1===t)return!1;const i=e.charAt(t);if(r){if("\r"===e.charAt(t-1)&&"\n"===i)return t-2;if("\n"===i||"\r"===i||"\u2028"===i||"\u2029"===i)return t-1}else{if("\r"===i&&"\n"===e.charAt(t+1))return t+2;if("\n"===i||"\r"===i||"\u2028"===i||"\u2029"===i)return t+1}return t}function xa(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=va(e,n.backwards?t-1:t,n),i=ya(e,r,n);return r!==i}function Aa(e,t){let n=null,r=t;for(;r!==n;)n=r,r=Ca(e,r),r=Fa(e,r),r=va(e,r);return r=ma(e,r),r=ya(e,r),!1!==r&&xa(e,r)}function wa(e,t){let n=null,r=t;for(;r!==n;)n=r,r=va(e,r),r=Fa(e,r),r=ma(e,r),r=ya(e,r);return r}function Sa(e,t,n){return wa(e,n(t))}function Ia(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=0;for(let i=n;i<e.length;++i)"\t"===e[i]?r=r+t-r%t:r++;return r}function Oa(e,t){const n={quote:'"',regex:/"/g,escaped:"""},r={quote:"'",regex:/'/g,escaped:"'"},i="'"===t?r:n,s=i===r?n:r;let u=i;if(e.includes(i.quote)||e.includes(s.quote)){u=(e.match(i.regex)||[]).length>(e.match(s.regex)||[]).length?s:i}return u}function ba(e,t,n){const r='"'===t?"'":'"',i=e.replace(/\\(.)|(["'])/gs,((e,i,s)=>i===r?i:s===t?"\\"+s:s||(n&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(i)?i:"\\"+i)));return t+i+t}function Na(e,t){(e.comments||(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=function(e){const t=e.type||e.kind||"(unknown type)";let n=String(e.name||e.id&&("object"==typeof e.id?e.id.name:e.id)||e.key&&("object"==typeof e.key?e.key.name:e.key)||e.value&&("object"==typeof e.value?"":String(e.value))||e.operator||"");n.length>20&&(n=n.slice(0,19)+"\u2026");return t+(n?" "+n:"")}(e)}var Ba={inferParserByLanguage:function(e,t){const{languages:n}=ha({plugins:t.plugins}),r=n.find((t=>{let{name:n}=t;return n.toLowerCase()===e}))||n.find((t=>{let{aliases:n}=t;return Array.isArray(n)&&n.includes(e)}))||n.find((t=>{let{extensions:n}=t;return Array.isArray(n)&&n.includes(".".concat(e))}));return r&&r.parsers[0]},getStringWidth:function(e){return e?da.test(e)?Da(e):e.length:0},getMaxContinuousCount:function(e,t){const n=e.match(new RegExp("(".concat(la(t),")+"),"g"));return null===n?0:n.reduce(((e,n)=>Math.max(e,n.length/t.length)),0)},getMinNotPresentContinuousCount:function(e,t){const n=e.match(new RegExp("(".concat(la(t),")+"),"g"));if(null===n)return 0;const r=new Map;let i=0;for(const e of n){const n=e.length/t.length;r.set(n,!0),n>i&&(i=n)}for(let e=1;e<i;e++)if(!r.get(e))return e;return i+1},getPenultimate:e=>e[e.length-2],getLast:pa,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:wa,getNextNonSpaceNonCommentCharacterIndex:Sa,getNextNonSpaceNonCommentCharacter:function(e,t,n){return e.charAt(Sa(e,t,n))},skip:fa,skipWhitespace:Ea,skipSpaces:va,skipToLineEnd:Ca,skipEverythingButNewLine:ga,skipInlineComment:Fa,skipTrailingComment:ma,skipNewline:ya,isNextLineEmptyAfterIndex:Aa,isNextLineEmpty:function(e,t,n){return Aa(e,n(t))},isPreviousLineEmpty:function(e,t,n){let r=n(t)-1;return r=va(e,r,{backwards:!0}),r=ya(e,r,{backwards:!0}),r=va(e,r,{backwards:!0}),r!==ya(e,r,{backwards:!0})},hasNewline:xa,hasNewlineInRange:function(e,t,n){for(let r=t;r<n;++r)if("\n"===e.charAt(r))return!0;return!1},hasSpaces:function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=va(e,n.backwards?t-1:t,n);return r!==t},getAlignmentSize:Ia,getIndentSize:function(e,t){const n=e.lastIndexOf("\n");return-1===n?0:Ia(e.slice(n+1).match(/^[\t ]*/)[0],t)},getPreferredQuote:Oa,printString:function(e,t){const n=e.slice(1,-1);return ba(n,"json"===t.parser||"json5"===t.parser&&"preserve"===t.quoteProps&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":Oa(n,t.singleQuote?"'":'"').quote,!("css"===t.parser||"less"===t.parser||"scss"===t.parser||t.__embeddedInHtml))},printNumber:function(e){return e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(\d)/,"$1$2$3").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")},makeString:ba,addLeadingComment:function(e,t){t.leading=!0,t.trailing=!1,Na(e,t)},addDanglingComment:function(e,t,n){t.leading=!1,t.trailing=!1,n&&(t.marker=n),Na(e,t)},addTrailingComment:function(e,t){t.leading=!1,t.trailing=!0,Na(e,t)},isFrontMatterNode:function(e){return e&&"front-matter"===e.type},getShebang:function(e){if(!e.startsWith("#!"))return"";const t=e.indexOf("\n");return-1===t?e:e.slice(0,t)},isNonEmptyArray:function(e){return Array.isArray(e)&&e.length>0},createGroupIdMapper:function(e){const t=new WeakMap;return function(n){return t.has(n)||t.set(n,Symbol(e)),t.get(n)}}};const{isNonEmptyArray:Pa}=Ba;function Ta(e,t){const{ignoreDecorators:n}=t||{};if(!n){const t=e.declaration&&e.declaration.decorators||e.decorators;if(Pa(t))return Ta(t[0])}return e.range?e.range[0]:e.start}function Ra(e){return e.range?e.range[1]:e.end}function La(e,t){return Ta(e)===Ta(t)}var ka={locStart:Ta,locEnd:Ra,hasSameLocStart:La,hasSameLoc:function(e,t){return La(e,t)&&function(e,t){return Ra(e)===Ra(t)}(e,t)}},_a={},Ma={},ja={};!function(e){var t="\n",n=function(){function e(e){this.string=e;for(var n=[0],r=0;r<e.length;)switch(e[r]){case t:r+=t.length,n.push(r);break;case"\r":e[r+="\r".length]===t&&(r+=t.length),n.push(r);break;default:r++}this.offsets=n}return e.prototype.locationForIndex=function(e){if(e<0||e>this.string.length)return null;for(var t=0,n=this.offsets;n[t+1]<=e;)t++;return{line:t,column:e-n[t]}},e.prototype.indexForLocation=function(e){var t=e.line,n=e.column;return t<0||t>=this.offsets.length||n<0||n>this.lengthOfLine(t)?null:this.offsets[t]+n},e.prototype.lengthOfLine=function(e){var t=this.offsets[e];return(e===this.offsets.length-1?this.string.length:this.offsets[e+1])-t},e}();e.__esModule=!0,e.default=n}(ja),Object.defineProperty(Ma,"__esModule",{value:!0}),Ma.Context=void 0;const Ka=ja;Ma.Context=class{constructor(e){this.text=e,this.locator=new Ga(this.text)}};class Ga{constructor(e){this._lineAndColumn=new Ka.default(e)}locationForIndex(e){const{line:t,column:n}=this._lineAndColumn.locationForIndex(e);return{line:t+1,column:n}}}var Ua,Wa={},$a={};
|
|
/**
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
class Va{constructor(e,t,n,r){this.input=t,this.errLocation=n,this.ctxLocation=r,this.message="Parser Error: ".concat(e," ").concat(n," [").concat(t,"] in ").concat(r)}}class Xa{constructor(e,t){this.start=e,this.end=t}toAbsolute(e){return new Fo(e+this.start,e+this.end)}}class za{constructor(e,t){this.span=e,this.sourceSpan=t}toString(){return"AST"}}class qa extends za{constructor(e,t,n){super(e,t),this.nameSpan=n}}class Qa extends za{constructor(e,t,n,r,i){super(e,t),this.prefix=n,this.uninterpretedExpression=r,this.location=i}visit(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.visitQuote(this,t)}toString(){return"Quote"}}class Ya extends za{visit(e){}}class Ha extends za{visit(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.visitImplicitReceiver(this,t)}}class Ja extends Ha{visit(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;var n;return null===(n=e.visitThisReceiver)||void 0===n?void 0:n.call(e,this,t)}}class Za extends za{constructor(e,t,n){super(e,t),this.expressions=n}visit(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.visitChain(this,t)}}class eo extends za{constructor(e,t,n,r,i){super(e,t),this.condition=n,this.trueExp=r,this.falseExp=i}visit(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.visitConditional(this,t)}}class to extends qa{constructor(e,t,n,r,i){super(e,t,n),this.receiver=r,this.name=i}visit(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.visitPropertyRead(this,t)}}class no extends qa{constructor(e,t,n,r,i,s){super(e,t,n),this.receiver=r,this.name=i,this.value=s}visit(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.visitPropertyWrite(this,t)}}class ro extends qa{constructor(e,t,n,r,i){super(e,t,n),this.receiver=r,this.name=i}visit(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.visitSafePropertyRead(this,t)}}class io extends za{constructor(e,t,n,r){super(e,t),this.receiver=n,this.key=r}visit(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.visitKeyedRead(this,t)}}class so extends za{constructor(e,t,n,r){super(e,t),this.receiver=n,this.key=r}visit(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.visitSafeKeyedRead(this,t)}}class uo extends za{constructor(e,t,n,r,i){super(e,t),this.receiver=n,this.key=r,this.value=i}visit(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.visitKeyedWrite(this,t)}}class ao extends qa{constructor(e,t,n,r,i,s){super(e,t,s),this.exp=n,this.name=r,this.args=i}visit(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.visitPipe(this,t)}}class oo extends za{constructor(e,t,n){super(e,t),this.value=n}visit(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.visitLiteralPrimitive(this,t)}}class co extends za{constructor(e,t,n){super(e,t),this.expressions=n}visit(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.visitLiteralArray(this,t)}}class Do extends za{constructor(e,t,n,r){super(e,t),this.keys=n,this.values=r}visit(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.visitLiteralMap(this,t)}}class lo extends za{constructor(e,t,n,r){super(e,t),this.strings=n,this.expressions=r}visit(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.visitInterpolation(this,t)}}class po extends za{constructor(e,t,n,r,i){super(e,t),this.operation=n,this.left=r,this.right=i}visit(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.visitBinary(this,t)}}class ho extends po{constructor(e,t,n,r,i,s,u){super(e,t,i,s,u),this.operator=n,this.expr=r}static createMinus(e,t,n){return new ho(e,t,"-",n,"-",new oo(e,t,0),n)}static createPlus(e,t,n){return new ho(e,t,"+",n,"-",n,new oo(e,t,0))}visit(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return void 0!==e.visitUnary?e.visitUnary(this,t):e.visitBinary(this,t)}}class fo extends za{constructor(e,t,n){super(e,t),this.expression=n}visit(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.visitPrefixNot(this,t)}}class Eo extends za{constructor(e,t,n){super(e,t),this.expression=n}visit(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.visitNonNullAssert(this,t)}}class vo extends qa{constructor(e,t,n,r,i,s,u){super(e,t,n),this.receiver=r,this.name=i,this.args=s,this.argumentSpan=u}visit(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.visitMethodCall(this,t)}}class Co extends qa{constructor(e,t,n,r,i,s,u){super(e,t,n),this.receiver=r,this.name=i,this.args=s,this.argumentSpan=u}visit(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.visitSafeMethodCall(this,t)}}class go extends za{constructor(e,t,n,r){super(e,t),this.target=n,this.args=r}visit(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.visitFunctionCall(this,t)}}class Fo{constructor(e,t){this.start=e,this.end=t}}class mo extends za{constructor(e,t,n,r,i){super(new Xa(0,null===t?0:t.length),new Fo(r,null===t?r:r+t.length)),this.ast=e,this.source=t,this.location=n,this.errors=i}visit(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.visitASTWithSource?e.visitASTWithSource(this,t):this.ast.visit(e,t)}toString(){return"".concat(this.source," in ").concat(this.location)}}class yo{constructor(e,t,n){this.sourceSpan=e,this.key=t,this.value=n}}class xo{constructor(e,t,n){this.sourceSpan=e,this.key=t,this.value=n}}class Ao{visit(e,t){e.visit(this,t)}visitUnary(e,t){this.visit(e.expr,t)}visitBinary(e,t){this.visit(e.left,t),this.visit(e.right,t)}visitChain(e,t){this.visitAll(e.expressions,t)}visitConditional(e,t){this.visit(e.condition,t),this.visit(e.trueExp,t),this.visit(e.falseExp,t)}visitPipe(e,t){this.visit(e.exp,t),this.visitAll(e.args,t)}visitFunctionCall(e,t){e.target&&this.visit(e.target,t),this.visitAll(e.args,t)}visitImplicitReceiver(e,t){}visitThisReceiver(e,t){}visitInterpolation(e,t){this.visitAll(e.expressions,t)}visitKeyedRead(e,t){this.visit(e.receiver,t),this.visit(e.key,t)}visitKeyedWrite(e,t){this.visit(e.receiver,t),this.visit(e.key,t),this.visit(e.value,t)}visitLiteralArray(e,t){this.visitAll(e.expressions,t)}visitLiteralMap(e,t){this.visitAll(e.values,t)}visitLiteralPrimitive(e,t){}visitMethodCall(e,t){this.visit(e.receiver,t),this.visitAll(e.args,t)}visitPrefixNot(e,t){this.visit(e.expression,t)}visitNonNullAssert(e,t){this.visit(e.expression,t)}visitPropertyRead(e,t){this.visit(e.receiver,t)}visitPropertyWrite(e,t){this.visit(e.receiver,t),this.visit(e.value,t)}visitSafePropertyRead(e,t){this.visit(e.receiver,t)}visitSafeMethodCall(e,t){this.visit(e.receiver,t),this.visitAll(e.args,t)}visitSafeKeyedRead(e,t){this.visit(e.receiver,t),this.visit(e.key,t)}visitQuote(e,t){}visitAll(e,t){for(const n of e)this.visit(n,t)}}!function(e){e[e.DEFAULT=0]="DEFAULT",e[e.LITERAL_ATTR=1]="LITERAL_ATTR",e[e.ANIMATION=2]="ANIMATION"}(Ua||(Ua={}));var wo=Object.freeze({__proto__:null,ParserError:Va,ParseSpan:Xa,AST:za,ASTWithName:qa,Quote:Qa,EmptyExpr:Ya,ImplicitReceiver:Ha,ThisReceiver:Ja,Chain:Za,Conditional:eo,PropertyRead:to,PropertyWrite:no,SafePropertyRead:ro,KeyedRead:io,SafeKeyedRead:so,KeyedWrite:uo,BindingPipe:ao,LiteralPrimitive:oo,LiteralArray:co,LiteralMap:Do,Interpolation:lo,Binary:po,Unary:ho,PrefixNot:fo,NonNullAssert:Eo,MethodCall:vo,SafeMethodCall:Co,FunctionCall:go,AbsoluteSourceSpan:Fo,ASTWithSource:mo,VariableBinding:yo,ExpressionBinding:xo,RecursiveAstVisitor:Ao,AstTransformer:class{visitImplicitReceiver(e,t){return e}visitThisReceiver(e,t){return e}visitInterpolation(e,t){return new lo(e.span,e.sourceSpan,e.strings,this.visitAll(e.expressions))}visitLiteralPrimitive(e,t){return new oo(e.span,e.sourceSpan,e.value)}visitPropertyRead(e,t){return new to(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name)}visitPropertyWrite(e,t){return new no(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name,e.value.visit(this))}visitSafePropertyRead(e,t){return new ro(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name)}visitMethodCall(e,t){return new vo(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name,this.visitAll(e.args),e.argumentSpan)}visitSafeMethodCall(e,t){return new Co(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name,this.visitAll(e.args),e.argumentSpan)}visitFunctionCall(e,t){return new go(e.span,e.sourceSpan,e.target.visit(this),this.visitAll(e.args))}visitLiteralArray(e,t){return new co(e.span,e.sourceSpan,this.visitAll(e.expressions))}visitLiteralMap(e,t){return new Do(e.span,e.sourceSpan,e.keys,this.visitAll(e.values))}visitUnary(e,t){switch(e.operator){case"+":return ho.createPlus(e.span,e.sourceSpan,e.expr.visit(this));case"-":return ho.createMinus(e.span,e.sourceSpan,e.expr.visit(this));default:throw new Error("Unknown unary operator ".concat(e.operator))}}visitBinary(e,t){return new po(e.span,e.sourceSpan,e.operation,e.left.visit(this),e.right.visit(this))}visitPrefixNot(e,t){return new fo(e.span,e.sourceSpan,e.expression.visit(this))}visitNonNullAssert(e,t){return new Eo(e.span,e.sourceSpan,e.expression.visit(this))}visitConditional(e,t){return new eo(e.span,e.sourceSpan,e.condition.visit(this),e.trueExp.visit(this),e.falseExp.visit(this))}visitPipe(e,t){return new ao(e.span,e.sourceSpan,e.exp.visit(this),e.name,this.visitAll(e.args),e.nameSpan)}visitKeyedRead(e,t){return new io(e.span,e.sourceSpan,e.receiver.visit(this),e.key.visit(this))}visitKeyedWrite(e,t){return new uo(e.span,e.sourceSpan,e.receiver.visit(this),e.key.visit(this),e.value.visit(this))}visitAll(e){const t=[];for(let n=0;n<e.length;++n)t[n]=e[n].visit(this);return t}visitChain(e,t){return new Za(e.span,e.sourceSpan,this.visitAll(e.expressions))}visitQuote(e,t){return new Qa(e.span,e.sourceSpan,e.prefix,e.uninterpretedExpression,e.location)}visitSafeKeyedRead(e,t){return new so(e.span,e.sourceSpan,e.receiver.visit(this),e.key.visit(this))}},AstMemoryEfficientTransformer:class{visitImplicitReceiver(e,t){return e}visitThisReceiver(e,t){return e}visitInterpolation(e,t){const n=this.visitAll(e.expressions);return n!==e.expressions?new lo(e.span,e.sourceSpan,e.strings,n):e}visitLiteralPrimitive(e,t){return e}visitPropertyRead(e,t){const n=e.receiver.visit(this);return n!==e.receiver?new to(e.span,e.sourceSpan,e.nameSpan,n,e.name):e}visitPropertyWrite(e,t){const n=e.receiver.visit(this),r=e.value.visit(this);return n!==e.receiver||r!==e.value?new no(e.span,e.sourceSpan,e.nameSpan,n,e.name,r):e}visitSafePropertyRead(e,t){const n=e.receiver.visit(this);return n!==e.receiver?new ro(e.span,e.sourceSpan,e.nameSpan,n,e.name):e}visitMethodCall(e,t){const n=e.receiver.visit(this),r=this.visitAll(e.args);return n!==e.receiver||r!==e.args?new vo(e.span,e.sourceSpan,e.nameSpan,n,e.name,r,e.argumentSpan):e}visitSafeMethodCall(e,t){const n=e.receiver.visit(this),r=this.visitAll(e.args);return n!==e.receiver||r!==e.args?new Co(e.span,e.sourceSpan,e.nameSpan,n,e.name,r,e.argumentSpan):e}visitFunctionCall(e,t){const n=e.target&&e.target.visit(this),r=this.visitAll(e.args);return n!==e.target||r!==e.args?new go(e.span,e.sourceSpan,n,r):e}visitLiteralArray(e,t){const n=this.visitAll(e.expressions);return n!==e.expressions?new co(e.span,e.sourceSpan,n):e}visitLiteralMap(e,t){const n=this.visitAll(e.values);return n!==e.values?new Do(e.span,e.sourceSpan,e.keys,n):e}visitUnary(e,t){const n=e.expr.visit(this);if(n!==e.expr)switch(e.operator){case"+":return ho.createPlus(e.span,e.sourceSpan,n);case"-":return ho.createMinus(e.span,e.sourceSpan,n);default:throw new Error("Unknown unary operator ".concat(e.operator))}return e}visitBinary(e,t){const n=e.left.visit(this),r=e.right.visit(this);return n!==e.left||r!==e.right?new po(e.span,e.sourceSpan,e.operation,n,r):e}visitPrefixNot(e,t){const n=e.expression.visit(this);return n!==e.expression?new fo(e.span,e.sourceSpan,n):e}visitNonNullAssert(e,t){const n=e.expression.visit(this);return n!==e.expression?new Eo(e.span,e.sourceSpan,n):e}visitConditional(e,t){const n=e.condition.visit(this),r=e.trueExp.visit(this),i=e.falseExp.visit(this);return n!==e.condition||r!==e.trueExp||i!==e.falseExp?new eo(e.span,e.sourceSpan,n,r,i):e}visitPipe(e,t){const n=e.exp.visit(this),r=this.visitAll(e.args);return n!==e.exp||r!==e.args?new ao(e.span,e.sourceSpan,n,e.name,r,e.nameSpan):e}visitKeyedRead(e,t){const n=e.receiver.visit(this),r=e.key.visit(this);return n!==e.receiver||r!==e.key?new io(e.span,e.sourceSpan,n,r):e}visitKeyedWrite(e,t){const n=e.receiver.visit(this),r=e.key.visit(this),i=e.value.visit(this);return n!==e.receiver||r!==e.key||i!==e.value?new uo(e.span,e.sourceSpan,n,r,i):e}visitAll(e){const t=[];let n=!1;for(let r=0;r<e.length;++r){const i=e[r],s=i.visit(this);t[r]=s,n=n||s!==i}return n?t:e}visitChain(e,t){const n=this.visitAll(e.expressions);return n!==e.expressions?new Za(e.span,e.sourceSpan,n):e}visitQuote(e,t){return e}visitSafeKeyedRead(e,t){const n=e.receiver.visit(this),r=e.key.visit(this);return n!==e.receiver||r!==e.key?new so(e.span,e.sourceSpan,n,r):e}},ParsedProperty:class{constructor(e,t,n,r,i,s){this.name=e,this.expression=t,this.type=n,this.sourceSpan=r,this.keySpan=i,this.valueSpan=s,this.isLiteral=this.type===Ua.LITERAL_ATTR,this.isAnimation=this.type===Ua.ANIMATION}},get ParsedPropertyType(){return Ua},ParsedEvent:class{constructor(e,t,n,r,i,s,u){this.name=e,this.targetOrPhase=t,this.type=n,this.handler=r,this.sourceSpan=i,this.handlerSpan=s,this.keySpan=u}},ParsedVariable:class{constructor(e,t,n,r,i){this.name=e,this.value=t,this.sourceSpan=n,this.keySpan=r,this.valueSpan=i}},BoundElementProperty:class{constructor(e,t,n,r,i,s,u,a){this.name=e,this.type=t,this.securityContext=n,this.value=r,this.unit=i,this.sourceSpan=s,this.keySpan=u,this.valueSpan=a}}});
|
|
/**
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/const So=41,Io=46,Oo=58,bo=125;function No(e){return 48<=e&&e<=57}function Bo(e){return 39===e||34===e||96===e}
|
|
/**
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/var Po;!function(e){e[e.Character=0]="Character",e[e.Identifier=1]="Identifier",e[e.PrivateIdentifier=2]="PrivateIdentifier",e[e.Keyword=3]="Keyword",e[e.String=4]="String",e[e.Operator=5]="Operator",e[e.Number=6]="Number",e[e.Error=7]="Error"}(Po||(Po={}));const To=["var","let","as","null","undefined","true","false","if","else","this"];class Ro{constructor(e,t,n,r,i){this.index=e,this.end=t,this.type=n,this.numValue=r,this.strValue=i}isCharacter(e){return this.type==Po.Character&&this.numValue==e}isNumber(){return this.type==Po.Number}isString(){return this.type==Po.String}isOperator(e){return this.type==Po.Operator&&this.strValue==e}isIdentifier(){return this.type==Po.Identifier}isPrivateIdentifier(){return this.type==Po.PrivateIdentifier}isKeyword(){return this.type==Po.Keyword}isKeywordLet(){return this.type==Po.Keyword&&"let"==this.strValue}isKeywordAs(){return this.type==Po.Keyword&&"as"==this.strValue}isKeywordNull(){return this.type==Po.Keyword&&"null"==this.strValue}isKeywordUndefined(){return this.type==Po.Keyword&&"undefined"==this.strValue}isKeywordTrue(){return this.type==Po.Keyword&&"true"==this.strValue}isKeywordFalse(){return this.type==Po.Keyword&&"false"==this.strValue}isKeywordThis(){return this.type==Po.Keyword&&"this"==this.strValue}isError(){return this.type==Po.Error}toNumber(){return this.type==Po.Number?this.numValue:-1}toString(){switch(this.type){case Po.Character:case Po.Identifier:case Po.Keyword:case Po.Operator:case Po.PrivateIdentifier:case Po.String:case Po.Error:return this.strValue;case Po.Number:return this.numValue.toString();default:return null}}}function Lo(e,t,n){return new Ro(e,t,Po.Character,n,String.fromCharCode(n))}function ko(e,t,n){return new Ro(e,t,Po.Operator,0,n)}const _o=new Ro(-1,-1,Po.Character,0,"");class Mo{constructor(e){this.input=e,this.peek=0,this.index=-1,this.length=e.length,this.advance()}advance(){this.peek=++this.index>=this.length?0:this.input.charCodeAt(this.index)}scanToken(){const e=this.input,t=this.length;let n=this.peek,r=this.index;for(;n<=32;){if(++r>=t){n=0;break}n=e.charCodeAt(r)}if(this.peek=n,this.index=r,r>=t)return null;if(jo(n))return this.scanIdentifier();if(No(n))return this.scanNumber(r);const i=r;switch(n){case Io:return this.advance(),No(this.peek)?this.scanNumber(i):Lo(i,this.index,Io);case 40:case So:case 123:case bo:case 91:case 93:case 44:case Oo:case 59:return this.scanCharacter(i,n);case 39:case 34:return this.scanString();case 35:return this.scanPrivateIdentifier();case 43:case 45:case 42:case 47:case 37:case 94:return this.scanOperator(i,String.fromCharCode(n));case 63:return this.scanQuestion(i);case 60:case 62:return this.scanComplexOperator(i,String.fromCharCode(n),61,"=");case 33:case 61:return this.scanComplexOperator(i,String.fromCharCode(n),61,"=",61,"=");case 38:return this.scanComplexOperator(i,"&",38,"&");case 124:return this.scanComplexOperator(i,"|",124,"|");case 160:for(;(s=this.peek)>=9&&s<=32||160==s;)this.advance();return this.scanToken()}var s;return this.advance(),this.error("Unexpected character [".concat(String.fromCharCode(n),"]"),0)}scanCharacter(e,t){return this.advance(),Lo(e,this.index,t)}scanOperator(e,t){return this.advance(),ko(e,this.index,t)}scanComplexOperator(e,t,n,r,i,s){this.advance();let u=t;return this.peek==n&&(this.advance(),u+=r),null!=i&&this.peek==i&&(this.advance(),u+=s),ko(e,this.index,u)}scanIdentifier(){const e=this.index;for(this.advance();Go(this.peek);)this.advance();const t=this.input.substring(e,this.index);return To.indexOf(t)>-1?(n=e,r=this.index,i=t,new Ro(n,r,Po.Keyword,0,i)):function(e,t,n){return new Ro(e,t,Po.Identifier,0,n)}(e,this.index,t);var n,r,i}scanPrivateIdentifier(){const e=this.index;if(this.advance(),!jo(this.peek))return this.error("Invalid character [#]",-1);for(;Go(this.peek);)this.advance();const t=this.input.substring(e,this.index);return n=e,r=this.index,i=t,new Ro(n,r,Po.PrivateIdentifier,0,i);var n,r,i}scanNumber(e){let t=this.index===e,n=!1;for(this.advance();;){if(No(this.peek));else if(95===this.peek){if(!No(this.input.charCodeAt(this.index-1))||!No(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);n=!0}else if(this.peek===Io)t=!1;else{if(101!=(r=this.peek)&&69!=r)break;if(this.advance(),Uo(this.peek)&&this.advance(),!No(this.peek))return this.error("Invalid exponent",-1);t=!1}this.advance()}var r;let i=this.input.substring(e,this.index);n&&(i=i.replace(/_/g,""));const s=t?function(e){const t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}(i):parseFloat(i);return u=e,a=this.index,o=s,new Ro(u,a,Po.Number,o,"");var u,a,o}scanString(){const e=this.index,t=this.peek;this.advance();let n="",r=this.index;const i=this.input;for(;this.peek!=t;)if(92==this.peek){let e;if(n+=i.substring(r,this.index),this.advance(),this.peek=this.peek,117==this.peek){const t=i.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(t))return this.error("Invalid unicode escape [\\u".concat(t,"]"),0);e=parseInt(t,16);for(let e=0;e<5;e++)this.advance()}else e=Wo(this.peek),this.advance();n+=String.fromCharCode(e),r=this.index}else{if(0==this.peek)return this.error("Unterminated quote",0);this.advance()}const s=i.substring(r,this.index);return this.advance(),u=e,a=this.index,o=n+s,new Ro(u,a,Po.String,0,o);var u,a,o}scanQuestion(e){this.advance();let t="?";return 63!==this.peek&&this.peek!==Io||(t+=this.peek===Io?".":"?",this.advance()),ko(e,this.index,t)}error(e,t){const n=this.index+t;return function(e,t,n){return new Ro(e,t,Po.Error,0,n)}(n,this.index,"Lexer Error: ".concat(e," at column ").concat(n," in expression [").concat(this.input,"]"))}}function jo(e){return 97<=e&&e<=122||65<=e&&e<=90||95==e||36==e}function Ko(e){if(0==e.length)return!1;const t=new Mo(e);if(!jo(t.peek))return!1;for(t.advance();0!==t.peek;){if(!Go(t.peek))return!1;t.advance()}return!0}function Go(e){return function(e){return e>=97&&e<=122||e>=65&&e<=90}(e)||No(e)||95==e||36==e}function Uo(e){return 45==e||43==e}function Wo(e){switch(e){case 110:return 10;case 102:return 12;case 114:return 13;case 116:return 9;case 118:return 11;default:return e}}var $o=Object.freeze({__proto__:null,get TokenType(){return Po},Lexer:class{tokenize(e){const t=new Mo(e),n=[];let r=t.scanToken();for(;null!=r;)n.push(r),r=t.scanToken();return n}},Token:Ro,EOF:_o,isIdentifier:Ko});
|
|
/**
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/const Vo=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];
|
|
/**
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
class Xo{constructor(e,t){this.start=e,this.end=t}static fromArray(e){return e?(function(e,t){if(!(null==t||Array.isArray(t)&&2==t.length))throw new Error("Expected '".concat(e,"' to be an array, [start, end]."));if(null!=t){const e=t[0],n=t[1];Vo.forEach((t=>{if(t.test(e)||t.test(n))throw new Error("['".concat(e,"', '").concat(n,"'] contains unusable interpolation symbol."))}))}}("interpolation",e),new Xo(e[0],e[1])):zo}}const zo=new Xo("{{","}}");
|
|
/**
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/class qo{constructor(e,t,n){this.strings=e,this.expressions=t,this.offsets=n}}class Qo{constructor(e,t,n){this.templateBindings=e,this.warnings=t,this.errors=n}}class Yo{constructor(e){this._lexer=e,this.errors=[],this.simpleExpressionChecker=Zo}parseAction(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:zo;this._checkNoInterpolation(e,t,r);const i=this._stripComments(e),s=this._lexer.tokenize(this._stripComments(e)),u=new Jo(e,t,n,s,i.length,!0,this.errors,e.length-i.length).parseChain();return new mo(u,e,t,n,this.errors)}parseBinding(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:zo;const i=this._parseBindingAst(e,t,n,r);return new mo(i,e,t,n,this.errors)}checkSimpleExpression(e){const t=new this.simpleExpressionChecker;return e.visit(t),t.errors}parseSimpleBinding(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:zo;const i=this._parseBindingAst(e,t,n,r),s=this.checkSimpleExpression(i);return s.length>0&&this._reportError("Host binding expression cannot contain ".concat(s.join(" ")),e,t),new mo(i,e,t,n,this.errors)}_reportError(e,t,n,r){this.errors.push(new Va(e,t,n,r))}_parseBindingAst(e,t,n,r){const i=this._parseQuote(e,t,n);if(null!=i)return i;this._checkNoInterpolation(e,t,r);const s=this._stripComments(e),u=this._lexer.tokenize(s);return new Jo(e,t,n,u,s.length,!1,this.errors,e.length-s.length).parseChain()}_parseQuote(e,t,n){if(null==e)return null;const r=e.indexOf(":");if(-1==r)return null;const i=e.substring(0,r).trim();if(!Ko(i))return null;const s=e.substring(r+1),u=new Xa(0,e.length);return new Qa(u,u.toAbsolute(n),i,s,t)}parseTemplateBindings(e,t,n,r,i){const s=this._lexer.tokenize(t);return new Jo(t,n,i,s,t.length,!1,this.errors,0).parseTemplateBindings({source:e,span:new Fo(r,r+e.length)})}parseInterpolation(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:zo;const{strings:i,expressions:s,offsets:u}=this.splitInterpolation(e,t,r);if(0===s.length)return null;const a=[];for(let r=0;r<s.length;++r){const i=s[r].text,o=this._stripComments(i),c=this._lexer.tokenize(o),D=new Jo(e,t,n,c,o.length,!1,this.errors,u[r]+(i.length-o.length)).parseChain();a.push(D)}return this.createInterpolationAst(i.map((e=>e.text)),a,e,t,n)}parseInterpolationExpression(e,t,n){const r=this._stripComments(e),i=this._lexer.tokenize(r),s=new Jo(e,t,n,i,r.length,!1,this.errors,0).parseChain();return this.createInterpolationAst(["",""],[s],e,t,n)}createInterpolationAst(e,t,n,r,i){const s=new Xa(0,n.length),u=new lo(s,s.toAbsolute(i),e,t);return new mo(u,n,r,i,this.errors)}splitInterpolation(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:zo;const r=[],i=[],s=[];let u=0,a=!1,o=!1,{start:c,end:D}=n;for(;u<e.length;)if(a){const n=u,r=n+c.length,l=this._getInterpolationEndIndex(e,D,r);if(-1===l){a=!1,o=!0;break}const p=l+D.length,h=e.substring(r,l);0===h.trim().length&&this._reportError("Blank expressions are not allowed in interpolated strings",e,"at column ".concat(u," in"),t),i.push({text:h,start:n,end:p}),s.push(r),u=p,a=!1}else{const t=u;u=e.indexOf(c,u),-1===u&&(u=e.length);const n=e.substring(t,u);r.push({text:n,start:t,end:u}),a=!0}if(!a)if(o){const t=r[r.length-1];t.text+=e.substring(u),t.end=e.length}else r.push({text:e.substring(u),start:u,end:e.length});return new qo(r,i,s)}wrapLiteralPrimitive(e,t,n){const r=new Xa(0,null==e?0:e.length);return new mo(new oo(r,r.toAbsolute(n),e),e,t,n,this.errors)}_stripComments(e){const t=this._commentStart(e);return null!=t?e.substring(0,t).trim():e}_commentStart(e){let t=null;for(let n=0;n<e.length-1;n++){const r=e.charCodeAt(n),i=e.charCodeAt(n+1);if(47===r&&47==i&&null==t)return n;t===r?t=null:null==t&&Bo(r)&&(t=r)}return null}_checkNoInterpolation(e,t,n){let{start:r,end:i}=n,s=-1,u=-1;for(const t of this._forEachUnquotedChar(e,0))if(-1===s)e.startsWith(r)&&(s=t);else if(u=this._getInterpolationEndIndex(e,i,t),u>-1)break;s>-1&&u>-1&&this._reportError("Got interpolation (".concat(r).concat(i,") where expression was expected"),e,"at column ".concat(s," in"),t)}_getInterpolationEndIndex(e,t,n){for(const r of this._forEachUnquotedChar(e,n)){if(e.startsWith(t,r))return r;if(e.startsWith("//",r))return e.indexOf(t,r)}return-1}*_forEachUnquotedChar(e,t){let n=null,r=0;for(let i=t;i<e.length;i++){const t=e[i];!Bo(e.charCodeAt(i))||null!==n&&n!==t||r%2!=0?null===n&&(yield i):n=null===n?t:null,r="\\"===t?r+1:0}}}var Ho;!function(e){e[e.None=0]="None",e[e.Writable=1]="Writable"}(Ho||(Ho={}));class Jo{constructor(e,t,n,r,i,s,u,a){this.input=e,this.location=t,this.absoluteOffset=n,this.tokens=r,this.inputLength=i,this.parseAction=s,this.errors=u,this.offset=a,this.rparensExpected=0,this.rbracketsExpected=0,this.rbracesExpected=0,this.context=Ho.None,this.sourceSpanCache=new Map,this.index=0}peek(e){const t=this.index+e;return t<this.tokens.length?this.tokens[t]:_o}get next(){return this.peek(0)}get atEOF(){return this.index>=this.tokens.length}get inputIndex(){return this.atEOF?this.currentEndIndex:this.next.index+this.offset}get currentEndIndex(){if(this.index>0){return this.peek(-1).end+this.offset}return 0===this.tokens.length?this.inputLength+this.offset:this.next.index+this.offset}get currentAbsoluteOffset(){return this.absoluteOffset+this.inputIndex}span(e,t){let n=this.currentEndIndex;if(void 0!==t&&t>this.currentEndIndex&&(n=t),e>n){const t=n;n=e,e=t}return new Xa(e,n)}sourceSpan(e,t){const n="".concat(e,"@").concat(this.inputIndex,":").concat(t);return this.sourceSpanCache.has(n)||this.sourceSpanCache.set(n,this.span(e,t).toAbsolute(this.absoluteOffset)),this.sourceSpanCache.get(n)}advance(){this.index++}withContext(e,t){this.context|=e;const n=t();return this.context^=e,n}consumeOptionalCharacter(e){return!!this.next.isCharacter(e)&&(this.advance(),!0)}peekKeywordLet(){return this.next.isKeywordLet()}peekKeywordAs(){return this.next.isKeywordAs()}expectCharacter(e){this.consumeOptionalCharacter(e)||this.error("Missing expected ".concat(String.fromCharCode(e)))}consumeOptionalOperator(e){return!!this.next.isOperator(e)&&(this.advance(),!0)}expectOperator(e){this.consumeOptionalOperator(e)||this.error("Missing expected operator ".concat(e))}prettyPrintToken(e){return e===_o?"end of input":"token ".concat(e)}expectIdentifierOrKeyword(){const e=this.next;return e.isIdentifier()||e.isKeyword()?(this.advance(),e.toString()):(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier or keyword"):this.error("Unexpected ".concat(this.prettyPrintToken(e),", expected identifier or keyword")),null)}expectIdentifierOrKeywordOrString(){const e=this.next;return e.isIdentifier()||e.isKeyword()||e.isString()?(this.advance(),e.toString()):(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier, keyword or string"):this.error("Unexpected ".concat(this.prettyPrintToken(e),", expected identifier, keyword, or string")),"")}parseChain(){const e=[],t=this.inputIndex;for(;this.index<this.tokens.length;){const t=this.parsePipe();if(e.push(t),this.consumeOptionalCharacter(59))for(this.parseAction||this.error("Binding expression cannot contain chained expression");this.consumeOptionalCharacter(59););else this.index<this.tokens.length&&this.error("Unexpected token '".concat(this.next,"'"))}if(0==e.length){const e=this.offset,t=this.offset+this.inputLength;return new Ya(this.span(e,t),this.sourceSpan(e,t))}return 1==e.length?e[0]:new Za(this.span(t),this.sourceSpan(t),e)}parsePipe(){const e=this.inputIndex;let t=this.parseExpression();if(this.consumeOptionalOperator("|")){this.parseAction&&this.error("Cannot have a pipe in an action expression");do{const n=this.inputIndex;let r,i,s=this.expectIdentifierOrKeyword();null!==s?r=this.sourceSpan(n):(s="",i=-1!==this.next.index?this.next.index:this.inputLength+this.offset,r=new Xa(i,i).toAbsolute(this.absoluteOffset));const u=[];for(;this.consumeOptionalCharacter(Oo);)u.push(this.parseExpression());t=new ao(this.span(e),this.sourceSpan(e,i),t,s,u,r)}while(this.consumeOptionalOperator("|"))}return t}parseExpression(){return this.parseConditional()}parseConditional(){const e=this.inputIndex,t=this.parseLogicalOr();if(this.consumeOptionalOperator("?")){const n=this.parsePipe();let r;if(this.consumeOptionalCharacter(Oo))r=this.parsePipe();else{const t=this.inputIndex,n=this.input.substring(e,t);this.error("Conditional expression ".concat(n," requires all 3 expressions")),r=new Ya(this.span(e),this.sourceSpan(e))}return new eo(this.span(e),this.sourceSpan(e),t,n,r)}return t}parseLogicalOr(){const e=this.inputIndex;let t=this.parseLogicalAnd();for(;this.consumeOptionalOperator("||");){const n=this.parseLogicalAnd();t=new po(this.span(e),this.sourceSpan(e),"||",t,n)}return t}parseLogicalAnd(){const e=this.inputIndex;let t=this.parseNullishCoalescing();for(;this.consumeOptionalOperator("&&");){const n=this.parseNullishCoalescing();t=new po(this.span(e),this.sourceSpan(e),"&&",t,n)}return t}parseNullishCoalescing(){const e=this.inputIndex;let t=this.parseEquality();for(;this.consumeOptionalOperator("??");){const n=this.parseEquality();t=new po(this.span(e),this.sourceSpan(e),"??",t,n)}return t}parseEquality(){const e=this.inputIndex;let t=this.parseRelational();for(;this.next.type==Po.Operator;){const n=this.next.strValue;switch(n){case"==":case"===":case"!=":case"!==":this.advance();const r=this.parseRelational();t=new po(this.span(e),this.sourceSpan(e),n,t,r);continue}break}return t}parseRelational(){const e=this.inputIndex;let t=this.parseAdditive();for(;this.next.type==Po.Operator;){const n=this.next.strValue;switch(n){case"<":case">":case"<=":case">=":this.advance();const r=this.parseAdditive();t=new po(this.span(e),this.sourceSpan(e),n,t,r);continue}break}return t}parseAdditive(){const e=this.inputIndex;let t=this.parseMultiplicative();for(;this.next.type==Po.Operator;){const n=this.next.strValue;switch(n){case"+":case"-":this.advance();let r=this.parseMultiplicative();t=new po(this.span(e),this.sourceSpan(e),n,t,r);continue}break}return t}parseMultiplicative(){const e=this.inputIndex;let t=this.parsePrefix();for(;this.next.type==Po.Operator;){const n=this.next.strValue;switch(n){case"*":case"%":case"/":this.advance();let r=this.parsePrefix();t=new po(this.span(e),this.sourceSpan(e),n,t,r);continue}break}return t}parsePrefix(){if(this.next.type==Po.Operator){const e=this.inputIndex;let t;switch(this.next.strValue){case"+":return this.advance(),t=this.parsePrefix(),ho.createPlus(this.span(e),this.sourceSpan(e),t);case"-":return this.advance(),t=this.parsePrefix(),ho.createMinus(this.span(e),this.sourceSpan(e),t);case"!":return this.advance(),t=this.parsePrefix(),new fo(this.span(e),this.sourceSpan(e),t)}}return this.parseCallChain()}parseCallChain(){const e=this.inputIndex;let t=this.parsePrimary();for(;;)if(this.consumeOptionalCharacter(Io))t=this.parseAccessMemberOrMethodCall(t,e,!1);else if(this.consumeOptionalOperator("?."))t=this.consumeOptionalCharacter(91)?this.parseKeyedReadOrWrite(t,e,!0):this.parseAccessMemberOrMethodCall(t,e,!0);else if(this.consumeOptionalCharacter(91))t=this.parseKeyedReadOrWrite(t,e,!1);else if(this.consumeOptionalCharacter(40)){this.rparensExpected++;const n=this.parseCallArguments();this.rparensExpected--,this.expectCharacter(So),t=new go(this.span(e),this.sourceSpan(e),t,n)}else{if(!this.consumeOptionalOperator("!"))return t;t=new Eo(this.span(e),this.sourceSpan(e),t)}}parsePrimary(){const e=this.inputIndex;if(this.consumeOptionalCharacter(40)){this.rparensExpected++;const e=this.parsePipe();return this.rparensExpected--,this.expectCharacter(So),e}if(this.next.isKeywordNull())return this.advance(),new oo(this.span(e),this.sourceSpan(e),null);if(this.next.isKeywordUndefined())return this.advance(),new oo(this.span(e),this.sourceSpan(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new oo(this.span(e),this.sourceSpan(e),!0);if(this.next.isKeywordFalse())return this.advance(),new oo(this.span(e),this.sourceSpan(e),!1);if(this.next.isKeywordThis())return this.advance(),new Ja(this.span(e),this.sourceSpan(e));if(this.consumeOptionalCharacter(91)){this.rbracketsExpected++;const t=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new co(this.span(e),this.sourceSpan(e),t)}if(this.next.isCharacter(123))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new Ha(this.span(e),this.sourceSpan(e)),e,!1);if(this.next.isNumber()){const t=this.next.toNumber();return this.advance(),new oo(this.span(e),this.sourceSpan(e),t)}if(this.next.isString()){const t=this.next.toString();return this.advance(),new oo(this.span(e),this.sourceSpan(e),t)}return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new Ya(this.span(e),this.sourceSpan(e))):this.index>=this.tokens.length?(this.error("Unexpected end of expression: ".concat(this.input)),new Ya(this.span(e),this.sourceSpan(e))):(this.error("Unexpected token ".concat(this.next)),new Ya(this.span(e),this.sourceSpan(e)))}parseExpressionList(e){const t=[];do{if(this.next.isCharacter(e))break;t.push(this.parsePipe())}while(this.consumeOptionalCharacter(44));return t}parseLiteralMap(){const e=[],t=[],n=this.inputIndex;if(this.expectCharacter(123),!this.consumeOptionalCharacter(bo)){this.rbracesExpected++;do{const n=this.inputIndex,r=this.next.isString(),i=this.expectIdentifierOrKeywordOrString();if(e.push({key:i,quoted:r}),r)this.expectCharacter(Oo),t.push(this.parsePipe());else if(this.consumeOptionalCharacter(Oo))t.push(this.parsePipe());else{const e=this.span(n),r=this.sourceSpan(n);t.push(new to(e,r,r,new Ha(e,r),i))}}while(this.consumeOptionalCharacter(44));this.rbracesExpected--,this.expectCharacter(bo)}return new Do(this.span(n),this.sourceSpan(n),e,t)}parseAccessMemberOrMethodCall(e,t,n){const r=this.inputIndex,i=this.withContext(Ho.Writable,(()=>{var t;const n=null!==(t=this.expectIdentifierOrKeyword())&&void 0!==t?t:"";return 0===n.length&&this.error("Expected identifier for property access",e.span.end),n})),s=this.sourceSpan(r);if(this.consumeOptionalCharacter(40)){const r=this.inputIndex;this.rparensExpected++;const u=this.parseCallArguments(),a=this.span(r,this.inputIndex).toAbsolute(this.absoluteOffset);this.expectCharacter(So),this.rparensExpected--;const o=this.span(t),c=this.sourceSpan(t);return n?new Co(o,c,s,e,i,u,a):new vo(o,c,s,e,i,u,a)}if(n)return this.consumeOptionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new Ya(this.span(t),this.sourceSpan(t))):new ro(this.span(t),this.sourceSpan(t),s,e,i);if(this.consumeOptionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new Ya(this.span(t),this.sourceSpan(t));const n=this.parseConditional();return new no(this.span(t),this.sourceSpan(t),s,e,i,n)}return new to(this.span(t),this.sourceSpan(t),s,e,i)}parseCallArguments(){if(this.next.isCharacter(So))return[];const e=[];do{e.push(this.parsePipe())}while(this.consumeOptionalCharacter(44));return e}expectTemplateBindingKey(){let e="",t=!1;const n=this.currentAbsoluteOffset;do{e+=this.expectIdentifierOrKeywordOrString(),t=this.consumeOptionalOperator("-"),t&&(e+="-")}while(t);return{source:e,span:new Fo(n,n+e.length)}}parseTemplateBindings(e){const t=[];for(t.push(...this.parseDirectiveKeywordBindings(e));this.index<this.tokens.length;){const n=this.parseLetBinding();if(n)t.push(n);else{const n=this.expectTemplateBindingKey(),r=this.parseAsBinding(n);r?t.push(r):(n.source=e.source+n.source.charAt(0).toUpperCase()+n.source.substring(1),t.push(...this.parseDirectiveKeywordBindings(n)))}this.consumeStatementTerminator()}return new Qo(t,[],this.errors)}parseKeyedReadOrWrite(e,t,n){return this.withContext(Ho.Writable,(()=>{this.rbracketsExpected++;const r=this.parsePipe();if(r instanceof Ya&&this.error("Key access cannot be empty"),this.rbracketsExpected--,this.expectCharacter(93),!this.consumeOptionalOperator("="))return n?new so(this.span(t),this.sourceSpan(t),e,r):new io(this.span(t),this.sourceSpan(t),e,r);if(!n){const n=this.parseConditional();return new uo(this.span(t),this.sourceSpan(t),e,r,n)}return this.error("The '?.' operator cannot be used in the assignment"),new Ya(this.span(t),this.sourceSpan(t))}))}parseDirectiveKeywordBindings(e){const t=[];this.consumeOptionalCharacter(Oo);const n=this.getDirectiveBoundTarget();let r=this.currentAbsoluteOffset;const i=this.parseAsBinding(e);i||(this.consumeStatementTerminator(),r=this.currentAbsoluteOffset);const s=new Fo(e.span.start,r);return t.push(new xo(s,e,n)),i&&t.push(i),t}getDirectiveBoundTarget(){if(this.next===_o||this.peekKeywordAs()||this.peekKeywordLet())return null;const e=this.parsePipe(),{start:t,end:n}=e.span,r=this.input.substring(t,n);return new mo(e,r,this.location,this.absoluteOffset+t,this.errors)}parseAsBinding(e){if(!this.peekKeywordAs())return null;this.advance();const t=this.expectTemplateBindingKey();this.consumeStatementTerminator();const n=new Fo(e.span.start,this.currentAbsoluteOffset);return new yo(n,t,e)}parseLetBinding(){if(!this.peekKeywordLet())return null;const e=this.currentAbsoluteOffset;this.advance();const t=this.expectTemplateBindingKey();let n=null;this.consumeOptionalOperator("=")&&(n=this.expectTemplateBindingKey()),this.consumeStatementTerminator();const r=new Fo(e,this.currentAbsoluteOffset);return new yo(r,t,n)}consumeStatementTerminator(){this.consumeOptionalCharacter(59)||this.consumeOptionalCharacter(44)}error(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.errors.push(new Va(e,this.input,this.locationText(t),this.location)),this.skip()}locationText(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null==e&&(e=this.index),e<this.tokens.length?"at column ".concat(this.tokens[e].index+1," in"):"at the end of the expression"}_reportErrorForPrivateIdentifier(e,t){let n="Private identifiers are not supported. Unexpected private identifier: ".concat(e);null!==t&&(n+=", ".concat(t)),this.error(n)}skip(){let e=this.next;for(;!(!(this.index<this.tokens.length)||e.isCharacter(59)||e.isOperator("|")||!(this.rparensExpected<=0)&&e.isCharacter(So)||!(this.rbracesExpected<=0)&&e.isCharacter(bo)||!(this.rbracketsExpected<=0)&&e.isCharacter(93)||this.context&Ho.Writable&&e.isOperator("="));)this.next.isError()&&this.errors.push(new Va(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),e=this.next}}class Zo{constructor(){this.errors=[]}visitImplicitReceiver(e,t){}visitThisReceiver(e,t){}visitInterpolation(e,t){}visitLiteralPrimitive(e,t){}visitPropertyRead(e,t){}visitPropertyWrite(e,t){}visitSafePropertyRead(e,t){}visitMethodCall(e,t){}visitSafeMethodCall(e,t){}visitFunctionCall(e,t){}visitLiteralArray(e,t){this.visitAll(e.expressions,t)}visitLiteralMap(e,t){this.visitAll(e.values,t)}visitUnary(e,t){}visitBinary(e,t){}visitPrefixNot(e,t){}visitNonNullAssert(e,t){}visitConditional(e,t){}visitPipe(e,t){this.errors.push("pipes")}visitKeyedRead(e,t){}visitKeyedWrite(e,t){}visitAll(e,t){return e.map((e=>e.visit(this,t)))}visitChain(e,t){}visitQuote(e,t){}visitSafeKeyedRead(e,t){}}class ec extends Ao{constructor(){super(...arguments),this.errors=[]}visitPipe(){this.errors.push("pipes")}}var tc=Object.freeze({__proto__:null,SplitInterpolation:qo,TemplateBindingParseResult:Qo,Parser:Yo,IvyParser:class extends Yo{constructor(){super(...arguments),this.simpleExpressionChecker=ec}},_ParseAST:Jo});!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getLast=e.toLowerCamelCase=e.findBackChar=e.findFrontChar=e.fitSpans=e.getNgType=e.parseNgInterpolation=e.parseNgTemplateBindings=e.parseNgAction=e.parseNgSimpleBinding=e.parseNgBinding=e.NG_PARSE_TEMPLATE_BINDINGS_FAKE_PREFIX=void 0;const t=wo,n=$o,r=tc,i="angular-estree-parser";e.NG_PARSE_TEMPLATE_BINDINGS_FAKE_PREFIX="NgEstreeParser";const s=[i,0];function u(){return new r.Parser(new n.Lexer)}function a(e,t){const n=u(),{astInput:r,comments:i}=D(e,n),{ast:s,errors:a}=t(r,n);return c(a),{ast:s,comments:i}}function o(e,t){if(e&&"object"==typeof e){if(Array.isArray(e))return e.forEach((e=>o(e,t)));for(const n of Object.keys(e)){const r=e[n];"span"===n?t(r):o(r,t)}}}function c(e){if(0!==e.length){const[{message:t}]=e;throw new SyntaxError(t.replace(/^Parser Error: | at column \d+ in [^]*$/g,""))}}function D(e,t){const n=t._commentStart(e);return null===n?{astInput:e,comments:[]}:{astInput:e.slice(0,n),comments:[{type:"Comment",value:e.slice(n+"//".length),span:{start:n,end:e.length}}]}}function l(e,t){let{start:n,end:r}=e,i=n,s=r;for(;s!==i&&/\s/.test(t[s-1]);)s--;for(;i!==s&&/\s/.test(t[i]);)i++;return{start:i,end:s}}function p(e,t){let{start:n,end:r}=e,i=n,s=r;for(;s!==t.length&&/\s/.test(t[s]);)s++;for(;0!==i&&/\s/.test(t[i-1]);)i--;return{start:i,end:s}}function h(e,t){return"("===t[e.start-1]&&")"===t[e.end]?{start:e.start-1,end:e.end+1}:e}e.parseNgBinding=function(e){return a(e,((e,t)=>t.parseBinding(e,...s)))},e.parseNgSimpleBinding=function(e){return a(e,((e,t)=>t.parseSimpleBinding(e,...s)))},e.parseNgAction=function(e){return a(e,((e,t)=>t.parseAction(e,...s)))},e.parseNgTemplateBindings=function(t){const n=u(),{templateBindings:r,errors:s}=n.parseTemplateBindings(e.NG_PARSE_TEMPLATE_BINDINGS_FAKE_PREFIX,t,i,0,0);return c(s),r},e.parseNgInterpolation=function(e){const t=u(),{astInput:n,comments:r}=D(e,t),i="{{",{ast:a,errors:l}=t.parseInterpolation(i+n+"}}",...s);c(l);const p=a.expressions[0],h=new Set;return o(p,(e=>{h.has(e)||(e.start-=i.length,e.end-=i.length,h.add(e))})),{ast:p,comments:r}},e.getNgType=function(e){return t.Unary&&e instanceof t.Unary?"Unary":e instanceof t.Binary?"Binary":e instanceof t.BindingPipe?"BindingPipe":e instanceof t.Chain?"Chain":e instanceof t.Conditional?"Conditional":e instanceof t.EmptyExpr?"EmptyExpr":e instanceof t.FunctionCall?"FunctionCall":e instanceof t.ImplicitReceiver?"ImplicitReceiver":e instanceof t.KeyedRead?"KeyedRead":e instanceof t.KeyedWrite?"KeyedWrite":e instanceof t.LiteralArray?"LiteralArray":e instanceof t.LiteralMap?"LiteralMap":e instanceof t.LiteralPrimitive?"LiteralPrimitive":e instanceof t.MethodCall?"MethodCall":e instanceof t.NonNullAssert?"NonNullAssert":e instanceof t.PrefixNot?"PrefixNot":e instanceof t.PropertyRead?"PropertyRead":e instanceof t.PropertyWrite?"PropertyWrite":e instanceof t.Quote?"Quote":e instanceof t.SafeMethodCall?"SafeMethodCall":e instanceof t.SafePropertyRead?"SafePropertyRead":e.type},e.fitSpans=function(e,t,n){let r=0;const i={start:e.start,end:e.end};for(;;){const e=p(i,t),n=h(e,t);if(e.start===n.start&&e.end===n.end)break;i.start=n.start,i.end=n.end,r++}return{hasParens:0!==(n?r-1:r),outerSpan:l(n?{start:i.start+1,end:i.end-1}:i,t),innerSpan:l(e,t)}},e.findFrontChar=function(e,t,n){let r=t;for(;!e.test(n[r]);)if(--r<0)throw new Error("Cannot find front char ".concat(e," from index ").concat(t," in ").concat(JSON.stringify(n)));return r},e.findBackChar=function(e,t,n){let r=t;for(;!e.test(n[r]);)if(++r>=n.length)throw new Error("Cannot find back char ".concat(e," from index ").concat(t," in ").concat(JSON.stringify(n)));return r},e.toLowerCamelCase=function(e){return e.slice(0,1).toLowerCase()+e.slice(1)},e.getLast=function(e){return 0===e.length?void 0:e[e.length-1]}}($a),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.transformSpan=e.transform=void 0;const t=$a;function n(e,n){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!r){const{start:t,end:r}=e;return{start:t,end:r,loc:{start:n.locator.locationForIndex(t),end:n.locator.locationForIndex(r)}}}const{outerSpan:s,innerSpan:u,hasParens:a}=t.fitSpans(e,n.text,i);return Object.assign({start:u.start,end:u.end,loc:{start:n.locator.locationForIndex(u.start),end:n.locator.locationForIndex(u.end)}},a&&{extra:{parenthesized:!0,parenStart:s.start,parenEnd:s.end}})}e.transform=function(r,i){let s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const u=t.getNgType(r);switch(u){case"Unary":{const{operator:e,expr:t}=r;return c("UnaryExpression",{prefix:!0,argument:a(t),operator:e},r.span,{hasParentParens:s})}case"Binary":{const{left:e,operation:t,right:n}=r,i=n.span.start===n.span.end,u=e.span.start===e.span.end;if(i||u){const t=e.span.start===e.span.end?a(n):a(e);return c("UnaryExpression",{prefix:!0,argument:t,operator:i?"+":"-"},{start:r.span.start,end:v(t)},{hasParentParens:s})}const o=a(e),D=a(n);return c("&&"===t||"||"===t?"LogicalExpression":"BinaryExpression",{left:o,right:D,operator:t},{start:E(o),end:v(D)},{hasParentParens:s})}case"BindingPipe":{const{exp:e,name:n,args:i}=r,u=a(e),o=p(/\S/,p(/\|/,v(u))+1),D=c("Identifier",{name:n},{start:o,end:o+n.length}),l=i.map(a);return c("NGPipeExpression",{left:u,right:D,arguments:l},{start:E(u),end:v(0===l.length?D:t.getLast(l))},{hasParentParens:s})}case"Chain":{const{expressions:e}=r;return c("NGChainedExpression",{expressions:e.map(a)},r.span,{hasParentParens:s})}case"Comment":{const{value:e}=r;return c("CommentLine",{value:e},r.span,{processSpan:!1})}case"Conditional":{const{condition:e,trueExp:t,falseExp:n}=r,i=a(e),u=a(t),o=a(n);return c("ConditionalExpression",{test:i,consequent:u,alternate:o},{start:E(i),end:v(o)},{hasParentParens:s})}case"EmptyExpr":return c("NGEmptyExpression",{},r.span,{hasParentParens:s});case"FunctionCall":{const{target:e,args:t}=r,n=1===t.length?[o(t[0])]:t.map(a),i=a(e);return c("CallExpression",{callee:i,arguments:n},{start:E(i),end:r.span.end},{hasParentParens:s})}case"ImplicitReceiver":return c("ThisExpression",{},r.span,{hasParentParens:s});case"KeyedRead":{const{key:e}=r;return D(Object.prototype.hasOwnProperty.call(r,"receiver")?r.receiver:r.obj,a(e),{computed:!0,optional:!1},{end:r.span.end,hasParentParens:s})}case"LiteralArray":{const{expressions:e}=r;return c("ArrayExpression",{elements:e.map(a)},r.span,{hasParentParens:s})}case"LiteralMap":{const{keys:e,values:t}=r,n=t.map((e=>a(e))),i=e.map(((e,t)=>{let{key:i,quoted:s}=e;const u=n[t],a={start:p(/\S/,0===t?r.span.start+1:p(/,/,v(n[t-1]))+1),end:l(/\S/,l(/:/,E(u)-1)-1)+1},o=s?c("StringLiteral",{value:i},a):c("Identifier",{name:i},a);return c("ObjectProperty",{key:o,value:u,method:!1,shorthand:!1,computed:!1},{start:E(o),end:v(u)})}));return c("ObjectExpression",{properties:i},r.span,{hasParentParens:s})}case"LiteralPrimitive":{const{value:e}=r;switch(typeof e){case"boolean":return c("BooleanLiteral",{value:e},r.span,{hasParentParens:s});case"number":return c("NumericLiteral",{value:e},r.span,{hasParentParens:s});case"object":return c("NullLiteral",{},r.span,{hasParentParens:s});case"string":return c("StringLiteral",{value:e},r.span,{hasParentParens:s});case"undefined":return c("Identifier",{name:"undefined"},r.span,{hasParentParens:s});default:throw new Error("Unexpected LiteralPrimitive value type ".concat(typeof e))}}case"MethodCall":case"SafeMethodCall":{const e="SafeMethodCall"===u,{receiver:t,name:n,args:i}=r,p=1===i.length?[o(i[0])]:i.map(a),h=l(/\S/,l(/\(/,(0===p.length?l(/\)/,r.span.end-1):E(p[0]))-1)-1)+1,f=D(t,c("Identifier",{name:n},{start:h-n.length,end:h}),{computed:!1,optional:e}),v=d(f);return c(e||v?"OptionalCallExpression":"CallExpression",{callee:f,arguments:p},{start:E(f),end:r.span.end},{hasParentParens:s})}case"NonNullAssert":{const{expression:e}=r,t=a(e);return c("TSNonNullExpression",{expression:t},{start:E(t),end:r.span.end},{hasParentParens:s})}case"PrefixNot":{const{expression:e}=r,t=a(e);return c("UnaryExpression",{prefix:!0,operator:"!",argument:t},{start:r.span.start,end:v(t)},{hasParentParens:s})}case"PropertyRead":case"SafePropertyRead":{const e="SafePropertyRead"===u,{receiver:t,name:n}=r,i=l(/\S/,r.span.end-1)+1;return D(t,c("Identifier",{name:n},{start:i-n.length,end:i},h(t)?{hasParentParens:s}:{}),{computed:!1,optional:e},{hasParentParens:s})}case"KeyedWrite":{const{key:e,value:t}=r,n=Object.prototype.hasOwnProperty.call(r,"receiver")?r.receiver:r.obj,i=a(e),u=a(t),o=D(n,i,{computed:!0,optional:!1},{end:p(/\]/,v(i))+1});return c("AssignmentExpression",{left:o,operator:"=",right:u},{start:E(o),end:v(u)},{hasParentParens:s})}case"PropertyWrite":{const{receiver:e,name:t,value:n}=r,i=a(n),u=l(/\S/,l(/=/,E(i)-1)-1)+1,o=D(e,c("Identifier",{name:t},{start:u-t.length,end:u}),{computed:!1,optional:!1});return c("AssignmentExpression",{left:o,operator:"=",right:i},{start:E(o),end:v(i)},{hasParentParens:s})}case"Quote":{const{prefix:e,uninterpretedExpression:t}=r;return c("NGQuotedExpression",{prefix:e,value:t},r.span,{hasParentParens:s})}default:throw new Error("Unexpected node ".concat(u))}function a(t){return e.transform(t,i)}function o(t){return e.transform(t,i,!0)}function c(e,t,r){let{processSpan:s=!0,hasParentParens:u=!1}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const a=Object.assign(Object.assign({type:e},n(r,i,s,u)),t);switch(e){case"Identifier":{const e=a;e.loc.identifierName=e.name;break}case"NumericLiteral":{const e=a;e.extra=Object.assign(Object.assign({},e.extra),{raw:i.text.slice(e.start,e.end),rawValue:e.value});break}case"StringLiteral":{const e=a;e.extra=Object.assign(Object.assign({},e.extra),{raw:i.text.slice(e.start,e.end),rawValue:e.value});break}}return a}function D(e,t,n){let{end:r=v(t),hasParentParens:i=!1}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(h(e))return t;const s=a(e),u=d(s);return c(n.optional||u?"OptionalMemberExpression":"MemberExpression",Object.assign({object:s,property:t,computed:n.computed},n.optional?{optional:!0}:u?{optional:!1}:null),{start:E(s),end:r},{hasParentParens:i})}function l(e,n){return t.findFrontChar(e,n,i.text)}function p(e,n){return t.findBackChar(e,n,i.text)}function h(e){return e.span.start>=e.span.end||/^\s+$/.test(i.text.slice(e.span.start,e.span.end))}function d(e){return("OptionalCallExpression"===e.type||"OptionalMemberExpression"===e.type)&&!f(e)}function f(e){return e.extra&&e.extra.parenthesized}function E(e){return f(e)?e.extra.parenStart:e.start}function v(e){return f(e)?e.extra.parenEnd:e.end}},e.transformSpan=n}(Wa);var nc={};Object.defineProperty(nc,"__esModule",{value:!0}),nc.transformTemplateBindings=void 0;const rc=wo,ic=Wa,sc=$a;nc.transformTemplateBindings=function(e,t){e.forEach((function(e){h(e.key.span),p(e)&&e.value&&h(e.value.span)}));const[n]=e,{key:r}=n,i=0===t.text.slice(n.sourceSpan.start,n.sourceSpan.end).trim().length?e.slice(1):e,s=[];let u=null;for(let e=0;e<i.length;e++){const n=i[e];if(u&&l(u)&&p(n)&&n.value&&n.value.source===u.key.source){const e=c("NGMicrosyntaxKey",{name:n.key.source},n.key.span),r=(e,n)=>Object.assign(Object.assign({},e),ic.transformSpan({start:e.start,end:n},t)),i=t=>Object.assign(Object.assign({},r(t,e.end)),{alias:e}),u=s.pop();if("NGMicrosyntaxExpression"===u.type)s.push(i(u));else{if("NGMicrosyntaxKeyedExpression"!==u.type)throw new Error("Unexpected type ".concat(u.type));{const e=i(u.expression);s.push(r(Object.assign(Object.assign({},u),{expression:e}),e.end))}}}else s.push(a(n,e));u=n}return c("NGMicrosyntax",{body:s},0===s.length?e[0].sourceSpan:{start:s[0].start,end:s[s.length-1].end});function a(e,n){if(l(e)){const{key:t,value:r}=e;return r?0===n?c("NGMicrosyntaxExpression",{expression:o(r.ast),alias:null},r.sourceSpan):c("NGMicrosyntaxKeyedExpression",{key:c("NGMicrosyntaxKey",{name:D(t.source)},t.span),expression:c("NGMicrosyntaxExpression",{expression:o(r.ast),alias:null},r.sourceSpan)},{start:t.span.start,end:r.sourceSpan.end}):c("NGMicrosyntaxKey",{name:D(t.source)},t.span)}{const{key:n,sourceSpan:r}=e;if(/^let\s$/.test(t.text.slice(r.start,r.start+4))){const{value:t}=e;return c("NGMicrosyntaxLet",{key:c("NGMicrosyntaxKey",{name:n.source},n.span),value:t?c("NGMicrosyntaxKey",{name:t.source},t.span):null},{start:r.start,end:t?t.span.end:n.span.end})}{const r=function(e){if(!e.value||e.value.source!==sc.NG_PARSE_TEMPLATE_BINDINGS_FAKE_PREFIX)return e.value;const n=sc.findBackChar(/\S/,e.sourceSpan.start,t.text);return{source:"$implicit",span:{start:n,end:n}}}(e);return c("NGMicrosyntaxAs",{key:c("NGMicrosyntaxKey",{name:r.source},r.span),alias:c("NGMicrosyntaxKey",{name:n.source},n.span)},{start:r.span.start,end:n.span.end})}}}function o(e){return ic.transform(e,t)}function c(e,n,r){let i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return Object.assign(Object.assign({type:e},ic.transformSpan(r,t,i)),n)}function D(e){return sc.toLowerCamelCase(e.slice(r.source.length))}function l(e){return e instanceof rc.ExpressionBinding}function p(e){return e instanceof rc.VariableBinding}function h(e){if('"'!==t.text[e.start]&&"'"!==t.text[e.start])return;const n=t.text[e.start];let r=!1;for(let i=e.start+1;i<t.text.length;i++)switch(t.text[i]){case n:if(!r)return void(e.end=i+1);default:r=!1;break;case"\\":r=!r}}},Object.defineProperty(_a,"__esModule",{value:!0}),_a.parseTemplateBindings=_a.parseAction=_a.parseInterpolation=_a.parseSimpleBinding=_a.parseBinding=void 0;const uc=Ma,ac=Wa,oc=nc,cc=$a;function Dc(e,t){const{ast:n,comments:r}=t(e),i=new uc.Context(e),s=e=>ac.transform(e,i),u=s(n);return u.comments=r.map(s),u}_a.parseBinding=function(e){return Dc(e,cc.parseNgBinding)},_a.parseSimpleBinding=function(e){return Dc(e,cc.parseNgSimpleBinding)},_a.parseInterpolation=function(e){return Dc(e,cc.parseNgInterpolation)},_a.parseAction=function(e){return Dc(e,cc.parseNgAction)},_a.parseTemplateBindings=function(e){return oc.transformTemplateBindings(cc.parseNgTemplateBindings(e),new uc.Context(e))};const{locStart:lc,locEnd:pc}=ka;function hc(e){return{astFormat:"estree",parse:(t,n,r)=>{const i=e(t,_a);return{type:"NGRoot",node:"__ng_action"===r.parser&&"NGChainedExpression"!==i.type?Object.assign(Object.assign({},i),{},{type:"NGChainedExpression",expressions:[i]}):i}},locStart:lc,locEnd:pc}}var dc={parsers:{__ng_action:hc(((e,t)=>t.parseAction(e))),__ng_binding:hc(((e,t)=>t.parseBinding(e))),__ng_interpolation:hc(((e,t)=>t.parseInterpolation(e))),__ng_directive:hc(((e,t)=>t.parseTemplateBindings(e)))}};return dc}));
|